You've already forked lazarus-ccr
richmemo: change in the RTF property editor. If no text is specified - clear RTF property out.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -38,8 +38,12 @@ begin
|
||||
TheDialog :=TRTFEditDialog.Create(nil);
|
||||
try
|
||||
TheDialog.RichMemo1.Rtf:=GetStrValue;
|
||||
if (TheDialog.ShowModal = mrOK) then
|
||||
if (TheDialog.ShowModal = mrOK) then begin
|
||||
if TheDialog.RichMemo1.Text = '' then
|
||||
SetStrValue( '' )
|
||||
else
|
||||
SetStrValue( TheDialog.RichMemo1.Rtf );
|
||||
end;
|
||||
finally
|
||||
TheDialog.Free;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user