Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the list of all OLE controls
Message
 
 
À
15/01/2003 10:29:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00741908
Message ID:
00741914
Vues:
21
It wouldn't work because of the bug in VFP described in mskb #Q192693 BUG: License Error with ActiveX Control Added at Run-Time

>Hi,
>
>When I try to create a new class based on "OLEControl" or when I add an "OLEControl" to a form, VFP displays a list of all the controls available (when choosing insert control, in the control type listbox).
>
>I'd like to know how I can get this list programmatically and once I have that, how to create a chosen control using ADDOBJECT?
>
>For example, once the list is displayed and after a user has chosen a control at run time (let's say the user chose 'Microsoft Rich TextBox Control 6.0 (SP4)'), how can I convert the caption ('Microsoft Rich TextBox Control 6.0 (SP4)') into an ADDOBJECT statement (i.e. soething like 'THISFORM.ADDOBJECT("ControlName", "ControlClass", "ControlOle")')?
>
>Thanks a lot in advance, Stephane.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform