Action Elements: Difference between revisions

From Smart LCD
Line 4: Line 4:
  '''General'''
  '''General'''
  Show the basic information of the element
  Show the basic information of the element
  X and Y is the location of element on screen, reference point is element top-left corner
  <u>X</u> and <u>Y</u> is the location of element on screen, reference point is element top-left corner
  Width and Height are in pixels
  <u>Width</u> and <u>Height</u> are in pixels
  top-left corner of the screen = 0,0
  top-left corner of the screen = 0,0


  '''Visual Effect'''
  '''Visual Effect'''
  On Press Down options are  None / Inverse Color(*4) / Show Icon(*5) / Show Cropped BgImg(*6)
  <u>On Press Down</u> options are  None / Inverse Color(*4) / Show Icon(*5) / Show Cropped BgImg(*6)
  Icon/BgImage base on the above option, select a Background Image or an Icon for the visual effect
  <u>Icon/BgImg</u> base on the above option, select a Background Image or an Icon for the visual effect
  SGT can show a box of a Background Image corresponding to the Touch Key area.
  SGT can show a box of a Background Image corresponding to the Touch Key area.


  '''Target'''
  '''Target'''
  Target Page is for page jump function after touch
  <u>Target Page</u> is for page jump function after touch


  '''Call'''
  '''Call'''
  Call Keyboard is for call up a keyboard after touch
  <u>Call Keyboard</u> is for call up a keyboard after touch
  Call Operation is for simple calculation after touch
  <u>Call Operation</u> is for simple calculation after touch
  Call Key is for building PIP_Keyboard
  <u>Call Key</u> is for building PIP_Keyboard


  '''Content'''
  '''Content'''
  VP Address is for calculation or Keyboard input result
  <u>VP Address</u> is for calculation or Keyboard input result
  Compile As can force VP variable work different than default (Auto);  
  <u>Compile As</u> can force VP variable work different than default (Auto);  
  VP_N16 (two successive VP_N16) work as VP_N32;
  VP_N16 (two successive VP_N16) work as VP_N32;
  VP_N32 (first two byte of VP_N32) work as VP_N16;
  VP_N32 (first two byte of VP_N32) work as VP_N16;
  VP_N64 (first two byte of VP_N64) work as VP_N16;  
  VP_N64 (first two byte of VP_N64) work as VP_N16;  
  VP_N64 (first four byte of VP_N64) work as VP_N32
  VP_N64 (first four byte of VP_N64) work as VP_N32
  Data type should be signed by default (*1)
  <u>Data Type</u> should be signed by default (*1)


  '''Return'''
  '''Return'''
  Return Value for select type of notification to host during touch.
  <u>Return Value</u> for select type of notification to host during touch.
  It can notify the Host via Touch Key ID Response code (0x78) (*3): none / Up PGID + TPKID / PGID + TPKID / PGID + TPKID
  It can notify the Host via Touch Key ID Response code (0x78) (*3): none / Up PGID + TPKID / PGID + TPKID / PGID + TPKID
  none  no notification (by default);
  none  no notification (by default);
