[Mono-osx] MWF on macosx

David Suarez listasdavid at codicesoftware.com
Thu Sep 4 12:27:28 EDT 2008


Following on this, I found a little issue with WM_ACTIVATE messages being
sent twice on window load. One when the window is created and displayed for
the first time (as a response to kEventWindowActivated) and another one when
the window is made visible. 

 

This was causing weird effects on our GUI, for instance calling twice the
OnVisibleChanged event in our main form so I have this patch that checks
whether the window is already the active one and the discards other
activates. It also eliminates some flicker on form loading (not all, though)

 

Tell me what you think

 

 

Cheers, 

 

David Suarez

www.plasticscm.com

 

 

 

From: mono-osx-bounces at lists.ximian.com
[mailto:mono-osx-bounces at lists.ximian.com] On Behalf Of David Suarez
Sent: Tuesday, September 02, 2008 10:57 AM
To: mono-osx at lists.ximian.com
Subject: [Mono-osx] MWF on macosx

 

Hi all,

 

I've been diving into the MacOS WinForms implementation for the last four
days, getting familiar with all the code there before trying to find some
issues we have.

 

I've seen there are some problems with the hidden panels that are made
visible in runtime. Basically their inner controls are correctly drawn and
then suddently hidden. I'm still trying to figure out why.

 

I've put some debug code to learn how it works and have catched a huge
number of WM_NULL messages being processed on Mac, while none shows up on
Windows or Linux. I found why this happens, related to the WM_PAINT /
WM_NCPAINT messages being issued by the addexpose method instead of the
kEvent handler. Is there any chance that the underlying carbon controls are
not always mapping their visible state to that set by MWF?

 

Ok, I'll continue working on it so I hope I'll be sending some fixes soon.
Of course, any pointers will be appreciated! :-)

 

Regards,

 

dave

 

 

 <http://www.plasticscm.com> www.plasticscm.com

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20080904/2075f90d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CarbonActivateWindows.patch
Type: application/octet-stream
Size: 394 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20080904/2075f90d/attachment-0001.obj 


More information about the Mono-osx mailing list