picture button

General development discussion.

Moderators: Susan Smith, admin, Gabriel

John
Posts: 552
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

picture button

Postby John » Thu Nov 21, 2019 6:15 am

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: 272
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: picture button

Postby bluesfannoz » Thu Nov 21, 2019 8:24 am

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: 272
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: picture button

Postby bluesfannoz » Thu Nov 21, 2019 8:37 am

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 2807 times
exit.png
exit.png (18.2 KiB) Viewed 2807 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: 552
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

Re: picture button

Postby John » Thu Nov 21, 2019 9:11 am

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


Return to “General Development”

Who is online

Users browsing this forum: No registered users and 6 guests

cron