Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject not visible
Message
From
20/11/2008 09:17:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/11/2008 07:37:52
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01362403
Message ID:
01363135
Views:
15
>I thought AddObject is for vfp controls, newobj for my own so I can define a source for the objct
>Otehr than tat they do the same thing, I thought
>
>
>I just asked a simlar question where i addobject lines to an array property and they son't show either

There's a substantial difference in how you instantiate an object. If you want it to be visible, it must be a form or belong to a form (not necessarily directly to a form, but still; also, _screen is a form). If you call a createobject() or newobject() functions, you'll get invisible objects. You may assign references to these invisible objects to properties of a form (or any object on it), it still won't make them visible, and they won't have a parent (i.e. .parent=null).

The only way to have a visible object is to either have it on a form at design time, or to use .addobject() or .newobject() methods of a visible (*) object, which will then be the parent of this object.

-----
(*) I guess the word I would rather have used would be "visiblable" - one that can be made visible.

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