Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically adding Prog Bar to a Form
Message
From
05/08/1999 10:22:38
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00250147
Message ID:
00250153
Views:
31
>How do I programmatically add the Progress Bar (VFP6) to a form object? e.g.:
>oForm = newobject('form')
>with oForm
>   ...blah, blah, blah...
>   <b>.AddObject(_what_goes_here)</b>
>   ... more stuff here...
>endwith
>Looking at the code generated when I do this visually, the code window in the class browser uses olecontrol. When I put that in the addobject, I get a selection form to pick which control to add. This is not what I want. How do I programmatically specify the progress bar?
>
>TIA

You can pass the OleClass as a parameter, so

loForm.addobject("progress", "Olecontrol", "mscomctllib.progctrl.2")
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform