Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions gui-easy/gui/easy/scribblings/custom-views.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
racket/gui/easy
racket/gui/easy/operator))

@; Example links cited within this section
@(define example-link-hn
(link "https://github.com/Bogdanp/racket-gui-easy/blob/master/examples/hn.rkt"
@filepath{examples/hn.rkt}))
@(define example-link-panel
(link "https://github.com/Bogdanp/racket-gui-easy/blob/master/gui-easy-lib/gui/easy/private/view/
panel.rkt"
@filepath{gui-easy-lib/gui/easy/private/view/panel.rkt}))

@title{Custom Views}

@(define canvas-list-link
Expand Down Expand Up @@ -143,7 +152,7 @@ When the view becomes visible again, its @method[view<%> create]
method will be called again and the whole cycle will repeat itself.

That's all there is to it when it comes to custom controls. See the
@filepath{hn.rkt} example for a program that uses a custom view.
@|example-link-hn| example for a program that uses a custom view.


@section{Custom Containers}
Expand All @@ -154,5 +163,4 @@ them in their @method[view<%> dependencies] method. Additionally,
their @method[view<%> update] method is in charge of dispatching
updates to their children.

See @filepath{gui-easy-lib/gui/easy/private/view/panel.rkt} for an
example.
See @|example-link-panel| for an example.