added text to test page (add nextion2text)

This commit is contained in:
joBr99
2022-12-06 21:19:31 +00:00
committed by github-actions[bot]
parent aa4cabf930
commit d7b43b9975
4 changed files with 154 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2022-12-06 20:06:24.733697158 +0000
+++ /dev/fd/62 2022-12-06 21:19:22.503654117 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+I/n2t-out/cardChart.txt

View File

@@ -6,10 +6,6 @@ pageIcons
7 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
pageTest
21 Component(s)
65 Line(s) of event code
63 Unique line(s) of event code
popupShutter
25 Component(s)
394 Line(s) of event code
@@ -26,6 +22,10 @@ pageStartup
19 Component(s)
181 Line(s) of event code
129 Unique line(s) of event code
pageTest
23 Component(s)
73 Line(s) of event code
69 Unique line(s) of event code
popupInSel
34 Component(s)
529 Line(s) of event code
@@ -54,6 +54,10 @@ cardAlarm
40 Component(s)
443 Line(s) of event code
263 Unique line(s) of event code
screensaver
47 Component(s)
402 Line(s) of event code
298 Unique line(s) of event code
popupThermo
44 Component(s)
515 Line(s) of event code
@@ -62,10 +66,6 @@ cardThermo
53 Component(s)
612 Line(s) of event code
318 Unique line(s) of event code
screensaver
47 Component(s)
402 Line(s) of event code
298 Unique line(s) of event code
cardMedia
57 Component(s)
640 Line(s) of event code
@@ -77,6 +77,6 @@ cardEntities
Total
18 Page(s)
634 Component(s)
7797 Line(s) of event code
1961 Unique line(s) of event code
636 Component(s)
7805 Line(s) of event code
1967 Unique line(s) of event code

View File

@@ -45,6 +45,77 @@ Variable (string) tSend
Text :
Max. Text Size: 40
Text m0
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 465
y coordinate : 0
Width : 15
Height : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 63488
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tTmp.txt="change model conf to us-l/p "
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,25,20,6,WHITE,RED,2,1,3,strTmp.txt
}
Text strTmp
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 163
y coordinate : 204
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tBench
Attributes
ID : 15
@@ -75,6 +146,36 @@ Text tBench
Horizontal Spacing : 0
Vertical Spacing : 0
Text tTmp
Attributes
ID : 21
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 164
y coordinate : 244
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
@@ -561,22 +662,6 @@ Button b9
Touch Press Event
page popupNotify
Hotspot m0
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 225
y coordinate : 81
Width : 60
Height : 215
Effect : load
Effect Priority : 0
Effect Time : 300
Timer tmSerial
Attributes
ID : 14

View File

@@ -34,6 +34,37 @@ Variable (string) tSend
Text :
Max. Text Size: 40
Text m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Events
Touch Press Event
tTmp.txt="change model conf to us-l/p "
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,25,20,6,WHITE,RED,2,1,3,strTmp.txt
}
Text strTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tBench
Attributes
Scope : local
@@ -44,6 +75,16 @@ Text tBench
Text :
Max. Text Size : 20
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 30
Picture p0
Attributes
Scope : local
@@ -234,13 +275,6 @@ Button b9
Touch Press Event
page popupNotify
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Timer tmSerial
Attributes
Scope : local