Re: [Gtk2forpascal-devel] How to inline a xpm icon?
Brought to you by:
mgaertner
From: Mattias G. <nc-...@ne...> - 2002-07-31 13:54:32
|
On Wed, 31 Jul 2002 15:21:16 +0200 Mattias Gaertner <nc-...@ne...> wrote: > On Wed, 31 Jul 2002 20:05:15 +0800 (CST) > "mili" <mil...@16...> wrote: > > > Hello, Every one > > > > I know that with C I can include a xpm file and then my > > executable can run independent on any other file. But I don't know > > how to do it under Pascal. > > XPM files are just c constants. You can include them in pascal if you translate them into a PPChar, i.e. an array of PChar. Perhaps I will write a small script to do this automatically. I have added a script named xpm2pasxpm.sh to cvs. It converts an .xpm into an .pas_xpm, which can be included into pascal. Mattias |