Results 1 to 2 of 2

Thread: Lat & Long in a digimod and other issues 1.1.1.6

  1. #1
    StreetDeck Skinning Master 06TC_OWNER's Avatar
    Join Date
    Mar 2006
    Location
    Fort Collins
    Posts
    363

    Lat & Long in a digimod and other issues 1.1.1.6

    First, I haven't figured out how to get the current lat & long in a digimod...

    I have tried: sa.NavController.GetLatitude()
    where sa = streetdeckApp

    Also, the new GetPanel("") function that was added - how does this work?
    I tried creating a navlatitude dynamic label from the ide and when I used "GetPanel", I think it got it, but it also erased it.

    Thoughts?

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by 06TC_OWNER View Post
    First, I haven't figured out how to get the current lat & long in a digimod...

    I have tried: sa.NavController.GetLatitude()
    where sa = streetdeckApp

    Also, the new GetPanel("") function that was added - how does this work?
    I tried creating a navlatitude dynamic label from the ide and when I used "GetPanel", I think it got it, but it also erased it.

    Thoughts?
    Are you doing this as an addin or a script? This works for me.

    Code:
     //This OnConnection event is where we create all of the modules and overlay streetdeck needs
            void StreetDeck.IDualStreetDeckAddin.OnConnection(object o, StreetDeck.enumAddinConnectMode e)
            {
                //Save a pointer to the StreetDeck App object for future reference
                app = (StreetDeck.StreetDeckApp)o;
    
                //Create a shingle module that will show and hide the panel
                module = app.CreateModule("ModuleName");
    
                module.MsgBox(app.NavController.GetLatitude().ToString(), "Caption");
           }
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •