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 2 of 2

MapPoint Toolbars in Delphi

This is a discussion on MapPoint Toolbars in Delphi within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi EveryBody I want to show/hide mappoint toolbars (TOOLBAR_STANDARD, TOOLBAR_NAVIGATION...) from my delphi application (I'm using mappoint through an OLECONTAINER). ...

  1. #1
    micheln is offline Junior Member Yellow Belt
    Join Date
    Jan 2007
    Posts
    16

    MapPoint Toolbars in Delphi

    Hi EveryBody

    I want to show/hide mappoint toolbars (TOOLBAR_STANDARD, TOOLBAR_NAVIGATION...) from my delphi application (I'm using mappoint through an OLECONTAINER).

    Based on the exampe here Using MapPoint In Delphi - MapPoint Articles - MP2K Magazine I tried this:
    var
    TOOLBAR_STANDARD: OleVariant;
    begin
    TOOLBAR_STANDARD:=1; (the index of the toolbar)

    FMap.Application.Toolbars.get_item[TOOLBAR_STANDARD].Visible := True;

    But it doesn't work!! what's wrong? (I compiled my program and launched/executed it without error).

    did anybody

  2. #2
    doMapPoint is offline Junior Member Yellow Belt
    Join Date
    May 2007
    Location
    Germany
    Posts
    13

    Re: MapPoint Toolbars in Delphi

    Hi!
    Try something like this:

    Code:
    procedure HideMenus()...
    var
       i: integer;
       oVar : OleVariant;
    begin
       for i := 1 to FMap.Application.Toolbars.Count do begin
          oVar := i;
          FMap.Application.Toolbars.Item[oVar].Visible := false;
       end;
    end;
    Regards,
    Dietmar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Toolbars Disappear In MapPoint Control
    By Jonny1234 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-22-2006, 07:31 AM
  2. Locking mappoint toolbars
    By Varrus in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-11-2006, 04:12 PM
  3. Answer: How to show mappoint toolbars with C#
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 05-13-2004, 04:19 AM
  4. toolbars
    By Fisherman´s Friend in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-22-2003, 08:13 AM
  5. Toolbars
    By Bart Vervenne in forum Wish List
    Replies: 0
    Last Post: 04-11-2003, 02:38 PM

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