Hello,

I think the same bug sometimes happens on Linux too.

Nerijus

On Thu, 17 Jul 2003 16:50:12 -0700 Vadim Zeitlin <[EMAIL PROTECTED]> wrote:

> Update of /cvsroot/mahogany/M/src/wx/generic
> In directory sc8-pr-cvs1:/tmp/cvs-serv967/src/wx/generic
> 
> Modified Files:
>         persctrl.cpp 
> Log Message:
> release mouse before showing the dialog, otherwise buttons in it might not work 
> (Windows only)
> 
> Index: persctrl.cpp
> ===================================================================
> RCS file: /cvsroot/mahogany/M/src/wx/generic/persctrl.cpp,v
> retrieving revision 1.78
> retrieving revision 1.79
> diff -b -u -2 -r1.78 -r1.79
> --- persctrl.cpp        2 Dec 2002 21:15:39 -0000        1.78
> +++ persctrl.cpp        17 Jul 2003 23:50:09 -0000        1.79
> @@ -57,4 +57,9 @@
>  #include "wx/persctrl.h"
>  
> +#ifdef __WINDOWS__
> +    #include <windows.h>
> +    #include "wx/msw/winundef.h"
> +#endif // __WINDOWS__
> +
>  #ifndef MAX
>  #   define   MAX(a,b) (((a) > (b))?(a):(b))
> @@ -1814,4 +1819,11 @@
>  
>              if ( !rc ) {
> +#ifdef __WINDOWS__
> +                // hack: we're called with mouse being captured by the list
> +                // ctrl under Windows and we must release it to allow it to
> +                // work normally in the dialog which we show below
> +               ::ReleaseCapture();
> +#endif // __WINDOWS__
> +
>                  // do show the msg box
>                  wxPMessageDialog dlg(parent, message, caption, style);




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to