General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only