Eto Button - Border Type/Removal

Hi @michaelvollrath, try if below example script brings some inspiration:

ETO_DrawableSwitchControl.py (3.1 KB)

Note that Eto.Forms.Drawable has no Click event, so you handle the click action yourself either on mouse down or up. My example uses the latter to change a state which is either True or False. It draws everything in the Graphics of the drawable.

You can draw images there too, eg. try one of these if you want to get fancy.

_
c.

1 Like