<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.2577" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=396041419-28122005><FONT face=Verdana
color=#800000 size=2>The DockStyle enum does not have the Flags attribute so
IronPython doesn't add the bitwise operators.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.ironpython.com
[mailto:users-bounces@lists.ironpython.com] <B>On Behalf Of </B>jeff
sacksteder<BR><B>Sent:</B> Wednesday, December 28, 2005 11:02 AM<BR><B>To:</B>
users@lists.ironpython.com<BR><B>Subject:</B> [IronPython] Bitwise boolean
operators and Forms<BR></FONT><BR></DIV>
<DIV></DIV>The code in this snippet fails, claiming the bitwise operator '|' is
unsupported for for DockStyles. Is this an unimplemented item, bug, or
misunderstanding on my part?<BR><BR><B><SPAN
id=_user_users@lists.ironpython.com><SPAN style="FONT-WEIGHT: bold"><BR>import
sys<BR>sys.LoadAssemblyByName('System.Windows.Forms')<BR>from
System.Windows.Forms import *<BR><BR>my_control =
RichTextBox()<BR>my_control.Dock = DockStyle.Right |
DockStyle.Left<BR>my_control.AutoSize = True<BR><BR>my_form =
Form()<BR>my_form.Controls.Add(my_control)<BR>my_form.Show()<BR><BR>Application.Run(my_form)<BR></SPAN></SPAN></B></BODY></HTML>