Ask to DFL

jinheking caoqi at bgi.net.cn
Wed Apr 25 23:37:22 PDT 2007


the *.rc file ,how to write?
thx
"Chris Miller" <chris at dprogramming.com> дÈëÏûÏ¢ÐÂÎÅ:op.trbxi4n0po9bzi at tanu2003.tanu2003net.local...
On Wed, 25 Apr 2007 02:00:05 -0400, jinheking <caoqi at bgi.net.cn> wrote:

> I use dfl design my programe.(like
> http://wiki.dprogramming.com/Dfl/FormIconExample)
> I want to my application's button that it has image.
> I use below :
> but_Exit.image=Application.resources.getBitmap("./img/exit.bmp");
>
> but when the application running,I could not see this picture
> Why?
>

You should ask questions like this on the DFL forum:
http://dsource.org/forums/viewforum.php?f=39

But to answer your question, resources refer to data embedded into your
exe by using a resource compiler. To load a bitmap from the file system,
use new Bitmap("foo.bmp") 





More information about the Digitalmars-d mailing list