[Cuis-dev] UI-Color-Panel.pck.st update
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Sun May 18 13:10:56 PDT 2025
Hi Hilaire,
I just noticed the layerNumber additions and adapted the ColorEditor to
it.
I am afraid that the layerNumber implementation has not matured yet.
There are problems with Morph menu #sendToBack, and #bringToFront, which
now sometimes fail to work or show artifacts (attached).
I now find morph menus cluttered with "underlying" halo icons
obfuscating menu selections.
On a small screen, I frequently send some kind of a Panel back to view
occluded Morphs.
Perhaps a weighting system rather than static layer numbers? Perhaps
only use adjustable properties?
Needs more thought.. and more testing.
$0.02,
-KenD
On 2025-05-18 08:25, Hilaire Fernandes via Cuis-dev wrote:
> Indeed parent class of Color Edit, Panel, has a lower layer number,
> 30.
>
> When invoking a Panel on top of an application window, it should not
> fall behind this application window (kids will do that) otherwise user
> will get lost. Or imagine the ColorPanel used to set color on object in
> a window underneath.
>
> May be your change with the property could be moved up to Panel in the
> class hierarchy, with a default value of 30, and ColorPanel could
> adjust its property to 100 in its initialize method. This will give
> more freedome for user of these classes to adjust accordingly to their
> needs.
>
> Le 17/05/2025 à 01:15, ken.dickey--- via Cuis-dev a écrit :
>
>> Greetings!
>>
>> As I am going through docs/tutorials again, I found that the
>> ColorEditor panel stayed at front, which does not accord with the
>> Layout Tutorial. Also, moving this Morph to back via morph menu did
>> not work.
>>
>> I updated this to be #layerNumber 100, which acts as a regular Morph
>> with respect to Z-order.
>>
>> At the same time, I updated all package requirements to the
>> latest/current.
>>
>> If you are using UI-Color-Panel.pck.st, you will need to update to
>> latest.
>>
>> Sorry for any problems.
>
> --
> http://mamot.fr/@drgeo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CuisDisplay1.png
Type: image/png
Size: 87659 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250518/ed882e54/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CuisDisplay2.png
Type: image/png
Size: 145864 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250518/ed882e54/attachment-0003.png>
More information about the Cuis-dev
mailing list