Page 1 of 1

Wheel button behaviour

Posted: Tue Nov 08, 2005 12:03 pm
by modicr
Hello!

I'm testing sample testbrow.prg with wheel mouse.
Scrolling down/up is working ok until I move mouse
over horizontal scrollbar. After that, when I move
wheel button, browse is scrolling right/left.

I compared this behaviour with other applications
and I noticed that for example Opera has the same
behaviour but Microsoft apps (IE, Word, Excel, Explorer)
always interpret wheel moving as scrolling down/up.
Is it possible to customize this behaviour (I prefer
microsoft way of scrolling)? Can I do it myself or FW lib
must be changed?

Best regards, Roman

PS. I noticed that this sample does not work
with 16-bit Clipper FW (when I move wheel
in whatever direction, browse is always scrolling
down). Do you plan to remove this bug?

Posted: Tue Nov 08, 2005 12:23 pm
by Antonio Linares
Roman,

The behavior you described has been coded that way. When you are close to the horizontal scrollbar, then we use the wheel to move left and right. The source code is in Class TWBrowse and it can be easily modified.

In 16 bits there is no support for mouse wheel. It only report movement in one direction. No way to fix it.

Posted: Tue Nov 08, 2005 1:32 pm
by modicr
Hello!

That was easy (method MouseWheel)

> In 16 bits there is no support for mouse wheel. It only report movement in one direction. No way to fix it.

I expected something like that ...

Thanks, Roman