Re: Add my own bitmaps into a resource file?



Somebody wrote:

Hello,

I want to use a resource file to load my own bitmaps. Previously I have been using loadfromfile but want to get away from that.

However, I can set up the resource file but it only appears to let me create a new bitmap. I already have some ready but just can't see the option to add them. Is it possible? Thanks.

I have the version 3.0 Image editor.




Hmm.
In the past, I've used the Resource compiler to create a *.RES
then in the main program at the top I use {$R name.res}.
the Resource file it self is just a text file.

NAME RTBITMAP file path to find it.

using the BRC32 in the Bin directory of delphi.

use the /? on it first to get a list of commands.
etc..
that's one way
some where along the line, Borland allowed you to
create a resource script file and then you simply
added to your project.

In your program, you then would need to use something
like the FindResource, LoadResource etc...
Or use a bitmap function to loadfromResource.
ect.


--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: dynamic resource
    ... yes I'd like to load new bitmap ... But resource file looks like is static. ... I use ATL/MFC applicatation. ...
    (microsoft.public.vc.mfc)
  • Bitmap prb ?
    ... I want my own bitmap to be displayed in the toolbox ... This resource file contains just one item: ... All works fine, the control works fine... ... But when I add the control to the toolbox, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Bitmap Image/ Resource file problem
    ... I have a minor problem locating an image file to load as a Bitmap. ... A resource file "NudeSusan.jpeg" (which I think is actually a bmp ...
    (microsoft.public.dotnet.languages.csharp)
  • problem with ToolboxBitmap ?
    ... I want my own bitmap to be displayed in the toolbox ... This resource file contains just one item: ... All works fine, the control works fine... ... But when I add the control to the toolbox, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Add my own bitmaps into a resource file?
    ... I want to use a resource file to load my own bitmaps. ... I can set up the resource file but it only appears to let me create a new bitmap. ... Kent Briggs, kbriggs@xxxxxxxxxxx ...
    (comp.lang.pascal.delphi.misc)