[haiku-development] Re: MMW bug

  • From: Ralf Schülke <teammaui@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 24 Apr 2008 21:16:16 +0200

On Thu, 24 Apr 2008 18:52:14 +0200, Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx> wrote:


Hi Stephan!

Am 24.04.2008 um 17:17 schrieb Stephan Assmus:


Ralf Schülke wrote:
On Wed, 23 Apr 2008 23:26:55 +0200, Stephan Assmus <superstippi@xxxxxx>
wrote:

Ralf, I tried to look into this bug. The source indicates there is a
problem with showing/hiding views. What exactly is the behavior that
you observe and what do you expect?

Remove this line from PairsWindow.cpp

        fPairsView->Invalidate();

Then start the game, click on a button and it will be hidden, a image will appear at its place, click on another button to hide it too and to display another image. If you got two identical images repeat the steps. Then wait and don't click any buttons. After a timeout of about 2 seconds the buttons should be shown again and the images should we hidden. However in Haiku they are not displayed again, unless you add the line from above.

If have tested this on Parallels only and it can be reproduced every time.


So, i write a test app to see the problem.
in the MmwWindow.cpp i have outcomment the workaround, it must run without this,
this is what zeta do (i hope r5 too):
        //fView->Invalidate();

the test app work so:
open in terminal to see printf strings!

- click button1 , button2 is Show() and BMessageRunner starts ( 10 sec).
- after 10 sec, button i will Hide()
- click button2 resets the button (show button1 and hide button2)

So the big question is, why need haiku Invalidate(); in the term of BMessageRunner and
zeta not?
It this a Bug ore Not ?

MMW TestApp url:
http://tm.kaldience.com/dir/members/stargater/CPP/MMW_TestApp.zip

Ralf



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Other related posts: