Archive: Alpha caps don't fit in Serial page boxes


Alpha caps don't fit in Serial page boxes
Hello:
I am using the script below to setup my serial number page.
I use a 16 char string of cap A/N chars in 4 fields of 4.
The problem is that the boxes are too small for a 3/4 char sequence of certain alpha caps. Only the first 2 or 3 chars are visible. The 3rd 4th char cannot be seen, tho it is there.
Could someone help me fix this?
Thanks.

if, e.g., WWW is typed in one 4-char box,only the first 2 W's are visible.
for WWA, all three can be seen. For III1, all four can be seen.
Below is the script.

!insertmacro UMUI_SERIALNUMBERPAGE_ADD_LABELEDSERIAL SERIALNUMBER 4444 "NODASHS" $R2 "$(UMUI_TEXT_SERIALNUMBER_SERIALNUMBER)"


:cry:
Hey out there!
Doesn't anyone have a clue for how to fix this?
I would sure appreciate some help.
Thanks.


You can enlarge fields by editing NSIS\contrib\UltraModernUI\UMUI.nsh

Into macro !macro UMUI_SERIALNUMBERPAGE_CREATE ID STR FLAGS DEFAULT TEXT WIDTH
replace line (6910 in the last build)
IntOp $1 $2 * 6
by
IntOp $1 $2 * 7


Great!
Works fine, although I am using earlier version:
UltraModernUI_1.00_2008-10-13.exe
In that version, it is line 6915.
Thanks a lot SuperPat!

Now my poor, confused customers will have an easier time typing in the 16-char A/N alpha caps SN I burden them with.
:D :up: