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

How to display a logo in the title of the dialog


3 replies to this topic

suneetha

suneetha
  • Full Members
  • 7 posts

Posted 30 October 2007 - 07:00

Hai,
I am working on Installscript projects using IS12..I would like to display a my company loge in the title of the dialog box..I used the code like this.but it didnt work...My logo(clogo.bmp) is in "E" folder.This is the I used


function OnFirstUIBefore
begin

Dlg_SdLicense2:
szTitle = "E:\\clogo.bmp";
szOpt1 = "";
szOpt2 = "";
szLicenseFile = SUPPORTDIR ^ "License.rtf";
nResult = SdLicense2Rtf( szTitle, szOpt1, szOpt2, szLicenseFile, bLicenseAccepted );

end
But the title bar shows like this E:\clogo.bmp..
It didnt display the logo..How to do this?Can any one help me?




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 31 October 2007 - 10:09

szTitle ist the text that should be displayed on the dialog. To set the logo:
DialogSetInfo(DLG_INFO_ALTIMAGE, "E:\\clogo.bmp", TRUE);

Of course, E:\clogo.bmp must exist at the time of installation. Typically, you would add the bmp file to the support files section and use:
SUPPORTDIR ^ "clogo.bmp"

For more information please see my article Customizing InstallShield 6 Dialogs

suneetha

suneetha
  • Full Members
  • 7 posts

Posted 11 December 2007 - 11:37

DialogSetInfo(DLG_INFO_ALTIMAGE, "E:\\clogo.bmp", TRUE);
Using this function it displays the image at the left side of the dialog box..But I want to dispaly on top of the dialog box...How to do this?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 12 December 2007 - 14:36

I'm not sure what you mean. Can you post a screenshot?
You may need to modify the dialog using the Dialog Editor.