1. Scrollbar weird action

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?

new topic     » topic index » view message » categorize

2. Re: Scrollbar weird action

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Scrollbar weird action

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 .... ??

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu