Drawing freeform lines in Jade.

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Drawing freeform lines in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:31 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Drawing freeform lines in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:31 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Drawing freeform lines in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:31 pm

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 ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Drawing freeform lines in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:31 pm

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!


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 14 guests