[squeak-dev] The Inbox: Morphic-ct.1659.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Sat Jun 6 13:17:18 UTC 2020


> isn't this situation comparable to the items in the docking bar? 

Those look like a menu already. System window buttons do not.

Best,
Marcel
Am 17.05.2020 15:40:41 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
Hi Marcel,

isn't this situation comparable to the items in the docking bar? The centered "changeset" button looks exactly the same as the menu items on the left. But the menu items react on mouseDown, whereas the changeset button reacts on mouseUp only.
I was rather thinking of this rule: All *leaf* buttons that actually raise an action should behave in the same fashion. However, the menu box is only a "branch" button, so it does not actually invoke an action. If we have it react only on mouseUp only, it costs the user an extra click to actually select an action from the menu.
Can you understand me? :-)

Best,
Christoph
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Sonntag, 17. Mai 2020 14:37:35
An: gettimothy via Squeak-dev
Betreff: Re: [squeak-dev] The Inbox: Morphic-ct.1659.mcz
 
Hi Christoph.

For the user, it is just a button. All buttons should behave in a similar fashion.

Best,
Marcel
Am 16.05.2020 20:49:10 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Christoph Thiede uploaded a new version of Morphic to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1659.mcz

==================== Summary ====================

Name: Morphic-ct.1659
Author: ct
Time: 16 May 2020, 8:48:50.198708 pm
UUID: 49bbe6f6-5242-1b41-9823-d21b50d6b438
Ancestors: Morphic-nice.1658

Proposal: Have windows' menu box act on mouseDown rather than on mouseUp like the other boxes. This saves you another click and is more consistent to the usual menu flow in Squeak.

=============== Diff against Morphic-nice.1658 ===============

Item was changed:
----- Method: SystemWindow>>createMenuBox (in category 'initialization') -----
createMenuBox
^ (self createBox: self class menuBoxImage)
actionSelector: #offerWindowMenu;
+ setBalloonText: 'window menu' translated;
+ actWhen: #buttonDown;
+ yourself!
- setBalloonText: 'window menu' translated!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200606/7cca9ad3/attachment.html>


More information about the Squeak-dev mailing list