ROY ZINN wrote:
> I read the Text.__init__  handler, the position relates to where the 
> text will be in relation with xy coordinates. I'm looking for the xy 
> coordinates to be on the top left of the control:
>  
> _____________________________________
> |xy - this is what i want to get                 |
> |                                                         |
> |                                                         |
> |                                                         |
> |                                                         |
> _____________________________________            
> 
> i would say i am looking for something like : GetTopLeftCoordinates().....

You define the coordinates however you want. You'll probably figure it 
out by looking at the code I sent, but in that code, I set up the top 
left at (-TextWidth, 0) -- a bit strange, but it puts (0,0) at the top 
of the line between the labels and the graphic part of the chart.

You could make it (0,0) and add the TextWidth to the coords for the 
graphic part.

Note that I used the default y-up coordinate system, and put all the 
chart below zero, in -y. You could also set a Projection Function to 
make it y-down (see  YDownDemo.py), but I think there may be some bugs 
in text alignment if you use that.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to