I believe MainMenu and MenuItem are the .NET 1.1 way of doing menus,
while MenuStrip and ToolStripMenuItem are the .NET 2.0 ways.  However, I
would think they both should still work (even though you should use .NET
2.0 unless you have a reason not to.)

 

Chris.

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick O'Brien
Sent: Friday, December 01, 2006 5:13 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Groping in the dark

 

On 12/1/06, William Reade <[EMAIL PROTECTED]> wrote:

        Hi Patrick
        
        I haven't been able to see the anomalies you mention -- perhaps
the
        following sample will help.
        ---------------------------
        import clr
        clr.AddReference("System.Windows.Forms")
        
        from System.Windows.Forms import (
            Application, DockStyle, Form, Keys, MenuStrip,
ToolStripMenuItem,
        ToolStripSeparator
        )


Thanks, William - that example helped a lot.  It looks like the
anomalies are due to my using entirely different classes to build my
menu.  I got the basic menu code from this article: 

http://www.devsource.com/article2/0,1895,1989493,00.asp

It uses MainMenu instead of MenuStrip, MenuItem instead of
ToolStripMenuItem, etc.  So I guess there is more than one way to
construct a menu and I better look a bit more carefully at what I'm
using to get the job done.  :-) 

Thanks again.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org
Louie         http://www.pylouie.org 

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to