I'm using a MI window integrated on the VB form (in a pic box).
I gather from your post that you've tried set map redraw off, and it works sometimes, but not others - is that right?
Not sure about the echo options - does it work in VB as well as VBA (a help search only bought up a reference in Access Help).
I've tried it in my code, but it doesn't work - perhaps because the reference to MI is as an object:
Set mobjMI = CreateObject("Mapinfo.Application")
MI_Do "Set Application Window " & mlPicHwnd
mobjMI.Echo FalseHow do you use it?
Thanks,
Matt
Simmonds, Ashley (PTB) wrote:
is your map window integrated into a form or is a form controlling the MI window?
if it's on a form, you could just set the host application echo properties to false or make the form not visible for a bit.
i know it's annoying though, i think in my apps when there's a lot of processing to happen on the map, i ended up just making the form invisible. a decent process, zoom to with long zoom and redraw would usually take about 15 seconds, but i got it down to like 3 by not displaying stuff as it happened.
as to the map redraw option, i've found it to be hit and miss, so i've pretty much gotten rid of the command and just use the application.echo feature on the host app.
dang, huh?
ash
-----Original Message----- From: Matt Bolton [mailto:[EMAIL PROTECTED] Sent: Thursday, 30 October 2003 4:39 PM To: [EMAIL PROTECTED] Subject: MI-L Stop map redraw (integrated mapping)
Hi all,
I'm doing some complex MI map & data manipulation via integrated mapping using VB (I know I could do with MapBasic, but I'm more familiar with VB). I want to be able to do all the processing without the map window redrawing after each step, but have tried the following without success:
objMI.Do "Set Event Processing Off" and objMI.Do "Set Map Redraw Off"
Neither seems to have any effect. Can anyone suggest what I need to do to get either of these to work?
Thanks,
Matt
-- Matt Bolton
Mach 3 IT
Mobile 0412 122 416 Email [EMAIL PROTECTED]
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8960
