Вниз
Скачать: 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.013 c
14-6754
Yellow
2003-03-13 13:42
2003.04.03
Изучение чужой базы


1-6434
Vitek
2003-03-20 17:33
2003.04.03
Проблема с ControlBar и ToolBar


14-6719
blAckweber
2003-03-15 15:45
2003.04.03
Фигня творится с клавиатурой


3-6412
sammy
2003-03-16 10:20
2003.04.03
Помогите со структурой таблицы Access


14-6733
GIMLI
2003-03-14 20:10
2003.04.03
Генерация




   Наверх