LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring control height / comman button with pop up menu

Hi,

 

1.) is there any way to change the height of a ((popup)menu) ring control without changing the text size?

Any hidden attribute?

 

What I want to have is big button with a small size font that opens a drop-down (or popup) menu in order to choose a value.

Using a big-size control would be nice, because I also want to have this small arrow at the right side, to show that this "button" holds a drop-down menu.

 

Please find enclosed an example, how it might look like.

 

2.) In order to find a solution, i have tried to place a popup menu ring right beside a command button, but failed to open the popup menu programmatically when clicking the button (using a button callback). CallCtrlCallback with EVENT_KEYPRESS(Space)/EVENT_LEFT_CLICK/EVENT_COMMIT on the ring control doesn't seem to work. How to call/show the popup menu programatically?

 

 

MaWie

CVI 8.5.1

0 Kudos
Message 1 of 2
(3,018 Views)

As you have already discovered, the only ring control for which you can set the height is the popup menu.

You don't need anything to interactovely opne the menu in a popup menu ring control: simply click on it.

On the other hand, it is possible to programmatically open popup menu by using FakeKeyStroke as in the attached example. Note that even if I can open the menu from within the originating button callback, nevertheless I prefered to post a deferred callback to obtain this so that the button callback can terminate before the menu is opened and handled by its native callback.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,010 Views)