Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to change the drop list of a CCombo?
How to change the drop list of a CCombo? [message #454500] Sat, 23 April 2005 07:01 Go to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
Anyone know how to customize the drop list of a CCombo? I've looked at
the javadoc and snippets page but couldn't find anything...
Re: How to change the drop list of a CCombo? [message #454547 is a reply to message #454500] Sat, 23 April 2005 20:14 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
setItems(String[]) ?


"Mark McLaren" <noone@nowhere.com> wrote in message
news:5d874555729da7a365ee5fa63b2efd7a$1@www.eclipse.org...
> Anyone know how to customize the drop list of a CCombo? I've looked at
> the javadoc and snippets page but couldn't find anything...
>
>
>
Re: How to change the drop list of a CCombo? [message #454590 is a reply to message #454547] Mon, 25 April 2005 11:07 Go to previous messageGo to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
Sorry should have been more specific; I'm trying to replace the drop
list with my own custom component.

I've come accross a two-year-old post from Konstantin Scheglov (see
below) that says this can be done by copying the source code for CCombo
then modifying it. Anyone know of a better way?



Konstantin Scheglov wrote:
> Mila <mmclennan@bco.com> wrote:
>
>
>> How I can create CCombo with multi-column List?
>> How I can create read-only CCombo without list at all ?
>
> Copy source code of CCombo in your project and do all changes, which
> you need. I.e. replace List to Table and add flag for allowing or
> disallowing dropdown.
>




Phillip Beauvoir wrote:
> setItems(String[]) ?
>
>
> "Mark McLaren" <noone@nowhere.com> wrote in message
> news:5d874555729da7a365ee5fa63b2efd7a$1@www.eclipse.org...
>
>>Anyone know how to customize the drop list of a CCombo? I've looked at
>>the javadoc and snippets page but couldn't find anything...
>>
>>
>>
>
>
>
Re: How to change the drop list of a CCombo? [message #454597 is a reply to message #454590] Mon, 25 April 2005 13:38 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
There currently is not an alternative to copying the class.

Grant

"Mark McLaren" <noone@nowhere.com> wrote in message
news:d4ij6r$uii$1@news.eclipse.org...
> Sorry should have been more specific; I'm trying to replace the drop
> list with my own custom component.
>
> I've come accross a two-year-old post from Konstantin Scheglov (see
> below) that says this can be done by copying the source code for CCombo
> then modifying it. Anyone know of a better way?
>
>
>
> Konstantin Scheglov wrote:
> > Mila <mmclennan@bco.com> wrote:
> >
> >
> >> How I can create CCombo with multi-column List?
> >> How I can create read-only CCombo without list at all ?
> >
> > Copy source code of CCombo in your project and do all changes, which
> > you need. I.e. replace List to Table and add flag for allowing or
> > disallowing dropdown.
> >
>
>
>
>
> Phillip Beauvoir wrote:
> > setItems(String[]) ?
> >
> >
> > "Mark McLaren" <noone@nowhere.com> wrote in message
> > news:5d874555729da7a365ee5fa63b2efd7a$1@www.eclipse.org...
> >
> >>Anyone know how to customize the drop list of a CCombo? I've looked at
> >>the javadoc and snippets page but couldn't find anything...
> >>
> >>
> >>
> >
> >
> >
Previous Topic:Proper event handling approach for Mac custom native widget?
Next Topic:CheckboxTableViewer getCheckedElements() causes rows out of the visivle range to disappear on a Vir
Goto Forum:
  


Current Time: Sun Apr 11 18:30:10 GMT 2021

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

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

Back to the top