Welcome! and rules
Joel on Software
VScrollBar: Am I missing something here?
I've gone and placed a VScrollbar on an image control that I'm building. I'd gotten it to play well with the mouse wheel and the page up/down keys. The problem that I've encountered now is that pressing any of the arrow keys causes the control to steal focus(?) as represented by a flashing thumb. The only way to regain control (as in, being able to use the keyboard to scroll) is to hit the tab key twice.
I've confirmed that this seems to be the default behavior by creating a new project, dropping a VScrollBar on it, running it and pressing an arrow key.
Short of rolling an extended version of this control (can't override the keypress event otherwise), any ideas?
Wednesday, May 11, 2005
Fog Creek Home