Weather / Spam / www |
Lyon Weather
aldweb against spam
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1608 |
Menu Items |
18/02/2008 @ 06:45 by Gary
|
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
|
|
|
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
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
|
|
|
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
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 |
|
|
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
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
|
|
|
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
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 |
|
|
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
visitor |
That's weird, the first response gave me an error, so I rewrote it.
Gary |
|
|
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
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
|
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|
|
|
|
|