![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXScrollBar.h>
The range is the total size of the document, the page size is the viewable space available for the document. The size of the scrollbar thumb is adjusted to give feedback of the relative sizes of each. The scroll bar may be manipulated by the left mouse button (normal scrolling), by the middle mouse button (same as the left mouse only the scroll position can jump to the place where the click is made), or by the right mouse button (vernier- or fine-scrolling). Holding down the control key while scrolling with the left or middle mouse button also enables vernier-scrolling mode. The vernier-scrolling mode is very useful for accurate positioning in large documents. Finally, if the mouse sports a wheel, the scroll bar can be manipulated by means of the mouse wheel as well. Holding down the Control-key during wheel motion will cause the scrolling to go faster than normal. While moving the scroll bar, a message of type SEL_CHANGED will be sent to the target, and the message data will reflect the current position of type FXint. At the end of the interaction, the scroll bar will send a message of type SEL_COMMAND to notify the target of the final position.
See also:
FX::FXScrollBar::FXScrollBar | ( | FXComposite * | p, | |
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = SCROLLBAR_VERTICAL , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 0 , |
|||
FXint | h = 0 | |||
) |
Construct scroll bar.
virtual FX::FXScrollBar::~FXScrollBar | ( | ) | [virtual] |
Destructor.
virtual FXint FX::FXScrollBar::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXScrollBar::getDefaultHeight | ( | ) | [virtual] |
virtual void FX::FXScrollBar::layout | ( | ) | [virtual] |
Set content size range.
The range must be at least 1, but may be smaller than the viewable page size.
FXint FX::FXScrollBar::getRange | ( | ) | const [inline] |
Set the viewable page size.
The page size must be at least 1, but may be larger than the range.
FXint FX::FXScrollBar::getPage | ( | ) | const [inline] |
Return viewable page size.
Change scroll position.
The position is always greater or equal to 0, up to the range less the page size. If the range is less than the page size, the position will simply be equal to zero.
FXint FX::FXScrollBar::getPosition | ( | ) | const [inline] |
Return current scroll position.
void FX::FXScrollBar::setLine | ( | FXint | l | ) |
Set scoll increment for line.
FXint FX::FXScrollBar::getLine | ( | ) | const [inline] |
Return line increment.
void FX::FXScrollBar::setHiliteColor | ( | FXColor | clr | ) |
Change highlight color.
FXColor FX::FXScrollBar::getHiliteColor | ( | ) | const [inline] |
Return highlight color.
void FX::FXScrollBar::setShadowColor | ( | FXColor | clr | ) |
Change the shadow color.
FXColor FX::FXScrollBar::getShadowColor | ( | ) | const [inline] |
Return the shadow color.
void FX::FXScrollBar::setBorderColor | ( | FXColor | clr | ) |
Change the border color.
FXColor FX::FXScrollBar::getBorderColor | ( | ) | const [inline] |
Return the border color.
void FX::FXScrollBar::setArrowColor | ( | FXColor | clr | ) |
Change the arrow color.
FXColor FX::FXScrollBar::getArrowColor | ( | ) | const [inline] |
Return the arrow color.
void FX::FXScrollBar::setScrollBarStyle | ( | FXuint | style | ) |
Change the scrollbar style.
FXuint FX::FXScrollBar::getScrollBarStyle | ( | ) | const |
Return the scrollbar style.
void FX::FXScrollBar::setBarSize | ( | FXint | size | ) |
Change the bar size.
FXint FX::FXScrollBar::getBarSize | ( | ) | const [inline] |
Return the bar size.
virtual void FX::FXScrollBar::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXScrollBar::load | ( | FXStream & | store | ) | [virtual] |
![]() |