Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6360
| From | Paul Sprangers <Paul@sprie.nl> |
|---|---|
| Subject | Wimp_RedrawWindow protocols |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2022-04-16 12:57 +0200 |
| Message-ID | <59da004dcaPaul@sprie.nl> (permalink) |
| Organization | None |
[This topic is a spin off from elsewhere] In article <mpro.rafg4d01cbkc603j7.news@stevefryatt.org.uk>, Steve Fryatt <news@stevefryatt.org.uk> wrote: > > > When a Wimp_Poll returns reason code 1 (RedrawWindow), then > > > Wimp_RedrawWindow must be the first Wimp call made, and it should > > > not be called at any other time. > > Ah, now I understand what you mean - and I sin against that rule > > indeed. Before calling Wimp_RedrawWindow, I do a Wimp_GetWindowInfo > > call. Should I really move that one after the redraw call? > What details do you need to find from Wimp_GetWindowInfo to perform the > redraw, that you don't get in the block returned by Wimp_RedrawWindow and > Wimp_GetRectangle? > > If I do, things go horribly wrong. > Define "horribly wrong"... which might help us help you. :-) Horribly wrong in this case means that I get a 'Number too big' error in another subroutine when opening the application window. The details that I get from Wimp_GetWindowInfo is the x and y origins of the window in question: SYS "Wimp_GetWindowInfo",,block% ox% = block%!4 - block%!20 oy% = block%!16 - block%!24 However, I noticed that I can move the latter two lines to within the WHILE more% - ENDWHILE loop and delete the Wimp_GetWindowInfo call, so that the RedrawWindow call is the first one in the redraw routine. Unfortunately, it doesn't change anything about some other glitches, that probably have nothing to do with the redraw routine, but the more so with my general and ubiquitous flaws. Paul -- http://riscos.sprie.nl
Back to comp.sys.acorn.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 12:57 +0200
Re: Wimp_RedrawWindow protocols Steve Fryatt <news@stevefryatt.org.uk> - 2022-04-16 12:57 +0100
Re: Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 14:49 +0200
Re: Wimp_RedrawWindow protocols Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-04-16 14:19 +0100
Re: Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 17:18 +0200
Re: Wimp_RedrawWindow protocols Martin <News03@avisoft.f9.co.uk> - 2022-04-16 14:49 +0100
csiph-web