picture button
Moderators: Susan Smith, admin, Gabriel
picture button
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
-
- Posts: 291
- Joined: Fri Jun 19, 2009 9:01 am
- Location: Lawrence, Kansas
- Contact:
Re: picture button
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
Computer Specialist
SEKESC-MACS Division
-
- Posts: 291
- Joined: Fri Jun 19, 2009 9:01 am
- Location: Lawrence, Kansas
- Contact:
Re: picture button
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.
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
Computer Specialist
SEKESC-MACS Division
Re: picture button
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.
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