Community
SCI Programming => SCI Community How To's & Tutorials => Topic started by: lskovlun on January 17, 2007, 04:06:54 PM
-
Code in the attached file, along with documentation. Note that I use the ego view for buttons (as I said, I am not a graphic artist). The first the buttons from the left are number buttons, and add the numbers 1, 2 and 3 to the keypad text. The next button cancels, the one after that is backspace, and the last one OK. It would be great if someone would help me make better graphics for the demo code. Instructions are in the documentation. You will also need to add the word 'keypad' to your vocabulary.
Lars
-
Does anyone have this file?
-
I don't even remember this...
-
Does anyone have this file?
Here you go...
-
Hmmm.... I just noticed a couple of bugs:
- There is a memory leak in this code - I don't dispose the internal list used by the keypad. Look into the dispose and/or release methods.
- It is not documented how to remove buttons, which you may want to do if you reuse the keypad object. The methods from the superclass EventHandler can be used for this (delete to remove a number of indicated buttons, release to remove all of them)
This is seriously old code, but I'll see what I can do about this.
-
Thanks. I'll put it on the Wiki. It can be updated whenever you may get around to revising it.