[Newbies] Re: Squeak context menus

K. K. Subramaniam subbukk at gmail.com
Wed Jul 15 15:07:02 UTC 2009


On Tuesday 14 Jul 2009 1:23:16 am Robert Lamb wrote:
> K. K. Subramaniam <subbukk <at> gmail.com> writes:
> > Have you looked at doYellowButtonPress:, hasYellowButtonMenu methods?
> I see the hasYellowButtonMenu method, but not the other. Problem is I
> cannot figure out how to hook it all up and am looking for an example or a
> link to an example or more info.
Which version of Squeak are you using? I see 
TextPlusMorph>>doYellowButtonPress. The version history shows it was added by 
update 2001trnMisc11May08-KR (Karl Ramberg?).

You can also see the methods ParagraphEditor class>>initializeTextEditorMenus 
for examples on how to add custom entries. When yellow button is pressed, 
MouseMenuController queries this menu through getPluggableYellowButtonMenu and 
then sends the model:orSendTo: message to it. You can trace through these 
calls.

Subbu



More information about the Beginners mailing list