https://bugzilla.novell.com/show_bug.cgi?id=364914
User [email protected] added comment https://bugzilla.novell.com/show_bug.cgi?id=364914#c2 Andy Hume <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Andy Hume <[email protected]> 2009-01-05 14:05:57 MST --- Selection seems to work well. :-) Wrong events are raised however. From MSDN: "The _DateChanged_ event occurs during any date selection, whether by mouse, keyboard, or code. The _DateSelected_ event is similar, but it occurs only at the end of a date selection made using the mouse." Currently Mono raises DateSelected events at each mouse selection change, it should only be raised only on the completion of the selection. (I haven't done any checking of other events e.g. the [Mouse-]Click events). Repro app attached. Compile with the following (note *without* /t:winexe to see logging on console): gmcs /pkg:dotnet MonthCalendarDateInit.cs * Test A 1. Set MaxCount=3. We will watch the events being logged on the console. 2. Use the mouse to click on a date cell (I recommend one in the first or second column). Don't release the mouse button until told to do so below. Expect a DateChanged event with start/end=to/from="selected date" 3. Drag to the next date cell Expect a DateChanged event with start/end=to/from="selected range" 4. Drag to the next date cell Expect same as last. 5. Drag to the next date cell. This is past the MaxSelectionCount range. Expect *no* event (and no UI change). 6. Release the mouse button. Expect a *DateSelected* event with start/end=to/from="selected range". Note the selection can be done forward/ and backward. * Test B -- using the keyboard 1. Set MaxCount=3, if not already. 2. Use the arrow keys to select a new date. Expect one date selected. Expect a DateChanged event with start/end=to/from="selected date" 3. Hold shift and use the arrow keys to move to the next date cell Expect a DateChanged event with start/end=to/from="selected range" 4. Hold shift and use the arrow keys to move to the next date cell Expect same as last. 5. Hold shift and use the arrow keys to (attempt to) move to the next date cell. This is past the MaxSelectionCount range. Expect *no* event (and no UI change). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
