Hello Guest it is April 18, 2024, 07:31:47 PM

Author Topic: Two State Buttons?  (Read 8695 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Two State Buttons?
« on: June 09, 2007, 07:15:45 AM »
How do I get "two state" buttons to work with Screen4 ?

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

Greg

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Two State Buttons?
« Reply #1 on: June 10, 2007, 12:34:40 AM »
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.
« Last Edit: June 10, 2007, 12:36:29 AM by Graham Waterworth »
Without engineers the world stops

Offline Greolt

*
  •  956 956
    • View Profile
Re: Two State Buttons?
« Reply #2 on: June 10, 2007, 02:47:13 AM »
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

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Two State Buttons?
« Reply #3 on: June 10, 2007, 10:06:04 PM »
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
« Last Edit: June 10, 2007, 10:09:45 PM by zealous »

Offline Greolt

*
  •  956 956
    • View Profile
Re: Two State Buttons?
« Reply #4 on: June 10, 2007, 11:30:46 PM »

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

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Two State Buttons?
« Reply #5 on: June 11, 2007, 12:04:56 AM »
Greg,

I dont think that there is any otherway to get the "Feedhold" call from Mach till Art reactivates those.
Hopfully in the next update those LED's will be active again.