|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1532 |
using menu button on tro650 |
le 23/04/2007 @ 16:26 par steve
|
inkey$ does not trap it, so what else would I use?
Am I missing the obvious?? |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 24/04/2007 @ 12:35 par Supertrucker
visiteur |
First I have to ask, are you trying to actually trap the menu button keypress, or are you simply trying to get a menu to work in your program?
If you just want to use a menu, I can help you with that, but if you want to actually trap the button you're probably going to have to use PP to create some kind of "poplet."
As far as the poplets go, you're on your own... You need to understand Pascal for that task. Hence, I bought myself two books off Amazon on Pascal for less than 12 bux. We'll see how that goes.
The PP (Pocket Pascal) site is linked from this one.
Peace,
Supertrucker |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 24/04/2007 @ 13:35 par Steve
visiteur |
I should have been more clear.
Yes I am trying to get a menu to work,... using the menu button to give me the menubar across the top. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 24/04/2007 @ 17:31 par Supertrucker
visiteur |
Give me till this evening, and then I'll post a reply. I work thirds, I willl get back to you as soon as I can. My job takes precedence, but, I do what I can.
Peace,
Supertrucker |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 24/04/2007 @ 23:01 par aldweb
visiteur |
Hello Steve,
No, INKEY$ will not trap a menu, this is a button, not a key (yeah, dummy answer, sorry!).
You should trap a menu from with DOEVENTS or WAITEVENT, these functions should return a 1001 event for a menu, well I hope so because the latest Palm devices have proven not to always be compliant with their ancestors' behaviours... For instance, the left and right buttons often changed of code recently, this is why Khertan wrote a PP applet some time ago for trapping them, according to the device(s) you target.
Now, to get a menu to work: 1. design its resource in BIRD (or RsrcEdit) 2. include the resource file with the RESOURCEFILE compiling directive 3. load the menu with the MENU statement 4. capture the 1001 event with the DOEVENTS or WAITEVENT function 5. once the 1001 event was launched, you will know which menu item was selected with the MENUITEM function
Cheers, aldweb
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 27/04/2007 @ 15:04 par Steve
visiteur |
Thankyou!
the 1001 event was exactly what I wanted.
Is there a reference list somewhere for these sort of things as they relate to iziBasic?
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6 -------- le 30/04/2007 @ 23:18 par aldweb
visiteur |
Is there a reference list somewhere for these sort of things as they relate to iziBasic?
I guess that the iziBasic wiki should be a good place to store that kind of information...
Cheers, aldweb
|
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|