aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitor online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1424

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1424  I, Newbie: Menu - Help!!!

10/06/2006 @ 20:44
by Colonel Kernel

Anonymous



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
Write to Colonel Kernel   Post an answer  Top

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

Anonymous

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
Write to aldweb   Post an answer  Top

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

Anonymous

visitor
That worked, thanx.

I got lots more questions. I'll be back.
Write to Colonel Kernel   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^