Hidable/rollup lists - like Windows?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
chadman
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Mar 23, 2005 8:28 am

Hidable/rollup lists - like Windows?

Post by chadman »

Has anyone implemented a control that functions like the controls in Windows XP where you click their titles and they roll up?
leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio »

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/
chadman
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Mar 23, 2005 8:28 am

Post by chadman »

Like the ones on the left side of the Windows Search dialog. The ones that say, "When was it modified?" and "What size is it?"

Another place is when you open explorer and close the left sidewindow, you'll see them on hte left. They say "Other places" and "Details".
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

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
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
chadman
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Mar 23, 2005 8:28 am

Post by chadman »

Thanks!
Post Reply