Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT 2.1: Increasing Combo popup's Item count
SWT 2.1: Increasing Combo popup's Item count [message #464510] Wed, 23 November 2005 15:53 Go to next message
Eclipse UserFriend
Originally posted by: rajagopalm.hcltech.com

Hi All,

I am working on developing plugins for WSAD 5.1 and so am forced to use the SWT version that comes bundled with it.

I want to increase the popup menus default display item count from 5 to around 15. Currently I do not find and direct method call to do this.

Is there any way this can be acheived.

Thanks in advance,
Ralf
Re: SWT 2.1: Increasing Combo popup's Item count [message #464516 is a reply to message #464510] Wed, 23 November 2005 16:23 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
In 3.0 and beyond you can use CCombo.setVisibleItemCount(). There is no
similar method for Combo.

"Ralf Mathis" <rajagopalm@hcltech.com> wrote in message
news:11408326.1132761227258.JavaMail.root@cp1.javalobby.org...
> Hi All,
>
> I am working on developing plugins for WSAD 5.1 and so am forced to use
> the SWT version that comes bundled with it.
>
> I want to increase the popup menus default display item count from 5 to
> around 15. Currently I do not find and direct method call to do this.
>
> Is there any way this can be acheived.
>
> Thanks in advance,
> Ralf
Re: SWT 2.1: Increasing Combo popup's Item count [message #464518 is a reply to message #464516] Wed, 23 November 2005 16:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rajagopalm.hcltech.com

> In 3.0 and beyond you can use
> CCombo.setVisibleItemCount(). There is no
> similar method for Combo.
>

Unfortunately I cannot use eclipse 3.0 as I am tied to eclipse 2.1 that comes with WSAD.

Would it make sense or is it even possible to create a custom widget every thing like Combo only the setVisibleItemCount() method added to it.

I need it to work only on windows that to as stop gap as we are moving to RAD in a few months

Thanks
Re: SWT 2.1: Increasing Combo popup's Item count [message #464528 is a reply to message #464518] Wed, 23 November 2005 19:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi,

you can try to use the 3.x CCombo class in your 2.1 environment (get the
source file form the swt source and use it in your project). Maybe this
works. Otherwise you have to dig into the sourcecode of the 2.1 CCombo
and either add the method or just change the number of items generally.
I never tried this but heard from from people on this newsgroup doing
this in 2.1 times...

Good luck!
Friederich


Ralf Mathis wrote:
>>In 3.0 and beyond you can use
>>CCombo.setVisibleItemCount(). There is no
>>similar method for Combo.
>>
>
>
> Unfortunately I cannot use eclipse 3.0 as I am tied to eclipse 2.1 that comes with WSAD.
>
> Would it make sense or is it even possible to create a custom widget every thing like Combo only the setVisibleItemCount() method added to it.
>
> I need it to work only on windows that to as stop gap as we are moving to RAD in a few months
>
> Thanks


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: SWT 2.1: Increasing Combo popup's Item count [message #464641 is a reply to message #464518] Fri, 25 November 2005 18:28 Go to previous message
Eclipse UserFriend
Originally posted by: rajagopalm.hcltech.com

I just created a new CustomCombo by looking at the source of CCombo from eclipse 3.0

This has worked fine so far.

Just in case someone else faces a similar problem

Thanks,
Ralf
Previous Topic:stop swt window resizing
Next Topic:Display.getActiveShell()
Goto Forum:
  


Current Time: Tue Nov 25 23:51:02 GMT 2014

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

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