Lisp HUG Maillist Archive

graph-pane initial nodes - from where do they come?

When I make a graph-pane as below, why does it have nodes which are the 
integers from 1 to 31?  Is there an :initform for the graph-pane which 
does this? Thank you.

(capi:contain (make-instance
               'capi:graph-pane))

Mitch


Re: graph-pane initial nodes - from where do they come?

Hi,

Use can use :ROOTS to set your own nodes of a graph-pane. see:

http://www.lispworks.com/documentation/lw51/CAPRM/html/capiref-148.htm#pgfId-895252

There're some LispWorks examples which use GRAPH-PANE, you should take  
a look at them:

(example-file "capi/graphics/graph-pane.lisp")
(example-file "capi/graphics/circled-graph-nodes.lisp")
....

Regards,

Chun Tian (binghe)

>
> When I make a graph-pane as below, why does it have nodes which are  
> the integers from 1 to 31?  Is there an :initform for the graph-pane  
> which does this? Thank you.
>
> (capi:contain (make-instance
>              'capi:graph-pane))
>
> Mitch
>


Updated at: 2020-12-10 08:42 UTC