HTH
________________________________
Spencer M. Simpson, Jr.
Information Technology Coordinator
Baltimore Metropolitan Council
http://www.baltometro.org
Confidentiality Statement
This electronic mail transmission contains confidential information
belonging to the sender which is legally privileged and confidential. The
information is intended only for the use of the individual or entity named
above. If you are not the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or taking of any action based on the
contents of this electronic mail transmission is strictly prohibited. If you
have received this electronic mail transmission in error, please immediately
notify the sender.
-1. You create your own custom tool that uses DrawMode DM_CUSTOM_POLYGON.
-2. The user selects your polygon-drawing tool, not MapInfo's built-in one
(you'll have to hide it), and draws a polygon. This invokes the tool
handler procedure you wrote.
-3. Your tool handler procedure:
--a. calls CommandInfo (CMD_INFO_CUSTOM_OBJ) to get the object that was
drawn
--b. displays a dialog you created to prompt for the attributes you want.
--c. The user fills in the requested information (or not) and clicks OK or
Cancel. This returns control to your tool handler procedure.
--d. If the user clicks OK on the dialog, the tool handler routine
then has to insert the new record along with the new object.
________________________________