Carolyn

Below are a few snippets to help. I've assumed a buttonpad to select a
tool that you click to get the co-ords.  Selecting the tool "primes" the
procedure GET_START_POINT, such that when you click the map it "fires",
thus getting the start x/y into float vars.  Then do your pipelining
stuff.

HTH

Terry
_________________________________________
   Create ButtonPad "Facilities" As 
    ...
    ToolButton  
       HelpMsg "Click this to select Start Point" 
        Calling GET_START_POINT
                ID ...
            ...
                Cursor   MI_CURSOR_CROSSHAIR 
                DrawMode DM_CUSTOM_POINT 
...
Sub GET_START_POINT
' _________________
  Dim   lnX, lnY as Float,
  ...
  Set CoordSys Window FrontWindow() 
  lnX   = COMMANDINFO( CMD_INFO_X)
  lnY   = COMMANDINFO( CMD_INFO_Y)
' where've we clicked?
  ...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carolyn
Bergin
Sent: 27 January 2006 06:30
To: Terry McDonnell
Subject: [MI-L] MI - L - MapBasic Help with User Selections

Hi list

I have searched the archives because im sure ive read about this in the
past but I cant seem to find what I need. 

Basically im writing a tool that will build a pipeline between a serious
of centreline points.  I need for the user of the tool to be able to
select the beginning centreline point for the creation of my pipline.
The first part of the program creates the points, im then looking to
allow the user, while the program is running to selelct the start point
and the program will continue running from there to create my lines.

I really just need to take the x and y coordinates from the users
selection and place that information into variables to begin the second
part of the process.

Can anyone help me?

I hope this makes sense.

Regards

Carolyn Bergin

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l




_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to