Hi Greg
 
As usual you come through.  Thanks a lot.  I guess that the std. tools
use this process internally to get their man.
 
Regards
 
Terry

________________________________

From: Driver, Greg 9434 [mailto:[EMAIL PROTECTED] 
Sent: 27 September 2005 12:00
To: Terry McDonnell
Subject: RE: MI-L How to make a toolbutton cursor/pointer able to
select.



Terry, 

One way to do it would be to use the SearchPoint function.  You could
set-up a custom tool button, allow the use to click in the map window
and grab the x,y coordinates and pass these to the SearchPoint function.
You can then use SearchInfo() to return the tablename and the row id of
any objects found where the user clicked in the map window.  You could
then use this info to select and display the zones associated with the
facility that had been selected.

Greg Driver 

System Administrator 
Applications Support 
ICT 
Surrey Police 
Tel: 01483 48 2292 
Fax: 01483 48 2374 
Email: [EMAIL PROTECTED] 
NOT PROTECTIVELY MARKED 


-----Original Message----- 
From: Terry McDonnell [mailto:[EMAIL PROTECTED] 
Sent: 27 September 2005 11:32 
To: [email protected] 
Subject: MI-L How to make a toolbutton cursor/pointer able to select. 


Hi List 
  
I have several Facilities on the map (such as shops, POs, churches, et 
al) 
Each facility has a "catchment area" - a coagulation of zone polygons
(e.g. for a church they could be, say, its parish) I have a toolbar with
a toolbutton which is meant to be used to display the catchments.  i.e.
after the toolbutton is pressed, clicking on a facility, with the tool,
should invoke a procedure to select and display all the zones in its
catchment.


Trouble is:  after selecting the tool, and clicking on a fac., nothing
is selected, so my code, referring to the selection crashes.  If,
however, before selecting the tool, I've already selected a fac. by
clicking on it with the std. selection tool, then the code works OK.
Hence, my tool isn't "firing" a selection when clicked on the map.


What I need is for the tool to "recognise" the object it clicks on, in
the way, say, the "info" tool gives you the info on the object you click
on.


It would seem that a "selection" process is out so what is the event
that I should react to?  Or how am I going wrong? 
  
'ppreciate it 
  
Terry McDonnell 


Internet communications are not secure and therefore Surrey Police does
not accept legal responsibility for the contents of this message.  This
email and any attachments may be confidential. They may contain
privileged information and are intended for the named addressee (s)
only. They must not be distributed without our consent. If you are not
the intended recipient, please notify us immediately and delete the
message and any attachments from your computer, do not disclose,
distribute, or retain this email or any part of it. Unless expressly
stated, opinions in this email are those of the individual sender, and
not of Surrey Police. We believe but do not warrant that this e-mail and
any attachments are virus free. You must therefore take full
responsibility for virus checking. Surrey Police reserves the right to
monitor all email communications through their networks.


Reply via email to