Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How can I Programmatically Drop-Down a Ring Control?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have placed a ring control on my User Interface file in LabWindows/CVI.  During execution, a user can click on the ring control to display its drop-down menu.  How can I achieve this programmatically?

Solution:
If a ring control within a UIR file has focus and the user presses the spacebar on the keyboard, the ring control will drop-down and display its contents.  As a result, the following process can be used to achieve the programmatic drop-down of a ring control:
  1. Give the appropriate ring control focus using the SetActiveCtrl function.
  2. Simulate a spacebar press by passing 0x20 (to represent the spacebar) to the FakeKeystroke function .
A demonstration of this process has been included below. 

Related Links:

Attachments:
Drop-Down Ring Control.zip




Report Date: 12/27/2007
Last Updated: 01/12/2008
Document ID: 4GQGR26X

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit