Hello Sann, When creating a text object in a mapper window, if you specify the corners (as you have), the point size in the font clause is ignored. To quote from the help page:
"The x1, y1, x2, and y2 arguments define a rectangular area. When you create text in a Map window, the text fills the rectangular area, which controls the text height; the point size specified in the Font clause is ignored. In a Layout window, text is drawn at the point size specified in the Font clause, with the upper-left corner of the text placed at the (x1, y1) location; the (x2, y2) arguments are ignored." You have a choice of either filling your rectangle perfectly or placing text a point location with a declared point size. There's no way to have both I'm afraid! Regards, Warren Vick Europa Technologies Ltd. http://www.europa-tech.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of sann Sent: Thursday, November 29, 2001 5:27 AM To: [EMAIL PROTECTED] Subject: MI-L RE : DRAW TEXT Hi, Lister I have some problem. I create text object through the mapbasic syntax given below. x1 = commandinfo(Cmd_INFO_X) x2 = commandinfo(Cmd_INFO_X2) y1 = commandinfo(Cmd_INFO_Y) Y2 = commandinfo(Cmd_INFO_y2) Create text Into window frontwindow()"goodmorning" (X1,y1) (X2,Y2) Font ( ) The Problem is font clause not working and height . when i am zooming in the window .The text obj geting too much height. The buttonpad drawmode caluse should be in DM_CUSTOM_LINE . But I want to draw text object in a single mouse click. Any sugation How to control text height while zoom in or zoom out and draw text object in a single mouse click. Cheers Sann __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 _______________________________________________________________________ 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. _______________________________________________________________________ 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.
