🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.acorn.tech
5 messages
5 total messages Started by Paul Lebeau Mon, 12 Oct 1992 18:46
iconizing, modems, ro3 etc
#297
Author: Paul Lebeau
Date: Mon, 12 Oct 1992 18:46
238 lines
7277 bytes

How to handle Window Iconizing in RO 3(.10)
-------------------------------------------

The following is an excerpt from some of my code that shows
how to handle non-appname iconizing (or at least how I do it!)

It is C, so if you can't follow it, I can describe it better
if I get any request to do so...


---

static void prog_iconbar_events(wimp_eventstr *e, void *handle)
{
 
...
   
   switch (e->e)
   {

...
other events handled here
...


      case wimp_ESEND:
      case wimp_ESENDWANTACK:
         {

            if (help_process(e))    /* if this is a
menu-interactive-help 
message then */
               return;              /* arrange for it to be handled
*/


            switch (e->data.msg.hdr.action)
            {
...
other messages handled here
...
               /*----------*/

               case 0x400cc:   /* 'wimp_MWINDINFO'
                                  (for iconizing windows) */

                  /*--- Return some info back to the pinboard ---*/

                  /* Sprite name to use */
                  strncpy(&e->data.msg.data.chars[8],
                          WIMP_ICONIZE_SPRITE, 8);
...
WIMP_ICONIZE_SPRITE is "ic_minehunt" but you should be able to
put another sprite name in here
...
                  e->data.msg.data.chars[15] = '\0';

                  /* Text to use */
                  strncpy(&e->data.msg.data.chars[16],

                          (e->data.msg.data.words[0] == main_handle)
?
                          msgs_lookup("MEicbarT:Mine Hunt") :
                          msgs_lookup("HSicnztx:Highscores"),

                          20);
                  e->data.msg.data.chars[35] = '\0';

                  /* Reply */
                  e->data.msg.data.words[1] = 0;

                  e->data.msg.hdr.your_ref
                     = e->data.msg.hdr.my_ref;
                  e->data.msg.hdr.size
                     = ((36 + strlen(&e->data.msg.data.chars[16]) +
1) + 
3) & ~3;
                  wimp_sendmessage(wimp_ESEND, &e->data.msg,
                                   e->data.msg.hdr.task);

                  break;

               /*----------*/

               default:
                  break;        /* ignore other messages */
            }
         }

         break;

      /*----------*/

      default:   /* Ignore any other event */
         break;
   }
   
... etc

}

---

Hope that helps.



---


Someone was asking about recommendations for modems.

If you want high spec for low price, you might have trouble
finding something at the BAU show.

About the best deal going at the moment is the Twincom 14.4 DF
from Grampian Hardware in Aberdeen.  It is a V32 bis / V42 bis
with MNP 2-5 and FAX support.  It comes with Windows fax software
and is only #299 (+ VAT & carraige of course).

First let me note that I have no connection with this firm.  I
have bought one of these modems from them however and am pleased
with it (I use it for downloading my mail etc).  With V42bis or
MNP 5 data compression on, you can get up to 19200 bps on the Arc
(no probs on RO2 if your serial cable is not too long - but can be
a bit dodgy sometimes on RO 3.1 due to higher overheads on
interrupt handling).

Grampian seem to be fairly friendly and efficient.  I rang up and
gave the fella my card number and it arrived the next day.  I also
believe they are an Acorn dealer.

You might want to take a squiz at their ad in PCW (Nov pg 411).

If you want some more info, feel free to come and say hello at the
BAU show. I will be on the 4Mation stand (106).  We may also be
able to show you a new comms program we are releasing shortly.
[Note: 20% discount on all 4Mation stuff at the show]

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?


---


Some thoughts on RO3.

I have been using RO3 for over 18 months now (well actually it
started with RO 2.13 I believe!) and have been using 3.10 for
several months.

Despite impressions given by postings on the net, version 3.10
does not suffer from being buggy.  Considering it's complexity,
its very good in that respect.  Under normal use, I'm sure that
nearly all people will be blissfully unaware of any problems.

You don't know how lucky you are (!).  You wouldn't think it was
buggy if you had been using all the untold versions from 2.13 to
3.00!  One of them had the nasty habit of corrupting hard disks!

Unfortunately, some of the low priority 'unwanted features' didn't
get a chance to get fixed because of all the people out there
demanding their copy of RO3! (There are a couple of minor ones in
Paint that annoy the sh*t out of me!!)

But if there is anyone out there that is still sitting on the
fence. Stop it!!

Once you have been using RO3 for a while you will wonder why you
waited so long.

In fact, I can't stand using RO2 machines now because of all the
little things in RO3 that you take for granted after a while.

