Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Programatically open Combo list?
Programatically open Combo list? [message #461486] Mon, 26 September 2005 14:29 Go to next message
Mark Diggory is currently offline Mark DiggoryFriend
Messages: 202
Registered: July 2009
Senior Member
How can I programatically open a Combo's list and highlight an entry?

thanks,
Mark
Re: Programatically open Combo list? [message #461488 is a reply to message #461486] Mon, 26 September 2005 15:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Mark Diggory" <mdiggory@apache.org> wrote in message
news:dh90kf$2oi$1@news.eclipse.org...
> How can I programatically open a Combo's list
You cannot. (At least not in a platform-independent fashion).

> and highlight an entry?
>
combo.select(index)
If using a ComboViewer then call setSelection().
---
Sunil
Re: Programatically open Combo list? [message #461491 is a reply to message #461488] Mon, 26 September 2005 15:54 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> You cannot. (At least not in a platform-independent fashion).

maybe by emulating a mouse-over-event?
Re: Programatically open Combo list? [message #461492 is a reply to message #461488] Mon, 26 September 2005 17:04 Go to previous messageGo to next message
Mark Diggory is currently offline Mark DiggoryFriend
Messages: 202
Registered: July 2009
Senior Member
What about ComboViewer.listShowSelection()? Will this open the dropdown
and show the selection?

-Mark

Sunil Kamath wrote:
> "Mark Diggory" <mdiggory@apache.org> wrote in message
> news:dh90kf$2oi$1@news.eclipse.org...
>
>>How can I programatically open a Combo's list
>
> You cannot. (At least not in a platform-independent fashion).
>
>
>>and highlight an entry?
>>
>
> combo.select(index)
> If using a ComboViewer then call setSelection().
> ---
> Sunil
>
>
Re: Programatically open Combo list? [message #461493 is a reply to message #461492] Mon, 26 September 2005 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Mark Diggory" <mdiggory@apache.org> wrote in message
news:43382A36.9040705@apache.org...
> What about ComboViewer.listShowSelection()? Will this open the dropdown
> and show the selection?
>
> -Mark
>
Nope. This method does nothing.
---
Sunil
Re: Programatically open Combo list? [message #461578 is a reply to message #461491] Mon, 26 September 2005 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"arne anka" <arne.anka@ginguppin.de> wrote in message
news:op.sxpvsypyuyrgnr@komhem...
>> You cannot. (At least not in a platform-independent fashion).
>
> maybe by emulating a mouse-over-event?

How?
---
Sunil
Re: Programatically open Combo list? [message #461596 is a reply to message #461486] Mon, 26 September 2005 23:12 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=21619

"Mark Diggory" <mdiggory@apache.org> wrote in message
news:dh90kf$2oi$1@news.eclipse.org...
> How can I programatically open a Combo's list and highlight an entry?
>
> thanks,
> Mark
Re: Programatically open Combo list? [message #461686 is a reply to message #461578] Tue, 27 September 2005 07:22 Go to previous message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
>> maybe by emulating a mouse-over-event?
>
> How?

don't know atm, but i would think the default dropping is triggered be
such an event -- so one might be able to emulate it? if i would use it i
had to do further research ...
Previous Topic:Standalone SWT cheat sheet - puzzled
Next Topic:setOpaque() problem
Goto Forum:
  


Current Time: Sat Oct 21 05:14:34 GMT 2017

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

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