Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1030

Re: Mixing Toolbox Menu objects with Wimp sub menus

From Rik Griffin <nospam@denbridgemarine.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Mixing Toolbox Menu objects with Wimp sub menus
Message-ID <f01cfc3252.rik-news@iyonix.elements> (permalink)
References <3870129f-889e-4871-9647-1a9d61625548@x26g2000prf.googlegroups.com> <58ecbb3252.martin@bach.planiverse.com>
Date 2011-11-16 10:10 +0000

Show all headers | View raw


In message <58ecbb3252.martin@bach.planiverse.com>
          Martin Wuerthner <spamtrap@mw-software.com> wrote:

> In message <3870129f-889e-4871-9647-1a9d61625548@x26g2000prf.googlegro 
> ups.com>
>           wpb <w.blatchley@yahoo.com> wrote:
> 
> > 4) The Toolbox *constantly* delivers these submenu action events. This
> > is the crux of the problem. I have to keep track of the fact that I've
> > opened the submenu already with a static bool, and don't keep trying to
> > open it.
> 
> That sounds wrong. As you noted in 5) below, you do not know when this 
> particular submenu is closed, so you cannot keep that flag up to date. 
> I cannot see why the Toolbox would want to notify your program 
> constantly. As I read the documentation you should only get the event 
> once (after all, this is just a Wimp submenu warning event that the 
> Toolbox passes on, and that event is sent only once, too).

I've just done a quick test in ResTest and it does seem to be the case that
the Menu_SubMenu toolbox event is delivered repeatedly while the mouse
pointer is over the submenu arrow.

Looking at the toolbox source code reveals that this event is sent on
receipt of a MenuWarning Wimp message. So is the Wimp sending this message
repeatedly too? I've been using the Toolbox for so long I've forgotten how
the Wimp is meant to behave! More investigation is required.

Wimp 5.13, Toolbox 1.53, Menu 0.36 (ROOL versions).

[a short time later...]

It seems that the Wimp will keep sending MenuWarning messages until the
application opens the submenu. I suspect the problem is that the submenu
being opened is not the submenu specified in the parent menu's data.

Of course if the submenu was a Toolbox object, the Toolbox would correctly
fill in this data field.

I think the ultimate answer is to implement the submenu using the Toolbox.

-- 
Rik Griffin
Standard disclaimer, not speaking for anyone but myself, blah blah
(Reply-To may be broken: use rik dot griffin at denbridge marine dot com)

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-15 13:16 -0800
  Re: Mixing Toolbox Menu objects with Wimp sub menus Martin Wuerthner <spamtrap@mw-software.com> - 2011-11-15 23:29 +0100
    Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-15 22:26 -0800
    Re: Mixing Toolbox Menu objects with Wimp sub menus Rik Griffin <nospam@denbridgemarine.com> - 2011-11-16 10:10 +0000
      Re: Mixing Toolbox Menu objects with Wimp sub menus Rik Griffin <nospam@denbridgemarine.com> - 2011-11-16 10:12 +0000
        Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-16 02:28 -0800
          Re: Mixing Toolbox Menu objects with Wimp sub menus Rik Griffin <nospam@denbridgemarine.com> - 2011-11-16 10:57 +0000
            Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-16 03:35 -0800
      Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-16 10:52 -0800
  Re: Mixing Toolbox Menu objects with Wimp sub menus Erik G <erikg@noname.invalid> - 2011-11-16 15:28 +0100
  Re: Mixing Toolbox Menu objects with Wimp sub menus Gerph <gerph@gerph.org> - 2011-11-17 01:54 -0800
    Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-17 06:40 -0800
      Re: Mixing Toolbox Menu objects with Wimp sub menus Gerph <gerph@gerph.org> - 2011-11-17 06:57 -0800
        Re: Mixing Toolbox Menu objects with Wimp sub menus wpb <w.blatchley@yahoo.com> - 2011-11-17 14:36 -0800
          Re: Mixing Toolbox Menu objects with Wimp sub menus Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-11-18 08:01 +0000

csiph-web