The ITextSpinButton::Cursor class creates and manages the cursor for an ITextSpinButton object. In the same way that you can use a cursor to traverse the objects in a collection, you can use this cursor to traverse the text items in a text spin button, one item at a time.
Constructors & DestructorYou can construct and destruct objects of this class.
![]() |
public:
virtual ~Cursor()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
Cursor(const ITextSpinButton& spinButton)
You can construct objects of this class from an object of ITextSpinButton.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Cursor MovementUse these members to change the cursor position.
![]() |
public:
virtual bool setToFirst()
Points to the first item in the text list.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToLast()
Points to the last item in the text list.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToNext()
Points to the next item in the text list. If there is none, the cursor is invalidated.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToPrevious()
Points to the previous item in the text list. If there is none, the cursor is invalidated.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Cursor ValidationUse these members to check and reset the validity of the cursor.
![]() |
public:
virtual void invalidate()
Flags this cursor as invalid.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool isValid() const
Queries whether this cursor points to a valid item.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |