It is indeed possible to use MBWIndow-style MapBasic in a tab file as in a
WOR. Below is an example that includes a splash screen appearing for a set
number of seconds when the tab is open (I simply copied what I had prepared
as a wor for the launching of an application)
But as you can see this is not hard coding, i.e. anybody with a text editor
can wipe it out. There is no way known to me to inscribe such a feature in a
binary and irremovable form.
!table
!version 300
!charset WindowsLatin1
Open Table "ppcc01.TAB" As ppcc01 Interactive
Open Table "paris.TAB" As paris Interactive
Open Table "splash" As splash Interactive
Map From splash,paris,ppcc01
Position (1.83333,0.4375) Units "in"
Width 4.91667 Units "in" Height 2.95833 Units "in"
Set Window FrontWindow() ScrollBars Off Autoscroll On
Set Map
CoordSys NonEarth Units "ft"
Center (19.33057637,15.88177356)
Zoom 25.54825628 Units "ft"
Preserve Zoom Display Position
Distance Units "ft" Area Units "sq ft" XY Units "ft"
Distance Type Cartesian
Dim WorkspaceMaximizedWindow As Integer
WorkspaceMaximizedWindow = Frontwindow()
Set Window WorkspaceMaximizedWindow Max
Set Map Window WorkspaceMaximizedWindow Preserve Scale
Undim WorkspaceMaximizedWindow
run application "splash_timer.mbx"
close all
Definition Table
Type NATIVE Charset "WindowsLatin1"
Fields 6
symb02 Logical Index 1 ;
symb04 Logical ;
afield Char (12) Index 2 ;
symb01 Logical Index 3 ;
symb03 Logical ;
id Smallint ;
Jacques Paris
e-mail [EMAIL PROTECTED]
MapBasic-MapInfo support http://www.paris-pc-gis.com
-----Original Message-----
From: Sarah Williams [mailto:[EMAIL PROTECTED]
Sent: 31-Mar-05 05:58
To: [email protected]
Subject: MI-L Message Boxes
Hello
I have created a data set which needs to be accompanied by a disclaimer
notice when used in MapInfo. I suspect the answer to my questionis no but
thought I'd ask it anyway!
Is it possible through MapBasic or some other means to make a message box
pop up when this particular table is opened? I know that this is possible to
do in a workspace but sometimes the table will be required to be opened on
its own or into an existing workspace. Any ideas how to get round this will
be gratefully received.
Thanks
Sarah Williams
GIS Officer
North Somerset Council
*********************************************************
PRIVACY AND CONFIDENTIALITY NOTICE
*********************************************************
The information contained in this email transmission is intended by North
Somerset Council for the use of the named individual or entity to which it
is directed and may contain information that is privileged or otherwise
confidential. If you have received this email transmission in error, please
delete it from your system without copying or forwarding it, and notify the
sender of the error by reply email.
Any views expressed within this message or any other associated files are
the views and expressions of the individual and not North Somerset Council.
North Somerset Council takes all reasonable precautions to ensure that no
viruses are transmitted with any electronic communications sent by us,
however we can accept no responsibility for any loss or damage resulting
directly or indirectly from the use of this email or any contents or
attachments.
Website\t\t www.n-somerset.gov.uk
Main switchboard\t 01934 888888
****************************************************************************
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 15876