[Mono-winforms-list] DateTimePicker : code offered (again)
Mark Johnson
mj10777@web.de
Mon, 24 Jan 2005 07:20:36 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C501E5.33DF2DD0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Last October I offered to supply the c# code for DateTimePicker, but there
was no response.
I have included the DateTimePicker.cs that I compile under Mono last
October.
(H:\CVS\mcs\class\Managed.Windows.Forms\System.Windows.Forms)
If ContextMenu and NumericUpDown have in the mean time be resolve it should
run.
This E-Mail and the Mono_DateTimePicker.zip can be found at:
http://www.mj10777.de/NETFramework/Mono/DateTimePicker/index.htm
Mark Johnson, Berlin Germany
mj10777@mj10777.de
Here is the Original Mail from 05.10.2004 :
DateTimePicker : offer to contribute code developed for Compact
This year I worked on a DateTimePicker that worked on both Framework.Desktop
and Framework.Compact which did not support DateTimePicker.
Unfortunately I don't have time to finish the last touches to make it work
to my satisfaction for a public release.
Basically the painting of the arrows (dependent of the size of the Control)
and the squibble (circle around the "Today" word) are the main thing to be
done.
This code was base of a Public MS-Source for compact and advanced to support
Internationalising (First day of Week, Months and "Today" etc.)
The Control can be resized according to used Font / Size with logic to fit
screen (needed in Compact).
It is dependent on using the CutureInfo and of course DateTime.
Certain extensions were build in due to desires from others like
Minimum/Maximum Date Support, Font, Background/Foreground colours
As well as an extra class DateTimePicker_CultureInfo to support the "Today"
word and a Parameter to override the FirstdayOfWeek set by CultureInfo.
Otherwise the Methods/Variable conform to the Framework version.
An Windows EXE can be downloaded at :
http://www.mj10777.de/NETFramework/Compact/DateTimePicker/index.htm
Although that would not be the last version.
I would send the code (including the Demo Project) to anyone who would like
to use this as a base for the Mono project (which means it must remain
Open-Source).
The code is fully documented and there is no Desktop/Compact depended C#
code.
I just tried to compile my version of the DateTimePicker on the latest CVS
Version and received errors on :
ContextMenu and NumericUpDown
Which means these must be implemented before DateTimePicker can be used.
ContextMenu is not on the TODO list.
Hoping that this may help getting the Mono Project one step forward .
Mark Johnson, Berlin Germany
mj10777@mj10777.de
------=_NextPart_000_0000_01C501E5.33DF2DD0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DDE link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Last October I =
offered to
supply the c# code for DateTimePicker, but there was no =
response.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>I have included =
the
DateTimePicker.cs that I compile under Mono last =
October.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>(H:\CVS\mcs\class\Managed.Windows.Forms\System.Windows.Forms)</span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>If ContextMenu =
and NumericUpDown
have in the mean time be resolve it should run.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>This E-Mail and =
the
Mono_DateTimePicker.zip can be found at:</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> http://www.mj10777.de/NETFramework/Mono/DateTimePicker/index.h=
tm</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'>Mark Johnson, Berlin =
Germany</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans =
MS"'>mj10777@mj10777.de</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Here is the =
Original Mail
from 05.10.2004 :</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>DateTimePicker : =
offer to
contribute code developed for Compact</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>This year I =
worked on a
DateTimePicker that worked on both Framework.Desktop</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>and =
Framework.Compact
which did not support DateTimePicker.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Unfortunately I =
don't have
time to finish the last touches to make it work</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>to my =
satisfaction for a
public release.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Basically the =
painting of
the arrows (dependent of the size of the Control)</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>and the squibble =
(circle
around the "Today" word) are the main thing to =
be</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>done.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>This code was =
base of a
Public MS-Source for compact and advanced to support</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>Internationalising (First
day of Week, Months and "Today" etc.)</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>The Control can =
be resized
according to used Font / Size with logic to fit</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>screen (needed in
Compact).</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>It is dependent =
on using
the CutureInfo and of course DateTime.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Certain =
extensions were
build in due to desires from others like</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Minimum/Maximum =
Date
Support, Font, Background/Foreground colours</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>As well as an =
extra class
DateTimePicker_CultureInfo to support the =
"Today"</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>word and a =
Parameter to
override the FirstdayOfWeek set by CultureInfo.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Otherwise the
Methods/Variable conform to the Framework version.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>An Windows EXE =
can be
downloaded at :</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>http://www.mj10777.de/NETFramework/Compact/DateTimePicker/index.htm<=
/span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Although that =
would not be
the last version.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>I would send the =
code
(including the Demo Project) to anyone who would like</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>to use this as a =
base for
the Mono project (which means it must remain</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>Open-Source).</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>The code is fully =
documented
and there is no Desktop/Compact depended C#</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'>code.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>I just tried to =
compile my
version of the DateTimePicker on the latest CVS</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Version and =
received
errors on :</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>ContextMenu and
NumericUpDown</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Which means these =
must be implemented
before DateTimePicker can be used.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>ContextMenu is =
not on the
TODO list.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Hoping that this =
may help
getting the Mono Project one step forward .</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'>Mark Johnson, Berlin =
Germany</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans =
MS"'>mj10777@mj10777.de</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0000_01C501E5.33DF2DD0--