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

Delphi OleContainer Resize Problem.

This is a discussion on Delphi OleContainer Resize Problem. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi at all. After i have solved the problem with the toolbars, another prob appears now. After connecting to mappoint ...

  1. #1
    Sheridan is offline Junior Member White Belt
    Join Date
    Mar 2003
    Posts
    4

    Delphi OleContainer Resize Problem.

    Hi at all.

    After i have solved the problem with the toolbars, another prob appears now.

    After connecting to mappoint anything runs very well, but if i change the focus to the treeview on the same form and then resize this form, the OleContaíner will change it's size correctly but not the Mappoint Map in the container.

    It doesn't matter what value i choose for the SizeMode property of the OleContainer.

    Does anyone have the same problem?

    I hope someone can help me.

    greets & thanks
    Sheridan

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Delphi Container resize/Activate issue

    I observe a similar problem when the server in the OleContainer gets de-/activated, which tends to happen on entry/exit of the control or when something else gets the focus!

    The net effect is that the State goes from osUIActive to osRunning such that all the toolbars become invisiblein the process!

    Does anyone have a way to address this such that the toolbars don't go away?

    THX,

    JP

  3. #3
    Sheridan is offline Junior Member White Belt
    Join Date
    Mar 2003
    Posts
    4
    Does anybody have an idea how to solve this problem?
    Are there any workarounds existing to avoid this effect?

    greets & thanks
    Sheridan

  4. #4
    matt1168 is offline Junior Member Yellow Belt
    Join Date
    Jul 2003
    Posts
    14
    Hi i had this problem. Got round it by placing the ole container within a panel. The olecontainer must have align se to alClient. The panel must be alNone and must be resized in code or by using the anchors. The panel must be on the form, not within anything else. This stops the map resizing and the toolbars changing but you still get a pause when you loose focus and mappoint goes from using 20mb to about 100mb. Any ideas why it does that?

  5. #5
    lynx is offline Junior Member White Belt
    Join Date
    Oct 2003
    Posts
    5
    I hate to tell all of you.. but as far as I can tell... there is "NO" way around the problems you guys are having.

    Honestly your best bet is to use the activex control (trust me... I've been through ALOT w/ that OLEcontainer).

    If you do a search on the forums you will see a post I made on how to get the activex control to work with delphi.

    If you have any other questions just send me a PM or e-mail.

    Good luck...
    Chris

  6. #6
    matt1168 is offline Junior Member Yellow Belt
    Join Date
    Jul 2003
    Posts
    14
    Thats not right, we have selling our application for several months with no problem. If you build a simple project with the ole inside a panel with the aling set right it will work fine

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint in OleContainer problem //BCB
    By tomek_tomek in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-16-2005, 03:54 PM
  2. Mappoint in OleContainer problem //Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 01-08-2005, 02:03 PM
  3. OleVariant Problem with Delphi 6
    By top204 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-29-2004, 05:51 AM
  4. Delphi OleContainer problems
    By pafreshney in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 09-15-2003, 02:50 PM
  5. ShowModal hides form with MP in olecontainer
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-13-2003, 11:50 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