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
|