Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
sjgui::CStackPanelCtrlTmpl< Tslider, Tbase > Class Template ReferenceStack panel, which places children side by side.
More...
#include <panel.h>
Inheritance diagram for sjgui::CStackPanelCtrlTmpl< Tslider, Tbase >:
List of all members.
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:
|
|