Sign in to follow this  
Followers 0
YGYL

menuradioitem is not work?

3 posts in this topic

menuradioitem is not work?

how to use it?

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$MenuItem2 = GUICtrlCreateMenu("MenuItem2")
$MenuItem1 = GUICtrlCreateMenu("MenuItem1")
$MenuItem3 = GUICtrlCreateMenuItem("MenuItem3", $MenuItem1, -1 , 1)
GUICtrlSetState(-1, $GUI_CHECKED)
$MenuItem4 = GUICtrlCreateMenuItem("MenuItem4", $MenuItem1, -1 , 1)
$MenuItem5 = GUICtrlCreateMenuItem("MenuItem5", $MenuItem1, -1 , 1)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $MenuItem4
            MsgBox(0,"2","")
            GUICtrlSetState($MenuItem4, $GUI_CHECKED)
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites



No, it doesn't seem to work, please write an error report at

http://svn.autoitscript.com/trac

Specify AutoIT version, OS version and a code sample.

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