User Interface Component Overview

CNi

User Interface Component Overview

You use the User Interface component to add user interface controls to your application. You can modify the User Interface controls programmatically or by using the property pages in Visual C++. Also, you can bind User Interface controls to a DataSocket server, thus allowing the controls to read from and write to the server.

Top-Level Classes

CNiButton - allows you to add buttons to your user interface.
CNiGraph - allows you to add graphs to your user interface.
CNiKnob - allows you to add knobs to your user interface.
CNiNumEdit - allows you to add NumEdit controls to your user interface.
CNiSlide - allows you to add slides to your user interface.

Notes:

  • You can use the CNiAxis class with the CNiKnob and CNiSlide classes to interface to a single axis of the knob or slide control. This allows you to modify the appearance and behavior of the axis.
  • Because the User Interface component includes ActiveX controls that link to the MFC DLL, projects that you design to use Measurement Studio User Interface controls cannot link to static MFC.
  • The User Interface component includes classes that reference ActiveX objects. Although these classes provide support to allow you access the included ActiveX objects from any thread, you must initialize COM in each thread that accesses the User Interface classes. To initialize COM in a thread, call the system function ::CoInitialize or the system function ::CoInitializeEx from within the thread.