Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Object Question
Message
From
31/07/2011 15:04:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
31/07/2011 06:07:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01519730
Message ID:
01519760
Views:
69
>Hi Experts,
>
>Are Application Objects typically based on the Custom class?
>
>If so, then, being based on a non-visual class, can it show or instantiate a UI class - in my case, a Form object?

The UI objects are not app's members. The forms are standalone objects, basically members of _Screen.forms collection, but that happens automagically, behind the scenes. You don't do oApp.addobject("oform1", "myForm"), you do loFrm=createobject("myForm").

You can actually do it anywhere, it's just that you can't have a visual object as a _member_ of a non-visual one, i.e. a visual* object can't have a .parent that isn't a visual object.

*mind you, visual objects are those that have a .refresh, .fontname and other GUI-related properties. It doesn't matter whether they are defined in a .prg or in a .vcx at all.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform