Bob,
To
disable the X button on the map window you need to know the ID number of the
window (using frontwindow() or another method). Then use the following
command.
SET
WINDOW window_id SYSMENUCLOSE OFF
where
window_id is the ID number of the map window.
Regards,
Stephen White
Analyst Developer
ERSIS
Australia Pty Ltd.
mailto:[EMAIL PROTECTED]
Web: http://www.ersis.com.au
Phone: +61 8 8941 3906
Suite G7, 48-50, Smith St, Darwin NT
The views expressed in this e-mail are not neccesarily those of ERSIS
Australia Pty Ltd.
-----Original Message-----
From: Bob Regier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 29, 2000 9:48 AM
To: [EMAIL PROTECTED]
Subject: MI-L MI Disabling the Close (X) button on the map window?
Hi, From: Bob Regier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 29, 2000 9:48 AM
To: [EMAIL PROTECTED]
Subject: MI-L MI Disabling the Close (X) button on the map window?
I have a complex MapBasic program that I inherited. It runs fine except that if you click the (X) close button on the Map Window, the program responds either with "This program has performed an illegal operation and will be shutdown" (invalid page fault) or "System Error - Internal Error 31203."
My questions are:
- Does anyone know what might be causing this error? (probably not closing
things off properly) and
- What happens in the MapBasic program when you click the (X) Close button on the Map Window?
- If I can't find the problem, is there a way of disabling the (X) close button in the MapBasic program?
Bob Regier
Township of Langley
_______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
