#include <GScrollBar.h>
Inheritance diagram for GScrollBar:
Public Member Functions | |
GScrollBar () | |
Call this constructor for embeded scrollbar say in a window. | |
GScrollBar (int id, int x, int y, int cx, int cy, char *name) | |
Call this constructor for a control based scrollbar, say in a dialog. | |
bool | Vertical () |
True if vertical. | |
void | SetVertical (bool v) |
Makes the scrollar vertical. | |
int | Value () |
Gets the current position of the scrollbar. | |
void | Value (int p) |
Sets the position of the scrollbar. | |
void | Limits (int &Low, int &High) |
Gets the limits. | |
void | SetLimits (int Low, int High) |
Sets the limits. | |
int | Page () |
Gets the page size. | |
void | SetPage (int p) |
Sets the page size. | |
bool | Attach (GView *p) |
Attaches the view to a parent view. | |
void | OnPaint (GSurface *pDC) |
Called to paint the onscreen representation of the view. | |
void | OnPosChange () |
Called when the view position changes. | |
void | OnMouseClick (GMouse &m) |
The mouse was clicked over this view. | |
void | OnMouseMove (GMouse &m) |
The mouse moves over the control. | |
bool | OnKey (GKey &k) |
A key was pressed while this view has focus. | |
void | OnMouseWheel (double Lines) |
The mouse wheel was scrolled. | |
void | OnPulse () |
Called every so often by the timer system. | |
int | OnEvent (GMessage *Msg) |
Called to process every message received by this window. | |
virtual void | OnChange (int Pos) |
Called when the value changes. | |
Static Public Member Functions | |
static int | GetScrollSize () |
Returns the size of the bar, i.e. the width if vertical or the height if horizontal. | |
Friends | |
class | GLayout |
This control can be used as an actual free standing window or to address built in controls on a GLayout view.
|
Attaches the view to a parent view. Each GView starts in an un-attached state. When you attach it to a Parent GView the view gains a OS-specific handle and becomes visible on the screen (if the Visible() property is TRUE). However if a view is inserted into the Children list of a GView and it's parent pointer is set correctly it will still paint on the screen without the OS knowing about it. This is known in Lgi as a "virtual window" and is primarily used to cut down on windowing resources. Mouse clicks are handled by the parent window and passed down to the virtual children. Virtual children are somewhat limited. They can't receive focus, or participate in drag and drop operations. If you want to see an example have a look at the GToolBar code. Reimplemented from GView. |
|
Called every so often by the timer system.
Reimplemented from GView. |