DefaultTabWidth
Posted: Wed Oct 18, 2006 3:46 am
Greetings,
Is there any way to set the "DefaultTabWidth" in a TRichView or TppRichView component without using TRuler?
I am loading RTF text into a TppRichView component. If there are tab characters in the document I want it to honor whatever the current default tab setting is in the RTF text (which I can easily obtain).
I did try TRuler with a TRichViewEdit component and set the DefaultTabWidth to 2 inches in code, called Format, and the tab stops were still about 0.5 inches.
Note that custom tab settings come across fine. It is only the default tabs that are the problem.
Michael Philbrick
Is there any way to set the "DefaultTabWidth" in a TRichView or TppRichView component without using TRuler?
I am loading RTF text into a TppRichView component. If there are tab characters in the document I want it to honor whatever the current default tab setting is in the RTF text (which I can easily obtain).
I did try TRuler with a TRichViewEdit component and set the DefaultTabWidth to 2 inches in code, called Format, and the tab stops were still about 0.5 inches.
Note that custom tab settings come across fine. It is only the default tabs that are the problem.
Michael Philbrick