Jump to content
Sign in to follow this  
MrVietA2

Change the name of button when click ?

Recommended Posts

MrVietA2

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
MrVietA2

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
JoHanatCent

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

Just run the tooltip command with the new contents.

  • Like 1

Share this post


Link to post
Share on other sites
MrVietA2

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
MrVietA2

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
MrVietA2

I think that sort of thing (drawing your own buttons) is some sort of GDI voodoo.

Sorry cant help with that.

Ok, thanks :graduated:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.