Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portuguese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2013, 03:11:03 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
Mach Screens
Screen designer tips and tutorials
Very Cool LED/Button Combo
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Very Cool LED/Button Combo (Read 4153 times)
0 Members and 1 Guest are viewing this topic.
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,567
Very Cool LED/Button Combo
«
on:
March 04, 2009, 12:40:04 PM »
Perhaps this has been done, but I haven't seen it.... You can make a very cool combo button LED by doing the following
1) I'm most of you know this part, but.... Create a graphic file containing two side-by-side images of the same size. When this graphic is assigned to an LED, the left-hand image will be displayed when the LED is off, and the right-hand image will be displayed when the LED is on. If the LED is configured to blink, the display will toggle between the two images.
2) Create an LED using the above graphic, and overlay that with a graphic button, with the image file assigned to a transparent .png file with no color data - i.e. - a blank, but transparent, image. You now have a button that can have two completely different graphics depending on whether the corresponding variable is on or off.
The attached simple screen demonstrates this. The left-most button changes color when the corresponding variable is set. The middle button blinks in a different color when the corresponding variable is set. The right-most is a photo I took of one of the dashboard toggle switches on my '64 Jaguar E-Type.
Regards,
Ray L.
SwitchLEDDemoi.set
(1 KB - downloaded 344 times.)
Logged
Regards,
Ray L.
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,567
Re: Very Cool LED/Button Combo
«
Reply #1 on:
March 04, 2009, 01:16:14 PM »
Ooopsie! I didn't include the bitmaps, etc. The attached should do it.
Regards,
Ray L.
ButtonLEDDemo.zip
(267.21 KB - downloaded 373 times.)
Logged
Regards,
Ray L.
ger21
Global Moderator
Offline
Posts: 2,999
Re: Very Cool LED/Button Combo
«
Reply #2 on:
March 04, 2009, 01:35:25 PM »
I used a ton of those on this screen. Well over 100 png's. There are no standard LED's in the set, everything is two state .png's
I added a "glow" effect so they look like they light up when on.
http://www.machsupport.com/forum/index.php/topic,10009.msg66106.html#msg66106
«
Last Edit: March 04, 2009, 01:41:29 PM by ger21
»
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
Greolt
Global Moderator
Offline
Posts: 896
Re: Very Cool LED/Button Combo
«
Reply #3 on:
March 04, 2009, 05:53:34 PM »
Sorry to burst your bubble Ray, but screen designers have been doing this forever.
Even the standard Mach screen has half a dozen two state buttons.
Greg
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,567
Re: Very Cool LED/Button Combo
«
Reply #4 on:
March 04, 2009, 07:35:18 PM »
Quote from: Greolt on March 04, 2009, 05:53:34 PM
Sorry to burst your bubble Ray, but screen designers have been doing this forever.
Even the standard Mach screen has half a dozen two state buttons.
Greg
Greg,
"Even the standard Mach screen has half a dozen two state buttons." - Where? I don't see any.... I see lots of separate LEDs, and a few buttons with the LEDs surrounding the buttons, but none like I described. I didn't think it was a new idea, but one that new folk may not have seen, or had explained. I worked with Scream4 for several days before realizing I could do this.
Regards,
Ray L.
Logged
Regards,
Ray L.
Greolt
Global Moderator
Offline
Posts: 896
Re: Very Cool LED/Button Combo
«
Reply #5 on:
March 04, 2009, 07:50:47 PM »
Yeah it is a great feature and works really well.
For instance I have a very bright Estop/Reset button that flashes red and yellow. Very hard to miss.
In fact I have this sort of thing all over my screen sets. Get a bit carried away now and then.
If you look in the bitmaps folder for the standard MachMill graphics you will see the two state graphics I mentioned.
If you want it to simply change, then select "red/green" and if you want flashing, then select "red/green flashing"
Benny has a video explaining how to make two state graphics using Real Draw Pro. It can be found in the video tutorials section.
Greg
Logged
Greolt
Global Moderator
Offline
Posts: 896
Re: Very Cool LED/Button Combo
«
Reply #6 on:
March 04, 2009, 08:15:36 PM »
One other thing that it is worth mentioning in this thread of Ray's for the information
of readers who might be wanting to try this two state LED idea.
When placing two state LED and placing an Image Button over the top you must assign a transparent PNG image to the Image Button.
Otherwise the two state change or flashing will not work.
That little quirck has had many a first time screen designer scratching his head. Me included.
This to my knowledge has not been documented.
Greg
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,567
Re: Very Cool LED/Button Combo
«
Reply #7 on:
March 04, 2009, 08:20:54 PM »
Quote from: Greolt on March 04, 2009, 08:15:36 PM
One other thing that it is worth mentioning in this thread of Ray's for the information
of readers who might be wanting to try this two state LED idea.
When placing two state LED and placing an Image Button over the top you must assign a transparent PNG image to the Image Button.
Otherwise the two state change or flashing will not work.
That little quirck has had many a first time screen designer scratching his head. Me included.
This to my knowledge has not been documented.
Greg
Greg,
And that's the part that had me stumped for a bit. Actually, for a blinking LED, you can leave the button with no graphic assigned. The very first blink may not be correct, but it's gone so fast you'll never notice, and after the first it'll work fine. But if it's not blinking, you can be left with the display incorrect unless you click the button very quickly. That's where the transparent PNG comes in.
Regards,
Ray L.
Logged
Regards,
Ray L.
Ron Ginger
V4 Screen Contributor
Offline
Posts: 688
Re: Very Cool LED/Button Combo
«
Reply #8 on:
November 05, 2009, 09:04:27 PM »
When you are editing one of these two level button/leds how do you select the LED if you want to edit it? All I have found is to select the button, drag it out of place, then I can select the LEd. But then its messy to get the button re-aligned.
Logged
ger21
Global Moderator
Offline
Posts: 2,999
Re: Very Cool LED/Button Combo
«
Reply #9 on:
November 05, 2009, 09:12:54 PM »
I write down the coordinates before moving it, so it's easy to get it back where it was. But that's the way I do it too.
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> CS-Lab
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Mach3 Wizards
=> Newfangled Mill Wizard
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...