|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1424 |
I, Newbie: Menu - Help!!! |
le 10/06/2006 @ 20:44 par Colonel Kernel
|
Hey there, I'm trying to add menus to my iziBasic app, but I'm stuck.
I've made my menu in Bird, resourced it into my app, accessed with the MENU command, but can't get it to do anything.
I understand that I have to capture the Menu Item ID with MENUITEM, but where? I already have a DOEVENTS loop to capture my button input. Can I stick it in there, or do I have to create a new loop?
Any help will be appreciated, but a small code example would help me best.
Info de Me - iziBasic Newbie, working on a Treo 650. Very familiar with HTML, with some exposure to JavaScript, MS Access VBA, and two years of BASIC programming eons ago.
Thanx, Bill |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 11/06/2006 @ 22:19 par aldweb
visiteur |
Hello Colonel Kernel,
To work with a menu, here is a quick sample code:
BEGIN MENU 1 ' Activate Menu which resource ID is 1 REPEAT E=WAITEVENT IF E=1001 THEN ' This is a Menu event M=MENUITEM ' Store in M which menu item was activated ' now process the menu item according to your wishes END IF UNTIL E=-1 END
I hope this will help you.
Cheers,
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 12/06/2006 @ 00:18 par Colonel Kernel
visiteur |
That worked, thanx.
I got lots more questions. I'll be back. |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|