Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rich Textbox Control - anyone??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00475409
Message ID:
00476171
Views:
30
>>You can use the CommonDialog control to select font attributes. When the form >is exited, set properties:
>
>>with thisform
>
>>.RTFBox.SelFontName = .CommonDialog1.FontName
>>.RTFBox.SelFontSize = .CommonDialog1.FontSize
>>.RTFBox.SelItalic = .CommonDialog1.FontItalic
>>.RTFBox.SelBold = .CommonDialog1.FontBold
>>.RTFBox.SelStrikeThru = .CommonDialog1.FontStrikeThru
>>.RTFBox.SelUnderline = .CommonDialog1.FontUnderline
>
>>endwith
>
>Hi Charlie!
>
>How to set the wrap properties of RTF to .T.
>
>Thanx

Word wrap is kind of strange. If you want wordwrap:
WITH thisform.RTFBox
  .MultiLine = .t.            && R/O at runtime - must set in Property Sheet
  .ScrollBars = 3             && R/O "   "  - Both H/V scrollbars
  .RightMargin = 500          && Set wider than the control for scrollbars
                              && Set controlwidth-scrollbarwidth to wordwrap
                              && Wordwrap will still occur any time this
                              && property is not as wide as the widest line
                              && of data your displaying, scrollbars or not
ENDWITH
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform