Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disappearing Slider Control MScom
Message
De
26/04/2005 14:43:38
Graham Trott
Hamilton Pc Repair
Ontario, Canada
 
 
À
26/04/2005 13:22:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01008221
Message ID:
01008579
Vues:
16
OK I tried placing the lockscreen, visible, change height, etc. events in the activate of the form but did not change anything. I am not sure how to code the MSComCtl slider as an activex object to place code in the activate method of the form.

Also tried gotfocus in the init of the form which seems to hang the form (blank screen). If i use setfocus event or the click event of the olecontrol in the init of the form the olecontrol slider still remains invisible. I can't tab into the control. The only way to make it visible is to click where the control is supposed to be. Once it becomes visible it remains the rest of the program.


>Graham,
>
>Try placing the code block in your form Activate event and see if that makes a difference. If it does, create a lFirstTime form property initialized to True. The first time your form Activate gets called, run your slider code, then set lFirstTime to False so it doesn't get run with every form activate event.
>
>The theory here is that some ActiveX controls need to be visibly displayed before their property changes take effect. In the form init your controls are not yet "visible" even though their Visible properties may be set to True.
>
>Does this help?
>
>Malcolm
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform