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

   visitors online

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

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1608  Menu Items

18/02/2008 @ 06:45
by Gary

Anonymous



I have a program that I used rsrcEdit to create the GUI and all the menu items. The problem is I can't figure out how to show them when I click the Title for the menu items.

I defined in rsrcEdit a menubar ID 800 which has an aboutbox ID 300 and a helpbox ID 400.

BEGIN
MENU 800
GOSUB _OnAppStart
GOSUB _GenerateGUI
GOSUB _EventsLoop
GOSUB _OnAppExit
END

_GenerateGUI:
' this opens up the predefined form in rsrcEdit
OPENFORM 100
' Click the title and I see my menu items, but they don't popup.
RETURN

_EventsLoop:
REPEAT
%EVT%=WAITEVENT
SELECT CASE %EVT%
CASE 1001
GOSUB_MENU
END SELECT
UNTIL %EVT%=-1
RETURN

_MENU:
REPEAT
E=DOEVENTS
' I get a syntax error here???
IF E=300 THEN NOTICEBOX (1)
IF E=400 THEN NOTICEBOX (1)
UNTIL E<0
RETURN

When I run without all the event and doevents stuff it runs ok. When I click the title the menu shows the aboutbox and helpbox like I created in rsrcEdit, but don't popup the AboutBox or the Helpbox.

Can some one show me a quick example on how to do this?

Thanks
Gary


Write to Gary   Post an answer  Top

[]   

StartPrevious [ 1 2 ] NextEnd

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 11
--------
23/02/2008 @ 12:13
by aldweb

Anonymous

visitor
You are right Tuka, I missed this one little mistake!

Gary, please send me your iziBasic source file together with the resource file, I am pretty sure that it will take very little time to figure out where the mistake is with the real material to play with.

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° 12
--------
24/02/2008 @ 17:25
by Gary

Anonymous

visitor
Thanks Tuka and Aldweb, every thing is working fine now.

_MENU:
M=MENUITEM
IF M=300 LET N=NOTICEBOX (300)
IF M=400 LET N=NOTICEBOX (400)
RETURN

I see now that before I caused it to go into a endless loop.

Thanks again
Gary
Write to Gary   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 13
--------
24/02/2008 @ 22:23
by aldweb

Anonymous

visitor
Good news Gary, sometimes a dummy little bug can poison our developer's life!

So, no need for me to dig into the resource file you sent me by e-mail, right?

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° 14
--------
25/02/2008 @ 03:37
by Gary

Anonymous

visitor
No need unless you want to, I don't mind. Every thing is working as its expected, but I still have a lot of work to do until the program is done. I am sure I will run into something before it's done, so stay tuned

Thanks for all your help
Gary
Write to Gary   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 16
--------
25/02/2008 @ 03:41
by Gary

Anonymous

visitor
That's weird, the first response gave me an error, so I rewrote it.

Gary
Write to Gary   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 16
--------
25/02/2008 @ 12:07
by aldweb

Anonymous

visitor
That's weird, the first response gave me an error

It sometimes happens, when the web server saturates... usually because of some spam robot trying to push hundreds of spams on this forum (hopefully 99.9% of them are blocked by my anti-spam home made system).

Cheers,
aldweb
Write to aldweb   Post an answer  Top
StartPrevious [ 1 2 ] NextEnd
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 ^