I have to add indents....
I try this....
self.AddText('\t') and this actually works, but i see in the stc header a function SetIndent(), but actually don't know how to use it...
Any tips... thanks in advanced
···
_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
Diego Anzoategui:
I have to add indents....
I try this....
self.AddText('\t') and this actually works, but i see in the stc header a
function SetIndent(), but actually don't know how to use it...
Any tips... thanks in advanced
What you are probably after is SetLineIndentation(line, indentSize) and
to increase indentation for a line SetLineIndentation(line,
GetLineIndentation(line) + indentStep). The indentSize in SetLineIndentation
is in terms of space characters. SetIndent is to change the size of an
indentation step which is used when you press the Tab key to indent a block
of lines. You may also need to use SetUseTabs(useTabs) to say whether you
want indentation to use tab characters or only space characters.
The point of using SetLineIndentation rather than using AddText('\t') is
that it can use both tabs and spaces to achieve an indentation that is not
an integral number of tabs such as a 4 space indent when tab is set to 8
characters.
Neil