Most the apps I tried (ToolStripDemo, PDN, Reversi) look good pretty good [on Windows]. I ran into two problems:

- It looks like the Menu is trying to draw off of the initial NCPAINT, but the IsHandleCreated is false, which it doesn't check, causing it to access Handle and create a loop. Test case attached.

- Scrollbars in ComboBoxes are not drawn until they are clicked. It may be Scrollbars are set to Visible before their owning control is created. Test case attached.

Both issues are easily reproducible using FormsTest as well.

Jonathan


Chris Toshok wrote:
This seems to fix everything in ControlHandleTest on X11, not sure about
windows.  It also fixes things "the right way" wrt WM_CREATE and
WM_SHOWWINDOW, which we now generate on X11.

It doesn't fix the test in FormTest.cs that was put there for 80020.
MDI children handles are still being created too early, but my brain
isn't capable at this point of fixing it, so I figured I'd send what I
had and see how people feel about the changes.

Chris

using System;
using System.Windows.Forms;
using System.Text;
using System.Drawing;

namespace vs8
{
        class Program
        {
                static void Main0 (string[] args)
                {
                        Application.Run (new MF ());
                }
        }

        class MF : Form
        {
                public MF ()
                {
                        MainMenu mm = new MainMenu ();
                        MenuItem mi = new MenuItem ("New");
                        mm.MenuItems.Add (mi);
                        this.Menu = mm;
                }
        }
}
using System;
using System.Windows.Forms;
using System.Text;
using System.Drawing;

namespace vs8
{
        class Program
        {
                static void Main (string[] args)
                {
                        Application.Run (new MF ());
                }
        }

        class MF : Form
        {
                public MF ()
                {
                        ComboBox cb = new ComboBox ();
                        cb.Items.AddRange (new string [] {"Apple", "Banana", 
"Cherry", "Date", "Elephant", "Fig", "Grape", "Helicopter", "Igloo" });
                        this.Controls.Add (cb);
                }
        }
}
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to