Great,
That's exactly the reference for me to start! i will go over the code and will
figure out the way it works.
I'll probably have some more questions while working on that.
Thanks a lot,
Roy.
> Date: Tue, 5 Aug 2008 10:36:07 -0700> From: [EMAIL PROTECTED]> To:
> [email protected]> Subject: Re: [fc] Need help and advice...> > ROY ZINN
> wrote:> > I'm quite new to FloatCanvas (and drawing in general).> > Welcome>
> > > 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 ....> > One of the benefits of FloatCanvas is that you
> can use any coordinate > system you want, rather than having to use pixels.>
> > The default coordinate system is x-right, y-up.> > FloatCanvas does not
> include any method to help with laying things out > (like sizers, etc) ,
> you'll have to do that yourself.> > > 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'm not sure I understand,
> but you'll probably find it easier to make > the list and the main drawing
> all with floatcanvas, to make it easier to > line things up.> > I need to
> draw 2 'frames'. each 'frame' is divided to 8 equal> > spaces with dashed
> line seperating them : | | | | | | | | |> > so, to keep the math easy, you
> could make each "frame" 8 units wide, and > each line 8 units tall.> > to
> make the horizontal lines, something like:> > for i in range(num_rows/2):>
> Canvas.AddRectangle((0, i*8),> (width, 8),> LineColor = None,> FillColor =
> "Grey",> FillStyle = "Solid",)> > to put a dashed line in every 1 unit:> >
> for i in range(8):> Canvas.AddLine(((i,bottom)(i,top)),> LineColor =
> "Black",> LineStyle = "ShortDash",# or "Dot", > "LongDash","ShortDash",
> "DotDash"> LineWidth = 1,)> > > etc...> > I've enclosed a sample to get you
> started.> > -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]
_________________________________________________________________
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