teetree v2 again vertical scrolling

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
heiner4849
Newbie
Newbie
Posts: 6
Joined: Tue Mar 01, 2005 5:00 am

teetree v2 again vertical scrolling

Post by heiner4849 » Wed Jan 10, 2007 8:37 am

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

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Jan 10, 2007 4:04 pm

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.

heiner4849
Newbie
Newbie
Posts: 6
Joined: Tue Mar 01, 2005 5:00 am

scrolling with the wheelmouse

Post by heiner4849 » Wed Jan 10, 2007 4:48 pm

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

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Sun Jan 14, 2007 1:07 am

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.

Post Reply