logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

GUIToolkit::ScrollBar Class Reference

A standard scroll bar. More...

#include <ListBox.h>

Inheritance diagram for GUIToolkit::ScrollBar:

GUIToolkit::Component List of all members.

Public Methods

 ScrollBar (float min, float max, int steps)
 ~ScrollBar ()
 Destructor.

void PutInWinForm (WinForm *WF, int x0, int y0, int sizex, int sizey)
 Place on WinForm.

void HandleEvents (event e)
HWND getHWND ()
 Return windows handle.

void show ()
 Shows ScrollBar.

void hide ()
 Hides ScrollBar.

void set (float p)
 Sets thumb position to 'p' in the interval (min;max).

void setInt (int p)
 Sets thumb position to integer 'p' in the interval (0; steps).

float get ()
 Returns current position.


Detailed Description

A standard scroll bar.

Definition at line 85 of file ListBox.h.


Constructor & Destructor Documentation

GUIToolkit::ScrollBar::ScrollBar float    min,
float    max,
int    steps
 

Constructor. Specify min and max value (as returned from the get() method) and the number of possible states, 'steps'.

Definition at line 13 of file Listbox.cpp.


Member Function Documentation

void GUIToolkit::ScrollBar::HandleEvents event    e [virtual]
 

Calls user event handler. Notice: in contrast to a standard windows control, this one automatically takes care of updating the thumb position whenever someone clicks on it.

Reimplemented from GUIToolkit::Component.

Definition at line 62 of file Listbox.cpp.

References GUIToolkit::event::EventSource, get(), GUIToolkit::EventHandler::HandleEvents(), GUIToolkit::event::msg, set(), setInt(), and GUIToolkit::event::wParam.


The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen