Hi all, I believe the problems I was having for the last month with my mail from the lists being blocked has finally been solved, so now I'm free once again to pick your brains! <g> I'm using a DBaware TreeView in an application that is set to alClient in the left pane of a TSplitter. The Right pane holds a TListview. Also, just above both the Treeview and the Listview I have toolbars with buttons on them. My problem is with the horizontal scrollbar of the Treeview. First, there are no published properties for the scrollbars in the Treeview. They simply appear and disappear automatically as required, and most of the time this feature works quite well. However in this one instance the horizontal scrollbar does not! When the form first appears on screen, it does so at a height and width set by the user and saved in an inifile. The splitter is set to divide the form's width in half so that the Treeview and Listview are both of the same approx width. And at this width, no horizontal scrollbar appears in the TreeView as all it's node captions are well within it's boundaries. A button on the toolbar above the treeview, when clicked, resets the forms width and height to their Minimum Constraint values, both of which are quite small allowing ONLY the TreeView's toolbar to be seen. Clicking the button a second time resets the form's width and height back to it's previous, normal width and height settings so that again the full treeview, Listview, and both toolbars are visible once more. However now, even though the horizontal scrollbar is not needed again, it still shows! And this is true even if I set the width of form so that the Treeview is 4 times wider than necessary! So it appears that when I minimize my form down to it's MinWidth Constraint, even though the Treeview is not visible, it's horizontal scrollbar is being activated. And once activated, the only way to get it to disappear again is by manually adjusting the width of the Treeview via the Splitter position, first moving it so the treeview width requires a horizontal scrollbar, and then back to it's normal setting where the horizontal scrollbar isn't necessary again! Moving it directly so the Treeview is even wider does not get rid of it either! I've tried setting and then resetting the splitter's position as just described, in code when the Form's width is reset to normal again, but that doesn't get rid of the scrollbar. It seems only to work if one does so manually, so I don't know what else I might try to get rid of it. And the ONLY published properties having anything to do with scrolling is the ScrollBy property which takes two parameters, an x and y integer. I tried setting these to 0 but that does nothing either. Any ideas would be helpful!
from Robert Meek dba Tangentals Design CCopyright 2006 Proud to be a moderator of "The Delphi Lists" at elists.org (["An unused program is the consequence of a higher logic!", nil]) As written in The Compendium of Accepted Robotic and Surrlogic Theorems Used in the Self Analysis of Elemental Positronic Pathways...1st Edition Revised _______________________________________________ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi