ALBA
albaGUIScrolledPanel.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIScrolledPanel
5 Authors: Silvano Imboden
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaGUIScrolledPanel_H__
17#define __albaGUIScrolledPanel_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21
22//----------------------------------------------------------------------------
23// albaGUIScrolledPanel :
29//----------------------------------------------------------------------------
30class ALBA_EXPORT albaGUIScrolledPanel: public wxScrolledWindow
31{
32public:
33 albaGUIScrolledPanel(wxWindow* parent,wxWindowID id = -1);
35
37 void Add(wxWindow* window,int option = 0, int flag = wxEXPAND, int border = 0);
38
40 void Add(wxSizer* sizer, int option = 0, int flag = wxEXPAND, int border = 0);
41
43 bool Remove(wxWindow* window);
44
46 bool Remove(wxSizer* sizer );
47
51 void FitInside();
52
54 virtual bool Layout();
55
56
57protected:
58 wxBoxSizer *m_Sizer;
59
60DECLARE_EVENT_TABLE()
61};
62#endif
albaGUIScrolledPanel is a Panel on which is possible to add child-widget.
bool Remove(wxSizer *sizer)
Remove a sizer from the scrolled panel.
void Add(wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
Add a window into the scrolled panel.
bool Remove(wxWindow *window)
Remove a window from the scrolled panel.
albaGUIScrolledPanel(wxWindow *parent, wxWindowID id=-1)
virtual ~albaGUIScrolledPanel()
void Add(wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
Add a sizer into the scrolled panel.
virtual bool Layout()
Redraw the scrolled window.
void FitInside()
Adjust the ScrollBar Settings.