Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Images in Custom Dialog


4 replies to this topic

rmartinez

rmartinez
  • Full Members
  • 8 posts

Posted 13 October 2009 - 15:42

I every one!!!!

I'm developing a InstallScript MSI project and i have a problem.


I want put images in the left for each dialog.
when begin my project have the follow code that put the first image in the first dialog:

DialogSetInfo(DLG_INFO_ALTIMAGE,SUPPORTDIR ^ "Copy of left_bkgrnd.bmp",TRUE);

Now... in the next dialog, i use the same code for put the new image in the dialog, but not working.

How I do the image change?

I need your help....is very important for my make it.

Thanks

Attached Images

  • dialog.JPG


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 October 2009 - 06:49

You don't need to call DialogSetInfo for each dialog. Call it once and it should stay in effect for the rest of your setup.

rmartinez

rmartinez
  • Full Members
  • 8 posts

Posted 14 October 2009 - 17:07

Ok, my friend ! ! !
that's exactly what I have, but I need every dialogue has a different image...

How I do it?

I am very grateful !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 October 2009 - 10:20

I see. How does it fail? Does it simply fail to replace the image? Or does it display an error message? Did you check the return value from DialogSetInfo?

To make sure it isn't an issue with the other bitmaps: did you try to use your second image in the first call to DialogSetInfo?

Did you try calling
DialogSetInfo(DLG_INFO_ALTIMAGE,SUPPORTDIR ^ "Copy of left_bkgrnd.bmp",FALSE);
before you set the next image with TRUE?

rmartinez

rmartinez
  • Full Members
  • 8 posts

Posted 19 October 2009 - 17:02

Ready my friend !!!!

My problem is resolved, now my dialogs have a particular image...
and a Skin modified.

Thanks cool.gif

case closed ! ! ! !

Attached Images

  • dialog.JPG