Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject/CreateObject
Message
From
23/03/2002 07:24:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00633293
Message ID:
00636414
Views:
15
Yes, of course. Additional clarifications are always welcome.

>Hilmar,
>
>I just wanted to make sure everyone understands one of the fundamental differences between .AddObject() and CreateObject() instantiated objects.
>
>>>No. Objects that are instantiated with CreateObject() do not participate in the event loop of a form. They must be instantiated with AddObject() to be visible members of a form and respond to UI events.
>>>
>>>>Perhaps 'twas the .Visible part you were missing. Added objects (as well as forms, instanciated with CreateObject()) automatically have .Visible = .F.; this allows you to manipulate the visual properties without the user seeing objects jumping around on the screen.
>>
>>There may be a misunderstanding here - I was referring to the form itself, which can be created with CreateObject(), and is initially invisible.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform