Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't seem to subclass correctly. . .
Message
 
To
25/02/1998 01:58:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00081007
Message ID:
00081027
Views:
17
>Hi,
>
>I have subclassed all of the vfp base classes into a class library called All_Apps.vcx. I then set my default forms & controls to pull from this class library in the tools, options dialog box and set as default. Within the All_apps class library I have again subclasses the form class and called it About_Dialog. This form simply shows my logo, copyright information, the version of the current exe etc.
>
>First off, I'm not really if I'm bringing in the About_Dialog correctly into my apps. To do it I create a new form, then I make sure that my form control tool bar is changed to ALL_APPS. Then I drag the ABOUT_dialog from that toolbar onto the existing form. Then I delete the first blank form, delete the formset and then save the form with the name About.scx This seems like a long way around or a bit hokey, but maybe this is how you do it. . .I look in the Developers guide for this and searched here in the UT for methods but didn't come up with what I needed. Suggestions on a better way?
>
>Secondly, for some reason now, if I'm in one of my projects in which have included the about_dialog form and saved it as about.scx, and I go in to edit it, save it and then build the exe, I get the following error message:
>
>Compiling d:\source\vfp\classlib\allapps.vcx
>File d:\source\vfp\classlib\allapps.vcx is in use and cannot be recompiled.
>
>The only way I can build is if I go to the command window and type clear all and then rebuild and it works. This didn't use to happen. I did something tonight that screwed it up. If I just open the about.scx and then close it, I get that error message. I'm stumped.
>
>I'm learning tons right now with vfp, but sometimes. . .sigh -Rick

You shouldn't need to drag your template form to a formset and then have to delete a form. On that same "tools - options" form there is a "form" tab. Near the bottom is a checkbox asking for a form template. Click that and then use the button on the right to browse your classes. Select from your all_about.vcx the form template you have designed and it will enter it in the textbox. Now, when you click on "new form" your form template is automatically used as the starting point.

I also find the need to do a "clear all" on occassion. This typically happens if I've been dealing with a composite class and one of the components thinks that it is "still in use". This could be from your use of a formset the way you are using it so try the stuff above and see if your need for clear all is reduced.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform