Thread View: borland.public.delphi.vcl.components
1 messages
1 total messages
Started by Serge
Tue, 01 Feb 2000 00:00
TTreeView: no repositioning desired when sorting
Author: Serge
Date: Tue, 01 Feb 2000 00:00
Date: Tue, 01 Feb 2000 00:00
30 lines
1509 bytes
1509 bytes
Hello, I got the following problem (Delphi 4, Windows NT): I got a Treeview, with rather large labels. This is no problem, since tooltips are activated. But every time I start an TTreeview.AlphaSort the Treeview gets repositioned, more exactly: The focused node will be left-aligned (only its text, not the button) to the Treeviews left side. But I do not want to have a scroll effect at all! It seems, that this is a Windows behavior, since within the sorting routines is obviously no MakeVisible or any similar call. Seeking Possible solutions: - Does someone know how to prevent this ? - One workaround might be to retrieve the Scroll-Offset before and after the sort command, and then repositioning the client area via ScrollBy or so. Where do I get this offset ? can I get the HScrollBar from somewhere ? Thanks Serge
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads