Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] kombining GLCanvas/Composite and Button classes into one class

Dear conference,

I am t o  to design own class for openGL rendered Button. I am to combine 
Button and Composite and add GLCanvas object into Composite part of me class.

I was metioned two way to do so

I.
OglButton extends Buttton implements Composite{
	private Composite LocalComposite;
	void changed(Control[] changed)
	{
		LocalComposite.changed(changed);
	}

.......
}


or II.
OglButton extends Composite implements Button{
// same binding as above
.......
}

Could anyone reply me which is recomended way to create such new widget, 
please? (I know about paint listener)


I look forward heraing from you

Yours faithfully

Peter Fodrek


Back to the top