Page entitypage04
    Attributes
        ID                 : 0
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Locked             : no
        Swide up page ID   : disabled
        Swide down page ID : disabled
        Swide left page ID : disabled
        Swide right page ID: disabled
    
    Events
        Preinitialize Event
            dim=brightness
            if(api==0)
            {
                page home
            }
            sys0=is_entitypage01+is_entitypage02+is_entitypage03+is_entitypage04
            if(sys0>1)
            {
                if(is_entitypage01==1)
                {
                    page_index.txt+="â—‹"
                }
                if(is_entitypage02==1)
                {
                    page_index.txt+="â—‹"
                }
                if(is_entitypage03==1)
                {
                    page_index.txt+="â—‹"
                }
                page_index.txt+="â—"
            }else
            {
                vis page_index,0
            }
            printh 92
            prints "current_page",0
            printh 00
            prints "entitypage04",0
            printh 00
            printh FF FF FF
        
Text value01_label
    Attributes
        ID                 : 3
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value05_label
    Attributes
        ID                 : 4
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value04_label
    Attributes
        ID                 : 5
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value02_label
    Attributes
        ID                 : 6
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value03_label
    Attributes
        ID                 : 7
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text page_label
    Attributes
        ID                 : 8
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 100
    
Text value06_label
    Attributes
        ID                 : 9
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value07_label
    Attributes
        ID                 : 10
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value08_label
    Attributes
        ID                 : 11
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value01_icon
    Attributes
        ID                 : 12
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value02_icon
    Attributes
        ID                 : 13
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value03_icon
    Attributes
        ID                 : 14
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value04_icon
    Attributes
        ID                 : 15
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value05_icon
    Attributes
        ID                 : 16
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value06_icon
    Attributes
        ID                 : 17
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value07_icon
    Attributes
        ID                 : 18
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value08_icon
    Attributes
        ID                 : 19
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value01
    Attributes
        ID                 : 20
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value02
    Attributes
        ID                 : 21
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value03
    Attributes
        ID                 : 22
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value04
    Attributes
        ID                 : 23
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value05
    Attributes
        ID                 : 24
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value06
    Attributes
        ID                 : 25
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value07
    Attributes
        ID                 : 26
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value08
    Attributes
        ID                 : 27
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text page_index
    Attributes
        ID                 : 29
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 12
    
Button button_back
    Attributes
        ID               : 28
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…˜
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            page home
        
Timer swipestore
    Attributes
        ID         : 2
        Scope      : local
        Period (ms): 50
        Enabled    : no
    
    Events
        Timer Event
            swipex=tch0
            swipey=tch1
        
TouchCap swipe
    Attributes
        ID   : 1
        Scope: local
        Value: 0
    
    Events
        Touch Press Event
            swipestore.en=1 // Start swipestore timer
        
        Touch Release Event
            if(api==0)
            {
                page home
            }
            swipestore.en=0
            // Touch has ended, x
            if(tch0==0)
            {
                swipec=swipex-tch2
                // From Left to Right
                if(swipec>swipedx)
                {
                    // Navigate back based on active status
                    if(is_entitypage03==1)
                    {
                        page entitypage03
                    }else if(is_entitypage02==1)
                    {
                        page entitypage02
                    }else if(is_entitypage01==1)
                    {
                        page entitypage01
                    }else
                    {
                        page home
                    }
                }
                // Right to Left swipe now navigates to home, looping back to the start.
                swipec2=0-swipedx
                if(swipec<swipec2)
                {
                    page home
                }
            }
            // Touch has ended, y
            if(tch1==0)
            {
                swipec=swipey-tch3
                // From Up to Down
                if(swipec>100)
                {
                    if(is_entitypage03==1&&is_entitypage02==1)
                    {
                        page entitypage02
                    }else if(is_entitypage03==1||is_entitypage02==1)
                    {
                        if(is_entitypage01==1)
                        {
                            page entitypage01
                        }else
                        {
                            page home
                        }
                    }else
                    {
                        page home
                    }
                }
                // Down to Up
                swipec2=0-swipedy
                if(swipec<-100)
                {
                    // Navigate back up the sequence based on active status
                    if(is_entitypage01==1)
                    {
                        page entitypage01
                    }else if(is_entitypage02==1)
                    {
                        page entitypage02
                    }else if(is_entitypage03==1)
                    {
                        page entitypage03
                    }else
                    {
                        page home
                    }
                }
            }
        
