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


In reply to Re: Release Button in Click by roboticus
in thread Release Button in Click by tcopeck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.