IO2 Tutorial Icon Bitmap

From NSIS Wiki
Jump to navigationJump to search

Tutorial for Icon & Bitmap

  1. Place the cursor in the middle of dialog 105 and select insert control.
  2. Choose "ICON/BITMAP" than hit "ok".
  3. The control will appear in the dialog, you resize and stretch as many times and form you like, see.
  4. * The world ball is the control for the icon and the other... well you'll guess now, see notes *
  5. Once you finish, with Resource Hacker, hide the dialog.
  6. You'll get the controls units, see.
  7. In the screenshot example, 135 44 85 60, will be the order for Left, Top, Right, Bottom values for the INI.
  8. So this will be, for:
  9. Left=135
  10. Top=44
  11. Right=85+left_value(133)=85+133=218
  12. Bottom=60+Top_value(44)=60+44=104
  13. Create your INI, with the new values:
  14. Left=135
  15. Top=44
  16. Right=218
  17. 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