Ticked toggle menu item (checkmark?)

BlitzMax Forums/MaxGUI Module/Ticked toggle menu item (checkmark?)

iprice(Posted 2008) [#1]
I've looked at the GUI tuts and searched this forum, but I can't find a way to add a simple checkmark/tick to a menu item, where you can click on a menu item to turn it on/off like the "Show percentages", "100% panes" in this image.



How would I add that option to a simple menu system and how can I check whether the menu item is checked/unchecked?

I looked at the MaxGUI command Un/CheckMenu, but I'm not sure if this is what I need - or am I wrong? I've tried without success to use it.

Here is a basic framework


I want the (in this example) "AutoSave" option to be toggled by the user.


SebHoll(Posted 2008) [#2]
You're gonna laugh ;-) because the functions you are looking for are:

CheckMenu(), UncheckMenu() and MenuChecked()

It is worth noting that after calling the first two of the above three, you will need to call UpdateWindowMenu() for the changes to take effect.


iprice(Posted 2008) [#3]
I've managed to sort it now. Thanks for the reply. :)