The issue is around the automatic loading. That happens in two environments,
the old traditional addition of a "run application..." to the startup.wor or
the automatic loading with ToolManager. In both cases, the launching of the
mbx's called by the buttons was immediate.
I have tried to hide the run application in a second layer of subroutines,
or in a string with the "run command... ". I have also created a menu
calling the sub that would create the toolpad. Same results in all three
cases.
I have never seen (or I missed it completely) any restriction on the nature
of the procedure that should indicate some different behaviour about the run
application in an automatic launch.
Does anyone know something about that?
Jacques PARIS
e-mail [EMAIL PROTECTED]
For MapInfo support, see the Paris PC Consult enr. site at
http://www.total.net/~rparis/gisproducts.htm
For MapBasic questions see the J.Paris site at
http://www.total.net/~jakesp/index.htm
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lathrop, Travis
Sent: October 17, 2000 11:24 AM
To: '[EMAIL PROTECTED]'
Subject: MI-L
I have created a custom button pad that pulls mbx. files that I have written
when specified buttons have been pushed. Every time I start Mapinfo each
the scripts associated with the new button pad automatically run without me
even pushing them. Anyone have an idea of what I am doing wrong? Here is a
copy of the code I am using....
Include "MapBasic.def"
Include "icons.def"
Include "menu.def"
Declare Sub Main
Declare Sub Airgate
Declare Sub Bright
Sub main
Create ButtonPad "Maps" As
PushButton
Icon 99
HelpMsg "Creates the tables for Airgate affiliate\nCreates the
tables for Airgate affiliate"
Calling Airgate
PushButton
Icon 100
HelpMsg "Unlink a DBMS Table.\nreates the tables for Bright affiliate"
Calling Bright
End Sub
Sub Airgate
Run application "F:\Affiliate Roaming Development &
Implementation\Affiliate Folders\Airgate Wireless\Airgate.MBX"
End Sub
Sub Bright
Run application "F:\Affiliate Roaming Development &
Implementation\Affiliate Folders\Bright PCS\Bright.MBX"
End Sub
Travis Lathrop
Intercarrier Service
913/762-4806
_______________________________________________________________________
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.
_______________________________________________________________________
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.