Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically creating a form with the RTF control
Message
 
 
À
13/02/2002 09:54:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00619443
Message ID:
00619622
Vues:
13
>Hi,
>
>I'm trying to programmatically create a form and add a RichTextBox (RTF) control to it. I'm confused because I've seen elsewhere two ways of setting control's attributes:
>
>< Attribute > = < Value > and .Object.< Attribute > = < Value >
>
>Don't know what each of these two ways really do, and when to use each of them (for me should exist only the first one, though!). The question is that having tried both of them could not make the scroll bars to appear. Can anyone help me to understand why they don't show up (and how to make the scroll bars to appear!) and the reason for having both ways to set object's attributes?
>
< snip >

Hi Fernando,

The ActiveX control on the form is hosted in the OLE Container. In most cases you can ignore that fact and reference ActiveX properties as follow
Thisform.olecontrol1.SomeProperty
To reference ActiveX object directly you have to use Object property of the OLE Container
Thisform.olecontrol1.Object.SomeProperty
See mskb #Q156548 for one of such cases.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform