Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX controls stay hidden
Message
De
20/03/2006 12:29:38
 
 
À
20/03/2006 04:59:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01105743
Message ID:
01105922
Vues:
21
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform