@PKEYP AND PAGE FLIP ON CODE ISSUES
Andre Silva
Posts: 19
Hello,
I'm trying to make a button that goes back to my main page but for that you need to put a password
so far I have this for the button event and the password keypad pop up:
BUTTON_EVENT[dvTP,LAYOUT_OFF_BTN]
{
PUSH:
{
SEND_COMMAND dvTP,"'@PKEYP-'"
}
}
I can see this command on the notifications tab but only when I send it:
Line 7 (18:58:23):: Command To [10001:13:1]-[PKEYP-]
When I type the password and click ok, nothing happens... I tried with Data.Text, waiting for a string from the dvTP Device (10001:13:1) and also with a buffer that I created for this same device.
Also I need a command that after checking the password (in the data_event[dvTp]) flips to the page named 'Welcome' and clear all the popups of the TP:
IF(cDvTPBuffer == cPassword)
{
//SEND_COMMAND dvTP,"'FLIP TO Welcome PAGE'"
WAIT 5
{
SEND_COMMAND dvTP,"'@PPX'"
}
}
Looking at the PI I found this:
^APF
Add page flip action to a button if it does not already exist.
Syntax:
"'^APF-<vt addr range>,<page flip action>,<page name>'"
Variable:
variable text address range = 1 - 4000.
page flip action = Stan[dardPage] - Flip to standard page
Prev[iousPage] - Flip to previous page
Show[Popup] - Show Popup page
Hide[Popup] - Hide Popup page
Togg[lePopup] - Toggle popup state
ClearG[roup] - Clear popup page group from all pages
ClearP[age] - Clear all popup pages from a page with the
specified page name
ClearA[ll] - Clear all popup pages from all pages
page name = 1 - 50 ASCII characters.
Example:
SEND COMMAND Panel,"'^APF-400,Stan,Main Page'"
Assigns a button to a standard page flip with page name 'Main Page'.
Maybe this is what I have to use to do the Page flip, but I don't know what is the parameter <vt addr range> (variable text address range) represents.
Can someone help me?
Thanks
I'm trying to make a button that goes back to my main page but for that you need to put a password
so far I have this for the button event and the password keypad pop up:
BUTTON_EVENT[dvTP,LAYOUT_OFF_BTN]
{
PUSH:
{
SEND_COMMAND dvTP,"'@PKEYP-'"
}
}
I can see this command on the notifications tab but only when I send it:
Line 7 (18:58:23):: Command To [10001:13:1]-[PKEYP-]
When I type the password and click ok, nothing happens... I tried with Data.Text, waiting for a string from the dvTP Device (10001:13:1) and also with a buffer that I created for this same device.
Also I need a command that after checking the password (in the data_event[dvTp]) flips to the page named 'Welcome' and clear all the popups of the TP:
IF(cDvTPBuffer == cPassword)
{
//SEND_COMMAND dvTP,"'FLIP TO Welcome PAGE'"
WAIT 5
{
SEND_COMMAND dvTP,"'@PPX'"
}
}
Looking at the PI I found this:
^APF
Add page flip action to a button if it does not already exist.
Syntax:
"'^APF-<vt addr range>,<page flip action>,<page name>'"
Variable:
variable text address range = 1 - 4000.
page flip action = Stan[dardPage] - Flip to standard page
Prev[iousPage] - Flip to previous page
Show[Popup] - Show Popup page
Hide[Popup] - Hide Popup page
Togg[lePopup] - Toggle popup state
ClearG[roup] - Clear popup page group from all pages
ClearP[age] - Clear all popup pages from a page with the
specified page name
ClearA[ll] - Clear all popup pages from all pages
page name = 1 - 50 ASCII characters.
Example:
SEND COMMAND Panel,"'^APF-400,Stan,Main Page'"
Assigns a button to a standard page flip with page name 'Main Page'.
Maybe this is what I have to use to do the Page flip, but I don't know what is the parameter <vt addr range> (variable text address range) represents.
Can someone help me?
Thanks
0
Comments
I'm also trying to flip pages within the code, someone can help me understand the parameter <vt addr range> (variable text address range) from the ^APF command? Is that the Address code that I can set on the TPDesign 4?
Thanks for the help.