PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Icons on buttons
Icons on buttons
Started by Rich Scheuermann, Sep., 15 2005 5:23 PM - 2 replies
Posted on September, 15 2005 - 5:23 PM
Is there a way to have my own icons on buttons?
Thanks
Rich
Posted on September, 15 2005 - 5:55 PM
use the [...] and pick one ???
Is there a way to have my own icons on buttons?
Thanks
Rich
Posted on September, 15 2005 - 6:51 PM
G'day Rich
Jan's solution is correct for placing an icon on a button by selecting an icon using a file dialogue (..) when creating a control, but one of the tricks of Windev is that whilst almost every other component of a control has a ..property e.g. ..state or ..text - there is no ..image as you would expect to assign an image to a control in programming.
The ..text property does double duty in providing the text of a button and the name of the image.

ControlButton1..text = "Alter" // will show the word "Alter" on the button
ControlButton1.."picturefilename.bmp" //will display the bitmap on the button
//It is best to have the bmp file in the project directory, then you have no path issues.
Regards
Al