On 16 Jan 2014, at 10:52 , Маркіян Різун <mri...@gmail.com> wrote:

> Hello!
> 
> Task is simple - draw a line on a form(actually this line will be a border of 
> a cell). While browsing classes I found LineSegment and LineMorph. Which of 
> them is better to use in my case? And another question: I know how to 
> initialize both of them, but don't know how to draw it on my form.
> 
> Thank you for help.
> Mark 

myForm getCanvas line: pt1 to: pt2 width: w color: c

You only need to use a LineMorph if the line is not supposed to be static, 
otherwise drawing it directly on the Form is just as easy.

Unless what you actually want is to create something like a spreadsheet, in 
which case a CellMorph, with RectangleMorph (cell outline) / StringMorph (cell 
contents) as subcomponents would probably be a better solution.
(And the spreadsheet itself a morph, with CellMorphs as subcomponents) 

Cheers,
Henry

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to