Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS PROGRESS BAR CONTROL
Message
 
 
To
28/03/2000 08:47:15
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00351311
Message ID:
00351342
Views:
16
>>
>>First create a subclass of the progress bar by dropping it on a form. Otherwise, under runtime, if you try to add that object to a form, you will get an error.
>>
>Forgive me if I understand this wrong, but to add a ProgressBar to a form under runtime you can simply do this:
>
>Thisform.AddObject('oProgress1', 'olecontrol', 'MSComCtlLib.ProgCtrl')
>
>With Thisform.oProgress1
> .Height = 20
> .Left = 146
> .Top = 116
> .Width = 325
> .Visible = .T.
>EndWith

That is correct, this works under development license but gives an error under runtime only machines [this is a documented problem]. That is why you have to create a subclass of the progress bar then instaciate the form class the progress bar has been added to. I learned this the hard way - at least in VFP 6 SP 3 this causes an error.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform