Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmaticly add a RichTextBox control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00314162
Message ID:
00314348
Vues:
26
Fred,

Can you subclass the RichTextBox visually at design time and set the properties up the way you want, and then add the subclass to the form at runtime?

Cheers,

Andrew

>>Fred,
>>
>>Just an untested guess:
>>
>>In Init()
>>
with this.object
>>   .Scrollbars = 3
>>endwith
>>
>
>Sorry, Dave. The property for Scrollbars is Read-only at runtime, so that causes problems. Thanks anyways!
>
>
>
>>>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!


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform