1. Scrollbar weird action
- Posted by Andy Drummond <andy at kestrel?ele.com> Jan 07, 2008
- 675 views
I have made a dummy control which includes a vertical scrollbar. At various times the thumb of the scrollbar shows crosshatched. If I setFocus back to the dummy control away from the scrollbar then I get left with a crosshatched block which does not move even when the thumb is moved up and down. If I leave focus with the scrollbar then the crosshatched block moves with the thumb. This is probably right, but I DO want to shift focus away from the scrollbar and I DO want to remove this crosshatched block. Does anyone have any ideas?
2. Re: Scrollbar weird action
- Posted by CChris <christian.cuvier at agricul?ure.gouv.?r> Jan 07, 2008
- 653 views
Andy Drummond wrote: > > I have made a dummy control which includes a vertical scrollbar. > At various times the thumb of the scrollbar shows crosshatched. > If I setFocus back to the dummy control away from the scrollbar > then I get left with a crosshatched block which does not move > even when the thumb is moved up and down. If I leave focus with > the scrollbar then the crosshatched block moves with the thumb. > This is probably right, but I DO want to shift focus away from the > scrollbar and I DO want to remove this crosshatched block. > > Does anyone have any ideas? OTOH I'd trap the w32HLostFocus event for the scrollbar and stick a repaintWindow(self) statement there. Doesn't work? CChris
3. Re: Scrollbar weird action
- Posted by Andy Drummond <andy at k?s?reltele.com> Jan 07, 2008
- 637 views
CChris wrote: > > Andy Drummond wrote: > > > > I have made a dummy control which includes a vertical scrollbar. > > At various times the thumb of the scrollbar shows crosshatched. > > If I setFocus back to the dummy control away from the scrollbar > > then I get left with a crosshatched block which does not move > > even when the thumb is moved up and down. If I leave focus with > > the scrollbar then the crosshatched block moves with the thumb. > > This is probably right, but I DO want to shift focus away from the > > scrollbar and I DO want to remove this crosshatched block. > > > > Does anyone have any ideas? > > OTOH I'd trap the w32HLostFocus event for the scrollbar and stick a > repaintWindow(self) > statement there. Doesn't work? > > CChris No. No obvious change in operation. Trouble is that most scrollbars are not scrollbar controls but Windows imitations. And though I have read my Win32 manual about scrollbars it doesn't even mention that the thumb - or scroll box as I am supposed to call it - gets a crosshatch or a coarse- grain gray effect and so I get no help from that. It seems that the thumb flashes this coarse-grain gray and BTNFACE alternately when it is active, but if you take focus away then the current state of the "gray" gets left where it is for ever. And I don't really want the effect anyway because I want the scrollbar thumb just to look like it normally does. So .... ??