aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1608

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1608  Menu Items

le 18/02/2008 @ 06:45
par Gary

Anonyme



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


Ecrire à Gary   Poster une réponse  Haut

[]   

DébutPrécédent [ 1 2 ] SuivantFin

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

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 12
--------
le 24/02/2008 @ 17:25
par Gary

Anonyme

visiteur
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
Ecrire à Gary   Poster une réponse  Haut

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

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 14
--------
le 25/02/2008 @ 03:37
par Gary

Anonyme

visiteur
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
Ecrire à Gary   Poster une réponse  Haut

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

Anonyme

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

Gary
Ecrire à Gary   Poster une réponse  Haut

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

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut
DébutPrécédent [ 1 2 ] SuivantFin
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^