[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TaskMaster and Scrolling



Anyone experienced this strange bug when using taskmaster?

I would create a new window by NewWindow2 with a windparam1 record.  I set
the update routine to a custom routine that copies a screen dump picture
from a memory buffer into the window (using PPToPort). (this is a bit
simplified)

The problem is that when I click on the horizontal and vertical scroll
controls of the window, the picture won't respond (i.e. scroll).  I stepped
through the code using the Orca/C v1.3.2 debugger and there seems to be
nothing wrong.  But running the code at full speed and this bug pops up.

Taskmaster is set to handle scrolling and the frame bits for the scroll bars
are set.  Scrolling only seems to work after I click on the drag region.
If I just click on the window to make it active (anywhere but title region)
or resize the window, the bug pops up its ugly head. :(

I've patched this bug by putting a function in the idle part of the event
loop that grabs the front window calls BringToFront().

If someone could please explain to me WHY? about this bug or how to SQUASH
it, please do.

internet: jlee@bonnie.ics.uci.edu

> It we could only write code perfectly without losing sleep or hair.  <
> We would be much happier people.  But alas, we're human and bound to <
> lost our hair and sleep.                                             <
> -- Deep Delvings from the deranged mind of Joseph Lee.               <