Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SWT - Custom Controls?

2 views
Skip to first unread message

Claus K.

unread,
Dec 16, 2009, 6:20:49 AM12/16/09
to
Hello everyone,

I need to implement some controls on my own (for example, text + image
button with extended mouse functionality) for some pet project. I
would like to use SWT.

I have not understood completely which class to extend. Do I use
Component or do I use Control?

Is there a good example somewhere, especially for the drawing part?
Most examples I saw just painted on the shell itself, not on a control
as child of a shell...

Do I have to re-implement paint() and paint text and image in the
controls rectangle and this will be good, or am I missing something?

Jeff Higgins

unread,
Dec 16, 2009, 7:07:50 AM12/16/09
to
A web search using the terms "swt create custom widget"
produces a link to "Creating Your Own Widgets using SWT"
<http://tinyurl.com/5nyeo>.

Kind of old, but probably a good start.

Claus K.

unread,
Dec 16, 2009, 7:21:02 AM12/16/09
to

OK, I was using the wrong search criteria, shame on me and thanks!

0 new messages