[Cuis-dev] Toggleable halos debugging aids

Hernán Wilkinson hernan.wilkinson at 10pines.com
Tue May 30 08:11:30 PDT 2023


I do not see it really useful but I think it depends on everyone's needs
:-)
It is ok for me to make it toggleable

On Tue, May 30, 2023 at 10:54 AM Mariano Montone via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi,
>
> the current halos display code starts with this commented code for
> "Debugging aids":
>
> HaloMorph>>drawOn: aCanvas
>
>      | b |
>      target ifNil: [^super drawOn: aCanvas].
>
>     "Debugging aid"
>      "aCanvas
>          fillRectangle: haloBox
>          color: (Color red alpha: 0.2).
>      aCanvas
>          fillRectangle: self morphLocalBounds
>          color: (Color gray alpha: 0.4)."
>
>
> I find that commented code useful as I often want to visualize the halos
> morph bounds when developing GUI.
>
> So, I would like to make that commented code toggleable.
>
> I attach an implementation that uses Preferences to toggle halo's
> debugging aids.
>
> I don't care much about being done my way, but being done in some way (I
> struggled with the name of preferences, or perhaps you prefer to do this
> in a completely different way.)
>
> What do you think?
>
>
> Thanks,
>
>          Mariano
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230530/984fafaa/attachment.htm>


More information about the Cuis-dev mailing list