[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Custom Widget question
|
- From: philipp_simon@xxxxxx (Philipp Simon)
- Date: Tue, 11 Mar 2008 16:41:22 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hm also thought about doing it that way but the first problem coming up is
that then i would have to write a Constructor looking like:
ScrolledComposite(parent,style){
Composite widgetParent = new Composite(parent,style);
..
canvas header = new Canvas(widgetParent);
super(widgetParent,style);
..
}
and this aint working ( super call has to be first line). Beside that a
lot of methods would have to be overwritten to simply direct to the
"widgetParent"'s ones ( which doesn't looke nice but would work fine i
think).
Am i missing something here?
thanks,
Philipp