Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: D3 SDK need help with address dialog

  1. #1
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507

    D3 SDK need help with address dialog

    i'm having a go at creating a frontend.. I'm new to VB so please dont laugh to hard if i'm missing something simple.

    Problem - Address input window
    On call of this dialog the window appears full screen and takes over the form

    What I what
    The dialog window to be able to be resized

    What I have tried
    I have copied all my code into MDI Project, putting all the destinator code into a child, in the hope that the address dialog would just take over the child form, no luck still takes over the parent. Also tried grabbing the address dialogs handle and using setwindowpos to resize it, but this just resizes the parent as well..

    so i'm stuck, as I said only been playing with VB for a few weeks so go easy

    cheers

    CdR

  2. #2
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    Something's not right, SetWindowPos should just resize the dialog. It shouldn't touch the parent

    How did you find out the address dialogs handle?
    Destinator 3 For PC! - http://www.map-monkey.co.uk/

  3. #3
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507
    I was using the 'GetActiveWindow' function, but it seems this is just returning the wrong handle.. I used it twice, first on the MDIForm Load, and stored the value in a label in the MDIchild form, this got the parent handle, then I used it again after the Address dialog call was sent, then did a SetParent command to make sure the MDIForm was its parent, then did a SetWindowPos which resized the whole app rather then just the window.

    BTW thanks for the reply.. , the VB book that I got for xmas (learn VB in 21 Days) doesnt cover Window control really, thats why i'm stuck !

    CdRsKuLL

  4. #4
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Why not recreate the 'Navigate' dialogue?

    You can get a list of streets/cities using GetListOfCitiesID/GetListOfStreetsID (or something like that - the streets/cities are indexed and ordered alphabetically)

    Then when you have the city ID selected, you can use GetListOfStreetsForCityID or whatever it is to get a list of streets.

    I'm doing this for my T9 Nav Input App (but i kinda lost interest at the moment...)

    (might not be accurate, i dont code VB very often)

    Then when you get the CityName ... you can get a list of streets with another function.

  5. #5
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507
    yeah this was going to be my next option to rebuild the address window, but this looked alittle trick for my forth week of vb :-) I may still give it ago

    CdR

  6. #6
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507
    ok.. seem to be gettting alittle closer..

    Having probs now finding a way to grab the name, I've used spy++ and know what i'm looking for, just unsure how to go about getting it, I've managed to get the correct handle of its parent, so been trying to use the line below.. but no luck :-(

    thisform = FindWindowEx(hParent, 0, "#32770", "")

    any pointers ?

    cheers

    CdRsKuLL

  7. #7
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507
    its ok sussed it :-)

  8. #8
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    Quote Originally Posted by CdRsKuLL
    its ok sussed it :-)
    Are you going to let in on the secret?

  9. #9
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,507
    well, i've got to the next step, the example I was using was setting a picture1 as its parent, the address dialog didnt like this so now I scrapped that and manually set the form as its parent, this now allows me to move the address dialog around using the setwindowpos command..

    I'm still having probs trying to find the handle of the input dialog box, so I can use the sendmessage function. Crist.. this is getting a bit much after 3 weeks of being a vb virgin

  10. #10
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by CdRsKuLL
    Crist.. this is getting a bit much after 3 weeks of being a vb virgin
    You are now me...two years ago. Yech !
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

Page 1 of 2 12 LastLast

Similar Threads

  1. Can anyone do any thing about this
    By Rob in forum Off Topic
    Replies: 23
    Last Post: 02-09-2014, 05:37 AM
  2. Onscreen keyboard
    By gti in forum Map Monkey
    Replies: 40
    Last Post: 06-14-2008, 10:00 PM
  3. Destinator 3 SDK features working
    By loscooby in forum GPS
    Replies: 4
    Last Post: 09-21-2004, 12:46 AM
  4. Destinator SDK + Destinator GPS Module
    By miguelito in forum GPS
    Replies: 3
    Last Post: 07-21-2004, 01:48 PM

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
  •