Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Border problem of CCombo in the FormEditor.
Border problem of CCombo in the FormEditor. [message #323768] Mon, 07 January 2008 20:46 Go to next message
Eclipse UserFriend
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 #323771 is a reply to message #323768] Tue, 08 January 2008 03:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: demboos.privonly.nospam.pl

SWT.READONLY is probably what you need.

--
Szymon

Dollyn pisze:
> 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!
Re: Border problem of CCombo in the FormEditor. [message #323774 is a reply to message #323768] Tue, 08 January 2008 09:36 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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/*
Previous Topic:RuleBasedScanner and getColumn()
Next Topic:ResourceBundle located in another Plugin without Classes
Goto Forum:
  


Current Time: Wed Jul 16 14:38:21 EDT 2025

Powered by FUDForum. Page generated in 0.05011 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top