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

Just an untested guess:

In Init()
with this.object
   .Scrollbars = 3
endwith
>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!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform