Page 1 of 1
picture button
Posted: Thu Nov 21, 2019 6:15 am
by John
Is there a way to make a button with a picture on it? I now I can make a picture that returns an fkey value and I can make a button, but is there a way (besides making a picture of a button with a picture on it) to make an actual button that has a picture on it?
Re: picture button
Posted: Thu Nov 21, 2019 8:24 am
by bluesfannoz
I am not aware of a way to use any image on a button. You can use the fonts like wingdings that have images as they are a usable text font.
Re: picture button
Posted: Thu Nov 21, 2019 8:37 am
by bluesfannoz
Here is a basic example of how I simulate the press of the image to make it look like you pressed a button. I made the button images with the program demonstrated by Ryan from WCS years ago.
- exitpress.png (11.64 KiB) Viewed 13953 times
- exit.png (18.2 KiB) Viewed 13953 times
Code: Select all
09150 Print #Q, Fields "29,116,P 3/7,,1221" : "[IMG]\Exit.png"
09430 INP_LIST2: Input #Q, Fields "31,96,FMT(#9/#9/###9),[Y];1,1,list 28/102,rowsub,cur;31,26,C 14,[Y];31,45,C 14,[Y]" : RDATEI$,AX,LOW$,HIGH$ !
09450 Let CURRENTROW=CURROW
09470 Let FK=FKEY
09510 If FK=1221 Then Print #Q, Fields "29,116,P 3/7,,1221" : "[IMG]\ExitPress.png" : Let SLEEP(.2) : Print #Q, Fields "29,116,P 3/7,,1221" : "[IMG]\Exit.png"
Re: picture button
Posted: Thu Nov 21, 2019 9:11 am
by John
Thanks bluesfannoz,
That's a good example of how to emulate a button with a picture on it. I was hoping for a way to make a real button that changed color when my themes buttons changed their color, but something like this is the next best thing.