Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1061
| From | Rik Griffin <nospam@denbridgemarine.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Nested window question |
| Message-ID | <4ed09c3752.rik-news@iyonix.elements> (permalink) |
| References | <6fb1233652.rik-news@iyonix.elements> <b866323652.martin@bach.planiverse.com> <d0d70569-6629-4e75-a770-9750106f457d@p9g2000vbb.googlegroups.com> |
| Date | 2011-11-25 09:50 +0000 |
In message <d0d70569-6629-4e75-a770-9750106f457d@p9g2000vbb.googlegroups.com>
Gerph <gerph@gerph.org> wrote:
> lots of interesting stuff
Thanks for all that info, I shall digest it at length.
For the record, the layout I'm trying to achieve is this:
+------------------------------------+
| window A title bar |x|
+----------------------------------+-+
| |^|
| ||| scroll bar (window C)
| window B |||
| |V|
| +-+
| |ƒ| window A's resize icon
+----------------------------------+-+
Whereby window A can be resized (hence resizing the nested window B), and
the scroll bar scrolls B, which to the user simply looks as though it is
A's work area. The twist is that B is a toolbox gadget that's implemented
as a nested window, eg a text area.
It's relatively straightforward even with the gadget in there, as long as
the gadget supports the Gadget_MoveGadget method, and also some way of
obtaining the actual ObjectId of its window object (eg
TextArea_GetWindowId).
On an OpenWindow request for A, set the gadget's BBox to cover A's work
area.
Then, window C's extent (ie the scrollbar) is set to match that of the
gadget's window.
On an OpenWindow request for C, update the gadget's window's scroll offset
as well.
Now to implement ScrollRequests! Thanks again for the info.
--
Rik Griffin
Standard disclaimer, not speaking for anyone but myself, blah blah
(Reply-To may be broken: use rik dot griffin at denbridge marine dot com)
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Nested window question Rik Griffin <nospam@denbridgemarine.com> - 2011-11-22 13:11 +0000
Re: Nested window question Martin Wuerthner <spamtrap@mw-software.com> - 2011-11-22 16:51 +0100
Re: Nested window question Rik Griffin <rik.griffin@btinternet.com> - 2011-11-23 13:54 +0000
Re: Nested window question Gerph <gerph@gerph.org> - 2011-11-24 13:55 -0800
Re: Nested window question Rik Griffin <nospam@denbridgemarine.com> - 2011-11-25 09:50 +0000
csiph-web