Amiga-C (19/157)

From:rorydawson2000
Date:7 Sep 2001 at 09:29:57
Subject:[amiga-c] Scrollers in borders of GIMMEZEROZERO windows

Hi all,

I'd like to place a horizontal scroller in the bottom border of
my window (with accompanying left and right arrows) and a vertical
scroller in the right border of my window (with accompanying up
and down arrows). I've managed to achieve this by referring to
the ScrollerWindow.lha example on Aminet, however now I need to
get it to work when the window is of type GIMMEZEROZERO.

I want to use a GIMMEZEROZERO type window because there will be
gadgets in the main window area which will need to scroll (like
in a web browser) and a GIMMEZEROZERO window will solve the
clipping problems without me having to worry about layers myself
(gadgets may be partially invisible due to the page scrolling).

My problem is that I don't know how to get the gadgets into the
border when WFLG_GIMMEZEROZERO is set for the window. I understand
that the border is part of a separate layer with GIMMEZEROZERO
so this must be taken into account. If anyone can supply a
code snippet for allocating the propgclass gadgets (scrollers)
and imageclass gadgets (arrows) such that they will correctly
appear in the borders I'd be very grateful. Perhaps the quickest
way to experiment with this is to look at the ScrollerWindow
code and change the window to GIMMEZEROZERO, then show me how
to modify the existing gadget allocation tags to work with a
GIMMEZEROZERO window since at the moment I'm stabbing in the
dark and am just guessing how to do it correctly.

http://us.aminet.net/pub/aminet/dev/src/ScrollerWindow.lha

TIA!

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/