Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1027
| From | Martin Bazley <martin.bazley@blueyonder.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Use (and abuse) of Wimp_CreateMenu |
| Message-ID | <18fbc83252.martin@blueyonder.co.uk> (permalink) |
| References | <mpro.luq5r704nn0sw01lc.news@stevefryatt.org.uk> <74fdc53252.martin@blueyonder.co.uk> |
| Organization | virginmedia.com |
| Date | 2011-11-16 00:51 +0000 |
> The following bytes were arranged on 15 Nov 2011 by Steve Fryatt : > > > So: does anyone know if a menu's ticked/shaded state can be changed while > > it's open but *not* on a menu selection? And if it can, how does one do it? [snip] Ooh - thought of another one! Try abusing Wimp_SendMessage to slip yourself a fake Menu_Selection event. Set a flag to remind yourself that you've done it, and on the next Wimp_Poll, if the flag's set, call Wimp_CreateMenu and take no further action. Check before all of this that a menu that might need redrawing is actually open, via Wimp_GetMenuState (although I'm not sure if that copes with being called when the pointer is currently elsewhere either). -- __<^>__ "Start off every day with a smile and get it over with." / _ _ \ - W.C. Fields ( ( |_| ) ) \_> <_/ ======================= Martin Bazley ==========================
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Use (and abuse) of Wimp_CreateMenu Steve Fryatt <news@stevefryatt.org.uk> - 2011-11-15 23:11 +0000
Re: Use (and abuse) of Wimp_CreateMenu Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-11-16 00:19 +0000
Re: Use (and abuse) of Wimp_CreateMenu Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-11-16 00:51 +0000
csiph-web