wxPanel shows no minimize button

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
wxwxwx
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Thu Dec 20, 2012 4:25 pm

wxPanel shows no minimize button

Post by wxwxwx »

Hello,
i can maximize the panel but not minimize, because it shows no minimize button even flag for this been set.
Below, none of the panels, _panel_1,... show a minimize button but a maximize button

Code: Select all

m_mgr.SetManagedWindow(this);
	m_mgr.SetFlags(wxAUI_MGR_DEFAULT);


	// contract search def
	_panel_1 = new panel_1(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
	m_mgr.AddPane(_panel_1, wxAuiPaneInfo().Top().Caption(wxT("Panel 1"))
		.CloseButton(false).Movable(true).Dock().Resizable(true).Floatable(false)
		.MinimizeButton(true)
		.MaximizeButton(true)
		
		
		.MinSize(wxSize(-1, upper_height / 2))
		.BestSize(wxSize(-1, upper_height))
		.MaxSize(wxSize(-1, upper_height))
		

	);
	

	// combo def
	_panel_2 = new panel_1(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 200), wxTAB_TRAVERSAL);
	m_mgr.AddPane(_panel_2, wxAuiPaneInfo().Left().Caption(wxT("Panel 2"))
		.CloseButton(false).Dock().Resizable(true).Floatable(false)
		.MinimizeButton(true)
		.MaximizeButton(true)
		
		.MinSize(wxSize(400, -1))
		.BestSize(wxSize(200, lower_height))
		.MaxSize(wxSize(-1, lower_height))
		
	);

	// combo list
	_panel_3 = new panel_3(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
	m_mgr.AddPane(_panel_3, wxAuiPaneInfo().Center().Caption(wxT("Panel 3"))
		.CloseButton(false).Movable(false).Dock().Resizable(true).Floatable(false)
		.MinimizeButton(true)
		.MaximizeButton(true)
		
		.MinSize(wxSize(-1, -1))
		.BestSize(wxSize(400, lower_height))
		.MaxSize(wxSize(-1, lower_height))
		
	);
	

	m_mgr.Update();
Cant get information about wxAuiPaneInfo, because getting cloud flare error.
wx version is 3.1.4

How to get wxPanel minimize button showing up and working ?
Thank you
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxPanel shows no minimize button

Post by ONEEYEMAN »

Hi,
Do you see the "minimize button" when running "auidemo"?

What is your OS?

Thank you.
wxwxwx
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Thu Dec 20, 2012 4:25 pm

Re: wxPanel shows no minimize button

Post by wxwxwx »

Hello,
OS is Windows 10, 1902.

Need to checkout demo first.
Will report. Thank you.
Post Reply