CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different fonts in one text control. -Reply -Reply
I thought that that would work, also. It doesn't. Apparently, you can edit
portions of the text in the control without the text being shown. So even
if I
RichEdit1->SelStart = RichEdit1->Text.Length();
//This sets the Selection to the last character of the RichEdit.
it doesn't affect what part of the text that I see. Can I (should I) arbitrarily
move the scroll bars down?
I appreciate your help!
John
>>> Keith Turnbull <kturnbull@hawthornedirect.com> 05/05/98 12:41pm
>>>
Probably your best bet to Always start at the end of the RichEdit is
to do it this way...
AnsiString ErrorMessage;
ErrorMessage = "An Error Has Occured";
RichEdit1->SelStart = RichEdit1->Text.Length();
//This sets the Selection to the last character of the RichEdit.
RichEdit1->SelAttribute->Color = clRed;
RichEdit1->SelText = ErrorMessage;
Hope this works for you.
Keith
W Komornicki's Home Page |
Main Index |
Thread Index