Border problem of CCombo in the FormEditor. [message #323768] |
Mon, 07 January 2008 20:46  |
Eclipse User |
|
|
|
Hi,
There is no toolkit.createCCombo() method, so I create a CCombo using
the new directly. But there is no border under the theme "windows xp"
(while there is a border under the theme "windows classic"), and if I
create it with the SWT.BORDER, it looks ugly under the theme "windows
classic".
The Combo control works fine. But there is no setEditable() method in
the Combo.
Thanks!
--
*/Dollyn/*
|
|
|
|
Re: Border problem of CCombo in the FormEditor. [message #323774 is a reply to message #323768] |
Tue, 08 January 2008 09:36   |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Dollyn wrote:
> Hi,
> There is no toolkit.createCCombo() method, so I create a CCombo using
> the new directly. But there is no border under the theme "windows xp"
> (while there is a border under the theme "windows classic"), and if I
> create it with the SWT.BORDER, it looks ugly under the theme "windows
> classic".
Did you adapt the combo you created with the Toolkit?
FormToolkit.adapt(Control, boolean, boolean)
>
> The Combo control works fine. But there is no setEditable() method in
> the Combo.
As someone else pointed out, you can specify READONLY as one of the
style bits when creating the Combo. You can also use setEnabled(boolean)
after creation, but that will totally enable/disable the combo (list
included), not just the text edit portion.
Hope this helps,
Eric
|
|
|
Re: Border problem of CCombo in the FormEditor. [message #323848 is a reply to message #323774] |
Thu, 10 January 2008 03:46  |
Eclipse User |
|
|
|
Hi,
I tried the "SWT.READ_ONLY", and it's just what I want.
Thanks!
Eric Rizzo wrote:
> Dollyn wrote:
>
>> Hi,
>> There is no toolkit.createCCombo() method, so I create a CCombo using
>> the new directly. But there is no border under the theme "windows xp"
>> (while there is a border under the theme "windows classic"), and if I
>> create it with the SWT.BORDER, it looks ugly under the theme "windows
>> classic".
>>
>
> Did you adapt the combo you created with the Toolkit?
> FormToolkit.adapt(Control, boolean, boolean)
>
>
>> The Combo control works fine. But there is no setEditable() method in
>> the Combo.
>>
>
> As someone else pointed out, you can specify READONLY as one of the
> style bits when creating the Combo. You can also use setEnabled(boolean)
> after creation, but that will totally enable/disable the combo (list
> included), not just the text edit portion.
>
> Hope this helps,
> Eric
>
--
*/Dollyn/*
|
|
|
Powered by
FUDForum. Page generated in 0.05011 seconds