Hello list,

I work in MapBasic, for its ease of use (not for its flexibility...). I
can qualify myself more or less as a "newbie".

I am using VM SDK to automate 2 operations on one particular grid:
Import grid and Region Inspection. While the program is running (the
import is a charm), there are many shifts in window focus, which finally
sends MapInfo in the background. The Region Inspection "hangs" until the
user manually clicks in the MapInfo window again. I want to get rid of
ALL manual inputs, which is obviously not the case here. So I tried to
implement some solutions described in this forum, without success. I had
some hope when I implemented the following handle management:

Sub ForegroundTaskSwitchHandler
   If CommandInfo(CMD_INFO_TASK_SWITCH) = SWITCHING_OUT_OF_MAPINFO Then
      Set Window WIN_MAPINFO front
   End If
End Sub

But it makes the Region Inspection fail.

I also found out some things about the "Set Application Window"
statement, but it seems focus- and parent-efficient for external
programming languages (like VB or C). My guess is that since Vertical
Mapper is an external API, it is VM that shifts the focus and does not
bring it back to MI. I am simply not qualified enough to bring it back
to light!!

BTW, I tried to force XP to run MapInfo in NT4.0, without anymore luck.

I am using Windows XP (SP1) with MI 7.0, VM 3.0 and VM_SDK 2.6.

Can anyone help me?

Thank you very much for your precious support!

Regards,

Frank

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 2003-07-10
 


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 7603

Reply via email to