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
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners