tcopeck has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Release Button in Click
by roboticus (Chancellor) on Sep 22, 2010 at 04:30 UTC

    tcopeck:

    Answer 1: Sure thing! Just set the bit on the output port that turns on the LED behind the button. Be sure to turn off that bit when they release it though. You'll find the bitwise operators helpful so that you don't mess up the other LEDs.

    Answer 2: Certainly! NCurses allows you to set the background color, so you can do that to change the appearance.

    Answer 3: Of course! You can generate some Javascript that will alter the button as you like it. I'm sure you can find plenty of Javascript libraries on the web.

    Answer 4: I think so ... I don't program UIs in perl much, but I bet that the Tk interface can provide you with the hooks. Just read the docs to see.

    Answer 5:....

    I could keep going, but I don't have the ability to read your mind. Please write a question with enough information so that it can actually be answered. You may find these helpful: Ask questions the smart way, I know what I mean. Why don't you? and How (Not) To Ask A Question

    </surly_mode>

    ...roboticus

      Snark factor 13
Re: Release Button in Click
by ahmad (Hermit) on Sep 22, 2010 at 03:42 UTC

    can a Button be made to change its appearance from pressed to released in the Click event handler?

    Where? What button? & where's your code?

    A reply falls below the community's threshold of quality. You may see it by logging in.