Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ModeLess form classes and toolbar
Message
 
 
À
13/02/2004 15:57:03
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00877281
Message ID:
00877325
Vues:
13
You've to call READ EVENTS only once in you application and call CLEAR EVENTS only when you want to exit application.

>Hi,
>
>I have a main form and I create a toolbar in the form's init method using commands like
>
>PUBLIC oTbr
>oTbr = newobject("tbrMyApp", "tbrMyAppLib.vcx")
>oTbr.Show()
>
>
>I have a few command buttons in the toolbar that call modeless forms that are classes.
>
>so in the Click event of the command button, I wrote
>
>
>oMythisoption = newobject("frmThisOption", "formsLib.VCX")
>**I use a different variable for each option.
>oMythisoptin.Show()
>read events
>clear events
>
>
>When I click on the first command button, all work fine. But as soon as I Click on the second command button, it just flashes and goes away. I know this has something to do with READ EVENTS, but I do not know, how to fix the problem.
>
>
>If any of you has a suggestion, please...
>
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform