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

Click here to load this message in the networking platform