From: Stephen D. <st...@da...> - 2002-11-06 14:09:27
|
On Wed, 6 Nov 2002, Takaaki Tateishi wrote: > Hello, > > At Tue, 5 Nov 2002 14:04:20 +0000 (GMT), > > Now Browser_ automatically adds a horizontal scrollbar if the item_widths > > exceed the size of the browser. The user can now scroll the browser > > left-right. > ... > > I want to get the header widget to redraw when the browser is scrolled - > > I don't exactly understand your trouble. > After you call Browser_#has_scrollbar(Browser_::BOTH), a scrollbar is > automatically added if the item_widths exceed the width of browser. > Of course, the browser can be automatically scrolled if you scroll the > scrollbar. So I think you don't need to redraw. > > I checked with the following scripts. Hi Takaaki, My problem isn't with the handling of horizontal scroll in the browser_ itself - that works fine and automatically. The problem is that I have a second widget that also needs to be redrawn if the browser's horizontal scroll changes. The 2nd widget is a heading line, also allowing dragging of columns and column widths. If the browser is scrolled across then I need to draw the heading line similarly scrolled. I took your test script and expanded it to illustrate my problem. In my test I want the "Hposition is .." at the bottom to be redrawn whenever the browser scroll changes. I detect the change in the browser correctly , but calling footer.redraw and nothing happens. OTOH, if you hide and re-show the window the "Hposition" footer will be correctly redrawn. Regards, Steve |