PDA

View Full Version : Numbercontrol vs. Stringcontrol?



Meatball
May 22nd, 2006, 02:26
Hey guys,

I've run into something a bit weird on a charsheet modification I'm making. I've created two fields, one for "Deity" and one for "Piety". Piety is a numeric value while deity is a string. I can't seem to get Piety to work as a numbercontrol though. If I make them both Strings like this, it all works fine. I can enter any string values into both fields and tab through them.

<stringcontrol name="Deity">
<bounds rect="351,235,140,18" />
<font name="smallcontrol" />
<tabtarget next="Piety" prev="Family" />
</stringcontrol>

<stringcontrol name="Piety">
<bounds rect="351,253,140,18" />
<font name="smallcontrol" />
<tabtarget next="Height" prev="Deity" />
</stringcontrol>

Yet, if I change the information for Piety to a numcontrol it just stops working. I can not tab from the Deity field into the Piety field and it seems to automatically populate it with the number 72953008. Here's the code.

<stringcontrol name="Deity">
<bounds rect="351,235,140,18" />
<font name="smallcontrol" />
<tabtarget next="Piety" prev="Family" />
</stringcontrol>

<numbercontrol name="Piety">
<bounds rect="351,253,140,18" />
<nodrag />
<nodrop />
<noreset />
<description text="Piety" />
<limits minimum="0" maximum="999" />
<font name="smallcontrol" />
<tabtarget next="Height" prev="Diety" />
</numbercontrol>

Not too sure what the deal is, anyone have any ideas?

Thanks!

Crusader
May 22nd, 2006, 10:35
Are you using the same character as before you changed the stringcontrol into a numbercontrol? That would explain the 72953008-part. If that is the case, delete the characters and start a new one.

Meatball
May 22nd, 2006, 15:23
Ah, yeah, that I am. Will test it when I get home. Gracias. Drop me a line when you get a chance Cru...got a bunch of mods to the Harn Ruleset for ya :)