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: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 153:04:19 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,828 |