10-26-2010 05:19 AM
Hello,
Want to show an arrow sign which points to the right and represents the right direction shortcut key in a menu item area. In the "NewMenuItem()" , if specifing 'VAL_RIGHT_ARROW_VKEY' as the shortcut parameter, it just shows the word "Right" not what I expected the arrow sign.
David
10-26-2010 05:25 AM - edited 10-26-2010 05:27 AM
Hi,
it seems to me that you are confusing the item name where you want to show an arrow and the shortcut key, where you could enter a virtual key, e. g. VAL_RIGHT_ARROW_VKEY.
If you want to display a character such as an arrow, you have to enter it into the text string item_name (third parameter of NewMenuItem) - VAL_RIGHT_ARROW_VKEY is a number for a shortcut key and not a character for display.
10-26-2010 07:01 AM - edited 10-26-2010 07:03 AM
Hi Walfgang,
I do not understand what you said. I'd just like the following menu item style:
like the "Command button" item, the right edge has an "right" arrow,
David
10-26-2010 07:57 AM
ok, this 'right arrow' automatically appears once you create a submenu using NewSubMenu (, );
I hope I got it right ?!
10-26-2010 08:37 AM
In fact, I want to imitate the menu style of CVI, but this menu style seems not be a submenu, because when moving the cursor on an item, it popups a panel. So, is there anyway to display the arrow sign?
David
10-26-2010 10:10 AM
If you just add a child item to a top level menu item in the Edit Menu Bar editor, you will get these arrows. Is that not what you want?
JR
10-26-2010 10:54 AM
Hi JR,
That means I must add a sub item, and it will popup a specified menu window, it likes the following picture:
But I just want approch this effect:
this shoud be a panel not a sub menu.
David
10-27-2010 12:53 PM
The 'Create' menu submenus in the UI editor are not panels. They are special menus created for CVI that can display pictures. Unfortunately, you cannot create similar menus in CVI.
If you just want to display the right arrow, you can make an item be a submenu with NewSubMenu. The right arrow will appear, even if you don't give the submenu any items. However, I'm not sure how that would be very useful to you.
- jared