Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing Slider Control MScom
Message
From
26/04/2005 12:58:12
Graham Trott
Hamilton Pc Repair
Ontario, Canada
 
 
To
25/04/2005 21:42:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
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:
01008542
Views:
16
>>I've got a form with a comctl slider 1 control in it. I can get everything working on it but when I first start the form the slider is always invisible. The visible property is set to .t. As soon as the slider is clicked on it appears and stays for the duration of the program but start it again and no slider. This control was dropped in using the form desiger. I have searched and cannot find the answer, although I am sure it's something small that I have forgotten.
>
>I've had this trouble three years ago, and frankly, can't remember how I solved it. I think I was setting it to visible=.t. in parent container's init, or was it the trick of setting form.lockscreen=.t., then resizing the slider by one pixel up, resizing down, lockscreen=.f.; maybe it was .slider.setfocus(), or setting its .value to 1 - one of these has worked in the end. It was back then in VFP7, and I don't have the source anymore (maybe somewhere on a CD, but we moved... who knows where it is).

Put this code in the init event of form
thisform.olecontrol1.oBJECT.visible=.t.
thisform.LockScreen=.t.
thisform.olecontrol1.Height=133
thisform.olecontrol1.value=0
thisform.Refresh
thisform.olecontrol1.value=-128
thisform.olecontrol1.Height=132
thisform.refresh
thisform.LockScreen=.f.
thisform.Refresh
Still no luck. Thanks for any help
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform