BoscoBilly
10th July 2009 19:59 UTC
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)"
BoscoBilly
17th July 2009 23:13 UTC
:cry:
Hey out there!
Doesn't anyone have a clue for how to fix this?
I would sure appreciate some help.
Thanks.
SuperPat
22nd July 2009 08:47 UTC
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
BoscoBilly
22nd July 2009 16:09 UTC
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: