Button

test

I want to apply a button image that I drew to a button now.
However, there is no image selection function to apply a button.

BevelButton can have icons.

i would subclass a canvas.
add a picture property and make it visible to the layout designer.
draw picture in paint event.

Search for CanvasButton in Examples, that project may help you:


Edit: Also found: Custom Canvas Control for inspiration

1 Like

Thank u

ow should I create MyCanvas?

i made a video about a canvas button. (in 5 Minutes)

10. Canvas

https://youtu.be/pVl4mLxkjxI?si=O52qU1-S93Q4_z6Q

1 Like

Thank u