Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar/Menu Power Struggle (Toolbar Wins)
Message
 
À
18/07/1996 12:33:07
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00004151
Message ID:
00004190
Vues:
34
>>I just had a minor brainstorm -- I put the DO FORM in the MPR,
>>and with a few adjustments, it does seem to actually work. It
>>has a suspicious feel to it, though, like this isn't the way one should be doing things. I'll have to test it some more...
>>
>>
>>>That was me alright. The MPR is disabled without READ EVENTS,
>>>but with READ EVENTS execution stops. I should say that there is a DO FORM right after this, and the form won't run with the READ EVENTS before it.
>>>
>>>do menu
>>>read events (here we get stuck, but without it menu disabled)
>>>do form
>>>
>>>Is there a way to get past the READ EVENTS?
>>>
>>>Thanks
>>>
>It's really normal because READ EVENTS actually LOOP the application for the menu item you select. If you select QUIT, you have to do a CLEAR EVENTS. If you want to start a main form with the menu activated. Your form got to be a MODELESS form.
>
>Actually, the main program should look like this...
>
>DO menu.mpr
>DO FORM MAIN_FORM
>READ EVENTS
>SET SYSMENU TO DEFAULT
>CLEAR ALL
>CLOSE ALL
>CLEAR PROGRAM
>
>Sonny
>CHCA Informatique

Thanks for your help! I'm all set now.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform