Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmaticly add a RichTextBox control
Message
From
07/01/2000 15:17:35
 
 
To
07/01/2000 07:32:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00314162
Message ID:
00314692
Views:
28
>>Can someone tell me the syntax to add a RichTextBox control to a coded form class?
>>
>>I can get the RichTextBox on the form and show it, but I can't set the ScrollBar property or anything else that falls under the Object reference, because they are read-only.
>>
>>DEFINE CLASS myForm AS FORM
>>ENDDEFINE
>>DEFINE CLASS rtb AS OLECONTROL
>>oleclass = "RICHTEXT.RichTextCtrl.1"
>>width = 300
>>height = 300
>>scrollbars = 3 && this creates a new property. I need the one under .Object.Scrollbars?????????/
>>ENDDEFINE
>>
>>Thanks!
>
>
Fred,
>Not a direct reply :) You could design and save to a vcx.
>
>oForm = createobject("myForm")
>oForm.newobject("rtb","myRTBclass",cMyVCX)
>oForm.rtb.TextRTF = "blah, blah,blah"
>oForm.rtb.visible = .t.
>
>Works.
>Cetin

Thanks, Cetin. That's exactly what I had to do. Oh, well...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform