Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3768

How to have button draw on canvas?

$
0
0

I want to have the button pressed event draw on the canvas using “g.DrawRectangle(50, 50, 100, 100)”. The “g” item does not exist for the button.

Please show a simple example to do this. I have looked through the examples.
I do not want it in the Canvas paint event because the code for the button will be changed. This is just to get started.

13 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 3768

Trending Articles