Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically adding Prog Bar to a Form
Message
De
05/08/1999 10:22:38
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00250147
Message ID:
00250153
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform