PDA

View Full Version : numberfield undefined...?



Lithl
June 18th, 2009, 01:21
My understanding: numbercontrol lets you add a number-only control to a window; numberfield lets you add a numbercontrol that is tied to the database.

My problem: Adding a numberfield results in nothing appearing in the window, and any controls anchored to it to give an error ("anchoring to an undefined control"). Changing the tag name to numbercontrol makes everything show up as it should, but it isn't attached to the database.

:confused:

joshuha
June 18th, 2009, 01:45
Can you post the code for the numberfield?

Lithl
June 18th, 2009, 04:21
<numberfield name="bashingsoak">
<anchored>
<to>soakframe</to>
<position>insidetopleft</position>
<offset>25,13</offset>
<size>
<width>30</width>
<height>20</height>
</size>
</anchored>
<font>sheettext</font>
<frame>
<name>modifier</name>
<offset>5,5,5,5</offset>
</frame>
<keyeditframe>
<name>sheetfocus</name>
<offset>5,5,5,5</offset>
</keyeditframe>
<stateframe>
<drophilight>
<name>sheetfocus</name>
<offset>5,5,5,5</offset>
</drophilight>
</stateframe>
<droptypes>
<type>number</type>
</droptypes>
</numberfield>

With <numberfield>, bashingsoak doesn't show up, and both lethalsoak and aggrivatedsoak (which are anchored to bashingsoak) give errors because bashingsoak apparently doesn't exist. With <numbercontrol>, it works correctly, but the number doesn't save.