Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Delphi and pushpins?

This is a discussion on Delphi and pushpins? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I've seen a few examples of using custom pushpins with Delphi, but I've had no luck with them. The main ...

  1. #1
    aroberts is offline Junior Member Yellow Belt
    Join Date
    Nov 2007
    Posts
    12

    Delphi and pushpins?

    I've seen a few examples of using custom pushpins with Delphi, but I've had no luck with them. The main problem is in the declaration of the MapPoint.DataSet and other vars. The Dim statement used in VB doesn't exist in Delphi, so the Dim objDataSet As MapPoint.DataSet doesn't work.

    Could anyone explain how to load and reference/use a custom symbol? Thanks.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Delphi and pushpins?

    I haven't done any development with Delphi, but have you seen the articles on MP2Kmag?

    search for Delphi on this page
    MapPoint Articles

    three articles:
    Using MapPoint In Delphi
    Snap to a Road
    Delphi Address Verifier

    Can anyone think of other good examples?

    You can search this forum for "delphi" using Google
    site:mapforums.com delphi
    or the Forum's built-in search software, see "Search" above.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Delphi and pushpins?

    Hi,

    You dont need the Dim statement in Delphi. Just declare the variables as a class member or on the stack. You need to include the type library if you use the object model:

    Code:
      private
        Loc: Location;
        PP: PushPin;
        DS: Dataset;
      end;

  4. #4
    aroberts is offline Junior Member Yellow Belt
    Join Date
    Nov 2007
    Posts
    12

    Re: Delphi and pushpins?

    Classes--now it makes sense (and works). Thanks a lot for the replies. This is a great forum!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using MapPoint In Delphi
    By Anonymous in forum MP2K Magazine Articles
    Replies: 8
    Last Post: 12-05-2005, 10:51 AM
  2. Creating a subset of Pushpins from a set of pushpins
    By paf33 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-09-2005, 05:54 AM
  3. Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-18-2003, 12:11 PM
  4. pushpins with delphi
    By ian in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-19-2003, 01:15 PM
  5. Mappoint With Delphi 5
    By stuarth in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-08-2003, 11:21 AM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96