Line 39: Line 39:


  '''Properties Control (advance feature)'''
  '''Properties Control (advance feature)'''
  Enable VP is none by default (element operate normally)
  <u>Enable VP</u> is none by default (element operate normally)
  Select a VP for real time element control.
  Select a VP for real time element control.
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
Line 87: Line 87:
  '''General'''
  '''General'''
  Show the basic information of the element
  Show the basic information of the element
  X and Y is the location of element on screen, reference point is element top-left corner
  <u>X</u> and <u>Y</u> is the location of element on screen, reference point is element top-left corner
  Width and Height are in pixels
  <u>Width</u> and <u>Height</u> are in pixels
  top-left corner of the screen = 0,0
  top-left corner of the screen = 0,0
  This element’s X, Y, Width, Height are not related to its functionality.
  This element’s X, Y, Width, Height are not related to its functionality.


  '''Condition'''
  '''Condition'''
  Monitor-VP is a VP to trigger this Virtual Key
  <u>Monitor-VP</u> is a VP to trigger this Virtual Key
  Monitor-Value is the Value for trigging this element
  <u>Monitor-Value</u> is the Value for trigging this element


  '''Target'''
  '''Target'''
  Target Page is for page jump function after touch
  T<u>arget Page</u> is for page jump function after touch


  '''Call'''
  '''Call'''
  Call Keyboard is for call up a keyboard after touch
  <u>Call Keyboard</u> is for call up a keyboard after touch
  Call Operation is for simple calculation after touch
  <u>Call Operation</u> is for simple calculation after touch
  Call Key is for building PIP_Keyboard
  <u>Call Key</u> is for building PIP_Keyboard


  '''Content'''
  '''Content'''
  VP Address is for calculation or Keyboard input result
  <u>VP Address</u> is for calculation or Keyboard input result
  Compile As can force VP variable work different than default (Auto)
  <u>Compile As</u> can force VP variable work different than default (Auto)
  VP_N16 (two successive VP_N16) work as VP_N32
  VP_N16 (two successive VP_N16) work as VP_N32
  VP_N32 (first two byte of VP_N32) work as VP_N16
  VP_N32 (first two byte of VP_N32) work as VP_N16
  VP_N64 (first two byte of VP_N64) work as VP_N16
  VP_N64 (first two byte of VP_N64) work as VP_N16
  VP_N64 (first four byte of VP_N64) work as VP_N32
  VP_N64 (first four byte of VP_N64) work as VP_N32
  Data type should be signed by default (*1)
  <u>Data Type</u> should be signed by default (*1)


  '''Properties Control (advance feature)'''
  '''Properties Control (advance feature)'''
  Enable VP is none by default (element operate normally)
  <u>Enable VP</u> is none by default (element operate normally)
  Select a VP for real time element control.  
  Select a VP for real time element control.  
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
Line 127: Line 127:
  '''General'''
  '''General'''
  Show the basic information of the element
  Show the basic information of the element
  X and Y is the location of element on screen, reference point is element top-left corner
  <u>X</u> and <u>Y</u> is the location of element on screen, reference point is element top-left corner
  Width and Height are in pixels
  <u>Width</u> and <u>Height</u> are in pixels
  top-left corner of the screen = 0,0
  top-left corner of the screen = 0,0
  This element’s X, Y, Width, Height are not related to its functionality.
  This element’s X, Y, Width, Height are not related to its functionality.


  '''Style'''
  '''Style'''
  Sweep Threshold defines the sweeping distance which start the feature
  <u>Sweep Threshold</u> defines the sweeping distance which start the feature
  Smaller value makes it more easy to be trigger
  Smaller value makes it more easy to be trigger
  Bigger value makes it slower response to the action
  Bigger value makes it slower response to the action
Line 139: Line 139:


  '''Target'''
  '''Target'''
  Left Side Page is the target page that pull-out form left side while the touch sweeping form left to right
  <u>Left Side Page</u> is the target page that pull-out form left side while the touch sweeping form left to right
  Right Side Page is the target page that pull-out form right side while the touch sweeping form right to left
  <u>Right Side Page</u> is the target page that pull-out form right side while the touch sweeping form right to left


  '''Return'''
  '''Return'''
  Return Value for select type of notification to host during touch
  <u>Return Value</u> for select type of notification to host during touch
  It can notify the Host via Touch Key ID Response code (0x32)
  It can notify the Host via Touch Key ID Response code (0x32)
  none, no notification (by default) (see "Command" section for details)
  none, no notification (by default) (see "Command" section for details)
Line 149: Line 149:


  '''Properties Control (advance feature)'''
  '''Properties Control (advance feature)'''
  Enable VP is none by default (element operate normally)
  <u>Enable VP</u> is none by default (element operate normally)
  Select a VP for real time element control.  
  Select a VP for real time element control.  
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
  VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
