![background image](http://html1.mh-extra.com/html/national-instruments/measurement-studio/measurement-studio_user-manual_3453859035.webp)
Chapter 3
Measurement Studio Visual C++ Class Libraries
Measurement Studio User Manual
3-10
ni.com
User Interface
Use the Measurement Studio User Interface Visual C++ class library to add
user interface controls to your application. You can configure the user
interface controls programmatically or through the property pages in the
Visual C++ resource editor. The following sections describe each of the
Measurement Studio Visual C++ user interface controls.
Button Control
Use the Measurement Studio ActiveX button control, as shown in
Figure 3-2, for different Boolean displays, such as on/off or true/false.
Typically, you use buttons to input or display Boolean information or
initiate an action in a program. The
CNiButton
class provides the Visual
C++ interface to the ActiveX button control.
Figure 3-2.
ActiveX Button Control
With the button control and the classes that interface with the control,
you can perform the following operations:
•
Configure how the control behaves when you click it with the mouse
or press the spacebar when the control has focus.
•
Configure how the button control appears using button styles. You can
configure the button control to appear as a push button, LED,
or switch.
•
Bind properties to a DataSocket source or target. You use binding to
read property values from a source and write property values to a
target.
Tip
For more information about easily using the button control, refer to the
Using the
Measurement Studio Visual C
++
Button Control
section in the
NI Measurement
Studio Help.