Andy Hume | 1 Apr 2008 13:57
Picon
Favicon

Re: [Mono-bugs] Mono 1.9 / Winforms / MainMenu

Hi Olaf

The mono-bugs lists is only for output from bugzilla, so you'll likely
not get an answer there. :-,(  I've included the winforms list here.

I don't see the problem (narrow menus) you report however.  Maybe
someone else can suggest why it might be happening for you.

Andy 

> -----Original Message-----
> From: mono-bugs-bounces <at> lists.ximian.com 
> [mailto:mono-bugs-bounces <at> lists.ximian.com] On Behalf Of Olaf Radicke
> Sent: 26 March 2008 23:38
> To: mono-bugs <at> lists.ximian.com
> Subject: [Mono-bugs] Mono 1.9 / Winforms / MainMenu
> 
> Hello! 
> from mono 1,9, my program (http://artikel23.sf.net) has 
> problems with MainMenu (Winforms). See here: 
> http://www.fkbk.de/file/ . 
> 
> i'm alone which problems?
> 
> Olaf (Berlin/Germany)
> 
> _______________________________________________
> mono-bugs maillist  -  mono-bugs <at> lists.ximian.com 
> http://lists.ximian.com/mailman/listinfo/mono-bugs

(Continue reading)

Josh | 1 Apr 2008 20:55

System.Windows.Forms.WebBrowser

I understand that System.Windows.Forms.WebBrowser isn't fully implemented yet, but does anyone know of a workaround that can use to get the DocumentText from the control? It appears that mono will currently (1.9) navigate to the URI that I need but I can't get the DocumentText property that I need... any ideas?

Thanks!

Josh

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Ernesto | 2 Apr 2008 03:57
Picon

Native look theme for Windows


Hi,

I'm working on a native look theme for Windows XP+.

Basically I grabbed Win32Classic and started replacing custom drawing 
via GDI with calls to UXTheme (using the managed code in 
System.Windows.Forms.VisualStyles).

I already have some basic controls working. It's not rocket science, but 
it's a lot of work because there are many controls.

My current approach: I created the ThemeWin32Native class, which 
inherits from ThemeWin32Classic. This way I don't have to rewrite the 
layout code; instead, I only override the drawing code.

I would like any comments on subjects like:

* What would be the correct name for this class? ThemeWin32Native, 
ThemeWin32UX, ThemeWimp (like the GTK Windows impersonator), etc.
* Until now, I needed to change visibility of at least one member of a 
winforms control (Button.IsDefault) from "protected" to "protected 
internal". Is this acceptable?
* I guess the correct thing to do would be to create a base class 
(something like ThemeWin32Common), with code common to both Win32Classic 
and Win32Native. This is a mayor change and I am not a core Mono 
developer. Should I start such a job anyway?
* Any other comment you may feel appropriate.

Regards,
Ernesto

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Jonathan Pobst | 2 Apr 2008 04:38
Gravatar

Re: Native look theme for Windows

Hey,

We had planned to have this done as part of the Summer of Code.

In the long run, the layout code should probably be refactored to 
Theme.cs and the visual styles theme should not inherit from 
Win32Classic.  But that's ok for now to minimize huge changes.  It will 
also allow me to commit the big block of new code without fear of 
breaking the old code.  (Since Win32Classic won't be changing for now.)

 > * What would be the correct name for this class? ThemeWin32Native,
 > ThemeWin32UX, ThemeWimp (like the GTK Windows impersonator), etc.

We had planned to go with "ThemeVisualStyles", and then we would 
implement VisualStyles on Linux and Mac.  This way the theme code would 
be common, and only the VisualStyles implementation would change.  We 
realize this will not get us completely native drawing, but we can 
create styles that mimic Gtk/Aqua.

 > * Until now, I needed to change visibility of at least one member of a
 > winforms control (Button.IsDefault) from "protected" to "protected
 > internal". Is this acceptable?

Protected to protected internal is fine.

 > * I guess the correct thing to do would be to create a base class
 > (something like ThemeWin32Common), with code common to both Win32Classic
 > and Win32Native. This is a mayor change and I am not a core Mono
 > developer. Should I start such a job anyway?

Oh, covered this above.  If you want to just inherit from Win32Classic 
for now, that is fine.

Jonathan
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Mario De Clippeleir | 2 Apr 2008 12:24
Picon
Favicon

Hanging on Mac

Hi,

 

I’m writing an application with a very basic GUI. On windows, everything works fine, but in Mac OS X, it hangs after an event for progressbar update is fired. I don’t know if this is related.

Any ideas ? How can I debug this ?

 

Thanks,

 

Mario

Software Engineer

 

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Ernesto | 3 Apr 2008 17:23
Picon

Re: Native look theme for Windows

Jonathan Pobst wrote:
> Hey,
>
> We had planned to have this done as part of the Summer of Code.

Oh, I didn't know that. Does that mean that I better leave it alone?
I mean, I don't think I'm going to finish this all by my self, so I 
don't want to stop someone who can actually write the whole thing.
Or should I send what I have done so far and keep working?
I'm not familiar with the SoC and how it works.

Regards,
Ernesto

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Miguel de Icaza | 7 Apr 2008 17:46

Re: Native look theme for Windows


> Oh, I didn't know that. Does that mean that I better leave it alone?
> I mean, I don't think I'm going to finish this all by my self, so I 
> don't want to stop someone who can actually write the whole thing.
> Or should I send what I have done so far and keep working?
> I'm not familiar with the SoC and how it works.

In my opinion, it would be worth starting on this now, and then the
folks of the Summer of Code (if we accept that proposal, based on how
many slots we get) could complement the work, or work on the other
native engines (Aqua, Gtk).

Also, the summer of code effort would only have code available at the
end of the summer and only if it is completed.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Josh | 7 Apr 2008 20:41

Control Resize?

I'm working in VB on VS (Winforms) and Mono 1.9 and my apps are working fine except when I run them under Mono it's almost like the text inside of each control is being cut off and all my windows and context menus appear to be "hacked off", even a simple right-click {copy, paste} the context menu is cut short.

I followed the FAQ: Winforms to get the main window to resize correctly, but all my other windows and even my controls on that main window are still "cut off". I tried the export and still nothing. Also, I'm getting the same results on both the Windows and Linux versions of Mono. I'm thinking that maybe there is an issue with font that is missing? I have checked all over and can't seem to find a recommended font for mono applications. I also tried to create a simple app with just a Menu control and also got the exact same results.

I have disabled "XP Style Menus" and even tried to set a static size for the controls. This will make the control bigger, but it still hacks off the text.

In case my question is too hard to follow, please see the screen shot at: http://www.thatclothingco.com/images/MonoWinformCut.png

Josh

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Jonathan Pobst | 7 Apr 2008 20:58
Gravatar

Re: Control Resize?

That is weird, I don't think I've seen that before.

Can you please file a bug with the source code of the simple app you 
created?  I'll take a look at it.

http://www.mono-project.com/Bugs

[Class Libraries -> System.Windows.Forms]

Generally I just leave everything at the default font, so maybe the code 
is not correctly measuring non-default fonts.

Thanks!
Jonathan

Josh wrote:
> I'm working in VB on VS (Winforms) and Mono 1.9 and my apps are working 
> fine except when I run them under Mono it's almost like the text inside 
> of each control is being cut off and all my windows and context menus 
> appear to be "hacked off", even a simple right-click {copy, paste} the 
> context menu is cut short.
> 
> I followed the FAQ: Winforms to get the main window to resize correctly, 
> but all my other windows and even my controls on that main window are 
> still "cut off". I tried the export and still nothing. Also, I'm getting 
> the same results on both the Windows and Linux versions of Mono. I'm 
> thinking that maybe there is an issue with font that is missing? I have 
> checked all over and can't seem to find a recommended font for mono 
> applications. I also tried to create a simple app with just a Menu 
> control and also got the exact same results.
> 
> I have disabled "XP Style Menus" and even tried to set a static size for 
> the controls. This will make the control bigger, but it still hacks off 
> the text.
> 
> In case my question is too hard to follow, please see the screen shot 
> at: http://www.thatclothingco.com/images/MonoWinformCut.png
> 
> Josh
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Josh | 7 Apr 2008 22:16

Re: Control Resize?

On Mon, Apr 7, 2008 at 2:58 PM, Jonathan Pobst <monkey <at> jpobst.com> wrote:

That is weird, I don't think I've seen that before.

Can you please file a bug with the source code of the simple app you created?  I'll take a look at it.

http://www.mono-project.com/Bugs

[Class Libraries -> System.Windows.Forms]

Generally I just leave everything at the default font, so maybe the code is not correctly measuring non-default fonts.

Thanks!
Jonathan


Josh wrote:
I'm working in VB on VS (Winforms) and Mono 1.9 and my apps are working fine except when I run them under Mono it's almost like the text inside of each control is being cut off and all my windows and context menus appear to be "hacked off", even a simple right-click {copy, paste} the context menu is cut short.

I followed the FAQ: Winforms to get the main window to resize correctly, but all my other windows and even my controls on that main window are still "cut off". I tried the export and still nothing. Also, I'm getting the same results on both the Windows and Linux versions of Mono. I'm thinking that maybe there is an issue with font that is missing? I have checked all over and can't seem to find a recommended font for mono applications. I also tried to create a simple app with just a Menu control and also got the exact same results.

I have disabled "XP Style Menus" and even tried to set a static size for the controls. This will make the control bigger, but it still hacks off the text.

In case my question is too hard to follow, please see the screen shot at: http://www.thatclothingco.com/images/MonoWinformCut.png

Josh


------------------------------------------------------------------------

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list



I submitted bug 377726 with an attached test project. I have since compiled my code under SharpDevelop 3 and now the WINDOWS version of Mono is rendering the controls correctly, but the Linux version is not, same results.

Is there a way for me to tell which font Mono is trying to use in my controls? Which "default" font should I set on my controls?

Josh
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Gmane