Dear Sir,
We have a requirement where we need to provide zooming facility for the text control
We are using the TImageEnVect component. WE have added the text using
ObjKind[-1] := iekMEMO ;
Code snippet is as follows :
Could you please advise us as to how to provide zooming facility for the text added to the ImageEnVect component?
TIA
------------------------------------------------------------------------------------------------
Procedure TfrmViewImage.AddText(aImageEnView : TImageEnVect);
var
tmpFont:TFont;
begin
Try
aImageEnView.ObjKind[-1] := iekMEMO ;
aImageEnView.ObjLeft[-1] := iLeft *5;
aImageEnView.ObjTop[-1] := iTop * 5;
aImageEnView.ObjHeight[-1] := 125;
aImageEnView.ObjWidth[-1] := 350;
aImageEnView.ObjFontLocked[-1] := false;
aImageEnView.ObjMemoBorderStyle[-1] := psclear;
aImageEnView.ObjMemoCharsBrushStyle[-1] := bsClear;
tmpFont:=TFont.Create;
tmpFont.Color:=clWhite;
tmpFont.Size:=36;
tmpFont.Name:='Verdana';
tmpFont.Style:=tmpFont.Style + [fsBold];
aImageEnView.SetObjFont(-1,tmpFont);
tmpFont.Free;
aImageEnView.AddNewObject;
aImageEnView.MouseInteractVt:=[miObjectSelect];
Except
On E : Exception do Begin
MessageDlg('Error in adding text to image - ' + E.Message, mtError, [mbOk], 0);
End;
End;
end;
------------------------------------------------------------------------------------------------
ksvenkat77