This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom image does not show up.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 11, 2013
03:48 AM
Custom image does not show up.
Folks,
This might be a simple question. I am stumped on why the custom image does not show up. The code is as follows
The end result the Welcome screen has no custom image. In the log file i see that this load of the bmp failed. But how do i know why???
Is this something obviously wrong with it?
This might be a simple question. I am stumped on why the custom image does not show up. The code is as follows
#define SETUP1_PATH SUPPORTDIR ^ "Step1.bmp"
STRING szBmpPath;
szBmpPath = SETUP1_PATH;
if ( DialogSetInfo(DLG_INFO_ALTIMAGE_VERIFY_BMP, szBmpPath, TRUE) != ISERR_SUCCESS ) then
RecordInLogFile( "Fatal error in displaying the image " );
endif;
nResult = SdWelcome(szTitle, szMsg);
The end result the Welcome screen has no custom image. In the log file i see that this load of the bmp failed. But how do i know why???
Is this something obviously wrong with it?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 11, 2013
09:14 AM
I think the expected usage is:
DialogSetInfo(DLG_INFO_ALTIMAGE, szBmpPath, DLG_INFO_ALTIMAGE_VERIFY_BMP);That is, the -ALTIMAGE_VERIFY_BMP constant is meant for the last argument, when -ALTIMAGE type is passed as the first argument. Maybe try that?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 11, 2013
08:31 PM
Robert,
I tried that as well and no luck. It says it is successful but only blank screen shows up
The log shows successful in displaying the image, but nothing shows up on the screen.
Thanks
I tried that as well and no luck. It says it is successful but only blank screen shows up
if ( DialogSetInfo(DLG_INFO_ALTIMAGE, szBmpPath, DLG_INFO_ALTIMAGE_VERIFY_BMP) != ISERR_SUCCESS ) then
RecordInLogFile( "Fatal error in displaying the image " );
else
RecordInLogFile("Successfully displayed the image" );
endif;
nResult = SdWelcome(szTitle, szMsg);
The log shows successful in displaying the image, but nothing shows up on the screen.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 12, 2013
08:38 AM
Does your bitmap show up on any dialog boxes after SdWelcome? That function normally sets the banner at the top of a dialog box, but initial and final dialog boxes like SdWelcome change just that inset on the left. This ancient newsletter tip goes through some of this (PDF): https://www.flexerasoftware.com/webdocuments/PDF/DialogBitmaps.pdf
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2013
04:45 PM
Did you ever find a solution to this problem. I am running into the same problem. Everything seems to be working correctly, but the Bitmap does not show up.
This is the code that I am testing.
I have verified that the file exists where it says, but the sidebar graphic does not show up. I just get a blank area.
I've done this in the past with no problem. The only difference is that I am doing this in Test UI. Could this be an issue?
Thanks,
Robert M.
This is the code that I am testing.
MessageBox(SUPPORTDIR ^ "Sidebar-PSPPM-1.BMP", INFORMATION);
nResult = DialogSetInfo(DLG_INFO_ALTIMAGE, SUPPORTDIR ^ "Sidebar-PSPPM-1.bmp", DLG_INFO_ALTIMAGE_VERIFY_BMP);
if (nResult < 0) then
szMessage = SUPPORTDIR ^ "Sidebar-PSPPM-1.bmp not found";
MessageBox(szMessage, INFORMATION);
abort;
else
MessageBox("OK", INFORMATION);
endif;
nResult = SdWelcome(szTitle, szMsg);
I have verified that the file exists where it says, but the sidebar graphic does not show up. I just get a blank area.
I've done this in the past with no problem. The only difference is that I am doing this in Test UI. Could this be an issue?
Thanks,
Robert M.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2013
08:45 AM
I found the problem. InstallShield does not like 32 bit color depth. I changed the sidebar to 24 bit color depth, and the image showed up with no changes to code.
Thanks,
Robert M.
Thanks,
Robert M.