[Mono-winforms-list] FileDialog.cs bug fix suggestion

2005-07-19 Thread vlindos
Hi there,
One more little bug on Windows.Forms/FileDialog.cs. If we press side
button Desktop and there is no %HOME%/Desktop directory -- program will be
thrown with exception of no such directory. Here is diff suggestion for
fixing this problem, but may be should change to the root directory in
case of no existing directory. Other ideas?

Index: System.Windows.Forms/FileDialog.cs
===
--- System.Windows.Forms/FileDialog.cs  (revision 47407)
+++ System.Windows.Forms/FileDialog.cs  (working copy)
@@ -1426,12 +1426,14 @@
else
if ( sender == desktopButton )
{
-  
fileDialogPanel.ChangeDirectory( this, Environment.GetFolderPath(
Environment.SpecialFolder.Desktop ) );
+   if ( File.Exists(
Environment.GetFolderPath( Environment.SpecialFolder.Desktop ) ) )
+  
fileDialogPanel.ChangeDirectory( this, Environment.GetFolderPath(
Environment.SpecialFolder.Desktop ) );
}
else
if ( sender == homeButton )
{
-  
fileDialogPanel.ChangeDirectory( this, Environment.GetFolderPath(
Environment.SpecialFolder.Personal ) );
+   if( File.Exists(
Environment.GetFolderPath( Environment.SpecialFolder.Personal ) ) )
+  
fileDialogPanel.ChangeDirectory( this, Environment.GetFolderPath(
Environment.SpecialFolder.Personal ) );
}
else
if ( sender == workplaceButton )


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


RE: [Mono-winforms-list] Drawing performance

2005-07-19 Thread Jonathan S. Chambers
I assume you mean the performance on platforms other than windows? (as
mono on Windows uses the actual MS gdiplus library; it's performance is
fine, and its as fast as it will get).
On other platforms mono is using Cairo. Cairo is still in
development (0.5 I believe). The maintainers are working on stabilizing
the API and behavior before they look into performance.
The performance isn't great right now, but it's not horrible.
Make sure you are drawing as efficiently as possible (double buffering,
invalidate only the changed area, etc.). Other than that, it will just
take time.
In regards to theming (assuming you mean a theme other than
Win32, such as GTK)? The theming infrastructure exists in mono winforms
today, but the only one actively developed on is Win32. GTK was started,
but I believe it has fallen by the wayside. Feel free to implement items
in the GTK theme to match there Win32 counterparts (ThemeGtk.cs). 

- Jonathan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Vladimir Moushkov
Sent: Tuesday, July 19, 2005 8:36 AM
To: mono-winforms-list@lists.ximian.com
Subject: [Mono-winforms-list] Drawing performance

Hi again,
hope found the right mailing list for that question. But the drawing
performance is so terrable ( and so buggy )? Will soon get stabilze ?
What
can be done for helping it and what could be done for get theming
support
?



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


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


RE: [Mono-winforms-list] Drawing performance

2005-07-19 Thread Vladimir Moushkov
Thank you for the answear. The X11 performance is terrible, for example
editing text is totaly unusable ( no right click for copy/paster instead
the text get garbiged display ), multiple click on the text gets throwing
exception and so on..., sometime text is doubled (offset on redrawing ??)
Its is interesting to know from where are comming the all these issues are
they all cairo related .. ?

 I assume you mean the performance on platforms other than windows? (as
 mono on Windows uses the actual MS gdiplus library; it's performance is
 fine, and its as fast as it will get).
   On other platforms mono is using Cairo. Cairo is still in
 development (0.5 I believe). The maintainers are working on stabilizing
 the API and behavior before they look into performance.
   The performance isn't great right now, but it's not horrible.
 Make sure you are drawing as efficiently as possible (double buffering,
 invalidate only the changed area, etc.). Other than that, it will just
 take time.
   In regards to theming (assuming you mean a theme other than
 Win32, such as GTK)? The theming infrastructure exists in mono winforms
 today, but the only one actively developed on is Win32. GTK was started,
 but I believe it has fallen by the wayside. Feel free to implement items
 in the GTK theme to match there Win32 counterparts (ThemeGtk.cs).

 - Jonathan

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Vladimir Moushkov
 Sent: Tuesday, July 19, 2005 8:36 AM
 To: mono-winforms-list@lists.ximian.com
 Subject: [Mono-winforms-list] Drawing performance

 Hi again,
 hope found the right mailing list for that question. But the drawing
 performance is so terrable ( and so buggy )? Will soon get stabilze ?
 What
 can be done for helping it and what could be done for get theming
 support
 ?



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





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