== Touch Key with Repeat (TPK_RPT) ==
[[File:Properties TPK Repeat.png|right|907x907px]]
[[File:TPK-RPT.png|128x128px]]
'''General'''
Show the basic information of the element
<u>X</u> and <u>Y</u> is the location of element on screen, reference point is element top-left corner
<u>Width</u> and <u>Height</u> are in pixels
top-left corner of the screen = 0,0
'''Visual Effect'''
<u>On Press Down</u> options are None / Inverse Color / Show Icon / Show Copped Image
<u>Icon/BgImage</u> base on the above option select a Background Image or an Icon for the visual effect
'''Style'''
<u>Mode</u> is touch action moment
Down Action will trigger the Short Press feature while touch down
Up Action will trigger the Short Press feature while touch up
<u>Long Press Time</u> is the time for Long Press feature to be trigger
<u>Long Press Cycle</u> is the repeat action cycle time for long Press
<u>Long Press Value</u> is operation (VP:=VP+value) value for Long Press
<u>Short Press Value</u> is the operation (VP:=VP+value) value for Short Press
(negative value for minus operation)
'''Content'''
<u>VP Resource</u> is the type of VP to be used
<u>VP Address</u> is the VP for the operation
<u>Min Value</u> is the bottom value that will be limited by the operation
<u>Max Value</u> is the top value that will be limited by the operation
'''Return'''
Return Value / VP / Status VP for select type of notification to host
(multiple notification can be enable)
<u>Up, PGID+TPKID</u>
<u>Down, PGID+TPKID</u>
<u>Up, VP Address+Value</u>
<u>Down, VP Address+Value</u>
<u>Cycling, VP Address+Value</u>
<u>Up, Vp Address+Status Value</u>
<u>Down, Vp Address+Status Value</u>
'''Properties Control (advance feature)'''
<u>Enable VP</u> is none by default (element operate normally)
Select a VP for real time element control.
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
<u>Status VP</u> is none by default
Select a VP for storing the real time status (0=no touch, 1=touch down, 2= long press)

Revision as of 18:14, 10 May 2025

Touch Key (TPK) Properties

General
Show the basic information of the element
X and Y is the location of element on screen, reference point is element top-left corner
Width and Height are in pixels
top-left corner of the screen = 0,0
Visual Effect
On Press Down options are  None / Inverse Color(*4) / Show Icon(*5) / Show Cropped BgImg(*6)
Icon/BgImg base on the above option, select a Background Image or an Icon for the visual effect
SGT can show a box of a Background Image corresponding to the Touch Key area.
Target
Target Page is for page jump function after touch
Call
Call Keyboard is for call up a keyboard after touch
Call Operation is for simple calculation after touch
Call Key is for building PIP_Keyboard
Content
VP Address is for calculation or Keyboard input result
Compile As can force VP variable work different than default (Auto); 
VP_N16 (two successive VP_N16) work as VP_N32;
VP_N32 (first two byte of VP_N32) work as VP_N16;
VP_N64 (first two byte of VP_N64) work as VP_N16; 
VP_N64 (first four byte of VP_N64) work as VP_N32
Data Type should be signed by default (*1)
Return
Return Value for select type of notification to host during touch.
It can notify the Host via Touch Key ID Response code (0x78) (*3): none / Up PGID + TPKID / PGID + TPKID / PGID + TPKID
none  no notification (by default);
Up PGID + TPKID, send on TPK release;
Down PGID + TPKID, send on TPK touch Down;
Up PGID + TPKID, send on TPK touch and release
Properties Control (advance feature)
Enable VP is none by default (element operate normally)
Select a VP for real time element control.
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
Note
*1. Please also see "TPK, VPK Call Functions" section for Call Features
*2. TPK support touch and move, action on release. It could change to "Touch-Key lock on touch" in "Project Setting".
*3. Please also see "Command" section for details

*4. TPK Visual Effect - Inverse Color

PAGE with Backgroud Image

Display Result (when touching TPK)

