LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show an arrow sign in the menu item area?

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

0 Kudos
Message 1 of 8
(4,168 Views)

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.

0 Kudos
Message 2 of 8
(4,165 Views)

Hi Walfgang,

 

I do not understand what you said. I'd just like the following  menu item style:

 

捕获.jpg

 

like the "Command button" item, the right edge has an "right" arrow,

 

David

0 Kudos
Message 3 of 8
(4,157 Views)

ok, this 'right arrow' automatically appears once you create a submenu using NewSubMenu (, );

 

I hope I got it right ?!

0 Kudos
Message 4 of 8
(4,141 Views)

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

0 Kudos
Message 5 of 8
(4,136 Views)

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

0 Kudos
Message 6 of 8
(4,128 Views)

Hi JR,

 

That means I must add a sub item, and it will popup a specified menu window, it likes the following picture:

 

捕获_2.jpg

But I just want approch this effect:

捕获.jpg

this shoud be a panel not a sub menu.

 

David

0 Kudos
Message 7 of 8
(4,120 Views)

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

0 Kudos
Message 8 of 8
(4,075 Views)