RE: [Mono-winforms-list] Drawing performance

2005-07-19 Thread Jonathan S. Chambers
If you are talking about the textbox mainly, I know that Peter
has been working on it a lot, but the control is not an easy one.
The text 'going to garbage' and 'doubling' is a known issue I
believe. A lot of the drawing issues are of course Cairo related (I say
that not to blame them), but I would think that most/all exceptions are
due to code on our side. 

- Jonathan

-Original Message-
From: Vladimir Moushkov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 19, 2005 9:17 AM
To: Jonathan S. Chambers
Cc: [EMAIL PROTECTED]; mono-winforms-list@lists.ximian.com
Subject: RE: [Mono-winforms-list] Drawing performance

Thank you for the answear. The X11 performance is terrible, for example
editing text is totaly unusable ( no right click for copy/paster instead
the text get garbiged display ), multiple click on the text gets
throwing
exception and so on..., sometime text is doubled (offset on redrawing
??)
Its is interesting to know from where are comming the all these issues
are
they all cairo related .. ?

 I assume you mean the performance on platforms other than windows? (as
 mono on Windows uses the actual MS gdiplus library; it's performance
is
 fine, and its as fast as it will get).
   On other platforms mono is using Cairo. Cairo is still in
 development (0.5 I believe). The maintainers are working on
stabilizing
 the API and behavior before they look into performance.
   The performance isn't great right now, but it's not horrible.
 Make sure you are drawing as efficiently as possible (double
buffering,
 invalidate only the changed area, etc.). Other than that, it will just
 take time.
   In regards to theming (assuming you mean a theme other than
 Win32, such as GTK)? The theming infrastructure exists in mono
winforms
 today, but the only one actively developed on is Win32. GTK was
started,
 but I believe it has fallen by the wayside. Feel free to implement
items
 in the GTK theme to match there Win32 counterparts (ThemeGtk.cs).

 - Jonathan

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Vladimir Moushkov
 Sent: Tuesday, July 19, 2005 8:36 AM
 To: mono-winforms-list@lists.ximian.com
 Subject: [Mono-winforms-list] Drawing performance

 Hi again,
 hope found the right mailing list for that question. But the drawing
 performance is so terrable ( and so buggy )? Will soon get stabilze ?
 What
 can be done for helping it and what could be done for get theming
 support
 ?



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







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


[Mono-winforms-list] MWF Status?

2005-07-19 Thread Vladimir Lushnikov
Hi,

I've been looking at Windows.Forms in Mono and (surprise surprise)
came to the conclusion that I couldn't find a central location for the
status of the Windows.Forms implementation for Mono (latest branch).
So is there some kind of central resource for finding out about
windows forms implementation or is it simply (undocumented) work is
progress?

Regards,
-- 
Vladimir Lushnikov
EverythingX Limited (http://www.everythingx.net)
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] MWF Status?

2005-07-19 Thread Jordi Mas
El dt 19 de 07 del 2005 a les 16:08 +0100, en/na Vladimir Lushnikov va
escriure:
 Hi,
 
 I've been looking at Windows.Forms in Mono and (surprise surprise)
 came to the conclusion that I couldn't find a central location for the
 status of the Windows.Forms implementation for Mono (latest branch).
 So is there some kind of central resource for finding out about
 windows forms implementation or is it simply (undocumented) work is
 progress?

Hi Vladimir!

Here you have a break down of the components and the people that is
working on the and their status:

http://svn.myrealbox.com/mwf/owners.html

Here you have the current completion's status of the
System.Windows.Forms namespace:

http://svn.myrealbox.com/mwf/class-status-System.Windows.Forms.html

Regards,

Jordi,

-- 
Jordi Mas i Hernàndez - Mono development team - http://www.mono-project.com
Homepage and LiveJournal at http://www.softcatala.org/~jmas


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


RE: [Mono-winforms-list] MWF Status?

2005-07-19 Thread Dan Maltes
(surprise surprise) http://svn.myrealbox.com/blog/ 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vladimir
Lushnikov
Sent: Tuesday, July 19, 2005 11:09 AM
To: mono-winforms-list@lists.ximian.com
Subject: [Mono-winforms-list] MWF Status?

Hi,

I've been looking at Windows.Forms in Mono and (surprise surprise) came to
the conclusion that I couldn't find a central location for the status of the
Windows.Forms implementation for Mono (latest branch).
So is there some kind of central resource for finding out about windows
forms implementation or is it simply (undocumented) work is progress?

Regards,
--
Vladimir Lushnikov
EverythingX Limited (http://www.everythingx.net)
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list



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