[Mono-winforms-list] SWF samples
Everaldo Canuto
everaldo_canuto@yahoo.com.br
Mon, 13 Sep 2004 15:53:11 -0300 (ART)
Hi Peter,
Thanks! I apply this patch and my samples works fine.
I have creating the properties AcceptButton and
CancelButton, Do you like that I send a patch to this
list?
And the samples, Do you have interest to included that
on SWF?
Everaldo Canuto
everaldo_canuto@yahoo.com.br
--- Peter Dennis Bartok <peter@novonyx.com> escreveu:
> Everaldo,
>
> No need to copy me on your messages, I am subscribed
> to the list and get
> them anyway. Otherwise I get them twice.
>
> Yes, Accept and Cancel button were not available
> yet. I've just checked the
> code for them in.
>
> StartPosition I have lying around, it still needs
> some debugging before I
> can check it in.
>
> As for the exception you are getting, try applying
> the patch below to
> libgdiplus and see if it starts working for you.
>
> Index: gdip.h
>
===================================================================
> RCS file: /cvs/public/libgdiplus/src/gdip.h,v
> retrieving revision 1.92
> diff -u -r1.92 gdip.h
> --- gdip.h 26 Jul 2004 07:32:59 -0000 1.92
> +++ gdip.h 13 Sep 2004 17:20:35 -0000
> @@ -74,7 +74,7 @@
> struct cairo_font {
> int refcount;
> cairo_matrix_t matrix;
> - //void *glyph_cache;
> + void *glyph_cache;
> const struct cairo_font_backend *backend;
> };
>
> Peter
>
> -----Original Message-----
> From: "Everaldo Canuto"
> <everaldo_canuto@yahoo.com.br>
> To: "Peter Dennis Bartok" <peter@novonyx.com>;
> <mono-winforms-list@ximian.com>
> Date: 13 September, 2004 11:22
> Subject: [Mono-winforms-list] SWF samples
>
>
> >Hi all!
> >
> >I have created three samples:
> >
> >simple.cs - A simple form.
> >button.cs - Some button styles.
> >label.cs - Label with some styles.
> >
> >All samples works fine but I need to comment some
> >lines to using with Mono and new SWF because SWF
> has
> >not implemented this methods and properties:
> >
> >System.Windows.Forms.StartPosition - Not
> implemented.
> >System.Windows.Forms.AcceptButton- Not implemented.
> >System.Windows.Forms.CancelButton- Not implemented.
> >
> >I must implement these methods? If yes, I needed to
> >create a Patch and send to this list?
> >
> >Another problem has found in Button class, if I set
> >the Text property of button the program freezes on
> >execution.
> >
> >if I set the Text propertie od Label my program
> >generate this error message:
> >
> >Unhandled Exception: System.DivideByZeroException:
> >Division by zero
> >in <0x105b98> (wrapper managed-to-native)
> >System.Drawing.GDIPlus:GdipMeasureStr
> >ing
>
>(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,System.Drawing.
> >RectangleF&,int&,int&)
> >in <0x00004> (wrapper managed-to-native)
> >System.Drawing.GDIPlus:GdipMeasureStri
> >ng
>
>(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,System.Drawing.
> R
> >ectangleF&,int&,int&)
> >in <0x000fc> System.Drawing.Graphics:MeasureString
>
>(string,System.Drawing.Font,System.Drawing.SizeF,System.Drawing.StringForma
> t,int&,int&)
> >in <0x000f2> (wrapper remoting-invoke-with-check)
> >System.Drawing.Graphics:MeasureString
>
>(string,System.Drawing.Font,System.Drawing.SizeF,System.Drawing.StringForma
> t,int&,int&)
> >in <0x00043> System.Drawing.Graphics:MeasureString
>
>(string,System.Drawing.Font,System.Drawing.SizeF,System.Drawing.StringForma
> t)
> >in <0x000ce> (wrapper remoting-invoke-with-check)
> >System.Drawing.Graphics:MeasureString
>
>(string,System.Drawing.Font,System.Drawing.SizeF,System.Drawing.StringForma
> t)
> >in <0x00077>
> >System.Windows.Forms.Label:CalcPreferredWidth ()
> >in <0x0004a> (wrapper remoting-invoke-with-check)
> >System.Windows.Forms.Label:CalcPreferredWidth ()
> >in <0x0001b>
> System.Windows.Forms.Label:OnTextChanged
> >(System.EventArgs)
> >in <0x00056> System.Windows.Forms.Control:set_Text
> >(string)
> >in <0x002e4>
> LabelSample.MainForm:InitializeComponent
> >()
> >in <0x0004a> (wrapper remoting-invoke-with-check)
> >LabelSample.MainForm:InitializeComponent ()
> >in <0x00018> LabelSample.MainForm:.ctor ()
> >in <0x0004a> (wrapper remoting-invoke-with-check)
> >LabelSample.MainForm:.ctor ()
> >in <0x0001a> LabelSample.MainForm:Main (string[])
> >
> >Thanks
> >Everaldo Canuto
> >everaldo_canuto@yahoo.com.br
> >
> >
> >
> >
> >
>
>_______________________________________________________
> >Yahoo! Messenger 6.0 - jogos, emoticons sonoros e
> muita diversão. Instale
> agora!
> >http://br.download.yahoo.com/messenger/
>
> _______________________________________________
> Mono-winforms-list maillist -
> Mono-winforms-list@lists.ximian.com
>
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________________
Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita diversão. Instale agora!
http://br.download.yahoo.com/messenger/