Jump to content

menuradioitem is not work?


YGYL
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...