|
|
Re: Text Widget with Style SWT.NONE [message #123046 is a reply to message #123033] |
Wed, 25 February 2009 18:33 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Tom,
I found where is the problem. You use FormToolkit. In RCP the
FormToolkit asks OS for default border style. In RAP it is set to
SWT.BORDER (see FormToolkit#initializeBorderStyle()). To workaround your
problem just call FormToolkit#setBorderStyle(SWT.NULL) to remove the
default border for this form toolkit.
Best,
Ivan
Ivan Furnadjiev wrote:
> Hi Tom,
> I've checked it with Controls Demo -> Text tab and the Text widget
> with style SWT.NONE has no border. Which version of RAP do you use?
> Any custom theme?
> Can you post any snippet to reproduce it?
> Best,
> Ivan
>
> Thomas Haskes wrote:
>> Hi everyone,
>>
>> I hope this isn't a silly Question, but i recently noticed that Text
>> Widgets with the Style Flag SWT.NONE don't have any Borders in RCP, but
>> in RAP they do. I searched for this topic but couldn't find anything. I
>> attached to screenshots both from RAP and RCP. Is this meant to be?
>>
>> Cheers, Tom
>>
>>
>> ------------------------------------------------------------ ------------
>>
>>
>> ------------------------------------------------------------ ------------
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04837 seconds