About customizing Squeak -> Preferences personalizedWorldMenu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

About customizing Squeak -> Preferences personalizedWorldMenu

Hannes Hirzel
Hello

A note:

The other thread 'About customizing Squeak -> custom world menu' is
about customizing the left click desktop menu.

But there is also the option of getting a personalized right button click menu.
Squeak 3.8.1 (see screenshot) has an entry 'personalize ...' in the
right-click menu.

Since Squeak 4.4 (maybe earlier) this is no longer available.

Still available are

     Preferences personalizedWorldMenu

and

     Preferences personalizeUserMenu: aMenu


But setting the preference

    personalizedWorldMenu

to 'enabled' has no effect.

I wonder how to activate it.

Regards

Hannes

Reply | Threaded
Open this post in threaded view
|

Re: About customizing Squeak -> Preferences personalizedWorldMenu

Hannes Hirzel
The screen shot for Squeak 3.8.1

On 2/24/18, H. Hirzel <[hidden email]> wrote:

> Hello
>
> A note:
>
> The other thread 'About customizing Squeak -> custom world menu' is
> about customizing the left click desktop menu.
>
> But there is also the option of getting a personalized right button click
> menu.
> Squeak 3.8.1 (see screenshot) has an entry 'personalize ...' in the
> right-click menu.
>
> Since Squeak 4.4 (maybe earlier) this is no longer available.
>
> Still available are
>
>      Preferences personalizedWorldMenu
>
> and
>
>      Preferences personalizeUserMenu: aMenu
>
>
> But setting the preference
>
>     personalizedWorldMenu
>
> to 'enabled' has no effect.
>
> I wonder how to activate it.
>
> Regards
>
> Hannes
>



personalizedWorldMenu_Squeak3.8.1.png (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: About customizing Squeak -> Preferences personalizedWorldMenu

Bob Arning-2
In reply to this post by Hannes Hirzel

It's only referenced from #yellowButtonClickOnDesktopWithEvent:. You would need to connect that to a regular click one way or another. Perhaps like:

putUpWorldMenu: evt
    "Put up a menu in response to a click on the desktop, triggered by evt."

    | menu |
    self bringTopmostsToFront.
    evt isMouse ifTrue:
        [evt yellowButtonPressed
            ifTrue: [^ self yellowButtonClickOnDesktopWithEvent: evt].
        evt shiftPressed ifTrue:[^ self findWindow: evt]].
    Preferences personalizedWorldMenu
        ifTrue: [^ self yellowButtonClickOnDesktopWithEvent: evt].

    "put up screen menu"
    menu := self buildWorldMenu: evt.
    menu addTitle: Preferences desktopMenuTitle translated.
    menu popUpEvent: evt in: self.
    ^ menu

On 2/24/18 11:56 AM, H. Hirzel wrote:
Hello

A note:

The other thread 'About customizing Squeak -> custom world menu' is
about customizing the left click desktop menu.

But there is also the option of getting a personalized right button click menu.
Squeak 3.8.1 (see screenshot) has an entry 'personalize ...' in the
right-click menu.

Since Squeak 4.4 (maybe earlier) this is no longer available.

Still available are

     Preferences personalizedWorldMenu

and

     Preferences personalizeUserMenu: aMenu


But setting the preference

    personalizedWorldMenu

to 'enabled' has no effect.

I wonder how to activate it.

Regards

Hannes




Reply | Threaded
Open this post in threaded view
|

Re: About customizing Squeak -> Preferences personalizedWorldMenu

Bob Arning-2
In reply to this post by Hannes Hirzel

squeak 6:


On 2/24/18 12:04 PM, H. Hirzel wrote:
The screen shot for Squeak 3.8.1

On 2/24/18, H. Hirzel [hidden email] wrote:
Hello

A note:

The other thread 'About customizing Squeak -> custom world menu' is
about customizing the left click desktop menu.

But there is also the option of getting a personalized right button click
menu.
Squeak 3.8.1 (see screenshot) has an entry 'personalize ...' in the
right-click menu.

Since Squeak 4.4 (maybe earlier) this is no longer available.

Still available are

     Preferences personalizedWorldMenu

and

     Preferences personalizeUserMenu: aMenu


But setting the preference

    personalizedWorldMenu

to 'enabled' has no effect.

I wonder how to activate it.

Regards

Hannes