[haiku-appserver] Re: GetMouse()

  • From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Wed, 1 Jun 2005 11:55:04 +0200 (MEST)

On Wed, 1 Jun 2005, Stephan Assmus wrote:

>> Lets say you have a synchronous slider,
>> which changes the width of the window it is in. If update messages
>> aren't processed, the window will resize, but not be redrawn. A more
>> common example would be that the slider would send a message which
>> invalidates another view in the same window.
> I don't understand. If the slider is blocking the window thread in its
> MouseDown() hook, how will messages it sends be processed? The only thing
> that would get processed by the "hacky" GetMouse(), that the slider keeps
> calling, is if it direclty called otherView->Invalidate(). That's because
> _UPDATE_ messages would be the only thing that is processed additionally to
> And indeed, I remember a situation when I was not even programming myself.
> Ingo programmed an app, and somehow we didn't know about
> B_ASYNCHRONOUS_CONTROLS yet, or it was not yet available, and Ingo had to
> program his own "non-blocking" button class so that messages it causes to
> send are processed. Maybe he remembers it better. Ingo?

No, sorry, the details completely escape me. It always surprises me, how 
well you seem to recall such things, though. :-)

CU, Ingo

Other related posts: