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


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

Re: Wimp report error oddity

From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Wimp report error oddity
Date 2012-07-04 13:02 +0200
Organization MW Software
Message-ID <8206f7a952.martin@bach.planiverse.com> (permalink)
References <52a3c84aabbob@sick-of-spam.invalid> <52a9ec0298bob@sick-of-spam.invalid>

Show all headers | View raw


In message <52a9ec0298bob@sick-of-spam.invalid>
          Bob Latham <bob@sick-of-spam.invalid> wrote:

> In article <52a3c84aabbob@sick-of-spam.invalid>,
>    Bob Latham <bob@sick-of-spam.invalid> wrote:

>> My Wimp application waits for an icon click within the program and then
>> tries to load a file. If the file doesn't load or contains no data I
>> call wimp_report_error with the flags set to 1. After return from the
>> swi I simply go back to the main loop and wimp_poll.

> Really, really stumped by this, I don't understand what is happening or
> why. I've spent hours and hours on it.

> Having put test points in my code I can confirm that the original mouse
> click does get resent to my application after a Wimp_ReportEerror *if* I
> close the error window with a mouse click, use the escape key and no
> problems.

Very odd. I presume the window handle in that message is the one of 
the original window? Check the button type of the icon in question. It 
could be of a type that notifies both on click and on release.

-- 
Martin
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
        RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------

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


Thread

Wimp report error oddity Bob Latham <bob@sick-of-spam.invalid> - 2012-06-22 11:55 +0100
  Re: Wimp report error oddity Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2012-06-23 16:09 +0100
  Re: Wimp report error oddity Bob Latham <bob@sick-of-spam.invalid> - 2012-07-04 10:02 +0100
    Re: Wimp report error oddity Martin Wuerthner <spamtrap@mw-software.com> - 2012-07-04 13:02 +0200
      Re: Wimp report error oddity Bob Latham <bob@sick-of-spam.invalid> - 2012-07-04 12:28 +0100

csiph-web