Add wxPanel to a wxToolBar?

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
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Add wxPanel to a wxToolBar?

Post by Elmi »

Hello,

Is there a possibility to add a wxPanel (which itself contains a Layout and some control elements) to a wxToolBar? I only found some functions AddTool(), AddControl(),... which are not suitable for this.

Thanks!
coderrc
Earned some good credits
Earned some good credits
Posts: 141
Joined: Tue Nov 01, 2016 2:46 pm

Re: Add wxPanel to a wxToolBar?

Post by coderrc »

does creating wxControl derived class with the things you want in it not work?
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Re: Add wxPanel to a wxToolBar?

Post by Elmi »

You are of course right! MY mistake: I expected SetSizer() to be a member of wxPanel but since it is a member of wxWindow everything is fine. Thanks for kicking me into the right direction :-)
Post Reply