[Mono-winforms-list] Re: [Mono-osx] Windows.Forms where's it at

Gareth Baker g.j.baker@dl.ac.uk
Mon, 25 Apr 2005 13:21:07 +0100


Menus don't work at all in the native SWF driver (using macpack to generate
an osx application). They sort of work using the X11 driver but the menus
are not drawn properly (possibly being drawn behind the main window?). If
you click roughly where you would expect the menu item to be you get the
desired effect but...

Not much help I know but if you're just looking at a Mac application Cocoa#
works a treat!! :-)

Regards
Gareth Baker


On 25/4/05 11:23 am, "galzv" <monoX@gerzonic.net> wrote:

> hi
> 
> can somebody please help a dummy newcomer how to find out what actually
> works on osx using Windows.Forms. i now have a working example with
> buttons, and textboxes, but as soon as i try adding a menu, the app
> crashes
> 
> Thread 0 Crashed:
> 0   <<00000000>>  0x01094c4c 0 + 0x1094c4c
> 1   <<00000000>>  0x01094b38 0 + 0x1094b38
> 2   <<00000000>>  0x0055c91c 0 + 0x55c91c
> 3   <<00000000>>  0x0055b95c 0 + 0x55b95c
> 4   <<00000000>>  0x0055b89c 0 + 0x55b89c
> 5   <<00000000>>  0x00559408 0 + 0x559408
> 6   mono               0x00060ba8 mono_runtime_exec_main + 0x13c
> (object.c:1897)
> 7   mono               0x000607f4 mono_runtime_run_main + 0x210
> (object.c:1751)
> 8   mono               0x00003b00 mono_main + 0x91c (driver.c:891)
> 9   mono               0x000020a4 _start + 0x188 (crt.c:267)
> 10  mono               0x00001f18 start + 0x30
> 
> // some source:
> 
> MenuItem mnuOpen, mnuClose, mnuExit ;
> MainMenu mnuMain ;
> MenuItem mnuFile, mnuWindow ;
> 
> 
>     public Galzvizm()
>     {
>     
> mnuFile = new MenuItem() ;
> mnuFile.Text = "&File" ;
> mnuFile.MergeOrder = 0 ;
> 
> mnuWindow = new MenuItem() ;
> mnuWindow.MergeOrder = 2 ;
> mnuWindow.Text = "&Window" ;
> 
> mnuMain = new MainMenu() ;
> mnuMain.MenuItems.AddRange( new MenuItem[2] { mnuFile, mnuWindow})
> ;
> 
> // up to here everything works but as soon as i uncoment the following
> line, the crash occurs
> this.Menu = mnuMain ;
> 
> 
> i'm more looking for the way to go on finding out what works (do i have
> to skim through the svn source, or is there a list that is regularly
> updated and specifys implemented functionality) than help with the
> above snippet.
> 
> thank you guys
> 
> christian
> 
> _______________________________________________
> Mono-osx mailing list
> Mono-osx@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx