[Mono-dev] Patch for different behavior on Auto-Check RadioButton
jingnan si
jingnan.si at gmail.com
Wed Nov 12 20:46:42 EST 2008
Hi,
When using several auto-check RadioButton, the order of event notify has
problem which prevent my applcation work correctly. for example
RadioButtonA (checked) RadioButtonB (unchecked)
when user clicked on RaidoButtonB, the current implementation is
1) RadioButtonA CheckedChangedEvent
2) RadioButtonB Checked = true
3) RadioButtonB CheckedChangeEvent
so when user test RadioButtonA.Checked and RadioButtonB.Checked property in
the event handler of RadioButtonA.CheckedChange event, both of them are
false.
It is not the same behavior as MS .Net framework.
I create a simple patch to make the same as MS .net. just update the check
state before call UpdateSibling
Reagards,
diff -r
mono-2.0/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
original/mono-2.0/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
243d242
< check_state = CheckState.Checked;
244a244
> check_state = CheckState.Checked;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081113/2ea7d0bf/attachment.html
More information about the Mono-devel-list
mailing list