Announcement

Collapse
No announcement yet.

Embedding app with dialogs?

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

  • Embedding app with dialogs?

    Hopefully someone can help me out here.
    I've done a quick search, and it looks like I won't be able to do this, but I thought I'd ask anyway ..

    I'm trying to embed my raster mapping GPS app (OziExplorer) and for the most part it works just fine. However, it is unusable because I can't use any dialogs - they just disappear underneath RR!

    It doesn't both me so much that I can't run the config dialog or such, but any filechooser windows also get hidden, so I can load or save track files or waypoint markers or anything like that.

    Maybe it is possible to specifiy an option in the launch .ini file to minimize RR? Or run the app in a skin which only covers the edge of the screen (for the RR track title and icons) ??

  • #2
    you can make a button to run any app minimized, just look at skin commands.txt.. your app's dialog get's behind RR because it is a very badly written application -- when showing dialogs an application is supposed to associate the parent of that window correctly and when this doesn't happen you have what you get now.. The only exception to that rule is when your application runs more than one window at once to provide parallel functions -- hardly ever the case.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      Yes. Application wise, Ozi Explorer has quite a lot of examples of a badly written app. It does however have a lot of great features, and its a damn useful to have both D3 for vector mapping and Ozi for raster mapping - and I haven't found a raster mapping program to match Ozi yet.

      Maybe the programmer has done something funky to make sure that the moving map still tracks properly when there is a dialog open.

      Damn.. at work now and can't download RR to check out skin commands.. do you mean that I can run my app minimised, or that I can minimise RR when running my app?

      Comment


      • #4
        "RUNW;!C:\Windows\system32\NOTEPAD.EXE" is an example of a skin command.. this should minimize RR, run notepad, then when closing notpad, RR returns to focus at normal window size.
        Ride Runner RR's Myspace

        "Being happy is not about having what you want, it's about wanting what you have."
        "The best things in life are always free - but that doesn't mean money can't buy you good things."

        Comment


        • #5
          Not exactly what I was after, since I want Ozi Explorer to be running at all times (It records GPS track data, so needs to be running!) It does have a documented API, but I haven't really looked that closely at it. Depending on how extensive it is, maybe I can move all the functionality out into a skinnable application or even a RR module

          Comment


          • #6
            Guino,
            Now that I've had a chance to get back to working on my skin, I'm bringing up this topic again..

            I've emailled the author of the software, and he seems to be adaptable. Is there anything that I can suggest to him to get the dialog to associate itself properly with the app? The app is written in Delphi.

            Using the window search string as either "OziExplorer" or "!TfmMainForm" both work until a dialog (Class #32770) pops up. But I obviously can't try to #32770 because that's what dialos from all apps seem to be called...

            Comment


            • #7
              He should make sure to set the main window as the "parent" of the popup/child window.. this way, when it comes up, It will not be "hidden" behind the main window of the application. He can use the SetParent windows API function to associate the above. IF many dialogs need to be open at the same time, then he should most likely just change the class/window title for his popups so you can use it with skinbedder for instance.
              Ride Runner RR's Myspace

              "Being happy is not about having what you want, it's about wanting what you have."
              "The best things in life are always free - but that doesn't mean money can't buy you good things."

              Comment


              • #8
                any news? somebody has oziexplorer running well?

                Comment


                • #9
                  Nup. I just minimise RR when I want to use Ozi

                  Comment


                  • #10
                    I have it running with skinbedder and the dialog boxes don’t get lost, I also get ozi to start without its menu with the nomenu.dat option that is supported with the latest development release, that way you don’t get the menu bar.

                    I have mapped any commands I use to function keys and call them from RR buttons in my skin

                    It can be a bit problematic but in general it is ok

                    I sent an email to Des a while back as he now supports skins, but he has not released a skin maker yet.

                    EDIT I just checked and you can open the file dialog and select maps, tracks etc

                    Comment


                    • #11
                      Well then, where's the link to download your Skinbedder skin?

                      Comment


                      • #12
                        I have been working on my RR skin for a few week now and have posted my progress http://www.mp3car.com/vbulletin/showthread.php?t=74852

                        When I started this skin I decided to get all the code working before I went down the track of a lot of work in PhotoShop.

                        I have not done the Ozi skin in Photoshop yet but I do have a 800x600 jpg that has been broken into 100x50 grid, and the appropriate skinbedder and .skin files for the buttons, the easiest thing for me to do is zip up the complete skin and PM you the link, but I would rather not post it as it is still a WIP.

                        If you are happy to take it as it is I will zip it up and PM you a link

                        Comment


                        • #13
                          Please post the SKINbedder SKIN in the SKINbedder forum once you have added graphics to it (or post what you got if you give up on it). There have been other requests for an Ozi SKIN before.

                          (...and thanks for using SKINbedder. When I stumble upon random posts like this, I wonder how many people actually use Sb that have never posted in my forum?)

                          Also, what is the deal with Ozi's "raster mapping" that people keep talking about? I went to their web page... it looks like you have to create your own maps from images yes/no? Strange... seems like a lot of work. (not that configuring RR or Sb is any easier )

                          Being the creater of SKINbedder and loving to custom configure everything, I think RR/Meedio/Linux are probably what I am looking for in a car media center / home media center / OS, but I can never bring myself to actually learn how to get them all setup properly. ...so I stick with CF / SnapStream / Windows.

                          Comment


                          • #14
                            Originally posted by RPM_VR4
                            Please post the SKINbedder SKIN in the SKINbedder forum once you have added graphics to it (or post what you got if you give up on it). There have been other requests for an Ozi SKIN before.

                            (...and thanks for using SKINbedder. When I stumble upon random posts like this, I wonder how many people actually use Sb that have never posted in my forum?)

                            Also, what is the deal with Ozi's "raster mapping" that people keep talking about? I went to their web page... it looks like you have to create your own maps from images yes/no? Strange... seems like a lot of work. (not that configuring RR or Sb is any easier )

                            Being the creater of SKINbedder and loving to custom configure everything, I think RR/Meedio/Linux are probably what I am looking for in a car media center / home media center / OS, but I can never bring myself to actually learn how to get them all setup properly. ...so I stick with CF / SnapStream / Windows.
                            Well I have to say when you can do it in RR Skinbedde will but it is a lot of hard work, I look for the skinbedder thread and add to it when I am finished, I may have some questions later , thanks for your post

                            OziExplorer is just a raster based gps moving map app, you register a raster image with lat/long and then Ozi will show you position on the map it can change maps as you move from one to another an it also will change to a map that has better detail IE scale.

                            I purchase my maps for about AU$7.70 but we need it in Australia as the other routable systems like D3 donít have the info for the bush areas.

                            Comment


                            • #15
                              DL Link

                              EDIT sorry incorrect place

                              Comment

                              Working...
                              X