how do i (in runtime) make a menu item "checked" ?
i searched the action wizard and didnt find anything.. maybe missed it ?
thnx,
Mina
Professional Software Development Tools
how do i (in runtime) make a menu item "checked" ?
i searched the action wizard and didnt find anything.. maybe missed it ?
thnx,
Mina
There are a couple of ways, you can use the Application.GetMenu which will return a table with the contents of the menu. You can then modify that table and then use Application.SetMenu to reload that menu back into the application. There is also a global function g_OnUpdateMenuCheck I think is the name of the function. You can use that to modify the menu on the fly.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
appreciate ur helpthnx
though an example would be good
See an example from Desmond here.
![]()
Here is a sample using the built-in function.
Look in the global function to see two functions that control whether the menu item will be checked or not. The global function g_OnUpdateMenuCheck is called for each item in the menu looking to see if there is a true or false value and checks that item according to the returned value. This simple project will check the only item in the second menu if there is text selected.
HTH
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
just what i was looking for!
thanks