msglab1 in the TRAIN option tree.PLOT. In order
for the PLOT to stay up and allow the macro to receive messages,
it needs to be in a pipe section.
pipe on
panel
This will bring up a PANEL. The use of PANEL will
be discussed in the next section. For now all that is important is that
clicking the 'X' in the panel will end the macro. (When the PANEL
comes up it will probably be behind the PLOT, so you may need to
move the PLOT to see it.)PLOT of
nxm.sys.dat.world.shpMYPLOT and set the /MSGID=...
switch.processMessage procedure. For now
just make it print out the message received.
procedure processMessage m:msg
say "Got message name=^msg.name info=^msg.info &
data=^msg.data from=^msg.fid"
returnUPDATE to add your macro to the command dictionary.FEATURE to mark the location of any
"MARK" made by the user.PLOT command
in the pipe section you can just paste in this code.
FEATURE label=fea1 table={NAME=FEA1,TYPE=SYMBOL,&
COLOR=YELLOW} plot=myplot
fea1.x and fea1.y In the
processMessage procedure, set the location of the feature to match
the "MARK" message received.
processMessage add a check for a "MARK" message.
When you see a "MARK" message set the feature location to match
that given in the "MARK" message.data.lon, data.lat and data.alt.