01-18-2011 09:49 AM
Hi ,
i'm trying to use GetCtrlMenuAttribute , i want to see if a menu item is checked and this is my simple func
Solved! Go to Solution.
01-18-2011 10:02 AM
1) I would assume the opposite behavior:
Description: Specifies whether a menu item has a checkmark.
0 = Does not have check mark
1 = Has check mark
2) What do you mean by 'does not work'? You can use the debug mode, set a breakpoint and check the value of a variable, including status.
Wolfgang
01-18-2011 10:03 AM
As far as I can see you only need to reverse the logic of your code:
Please remember that this command gets attributes of menus owned by specific controls (e.g. a table): not all controls can own a menu. To retrieve attributes of normal menu on a panel you must use GetMenuBarAttribute.
01-18-2011 10:26 AM
Dont mind the
my problem is that my function returns -139.....
the function fails...it doesn't update my check var....
01-18-2011 10:32 AM
If you use the help available with CVI you can read:
-139 | UIECtrlDoesNotHaveMenu | Controls of the type passed do not have a menu. |
that's exactly the earlier comment of Roberto...