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


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

Re: Nested window question

From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Nested window question
Date 2011-11-22 16:51 +0100
Organization MW Software
Message-ID <b866323652.martin@bach.planiverse.com> (permalink)
References <6fb1233652.rik-news@iyonix.elements>

Show all headers | View raw


In message <6fb1233652.rik-news@iyonix.elements>
          Rik Griffin <nospam@denbridgemarine.com> wrote:

> Imagine an application with a window, within which is nested another
> window. Lets call the parent window 'A' and the nested child 'B'.

> I want A's scroll bar[s] to scroll window B, without scrolling window A.
> They'd both have to have the same extent in the relevant direction, but
> that's easy enough to arrange.

> Is this possible, and if so can someone give me a clue how to go about it?

You can do that by creating A without a scroll bar and adding another 
nested window C that is just a scroll bar located at the position 
where A's scroll bar would normally be. Then, when you get open (or 
scroll) requests for C, you open both C and B at the given scroll 
position.

-- 
Martin
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
        RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------

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


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