Groups | Search | Server Info | Login | Register
Groups > comp.sys.acorn.programmer > #6548
| From | Bob Latham <bob@sick-of-spam.invalid> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Text in a wimp window |
| Date | 2025-08-16 16:10 +0100 |
| Organization | None |
| Message-ID | <5c4d57a507bob@sick-of-spam.invalid> (permalink) |
| References | <5c4be2e7bbbob@sick-of-spam.invalid> <5c4c6c50b0basura@invalid.addr.uk> <5c4cd689e8bob@sick-of-spam.invalid> <mpro.t11uf400fdgng0dmf.news@stevefryatt.org.uk> |
In article <mpro.t11uf400fdgng0dmf.news@stevefryatt.org.uk>, Steve Fryatt <news@stevefryatt.org.uk> wrote: > On 15 Aug, Bob Latham wrote in message > <5c4cd689e8bob@sick-of-spam.invalid>: > > I have been looking at the possibility of using icons. The big > > disappointment with them to me is that I don't think you can > > change the pointer to text buffer *after* the icon has been > > created. So no fast and easy way to make an icon based window > > scroll even just a few lines. > Use self-redraw and Wimp_PlotIcon, plus a single icon template that > you change the details in before each call. That way, you can also > set the window extent and use normal Wimp scrolling. > For an example in C, see (sorry, this is probably Iris or a > non-RISC OS browser). > https://github.com/steve-fryatt/printpdf/blob/eede3c2050353f55c0151776e187dd9bb0181696/src/convert.c#L1571 > (there's similar code in CashBook, Locate, PS2Paper, Puzzles and > probably other places too, but I think this is the smallest and > simplest example that I've got). That sounds fantastic I would love to be able to code that up. For me who's old and not terribly bright I have two mountains to climb. Firstly understanding the principal and detail of your concept and secondly tackling a window redraw loop which I've never done and have avoided for decades. I think it would take me a very long time to understand your C code, but I may be able to understand your concept. On your icon method, have I grasped this?.. These icons are just temporary and in effect they place a line of text on the window and then the icon no longer exists, just leaving the text on the screen. That means you can create them as you need without any count? Wow. I had no idea that was possible. Is this on the right lines.. Plot an icon for line 1 near top of screen. Next text line comes along... Plot an icon for line 2 under line 1. Continue until screen is filled then.... Next line comes in. Plot a new bottom icon which covers the previous one. Plot an icon 1 line higher with the text for what was the bottom line last time. etc. As for the redraw loop.. Can I cheat to start with? ie. rely on the clip window and redraw the entire window each time? Have that as a sort of base camp for this mountain climb. Fantastic. Thanks for the idea Steve. Not sure I'm clever enough to work all this out but I'm going to try. Cheers, Bob.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-13 20:18 +0100
Re: Text in a wimp window druck <news@druck.org.uk> - 2025-08-14 09:35 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-14 09:54 +0100
Re: Text in a wimp window Theo <theom+news@chiark.greenend.org.uk> - 2025-08-14 10:03 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-14 10:45 +0100
Re: Text in a wimp window Sebastian Barthel <naitsabes@freenet.de> - 2025-08-14 14:37 +0000
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-14 17:57 +0100
Re: Text in a wimp window Theo <theom+news@chiark.greenend.org.uk> - 2025-08-14 16:12 +0100
Re: Text in a wimp window Richard Ashbery <basura@invalid.addr.uk> - 2025-08-14 21:19 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-15 16:39 +0100
Re: Text in a wimp window Steve Fryatt <news@stevefryatt.org.uk> - 2025-08-15 20:06 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-16 16:10 +0100
Re: Text in a wimp window Steve Fryatt <news@stevefryatt.org.uk> - 2025-08-18 11:50 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-18 12:58 +0100
Re: Text in a wimp window Bob Latham <bob@sick-of-spam.invalid> - 2025-08-20 18:35 +0100
Re: Text in a wimp window Sebastian Barthel <naitsabes@freenet.de> - 2025-08-21 13:01 +0000
Re: Text in a wimp window Harriet Bazley <harriet@bazleyfamily.co.uk> - 2025-08-23 00:31 +0100
Re: Text in a wimp window Jean-Michel <jmc.bruck@orange.fr> - 2025-08-17 18:01 +0200
csiph-web