Hi Jon, Have you tried to specify the (non-rotated) MBR of the rotated rectangle instead ?
I.e.: Create Text ... (Minimum(all X's), Minimum(all Y's)) (Maximum(all X's), Maximum(all Y's)) into ... If rotated 0-90 degrees (math system) this will amount to: Create Text ... (ulx, lly) (lrx, ury) into ... Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ http://hjem.get2net.dk/lars-online/ WGS84: 10.26'40"E 55.20'20"N ----- Original Message ----- From: "Jon Petter Nielsen" <[EMAIL PROTECTED]> To: "MapInfo-L (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 10:34 AM Subject: MI-L MB Create Text - stetement; Detailed text rectangle specifications Hello listers, Having read a document from J.Paris : "Handling MapInfo Text Objects", I still have some trouble using and understanding the "Create Text" statement in MB. In my App I want to place a character as an MI Text Object inside a defined (slanted) rectangle. The actual rectangle is defined by four corners (ul,ur,lr and ll) with coordinate pairs (xy - metric). (Verified OK; using Create Region .. statement) The "ul" and "lr" corners define the text anchor and opposite corner, and my angle is correct. >From The MB Help of "Create Text" statement Create Text [ Into { Window window_id | Variable var_name } ] text_string ( x1, y1 ) ( x2, y2 ) .. [ angle text_angle ] .. x1 , y1 are floating-point coordinates, specifying one corner of the rectangular area which the text will fill x2 , y2 specify the opposite corner of the rectangular area which the text will fill .. 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. When using Create Text ... (ulx,uly)(lrx,lry) into myTObj (variable), my text object will - Have a variable position relative to the correct rectangle, dependant on the angle - The text size will vary according to angle of the rectangle I also have tried to use the MBR of the rectangle to specify the text object, still without success. Can anyone hint me how to specify the (x1,y1) (x2,y2) values better, to make my text objects start at the ur of the rectangle ? Regards / Vennlig hilsen Jon Petter Nielsen Senior consultant, Ugland IT Group AS Mail: [EMAIL PROTECTED] Mobil: 9759 6860 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8006 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8007
