Mahtab
1 - No, unfortunately you can't set the line style while the line/polygon is being digitised. As you say, you can set the default styles but this only takes affect once the digitising is finished
2 - Have a look at the Set Style command as you can use this set the line or polygon style
3 - Not sure about this one. I wouldn't have thought so as control is only given back to the MapBasic app once the polygon has been drawn by the user and the object has been created. You could possible use DM_CUSTOM_POINT and use CommandInfo() CMD_INFO_X CMD_INFO_Y to read the x & y coordinates and create the polygon once the user has finished. A lot more complicated then using DM_CUSTOM_POLYON though.
HTHGreg Driver
System Administrator
Applications Support
ICT
NOT PROTECTIVELY MARKED-----Original Message-----
From: Mahtab Alam [mailto: [EMAIL PROTECTED]]
Sent: 30 September 2006 20:04
To: [email protected]
Subject: [MI-L] Modify Cutom Style/Color of Draw PolygonDear all,
I am curious about if following things are possible in Mapinfo with or without mapbasic.1.To change the default color and style of line,polyline,polygon etc to some other color than black while I am drawing.
As I am digitizing on raster images it would be more helpful to see some other color than black. I know it is possible
to change the default style. But than it only shows up once i finish off the whole polygon or line.2.When I Call the Mapinfo custom buttons from my mapbasic program these commands draw in default color of black and
default style of dashed line. Is it possible to change this behaviour so that it shows in some solid line of more thickness
and some other color like magenta.3.While drawing polygon using DM_CUSTOM_POLYGON is it possible to read the mouse/cursor pointer's XY.
I am using Mapinfo 7.5 and Mapbasic 7.0
Thanks.Regards
Mahtab
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.
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
