alignment problem of vertical style toolbar

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
shawnee
Experienced Solver
Experienced Solver
Posts: 78
Joined: Tue Jan 16, 2018 1:05 am

alignment problem of vertical style toolbar

Post by shawnee »

I created a vertical sytle wxToolbar(wxTB_VERTICAL | wxTB_FLAT | wxTB_NODIVIDER | wxTB_HORZ_LAYOUT | wxTB_TEXT).
The upper toolbutton is a normal button. The lower toolbutton is a button with dropdown menu. Both of buttons have the same icon(16x16).
As you see, they are not left-alignment.

How could be this?

BTW: this toolbar is added into a ribbon panel. I'm using wxWidgets 3.1 and under Windows 10.

the link of picture: https://screenshot.net/zh/9qg41ap
Image
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: alignment problem of vertical style toolbar

Post by ONEEYEMAN »

Hi,
Is it reproducible in the toolbar sample?

Thank you.
shawnee
Experienced Solver
Experienced Solver
Posts: 78
Joined: Tue Jan 16, 2018 1:05 am

Re: alignment problem of vertical style toolbar

Post by shawnee »

ONEEYEMAN wrote:Hi,
Is it reproducible in the toolbar sample?

Thank you.
the codes are not from wxWidgets toolbar sample.
this toolbar is just as an embeded controls into a ribbon panel.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: alignment problem of vertical style toolbar

Post by ONEEYEMAN »

Hi,
I understand that. But that's not what I'm asking.
Can the problem be seen in the toolbar sample?

Also, this is kind of a weird design - ribbons are a successors for the toolbars. Why do you need to embed one into the ribbon?

Thank you.
Post Reply