button look changes too much, when adding an icon.


In a dialog - designed with ui designer and wrapped in DialogWrapper-,
setting the icon with
button.setIcon (anIcon)

changes the button look (shape and text) completely:
(see attached image)

Any idea?

The Horizon/Vertical size policy of the buttons is 'Can Shring, Can Grow'
Horizon fill: None


Alain



Attachment(s):
buttonShapeProblem.png
4 comments
Comment actions Permalink

Alain, I'm sure, this is a Mac OS X look-n-feel issue. Independent of this
issue, please don't use icons for plain command buttons, only for toolbar
buttons. Either a button text (command button) or an icon (toolbar button).

Tom

0
Comment actions Permalink

Tom,

please don't use icons for plain command buttons, only for toolbar
buttons. Either a button text (command button) or an icon (toolbar
button).

>


I don't agree with applying this fixed rule religiously:
- plain text button force you to read all the buttons captions, and
- plain icons force you to remember what they stand for.

In some cases when you have both, they collaborate really well, they
make you read less, guess less, think less and decide faster.

Look at Thunderbird's toolbar:




Remove the text, or remove the icons, and you will be less effective.
I'm sure you'll use the tooltips more than you should.

Alain



Attachment(s):
tbirdToolbar.png
0
Comment actions Permalink

Alain, you are right, there are some toolbar buttons with text like in
Thunderbird. But toolbar buttons are different from command buttons, e.g.
they never should be able to get focus, but your initially sent screenshot
showed command buttons, which IMHO should not have an icon (OK, some Delphi
kiddies add them...).

Tom

0
Comment actions Permalink


"Thomas Singer (MoTJ)" <I@HateSpam.de> wrote in message
news:cvcc27$lf$1@is.intellij.net...

Alain, you are right, there are some toolbar buttons with

text like in

Thunderbird. But toolbar buttons are different from

command buttons, e.g.

they never should be able to get focus, but your initially

sent screenshot

showed command buttons, which IMHO should not have an icon

(OK, some Delphi

kiddies add them...).


Gnome has it all around, and I hate them (especially the one
with the round floating life preserver for the Help button,
the ugliest icon ever).

BTW, older and larger BWCC icons from BC++ 3.0 look better
that smaller Delphi ones...


0

Please sign in to leave a comment.