I am trying to update another control that must be redrawn precisely to line up with elements that are within the scrollable area. When I get the scroll events or other events I use getRect() to get coordinates or my scrollable area relative my main application. Unfortunately, the results of getRect() do not line up yet, causing me to draw at the incorrect position on the outer control.
--- In [email protected], "rueter007" <[EMAIL PROTECTED]> wrote: > > what exactly are you trying to do after the scroll event? > > --- In [email protected], "toofah_gm" <garym@> wrote: > > > > The scroll event fires when scrolling occurs, but before the child > > content has shifted. Here is the documentation: > > > > 'At the time when this event is dispatched, the scrollbar has been > > updated to the new position, but the container's child objects have > > not been shifted to reflect the new scroll position.' > > > > What events are available to listen to so that I will know that the > > content has shifted? I have tried listening to the UPDATE_COMPLETE > > event at various levels, but this doesn't seem to work for me all the > > time either. I am immediately calling getRect() on one of the child > > objects to get it's position relative to objects higher in my > > application. At the time I make this call, the returned rect is not > > always the updated rect that reflects the scroll that has just occurred. > > > > Thanks, > > Gary > > >

