customizing SystemWindow menu

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

customizing SystemWindow menu

Usman Bhatti
Hi,

I wanted to customize system window menu and I could not find a relevant method to change the default pragma used for menu generation. So, I thought it will be nice to have this utility method on SystemWindow if possible:

SystemWindow>>menuPragmaNamed: aPragmaName model: aModel
menuBuilder := PragmaMenuBuilder pragmaKeyword: aPragmaName model: aModel

May be there is some other, simpler way to achieve it that I missed?

regards,
usman
Reply | Threaded
Open this post in threaded view
|

Re: customizing SystemWindow menu

Franck Warlouzet
Hi,

If I correctly understood, you want to add entries to the system window menu ?
To do that, you can implement the method addModelItemsToWindowMenu: aMenu in your class if you want to extend the system window menu.

Franck


Date: Mon, 6 Jul 2015 15:53:48 +0200
From: [hidden email]
To: [hidden email]
Subject: [Pharo-users] customizing SystemWindow menu

Hi,

I wanted to customize system window menu and I could not find a relevant method to change the default pragma used for menu generation. So, I thought it will be nice to have this utility method on SystemWindow if possible:

SystemWindow>>menuPragmaNamed: aPragmaName model: aModel
menuBuilder := PragmaMenuBuilder pragmaKeyword: aPragmaName model: aModel

May be there is some other, simpler way to achieve it that I missed?

regards,
usman
Reply | Threaded
Open this post in threaded view
|

Re: customizing SystemWindow menu

Usman Bhatti
yep, this is what I was looking for.
Thanks.

Still, it will be nice to have the method I suggested to replace the default menu.

regards.

On Mon, Jul 6, 2015 at 4:01 PM, Franck Warlouzet <[hidden email]> wrote:
Hi,

If I correctly understood, you want to add entries to the system window menu ?
To do that, you can implement the method addModelItemsToWindowMenu: aMenu in your class if you want to extend the system window menu.

Franck


Date: Mon, 6 Jul 2015 15:53:48 +0200
From: [hidden email]
To: [hidden email]
Subject: [Pharo-users] customizing SystemWindow menu


Hi,

I wanted to customize system window menu and I could not find a relevant method to change the default pragma used for menu generation. So, I thought it will be nice to have this utility method on SystemWindow if possible:

SystemWindow>>menuPragmaNamed: aPragmaName model: aModel
menuBuilder := PragmaMenuBuilder pragmaKeyword: aPragmaName model: aModel

May be there is some other, simpler way to achieve it that I missed?

regards,
usman

Reply | Threaded
Open this post in threaded view
|

Re: customizing SystemWindow menu

stepharo
Usman
open a bug entry.

Stef

Le 6/7/15 16:51, Usman Bhatti a écrit :
yep, this is what I was looking for.
Thanks.

Still, it will be nice to have the method I suggested to replace the default menu.

regards.

On Mon, Jul 6, 2015 at 4:01 PM, Franck Warlouzet <[hidden email]> wrote:
Hi,

If I correctly understood, you want to add entries to the system window menu ?
To do that, you can implement the method addModelItemsToWindowMenu: aMenu in your class if you want to extend the system window menu.

Franck


Date: Mon, 6 Jul 2015 15:53:48 +0200
From: [hidden email]
To: [hidden email]
Subject: [Pharo-users] customizing SystemWindow menu


Hi,

I wanted to customize system window menu and I could not find a relevant method to change the default pragma used for menu generation. So, I thought it will be nice to have this utility method on SystemWindow if possible:

SystemWindow>>menuPragmaNamed: aPragmaName model: aModel
menuBuilder := PragmaMenuBuilder pragmaKeyword: aPragmaName model: aModel

May be there is some other, simpler way to achieve it that I missed?

regards,
usman