MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Delphi OleContainer Resize Problem.

This is a discussion on Delphi OleContainer Resize Problem. within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-23-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-30-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-16-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 14
Send a message via MSN to matt1168
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 12-18-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-19-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 14
Send a message via MSN to matt1168
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
delphi, olecontainer, problem, resize


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MapPoint in OleContainer problem //BCB tomek_tomek MapPoint 2006/2009 Discussion 3 08-16-2005 03:54 PM
Mappoint in OleContainer problem //Delphi Anonymous MapPoint 2006/2009 Discussion 6 01-08-2005 02:03 PM
OleVariant Problem with Delphi 6 top204 MapPoint 2006/2009 Discussion 3 04-29-2004 05:51 AM
Delphi OleContainer problems pafreshney MapPoint 2006/2009 Discussion 6 09-15-2003 02:50 PM
ShowModal hides form with MP in olecontainer Anonymous MapPoint 2006/2009 Discussion 0 05-13-2003 11:50 AM


All times are GMT -5. The time now is 12:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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