Reputation: 30097
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?
Upvotes: 1
Views: 493
Reputation: 36884
You will have to handle the events yourself. I'll give you a couple of hints and references here:
Button
widget and should contain all the code you need.Hope this helps.
Upvotes: 1