Re: setting size and position of window
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? Well the other frontends use the Choices values window_x, window_y, window_width, window_height for their initial window placement. These values overridden on the command line combined with the url to open should do what you need? For example: ./nsgtk --window_x 100 --window_y 200 --window_width 200 --window_height 200 http://news.bbc.co.uk opens a 200x200 pixel window at 100,200 on the screen at news.bbc.co.uk in the gtk version. If the RISC OS frontend does not support this I have no better idea, sorry. > > 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 > > -- Regards Vincent http://www.kyllikki.org/
Re: setting size and position of window
> 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
Dave Symes wrote: > Obviously my hand is now smelly and brown as I usually get hold of the > wrong end of the stick. ;-) Why's the stick been up there? -- Jeremy C B Nicoll - my opinions are my own.
Re: setting size and position of window
Vincent Sanders wrote on 31 Mar: > 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? > Well the other frontends use the Choices values window_x, window_y, > window_width, window_height for their initial window placement. These > values overridden on the command line combined with the url to open > should do what you need? > For example: > ./nsgtk --window_x 100 --window_y 200 --window_width 200 > --window_height 200 http://news.bbc.co.uk sounds promising. a look at file:///choices:www/netsurf/choices shows that the RO version does indeed use the same names for these values. but i don't know what our equivalent of your ./nsgtk command would be. in fact i don't think i've ever heard of RO commandline calls to Netsurf before. tried these with no luck: *ns *nsriscos *nsro *nsacorn -- Jim Nagelwww.archivemag.co.uk
Re: setting size and position of window
Jim Nagel wrote: > but i don't know what our equivalent of your ./nsgtk command would > be. I think that's just a typical linux command to run a program. The RO equivalent is probably *netsurf > in fact i don't think i've ever heard of RO commandline calls to Netsurf > before. 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... -- Jeremy C B Nicoll - my opinions are my own.
Re: setting size and position of window
In article , Jeremy Nicoll - ml netsurf wrote: > Dave Symes wrote: > > Obviously my hand is now smelly and brown as I usually get hold of the > > wrong end of the stick. ;-) > Why's the stick been up there? Ah well there are two answers, neither of which are appropriate for this list. ;-) Soreee! Dave -- Dave Triffid
Re: setting size and position of window
The following bytes were arranged on 31 Mar 2011 by Jim Nagel : > but i don't know what our equivalent of your ./nsgtk command would > be. in fact i don't think i've ever heard of RO commandline calls to > Netsurf before. > tried these with no luck: *ns *nsriscos *nsro *nsacorn ...Don't suppose you've tried "*Filer_Run .!Run"? The business bit of that file has a %*0 in it, which is promising. -- __<^>__ === RISC OS is a work of art. Some people adore it, === / _ _ \ === others can't see the point of it, and it's really === ( ( |_| ) ) === expensive.=== \_> <_/ === Martin Bazley ===
Re: setting size and position of window
On 31 Mar, Jeremy Nicoll - ml netsurf wrote in message : > 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/