Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » need a check comboBox
need a check comboBox [message #453967] Fri, 15 April 2005 06:54 Go to next message
Michael Seele is currently offline Michael SeeleFriend
Messages: 124
Registered: July 2009
Senior Member
hi,
i need a combo box where you can check/select values in the comboBox? is
this available in swt?

thx mseele
Re: need a check comboBox [message #453968 is a reply to message #453967] Fri, 15 April 2005 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.j.nilsson.sverige.nu

Hi,

I actually don't know if this is available in SWT or not (I would guess,
not), but on the other hand I don't think I've seen anything like this in
any operating system I've used. Could you give an example where this is
used already?

If not, isn't it a good idea to try to use the type of widgets that your
potential users are used to? Wouldn't the usability of your application
suffer if you introduced these types of un-orthodox things?

If you clarify what you would like to achieve (instead of how) perhaps
someone in this news group would be able to suggest a more native-os way
of doing it.

Just my two cents.

kind regards,
martin
Re: need a check comboBox [message #453973 is a reply to message #453968] Fri, 15 April 2005 09:59 Go to previous messageGo to next message
Michael Seele is currently offline Michael SeeleFriend
Messages: 124
Registered: July 2009
Senior Member
mozilla thunderbird uses a checkable combo box for filtering(right-upper
edge)...
Re: need a check comboBox [message #453976 is a reply to message #453973] Fri, 15 April 2005 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.j.nilsson.sverige.nu

Michael Seele wrote:
> mozilla thunderbird uses a checkable combo box for
> filtering(right-upper edge)...

Ah, I have never noticed that although I run ThunderBird myself at home. I
realise now that I should have been a bit more verbose in my previous
posting.

This is my idea of SWT:

A GUI class library for making applications
that uses the native widgets of the different
operating systems, enabling applications to
look native although they in reality are
cross-platform.

I know there is lots more to SWT and I do not mean any offence to anyone
of the bright minds behind SWT, but this is basically why I use SWT
instead of SWING. Well, that and the ease of use.

I mostly develop for Windows and in that respect SWT is feature complete
for me, I haven't found any native widgets in Windows which can't be used
in SWT (perhaps there are some, but I haven't found/needed them). This
enables me to write applications that really look like something that
Microsoft themselves could have released (if that is something to
desire... :-). It helps me to enhance the usability of my programs by
restricting me to widgets that feels well-known to my users [1].

This restriction of SWT is actually an important thing for me, I know I
can extend SWT and probably make any kind of strange widgets that I'd
like, but this should be discouraged and new custom widgets should only be
created if all else fails (in my book at least). I've a long time ago
realised that although Windows XP and for example OSX look very
dissimilar, they are both founded on a lot of deep thinking about
usability and it is not likely that I would know better than the designers
of the OS.

Although I like ThunderBird very much I'm not sure that the creators share
my opinions. I deeply believe that it is not my place to extend the OS
with new widgets, I should work with the tools they have given me (via SWT
in this case) and accept the limits this gives me.

Well, perhaps I better stop this long-windedness before I start to sound
religious, I hope I've explained my point. If a checkbox-combo really is a
part of Windows, you can pretty much ignore these ramblings. Otherwise, I
would humbly suggest that there is another way to do exactly the same
thing you are trying to do, but with widgets more well known to your users.

I know that this is not the answer you wanted, please accept my apologies
for that, but perhaps you can find some meaning in what I've written
anyway.


kind regards,
martin

[1] As a side-note, SWT/Eclipse has created more java-converts than any
other java-technology I know of ("Wow, that looks really nice and is
really responsive, is that really done in Java?").
Re: need a check comboBox [message #453978 is a reply to message #453967] Fri, 15 April 2005 12:55 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Combo and CCombo won't do these, so if you really want this then you'll need
your own component. CCombo provides a good starting point, just change its
popup List to a Table with SWT.CHECK that has no lines or header.

Grant

"Michael Seele" <mseele@guh-software.de> wrote in message
news:889826ee001d542175fe0184cb474b63$1@www.eclipse.org...
> hi,
> i need a combo box where you can check/select values in the comboBox? is
> this available in swt?
>
> thx mseele
>
Re: need a check comboBox [message #458848 is a reply to message #453978] Fri, 22 July 2005 15:35 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
I need extactly the same widget... Does anybody have an example of how I
can do it ?

Or is there another way to have a "user-friendly" dropdown with multiple
selection ?

Thanks !


Grant Gayed wrote:
> Combo and CCombo won't do these, so if you really want this then you'll need
> your own component. CCombo provides a good starting point, just change its
> popup List to a Table with SWT.CHECK that has no lines or header.
>
> Grant
>
> "Michael Seele" <mseele@guh-software.de> wrote in message
> news:889826ee001d542175fe0184cb474b63$1@www.eclipse.org...
>
>>hi,
>>i need a combo box where you can check/select values in the comboBox? is
>>this available in swt?
>>
>>thx mseele
>>
>
>
>
Re: need a check comboBox [message #458850 is a reply to message #458848] Fri, 22 July 2005 16:48 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Vincent Etter:

> I need extactly the same widget... Does anybody have an example of how I
> can do it ?

Take CCombo and rework it into CTableCombo, that shows Table with
SWT.CHECK instead of List.


Konstantin Scheglov,
Google, Inc.
Re: need a check comboBox [message #458863 is a reply to message #453967] Mon, 25 July 2005 06:12 Go to previous messageGo to next message
Daniel Hirscher is currently offline Daniel HirscherFriend
Messages: 43
Registered: July 2009
Member
Michael,

> i need a combo box where you can check/select values in the comboBox? is
> this available in swt?

A combo box is a 1 out of N selection element.

What you need is a M out of N selection element.

Why don't you use a button in combination with a dialog which displays a
list where each entry has a checkbox. JFace provides that.
If you want to show the selection near the button, then place a label in
front or after it.

Daniel
Re: need a check comboBox [message #458865 is a reply to message #458863] Mon, 25 July 2005 06:27 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Daniel Hirscher a écrit :
> Michael,
>
> A combo box is a 1 out of N selection element.
>
> What you need is a M out of N selection element.

Exactly ;) !

>
> Why don't you use a button in combination with a dialog which displays a
> list where each entry has a checkbox. JFace provides that.
> If you want to show the selection near the button, then place a label in
> front or after it.
>
> Daniel

It could be a solution, but how can I place the dialog so that it seems
to "roll out" from the button ? (Hope you'll understant me, my english
is a little... limited ;) !)

Thanks for your answers !

Vincent
Re: need a check comboBox [message #458867 is a reply to message #458865] Mon, 25 July 2005 08:22 Go to previous message
Daniel Hirscher is currently offline Daniel HirscherFriend
Messages: 43
Registered: July 2009
Member
Vincent,

>> A combo box is a 1 out of N selection element.
>>
>> What you need is a M out of N selection element.
>
> Exactly ;) !
>
>>
>> Why don't you use a button in combination with a dialog which displays
>> a list where each entry has a checkbox. JFace provides that.
>> If you want to show the selection near the button, then place a label
>> in front or after it.

> It could be a solution, but how can I place the dialog so that it seems
> to "roll out" from the button ? (Hope you'll understant me, my english
> is a little... limited ;) !)

Why is it so important to let it look like a combo box? It is not a
combo box. So don't irritate your users.

Maybe a button labeled "..." or "Filter..." is sufficient for your
needs. But try to label it more meaningful.

Look at the "Filters..." view menu item on the resource navigator or the
filter toolbar button on the problem view. They oben a little dialog
which includes a list with checkboxes.

Daniel
Previous Topic:About two versions of eclipse-SDK
Next Topic:Search plugin only in one specific perspective?
Goto Forum:
  


Current Time: Wed Oct 28 12:27:16 GMT 2020

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

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

Back to the top