frank10 Posted June 22, 2012 Share Posted June 22, 2012 (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 June 22, 2012 by frank10 Link to comment Share on other sites More sharing options...
AZJIO Posted June 22, 2012 Share Posted June 22, 2012 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 - $LabRand, 20, $LabRand) Sleep(100) WEnd My other projects or all Link to comment Share on other sites More sharing options...
frank10 Posted June 22, 2012 Author Share Posted June 22, 2012 Thank you. I was thinking at all different things, instead it was so easy... Link to comment Share on other sites More sharing options...
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