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


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

Re: An easy way to let the WIMP update?

From Paul Sprangers <Paul@sprie.nl>
Subject Re: An easy way to let the WIMP update?
Newsgroups comp.sys.acorn.programmer
Date 2012-03-31 15:14 +0200
Message-ID <527916a31bPaul@sprie.nl> (permalink)
References <2cdb947852.Dentrassis@mail> <527907d28cPaul@sprie.nl> <mpro.m1r1kn05pejpc01nm.news@stevefryatt.org.uk>
Organization None

Show all headers | View raw


In article <mpro.m1r1kn05pejpc01nm.news@stevefryatt.org.uk>,
   Steve Fryatt <news@stevefryatt.org.uk> wrote:

> >    IF i% MOD100 = 0, THEN SYS"Wimp_Poll",&xxxx,block%

>   IF i% MOD100 = 0, THEN PROCpoll_wimp

I fully agree that calling the poll routine is much better and certainly
more flexible than just a calling SYS"Wimp_Poll". However, if there's no
need for the program to react on reason codes while processing a certain
task, such as the one in the example, you may as well just return control
to other applications.


> For example, if you're processing a batch of files, what do you do if
> the user drags some more to the iconbar (eg, do you add them to your
> queue, or do you grey out the iconbar icon)?

Since the program won't react on reason codes at all (at least, when using
the straight SYS"Wimp_Poll" call), the extra drag will simply be ignored.
That's at least what I'm experiencing in a similar case.
Meanwhile, you can still get access to other applications.

So, as far as I can see (agreed, not very far), there's not always a need
for calling the entire poll routine. A simple SYS"Wimp_Poll" can sometimes
do the trick as well - although I do feel that this might be a way of dirty
programming.

Kind regards,
Paul Sprangers

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


Thread

An easy way to let the WIMP update? Gavin <gc@dentrassis.com> - 2012-03-30 14:36 +0100
  Re: An easy way to let the WIMP update? "John Williams (News)" <UCEbin@tiscali.co.uk> - 2012-03-30 15:53 +0200
  Re: An easy way to let the WIMP update? Martin Wuerthner <spamtrap@mw-software.com> - 2012-03-30 17:18 +0200
    Re: An easy way to let the WIMP update? Gavin <gav@dentrassis.com> - 2012-04-07 13:51 +0100
  Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 12:32 +0200
    Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-03-31 13:34 +0100
      Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 15:14 +0200
        Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-03-31 16:04 +0100
          Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-03-31 23:31 +0200
            Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-04-01 10:51 +0100
          Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 23:46 +0200
        Re: An easy way to let the WIMP update? Gerph <gerph@gerph.org> - 2012-03-31 07:32 -0700
      Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-03-31 23:19 +0200
      Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-01 14:25 +0100
        Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-04-01 22:09 +0100
          Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-02 08:21 +0100
            Re: An easy way to let the WIMP update? Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2012-04-02 09:54 +0100
        Re: An easy way to let the WIMP update? Gerph <gerph@gerph.org> - 2012-04-01 07:16 -0700
          Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-03 21:26 +0100
      Re: An easy way to let the WIMP update? Gavin <gav@dentrassis.com> - 2012-04-07 13:57 +0100
        Re: An easy way to let the WIMP update? Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2012-04-07 16:01 +0100
        Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-07 19:52 +0200

csiph-web