home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sun4nl!wtrlnd!nextjk!fidonet!p15.f202.n281.z2.fidonet
- From: Vincent_Partington@p15.f202.n281.z2.fidonet
- Newsgroups: comp.sys.atari.st
- Subject: Re: MultiTos redraw problem
- Message-ID: <2b3de82c@p15.f202.n281.z2.fidonet>
- Date: 27 Dec 92 17:27:04 GMT
- Reply-To: p15.f202.n281.z2.fidonet!Vincent_Partington@nextjk.wlink.nl
- Lines: 56
- X-FSC-PID: LED 1.00
-
- In a message of <Wed 23 Dec 92 15:04>, Luc Castermans (2:281/202.0) writes:
-
- LC> I want to force a redraw on the INFO-line in a
- LC> window. To do that I calculate the x,y,w,h of
- LC> that part and than do an form_dial(FMD_FINISH,...)
- LC> call. The code looks like this:
- LC>
- LC> void redraw_info(void)
- LC> {
- LC> /* fill dimensions of INFO line in window */
- LC> ...
- LC> form_dial(FMD_FINISH,...);
- LC> }
- LC>
- LC> void redraw(GRECT *area_ptr)
- LC> {
- LC> redraw_info();
- LC>
- LC> /* walk rectangle list below here */
- LC> .....
- LC> }
- LC>
- LC> Upon a WM_REDRAW request redraw() is called.
- LC>
- LC>
- LC> This works fine under TOS.
- LC>
- LC> I have a MultiTos version. Now this redraw
- LC> piece of code seems to come into a infinite loop. For
- LC> some reason the AES keeps on sending WM_REDRAW messages
- LC> after the first form_dial call.
- LC>
- LC> I trust the MultiTos I have. Now: what is the only and
- LC> only good way to do what I want to do ??
-
- Obviously TOS sends you redraw-messages even when you (think you) only
- requested a redraw for the infobar. But how do you calculate the
- coordinates for the infobar? Maybe you're a pixel of and then a WM_REDRAW
- message get sent and then ouy request a redraw etc. etc.
- But WHY would you want to force a redraw of the infobar? It gets redrawn
- automatically? Or do you change the contents of the string containing the
- info-line? The only good way to change the info-line is using wind_set(wh,
- WF_INFO, ...). This will also force a redraw of the info-line. And I
- suggest NOT doing this in the redraw-handling but when you actually change
- the info-line.
- Hope it helps.
-
- Ta!
- Vincent
-
- FidoNet : 2:281/202.15
- NeST : 90:500/202.15 <-- NEW ADDRESS!!!
- Usenet : vincent@nextjk.wlink.nl
-
- --- MARSmail v1.20/4D
- * Origin: For the best host-mode, use Jekyll (2:281/202.15)
-