Re: setting size and position of window

2011-03-31 Thread Dave Symes

 On Wed, Mar 30, 2011 at 02:04:12AM +0100, Jim Nagel wrote:
  can anybody suggest a trick whereby i could make a Netsurf window open 
  at a certain size and position on screen, to display a local file?

Isn't that what Netsurf does with...
Make the NS window the size you want it, move it to the position you want
it, then do...
Menu  Display  Window Set as default position.

Obviously my hand is now smelly and brown as I usually get hold of the
wrong end of the stick.  ;-)

Dave

-- 

Dave Triffid



Re: setting size and position of window

2011-03-31 Thread Steve Fryatt
On 31 Mar, Jeremy Nicoll - ml netsurf wrote in message
mpro.lixhsp006nyd70...@wingsandbeaks.org.uk.invalid:
 
 Of course there's a RO commandline command; how do you think netsurf gets
 started? (Look in !Netsurf.!Run to find out).   Whether it understands
 arguments is a slightly different question...

Untried, but a quick glance at the source code suggests that the RISC OS
front-end should.

-- 
Steve Fryatt - Leeds, England Wakefield Acorn  RISC OS Show
  Saturday 16 April 2011
http://www.stevefryatt.org.uk/   http://www.wakefieldshow.org.uk/



Re: setting size and position of window

2011-03-30 Thread Jeremy Nicoll - ml netsurf
Jim Nagel nets...@abbeypress.co.uk wrote:

 can anybody suggest a trick whereby i could make a Netsurf window open 
 at a certain size and position on screen, to display a local file?

If NS itself can't do that, you should be able to manage it by putting the
command to have NS display the page in an Obeyfile, followed perhaps by a
short delay, followed by a command to move and size the window as required.

The latter part can be done with WO_MoveWind commands, eg: 

  *WO_MoveWind AntiSpJN AntiSpJN Summary 222 720 1254 1164

(where the parameters are app-name, window-title, and the x0 y0 [x1 y1]
coordinates of the lower left [and optionally also upper right] corner of
the window)

implemented by Druck's 'WindOpen' module (from the Armclub website). 


In the past I've run Obey files which issued a different WO_... command, to
produce a list of the appname/title/position of all currently displayed
windows, and wrote it to a file on the RAM disk.   The obey file then
contained a WaitUntil (by Vince Hudd, IIRC) command to wait for the list
file to get written to, then ran another program which read the file.  It
pattern-matched the appname/title parts of the currently displayed windows
and for those that matched certain criteria issued WO_MoveWind commands for
them quoting the precise appname/title combinations of those windows.

HTH
 
-- 
Jeremy C B Nicoll - my opinions are my own.



Re: setting size and position of window

2011-03-30 Thread Tim Hill
In article 0a05d4bb51@nails.abbeypress.net, Jim Nagel
nets...@abbeypress.co.uk wrote:
 can anybody suggest a trick whereby i could make a Netsurf window open
 at a certain size and position on screen, to display a local file?

 the page in mind is the control panel for my networked monsterprinter. 
 it's useful to have it handy during a print job without taking up too
 much screen space.

Alternatively, if you have a tailored browser homepage (I use the same
one across all browsers on all OSes on my local network) you could
include an iframe of the appropriate size and position containing your
printer's home page. I use one here to include a local webcam which
'refreshes itself' but it could just as easily hold any page, local or
otherwise.

It can be found directly here: http://42.tjrh.eu/ when Myonix is up.
(i.e. it's not a copy, it's my actual homepage here served by WebJames)

Warning: some people will hate this page with a vengeance. At times I do.
It may pass the validator but If you are easily offended by too much
content, an over-use of tables for layout, unnecessary transparency,
garish background images and some links which seem simply broken, walk
away now. Thank you. It has been gestating since 2004 but has grown into
a ratty toddler. ;-)

It is interesting to use a mainstream browser alongside NetSurf to see
the differences in rendering. Not many, really, except the lack of
opacity in NetSurf's CSS and its occasional extra line feed in table
cells. That, and you miss the google ads included by using a javascript
script. Shame.  ;-)

-- 
Tim Hill
..
www.timil.com




setting size and position of window

2011-03-29 Thread Jim Nagel
can anybody suggest a trick whereby i could make a Netsurf window open 
at a certain size and position on screen, to display a local file?

the page in mind is the control panel for my networked monsterprinter.  
it's useful to have it handy during a print job without taking up too 
much screen space.

-- 
Jim Nagelwww.archivemag.co.uk