Attached is a patch to fix #79406. The tab would not get default focus when nunit-gui starts because the SelectActiveControl() was running before the Form.OnLoad, and the initialization in OnLoad can affect the selection of the default control.
andreia gaita
Index: ChangeLog =================================================================== --- ChangeLog (revision 66387) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2006-10-07 Andreia Gaita <[EMAIL PROTECTED]> + * Form.cs: The active control should be selected after the + OnLoad so that any child control initialization that affects + the selection is done. Fixes #79406 + 2006-10-06 Chris Toshok <[EMAIL PROTECTED]> * XplatUIX11.cs: This is perhaps a dangerous change, but it seems Index: Form.cs =================================================================== --- Form.cs (revision 66275) +++ Form.cs (working copy) @@ -1446,13 +1446,14 @@ [EditorBrowsable(EditorBrowsableState.Advanced)] protected override void OnCreateControl() { base.OnCreateControl (); - SelectActiveControl (); if (menu != null) { XplatUI.SetMenu(window.Handle, menu); } OnLoad(EventArgs.Empty); + + SelectActiveControl (); // Send initial location OnLocationChanged(EventArgs.Empty);
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list