Mach Discussion > Mach Screens

Two State Buttons?

(1/2) > >>

Greolt:
How do I get "two state" buttons to work with Screen4 ?

I can't seem to get it to work.  Any tips ?

Greg

Graham Waterworth:
Have you watched Benny's video, it shows you how to do this.

Look at the bottom of this page.

http://www.artsoftcontrols.com/artsoft/videos.htm

Graham.

Greolt:
Yes Graham I have seen it.  The 45 second long one demonstrates the "two state button"

However it wont work for me.  >:(  Must be doing something wrong.

This is what I'm doing.  For example a RUN button.

Set a LED and assign a two sided  BMP to it and set function "run"

Then place an IMAGE BUTTON over it and set it to function "run"

Try that in Mach and the button does not change state.

Go back to Screen4 and move the IMAGE BUTTON off the LED. 

Try again in Mach and it now changes state.

Back to Screen4 and move the IMAGE BUTTON to only half cover the LED.

In Mach now the half that is not covered changes state and the covered half does not.  Weird Hey!!!

So any ideas?  Am I doing something very stupid?  ;D

Greg

zealous:
Greg,

Mach needs an image there for the button to work correctly.

If you notice in "Simple screen" that the LED intermittently works, that is because I had no image for the buttons.

The work around is to load a transparent image.

You can create your own or use the one provide below.
Just drop that in you bitmap folder and load it for your invisible buttons that are over the "LED buttons".

Mach needs something for a place holder for them to work, that is why you have to use a"clear" image over the LED.

Also check that the button is ontop of the LED in Screen 4  ;D

Greolt:

Thanks Zealous.  That work around works just as you said.   ;D

Now my "two state buttons" which should really be called "two state leds" all work as I want.  YAY!!!!

Another question.  I want to apply it to HOLD or PAUSE or FEEDHOLD.

According to the LED list on the wiki  "Pause Active LED"  is 80   and "Pause LED" is 805  but neither work

I know that Art has had to play around with Feedhold a lot to try and keep all users happy. 

Maybe this is why it does not work.  Perhaps it did work in earlier versions.

Any Ideas? ..............  Greg

Navigation

[0] Message Index

[#] Next page

Go to full version