JStan
asked on
Richedit TabStops
I am having a problem with setting tabstops in Richedit.
The code is:::
procedure TForm1.SetTabs(Sender: TObject);
begin
with Richedit1.Paragraph do
begin
Tab[0] := 100;
Tab[1] := 200;
Tab[2] := 300;
end;
end;
No matter how many tabs I set, it always leaves off the last one.
This code produces 2 tabstops. After that, they are all default
positions.
If I set 5 tabstops, there are only 4 in the Richedit.
And yes, If I set one, none show up.
They are in the right place just missing one.
The window is created and visible when this code is performed.
Thanks for the help,, Jim
The code is:::
procedure TForm1.SetTabs(Sender: TObject);
begin
with Richedit1.Paragraph do
begin
Tab[0] := 100;
Tab[1] := 200;
Tab[2] := 300;
end;
end;
No matter how many tabs I set, it always leaves off the last one.
This code produces 2 tabstops. After that, they are all default
positions.
If I set 5 tabstops, there are only 4 in the Richedit.
And yes, If I set one, none show up.
They are in the right place just missing one.
The window is created and visible when this code is performed.
Thanks for the help,, Jim
Sure it has...after each setting of the tab it returns the last one unless you specify which one to be executed, and when to be executed..
//Vik
//Vik
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That'll do it.
Thanks a lot
Jim
Thanks a lot
Jim
I did know that TabAlignments and TabKinds are not supported by the RichEd20.DLL to be displayed. (They are loaded and saved though)