Jump to content
Sign in to follow this  
YGYL

menuradioitem is not work?

Recommended Posts

YGYL

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

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.