Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically creating a form with the RTF control
Message
De
13/02/2002 15:06:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00619443
Message ID:
00619657
Vues:
14
Thanks for replying Sergey!

I still keep not understanding (after reading the Q156548 article) that object's property setting behavior, but as you told me to, I tryed:
 Procedure Init
  ThisForm.oleRTF.TextRTF           = cRemarks
  ThisForm.oleRTF.Object.ScrollBars = 3
 EndProc
When I DO the .prg I get a OLE IDispatch exception code 0 from RichTextCtrl: Property is read-only.

Then I tryed:
 Procedure Init
  ThisForm.oleRTF.TextRTF    = cRemarks
  ThisForm.oleRTF.ScrollBars = 3
 EndProc
Got no error, but the scroll bars didn't show up. Shouldn't be a way of setting the object's property in the Define Class?
 Define Class MyRTFClass as OleControl

 OleClass   = "RICHTEXT.RichTextCtrl.1"
 OleLCid    = 1033
 ScrollBars =    3   <<<<<<<<<<<<<<
 <Other Attributes>
 . . .
Being more specific: how can I set the ScrollBars property to 3 (both scroll bars) and make it work?

Thanks again,

Fernando
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform