trichview.com

trichview.support




Re: Protecting framed window text item


Return to index


Author

Message

Joe

Posted: 04/01/2002 6:06:30


Sergey:


>I've already implemented such kind of items for one of customers. I'll try

to find this code, if you want.


Yes that would be perfect! It doesn't have to wrap.


Thanks for your help.


Joe.


- - - - - -


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:3ca6e377$1@support.torry.net...

> 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