Thread View: alt.comp.borland-delphi
5 messages
5 total messages
Started by 0BIT
Fri, 14 Mar 2003 13:15
Tab size in TRichEdit
Author: 0BIT
Date: Fri, 14 Mar 2003 13:15
Date: Fri, 14 Mar 2003 13:15
6 lines
1505 bytes
1505 bytes
Hello, How do I change the tab size for the text within a TRichEdit ? Greeting, 0BIT
Re: Tab size in TRichEdit
Author: KLinZ
Date: Fri, 14 Mar 2003 13:22
Date: Fri, 14 Mar 2003 13:22
8 lines
1723 bytes
1723 bytes
0BIT wrote: > How do I change the tab size for the text within a TRichEdit ? RichEdit1.ParaGraph.Tab[...]:=desiredwidth; -- www.zenobits.com
Re: Tab size in TRichEdit
Author: 0BIT
Date: Fri, 14 Mar 2003 14:07
Date: Fri, 14 Mar 2003 14:07
20 lines
2023 bytes
2023 bytes
Isn't there a way to set tabs with the number of chars size instead of pixel size ? How do I change all the text without the user seeing the selection ? I tried RichEdit1.HideSelection:=True; before RichEdit1.SelectAll; but this doesn't work ? : / Greetings, 0BIT "KLinZ" <klinz@NOSPAMzenobitsSPAMNO.com> wrote in message news:UKkca.12025$oe.20361@amstwist00... > 0BIT wrote: > > > How do I change the tab size for the text within a TRichEdit ? > > RichEdit1.ParaGraph.Tab[...]:=desiredwidth; > > -- > www.zenobits.com >
Re: Tab size in TRichEdit
Author: KLinZ
Date: Fri, 14 Mar 2003 17:15
Date: Fri, 14 Mar 2003 17:15
22 lines
2296 bytes
2296 bytes
0BIT wrote: > Isn't there a way to set tabs with the number of chars size instead > of pixel size ? > How do I change all the text without the user seeing the selection ? > I tried RichEdit1.HideSelection:=True; before RichEdit1.SelectAll; > but this doesn't work ? : / > > Greetings, > 0BIT > 1) You can calculate the width of given text on a given canvas with Canvas.TextExtent. But not every character has the same width in proportional fonts so it will look kind a strange. 2) HideSelection has only meaning if the control doesn't have focus. What do you want to accomplish? The contents of the RichEdit can be modified though the Lines property. -- www.zenobits.com
Re: Tab size in TRichEdit
Author: Bruce Roberts
Date: Fri, 14 Mar 2003 19:36
Date: Fri, 14 Mar 2003 19:36
10 lines
1838 bytes
1838 bytes
"0BIT" <someone@123.com> wrote in message news:Nmlca.76631$Pp1.42435@amsnews02.chello.com... > Isn't there a way to set tabs with the number of chars size instead of pixel > size ? The documentation, IIRC, is wrong with respect to many of the measurement settings in rich edits. In fact the values are expressed in units of 1 / 72 inch (1 pt).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads