LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Toolbar Custom Control Ring question

Solved!
Go to solution

Hi.  This is probably a dumb question, but how do I add items to a ring (kRing) toolbar item when using the Toolbar Custom Control (toolbar.fp) in CVI 2010?  Thanks.

0 Kudos
Message 1 of 3
(3,160 Views)
Solution
Accepted by topic author tstanley

You can add your items by first getting the control ID of the toolbar item via the Toolbar_GetCtrlFromIndex or Toolbar_GetCtrlFromDescription functions, and then using InsertListItem to add your items to the ring.

 

Luis

 

 

Message 2 of 3
(3,148 Views)

Interesting.  I take it that the toolbar items are actually just standard control types and once I have the toolbar's panelhandle and control ID I can manipulate the items as controls with the standard user interface library functions (within reason of course)? 

 

In any case, thanks for the help.  That worked perfectly.

0 Kudos
Message 3 of 3
(3,145 Views)