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

ПОЧЕМУ???   Найти похожие ветки 

 
Jackson ©   (2002-09-15 23:21) [0]

Мастера,помогите!!!Не пойму в чём дело!!!Вот такой код:
with TBoSS.Create(Dxspriteengine1.Engine) do
begin
PixelCheck := true;
Image:= form1.DXImageList1.Items.Find("BOSS");
x:= 350;
y:= 10;
Width:= Image.Width;
Height:= Image.Height;
end;

with TPlayerSprite.Create(Dxspriteengine1.Engine) do
PixelCheck:= true;
Image:= form1.dxImageList1.Items.Find("Pla");
x:= 350;
y:= 500;
Width:= Image.Width;
Height:= Image.Height;
end;

При компиляции,со второй части комп начинает выдавать ошибки:
Undeclared Identifier: Image
Undeclared Identifier: x
Undeclared Identifier: y
В первой части этого кода он эти ошибки не выдал, а во второй выдал...
ПОЧЕМУ?????


 
Daddy ©   (2002-09-16 13:50) [1]

видимо ты не так создал класс, проверь:
TPlayerSprite = class(TImageSprite)


 
Yar-Com ©   (2002-09-16 19:34) [2]

Мля какой класс??? ты просто Begin после With ... Do не поставил........


 
Yar-Com ©   (2002-09-16 20:04) [3]

типа найди десять отличий :)))


 
Fog ©   (2002-09-16 20:14) [4]

with TPlayerSprite.Create(Dxspriteengine1.Engine) do
???
PixelCheck:= true;
Image:= form1.dxImageList1.Items.Find("Pla");
x:= 350;
y:= 500;
Width:= Image.Width;
Height:= Image.Height;
end;



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

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



Память: 0.45 MB
Время: 0.011 c
3-63534
Jdrm
2003-02-03 12:15
2003.02.20
Invalid BLOB handle in record buffer


14-63754
stone
2003-02-05 13:09
2003.02.20
О вреде пива :)))))


1-63619
Goblinus
2003-02-11 00:01
2003.02.20
Конвертация EMF в BMP и наоборот


7-63871
Mixir
2002-12-22 16:15
2003.02.20
Как сделать немодальный MessaegBox?


4-63913
mbIkola
2003-01-09 15:13
2003.02.20
Подсккажите плиз, как связать окно с PopupMenu




   Наверх