Hello Richview-Support,
I have the following question: Is it possible to indent bullet points with a tab in TRichview?
In my Richviewedit i have these bullet points
If I press tab, only the text moves.+
In Word, the next indent will be triggered.
Kind Regards
Tom
Tab Key Behavior with Bulleted Lists in TRichViewEdit
Re: Tab Key Behavior with Bulleted Lists in TRichViewEdit
I use the TrvActionIndentDec (action for "Decrease Indent" command) and TrvActionIndentInc (action for "Increase Indent" command) actions. I have those assigned to some toolbar buttons.
I also put this into the rveKeyPress event so I can select some text and move it in or out using tab/shift+tab like the Delphi IDE:
Sergey may have some other answer(s) but that's what I use. It works on bulleted text.
Stan
I also put this into the rveKeyPress event so I can select some text and move it in or out using tab/shift+tab like the Delphi IDE:
Code: Select all
if Key=#9 then
begin
if rve.SelectionExists then
begin
Key := #0;
//Shift + Tab when text selected (remove tabs):
if (GetKeyState( VK_SHIFT ) and $8000 <> 0) then
begin
RVEParagraphrvActionIndentDec1.ExecuteTarget(rve);
end
else //Tab when text selected (add tabs)
begin
RVEParagraphrvActionIndentInc1.ExecuteTarget(rve);
end;
end;
end;
Stan