View previous topic :: View next topic |
Author |
Message |
jinheking
Joined: 25 Apr 2007 Posts: 1
|
Posted: Wed Apr 25, 2007 2:21 am Post subject: ASk DFL Button question |
|
|
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? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Apr 25, 2007 1:53 pm Post subject: Re: ASk DFL Button question |
|
|
I already answered you:
Quote: | 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") |
|
|
Back to top |
|
|
|