Вниз
Скачать: 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.011 c
3-54426
MishaS
2003-03-28 17:02
2003.04.17
Обработка Событий TTable


3-54416
Z_man7777
2003-04-01 08:47
2003.04.17
Есть вопросик по InterBase 6.x


14-54851
ArtemB
2003-03-31 09:11
2003.04.17
Выделение строк


8-54750
vvvaaa
2003-01-17 13:43
2003.04.17
Градиент


7-54916
OlegM
2003-02-27 07:55
2003.04.17
Как прочитать из реестра параметр типа REG_MULTI_SZ




   Наверх