Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Embedding app with dialogs?

  1. #1
    Constant Bitrate
    Join Date
    Feb 2005
    Posts
    157

    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. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  3. #3
    Constant Bitrate
    Join Date
    Feb 2005
    Posts
    157
    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?

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    "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."

  5. #5
    Constant Bitrate
    Join Date
    Feb 2005
    Posts
    157
    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

  6. #6
    Constant Bitrate
    Join Date
    Feb 2005
    Posts
    157
    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...

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  8. #8
    Newbie p.nightmare's Avatar
    Join Date
    Mar 2006
    Location
    Italy - Curno (Bergamo)
    Posts
    5
    any news? somebody has oziexplorer running well?

  9. #9
    Constant Bitrate
    Join Date
    Feb 2005
    Posts
    157
    Nup. I just minimise RR when I want to use Ozi

  10. #10
    Constant Bitrate ashgrovered's Avatar
    Join Date
    Jul 2005
    Location
    Brisbane Australia
    Posts
    150
    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

Page 1 of 3 123 LastLast

Similar Threads

  1. monitor off app
    By kreyzig in forum Software & Software Development
    Replies: 1
    Last Post: 12-29-2004, 03:43 PM
  2. [HOWTO] Make a custom external app button
    By netsuo in forum NeoCar Media Center
    Replies: 0
    Last Post: 11-15-2004, 05:42 AM
  3. [OT - almost] Looking for best way to save App data - is XML OK
    By kingtut in forum Software & Software Development
    Replies: 8
    Last Post: 07-12-2004, 11:39 AM
  4. External App launching
    By TechToy in forum Media Engine
    Replies: 1
    Last Post: 05-13-2004, 03:02 AM
  5. new app linux/windows
    By hijinks21 in forum Software & Software Development
    Replies: 13
    Last Post: 11-18-2003, 07:25 AM

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
  •