dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #14351] BeginInvoke does nothing when called from


From: Peter Flaig
Subject: [Pnet-developers] [bug #14351] BeginInvoke does nothing when called from non-toplevel window
Date: Thu, 1 Sep 2005 05:31:44 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

Follow-up Comment #1, bug #14351 (project dotgnu-pnet):

BugFix:

Move the following code from Xsharp.TopLevelWindow to
Xsharp.InputOutputWidget:

internal override void DispatchEvent(ref XEvent xevent)
{
        switch((EventType)(xevent.xany.type__))
        {
                ...     
                
                case Xsharp.Events.EventType.ClientMessage:
                {
                        if(xevent.xclient.message_type == 
dpy.internalBeginInvoke)
                        {
                                
OnBeginInvokeMessage((IntPtr)xevent.xclient.l(0));
                        }
                }
                break;
        }
        base.DispatchEvent(ref xevent);
}

/// <summary>
/// <para>Method that is called when a custom "BeginInvoke" message comes in
/// changes.</para>
/// </summary>
protected virtual void OnBeginInvokeMessage(IntPtr i_gch)
{
        // Nothing to do in this base class.
}


And insert this in System.Drawing.Xsharp.DrawingWindow:

protected override void OnBeginInvokeMessage(IntPtr i_gch)
{
        if( sink != null )
                sink.ToolkitBeginInvoke(i_gch);
}

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14351>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]