cathy@cs.glasgow.ac.uk (Catherine Anne Wood) (11/15/89)
A week ago I started what I thought would be an afternoons work at the most. I decided to implement a generic scrollable window. Regardless of what was created in it, all its contents would scroll. A week lateer I have decided it is impossible in NeWS (version 1.1 anyway) yet common sense tells me it can't be ... it must be possible to have scrollable windows, surely? Let me explain the problem a bit more. A scrolling canvas is possible, just translate the canvas, and anything drawn on the canvas gets redrawn in the correct position - but any sub canvas of the scolling canvas do not move i.e buttons, textfields, all liteitems. Thus if you have drawn a bounding box rouns some items, the background canvas will scroll, positioning the box in the correct place, but the items in the window do not move. I have tried all sorts of other solutions, like makeing the ClientCanvas of the window, bigger than the window but clipped to the window size, and simulating scrlling by moving the ClientCanvas - works in theory, but there is a strange implementation "feature" in NeWS that does not allow canvases to protrude above or to the left of its parent canvas. It thinks it can, but it just "bangs" against the top or left border on the screen. This may all sound a bit confusing - but basically what I am asking is has anyone out there found a way of scrolling liteitems together with background graphics ? If so please mail me ... any ideas or parts of solutions would be helpful. It must be possible, have I missed something obvious? Thanks in advance, Cathy -- ARPANet: cathy%cs.glasgow.ac.uk@nsfnet-relay.ac.uk JANET: cathy@uk.ac.glasgow.cs UseNet: mcvax!ukc!cs.glasgow.ac.uk!cathy Mail: Cathy Wood, Computer Science, 17 Lilybank Gardens, GB-GLASGOW G12 8QQ : 041 339-8855 ext 6040