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

Фон   Найти похожие ветки 

 
Jackson ©   (2002-11-16 20:40) [0]

Люди,плиз хелп!!!Не могу сделать фон!!!
constructor TBackroundSprite.Create(AParent: TSprite);
begin
inherited Create(AParent);
PixelCheck := true;
Image:= form1.dxImageList1.Items.Find("Fon");
Width := Image.Width;
Height := Image.Height;
end;
При запуске проги у меня чёрный экран!!!Подскажите,где я ошибся!


 
NikotiN ©   (2002-11-17 11:40) [1]

Наверно так:

TBackGround=class(TBackgroundSprite)
constructor Create(AParent:TSprite);override;
end;

constructor TBackGround.Create(AParent:TSprite);
begin
inherited create(AParent);
PixelCheck := true;
Image:= form1.dxImageList1.Items.Find("Fon");
Width := Image.Width;
Height := Image.Height;

Z:=0;
Tile:=true;
SetMapSize(200,100);
end;


 
NikotiN ©   (2002-11-17 11:41) [2]

Забыл скозать:
SetMapSize(x,y)
x,y - на твоё усмотрение!



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

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



Память: 0.45 MB
Время: 0.012 c
7-54906
Victor52
2003-02-25 16:27
2003.04.17
Генерация частот на звуковую плату.


4-54939
alexrush
2003-02-15 12:00
2003.04.17
Desktops & WindowStations


3-54500
malkolinge
2003-03-31 14:12
2003.04.17
Сравнение с датой на сервере


1-54552
Smereka
2003-04-06 14:22
2003.04.17
Проблема с отладкой


14-54822
MBo
2003-04-01 06:50
2003.04.17
ACM-ICPC




   Наверх