Sign in to follow this  
Followers 0
MrVietA2

Change the name of button when click ?

10 posts in this topic

#1 ·  Posted (edited)

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



#3 ·  Posted (edited)

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

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.

1 person likes this

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

#7 ·  Posted (edited)

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

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  
Followers 0