Article View: comp.sys.acorn.tech
Article #301Re: iconizing, modems, ro3 etc
From: TMOTA
Date: Mon, 12 Oct 1992 22:33
Date: Mon, 12 Oct 1992 22:33
54 lines
2917 bytes
2917 bytes
plebeau@cix.compulink.co.uk (Paul Lebeau) writes: [...] > case 0x400cc: /* 'wimp_MWINDINFO' > (for iconizing windows) */ [...] > strncpy(&e->data.msg.data.chars[8], > WIMP_ICONIZE_SPRITE, 8); >... >WIMP_ICONIZE_SPRITE is "ic_minehunt" but you should be able to Don't you mean "minehunt"? Pinboard is supposed to place the "ic_" on the front itself. Note also that "minehunt" is 8 characters, so the "e" should be replaced by a '\0' terminator. (which you are doing below). As you have called your application 'mineuhunt' (I presume) when you gave the taskname to the WIMP (Wimp_Initialise) it will fail when it tries to use "ic_ic_mine" and resort to "ic_<taskname>", or "ic_minehunt". (Try a different spritename, and I'm certain you'll end up with an "ic_?"...) It just happens to work for you because it defaults to the sprite that you really wanted anyway. i.e. I think you're supposed to use strcpy(...,"minehun") to use an icon called "ic_minehun" >Hope that helps. Thanks, but no.. it's essentially what I've already got... ;-( The trouble comes when you want to use an icon with a *different* name from the application's taskname (e.g. "ic_minehi" and "ic_minewin" for example). The icon *does* appear, but is instantly *replaced* by the default icon again (So I see my icon flash before my eyes...) I can make my icon appear and stay by putting a Wimp_Poll in just before I send the reply message, but although I thought this works, I know find that it *doesn't* work if I start up my machine without booting! In other words, it doesn't work on a bog-standard RO3.10 machine, but for some reason it works after my !boot has been run! (?????!!!?!?!) --- [...] >Unfortunately, there is no Arc software to drive fax modems, that >I know of. A colleague has written some simple code to drive our >modem. Is there any demand out there for us to develop this >commercially? How many of you have fax modems? David Pilling has just released a program to drive Fax modems... (Not an advert... just info for those who are interested!) -- _________________ "I'd like to answer this question in two ways: /____ _ _/_ __ First in my normal voice, and then // / //_//_ /_/ in a silly, high-pitched whine." (Monty Python)
Technical Details
Message-ID:
<1992Oct12.223321.27919@cs.aukuni.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!hela.iti.org!usc!wupost!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1References:
<memo.677982@cix.compulink.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!hela.iti.org!usc!wupost!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1 Newsgroups: comp.sys.acorn.tech Subject: Re: iconizing, modems, ro3 etc Message-ID: <1992Oct12.223321.27919@cs.aukuni.ac.nz> From: jwil1@cs.aukuni.ac.nz (TMOTA) Date: Mon, 12 Oct 1992 22:33:21 GMT Sender: jwil1@cs.aukuni.ac.nz (TMOTA) References: <memo.677982@cix.compulink.co.uk> Organization: Computer Science Dept. University of Auckland Lines: 54