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 Knowledge Base
- :
- Change in Window Styles Settings For Bitmap Control
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Change in Window Styles Settings For Bitmap Control
Change in Window Styles Settings For Bitmap Control
Summary
Details a style setting change starting with InstallShield 2014.Synopsis
Starting with InstallShield 2014, support for DPI-Aware installations was added. This feature may affect your project if you are migrating a older project and this knowledge base article will explain what you can do about it.Discussion
In pre-2014 versions of InstallShield, the default windows styles setting for a bitmap control are:SS_CENTERIMAGE
SS_REALSIZEIMAGE
Under these settings, the bitmap would display correctly when running on a machine that is set to DPI 100% scaling. Furthermore since older versions of InstallShield were not creating setups marked as DPIAware, Windows would scale the entire contents of a dialog to match the current DPI setting.
Starting with InstallShield 2014, setups are now marked DPIAware and Windows will now draw individual controls on the dialogs in a scaled up manner (...resulting in the dialog layout possibly changing), as opposed to stretching the dialog itself. As a result, window styles on bitmap controls are affected by this change and no longer work the same way.
Now all built in (non-edited/DPI aware) InstallScript dialogs mark image controls with the windows style setting of SS_REALCONTROLSIZE to ensure the images are scaled to image controls correctly. If a migrated project contains any edited dialogs, those edited dialogs will continue to use the old window styles settings as mentioned above.
Workaround
If your windows style settings are still set to:SS_CENTERIMAGE
SS_REALSIZEIMAGE
...you can change the windows style setting for the bitmap control such that the only selected style is:
SS_REALSIZECONTROL
...and this should allow the bitmap to be scaled to fit.
No ratings