central alignement within panel

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
GUDU
In need of some credit
In need of some credit
Posts: 1
Joined: Thu Apr 15, 2021 7:17 am

central alignement within panel

Post by GUDU »

Hi
I guess this question has already been answered, but I can't find it in the list :-)
I use Code::Blocks 20.03 with wxWidgets 3.0.5 and wxSmith on Linux. Made an app with wxNotebook in wxFrame. In the notebook tabs I use panels, in the different panels several layout sizers (gridbag, flex, ...).
The problem I have is that I cannot center align those layout sizers within the panels. In one tab the content is a little bit wider, but in the other tabs content just left align and I don't like that.
Is there a simple solution without fix-resizing content?
tia
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: central alignement within panel

Post by doublemax »

I don't quite understand the question. Can you show a screenshot?
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: central alignement within panel

Post by ONEEYEMAN »

Hi,
And possibly some code?

Thank you.
Post Reply