Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically creating a form with the RTF control
Message
De
14/02/2002 08:46:45
 
 
À
14/02/2002 07:54:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00619443
Message ID:
00619957
Vues:
24
Fernando,

Sorry for missing your first message. I get the same problem. It looks as if the scrollbars won't work when adding the control programmatically. I've had similar problems with other activeX controls that worked only when created as a VCX.

I'm not sure if this is an option for you, but I was able to make it work after creating an RTF control in a VCX. Your code works almost unchanged. One thing I had to change was adding CRs to the text and setting a RightMargin. Otherwise, word wrapping occurs and you won't get the horizontal scroll bar.

HTH
>Hi Daniel,
>
>>>>>Pardon me for jumping in. The ScrollBars property is read-only at run time. You have to set the property at design time. I've successfully used the RichTextBox control with both scrollbars. Have you tried to put some text into the control? You probably know this, but the RichTextControl will only show the scrollbars when there's actual text that exceeds the visible area. This is unlike the behaviour of the VFP EditBox
>
>Thanks for jumping in!
>
>Please check the first message in this thread, there I posted the entire statements sequence I'm using to do my tests. You can run (DO) it and check what I've done so far. Please notice, also, that I'm trying to do it all programmatically (I already could make it work visually in the forms designer setting the RTF control properties, not in the form properties sheet, but in the RTF control properties form, by rightclicking over the inserted control in the form).
>
>If you have some to add or modify to what I've done in order to make the @#%$ scroll bars to appear, please be my guest!
>
>Fernando
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform