|
|
|
Re: VE and Custom-Widgets [message #76911 is a reply to message #76864] |
Fri, 14 January 2005 18:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
As long as your constructor is
xyz(Composite parent, int style)
Then we should be able to handle it.
Tom Schindl wrote:
> David Orme wrote:
>
>>
>> The way SWT itself does this sort of thing is to subclass either
>> Canvas or Composite and draw or embed the other control inside. See
>> CLabel, CCombo, etc. (the classes that begin with an extra 'C'.
>>
>> If you subclass Composite, you can even use VE to design your new
>> control. :-)
>>
>> Once you have your custom control written, you can use the "Choose
>> Bean" button on the tool bar to place it on your form.
>>
>
> So this would work?
>
> -------------------8<-------------------
> Object
> + AbstractSwtWidget (extends org.eclipse.swt.Composite)
> + SingleValueField (uses an org.eclipse.swt.Text)
> + TextField
> + NumberField
> + DateField
> + FormattedField
> + MultiValueField
> + DropDown (uses an org.eclipse.swt.Combo)
> + ListBox (uses an org.eclipse.swt.List )
> -------------------8<-------------------
>
>> Or read any of several recent threads about how to add your control to
>> the palette.
>>
>>
>> Regards,
>>
>> Dave Orme
>
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: VE and Custom-Widgets [message #77101 is a reply to message #76911] |
Sun, 16 January 2005 13:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: tomAtLinux.gmx.at
Hi Rich,
do you mean that I could use the structure without deriving my
widget from a composite?
Tom
Rich Kulp wrote:
> As long as your constructor is
>
> xyz(Composite parent, int style)
>
> Then we should be able to handle it.
>
> Tom Schindl wrote:
>
>> David Orme wrote:
>>
>>>
>>> The way SWT itself does this sort of thing is to subclass either
>>> Canvas or Composite and draw or embed the other control inside. See
>>> CLabel, CCombo, etc. (the classes that begin with an extra 'C'.
>>>
>>> If you subclass Composite, you can even use VE to design your new
>>> control. :-)
>>>
>>> Once you have your custom control written, you can use the "Choose
>>> Bean" button on the tool bar to place it on your form.
>>>
>>
>> So this would work?
>>
>> -------------------8<-------------------
>> Object
>> + AbstractSwtWidget (extends org.eclipse.swt.Composite)
>> + SingleValueField (uses an org.eclipse.swt.Text)
>> + TextField
>> + NumberField
>> + DateField
>> + FormattedField
>> + MultiValueField
>> + DropDown (uses an org.eclipse.swt.Combo)
>> + ListBox (uses an org.eclipse.swt.List )
>> -------------------8<-------------------
>>
>>> Or read any of several recent threads about how to add your control
>>> to the palette.
>>>
>>>
>>> Regards,
>>>
>>> Dave Orme
>>
>>
>>
>>
>
|
|
|
Re: VE and Custom-Widgets [message #77143 is a reply to message #77101] |
Sun, 16 January 2005 21:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
No, I meant in addition. You need the right constructor and you need to
inherit from Composite or Canvas.
--
Thanks,
Rich Kulp
|
|
|
|
Re: VE and Custom-Widgets [message #77345 is a reply to message #77331] |
Mon, 17 January 2005 14:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That's a good question. We've never tested it, so I don't know. Give it
a try, but make sure you have a constructor of
public TextColumn (Table parent, int style)
Tom Schindl wrote:
> Ok. I have now rethought my Object-Structure and use a MVC. One more
> question what when it comes to table-controls. Can I also have a:
>
> TextColumn (extends TableColumn) and use it in the VE?
>
> Tom
>
> Rich Kulp wrote:
>
>> No, I meant in addition. You need the right constructor and you need
>> to inherit from Composite or Canvas.
>>
>>
>>
--
Thanks,
Rich Kulp
|
|
|
|
|
Re: VE and Custom-Widgets [message #604454 is a reply to message #76864] |
Fri, 14 January 2005 18:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
As long as your constructor is
xyz(Composite parent, int style)
Then we should be able to handle it.
Tom Schindl wrote:
> David Orme wrote:
>
>>
>> The way SWT itself does this sort of thing is to subclass either
>> Canvas or Composite and draw or embed the other control inside. See
>> CLabel, CCombo, etc. (the classes that begin with an extra 'C'.
>>
>> If you subclass Composite, you can even use VE to design your new
>> control. :-)
>>
>> Once you have your custom control written, you can use the "Choose
>> Bean" button on the tool bar to place it on your form.
>>
>
> So this would work?
>
> -------------------8<-------------------
> Object
> + AbstractSwtWidget (extends org.eclipse.swt.Composite)
> + SingleValueField (uses an org.eclipse.swt.Text)
> + TextField
> + NumberField
> + DateField
> + FormattedField
> + MultiValueField
> + DropDown (uses an org.eclipse.swt.Combo)
> + ListBox (uses an org.eclipse.swt.List )
> -------------------8<-------------------
>
>> Or read any of several recent threads about how to add your control to
>> the palette.
>>
>>
>> Regards,
>>
>> Dave Orme
>
>
>
--
Thanks,
Rich Kulp
|
|
|
|
Re: VE and Custom-Widgets [message #604542 is a reply to message #77101] |
Sun, 16 January 2005 21:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
No, I meant in addition. You need the right constructor and you need to
inherit from Composite or Canvas.
--
Thanks,
Rich Kulp
|
|
|
|
Re: VE and Custom-Widgets [message #604595 is a reply to message #77331] |
Mon, 17 January 2005 14:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That's a good question. We've never tested it, so I don't know. Give it
a try, but make sure you have a constructor of
public TextColumn (Table parent, int style)
Tom Schindl wrote:
> Ok. I have now rethought my Object-Structure and use a MVC. One more
> question what when it comes to table-controls. Can I also have a:
>
> TextColumn (extends TableColumn) and use it in the VE?
>
> Tom
>
> Rich Kulp wrote:
>
>> No, I meant in addition. You need the right constructor and you need
>> to inherit from Composite or Canvas.
>>
>>
>>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.04485 seconds