зеркало из https://github.com/mono/mail-archives.git
242 строки
5.0 KiB
HTML
242 строки
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 424267] New: DateTimePicker: Space bar does not toggle checkbox
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20424267%5D%20New%3A%20DateTimePicker%3A%20Space%20bar%20does%20not%0A%09toggle%20checkbox&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="079253.html">
|
|
<LINK REL="Next" HREF="078977.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 424267] New: DateTimePicker: Space bar does not toggle checkbox</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20424267%5D%20New%3A%20DateTimePicker%3A%20Space%20bar%20does%20not%0A%09toggle%20checkbox&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 424267] New: DateTimePicker: Space bar does not toggle checkbox">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Mon Sep 8 06:03:58 EDT 2008</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="079253.html">[Mono-bugs] [Bug 424265] Nullable DateTimePicker: unchecked checkbox prevents losing focus
|
|
</A></li>
|
|
<LI>Next message: <A HREF="078977.html">[Mono-bugs] [Bug 424267] DateTimePicker: Space bar does not toggle checkbox
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#78968">[ date ]</a>
|
|
<a href="thread.html#78968">[ thread ]</a>
|
|
<a href="subject.html#78968">[ subject ]</a>
|
|
<a href="author.html#78968">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=424267">https://bugzilla.novell.com/show_bug.cgi?id=424267</A>
|
|
|
|
|
|
Summary: DateTimePicker: Space bar does not toggle checkbox
|
|
Product: Mono: Class Libraries
|
|
Version: SVN
|
|
Platform: x86
|
|
OS/Version: Windows Vista
|
|
Status: NEW
|
|
Severity: Normal
|
|
Priority: P5 - None
|
|
Component: Windows.Forms
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">kobruleht2 at hot.ee</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: ---
|
|
|
|
|
|
To reproduce, run code, press space bar
|
|
|
|
Observed: checkbox is not cleared
|
|
|
|
Expected: checkbox must be cleared
|
|
|
|
Code:
|
|
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
class Test
|
|
{
|
|
static void Main()
|
|
{
|
|
Application.Run(new ReportDialogForm());
|
|
}
|
|
}
|
|
|
|
class ReportDialogForm : Form
|
|
{
|
|
|
|
public ReportDialogForm()
|
|
{
|
|
Controls.Add(new MyDateTimePicker());
|
|
var tb = new TextBox();
|
|
tb.Top = 30;
|
|
Controls.Add(tb);
|
|
}
|
|
|
|
class MyDateTimePicker : DateTimePicker
|
|
{
|
|
public MyDateTimePicker()
|
|
: base()
|
|
{
|
|
MinDate = new DateTime(1900, 1, 1);
|
|
MaxDate = DateTime.Today;
|
|
Format = DateTimePickerFormat.Short;
|
|
ShowCheckBox = true;
|
|
}
|
|
|
|
public new DateTime? Value
|
|
{
|
|
get
|
|
{
|
|
if (!this.Checked)
|
|
return null;
|
|
return base.Value;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
base.Value = (DateTime)value;
|
|
Checked = true;
|
|
}
|
|
else
|
|
{
|
|
base.Value = DateTime.Today.AddDays(1);
|
|
base.Value = DateTime.Today;
|
|
Checked = false;
|
|
}
|
|
base.OnValueChanged(EventArgs.Empty);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
--
|
|
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="079253.html">[Mono-bugs] [Bug 424265] Nullable DateTimePicker: unchecked checkbox prevents losing focus
|
|
</A></li>
|
|
<LI>Next message: <A HREF="078977.html">[Mono-bugs] [Bug 424267] DateTimePicker: Space bar does not toggle checkbox
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#78968">[ date ]</a>
|
|
<a href="thread.html#78968">[ thread ]</a>
|
|
<a href="subject.html#78968">[ subject ]</a>
|
|
<a href="author.html#78968">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|