![]() |
CNiPointer | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiPointer.h |
Overview
CNiPointer encapsulates the interface to a single pointer on a knob or slide control, which allows you to modify its appearance and behavior.
You get individual pointers using the Pointers property on a CNiKnob or CNiSlide object.
Note: To specify a date/time value, you must convert your date or time value to a double. A date is implemented as a floating-point value with the integer part of the number measuring days from midnight, 30 December 1899, and the fractional part representing the time of day. The absolute value of the fractional part of the number represents the time as a fraction of a day. Thus, 1 second equals 1 / 24 hours / 60 minutes, which is 1/86400 or approximately 1.157407e-5. So, midnight, 31 December 1899, is represented by 1.0. Similarly, 6 AM, 1 January 1900, is represented by 2.25, and midnight, 29 December 1899, is -1.0. However, 6 AM, 29 December 1899, is -1.25.
Base Classes
Data Items
![]() |
CNiColor | Color | Specifies the color of the pointer. |
![]() |
CNiColor | FillColor | Specifies the fill color of the pointer. |
![]() |
PointerFillStyles | FillStyle | Specifies how the function fills the pointer. |
![]() |
long | Index | Specifies the index of this pointer in the CNiPointers collection. |
![]() |
PointerModes | Mode | Specifies how the pointer behaves and responds to user input. |
![]() |
CString | Name | Specifies the name of the pointer. |
![]() |
PointerStyles | Style | Specifies the graphical style of the pointer. |
![]() |
double | Value | Specifies the value of the pointer. |
![]() |
long | ValuePairIndex | Specifies the index of the value pair selected by this pointer. |
![]() |
bool | Visible | Specifies if the pointer is visible or hidden. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiPointer( CWPointer_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWPointer_CI pointer. | |
![]() |
CNiPointer( const CNiPointer& source ) |
Copy constructor. |
Destructors
Functions
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
const CNiPointer & | Assignment operator. |
Example
// Set the style of the first pointer in the knob control.
CNiKnob knob; CNiPointer pointer = knob.Pointers.Item(1); pointer.Style = CNiPointer::Pointer3D;