IO2 Tutorial Icon Bitmap
From NSIS Wiki
Jump to navigationJump to search
Tutorial for Icon & Bitmap
- Place the cursor in the middle of dialog 105 and select insert control.
- Choose "ICON/BITMAP" than hit "ok".
- The control will appear in the dialog, you resize and stretch as many times and form you like, see.
- * The world ball is the control for the icon and the other... well you'll guess now, see notes *
- Once you finish, with Resource Hacker, hide the dialog.
- You'll get the controls units, see.
- In the screenshot example, 135 44 85 60, will be the order for Left, Top, Right, Bottom values for the INI.
- So this will be, for:
- Left=135
- Top=44
- Right=85+left_value(133)=85+133=218
- Bottom=60+Top_value(44)=60+44=104
- Create your INI, with the new values:
- Left=135
- Top=44
- Right=218
- Bottom=104
Notes:
- This is the same for both Icon & Bitmap.
- Type=Icon
- Type=Bitmap
- The bitmap isn't problem since when you finish resizing the control, you easy can put the image:
- Text=C:\\image.bmp
- But in the icon the size isn't the same, depending of the dimensions of you icon, Resource Hacker make their values in a default way, mostly 21X20, carefull on this, if you planing to use a icon with non 32x32 dimensions.
- Text=C:\\logo.ico