Using a resource in an external file

ClearWin+ controls that take the name of a bitmap, icon, or cursor resource can be given a string consisting of a external file name enclosed in curly brackets. The full path of the file is usually only needed when the image file is not in the same directory as the executable. Here is an example:

i=winio@('%bm[{bmpfile.bmp}]')

The file name must not begin with an integer.

If you use the same file name more than once and in the mean time the file has been changed then the resource will be  reloaded from the file.

ClearWin+ will delete the resource when the program terminates.

You can use this feature to load animated cursors. For example:

i=winio@('%dc[{c:\windows\cursors\Globe.ani}]')

but under Windows NT you will need version 4 or later.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited