Borderless Buttons [message #445482] |
Sat, 06 November 2004 15:54 |
Eclipse User |
|
|
|
Originally posted by: michaelh.mjhenderson.com
Hi,
How do I turn off the border on a Button widget?
I have an image I want to be clickable, like a button, but I don't want a
border, just the background color. There's somethin like this used to bring
up help in the plugin.xml editorm Overview section.
Is button the right widget, or do I need a custom widget?
Mike
|
|
|
|
Re: Borderless Buttons [message #445570 is a reply to message #445549] |
Mon, 08 November 2004 14:45 |
Eclipse User |
|
|
|
Originally posted by: michaelh.mjhenderson.com
Fabian Wolf wrote:
> Michael Henderson wrote:
>
>> Hi,
>> How do I turn off the border on a Button widget?
>>
>> I have an image I want to be clickable, like a button, but I don't want a
>> border, just the background color. There's somethin like this used to
>> bring up help in the plugin.xml editorm Overview section.
>>
>> Is button the right widget, or do I need a custom widget?
>
> Hi,
>
> try SWT.FLAT as style flag.
>
> Regards,
> Fabian
I'm already using SWT.FLAT, I still get the border, the button just appears
flat, not 3-D.
Mike
|
|
|
Re: Borderless Buttons [message #445576 is a reply to message #445570] |
Mon, 08 November 2004 15:53 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
There is no button style that has no borders.
You could try sticking the button in a composite and using
Button.getBorderWidth()
"Michael Henderson" <michaelh@mjhenderson.com> wrote in message
news:cmo2ki$i94$1@eclipse.org...
> Fabian Wolf wrote:
>
>> Michael Henderson wrote:
>>
>>> Hi,
>>> How do I turn off the border on a Button widget?
>>>
>>> I have an image I want to be clickable, like a button, but I don't want
>>> a
>>> border, just the background color. There's somethin like this used to
>>> bring up help in the plugin.xml editorm Overview section.
>>>
>>> Is button the right widget, or do I need a custom widget?
>>
>> Hi,
>>
>> try SWT.FLAT as style flag.
>>
>> Regards,
>> Fabian
>
> I'm already using SWT.FLAT, I still get the border, the button just
> appears
> flat, not 3-D.
>
> Mike
|
|
|
|
Powered by
FUDForum. Page generated in 0.06333 seconds