Hi Peter, I have actually made this kind of tool, but of course made for a specific dataset. A few questions: - Do you only want to select from a certain table/layer ? - Have you table a unique ID column ? If these two questions can be answered with yes, it should be quite simple to make this tool. 1. When the user uses the tool in a map, use searchpoint to find the records that was located where he clicked. 2. Read the IDs from these records 3. Read the IDs from the current selection 4. Insert all the IDs from the selection into a temporary table 5. Compare each of the found IDs with the ID in the temporary table: - The ID exists: remove it from the temporary table - The ID doesn't exist: insert the ID in the temporary table 6. Select all records from your table if their ID is to be found in the Temporary table: Select * From MYTABLE Where ID In (Select ID From TEMP_TABLE) Hope this helps, Peter Horsb�ll M�ller GIS Developer Geographical Information & IT COWI A/S Odensevej 95 5260 Odense S. Denmark Tel + 45 6311 4900 Dir +45 6311 4908 Mob +45 5156 1045 Fax + 45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk <http://www.cowi.dk/>
________________________________ From: Peter Zyczynski [mailto:[EMAIL PROTECTED] Sent: Tue 01-Mar-05 05:32 To: [email protected] Subject: MI-L SHIFT-Select, how to make it default behaviour? G'day list, Anyone know how to change the selection mode of the select tool to be SHIFT-CLICK by default? Explanation for those who haven't had their late arvo coffee: I want the effect of holding down the SHIFT key but without actually holding it down. So by simply clicking the mouse I want the object to be added/removed from the current selection - BUT without having to hold the nasty SHIFT key down. I can write my own custom select tool no problem, but how would I achieve the functionality of adding/removing from an existing selection? Any ideas greatly appreciated. Cheers, ------------------ Peter Zyczynski Analyst Programmer Insight GIS Hobart, Australia Ph: (03) 6234-5833 [EMAIL PROTECTED] --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15466
