Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!s09-11.readnews.com!unm2.readnews.com.POSTED!not-for-mail X-Trace: DXC=9USPZa9gNanTo2hiV5cmhe@lWf8?fSK:ajS@R6]oDiIo[j;g`C24>Vko=iH@LQ==_@OGBf_6=D[]SgXGh X-Complaints-To: abuse@gradwell.net Subject: Re: An easy way to let the WIMP update? Newsgroups: comp.sys.acorn.programmer From: Gavin X-Editor: EmailEdit 1.50 Date: Sat, 07 Apr 2012 13:51:56 +0100 Message-ID: <4b74af7c52.Dentrassis@mail> References: <2cdb947852.Dentrassis@mail> <65389e7852.martin@bach.planiverse.com> User-Agent: Messenger-Pro/5.13 (MsgServe/3.43) (RISC-OS/5.18) NewsHound/v1.52-32 Lines: 23 Organization: readnews.com - News for Geeks and ISPs NNTP-Posting-Host: b5d789aa.newsreader.readnews.com Xref: csiph.com comp.sys.acorn.programmer:1586 In message <65389e7852.martin@bach.planiverse.com> Martin Wuerthner wrote: > In message <2cdb947852.Dentrassis@mail> > Gavin wrote: >> [...] >> But what I would like, if there is a simple way of doing it, is allow >> the WIMP and the Filer to update between each file being processed, >> when there is a selection of files all dragged in at the same time to >> my app. I wondered if calling Wimp_PollIdle after processing a file >> was the way to do it, to sort of force a null poll for other apps to >> receive, but my app is receiving a sequence of data load messages that >> have been queued up from the selection being dragged in, so I >> immediately start processing the next file. >> I'm wondering if a better approach is to build a list of all the files >> to be processed when they are first dragged in, then work through that >> list (and only start the processing) on the next null poll I receive. > Yes, that looks like a good approach. Yes, This is what I ended up doing.