[Cuis-dev] MenuMorph modal

Phil B pbpublist at gmail.com
Sun May 3 15:39:08 PDT 2020


Hilaire,

On Sun, May 3, 2020 at 6:26 PM Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi,
>
> In DrGeo I have a special menu presenting geometric items. When the mouse
> cursor moves over one menu entry the matching items blink on the sketch (it
> uses the step morph system to do so).
>
> I override the selectItem: method as:
>
> selectItem: aMenuItem
>     selectedItem ifNotNil:[
>         (costumes at: selectedItem arguments first) stopBlinking].
>     aMenuItem ifNotNil:[
>         (costumes at: aMenuItem arguments first) startBlinking].
>     ^ super selectItem: aMenuItem
>
> However when I open such a menu with the message invokeModal, the morph
> step system does not seem to work.
>
> Any idea. Or may be I should use differently the menu morph.
>
Just a guess, but MenuMorph's (and MenuItemMorph's) won't step by default
and the methods to control stepping are named a bit differently in Cuis.
So you're going to need to make sure you're enabling stepping using the
Cuis conventions. (see Morph stepping category)

> Hilaire
>
> --
> GNU Dr. Geohttp://drgeo.eu
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200503/3b6c323a/attachment-0001.htm>


More information about the Cuis-dev mailing list