[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Custom Widget question

Hey,

i am currently working on a custom widget consisting out of 2 Canvas and a ScrolledComposite.The goal is to provide a scrolledcomposite with a custom drawn header and footer. So far i extend Composite create and layout the controls on it and perform some drawing on the canvases. Works fine no problems there. My question is if there is some way to achieve that when i use this custom composite as parent actually the contained ScrolledComposite is used. At the moment i have a getter for it so one can create the content for the ScrolledComposite on it directly and a setContent simply forwarding to ScrolledComposite.setContent(). Works as expected but dislike the fact that the reference to the ScrolledComposite is exposed.

Any ideas how to achieve this?

thanks,
Philipp