SWT Buttons with image and Text [message #48121] |
Wed, 05 March 2003 15:34 |
Eclipse User |
|
|
|
Originally posted by: fcatrin.tuxpan.cl
Hi!
I'm facing a problem with SWT Buttons. I've seen that most SWT controls
supports images and text at the same time (tabs, menus, tables, etc). But
Button's don't.
I'm focusing on Win32 and Linux/GTK platform, and I know that GTK have a
native Button widget with image and label at the same time, so I looked
into SWT source code and I saw that the code disables the image when you
insert a text and viceversa.
Is this a multiplatform restriction? Is this valid in the win32 platform
also?
I thought about a style setting about avoiding this SWT/GTK behaviour, but
I don't know what the other i mplementations do.
A good option could be this: if the native widget supports both image and
text at the same time, then show them. If the native widget doesn't
support them, give priority to the last property set.
--
Franco Catrin L.
TUXPAN
|
|
|
Powered by
FUDForum. Page generated in 0.02426 seconds