Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5959
| Date | 2020-02-02 13:17 +0000 |
|---|---|
| From | Matthew Phillips <spam2011m@yahoo.co.uk> |
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Finding location of current menu |
| Message-ID | <250f013c58.Matthew@sinenomine.freeserve.co.uk> (permalink) |
| References | <30e2ae3a58.Matthew@sinenomine.freeserve.co.uk> <mpro.q4ztv001i3wxf02ho.news@stevefryatt.org.uk> |
In message <mpro.q4ztv001i3wxf02ho.news@stevefryatt.org.uk> on 31 Jan 2020 Steve Fryatt wrote: > On 30 Jan, Matthew Phillips wrote in message > <30e2ae3a58.Matthew@sinenomine.freeserve.co.uk>: > > > We came across Wimp_GetMenuState which refers to the window handle of the > > menu in R2, but bizarrely that is as an input value, and I cannot see how > > you are supposed to know the window handle of any menu! The PRM > > explanation of that call is quite unenlightening and it's hard to know how > > you are supposed to use it with R0=1. > > My guess is that Wimp_GetMenuState is primarily aimed at handling > Message_HelpRequest, where you get provided with a window and icon handle, > and the problem is working out how they relate to your application. That's a very good point. I had not thought of that. I don't think I've ever provided interactive help over menus, but I can see it would be necessary to do this lookup. > > Any ideas? We're currently favouring reopening the lengthened menu where > > we first opened it. > > I have to say that Druck's solution sounds better, both from a GUI point of > view and from the fact that you can change and re-open the submenu as much > as you like without the base menu address changing. Another advantage of using a submenu is that it could be greyed out until the links have been fetched. If the items on the main menu changed while the user had it open, there could be a situation where the user clicks the mouse, and before their brain has completed the operation the application has inserted extra items and so the user ends up clicking on something unexpected. -- Matthew Phillips Durham
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Finding location of current menu Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-01-30 23:43 +0000
Re: Finding location of current menu druck <news@druck.org.uk> - 2020-01-31 08:10 +0000
Re: Finding location of current menu news@sprow.co.uk - 2020-01-31 00:55 -0800
Re: Finding location of current menu Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-02-02 13:19 +0000
Re: Finding location of current menu Alan Adams <alan@adamshome.org.uk> - 2020-02-02 20:12 +0000
Re: Finding location of current menu Steve Fryatt <news@stevefryatt.org.uk> - 2020-01-31 22:45 +0000
Re: Finding location of current menu Jean-Michel <jmc.bruck@orange.fr> - 2020-02-01 20:38 +0100
Re: Finding location of current menu Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-02-02 13:17 +0000
Re: Finding location of current menu Terry Kelly <tk@cestriant.plus.com> - 2020-02-02 16:45 +0000
Re: Finding location of current menu Steve Fryatt <news@stevefryatt.org.uk> - 2020-02-02 19:44 +0000
Re: Finding location of current menu svrsig <chris@svrsig.org> - 2020-02-14 06:48 -0800
Re: Finding location of current menu Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-02-14 22:03 +0000
Re: Finding location of current menu svrsig <chris@svrsig.org> - 2020-02-19 10:45 -0800
csiph-web