How to make a dockable frame with minimize and maximize buttons? 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
czczzzz
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu May 13, 2021 10:34 am

How to make a dockable frame with minimize and maximize buttons?

Post by czczzzz »

I am trying to make a frame with child frames which can dock or float.

I have tried wxAuiManager,but AddPane() can not add a wxFrame(it will mix up the whole frame......) :
20210925.JPG
20210925.JPG (63.12 KiB) Viewed 1669 times
And wxMDIParentFrame's "style" is really too "old".

I have tried wxAuiMDI too,but it can not be float..... :shock:

if I use wxPanel insteal of wxFrame,there is no minimize or maximize buttons when wxAuiManager floats the wxPanel......
(It seems like that everything ,which is floated by wxAuimanager,only have a close button.) :(






hope for help
and sorry for my english
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to make a dockable frame with minimize and maximize buttons?

Post by ONEEYEMAN »

Hi,
Why do you need minimize/maximize buttons? They don't make much sense..

Thank you.

P.S.: Whats your wx version and what OS you are testing under?
czczzzz
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu May 13, 2021 10:34 am

Re: How to make a dockable frame with minimize and maximize buttons?

Post by czczzzz »

I want another "fully functional" frame so I can minimize it when I don't want to see it ,and I can maximize it when I want to focus on it.

And if I don't need to focus on it but I still need it, I want it to be docked to somewhere...


and my version is 3.15 OS is win10 I am using vs2019
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to make a dockable frame with minimize and maximize buttons?

Post by ONEEYEMAN »

Hi,
How do you plan to handle docking/undocking with the title bar and minimize/maximize buttons?

I think you are overthinking the design of the application. And you want more things that you can (easily) handle.

If you don't want the window in front - just hide the panel or dock it.

Or use AUIMDI framework.

Thank you.
czczzzz
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu May 13, 2021 10:34 am

Re: How to make a dockable frame with minimize and maximize buttons?

Post by czczzzz »

ONEEYEMAN wrote: Sun Sep 26, 2021 6:45 pm Hi,
How do you plan to handle docking/undocking with the title bar and minimize/maximize buttons?

I think you are overthinking the design of the application. And you want more things that you can (easily) handle.

If you don't want the window in front - just hide the panel or dock it.

Or use AUIMDI framework.

Thank you.
I will stick with wxAUIMDI temporarily :(

Hope there will be a better method one day. :) :)

Thank you so much!
Post Reply