/* TEACH GO_EDIT_POINT                     Ben Rabau, 27th Aug 1993

This file is incomplete, at present you will have to experiment with the
GO environment to see what is available by Direct Manipulation (DM). For
more detailed information see

HELP * GO
REF * GO

Basic objects with extra DM features for go include:
    - lines     explained in TEACH * GO_POLYLINE
    - arcs      explained in TEACH * GO_ARCS, GO_CIRCLE
    - polygons  explained in TEACH * GO_POLYGON, GO_MAKE_EDITABLE

 */


/*
-- CLASS EDIT_POINT ---------------------------------------------------
 */
;;; "go_edit_point"s ARE USED TO EDIT OTHER OBJECTS:
;;;
;;; The edit_points appear as small triangles rather than dots...

;;; Small test example with go_circle:
;;; Default behaviour of go_edit_point moves centre of the bounding box:

;;; Requires the following files to be loaded:
uses go_edit_point;
uses go_circle;

;;; It also requires the GO window to be active:
go_init_rc();

vars circ, ed_pnt;

newgo_circle() -> circ;
go_add_to( circ , go_default_pane );

newgo_edit_point() -> ed_pnt;
circ -> go_edited_object(ed_pnt);
go_add_to(ed_pnt, go_default_pane );

;;; As long as the editor is inside the parents bounding-box, the object
;;; can be dragged around.
;;; In the case of a go_circle this can be shown by dragging the go_circle
;;; to the boundary of the parent (probably a go_pane) once by dragging the
;;; editor and once by selecting the circle itself.

;;; To remove the editor from the pane do:
go_destroy_object( ed_pnt );

;;; A bigger example using polygons is shown in TEACH * GO_MAKE_EDITABLE

/*
See HELP * GO.NEWS for more recent enhancements.
 */

--- C.all/lib/proto/go/teach/go_edit_point
--- Copyright University of Sussex 1993. All rights reserved.
