[Mono-osx] MWF on macosx
Geoff Norton
gnorton at novell.com
Thu Sep 4 12:39:19 EDT 2008
This patch looks fine, please commit to head and branch.
-g
On Thu, 2008-09-04 at 18:27 +0200, David Suarez wrote:
> 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
>
>
>
>
>
> www.plasticscm.com
>
>
>
>
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list