Page 1 of 1

Drawing freeform lines in Jade.

Posted: Fri Aug 07, 2009 12:31 pm
by ConvertFromOldNGs
by Anonymous >> Thu, 22 Jan 2004 18:50:52 GMT

Using the painter, is it possible to draw freeform lines and shapes? How is this accomplished? How is it possible for the user to draw lines when the porgram is running?
Thank you in advance.

Re: Drawing freeform lines in Jade.

Posted: Fri Aug 07, 2009 12:31 pm
by ConvertFromOldNGs
by Richard Barrington >> Thu, 22 Jan 2004 20:09:34 GMT

Not 100% sure what you're getting at, but...

If you mean "How do I draw freeform lines in Painter to use in my application's GUI?" - well, you don't. Painter is about form construction, although you can use pre-drawn bitmaps for graphics on the forms if you need to.

OTOH, if you want to make an application with a control that a user can draw on (a scribble pad, for example) I guess you'll have to subclass a control, capture mouse positions, and paint things manually.

Re: Drawing freeform lines in Jade.

Posted: Fri Aug 07, 2009 12:31 pm
by ConvertFromOldNGs
by allistar >> Thu, 22 Jan 2004 22:21:53 GMT

A subclass of the Picture control is a good start, it gives you things like scroll bars which may come in handy.Take a look in the online help in the Graphics methods and properties for Window classes. You can do things like:

drawLine(0, 0, 50, 50, Red);

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

Re: Drawing freeform lines in Jade.

Posted: Fri Aug 07, 2009 12:31 pm
by ConvertFromOldNGs
by Anonymous >> Sun, 25 Jan 2004 18:37:50 GMT

Thx for all the help, the window class has all the functions we need, thx!