CWinScroller Class Reference

#include <scroller.h>

List of all members.

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


Detailed Description

Definition at line 163 of file scroller.h.


Constructor & Destructor Documentation

CWinScroller::CWinScroller BOOL  IsHorizontal  ) 
 

Default constructor for the CWinScroller class. Initialises various flags and variables with some reasonable- looking values.

Author:
Marc_Power (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/04

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 }

CWinScroller::~CWinScroller  )  [virtual]
 

Destroys a CWinScroller - deletes its child windows.

Author:
Marc_Power (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/04

Definition at line 364 of file scroller.cpp.

00365 {
00366 }


Member Function Documentation

BOOL CWinScroller::Create wxWindow *  pParent,
UINT32  nID,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize
 

Calls CScrollBar::Create with appropriate horizontal or vertical style.

Author:
Marc_Power (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/04
Parameters:
Same as CScrollBar::Create [INPUTS]
Returns:
TRUE if the scroller is successfully created.

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 }

virtual BOOL CWinScroller::IsHorizontal  )  [inline, virtual]
 

Definition at line 190 of file scroller.h.

00190 { return Horizontal; };


Member Data Documentation

BOOL CWinScroller::Horizontal [protected]
 

Definition at line 181 of file scroller.h.

INT32 CWinScroller::ScrollerSize = 0 [static, protected]
 

Definition at line 166 of file scroller.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:20 2007 for Camelot by  doxygen 1.4.4