//
// Authors:
// Peter Bartok pbartok@novell.com
-//
-//
-// $Log: AccessibleNavigation.cs,v $
-// Revision 1.1 2004/09/02 20:23:52 pbartok
-// - Initial check-in
-//
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: AccessibleObject.cs,v $
-// Revision 1.3 2004/09/02 20:25:21 pbartok
-// - Added missing methods
-//
-// Revision 1.2 2004/08/11 13:44:33 pbartok
-// - Fixed to match ControlCollection rewrite
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: AccessibleRole.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: AccessibleSelection.cs,v $
-// Revision 1.1 2004/09/02 20:24:16 pbartok
-// - Initial check-in
-//
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: AccessibleStates.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: AnchorStyles.cs,v $
-// Revision 1.2 2004/08/07 00:02:04 jackson
-// Add flags and serializable attributes.
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: Appearance.cs,v $
-// Revision 1.1 2004/08/30 15:17:20 pbartok
-// - Initial check-in
-//
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.8 $
-// $Modtime: $
-// $Log: Application.cs,v $
-// Revision 1.8 2004/10/20 03:33:33 pbartok
-// - Fixed to deal with new Form subclasses for menus
-//
-// Revision 1.7 2004/10/18 04:14:14 pbartok
-// - Added code to simulate modal dialogs on Win32
-//
-// Revision 1.6 2004/09/22 20:05:41 pbartok
-// - Added message loop for modal dialogs
-//
-// Revision 1.5 2004/09/21 00:54:15 jackson
-// New message loop that uses poll so we don't get a busy loop
-//
-// Revision 1.4 2004/08/23 22:45:19 pbartok
-// - Removed debug output
-// - Simplifications
-//
-// Revision 1.3 2004/08/23 22:09:29 pbartok
-// - Added handling of Idle event
-// - Added handling of form closing
-// - Fixed reporting of MessageLoop property
-// - Removed some unneeded code, should provide a bit of a speedup
-//
-// Revision 1.2 2004/08/11 22:16:50 pbartok
-// - Fixed Signature
-// - Added .Net 1.1 method
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ApplicationContext.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: BaseCollection.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: Binding.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: BindingContext.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: BindingManagerBase.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/08/11 21:22:27 pbartok
-// - Was checked in with wrong filename
-//
-//
-//
+
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: BindingMemberInfo.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: BindingsCollection.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: Border3DSide.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: Border3DStyle.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: BorderStyle.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: BoundsSpecified.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-// $Log: Button.cs,v $
-// Revision 1.2 2004/09/28 18:17:46 jackson
-// Do not redraw OnClick MouseUp/Down will handle the drawing
-//
-// Revision 1.1 2004/09/01 20:39:41 pbartok
-// - Functional initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-// $Log: ButtonBase.cs,v $
-// Revision 1.15 2004/10/15 13:32:45 ravindra
-// - Renamed Paint() method to Draw() for clarity. Also, moved
-// DrawImage() to OnPaint().
-//
-// Revision 1.14 2004/10/15 13:16:10 ravindra
-// - Redraw () is not virtual now.
-// - Added an internal virtual method Paint (), so that
-// derived classes can do their painting on their own.
-// - Modified OnPaint () to call Paint ().
-//
-// Revision 1.13 2004/10/14 06:15:57 ravindra
-// Redraw () related improvements.
-//
-// Revision 1.12 2004/10/13 22:32:38 pbartok
-// - Now Redraws on MouseUp for FlatStyle Flat and Popup
-//
-// Revision 1.11 2004/10/13 20:12:47 pbartok
-// - Added the Redraw on Resize that got dropped in the last rev
-//
-// Revision 1.10 2004/10/05 04:56:11 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.9 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.8 2004/09/02 22:24:35 pbartok
-// - Fixed selection of text color
-// - Fixed handling of resize event; now properly recreates double buffering
-// bitmap
-// - Added missing assignment of TextAlignment
-// - Added proper default for TextAlignment
-//
-// Revision 1.7 2004/09/01 02:07:37 pbartok
-// - Enabled display of strings
-//
-// Revision 1.6 2004/09/01 01:55:20 pbartok
-// - Removed the rather odd split between 'needs redraw' and redrawing
-// - Now handles the events that require regeneration (ambient properties and
-// size)
-//
-// Revision 1.5 2004/08/31 18:49:58 pbartok
-// - Removed debug
-// - Minor fixes
-//
-// Revision 1.4 2004/08/30 20:42:10 pbartok
-// - Made Redraw() and Redraw() virtual
-// - Improved mouse up/down/move logic to properly track buttons
-//
-// Revision 1.3 2004/08/23 23:27:44 pbartok
-// - Finishing touches. Works now, just needs some optimizations.
-//
-// Revision 1.2 2004/08/21 21:57:41 pbartok
-// - Added loads of debug output for development
-// - Fixed typo in method name
-//
-// Revision 1.1 2004/08/15 21:31:10 pbartok
-// - First (mostly) working version
-//
-//
-//
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ButtonBorderStyle.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ButtonState.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: CaptionButton.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Dennis Hayes dennish@raytek.com
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: CheckBox.cs,v $
-// Revision 1.10 2004/10/15 13:32:45 ravindra
-// - Renamed Paint() method to Draw() for clarity. Also, moved
-// DrawImage() to OnPaint().
-//
-// Revision 1.9 2004/10/15 13:25:50 ravindra
-// - Removed Redraw (), we get it from ButtonBase.
-// - Implemented Paint (), to do class specific painting.
-//
-// Revision 1.8 2004/10/13 02:46:22 pbartok
-// - Fix from John BouAntoun: Now properly sets the Appearance property
-//
-// Revision 1.7 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.6 2004/09/01 20:01:24 pbartok
-// - Added missing default
-// - Added missing region mark
-//
-// Revision 1.5 2004/09/01 01:55:58 pbartok
-// - Fixed to match the removal of the needs_redraw concept
-//
-// Revision 1.4 2004/08/31 18:48:31 pbartok
-// - Finished (famous last words)
-//
-// Revision 1.3 2004/08/30 20:42:26 pbartok
-// - Implemented CheckBox drawing code
-//
-// Revision 1.2 2004/08/30 15:44:20 pbartok
-// - Updated to fix broken build. Not complete yet.
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
//
// Authors:
// Peter Bartok pbartok@novell.com
-//
-//
-// $Log: CheckState.cs,v $
-// Revision 1.1 2004/08/30 15:28:14 pbartok
-// - Initial checkin
-//
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok (pbartok@novell.com)
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ColorDepth.cs,v $
-// Revision 1.2 2004/08/15 23:23:56 ravindra
-// Added attribute.
-//
-// Revision 1.1 2004/07/15 20:05:28 pbartok
-// - Implemented ImageList and ImageList.ImageCollection classes
-// - Added ColorDepth enumeration
-// - Updated SWF VS.Net project
-//
-//
-//
+
// COMPLETE
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ColumnClickEventArgs.cs,v $
-// Revision 1.1 2004/09/16 03:18:11 ravindra
-// Event for ListView Control.
-//
-//
+
+
// COMPLETE
-//
using System;
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ColumnClickEventHandler.cs,v $
-// Revision 1.1 2004/09/16 03:18:11 ravindra
-// Event for ListView Control.
-//
-//
+
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.5 $
-// $Modtime: $
-// $Log: ColumnHeader.cs,v $
-// Revision 1.5 2004/11/04 11:29:38 ravindra
-// - Changed default value signatures (prefixed all with ListView).
-// - Fixed/implemented layout LargeIcon, SmallIcon and List views for ListView.
-// - Fixed calculations for ListViewItem and implemented Clone() method.
-//
-// Revision 1.4 2004/10/26 09:55:48 ravindra
-// Some formatting for my last checkins.
-//
-// Revision 1.3 2004/10/26 09:33:00 ravindra
-// Added some internal members and calculations for ColumnHeader.
-//
-// Revision 1.2 2004/10/15 15:06:44 ravindra
-// Flushing some formatting changes.
-//
-// Revision 1.1 2004/09/30 13:25:33 ravindra
-// Supporting class for ListView control.
-//
-//
+
+
// COMPLETE
-//
+
using System.ComponentModel;
using System.Drawing;
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: ContainerControl.cs,v $
-// Revision 1.3 2004/11/08 20:36:11 pbartok
-// - Implemented BindingContext
-// - Implemented ParentForm
-//
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Jaak Simm jaaksimm@firm.ee
// John Sohn jsohn@columbus.rr.com
//
-// $Revision: 1.76 $
-// $Modtime: $
-// $Log: Control.cs,v $
-// Revision 1.76 2004/11/05 19:16:48 jackson
-// Do not call CreateHandle if the handle is already created
-//
-// Revision 1.75 2004/10/22 17:49:35 jackson
-// oops
-//
-// Revision 1.74 2004/10/22 17:41:28 jackson
-// Check to see if the window should have its background repainted by X when drawing.
-//
-// Revision 1.73 2004/10/20 03:52:06 pbartok
-// - Removed unneeded locals
-// - Added code to all size and location properties to understand and
-// deal with the parent container of Form
-//
-// Revision 1.71 2004/10/18 06:27:39 ravindra
-// Default value of visible property must be true.
-//
-// Revision 1.70 2004/10/18 04:16:29 pbartok
-// - Fixed/implemented flat list of controls
-//
-// Revision 1.69 2004/10/13 02:57:36 pbartok
-// - Fix from John BouAntoun: Raise ForeColorChanged event when text color is
-// changed
-//
-// Revision 1.68 2004/10/06 09:59:05 jordi
-// removes warnings from compilation
-//
-// Revision 1.67 2004/10/05 03:18:16 jackson
-// When resizing the buffers should be invalidated. This should be handled in Control not in derived classes.
-//
-// Revision 1.66 2004/10/02 19:02:56 pbartok
-// - Added private method to get the Control object from the window handle
-// - Implemented ContextMenu property
-// - Implemented PointToScreen
-// - Implemented PreProcessMessage
-// - Implemented IsInputChar
-// - Implemented IsInputKey
-// - Implemented ProcessCmdKey
-// - Completed ProcessKeyEventArgs
-// - Fixed message loop to call the proper chain of functions on key events
-// - Implemented ProcessDialogChar
-// - Implemented ProcessDialogKey
-// - Implemented ProcessKeyMessage
-// - Implemented ProcessKeyPreview
-// - Added RaiseDragEvent stub (MS internal method)
-// - Added RaiseKeyEvent stub (MS internal method)
-// - Added RaiseMouseEvent stub (MS Internal method)
-// - Added RaisePaintEvent stub (MS Internal method)
-// - Added ResetMouseEventArgs stub (MS Internal method)
-// - Implemented RtlTranslateAlignment
-// - Implemented RtlTranslateContent
-// - Implemented RtlTranslateHorizontal
-// - Implemented RtlTranslateLeftRight
-// - Added generation of KeyPress event
-//
-// Revision 1.65 2004/09/22 18:01:28 jackson
-// Text is never null
-//
-// Revision 1.64 2004/09/16 23:44:19 pbartok
-// - Added SendToBack and BringToFront methods
-//
-// Revision 1.63 2004/09/11 03:50:00 pbartok
-// - Added DoDragDrop() [incomplete]
-// - Properly implemented 'Visible' handling
-// - Added SetVisibleCore()
-// - Implemented FindChildAtPoint()
-// - Implemented GetContainerControl()
-// - Implemented Hide()
-//
-// Revision 1.62 2004/09/11 01:28:11 pbartok
-// - Moved methods into their appropriate #regions
-// - Reordered methods within regions alphabetically
-//
-// Revision 1.61 2004/09/11 00:56:33 pbartok
-// - Moved some internal functions into the internal region
-// - Implemented FontHeight
-// - Implemented RenderRightToLeft
-// - Implemented ResizeRedraw
-// - Implemented ShowFocusCues
-// - Implemented ShowKeyboardCues
-// - Implemented FromChildHandle
-// - Implemented FromHandle
-// - Implemented IsMnemonic
-// - Implemented ReflectMessage
-// - All public and protected Static Methods are now complete
-//
-// Revision 1.60 2004/09/10 22:54:52 pbartok
-// - Implemented remaining missing public instance properties
-// - Alphabetized some out of order properties
-//
-// Revision 1.59 2004/09/06 12:55:07 jordi
-// Caches ClientRectangle rectangle value
-//
-// Revision 1.58 2004/09/02 22:24:50 pbartok
-// - Added sanity check to creation of double buffer bitmap
-//
-// Revision 1.57 2004/09/02 20:26:21 pbartok
-// - Added missing Control.ControlAccessibleObject class
-// - Started to implement Select()ion mechanisms, still very incomplete
-//
-// Revision 1.56 2004/09/01 13:19:19 jordi
-// Init string variables with an empty object
-//
-// Revision 1.55 2004/09/01 10:20:57 jordi
-// fires OnFontChanged event
-//
-// Revision 1.54 2004/09/01 01:41:31 pbartok
-// - Added firing of BackColorChanged event
-// - Added TopLevelControl property
-// - Fixed handling of WM_ERASEBKGRND message
-//
-// Revision 1.53 2004/08/27 20:17:25 pbartok
-// - Removed unneeded stack vars
-// - First attempt to fix sizing issues when layout is suspended
-//
-// Revision 1.52 2004/08/25 19:20:47 pbartok
-// - Control now properly passes the ambient background color to child
-// controls
-//
-// Revision 1.51 2004/08/25 18:32:15 pbartok
-// - Fixed generation of MouseUp message
-//
-// Revision 1.50 2004/08/24 18:24:25 jordi
-// fire OnEnabledChanged event
-//
-// Revision 1.49 2004/08/23 21:22:53 pbartok
-// - Added InitLayout() method
-// - Added code to properly perform layout when Anchor or Dock property is
-// changed
-// - Changed 'interpretation' of ResumeLayout. MS seems to have a LAMESPEC,
-// tried to do it in a way that makes sense
-//
-// Revision 1.48 2004/08/23 19:55:08 pbartok
-// - Properly fixed Jordi's last fix
-// - Now uses Cursor's Position property instead of calling XplatUI directly
-//
-// Revision 1.47 2004/08/23 19:16:23 jordi
-// avoids null exception
-//
-// Revision 1.46 2004/08/22 21:10:30 pbartok
-// - Removed OverlappedWindow style from Control, instead it's default
-// now is child
-// - Made form windows OverlappedWindow by default
-//
-// Revision 1.45 2004/08/21 22:19:30 pbartok
-// - Signature fixes
-//
-// Revision 1.44 2004/08/21 20:53:13 pbartok
-// - Updated to match new GrabWindow signature
-//
-// Revision 1.43 2004/08/21 19:32:15 pbartok
-// - Implemented Created property
-//
-// Revision 1.42 2004/08/21 19:28:22 pbartok
-// - Implemented ContainsFocus
-//
-// Revision 1.41 2004/08/21 19:26:24 pbartok
-// - Implemented CausesValidation
-//
-// Revision 1.40 2004/08/21 19:21:50 pbartok
-// - Implemented CanFocus
-// - Implemented CanSelect
-// - Implemented Capture
-//
-// Revision 1.39 2004/08/21 16:54:11 jackson
-// Implement EndInvoke
-//
-// Revision 1.38 2004/08/20 23:38:54 ravindra
-// Made RightToLeft property virtual and removed a Console.WriteLine.
-//
-// Revision 1.37 2004/08/20 20:09:24 pbartok
-// - Added call to set window background color
-//
-// Revision 1.36 2004/08/20 19:18:30 jackson
-// Implement Begininvoke
-//
-// Revision 1.35 2004/08/20 01:17:24 pbartok
-// - Added handling of WM_MOUSEHOVER
-// - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver code
-//
-// Revision 1.34 2004/08/19 23:09:22 pbartok
-// - Added Right property
-// - Added RightToLeft property
-//
-// Revision 1.33 2004/08/19 22:25:31 jordi
-// theme enhancaments
-//
-// Revision 1.32 2004/08/17 21:25:12 pbartok
-// - Drawing improvement; don't call UpdateBounds if we are not visible (or
-// have been minimized)
-//
-// Revision 1.31 2004/08/17 20:25:28 pbartok
-// - Fixed broken handling of default window sizes
-//
-// Revision 1.30 2004/08/16 21:47:11 pbartok
-// - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
-// support OnMouseEnter/Leave()
-// - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
-// exposure handling
-//
-// Revision 1.29 2004/08/13 22:15:46 pbartok
-// - Fixed Anchor default
-//
-// Revision 1.28 2004/08/13 21:43:39 pbartok
-// - Changed GetCursorPos signature
-//
-// Revision 1.27 2004/08/13 19:00:15 jordi
-// implements PointToClient (ScreenToClient)
-//
-// Revision 1.26 2004/08/13 18:52:07 pbartok
-// - Added Dispose() and destructor
-// - Fixed resizing and bounds calculation
-// - Fixed Layout
-// - Added memory savings for invisible windows
-//
-// Revision 1.25 2004/08/12 19:31:19 pbartok
-// - Fixed Anchoring bugs
-//
-// Revision 1.24 2004/08/12 16:10:42 jackson
-// Add missing properties
-//
-// Revision 1.23 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.22 2004/08/11 19:19:44 pbartok
-// - We had SetWindowPos and MoveWindow to set window positions and size,
-// removed MoveWindow. We have GetWindowPos, so it made sense to keep
-// SetWindowPos as matching counterpart
-// - Added some X11 sanity checking
-//
-// Revision 1.21 2004/08/11 18:59:45 pbartok
-// - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
-// (It seems that SetBounds is just a front for SetBoundsCore and
-// SetBoundsCore updates the underlying window system and UpdateBounds is
-// responsible for updating the variables associated with the Control and
-// sending the events)
-// - Major cleanup of Size handling; we now have two sizes, client_size and
-// bounds. Bounds defines the window with decorations, client_size without
-// them.
-//
-// Revision 1.20 2004/08/11 15:13:32 pbartok
-// - Now properly reparents windows
-//
-// Revision 1.19 2004/08/11 14:37:11 pbartok
-// - Duh!
-//
-// Revision 1.18 2004/08/11 13:47:22 pbartok
-// - Rewrote the collection stuff. Might not be as fast now, not keeping
-// the number of children around and accessible directly, but it's more
-// straightforward
-//
-// Revision 1.17 2004/08/10 18:32:10 jordi
-// throw ontextchange event
-//
-// Revision 1.16 2004/08/10 17:43:04 pbartok
-// - Added more to the still unfinished Dock/Anchor layout code
-//
-// Revision 1.15 2004/08/10 15:08:05 jackson
-// Control will now handle the buffering code, so each control does not have to implement this.
-//
-// Revision 1.14 2004/08/09 22:11:25 pbartok
-// - Added incomplete dock layout code
-// - Added support for mouse wheel
-//
-// Revision 1.13 2004/08/09 17:25:56 jackson
-// Use new color names
-//
-// Revision 1.12 2004/08/09 15:54:51 jackson
-// Get default properties from the theme.
-//
-// Revision 1.11 2004/08/06 21:30:56 pbartok
-// - Fixed recursive loop when resizing
-// - Improved/fixed redrawing on expose messages
-//
-// Revision 1.10 2004/08/06 15:53:39 jordi
-// X11 keyboard navigation
-//
-// Revision 1.9 2004/08/04 21:14:26 pbartok
-// - Fixed Invalidation bug (calculated wrong client area)
-// - Added ClientSize setter
-//
-// Revision 1.8 2004/08/04 20:11:24 pbartok
-// - Added Invalidate handling
-//
-// Revision 1.7 2004/07/27 10:38:17 jordi
-// changes to be able to run winforms samples
-//
-// Revision 1.6 2004/07/19 19:09:42 jordi
-// label control re-written: added missing functionlity, events, and properties
-//
-// Revision 1.5 2004/07/19 16:49:23 jordi
-// fixes SetBounds logic
-//
-// Revision 1.4 2004/07/19 07:29:35 jordi
-// Call RefreshWindow only if the window has created
-//
-// Revision 1.3 2004/07/15 17:03:35 jordi
-// added basic mouse handeling events
-//
-// Revision 1.2 2004/07/13 15:31:45 jordi
-// commit: new properties and fixes form size problems
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// NOT COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ControlEventArgs.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ControlEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: ControlPaint.cs,v $
-// Revision 1.5 2004/10/13 03:15:16 pbartok
-// - Fixed Dark(), DarkDark(), Light() and LightLight() methods to match MS
-// documentation. They need to return defined colors if the passed
-// color matches the configured control color. Thanks to John BouAntoun for
-// pointing this out.
-//
-// Revision 1.4 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.3 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.2 2004/07/26 17:42:03 jordi
-// Theme support
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ControlStyles.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ConvertEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ConvertEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: CreateParams.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: Cursor.cs,v $
-// Revision 1.2 2004/08/23 19:39:59 pbartok
-// - Implemented Position property
-//
-// Revision 1.1 2004/08/22 18:03:57 pbartok
-// - Started implementation, not usable yet
-//
-//
-//
+
// NOT COMPLETE
// Autors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: DialogResult.cs,v $
-// Revision 1.2 2004/07/21 16:28:05 jordi
-// fixes comments filenames
-//
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: DockStyle.cs,v $
-// Revision 1.2 2004/08/07 00:00:21 jackson
-// Add flags and serializable attributes.
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: DragAction.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: DragDropEffects.cs,v $
-// Revision 1.2 2004/08/10 22:24:21 jackson
-// Add flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: DragEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: DragEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: FlatStyle.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.22 $
-// $Modtime: $
-// $Log: Form.cs,v $
-// Revision 1.22 2004/11/08 20:50:29 pbartok
-// - Fixed arguments for updated SetTopmost method
-//
-// Revision 1.21 2004/11/04 14:47:58 jordi
-// collection completion, drawing issues, missing features
-//
-// Revision 1.20 2004/10/29 15:55:26 jordi
-// Menu key navigation, itemcollection completion, menu fixes
-//
-// Revision 1.19 2004/10/20 03:56:23 pbartok
-// - Added private FormParentWindow class which acts as the container for
-// our form and as the non-client area where menus are drawn
-// - Added/Moved required tie-ins to Jordi's menus
-// - Fixed/Implemented the FormStartPosition functionality
-//
-// Revision 1.18 2004/10/18 04:47:09 pbartok
-// - Fixed Form.ControlCollection to handle owner relations
-// - Added Owner/OwnedForms handling
-// - Implemented Z-Ordering for owned forms
-// - Removed unneeded private overload of ShowDialog
-// - Fixed ShowDialog, added the X11 incarnation of modal handling (or so I
-// hope)
-// - Fixed Close(), had wrong default
-// - Added firing of OnLoad event
-// - Added some commented out debug code for Ownership handling
-//
-// Revision 1.17 2004/10/15 12:43:19 jordi
-// menu work, mainmenu, subitems, etc
-//
-// Revision 1.16 2004/10/14 06:17:58 ravindra
-// Fixed class signature. ShowDialog (Control) is not a public method.
-//
-// Revision 1.15 2004/10/08 08:50:29 jordi
-// more menu work
-//
-// Revision 1.14 2004/10/02 19:05:52 pbartok
-// - Added KeyPreview property
-// - Added Menu property (still incomplete, pending Jordi's menu work)
-// - Implemented ProcessCmdKey
-// - Implemented ProcessDialogKey
-// - Implemented ProcessKeyPreview
-//
-// Revision 1.13 2004/10/01 17:53:26 jackson
-// Implement the Close method so work on MessageBox can continue.
-//
-// Revision 1.12 2004/09/23 19:08:59 jackson
-// Temp build fixage
-//
-// Revision 1.11 2004/09/22 20:09:44 pbartok
-// - Added Form.ControllCollection class
-// - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
-// RemoveOwnedForm (still incomplete, missing on-top and common
-// minimize/maximize behaviour)
-// - Added StartPosition property (still incomplete, does not use when
-// creating the form)
-// - Added ShowDialog() methods (still incomplete, missing forcing the dialog
-// modal)
-//
-// Revision 1.10 2004/09/13 16:56:04 pbartok
-// - Fixed #region names
-// - Moved properties and methods into their proper #regions
-//
-// Revision 1.9 2004/09/13 16:51:29 pbartok
-// - Added Accept and CancelButton properties
-// - Added ProcessDialogKey() method
-//
-// Revision 1.8 2004/09/01 02:05:18 pbartok
-// - Added (partial) implementation of DialogResult; rest needs to be
-// implemented when the modal loop code is done
-//
-// Revision 1.7 2004/08/23 22:10:02 pbartok
-// - Fixed handling of WM_CLOSE message
-// - Removed debug output
-//
-// Revision 1.6 2004/08/22 21:10:30 pbartok
-// - Removed OverlappedWindow style from Control, instead it's default
-// now is child
-// - Made form windows OverlappedWindow by default
-//
-// Revision 1.5 2004/08/19 21:30:37 pbartok
-// - Added handling of WM_CLOSE
-//
-// Revision 1.4 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.3 2004/08/04 21:13:47 pbartok
-// - Added AutoScale properties
-//
-// Revision 1.2 2004/07/13 15:31:45 jordi
-// commit: new properties and fixes form size problems
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// NOT COMPLETE
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: FormBorderStyle.cs,v $
-// Revision 1.1 2004/09/09 05:47:47 ravindra
-// Enums for Form.
-//
-//
+
using System.Runtime.InteropServices;
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: FormStartPosition.cs,v $
-// Revision 1.1 2004/09/09 05:47:47 ravindra
-// Enums for Form.
-//
-//
using System.Runtime.InteropServices;
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: FormWindowState.cs,v $
-// Revision 1.2 2004/09/22 20:01:21 pbartok
-// - Fixed wrong values
-//
-// Revision 1.1 2004/09/09 05:47:47 ravindra
-// Enums for Form.
-//
-//
+
using System.Runtime.InteropServices;
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: FrameStyle.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: GiveFeedbackEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: GiveFeedbackEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez jordi@ximian.com
//
//
-//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: HScrollBar.cs,v $
-// Revision 1.3 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.2 2004/08/23 20:10:03 jordi
-// fixes properties and methods
-//
-// Revision 1.1 2004/07/13 15:33:46 jordi
-// vertical and hort. classes commit
-//
-//
+
using System.Drawing;
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: HelpEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: HelpEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Jackson Harper (jackson@ximian.com)
//
-// $Revision: 1.1 $
-// $Modtime$
-// $Log: HorizontalAlignment.cs,v $
-// Revision 1.1 2004/08/07 22:56:34 jackson
-// Initial checkin
-//
+
namespace System.Windows.Forms {
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: IButtonControl.cs,v $
-// Revision 1.2 2004/07/21 16:28:05 jordi
-// fixes comments filenames
-//
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: IContainerControl.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: IDataObject.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: IMessageFilter.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: IWin32Window.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: IWindowTarget.cs,v $
-// Revision 1.1 2004/09/13 14:18:42 pbartok
-// - Initial check-in
-//
-//
-//
+
namespace System.Windows.Forms {
public interface IWindowTarget {
// Authors:
// Ravindra rkumar@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ImageIndexConverter.cs,v $
-// Revision 1.1 2004/08/27 22:07:37 ravindra
-// Implemented.
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Log: ImageList.cs,v $
-// Revision 1.7 2004/11/04 11:04:40 ravindra
-// Implemented the missing overload for Draw method.
-//
-// Revision 1.6 2004/08/21 01:50:52 ravindra
-// Changed draw method to use the arguments passed in to draw the image.
-//
-// Revision 1.5 2004/08/19 21:39:09 pbartok
-// - Added missing Draw() method
-// - Added missing RecreateHandle event
-//
-// Revision 1.4 2004/08/11 17:43:08 pbartok
-// - Removed disposing of the actual images when the list is disposed
-//
-// Revision 1.3 2004/08/11 13:43:13 pbartok
-// - Added missing creation of the collection list
-//
-// Revision 1.2 2004/08/09 23:12:13 pbartok
-// - Fixed several bugs Ravindra pointed out
-//
-// Revision 1.1 2004/07/15 20:05:28 pbartok
-// - Implemented ImageList and ImageList.ImageCollection classes
-// - Added ColorDepth enumeration
-// - Updated SWF VS.Net project
-//
-//
+
// COMPLETE
// Peter Bartok (pbartok@novell.com)
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ImageListStreamer.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/15 20:05:28 pbartok
-// - Implemented ImageList and ImageList.ImageCollection classes
-// - Added ColorDepth enumeration
-// - Updated SWF VS.Net project
-//
-//
-//
+
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ImeMode.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: InputLanguage.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: InputLanguageChangedEventArgs.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: InputLanguageChangedEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.4 $
-// $Modtime: $
-// $Log: InputLanguageChangingEventArgs.cs,v $
-// Revision 1.4 2004/08/11 22:28:02 pbartok
-// - Never check in before compiling. Fixes the last check-in
-//
-// Revision 1.3 2004/08/11 22:26:14 pbartok
-// - More signature fixes
-//
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: InputLanguageChangingEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: InputLanguageCollection.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: InvalidateEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: InvalidateEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Author:
// Kevin Rector (krector@nazmail.com)
//
-// Enum for ListView control.
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemActivation.cs,v $
-// Revision 1.1 2004/09/30 13:20:20 ravindra
-// Enum for ListView Control.
-//
-//
+
+
// COMPLETE
-//
namespace System.Windows.Forms
{
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ItemBoundsPortion.cs,v $
-// Revision 1.2 2004/09/09 05:56:20 ravindra
-// It's enum, not a class!
-//
-// Revision 1.1 2004/09/09 03:13:39 ravindra
-// Enums for ListView control.
-//
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemChangedEventArgs.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
// COMPLETE
-//
+
using System;
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemChangedEventHandler.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemCheckEventArgs.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
// COMPLETE
-//
+
using System;
using System.Runtime.InteropServices;
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemCheckEventHandler.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemDragEventArgs.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
// COMPLETE
-//
+
using System;
using System.Runtime.InteropServices;
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ItemDragEventHandler.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: KeyEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: KeyEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: KeyPressEventArgs.cs,v $
-// Revision 1.2 2004/10/02 19:06:40 pbartok
-// - Fixed access level for constructor
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: KeyPressEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: Keys.cs,v $
-// Revision 1.3 2004/08/21 20:22:58 pbartok
-// - Added [Flags] attribute so that modifiers can be used in bitwise ops
-//
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok, pbartok@novell.com
//
//
-// $Revision: 1.16 $
-// $Modtime: $
-// $Log: Label.cs,v $
-// Revision 1.16 2004/10/05 04:56:11 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.15 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.14 2004/09/07 09:40:15 jordi
-// LinkLabel fixes, methods, multiple links
-//
-// Revision 1.13 2004/09/04 17:10:18 jordi
-// Refresh when font changed
-//
-// Revision 1.12 2004/09/01 15:10:10 jordi
-// fixes method signatures, new methods, events, fixes autosize
-//
-// Revision 1.11 2004/08/21 22:30:53 pbartok
-// - Signature fixes
-//
-// Revision 1.10 2004/08/21 22:21:13 pbartok
-// - Signature fixes
-//
-// Revision 1.9 2004/08/11 18:54:11 pbartok
-// - Forcing redraw on resize
-//
-// Revision 1.8 2004/08/10 15:24:35 jackson
-// Let Control handle buffering.
-//
-// Revision 1.7 2004/08/08 19:47:41 jordi
-// add cvs header info
-//
-//
+
// INCOMPLETE
using System.Drawing;
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LabelEditEventArgs.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
+
// COMPLETE
-//
+
using System;
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LabelEditEventHandler.cs,v $
-// Revision 1.1 2004/09/23 07:39:19 ravindra
-// EventArgs and EventHandlers needed by ListView Control.
-//
-//
+
+
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: LayoutEventArgs.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LayoutEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Log: LeftRightAlignment.cs,v $
-// Revision 1.1 2004/10/04 08:14:40 pbartok
-// - Initial check-in
-//
-//
-//
+
// COMPLETE
// Andreas Nahr, ClassDevelopment@A-SoftTech.com
// Jordi Mas i Hernandez, jordi@ximian.com
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: LinkArea.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
// COMPLETE
// Authors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LinkBehavior.cs,v $
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
// COMPLETE
// Authors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LinkClickedEventArgs.cs,v $
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
+
// COMPLETE
// - Change the cursor to a hand cursor when you are over a link (when cursors are available)
// - Focus handeling
//
-// $Revision: 1.9 $
-// $Modtime: $
-// $Log: LinkLabel.cs,v $
-// Revision 1.9 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.8 2004/09/07 09:40:15 jordi
-// LinkLabel fixes, methods, multiple links
-//
-// Revision 1.7 2004/08/21 22:32:14 pbartok
-// - Signature Fixes
-//
-// Revision 1.6 2004/08/10 15:24:35 jackson
-// Let Control handle buffering.
-//
-// Revision 1.5 2004/08/08 17:52:12 jordi
-// *** empty log message ***
-//
-// Revision 1.4 2004/08/07 23:31:15 jordi
-// fixes label bug and draw method name
-//
-// Revision 1.3 2004/08/07 19:16:31 jordi
-// throw exceptions, fixes events, missing methods
-//
-// Revision 1.2 2004/07/22 15:22:19 jordi
-// link label: check link overlapping, implement events, and fixes
-//
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
+
// INCOMPLETE
// Authors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LinkLabelLinkClickedEventArgs.cs,v $
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
// COMPLETE
// Dennis hayes (dennish@raytek.com)
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: LinkLabelLinkClickedEventHandler.cs,v $
-// Revision 1.2 2004/07/22 15:22:19 jordi
-// link label: check link overlapping, implement events, and fixes
-//
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
// COMPLETE
// Authors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: LinkState.cs,v $
-// Revision 1.1 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-//
+
+
// COMPLETE
/* Events */
MouseDown += new MouseEventHandler (OnMouseDownLB);
+
UpdateFormatString ();
}
// - Column resizing/reodering
// - Feedback for item activation, change in cursor types as mouse moves.
// - HideSelection
-//
-// $Revision: 1.9 $
-// $Modtime: $
-// $Log: ListView.cs,v $
-// Revision 1.9 2004/11/05 14:00:50 ravindra
-// Implemented some methods and fixed scrolling.
-//
-// Revision 1.8 2004/11/04 11:29:38 ravindra
-// - Changed default value signatures (prefixed all with ListView).
-// - Fixed/implemented layout LargeIcon, SmallIcon and List views for ListView.
-// - Fixed calculations for ListViewItem and implemented Clone() method.
-//
-// Revision 1.7 2004/10/30 10:21:14 ravindra
-// Added support for scrolling and fixed calculations.
-//
-// Revision 1.6 2004/10/26 19:51:20 jordi
-// removes warning
-//
-// Revision 1.5 2004/10/26 09:55:48 ravindra
-// Some formatting for my last checkins.
-//
-// Revision 1.4 2004/10/26 09:31:35 ravindra
-// Added some internal members and calculations for ListView.
-//
-// Revision 1.3 2004/10/15 15:03:39 ravindra
-// Implemented Paint method and fixed coding style.
-//
-// Revision 1.2 2004/10/02 11:32:01 ravindra
-// Added attributes.
-//
-// Revision 1.1 2004/09/30 13:24:25 ravindra
-// Initial implementation.
-//
-//
+
+
// NOT COMPLETE
-//
+
using System.Collections;
using System.ComponentModel;
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ListViewAlignment.cs,v $
-// Revision 1.1 2004/09/09 03:13:39 ravindra
-// Enums for ListView control.
-//
-//
+
namespace System.Windows.Forms
{
//
// Todo:
// - Drawing of focus rectangle
-//
-// $Revision: 1.8 $
-// $Modtime: $
-// $Log: ListViewItem.cs,v $
-// Revision 1.8 2004/11/05 14:00:50 ravindra
-// Implemented some methods and fixed scrolling.
-//
-// Revision 1.7 2004/11/04 11:29:38 ravindra
-// - Changed default value signatures (prefixed all with ListView).
-// - Fixed/implemented layout LargeIcon, SmallIcon and List views for ListView.
-// - Fixed calculations for ListViewItem and implemented Clone() method.
-//
-// Revision 1.6 2004/10/30 10:21:14 ravindra
-// Added support for scrolling and fixed calculations.
-//
-// Revision 1.5 2004/10/26 09:55:48 ravindra
-// Some formatting for my last checkins.
-//
-// Revision 1.4 2004/10/26 09:32:19 ravindra
-// Calculations for ListViewItem.
-//
-// Revision 1.3 2004/10/15 15:05:09 ravindra
-// Implemented GetBounds method and fixed coding style.
-//
-// Revision 1.2 2004/10/02 11:57:56 ravindra
-// Added attributes.
-//
-// Revision 1.1 2004/09/30 13:24:45 ravindra
-// Initial implementation.
-//
-//
+
+
+
// NOT COMPLETE
-//
+
using System.Collections;
using System.ComponentModel;
//
// Authors:
// Ravindra (rkumar@novell.com)
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ListViewItemConverter.cs,v $
-// Revision 1.1 2004/09/30 13:26:35 ravindra
-// Converter for ListViewItem.
-//
-//
-// NOTE COMPLETE
-//
+
+
+// COMPLETE
+
using System;
using System.ComponentModel;
//
// Authors:
// Peter Bartok pbartok@novell.com
-//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MenuGlyph.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
//
// Authors:
// Peter Bartok pbartok@novell.com
-//
-//
-// $Log: Message.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// - Add support for MessageBoxOptions and MessageBoxDefaultButton.
//
//
-// $Log: MessageBox.cs,v $
-// Revision 1.4 2004/10/15 06:30:56 ravindra
-// - MessageBox on windows does not have min/max buttons.
-// This change in CreateParams fixes this on Windows. We
-// still need to implement this windowstyle behavior in
-// our X11 driver.
-//
-// Revision 1.3 2004/10/14 06:14:03 ravindra
-// Moved InitFormSize () out of Paint method and removed unnecessary calls to Button.Show () method.
-//
-// Revision 1.2 2004/10/05 17:10:57 pbartok
-// - Partial implementation by Benjamin Dasnois
-//
-// Revision 1.1 2004/07/26 11:41:35 jordi
-// initial messagebox implementation
-//
-//
+
// INCOMPLETE
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MessageBoxButtons.cs,v $
-// Revision 1.1 2004/07/26 11:41:35 jordi
-// initial messagebox implementation
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MessageBoxDefaultButton.cs,v $
-// Revision 1.1 2004/07/26 11:41:35 jordi
-// initial messagebox implementation
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MessageBoxIcon.cs,v $
-// Revision 1.1 2004/07/26 11:41:35 jordi
-// initial messagebox implementation
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MessageBoxOptions.cs,v $
-// Revision 1.1 2004/07/26 11:41:35 jordi
-// initial messagebox implementation
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: MouseButtons.cs,v $
-// Revision 1.2 2004/08/09 21:35:34 pbartok
-// - Fixed values
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: MouseEventArgs.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: MouseEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: NativeWindow.cs,v $
-// Revision 1.3 2004/10/02 19:06:20 pbartok
-// - Changed access level for the window_collection hash table
-//
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Copyright (C) Novell Inc., 2004
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: Orientation.cs,v $
-// Revision 1.1 2004/07/15 09:38:02 jordi
-// Horizontal and Vertical TrackBar control implementation
-//
-//
+
namespace System.Windows.Forms
{
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: PaintEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: PaintEventHandler.cs,v $
-// Revision 1.2 2004/08/23 19:44:59 jordi
-// Adding missing attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez jordi@ximian.com
//
//
-// $Revision: 1.9 $
-// $Modtime: $
-// $Log: ProgressBar.cs,v $
-// Revision 1.9 2004/10/05 04:56:11 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.8 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.7 2004/08/25 18:29:14 jordi
-// new methods, properties, and fixes for progressbar
-//
-// Revision 1.6 2004/08/10 15:41:50 jackson
-// Allow control to handle buffering
-//
-// Revision 1.5 2004/07/26 17:42:03 jordi
-// Theme support
-//
-// Revision 1.4 2004/07/09 20:13:05 miguel
-// Spelling
-//
-// Revision 1.3 2004/07/09 17:25:23 pbartok
-// - Removed usage of Rectangle for drawing. Miguel pointed out it's faster
-//
-// Revision 1.2 2004/07/09 17:17:46 miguel
-// 2004-07-09 Miguel de Icaza <miguel@ximian.com>
-//
-// * ProgressBar.cs: Fixed spelling for `block'
-//
-// drawProgressBar: renamed to `DrawProgressBar' to follow the coding
-// style guidelines.
-//
-// Avoid using the += on rect.X, that exposed a bug in the compiler.
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
using System.Drawing;
using System.ComponentModel;
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: QueryAccessibilityHelpEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: QueryAccessibilityHelpEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: QueryContinueDragEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: QueryContinueDragEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-// $Log: RadioButton.cs,v $
-// Revision 1.8 2004/10/15 13:32:45 ravindra
-// - Renamed Paint() method to Draw() for clarity. Also, moved
-// DrawImage() to OnPaint().
-//
-// Revision 1.7 2004/10/15 13:25:50 ravindra
-// - Removed Redraw (), we get it from ButtonBase.
-// - Implemented Paint (), to do class specific painting.
-//
-// Revision 1.6 2004/10/05 18:23:54 jackson
-// Fix ctor
-//
-// Revision 1.5 2004/09/30 17:34:08 jackson
-// Fix typo. Patch by John BouAntoun.
-//
-// Revision 1.4 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.3 2004/09/02 20:26:48 pbartok
-// - Added missing RadioButton.RadioButtonAccessibleObject class
-//
-// Revision 1.2 2004/09/01 20:44:11 pbartok
-// - Fixed state
-//
-// Revision 1.1 2004/09/01 20:40:02 pbartok
-// - Functional initial check-in
-//
-//
-//
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: RightToLeft.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Jordi Mas i Hernandez jordi@ximian.com
//
//
-// $Revision: 1.26 $
-// $Modtime: $
-// $Log: ScrollBar.cs,v $
-// Revision 1.26 2004/11/08 14:15:00 jordi
-// fixes vertical scrollbar and removes dead code
-//
-// Revision 1.25 2004/11/04 12:03:49 ravindra
-// - We need to recalculate the Thumb area when LargeChange/maximum/minimum values are changed.
-// - We set the 'pos' in UpdatePos() method to minimum, if it's less than minimum. This is required to handle the case if large_change is more than max, and use LargeChange property instead of large_change variable.
-// - We return max+1 when large_change is more than max, like MS does.
-//
-// Revision 1.24 2004/10/17 22:11:49 jordi
-// disabled scrollbar should not honor any keyboard or mouse event
-//
-// Revision 1.23 2004/10/05 04:56:11 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.22 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.21 2004/09/17 16:43:27 pbartok
-// - Fixed behaviour of arrow buttons. Now properly behaves like Buttons (and
-// like Microsoft's scrollbar arrow buttons)
-//
-// Revision 1.20 2004/09/17 16:14:36 pbartok
-// - Added missing release of keyboard/mouse capture
-//
-// Revision 1.19 2004/09/05 08:03:51 jordi
-// fixes bugs, adds flashing on certain situations
-//
-// Revision 1.18 2004/08/31 10:35:04 jordi
-// adds autorepeat timer, uses a single timer, fixes scrolling bugs, adds new methods
-//
-// Revision 1.17 2004/08/25 21:35:18 jordi
-// more fixes to scrollbar
-//
-// Revision 1.16 2004/08/25 19:20:13 jordi
-// small bug fix regarding bar position
-//
-// Revision 1.15 2004/08/24 18:37:02 jordi
-// fixes formmating, methods signature, and adds missing events
-//
-// Revision 1.14 2004/08/23 22:53:15 jordi
-// small fix
-//
-// Revision 1.13 2004/08/23 22:43:46 jordi
-// *** empty log message ***
-//
-// Revision 1.11 2004/08/22 19:34:22 jackson
-// Update the position through the Value property so the OnValueChanged event is raised.
-//
-// Revision 1.10 2004/08/21 20:22:21 pbartok
-// - Replaced direct XplatUI calls with their Control counterpart
-//
-// Revision 1.9 2004/08/20 19:35:33 jackson
-// Use the SWF timer so callbacks are run in the correct thread
-//
-// Revision 1.8 2004/08/20 19:34:26 jackson
-// Use the SWF timer so callbacks are run in the correct thread
-//
-// Revision 1.7 2004/08/19 22:25:31 jordi
-// theme enhancaments
-//
-// Revision 1.6 2004/08/18 15:56:12 jordi
-// fixes to scrollbar: steps and multiple timers
-//
-// Revision 1.5 2004/08/10 19:21:27 jordi
-// scrollbar enhancements and standarize on win colors defaults
-//
-// Revision 1.4 2004/08/10 15:41:50 jackson
-// Allow control to handle buffering
-//
-// Revision 1.3 2004/07/27 15:29:40 jordi
-// fixes scrollbar events
-//
-// Revision 1.2 2004/07/26 17:42:03 jordi
-// Theme support
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ScrollBars.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ScrollButton.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ScrollEventArgs.cs,v $
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ScrollEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ScrollEventType.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.5 $
-// $Modtime: $
-// $Log: ScrollableControl.cs,v $
-// Revision 1.5 2004/09/22 20:12:45 pbartok
-// - Implemented DockPadding property
-// - Implemented AutoScroll property
-// - Implemented AutoScrollMargin property
-// - Implemented AutoScrollMinSize property
-// - Implemented AutoScrollPosition property
-// - Implemented DisplayRectangle property (still incomplete)
-// - Implemented CreateParams property
-// - Implemented HScroll property
-// - Implemented VScroll property
-// - Implemented OnVisibleChanged property
-//
-// Revision 1.4 2004/09/09 03:01:35 ravindra
-// Removed unreachable code.
-//
-// Revision 1.3 2004/08/12 15:25:49 jordi
-// calls ctrlbase instead of exeception
-//
-// Revision 1.2 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: SizeGripStyle.cs,v $
-// Revision 1.1 2004/10/15 15:09:48 ravindra
-// Enum for Form.
-//
-//
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: SortOrder.cs,v $
-// Revision 1.1 2004/09/30 13:26:00 ravindra
-// Enum for ListView control.
-//
-//
+
// COMPLETE
-//
+
namespace System.Windows.Forms
{
// Author:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: StructFormat.cs,v $
-// Revision 1.1 2004/10/15 15:10:08 ravindra
-// General Enum.
-//
-//
+
// COMPLETE
-//
namespace System.Windows.Forms
{
// Authors:
// Ravi Pratap ravi@ximian.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: TODOAttribute.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Jordi Mas i Hernandez, jordi@ximian.com
//
-//
-// $Revision: 1.18 $
-// $Modtime: $
-// $Log: Theme.cs,v $
-// Revision 1.18 2004/11/08 20:40:08 jackson
-// Render the little scrolling jimmi in the correct location with bottom aligned tabs
-//
-// Revision 1.17 2004/11/04 11:26:09 ravindra
-// - Changed default ListView values signatures (prefixed all with ListView).
-// - Fixed default size values for VScrollBar and HScrollBar.
-// - Fixed DrawListViewItem method.
-//
-// Revision 1.16 2004/11/02 02:47:55 jackson
-// New rendering and sizing code for tab controls
-//
-// Revision 1.15 2004/10/30 10:23:02 ravindra
-// Drawing ListView and some default values.
-//
-// Revision 1.14 2004/10/26 09:35:18 ravindra
-// Added some default values for ListView control.
-//
-// Revision 1.13 2004/10/18 04:49:06 pbartok
-// - Added ToolTip abstracts
-//
-// Revision 1.12 2004/10/15 15:08:49 ravindra
-// Added ColumnHeaderHeight property in Theme for ListView.
-//
-// Revision 1.11 2004/10/05 09:03:55 ravindra
-// - Added DrawListView method and ListViewDefaultSize property.
-//
-// Revision 1.10 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.9 2004/09/17 12:18:42 jordi
-// Very early menu support
-//
-// Revision 1.8 2004/09/07 17:12:26 jordi
-// GroupBox control
-//
-// Revision 1.7 2004/09/07 09:40:15 jordi
-// LinkLabel fixes, methods, multiple links
-//
-// Revision 1.6 2004/09/02 16:32:54 jordi
-// implements resource pool for pens, brushes, and hatchbruses
-//
-// Revision 1.5 2004/08/25 20:04:40 ravindra
-// Added the missing divider code and grip for ToolBar Control.
-//
-// Revision 1.4 2004/08/24 18:37:02 jordi
-// fixes formmating, methods signature, and adds missing events
-//
-// Revision 1.3 2004/08/24 16:16:46 jackson
-// Handle drawing picture boxes in the theme now. Draw picture box borders and obey sizing modes
-//
-// Revision 1.2 2004/08/20 00:12:51 jordi
-// fixes methods signature
-//
-// Revision 1.1 2004/08/19 22:26:30 jordi
-// move themes from an interface to a class
-//
-//
+
using System.Drawing;
using System.Drawing.Drawing2D;
// Jordi Mas i Hernandez, jordi@ximian.com
//
//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: ThemeEngine.cs,v $
-// Revision 1.2 2004/08/19 22:25:31 jordi
-// theme enhancaments
-//
-// Revision 1.1 2004/07/26 17:42:03 jordi
-// Theme support
-//
-//
+
using System;
// - GTK paints controls into a window no a device context. We should inverstigate if we
// we can encapsulate a dc in a gtkwindow.
//
-// $Revision: 1.6 $
-// $Modtime: $
-// $Log: ThemeGtk.cs,v $
-// Revision 1.6 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.5 2004/09/02 16:32:54 jordi
-// implements resource pool for pens, brushes, and hatchbruses
-//
-// Revision 1.4 2004/08/24 18:37:02 jordi
-// fixes formmating, methods signature, and adds missing events
-//
-// Revision 1.3 2004/08/20 20:39:51 jordi
-// use style_attach
-//
-// Revision 1.2 2004/08/20 00:55:28 jordi
-// fixes button order
-//
-// Revision 1.1 2004/08/19 22:27:40 jordi
-// experimental GTK theme support
-//
-//
+
+
// NOT COMPLETE
using System;
// John BouAntoun, jba-mono@optusnet.com.au
//
//
-//
-// $Revision: 1.65 $
-// $Modtime: $
-// $Log: ThemeWin32Classic.cs,v $
-// Revision 1.65 2004/11/10 20:10:38 jackson
-// * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
-// the clip area.
-//
-// Revision 1.64 2004/11/10 19:22:26 jackson
-// * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
-// clip area.
-//
-// Revision 1.63 2004/11/10 01:04:28 jackson
-// * TabControl.cs (CalcXPos): New helper method so we can determine
-// the proper place to start drawing vertical tabs.
-// * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
-//
-// Revision 1.62 2004/11/09 21:44:54 jackson
-// * TabControl.cs: Calculate sizing and rects for left aligned tabs.
-// * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
-// and Bottom, left and right are illegal values for this and
-// multiline is enabled when the alignment is set to left or right.
-// (DrawTab): Each alignment block should draw the text itself now
-// because Left requires special love. Also add rendering for Left
-// aligned tabs.
-//
-// Revision 1.61 2004/11/09 11:06:21 jba
-// - (DrawButtonBase): Fix verticle text rect clipping in windows
-// - (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
-// rendering and incorrect text rect clipping
-// - (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
-// rendering and incorrect text rect clipping
-//
-// Revision 1.60 2004/11/09 03:12:00 jackson
-// * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
-// bottom when they are bottom aligned so the bottoms of the tabs get
-// displayed.
-// * TabControl.cs (DropRow): Move rows up instead of down when the
-// tab control is bottom aligned.
-//
-// Revision 1.59 2004/11/08 20:40:08 jackson
-// Render the little scrolling jimmi in the correct location with bottom aligned tabs
-//
-// Revision 1.58 2004/11/08 14:15:00 jordi
-// fixes vertical scrollbar and removes dead code
-//
-// Revision 1.57 2004/11/05 05:47:34 jba
-// - Fix Button rendering for FlatStyle = Flat or Popup
-// - Fix RadioButton and CheckBox rendering when Appearance = Button (normal and
-// flatstyle).
-// - Correct outer rectangle color when drawing focus rectangle
-// - Adjust button bounds to be 1 px smaller when focused
-// - Make button not draw sunken 3d border when pushed (windows compat)
-// - Fix CPDrawBorder3D to not make bottom right hand corner rounded
-// - Offset the text in RadioButton and Checkbox when being rendered as a button.
-// - Hover and Click behaviour for Colored FlatStyle.Flat and Popup radiobuttons
-// - Fixed disabled rendering for colored flatstyle radiobuttons (both)
-// - Fixed disabled text rendering for normally rendered radiobuttons
-//
-// Revision 1.56 2004/11/04 11:26:09 ravindra
-// - Changed default ListView values signatures (prefixed all with ListView).
-// - Fixed default size values for VScrollBar and HScrollBar.
-// - Fixed DrawListViewItem method.
-//
-// Revision 1.55 2004/11/03 18:52:14 jackson
-// Initial implementation of the scrolly widgerywoo
-//
-// Revision 1.54 2004/11/02 20:40:54 jackson
-// Move the row with the selected tab to the bottom
-//
-// Revision 1.53 2004/11/02 02:47:55 jackson
-// New rendering and sizing code for tab controls
-//
-// Revision 1.52 2004/10/30 10:23:02 ravindra
-// Drawing ListView and some default values.
-//
-// Revision 1.51 2004/10/26 09:55:48 ravindra
-// Some formatting for my last checkins.
-//
-// Revision 1.50 2004/10/26 09:36:32 ravindra
-// Implemented DetailView drawing for ListView control and default values.
-//
-// Revision 1.49 2004/10/18 04:49:25 pbartok
-// - Added ToolTip drawing code
-//
-// Revision 1.48 2004/10/15 15:08:49 ravindra
-// Added ColumnHeaderHeight property in Theme for ListView.
-//
-// Revision 1.47 2004/10/13 15:06:37 pbartok
-// - Path from John BouAntoun:
-// * Fix check rendering (centre correctly for normal style, offset
-// correctly for FlatStyle).
-// * Fix border color usage (use backcolor) for FlatStyle.Popup
-// * Use checkbox.Capture instead of checkbox.is_pressed when rendering
-// flatstyle states.
-//
-// Revision 1.46 2004/10/13 03:48:15 pbartok
-// - Removed all occurences of SystemColors and replaced them with the
-// matching theme color
-//
-// Revision 1.45 2004/10/13 03:41:45 pbartok
-// - From John BouAntoun: Added an overload to CPDrawBorder3D to allow him
-// using the function for flatstyle drawing
-// - Changed functions to use the new version of CPDrawBorder3D
-//
-// Revision 1.44 2004/10/13 02:45:21 pbartok
-// - Fixes from John BouAntoun: now handles forecolors and backcolors for
-// flatstyle rendered controls much better; It also fixes normal checkbox
-// rendering when pushed or disabled.
-//
-// Revision 1.43 2004/10/07 14:56:51 jordi
-// Removes deletion of cached brushes
-//
-// Revision 1.42 2004/10/06 09:59:05 jordi
-// removes warnings from compilation
-//
-// Revision 1.41 2004/10/05 16:15:30 jackson
-// Improve rendering of the radio button patch by John BouAntoun
-//
-// Revision 1.40 2004/10/05 09:04:31 ravindra
-// - Added DrawListView method and ListViewDefaultSize property.
-// - Changed ControlPaint method calls to CPDrawXXX wherever possible.
-// - Changed DOS style CRLF to Unix format (dos2unix).
-//
-// Revision 1.39 2004/10/04 07:09:37 jordi
-// fixes right button position causing right button not showing on horizontal scrollbars
-//
-// Revision 1.38 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.37 2004/09/09 08:28:11 pbartok
-// - Improve disabled string look
-//
-// Revision 1.36 2004/09/09 03:03:49 ravindra
-// PictureBox would not draw a null image to avoid crash.
-//
-// Revision 1.35 2004/09/07 17:12:26 jordi
-// GroupBox control
-//
-// Revision 1.34 2004/09/07 09:40:15 jordi
-// LinkLabel fixes, methods, multiple links
-//
-// Revision 1.33 2004/09/05 08:03:51 jordi
-// fixes bugs, adds flashing on certain situations
-//
-// Revision 1.32 2004/09/02 16:32:54 jordi
-// implements resource pool for pens, brushes, and hatchbruses
-//
-// Revision 1.31 2004/08/25 20:04:40 ravindra
-// Added the missing divider code and grip for ToolBar Control.
-//
-// Revision 1.30 2004/08/25 18:29:14 jordi
-// new methods, properties, and fixes for progressbar
-//
-// Revision 1.29 2004/08/25 00:43:13 ravindra
-// Fixed wrapping related issues in ToolBar control.
-//
-// Revision 1.28 2004/08/24 18:37:02 jordi
-// fixes formmating, methods signature, and adds missing events
-//
-// Revision 1.27 2004/08/24 16:16:46 jackson
-// Handle drawing picture boxes in the theme now. Draw picture box borders and obey sizing modes
-//
-// Revision 1.26 2004/08/21 01:52:08 ravindra
-// Improvments in mouse event handling in the ToolBar control.
-//
-// Revision 1.25 2004/08/20 00:12:51 jordi
-// fixes methods signature
-//
-// Revision 1.24 2004/08/19 22:25:31 jordi
-// theme enhancaments
-//
-// Revision 1.23 2004/08/18 19:16:53 jordi
-// Move colors to a table
-//
-// Revision 1.22 2004/08/17 19:29:11 jackson
-// Don't use KnownColor to create colours. It has a large startup time.
-//
-// Revision 1.21 2004/08/15 23:20:54 ravindra
-// Changes to Theme for ToolBar control and also dos2unix format.
-//
-// Revision 1.20 2004/08/13 21:22:18 jordi
-// removes redundant code and fixes issues with tickposition
-//
-// Revision 1.19 2004/08/12 20:29:01 jordi
-// Trackbar enhancement, fix mouse problems, highli thumb, etc
-//
-// Revision 1.18 2004/08/12 18:54:37 jackson
-// Handle owner draw status bars
-//
-// Revision 1.17 2004/08/11 01:31:35 jackson
-// Create Brushes as little as possible
-//
-// Revision 1.16 2004/08/10 19:21:27 jordi
-// scrollbar enhancements and standarize on win colors defaults
-//
-// Revision 1.15 2004/08/10 18:52:30 jackson
-// Implement DrawItem functionality
-//
-// Revision 1.14 2004/08/09 21:34:54 jackson
-// Add support for drawing status bar and get status bar item sizes
-//
-// Revision 1.13 2004/08/09 21:21:49 jackson
-// Use known colors for default control colours
-//
-// Revision 1.12 2004/08/09 21:12:15 jackson
-// Make the default font static, it is static in control so this doesn't change functionality and creating fonts is sloooooow.
-//
-// Revision 1.11 2004/08/09 17:31:13 jackson
-// New names for control properties
-//
-// Revision 1.10 2004/08/09 17:00:00 jackson
-// Add default window color properties
-//
-// Revision 1.9 2004/08/09 16:17:19 jackson
-// Use correct default back color
-//
-// Revision 1.8 2004/08/09 15:53:12 jackson
-// Themes now handle default control properties so coloring will be consistent
-//
-// Revision 1.7 2004/08/08 22:54:21 jordi
-// Label BorderStyles
-//
-// Revision 1.6 2004/08/08 18:09:53 jackson
-// Add pen_buttonface
-//
-// Revision 1.5 2004/08/08 17:34:28 jordi
-// Use Windows Standard Colours
-//
-// Revision 1.4 2004/08/07 23:31:15 jordi
-// fixes label bug and draw method name
-//
-// Revision 1.3 2004/08/07 19:05:44 jordi
-// Theme colour support and GetSysColor defines
-//
-// Revision 1.2 2004/08/07 00:01:39 pbartok
-// - Fixed some rounding issues with float/int
-//
-// Revision 1.1 2004/07/26 17:42:03 jordi
-// Theme support
-//
-//
+
using System.Drawing;
using System.Drawing.Drawing2D;
// Copyright (C) Novell Inc., 2004
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: TickStyle.cs,v $
-// Revision 1.1 2004/07/15 09:38:02 jordi
-// Horizontal and Vertical TrackBar control implementation
-//
-//
+
namespace System.Windows.Forms
{
//
// Copyright (C) Novell, Inc. 2004 (http://www.novell.com)
//
-//
-// $Revision: 1.17 $
-// $Modtime: $
-// $Log: ToolBar.cs,v $
-// Revision 1.17 2004/10/26 09:33:42 ravindra
-// ToolBar should use the user specified button size, if there is any. Added a size_specified flag for the same.
-//
-// Revision 1.16 2004/10/14 11:14:05 ravindra
-// - Changed Redraw () to do a Refresh () always.
-// - Fixed the MouseMove event handling when mouse is pressed,
-// ie drag event handling.
-// - Replaced the usage of ToolBarButton.Pressed property to
-// ToolBarButton.pressed internal variable.
-//
-// Revision 1.15 2004/10/06 09:59:05 jordi
-// removes warnings from compilation
-//
-// Revision 1.14 2004/10/05 09:07:07 ravindra
-// - Removed a private method, Draw ().
-// - Fixed the ButtonDropDown event handling.
-// - Fixed MouseMove event handling.
-//
-// Revision 1.13 2004/10/05 04:56:12 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.12 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.11 2004/09/16 13:00:19 ravindra
-// Invalidate should be done before redrawing.
-//
-// Revision 1.10 2004/09/09 11:25:03 ravindra
-// Make redraw accessible from ToolBarButton.
-//
-// Revision 1.9 2004/08/25 20:04:40 ravindra
-// Added the missing divider code and grip for ToolBar Control.
-//
-// Revision 1.8 2004/08/25 00:43:13 ravindra
-// Fixed wrapping related issues in ToolBar control.
-//
-// Revision 1.7 2004/08/22 01:20:14 ravindra
-// Correcting the formatting mess of VS.NET.
-//
-// Revision 1.6 2004/08/22 00:49:37 ravindra
-// Probably this completes the missing attributes in toolbar control.
-//
-// Revision 1.5 2004/08/22 00:03:20 ravindra
-// Fixed toolbar control signatures.
-//
-// Revision 1.4 2004/08/21 01:52:08 ravindra
-// Improvments in mouse event handling in the ToolBar control.
-//
-// Revision 1.3 2004/08/17 02:00:54 ravindra
-// Added attributes.
-//
-// Revision 1.2 2004/08/17 00:48:50 ravindra
-// Added attributes.
-//
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// NOT COMPLETE
// Ravindra (rkumar@novell.com)
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ToolBarAppearance.cs,v $
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// COMPLETE
// TODO:
// - Adding a button to two toolbars
//
-// $Revision: 1.9 $
-// $Modtime: $
-// $Log: ToolBarButton.cs,v $
-// Revision 1.9 2004/10/14 11:10:47 ravindra
-// - Added an internal member 'inside' to handle mouse move
-// with mouse pressed ie mouse drag event.
-// - Changed 'Pressed' property to return true only when
-// 'inside' and 'pressed' are both true.
-// - Some coding style love.
-//
-// Revision 1.8 2004/10/05 08:42:20 ravindra
-// Added an internal member dd_pressed to handle clicks on DropDown arrow.
-//
-// Revision 1.7 2004/09/09 11:23:05 ravindra
-// Changes in ToolBarButton need to make it's parent redraw.
-//
-// Revision 1.6 2004/08/27 22:12:56 ravindra
-// Added TypeConverter attribute.
-//
-// Revision 1.5 2004/08/25 20:04:40 ravindra
-// Added the missing divider code and grip for ToolBar Control.
-//
-// Revision 1.4 2004/08/22 00:03:20 ravindra
-// Fixed toolbar control signatures.
-//
-// Revision 1.3 2004/08/21 01:52:08 ravindra
-// Improvments in mouse event handling in the ToolBar control.
-//
-// Revision 1.2 2004/08/17 02:00:54 ravindra
-// Added attributes.
-//
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// NOT COMPLETE
// Ravindra (rkumar@novell.com)
//
//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: ToolBarButtonClickEventArgs.cs,v $
-// Revision 1.3 2004/08/22 00:03:20 ravindra
-// Fixed toolbar control signatures.
-//
-// Revision 1.2 2004/08/21 21:52:54 pbartok
-// - Added missing base class
-//
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// COMPLETE
// Ravindra (rkumar@novell.com)
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ToolBarButtonClickEventHandler.cs,v $
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// COMPLETE
// Authors:
// Ravindra (rkumar@novell.com)
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ToolBarButtonStyle.cs,v $
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// COMPLETE
// Authors:
// Ravindra (rkumar@novell.com)
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: ToolBarTextAlign.cs,v $
-// Revision 1.1 2004/08/15 23:13:15 ravindra
-// First Implementation of ToolBar control.
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.4 $
-// $Log: ToolTip.cs,v $
-// Revision 1.4 2004/11/08 20:49:35 pbartok
-// - Fixed arguments for updated SetTopmost function
-// - Fixed usage of PointToClient
-//
-// Revision 1.3 2004/10/19 06:04:59 ravindra
-// Fixed constructor.
-//
-// Revision 1.2 2004/10/18 06:28:30 ravindra
-// Suppressed a warning message.
-//
-// Revision 1.1 2004/10/18 05:19:57 pbartok
-// - Complete implementation
-//
-//
-//
+
// COMPLETE
// Copyright (C) Novell Inc., 2004
//
//
-// $Revision: 1.15 $
-// $Modtime: $
-// $Log: TrackBar.cs,v $
-// Revision 1.15 2004/10/05 04:56:12 jackson
-// Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
-//
-// Revision 1.14 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.13 2004/08/23 20:10:03 jordi
-// fixes properties and methods
-//
-// Revision 1.12 2004/08/21 20:21:48 pbartok
-// - Replaced direct XplatUI calls with their Control counterpart
-//
-// Revision 1.11 2004/08/20 19:45:50 jordi
-// fixes timer, new properties and methods
-//
-// Revision 1.10 2004/08/13 20:55:20 jordi
-// change from wndproc to events
-//
-// Revision 1.9 2004/08/13 18:46:26 jordi
-// adds timer and grap window
-//
-// Revision 1.8 2004/08/12 20:29:01 jordi
-// Trackbar enhancement, fix mouse problems, highli thumb, etc
-//
-// Revision 1.7 2004/08/10 23:27:12 jordi
-// add missing methods, properties, and restructure to hide extra ones
-//
-// Revision 1.6 2004/08/10 15:47:11 jackson
-// Allow control to handle buffering
-//
-// Revision 1.5 2004/08/07 23:32:26 jordi
-// throw exceptions of invalid enums values
-//
-// Revision 1.4 2004/08/06 23:18:06 pbartok
-// - Fixed some rounding issues with float/int
-//
-// Revision 1.3 2004/07/27 15:53:02 jordi
-// fixes trackbar events, def classname, methods signature
-//
-// Revision 1.2 2004/07/26 17:42:03 jordi
-// Theme support
-//
-// Revision 1.1 2004/07/15 09:38:02 jordi
-// Horizontal and Vertical TrackBar control implementation
-//
-//
+
// NOT COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.2 $
-// $Modtime: $
-// $Log: UICues.cs,v $
-// Revision 1.2 2004/08/11 01:20:34 jackson
-// Add Flags attribute
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: UICuesEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: UICuesEventHandler.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Log: UserControl.cs,v $
-// Revision 1.1 2004/08/22 18:00:49 pbartok
-// - Implemented UserControl (complete)
-//
-//
-//
+
// COMPLETE
//
//
//
-// $Revision: 1.3 $
-// $Modtime: $
-// $Log: VScrollBar.cs,v $
-// Revision 1.3 2004/09/28 18:44:25 pbartok
-// - Streamlined Theme interfaces:
-// * Each DrawXXX method for a control now is passed the object for the
-// control to be drawn in order to allow accessing any state the theme
-// might require
-//
-// * ControlPaint methods for the theme now have a CP prefix to avoid
-// name clashes with the Draw methods for controls
-//
-// * Every control now retrieves it's DefaultSize from the current theme
-//
-// Revision 1.2 2004/08/23 20:10:03 jordi
-// fixes properties and methods
-//
-// Revision 1.1 2004/07/13 15:33:46 jordi
-// vertical and hort. classes commit
-//
-//
+
using System.Drawing;
// Authors:
// Ravindra (rkumar@novell.com)
//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: View.cs,v $
-// Revision 1.1 2004/09/09 03:13:39 ravindra
-// Enums for ListView control.
-//
-//
+
namespace System.Windows.Forms
{
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.12 $
-// $Modtime: $
-// $Log: X11Structs.cs,v $
-// Revision 1.12 2004/11/08 20:52:15 pbartok
-// - Added XSetWindowAttributes structure
-// - Improved XWindowAttributes structure
-// - Added SetWindowValuemask enum
-// - Added window creation arguments enum
-// - Added gravity enum
-// - Added Motif hints structure
-// - Added various Motif flags and enums
-// - Added PropertyMode enum for property functions
-//
-// Revision 1.11 2004/09/14 00:13:29 jackson
-// Timers are now handled in a second thread and post messages into the main threads message queue. This makes timing much more consistent. Both win2K and XP have a minimum timer value of 15 milliseconds, so we now do this too.
-//
-// Revision 1.10 2004/09/13 21:18:32 pbartok
-// - Added Z-Ordering methods
-//
-// Revision 1.9 2004/08/24 22:35:44 pbartok
-// - Refined definitions for CrossingEvent
-//
-// Revision 1.8 2004/08/20 19:11:56 jackson
-// Use IntPtrs for ClientMessage extra data (TODO: This will screw up on 64 bit systems)
-//
-// Revision 1.7 2004/08/19 21:51:59 pbartok
-// - Removed packing hints (Paolo suggested this a while back)
-// - fixed colormap type
-// - Added default Atom types
-// - Added Screen and color structs and enums
-//
-// Revision 1.6 2004/08/09 20:56:18 pbartok
-// - Added GrabMode enum
-//
-// Revision 1.5 2004/08/06 23:17:44 pbartok
-// - Fixed Refresh and Invalidate
-//
-// Revision 1.4 2004/08/06 21:30:56 pbartok
-// - Fixed recursive loop when resizing
-// - Improved/fixed redrawing on expose messages
-//
-// Revision 1.3 2004/08/06 15:53:39 jordi
-// X11 keyboard navigation
-//
-// Revision 1.2 2004/08/06 14:02:33 pbartok
-// - Fixed reparenting
-// - Fixed window border creation
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
//
// Authors:
// Peter Bartok pbartok@novell.com
-//
-//
-// $Revision: 1.26 $
-// $Modtime: $
-// $Log: XplatUI.cs,v $
-// Revision 1.26 2004/11/08 20:53:03 pbartok
-// - Added argument to SetTopmost
-//
-// Revision 1.25 2004/10/18 04:50:54 pbartok
-// - Added method for enabling/disabling windows
-// - Added method for setting window modality
-// - Added method for setting topmost window
-//
-// Revision 1.24 2004/10/02 19:07:36 pbartok
-// - Added ClientToScreen coordinate translation method
-//
-// Revision 1.23 2004/09/21 00:54:15 jackson
-// New message loop that uses poll so we don't get a busy loop
-//
-// Revision 1.22 2004/09/13 21:18:32 pbartok
-// - Added Z-Ordering methods
-//
-// Revision 1.21 2004/09/11 00:57:35 pbartok
-// - Added method to retrieve text from window
-//
-// Revision 1.20 2004/08/24 11:29:44 jackson
-// Move timers to the driver level. On X they are queued by the driver and checked on idle.
-//
-// Revision 1.19 2004/08/23 19:39:30 pbartok
-// - Added method to move mouse cursor
-//
-// Revision 1.18 2004/08/21 20:51:27 pbartok
-// - Added method to get default display size
-//
-// Revision 1.17 2004/08/21 20:23:56 pbartok
-// - Added method to query current grab state
-// - Added argument to allow confining a grab to a window
-//
-// Revision 1.16 2004/08/20 20:03:20 pbartok
-// - Added method for setting the window background
-//
-// Revision 1.15 2004/08/20 19:14:35 jackson
-// Expose functionality to send async messages through the driver
-//
-// Revision 1.14 2004/08/13 21:42:15 pbartok
-// - Changed signature for GetCursorPos
-//
-// Revision 1.13 2004/08/13 19:00:15 jordi
-// implements PointToClient (ScreenToClient)
-//
-// Revision 1.12 2004/08/13 18:53:14 pbartok
-// - Changed GetWindowPos to also provide client area size
-//
-// Revision 1.11 2004/08/12 22:59:03 pbartok
-// - Implemented method to get current mouse position
-//
-// Revision 1.10 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.9 2004/08/11 19:19:44 pbartok
-// - We had SetWindowPos and MoveWindow to set window positions and size,
-// removed MoveWindow. We have GetWindowPos, so it made sense to keep
-// SetWindowPos as matching counterpart
-// - Added some X11 sanity checking
-//
-// Revision 1.8 2004/08/11 18:55:46 pbartok
-// - Added method to calculate difference between decorated window and raw
-// client area
-//
-// Revision 1.7 2004/08/10 17:39:22 pbartok
-// - Added GetWindowPos method
-//
-// Revision 1.6 2004/08/09 20:55:59 pbartok
-// - Removed Run method, was only required for initial development
-//
-// Revision 1.5 2004/08/09 20:51:25 pbartok
-// - Implemented GrabWindow/ReleaseWindow methods to allow pointer capture
-//
-// Revision 1.4 2004/08/09 17:02:29 jackson
-// Get default window properties from the theme
-//
-// Revision 1.3 2004/08/09 15:56:44 jackson
-// Remove defaults, these are handled by the theme now.
-//
-// Revision 1.2 2004/08/04 20:11:24 pbartok
-// - Added Invalidate handling
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.26 $
-// $Modtime: $
-// $Log: XplatUIDriver.cs,v $
-// Revision 1.26 2004/11/08 20:53:17 pbartok
-// - Added argument to SetTopmost
-//
-// Revision 1.25 2004/10/18 04:50:54 pbartok
-// - Added method for enabling/disabling windows
-// - Added method for setting window modality
-// - Added method for setting topmost window
-//
-// Revision 1.24 2004/10/02 19:07:36 pbartok
-// - Added ClientToScreen coordinate translation method
-//
-// Revision 1.23 2004/09/21 00:54:15 jackson
-// New message loop that uses poll so we don't get a busy loop
-//
-// Revision 1.22 2004/09/13 21:18:32 pbartok
-// - Added Z-Ordering methods
-//
-// Revision 1.21 2004/09/11 00:57:35 pbartok
-// - Added method to retrieve text from window
-//
-// Revision 1.20 2004/08/24 11:29:44 jackson
-// Move timers to the driver level. On X they are queued by the driver and checked on idle.
-//
-// Revision 1.19 2004/08/23 19:39:30 pbartok
-// - Added method to move mouse cursor
-//
-// Revision 1.18 2004/08/21 20:51:27 pbartok
-// - Added method to get default display size
-//
-// Revision 1.17 2004/08/21 20:23:56 pbartok
-// - Added method to query current grab state
-// - Added argument to allow confining a grab to a window
-//
-// Revision 1.16 2004/08/20 20:03:20 pbartok
-// - Added method for setting the window background
-//
-// Revision 1.15 2004/08/20 19:19:28 jackson
-// Expose functionality to send async messages through the driver
-//
-// Revision 1.14 2004/08/13 21:42:15 pbartok
-// - Changed signature for GetCursorPos
-//
-// Revision 1.13 2004/08/13 19:00:15 jordi
-// implements PointToClient (ScreenToClient)
-//
-// Revision 1.12 2004/08/13 18:53:14 pbartok
-// - Changed GetWindowPos to also provide client area size
-//
-// Revision 1.11 2004/08/12 22:59:03 pbartok
-// - Implemented method to get current mouse position
-//
-// Revision 1.10 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.9 2004/08/11 19:19:44 pbartok
-// - We had SetWindowPos and MoveWindow to set window positions and size,
-// removed MoveWindow. We have GetWindowPos, so it made sense to keep
-// SetWindowPos as matching counterpart
-// - Added some X11 sanity checking
-//
-// Revision 1.8 2004/08/11 18:55:46 pbartok
-// - Added method to calculate difference between decorated window and raw
-// client area
-//
-// Revision 1.7 2004/08/10 17:39:22 pbartok
-// - Added GetWindowPos method
-//
-// Revision 1.6 2004/08/10 14:34:15 jackson
-// Use default colors from the theme
-//
-// Revision 1.5 2004/08/09 20:55:59 pbartok
-// - Removed Run method, was only required for initial development
-//
-// Revision 1.4 2004/08/09 20:51:25 pbartok
-// - Implemented GrabWindow/ReleaseWindow methods to allow pointer capture
-//
-// Revision 1.3 2004/08/04 20:11:24 pbartok
-// - Added Invalidate handling
-//
-// Revision 1.2 2004/08/03 23:09:02 jordi
-// fixes spelling mistake
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
// COMPLETE
// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.6 $
-// $Modtime: $
-// $Log: XplatUIStructs.cs,v $
-// Revision 1.6 2004/11/08 20:53:48 pbartok
-// - Added missing WS_EX styles
-//
-// Revision 1.5 2004/10/18 04:51:28 pbartok
-// - Added WS_EX styles to WindowStyles enumeration
-//
-// Revision 1.4 2004/08/21 00:58:31 pbartok
-// - Added private message for async communication
-//
-// Revision 1.3 2004/08/16 21:46:08 pbartok
-// - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support OnMouseEnter/Leave()
-//
-// Revision 1.2 2004/07/15 17:06:48 jordi
-// added MsgButons enum
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE
// Peter Bartok pbartok@novell.com
//
//
-// $Revision: 1.43 $
-// $Modtime: $
-// $Log: XplatUIWin32.cs,v $
-// Revision 1.43 2004/11/08 20:55:33 pbartok
-// - Added argument to SetTopmost method
-// - Fixed broken ClientToScreen function
-//
-// Revision 1.42 2004/10/20 03:58:05 pbartok
-// - Small sanity check
-//
-// Revision 1.41 2004/10/18 05:17:32 pbartok
-// - Removed VirtualKeys to XplatUIStructs
-// - Implemented SetTopMost method
-// - Implemented EnableWindow method
-// - Bugfix in ScreenToClient()
-// - Bugfixes in ClientToScreen()
-//
-// Revision 1.40 2004/10/13 20:18:21 pbartok
-// - Added code to destroy a window
-//
-// Revision 1.39 2004/10/06 09:59:05 jordi
-// removes warnings from compilation
-//
-// Revision 1.38 2004/10/02 19:08:38 pbartok
-// - Added Win32EnableWindow method (test for implementing modal dialogs)
-// - Added ClientToScreen method and imports
-//
-// Revision 1.37 2004/09/21 04:14:29 pbartok
-// - Fixed accessibility level for Idle handler
-//
-// Revision 1.36 2004/09/21 00:54:15 jackson
-// New message loop that uses poll so we don't get a busy loop
-//
-// Revision 1.35 2004/09/16 23:45:09 pbartok
-// - Fixed sending a window to the front
-// - Added overload for SetWindowPos to avoid casting
-//
-// Revision 1.34 2004/09/13 21:18:32 pbartok
-// - Added Z-Ordering methods
-//
-// Revision 1.33 2004/09/11 00:57:35 pbartok
-// - Added method to retrieve text from window
-//
-// Revision 1.32 2004/08/25 18:33:08 pbartok
-// - Fixed timer handling, now seems to work
-// - Improved error message for window creation
-//
-// Revision 1.31 2004/08/24 17:17:27 pbartok
-// - Implemented SetTimer() and KillTimer()
-//
-// Revision 1.30 2004/08/24 11:29:44 jackson
-// Move timers to the driver level. On X they are queued by the driver and checked on idle.
-//
-// Revision 1.29 2004/08/24 00:19:36 ravindra
-// Removed the unwanted destructor.
-//
-// Revision 1.28 2004/08/23 19:39:30 pbartok
-// - Added method to move mouse cursor
-//
-// Revision 1.27 2004/08/21 20:51:27 pbartok
-// - Added method to get default display size
-//
-// Revision 1.26 2004/08/21 20:23:56 pbartok
-// - Added method to query current grab state
-// - Added argument to allow confining a grab to a window
-//
-// Revision 1.25 2004/08/21 18:35:38 pbartok
-// - Fixed bug with Async message handling
-// - Implemented getting the ModifierKeys
-//
-// Revision 1.24 2004/08/21 17:31:21 pbartok
-// - Drivers now return proper mouse state
-//
-// Revision 1.23 2004/08/20 20:39:07 pbartok
-// - Added jackson's Async code from X11 to Win32
-//
-// Revision 1.22 2004/08/20 20:02:45 pbartok
-// - Added method for setting the background color
-// - Added handling for erasing the window background
-//
-// Revision 1.21 2004/08/20 19:14:35 jackson
-// Expose functionality to send async messages through the driver
-//
-// Revision 1.20 2004/08/20 01:37:47 pbartok
-// - Added generation of MouseEnter, MouseLeave and MouseHover events
-// - Added cleanup on EndPaint
-//
-// Revision 1.19 2004/08/18 19:16:53 jordi
-// Move colors to a table
-//
-// Revision 1.18 2004/08/17 21:24:03 pbartok
-// - Finished IsVisible
-// - Added Win32GetWindowPlacement
-//
-// Revision 1.17 2004/08/13 21:42:15 pbartok
-// - Changed signature for GetCursorPos
-//
-// Revision 1.16 2004/08/13 19:00:15 jordi
-// implements PointToClient (ScreenToClient)
-//
-// Revision 1.15 2004/08/13 18:53:57 pbartok
-// - Changed GetWindowPos to also provide client area size
-// - Fixed broken prototypes for several win32 functions
-//
-// Revision 1.14 2004/08/12 22:59:03 pbartok
-// - Implemented method to get current mouse position
-//
-// Revision 1.13 2004/08/11 22:20:59 pbartok
-// - Signature fixes
-//
-// Revision 1.12 2004/08/11 19:41:38 jordi
-// Fixes ClientRect
-//
-// Revision 1.11 2004/08/11 19:19:44 pbartok
-// - We had SetWindowPos and MoveWindow to set window positions and size,
-// removed MoveWindow. We have GetWindowPos, so it made sense to keep
-// SetWindowPos as matching counterpart
-// - Added some X11 sanity checking
-//
-// Revision 1.10 2004/08/11 18:55:46 pbartok
-// - Added method to calculate difference between decorated window and raw
-// client area
-//
-// Revision 1.9 2004/08/10 18:47:16 jordi
-// Calls InvalidateRect before UpdateWindow
-//
-// Revision 1.8 2004/08/10 17:36:17 pbartok
-// - Implemented several methods
-//
-// Revision 1.7 2004/08/09 20:55:59 pbartok
-// - Removed Run method, was only required for initial development
-//
-// Revision 1.6 2004/08/09 20:51:25 pbartok
-// - Implemented GrabWindow/ReleaseWindow methods to allow pointer capture
-//
-// Revision 1.5 2004/08/09 16:05:16 jackson
-// These properties are handled by the theme now.
-//
-// Revision 1.4 2004/08/06 15:53:39 jordi
-// X11 keyboard navigation
-//
-// Revision 1.3 2004/08/04 20:11:24 pbartok
-// - Added Invalidate handling
-//
-// Revision 1.2 2004/07/21 16:19:17 jordi
-// LinkLabel control implementation
-//
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// NOT COMPLETE