[Cuis-dev] [IMPROV] <some improvement> ...
Gerald Klix
cuis.01 at klix.ch
Tue Jan 24 12:25:13 PST 2023
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!
>
More information about the Cuis-dev
mailing list