ironh4x Posted January 3, 2010 Share Posted January 3, 2010 #include <GUIConstantsEx.au3> Example() Func Example() GUICreate("My GUI") GUICtrlCreateLabel("Line 1 Cell 1", 10, 30) $Button_1 = GUICtrlCreateButton("change label", 100, 100) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 EndSelect WEnd EndFunc I want to change the text on my label when the button is press, I search the forum and I can't guisetcontrol to work Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 4, 2010 Share Posted January 4, 2010 Use GUICtrlSetData like this$var = GUICtrlCreateLabel(... GUICtrlSetData($var... AnonymousX and Professor_Bernd 2 - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
playlet Posted January 4, 2010 Share Posted January 4, 2010 (edited) --- Edited August 18, 2016 by playlet guiltyking 1 Link to comment Share on other sites More sharing options...
ironh4x Posted January 4, 2010 Author Share Posted January 4, 2010 tnx guys xD Link to comment Share on other sites More sharing options...
lencls37 Posted January 30, 2017 Share Posted January 30, 2017 On 04.01.2010 at 2:28 AM, somdcomputerguy said: Use GUICtrlSetData like this $var = GUICtrlCreateLabel(... GUICtrlSetData($var... So Thanks Bro Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 30, 2017 Moderators Share Posted January 30, 2017 @lencls37 Did you not realize this thread is more than 7 years old? Please don't resurrect old posts, especially when not adding anything to the discussion. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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