trichview.support
Re: Protecting framed window text item |
Author |
Message |
Sergey Tkachenko |
Posted: 03/31/2002 11:52:02 This is not supported for text. You can create a special custom-drawn item that will look like text string (but it cannot be wrapped). I've already implemented such kind of items for one of customers. I'll try to find this code, if you want. > I need to make a "framed" text item act like a label. In other words I don't > want the caret to enter the framed box. I want it to bypass the item just > like a regular Delphi label. I don't want to insert a control. I would like > to keep it as a text item. > > I use a TextStyle and Paragraph Style as follows: > > TextStyles[LStyleNo].Protection := [rvprModifyProtect, > rvprDoNotAutoSwitch, > rvprStyleProtect]; > ParaStyles[LStyleNo].Options := [rvpaoNoWrap, rvpaoReadOnly, > rvpaoStyleProtect, > rvpaoDoNotWantReturns]; > > What more can I do to prevent the caret from entering the item? > > Thanks, > > Joe. > > |
Powered by ABC Amber Outlook Express Converter