Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to put an image on a button. How can I do that in vtcl?

button image vtcl
0
0 Posted

I want to put an image on a button. How can I do that in vtcl?

0
0

In the “attribute editor” window there is a field named “image” where you should type the name of the image to put on the button. But you should create the image first. A good place is in the “init” function. Open the “function window” and double click on the function named “init”; then type in the function body: image create photo nameoftheimage -file /directoryoftheimage/yourimage.gif To put it in a label or button, etc. just insert “yourimage” in the image entry of the attribute editor, Guillaume Laisney said.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123