Embedded numeric keypad to enter numeric variable values

Examples : using Top micro TOPWAY Smart LCD (HMT050CC-C) CALL keyboard VP_N32 value

The first step in the establishment of the project

The second step build the page , import background

The third step is associated with the page background

The fourth step to import fonts

1 , the menu bar Tools -> Options -> Font Setting .

2 , Click 50 No. Right-click on the election " the Select"

3 , select " 120x200NUM" font .

4 , click " the Select" choose

5 , click " the OK" to complete

The fifth step to establish N32 variable

In the resource window, right-click the 32bit Number Variables select New VP

The sixth step to establish vertical digital elements associated with VP

1 , the menu bar click Tools digital variable element

2 , the page out of the work area rectangular area , to create a digital element to the page

3 , attributes Font Color font foreground: 0xFFFFFF

4 , property Transparent Select " True"

5 , attribute Font Select 50 Number character (* 1)

6 , property VP Address select just created VP 0x020000

The seventh step establish touch keys associated with CALL keyboard

1 , click on the toolbar menu touch keys

2 , the page out of the work area rectangular area , create touch key element in the page

3 , attributes On Press Down Select: Inverse Color

4 , attribute CALL Select: " KeyBoar Number The"

5 , the properties Title / Vaule Input: " N32 the Input"

6 , attribute VP Address selection: 0x020000

7 , property VP Max Input: 2147483647

The eighth step compile and download

The ninth step the electrodisplacive

1 , disconnect the USB connected to the module

2 is provided to the module 5V power supply

3 , the power display,

4 , press the touch screen key position, the keyboard pops up, enter the VP value, click " the OK"

Complete.


Guess you like

Origin www.cnblogs.com/topway/p/11458166.html