Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Howto scroll TreeView all the way up after FullExpand ?

56 views
Skip to first unread message

Robby

unread,
Aug 8, 2000, 3:00:00 AM8/8/00
to

Hello(again),

I created a procedure that generates a large tree with is extracted from a
DB, after the generation, i give a fullexpand to see the whole tree.

The problem is that in most of the cases the tree is to large to view on
screen, this is no problem, but on a fullexpand, the component automatically
scrolls to the bottom of the tree. This is just what i dont want it to do.

Is there anny way to prevent it from doing this, without losing the ability
to scroll when it is created or is there a way to let it scroll to the top.


Thnx in Advance...

M.H. Avegaart

unread,
Aug 8, 2000, 3:00:00 AM8/8/00
to
Use:

if TreeView1.Items.Count > 0 then
begin
TreeView1.Items.BeginUpdate;
try
TreeView1.FullExpand;
TreeView1.Selected := TreeView1.Items[0];
finally
TreeView1.Items.EndUpdate;
end;
end;


"Robby" <n...@spam.4me> schreef in bericht
news:8moiph$1atn$1...@buty.wanadoo.nl...

0 new messages