|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1424 |
I, Newbie: Menu - Help!!! |
10/06/2006 @ 20:44 by 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
Answer n° 1 -------- 11/06/2006 @ 22:19 by aldweb
visitor |
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
Answer n° 2 -------- 12/06/2006 @ 00:18 by Colonel Kernel
visitor |
That worked, thanx.
I got lots more questions. I'll be back. |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|