Old 10th July 2009, 18:59   #1
BoscoBilly
Junior Member
 
Join Date: May 2009
Posts: 43
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 is offline   Reply With Quote
Old 17th July 2009, 22:13   #2
BoscoBilly
Junior Member
 
Join Date: May 2009
Posts: 43

Hey out there!
Doesn't anyone have a clue for how to fix this?
I would sure appreciate some help.
Thanks.
BoscoBilly is offline   Reply With Quote
Old 22nd July 2009, 07:47   #3
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 212
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

SuperPat is offline   Reply With Quote
Old 22nd July 2009, 15:09   #4
BoscoBilly
Junior Member
 
Join Date: May 2009
Posts: 43
Talking

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.
BoscoBilly is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump