Lazarus
Programming => Packages and Libraries => RichMemo => Topic started by: wolfdreamer on May 23, 2015, 11:12:09 am
-
ok, i'm runing Lazarus 1.4 win32.
have the Trichmemo component.
i am trying to get the paragraph alingment to work.
ore is just a standard richmemo component.
what have i done wroung?
i though it was paleft, pacenter paright?
procedure TMainBase.TBJCenterClick(Sender: TObject);
begin
core.SetParaAlignment(core.SelStart, core.SelLength, paCenter);
end;
-
that's correct.
RichMemo supplies a sample named "paragraphs" - give it try!
-
Compile Project, Target: Richeditor.exe: Exit code 1, Errors: 1, Hints: 1
corecode.pas(261,24) Error: Incompatible type for arg no. 1: Got "TPopupAlignment", expected "TParaAlignment"
corecode.pas(141,15) Hint: Found declaration: TMainBase.SetRichAlign(TParaAlignment);
this is what I get when I try that.
oddly when i run the sample it works! confused is i
-
that's identifiers name conflict.
since it's pascal you can easily resolve it by explicitly specifying the unit name:
procedure TMainBase.TBJCenterClick(Sender: TObject);
begin
core.SetParaAlignment(core.SelStart, core.SelLength, RichMemo.paCenter);
end;
-
Works!
Thank you
-
Hi,
I'm trying to use Richmemo.
I'd like to define the paragraph (top, bottom, right and left) form fixed values onshow form.
I've tried to use the samples but I didn't understand how to do this.
Can someome help me, please?
Thanks.