--- In [email protected], "Jamie L. Mitchell" <[EMAIL PROTECTED]> wrote: > I have a form with a scrollbox.
[Cut . . .] > This works pretty well. However, you must click on a > control owned by the box before the handlers actually > get called. It does not seem to matter whether the > control clicked on is enabled or not; however, no > click, no wheel action. > > I would like to make the wheel act the way it does > in Office products or in the browser: i.e. if the mouse > cursor is directly over the scrollbox, or a control > owned by the scrollbox, then the scrollbox > gets the wheel up and down messages. You should not > need to establish the cursor in an owned control before > the wheel works on any container or control with a scrollbar. In the OnMouseMove event handler for the scrollbox put the following code: sbxStdArgs.SetFocus;. This produces the effect you want, unless it is essential for your purpose for the scrollbox not to receive focus: I know of no way of doing it in that case. I hope this helps, Michael Davis ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