*5. TPK Visual Effect - Inverse Color

PAGE with Backgroudn Image

Backgroud Image for Visual Effect

Display Result (when touching TPK)

*.6 TPK Visual Effect - Show Icon

PAGE with Backgroudn Image

Icon for Visual Effect

Display Result (when touching TPK)

Virtual Key (VPK) Properties

General
Show the basic information of the element
X and Y is the location of element on screen, reference point is element top-left corner
Width and Height are in pixels
top-left corner of the screen = 0,0
This element’s X, Y, Width, Height are not related to its functionality.
Condition
Monitor-VP is a VP to trigger this Virtual Key
Monitor-Value is the Value for trigging this element
Target
Target Page is for page jump function after touch
Call
Call Keyboard is for call up a keyboard after touch
Call Operation is for simple calculation after touch
Call Key is for building PIP_Keyboard
Content
VP Address is for calculation or Keyboard input result
Compile As can force VP variable work different than default (Auto)
VP_N16 (two successive VP_N16) work as VP_N32
VP_N32 (first two byte of VP_N32) work as VP_N16
VP_N64 (first two byte of VP_N64) work as VP_N16
VP_N64 (first four byte of VP_N64) work as VP_N32
Data Type should be signed by default (*1)
Properties Control (advance feature)
Enable VP is none by default (element operate normally)
Select a VP for real time element control. 
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
Note:
*1. Please also see "TPK, VPK Call Functions" section for Call Features
*2. Floating point value could only operate with N32 (or Compile As N32) and PIP Number Keyboard

Swap Page (SWP_PG)

General
Show the basic information of the element
X and Y is the location of element on screen, reference point is element top-left corner
Width and Height are in pixels
top-left corner of the screen = 0,0
This element’s X, Y, Width, Height are not related to its functionality.
Style
Sweep Threshold defines the sweeping distance which start the feature
Smaller value makes it more easy to be trigger
Bigger value makes it slower response to the action
(Sweep should start on screen area without any other touch element)
Target
Left Side Page is the target page that pull-out form left side while the touch sweeping form left to right
Right Side Page is the target page that pull-out form right side while the touch sweeping form right to left
Return
Return Value for select type of notification to host during touch
It can notify the Host via Touch Key ID Response code (0x32)
none, no notification (by default) (see "Command" section for details)
Target PGID, send on sweep release 
Properties Control (advance feature)
Enable VP is none by default (element operate normally)
Select a VP for real time element control. 
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value

Touch Key with Repeat (TPK_RPT)

General
Show the basic information of the element
X and Y is the location of element on screen, reference point is element top-left corner
Width and Height are in pixels
top-left corner of the screen = 0,0
Visual Effect
On Press Down options are None / Inverse Color / Show Icon / Show Copped Image
Icon/BgImage base on the above option select a Background Image or an Icon for the visual effect
Style
Mode is touch action moment
Down Action will trigger the Short Press feature while touch down
Up Action will trigger the Short Press feature while touch up
Long Press Time is the time for Long Press feature to be trigger
Long Press Cycle is the repeat action cycle time for long Press
Long Press Value is operation (VP:=VP+value) value for Long Press
Short Press Value is the operation (VP:=VP+value) value for Short Press
(negative value for minus operation)
Content
VP Resource is the type of VP to be used
VP Address is the VP for the operation
Min Value is the bottom value that will be limited by the operation
Max Value is the top value that will be limited by the operation
Return
Return Value / VP / Status VP for select type of notification to host
(multiple notification can be enable)
Up, PGID+TPKID
Down, PGID+TPKID
Up, VP Address+Value
Down, VP Address+Value
Cycling, VP Address+Value
Up, Vp Address+Status Value
Down, Vp Address+Status Value
Properties Control (advance feature)
Enable VP is none by default (element operate normally)
Select a VP for real time element control. 
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value
Status VP is none by default
Select a VP for storing the real time status (0=no touch, 1=touch down, 2= long press)