Thanks,
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().....
Thanks,
Roy
> Date: Tue, 5 Aug 2008 14:45:12 +0200> To: [email protected]> From:
> [EMAIL PROTECTED]> Subject: Re: [fc] Need help and advice...> > Am
> 05.08.2008, 12:51 Uhr, schrieb ROY ZINN <[EMAIL PROTECTED]>:> > >> > Hi, I'm
> quite new to FloatCanvas (and drawing in general).I saw the > > examples of
> FloatCanvas, but i couldn't figure how to place an object > > (such as text)
> on the top left corner for example.I saw that the > > placement is done by
> Point = (x,y), but i'm sure there is a better way > > then to guess x,y ....
> Need advice: I'm writing an application which > > shows recorded events (i
> hope the attached file can be open) which is > > like that: the left side is
> a list of the captured events (looks like > > listctrl). To the right of the
> list (which is part of the canvas) > > there's is the main drawing. I need to
> draw 2 'frames'. each 'frame' is > > divided to 8 equal spaces with dashed
> line seperating them : | | | | > > | | | | > > | > > | | | | | | | | | etc.
> (this is onle one 'frame' with two > > events).the distance between two lines
> is 5000/8 so the total length of > > frame is 5000.between the dashed lines i
> need to draw a line (or a > > filled rectangle) with a thickness which
> describes the event length > > (between 0-5000)for example, if event 1
> started at time 2300 and ended > > at 2320, i will draw a line in slot number
> 4 (this slot represent time > > 1875 - 2500) which is 20 units thick. I hope
> my description is good, > > it's easier with the attachement. Thanks in
> advance for any > > suggestion,Roy.> > Hmm, I am not sure what your question
> is :-)> > First of all what you describe is possible to do with float canvas.
> > Second, you don't need to guess x, y. If you create a Text object, you can
> > even specify if (x, y) means "top left of the text", "bottom right of the >
> text" and so on. Take a look at the "Position" parameter of Text.__init__ .>
> > If you need more info, just ask.> > -Matthias>
> _______________________________________________> FloatCanvas mailing list>
> [email protected]>
> http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas