Tristan. 
One way only. i.e Objects  on the form cannot see inside the control but the
objects inside the control can see out. If you want to communicate both ways
use a Container NOT a Control as your "Wrapper"

Dave Crozier
"A computer is a stupid machine with the ability to do incredibly smart
things, while computer programmers are smart people with the ability to do
incredibly stupid things. They are, in short, a perfect match"  - Bill
Bryson
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tristan Leask
Sent: 12 July 2006 14:44
To: [email protected]
Subject: RE: Control & Container Objects

Okay, I have now tried it, but it seems to screw the code up so it doesn't
work.  No matter.  Can objects reference other objects within side the
control?  I think this maybe what is mucking up the code.

Regards

Tristan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Tracy Pearson
Posted At: 12 July 2006 14:25
Posted To: Profox Archive
Conversation: Control & Container Objects
Subject: RE: Control & Container Objects

You are thinking correctly. The Control class will hide all contained
objects from direct access. This is a Pro with the properties list and could
be a Con at runtime when you want to modify something inside and do not have
access to it through the control property.

Tracy

-----Original Message-----
From: Tristan Leask
Sent: Wednesday, July 12, 2006 6:08 AM
Subject: Control & Container Objects


Hi All,

I have created an object (use a container class to place all my gubbins
in) that mimics a list control but also gives a dynamic functionality to it.

One thing I have noticed though is that all of the controls that make up the
object are visible in the property tree when used on a form.  Now I would
like to stop this, and think by using a control object instead of a
container object should do this.

Am I correct?

If I just modify the class (edit the table file) and change the baseclass of
the container to control, will this work?

What are the main differences between the container class and the control
class? (VFP7)

Cheers all

Tristan Leask

Software Developer
Marine Software Ltd

[EMAIL PROTECTED]
www.marinesoftware.co.uk




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to