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

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