Groups | Search | Server Info | Login | Register
Groups > comp.sys.acorn.programmer > #6547
| From | Steve Fryatt <news@stevefryatt.org.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Text in a wimp window |
| Date | 2025-08-15 20:06 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mpro.t11uf400fdgng0dmf.news@stevefryatt.org.uk> (permalink) |
| References | <5c4be2e7bbbob@sick-of-spam.invalid> <5c4c6c50b0basura@invalid.addr.uk> <5c4cd689e8bob@sick-of-spam.invalid> |
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).
--
Steve Fryatt - Leeds, England
http://www.stevefryatt.org.uk/
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