Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ModeLess form classes and toolbar
Message
 
 
To
13/02/2004 15:57:03
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00877281
Message ID:
00877325
Views:
14
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform