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

Thread: Destinator SDK

  1. #1
    Low Bitrate Vittel's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    77

    Destinator SDK

    I plan on buying Destinator (was going to be Infomap, but have since changed mind after seeing this!)
    Just had a little play with the SDK, launching (from VB6) using Dest2.CreateDestinatorWindow (0)
    Launches the window with no problem, but ideally I'd like to dispose of the window frame (ie border style none) - anyone incorporated destinator into their own VB app? How do you dispose of the border?
    (Or embedding the window into a form would be nicer)
    Any ideas?
    Thanks

  2. #2
    Newbie
    Join Date
    Jun 2003
    Posts
    11
    if you can gain access to the HWND object you can do pretty much anything you want with it, use SetWindowLong(.. GWL_STYLE to remove/change border styles, make it WS_CHILD and use SetParent() to embedd it in your own window.

  3. #3
    GTC
    GTC is offline
    Low Bitrate
    Join Date
    May 2003
    Location
    Canada
    Posts
    93
    Ok ... first off, Destinator rocks!

    I've implemented sections into a test program and it works beautifully other then the odd hang ... (not sure if this is me or Destinator - giving Destinator the benifit of the doubt right now).

    mian34 is correct with regards to modifying the window via it's handle using SetWindowLong, but you can also just change the clipping area (by creating & setting the region info for the handle) if all you want to do is dispose of the border - of course you'll still have to deal with moving the window around as your app moves ... though the SetParent() will take care of this for you ...

    Even using the SetParent() for the embedding, I seem to recall my main window losing focus when touching the embedded destinator window - I had encountered your same issue a few weeks ago when I initially looked at Destinator ... this could cause issues if your expecting keypresses to a specific window ...

    Unfortunately I've found the Destinator SDK to be severely lacking in a number of areas ... ie, there's no API to set the zoom level for a given map (other then AutoZoom)! Many of these functions can be traced back using SPY++ or a similar tool. I've contacted the folks at Destinator to see what they have to say about this (and hopefully to get a master list of parameters for WM_COMMAND functions)....

    cheers,

    GTC

  4. #4
    Low Bitrate Vittel's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    77
    Thanks for the replies, I shall try this approach later on - Get ready for code requests if I can't embed the window properly!
    Nehemiah M10000 board, 512Mb RAM, Win98'lite', 7" TFT DIN in-dash VGA touchscreen. IR keyboard. GPS.

  5. #5
    Variable Bitrate
    Join Date
    Apr 2002
    Location
    South Coast, UK
    Posts
    437
    Originally posted by GTC
    Ok ... first off, Destinator rocks!

    I've implemented sections into a test program and it works beautifully other then the odd hang ... (not sure if this is me or Destinator - giving Destinator the benifit of the doubt right now).
    Wow! Have you got any example code I could have a look at? Im not really au-fait with API calls and that kind of thing in VB, so I never really got anywhere with using the Dest SDK
    -------------------------------------------
    (=========-) 99% complete
    --------------------------------------------
    AMD K6/2 500 @ 450mhz to keep heat and power usage down, 64Mb, slim CDrom drive, 64mb USB pendrive for MP3 transfer, 10Gb 2.5" drive for MP3, USB>RS232
    All jammed in external CDROM drive case.
    Kenwood KVC-1000r In-Dash LCD. x-10 MouseRemote. Destinator V2 Gps. DC-DC with onboard Shutdown controller.
    ----------------------------------------------

  6. #6
    GTC
    GTC is offline
    Low Bitrate
    Join Date
    May 2003
    Location
    Canada
    Posts
    93
    Hi Phil,

    I'm currently writing everything in C++ and actually don't use the SDK much except to actually load the Destinator engine and get routing information ... I'm not sure that anything that I have would be of any help to you - ie, using the SDK would have been easier and more straightforward - the SDK just didn't contain some of the functions that I wanted to implement, at least not in the way in which I wanted to implement them ...

    For example, I wanted to move the map with my finger tip; Destinator provided similar functionality but required that you use a bunch of their embedded controls to do this ... I didn't want to crowd the screen, so I wrote my own handlers for these types of events ... it feels fairly slick right now, but required abandoning some of the SDK.

    I believe that MapPoint would have been better for me from a development point of view, but Destinator seems to be a better product overall ... one that I'd prefer to have in my car!

    If you have any specific questions, please ask!

    cheers,

    Brendon

  7. #7
    Low Bitrate Vittel's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    77
    Righto, so far so good - I call the destinator window open, resolve it's hWnd number, I then embed the Destinator window within a picturebox on my form using SetParent, I then strip Destinator's window titlebar using SetWindowLong - so far all going good
    (Aside from the fact I resolved the forms hWnd twice accidentally and initially tried to embed my window into itself (Got my hWnd calls mixed up) - can you say BSOD? - fixed now though )
    but...how can I get the destinator window to position itself correctly within my picturebox?
    When I call setparent and land it within my box, it just lands where-ever it chooses within the picturebox, any pointers...? (I'd like top left to land at 1,1)
    Nehemiah M10000 board, 512Mb RAM, Win98'lite', 7" TFT DIN in-dash VGA touchscreen. IR keyboard. GPS.

  8. #8
    Low Bitrate Vittel's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    77
    It's ok, ignore last request - sussed that now
    (Positioning destinator within my picturebox) can now call it up, bung it into my form, position at 1,1 and specify the width/height of the destinator window within my box - (I also bypass warning when it fires up) - only give away now is that when you open the GPS system you can see the destinator window for 1 second as the 'loading' bar moves across the screen, no big deal- although I'll probably hide the window and load in background to totally hide that.
    All starting to look pretty swish now, integrates seamlessly with my VB app
    Now that's sorted I can have some fun working on manipulating Destinators functions via the SDK

    Next prob - I can't hear the directions when MP3/Video is running - going to dig through now and see if there is an event I can use - so that when a direction is given, it pauses MP3/video - says the direction - then resumes MP3/video playback.

    Cheers for pointing me in the right direction anyhoo - done the trick!
    Nehemiah M10000 board, 512Mb RAM, Win98'lite', 7" TFT DIN in-dash VGA touchscreen. IR keyboard. GPS.

  9. #9
    The Vauxhall Vectra Project ccsnet's Avatar
    Join Date
    Jan 2003
    Location
    Morecambe, Lancs, UK ( Just For The Moment )
    Posts
    2,680
    Originally posted by Vittel
    It's ok, ignore last request - sussed that now
    (Positioning destinator within my picturebox)
    All starting to look pretty swish now, almost integrated seamlessly with my VB application
    I want to get on on doing this for Me but I have little VB experince.... Can any body give some quick pinters or even some good resources to look at on the web ?

    Tar

    Terran

    PS - I am IT littrate but not really a programmer...

  10. #10
    Low Bitrate Vittel's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    77
    Only if you answer the Email I sent you, asking permission to use your skin graphics in my app...
    (btw - have you got the ME source then? I asked if I could 'join up' and help with the project a couple of times but was ignored, so I decided - if you can't join 'em - beat 'em! )
    Nehemiah M10000 board, 512Mb RAM, Win98'lite', 7" TFT DIN in-dash VGA touchscreen. IR keyboard. GPS.

Page 1 of 3 123 LastLast

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
  •