Hi together,
im starting to display text on a form (invoice as tiff).
After that I have added some text and can move it to right position.
Now I'm looking to resize text in width and height (seperate)
Load image, add text is already done. Used the source sample of William Miller
fslCold is a Stringlist
fiLayer := ImageEnView1.LayersCreateFromText(fslCold.Text,
'Courier New',
25,
clBlack,
AFontStyle,
False,
0,
0,
0,
True
);
Moving is done inside Keydown event of form (Keydown at imageen is not working im my version)
if (fiLayer <> -1) then begin
lintMove := 10;
if (Shift = [ssCtrl]) then lintMove := 1;
if (Shift = [ssShift]) then lintMove := 100;
if (Key = 39) then ImageEnView1.Layers[fiLayer].PosX := ImageEnView1.Layers[fiLayer].PosX + lintMove;
if (Key = 37) then ImageEnView1.Layers[fiLayer].PosX := ImageEnView1.Layers[fiLayer].PosX - lintMove;
if (Key = 40) then ImageEnView1.Layers[fiLayer].PosY := ImageEnView1.Layers[fiLayer].PosY + lintMove;
if (Key = 38) then ImageEnView1.Layers[fiLayer].PosY := ImageEnView1.Layers[fiLayer].PosY - lintMove;
ImageEnView1.Update;
end;
I'm glad about any tip
Thanks Uwe
Uwe Beyer
Software Engineering / Consulting (Personalsystem/Archivsystem/Web)
IS International Sourcing AG
Stockwiesenstr. 1
CH-8240 Thayngen