- Status Unconfirmed
- Percent Complete
- Task Type Bug Report
- Category Application
- Assigned To No-one
- Operating System All
- Severity Low
- Priority Very Low
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#226 - MenuItem | RadioItem
Either MenuItem | RadioItem is not working or I don’t understand it. .kxf file, attached, generated:
#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=F:\Koda forms for PerfectScript\Menu radio test.kxf $Form1 = GUICreate("Form1", 623, 449, 192, 114) $mnuFile = GUICtrlCreateMenu("&File") $mnuOpen = GUICtrlCreateMenuItem("Open", $mnuFile, -1 , 1) $mnuSave = GUICtrlCreateMenuItem("Save", $mnuFile, -1 , 1) $MenuItem1 = GUICtrlCreateMenuItem("", $mnuFile) $mnuExit = GUICtrlCreateMenuItem("Exit", $mnuFile) $mnuEdit = GUICtrlCreateMenu("&Edit") $mnuOpts = GUICtrlCreateMenu("&Options") $mnuHelp = GUICtrlCreateMenu("&Help") $Label1 = GUICtrlCreateLabel("Label1", 224, 184, 36, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=F:\Koda forms for PerfectScript\Menu radio test.kxf $Form1 = GUICreate("Form1", 623, 449, 192, 114) $mnuFile = GUICtrlCreateMenu("&File") $mnuOpen = GUICtrlCreateMenuItem("Open", $mnuFile, -1 , 1) $mnuSave = GUICtrlCreateMenuItem("Save", $mnuFile, -1 , 1) $MenuItem1 = GUICtrlCreateMenuItem("", $mnuFile) $mnuExit = GUICtrlCreateMenuItem("Exit", $mnuFile) $mnuEdit = GUICtrlCreateMenu("&Edit") $mnuOpts = GUICtrlCreateMenu("&Options") $mnuHelp = GUICtrlCreateMenu("&Help") $Label1 = GUICtrlCreateLabel("Label1", 224, 184, 36, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Further testing suggests that one of the RadioItems must also have Checked set to True
Setting this property only set items to one switching group. Controlling it's visual appearance is fully on the programmer side.
Understood