Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX controls stay hidden
Message
From
20/03/2006 12:29:38
 
 
To
20/03/2006 04:59:42
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105743
Message ID:
01105922
Views:
22
This message has been marked as the solution to the initial question of the thread.
>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.


* Óñòàíîâêà Visible ïåðåä îñòàëüíûìè
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform