Programming
Font styles and ID numbers
Font styles can be used to program the text fonts on buttons, sliders, and pages. The following chart shows the default font type and their respective ID numbers generated by TPDesign4.
Default Font Styles and ID Numbers
Font ID # | Font type | Size |
| Font ID # | Font type | Size |
|
|
|
|
|
|
|
1 | Courier New | 9 |
| 19 | Arial | 9 |
|
|
|
|
|
|
|
2 | Courier New | 12 |
| 20 | Arial | 10 |
|
|
|
|
|
|
|
3 | Courier New | 18 |
| 21 | Arial | 12 |
|
|
|
|
|
|
|
4 | Courier New | 26 |
| 22 | Arial | 14 |
|
|
|
|
|
|
|
5 | Courier New | 32 |
| 23 | Arial | 16 |
|
|
|
|
|
|
|
6 | Courier New | 18 |
| 24 | Arial | 18 |
|
|
|
|
|
|
|
7 | Courier New | 26 |
| 25 | Arial | 20 |
|
|
|
|
|
|
|
8 | Courier New | 34 |
| 26 | Arial | 24 |
|
|
|
|
|
|
|
9 | AMX Bold | 14 |
| 27 | Arial | 36 |
|
|
|
|
|
|
|
10 | AMX Bold | 20 |
| 28 | Arial Bold | 10 |
|
|
|
|
|
|
|
11 | AMX Bold | 36 |
| 29 | Arial Bold | 8 |
|
|
|
|
|
|
|
|
|
|
| 32 - Variable Fonts start at 32. |
| |
|
|
|
|
|
|
|
You must import fonts into a TPDesign4 project file. The font ID numbers are assigned by TPDesign4. These values are also listed in the
Generate Programmer’s Report.
Border styles and Programming numbers
Border styles can be used to program borders on buttons, sliders, and popup pages.
Border Styles and Programming Numbers
No. | Border styles | No. | Border styles |
|
|
|
|
No border | Picture frame | ||
|
|
|
|
2 | Single line | 12 | Double line |
|
|
|
|
3 | Double line | 20 | |
|
|
|
|
4 | Quad line | 21 | |
|
|
|
|
Circle 15 | Circle 15 | ||
|
|
|
|
7 | Single line | Neon | |
|
|
|
|
8 | Double line | Diamond 55 | |
|
|
|
|
9 | Quad line |
|
|
|
|
|
|
The TPDesign4 Touch Panel Design program has
You cannot use the following number values for programming purposes when changing border styles. TPD4 border styles can ONLY be changed by using the name.
TPD4 Border Styles by Name
No. | Border styles | No. | Border styles |
|
|
|
|
1 | None | 6 | Bevel |
|
|
|
|
2 | AMX Elite | 7 | Bevel |
|
|
|
|
3 | AMX Elite | 8 | Circle 15 |
|
|
|
|
4 | AMX Elite | 9 | Circle 25 |
|
|
|
|
5 | Bevel | 10 | Circle 35 |
|
|
|
|
105 | |
|
|