Hello,
"Blair McGlashan" <
[hidden email]> wrote in message
news:b5nco7$2b05uq$
[hidden email]...
> I presume you mean can one suppress the inheritance of the parent context
> menu in order to use a control's own context menu?
> Without subclassing the view, I think the answer is no.
It's quiet surprising for me, that nobody has needed that functionality
before. To close the question, here is a hack that resolves the problem.
Just set 'DefaultMenu new' as a context menu for all TextEdit views.
"Filed out from Dolphin Smalltalk 2002 release 5.00"!
Menu subclass: #DefaultMenu
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: 'Win32Constants'
classInstanceVariableNames: ''!
DefaultMenu guid: (GUID fromString:
'{34090861-5B13-49A4-A554-24235DC76EAA}')!
DefaultMenu comment: ''!
!DefaultMenu categoriesForClass!Unclassified! !
!DefaultMenu methodsFor!
showIn: aView position: aPoint
aView
defaultWindowProcessing: WM_CONTEXTMENU
wParam: aView handle
lParam: (POINTL fromPoint: aPoint) asDword! !
!DefaultMenu categoriesFor: #showIn:position:!public! !
Best Regards,
Maxim Fridental