Re: [Mono-winforms-list] Theming in MWF

2005-07-31 Thread Nicolas Cornu

Is this configuration ok to use SWF with mono ?

libgdiplus

cairo will be compiled with the following surface backends:
 Xlib: yes
 Quartz: no
 XCB: yes
 PostScript: yes
 PDF: no
 PNG: yes
 glitz: no (requires glitz http://freedesktop.org/software/glitz)

and the following font backends:
 freetype: yes
 atsui: no

---
Configuration summary

  * Installation prefix = /usr
  * Codecs supported:

 - TIFF: yes
 - JPEG: yes
 - GIF: yes
 - PNG: yes

 NOTE: if any of the above say 'no' you may install the
   corresponding development packages for them, rerun
   autogen.sh to include them in the build.

---

GtkSharp-2.0-2.5.5
--
Configuration summary

  * Installation prefix = /usr
  * C# compiler: /usr/bin/mcs

  Optional assemblies included in the build:

 * art-sharp.dll: yes
 * gnomevfs-sharp.dll: yes
 * gnome-sharp.dll: no
 * glade-sharp.dll: yes
 * gda-sharp.dll: no
 * gnomedb-sharp.dll: no
 * rsvg-sharp.dll: no
 * gtkhtml-sharp.dll: no
 * vte-sharp.dll: no
 * panelapplet-sharp.dll: no

 NOTE: if any of the above say 'no' you may install the
   corresponding development packages for them, rerun
   autogen.sh to include them in the build.

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


[Mono-winforms-list] MWF not working

2005-07-31 Thread Nicolas Cornu


cairo will be compiled with the following surface backends:
 Xlib: yes
 Quartz: no
 XCB: yes
 PostScript: yes
 PDF: no
 PNG: yes
 glitz: no (requires glitz http://freedesktop.org/software/glitz)

and the following font backends:
 freetype: yes
 atsui: no

---
Configuration summary

  * Installation prefix = /usr
  * Codecs supported:

 - TIFF: yes
 - JPEG: yes
 - GIF: yes
 - PNG: yes

 NOTE: if any of the above say 'no' you may install the
   corresponding development packages for them, rerun
   autogen.sh to include them in the build.

---

GtkSharp-2.0-2.5.5
--
Configuration summary

  * Installation prefix = /usr
  * C# compiler: /usr/bin/mcs

  Optional assemblies included in the build:

 * art-sharp.dll: yes
 * gnomevfs-sharp.dll: yes
 * gnome-sharp.dll: no
 * glade-sharp.dll: yes
 * gda-sharp.dll: no
 * gnomedb-sharp.dll: no
 * rsvg-sharp.dll: no
 * gtkhtml-sharp.dll: no
 * vte-sharp.dll: no
 * panelapplet-sharp.dll: no

 NOTE: if any of the above say 'no' you may install the
   corresponding development packages for them, rerun
   autogen.sh to include them in the build.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] MWF not working

2005-07-31 Thread Paul F. Johnson
Hi,

Optional assemblies included in the build:
 
   * art-sharp.dll: yes
   * gnomevfs-sharp.dll: yes
   * gnome-sharp.dll: no
   * glade-sharp.dll: yes
   * gda-sharp.dll: no
   * gnomedb-sharp.dll: no
   * rsvg-sharp.dll: no
   * gtkhtml-sharp.dll: no
   * vte-sharp.dll: no
   * panelapplet-sharp.dll: no

To get any of the above, you need to install the corresponding -devel
package (so gtkhtml would need gtkhtml-devel etc).

TTFN

Paul
-- 
Some people will do anything for a woman in uniform - The Doctor -
Unregenerate (Big Finish audio)

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


Re: [Mono-winforms-list] Theming in MWF

2005-07-31 Thread Peter Dennis Bartok
Yep, you got freetype, Xlib and all four image formats. You're good to go.

Peter
-Original Message-
From: Nicolas Cornu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Sunday, 31 July, 2005 07:37
Subject: Re: [Mono-winforms-list] Theming in MWF


Is this configuration ok to use SWF with mono ?

libgdiplus

cairo will be compiled with the following surface backends:
  Xlib: yes
  Quartz: no
  XCB: yes
  PostScript: yes
  PDF: no
  PNG: yes
  glitz: no (requires glitz http://freedesktop.org/software/glitz)

and the following font backends:
  freetype: yes
  atsui: no

---
Configuration summary

   * Installation prefix = /usr
   * Codecs supported:

  - TIFF: yes
  - JPEG: yes
  - GIF: yes
  - PNG: yes

  NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.

---

GtkSharp-2.0-2.5.5
--
Configuration summary

   * Installation prefix = /usr
   * C# compiler: /usr/bin/mcs

   Optional assemblies included in the build:

  * art-sharp.dll: yes
  * gnomevfs-sharp.dll: yes
  * gnome-sharp.dll: no
  * glade-sharp.dll: yes
  * gda-sharp.dll: no
  * gnomedb-sharp.dll: no
  * rsvg-sharp.dll: no
  * gtkhtml-sharp.dll: no
  * vte-sharp.dll: no
  * panelapplet-sharp.dll: no

  NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.

___
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] Theming in MWF

2005-07-31 Thread Nicolas Cornu

Peter Dennis Bartok a écrit :


Yep, you got freetype, Xlib and all four image formats. You're good to go.

Peter
-Original Message-
From: Nicolas Cornu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Sunday, 31 July, 2005 07:37
Subject: Re: [Mono-winforms-list] Theming in MWF


 


Is this configuration ok to use SWF with mono ?

libgdiplus

cairo will be compiled with the following surface backends:
Xlib: yes
Quartz: no
XCB: yes
PostScript: yes
PDF: no
PNG: yes
glitz: no (requires glitz http://freedesktop.org/software/glitz)

and the following font backends:
freetype: yes
atsui: no

---
Configuration summary

 * Installation prefix = /usr
 * Codecs supported:

- TIFF: yes
- JPEG: yes
- GIF: yes
- PNG: yes

NOTE: if any of the above say 'no' you may install the
  corresponding development packages for them, rerun
  autogen.sh to include them in the build.

---

GtkSharp-2.0-2.5.5
--
Configuration summary

 * Installation prefix = /usr
 * C# compiler: /usr/bin/mcs

 Optional assemblies included in the build:

* art-sharp.dll: yes
* gnomevfs-sharp.dll: yes
* gnome-sharp.dll: no
* glade-sharp.dll: yes
* gda-sharp.dll: no
* gnomedb-sharp.dll: no
* rsvg-sharp.dll: no
* gtkhtml-sharp.dll: no
* vte-sharp.dll: no
* panelapplet-sharp.dll: no

NOTE: if any of the above say 'no' you may install the
  corresponding development packages for them, rerun
  autogen.sh to include them in the build.

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


   



 

why do i get this error when starting a basic program written in C# 
using SWF:


Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25 
22:34:45]


Unhandled Exception: System.TypeInitializationException: An exception 
was thrown  by the type initializer for System.Windows.Forms.XplatUI 
--- System.TypeInitia lizationException: An exception was thrown by the 
type initializer for System.Dr awing.GDIPlus --- 
System.DllNotFoundException: gdiplus.dll
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup 
(ulong,Sys 
tem.Drawing.GdiplusStartupInput,System.Drawing.GdiplusStartupOutput)
in 0x000cc System.Drawing.GDIPlus:.cctor ()--- End of inner exception 
stack tr ace ---


in 0x0 unknown method
in 0xc System.Drawing.Graphics:FromHdcInternal (IntPtr hdc)
in 0x00090 System.Windows.Forms.XplatUIX11:SetDisplay (IntPtr 
display_handle)

in 0x0008c System.Windows.Forms.XplatUIX11:.ctor ()
in 0x0003f System.Windows.Forms.XplatUIX11:GetInstance ()
in 0x00061 System.Windows.Forms.XplatUI:.cctor ()--- End of inner 
exception st ack trace ---


in 0x0 unknown method
in 0x00049 System.Windows.Forms.Form:get_CreateParams ()
in 0x0022f System.Windows.Forms.Control:.ctor ()
in 0x00011 System.Windows.Forms.ScrollableControl:.ctor ()
in 0x00010 System.Windows.Forms.ContainerControl:.ctor ()
in 0x00010 System.Windows.Forms.Form:.ctor ()
in 0xa Fen:.ctor ()
in (wrapper remoting-invoke-with-check) Fen:.ctor ()
in 0x0002f Program:Main ()

Thanks in advance,

CN

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


[Mono-winforms-list] Remove XCB from compiling libgdiplus

2005-07-31 Thread Nicolas Cornu

I would like to remove XCB support.
I have it compiled but make fail when i try to compil libgdiplus again

How can i remove XCB support

Thanks in advance,

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


[Mono-winforms-list] Two patches - Splitter and Toolbar

2005-07-31 Thread Jonathan S. Chambers
Splitter was changed to work with all docking styles (it wasn't before).

Toolbar was not repainting at times. I changed it to support double buffering, 
unless anyone sees a problem with that. I think the toolbar patch needs some 
more work, but I wasn't sure what to do with the 'redraw' variable? It seems to 
be unnecessary if double buffering is used?

Thanks,
Jonathan

Index: Splitter.cs
===
--- Splitter.cs	(revision 47879)
+++ Splitter.cs	(working copy)
@@ -226,7 +226,7 @@
 Capture = true;
 drag_form.Height = this.Height;
 drag_form.Width = this.Width;
-drag_form.Location = PointToScreen(this.Location);
+drag_form.Location = PointToScreen(new Point(0,0));
 drag_form.Show();
 			}
 		}
@@ -241,9 +241,9 @@
 Point splitterLocation;
 
 if (horz) 
-	splitterLocation = new Point(this.Location.X,e.Y-cursor_offset_y);
+	splitterLocation = new Point(0,e.Y-cursor_offset_y);
 else 
-	splitterLocation = new Point(e.X-cursor_offset_x,this.Location.Y);
+	splitterLocation = new Point(e.X-cursor_offset_x,0);
 
 drag_form.Location = PointToScreen(splitterLocation);
 
@@ -316,15 +316,35 @@
 			if (horz) 
 			{
 if (adjacent.Height == parentPoint.Y)
-	return;
-adjacent.Height = parentPoint.Y;
+	return;
+
+if (this.Dock == DockStyle.Top)
+{
+int height = parentPoint.Y - adjacent.Top;
+adjacent.SetBounds(adjacent.Left, adjacent.Top, adjacent.Width, height);
+}
+else if (this.Dock == DockStyle.Bottom)
+{
+int height = adjacent.Bottom - parentPoint.Y;
+adjacent.SetBounds(adjacent.Left, this.Bottom, adjacent.Width, height);
+adjacent.Top = this.Bottom; // need this for some reason
+}
 return;
 			}
 
 			if (adjacent.Width == parentPoint.X)
-return;
-			
-			adjacent.Width = parentPoint.X;
+return;
+if (this.Dock == DockStyle.Right)
+{
+int width = adjacent.Right - parentPoint.X;//parentPoint.X-adjacent.Left;
+adjacent.SetBounds(this.Right, adjacent.Top, width, adjacent.Height);
+adjacent.Left = this.Right; // need this for some reason
+}
+else if (this.Dock == DockStyle.Left)
+{
+int width = parentPoint.X - adjacent.Left;
+adjacent.SetBounds(adjacent.Left, adjacent.Top, width, adjacent.Height);
+}
 		}
 
 		private Control FindAdjacentControl () 
Index: ToolBar.cs
===
--- ToolBar.cs	(revision 47879)
+++ ToolBar.cs	(working copy)
@@ -122,6 +122,11 @@
 			this.MouseMove += new MouseEventHandler (ToolBar_MouseMove);
 			this.MouseUp += new MouseEventHandler (ToolBar_MouseUp);
 			base.Paint += new PaintEventHandler (ToolBar_Paint);
+
+SetStyle(ControlStyles.DoubleBuffer, true);
+SetStyle(ControlStyles.UserPaint, true);
+SetStyle(ControlStyles.AllPaintingInWmPaint, true);
+SetStyle(ControlStyles.ResizeRedraw, false);
 		}
 		#endregion Constructor
 
@@ -659,10 +664,7 @@
 			if (this.Width = 0 || this.Height =  0 || this.Visible == false)
 return;
 
-			if (redraw) {
-ThemeEngine.Current.DrawToolBar (pevent.Graphics, pevent.ClipRectangle, this);
-redraw = false;
-			}
+			ThemeEngine.Current.DrawToolBar (pevent.Graphics, pevent.ClipRectangle, this);
 
 			if (Paint != null) {
 Paint (this, pevent);
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list