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

Reply via email to