#include <scroller.h>
Public Member Functions | |
CWinScroller (BOOL Horizontal) | |
Default constructor for the CWinScroller class. Initialises various flags and variables with some reasonable- looking values. | |
virtual | ~CWinScroller () |
Destroys a CWinScroller - deletes its child windows. | |
BOOL | Create (wxWindow *pParent, UINT32 nID, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) |
Calls CScrollBar::Create with appropriate horizontal or vertical style. | |
virtual BOOL | IsHorizontal () |
Protected Attributes | |
BOOL | Horizontal |
Static Protected Attributes | |
static INT32 | ScrollerSize = 0 |
Definition at line 163 of file scroller.h.
|
Default constructor for the CWinScroller class. Initialises various flags and variables with some reasonable- looking values.
Definition at line 337 of file scroller.cpp. 00338 { 00339 Horizontal = IsHorizontal; 00340 #ifdef GERRYXXX 00341 Enabled = TRUE; 00342 Proportional = TRUE; 00343 // Set some default values for the range etc. If we don't do that then 00344 // the scroll bars are invisible when first created! 00345 ThumbVal = MinVal = 0; 00346 Range = MaxVal = 100; 00347 LineSize = Delta = Granularity = 1; 00348 PageSize = 10; 00349 ScrollerSize = GetSystemMetrics(SM_CYHSCROLL); // UIC 00350 #endif 00351 }
|
|
Destroys a CWinScroller - deletes its child windows.
Definition at line 364 of file scroller.cpp.
|
|
Calls CScrollBar::Create with appropriate horizontal or vertical style.
Definition at line 381 of file scroller.cpp. 00382 { 00383 ENSURE(pParent != NULL, "CWinScroller objects must have a parent window!\n"); 00384 INT32 style = IsHorizontal() ? wxSB_HORIZONTAL : wxSB_VERTICAL; 00385 return wxScrollBar::Create(pParent, nID, pos, size, style); 00386 }
|
|
Definition at line 190 of file scroller.h. 00190 { return Horizontal; };
|
|
Definition at line 181 of file scroller.h. |
|
Definition at line 166 of file scroller.h. |