Page 1 of 1

teetree v2 again vertical scrolling

Posted: Wed Jan 10, 2007 8:37 am
by 7737124
Vertival scrolling stops at the position of the first shape and ends at the position of the last shape. It's OK.

But if there is/was anything selected within the tree, it doesn't stop anymore and runs out of the visible part.

This seems to be a bug in teetree v2 (IDE is Delphi 5).

Posted: Wed Jan 10, 2007 4:04 pm
by Tom
Hi,

How are you scrolling vertically? With the scrollbars or with the wheelbutton?

This is not a bug: 'running out of the visible part' allows people to add shapes anywhere.

It depends how you have configured the scrolling of the wheel:


wnSelection: scrolling the wheel will change the selected node

wnVertScroll: scrolling the wheel will scroll the page (indefinitely) (if tree has focus)

I think you are experiencing the following:

You run the application
You start scrolling with the wheelmouse: -> vertical scrolling stops

You then select a shape
You start scrolling with the wheelmouse: -> vertical scrolling does not stop

The difference is the fact that in the second way, the tree has the focus.

To have the second behavior, you do not even have to select a shape. A click somewhere on the tree panel would give the same result.

Would you like to have the first behavior also if the tree is in focus?


Regards,
Tom.


Regards,
Tom.

scrolling with the wheelmouse

Posted: Wed Jan 10, 2007 4:48 pm
by 7737124
Hi,
thank you for your reply.
Indeed we want the first behavior also if the tree is in focus. Our user are not allowed to add shapes, because the tree is a result of a database-query but they want to scroll with the wheelmouse.

How can I do this?
Sincerly

Posted: Sun Jan 14, 2007 1:07 am
by Tom
If you want to keep the vert. scroll functionality with the mouse, this isn't possible by changing a property. You could change the global variable TreePageScrollQuantity to 0 to get the behavior you require.

Regards,
Tom.