(new in Rev4.00)
MQScrollBar class manages a scroll bar. It inherits a MQWidgetBase class.
Please refer the inherited class about member functions declared in the inherited class.
Class | |
MQScrollBar | Constructor |
~MQScrollBar | Destructor |
Member functions | |
GetPosition | Get a position value |
SetPosition | Set a position value |
GetMin | Get a minimum value |
SetMin | Set a minimum value |
GetMax | Get a maximum value |
SetMax | Set a maximum value |
GetPage | Get a page width |
SetPage | Set a page width |
GetIncrement | Get an increment value |
SetIncrement | Set an increment value |
Events | |
AddChangedEvent | Add an event after finishing to change a value |
AddChangingEvent | Add an event while changing a value |
MQScrollBar::MQScrollBar();
MQScrollBar::MQScrollBar(int id);
It is a constructor.
virtual MQScrollBar::~MQScrollBar();
This method is a destructor. It is defined as a virtual function.
int MQScrollBar::GetPosition();
It returns a current value.
void MQScrollBar::SetPosition(int value);
It specifies a current value.
int MQScrollBar::GetMin();
It returns a minimum value.
void MQScrollBar::SetMin(int value);
It specifies a minimum value.
If the minimum value is larger than the maximum value, the values are swapped and it ensures that the minimum value is always equal or lesser than the maximum value.
int MQScrollBar::GetMax();
It returns a maximum value.
void MQScrollBar::SetMax(int value);
It specifies a maximum value.
If the maximum value is lesser than the minimum value, the values are swapped and it ensures that the minimum value is always equal or lesser than the maximum value.
int MQScrollBar::GetPage();
It returns how long is a draggable bar in a slot for a minimum value and a maximum one.
void MQScrollBar::SetPage(int value);
It specifies how long is a draggable bar in a slot for a minimum value and a maximum one.
int MQScrollBar::GetIncrement();
It returns an increment value for clicking the side buttons.
void MQScrollBar::SetIncrement(int value);
It specifies an increment value for clicking the side buttons.
template<typename T> void MQScrollBar::AddChangedEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument), bool prior = false)
It adds events notified when a value has been changed by user's operation.
An event by AddChangingEvent() is invoked when characters are modified by key input, and an event by AddChangedEvent() is invoked when Enter key is pressed or a focus removed by Tab key or a mouse operation.
template<typename T> void MQScrollBar::AddChangingEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument), bool prior = false)
It adds events notified when a value is changing by user's operation.
An event by AddChangingEvent() is invoked when characters are modified by key input, and an event by AddChangedEvent() is invoked when Enter key is pressed or a focus removed by Tab key or a mouse operation.