Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5632 > unrolled thread

Screen saver code fails to work

Started byRichard Ashbery <basura@invalid.addr.uk>
First post2018-12-18 14:32 +0000
Last post2018-12-21 21:31 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  Screen saver code fails to work Richard Ashbery <basura@invalid.addr.uk> - 2018-12-18 14:32 +0000
    Re: Screen saver code fails to work Ron <Ron@GMail.com> - 2018-12-18 19:54 +0000
    Re: Screen saver code fails to work Steve Fryatt <news@stevefryatt.org.uk> - 2018-12-18 20:18 +0000
      Re: Screen saver code fails to work druck <news@druck.org.uk> - 2018-12-18 21:53 +0000
      Re: Screen saver code fails to work Richard Ashbery <basura@invalid.addr.uk> - 2018-12-21 21:31 +0000

#5632 — Screen saver code fails to work

FromRichard Ashbery <basura@invalid.addr.uk>
Date2018-12-18 14:32 +0000
SubjectScreen saver code fails to work
Message-ID<57685f53cabasura@invalid.addr.uk>
I've been testing a simple graphic program with the late, Martin Fox's
Wimp polling routine to create a screen saver. ORIGIN 1920,1080 sets
the graphic in the screen centre. Whenever the Screen saver is run
from the Configuration Screen window program crashes. The program
appears to run error free with its origin set in bottom left hand
corner of screen if REMmed out. Is there a CLI command I could try
instead?

[toc] | [next] | [standalone]


#5633

FromRon <Ron@GMail.com>
Date2018-12-18 19:54 +0000
Message-ID<57687cdeaaRon@sand-hill.uk>
In reply to#5632
In article <57685f53cabasura@invalid.addr.uk>,
   Richard Ashbery <basura@invalid.addr.uk> wrote:
> reen window program crashes. The program
> appears to run error free with its origin set in bottom left hand
> corner of screen if REMmed 

OK, what's the largest point you can set for the origin other than 0,0 ?

Ron

-- 

MrRonMan@GMail.com

[toc] | [prev] | [next] | [standalone]


#5634

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2018-12-18 20:18 +0000
Message-ID<mpro.pjy8dz00mq03701mt.news@stevefryatt.org.uk>
In reply to#5632
On 18 Dec, Richard Ashbery wrote in message
    <57685f53cabasura@invalid.addr.uk>:

> I've been testing a simple graphic program with the late, Martin Fox's
> Wimp polling routine to create a screen saver. ORIGIN 1920,1080 sets the
> graphic in the screen centre. Whenever the Screen saver is run from the
> Configuration Screen window program crashes.

You don't say what "crashes" means, and I'm not completely clear if it's the
Configure application or your screen saver which does it?

> The program appears to run error free with its origin set in bottom left
> hand corner of screen if REMmed out. Is there a CLI command I could try
> instead?

Although not listed in the "don't use under the Wimp" keywords, ORIGIN
affects the entire system and all running applications: moving the origin to
the centre of the screen could result in applications getting coordinates
that they don't expect (although they shouldn't crash as a result).

Since moving the origin is just a numerical nicety, can the code not be
changed to work using (0,0) in its more usual location?

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

[toc] | [prev] | [next] | [standalone]


#5635

Fromdruck <news@druck.org.uk>
Date2018-12-18 21:53 +0000
Message-ID<pvbq9b$n5l$1@dont-email.me>
In reply to#5634
On 18/12/2018 20:18, Steve Fryatt wrote:
> Although not listed in the "don't use under the Wimp" keywords, ORIGIN
> affects the entire system and all running applications: moving the origin to
> the centre of the screen could result in applications getting coordinates
> that they don't expect (although they shouldn't crash as a result).

I would have though it would be reset on a Wimp poll or redraw loop 
along with the current graphics window, but I could be wrong.

---druck

[toc] | [prev] | [next] | [standalone]


#5646

FromRichard Ashbery <basura@invalid.addr.uk>
Date2018-12-21 21:31 +0000
Message-ID<576a113c26basura@invalid.addr.uk>
In reply to#5634
In article <mpro.pjy8dz00mq03701mt.news@stevefryatt.org.uk>, Steve
Fryatt <news@stevefryatt.org.uk> wrote:
> On 18 Dec, Richard Ashbery wrote in message
>     <57685f53cabasura@invalid.addr.uk>:

> > I've been testing a simple graphic program with the late, Martin
> > Fox's Wimp polling routine to create a screen saver. ORIGIN
> > 1920,1080 sets the graphic in the screen centre. Whenever the
> > Screen saver is run from the Configuration Screen window program
> > crashes.

> You don't say what "crashes" means, and I'm not completely clear if
> it's the Configure application or your screen saver which does it?

Surely it's the screen saver which is causing the Configure.Screen to
crash as other screen saver programs I've tested appear to work
effectively.

> > The program appears to run error free with its origin set in
> > bottom left hand corner of screen if REMmed out. Is there a CLI
> > command I could try instead?

> Although not listed in the "don't use under the Wimp" keywords,
> ORIGIN affects the entire system and all running applications:
> moving the origin to the centre of the screen could result in
> applications getting coordinates that they don't expect (although
> they shouldn't crash as a result).

Makes sense but how frustrating! It means I would have to spend
endless hours editing several programs to cope with 0,0 co-ordinates.
In my ignorance I thought this would be simple to do. Many of the
programs are from Drag'nDrop's 55 Micro Books.

> Since moving the origin is just a numerical nicety, can the code
> not be changed to work using (0,0) in its more usual location?

Answered above.

All of my test programs complete their drawing rapidly but some cause
the Configuration.Screen application to crash. I think I might have to
put the polling routine/graphic program onto a site where I can ask
you or others to have a look at the coding. At the moment I don't have
a website where I can do this - I'll try and sort something out. In
the meantime I'll try and understand the Wimp polling - someone said
it was easy - I don't think so :-(

Richard

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web