Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing Slider Control MScom
Message
From
26/04/2005 14:43:38
Graham Trott
Hamilton Pc Repair
Ontario, Canada
 
 
To
26/04/2005 13:22:55
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01008221
Message ID:
01008579
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform