Announcement

Collapse
No announcement yet.

Curious issue between DFX5 and an embbeded application

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Curious issue between DFX5 and an embbeded application

    Hello all,
    I have a curious issue with my plugin RRGOOGLEMAPSTOOLS and DFX5 !
    A visual area is defined into the main screen (menu.skin) like that:
    [Visual Area]
    Z,14,7,772,121

    If i comment this line, the main screen of my plugin is well loaded and after that the application is well embedded !
    But with this line, the RR stay on the main screen and freeze !!!

    I have found a solution that is load the plugin's screen (load;RRGoogleMapsTools.skin), wait 2 seconds (WAIT;2) and after that embed the application (GMAPS_TOOLS_MAIN) !
    Code:
                Case "gmaps_tools" 'main command
                    SDK.Execute("load;RRGoogleMapsTools.skin||WAIT;2||GMAPS_TOOLS_MAIN")
                    ProcessCommand = 2
                Case "gmaps_tools_main" 'internal
                    If SDK.GetInd("online") = "True" Then
                        If Timer1.Enabled = True Then Timer1.Stop() : RestartTimerAfterLoad = True
                        If Timer2.Enabled = True Then Timer2.Stop() : RestartTimerAfterLoad = True
                        CreateGpsToAdd_Html() ' create the html file
                        'SDK.Execute("Load;RRGoogleMapsTools.skin;GmapsApiForm;;GmapsApiForm")
                        SDK.Execute("RUN;;GmapsApiForm") ' embed command
                        GmapsBrowser.go(MainPath & "gmaps_gpstoadd.html") 'map with cross or header logo
                        GmapsBrowser.Show() ' the the application
                        If RestartTimerAfterLoad = True Then Timer1.Enabled = True : Timer2.Enabled = True : RestartTimerAfterLoad = False
                    Else
                        If SDK.GetInd("pluginmgr;status;gps2city") = "True" Then
                            SDK.Execute("gmaps_gps2city_copy")
                        Else
                            SDK.SetUserVar("ADDRESSCLIP", "***")
                        End If
                        SDK.Execute("SETVAR;RRGoogleMapsToolsInfo;" & SDK.GetUserVar("l-set_CheckInternet") & "||menu;RRGoogleMapsTools_info.skin")
                    End If
                    ProcessCommand = 2
    But with this solution , i have the same issue when i use the button esc or quit for return to the main screen (RR freeze again) but not if i comment the Z line !

    In Carwings , i have not this issue because the first screen hasn't a visual area! and i use this code:
    Code:
    Case "gmaps_tools"
                    If SDK.GetInd("online") = "True" Then
                        If Timer1.Enabled = True Then Timer1.Stop() : RestartTimerAfterLoad = True
                        If Timer2.Enabled = True Then Timer2.Stop() : RestartTimerAfterLoad = True
                        CreateGpsToAdd_Html()
                        SDK.Execute("Load;RRGoogleMapsTools.skin||RUN;;GmapsApiForm")
                        GmapsBrowser.go(MainPath & "gmaps_gpstoadd.html")
                        GmapsBrowser.Show()
                        If RestartTimerAfterLoad = True Then Timer1.Enabled = True : Timer2.Enabled = True : RestartTimerAfterLoad = False
                    Else
                        If SDK.GetInd("pluginmgr;status;gps2city") = "True" Then
                            SDK.Execute("gmaps_gps2city_copy")
                        Else
                            SDK.SetUserVar("ADDRESSCLIP", "***")
                        End If
                        SDK.Execute("SETVAR;RRGoogleMapsToolsInfo;" & SDK.GetUserVar("l-set_CheckInternet") & "||menu;RRGoogleMapsTools_info.skin")
                    End If
                    ProcessCommand = 2
    If you have an idea please ?

    Thanks
    Last edited by pierrotm777; 04-16-2014, 10:41 AM.
Working...
X