Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView after resize will display the resize only after
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00999128
Message ID:
00999213
Vues:
28
>Hi Gerald
>
>Thanks for your suggestion.
>
>>Try this sequence:
>>
>>Resize the container
>>Call the container.Refresh()
>>Resize the activeX control
>
>I will not have that much control as I am using a resizer class from the downloads section. One thing is for sure after all the procedure I cannot refresh it successfully.
>
>Anyway to know which control has the focus on which page, set focus to the TV and back?

Switching focus in and out of the current control can have upredictable side effects if there is code in the when/valid/lostfocus/... event of the current control.

Dig in the class and find the appropriate place to put the container refresh call.

My theory for this behaviour is that the activeX is not aware of the new size of its parent container until the container is refreshed.
Before this refresh, the control continue to paint itself in the same "region" of the form.

HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform