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!
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!