MI-L remove

2000-12-16 Thread Nick Smith



 


MI-L Changing label anchor point programmatically

2000-12-16 Thread David Baker

I can double-click on an object's label & a "Label Style" dialog box will 
appear. From there I can change the anchor point of that single label 
without affecting the anchor point of the other labels of other objects in the 
same table.

Is there a way to do this under program control? I want to put the label on 
the left or the right of the object, depending on whether the object is to the 
right or left of the center of the screen, so that the label has less chance 
of being chopped off. Of course I don't want the dialog box to come up - I 
just want to do a quick check when the object position changes & move 
the label accordingly, all without human intervention (& quickly as this 
object moves every 10 seconds.)

I've opened the MapBasic window when using the dialog box, but no code 
appears. Searching on "anchor point" only shows 
LABEL_INFO_POSITION but there appears to be no way to change this 
setting.

I could do this using CreateText, but for other reasons I want to use the 
native labels.

Thanks,

Dave


___
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.