David

Seems to happen on my machine as well.  It doesn't occur when the toolbar is
docked though.  Alternatively you could add the following statement although
it causes a 'flash' of the window (i.e. notepad in your example)

Note statement
Set Window MAPINFO Front

Regards
Michael

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, July 10, 2000 11:52 AM
To: [EMAIL PROTECTED]
Subject: MI Mapbasic 6.0 / strange window behaviour

Hello mappers

I have recently recompiled an existing mapbasic application to run under
version
6.0 and have noticed that when using the "NOTE" command called from a
pushbutton
the mapinfo window disappears after the user clicks the OK button and
whatever
other application a user may have running appears instead.

To reproduce the error proceed exactly as follows:-

1)   Load an application such as Notepad
2)   Perform an action in this window (type some text or maximize the window
for
example)
3)   Load Mapinfo
4)   Run the attached code
5)   Click on the OK button and hey presto the notepad window
appears............ or is it just my set up?

I was wondering if other developers have experienced this or can anyone
reproduce the same behaviour?

Many Thanks

Owen

PS:- I'm running on NT 4 / service pack 5.

***************************************************************
DECLARE SUB MAIN
DECLARE SUB NOTE

INCLUDE "ICONS.DEF"
INCLUDE "MAPBASIC.DEF"

SUB MAIN

     CREATE BUTTONPAD "TEST" AS
          PUSHBUTTON
               CALLING NOTE
               ICON MI_ICON_OPEN_FILE
               HELPMSG "NOTE TEST"

          POSITION (1,1) UNITS "IN"
          WIDTH 1

END SUB


SUB NOTE

     NOTE "See what happens when you click OK"

END SUB
***************************************************************


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to