I can make control extending Composite
or Canvas
.
How to make it selectable? I.e. how to make it behave like Button
? Button
is disabled for extend. I see a lot of unportable code inside it.
So how to make Button-like control of myself?
Should I process mouse and keyboard events myself or there is some premade functionality to utilize?