Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically creating a form with the RTF control
Message
From
14/02/2002 08:46:45
 
 
To
14/02/2002 07:54:08
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00619443
Message ID:
00619957
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform