PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Icons on buttons
Icons on buttons
Started by Rich Scheuermann, Sep., 15 2005 5:23 PM - 2 replies
Connect yourself…
Rich Scheuermann
#1
Posted on September, 15 2005 - 5:23 PM
Is there a way to have my own icons on buttons?
Thanks
Rich
Report
0
0
Jan de Bruin
#2
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
Report
0
0
Al
#3
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text