Re: [Mono-winforms-list] [PATCH] Avoid sending MouseEnter messages when clicking

2008-08-11 Thread Ivan N. Zlatev
On Mon, Aug 11, 2008 at 3:14 PM, Carlos Alberto Cortez
<[EMAIL PROTECTED]> wrote:
> Hey Ivanz,
>
> The attached patch reverts a check in XplatUIX11.GetMessage method,
> specifically handling the X11 EnterNotify message generated when
> clicking a control (rev 101225).
>
> Basically when a control is clicked, EnterNotify events are generated
> for the container form and the control being clicked. Usually when we
> get this event we generate a WM_MOUSE_ENTER message, but in this case we
> don't need it, since it's not real pointer motion.
>
> That's why, when the EnterNotify event tell us that it's a not a real
> motion event, we have to ignore it, no matter the value of the
> window/hwnd (right now, when clicking any control, MouseEnter/MouseMove
> events are generated for the containing form, which is obviously wrong).
>
> Hopefully that was clear ;-D
>

I can't look into more detail into that this week and unfortunately I
don't remember of the top of my head what the bug involved. However,
have you verified that the patch doesn't regress Gert's test case (not
the original reporter's one) in bug 323234 (which rev 101225 was
supposed to fix)?

-- 
Kind Regards,
Ivan N. Zlatev
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-winforms-list] Plans for Cairo intergration / will ever be cairo usable with winforms?

2008-08-11 Thread Stanislav Ravas
I have an application written in c#, it is process visualisation toolkit. I 
have tried to run it on the mono on linux. There were some problems, but 
everything was fixable, except for cairo. I use cairo for all drawing. On 
windows I can use win32surface and draw onto it. I don't want to use GDI+, 
because I know cairo pretty good and it is multiplatform. 

Problem is, that I can't create win32surface on mono on linux. May be I'm 
missing something, but I think that win32surface is supported only on windows 
now. 

I have worked around this by rendering onto ImageSurface, then writing to PNG 
file and loading it back with GDI+, but it has big overhead and is very slow. 

Are there any plans to support any cairo surface on WinForms? Or is here any 
workaround? (I don't want to use GDI+ api) 

Anyway, mono is really great project and there must be hard work behind it.

Thanks, 

S.Ravas 
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-winforms-list] GTK+ rendering patch

2008-08-11 Thread George Giolfan
I am not really sure about the change in ScrollBar.InvalidateDirty. It attempts 
to reduce flicker (passing an an empty rectangle to Control.Invalidate 
invalidates the entire client area).


  

GTK+.patch.gz
Description: application/gzip
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-winforms-list] [PATCH] Avoid sending MouseEnter messages when clicking

2008-08-11 Thread Carlos Alberto Cortez
Hey Ivanz,

The attached patch reverts a check in XplatUIX11.GetMessage method,
specifically handling the X11 EnterNotify message generated when
clicking a control (rev 101225).

Basically when a control is clicked, EnterNotify events are generated
for the container form and the control being clicked. Usually when we
get this event we generate a WM_MOUSE_ENTER message, but in this case we
don't need it, since it's not real pointer motion.

That's why, when the EnterNotify event tell us that it's a not a real
motion event, we have to ignore it, no matter the value of the
window/hwnd (right now, when clicking any control, MouseEnter/MouseMove
events are generated for the containing form, which is obviously wrong).

Hopefully that was clear ;-D

Carlos.


Index: XplatUIX11.cs
===
--- XplatUIX11.cs	(revisión: 110030)
+++ XplatUIX11.cs	(copia de trabajo)
@@ -4009,7 +4009,7 @@
 	if (!hwnd.Enabled) {
 		goto ProcessNextMessage;
 	}
-	if (xevent.CrossingEvent.mode != NotifyMode.NotifyNormal && xevent.CrossingEvent.window != hwnd.client_window) {
+	if (xevent.CrossingEvent.mode != NotifyMode.NotifyNormal) {
 		goto ProcessNextMessage;
 	}
 	msg.message = Msg.WM_MOUSE_ENTER;
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] DataGrid

2008-08-11 Thread Carlos Alberto Cortez
Probably it's a regression. Would you mind filling a bug report? This
way we can track the error with the details.

Carlos.


El lun, 11-08-2008 a las 03:41 -0700, mbertoli escribió:
> Do anyone of you use a DataGrid in your applications? Does it work?
> I tried various applications on various systems and it never works.
> I always get the "IndexOutOfRangeException" when I try to add a new row.
> 
> Only in the ReportBuilder compiled application founded in the vmware image
> downloaded from this site I've seen it works.
> But if I compile the source, it doesn't work.
> 
> Can anyone help me, please?

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Scrolling performance isues

2008-08-11 Thread Carlos Alberto Cortez

El dom, 10-08-2008 a las 18:55 -0700, Chris Toshok escribió:
> Nice. That look pretty good, with the only issue being performance  
> over an X connection with high latency - it'll block all UI until the  
> redraws complete.


I thought that was exactly we wanted to do ;-)

> 
> That said, it's definitely better than what we have now :)

Ok to commit for now? Specially for 2.0 :-)

Carlos.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-winforms-list] DataGrid

2008-08-11 Thread mbertoli

Do anyone of you use a DataGrid in your applications? Does it work?
I tried various applications on various systems and it never works.
I always get the "IndexOutOfRangeException" when I try to add a new row.

Only in the ReportBuilder compiled application founded in the vmware image
downloaded from this site I've seen it works.
But if I compile the source, it doesn't work.

Can anyone help me, please?
-- 
View this message in context: 
http://www.nabble.com/DataGrid-tp18923277p18923277.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list