Jump to content
Sign in to follow this  
MrVietA2

Change the name of button when click ?

Recommended Posts

Hi everyone !

I have created a GUI and a button called "E". I want to click on the button -> the button name changes to "V" and click again then changed to "E" .... I do not know how to do this, please help me! Thanks ! :graduated:

Edited by MrVietA2

Share this post


Link to post
Share on other sites

Look at GUICtrlRead() and its related functions

I can do it now, I used Switch...case . Thanks !

P/s : How do I change the text of a tooltip when the tooltip that has a text? Sr, my English is bad :graduated:

Edited by MrVietA2

Share this post


Link to post
Share on other sites

Just run the tooltip command with the new contents.

I have this :

$4 = GUICtrlCreateLabel("Open", 296, 235, 165, 21)
GUICtrlSetTip( -1,"Open your computer")]

How can I change the text : "Open your computer" to "Open my document" when I press F2 ;) ? Help me,please ! Thanks :graduated:

Edited by MrVietA2

Share this post


Link to post
Share on other sites

GUICtrlSetTip( $4,"whatever")

Oh, thanks so much ! I have 1 question : " How can I change " button background " ? It means the "text of the button" is on "button background" .

Like this :

Posted Image

Thanks

Edited by MrVietA2

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...