>As per my previous problem with the date control, I have a couple of chart controls that fail to display when their parent container changes to visible=.t.
>
>I'm at a loss as to why this is happening. It's almost as if they are completely independent of the container.
Unfortunately this is so. You need to properly set Visible property for each ActiveX control when container's Visible property is changed.
To do so automatically I use my own ContainerX class which is sublclass of Container base class.
Visible_assign method:
LPARAMETERS vNewVal
LOCAL oldLock
m.oldLock = THISFORM.LOCKSCREEN
THISFORM.LOCKSCREEN = .T.
IF m.vNewVal THEN
THIS.VISIBLE = .T.
THIS.SETALL("Visible", .F.)
ENDIF
THIS.SETALL("Visible", m.vNewVal)
IF NOT m.vNewVal THEN
THIS.VISIBLE = .F.
ENDIF
THISFORM.LOCKSCREEN = m.oldLock
Init method:
This.visible_assign(This.Visible)
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.