Sign in to follow this  
Followers 0
furrycow

Deleting a label and its colour

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Post you code.

Thanks,

Brett

;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

Share this post


Link to post
Share on other sites

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.

Posted Image


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0