[Mono-winforms-list] Control Resize?

Josh TwoOneSix at thatclothingco.com
Wed Apr 9 13:25:20 EDT 2008


On Mon, Apr 7, 2008 at 4:16 PM, Josh <TwoOneSix at thatclothingco.com> wrote:

> 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



I have a little more information on this issue.

I was able to solve the WINDOW part of the issue by removing
"AutoScaleDimensions" and "AutoScaleMode" from each forms designer property
but some/most of my text based controls are still being hacked off. I'm
assuming that the stuff being "hacked off" also contains these properties
deeper in the controls. The most notable controls are the MenuStrip,
StatusStrip, ContextMenuStrip, and all ToolTips. Also, to correct what I had
originally stated, these controls appear to working fine in mono under
Windows, this issue is only on Mono under Linux.

Is there a way to globally disable the AutoScale features? Does anyone have
any suggestions on how to resolve or at least start troubleshooting what
could be the cause?

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080409/55f93760/attachment-0001.html 


More information about the Mono-winforms-list mailing list