Summary
Resize Buttons SkinSynopsis
When using dialog skins and modifying dialogs in the Dialog Editor to reposition or resize buttons, the resulting run-time skinned dialog might not appear as expected.
Discussion
This is a limitation of the skin file because it always reverts the buttons back to their original size and location at run time. This issue can be resolved by using the Q200318: INFO: Skin Customization Kit to use bigger buttons and specify the button locations.
- Use the Skin Customization Kit to extract the files of the dialog skin being used. For example, the following command line would extract the files for the IS Blue skin:
"C:\Program Files\<InstallShield Product Folder>\Skin Customization Kit\Bin\CreateSkinFile.exe" -extract "C:\Program Files\<InstallShield Product Folder>\Skins\Blue.isn" "C:\<skin output folder>"
- Notice the two .gif files for buttons in the extracted "<skin output folder>". These are the default images for the two button states (pushed and normal).
- Right click and select to edit one of the gif files using Microsoft Paint. Make the button image bigger (to desired size) by copying 3/4 of the button and pasting it on the end. Do the same for the other image making sure the buttons are the same size.
- Save the new button images with different names in the "<skin output folder>" to differentiate them from the default size buttons. For example, BigButtonPushed.gif and BigButtonNormal.gif.
- Open the skin.ini file. If you want a button to be larger for all dialogs, make the following changes in the section of the ini file titled [ALL]. If you only want to have a large button for a specific dialog, find that specific dialog section name, for example [AskPath]. For new buttons added to an existing dialog go to Step 9.
- Find the button ID (BUTTONX) that you want to use the larger button image with. Each button in the INI file is associated with a unique number that usually corresponds to the Control Identifier number of the button in the Dialog Editor. For example:
BUTTONX=12 is the Back button
BUTTONX=1 is the Next button
BUTTONX=9 is the Cancel button
BUTTONX=2 is the X button to close dialogs
BUTTONX=31 or 196 are Browse buttons
etc.Where X is a number.
- Add the following lines to the INI file section (Step 5) under the button ID (Step 6). This example is using the larger button image for the Back button in the AskPath dialog:
[AskPath]
BUTTONS=4
BUTTON1=12
BUTTON1UP=BigButtonNormal.gif
BUTTON1DOWN=BigButtonPushed.gif - Save changes to the skin.ini file.
- To change the default positioning of buttons change the values of the BUTTONXPOS variable. Continuing with the above example, the changes made in bold below reposition the Back button of the AskPath dialog:
[AskPath]
BUTTONS=4
BUTTON1=12
BUTTON1UP=BigButtonNormal.gif
BUTTON1DOWN=BigButtonPushed.gif
BUTTON1POS=165, 284 - Save changes to the skin.ini file.
- For new buttons added to existing dialog, you must add a button tag (associate it with the Control Identifier in the Dialog Editor). For example, continuing with the AskPath example, note the changes in bold to a default skin.ini:
[AskPath]
BUTTONS=5
BUTTON1=12
BUTTON1POS=195,284
BUTTON2=1
BUTTON2POS=250,284
BUTTON3=9
BUTTON3POS=400,284
BUTTON4=31
BUTTON4POS=392,112
BUTTON5=1201
BUTTON5UP=BigButtonNormal.gif
BUTTON5DOWN=BigButtonPushed.gif
BUTTON5POS=125,125This example uses the big button images for the new button with Control ID 1201. The position of the button is also being changed.
- Use the Skin Customization Kit to create a new skin with the larger/repositioned/new buttons. For example, the following command line would create the skin file from the customized files in the "<skin output folder>":
"C:\Program Files\<InstallShield Product Folder>\Skin Customization Kit\Bin\CreateSkinFile.exe" "C:\<skin output folder>" "C:\<skin output folder>\Custom Skin\setup.isn"
Related KB Articles
Q200318Additional Information
The newly created skin file will have to be added to the media files after the build process. This is because with each new build the default InstallShield skin file will be added to the media and overwrite the custom skin file.
For more information on dialog skins, see the Help Library topic Dialog Skins.
Related Articles
Print Button on Slate Skinned License Dialog is Not Aligned Properly 6Number of Views Skin Customization Kit 11Number of Views Removing the Computer Icon from a Skinned Dialog 3Number of Views "Error in FNE Protocol: Null" While Checking Out License From LLS (server) using Java Client Kit 6Number of Views Slate skin on an InstallShield MSI project, the Print button is too far to the right 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago