Hidable/rollup lists - like Windows?
Hidable/rollup lists - like Windows?
Has anyone implemented a control that functions like the controls in Windows XP where you click their titles and they roll up?
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Like what? It is unclear to me what you mean, or which case of a roll-up implementation you mean. Can you give an example or two where such a thing is implemented, and where exactly?
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
wxFoldBar / wxFoldPanelBar has what you want. It is a side bar where the bars collapse when clicked upon.
It is fairly easy, simply change the size of the container window. When you want to change a wxPanel and make a "rollup" event use a wxTimer and e.g. decrease it's size every 100 ms or so.
Look at; wxWindow::SetSize, wxWindow::GetSize when applied on a wxPanel / wxDialog, the whole container dialog is resized.
- Jorgen
It is fairly easy, simply change the size of the container window. When you want to change a wxPanel and make a "rollup" event use a wxTimer and e.g. decrease it's size every 100 ms or so.
Look at; wxWindow::SetSize, wxWindow::GetSize when applied on a wxPanel / wxDialog, the whole container dialog is resized.
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb