IO2 Tutorial For FileRequest DirRequest: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
DannyStaple (talk | contribs) (Pulled in content from CHM tutorial) |
DannyStaple (talk | contribs) m (Category Correction) |
||
Line 25: | Line 25: | ||
* You can do it with both textbox and button for separatly, but it's too much to "think" in the moment of the values. | * You can do it with both textbox and button for separatly, but it's too much to "think" in the moment of the values. | ||
[[Category: Install Options 2 | [[Category: Install Options 2 Tutorial]] |
Latest revision as of 14:12, 31 October 2006
Tutorial for FileRequest & DirRequest
- Place the cursor in the middle of dialog 105 and select insert control.
- * We'll use a label, this way we can "imagine" how they will be *
- Choose "label", add some text in the "caption" than hit "ok", see notes.
- The control will appear in the dialog, you resize and stretch as many times and form you like, see.
- Once you finish, with Resource Hacker, hide the dialog.
- You'll get the controls units, see.
- In the screenshot example, 51 70 171 14, will be the order for Left, Top, Right, Bottom values for the INI.
- So this will be, for:
- Left=51
- Top=70
- Right=171+left_value(51)=171+51=222
- Bottom=14+Top_value(70)=14+70=84
- Create your INI, with the new values:
- Left=51
- Top=70
- Right=222
- Bottom=84
Notes:
- This is for both FileRequest & DirRequest
- Type=FileRequest
- Type=DirRequest
- Since there isn't a one control that handles both textbox and button (at the same time) in Resource Hacker, I do this tweak.
- You can do it with both textbox and button for separatly, but it's too much to "think" in the moment of the values.