[Cuis-dev] [IMPROV] <some improvement> ...

Juan Vuletich juan at cuis.st
Tue Jan 24 14:24:46 PST 2023


Yes. Right.

Just pushed a slight variation, calling #label on the item, and 
implementing it as #contents. Reason is to avoid risk of dnu #contents 
on some exotic (but possible) menu. I kept your initials on the code.

Thanks!

On 1/24/2023 5:25 PM, Gerald Klix via Cuis-dev wrote:
> Hi Juan,
>
> Yes of course:
>
> You can press Shift-Right-Mouse-Button an copy a single menu item;
> see MenuItemMorph>>#mouseButton2Up localPosition:.
> This method sends #duplicate to self.
> The resulting copy is then grabbed by the active hand,
> which invokes MenuItemMorph>>#aboutToBeGrabbedBy:,
> which in turn packs the single item into a
> new instance of MenuMorph and answers that one
> to be dropped with the hand.
>
> This “process” leads to menu morphs without
> a title and only a single item.
> I often use it to have my favorite world-menu
> items readily available.
> Alas they do not have a sensible label,
> and thus their taskbar morphs
> do not have a sensible hover-help message.
>
>
> HTH,
>
> Gerald
>
>
>
> On 1/24/23 7:55 PM, Juan Vuletich via Cuis-dev wrote:
>> On 1/24/2023 9:37 AM, Gerald Klix via Cuis-dev wrote:
>>> Hi all, Hi Juan,
>>>
>>> I often copy World Menu items like «Save Image» on my desktop.
>>> Up to now, the are labeled ‚MenuMorph‘.
>>> The attached change set that uses the only item's contents as label,
>>> in the aforementioned case.
>>>
>>>
>>> HTH and Best Regards,
>>>
>>> Gerald
>>
>> Hi Gerald,
>>
>> I tried to copy a menu item, and I don't get an instance of 
>> MenuMorph, but just a MenuItemMorph, with the correct label.
>>
>> Can you help me reproduce what you do so I understand the need for 
>> this change?
>>
>> Thanks!
>>
>


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list