Is it possible to change the state of an iconbar icon? I'm writing a very simple BASIC program to toggle the state of a system variable and I'd like
a visual indication of which state it is in. It seems a waste to open a separate window just for that so it would be neater to just make an alteration to the iconbar icon but I can't remember if that is possible?
Is it possible to change the state of an iconbar icon? I'm writing a
very simple BASIC program to toggle the state of a system variable and
I'd like a visual indication of which state it is in. It seems a waste
to open a separate window just for that so it would be neater to just
make an alteration to the iconbar icon but I can't remember if that is possible?
On 9 Aug, Rob Hemmings wrote in message
<5a1560a69erhemmings@rgvk.co.uk>:
Is it possible to change the state of an iconbar icon? I'm writing a very simple BASIC program to toggle the state of a system variable and I'd like a visual indication of which state it is in. It seems a waste to open a separate window just for that so it would be neater to just make an alteration to the iconbar icon but I can't remember if that is possible?
Yes: it's just a normal icon. Anything that you can do via Wimp_SetIconState or changing indirected data will work, and I assume that you'll be able to use Wimp_ResizeIcon on RISC OS 3.5+.
Just collect the handle when you create the icon with Wimp_CreateIcon, and use it in the usual way.
It is a long time since I've done any programming on RISC OS and I'd be
very grateful for a quick bit of advice on something I've forgotten.
Is it possible to change the state of an iconbar icon? I'm writing a
very simple BASIC program to toggle the state of a system variable and
I'd like a visual indication of which state it is in. It seems a waste
to open a separate window just for that so it would be neater to just
make an alteration to the iconbar icon but I can't remember if that is possible?
Thanks in advance for any advice.
Am Tue, 09 Aug 2022 19:05:22 +0100 schrieb Rob Hemmings:
It is a long time since I've done any programming on RISC OS and I'd be very grateful for a quick bit of advice on something I've forgotten.
Is it possible to change the state of an iconbar icon? I'm writing a
very simple BASIC program to toggle the state of a system variable and
I'd like a visual indication of which state it is in. It seems a waste
to open a separate window just for that so it would be neater to just
make an alteration to the iconbar icon but I can't remember if that is possible?
Thanks in advance for any advice.
It is a long time since You've posted this question ...
but eventually its interesting to You and other folks how this can be done in a BASIC fragment, which You should be usable in this form:
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:05:16 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,187 |