I use a TreeView and in the OnChange I just set a flag to say that the
datasets need updating. A timer looks at the flag every 50ms and does the
update then. (the 50ms interval is reset when the flag is changed). The
50ms delay is the same as the MS Explorer delay.
This also means that if you scroll quickly through the items in the tree, it
doesn't update until you stop.
----- Original Message -----
From: Aaron Scott-Boddendijk <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Friday, December 31, 1999 11:39 AM
Subject: Re: [DUG]: Tree view's
> > I'm trying to use the standard TTreeview as a sort of menu that controls
> > what is displayed in two associated db grids. When the user clicks on a
> > node in the tree, the OnChange event is called and I refresh the grids
> with
> > new data.
> >
> > Now the problem is, the grids nderlying query can take a few seconds so
I
> > want to display a floating wait message window.
> >
> > This causes all sorts of weird problems with the treeview that I can't
> > really explain. I think it doesn like losing focus during the OnChange
> > event. I've tried using OnMouseUp with the same result.
> >
> > Has anyone else seen this and is there another way I can do what I want?
>
> We use standard TTreeviews and do processing that causes focus changes and
> window displays
> during the onChange. This is not the cause of your problem. We will
likely
> need more detail or
> possibly even code snippets to ascertain the cause of the problem you're
> having...
>
> --
> Aaron@home
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz