Sign in to follow this  
Followers 0
frank10

GUI label bars dinamically change

3 posts in this topic

#1 ·  Posted (edited)

I want to dinamically change my vertical labels' height and I got it with this:

GUICreate("test", 900, 600,200,0)


Local $lab = GUICtrlCreateLabel ("",10,400,20,0)
GUICtrlSetBkColor($lab,0xff0000)

GUISetState()

while 1
     Local $LabRand = Random(0,100)
     GUICtrlSetPos($lab,10,400,20,$LabRand)
     Sleep(100)
wend

But this keep the y base for the label at 400 and changes the height toward down, instead I want it to change toward upside.

How could I do this?

Edited by frank10

Share this post


Link to post
Share on other sites



Thank you.

I was thinking at all different things, instead it was so easy...

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