From 2a324e804e1bbb1c89222d9101bd757d3322831f Mon Sep 17 00:00:00 2001 From: Athanasios Anastasiou Date: Wed, 27 Aug 2025 16:05:59 +0000 Subject: [PATCH] Minor edit to add two additional links towards the github repository --- gui-easy/gui/easy/scribblings/custom-views.scrbl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gui-easy/gui/easy/scribblings/custom-views.scrbl b/gui-easy/gui/easy/scribblings/custom-views.scrbl index f3c308b..0c257e5 100644 --- a/gui-easy/gui/easy/scribblings/custom-views.scrbl +++ b/gui-easy/gui/easy/scribblings/custom-views.scrbl @@ -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 @@ -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} @@ -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.