Вниз
Скачать: 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.44 MB
Время: 0.015 c
1-54605
Max1111
2003-04-04 12:57
2003.04.17
Проблема с глобальным динамическим массивом4


11-54542
kostyantyn
2002-06-29 17:27
2003.04.17
установка КОЛ в Дельфи


1-54698
OxOTHuK
2003-04-04 19:48
2003.04.17
Проверка МЕМО


1-54730
PrettyFly
2003-04-05 14:08
2003.04.17
Internal error: URW3950


14-54827
AlexZ
2003-04-01 08:28
2003.04.17
Сайт пропал




   Наверх