Such as... (my favourites)

- 2D scrolling

- Windows enlarging when you drag down to the bottom of the screen
  (this is a little unnerving at first, but you get used to it and
  it becomes real useful)

- Expanded filer menu ('Info=>' and 'Set type=>' especially!)

- Shift-Ctrl-F12 closedown

- Shift-DblClick to load into !Edit (invaluable to 'hackers'!)

- Shift-Adj-Close to open a parent leaving the current directory
  open.

- Iconizing windows


As far as the speed of RO 3.10 goes, I haven't noticed much of a
speed difference between RO2 and RO3.10.

RO3.00 was somewhat slower on window redraw due to using sprites
for the window icons.  But since a faster sprite lookup method
was implemented, this is no longer a problem.  (Incidentally,
this is the reason window icons are now loaded with the ToolSprites
command - they are now held in a different area from the other
wimp sprites)

I have a colleague who upgraded from RO2 to RO3.10 a couple of
days ago, and he reckons 3.10 is faster.


---


Finally a request from me...

Does anyone know whether there is a new version of SparkFS that
doesn't interfere with RO3 Shift-Ctrl-F12 closedown. (If you have
SparkFS on the iconbar and do a closedown, you need to hit escape
twice before the closedown goes through.  The version I have
access to is 1.05.

Also about half the Mac SIT files I put through it cause it to
crash.

Does David Pilling read this net?


Cheers
Paul


------------------------------------------------------------------
Paul LeBeau
4Mation
plebeau@cix.compulink.co.uk
Re: iconizing, modems, ro3 etc
#301
Author: TMOTA
Date: Mon, 12 Oct 1992 22:33
54 lines
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)
Re: iconizing, modems, ro3 etc
#314
Author: David Alan Gilbert
Date: Tue, 13 Oct 1992 07:34
19 lines
1156 bytes
In <memo.677982@cix.compulink.co.uk> plebeau@cix.compulink.co.uk (Paul Lebeau) writes:
>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?

Dave Pilling sent me a little advert together with SparkFS
saying that they were aiming to have a fax program out around
now for cheap fax modems.

>Paul LeBeau

Dave Gilbert

(Going to show on Saturday)
-- 
-------------------------------------------------------------------------------
- David Alan Gilbert - gilbertd@p4.cs.man.ac.uk - G7FHJ@GB7NWP                -
------(Programmers don't sleep - they just park their heads)-------------------
Re: iconizing, modems, ro3 etc
#331
Author: Nick Smith
Date: Thu, 15 Oct 1992 10:19
29 lines
1676 bytes
In article <gilbertd.718961656@p4.cs.man.ac.uk> gilbertd@p4.cs.man.ac.uk (David Alan Gilbert) writes:
>In <memo.677982@cix.compulink.co.uk> plebeau@cix.compulink.co.uk (Paul Lebeau) writes:
>>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?
>
>Dave Pilling sent me a little advert together with SparkFS
>saying that they were aiming to have a fax program out around
>now for cheap fax modems.
>
>>Paul LeBeau
>
>Dave Gilbert

David Pilling has his ArcFAX software available now (see adds in this
months' Archive/??) I have yet to play with it, but being a David Pilling
production it has to be good !

Hugo Fiennes (of The Serial Port) was talking about some snazzy modems 
bundled with the latest ARCterm7 + ArcFAX (obviously the modems can send
& receive G3 faxes)



--
--
Nick Smith, Rm.226, Churchill College, Cambridge. ! Email: nas20@uk.ac.cam.phx
sig quote wanted - must be under guarantee.      ! Tel: (0223) 465596
Re: iconizing, modems, ro3 etc
#353
Author: Felix GTi Andrew
Date: Thu, 15 Oct 1992 19:31
29 lines
1435 bytes
Keywords: 

Applications with different names to their !<names> and iconisation.

There has been a discussion about minimising an app window and chaning the
iconised text to something other than the appname, but keep the ic_appname
for the sprite.

Its come to my attention that Acorn seem to call !Calc calculator - which
annoys the hell out of me as I cant find its sprite anyway from the name
calculator.

It seems that if you dont do anything with iconisation (ie ignore the messages)
then the text becomes the first word (if < 20 chars) of the title of the window.
W
Well actually it looks like its only 10 chars (minimise the configuration window
and you get Configurat)

Dont know if this will help anyone, but its annoying in the extreeme that
1) I have no documentation
2) I cant seem to get any
3) The stuff that I do get is wrong
4) There is no app similar to !Spy on the PC (no flames, its useful)
5) This may be a load of rubbish as I dont use Ro 3.1 so it may be fixed.

Frustraited.
	Felix

felixa@microsoft.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads