mono.git
17 years ago * TextControl.cs:
Jackson Harper [Tue, 20 Mar 2007 21:48:08 +0000 (21:48 -0000)]
    * TextControl.cs:
        * TextBoxBase.cs: Allow different types of line endings. \r,
        * \r\n, \r\r\n, and \n.

svn path=/trunk/mcs/; revision=74708

17 years ago2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 20 Mar 2007 21:40:37 +0000 (21:40 -0000)]
2007-03-20  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Replace TODO on all EnumerateMetafile overloads.

svn path=/trunk/mcs/; revision=74707

17 years ago* ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 20:01:36 +0000 (20:01 -0000)]
* ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
  very probably a more complicated calculation there. Update the
  textbox' ForeColor and BackColor when the ComboBox' colors are
  changed. Change the border change in LayoutComboBox to only affect
  the textbox, not all the calculations there. Seems to fix most of
  #79436.

svn path=/trunk/mcs/; revision=74704

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 19:55:11 +0000 (19:55 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.Enums): Removed; they're now included in
`TypeContainer.Types'.

svn path=/trunk/mcs/; revision=74702

17 years agoAdded ServletAuthentication module
Konstantin Triger [Tue, 20 Mar 2007 17:29:30 +0000 (17:29 -0000)]
Added ServletAuthentication module

svn path=/trunk/mono/; revision=74700

17 years ago* ComboBox.cs: Handle Home and End keys as well as all combinations of
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 17:16:48 +0000 (17:16 -0000)]
* ComboBox.cs: Handle Home and End keys as well as all combinations of
  modifiers + navigation keys as input keys, enables advanced text
  selection in the combobox (like Shift+Left Arrow for instance).
  ComboTextBox now overrides Focused and returns whatever
  ComboBox.Focused returns, since it really should be focused
  whenever the ComboBox is. Fixes #80795. Also make the border around
  the text box one pixel bigger, as mentioned in #79436.

svn path=/trunk/mcs/; revision=74699

17 years agoAdded ServletAuthenticationModule.cs; refactoring
Konstantin Triger [Tue, 20 Mar 2007 17:15:53 +0000 (17:15 -0000)]
Added ServletAuthenticationModule.cs; refactoring

svn path=/trunk/mcs/; revision=74698

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 16:13:23 +0000 (16:13 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

* class.cs
(TypeContainer.DefineType): Don't call ResolveMembers() here.
(TypeContainer.DoResolveMembers): Call DefineType() on our
`compiler_generated' classes; moved here from DefineNestedTypes().

* rootcontext.cs
(RootContext.ResolveTree): Call ResolveMembers() on all
TypeContainer's in the `type_container_resolve_order'.

svn path=/trunk/mcs/; revision=74697

17 years ago2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 20 Mar 2007 15:58:06 +0000 (15:58 -0000)]
2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>

* BaseDataBoundControl.cs: fix as per MSDN - the property is set
only if data binding doesn't occur.

svn path=/trunk/mcs/; revision=74696

17 years ago * TreeView.cs: Don't offset the images, this was causing some
Jackson Harper [Tue, 20 Mar 2007 15:46:06 +0000 (15:46 -0000)]
    * TreeView.cs: Don't offset the images, this was causing some
        artifacts when expanding/collapsing with images that were the
        exact height of the treenode.

svn path=/trunk/mcs/; revision=74695

17 years ago2007-03-20 Juan Cristóbal Olivares <juancri@gmail.com>
Miguel de Icaza [Tue, 20 Mar 2007 15:39:19 +0000 (15:39 -0000)]
2007-03-20  Juan Cristóbal Olivares <juancri@gmail.com>

        * List.cs (FindAll): Optimize FindAll using a bitmask to
        * determine
        the number of positive matches, this increases the performance
in
        all cases below 10,000,000 elements extensively:

        100 elements:
        old method:             00:00:00.0126610 (26x)
        stackalloc bit method:  00:00:00.0004750 (1x)
        array bit method:       00:00:00.0010700 (2x)
        heap bit method:        00:00:00.0038830 (8x)

        1,000 elements:
        old method:             00:00:00.0139250 (24x)
        stackalloc bit method:  00:00:00.0005670 (1x)
        array bit method:       00:00:00.0010890 (2x)
        heap bit method:        00:00:00.0034920 (6x)

        10,000 elements:
        old method:             00:00:00.0136110 (12x)
        stackalloc bit method:  00:00:00.0011240 (1x)
        array bit method:       00:00:00.0016450 (1.4x)
        heap bit method:        00:00:00.0043110 (3x)

        50,000 elements:
        old method:             00:00:00.0175970 (3x)
        stackalloc bit method:  00:00:00.0085630 (1.5x)
        array bit method:       00:00:00.0055010 (1x)
        heap bit method:        00:00:00.0099590 (1.8x)

        100,000 elements:
        old method:             00:00:00.0210330 (2x)
        array bit method:       00:00:00.0100430 (1x)
        heap bit method:        00:00:00.0154150 (1.5x)

        1,000,000 elements:
        old method:             00:00:00.1243730 (1.2x)
        array bit method:       00:00:00.0973110 (1x)
        heap bit method:        00:00:00.1285650 (1.3x)

        10,000,000 elements:
        old method:             00:00:00.9252570 (1x)
        array bit method:       00:00:00.9632300 ( 1.05x)
        heap bit method:        00:00:01.1098490 (1.20x)

svn path=/trunk/mcs/; revision=74694

17 years agoworkaround Derby bugs to let it unload in full WAR mode
Konstantin Triger [Tue, 20 Mar 2007 15:30:59 +0000 (15:30 -0000)]
workaround Derby bugs to let it unload in full WAR mode

svn path=/trunk/mcs/; revision=74693

17 years ago2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 20 Mar 2007 14:55:19 +0000 (14:55 -0000)]
2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>

* GridView.cs: fixed: PageIndex considers PageCount.

svn path=/trunk/mcs/; revision=74689

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 14:48:36 +0000 (14:48 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: implement AppRelativeCurrentExecutionFilePath.

svn path=/trunk/mcs/; revision=74687

17 years agoRevert the change as it causes 3 tests to fail, need to run tests on Windows first.
Marek Habersack [Tue, 20 Mar 2007 13:40:35 +0000 (13:40 -0000)]
Revert the change as it causes 3 tests to fail, need to run tests on Windows first.

svn path=/trunk/mcs/; revision=74685

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 12:16:16 +0000 (12:16 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* BaseDataBoundControl.cs: fix as per MSDN - the property is set
only if data binding doesn't occur.

* DataBoundControl.cs: avoid endless recursion here. Fixes bug #81175

svn path=/trunk/mcs/; revision=74679

17 years ago2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 20 Mar 2007 11:25:20 +0000 (11:25 -0000)]
2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>

* Control.cs: fixed ResolveClientUrl method.

svn path=/trunk/mcs/; revision=74678

17 years agoAdd line accidentally removed.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 10:58:27 +0000 (10:58 -0000)]
Add line accidentally removed.

svn path=/trunk/mcs/; revision=74677

17 years ago* TrackBar.cs: Query the theme for the correct value when the mouse
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 10:48:25 +0000 (10:48 -0000)]
* TrackBar.cs: Query the theme for the correct value when the mouse
  moves and the thumb is pressed.
* Theme.cs: Added TrackBarValueFromMousePosition
* ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
  implementation was updating the trackbar value when drawing, now
  the drawing methods only draw. Fixes #80900. Refactored the
  calculations out to TrackBarValueFromMousePosition and
  GetTrackBarDrawingInfo, so that TrackBar can get the correct value
  according to the mouse position whenever it wants to. Changed the
  light coloured pen when drawing the thumb from ControlLight to
  ControlLightLight, because the ControlLight is the same colour as
  the background so the 3D effect is lost.

svn path=/trunk/mcs/; revision=74676

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 10:26:18 +0000 (10:26 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* Form.cs: In ShowDialog uses MainForm as transient form when no form is
defined. Fixes #80784.

svn path=/trunk/mcs/; revision=74675

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 09:19:05 +0000 (09:19 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* ResourceExpressionBuilder.cs: if the resource class key is null
or empty, call GetLocalResourceObject, if not,
GetGlobalResourceObject. Fixes bug #81174.

svn path=/trunk/mcs/; revision=74672

17 years agoAdd back change that was accidentally removed (MdiParent is always null after closing...
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 09:10:55 +0000 (09:10 -0000)]
Add back change that was accidentally removed (MdiParent is always null after closing a form.)

svn path=/trunk/mcs/; revision=74671

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:43:28 +0000 (08:43 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* FormsAuthentication.cs, Roles.cs: remove roles cookie on sign
out. Fixes bug #81195. Patch from Mike Morano <mmorano@mikeandwan.us>.

svn path=/trunk/mcs/; revision=74670

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:34:48 +0000 (08:34 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* LoginStatusTest.cs: add a test for CssClass set on the rendered
control

svn path=/trunk/mcs/; revision=74669

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:18:54 +0000 (08:18 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* LoginStatus.cs: render login/logout controls with the CssClass
set from the parent control. Fixes bug #81196

svn path=/trunk/mcs/; revision=74668

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:11:46 +0000 (08:11 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* ContextMenuStrip.cs: align with the change introduced in
revision 74664.

svn path=/trunk/mcs/; revision=74667

17 years agoIn System.Windows.Forms:
Everaldo Canuto [Tue, 20 Mar 2007 06:42:31 +0000 (06:42 -0000)]
In System.Windows.Forms:
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
in SetTopmost.

In System.Windows.Forms.X11Internal:
* XplatUIX11-new.cs: Remove unneeded parameter owner in SetTopmost.

2007-03-20  Everaldo Canuto  <everaldo@simios.org>

svn path=/trunk/mcs/; revision=74664

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 06:17:14 +0000 (06:17 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* XplatUIX11-new.cs, X11Hwnd.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it
fixes Topmost behavior in X11 environments.

svn path=/trunk/mcs/; revision=74663

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 20 Mar 2007 05:23:28 +0000 (05:23 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* Control.cs (WmPaint): don't make use of the Handle property
after an event is emitted, as the user could have closed the
form/destroyed the control.  Store the Handle in a local variable
and make use of that.  Fixes bug #80768.

svn path=/trunk/mcs/; revision=74662

17 years ago * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
Everaldo Canuto [Tue, 20 Mar 2007 05:18:10 +0000 (05:18 -0000)]
* XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
behavior in X11 environments.

2007-03-20  Everaldo Canuto  <everaldo@simios.org>

svn path=/trunk/mcs/; revision=74661

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 04:55:39 +0000 (04:55 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
because on setter of topmost we dont call SetTopmost when handle is not
created.

svn path=/trunk/mcs/; revision=74660

17 years ago * TextControl.cs: Need to use SelectionLength () not
Jackson Harper [Tue, 20 Mar 2007 04:46:56 +0000 (04:46 -0000)]
    * TextControl.cs: Need to use SelectionLength () not
        selection_length, since that var is reset to -1.
        - Draw the caret when we don't have focus.
        * TextBox.cs: The selectall actually doesn't occur until the
        * first
        focus.
        * TextBoxBase.cs: Need to update the caret position after a
        selectall.

svn path=/trunk/mcs/; revision=74659

17 years ago2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Mar 2007 03:22:34 +0000 (03:22 -0000)]
2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Enable scrolling when using Tile view.

svn path=/trunk/mcs/; revision=74658

17 years agoIn System.Windows.Forms:
Everaldo Canuto [Tue, 20 Mar 2007 01:36:02 +0000 (01:36 -0000)]
In System.Windows.Forms:
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

[Fixes #80902]

* XplatUIDriver.cs: Abstract SetOwner method created.

* XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
must be implemented and was masked as todo.

* XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
GWL_HWNDPARENT.

* XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
cheking for null owner to remove transient. The SetTopmost will be change
on a decond step.

* Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
SetTopmost. Now owned forms will work properly in win32 and X11.

In System.Windows.Forms.X11Internal:
2007-03-19  Everaldo Canuto  <everaldo@simios.org>

* XplatUIX11-new.cs, X11Hwnd.cs: SetOwner implemented using same code from
SetTopmost but cheking for null owner to remove transient. The SetTopmost
will be change on a decond step.

svn path=/trunk/mcs/; revision=74656

17 years ago2007-03-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Mar 2007 01:03:30 +0000 (01:03 -0000)]
2007-03-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: Add test for BackColor, ForeColor,
UseItemStyleForSubItems.

svn path=/trunk/mcs/; revision=74655

17 years agoFix build.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:58:38 +0000 (00:58 -0000)]
Fix build.

svn path=/trunk/mcs/; revision=74654

17 years ago* EventLogger.cs: Add CountEvents.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:53:02 +0000 (00:53 -0000)]
* EventLogger.cs: Add CountEvents.
* MdiFormTest.cs: Added CloseTest.

svn path=/trunk/mcs/; revision=74653

17 years ago* MdiWindowManager.cs: Update function name.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:50:30 +0000 (00:50 -0000)]
* MdiWindowManager.cs: Update function name.
* Form.cs: After closing a form MdiParent is always null.
* MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
  better what it should do: necessary book-keeping when the form is
  closed, it should not close the form itself.

svn path=/trunk/mcs/; revision=74652

17 years ago* ListViewItem.cs: Fix back and fore color. The subitems only
Andreia Gaita [Tue, 20 Mar 2007 00:39:56 +0000 (00:39 -0000)]
* ListViewItem.cs: Fix back and fore color. The subitems only
use their own colors if they are set, otherwise use the listview's
colors. Don't set default colors on constructor for subitem.
Fixes #79315.

2007-03-19  Andreia Gaita  <avidigal@novell.com>

svn path=/trunk/mcs/; revision=74651

17 years ago2007-03-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 20 Mar 2007 00:05:58 +0000 (00:05 -0000)]
2007-03-19  Marek Safar  <marek.safar@gmail.com>

* class.cs: Use corlib to handle InternalMethodImplAttribute.

svn path=/trunk/mcs/; revision=74650

17 years ago2007-03-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 19 Mar 2007 23:59:04 +0000 (23:59 -0000)]
2007-03-19  Marek Safar  <marek.safar@gmail.com>

* MethodBuilder.cs: MethodImplAttribute cannot be destructive and overwrite
existing flags.

svn path=/trunk/mcs/; revision=74649

17 years ago2007-03-19 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 19 Mar 2007 21:48:35 +0000 (21:48 -0000)]
2007-03-19  Mike Kestner  <mkestner@novell.com>

* ListView.cs : make box selection for Details views with
FullRowSelect conform to MS behavior when clicking in the "item"
column and clicking outside the defined columns.
[Fixes case 5-6 of #80374]

svn path=/trunk/mcs/; revision=74641

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 21:17:23 +0000 (21:17 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* ScrollableControl.cs: create the controls from within the ctor,
but don't actually add them until our handle is created.  this
fixes a NRE possibility jpobst found (if you override OnLayout in
a subclass, it's called before your ctor).  Also, add a
IsHandleCreated guard to UpdateSizeGripVisibility as well.

svn path=/trunk/mcs/; revision=74638

17 years agoRevert 74623/74624 to fix build.
Jonathan Chambers [Mon, 19 Mar 2007 21:04:28 +0000 (21:04 -0000)]
Revert 74623/74624 to fix build.

svn path=/trunk/mcs/; revision=74637

17 years ago * TextBox.cs: Reduce the amount of invalidation we do.
Jackson Harper [Mon, 19 Mar 2007 21:02:46 +0000 (21:02 -0000)]
    * TextBox.cs: Reduce the amount of invalidation we do.
        * TextBoxBase.cs: Make shortcuts enabled true by default, at
        * least
        some of them are true by default on MS.
        - Add some functions to reduce the amount of invalidates we do.
        * TextControl.cs: Less invalidation.

svn path=/trunk/mcs/; revision=74636

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 20:49:59 +0000 (20:49 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

[ Fixes #81773, and *seems* to fix #81553 as well ]

* XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
AccumulateDestroyedHandles.  We need to do it *after* we send
WM_DESTROY, as the user's code can access Control.Handle in
OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
move the WM_DESTROY/zombie handling to before the call to
XDestroyWindow.  For some reason without this ordering
FormTest.RecreateHandle hangs.  This ordering is semantically
equivalent, however, as XDestroyWindow is async anyway.

svn path=/trunk/mcs/; revision=74635

17 years ago* RichBoxTest.cs: Disabled ReadOnly test until I can test it on linux.
Gert Driesen [Mon, 19 Mar 2007 20:38:52 +0000 (20:38 -0000)]
* RichBoxTest.cs: Disabled ReadOnly test until I can test it on linux.

svn path=/trunk/mcs/; revision=74633

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 20:18:28 +0000 (20:18 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * xbuild/Microsoft.Common.tasks: Added CombinePath task.

svn path=/trunk/mcs/; revision=74632

17 years agoForgot to commmit the .cs file.
Marek Sieradzki [Mon, 19 Mar 2007 20:17:15 +0000 (20:17 -0000)]
Forgot to commmit the .cs file.

svn path=/trunk/mcs/; revision=74631

17 years ago* RichBoxTest.cs: Enabled ReadOnly test.
Gert Driesen [Mon, 19 Mar 2007 20:05:38 +0000 (20:05 -0000)]
* RichBoxTest.cs: Enabled ReadOnly test.
* RichTextBox.cs: Reset backcolor_set after setting default.

svn path=/trunk/mcs/; revision=74630

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 19:55:47 +0000 (19:55 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * CombinePathTest.cs: Added.

svn path=/trunk/mcs/; revision=74629

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 19:54:36 +0000 (19:54 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * CombinePath.cs: Implemented.
`

svn path=/trunk/mcs/; revision=74628

17 years ago* PaintEventArgsTest.cs: Enabled tests for bug #78448 on 2.0 profile.
Gert Driesen [Mon, 19 Mar 2007 19:47:58 +0000 (19:47 -0000)]
* PaintEventArgsTest.cs: Enabled tests for bug #78448 on 2.0 profile.

svn path=/trunk/mcs/; revision=74627

17 years ago * ScrollableControl.cs: the scroll position should not effect the
Chris Toshok [Mon, 19 Mar 2007 19:41:14 +0000 (19:41 -0000)]
* ScrollableControl.cs: the scroll position should not effect the
canvas size.  commit patch from georgegiolfan@yahoo.com, which
fixes some really bizarre behavior on resizing.  Fixes bug #80778.

2007-03-19  Chris Toshok  <toshok@ximian.com>

svn path=/trunk/mcs/; revision=74626

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 19:30:55 +0000 (19:30 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* ScrollableControl.cs: clean this up a bit.  create the
scrollbars in the ctor and just show/hide them as needed.  Also,
make hscroll_visible/vscroll_visible internal to Recalculate, and
just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
everywhere else.  This seems to fix the scrollbars appearing
beneath the content for me (i have *no* idea why that is,
however.)

svn path=/trunk/mcs/; revision=74625

17 years agoUpdated tests.
Marek Safar [Mon, 19 Mar 2007 19:29:30 +0000 (19:29 -0000)]
Updated tests.

svn path=/trunk/mcs/; revision=74624

17 years ago2007-03-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 19 Mar 2007 19:28:32 +0000 (19:28 -0000)]
2007-03-19  Marek Safar  <marek.safar@gmail.com>

* class.cs: Don't override existing implementation flags in all cases.

svn path=/trunk/mcs/; revision=74623

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 19:27:57 +0000 (19:27 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripTest.cs: Enable gert's DockSize test for bug #80762.

svn path=/trunk/mcs/; revision=74622

17 years agoupdate cases fixed by r74619
Mike Kestner [Mon, 19 Mar 2007 18:52:42 +0000 (18:52 -0000)]
update cases fixed by r74619

svn path=/trunk/mcs/; revision=74621

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 18:46:45 +0000 (18:46 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* Font.cs: Add a better exception for trying to create a font
where the requested style is not available.  [Fixes #81194]

2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* TestFont.cs: Add a test for exception thrown when an unavailable font
style is requested.  (Marked NotWorking due to being platform specific.)

svn path=/trunk/mcs/; revision=74620

17 years ago2007-03-19 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 19 Mar 2007 18:30:48 +0000 (18:30 -0000)]
2007-03-19  Mike Kestner  <mkestner@novell.com>

* ListView.cs : make box selection for Details views without
FullRowSelect dependent on the text bounds, not item bounds.
* ListViewItem.cs : add an internal property to obtain the TextBounds
in Details view.  [Fixes case 1 of #80374]

svn path=/trunk/mcs/; revision=74619

17 years ago* PaintEventArgs.cs (Dispose): Only dispose of graphics object if
Andreia Gaita [Mon, 19 Mar 2007 18:11:29 +0000 (18:11 -0000)]
* PaintEventArgs.cs (Dispose): Only dispose of graphics object if
we're < 2.0. #78448 && #80316

2007-03-19  Andreia Gaita  <avidigal@novell.com>

svn path=/trunk/mcs/; revision=74618

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 17:19:42 +0000 (17:19 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* FontDialog.cs: Don't crash when we switch to a new font that doesn't
have the same style available as the previously selected one.  Also,
support FixedPitchOnly property.  [Fixes bugs #80918, #80947]

svn path=/trunk/mcs/; revision=74616

17 years agoAdd providers by default in a portal specific web.config.
Noam Lampert [Mon, 19 Mar 2007 16:26:55 +0000 (16:26 -0000)]
Add providers by default in a portal specific web.config.

svn path=/trunk/mcs/; revision=74614

17 years ago * TextControl.cs: Add an alignment property that all new lines
Jackson Harper [Mon, 19 Mar 2007 15:41:35 +0000 (15:41 -0000)]
    * TextControl.cs: Add an alignment property that all new lines
        will be given.
        - Make sure to use the align shift when calculating the line's X
        position.
        * TextBox.cs: Set the alignment on the document as well as on
        * all
        the document lines.

svn path=/trunk/mcs/; revision=74613

17 years ago* System.Configuration.dll.sources, System.Configuration20.vmwcsproj: removed Ordinal...
Vladimir Krasnov [Mon, 19 Mar 2007 15:34:42 +0000 (15:34 -0000)]
* System.Configuration.dll.sources, System.Configuration20.vmwcsproj: removed OrdinalComparer.cs
* ConfigurationSectionCollection.cs,
* ConfigurationSectionGroupCollection.cs,
* PropertyInformationCollection.cs,
* SectionGroupInfo.cs: used StringComparer.Ordinal instead of OrdinalComparer

svn path=/trunk/mcs/; revision=74612

17 years ago* FormHandleTest.cs: Create new forms at a few specific places + a few
Rolf Bjarne Kvinge [Mon, 19 Mar 2007 15:20:26 +0000 (15:20 -0000)]
* FormHandleTest.cs: Create new forms at a few specific places + a few
  more corner cases. No longer not working.
* MdiFormHandleTest.cs: These tests are working now.
* FormTest.cs: IsHandleCreated is working now, the parented tests are
  not working.

svn path=/trunk/mcs/; revision=74611

17 years ago* Control.cs: ControlCollection.Add: Remove a couple of duplicated
Rolf Bjarne Kvinge [Mon, 19 Mar 2007 15:15:06 +0000 (15:15 -0000)]
* Control.cs: ControlCollection.Add: Remove a couple of duplicated
  casts and throw if setting the parent of an mdichild that already
  has an mdiparent. Update signature for 2.0 profile. ProductName: If
  there's no AssemblyProductAttribute in the assembly, use the type's
  namespace (as MS seems to do). CreateControl: don't create the
  handle if the control is not visible (according to MS behaviour and
  spec).  SetTopLevel: Only create handle if the control is not a
  form. Change FocusInternal to virtual so that it can be overriden
  by Form.

* TextBox.cs: Update call to FocusInternal.
* Form.cs: Always create the handle when calling Focus on a MdiChild.
  The form is not a toplevel form when it's a mdi child, so update
  is_toplevel accordingly. ShowIcon/TransparencyKey: avoid creating
  the handle if it hasn't been created. Show (IWin32Window): Don't
  allow this overload for toplevel windows.
  CenterToParent/CenterToScreen/Select: create the handle as MS does.
  SetVisibleCore: if called on a MdiChild and the parent isn't
  visible yet, save the visibility and restore it when the parent is
  made visible.
* ScrollableControl.cs: Refactor out scrollbar visibility code to
  separate methods, since the visibility of the scrollbars can be
  changed from several places, not only from AutoScroll.

svn path=/trunk/mcs/; revision=74609

17 years ago * RichTextBox.cs: Enable shortcuts by default.
Jackson Harper [Mon, 19 Mar 2007 14:57:15 +0000 (14:57 -0000)]
    * RichTextBox.cs: Enable shortcuts by default.
        * TextBoxBase.cs: Add conditional shortcuts.

svn path=/trunk/mcs/; revision=74608

17 years ago2007-03-19 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Mon, 19 Mar 2007 14:09:50 +0000 (14:09 -0000)]
2007-03-19  Jonathan Chambers  <joncham@gmail.com>

* libmono.vcproj, genmdesc.vcproj: Reset browse information
settings to default.

Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=74607

17 years ago2007-03-19 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 19 Mar 2007 12:01:26 +0000 (12:01 -0000)]
2007-03-19  Everaldo Canuto  <everaldo@simios.org>

* MenuItemTest.cs: Add test for OwnerDraw (#81182).

svn path=/trunk/mcs/; revision=74602

17 years ago2007-03-19 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 19 Mar 2007 11:59:11 +0000 (11:59 -0000)]
2007-03-19 Igor Zelmanovich <igorz@mainsoft.com>

* DataGrid.cs: fixed Save/Load view state, applying styles.

svn path=/trunk/mcs/; revision=74601

17 years ago2007-03-19 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 19 Mar 2007 11:55:54 +0000 (11:55 -0000)]
2007-03-19  Everaldo Canuto  <everaldo@simios.org>

* MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).

svn path=/trunk/mcs/; revision=74600

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 11:08:52 +0000 (11:08 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

[ Fixes bug #80604]

* XplatUIX11.cs (WaitForHwndMessage): change this to actually
swallow the message we're waiting on, instead of delivering it, as
this is only used for the WM_SHOWWINDOW raised from
MapWindow/UnmapWindow, and the message needs to be generated
(MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
before doing the Map/Unmap.  Also make sure that the Hwnd is still
alive after the message has been handled.

*before* the window is shown.

* Control.cs (CreateControl): guard a few more things inside the
if (!is_created) block, as we might end up being called again -
yay .net.
(WmShowWindow): call CreateControl if we're showing the control.

svn path=/trunk/mcs/; revision=74599

17 years ago* RichTextBoxTest.cs: Marked failing test NotWorking.
Gert Driesen [Mon, 19 Mar 2007 10:45:41 +0000 (10:45 -0000)]
* RichTextBoxTest.cs: Marked failing test NotWorking.

svn path=/trunk/mcs/; revision=74598

17 years ago* ControlTest.cs: Added InvokeTestParentHandle.
Rolf Bjarne Kvinge [Mon, 19 Mar 2007 09:04:37 +0000 (09:04 -0000)]
* ControlTest.cs: Added InvokeTestParentHandle.

svn path=/trunk/mcs/; revision=74594

17 years ago* Control.cs: Fix 2.0 signature for Invoke. Support invoking on
Rolf Bjarne Kvinge [Mon, 19 Mar 2007 09:02:46 +0000 (09:02 -0000)]
* Control.cs: Fix 2.0 signature for Invoke. Support invoking on
  controls without a handle if they have any parent with a handle. In
  Dispose add a check whether the handle is created or not before
  calling BeginInvoke, this removes the need of the extra disposing
  parameter (which was bogus anyway since it didn't prevent the
  invoke from happening, it only skipped the check for an existing
  handle, meaning that the invoke would call on an inexistent
  handle).

svn path=/trunk/mcs/; revision=74593

17 years ago2007-03-19 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 19 Mar 2007 07:29:19 +0000 (07:29 -0000)]
2007-03-19  Everaldo Canuto  <everaldo@simios.org>

* MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
appears in taskbar.

svn path=/trunk/mcs/; revision=74592

17 years ago2007-03-18 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 19 Mar 2007 07:11:49 +0000 (07:11 -0000)]
2007-03-18  Everaldo Canuto  <everaldo@simios.org>

* MessageBox.cs:
- Fixed a problem that dont show help button for messages with 3 buttons.
- Refactory button size and position calculations, now dont use fixed
values, also fixed button sizes (#80043) and form's border space.
- AddButton method created, now all other AddButton methods call this one.
- Some other source code cosmetic changes.

svn path=/trunk/mcs/; revision=74591

17 years ago * RichTextBox.cs: Don't do this all fonts must match check if
Jackson Harper [Mon, 19 Mar 2007 00:17:34 +0000 (00:17 -0000)]
    * RichTextBox.cs: Don't do this all fonts must match check if
        there is only one char selected.

svn path=/trunk/mcs/; revision=74580

17 years ago2007-03-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 19 Mar 2007 00:06:33 +0000 (00:06 -0000)]
2007-03-19  Marek Habersack  <mhabersack@novell.com>

* WebConfigurationSettings.cs: another fix to the
GetConfigFromFileName logic - the passed "filepath" must not end
with a slash when called recursively, or it will lead to endless
recursion.

svn path=/trunk/mcs/; revision=74578

17 years ago * TreeView.cs: ScrollWindow works properly now, so we don't need
Jackson Harper [Sun, 18 Mar 2007 23:29:04 +0000 (23:29 -0000)]
    * TreeView.cs: ScrollWindow works properly now, so we don't need
        to screw around with the scroll area.  This fixes some artifacts
        when expanding and collapsing.

svn path=/trunk/mcs/; revision=74576

17 years ago * TextBoxBase.cs: Allow updating the selection position when the
Jackson Harper [Sun, 18 Mar 2007 23:01:21 +0000 (23:01 -0000)]
    * TextBoxBase.cs: Allow updating the selection position when the
        cursor is outside the textarea, but we have a capture.
        * TextControl.cs: A special case for when the cursor is outside
        the bounds of the TB.

svn path=/trunk/mcs/; revision=74575

17 years ago2007-03-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 18 Mar 2007 22:12:53 +0000 (22:12 -0000)]
2007-03-18  Marek Habersack  <mhabersack@novell.com>

* UrlUtils.cs: GetDirectory always returns a path with trailing
slash.

2007-03-18  Marek Habersack  <mhabersack@novell.com>

* WebConfigurationSettings.cs: fix the GetConfigFromFileName
directory logic.

2007-03-18  Marek Habersack  <mhabersack@novell.com>

* BaseParser.cs: fix BaseVirtualDir to always return app-absolute
paths.

svn path=/trunk/mcs/; revision=74574

17 years ago2007-03-18 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 18 Mar 2007 22:04:17 +0000 (22:04 -0000)]
2007-03-18  Alp Toker  <alp@atoker.com>

* UnmanagedMemoryStream.cs:
* Directory.cs: Exception message typo fixes.

svn path=/trunk/mcs/; revision=74573

17 years ago * RTF.cs: Added support for metafiles and use the new picture
Jackson Harper [Sun, 18 Mar 2007 21:53:27 +0000 (21:53 -0000)]
    * RTF.cs:  Added support for metafiles and use the new picture
        class.
        * Picture.cs: New class for handling pictures and their
        attributes.

        * TextBoxBase.cs: Remove image pasting code for now.  There is
        * no
        way to get an image on the clipboard right now anyways.
        * TextControl.cs:
        * RichTextBox.cs: Use the new RTF Picture class for pictures.

svn path=/trunk/mcs/; revision=74572

17 years ago2007-03-18 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Sun, 18 Mar 2007 20:48:45 +0000 (20:48 -0000)]
2007-03-18  Everaldo Canuto  <everaldo@simios.org>

* MessageBox.cs:
- Set window properties in constructor intead of on CreateParams.
- Remove topmost from Window ExStyle.
- Set ShowInTaskbar to false.
- Set form border to FixedDialog.
- Some cosmetic changes and remove unneeded comments.
- It fixes itens 2,3 and 4 of bug #80043.

svn path=/trunk/mcs/; revision=74571

17 years agotypo fix
Igor Zelmanovich [Sun, 18 Mar 2007 13:43:46 +0000 (13:43 -0000)]
typo fix

svn path=/trunk/mcs/; revision=74563

17 years agoRefactoring: use MethodInfo instead of method name for 2.0 profile
Konstantin Triger [Sun, 18 Mar 2007 13:41:17 +0000 (13:41 -0000)]
Refactoring: use MethodInfo instead of method name for 2.0 profile

svn path=/trunk/mcs/; revision=74562

17 years ago2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 18 Mar 2007 12:56:25 +0000 (12:56 -0000)]
2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>

* VirtualPathUtility.cs: fixed GetFileName(), GetExtension() methods.

svn path=/trunk/mcs/; revision=74561

17 years ago2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 18 Mar 2007 11:41:45 +0000 (11:41 -0000)]
2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>

* VirtualPathUtility.cs: fixed GetDirectory() method.

svn path=/trunk/mcs/; revision=74555

17 years ago* TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
Gert Driesen [Sun, 18 Mar 2007 11:00:48 +0000 (11:00 -0000)]
* TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
none was explicitly set. Fixes part of bug #79949.
* RichTextBoxTest.cs: Added tests for ReadOnly effect on BackColor.
* TextBoxTest.cs: Added tests for ReadOnly effect on BackColor.

svn path=/trunk/mcs/; revision=74553

17 years agoTARGET_J2EE: enable embedding web.config into a jar
Konstantin Triger [Sun, 18 Mar 2007 10:24:47 +0000 (10:24 -0000)]
TARGET_J2EE: enable embedding web.config into a jar

svn path=/trunk/mcs/; revision=74552

17 years agoFix for the test suite, a temporary reversal of previous patches, since it isn't...
Marek Habersack [Sun, 18 Mar 2007 00:16:39 +0000 (00:16 -0000)]
Fix for the test suite, a temporary reversal of previous patches, since it isn't a real fix - the breakage is elsewhere in system.web

svn path=/trunk/mcs/; revision=74546

17 years agoRemove debugging message
Miguel de Icaza [Sat, 17 Mar 2007 20:08:58 +0000 (20:08 -0000)]
Remove debugging message

svn path=/trunk/mcs/; revision=74545

17 years ago2007-03-17 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 17 Mar 2007 19:02:04 +0000 (19:02 -0000)]
2007-03-17  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * library.make: Show correct log (TestResult-ondotnet-PROFILE...) for
        make run-test-ondotnet.

svn path=/trunk/mcs/; revision=74544

17 years agoNew test.
Marek Safar [Sat, 17 Mar 2007 18:13:53 +0000 (18:13 -0000)]
New test.

svn path=/trunk/mcs/; revision=74536

17 years ago2007-03-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 17 Mar 2007 18:12:19 +0000 (18:12 -0000)]
2007-03-17  Marek Safar  <marek.safar@gmail.com>

* MethodBuilder.cs: Implemented conversion of PreserveSigAttribute pseudo
attribute.

svn path=/trunk/mcs/; revision=74535

17 years ago2007-03-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 17 Mar 2007 17:53:51 +0000 (17:53 -0000)]
2007-03-17  Marek Safar  <marek.safar@gmail.com>

* class.cs (EventFieldAccessor.EmitMethod): Don't override existing
implementation flags.

svn path=/trunk/mcs/; revision=74534

17 years agoReverting this fix for bug #63841, see the bug for details, we will reapply once...
Miguel de Icaza [Sat, 17 Mar 2007 17:28:32 +0000 (17:28 -0000)]
Reverting this fix for bug #63841, see the bug for details, we will reapply once DBus# is wildly deployed

svn path=/trunk/mono/; revision=74533