Re: VFP9SP2 order of objects issue

2012-11-08 Thread Alan Bourke
I'd say you might be better examining the whole approach. That strikes me as being a particularly delicate house of cards that could get upset continually. Maybe have a RefreshMe() method on each label, and a MyForm.RefreshLabels() which iterates through all label-type objects and does

Re: VFP9SP2 order of objects issue

2012-11-08 Thread Rafael Copquin
Ellaborating on Alan's code, I imagine something like this: Init event of all labels: this.addproperty(´lInstantiated') In the TOP labels: this.lInstantiated = .t. In the BOTTOM labels this.lInstatiated = .f. if this.lInstantiated dodefault() ** here goes your special code else

RE: VFP9SP2 order of objects issue

2012-11-08 Thread Richard Kaye
Isn't that something you can control to a certain extent by setting tab order or zorder? -- rk -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of MB Software Solutions, LLC Sent: Thursday, November 08, 2012 1:53 PM To: profoxt...@leafe.com Subject:

Re: VFP9SP2 order of objects issue

2012-11-08 Thread MB Software Solutions, LLC
On 11/8/2012 3:02 PM, Richard Kaye wrote: Isn't that something you can control to a certain extent by setting tab order or zorder? That's what I thought. Although I've never coded in the ZOrder method. -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect

RE: VFP9SP2 order of objects issue

2012-11-08 Thread Tracy Pearson
MB Software Solutions, LLC wrote on 2012-11-08: I've got a form where some labels should appear in the TOP of the object hierarchy and hence instantiate before some other objects that depend on them to have a custom property. Without the proper order, some other objects encounter an

RE: VFP9SP2 order of objects issue

2012-11-08 Thread Kurt Wendt
-boun...@leafe.com] On Behalf Of MB Software Solutions, LLC Sent: Thursday, November 08, 2012 3:36 PM To: profoxt...@leafe.com Subject: Re: VFP9SP2 order of objects issue On 11/8/2012 3:02 PM, Richard Kaye wrote: Isn't that something you can control to a certain extent by setting tab order or zorder

RE: VFP9SP2 order of objects issue

2012-11-08 Thread Richard Kaye
...@leafe.com Subject: Re: VFP9SP2 order of objects issue On 11/8/2012 3:02 PM, Richard Kaye wrote: Isn't that something you can control to a certain extent by setting tab order or zorder? That's what I thought. Although I've never coded in the ZOrder method

Re: VFP9SP2 order of objects issue

2012-11-08 Thread Rafael Copquin
I do not expect any object on the form to exist until the form gets to its INIT method. According to the order in which events fire, all contained objects instantiate (ie exist) _before_ the form init. You can test this by placing code like this in the init methods of the DE, the form and

RE: VFP9SP2 order of objects issue

2012-11-08 Thread Tracy Pearson
Rafael Copquin wrote on 2012-11-08: I do not expect any object on the form to exist until the form gets to its INIT method. According to the order in which events fire, all contained objects instantiate (ie exist) _before_ the form init. Rafael, Let me clarify. My code does not

Re: VFP9SP2 order of objects issue

2012-11-08 Thread MB Software Solutions, LLC
On 11/8/2012 4:32 PM, Richard Kaye wrote: I've manipulated zorder when adding objects to a form at runtime. Depending on the order of instantiation, things can get a little tricky when adding containers to containers. IIRC tab order controls instantiation order which is why even though your