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


Groups > comp.sys.acorn.programmer > #142

Re: Plotting Jpegs in Toolbox Window

From Michael Gerbracht <nospam@cityweb.de>
Subject Re: Plotting Jpegs in Toolbox Window
Newsgroups comp.sys.acorn.programmer
Date 2011-04-03 12:50 +0100
Message-ID <51be1e7d34nospam@cityweb.de> (permalink)
References <c9e41319-1e35-4e86-afb6-26b46e4a1852@u12g2000vbf.googlegroups.com>
Organization None

Show all headers | View raw


Mister Ron <mrronman@googlemail.com> wrote:
> has anyone got a guide to plotting jpegs into a toolbox window.
> I can plot to the screen ok but don't know how to get the toolbox will
> redraw the jpeg when the window is covered over.

In ResED you can define that a window requires help of the application to
redraw it (Other Properties -> untick Auto-redraw).
If you have done this RISC OS will generate a toolbox event when part of the
window has been hidden and needs to be redrawn now. Basically RISC OS will
give you the coordinates of a number of rectangles you need to redraw.

You can also put the jpeg into a draw file and render it instead - this might
be easier.

You can probably find an example application in Basic which shows a draw
file. I can remember that I had it somewhere but can't find it at the moment.
Hopefully someone here can point you to it.

Michael

-- 
Please replace nospam by m.gerbracht when replying by e-mail

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Plotting Jpegs in Toolbox Window Mister Ron <mrronman@googlemail.com> - 2011-04-02 14:33 -0700
  Re: Plotting Jpegs in Toolbox Window Michael Gerbracht <nospam@cityweb.de> - 2011-04-03 12:50 +0100
    Re: Plotting Jpegs in Toolbox Window Gavin Wraith <gavin@wra1th.plus.com> - 2011-04-03 15:12 +0100
      Re: Plotting Jpegs in Toolbox Window Christopher Bazley <cs99cjb@gmail.com> - 2011-04-13 14:41 -0700
  Re: Plotting Jpegs in Toolbox Window Mister Ron <mrronman@googlemail.com> - 2011-04-18 12:07 -0700
    Re: Plotting Jpegs in Toolbox Window Mister Ron <mrronman@googlemail.com> - 2011-04-18 13:21 -0700
      Re: Plotting Jpegs in Toolbox Window Martin Wuerthner <spamtrap@mw-software.com> - 2011-05-01 11:21 +0200
        Re: Plotting Jpegs in Toolbox Window Mister Ron <mrronman@googlemail.com> - 2011-05-01 05:06 -0700
  Re: Plotting Jpegs in Toolbox Window Gerph <gerph@gerph.org> - 2011-05-01 15:25 -0700

csiph-web