How text size is stored

A control's text size is specified in the control's TextSize property. The values in the TextSize drop-down list determine the point size of the control’s text. PocketBuilder uses negative numbers when saving the text size in points. For example, if you define the text size for the StaticText control st_prompt to be 12 points, PocketBuilder sets the value of the st_prompt TextSize property to –12.

If you want to change the text size in points at runtime, you must use a negative value. For example, to change the point size for st_prompt to 14 points, code:

st_prompt.TextSize = -14

If you want to specify text size in pixels, you can do so by using positive numbers. The following statement sets the text size to be 14 pixels:

st_prompt.TextSize = 14