According to the help file, if one uses the drawing mode DM_CUSTOM_POINT
with a tool object, one could retrieve in the handler of that tool with
commandinfo(cmd_info-X) and ..._Y) the coordinates of the point when clicked
in a mapper, the column and row of the cell when clicked in a browser.
It works for me in a mapper, but the tool does not recognize a browser (the
cursor does not change when placed over one). Have I missed something in
this small example?
include "mapbasic.def"
include "Icons.def"
declare sub main
declare sub chercher
sub main
alter buttonpad id 3 add
ToolButton
DrawMode DM_CUSTOM_POINT
Cursor MI_CURSOR_CROSSHAIR
Icon 195
Calling Chercher
end sub
Sub Chercher
note CommandInfo(CMD_INFO_X)
end sub
Thanks
Jacques Paris
e-mail [EMAIL PROTECTED]
MapBasic-MapInfo support http://www.paris-pc-gis.com
_______________________________________________________________________
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.