@@ -19,8 +19,21 @@ Page buttonpage04
|
||||
{
|
||||
vis 255,0
|
||||
vis button_back,1
|
||||
vis page_index,1
|
||||
vis page_label,1
|
||||
if(is_buttonpage01==1)
|
||||
{
|
||||
page_index.txt+="â—‹"
|
||||
}
|
||||
if(is_buttonpage02==1)
|
||||
{
|
||||
page_index.txt+="â—‹"
|
||||
}
|
||||
if(is_buttonpage03==1)
|
||||
{
|
||||
page_index.txt+="â—‹"
|
||||
}
|
||||
page_index.txt+="â—"
|
||||
vis page_index,1
|
||||
}
|
||||
|
||||
Postinitialize Event
|
||||
@@ -70,7 +83,7 @@ Text page_index
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
Associated Keyboard: none
|
||||
Text : â—‹â—‹â—‹â—
|
||||
Text :
|
||||
Max. Text Size : 12
|
||||
|
||||
Text button01pic
|
||||
@@ -777,9 +790,22 @@ TouchCap swipe
|
||||
// From Left to Right
|
||||
if(swipec>swipedx)
|
||||
{
|
||||
page buttonpage03
|
||||
// Navigate back based on active status
|
||||
if(is_buttonpage03==1)
|
||||
{
|
||||
page buttonpage03
|
||||
}else if(is_buttonpage02==1)
|
||||
{
|
||||
page buttonpage02
|
||||
}else if(is_buttonpage01==1)
|
||||
{
|
||||
page buttonpage01
|
||||
}else
|
||||
{
|
||||
page home
|
||||
}
|
||||
}
|
||||
// Right to Left
|
||||
// Right to Left swipe now navigates to home, looping back to the start.
|
||||
swipec2=0-swipedx
|
||||
if(swipec<swipec2)
|
||||
{
|
||||
@@ -793,13 +819,41 @@ TouchCap swipe
|
||||
// From Up to Down
|
||||
if(swipec>100)
|
||||
{
|
||||
//page
|
||||
if(is_buttonpage03==1&&is_buttonpage02==1)
|
||||
{
|
||||
page buttonpage02
|
||||
}else if(is_buttonpage03==1||is_buttonpage02==1)
|
||||
{
|
||||
if(is_buttonpage01==1)
|
||||
{
|
||||
page buttonpage01
|
||||
}else
|
||||
{
|
||||
page home
|
||||
}
|
||||
}else
|
||||
{
|
||||
page home
|
||||
}
|
||||
}
|
||||
// Down to Up
|
||||
swipec2=0-swipedy
|
||||
swipec=0-swipedy
|
||||
if(swipec<-100)
|
||||
{
|
||||
//page
|
||||
// Navigate back up the sequence based on active status
|
||||
if(is_buttonpage01==1)
|
||||
{
|
||||
page buttonpage01
|
||||
}else if(is_buttonpage02==1)
|
||||
{
|
||||
page buttonpage02
|
||||
}else if(is_buttonpage03==1)
|
||||
{
|
||||
page buttonpage03
|
||||
}else
|
||||
{
|
||||
page home
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user