Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Harrison's Postulate: For every action, there is an equal and opposite criticism.


devel / comp.sys.acorn.programmer / Re: Wimp_SetExtent (&400D7)

SubjectAuthor
o Re: Wimp_SetExtent (&400D7)narrowb...@gmail.com

1
Re: Wimp_SetExtent (&400D7)

<9f8af0bb-ff6e-4398-af6e-0de4b957bae7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=97&group=comp.sys.acorn.programmer#97

  copy link   Newsgroups: comp.sys.acorn.programmer
X-Received: by 2002:a05:622a:514:: with SMTP id l20mr7936716qtx.187.1644791642357;
Sun, 13 Feb 2022 14:34:02 -0800 (PST)
X-Received: by 2002:a37:f713:: with SMTP id q19mr5752120qkj.256.1644791642176;
Sun, 13 Feb 2022 14:34:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.acorn.programmer
Date: Sun, 13 Feb 2022 14:34:02 -0800 (PST)
In-Reply-To: <4870560987%sbrodie@acorn.com>#1/1>
Injection-Info: google-groups.googlegroups.com; posting-host=82.132.228.59; posting-account=LbMuQAoAAACJGPTX3mKanpe77qoH0t98
NNTP-Posting-Host: 82.132.228.59
References: <na.7ab9b8486f.a70160everymans@argonet.co.uk> <486FE03048%sbrodie@acorn.com>
<na.264f8e4870.a70160everymans@argonet.co.uk> <4870560987%sbrodie@acorn.com>#1/1>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f8af0bb-ff6e-4398-af6e-0de4b957bae7n@googlegroups.com>
Subject: Re: Wimp_SetExtent (&400D7)
From: narrowboatpaul@gmail.com (narrowb...@gmail.com)
Injection-Date: Sun, 13 Feb 2022 22:34:02 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 45
 by: narrowb...@gmail.com - Sun, 13 Feb 2022 22:34 UTC

On Tuesday, August 4, 1998 at 8:00:00 AM UTC+1, Stewart Brodie wrote:
> In message <na.264f8e4870....@argonet.co.uk>
> Everymans Wine <ever...@argonet.co.uk> wrote:
> > In article <486FE03048%sbr...@acorn.com>, Stewart Brodie
> > <sbr...@acorn.com> wrote:
> > :) I am aware of with Wimp_SetExtent is that the extent you set must
> > :) encompass
> > :) the currently visible work area of the window.
> >
> > So hang on a mo... I can't make a window any _bigger_ than it already is,
> > only smaller. In that case I would have to delete the window and recreate
> > it with a larger work area if I wanted a bigger one.
> No, the other way around. If you want to make it smaller so that the
> currently visible work area does not lie within the window extent, then you
> have to re-open the window at an appropriate smallness or close then re-open
> it etc.
> If you are making the window bigger, then there is no problem.
> I forget if you mentioned this before, but if you do have access to the PRMs,
> then you should re-read page 3-164 and 3-165 (and possible pages 3-10 to 3-14
> which describe the layout of windows).
> > To make it clear:
> >
> > -My window has a vertical scroll bar.
> > -When it is first opened the widow is set to a length and the inner part of
> > the vertical scroll bar is at full length (i.e. you can't scroll)
> > -If someone drags an app to the window the _area_ of the window should be
> > increased but the window doesn't get any bigger on screen, the scroll bar
> > is just redrawn to show that you can now scroll to another part of the
> > window. This is utillised to great effect in VTi's Voyager email and
> > newsreader apps but I can't get it to work. Is it possible?
> Yes - it's the simplest form of extent changing there is. If you take the
> top-left hand corner of the document as (0,0) (which is the commonest thing
> to do under RISC OS)with negative Y co-ordinates going down the screen and
> positive X co-ordinates running to the right, then you need to decrease the
> minimum Y.
> BASIC code to increase the vertical size of such a window by 40 units:
> DIM winfo_block% 92
> !winfo_block% = window_handle%
> SYS "Wimp_GetWindowInfo", ,winfo_block% + 1
> winfo_block%!48= (winfo_block%!48) - 40
> SYS "Wimp_SetExtent",window_handle%,winfo_block%+44
> Hmm. maybe I should have used something more readable. Anyway, that's it.
>
Have to say have just found this old discussion thread very interesting an informative.

Just goes to show how useful Google Groups can be when looking for examples!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor