Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CPageframe embedded?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00268095
Message ID:
00268454
Vues:
21
>This should work fine. Try dropping an instance of CPageFrame on the sample Project Manager's "Projects" form. It instantiates without a hitch!

Your right, it does work fine there... plus I know I did this in an older version. But what I'm seeing is really strange. Here's the details:

Version 4.2, we have an application specific subclass of cBizObjForm that doesn't have any special functionality built into it at this point. I subclassed from that for my form & added cPageframe with 3 pages. Each of those 3 pages contains another cPageframe instance. The inner pageframes each contain a BizObj sent to back, an aGridList instance (cCgridList inside of cContainer), and a commandbutton eventualy. When I run the app and DoForm() gets to the CreateObject call for my form class it hits an error with tcSys16 = error 2005 and the message pointing to ccontrl.vct.

Now here's the odd part - if I trigger the offending form from toolbar, the mouse pointer turns into an hourglass and just sits there. In the debugger I can see the error event running but it doesn't get logged to the event log and the app ends up back at Read Events. If I trigger the form from the menu, I get a blank program error dialog but it still doesnt get logged. If I start stripping the controls off the form, as soon as I take off the inner pageframes it instantiates just fine. I even tried it with just the outer pageframe containing my aGridList and that works fine too. As soon as I throw that inner pageframe (with or without the aGridList)into the mix it chokes.

I tried to make the outer pageframe only based off of VFP base class and the form will run until I edit/save it in the class designer. Then on the next run I get an error pointing to ccontrls.vct again that says something to the effect of "invalid container for this type of control". If I leave the outer pageframe based on cPageframe and the inner pageframes based off of VFP base class I get the same problem as using cPageframe for both.

I rebuilt/recompiled the entire project, tried using a direct subclass of cBizObjForm, tried getting a fresh version of the ..\MMortals\Libs directory, and tried running it on another workstation - no difference. At which point < g > I copped an attitude and just used VFP base class with the additional error method parameters used by the framework added to each instance. This works but I would much rather be able to use cPageFrame now that I seen it work in the ProjMgr app. Any suggestions?
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform