Results 1 to 5 of 5

Thread: Change the state of a button

  1. #1
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100

    Change the state of a button

    How would I change the state of a display button with an "if" statement?

    Thank you,
    GadgetBandit

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by GadgetBandit View Post
    How would I change the state of a display button with an "if" statement?

    Thank you,
    GadgetBandit
    Buttons are meant to change the state of things, not be changed externally.

    You can change variable images, or multi-images (made just for this capability really).

    What are you trying to do?
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    I'm cycling a value with "when" tasks and want a manual off/on button that "appears" to change state when "when" turns on/off the value.

    A transparent button over a multi image!

    "when" and the button set variables

    The output is handled with "if"

    GadgetBandit

  4. #4
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    Today I discovered that a button instance for triggering an output, changes state when you have a "when" statement also triggering the same output. After "when" triggers, the button becomes an "off" button until the next "when" cycle. Pretty cool. Exactly what I wanted.

    Thanks,
    GadgetBandit

  5. #5
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by GadgetBandit View Post
    Today I discovered that a button instance for triggering an output, changes state when you have a "when" statement also triggering the same output. After "when" triggers, the button becomes an "off" button until the next "when" cycle. Pretty cool. Exactly what I wanted.

    Thanks,
    GadgetBandit
    For that to work, you have to make sure your button is "attached" to the digital output.

    If you change it to "detached" that won't happen.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. Replies: 4
    Last Post: 06-28-2009, 07:49 PM
  2. Centrafuse 2.0 RC4
    By veetid in forum Centrafuse
    Replies: 0
    Last Post: 06-10-2008, 08:31 PM
  3. Holux GPS Trouble
    By mangus580 in forum StreetDeck
    Replies: 34
    Last Post: 11-26-2007, 08:56 PM
  4. M7NCG 400 7.2 Won't Allow Me To Change Power Button Behavior
    By msjonker in forum General Hardware Discussion
    Replies: 7
    Last Post: 09-16-2006, 05:59 PM
  5. Is there a way to change skins with a button?
    By wysocki in forum FrodoPlayer
    Replies: 1
    Last Post: 12-23-2004, 08:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •