Author Topic: Resouce Dialogs rc files  (Read 928 times)

0 Members and 1 Guest are viewing this topic.

Offline dev0

  • ZX 81
  • *
  • Posts: 16
  • Karma: 3
  • Legends never die...
    • View Profile
Resouce Dialogs rc files
« on: May 14, 2013 »
Hi,
well, this is not a question related to demos or intros its more general...
I started with PureBasic for a few days and now maybe someone can point me to the right direction using resource files.

The problem:
I've created an rc file containing a dialog with an image and a few buttons / checkbox. What I want to archive is to use that dialog while only using winapi. So no Gadget stuff involved right now. Showing that dialog wasn't a big deal so far but my problem now is: like I told before the dialog had an image when I store e.g. a bitmap for example inside the resource file, how can I display that bitmap in the dialog's image component?

Hopefully you understand what I mean its like when I use a resource editor, for whatever reason I can add the bitmap resource but I can't associate that to the image component on the dialog directly...

So I guess I have to do it from code itself?

regards
PureBasic 5.11
Delphi XE3

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 978
  • Karma: 258
    • View Profile
Re: Resouce Dialogs rc files
« Reply #1 on: May 14, 2013 »
Just had a quick look, but I guess this should help: >> Click <<

Scroll down to the post by Denis.


Pad :)



Challenge Trophies Won:

Offline dev0

  • ZX 81
  • *
  • Posts: 16
  • Karma: 3
  • Legends never die...
    • View Profile
Re: Resouce Dialogs rc files
« Reply #2 on: May 14, 2013 »
Just had a quick look, but I guess this should help: >> Click <<

Scroll down to the post by Denis.


Pad :)

Ah very helpful indeed, got the association with the bitmap and the dialog working now...
The Problem which was driving me nuts was the PureBasic seems to use some strange syntax for the rc script... so I need a little to figure out what went wrong now its working fine...
regards
PureBasic 5.11
Delphi XE3