16#ifndef __albaGUINamedPanel_H__
17#define __albaGUINamedPanel_H__
39 albaGUINamedPanel (wxWindow* parent,wxWindowID
id = -1,
bool CloseButton =
false,
bool HideTitle =
false);
44 void Add(wxWindow* window,
int option = 0,
int flag = wxEXPAND,
int border = 0) {window->Reparent(
this); m_Sizer->Add(window,option,flag,border);};
47 void Add(wxSizer* sizer,
int option = 0,
int flag = wxEXPAND,
int border = 0) {m_Sizer->Add(sizer, option,flag,border);};
50 bool Remove(wxWindow* window) {
return m_Sizer->Detach(window);};
53 bool Remove(wxSizer* sizer ) {
return m_Sizer->Detach(sizer);};
56 void SetTitle(wxString label) {
if(m_Label) m_Label->SetLabel(label);};
albaGUILab is a Label that notify user-click using the normal wxEvents.
Class Name: albaGUINamedPanel.
bool Remove(wxWindow *window)
Remove a widget from the panel.
albaGUINamedPanel * m_NextPanel
wxBoxSizer * GetTopSizer()
Returns TopSizer.
void Add(wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
Add a sizer to the panel.
void SetTitleColor(wxColour *color=NULL)
Change the background color of the title.
albaGUINamedPanel(wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
constructor.
void Add(wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
Add a widget to the panel.
wxPanel * GetTopPanel()
Returns Top Panel.
void SetTitle(wxString label)
Set the text shown on the title-bar.
virtual ~albaGUINamedPanel()
destructor.
bool Remove(wxSizer *sizer)
Remove a sizer from the panel.
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel