Debian Codegraph @

components/gifanim/ressource-file.txt

raw
1
2 1) Gif in ressource file
3 -------------------------
4
5 - Create ressource file with lazres ex : lazres mygif.lrs gif1.gif gif2.gif
6 - Put TGifAnim on your form
7 - In the FormCreate add (see down)
8
9 [code]
10
11 procedure TForm1.FormCreate(Sender: TObject);
12 begin
13 GifAnim1.LoadFromLazarusResource('gif1');
14 GifAnim2.LoadFromLazarusResource('gif2');
15 end;
16
17 [/code]
18
19 - And insert ressouce file in initialization section (see down)
20
21 [code]
22
23 initialization
24 {$I unit1.lrs}
25 {$I mesgif.lrs}
26
27 [/code]
28