Вниз
Скачать: CL | DM;

Глюк   Найти похожие ветки 

 
Zilog ©   (2002-12-27 11:50) [0]

Text := " Hello All! ";
TextLength := length(Text);

j := Screen.Width+TextLength*20;

// with Form1.DXDraw1.Surface.Canvas do begin
// Brush.Style := bsClear; Font.Color := clLime; Font.Size := 30; Font.Name:="Courier"; Font.Style := [fsBold];
// end;

for i := TextLength downto 1 do begin
Chars[i].SYM := Text[i];
Chars[i].X := j;
Chars[i].Y := Screen.Height div 2;
GetTextExtentPoint32(Form1.DXDraw1.Surface.Canvas.Handle,pchar(Chars[i].SYM),0,cs);
j := j - cs.cx;
end;


 
Игорь Шевченко ©   (2002-12-27 12:00) [1]

Как минимум, надо сделать так
var
AText : array [0..1] of char;

AText[0] := Text[i];
AText[1] := #0;
GetTextExtentPoint32(....., AText, 1, cs);



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.012 c
1-6537
Vint45
2003-03-20 19:10
2003.04.03
Расход памяти


1-6427
Navigator_3000
2003-03-23 12:52
2003.04.03
Условие? (Начинающий)


4-6855
stainer
2003-02-03 13:22
2003.04.03
ishellbrowser


1-6435
modem
2003-03-22 14:55
2003.04.03
Удаление папки


14-6751
Anatoly Podgoretsky
2003-03-16 07:57
2003.04.03
Именинники 16 марта




   Наверх