furrycow Posted October 11, 2008 Posted October 11, 2008 Hey guys, i have two questions, but both involving the same thing so thought i might as well make them one post.... 1. You know when you create a label..lets say to make it say, "hello", then you want to update that label, how would you go about doing so? Because if i create another label, say, "world", then in while loops it looks very messy as it keeps flickering between the two. Is there a way around this? 2.If you use a label on a tabbed screen they seem to be different colours. ie, the tab background is white, and the label background is a gone-off white/grey. Is there anyway to change either? Many thanks. Instant Lockerz Invite - www.instantlockerzinvite.co.uk
BrettF Posted October 11, 2008 Posted October 11, 2008 Hey guys, i have two questions, but both involving the same thing so thought i might as well make them one post....1. You know when you create a label..lets say to make it say, "hello", then you want to update that label, how would you go about doing so? Because if i create another label, say, "world", then in while loops it looks very messy as it keeps flickering between the two. Is there a way around this?2.If you use a label on a tabbed screen they seem to be different colours. ie, the tab background is white, and the label background is a gone-off white/grey. Is there anyway to change either?Many thanks.Post you code.Thanks,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
furrycow Posted October 11, 2008 Author Posted October 11, 2008 Post you code. Thanks, Brett expandcollapse popup;all the necessary includes $GRPBOXUpdateList = GUICtrlCreateGroup("Update", 312, 64, 329, 361) $LBLFinding = GUICtrlCreateLabel("Finding Search Terms", 320, 96, 107, 17) $LBLWriting = GUICtrlCreateLabel("Writing Search Terms", 320, 128, 106, 17) $LBLCleaning = GUICtrlCreateLabel("Cleaning Search Terms", 320, 160, 114, 17) $LBLReplacing = GUICtrlCreateLabel("Replacing Search Terms", 320, 192, 121, 17) $PROFinding = GUICtrlCreateProgress(456, 96, 137, 17) $PROWriting = GUICtrlCreateProgress(456, 128, 137, 17) $PROCleaning = GUICtrlCreateProgress(456, 160, 137, 17) $PROReplacing = GUICtrlCreateProgress(456, 192, 137, 17) $BUTUpdate = GUICtrlCreateButton("Update", 352, 376, 105, 25, 0) GUICtrlSetOnEvent($BUTupdate, "Update") $BUTUpdateCancel = GUICtrlCreateButton("Cancel", 496, 376, 105, 25, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $LBLStatus = GUICtrlCreateLabel("Current Status:", 8, 8, 74, 17) $LBLStatusResult = GUICtrlCreateLabel("-", 88, 8, 7, 17) GUISetState(@SW_SHOW) $m = GUIGetMsg() $LBLStatusResult = GUICtrlCreateLabel("Updating - Finding Terms", 88, 8, 500, 17) $s = 0 GUICtrlSetData($PROFinding, $iNumLinks*5) ;code For $oLink In $oLinks ;code $m = GUIGetMsg() $LBLStatusResult = GUICtrlCreateLabel("Updating - Writing Terms", 88, 8, 500, 17) $s = 0 GUICtrlSetData($PROWriting, $Writepc) Next $x=10 While $x < 60 ;code $m = GUIGetMsg() $LBLStatusResult = GUICtrlCreateLabel("Updating - Cleaning Terms", 88, 8, 500, 17) $s = 0 GUICtrlSetData($PROCleaning, $verifypc) $x=$x+1 WEnd While $STNum<50 ;code $m = GUIGetMsg() GUICtrlCreateLabel("Updating - Replacing Invalid Terms", 88, 8,500, 17) $s = 0 GUICtrlSetData($PROReplacing, $replacpc) $STNum = $STNum + 1 WEnd All the ";code", is pretty much just the code processing all the stuff happening inbetween, and theres probs not enough lines in this box to put it all, but that would have nothing to do with the flickering of the labels. Thanks Instant Lockerz Invite - www.instantlockerzinvite.co.uk
furrycow Posted October 11, 2008 Author Posted October 11, 2008 OK, i actually managed to figure out the flashing labels, by just taking them out of the loops, but the colour is still slightly different to the rest of the tabbed background...look at the last invalid term, you can see the colour is different. Instant Lockerz Invite - www.instantlockerzinvite.co.uk
BrettF Posted October 11, 2008 Posted October 11, 2008 Try GUICtrlSetBkColor ($control, $GUI_BKCOLOR_TRANSPARENT) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
furrycow Posted October 11, 2008 Author Posted October 11, 2008 TryGUICtrlSetBkColor ($control, $GUI_BKCOLOR_TRANSPARENT)Thats it! Cheers! Instant Lockerz Invite - www.instantlockerzinvite.co.uk
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now