Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically creating a form with the RTF control
Message
 
 
To
13/02/2002 09:54:37
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00619443
Message ID:
00619622
Views:
12
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform