Page 1 of 1

Dialog Backgrounds

Posted: Fri Feb 04, 2011 9:20 am
by penfold
Simple question really. Set up a simple project which has created a default set of dialogs. I now need to change the backgrounds of the dialogs, i.e. ones that have a side graphic, to that of the companies requirements. Is there a way of issue something an image or a setting that changes all the backgrounds to our requrements, without modifying every single dialog? If we have to modify every single dialog how do we do this, can not find how you can edit the background?

Re: Dialog Backgrounds

Posted: Fri Feb 04, 2011 5:29 pm
by giaviv
Dear penfold,

Dialog files contain their backgrounds, therefore it is not possible to change them all at once. Please note however that it is possible to load background images to dialogs at run-time. This way, you will be able to customize your backgrounds dynamically. I am attaching a tutorial on how to do this - how hope you find it helpful!

Re: Dialog Backgrounds

Posted: Thu Feb 10, 2011 9:42 am
by MartinIW
Hi there,
I have allready written in another post.
I have hte same problem.I know where to change the pictures manual but i need to change them at runtime.
I have tried this howto with several paths and several dialogs, but it doesnt work for me.
What am i doing wrong?

Looking forwared for any help in this

Martin

Re: Dialog Backgrounds

Posted: Thu Feb 10, 2011 4:42 pm
by giaviv
Dear Martin,

Please send me your project to support at installaware.com and I would be glad to look at it and let you know what you are missing!

Re: Dialog Backgrounds

Posted: Fri Feb 11, 2011 4:25 am
by MartinIW
Thank you very much for the fast reply.
I have sent my project. It is an example project for now.
If it works we will work on with it.

I am looking forward to hear from you soon.

Re: Dialog Backgrounds

Posted: Fri Feb 11, 2011 4:17 pm
by giaviv
Dear MartinIW,

Here is whats likely causing your problem - the files that you load to the images are located on your development machine (c:\Images\*.jpg). However, when you deploy your installer and run it on a different machine, your installer will be looking for c:\images\*.jpg and fail (unless some how these files exist on the target machine). I created a Images folder on my machine, added your images to it and it worked.
What you should do add your images to the support files. These files are available to your installer when it runs, but are not locally saved on the target machine. Then, set your images to $SUPPORTDIR$\myimage.jpg and you are set. Let me know if you were successful!

Re: Dialog Backgrounds

Posted: Mon Feb 14, 2011 2:17 am
by MartinIW
Dear Giaviv,
I have tried the way you said....even converted my .bmp to .jpg because i thought this was the problem.
The only thing i want to do is to set the image before the "Display Dialog". For this I called the image on the dialog exactly like the variable I use to store the path in.
I was shure I tried this before, but I tried with $SUPPORTDIR$\MyImage.bmp also as $SUPPORTDIR$MyImage.bmp or $SUPPORTDIR$\\MyImage.bmp. I tried calling my Imagebox without any underscore, because this may cause a problem. I tried compressed and uncompressed build. I tried without decission of my compiler-variable. It did not work in any case :(
Oh and it does not show any image ether on my developementmashine nor any other mashine.
What am I doing so wrong? May you send me a minimalistic samlpe or something?

I have InstallAware 9 R2 Admin and dont know if its only in InstallAware 10 possible?

Thanks in advance,
Martin

Re: Dialog Backgrounds

Posted: Mon Feb 14, 2011 7:06 am
by giaviv
Dear Martin,

As it says in the tutorial, this is a new feature that was introduced in InstallAware 10. Therefore, it will not work on InstallAware 9...

Re: Dialog Backgrounds

Posted: Mon Feb 14, 2011 8:24 am
by MartinIW
Oh OK,
I think I have made an mistake. Sorry for stealing your time in this case.
I think I have to talk with my teamleader about upgrading to InstallAware 10 then.
It does not make sense for me to copy all dialogs for our two products, when the next Version will have this feature included.

Thanks anyway,
Martin

Re: Dialog Backgrounds

Posted: Mon Feb 14, 2011 1:19 pm
by giaviv
Dear Martin,

No worries - happy to help.