Jump to content

GUI label bars dinamically change


Recommended Posts

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...