[haiku-appserver] Re: progress and status

  • From: Stefano Ceccherini <burton666@xxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: 18 May 2005 10:51:50 -0000

Hi,

>       Well, that would be the normal way of doing things.
>       I'm thinking of apps that wait a B_MOUSE_UP to call >::MouseUp() to
>finish some processing, and GetMouse() simply dropping these >message does
>not contribute to the overall application heath.

>       Yes, I definitely don't like this method! It's >dangerous!

Hmm maybe you didn't understand the matter completely...
Basically, GetMouse() is the "old" way of doing things (which we still have to 
support, though): BViews which are children of BWindows created without the 
B_ASYNCHRONOUS_CONTOLS flag just get MouseDown() hooks called, and, after that, 
no MouseMoved() or MouseUp() events. Every MouseDown() hook has to implement 
polling in a loop (blocking the BWindow thread). So there is nothing dangerous, 
it's just a different way of doing things :)



Stefano Ceccherini aka Jack Burton
---------------------------------------------------------------
Scegli il tuo dominio preferito e attiva la tua email! Da oggi
l'eMail di superEva e' ancora piu' veloce e ricca di funzioni!
http://webmail.supereva.it/new/
---------------------------------------------------------------


Other related posts: