Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

sjgui::CStackPanelCtrlTmpl< Tslider, Tbase > Class Template Reference

Stack panel, which places children side by side. More...

#include <panel.h>

Inheritance diagram for sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >:

sjgui::CPanelCtrlTmpl< Tslider, Tbase > sjgui::classic::CStackPanelTmpl< Tslider, Tbase > sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase > sjgui::modern::CStackPanelTmpl< Tslider, Tbase > sjgui::classic::CSqueezePanelTmpl< Tslider, Tbase > sjgui::modern::CSqueezePanelTmpl< Tslider, Tbase > List of all members.

Public Member Functions

virtual void OnUpdatePos ()
 Update Client Area accordingly to the offsets.

void SetVertMode (bool b=true)
 Set/Reset vertical mode.

bool IsVertMode ()
 true if panel in the vertical mode.

void SetDist (int i)
 Set distance to the edge in mode directoin.

void SetSideDist (int i)
 Set distance to the edge opposite to the mode directoin.

int GetSideDist ()
 Returns distsnce to the edge.

int GetDist ()
 Returns distsnce to the edge.

int GetOffset ()
 Get distance between elements.

void SetOffset (int i)
 Set distance between elements.

void ReverseOrder (bool y=true)
 Order of placement.

virtual void OnReshape ()
 placement of the child windows

void SetHAlign (CWnd::eAligns e)
 Set horizontal align.

CWnd::eAligns GetHAlign ()
 Get horizontal align.

void SetVAlign (CWnd::eAligns e)
 Set vertical align.

CWnd::eAligns GetVAlign ()
 Get vertical align.

void SetAlign (CWnd::eAligns eH=ALIGN_LEFT, CWnd::eAligns eV=ALIGN_TOP)
 Set horizontal and vertical align options.


Detailed Description

template<class Tslider, class Tbase>
class sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >

Stack panel, which places children side by side.

Two modes: horizontal (default) and vertical. First registred child will stay on the left, and second one will be placed after it to the right and so on. So regestering order is important. Sizes of the elemnts are not altered, and if child does not fit, the part outsede the pannel will not be shown. /note If you change size of the child, you should call Reshape for the panel in order to update its position inside of the panel.


Member Function Documentation

template<class Tslider, class Tbase>
CWnd::eAligns sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::GetVAlign  )  [inline]
 

Get vertical align.

Should call Reshape() to take an effect.

template<class Tslider, class Tbase>
virtual void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::OnUpdatePos  )  [inline, virtual]
 

Update Client Area accordingly to the offsets.

template<class Tslider, class Tbase>
void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::ReverseOrder bool  y = true  )  [inline]
 

Order of placement.

If true last registred child windows goes in front. Should call Reshape() to take an effect.

template<class Tslider, class Tbase>
void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::SetAlign CWnd::eAligns  eH = ALIGN_LEFT,
CWnd::eAligns  eV = ALIGN_TOP
[inline]
 

Set horizontal and vertical align options.

Should call Reshape() to take an effect.

template<class Tslider, class Tbase>
void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::SetDist int  i  )  [inline]
 

Set distance to the edge in mode directoin.

Depending on align option (for horizontal mode):

ALIGN_LEFT: distance between the first child window and the left edge ALIGN_RIGHT: distance between the last child window and the right edge. ALIGN_CENTER: not used
Should call Reshape() to take an effect.
See also:
SetAlign()

template<class Tslider, class Tbase>
void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::SetSideDist int  i  )  [inline]
 

Set distance to the edge opposite to the mode directoin.

Depending on align option (for horizontal mode):

ALIGN_TOP: distance between the upper edge of child windows and the upper edge ALIGN_RIGHT: distance between the bootom edge of child windows and the bottom edge. ALIGN_CENTER: not used
Should call Reshape() to take an effect.
See also:
SetAlign()

template<class Tslider, class Tbase>
void sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >::SetVAlign CWnd::eAligns  e  )  [inline]
 

Set vertical align.

Should call Reshape() to take an effect.


The documentation for this class was generated from the following file:
sjgui logo
Quick Links:

 News
 Description
 Screen Shots
 Projects
 Downloads
 Source Code
 Help/FAQ
 Want to help?
 Credits
 Disclaimer


Documentation:

 Documentation
 Reference
 Lessons


Useful links:

sjcomp logo
sjcomp

opengl logo

nehe logo

SourceForge.net Logo

Last modified:


Started by Alexander Shyrokov. Generated at Wed Apr 28 12:31:06 2004 for the sjgui by doxygen 1.3.1. SourceForge.net Logo