Jump to content
Sign in to follow this  
podws

How To Change Text Of Menu Item?

Recommended Posts

podws

$viewstatusitem = GUICtrlCreateMenuitem ("Start",$viewmenu)

...

GUICtrlSetData ($viewstatusitem, "Stop")

It doesn't work, "Start" is still there. I think I must do something bad.

Share this post


Link to post
Share on other sites
Uten

$viewstatusitem = GUICtrlCreateMenuitem ("Start",$viewmenu)

...

GUICtrlSetData ($viewstatusitem, "Stop")

It doesn't work, "Start" is still there. I think I must do something bad.

GUICtrlSetData ($viewstatusitem, "Stop")
GUISetState ()

Share this post


Link to post
Share on other sites
podws

GUICtrlSetData ($viewstatusitem, "Stop")
GUISetState ()
Yes, there is "GUISetState" for "Start", but the second GUISetState after "Stop" doesn't change the text. :think:

Share this post


Link to post
Share on other sites
podws

I found, that in autoit beta ...117 it works well, even without GUISetState

Edited by podws

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  

×