Resource files

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Does the compiler support resource files like bitmaps, icons, etc..?, or do they have to be outside the executable and be loaded from there.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

CatchImage(), CatchSound(), CatchSprite()

...its all there, without resource files.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Most of objects have a CatchXXX() command. Combined with IncludeBinary, it will allows you to include your files. Regular resource file will may be included in future version of PureBasic, for advanced coders.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

I do this:

ToolBarImageButton(5,CatchImage(0,?logo))

logo:IncludeBinary "Data\Drive.bmp"

in the toolbar example, but the image appears corrupted. Anyway i wanted to have an image in a listiconview item(as a resource) and change it dynamically with another, i think there is not a reasonable way to this in the current version, but i can live without it.

Thanks in any case.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Is your Image a 24bit BMP ??

If its 8bit (256 colors), convert it
to 24bit and try again.
Maybe thats the reason it doesnt work.

cya,
...Danilo

(registered PureBasic user)
Post Reply