i want insert a icon forwards a line. i have create parastyle like:
Code: Select all
RVStyleManager.AddNewParaStyle(-20,40);
Code: Select all
RVStyleManager.AddNewParaStyle(-40,40);
RVStyleManager.ParaStyles[RVStyleManager.ParaStyles.Count - 1].Tabs.Add.position := 20;
Code: Select all
procedure TSmilieManager.AddSmilieToRV(SmilieCode : byte; RV : TRichView; Para : integer = -1);
var GIF : TJvGIFImage;
begin
GIF := TJvGIFImage.Create;
try
if SmilieCode < self.Count then
begin
GIF.Assign(self[SmilieCode]);
if not GIF.Empty then
RV.AddPictureEx('',GIF,Para,rvvaBaseline)
else
GIF.Free;
end;
except
GIF.Free;
end;
end;
...
SmilieManager.AddSmilieToRV(33,RV);
RV.AddNL(#9 + Text,
TextStyle,
ParaStyle);
thx & greez, sky...