[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Canvas vs Composite Question

Hey Tom,

Could you please elaborate here on the benefits of extending a canvas and potential risks that canvas might have to manage native calls ?

If we create a new widget which extends from Canvas can we add an existing widget to it? like a Table, Buttons, hyperlink, etc.

Thanks,

Arpit

Tom Schindl wrote:
Yes. Canvas is prepared to draw with a GC on it but both can have child widgets.

Tom

Jyoti schrieb:
Hi,

We are trying to evaluate using Canvas vs Composite for the Grid Widget.

Have couple questions...

How does Canvas and Composite handle OS specific calls?

Can both be used i.e. put all controls in Composite and then add it to Canvas?

Thanks