Sliding Panel Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Sliding Panel

Post by extreme001 »

Hi wxWidgeters.

I'm searching for a slide in / slide out panel for wxWidgets.
An example: The panel is visible...now i click on the arrow and the panel slides out to the left and is hided, the arrow is visible shows to the right. After clicking the arrow the panel slides in and is visible.

Is there already a control?
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

Hi,

Not quite as you described (it opens vertically, not horizontally) but have a look at http://docs.wxwidgets.org/trunk/classwx ... _pane.html. That link is to the trunk docs, which show the appearance too; but the control is available in wx2.8.

Regards,

David
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Thank you very much. But i need it horizontal.
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Here are two screenshot from PhotoImpact. The first shows the content as normal, the second the behaviour after clicking the arrow. The content disappears. If the content is hided and the arrow was clicked the content shows up. Like the collapsable Pane. Hope this helps.
Attachments
collapse2.jpg
collapse2.jpg (11.08 KiB) Viewed 2228 times
collapse1.jpg
collapse1.jpg (25.65 KiB) Viewed 2228 times
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Problem solved!
Gabriele Giuseppini
Experienced Solver
Experienced Solver
Posts: 56
Joined: Fri Oct 12, 2018 6:12 pm
Location: Amsterdam, the Netherlands

Re: Sliding Panel

Post by Gabriele Giuseppini »

Does anyone have a suggestion on how to implement exactly what this user asked (10+ years ago!)? I'd like the exact look'n'feel of his example (thin border with arrow, etc.), except that the panel should slide vertically.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Sliding Panel

Post by doublemax »

Use the source, Luke!
Post Reply