[IronPython] Groping in the dark
Chris Stoy
chris.stoy at redstorm.com
Mon Dec 4 23:36:59 CET 2006
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: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] 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 <william at resolversystems.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20061204/7654e185/attachment.html>
More information about the Ironpython-users
mailing list