picture button

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

picture button

Post 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?
John Bowman
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: picture button

Post 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.
Steve Koger
Computer Specialist
SEKESC-MACS Division
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: picture button

Post 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
exitpress.png (11.64 KiB) Viewed 13862 times
exit.png
exit.png (18.2 KiB) Viewed 13862 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"
Steve Koger
Computer Specialist
SEKESC-MACS Division
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Re: picture button

Post 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.
John Bowman
Post Reply