#11477: wxButton would be good to align bitmap next to text
-------------------------+--------------------------------------------------
Reporter: pete_b | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: GUI-all | Version: 2.9.0
Keywords: | Blockedby:
Patch: 0 | Blocking:
-------------------------+--------------------------------------------------
wxButton's with a bitmap and a label look odd.
They look a lot better if the bitmap is aligned to the left of the text
and the whole lot is centred inside the button. As happens in Qt.
Maybe this could be offered as an additional alignment mode.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11477>
#11477: wxButton would be good to align bitmap next to text
--------------------------+-------------------------------------------------
Reporter: pete_b | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: GUI-all | Version: 2.9.0
Resolution: wontfix | Keywords:
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Changes (by vadz):
* status: new => closed
* resolution: => wontfix
Comment:
I don't know why are they odd (unless you see something different from the
button in the "Button" page of the widgets sample?) but we use the native
XP support for button images so we just follow the native behaviour here
(for XP+, there is no native support for button images in the previous
Windows versions).
IOW I don't think there is anything to change here and no other alignment
modes are supported by Windows.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11477#comment:1>
#11477: wxButton would be good to align bitmap next to text
--------------------------+-------------------------------------------------
Reporter: pete_b | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: GUI-all | Version: 2.9.0
Resolution: wontfix | Keywords:
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Comment(by pete_b):
This is on XP.
Attached image shows the difference between the current behaviour and the
aligned behaviour.
I think the bottom version with bitmaps aligned to the button text looks
much better.
Doesn't really matter a huge amount to me as I'm using a 'branch' of
wxButton anyway. But it would be nice not to have to do things this way.
I could probably put together a patch if interested.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11477#comment:2>
#11477: wxButton would be good to align bitmap next to text
--------------------------+-------------------------------------------------
Reporter: pete_b | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: GUI-all | Version: 2.9.0
Resolution: wontfix | Keywords:
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Comment(by vadz):
While I might subjectively prefer the "aligned" version too, it's just not
a good criterion for choosing it. wxWidgets wraps native API and provides
native UI. We currently do what XP itself does and unless there is some
way to use the native API to implement the "aligned" variant too I don't
think we are going to do anything about it.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11477#comment:3>