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
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
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:
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
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
-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
...@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
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
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
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
10 matches
Mail list logo