Jump to content

change text of a label


ironh4x
 Share

Recommended Posts

#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

  • 7 years later...
  • Moderators

@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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...