Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView after resize will display the resize only after
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00999128
Message ID:
00999213
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform