[Mono-winforms-list] DateTimePicker : offer to contriute code developed for Compact

Mark Johnson mj10777@web.de
Tue, 5 Oct 2004 06:49:09 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C4AAA7.6BF33DA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

 

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.

 

Basicly 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 colors

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/Variabeln 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 lastest CVS
Version and recieved 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_01C4AAA7.6BF33DA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<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
	{mso-style-type:personal;
	font-family:"Comic Sans MS";
	color:windowtext;
	font-weight:bold;
	font-style:normal;
	text-decoration:none none;}
span.E-MailFormatvorlage19
	{mso-style-type:personal-reply;
	font-family:"Comic Sans MS";
	color:green;
	font-weight:bold;
	font-style:normal;
	text-decoration:none none;}
@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=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>This year
I worked on a DateTimePicker that worked on both Framework.Desktop and
Framework.Compact which did not support =
DateTimePicker.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Unfortunately
I don&#8217;t have time to finish the last touches to make it work to my
satisfaction for a public release.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Basicly
the painting of the arrows (dependent of the size of the Control) and =
the
squibble (circle around the &#8220;Today&#8221; word) are the main thing =
to be
done.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>This code
was base of a Public MS-Source for compact and advanced to support
Internationalising (First day of Week, Months and &#8220;Today&#8221; =
etc.)<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>The
Control can be resized according to used Font / Size with logic to fit =
screen
(needed in Compact).<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>It is
dependent on using the CutureInfo and of course =
DateTime.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Certain
extensions were build in due to desires from others like Minimum/Maximum =
Date
Support, Font, Background/Foreground =
colors<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>As well
as an extra class DateTimePicker_CultureInfo to support the =
&#8220;Today&#8221;
word and a Parameter to override the FirstdayOfWeek set by =
CultureInfo.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Otherwise
the Methods/Variabeln conform to the Framework =
version.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>An
Windows EXE can be downloaded at :<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><a
href=3D"http://www.mj10777.de/NETFramework/Compact/DateTimePicker/index.h=
tm">http://www.mj10777.de/NETFramework/Compact/DateTimePicker/index.htm</=
a><o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>although
that would not be the last version.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>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).<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>The code
is fully documented and there is no Desktop/Compact depended C# =
code.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 color=3Dgreen face=3D"Comic Sans =
MS"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:green;
font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>I just
tried to compile my version of the DateTimePicker on the lastest CVS =
Version
and recieved errors on :<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>ContextMenu
and NumericUpDown<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Which
means these must be implemented before DateTimePicker can be =
used.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>ContextMenu
is not on the TODO list.<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'>Hoping
that this may help getting the Mono Project one step forward =
&#8230;<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><st1:PersonName w:st=3D"on"><strong><b><font =
size=3D2
 face=3D"Comic Sans MS"><span =
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>Mark
 Johnson</span></font></b></strong></st1:PersonName><strong><b><font =
size=3D2
face=3D"Comic Sans MS"><span =
style=3D'font-size:10.0pt;font-family:"Comic Sans MS"'>,
Berlin Germany</span></font></b></strong><o:p></o:p></p>

<p class=3DMsoNormal><strong><b><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></b></strong><o:p></o:p></p>

<p class=3DMsoNormal><b><font size=3D2 face=3D"Comic Sans MS"><span =
style=3D'font-size:
10.0pt;font-family:"Comic Sans =
MS";font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

</div>

</body>

</html>

------=_NextPart_000_0000_01C4AAA7.6BF33DA0--