Difference between revisions of "RichMemo/Samples"
From Lazarus wiki
Jump to navigationJump to searchm (→Basics) |
m (→Basics) |
||
Line 22: | Line 22: | ||
RichMemo1.Lines.Add('this'+#9+'sample'); | RichMemo1.Lines.Add('this'+#9+'sample'); | ||
</source> | </source> | ||
+ | ===Tab Offsets=== | ||
+ | The length of tab offsets can be controlled using [[RichMemo#GetParaTabs|GetParaTabs]] and [[RichMemo#GetParaTabs|SetParaTabs]] methods. | ||
==See Also== | ==See Also== | ||
*[[RichMemo]] | *[[RichMemo]] | ||
[[Category:RichMemo]] | [[Category:RichMemo]] |
Revision as of 20:21, 28 June 2021
Tabs
Tabs are used to organize the text in table-like layout. This would not be a real layout table, but will make the text (if it's short enough) to look table alike.
Basics
In order for tabs to work the text should be split tab character (#9)
This is how the text would look like if no tab separation is used:
RichMemo1.Lines.Add('hello world');
RichMemo1.Lines.Add('this sample');
If the words are split by Tabs, then the control tries to find the next proper tab offset in order:
RichMemo1.Lines.Add('hello'#9'world');
RichMemo1.Lines.Add('this'+#9+'sample');
Tab Offsets
The length of tab offsets can be controlled using GetParaTabs and SetParaTabs methods.