Blocking morph action menus for code browsers
Alexandre Bergel
bergel at iam.unibe.ch
Sat Jul 9 07:50:11 UTC 2005
Hi Stef!
That simple,
If you perform a:
Morph compile: 'invokeMetaMenu: evt ^ self'
You will remove the menu obtained by pressing the Ctrl button.
To remove halos just do a:
Morph compile: 'addHalo: evt ^self'
I attached a changeset to this email.
Alexandre
On Sat, Jul 02, 2005 at 01:42:28PM +0200, stéphane ducasse wrote:
> hi
>
> while programming I noticed that most of the time, I bring the wrong
> menu on the browser
> always the grab...Morph related instead of the action ones.
>
> Does one of you have a changes so that I could either avoid the morph
> one or bring the action one instead?
>
> Stef
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-------------- next part --------------
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 9 July 2005 at 9:47:54 am'!
!Morph methodsFor: 'halos and balloon help' stamp: 'ab 7/9/2005 09:47'!
addHalo: evt
" | halo prospectiveHaloClass |
prospectiveHaloClass _ Smalltalk at: self haloClass ifAbsent: [HaloMorph].
halo _ prospectiveHaloClass new bounds: self worldBoundsForHalo.
halo popUpFor: self event: evt.
^halo"! !
!Morph methodsFor: 'meta-actions' stamp: 'ab 7/9/2005 09:45'!
buildMetaMenu: evt
! !
!Morph methodsFor: 'meta-actions' stamp: 'ab 7/9/2005 09:46'!
invokeMetaMenu: evt
! !
More information about the Squeak-dev
mailing list
|