log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Minor irritation and minor satisfaction
 
  Minor irritation and minor satisfaction
  Chris (08:11 20/1/2005)
  rich (09:35 20/1/2005)
    Chris (14:38 20/1/2005)
      rich (15:46 20/1/2005)
        Chris (12:16 21/1/2005)
  monkeyson2 (15:10 20/1/2005)
    Chris (12:13 21/1/2005)
      monkeyson2 (12:16 21/1/2005)
  southerner (19:33 24/1/2005)
    Chris (07:01 25/1/2005)
 
Chris Message #61411, posted by Chris at 08:11, 20/1/2005
Member
Posts: 283
It's mildly irritating that you can't use pop-up menus from transient dialogue boxes. The only solution seems to be to use static ones. Which is a slight pain, as in some situations transient boxes make life easier. Are there any cunning solutions to this (for writing in BASIC)?

It is, however, gratifying to discover a solution to a tiny problem that had been causing me some slight annoyance. I had assumed that the only way to create a label for a group icon was to use a grey filled background. Which is fine on standard colour schemes, but could look ugly if using a non-standard background sprite. Imagine my joy to discover that creating a text&sprite icon with a validation of "S" solved the problem. Still not quite sure how it works, but it does. I might have overlooked it, but it doesn't seem to be documented in the PRMs, so I wonder if others might not have noticed it?
  ^[ Log in to reply ]
 
Richard Goodwin Message #61413, posted by rich at 09:35, 20/1/2005, in reply to message #61411
Rich
Dictator for life
Posts: 6828
I usually use a template editor, so I don't have quite the same problem :)
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Chris Message #61424, posted by Chris at 14:38, 20/1/2005, in reply to message #61413
Member
Posts: 283
Which one do you use? TemplEd, or at least the version I've got, doesn't seem to get it quite right.
  ^[ Log in to reply ]
 
Phil Mellor Message #61425, posted by monkeyson2 at 15:10, 20/1/2005, in reply to message #61411
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
Don't text+sprite icons, if the filled flag is unset, still put a little grey background around the text, but not over the whole icon boundary?
  ^[ Log in to reply ]
 
Richard Goodwin Message #61429, posted by rich at 15:46, 20/1/2005, in reply to message #61424
Rich
Dictator for life
Posts: 6828
Which one do you use? TemplEd, or at least the version I've got, doesn't seem to get it quite right.
TemplEd 1.34 by Dick Alstein, 22-Sep-97.

If you click on "Create icon..." you get an icon palette window, which has "Label" next to a writable icon - that's the one I usually use. If you look lower down there's a kind of boundary box with a border round it, and the label "Frame" has a full grey background.

I also have a stripy OS X-like window texture so I can really see the difference ;)
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Chris Message #61451, posted by Chris at 12:13, 21/1/2005, in reply to message #61425
Member
Posts: 283
Don't text+sprite icons, if the filled flag is unset, still put a little grey background around the text, but not over the whole icon boundary?
Well, that's what I thought. But it seems that if there's no sprite actually displayed, the effect of a text+sprite icon is to give the icon a background the same as the tiled window's. Which is jolly useful for group labels. If you put a space character on either side of the text string, you get a nicely-spaced label that looks good even with wierdo spangly window backdrops.
  ^[ Log in to reply ]
 
Chris Message #61452, posted by Chris at 12:16, 21/1/2005, in reply to message #61429
Member
Posts: 283


I also have a stripy OS X-like window texture so I can really see the difference ;)
Yes. Even with only moderately different backdrop sprites, grey boxes all over the window can make it look a bit odd.

Another challenge is to make the window look OK if there is some Select strangeness going on. I used some slabbed icons to create a tabbed window, which then looked a mess with rounded, colour-graduated icon settings. :)
  ^[ Log in to reply ]
 
Phil Mellor Message #61453, posted by monkeyson2 at 12:16, 21/1/2005, in reply to message #61451
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
Well, that's what I thought. But it seems that if there's no sprite actually displayed, the effect of a text+sprite icon is to give the icon a background the same as the tiled window's. Which is jolly useful for group labels. If you put a space character on either side of the text string, you get a nicely-spaced label that looks good even with wierdo spangly window backdrops.
Ah yes, I think this is a configuration setting in RISC OS 4 and later. *WimpVisualFlags or the relevant Configure window.
  ^[ Log in to reply ]
 
Rob Davison Message #61494, posted by southerner at 19:33, 24/1/2005, in reply to message #61411
Member
Posts: 16
It's mildly irritating that you can't use pop-up menus from transient dialogue boxes. The only solution seems to be to use static ones. Which is a slight pain, as in some situations transient boxes make life easier. Are there any cunning solutions to this (for writing in BASIC)?
I know of two ways. Neither one is ideal.

Better way: When the user clicks on the menu popup getwindowstate for the transient dialogue, Wimp_OpenWindow it (so it becomes static), then open the menu.

Then, when you get a menu cancelled message or the user selects a menu item either close the window or close it then re-open it as a menu again to taste. There are some subtlties involved in making it behave properly, but thats the basic idea. Google csa.p - that is where I first came across it, though I can't remember who mentioned it now.

Less better way (and I've only tried this with transient dialogue over transient dialogue) use Wimp_CreateSubmenu and open the second dialogue such that the pointer is over it (otherwise the first one will close ;-). Evil Hack territory.

HTH.


Rob.
  ^[ Log in to reply ]
 
Chris Message #61504, posted by Chris at 07:01, 25/1/2005, in reply to message #61494
Member
Posts: 283
Better way: When the user clicks on the menu popup getwindowstate for the transient dialogue, Wimp_OpenWindow it (so it becomes static), then open the menu.

Then, when you get a menu cancelled message or the user selects a menu item either close the window or close it then re-open it as a menu again to taste. There are some subtlties involved in making it behave properly, but thats the basic idea. Google csa.p - that is where I first came across it, though I can't remember who mentioned it now.
Thanks a lot. That's certainly better-sounding than the cludges I came up with - I'll have a look on Google and give it a try later when I get home from work.

BTW, and off-topic, I downloaded a copy of PCAPaint some time ago. Absolutely brilliant, even on my knackered old RiscStation, and I kept meaning to send an email telling you so. It's that kind of software, along with other good stuff like SampleEd, which make using RO still pleasurable and creative. Thanks a lot! :)
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Minor irritation and minor satisfaction