1 2008-02-02 Luke Page <luke.a.page@gmail.com>
3 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4 Fixes bug 351938 - caret is positioned correctly when drawn
5 and when calculating textual position of caret, no longer
6 has a NRE in certain situations.
8 2008-02-01 Geoff Norton <gnorton@novell.com>
10 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
11 get that region removed from the paint event.
12 * XplatUICarbon.cs: Remove the window mapping after disposing of
13 window. Prevents a crash with handle reuse. Optimize exposes
14 only onto visible windows (rare; but possible).
16 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
18 * UpDownBase.cs: Make sure the internal textbox calls the base's
19 OnMouseDown and OnMouseUp so the textbox will function correctly.
20 There were notes saying it doesn't chain up, but its an internal
21 class, so our implementation may differ.
24 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
26 * ListBox.cs: Fix a logic error and don't process MouseDown
27 for mouse buttons other than Left.
29 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
31 * Control.cs: Remove HeightInternal.
32 * ListBox.cs: Commit patch from James Purcell that correctly
33 calculates heights for ListBoxen.
36 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
38 * Label.cs: Apply patch from James Purcell that corrects the
39 signature of the AutoSize property.
42 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
44 * ListBox.cs: Don't throw [Mouse]Click events for buttons
45 other than the left mouse button.
47 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
49 * Control.cs: Remove my awesome optimization as it caused some
50 regressions with control ordering. :(
53 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
55 * PropertyGridView.cs: Fix a NRE on double click when there is no
58 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
60 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
62 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
64 * ListBox.cs: Call MouseClick and MouseDoubleClick.
67 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
69 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
70 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
71 instead of Hwnd.bmp_g.
73 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
75 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
76 Use the Hwnd one instead.
78 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
80 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
82 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
84 * Form.cs: corcompare for RestoreBounds.
86 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
88 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
90 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
92 * Form.cs: Handle Alt-Minus for MDI children forms.
93 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
94 Add mnemonics to the control menu.
97 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
99 * Binding.cs: Initial implementation bits of FormattingEnabled
100 property and BindingComplete event (2.0).
101 * BindingCompleteEventArgs.cs: Internal methods for setting error text
104 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
106 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
107 table.Location. [Fixes bug #354672]
109 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
111 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
112 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
114 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
116 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
117 of doing all the re-bound work, just invalidate and call SetControlText
118 to set the updated text of selected item to our textbox.
121 2008-01-28 Andreia Gaita <avidigal@novell.com>
123 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
124 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
125 missing properties and methods. Add Load, Unload, Error, GotFocus,
126 LostFocus, Resize, Scroll events (only load and unload are connected)
128 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
130 * AccessibleObject.cs: Modified argument names to match MS.
131 * Button.cs: Modified argument names to match MS.
132 * BindingContext.cs: Modified argument names to match MS.
133 * BindingMemberInfo.cs: Modified argument names to match MS.
134 * ButtonBase.cs: Modified argument names to match MS.
135 * ComboBox.cs: Modified argument names to match MS.
136 * Control.cs: Modified argument names to match MS.
137 * CheckedListBox.cs: Modified argument names to match MS.
138 * CommonDialog.cs: Modified argument names to match MS.
139 * DataGrid.cs: Modified argument names to match MS.
140 * CursorConverter.cs: Modified argument names to match MS.
141 * ControlPaint.cs: Modified argument names to match MS.
142 * CheckBox.cs: Modified argument names to match MS.
143 * ControlBindingsCollection.cs: Modified argument names to match MS.
144 * BindingSource.cs: Modified argument names to match MS.
145 * DataFormats.cs: Modified argument names to match MS.
146 * ContainerControl.cs: Modified argument names to match MS.
147 * CurrencyManager.cs: Modified argument names to match MS.
148 * Application.cs: Modified argument names to match MS.
149 * ContextMenuStrip.cs: Modified argument names to match MS.
150 * ContextMenu.cs: Modified argument names to match MS.
151 * BindingManagerBase.cs: Modified argument names to match MS.
152 * WindowsFormsSection.cs: Fixed line ending.
154 2008-01-27 Andreia Gaita <avidigal@novell.com>
156 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
157 detecting that the dropdown toolwindow is hidden. EndLoop outside the
160 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
162 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
165 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
167 * Binding.cs: Don't avoid the Format event if the control
168 property type is object. Also, if the value retrieved by
169 the data source is null _and_ the control proeprty type
170 is object, return Convert.DBNull (match .Net).
171 Fixes part of #324286.
173 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
175 * ListControl.cs: Since we are getting two BinginContextChanged events
176 for the same binding context instance (when the control is added to
177 form, and when the form is actually shown), take it into account only the
178 first time for a given binding context instance.
179 Fixes part of #324286.
181 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
183 * PropertryGridView.cs: Ops.
185 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
187 * PropertyGridView.cs: Close dropdown form if the owner form is
191 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
193 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
194 RootGridEntry.cs, CategoryGridEntry.cs:
195 PropertyGrid rewrite.
196 - Rewrite all of the control logic in PropertyGrid.
197 - Rewrite all of the ComponentModel logic in GridEntry.
198 - Rewrite all UI work in PropertyGridView.
199 - Many bugfixes, etc.
201 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
203 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
204 when all contained controls are autosize or dock-fill. Also take into
205 account when the total percentage of column/row sizes is not 100%.
208 2008-01-24 Andreia Gaita <avidigal@novell.com>
211 - Save a reference to the IDocument in the instance and
212 use that one instead of going to WebHost.Document; the document that the
213 WebHost returns might not be the right one (in case of frames).
214 - Use the hashcode returned from the IDocument interface.
215 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
216 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
217 LinkColor, Url, VisitedColor, Window
220 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
221 set_Attribute, NextSibling, Parent, TagName, AppendChild,
222 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
223 SetAttribute, Equals, equality operators.
224 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
225 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
227 * HtmlElementCollection.cs: Change implementation to use a generic
228 collection. Implemented Enumerator and CopyTo
230 * HtmlHistory.cs: Add constructor, no implementation yet.
232 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
233 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
234 Equals, equality operators.
236 * HtmlWindowCollection.cs: Implemented.
238 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
239 has been deprecated).
241 * WebBrowserBase.cs: Use Completed event to track document loading
242 (Navigated has been deprecated)
244 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
246 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
247 level MenuItems do not respect tabs.
250 2008-01-23 Geoff Norton <gnorton@novell.com>
252 * XplatUICarbon.cs: Ensure that windows are created in their initial
253 FormWindowState. Finished fixing Fullscreen windows on Carbon
255 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
257 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
258 be used as grab_control. Also save status of capture before show ContextMenu
259 and restore it after close.
261 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
263 * Control.cs: Internal FindRootParent method added to return high control
266 2008-01-23 Geoff Norton <gnorton@novell.com>
268 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
269 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
270 it work again. Handle HITTEST events.
272 2008-01-23 Geoff Norton <gnorton@novell.com>
274 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
275 a crash in certain cases. Support for fullscreen windows in certain cases.
277 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
279 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
282 2008-01-23 Geoff Norton <gnorton@novell.com>
284 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
286 2008-01-23 Geoff Norton <gnorton@novell.com>
288 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
290 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
292 * SplitContainer.cs: Remove unused declarations.
293 * Binding.cs: Remove unused declarations.
295 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
297 * Form.cs: Remove unused declaration of 'active' in Activate method.
298 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
299 prevent compilation warnings.
300 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
301 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
302 * Bindings.cs: Remove unused formatting_enabled declaration.
303 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
305 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
307 * PropertyGridView.cs: Remove usused 'ex' declaration.
308 * DataGridView.cs: Remove unused declarations.
310 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
312 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
314 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
315 to Control class, it makes possible to grab menu to controls that can't
316 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
317 WmMouseMove removed since it was used only to track menu events.
320 - Moved all active_tracker stuff from Form.
321 - ProcessActiveTracker added to prevent code duplicity, now mouse events
322 can call this method instead of reimplement all necessary code handle for
324 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
328 - Remove special handle to ToolStripOverflow, now we can grab menu to
329 controls that can't reach Form using parent tree.
330 - Change type of grab_control from Form to Control.
332 2008-01-22 Geoff Norton <gnorton@novell.com>
334 * TextBoxBase.cs: Split up the sizing of controls and placing of
335 controls. Fixes a bug where scrollbars in Reflector could be sized
336 wrong and have non-working thumbers.
338 2008-01-23 Geoff Norton <gnorton@novell.com>
340 * XplatUI.cs: Refactor environment variables to default support to the
341 Carbon driver on the Mac.
343 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
345 * Label.cs: Uses new LabelPainter for drawing operations.
346 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
347 * Theme.cs: DrawLabel and LabelDefaultSize removed.
349 2008-01-22 Geoff Norton <gnorton@novell.com>
351 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
353 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
355 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
356 through the normal flat button code and don't draw the checkbox glyph.
357 * Theme.cs: Button->ButtonBase signature change.
360 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
362 * LinkLabel.cs: Uses new class LinkLabelPainter.
364 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
366 * MessageBox.cs: Adjust right border space, we don't need to add
367 "space_border*2" two times.
369 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
371 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
372 becomes a wrapper around Padding.
373 [Fixes a part of bug #354676]
375 2008-01-22 Geoff Norton <gnorton@novell.com>
377 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
378 acquired. Also ensure the buffer is large enough to grab the header
379 we need on linux boxes.
381 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
383 * Control.cs: Implement a custom enumerator so people can delete
384 from the Controls collection while in a foreach.
387 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
389 * PropertyGridView.cs: Fix focusing behavior:
390 - Tab should focus the grid text box.
391 - Clicking on the labels shouldn't focus the grid text box.
393 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
395 * PropertyGridView.cs: IsValueTypeGridItem should return true
398 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
400 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
401 - Renamed GridEntry.SelectedObjects to TargetObjects to better
402 reflect the property name role.
403 - PropertyGrid.GetTarget is not required as the target is known
405 - Setting values will handle value types as a special case now and
406 populate them up in the chain.
409 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
411 * Hwnd.cs: Create a public property for the Graphics we keep around.
413 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
415 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
416 when the current object selection changes.
417 Fixes failing test SelectedObject_Null2.B5.
419 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
421 * PropertyGrid.cs: Process Browsable properties with
422 DesignerSerializationVisibilityAttribute.Content as being expandable.
423 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
424 will not be expandable. We should be nested components-friendly now.
426 2008-01-21 Andreia Gaita <avidigal@novell.com>
428 * WebBrowserBase.cs: Check if control was loaded properly,
429 don't bind if it wasn't.
431 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
432 GetElementFromPoint, equality operators, OpenNew, Write.
433 Remove extra set_Body
435 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
437 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
438 that makes our AutoScale* stuff more tolerant to different orders
439 of being set. [Fixes bug #354669]
441 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
443 * PropertyGridView.cs, PropertyGridTextBox.cs:
444 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
445 [Fixes #339005 and #348209]
447 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
449 * PropertyGridView.cs: Hide the grid text box before adjusting it
450 for the newly selected GridItem.
453 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
455 * Form.cs: Give MDI children the opportunity to cancel the parent form
456 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
457 properly for both the parent and child.
458 * Application.cs: Signature of internal method changed, pass the previous
462 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
464 * PropertyGridView.cs: Set the property value only if it has changed.
467 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
469 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
470 If the mouse hasn't actually moved, ignore these messages so the currently
471 highlighted menuitem isn't reset to the one under the mouse.
474 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
476 * PropertyGridView.cs: When the property changes Invalidate the GridItem
477 in order for the properties with UITypeEditor.GetPaintValueSupported == true
478 to reflect the change visually.
481 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
483 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
484 to 2.0 button drawing.
485 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
486 the button text is tall enough for one line. LineLimit says it will
487 always draw at least one line, but it is a lie.
490 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
492 * XplatUIStructs.cs, X11Keyboard.cs :
493 added some more VK_* keys to be handled.
495 2008-01-16 Andreia Gaita <avidigal@novell.com>
497 * Control.cs: Check if there is a container before setting or getting
500 2008-01-16 Andreia Gaita <avidigal@novell.com>
502 * ContainerControl.cs: Add flag to track if a control cancels validation,
503 so we don't fire click events.
506 - (HandleClick) Check if validation was cancelled before firing the click
507 events (doubleclicks are fired, but not clicks)
508 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
509 ContainerControl.set_ActiveControl, but in the case of non-selectable
510 controls, like a Label, activecontrol is not set.
512 * ButtonBase.cs: Only fire clicks if validation passes.
516 2008-01-16 Geoff Norton <gnorton@novell.com>
518 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
521 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
523 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
524 SelectedPath, just display the default dialog instead of crashing.
527 2008-01-16 Geoff Norton <gnorton@novell.com>
529 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
530 AddExpose instead of trusting apples compositing manager which doesn't
531 work for our use case. Remove some dead code causing warnings and
532 redecorate some other code to prevent warnings.
534 2008-01-16 Geoff Norton <gnorton@novell.com>
536 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
537 carbon signals us to redraw. Fixes another portion of the flickering bug
539 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
541 * Form.cs: Prevent the MdiParent property to be set when value is the same
542 as value already set. Fixes bug #328019.
544 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
546 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
547 it prevents NRE when closing mdi child windows. Fixes bug #325211.
549 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
551 * InternalWindowManager.cs: Invalidade close button after mouse up when
552 mdi form is prevented to close.
554 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
556 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
557 thanks to Andy Hume. Fixes bug #325433.
559 2008-01-16 Andreia Gaita <avidigal@novell.com>
561 * LinkLabel.cs: Reset focused_index when resellecting the control.
564 2008-01-15 Geoff Norton <gnorton@novell.com>
566 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
569 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
571 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
574 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
576 * ContainerControl.cs: Setting AutoScaleMode to anything should set
577 Form.AutoScale to false.
578 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
579 AutoScaleBaseSize should be changed on Font change unless it has been
583 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
585 * MenuAPI.cs: On instance of MenuTracker check if source control is
586 ToolStripOverflow and use properly method to find form.
589 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
591 [Fixes bug #323241 Transparent toolbar support]
593 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
596 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
597 defined in control style to mimic win32 behavior.
599 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
600 it will be transparent.
602 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
604 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
605 CreateParams for ToolBar controls.
607 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
609 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
610 FixedToolWindow, SizeableToolWindow, or None for border styles have
611 different minimum sizes than regular forms. Implemented to fix
612 regression in PDN with toolbox being too wide.
614 2008-01-14 Andreia Gaita <avidigal@novell.com>
616 * HtmlElementCollection.cs: Implemented
618 * HtmlElement.cs: Implemented:
626 * HtmlDocument.cs: Implemented GetElementsByTagName.
628 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
630 * Screen.cs: Stub BitsPerPixel to always return 32.
632 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
634 * Form.cs: Implement RestoreBounds.
636 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
638 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
639 Sebastien and his fabulous magical problem-finding machine:
640 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
641 respect the value set.
643 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
645 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
646 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
648 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
650 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
651 messages (to match .Net), we need to remove the capture ourselves.
653 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
655 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
656 will process the message and close our window.
659 2008-01-10 Geoff Norton <gnorton@novell.com>
661 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
662 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
665 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
667 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
670 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
672 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
673 Linux doesn't care, having a minimum matches MS and keeps the window
674 from becoming too small to use window decorations.
677 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
679 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
680 ShowFocusCues. Make focus rectangles fit the text instead of the whole
681 control. [Fixes bug #325419]
683 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
685 * ComboBox.cs: Guard against an NRE if the user open a new form from a
686 SelectedIndexChanged event. This closes the combobox dropdown, and we
687 were trying to dispose it. [Fixes bug #352830]
689 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
691 * Control.cs, Form.cs: Implement the necessary semantics for
692 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
693 to determine if a focus rectangle should be drawn.
694 * PropertyGrid.cs: Fix property visibility to match override.
695 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
697 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
699 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
702 2008-01-09 Geoff Norton <gnorton@novell.com>
704 * XplatUICarbon.cs: Scroll windows in the correct direction.
706 2008-01-09 Geoff Norton <gnorton@novell.com>
708 * XplatUICarbon.cs: Track all created utility windows so we can hide them
709 when the app is deactivated or spaces is enabled.
711 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
713 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
714 extra separation pixel for the label rect origin if SmallImageList is
715 null, and thus we don't need that separation between icon and label
717 Patch by Ernesto Carrea.
720 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
722 * StatusStrip.cs: Invalidate after completing a layout. The base
723 OnLayout does this, but we don't call the base.
724 * ToolStripItem.cs: Revert the previous change to invalidate after
726 [Fixes bug #351341 better.]
728 2008-01-07 Geoff Norton <gnorton@novell.com>
730 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
731 not a notification to exit the application. Listen for WM_QUIT
734 2008-01-07 Andreia Gaita <avidigal@novell.com>
736 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
738 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
740 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
741 so it can repaint at the correct location.
744 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
746 * ListControl.cs: SelectedValue should return a null value if
747 SelectedIndex is -1. Also, when setting it, it should throw an
748 ArgumentNullException if the value is null, as well as taking
749 into account the String.Empty value, instead of ignoring it (we have
751 Fixes part of #324286.
753 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
755 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
756 SelectionStart is updated after pressing enter. Fixes bug #351918.
758 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
760 * TextControl.cs: Revert a piece r92316 that prevented the fix
761 from working when there were multiple tags in the text box.
764 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
766 * TextControl.cs: Apply patch from Luke Page that prevents an
767 NRE when determining the beginning of a paragraph.
770 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
772 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
773 caret gets moved with clicking away from a selected block of
774 text. Fixes bug #351885.
776 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
778 * TextControl.cs: Apply patch from Luke Page that takes line
779 alignment into account for mouse selection, so that center and
780 right aligned text can be selected.
783 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
785 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
786 issues after loading an RTF file by using the correct line feeds.
789 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
791 * TextControl.cs: When deleting multiple line selections, we need
792 to invalidate every line beginning at the first line of the selection.
793 Patch from Luke Page fixes bug #351791.
795 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
797 * ListControl.cs: When getting a CurrencyManager.PositionChanged
798 event, don't set SelectedIndex if the number of items is 1. This is
799 because, for the first item, PositionChanged is fired _before_
800 ItemChanged (the place where we actually populate the items), and
801 leave us in a temporary invalid state (since items collection is
805 2008-01-04 Geoff Norton <gnorton@novell.com>
807 * XplatUICarbon.cs: Create native toolwindows instead of
808 the managed drawing ones.
810 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
812 * LineTag.cs: If the line doesn't have any characters, return
813 0 for GetCharIndex. Fixes an AOORE exception after certain
814 caret movements. Fixes bug #351683. Patch by Luke Page.
816 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
818 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
819 is hit when there is selected text, only the selected text gets
820 deleted, not the character in front of the selection as well.
823 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
825 * ComboBox.cs: When the values are displayed, calculate the
826 ComboListBox scrollbar's LargeChange based on the visible area's
827 height and the actuall ItemHeight, instead of calculating it
828 based on MaxDropItems value, since it's not used by our _current_
832 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
834 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
835 Patch from Luke Page that fixes issues with font colors and styles
836 not showing up in a readonly RichTextBox. Fixes bug #324354.
838 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
840 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
841 from Luke Page. This one fixes bug #349926.
843 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
845 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
846 an item in the IBindingList source changes with
847 ListChangedType.ItemAdded. Ignore for now firing the event for other
848 changes, since we want to have tests for those cases as well.
850 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
852 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
855 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
857 * TextBoxTextRenderer.cs: Implement a cache for measuring each
858 character. This is effective because the typical usage of a
859 TextBox is with a limited amount of fonts and characters, and
860 the current implementation of TextBox measures everything one
861 character at a time. Another second or two speedup for bug #347238.
863 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
865 * Control.cs: Rewrite the Font getter to only query the parent's
866 Font property once instead of twice. Since this operation is
867 recursive, the queries were growing exponentially as the control
868 tree got deeper. Another second or two speedup for bug #347238.
870 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
872 * Control.cs: Avoid setting a parent (and more importantly, updating
873 the zorder of all its children) if the parent is already correct in
874 WmShowWindow. Decreases the startup time of the test case on bug
875 #347238 from 35 seconds to 11 seconds.
877 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
879 * X11Dnd.cs: When the dnd operation has started and we are
880 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
881 This is done to match .Net, which doesn't send those messages after
882 dnd operation was completed/cancelled.
885 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
887 * ToolStrip.cs: Previous change should be != null, not == null.
890 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
892 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
893 user may have moved the mouse off the current item during the event.
895 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
897 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
898 calling GetItemAt for every MouseMove event by also taking into
899 account whether any mouse button is pressed (probably dragging);
900 if so, we can call GetItemAt, and if not, try to not call it
901 (GetItemAt can be quite expensive when used with a large number of items).
903 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
905 * ListView.cs: Implement -finally- support for dnd, by calling
906 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
908 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
909 simple calculation of distances for all the items in the owner
912 2007-12-21 Geoff Norton <gnorton@novell.com>
914 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
915 for windows that are originally created as invisible. Fixes missing
916 main window in paint-mono.
918 2007-12-21 Geoff Norton <gnorton@novell.com>
920 * XplatUICarbon.cs: Register our D&D handler. Register our custom
921 subclass handler for com.novell.mwfview subclassing HIView. Implement
922 Pasteboard and Dnd methods.
924 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
926 * ListBox.cs: When we got focus, give focus to first item if there
927 wasn't any pervious focused item. Also update navigation to depend on
928 SelectedIndex rather than FocusedItem, just as .Net does.
931 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
933 * ListBox.cs: Both FindString and FindStringExact methods must do an
934 case insensitive search, should allow the last valid index to be
935 passed in the overload taking an initial index, and should also
936 continue searching from the top back to the specified index when it
939 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
941 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
942 redraw issue, and allows RichTextBox to draw colored text even while
943 disabled or readonly.
945 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
947 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
948 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
949 and doesn't grey text in a disabled RichTextBox.
951 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
953 * RichTextBox.cs: Apply patch from Luke Page that adds better support
954 for many RTF commands: quad alignment, separate formatting for blocks
955 inside groups, and ParDef support. Makes the test case from bug #324589
958 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
960 * LineTag.cs: Fix an error in the new Draw method that caused
961 a crash when rendering the document on bug #324589.
963 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
965 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
966 TextControl.cs: Apply patch from Luke Page that adds support
967 for URL links in RichTextBox.
968 [Fixes enhancement #342516]
970 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
972 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
973 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
975 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
977 * ListBox.cs: When a key gets pressed, try to find a string
978 if the key is a character or a digit.
981 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
983 * TableLayoutPanel.cs: Remove some unused variables.
985 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
987 * DateTimePicker.cs: Commit patch from Luke Page that ensures
988 we don't end up at an invalid date when we click the up/down
989 spinner to change the month or year. Fixes bug #348682.
991 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
993 * Application.cs: Calling Exit in 2.0 should chain to the
994 Exit (CancelEventArgs) version so it can be cancelled.
995 * Form.cs: Create a flag to allow raising the Closing
996 events to be skipped. We raise them once in Application.Exit
997 and don't want to raise them again when the Form is actually
998 closed. [Fixes bug #349073]
1000 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
1002 * ToolStripDropDown.cs: Guard against an NRE when there
1003 hasn't been a mainform set in the application context.
1006 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1008 * ListBox.cs: When SetBoundsCore gets called, besides
1009 calling UpdateScrollBars, update the value of
1010 last_visible_index, since we could need to show more items
1011 than before, and we need to let the paint routines know that.
1014 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016 * ListView.cs: Add DesignerSerializationVisibility attribute to
1017 InsertionMark property.
1018 * ListViewItem.cs: Add same attribute to Position property.
1020 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1022 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
1025 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
1027 * ThemeWin32Classic.cs: Don't draw the background on a
1028 flat button if there is a background image.
1031 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1033 * ListBox.cs: If we remove the item currently selected,
1034 remove it not only from SelectedItems, but also
1035 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
1036 the items count decreased and focused_item has bigger value than that.
1038 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
1040 * Control.cs: Perform our layout after we resize ourselves
1041 if we had to adjust our AutoSize. Missed commit for bug
1044 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
1046 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
1047 we can provide an implementation of AutoSize.
1050 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1052 * ListBox.cs: Add the internal overload Sort (bool paint),
1053 to indicate whether we actually need a paint or we will
1054 call Refresh ourselves. This way we don't request a paint
1055 _before_ having an updated and valid layout.
1058 2007-12-12 Andreia Gaita <avidigal@novell.com>
1060 * XPlatUIX11.cs: Send paint messages when updating a systray icon
1061 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
1062 properly invalidated.
1065 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1067 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
1068 don't simply assign it to our internal group field, but instead
1069 use our Group property, which should do all the neccessary work
1070 required to support groups. Fixes an issue reported to me (mail) by a
1071 guy using this new feature.
1073 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
1075 * Control.cs: Use Scale instead of ScaleControl to ensure the
1076 whole hierarchy gets scaled.
1079 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1081 * DateTimePicker.cs: Don't set the internal MonthCalendar's
1082 Parent property. Doing this causes the control to be hosted by
1083 the Form instead of being a popup window.
1086 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1088 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
1089 at an index higher than Count, just use Add instead of Insert.
1092 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1094 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
1095 DrawPictureBox, this is handled by Control.PaintBackground.
1098 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
1100 * MenuAPI.cs: When process menu keys return true by default only if menu is
1101 active. Fixes bug #342892.
1103 2007-12-09 Andreia Gaita <avidigal@novell.com>
1105 * Control.cs: check if windows are actually mapped before
1106 trying to zorder. Fixes #342509, #346955
1108 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1111 * ListViewInsertionMark.cs:
1112 * ThemeWin32Classic.cs: Implement the drawing side of the
1113 new 2.0 ListView.InsertionMark property.
1115 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
1117 * CurrencyManager.cs: Silence some debug spew.
1119 2007-12-07 Geoff Norton <gnorton@novell.com>
1121 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
1122 masks for our children as well as siblings to avoid having to query
1123 Quartz for this information.
1124 * XplatUICarbon.cs: Implement a delegate based system to pass
1125 information to System.Drawing. Implement Async methods. Remove
1126 the hack for the resize thumb and imlpement a transparent Grow Box.
1127 Rework the messaging system to proplery create window's and messages,
1130 2007-12-06 Andreia Gaita <avidigal@novell.com>
1132 * X11Keyboard.cs: Use Xutf8LookupString to support international
1133 characters under alternate codepages. Patch from #340878
1135 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1137 * ListView.cs: When doing layout computations, set position in the
1138 ListView instances (we cache the position just as .Net does).
1139 * ListViewItem.cs: New internal setter method for Position. Also set
1140 position field as also available in 1.1, since we are going to use it
1141 now in the common case.
1143 2007-12-06 Andreia Gaita <avidigal@novell.com>
1145 * Control.cs: When removing controls, get the actual container
1146 to notify about active control changes. Fixes 341314.
1148 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1150 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
1152 2007-12-05 Andreia Gaita <avidigal@novell.com>
1154 * Control.cs: When updating the zorder, ignore windows that are not
1155 mapped. Fixes #342509
1157 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1159 * ListViewItem.cs: Actually implement serialization on this class.
1161 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
1163 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
1164 LinkCollection. Spaces to tabs, and removed extra tabs.
1166 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1168 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
1169 tests to fail (hopefully).
1171 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1173 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
1174 the image margin so custom renderers can correctly place it.
1176 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1178 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
1179 so custom renderers can correctly place it.
1181 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1183 * Application.cs: Let WM_CHAR messages flow through to controls
1184 hosted in Strips. [Fixes bug #343972]
1186 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
1188 * ToolStripManager.cs: Guard against an NRE I ran into.
1190 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
1192 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
1193 a Link is manually added to the Links collection, we need to set
1194 its owner, so it can invalidate properly.
1197 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1199 * ListView.cs: When changing ListViewItem.Position (which calls
1200 ListView.ChangeItemLocation), invalidate not only the area
1201 corresponding to the main item, but also to the area occupied
1202 by the items being moved.
1204 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1206 * ListView.cs: When changing the position of a given item,
1207 don't use item bounds, but item areas (which includes the item spacing
1208 between them). Also, use first/last position if the requested
1209 position is outside bounds (as .Net does). Invalidate the previous and
1210 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
1211 in a specific position, instead of directly accessing Items collection
1212 (this is done to get the right item - remember an Item can have a
1213 different position in the grid than in the Items collection).
1215 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1217 * MessageBox.cs: Calculate text area instead of just top left, this rect
1218 area will be used in DrawString. Fixes bug #343364.
1220 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1222 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
1223 screen width. Partially fixes bug #343364.
1225 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1227 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
1228 code inside recalculate, it makes code more simple.
1230 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
1232 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
1233 between update or add icon. Fixes bug #324344.
1235 2007-11-21 Andreia Gaita <avidigal@novell.com>
1237 * XPlatUIX11.cs: Do not treat tool windows as if they have no
1238 window manager, since that stretches the drawing area to include
1239 the window decorations, and they get hidden. Reverts r84444 and fixes
1240 #335849 and #342790 (mdi and pdn3 regression)
1242 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1244 * ListView.cs: When setting focused item, try to give focus to the
1245 previous one _only_ if the previous one remains valid.
1248 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
1250 * Application.cs: Revert r89650, as it broke a common case to fix
1251 an obscure case. Fixes bug #342606.
1253 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
1255 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
1257 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
1259 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
1260 alignment. [Fixes #324228]
1262 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
1264 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
1267 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
1269 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
1270 it prevent problems when empty captions. [Fixes #342141]
1272 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
1274 * Label.cs: Use Size instead of None. Fixes bug #342077.
1276 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1278 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
1280 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
1282 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
1283 but there isn't a MdiContainer.
1286 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
1288 * TextControl.cs: Don't recalculate document if the recalc_start and
1289 recalc_end hasn't changed.
1292 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
1294 * DataGridViewTextBoxCell.cs: Removed CWL.
1296 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1298 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
1300 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
1302 * TextControl.cs: Missed some code for bug 341534 to trigger a
1303 recalculation when the font changes.
1305 2007-11-16 Andreia Gaita <avidigal@novell.com>
1307 * Control.cs: When updating the zorder, check if the child to update is
1308 the same control that is set to always be on top (i.e., scrollbars), and
1309 just put it on top directly. Fixes BadMatch error on pdn3
1311 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1313 * ListView.cs: Throw the needed exceptions for FindNearestItem.
1315 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
1317 * Control.cs: Don't perform a new layout when a label changes its text,
1318 cause label handles its own autosizing.
1321 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1323 * ListView.cs: Implement 2.0 FindNearestItem methods.
1325 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1327 * ToolStripPanel.cs: Make Join at least add the control to the panel,
1328 even if the rest of what Join does isn't supported. Add some more
1329 support for vertical toolbars.
1330 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
1331 [Fixes the application breaking parts of bug #341998]
1333 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1335 * ToolStripItem.cs: When determining if we have a check/image margin,
1336 we need to look at ShowCheckMargin as well as ShowImageMargin.
1338 2007-11-15 Geoff Norton <gnorton@novell.com>
1340 * XplatUIOSX.cs: Rename to...
1341 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
1342 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
1344 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1346 * KeysConverter.cs: The default values should be an array of Keys, not
1347 strings. Also, the array has more values for 2.0.
1350 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1352 * Application.cs: Change ExecutablePath to use
1353 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
1356 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1358 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
1359 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
1360 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
1361 be ignored. Create a new GetLineEnding that can specify which types of
1362 line endings to look for. On Insert, only create new lines for \n and \r\n.
1365 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1367 * TextBoxBase.cs: As we loop through each line changing the font, tell
1368 the document that the line needs to be recalculated. Fixes bug #341534.
1370 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
1371 [Another round of refactoring]
1372 * Line.cs: Add DeleteCharacters.
1373 * LineTag.cs: Add Delete.
1374 * TextBoxBase.cs: Update to use new methods.
1375 * TextControl.cs: Refactor the Delete* methods.
1377 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
1379 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
1380 the patch. [Fixes #324856]
1382 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1385 * ListViewItem.cs: Add an initial implementation of
1386 2.0 ListViewItem.Position getter.
1388 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1390 * ListView.cs: Add a reordered_items_indices array, to allow us
1391 to have a different sorting than that of Items (the sorting in Items
1392 could not match the actual sorting in screen). This is needed to
1393 implement a pair of 2.0 features.
1394 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
1395 actual position in the ListView grid, since it could have a position
1396 different than its Index (position in ListViewItemCollection).
1398 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
1400 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
1401 not draw partial lines.
1402 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
1403 LineLimit flag from the base is preserved.
1404 Fixes the windows part of bug #338965.
1406 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
1408 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
1409 so that it can be canceled in KeyPress.
1412 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1414 * ListView.cs: In ItemControl, reset mouse-handling related
1415 fields even if we dont' have items (we still should reset them when
1416 we had items but then called Items.Clear). Partially based in a patch
1420 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
1422 * Application.cs: In ProductVersion first try AssemblyFileVersion
1423 before falling back to assembly version. Fixes bug #339787.
1425 2007-11-08 Andreia Gaita <avidigal@novell.com>
1427 * HtmlElement.cs: Implement InnerText setter.
1428 * WebBrowserBase.cs: Implement Navigated event support.
1429 Add flag to track when the browser "document" is ready to be retrieved.
1430 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
1431 Make sure browser document is ready before retrieving it.
1432 Clean up cached objects (document) when moving to a new page through
1433 any of the navigation methods.
1434 Use the new Mono.WebBrowser.INavigation interface to control navigation.
1435 Implement OnNavigated event.
1437 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
1439 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
1440 DrawLinkLabel, this is handled by OnPaintBackground.
1441 Fixes bug #339565, part II.
1443 2007-11-07 Andreia Gaita <avidigal@novell.com>
1445 * Control.cs: Revert r88915. Selecting text on a textbox depends on
1446 getting a Select call on click, so this call needs to be here for now.
1449 2007-11-07 Geoff Norton <gnorton@novell.com>
1451 * OSXStructs.cs: Add the kEventClassApplication constants.
1452 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
1453 application is deactivated otherwise Menu overlays linger on top of
1454 other application windows.
1456 2007-11-07 Geoff Norton <gnorton@novell.com>
1458 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
1459 dont support cursors yet anyways. This allows Reflector to run.
1461 2007-11-07 Geoff Norton <gnorton@novell.com>
1463 * XplatUIOSX.cs: Implement DragSize.
1465 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1467 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
1468 ItemControl, request the focus, as .Net does. This is needed after
1469 Control does not request focus anymore when it receives a
1472 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
1474 * Label.cs: Make DrawImage internal so it can be called from Theme code.
1475 Remove the DrawImage call from OnPaint.
1476 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
1477 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
1478 but before we draw the text for DrawLabel and DrawLinkLabel.
1481 2007-11-05 Andreia Gaita <avidigal@novell.com>
1483 * Control.cs: Remove select call on click. Fixes #325809
1485 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1487 * ListViewItem.cs: Add 2.0 Position property getter.
1489 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1491 * ListView.cs: Add 2.0 BackgroundImageTiled property.
1492 Also, to make it work properly, change item's BackColor and
1493 BackgroundImageLayout as needed.
1494 * ThemeWin32Classic.cs: Don't fill any background rectangle
1495 in ListView.ItemControl when drawing items; just let the Control
1496 base implementation fill it.
1498 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
1501 as well as adding a custom 'dummy' Converter, as .net does.
1503 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1505 * PropertyGridView.cs: When clicking drop-down button,
1506 select an index in the listbox only if our standard values collection
1507 has one or more items.
1509 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1511 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
1514 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
1516 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
1517 the value is not changed. This ensure a pushed button remains in that
1518 state when clicked again. When switching the value of PropertySort
1519 between Categorized and CategorizedAlphabetical, do not update the
1520 grid items and do not fire a PropertyChangedEvent. When clicking the
1521 sorting buttons, do not modify the PropertySort value when switching
1522 between Categorized and CategorizedAlphabetical but only update the
1525 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
1527 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
1529 * PropertyGrid.cs: Also put Categorized button in pushed state when
1530 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
1531 for help description label.
1533 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1535 * ListView.cs: When calculating the biggest item for a given column,
1536 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
1539 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
1541 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
1542 value for PropertySort on 1.0 profile. PropertySortChanged event
1543 should only be fired on 2.0 profile. Fixed NullReferenceException
1544 in UpdateSortLayout when PropertyGrid contains no items.
1546 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
1548 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
1551 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1553 * ListViewItem.cs: Implement 2.0 IndentCount property.
1555 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1557 * X11Dnd.cs: When sending status in a dnd operation, compare current
1558 effect with the 'allowed' field instead of 'drag_data.Allowed', since
1559 the later is only created when a Winforms application is both the
1560 source and the target, but not when we are the target only.
1561 Fixes part of #324251.
1563 2007-11-01 Geoff Norton <gnorton@novell.com>
1565 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
1567 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
1568 children out of the drawing view on mac.
1569 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
1570 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
1572 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
1574 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
1575 on the non-hosted-control part of it shouldn't do anything.
1576 Fixes part of bug #327498.
1578 2007-11-01 Andreia Gaita <avidigal@novell.com>
1580 * WebBrowserBase.cs: revert previous change, resize can be called anytime
1582 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
1584 * Application.cs: When a toolstrip has the keyboard input loop, let messages
1585 it does not use flow through to controls that are hosted in menus.
1586 Same with mouse clicks.
1587 * Form.cs: Don't close all menus on click if the click is on a
1588 control hosted in a menu.
1589 Fixes part of bug #327498, and part of bug #325969.
1591 2007-10-31 Andreia Gaita <avidigal@novell.com>
1593 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
1595 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
1597 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
1598 Addresses an issue raised in bug #336218.
1600 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
1602 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
1603 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
1605 2007-10-30 Andreia Gaita <avidigal@novell.com>
1607 * ContainerControl.cs: Check if the active control is a
1608 child of a removed control and update active_control accordingly.
1611 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1613 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
1614 or the MaxDate. Fixed bug #337693.
1616 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1618 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
1619 after calling SetWindowLong for a form, to force an immediate NC refresh.
1620 Fixes first part of bug #325150.
1622 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1624 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
1625 simple. Fixes the last part of bug #322668.
1627 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1629 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
1630 needs to be TopMost as well, or else the MessageBox is under the form.
1631 Patch by George fixes bug #325300.
1633 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1635 * X11Dnd.cs: When starting a new drag operation, reset the static
1636 'dropped' field to false (previously the implementation didn't reset
1637 it and got confused after the first drag).
1640 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1642 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
1643 items instead of re-creating them all. For this purpose we now cache
1644 both CategoryGridEntry items and the GridEntries for the main object's
1646 * GridItem.cs: Make SetParent method abstract.
1647 * GridEntry.cs: Override the SetParent method (already there, but now
1651 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1653 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
1654 depending on its depth (as .Net does). Update the needed values in
1655 MouseDown handler. Also draw the plus/minus rect after the label,
1656 so we don't draw on top of it.
1658 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
1660 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
1661 processed by forms or controls when menu is active. [Fixes #333548]
1663 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1665 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
1666 parent doesn't have focus. This was causing ToolStripTextBoxes to take
1667 focus on mouse over.
1669 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1671 * TextControl.cs: Code cleaning, simplifying.
1673 2007-10-24 Geoff Norton <gnorton@novell.com>
1675 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
1676 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
1678 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1680 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
1681 the cap is maxvalue, not actually 0. [Fixes bug #336218]
1683 2007-10-24 Andreia Gaita <avidigal@novell.com>
1685 * SendKeys.cs: apply jpobst's patch to bug #332409
1687 2007-10-23 Andreia Gaita <avidigal@novell.com>
1689 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
1690 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
1693 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1695 * PropertyGridView.cs: If a property has an UIEditor available,
1696 make the drop-down/editor button available only if the property
1699 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1701 * PropertyGridView.cs: Don't make the grid item textbox
1702 editable when a drop-down control is available, but
1703 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
1704 true. The same bur the color of the grid item value's label.
1706 2007-10-22 Geoff Norton <gnorton@novell.com>
1708 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
1709 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
1710 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
1711 driver. Padd the bottom of all real windows so the resize thumb doesn't
1712 obscure scroll/status bars.
1714 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
1716 * WindowsFormsSection.cs: Implement.
1718 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
1720 * MdiClient.cs: Maximize new active mdi child when a maximized child is
1721 closed see #325434 patch.
1723 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
1725 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
1728 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1730 * PropertyGridView.cs: When showing the textbox for a grid item,
1731 have two local variables to store the read-only and non-editable
1732 status of a grid item (we were previously using just one variable
1733 to do this, when actually they are slightly different).
1734 Fixes part of #325023.
1736 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1738 * PropertyGridView.cs: When showing a drop-down list, try to get the
1739 values using TypeConverter.ConvertTo (to convert to a string). Fixes
1742 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1744 * PropertyGrid.cs: When updating a property and populating sub grid
1745 items, remove the previous ones, and invalidate the specific area.
1746 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
1747 area behind a grid item.
1748 * GridItemCollection.cs: Add an internal Clear method, to allow us to
1749 clean the items if needed (specially for controls implementing
1750 ICustomTypeDescriptor and returning a variable number of properties).
1753 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
1755 * TextControl.cs: Clean up and document the Insert function.
1757 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1759 * TextControl.cs: Make sure we know our start point for updating the view
1760 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
1763 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1765 * ListView: Couple of corcompare fixes.
1767 2007-10-17 Geoff Norton <gnorton@novell.com>
1769 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
1770 the title caption of real window.
1772 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1774 * ErrorProvider.cs: Add the error provider's internal window to a
1775 containercontrol when the parent changes. [Fixes bug #329714]
1777 2007-10-17 Geoff Norton <gnorton@novell.com>
1779 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
1780 When we make a new window; restore the old active window - fixes dialogs.
1782 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1784 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
1785 when modifying a property, and if found then invalidate as
1787 Fixes part of #324865.
1789 2007-10-17 Geoff Norton <gnorton@novell.com>
1791 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
1792 highly experimental. Fixed coordinate translation. Fixed window locations.
1793 Initial support for clipping. Implemented NC areas and menus. Support for
1794 launching from command line from Will Johansson (wjohansson@atacomm.com).
1795 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
1796 wjohansson@atacomm.com)
1797 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
1798 Hwnds now track the existence of all of their children for Mac clipping.
1799 * XplatUI.cs: Re-enabled the native driver on the Mac.
1801 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1803 * Line.cs: Move the InsertString function to here.
1804 * TextControl.cs: Cleanup some duplicate code, move some InsertString
1805 functionality to Line.
1807 2007-10-17 Geoff Norton <gnorton@novell.com>
1809 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
1811 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
1813 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
1814 always setting value to true.
1815 * Form.cs: When changing AcceptButton, notify new and original button.
1817 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
1819 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
1820 a custom control that implements IButtonControl instead of an actual
1821 button. [Fixes bug #334244]
1823 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
1825 * Form.cs: Change SelectActiveControl to internal, we need to call it in
1828 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
1829 active control when activate a new mdi window.
1833 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
1835 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
1839 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1841 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
1842 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
1843 so we always recalculate the whole document instead of just the new part.
1846 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1848 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
1849 when the mouse was to the left of the first character in the line.
1851 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1853 * TextBox.cs, TextBoxBase.cs: When setting the document's password
1854 character, use the property instead of the variable so that the
1855 UseSystemPasswordChar property is taken into account.
1858 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1860 * FolderBrowserDialog.cs: When a node is right clicked and the "New
1861 folder" contex menu appears, actually add the new folder to it, even
1862 if the node is not currently selected. Still use SelectedNode in case
1863 there wasn't found a node under the pointer.
1866 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1868 * ListViewItem.cs: When retrieving the focused state, the index check
1869 should be done only when ListView is in virtualmode, as it is an
1870 expensive check for normal mode.
1872 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1874 * ListViewItem.cs: Make the focus state information be stored
1875 in the ListView, not in the items. This is done to match the MS
1876 behaviour for items that are not yet part of a ListView control;
1877 besides that, since just one item can be focused at the same time,
1878 we save a little space in our items.
1879 Fixes part of #331643.
1881 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1883 * ComboBox.cs: When focus is lost, deselect the text. When setting
1884 text of control, select all text. Do not hide selection when control
1885 does not have focus. Fixes bug #333663.
1887 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1889 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
1890 instead of ArgumentException when SelectionLength is set to negative
1891 value. Added same check to SelectionStart. Code formatting.
1893 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1895 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
1896 or SelectionStart. Code formatting.
1898 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1900 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
1901 indicating that there was not a previous drag-and-drop operation going
1903 Fixes part of #325071.
1905 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1907 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
1908 AllowedEffect, don't let the drop operation happen.
1911 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1913 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
1915 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1917 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
1920 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1922 * Line.cs: Add a method that finds the tag that contains an x-coord.
1923 * LineTag.cs: Add a method that finds the character at an x-coord using
1924 a binary search, the old way was a linear search.
1925 * TextControl.cs: Change FindCursor to use the above new methods.
1927 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1929 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
1930 value different than AllowedEffect). This should be possible to
1931 indicate that dragging is not possible in some control/area.
1933 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
1935 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
1936 descent internally when font changes instead of outside code being responsible
1938 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
1939 instead of accessing internal variables.
1941 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
1943 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
1944 remove special treatment for ArrangeIcons since it is already arranged.
1946 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
1948 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
1949 the Win32 backend uses Color.
1950 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
1951 Refactor to store a Color instead of a Brush for Color.
1953 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
1955 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
1956 away. I didn't realize I needed this when I refactored these earlier.
1958 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
1960 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
1961 store a Color structure and use the ResPool for back color instead of
1962 holding onto brushes.
1964 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
1966 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
1969 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
1971 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
1972 to recalculate its size. Fixes a part of bug #331052.
1974 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
1976 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
1977 button. Fixes a part of bug #331052.
1979 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
1981 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
1983 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
1987 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
1989 * TextBoxTextRenderer.cs: Don't make this a static class, as static
1990 doesn't exist in 1.1. (Thanks jb!)
1992 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
1994 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
1995 class to allow us to use different backends on different platforms.
1996 Linux uses the current [Draw|Measure]String backend. Windows uses
1997 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
1998 of GDI+. This leads to better looking text and more accurate measurements
1999 on Windows, fixing many of the reported issues.
2000 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
2002 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2004 * FolderBrowserDialog.cs: When running on Windows,
2005 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
2006 since we must match both "C:" and "C:\" forms. A little hackish, but
2010 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2012 * ListView.cs: When calling EndEdit (after editing an item),
2013 create a new instance of LabelEditEventArgs to keep clean the fields
2014 in case we get a new call to BeginEdit; also do Application.DoEvents
2015 to have focus in synch. This is a fix similar to TreeView's #325244.
2017 2007-10-07 Andreia Gaita <avidigal@novell.com>
2019 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
2020 * WebBrowserBase.cs: Added dialog support, calling the
2021 WebBrowserDialogs classes for each specific dialog type.
2023 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2025 * ListView.cs: When the last item is focused and is removed,
2026 move the focus to the previous item (in Items order). This is what MS
2030 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2032 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
2033 instead of the opposite (RemoveAt call Remove). This is a better
2034 approach since we don't need to to a pair of traversals when using
2037 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2039 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
2040 check that the node actually has nodes, and if not, move to the
2041 parent node instead.
2044 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2046 * TreeView.cs: Move the previous change to the general case (to
2047 call Application.DoEvents in cases where the method was called by
2050 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2052 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
2053 call Application.DoEvents. This is neccessary when we get a call to
2054 BeginEdit from an AfterLabelEdit handler, because the focus always
2055 goes to the TreeView, even if we try to give it to our
2056 LabelEditTextBox. The call do Application.DoEvents seems to
2057 synchronize the focus, basically.
2060 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2062 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
2063 should be false. This also removes some nasty recursive paths. Fixes
2066 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
2068 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
2069 state to normal. Also resize window when cascading. Fixes #325433.
2071 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
2073 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
2074 DefaultForeColor, as drawing empty colored lines isn't very useful.
2075 [Fixes the not drawn lines part of bug #324358]
2077 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
2079 * TextControl.cs: Move Line and LineTag classes into separate files to
2080 make things easier to find.
2081 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
2082 * RichTextBox.cs: Capitalize LineTag.Length property access.
2083 - This is purely an organizational/formatting change, no logic changed. -
2085 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2087 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
2090 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2092 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
2095 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2097 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
2098 prevent calling of OnBackColorChanged. Fixes #325321.
2100 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2102 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
2103 because control can be disabled because owner is disabled.
2105 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
2107 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
2108 string.Empty, test failed from previous change.
2110 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
2112 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
2113 is null, not String.Empty. See bug #323038.
2115 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
2117 * TextControl.cs: Change the margins to match MS a little better.
2118 Still not perfect for X11 due to some DrawString differences, but
2119 is still an improvement over the old stuff.
2120 Partially fixes #324467.
2122 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2124 * FolderBrowserDialog.cs: When using MyComputer as
2125 RootFolder, let absolute paths be considered as valid ones. Also, use
2126 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
2127 for Windows compatibility.
2128 Partially fixes #325247.
2130 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2132 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
2133 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
2134 method, since it causes the dialog to not select folders directly
2135 under the root path (when setting SelectedPath property).
2137 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2139 * TreeNode.cs: When calling Expand/Collapse and need to call
2140 ExpandBelow/CollapseBelow respectively, take into account
2141 partially visible nodes (previously Expanding/Collapsing
2142 a partially visible node in the bottom was not updating its +- sign).
2144 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2146 * TreeView.cs: When calling Expand on a TreeNode, and we need to
2147 expand nodes below (ExpandBelow), scroll the entire Viewport
2148 area if the node is above it and not visible (instead of scrolling
2149 the area from node's Bottom, which applies only when the node is
2153 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2155 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
2156 node in the bottom area (as .Net does). This is done to preserve the
2157 scroll position when ExpandAll is called before handle is created for
2158 the 1.1 profile (bottom area, as opposed to top area in 2.0).
2161 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2163 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
2164 bottom area if we are in fact not using the vertical scroll bar.
2167 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
2169 * Control.cs: Comment out a double buffering optimization that doesn't
2170 take into account invalidates created in OnPaint, causing the control
2171 to never be redrawn. It would take quite a bit of work to work around
2172 this, but I left it commented with an explanation for later possible
2176 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
2178 * Control.cs: Ask parent to perform a layout if control is AutoSize and
2180 * RadioButton.cs: Implement GetPreferredSizeCore.
2183 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
2185 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
2188 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
2190 * Application.cs: Move the sync context stuff to Run instead of RunLoop
2191 so that it doesn't get uninstalled on modal forms.
2192 * Control.cs: Install a sync context when a control is created.
2193 * WindowsFormsSyncronizationContext.cs: Create a private static control
2194 to invoke on. This is easier than trying to find a created control we
2198 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
2200 * Application.cs: Install a WindowsFormsSynchronizationContext in the
2201 run loop, and uninstall it when done.
2202 * WindowsFormsSynchronizationContext.cs: Implement.
2203 [Fixes the common case in bug #327608]
2205 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
2207 * DataGridViewCellCollection.cs: Added argument checks for indexers.
2208 Use case-insensitive lookup of column name in indexer. Code
2211 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2213 * TreeNode.cs: When collapsing or expanding a node, check whether its
2214 change will affect the visible area (we were previously doing a
2215 IsVisible check, but that check is not enough since children nodes
2216 could be still visible). Fixes part of #325266.
2218 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
2220 * TreeView.cs: Always select the first node when the TreeView gets
2221 focus if there is no currently selected node.
2224 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
2226 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
2227 node being selected is null.
2228 [Patch from Yves Bastide fixes bug #326858]
2230 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2232 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
2233 whether all the parent nodes are expanded.
2234 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
2235 call RecalculateVisibleOrder if all previous nodes are expanded.
2236 Before that we were doing a IsVisible check, but sometimes the node
2237 is not in the visible area, but _should_already be ready, because of
2238 all previous nodes are expanded. Fixes #325259.
2240 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2242 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
2243 portion of the item is clicked.
2245 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2247 * TextControl.cs: Do not tell the system to move the cursor if the
2248 textbox isn't focused. Fixes part of bug #322668.
2250 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2252 * ComboBox.cs: When there are no items, do not show the dropdown if
2253 the down arrow is clicked. Fixes part of bug #322668.
2255 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2257 * ToolStripComboBox.cs: Manually set the size of this control in the
2258 constructor, as it doesn't seem to be the same as DefaultSize.
2259 Fixes a failing monobuild test.
2261 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
2263 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
2264 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
2266 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
2268 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
2269 Desktop. This lets it work for people who have moved their desktops
2270 from the default location on windows. For people who have not, both
2271 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
2273 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2275 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
2276 but when the base constructor sets this, the control is null. Set it
2277 again in the constructor. Fixes a failing monobuild test.
2279 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2281 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
2283 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
2286 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2288 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
2289 will handle it themselves.
2290 * ToolStripItem.cs: When deciding what the text of a tooltip should
2291 be, use the Text property instead of the text field.
2292 * ToolStripTextBox.cs: Handle tooltips.
2293 [Fixes bugs #325417 and #325973]
2295 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2297 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
2298 left click. Fixes the easy part of bug #325969.
2300 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2302 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
2303 bug #325406, but set a minimum for StatusStrip to 22 to keep
2304 bug #325390 fixed. I think this minimum would have been figured
2305 up automatically if the grip was actually a ToolStripItem, but it
2308 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2310 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
2311 as this is apparently the actual value used by .Net. Also apply
2312 ItemPadding in Details view only, and decrease the general width padding,
2313 to have only the needed. This should fix #324340 in Windows too.
2315 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2317 * ListViewItem.cs: Don't Invalidate item if parent is inside
2318 a BeginUpdate/EndUpdate block. This prevents to have differences
2319 between the ListView and items state, as well as avoid some exceptions
2321 * ListView.cs: Make 'updating' field internal.
2323 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2325 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
2326 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
2327 size if appropriate.
2328 Fixes reopened bug #325414.
2330 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2332 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
2333 * ToolStripItem.cs: Invalidate before and after our new autosize when
2335 Fixes reopened bug #325390.
2337 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2339 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
2340 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
2343 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2345 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
2347 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2349 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
2350 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
2353 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
2355 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
2356 item to select when the ToolStrip is selected.
2357 * ToolStripControlHost: Realign the control when the bounds or visibility
2359 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
2360 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
2362 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
2363 base.OnPaint. Was causing text not to be drawn.
2365 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
2367 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
2369 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371 * TreeView.cs: When creating the label edit text box,
2372 set is initially to Visible = false. This is done to
2373 prevent a confusion in the layout which makes it to lose
2374 focus when shown the first time. Fixes part of #82592.
2376 2007-09-13 Andreia Gaita <avidigal@novell.com>
2378 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2380 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2382 * ToolStrip.cs: Take Margin into account when calculating preferred
2383 size. Also, allow preferred size to get smaller than the explicit
2385 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
2386 First step towards fixing bug #82747.
2388 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2390 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
2391 full row select background over the plus/minus glyph. Also, turn
2392 off the focus rectangle for full row select since MS doesn't seem
2393 to ever paint it. [Fixes bug #81839]
2395 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2397 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
2398 This was causing keyboard opened dropdowns to lose focus.
2401 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2403 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
2404 ClientRectangle instead. [Fixes bug #82838]
2406 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2408 * SplitContainer.cs: We can't reset Visible on every layout because
2409 someone may have set Visible = false explicitly on a SplitterPanel.
2410 Make sure when we switch orientation the SplitterDistance does not
2411 change. Fixes two failing tests.
2413 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2415 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
2416 TextRenderer, since the latter is only available in 2.0.
2418 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
2420 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
2421 * SplitContainer.cs: Implement FixedPanel layouting.
2423 2007-09-12 Andreia Gaita <avidigal@novell.com>
2425 * WebBrowserBase.cs: setup shutdown routine
2427 2007-09-12 Andreia Gaita <avidigal@novell.com>
2429 * Application.cs: Let keyboard events that are targetted
2430 to non-mwf windows hosted inside mwf (as in, webbrowser),
2431 propagate properly. Fixes keyboard handling on the webbrowser.
2433 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2435 * ListView.cs: When handling MouseUp event and we are
2436 highligting a node with the mouse right button, don't trigger
2437 Before/AfterSelecting event, since we are not actually selecting
2440 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2442 * TreeView.cs: When editing a node, modify the edit text box
2443 depending on the text length (as you are typing), like MS does.
2445 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
2447 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
2448 Override GetPreferredSizeCore to perform calculations. Remove custom
2449 autosize logic. [Fixes bug #82739]
2451 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
2453 * TextBoxBase.cs: Modified should default to false.
2455 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2457 * Control.cs: Update the anchoring distances even when layout is supspended.
2458 Patch provided by George fixes bug #82805.
2460 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2462 * Control.cs: Provide a setter for ExplicitHeight.
2463 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
2464 remove the hacks in here for requested_height.
2467 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2469 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
2470 Maximum to lower that its current Value caused an ArgumentException by setting
2471 the Value to the new Maximum.
2473 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2475 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
2476 handle moves to the closest tick when it is being dragged.
2479 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2481 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
2482 can't let them count as real items when calculating where to merge in the
2483 user's items. [Fixed bug #82786]
2485 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2487 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
2488 who want to add a menu item directly onto a toolstrip.
2489 [Fixes bug #82775, part II]
2491 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2493 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
2494 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
2495 don't set it to available.
2496 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
2497 [Fixes bug #82727, part II]
2499 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2501 * StatusStrip.cs: Change item placement to None if not visible.
2502 * ToolStripItem.cs: Invalidate when InternalVisible changes.
2503 These should have been committed to fix 82723, but I missed them.
2505 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2507 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
2508 Click, and that it is only called once.
2509 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
2510 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
2514 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2516 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
2518 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
2519 instead of 8, just like above. Partially fixes #82734.
2521 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2523 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
2526 * ListView.cs: Remove extra space between rows in Details view (match
2528 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
2531 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
2533 * Application.cs: Modified ProductVersion to return value of
2534 AssemblyInformationVersion if available, and fallback to assembly
2535 version. Fixes bug #82746. Code formatting.
2536 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
2539 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2541 * Control.cs: When updating ZOrder for a child control,
2542 take into account the implicit ones (we need it in our controls
2543 using them). Fixes #82642.
2545 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
2547 * ToolStripItem.cs: Add support for animated images.
2550 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
2552 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
2553 visible. [Fixes bug #82727]
2555 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2557 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
2558 so we repaint using the new size. [Fixes bug #82723]
2560 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2562 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
2563 option. [Fixes bug #81779]
2565 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2567 * TreeView.cs: Override HandleClick because the StandardClick style is
2568 set to false. According to MSDN (and testing), the click events should
2569 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
2571 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2573 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
2574 the border will disappear. Fixes reopened #82653.
2576 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2578 * Control.cs: If the control is autosize, and its preferred size changes
2579 when it lays out its children, tell its parent so it can be re-layed out.
2580 Fixing some of the fallout from r85433.
2582 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2584 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
2585 and CheckBox share some code.
2587 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2589 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
2590 the TrackBar, not every mouse move. [Fixed bug #82718]
2592 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2594 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
2595 under 2.0 rendering. [Fixes bug #82657]
2597 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2599 * TreeView.cs: If we found a TreeNode to display a context menu, but
2600 it doesn't have one to show, let the TreeView display its menu
2601 instead. [Fixes bug #82680]
2603 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2605 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
2606 OnPaintInternal instead. Give the internal TextBox a Border property
2607 so it can draw itself more correctly. [Fixes bug #82653]
2609 2007-09-06 Zoltan Varga <vargaz@gmail.com>
2611 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2613 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2615 * ComboBox.cs: Adjust combobox button state to reflect current state when
2616 back to enabled = true. Fixes first issue of #82654.
2618 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2620 * Control.cs: Fix last patch regression, prevent forms to update zorder when
2621 setting visible property.
2623 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2625 * Control.cs: Update zorder after control creation in SetVisibleCore, it
2626 fix zorder for controls initially created as non visible. Fixes #82667.
2628 2007-09-04 Everaldo Canuto <everaldo@simios.org>
2630 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
2631 mimic win32 look. Fixes #82656.
2633 2007-09-01 Zoltan Varga <vargaz@gmail.com>
2635 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
2636 Stubs for new net 3.5 classes.
2638 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2640 * ListViewItem.cs: In ListViewItemCollection operations calculate
2641 Layout for owner as well as invalidate it. Fixes part of #82642.
2643 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
2645 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
2646 when returning Enabled. [Fixes bug #82651]
2648 2007-08-30 Everaldo Canuto <everaldo@simios.org>
2650 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2652 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2654 * ListView.cs: Put item padding info in a single place
2655 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
2657 * ThemeWin32Classic.cs:
2658 * Theme.cs: Likewise.
2660 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2662 * ListView.cs: When a ListViewSubItem instance is invalidated,
2663 invoke Invalidate on parent ListViewItem, not parent ListView.
2666 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2668 * ListView.cs, ListViewItem.cs: corcompare stuffs.
2670 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2672 * BindingMemberInfo.cs: Implement == and != operators.
2674 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2676 * HtmlElementEventArgs.cs: Implement properties.
2678 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2680 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2682 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2684 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
2685 Add (string,string,string) to implement the imagekey. It turns out, we
2686 use the requested imagekey whereas .Net does not. So I broke ours to match
2689 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2691 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2693 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2695 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2697 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
2699 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
2700 up-to-date. Fixes bug #82618.
2702 2007-08-29 Everaldo Canuto <everaldo@simios.org>
2704 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
2705 reflect document changes. Fixes #82367.
2707 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2709 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
2710 as well as add new ones. This should make work the BackgroundImage
2711 property for ListView again.
2713 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2715 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
2716 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
2717 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2719 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2721 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
2724 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2726 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
2727 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2729 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2731 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
2732 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2734 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
2736 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
2738 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
2740 * GridEntry.cs: Implement GetService.
2742 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
2744 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
2745 for label editting, make sure we focus back on the TreeView.
2748 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2750 * ListView.cs: Add some 2.0 overrides.
2752 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2754 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
2755 because getter dont returns right value before handle creation. Thanks
2756 to George. Fixes #82569.
2758 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2760 * Theme.cs: Revert last patch, it causes error under win32.
2762 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2764 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
2765 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
2766 logical Desktop rather than the physical file system location. Fixes #82603.
2768 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
2770 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
2771 for the patch. Fixes #82568.
2773 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2775 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
2778 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2780 * ListViewInsertionMark.cs: New stubbed class.
2782 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2784 * FolderBrowserDialog.cs: When adding folder, immediately create the
2785 directory with temporary name and rename the directory when editing
2786 finishes. This matches MS. Ensure the node for the new folder is
2787 selected and LabelEdit is disabled, when editing is either finished
2790 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2792 * TreeView.cs: When editing label of node, ensure node is visible.
2794 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
2796 * PropertyGridView.cs: Set the value only if it has changed.
2798 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2800 * ListView.cs: Some more code refactoring to add support sorting
2801 with groups (now for Details view). Remove unused code also.
2803 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2805 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
2806 Not a big fan of reacting immediately to a field in an EventArg, but that's
2807 the way it's done. (This is part of the previous commit that got left out.)
2809 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2811 * FolderBrowserDialog.cs: Removed need for separate description field.
2812 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
2813 has focus when dialog box is displayed again, regardless of what
2814 button was pressed the previous time. Set RootFolder and SelectedPath
2815 each time dialog box is displayed. This ensures the treeview is
2816 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
2817 when it does not have focus. Added support for more special folders.
2819 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2821 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
2822 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
2823 it resets the edit_args.
2824 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
2827 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2829 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
2830 button to match MS. Provide more meaningful exception message for
2831 invalid RootFolder value. Use zero-length string when SelectedPath
2832 is set to null. Allow non-rooted paths in SelectedPath, but ignore
2833 them in FolderBrowserTreeView. Allow folders to be created in
2834 RootFolder. Fixes bug #82576.
2836 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2838 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
2839 since we need to take into account the group headers and the margin
2841 * ListViewGroup.cs: Add a rows field to store the number of rows per
2844 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2846 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
2847 Anyways, let's just follow the lead.
2849 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2851 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
2852 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
2853 controls in GetPreferredSizeCore.
2854 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
2857 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2859 * PrintDialog.cs: Need to instantiate the form variable here too.
2861 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2863 * ListView.cs: Do some reorganization to support sorting in groups,
2864 by doing the layout sequentially in ListView.Items. Also add support
2865 for the Default Group, which should be available for items with no
2867 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
2868 for storing layout info also.
2869 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
2870 collection, as well as providing internal members to do a traversal
2871 including the default group (needed when doing layout/drawing).
2872 * ThemeWin32Classic.cs: When drawing group headers use internal
2873 ListViewGroupCollection members to take into account the default
2876 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
2878 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
2880 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2882 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
2883 been created. If handle is created, we want arror keys. If we are editing
2884 a node, we want things like enter, esc, home, end, page up, page down.
2885 Allows Esc to work for FolderBrowserDialog.
2887 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2889 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
2890 they close when ESC is pressed. Thanks Andy!
2892 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2894 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
2895 This way we can tell if this is a CommonDialog provided with mono, or one
2896 that is being implemented outside by a developer. If it is an external one,
2897 the developer is responsible for showing their own form. We were showing
2898 our blank form after the developer showed his.
2899 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
2900 PageSetupDialog.cs: Instantiate form variable in our constructor.
2903 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2905 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
2906 and always return true. [Fixes bug #81616]
2908 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2910 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
2911 TextBox. [Fixes bug #82549]
2913 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2915 * FileDialog.cs: When Save/Open is clicked and no filename is selected
2916 or entered then do not close the dialog. Fixes bug #82539. Removed
2919 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
2921 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
2922 code to this method. It is calling every time filter changes. This method
2923 will help to fix the bug #80887.
2925 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
2927 * CheckBox.cs: Implement AutoSize calculation.
2929 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
2931 * CheckBox.cs: Use new 2.0 rendering for 2.0.
2932 * Theme.cs: Method declarations for 2.0 rendering path.
2933 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
2935 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2937 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
2939 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2941 * ListViewGroupCollection.cs: Implement AddRange the right way, to
2942 only call Redraw on the parent one time.
2944 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2946 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
2947 GetClipboardContent.
2948 * DataGridViewCell.cs: Implemented GetClipboardContent,
2949 GetEditedFormattedValue, GetFormattedValue.
2950 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
2952 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
2954 * TableLayoutStyleCollection.cs: corcompare fix.
2956 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2958 * DataObject.cs: Implemented retrieval of convertible / not convertible
2961 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
2963 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
2964 ourselves. This ensures the entire old bounds are repainted, in case our new
2965 size is smaller. [Fixes bug #82518]
2967 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
2969 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
2970 flag to make fast handle of mouse events, without this the mouse move is
2971 handled in some manner, whether it is a mouse move or not. Fixes #81588.
2973 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2975 * ListView.cs: When doing layout calculations don't use a ref
2976 param to keep the current item; instead use its Index value (this
2977 is specially important when doing the layout with Groups
2978 and Items being sparse). Also don't take into account items added to
2979 the Group but not yet added to the main ListView.Items collection.
2981 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2983 * ListViewGroupCollection.cs: Forgot to mimic an issue
2984 in the indexer (don't assign the ListView owner for new values).
2986 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2988 * ListViewGroupCollection.cs: Make the string indexer use
2989 the int based indexer to re-use code, instead of duplicate the code.
2990 Also Redraw as needed and take into account null values.
2992 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
2994 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
2997 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
2999 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
3000 when other buttons are clicked or navigated to.
3002 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3004 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
3005 it's XplatUIX11 that attaches them.
3007 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3009 * DataGridView.cs: If a column has been added, recreate the editing row.
3012 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3014 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
3015 of the tag to draw. Makes disappearing text show up again.
3017 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3019 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
3020 Contents. Fixes #82487.
3022 2007-08-19 Andreia Gaita <avidigal@novell.com>
3024 * Added HtmlElement.cs, HtmlElementCollection.cs,
3025 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
3027 2007-08-19 Andreia Gaita <avidigal@novell.com>
3029 * BindingSource.cs: Implement this, dispose and getenumerator.
3030 * DataGridViewRowCollection.cs: Move the InvalidOperationException
3031 out of AddInternal, throw it only on public Add calls. The
3032 UsingWebBrowser sample was blowing up with this when setting the
3033 DataSource after adding DataBindings, so it's likely that .net
3034 only throws this exception when Add is called directly.
3036 * ToolStripControlHost.cs: Return the hosted control's text
3037 property, and not the ToolStripItem one (it would always return
3040 * HtmlDocument.cs: Implement GetElementById and All
3041 * WebBrowser.cs: Remove exception on set_DocumentStream.
3043 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3045 * Form.cs: Fix the max and min value for opacity (0~1).
3047 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3050 * DataGridTableStyle.cs: Default header font is now null, on getter it
3051 returns datagrid font when is null. On setter permits null.
3054 - When ResetHeaderFont set header font to null.
3055 - On EndInit set grid_style.DataGrid.
3057 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3059 * TabControl.cs: Fix regression in default padding x.
3061 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3063 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
3065 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3067 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
3068 not 2. Fixes #82229.
3070 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3072 * TabControl.cs: Fix tab size when image height is less than text height.
3073 Partially fixes #81837.
3075 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3077 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
3078 "alt + tab". It works only for Win32, for X11 theres no way to remove window
3079 from taskbar and keep it on "alt_tab". Fixes #81722.
3081 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3083 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
3084 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
3085 Fixes #80877 and #79418.
3087 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3089 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
3090 between position and one of the screen borders. Fixes #82349.
3092 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3094 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
3095 the MessageBox in the taskbar. Fixes #82457.
3097 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3099 * MessageBox.cs: Fix form size when icon is set and text height is bigger
3100 than icon. Fixes #82468.
3102 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3104 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
3105 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
3106 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
3107 Refactored HandleNCCalcSize somewhat to avoid code duplication.
3108 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
3109 FormBorderStyle to decide if we're calculating a new size from the
3110 client size or not. CreateParams: Don't fake tool windows, only the X11
3111 backend manages toolwindows manually.
3113 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3115 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
3116 ObjectDisposedException.
3118 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3120 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
3121 in OnLoad should not have any effect. [Fixes bug #82470]
3123 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3125 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
3126 paint for controls that create their own ToolTipWindow instead of
3127 going through ToolTip.
3129 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3131 * ToolTip.cs: Make Hide internal instead of public to match MS API.
3133 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3135 * ListViewGroupCollection.cs: Use generic List instead of an
3136 ArrayList, since this collection is 2.0 only.
3138 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
3140 * ToolTip.cs (Hide): Made public to make the build work (should
3141 this not be public?).
3143 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3145 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
3147 * ToolTip.cs: Add an internal Visible property to facilitate transition.
3149 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3151 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
3152 PopupEventHandler.cs: Make these internal for 1.1.
3153 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
3154 use ToolTipWindow internals.
3155 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
3156 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
3158 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3160 * X11Dnd.cs: Add a null check.
3162 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3164 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
3165 nothing else succeeds. Fixes #82453.
3167 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3169 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
3170 rectangle if we're painting to another window than the one the paint
3171 message was generated on. Simplify the code somewhat, which makes
3172 PaintEventEnd also simpler.
3174 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3176 * Control.cs: When changing parent of a form, let the form decide whether
3177 XplatUI.SetParent should be called or not.
3178 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
3179 recreating the handle. If the new parent's handle isn't created, don't
3180 recreate our handle, just destroy it. CreateParams: Check if the
3181 parent's handle is created before fetching it.
3183 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3185 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
3186 Update calls to PaintEventStart/End to take a Message argument.
3187 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
3188 take a Message argument.
3189 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
3190 Message argument, and handle the case where we don't paint to the window
3191 for which the paint message was generated.
3193 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3195 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
3196 Marshal.GetLastWin32Error. Plug nasty memory leak in
3197 PaintEventStart/End, we were creating a DC we weren't releasing.
3199 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3201 * ListView.cs: Add Groups support in Details view. Also have a small
3202 method to do the layout of the group header. Don't use a separate
3203 method to do the groups calculation in Icons view, since our methods
3204 are now a little simpler.
3205 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
3207 * ThemeWin32Classic.cs: Likewise.
3209 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
3211 * Application.cs: Add FilterMessage method and rework our message loop
3214 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
3216 * Application.cs: Add some methods and stub a few methods that are
3217 pretty much never used.
3219 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
3221 * TreeNode.cs: Add some serialization methods.
3223 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3225 * ListView.cs: In ListViewItemCollection have a
3226 'is_main_collection' field to not modify ListViewItem.ListView
3227 when using it as ListViewGroup.Items (and not ListView.Items)
3228 and also don't modify selection state (.Net behaviour).
3229 Instead, set group for items contained in a ListViewGroup.Items collection.
3230 * ListViewItem.cs: Simplify some code in Group setter.
3231 * ListViewGroup.cs: use the new .ctor to pass the current instance
3232 to the ItemsCollection.
3233 * ListViewGroup.cs: Set the ListView property for ListViewGroup
3234 instances when adding/removing. Also make Remove use RemoveAt, which
3235 should perform better.
3237 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3239 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
3240 that crept into the 1.1 profile.
3242 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3244 * ToolBarButton.cs: Implement ImageKey.
3246 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3248 * ToolBar.cs: Implement ScaleControl/ScaleCore.
3250 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3252 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
3253 created, it might have gotten destroyed since we last checked. Fixes
3256 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
3258 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
3259 tooltip will hide when mouse is moved off the control.
3262 2007-08-11 Andreia Gaita <avidigal@novell.com>
3264 * WebBrowserBase.cs, WebBrowser.cs: add implementation
3265 using Mono.Mozilla for loading and navigating webcontrol
3267 The initial implementation was done on
3268 /trunk/mozembed/tests/browser , and copied here.
3270 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
3272 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
3273 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
3275 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
3277 * DataGridView.cs: Add support for an editing row. Fixes #82226.
3278 RowTemplateFull: throw an exception if a column doesn't have a template.
3279 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
3280 add the row just before it.
3281 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
3283 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
3284 DataGridView field to be able to reach the grid's editing row.
3286 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3288 * ToolTip.cs: If the control's handle hasn't been created when it has a
3289 tooltip set on it, don't check to see if we need to show the tooltip. This
3290 check was causing the control's handle to be created.
3293 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3295 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
3297 Handle Not Created -1 0
3301 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3303 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
3306 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
3308 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
3309 * ToolTip.cs: Implement some properties and owner draw.
3311 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3313 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
3314 show them again, since setting visibility causes a paint, causing an
3315 endless loop (instead use a temporary and set it all when it's known if
3316 they should be shown or not). Fixes #79265.
3318 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3320 * DataGridView.cs: Only do a full column/row selection if a header was
3321 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
3322 isn't pressed, deselect everything before selecting something.
3324 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3326 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
3327 behaviour according to bug #81075 - they are returned in the order they
3328 are selected. Fix HitTest to check if the point is within any of the
3329 headers. Allow for row/column selection when in ColumnHeader or
3330 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
3331 the row and column to call when their selected state changes, and
3332 updated selected_[rows|columns] whenever SetSelected* is called.
3333 * DataGridViewBand.cs: Initialize isRow correctly. Call
3334 SetSelected[Row|Column]CoreInternal when the selected state changes, and
3335 add a SelectedInternal to avoid StackOverflows.
3336 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
3337 ReadOnly no matter what.
3338 * DataGridViewSelectedColumnCollection.cs,
3339 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
3340 the items in reverse order (just as MS does...)
3342 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
3344 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
3345 itself, not part of a mnemonic. [Fixes bug #82378]
3347 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3349 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
3350 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
3351 the DGV, the column, the row, or the cell itself is readonly.
3353 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
3355 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
3357 * FileDialog.cs: Same.
3358 * TextRendered.cs: Same.
3359 * FolderBrowserDialog.cs: Same.
3360 * TextBoxBase.cs: Same.
3361 * Application.cs: Same.
3363 * ThemeClearLooks.cs: Same.
3365 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
3367 * XplatUI.cs: Added RunningOnUnix property to be used by controls
3368 instead of duplicating these checks everywhere.
3369 * FileDialog.cs: Use case-insensitive comparison for populating the
3370 DirComboBox when not running on unix. Fixes bug #82385.
3371 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
3374 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3376 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
3377 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
3378 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
3379 cell and column selection with ctrl and shift pressed. Call the correct
3380 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
3381 the corresponding virtual method (PaintBackground to paint background,
3383 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
3384 either the column, row or the cell itself is selected.
3385 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
3387 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
3388 here. When the row is selected, don't select all cells. Each cell now
3389 queries the row to see if the row is selected.
3391 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3393 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
3396 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3398 * ListView.cs: In ListViewItemsCollection check that owner is
3399 not null before trying to access it (this happens quite often
3400 using Groups). Also don't duplicate calls by calling CollectionChanged
3403 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3405 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
3406 when we are dismissed to clear keyboard mnemonics.
3407 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
3408 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
3409 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
3410 was activated by keyboard or the OS tells us to always draw them.
3411 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
3412 [Fixes bugs #82376, #82377]
3414 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3416 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
3417 shot at having it because Alt was pressed.
3418 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
3419 the first real menu item.
3420 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
3421 a mnemonic if Text is null.
3424 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3426 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
3427 search do check whether the item is already contained in the
3428 collection or not; instead check if the owner of the item is the same
3429 as ours. Also, remove a redundant check in the same method.
3431 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3433 * Control.cs: Allow the clip region to be set back to null.
3434 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
3435 [Fixes button still showing up in bug #82370 when Show Through is turned off]
3437 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
3439 * GridEntry.cs: Add a null check.
3440 * PropertyGrid.cs: When checking for existing grid entries, ignore category
3441 entries. Fixes #82297.
3443 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
3445 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
3448 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
3450 * ListBox.cs: Implement ScaleControl.
3452 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3454 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
3456 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
3457 parent has a menu strip. Fixes #81689.
3459 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3461 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
3462 moments, so apply some fuzzy logic to determine if the mouse is still
3463 inside a control or not. Fixes #82288 (for the third time).
3465 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3467 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
3468 Don't create the child if it has been disposed already (may happen if
3469 the user closes the form the Load event).
3471 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3473 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
3476 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3478 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
3479 might call us after we've been destroyed, in which case our own private
3480 parent field is null. Fixes #82326.
3482 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
3484 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
3485 check for setting the dropdown's owner.
3487 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
3489 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
3490 before removing system menu items.
3492 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
3494 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
3496 * MdiControlStrip.cs: Added. These are the menu items used in mdi
3498 * ToolStrip.cs: Add a null check to mnemonics.
3499 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
3501 [Fixes most of bug #81689]
3503 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3505 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
3507 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3509 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
3511 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3513 * DataGridViewCell.cs: EditType: returns
3514 DataGridViewTextBoxEditingControl always.
3516 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
3518 * TextRenderer.cs: Remove the LineLimit string format flag from the
3519 DrawString fallback method so that things like buttons that aren't
3520 tall enough to draw a full line will still draw part of the text.
3521 [Fixes part of bug #82272]
3523 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3525 * DataGridView.cs: Implemented AutoResizeColumn(s).
3526 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
3527 according to the Alignment.
3528 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
3529 Implement alignment and padding when painting.
3530 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
3532 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
3534 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
3537 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3539 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
3542 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3544 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
3545 hide GetPreferredSize from public API.
3546 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
3547 * ToolStripItem.cs: Stub out drag and drop methods and events.
3548 * ToolStripManager.cs: Stub out Save/LoadSettings.
3549 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
3550 * ToolStripPanel.cs: Fix corcompare error.
3551 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
3552 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
3553 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
3555 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3557 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
3558 bounds height instead of PreferredHeight. Puts things back the way
3559 they were for height while still fixing the width. Fixes broken unit
3562 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3564 * Binding.cs: Implement 2.0 constructors and add a null check.
3566 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3568 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
3569 and fix row index (off by one).
3571 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3573 * PropertyGridView.cs: Remove debug output.
3575 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3577 * Control.cs: We need to reset the is_created flags when the handle is
3578 destroyed. Fixes #82187.
3579 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
3580 client coordinates if the window doesn't have a parent.
3581 Win32GetParent returns the parent or the owner, and for top-level
3582 windows with no parent (but with an owner) we were calculating the
3583 location from the location of the owner.
3584 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
3585 form has been disposed.
3586 * MdiClient.cs: Add a null-check.
3588 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
3590 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
3591 actually do auto-sizing. Override the internal GetPreferredSizeCore
3592 so we can provide an implementation that returns the current width
3593 and preferred height. Allows anchor = right to work with TextBox 2.0.
3596 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3598 * ListView.cs: Add support for navigating items in Groups mode, by
3599 creating a big matrix containing all rows and cols of all groups. When
3600 are in other mode than Details, pressing Up should have a similar
3601 behaviour as that one of Down (moving to the next available column if
3602 current one doesn't have an item in the requested row). Also, don't
3603 proceed to use groups if ShowGroups is false.
3604 * ListViewGroup.cs: Add an internal int field to store the starting
3605 row of the group (used by the big matrix used for navigating the
3607 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
3610 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
3612 * ToolStripDropDown.cs: When we do Show, start with the
3613 DefaultDropDownDirection, but if our popup menu is going to off-screen,
3614 modify the direction to keep it on screen. [Fixes bug #82210]
3616 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
3618 * FileDialog.cs: Accept any FilterIndex value, and store it
3619 unmodified. When FilterIndex is less than 1, or greater than number
3620 of filters, then default to first filter. Only add filter extension to
3621 file if user did not specifiy an extension. When type of dialog is
3622 OpenFileDialog and DefaultExt is set, then only use filter extension
3623 if: CheckFileExists is true and no file wih the default extension
3624 exists, or CheckFileExists is false, and user specified file does not
3625 exist. When CheckFileExists is true, then add first extension of
3626 selected filter that matches existing file. Perform checks for
3627 existing file, overwrite and create after extension has been added to
3628 file name. When CheckFileExists is true and type is SaveFileDialog,
3629 then only consider first filter extension if DefaultExt is set.
3630 When CheckFileExists is true, then ignore DefaultExt if file with that
3631 extension does not exist. Also perform check for existing file when
3632 type is SaveFileDialog. Changed some field to constants.
3634 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3636 * ListView.cs: Take into account the region used by header
3637 control when doing the vertical scroll (this way we invalidate
3638 the precise area, and don't get any dirty one).
3640 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
3642 * FileDialog.cs: Check for valid filterIndex on button open/save.
3645 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3647 * ListView.cs: Update some layout calculations in details view
3648 and clean the code in a pair of assignations.
3650 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3652 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
3653 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
3654 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
3655 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
3657 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3659 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
3660 performance of thread-safe Graphic methods. (Thanks rolf!)
3662 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664 * ListView.cs: When doing the layout calculations, don't calculate
3665 scroll bars before handle is created. This is unnecessary and also
3666 calculating them before handle creation item causes a number of random
3667 bugs (which begin to appear after Chris' big patch for handle creation
3670 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3672 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
3673 for things that don't have a Graphics object. Currently, things just use
3674 the static Hwnd.bmp_g which is not thread safe.
3676 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3678 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
3679 dialog. Fixes #82187.
3681 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3683 * DataGridViewElement.cs: Initialize state.
3684 * DataGridView.cs: Forward a few Mouse events to cells. Add
3685 GetRowInternal and GetCellInternal that doesn't unshare rows.
3686 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
3687 don't use the index, but look it up. Add
3688 DataGridViewControlCollection.RemoveInternal to remove controls
3689 that Remove won't remove (scrollbars, edit control).
3690 * DataGridViewColumn.cs: Initialize State correctly.
3691 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
3692 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
3694 * DataGridViewRowCollection.cs: Implemented shared rows.
3695 * DataGridViewRow.cs: Throw exceptions as MS do.
3696 * DataGridViewCell.cs: A few properties are implemented by a
3697 Get<Property> method, so move implementation there and remove the
3698 NIEX in the method. Add a bunch of OnXInternal that DataGridView
3699 calls when necessary.
3700 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
3701 complicates matters.
3702 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
3705 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3707 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
3708 the children controls. Instead, we will just set up the proper docking for the
3709 children controls so we don't have to worry about it. [Fixes bug #82188]
3711 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3713 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
3714 canceling and correct Before/AfterLabelEdit properties as layed out in bug
3715 81847. [Fixes bug #81847]
3717 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3719 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
3720 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
3721 an explicit size based on the design-time size of the text. Since our fonts
3722 may not match this explicit size, we tend to cut off the ends of people's labels.
3724 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
3726 * Menu.cs: Add some missing methods to MenuItemCollection.
3728 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3730 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
3731 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
3732 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
3733 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
3734 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
3735 * DataGridViewElement.cs: State defaults to Visible.
3736 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
3737 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
3739 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3741 * Control.cs: Minor 1.1 corcompare fix.
3743 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3745 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
3746 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
3748 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3750 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
3751 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
3752 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
3753 DataGridViewSelectedColumnCollection.cs,
3754 DataGridViewSelectedRowCollection.cs: Corcompare work.
3756 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3758 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
3759 it is autoset by VS2005 designer and the effect is barely noticeable.
3761 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3763 * TreeView.cs: Implement HitTest.
3765 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3767 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
3768 manually adding and removing the control from the Controls
3770 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
3771 EditingControlInternal property that tracks the editing control.
3772 Always keeping the scrollbars in the Controls collection, as MS
3773 testing confirms is the right behaviour.
3775 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3777 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
3778 according to MSDN and new test.
3780 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3782 * TreeNode.cs: Implement ToolTipText.
3783 * TreeView.cs: Implement tooltips, NodeMouse* events.
3785 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3787 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
3789 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3791 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
3792 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
3794 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
3796 * Control.cs, Form.cs, ContainerControl.cs,
3797 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
3798 for misc properties.
3800 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3802 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
3803 * TreeView.cs: Implement StateImageList.
3805 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3807 * Form.cs: Don't check if the current form is the active form before
3808 activating it. Fixes #81904.
3810 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3812 * Form.cs: Don't check if the current form is the active form before
3813 activating it. Fixes #81904.
3815 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3817 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
3819 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3821 * Form.cs: Don't try to position the form after loading if the form was
3822 disposed. Fixes #81969.
3824 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3826 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
3827 properties. Had to change ToolBar into ToolStrip, which required a
3830 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3832 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
3833 resized, fixes part of #79829 (vertical lines in toolbar).
3834 PropertyGrid: Refactored Populate* to something that's easier to
3835 follow at least for me, as well as splitting it up into several new
3836 methods, required to update only subitems when something has
3837 changed by a popup editor or listbox. Don't use events to check
3838 when any values are changed, since the events are unreliable (we're
3839 changing the objects the events are registered with, and if the
3840 event handling requires the objects to be immutable (objects stored
3841 in hashtables for instance), the events will never be raised).
3842 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
3843 everytime we change a value, since events are unreliable.
3844 DropDownButtonClicked: For the same reason don't compare objects to
3845 check if it has changed or not, it would require all objects to
3846 derive Equals. Fix dialog location on windows, MS is doing weird
3847 things when creating parented forms.
3848 * GridEntry.cs: Add a SelectedObject setter.
3850 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
3852 * TreeNode.cs: Add some corcompare attributes.
3853 * TreeNodeCollection.cs: Implement 2.0 stuffs.
3854 * TreeView.cs: Implement some 2.0 stuffs.
3856 2007-07-18 Andreia Gaita <avidigal@novell.com>
3858 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
3861 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
3863 * ListBox.cs: Implement custom tab offsets.
3865 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3867 * ToolStripContentPanel.cs: Support System renderer.
3868 * ToolStripControlHost.cs: Set RightToLeft to default to No.
3870 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3872 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
3874 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3876 * CheckBox.cs: Chain TextAlign to base implementation instead of
3877 maintaining another one.
3879 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3881 * ButtonBase.cs: Fix an incorrect string constant.
3883 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3885 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
3886 of creating one for measuring strings.
3888 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3890 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
3891 Implement MaxItemSize.
3893 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
3895 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
3896 for DeviceContext. Instead, use the static one available in Hwnd.
3897 Informal tests show this saves about 500k on formtest.exe.
3899 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
3901 * ContainerControl.cs: Implement 2.0 AutoScaling.
3903 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3905 * ComboBox.cs: Work around bug #82120 (bug in mcs).
3907 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
3909 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
3910 Darken the focus color.
3912 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
3914 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
3916 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
3917 X, Y instead of a rect for drawing text.
3918 - For ControlPaint.DrawCheckBox, center the check a little better when the
3919 checkbox is odd width. When drawing a flat checkbox, use a white background
3920 when state != inactive.
3921 [Fixes bugs #82097, 82100]
3923 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
3925 * ListControl.cs: When changing CurrencyManager, disconnect event
3926 handlers from previous one. Fixes bug #81771. Code formatting.
3928 2007-07-15 Andreia Gaita <avidigal@novell.com>
3930 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
3931 full preview invalidation from layout invalidation, and only invalidate
3932 the layout when setting zoom or other properties. Invalidation should
3933 always be done even when resetting properties with the same values as
3934 what is there. Fixes #81744 and #79830.
3936 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3938 * ListView.cs: Implement initial support for Groups. Split some of the
3939 LayoutIcons code to render a partial list of the items (needed by
3940 items contained in ListViewGroup instances). Let the
3941 ListViewItemsCollection.ListView property be modifiable (needed when
3943 * ListViewGroup.cs: Use a Bounds property rather than a Location
3944 one. Also invalidate the bounds when they get changed.
3945 * ThemeWin32Classic.cs: When drawing items, also draw the group header
3946 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
3949 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3951 * ListView.cs: When space gets pressed and CheckBoxes is true,
3952 don't invoke the Begin and EndUpdate methods. We are generating
3953 a redraw of the entire control without need to do so.
3955 2007-07-13 William Holmes <billholmes54@gmail.com>
3957 * Control.cs: Changing logic in FindFlatForward and
3958 FindFlatBackward to handle multiple Controls with
3960 This fixes bug 81687.
3962 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
3964 * OSFeature.cs: Enable IsPresent.
3966 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3968 * Control.cs: Don't do anything in WmShowWindow if the control has been
3969 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
3970 control is created, put on a form, the control is disposed (the
3971 form is never shown), and then we get a MapNotify, triggering a
3973 * Form.cs: Exclude the current form when sending Deactivate to all
3975 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
3976 there was a race condition because assigning the handle raises
3977 events, we can get more messages, therefore trying to assign the
3978 handle again, which would fail if any of those event handlers
3979 closed/disposed the control.
3981 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3983 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
3985 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
3987 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
3988 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
3990 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
3992 * DateTimePicker.cs: If there's no part format specifier, return an
3995 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
3997 * FlatButtonAppearance.cs: Throw NotSupportedException for a
3998 Transparent BorderColor.
4000 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
4002 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
4003 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
4004 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
4005 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
4006 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
4007 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
4008 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
4010 * X11Structs.cs: Remove warnings, add ToString implementations.
4012 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4014 * XplatUIX11.cs: Translate min/max size according to the actual min/max
4015 size, and not the current size. Fixes #81798.
4017 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4019 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
4020 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
4021 to the control yet).
4023 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4025 * PropertyGridTextBox.cs: Add a method that sends any forwarded
4026 mousedowns to the contained textbox.
4027 * X11Structs.cs: More ToString implementation.
4028 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
4031 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4033 * PropertyGridView.cs: Add a null-check, fixes a few tests.
4035 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
4037 * TableLayoutPanelCellPosition.cs: TypeConverter.
4039 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4043 * PropertyGridTextBox.cs: Propagate any color changes to all contained
4045 * PropertyGridView.cs: A few color fixes.
4047 2007-07-10 Jackson Harper <jackson@ximian.com>
4049 * TextControl.cs: Remove some old unused text formatting stuff.
4051 2007-07-10 Jackson Harper <jackson@ximian.com>
4053 * TreeView.cs: Update full row select invalidation to match the
4054 newer DrawSelection... method.
4055 - Make sure to invalidate the entire width when selecting a new
4056 node, if we have full row selection enabled.
4058 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4060 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
4061 display of properties again.
4063 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
4065 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
4066 to existing collections.
4068 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4070 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
4071 that changed between 1.1 and 2.0.
4073 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4075 * PowerStatus.cs: Added. This is just a data class, it is filled
4076 in by SystemInformation.
4078 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4080 * Message.cs: Add op_Equality and op_Inequality.
4082 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4084 * MenuStrip.cs: Finish corcompare work.
4086 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4088 * LinkArea.cs: Add op_Equality and op_Inequality.
4090 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4092 * Application.cs: Add MessageLoopCallback delegate.
4094 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4096 * ListBox.cs: First set of 2.0 stuffs.
4098 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4100 * Control.cs: Make an internal Height property we can override
4101 without messing up the public API.
4102 * ListBox.cs: Override HeightInternal to always return the size
4103 the user set. [Fixes bug #80466]
4105 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
4107 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
4108 paint cell borders if we haven't calculated where they go yet.
4109 [Fixes bugs #82040 and #82041]
4111 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4113 * ListView.cs: In Details view, set the location of item_control
4114 in the (0,0) position (and the header_control is thus on the
4115 item_control). This way the Bounds of the Items are relative to the
4116 ListView control (before this, they had a Bounds value without the
4117 header_control offset, which wasn't matching .Net). Fixes #82004.
4119 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4121 * ListControl.cs: When DataSource is set to null, pass an empty
4122 array of object to SetItemsCore. This is done to clean the items
4123 in the ListContol children. Fixes #81788.
4125 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4127 * ListControl.cs: Add 2.0 stuffs.
4129 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4131 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
4132 Refresh is overkill for just about every repaint request.
4134 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4136 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
4137 so remove my custom Get method and fix the property getter.
4139 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4141 * Label.cs: DefaultMargin for 2.0.
4143 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4145 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
4146 reported issue where other controls with mnemonics would steal strokes
4147 from a selected ComboBox.
4149 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4151 * ScrollOrientation.cs: Make internal for 1.1.
4152 * ScrollEventArgs.cs: Add 2.0 stuffs.
4154 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
4156 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4157 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
4158 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
4160 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
4164 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4166 * ListView.cs: Implement the so-incredibly broken 2.0
4167 VirtualItemsSelectionRangeChanged event.
4169 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4171 * ListView.cs: When enter is pressed and selection is non empty,
4172 an OnItemActivate event must be fired.
4174 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4176 * ListView.cs: Store the FocusedItem information as an
4177 int instead of a ListViewItem (needed by VirtualMode).
4178 Update the calls to SetFocusedItem to pass an index instead of
4180 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
4181 the Focused state from the owner ListView.
4183 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4185 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
4186 property. Also, invalidate previous focused item in the mentioned
4187 property (match .Net).
4189 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4191 * ListView.cs: Implement 2.0 FocusedItem property setter.
4193 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4195 * ListView.cs: Implement 2.0 TopItem property setter.
4197 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
4199 * StatusStrip.cs: The default renderer is System.
4200 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
4201 if the user specifies it.
4202 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
4203 if we are ManagerRenderMode.
4204 * ToolStripMenuItem.cs: Calculate our text color better.
4205 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
4206 from Professional to the base class based off working with the System renderer.
4207 * ToolStripSystemRenderer.cs: Added.
4209 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4211 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
4213 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
4215 * ToolTip.cs: Implement 2.0 Tag property.
4217 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4219 * ListView.cs: Implement 2.0 HitTest methods.
4221 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4223 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
4224 item is under the pointer or not (sugar). Also remove the TODO
4225 regarding to the cursor changes in OneClick activation.
4226 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
4227 the subitems use the parent's HotFont if UseItemStyleForSubItems is
4228 true; otherwise don't show the underline style.
4230 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4232 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
4233 the code to retrieve the item at position only one time. Also
4234 change cursor when Activation is ItemActivation.OneClick as well
4235 as invalidate the item if HotTracking is true (to show/hide the
4236 underline style). Add an internal HotItemIndex property to retrieve
4237 the current hot item's index.
4238 * ListViewItem.cs: Add an internal HotFont property to cache the
4239 font used when HotTracking is true and the pointer moves within the
4241 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
4242 HotFont depending on the hot state of the item.
4244 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4246 * ListView.cs: Implement 2.0 HotTracking property.
4248 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4250 * ToolStripControlHost.cs: If our hosted control never got created,
4251 don't try to dispose it. [Fixes bug #81909]
4253 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4255 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
4257 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4259 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
4261 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4263 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
4265 * DrawListViewColumnHeaderEventArgs.cs:
4266 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
4267 using the DrawText () methods.
4269 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
4271 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
4272 background which got erased in my changes yesterday.
4274 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4276 * ListViewItem.cs: Actually set bounds for subitems in Details view
4278 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
4279 can invoke from the owner draw routines if we need it. Also, add
4280 support for Owner draw in Details view.
4282 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4284 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
4285 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
4286 ShowImageMargin setting, properly align text in a ToolStripLabel
4287 hosted on a ToolStripDropDown.
4289 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4291 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
4292 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
4294 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4296 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
4298 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4300 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
4301 location to match ToolStripMenuItems.
4303 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4305 * DrawListViewColumnHeaderEventArgs.cs:
4306 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
4307 column headers in ListView.
4309 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
4311 * UserControl.cs: Implement AutoSize.
4313 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4315 * DrawListViewItemEventArgs.cs:
4317 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
4320 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
4322 * ToolStripDropDownItemAccessibleObject.cs: Added.
4323 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4324 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
4325 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
4326 ToolStripTextBox.cs: corcompare work.
4328 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
4330 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
4331 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
4332 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
4335 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
4337 * OSFeature.cs: Add IsPresent.
4338 * PrintPreviewControl.cs: Add RightToLeft.
4339 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
4340 * SplitterPanel.cs: Add AutoSizeMode.
4342 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4344 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
4345 * MdiClient.cs: Add 2.0 ScaleControl.
4346 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
4347 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
4349 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4351 * Form.cs: Implement some scaling methods, stub some RTL methods,
4354 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4356 * Control.cs: corcompare work.
4357 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
4359 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4361 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
4362 ControlPaint 2.0 stuffs.
4364 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4366 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
4368 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4370 * UpDownBase.cs: Add 2.0 stuffs.
4372 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4374 * NumericUpDown.cs: Add 2.0 stuffs.
4376 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4378 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
4380 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4382 * ErrorProvider.cs: Implement 2.0 stuffs.
4384 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4386 * DomainUpDown.cs: Implement 2.0 stuffs.
4388 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4390 * CheckedListBox.cs: Fix RefreshItems signature.
4392 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4394 * PictureBox.cs: Implement 2.0 stuffs.
4396 2007-06-12 Andreia Gaita <avidigal@novell.com>
4398 * TabControl.cs: Check if there are tabpages before checking
4399 the selected index - fix #81802 (font changes raise a ResizeTabs
4400 call on controls.add, which blew up nicely with no tabpages)
4402 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4405 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
4407 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4410 * ListViewItem.cs: In VirtualMode the selection information
4411 resides in the ListView, rather than in the Items. Also, throw
4412 InvalidOperationExceptions when VirtualMode is being used and
4413 CheckedItemCollection is accessed.
4415 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4417 * ComboBox.cs: Add ScaleControl.
4419 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4421 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
4423 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4425 * GroupBox.cs: Add 2.0 stuffs.
4427 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4429 * Panel.cs: Add autosize properties/event.
4431 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
4434 - When we remove a control, remove it from the collection before performing the layout.
4435 - Setup an internal property for explicit_bounds.
4436 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
4437 - Perform a layout when we set a new AutoSizeMode.
4439 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
4441 * ScrollableControl.cs: Add 2.0 stuffs.
4443 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4445 * ScrollBar.cs: Add 2.0 stuffs.
4447 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4449 * Splitter.cs: Add 2.0 stuffs.
4451 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4453 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
4454 to have BindingContext simply use base implementation.
4456 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4458 * ColumnHeader.cs: corcompare fix.
4460 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4462 * Button.cs: corcompare fixes.
4463 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
4465 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4467 * Button.cs: Override GetPreferredSizeCore.
4468 * ButtonBase.cs: PerformLayout after changing properties that can affect
4469 AutoSize. Simplify some mouse/keyboard code.
4470 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
4471 * MouseEventArgs.cs: Make Location internal for 1.1.
4472 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
4473 * Theme.cs: Add CalculateButtonAutoSize.
4474 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
4476 2007-06-05 Miguel de Icaza <miguel@novell.com>
4478 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
4480 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4482 * ListViewItem.cs: We can't cache Bounds in VirtualMode
4483 since we can get different item instances every time we retrieve it.
4485 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4487 * ListView.cs: Work around for #81602, since an unkown an pretty
4488 infrequent condition appears only in some systems (old linux boxes, it
4491 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4493 * Button.cs: Completely reformat and a little refactor to bring
4494 this closer to Mono circa 2007.
4496 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4498 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
4499 to be ButtonBase.Invalidate.
4501 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4503 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
4505 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4507 * ButtonBase.cs: Completely reformat and a little refactor to bring
4508 this closer to Mono circa 2007.
4510 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
4512 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
4513 values for autosize. Fixes #80137.
4515 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4517 * Control.cs: Don't perform layout when AutoSize changes.
4518 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
4519 directly when autosizing, use SetBounds with BoundsSpecified.None.
4520 Fixes unit tests my last commit broke.
4522 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4524 * Control.cs: Perform layout when AutoSize changes.
4525 * Form.cs: Implement AutoSizing.
4527 2007-06-01 Chris Toshok <toshok@ximian.com>
4529 * DataGrid.cs: remove the XXX'ed check at the top of
4530 ProcessGridKey. fixes #80464.
4532 2007-06-01 Chris Toshok <toshok@ximian.com>
4534 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
4535 adding idempotent (add/remove in Edit()), and also make sure we
4536 don't add it until after we set the text, so it's not tripped in
4537 Edit(). Fixes unit test regression.
4539 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4541 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
4542 change is user explicit, not when the layout engine moves stuff. Fixes
4543 anchoring to bottom and right. [Fixes bug #81790]
4545 2007-06-01 Andreia Gaita <avidigal@novell.com>
4547 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
4549 2007-06-01 Andreia Gaita <avidigal@novell.com>
4551 * ContainerControl.cs:
4552 Fire enter event for common ancestor if it is not a ContainerControl.
4553 Send focus to the active_control and not the 'value', the active
4554 control might have been changed in one of the events fired.
4555 Definitely fixes #80159.
4557 2007-06-01 Andreia Gaita <avidigal@novell.com>
4559 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
4561 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4563 * PropertyGrid.cs: Anchor the help description to the bottom of the
4564 help panel and refactor SelectGridItem into a
4565 SelectGridItemInternal that can be set to null (and update it to
4566 clear the help texts when it is set to null). Set root item to null
4567 when there's no SelectedObject. Fixes #80438.
4568 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
4569 when we're recalculating after a resize (only).
4571 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4573 * ListView.cs: Implement 2.0 RedrawItems method.
4575 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4577 * ListControl.cs: Disconnect PositionChanged and ItemChanged
4578 handlers from previous data manager when DataSource is set to
4581 2007-05-31 Jackson Harper <jackson@ximian.com>
4583 * TextBoxBase.cs: These seem to be the correct values.
4585 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
4587 * FileDialog.cs: When close dialog with ok set filterindex using combobox
4588 value. Fixes #81784.
4590 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
4592 * Control.cs: Implement 2.0 scaling methods.
4594 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4596 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
4597 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
4600 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4602 * ProgressBar.cs: Implemented missing 2.0 members.
4604 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4606 * Control.cs: Corcompare issues.
4607 * MessageBox.cs: Implemented missing 2.0 functions.
4609 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4611 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
4612 Implemented more 2.0 members.
4614 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4616 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
4617 null (strange, but it seems to happen when running unit tests).
4619 2007-05-30 Andreia Gaita <avidigal@novell.com>
4621 * ContainerControl.cs: Set active_control even earlier, before
4622 firing any events, and undo it if validation returns false.
4624 2007-05-30 Andreia Gaita <avidigal@novell.com>
4626 * ContainerControl.cs: Raise Validation and Enter/Leave events
4627 even if there is no Form and set active_control earlier, just
4628 before firing Enter events (toshok's patches). Fixes #80647.
4630 2007-05-30 Jackson Harper <jackson@ximian.com>
4632 * TextControl.cs: Redid the pageup/pagedown a little to simplify
4633 things and fix bug #81311.
4635 2007-05-30 Jackson Harper <jackson@ximian.com>
4637 * X11Dnd.cs: Now that we have our own event loop, we need to
4638 cancel when we get a mouseup but it won't be accepted.
4640 2007-05-30 Chris Toshok <toshok@ximian.com>
4642 * DataGrid.cs (set_CurrentCell): guard against negative
4645 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
4646 array index syntax instead of looping over the property names.
4648 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
4649 and set IsInEditOrNavigateMode to false there.
4651 2007-05-30 Jackson Harper <jackson@ximian.com>
4653 * TreeView.cs: Make sure we don't get a bad visible order when
4654 setting to the top node. Fixes some misc crashing in
4657 2007-05-30 Andreia Gaita <avidigal@novell.com>
4659 * UserControl.cs: Add 2.0 AutoSizeMode
4661 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4663 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
4665 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4667 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
4668 lines. Fixes #80285.
4670 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4672 * DataGridColumnStyle.cs: Add char trimming column header text format.
4674 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4676 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
4679 2007-05-29 Jackson Harper <jackson@ximian.com>
4681 * TreeNode.cs: Fix off by one on calculating whether or not a node
4684 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
4686 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
4687 * ScrollableControl.cs: Force an UpdateDistances when we move the
4691 2007-05-29 Andreia Gaita <avidigal@novell.com>
4693 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
4694 update the page setup screen.
4696 2007-05-29 Andreia Gaita <avidigal@novell.com>
4698 * PageSetupDialog.cs: Fix landscape mode.
4700 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4702 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
4703 IconSizeHorizontalSpacing.
4705 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4707 * ListView.cs: The declaration of prev_tooltip_item should be inside
4708 a NET_2_0 conditional (avoid a warning).
4710 2007-05-28 Andreia Gaita <avidigal@novell.com>
4712 * PageSetupDialog.cs: Implement PrintPreview control to display
4713 the preview thumbnail. Change unit conversion to use
4714 PrinterUnitConvert methods.
4716 Note: there is a huge bug in ms.net where the default margins are
4717 interpreted as centimeters (?), when in fact they are set in inches. When
4718 loading the page setup dialog initially (ms.net), the default margins
4719 are set to 1 inch, and the dialog shows them with value 10, when in fact
4720 it should be 25 (properly converted). Our dialog doesn't have this bug.
4722 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
4724 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
4726 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4729 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
4732 2007-05-28 Andreia Gaita <avidigal@novell.com>
4734 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
4735 an IntPtr on csc (it builds fine on mcs, could it be a compiler
4736 bug?), convert the ptr to Int32 first.
4738 2007-05-28 Jackson Harper <jackson@ximian.com>
4740 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
4741 recieved, we will exit the dnd tracking loop.
4743 2007-05-28 Jackson Harper <jackson@ximian.com>
4745 * X11Dnd.cs: Keep tracking until the xdnd finished event is
4746 recieved. TODO: I should probably stick a timer on the dropped
4747 event, and finish the drag if the XDND Finished event never shows
4748 (because some apps don't seem to send it).
4750 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
4752 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
4755 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4757 * MonthCalendar.cs: Only mark the keypresses we actually handle as
4760 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4762 * MonthCalendar.cs: Set the size after initializing all the relevant
4763 variables. Fixes #81742.
4765 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4767 * KeyEventArgs.cs: Fix typo.
4769 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
4771 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
4772 to match MS. Fixed MinDate to only accept value less than or equal
4773 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
4774 Removed TODO's that are now verified by unit tests.
4776 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
4778 * TreeNodeCollection.cs: Minor corrections to exceptions to match
4781 2007-05-25 Jackson Harper <jackson@ximian.com>
4783 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
4784 it's own message loop.
4785 * XplatUIX11.cs: Remove some of the dnd hooks
4787 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
4789 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
4790 instead of MinimizedWindowSize.
4792 2007-05-25 Jackson Harper <jackson@ximian.com>
4794 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
4796 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4798 * KeyEventArgs.cs: Added SuppressKeyPress.
4799 * Control.cs: Added support for SuppressKeyPress.
4801 2007-05-24 Andreia Gaita <avidigal@novell.com>
4803 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
4804 problems with PieChart. suppress_validation should not be a counter,
4805 if there are several BeginInit calls, the first EndInit will
4806 activate validation. Fix exceptions thrown by set_Value.
4807 * UpDownBase.cs: ValidateText only if it's the user editing it.
4809 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4811 * ListControl.cs: FilterItemOnProperty should return the filtered
4812 item proeprty even if DataSource is null. The same applies for
4813 GetItemText. Fixes #80427.
4815 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4817 * Control.cs: If a control doesn't have a parent when it's Dock is
4818 set, but it has children, it needs to do a layout. Fixes some nested
4819 controls issues. [Fixes bug #81199]
4821 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4823 * ComboBox.cs: If there are few items in the drop down list, make it
4824 the exact size the items need, no bigger. Fixes #81612.
4826 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4828 * Application.cs: When we have captured the keyboard for a menu,
4829 check for mouse down events in case we need to close the menu.
4830 * Control.cs, Form.cs: Remove mouse down checks for menus.
4832 2007-05-24 Jackson Harper <jackson@ximian.com>
4834 * TextControl.cs: Handle tabs in non multiline mode a little
4837 2007-05-24 Jackson Harper <jackson@ximian.com>
4839 * TextControl.cs: We need to manually break apart tabbed text and
4840 move the tabs, since the system.drawing tabbing mechanism relies
4842 * TextBoxBase.cs: Move the caret properly when the user enters a
4845 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4847 * ContainerControl.cs: Don't check CanSelect before calling
4849 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
4850 release a KeyboardActive on click if it's not ours.
4852 2007-05-23 Andreia Gaita <avidigal@novell.com>
4854 * ColumnHeader.cs: Add TypeConverter
4856 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4858 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
4860 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4862 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
4864 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4866 * LinkLabel.cs: Implement public Padding property.
4868 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4870 * LinkLabel.cs: Implement public FlatStyle.
4872 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
4874 * Control.cs: Apply patch from George to call parent.PerformLayout
4875 when Visible is changed. [Fixes bugs #81118, 81718]
4877 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4879 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
4881 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4883 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
4885 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4887 * ContextMenu.cs: Implement Collapse.
4889 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4891 * ToolBarButton.cs: Implement Name.
4893 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
4895 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
4896 use current_item, it prevents some NRE. Fixes #81675.
4898 2007-05-22 Andreia Gaita <avidigal@novell.com>
4900 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
4901 without updating the text.
4903 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
4905 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
4906 without calling DeleteObject. [Should fix bug #81709]
4908 2007-05-22 Jackson Harper <jackson@ximian.com>
4910 * RichTextBox.cs: Set the line endings correctly, when flushing
4913 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
4915 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
4918 2007-05-22 Jackson Harper <jackson@ximian.com>
4920 * TreeView.cs: Setting top with a null node should set to the very
4923 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4925 * Form.cs: ShowDialog: destroy the handle when message loop is
4926 finished, matches MS behaviour. Refactor parts of WmClose into
4927 RaiseCloseEvents, that only raises events if they haven't already
4928 been raised. Fixes #81688 and #81521.
4929 * Application.cs: Don't call close on the form when exiting a modal
4930 loop, it will raise all the (Form)Closed/Closing events again if
4931 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
4932 which doesn'r raise any events it they have been raised before.
4934 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
4936 * Control.cs: Add OnPrint.
4937 * ToolStrip.cs: Add GetChildAtPoint.
4938 * ToolStripContainer.cs: Add OnRightToLeftChanged.
4939 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
4941 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
4943 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
4945 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4947 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
4948 isn't visible anymore. Fixes #81651.
4950 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4952 * Control.cs: WmShowWindow: Update children's z-order after setting
4953 their parent. SetParent may show the window, thereby corrupting
4954 z-order, since the window will be shown on top.
4955 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
4956 multiple (and redundant) WM_SHOWWINDOW messages.
4957 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
4958 event has already been raised.
4959 * Form.cs: Change is_changing_visible_state to a counter, since
4960 SetVisibleCore can be called recursively. CreateHandle: when
4961 creating mdi children, send (De)Activated events.
4962 * MdiClient.cs: Update use of is_changing_visible_state.
4963 * Application.cs: OnThreadException: Surround exception handling with
4964 try/finally to ensure we always reset the error-handling state
4967 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4969 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
4972 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4974 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
4975 SmallIcon views, now that we have a standarized horizontal spacing.
4977 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
4978 4, just like the other views (Match .Net).
4980 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
4982 * Control.cs: Delay calculating anchor distances until we actually layout.
4983 Always query the WM for the actual size and location it put us at instead of
4984 only when we send negative values.
4985 [Fixes bugs #81694, 81695]
4987 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4989 * Application.cs: Avoid a possible stack overflow when trying to exit
4992 2007-05-19 Marek Safar <marek.safar@gmail.com>
4994 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
4997 2007-05-19 Andreia Gaita <avidigal@novell.com>
4999 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
5000 * NumericUpDownAcceleration.cs,
5001 NumericUpDownAccelerationCollection.cs: Added 2.0
5004 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
5006 * RichTextBox.cs: Recalculate the document after the ScrollBars
5007 property is changed. Fixes bug #81681.
5009 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
5011 * DataObject.cs: Implement 2.0 methods.
5013 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5015 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
5016 in the center of the checkbox, not in the left-top corner.
5019 2007-05-18 Jackson Harper <jackson@ximian.com>
5021 * RichTextBox.cs: Recalculate the document after the scrollbars
5022 property is changed.
5023 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
5026 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
5028 * CreateParams.cs: Make HasWindowManager marginally faster.
5029 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
5030 into Hwnd so that other drivers can use it as well.
5031 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
5032 the default location from Hwnd. Fixes MDI client windows always
5033 showing up at (0,0) in Windows (Win32 won't set the default
5034 location since the window styles aren't correct).
5036 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
5038 * TreeView.cs: Modified DoubleBuffered to just use the base
5041 2007-05-18 Jackson Harper <jackson@ximian.com>
5043 * TreeView.cs: Set the top node to the last child node when
5045 - When we get focus, if there is no selected node, use the top
5048 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
5050 * KeysConverter.cs: Add CanConvertTo.
5051 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
5052 * LinkConverter.cs: Added.
5054 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5056 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
5057 it prevents error when file dont have write access. Fixes #81669 and #81667.
5059 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5061 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
5062 button text. Fixes #79640.
5064 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5066 * Control.cs: According to MSDN controls created in the designer theres
5067 keyboard accelerators visible by default. So included check for design
5068 in ShowKeyboardCuesInternal.
5070 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5072 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
5075 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5077 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
5078 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
5080 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5082 * Control.cs: Finish implementation of UI State using WmChangeUIState
5083 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
5084 in some controls to check for show_keyboard_cues to draw accell keys "_".
5086 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5088 * ListBox.cs: When calculating the horizontal scrollbar
5089 in single column mode, don't use values less than 0 for
5090 Maximum. Fixes #81474.
5092 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5094 * ListBox.cs: Throw the some missing exceptions in
5095 ListBox.ObjectCollection methods.
5097 2007-05-17 Jackson Harper <jackson@ximian.com>
5099 * TextBoxBase.cs: Recalculate the document when the word wrap
5100 value has changed. This fixes 81488.
5102 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5104 * Clipboard.cs: Implement missing GetText overload.
5106 2007-05-17 Chris Toshok <toshok@ximian.com>
5108 * Control.cs (CheckDataBindings): remove the binding_context arg
5111 * CurrencyManager.cs (OnItemChanged): fix this now that
5112 BindingManagerBase is fixed. also remove the comment telling where
5113 the fix should go. We set transfering_data to true/false around
5114 the call to PushData to keep UpdateIsBinding from being called.
5115 (ListChangedHandler): remove the extra OnMetaDataChanged call for
5116 PropertyDescriptorAdded in the 1.1 case. The extra call is
5117 actually generated by System.Data generating 2 metadata changed
5118 events of its own per column add. The fix should go there. Add a
5119 comment to that affect in our test's Assert.Ignore.
5121 * BindingManagerBase.cs: Rework PullData and PushData slightly.
5122 we keep a boolean flag (transfering_data) that keeps us from
5123 calling UpdateIsBinding multiple times if we re-enter either of
5126 * ControlBindingsCollection.cs (AddCore): remove the
5127 binding_context arg to binding.Check.
5129 * Binding.cs (IsBinding): don't check if we're binding here, just
5130 return our cached value. we update it in UpdateIsBinding.
5131 (Check): don't take the binding_context arg, we'll just use our
5132 control's. Also, for some reason MS doesn't use the data member
5133 field when getting the bindingmanager for this binding. it just
5134 uses the datasource. Make this method callable multiple times,
5135 and only do the is_null_desc stuff if manager.Position != -1 (so
5136 we don't get an exception accessing manager.Current).
5137 (UpdateIsBinding): move the code from IsBinding here.
5138 (PositionChangedHandler): call Check here to we can initialize
5139 things that require a non- -1 position.
5141 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5143 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
5146 2007-05-17 Andreia Gaita <avidigal@novell.com>
5148 * TabControl.cs: Add 2.0 methods and events, including
5149 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
5150 * TabPage.cs: Add 2.0 methods
5152 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5154 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
5155 keyboard_cues is properly handled by message method.
5157 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5159 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
5161 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5163 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
5165 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
5168 - WmUpdateUIState added to handle state changes, it make call to
5169 OnChangeUICues event.
5170 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
5173 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
5175 * ImageKeyConverter.cs: Added.
5176 * TreeViewImageKeyConverter.cs: Added.
5178 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5180 * ToolTips.cs: Update Text if SetToolTip is called for a control
5181 already showing the tooltip, as well as restarting its timer; show
5182 tooltip if we are inside the control bounds by the time of calling
5183 SetToolTip. Inside ShowTooltip remove the check to not show the
5184 tooltip again for the active control (it is allowed by .Net to
5185 show the tooltip on the same control multiple times).
5187 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5189 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5191 2007-05-16 Andreia Gaita <avidigal@novell.com>
5193 * ContainerControl.cs: only process tab key if there are no
5194 modifier keys present, otherwise the control does the
5195 tab processing, if it needs to. Fixes #81622
5196 * TabControl.cs: Fixes calculation for which tab to select on
5199 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5201 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5203 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
5205 * Control.cs: Make IsInputCharInternal to allow controls to
5206 override it and still match MS API.
5207 * TextBoxBase.cs: Override IsInputCharInternal and always
5211 2007-05-15 Jackson Harper <jackson@ximian.com>
5213 * TextBox.cs: Disable some of the menu options when using a
5216 2007-05-15 Jackson Harper <jackson@ximian.com>
5220 * RichTextBox.cs: Some new 2.0 methods
5222 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
5224 * FileDialog.cs: On 1.0 profile, do not support multidotted
5227 2007-05-14 Jackson Harper <jackson@ximian.com>
5229 * TextBoxBase.cs: Implement some of the new 2.0 methods.
5230 * RichTextBox.cs: We need to override these methods on 2.0.
5231 * MaskedTextBox.cs: These are implemented now
5232 * TextControl.cs: This was off by one.
5234 2007-05-14 Jackson Harper <jackson@ximian.com>
5236 * TextControl.cs: Because the line endings are including in the
5237 text, we don't need to add them in anymore.
5239 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5241 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
5242 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
5244 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5246 * ToolBar.cs: Adjust size to default size when button theres no text and
5247 image, it fixes remaining issues from #81524.
5249 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5252 - When not flat call redraw to recalculate sizes on creare handle to match
5254 - Revert 77220 because it causes some regressions in toobar
5257 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5259 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
5260 now actually enters a usable state.
5262 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5264 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
5265 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
5268 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5270 * ToolBar.cs: Save default_size on create handle to use later for buttons
5271 without text, needed to mimic win32 behavior.
5273 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5275 * ToolBar.cs: Fix button layour to best fit width or height according to
5276 vertical or not. Fixes #81524.
5278 2007-05-10 Everaldo Canuto <everaldo@simios.org>
5280 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
5281 toolbar size info because different styles theres different sizes.
5284 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5286 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
5287 if we are using checkboxes, checked is true, and we have less
5288 than two images in StateImageList; for the 1.1 in the same scenario
5289 draw the first image if we have at least one image in StateImageList.
5290 Fixes part of #81191.
5292 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5294 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
5295 the owner's Items collection on merge.
5297 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5299 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
5300 * ToolStripItemCollection.cs: Lots of fixes to when events get called
5301 and parent/owner gets changed based on gert's unit tests.
5303 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5305 * MaskedTextBox.cs: Started implementing parts of it.
5307 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5309 * ListView.cs: When clicking the checkbox on the items
5310 take into account the double clicks even if we have only
5311 one image in StateImageList (only for 1.0/1.1). Also
5312 generate an extra change of checked state when we receive
5313 the second click on checkbox (match .Net behaviour).
5314 Fixes part of #81191.
5316 2007-05-10 Everaldo Canuto <everaldo@simios.org>
5318 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
5320 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5322 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
5323 even if OnLoad is overriden and base.OnLoad is not called.
5326 2007-05-10 Andreia Gaita <avidigal@novell.com>
5328 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
5329 shame. (I blame my ever-persisting and annoying cold)
5331 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5333 * ListView.cs: Don't eat navigation keys. Let them flow through to
5334 KeyDown/KeyPress routines. [Fixes bug #81569]
5336 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5338 * ListView.cs: When handling keys for selecting the item based off
5339 keyboard input, do not consider keys pressed with Alt or Control. Also,
5340 correctly handle keys when the Shift key is down. [Fixes bug #81578]
5342 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5344 * Control.cs: When using UseWaitCursor, we have to store the requested
5345 Cursor to use when UseWaitCursor is turned off.
5347 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5349 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
5351 * Application.cs: Use PreProcessControlMessage instead of
5353 * PreProcessControlMessage.cs: Make internal for 1.1.
5355 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5357 * Control.cs: Add InternalContains focus property, which hast the same
5358 functionality of ContainsFocus, but also including implicit controls.
5359 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
5360 since we need to know if the focus is contained in our implicit
5361 ItemControl when calculating Layout. Fixes part of #80888.
5363 2007-05-08 Everaldo Canuto <everaldo@simios.org>
5365 * ToolTip.cs: Remove center form string alignment as it must be align to
5368 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
5370 * ToolStripItemCollection.cs: Set the new item's parent and owner
5371 in Insert like we do in Add. [Fixes bug #81568]
5373 2007-05-08 Jackson Harper <jackson@ximian.com>
5375 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
5376 - Off by one error in SetTop
5377 - Disable DoubeBuffering
5379 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5381 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
5382 control as much as necessary in order to make it entirely visible,
5383 instead of centering the control in the container (matches MS
5384 behaviour). CalculateCanvasSize: we need to take the current scroll
5385 position into account when calculating the maximum canvas,
5386 otherwise the following scenario will fail: resize so that the
5387 scrollbars appear, use the scrollbars to scroll, resize again
5388 smaller, and now the canvas size is too small. Recalculate: when
5389 showing scrollbars make sure they start off at 0, and try to scroll
5390 the active control into view. Fixes #79540. HandleScrollBar: don't
5391 scroll anywhere if the scrollbar isn't visible.
5393 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5395 * ListView.cs: When focus changed, call Layout/Invalidate
5396 in the focused item to update the selected state (should show
5397 entire label when ListView is focused, and a part of it if is not).
5398 * ListViewItem.cs: When doing layout for LargeIcon, take into account
5399 for displaying the entire label not only the Focused state of the
5400 item, but also the Focused state of the ListView (match .Net
5403 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5405 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
5406 Implement UseWaitCursor.
5408 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5409 Applying contributed patch from Sergey Volk.
5411 * Clipboard.cs: Implement SetDataObject retry logic and new overload
5413 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
5415 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5417 * Control.cs: Implement DrawToBitmap.
5419 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5420 Applying contributed patch from Stefan Noack.
5422 * Control.cs: Add [Get|Set]AutoSizeMode.
5424 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5426 * MdiClient.cs: Unmerge menus when the last child is closed.
5428 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5430 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
5431 * ToolStripManager.cs: Call Merge on DropDowns.
5434 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5436 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
5438 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
5439 visibility. We can't create forms visible, since we have to set the
5440 owner before making the form visible (otherwise Win32 will do
5441 strange things with task bar icons). The problem is that we set the
5442 internal is_visible to true before creating the control, so
5443 is_changing_visible_state is the only way of determining if we're
5444 in the process of creating the form due to setting Visible=true -
5445 this works because SetVisibleCore explicitly makes the form
5446 visibile afterwards anyways. Fixes #80775.
5448 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5450 * ThemeWin32Classic.cs: When drawing ListViewItems,
5451 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
5452 or LargeIcon _and_ item is not focused (match .Net behaviour).
5454 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
5456 * Control.cs, Form.cs: Fix some obsolete method warnings.
5458 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
5460 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
5461 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
5463 2007-05-04 Andreia Gaita <avidigal@novell.com>
5465 * ContainerControl.cs: Fix active_control attribution when going
5466 up the parent chain so that the first parent container gets the control
5467 and the rest of the parent containers get the child containers (skips
5468 non-containers). Fixes #80729
5470 2007-05-04 Randolph Chung <tausq@debian.org>
5472 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
5475 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5477 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
5478 takes a size parameter, since the CreateParam's size isn't true for
5479 minimized forms. Fixes #81518,
5481 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5483 * Form.cs: Add OnDeactivateInternal.
5484 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
5486 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5488 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
5489 accessing the parent. Fixes #81508.
5491 2007-05-03 Chris Toshok <toshok@ximian.com>
5493 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
5494 2.0 block, pass listposition + 1 to ChangeRecordState when a row
5495 was added before the current listposition. Fixes the
5496 TestInsertRowBeforeCurrent unit test.
5498 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
5500 * Application.cs: Add RaiseIdle.
5501 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5502 XplatUIX11.cs: Implement RaiseIdle.
5504 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
5505 corcompare work: N - Z
5509 * ScrollableControl.cs
5513 * SystemInformation.cs
5515 * TableLayoutControlCollection.cs
5516 * TableLayoutPanel.cs
5521 * ToolStripComboBox.cs
5522 * ToolStripContainer.cs
5523 * ToolStripContentPanel.cs
5524 * ToolStripDropDown.cs
5525 * ToolStripDropDownItem.cs
5526 * ToolStripDropDownMenu.cs
5528 * ToolStripItemCollection.cs
5529 * ToolStripMenuItem.cs
5531 * ToolStripSplitButton.cs
5534 * TreeNodeCollection.cs
5535 * TreeNodeMouseHoverEventArgs.cs
5538 2007-05-01 Everaldo Canuto <everaldo@simios.org>
5540 * ContextMenu.cs: Add public method Show with alignment property to 2.0
5541 stuff. Thanks aatdark for the patch.
5543 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5545 * GridItem.cs: Implement 2.0 Tag property.
5547 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
5549 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
5550 count instead of Nodes.Length. [Fixes bug #81448]
5552 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5554 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
5557 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5558 corcompare work: A - M
5559 * BindingNavigator.cs
5564 * FlowLayoutPanel.cs
5570 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5572 * Application.cs: Give toolstrips a chance to process mnemonics.
5573 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
5574 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
5575 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
5577 2007-05-01 Jackson Harper <jackson@ximian.com>
5579 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
5581 - Don't set the BoundsSpecified
5583 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5585 * Application.cs: When using the toolstrip shortcut mechanism, allow the
5586 message to pass through to a regular control if it hosted by a toolstrip.
5587 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5588 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
5590 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5592 * TextRenderer.cs: Use the flags argument when using the MeasureString
5595 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5597 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
5598 the MDI menu item. [Fixes bug #81483]
5600 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
5602 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
5603 string. When setting Name to null, use zero-length string instead.
5605 2007-04-29 Andreia Gaita <avidigal@novell.com>
5607 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
5608 DeselectTab). Implement missing 2.0 TabPageCollection methods
5609 (Add, ContainsKey, RemoveByKey, IndexOfKey)
5611 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
5613 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
5615 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
5617 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
5618 Fixes bug #81479. Include details of exception when LoadFile fails.
5620 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
5622 * DrawListViewSubItemEventArgs.cs: Added missing setter
5624 2007-04-27 Andreia Gaita <avidigal@novell.com>
5626 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
5627 Hide methods (not complete). Implement missing 2.0 OnPopup event.
5629 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5631 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
5632 removed in ly last commit (it was breaking the Label edit feature).
5634 * ThemeWin32Classic.cs: When drawing a ListViewItem use
5635 StringAlignment.Near for LineAlignment (match .Net).
5637 2007-04-27 Andreia Gaita <avidigal@novell.com>
5639 * TabControl.cs: Change SetTab so it adds the tabpage to the list
5640 of controls if it isn't already there - was blowing up when doing
5641 tabcontrol.TabPages[i]=new TabPage().
5642 SetTab now does a replace by removing the page at the index.
5643 Add a new InsertTab method that inserts a page in a given index
5644 instead of replacing.
5645 Implements TabPageCollection.Insert(int, TabPage).
5647 2007-04-27 Chris Toshok <toshok@ximian.com>
5649 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
5650 internal handler that can be invoked from our subclasses.) Also,
5651 add a comment to PushData about how we need to fix it.
5653 * CurrencyManager.cs: tons of changes here. trying to get things
5654 matching the behavior of .net wrt event orders (ItemChanged,
5655 CurrentChanged, PositionChanged.) I've implemented a private .net
5656 symbol (ChangeRecordState) that appears in stack traces because
5657 it's actually easier to do this than to effective inline all its
5658 various behaviors at every call site.
5660 * RelatedPropertyManager.cs: guard against an exception here by
5661 not using parent.Current if the position is set to -1 (if the
5662 parent datasource is cleared, for instance).
5664 * Binding.cs: don't parse data in PushData (this might be wrong,
5665 but it jives with MS's behavior.) Also, don't call PushData when
5666 we get a CurrentChanged event.
5668 2007-04-27 Andreia Gaita <avidigal@novell.com>
5672 WebBrowserSiteBase.cs,
5673 HtmlDocument.cs: Added stubbed out classes, no real implementations
5676 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5678 * MainMenu.cs: In draw method without parameters call draw method with
5679 PaintEvent, another one (just rect) adjust rectangle and we dont need it
5680 as Rect property is already adjusted. Fixes #80694.
5682 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
5684 * Application.cs: Need to handle keyboard menu deselection here.
5685 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
5686 navigation, allowing keyboard to work on X11.
5687 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
5689 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5691 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
5692 menu bar. It fixes some drawing issues in menu bar.
5694 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5696 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
5697 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
5698 when <alt> key is pressed.
5700 2007-04-26 Everaldo Canuto <everaldo@simios.org>
5702 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
5703 example just set visible to false and make this prevent from other problems.
5704 In SystrayAdd always remove pending expose. Fixes #81072.
5706 2007-04-26 Marek Safar <marek.safar@gmail.com>
5708 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
5711 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5713 * ListView.cs: Added three missing 2.0 events and corresponding
5714 EventHandlers. Added the OwnerDraw property.
5715 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
5717 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5719 * DrawListViewItemEventArgs.cs
5720 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
5722 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5724 * TextControl.cs: Fixed typo in constructor
5726 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
5728 * Application.cs: Create a shortcut path so that currently selected
5729 MenuStrips can intercept keyboard events without having focus.
5730 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
5731 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
5732 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
5733 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
5734 generate WM_SYSCOMMAND message in X11 for other platforms.
5735 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
5736 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
5737 * ToolStripSplitButton.cs: Add DefaultItem property.
5739 2007-04-26 Everaldo Canuto <everaldo@simios.org>
5741 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
5742 fixes some menu draw problem on Windows with border diferent from default
5743 it also fixes #81403.
5745 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5747 * Form.cs: Refactor WndProc into separate methods, just like Control is
5750 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5752 * Control.cs: set_Text: move the call to the driver into a seperate
5753 virtual method so that Form can override it.
5754 * MaskedTextBox.cs: Corcompare fixes.
5755 * Form.cs: Override UpdateWindowText and only update the styles if the
5756 form has been shown (fixes #81405).
5758 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
5760 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
5761 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
5762 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
5763 the form lost focus or another control was clicked.
5765 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
5767 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
5770 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
5772 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
5773 DrawListViewItemEventHandler.cs,
5774 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
5776 * X11Structs.cs: More ToString implementation.
5778 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
5780 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
5781 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
5783 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
5785 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
5787 * FormCollection.cs: Don't add a form if it's already in the
5789 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
5790 according to behaviour and MSDN. The ownerWin32 is the active
5791 window at the moment when we call ShowDialog, not the context's
5792 main form (the context's main form may open another form that opens
5793 a form with ShowDialog, the win32 owner is the second form). Add
5794 and remove forms to the Application.OpenForms in other places to
5795 better match MS behaviour. Add an IsActive property that raises
5796 On(de)Activated only if the active state has changed (we were
5797 raising OnDeactivated before OnActivated while creating forms).
5798 * Application.cs: Refactor Enabling/Disabling of windows for modal
5799 dialog loops out to separate methods, and restore the thread
5800 context when we quit the method. Fixes #81407.
5802 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5804 * ListView.cs: In ItemControl.HandleClicks, also fire
5805 2.0 MouseClick or MouseDoubleClick events on the parent,
5806 not only the Click/DoubleClick events.
5808 2007-04-24 Andreia Gaita <avidigal@novell.com>
5810 * TableLayoutSettings.cs:
5811 - Added a GetControls method and a support structure to help the
5812 TypeConverter to enumerate the controls for serialization.
5813 - Added a new serialization constructor.
5814 - Added a isSerialized flag initialized to true on the
5815 serialization constructor so that the TableLayoutPanel.LayoutSettings
5816 setter does not throw the designed NotSupportedOperation exception
5817 when the object is built through deserialization.
5818 - Implemented GetObjectData
5820 * TableLayoutPanel.cs: Added check on LayoutSettings.
5822 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5824 * ListView.cs: Report Click and DoubleClick events to the parent
5825 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
5826 from breaking the click count state when using dialog forms (Control
5827 reports the clicks in a similar fashion). In the previous behaviour
5828 the last WM_LBUTTONUP message in a double click was sent to the
5829 ListView's form, instead of the ListView, which was breaking the click
5830 count for it. Fixes #80387.
5832 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
5834 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
5836 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
5838 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
5839 us from created dropdowns for menu items that do not have subitems.
5840 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
5841 Check HasDropDownItems before calling DropDown so a dropdown will not be
5842 created if it isn't needed.
5844 2007-04-24 Jackson Harper <jackson@ximian.com>
5846 * TreeView.cs: Set the first node to the selected node when we get
5847 focus if there is no selected node.
5849 2007-04-24 Andreia Gaita <avidigal@novell.com>
5851 * MimeIcon.cs: remove using blocks so that image streams are
5852 not disposed of. Fixes #80151
5854 2007-04-24 Jackson Harper <jackson@ximian.com>
5856 * TextBoxBase.cs: Fixup the height of textboxes when the control
5859 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
5861 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
5862 for each ToolStripItem when the parent's RightToLeftChanged is called.
5864 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5866 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
5868 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
5869 property, so that the setter can be overriden too.
5870 * TextBox.cs: Change GetContextMenuInternal() to use
5871 ContextMenuInternal.
5873 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5875 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5878 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5880 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5883 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5885 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
5886 avoid duplicate work. Mostily skeleton code, it's not working at
5889 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
5891 * NotifyIcon.cs : stub for MouseClick event
5892 * Application.cs: stub for SetUnhandledExceptionMode
5894 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
5896 * BindingNavigator.cs : Initial (partial) implementation
5898 2007-04-23 Jackson Harper <jackson@ximian.com>
5900 * TreeView.cs: Do not create the treeview's handle when setting
5901 the scroll position.
5902 - ExpandAll needs to compute the scrollbars so it knows which
5903 position to set the bar too.
5905 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
5907 2007-04-23 Jackson Harper <jackson@ximian.com>
5909 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
5912 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
5914 * ToolStripItem.cs: Make GetImageSize internal.
5915 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
5916 need to draw an item. Fixes a reported issue where images on menus
5917 that were not 16x16 were drawing incorrectly.
5919 2007-04-21 Miguel de Icaza <miguel@novell.com>
5921 * Padding.cs: Use the converter, fixes the resgen2 issue with
5924 2007-04-21 Jackson Harper <jackson@ximian.com>
5926 * TreeView.cs: Dont try to unhighlight the selected node if there
5927 isn't a selected node.
5929 2007-04-21 Jackson Harper <jackson@ximian.com>
5935 * TreeView.cs: Use the InternalBorderStyle property to set the
5936 initial border style, this forces the client rectangle to be sized
5939 2007-04-20 Jackson Harper <jackson@ximian.com>
5941 * TreeView.cs: Simplify scrolling to the last node after expanding
5943 - Fix some off by ones with setting the bottom.
5945 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
5947 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
5948 that. We were incorrectly doing it the other way around. Also,
5949 update ClientSize if we change the BorderStyle before the control
5952 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
5954 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
5955 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
5956 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
5957 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
5958 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
5959 Caption to CaptionHeight.
5960 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
5961 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
5962 and FixedFrameBorderSize to return value from current XplatUI driver.
5963 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
5964 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
5965 and FixedFrameBorderSize using win32 API. Renamed Caption to
5967 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
5968 * SystemInformation.cs: Fixed typo in BorderSize.
5970 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
5972 * XplatUI.cs: Added MenuAccessKeysUnderlined.
5973 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
5974 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
5976 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
5977 value from XplatUI driver.
5978 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
5979 SystemParametersInfo.
5980 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
5982 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
5985 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5987 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
5989 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5991 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
5993 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
5995 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
5996 MenuStrips that contain ToolStripSeparators.
5998 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6000 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
6001 DefineStdCursorBitmap.
6002 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
6003 has been created off a standard cursor. This is used to get a
6004 bitmap of the standard cursor when Draw or DrawStretched is called
6005 in order to draw the cursor.
6006 * X11Structs.cs: Added XcursorImage and XcursorImages.
6007 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
6008 DefineStdCursorBitmap.
6009 * Cursors.cs: Update all relevant creations of Cursor to use the new
6010 internal constructor.
6012 2007-04-19 Jackson Harper <jackson@ximian.com>
6014 * TextBox.cs: Move the has_been_focused into the base control, so
6015 some of the text adding methods can manipulate it (probably time
6016 for a better name for this flag too).
6017 - Call a new version of selectall that doesn't scroll
6018 * TextBoxBase.cs: When we append text, if the document is empty,
6019 don't scroll. If the document has text already, we scroll to the
6020 end of the appended text.
6021 - When the text is changed, we reset the has_been_focused, so the
6022 next time the control gets focused, all the text is selected.
6024 2007-04-19 Jackson Harper <jackson@ximian.com>
6026 * TextControl.cs: Move the margins to the document, add a method
6027 so the margin sizes can be updated.
6028 * TextBoxBase.cs: When the border style is changed, update the
6031 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
6033 * Control.cs: Respect DefaultPadding.
6034 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
6035 padding into account.
6036 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
6038 2007-04-19 Jackson Harper <jackson@ximian.com>
6040 * TextControl.cs: Oops, we need to use the ClientRect not the
6043 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6045 * ListView.cs: In ItemControl.ItemsMouseDown, take into
6046 account the double clicks when CheckBoxes are used and
6047 the pointer is inside the checkbox. Fixes part of #81191.
6049 2007-04-18 Jackson Harper <jackson@ximian.com>
6051 * TextControl.cs: Pressing the end key shouldn't move the caret
6052 past the line ending.
6053 * TextBoxBase.cs: We can still delete if we are in the line
6054 ending and the combine will just kill the existing line ending.
6056 2007-04-18 Jackson Harper <jackson@ximian.com>
6058 * TextControl.cs: We can't move lines, then invalidate their
6059 bounds, we need to get the old bounds and combine that with the
6061 * TextBoxBase.cs: Before combining two lines for a delete, we need
6062 to invalidate the area of the old line, since that will be moved
6063 in the combine operation.
6065 2007-04-18 Everaldo Canuto <everaldo@simios.org>
6067 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
6068 with transparent background. Fixes #80482.
6070 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
6072 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
6073 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
6076 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6078 * CreateParams.cs: Add a couple of helper methods and do a less string
6079 concatenation in ToString.
6080 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
6081 overload that takes a Control parameter, since this method may be
6082 called before a control is assigned to the hwnd (from
6083 CreateWindow), and update CreateWindow to use the new overload. In
6084 GetMenuOrigin subtract the title bar from the y position if the
6085 form has a window manager (since we're painting it and not X).
6086 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
6087 CreateParams to calculate the origin (since border sizes may vary).
6088 In ScreenToMenu only subtract the title height if we actually have
6090 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
6091 mdi children never have menus of themselves.
6092 * InternalWindowManager.cs: Implement menu handling like form does.
6093 Added GetMenuOrigin to calculate the menu origin, can't use the
6094 CreateParams from the form like normally since it's lying.
6095 * Hwnd.cs: Implement GetBorderSize better (in the sense more
6096 windows-like) and add Inflate and comparison operators to the
6097 Borders type. When calculating MenuOrigin and it's a form with a
6098 window manager, use the window manager to calculate it.
6100 2007-04-17 Chris Toshok <toshok@ximian.com>
6102 * Control.cs (CreateControl): turns out in 2.0 we don't need this
6103 OnBindingContextChanged thing here. It's only generated from
6104 ContainerControl.OnCreateControl. Fixes a newly written unit test
6105 - BindingTest.BindingContextChangedTest4.
6107 2007-04-17 Jackson Harper <jackson@ximian.com>
6109 * ScrollBar.cs: When setting values, make sure the current
6110 position stays within the new values range.
6112 2007-04-17 Chris Toshok <toshok@ximian.com>
6114 * Control.cs (CreateControl): talk about a bizarre corner case.
6115 Don't emit OnBindingContextChanged here if we're a parentless
6116 control (i.e. if we're a form.). Fixes
6117 BindingTest.BindingContextChangedTest2.
6119 2007-04-17 Everaldo Canuto <everaldo@simios.org>
6121 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
6122 from win32. Fixes #81255.
6124 2007-04-17 Everaldo Canuto <everaldo@simios.org>
6126 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
6127 already present in CalculateButtonTextAndImageLayout.
6129 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6131 * XplatUIX11.cs: When setting min/max size for a window we need to
6132 translate the coordinates to x coordinates. Create an overload of
6133 SetWindowMinMax that takes a CreateParams handling this, and change
6134 SetWMStyles to call this function (can't use Control.FromHandle in
6135 the SetWindowMinMax to get the control/CreateParams from the handle
6136 because the handle might not have been assigned to the control
6139 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6141 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
6142 if StateImageList is non-null and it has less than two items (match MS
6143 behaviour). Also, in HandleNavKeys handle the Space key, calling
6144 the new ToggleItemsCheckState method, which tries to change the
6145 checked state of the selected items. Fixes part of #81191.
6147 2007-04-16 Jackson Harper <jackson@ximian.com>
6149 * RichTextBox.cs: namespace cleanup.
6151 2007-04-16 Everaldo Canuto <everaldo@simios.org>
6153 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
6155 2007-04-16 Everaldo Canuto <everaldo@simios.org>
6158 * Control.cs: Call invalidate in set_Region.
6160 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
6163 2007-04-16 Jackson Harper <jackson@ximian.com>
6165 * TextBoxBase.cs: When enter is pressed, we need to update all
6166 lines below the current.
6168 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
6170 * MdiClient.cs: Implement implicit menu merging for MDI
6171 children. When a child form is active, if it has a menustrip
6172 and the parent form has a MainMenuStrip, automatically merge
6175 2007-04-15 Andreia Gaita <avidigal@novell.com>
6177 * TabControl.cs: Refactored sizing methods to not repeat
6178 code all over the place. Tab bounds are now calculated
6179 as if alignment is top and single line, and only when
6180 setting the bounds are the positions adjusted according
6181 to alignment. Replaced hardcoded positions, spacings and
6182 paddings by getting the values the ThemeEngine.
6185 * Theme.cs: Change TabControl properties and methods so
6186 that all start with TabControl*. Added more properties
6187 to help remove hardcoded values on tabcontrol.
6188 Add CPDrawBorder3D declaration so the Theming classes
6191 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
6193 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
6194 on the Theming namespace, and call the appropriate methods here.
6195 Change CPDrawBorder3D to public.
6197 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6199 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
6200 the control after firing the OnMouseUp event, instead of sending
6201 the message before the mentioned event. This is so we can match the
6202 MS behaviour. Fixes part of #80385.
6204 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
6206 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
6207 RightToLeft property.
6209 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
6211 * ToolStrip.cs: Add properties and internal methods to support merging.
6212 * ToolStripItem.cs: Add MergeAction and MergeIndex.
6213 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
6214 not trigger reparenting or layouts.
6215 * ToolStripManager.cs: Add Merge and RevertMerge methods.
6216 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
6217 is hosting the overflow menu.
6219 2007-04-13 Jackson Harper <jackson@ximian.com>
6221 * TextControl.cs: Set the line ending correctly for the first
6224 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
6226 * Theme.cs: Update GetMethod to get the new definition for
6227 KnownColors.Update (and fix theme color updates).
6229 2007-04-12 Everaldo Canuto <everaldo@simios.org>
6231 * MessageBox.cs: Fix some test and button position.
6233 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6235 * Form.cs: Consider the implicit controls in
6236 GetRealChildAtPoint. We need it since this method
6237 is called on Form when handling the some messages in
6238 WndProc, and need to consider those implicit ones too.
6241 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
6243 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
6244 if there are no ShortcutKeys set.
6245 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
6246 set, use it when painting.
6248 2007-04-12 Jackson Harper <jackson@ximian.com>
6250 * TextControl.cs: Fix some off-by-one issues in line duplication
6251 and insertion in the undo manager. Also, overwrite the first tag
6252 of a line on insert, if it is just a zero lengthed tag. This
6253 prevents us from getting an extra stranded tag at the beginning of
6256 2007-04-11 Everaldo Canuto <everaldo@simios.org>
6258 * Label.cs: Remove check for handle created in CalcAutoSize, we need
6259 to calculated proper size including when handle was not created yet.
6261 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6263 * MdiWindowManager.cs: When moving a form, allow the form to be moved
6264 when the mouse is outside of it's parent's client rectangle. Fixes
6265 #79982 (take 3, part 2).
6267 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6269 * X11Structs.cs: Add a few ToString() overrides.
6270 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
6271 the window location in a window-manager independent way. Reworked
6272 FrameExtents, it now actually works. Reworked AddConfigureNotify
6273 and ReparentNotify handling to use GetTopLevelWindowLocation
6274 instead of the earlier, more hacky solution. Reworked SetWMStyles,
6275 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
6276 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
6277 for all other windows (fixes #81281 part 1), a toolwindow is hidden
6278 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
6279 and generally refactored to do as few calculations as possible
6282 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
6284 * Theme.cs: Change "reflective-contract" between MWF and SD to
6285 minimize # of calls, avoid Color serialization and avoid updating
6286 every "known colors" each time a single one is updated.
6288 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
6290 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
6291 when not readonly and the text is explicitly set. Code style updates.
6292 * DataGridTableStyle.cs: Removed extra line.
6293 * DataGrid.cs: Code style updates. Removed extra whitespace.
6294 * DataGridColumnStyle.cs: Code style updates. Removed extra
6297 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6299 * XplatUIX11.cs: Added comment that "fixes" #80021.
6301 2007-04-09 Jackson Harper <jackson@ximian.com>
6303 * TextControl.cs: We don't need this -1 on the line count anymore.
6305 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
6307 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
6308 entered value to underlying type, and convert it back to a string to
6309 apply formatting. Modified GetFormattedValue to use TypeConverter
6312 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
6314 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
6315 Use SubItems property when we want to ensure there's at least one
6316 subitem. Modified SubItems property to ensure there's always at least
6317 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
6318 the NRE's reported by MS.
6320 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
6322 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
6323 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
6324 Spaces to tabs. Removed extra tabs.
6326 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
6328 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6329 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
6331 2007-04-06 Jackson Harper <jackson@ximian.com>
6333 * TextBoxBase.cs: When a delete removes a line, recalculate all
6334 lines below that line (they need to get offsets setup correctly)
6337 2007-04-05 Jackson Harper <jackson@ximian.com>
6339 * TextControl.cs: We need to invalidate across the width of the
6340 document when we are invalidating multiple lines.
6341 * TextBoxBase.cs: Don't delete into the line ending.
6343 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6345 * ListView.cs: Restore the check for the MouseHover event
6346 in ListView. It looks like the ListView fires more than one MouseHover
6347 event when HoverSelection is true _only_ in weird-corner scenarios, but
6348 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
6351 2007-04-05 Mike Kestner <mkestner@novell.com>
6353 * ListView.cs : raise MouseDown before updating selection.
6354 [Fixes #80373 tab 1&3]
6356 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
6358 * ToolStripRenderer.cs: Add static method to mirror image.
6359 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
6360 and RightToLeftAutoMirrorImage.
6361 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
6363 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
6365 * ToolStripSplitStackLayout.cs: Support Alignment property.
6366 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
6368 2007-04-05 Jackson Harper <jackson@ximian.com>
6370 * TextControl.cs: Move around the line endings when crossing line
6372 - When combining lines, strip the ending text off the first line.
6374 2007-04-05 Jackson Harper <jackson@ximian.com>
6377 * TextBoxBase.cs: Try to never move the cursor into the line
6380 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6382 * ToolStripItem.cs: Make sure we aren't firing mouse events when
6383 the item is disabled. Also add a few missing methods.
6385 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6387 * ListView.cs: We don't need the MouseEnter/MouseLeave check
6388 to fire just one MouseHover event when HoverSelection is true, since
6389 .Net does fire more than one MouseHover event in that scenario. Also,
6390 fix the selection in HoverSelection, by invoking UpdateMultiSelect
6391 if MultiSelect is true, instead of only setting ListViewItem.Selected.
6392 Finally, we need to reset the Hover logic in MouseMove, even when we
6393 don't have a selected item.
6395 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6397 * ToolStrip.cs: Add several missing methods, properties, and events.
6399 2007-04-04 Chris Toshok <toshok@ximian.com>
6401 * DataGridTextBoxColumn.cs: set the bounds of the text box to
6402 (0,0,0,0) in Commit, as MS does.
6404 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
6405 make sure we set CurrentRow on a row header click *before* calling
6406 Select. This moves the current cell (and the textbox) to the new
6407 row. The call to Select then hides the textbox, giving us the
6408 correct behavior. Fixes #80362.
6410 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
6411 (ListChangedHandler): reorder the position/current changed events,
6412 and call UpdateIsBinding in the ItemAdded case.
6414 * GridColumnStylesCollection.cs: add some columns events, one of
6415 which raises the CollectionChanged event.
6417 2007-04-04 Jackson Harper <jackson@ximian.com>
6419 * TextControl.cs: When we delete multiple selection lines
6420 invalidate the selection area, don't need to do that for single
6421 lines because the final update view will handle it.
6423 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6425 * Control.cs: When we CreateControl, we need to also create all of the
6426 control's children. The child's OnLoad must also fire before the parent's
6427 OnLoad. Fixes the toolbox size in PDN.
6429 2007-04-04 Jackson Harper <jackson@ximian.com>
6431 * TextBoxBase.cs: When the user presses enter, insert a line
6432 ending into the text. (Maybe this would be a good spot for
6433 Environment.NewLine).
6434 * TextControl.cs: Remove undo manager hack, line endings get
6435 inserted properly now.
6437 2007-04-04 Everaldo Canuto <everaldo@simios.org>
6440 - Remove unneeded parameters in UpdateCursor.
6441 - Fix UpdateCursor to check if menu is active.
6442 - Call UpdateCursor when menu deactivate my click.
6443 [Fixes remaining issues from #80410]
6445 2007-04-04 Everaldo Canuto <everaldo@simios.org>
6447 * Control.cs: GetRealChildAtPoint method added, it make an
6448 recursive child control search for the point.
6450 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
6453 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
6455 2007-04-03 Everaldo Canuto <everaldo@simios.org>
6457 * Form.cs: Fix mouse position when send back mouse event after closes
6460 2007-04-03 Everaldo Canuto <everaldo@simios.org>
6462 * Form.cs: Simplify the BUTTONDOWN for active tracker.
6464 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
6466 * Control.cs: Fix an issue where if a user resized a control inside
6467 a sizing method like OnResize, we would overwrite their explicit
6468 value. Also, only call DefaultSize once in the constructor instead
6469 of 4 times. Also, do not call SetBoundsCore from SetBounds if
6470 nothing actually changed.
6472 2007-04-03 Jackson Harper <jackson@ximian.com>
6474 * TextControl.cs: Don't attempt to copy text for lines with no
6475 text in them (technically this shouldn't happen, but we aren't
6476 always inserting line endings when we should be).
6478 2007-04-03 Jackson Harper <jackson@ximian.com>
6480 * TextBoxBase.cs: Calculate the scrollbars before calculating the
6481 document, because this sets some of the document size properties
6484 2007-04-03 Jackson Harper <jackson@ximian.com>
6486 * TextBoxBase.cs: We need to calculate maximums even if this is
6487 not a multiline control, because the maxs are used for scrolling.
6488 - Display the caret after doing a page up/down, we need to
6489 manually display it because a proper CaretMoved event isn't
6490 triggered (this is because of the way the math is done to
6491 determine how far to scroll).
6493 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
6495 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
6496 (ToolBar was relying on SetBoundsCore to default the values sent
6497 base off of BoundsSpecified.)
6499 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6501 * DateTimePicker.cs: Change Text so that when a null value or empty
6502 string is assigned to the test we always raise ValueChanged and
6503 TextChanged (earlier implementation would only raise ValueChanged
6504 if the current date value was different from DateTime.Now).
6506 2007-04-03 Andreia Gaita <avidigal@novell.com>
6508 * ButtonBase: Call update after invalidation, fixes #80194
6510 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6512 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
6515 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6517 * XplatUIX11.cs: SetWMStyles: If the control is a form with
6518 FormBorderStyle = None, don't give the window any decorations.
6521 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6523 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6524 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
6525 to check for is a mix of several styles (such as WS_CAPTION for
6527 * Control.cs: Don't paint an area bigger than the client area when
6528 painting the background colour. Add an internal GetCreateParams.
6529 Update calls to XplatUI.CalculateWindowRect due to API change.
6530 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
6531 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
6532 the size if it hasn't been handled by any windows. When creating
6533 and moving windows, X wants the location of the entire window, but
6534 the size of the client window, so add
6535 TranslateClientRectangleToXClientRectangle,
6536 TranslateWindowSizeToXWindowSIze and
6537 TranslatedXWindowSizeToWindowSize to cope with this, and call them
6538 before every window creation and move. Update CalculateWIndowRect
6539 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
6540 In AddConfigureNotify don't do anything if the hwnd is a zombie
6541 (fixes the BadWindow we were getting while running the tests),
6542 always calculate the offsets when it's a parentless window, not
6543 only when reparented, and translate the window size, since we're
6544 getting the client size of the whole window, excluding entire
6546 * Theme.cs: Added BorderSizableSize.
6547 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6548 anymore. Update calls to XplatUI.CalculateWindowRect due to API
6550 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
6551 change. Fake the window styles here instead of in XplatUIWin32 so
6552 that all back-ends get the same window styles (and it's Form that's
6553 deciding when to use wm, not the Win32 backend anyways)
6554 * Hwnd.cs: Completely reworked GetWindowRectangle and
6555 GetClientRectangle - they are now passed a CreateParams and they
6556 only use Style and ExStyle to determine the rectangles (they should
6557 now work just like Win32AdjustWindowRectEx - though quite a few
6558 special cases are probably missing). They should also be 100%
6559 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
6560 == rect), and all numbers (borders, menu sizes) are taken from the
6561 current theme. Added a GetBorders helper function that will return
6562 the borders for any given CreateParams (including captions and
6563 menus), and GetBorderSize that returns the given border size only.
6564 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6565 Hwnd.GetClientRectangle.
6567 2007-04-02 Chris Toshok <toshok@ximian.com>
6569 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
6570 logic between the values we present to the user and the values
6571 which are stored in the column's property. Also, don't call
6572 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
6574 2007-04-02 Jackson Harper <jackson@ximian.com>
6576 * TextBoxBase.cs: Scroll faster!
6578 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
6580 * StatusStrip.cs: Layout fixes for PDN.
6581 * ToolStrip.cs: Set item's available to true, and placement to main when
6583 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
6584 changing in setter before doing any work, add InternalVisible.
6585 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
6586 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6589 2007-04-02 Jackson Harper <jackson@ximian.com>
6591 * TextBox.cs: LBUTTON does not make the textbox select all of it's
6594 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6596 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
6597 Makes ToolStripComboBoxes show up again.
6599 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6601 * ListView.cs: Add a hover_pending field in ListView
6602 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
6603 cycle (we are resetting the MouseHover logic in XplatUI
6604 to handle HoverSelection). Fixes #80429.
6606 2007-04-02 Jackson Harper <jackson@ximian.com>
6608 * TextControl.cs: Make sure the attributes get set on the last
6610 - Still have to do the end tag if we have stepped all the ways to
6613 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
6615 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
6616 on an internal libgdiplus call when the information is already
6617 available via the public API.
6619 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6621 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
6622 control is removed from a control collecftion.
6623 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6624 Fixes FormPropertyTest (failed on rare occasions).
6625 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
6626 of Win32SetParent (when changing from no parent to a parent it
6627 might add the new parent's location in screen coordinates to this
6629 * Form.cs: Rework ChangingParent once again, now the handle is
6630 recreated whenever a FormWindowManager is added or removed (that is
6631 whenever a normal form is parented or abandoned). Also change
6632 CreateParams so that all non-toplevel windows always get the
6633 specified sice (StartupPosition is never considered for
6634 non-TopLevel forms).
6635 * ContainerControl.cs: Add ChildControlRemoved, the container control
6636 needs to be notified when a control is removed from it's
6637 collection, in the case the removed control is the active control.
6639 2007-04-02 Jackson Harper <jackson@ximian.com>
6641 * RichTextBox.cs: Use the new methods for setting the font and
6642 color, these methods set the specified attribute without
6643 overriding the other attributes.
6645 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
6647 * ToolStripPanel.cs: Fixes for better layouts in PDN.
6649 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
6651 * TextBox.cs: Added internal ChangeBackColor method to special-case
6652 Color.Empty. Added check for invalid ScrollBars value.
6653 * TextBoxBase.cs: Added internal ChangeBackColor method.
6654 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
6655 internal ChangeBackColor method to special-case Color.Empty. Added
6656 check for invalid ScrollBars value.
6658 2007-03-30 Everaldo Canuto <everaldo@simios.org>
6660 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
6662 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
6664 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
6665 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
6666 [Based on submitted patch from Olivier Duff.]
6668 2007-03-30 Jackson Harper <jackson@ximian.com>
6670 * TextBox.cs: Only select all on initial focus if the user has not
6671 specified a selection area.
6673 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
6675 * UserControl.cs: Override CreateParams.
6677 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
6681 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6682 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
6683 check for is a mix of several styles (such as WS_CAPTION for instance).
6684 * Control.cs: Don't paint an area bigger than the client area when painting
6685 the background colour. Add an internal GetCreateParams. Update calls to
6686 XplatUI.CalculateWindowRect due to API change.
6687 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
6688 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
6689 hasn't been handled by any windows. When creating and moving windows, X
6690 wants the location of the entire window, but the size of the client
6691 window, so add TranslateClientRectangleToXClientRectangle,
6692 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
6693 to cope with this, and call them before every window creation and move.
6694 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
6695 removing DeriveStyles). In AddConfigureNotify don't do anything if the
6696 hwnd is a zombie (fixes the BadWindow we were getting while running the
6697 tests), always calculate the offsets when it's a parentless window, not
6698 only when reparented, and translate the window size, since we're getting
6699 the client size of the whole window, excluding entire window.
6700 * Theme.cs: Added BorderSizableSize.
6701 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6702 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
6703 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
6704 Fake the window styles here instead of in XplatUIWin32 so that all
6705 back-ends get the same window styles (and it's Form that's deciding when
6706 to use wm, not the Win32 backend anyways)
6707 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
6708 they are now passed a CreateParams and they only use Style and ExStyle
6709 to determine the rectangles (they should now work just like
6710 Win32AdjustWindowRectEx - though quite a few special cases are probably
6711 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
6712 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
6713 sizes) are taken from the current theme. Added a GetBorders helper
6714 function that will return the borders for any given CreateParams
6715 (including captions and menus), and GetBorderSize that returns the given
6717 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6718 Hwnd.GetClientRectangle.
6720 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
6722 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
6723 layout of the mdi children is handled by CreateParams. Fixes
6726 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6728 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
6731 * Form.cs: When active tracker mouse down is not processed, send event
6732 back to control inside mouse position. [Fixes #81227]
6734 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
6736 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
6737 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
6738 stealing focus from the active form on Windows. (Control will be made
6739 visible in ShowWindow.)
6741 2007-03-29 Mike Kestner <mkestner@novell.com>
6743 * ImageList.cs : add internal Changed event.
6744 * ListView.cs : hook up to StateImageList.Changed to perform
6745 invalidations when the the state icon list changes. [Fixes #81191]
6747 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
6749 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
6750 to prevent tooltips from stealing focus from the active form on Windows.
6752 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6754 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
6756 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
6758 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6760 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
6763 2007-03-29 Jackson Harper <jackson@ximian.com>
6765 * TextControl.cs: When deleting text from non multiline textboxes,
6766 we need to update the entire document, because line offsets will
6769 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6771 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
6772 added to theme, now we can create themes that uses diferent notify engines
6773 like notification-daemon from galago project or growl for Mac OS.
6775 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6777 * NotifyIcon.cs: Prevent Balloon to show in task bar.
6779 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6781 * XplatUIX11.cs: Prevent system to open more than one balloon.
6783 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
6784 some compiler warning messages.
6786 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6790 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
6792 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
6793 implemented, this methods is used by NotifyIcon.BalloonWindow class.
6795 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
6798 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6800 * ListViewItem.cs: Forgot to make Invalidate internal.
6802 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6804 * ListView.cs: Add a InvalidateSelection method to
6805 invalidate methods which are currently selected, and call
6806 it when setting FullRowSelect and HideSelection, instead of
6809 2007-03-28 Chris Toshok <toshok@ximian.com>
6811 * XplatUIX11.cs (UnmapWindow): reindent this block.
6813 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
6814 the selection_start if we're moving the selection (that is, not
6815 extending it). Fixes bug #80461.
6817 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6819 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
6820 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
6821 create private ControlCollection.
6823 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6825 * Control.cs: We need to call OnVisibleChanged for our implicit
6826 children as well as our normal children. Fixes scrollbars in
6827 comboboxes not showing up.
6829 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6831 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
6832 the check for IsHandleCreated first. The check in CreateHandle is not
6833 good enough because CreateHandle can be overriden, and the override
6834 should not be called if the handle is already created.
6836 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6838 * ToolStrip.cs: Remove MonoTODO for tooltips.
6839 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
6840 * ToolStripContainer.cs: Add custom ControlCollection class.
6841 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
6842 * ToolStripDropDown.cs: Add some missing properties/methods.
6843 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
6844 * ToolStripItem.cs: Remove MonoTODO for tooltips.
6845 * ToolStripManager.cs: Add IsShortcutDefined.
6846 * ToolStripOverflow.cs: Override LayoutEngine.
6847 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
6848 * ToolStripSeparator.cs: Add ImageKey.
6850 2007-03-28 Jackson Harper <jackson@ximian.com>
6852 * TextControl.cs: If a char delete removes a line ending, we need
6853 to update the ending style.
6854 - Make sure the line ending calcs get called.
6856 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6858 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
6859 it was making the new code not work. Fixed a typo in the new code
6860 as well. Fixes #79826.
6862 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6865 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
6866 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
6867 - SystrayBalloon method implemented.
6868 [Add support for notifyicon balloon on win32, #79149]
6870 2007-03-27 Mike Kestner <mkestner@novell.com>
6872 * ThemeWin32Classic.cs : update StateImageList selection to mirror
6873 the ms behavior when only one image is added to the list.
6876 2007-03-27 Jackson Harper <jackson@ximian.com>
6878 * TextControl.cs: Improvements to non multiline line ending
6881 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6883 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
6885 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6888 - Balloon message handling added.
6889 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
6891 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6892 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
6893 to SystrayBalloon to me like other Systray method, also a
6894 handle parameter added.
6896 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6898 * ListView.cs: Show scrollbars even when items.Count == 0
6899 but the columns Width is bigger than the ListView.Width.
6900 Also, when columns.Count == 0 set layout_wd and layout_ht
6901 to the ClientRectangle values, so we don't show any scrollbar
6904 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6906 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
6908 2007-03-27 Jackson Harper <jackson@ximian.com>
6910 * RichTextBox.cs: The RTF library decodes the text properly for us
6913 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6915 * ListView.cs: Display HeaderControl even when columns.Count == 0.
6916 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
6917 ListView header (HeaderControl), instead of Control.BackColor.
6919 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
6921 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
6922 Fixes tab control issues where controls would not show up because they
6923 never received their OnVisibleChanged call.
6925 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6927 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
6930 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
6932 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
6933 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
6934 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
6935 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
6936 the handle. Fix WindowState by using the internal variable until we are
6937 sure that we've been shown.
6938 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
6942 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
6944 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
6945 (at least borders). Fixes #79386 on Linux (with a small difference
6946 in behaviour: when trying to resize a caption-less window metacity
6947 shows the sysmenu. Resizing is still possible though).
6948 * XplatUIWin32.cs: When setting window styles send request an extra
6949 WM_NCCALCSIZE when it's a form without title (due to no text and no
6950 caption), since Win32 seems to calculate it wrong the first time we
6951 get the message, though the second time things work as they should.
6952 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
6953 newly reparented window might show up unparented. Update
6954 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
6955 there's no title text. Fixes #79386.
6957 2007-03-27 Mike Kestner <mkestner@novell.com>
6959 * ListBox.cs : don't perform invalidations if the handle hasn't been
6960 created. [Fixes #80753]
6962 2007-03-27 Mike Kestner <mkestner@novell.com>
6964 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
6967 2007-03-26 Everaldo Canuto <everaldo@simios.org>
6969 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
6970 needed to implement Balloon.
6972 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6974 * ListViewItem.cs: In the constructors that take
6975 an array of strings, don't use ListViewSubItemCollection.AddRange
6976 method to add items, since we need to have a different behaviour (in
6977 the constructors we add an item for each null string, opposed to
6978 the behaviour of AddRange, which adds nothing).
6980 2007-03-26 Andreia Gaita <avidigal@novell.com>
6982 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
6984 2007-03-26 Jackson Harper <jackson@ximian.com>
6986 * TextControl.cs: Draw and measure line endings when in non
6988 - When searching the text, count the end of the last line as a
6991 2007-03-26 Jackson Harper <jackson@ximian.com>
6993 * RichTextBox.cs: The selection_start and selection_end don't
6994 really track the correct tags for the selection. So we'll manually
6995 compute the correct tag here.
6997 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6999 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
7000 and Continuous styles. Fixes #79469.
7002 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
7004 * ToolStrip.cs: Implement Tooltips.
7005 * ToolStripItem.cs: Create internal method for determining tooltip.
7007 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
7009 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
7011 2007-03-26 Everaldo Canuto <everaldo@simios.org>
7013 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
7014 it prevents a problem thak keeps icon visible after application
7017 2007-03-26 Everaldo Canuto <everaldo@simios.org>
7019 * NotifyIcon.cs: Balloon properties and methods created.
7021 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7022 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
7024 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
7026 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
7028 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
7030 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
7031 parameter indicates which aspects were explicit/user-set.
7032 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
7034 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
7036 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
7037 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
7038 SmallChange, and Value (2.0).
7039 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
7041 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7043 * ListView.cs: Always set item_control.Width in LayoutDetails
7044 if View is Details. Setting it later in CalculateScrollBars
7045 in a not-so-corner scenario (the sum of columns width is
7046 not bigger than the ListView width when handle is created, and then
7047 that sum gets bigger by increasing the width of the columns)
7048 causes a very weird recursion path (which shouldn't be happening,
7049 since header_control sets it in CalculateScrollBars too). This bug
7050 appeared after Chris' fixes for handle created issues, so probably
7051 it's related to some handle-creation time.
7053 2007-03-23 Chris Toshok <toshok@ximian.com>
7055 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
7056 case where there's an add row, just so we don't end up in a case
7057 where it's not displayed (this happens when the row is partially
7058 obscured). Fixes bug #79574.
7060 2007-03-23 Jackson Harper <jackson@ximian.com>
7064 * RichTextBox.cs: Preserve line endings in the lines text buffer,
7065 also added an enum that represents the line ending type.
7067 2007-03-23 Andreia Gaita <avidigal@novell.com>
7069 * NumericUpDown.cs: Fix logic so Text and Value properties are not
7070 messed with in every method call, but only from DownButton,
7071 UpButton, UpdateEditText() and ValidateText. Fixes #80346
7073 2007-03-23 Chris Toshok <toshok@ximian.com>
7075 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
7076 format objects if the format spec is "". Fixes bug #80889.
7078 2007-03-22 Miguel de Icaza <miguel@novell.com>
7080 * ToolStripPanel.cs (Join): added stubs to build PDN3
7082 * Control.cs (AutoScrollOffset): Add.
7084 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
7085 property, its only implemented for Win32, on X11 it defaults to
7086 some hardcoded value.
7088 * ToolStripItem.cs (AllowDrop): Add property
7090 2007-03-22 Mike Kestner <mkestner@novell.com>
7092 * ListView.cs : in FullRowSelect Details mode, only enable box
7093 selection if the user clicks over the "item" column outside of the
7094 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
7096 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7098 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
7099 handle is not created yet.
7100 * Form.cs: Select: Don't call CreateHandle if the handle is already
7101 created, avoids a stack overflow on Windows when we are recreating
7103 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
7104 they are made visible, and override AfterTopMostControl to keep
7105 them on top when other controls are brought to front.
7106 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
7107 or force_*scroll_visible is true (old implementation always shows
7108 scrollbars when needed, no matter what auto_scroll was set to).
7109 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
7110 IsHandleCreated check.
7112 2007-03-22 Andreia Gaita <avidigal@novell.com>
7114 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
7115 row or col separator.
7116 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
7118 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7120 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
7122 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7124 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
7125 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
7126 every time. Fixes #80410.
7128 2007-03-22 Chris Toshok <toshok@ximian.com>
7130 * BindingSource.cs (AddNew): partially implement.
7132 remove a couple of NotImplementedException's
7133 to get bug #81148 closed.
7135 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7140 - UpdateCursor method added to update the screen cursor.
7141 - GetAvailableCursor method added to return cursor for enabled tree,
7142 it searches for cursor on control and it's parent's for enabled control.
7143 - Call UpdateCursor method on setter of Cursor property.
7144 - On setter of Enabled call UpdateCursor when it is false, we need to
7145 change cursor to normal (or to this parent cursor) because cursor
7146 setting theres no effect to disabled controls.
7147 - Some minor source changes to follow the coding style guidelines.
7149 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
7152 2007-03-22 Chris Toshok <toshok@ximian.com>
7154 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
7157 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7159 * XplatUIX11.cs: Implement default locations for forms.
7160 * Form.cs: Completely rework startup location for forms. Fixes #79964.
7161 * Hwnd.cs: Add previous_child_startup_location (to track the current
7162 startup location for any child forms of the current form) and
7163 previous_main_startup_location (to track the startup location for
7164 the current toplevel form).
7166 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7168 * Control.cs: Don't trigger a layout if an implicit control is added
7169 that isn't visible. Also, don't notify the owner when an implicit control
7170 is added. (Owners shouldn't even know about their implicit controls.)
7172 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7174 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
7175 to save some re-layouts.
7177 2007-03-21 Everaldo Canuto <everaldo@simios.org>
7179 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
7182 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7184 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
7185 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
7187 2007-03-21 Mike Kestner <mkestner@novell.com>
7189 * ListView.cs : disable selection update for non-left button clicks
7190 with mods and over selected items. [Fixes #80524]
7192 2007-03-20 Jackson Harper <jackson@ximian.com>
7195 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
7198 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7200 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
7201 very probably a more complicated calculation there. Update the
7202 textbox' ForeColor and BackColor when the ComboBox' colors are
7203 changed. Change the border change in LayoutComboBox to only affect
7204 the textbox, not all the calculations there. Seems to fix most of
7207 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7209 * ComboBox.cs: Handle Home and End keys as well as all combinations of
7210 modifiers + navigation keys as input keys, enables advanced text
7211 selection in the combobox (like Shift+Left Arrow for instance).
7212 ComboTextBox now overrides Focused and returns whatever
7213 ComboBox.Focused returns, since it really should be focused
7214 whenever the ComboBox is. Fixes #80795. Also make the border around
7215 the text box one pixel bigger, as mentioned in #79436.
7217 2007-03-20 Jackson Harper <jackson@ximian.com>
7219 * TreeView.cs: Don't offset the images, this was causing some
7220 artifacts when expanding/collapsing with images that were the
7221 exact height of the treenode.
7223 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7225 * TrackBar.cs: Query the theme for the correct value when the mouse
7226 moves and the thumb is pressed.
7227 * Theme.cs: Added TrackBarValueFromMousePosition
7228 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
7229 implementation was updating the trackbar value when drawing, now
7230 the drawing methods only draw. Fixes #80900. Refactored the
7231 calculations out to TrackBarValueFromMousePosition and
7232 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
7233 according to the mouse position whenever it wants to. Changed the
7234 light coloured pen when drawing the thumb from ControlLight to
7235 ControlLightLight, because the ControlLight is the same colour as
7236 the background so the 3D effect is lost.
7238 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7240 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
7241 defined. Fixes #80784.
7243 2007-03-20 Marek Habersack <mhabersack@novell.com>
7245 * ContextMenuStrip.cs: align with the change introduced in
7248 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7250 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
7251 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
7254 2007-03-19 Chris Toshok <toshok@ximian.com>
7256 * Control.cs (WmPaint): don't make use of the Handle property
7257 after an event is emitted, as the user could have closed the
7258 form/destroyed the control. Store the Handle in a local variable
7259 and make use of that. Fixes bug #80768.
7261 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7263 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
7264 behavior in X11 environments.
7266 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7268 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
7269 because on setter of topmost we dont call SetTopmost when handle is not
7272 2007-03-20 Jackson Harper <jackson@ximian.com>
7274 * TextControl.cs: Need to use SelectionLength () not
7275 selection_length, since that var is reset to -1.
7276 - Draw the caret when we don't have focus.
7277 * TextBox.cs: The selectall actually doesn't occur until the first
7279 * TextBoxBase.cs: Need to update the caret position after a
7282 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7284 * ListView.cs: Enable scrolling when using Tile view.
7286 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7290 * XplatUIDriver.cs: Abstract SetOwner method created.
7292 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
7293 must be implemented and was masked as todo.
7295 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
7298 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
7299 cheking for null owner to remove transient. The SetTopmost will be change
7302 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
7303 SetTopmost. Now owned forms will work properly in win32 and X11.
7305 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7307 * MdiWindowManager.cs: Update function name.
7308 * Form.cs: After closing a form MdiParent is always null.
7309 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
7310 better what it should do: necessary book-keeping when the form is
7311 closed, it should not close the form itself.
7313 2007-03-19 Andreia Gaita <avidigal@novell.com>
7315 * ListViewItem.cs: Fix back and fore color. The subitems only
7316 use their own colors if they are set, otherwise use the listview's
7317 colors. Don't set default colors on constructor for subitem.
7320 2007-03-19 Mike Kestner <mkestner@novell.com>
7322 * ListView.cs : make box selection for Details views with
7323 FullRowSelect conform to MS behavior when clicking in the "item"
7324 column and clicking outside the defined columns.
7325 [Fixes case 5-6 of #80374]
7327 2007-03-19 Chris Toshok <toshok@ximian.com>
7329 * ScrollableControl.cs: create the controls from within the ctor,
7330 but don't actually add them until our handle is created. this
7331 fixes a NRE possibility jpobst found (if you override OnLayout in
7332 a subclass, it's called before your ctor). Also, add a
7333 IsHandleCreated guard to UpdateSizeGripVisibility as well.
7335 2007-03-19 Jackson Harper <jackson@ximian.com>
7337 * TextBox.cs: Reduce the amount of invalidation we do.
7338 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
7339 some of them are true by default on MS.
7340 - Add some functions to reduce the amount of invalidates we do.
7341 * TextControl.cs: Less invalidation.
7343 2007-03-19 Chris Toshok <toshok@ximian.com>
7345 [ Fixes #81773, and *seems* to fix #81553 as well ]
7347 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
7348 AccumulateDestroyedHandles. We need to do it *after* we send
7349 WM_DESTROY, as the user's code can access Control.Handle in
7350 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
7351 move the WM_DESTROY/zombie handling to before the call to
7352 XDestroyWindow. For some reason without this ordering
7353 FormTest.RecreateHandle hangs. This ordering is semantically
7354 equivalent, however, as XDestroyWindow is async anyway.
7356 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
7358 * RichTextBox.cs: Reset backcolor_set after setting default.
7360 2007-03-19 Chris Toshok <toshok@ximian.com>
7362 * ScrollableControl.cs: the scroll position should not effect the
7363 canvas size. commit patch from georgegiolfan@yahoo.com, which
7364 fixes some really bizarre behavior on resizing. Fixes bug #80778.
7366 2007-03-19 Chris Toshok <toshok@ximian.com>
7368 * ScrollableControl.cs: clean this up a bit. create the
7369 scrollbars in the ctor and just show/hide them as needed. Also,
7370 make hscroll_visible/vscroll_visible internal to Recalculate, and
7371 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
7372 everywhere else. This seems to fix the scrollbars appearing
7373 beneath the content for me (i have *no* idea why that is,
7376 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
7378 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
7379 some redundacy for stuff in Anchor and Dock that base will take care of.
7382 2007-03-19 Mike Kestner <mkestner@novell.com>
7384 * ListView.cs : make box selection for Details views without
7385 FullRowSelect dependent on the text bounds, not item bounds.
7386 * ListViewItem.cs : add an internal property to obtain the TextBounds
7387 in Details view. [Fixes case 1-4 of #80374]
7389 2007-03-19 Andreia Gaita <avidigal@novell.com>
7391 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
7392 we're < 2.0. #78448 && #80316
7394 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
7396 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
7397 have the same style available as the previously selected one. Also,
7398 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
7400 2007-03-19 Jackson Harper <jackson@ximian.com>
7402 * TextControl.cs: Add an alignment property that all new lines
7404 - Make sure to use the align shift when calculating the line's X
7406 * TextBox.cs: Set the alignment on the document as well as on all
7409 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7411 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
7412 throw if setting the parent of an mdichild that already has an
7413 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
7414 AssemblyProductAttribute in the assembly, use the type's namespace (as
7415 MS seems to do). CreateControl: don't create the handle if the control
7416 is not visible (according to MS behaviour and spec). SetTopLevel: Only
7417 create handle if the control is not a form. Change FocusInternal to
7418 virtual so that it can be overriden by Form.
7419 * TextBox.cs: Update call to FocusInternal.
7420 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
7421 form is not a toplevel form when it's a mdi child, so update is_toplevel
7422 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
7423 hasn't been created. Show (IWin32Window): Don't allow this overload for
7424 toplevel windows. CenterToParent/CenterToScreen/Select: create the
7425 handle as MS does. SetVisibleCore: if called on a MdiChild and the
7426 parent isn't visible yet, save the visibility and restore it when the
7427 parent is made visible.
7428 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
7429 methods, since the visibility of the scrollbars can be changed from
7430 several places, not only from AutoScroll.
7433 2007-03-19 Jackson Harper <jackson@ximian.com>
7435 * RichTextBox.cs: Enable shortcuts by default.
7436 * TextBoxBase.cs: Add conditional shortcuts.
7438 2007-03-19 Everaldo Canuto <everaldo@simios.org>
7440 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
7442 2007-03-19 Chris Toshok <toshok@ximian.com>
7446 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
7447 swallow the message we're waiting on, instead of delivering it, as
7448 this is only used for the WM_SHOWWINDOW raised from
7449 MapWindow/UnmapWindow, and the message needs to be generated
7450 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
7451 before doing the Map/Unmap. Also make sure that the Hwnd is still
7452 alive after the message has been handled.
7454 *before* the window is shown.
7456 * Control.cs (CreateControl): guard a few more things inside the
7457 if (!is_created) block, as we might end up being called again -
7459 (WmShowWindow): call CreateControl if we're showing the control.
7461 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7463 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
7464 controls without a handle if they have any parent with a handle. In
7465 Dispose add a check whether the handle is created or not before
7466 calling BeginInvoke, this removes the need of the extra disposing
7467 parameter (which was bogus anyway since it didn't prevent the
7468 invoke from happening, it only skipped the check for an existing
7469 handle, meaning that the invoke would call on an inexistent
7472 2007-03-19 Everaldo Canuto <everaldo@simios.org>
7474 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
7477 2007-03-18 Everaldo Canuto <everaldo@simios.org>
7480 - Fixed a problem that dont show help button for messages with 3 buttons.
7481 - Refactory button size and position calculations, now dont use fixed
7482 values, also fixed button sizes (#80043) and form's border space.
7483 - AddButton method created, now all other AddButton methods call this one.
7484 - Some other source code cosmetic changes.
7486 2007-03-18 Jackson Harper <jackson@ximian.com>
7488 * RichTextBox.cs: Don't do this all fonts must match check if
7489 there is only one char selected.
7491 2007-03-18 Jackson Harper <jackson@ximian.com>
7493 * TreeView.cs: ScrollWindow works properly now, so we don't need
7494 to screw around with the scroll area. This fixes some artifacts
7495 when expanding and collapsing.
7497 2007-03-18 Jackson Harper <jackson@ximian.com>
7499 * TextBoxBase.cs: Allow updating the selection position when the
7500 cursor is outside the textarea, but we have a capture.
7501 * TextControl.cs: A special case for when the cursor is outside
7502 the bounds of the TB.
7504 2007-03-18 Jackson Harper <jackson@ximian.com>
7506 * TextBoxBase.cs: Remove image pasting code for now. There is no
7507 way to get an image on the clipboard right now anyways.
7509 * RichTextBox.cs: Use the new RTF Picture class for pictures.
7511 2007-03-18 Everaldo Canuto <everaldo@simios.org>
7514 - Set window properties in constructor intead of on CreateParams.
7515 - Remove topmost from Window ExStyle.
7516 - Set ShowInTaskbar to false.
7517 - Set form border to FixedDialog.
7518 - Some cosmetic changes and remove unneeded comments.
7519 - It fixes itens 2,3 and 4 of bug #80043.
7521 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
7523 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
7524 none was explicitly set. Fixes part of bug #79949.
7526 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
7528 * ToolStripComboBox.cs: Add AutoComplete*.
7530 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
7532 * ToolStripComboBox.cs: Add FlatStyle.
7534 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
7536 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
7537 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
7539 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7541 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
7542 CheckBox.cs, RadioButton.cs, BindingSource.cs,
7543 DataGridColumnStyle.cs: Remove warnings.
7545 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7547 * Menu.cs: MergeMenu: Check menu argument for null before looping over
7549 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
7550 visibility of mdi child forms. FormSizeChangedHandler: update the
7551 maximized size if size has changed while maximized.
7552 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
7553 creating the handle.
7554 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
7555 avoid creating the handle if not created.
7556 * XplatUI.cs: Update debug output.
7557 * XplatUIStructs.cs: Added ToString's for a couple of structs.
7559 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
7561 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
7563 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
7564 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
7565 Implement keyboard shortcuts.
7567 2007-03-15 Everaldo Canuto <everaldo@simios.org>
7569 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
7570 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
7571 ColorDialog and all derived classes.
7573 2007-03-15 Everaldo Canuto <everaldo@simios.org>
7575 [ Fixes bug #79828 ]
7578 - Rename ToolBarButtonInfor to ToolBarItem.
7579 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
7580 - Maintain an array of ToolBarItem, used instead of ToolBarButton
7581 collection to be able add same button more than one time on a toolbar.
7582 - Refactory all properties and methods to use ToolBarItem.
7585 - Remove all propeties and methods that is now in ToolBarItem.
7586 - Rectangle propery now gets the rectangle from first ToolBarItem to
7587 mimic win32 behavior.
7588 - Size calculation and layout methods also removed.
7590 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
7591 ToolBarItem instead of ToolBarButton to right drawing buttons when
7592 same button/separator was added more than one time to ToolBar.
7594 * ThemeNice.cs: Same as above.
7596 2007-03-15 Andreia Gaita <avidigal@novell.com>
7598 * XplatUIX11.cs: Fire extra MouseMove events right after
7599 MouseDown and MouseUp, emulating win32's <censored> behaviour
7600 for apps that rely on it.
7602 2007-03-15 Jackson Harper <jackson@ximian.com>
7605 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
7606 it is drawn on the controls client window and there is no NC
7608 - Set the background color to gray on 2.0 when we are readonly.
7610 2007-03-15 Chris Toshok <toshok@ximian.com>
7612 [ Fixes bug #81144 ]
7614 * XplatUIX11.cs: implement VirtualScreen independently of
7615 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
7618 2007-03-15 Chris Toshok <toshok@ximian.com>
7620 * Hwnd.cs: add an internal field for the cached_window_state.
7622 * XplatUIX11.cs: cache the window state, invalidating the cache
7623 (and thus re-querying the X server) only when we see an update to
7624 the _NET_WM_STATE property.
7626 2007-03-15 Chris Toshok <toshok@ximian.com>
7628 * BindingSource.cs: get a lot of the unit tests working.
7630 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
7632 * Control.cs: Modify UpdateStyles to store distances when bounds >=
7633 0 instead of just bounds > 0. [Fixes bug #80912]
7635 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
7637 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
7640 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
7642 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
7643 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
7644 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
7645 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
7647 2007-03-15 Chris Toshok <toshok@ximian.com>
7651 * Control.cs: add Ivan's fix for 81101, with a slight modification
7652 - you can set control.Target to null.
7654 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
7656 * ToolStripItem.cs: If our OwnerItem is null, we can't use
7657 HideDropDown, use Hide instead to prevent an NRE.
7660 2007-03-14 Jackson Harper <jackson@ximian.com>
7662 * TextBoxBase.cs: Mess with the creation stuff a little. We need
7663 to calculate the document before the handle is created, in some
7664 cases. (Actually just one case).
7666 2007-03-14 Jackson Harper <jackson@ximian.com>
7668 * TextBoxBase.cs: Need to display the caret after letting the base
7669 wndproc handle the focus methods, because the caret display
7670 methods check the focus state.
7671 - Try to display the caret after updating it's position with SelectWord.
7672 - Don't need to do an immediate update on this recalc, since there
7673 will be an invalidate anyways.
7675 2007-03-14 Jackson Harper <jackson@ximian.com>
7677 * TreeView.cs: Some workarounds so that we can match event order a
7680 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
7682 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
7683 #80803. Avoid NullReferenceException when Control does not have
7684 parent. Fixed different blinkstyle issues. Only subscribe to Tick
7685 event a single time. Only draw error icon when control is created and
7686 visible. Fixes failing unit tests.
7688 2007-03-14 Andreia Gaita <avidigal@novell.com>
7690 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
7691 Selecting events. Fire Leave and Enter events when changing tabs.
7693 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
7695 * TreeView.cs: Add TreeViewNodeSorter.
7696 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
7698 2007-03-14 Chris Toshok <toshok@ximian.com>
7700 * Form.cs: go ahead and remove the RecreateHandles that jpobst
7701 removed earlier and I had him add back it. It turns out metacity
7702 *does* in fact handle the MOTIF_WM_HINTS property changing, it
7703 just doesn't redraw the window titlebar until you resize the
7704 window. This also means we aren't recreating the entire window
7705 hierarchy on X when you change this property. And it looks better
7708 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7711 * ListView.cs: Collecting selection information
7712 is now done in SelectedIndexCollection rather than in
7713 SelectedListViewItemCollection. This is done so we can
7714 have the selection information code in one single place
7715 (virtual mode selection information entirely depends on
7716 SelectedIndexCollection).
7718 2007-03-13 Miguel de Icaza <miguel@novell.com>
7720 * ErrorProvider.cs: Add stubs for ISupportInitialize
7722 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7724 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
7725 in the right order with the right values, from the Checked property,
7726 just as MS does (instead of triggering them from ListView).
7728 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
7730 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7732 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
7733 the correct handler in OnItemCheck method (ItemCheckEventHandler
7734 instead of EventHandler). This used to throw an InvalidCastException.
7736 2007-03-13 Jackson Harper <jackson@ximian.com>
7738 * TextBoxBase.cs: Calculate the document before the handle is
7739 created, so there isn't an extra invalidate called.
7741 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
7743 * Form.cs: Don't set owner in ShowDialog until we are sure
7744 that we aren't going to throw an exception. [Fixes bug #80773]
7746 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
7748 * TreeView.cs: Make it compile.
7750 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7752 * Control.cs: Another place we don't call SizeFromClientSize.
7753 * Form.cs: Another place we don't call SizeFromClientSize.
7756 2007-03-12 Jackson Harper <jackson@ximian.com>
7758 * TreeView.cs: Basically emulating some strangness here with
7759 exanding nodes and setting node positions when windows aren't
7761 - Also attempting to walk the node tree less than previously, and
7762 just use visible order calculations for determining offsets.
7763 - oops made scrolling backwards.
7764 * TreeNode.cs: We need to start nodes with a zero visible order,
7765 because the order calcs are based on the first nodes order.
7767 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7769 * Form.cs: Don't exit the program if RecreateHandle is called on
7772 2007-03-12 Chris Toshok <toshok@ximian.com>
7774 * XEventQueue.cs: remove the use of PostQuitState.
7776 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
7777 WM_QUIT message in GetMessage, return false (and if we're in the
7778 nested WaitForHwndMessage, repost the WM_QUIT message).
7780 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7782 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
7783 or the MaximizeBox properties. [Part of bug #80640]
7785 2007-03-12 Everaldo Canuto <everaldo@simios.org>
7787 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
7790 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7792 * ToolStripItem.cs: Fix some tests I broke by checking Visible
7795 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
7797 * FileDialog.cs: Use text of File name combobox to determine what
7798 files the user selected. Added tokenizer to parse the file names.
7801 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7803 * Control.cs: We can't call SizeFromClientSize in the constructor,
7804 but we still need to do the same work, so make an internal version.
7807 2007-03-12 Jackson Harper <jackson@ximian.com>
7811 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
7814 2007-03-12 Jackson Harper <jackson@ximian.com>
7816 * TextBoxBase.cs: Now that the handles are being created a little
7817 later, we need to make sure that the document is recalculated when
7818 the handle is created.
7820 2007-03-11 Everaldo Canuto <everaldo@simios.org>
7822 * Theme.cs: GetLinkFont abstract method added.
7825 - Remove CalcTrimRectangle, no longer needed.
7826 - Factor also remove, position issues must be fixed in libgdiplus.
7827 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
7828 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
7829 care about font used to draw links.
7830 - Set TabStop to true when control is "Selectable", control is selectable
7831 when have one or more links. Fixes #80501 (test case is also added).
7832 - Set the LinkArea values after links change, LinkArea values must be
7833 based in first link position and size, a test case was created.
7834 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
7835 the attribute must be true LinkArea.Length > 0. The same was applied to
7838 * ThemeWin32Classic.cs:
7839 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
7841 - Use CPDrawStringDisabled to draw disabled text instead of hard code
7843 - Draw focus rectangle for every parts focused, including parts that
7844 is on another line, its because regions returns various rectangles
7845 and not only one. Needed to mimic W32 look.
7846 - Uses Graphics.Clip to delimite region painted, it mean that now
7847 complete text is passed to DrawString, with this we solve layout
7848 issues without create another text renderer.
7849 - Uses Region.Intersect to fix some flickers problems, now only needed
7850 parts will redrawed.
7851 - This changes fixes #79614 and some other unreported issues, on Linux
7852 some layout problems still remain, the problem is under
7853 MeasureCharacterRanges but it is an libgdiplus bug.
7855 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
7857 * TextBox.cs: Set for foreground color.
7858 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
7859 this is already done in Control.
7861 2007-03-10 Jackson Harper <jackson@ximian.com>
7863 * TextBox.cs: Set the background color, but reset the
7864 backcolor_set flag which is just for the user setting the
7867 2007-03-09 Chris Toshok <toshok@ximian.com>
7869 * Control.cs: really remove the call to XplatUI.SetVisible from
7870 CreateHandle(), like I said I did when I merged the branch.
7872 * BindingSource.cs: implement some more of this stuff.
7874 2007-03-09 Jackson Harper <jackson@ximian.com>
7876 * TextBox.cs: Don't explicitly set our background colors.
7878 * TextBoxBase.cs: Draw readonly text.
7879 - Need to invalidate when backcolor or readonly are changed.
7881 2007-03-09 Jackson Harper <jackson@ximian.com>
7883 * TextBoxBase.cs: Don't set the forecolor until the handle is
7885 - Do not raise OnPaint, and removed some old debug code.
7887 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
7889 * ScrollableControl.cs: Fix mouse wheel scrolling.
7891 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
7893 * Control.cs: Wire up MouseDoubleClick event.
7895 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
7897 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
7899 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
7900 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
7901 item is added. This logic was moved to ToolStrip.OnItemAdded.
7904 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7906 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
7908 2007-03-08 Jackson Harper <jackson@ximian.com>
7910 * TreeView.cs: Show the correct image for selected node (this used
7911 to work, not sure how the code got deleted). Also implemented 2.0 feature
7914 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7917 * ListViewItem.cs: Cache index in items when retrieving them
7920 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
7922 * ToolStripItem.cs: Don't return the explicit_size if we are using
7923 AutoSize. Fixes invalidation issue when user has explicitly set a
7924 size and has AutoSize = true.
7926 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
7928 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
7930 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
7932 * DataGridView.cs: Remove event handler from DataView when a
7933 DataTable is used as DataSource.
7935 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
7937 * Control.cs: Create internal setter for client_size to allow it to be
7938 set without triggering resizing code.
7939 * Form.cs: Calculate client_size in constructor, only change client_size
7940 in FormBorderStyle property if Handle has been created.
7941 [Fixes #80574, #80791]
7943 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
7945 * SystemInformation.cs: Add TerminalServerSession.
7947 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
7949 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
7952 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
7954 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
7955 Handle before we were supposed to. Now checks ActivateOnShow property
7957 * Control.cs: Add internal ActivateOnShow property.
7958 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
7960 * Hwnd.cs Remove no longer needed no_activate field.
7962 2007-03-07 Jackson Harper <jackson@ximian.com>
7964 * TreeView.cs: Implement owner draw tree nodes. And a couple more
7966 * DrawTreeNodeEventHandler.cs: Add
7967 * DrawTreeNodeEventArgs.cs: Correct default value.
7969 2007-03-07 Chris Toshok <toshok@ximian.com>
7971 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
7972 to be called before NativeWindow.WndProc. Put the HwndCreating
7973 magic there to hook up our Hwnd's to handles.
7975 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
7977 * DataGridView.cs: Comment out debug code.
7979 2007-03-07 Chris Toshok <toshok@ximian.com>
7981 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
7982 to make the rest of the world happy]
7984 * Control.cs (CreateHandle): there's no need to call
7985 XplatUI.SetVisible here, it's effectively done by
7986 XplatUI.CreateWindow on X now, and always was on windows.
7988 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
7989 shortcircuit out of the loop if we have a message loop running on
7992 [Changelog from merge]
7994 2007-03-05 Chris Toshok <toshok@ximian.com>
7996 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
7997 causes handle creation.
7999 2007-02-28 Chris Toshok <toshok@ximian.com>
8001 * ApplicationContext.cs: Add a flag to make sure we only raise the
8002 ThreadExit event once (ExitThreadCore can be indirectly called
8003 from a few places.) I don't like the additional flag, but it
8004 makes the event ordering/count correct.
8006 * Application.cs (MWFThread.LoopCount): don't use an enumerator
8007 without locking the collection. An enumerator doesn't give us any
8008 protection from modification anyway. Lock the thread hash and
8009 replace the complicated enumerator loop with a foreach.
8010 (Application.CloseForms): make internal so it can be called from
8011 ApplicationContext. This should probably be moved to MWFThread.
8012 (Application.ExitThread): don't call MWFThread.Current.Exit()
8013 here. just call XplatUI.PostQuitMessage. We'll exit the thread
8014 when the runloop exits (in response to WM_QUIT.)
8015 (Application.RunLoop): add a comment (and check) for
8016 context.MainForm being null after setting context.MainForm.Visible
8017 = true. This is because you're perfectly free to dispose of a
8018 form in VisibilityChanged. Chalk this up to another case where we
8019 need to synchronously generate WM_ACTIVATE from Control.Show.
8020 Also, add handling for WM_QUIT here so we'll exit the loop.
8022 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
8023 fact that we don't wait if we're only unmapping the whole_window
8024 makes me a bit nervous, but it doesn't seem to cause any problems
8027 also, add a comment about the stupid, broken and wrong resetting
8028 of PostQuitState to false in GetMessage().
8030 In PostQuitMessage, we need to add a WM_QUIT message to the
8031 thread's queue. We use the FosterParent to get the right
8034 Lastly, in SetVisible, we need to unmap both windows, since the
8035 waiting only happens when we're unmapping the client window. So
8036 now, the *only* time we unmap just the whole_window is in the hack
8037 for resizing a control to 0,0.
8039 2007-02-21 Chris Toshok <toshok@ximian.com>
8041 * Application.cs (CloseForms): rewrite this so that we don't
8042 modify the list while we're traversing it.
8044 2007-02-20 Chris Toshok <toshok@ximian.com>
8046 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
8048 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
8049 handle is created. otherwise we'll create it here.
8050 (VerticalScrollEvent): same here.
8052 * Application.cs (CloseForms): call Form.Dispose, don't post
8055 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
8056 here. Application should Dispose() of the Form's.
8058 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
8060 (MapWindow,UnmapWindow): only actually do the waiting for
8061 SHOWWINDOW if the control we're dealing with is a Form.
8062 (CreateWindow): if the control isn't a form, SendMessage
8063 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
8065 * Control.cs (SetVisibleCore): always use is_visible here, not
8066 value. If we use value, we can end up re-setting something
8067 visible if, for instance, you do Control.Hide() in a delegate
8068 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
8070 2007-02-20 Chris Toshok <toshok@ximian.com>
8072 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
8073 the message we need. PeekMessage returning false should not be a
8074 condition under which we exit the loop.
8076 2007-02-15 Chris Toshok <toshok@ximian.com>
8078 * Control.cs (Refresh): only refresh if we've got a handle and are
8080 (CreateAccessibilityInstance): CreateControl() here.
8081 (UpdateChildrenZOrder): complicate the code loop even more by
8082 taking into account controls that haven't had their handle
8083 created, and those that aren't visible. But on the flip side,
8084 simplify the code by splitting it into two loops. one which
8085 builds up the list of child controls we're interested in, and the
8086 other that sets the z order of those children.
8088 2007-02-14 Chris Toshok <toshok@ximian.com>
8090 * Control.cs: Control.AccessibilityObject causes the control to be
8091 created, not just the handle.
8093 2007-02-14 Chris Toshok <toshok@ximian.com>
8095 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
8096 problem on X where a window might have its handle created (and be
8097 visible) while the window is unmapped. calling XConfigureWindow
8098 on an unmapped window is bad, and generates X errors.
8100 2007-02-13 Chris Toshok <toshok@ximian.com>
8102 * Control.cs (CreateHandle): don't loop over our children setting
8103 their parent here. do it when in WndProc when we're shown.
8104 (UpdateChildrenZOrder): make this internal so we can call it from
8106 (WndProc): for WM_SHOWWINDOW, reparent the child control after
8107 creating its handle. Also, remove the calls to PerformLayout from
8108 here. they're done in ScrollableControl.OnVisibleChanged. Also,
8109 OnVisibleChanged only seems to be called directly here for the
8110 toplevel control. It's propagated down the window hierarchy by
8111 calls to child.OnParentVisibleChanged.
8112 (OnVisibleChanged): don't do layout here - it's done (oddly
8113 enough, according to a glance at stack traces on ms.net..) in
8116 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
8117 z order of our children before calling PerformLayout.
8119 2007-02-12 Chris Toshok <toshok@ximian.com>
8121 [big change, fixes #80020]
8123 * AccessibleObject.cs: we need to make owner internal again to fix
8124 some of ControlAccessibleObject.
8126 * Control.cs: lots of changes here. add support for WM_CREATE,
8127 for which we generate OnHandleCreated. Remove the OnHandleCreated
8128 call from CreateHandle. Also add support for WM_SHOWWINDOW where
8129 we create child controls. leave the MonoTODO's for the
8130 accessibility calls, but fix the exceptions so the tests pass.
8132 Add the InvalidOperationExceptions to Invoke methods, and remove a
8133 couple of InvokeInternal methods we aren't using.
8135 Also, add a couple of CreateHandle calls in places where we know
8136 the handles are being created but our code doesn't reference
8139 Make SetVisibleCore call OnVisibleChange if the handle isn't
8140 created. If the handle is created, we rely on XplatUI.SetVisible
8141 generating the event synchronously.
8143 Lastly, make sure we don't use this.Handle inside CreateHandle,
8144 because we can call back into client (and that code can dispose of
8147 * XplatUIStructs.cs: misc/cleanup.
8149 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
8150 although we don't populate the wParam properly.
8151 (CreateWindow): generate WM_CREATE.
8152 (MapWindow,UnmapWindow): make these calls synchronous, at great
8153 performance expense (particularly in the unmap case), to match
8156 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
8158 (set_MdiParent): don't recreate the handle unless it's been
8161 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
8164 * NativeWindow.cs: this is probably the weirdest part of the
8165 patch. We need a way to link up the window being created to the
8166 WM_CREATE message. Since we can only be creating one window at a
8167 time on a given thread, we keep track of a per-thread reference so
8168 we can dispatch it properly. We also need to keep track of the
8169 Hwnd currently being created so that the win32 backend doesn't
8172 * XplatUIWin32.cs: a similar change to the one we made in
8175 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
8177 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
8178 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
8179 to draw the menu shortcut string.
8181 2007-03-07 Jackson Harper <jackson@ximian.com>
8183 * TreeNode.cs: Add the 2.0 collapse method.
8185 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8187 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
8189 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8191 * DataGridView.cs: Change DataSource will clear column and row
8192 lists. Call Invalidate() to reflect DataSource change.
8194 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8196 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
8197 and a new row is added to it.
8199 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8201 * DataGridView.cs: Add columns when DataSource is en empty list but
8202 is a System.Data.DataView (from a System.Data.DataTable).
8204 2007-03-06 Andreia Gaita <avidigal@novell.com>
8206 * Label.cs: Implement AutoEllipsis (2.0)
8208 2007-03-06 Jackson Harper <jackson@ximian.com>
8210 * TreeView.cs: Implement 2.0 TopNode setter property.
8211 - Use a local var instead of the skipped_nodes field for computing
8212 how many nodes to skip. Otherwise we won't scroll because the
8213 valuechanged handler checks if skipped_nodes is equal to the new
8215 - Implement 2.0 Sort method.
8216 - Add useless 2.0 DoubleBuffer property
8217 - Implement 2.0 LineColors property. Lets you change the color of
8218 the lines in the tree. Terribly useful for creating non cohesive
8220 - Implement 2.0 image key feature.
8222 2007-03-06 Jackson Harper <jackson@ximian.com>
8224 * TreeView.cs: We can't get the bounds of the nodes before raising
8225 the AfterSelect event, because that event could change the node's
8226 bounds (scrolling, font change, etc).
8228 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8230 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
8231 * Form.cs: Don't recreate handle when creating FormWindowManager, just
8232 update window styles. In CreateParams us VisibleInternal instead of
8233 VIsible to get the actual visible flag set for this form.
8234 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
8235 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
8236 handle the case when the form is already maximized, in which case
8237 it should be restored. Fixes #81043.
8239 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8241 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
8243 2007-03-05 Jackson Harper <jackson@ximian.com>
8245 * TreeViewHitTestInfo.cs: implement.
8247 2007-03-05 Jackson Harper <jackson@ximian.com>
8249 * InternalWindowManager.cs: class status fix.
8251 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
8253 * InternalWindowManager.cs: All windows that have a parent
8254 are confined to their parent when they're being moved.
8257 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
8259 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
8260 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
8262 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8264 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
8265 buttons invisible before deciding which ones should be visible
8266 (fixes minimize/maximize buttons showing up in toolwindows). Remove
8268 * InternalWindowManager.cs: Remove warning.
8270 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8272 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
8273 to throw an InvalidOperationException is virtual mode is being used.
8275 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
8277 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
8278 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
8279 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
8280 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8281 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
8282 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
8284 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8286 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
8287 driver.KeyboardDelay from XplatUI.KeyboardDelay
8288 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
8289 (patch by Sergey Volk)
8291 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8293 * ToolWindowManager.cs: Added, contains logic for
8295 * CreateParams.cs: Add a few helper methods and an
8296 internal variable to know which control the CreateParams belongs
8298 * Control.cs: Call Form.ChangingParent when the
8299 parent is about to be changed.
8300 * XplatUIX11.cs: DeriveStyles (): Set
8301 caption_height for all windows that have captions and are children.
8302 Update to use ToolWindowManager instead of InternalWindowManager
8304 * XplatUIWin32.cs: Set fake window styles for all
8305 windows that have window managers.
8306 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
8307 now duplicated for mdi windows when they are
8308 maximized, first for the buttons the window itself has, then for
8309 the buttons that appear in the menu bar. Makes things a little
8310 easier). Updated UpdateWindowDecorations, SetWindowState and the
8311 mouse eventhandlers accordingly.
8312 * Form.cs: Add ChangingParent (), contains the
8313 logic of what should happen when the parent changes. In MdiParent
8314 don't set things that ChangingParent () is doing. When handling
8315 WM_CLOSE, we can close the form if there are any other modal forms
8316 and the current form is a descendent of the modal form.
8317 * InternalWindowManager.cs: A lot of refactoring,
8318 the title buttons are now extracted to a separate container class
8319 that takes care of all button code (clicks, tooltips, etc). Moved
8320 Iconic|Maximized|Normal Bounds properties to this class from
8321 MdiWindowManager, so that the window state logic can succeed for
8322 other than mdi wm's. Implemented general window state change logic.
8323 Moved CreateButtons to ThemeWin32Classic, since the theme might
8324 override which buttons are available when as well as the exact
8326 * FormWindowManager.cs: Added, contains logic for
8328 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
8329 which buttons go where (and if they are at all visible).
8330 Removed special handling of maximized windows, since they aren't special.
8331 In DrawManagedWindowDecorations don't try to draw the text if it is
8333 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
8334 use whatever the wm gives us.
8336 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
8338 * ButtonBase.cs: Add 2.0 properties.
8339 * Button.cs: Override Draw for 2.0.
8340 * Control.cs: Add Entered and Selected properties.
8341 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
8342 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
8343 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
8345 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
8347 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
8349 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
8351 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
8353 * XplatUIWin32.cs: Register a new class with Windows each time we get
8354 a new ClassStyle. [Fixes bugs #79432, #80817]
8355 * Controls.cs: Set the correct ClassStyle in CreateParams.
8356 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
8358 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
8360 * ListView.cs: Add fireEvent argument to ReorderColumn since the
8361 ColumnReordered event must not be signaled when modifying DisplayIndex
8362 of a ColumnHeader. Added internal ReorderColumns method which takes
8363 care of drawing, and updating the internal DisplayIndex of the
8364 ColumnHeader. Added AddColumn method which is invoked from
8365 ColumnHeaderCollection when adding or inserting columns, and which
8366 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
8367 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
8368 Recalculated dispay indices after removing a ColumnHeader.
8369 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
8370 match MS. Allows last display index to be returned after ListView
8371 is disposed. Update actual location of ColumnHeader when DisplayIndex
8374 2007-03-01 Everaldo Canuto <everaldo@simios.org>
8376 * LinkLabel.cs: Improve CalcTrimRectangle.
8378 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
8380 2007-02-28 Everaldo Canuto <everaldo@simios.org>
8382 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
8383 get rectangle as a result value.
8385 2007-02-28 Everaldo Canuto <everaldo@simios.org>
8387 * LinkLabel.cs: Theres some diferences between rectangle return from
8388 MeasureCharacterRanges and the area used for DrawString to fix this
8389 CalcMeasurementFactor method was created, it calcules the diferences
8390 to be use later to adjust rectangle in draw operations. Fixes #80473.
8392 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
8393 to adjust draw rectangle.
8395 2007-02-27 Everaldo Canuto <everaldo@simios.org>
8397 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
8398 text and some other changes to reduce and optimize source code.
8400 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
8402 * RadioButton.cs: Implement 2.0 event.
8403 * RelatedImageListAttribute.cs: Implement new class.
8405 2007-02-27 Everaldo Canuto <everaldo@simios.org>
8407 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
8409 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
8411 * CheckBox.cs: Implement 2.0 functionality.
8413 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8415 * ListView.cs: Refactor Add and AddRange methods of
8416 ListViewItemCollection, to not update the ListView
8417 everytime an item is added in AddRange. Also move the update
8418 code to a new CollectionChanged method, and call it
8419 from other methods that need it as well (this should also fix some
8420 bugs when Sorting is used).
8422 2007-02-27 Jackson Harper <jackson@ximian.com>
8424 * TextControl.cs: Try to never let the caret stay in a non-text
8426 * TextBoxBase.cs: Update the caret.
8428 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
8430 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
8431 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
8432 delete POINT structure, duplicate of one in XplatUIStructs.
8433 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
8435 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
8437 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
8438 edit box since otherwise the Label would immediately be set (even if
8439 the user did not modify the label). In OnKeyDown set Handled to true
8440 if Return or Escape was pressed. In ColumnHeaderCollection unlink
8441 columns that are to be removed. In ListViewItemCollection unlink items
8442 that are to be removed.
8444 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
8446 * TextRenderer.cs: If we set a GDI clip region, we need to clear
8447 it when we are done. [Fixes bug #80949]
8449 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8451 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
8453 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8455 * ListView.cs: I forgot to commit the changes for ListView
8456 in my previous patch.
8458 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8460 * Clipboard.cs: Partially implement an overload of SetDataObject.
8461 * Form.cs: Implement ShowWithoutActivation.
8462 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
8464 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8466 This is a first set of changes to make the Virtual mode works,
8467 by avoiding the retrieval of ListViewItem instances until
8470 * ListView.cs: Store item position in the ListView instead of the
8471 ListViewItem, this way we don't request the Bounds property of
8472 ListViewItem inside the ListView calculations, as well as cache the item
8473 size in item_size field. Store indexes instead of ListViewItem
8474 instances in the matrix used by icon view. Add a ItemMatrixLocation
8475 struct to hold the row and col info of the matrix info.
8477 * ListViewItem.cs: Don't store the location anymore, and only cache
8478 the rectangles for GetBounds. Use the ListView.GetItemLocation
8479 method to retrieve the actual location.
8481 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8483 * TextRenderer.cs: Add clipping support, thanks to George.
8486 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8488 * ListViewItem.cs: Cancel label edit when item is removed from
8490 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
8491 event before the edit textbox is displayed. Added CancelEdit method
8492 which is used end to editing while ignoring the value set by the
8493 user. In EndEdit, set focus to ListView to avoid losing focus to
8494 other controls. In ListViewItemCollection.Clear, cancel editing of
8495 any of the items. In Remove, cancel editing of item being removed.
8496 Avoid udplicate code by modifing RemoveAt to invoke Remove.
8498 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8500 * FileDialog.cs: Update FSEntry when move is successful. Fixes
8503 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8505 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
8506 compatible with non X11 systems. Fixes #80901.
8508 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8510 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
8511 whether the item should be unselected and reselect. We do no want this
8512 when we're starting to edit the label. Do not fire the
8513 SelectedIndexChanged event from ListView when its already been fired
8514 by modifying ListViewItem.Selected. Fixes bug #80943.
8516 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8518 * TextRenderer.cs: Previos commit logic was backwards.
8520 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8522 * TextRenderer.cs: Don't add padding on MeasureText if we were
8523 sent the NoPadding flag.
8525 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8527 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
8528 after DrawButton. To prevent image overlaps button borders SetClip and
8529 ResetClip added before and after draw image. Fixes #79129.
8531 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8533 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
8534 window size, it fix problem when you run under win32 that theres
8535 Size diferent than ClientSize. Also fix controls size and positions
8536 to mimic Win32. Fixes #80837.
8538 2007-02-22 Everaldo Canuto <everaldo@simios.org>
8540 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
8541 menu area to fix some problems for non X11 systems. Fixes #80613.
8543 2007-02-22 Jackson Harper <jackson@ximian.com>
8545 * TreeNode.cs: When a node is expanded, set its is_expanded flag
8546 even if it doesn't have any children.
8548 2007-02-22 Jackson Harper <jackson@ximian.com>
8550 * TreeView.cs: Calculate the top node 'on the fly', this
8551 eliminates issues where you need to click on the tree before
8552 scrolling it to get the top node computed correctly.
8553 * TreeNodeCollection.cs: We don't need to mess with the top node
8556 2007-02-22 Jackson Harper <jackson@ximian.com>
8558 * DataGridViewRow.cs: Fix typo so height can actually be set.
8559 Patch by Peter Grimm.
8561 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8563 * FileDialog.cs: Fixed support for renaming files and directories.
8564 * ListView.cs: Do not lose focus when edit is canceled. Process
8565 Escape as regular key (to prevent closing of dialogs).
8567 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8569 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
8570 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
8572 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8574 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
8575 did not modify label.
8576 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
8577 modified the text. Reset Label when user presses Escape in edit mode.
8578 Move focus to ListView after having cancelled or finished editing the
8581 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
8583 * ComboBox.cs: Removed unnecessary initializations. Marked items field
8584 private. Clear textbox when Text is set to null and SelectedIndex is
8586 * FileDialog.cs: Removed unnecessary initializations. Removed
8587 workarounds for ComboBox bugs that are now fixed. Modified
8588 DefaultExt, InitialDirectory and Title property to change null to
8589 zero-length string in getters. Avoid directly accessing fields.
8591 2007-02-20 Jackson Harper <jackson@ximian.com>
8593 * TextControl.cs: Remove RecalAlignments call, that was some
8594 debugging leftovers.
8595 - Don't use the line indent when we shouldn't.
8596 * RichTextBox.cs: Add support for paragraph left indents.
8598 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8600 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
8601 Seems like the class status pages doesn't catch params differences.
8603 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
8605 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
8607 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
8609 * ComboBox.cs: Setting Text should have no effect if item text of
8610 selected item exactly matches value. First lookup text using
8611 case-sensitive comparison, and fallback to case-insensitive comparison.
8612 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
8613 allow startIndex to be last index. Changed ArgumentOutOfRangeException
8614 paramname to match MS. Restart from first item if string is not found
8615 after startIndex. Fixed paramname of ArgumentNullException that is
8616 thrown for null value in ObjectCollection.Contains.
8618 2007-02-19 Everaldo Canuto <everaldo@simios.org>
8620 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
8622 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8624 * ListControl.cs: In SelectedValue use value.Equals to compare for
8625 equality instead of ==, otherwise it will fail for strings.
8628 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8630 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
8631 since the caret won't show up unless ShowSelection is true.
8634 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8636 * Application.cs: When disabling all forms but the main form, do not
8637 disable any descendants of the main form (such as mdi children or
8638 other parented forms). Fixes #80822 on Windows.
8639 * Form.cs: If we have a parent, set the WS_CHILD style.
8640 * Control.cs: Update the window styles if the control whose parent has
8641 changed is a form (the WS_CHILD style has to be switched).
8643 2007-02-19 Everaldo Canuto <everaldo@simios.org>
8645 * XplatUIStructs.cs: MsgUIState structure added.
8647 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
8649 * FileDialog.cs: Removed need for separate fileName field. On 2.0
8650 profile, do not check filename(s) for illegal character if filename(s)
8651 were set non-interactively but always check on 1.0 profile. Fixed NRE
8652 in DefaultExt and only strip off first leading dot. Improve exception
8653 message when invalid Filter is set. Do not ignore InitialDirectory if
8654 it does no exist. Store specified Title, and if empty use default
8655 title (depending on type of dialog). Added an internal DialogTitle
8656 property for retrieving dialog title. Fixed logic of displayed dir to
8657 more closely match MS. Avoid setting ComboBox.Text to a zero-length
8658 string as its buggy.
8659 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
8660 FileName is a zero-length string (it can never be null). Override
8661 DialogTitle property to set default title of dialog box.
8662 * SaveFileDialog.cs: Override DialogTitle property to set default
8663 title of dialog box.
8665 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
8667 * FileDialog.cs: Modify default text of filename and filetype labels
8668 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
8669 after we've updated the SelectedIndex. Fixes part of bug #80887.
8670 * SaveFileDialog.cs: Set text of filetype label.
8672 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8674 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
8675 label field. Needed by latest Jackson's fixes for ListView.
8677 2007-02-16 Andreia Gaita <avidigal@novell.com>
8679 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
8680 print preview images.
8682 2007-02-16 Jackson Harper <jackson@ximian.com>
8684 * ListView.cs: Make AfterLabelEdit work correctly.
8685 * FileDialog.cs: After changing the name of the folder, we have to
8686 make sure that it is created, or that we pop up an error because
8689 2007-02-16 Jackson Harper <jackson@ximian.com>
8691 * X11Dnd.cs: Implement aliases on mime handlers, so things like
8692 System.String are mapped to text.
8693 - Handle dataobjects, getting all the possible formats out of them
8694 - We dont need the drag event args before we give feedback. This
8695 allows feedback cursors to be immediate before selections have
8698 2007-02-16 Jackson Harper <jackson@ximian.com>
8700 * TextBoxBase.cs: Modified the method for inserting images to
8701 taking a line and position instead of tag and position.
8702 * RichTextBox.cs: Handle PngBlip data by inserting the png image
8704 * TextControl.cs: Allow images to be inserted as the first tag of
8706 - Fix some off by one issues when we assume the first tag is a
8707 text tag, not an image tag.
8709 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8711 * ListView.cs: Set focus to ListView when ItemControl gets a
8712 WM_RBUTTONDOWN message, to mimic .Net behaviour.
8713 Fixes part of #80467.
8715 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
8717 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
8718 validate Text input (if null or empty string reset Value to default
8719 value). Fixes #80830.
8721 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8723 * ListView.cs: Set owner as null for columns and items when
8724 Dispose is invoked. Fixes #80607.
8726 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
8728 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
8729 showing DropDowns, don't show a Grip when doing Flow layout.
8730 [This fixes the toolbox in PDN 2.72.]
8731 * ToolStripItem.cs: Add Anchor property and some internal properties to
8732 reduces needed changes to FlowLayout.
8733 * ToolStripOverflow.cs: Remove unused variable.
8734 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
8735 use it in the layout calculations.
8737 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8739 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
8742 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
8745 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8747 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
8748 MeasureString format, it can make button very large in some cases, it is
8749 strange but is what win32 do.
8751 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8753 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
8756 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
8757 rendering, the value is based on MenuAccessKeysUnderlined.
8759 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8761 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
8764 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
8766 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
8767 and use MenuAccessKeysUnderlined instead.
8769 2007-02-13 Andreia Gaita <avidigal@novell.com>
8771 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
8772 A selected control would not get a Focus call if:
8773 - the default active control of the container is the same as
8774 the one that was selected
8775 - we are switching from one container to another
8776 Under these conditions, the container being selected already has
8777 an active_control, which is the same as the one being activated,
8778 so set_ActiveControl would always return and not send the Focus
8779 call. Fix to check if the currently active control of the container
8780 is actually focused.
8782 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
8784 * StatusStrip.cs: Implement the spring layout.
8785 * ToolStripControlHost.cs: Make sure the hosted control's visibility
8786 always matches the host.
8787 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
8790 2007-02-13 Andreia Gaita <avidigal@novell.com>
8792 * Control.cs: Code reorganization only.
8793 - Reorganize the WndProc cases so that each case has it's own handling method,
8794 to help with the no-line-numbering stack traces.
8795 - Formatting changes (it's vstudio's fault, really :p)
8797 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8799 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
8800 Thread.CurrentUICulture to match DateTimePicker's (and MS)
8803 2007-02-12 Jackson Harper <jackson@ximian.com>
8806 * TextBox.cs: By default we have a non multiline document
8807 - use the multiline property instead of the internal variable
8808 * TextBoxBase.cs: Treat multiline and non multiline the same in
8810 - Use the documents multiline flag instead of tracking it ourself
8811 * TextControl.cs: Attempt at getting multiline to match MS
8812 behavior. Lines now track an offset, which is either their X or Y
8813 offset depending on whether or not we are in multiline mode.
8814 - Update all the methods to understand that lines have an X value.
8815 - Fix crash in Undo::Duplicate when empty lines are deleted.
8817 2007-02-12 Everaldo Canuto <everaldo@simios.org>
8819 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
8820 code moved to properties PreferredHeight and PreferredWidth. It solve the
8821 all problems when preferred sizes must be recalculated. Fixes #80801.
8823 2007-02-12 Everaldo Canuto <everaldo@simios.org>
8825 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
8826 font height when compatible_text_rendering is false. Partially fix #80801.
8828 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8830 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
8832 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8834 * Form.cs: Improved exception messages in ShowDialog.
8836 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8838 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
8839 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
8840 if not set. Fixes bug #80764. Avoid accessing current_settings field
8843 2007-02-08 Everaldo Canuto <everaldo@simios.org>
8845 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
8848 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
8849 public in 2.0 and for easy maintenance and dont break compatibility it is
8852 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8854 * ToolStripItem.cs: Implement using images from ImageList.
8856 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8858 * DateTimePicker.cs: Change default date-formatting culture from
8859 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
8860 seems to be the way MS does it.
8862 2007-02-08 Andreia Gaita <avidigal@novell.com>
8864 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
8865 (the 6 was cut off on the right side)
8867 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8869 * Form.cs: Tell MenuStrips to close when the form is clicked.
8870 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
8871 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
8872 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
8873 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
8874 support for Overflow, where items that do not fit are automatically
8875 reparented to a drop down menu.
8876 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
8877 Also: fixes bug #80747.
8879 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8881 * ComboBox.cs: Remove warning (unused code).
8882 * ScrollableControl.cs: Remove warning for 1.1 profile.
8884 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8886 * Form.cs: Remove a warning.
8888 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8890 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
8891 'g' specifier, not documented anywhere, but seems to always show up
8892 as a single space (might have something to do with the DateTime 'g'
8893 specifier, which is the era format, but since DateTimePicker can't
8894 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
8895 won't crash if the format has an unmatched quote. Now shows
8896 single-character formats correctly. Fixes #80744.
8898 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8900 * StatusStrip.cs: Stretch property needs to call base.Stretch,
8901 not this.Stretch to fix stack overflow. [Fixes bug #80760]
8903 2007-02-07 Chris Toshok <toshok@ximian.com>
8905 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
8906 background color. it overwrites the background image we've
8907 already painted. Fixes #80599.
8909 2007-02-07 Chris Toshok <toshok@ximian.com>
8911 * DataGrid.cs: return immediately from Edit() when there are no
8912 columns. Fixes #80662.
8914 2007-02-07 Chris Toshok <toshok@ximian.com>
8916 * MessageBox.cs: fix #80625. don't always show the Help button in
8917 2.0. use the displayHelpButton parameter to determine if we
8918 should show it. Also, make the internal show_help field private.
8920 2007-02-07 Chris Toshok <toshok@ximian.com>
8922 * Control.cs (SetVisibleCore): check in the proposed patch for
8923 80604, and set is_visible before calling CreateControl.
8925 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
8927 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
8928 MonoInternalNote. This is added automagically by VS2005, so let's not crash
8931 2007-02-06 Everaldo Canuto <everaldo@simios.org>
8933 * MenuAPI.cs: hotkey_active internal field added, it is required because
8934 we need to know when hotkeys must be draw, before this change a keystate
8935 Navigating was used but we can have menu in navigating state without
8936 hotkeys. Fixes #80694.
8938 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
8940 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8942 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
8943 corresponding events and methods to be internal for 1.1 profile and
8944 public for 2.0 profile (required by SizeGrip).
8945 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
8946 implicit control list). Don't set the size nor the location of the
8947 SizeGrip anymore as it's not needed.
8948 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
8949 draw directly on the captured control (fixes #80656). Removed
8950 ShowGrip (it wasn't used anywhere), redraw (always true), added
8951 GetDefaultSize and GetDefaultRectangle to calculate defaults.
8952 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
8953 be called from SizeGrip.
8955 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8957 * Timer.cs: Throw ArgumentException if Interval <= 0.
8959 2007-02-05 Jackson Harper <jackson@ximian.com>
8961 * TreeView.cs: We need to check scrollbar visibility when window
8962 visibility is updated, because non visible trees don't ever add
8964 * Cursor.cs: We want the override cursor to be reset to NULL when
8965 we set current cursor to the default cursor.
8967 2007-02-05 Jackson Harper <jackson@ximian.com>
8969 * TextControl.cs: Don't have crlfs when we are non multiline.
8970 - Consolidate the line position.
8972 2007-02-05 Jackson Harper <jackson@ximian.com>
8974 * X11Keyboard.cs: BACK+CTRL gets a special char code.
8976 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8978 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
8979 handling LeaveNotify->NotifyUngrab in order to send
8980 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
8981 after calling XUngrabPointer, so we call WindowUngrabbed directly
8982 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
8983 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
8984 MouseCaptureChanged correctly. Also create handles if changing
8985 Capture (matches MS behaviour).
8987 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8989 * SizeGrip.cs: Make the last change 2.0 only.
8991 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8993 * SizeGrip.cs: If resizing and the capture is lost, revert any size
8994 changes to initial size (fixes #80597).
8996 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8998 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
9000 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9002 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
9003 background) and only allow dragging if enabled. This way the
9004 sizegrip can be used to fill the open square that otherwise would
9005 have been shown in the bottom right corner of ScrollableControl
9006 when ScrollableControl is not suppose to support sizing.
9007 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
9008 sizegrip is shown and enabled, and hook up with necessary events.
9010 2007-02-01 Chris Toshok <toshok@ximian.com>
9012 * DataGridTextBoxColumn.cs: clean up the
9013 GetFormattedString/GetColumnValueAtRow combination of functions.
9014 Also fix UpdateUI, and the initial state of
9015 IsInEditOrNavigateMode.
9017 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
9018 aren't supposed to scroll the textbox here, we're supposed to
9019 scroll the datagrid.
9021 2007-02-01 Chris Toshok <toshok@ximian.com>
9023 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
9024 setting the position.
9026 2007-02-01 Chris Toshok <toshok@ximian.com>
9028 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
9029 here, since the most recent focus fixes keep us from generating
9030 the Leave event when our textbox gets focus.
9031 (Edit): we should be passing null for the column style's
9032 instantText parameter.
9034 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
9036 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
9037 raised. Fixes menu text/icons not showing up in PDN.
9039 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9041 * Control.cs: Remove code in constructor that makes every
9042 control with WS_CHILD set have initial location -1, -1.
9044 2007-01-31 Jackson Harper <jackson@ximian.com>
9046 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
9048 * XplatUIX11.cs: Give teh keyboard to teh dnd.
9050 2007-01-31 Jackson Harper <jackson@ximian.com>
9052 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
9053 - Remove some debug code.
9055 2007-01-31 Jackson Harper <jackson@ximian.com>
9057 * XplatUIX11.cs: If you set the override cursor during a grab, it
9058 should actually override the grab cursor. This comes into play
9059 when you are setting custom cursors in a DND feedback method.
9061 2007-01-31 Jackson Harper <jackson@ximian.com>
9063 * X11Dnd.cs: Add support for handling the QueryContinue and
9064 GiveFeedback events.
9065 - Cancel drag and drop actions when the escape key is clicked.
9066 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
9067 can handle the ESCAPE key.
9068 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
9069 done when dnd events are continued after the button is released.
9070 - Add a new helper method so that dnd can translate key events.
9072 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
9074 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
9075 make it more obvious what is happening.
9077 2007-01-30 Jackson Harper <jackson@ximian.com>
9079 * XplatUIX11.cs: Don't break when handling button release in drag
9080 and drop operations. We need that BUTTONUP message to get through
9081 so capture is released.
9082 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
9083 this is handled automatically when the mouse is down.
9085 2007-01-30 Jackson Harper <jackson@ximian.com>
9087 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
9088 is closed, so we need to make sure that we aren't changing the
9089 dialog result when the OK (Open or Save) button has been clicked
9090 and we are closing the window ourselves. Note we don't need to
9091 worry about the cache being written in this case, because it was
9092 already done in the previous FilOk call.
9094 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9096 * DateTimePicker.cs: Remove a warning.
9097 * ComboBox.cs: Remove a couple of warnings.
9099 2007-01-29 Chris Toshok <toshok@ximian.com>
9101 * XplatUIX11.cs: don't crash, and remove the icon if the user has
9102 set one, if SetIcon is passed a null icon.
9104 2007-01-29 Andreia Gaita <avidigal@novell.com>
9106 * TextBox.cs: Redraw when the password characters changes
9107 * TextControl.cs: Check if textbox has a password char and draw
9108 a line of password chars instead of the text in the line. LineTag gets
9109 an extra Draw() method which allows document.Draw to override the text
9110 that will be drawn. Removes 1024 char limitation on length of passworded
9113 2007-01-29 Jackson Harper <jackson@ximian.com>
9115 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
9116 single chars is not.
9118 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
9120 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
9121 one pixel. Fix a StackOverflowException caused by an overload wrongly
9124 2007-01-26 Everaldo Canuto <everaldo@simios.org>
9126 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
9127 also remove ProcessArrowKey and put the code inside ProcessKeys.
9129 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
9131 * PaddingConverter.cs: Added.
9133 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9135 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
9136 ShowPanels is false (fixes #80600). Only draw up to 127 characters
9137 of text (fixes #80601). For panels clip the text to draw to the
9138 panel (fixes #80603).
9140 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9142 * ComboBox.cs: Fixed implementation of ResetText.
9144 2007-01-25 Jackson Harper <jackson@ximian.com>
9146 * TextControl.cs: For the last char of a line we need to use the
9147 line size, not that chars width, since it won't actually be
9148 computed since the right side of a char is based on the start of
9149 the left side of the next char, and the next char does not exist.
9151 2007-01-25 Chris Toshok <toshok@ximian.com>
9153 * Splitter.cs: fix the new unit tests, and reindent some switch
9156 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9158 * ComboBox.cs: Implemented 2.0 methods and events.
9159 * TextBoxBase.cs: Added OnTextUpdate, so that
9160 ComboBox.ComboTextBox can inform ComboBox of it.
9162 2007-01-25 Jackson Harper <jackson@ximian.com>
9164 * TextControl.cs: Respect ShowSelection when deciding whether or
9165 not to display the caret, this allows comboboxes to have carets
9166 when the combotextbox does not have focus.
9168 2007-01-25 Jackson Harper <jackson@ximian.com>
9170 * TextControl.cs: Add a Suspend/Resume for updating, basically the
9171 same as the Suspend/Resume for recalc, except this will do actual
9173 - New Undo manager, works much like the MS version.
9175 * TextBoxBase.cs: The Cut operation is undoable.
9177 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9179 * TextBoxBase.cs: Don't antialias text. Makes it look way better
9180 on Windows (no difference on Linux).
9182 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9184 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
9185 we don't want to activate any windows. Fixes #79433.
9187 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
9189 - ButtonBase.cs: Fix capitalization of parameter: disposing.
9192 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
9195 - Move to using System.ComponentModel.EventHandlerList
9196 - Replace Refresh with Invalidate
9197 - Clear the mime filecache on closing
9198 - Some other memory reducing work. After beeing closed FD now uses
9199 only about 300 KB for the fdo mime stuff plus the memory of the
9201 * Mime.cs: Changed coding style and removed unnecessary commented
9202 code. Some more memory memory reducing work.
9204 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9206 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
9207 a few other missing 2.0 properties.
9208 * Theme.cs: Added DrawFlatStyleComboBox.
9209 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
9211 2007-01-24 Chris Toshok <toshok@ximian.com>
9213 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
9214 wake_waiting flag, not just when there's data to be read. if we
9215 don't, then future wakeup's won't reach us and we'll be doomed to
9216 wait for the entire 1 second timeout forever (unless there are X
9219 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
9221 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
9222 until you pass Items.Count, not Items.Count - 1 like 1.1.
9224 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
9226 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
9228 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
9230 * ToolStripContainer.cs: The recent Dock fix exposed that I was
9231 adding the panels in the wrong order.
9233 2007-01-24 Jackson Harper <jackson@ximian.com>
9235 * TextBoxBase.cs: When we move the caret we also need to move the
9236 selection, this fixes some random crashing after doing select
9237 text, unselect, delete a char, paste.
9239 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9241 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
9243 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9245 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
9246 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
9247 * ToolBar.cs: Force redraw in BackgroundImageChanged.
9249 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9252 - Implement support for vertical toolbars. Fixes #80539;
9253 - Call LayoutToolBar when resize, it fix some other problems in layout.
9254 - Rename requested_height to requested_size, as we can have width on it
9255 when toolbar is vertical.
9256 - Create a private property "Vertical" that uses Dock to verify when
9257 toolbar is vertical or not.
9258 - Set ControlStyles when change Dock property.
9259 - Refactory in LayoutToolBar to have better variables names and to support
9261 - Fixes default value for ButtonSize when button count is equal zero, size
9262 must be (39, 36) test case writed.
9264 2007-01-23 Chris Toshok <toshok@ximian.com>
9266 * Control.cs: fix the checks so that they work correctly for mdi
9269 2007-01-23 Chris Toshok <toshok@ximian.com>
9271 * Control.cs: ControlCollection seems to have super-secret
9272 abstraction breaking knowledge of Mdi containers. allow MdiClient
9273 to add toplevel controls.
9275 2007-01-23 Chris Toshok <toshok@ximian.com>
9277 * Control.cs: throw an ArgumentException if a toplevel control is
9278 added to our control collection from ControlCollection.Add, as
9279 well as from ControlCollection.IList.Add. This fixes the
9280 ControlSetTopLevelTest.TestTopLevelAdd unit test.
9282 Also, in ControlCollection.IList.Add, don't through an
9283 ArgumentNullException, throw an ArgumentException, when value ==
9284 null. This matches MS.
9286 2007-01-23 Chris Toshok <toshok@ximian.com>
9288 * BindingSource.cs: initial, incomplete, implementation of
9291 2007-01-23 Jackson Harper <jackson@ximian.com>
9294 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
9295 that I can fix a broken unit test (TextBoxTest::ClearUndo)
9297 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9299 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
9301 2007-01-23 Andreia Gaita <avidigal@novell.com>
9303 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
9304 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
9305 IndexOfKey() for 2.0
9307 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9309 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
9310 to prevent it from changing z-order.
9311 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
9312 leave UI updates in MdiWindowManager.
9313 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
9314 1 sized (NC handling goes weird on Linux otherwise).
9315 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
9316 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
9317 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
9318 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
9319 and SetWindowState(s) to allow for changing the size of an activated child
9320 before activating it (reduces a lot of flicker).
9322 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
9324 * Form.cs: Changing FormBorderStyle has different semantics based
9325 on whether the Form is visible or not. If not visible, don't change
9326 the Size. But InvalidateNC needs to be called to force the window
9327 to pick up the changes and redraw itself. [Fixes bug #80574]
9329 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
9332 * ContainerControl.cs: ProcessCmdKey.
9333 * ErrorProvider.cs: new constructor.
9334 * Form.cs: fix AutoValidateEvent compiler warning.
9335 * Label.cs: fix OnAutoSizeChanged compiler warning.
9336 * MenuStrip.cs: fix CanOverflow compiler warning.
9337 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
9338 * TextBox.cs: Dispose.
9339 * ToolStrip.cs: CanOverflow, re-enable double buffering.
9340 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
9341 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
9342 * ToolStripItem.cs: Overflow, RightToLeft properties.
9344 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9346 * Form.cs: Move the layout of the main form to MdiWindowManager.
9347 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
9348 do a layout of the main window to update MdiClient's client area to
9349 the right area. Fixes #80533. Remove the calculation of nc size,
9350 it was just wrong and the correct one is the same as for
9351 InternalWindowManager.
9353 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
9355 * Control.cs: Setting Anchor or Dock needs to reset the other
9356 to its default. [Fixes bug #80556]
9358 2007-01-20 Chris Toshok <toshok@ximian.com>
9360 * CheckedListBox.cs: class status changes.
9362 * ScrollableControl.cs: same.
9364 * RichTextBox.cs: same.
9366 * ContainerControl.cs: same.
9368 * ListView.cs: same.
9370 * NotifyIcon.cs: same.
9372 * MenuStrip.cs: same.
9374 * RadioButton.cs: same.
9376 * CheckBox.cs: same.
9378 * PrintPreviewDialog.cs: same.
9382 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
9384 * TreeNode.cs: Apply Alan's patch for Name property.
9386 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9388 * Form.cs: Implemented SizeGripStyle.
9389 * SizeGrip.cs: Check for minimum and maximum size for the
9390 control being resized and only resize if size has actually
9393 2007-01-19 Chris Toshok <toshok@ximian.com>
9395 * DataGridColumnStyle.cs: stop setting _readonly in the
9396 PropertyDescriptor setter. fixes a unit test failure.
9398 also, rename ParentReadOnly to TableStyleReadOnly, and have it
9399 just consult our table style (if we have one). We don't need to
9400 consult the datagrid readonly attribute because that's passed in
9401 as the _ro arg to Edit. this simplifies things a little.
9403 * DataGrid.cs: use CurrentColumn instead of
9404 current_cell.ColumnNumber just to simplify some of the code.
9406 switch the order of some things in the CurrentCell setter to keep
9407 the previous cell from getting a textbox again -
9408 EnsureCellVisibility causes scrolling to happen, which calls Edit.
9409 So we need to set the new cell before calling it.
9411 call Edit in OnEnter, as does Microsoft.
9413 also, make sure the current table style isn't the one we create
9414 initially when checking to see if it's different than the one
9415 we're setting it to in BindColumns (this fixes #80421).
9417 * GridTableStylesCollection.cs: table styles can have "" for a
9418 mapping name. part of the fix for #80421.
9420 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
9423 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9425 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
9426 and less GDI object leaky-er.
9428 2007-01-18 Andreia Gaita <avidigal@novell.com>
9430 * LinkLabel.cs: Add opaque control style
9432 2007-01-18 Jackson Harper <jackson@ximian.com>
9434 * TextControl.cs: Calculate width properly.
9435 - Don't store the tag's X offset, this can be figured out very
9437 - When getting the caret tag make sure to get the last empty tag.
9439 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9441 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
9444 * Control.cs: Color.Empty shouldn't count for previous transparent
9447 2007-01-18 Jackson Harper <jackson@ximian.com>
9451 * TextControl.cs: Starting to merge in some pieces of my older
9452 undo work. Basically just some slight cleanup of the undo API.
9454 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9456 * TrackBar.cs: Fix signature of RightToLeftLayout.
9457 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
9458 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
9459 * Application.cs: Implemented UseWaitCursor.
9461 2007-01-18 Jackson Harper <jackson@ximian.com>
9463 * TextControl.cs: We can't skip tags if any part of the tag is
9466 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9468 * ContainerControl.cs: Override OnLayout.
9470 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9472 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
9474 * ContextMenuStrip.cs: Make sure context menu is shown on top of
9477 2007-01-18 Chris Toshok <toshok@ximian.com>
9479 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
9480 (leftover from the container_selected days, I'd wager). fixes bug
9483 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9485 * Control.cs: Apply patch from George to fix the new testcase on
9486 bug #80451. We can't just check for Color.Transparent, we need
9487 to check if the back color's alpha channel is < 255.
9489 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9491 * Form.cs: Move setting show_icon = true to before the constructor
9492 so that the base constructor has that information when it calculates
9493 the form's size. Was causing forms to be (6, 6) bigger than they
9494 were supposed to be. Thanks for catching this Rolf!
9496 2007-01-18 Jackson Harper <jackson@ximian.com>
9498 * TextControl.cs: When replacing a selection we need to invalidate
9499 from the initial selection start, because selection start is moved
9500 to the end of the replacement.
9502 2007-01-18 Andreia Gaita <avidigal@novell.com>
9504 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
9506 2007-01-18 Chris Toshok <toshok@ximian.com>
9508 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
9511 2007-01-17 Everaldo Canuto <everaldo@simios.org>
9513 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
9514 layout methods and properties from ToolBarButton must be available
9515 into ToolBarButtonInfo.
9517 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9519 * Control.cs: If the control has a transparent background, we
9520 need to refresh it when it moves and when it's parent's background
9521 image changes. [Fixes bug #80451]
9523 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9525 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
9527 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9529 * XplatUIWin32.cs: Implement proper double buffering for Windows.
9530 [Fixes bug #80447, and probably speeds up things as well]
9532 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9534 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
9535 * XplatUIWin32.cs: We need to recalculate NC size after changing
9536 window style to toolwindow (otherwise the client rectangle will be
9537 3 pixels to small for some reason).
9538 * MdiWindowManager.cs: Revert NC size calculations to match how
9539 they are calculated only based on window styles (to match
9540 Win32AdjustWindowRectEx, since otherwise when setting size or
9541 location, Control will call Win32AdjustWindowRectEx to update client
9542 size, which would provoke a paint, then we'd get a NCCALCSIZE and
9543 calculate a different value of client size causing another paint
9545 * InternalWindowManager.cs: When moving or resizing a window only
9546 update size or location if they actually changed.
9547 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
9548 (seems to match Windows behaviour better). Cleaned up
9549 ManagedWindowDecorations to draw what's needed and nothing else
9550 (was drawing borders and lines where they shouldn't be)
9551 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
9552 (style = 0xFFFF) and takes into account caption height when
9553 calculating window rectangle.
9555 2007-01-16 Everaldo Canuto <everaldo@simios.org>
9557 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
9558 can be added to toolbar multiple times, we need to maintain a list of
9559 button information for each positions.
9561 2007-01-16 Everaldo Canuto <everaldo@simios.org>
9563 * ToolBar.cs: Some small stetic changes.
9565 2007-01-16 Jackson Harper <jackson@ximian.com>
9567 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
9568 that allow us to have nested recalc = false blocks.
9569 - Add paste support for images in the RichTextBox
9570 * RichTextBox.cs: flush the text after the color is changed, so
9571 the change takes effect.
9573 - Some extra debugging info
9574 * TextControl.cs: Tags no longer track their length, it is just
9575 computed from the next tags length, this makes things a little
9576 simpler and reduces places that we have to track length changes.
9577 - Refactored the linetag class a little so we could make it
9578 a base class for different kinds of tags
9579 - Created a image tag, a tag that can have a single image inserted
9581 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
9582 that we can call suspend multiple times.
9583 - Add some debugging methods
9585 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9587 * MdiClient.cs: Add ActivatePreviousChild for
9588 mdi child window navigation.
9589 * Form.cs: Use MdiClient.ActivateNextChild/
9590 ActivatePreviousChild instead of Form.SelectNextControl
9591 to select the next/previous child since
9592 SelectNextControl doesn't do it in the same order
9593 as mdi children should do it.
9595 2007-01-16 Chris Toshok <toshok@ximian.com>
9597 * Control.cs: remove container_selected field.
9599 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9601 * MdiClient.cs: Update main form's ActiveChild when
9602 updating keyboard focus for the mdi child.
9604 2007-01-16 Jonathan Pobst <jpobst@novell.com>
9606 * Control.cs: PreferredSize fix.
9608 * Form.cs: Add several 2.0 events, properties, and methods.
9610 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
9612 * Form.cs: Provide meaningful message when MdiParent is assigned a
9613 Form that is not an MdiContainer.
9615 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9617 * MdiClient.cs: Update main form's ActiveChild when
9618 activating a mdi child.
9620 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9622 * MdiWindowManager.cs: Fix NRE when merging menus and main form
9623 doesn't have a menu.
9625 * Form.cs: Request NCRecalc after creating a mdi child window.
9626 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
9627 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
9629 * MdiClient.cs: Add new method SendFocusToActiveChild that either
9630 sends keyboard focus to the active child, or to the MdiClient
9631 if there are no child forms.
9633 2007-01-15 Chris Toshok <toshok@ximian.com>
9635 * ListView.cs: drop the *Internal overrides, just do our work in
9636 ItemControl's WndProc instead.
9638 * UpDownBase.cs: a few large changes. Fix up the Selectable state
9639 of the various controls, and forward the events properly (in the
9640 same manner as MS) from the textbox to the UpDown. Also the
9641 ActiveControl of the UpDownBase gets set properly now. Finally,
9642 we don't call UpdateEditText from the ctor. Fixes bug #79957.
9644 * NumericUpDown.cs: set Text in the ctor.
9646 * DomainUpDown.cs: call UpdateEditText in the ctor.
9648 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
9649 so even a Selectable = false textbox can be focused if you click
9652 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
9653 just add their handling in their respective WndProc's. Also add
9654 an explicit FocusInternal method that doesn't consult CanFocus
9655 before calling Select(this).
9657 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
9658 do our work in WndProc instead.
9660 * TabControl.cs: same.
9662 * ComboBox.cs: same.
9664 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9666 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
9669 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9672 * ThemeWin32Classic.cs: Don't draw the item text outside
9673 item bounds in Details view, as well as use trimming.
9676 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9678 * Form.cs: Implement Form.ShowIcon.
9680 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
9681 null, which when combined with the DlgModalFrame window style removes
9682 the icon from the title bar.
9684 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9686 * Control.cs: Call OnMouseClick after OnClick. (2.0)
9688 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9690 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
9691 menu when mdi child windows theres a menu, uses insert to get icon
9692 at first position. Partially fix #80006.
9694 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9696 * Clipboard.cs: Implement 2.0 methods.
9698 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9700 * Menu.cs: Implement Insert method of MenuItemCollection class
9703 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9705 * ListView.cs: Implement 2.0 FindItemWithText method.
9707 2007-01-11 Everaldo Canuto <everaldo@simios.org>
9709 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
9710 to calculate menu bar size. Fixes #80290.
9712 2007-01-11 Everaldo Canuto <everaldo@simios.org>
9714 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
9716 2007-01-11 Chris Toshok <toshok@ximian.com>
9718 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
9721 2007-01-11 Chris Toshok <toshok@ximian.com>
9723 * LinkLabel.cs: make sure to call base.Select in our Select method
9724 if it turns out we're going to be selected (i.e. if we have a link
9725 that is going to receive focus). That way our container's
9726 ActiveControl is updated properly.
9728 2007-01-11 Chris Toshok <toshok@ximian.com>
9730 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
9731 they have 1 or more links. this fixes the crash gert reported.
9733 2007-01-11 Andreia Gaita <avidigal@novell.com>
9735 * ContainerControl.cs: Remove ContainerSelected flag, not needed
9738 * Control.cs (Controls.Add): Check if control to be added to the collection
9739 is a top level control, and throw an ArgumentException if it is.
9740 Remove ContainerSelectedFlag, not needed anymore.
9742 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
9743 top most control doesn't activate the form. This fixes a problem in the
9744 MessageBox, where the default button wouldn't get focus because the form
9745 was activated before being Loaded - when the Owner is set, SetTopMost is
9746 called, and it would activate it.
9748 2007-01-11 Jonathan Pobst <jpobst@novell.com>
9750 * Button.cs: When clicked and setting the parent form's DialogResult,
9751 use FindForm instead of Parent, since parent could be a container
9752 control and not the Form. Fixes bug #80495.
9754 2007-01-10 Chris Toshok <toshok@ximian.com>
9756 * Form.cs: move the call to SendControlFocus into the same
9759 2007-01-10 Chris Toshok <toshok@ximian.com>
9761 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
9762 It breaks in the face of the new ActiveControl stuff, and should
9765 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
9766 activecontrol's focus if it's not already set, after we set
9767 ActiveControl, but before we call OnActivated. Re-fixes #79667
9768 after the previous focus/active control fixes regressed it.
9770 * Control.cs: reindent some code.
9772 2007-01-10 Chris Toshok <toshok@ximian.com>
9774 * Splitter.cs: clearing some outstanding changes from my tree.
9775 Replace all accesses (not writes) to the internal dock_style field
9776 with the Dock property.
9778 2007-01-10 Chris Toshok <toshok@ximian.com>
9780 * Control.cs: make FireEnter, FireLeave, FireValidating, and
9781 FireValidated virtual.
9783 * Form.cs: override and don't chain up calls to FireEnter and
9786 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9788 * ListView.cs: Add more text padding space when using
9789 auto resize for columns (the previous value didn't work fine).
9791 * ThemeWin32Classic.cs: Update text position inside columns,
9792 to match the appeareance of .Net.
9794 * ColumnHeader.cs: When using auto resize, only the Width should
9795 depend on the sub items, not the Height. Also, set width after
9796 auto resizing (the value of Width should never remain as -1 or -2).
9798 2007-01-10 Chris Toshok <toshok@ximian.com>
9800 * Application.cs: fix compilation errors when debug is enabled.
9802 2007-01-10 Chris Toshok <toshok@ximian.com>
9804 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
9805 add some nice ascii art pictures and explanation of the process).
9806 (GetMostDeeplyNestedActiveControl): new utility function we need
9807 because our ActiveControl can refer to a child container with its
9810 * Form.cs (OnActivated): remove the call to SelectActiveControl
9811 from here, since you can override this method and not chain up,
9812 and winforms still sets the active control.
9813 (OnCreateControl): also remove the unnecessary SelectActiveControl
9815 (WndProc): it's actually called from the WM_ACTIVATE block, just
9816 before calling OnActivated.
9818 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
9819 inside the else. the ActiveControl setter will end up setting
9820 focus on @control. This keeps us from setting it again (and
9821 generating an extra LostFocus/GotFocus pair).
9822 (Select (bool, bool)): reindent.
9824 2007-01-10 Jonathan Pobst <jpobst@novell.com>
9826 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
9827 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
9828 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
9829 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9830 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
9831 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
9832 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
9833 ToolStripTextBox.cs: Another wave of corcompare work.
9835 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9837 * ColumnHeader.cs: Implement 2.0 AutoResize method using
9840 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
9841 methods by callling Column.AutoResize method on columns.
9843 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
9845 * Control.cs: Provide proper implementations of PreferredSize
9846 and GetPreferredSize (2.0).
9848 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
9850 * Form.cs: Remove one character (!) to make my previous OnClosing
9851 stuff work for modal windows like MessageBox.
9853 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9856 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
9857 ListView.Columns to get the last displayed column. Fixes #80452.
9859 2007-01-09 Everaldo Canuto <everaldo@simios.org>
9861 * Label.cs, LinkLabel.cs: Source code identation fixes.
9863 2007-01-08 Everaldo Canuto <everaldo@simios.org>
9865 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
9866 we dont need to invalidate only borders because when we invalidate four
9867 border lines the invalidate's generates a complete redraw of button,
9868 because it now invalidate a complete rect some other redraws operations
9869 are fixed. Fixes #80196.
9871 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
9872 Remove ToolBarInvalidateEntireButton as it is not used.
9874 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
9876 * Form.cs: Make sure that both OnClosing and OnFormClosing are
9877 called for 2.0 profile.
9878 * CloseReason.cs: Make class internal for 1.1.
9880 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
9882 * ToolStripManager.cs: Implement FindToolStrip functionality.
9883 * ToolStrip.cs: Register and unregister with ToolStripManager.
9885 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
9887 * Control.cs: This was messy. 2.0 moves much of ControlCollection
9888 to ArrangedElementCollection. Implemented this with as few #if's as
9889 possible (which is still too many).
9891 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
9893 * Control.cs: Implement SizeFromClientSize() [2.0].
9895 2007-01-07 Everaldo Canuto <everaldo@simios.org>
9897 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
9898 use Theme.BorderSize to calculate area instead of static value 1,
9899 by the way use new BorderStaticSize instead Border3DSize when
9900 border_static is true. Fixes #79537.
9902 * XplatUIOSX.cs: Fix call to GetClientRectangle.
9904 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
9907 2007-01-06 Everaldo Canuto <everaldo@simios.org>
9909 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
9911 2007-01-06 Everaldo Canuto <everaldo@simios.org>
9913 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
9914 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
9917 - border_static field added, it will used to define when a control
9918 theres 3D border but it must be static (thin).
9919 - In GetWindowRectangle use Theme.BorderSize to calculate area
9920 instead of static value 1, by the way use new BorderStaticSize instead
9921 Border3DSize when border_static is true.
9923 * XplatUIX11.cs, XplatUIOSX.cs:
9924 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
9926 * Theme.cs: BorderStaticSize field added.
9928 2007-01-05 Everaldo Canuto <everaldo@simios.org>
9930 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
9932 2007-01-05 Everaldo Canuto <everaldo@simios.org>
9934 * Control.cs: Under InternalBorderStyle call RecreateHangle to
9935 mimic same behavior than win32 that set border only in CreateParams,
9936 it fix problems under CreateParams overrides. Fix #79442 and partial
9939 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
9940 of thi control you must call recreate handle.
9942 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
9943 need to do anything as RecreateHangle will take care about borders.
9945 2007-01-05 Mike Kestner <mkestner@novell.com>
9947 * ListView.cs: hack to eliminate Lost/Got focus notifications on
9948 cycles between the ItemControl and parent. Fixes #80388.
9950 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
9952 * Control.cs: Lazy init layout engine. Do not directly use
9953 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
9955 2007-01-05 Chris Toshok <toshok@ximian.com>
9957 * DataGrid.cs: don't forceably rebind columns in SetDataSource
9958 unless our list manager has changed (i.e. unless we have reason to
9959 believe our columns have changed). Fixes #80422.
9961 also, disable the call do BindColumns in
9962 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
9963 1.1 the event isn't raised in response to a column addition on a
9966 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
9968 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
9969 that inheritors can not call it if they choose. Fixes bug #80456.
9971 2007-01-05 Andreia Gaita <avidigal@novell.com>
9973 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
9974 doesn't blow up with a null exception on marshalling.
9976 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
9978 * Control.cs: Implement several 2.0 protected properties and methods.
9979 Ensure that all necessary events are being called when properties
9982 2007-01-05 Mike Kestner <mkestner@novell.com>
9984 * ListView.cs: implement PgUp/PgDn for Details view. Also
9985 fixes First/LastVisibleIndex to use the item_control.ClientRect
9986 instead of the parent control. Fixes #80378.
9988 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
9990 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
9991 determine whether to use yard-pound or not (bug #78399).
9993 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
9995 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
9996 problems. So it is time to bring back the old popupbutton colors.
9998 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10001 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
10002 property by using the internal information of the
10003 columns order in ListView.
10005 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
10007 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
10008 Add 2.0 Tag properties.
10010 * LinkArea.cs: Add 2.0 ToString method.
10012 2007-01-03 Chris Toshok <toshok@ximian.com>
10014 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
10015 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
10016 when we're editing, which fixes #80047.
10018 2007-01-03 Chris Toshok <toshok@ximian.com>
10020 * Form.cs: apply patch contributed by Dominik Seichter. fixes
10023 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
10025 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
10026 property and implementation.
10028 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
10029 for MdiWindowListItem property.
10031 * ToolStripDropDown.cs: Don't consider hidden menu items while
10032 laying out the menu.
10034 2007-01-03 Andreia Gaita <avidigal@novell.com>
10036 * SendKeys.cs: window handle is not needed in win32, so just
10037 get the active window for X after parsing keys and don't use
10038 it when building the message; it is passed by parameter to the
10039 Xplat method and used there to build the message instead. Also,
10040 wait for events to be processed on SendWait, as opposed to Send,
10041 which doesn't wait :) Playing with threads and Send() completely
10042 hangs on ms.net, only SendWait() works.
10045 X11Display.cs: Check for valid window handle.
10047 2007-01-03 Jackson Harper <jackson@ximian.com>
10049 * TextControl.cs: Need to prevent wrap calculations when replacing
10050 text (this was there before i removed it accidently).
10051 - Don't update the cursor during the positioning, just set it to
10052 selection_start at the end of the operaion.
10054 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10057 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
10059 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10061 * MonthCalendar.cs: Added Click and DoubleClick events again,
10062 but this time they only hide Control's Click and DoubleClick.
10064 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
10066 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
10067 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
10069 2007-01-02 Jackson Harper <jackson@ximian.com>
10071 * TextBoxBase.cs: We move the caret with the split now, so we
10072 don't need to explicitly move the caret after splitting. This
10073 fixes the caret bumping down an extra line on Enter.
10075 2007-01-02 Miguel de Icaza <miguel@novell.com>
10077 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
10080 * ScrollableControl.cs: Add Scroll event.
10082 2007-01-02 Mike Kestner <mkestner@novell.com>
10084 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
10085 to fix all hdr height padding codepaths. Fixes #80207.
10087 2007-01-02 Chris Toshok <toshok@ximian.com>
10089 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
10090 setting it to the Control defaults anyway, and it being after the
10091 Dock set was screwing up layout.
10092 (set_Dock): don't short circuit out of setting base.Dock. Also,
10093 no need to call UpdateStatusBar here, as it'll be re-layed out if
10096 2007-01-02 Mike Kestner <mkestner@novell.com>
10098 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
10099 to header height for width == -1. Fixes the rest of #80207.
10101 2007-01-02 Mike Kestner <mkestner@novell.com>
10103 * ListView.cs: rework the mouse event forwarding everaldo added
10104 to translate the coordinates to the parent control not
10105 raise the parent events until after we've done our work. Hover
10106 needs more work, in the case where HoverSelection is on, because
10107 the item control receives more than one MouseHover per Enter
10108 event, so we need to ensure only the "first" hover gets forwarded.
10109 Opening a minor bug for that.
10111 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
10113 * CheckedListBox.cs: Fixed SelectionMode to match MS.
10114 * ListControl.cs: Implemented AllowSelection property. Removed extra
10116 * ListBox.cs: Implemented AllowSelection property.
10118 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10120 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
10121 SelectedItem, it prevent for errors when you must disable item
10122 before perform click. Fixes #80409.
10124 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10126 * MenuAPI.cs: Prevent second level and beyond submenus to close
10127 until first level when move out side of popup.
10129 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10132 - Down submenu positin in three pixels.
10133 - Closes sub menu when mouse leaves from menu. Fixes #80402.
10135 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10137 * ThemeWin32Classic.cs:
10138 - Fix popup menu size adding one pixel on the top.
10139 - Down menu item border from two to one to mimic Win32.
10140 - Some source identation fixes.
10142 2007-01-01 Everaldo Canuto <everaldo@simios.org>
10144 * ThemeWin32Classic.cs: Use float numbers to calculate size and
10145 position of menu arrows, it fix wrong arrow size.
10147 2007-01-01 Everaldo Canuto <everaldo@simios.org>
10149 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
10150 instead of line, it simplify draw operation and fix it using 3D
10151 borders to mimic Win32.
10153 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
10155 * StatusStrip.cs: Add implementation of the sizing grip.
10157 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
10158 StatusStrip rendering.
10160 2006-12-31 Chris Toshok <toshok@ximian.com>
10162 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
10163 override the layout style (anchor/dock) of the control. assign to
10164 Dock instead. Fixes bug #80416.
10166 * ToolStrip.cs: same.
10168 2006-12-31 Andreia Gaita <avidigal@novell.com>
10170 * ContainerControl.cs: Use ContainerSelected flag to check if
10171 a Container is directly selected, or if Select is called on a
10172 non-container. If a container is directly selected, focus events
10173 should not be raised.
10174 Apply #80411 patch to throw exception on set_ActiveControl if
10175 control is the same as the current one.
10177 * Control.cs: Use ContainerSelected flag (see above).
10178 Add invalidation check to raise event but not invalidate if
10180 Apply #80411 patch.
10183 2006-12-31 Everaldo Canuto <everaldo@simios.org>
10185 * MenuAPI.cs: After click, dont close popup menu when menu is
10186 ContextMenu. Fixes #80399.
10188 2006-12-30 Chris Toshok <toshok@ximian.com>
10190 * ContainerControl.cs: make sure we throw the exception if the
10191 container control doesn't contain the control we're setting
10194 2006-12-30 Chris Toshok <toshok@ximian.com>
10196 * Control.cs (SetTopLevel): fix the exception raised by
10197 SetTopLevel for child controls.
10198 (set_Anchor): call UpdateDistances when setting the anchor type.
10199 This fixes bug #80336.
10201 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10203 * Theme.cs: For now, revert back to 8pt font.
10205 2006-12-29 Everaldo Canuto <everaldo@simios.org>
10207 * MenuAPI.cs: Set popup as active when open a ContextMenu.
10210 2006-12-29 Chris Toshok <toshok@ximian.com>
10212 * Control.cs: reorder the code in OnResize to give the same event
10215 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
10217 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
10218 TileHorizontally and TileVertically.
10220 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
10222 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
10223 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
10224 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
10225 Corrected copyright and email adress.
10227 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10229 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
10230 of Exception in FullPath property if no TreeView is associated with
10233 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10235 * Theme.cs: Marked default_font as private, and initialize it in ctor
10236 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
10238 * ThemeGtk.cs: Removed default_font intialization.
10239 * ThemeWin32Classic.cs: Removed default_font initialization.
10241 2006-12-28 Chris Toshok <toshok@ximian.com>
10243 * Control.cs: fix a couple of place where we were creating handles
10244 more aggressively than we should be. Fixes ControlRefresh unit
10247 2006-12-28 Chris Toshok <toshok@ximian.com>
10249 * Control.cs: contrary to what the comment said, Control.Dock does
10250 not supercede Control.Anchor - the last one you assign to decides
10251 the layout behavior. so we need to keep track of which was the
10252 last set. Also, fix some of the affected property arguments in
10253 PerformLayout calls, and remove an redundant parent.PerformLayout
10256 Add a VisibleInternal property, which returns is_visible. We
10257 can/should get rid of all the usage of this field elsewhere.
10259 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10261 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
10262 control style, not DoubleBuffer. Added UseDoubleBuffering property
10263 that indicates whether doublebuffering is enabled and supported.
10264 (comment from and code based on Gert Driesen's patch in #80324).
10267 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10269 * Control.cs: Fixed a NRE.
10271 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10273 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
10276 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10278 * Control.cs: Rewrote double buffering, now a seperate
10279 class handles all the buffering, no Graphics is disposed of
10280 until the painting is finished (earlier implementation
10281 would crash if the control was resized in the OnPaint,
10282 since it would cause the double buffer to be recreated
10283 and the old one disposed), a separate Graphics is
10284 created for every paint (MS behaviour and anyways the state
10285 of the Graphics would have to be saved and restored otherwise)
10287 * XplatUIDriver.cs:
10289 * XplatUI.cs: Added and implemented GetOffscreenGraphics
10290 so that we can get the graphics for the back buffer without
10291 having to create a new one and remove the offscreen_dc parameter
10292 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
10294 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10296 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
10297 Also make virtual all the key-related methods.
10299 * ListViewItem.cs: Make virtual the key related methods for
10300 ListViewSubItemCollection.
10302 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10306 * ThemeWin32Classic.cs:
10307 * Theme.cs: Initial support for Tile view in ListView,
10308 as well as the implementation of the required bits for it (Item
10311 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10313 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
10314 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
10315 Provide useful exception messages.
10317 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10319 * TrackBar.cs: Remove a warning.
10320 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
10321 when used by DateTimePicker, fixes #80287. This also requires that
10322 MonthCalendar implements it's own drawing for the yearly updown control,
10323 otherwise the Capture tracking would be too complicated. Removed the Click
10324 and DoubleClick events (according to comments they were hiding the base class
10325 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
10326 raise these events, not that they cannot be raised. It is possible to raise
10327 them by calling OnClick and OnDoubleClick). Added two internal fields in
10328 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
10329 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
10330 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
10331 event, no longer needed.
10333 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10335 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
10336 true if new value differs from current value.
10338 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10340 * Control.cs: ControlCollection.Count must be public. Fixed build of
10343 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10345 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
10347 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10349 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
10351 2006-12-26 Everaldo Canuto <everaldo@simios.org>
10353 * Control.cs: Invalidates control including when Width and Height is
10354 equal zero or is not visible, only Paint event must be care about
10355 this. Fixes #79913.
10357 2006-12-26 Chris Toshok <toshok@ximian.com>
10359 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
10360 more corcompare work.
10362 * DataGridView.cs: fix compiler warning.
10364 * ColumnHeader.cs: some corcompare work, and also take the
10365 opportunity to make the internal fields private.
10367 * ListView.cs: fix the fallout from the above field change.
10369 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
10371 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
10372 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
10373 ToolStripTextBox.cs: Fixes to events and corcompare.
10375 2006-12-26 Everaldo Canuto <everaldo@simios.org>
10377 * ListView.cs: Call owner.OnMousexx event to propagate events from
10378 item to ListView. Fixes #80367.
10380 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10382 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
10383 if value is less than one. ItemHeight should not be set to a value
10384 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
10385 Removed extra tabs.
10387 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
10389 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
10390 * ToolStripStatusLabel.cs: Add Spring for Moma.
10392 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10394 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
10395 Fixed code formatting. Removed debug code.
10396 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
10398 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10400 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
10401 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
10402 ArgumentOutOfRangeException if ColumnCount is negative. In
10403 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
10404 less than 4 or higher than 32768.
10405 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
10406 Fixed FormatProvider to return CurrentCulture unless explicitly set.
10407 Fixed IsFormatProviderDefault to return true if FormatProvider has
10408 not been explicitly set.
10410 2006-12-25 Chris Toshok <toshok@ximian.com>
10412 * Application.cs: add a couple of 2.0 events.
10414 2006-12-25 Chris Toshok <toshok@ximian.com>
10416 * Control.cs: fix compiler warning.
10418 * AxHost.cs: corcompare fixes.
10420 * ApplicationContext.cs: corcompare fixes.
10422 2006-12-25 Chris Toshok <toshok@ximian.com>
10424 * Control.cs: only update dist_right/dist_bottom if the
10425 width/height is > 0. this fixes anchored controls being resized
10426 smaller until they disappear and then resized larger again.
10428 2006-12-25 Chris Toshok <toshok@ximian.com>
10430 * Control.cs: a couple of changes. Remove dist_left and dist_top,
10431 since they're nothing more than X/Left and Y/Top, respectively.
10433 Also, move back to a per-control Bitmap/Graphics for
10434 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
10435 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
10438 2006-12-25 Miguel de Icaza <miguel@novell.com>
10440 * MessageBox.cs: Implemented overload that takes a new "bool
10441 displayHelpButton" by adding a new internal field "show_help".
10442 When clicked this will raise the HelpRequested on the owner or the
10445 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
10446 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
10448 * ListView.cs: Add support ColumnWidthChanged and
10449 ColumnWidthChanging.
10451 Add support for ColumnReordered event.
10452 (ReorderColumn): Add NET_2_0 specific support for cancelling the
10455 Very nice codebase!
10457 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
10459 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
10461 2006-12-24 Chris Toshok <toshok@ximian.com>
10463 * GridTablesFactory.cs: 2.0 corcompare work.
10465 * ToolStripContainer.cs: add "override" to
10466 ContextMenuStripChanged, and remove the local event object.
10468 * ToolStripDropDown.cs: same with a couple properties.
10470 * ToolStripPanel.cs: same with AutoSizeChanged event.
10472 * TextBoxBase.cs: add "override" to AutoSizeChanged.
10474 * Form.cs: add the remaining 2.0 events, and do some corcompare
10477 * DateTimePicker.cs: add "new" to padding.
10479 * ButtonBase.cs: use Control's use_compatible_text_rendering.
10481 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
10483 * DataGridView.cs: PaddingChanged is overridden.
10485 2006-12-24 Chris Toshok <toshok@ximian.com>
10487 * Control.cs: corecompare work here too.
10489 * DataGridViewElement.cs, DataGridView.cs,
10490 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
10491 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
10492 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
10493 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
10496 2006-12-24 Miguel de Icaza <miguel@novell.com>
10498 * Control.cs: Switched the error message on the console for a
10499 todo. A review of the code will have to cope with this anyways
10500 (since its a large feature, it is in our radar) and it was
10501 producing too much output when running PDN.
10503 * ToolStripComboBox.cs: Set the text when the SelectedIndex
10504 changes. Applications depend on this (PDN 2.72)
10506 2006-12-23 Chris Toshok <toshok@ximian.com>
10508 * TableLayoutSettings.cs: finish up the corcompare work for this
10511 2006-12-23 Chris Toshok <toshok@ximian.com>
10513 * Control.cs: make SetImplicitBounds internal, do some futzing
10514 with LayoutEngine so that it's available in 1.1, and remove the
10515 entire duplicated code mess from PerformLayout. Use
10516 System.Windows.Forms.Layout.DefaultLayout instead.
10518 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
10520 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
10522 * Form.cs: Add MainMenuStrip property.
10524 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
10526 * Control.cs: Add ContextMenuStrip property and implementation.
10527 Fix ContextMenu implementation to show menu centered on control when
10528 activated using the keyboard instead of showing at screen (0,0).
10530 * ToolStripDropDown.cs: Fix needed overload of Show ().
10532 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10534 * Menu.cs: Name property added for 2.0 profile.
10536 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10538 * Menu.cs: Update information about FindMenuItem, method to be
10541 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10543 * MenuAPI.cs: When deselect items deselect also selected subitems.
10545 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10547 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
10548 FindSubItemByCoord to found itens that is not active, also an
10549 cheking added to FindSubItemByCoord to search for items only
10550 in visible popup windows. Fixes #80274.
10552 2006-12-22 Everaldo Canuto <everaldo@simios.org>
10554 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
10555 internal property, it be care about change ExStyle.
10557 2006-12-22 Andreia Gaita <avidigal@novell.com>
10559 * ContainerControl.cs: set activeControl for parent forms up the
10560 tree when the new activecontrol is a container.
10561 When validating the active control, if it is a container, also
10562 raise up the validation for it's active control. Fixes #80280
10564 * Control.cs: Add internal property flag and check to prevent
10565 Focus events from getting raised when Select() is called for
10566 a ContainerControl. There are still too many focus events being
10567 raised at the moment though.
10568 Cleaned up the code a bit.
10570 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10572 * Control.cs: Added all missing 2.0 events.and
10573 fixed a couple of corcompare issues.
10574 * TrackBar.cs: Implemented missing 2.0 bits.
10575 * MonthCalendar.cs,
10576 * DateTimePicker.cs,
10577 * MdiClient.cs: Fixed some corcompare issues.
10579 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10581 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
10582 SplitterPanel.cs: corecompare work.
10584 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10586 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
10587 Clean up warnings for BackgroundImageChanged and PaddingChanged
10588 events now that they are implemented in Control.cs.
10590 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10592 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
10594 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
10595 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
10596 of TableLayoutPanel and supporting cast.
10598 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10601 - GrabWindow now confines the mouse pointer to the confine window.
10602 - Added Win32ClipCursor and Win32GetClipCursor.
10605 - Added CaptureWithConfine to be able to capture and confine
10608 * InternalWindowManager.cs:
10609 - Call CaptureWithConfine instead of Capture if we're an
10610 MdiChild (fixes #79982).
10612 2006-12-21 Chris Toshok <toshok@ximian.com>
10614 * DataGrid.cs: guard against the initial state of selection, where
10615 selection_start == -1. make sure we only select from index >= 0.
10618 2006-12-21 Chris Toshok <toshok@ximian.com>
10620 * Control.cs: we don't need to be so draconian with
10621 UpdateDistances, and we thusly don't need to call it before
10622 calling PerformLayout in ResumeLayout. Fixes bug #80289.
10624 2006-12-21 Daniel Nauck <dna@mono-project.de>
10627 TextBox.cs: Implemented AutoComplete properties.
10629 2006-12-20 Chris Toshok <toshok@ximian.com>
10631 * DataGridView*.cs: some corecompare work.
10633 2006-12-20 Jackson Harper <jackson@ximian.com>
10635 * XplatUIX11.cs: We need to hide the caret when deleting it,
10636 otherwise you get carets left lying around everywhere.
10637 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
10638 prevents getting some weird half drawn caret tracers when
10640 * TextControl.cs: Attempt to reduce the number of times we need to
10641 recreate the caret.
10643 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
10645 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
10647 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10649 * DateTimePicker.cs:
10650 - Implemented missing 2.0 bits.
10651 - Changed some default values to match MS.
10653 2006-12-20 Jackson Harper <jackson@ximian.com>
10655 * TextBoxBase.cs: When changing the font across the document we
10656 can't recalculate after changing each line, since that will cahnge
10658 - PreferredHeight is a little different than i thought.
10659 - When backspacing, move the caret before we do the actual char
10660 delete, because when that delete crosses a wrap boundary the
10661 positional information will change.
10663 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10665 * Control.cs: Added some missing 2.0 bits:
10666 BackgroundImageLayout, BackgroundImageLayoutChanged,
10667 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
10668 add IBindableComponent and IDropTarget implementation.
10670 * MonthCalendar.cs:
10671 - Added all missing 2.0 features:
10672 BackgroundImageLayout, RightToLeftLayout,
10673 OnHandleDestroyed, RightToLeftLayoutChanged,
10674 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
10676 - Rewrote all the BoldDate code, it was completely broken.
10677 - Fixed all the tests (the tests can now be re-enabled, the
10678 problems were not with the tests, but with the control, it was
10681 * DateTimePicker.cs: Changed the location where the
10682 MonthCalendar is shown.
10684 2006-12-19 Chris Toshok <toshok@ximian.com>
10686 * DataGridView.cs: add IDropTarget implementation.
10688 * ToolStripPanel.cs: add IDropTarget implementation.
10690 2006-12-19 Jackson Harper <jackson@ximian.com>
10692 * TextControl.cs: soft now means something different than what it
10693 used to mean, we want to move the caret regardless of whether or
10694 not this break was soft (would we really have wanted the caret
10695 to not move with the break in the old context?)
10696 * TreeView.cs: Make sure we factor in the vert scrollbar when
10697 calculating the horizontal scrollbar's maximum.
10699 2006-12-19 Andreia Gaita <avidigal@novell.org>
10701 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
10702 check for keywords in alternate casing, close bug #80049.
10704 2006-12-19 Chris Toshok <toshok@ximian.com>
10706 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
10707 methods (which all do nothing).
10709 * IDropTarget.cs: add the 4 missing methods.
10711 2006-12-19 Chris Toshok <toshok@ximian.com>
10713 * TableLayoutRowStyleCollection.cs: corcompare work.
10715 * TableLayoutSettings.cs: same.
10717 * TableLayoutStyle.cs: same.
10719 * TableLayoutColumnStyleCollection.cs: same.
10721 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
10723 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
10724 TableLayoutPanel I've had in my local tree for way too long.
10726 2006-12-19 Miguel de Icaza <miguel@novell.com>
10728 * TableLayoutSettings.cs: Finish the public API (still needs all
10729 the logic to update on changes).
10731 * TableLayoutPanelCellPosition.cs: new file.
10733 * TableLayoutRowStyleCollection.cs,
10734 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
10735 TableLayoutSettings.cs: Track the final 2.0 table api.
10737 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10739 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
10740 and Image List 2.0 members for ColummnHeader.
10741 * ListView.cs: Add key-related 2.0 methods for
10742 ColumnHeaderCollection.
10744 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
10746 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
10747 ArgumentNullException if items argument is null. Ignore null item in
10748 arrays. Removed extra tabs.
10750 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
10752 * MonthCalendar.cs: Fixed InvalidCastException.
10754 2006-12-19 Jackson Harper <jackson@ximian.com>
10756 * TextControl.cs: Don't increment the position here.
10757 - When calculating char positions only add in the line break size
10758 for hard line breaks.
10760 2006-12-19 Andreia Gaita <avidigal@novell.org>
10762 * SendKeys.cs: Changed some things to match ms.net behaviour
10763 when parsing shifted capital letters.
10765 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
10766 Add window handle as parameter to SendInput. X11 needs the
10767 window handle, and the handle being passed to it in the keys
10768 queue is the active control handle (which windows needs), not
10771 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
10772 to support SendKeys on X.
10774 * X11Keyboard: Implement helper method to lookup a linux keycode
10775 given the virtual keycode. Added table of keycode-2-virtualkey
10776 values to support this.
10778 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780 * ListView.cs: Add support for SelectedIndexCollection
10781 and SelectedItemCollection 2.0 methods. Implement support
10783 * ListViewItem.cs: Add support for ListViewSubItemCollection
10784 2.0 methods. Also, fix an incorrect behavior of AddRange method
10785 (it shouldn't call Clear).
10786 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
10788 2006-12-19 Jackson Harper <jackson@ximian.com>
10791 * TextBoxBase.cs: New args for FormatText
10792 * TextControl.cs: Rewrote the main drawing method, this version
10793 feels a little easier to understand and debug to me. Hopefully it
10794 does to others also
10795 - Fix FormatText to OR in the new formating values. Added
10796 FormatSpecified param, basically this works in the same way as
10797 BoundsSpecified in Control.
10798 - Set the caret properties when the caret is positioned.
10799 - When wrapping text make sure that we calculate the width of the
10801 - when calculating alignments we might have wrapped down to the
10802 next line, so don't search for an individual tag, search for the
10804 - We need to invalidate the selection area when we replace the
10807 2006-12-19 Daniel Nauck <dna@mono-project.de>
10809 * Application.cs: add Restart () 2.0 support
10811 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10813 * MenuItem.cs: Invalidate menu item rectangle after change Enable
10814 property. Fixes #80268.
10816 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10818 * MenuAPI.cs: Dont trigger select event when closes top menu
10819 item. Fixes #80270.
10821 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10823 * MenuAPI.cs: When you click on menuitem only trigger onselect
10824 event for top menu itens. Fixes #80271.
10826 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10828 * MdiWindowManager.cs: Make IconicBounds depend on
10829 the bottom of MdiClient, not the top (fixes #80267)
10831 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10833 * MdiClient.cs: Added missing 2.0 attribute
10835 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
10838 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
10840 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10842 * MenuAPI.cs: Fix click when menuitem is not popup,
10843 this regression was caused by last commit (#80272).
10845 2006-12-17 Everaldo Canuto <everaldo@simios.org>
10847 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
10848 fire click event or close menu. Fixes #80272.
10850 2006-12-17 Daniel Nauck <dna@mono-project.de>
10852 * ListViewHitTestInfo.cs: add
10854 2006-12-17 Daniel Nauck <dna@mono-project.de>
10856 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
10857 * FlatButtonAppearance.cs: add
10858 * DockingAttribute.cs: add
10860 2006-12-17 Chris Toshok <toshok@ximian.com>
10862 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
10863 and rebind our columns when it does - this way, if you make
10864 changes to the DataTable (or set the Table attribute on a DataView
10865 after setting it as the DataGrid's DataSource, the changes are
10866 made visible.) Fixes bug #80107.
10868 2006-12-17 Daniel Nauck <dna@mono-project.de>
10870 * ListViewGroup.cs: add internal Location property for layouting.
10871 * Theme.cs: add abstract ListViewGroupHeight function.
10872 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
10874 2006-12-16 Andreia Gaita <avidigal@novell.com>
10876 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
10877 Added reset of selected index to 0 when adding first tab page.
10880 * NumericUpDown.cs: Fix NET_2_0 check
10882 2006-12-16 Daniel Nauck <dna@mono-project.de>
10884 * ListViewGroup.cs: fixed DefaultValueAttribute value
10886 2006-12-16 Daniel Nauck <dna@mono-project.de>
10888 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
10890 2006-12-15 Miguel de Icaza <miguel@novell.com>
10892 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
10893 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
10894 ScrollableControl.cs: Add a handful of methods that are
10897 2006-12-15 Chris Toshok <toshok@ximian.com>
10899 * XplatUIWin32.cs: initial implementation of the Reversible
10900 drawing functions. there are some problems. DrawReversibleFrame
10901 doesn't seem to work at all for Dashed FrameStyle, and in the
10902 Thick case there are drawing errors at the corners (we probably
10903 need to bind Rectangle instead of doing moveto/lineto's.)
10905 2006-12-16 Andreia Gaita <avidigal@novell.com>
10907 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
10908 to send blocks of key messages. Send accumulates keys to send with Flush,
10909 while SendWait sends all keys immediately.
10911 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10912 XplatUIX11.cs, XplatUIX11-new.cs:
10913 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
10914 to Win32 SendInput.
10915 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
10917 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
10918 testing for ms.net on this class is very tricky, as the tests run too fast
10919 to allow the hook to release, essentially freezing the keyboard and the
10920 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
10923 2006-12-16 Daniel Nauck <dna@mono-project.de>
10925 * Padding.cs: fixed serialization compability to MS ("_var" field names),
10926 added missing attributes.
10928 2006-12-15 Daniel Nauck <dna@mono-project.de>
10930 * ListViewGroup.cs: Added missing attributes.
10931 * ListViewGroupCollection.cs: Added missing attributes.
10933 2006-12-15 Daniel Nauck <dna@mono-project.de>
10935 * ListViewItem.cs: fixed ListViewSubItem text property.
10937 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10939 * Control.cs: Added missing 2.0 attributes
10941 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10943 * MdiClient.cs: Added missing 2.0 attribute.
10944 * MonthCalendar.cs: Added some missing 2.0 attributes
10947 2006-12-15 Daniel Nauck <dna@mono-project.de>
10949 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
10951 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
10953 * MainMenu.cs: Add the new 2.0 constructor to help out people
10954 using the MainMenu in VS2005.
10956 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10958 * MdiChildContext.cs: Removed it, no longer used.
10959 * MdiClient.cs: Added missing 2.0 attributes.
10961 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10963 * InternalWindowManager.cs: Fix a NullRef with previous
10964 changes for toolwindows.
10966 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10969 - Added AfterTopMostControl to allow for certain controls
10970 to always stay on top when normal controls are brought to
10974 - (DrawInversibleRectangle): Get window rectangle from Win32
10975 in stead of from control, since Win32 doesn't calculate
10976 screen coords correctly from control's Location if it
10977 have docked siblings.
10979 * MdiWindowManager.cs:
10980 - Correct the control menu popup location when clicked on
10981 the maximized form icon. (fixes #80223.1)
10982 - Don't show moving rectangle if mouse hasn't moved from
10983 the original clicked point.
10984 - Removed FormGotFocus handler (not used).
10985 - Calculate the control buttons location from the main
10986 window's size and not client size (fixes #79770).
10987 - Form is now closed when the form icon is double-clicked
10989 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
10991 * InternalWindowManager.cs:
10992 - Moved some MDI-only methods to MdiWindowManager.
10993 - Removed unused properties and methods.
10994 - Unified method naming for methods handling wm messages.
10995 - Moved all message handling to seperate methods for
10998 * ThemeWin32Classic.cs:
10999 - DrawManagedWindowDecorations now draws the title bar
11000 with a gradient brush.
11001 - Add a CPDrawButtonInternal that allows us to specify
11002 light, normal and dark colors for the buttons (control
11003 buttons for MDI children were drawn with the same light
11004 color as the background, therefore loosing the 3D effect).
11007 - Add a CapturedControl property that is used to
11008 determine the control to resize (defaults to parent).
11009 Needed for MdiClient, since its SizeGrip's parent is
11010 MdiClient, but the control to resize is the main form.
11013 - Set SizeGrip's CapturedControl to the main form in order
11014 to resize the main form and not the MdiClient.
11015 - Override AfterTopMostControl to leave the scrollbars
11018 2006-12-15 Daniel Nauck <dna@mono-project.de>
11020 * ListView.cs: fixed ListViewItemCollection AddRange and
11021 implemented ListViewItemCollection AddRange 2.0 support.
11023 2006-12-15 Daniel Nauck <dna@mono-project.de>
11025 * ListViewGroup.cs: Add.
11026 * ListViewGroupCollection.cs: Add
11027 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
11028 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
11029 stub for ImageKey 2.0 support.
11031 2006-12-14 Mike Kestner <mkestner@novell.com>
11033 * ListView.cs: add text padding to the autocalculation for columns
11034 of width -2. Fixes #80207.
11036 2006-12-14 Mike Kestner <mkestner@novell.com>
11038 * ListView.cs: add some index guarding for partial row navigation
11039 logic. Fixes #80250.
11041 2006-12-14 Mike Kestner <mkestner@novell.com>
11043 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
11044 are added or inserted to the collection. Fixes #81099.
11046 2006-12-13 Everaldo Canuto <everaldo@simios.org>
11048 * MenuAPI.cs: Closes menu when right click out side of popup
11049 it fix problem in ContextMenu and MainMenu. Fixes #80252.
11051 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11053 * ListViewItem.cs: Fix dumb error.
11055 * ListView.cs: Add Find and ContainsKey methods in
11056 ListViewItemCollection, and also return true for IsReadOnly
11057 and IsFixedSize (changes for 2.0).
11059 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
11061 * Control.cs: Allow Region to be set to null.
11063 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11065 * MdiWindowManager.cs: Remove unused (commented out) code.
11066 * Form.cs: When the MdiChild is maximized, the form needs
11067 WM_NCMOUSELEAVE, so request it.
11068 * InternalWindowManager.cs:
11069 - Added tooltips to control buttons.
11070 - Removed duplicated control button handling code.
11071 - Removed unused (commented out) code.
11073 2006-12-12 Everaldo Canuto <everaldo@simios.org>
11075 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
11076 was used because we must set cursor without trigger ChangeCursor event
11077 and without change Cursor control property. Fixes #79963.
11079 2006-12-12 Andreia Gaita <avidigal@novell.com>
11081 * Control.cs: Check if Region setter value is null, and ignore
11083 2006-12-12 Jackson Harper <jackson@ximian.com>
11085 * TextControl.cs: We were almost always drawing one more line then
11086 needed, since the GetLineByPixel will return the last line found
11087 at that pixel. In most cases though, we were invalidating up to
11088 the junction between two lines.
11089 - Improve debug code.
11091 2006-12-12 Chris Toshok <toshok@ximian.com>
11093 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
11094 and FillReversibleRectangle.
11096 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
11097 and FillReversibleRectangle.
11099 * XplatUIWin32.cs: add stubs which do nothing for
11100 DrawReversibleFrame, DrawReversibleLine, and
11101 FillReversibleRectangle.
11103 * XplatUIOSX.cs: add stubs which raise NIE for
11104 DrawReversibleFrame, DrawReversibleLine, and
11105 FillReversibleRectangle.
11107 * XplatUIX11.cs: add working implementation for
11108 DrawReversibleFrame, DrawReversibleLine, and
11109 FillReversibleRectangle.
11111 * ControlPaint.cs: implement DrawReversibleFrame,
11112 DrawReversibleLine, and FillReversibleRectangle, by calling into
11113 the appropriate XplatUI method.
11115 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11117 * Form.cs: Make MdiClient have the focus even if it's
11118 not selectable, since it should receive WM_KEY* and WM_MOUSE
11119 messages. Fixes #79907.
11121 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11123 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
11124 queried after the window is created.
11126 * XplatUIX11.cs: Added SendParentNotify to implement
11127 WM_PARENTNOTIFY logic. Fixes #79965.
11129 * Control.cs: Added MakeParam.
11131 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11133 * MdiClient.cs: Resume Layout before setting window
11134 states (fixes #80201).
11136 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11138 * MenuAPI.cs: Deselect a menu item after performing
11139 the click (fixes #80197).
11141 2006-12-11 Jackson Harper <jackson@ximian.com>
11143 * TextBoxBase.cs: We need to cap this value, since Maximum -
11144 ViewPortHeight can be less than zero.
11145 - Only do selection with the left mouse button.
11146 * TextBox.cs: Don't tell the world that we have a context menu.
11147 * Control.cs: New method so that we can control whether or not the
11148 context menu is visible outside MWF.
11150 2006-12-11 Everaldo Canuto <everaldo@simios.org>
11152 * ToolBarButton.cs: Fix text positon.
11154 2006-12-11 Miguel de Icaza <miguel@novell.com>
11156 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
11158 * Control.cs (DoubleBuffered): Add implementation.
11160 * Application.cs (OpenForms): Add.
11162 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
11164 * Form.cs: Use opacity instead of Opactiy to determine if we need
11165 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
11167 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
11169 * Control.cs: Fix NRE if Control.Site was set to null.
11171 2006-12-11 Chris Toshok <toshok@ximian.com>
11173 * Control.cs: ControlCollection.Remove should return if the arg is
11174 null, and ControlCollection.SetChildIndex should raise a ANE.
11176 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
11178 * Control.cs: Verify value set for Dock property. Code formatting
11181 2006-12-11 Jackson Harper <jackson@ximian.com>
11183 * TextControl.cs: Draw the caret and the selection when a flag is
11185 * TextBoxBase.cs: We want to draw the caret and the selection for
11186 TextBox but not for TextBoxBase.
11187 - If the window is resized and scrolling is no longer needed (the
11188 whole doc is visible) set the scroll position to zero.
11189 - The default SelectWord (the one TextBox uses) should move the
11190 caret to the end of the word.
11191 - SelectAll moves the caret to the end of the selection.
11192 * TextBox.cs: We don't selectall on focus, we just do it when the
11193 control is created.
11195 2006-12-11 Mike Kestner <mkestner@novell.com>
11197 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
11199 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11201 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
11203 * ListViewItem.cs: Add Name 2.0 property.
11205 2006-12-11 Andreia Gaita <avidigal@novell.com>
11207 * TabControl.cs: Set visibility on selected or default tab
11208 when tabcontrol handle is created, so that it's contents
11209 actually show up (duh). Fixes #80193
11210 Don't redraw the control if there is no handle created, as
11211 the selected index might be completely invalid. Added some tests
11214 2006-12-11 Everaldo Canuto <everaldo@simios.org>
11216 * ToolBar.cs: Uses maximun width and height of all buttons as
11217 button rectangle when ButtonSize specified, it looks strange but
11218 is what happens in Win32. Fixes #80189.
11220 2006-12-11 Jackson Harper <jackson@ximian.com>
11222 * TextControl.cs: Need to track undo levels ourself, since
11223 compound actions will mess them up.
11225 2006-12-10 Andreia Gaita <avidigal@novell.com>
11227 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
11228 SelectedIndex value is changed (even if it's not valid).
11229 Reset SelectedIndex to 0 when the handle is created and if
11230 the current index is invalid.
11231 Fixes SelectdeIndex unit tests and #80128
11233 2006-12-08 Chris Toshok <toshok@ximian.com>
11235 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
11236 calls EndEdit, it needs to be called before we set current_cell to
11237 its new value. Otherwise, we end up committing the value in the
11238 textbox to the new cell as well. Fixes bug #80160.
11240 2006-12-08 Chris Toshok <toshok@ximian.com>
11242 * Form.cs (set_CancelButton): if the button's DialogResult is
11243 None, set it to Cancel. Fixes bug 80180.
11245 2006-12-08 Jackson Harper <jackson@ximian.com>
11247 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
11248 to watch ourselves when setting the canvas size and setting the
11251 2006-12-08 Chris Toshok <toshok@ximian.com>
11253 * DataGrid.cs: comment out the two MakeTransparent calls for the
11254 time being so people using trunk (and not 1.2.2) on windows can
11255 actually use the datagrid. This deals with bug #80151.
11257 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
11259 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
11260 Graphics.DrawImage (image, int, int, int, int) overload instead
11261 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
11262 the dpi difference and was blurring images it drew.
11265 2006-12-08 Chris Toshok <toshok@ximian.com>
11267 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
11268 rowcnt is 0 (such as with an empty datasource), and make sure we
11269 initialize not_usedarea.Y to cells.Y, so we don't draw over the
11270 other areas (caption, parent row, etc, etc). Fixes bug #80095.
11272 2006-12-08 Chris Toshok <toshok@ximian.com>
11274 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
11277 2006-12-08 Chris Toshok <toshok@ximian.com>
11279 [ Fixes bug #80167 ]
11281 * ThemeWin32Classic.cs: don't draw the image if the button's flat
11282 style is FlatStyle.System.
11284 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
11285 ButtonBase.flat_style private, and switch uses of it to the public
11288 2006-12-08 Chris Toshok <toshok@ximian.com>
11290 [ Fixes bug #80121 ]
11292 * ThemeWin32Classic.cs: center the caption text in the datagrid
11295 * DataGrid.cs: lessen the amount we add to the caption height from
11296 6 to 2. 6 was making it huge.
11298 2006-12-08 Andreia Gaita <avidigal@novell.com>
11300 * UpDownBase: Handle MouseWheel call directly instead of capturing
11301 the inner textbox's OnMouseWheel. Fixes #80166
11303 2006-12-08 Jackson Harper <jackson@ximian.com>
11305 * TextControl.cs: We need to invalidate the textbox when we empty
11306 it (how had this not been discovered before?)
11308 2006-12-08 Jackson Harper <jackson@ximian.com>
11310 * TextBoxBase.cs: Reworked the mouse down code so I could get it
11311 to behave like MS, we now ignore the eventargs.Click and just
11312 track state ourself, which we were already doing anyways.
11313 - Constrain the double click handler to the double click size.
11315 2006-12-08 Chris Toshok <toshok@ximian.com>
11317 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
11318 direction if that scrollbar isn't shown. fixes bug #80158.
11320 2006-12-08 Andreia Gaita <avidigal@novell.com>
11322 * NumericUpDown.cs: Update value on getter. Fixes #79950
11324 2006-12-08 Chris Toshok <toshok@ximian.com>
11326 * MenuItem.cs: add back in the event cloning code. I didn't know
11327 how to do it in the face of the EventHandlerList work i'd done
11328 last week. Fixes bug #80183.
11330 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
11332 * Control.cs: Add an invalidate to the BackgroundImage setter.
11335 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
11337 * ToolStrip*: Add some small properties reported by MoMA, fix event
11338 firing and default properties based off of unit tests, and add some
11339 attributes based off of the class status page.
11341 2006-12-07 Jackson Harper <jackson@ximian.com>
11343 * TextBoxBase.cs: Take HideSelection into account when determining
11344 whether or not to show the selection.
11345 * RichTextBox.cs: After inserting the RTF into the document move
11346 the cursor to the beginning of the document.
11348 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
11350 * Control.cs: Remove static ArrayList "controls" which maintained
11351 a reference to every control created.
11352 * Application.cs: Create a static FormCollection to maintain a reference
11353 to every form created. Use it in places that formerly enumerated through
11354 the controls one looking for forms.
11355 * Form.cs: Add and remove self from above FormCollection.
11357 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
11359 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
11360 not libgdk (though it makes me wonder why I didn't have any
11363 2006-12-07 Chris Toshok <toshok@ximian.com>
11365 [ you had to know this was coming after that last commit...]
11367 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
11368 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
11369 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
11372 2006-12-07 Chris Toshok <toshok@ximian.com>
11374 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
11375 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
11376 all the behavior we need for double buffering.
11378 * XplatUIDriver.cs: implement the 3 double buffer methods using a
11379 client side Bitmap, just like the old Control-based double buffer
11380 code did. The methods are virtual, so each XplatUI driver
11381 subclass can replace the implementation to use a faster, platform
11384 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
11385 double buffer code, and clean things up a bit in the process.
11387 2006-12-06 Chris Toshok <toshok@ximian.com>
11389 * Control.cs: reindent WndProc.
11391 2006-12-06 Chris Toshok <toshok@ximian.com>
11393 [ I wanna be like BenM when I grow up ]
11395 * Hwnd.cs: create a single static Graphics object on the static
11396 Bitmap we create. use this for our text measurements.
11398 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
11399 This was causing us to allocate a backbuffer for every control,
11400 even when it wasn't flagged as double buffered. Instead use the
11401 single graphics instance. This might have implications for
11402 multithreaded applications. If we run into problems we can switch
11403 to creating 1 Graphics per control, on the static Hwnd bitmap.
11405 this change nets us a 7M savings in private dirty mappings when
11406 running FormsTest.exe.
11408 2006-12-06 Chris Toshok <toshok@ximian.com>
11410 * ListView.cs: the BackgroundImage override is just to set
11411 attributes. chain up to base.BackgroundImage.
11413 * RichTextBox.cs: same.
11415 * ToolBar.cs: same, but we need to also redraw the toolbar when it
11416 changes, so instead a handler for BackgroundImageChanged.
11418 * Control.cs: make background_image private.
11420 2006-12-06 Chris Toshok <toshok@ximian.com>
11422 * ScrollBar.cs: change the assignment of cursor to Cursor. not
11423 sure we even need this assignment, but roll with it for now.
11425 * Control.cs: make the cursor field private.
11427 2006-12-06 Chris Toshok <toshok@ximian.com>
11429 * Form.cs: we don't need to explicitly set ImeMode to
11430 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
11431 behavior in the face of ImeMode.Inherit.
11433 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
11434 change the ctor's assignment to use ImeMode instead of ime_mode.
11436 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
11437 ImeModeInherit. Only check for the parent's imemode (and return
11438 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
11439 This fixes the button unit test, which sets both ImeMode and
11440 DefaultImeMode to ImeMode.Disable.
11442 also make the ime_mode field private.
11444 2006-12-06 Chris Toshok <toshok@ximian.com>
11446 * Control.cs: make control_style private.
11448 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
11449 setting the styles to true, then setting them to false instead of
11450 reverting to their previous values.
11452 also, call SetStyle on the scrollbars instead of using
11453 control_style directly.
11455 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
11457 * FormCollection.cs: Implement. [2.0]
11459 2006-12-06 Chris Toshok <toshok@ximian.com>
11461 * Control.cs: make tab_stop private.
11463 * Label.cs: set TabStop, not tab_stop. reformat some event
11464 add/remove methods to make them more compact.
11466 2006-12-06 Chris Toshok <toshok@ximian.com>
11468 * RadioButton.cs: fix TabStop handling.
11470 2006-12-06 Chris Toshok <toshok@ximian.com>
11472 * TextBox.cs: remove the explicit assignments to has_focus.
11475 * ButtonBase.cs: remove the assignment to has_focus. Control will
11478 2006-12-06 Chris Toshok <toshok@ximian.com>
11480 * ButtonBase.cs: remove all uses of is_enabled from this code.
11481 it's always true when any of the code containing the checks is
11484 2006-12-06 Chris Toshok <toshok@ximian.com>
11486 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
11487 with different semantics (some are present in both 1.1 and 2.0
11488 profiles) so that we match MS's behavior in our unit tests.
11490 2006-12-06 Jackson Harper <jackson@ximian.com>
11492 * TextControl.cs: Make this operation undoable.
11493 * TextBoxBase.cs: Factor the border width into the preferred
11495 - implement Modified as per the spec.
11497 2006-12-06 Chris Toshok <toshok@ximian.com>
11499 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
11501 2006-12-06 Chris Toshok <toshok@ximian.com>
11503 * Control.cs: make right_to_left and context_menu fields private.
11505 2006-12-06 Chris Toshok <toshok@ximian.com>
11507 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
11508 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
11509 Control.child_controls private. switch all uses over to
11512 2006-12-06 Chris Toshok <toshok@ximian.com>
11514 * System.Windows.Forms/GroupBox.cs,
11515 System.Windows.Forms/AccessibleObject.cs,
11516 System.Windows.Forms/ErrorProvider.cs,
11517 System.Windows.Forms/Control.cs,
11518 System.Windows.Forms/UpDownBase.cs,
11519 System.Windows.Forms/ScrollBar.cs,
11520 System.Windows.Forms/DateTimePicker.cs,
11521 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
11522 System.Windows.Forms/ToolTip.cs,
11523 System.Windows.Forms/RadioButton.cs,
11524 System.Windows.Forms/LinkLabel.cs,
11525 System.Windows.Forms/Splitter.cs,
11526 System.Windows.Forms/TextBoxBase.cs,
11527 System.Windows.Forms/ToolStripTextBox.cs,
11528 System.Windows.Forms/ContainerControl.cs,
11529 System.Windows.Forms/ThemeWin32Classic.cs,
11530 System.Windows.Forms/SizeGrip.cs,
11531 System.Windows.Forms/ToolStripDropDown.cs,
11532 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
11533 private. switch all uses over to Control.Parent.
11535 2006-12-06 Chris Toshok <toshok@ximian.com>
11537 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
11538 Control does this before calling emitting these events.
11540 * TabControl.cs: same.
11542 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
11543 Control.client_rect.
11545 * ButtonBase.cs: use the ClientSize property instead of the
11548 * ScrollableControl.cs: same.
11550 * Control.cs: another pass at making properties private. also,
11551 move the initialization of tab_stop to the ctor.
11553 2006-12-05 Andreia Gaita <avidigal@novell.com>
11555 * TabControl.cs: Let the selected index be set freely if the
11556 control handle is not yet created.
11558 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
11560 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
11561 internal until I can rewrite DefaultLayout.
11562 * ToolStrip.cs: Fix build error and some general cleaning.
11563 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
11564 Fix build errors caused by making some of Control's fields private.
11566 2006-12-05 Jackson Harper <jackson@ximian.com>
11568 * TextControl.cs: Redo Insert a little so that it use IndexOf
11569 instead of Split, this prevents it from messing up on things like
11570 \n\n\n. Also more effecient since the split array doesn't need to
11572 * TextBoxBase.cs: AppendText doesnt handle multiline and non
11573 multiline text differently, this is the first of many fixes that
11574 will make multiline/non-multiline the same thing as far as the
11575 TextBoxBase is concerned.
11576 - Don't split the text and insert lines, this can lose some line
11577 endings (like is the last line a soft or hard break). Instead use
11579 - Fix an off by one when combining all the lines in the Text
11581 - Remove separate multiline handling from the Text getter/setter.
11583 2006-12-05 Chris Toshok <toshok@ximian.com>
11585 * ButtonBase.cs: a few changes:
11587 - don't reinitialize internal Control fields in the ctor when they
11588 have the same values as Control sets them.
11590 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
11591 this before calling those methods.
11593 - we don't need to call Refresh for anything. use Invalidate
11596 - OnEnabledChanged doesn't need to redraw at all - Control.cs
11597 calls Refresh in its OnEnabledChanged.
11599 - several of the events we were registered for in the ctor to
11600 redraw ourselves already include calls to Invalidate in the
11601 property setters that raise the events. remove the extra
11604 - reformat a switch statement that was 83274658 columns wide.
11606 2006-12-05 Mike Kestner <mkestner@novell.com>
11608 * ComboBox.cs: fix a unit test regression from a TextBox
11609 SelectionLength return of -1 when there's no selection.
11611 2006-12-05 Chris Toshok <toshok@ximian.com>
11613 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
11614 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
11615 cleaning up some of the internal Control fields being used by
11618 2006-12-05 Mike Kestner <mkestner@novell.com>
11620 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
11621 listbox after AddImplicit calls since it defaults to hidden. Add a
11622 hack to preserve requested heights across DropDownStyle changes.
11624 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
11626 * PropertyGrid.cs: Hide FindFirstItem method from public API.
11628 2006-12-05 Chris Toshok <toshok@ximian.com>
11630 * DataGridView.cs: fix compiler warnings.
11632 * PrintControllerWithStatusDialog.cs: same.
11634 * ToolBar.cs: same.
11636 * FolderBrowserDialog.cs: same.
11638 * Splitter.cs: same.
11640 * DataGridViewComboBoxCell.cs: same.
11642 * XplatUIWin32.cs: same.
11644 * PictureBox.cs: same.
11646 * Win32DnD.cs: same.
11648 * PageSetupDialog.cs: same.
11650 * FileDialog.cs: same.
11652 * PrintDialog.cs: same.
11654 * DataGridTextBoxColumn.cs: same.
11656 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
11658 2006-12-05 Chris Toshok <toshok@ximian.com>
11660 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
11661 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
11662 System.ComponentModel.EventHandlerList work.
11664 2006-12-05 Jonathan Chambers <joncham@gmail.com>
11666 * DrawTreeNodeEventArgs.cs: Added.
11668 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11670 * InternalWindowManager.cs: Remove an unused field.
11672 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11674 * InternalWindowManager.cs:
11675 - Save the point where the title bar is clicked.
11677 * MdiWindowManager.cs:
11678 - Only allow moving of the window as long as the
11679 clicked point on the title bar does not get out of
11680 MdiClient's rectangle. Fixes #79982.
11683 - Added Horizontal/VerticalScrollbarVisible.
11684 - Simplified the scrollbar sizing algorithm.
11685 - Cache the difference in scrolled value in
11686 H/VBarValueChanged and move the calculation out
11689 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11691 * Control.cs: Make the Console.WriteLine in WndProc
11694 2006-12-05 Chris Toshok <toshok@ximian.com>
11696 * ToolStripManager.cs, ToolStripButton.cs,
11697 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
11698 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
11699 ToolStripSplitButton.cs, ToolStripSeparator.cs,
11700 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
11701 ToolStripProgressBar.cs, ToolStripContainer.cs,
11702 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
11703 to using System.ComponentModel.EventHandlerList.
11705 2006-12-04 Chris Toshok <toshok@ximian.com>
11707 * LinkLabel.cs: fix up compiler warnings.
11709 * TableLayoutSettings.cs: same.
11711 * TreeView.cs: same.
11713 * ToolBar.cs: same.
11715 * TabControl.cs: same.
11717 * RichTextBox.cs: same.
11719 * ListViewItem.cs: same.
11721 * PropertyGrid.cs: same.
11723 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
11727 * TextRenderer.cs: fix up compiler warnings.
11731 * Form.cs: corcompare fixes.
11733 * PictureBox.cs: fix up compiler warnings.
11735 * ImageListStreamer.cs: same.
11737 * TrackBar.cs: corcompare fix.
11739 * Control.cs: fix up compiler warnings.
11741 * SplitterPanel.cs: same.
11743 * NumericTextBox.cs: same.
11745 * ImageList.cs: same.
11747 * StatusStrip.cs: same.
11749 * ProgressBar.cs: corcompare fix.
11751 * ToolStripButton.cs: fix up compiler warnings.
11753 * ToolStripStatusLabel.cs: same.
11755 * ToolStripSplitButton.cs: same.
11757 * ToolStripSeparator.cs: same.
11759 * ToolStripProgressBar.cs: same.
11761 * ToolStripDropDownMenu.cs: same
11763 * ToolStripDropDown.cs: same.
11765 * ToolStripDropDownButton.cs: same.
11767 * ToolStrip.cs: same.
11769 * ToolStripControlHost.cs: same.
11771 * ToolStripContentPanel.cs: same.
11773 * ToolStripDropDown.cs: same.
11775 * ToolStripContainer.cs: same.
11777 * ToolStripPanel.cs: same, and add "new" where we need it to work
11778 with the new ArrangedElementCollection.
11780 * ToolStripItemCollection.cs: add "new" where we need it to work
11781 with the new ArrangedElementCollection.
11783 2006-12-04 Andreia Gaita <avidigal@novell.com>
11785 * TabControl.cs: Fix default tab selection to after TabControl
11786 gets focus and not before. Fixes #80128
11788 2006-12-04 Chris Toshok <toshok@ximian.com>
11790 * DataGridTableStyle.cs: remove the gross calling of
11791 datagrid.Refresh from here. It's a broken idea and it doesn't
11794 * DataGrid.cs: instead, just register/unregister from the
11795 DataGridTableStyle events in CurrentTableStyle. we play it
11796 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
11797 even though some would most likely not require it. Fixes bug
11798 #80115 (and one portion of #80117 as a side effect).
11800 2006-12-04 Chris Toshok <toshok@ximian.com>
11802 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
11803 so the textbox (if any) goes away. Fixes bug #80117.
11805 2006-12-04 Chris Toshok <toshok@ximian.com>
11807 * DataGridColumnStyle.cs: set the column's readonly property
11808 initially based on the property descriptor's IsReadOnly. Fixes
11811 2006-12-04 Chris Toshok <toshok@ximian.com>
11813 * ComboBox.cs: wrap the dropdown style changing work in
11814 SuspendLayout/ResumeLayout. Fixes bug #79968.
11816 2006-12-04 Jackson Harper <jackson@ximian.com>
11818 * TextBoxBase.cs: Fix off by one, since these are one-based.
11819 * TextBox.cs: Select all the text when we get focus. The TextBox
11820 does this but the RTB does not.
11822 2006-12-04 Chris Toshok <toshok@ximian.com>
11824 * DataGridTextBoxColumn.cs: remove some spew.
11826 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
11827 but some part of me is saying "it shouldn't be here.." At any
11828 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
11831 2006-12-04 Chris Toshok <toshok@ximian.com>
11833 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
11834 to reassign the propertydescriptor.
11836 2006-12-04 Jackson Harper <jackson@ximian.com>
11839 * TextControl.cs: Remove some unused variables. Maybe this will
11840 patch things up between mike and I.
11841 - don't split lines less then one char wide, if the viewport is
11842 that small text won't be visible anyways.
11844 2006-12-04 Jackson Harper <jackson@ximian.com>
11846 * TextBoxBase.cs: Default selection length is -1, need to do some
11847 more testing on windows to see when this is used for the property.
11848 - Redid the Lines [] property to that we properly remove soft line
11850 - added support for preserving carriage returns
11851 - CanUndo is not a variable like 'is undo enabled' it just returns
11852 true if there is undo operations available.
11853 - AppendText doesn't need to grab the last tag itself anymore,
11854 this happens automatically when we move the cursor.
11855 * TextControl.cs: Add CompoundActions to the undo class. This
11856 allows combining the other operations into one big option. ie a
11857 paste will combine { delete old, insert new, move cursor }
11858 - Add InsertString undo operation
11859 - New method for deleting multiline text
11860 - Add carriage returns to lines. So we can preserve carriage
11861 returns when text is 'roundtripped'
11863 2006-12-04 Chris Toshok <toshok@ximian.com>
11865 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
11866 minimum 0. Fixes the scrollbar exception in bug #80136.
11868 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11871 * MdiWindowManager: Removed unused fields and methods.
11873 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11875 * StatusBar.cs: Update all panels when a AutoSize=Contents
11876 panel needs updating.
11878 * StatusBarPanel.cs: Remove twidth and only use initialize.
11881 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11883 * Form.cs: When a form's MdiParent is set add it directly
11884 on top of the z-order in stead of relying on MdiClient's
11885 ActivateChild to do it. Fixes #80135.
11888 - Remove original_order, mdi_child_list is already doing
11890 - Create mdi_child_list on construction in
11891 stead of first use (avoids a few null checks).
11893 * MenuItem.cs: Use an already existing list of mdi children
11894 to get the correct order of children and remove the other
11897 2006-12-04 Chris Toshok <toshok@ximian.com>
11899 * PropertyGridView.cs: cached_splitter_location is only used in
11900 !DOUBLEBUFFER code.
11902 * PropertyGrid.cs: implement the ComComponentNameChanged event
11903 using Events, hoping that would fix the warning. Looks like a
11904 compiler bug instead (#80144).
11906 * PropertyManager.cs: remove unused method.
11908 2006-11-04 Everaldo Canuto <everaldo@simios.org>
11910 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
11911 include parentesis to fix expression evaluation. Fixes #79634.
11913 2006-11-02 Everaldo Canuto <everaldo@simios.org>
11916 - Changes to fix behavior in Menu control, some reported in #80097
11917 and other detected during behavior refactory like a select event
11919 - Remove unneded "if's" conditions.
11920 - Created an internal to flag when popup is active in control, we need
11921 it because in .NET you can have menu active but without popup active
11922 when you active menu using popup without visible items.
11923 - Mimic win32 behavior for Select and Popup events.
11924 - Dont open popup menu when you dont have visible subitems.
11925 - Do nothing when click on disabled menu item.
11926 - Some small changes to follow the coding style guidelines.
11927 - Unselect menu only when another control gives focus. Fixes #80097.
11928 - Remove unused code.
11930 * MenuItem.cs: internal VisibleItems method to check if menu
11931 theres visible subitems, it will be usefull to fix some
11932 behavior in Menu control.
11934 2006-11-01 Everaldo Canuto <everaldo@simios.org>
11936 * Timer.cs: Tag property for 2.0 profile.
11938 2006-12-01 Chris Toshok <toshok@ximian.com>
11940 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
11942 * Win32DnD.cs: comment out some unused fields.
11944 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
11945 some unused properties/methods.
11947 * XplatUIX11.cs: fix MousePosition so we override the base class's
11948 property instead of conflicting with it.
11950 * PictureBox.cs: comment out some unused fields
11952 * OSXStructs.cs: make some struct fields public.
11954 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
11955 MousePosition so we override the base class's property instead of
11956 conflicting with it.
11958 * X11Dnd.cs: comment out some unused fields
11960 * X11DesktopColors.cs: fix some struct field visibility to quiet
11963 * X11Dnd.cs: remove some debug code.
11965 * ThemeClearlooks.cs: comment out unused field.
11967 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
11969 * ThemeGtk.cs: comment out some unused pinvokes.
11971 * Timer.cs: remove some unused fields.
11973 * ThemeClearlooks.cs: comment out unused field.
11975 * UpDownBase.cs: comment out unused field.
11977 * DataObject.cs: comment out unused field.
11979 * DataGridBoolColumn.cs: reomve unused field.
11981 * DataGrid.cs: remove unused field.
11983 * Cursor.cs: remove old ToBitmap code.
11985 * ControlPaint.cs: remove unused method.
11987 * ScrollBar.cs: remove unused fields.
11989 * ComboBox.cs: remove unused field, and chain up to
11990 AccessibleObject ctor.
11992 * ListBox.cs: remove unused field.
11994 * ButtonBase.cs: wrap a couple fields in NET_2_0.
11996 * GridEntry.cs: remove unused fields.
11998 * Binding.cs: remove unused fields.
12000 * AxHost.cs: remove unused method.
12002 * ContainerControl.cs: remove unused field.
12004 * ScrollableControl.cs: remove unused fields.
12006 2006-12-01 Chris Toshok <toshok@ximian.com>
12008 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
12009 the Where/WhereString stuff. it's easy enough to CWL
12010 Environment.StackTrace.
12012 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
12013 unused private fields.
12015 2006-12-01 Jackson Harper <jackson@ximian.com>
12017 * TextControl.cs: Do not update the view while inserting multiline
12018 text. If we update the view we might wrap lines, before entering
12019 the new lines, which causes the new line insertion calculations to
12020 be totally fubared.
12021 - Remove an old TODO
12022 - Make debug output a little nicer
12024 2006-12-01 Chris Toshok <toshok@ximian.com>
12026 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
12028 2006-12-01 Chris Toshok <toshok@ximian.com>
12030 [ fix the majority of the CS0108 warnings we've been suppressing ]
12032 * TreeView.cs: mark BackgroundImageChanged as 'new'.
12034 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
12035 to "LayoutToolBar" to quiet mcs.
12037 * TabControl.cs: mark our ControlCollection class as 'new'.
12039 * TextBoxBase.cs: mark some events as 'new'.
12041 * Splitter.cs: TabStop is 'new'.
12043 * ControlBindingsCollection.cs: mark a few methods as new since
12044 they change the visibility from protected to public.
12046 * RadioButton.cs: DoubleClick -> base class, and remove unused
12049 * MonthCalendar.cs: ImeMode property -> base class, and mark many
12052 * NumericUpDown.cs: TextChanged -> base class.
12054 * CheckedListBox.cs: mark our ObjectCollection class as new to
12057 * FolderBrowserDialog.cs: make HelpRequest event new and have it
12058 muck with the base class.
12060 * StatusBar.cs: fix some mcs warnings about Update being the same
12061 name as a base class method.
12063 * RichTextBox.cs: mark some events as new, and make them do things
12064 to the base class impl.
12066 * UserControl.cs: mark TextChanged as new, and have it manipulate
12069 * UpDownBase.cs: mark some things new.
12071 * CheckBox.cs: mark DoubleClick "new", and add some text about
12072 what we need to look at.
12074 * Panel.cs: make the events "new", and manipulate the base
12075 version. these are just here for attributes.
12077 * AccessibleObject.cs: make owner private.
12079 * Control.cs: deal with AccessibleObject.owner being private.
12080 cache our own copy if we need it.
12082 * Button.cs: add "new" to the DoubleClickEvent.
12084 * ListBox.cs: no need to track our own has_focus here. let
12085 Control.has_focus do it for us. Also some other work to clear up
12086 warnings about not overriding base class methods of the same name.
12088 * ComboBox.cs: clear up some warnings about not override base
12089 class methods of the same name.
12091 2006-12-01 Chris Toshok <toshok@ximian.com>
12093 * Form.cs: flag a few things as "new" to quiet some of the mcs
12098 * PrintPreviewDialog.cs: same.
12100 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
12101 now DGV isn't so horrible on the class status page. also, move
12102 all events to using System.ComponentModel.EventHandlerList. my
12105 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12107 * MdiWindowManager.cs:
12108 - Set form to active mdi child if shown,
12109 and update the active mdi child to the next
12110 remaining child in the z-order if the form is hidden.
12113 - Track if the form has been visible and if its
12114 visibility is beeing changed, so that the MdiClient
12115 can properly decide the ActiveMdiChild. The MdiClient
12116 cannot track this since the form can change visibility
12117 before MdiClient is created.
12120 - Don't activate anything of the parent form is changing
12122 - Rework ActiveMdiChild to only return visible mdi
12123 children and take into account several other corner
12126 2006-12-01 Chris Toshok <toshok@ximian.com>
12128 * IBindableComponent.cs: new 2.0 interface.
12130 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
12132 * DataGrid.cs: Font for caption area is bold by default.
12134 2006-12-01 Everaldo Canuto <everaldo@simios.org>
12136 * Menu.cs: Tag property for 2.0.
12138 2006-11-01 Everaldo Canuto <everaldo@simios.org>
12140 * ThemeWin32Classic.cs: Adjust menu separator drawing.
12142 2006-12-01 Chris Toshok <toshok@ximian.com>
12144 * TreeView.cs: doh, the Begin* events should be
12145 TreeViewCancelEventHandler.
12147 2006-12-01 Chris Toshok <toshok@ximian.com>
12149 * Form.cs: Form.ControlCollection already stores off the
12150 form_owner field. don't access the base class's internal "owner"
12153 * Control.cs: make all the fields in Control.ControlCollection
12154 private. there's no need for any internal fields here.
12156 2006-12-01 Chris Toshok <toshok@ximian.com>
12158 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
12159 OnHandleCreated. Fixes bug #80109.
12161 2006-12-01 Chris Toshok <toshok@ximian.com>
12163 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
12164 SplitContainer.cs, Control.cs, StatusStrip.cs,
12165 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
12166 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
12167 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
12168 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
12169 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
12170 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
12171 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
12172 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
12173 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
12174 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
12176 do most of the work to convert our code over to use
12177 System.ComponentModel.Component.Events for
12178 adding/removing/dispatching events.
12181 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
12183 * DataGridView.cs: Fix an ArgumentNullException reported
12184 twice today in IRC.
12186 2006-11-30 Mike Kestner <mkestner@novell.com>
12188 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
12189 grabbed listbox. Fixes #80036 and #80101.
12191 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12193 * Message.cs: Changed ToString() to match MS.
12195 2006-11-30 Jackson Harper <jackson@ximian.com>
12197 * TextBoxBase.cs: You can still change the selected text on a read
12199 * TextControl.cs: Lower magic number for wrap calculations. This
12200 lets text get closer to the right (far) edge.
12202 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
12204 * Control.cs: Tweak 2.0 layout properties.
12205 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
12206 * TextRenderer.cs: Add a new overload.
12207 * ToolStrip*: Huge amount of changes and new features.
12209 2006-11-30 Mike Kestner <mkestner@novell.com>
12211 * ComboBox.cs: fixes for LargeChange and Maximum to get the
12212 scroll range correct. Fixes #79994.
12214 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12216 * MdiWindowManager.cs: Update main form's text when
12217 a form is closed. (fixes #80038)
12219 2006-11-30 Everaldo Canuto <everaldo@simios.org>
12222 - Fix an regression in ButtonSize.
12223 - Get ImeMode default value change to "Disable".
12224 - Get ShowTooltips default value change to true, default value is
12225 "false" but after make a test in .NET we get "true" result as default.
12227 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
12229 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
12231 2006-11-29 Chris Toshok <toshok@ximian.com>
12233 * XplatUIWin32.cs (GetWindowTransparency): check return value of
12234 GetLayeredWindowAttributes. if it's 0, return 1.0, as
12235 SetWindowTransparency hasn't been called.
12237 2006-11-29 Chris Toshok <toshok@ximian.com>
12239 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
12241 (set_AllowTransparency): reorder things a little so that the
12242 WS_EX_LAYERED style is removed properly.
12244 2006-11-29 Chris Toshok <toshok@ximian.com>
12246 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
12248 * Form.cs: only call the XplatUI transparency method (get/set) if
12249 SupportsTransparency says it's supported. Otherwise fallback to
12250 doing nothing (in the set case) or returning the instance field we
12251 cache (in the get case).
12253 * XplatUIStructs.cs: add TransparencySupport flag enum.
12255 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
12256 change to SupportsTransparency.
12258 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
12259 TransparencySupport.None from SupportsTransparency.
12261 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
12262 TransparencySupport.Set from SupportsTransparency.
12264 * XplatUIWin32.cs: implement GetWindowTransparency calling
12265 GetLayeredWindowAttributes, and implement SupportsTransparency by
12266 checking whether or not both
12267 GetWindowTransparency/SetWindowTransparency are available
12268 entrypoints. We need to do this since SetWindowTransparency is
12269 available as of win2k, but GetWindowTransparency requires winxp.
12272 * XplatUI.cs: Add GetWindowTransparency, and change
12273 SupportsTransparency to allow for either/both Get/Set.
12275 2006-11-29 Chris Toshok <toshok@ximian.com>
12277 * DataGrid.cs: keep from going into an infinite loop redrawing a
12278 datagrid that has no datasource. Fixes bug #80033.
12280 2006-11-29 Chris Toshok <toshok@ximian.com>
12282 * MenuItem.cs: fix the NRE when we assign text (and therefore call
12283 Invalidate) before the mainmenu has been assigned to a control.
12285 2006-11-29 Chris Toshok <toshok@ximian.com>
12287 * DataGrid.cs: detect when we should be double the double click
12288 row/column autosize stuff, although that codepath has yet to be
12289 written. part of the work for bug #79891.
12291 2006-11-29 Chris Toshok <toshok@ximian.com>
12293 * Binding.cs (SetControl): fix unit test.
12295 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12297 * PageSetupDialog.cs: Validate the margins and set them in
12299 * NumericTextBox.cs: New class to mimic the behavior of the
12300 textboxes used in the printing dialogs.
12302 2006-11-29 Andreia Gaita <avidigal@novell.com>
12304 * Form.cs: Revert previous change (remove call UpdateBounds
12305 from form constructor), because it messes with the handle creation
12306 order, and that one needs lots and lots of love.
12307 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
12308 for valid printer and throw InvalidPrinterException if document
12309 is set but printer not valid), adding a MonoTODO. Once
12310 handle creation is done properly, we can put this back in.
12312 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12314 * MenuItem.cs: Create a invalidate method for menu item, to be
12315 calling from set text, it make text changes to imadiate update
12316 on screen. Fixes #80013.
12318 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12320 * ToolBar.cs: Fixes and simplify toolbar button layout, it
12321 fixes bug #80070 and some other problem on toolbar buttons
12324 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12326 * ThemeWin32Classic.cs: Paint toolbar toggle button background
12327 with dotted brush. Fixes #79564
12329 2006-11-28 Andreia Gaita <avidigal@novell.com>
12331 * Form.cs: Removed call to UpdateBounds on Form
12332 constructor, it was causing a call to CreateHandle
12333 before it was supposed to.
12334 * PrintControllerWithStatusDialog: Applied patch
12335 by Chris Toshok to hide controller when there are
12336 no printers available.
12337 PrintDialog.cs: initialize printer settings to
12338 null - correct DefaultValues test #5
12339 * PrintPreviewControl.cs: Move PrintController
12340 initialization to GeneratePreview
12341 * PrintPreviewDialog.cs:
12342 - Remove Preview generation from Document_set(). It is
12344 - Throw InvalidPrinterException on CreateHandle if
12345 a Document is set but there are no printers or
12346 printer is not valid.
12347 * ThemeWin32Classic: don't paint PrintPreviewControl
12348 if there is nothing to paint
12350 2006-11-28 Miguel de Icaza <miguel@novell.com>
12352 * Form.cs: Add another popular method.
12354 * TabPage.cs: ditto.
12356 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12358 * MenuItem.cs: Fixed a warning.
12359 * InternalWindowManager: Fixed a warning.
12361 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12364 - When cloning a menu also clone MdiList and clone the
12365 window menu items properly (as the forms and menuitems
12366 are kept in an internal hashtable, these need updating
12368 - Rewrote the window menu code, menu items are added in the
12369 order the forms were added to their parent, and they are
12370 updated every time the window menu is shown (before the
12371 list was only generated once, in the current order of the
12372 forms, and would never be updated). A checkmark is shown
12373 next to the item corresponding to the active mdi child.
12375 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12377 * XplatUIStructs.cs:
12378 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
12381 - Added TME_NONCLIENT to TMEFlags.
12382 - Handles WM_NCMOUSEMOVE in GetMessage to
12383 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
12385 * MdiWindowManager:
12386 - Now merges mdi child menu to parent menu when maximized.
12387 - Recalculate NC areas of both mdi child and mdi parent.
12389 on window state and size changes.Fixes #79844 (3).
12390 - Handle WM_NCCALCSIZE to properly calculate borders.
12393 - Add/remove to the mdi containers list of mdi children
12394 in the order they are added.
12395 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
12396 to the maximized mdi child.
12398 * InternalWindowManager.cs:
12399 - Only execute a click on the control buttons on the mouse up,
12400 not on the mouse down. Show the state of the button
12401 (was only showing Normal state, never Pressed state). The
12402 pressed button now follows the mouse (if you click the Close
12403 button and move the mouse over the Maximize button, the
12404 Maximize button will be shown as pressed). Since Win32 does
12405 not generate WM_NCLBUTTONUP if you release the button outside
12406 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
12409 * ThemeWin32Classic.cs:
12410 - Draw a missing border around mdi child forms. Fixes #79844 (2).
12413 - Added a list of forms which contains the order the forms are
12414 added to the mdi parent.
12415 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
12416 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
12417 - If the active form changes set the scrollbars to the top
12418 of the Z order, otherwise the form could hide them.
12419 - Scrollbars are now sized according to ClientSize, not
12420 to Size, and they take into account the other scrollbar
12421 to determine maximum.
12423 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12426 * XplatUIDriver.cs:
12430 - Added RequestAdditionalWM_NCMessages for windows to
12431 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
12432 Currently only implemented in XplatUIWin32.
12434 2006-11-27 Chris Toshok <toshok@ximian.com>
12436 * Hwnd.cs: only add the hwnd to the windows hash in
12437 set_WholeWindow and set_ClientWindow if whole_window/client_window
12438 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
12440 2006-11-27 Mike Kestner <mkestner@novell.com>
12442 * ComboBox.cs: remove redundant OnDropDown call. It is called
12443 from the ComboListBox.ShowWindow code. Fixes #79969.
12445 2006-11-27 Chris Toshok <toshok@ximian.com>
12447 * Hwnd.cs: remove the setters for ExposePending and
12448 NCExposePending - noone uses them.
12450 2006-11-27 Jackson Harper <jackson@ximian.com>
12452 * TextControl.cs: new param for ReplaceSelection which determines
12453 whether we select the new selection, or set the cursor to the end
12454 of the new selection.
12455 * TextBoxBase.cs: Use new param for ReplaceSelection. When
12456 pasting, select the new text.
12457 * RichTextBox.cs: Use new param for ReplaceSelection.
12459 2006-11-27 Jackson Harper <jackson@ximian.com>
12461 * TextBoxBase.cs: Set the selection to the caret after the caret
12462 is moved, otherwise they get out of sync.
12464 2006-11-26 Everaldo Canuto <everaldo@simios.org>
12466 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
12469 2006-11-26 Everaldo Canuto <everaldo@simios.org>
12471 * ThemeWin32Classic.cs:
12472 - Fix toolbar drop down arrow position.
12473 - Fix drop down appearance when ToolBar.Appearance is normal,
12476 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
12478 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
12479 * Control.cs: Same.
12480 * UpDownBase.cs: Same.
12481 * ButtonBase.cs: Same.
12482 * ScrollBar.cs: Same.
12483 * TrackBar.cs: Same.
12484 * PictureBox.cs: Same.
12485 * UserControl.cs: Same.
12487 * ListControl.cs: Same.
12488 * TextBoxBase.cs: Same.
12489 * ListView.cs: Same.
12490 * RichTextBox.cs: Same.
12491 * TreeView.cs: Same.
12493 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
12496 - Text label for where
12497 - Text label comment was not shown
12499 2006-11-23 Everaldo Canuto <everaldo@simios.org>
12501 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
12503 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12505 * InternalWindowManager.cs:
12506 - Handle WM_PARENTNOTIFY to activate the form
12507 if any child control is clicked.
12508 - The form is only sizable if not minimized.
12510 * MdiWindowManager.cs:
12511 - Save the IconicBounds if the form is moved.
12512 - Rework SetWindowState, now the window bounds
12513 are stored only if the old window state is Normal.
12516 - In SetWindowStates store the old window state if
12517 the window is maximized and restore window state if
12518 the window looses focus.
12519 - Don't handle any scrollbar value changes if
12520 initializing the scroll bars. Fixes #79771.
12521 - Reworked ArrangeIconicWindows. Current algorithm
12522 tests bounds agains all other minimized windows, if
12523 any intersections create new bounds (going left to
12524 right, bottom to top) and then test again. When
12525 successful the bounds are saved and never computed
12526 again. Fixes #79774.
12528 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12530 * InternalWindowManager.cs: Added HandleTitleBarUp.
12532 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12534 * NumericUpDown.cs: In .NET 1.1, user entered text is still
12535 hexadecimal in ParseUserEdit.
12538 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12540 * MdiWindowManager.cs:
12541 - Handle a click on the form's icon to show the
12542 system menu (when maximized). Fixes #79775.
12543 - Change the existing click handler for the form's
12544 icon when not maximized to show on MouseUp.
12547 * Form.cs: In OnResize only layout the mdi child's
12548 parent if it actually has a parent. Might not if
12549 the window is closing.
12552 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12554 * MdiClient.cs: Ignore active MDI client for text of parent, if
12555 child has no text set.
12557 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12559 * ToolBar.cs: Fixed ToString to match MS.
12561 2006-11-22 Andreia Gaita <avidigal@novell.com>
12564 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
12565 update inner values on set. Fixes #79966.
12566 - Override OnLostFocus to update value on NET 2. Fixes #79950.
12567 - Fix hexadecimal parsing.
12569 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
12570 parent. Fixes #79957
12572 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12574 * Control.cs: After calling SetWindowsPos in SetBoundsCore
12575 the actual size has to be queried, since if height /
12576 width is negative Win32 changes it to 0.
12577 Fixes #79999 on Windows.
12579 * XplatUIX11.cs: Set height / width to 0 if negative
12580 in SetWindowPos. Fixes #79999 on Linux.
12582 2006-11-22 Everaldo Canuto <everaldo@simios.org>
12584 * ThemeWin32Classic.cs: Fix text redenring when button is
12587 2006-11-22 Everaldo Canuto <everaldo@simios.org>
12589 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
12590 and later navigate by mouse. Fixes #79528.
12592 2006-11-21 Everaldo Canuto <everaldo@simios.org>
12594 * ToolBar.cs: Set default value for TabStop to false in
12595 constructor, it fixes remaining behavior of bug #79863.
12597 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12599 * MdiWindowManager.cs:
12600 * InternalWindowManager.cs:
12601 - Moved a few methods specific to Mdi from
12602 InternalWindowManager to MdiWindowManager.
12605 2006-11-21 Chris Toshok <toshok@ximian.com>
12607 * XplatUIOSX.cs: stub out InvalidateNC.
12609 * XplatUIWin32.cs: implement InvalidateNC using the call I found
12610 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
12612 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
12614 * XplatUIDriver.cs: add InvalidateNC abstract method.
12616 * XplatUI.cs: add InvalidateNC.
12618 2006-11-21 Everaldo Canuto <everaldo@simios.org>
12620 * ToolBar.cs: Invalidate complete button area when pressed status
12622 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
12623 * ThemeWin32Classic.cs: Increase vertical and horizontal position
12624 by 1 when button is pressed.
12626 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12628 * ToolButton.cs: Invalidate middle of DropDown button when
12629 ToolBar theres DropDownArrows.
12630 * ThemeWin32Classic.cs: Change position of DropDown arrow and
12631 fix DropDown drawing operations.
12633 2006-11-20 Chris Toshok <toshok@ximian.com>
12635 * NativeWindow.cs: fix the formatting of functions ('{' on the
12636 following line), and enable the thread exception dialog.
12638 * Application.cs: remove the duplicate exception catching from
12641 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12643 * Toolbar.cs: Triggers button click event when click on icon
12644 of dropdown ToolBarButton. Fixes #79912.
12646 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12649 * ThemeWin32Classic.cs:
12650 - Added a property WindowBorderFont to enable themeing
12651 of mdi child windows' Text.
12653 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12655 * InternalWindowManager.cs:
12658 * MdiWindowManager.cs:
12659 - If mdi child is maximized, set mdi parent's
12660 text to "Parent - [Child]". Fixes #79770.
12661 - If there is any maximized mdi child windows, only the active
12662 window (and any new windows) is maximized, the rest are normal.
12663 - On a WindowState change only save mdi child's window bounds
12664 if the old window state was normal. Fixes #79774.
12665 - The scroll bars are now calculated on hopefully all
12666 necessary events. Fixed #79771 / #79844->6 / #79906.
12667 - MdiClient.SizeScrollBars() now takes into account docked
12668 controls in the parent when calculating available space.
12669 - InternalWindowManager now always repaints the entire title
12670 area. Fixes #79844->1/4/5.
12671 - Added RequestNCRecalc on mdi child windowstate changes.
12674 2006-11-20 Mike Kestner <mkestner@novell.com>
12676 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
12677 in the MouseUp handler of the listbox and move the return handling
12678 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
12680 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12682 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
12684 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
12686 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
12687 working in 1.2.x anymore. So, updated.
12689 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
12691 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
12692 NumberGroupSeparator of current culture instead of assuming en-US.
12695 2006-11-17 Mike Kestner <mkestner@novell.com>
12697 * Control.cs: Add the concept of implicit bounds setting so that
12698 dock/undock round trips preserve explicitly set size/locations.
12701 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
12703 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
12704 can't handle those filters. (Fixes bug #79961)
12706 2006-11-17 Chris Toshok <toshok@ximian.com>
12708 [ fixes the exit/crashes associated with #79835. it's clearly
12709 suboptimal though, we need to figure out a better way to solve
12712 * PrintPreviewControl.cs: deal with the new invalid printer
12715 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
12716 and return false (so CommonDialog.ShowDialog doesn't actually show
12719 * PrintDialog.cs: enable/disable the Ok button depending on
12720 whether or not the printer is valid.
12722 * CommonDialog.cs (ShowDialog): only actually show the form if
12723 RunDialog returns true.
12725 2006-11-17 Jackson Harper <jackson@ximian.com>
12727 * TextControl.cs: When soft splitting a line, mark it as a soft
12728 split line. Also carry over the current line break to the next
12731 2006-11-17 Chris Toshok <toshok@ximian.com>
12733 * XplatUIX11.cs: when scrolling a window with an invalid area, we
12734 only want to shift the part of the invalid area that overlaps the
12735 area we're scrolling. we also don't want to clear the invalid
12736 area unless the invalid area was entirely contained within the
12739 2006-11-16 Chris Toshok <toshok@ximian.com>
12741 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
12742 also make sure to free the memory returned by XGetWindowProperty
12745 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
12747 2006-11-16 Chris Toshok <toshok@ximian.com>
12749 * XplatUI.cs: add a new super secret way to get at the totally
12750 unsupported X11 backend.
12752 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
12754 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
12756 2006-11-16 Jackson Harper <jackson@ximian.com>
12758 * TreeView.cs: Allow more explicit setting of top node position
12759 for scrollbars. Slower algo, but more accurate.
12760 - CollapseAll should maintain the current top node.
12761 * TextBoxBase.cs: When positioning the caret, use the line, pos
12762 method, since the x, y method does not grab the correct tag, and
12763 the caret height never gets set correctly. (Maybe I should just do
12764 away with the caret having its own height, and always use the
12765 carets current tag for height).
12767 2006-11-16 Jonathan Pobst <monkey@jpobst.com
12769 [Fixes 79778, 79923]
12771 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
12772 Parent to the FosterParent instead.
12774 2006-11-16 Jackson Harper <jackson@ximian.com>
12776 * TreeView.cs: Need to recalc the topnode when we expand or
12777 collapse. The scrolling methods can't handle this on their own,
12778 since they use differences between the last scroll position, and
12779 those difference get completely messed up since we are expanding
12780 nodes. This problem should probably be fixed in the scrolling
12781 methods, so they can figure out exactly where they are, but this
12782 will slow things down a little.
12783 * ThemeWin32Classic.cs: Special case for groupboxes with empty
12784 strings, makes nunit-gui look a lot nicer.
12786 2006-11-16 Chris Toshok <toshok@ximian.com>
12788 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
12789 the broken multithreaded event handling we have in here. File
12790 this entry under "Why we should move to the new X11 backend".
12792 Any thread can make it into UpdateMessageQueue, which gets events
12793 from the X socket - some of which could belong to hwnds being
12794 managed by a different thread. We can also have multiple threads
12795 in UpdateMessageQueue at the same time, with each one reading from
12796 the X socket. This leads to many problems, with the following
12799 We can't use hwnd.Queue.Enqueue anywhere in here and must use
12802 The MotionNotify compression we do can't work across threads
12803 (without locking the entire queue, perhaps) since we call
12804 hwnd.Queue.Peek, so we just punt and don't compress motion events
12805 unless the owning thread is the one which got the X event.
12807 ConfigureNotify is another fun one, since it modifies the hwnd's
12808 bounds and then enqueues the event. We add a lock to Hwnd which
12809 is held when setting configure_pending to true (and enqueuing the
12812 There is a race wrt the wake socket. we need to make sure that
12813 only 1 thread is waiting on that socket, or else a thread could
12814 sleep waiting for data that never comes. It's difficult (but not
12815 impossible) to make happen, because it seems to require something
12816 like the following:
12818 1. Thread 1 polls on wake_receive
12820 2. poll returns saying there's data to be read on
12823 3. Thread 2 polls on wake_receive and immediately returns
12824 saying there's data to be read.
12826 4. Thread 2 reads the wakeup byte from wake_receive
12828 5. Thread 1 attempts to read the wakeup byte from
12831 6. Thread 2 exits (due to a form closing, perhaps).
12833 7. Thread 1 blocks forever.
12837 Fixing the Expose handling isn't done yet, and the races inherent
12838 in that piece of code are responsible for the drawing mistakes you
12839 see when generating expose events in a MT app (like NPlot). This
12840 one is the likely to be the hardest to bandaid, and it doesn't
12841 appear to cause anything but drawing problems. The other issues
12842 caused apps to exit or hang.
12844 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
12845 called from a different thread than the one that should be calling
12848 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
12850 2006-11-15 Chris Toshok <toshok@ximian.com>
12852 * Application.cs: null out the context's MainForm when we exit
12853 RunLoop. Fixes a newly checked in unit test as well as the last
12854 ODE from bug #79933.
12856 2006-11-15 Chris Toshok <toshok@ximian.com>
12858 * Form.cs (set_Owner): allow a null value so we can clear the
12860 (Dispose): set all our owned_form's Owner properties to null, and
12861 clear the owned_forms collection.
12862 (WM_CLOSE): clean up this a little bit.. still not right though.
12864 * ApplicationContext.cs: OnMainFormClosed should only call
12865 ExitThreadCore if the main form isn't recreating. Fixes unit
12868 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12872 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
12874 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12878 * Hwnd.cs: Add a flag to show a window, but not activate it, to
12879 keep popup window types from stealing focus from the main form
12882 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
12884 * MenuAPI.cs: Set above flag to true.
12886 2006-11-15 Chris Toshok <toshok@ximian.com>
12888 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
12889 the button being released is not in wParam.
12891 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12893 * Form.cs: Add the released button to MouseEventArgs.Button
12894 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
12897 2006-11-15 Chris Toshok <toshok@ximian.com>
12899 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
12900 GetText(). untested because it's unused in our implementation.
12901 Control.Text always caches the text, even if
12902 ControlStyles.CacheText is not set.
12906 2006-11-15 Chris Toshok <toshok@ximian.com>
12910 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
12911 message. no hiding, no disposing.
12913 in the WM_CLOSE handler, hide the form if it's modal.
12915 2006-11-15 Chris Toshok <toshok@ximian.com>
12917 * XplatUIX11.cs: use AddExpose instead of sending a message.
12918 fixes textbox border drawing.
12920 2006-11-15 Chris Toshok <toshok@ximian.com>
12922 * PropertyGridView.cs: keep from crashing on mouse move/down when
12923 the property grid is empty.
12925 2006-11-14 Jackson Harper <jackson@ximian.com>
12927 * TextControl.cs: Make PageUp and PageDown more like the MS
12929 * TextBoxBase.cs: When we set the text property position the
12930 cursor at the beginning of the document.
12932 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
12934 * Form.cs: if a mdi child's WindowState has changed
12935 before it's creation, it would display wrong control
12938 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
12940 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
12943 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
12945 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
12946 the window gets to paint its borders even if the window is
12949 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
12950 otherwise the old control buttons would still be painted
12951 if the window gets bigger.
12953 * PaintEventArgs.cs: add an internal method so that the clip
12954 rectangle can be changed.
12956 2006-11-13 Chris Toshok <toshok@ximian.com>
12958 [ fixes bug #79745 ]
12960 * NotifyIcon.cs: lots of cleanup.
12962 * X11Structs.cs: add an enum for XEMBED messages.
12964 * XplatUIX11.cs: reindent one of the giant switch statements, it
12965 was taking up an additional tab stop, and this file is already way
12966 too wide for my laptop's screen.
12968 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
12969 we get it, resize the hwnd to the WMNormalHints max_width/height.
12971 2006-11-13 Jackson Harper <jackson@ximian.com>
12973 * TextBoxBase.cs: Compute the value changes for the mouse wheel
12976 2006-11-13 Chris Toshok <toshok@ximian.com>
12978 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
12979 #79898. force a reference to the Region to stick around so the
12980 unmanaged object isn't collected (rendering our handle in the MSG
12983 2006-11-13 Chris Toshok <toshok@ximian.com>
12985 * XplatUIX11.cs: fix #79917 for window managers which support
12987 using XStoreName on the raw utf8, and we need to convert to
12988 COMPOUND_TEXT if it's non-latin1.
12990 2006-11-13 Chris Toshok <toshok@ximian.com>
12992 * Form.cs (set_DialogResult): we need to set closing to false if
12993 we're setting our result to None. fixes bug #79908.
12995 2006-11-13 Jackson Harper <jackson@ximian.com>
12997 * TextControl.cs: When formatting text, compute the adjusted tag
12998 lengths correctly, using FindTag for the end tag instead of trying
12999 to figure it out outselves.
13000 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
13001 the item, ItemHeight doesn't work, because trees with large
13002 imagelists use those for their height
13003 * TreeView.cs: ActualItemHeight factors in the image height
13004 - compute left edge of checkboxes correctly
13005 - when expanding/collapsing move the bottom down one pixel, so we
13006 aren't moving part of the node
13008 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13010 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
13011 stack in PaintEventStart so that it won't get disposed by the gc
13012 before reaching PaintEventEnd.
13014 2006-11-13 Jackson Harper <jackson@ximian.com>
13016 * TextBoxBase.cs: Don't select the word if we are on a line with
13018 - We don't need to position the caret on mouse up, since the mouse
13019 move handler should be doing this
13020 - When double clicking a blank line, the caret is advanced to the
13023 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
13025 * TreeNodeCollection.cs: Avoid duplicating indexer code.
13027 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
13029 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
13030 Fixes part of bug #79910.
13032 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
13034 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
13035 (bug #79903). Some minor string updates to match ms.
13037 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13039 * FileDialog.cs: Don't add an extension if the filename
13040 already ends with that extension.
13042 2006-11-10 Jackson Harper <jackson@ximian.com>
13044 * TreeView.cs: Use the currently highlighted node for the
13045 BeforeSelect event.
13046 * TextBoxBase.cs: There is no need to expand selection on
13048 - CanUndo means 'is there any undo operations', not 'is undo
13049 allowed on this textcontrol. Fixed ClearUndo unit test.
13051 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
13053 * Button.cs: only perform click when button is Selectable (so as
13054 not to activate default buttons when they're disabled)
13056 * Control.cs: Rewrite of the SelectNextControl and related
13057 methods. HandleClick now selects next control if the current one
13060 * Form.cs: OnActivated selects next active control only if Load
13061 has already occurred. If Load hasn't run, there's no point in
13062 selecting here, Load might change the state of controls.
13064 * FocusTest.cs: Tests marked as working again for these fixes
13066 2006-11-10 Chris Toshok <toshok@ximian.com>
13068 * XplatUIX11.cs: a couple of fixes.
13070 - use XInternAtoms with almost all the atoms we need to register,
13071 instead of many, many calls to XInternAtom. should help a bit on
13072 startup time, at the expense of making the code look a little
13075 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
13076 isn't reparented (which seems to be a clue that we're running fon
13077 compiz) and they have an Owner form. This fixes the tool windows
13078 in paint.net when running under compiz.
13080 - when setting the opacity of a window, support both the case
13081 where the window has been reparented and also when it hasn't been.
13082 Since compiz/beryl doesn't seem to reparent windows, and these are
13083 the only window managers which support translucency, I'm not sure
13084 why we need the hwnd.reparented case at all.. but leave it in.
13085 now we get translucent windows in paint.net under compiz/beryl.
13087 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13089 * FileDialog.cs: Always return the value for FilterIndex that
13090 was set. Internally convert it to values that make sense.
13092 2006-11-10 Everaldo Canuto <everaldo@simios.org>
13094 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
13096 2006-11-10 Everaldo Canuto <everaldo@simios.org>
13098 * Toolbar.cs: Change default value of DropDownArrows to true, the
13099 signature still using false to make it compatible with MS but the
13100 initial value is true. Fixes #79855.
13102 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13104 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
13105 only available on Linux.
13107 2006-11-09 Everaldo Canuto <everaldo@simios.org>
13109 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
13110 reduce number of calls to redraw method during toolbar creation.
13112 2006-11-09 Mike Kestner <mkestner@novell.com>
13114 * ListView.cs : raise SelectedIndexChanged when an item is selected
13115 programmatically via the Item.Selected property. Gert's nice
13116 ListViewSelectedIndexChanged test fixture now runs clean.
13118 2006-11-09 Mike Kestner <mkestner@novell.com>
13120 * ListView.cs : raise SelectedIndexChanged when a selected item is
13121 removed from the item collection using Remove or RemoveAt.
13123 2006-11-09 Mike Kestner <mkestner@novell.com>
13125 * ListView.cs : raise SelectedIndexChanged once per selected item
13126 for compat with MS. Fixes #79849+.
13128 2006-11-09 Chris Toshok <toshok@ximian.com>
13130 * TabControl.cs: initialize row_count to 0, and set it to 1 when
13131 we need to (if we have any tab pages). Fixes unit test.
13133 2006-11-09 Chris Toshok <toshok@ximian.com>
13135 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
13136 width is 0, not 3. Fixes a unit test.
13138 2006-11-09 Mike Kestner <mkestner@novell.com>
13140 * ListView.cs : use Implicit scrollbars so that focus isn't
13141 stolen from the listview when they are clicked. Fixes #79850.
13143 2006-11-09 Chris Toshok <toshok@ximian.com>
13145 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
13146 have a root item. Fixes #79879.
13148 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
13152 - An ArgumentException is now thrown if a wrong filter
13153 is applied (matches ms). The previous filter doesn't change
13154 anymore if an exception is thrown.
13155 - Changing the FileName property also affects FileNames
13156 * ColorDialog.cs: The length of the CustomColors array is always
13157 16. It doesn't matter if we use a smaller array or null to update
13158 or change the custom colors property.
13159 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
13160 for RootFolder if we get a undefined value.
13162 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13164 * StatusBarPanel.cs:
13165 - Width is set to MinWidth if Width is smaller than
13166 MinWidth. Fixes #79842.
13167 - MinWidth now always overrides Width (MSDN says MinWidth
13168 is set to Width when AutoSize = None, but they do not
13170 - Style has now the the correct default value.
13172 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13175 - The control is completely invalidated on
13176 Got/LostFocus to draw the focus rectangle correctly.
13177 - When AutoSize then height is always 45 (width for
13178 vertical controls).
13180 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
13181 on the mouse when moved and it doesn't move when grabbed
13182 until the mouse moves as well. Also fixed some wrong
13183 calculations when clicking on the thumb (control thought
13184 click was outside of thumb and didn't grab it).
13185 Fixes some of the issues in #79718.
13187 2006-11-08 Everaldo Canuto <everaldo@simios.org>
13189 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
13191 2006-11-08 Chris Toshok <toshok@ximian.com>
13193 * PropertyGridView.cs: only call ToggleValue if the item is not
13196 2006-11-08 Jackson Harper <jackson@ximian.com>
13198 * TextBoxBase.cs: The RichTextBox and textbox have very different
13199 word selection methods. Implement the textbox's simple word
13200 selection here, and let the RichTextBox override and provide it's
13202 - Don't do extra selection on mouseup
13203 * RichTextBox.cs: Use the documents word selection algorithm, I
13204 think ideally, this function will be pulled into the
13205 RichTextBox.cs code someday.
13207 2006-11-08 Chris Toshok <toshok@ximian.com>
13209 * RootGridEntry.cs: new class to represent GridItemType.Root.
13211 * CategoryGridEntry.cs: reformat, and add boilerplate.
13213 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
13214 returns the UI parent anyway, and we need special handling to
13215 implement the GetTarget method in the face of it. Also, implement
13218 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
13219 a root grid item, and use that instead of PropertyGrid.grid_items.
13220 Also, make use of TypeConverters (and add limitted support for
13221 ICustomTypeDescriptors) when initially populating the grid.
13222 Arrays now show up more or less properly.
13224 2006-11-08 Chris Toshok <toshok@ximian.com>
13226 * Application.cs: set the modal dialog to non modal after we close
13227 it. Fixes bug #79866.
13229 2006-11-08 Jackson Harper <jackson@ximian.com>
13231 * TextControl.cs: When combining lines carry over the line end
13232 style from the end line.
13233 - Invalidate the selected area when setting it, if it is visible.
13234 * TextBoxBase.cs: Only rich text box can do full line selects.
13235 - Make sure to set the cursor position when there is a click,
13236 otherwise two clicks in separate areas could cause a large chunk
13239 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13241 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
13244 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13246 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
13247 time. Remove tooltips when ToolButton click events. Fixes #79856.
13249 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13251 * MenuAPI.cs: Ignore right click for menu actions and fixes
13252 menu border when clicked. Fixes #79846.
13254 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13256 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
13257 MouseState after create wParam for message, this fixes mouse button
13258 equal none in mouse up events.
13260 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
13262 * Control.cs : Focus() now calls Select to set the Container's
13263 Active Control and to give it focus. To avoid infinite recursion
13264 (because ActiveControl also calls Focus at one point), a check
13265 is made in Focus with the help of a new internal variable
13268 2006-11-07 Mike Kestner <mkestner@novell.com>
13270 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
13271 if there's a selection. Fixes #79849.
13273 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
13275 * PropertyGrid.cs: Avoid fixed height of help description label.
13276 Fixes part of bug #79829.
13278 2006-11-07 Chris Toshok <toshok@ximian.com>
13280 * XplatUIX11.cs: fix #79790 again, by using the
13281 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
13283 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13285 * ToolBar.cs: Fix left click checking.
13287 2006-11-07 Chris Toshok <toshok@ximian.com>
13289 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
13291 2006-11-07 Chris Toshok <toshok@ximian.com>
13293 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
13294 PropertyManager unit tests.
13296 * PropertyManager.cs: make property_name internal.
13298 2006-11-07 Chris Toshok <toshok@ximian.com>
13300 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
13301 pass a unit test. Also, don't set image_index to anything in
13302 response to setting the ImageList property.
13304 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13306 * ToolBar.cs: Ignore click events when mouse button is not a
13307 left button, only accepts other button for dropdown menus.
13310 2006-11-07 Chris Toshok <toshok@ximian.com>
13312 * DataGrid.cs: make the back and parent row buttons a little less
13315 2006-11-07 Jackson Harper <jackson@ximian.com>
13317 * TextBoxBase.cs: When converting to Text don't put line breaks in
13318 for soft line breaks.
13319 * TextControl.cs: There is an initial "fake" line in the document,
13320 this is now a soft break line, so that an extra line feed doesn't
13321 get added to the end of documents.
13323 2006-11-07 Chris Toshok <toshok@ximian.com>
13327 * CurrencyManager.cs: if the list is readonly, don't bother
13328 checking if IBindingList.AllowNew is true.
13330 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
13331 for non-DataRowView datasources.. or rather, make it not crash.
13332 (DataGridPaintRelationRow): make sure we limit the row painting to
13333 the area not covered by the row header, and make our cell width at
13334 least large enough to cover the relation area. This allows grids
13335 that have relations but no rows to render correctly.
13336 (DataGridPaintRowContents): same type of changes here.
13337 (SetDataSource): move back to always calling
13338 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
13339 navigating back through relations.
13340 (HitTest): handle the case where we have no cells but have
13341 relations. Right now we generate a hit in cell 0 of whatever the
13342 row is, not sure if this is strictly correct, but it works for our
13345 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
13346 bother doing anything.
13348 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
13350 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
13351 early version of StatusStrip. Not responsible for eaten
13352 application or firstborn children.
13354 2006-11-06 Chris Toshok <toshok@ximian.com>
13356 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
13357 call GetTabRect with a -1 index. Fixes #79847.
13359 2006-11-06 Jackson Harper <jackson@ximian.com>
13361 * TreeNodeCollection.cs: Update scrollbars after clearing.
13363 2006-11-06 Chris Toshok <toshok@ximian.com>
13365 * NumericUpDown.cs: fix the ToString method for some unit test
13368 2006-11-06 Chris Toshok <toshok@ximian.com>
13371 - set the initial SelectedGridItem if we can.
13373 - Exclude non-mergable properties only if we're merging > 1
13374 object. Merging 1 object isn't really merging, obviously.
13376 - Handle PropertySort.NoSort just like Alphabetical, which is
13377 wrong of course, but at least gets things on the screen.
13379 * PropertyGridView.cs:
13380 - Add method "FindFirstItem" which finds the first property grid
13381 item, so we can select it by default.
13383 - make use of GridEntry.CanResetValue.
13385 - Don't call RedrawBelowItemOnExpansion here anymore, the
13386 individual GridEntry's will do that.
13388 - Remove the ITypeDescriptorContextImpl internal class.
13391 - this class needs to implement ITypeDescriptorContext, as it's
13392 what MS's PropertyDescriptorGridEntry does, which means we can
13393 remove the ITypeDescriptorContextImpl internal class from
13394 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
13396 - keep a reference to our PropertyGridView, and move the call to
13397 RedrawBelowItemOnExpansion here from PGV. This means
13398 programmaticly setting Expanded actually does something visible.
13400 - add a CanResetValue() function which takes into account our
13401 possibly multiple "selected_objects" in the merged case. Shifting
13402 PropertyGridView to use this method fixes another unreported
13403 crasher found running the test for #79829.
13405 - when Top or Bounds is updated, make sure the PropertyGridTextBox
13406 is updated to reflect this.
13408 * CategoryGridEntry.cs: the ctor takes the PGV now.
13410 2006-11-06 Jackson Harper <jackson@ximian.com>
13412 * TextControl.cs: These are 1 based.
13413 * TextBoxBase.cs: When setting the selected text, don't change the
13414 selected text tags, this is done by ReplaceText, just position the
13415 cursor at the end of the new text.
13417 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
13419 * ListView.cs: Allow label edit only when, when LabelEdit is
13422 2006-11-06 Jackson Harper <jackson@ximian.com>
13424 * TextControl.cs: If a suitable wrapping position isn't found,
13425 just wrap right in the middle of a word.
13427 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
13429 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
13432 2006-11-06 Jackson Harper <jackson@ximian.com>
13434 * TreeView.cs: Can't use the VisibleCount property when setting
13435 scrollbar heights, because this doesn't take into account whether
13436 or not the horz scrollbar just came visible.
13438 2006-11-05 Everaldo Canuto <everaldo@simios.org>
13440 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
13441 activated. Fixes #79369, #79832.
13443 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
13445 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
13446 had to remove support for links that point to a directory. FileInfo
13447 returns no usefull information (means, the directory they point to)
13448 for such links. Replaced some empty string ("") with String.Empty.
13450 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
13452 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
13453 NullReferenceException when attempting to remove node that is not in
13454 collection. Throw NullReferenceException when null is passed to
13455 Remove. Allow first element of the collection to be removed. Fixes
13456 bug #79831. In GetEnumerator ().Current return null if positioned
13457 before the first element of the collection. In GetEnumerator ().Reset,
13458 position before first element of the collection.
13460 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
13462 * PropertyGrid.cs: To match MS, remove default title and description
13463 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
13466 2006-11-04 Chris Toshok <toshok@ximian.com>
13468 * Theme.cs: add a Clamp method, just for kicks.
13470 * ThemeWin32Classic.cs: clamp all color components to [0..255].
13472 2006-11-04 Chris Toshok <toshok@ximian.com>
13474 * Form.cs: if the form isn't visible, Close() does nothing.
13476 2006-11-03 Chris Toshok <toshok@ximian.com>
13478 * Form.cs (Close): if the form is modal, don't Dispose of it, only
13480 (WndProc): don't Dispose after handling the WM_CLOSE message.
13482 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
13483 them as such, instead of using casts from Control to Form. Also,
13484 don't Dispose of the modal dialog when we fall out of the loop -
13485 Close() it instead.
13489 2006-11-03 Chris Toshok <toshok@ximian.com>
13491 * Control.cs (Dispose): only go through the dispose thing if we're
13492 @disposing, and we haven't already been disposed. Fixes bug
13495 * Form.cs: no reason to call "base.Dispose()" here instead of
13498 2006-11-03 Mike Kestner <mkestner@novell.com>
13500 * ComboBox.cs : use ToString instead of casts in AddItem for
13501 sorting functionality. Fixes #79812.
13503 2006-11-03 Chris Toshok <toshok@ximian.com>
13505 * Application.cs: pave the way for actually using the thread
13506 exception dialog. it's ifdefed out at the moment.
13508 2006-11-03 Chris Toshok <toshok@ximian.com>
13510 * ThreadExceptionDialog.cs: until we get a better layout, actually
13511 hide the details textbox and label when we shouldn't see them.
13513 2006-11-03 Jackson Harper <jackson@ximian.com>
13515 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
13516 multiline textboxes anymore. This method also determines the
13517 width/height of a textboxes canvas area.
13518 - Sorta a revert of the last patch. For multiline just position
13519 the controls, then bail. This way the scrollbar width won't be
13522 2006-11-03 Everaldo Canuto <everaldo@simios.org>
13524 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
13525 it dont need. Fixes #79537.
13527 2006-11-02 Jackson Harper <jackson@ximian.com>
13529 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
13530 send the status after firing the DndOver event.
13532 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13534 * TrackBar.cs: Now orientation only switches height / width if
13535 the control's handle is created (Win32 does it like this). Also
13536 fixed a typo in ToString() for a test to pass, changed the
13537 exception thrown in set_LargeChange and set_SmallChange to
13538 match Win32 behaviour, and added TrackBar tests to the unit
13541 2006-11-02 Chris Toshok <toshok@ximian.com>
13543 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
13544 not _NET_WM_STATE_NO_TASKBAR.
13546 2006-11-02 Jackson Harper <jackson@ximian.com>
13548 * TextControl.cs: Increment count by one, since in the update view
13551 2006-11-02 Jackson Harper <jackson@ximian.com>
13553 * TextBoxBase.cs: Use client rectangle not bounds for checking if
13554 the mouse is in the client rectangle (duh).
13556 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13558 * TrackBar.cs: Fixed trackbar jumping around when clicking
13559 on it - the trackbar was not detecting correctly at which
13560 side of the thumb the click was done. (fixes #79718)
13562 2006-11-02 Everaldo Canuto <everaldo@simios.org>
13564 * ListBox.cs: scroll visible area when change SelectedIndex to
13565 a non visible area. Fixes #79481.
13567 2006-11-01 Jackson Harper <jackson@ximian.com>
13569 * TextControl.cs: When replacing the selection move the selection
13570 start/end/anchor to the end of the new text.
13572 2006-11-01 Jackson Harper <jackson@ximian.com>
13574 * XplatUIWin32.cs: When setting the parent change the controls
13575 visibility to it's visibility flag, not to it's old parents
13576 visibility (.Visible walks the parent chain).
13578 2006-11-01 Chris Toshok <toshok@ximian.com>
13580 * XplatUIX11.cs: revert the #79790 fix, as the simple.
13581 XSetTransientForHint fix breaks paint .net's tool windows. more
13582 work needed for that one.
13584 2006-11-01 Chris Toshok <toshok@ximian.com>
13586 * ScrollBar.cs: throw ArgumentException instead of Exception in
13587 LargeChange/SmallChange setters. fixes unit tests.
13589 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
13591 * ContainerControl.cs: reverted rev.67183 (which was itself
13592 a reversion of rev.66853... eh).
13594 * Control.cs: Fixes Reflector hang by changing Focus() call
13595 to what it was before rev.66643 (calling Select() here sets
13596 ActiveControl, which in some situations calls back Focus and
13597 eventually does a stack overflow). Temp fix.
13598 Changes to GetNextControl() to not look for children to select when
13599 parent cannot be selectable (so it looks for siblings instead)
13601 2006-10-31 Mike Kestner <mkestner@novell.com>
13603 * CheckedListBox.cs : off by one error in returned index from
13604 ObjectCollection.Add. Fixes #79758.
13606 2006-10-31 Chris Toshok <toshok@ximian.com>
13608 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
13609 calls for the textbox/spinner, to keep from recursing to the point
13610 where we crash. Fixes #79760.
13612 2006-10-31 Chris Toshok <toshok@ximian.com>
13614 * ListControl.cs (set_SelectedValue): don't throw exceptions on
13615 null/"" value, just return. matches ms's behavior and fixes some
13618 2006-10-31 Chris Toshok <toshok@ximian.com>
13620 * Control.cs (set_Capture): make a logic a little easier to
13623 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
13624 if it's being destroyed. A necessary fix surely, but a bandaid
13625 also, to fix the stuck capture problem in bug #78413.
13627 2006-10-31 Chris Toshok <toshok@ximian.com>
13629 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
13630 convention of clearing hwnd.ClientRect when we set the
13631 width/height (so it'll be recalculated by Hwnd).
13633 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
13635 * ContainerControl.cs: reversed Contains check from
13636 ActiveControl due to hanging problems. This fix
13637 partly regresses #79667 (button does not have
13638 initial focus), so this might be a symptom for
13639 a larger parenting problem (set_ActiveControl
13640 is being called but the child control does
13641 not have the parent set yet?)
13643 2006-10-31 Mike Kestner <mkestner@novell.com>
13645 * MenuAPI.cs : fix keynav when menu is click activated.
13647 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
13649 * ToolStrip*: Version 0.2.
13651 * MenuStrip.cs: Version 0.1.
13653 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
13655 2006-10-30 Chris Toshok <toshok@ximian.com>
13657 [ fixes the oversized notify icon issue in bug #79745 ]
13659 * NotifyIcon.cs: scale the icon down to the size we're given by
13660 the XplatUI layer (this would be faster if we did it once instead
13661 of whenever we paint..) Also, remove the WM_NCPAINT handling,
13662 since it's never invoked.
13664 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
13665 pixels high by default, so let's hardcode our systray icon to that
13666 size. The SYSTEM_TRAY protocol should really have a way for
13667 client apps to query for the correct icon size.. but oh well. A
13668 couple of patches to deal with the screwy client_window ==
13669 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
13670 instance, and also make sure we don't XSelectInput twice).
13672 2006-10-30 Chris Toshok <toshok@ximian.com>
13674 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
13675 recreating forms. Control recreation is the bane of my existence.
13676 Fix it in a way that keeps everyone happy.
13678 2006-10-30 Chris Toshok <toshok@ximian.com>
13680 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
13681 just non-CHILD ones. otherwise sometimes scrollbars end up with
13682 client_windows not being resized to the proper size (ReportBuilder
13683 shows this extremely well).
13685 2006-10-30 Chris Toshok <toshok@ximian.com>
13687 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
13688 for non-WS_EX_APPWINDOW windows. This is what keeps them from
13689 showing up in the gnome taskbar. Fixes bug #79790.
13691 2006-10-30 Chris Toshok <toshok@ximian.com>
13693 * ApplicationContext.cs: guard against a NRE.
13695 * Application.cs: null out the old MainForm for the context, so we
13696 don't try to use it again once it's disposed. Fixes bug #79783.
13698 2006-10-30 Chris Toshok <toshok@ximian.com>
13700 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
13701 BindingContext, set the data source directly, otherwise do the
13702 lazy approach - the actual ListManager will be created when we get
13703 a BindingContext. Fixes bug #79700.
13705 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
13707 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13708 XplatUIX11.cs: Remove old 2 parameter SetVisible.
13710 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
13712 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
13714 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
13715 of SetVisible that allows a window to be shown, but not activated.
13716 This is needed on Windows for MenuStrip, and can probably be used
13717 with MainMenu and ComboBox to fix the focus stealing issues on
13720 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
13722 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
13724 * PictureBox.cs: Fix the output of the ToString method.
13726 2006-10-29 Chris Toshok <toshok@ximian.com>
13728 * Control.cs (get_TopLevelControl): fix bug #79781.
13730 2006-10-29 Chris Toshok <toshok@ximian.com>
13732 * ListControl.cs (set_DataSource): throw Exception here, not
13733 ArgumentException, to match MS behavior.
13735 2006-10-29 Chris Toshok <toshok@ximian.com>
13737 * Form.cs: remove the try-catch's around calls to GetWindowState.
13738 We can just check the return value.
13740 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
13743 * XplatUI.cs: Add note about additional return value for
13746 2006-10-29 Chris Toshok <toshok@ximian.com>
13748 * Control.cs (CreateHandle): when we create our handle, we also
13749 create the handles of our child controls. Fixes one of the
13750 Control unit tests (CH11).
13752 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
13754 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
13756 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
13758 * ThemeClearlooks.cs: A little speedup.
13760 2006-10-27 Chris Toshok <toshok@ximian.com>
13762 * Control.cs: implement Control.FromChildHandle in a way that
13763 matches the docs (and fixes the failed test.)
13765 2006-10-27 Chris Toshok <toshok@ximian.com>
13767 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
13770 * DataGrid.cs: implement ResetForeColor such that the tests
13773 2006-10-27 Chris Toshok <toshok@ximian.com>
13775 * ToolBarButton.cs: setting text/tooltiptext to null results in it
13776 being set to "". Fixes bug #79759.
13778 2006-10-27 Jackson Harper <jackson@ximian.com>
13780 * TextControl.cs: We need to clear the entire selection area when
13781 setting the start, otherwise multiline selections are still
13784 2006-10-26 Chris Toshok <toshok@ximian.com>
13786 * PropertyGridView.cs:
13788 - ifdef all the code specific to the double
13789 buffer case, and provide some alternatives in the non-doublebuffer
13790 code, which makes heavy use of XplatUI.ScrollWindow to move things
13791 around without having to invalidate (and cause flicker). There
13792 are still some drawing problems in the non-doublebuffered case, so
13793 DOUBLEBUFFER is defined by default.
13795 - Fix the way dropdowns are handled. now we explicitly watch for
13796 the events which might cause the dropdown to close, and break out
13797 of the nested event loop there. This gets rid of all Capture
13798 code, at the expense of the Msg special casing. Seems to work,
13799 though, and fixes bug #79743.
13801 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13802 * Control.cs: SetIsRecreating now recreates implicitly added
13803 child controls as well. Finally fixes #79629. The flag passed to
13804 SetIsRecreating has also been removed since it wasn't used.
13806 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13808 * PageSetupDialog.cs: Clean some code, fix some bits,
13809 add some checks, and add a printer sub-dialog.
13811 2006-10-26 Chris Toshok <toshok@ximian.com>
13813 * PropertyGrid.cs: make set_SelectedObject call
13814 set_SelectedObjects, and move the duplicate logic to the
13815 SelectedObjects setter. Also, raise SelectedObjectsChanged.
13817 * PropertyGridView.cs: hide the textbox when we get a
13818 SelectedObjectsChanged event.
13822 2006-10-26 Chris Toshok <toshok@ximian.com>
13824 * PropertyGridView.cs: deal with the type converter not supporting
13825 GetStandardValues() or GetStandardValues() returning null, which
13826 is does in the default case. Fixes #79742.
13828 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
13830 * CheckedListBox.cs: nunit no longer crashes when selecting
13831 Project/Edit menu option
13833 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
13835 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
13836 is no menu selected. fixes #79739
13838 2006-10-25 Chris Toshok <toshok@ximian.com>
13840 * PropertyGridView.cs: factor out the splitter invalidation code
13841 into the SplitterPercent setter, and for kicks implement the
13842 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
13843 amount in either direction.
13845 2006-10-25 Chris Toshok <toshok@ximian.com>
13847 * PropertyGridView.cs: do some cleanup of the brush used to draw
13848 text - read only fields should be grayed out. not sure how to do
13849 this with the textbox, though. but the textbox's should also be
13850 readonly now at least. Also, hide/show the textbox when resizing
13853 * CursorConverter.cs: use System.Reflection when getting the
13854 properties of Cursors, as TypeDescriptor.GetProperties isn't
13855 returning static properties.
13857 2006-10-25 Chris Toshok <toshok@ximian.com>
13859 * PropertyGridView.cs: factor out the up/down handling, and reuse
13860 it for page up/down. also add End/Home support.
13862 2006-10-25 Chris Toshok <toshok@ximian.com>
13864 * PropertyGridView.cs:
13866 - ensure the selected grid item is visible in the scrolled area,
13869 - fix Keys.Down handling when you're on the last item in the
13872 2006-10-25 Mike Kestner <mkestner@novell.com>
13874 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
13875 clicks too. Fixes #79725.
13877 2006-10-24 Chris Toshok <toshok@ximian.com>
13879 * PropertyGrid.cs: use property.Converter instead of
13880 TypeDescriptor.GetConverter(property.PropertyType), so we catch
13881 TypeConverters declared on the property as well as on the
13882 PropertyType. Fixes bug #79678.
13884 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
13886 * MimeIcon.cs, Mime.cs:
13887 Fallback to the default platform handler if no shared mime info
13888 stuff exists (fixes #79693).
13890 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13891 * ContainerControl.cs: Incorrect contains check in ActiveControl
13892 from previous fix (duh).
13894 2006-10-20 Chris Toshok <toshok@ximian.com>
13896 * PropertyGridView.cs: the dropdown should be MIN(number of items
13897 in list, 15). Fixes #79551.
13899 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13900 Fixes #79384, #79394, #79652, #79667
13903 - Modal windows are now destroyed in the proper order for windows
13905 * ContainerControl.cs:
13907 - ActiveControl setter has more conditions on when to return:
13908 - if we're reselecting the active control, but it actually
13909 didn't have focus (window hidden or some such), it runs
13910 - if the active control being selected doesn't actually
13911 exist in the container, it returns
13915 - The ShowDialog now gets the current form as the owner when
13916 invoking without parameters, and correctly activates the owner
13921 - MessageBox now catches the Escape key to exit
13923 2006-10-20 Chris Toshok <toshok@ximian.com>
13925 * PropertyGridView.cs: fix a number of issues (bug #78565, and
13926 most of bug #79676):
13928 - you can navigate around the property grid with the arrow keys.
13930 - the dropdown is sized properly when the pg has a vertical
13933 - fix the indentation for subentries, and properly select the
13936 - fix the gray bar's drawing (only draw it to the last element,
13937 not for the height of the control. Also make sure we draw that
13938 last horizontal grid line.
13940 - use the same mechanism the datagrid uses wrt the editing textbox
13941 when scrolling/resizing/etc. Namely, we hide it first, do the
13942 operation, then show it again (if it's still visible).
13944 - aggressively remove a lot of unnecessary refreshes (and also
13945 calls to Invalidate(). call more limited variants, and only redraw
13950 - when we're populating the merged collection, fill in the UI
13951 parent with either the passed in item, or the category item we
13954 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
13956 * GridItem.cs: drop some fully qualified names.
13958 * GridEntry.cs: add a "UIParent", which is basically the parent
13961 * GridItemCollection.cs: add an IndexOf method.
13963 2006-10-20 Mike Kestner <mkestner@novell.com>
13965 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
13966 a working win32 NC invalidation mechanism, we can't invalidate
13967 menus. [Fixes #79705]
13969 2006-10-20 Mike Kestner <mkestner@novell.com>
13971 * ListBox.cs : don't update the VScrollbar if the list is empty,
13972 just hide it. [Fixes #79692]
13974 2006-10-20 Jackson Harper <jackson@ximian.com>
13976 * RichTextBox.cs: Handle some special chars better, and don't skip
13977 the entire group when we encounter a special char that we don't
13980 2006-10-18 Chris Toshok <toshok@ximian.com>
13982 * PropertyGridView.cs: address a number of issues from bug #79676,
13983 mostly of the cosmetic variety.
13985 - The highlight rectangle for indented items not extends all the
13988 - Indented items aren't indented so much.
13990 - the dropdown is properly sized width-wise if the pg has a
13991 vertical scrollbar.
13993 2006-10-18 Chris Toshok <toshok@ximian.com>
13995 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
13996 systray stuff is rather convoluted to begin with.
13998 systray icons are a single window for some reason (that I haven't
13999 figured out yet), and for them, client_window == whole_window.
14000 Given the way the tests are structured elsewhere to determine
14001 which paints are pending (client vs. nc), that situation will
14002 always yield PAINT, not NCPAINT. So, if we have a pending
14003 nc_expose and no pending expose, remove the hwnd from the paint
14004 queue, and also set nc_expose_pending to false, to keep us from
14005 blocking further expose's adding the hwnd to the paint queue.
14007 phew. like i said, a rather convoluted change. Fixes the
14008 notifyicon repaint issues in bug #79645.
14010 2006-10-18 Chris Toshok <toshok@ximian.com>
14012 * Form.cs: when getting the backcolor of the form, don't get
14013 base.BackColor, as this allows parents to influence the background
14014 color. This breaks mdi forms. Instead, if the background_color
14015 is empty, return the default.
14017 2006-10-18 Chris Toshok <toshok@ximian.com>
14019 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
14020 to being private instead of internal static.
14022 * Control.cs: remove all the stupid ParentWaitingOnRecreation
14023 crap, it wasn't working for more deeply nested controls anyway,
14024 and we already have the is_recreating flag - use that instead.
14025 Before calling DestroyHandle in RecreateHandle, recurse through
14026 the control tree setting it to true. this returns the recreate
14027 code to much of its original simplicity, while now guaranteeing we
14028 actually recreate everything we're supposed to. This change gets
14029 fyireporting actually showing mdi children.
14031 2006-10-17 Chris Toshok <toshok@ximian.com>
14033 * Form.cs: remove some debug spew, and collapse some duplicate
14034 code at the end of SetClientSizeCore.
14037 - add some more debug spew here too wrt Destroy handling.
14038 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
14039 in Control's handling of WM_DESTROY.
14040 - Remove the handling of zombie window DestroyNotifies from the
14041 event loop - we don't need it. Now the only DestroyNotifies we
14042 actually handle are ones generated by X.
14043 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
14044 match gtk's (functioning) handling of this. This keep metacity
14045 from leaving droppings in the form of wm borders with no window
14046 contents all over the place.
14049 - add a bunch of debug spew wrt control recreation.
14050 - fix a bug where we weren't tracking Visible properly on
14052 - fixed the WM_PAINT double buffer handling to support re-entrant
14053 calls (yes, i know it's gross, but it's happening to us).
14055 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14056 * ThemeWin32Classic.cs: changed drawing of selected days
14057 to make them look better.
14059 2006-10-16 Chris Toshok <toshok@ximian.com>
14061 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
14062 drawing_stack. Nuke the ClientDC/NonClientDC properties.
14064 * XplatUIX11.cs: move away from using hwnd.client_dc and
14065 hwnd.non_client_dc and on to a stack of dc's (and in window's
14066 case, PAINTSTRUCT's), so we can deal with nested Paint calls
14067 without puking or not disposing of Graphics objects.
14069 * XplatUIOSX.cs: same.
14071 * XplatUIWin32.cs: same.
14073 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
14075 * FileDialog.cs: Don't call on_directory_changed inside
14076 OnSelectedIndexChanged (it changes the SelectedIndex too).
14077 Instead move it to OnSelectionChangeCommitted.
14079 2006-10-13 Chris Toshok <toshok@ximian.com>
14081 * XplatUIX11.cs: more Destroy work. the current code does the
14082 following things, in order:
14084 1. Enumerates all handles of all controls at or below the one
14085 being destroyed, in pre-order. As it is doing this, it marks the
14086 handles as zombie and clears all references to them.
14088 2. calls XDestroyWindow on the window passed in.
14090 3. SendMessage's WM_DESTROY to all he handles in the accumulated
14093 2006-10-13 Chris Toshok <toshok@ximian.com>
14095 * XplatUIX11.cs: set hwnd.zombie to true before calling
14096 SendMessage (WM_DESTROY). this keeps us from marking the new
14097 window a zombie, and also keeps us from calling sendmessage at
14100 2006-10-13 Jackson Harper <jackson@ximian.com>
14102 * TextControl.cs: Do not show the caret and selection at the same
14103 time. Reduces ugliness by 35%.
14105 2006-10-13 Chris Toshok <toshok@ximian.com>
14107 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
14108 zombie after we do the recursive call, so we actually do call
14109 SendMessage on the children controls.
14110 (GetMessage): if we find a pending paint event for a zombie hwnd,
14111 remove the hwnd from the paint queue, or else it will always be
14112 there (and we'll effectively loop infinitely)
14114 2006-10-13 Mike Kestner <mkestner@novell.com>
14116 * MenuItem.cs : add Selected format under keynav too.
14119 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
14121 * PropertyGrid.cs: Fixed some NRE's and small difference between our
14122 implementation and that of MS.
14124 2006-10-13 Chris Toshok <toshok@ximian.com>
14126 * Control.cs (OnInvalidated) only futz with the invalid_region if
14127 the control is double buffered. this fixes the apparent hang in
14128 the ListView unit tests. Someone needs to make the
14129 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
14131 2006-10-13 Chris Toshok <toshok@ximian.com>
14133 * PropertyGridView.cs:
14135 - do a little refactoring so that only one place calls
14136 dropdown_form.Hide, and that is CloseDropDown. make everywhere
14137 else call that. Also make it Refresh, since there are redraw bugs
14138 otherwise (we should take a look at that...)
14140 - do a little more refactoring work to share the body of code
14141 involved with the drop down. it was duplicated in the code
14142 dealing with the listbox handling and in the code dealing with the
14145 - add a Capture to the dropdown form's control once it's
14146 displayed, and add a MouseDown handler that checks to make sure
14147 the position is inside the control. If it's not, close the
14148 dropdown. This fixes #78190.
14150 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
14151 if the value is different than the initial value.
14153 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
14155 * Control.cs: see #78650
14156 - Fixed GetNextControl for several cases:
14157 - Changed FindFlatForward to return
14158 correct sibling control when more than one
14159 control has same TabIndex as the currently
14161 - Changed FindFlatBackward to loop children
14162 from last to first and apply same logic as in
14164 - Changed FindControlForward to search for
14165 children when control is not a container
14166 but has children, or search for siblings if
14167 control is a container...
14168 - Changed FindControlBackward to continue
14169 searching for child controls when hitting
14172 - Fixed Focus method to update ActiveControl
14173 (FocusTest.FocusSetsActive failure)
14176 - Focus rectangle now refreshes when gaining
14178 - Removed grab for Tab key on IsInputKey that
14179 was keeping tab navigation from working (#78650)
14181 2006-10-13 Chris Toshok <toshok@ximian.com>
14183 * PropertyGridView.cs:
14184 - Rewrite SetPropertyValue to loop over SelectedGridItem's
14187 - Deal with GridItem.Value == null a few places.
14190 - replace the PopulateGridItemCollection with a pair of methods
14191 which compute the intersection of all the properties in the
14192 SelectedObjects array. Fixes #79615.
14194 - Throw ArgumentException from set_SelectedObjects if there's a
14197 - Add GetTarget method which can be used to traverse up the
14198 GridItem.Parent chain. It depends on the assumption that
14199 selected_objects for different GridEntries are always in the same
14200 order (a safe assumption). Use this method and loop over all the
14201 selected objects in the entry when calling RemoveValueChanged and
14204 * GridEntry.cs: Make this handle multiple selected objects.
14205 .Value returns null if not all the selected objects share the same
14208 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
14209 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
14210 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
14211 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
14212 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
14213 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
14214 add additional functionality.
14216 2006-10-12 Mike Kestner <mkestner@novell.com>
14218 * ErrorProvider.cs : new ToolTipWindow ctor sig.
14219 * HelpProvider.cs : new ToolTipWindow ctor sig.
14220 * ToolTip.cs : remove ToolTip param from Window sig since it is
14222 * ToolBar.cs : add tooltip support. Fixes #79565.
14224 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14226 * ComboBox.cs: move the events in set_SelectedIndex to
14227 after the call to HighlightIndex in order to avoid
14228 possible recursion and subsequent problems with the call
14229 to HighlightIndex and include a range check in
14230 set_HighlightIndex. Fixes #79588
14232 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14234 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
14235 to ui thread's settings instead of sunday.
14236 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
14238 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14240 * DateTimePicker.cs
14242 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
14243 and implement missing functionality (selecting different parts
14244 of the date and edit them individually with the keyboard).
14246 2006-10-11 Chris Toshok <toshok@ximian.com>
14248 * Control.cs (OnInvalidated): fix NRE relating to last change.
14250 2006-10-11 Chris Toshok <toshok@ximian.com>
14252 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
14253 atoms in _NET_WM_STATE here if the window is maximized. We need
14254 to do this because we're *replacing* the existing _NET_WM_STATE
14255 property, so those atoms will be lost otherwise, and any further
14256 call to GetWindowState will return Normal for a window which is
14257 actually maximized. Fixes #79338.
14259 2006-10-11 Jackson Harper <jackson@ximian.com>
14261 * TextControl.cs: Special case for setting selection end to
14262 selection start, we basically kill the anchor.
14263 - some todo comments.
14265 2006-10-11 Chris Toshok <toshok@ximian.com>
14267 * Control.cs: switch to using an "invalid_region" to track which
14268 parts of the image buffer need updating. This is more code than
14269 the simple fix from r66532. That version just attempted to always
14270 fill the entire buffer on redraw, which turns out to be
14271 inefficient when invalidating small rectangles. This version
14272 simply adds the invalid rectangle to the invalid region. When we
14273 get any WM_PAINT message we see if it can be filled using the
14274 image buffer, and if it can't (if the paint event's clip rectangle
14275 is visible in the invalid region) we first fill the image buffer.
14276 So, the image buffer is still a cache, we just fill it lazily.
14278 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
14279 need it any longer.
14281 2006-10-11 Chris Toshok <toshok@ximian.com>
14283 * XplatUIX11.cs (SetWindowPos): we need to update both position as
14284 well as size after calling XMoveResizeWindow. This keeps us from
14285 ignoring future SetWindowPos calls. Fixes the disappearing
14286 DateTimePicker in the ToolBarDockExample from bug #72499.
14288 2006-10-11 Chris Toshok <toshok@ximian.com>
14290 * TextBoxBase.cs: reorder things a bit when it comes to
14291 resizing-causing-recalculation. we were recalculating the
14292 document when our position was changed, which shouldn't happen.
14293 We only care about size changes. Clear up some more redundant
14294 recalculation calls while I'm at it. This makes the toolbar dock
14295 example snappy when you're just dragging toolbars around (since it
14296 causes a relayout whenever you move one.)
14298 2006-10-11 Chris Toshok <toshok@ximian.com>
14300 * ToolBarButton.cs (get_Rectangle): this only returns
14301 Rectangle.Empty if Visible == false, or Parent == null.
14302 Parent.Visible doesn't matter.
14304 2006-10-10 Chris Toshok <toshok@ximian.com>
14306 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
14307 by .net 1.1, so switch to an internal method instead.
14309 2006-10-10 Chris Toshok <toshok@ximian.com>
14311 * Control.cs (WM_PAINT): when a control is double buffered we draw
14312 initially to the ImageBuffer and then copy from there. But when a
14313 parent control which has child controls is double buffered, the
14314 initial drawing doesn't encompass the entire ClientRectangle of
14315 the parent control, so we end up with uninitialized bits (this is
14316 easily seen by dragging the top toolbar in
14317 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
14318 manually set the ClipRectangle of the paint_event (only the one we
14319 use to populate the ImageBuffer) to ClientRectangle. Fixes more
14320 of the nastiness in bug #72499.
14322 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
14323 which we use in Control.cs's WM_PAINT handling.
14325 2006-10-10 Jackson Harper <jackson@ximian.com>
14327 * TextBoxBase.cs: Finish off the autoscrolling stuff.
14329 2006-10-10 Chris Toshok <toshok@ximian.com>
14331 * Cursor.cs: Apply a slightly different patch to the one suggested
14334 2006-10-10 Jackson Harper <jackson@ximian.com>
14336 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
14337 not the parent form.
14338 * TextControl.cs: use difference in old line count vs new count to
14339 calculate how many lines were added, this takes into account soft
14340 line breaks properly.
14342 2006-10-10 Chris Toshok <toshok@ximian.com>
14344 * LinkLabel.cs: don't call MeasureCharacterRanges against a
14345 rectangle located at 0,0 and the size of the text. Use
14346 ClientRectangle instead. This fixes rendering of non-left aligned
14349 2006-10-10 Jackson Harper <jackson@ximian.com>
14351 * TextBoxBase.cs: When we set the selection start position the
14353 * TextControl.cs: Need to update the caret when we decrement it to
14355 - Make sure that the selection_visible flag gets reset to false if
14356 the selection isn't visible. Before this you could get it set to
14357 visible by changing the selection start, then changing the end to
14360 2006-10-09 Jackson Harper <jackson@ximian.com>
14362 * TreeView.cs: Don't update scrollbars when we aren't visible.
14363 * TreeNodeCollection.cs: Only need to update scrollbars if being
14364 added to an expanded visible node or the root node.
14366 2006-10-09 Chris Toshok <toshok@ximian.com>
14368 * XplatUIX11.cs (SendMessage): fix NRE.
14370 2006-10-09 Jackson Harper <jackson@ximian.com>
14372 * TextBoxBase.cs: Implement horizontal autoscrolling.
14373 * TextControl.cs: Add a movement types that allows moving forward
14374 and backwards without wrapping.
14376 2006-10-09 Mike Kestner <mkestner@novell.com>
14378 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
14379 with focus "expansion" of labels. Fixes #79532 and then some.
14380 * ThemeWin32Classic.cs : add LineLimit to ListView label format
14383 2006-10-09 Jackson Harper <jackson@ximian.com>
14385 * TextBoxBase.cs: Set the default max values to MaxValue since
14386 we use the scrollbar for autoscrolling and the default value is
14387 100. If we don't do this the caret won't keep up with typing
14388 after about 18 characters.
14389 * TextControl.cs: Make sure the selection is offset by the
14390 viewport x. This fixes selection when using auto scrolling.
14392 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
14394 * Form.cs: The active control should be selected after the
14395 OnLoad so that any child control initialization that affects
14396 the selection is done. Fixes #79406
14398 2006-10-06 Chris Toshok <toshok@ximian.com>
14400 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
14401 to have no evil effects.
14403 - Stop selecting StructureNotifyMask on non-toplevel windows.
14405 The only way children should be resized is by using the SWF api,
14406 and we already send WM_WINDOWPOSCHANGED messages in those cases.
14407 Toplevel windows can be interacted with via the window manager,
14408 and so we keep the input mask there.
14410 The other event StructureNotifyMask gives us (that we care
14411 about) is DestroyNotify. The code is already structured such
14412 that it assumes we won't be getting a DestroyNotify event for
14413 the window we pass to XDestroyWindow (which is what
14414 StructureNotifyMask is supposed to guarantee.) So, that code
14415 shouldn't be affected by this either.
14417 - Stop selecting VisibilityChangeMask altogether.
14419 We weren't doing anything with the resulting events anyway.
14421 This vastly reduces the number of X requests and events we see
14422 when resizing/laying out a large ui.
14424 2006-10-06 Chris Toshok <toshok@ximian.com>
14426 * ScrollableControl.cs (DisplayRectangle): we need to take into
14427 account the DockPadding regardless of whether or not auto_scroll
14428 == true. rework this slightly to this effect, and fix bug #79606,
14429 and part of #72499 (you can now see the drag handles and drag
14432 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
14434 * ListViewItem.cs: Collections of selected and checked items are now
14435 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
14436 we mark the collection "dirty".
14437 * ListView.cs: Marked collections readonly. Modified UpdateSelection
14438 to only clear SelectedItems when a new item is selected and MultiSelect
14439 is enabled. CheckedItems and SelectedItems now subscribe to Changed
14440 event of ListViewItemCollection, and mark its list dirty whenever
14441 that event is fire. This allows us to return selected/checked items
14442 in the same order as they are in the Items collection. This matches
14445 2006-10-06 Chris Toshok <toshok@ximian.com>
14447 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
14448 right mouse clicks. Fixes bug #79593.
14450 2006-10-06 Chris Toshok <toshok@ximian.com>
14452 * Splitter.cs: doh, fix splitters that don't want to cancel the
14453 movement when you drag them. Also, impose the limits on the
14454 values we send to the SplitterMovingEvent. Fixes #79598.
14456 2006-10-06 Jackson Harper <jackson@ximian.com>
14458 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
14459 since we use this for auto scrolling also.
14461 2006-10-05 Chris Toshok <toshok@ximian.com>
14463 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
14464 beginning to think that most datagrid column types don't need this
14465 method. Fixes bug #79392.
14467 2006-10-05 Chris Toshok <toshok@ximian.com>
14469 * DataGrid.cs: move back to a more lazy scheme for creating the
14470 CurrencyManager, so we aren't updating it every time you set
14471 either DataSource or DataMember. Also, don't call
14472 RecreateDataGridRows if the currency manager hasn't changed.
14474 2006-10-05 Chris Toshok <toshok@ximian.com>
14476 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
14477 emitted, SelectedIndex should already be updated. Fixes bug
14480 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
14482 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
14483 ToolStripTextBox.cs: Initial commit.
14484 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
14486 2006-10-05 Jackson Harper <jackson@ximian.com>
14488 * TabControl.cs: We need to invalidate the tab control area when
14489 new ones are added (duh).
14491 2006-10-03 Chris Toshok <toshok@ximian.com>
14493 * Form.cs (ProcessDialogKey): if the focused control is in this
14494 form and is a button, call its PerformClick method here. Fixes
14497 2006-10-04 Jackson Harper <jackson@ximian.com>
14499 * TabPage.cs: Ignore setting of Visible, and add an internal
14500 method for setting the controls visibility. TabPage's Visible
14501 property is a little strange on MS, this seems to make us
14502 compatible, and fixes cases where people set all the tab pages to
14504 * TabControl.cs: Use the new internal setting on tab pages
14507 2006-10-03 Mike Kestner <mkestner@novell.com>
14509 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
14511 2006-10-03 Mike Kestner <mkestner@novell.com>
14513 * ListView.cs : use is_visible instead of Visible to check if
14514 scrollbars should be placed/sized. Also some max_wrap_width
14515 love for LargeIcon view. [Fixes #79533]
14517 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
14520 Make set_TextAlign() do actually update the align. Fixed #78403.
14522 2006-10-03 Chris Toshok <toshok@ximian.com>
14524 * DataGrid.cs: fix a crash when switching datasources if the
14525 vertical scrollbar is at someplace other than Value = 0. Also,
14526 reduce the number of recalculation passes we do in SetDataSource
14529 2006-10-03 Jackson Harper <jackson@ximian.com>
14531 * TextBoxBase.cs: Move the if value the same bail check up, we
14532 don't want to empty the document if it is already empty, this
14533 seems to severly mess up the caret. TODO: I should probably fix
14534 the empty statement to update teh caret somehow.
14536 2006-10-03 Chris Toshok <toshok@ximian.com>
14538 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
14539 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
14540 reflection, an internal row type, properties on said type, etc.)
14541 will work with our datagrid. Fixes #79531.
14543 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
14545 * FileDialog.cs: Don't crash if a path is not accessible
14546 (System.UnauthorizedAccessException). Fixes #79569.
14547 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
14548 a ':' too. Return unknown icon for those paths/files.
14550 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
14552 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
14553 GetContainerControl returns null.
14555 2006-10-02 Chris Toshok <toshok@ximian.com>
14557 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
14558 call to XGetWindowAttributes instead of "handle". fixes an X
14559 error using notifyicon after the NotifyIconWindow to Form base
14562 2006-10-02 Chris Toshok <toshok@ximian.com>
14564 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
14565 server grab and looping we need to do to get down to the most
14566 deeply nested child window.
14567 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
14568 QueryPointer again after the WarpPointer so we can generate a
14569 proper (fake) MotionNotify event to be enqueued in the destination
14571 (GetCursorPos): call QueryPointer.
14575 2006-10-02 Jackson Harper <jackson@ximian.com>
14577 * NotifyIcon.cs: Derive the notify icon from a form, so things
14578 like FindForm work on it.
14579 - Swallow the WM_CONTEXTMENU message, since that is generated on
14580 mouse down, and context menu is a mouse up kinda guy. I believe
14581 the correct fix here is probably to make the notify icon entirely
14582 NC area, but this seems to work fine for anyone not manipulating
14585 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
14587 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
14588 ToolStripItemCollection.cs, ToolStripLabel.cs,
14589 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
14590 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
14591 Initial implementation.
14592 * TextRenderer.cs: Provide padding to MeasureText.
14594 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
14596 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
14597 of ButtonBaseAccessibleObject. Fix bug #79552.
14599 2006-10-02 Jackson Harper <jackson@ximian.com>
14601 * MdiWindowManager.cs: When maximizing use the containers client
14602 rect, not it's bounds, so nc area is accounted correctly.
14603 - Use the parent form's size for the menu position, since the
14604 client isn't always the full form size.
14606 2006-10-01 Chris Toshok <toshok@ximian.com>
14608 * ScrollableControl.cs: make sure neither right_edge or
14609 bottom_edge are < 0, since they're used as LargeChange for the
14610 horiz/vert scrollbars respectively. Fixes #79539.
14612 2006-10-01 Chris Toshok <toshok@ximian.com>
14614 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
14615 the xplatuix11 code can cause us to destroy/recreate our handle.
14619 - this code can be invoked many times for the same Hwnd. Make
14620 sure we only destroy the client window once (the first time this
14621 method is called). This fixes bug #79544.
14622 - Remove the call to the improperly bound XSync. why we had two
14623 bindings to this, I will never know, but this call resulted in
14624 events being discarded from the queue(!).
14625 - correct a misunderstanding of _XEMBED_INFO - the second atom is
14626 not our current state but the state we wish to be in. So, 0 if
14627 we don't want to be mapped. Change it to 1.
14628 (SystrayRemove): The XEMBED spec makes mention of the fact that
14629 gtk doesn't support the reparent of client windows away from the
14630 embedder. Looking at gtksocket-x11.c seems to agree with this.
14631 The only avenue we have for removing systray icons is to destroy
14632 them. We don't want the handle to go away for good, though, so
14633 call InternalRecreateHandle on the NotifyIconWindow. Fixes
14636 2006-10-01 Chris Toshok <toshok@ximian.com>
14638 * Form.cs (WndProc): inline the native_enabled variable usage into
14639 the cases in which it's used. Fixes #79536.
14641 2006-09-29 Mike Kestner <mkestner@novell.com>
14643 * ListView.cs : toggle the selection state for ctrl clicks in
14644 multiselect mode. [Fixes #79417]
14646 2006-09-29 Mike Kestner <mkestner@novell.com>
14648 * ListView.cs : kill CanMultiSelect and refactor the selection
14649 code to support multiselection in the absence of mod keys. Steal
14650 arrow/home/end keys by overriding InternalPreProcessMessage to
14651 restore regressed keynav behavior.
14654 2006-09-29 Jackson Harper <jackson@ximian.com>
14656 * MdiClient.cs: Repaint the titlebars when the active window is
14659 2006-09-29 Chris Toshok <toshok@ximian.com>
14661 * Application.cs: when entering a runloop with a modal, make sure
14662 the hwnd is enabled. Fixes #79480.
14664 2006-09-29 Chris Toshok <toshok@ximian.com>
14666 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
14667 when ListManager.CanAddRows == false, bump us back one.
14669 * DataGridColumnStyle.cs (ParentReadOnly): remove the
14670 listmanager.CanAddRows check. This makes ArrayLists uneditable
14671 using a datagrid, which is not right.
14672 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
14673 is an IEditable, but call property_descriptor.SetValue regardless.
14676 2006-09-29 Chris Toshok <toshok@ximian.com>
14678 * DataGridBoolColumn.cs: we need to test equality in the face of
14679 possible null values (as is the case with the default NullValue).
14680 This patch keeps us from crashing in that case.
14682 2006-09-29 Jackson Harper <jackson@ximian.com>
14684 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
14685 here, since it will get called for every node collection in the
14686 tree. This is now done in the treeview once the sorting is
14688 * TreeView.cs: Recalculate the visible order, and update the
14689 scrollbars after sorting, set the top nope to the root so that the
14690 recalc actually works.
14692 2006-09-29 Chris Toshok <toshok@ximian.com>
14694 * LinkLabel.cs: more handling of the default link collection in
14695 the face of LinkArea manipulation. The default link collection
14696 contains 1 element (start=0,length=-1). If the user sets LinkArea
14697 to anything and the links collection is the default, clear it.
14698 Then only add the link if its nonempty. Fixes #79518.
14700 2006-09-29 Chris Toshok <toshok@ximian.com>
14702 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
14703 piece correctly when we hit a '\n'. Fixes #79517.
14705 2006-09-29 Chris Toshok <toshok@ximian.com>
14707 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
14708 change the binding of gdk_init_check to take two IntPtr's, and
14709 pass IntPtr.Zero for both of them. Fixes #79520.
14711 2006-09-29 Mike Kestner <mkestner@novell.com>
14713 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
14716 2006-09-28 Jackson Harper <jackson@ximian.com>
14718 * XplatUIX11.cs: When translating NC messages make sure we go from
14719 whole window to screen, not client window to screen.
14720 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
14721 method doesn't exist
14722 - Skip over controls that aren't forms when arranging.
14724 2006-09-28 Jackson Harper <jackson@ximian.com>
14726 * XplatUIWin32.cs: Clip the rect to the parent window.
14727 * XplatUIStructs.cs: Add clipping modes struct.
14728 * InternalWindowManager.cs: New private method that factors title
14729 bar heights in when calculating the pos of an NC mouse message.
14730 - Use SendMessage to force a paint when the form's size is changed
14731 instead of painting the decorations immediately.
14732 - Don't let the NC button click messages get to DefWndProc,
14733 because they will attempt to handle windowing themself, and this
14734 messes up z-order (it will put them in front of the scrollbars).
14735 * XplatUIX11.cs: Make sure that we don't reset window managers if
14736 we already have one (ie the window is an MDI window).
14738 2006-09-28 Chris Toshok <toshok@ximian.com>
14740 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
14741 menu code really needs going over.
14743 2006-09-27 Chris Toshok <toshok@ximian.com>
14745 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
14746 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
14747 window is maximizable. So, we need to make sure that even if we
14748 clear the border/wm frame of those functions, they're still
14749 available (basically, we remove the decoration without removing
14750 the function). Half the fix for #79338.
14752 2006-09-27 Chris Toshok <toshok@ximian.com>
14754 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
14757 2006-09-27 Chris Toshok <toshok@ximian.com>
14759 * Splitter.cs: reorder things a bit so that we don't actually
14760 draw/move the splitter until after calling OnSplitterMoving. This
14761 lets users cancel/disallow the movement by explicitly setting
14762 event.SplitX/SplitY. Fixes #79372.
14764 2006-09-27 Jackson Harper <jackson@ximian.com>
14766 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
14767 because it is most likely on a window being destroyed, and that
14768 will give us an X11 error.
14770 2006-09-27 Chris Toshok <toshok@ximian.com>
14772 * PropertyGridView.cs: half of the fix for #78190. Clicking on
14773 the dropdown button now toggles between showing and hiding the
14774 dropdown. Also, get rid of dropdown_form_showing and just use
14775 dropdown_form.Visible. We still don't do a grab, but I'll leave
14776 that part to someone who has handled Capture-fu before.
14778 2006-09-27 Chris Toshok <toshok@ximian.com>
14780 * DataGrid.cs: return false if alt isn't pressed when '0' is
14781 pressed. this keeps the '0' key from being swallowed, and fixes
14784 2006-09-27 Chris Toshok <toshok@ximian.com>
14786 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
14787 Calling Refresh (in response to a scrollbar event) screws up the
14788 scrollbar painting. Fixes bug #78923.
14790 2006-09-27 Chris Toshok <toshok@ximian.com>
14792 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
14793 then insert into hashtable" blocks threadsafe.
14795 2006-09-27 Chris Toshok <toshok@ximian.com>
14797 * MessageBox.cs (CreateParams): the styles should be |'ed with our
14798 baseclass's, since otherwise the
14799 ControlBox/MinimizeBox/MaximizeBox assignments above have no
14800 effect. This gets the close button back in messageboxes.
14802 2006-09-27 Chris Toshok <toshok@ximian.com>
14804 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
14805 flag, not just != 0. this makes flags that are actually multiple
14806 bits (like WS_CAPTION) work. fixes bug #79508.
14808 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
14810 * PageSetupDialog.cs: add support for getting and settings the
14811 paper size, source and orientation.
14813 2006-09-26 Chris Toshok <toshok@ximian.com>
14815 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
14816 and caption == "", we need to remove the resize handles as well as
14819 * Control.cs (set_Text): turns out that setting Text on a form
14820 should change the WM styles on the window, since if ControlBox ==
14821 false, the only way to get a window border is to have a non-""
14822 Text property. check winforms/forms/text.cs for an example. so,
14823 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
14824 update both window styles and title. This fixes a lot of dialogs
14825 (including the preferences dialog in MonoCalendar.)
14827 2006-09-26 Chris Toshok <toshok@ximian.com>
14829 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
14830 control isn't a Form), call Win32ShowWindow to hide the window,
14831 but don't update the control Visible property. When we reparent
14832 back to a parent control, call SetVisible in order for the
14833 window's visibility to be reinstated.
14835 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
14838 * Control.cs (ControlCollection.Remove): remove that value.Hide()
14839 call for good, since it breaks MonoCalendar (and other things I'm
14840 sure.) Also, set all_controls to null *after* the owner calls,
14841 which end up regenerating it.
14842 (ChangeParent): allow new_parent to be == null, passing
14843 IntPtr.Zero down to XplatUI.
14845 this fixes #79294 the right way.
14847 2006-09-26 Mike Kestner <mkestner@novell.com>
14849 * GridEntry.cs : internal SetParent method.
14850 * PropertyGrid.cs : attach to property changed on the proper
14851 target if we have a hierarchical grid with subobjects. Setup
14852 GridItem.Parent for hierarchical items.
14853 * PropertyGridView.cs : Set value on the correct target for
14854 hierarchical grids. [Fixes #78903]
14856 2006-09-26 Chris Toshok <toshok@ximian.com>
14858 * Control.cs (ChildNeedsRecreating): this should return true if
14859 either we're being recreated and the child is in our list, or our
14860 parent is waiting for our recreation.
14862 2006-09-26 Chris Toshok <toshok@ximian.com>
14864 * Control.cs (ControlCollection.Remove): reinstate the
14865 value.Hide() call as suggested in bug #79294.
14867 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
14869 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
14870 coordinates (versus a relative move).
14872 2006-09-26 Chris Toshok <toshok@ximian.com>
14874 * Control.cs: rework child recreation a little bit. It turns out
14875 that we race between the DestroyNotify the WM_DESTROY message. If
14876 the parent gets its DestroyNotify before the child gets the
14877 WM_DESTROY message, the child ends up not recreating (since the
14878 parent finishes its recreation on DestroyNotify, and the child
14879 checks ParentIsRecreating.)
14881 So, instead we store off a list of all the child controls which
14882 need to be recreated when the parent control starts to recreate
14883 itself. Then, when child controls get their WM_DESTROY message we
14884 check to see if they're in the parent's pending recreation list,
14885 and if so, we recreate. This removes all dependency on ordering
14886 from the code and fixes the initial MonoCalendar upgrade dialog.
14888 2006-09-26 Jackson Harper <jackson@ximian.com>
14890 * TextControl.cs: Use the Line to get the length of the line,
14891 since soft line breaks can change the end line.
14893 2006-09-26 Chris Toshok <toshok@ximian.com>
14895 * Control.cs (ControlCollection.AddImplicit): don't add the
14896 control again if it's already in one of our lists. This keeps us
14897 from adding controls over and over again for comboboxes when their
14898 handle gets recreated (as the combobox adds implicit controls in
14899 OnHandleCreated). Fixes the X11 errors in bug #79480.
14901 2006-09-26 Jackson Harper <jackson@ximian.com>
14903 * TextControl.cs: When deleting characters make sure that any
14904 orphaned zero lengthed tags get deleted.
14905 - Fix ToString for zero lengthed tags.
14907 2006-09-25 Jackson Harper <jackson@ximian.com>
14909 * TextControl.cs: When getting a tag at the location there can be
14910 multiple tags at the same spot, these are 0-lengthed tags that
14911 appear when extra formatting has been stuck in a location. We
14912 need to pull out the last of these 0 lengthed tags.
14914 2006-09-25 Jackson Harper <jackson@ximian.com>
14916 * TextControl.cs: Fix print out in debug method.
14917 * TextBoxBase.cs: When text is set bail if we are setting to the
14920 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
14922 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
14923 It is now possible to change the selected index in a FontXXXListBox
14924 with the up and down arrow keys from the FontXXXTextBoxes.
14925 Also, send the FontXXXTextBox mouse wheel event to the corresponding
14926 FontXXXListBoxes to match ms.
14928 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
14930 * SystemInformation.cs: Return a clone of the theme's MenuFont because
14931 anyone can dispose it, anytime. All other properties returns enums,
14932 structs or basic types so they don't need such tricks.
14934 2006-09-22 Jackson Harper <jackson@ximian.com>
14941 * XplatUIDriver.cs: Update interface to add a primary selection
14942 flag, so the driver can use the primary selection buffer if
14944 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
14946 * RichTextBox.cs: We need to supply the data object to paste now
14947 (so we can choose to supply CLIPBOARD or PRIMARY).
14948 * TextBoxBase.cs: Supply data object to paste (see above).
14949 - Middle click uses the primary selection data object.
14951 2006-09-21 Chris Toshok <toshok@ximian.com>
14953 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
14954 of SetWMStyles. It's still a rat's nest and is largely
14955 order-dependent which I dislike immensely. This also fixes the X
14956 button disappearing from toplevel forms.
14958 2006-09-21 Mike Kestner <mkestner@novell.com>
14960 * ListBox.cs: move Jordi's click/dblclick raising code to the
14963 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
14965 * ListBox.cs: Fixes 79450
14967 2006-09-21 Mike Kestner <mkestner@novell.com>
14969 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
14970 to deal with people updating the TreeNodeCollection after the tree
14971 is disposed. "Fixes" 79330.
14973 2006-09-20 Jackson Harper <jackson@ximian.com>
14975 * TextControl.cs: Push the cursor record onto the undo stack
14976 before the delete action. This fixes 78651.
14978 2006-09-20 Jonathan Chambers <joncham@gmail.com>
14980 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
14981 CreateParams. Fixes 79329.
14983 2006-09-19 Chris Toshok <toshok@ximian.com>
14985 * XplatUIX11.cs: a couple of blanket code massage passes to clean
14986 things up a bit. First, get rid of the NetAtoms array (and the NA
14987 enum), and just embed the atoms as static fields. Also, add a
14988 couple of functions (StyleSet and ExStyleSet) to clean up all the
14989 bitmask testing of styles.
14991 * X11Structs.cs: remove the NA enum, not needed anymore.
14993 2006-09-19 Chris Toshok <toshok@ximian.com>
14995 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
14996 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
14997 added cleanup to get MessageBox titles appearing again, which were
14998 broken by my earlier fix for caption-less/ControlBox-less windows.
15000 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
15002 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
15003 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
15004 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
15005 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
15006 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
15007 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
15008 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
15009 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
15010 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
15011 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
15012 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
15014 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
15015 ToolStripButton.cs: Stubs needed for above.
15016 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
15018 2006-09-15 Chris Toshok <toshok@ximian.com>
15021 - make the MessageQueues hashtable Synchronized.
15023 - SendMessage: if the Hwnd is owned by a different thread, use the
15024 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
15025 thread. Fixes bug #79201.
15027 2006-09-15 Chris Toshok <toshok@ximian.com>
15029 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
15030 ControlBox == false, we disallow maximize/minimize/close. If the
15031 form Caption is "" we also disallow move (and get rid of the Title
15032 decoration). Unfortunately, regardless of how things are set,
15033 we're stuck with the Title and WM menu.
15035 2006-09-15 Chris Toshok <toshok@ximian.com>
15037 * Application.cs: add locking around the static message_filters
15038 ArrayList, part of #79196.
15040 2006-09-15 Chris Toshok <toshok@ximian.com>
15042 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
15043 Form.ControlBox == false, the window has no titlebar nor resize
15044 handles. fixes bug #79368.
15046 2006-09-15 Chris Toshok <toshok@ximian.com>
15048 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
15049 >= 0. Fixes bug #79370.
15051 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
15052 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
15054 Add properties: LayoutEngine, Margin, DefaultMargin.
15055 Add method: GetPreferredSize.
15056 Move layout logic from PerformLayout to layout engines.
15058 2006-09-13 Chris Toshok <toshok@ximian.com>
15060 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
15061 fix for #79326 broke #78718, so this change addresses that.
15063 - in SendWMDestroyMessages remove the call to
15064 CleanupCachedWindows, since we might be recreating the control and
15065 need to maintain the references to right Hwnd handles. Also, set
15066 the zombie flag to true for each of the children in the hierarchy
15067 instead of calling hwnd.Dispose. This will cause GetMessage to
15068 ignore all events for the window except for DestroyNotify.
15070 - In GetMessage, ignore messages except for DestroyNotify for
15073 * Control.cs: revert the is_recreating fix from the last
15074 ChangeLog. It's definitely "right", but it breaks switching from
15075 an MDI form to a non-MDI form. Will need to revisit that.
15077 * Hwnd.cs: add a zombie flag, which means "the
15078 client_window/whole_window handles are invalid, but we're waiting
15079 for the DestroyNotify event to come in for them". Set the flag to
15080 false explicitly if setting WholeWindow/ClientWindow, and also
15083 2006-09-13 Chris Toshok <toshok@ximian.com>
15085 * XplatUIX11.cs: rework window destruction slightly.
15087 - when destroying the windows associated with a control, we don't
15088 need 2 separate XDestroyWindow calls. Just the one for the
15089 whole_window (or for client_window if whole_window is somehow
15090 IntPtr.Zero -- can this happen?) is enough.
15092 - reworked SendWMDestroyMessages slightly, so we always dispose
15093 the child control hwnd's after sending the messages.
15095 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
15096 the two places it was used (one was even using hwnd.Handle and the
15097 other hwnd.client_window. ugh), adding another call in
15098 SendWMDestroyMessages. We need this new call because now the
15099 DestroyNotify events in the queue will be ignored for the child
15100 controls (as their hwnd's were disposed, and the window id's
15101 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
15103 - this fixes bug #79326.
15105 2006-09-13 Chris Toshok <toshok@ximian.com>
15107 * Control.cs: don't always set is_recreating to false at the end
15108 of RecreateHandle, since sometimes we're not done (and won't be
15109 until WndProc handles the WM_DESTROY message). Also, set
15110 is_recreating to false in the WM_DESTROY handling code. Part of
15111 the fix for bug #79326.
15113 2006-09-13 Miguel de Icaza <miguel@novell.com>
15115 * X11DesktopColors.cs: Start the droppage of debugging messages.
15117 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
15119 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
15121 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
15123 2006-09-12 Chris Toshok <toshok@ximian.com>
15125 * DataGrid.cs (get_ListManager): if the list_manager is null, try
15126 to create it using SetDataSource. Fixes bug #79151.
15128 2006-09-11 Chris Toshok <toshok@ximian.com>
15130 * XEventQueue.cs: add a DispatchIdle property.
15132 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
15133 either the queue is null, or the queue has DispatchIdle set to
15135 (DoEvents): set queue.DispatchIdle to false around the
15136 peek/translate/dispatch message loop in this method. This keeps
15137 Application.Doevents from emitting idle events. Part of the fix
15140 2006-09-11 Chris Toshok <toshok@ximian.com>
15142 * DataGrid.cs (set_DataSource): make this work for both the
15143 winforms/datagrid test and ReportBuilder. It seems as though when
15144 we've created a ListManager (or maybe it's if we have a
15145 BindingContext?), when we set the DataSource it clears the
15146 DataMember to "". otherwise we reuse the datamember. Fixes bug
15149 2006-09-11 Chris Toshok <toshok@ximian.com>
15151 * XplatUIX11.cs: deal with queue being null, which happens in all
15152 the Clipboard functions. Fixes one of the two problems mentioned
15155 2006-09-11 Chris Toshok <toshok@ximian.com>
15157 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
15158 button on various spots (including outside the menu) works closer
15159 to MS, and doesn't crash. Fixes #79343.
15161 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
15163 * ListView.cs: Do not initialize item_sorter in init. To match MS,
15164 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
15165 and the internal comparer is set. When a new ListViewItemSorter is set,
15166 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
15167 was specified. No further processing is necessary if SortOrder is set
15168 to it's current value. If Sorting is modified to None, and View is
15169 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
15170 (either custom or our internal ItemComparer) to null, on 1.0 profile
15171 only set item_sorter to null if its our internal IComparer. If Sorting
15172 is modified to Ascending or Descending, then use our internal IComparer
15173 if none is set, and if the current IComparer is our internal one then:
15174 on 2.0 profile always replace it with one for new Sorting, and on 1.0
15175 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
15176 Enum.IsDefined to verify whether a valid View value is specified in
15177 its setter. Automatically sort listview items when listview is
15178 created. In Sort, do nothing if ListView is not yet created, or if
15179 no item_sorter is set (no Sorting was set, Sorting was explicitly set
15180 to None or ListViewItemSorter was set to null). Added Sort overload
15181 taking a bool to indicate whether the ListView should be redrawn when
15182 items are sorted (we use this in ListViewItemCollection to avoid double
15183 redraws). Modified our internal IComparer to take the sort order into
15184 account. In Add and AddRange methods of ListViewItemCollection, also
15185 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
15186 view), but use overload with noredraw option to avoid double redraw.
15187 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
15188 true when View is Tile, and do the same when attempting to set View to
15189 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
15190 for selected/checked indices, as it involves overhead when sorting is
15191 done while these collections are not used all that often. Instead
15192 we'll build the indices on demand. Modified IList implementation of
15193 CheckedIndexCollection to use public methods if object is int.
15194 Modified CheckedListViewItemCollection to hide checked items if
15195 ListView.CheckBoxes is false. Removed LAMESPEC remark in
15196 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
15197 IList implementation in SelectedIndexCollection to use public methods
15198 if object is int. Modified SelectedListViewItemCollection to hide
15199 selected items if listview is not yet created.
15200 * ListViewItem.cs: CheckedIndices list no longer needs to be
15201 maintained separately (see ListView changes). Also clone font, fixes
15204 2006-09-11 Mike Kestner <mkestner@novell.com>
15206 * ComboBox.cs: if we are updating the contents of the currently
15207 selected index, refresh the control or the textbox selection.
15210 2006-09-11 Mike Kestner <mkestner@novell.com>
15212 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
15213 the 'specified' logic has been moved there. This seems like a bug
15214 in Control.cs, since our current SetBoundsCore completely ignores
15215 the specified parameter. Peter's commit seems to indicate that is
15216 the way the MS control implementation works. [Fixes #79325]
15218 2006-09-10 Jonathan Chambers <joncham@gmail.com>
15220 * XplatUI.cs: Set default_class_name to be composed
15221 of current domain id. This allows MWF to be loaded in multiple
15224 2006-09-09 Miguel de Icaza <miguel@novell.com>
15226 * X11Keyboard.cs: If we are unable to obtain the input method, do
15227 not call CreateXic to create the input context. Should fix
15230 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
15232 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
15233 Simplified gnome support by adding more pinvokes to get the
15234 icon for a file or mime type.
15236 2006-09-08 Jackson Harper <jackson@ximian.com>
15238 * MenuAPI.cs: Deslect popup context menu items before closing the
15239 window, so that you don't see the previously selected item
15240 selected when you reopen the menu.
15241 * TextControl.cs: Update the cursor position even if we don't have
15242 focus. This fixes typing in things like the ComboBox. I'm not
15243 totally sure we should always set the visibility if we don't have
15244 focus, but couldn't find any corner cases where the cursor showed
15245 up when it shouldn't.
15247 2006-09-08 Chris Toshok <toshok@ximian.com>
15249 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
15250 our arrays are length 256. & 0xff before indexing. Fixes the
15251 crash in bug #78077.
15253 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15255 * ThemeWin32Classic.cs:
15256 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
15257 is true. Handle that check box too.
15259 2006-09-07 Chris Toshok <toshok@ximian.com>
15261 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
15264 2006-09-07 Chris Toshok <toshok@ximian.com>
15266 * Control.cs: in set_BackColor only do the work if
15267 background_color != value.
15269 * XplatUIX11.cs: move the clearing of invalid areas (both client
15270 and nc) to the same block of code where we set (nc_)expose_pending
15271 to false. That is, move it from PaintEventEnd to PaintEventStart,
15272 so things that cause invalidates from within OnPaint will trigger
15273 another call to OnPaint. Fixes bug #79262.
15275 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
15277 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
15278 * FileDialog.cs: Fix typo
15280 2006-09-07 Jackson Harper <jackson@ximian.com>
15282 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
15283 for tab pages if they have any.
15285 2006-09-06 Mike Kestner <mkestner@novell.com>
15287 * Splitter.cs: use the "current" rect when finishing drag handle
15288 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
15290 2006-09-06 Mike Kestner <mkestner@novell.com>
15292 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
15293 support offset splitters. [Fixes #79298]
15295 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
15297 * Mime.cs: Fixed a bug that could override the global mime type
15300 2006-09-05 Jackson Harper <jackson@ximian.com>
15302 * TabControl.cs: Better calculation method for setting the slider
15303 pos. Prevents crashes on really wide tabs.
15304 - Draw Image on tab pages if an image list is used.
15306 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15308 * MonthCalendar.cs: When Font changes, the Size should be
15309 updated to fit the new font's space requirements.
15311 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
15313 * ListBox.cs: If the items are cleared with Items.Clear set
15316 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15318 * MonthCalendar.cs: Handle arrow keys as input keys. Also
15319 fire DateChanged event instead of DateSelected event when
15320 the date was changed by keyboard interaction.
15322 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15324 * DateTimePicker.cs: Handle DateChanged for the associated
15325 month_calendar control, and set month_calendar.Font from
15326 OnFontChanged method, as well as resize the height of the
15327 control when needed. Make PreferredHeight proportional.
15329 2006-09-01 Chris Toshok <toshok@ximian.com>
15331 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
15334 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
15336 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
15338 * FileDialog.cs: Set ClientSize instead of window size, to allow space
15339 for decorations (Fixes #79219)
15341 2006-09-01 Mike Kestner <mkestner@novell.com>
15343 * ComboBox.cs: first stab at sorting plus some selection handling
15344 fixes to bring us more in line with MS behavior. Also switches back
15345 to index based selection. Alternative patches for index-based
15346 selection were provided by Jackson Harper, Carlos Alberto Cortez,
15347 and latency@gmx.de on bug 78848. I assume they were similar to this
15348 code I've had simmering in my tree forever.
15351 2006-09-01 Chris Toshok <toshok@ximian.com>
15353 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
15354 when setting list position guard against ending up with a -1 index
15355 (the other part of the fix for #78812). Should probably make sure
15356 we don't need the analogous fix in the ItemDeleted case.
15359 - in SetDataSource, work around the fact that the way
15360 OnBindingContextChanged is invoked will cause us to re-enter this
15361 method. I'll remove the hack once I investigate
15362 OnBindingContextChanged.
15364 - fix the logic in set_DataSource and set_DataMember (basically
15365 what to do if the other of the two is null.)
15367 - in OnListManagerItemChanged, we need to take into account the
15368 edit row when deciding whether or not to call RecreateDataGridRows
15369 (part of the fix for #78812).
15371 2006-09-01 Jackson Harper <jackson@ximian.com>
15373 * Splitter.cs: Don't do anything if there is no control to affect
15374 (prevents us from crashing in weird tet cases).
15375 * TreeView.cs: Bounding box for the mouse movement reverting
15376 focus/selection back to previously selected node. This matches
15377 MS, and makes the tree a lot more useable.
15378 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
15379 use clipping so they are not drawn. This fixes when the control
15380 is set to have a transparent background, or if it was over an
15383 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
15385 * MimeIcon.cs: Improved handling for reading default icons when
15386 using gnome (2.16 made it necessary). Check and read svg icons
15387 first, then 48x48 and then 32x32 icons.
15389 2006-08-31 Chris Toshok <toshok@ximian.com>
15391 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
15394 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
15395 ProcessKeyPreview. Fixes part of #77806.
15397 * DataGrid.cs: big patch.
15399 - revert the queueing up of DataSource/DataMember if inside
15400 BeginInit/EndInit calls. That's not the way the datagrid achieves
15401 its delayed databinding. Instead, call SetDataSource in
15402 OnBindingContextChanged. This mimic's MS's behavior, and fixes
15405 - Also, it wasn't mentioned in #78811, but the test case exhibits
15406 behavior that was lacking in our datagrid implementation - Columns
15407 that have mapping names that don't exist in the datasource's
15408 properties aren't shown. Yuck. To fix this I added the bound
15409 field to the column style, and basically any calculation to figure
15410 out anything about columns uses a loop to find the bound columns.
15411 still need to investigate if I can cache an array of the bound
15412 columns or if the indices must be the same.
15414 - When setting CurrentCell, we no longer abort if the cell being
15415 edited was in the add row. This fixes the other part of #77806.
15417 - The new code also fixes #78807.
15419 * ThemeWin32Classic.cs: perpetrate the same disgusting
15420 column.bound field hack, and only render bound fields.
15422 2006-08-31 Chris Toshok <toshok@ximian.com>
15424 * DataGridColumnStyle.cs: add bound field. this field is true if
15425 the datasource has a property corresponding to the mapping name.
15427 * DataGridTableStyle.cs: set the bound field on the column styles
15428 depending on whether or not we have a column for that property.
15430 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
15432 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
15433 splitter control (fixes #79228)
15435 2006-08-31 Chris Toshok <toshok@ximian.com>
15437 * DataGridColumnStyle.cs: we need to delay the assignment of
15438 property descriptor until the last possible moment due to the lazy
15439 databinding stuff in the datagrid. Also, fix the exceptions
15440 thrown by CheckValidDataSource to match MS.
15442 2006-08-31 Jackson Harper <jackson@ximian.com>
15444 * Form.cs: When activated select the active control, if there is
15445 no active control, we select the first control.
15446 * XplatUIX11.cs: If there is no focus control when we get a
15447 FocusIn event, find the toplevel form and activate it. This
15448 occurs when you popup a window, it becomes the focus window, then
15449 you close that window, giving focus back to the main window.
15451 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15453 * MonthCalendar.cs:
15454 * ThemeWin32Classic.cs: Cache Font in bold style, as well
15455 as StringFormat with Center alignments in MonthCalendar,
15456 instead of creating new ones when drawing the control.
15457 Also, draw the month name in bold style.
15459 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
15462 - PerformLayout(): It would seem MS performs the fill even if the
15463 control is not visible (part of #79218 fix)
15464 - ResetBackColor(): Use the setter to reset the color, to allow
15465 overriders to catch the change.
15467 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
15468 - CreateHandle(): dito (part of $79218 fix)
15469 - Don't set an icon if we have a dialog
15470 * ScrollableControl.cs:
15471 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
15472 - ScrollIntoView(): No need to scroll if control is already visible
15473 (resolves fixme and fixes #79218)
15475 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15477 * MonthCalendar.cs: Change proportions in SingleMonthSize
15478 to match the aspect of the original control.
15480 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
15482 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
15483 get updated when they get maximized.
15485 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
15487 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
15489 2006-08-29 Chris Toshok <toshok@ximian.com>
15491 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
15493 2006-08-29 Jackson Harper <jackson@ximian.com>
15495 * TreeView.cs: Need to track selected node and highlighted node,
15496 they aren't always the same thing, when the mouse is down on a
15497 node it is hilighted, but not selected yet.
15498 - Do the HideSelection stuff right
15499 - Need to focus on rbutton mouse down. And redraw selection when
15500 right click is mouse upped.
15502 2006-08-29 Mike Kestner <mkestner@novell.com>
15504 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
15505 when SubItems.Count < Columns.Count. [Fixes #79167]
15507 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
15509 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
15511 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
15513 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
15514 from X. Only send based on ConfigureNotify if we don't have the
15515 correct location in hwnd (if the window manager moved us)
15517 2006-08-28 Mike Kestner <mkestner@novell.com>
15519 * ListView.cs: remove a TODO.
15520 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
15521 [Fixes ListView part of #79166]
15523 2006-08-28 Mike Kestner <mkestner@novell.com>
15525 * ListView.cs: move wheel handler to parent since it is focused
15526 instead of the item_control now. [Fixes #79177]
15528 2006-08-28 Mike Kestner <mkestner@novell.com>
15530 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
15531 when the control is focused. [Fixes #79171]
15533 2006-08-28 Mike Kestner <mkestner@novell.com>
15535 * ListView.cs: size the item and header controls for empty and
15536 unscrollable views.
15537 * ThemeWin32Classic.cs: draw disabled backgrounds.
15540 2006-08-28 Chris Toshok <toshok@ximian.com>
15542 * Form.cs: remove unused "active_form" static field.
15544 * Hwnd.cs: lock around accesses to static windows collection.
15546 * Application.cs: lock threads in Exit ().
15548 2006-08-28 Chris Toshok <toshok@ximian.com>
15550 * NativeWindow.cs: lock around accesses to window_collection.
15552 2006-08-28 Chris Toshok <toshok@ximian.com>
15554 * Control.cs: err, fix this the right way, by locking on controls
15555 when using it. not by making it synchronized.
15557 2006-08-28 Chris Toshok <toshok@ximian.com>
15559 * Control.cs: make the static "controls" field synchronized, as it
15560 gets updated from multiple threads.
15562 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15564 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
15565 Prevent other threads from exiting when calling thread sets quit state.
15566 * XEventQueue.cs: Added PostQuitState property
15568 2006-08-27 Chris Toshok <toshok@ximian.com>
15570 * AsyncMethodData.cs: add a slot for the window handle.
15572 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
15573 window (the destination control's window, not the foster window).
15575 * Control.cs (BeginInvokeInternal): store the window's handle in
15576 the AsyncMethodData.
15579 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15582 - PostQuitMessage: Removed resetting S.D display handle, we might have
15583 another loop started after calling PostQuitMessage (Fixes #79119)
15584 - Created destructor to reset S.D handle
15586 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15588 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
15590 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15592 * TextControl.cs (Insert): Update the caret position even if we don't
15593 have a handle yet, just don't call the driver in that case.
15594 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
15595 to the end of the new selection text (Fixes #79184)
15597 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15599 * Form.cs (Activate): Only activate if the handle is created)
15601 - Mark window as invisible when it's disposed
15602 - Check if window handle is created when setting window visible,
15603 instead of relying just on the is_created variable
15604 - Check if object is disposed when creating the control (Fixes #79155)
15606 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15608 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
15609 when allowing layout again. Otherwise we re-generate the anchoring
15610 distance to the border again and actually alter what the user wanted
15611 This is ugly, it'd be better if we used DisplayRectangle instead of
15612 ClientRectangle for Control.UpdateDistances, but that causes us to
15613 have other problems (initial anchoring positons would be wrong)
15616 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15619 - The size and location setters shouldn't go directly to
15620 SetBoundsCore, but to SetBounds, which triggers layout on the
15621 parent, then calls SetBoundsCore. (Related to fix for #78835)
15622 - SetBounds: Moved actual location update code into this function
15623 from SetBoundsCore, to match MS. Added call to PerformLayout if
15624 we have a parent (to trigger resizing of anchored parents if the
15625 child size has changed (see testcase for #78835)
15626 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
15628 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
15630 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15632 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
15633 System.Drawing when a toplevel window gets closed; there might
15634 be other toplevel windows belonging to the same app (Fixes #78052)
15636 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
15638 * FileDialog.cs: After reading FileDialog settings from mwf_config
15639 use Desktop prefix only if a real folder doesn't exist anymore.
15640 * FontDialog.cs: Added char sets.
15641 It is now possible to select the font, size or style with the
15644 2006-08-25 Kornél Pál <kornelpal@gmail.com>
15646 * PrintPreviewDialog.cs: Use assembly name constants.
15648 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15650 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
15651 scrollbar from whacking it's buttons)
15653 2006-08-24 Chris Toshok <toshok@ximian.com>
15655 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
15656 in this patch (aggregating setting Left/Top/Width/Height to
15657 setting Bounds on the scrollbars), but the crux of the fix is in
15658 Recalculate, where we scroll by the remaining scroll_position if
15659 we're hiding a scrollbar. The 2*$5 reward in the comment is
15662 2006-08-24 Jackson Harper <jackson@ximian.com>
15665 * MdiWindowManager.cs: If the form is made a non-mdi window we
15666 need to remove the form closed event so that closing forms works
15669 2006-08-24 Jackson Harper <jackson@ximian.com>
15671 * Control.cs: Make IsRecreating internal so that the driver can
15673 - Temporarily remove the Hide when controls are removed, its
15674 making a whole bunch of things not work because visibility isn't
15675 getting reset elsewhere correctly
15676 * Form.cs: Need to do a full handle recreation when the mdi parent
15678 * XplatUIX11.cs: If we are recreating handles don't dispose the
15679 HWNDs. What was happening is the handles were being recreated in
15680 SendWMDestroyMessages, but then flow continued on in that method
15681 and destroyed the new handles.
15683 2006-08-23 Jackson Harper <jackson@ximian.com>
15685 * Form.cs: MdiClient is always at the back of the bus
15686 * Control.cs: When the order of items in the collection is changed
15687 we need to reset the all_controls array
15688 - do the same sorta setup thats done when adding a control when a
15689 control is set on the collection.
15691 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15693 * TextBoxBase.cs (get_Text): Return an empty array if our document
15694 is empty (fixes #79052)
15696 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15698 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
15699 on WM_SYSCHAR messages (fixes #79053)
15701 2006-08-23 Chris Toshok <toshok@ximian.com>
15703 * DataGrid.cs: fix flickering when scrolling vertically.
15705 2006-08-23 Chris Toshok <toshok@ximian.com>
15707 * DataGrid.cs (EndEdit): only invalidate the row header when we
15710 2006-08-23 Chris Toshok <toshok@ximian.com>
15712 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
15713 methods. fixes the flicker when scrolling around.
15715 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15717 * FileDialog.cs: Making sure the control is created before we get a
15718 chance to use it with BeginInvoke (Fixes #79096)
15720 2006-08-23 Chris Toshok <toshok@ximian.com>
15722 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
15723 width to use when painting the rows.
15725 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15728 - Throw ArgumentException if a negative value is passed to SelectionLength
15729 - Update the selection end if start is moved. end needs to be always
15730 after start. (Fixes #79095)
15731 - Track selection length; MS keeps the selection length even if start
15732 is changed; reset on all other operations affection selection
15734 2006-08-22 Jackson Harper <jackson@ximian.com>
15736 * TreeView.cs: Make sure both scrollbars get displayed and sized
15737 correctly when the other bar is visible.
15738 - Use the original clip rectangle for checking if the area between
15739 the two scrollbars is visible, not the viewport adjusted clipping
15742 2006-08-22 Jackson Harper <jackson@ximian.com>
15744 * Binding.cs: We don't use IsBinding because it requires the
15745 control to be created, which really shouldn't be necessary just to
15746 set a property on the control.
15748 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15750 * ComboBox.cs: Some CB.ObjectCollection methods must throw
15751 ArgumentNullReferenceException when the argument is null.
15753 2006-08-21 Jackson Harper <jackson@ximian.com>
15755 * Timer.cs: Track the thread that the timer is started in (NOT
15756 CREATED), this way messages for it will only be triggered on its
15758 * XEventQueue.cs: Track the timers here, this makes timers per
15760 * XplatUIX11.cs: The timers are moved to the XEventQueue.
15762 2006-08-19 Chris Toshok <toshok@ximian.com>
15764 * XplatUIX11.cs: after further communication with pdb, we get the
15765 best of both worlds. SetZOrder working for un-Mapped windows, and
15766 no X errors for un-mapped windows.
15768 2006-08-19 Chris Toshok <toshok@ximian.com>
15770 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
15771 as it was causing pdn toolbars to not have the correct stacking.
15773 2006-08-18 Mike Kestner <mkestner@novell.com>
15775 * ListView.cs : guard against negative ClientArea.Width in scrollbar
15776 calculation. Not sure why control should ever be setting a negative
15777 width though. Fixes #78931.
15779 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15781 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
15782 null items in ObjectCollection class.
15783 * ListBox.cs.: Likewise.
15785 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
15787 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
15788 as the base method in ThemeWin32Classic should work fine.
15791 2006-08-18 Jackson Harper <jackson@ximian.com>
15793 * Binding.cs: When validating if the value entered doesn't convert
15794 properly reset to the old value.
15795 * RadioButton.cs: Don't fire click when we get focus.
15797 2006-08-18 Jackson Harper <jackson@ximian.com>
15799 * FileDialog.cs: Paint the selection on the directory combobox the
15802 2006-08-17 Jackson Harper <jackson@ximian.com>
15804 * ErrorProvider.cs: Don't allow the error control to be selected.
15805 * Control.cs: Don't send the SetFocus messages, the control
15806 activation will do this, and if we do it blindly here validation
15809 2006-08-17 Jackson Harper <jackson@ximian.com>
15812 * ContainerControl.cs: Make validation events fire in the correct
15813 order. TODO: For some reason the first validation event is not
15816 2006-08-17 Mike Kestner <mkestner@novell.com>
15818 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
15820 2006-08-17 Mike Kestner <mkestner@novell.com>
15822 * ComboBox.cs : implement scroll wheel support for popped-down
15823 state. Fixes #78945.
15825 2006-08-17 Jackson Harper <jackson@ximian.com>
15827 * TreeView.cs: Specify treeview actions (old patch that didn't get
15828 committed for some reason).
15829 - Don't let the mouse wheel scroll us too far. Just want to make
15830 the bottom node visible, not scroll it all the ways to the top.
15832 2006-08-17 Jackson Harper <jackson@ximian.com>
15834 * XplatUIX11.cs: Mouse wheel events go to the focused window.
15836 2006-08-17 Mike Kestner <mkestner@novell.com>
15838 * ComboBox.cs : don't do mouseover selection in simple mode.
15840 2006-08-16 Jackson Harper <jackson@ximian.com>
15842 * Form.cs: Fire the closing events for all the mdi child windows
15843 when a window is closed. If the cancel args are set to true, the
15844 main window still gets the event fired, but it doesn't not close.
15845 * MdiWindowManager.cs: Do this closing cleanup in a Closed
15846 handler, instead of when the button is clicked, so cancelling the
15847 close works correctly.
15848 * ComboBox.cs: Send the mouse down to the scrollbar.
15850 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15852 * ListBox.cs: When passing 'null' to SelectedItem,
15853 set SelectedIndex to -1, to unselect items. This is the
15854 observed behaviour in .Net.
15856 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
15858 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
15859 MS flags saying there won't be any. (fixes #78800)
15860 * Control.cs (HandleClick): Made virtual
15862 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
15864 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
15865 cultures. Fixed bug #78399.
15867 2006-08-16 Jackson Harper <jackson@ximian.com>
15869 * Form.cs: Use the MdiClients MdiChildren property to access
15870 MdiChildren instead of creating the array from the child controls.
15871 * MdiClient.cs: Maintain a separate array of the mdi children, so
15872 that insertion order is maintained when the Z-order is changed.
15874 2006-08-16 Mike Kestner <mkestner@novell.com>
15876 * ListView.cs : add an ItemComparer and default to it for sorting.
15877 Fixes #79076, but sorting needs a complete overhaul to be compat with
15880 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15882 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
15884 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15886 * Hwnd.cs (Mapped): Properly traverse the tree
15888 2006-08-15 Chris Toshok <toshok@ximian.com>
15890 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
15891 pass manager.Current.GetType() to ParseData. It has to be the
15892 property type. So, hold off doing the ParseData until we're in
15893 SetPropertyValue where we know the type. This fixes the crash in
15894 #78821 but the textbox is still empty.
15896 2006-08-15 Chris Toshok <toshok@ximian.com>
15899 - when we're scrolling, only call Edit() again if the
15900 current cell is still unobscured. Fixes bug #78927.
15901 - when handling mousedown on a cell, ensure the cell is visible
15902 before calling Edit.
15903 - remove the properties from DataGridRow, and remove the
15904 DataGridParentRow class altogether.
15907 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15909 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
15910 fire OnTextChanged by ourselves. There's no point calling base,
15911 we don't set the base value anywhere else. Fixes #78773.
15913 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15915 * ListBox.cs: Call CollectionChanged when modifying
15916 an item from Items indexer, to update the actual items
15919 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15921 * PrintDialog.cs: Small fixes for focus and a pair of checks,
15922 to match .Net behaviour.
15924 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15926 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
15928 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15930 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
15932 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15934 * MessageBox.cs: Prevent potential NRE exception.
15935 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
15937 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
15939 * MessageBox.cs: Calculate the owner of a messagebox, also make
15940 it topmost. Fixes #78753
15942 2006-08-14 Chris Toshok <toshok@ximian.com>
15944 * XplatUIX11.cs: A couple of fixes so that metacity will let us
15945 programmatically move windows. first, set the PPosition hint as
15946 well as the USPosition hint. Second include some code from pdb
15947 that sets the window type to NORMAL when we set the transient for
15948 hint. This is because, in the absence of a window type, metacity
15949 thinks any window with TransientFor set is a dialog, and refuses
15950 to let us move it programmatically. fascists.
15952 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
15954 * XplatUIX11.cs: When setting normal hints, take into consideration
15955 an different hints previously set so we don't delete them (fixes #78866)
15957 2006-08-12 Chris Toshok <toshok@ximian.com>
15959 * ToolBarButton.cs: make Layout return a boolean, if something to
15960 do with the button's layout changed.
15963 - add another parameter to Redraw, @force, which all existing
15965 - make the Layout function return a boolean which is true if the
15966 layout has actually changed. Redraw now uses this (and @force)
15967 to determine when to invalidate. At present the only place
15968 where @force can be false is the call from OnResize, when
15969 background_image == null. So, resizing a toolbar when the
15970 layout doesn't change results in no drawing.
15972 2006-08-12 Chris Toshok <toshok@ximian.com>
15974 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
15975 the VScrollBar and HScrollbar reversed. oops.
15977 * DataGrid.cs: fix the logic that assigns sizes to the implicit
15978 scrollbars. we were assigning them twice (once in
15979 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
15980 therefore causing two scrollbar resizes (and redraws?) to happen
15983 2006-08-12 Chris Toshok <toshok@ximian.com>
15985 * ToolBarButton.cs: redraw the entire button if the theme tells us
15988 * Theme.cs: add ToolBarInvalidateEntireButton.
15990 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
15991 buttons, just the border.
15993 * ThemeNice.cs: redraw the entire toolbar button since we need to
15994 draw the highlight image.
15996 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
15997 we need to redraw the entire button (not just the border).
15999 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
16001 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
16002 for vertical bars. Fixes the mismatches shown by #78513
16004 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
16006 * FileDialog.cs: If a saved/remembered path doesn't exist
16007 anymore, fall back to "Desktop".
16009 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
16011 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
16012 parent. It's apparently legal to not have one
16014 - SetZOrder: Don't try to set Z-Order on an unmapped window
16015 - CreateWindow: 0,0 are legal coordinates for a window. don't move
16016 it unless the coordinates are negative
16018 2006-08-10 Mike Kestner <mkestner@novell.com>
16020 * ListControl.cs: allow null for DataSource. Clear DisplayMember
16021 when setting to null per msdn docs. Fixes #78854.
16023 2006-08-10 Chris Toshok <toshok@ximian.com>
16025 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
16026 flickering by setting a clip rectangle on the Graphics when we
16027 need to redraw just a particular menuitem. Also, rename "OnClick"
16028 to "OnMouseDown" to reflect what it actually is.
16030 * Form.cs: track the OnMouseDown change.
16032 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
16034 * CommonDialog.cs: Properly inherit the CreateParams from the form
16035 and only change what we need. Fixes #78865
16037 2006-08-10 Chris Toshok <toshok@ximian.com>
16039 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
16040 flickering in flat mode (and most of the flickering in general) by
16041 only invalidating the button border (and not the entire rectangle)
16042 when the state changes. A couple of cases still flicker:
16043 ToggleButtons, and the dropdown arrow case when the user mouse
16046 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
16048 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
16049 for german keyboards. Numlock state shouldn't affect the behaviour
16050 of the Del key. Fixes bug #78291.
16052 2006-08-10 Chris Toshok <toshok@ximian.com>
16054 * ListControl.cs: remove the items.Clear line from BindDataItems,
16055 as this is the first thing done by both subclasses in their
16056 SetItemsCore overrides. Also, add a ItemChanged handler, and when
16057 passed -1, refresh the list. This gets databinding working when
16058 the datasource is set on the list before the datasource is
16059 populated (as in wf-apps/ReportBuilder.)
16061 * ComboBox.cs: remove the argument to BindDataItems. This call
16062 should really go away, and be initiated by the ListControl code.
16064 * ListBox.cs: same.
16066 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16068 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
16069 if no data is in the document when the control is displayed
16071 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16073 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
16076 - PositionCaret: Allow positioning of caret but don't call methods
16077 requiring a handle if the window isn't created yet
16078 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
16079 - owner_HandleCreated: Don't position the caret, just update it's
16080 location. User might have already set a different position
16082 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16084 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
16085 windows. Screws up the returned coordinates for child windows.
16086 Fixes #78825. I'm hoping this doesn't break something, since the
16087 code was explicitly put in 8 months ago, but no bug was attached.
16088 Menus still seem to work properly.
16090 2006-08-08 Chris Toshok <toshok@ximian.com>
16092 * DataGrid.cs: make BeginInit/EndInit actually do what they're
16093 supposed to do - delay data binding until the EndInit call. Also,
16094 make the table style collection's CollectionChangeAction.Refresh
16097 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
16098 (with action = Refresh) when a consituent table's MappingName is
16101 2006-08-08 Chris Toshok <toshok@ximian.com>
16103 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
16104 Invalidate, since changing the text can change the size of the all
16107 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
16109 * Form.cs (AddOwnedForm): Still need to add the form to our listif
16110 we don't have it yet
16112 2006-08-08 Chris Toshok <toshok@ximian.com>
16114 * PrintControllerWithStatusDialog.cs: don't .Close() the status
16115 dialog, as this causes X errors later on, since we actually
16116 destroy the window. Instead, .Hide() it.
16118 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
16120 * ComboBox.cs: Added focus reflection for popup window
16122 - Removed transient setting for non-app windows for now, not sure it
16124 - Fixed logic checking if we have captions when deciding
16125 override_redirect, WS_CAPTION is two bits and a 0 check was not
16127 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
16130 - AddOwnedForm: Don't just add the form to the list, call the property
16131 to ensure the driver is informed about the ownership as well
16132 - CreateHandle: Set the TopMost status in the driver if we have an owner
16133 * XplatUI.cs: Fixed debug statement
16135 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
16136 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16137 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
16138 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
16139 TrackBarRenderer.cs: Make constructor private.
16140 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
16141 * ProfessionalColorTable.cs: Make properties virtual.
16143 2006-08-06 Duncan Mak <duncan@novell.com>
16145 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
16148 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16149 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16150 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
16151 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
16152 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
16153 Initial import of new 2.0 classes.
16155 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16156 * Application.cs: Add 2.0 VisualStyles properties.
16158 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16159 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16160 XplatUIX11.cs: Create property to allow access to existing private
16161 variable "themes_enabled"
16163 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16165 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
16166 file size, as otherwise our class libraries fail using windows. Fixes
16169 2006-08-04 Jackson Harper <jackson@ximian.com>
16172 * XplatUIX11.cs: Move the toolwindow window manager creation into
16173 the X11 driver, this way on win32 we can let windows create/handle
16176 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16178 * PrintDialog.cs: Remove some redundant checks, add some others,
16179 clean some code, and move the focus to the text boxes when the
16180 values are incorrect.
16182 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
16184 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
16186 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
16188 * NumericUpDown.cs: Setting the Minimum and Maximum is now
16189 handled correctly. Fixes bug #79001.
16191 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16193 * PrintDialog.cs: The "Copies" numeric up down must have
16194 set the Minimum property to 1; only if the value is bigger
16195 than 1, activate "Collate" check box. This is the behaviour of .Net.
16196 Also modify the Document elements only if it is not null.
16198 2006-08-03 Jackson Harper <jackson@ximian.com>
16200 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
16201 length. (We have a larger array then actual node count).
16203 2006-08-03 Jackson Harper <jackson@ximian.com>
16205 * ComboBox.cs: Don't show selection by default.
16206 - The SelectAll isn't needed here, since the focus code should do
16208 - DDL style lists to manual selection drawing, so when they
16209 get/lose focus they have to invalidate.
16211 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
16213 * TextBoxBase.cs: Don't always show all selections by default.
16215 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
16216 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
16217 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
16218 Fixed various typos.
16220 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
16222 * Control.cs: Removing the controls in a ControlCollection with
16223 Clear now hides the controls as expected. Fixes bug #78804.
16225 2006-08-03 Jackson Harper <jackson@ximian.com>
16227 * Control.cs: Revert previous focus patch, it breaks reflector.
16229 2006-08-03 Jackson Harper <jackson@ximian.com>
16231 * ComboBox.cs: Cleanup selection and focus with the combobox.
16232 This also eliminates some duplicated keyboard code, since now
16233 everything is handled by the main class.
16234 - Make list selection work on mouse up instead of down, to match
16237 2006-08-02 Jackson Harper <jackson@ximian.com>
16239 * Control.cs: Setting focus needs to go through the whole
16240 selection mechanism.
16242 2006-08-02 Chris Toshok <toshok@ximian.com>
16244 * PrintPreviewDialog.cs: change MinimumSize to use
16245 base.MinimumSize so it works.
16247 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
16250 - UpdateCaret: Added sanity check in case caret isn't defined yet
16251 - Line.Delete: Now updating selection and caret markers if we're
16252 transfering a node (Properly fixes #78323)
16253 - SetSelectionEnd: Added sanity check
16254 * TextBoxBase.cs: Removed broken attempt to fix #78323
16256 2006-08-01 Chris Toshok <toshok@ximian.com>
16258 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
16259 Close() call is handled in Form, not here.
16261 2006-08-01 Chris Toshok <toshok@ximian.com>
16263 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
16266 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
16267 for sizes < 100% zoom. The code now aggressively attempts to keep
16268 from calling document.Print (), and tries not to use the scaling
16269 g.DrawImage whenever possible (it still does if you scale to >
16270 100%, since usually that involves huge images).
16272 * PrintPreviewControl.cs: hook up the close button.
16274 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
16275 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
16276 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
16277 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
16278 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
16279 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
16280 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
16281 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
16282 Removed [Serializable] for 2.0 Event Handlers.
16284 2006-07-31 Jackson Harper <jackson@ximian.com>
16286 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
16287 * TextControl.cs: Uncomment out the body of this method.
16289 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
16291 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
16294 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16296 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
16297 that embed TextBox and need selections visible even if textbox is not
16298 focused to enforce that behaviour.
16299 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
16302 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16305 - Added new SetSelectionStart/SetSelectionEnd overloads
16306 - Fixed viewport width assignment to be accurate
16307 - Adjusted alignment line shift calculations to allow cursor on right
16308 aligned lines to be always visible at the right border (like MS)
16310 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
16311 - TextBoxBase_SizeChanged: recalculating canvas on size changes
16312 - CalculateScrollBars: Use ViewPort size instead of window size, to
16313 properly consider space occupied by the border and scrollbars
16315 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
16316 calculations; no longer leaves artifacts
16317 - CaretMoved: Adjusted window scrolling to match MS and fixed several
16318 calculation bugs (Still missing right/center align calculations)
16320 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16322 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
16323 use of both scroll rect and clip rect, as they do the same.
16325 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16327 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
16328 in the event handler (fixes #78912)
16330 2006-07-31 Chris Toshok <toshok@ximian.com>
16332 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
16333 grid.ListManager.Count, since grid.ListManager might be null.
16334 This of course begs the question "why are we drawing rows for a
16335 grid with no list manager (and therefor no rows)?" Fixes the
16336 crash in bug #78929.
16338 2006-07-31 Chris Toshok <toshok@ximian.com>
16340 * RelatedPropertyManager.cs: Don't always chain up to the parent
16341 ctor. instead, call SetDataSource if the parent's position is !=
16342 -1. Fixes the crash in #78822.
16344 2006-07-31 Chris Toshok <toshok@ximian.com>
16346 * DataGrid.cs (get_ListManager): use field instead of property
16347 accessors for datasource and datamember.
16348 (RowsCount): make internal again.
16349 (OnMouseDown): end edits before resizing columns/rows.
16350 (OnMouseUp): restart edits after resizing columns/rows.
16352 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
16354 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
16355 This fixes the situation where the last set cursor is displayed
16356 whenever the mouse is over scrollbars.
16358 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16360 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
16361 Document properties, as well as initial values.
16363 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
16365 * XplatUIWin32.cs (SetBorderStyle): Setting both border
16366 and ClientEdge results in a 3-pixel border, which is
16369 2006-07-28 Jackson Harper <jackson@ximian.com>
16371 * TreeNodeCollection.cs: Fix the clear method.
16372 - Fix the Shrink also
16374 2006-07-27 Jackson Harper <jackson@ximian.com>
16376 * TreeView.cs: Make sure the visible order is computed when we
16377 attempt to size the scrollbars (for trees that mess with the
16378 scrolling when they shouldn't.
16379 - Make sure to give the scrollbars valid values.
16381 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
16383 * XplatUIX11.cs: Move motion compression code to where it
16384 has less performance impact
16386 2006-07-26 Jackson Harper <jackson@ximian.com>
16388 * UpDownBase.cs: When the control is selected make the child
16389 controls non selectable, so that a click on them won't do a
16390 focus/unfocus cycle.
16391 - Don't give focus to the text box when the spinner is selected.
16392 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
16394 2006-07-26 Chris Toshok <toshok@ximian.com>
16396 * ThemeWin32Classic.cs: add print preview rendering. I'm not
16397 satisfied with this solution. If the bitmaps are small, we should
16398 just cache them in the PrintPreviewDialog and draw them here.
16399 Also, the layout is broken for the 2-up and 3-up cases.
16401 * Theme.cs: add PrintPReviewControlPaint.
16403 * PrintPreviewDialog.cs: first pass implementation.
16405 * PrintPreviewControl.cs: first pass implementation. No
16408 * PrintDialog.cs: only validate fields if that particular portion
16409 of the UI is enabled. Also, set the document's controller to a
16410 PrintControllerWithStatusDialog wrapping the document's print
16413 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
16414 bring up a SaveFileDialog (i hope we don't want to match the
16415 behavior of the crappy windows file entry) and set the
16416 PrinterSettings.PrintFileName accordingly.
16418 2006-07-26 Jackson Harper <jackson@ximian.com>
16420 * ContainerControl.cs: Add a field that disables auto selecting
16421 the next control in a container when the container is activated.
16422 * UpDownBase.cs: Don't select the text box when the up down is
16425 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
16427 * XEventQueue.cs: Added methods for peeking (used for compression
16428 of successive events)
16429 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
16430 mouse move events (fixes #78732)
16432 2006-07-25 Jackson Harper <jackson@ximian.com>
16434 * UpDownBase.cs: Use an internal class for the textbox so that we
16435 can control focus. the updown control should always have focus,
16436 if either the text area or the buttons are clicked.
16437 - Send the key messages to the textbox, since it never actually
16439 - Activate and decativate the textbox caret.
16441 2006-07-24 Jackson Harper <jackson@ximian.com>
16443 * Control.cs: Use the directed select when selecting a control,
16444 this way the container controls override will get called and the
16445 whole ActiveControl chain will get triggered. TODO: probably need
16446 to make sure this gets done everywhere instead of the old
16448 * ContainerControl.cs: Implement the directed Select method to
16449 find and activate the correct child control.
16451 2006-07-22 Mike Kestner <mkestner@novell.com>
16453 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
16454 menu handling code so that clicks without a grab work too.
16457 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
16459 * FileDialog.cs: Enable the BackButton when dirstack has one element.
16460 Added some small optimizations.
16462 2006-07-21 Matt Hargett <matt@use.net>
16464 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
16466 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
16468 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
16469 tests pass and match MS in some strange border cases.
16471 2006-07-21 Chris Toshok <toshok@ximian.com>
16473 * ThemeWin32Classic.cs: handle drawing of the relation links and
16474 parent row buttons.
16476 * Theme.cs: change args to DataGridPaintParentRow.
16478 * DataGrid.cs: Don't use controls for the relation links and
16479 parent buttons, so we have to handle all their interactions in
16480 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
16481 when we're navigating through child tables, so we can reinstate
16482 selection, expanded state, current cell, etc.
16484 2006-07-20 Chris Toshok <toshok@ximian.com>
16486 * ToolBar.cs: When we redraw a button, for whatever reason,
16487 there's no reason to redraw the entire toolbar. Also, don't call
16488 Control.Refresh from within Redraw, as it's much heavier than
16489 Invalidate (which is really what we want).
16491 2006-07-20 Chris Toshok <toshok@ximian.com>
16493 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
16494 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
16495 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
16496 traces from within a debug IBindingList datasource
16497 (in mono/winforms/datagrid) for *days*, I've finally gotten things
16498 to work in a similar fashion.
16500 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16502 * ListBox.cs: Don't call Sort () when setting
16503 the Sorted property to false (avoid an unnecessary sort).
16505 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16507 * ListControl.cs: DataSource should throw an ArgumentException
16508 instead of a normal exception when the argument is not of the
16511 2006-07-20 Mike Kestner <mkestner@novell.com>
16513 * Control.cs: add InternalPreProcessMessage to allow us to steal
16514 key events before MWF gets its paws on them. Adapted from a
16516 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
16517 up/down/left/right navigation. Override the new internal control
16518 method to steal the events since they never make it to WndProc.
16519 * ToolBarButton.cs: don't worry about pushed when setting hilight
16520 since the drawing code prefers pushed to hilight. Invalidate on
16521 Hilight changes. Fixes #78547 and #78525.
16523 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16525 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
16526 the canvas size. Fixes #78868
16528 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16530 * Splitter.cs: Track requested split position until first layout
16531 is performed. Fixes #78871
16533 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16535 * Application.cs: Removed code that forces 1.x for the version
16536 number if the version started with 0. Not sure why that code was
16537 there and I couldn't find any bugs that indicated we needed it.
16540 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
16542 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
16543 ResetDefaults(), just write some output to the console until it's
16544 implemented. Fixes bug #78907 for now. Eliminated two warnings.
16546 2006-07-19 Jonathan Chambers <joncham@gmail.com>
16548 * PropertyGridView.cs: set StartPosition of drop down forms
16549 so they appear in correct initial spot. Fixes #78190.
16551 2006-07-19 Mike Kestner <mkestner@novell.com>
16553 * ThemeWin32Classic.cs: use parent background color when drawing
16554 flat toolbars. Restructure the conditionals to make sure non-flat
16555 non-Divider toolbars are filled too. Fixes #78837.
16557 2006-07-19 Mike Kestner <mkestner@novell.com>
16559 * ListBox.cs: Sort on collection changes even if the handle
16560 isn't created yet. Fixes #78813.
16562 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16564 * ListControl.cs: DisplayMember should never be null,
16565 and now we assign String.Empty when null is passed to it (this
16568 2006-07-17 Mike Kestner <mkestner@novell.com>
16570 * ListViewItem.cs: restructure Font and subitem Font handling
16571 to hold a specific font and refer back to owner on null.
16574 2006-07-17 Mike Kestner <mkestner@novell.com>
16576 * ToolBar.cs: bandaid for side-effect of previous patch which was
16577 discarding explicit heights for non-AutoSize toolbars. Need to
16578 extend my format tester to deal with AutoSize=false. Fixes #78864.
16580 2006-07-15 Jackson Harper <jackson@ximian.com>
16582 * LabelEditTextBox.cs:
16583 * TreeView.cs: Use a new LabelEdit class for node editing, this
16584 class automatically 'closes' itself when it gets the enter key or
16586 - Use the client rectangle when setting the trees scrollbars, so
16587 border style is taken into account.
16589 2006-07-14 Jackson Harper <jackson@ximian.com>
16592 * TreeView.cs: Make the editing work similar to MSs, firing the
16593 events correctly and ending edits correctly.
16595 2006-07-14 Mike Kestner <mkestner@novell.com>
16597 * ToolBarButton.cs:
16598 * ToolBar.cs: layout restructuring and redraw enhancements to support
16599 formatting changes gracefully, like setting TextAlign, ImageList,
16600 ButtonSize, and Appearance. Handles explicit button sizing quirks
16601 of the MS controls. Things like flat toolbars ignoring button size
16602 but becoming constant sized at the largest button's size. Normal
16603 toolbars with an image set cannot be shrunk smaller than the image,
16604 but text can be clipped/ignored.
16605 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
16606 is zero. Seems like DrawString should be smart enough to not put
16607 anything on screen though. Also trim labels and ellipsize at the char
16608 boundary, not word.
16609 Fixes #78711 and #78483.
16611 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16613 * FolderBrowserDialog.cs: Disable "New Folder" button and
16614 "New Folder" contextmenu menuitem if a folder like "My Computer"
16617 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16619 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
16620 * FolderBrowserDialog.cs:
16621 - Use MWFConfig to store and read size and position settings
16622 - Added code to create a new folder (button or context menu).
16623 Use TreeView labeledit to change the name of the new folder.
16625 2006-07-14 Jackson Harper <jackson@ximian.com>
16627 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
16628 when the tree is scrolled we end editing.
16630 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16632 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
16635 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
16637 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
16638 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
16639 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
16640 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
16641 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
16642 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
16643 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
16644 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16645 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
16646 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
16647 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
16648 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
16649 ListViewItemSelectionChangedEventHandler.cs,
16650 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
16651 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
16652 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
16653 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
16654 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
16655 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
16656 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
16657 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
16658 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
16659 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
16660 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
16661 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
16662 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
16663 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
16664 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
16665 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
16666 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
16667 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
16668 WebBrowserNavigatingEventHandler.cs,
16669 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
16671 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
16673 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
16674 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
16675 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
16676 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
16677 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
16678 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
16679 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
16680 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
16681 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
16682 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
16683 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
16684 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
16685 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
16686 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
16687 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
16688 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
16689 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
16690 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
16691 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
16692 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
16693 ListViewItemStates.cs, MaskFormat.cs: Added
16695 2006-07-13 Jonathan Chambers <joncham@gmail.com>
16697 * PropertyGridView.cs: Fix keyboard navigation of drop down.
16698 Patch from eno for bug 78558.
16700 2006-07-13 Jackson Harper <jackson@ximian.com>
16702 * TreeView.cs: When an edit is finished make sure that the
16703 selected node is visible.
16704 - When setting the top/bottom use the scrollbars is_visible, so
16705 everything will be set correctly even if the tree isn't visible
16708 2006-07-13 Jackson Harper <jackson@ximian.com>
16710 * ComboBox.cs: Revert the item->index part of my previous patch.
16711 * TreeView.cs: Use LostFocus instead of Leave for detecting when
16712 the edit box has lost focus (duh).
16713 - Just make the edit box not visible when we get return, that will
16714 take the focus, which will call EndEdit
16715 * TreeNode.cs When we start editing, notify the treeview.
16717 2006-07-12 Jackson Harper <jackson@ximian.com>
16719 * ComboBox.cs: Clear out old items before setting the item list.
16720 This prevents databound controls from having their items added
16722 - Switch the combobox to use indices whereever possible instead of
16723 using Item's. This allows usto navigate through lists that have
16724 more then one item with the same string value (ie a, b, b, a).
16725 - Scroll the listboxes scrollbar when a non visible item is
16727 - Allow keypress to cycle through all the possible values. For
16728 example if you have b1, b2, b3 and hold down the B key all the
16729 values will be cycled through.
16731 2006-07-12 Jackson Harper <jackson@ximian.com>
16734 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
16735 this using the internal methods.
16736 * Control.cs: Add OnGotFocusInternal. A new method that allows
16737 controls to "override" OnGotFocus and change focus behavior if
16739 - Same thing for LostFocus
16740 * ComboBox.cs: Pass off focus to the text control properly.
16742 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
16744 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
16745 * FolderBrowserDialog.cs: Almost a complete rewrite.
16746 - Better support for Environment.Specialfolders
16747 - Added support for MWFVFS
16748 - Made setting SelectedPath work
16750 2006-07-12 Jackson Harper <jackson@ximian.com>
16752 * Control.cs: Optimze getting all the controls.
16754 2006-07-11 Jackson Harper <jackson@ximian.com>
16756 * ContainerControl.cs: Override SETFOCUS in the container control,
16757 so that it is not selected on mouse click.
16759 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
16761 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
16762 Hopefully we will have a better way once all of focus is complete.
16764 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
16766 * ThemeWin32Classic.cs: Commented out some debug code and fixed
16767 a compile error with csc.
16769 2006-07-11 Jackson Harper <jackson@ximian.com>
16771 * Control.cs: When hiding a control only select the next control
16772 if the current control was focused.
16773 - Don't handle enter/leave when setting/killing focus, this is
16774 done by the container control.
16775 - Remove is_selected, it's not needed anymore.
16776 - Add utility methods for selecting a child control, and for
16777 firing the Enter/Leave events.
16778 * ContainerControl.cs: When a control is activated fire the
16779 enter/leave events.
16780 - Don't wrap when processing the tab key, so that focus can be
16781 moved outside of the container.
16782 - Use the correct active control
16784 2006-07-11 Jackson Harper <jackson@ximian.com>
16786 * ComboBox.cs: Remove some debug code that was blinding me.
16787 * UpDownBase.cs: These controls actually aren't implicit, they are
16788 visible to the user.
16790 2006-07-10 Chris Toshok <toshok@ximian.com>
16792 * DataGrid.cs: move back to the is_adding boolean field. god i
16793 hate this is_editing/is_adding/is_changing stuff.
16795 2006-07-10 Chris Toshok <toshok@ximian.com>
16797 * DataGridTableStyle.cs: just check if the property type is bool.
16798 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
16799 Don't use CanRenderType.
16801 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
16802 if our text == NullText. Remove CanRenderType.
16804 * DataGridBoolColumn.cs: nuke CanRenderType.
16806 * DataGrid.cs: reenable some code to end the current edit inside
16807 of set_CurrentCell. This fixes the other 1.1.16 regression.
16808 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
16809 Also, remove the visible_row_count arg from CalcRowHeaders, since
16810 we don't need to worry about the actual height of the area.
16812 2006-07-10 Chris Toshok <toshok@ximian.com>
16814 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
16817 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
16818 the real sense of the IsInEditOrNavigateMode property (true =
16819 navigate, false = edit). Also, update OnKeyPress to reflect this.
16821 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
16822 column style exists, we still need to set its property descriptor
16823 to match up with our list manager.
16825 2006-07-10 Chris Toshok <toshok@ximian.com>
16827 * ThemeWin32Classic.cs: implement the new row/header painting
16828 approach. The parent row painting will likely go away and
16829 replaced with label controls, but the rest seems to work ok (and
16832 * Theme.cs: change the way we draw datagrid rows. we don't draw
16833 the row headers as a block now. Instead we draw them in the
16834 normal draw-row loop. Add some calls for drawing parent rows and
16837 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
16838 a default table style. Set the defaults from ThemeEngine.Current,
16839 not SystemColors. Fix lots of misc issues with property setters.
16841 * DataGrid.cs: move loads of style information out of this class
16842 as it's being duplicated with DataGridTableStyle. keep track of a
16843 special DataGridTableStyle for the properties we used to mirror
16844 here. Switch all the style properties to access this table style
16845 instead of instance fields of this class. Also add a internal
16846 class to represent parent rows (more needs to be stored here, like
16847 the selection state from the parent table, as well as the
16848 expansion state.) Also, for datasources with relations, do the
16849 right thing for collapse/expand, and add support for the
16850 navigation/parent row buttons.
16852 Lastly, fix the crash in the 1.1.16 build.
16854 * GridTableStylesCollection.cs: make the explicit interface
16855 implementations call the class's methods as opposed to duplicating
16858 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
16859 0 so the text doesn't jump around when we move the cursor.
16861 2006-07-10 Jackson Harper <jackson@ximian.com>
16864 * ListBox.cs: Match MS's ToString (this makes debugging focus
16865 stuff infinitely easier).
16867 2006-07-10 Jackson Harper <jackson@ximian.com>
16869 * Control.cs (SelectNextControl): When checking the control's
16870 parent use this instead of ctrl.parent so that null can be passed
16871 to SelectNextControl. (I have unit tests for this).
16872 - Remove unused var.
16874 2006-07-10 Chris Toshok <toshok@ximian.com>
16876 * CurrencyManager.cs: correct one regression, the removal of the
16877 finalType field. Also, add a MonoTODO on CanAddRows, implement
16878 Refresh() correctly, and fix some event emission in
16879 ListChangedHandler.
16881 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
16883 * FileDialog.cs: Don't use brackets for new folders if they exist
16884 under *nix. Instead use -(number of existing folders +1).
16886 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
16889 - Fixed really nasty bug #78771
16890 - Don't block the whole GUI when reading directories with a lot of
16891 entries. Use an other thread instead and call BeginInvoke to
16892 update the ListView in MWFFileView
16894 2006-07-07 Chris Toshok <toshok@ximian.com>
16896 * Control.cs (Dispose): release any Capture when disposing.
16898 2006-07-07 Chris Toshok <toshok@ximian.com>
16900 * LinkLabel.cs (Select): if we chain up to the parent, set
16901 focused_index to -1 so we'll search for the first available link
16902 the next time the user tabs into us. Also, if the direction is
16903 backward and focused_index == -1, start the search from the last
16906 2006-07-07 Chris Toshok <toshok@ximian.com>
16908 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
16909 is beyond the end of the text, don't do anything.
16910 (CreateLinkPieces): set our ControlStyles.Selectable based on
16911 whether or not we have any links.
16912 (Link.Invalidate): use a loop instead of foreach.
16913 (Link.set_Start): null out owner.sorted_links so it'll be
16914 recreated by CreateLinkPieces.
16916 2006-07-06 Chris Toshok <toshok@ximian.com>
16918 * LinkLabel.cs: revert the SetStyle change.
16920 2006-07-06 Chris Toshok <toshok@ximian.com>
16922 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
16923 (OnEnableChanged): s/Refresh/Invalidate
16924 (OnGotFocus): if we have a focused index already, refocus it (so
16925 if we mouse out/in to the window it'll focus the right link).
16926 (OnKeyDown): move the tab handling out of here.
16927 (OnLostFocus): don't set focused_index to -1, so we can refocus it
16928 when we lose focus.
16929 (OnMouseDown): don't Capture here - Control handles it. Also,
16930 focus the active link.
16931 (OnMouseUp): don't deal with Capture.
16932 (OnPaintBackgroundInternal): remove.
16933 (OnTextAlignChanged): CreateLinkPieces before calling the
16934 superclass's method.
16935 (OnTextChanged): call CreateLinkPieces before calling superclass's
16937 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
16939 (Select): implement this, moving the selection between different
16940 links, and call parent.SelectNextControl if we don't have another
16941 link to focus in the given direction.
16942 (CreateLinkPieces): call Invalidate instead of Refresh.
16944 2006-07-06 Chris Toshok <toshok@ximian.com>
16946 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
16947 new LinkLabel internals.
16949 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
16950 over pieces looking for active/focused/etc links. also, deal with
16951 runs of text (and links) with embedded \n's in them, and use
16952 MeasureCharacterRanges instead of MeasureString to figure out the
16953 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
16956 2006-07-04 Jackson Harper <jackson@ximian.com>
16958 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
16959 XKB or key auto repeat, do it manually. Without key auto repeat,
16960 when a key is held down we get key press, key release, key press,
16961 key release, ... with auto repeat we get key press, key press, key
16962 press ..., and then a release when the key is actually released.
16964 2006-07-03 Jackson Harper <jackson@ximian.com>
16967 * ThemeWin32Classic.cs: Tabs do not obey normal background color
16968 rules, they are always control color regardless of the background
16971 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
16973 * FileDialog.cs: Added internal class MWFConfig.
16974 Removed Registry support and replaced it with support for the new
16975 MWFConfig class. See MWFConfig comments for more information.
16977 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
16979 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
16980 rectangle. Added some patches from eno from bug #78490 and fixed
16981 the arrow position for small up and down CPDrawScrollButtons.
16983 2006-06-30 Jackson Harper <jackson@ximian.com>
16985 * InternalWindowManager.cs: Remove some debug code.
16986 * Form.cs: When an MdiParent is set to null, the window is
16987 "detatched" and becomes a normal window.
16988 * MdiClient.cs: Don't bring the new child form to the front until
16989 it is activated (setting it as active does this), this makes the
16990 previously active forms titlebar get redrawn as inactive.
16992 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
16994 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
16995 with later controls
16997 2006-06-29 Mike Kestner <mkestner@novell.com>
16999 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
17000 arrow in keynav state. Fixes #78682.
17002 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
17004 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
17005 order (fixes #78393)
17007 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
17009 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
17010 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
17011 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
17012 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
17013 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
17014 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
17015 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
17016 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
17017 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
17018 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
17019 enumerations (FlagsAttribute, SerializableAttribute, added/removed
17022 2006-06-28 Mike Kestner <mkestner@novell.com>
17024 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
17026 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
17029 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
17030 item lines from other area (It also makes BackColor consistent and
17031 compatible with .NET). Fixed bug #78564.
17033 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
17035 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
17036 Patch from Eno for #78555.
17038 2006-06-27 Chris Toshok <toshok@ximian.com>
17040 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
17042 * DataGridColumnStyle.cs: same.
17044 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
17046 * DataGridDrawingLogic.cs: nuke.
17048 2006-06-27 Chris Toshok <toshok@ximian.com>
17050 * DataGridTableStyle.cs: clean up the constructors, and build the
17051 list of child relations for this table. I have no idea if this is
17052 where we should be doing it (it probably isn't), but since we're
17053 already iterating over the properties..
17055 * DataGrid.cs: add row resizing. for now we add a DataGridRow
17056 struct and array for keeping track of row information, similar to
17057 what's shown in a hack on
17058 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
17060 * Theme.cs: be consistent about the naming of DataGrid methods,
17061 prefering ColumnWidths and RowHeights over columnsWidths and
17064 * ThemeWin32Classic.cs: same, and also add support for variable
17065 sized rows (and the +/- expansion icons for related rows).
17067 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17069 * TextBoxBase.cs: Applied Eno's patch from #78660
17071 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17073 * Form.cs (ScaleCore): We don't want to scale our form if it's
17074 state is minimized or maximized, but we still need to scale our
17075 child windows. Also, added try/finally block to ensure layout
17076 gets reset (Fixes #78697)
17078 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17080 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
17082 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17084 * Form.cs: Fixed c+p error and added check to resize form if minimum
17085 size is bigger than current size (Fixes #78709)
17087 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
17089 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
17091 2006-06-26 Mike Kestner <mkestner@novell.com>
17093 * ComboBox.cs: only do Keypress handling in the combo when there
17094 are items in the collection. Fixes #78710.
17096 2006-06-26 Chris Toshok <toshok@ximian.com>
17098 * Binding.cs: make this work bi-directionally. also, clear up
17099 other mixups between Push/Pull Data (e.g. we're supposed to pull
17100 data when validating).
17102 * BindingManagerBase.cs: trim some fully qualified collection
17105 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
17107 2006-06-23 Chris Toshok <toshok@ximian.com>
17109 * PropertyManager.cs: It appears (according to the unit tests)
17110 that PropertyManager doesn't use
17111 PropertyDescriptor.AddValueChanged to track propery value changes
17112 in its datasource, but uses the same scheme as Binding, where it
17113 looks for a <Property>Changed event and binds to it.
17115 Also, according to the docs, IsSuspended always returns false for
17116 a property manager with a non-null datasource.
17118 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
17120 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
17121 need to update the actual DialogResult. (Fixes #78613)
17123 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
17125 * Form.cs (ShowDialog): Release any captures before running the
17126 new message pump (fixes #78680)
17128 2006-06-22 Mike Kestner <mkestner@novell.com>
17130 * ListView.cs: Layout column widths properly in details mode even
17131 if HeaderStyle.None is set. Fixes #78691.
17133 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
17135 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
17137 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
17139 * Control.cs (ContainsFocus): Using new driver method to get focused
17140 window, instead of trying to use internal tracking var, which can
17141 recursion issues (Fixes #78685)
17142 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
17143 XplatUIWin32.cs: Added GetFocus method to return focused window
17145 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17147 * ColorDialog.cs: when the mouse button is pressed inside the color
17148 matrix, don't let the cursor move out of it until the button is
17149 released, which is the behavior on windows. Changed 'colours' by
17150 'colors' to use the same word consistently.
17152 2006-06-21 Chris Toshok <toshok@ximian.com>
17154 * DataGrid.cs: add in some basic navigation stuff (navigating to a
17155 child relation and back, using a stack). Also, remove
17156 GetDataSource and the code that calls it - it's not needed. Also,
17157 track CurrencyManager.ListName's removal.
17159 2006-06-21 Chris Toshok <toshok@ximian.com>
17161 * CurrencyManager.cs: push some of the original type checking from
17162 BindingContext.CreateBindingManager to here, and remove some of
17163 the finalType stuff. Need more tests to make sure I've got the
17164 ListName part right, and we might need more in SetDataSource.
17166 * PropertyManager.cs: add a ctor that takes just the datasource,
17167 and no property name. Make SetDataSource work with a null
17168 property_name, and make Current return the data_source if the
17169 property descriptor is null. this makes 'string foo = "hi";
17170 BindingContext[foo].Current' return "hi" as it should.
17172 * RelatedCurrencyManager.cs: make this code more generic - there's
17173 no reason the parent manager has to be CurrencyManager, and
17174 there's no reason to pass the DataRelation. It suffices to use a
17175 BindingManagerBase and PropetyDescriptor.
17177 * RelatedPropertyManager.cs: make a similar change here.
17179 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
17180 flower I knew it could be.
17182 2006-06-20 Chris Toshok <toshok@ximian.com>
17184 * PropertyManager.cs: the PropertyChangedHandler is invoked when
17185 data in the source has changed and we need to update the control,
17186 so s/PullData/PushData.
17188 * CurrencyManager.cs: Refresh is meant to update the control from
17189 data in the datasource. So, s/PullData/PushData.
17191 * BindingContext.cs: add more ugliness (we weren't handling the
17192 case where data_source = DataTable and data_member = column_name).
17194 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
17195 from the perspective of the datasource. PullData pulls from the
17196 control, PushData pushes to the control.
17198 2006-06-20 Chris Toshok <toshok@ximian.com>
17200 * BindingContext.cs: rewrite the CreateBindingManager code to
17201 handle navigation paths more or less properly. This could
17202 definitely stand some more work, in particular to push the
17203 recursion up to the toplevel. But that relies on fixes in other
17204 places (System.Data comes to mind).
17206 Also, move to a flat hashtable (and encode the twolevel nature of
17207 the dictionary into the hash key). This lets us implement the
17208 IEnumerable.GetEnumerator method.
17210 * RelatedCurrencyManager.cs: new class. Update our view based on
17211 our relation and our parent CurrencyManager's position.
17213 * CurrencyManager.cs: split out some logic from the ctor into
17214 SetView, so it can be called from the new RelatedCurrencyManager
17217 * RelatedPropertyManager.cs: new class. Update our datasource
17218 based on the position of our parent CurrencyManager.
17220 * PropertyManager.cs: split out some logic from the ctor into
17221 SetDataSource, so it can be called from the new RelatedDataSource
17222 subclass. Also, make the Current getter return the value
17223 of the PropertyDescriptor, not the data_source.
17225 * Binding.cs: no need to duplicate the string splitting code here.
17227 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
17230 - set_Enabled: OnEnabledChanged is not called if the inherited state
17231 of the control is not altered, even though we might be changing the
17232 internal state of the control (#78458)
17233 - set_Enabled: (Re)Moved the enabling/disabling of the window to
17234 OnEnabledChanged, to allow easy altering of any child window state
17235 - OnEnabledChanged: Added code to enable/disable driver window state
17236 - OnParentEnabledChanged: Instead of firing the event, call
17237 OnEnabledChanged, which will fire the event and also a) set driver
17238 window state and pass the enabled state to any grandchildren (#78458)
17240 2006-06-19 Jackson Harper <jackson@ximian.com>
17242 * InternalWindowManager.cs: We don't set the cursor explicitly
17243 thats done via the response to NCHITTESTs.
17244 - Don't need to adjust for titlebar heights anymore, the
17245 coordinates are coming in the correct coordinates now (see peters
17249 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
17251 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
17252 being translated relative to whole window, instead of client window.
17253 That caused broken offsets on mouseclick (and caused gas for our
17254 InternalWindowManager)
17256 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
17259 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
17260 - Undo(): Added replay of cursor move on DeleteChars action; added
17261 calling Undo() again if a recorded cursor move is invalid (to
17262 ensure that some action is performed on Undo)
17263 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
17265 2006-06-16 Jackson Harper <jackson@ximian.com>
17267 * MdiClient.cs: Instead of just sizing maximized windows when
17268 there is a resize we also have to adjust the Y of minimized
17269 windows, so they stay pinned to the bottom of the mdi container.
17270 - Eliminate separate tracking of the active control, we can just
17271 get this from the controls collection.
17272 - Paint the decorations for the newly activated titlebar so we get
17274 * InternalWindowManager.cs:
17275 * ThemeWin32Classic.cs: Minimized windows get all three buttons
17276 even if they are a tool window.
17278 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
17280 * TextControl.cs (Undo): Handle non-existent cursor locations in the
17281 undo buffer, these can happen when text was deleted and the cursor
17282 was recorded first. Since we will also have a recorded cursor
17283 after the delete this is not an issue. (Fixes #78651)
17285 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
17287 * AccessibleObject.cs: Remove dependence on Control.is_selected;
17288 instead properly track control states internally (allows us to
17289 remove is_selected from Control)
17291 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17293 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
17294 whose width is not a multiple of 8.
17296 2006-06-13 Jackson Harper <jackson@ximian.com>
17298 * MdiClient.cs: Only maximize the next child if the current one
17301 2006-06-13 Chris Toshok <toshok@ximian.com>
17303 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
17304 modified. Also, guard against grid or grid_drawing being null in
17307 * DataGrid.cs: Reformat tons of getters/setters. In the
17308 DataMember setter, just call SetNewDataSource instead of
17309 duplicating some of its functionality. In SetNewDataSource, don't
17310 check ListManager for null, since the property getter creates the
17313 * DataGridTableStyle.cs: don't set TableStyle or call
17314 SetDataGridInternal on the column here, it's done in
17315 GridColumnStylesCollection.Add.
17317 * GridColumnStylesCollection.cs: fix all the explicit interface
17318 implementations to just call our methods. Nuke AddInternal() and
17319 move the body of it to Add(). Also, add a call to
17320 column.SetDataGridInternal to Add().
17322 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
17323 base()+duplicate code. Also, use the Format property instead of
17324 format to generate an Invalidate ala MS. Lastly, create the
17325 textbox here, unconditionally.
17326 (set_Format): call Invalidate.
17327 (get_TextBox): no need to call EnsureTextBox.
17328 (Commit): remove the message box.
17329 (Edit) remove the call to EnsureTextBox.
17330 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
17331 (EnterNullValue): no need to check textbox for null.
17332 (HideEditBox): no need to check textbox for null.
17333 (SetDataGridInColumn): add the textbox to the grid's controls.
17334 (EnsureTextBox): nuke.
17336 2006-06-13 Jackson Harper <jackson@ximian.com>
17338 * MdiWindowManager.cs: Hook up to the maximized menus paint event
17339 and redraw the buttons when needed. Unhook when the window is
17341 * MainMenu.cs: Add an internal Paint event, the mdi window manager
17342 needs this so that it can redraw its buttons when the menu is
17344 * InternalWindowManager.cs:
17345 * Form.cs: The method order has changed for DrawMaximizedButtons,
17346 so that it can be a PaintEventHandler.
17348 2006-06-13 Jackson Harper <jackson@ximian.com>
17350 * MdiClient.cs: When we close a maximized mdi window, the next mdi
17351 window is activated and maximized, even if it wasn't before.
17352 - When a new window is activated repaint the decorations of the
17353 old one, so that it no longer has the Active "look" (the blue
17355 * InternalWindowManager.cs: Open up CreateButtons to base classes
17356 so they can recreate the buttons on state changes.
17357 - If a window is maximized give it all three buttons
17358 * MdiWindowManager.cs: Create the titlebar buttons when the state
17359 is changed, this is needed because a toolwindow will not have all
17360 three buttons until it is maximized.
17362 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
17364 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
17367 2006-06-12 Jackson Harper <jackson@ximian.com>
17369 * KeysConverter.cs: Make sure we handle the Ctrl special case
17370 if its the only key.
17372 2006-06-12 Jackson Harper <jackson@ximian.com>
17374 * Theme.cs: Add a method to get the size of a managed window
17376 * InternalWindowManager.cs: Remove the ButtonSize property, this
17377 should be retrieved from the theme.
17378 * MdiWindowManager.cs: Get the button size from the theme
17379 * ThemeWin32Classic.cs: Make the method to get the managed window
17380 titlebar button size public.
17381 - Handle the different button sizes of maximized toolwindows
17382 (should match any maximized window).
17383 - Get the titlebar height from the theme, not the WM (which gets
17384 it from the theme).
17386 2006-06-12 Jackson Harper <jackson@ximian.com>
17388 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
17389 event down to the mdi window manager.
17390 - Expose some extra stuff to base classes
17391 - Make sure to end the Capture on an NC Mouse up, so that we can
17392 get double clicks properly, and the sizing doens't stick.
17393 - When doing PointToClient contain it in the workable desktop
17394 area, this prevents windows from changing size when the cursor is
17395 pulled outside of the working area while sizing.
17396 * MdiWindowManager.cs: When we get a double click maximize the
17398 - Reset the cursor after handling mode changes.
17400 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
17402 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
17403 current desktop, instead of just assuming a 0, 0 origin. This
17404 is needed for our internal window manager, to know the top
17405 margin of the desktop
17407 2006-06-12 Chris Toshok <toshok@ximian.com>
17409 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
17410 we need this to get rid of the selected background in the bool
17412 (CancelEditing): move the ConcedeFocus call to above the Abort
17413 call. Also, set is_changing to false and invalidate the row
17414 header if we were changing before.
17415 (ProcessKeyPreviewInternal): remove, since noone outside this
17416 class calls it anymore. Roll the code into ProcessKeyPreview.
17417 (EndEdit): remove the internal version.
17418 (InvalidateCurrentRowHeader): make private.
17420 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
17421 Keys.Escape handling (and with it the last call to
17422 DataGrid.EndEdit from outside the class.)
17425 2006-06-12 Chris Toshok <toshok@ximian.com>
17427 * DataGridTextBox.cs (.ctor): isedit defaults to false.
17428 (OnKeyPress): set isedit to true.
17429 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
17430 already handled by the grid.
17432 * DataGrid.cs (set_CurrentCell): more work here. it's still not
17434 (set_DataSource): SetDataSource always returns true, so stop
17435 putting it in an if statement.
17436 (EndEdit): get rid of some {}'s
17437 (ProcessGridKey): return true in case Keys.Escape.
17438 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
17439 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
17440 PositionChanged, stopped connecting to CurrentChanged.
17441 (GetDataSource): simplify this a bunch.
17442 (SetDataSource): change return type from bool to void.
17443 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
17444 to this, and make sure we don't set ListManager.Position inside
17446 (OnListManagerItemChanged): if we're passed an actual index,
17449 * CurrencyManager.cs (set_Position): don't call PullData here.
17451 2006-06-09 Jackson Harper <jackson@ximian.com>
17453 * TreeNode.cs: Recalculate the visible order before doing the
17454 Expand/Collapse Below calls, because those calls generate an
17456 - Reduce calls to the TreeView property, which is mildly expensive
17457 by using a local var.
17458 * Form.cs: Layout the MDI child windows when creating the parent
17460 - Don't use the internal constructor anymore
17461 * MdiClient.cs: use the parent form width/height (if available)
17462 when laying out the child windows, we do this because the
17463 mdiclient isn't docked yet when the initial layout is done.
17464 - Don't need an internal constructor anymore.
17466 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17468 * FileDialog.cs: handle access errors when trying to create a folder
17469 or changing to a directory. No need to initialize out parameters.
17471 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17473 * FileDialog.cs: Append a number when creating a new folder if the
17474 folder already exists (use parenthesis instead of square brackets)
17476 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17479 - Disabled registry support for windows and added better registry
17480 error checking for other systems (need to investigate why it
17481 works perfectly on my system)
17482 - If a folder already exist show an error MessageBox instead of
17483 trying to create an indexed name.
17484 - Fixed a non intentional typo.
17486 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17488 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
17490 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17492 * FileDialog.cs: When creating a new folder don't crash if the
17493 folder already exists.
17495 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17497 * FileDialog.cs: Allmost a complete rewrite.
17498 - added a "virtual" file system that handles the differences
17499 between unix and windows file systems (especially the directory
17500 structure). Moved most of the directory and file handling code
17502 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
17503 UnixFileSystem and FSEntry.
17504 - Recently used folder/directory, size, location and used file names
17505 (file name ComboBox) are now stored in the registry and get read
17506 before the dialog shows up (fixes part 6 of bug #78446).
17507 - Creation of new folders/directories is now possible (context menu
17508 or ToolBar). Added TextEntryDialog for this that fills in the gap
17509 until ListView.LabelEdit works.
17510 - Fixed cursor handling (bug #78527) and focus handling for
17512 - Various "Search in" ComboBox enhancements. The content of the
17513 dropdown listbox now almost matches ms.
17514 - Changed the behaviour when the user switches to SpecialFolder
17515 Recent to show the ListView in View.Details.
17516 - Beside using the ToolBar to change the View property of the
17517 file ListView it is now possible to use the context menu too.
17519 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17521 * ComboBox.cs: Don't create a new ObjectCollection when an item
17522 gets inserted. Just insert the item in the existing object_items
17525 2006-06-08 Jackson Harper <jackson@ximian.com>
17527 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
17528 that the treeview and root node checks are done also, this fixes a
17529 regression i caused in the unit tests.
17531 2006-06-07 Wade Berrier <wberrier@novell.com>
17533 * RichTextBox.cs: More ISO8859-1 -> unicode
17535 2006-06-07 Mike Kestner <mkestner@novell.com>
17537 * ComboBox.cs : use items to hold highlight/selection so that
17538 collection insertions don't require synchronization.
17540 2006-06-07 Jackson Harper <jackson@ximian.com>
17542 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
17543 routine. We now always keep the sized edge at the cursor instead
17544 of computing movement and adjusting rects. There is one buglet
17545 with this method though when the cursor is moved over area that
17546 the window can not expand too (such as the toolbars on the desktop).
17548 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17550 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
17551 here. Fixes crash on startup in AlbumSurfer.
17553 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
17555 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
17558 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17560 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
17561 statement to avoid calling XNextEvent which will block if another thread
17562 took the event that we were expecting. Fixes bug #78605.
17564 2006-06-07 Mike Kestner <mkestner@novell.com>
17566 * ListView.cs : isolated checkbox clicking from the selection logic.
17567 Toggle check state on item doubleclicks. Really fixes #78454 part2.
17569 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17571 * Form.cs: Check that the value passed to Form.DialogResult
17572 is a valid enum value.
17574 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17576 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
17577 Computer'. Clicking it in the network view goes to 'My Computer'.
17578 Added CIFS filesystem type. Display the mount point of filesystems.
17579 Avoid duplicate mount points (happens for me with CIFS);
17581 2006-06-06 Jackson Harper <jackson@ximian.com>
17583 * InternalWindowManager.cs: Draw the maximized windows buttons
17586 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17588 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
17589 all other dialogs. Fixes bug #78585.
17591 2006-06-06 Mike Kestner <mkestner@novell.com>
17593 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
17594 Only invalidate checkbox on checkstate changes to avoid flicker.
17595 * ListBox.cs : avoid unselect/select when clicking selected item.
17596 avoid reselection flicker for already multiselected items.
17599 2006-06-06 Jackson Harper <jackson@ximian.com>
17601 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
17602 the parent form so that the menu is removed if needed.
17604 2006-06-06 Mike Kestner <mkestner@novell.com>
17606 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
17607 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
17609 2006-06-06 Mike Kestner <mkestner@novell.com>
17611 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
17614 2006-06-06 Jackson Harper <jackson@ximian.com>
17616 * Control.cs: Use the property (instead of the field) to get the
17617 default cursor so it is instantiated correctly.
17618 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
17619 resizes so we need to manually repaint the window decorations here.
17620 - Set the titlebar button locations as soon as they are created,
17621 otherwise they are not set correctly on win32.
17623 2006-06-06 Chris Toshok <toshok@ximian.com>
17625 * CurrencyManager.cs (set_Position): call PullData before
17627 (AddNew): after calling IBindingList.AddNew, update our
17628 listposition, and call OnCurrentChanged/OnPositionChanged (without
17630 (OnCurrentChanged): remove the call to PullData from here.
17631 (OnItemChanged): remove the call to PushData from here.
17632 (OnPositionChanged): change the test from == null to != null to
17633 match the other methods.
17634 (ListChangedHandler): the grossest part of the patch. Implement
17635 this such that it passes the unit tests in CurrencyManagerTest and
17636 the output more or less matches that of MS's implementation.
17638 2006-06-06 Mike Kestner <mkestner@novell.com>
17640 * ListView.cs : only update check state on single click.
17641 * ThemeWin32Classic.cs : fix focus drawing for details view without
17642 fullrowselect. Fixes #78454.
17643 * XplatUIX11.cs : fix for double click emission.
17645 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
17647 * PropertyGridView.cs : Applied Atsushi's patch to fix
17648 font dialog bug (#78197).
17650 2006-06-05 Jackson Harper <jackson@ximian.com>
17652 * TreeNode.cs: Compute the next node for expanding/collapsing
17653 correctly. We now factor in nodes without a NextNode
17654 correctly. (Fixes somes cases in nunit-gui).
17655 * InternalWindowManager.cs: Set the bounds when updating the
17656 virtual position of a tool window.
17658 2006-06-05 Chris Toshok <toshok@ximian.com>
17660 * DataGrid.cs: rename cached_currencymgr to list_manager.
17661 (set_CurrentCell): move SetCurrentCell code here, and clean it up
17663 (CurrentRow, CurrentColumn): single accessors so we can make the
17664 cursor movement code a lot easier to understand.
17665 (CurrentRowIndex): implement this in terms of CurrentRow.
17666 (BeginEdit): clean this up a bit.
17667 (CancelEditing): sort out the is_editing/is_changing/is_adding
17669 (EndEdit): minor changes.
17670 (OnKeyDown): add a comment about a (most likely) unnecessary
17672 (OnMouseDown): cancel editing when we click on a row header. And
17673 use the CurrentRow setter, not CurrentCell.
17674 (ProcessDialogKey): directly call ProcessGridKey.
17675 (UpdateSelectionAfterCursorMove): factor out this common block of
17676 code (it's used everywhere that we move the cursor by updating row
17678 (ProcessGridKey): pretty substantial overhaul. Use the
17679 CurrentRow/CurrentColumn properties to make the code a lot more
17680 readable. Only use the CurrentCell property when we have to
17681 modify both row and column at once. Tab behavior is still broken,
17682 and Delete is untested.
17683 (Select): if we have no selected rows, set selection_start to
17685 (EditCurrentCell): rename EditCell this. It was only ever invoked
17686 with CurrentCell as the arg, so drop the arg and rename it.
17688 * DataGridColumnStyle.cs: clean up the constructors a little, and
17689 drop CommonConstructor().
17691 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
17692 actually get notified when the user hits it.
17693 (ProcessKeyMessage): *substantially* simplify this method.
17694 There's no reason (that I can see) for the textbox to be making
17695 calls into the datagrid at all. Remove all of them but the ones
17696 for Enter handling. those will take some more work.
17698 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
17699 calling HideEditBox.
17700 (HideEditBox): if we have an active textbox, render it invisible
17701 without causing a re-layout of the datagrid.
17703 2006-06-05 Mike Kestner <mkestner@novell.com>
17705 * ListView.cs : fix NRE crasher when focuseditem is cleared by
17706 collection changes by resetting it to Items[0]. Fixes #78587.
17708 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17710 * MessageBox.cs: if the height of the text is larger than the icon_size,
17711 use that. Fixes bug #78575.
17713 2006-06-05 Jackson Harper <jackson@ximian.com>
17715 * TreeView.cs: Fix line drawing when scrolling. To do this each
17716 node is basically responsible for drawing its entire horizontal
17717 area. When drawing a node it draws its parent node lines if
17719 - Adjust the clip area to the viewport rectangle
17720 - Fix Left/Right key handling to match MS. (It expand/collapses
17721 and moves to parents/first child but does not move selection to
17723 - Fix SetTop to work with new bound calculation code
17724 - When scrollbars are no longer needed we need to reset scrolling
17725 vars and recalculate the visible order so the redraw is correct
17726 * TreeNode.cs: We can't expand/collapse nodes with no children.
17728 2006-06-03 John Luke <john.luke@gmail.com>
17730 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17731 so the colors work without dev packages
17733 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
17736 - Select: Implemented to just use activate. Seems to match MS
17737 behaviour closest. Documented to only do actual control walking
17738 based on it's parameters if in a container control so I moved
17740 - Removed selection check logic from our internal Select() method
17741 * ContainerControl.cs:
17742 - Select: Moved selection logic from Control here, since MS documents
17743 that containers obey the bool arguments. No longer calling base
17745 2006-06-02 Jackson Harper <jackson@ximian.com>
17747 * TreeView.cs: If the selected node isn't changed when we get
17748 focus update the previously selected node so that we see the
17751 2006-06-02 Mike Kestner <mkestner@novell.com>
17753 * ComboBox.cs: restructure grab and general mouse event handling.
17754 Make the composite control raise mouse events like it was a single
17755 control for leaves/enters/motion/up/down events. fix dropdown list
17756 coordinate mangling and refactor it into the scrollbar subclass to
17757 reduce code duplication. Fixes #78282 #78361 and #78457.
17759 2006-06-02 Mike Kestner <mkestner@novell.com>
17761 * ScrollBar.cs: remove Capture setting/clearing, as it happens
17762 automatically in the Control.WndProc.
17764 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17766 * FileDialog.cs: fix crash when running SharpChess, which sets the
17767 FilterIndex to 2 with only one Filter.
17769 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17771 * ToolBar.cs: add SizeSpecified property.
17772 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
17773 try to figure out our real size, otherwise fallback to what the
17776 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17778 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
17779 * Control.cs (WndProc): MS always calls the DefWndProc to pass
17782 2006-06-01 Mike Kestner <mkestner@novell.com>
17784 * ListView.cs: revamp the focus management in ListView. It still
17785 causes churn of LostFocus/GotFocus emissions on clicks, but it's
17786 better than not handling focus at all. Will revisit when pdb feels
17787 the general focus handling is solid. Fixes #78526.
17789 2006-06-01 Jackson Harper <jackson@ximian.com>
17791 * TreeView.cs: Set the default border style in the constructor.
17792 - Move painting to use OnPaintInternal instead of capturing
17793 WM_PAINT, this is the correct way of doing things
17794 - UpdateBelow shouldn't invalidate the scrollbar area
17795 - Cap the top on update below in case the node was above the top
17796 of the viewport rectangle.
17797 - ExpandBelow and Collapse below need to obey Begin/End Update.
17798 * TreeNode.cs: Make is_expanded internal so the treenode
17799 collection can change it without firing the whole event chain.
17800 * TreeNodeCollection.cs: When clearing all the child nodes make
17801 sure to recalc the visible order.
17802 - Improve algo for remove the top node
17804 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17806 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
17807 SendMessage directly calling window procedures, which in turn might
17810 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17812 * Control.cs: Don't handle WM_SETFOCUS if the same window already
17813 has focus (works around X11 sending a FocusIn after our SetFocus)
17814 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
17816 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
17818 * Mime.cs: Fix for the NET_2_0 build.
17819 NameValueCollection needs StringComparer now.
17821 2006-05-31 Chris Toshok <toshok@ximian.com>
17823 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
17824 return (via an out parameter) the starting X of the column.
17825 (UpdateVisibleColumn): track change to FromPixelToColumn.
17826 (HitTest): add a ColumnResize case here.
17827 (DrawResizeLine): new function, probably poorly named.
17829 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
17830 only need to keep one reference.
17831 (set_ListManager): same.
17832 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
17833 Also, add support for HitTestType.ColumnResize.
17834 (OnMouseMove): add column resize behavior here, and change the
17835 cursor to the correct one as we move around the datagrid.
17836 (OnMouseUp): terminate the column resize if we're resizing.
17837 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
17838 for the current cell.
17839 (ConnectListManagerEvents): use cached_currencymgr.
17840 (DisconnectListManagerEvents): fill this in, using
17841 cached_currencymgr.
17842 (SetCurrentCell): remove cached_currencymgr_events handling.
17843 (SetDataMember): only call DisconnectListManagerEvents if
17844 cached_currencymgr is != null.
17845 (SetDataSource): same.
17846 (OnListManagerCurrentChanged): cached_currencymgr_events ->
17847 cached_currencymgr.
17849 2006-05-31 Jackson Harper <jackson@ximian.com>
17851 * BindingManagerBase.cs: Remove somedebug code that creeped into
17853 * TreeNode.cs: We get the indent level dynamically right now, so
17854 don't track it as a member.
17855 * TreeNodeCollection.cs: Make sure all nodes added to the list
17856 have parents, treeviews/topnodes setup properly.
17857 - Don't attempt to track indent level.
17859 2006-05-30 Jackson Harper <jackson@ximian.com>
17861 * BindingContext.cs: Create the currency manager tables here.
17862 This allows us to more easily create null tables (when bad data
17863 members are used), and more easily create related currency
17865 * CurrencyManager.cs: All the table creation stuff is done by the
17866 binding context now.
17867 - Current should throw an exception if listposition is -1.
17868 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
17871 2006-05-30 Mike Kestner <mkestner@novell.com>
17873 * ListView.cs: allow reexpansion of zero-width column headers.
17876 2006-05-28 Chris Toshok <toshok@ximian.com>
17878 * CurrencyManager.cs (get_Current): after the late binding
17879 listposition = -1 fix, we need to guard against it here and return
17880 null, otherwise we raise an exception (which is swallowed
17881 elsewhere, and breaks datagrid databinding.)
17883 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17885 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
17886 than WM_SYSKEY, don't throw if get something unexpected (#78507)
17888 2006-05-26 Jackson Harper <jackson@ximian.com>
17891 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
17892 values, it's faster and it's all we care about (we don't care if
17893 the names aren't equal).
17894 * KeyboardLayouts.cs: Eliminate some dead code.
17896 * X11Keyboard.cs: Lazy init keyboard detection.
17897 - Cleanup access modifiers a little.
17899 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17901 * XplatUIX11.cs: Once again, attempting to get layout just right.
17903 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17905 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
17906 the sizes of each link section, that will result in sizes that
17907 match DrawString's layout (Fixes #78391)
17909 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
17911 * FileDialog.cs: If AddExtension property is true autocomplete the
17912 extensions in SaveFileDialog correctly. Fixes bug #78453.
17913 Set MyNetwork and MyComputer to "C:\" for windows. This should
17914 fix part 8 of bug #78446 for now.
17916 2006-05-26 Chris Toshok <toshok@ximian.com>
17918 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
17919 invalidate the current row header if we need to, but presumably
17920 we'll invalidate the row corrsponding to the bounds or
17922 (GridHScrolled): switch back to this method, as it's part of the
17923 public api. *sigh*.
17924 (GridVScrolled): same.
17925 (OnMouseWheel): hack up something that more or less works. Call
17926 GridHScrolled/GridVScrolled directly, instead of duplicating much
17927 of their code here.
17928 (EnsureCellVisibility): reinstate a bunch of this code, since we
17929 can't just set the scrollbar Value and expect to do all the work
17930 in the ValueChanged handler. Also, Call Update() after scrolling
17931 in one direction so the other XplatX11.ScrollWindow call has the
17932 proper stuff in the proper places.
17933 (EditCell): set is_editing to true before calling .Edit.
17935 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
17936 don't bother comparing first.
17937 (OnKeyPress): call grid.ColumnStartedEditing before calling
17938 base.OnKeyPress. this will set is_changing and invalidate the row
17939 header if necessary.
17940 (ProcessKeyMessage): for WM_CHAR messages, call
17941 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
17944 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
17945 it's done in the DataGrid.
17946 (NextState): call grid.ColumnStartedEditing, which takes care of
17947 invalidating the row header (and setting is_changing).
17949 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
17950 here. it's done in the DataGrid.
17952 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17954 * Control.cs: allow changing the cursor when the mouse position is
17955 out of bounds but Capture is set.
17956 * LinkLabel.cs: handle the case when the mouse button is pressed on the
17957 linklabel but released somewhere else.
17959 2006-05-25 Jackson Harper <jackson@ximian.com>
17961 * TreeView.cs: When we get focus if there is no selected node make
17963 - Remove some uneeded setup code from Draw.
17964 * TreeNodeCollection.cs: If the tree doesn't have a top node when
17965 a new node is inserted make the new node the top.
17967 * Timer.cs: Use Utc time so that no local time zone stuff needs to
17968 be used (should be faster).
17970 2006-05-25 Chris Toshok <toshok@ximian.com>
17972 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
17973 problem with the last commit.
17975 2006-05-25 Chris Toshok <toshok@ximian.com>
17977 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
17978 need the invalidate call here, while scrolling right-to-left via
17979 the left arrow key (i.e. moving the editing cell while scrolling).
17981 * DataGrid.cs (.ctor): remove the initialization of
17982 ctrl_pressed/shift_pressed. We no longer track them using key
17983 up/down handlers, but by using Control.ModifierKeys. Also, switch
17984 to using ValueChanged handlers on the scrollbars instead of
17985 Scrolled event handlers. This simplifies a bunch of the scrolling
17987 (GridHValueChanged): rename from GridHScrolled, and change it to
17988 work with the new event args.
17989 (GridVValueChanged): same.
17990 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
17991 (OnMouseWheel): actually scroll the datagrid. Don't change the
17993 (ProcessGridKey): correct all the keyboard navigation stuff I
17994 could find. Ctrl up/down/left/right/home/end work now.
17995 (EnsureCellVisibility): correct method name spelling. Also,
17996 simplify this a touch by not explicitly calling the
17997 ScrollToRow/ScrollToColumnInPixels methods. We just set the
17999 (OnKeyUpDG): no need for this method now.
18001 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18003 * LinkLabel.cs: display the OverrideCursor when hovering the label.
18006 2006-05-25 Chris Toshok <toshok@ximian.com>
18008 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
18011 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
18013 * Application.cs: Moved setting of is_modal and closing to before
18014 we create the control, to allow the event handlers called as a
18015 result of creation affect closing. Also removed Gonzalo's previous
18016 change to setting DialogResult, the behaviour has been moved to
18019 - ShowDialog(): Removed explicit creation of the form, let RunLoop
18021 - ShowDialog(): If no dialog result is set, we need to return Cancel
18022 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
18023 the close is cancelled
18025 2006-05-25 Jackson Harper <jackson@ximian.com>
18027 * StatusBar.cs: We only need to update the sizes of the other
18028 panels when we have auto size contents. Also we are only updating
18029 the contents of the panel, not the borders, so compensate for the
18030 border width (TODO: get this width from the theme somehow).
18031 * TreeView.cs: Scrollable is true by default
18032 - Use invalidate instead of refresh where needed
18033 - Factor the scrollable value into scrollbar updating
18034 - Update the scrollbars if the Scrollable property is altered
18035 - Update the selected node if its ImageIndex is changed
18036 - Handle null nodes in UpdateNode (mainly so we don't have to
18037 check if selected is null when updating it
18038 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
18039 are factored into the visible count
18040 - Use VisibleCount for clarity in the code
18041 - When the font is changed we need to recurse through all the
18042 nodes and invalidate their sizes
18044 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18046 * Application.cs: set the DialogResult to fixed when the main form is
18047 hidden or destroyed while being modal.
18049 2006-05-25 Miguel de Icaza <miguel@novell.com>
18051 * Theme.cs: Use Tangoified messagebox icons.
18053 (GetSizedResourceImage): Also cope with width = 0 and do not
18054 trigger a warning in that case (0 means "give me your icon from
18055 the resouce, no special size needed).
18057 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
18059 * Application.cs: Leave runloop if the the main modal form is
18060 hidden (fixes #78484)
18062 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
18064 * BindingContext.cs : reject null datasource in Contains() and
18066 * CurrencyManager.cs : check data_member validity when data_source
18067 is dataset. When it is late binding, the initial position is -1.
18069 2006-05-24 Jackson Harper <jackson@ximian.com>
18071 * TreeNodeCollection.cs: Dont't recalculate the visible order on
18072 inserted nodes that aren't visible. This changes the
18073 max_visible_order which confuses scrollbar settings.
18074 - Use the enumerator to get the prev node instead of duplicating
18076 * TreeView.cs: Use new method for setting scrollbar values
18077 - Don't set the bounds every time the scrollbar is updated
18078 - When updating below the root node use an invalidate instead of a
18079 refresh to prevent the child controls (scrollbars) from being
18080 refreshed. (UpdateBelow still needs to be reworked anyways).
18081 - Reenable SetBottom now that visible orders are set correctly,
18082 added some debug code incase we ever get bad values there again.
18083 - Set the scrollbar max to 2 less then the max value, this
18084 compensates for the max value being one above the node count, and
18085 for scrollbars adding one extra "notch".
18086 - When drawing image nodes if there is an imagelist we draw the
18087 first image in the list if the supplied image index is out of the
18088 image list's bounds.
18090 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18092 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
18093 we receive a size change from the WM (Fixes #78503)
18095 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18097 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
18098 rectangle (Fixes #78501)
18100 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18103 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
18105 - Fixed MouseMove to no longer switch pressed state unless the left
18106 mouse button is pressed. Atsushi provided the original patch (#78485)
18108 2006-05-24 Jackson Harper <jackson@ximian.com>
18110 * ScrollBar.cs: New internal methods that allow us to change a
18111 couple values on the scrollbar (the most common case is maximum
18112 and large change) without getting multiple invalidates.
18114 2006-05-24 Chris Toshok <toshok@ximian.com>
18116 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
18117 (Edit): save off the original state in oldState, and set
18118 grid.is_editing to true.
18119 (OnKeyDown): abort editing if escape is pressed. also, call
18120 NextState if space is pressed.
18121 (OnMouseDown): call NextState.
18122 (NextState): factor out shared code from OnKeyDown and OnMouseDown
18123 here. Also, only invalidate the row header once (on the initial
18124 is_changing switch) to save on redraws.
18126 2006-05-24 Chris Toshok <toshok@ximian.com>
18128 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
18129 if the value in the cell is different than it was before. This
18130 keeps us from triggering a layout when we move around a datarid
18131 with a highlighted cell.
18132 (Edit): suspend layout when creating/positining the text box, and
18133 resume passing false so we don't ever actually re-layout.
18134 (ReleaseHostedControl): same.
18135 (EnsureTextBox): reformat slightly, and set WordWrap to false.
18137 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
18138 control-key sequences should go to the datagrid - remove that
18139 lock. Also, modify the conditions under which we move between
18140 cells when moving the cursor within a cell, and remove the "this"
18141 and "base" from field accesses. We weren't even consistent, given
18142 they all were in the base class.
18144 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
18146 * Binding.cs : (.ctor)
18147 An obvious NRE fix for BindingTest.CtorNullTest().
18149 2006-05-23 Chris Toshok <toshok@ximian.com>
18151 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
18152 them between lines. This fixes some quirks editing cells in the
18155 2006-05-23 Jackson Harper <jackson@ximian.com>
18157 * TreeView.cs: Use begin/end update when doing expand/collapse all
18158 so that we don't get flicker on the scrollbar.
18160 2006-05-23 Jackson Harper <jackson@ximian.com>
18162 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
18163 treenode calculations to be independant of the painting code. To
18164 do this nodes track a visible order which is calculated by the
18166 - Call new methods for expanding/collapsing nodes. These methods
18167 use scrollwindow so we don't have to update everything below the
18169 * TreeView.cs: Refactored drawing and scrolling code. We don't
18170 need to update nodes when drawing anymore or calculate scrollbar
18172 - Added new methods for expanding/collapsing nodes. These methods
18173 use ScrollWindow so as to not have to redraw all the nodes below.
18174 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
18175 we add/remove nodes or sort.
18176 - Handle removing the selected and the top node properly.
18178 2006-05-23 Chris Toshok <toshok@ximian.com>
18180 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
18181 maybe this should actually happen in the datagrid code?
18182 (EndEdit): no need to invalidate anything, given that
18183 ReleaseHostedControl causes the datagrid to relayout, which
18184 invalidates everything anyway.
18186 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
18187 in SetCurrentCell).
18188 (set_SelectionBackColor): call InvalidateSelection instead of
18190 (set_SelectionForeColor): same.
18191 (BeginEdit): Flesh this out a bit.
18192 (CancelEditing): only do any of this if we're editing/adding.
18194 (OnMouseDown): there's no need to cancel editing here, it's done
18196 (SetCurrentCell): only invalidate the current row header if it's a
18197 different row than the new one.
18198 (ShiftSelection): fix this to work like MS does.
18199 (ResetSelection): factor out the invalidation of selected_rows to
18200 InvalidateSelection.
18201 (SetDataSource): cancel any editing that's going on.
18203 * DataGridColumnStyle.cs
18204 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
18205 call the non-interface version.
18207 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
18208 header rectangle with the clip rectangle so we don't redraw the
18209 entire header for just a small area. Gets rid of the last flicker
18210 when horizontally scrolling.
18211 (DataGridPaintRow): same.
18213 2006-05-23 Mike Kestner <mkestner@novell.com>
18215 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
18216 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
18217 poorly placed checkbox on the MS control. Fixes Alex's unfiled
18218 Critical bug report.
18220 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
18222 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
18223 and this fixes #78493
18225 2006-05-23 Miguel de Icaza <miguel@novell.com>
18227 * Theme.cs (GetSizedResourceImage): Scale images if the proper
18230 * FileDialog.cs: Do not change the background for the side bar as
18231 it wont work nicely with the theme, and also reduces the artifacts
18232 in rendering the icons (which I want to fix too).
18234 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
18235 resources, not resgen resources.
18237 (PlatformDefaultHandler): Pull images using the new API.
18239 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
18241 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
18242 a reference to the hwnd and will not remove it unless there are
18243 no pending exposures (fixes #78341)
18244 * XplatUI.cs: Improved debug
18246 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
18248 * MenuAPI.cs : don't handle OnClick event when it was not the left
18249 button. Fixed bug #78487.
18251 2006-05-23 Mike Kestner <mkestner@novell.com>
18253 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
18254 prefer submenus to the top menu for item lookup, to avoid popping down
18257 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
18259 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
18260 Graphics.FillRectangle as the visual results are really bad (even
18261 on win). We now draw perfect arrows (and perfect shadows when the
18262 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
18263 Pen.DashPattern to draw the dots of each line.
18265 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
18267 * FileDialog.cs: Update the filename combobox when navigating through
18268 the ListView with the cursor keys. Fixes part 7 of bug #78446.
18270 2006-05-22 Mike Kestner <mkestner@novell.com>
18272 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
18275 2006-05-22 Mike Kestner <mkestner@novell.com>
18277 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
18278 requests. Fix a misspelled parameter and a copy paste exception error
18281 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
18283 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
18284 to get the same width/height (5/13) on X11 as the default font has on
18285 win32. This means that our DefaultFont emSize is smaller than the
18286 the MS SWF equivalent (even thought the width/height stays the same)
18288 2006-05-20 Jackson Harper <jackson@ximian.com>
18291 * MdiWindowManager.cs:
18292 * InternalWindowManager.cs: Make sure to use the border width from
18295 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
18297 * PrintDialog.cs: Implements printer details
18299 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
18301 * FileDialog.cs: Added focus handling for PopupButtonPanel.
18302 Fixes part 1 and 2 of bug #78446
18304 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
18306 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
18307 instead of sticking to the first ever calculated value
18309 2006-05-19 Mike Kestner <mkestner@novell.com>
18311 * ComboBox.cs: fix mouse motion selection to use MousePosition and
18312 PointToClient, since Capture is set. Fixes #78344.
18314 2006-05-19 Mike Kestner <mkestner@novell.com>
18316 * ListView.cs: match MS behavior in Details view where items are not
18317 drawn if Columns.Count == 0.
18318 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
18319 Use a separate pen to draw the check, since changing the width affects
18320 the box as well. Fixes #78454.
18322 2006-05-18 Miguel de Icaza <miguel@novell.com>
18324 * ListView.cs: ArgumentOutOfRangeException, single versions of the
18325 exception should throw the name of the invalid argument.
18327 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
18328 there are no files listed.
18330 2006-05-18 Jackson Harper <jackson@ximian.com>
18332 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
18335 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18337 * Control.cs: Brought back our old UpdateZOrder method as a private
18338 function and switched our calls from UpdateZOrder to the new one.
18339 This fixes the Paint.Net canvas disappearing bug.
18341 2006-05-18 Jackson Harper <jackson@ximian.com>
18344 * ThemeWin32Classic.cs:
18345 * InternalWindowManager.cs: Move the drawing into the theme,
18346 expose everything the theme should need from the window manager.
18348 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18350 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
18351 from the call to NativeWindow to avoid walking up the parent chain
18352 further than needed (speeds up setting cursors and avoids setting
18353 the wrong cursor if a parent has another cursor defined)
18354 * Cursor.cs: When loading an icon as cursor, MS uses the center of
18355 the icon as hotspot, not what's contained as hotspot in the icon
18356 file. This fixes the perceived drawing offset seen with Paint.Net
18358 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18361 - Store the calculated rectangle in Hwnd object and use it when
18362 setting the client size
18363 - Force Toolwindows to always be type Dock, to ensure they're on top
18365 2006-05-18 Mike Kestner <mkestner@novell.com>
18367 * ComboBox.cs: first pass at ComboBox rework. Layout is more
18368 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
18369 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
18370 Substantial refactoring to remove confusing nested classes. Coding
18371 standard and Get+Set->property refactorings. Shift to index based
18372 highlighting in ComboListBox instead of constantly using IndexOf and
18373 Items[]. Add invalidations on resize for DropDownList to fix ugliness
18374 in FileDialog growth. Draw borders manually since Simple mode needs
18375 to look like two independent controls. Make listbox border
18376 conditional to DropDownStyle. Improved OwnerDraw support.
18378 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
18380 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
18381 Don't set the disposed graphics to null, so we can throw the "right"
18382 exception if the graphics is reused later (added a flag to avoid
18383 double disposing). Some behaviours are different under 2.0 and are
18384 filled under bug #78448.
18386 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18388 * Control.cs: When double-buffering is enabled, we need to reset
18389 our graphics context between paint calls. Otherwise, any
18390 transformations and other alterations on the context will
18391 become cumulative (#77734)
18393 2006-05-18 Mike Kestner <mkestner@novell.com>
18395 * ListView.cs: do focused item selection like MS on clicks.
18396 Rework focus handling for ItemControl so LostFocus invalidates as
18398 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
18399 the ListView ItemControl has focus.
18401 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
18403 * XplatUIX11.cs: If client_window ends up being width or height zero
18404 due to border settings, move it off window inside whole_window (#78433)
18406 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
18408 * Mime.cs: Shrink the mime file cache correctly.
18410 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
18412 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
18414 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18416 * XplatUIX11.cs (AddExpose): More sanity checks
18418 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18421 - AddExpose: Don't add expose ranges outside the size of our
18423 - Cast opacity values to Int32 to avoid crashes with certain
18425 - Added disabled code paths that protect against illegal cross-
18426 thread painting (Developers.exe)
18428 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18430 * ProgressBar.cs: Invalidate the control when it's resized
18431 since block size is based on control size. (#78388)
18433 2006-05-16 Miguel de Icaza <miguel@novell.com>
18435 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
18436 of setting the incoming argument to the "reset" value, we set the
18437 this.datamember to string.empty (before we were invalidating the
18442 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18444 * Form.cs: Only apply transparency settings after the form
18445 is created. (Fixes #77800)
18447 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18449 * ApplicationContext.cs: Grab the HandleDestroyed event so
18450 we know when to fire OnMainFormClosed
18452 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18454 * Application.cs: Introduced sub-class to allow tracking of
18455 threads and centralized triggering of the event mess for
18456 ThreadExit, AppExit, etc.. (#76156)
18458 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
18461 - Do not return a null icon index value for a mime subclass.
18462 Instead try the main mime type class too.
18463 - Seems that some newer distributions don't have a link to some
18464 gnome default icons anymore. So check the default gnome dir too.
18467 2006-05-16 Jackson Harper <jackson@ximian.com>
18469 * MdiClient.cs: Don't paint the parent background image if we have
18470 our own background image.
18472 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18475 - PerformLayout: Do not shrink space filled by DockStyle.Fill
18476 controls, all filled controls are supposed to overlap (#78080)
18477 - UpdateZOrder is supposed to update the control's z-order in the
18478 parent's z-order chain. Fixed to behave like that
18479 - BringToFront: Removed obsolete code
18480 - SendToBack: Simplyfied
18481 - SetChildIndex: Trigger layout calculations when Z-order changes
18482 since layout is done by z-order
18484 2006-05-16 Chris Toshok <toshok@ximian.com>
18486 [ fixes bug #78410 ]
18487 * DataGrid.cs (set_AlternatingBackColor): use
18488 grid_drawing.InvalidateCells instead of Refresh().
18489 (set_BackColor): call grid_drawing.InvalidateCells.
18490 (set_BackgroundColor): use Invalidate instead of Refresh.
18492 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
18493 invalidate the cell area.
18495 2006-05-15 Chris Toshok <toshok@ximian.com>
18497 [ fixes bug #78011 ]
18498 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
18499 on to DataGridPaintRow.
18500 (DataGridPaintRow): take a clip argument, and only draw the cells
18501 which intersect it. same with the not_usedarea.
18503 * Theme.cs (DataGridPaintRow) add @clip parameter.
18505 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
18506 XplatUI.ScrollWindow.
18507 (ScrollToRow): same.
18509 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
18510 with last column which was causing a gray swath to appear with the
18511 XplatUI.ScrollWindow code.
18513 2006-05-15 Chris Toshok <toshok@ximian.com>
18515 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
18516 use XplatUI.ScrollWindow.
18517 (VerticalScrollEvent): use XplatUI.ScrollWindow.
18519 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18521 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
18523 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18525 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
18526 file since there are no equivalent X11 cursors
18528 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
18530 * MonthCalendar.cs : DateTimePicker should reflect selected date
18531 on mouse*up*, not mouse*down*. Fixed originally reported part of
18534 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
18536 * TabControl.cs : When argument index is equal or more than tab
18537 count, just ignore. Fixed bug #78395.
18539 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18541 * Control.cs: Dispose all child controls when control is diposed (#78394)
18543 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18545 * ColorDialog.cs: Finally it is possible to select the color with
18548 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18550 * PrintDialog.cs: Fix typo
18552 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18554 * PrintDialog.cs: PrintDialog is not resizable
18555 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
18556 color. Made some ToolBar drawing methods protected virtual.
18558 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
18560 * PrintDialog.cs: Implementation of the PrintDialog
18562 2006-05-12 Chris Toshok <toshok@ximian.com>
18564 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
18565 thumb, instead use MoveThumb. This has the side effect of making
18566 most of the other thumb moving machinery use MoveThumb as well.
18567 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
18568 need to actually invalidate the rectangle where the new thumb will
18570 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
18571 We force an Update() after, so it's not as fast as it could be,
18572 but at least there's zero flicker and no droppings.
18573 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
18574 (UpdateThumbPos): add another argument (dirty), which says whether
18575 or not to calculate/add dirty regions which we later invalidate.
18576 For cases where we know we're going to use MoveThumb, we pass
18577 false for this. Otherwise, pass true.
18579 2006-05-12 Jackson Harper <jackson@ximian.com>
18581 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
18584 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
18586 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
18587 and GetClipRegion methods and UserClipWontExposeParent property.
18588 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
18589 overriding UserClipWontExposeParent property, setting to false, since
18590 Win32 handles the required expose messages to draw our clipped parent
18592 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
18593 PaintEventStart to set the user clip region if set.
18595 - Now internally tracking the Region for the control since we need to
18596 store it if the handle is not yet created and only set it when it
18597 becomes created. Before setting the region forced handle creation
18598 - Added code to draw the parents underneath a user-clipped region
18599 * Hwnd.cs: Added UserClip property
18601 2006-05-12 Chris Toshok <toshok@ximian.com>
18603 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
18604 (set_Maximum): same.
18605 (set_Minimum): same.
18606 (set_SmallChange): same.
18607 (OnMouseUpSB): remove the call to refresh when releasing the
18608 thumb. We shouldn't need it.
18610 2006-05-12 Miguel de Icaza <miguel@novell.com>
18612 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
18613 AutoSize set to None, we do not need to relayout everything, we
18614 just need to invalidate the current region.
18616 (Draw): Do not draw the entire ClientArea, just redraw the
18617 clip area being passed.
18619 * MdiClient.cs: Make MdiClient constructor with the Form argument
18622 2006-05-12 Jackson Harper <jackson@ximian.com>
18624 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
18625 parents background image, but strangely not their own.
18626 - (DrawStatusBarPanel): Take into account horizontal alignment
18627 when drawing the strings and icons.
18629 2006-05-12 Mike Kestner <mkestner@novell.com>
18631 * ListBox.cs: avoid invalidations for focus when the collection is
18634 2006-05-12 Chris Toshok <toshok@ximian.com>
18636 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
18637 invalidate the entire thumb area. Call InvalidateDirty which
18638 limits the redraw to the thumb itself and surrounding pixels.
18640 * XplatUIX11.cs (ScrollWindow): optimize copying.
18642 2006-05-12 Chris Toshok <toshok@ximian.com>
18644 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
18645 Figure out the positioning/layout in a single pass instead of
18646 multiple recursive invocations. Speeds up the initial display of
18647 the data grid. Also, make many things private that were
18648 originally public but unused outside this class.
18650 2006-05-11 Jackson Harper <jackson@ximian.com>
18652 * MdiClient.cs: Improved layout code.
18654 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
18656 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
18657 not SelectedObject.
18659 2006-05-11 Chris Toshok <toshok@ximian.com>
18661 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
18662 union of that will always be {0,0,width,height}.
18664 2006-05-11 Jackson Harper <jackson@ximian.com>
18666 * Form.cs: Match MS's DefaultSize for forms (they must have
18667 changed the size in sp2).
18669 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
18671 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
18673 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
18675 * TextControl.cs : Fixed bug #78109. This incorrect position
18676 comparison caused crash on automatic line split.
18677 * TextBoxBase.cs : reduce duplicate code.
18679 2006-05-10 Jackson Harper <jackson@ximian.com>
18681 * MdiClient.cs: Active form is only sent to the back when using
18682 the Next form functionality, when a form is clicked the current
18683 active shouldn't be sent to the back.
18684 - Layout the mdi windows when the container is first made visible.
18685 * Form.cs: Give the MdiClient a ref to the containing form when we
18688 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
18690 * LinkLabel.cs : link_font could be uninitialized, so populate one
18691 before actual use. Fixed bug #78340.
18693 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
18695 * XplatUIX11.cs : clipboard format native value is IntPtr.
18698 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18701 - Instead of showing context menus directly we send WM_CONTEXTMENU,
18702 which is passed up the parent chain by DefWndProc
18703 - We now handle WM_CONTEXTMENU to display any menu, or pass it
18704 to DefWndProc (#77956)
18705 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
18707 2006-05-10 Jackson Harper <jackson@ximian.com>
18709 * MdiClient.cs: We need to remove the controls from the mdi
18710 collection, when we close the window.
18711 * MdiWindowManager.cs: Special handling of closing mdi windows.
18712 * InternalWindowManager.cs: Make the close method virtual so the
18713 mdi window manager can handle it specially.
18715 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
18718 - Recalculate grid when the data source has changed
18719 - Matches styles provided by user from all data sources types
18720 * DataGridTableStyle.cs: For columns that provided by the user set the
18721 with the preferred value is there was unassigned.
18722 * CurrencyManager.cs: throw OnItemChanged event
18724 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18726 * PictureBox.cs: Don't animate until handle is created. Start animation
18727 when handle is created.
18729 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18731 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
18733 * XEventQueue.cs: We don't need to provide the extra info
18735 2006-05-10 Jackson Harper <jackson@ximian.com>
18737 * MdiClient.cs: If the mdi clients parent form has a background
18738 image set, we draw that background image for the mdi area's
18741 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18743 * TextBoxBase.cs: Set IBeam cursor (#78347)
18745 2006-05-10 Mike Kestner <mkestner@novell.com>
18747 * ToolBar.cs: fix some text padding issues with ButtonSize
18748 calculation. Update the default size to match MS documentation.
18749 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
18750 button size. Fixes #78296.
18752 2006-05-10 Mike Kestner <mkestner@novell.com>
18754 * ListBox.cs: use is_visible for scrollbar positioning in case the
18755 control isn't on screen yet. Fix off by one with Right vs Width
18756 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
18758 2006-05-10 Jackson Harper <jackson@ximian.com>
18760 * X11Dnd.cs: Drop to a control with another control on top of it.
18761 * ToolBar.cs: Work on a copy of the buttons list, so that it can
18762 be modified in click handlers. TODO: Look for similar problems in
18765 2006-05-09 Jackson Harper <jackson@ximian.com>
18767 * Form.cs: Window managers need the old window state when setting
18769 * InternalWindowManager.cs: Allow the base mdi window manager to
18770 handle more of the MDI only stuff (like maximize buttons).
18771 * MdiWindowManager.cs: Fix some snafus in changing the window
18772 state. Add all the menu functionality, for both popup and
18774 * MdiClient.cs: When a new form is selected the currently
18775 activated form is sent to the back, this matches MS.
18776 - Implement a new method to activate the next mdi child window.
18778 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
18781 - Added new InternalCapture method to allow controls to prevent
18782 the capture behaviour on the click handlers
18783 - Switched to use InternalCapture
18785 - Using InternalCapture to prevent mouse captures from being released
18786 on mouse button release (Fixes #78100)
18787 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
18788 returns Form borders if a caption is present. (Fixes #78310)
18790 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
18792 * TreeNode.cs: Changed serialization .ctor to not require every field
18793 to be present. (#78265)
18794 * OwnerDrawPropertyBag.cs: Added serialization .ctor
18796 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
18798 * MimeIcon.cs: for is faster than foreach for strings.
18800 2006-05-05 Mike Kestner <mkestner@novell.com>
18802 * CheckedListBox.cs: update check handling code to not use selected.
18803 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
18804 behavior for visual feedback, motion response, shift/ctrl handling,
18805 and properly deal with all 4 selection modes. Updates to bounds
18806 handling logic. Add scroll wheel support. [Fixes #77842]
18808 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
18811 - Moved adding of Implicit controls into .ctor. That way, subsequent
18812 creation of the controls will not cause them to think they are
18813 toplevel windows (fixes #78200 header problem)
18814 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
18815 - Switched visibility setting of header control to use internal field
18816 to avoid triggering handle creation
18817 - Now checking if handle is created before causing a refresh when items
18818 are added (This makes us now match handle creation time with MS)
18819 * Splitter.cs: Removed loading of private splitter cursor, switched to
18820 Cursors version now that that is loading the right ones
18821 * Cursors.cs: Load proper splitter cursors from resources
18822 * Cursor.cs: Added second method of loading resource cursors for the
18823 VS.Net users amongst us
18825 2006-05-05 Mike Kestner <mkestner@novell.com>
18827 * ListView.cs: give header_control a minimum size based on the
18830 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
18832 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
18833 window seems to do that with metacity, so set that type. (#78120)
18835 2006-05-05 Mike Kestner <mkestner@novell.com>
18837 * ListViewItem.cs: fix Details mode checkbox layout bug.
18838 * ThemeWin32Classic.cs: draw a ListView column header for unused space
18839 at the end of the header, if it exists. [Fixes for #78200]
18841 2006-05-04 Jackson Harper <jackson@ximian.com>
18843 * MdiClient.cs: Add a helper property to get the container form.
18844 * MdiWindowManager.cs: We have to make sure to use the menu origin
18845 when drawing the icons and buttons, this fixes maximized window
18846 icons/buttons on win32.
18847 * InternalWindowManager.cs: Reset the restore captions when a
18848 window goes from Maximized to Minimized and vice versa. Move the
18849 DrawMaximizedButtons into the MdiWindowManager source, tool
18850 windows can't be maximized. NOTE: This could use a little
18851 refactoring if time ever permits.
18853 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
18855 * TextBox.cs: Add MWFCategoryAttributes
18856 * TextBoxBase.cs: Add MWFCategoryAttributes
18857 * Form.cs: Add MWFCategoryAttributes
18859 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
18861 * Control.cs: Add MWFCategoryAttributes
18862 * ScrollableControl.cs: Add MWFCategoryAttributes
18864 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
18866 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
18867 Divider is true. Fix a little glitch in PropertyToolBar
18870 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
18873 - Dispose: Call base.Dispose, this causes the disposed event
18874 to be fired (and probably other, more important stuff)
18875 - SetVisibleCore: Set is_visible to true after creating the
18876 window so that the window still gets created invisible (if
18877 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
18878 to generate a WM_ACTIVE message
18879 * Form.cs: Call Dispose when we want to destroy the window, instead of
18880 just destroying the handle (Dispose will do that for us)
18882 - RootWindow also needs a queue, so we can properly process the
18883 property change events from RootWindow (like Activate)
18884 - Generatic synthetic WM_ACTIVE message when the active window is
18887 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18889 * LinkLabel.cs: Trigger a recalc of our label dimensions when
18892 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18894 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
18895 for determining width and height (image might not be assigned if
18896 we're drawing an imagelist)
18898 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18900 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
18901 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
18903 * Theme.cs: No longer returns hardcoded menu height, instead calls
18905 * Form.cs (OnLoad): Scaling happens before triggering Load events
18908 2006-05-01 Mike Kestner <mkestner@novell.com>
18910 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
18912 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
18914 * TextBoxBase.cs: Removed Fixme
18915 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
18917 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
18920 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
18921 the rectangle relative to the parent, considering borders. We
18922 don't really want that.
18923 - ScrollWindow: Fixed warning to be more understandable
18924 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
18925 scrollbars and scroll only the visible area
18926 * RichTextBox.cs: Removed debug output
18928 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18930 * NumericUpDown.cs (Text): Just use base
18931 * UpDownBase.cs: Ensure txtView is created before using it
18933 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18935 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
18936 casting to IntPtr to avoid 64bit overflow errors
18938 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18941 - AllowDrop: Don't force handle creation.
18942 - CreateHandle: Added call to tell driver if we're allowed to drop
18944 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
18946 * FileDialog.cs: Remember the last directory not only for the
18947 current instance but also for new FileDialog instances.
18949 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18951 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
18952 broke sending async messages
18954 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18957 - ScrollWindow: Fixed method. We finally generate expose events again
18958 for scrolled areas. This was causing 'garbage' when scrolling
18959 textbox and other controls that used ScrollWindow
18960 - Switched from using the regular queue for paint events to the MS
18961 model of 'generating' paint events when the queue is empty.
18962 We use the new XQueueEvent.Paint subclass to store which windows
18964 - AddExpose now takes the x/y/width/height of the exposed area
18965 and inserts the window into the paint queue if not already there
18966 - InvalidateWholeWindow: Switched to use new AddExpose method
18967 - UpdateMessageQueue: Added which queue to monitor for paint events
18968 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
18969 the unlikely case nothing above handles it. We reset the expose
18970 pending states to get them off the queue.
18971 - GetMessage: Now pulls a paint event if no other events are in the
18973 - Invalidate: Switched to new AddExpose method
18974 - PeekMessage: Updated to understand pending paint events
18975 - UpdateWindow: Fixed logic bug. We were only updating if the window
18976 didn't need updating. Also switched to sending WM_PAINT directly,
18978 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
18979 and random access Remove(). The random access is needed to handle
18980 UpdateWindow() where a WM_PAINT is sent directly without accessing
18982 * ScrollBar.cs: Added Update() calls to cause immediate updates to
18983 allow for better feedback when scrolling. Scrollbars are small and
18984 the immediate update should make it 'feel' more responsive without
18985 slowing things down. ScrollBar still needs it's invaliate logic
18986 updated to not always invalidate the whole bar on certain changes.
18988 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18991 (BackColor): if the control does not support a transparent background,
18992 return the default backcolor when the parent backcolor is transparent.
18994 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
18996 * Application.cs: Updated to new StartLoop/GetMessage API
18997 * RichTextBox.cs: Provide some output on RTF parsing errors
18998 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
18999 new queue_id argument to GetMessage and PeekMessage to allow faster
19000 handling of per-thread queues in drivers.
19001 * Hwnd.cs: Added Queue tracking and property
19002 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
19003 * XEventQueue.cs: Added thread trackingA
19004 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
19006 - Implemented new per-thread queue
19007 - GetMessage: Fixed return/break behaviour on several cases. We were
19008 returning stale messages in some cases, instead of just processing
19011 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
19013 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
19015 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
19017 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
19018 fixed off-by-one comparisons between Width/Height and Right/Bottom.
19020 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
19022 * PropertyGridView.cs: Fix drop down width.
19024 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
19026 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
19027 a mess in DrawToolBar, so I removed one of them.
19029 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
19031 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
19032 needed (clip). Otherwise we get artifacts.
19034 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19036 * FixedSizeTextBox.cs: Added constructor to allow specifying which
19038 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
19039 and switched FixedSizeTextBox to only be fixed vertical (#78116)
19040 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
19041 if it matches the scale base font (avoids unneeded scaling)
19043 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
19045 * X11DesktopColors.cs: One gtk_init_check should be enough
19047 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19049 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
19052 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19055 - Generate OnTextChanged for Backspace even if we're only deleting
19056 the current selection
19057 - When setting the Text property, only select all text if the
19058 control does not have focus when it is being set. Otherwise
19059 just place the cursor at the beginning of the control
19061 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
19063 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
19064 Added a little helper to draw PropertyGrid ToolBar with a different
19065 border and a different BackColor.
19066 * PropertyGrid.cs: Some background parts didn't get painted with the
19067 correct background color. Added a class that helps us to draw the
19068 correct border for PropertyGridView and a class that helps us to
19069 draw ToolBars with a different backcolor
19070 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
19072 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
19074 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
19075 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
19077 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19079 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
19080 into the palette entries. Also, since we're working on a copy
19081 we needed to copy the palette back onto the bitmap.
19082 * Cursor.cs: Same fix as XplatUIWin32.cs.
19084 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19086 * ImageListStreamer.cs: Need to read the var (or we're off)
19088 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19090 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
19091 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
19092 TextBoxBase.cs: Unused var fixes
19093 * AxHost.cs: Small 2.0 fix
19094 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
19095 as it seems that is what at least Metacity expects. This will make
19096 icons show up on 64bit platforms. We still have some 64bit size
19097 issues, though, since the startup app window size still won't match.
19099 2006-04-25 Mike Kestner <mkestner@novell.com>
19101 * *.cs: cleanup newly reported exception var unused warnings.
19103 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19105 * ThemeWin32Classic.cs: Button image alignment now matches exactly
19108 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19110 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
19111 image. The image position is always the same, no matter if the
19112 button is pressed or not.
19114 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19116 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
19117 selection and set the correct filename for SaveFileDialog.
19118 Patch by Emery Conrad.
19120 2006-04-24 Mike Kestner <mkestner@novell.com>
19122 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
19123 check for item.X outside the ClientRect instead of item.Y. Fixes
19126 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19128 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
19129 trust that value blindly and do some sanity check. Fixes bug #77814.
19131 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19133 * ImageListStreamer.cs: save the mask as a 1bpp image.
19135 2006-04-21 Mike Kestner <mkestner@novell.com>
19137 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
19138 pass Checked and Indeterminate to the Theme Engine. Improve
19139 encapsulation with ListBox.
19140 * ListBox.cs: Keep a StringFormat instead of calculating it every item
19141 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
19142 nested types. Move all CheckState functionality to CheckedListBox.
19143 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
19144 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
19145 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
19146 single base list. Fix scrollbar sizing and placement to mirror MS.
19147 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
19149 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
19150 for CheckedListBox by using new DrawItemState info. Center the
19151 checkboxes on the items. Use new StringFormat property.
19153 2006-04-18 Jackson Harper <jackson@ximian.com>
19155 * Form.cs: MdiChildren don't do default locations the same way as
19156 regular forms. This prevents a crash when trying to position the
19159 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
19161 * PropertyGridTextBox.cs: Formatting, copyright
19162 * PropertiesTab.cs: Formatting
19163 * PropertyGrid.cs: Formatting
19164 * PropertyGridView.cs: Formatting, fix drop down, enabled double
19165 click toggling of values
19167 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
19169 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
19170 * Control.cs (.ctor): verify_thread_handle is static, don't reset
19171 every time a control is created
19172 * Application.cs: Removed obsolete EnableRTLMirroring method
19174 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
19176 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
19177 SelectedIndex to -1. Fixes bug #78121.
19179 2006-04-17 Jackson Harper <jackson@ximian.com>
19181 * Binding.cs: Handle null values for Current and BindingContext.
19182 This occurs when binding is a little delayed.
19183 * CurrencyManager.cs: return null for Current when there are no
19185 - Hookup to the listchanged event on the DataView and update
19186 bindings when the list is changed. This fixes late binding of
19189 2006-04-17 Jackson Harper <jackson@ximian.com>
19192 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
19195 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
19197 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
19199 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
19200 with the correct ButtonState
19202 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
19204 * XplatUIX11.cs: Improved distinguishing between window types to
19205 tell the WM a type closer to what the app wants (Fixes #78107)
19207 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
19209 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
19212 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
19214 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
19215 drawing code to reflect the size grip changes
19217 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19219 * ImageListStreamer.cs: fix handling of the mask that follows the main
19220 bitmap when deserializing and serialize it properly. The generated mask
19221 should better be a 1bpp image, but I'll do that later.
19223 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
19225 * FileDialog.cs: Show something in the DirComboBox on *nix if the
19226 path doesn't fit into some of our Current.Places
19228 2006-04-13 Jackson Harper <jackson@ximian.com>
19230 * ComboBox.cs: Use borders instead of drawing our own decorations,
19231 try to obey correct rules for heights.
19234 * ThemeClearLooks.cs:
19235 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
19236 this is now handled by borders.
19237 - Remove unused DrawListBoxDecorationSize method.
19239 2006-04-13 Mike Kestner <mkestner@novell.com>
19241 * MenuAPI.cs: null guarding for the disbled click check fixes crash
19244 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
19246 * ThemeWin32Classic.cs:
19247 - Fixed CPDrawStringDisabled
19248 - Corrected drawing of disabled menu items
19249 - Fixed drawing of disabled radio buttons (bug #78095)
19250 - Draw check in a disabled CheckBox with color ControlDark
19252 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19254 * Form.cs: Use the provided width when calculating the menu size;
19255 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
19256 and ClientSize.Width won't be updated yet
19257 * Application.cs: Use Visible instead of Show() to make form visible,
19258 this way we create the handle later and menusize is considered
19260 2006-04-12 Mike Kestner <mkestner@novell.com>
19262 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
19265 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19267 * TextBox.cs: Implemented context menu
19269 2006-04-12 Mike Kestner <mkestner@novell.com>
19271 * ListView.cs: implement box selection. fixes #77838.
19272 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
19274 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19276 * XplatUIX11.cs: Added setting of window type when transient window
19277 is created (metacity would move it otherwise)
19278 * X11Structs.cs: Added WINDOW_TYPE atoms
19279 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
19280 background (the control is Opaque but still wants transparent
19283 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19285 * Control.cs: Added OnPaintBackgroundInternal to allow controls
19286 that set Opaque but don't mean it (like all ButtonBase-derived
19287 controls) to still draw their background
19288 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
19291 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19293 * Control.cs (PaintControlBackground): Set the graphics object
19294 on our PaintEvent to null to prevent it from being disposed
19295 when the PaintEvent gets disposed
19297 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
19299 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
19300 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
19302 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19305 - Added transparency check to BackColor property. Transparent
19306 backgrounds are only allowed if the control styles permit it
19307 - Added recursive painting of parent control background and
19308 foreground if a control with a transparent backcolor is drawn
19309 (Thanks to Tim Ringenback for providing his 'hack' as a base
19310 for this patch) Fixes #77985 and #78026.
19311 - Added Opaque style check before calling OnPaintBackground, no
19312 need to draw the background if the control is opaque
19313 - Removed ControlAccessibleObject owner variable (inherited from
19314 base, no need to define again)
19315 - Added some documentation links explaining the drawing events
19318 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19320 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
19321 that the affected control is the located at the left border of our
19322 parent (Fixes #77936)
19324 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19326 * TextBoxBase.cs: When rendering disabled or readonly controls,
19327 draw the background with 'Control' instead of 'Window' color as
19328 long as the user hasn't specifically set a color
19330 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19332 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
19333 since that won't be updated if the user types text (only if it's
19334 programatically set)
19336 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19338 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
19339 layout changes do to app-triggered resizes will have the proper
19340 display rectangle for layout
19342 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
19344 * ThemeWin32Classic.cs:
19345 - Make use of the SystemBrushes and SystemPens wherever possible
19346 - Corrected some highlight colors
19347 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
19349 * Theme.cs: Added Empty field to CPColor struct
19351 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19353 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
19354 is displayed when calculating the display rectangle. Thanks to Mike
19355 for teaching me the err of my ways.
19357 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
19359 * ScrollableControl.cs:
19360 - Rewrote DisplayRectangle code, now returning the proper x/y coords
19361 (instead of 0,0) and we now return the real width/height instead of
19362 just the clientrectangle, adjusted for padding. The rectangle is
19363 now cached and created by the new CalculateDisplayRectangle method.
19364 - Created new CalculateDisplayRectange method, which basically does
19365 what get_DisplayRectangle() did originally, but now using the
19366 right edge instead of DisplayRectangle to determine the size of
19368 - get_Canvas(): Fixed it to properly calculate canvas for
19369 right/bottom controls which seem to be placed to the right/bottom
19370 of any controls that have a fixed location
19371 - Removed TODO that's taken care of
19372 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
19373 and SetDisplayRectLocation according to new MSDN2 docs
19374 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19375 event when that is called, this is added for compatibility
19376 - ScrollControlIntoView(): Implemented.
19377 - Switched scrollbars to be implicit, they shouldn't be selectable
19378 * ContainerControl: Now that ScrollControlIntoView is implemented, we
19379 call it when the active control is set/changed
19380 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
19381 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
19382 implicit_control variable (used for native Win32 message generation)
19383 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
19384 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
19385 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
19386 * XplatUIStructs.cs: Added ScrollBarCommands enum
19388 2006-04-10 Jackson Harper <jackson@ximian.com>
19391 * CheckedListBox.cs:
19398 * PrintPreviewControl.cs:
19404 * UpDownBase.cs: Fixup base event overrides.
19406 2006-04-06 Mike Kestner <mkestner@novell.com>
19408 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
19409 all user-initiated value changes to min <= value <= max-thumbsz+1.
19410 (set_Value): check for vert/horiz when calculating new thumb position.
19411 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
19413 (OnMouseMoveSB): refactor the thumb dragging code and refine
19414 invalidation logic to reduce flicker.
19415 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
19416 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
19417 (UpdateThumbPosition): small code readability cleanup
19419 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
19421 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
19424 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
19426 * ThemeNice.cs: Use a better graphics effect when a button is pressed
19428 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
19430 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
19431 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
19432 This dramatically reduces the number of Pen.Dispose calls.
19433 Where possible call ResPool methods only once instead of calling it
19434 over and over again (for example for the same color).
19436 2006-04-06 Mike Kestner <mkestner@novell.com>
19438 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
19439 Also remove an unused private field on the collection. Fixes #77972.
19441 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
19443 * ThemeNice.cs: Added ToolBar drawing code
19445 2006-04-06 Mike Kestner <mkestner@novell.com>
19447 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
19448 I'm assuming that means we need to look up the toplevel for the
19449 provided control. Fixes the crash trace in #77911 but exposes another
19450 crash in some strange reflection usage in NDocGui.
19452 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
19454 * ThemeNice.cs: Gave it a little silver touch and added Images
19456 * FontDialog.cs: FontDialog is not resizable
19457 * FileDialg.cs: Added SizeGripStyle.Show
19459 2006-04-05 Jackson Harper <jackson@ximian.com>
19461 * KeyboardLayouts.cs: Remove warning.
19463 2006-04-05 Jackson Harper <jackson@ximian.com>
19465 * Control.cs: Enable OnPaintInternal so we can use it for drawing
19466 all of our controls instead of Paint +=.
19481 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
19482 use OnPaintInternal. Remove Width/Height and Visible checks in
19483 paint handler, this is done at a higher level now.
19484 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
19485 * PaintEventArgs.cs: Add a handled flag so controls that don't
19486 want anymore painting after OnPaintInternal can make sure OnPaint
19489 2006-04-05 Mike Kestner <mkestner@novell.com>
19491 * Form.cs: fix the menu WndProc hacks to respect the native enabled
19492 state of the form, so that we don't process events when Modal dialogs
19493 are up. Fixes #77922.
19495 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
19497 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
19500 2006-04-05 Mike Kestner <mkestner@novell.com>
19502 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
19504 2006-04-05 Mike Kestner <mkestner@novell.com>
19506 * ListView.cs (HeaderMouseMove): null guarding for the over column
19507 when setting up the drag_to_index. Fixes #78015.
19509 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
19511 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
19512 in the taskbar. Transient windows seem to accomplish that.
19514 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
19517 - Re-enabled CreateParams.X/Y code for FormStartPosition
19518 - Added code for manual placement when creating the Control
19519 - Incomplete patch to treat MDI forms differently when
19520 setting the ClientSizeCore. (Still need to figure out handling
19523 - When we're explicitly setting the X/Y position of a non-Child
19524 window, let the WM know. Metacity really wants this.
19526 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19528 * ThemeNice.cs: Added CPDrawButton
19530 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19532 * ThemeNice.cs: Changed the color for focused buttons and activated
19533 the arrows for small scroll buttons.
19535 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19537 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
19538 anymore. Changed some method modifiers to protected (virtual)
19539 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
19541 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
19542 Updated drawing of menus, buttons and progressbars; added
19545 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19547 * ImageListStreamer.cs: implemented serialization/deserialization
19550 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
19552 * ThemeWin32Classic.cs:
19553 - Removed all the DrawFrameControl stuff; CPDrawButton,
19554 CPDrawCheckBox and CPDrawRadioButton are now handled directly
19556 - Updated and corrected the drawing code of CPDrawButton,
19557 CPDrawCheckBox and CPDrawRadioButton to better match ms
19558 - Updated theme checkbox and radiobutton code to use the CP*
19561 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19563 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
19566 2006-03-31 Jackson Harper <jackson@ximian.com>
19568 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
19570 * UpDownBase.cs: Don't CreateGraphics manually, use a
19571 Refresh. Ideally we would invalidate the correct areas here.
19573 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19576 - We now track the mapping state of windows. If a window (or
19577 one of it's parents) is not mapped we no longer permit
19578 WM_PAINT messages to be generated since we'd otherwise get
19579 lots of BadMatch X errors. Jackson did all the work figuring
19581 - Destroying the caret if the window it's contained in is
19582 destroyed. Can't use regular DestroyCaret method since it
19583 might fall into a drawing function (trying to remove the
19584 caret) and with that generate new BadMatch errors. Again,
19585 Jackson tracked this down.
19586 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
19587 make sure we send the messages to all windows. (The old code
19588 would send the WM_DESTROY to the window, and then all child
19589 windows would be 'gone' because the WM_DESTROY handle lookup
19590 would no longer find the destroyed window)
19591 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
19592 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
19594 2006-03-31 Jackson Harper <jackson@ximian.com>
19596 * ScrollableControl.cs: Dont recalc if we are not visible.
19598 2006-03-31 Mike Kestner <mkestner@novell.com>
19600 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
19601 the visibility branch.
19603 2006-03-31 Jackson Harper <jackson@ximian.com>
19605 * ScrollBar.cs: Cap values when incrementing/decrementing.
19607 2006-03-31 Mike Kestner <mkestner@novell.com>
19609 * MenuAPI.cs: setup menu.tracker for popup/context menus.
19610 * ToolTip.cs: guard against timer expirations with no active control.
19611 Not sure why it happened.
19613 2006-03-31 Mike Kestner <mkestner@novell.com>
19615 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
19617 * ToolTip.cs: Position the tooltip based on where the cursor is at
19618 popup time, not at MouseEnter time. Add a Down state so that we don't
19619 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
19620 positioning offset. Lookup DisplaySize at positioning time, since it
19621 can theoretically change during invocation.
19622 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
19623 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
19625 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19627 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
19628 Fixes behaviour when the Text property of the box is String.Empty
19630 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19632 * XplatUIX11.cs: Only send mouseleave for our client windows, not
19633 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
19636 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19638 * FileDialog.cs: Visual enhancement for the popup buttons in
19641 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19643 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
19646 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
19648 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
19649 highlighted menu items to match ms
19651 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
19653 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
19655 2006-03-30 Mike Kestner <mkestner@novell.com>
19657 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
19658 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
19659 go active to account for HotLight to Selected transition.
19660 * MenuItem.cs: add internal Selected prop. Fill out the Status
19661 property by calculating it from item info. Add HotLight,
19662 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
19664 2006-03-30 Mike Kestner <mkestner@novell.com>
19666 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
19668 2006-03-29 Jackson Harper <jackson@ximian.com>
19670 * Form.cs: Implement TODO.
19672 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
19674 * PrintPreviewDialog.cs: Implemented missing methods and events; still
19675 missing proper dialog setup in the constructor
19677 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
19679 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
19681 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
19682 - Fixed ResetBindings and removed TODO
19683 - Added check for cross-thread calls to get_Handle()
19684 - Added Marshaller attribute for set_Font to satisfy class status
19685 * FontDialog.cs: Removed TODOs that seemed implemented
19686 * UpDownBase.cs: Removed unneeded TODO and Fixme
19687 * MessageBox.cs: Implemented support for Default button and removed TODO
19688 * FileDialog.cs: Removed obsolete TODO
19689 * DomainUpDown.cs: Removed obsolete TODO
19690 * ButtonBase.cs: Removed obsolete TODO
19691 * XplatUIWin32.cs: Removed obsolete TODO
19693 - Removed obsolete TODO
19694 - Calling CheckAcceptButton when the acceptbutton is changed to allow
19695 internal status updates
19696 - Making sure the active control is selected when the control is created
19697 * CurrencyManager.cs: Removed obsolete TODO
19699 2006-03-29 Mike Kestner <mkestner@novell.com>
19701 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
19702 of PrintPreviewDialog and RichTextBox.
19704 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
19706 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
19707 DarkDark, Light and LightLight colors for a specific color
19708 * ThemeWin32Classic.cs:
19709 - Use Button drawing code to draw RadioButtons and CheckBoxes with
19710 Appearance = Button
19711 - Make use of the new ResPool helper CPColor
19712 - Draw ProgressBar and StatusBar with correct 3D borders
19714 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
19716 * ColorDialog.cs: Return selected color. Fixes bug #77940.
19718 2006-03-28 Mike Kestner <mkestner@novell.com>
19720 * ListView.cs: fix Icon layout to plan for scrollbar widths when
19721 calculating col/row counts.
19723 2006-03-28 Mike Kestner <mkestner@novell.com>
19729 switch to explicit interface method implementation for some methods
19730 corcompare identifies as inconsistent with MS.
19732 2006-03-28 Mike Kestner <mkestner@novell.com>
19736 add a few missing methods from the class status output.
19738 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
19740 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
19743 2006-03-28 Mike Kestner <mkestner@novell.com>
19745 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
19747 2006-03-27 Mike Kestner <mkestner@novell.com>
19749 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
19750 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
19752 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
19754 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
19756 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19758 * ThemeWin32Classic.cs:
19759 - GroupBox: Inserted a little gap between the text and the lines
19761 - Made the code in CPDrawBorder3D more readable
19762 - Corrected the drawing location of the up and down arrows in
19765 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19767 * ControlPaint.cs: Corrected line widths in DrawBorder for
19768 ButtonBorderStyle Inset and Outset
19770 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19772 * ThemeWin32Classic.cs:
19773 - Rewrote the totally broken CPDrawBorder3D method. That was
19774 one of the main problems for the terrific ThemeWin32Classic
19776 - Updated and corrected Button drawing
19777 - Correct the dimensions of the SizeGrip to match ms ones
19778 - Removed a small drawing glitch in DrawComboBoxEditDecorations
19779 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
19780 Border3DStyle.Sunken to match ms.
19782 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19784 * ThemeWin32Classic.cs: First small part of the "de-uglify
19785 ThemeWin32Classic" effort, SizeGrip
19787 2006-03-24 Jackson Harper <jackson@ximian.com>
19789 * XplatUIX11.cs: Give a max idle time of one second, this matches
19790 MS and forces an Idle event every second when there are no other
19791 events in the queue.
19793 2006-03-24 Mike Kestner <mkestner@novell.com>
19795 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
19796 * ListView.Item.cs: fix layout issues with null image lists and images
19797 smaller than checkbox size.
19798 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
19799 mode like MS does. It's weird, but consistent. ;-)
19802 2006-03-24 Mike Kestner <mkestner@novell.com>
19804 * ListView.cs: Scroll wheel support for the item control. Fixes
19807 2006-03-23 Jackson Harper <jackson@ximian.com>
19809 * ScrollableControl.cs: Special case negative sized areas, not
19811 * MonthCalendar.cs: Save the rect of the clicked date so we can
19812 use it for invalidation.
19813 - Try to cut down on the number of invalidates
19814 - Invalidate the rect the mouse is over and was over when moving
19815 the mouse, so we get the focus box following the cursor.
19817 2006-03-23 Mike Kestner <mkestner@novell.com>
19819 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
19820 focus rectangle drawing. Fixes #77835.
19822 2006-03-23 Mike Kestner <mkestner@novell.com>
19824 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
19825 the if and else if and reverting back to the original == check on the
19828 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
19830 * FontDialog.cs: Update the example panel if the selected index of
19831 the fontListBox changes.
19833 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
19835 * FileDialog.cs: Make FileDialog remember which directory it was in
19836 last in the same execution.
19838 2006-03-22 Mike Kestner <mkestner@novell.com>
19840 * FileDialog.cs: make the DropDownMenu on the toolbar display
19841 RadioChecks since they are mutually exclusive and that's what MS does.
19843 2006-03-22 Mike Kestner <mkestner@novell.com>
19845 * Theme.cs: add Color param to CPDrawMenuGlyph.
19846 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
19847 checks and radio marks and arrows are visible on highlighted items.
19848 * ControlPaint.cs: update to use new Theme signature.
19850 2006-03-22 Mike Kestner <mkestner@novell.com>
19852 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
19853 is active. Fixes #77870.
19855 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
19857 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
19858 to be focused/selected after startup
19860 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
19863 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
19864 CustomColors and ShowHelp properties
19865 - Some internal rewrites to get better results when using the
19868 2006-03-22 Mike Kestner <mkestner@novell.com>
19870 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
19871 HoverSelection. Fixes #77836.
19873 2006-03-22 Mike Kestner <mkestner@novell.com>
19875 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
19876 ToggleButtons. (De)Sensitize the Back button around a stack count of
19877 1, not 0. Update ButtonSize based on a pixel count of the win32
19878 control. Adjust the toolbar size/location for new button size.
19880 2006-03-22 Jackson Harper <jackson@ximian.com>
19882 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
19884 * ScrollBar.cs: When doing increments and decrements we need to
19885 set the Value property so that ValueChanged gets raised. A
19886 possible optimization here would be to make an internal SetValue
19887 that doesn't invalidate immediately.
19888 * ToolTip.cs: Tooltips get added to their container (when
19889 supplied) so they get disposed when the container is disposed.
19890 - Don't create tooltips for String.Empty. This prevents all these
19891 little 2-3 pixel windows from showing up when running nunit-gui
19892 and driving me mad.
19893 * Form.cs: Don't set topmost when setting the owner if the handles
19894 haven't been created yet. The topmost set will happen when the
19895 handles are created.
19897 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
19900 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
19901 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
19902 visible (to allow them to recalculate their sizes)
19904 2006-03-21 Mike Kestner <mkestner@novell.com>
19906 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
19907 methods. Removed a ton of redundant code. Still not really happy with
19908 the border rendering, but I think that's mainly because of the
19909 ControlDarkDark being black instead of a dark grey. Depending on how
19910 close we want to be, we might want to revisit those color choices.
19911 Among the new features added during the refactor were DropDownArrow
19912 pressed rendering, Disabled image rendering. Proper flat appearance
19913 boundary rendering. Removed the Divider and Wrapping dividers since I
19914 can't figure out any combination of themes and conditions to make the
19915 MS control draw a horizontal line on a toolbar despite what the
19916 Divider property docs indicate.
19917 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
19918 conditions and incorrect layout. Updated to coding standard.
19919 * ToolBarButton.cs: refactored layout and positioning code from
19920 ToolBar to here. Invalidate wherever possible instead of forcing
19921 redraws of the whole toolbar.
19922 (Known remaining issues: explicit ButtonSize smaller than provided
19925 2006-03-21 Mike Kestner <mkestner@novell.com>
19927 * ContextMenu.cs (Show): use the position parameter instead of just
19928 showing at the MousePosition.
19930 2006-03-21 Jackson Harper <jackson@ximian.com>
19932 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
19933 control handle this.
19934 * TreeNodeCollection.cs: If we are clearing the root node we need
19935 to reset top_node so calcs can still happen.
19936 * ThemeWin32Classic.cs: This is a Flags so we need to check
19939 2006-03-21 Jackson Harper <jackson@ximian.com>
19941 * DataGrid.cs: Create columns when the binding context has been
19943 * X11Structs.cs: Keysyms are uints.
19944 - Add size to fix build.
19946 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
19948 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
19950 - Added ResetMouseHover method to allow controls to retrigger
19951 hovering if they need it more than once
19952 - Implemented MouseHoverTime and MouseHoverSize properties
19953 * Timer.cs: Start() must reset the interval
19954 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
19957 2006-03-21 Jackson Harper <jackson@ximian.com>
19959 * X11Keyboard.cs: improved layout detection. Move the nonchar
19960 tables into this file.
19961 * KeyboardLayouts.cs: Move the tables into resource files.
19963 2006-03-21 Mike Kestner <mkestner@novell.com>
19965 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
19967 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
19969 * Mime.cs: Various speed optimizations. Looking up mime types
19970 is now 2 times faster than before
19972 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
19974 * CreateParams.cs: Added internal menu field
19976 - Switched call order for UpdateBounds; now we always call
19977 the one that also takes ClientSize, and we're calculating the
19978 client size via driver method in the others. The previous
19979 method of tracking client size by difference wasn't working
19980 for forms where even the starting client size wouldn't match
19981 the overall form size (due to borders) (Part of fix for #77729)
19982 - CreateParams(): Do not use parent.Handle unless the handle is
19983 already created. Causes havoc with Nexxia and throws off our
19984 creation of controls
19986 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
19987 - Switched handling of ConfigureNotify over to new PerformNCCalc
19988 method (consolidates code)
19989 - Changed RequestNCRecalc to use new PerformNCCalc method
19990 - Added calls to RequestNCRecalc when menus and borders are changed
19991 to allow app to set NC size. (Part of fix for #77729) This matches
19992 when MS send a WM_NCRECALC on Win32 windows.
19993 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
19994 (Part of fix for #77729). This matches what MS does, they also
19995 send that message when the form is made visible.
19996 - XException.GetMessage: Improved usability of X errors by including
19997 a translation of the window into Hwnd and Control class
19998 - Improved debug info for window creation, reparenting and destruction
19999 - Created helper method WindowIsMapped() [Currently not used]
20000 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
20002 - CreateParams: Now setting our menu on the new internal menu field
20003 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
20004 avoid calculating the same property twice
20006 - Improved usability of ToString() for debugging purposes
20007 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
20008 determine the height of the menu, instead of just the font. This
20009 required to also create a graphics context and to keep a bmp
20010 around (for performance reasons)
20012 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
20014 * MenuAPI.cs: Added OnMouseUp method
20016 - Now remembering the requested client size, avoids size errors
20017 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
20018 instead of base if the menu is active. This is required due to
20019 control now capturing and releasing on down/up and it would
20020 prematurely release our menu capture
20022 2006-03-17 Jackson Harper <jackson@ximian.com>
20024 * KeyboardLayouts.cs: Add the czech layouts.
20026 2006-03-16 Jackson Harper <jackson@ximian.com>
20028 * Control.cs: Use the viewport space when sizing not the controls
20029 client size, so things like ScrollableControl that effect the
20030 viewport size (when scrollbars are added) are computed correctly.
20031 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
20033 - Handle creating BindingManagers for null data sources.
20034 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
20035 source, otherwise when rows are added they are added to the 'fake'
20036 datasource and we will crash when trying to set the position in
20038 - Use Implicit scrollbars on the datagrid so they arent
20041 2006-03-16 Jackson Harper <jackson@ximian.com>
20044 * InternalWindowManager.cs:
20045 * MdiWindowManager.cs:
20046 * X11Keyboard.cs: I really want Mike to love me again (fix
20047 compiler warnings).
20049 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
20052 - OnMouseDown: Switch to editing mode when clicking on the cell
20053 even if we're clicking on the cell that's currently
20055 - ProcessGridKey: Left/Right now wrap like MS.Net does
20056 - ProcessGridKey: Tab now knows to add a new row when tab is
20057 pressed in the cell of the last column of the
20059 - ProcessGridKey: Enter now adds another row if pressed in the last
20060 row and selectes the new row, same column cell
20061 - ProcessGridKey: Home/End navigate columns, not rows, like
20062 originally implemented
20063 - Broke ProcessKeyPreview code out into an extra Internal method
20064 so it can be called from the edit code
20065 * DataGridTextBox.cs (ProcessKeyMessage):
20066 - Switched to accept Tab keypresses
20067 - Added F2 handling to allow jumping to the end of the edited cell
20068 - Added logic to allow moving caret left/right inside edited cell
20069 and making the edited cell jump when the caret hits cell borders
20070 - Tab and Enter are now passed to the datagrid after being handled
20072 - Removed capture code now that Control handles it
20073 - set_SelectionStart now ensures caret is visible
20075 2006-03-16 Jackson Harper <jackson@ximian.com>
20077 * TrackBar.cs: Debackwards the increment/decrement for handling
20078 mouse clicks on the bar with vertical trackbars.
20079 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
20080 bottom to match MS.
20082 2006-03-16 Mike Kestner <mkestner@novell.com>
20084 * ListView.cs: make shift/ctrl keyboard and mouse selection
20085 consistent with the MS control. Fix a bug in
20086 SelectedListViewItemCollection.Clear that was pissing me off for the
20087 better part of a day because the collection was being altered
20088 underneath us as we walked the list.
20090 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
20092 * Control.cs: Not sure how we could miss this so long, but it seems
20093 that MS.Net has Capture set all the way from before calling
20094 OnMouseDown through sending the mouse events until after
20095 OnMouseUp. This will fix DataGrid's selection being set to end
20096 at the location of the MouseUp.
20098 2006-03-15 Jackson Harper <jackson@ximian.com>
20100 * BindingContext.cs: Check the binding after its added so that it
20101 can initialize the binding managers and hookup to events.
20102 * Binding.cs: Data members seem to sometimes include rows/cols in
20103 the format Row.Column we now take this into account.
20104 - Hookup to the position changed event so we can update the
20105 control when the position has changed in the data set.
20106 * CurrencyManager.cs: Take into account the row/col naming
20107 convention when creating dataset tables.
20108 * BindingContext.cs: Using a newer better way of storing
20109 datasource/datamember pairs. Hopefully this better matches MS for
20110 looking up binding managers.
20113 2006-03-15 Jackson Harper <jackson@ximian.com>
20115 * BindingContext.cs: The currency manager needs the data member
20116 name, if the member is a data set we use the name to find the
20118 * CurrencyManager.cs: When creating the list prefer an IList over
20120 - Attempt to create a DataTable from a DataSet (TODO: might need
20121 some better error checking here, although MS doesn't seem to have much)
20122 - If we have a DataTable create a view and use it as our list.
20124 2006-03-15 Mike Kestner <mkestner@novell.com>
20126 * ListView.cs: keep a matrix of the icon mode layout to facilitate
20127 keyboard navigation. Support Up/Down/Left/Right selection correctly
20128 for all 4 View modes.
20129 * ListViewItem.cs: add internal row/col fields for icon layouts.
20131 2006-03-15 Jackson Harper <jackson@ximian.com>
20133 * TabControl.cs: Redraw the tabs when we resize so their newly
20134 calculated sizes are drawn on screen.
20135 * X11Keyboard.cs: Begginnings of XIM support. We also now support
20136 composite characters.
20137 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
20138 - filter events so that composite characters can be created
20140 * X11Structs.cs: Add XIMProperties enum.
20142 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20144 * Control.cs (BringToFront, SendToBack): Don't use window or handle
20145 unless it's created
20147 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20149 * Control.cs (PerformLayout): We don't need to consider visiblity
20150 for anchoring, only for docking. This fixes 'whacky' alignment
20151 in listbox and other controls that use implicit scrollbars after
20152 the previous PerformLayout patch
20153 * ListBox.cs: Switched to use implicit scrollbars
20155 2006-03-14 Mike Kestner <mkestner@novell.com>
20159 - chain up the "new event" overrides to base and use
20160 OnEvent to raise them. Part of fix for bug #76509.
20162 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
20164 * FileDialog.cs: Do not select an item in the parent directory
20167 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20169 * Control.cs (PerformLayout): It would seem that we considered
20170 invisible windows for our layout. Not quite the right thing
20171 to do. Now we don't any longer, thereby fixing bug #76889.
20173 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20175 * Control.cs (CanFocus): I goofed. A control can have focus
20176 even though it's not selectable. Made it match MS docs.
20178 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20180 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
20181 center by default (fixes #76895)
20182 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
20183 all uses of Border3DSides.All with the explicit ORd together
20184 Left|Right|Top|Bottom because I assume that nobody was aware
20185 that All also implies a center fill. Most places I checked had
20186 a fill right above.
20187 * ProgressBarStyle.cs: Added
20189 2006-03-13 Mike Kestner <mkestner@novell.com>
20191 * ListView.cs: fix breakage in drag shadow header positioning
20192 from Peter's csc compilation fix.
20194 2006-03-13 Mike Kestner <mkestner@novell.com>
20196 * ListView.cs: fix NRE produced by backspacing twice in a focused
20199 2006-03-13 Mike Kestner <mkestner@novell.com>
20201 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
20203 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20205 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
20207 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
20208 the allowed size before making programmatic size changes
20210 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20212 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
20213 set, metacity is broken and will still use the emty sizes in
20214 the struct. (Fix for #77089)
20216 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20218 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
20219 WindowExStyles and marked both enums as Flags
20220 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
20221 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
20222 to match WindowStyles split
20224 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
20225 - Updated to match WindowStyles split
20227 - Fixed FosterParent creation, was using ExStyle on the Style field
20228 (This should help with Popup focus issues)
20229 - Updated to match WindowStyles split
20231 2006-03-13 Jackson Harper <jackson@ximian.com>
20233 * MdiWindowManager.cs: Use the system menu height. Fixes some
20234 strange sizing issues.
20236 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20238 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
20240 - Scroll to caret after inserting text (#77672)
20241 - Make scroll range one pixel higher, fixes off-by-one error (and
20242 makes underlines visible on the last line)
20244 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20246 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
20247 the keyboard state from being stuck with keys in 'pressed' state when
20248 focus is switched away via keyboard
20249 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
20250 reset the keyboard if no X11 KeyUp events are expected to come
20251 * X11Structs.cs: Switched type of Visible to bool to match driver
20253 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20256 - Switched caret to be just 1 pixel wide, matches MS and looks less
20258 - Moved caret display 1 pixel down from the top of the control
20260 - InsertCharAtCharet: Update the selection start if moving the caret
20261 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
20262 - No longer always creating the caret when the caret methods are
20263 called. Only the actual ShowCaret/HideCaret will do that now
20264 - Only setting caret visible if the owner control has focus
20265 - UpdateView: Added invalidation-shortcut logic for center and right
20266 aligned text. Previously we'd update all according to the left
20267 logic which caused drawing errors. Also fixed height of invalidated
20268 areas, now properly invalidating the whole area (was off-by-one)
20269 - owner_HandleCreated: Always generate the document when the
20270 handle is created; this ensures that
20272 - Fixed situation where caret would disappear under the right
20273 window border, also improved scrolling behaviour on left-
20275 - Fixed right-aligned textboxes to have a border to the
20276 right instead of the caret being under the right border
20278 - Switched from 'nested' to simple visible/not visible tracking
20279 for caret (part of fix for #77671)
20280 - No longer passing through translated FocusIn/FocusOut messages
20281 since we were notifying too often and the wrong windows. Instead
20282 we just notify our focussed window of receiving or loosing focus
20283 * XplatUIWin32.cs: Switched from 'nested' show/hide
20284 counting for caret to simple visible yes/no behaviour (part of
20287 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
20289 * Mime.cs: Remove debug code...
20291 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
20293 * MimeGenerated.cs: Removed
20294 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
20295 and subclasses) from /usr/(local/)share/mime and
20296 $HOME/.local/share/mime.
20298 2006-03-10 Jackson Harper <jackson@ximian.com>
20300 * MdiWindowManager.cs: Recalc the NC area when a window is
20301 maximized/restored so that the menu area is drawn on forms that
20304 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20306 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20307 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
20308 us to force a WM_NCCALCRESIZE message being sent. This is needed
20309 for MDI maximizing.
20311 2006-03-10 Jackson Harper <jackson@ximian.com>
20313 * Form.cs: We need to use the ActiveMenu when calculating menu
20315 - Fix nullref when the window manager hasn't been created yet.
20316 * Control.cs: Fix nullref when we try to bring a control to the
20317 front that has no parent.
20318 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
20320 - Add a dummy item to the maximized menu so it always has the
20321 correct height. Otherwise when there are no menus we don't get our
20325 2006-03-10 Jackson Harper <jackson@ximian.com>
20327 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
20329 * Form.cs: Make the window_state internal so the window managers
20331 - When an MDI child is maximized let its window manager create the
20332 main menu (so it can add its icon).
20333 - Notify the window managers of state changes
20334 - Let the window manager paint its buttons and handle button
20335 clicks on the menu when it is maximized.
20336 * InternalWindowManager.cs: Move the prev_bounds into the mdi
20337 window manager, since tool windows don't use it, only mdi windows.
20338 - Tell the main form that we don't want it to handle NCPAINT
20339 itself to avoid extra painting.
20340 - Handle clicks on a maximized windows menu.
20341 - Handle window state changes
20342 - Handle minimize/maximize clicks correctly by setting the window state.
20343 * MdiWindowManager.cs: Add an icon menu that (the menu you get
20344 when clicking on the forms icon).
20345 - New method to create a forms maximized menu. This is its normal
20347 - Handle window state changes.
20348 - Handle sizing of maximized windows. Maximized windows are just
20349 drawn bigger then the parent visible area. All controls are still
20350 there, they are just outside the visible area (this matches windows).
20351 * MdiClient.cs: No scrollbars when a child window is maximized.
20352 - Let the children windows figure out how big they should be when
20353 sizing maximized windows.
20354 - Implement a version of ArrangeIconicWindows somewhat similar to
20355 Windows version. There are some little differences, but I don't
20356 think any app will rely on the layout of minimized mdi windows.
20358 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20360 * Padding.cs: Several fixes to allow compiling with csc 2.0
20362 2006-03-09 Jackson Harper <jackson@ximian.com>
20365 * MenuItem.cs: Cheap hack so we can add items to the list without
20366 the events being raised. This allows adding mdi items during
20367 drawing. TODO: Should probably find a better time to add the items.
20369 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20371 * ThemeWin32Classic.cs:
20372 - CheckBox_DrawText: Added logic to not wrap if not enough space
20373 is available (Fix for bug #77727)
20374 - RadioButton_DrawText: Added logic not to wrap if not enough
20375 space is available (Fix for bug #77727). Also removed some
20376 duplicate code, DrawString always drawing the regular text
20377 before hitting the if statement.
20379 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20381 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
20383 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20385 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
20386 * ContainerControl.cs: Partial implementation of some 2.0 scaling
20387 methods. Moved the new 2.0 properties into alphabetical order with
20388 other properties and added MonoTODO tags
20390 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20392 * AutoScaleMode.cs: Added. Fix build.
20394 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20396 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
20397 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
20398 and was requiring premature handle creation for calls from above
20399 * Form.cs, Control.cs: Removed handle arguments from calls to
20400 CalculateClientRect()
20402 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20404 * ListView.cs (HeaderMouseMove): Fix csc compilation.
20405 drag_column.column_rect is MarshalByRef and can't be used that way
20407 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20409 * AxHost.cs: Added deserialization constructor for
20410 AxHost+State (fixes 77743)
20412 2006-03-09 Mike Kestner <mkestner@novell.com>
20415 - Added column drag reordering for details view.
20416 - fixed behavior when mouse is dragged off column and
20417 AllowColumnReorder is false.
20418 * ColumnHeader.cs: clone the format too in Clone.
20419 * Theme.cs: add DrawListViewHeaderDragDetails method.
20420 * ThemeWin32Classic.cs:
20421 - impl new method for drawing drag column shadows and targets.
20422 - support column offset for details mode in DrawListViewItem.
20424 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20426 * TextControl.cs: Reset the char_count when the document is cleared
20427 (Fixes bug reported on mono-winforms mailing list)
20429 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20431 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
20432 of calling base we simply process the key ourselves, since both
20433 DefWindowProc and the handled method would set m.Result.
20436 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20438 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
20439 method also moves the window; instead implemented a copy of
20440 Control.ScaleCore (Part of fix for #77456)
20442 - Created new CreateGraphicsInternal method to allow providing
20443 a graphics context when no handle is created without triggering
20444 handle creation. (Part of fix for #77456)
20445 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20447 - Switched Constructor to require TextBoxBase instead of Control (to
20448 allow uncast access to CreateGraphicsInternal)
20449 - Safeguarded use of owner.Handle property. No longer accessing it
20450 unless the handle is already created.
20451 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20452 - Now triggering a recalc when owning control becomes visible
20453 * TextBox.cs, RichTextBox.cs: Switched to use new internal
20454 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
20455 premature handle creation (Part of fix for #77456)
20457 - We now only destroy our double-buffering buffers when the
20458 control is resized or disposed, but not when visibility
20459 changes. (The code even re-created them twice every time)
20460 - Now requiring a redraw of the buffer on visibility changes
20461 (fixes bug 77654 part 2)
20462 - Not passing OnParentVisibleChanged up unless the control
20464 - CanFocus: Fixed to match MS documentation
20465 - Focus: Fixed to return actual focus state and to check if
20466 setting focus is legal before setting it
20468 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
20470 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
20471 when to draw focus rectangle by looking at parent focus and
20472 selected state instead. This fixes TabPages on Linux sometimes
20473 having none or multiple focus rectangles.
20474 * XplatUIX11.cs (SetFocus):
20475 - Don't set the focus if the same window already has focus
20476 - Use SendMessage instead of PostMessage (like it's Win32
20477 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
20478 to match MS behaviour
20479 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
20480 are not selectable.
20482 2006-03-07 Jackson Harper <jackson@ximian.com>
20484 * PictureBox.cs: Revert line I accidently committed last week.
20486 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
20489 - Added new IsRecreating and ParentIsRecreating properties to
20490 allow testing if RecreateHandle has been called on ourselves
20491 or one of our parents
20492 - WndProc(WM_DESTROY): If our control handle is being recreated
20493 we immediately need to create the handle when receiving the
20494 destroy, that way our child windows find a valid parent handle
20495 when they themselves are being recreated upon WM_DESTROY receipt
20496 (fix for bug #77654 part 1)
20498 - DestroyWindow: WM_DESTROY must be sent to our own window before
20499 notifying any child windows. MS documents that child windows
20500 are still valid when WM_DESTROY is received. (Control now relies on
20502 - Added some fine-grain debug options
20504 2006-03-06 Jackson Harper <jackson@ximian.com>
20506 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
20507 box and base calculations off this.
20508 * MdiChildContext.cs:
20509 * MdiWindowManager.cs: Don't need to ensure scrollbars here
20512 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
20514 * Splitter.cs: In situations where the affected control is added
20515 to the parent's control list after the splitter, we would not
20516 populate affected. Now we try populating it on mousedown, if
20517 it's not already set, and force it to be re-set whenever our
20520 2006-03-03 Matt Hargett <matt@use.net>
20522 * Control.cs: implement Control.Padding
20523 * Padding.cs: -Padding.All returns -1 when constructing with the
20524 implicit default ctor
20525 -Padding.ToString() matches MS.NET
20526 * ContainerControl.cs: implement
20527 ContainerControl.AutoScaleDimensions
20528 * ListControl.cs: implement ListControl.FormattingEnabled
20529 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
20531 * TabPage.cs: Implement UseVisualStyleBackColor.
20532 * PictureBox.cs: Implement PictureBox.InitialImage.
20534 2006-03-03 Mike Kestner <mkestner@novell.com>
20536 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
20537 event declarations to proxy to base event.
20538 * ListViewItem.cs: update to use ItemControl.
20539 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
20540 * ThemeWin32Classic.cs: update to new ListView theme API and fix
20541 column header label rendering for 0 width columns.
20543 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
20545 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
20546 that causes the control to be created. Fixes #77476.
20548 2006-03-02 Jackson Harper <jackson@ximian.com>
20550 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
20553 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
20555 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
20556 passed in for the EventArgs (fixes #77690)
20558 2006-03-01 Jackson Harper <jackson@ximian.com>
20560 * ScrollBar.cs: Refresh afterbeing resized.
20562 2006-02-28 Mike Kestner <mkestner@novell.com>
20564 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
20565 Clean up a tracker compile warning.
20566 * MenuItem.cs: add internal PerformPopup method.
20569 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20571 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
20572 implicit expose) when the text is set to null
20574 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20576 * RichTextBox.cs (FlushText): When newline is true, we always
20577 need to split the line, even if no text is on it and we may
20578 never eat newlines. (Fixes #77669)
20580 2006-02-28 Mike Kestner <mkestner@novell.com>
20582 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
20583 and set Selected instead.
20584 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
20587 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20589 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
20591 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
20594 - Got rid of the panel. All controls are now directly added to
20596 - It is now possible to set a font with the Font property
20597 - MinSize and MaxSize property do now what they should
20598 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
20599 - Searching and selecting a font with the font textbox works now,
20600 the same applies to the style and size textbox
20601 - Draw the correct 3D border in the example panel
20602 - Fixed a little mem leak (unused fonts didn't get disposed)
20603 - Many other internal updates/rewrites...
20606 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20609 - InsertRTFFromStream: Added 'number of characters inserted' argument
20610 - set_SelectedRTF: Now using the number of characters to calculate
20611 the new location for the selection and cursor (x/y cannot be used
20612 due to potentially already wrapped text)
20614 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20616 * TextControl.cs: Added property and implemented means to allow
20617 disabling recalculation of a document (can be used to speed up
20618 multiple inserts and is needed to make RTF inserts predictable, see
20620 * RichTextBox.cs: Using the new NoRecalc property of Document to
20621 keep x/y insert locations predictable. Also makes it faster inserting
20622 large chunks of RTF
20624 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20626 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
20627 it's easier for a child control to handle the other messages without
20628 having to duplicate the special functionality
20630 - WndProc: Removed calling base handler for WM_KEYDOWN and added
20631 code to handle processing the key ourselves, in order to get
20632 access to the result of KeyEventArgs.Handled. We now only call
20633 ProcessKey if they key hasn't been handled already. Fixes #77526.
20634 - set_Text: If null or empty string is given, just clear the
20635 document. Fixes part of #77526
20637 2006-02-27 Jackson Harper <jackson@ximian.com>
20639 * SizeGrip.cs: Paint the background color before painting the grip
20640 so things look right.
20641 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
20643 2006-02-27 Mike Kestner <mkestner@novell.com>
20646 - Restructure layout and invalidation model to remove a ton of
20647 flicker from the control and speed up performance in general.
20648 - Add manual column resize, flickers like crazy, but I already have
20649 some ideas on how I'll fix that. (#76822)
20650 - Merge the three Icon-based views into a single layout method.
20651 - Move item selection interaction logic from the item since
20652 interaction with the collections is more appropriate to the view.
20653 - Deselection on non-item clicks.
20655 - Encapsulate most of the layout. Add some internal props to trigger
20656 layout. Move to a model where Items invalidate themselves instead
20657 of just invalidating the whole control every time something changes.
20658 - Invalidate on Text/Caption changes.
20659 - switch to an offset based layout model to avoid having to absolute
20660 position every element on item moves.
20661 - correct checkbox layout to conform to MS layout.
20662 * ThemeWin32Classic.cs:
20663 - refactor some column header drawing code.
20664 - fix string justification for column headers (#76821)
20665 - make SmallIcon labels top justified for compat with MS impl.
20666 * ThemeClearlooks.cs:
20667 - adjust to new ListViewItem internal checkbox bounds api.
20669 2006-02-27 Jackson Harper <jackson@ximian.com>
20671 * Control.cs: Change where implicit controls fall in the zorder.
20672 They are now on top of all children.
20673 - Synced AddImplicit code with Add
20674 - Removed unused enumerator.
20675 * SizeGrip.cs: Remove the TODO as its been TODONE.
20677 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
20679 * TextControl.cs(Insert): Combine the last lines unless the insertion
20680 string ends with \n\n, otherwise we leave one line too many (Fixes
20681 something I noticed with the testapp for #77526; the bug itself was
20682 already fixed in the previous checkin)
20684 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
20687 - SelectionColor and SelectionFont methods no longer set absolute
20688 styles. Instead, the keep font or color respectively (This
20689 resolves a long-standing FIXME in the code)
20690 - When flushing RTF text, the insert code now considers text trailing
20691 behind the insertion point (Fixes the bug where when replacing
20692 the selected text via SelectedRTF the remainder of the line behind
20693 the selection would stay on the first insertion line)
20695 - AppendText now updates the selection points after inserting text
20696 - AppendText now ensures that the last tag (sometimes 0-length) of
20697 the document is used for the style information (Fixes part of
20700 - Created new FontDefiniton class to allow describing partial style
20702 - StreamLine() now takes a lines argument, to allow it to decide
20703 whether an encountered zero-length tag is the last in the document
20704 (which must be kept to not loose the font/color contained in it,
20706 - Created Combine() and Split() methods for Marker structs, to
20707 support marker updates due to reformatted documents (soft line
20709 - Implemented Document.CaretTag setter
20710 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
20711 of the last line (Not the cause, but also exposed by bug #77220)
20712 - Added LineTag argument to InsertString method, to allow callers
20713 to force a certain tag to be used (required to force use of the
20714 trailing zero-length tag of a document)
20715 - Now updating markers in Combine(), to avoid stale tag markers
20716 - Added some method descriptions to aid maintenance
20717 - Implemented new FormatText concept, allowing additive/subtractive
20718 formatting by only specifying the components that are to be
20719 changed. This was needed for resolving the RTB.SelectedColor/
20720 RTB.SelectedFont fixmes
20721 - Added Break() support method to allow breaking up linetags (used
20722 for partial formatting)
20723 - Added GenerateTextFormat() method. It is used for partial
20724 formatting and allows to generate a full font/color from given
20725 attributes and an existing tag.
20727 2006-02-26 Jackson Harper <jackson@ximian.com>
20729 * XplatUIX11.cs: Use the correct caption height.
20730 - Translate hittest coordinates to screen coords to match MS.
20731 * XplatUIWin32.cs: When we create MDI windows we need to reset
20732 some of the style flags, so we get a nice blank window, and can
20733 draw all the decorations ourselves.
20734 - Set a clipping rectangle on the non client paint event, the
20735 window manager drawing code needs one.
20736 * Form.cs: The window manager needs to know when the window state
20738 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
20739 don't need to factor in border and title sizes in these
20740 methods. TODO: Remove the args and fix the call points.
20741 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
20743 - Let the driver set the cursors.
20744 - Improve active window handling
20745 - Correct sizes for title bars and buttons.
20746 - Match MS drawing better
20747 * MdiWindowManager.cs: We don't need to handle border style
20748 updates specially anymore.
20749 - Check for scrollbars when windows are done moving
20750 - Handle Active properly.
20751 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
20752 correctly. I am spewing the exception though, so we don't hide the
20755 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
20757 * DataGridViewRowPostPaintEventArgs.cs,
20758 DataGridViewCellPaintingEventArgs.cs,
20759 DataGridViewRowCollection.cs,
20760 DataGridViewRowPrePaintEventArgs.cs,
20761 DataGridViewCell.cs: Clear a few warnings and implement a few
20762 exceptions that should be thrown.
20764 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20766 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
20767 'inheriting' our parent's (non-default) cursor. (Part of
20768 the fix for #77479)
20770 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20772 * XplatUIX11.cs: Fixed cast to make csc happy
20774 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20776 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
20777 it's for the client area (part of fix for #77479 and needed
20778 for MDI window cursor handling)
20780 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
20781 the appropriate default cursors and also passing the message
20782 up the parent chain
20783 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
20784 for non-client areas
20786 2006-02-15 Jackson Harper <jackson@ximian.com>
20788 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
20789 is a real MDI window
20791 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
20793 * X11DesktopColors.cs: Instead of checking the desktop session
20794 string for "KDE" check if it starts with "KDE"
20796 2006-02-10 Jackson Harper <jackson@ximian.com>
20798 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
20801 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
20803 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
20806 - Got rid of the panel. All controls are now directly added to
20808 - Changed to mono coding style
20810 2006-02-10 Jackson Harper <jackson@ximian.com>
20812 * InternalWindowManager.cs: We don't need the set visibility to
20813 false hack anymore now that peter has written beautiful shutdown
20816 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
20818 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
20819 where already explicitly destroyed
20821 2006-02-10 Jackson Harper <jackson@ximian.com>
20823 * MdiClient.cs: Handle the case where windows are too high or to
20824 the left and we need scrollbars.
20826 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
20828 * MimeIcon.cs: Added some icons
20831 - Got rid of the panel. All controls are now directly added to
20833 - Changed to mono coding style
20834 - On Linux "My Computer" and "My Network" will now show some
20835 more usefull information. A new class, MasterMount, gathers
20836 this information from /proc/mount. Updated MWFFileView to make
20837 use of this information
20838 - Fixed a bug that caused FileDialog to crash when
20839 ".recently_used" file had a zero size
20840 - FilterIndex does now what it should
20842 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
20845 2006-02-09 Jackson Harper <jackson@ximian.com>
20847 * ComboBox.cs: Don't touch if null.
20849 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
20851 * Cursor.cs: 64bit safeness fix
20852 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
20854 2006-02-09 Jackson Harper <jackson@ximian.com>
20856 * Form.cs: If a form is made into an MDI form update the styles so
20857 all the props can get set correctly.
20858 - Kill the mdi_container when we dont need it anymore.
20859 * InternalWindowManager.cs: Add missing NOT
20861 2006-02-08 Jackson Harper <jackson@ximian.com>
20863 * InternalWindowManager.cs: Respek clipping when drawing MDi
20866 2006-02-08 Jackson Harper <jackson@ximian.com>
20868 * Hwnd.cs: Add bits to track non client expose events.
20869 * XplatUIX11.cs: Track non client expose events on the hwnd. This
20870 gives us a proper invalid rect and will allow for some nice
20871 optimizations with NC client drawing
20872 - MDI windows are children windows, so move their style handling
20873 into the child window block.
20874 * InternalWindowManager.cs: Remove a state reset that was
20875 getting invoked at the wrong time. Fixes managed windows getting
20876 into a 'stuck' captured state.
20878 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
20880 * TextControl.cs (Document.ctor): Now initializing
20881 selection_anchor. Fixes #77493
20883 2006-02-07 Jackson Harper <jackson@ximian.com>
20885 * TrackBar.cs: The increment/decrements were backwards.
20887 2006-02-07 Mike Kestner <mkestner@novell.com>
20889 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
20890 to the instance itself.
20892 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
20894 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
20895 on ulongs and pointers, the size differs between 32bit and 64bit
20898 2006-02-07 Mike Kestner <mkestner@novell.com>
20900 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
20901 for 64 bit platforms to work around a metacity bug.
20903 2006-02-07 Jackson Harper <jackson@ximian.com>
20905 * TrackBar.cs: Process the input keys we need, and hookup to
20906 KeyDown instead of using WndProc, so we get key messages.
20908 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
20910 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
20912 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
20913 we need to translate the XdndVersion atoms array before sending it
20915 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
20918 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
20919 number of bits for the property, not the number of bytes. The
20920 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
20921 but would not crash since it specified 8 bits instead of 4 bits)
20922 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
20923 defined as XID -> long in the C headers)
20924 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
20925 references since those are now IntPtr to begin with
20926 - Switched all Atom.XXX 'int' casts to IntPtr casts
20927 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
20928 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
20929 - Added XChangeActivePointerGrab DllImport (for X11DnD)
20931 - Changed 'int' type for Atoms in XEvent structures to IntPtr
20932 - Changed atom in HoverStruct to be IntPtr
20934 - Removed local DllImports, switched code to use those from XplatUIX11
20935 - Removed/fixed casts related to the switch of Atom to be a IntPtr
20937 2006-02-06 Mike Kestner <mkestner@novell.com>
20939 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
20940 method signatures in the import region. There may still be some
20941 lingering struct marshaling issues, as I didn't drill down into those.
20944 2006-02-06 Jackson Harper <jackson@ximian.com>
20946 * ComboBox.cs: Dont manually set the top_item, this is computed
20947 when the scrollbar position is set.
20949 2006-02-06 Mike Kestner <mkestner@novell.com>
20951 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
20952 startup crashes on amd64. There's other fixes needed. All pinvoke
20953 usage of Atom needs to be mapped to IntPtr for example. And there are
20954 likely other int/long issues to be addressed.
20956 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
20958 * FileDialog.cs: One more...
20960 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
20962 * FileDialog.cs: Next try
20964 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
20966 * FileDialog.cs: First part of fix for #77464
20968 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
20970 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
20971 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
20972 AcceptButton border drawing.
20974 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
20976 * Form.cs: Moved positioning of form after auto scaling is applied,
20977 otherwise it would possibly use wrong form size.
20979 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
20981 * Control.cs (RecreateHandle): No need to re-create any child
20982 controls, the child windows will get destroyed automatically by
20983 the windowing system or driver, and re-created when the handle
20984 is being accessed the first time. Fixes #77456
20985 * Form.cs: No longer setting the form to closing if the handle is
20986 being recreated. This seems like the right thing to do, don't
20987 have a bug or testcase for this, though.
20989 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
20991 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
20992 controls to avoid unwanted side effects
20994 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
20997 - ScaleCore needs to scale the bounds, not the ClientSize of the
20998 control. Fixes #77416.
20999 - DefaultSize is 0,0 for control
21001 - DefaultSize is 100, 20
21002 - SetBoundsCore: Now enforcing the height, no matter if the provided
21003 height is more or less than the preferred one, as long as AutoSize
21005 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
21007 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
21010 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
21011 call unless both performLayout is true *and* we have a pending
21013 - ResumeLayout: MS does not completely nest Suspend and Resume,
21014 they bottom out at 0, fixed our code to match that.
21015 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
21016 SetBoundsCore, we were updating even when we shouldn't. This fixes
21017 swf-anchors mis-anchoring when resizing the app fast and lots.
21018 - UpdateDistances: Now only setting the left and top distance if
21019 we have a parent and are not suspended, this is based on
21020 a suggestion by Don Edvaldson in bug #77355.
21021 - OnVisibleChanged: Fixed logic when to create the control. We may
21022 not create the control if we have no parent or if it's not visible;
21023 switched to using Visible property instead of is_visible field
21024 since the property also considers parent states. This fixes a bug
21025 when starting Paint.Net
21027 2006-02-02 Jackson Harper <jackson@ximian.com>
21029 * Form.cs: If the forms handle hasn't been created yet don't call
21030 into xplatui to make it top most, just set the topmost flag on the
21031 form in CreateParams
21032 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
21034 2006-02-01 Jackson Harper <jackson@ximian.com>
21036 * ScrollableControl.cs: Refactored the Recalculate method a
21037 little, this wasn't handling all the variants of bottom and right
21038 bars needed to be added and added/removed based on their
21039 counterparts being added/removed (which changes the drawable
21040 size). Also we special case client widths and heights of 0 and
21041 don't add the scrollbar for those.
21043 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
21046 - Added method to get AbsoluteGeometry(); currently unused, but might
21047 be used in the future, if we try again to figure out toplevel
21048 coordinates with some more crappy window managers
21049 - Added FrameExtents() method to retrieve the WM set decoration size
21050 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
21051 to deal with at least KDE, FVWM and metacity (Fixes #77092)
21053 - Added whacky_wm tracking var for metacity
21054 - Added logic to have default menu height if the actual menu height
21055 has not yet been calculated (part of fix for #77426)
21056 * Form.cs: Keep track whether client size has been set and re-set
21057 it if a menu is added/removed afterwards (Fixes #77426)
21059 2006-01-31 Jackson Harper <jackson@ximian.com>
21061 * Control.cs: When a new Site is set on the component attempt to
21062 pull the AmbientProperties from it.
21064 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
21066 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
21067 in the background of the owning form. Fixes #77332
21069 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
21071 * MimeIcon.cs: Fix for #77409
21073 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
21075 * XplatUIX11GTK.cs: Initial import
21077 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
21079 * FixedSizeTextBox: fixes class signature
21081 2006-01-30 Jackson Harper <jackson@ximian.com>
21083 * FixedSizeTextBox.cs: New internal class that represents a
21084 textBox that will not be scaled.
21087 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
21090 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
21092 * XplatUIX11.cs: Retrieve default screen number instead of
21093 assuming 0. Attempted fix for #77318
21095 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
21098 - GetWindowPos: When a window is parented by FosterParent, use
21099 the desktop instead of FosterParent as the base to get coordinates
21100 - CreateWindow: Don't make FosterParent the parent window for Popups
21101 if we don't want a taskbar entry, Popups automatically don't get one
21102 * Hwnd.cs: Need to call remove to actually remove the key from the
21105 2006-01-30 Mike Kestner <mkestner@novell.com>
21107 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
21109 2006-01-30 Jackson Harper <jackson@ximian.com>
21112 * TreeNode.cs: Raise events no matter how the treenode is
21113 checked. Patch by Don Edvalson.
21115 2006-01-30 Jackson Harper <jackson@ximian.com>
21117 * TreeNode.cs: Signature fix.
21119 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
21121 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
21123 2006-01-20 Mike Kestner <mkestner@novell.com>
21125 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
21126 event forwarding when menus are active.
21127 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
21128 Most of the patch is pdb's with a little rework.
21130 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21132 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
21133 Removed GetMenuDC and ReleaseMenuDC methods; replaced
21134 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
21135 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
21136 * InternalWindowManager.cs: Added use of PaintEventStart/End to
21137 handling of WM_NCPAINT message, now passing the PaintEventArgs to
21138 the PaintWindowDecorations method
21139 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
21140 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
21141 * MenuAPI.cs: Made tracker window invisible
21143 - Removed GetMenuDC and ReleaseMenuDC methods
21144 - Implemented the client=false path for PaintEventStart and
21147 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21149 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
21150 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
21153 - MaximizeBox, MinimizeBox: Recreate the handle when setting
21155 - CreateParams: Reworked the styles to match MS look'n'feel,
21156 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
21157 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
21159 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21161 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
21162 window is not mapped, since otherwise every form that's being
21163 created is considered minimized, which is wrong.
21164 * Form.cs: Catching the exception and returning our internal value
21167 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21169 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
21170 SetWindowMinMax() to have means to tell the driver about the minimum,
21171 maximum and maximized state window sizes. (Part of the fix for #76485)
21173 - Implemented tracking of minimum and maximum window size, now calling
21174 new SetWindowMinMax() driver method to tell the driver (Part of the
21176 - Finished handling of WM_GETMINMAXINFO method, now setting all values
21177 (Completes fix for #76485)
21178 - Calling new SetWindowMinMax driver method when the handle for a
21179 form is created, to make sure the driver knows about it even if
21180 the values have been set before the window was created
21181 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
21182 to avoid messing up our anchoring calculations (partial fix
21184 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
21186 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
21187 - Improved GetWindowState() to detect 'Minimized' state on Metacity
21188 (and presumably other freedesktop.org compliant WMs). Left the
21189 assumption unmapped=minimized, needed for SetVisible to work.
21190 - Now setting the window state when creating windows
21191 - Fixed SetVisible to consider/set the window state when mapping
21192 a Form. We cannot set the state before it's mapped, and we cannot
21193 use Form.WindowState once it's mapped (since it would ask the
21194 driver and get 'normal'. Therefore, we grab the state before
21195 mapping, map, and then set state.
21196 - Implmemented SetWindowMinMax method; Metacity does not seem to
21197 honor the ZoomHints, though.
21199 - Removed MINMAXINFO (moved to XplatUIStructs)
21200 - Added SetWindowMinMax stub (on Win32 the only way to set that
21201 information is in response to the WM_GETMINMAXINFO message, which
21202 is handled in Form.cs)
21203 - Added logic to SetVisible to set the proper window state when a
21204 form is made visible (fixes #75720)
21206 2006-01-26 Jackson Harper <jackson@ximian.com>
21208 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
21209 same way we handle them with Invoke.
21211 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
21214 - Added tracking of window state so CreateParams can return
21215 the appropriate style
21216 - Moved setting of WS_CAPTION style in CreateParams to allow
21217 styles without caption
21218 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
21219 control if the TextBox property is accessed. Fixes #77345
21221 - get_Created: now uses is_disposed and is_created to determine
21222 return value (suggested by Jackson)
21223 - CreateHandle: No longer exits if the handle is being recreated
21224 - RecreateHandle: If the handle is not yet created call the
21225 appropriate method to create either control or handle. If the
21226 control is already created CreateHandle will simply exit instead
21227 of just creating the handle
21228 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
21229 now SendMessage WM_DESTROY directly to the control when DestroyWindow
21232 - When DestroyWindow is called, instead of waiting for the
21233 DestroyNotification from X11, we directly post it to the WndProc
21234 and immediately dispose the hwnd object.
21235 Same applies to DestroyChildWindows, and this obsoletes the
21236 expose_pending tracking. Contrary to Win32 behaviour we destroy our
21237 child windows before our own, to avoid X11 errors.
21238 - Removed the direct sending of WM_PAINT on UpdateWindow
21240 - Reworked DoEvents and GetMessage to allow access to internal queue
21241 even when trying non-blocking access to the queue. Fixes #77335.
21242 Based on a patch suggestion by Don Edvalson. The new private
21243 GetMessage can now also be used as a backend for a PeekMessage
21245 * XplatUI.cs: Improved debug output for CreateWindow
21247 2006-01-25 Jackson Harper <jackson@ximian.com>
21249 * Help.cs: Allow param to be null. Patch by Don Edvalson.
21251 2006-01-24 Jackson Harper <jackson@ximian.com>
21253 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
21254 when we have a MaxDropItems lower then the selected index.
21256 2006-01-24 Jackson Harper <jackson@ximian.com>
21258 * Control.cs: Don't allow selection of non visible controls, allow
21259 selection of controls without parents.
21261 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
21263 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
21264 * DataGridDrawingLogic.cs: Add editing row only when is necessary
21266 2006-01-23 Jackson Harper <jackson@ximian.com>
21268 * UpDownBase.cs: Make the textbox handle all the selection and
21269 tabbing. This fixes tabing to updown controls.
21271 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
21273 * TextBoxBase.cs: fixes exception thown the object was null
21275 2006-01-23 Jackson Harper <jackson@ximian.com>
21277 * ButtonBase.cs: Just use the base CreateParams. They set
21278 visibility and enabled correctly.
21281 * MonthCalendar.cs: Lets let the base set as much of the
21282 createparams as possible so we don't have duplicate code all over
21285 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
21287 * ThemeGtk.cs: Added TrackBar and some experimental code to
21288 get double buffering back
21290 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21292 * DataGrid.cs: Allows row number set internally higher than the last
21293 when creating a new row. Restores the editing functionality.
21295 2006-01-20 Mike Kestner <mkestner@novell.com>
21297 * MimeIcon.cs: delay Image creation until the icons are accessed
21298 instead of creating 190 scaled images on GnomeHandler startup.
21300 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
21302 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
21303 first call base before processing the event. Fixes #77279
21305 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
21307 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
21308 that the stride for the GDI bitmap would match the stride of
21311 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
21313 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
21315 2006-01-19 Jackson Harper <jackson@ximian.com>
21317 * ComboBox.cs: Hookup the text controls keydown event so we get
21318 those when the text control has the focus.
21320 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21322 * Label.cs: Now using the base events instead of defining new ones;
21323 this allows us to just call the base properties without having to
21324 duplicate all base property logic
21326 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21328 * Label.cs: A label by default is not a tabstop (Fixes one of our
21329 failing nunit tests)
21331 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21333 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
21334 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
21336 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21338 * Cursor.cs: Reimplemented creating cursor bitmaps without using
21339 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
21342 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
21343 constructor creates images that can't be saved. Part of the fix
21345 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
21346 - SetWindowState: Switched ShowWindow flags (part of an upcoming
21347 bug fix for handling window state in forms properly)
21349 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21351 * ThemeGtk.cs: Simplify ScrollBar drawing
21353 2006-01-18 Jackson Harper <jackson@ximian.com>
21355 * Splitter.cs: Set the default dock style for the splitter control
21356 in the constructor.
21358 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21360 * ThemeGtk.cs: Corrected StateType and ShadowType for
21363 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21365 * Control.cs: Make use of Theme.DoubleBufferingSupported
21367 - Added drawing for flat style buttons
21368 - Added ScrollBar drawing
21370 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21372 * ThemeClearlooks.cs: Removed some unneeded code.
21373 * ThemeGtk.cs: First part of ThemeGtk enhancements.
21375 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
21377 * LinkLabel.cs: We need to update the hover drawing when
21378 leaving the control as well.
21380 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
21382 * DataGrid.cs: Clicking on non empty areas in the columns
21383 area was giving an exception
21385 2006-01-17 Jackson Harper <jackson@ximian.com>
21387 * ThemeWin32Classic.cs:
21388 * ListView.cs: Do not draw/clip the headers when the header style
21391 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
21393 * DataGrid.cs: Fixes 77260
21395 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
21397 * DataGrid.cs: Clicking on a column on a empty grid was giving
21400 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
21402 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
21403 or any keypress will crash the grid.
21405 2006-01-17 Mike Kestner <mkestner@novell.com>
21407 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
21408 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
21409 invisible/previously-visible items.
21412 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
21414 * ThemeClearlooks.cs:
21415 - Added CL_Draw_Button method; now other theme controls that are
21416 not derived from button or do not have a button can draw buttons
21418 - Updated ComboBox drawing
21419 - Beautified RadioButton drawing
21420 - Corrected drawing of bottom and left tabs
21421 - Beautified DateTimePicker and MonthCalendar
21422 - Added CPDrawButton and CPDrawRadioButton
21424 2006-01-16 Jackson Harper <jackson@ximian.com>
21426 * ComboBox.cs: Set the initial value of the scrollbar to the
21427 current index. Reduce the numbers of refreshs and IndexOfs called.
21429 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
21431 * FileDialog.cs: When the file listview is focused hitting the
21432 backspace key moves the fileview to the parent directory
21434 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21437 - Added RecreateHandle call when changing taskbar visibility to
21438 trigger reparenting in Win32 driver (Fixes #75719)
21439 - If a window has minimize or maximize buttons, it cannot have
21442 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
21443 the toplevel form with FosterParent (A toolwindow not on the
21444 taskbar) (Fixes #75719)
21445 - Made FosterParent a toolwindow
21447 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21449 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
21451 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21453 * ToolTip.cs: If SetToolTip is called from a control and the mouse
21454 is currently over that control, make sure that tooltip_window.Text
21457 2006-01-13 Mike Kestner <mkestner@novell.com>
21459 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
21461 2006-01-13 Jackson Harper <jackson@ximian.com>
21463 * TreeView.cs: On MS GetNodeAt never actually factors in the X
21464 value passed. Also redraw the selected node when we recieve
21465 focus, so tabbing between trees works correctly.
21467 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21469 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
21470 ~/.gconf/%gconf-tree.xml, so use
21471 .gconf/desktop/gnome/interface/%gconf.xml
21473 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21475 * TextControl.cs: Draw text in gray if control is disabled
21477 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21479 * TreeView.cs: Draw the focus rectangle outside the highlight, to
21480 make sure it's always visible. Fixes #76680.
21482 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21484 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
21486 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
21488 * PageSetupDialog.cs: Added.
21489 * PrintDialog.cs: Attributes.
21490 * PrintPreviewControl.cs: Updates.
21491 * PrintPreviewDialog.cs: Updates.
21493 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21495 * Control.cs: Undid my selection check fix, since it's not needed
21497 - Now considering the presence of hscroll/vscroll when sizing
21498 vscroll/hscroll respectively. Fixed bug #77077
21499 - Added Left/Up/Down/Right to IsInputKey list to prevent
21500 ContainerControl from stealing them. This fixes what I broke
21501 with my last checkin.
21503 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21505 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
21506 I finally understand how the property can be set without a setter :-)
21508 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21511 - Switched RunLoop to use static Message.Create to create a
21513 - Added PreProcessMessage call in runloop for keyboard events; this
21514 is part of the fix for #77219, I overlooked this originally in the
21515 MSDN doc for PreProcessMessage
21517 - Removed call to PreProcessMessage from handling of keyboard
21518 messages; it's supposed to be done in the message pump
21519 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
21520 per MSDN documentation.
21521 - IsInputChar: All chars are input chars by default; removed the
21522 parent calling chain, MS does not document that
21523 - PreProcessMessage: If IsInputChar is true, we want to return false
21524 to allow dispatching of the message
21525 - When selecting the next control, now also check that we're not
21526 selecting ourselves again and therefore return a false positive.
21528 - Tried to match return values for IsInputKey and ProcessDialogKey
21529 to what MS returns; moved processing of our special keys outside
21530 ProcessDialogKey since MS does not seem to return true on those.
21531 - Moved code that previously was in ProcessDialogKey into new private
21532 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
21533 - Reworked handling of WM_CHAR to not have to duplicate code from
21534 Control.cs anymore, instead we simply call down to base.
21536 2006-01-12 Jackson Harper <jackson@ximian.com>
21538 * ComboBox.cs: We always need to refresh the text area when
21539 EndUpdate is called. Fixes the combobox in the file dialog.
21540 * Control.cs: Don't create the creator_thread until the controls
21541 handle is created. Also in InvokeRequired we check if the
21542 creator_thread is null. This gives the effect of InvokeRequired
21543 returning true if the controls handle is not created yet, and
21546 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21549 - Added StartLoop() driver method. This is used to allow drivers to
21550 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
21551 loop for a particular thread
21552 - Added EndLoop() driver method. This is called once the message
21553 pump for the thread is shut down
21554 - Added SupportsTransparency method to allow the driver to indicate
21555 opacity support for windows
21557 - Removed TODO attribute, completed AllowTransparency property
21558 - Added documented logic to Opacity
21559 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
21560 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
21561 versions of CompatibleTextRendering
21562 * X11Structs.cs: Added opacity atom to our atom enumeration
21563 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
21564 of a form might be set before it's reparented by the WM, and we need
21565 the opacity value without calling up to Form)
21566 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
21567 SupportsTransparency() driver methods
21568 * Application.cs: Now calling StartLoop and EndLoop driver methods
21570 - Added opacity atom registration
21571 - Added StartLoop()/EndLoop() methods. They're empty right now but
21572 will need to get implemented when we switch to a per-thread queue
21573 - Implemented SupportsTransparency() method
21574 - Implemented SetWindowTransparency() method
21575 - Added support for setting the opacity value when a window is
21576 reparented (since the opacity needs to be set on the WM frame)
21577 * XplatUIOSX.cs, XplatUIWin32.cs:
21578 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
21580 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
21582 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
21584 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
21586 * FileDialog.cs: Added ToolTip for MWFFileView
21587 * MimeIcon.cs: Rewrote GnomeHandler.
21588 - Get currently used gnome icon theme from
21589 ($HOME)/.gconf/%gconf-tree.xml
21590 - Make use of inherited icon themes
21591 - Support SVG icon themes like Tango via librsvg
21593 2006-01-12 Miguel de Icaza <miguel@novell.com>
21595 Revert's Jackson's revert which broke 2.0 builds. Fix both
21598 * Application.cs: Move the use_compatible_text_rendering outside
21599 the NET_2_0 define. If we ever need to use the
21600 use_compatible_text_rendering on the individual controls they will
21601 access the variable from the common shared code paths.
21603 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21606 - Added more granular debug options
21607 - Added method to print both window text and id
21608 - Switched debug output to use new Window() debug method
21609 - Added IsEnabled() driver method
21610 - Added EnableWindow() driver method
21612 - Removed end_modal; no longer needed, new loop handles termination
21613 via 'closing' variable
21614 - If form is modal, setting DialogResult will now initiate loop
21615 termination via 'closing' variable
21616 - Added support for is_enabled/WS_DISABLED to CreateParams
21617 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
21619 - Removed code that's now in RunLoop from ShowDialog()
21620 - Added various documented sanity checks to ShowDialog()
21621 - Added handling of WM_DESTROY message; we set 'closing' on getting
21622 the message to indicate the message pump to terminate
21623 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
21624 send by the Application.ExitThread method. (We send the message
21625 to destroy the window after all other events have been
21626 processed through the queue, instead of destroying the handle
21628 - Moved code from Close() method to WM_CLOSE handler; added logic
21629 to only send close-related events if the form is not displayed
21631 * Splitter.cs (..ctor): Fixed typo in resource name
21633 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
21635 - set_Cursor: Now only setting calling into XplatUI if the handle for
21636 the control is already created; this avoids implict handle creation
21637 or crashes if it's not created
21638 - set_Enabled: Now setting the enabled state via the new driver method
21639 instead of just tracking it
21640 - CreateParams: Added logic to set WS_DISABLED based on enabled state
21641 - CreateControl: Reordered event firing and method calls to more
21642 closely fire events in the order MS does. Now setting the
21643 enabled state in the driver when creating the control.
21644 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
21646 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
21647 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
21648 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
21650 - Added tracking of window enabled state (get_Enabled/set_Enabled)
21651 - Added EnabledHwnd property to easily allow a driver to find the
21652 handle of the first enabled window in the parent chain (this is
21653 used by drivers to pass up input events of disabled windows)
21654 * XplatUIDriver.cs: Added IsEnabled() method
21656 - Removed crude and obsolete exiting tracking variable
21657 - Removed internal ModalRun(); replaced by RunLoop()
21658 - Implemented private CloseForms() method to allow closing all
21659 windows owned by a particular (or all) threads
21660 - Exit() now properly closes all windows without forcing the message
21662 - Removed obsolete InternalExit() method
21663 - Changed Run() methods to use new RunLoop() message pump
21664 - Implemented new RunLoop() method for both modal and non-modal forms
21666 - get_CreateParams: Added setting of WS_DISABLED
21667 - Simplified ShowDialog(); now all the work is done in RunLoop(),
21668 invoked via Form.ShowDialog()
21669 * NativeWindow.cs: We don't remove the window from the collection when
21670 the handle is destroyed; there might still be messages for it in the
21671 queue (mainly the resulting WM_DESTROY); instead it will be removed
21672 when Control calls InvalidateHandle in the WM_DESTROY handler
21674 - CreateWindow: Added logic to handle the WS_DISABLED window style
21675 - EnableWindow: Implemented based on Hwnd.Enabled
21676 - GetMessage: Reset PostQuitState so the method can be called again
21677 - Implemented support for disabled windows (passing messages to the
21678 first enabled parent) in handling all input messages
21679 - Added optimizations for handling Expose events
21680 - Implemeted new driver method IsEnabled()
21681 - Now always resetting paint pending tracking vars when we start paint
21682 - Re-implemented UpdateWindow via just sending a WM_PAINT message
21683 * XplatUIOSX.cs: Added IsEnabled method stub
21684 * XplatUIWin32.cs: Implemented new IsEnabled() method
21686 2006-01-11 Jackson Harper <jackson@ximian.com>
21688 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21689 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
21690 variables a little.
21691 * ColorDialog.cs: Clear out the old form before adding the new
21694 2006-01-11 Jackson Harper <jackson@ximian.com>
21696 * X11Dnd.cs: Make sure to add all the text formats when adding
21697 strings to the data object.
21698 * TreeNodeCollection.cs: When adding to a sorted tree we need to
21699 do some redrawing too. Also change the UpdateNode to an
21700 UpdateBelow so the newly added node gets painted.
21702 2006-01-11 Miguel de Icaza <miguel@novell.com>
21704 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21705 LinkLabel.cs, PropertyGrid.cs: Implement the
21706 UseCompatibleTextRendering property for 2.x
21708 * Application.cs (SetCompatibleTextRenderingDefault): Add.
21710 2006-01-11 Jackson Harper <jackson@ximian.com>
21712 * TreeView.cs: Use the property for setting the selected node so
21713 the correct events get raised.
21714 * TreeNode.cs: Update the tree when the fore/back colours of a
21717 2006-01-10 Jackson Harper <jackson@ximian.com>
21719 * TreeView.cs: Allow setting SelectedNode to null.
21721 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21723 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
21725 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21727 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
21729 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21731 * PrintDialog.cs: Added attributes and set default property values.
21733 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21735 * PrintControllerWithStatusDialog.cs:
21736 Added PrintControllerWithStatusDialog.
21738 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21740 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21741 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
21743 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21745 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
21747 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
21749 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
21750 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
21752 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
21754 * MimeIcon.cs: Added internal class SVGUtil.
21756 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
21758 * FileDialog.cs: Don't crash if there are two files with the
21759 same name but different locations.
21761 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
21763 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
21764 dates across multiple month grids. Used to not highlight entire
21765 month, but does now.
21767 2006-01-06 Jackson Harper <jackson@ximian.com>
21769 * MonthCalendar.cs: Removed DoEvents call to prevent a running
21770 message loop. Change timer intervals to numbers that seem more
21773 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
21775 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
21776 object for location info since screen object is now implemented.
21778 2006-01-05 Jackson Harper <jackson@ximian.com>
21780 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
21781 * AsyncMethodResult.cs: We no longer use a WeakReference for the
21782 AsyncMethodResult, this is because we ALWAYS want the
21783 ManualResetEvent to get set.
21784 * Control.cs: When disposing use an async invoke to call shutdown
21785 code, so that thigns don't block on the finalizer thread. Also
21786 check if we even have a message loop before trying to send
21787 messages, if we don't then don't bother sending messages.
21788 - No more weak references for async methods
21789 * XplatUIDriver.cs: No more weak references for async methods.
21791 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21793 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
21794 returns two FontFamily with the same name
21796 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
21798 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
21799 drawing disabled text. Instead using the ColorGrayText color
21801 2006-01-04 Jackson Harper <jackson@ximian.com>
21803 * TreeNode.cs: redraw the node when its image index is changed.
21805 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
21807 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
21808 time I checked there are no others like it.
21810 2006-01-04 Jackson Harper <jackson@ximian.com>
21812 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
21813 this gives the behavoir I was looking for.
21814 * Control.cs: Special case Invoking EventHandlers, this matches MS
21815 and fixes part of bug #76326.
21817 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21819 * ThemeClearlooks.cs, FileDialog.cs:
21820 - Reflect the latest Theme class changes
21821 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
21824 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21826 * Theme.cs: Cache UI resource images and resize them if needed
21828 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21830 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
21831 is called. This fixes the crash in Nexxia when setting the font
21832 attributes in the chat. [However, RTF needs a look-over to make sure
21833 that all SelectionXXX methods handle the special case that selection
21834 is empty and therefore the change must be applied to all text starting
21835 at the cursor/selection start]
21837 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21839 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21840 XplatUIOSX.cs: Added SendMessage and PostMessage methods
21841 * X11Keyboard.cs: Switched to new way of calling PostMessage
21843 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21845 * Theme.cs: Added theme interface for images to allow the theme to
21846 control what images are used for things like FileDialog, MessageBox
21848 * MessageBox.cs: Now uses the new Theme icon/image interfaces
21850 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
21853 - Removed some dead code
21854 - Opening a recently used file does work now
21855 - Small UI enhancements
21858 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
21860 * FileDialog.cs: Forgot too add __MonoCS__
21862 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
21864 * FileDialog.cs: We are able to read recently used files now let's
21865 go on and write them.
21867 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
21869 * FileDialog.cs: Breathe some life into "last open"/"recently used"
21871 * MimeIcon.cs: Do a check for the top level media type also
21873 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
21875 * ThemeClearlooks.cs:
21876 - Added CPDrawStringDisabled
21877 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
21878 some chars if the text doesn't fit into text_rect
21879 - DrawListViewItem: If View = View.LargeIcon center the image;
21880 rewrote the drawing of ListViewItem.Text if View =
21883 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
21885 * MimeIcon.cs: Use default KDE icon theme if there is no
21886 "48x48" directory for the current icon theme, fixes #77114
21887 * Mime.cs: Disable not working and actually not used code.
21888 * ThemeWin32Classic.cs:
21889 - Replace "new SolidBrush" in GetControlBackBrush and
21890 GetControlForeBrush with ResPool.GetSolidBrush
21891 - Changed DrawListViewItem from private to protected virtual
21893 - Added form.MaximizeBox = true
21894 - Don't throw an exception if there is a broken symbolic link
21896 2005-12-23 Jackson Harper <jackson@ximian.com>
21898 * TabControl.cs: Give the panels focus, keyboard navigation is
21899 fixed so this works correctly now.
21900 - We need these key events also.
21901 * ToolBar.cs: Remove some of the poor mans double buffering.
21903 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
21905 * ComboBox.cs: The internal TextBox now returns the focus.
21907 2005-12-23 Jackson Harper <jackson@ximian.com>
21909 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
21911 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21913 * Control.cs: Removed debug code
21914 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
21917 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21919 * Control.cs: When creating the control, update the Z-order after
21920 all it's children are created, too. (Fixes nexxia not showing
21923 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21925 * Control.cs: Do not update the anchoring distances if layout is
21926 suspended, instead do it once layout is resumed
21928 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
21931 - After many hours of debugging, for both Jackson and
21932 myself, it turns out that it helps to set the parent of a control
21933 if you want to actually see it onscreen. In the spirit of that
21934 discovery, we're now setting the parent of the control and
21935 it's children when the control's handle is created. This fix
21936 will make Lutz Roeder's Reflector run happily.
21937 - now just creating the handle instead of the whole control when
21938 getting a graphics context for the control.
21940 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
21942 * ScrollableControl.cs: When calculating the canvas, don't consider
21943 the scrollbar widths. Instead, predict if horizontal scrollbar
21944 will affect canvas when deciding on vertical display and vice versa.
21946 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
21948 * RichTextBox.cs: Set default RTF font for documents that don't
21949 have a font table (Fixes #77076)
21951 2005-12-22 Jackson Harper <jackson@ximian.com>
21953 * TextBoxBase.cs: It's difficult to do, but you can have an empty
21954 clipboard. This prevents a NullRef in that case.
21955 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
21956 clipboard. PRIMARY is for the currently selected text only. (We
21957 should implement PRIMARY at some point.
21959 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
21961 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
21962 a Unicode function with a structure that was defined in Ansi way.
21965 2005-12-21 Jackson Harper <jackson@ximian.com>
21967 * StatusBar.cs: Statusbar handles its fore/back colours on it's
21968 on. Because thats how it rolls. (and this avoids it using ambient
21970 * ThemeWin32Classic.cs: Use the proper back color for filling.
21971 * Menu.cs: Use the system menu bar color for drawing menu
21972 bars. Using the window back color will bring ambient colours into
21975 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
21977 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
21978 Bitmaps were created and not disposed.
21980 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
21982 * Control.cs (CreateControl): Don't do anything if the control is
21983 already created, otherwise we'd fire the OnCreated event more than
21986 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
21988 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
21989 will always match. Instead return -1. Fixes #76464.
21991 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
21993 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
21994 neither the beginning nor the end of the line (Fixes bug #76479)
21996 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
21999 - ControlNativeWindow.ControlFromHandle(): Now handling situation
22000 where handle is invalid
22001 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
22002 instead of slower linear search
22003 * NativeWindow.cs: Don't remove the window from the hashtable until
22004 after the driver has destroyed it (since the driver might use
22005 Control.FromHandle to lookup the control object
22006 * Hwnd.cs: Added DestroyPending property to track if a window is
22007 already destroyed as far as the driver is concerned and only hasn't
22008 yet notified the control
22010 - Activate(): Check if the window is still valid before using the
22012 - Implemented DestroyChildWindow() method to mark child windows as
22013 destroyed when a window is destroyed. This prevents situations
22014 where we might call an X method based on queued events for a
22015 window that already has been destroyed but we haven't yet pulled
22016 the destroy method from the queue.
22017 - Added a call to the new DestroyChildWindow() method to the drivers
22018 DestroyWindow code. Also now marking the destroyed window itself
22021 2005-12-20 Jackson Harper <jackson@ximian.com>
22024 * StatusBarPanel.cs: Don't calculate panel sizes on draw
22025 anymore. Just do them when needed, also track the rects of panels
22026 so that we can optimize refreshing more in the future.
22028 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
22030 * ColorDialog.cs: Fixed focus drawing in small color controls
22032 2005-12-19 Jackson Harper <jackson@ximian.com>
22034 * InternalWindowManager.cs:
22035 * MdiWindowManager.cs: Cleanup some coordinate system changes so
22036 moving windows works properly.
22038 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
22041 - Removed call to InitLayout() from SetBoundsCore(); doc says
22042 it's only called when a control is added to a container
22043 - Split InitLayout logic, moved to separate UpdateDistances() method
22044 since we need to perform those calculations more often than just
22045 when adding the control to a container. (Needed to fix #77022)
22046 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
22047 - Reduced the OnBindingContextChanged events count, don't send them
22048 unless the control is created, we still aren't totally matching
22049 MS, but I can't quite figure out some of their rules
22051 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22053 * ThemeClearlooks.cs: Corrected distance between ProgressBar
22056 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22058 * ThemeClearlooks.cs:
22059 - Updated ProgressBar drawing
22060 - Corrected drawing of ScrollBars and scroll buttons
22061 - Some temporary fixes for minor pixel artefacts
22063 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
22066 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
22067 cause events to be sent in the same order as MS does.
22068 - Added ChangeParent() method to trigger various OnXXXChanged events
22069 that need to be fired when a parent changes (This is a reworking
22070 of the patch from r54254, with the X11 errors fixed)
22071 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
22072 since on MS we get OnLayoutChanged events when calling Clear()
22073 - Changed Enabled property to consider parent state as well, if a
22074 parent is not enabled, the control will not be either
22075 - Changed Parent property to simply call Controls.Add() since that
22076 now does all the work required, this way we avoid code duplication
22077 - Threw in a few OnBindingsContextChanged calls to try and match
22078 when MS sends them. We seem to send a few too many, though.
22079 - Added call to CreateControl when adding the control to a parent.
22080 We were never calling CreateControl. Still needs some work, in
22081 some places we treat HandleCreated and ControlCreated as equal,
22083 - Removed obsolete commented out code from UpdateZOrder()
22085 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22087 * ThemeClearlooks.cs: Updated TrackBar drawing.
22089 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
22091 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
22093 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
22095 * FileDialog.cs: Add the Help button and the open readonly
22096 checkbox only if needed
22098 2005-12-16 Jackson Harper <jackson@ximian.com>
22100 * Control.cs: Make sure we have an active menu before trying to
22101 process commands on it. Prevents menu-less forms from crashing
22102 when Alt is pressed.
22103 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
22105 * RichTextBox.cs: Expand statement to help out gmcs and fix the
22108 2005-12-16 Jackson Harper <jackson@ximian.com>
22110 * InternalWindowManager.cs: Don't translate tool windows screen
22111 coordinates. This fixes windows 'bouncing' around when being moved.
22113 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
22116 - MaxLength now treats 2^31-1 equal to unlimited length (this is
22117 not quite MS compatible, MS uses that number only for single line
22118 and 2^32-1 for multi-line, but I figure it won't hurt keeping
22120 - Now enforcing the MaxLength limit when entering characters
22121 - Added argument to internal Paste() method to track if it's called
22122 from programatically or via keyboard, since keyboard driven pastes
22123 need to enforce max-length
22124 - Added logic to Paste to only paste as many chars as MaxLength
22126 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
22128 - Added Length property to return number of characters in document
22129 - Added private CharCount property which only tracks actual chars
22130 in the document (no linefeeds) and fires event when CharCount
22132 - Added tracking of character count to all methods that alter it
22133 - Added LengthChanged event to allow applications to subscribe
22134 to any changes to the document
22136 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
22139 - Removed local password_char field (moved to TextBoxBase)
22140 - Now setting the document's password var when password is
22143 - Added password_char field (needed here so MultiLine can
22145 - Added logic to MultiLine property setter to set the document's
22146 variable when password display is allowed
22147 - Removed debug code and made some debug code conditional
22149 - Added RecalculatePasswordLine() method to handle special password
22151 - Added PasswordChar property, also added related tracking vars
22152 - Draw() method now uses local text var for grabbing text to draw,
22153 this var is set to line.text unless we're doing password display,
22154 then it is set to the pre-generated all-password-chars line
22155 - Added calling RecalculatePasswordLine() method for password lines
22157 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
22160 - Added Reparented property to allow tracking of Window Manager
22161 reparenting actions (which affect X/Y calculations of toplevel
22163 - Made ToString() print window handles in hex
22165 - AddConfigureNotify(): Now uses reparented state off Hwnd to
22166 determine if X/Y needs offsetting
22167 - AddConfigureNotify(): Fixed offset calculations
22168 - Now adds ReparentNotify messages into the queue
22169 - Now processes ReparentNotify messages and causes a
22170 WM_WINDOWPOSCHANGED message to be sent upstream if a window
22171 is reparented (as most likely it's X/Y coordinates are changed
22174 2005-12-14 Jackson Harper <jackson@ximian.com>
22176 * XplatUIX11.cs: Tool windows still need to respek focus.
22178 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
22180 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
22181 have a working release
22183 2005-12-13 Jackson Harper <jackson@ximian.com>
22185 * Form.cs: Update styles after setting the border style regardless
22186 of whether or not the window is using a window manager.
22188 2005-12-13 Jackson Harper <jackson@ximian.com>
22190 * Form.cs: We now hook into an internal window manager instead of just an
22191 MDI subsystem, this is so we can have properly behaving tool windows.
22192 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
22193 * InternalWindowManager.cs: New internal class that acts as a
22194 window manager for tool windows and as a base for mdi windows.
22195 * MdiWindowManager.cs: New class that acts as a window manager for
22198 2005-12-12 Jackson Harper <jackson@ximian.com>
22200 * Control.cs: Updates so we match behavoir for for implicit
22201 controls. Fixes explosions in MDI.
22203 2005-12-12 Jackson Harper <jackson@ximian.com>
22205 * Control.cs: Implement Invalidate (Region).
22207 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
22210 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
22211 the same events as MS does. MS fires events for each property
22212 except, for unknown reasons, Cursor, when the control is reparented.
22213 I can't seem to totally match add/remove since MS also fires some
22214 VisibleChanged events, which makes no sense. Consolidated the
22215 parenting code into a separate method so it can be called from
22216 both Add and Remove. set_Parent no longer needs any special logic
22217 as it calls the parent's add method which implicitly fires
22219 - Removed some obsolete code and debug output
22220 - Enabled state is inherited from parents, if this is enabled
22222 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
22224 * Form.cs: Removed commented out code
22226 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
22229 - Added internal version of Invoke, with additional argument
22230 indicating if we're calling it from a Dispose() handler. That
22231 way we can avoid BeginInvoke throwing an exception if we're
22232 calling for an already destroyed window.
22233 - Added a dispose argument to BeginInvokeInternal, and made the
22234 check if a valid window handle chain exists conditional on
22235 it not being a dispose call
22236 - Removed code in DestroyHandle to destroy our children. Since we
22237 now handle the WM_DESTROY message we will catch all our children
22239 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
22241 - Added a field to track the application context of the form.
22242 - No need to set closing variable as response to WM_CLOSE, instead
22243 we destroy the window. We also call PostQuitMessage if the form
22244 has an application context (which makes it the main app form,
22245 which, when closed terminates the app)
22247 - Dropped Exit() method, it's naming was confusing
22248 - Added PostQuitMessage() which causes GetMessage to return false
22249 once the message queue is empty
22250 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
22252 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
22253 no longer a valid XplatUI method, but left it in since it's used
22254 internally. Added empty PostQuitMessage() method.
22255 * MenuAPI.cs: Replaced call to Exit() with call to
22256 PostQuitMessage, even though this is probably no longer needed.
22257 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
22258 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
22260 - Replaced call to XplatUI.Exit() with PostQuitMessage()
22261 - Removed old debug code that would call XplatUI for exception
22262 display, enabled standard exception handling (Still not enabled
22263 though, until NativeWindow's ExternalExceptionHandler define
22266 - Added internal method to allow control to update NativeWindow
22267 after a window has been destroyed
22268 - Added handling of already destroyed windows when calling i
22270 - Added removal of handle from list on ReleaseHandle
22272 - Dropped GetMessageResult var and related code
22273 - Added PostQuitState to field to track if PostQuitMessage has been
22275 - Dropped Exit() method
22276 - Added PostQuitMessage() method
22277 - GetMessage now will return false if PostQuitState is set and no
22278 more messages are in the queue.
22279 - Expose handler will no longer generate WM_PAINT messages if we are
22280 in PostQuitState since it's very likely any windows have already
22281 been destroyed, and since Hwnd won't get updated until we have
22282 processed the DestroyNotify we'd be causing X errors.
22284 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22286 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
22287 Thanks to Mike for pointing out the err of my ways.
22289 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22291 * Control.cs(PreProcessMessage): Moved menu handling back, but
22292 after all other key handling, to match MS (who handles Menu in
22294 * Menu.cs (WndProc): Removed my brainfart
22296 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22298 * Control.cs(PreProcessMessage): Removed special menu handling
22299 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
22301 2005-12-07 Mike Kestner <mkestner@novell.com>
22303 * Control.cs : special case SYSKEYUP so that we can adjust keynav
22304 state according in tracker.
22305 * Menu.cs : promote tracker field to base class and provide a tracker
22306 lookup capability. Add/Remove shortcuts dynamically if the top menu
22307 has a tracker. Unparent items that are removed from the collection.
22308 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
22309 * Theme*.cs: add always_show_hotkeys field to support configurability
22310 of mnemonic display. win32 doesn't show mnemonics until Alt is
22313 2005-12-07 Jackson Harper <jackson@ximian.com>
22315 * MdiChildContext.cs: Use Control.ResetCursor.
22316 * Control.cs: ResetCursor needs to set the property so that the
22317 correct XplatUI call gets made.
22319 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22321 * Control.cs: More fixes to make our key events match MS. We
22322 were not setting the modifier state on KeyData, and we were
22323 not generating any events when Alt was pressed with a key
22324 since handling of WM_SYSxxx was missing for the OnKey methods.
22326 2005-12-07 Jackson Harper <jackson@ximian.com>
22328 * MdiChildContext.cs: reenable the sizing code.
22329 - When the mouse leaves a window reset its cursor.
22331 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
22333 * ThemeClearlooks.cs: Reflect latest Hwnd changes
22335 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22337 * Hwnd.cs: Now using the theme 3d bordersize to calculate
22338 widths of Fixed3D borders
22340 2005-12-07 Jackson Harper <jackson@ximian.com>
22342 * MdiClient.cs: Fix warnings. Earn Mike's love.
22344 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
22346 * ThemeClearlooks.cs:
22347 - Adjusted mouse over button color
22348 - Added first parts of CheckBox drawing
22349 - Added correct color for selected text background
22350 - Fixed ComboBox drawing
22351 - Added CPDrawBorder3D and CPDrawBorder
22353 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22355 * XplatUIX11.cs: Added call to XBell for AudibleAlert
22357 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22359 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22360 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
22361 alert users via sound. We could add an enum arg with different
22362 types of alerts in the future
22364 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22366 * Control.cs: Fix behaviour problems pointed out by Mike
22368 2005-12-05 Mike Kestner <mkestner@novell.com>
22370 * StatusBarPanel.cs: add Invalidate method and hook it into all the
22371 prop setters. Calls parent.Refresh for now, but could be maybe be
22372 optimized with an internal method on StatusBar at some point.
22375 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
22377 * RichTextBox.cs: Implemented get_SelectionColor
22379 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
22381 * ThemeClearlooks.cs:
22382 - Removed dead code
22383 - Draw black button border only if button is Form.AcceptButton
22384 - Draw correct button color for pressed RadioButton if the mouse
22385 has entered the button
22386 - Updated ProgressBar drawing!
22387 - Updated CPDrawSizeGrip drawing
22388 - Updated StatusBarPanel drawing
22390 2005-12-05 Mike Kestner <mkestner@novell.com>
22392 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
22393 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
22395 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
22397 * ThemeClearlooks.cs: Initial check-in, activate with
22398 export MONO_THEME=clearlooks
22399 * ThemeEngine.cs: Added ThemeClearlooks
22401 2005-12-03 Mike Kestner <mkestner@novell.com>
22403 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
22406 2005-12-02 Jackson Harper <jackson@ximian.com>
22408 * Form.cs: If the child form has no menu the default main menu is
22409 used as the active menu.
22411 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22413 * ListBox.cs: Check if any items exist before trying to resolve
22414 coordinates into items
22416 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22418 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
22419 as the second color for the background hatch
22421 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22423 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
22424 * RichTextBox.cs: FormatText position arguments are 1-based, now making
22425 sure that what we pass to FormatText is always 1-based. Fixes #76885
22427 2005-11-29 Miguel de Icaza <miguel@novell.com>
22429 * NumericUpDown.cs (EndInit): When we are done initializing,
22430 reflect any updates on the UI.
22432 2005-12-02 Jackson Harper <jackson@ximian.com>
22434 * ImplicitHScrollBar.cs:
22435 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
22436 their container controls.
22437 * TreeView.cs: Use the new implicit scrollbars.
22439 2005-12-02 Jackson Harper <jackson@ximian.com>
22441 * TreeView.cs: Make top_node internal so the TreeNodeCollections
22443 * TreeNodeCollection.cs: If we remove the topnode we need to
22444 update topnode to the next node in line.
22445 - When clearing nodes go through the same process as removing
22446 them, so they get depareneted and checked if they are top node.
22448 2005-12-01 Jackson Harper <jackson@ximian.com>
22450 * TreeView.cs: When imagelists are used the image area is
22451 selectable as well as the text.
22452 - If there are no selected nodes select the first one.
22453 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
22454 so don't do it more then we need to.
22456 2005-12-01 Jackson Harper <jackson@ximian.com>
22458 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
22459 that arrows can be scaled.
22461 2005-12-01 Jackson Harper <jackson@ximian.com>
22463 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
22464 fail. Patch by Dieter Bremes
22466 2005-11-30 Jackson Harper <jackson@ximian.com>
22468 * Form.cs: Property is 2.0 only
22469 * PrintDialog.cs: Signature fix.
22471 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
22474 - No longer artificially moves text 2 pixels down (now that we have
22475 borders this is no longer needed)
22476 - Added calcs for left, hanging and right indent
22478 2005-11-23 Mike Kestner <mkestner@novell.com>
22480 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
22482 2005-11-30 Jackson Harper <jackson@ximian.com>
22484 * MdiChildContext.cs: Set the cloned menus forms, as these don't
22485 get cloned as part of CloneMenu ().
22486 * Menu.cs: Make sure the parent of the items get set correctly
22487 when they are added. And the owners are notified of the changes.
22488 * Form.cs: Create an ActiveMenu property, so that when MDI is used
22489 we can change the menu being displayed/handled by the form without
22490 changing the menu assosciated with the form.
22491 - Don't let Mdi children draw/handle menus.
22493 2005-11-30 Jackson Harper <jackson@ximian.com>
22495 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
22496 a MenuChanged event. Just to make the API a little more
22499 * MenuItem.cs: Use the new OnMenuChanged
22500 * MdiChildContext.cs: Handle menu merging.
22501 * Form.cs: Implement MergedMenu.
22503 2005-11-30 Jackson Harper <jackson@ximian.com>
22505 * Menu.cs: We were misusing Add. Add goes behind the specified
22506 index according to the docs, and does not replace the specified
22507 index. So I added an Insert method.
22509 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
22511 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
22512 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
22514 * RichTextBox.cs: Added calls to base for DnD events
22516 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
22519 - Fixed drag-selection related crash; style fixes
22520 - Implemented undo class
22521 o Implemented method to capture document state for specified
22522 range in document tree
22523 o Implemented method to restore captured document state
22524 o Implemented cursor tracking
22525 o Implemented basic undo stack
22526 - Added undo cursor tracking to methods altering cursor location
22527 - Added undo tracking to selection deletion (still missing
22528 other text-altering hookups)
22530 - Added SelectionLength property
22531 - Implemented CanPaste()
22532 - Implemented Paste()
22533 - Added missing protected methods
22534 - Fixed RTF->Document conversion; now uses font index 0 and color
22535 index 0 as the default font for the parsed text
22536 - Fixed RTF<->Document font size translation
22537 - Fixed RTF generation, now properly handles cross-tag boundaries
22538 for single line selection
22539 - No longer always appends blank line to generated RTF
22541 - Added missing attributes
22542 - Hooked up undo-related methods
22544 - Implemented Copy()
22545 - Implemented Paste()
22546 - Implemented Cut()
22547 - Fixed caret mis-behaviour on backspace across line-boundaries
22549 2005-11-29 Jackson Harper <jackson@ximian.com>
22551 * MdiClient.cs: Add a method for activating mdi children. Very
22552 basic right now. I imagine someday it might need more girth.
22553 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
22554 children windows names are added to the menu item.
22555 * ThemeWin32Classic.cs: Draw the arrow if the item is an
22556 mdilist. This happens regardless of whether or not there are any
22557 mdi windows to see in the list, and according to my tests happens
22558 before the items are even added. Also happens if there isn't even
22559 an mdi client to get windows from.
22561 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
22563 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
22564 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
22566 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
22568 * DataGridTableStyle.cs:
22569 - Create always the styles for the missing columns even if they are
22570 provided by the user (not default table style)
22573 - Fixes SetDataBinding (always re-attach source)
22574 - Fixes SetNewDataSource (only clear styles if they are not for
22576 - Expands OnTableStylesCollectionChanged to handle style refresh
22577 and remove properly
22579 2005-11-29 Jackson Harper <jackson@ximian.com>
22581 * FileDialog.cs: Implement missing bits, remove some dead
22583 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
22584 creation of the panel so that the options set on the dialog are
22585 seen when the panel is created.
22586 * TreeView.cs: raise a click when items are clicked.
22588 2005-11-29 Jackson Harper <jackson@ximian.com>
22590 * MdiClient.cs: Pass some signature methods through to base.
22592 2005-11-28 Jackson Harper <jackson@ximian.com>
22594 * ListView.cs: Raise the click event when items are clicked.
22596 2005-11-28 Jackson Harper <jackson@ximian.com>
22598 * MdiClient.cs: Make this algorithm even more beautiful. And fix
22601 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
22603 * ThemeNice.cs: - Removed 1 pixel bitmaps
22604 - Use SmoothingMode.AntiAlias where it makes sense
22605 (ScrollButton arrow for example)
22606 - Enhanced Button focus drawing
22607 - Fixed ComboBox drawing (no artefacts anymore, focus
22608 rectangle is back again, reduced size of ComboButton, etc.)
22609 - Fixed RadioButton focus drawing for Appearence.Button
22610 - Slight ScrollButton redesign
22611 - Some LinearGradientBrush size fixes
22612 - GroupBoxes have now rounded edges
22613 - Fixed StatusBar drawing
22615 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
22617 * ThemeNice.cs: - Remove dead code
22618 - use correct background colors for menus, etc.
22619 - Fake pixel drawing with 1 pixel bitmaps
22621 2005-11-24 Jackson Harper <jackson@ximian.com>
22623 * MdiClient.cs: Size the scrollbars when resizing the window.
22624 - Resize the maximized windows when the client is resized
22625 * Form.cs: Make the child context available
22627 2005-11-23 Jackson Harper <jackson@ximian.com>
22629 * MdiChildContext.cs: Don't size windows if they are maximized.
22631 2005-11-23 Mike Kestner <mkestner@novell.com>
22633 * ContextMenu.cs: use MenuTracker.
22634 * Control.cs: remove menu handle usage.
22635 * Form.cs: remove menu handle usage.
22636 * Hwnd.cs: remove menu handle usage.
22637 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
22638 motion and clicks to the new Tracker handlers.
22639 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
22641 * MenuAPI.cs: refactored to combine popup and menubar event handling.
22642 Killed the MENU and MENUITEM data types and associated collections
22643 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
22644 MenuTracker class that exposes the leftovers from the old MenuAPI
22645 static methods. Restructured Capture handling so that only one grab is
22646 done for the entire menu hierarchy instead of handing off grabs to
22647 submenus. Tracker now has an invisible control to Capture when active.
22648 * MenuItem.cs: add sizing accessors, kill Create
22650 * Theme.cs: remove menu handle and MENU(ITEM) usage.
22651 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
22652 MENU(ITEM). remove menu handle usage, use Menu directly.
22653 * XplatUIDriver.cs: remove menu handle usage.
22654 * XplatUIOSX.cs: remove menu handle usage.
22655 * XplatUIWin32.cs: remove menu handle usage.
22656 * XplatUIX11.cs: remove menu handle usage.
22658 2005-11-22 Jackson Harper <jackson@ximian.com>
22660 * Hwnd.cs: Don't compute the menu size for
22661 DefaultClientRectangle.
22662 - Reenable menu sizes being computed for GetClienRectangle.
22663 * Form.cs: Remove comment of trechery
22665 2005-11-22 Jackson Harper <jackson@ximian.com>
22667 * Hwnd.cs: The adjustments for the menu bar are made when it is
22668 attached to the form.
22670 2005-11-19 Jackson Harper <jackson@ximian.com>
22672 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
22673 (just like on windows).
22675 2005-11-19 Jackson Harper <jackson@ximian.com>
22677 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
22678 use real buttons anymore because they are in non client area. The
22679 one TODO here is that I need to somehow invalidate a section of
22680 the non client area.
22682 2005-11-18 Jackson Harper <jackson@ximian.com>
22684 * Control.cs: Put the enum check back in now that MDI doesnt have
22685 to use this to set border styles.
22686 * Form.cs: Only set mdi child windows borders if the handle has
22688 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
22689 this directly on to the driver.
22690 - Get the move start position before adjusting for the titlebar
22691 height, this fixes the windows "skipping" when they are first
22694 2005-11-18 Jackson Harper <jackson@ximian.com>
22696 * XplatUIX11.cs: Just compute the mdi borders separately as they
22697 don't totally match up with normal form borders.
22699 2005-11-18 Jackson Harper <jackson@ximian.com>
22701 * Control.cs: Set WS_ styles for borders, so that the driver does
22702 not have to retrieve the control instance to figure out what kind
22703 of borders it should have.
22704 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
22705 driver can know its an mdi child easily.
22706 * XplatUIX11.cs: Get the border styles and whether the window is
22707 MDI from the Styles and ExStyles params instead of having to get a
22708 control. This prevents a chicken and egg problem.
22710 2005-11-18 Jackson Harper <jackson@ximian.com>
22712 * MdiClient.cs: Fix typo so scrollbars show up correctly.
22714 2005-11-18 Jackson Harper <jackson@ximian.com>
22716 * MdiClient.cs: Calculate when to add and remove scrollbars
22718 * MdiChildContext.cs: Adjust the y position to take the titlebar
22720 - No height for FormBorderStyle.None
22722 2005-11-18 Jackson Harper <jackson@ximian.com>
22724 * Control.cs: Allow non enum values to be used for
22725 InternalBorderStyle. MDI does this to set a special border style.
22726 - New utility methods for converting points to/from client coords
22727 - Add the newly created control to the Controls collection before
22728 updating its style. This way UpdateStyle can walk the control
22729 heirarchy to find the control if needed.
22730 so I don't need to create a new Point object all the time.
22731 * Form.cs: Let MDI windows handle their border styles.
22732 - Set styles on MDI windows so the correct title style is derived.
22733 * MdiChildContext.cs: Move all the painting and window handling
22734 into the non client area.
22735 - Use correct sizing and put correct buttons on frames based on
22736 the FormBorderStyle.
22737 - Notify the mdi client about scrolling
22738 - Need to handle the buttons ourselves now, because they are all
22739 in non client areas and we can't add controls there.
22740 * MdiClient.cs: Halfway to scrolling, this implementation is
22741 somewhat broken though, we need to check to make sure other
22742 windows aren't causing scrolling before removing the bars. Also
22743 the bars need to be drawn on top, maybe I can switch implicit
22744 controls to be on top.
22745 * Hwnd.cs: caption_height and tool_caption_height are now
22746 properties of an hwnd, this way they can be set by the driver
22747 based on the type of window they are. In X11 the window manager
22748 handles the decorations so caption_height is zero unless its an
22750 - Add 3 pixel borders for MDI windows (0xFFFF).
22751 - Get rid of some code duplication, have DefaultClientRectanle
22752 just call GetClientRectangle.
22753 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
22755 - Set border styles differently for mdi windows.
22756 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
22759 2005-11-15 Mike Kestner <mkestner@novell.com>
22761 * Menu.cs: when adding an item to the collection, if item is already
22762 parented, remove it from the parent.
22764 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
22766 * X11DesktopColors.cs: Added KDE support
22768 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
22771 - Clipboard methods now can translate Rtf format
22772 - No longer removes clipboard contents whenever a new format is added
22773 to allow placing multiple formats on the clipboard
22774 * Clipboard.cs: Clipboard now supports getting a IDataObject and
22775 will place all formats contained in it onto the clipboard. Also
22776 now cleans the clipboard before placing a new object onto it
22778 - Implemented set_Rtf
22779 - Implemented set_SelectedRtf
22780 - Created InsertRTFFromStream() method to allow single code base
22781 for all properties and methods that insert RTF into document
22782 - Removed debug output
22784 - Fixed Delete(int) to fix up line numbers
22785 - Fixed ReplaceSelection to combine start and end line
22786 - Fixed serious DeleteChars bug that would leave the document tree
22788 - Improved DumpTree with several logic checks to detect broken
22790 - Removed debug lines
22791 - Fixed Caret.WordForward/WordBack moving code, now always also
22792 updates caret.tag (fixes crash when word-selecting across tag
22793 boundaries via keyboard)
22794 - Added Insert() method for inserting multiline text into documents
22795 - Fixed DeleteChars() calculation errors that would cause a broken
22796 tag chain with multiple tag lines
22797 - DeleteChars() no longer crashes on multi-tag lines if not all tags
22798 - Split() no longer moves caret if split is at caret location
22799 - ReplaceSelection() now updates the cursor and re-displays it
22800 - ReplaceSelection() now uses new Insert() method to avoid code
22802 - FormatText() can now handle formatting partial lines
22804 - Append now uses new TextControl.Insert() method (this avoids
22806 - Implemented Ctrl-X (Cut) (
22807 - Implemented Ctrl-C (Copy)
22808 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
22809 regeneration when pasting text; roundtripping Copy&Paste within
22810 edit control still fails due to some calculation bugs in GenerateRTF)
22811 - The Delete key will now remove the current selection if it is visible
22812 * TextBox.cs: Removed debug lines
22813 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
22814 driver to be initialized and can't therefore be done via a static ctor)
22816 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
22818 * TextControl.cs: Added backend code for finding char arrays and strings
22820 - Added mouse wheel scroll support
22821 - Added support for VScroll and HScroll events
22823 - Implemented all seven Find() variants
22824 - Implemented GetCharFromPosition()
22825 - Implemented GetCharIndexFromPosition()
22826 - Implemented GetLineFromIndex()
22827 - Implemented GetPositionFromCharIndex();
22828 - Implemented SaveFile for PlainText and UnicodeText
22829 - Fixed set_Font, now setting a new font applies that font to
22831 - Implemented generic Document to RTF converter
22832 - Implemented SaveFile for RichText format (still missing unicode
22833 conversion for non-ansi chars)
22834 - Implemented get_Rtf
22835 - Implemented get_SelectedRtf
22837 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
22839 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
22840 to allow any captures to be released before triggering OnClick. This
22841 way a click handler may capture the mouse without interference.
22842 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
22843 This way we send them even though X may not allow a grab (if the window
22844 isn't visible, for example)
22846 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
22848 * DataGridViewRowEventArgs.cs: DataGridView implementation
22849 * DataGridViewElement.cs: DataGridView implementation
22850 * DataGridViewComboBoxCell.cs: DataGridView implementation
22851 * DataGridViewDataErrorContexts.cs: DataGridView implementation
22852 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
22853 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
22854 * ImageLayout.cs: DataGridView implementation
22855 * DataGridViewComboBoxColumn.cs: DataGridView implementation
22856 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
22857 * DataGridViewSelectionMode.cs: DataGridView implementation
22858 * IDataGridViewEditingControl.cs: DataGridView implementation
22859 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
22860 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
22861 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
22862 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
22863 * DataGridViewColumnSortMode.cs: DataGridView implementation
22864 * DataGridView.cs: DataGridView implementation
22865 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
22866 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
22867 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
22868 * Padding.cs: DataGridView implementation
22869 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
22870 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
22871 * DataGridViewRowEventHandler.cs: DataGridView implementation
22872 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
22873 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
22874 * DataGridViewButtonCell.cs: DataGridView implementation
22875 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
22876 * DataGridViewEditMode.cs: DataGridView implementation
22877 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
22878 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
22879 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
22880 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
22881 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
22882 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
22883 * DataGridViewCellEventHandler.cs: DataGridView implementation
22884 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
22885 * DataGridViewCellStyleConverter.cs: DataGridView implementation
22886 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
22887 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
22888 * DataGridViewColumnEventArgs.cs: DataGridView implementation
22889 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
22890 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
22891 * QuestionEventArgs.cs: DataGridView implementation
22892 * IDataGridViewEditingCell.cs: DataGridView implementation
22893 * DataGridViewTriState.cs: DataGridView implementation
22894 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
22895 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
22896 * DataGridViewColumnCollection.cs: DataGridView implementation
22897 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
22898 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
22899 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
22900 * DataGridViewColumn.cs: DataGridView implementation
22901 * DataGridViewCellBorderStyle.cs: DataGridView implementation
22902 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
22903 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
22904 * DataGridViewRow.cs: DataGridView implementation
22905 * DataGridViewImageCellLayout.cs: DataGridView implementation
22906 * DataGridViewImageCell.cs: DataGridView implementation
22907 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
22908 * DataGridViewCheckBoxCell.cs: DataGridView implementation
22909 * DataGridViewHeaderCell.cs: DataGridView implementation
22910 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
22911 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
22912 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
22913 * DataGridViewTextBoxColumn.cs: DataGridView implementation
22914 * QuestionEventHandler.cs: DataGridView implementation
22915 * DataGridViewCellStyleScopes.cs: DataGridView implementation
22916 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
22917 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
22918 * DataGridViewCell.cs: DataGridView implementation
22919 * DataGridViewCellEventArgs.cs: DataGridView implementation
22920 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
22921 * DataGridViewCellStyle.cs: DataGridView implementation
22922 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
22923 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
22924 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
22925 * TextFormatFlags.cs: DataGridView implementation
22926 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
22927 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
22928 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
22929 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
22930 * DataGridViewButtonColumn.cs: DataGridView implementation
22931 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
22932 * HandledMouseEventArgs.cs: DataGridView implementation
22933 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
22934 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
22935 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
22936 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
22937 * DataGridViewRowCollection.cs: DataGridView implementation
22938 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
22939 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
22940 * DataGridViewHitTestType.cs: DataGridView implementation
22941 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
22942 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
22943 * DataGridViewColumnEventHandler.cs: DataGridView implementation
22944 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
22945 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
22946 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
22947 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
22948 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
22949 * DataGridViewContentAlignment.cs: DataGridView implementation
22950 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
22951 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
22952 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
22953 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
22954 * DataGridViewPaintParts.cs: DataGridView implementation
22955 * DataGridViewCellCollection.cs: DataGridView implementation
22956 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
22957 * DataGridViewImageColumn.cs: DataGridView implementation
22958 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
22959 * DataGridViewElementStates.cs: DataGridView implementation
22960 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
22961 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
22962 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
22963 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
22964 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
22965 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
22966 * DataGridViewRowHeaderCell.cs: DataGridView implementation
22967 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
22968 * DataGridViewTextBoxCell.cs: DataGridView implementation
22969 * DataGridViewBand.cs: DataGridView implementation
22970 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
22971 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
22972 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
22973 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
22974 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
22975 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
22976 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
22977 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
22978 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
22979 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
22980 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
22982 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
22984 * ThemeWin32Classic.cs:
22985 - Draw the outside focus rectangle around buttons
22986 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
22987 doesn't use end caps for every dash of a line anymore. This
22988 workaround ignores the forecolor.
22990 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
22992 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
22995 2005-11-07 Jackson Harper <jackson@ximian.com>
22997 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
22999 2005-11-07 Jackson Harper <jackson@ximian.com>
23001 * ScrollableControl.cs: Calculate the maximum and change vars
23002 (more) correctly so that scrollbars appear as a sensible size.
23004 2005-11-04 Jackson Harper <jackson@ximian.com>
23006 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
23008 * TreeView.cs: When the tree is sorted null out the top_node so
23009 that it is recalculated.
23010 - Use dotted lines instead of dashed lines to match MS better.
23012 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
23015 - Implements key search for items. Useful when browsing files with FileDialog
23016 - When changing view mode or when clear the items reset scrollbar positions
23018 2005-11-04 Jackson Harper <jackson@ximian.com>
23020 * CurrencyManager.cs: Implement the MetaDataChanged event, the
23021 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
23022 as to what the method may do as there is no real way of creating a
23023 derived CurrencyManager and calling the method.
23025 2005-11-03 Jackson Harper <jackson@ximian.com>
23027 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
23028 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
23029 method which seems to just be used internally to refresh the tabs.
23031 2005-11-03 Jackson Harper <jackson@ximian.com>
23033 * TabControl.cs: Implement the remove method. Fix some broken
23036 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23038 * DateTimePicker.cs:
23039 - Added missing DateTimePickerAccessibleObject class
23040 - Added missing events
23041 - Added OnFontChanged method
23042 * Form.cs: Added missing attributes
23043 * TreeView.cs: Added missing attributes
23045 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23047 * GridItemCollection.cs: Fix signatures
23049 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23051 * XplatUI.cs: Updated build rev/date
23052 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
23053 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
23054 * Application.cs: Trigger context-specific ExitThread events
23056 2005-11-03 Jackson Harper <jackson@ximian.com>
23060 * GridTableStylesCollection.cs:
23065 * MonthCalendar.cs: Signature fixes
23067 2005-11-03 Jackson Harper <jackson@ximian.com>
23069 * TreeNodeCollection.cs: Remove should not be virtual.
23070 * TreeView.cs: Implement the last of the missing methods.
23072 2005-11-03 Jackson Harper <jackson@ximian.com>
23074 * TreeNodeConverter.cs: Implement to get off my class-status back.
23076 2005-11-03 Jackson Harper <jackson@ximian.com>
23078 * TreeView.cs: Hookup the bits for drag and drop.
23079 * TreeNode.cs: Don't cache the tree_view or index anymore, now
23080 that nodes can be moved from tree to tree easily this just causes
23081 all sorts of problems.
23082 * TreeNodeCollection: Don't need to give treenodes an index and
23083 treeview anymore when they are added, these are computed on the
23084 fly. Also make sure to remove a node before its added.
23086 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23089 - Added CaretSelection enum
23090 - Added comparison methods to Marker struct, makes selection code
23092 - Added SelectionStart and SelectionEnd as 'moveable' location for
23093 the CaretDirection enum and handler
23094 - Added selection_prev variable to track optimized invalidation for
23095 word and line selection
23096 - Added SelectionVisible property (returns true if there is a valid
23098 - Switched CaretHasFocus to only display the caret if there is no
23100 - Avoiding StringBuilder.ToString to retrieve a single char, instead
23101 using the direct character index; should be much faster
23102 - Added various conditional debug statements
23103 - Fixed invalidation calculation for selection ranges
23104 - Added ExpandSelection() method to support word and line selection
23105 - Switched SetSelectionToCaret to use new Marker compare overloads
23106 - Added central IsWordSeparator() method to determine word
23107 separators/whitespace and FindWordSeparator() to streamline common
23108 usage of IsWordSeparator()
23110 - Removed unneeded grabbed variable, it was just mirroring
23112 - No longer firing OnTextChanged event when Text setter is called,
23113 since the base will fire the event for us
23114 - Added handling of Ctrl-Up/Down selection
23115 - Added handling of Shift-Cursorkey selection
23116 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
23118 - Added handling of Shift and Ctrl-Shift-Home/End selection
23119 - Removed some debug output
23120 - Added handling for single/double/tripple-click to place caret/
23121 select word/select line respectively (Fixes bug #76031)
23122 - Added support for drag expansion of word/line selection
23123 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
23126 2005-11-02 Jackson Harper <jackson@ximian.com>
23128 * X11Dnd.cs: If the drag is going to and from a MWF window just
23129 copy the data instead of sending it out through the X Selection
23132 2005-11-02 Jackson Harper <jackson@ximian.com>
23135 * XplatUIX11.cs: When in a drag we don't want motion notify
23136 messages to get passed on to the other controls. This prevents
23137 mouse move messages from showing up in the drag source.
23139 2005-11-02 Jackson Harper <jackson@ximian.com>
23141 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
23142 the correct button is release to end a drag.
23143 * XplatUIX11.cs: Make the button state internal so the drag system
23144 can access it. Dragging needs to know about all button releases,
23145 not just left button.
23147 2005-11-02 Miguel de Icaza <miguel@novell.com>
23149 * Form.cs (Icon): If the icon is null, reset the icon to the
23152 * Cursor.cs: When writing the AND-mask bitmap do not include the
23153 number of colors, but hardcode those to two (black and white),
23154 fixes the loading of color cursors (Paint Dot Net).
23156 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
23157 turn off autoscaling.
23159 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
23161 2005-11-02 Jackson Harper <jackson@ximian.com>
23163 * X11Dnd.cs: Make sure to send a status message if the pointer
23164 enters a control that can not accept a drop, otherwise the cursor
23165 isn't updated correctly. Also tried to compress the lines of code
23168 2005-11-02 Jackson Harper <jackson@ximian.com>
23170 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
23171 set actions correctly. This isn't perfect as XDND and win32 have
23172 some differences on how you allow actions. I'll clear this up by
23173 adding a path for drag from MWF to MWF windows.
23174 * XplatUIX11.cs: Hook into the dnd system.
23176 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
23178 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
23179 previously shown but they are no longer need it. Very obvious when
23180 browsing files with FileDialog.
23182 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
23184 * Control.cs: We always need to call OnPaintBackground. We pretty much
23185 ignore AllPaintingInWmPaint and always do the painting there, whether
23186 it's set or not, since we always ignore the WM_ERASEBKGND message
23187 (which we don't generate on X11). This fixes #76616.
23188 * Panel.cs: Removed unneeded background painting. This happens properly
23189 in Control.cs already
23191 2005-10-31 Mike Kestner <mkestner@novell.com>
23193 * Menu.cs: Add items to collection before setting their index.
23194 * MenuItem.cs : add range checking with ArgumentException like MS.
23197 2005-10-31 Jackson Harper <jackson@ximian.com>
23199 * ListBox.cs: Invalidate if the area is visible at all not just
23200 contained in the visible rect. Fixes unselection of semi visible
23203 2005-10-31 Jackson Harper <jackson@ximian.com>
23205 * Control.cs: Consistently name the dnd methods. Make them
23206 internal so we can override them to match some MS behavoir
23208 * Win32DnD.cs: Use the new consistent names.
23210 2005-10-31 Jackson Harper <jackson@ximian.com>
23212 * TreeView.cs: Don't draw the selected node when we lose focus.
23214 2005-10-31 Jackson Harper <jackson@ximian.com>
23216 * X11Dnd.cs: We still need to reset the state even though a full
23217 reset isn't being done, otherwise status's still get sent all over
23220 2005-10-31 Jackson Harper <jackson@ximian.com>
23222 * Control.cs: Make the dnd_aware flag internal so the dnd
23223 subsystem can check it. Catch exceptions thrown in dnd handlers to
23225 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
23226 * X11Dnd.cs: Handle null data in the converters. Set the XDND
23227 version when sending a XdndEnter. Use the control/hwnd dnd_aware
23228 flags to reduce the number of dnd enters/status's sent.
23230 2005-10-31 Jackson Harper <jackson@ximian.com>
23232 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
23234 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
23236 * PictureBox.cs: Fixes 76512
23238 2005-10-28 Jackson Harper <jackson@ximian.com>
23240 * X11Dnd.cs: Early implementation to support winforms being a drag
23241 source for data on X11. Also restructured the converters so they
23242 can go both ways now.
23243 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
23245 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
23247 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
23250 2005-10-27 Jackson Harper <jackson@ximian.com>
23252 * TreeNode.cs: Implement serialization so my DnD examples will work.
23254 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
23256 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
23257 TreeView.cs: Don't dispose objects that are not owned.
23259 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
23261 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
23262 should retrieve the current cursor and report that, but XplatUI
23263 doesn't (yet) have an interface for that (and I'm not sure I even
23265 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
23266 until any message loop processing is done (and the WM_SETCURSOR
23267 replaces the cursor to the proper one)
23269 - Fixed override behaviour, we can't set the cursor globally on X11,
23270 just for our windows.
23271 - Invalidating the System.Drawing X11 display handle when we are
23273 * Control.cs: Fix to make csc happy
23275 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
23278 - get_Text: Add last line (without trailing newline) to returned
23279 value (Fixes 76212)
23280 - get_TextLength: Count last line in returned length
23281 - ToString: Call Text property instead of duplicating code
23283 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
23285 * ImageList.cs: Dispose ImageAttributes objects.
23287 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
23289 * ImageList.cs: Use attribute constructors with less arguments where
23292 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
23294 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
23295 Use typeof instead of strings when assembly is referenced. Added
23296 some more comments.
23298 2005-10-21 Jackson Harper <jackson@ximian.com>
23300 * ListView.cs: Raise a double click event. Also tried to somewhat
23301 fix when the selectedindexchanged event is raised. Its still
23304 2005-10-21 Jackson Harper <jackson@ximian.com>
23306 * TreeView.cs: New method to invalidate the plus minus area of a
23307 node without invalidating the whole node (maybe this can be used
23308 in some more places).
23309 * TreeNodeCollection.cs: When adding to an empty node we need to
23310 invalidate its plus minus area so the little block shows up.
23312 2005-10-21 Jackson Harper <jackson@ximian.com>
23314 * TreeView.cs: Make sure that when we invalidate a node the bounds
23315 are big enough to cover the selected box and the focus
23316 rectangle. Use a different colour for the lines connecting nodes
23317 so they show up with all themes.
23319 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23321 * NativeWindow.cs: Don't call anything that could call into the driver,
23322 we might be on a different thread.
23324 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23326 * Control.cs(Dispose): Since Dispose might run on a different thread,
23327 make sure that we call methods that could call into the driver via
23328 invoke, to avoid thread issues
23330 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23332 * XplatUI.cs: Removed finalizer
23333 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
23334 not allowing to be called on the finalizer thread.
23336 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
23339 - Reverted r51889 and r51891.
23340 - Added ImageListItem class that stores unmodified image items and image
23341 properties required to create list images until handle is created.
23342 - Added AddItem and moved image creation logic to AddItemInternal.
23343 - Added CreateHandle method that creates images based on unmodified items.
23344 - Added DestroyHandle that changes state to store unmodified items.
23345 - Add and AddStrip methods no more create handle.
23346 - ReduceColorDepth has no return value.
23347 - Dispose destroys handle.
23348 - Modified other methods to reflect the above changes.
23349 - Implemented key support.
23350 - Added profile 2.0 members and attributes.
23351 - Added private Reset and ShouldSerialize methods that provide the same
23352 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
23353 them as they are private.
23354 - Added some more comments about implementation details.
23356 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23358 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
23360 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23362 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
23364 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23366 * DataGridDrawingLogic.cs: Fixes column hit calcultation
23367 * DataGridColumnStyle.cs: Remove debug message
23369 2005-10-20 Jackson Harper <jackson@ximian.com>
23371 * TreeView.cs: We can always get input keys regardless of whether
23372 or not editing is enabled. They are used for navigation.
23374 2005-10-20 Jackson Harper <jackson@ximian.com>
23376 * TreeNode.cs: Use the viewport rect for determining if a node
23377 needs to be moved for visibility. Don't use Begin/End edit. This
23378 calls a full refresh when its done.
23379 * TreeView.cs: New SetBottom works correctly. Make the viewport
23380 rect property internal so the treenodes can see it. When clicking
23381 on a node we need to ensure that its visible because it might just
23382 be partly visible when clicked.
23384 2005-10-20 Jackson Harper <jackson@ximian.com>
23386 * TreeNodeCollection.cs: Remove debug code.
23388 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
23390 * Datagrid.cs: Implements column sorting in Datagrid
23391 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
23393 2005-10-20 Jackson Harper <jackson@ximian.com>
23395 * TreeNodeCollection.cs: Remove items properly. Update the correct
23396 area after removing them.
23398 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
23400 * Datagrid.cs: Should not call base.OnPaintBackground
23402 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23404 * XplatUIX11.cs (GetMessage):
23405 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
23406 window instead of client window
23407 - Now properly calculates NC_xBUTTONUP message coordinates
23408 - ScreenToMenu now properly calculates it's coordinates of whole
23409 window, since menus are in the whole window, not in the client
23411 - Added WholeToScreen coordinate translation method
23413 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23415 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
23416 want to return a message, loop back to the beginning of the function
23417 and grab the next real message to process instead.
23419 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23421 * Splitter.cs: Properly set limits if no filler control is used
23423 2005-10-19 Jackson Harper <jackson@ximian.com>
23425 * ColorDialog.cs: Don't show the help button if it is not enabled
23426 instead of disabling it (this is what MS does). Don't create the
23427 panel until the dialog is run, otherwise the vars (such as
23428 ShowHelp) are not set yet.
23430 2005-10-19 Jackson Harper <jackson@ximian.com>
23432 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
23433 are reduced when adding nodes.
23435 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
23438 2005-10-19 Jackson Harper <jackson@ximian.com>
23440 * FolderBrowserDialog.cs: End editing our treeview so the window
23441 actually gets refreshed.
23443 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
23445 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
23446 Obsoleted handling of WM_ERASEBKGND, now always draws our background
23449 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23451 * MenuAPI.cs: Returns after Hidding window
23452 * XplatUIX11.cs: Added TODO found while debugging menu issues
23454 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
23456 * XplatUIX11.cs: Do not re-map the whole window when it's size
23457 becomes non-zero unless it's supposed to be actually visible
23459 2005-10-18 Jackson Harper <jackson@ximian.com>
23461 * TreeView.cs: We don't need to keep a count anymore.
23462 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
23463 use the Grow method.
23465 2005-10-18 Jackson Harper <jackson@ximian.com>
23467 * TreeNodeCollection.cs: Insert is not supported on arrays, so
23468 implement it manually here.
23470 2005-10-18 Jackson Harper <jackson@ximian.com>
23472 * ImageList.cs: Dont kill the list when the colour depth is
23473 changed, just change the colour depth of all the images.
23474 - Same goes for setting the image size. Just resize them all
23475 instead of killing the list softly.
23477 2005-10-18 Jackson Harper <jackson@ximian.com>
23479 * Control.cs: Don't invalidate empty rectangles.
23481 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23484 - Adds checked item to the Checked/Item lists (where empty before)
23485 - Do not add items to the Selected lists if they are already present
23487 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
23488 - When deleting items make sure that we delete them for the Selected
23489 and Checked list also.
23491 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23493 * Label.cs: Dispose objects no longer used
23494 * ThemeWin32Classic.cs: Dispose objects no longer used
23496 2005-10-18 Jackson Harper <jackson@ximian.com>
23498 * TabControl.cs: Don't refresh the whole control when the tabs are
23499 scrolled, we just need to refresh the tab area.
23501 2005-10-17 Jackson Harper <jackson@ximian.com>
23503 * XplatUIX11.cs: Compress code a little bit. Only calculate the
23504 after handle when we need it.
23506 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
23508 * Control.cs: When the parent size changes, recalculate anchor
23509 positions. Partial fix for #76462
23511 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
23513 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
23514 drawn. Fixes #76462
23516 2005-10-17 Jackson Harper <jackson@ximian.com>
23518 * MonthCalendar.cs: Don't create the numeric up down until our
23519 handle is created. Otherwise our handle is created in the
23520 constructor and we don't know if we are a WS_CHILD or WS_POPUP
23523 2005-10-17 Jackson Harper <jackson@ximian.com>
23525 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
23528 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
23529 * TreeNode.cs : small logical fix (was using local var instead of field)
23531 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
23533 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
23535 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
23537 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
23539 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
23542 - Re-implemented anchoring code. My first version was really broken.
23543 This fixes bug #76033. Unlike the previous implementation we will
23544 no longer have round errors since all numbers are calculated from
23545 scratch every time. Removed various anchor-related obsolete vars.
23546 - InitLayout no longer causes layout event firing and layout to be
23549 2005-10-16 Jackson Harper <jackson@ximian.com>
23551 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
23554 2005-10-16 Jackson Harper <jackson@ximian.com>
23556 * TabControl.cs: Remove debug code.
23558 2005-10-16 Jackson Harper <jackson@ximian.com>
23560 * XEventQueue.cs: Increase the default queue size (very simple
23561 apps needed to grow the queue).
23562 * Hwnd.cs: No finalizer so we don't need to suppress
23563 finalization. Compute the invalid area manually so a new rectangle
23564 does not newto be created.
23565 * ScrollableControl.cs: Don't set any params (otherwise visibility
23566 isn't set correctly).
23567 * MdiChildContext.cs: New constructor takes the mdi parent so it
23568 doesn't have to be computed and avoids a crash on windows. Draw
23569 the window icon properly, and allow the text to be seen.
23570 * Form.cs: Use new MdiChildContext constructor. Make sure the
23571 child context isn't null in wndproc.
23572 * TabControl.cs: Don't set focus, this is muddling keyboard
23573 behavoir. Expand the tab rows when a window size increase will
23574 allow extra tabs to be seen. Don't allow tabs smaller than the
23575 width of a window to be scrolled out of view.
23577 * TreeView.cs: Use measure string to calculate a nodes width, the
23578 width is cached and only updated when the text or the font is
23579 changed. Don't check for expand/collapse clicks on the first level
23580 nodes if root lines are disabled.
23582 2005-10-16 Ritvik Mayank <mritvik@novell.com>
23584 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
23586 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
23588 * DataGridBoolColumn.cs: fixes warning
23590 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
23592 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
23593 to match more to match more precisely the MS Net behavior
23595 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23597 * Hwnd.cs: Added field to track if window is mapped
23599 - Unmap windows if they become 0-size, re-map when
23600 they are >0 again; fixes #76035
23601 - Re-set our error handler after initializing X11Desktop
23602 to override any error handlers Gtk or whatever was called
23605 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23607 * CheckedListBox.cs: Removed unused vars
23608 * ListView.cs: Fixed signatures
23609 * RichTextBox.cs: Removed unused vars
23610 * TextBoxBase.cs: Removed unused vars
23611 * XplatUIWin32.cs: Removed unused vars
23612 * XplatUIX11.cs: Removed unused vars
23613 * XplatUI.cs: Updated version and date to latest published
23615 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23617 * Cursor.cs: Added private .ctor to work around a bug in
23618 resourceset (Thanks to Geoff Norton for the help on this)
23619 * SplitterEventArgs.cs: Made fields accessible so we don't
23620 waste boatloads of objects and can reuse the same one
23622 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
23623 any captions and borders when generating screen coordinates
23624 * Splitter.cs: Reimplemented control, now fully complete, uses
23625 rubberband drawing, supports and obeys all properties, has
23628 2005-10-13 Miguel de Icaza <miguel@novell.com>
23630 * Form.cs (Form): Setup default values for autoscale and
23631 autoscale_base_size; Make these instance variables, not static
23634 (OnLoad): on the first load, adjust the size of the form.
23636 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23638 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
23639 width argument to DrawReversibleRectangle()
23640 * XplatUIWin32.cs, XplatUIX11.cs:
23641 - Implemented width for DrawReversibleRectangle()
23642 - Added logic to DrawReversibleRectangle that recognizes a zero
23643 width or height and only draws a line in that situation
23645 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
23647 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
23648 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
23649 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
23650 method (it uses our FosterParent window to get a graphics context)
23652 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
23654 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
23655 and SetWindowBackground methods
23657 - Setting proper ControlStyles
23658 - We no longer call XplatUI.SetWindowBackground and XplatUI.
23659 EraseWindowBackground, instead we draw the window background
23660 ourselves in PaintControlBackground. This behaviour is
23661 required to match MS, where, when OnPaintBackground is not
23662 called, the background is not drawn.
23663 - Removed unneeded Refresh() in set_Text
23664 * Hwnd.cs: Dropped the ErasePending support. No longer needed
23666 - Created DeriveStyles method to translate from CreateParams to
23667 FormBorderStyle and TitleStyle, also handles BorderStyle (which
23668 matches FormBorderStyle enum values)
23669 - Consolidated SetHwndStyles and CalculateWindowRect border/title
23670 style calculations into single DeriveStyles method
23671 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
23672 from redrawing the whole window on any resize or expose.
23673 - Fixed CreateWindow usage of SetWindowValuemask. Before not
23674 all styles were applied to our whole/client window appropriately
23675 - Removed EraseWindowBackground() and SetWindowBackground() methods
23676 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
23677 no longer clear/redraw the background through X
23678 - Removed handling of erase_pending bit, we have no use for it (or
23681 - Removed generation and handling of WM_ERASEBKGND message
23682 - Removed EraseWindowBackground() and SetWindowBackground() methods
23683 - Removed handling of hwnd.ErasePending flag
23685 - Removed EraseWindowBackground() and SetWindowBackground() methods
23686 - We no longer call EraseWindowBackground on PaintEventStart, we
23687 ignore the fErase flag, erasing is handled in Control in the
23689 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
23690 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
23691 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
23692 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
23693 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
23694 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
23695 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
23697 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
23699 * PropertyGrids.cs: Get sub properties
23700 * PropertyGridView.cs: Fix drawing code
23702 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23704 * ListBox.cs: Fixes 76383
23706 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23708 * DataGridTextBoxColumn.cs: Sets location and size before attachment
23709 * ThemeWin32Classic.cs: Fixes border drawing and calculations
23710 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
23713 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23715 * ComboBox.cs: Fixes border drawing
23717 2005-10-10 Miguel de Icaza <miguel@novell.com>
23719 * MimeIcon.cs: Ignore errors if the file can not be read.
23721 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23723 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
23724 - Fixed border calculations
23725 - Fixed horizontal scrolling in single column listboxes
23726 - Fixed drawing issues
23728 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
23730 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
23731 FormBorderStyle enum
23732 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
23733 code to determine FormBorderStyles from CreateParams
23735 - Fixed bug where we'd set the wrong window styles if we were
23736 not creating an MDI window
23737 - Added call to XplatUI.SetBorderStyle when form borders are set
23738 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
23740 - Removed obsolete edge style
23741 - Switched from BorderStyle to FormBorderStyle
23743 2005-10-10 Jackson Harper <jackson@ximian.com>
23745 * Form.cs: Use the property to get the window handle instead of
23746 accessing it directly. Prevents a null reference exception.
23748 2005-10-10 Jackson Harper <jackson@ximian.com>
23750 * TreeView.cs: Don't adjust the rect given to DrawString now that
23751 our libgdiplus draws correctly.
23753 2005-10-08 Jackson Harper <jackson@ximian.com>
23755 * TreeView.cs: Don't try to find the clicked on node if there are
23756 no nodes in the tree.
23758 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
23764 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
23766 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
23767 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
23769 Use ResPool for brushes and dispose System.Drawing objects that
23770 are not used anymore.
23772 2005-10-07 Jackson Harper <jackson@ximian.com>
23774 * MdiChildContext.cs: Use the new borders instead of drawing them
23777 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
23779 * Calling UpdateBounds after changing the window's BorderStyle
23780 since the style can change the ClientSize
23782 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23784 * Control.cs: Made PaintControlBackground virtual
23785 * Panel.cs: Overriding PaintControlBackground instead of using paint
23786 event; paint event method was interfering with 'real' users of the
23789 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
23791 * ThemeWin32Classic.cs: remove border drawing since it is handled
23792 by the base control class now and was causing double border drawing.
23794 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23796 * Panel.cs: Redraw our background on paint. Not a pretty solution,
23797 but it does seem to match MS behaviour. This fixes bug #75324
23799 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23801 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
23802 somewhat hackish looking
23804 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23807 - We now accept Enter even if AcceptEnter is false, if the containing
23808 form does not have an AcceptButton configured (fixes bug #76355)
23809 - Calculations are now fixed to no longer use Width/Height, but
23810 ClientSize.Width/Height, since we now support borders (this was
23811 a result of fixing borders and therefore bug #76166)
23812 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
23813 true (fixes bug #76354)
23815 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23818 - Defaulting BorderStyle and setting it in XplatUI when our window
23820 - Added enum check to InternalBorderStyle setter
23822 - Added drawing of window borders
23823 - Now properly calculates WM decorations offset for toplevel
23824 windows (fixes bug #74763)
23826 - Implemented BorderStyles for windows (we're letting win32 draw
23828 - Fixed the signature for SetWindowLong
23829 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
23830 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
23832 * UpDownBase.cs: Remove drawing of borders, this is handled by
23833 the driver, outside the client area
23834 * ListView.cs: Removed bogus border calculations. The control should
23835 be oblivious to borders, since those are not part of the client
23837 * X11DesktopColors.cs: Commented out (currently) unneeded variables
23838 * ThemeWin32Classic.cs: Removed border calculations from ListView
23841 2005-10-06 Jackson Harper <jackson@ximian.com>
23843 * MdiChildContext.cs: Clear out the old virtual position remove
23844 all the unneeded calls to CreateGraphics.
23846 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23848 * TextControl.cs: Use proper color for highlighted text; fixes #76350
23850 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23853 - Added loading and setting of our new default icon
23854 - Only set icon if window is already created
23856 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23859 - Do not explicitly set the foreground and background colors, to
23860 allow inheriting from parents (fixes #76302)
23861 - Use Control's InternalBorderStyle property to deal with borders
23863 2005-10-06 Jackson Harper <jackson@ximian.com>
23865 * MdiChildContext.cs: Use the new xplatui function to draw a
23868 2005-10-06 Jackson Harper <jackson@ximian.com>
23870 * Form.cs: Add the parent before creating the child context cause
23871 we need the parent when setting up the child.
23873 2005-10-06 Jackson Harper <jackson@ximian.com>
23875 * FolderBrowserDialog.cs: redo the tree population code so a
23876 second thread isn't used. Should be a lot faster and more stable
23879 2005-10-05 Jackson Harper <jackson@ximian.com>
23881 * TreeView.cs: There are no expand/collapse boxes if the node has
23884 2005-10-05 Jackson Harper <jackson@ximian.com>
23886 * X11DesktopColors.cs: Get menu colours for the gtk theme.
23888 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
23890 * FileDialog.cs: Fix InitialDirectory
23892 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
23895 - Fixes changing between styles
23896 - Fixes simple mode
23897 - Fixes last item crashing when navigating with keyboard
23899 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
23901 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
23903 2005-10-05 Jackson Harper <jackson@ximian.com>
23905 * TreeView.cs: If updating the root node do a full refresh.
23906 * TreeNode.cs: The root node should be expanded by default. Also
23907 added a utility prop to tell if we are the root node.
23908 * TreeNodeCollection.cs: Only refresh if the node we are being
23909 added to is expanded. Also added a comment on a potential
23912 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
23914 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
23915 in dispose method. Fixes #76330
23917 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
23919 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
23921 - Implements vertical and horizontal scrolling using XplatUI
23922 - Fixes keyboard navagation
23923 - Fixes EnsureVisible
23925 - Handles and draws focus properly
23928 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
23930 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
23931 Create handle. NET_2_0: Destroy handle when value is null.
23933 2005-10-03 Jackson Harper <jackson@ximian.com>
23935 * ScrollBar.cs: My last scrollbar patch was broken. This is a
23936 revert and a new patch to prevent the thumb from refreshing so
23939 2005-10-02 Jackson Harper <jackson@ximian.com>
23941 * ScrollBar.cs: Don't update position if it hasn't actually
23942 changed. This occurs when you hold down the increment/decrement
23943 buttons and the thumb gets to the max/min.
23945 2005-10-01 Jackson Harper <jackson@ximian.com>
23948 * MdiChildContext.cs:
23949 * MdiClient.cs: Implement ActiveMdiChild in Form.
23951 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
23953 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
23955 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
23957 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
23960 2005-09-30 Jackson Harper <jackson@ximian.com>
23962 * ListBox.cs: Don't do a full refresh unless some data has
23965 2005-09-30 Jackson Harper <jackson@ximian.com>
23967 * TreeView.cs: Make sure that the checkboxes size is factored in
23968 even when not visible.
23970 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
23972 * FileDialog.cs: Fix Jordi's build break
23974 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
23977 - Use standard the Windows colours for the combobox as espected
23978 - Dispose objects that use resouces when no longer need them
23980 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
23982 * X11DesktopColors.cs: Initial incomplete implementation
23983 * XplatUIX11.cs: Added call to initialize X11DesktopColors
23985 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
23988 - Switched Theme color names to match the names defined in
23989 System.Drawing.KnownColors. Life's hard enough, no need to make
23991 - Added setters to all theme color properties so themes can set
23992 their color schemes. The setters also propagate the color changes
23993 to System.Drawing.KnownColors via reflection
23994 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
23995 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
23996 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
23997 use the new, more logical theme color names
23998 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
24000 * ThemeWin32Classic.cs:
24001 - Removed code to set the old classic Windows colors. Instead it
24002 now relies on the colors returned by System.Drawing.KnownColors
24003 which will be either modern static colors (Unix) or colors
24004 read from the user's configuration (Win32)
24005 - Updated to use the new, more logical theme color names
24006 - Switched DataGrid drawing code to use only Theme colors instead of
24007 a mix of System.Drawing.KnownColors and Theme colors
24008 - DrawFrameControl(): Removed code that fills the button area, the
24009 fill would overwrite any previous fill done by a control. This
24011 - Added DrawReversibleRectangle() stub
24012 * ScrollableControl.cs: Set visible state to false when scrollbars
24013 are removed (pdn fix)
24014 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
24015 DrawReversibleRectangle() method to allow drawing primitive
24017 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
24019 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24021 * ImageList.cs: Add(Icon): Create handle.
24023 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
24026 * ThemeWin32Classic.cs:
24027 - Fixes detail mode
24029 - Issues with drawing
24031 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24033 * ImageList.cs: Moved RecreateHandle back to ImageList as event
24034 source has to be the ImageList.
24036 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24038 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
24040 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24042 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
24044 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24046 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
24048 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
24049 * GridItem.cs: Fixed TODOs
24050 * GridItemCollection.cs: Added ICollection interface
24052 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24054 * ImageList.cs: Resize icons when needed.
24056 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
24059 - Fixes GetBounds and returns on screen rects
24061 - Fixes vertical and horzintal scrolling of items
24062 * ThemeWin32Classic.cs:
24065 2005-09-29 Raja R Harinath <harinath@gmail.com>
24067 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
24069 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
24071 * ImageList.cs: Added comments about handle creation. Moved Handle,
24072 HandleCreated and OnRecreateHandle implementations to ImageCollection.
24073 Handle is created in Add methods.
24075 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
24077 * DataGridDrawingLogic.cs:
24078 - Takes rows into account on Colum calculations
24079 - Returns the column when clickig
24081 - Fixes default HitTestInfo values
24082 - Fixes HitTestInfo.ToString
24083 - Fixes ResetBackColor
24085 2005-09-28 Jackson Harper <jackson@ximian.com>
24087 * MdiChildContext.cs: Obey rules for fixed sized windows (no
24088 sizing or cursor changes). Also added some temp code to draw the
24089 titlebars text (Makes dev a little easier).
24091 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
24093 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
24095 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
24097 * ListBox.cs: Fixes bug 76253
24099 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
24101 * ImageList.cs: Added comments about the current implementation. Added
24102 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
24103 Format32bppArgb to preserve transparency and can use Graphics.FromImage
24104 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
24105 with Bitmap.LockBits for better performance. Revised the whole file to
24106 match MS.NET behaviour and provide better performance. Non-public
24107 interface members are calling public members even when they throw
24108 NotSupportedException for better maintainability. Moved ColorDepth,
24109 ImageSize, ImageStream and TransparentColor implementations to
24110 ImageCollection for better performance as these properties are not used
24112 * ImageListStreamer.cs: Added a new internal constructor that takes an
24113 ImageList.ImageCollection and serializes Images based on
24114 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
24115 match ImageList property name.
24117 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
24119 * ListBox.cs: Fixes IndexFromPoint for last item
24121 2005-09-27 Jackson Harper <jackson@ximian.com>
24123 * Form.cs: Set the position of new mdi children correctly.
24125 2005-09-27 Jackson Harper <jackson@ximian.com>
24127 * MdiClient.cs: New mdi children need to be added to the back of
24128 the controls collection so the zorder is set correctly. Also add a
24129 count of all the child windows that have been created.
24131 2005-09-27 Jackson Harper <jackson@ximian.com>
24133 * Form.cs (CreateParams): Setup MDI forms correctly.
24135 2005-09-27 Jackson Harper <jackson@ximian.com>
24137 * MdiChildContext.cs:
24138 * MonthCalendar.cs:
24144 * ScrollableControl.cs:
24145 * ComboBox.cs: Add implicit controls using the new implict control
24146 functionality in ControlCollection. Also try to block multiple
24147 control add in a suspend/resume layout to save some cycles.
24149 2005-09-27 Jackson Harper <jackson@ximian.com>
24151 * Control.cs: Add functionality to the controls collection to add
24152 'implicit controls' these are controls that are created by the
24153 containing control but should not be exposed to the user. Such as
24154 scrollbars in the treeview.
24155 * Form.cs: The list var of the ControlsCollection is no longer
24156 available because of the potential of implicit controls getting
24157 ignored by someone accessing the list directly.
24159 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
24161 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
24162 loose it's parent. (Fixed bug introduced in r49103 when we added
24163 setting the child parent to null on Remove)
24165 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
24167 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
24168 * Splitter.cs: Added missing attributes for BorderStyle property.
24169 * TextBoxBase.cs: Marked Calculate* methods internal.
24170 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
24173 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
24175 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
24177 2005-09-25 Jackson Harper <jackson@ximian.com>
24179 * TreeView.cs: Update the node bounds correctly regardless of
24180 whether the node is visible.
24182 2005-09-25 Jackson Harper <jackson@ximian.com>
24184 * ImageList.cs: Don't dispose the image after it is added to the
24185 image list. Only reformat images that need to be resized.
24187 2005-09-25 Jackson Harper <jackson@ximian.com>
24189 * ImageList.cs: Don't set the format when changing the image.
24191 2005-09-25 Jackson Harper <jackson@ximian.com>
24193 * TreeView.cs: We can't just assume the node has a font. Use the
24194 treeviews font if no node font is available.
24196 2005-09-25 Jackson Harper <jackson@ximian.com>
24198 * TreeView.cs: Allow the scrollbars to be reset with negative
24200 - Don't add scrollbars to negative sized windows.
24202 2005-09-23 Jackson Harper <jackson@ximian.com>
24204 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
24205 old Mono.Posix. Also remove some stray code that shouldn't have
24208 2005-09-23 Jackson Harper <jackson@ximian.com>
24210 * TreeView.cs: Attempt at proper sizing of the horizontal
24211 scrollbar. Also don't resize the scrollbars unless they are
24214 2005-09-23 Jackson Harper <jackson@ximian.com>
24216 * TreeView.cs: We don't need to expand the invalid area when the
24217 selection changes, as this is all drawn in the node's bounding
24218 box. The area needs to be expanded (previous typo was contracting
24219 it) when the focus rect moves.
24221 2005-09-23 Jackson Harper <jackson@ximian.com>
24223 * TreeView.cs: Display the selection box under the correct
24224 circumstances. We were rendering white text with no selection box
24227 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
24229 * TextControl.cs(Split): Now updates selection start/end if it points
24230 into a line that's being split. Fixes a FIXME and bug #75258
24232 2005-09-23 Jackson Harper <jackson@ximian.com>
24235 * ListControl.cs: Don't use the path when retrieving binding
24236 managers from the binding context. My bat sense tells me that the
24237 path is only used on insertion.
24239 2005-09-22 Jackson Harper <jackson@ximian.com>
24241 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
24243 2005-09-22 Jackson Harper <jackson@ximian.com>
24245 * Splitter.cs: There are special cursors used for splitting.
24246 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
24248 2005-09-22 Jackson Harper <jackson@ximian.com>
24250 * Splitter.cs: Change the cursor appropriately when the splitter
24251 is moused over, so the user actually knows there is a splitter
24254 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24256 * Label.cs : Fix ToString method to give same output as MS.NET
24258 2005-09-22 Jackson Harper <jackson@ximian.com>
24260 * TreeView.cs: Create the scrollbars when the handle is created
24261 and add them right away, just make them invisble. Also account for
24262 the window being shrunk vertically to the point that the vert
24263 scrollbar needs to be added.
24264 - Remove some 0.5 adjustments to get around anti aliasing issues.
24266 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
24268 * MainMenu.cs: Fixes default value
24269 * MenuItem.cs: Fixes default value
24271 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
24273 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
24275 2005-09-21 Jackson Harper <jackson@ximian.com>
24277 * Control.cs: Don't try to set the border style on the window if
24278 it hasn't been created. When the window is created the border
24279 style will be used.
24281 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24283 * Control.cs (Update): Don't call XplatUI if we don't have a
24286 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24288 * ContainerControl.cs: Instead of throwing an exception, print
24289 a one-time warning about Validate not being implemented
24290 * XplatUIWin32.cs: Removed debug output
24292 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24294 * Control.cs: Only set XplatUI background if we expect the windowing
24295 system to handle the background. This stops controls that draw their
24296 own background from flickering
24298 * XplatUIX11.cs: Support custom visuals and colormaps for window
24299 creation. This allows, amongst other things, using MWF X11 windows
24302 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24304 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
24305 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
24306 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
24307 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
24308 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
24309 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
24310 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
24311 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
24312 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
24313 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
24314 GridColumnStylesCollection.cs,
24315 IDataGridColumnStyleEditingNotificationService.cs,
24316 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
24317 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
24318 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
24319 TreeNodeCollection.cs, AmbientProperties.cs,
24320 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
24321 DataObject.cs, ErrorProvider.cs, Splitter.cs,
24322 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
24323 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
24324 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
24325 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
24326 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
24327 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
24328 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
24329 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
24330 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
24331 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
24332 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
24333 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
24334 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
24335 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
24336 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
24337 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
24338 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
24339 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
24340 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
24341 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
24342 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
24343 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
24344 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
24345 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
24346 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
24347 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
24348 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
24349 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
24350 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
24351 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
24352 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
24353 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
24354 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
24355 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
24356 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
24358 2005-09-21 Jackson Harper <jackson@ximian.com>
24360 * TreeNode.cs: Call Before/After Expand not Collapse when
24363 2005-09-20 Jackson Harper <jackson@ximian.com>
24365 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
24367 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
24371 - Fixes proper storing of subitems
24372 - Fixes not updated items
24374 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
24376 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
24377 things if our window handle isn't created yet. Also disabled
24378 debug for TextBoxBase
24380 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
24382 * MenuAPI.cs: Remove filtering of events to allow menu usage
24384 2005-09-20 Miguel de Icaza <miguel@novell.com>
24386 * Cursor.cs: Allow null to be passed to Cursor.Current.
24388 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
24390 * ThemeWin32Classic.cs:
24391 - Change some private methods/fields to protected virtual so that
24392 they can be accessed and overriden in derived classes
24393 - First refactoring of some methods. Derived themes now don't
24394 need to duplicate the complete code from ThemeWin32Classic
24396 - Added nice StatusBar
24397 - Derive from ThemeWin32Classic and not Theme
24398 - Removed duplicate ThemeWin32Classic code
24400 2005-09-20 Miguel de Icaza <miguel@novell.com>
24402 * Control.cs (ControlCollection.Add): If the value null is passed
24403 the control is ignored.
24405 Optimize this loop.
24407 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
24409 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
24410 PostQuitMessage state.
24411 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
24413 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
24415 * Application.cs: Our constructor will never get called, move
24416 initialization to fields; fixes bug #75933
24418 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24421 - Allow files to be selected properly using file name
24423 - Add ability to change diretory (absolute / relative)
24424 using file name combo box.
24426 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
24429 - Fixes Multicolumn listboxes item wrong calculations
24430 - Allows to click when only one item is in the listbox
24431 - Fixes crash when no items using keyboard navigation
24433 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
24435 * ComboBox.cs: Reverted almost everything from the latest patch which
24438 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
24441 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
24443 - When DropDownStyle is Simple, it does not show scrollbar
24444 to the last item of the list.
24445 - When DropDownStyle is Simple, it crashed when the list was
24446 scrolled down with the down cursor key.
24447 - Fixed a bug that when DropDownStyle is DropDownList, the
24448 selected item was not shown.
24449 - The position of the selected item was not preserved when
24450 the next dropdown happened.
24451 * ThemeWin32Classic.cs:
24452 - Items were wrapped at the right end.
24453 * CheckedListBox.cs:
24456 - Items should be fully shown.
24457 - When resizing and vertical scrollbar disappeared, the item
24458 of index 0 should be on the top of the list.
24459 - GetItemRectangle should consider the size of ver. scrollbar
24461 - SizingGrip area should not be allocated when it is not
24463 - Now it reflects MinWidth of the containing panel and
24464 fixed a crash that happens when its width becomes so small.
24466 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
24468 * CheckedListBox.cs: Fixes bug 76028
24469 * ListBox.cs: Fixes bug 76028
24471 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
24473 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
24474 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
24476 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
24478 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
24480 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24482 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
24484 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24486 * IRootGridEntry.cs: Added
24487 * PropertyGridCommands.cs: Added
24488 * PropertiesTab.cs: Added missing methods and property
24489 * PropertyGridView.cs: Made class internal
24490 * PropertyGridTextBox.cs: Made class internal
24492 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24494 * MimeIcon.cs: Try to check some other environment variables
24495 if "DESKTOP_SESSION" returns "default"
24497 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24499 * ThemeNice.cs: Corrected background colors (e.g. menus)
24500 * ColorDialog.cs: Use correct background colors for controls
24502 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24504 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
24506 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
24508 * RichTextBox.cs: Added initial implementation
24509 * lang.cs: Removed. Was accidentally checked in long time ago
24510 * TODO: Removed. Contents were obsolete
24512 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
24514 * PropertiesTab.cs : Added
24516 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
24518 * PropertyGrid.cs : Update
24519 * PropertyGridView.cs : Update
24520 * System.Windows.Forms.resx : Added images and strings
24522 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
24524 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
24526 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
24528 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
24529 a busy loop right after the Ungrab the X11 display is otherwise
24532 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
24534 * ThemeWin32Classic.cs: Optimise the use of clipping
24536 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
24538 * DataGrid.cs: fixes recursion bug
24540 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
24543 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
24546 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
24548 * ThemeNice.cs: Draw nice ProgressBars
24550 2005-09-01 Miguel de Icaza <miguel@novell.com>
24552 * VScrollBar.cs: Another buglet found by Aaron's tool.
24554 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
24557 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
24560 - Added nicer menu drawing
24564 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24566 * CreateParams.cs (ToString): Made output match MS
24567 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
24568 handle is already created (to avoid forcing window creation)
24569 * XplatUIX11.cs: Set window text to caption after creating window,
24570 in case Text was set before window was created
24571 * Form.cs: Use this.Text instead of a static string as caption
24573 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24575 * NotifyIcon.cs: Don't set the window to visible; this screws
24576 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
24577 OnPaint without a bitmap)
24578 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
24579 happen very often anyway; we could add the check to the WM_PAINT
24580 event generation code
24582 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24584 * NotifyIcon.cs: Fill the icon area with a background color, to
24585 avoid 'residue' when transparent icons are drawn
24587 - Handle whole_window == client_window when destroying windows
24588 - SystrayAdd(): Set client_window to whole_window value to
24589 get mouse and other events passed to NotifyIcon
24591 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24593 * Form.cs: Set proper default for Opacity property
24595 - ShowSystray(): Don't bother creating telling the OS
24596 about the systray item if no icon is provided
24597 - Now handles WM_NCPAINT message to deal with whole/client window
24599 - Create window as visible to not get caught by Expose optimization
24600 * Hwnd.cs: Removed debug message
24601 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
24602 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
24603 PaintEventStart/End to use new client argument
24605 - Commented out debug messages
24606 - Switched PaintEventStart/End to use new client argument
24607 * XplatUI.cs: Added client window bool to PaintEventStart()/
24608 PaintEventEnd() calls, to support drawing in non-client areas
24609 * XplatUIDriver.cs:
24610 - Added client window bool to PaintEventStart()/PaintEventEnd()
24611 calls, to support drawing in non-client areas
24612 - Added conditional compile to allow using MWF BeginInvoke
24615 - Added some conditional debug output
24616 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
24617 whole/client window split
24618 - Implemented handling of client argument to PaintEventStart()/End()
24620 - Throw exception if BeginInvoke() is called and the window handle
24621 or one of the window's parent handles is not created
24622 - Added conditional compile to allow using MWF BeginInvoke on
24624 - get_Parent(): Only sets parent if handle is created. This avoids
24625 forcing window handle creation when parent is set.
24626 - Now fires Layout and Parent changed events in proper order
24627 - Switched to use Handle instead of window.Handle for Z-Order setting,
24628 the get_Parent() patch above causes us to possibly get null for 'window'
24629 - Implemented handling of client argument to PaintEventStart()/End()
24630 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
24632 - Now sends a Refresh() to all child windows when Refresh() is called
24634 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
24636 * Form.cs: Added (non-functional) Opacity property
24637 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
24639 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
24640 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
24641 use export MONO_THEME=nice to activate it.
24642 Currently supported controls:
24646 - TabControl (TabAlignment.Top only, other will follow)
24647 * ThemeEngine.cs: Add theme nice
24648 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
24651 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
24653 * Splitter.cs: Resize docked control and its neighbor.
24655 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
24656 -- Making Windows with Menus layout correctly --
24657 * Form.cs : The first leg of the fix
24658 Menu setter - adjust Client Size as needed to make space for the menu
24659 SetClientSizeCore - doesn't call base version to be able to pass the
24660 menu handle to XplatUI.CalculateWindowRect
24661 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
24662 * XplatUIX11.cs: The critical second leg of the fix
24663 GetWindowPos needs to use a recalculated client_rect
24664 so that resizing the window doesn't break layout of child controls.
24665 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
24666 Lots of \t\n killed
24668 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
24670 * Label.cs: Now properly recalculates width and height on Font and Text
24671 changes if AutoSize is set
24673 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
24674 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
24676 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
24678 * ImageList.cs: Makes ToString method compatible with MS
24680 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
24682 * MenuAPI.cs: fixes bug 75716
24684 2005-08-11 Umadevi S <sumadevi@novell.com>
24685 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
24687 2005-08-11 Umadevi S <sumadevi@novell.com>
24688 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
24690 2005-08-10 Umadevi S <sumadevi@novell.com>
24691 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
24693 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
24695 * Menu.cs: fixes bug 75700
24696 * MenuAPI.cs: fixes navigation issues
24698 2005-08-09 Umadevi S <sumadevi@novell.com>
24699 * CheckedListBox.cs - simple fix for GetItemChecked.
24701 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
24703 * ComboBox.cs: Serveral fixes
24704 * ListBox.cs: Serveral fixes
24706 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
24708 * ComboBox.cs: Fixes FindString methods and GetItemHeight
24709 * ListBox.cs: Fixes FindString methods
24711 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
24713 * DataGrid.cs: fixes bugs exposed by new tests
24715 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
24717 * Mime.cs: Compile Mono assembly references only if compiling
24718 with Mono (Allows to build with VS.Net again)
24720 2005-07-28 Marek Safar <marek.safar@seznam.cz>
24722 * Control.cs (PaintControlBackground): Draw background image
24724 (CheckForIllegalCrossThreadCalls): Stubbed.
24726 * Form.cs (OnCreateControl): Center when should be centered.
24728 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
24730 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
24732 * Binding.cs: Binding to properties should be case unsensitive
24734 2005-07-18 vlindos@nucleusys.com
24736 * DataGrid.cs: fixes setmember order
24738 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
24740 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
24741 * FileDialog.cs: FileDialog is now resizable and uses the new
24744 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
24746 * DataGridTextBoxColumn.cs: default value
24747 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
24748 * GridTableStylesCollection.cs: fixes checking MappingName
24749 * DataGridDrawingLogic.cs: fixes drawing logic issues
24750 * DataSourceHelper.cs: rewritten to make compatible with more data sources
24751 * DataGrid.cs: fixes
24753 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
24755 * MimeGenerated.cs: Use case sensitive comparer for
24756 NameValueCollections
24758 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
24760 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
24761 * ThemeWin32Classic.cs: bug fixes, code refactoring
24762 * DataGridDrawingLogic.cs: bug fixes, code refactoring
24763 * DataGrid.cs: bug fixes, code refactoring
24764 * DataGridTextBox.cs: bug fixes, code refactoring
24765 * DataGridColumnStyle.cs: bug fixes, code refactoring
24766 * Theme.cs: bug fixes, code refactoring
24768 2005-07-01 Peter Bartok <pbartok@novell.com>
24770 * TextControl.cs: Quick fix for the reported crash on ColorDialog
24771 and other text box usage
24773 2005-07-01 Jackson Harper <jackson@ximian.com>
24775 * TabControl.cs: Make sure the bottom of the tab covers the pages
24778 2005-06-30 Peter Bartok <pbartok@novell.com>
24780 * Form.cs (ShowDialog): Assign owner of the dialog
24781 * TextBoxBase.cs: Always refresh caret size when deleting, caret
24782 might have been moved to a tag with different height
24784 2005-06-30 Jackson Harper <jackson@ximian.com>
24786 * Form.cs: Don't create an infinite loop when setting focus
24787 * MenuItem.cs: Don't dirty the parents if we don't have any
24789 2005-06-29 Ben Maurer <bmaurer@ximian.com>
24791 * LibSupport.cs: Rename
24793 2005-06-29 Peter Bartok <pbartok@novell.com>
24795 * TextBoxBase.cs: Re-align caret after deleting a character
24797 - DeleteChars(): Ensure that tag covers the provided position
24798 - StreamLine(): Drop reference for dropped tag
24800 2005-06-29 Peter Bartok <pbartok@novell.com>
24803 - Selections now work properly, anchoring at the initial location
24804 and properly extending in either direction (SetSelectionToCaret(),
24805 SetSelectionStart() and SetSelectionEnd())
24806 - No longer redraws the whole control on selection change, now
24807 calculates delta between previous and new selection and only
24808 invalidates/redraws that area
24809 - Fixed FindPos() math off-by-one errors
24810 - Changed DeleteChars() to verify the provided tag covers the
24811 provided position, selections may have a tag that doesn't cover
24812 the position if the selection is at a tag border
24813 - Fixed off-by-one errors in DeleteChars()
24814 - Added missing streamlining check in DeleteChars() to remove
24816 - Implemented Invalidate() method, now properly calculates exposures
24817 between two given lines/positions
24818 - Implemented SetSelection()
24819 - Obsoleted and removed FixupSelection()
24820 - Improved RecalculateDocument() logic, removing code duplication
24822 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24824 * LibSupport.cs: changes to match different input/output arguments.
24826 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24828 * LibSupport.cs: added libsupport.so init routine.
24830 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
24832 * ControlBindingsCollection.cs
24833 - Throws an exception on null datasource when adding
24834 - Checks for duplicated bindings when adding
24836 2005-06-28 Jackson Harper <jackson@ximian.com>
24838 * TreeView.cs (OnKeyDown): Support left and right properly
24839 (navigates as well as expanding and collapsing.
24840 - Add support for Multiply, this expands all the selected nodes
24842 - Fix some tabbing.
24844 2005-06-28 Jackson Harper <jackson@ximian.com>
24846 * TreeView.cs: Implement keyboard navigation, currently supports,
24847 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
24848 support for toggling checkboxes with the space bar.
24850 2005-06-28 Jackson Harper <jackson@ximian.com>
24852 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
24855 2005-06-28 Jackson Harper <jackson@ximian.com>
24857 * TreeView.cs: Add missing event.
24859 2005-06-27 Peter Bartok <pbartok@novell.com>
24862 - Made line ending size configurable (now allows for counting
24863 lineendings as \n or \r\n)
24864 - Added margin to viewport to keep caret visible on right side
24865 - Fixed translation routines for line/pos to documentpos to consider
24866 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
24867 - Fixed some line-endings to be unix style
24868 - Fixed Document.FormatText to perform it's calculations 1-based
24869 - Added descriptions for a few methods that might otherwise get
24871 - Added NOTE section with some basic conventions to remember at
24872 the top of the file
24873 - Major fixup for RichTextBox selection drawing:
24874 * Fixed crashes when multiple tags on a single line were selected
24875 * fixed selection box drawing not overlaying text
24876 * fixed bogus offset calculation for tags not starting at index 1
24877 * Switched behaviour from using multiple Substrings of a
24878 StringBuilder.ToString() to using multiple
24879 StringBuilder.ToString(start, length) statements, hoping this is
24880 faster (kept original version commented out in the code, in case
24881 original version was faster)
24882 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
24884 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
24887 2005-06-27 Jackson Harper <jackson@ximian.com>
24889 * TabControl.cs: Move to the left and right with the arrow
24890 keys. These keys don't cycle beyond first and last like
24891 tab. Refresh all the tabs when scrolling them to the left or
24894 2005-06-27 Jackson Harper <jackson@ximian.com>
24897 - ToString: Added method
24898 - CreateParams: Remove TODO and comment
24899 - OnKeyDown: Cycle through bounds properly.
24900 - SelectedIndex: Scroll to the right or left if we need to
24901 display the newly selected tab.
24903 2005-06-23 Jackson Harper <jackson@ximian.com>
24905 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
24908 2005-06-23 Jackson Harper <jackson@ximian.com>
24910 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
24911 CTRL-SHIFT-TAB, and HOME, END are there any others?
24913 2005-06-23 Jackson Harper <jackson@ximian.com>
24915 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
24917 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
24919 * DataGridTextBoxColumn.cs: fixes and enhancements
24920 * ThemeWin32Classic.cs: fixes and enhancements
24921 * DataGridBoolColumn.cs: fixes and enhancements
24922 * DataGridDrawingLogic.cs: fixes and enhancements
24923 * CurrencyManager.cs: fixes and enhancements
24924 * DataGrid.cs: fixes and enhancements
24925 * DataGridColumnStyle.cs: fixes and enhancements
24927 2005-06-22 Jackson Harper <jackson@ximian.com>
24929 * TabControl.cs: Add some missing methods that just call into the
24930 base. Make the TabPageCollection's IList interface behave in the
24931 same manner as the MS implementation.
24933 2005-06-22 Peter Bartok <pbartok@novell.com>
24935 * TextControl.cs: Added sanity check
24937 - Fixed wrapping behaviour, don't set wrap on single line controls
24938 (this fixes the breakage of colordialog introduced in an earlier
24940 - Added rudimentary support for autoscrolling right-aligned controls
24941 (still needs fixing, also, center alignment scroll is missing)
24943 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
24945 * ScrollBar.cs: Fixes thumbpos on Maximum values
24947 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
24949 * PropertyGridView.cs: Pass context information to UITypeEditors
24951 2005-06-21 Peter Bartok <pbartok@novell.com>
24954 - Now calling PositionCaret with absolute space coordinates
24955 - Enabled vertical scrolling
24956 - Better tracking of scrollbar changes, tied into WidthChange
24958 - Improved cursor tracking
24959 - Removed debug output
24961 - PositionCaret coordinates are now works in absolute space, not
24963 - Improved tracking of document size
24964 - Added events for width and height changes
24966 2005-06-21 Peter Bartok <pbartok@novell.com>
24968 * Form.cs: Set focus to active control when form is activated
24970 - Added word-wrap functionality to RecalculateLine()
24971 - Added some short function descriptions for VS.Net to aid in
24972 writing dependent controls
24973 - Added Caret property, returning the current coords of the caret
24974 - Added ViewPortWidth and ViewPortHeight properties
24975 - Added Wrap property
24976 - Added CaretMoved event
24977 - Removed some old debug code
24978 - Split() can now create soft splits
24979 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
24980 - Added method to format existing text
24981 - Fixed size/alignment calculations to use viewport
24982 - RecalculateDocument now can handle changing line-numbers while
24986 - Added some wrap logic, we don't wrap if alignment is not left
24987 - Added casts for scrollbar var, base class switched types to
24988 also support RichTextBoxA
24989 - Implemented handling of scrollbar visibility flags
24992 - Switched scrollbars type to RichTextBoxScrollBars to support
24994 - Added tracking of canvas width/height
24995 - Switched scrollbars to be not selectable (to keep focus on text)
24996 - Added central CalculateDocument() method to handle all redraw
24998 - Added ReadOnly support
24999 - Added WordWrap support
25000 - Fixed handling of Enter key (we now treat it as a DialogKey)
25001 - Fixed caret positioning when h or v scroll is not zero
25002 - Fixed placing/generation of vertical scrollbar
25003 - Added CalculateScrollBars() method to allow updating scrollbar
25004 limits and visibility
25005 - Fixed handling of horizontal scroll
25006 - Added handling of vertical scroll
25007 - Implemented auto-'jump' when caret moves to close to a left or
25008 right border and there is text to be scrolled into view (currently
25009 there's the potential for a stack overflow, until a bug in
25010 scrollbar is fixed)
25012 2005-06-21 Geoff Norton <gnorton@customerdna.com>
25014 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
25016 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
25020 - return application/x-zerosize for files with size zero
25021 (if no extension pattern matches).
25022 - check matches collection for strings too.
25023 - return only the first mime type if the name value
25024 collection has more than one mime type.
25026 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
25028 * PropertyGrid.cs: Cleaned up some TODOs
25029 * PropertyGridView.cs: Added support for UITypeEditors
25031 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
25033 * DataGrid.cs: clears cached value
25035 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
25037 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
25038 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
25039 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
25040 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
25042 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
25044 * ThemeWin32Classic.cs: fixes colour
25046 2005-06-15 Peter Bartok <pbartok@novell.com>
25048 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
25049 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
25050 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
25051 * Control.cs: Added some MWFCategory and MWFDescription attributes
25052 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
25054 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
25056 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
25059 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
25061 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
25062 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
25063 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
25064 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
25065 * DataGrid.cs: default datagrid settings for Default Styles, fixes
25066 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
25068 2005-06-13 Jackson Harper <jackson@ximian.com>
25070 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
25071 isn't printed when the user enables dropping. (X11 does accept
25074 2005-06-13 Jackson Harper <jackson@ximian.com>
25076 * TreeView.cs: Remove some TODOS.
25078 2005-06-13 Jackson Harper <jackson@ximian.com>
25080 * Form.cs: Hook into the mdi framework.
25081 * MdiClient.cs: Use the base control collections add method so
25082 parents get setup correctly. Set the default back colour and dock
25084 * MdiChildContext.cs: New class, this bad actor handles an
25085 instance of an MDI window. Right now there is only basic
25086 support. You can drag, close, and resize windows. Minimize and
25087 Maximize are partially implemented.
25089 2005-06-13 Jackson Harper <jackson@ximian.com>
25091 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
25092 freaky when both vals are negative. NOTE: There are probably other
25093 places in XplatUIX11 that this needs to be done.
25095 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
25097 * DataGrid.cs: implement missing methods, move KeyboardNavigation
25098 * DataGridColumnStyle.cs: fixes signature
25100 2005-06-12 Jackson Harper <jackson@ximian.com>
25102 * XplatUIX11.cs: Use sizing cursors similar to the ones on
25105 2005-06-11 Jackson Harper <jackson@ximian.com>
25107 * StatusBarPanel.cs: Signature cleanups. Implement
25110 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
25112 * DataGridTextBoxColumn.cs: Honors aligment
25113 * GridColumnStylesCollection.cs: Contains is case unsensitive
25114 * GridTableStylesCollection.cs: several fixes
25115 * DataGridTableStyle.cs: default column creation
25116 * DataGridDrawingLogic.cs: fixes
25117 * CurrencyManager.cs: ListName property
25118 * DataGrid.cs: multiple styles support
25119 * DataGridColumnStyle.cs: fixes
25122 2005-06-10 Peter Bartok <pbartok@novell.com>
25124 * Control.cs(Select): Moved SetFocus call to avoid potential
25125 loops if controls change the active control when getting focus
25126 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
25127 the up/down buttons
25129 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
25131 * ImageListConverter.cs: Implemented
25133 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
25135 * MonthCalendar.cs: Wired in NumericUpDown control for year
25137 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
25139 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
25140 DoubleClick events, since they are not meant to be fired.
25142 2005-06-09 Peter Bartok <pbartok@novell.com>
25144 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
25145 Jonathan's standalone controls into MWF, implemented missing
25146 events, attributes and methods; added xxxAccessible classes
25147 * AccessibleObject.cs: Made fields internal so other classes
25148 can change them if needed
25150 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
25152 * UpDownBase.cs: Complete implementation
25153 * NumericUpDown.cs: Complete implementation
25154 * DomainUpDown.cs: Complete implementation
25156 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
25158 * DataGridTextBoxColumn.cs: drawing fixes
25159 * DataGridCell.cs: fixes ToString method to match MSNet
25160 * DataGridTableStyle.cs: fixes
25161 * DataGridBoolColumn.cs: fixes, drawing
25162 * DataGridDrawingLogic.cs: fixes, new methods
25163 * DataGridTextBox.cs: Keyboard and fixes
25165 - Keyboard navigation
25167 - Row selection (single, multiple, deletion, etc)
25170 2005-06-07 Jackson Harper <jackson@ximian.com>
25172 * ThemeWin32Classic.cs: Clear the background area when drawing
25175 2005-06-06 Peter Bartok <pbartok@novell.com>
25177 * ImageListStreamer.cs: Fixed signature for GetData
25178 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
25180 - Added missing ChildAccessibleObject class
25181 - Added missing OnXXXFocus overrides, switched to using those
25182 instead of the event handler
25184 - Added Parent property for ControlAccessibleObject
25187 - Added ResetBindings()
25188 * ListBindingConverter.cs: Implemented some methods
25189 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
25190 * ImageList.cs: Implemented basic handle scheme, removed TODOs
25191 * ContainerControl.cs: Fixed signature, now subscribing to the
25192 ControlRemoved event instead of overriding the handler, LAMESPEC
25193 * CurrencyManager.cs: Added missing attribute
25194 * MonthCalendar.cs: Added missing properties
25196 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
25198 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
25200 2005-06-06 Gaurav Vaish and Ankit Jain
25202 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
25203 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
25205 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
25207 * Control.cs: fixes CreateParams Width / Height.
25209 2005-06-05 Peter Bartok <pbartok@novell.com>
25211 * Win32DnD.cs: Removed compilation warnings
25213 2005-06-05 Peter Bartok <pbartok@novell.com>
25215 * Control.cs (CreateParams): Since we don't know if one of the
25216 properties we use is overridden, lets make sure if we fail accessing
25217 we continue with a backup plan
25219 2005-06-05 Peter Bartok <pbartok@novell.com>
25222 - Removed debug output
25223 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
25225 - Plugged resource leak
25226 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
25229 2005-06-05 Peter Bartok <pbartok@novell.com>
25231 * XplatUIWin32.cs: Removed DnD code
25232 * Win32DnD.cs: Implemented drop source and drop target functionality
25234 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25236 * UpDownBase.cs: remove duplicate addition of event, enable some code
25237 that was commented out.
25238 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
25239 Validate input when a key is pressed. It works fine now for every
25240 combination of Hexadecimal. Only missing some drawing love when sharing
25241 space with other controls.
25243 2005-06-04 Peter Bartok <pbartok@novell.com>
25246 - We need to pass a window for DragDrop, so enable callback events
25247 - Added DnD callback events when being a DragSource
25248 * XplatUI.cs (StartDrag): Added window handle argument
25249 * XplatUIDriver.cs (StartDrag): Added window handle argument
25250 * QueryContinueDragEventArgs: Made fields internally accessible so
25251 drivers can set them
25252 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
25255 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
25257 * DataGridTextBoxColumn.cs: column text editing
25258 * DataGridTableStyle.cs: Respect columns styles created by the user
25259 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
25260 * DataGridBoolColumn.cs: bool column editing
25261 * DataGrid.cs: fixes to scrolling, properties, etc
25262 * DataGridTextBox.cs: handle keyboard
25263 * DataGridColumnStyle.cs: fixes
25265 2005-06-02 Jackson Harper <jackson@ximian.com>
25267 * ImageListStreamer.cs: Somewhat broken implementation of
25268 GetObjectData. The RLE needs some work to match MS properly.
25270 2005-06-02 Jackson Harper <jackson@ximian.com>
25272 * X11Dnd.cs: Attempting to keep at least one file in MWF
25275 2005-06-02 Peter Bartok <pbartok@novell.com>
25277 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
25280 2005-06-02 Peter Bartok <pbartok@novell.com>
25282 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
25283 * XplatUI.cs: Added DoDragDrop() method
25284 * XplatUIDriver.cs: Added DoDragDrop() method
25286 2005-06-02 Jackson Harper <jackson@ximian.com>
25288 * Splitter.cs: Implement BorderStyle.
25290 2005-06-02 Jackson Harper <jackson@ximian.com>
25292 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
25293 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
25296 2005-06-02 Peter Bartok <pbartok@novell.com>
25299 - Added Data setter
25300 - Fixed broken insertion code for SetData, now also
25301 overwrites any existing entry of the same format name
25302 * Hwnd.cs: Added list of pointers that automatically gets
25303 freed when the window is disposed
25304 * XplatUI.cs: Call driver initialization method when loading
25307 - OnDragLeave takes EventArgs, not DragEventArgs
25308 - Added setting of WS_EX_ACCEPTFILES style when dropping is
25310 - Forces style update when drop state changes
25311 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
25312 not perfect since we cannot (yet) call the IDataObject.GetData()
25313 method, we keep getting 0x80004005 error, dunno why)
25315 2005-06-02 Peter Bartok <pbartok@novell.com>
25317 * DragEventArgs.cs: Make fields internal so we can cache the
25318 object and re-set the fields from XplatUI
25320 2005-06-02 Jackson Harper <jackson@ximian.com>
25322 * Control.cs: Add some internal methods so the DnD subsystem can
25323 raise DnD events. Also call into the driver when AllowDrop is set.
25325 * XplatUIDriver.cs: New method for setting whether or not a window
25326 is allowed to accept drag and drop messages.
25328 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
25330 * ScrollBar.cs: Make sure that values sent in Scroll events
25331 are always between Maximum and Minimum.
25333 2005-06-01 Marek Safar <marek.safar@seznam.cz>
25335 * Menu.cs: Call MenuChanged when menuitem visibility has been
25337 * MenuItem.cs: Rebuild menu when item is (not) visible.
25338 * MainMenu.cs: MainMenu has special MenuChanged.
25339 * Theme.cs: Caption and FrameBorderSize are not fixed.
25340 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
25341 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
25343 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
25344 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
25346 2005-05-30 Jackson Harper <jackson@ximian.com>
25348 * DataFormat.cs: We can't statically initialize this stuff because
25349 it calls into the xplatui and could create a loop. So we lazy init
25352 2005-05-28 Jackson Harper <jackson@ximian.com>
25354 * Control.cs: Proper implementation of Product(Name/Version).
25356 2005-05-27 Jackson Harper <jackson@ximian.com>
25358 * DataObject.cs: Dont crash if no data is found.
25360 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
25361 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
25362 as per status page, guessing it should be set to true
25364 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
25366 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
25367 * DataGridTableStyle.cs: set proper formatting text, def header text
25368 * ThemeWin32Classic.cs: new themable paramaters
25369 * DataGridBoolColumn.cs: paint check box, get data, fixes
25370 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
25371 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
25372 * DataGridColumnStyle.cs: fixes
25373 * Theme.cs: new themable paramaters
25375 2005-05-26 Peter Bartok <pbartok@novell.com>
25377 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
25379 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25380 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
25382 2005-05-24 Peter Bartok <pbartok@novell.com>
25384 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
25385 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
25386 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
25387 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
25388 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
25389 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
25390 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
25391 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
25392 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
25393 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
25394 missing attributes, etc
25395 * DataGridPreferredColumnWidthTypeConverter.cs: Added
25397 2005-05-24 Peter Bartok <pbartok@novell.com>
25399 * Help.cs: Added, implemented trivial functions, throws up MessageBox
25400 when user tries to get help
25401 * DataObject.cs, DataFormats.cs, LinkArea.cs,
25402 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
25403 to suppress warnings
25404 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
25405 avoid unreachable code warning
25407 2005-05-20 Peter Bartok <pbartok@novell.com>
25409 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
25411 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25413 * DataGridTextBoxColumn.cs: Basic painting methods
25414 * DataGridTableStyle.cs: Set table style in the column
25415 * ThemeWin32Classic.cs: Use Theme for colors
25416 * DataGridDrawingLogic.cs: Implement more drawing
25417 * DataGrid.cs: drawing, theming, enhacements, fixes
25418 * DataGridColumnStyle.cs: fixes, drawing
25419 * Theme.cs: theming for Datagrid
25421 2005-05-20 Peter Bartok <pbartok@novell.com>
25423 * Cursor.cs: Implemented GetObjectData() method
25425 2005-05-20 Peter Bartok <pbartok@novell.com>
25427 * Cursors.cs: Added setting of cursor name
25429 - Implemented constructors
25430 - Implemented Draw and DrawStretched
25431 - Implemented Current property
25432 - Implemented == and != operators
25433 - Implemented Dispose()
25434 - Implemented ToString
25435 - Added missing attributes
25437 - Added missing reset for OverrideCursor when DoEvents is called
25438 - Fixed creation of cursor, logic was wrong
25440 - Added missing reset for OverrideCursor when DoEvents is called
25441 - Fixed creation of cursor, bit arrays were swapped
25442 * Clipboard.cs: Removed obsolete MonoTODO attribute
25444 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25446 * ComboBox.cs: fixes OnSelectedItemChanged
25447 * ControlBindingsCollection.cs: fixes item range check
25449 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25452 - Calc preferred height properly
25453 - Implement missing properties
25455 * NumericUpDown.cs: Implement missing events
25457 2005-05-19 Jackson Harper <jackson@ximian.com>
25459 * TabControl.cs: New method that resizes the tab pages before
25460 redrawing them. This as needed as the control is double buffered
25461 and sizing will not be recalculated unless ResizeTabPages is
25463 * TabPage.cs: Set base.Text instead of Text in the constructor so
25464 that UpdateOwner does not get called. Use the new Redraw method of
25465 TabControl instead of Refresh so the sizing is recalculated.
25466 * ThemeWin32Classic.cs: Draw the text for button tabs.
25468 2005-05-19 Jackson Harper <jackson@ximian.com>
25470 * Control.cs: Paint control background images. Fix typo where
25471 PaintControlBackground was not getting called correctly.
25473 2005-05-19 Peter Bartok <pbartok@novell.com>
25475 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
25476 I can investigate, apparently I broke FileDialog
25478 2005-05-19 Marek Safar <marek.safar@seznam.cz>
25480 * AxHost.cs: Some simple properties.
25481 * Control.cs: window must be accessible after ctor.
25482 * Form.cs: Added TransparencyKey property.
25483 * TextBoxBase.cs: Implemented Clear. Text property can be null.
25484 * XplatUIWin32.cs: SetBorderStyle implemented.
25486 2005-05-18 Peter Bartok <pbartok@novell.com>
25488 * DataObject.cs: Entries are not global but particular to the
25489 DataObject, now it behaves that way
25490 * XplatUIWin32.cs: Implemented Clipboard methods
25491 * Clipboard.cs: Implemented
25492 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
25493 * XplatUIOSX.cs: Updated to final clipboard prototypes
25494 * XplatUIX11.cs: Implemented Clipboard methods
25495 * XplatUIDriver.cs: Updated to final clipboard prototypes
25496 * XplatUIStructs.cs:
25497 - Added BITMAPINFOHEADER struct
25498 - Added ClipboardFormats enum
25500 - Added ClipboardStruct
25501 - Added Atom enum items for clipboard types
25502 - Fixed atom types for Selection event structures
25504 - Added internal properties and methods for drivers to enumerate
25506 - Switched initialization method to allow drivers to assign their
25507 own IDs even for the MS predefined clipboard IDs
25508 * XplatUI.cs: Updated to final clipboard interface
25510 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25511 * PropertyGridView.cs: Fixed compiler warnings.
25513 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25514 * PropertyGrid.cs: Added some event calls
25515 * PropertyGridView.cs: Change drawing code to use double buffering
25516 * PropertyGridTextBox.cs: Changed Text property name
25517 * GridItem.cs: Added Bounds property.
25518 * GridEntry.cs: Added Bounds property.
25520 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
25522 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
25523 since GetType() may not return the correct type if the object is
25526 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
25528 * TreeNodeCollection.cs: fixes get/set item ranges
25530 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
25532 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
25534 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
25536 * ComboBox.cs: Fix item range comparation
25537 * ListView.cs: Fix item range comparation
25539 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
25542 - Clear example panel when OnPaint is called
25543 - Better solution for displaying the example panel text
25544 - Select default indexes in the ListBoxes
25546 2005-05-11 Geoff Norton <gnorton@customerdna.com>
25548 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
25550 2005-05-11 Peter Bartok <pbartok@novell.com>
25552 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
25553 * SelectionRangeConverter.cs: Implemented
25554 * PropertyGrid.cs: Fixed attribute value
25556 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
25557 - Added Sebastien Pouliot's CAS Stack Propagation fixes
25558 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
25559 that's common to all drivers. First methods to go there are
25560 Sebastien Pouliot's CAS Stack Propagation helper methods
25561 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
25562 Sebastien Pouliot for CAS Stack Propagation
25564 2005-05-11 Geoff Norton <gnorton@customerdna.com>
25567 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
25569 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
25571 * DataGridTextBoxColumn.cs: fixed some members
25572 * GridColumnStylesCollection.cs: indexed column is case insensitive
25573 * DataGridTableStyle.cs: fixes
25574 * ThemeWin32Classic.cs: add new theme parameter
25575 * Theme.cs: add new theme parameter
25576 * DataGridDrawingLogic.cs: Datagrid's drawing logic
25577 * DataGrid.cs: fixes, new internal properties, etc.
25578 * DataGridColumnStyle.cs: allows to set grid value
25581 2005-05-10 Peter Bartok <pbartok@novell.com>
25583 * AccessibleObject.cs:
25584 - Removed MonoTODO attribute on help, method is correct
25585 - Fixed Bounds property
25586 * AxHost.cs: Moved MonoTODO
25587 * ButtonBase.cs: Now setting AccessibleObject properties
25588 * RadioButton.cs: Setting proper AccessibleObject role
25589 * CheckBox.cs: Setting proper AccessibleObject role
25590 * ControlBindingsCollection.cs: Added properties, methods and attributes
25591 * DataFormats.cs: Fixed awkward internal API, and changed to enable
25592 userdefined DataFormats.Format items as well
25593 * ListControl.cs: Removed data_member from the public eye
25594 * OpenFileDialog.cs:
25595 - Made class sealed
25596 - Added missing attributes
25597 * SaveFileDialog.cs: Added missing attributes
25598 * ImageListStreamer.cs: Fixed code that caused warnings
25599 * LinkLabel.cs: Removed unreachable code
25600 * TreeView.cs: Fixed code that caused warnings
25601 * PropertyGridView.cs: Fixed code that caused warnings
25602 * GridColumnStylesCollection.cs: Added missing attributes
25603 * GridTableStylesCollection: Added missing attribute
25604 * PropertyManager: Added .ctor
25605 * SecurityIDType: Added
25606 * DataObject.cs: Implemented class
25607 * LinkArea.cs: Added missing attribute
25609 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
25611 * RadioButton.cs: call base method to allow to fire OnClick event
25612 * UpDownBase.cs: OnMouseUp call base method
25613 * CheckedListBox.cs: call base method before returning
25614 * TrackBar.cs: call base method before returning
25617 2005-05-10 Peter Bartok <pbartok@novell.com>
25619 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
25622 2005-05-10 Peter Bartok <pbartok@novell.com>
25624 * DataFormats.cs: Implemented
25625 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
25626 XplatUIX11.cs: Added Clipboard APIs
25627 * XplatUIWin32.cs: Implemented Clipboard APIs
25628 * FolderBrowserDialog.cs: Added missing event, attributes
25630 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
25632 * CheckBox.cs: call base method to allow to fire OnClick event
25634 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
25636 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
25638 2005-05-06 Peter Bartok <pbartok@novell.com>
25640 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
25641 * Screen.cs: Implemented
25642 * HelpNavigator.cs: Added
25643 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
25645 * HelpProvider.cs: Implemented all we can do until we have a CHM
25646 help library (which means that "What's This" does work now)
25648 2005-05-06 Jackson Harper <jackson@ximian.com>
25650 * XplatUIX11.cs: Fix waking up the main loop.
25652 2005-05-05 Peter Bartok <pbartok@novell.com>
25654 * XplatUI.cs: Updated revision
25655 * Form.cs: Removed enless loop
25656 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
25657 * Label.cs (OnPaint): Added call to base.OnPaint()
25658 * ToolTip.cs: Made ToolTipWindow reusable for other controls
25659 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
25660 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
25662 * ButtonBase.cs: Moved base.OnPaint() call to end of method
25663 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
25664 to ToolTip.ToolTipWindow for drawing and size methods; this allows
25665 reuse of ToolTipWindow by other controls
25666 * SizeGrip.cs: Moved base.OnPaint() call to end of method
25667 * XplatUIX11.cs: Now clipping drawing area (experimental)
25668 * PictureBox.cs: Moved base.OnPaint() call to end of method
25669 * Theme.cs: Fixed ToolTip abstracts to match new format
25670 * ErrorProvider.cs: Implemented
25672 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
25674 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
25678 - Implements LinkBehavior
25679 - Fixes many issues
25681 2005-05-03 Jackson Harper <jackson@ximian.com>
25683 * ListView.cs: Calculate the scrollbar positioning on resize and
25684 paint, so they get put in the correct place.
25686 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
25688 * ColorDialogs.cs: The small color panels are now handled by
25689 SmallColorControl. This fixes drawing of the focus rectangle
25690 and adds a 3D border.
25692 2005-05-03 Peter Bartok <pbartok@novell.com>
25694 * Control.cs: Modified version of Jonathan Chamber's fix for
25697 2005-05-03 Jackson Harper <jackson@ximian.com>
25699 * ListView.cs: Remove redraw variable. Control now handles whether
25700 or not a redraw needs to be done, and will only raise the paint
25701 event if redrawing is needed.
25703 2005-05-03 Jackson Harper <jackson@ximian.com>
25705 * Splitter.cs: No decorations for the splitter form. Cache the
25708 2005-05-03 Jackson Harper <jackson@ximian.com>
25710 * TreeView.cs: Use dashed lines to connect nodes. Use the
25711 ControlPaint method for drawing the focus rect instead of doing
25714 2005-05-02 Peter Bartok <pbartok@novell.com>
25716 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
25718 2005-04-29 Jackson Harper <jackson@ximian.com>
25720 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
25721 entire image buffer. Just clear the clipping rectangle.
25723 2005-04-29 Jackson Harper <jackson@ximian.com>
25725 * ThemeWin32Classic.cs: Don't draw list view items that are
25726 outside the clipping rectangle.
25728 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
25730 * ListBox.cs: added horizontal item scroll
25732 2005-04-29 Jackson Harper <jackson@ximian.com>
25734 * ThemeWin32Classic.cs: Remove some old debug code that was
25735 causing flicker with the new double buffering code.
25737 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
25739 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
25740 behave like combobox and comboboxlist (still not sure if this is
25743 2005-04-28 Jackson Harper <jackson@ximian.com>
25745 * ThemeWin32Classic.cs: Don't fill the middle of progress
25746 bars. This fills areas outside of the clip bounds that don't need
25749 2005-04-28 Jackson Harper <jackson@ximian.com>
25751 * Control.cs: Don't expose functionality to touch the image buffers.
25753 * ListView.cs: We do not need to (and no longer can) manipulate
25754 the image buffers directly. All of this is handled by Control.
25756 2005-04-28 Peter Bartok <pbartok@novell.com>
25758 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
25759 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
25760 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
25762 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
25765 - Adjust control's height for non-simple comboboxes (bug fix)
25767 * MenuAPI.cs: remove unused var
25768 * ScrollBar.cs: remove unsed var
25770 * ListBox.cs: unselect items when clearing
25772 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
25774 * ListControl.cs: honors OnPositionChanged and default Selected Item
25775 * ListBox.cs: unselect items when clearing
25777 2005-04-27 Jackson Harper <jackson@ximian.com>
25779 * X11Keyboard.cs: Initialize a default keyboard and give a warning
25780 if a "correct" keyboard is not found. This will make us not crash,
25781 but might give some users bad keyboard layouts...seems to be the
25782 same thing rewind does.
25784 2005-04-27 Jackson Harper <jackson@ximian.com>
25786 * BindingManagerBase.cs: Attach the current/position changed
25787 handlers to their respective events.
25789 2005-04-27 Jackson Harper <jackson@ximian.com>
25791 * Control.cs: Make sure that the first WM_PAINT does a full draw,
25793 * ThemeWin32Classic.cs: Don't fill the background for picture
25794 boxes. This could overright user drawing.
25795 * ComboBox.cs: Just fill the clipping rect not the entire client
25796 rect when drawing the background. This prevents pieces of the
25797 image buffer from getting overwritten and is theoretically faster.
25799 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
25801 * ComboBox.cs: Databinding support fixes, fire missing events
25802 * ListControl.cs: implement missing methods and properties, fixes
25803 * ThemeWin32Classic.cs: Databiding support on Drawing
25804 * CheckedListBox.cs: Databinding support fixes, fire missing events
25805 * ListBox.cs: Databinding support fixes, fire missing events
25807 2005-04-25 Peter Bartok <pbartok@novell.com>
25809 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
25811 2005-04-25 Jackson Harper <jackson@ximian.com>
25813 * TreeView.cs: Use the horizontal scrollbars height not width when
25814 determining how much of the client area is available.
25816 2005-04-25 Jackson Harper <jackson@ximian.com>
25818 * Control.cs: Double buffering is handled differently now. As per
25819 the spec, the extra buffer is created in the WM_PAINT message and
25820 passed down to the control's drawing code.
25828 * PropertyGridView.cs:
25840 * DateTimePicker.cs:
25842 * TreeView.cs: Update to new double buffering system.
25843 * MonthCalendar.cs: Uncomment block, as Capture is now
25844 working. Update to new double buffering
25845 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
25846 * PaintEventArgs.cs: New internal method allows us to set the
25847 graphics object. This is used for double buffering.
25848 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
25849 rectangle. The internal paint_area var has been removed from
25850 StatusBar. The clipping rect should be used instead.
25851 * Theme.cs: Give the PictureBox drawing method a clipping rect.
25852 * TabPage.cs: The RefreshTabs method was removed, so just call the
25853 tab controls Refresh method now.
25854 * TabControl.cs: Update to new double buffering. Make sure the
25855 handle is created before sizing the tab pages, otherwise we will
25856 get stuck in a loop.
25858 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
25860 * LinkLabel.cs: Fix typo, bug #74719; patch
25861 from Borja Sanchez Zamorano
25863 2005-04-22 Jackson Harper <jackson@ximian.com>
25865 * TreeNode.cs: Implement Handle stuff.
25866 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
25868 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
25870 * DataGridTextBoxColumn.cs: call base constructors, fixes
25871 * GridColumnStylesCollection.cs: missing events, methods, and functionality
25872 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
25873 * DataGridTableStyle.cs: implements create default column styles
25874 * DataGridBoolColumn.cs: which types can handle
25875 * DataGrid.cs: missing methods, fixes, new functionality
25876 * DataGridColumnStyle.cs: fixes
25878 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
25879 * FolderBrowserDialog.cs:
25880 - Use a thread to fill the TreeView
25881 - Adjusted some sizes
25883 2005-04-19 Peter Bartok <pbartok@novell.com>
25885 * LinkLabel.cs: (Re-)create the pieces when setting the Text
25886 property. Fixes #74360.
25888 2005-04-19 Jackson Harper <jackson@ximian.com>
25890 * XEventQueue.cs: Lock when getting the lockqueue size.
25891 * PictureBox.cs: Call base OnPaint
25893 2005-04-19 Peter Bartok <pbartok@novell.com>
25895 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
25896 messages were no longer being processed (this broke BeginInvoke)
25899 2005-04-18 Jackson Harper <jackson@ximian.com>
25901 * TreeView.cs: buglet that caused node images to get drawn
25902 regardless of whether or not they were in the clipping rectangle.
25904 2005-04-18 Jackson Harper <jackson@ximian.com>
25906 * CurrencyManager.cs: There are four rules for GetItemProperties:
25907 - If the type is an array use the element type of the array
25908 - If the type is a typed list, use the type
25909 - If the list contains an Item property that is not an object, use
25911 - use the first element of the list if there are any elements in
25914 2005-04-17 Jackson Harper <jackson@ximian.oom>
25916 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
25917 click. This handles offsets for scrolling properly and reduces
25918 memory. Also fixed GetNode to not offset now that TopNode works
25920 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
25922 2005-04-17 Jackson Harper <jackson@ximian.com>
25924 * CursorConverter.cs: Initial implementation.
25926 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
25928 * ListControl.cs: work towards complex data binding support on ListControl
25929 * CurrencyManager.cs: work towards complex data binding support on ListControl
25930 * ListBox.cs: work towards complex data binding support on ListControl
25933 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
25935 * GridTableStylesCollection.cs: fixes name and constructor
25936 * DataGridTableStyle.cs: fixes
25937 * DataGridBoolColumn.cs: fixes names and constructors
25938 * DataGrid.cs: define methods and properties. Some init implementations
25939 * DataGridCell.cs: define methods and properties. Some init implementations
25940 * GridTablesFactory.cs: Define methods and properties
25942 2005-04-15 Geoff Norton <gnorton@customerdna.com>
25944 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
25945 graphics port changes. We still want the coordinates in global screen
25948 2005-04-14 Jackson Harper <jackson@ximian.com>
25950 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
25951 check plus minus or checkbox clicks unless those features are enabled.
25953 2005-04-14 Jackson Harper <jackson@ximian.com>
25955 * TreeView.cs: Add methods for setting the top and bottom visible
25956 nodes. TreeNode::EnsureVisible uses these methods.
25957 * TreeNode.cs: Implement EnsureVisible
25959 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
25961 * Form.cs: Pospone menu assignation if the window has not been created yet
25962 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
25965 2005-04-12 Jackson Harper <jackson@ximian.com>
25967 * TreeView.cs: Set the TopNode properly when scrolling
25968 occurs. This has the added benifit of reducing the amount of
25969 walking that needs to be done when drawing. Also removed an old
25971 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
25973 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
25975 * Timer.cs: fixes interval setting when the timer is already enabled
25977 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
25979 * FolderBrowserDialog.cs: First approach
25981 2005-04-09 Peter Bartok <pbartok@novell.com>
25983 * FolderBrowserDialog: Added
25985 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
25987 * LinkLabel.cs: move drawing code into the theme
25988 * ThemeWin32Classic.cs: drawing code and painting background bugfix
25989 * Theme.cs: define DrawLinkLabel method
25991 2005-04-05 Jackson Harper <jackson@ximian.com>
25993 * BindingContext.cs: Use weak references so these bad actors don't
25994 stay alive longer then they need to.
25996 2005-04-05 Jackson Harper <jackson@ximian.com>
25998 * ListControl.cs: Basic implementation of complex databinding.
26000 * ListBox.cs: Add calls to ListControl databinding methods.
26002 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
26005 - Don't change PopupButtonState to Normal when the
26006 PopupButton gets pressed several times.
26007 - Renamed ButtonPanel to PopupButtonPanel
26009 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
26011 * ColorDialog.cs: Use cached objects instead of creating them
26012 * LinkLabel.cs: Use cached objects instead of creating them
26013 * Splitter.cs: Use cached objects instead of creating them
26014 * FontDialog.cs: Use cached objects instead of creating them
26015 * PropertyGridView.cs: Use cached objects instead of creating them
26016 * MessageBox.cs: Use cached objects instead of creating them
26017 * FileDialog.cs: Use cached objects instead of creating them
26018 * ThemeWin32Classic.cs: Use cached objects instead of creating them
26019 * TreeView.cs: Use cached objects instead of creating them
26021 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
26023 * Control.cs: use Equals to compare the font since no == op
26024 * ScrollBar.cs: use Equals to compare the font since no == op
26026 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
26028 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
26030 2005-04-01 Jackson Harper <jackson@ximian.com>
26032 * Binding.cs: Implement IsBinding.
26033 * BindingManagerBase.cs:
26034 * PropertyManager.cs:
26035 * CurrencyManager.cs: Add IsSuspended property.
26037 2005-04-01 Jackson Harper <jackson@ximian.com>
26039 * Binding.cs: Had some IsAssignableFrom calls backwards.
26041 2005-04-01 Jackson Harper <jackson@ximian.com>
26043 * Binding.cs: Handle null data members when pulling data.
26044 * PropertyManager.cs: Handle the data member being a property that
26047 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
26049 * DataGridTextBoxColumn.cs: fixes signature
26050 * DataGrid.cs: calls right constructor
26052 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
26054 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
26055 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
26056 * GridTableStylesCollection.cs: implements GridTableStylesCollection
26057 * DataGridTableStyle.cs: implements DataGridTableStyle
26058 * DataGridBoolColumn.cs: implements DataGridBoolColumn
26059 * DataGridTextBox.cs: implements DataGridTextBox
26060 * DataGridColumnStyle.cs: implements DataGridColumnStyle
26062 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
26064 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
26066 2005-03-29 Peter Bartok <pbartok@novell.com>
26069 - Properly implemented CompanyName property
26070 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
26071 returns a path that includes CompanyName, ProductName and
26072 Version (fixes bug #70330)
26074 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
26076 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
26079 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
26081 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
26083 - Added ReadOnly CheckBox
26084 - Further refactoring: moved some code from Open-/SaveFileDialog
26087 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
26089 * OpenFileDialog.cs: Fixed CheckFileExists
26091 Moved FileView and DirComboBox outside FileDialog class.
26092 They can now be used outside FileDialog
26094 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
26096 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
26097 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
26099 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
26101 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26102 - Added missing CreatePrompt property in SaveDialog
26103 - Overall SaveDialog handling should be better now
26104 - Added non standard ShowHiddenFiles property
26105 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
26106 - Added InitialDirectory and RestoreDirectory support
26108 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
26110 * FileDialog.cs: Made dirComboBox usable
26112 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
26114 * FileDialog.cs: Added Filter support (case sensitiv)
26116 2005-03-24 Jackson Harper <jackson@ximian.com>
26118 * TabControl.cs: Need a couple more pixels for the lines.
26120 2005-03-23 Jackson Harper <jackson@ximian.com>
26122 * TabControl.cs: Give the tab page focus when it is selected.
26124 2005-03-23 Jackson Harper <jackson@ximian.com>
26126 * TabControl.cs: Account for the drawing of tabs borders when
26127 invalidating. If the slider was clicked dont do click detection on
26130 2005-03-23 Jackson Harper <jackson@ximian.com>
26132 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
26134 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
26136 * CategoryGridEntry.cs: Added
26137 * GridItem.cs: Added helper properties
26138 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
26139 * GridEntry.cs: Updated code for collection
26140 * PropertyGrid.cs: Cleaned up some formatting
26141 * PropertyGridView.cs: Added drop down functionality for enums.
26142 * GridItemCollection.cs: Added enumerator logic
26143 * PropertyGridEntry.cs: Added
26145 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
26148 - Removed unnecessary commented code
26149 - Fixed handling for entering the filename manually in the combobox
26151 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
26153 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
26155 2005-03-18 Peter Bartok <pbartok@novell.com>
26157 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
26158 them being touching the border
26160 2005-03-18 Peter Bartok <pbartok@novell.com>
26162 * TextControl.cs: Quick hack to center text better
26164 2005-03-18 Peter Bartok <pbartok@novell.com>
26167 - Don't throw NotImplemented exceptions, just print a notice once
26168 instead (requested by Miguel). This makes running existing SWF
26171 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
26172 - Added context menu trigger on right click
26173 * Panel.cs: Trigger invalidate on resize
26175 - Removed old double-buffer drawing
26176 - Added ResizeRedraw style to force proper update of statusbar
26178 - Removed debug output
26179 * ThemeWin32Classic.cs:
26180 - Fixed drawing of status bar, now draws Text property if there
26181 are no defined panels
26183 2005-03-18 Jackson Harper <jackson@ximian.com>
26185 * ImageList.cs: When the image stream is set pull all the images
26187 * ImageListStreamer.cs: Implement reading image list streams.
26189 2005-03-18 Peter Bartok <pbartok@novell.com>
26191 * ThemeWin32Classic.cs (DrawPictureBox):
26192 - Fixed calculations for centered drawing
26193 - Fixed drawing for normal mode, not scaling the image on normal
26195 2005-03-18 Peter Bartok <pbartok@novell.com>
26197 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
26200 - Made Open/Save button the accept button for FileDialog
26201 - Tied the cancel button to the IButtonControl cancel button
26202 - Save/Open now properly builds the pathname
26203 - Now handles user-entered text
26204 - Preventing crash on right-click if no item is selected
26205 - Fixed Text property, now uses contents of textbox
26206 - Fixed SelectedText property, now just returns the text part that
26207 is selected in the text box
26209 2005-03-18 Jackson Harper <jackson@ximian.com>
26211 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
26212 rect, make sure to de-adjust the interior rect after drawing the
26215 2005-03-18 Peter Bartok <pbartok@novell.com>
26217 * MenuAPI.cs: Remove menu *before* executing selected action to
26218 prevent the menu from 'hanging around'
26220 2005-03-17 Geoff Norton <gnorton@customerdna.com>
26222 * XplatUIOSX.cs: Implemented WorkingArea property
26224 2005-03-17 Peter Bartok <pbartok@novell.com>
26226 * XplatUIX11.cs: Fixed menu coord calculations
26227 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
26228 for calculating offsets
26230 2005-03-17 Peter Bartok <pbartok@novell.com>
26232 * Hwnd.cs: Do not consider menu presence for default client
26233 rectangle location/size
26234 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26235 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
26236 translation functions
26237 * FileDialog.cs: Fixed (what I presume is a) typo
26239 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
26241 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
26242 X access (avoids X-Async errors)
26244 2005-03-16 Jackson Harper <jackson@ximian.com>
26246 * TabControl.cs: Raise the SelectedIndexChanged event.
26248 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
26250 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26251 - Removed vertical ToolBar and replaced it with a custom panel
26252 (desktop and home button already work)
26253 - Added Help button (some controls get resized or relocated then)
26254 - Draw correct text depending on Open or Save.
26255 - Fixed some typos...
26257 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
26260 - Only change Maximum and Minimum when need it (bug fix)
26262 2005-03-15 Peter Bartok <pbartok@novell.com>
26264 * Form.cs: Use Handle for icon, to trigger creation if
26265 the window does not yet exist
26267 - CanSelect: Slight performance improvement
26268 - Focus(): Preventing possible recursion
26269 - Invalidate(): Removed ControlStyle based clear flag setting
26270 - WM_PAINT: fixed logic for calling OnPaintBackground
26271 - WM_ERASEBKGND: Fixed logic, added call to new driver method
26272 EraseWindowBackground if the control doesn't paint background
26274 - Moved EraseWindowBackground() method to internal methods
26275 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
26276 is sent via SendMessage on BeginPaint call on Win32
26278 - Added EraseWindowBackground() method
26279 - No longer sends WM_ERASEBKGND on .Expose, but on call to
26280 PaintEventStart, which more closely matches Win32 behaviour
26281 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
26282 - Fixed SetFocus() to properly deal with client and whole windows
26283 * Hwnd.cs: Added ErasePending property
26284 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
26285 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
26287 2005-03-12 Geoff Norton <gnorton@customerdna.com>
26290 - Fix hard loop when timers exist.
26291 - Fix bugs with middle and right click for 3 button mice.
26293 2005-03-11 Peter Bartok <pbartok@novell.com>
26296 - get_WorkingArea: Need to call X directly, GetWindowPos only
26297 returns cached data now
26298 - Added sanity check to GetWindowPos hwnd usage
26300 2005-03-11 Jackson Harper <jackson@ximian.com>
26302 * BindingManagerBase.cs: This method isn't used anymore as
26303 PullData now updates the data in the control.
26305 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
26307 * Form.cs: fixes menu drawing on X11
26308 * MenuAPI.cs: fixes menu drawing on X11
26310 2005-03-11 Peter Bartok <pbartok@novell.com>
26312 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
26313 from Jonathan Gilbert; should fix bug #73606
26314 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
26315 in Screen coordinates. Thanks, Jordi.
26316 * Form.cs: Added missing attribute
26318 2005-03-11 Peter Bartok <pbartok@novell.com>
26321 - Rudimentary Mdi support
26322 - Removed outdated FormParent code
26323 - Implemented lots of missing properties and methods, still missing
26324 transparency support
26325 - Added missing attributes
26326 - Implemented support for MaximumBounds
26327 - Added firing of various events
26328 * XplatUI.cs: Added SetIcon() method
26329 * XplatUIDriver.cs: Added SetIcon() abstract
26330 * XplatUIOSX.cs: Stubbed out SetIcon() method
26332 - Implemented SetIcon() support
26333 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
26334 - Switched to unix line endings
26336 - Made POINT internal so for can access it as part of MINMAX
26337 - Implemented SetIcon() support
26338 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
26339 native Mdi support again, might have to go managed)
26340 * Control.cs: Now fires the StyleChanged event
26341 * MdiClient.cs: Added; still mostly empty
26343 2005-03-10 Peter Bartok <pbartok@novell.com>
26345 * SaveFileDialog.cs: Added emtpy file
26347 2005-03-08 Peter Bartok <pbartok@novell.com>
26349 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
26350 in turn triggers OnCreateContro) when creating a handle for the
26352 * TextControl.cs: Fixed endless loop in certain cases when
26353 replacing the current selection
26355 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
26358 - Honors NewValue changes in Scroll events allowing apps to change it
26359 - Adds First and Last Scroll events
26360 - Fixes Thumb events
26362 2005-03-07 Peter Bartok <pbartok@novell.com>
26364 * Hwnd.cs: Added DefaultClientRectangle property
26365 * XplatUI.cs: Now using the X11 driver Where() method, which provides
26366 more detailed debug information
26368 - Fixed size-change feedback loop, where we would pull an old size
26369 off the queue and mistakenly change our window's size to an
26371 - Now compressing ConfigureNotify events, to reduce looping and
26373 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
26376 2005-03-07 Jackson Harper <jackson@ximian.com>
26378 * Binding.cs: Push data pushes from data -> property. Check if the
26379 property is readonly when attempting to set it.
26381 2005-03-07 Jackson Harper <jackson@ximian.com>
26383 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
26384 instead of IsSubclassOf. Pulling data now sets the value on the
26386 * PropertyManager.cs:
26387 * CurrencyManager.cs: Just need to pull data when updating now,
26388 because PullData will set the value on the control.
26390 2005-03-04 Jackson Harper <jackson@ximian.com>
26392 * Binding.cs: Implement data type parsing and converting on pulled
26393 data. TODO: Are there more ways the data can be converted?
26395 2005-03-04 Jackson Harper <jackson@ximian.com>
26397 * Binding.cs: Support <Property>IsNull checks. Also bind to the
26398 controls Validating method so we can repull the data when the
26399 control loses focus.
26401 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
26404 - Fixes null string format
26407 - Adds enum type checks
26408 - Fixes redrawing and recalc need after changing some properties
26409 - Fixes on focus_item set after the event
26410 - Fixes adding columns after the control has been created
26412 * ThemeWin32Classic.cs:
26413 - Fixes CheckBox focus rectangle
26414 - Fixes ColumnHeader drawing
26417 2005-03-03 Jackson Harper <jackson@ximian.com>
26419 * Binding.cs: Bind to <Property>Changed events so we can detect
26420 when properties are changed and update the data.
26422 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
26425 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
26426 - Fixes ImageList constructor with ImageList container
26427 - Fixes image scaling (wrong parameters at DrawImage)
26429 2005-02-02 Jackson Harper <jackson@ximian.com>
26431 * Binding.cs: Make property searches case-insensitive. Eliminate
26432 some duplicated code.
26434 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
26437 - Handle focus event
26438 - Fix scrollbar events
26439 - Discard highlighted item if remove it
26440 - Fixes SelectedItem with strings
26442 2005-03-01 Peter Bartok <pbartok@novell.com>
26445 - Fixed Visible property, now follows (once again) parent chain
26446 to return false if any control in the chain is visible=false
26447 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
26448 - Fixed several places where is_visible instead of Visible was used
26449 - Implemented FIXME related to focus selection when setting focused
26450 control to be invisible
26452 * XplatUIWin32.cs: Now using proper method to find out if window is
26453 visible. Thanks to Jordi for pointing it out
26455 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
26457 * ComboBox.cs: show/hide scrollbar instead of creating it
26459 2005-02-27 Jackson Harper <jackson@ximian.com>
26461 * CurrencyManager.cs: Add PositionChanged stuff.
26463 2005-02-27 Peter Bartok <pbartok@novell.com>
26465 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
26466 * XplatUIOSX.cs: Added GetMenuOrigin() stub
26467 * XplatUIWin32.cs: Implemented GetMenuOrigin()
26469 - Implemented GetMenuDC()
26470 - Implemented GetMenuOrigin()
26471 - Implemented ReleaseMenuDC()
26472 - Implemented generation of WM_NCPAINT message
26473 - Implemented generation and handling of WM_NCCALCSIZE message
26474 * Form.cs: Added debug helper message for Jordi's menu work
26476 - Modified ClientRect property; added setter, fixed getter to handle
26477 setting of ClientRect
26478 - Added MenuOrigin property
26480 2005-02-26 Peter Bartok <pbartok@novell.com>
26483 - Destroys the caret if a window that's being destroyed contains it
26484 - Ignores expose events coming from the X11 queue for windows that
26485 already are destroyed
26486 - Now uses the proper variable for handling DestroyNotify, before we
26487 marked the wrong window as destroyed
26488 - Improved/added some debug output
26490 2005-02-26 Peter Bartok <pbartok@novell.com>
26492 * X11Keyboard.cs: Fixes to work on 64bit systems
26494 2005-02-26 Peter Bartok <pbartok@novell.com>
26497 - Now calling OnHandleDestroyed from DestroyHandle()
26498 instead of Dispose()
26499 - Removed bogus call to controls.Remove() from DestroyHandle()
26501 2005-02-26 Peter Bartok <pbartok@novell.com>
26503 * Control.cs: Properly destroy child windows when our handle is
26506 2005-02-25 Peter Bartok <pbartok@novell.com>
26509 - Added 'DriverDebug' define to allow tracing XplatUI API calls
26510 - Alphabetized Static Methods and Subclasses
26513 - Added XException class to allow custom handling of X11 exceptions
26514 - Created custom X11 error handler, tied into XException class
26515 - Added support for MONO_XEXCEPTIONS env var to allow the user
26516 to either throw an exception on X errors or continue running
26517 after displaying the error
26518 - Added handling of DestroyNotify message
26519 - Added handler for CreateNotify message (still disabled)
26520 - Improved (tried to at least) Where method to provide file and lineno
26522 - Added XErrorHandler delegate
26523 - Added XRequest enumeration (to suppor translation of errors)
26525 2005-02-25 Jackson Harper <jackson@ximian.com>
26527 * PropertyManager.cs: Implement editing features
26528 * CurrencyManager.cs:
26529 * Binding.cs: First attempt at UpdateIsBinding
26530 * BindingManagerBase.cs: Call UpdateIsBinding before
26531 pushing/pulling data.
26533 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
26535 * MenuAPI.cs: Respect disabled items
26536 * ThemeWin32Classic.cs
26537 - Caches ImageAttributes creation for DrawImageDisabled
26538 - Fixes vertical menu line drawing
26539 - Draws disabled arrows in disable menu items
26541 2005-02-24 Peter Bartok <pbartok@novell.com>
26544 - Added UserData property to allow associating arbitrary objects
26546 - Fixed leak; now removing Hwnd references from static windows array
26548 - Fixed Graphics leak in PaintEventEnd
26549 - Removed usage of HandleData, switched over to Hwnd class
26550 * HandleData.cs: Removed, obsoleted by Hwnd.cs
26552 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
26554 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
26555 * ScrollBar.cs: Fixes bug
26556 * TrackBar.cs: removes death code, clipping, mimize refreshes,
26557 keyboard navigation enhancements
26559 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
26561 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
26562 * GroupBox.cs: Add control styles
26563 * Label.cs: Add control styles
26564 * UpDownBase.cs: Add control styles
26565 * ListBox.cs: Add control styles
26566 * XplatUIWin32.cs: Fixes wrong parameter order
26569 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
26571 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
26573 2005-02-23 Jackson Harper <jackson@ximian.com>
26575 * PropertyManager.cs: Implement property binding. This doesn't
26576 seem to work yet though as (I think) there are some bugs in
26577 System.ComponentModel.PropertyDescriptor.
26578 * BindingContext.cs: Use new PropertyManager constructor.
26580 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
26582 * ProgressBar.cs: use clip region in ProgressBar
26583 * ThemeWin32Classic.cs: use clip region in ProgressBar
26585 2004-02-22 Jackson Harper <jackson@ximian.com>
26587 * BindingsCollection.cs: Remove some debug code.
26589 2005-02-22 Jackson Harper <jackson@ximian.com>
26591 * BindingContext.cs:
26592 * ControlBindingsCollection.cs:
26593 * CurrencyManager.cs:
26595 * BindingManagerBase.cs: Initial implementation
26596 * BindingsCollection.cs: Add an internal contains method that the
26597 BindingManagerBase uses to ensure bindings aren't added twice to
26599 * PropertyManager.cs: Stubbed out.
26601 * ContainerControl.cs: Hook up databinding
26603 2005-02-22 Geoff Norton <gnorton@customerdna.com>
26606 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
26607 Fixed Invalidate/Update chain.
26608 Fixed tons of other minor bugs (this is almost a complete rewrite).
26610 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
26612 * ComboBox.cs: do subcontrol creation when the control is created
26614 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26616 * Label.cs: fixes image drawing (image and imagelist)
26617 * ThemeWin32Classic.cs: cache brushes
26619 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26621 * Form.cs: Move menu drawing code to Theme class
26622 * ComboBox.cs: Move ComboBox drawing code to Theme class
26623 * MenuItem.cs: Move menu drawing code to Theme class
26624 * MenuAPI.cs: Move menu drawing code to Theme class
26625 * ThemeWin32Classic.cs: New methods
26626 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
26627 * ListBox.cs: Move Listbox drawing code to Theme class
26628 * Theme.cs: New methods
26630 2005-02-20 Peter Bartok <pbartok@novell.com>
26633 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
26634 only process mnemonics on those)
26635 - Fixed event sequence for key handling; first calling
26636 ProcessKeyEventArgs now
26638 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
26639 for processing non-character keys
26640 - Fixed WM_CHAR to generate proper event sequence before processing
26641 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
26644 2005-02-19 Peter Bartok <pbartok@novell.com>
26646 * UserControl.cs: Added TextChanged event; added attributes
26647 * SizeGrip.cs: Implemented resizing and optional display of grip
26648 * Form.cs: Fixed attribute
26649 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26650 Changed meaning of ScrollWindow bool argument; instead of the
26651 clear attribute (which will be true usually anyway), it gives the
26652 option of moving child controls as well.
26654 - Changed to match new ScrollWindow argument
26655 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
26656 now handles the implicit parent window a WM puts around us
26657 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
26659 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
26660 * TreeView.cs: Adjusted to new ScrollWindow arguments
26662 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26664 * Form.cs: Menu integration with non-client area
26665 * MenuItem.cs: Menu integration with non-client area
26666 * MenuAPI.cs: Menu integration with non-client area
26668 2005-02-18 Peter Bartok <pbartok@novell.com>
26670 * MethodInvoker.cs: Added
26671 * MdiLayout.cs: Added
26672 * SendKeys.cs: Started implementation
26673 * ErrorIconAlignment.cs: Added
26675 2005-02-18 Peter Bartok <pbartok@novell.com>
26677 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
26678 * Form.cs: Added handling for Menu-related Non-client messages
26680 2005-02-17 Peter Bartok <pbartok@novell.com>
26682 * UpDownBase.cs: Fixed typo, compilation errors
26683 * DomainUpDown.cs: Fixed attribute value
26685 2005-02-16 Miguel de Icaza <miguel@novell.com>
26687 * UpDownBase.cs: Attach entry events.
26689 Add ForeColor property, Focused, InterceptArrowKeys (interception
26690 does not work yet).
26692 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
26695 - Redraw non client are on Setmenu
26696 - Calc proper menu starting point
26698 2005-02-17 Peter Bartok <pbartok@novell.com>
26700 * Application.cs: Fixed message_filter check
26702 2005-02-17 Peter Bartok <pbartok@novell.com>
26704 * Application.cs: Now calls registered message filters
26705 * DockStyle.cs: Fixed attribute
26706 * Form.cs: Fixed attribute
26707 * Menu.cs: Fixed attribute
26708 * ToolTip.cs: Fixed attribute
26709 * TreeNode.cs: Added missing attributes and arranged in regions
26710 * PropertyGrid.cs: Fixed signatures
26711 * TreeNodeCollection.cs: Added attributes
26712 * Splitter.cs: Added missing attributes; arranged into regions
26713 * TabPage.cs: Added missing attributes; arranged into regions
26714 * TextBoxBase.cs: Added missing attributes
26715 * TextBox.cs: Added missing attributes
26716 * ArrangeDirection.cs: Added missing attributes
26717 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
26718 * ToolBarButton.cs: Fixed attributes
26719 * AnchorStyles.cs: Fixed attribute
26720 * TrackBar.cs: Fixed attributes
26721 * TabControl.cs: Added missing attributes and arranged into regions
26722 * ToolBar.cs: Fixed attribute
26723 * StatusBar.cs: Fixed signature, organized into regions and added
26725 * StatusBarPanel.cs: Fixed attributes
26726 * ContentsResizedEventArgs.cs: Implemented
26727 * ContentsResizedEventHandler.cs: Implemented
26728 * DateBoldEventArgs.cs: Implemented
26729 * DateBoldEventHandler.cs: Implemented
26730 * UpDownEventArgs.cs: Implemented
26731 * UpDownEventHandler.cs: Implemented
26733 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
26735 * Form.cs: first Menu NC refactoring
26736 * MenuAPI.cs: first Menu NC refactoring
26738 2005-02-16 Peter Bartok <pbartok@novell.com>
26740 * ImeMode.cs: Added missing attributes
26741 * Menu.cs: Fixed attribute
26742 * GroupBox.cs: Fixed attribute
26743 * Label.cs: Fixed attribute
26744 * ColorDialog.cs (RunDialog): Removed TODO attribute
26745 * ComboBox.cs: Fixed attributes
26746 * ListControl.cs: Added missing attributes
26747 * PropertyGrid.cs: Fixed attributes
26748 * Control.cs: Fixed attributes
26749 * ListViewItem.cs: Added TypeConverter attribute
26750 * NotifyIcon.cs: Fixed attributes
26751 * ListView.cs: Fixed attributes
26752 * ButtonBase.cs: Fixed attribute
26753 * ImageList.cs: Added missing attributes
26754 * ContainerControl.cs: Fixed signature
26755 * CheckedListBox.cs: Fixed attribute; added missing attributes
26756 * Panel.cs: Fixed attributes
26757 * PropertyTabChangedEventArgs.cs: Added missing attribute
26758 * PropertyValueChangedEventArgs.cs: Added missing attribute
26759 * Binding.cs: Fixed attribute
26760 * ListViewItemConverter: Implemented ListViewSubItemConverter class
26761 * ListBox.cs: Fixed attribute; added missing attributes;
26762 * ScrollableControl.cs: Added missing attributes
26763 * PictureBox.cs: Added missing attributes; implemented missing property
26764 * DateTimePicker.cs: Added missing attributes
26765 * Theme.cs (ToolWindowCaptionHeight): Fixed type
26766 * MonthCalendar.cs: Fixed attributes
26767 * StatusBarPanel.cs: Added missing attributes
26768 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
26770 2005-02-16 Peter Bartok <pbartok@novell.com>
26772 * TextBoxBase.cs: The previous method to enforce height yet remember
26773 the requested high was less than ideal, this is an attempt to do
26775 * Control.cs: Added comment about possible problem
26776 * Copyright: Updated format
26777 * GridItemType.cs: Fixed swapped values
26779 2005-02-15 Jackson Harper <jackson@ximian.com>
26781 * BaseCollection.cs: Use property so we never access an
26782 uninitialized list. Also initialize the list in the property.
26784 2005-02-15 Peter Bartok <pbartok@novell.com>
26786 * GroupBox.cs (ProcessMnemonic): Implemented
26787 * Label.cs (ProcessMnemonic): Implemented
26788 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
26791 2005-02-15 Peter Bartok <pbartok@novell.com>
26793 * RadioButton.cs (ProcessMnemonic): Implemented
26794 * CheckBox.cs (ProcessMnemonic): Implemented
26796 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
26798 - Added internal method to allow calling ProcessMnemonic from other
26800 * ContainerControl.cs:
26801 - Started support for handling validation chain handling
26802 - Implemented ProcessMnemonic support
26803 - Added Select() call to Active, to make sure the active control
26805 * Form.cs: Setting toplevel flag for Forms (this was lost in the
26806 FormParent rewrite)
26807 * ThemeWin32Classic.cs:
26808 - DrawCheckBox(): Fixed stringformat to show hotkeys
26809 - DrawRadioButton(): Fixed stringformat to show hotkeys
26810 * CommonDialog.cs: Removed WndProc override, not needed
26812 2005-02-14 Peter Bartok <pbartok@novell.com>
26814 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
26815 missed those in the rewrite
26817 2005-02-14 Miguel de Icaza <miguel@novell.com>
26819 * NumericUpDown.cs (Increment, ToString): Add.
26820 (DecimalPlaces): implement.
26824 * UpDownBase.cs: Add the designer attributes.
26826 2005-02-13 Peter Bartok <pbartok@novell.com>
26828 * Panel.cs: Removed border_style, now in Control
26829 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
26830 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
26832 2005-02-13 Peter Bartok <pbartok@novell.com>
26834 * MouseButtons.cs: Added missing attributes
26835 * XplatUIStructs.cs: Added enumeration for title styles
26836 * LeftRightAlignment.cs: Added missing attributes
26837 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
26838 it compatible with Graphics.FromHwnd()
26839 * SelectedGridItemChangedEventArgs.cs: Fixed property type
26840 * Keys.cs: Added missing attributes
26841 * SelectionRange.cs: Added missing attributes
26842 * SelectionRangeConverter.cs: Added
26844 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
26845 ReleaseMenuDC methods
26846 - Renamed ReleaseWindow to UngrabWindow
26847 - Added proper startup notice to allow version identification
26849 - Added missing attributes
26850 - Removed FormParent concept
26851 * Label.cs: Removed border_style field, now in Control
26852 * RadioButton.cs: Now properly selects RadioButton when focus is
26854 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
26856 - Added missing attributes
26857 - Added borderstyle handling
26858 - Removed FormParent concept support
26859 - Fixed calls to XplatUI to match changed APIs
26860 - Fixed bug that would case us to use disposed Graphics objects
26861 - Removed unneeded internal methods
26862 - PerformLayout(): Fixed to handle DockStyle.Fill properly
26863 - SelectNextControl(): Fixed to properly check common parents
26864 * TextBoxBase.cs: Removed border_style field (now in Control)
26866 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
26867 fixed calculations for form size
26868 - Added support for localized strings and icons
26869 - Improved form size calculations, added border
26870 * ListView.cs: Removed border_style field (now in Control)
26871 * X11Structs.cs: Moved several structs from X11 driver here
26872 * X11Keyboard.cs: Changed debug message
26873 * Application.cs: Removed FormParent concept support
26875 - Resetting end_modal flag
26876 - Removed FormParent concept support
26877 * NativeWindow.cs: Removed FormParent concept support
26878 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
26879 Client area and Non-Client whole window to allow support for WM_NC
26881 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
26882 prevent using it until it supports Hwnd as per Geoff Norton's request
26883 * ToolBar.cs: Fixed drawing, was not doing proper drawing
26884 * PictureBox.cs: Removed border_style field, now in Control
26885 * XplatUIWin32.cs: Added new driver methods
26887 2005-02-12 Peter Bartok <pbartok@novell.com>
26889 * OpacityConverter.cs: Implemented
26890 * Hwnd.cs: Internal class to support drivers that need to emulate
26891 client area/non-client area window behaviour
26893 2005-02-11 Peter Bartok <pbartok@novell.com>
26895 * KeysConverter.cs: Implemented
26897 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
26899 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
26900 * LinkLabel: Added missing attributes
26901 * MainMenu.cs: fixes ToString
26902 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
26903 * ListBox.cs: fixes event position
26904 * TrackBar.cs: adds missing attributes and events
26906 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
26908 * MenuItem.cs: Use SystemInformation and bug fixes
26909 * MenuAPI.cs: Use SystemInformation and bug fixes
26911 2005-02-09 Jackson Harper <jackson@ximian.com>
26913 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
26914 their keystate otherwise things like VK_MENU get stuck "on".
26916 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
26918 * ListBox.cs: Fixes AddRange bug
26920 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
26923 - Add missing attributes
26924 - Add missing method
26926 * CheckedListBox.cs: Added missing attributes
26927 - Add missing attributes
26928 - Remove extra method
26930 * ComboBox.cs: Added missing attributes
26931 * VScrollBar.cs: Added missing attributes
26932 * ScrollBar.cs: Added missing attributes
26933 * ListBox.cs: Fixes signature, add missing consts
26934 * LinkArea.cs: Added missing attributes
26937 2005-02-08 Peter Bartok <pbartok@novell.com>
26939 * Menu.cs: Added missing attributes
26940 * MainMenu.cs: Added missing attributes
26941 * GroupBox.cs: Added missing attributes
26942 * Label.cs: Added missing attributes
26943 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
26945 - Added Instance and Options properties
26946 - Added missing attributes
26947 * Cursor.cs: Made Serializable
26948 * NotifyIcon: Added missing attributes
26949 * MenuItem.cs: Added missing attributes
26950 * TextBoxBase.cs: Implemented AppendText() and Select() methods
26951 * Panel.cs: Added Missing attributes
26952 * MonthCalendar.cs: Fixed CreateParams
26954 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
26958 - Fixes issues with links
26959 - Adds the class attributes
26961 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
26964 - Fixes button when no items available in dropdown
26965 - Fixes repainting problems
26966 - Adds the class attributes
26968 2005-02-07 Geoff Norton <gnorton@customerdna.com>
26970 * XplatUIOSX.cs: Detect the menu bar and title bar height from
26971 the current theme. Cache these on startup.
26973 2005-02-07 Jackson Harper <jackson@ximian.com>
26975 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
26976 the scrollbar buttons when they are depressed.
26978 2005-02-07 Geoff Norton <gnorton@customerdna.com>
26980 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
26981 Get the display size from the main displayid. We currently dont
26982 support multiple display configurations.
26984 2005-02-07 Geoff Norton <gnorton@customerdna.com>
26986 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
26988 2005-02-07 Miguel de Icaza <miguel@novell.com>
26990 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
26992 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
26994 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
26996 2005-02-04 Jackson Harper <jackson@ximian.com>
26998 * ThemeWin32Classic.cs: Respect the clipping rect when
26999 drawing. Only fill the intersection of clips and rects so there
27000 isn't a lot of large fills.
27001 * ScrollBar.cs: Pass the correct clipping rect to the theme
27002 engine. Remove some debug code.
27004 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
27006 * DateTimePicker.cs:
27007 - Fixed crash on DateTime.Parse, use Constructor instead
27009 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
27013 - Owner draw support (MeasureItem and DrawItem)
27015 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
27018 - Implements FindMergePosition and MergeMenu functions (very poor documented)
27019 - Fixes MenuItems.Add range
27021 - MergeMenu and Clone and CloneMenu functions
27023 2005-02-03 Jackson Harper <jackson@ximian.com>
27025 * ScrollBar.cs: Make abstract
27026 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
27029 2005-02-03 Jackson Harper <jackson@ximian.com>
27031 * ScrollBar.cs: First part of my scrollbar fixups. This removes
27032 all the unneeded refreshes and uses invalidates with properly
27035 2005-02-03 Peter Bartok <pbartok@novell.com>
27037 * ComponentModel.cs: Added
27038 * IDataGridEditingService.cs: Added
27039 * Timer.cs: Added missing attributes
27040 * ToolTip.cs: Added missing attributes
27042 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27044 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
27046 2005-02-03 Peter Bartok <pbartok@novell.com>
27048 * ListBox.cs: Added missing attributes
27050 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
27053 - Fixes font height after font change
27054 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
27056 2005-02-02 Peter Bartok <pbartok@novell.com>
27058 * HandleData.cs: Introduced static methods to allow class
27059 to be more self-contained and track it's own HandleData objects
27060 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
27061 HandleData to use new static methods
27063 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
27066 - Fixes default size and PreferredHeight
27068 - ObjectCollection.Insert implementation
27074 - ObjectCollection.Insert implementation
27075 - No selection after clean
27078 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
27080 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
27082 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
27085 - Caches ItemHeight calculation for OwnerDrawVariable
27086 - Handles dropdown properly
27087 - Fixes several minor bugs
27089 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
27092 - Fixes 71946 and 71950
27093 - Fixes changing Multicolumn on the fly
27094 - Fixes keyboard navigation on Multicolumn listboxes
27096 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27098 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
27099 crash reporter log.
27101 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27103 * XplatUIOSX.cs: Allow applications to actually exit.
27105 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27107 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
27108 their parent at creation time rather than lazily later. Fixes a major
27109 regression we were experiencing.
27111 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
27113 * ThemeWin32Classic.cs: more date time picker painting fixes
27114 * DateTimePicker.cs: more monthcalendar drop down fixes
27115 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
27117 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
27120 - When moving the thumb going outside the control should stop the moving
27121 - Adds the firing of missing events
27122 - Fixes no button show if Size is not specified
27123 - End / Home keys for keyboard navigation
27125 2005-01-30 Peter Bartok <pbartok@novell.com>
27127 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
27128 sanity check to prevent theoretical loop
27129 * XplatUIWin32.cs (SetVisible): Removed debug output
27130 * XplatUIX11.cs (SystrayChange): Added sanity check
27131 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
27132 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
27133 behaviour, valid until the X11 client window rewrite is done
27134 * TextBox.cs (ctor): Setting proper default foreground and background
27137 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
27139 * Theme: Added DrawDateTimePicker to interface
27140 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
27141 * DateTimePicker.cs: Created (still needs keys and painting code)
27142 * DateTimePickerFormat.cs: added
27143 * MonthCalendar.cs: fixed CreateParams for popup window mode
27145 2005-01-29 Peter Bartok <pbartok@novell.com>
27147 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
27148 this should also the calculations for ligher/darker
27149 * Theme.cs: Fixed defaults for ScrollBar widths/heights
27151 2005-01-29 Peter Bartok <pbartok@novell.com>
27153 * ArrangeDirection.cs: Added
27154 * ArrangeStartingPositon.cs: Added
27155 * SystemInformation.cs: Implemented
27156 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27157 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
27158 used by SystemInformation class
27159 * X11Strucs.cs: Added XSizeHints structure
27161 - Fixed CreateParams to make sure the menu window is always visible
27162 - TrackPopupMenu: Added check to make sure we don't draw the
27165 2005-01-29 Peter Bartok <pbartok@novell.com>
27167 * HandleData.cs: Added method for altering invalid area
27168 * TextBoxBase.cs: Implemented TextLength
27170 2005-01-28 Peter Bartok <pbartok@novell.com>
27172 * XplatUIX11.cs: Improvement over last patch, not sending
27173 the WM_PAINT directly anymore, instead we scroll any pending
27174 exposed areas and let the system pick out the WM_PAINT later
27176 2005-01-28 Peter Bartok <pbartok@novell.com>
27178 * SWF.csproj: Deleted, no longer used. Instead,
27179 Managed.Windows.Forms/SWF.csproj should be used
27180 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
27181 directly, to avoid a potential race condition with the next
27184 2005-01-28 Peter Bartok <pbartok@novell.com>
27186 * XplatUI.cs: Made class internal
27188 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
27190 * CheckedListBox.cs:
27193 - Missing methods and events
27195 2005-01-27 Peter Bartok <pbartok@novell.com>
27197 * Application.cs (Run): Don't use form if we don't have one
27199 2005-01-27 Peter Bartok <pbartok@novell.com>
27201 * TextBoxBase.cs (get_Lines): Fixed index off by one error
27203 2005-01-27 Peter Bartok <pbartok@novell.com>
27205 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
27206 * GridItem.cs: Added; Patch by Jonathan S. Chambers
27207 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
27208 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
27209 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
27210 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
27211 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27212 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27213 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27214 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27215 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27216 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27218 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
27221 - Draw focus on Simple Combobox
27222 - Fixes drawing issues
27225 2005-01-27 Peter Bartok <pbartok@novell.com>
27228 - Place window in default location, instead of hardcoded 0/0
27229 - Send initial LocationChanged event
27231 - UpdateBounds after creation to find out where the WM placed us
27232 - Make sure that if the ParentForm changes location the Form
27234 * XplatUIX11.cs: XGetGeometry will not return the coords relative
27235 to the root, but to whatever the WM placed around us.
27236 Translate to root coordinates before returning toplevel
27238 * XplatUIWin32.cs: Removed debug output
27239 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
27240 flag to GetWindowPos, to allow translation of coordinates on X11
27242 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
27244 * ListBox.cs: connect LostFocus Event
27246 2005-01-27 Peter Bartok <pbartok@novell.com>
27248 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27249 XplatUIX11.cs: Extended the Systray API
27250 * Form.cs: Removed debug output
27251 * Application.cs: Fixed focus assignment, always need to call
27252 XplatUI.Activate() since Form.Activate() has rules that may
27254 * NotifyIcon.cs: Should be complete now
27255 * ToolTip.cs: Worked around possible timer bug
27257 2005-01-27 Jackson Harper <jackson@ximian.com>
27260 - Only invalidate the effected tabs when the
27261 selected index changes. This reduces drawing and gets rid of some
27263 - Only refresh if the tabs need to be shifted, otherwise only
27264 invalidate the slider button.
27265 - On windows the tabs are not filled to right if the slider is
27268 2005-01-27 Jackson Harper <jackson@ximian.com>
27270 * TabControl.cs: Only refresh on mouseup if we are showing the
27271 slider. Also only invalidate the button whose state has changed.
27273 2005-01-26 Peter Bartok <pbartok@novell.com>
27275 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
27276 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
27277 and SystrayRemove() methods
27278 * XplatUIOSX.cs: Stubbed Systray methods
27280 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
27282 - Fixed broken XChangeProperty calls (marshalling messed up things)
27283 * X11Structs.cs: Added enums and structs required for Size hinting
27284 * NotifyIcon.cs: Added & implemented
27286 2005-01-26 Jackson Harper <jackson@ximian.com>
27288 * TabControl.cs: Space vertically layed out tabs properly.
27290 2005-01-26 Peter Bartok <pbartok@novell.com>
27292 * Form.cs (CreateClientParams): Always set the location to 0,0
27293 since we're a child window.
27295 * Control.cs (SetVisibleCore): Always explicitly setting the location
27296 of a toplevel window, apparently X11 doesn't like to move windows
27297 while they're not mapped.
27299 2005-01-26 Jackson Harper <jackson@ximian.com>
27301 * TabControl.cs: Implement FillToRight size mode with vertically
27304 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
27306 * ControlPaint.cs, ThemeWin32Classic.cs
27307 - Fixes DrawFocusRectangle
27309 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
27312 - MenuBar tracking only starts when item is first clicked
27313 - Fixes menu hidding for multiple subitems
27314 - Unselect item in MenuBar when item Executed
27317 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
27320 - IsInputKey for ListBox
27323 - Shift and Control item selection
27324 - Implement SelectionMode.MultiExtended
27325 - Fixes RightToLeft
27327 - IsInputKey implemented
27328 - Do not generate OnTextChangedEdit on internal txt changes
27330 2005-01-23 Peter Bartok <pbartok@novell.com>
27332 * AccessibleObject.cs: Partially implemented Select()
27333 * MonthCalendar.cs: Added missing attributes and events
27334 * Form.cs: Fixed CreateParams behaviour, now controls derived from
27335 form can properly override CreateParams.
27336 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27337 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
27338 Control performs Invalidate & Update
27339 * NativeWindow (CreateHandle): Added special handling for Form
27340 and Form.FormParent classes to allow overriding of From.CreateParams
27342 - ControlNativeWindow: Renamed 'control' variable to more intuitive
27344 - ControlNativeWindow: Added Owner property
27345 - Removed usage of Refresh() on property changes, changed into
27346 Invalidate(), we need to wait until the queue is processed for
27347 updates, direct calls might cause problems if not all vars for
27348 Paint are initialized
27349 - Added call to UpdateStyles() when creating the window, to set any
27350 styles that CreateWindow might have ignored.
27351 - Added support for Form CreateParent overrides to UpdateStyles()
27352 * MessageBox.cs: Removed no longer needed FormParent override stuff,
27353 CreateParams are now properly overridable
27354 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
27355 CreateParams are now properly overridable
27357 2005-01-23 Miguel de Icaza <miguel@ximian.com>
27359 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
27362 Capture LostFocus and OnTextBoxChanged. The later introduces a
27363 recursive invocation that I have not figured out yet.
27365 Reset the timer when not using (it was accumulating).
27368 (OnTextBoxChanged): Set UserEdit to true here to track whether the
27369 user has made changes that require validation.
27371 Reset changing to avoid loops.
27373 2005-01-22 Miguel de Icaza <miguel@ximian.com>
27375 * NumericUpDown.cs: Display value at startup.
27377 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
27380 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
27381 filled in. Added some basic parsing of text.
27383 Still missing the OnXXX method overrides, and figuring out the
27384 events that must be emitted.
27386 * UpDownBase.cs: Handle UserEdit on the Text property.
27388 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
27391 - Fixes IntegralHeight
27394 2005-01-21 Jackson Harper <jackson@ximian.com>
27396 * TabControl.cs: Set the SelectedIndex property when SelectedTab
27397 is set so that the page visibility is updated and the tabs are
27400 2005-01-21 Jackson Harper <jackson@ximian.com>
27402 * TabControl.cs: Use cliping rectangle for blitting. Give the
27403 theme the clipping rect so we can do clipping while
27404 drawing. Remove some debug code.
27406 2005-01-21 Jackson Harper <jackson@ximian.com>
27408 * TabPage.cs: Add a new method so tab pages can force the tab
27409 control to recalculate the tab page sizes.
27410 * TabControl.cs: UpdateOwner needs to make the tab control recalc
27413 2005-01-20 Jackson Harper <jackson@ximian.com>
27415 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
27417 2005-01-20 Jackson Harper <jackson@ximian.com>
27419 * TreeView.cs: Set the bounds for nodes properly. They were
27420 getting screwed up when checkboxes were not enabled, but images
27423 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
27426 - Owner draw support
27429 2005-01-20 Jackson Harper <jackson@ximian.com>
27431 * XplatUIStructs.cs: More misc keys
27432 * X11Keyboard.cs: Ignore some control keys.
27434 2005-01-20 Jackson Harper <jackson@ximian.com>
27436 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
27437 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
27439 2005-01-19 Peter Bartok <pbartok@novell.com>
27441 * Control.cs: Un-selecting the control when it is loosing focus
27443 2005-01-19 Jackson Harper <jackson@ximian.com>
27445 * TreeView.cs: Hook up to the text controls leave event so we can
27446 end editing when the users clicks outside the text box.
27448 2005-01-19 Jackson Harper <jackson@ximian.com>
27450 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
27451 get set in the conversion array.
27453 2005-01-19 Peter Bartok <pbartok@novell.com>
27455 * Application.cs (ModalRun): Added a call to CreateControl to ensure
27456 focus is properly set
27458 - Added missing attributes
27459 - removed styles, those are already set in the base class
27461 - Added missing attributes
27462 - Added clip window styles
27463 * CheckBox.cs: Added missing attributes
27465 - FormParentWindow.CreateParams: Added required clip styles
27466 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
27467 also filters modifier keys
27469 - Added assignment of Accept and Cancel button to enable Enter
27470 and Esc keys in MessageBox dialogs
27471 - FormParentWindow.CreateParams: Added required clip styles
27472 * RadioButton.cs: Added missing attributes
27473 * TextControl.cs: No longer draws selection if control does not
27476 - Now draws simple rectangle around test area to make it obvious
27477 there's a control. This is a hack until we properly support borders
27478 - A few simple fixes to support selections better, now erases selected
27479 text when typing, and resets selection when using movement keys
27481 2005-01-19 Miguel de Icaza <miguel@ximian.com>
27483 * UpDownBase.cs: Added some new properties.
27485 * DomainUpDown.cs: Implement a lot to get my test working.
27487 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27489 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
27491 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27493 * OSXStructs (WindowAttributes): Fixed csc complaints
27495 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27498 OSXStructs.cs: Initial refactor to move enums and consts into
27499 OSXStructs and use them in the driver for greater readability.
27501 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27503 * XplatUIOSX.cs: Initial support for Standard Cursors.
27504 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
27506 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
27508 * ComboBox.cs: ability to change style when the ctrl is already
27509 created, missing methods and events, bug fixes, signature fixes
27511 2005-01-19 Peter Bartok <pbartok@novell.com>
27513 * Cursors.cs (ctor): Added ctor to fix signature
27515 2005-01-18 Peter Bartok <pbartok@novell.com>
27517 * Button.cs: Implemented DoubleClick event
27519 - Fixed keyboard handling to behave like MS, where the press of
27520 Spacebar is equivalent to a mousedown, and the key release is
27521 equivalent to mouseup. Now a spacebar push will give the same
27522 visual feedback like a mouse click.
27523 - Added missing attributes
27524 - Added ImeModeChanged event
27525 - Added support for generating DoubleClick event for derived classes
27527 - Implemented DoubleClick event
27528 - Added missing attributes
27529 * CommonDialog.cs: Added missing attribute
27530 * ContextMenu.cs: Added missing attributes
27532 - AutoChecked buttons do not allow to be unselected when clicked
27533 (otherwise we might end up with no selected buttons in a group)
27534 - Added missing attributes
27535 - Implemented DoubleClickEvent
27536 * ThreadExceptionDialog.cs: Enabled TextBox code
27538 2005-01-18 Peter Bartok <pbartok@novell.com>
27540 * Form.cs: Removed debug output
27541 * Button.cs: Added support for DoubleClick method
27543 2005-01-18 Peter Bartok <pbartok@novell.com>
27546 - Added method to parent window that allows triggering size
27547 calculations when a menu is added/removed
27548 - set_Menu: Cleaned up mess from early days of Form and Control,
27549 now properly triggers a recalc when a menu is added/removed
27550 - Added case to select form itself as focused form if no child
27552 - Added PerformLayout call when showing dialog, to ensure properly
27555 - Select(): Made internal so Form can access it
27556 - Focus(): Only call Xplat layer if required (avoids loop), and sets
27558 * Application.cs (Run): Removed hack and calls PerformLayout instead
27559 to trigger calculation when Form becomes visible
27561 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
27563 * ComboBox.cs: fixes for ownerdraw
27565 2005-01-18 Peter Bartok <pbartok@novell.com>
27568 - Sentinel is no longer static, each Document gets it's own, this
27569 avoids locking or alternatively overwrite problems when more
27570 than one text control is used simultaneously.
27571 - Switched to use Hilight and HilightText brushes for text selection
27573 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
27575 2005-01-18 Peter Bartok <pbartok@novell.com>
27578 - Hooked up the following events:
27586 o SystemColorsChanged
27587 o ParentFontChanged
27589 - Removed debug output
27590 - Added a call to the current theme's ResetDefaults when a color change
27592 * Form.cs: Now setting the proper ImeMode
27593 * Theme.cs: Defined a method to force recreation of cached resources
27594 and rereading of system defaults (ResetDefaults())
27595 * ThemeWin32Classic.cs: Added ResetDefaults() stub
27597 2005-01-17 Peter Bartok <pbartok@novell.com>
27599 * Control.cs: Added missing attributes
27601 2005-01-17 Jackson Harper <jackson@ximian.com>
27603 * TreeNode.cs: Implement editing. Add missing properties selected
27605 * TreeView.cs: Implement node editing. Also some fixes to use
27606 Invalidate (invalid area) instead of Refresh when selecting.
27608 2005-01-17 Peter Bartok <pbartok@novell.com>
27611 - Implemented InvokeGotFocus() method
27612 - Implemented InvokeLostFocus() method
27613 - Implemented InvokePaint() method
27614 - Implemented InvokePaintBackground() method
27615 - Implemented InvokeClick() method
27616 - Implemented FindForm() method
27617 - Implemented RectangleToClient() method
27618 - Implemented ClientToRectangle() method
27619 - Implemented ResetBackColor() method
27620 - Implemented ResetCursor() method
27621 - Implemented ResetFont() method
27622 - Implemented ResteForeColor() method
27623 - Implemented ResetImeMode() method
27624 - Implemented ResetLeftToRight() method
27625 - Implemented ResetText() method
27626 - Implemented Scale() methods
27627 - Implemented ScaleCore() method
27628 - Implemented Update() method
27629 - Removed unused variables
27630 - Stubbed AccessibilityNotifyClients and
27631 ControlAccessibleObject.NotifyClients() methods (dunno what to do
27633 - Now setting proper default for RightToLeft property
27634 - Fixed bug in SetClientSizeCore that would cause windows to get
27636 - Now sending Click/DoubleClick events
27637 - Now selecting controls when left mouse button is clicked on
27639 * AccessibleEvents.cs: Added
27640 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
27641 * XplatUIOSX.cs: Stubbed UpdateWindow() method
27642 * XplatUIWin32.cs: Implemented UpdateWindow() method
27643 * XplatUIX11.cs: Implemented UpdateWindow() method
27644 * Form.cs: Removed stray semicolon causing CS0162 warning
27645 * ThemeWin32Classic.cs: Fixed unused variable warnings
27646 * ScrollableControl.cs: Now calls base method for ScaleCore
27647 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
27648 style to avoid interference with internal click handler (which is
27649 different than standard Control click handling)
27651 - Now unchecks all sibling radio buttons when control is
27652 selected (Fixes #68756)
27653 - Removed internal tabstop variable, using the one inherited from
27656 2005-01-17 Jackson Harper <jackson@ximian.com>
27658 * NavigateEventArgs.cs: Fix base type.
27659 * LinkLabel.cs: Sig fix
27661 2005-01-17 Jackson Harper <jackson@ximian.com>
27663 * TreeView.cs: Only invalidate the effected nodes bounds when
27666 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27668 * XplatUIWin32.cs: fixes Win32 marshaling
27669 * XplatUIX11.cs: fixes method signature
27671 2005-01-17 Peter Bartok <pbartok@novell.com>
27673 * XplatUIX11.cs: Clean up resources when we no longer need them
27675 2005-01-17 Peter Bartok <pbartok@novell.com>
27677 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
27678 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
27679 and DestroyCursor() methods.
27680 * Cursor.cs: Partially implemented, now supports standard cursors;
27681 still contains some debug code
27682 * Cursors.cs: Implemented class
27684 - WndProc(): Added handling of WM_SETCURSOR message, setting the
27686 - Implemented Cursor property
27687 - Replaced break; with return; more straightforwar and possibly
27689 - Now properly setting the result for WM_HELP
27690 * X11Structs.cs: Added CursorFontShape enum
27691 * XplatUIStructs.cs:
27692 - Added StdCursor enum (to support DefineStdCursor() method)
27693 - Added HitTest enum (to support sending WM_SETCURSOR message)
27695 - Now sends the WM_SETCURSOR message
27696 - Implemented new cursor methods
27697 * XplatUIOSX.cs: Stubbed new cursor methods
27699 - Implemented new cursor methods
27700 - Added GetSystemMetrics function and associated enumeration
27702 2005-01-15 Peter Bartok <pbartok@novell.com>
27705 - WndProc(): Now handles EnableNotifyMessage
27706 - SelectNextControl(): Fixed bug where if no child or sibling
27707 controls exist we looped endlessly
27709 2005-01-14 Jackson Harper <jackson@ximian.com>
27711 * TreeView.cs: Recalculate the tab pages when a new one is added
27712 so that the proper bounding rects are created.
27714 2005-01-14 Jackson Harper <jackson@ximian.com>
27716 * TreeView.cs: Draw a gray box instead of a grip in the lower
27717 right hand corner when there are both horizontal and vertical
27720 2005-01-14 Jackson Harper <jackson@ximian.com>
27722 * Control.cs: When erasing backgrounds use FromHwnd instead of
27723 FromHdc when there is a NULL wparam. This occurs on the X driver.
27724 * XplatUIX11.cs: Set the wparam to NULL.
27726 2005-01-13 Jackson Harper <jackson@ximian.com>
27728 * PictureBox.cs: Implement missing methods (except ToString, need
27729 to test that on windows) and events. When visibility is changed we
27730 need to redraw the image because the buffers are killed. When size
27731 is changed refresh if the sizemode needs it.
27733 2005-01-13 Peter Bartok <pbartok@novell.com>
27735 * Control.cs (SelectNextControl): Was using wrong method to select
27738 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27740 * ComboBox.cs: fixes dropstyle
27742 2005-01-13 Peter Bartok <pbartok@novell.com>
27745 - Implemented Select() override
27746 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
27747 - Now sets keyboard focus on startup
27748 * Control.cs (SelectNextControl): Now properly handles directed=true
27750 - WndProc: Now passes tab key on to base if AcceptTabChar=false
27751 - Added (really bad) focus rectangle (mostly for testing)
27752 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
27753 to enforce redraw on focus changes
27754 * ContainerControl.cs:
27755 - Fixed detection of Shift-Tab key presses
27756 - Fixed traversal with arrow keys
27757 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
27758 gonna keep this or if it's complete yet
27760 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27762 * ComboBox.cs: missing properties, fixes
27764 2005-01-13 Peter Bartok <pbartok@novell.com>
27766 * Panel.cs (ctor): Setting Selectable window style to off
27767 * Splitter.cs (ctor): Setting Selectable window style to off
27768 * GroupBox.cs (ctor): Setting Selectable window style to off
27769 * Label.cs (ctor): Setting Selectable window style to off
27771 2005-01-12 Miguel de Icaza <miguel@ximian.com>
27773 * UpDownBase.cs (InitTimer): If the timer has been already
27774 created, enable it.
27776 Use a TextBox instead of a Label.
27778 2005-01-12 Jackson Harper <jackson@ximian.com>
27780 * TreeView.cs: Refresh the tree after sorting the nodes. Always
27781 draw the connecting node lines (when ShowLines is true).
27782 * TreeNode.cs: The nodes index can now be updated. This is used
27783 when a node collection is sorted.
27784 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
27785 insert or an existing unsorted node collection can be sorted.
27787 2005-01-12 Peter Bartok <pbartok@novell.com>
27789 * ContainerControl.cs: Implemented ProcessDialogKeys()
27791 2005-01-12 Peter Bartok <pbartok@novell.com>
27794 - Implemented SelectNextControl() method
27795 - Several focus related bug fixes
27796 - Fixed Docking calculations to match MS documentation and
27799 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
27801 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
27804 2005-01-12 Peter Bartok <pbartok@novell.com>
27807 - Fixed broken Contains() method
27808 - Implemented GetNextControl() method. Finally. This is the pre-
27809 requisite for focus handling.
27811 2005-01-12 Peter Bartok <pbartok@novell.com>
27813 * OSXStrucs.cs: Added
27815 2005-01-12 Peter Bartok <pbartok@novell.com>
27818 - Removed PeekMessageFlags
27819 - Implemented SetWindowStyle() method
27820 * XplatUIStructs.cs: Added PeekMessageFlags
27821 * X11Structs: Added missing border_width field to XWindowChanges struct
27823 - PeekMessage: Now throws exception if flags which are not yet
27824 supported are passed
27825 - Implemented SetWindowStyle() method
27826 - Fixed SetZOrder to handle AfterHwnd properly
27827 * XplatUI.cs: Added SetWindowStyle() method
27828 * XplatUIDriver.cs: Added SetWindowStyle() abstract
27830 - Implemented UpdateStyles() method
27831 - Implemented UpdateZOrder() method
27832 * XplatUIOSX.cs: Added SetWindowStyle() stub
27834 2005-01-12 Geoff Norton <gnorton@customerdna.com>
27836 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
27840 2005-01-11 Jackson Harper <jackson@ximian.com>
27842 * TreeView.cs: Still need to draw lines to siblings even if out of
27843 the current node is out of the clip.
27845 2005-01-11 Jackson Harper <jackson@ximian.com>
27847 * TreeView.cs: When setting the hbar/vbar/grip position use
27848 SetBounds so that perform layout is only called once. Also suspend
27849 and resume layout so layout is only done once for all controls.
27850 - Removed some debug fluff
27851 * SizeGrip.cs: Call base implmentation in overriding methods.
27852 - When visibility is changed the drawing buffers are killed so we
27855 2005-01-11 Jackson Harper <jackson@ximian.com>
27857 * TreeView.cs: Calculate the open node count while drawing. This
27858 saves us an entire tree traversal for every paint operation. Use
27859 a member var for the open node count so less vars are passed around.
27861 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
27863 * MonthCalendar.cs:
27864 - fixed selection to use mousemove, not mouse polling on timer
27865 * ThemeWin32Classic.cs
27866 - removed redundant unused variable "no_more_content"
27868 2005-01-11 Peter Bartok <pbartok@novell.com>
27870 * XplatUIX11.cs (DoEvents): Needs to return when no more events
27871 are pending, so it now calls PeekMessage instead of GetMessage;
27872 implemented a incomplete version of PeekMessage
27874 2005-01-11 Peter Bartok <pbartok@novell.com>
27876 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
27878 * TextBoxBase.cs: Added sending of TextChanged event
27880 2005-01-10 Jackson Harper <jackson@ximian.com>
27882 * TreeView.cs: Try not to draw outside the clipping rectangle on
27885 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
27887 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
27889 2005-01-10 Jackson Harper <jackson@ximian.com>
27892 - Implement fast scrolling. Now only the newly
27893 exposed nodes are drawn and the old image is moved using the
27894 XplatUI::ScrollWindow method.
27895 - Factor in height of nodes when calculating whether or not the
27896 node is in the clipping rect.
27898 2005-01-10 Jackson Harper <jackson@ximian.com>
27900 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
27902 2005-01-10 Peter Bartok <pbartok@novell.com>
27904 * Application.cs: Added temporary hack to resolve all our resize
27905 required issues on startup. This will get fixed properly at
27906 some point in the future
27908 2005-01-10 Jackson Harper <jackson@ximian.com>
27910 * SizeGrip.cs: New internal class that is used as a sizing
27911 grip control...hence the name.
27913 2005-01-10 Peter Bartok <pbartok@novell.com>
27915 * Control.cs: Implemented proper TabIndex handling, now assigning
27916 a tabindex when a control is added to a container
27917 * GroupBox.cs (ctor): Now sets the Container style bit, required
27918 for Control.GetNextControl()
27920 2005-01-09 Jackson Harper <jackson@ximian.com>
27922 * TextBoxBase.cs: Clear window when scrolling (fixes build).
27924 2005-01-09 Peter Bartok <pbartok@novell.com>
27926 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27927 XplatUIX11.cs: Added ability to control ScrollWindow expose and
27928 an overload for ScrollWindow to allow only scrolling a rectangle
27930 2005-01-09 Peter Bartok <pbartok@novell.com>
27933 - Implemented SetDesktopBounds method
27934 - Implemented SetDesktopLocation method
27936 2005-01-08 Jackson Harper <jackson@ximian.com>
27938 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
27939 the node count has changed, this removes to VScroll::Refresh calls
27942 2005-01-08 Geoff Norton <gnorton@customerdna.com>
27944 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
27946 2005-01-07 Jackson Harper <jackson@ximian.com>
27948 * TreeNode.cs: Just update the single node when it is
27949 checked. Don't refresh after toggling, the Expand/Collapse already
27951 * TreeView.cs: Respect clipping a little more when drawing. Try
27952 not to redraw things that don't need to be redrawn. Just hide the
27953 scrollbars when they are no longer needed instead of removing
27954 them, so they don't have to be created again and again.
27956 2005-01-07 Geoff Norton <gnorton@customerdna.com>
27958 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
27959 coordinates to window space to place the caret properly, FIXED.
27960 Implement GetWindowState & SetWindowState
27962 2005-01-06 Peter Bartok <pbartok@novell.com>
27965 - Implemented ClientSize property
27966 - Implemented DesktopBounds property
27967 - Implemented DesktopLocation property
27968 - Implemented IsRestrictedWindow property
27969 - Implemented Size property
27970 - Implemented TopLevel property
27971 - Implemented FormWindowState property
27973 - Implemented GetTopLevel() method
27974 - Implemented SetTopLevel() method
27975 * X11Structs.cs (Atom):
27976 - Added AnyPropertyType definition
27977 - Added MapState definiton and updated XWindowAttribute struct
27978 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
27979 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
27980 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
27982 - Implemented GetWindowState() and SetWindowState() methods
27983 - Fixed Win32GetWindowLong return type
27985 - Introduced central function for sending NET_WM messages
27986 - Implemented GetWindowState() and SetWindowState() methods
27987 * TextBoxBase.cs (set_Lines):
27988 - Now uses Foreground color for text added via Text property (Duh!)
27989 - Added code to remember programmatically requested size (fixes
27990 behaviour when Multiline is set after Size)
27991 - Added AutoSize logic
27993 2005-01-06 Jackson Harper <jackson@ximian.com>
27995 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
27997 2005-01-06 Jackson Harper <jackson@ximian.com>
27999 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
28000 set to less then 0.
28002 2005-01-06 Jackson Harper <jackson@ximian.com>
28004 * ScrollableControl.cs: Lazy init the scrollbars.
28006 2005-01-06 Jackson Harper <jackson@ximian.com>
28008 * Theme.cs: Speed up getting pens and solid brushes, by using
28009 their ARGB as a hash instead of tostring and not calling Contains.
28011 2005-01-06 Peter Bartok <pbartok@novell.com>
28014 - Implemented OnActivated and OnDeactivate event trigger
28015 - Implemented Activate() method
28016 - Fixed ShowDialog() to activate the form that was active before
28017 the dialog was shown
28019 - Added global active_window var that tracks the currently active
28021 - Now always grabs Property changes from the root window to always
28022 catch changes on the active window property
28023 - Added code to PropertyNotify handler to send Active/Inactive
28024 messages when state changes. This puts X11 and Win32 en par on
28025 WM_ACTIVATE notifications (except for double notifications when
28026 the user clicks away from our modal window to another one of our
28029 2005-01-05 Jackson Harper <jackson@ximian.com>
28031 * ImageList.cs: Implment ctor
28033 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28035 * XplatUIOSX.cs: Implement Activate/SetTopmost
28037 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28039 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
28041 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28043 * XplatUIOSX.cs: Implement GetActive/SetFocus.
28045 2005-01-05 Peter Bartok <pbartok@novell.com>
28047 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
28048 XplatUIOSX.cs: Added GetActive method to return the currently
28049 active window for the application (or null, if none is active)
28051 - Implemented ActiveForm
28052 - Commented out owner assignment for modal dialogs (causes problems
28053 on Win32, since the owner will be disabled)
28054 - Reworked some Active/Focus handling (still incomplete)
28055 * CommonDialog.cs: Commented out owner assignment for modal dialogs
28056 (causes problems on Win32, since the owner will be disabled)
28057 * IWin32Window: Added ComVisible attribute
28059 2005-01-05 Peter Bartok <pbartok@novell.com>
28061 * ToolTip.cs (WndProc): Enable setting focus now that we have the
28062 required XplatUI functions.
28064 2005-01-05 Peter Bartok <pbartok@novell.com>
28066 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
28067 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
28068 to implement focus and activation handling; still incomplete and
28071 2005-01-04 Peter Bartok <pbartok@novell.com>
28073 * TextBoxBase.cs: Changed access level for Document property to
28074 match switch to internal for TextControl
28076 2005-01-04 Peter Bartok <pbartok@novell.com>
28078 * AccessibleObject: Added ComVisible attribute
28080 2005-01-04 Jackson Harper <jackson@ximian.com>
28082 * X11Keyboard.cs: Remove unneeded var.
28084 2005-01-04 Jackson Harper <jackson@ximian.com>
28086 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
28088 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
28089 ClientMessage. This makes apps exit cleanly (more often).
28091 2005-01-04 Jackson Harper <jackson@ximian.com>
28093 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
28094 handling focus, return correct colors and fonts,
28095 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
28096 handle selection, horizontal scrolling, and mouse interaction.
28098 2005-01-04 Peter Bartok <pbartok@novell.com>
28100 * ICommandExecutor.cs: Added
28101 * IDataGridColumnStyleEditingNotificationService.cs: Added
28102 * IFeatureSupport.cs: Added
28103 * IFileReaderService.cs: Added
28104 * IDataObject.cs: Added ComVisible attribute
28105 * AmbientProperties.cs: Added
28106 * BaseCollection.cs: Added missing attributes
28107 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
28108 * BaseCollection.cs: Added missing attributes
28109 * Binding.cs: Added TypeConverter attribute
28110 * BindingContext.cs: Added DefaultEvent attribute
28111 * BindingsCollection.cs: Added DefaultEvent attribute
28112 * Button.cs: Added DefaultValue attribute
28113 * DragEventArgs.cs: Added ComVisible attribute
28114 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
28115 * KeyEventArgs.cs: Added ComVisible attribute
28116 * KeyPressEventArgs.cs: Added ComVisible attribute
28117 * MouseEventArgs.cs: Added ComVisible attribute
28118 * NavigateEventArgs.cs: Added
28119 * NavigateEventHandler.cs: Added
28120 * FeatureSupport.cs: Added
28121 * OSFeature.cs: Added
28122 * Theme.cs: Added abstract Version property to support OSFeature
28123 * ThemeWin32Classic.cs: Added Version property to
28124 support OSFeature.Themes
28125 * ProgressBar.cs: Removed OnPaintBackground override, not required since
28126 the proper styles to avoid background drawing are set, also doesn't
28128 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
28129 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
28130 * ScrollEventArgs.cs: Added ComVisible attribute
28131 * SplitterEventArgs.cs: Added ComVisible attribute
28132 * AccessibleSelection.cs: Added Flags attribute
28133 * Appearance.cs: Added ComVisible attribute
28134 * Border3DSide.cs: Added ComVisible attribute
28135 * Border3DStyle.cs: Added ComVisible attribute
28136 * BorderStyle.cs: Added ComVisible attribute
28137 * DragAction.cs: Added ComVisible attribute
28138 * ErrorBlinkStyle.cs: Added
28139 * ScrollEventType.cs: Added ComVisible attribute
28140 * AnchorStyles.cs: Added Editor attribute
28141 * DockStyle.cs: Added Editor attribute
28142 * HorizontalAlignment.cs: Added ComVisible attribute
28143 * HelpEventArgs.cs: Added ComVisible attribute
28144 * PaintEventArgs.cs: Added IDisposable
28146 2005-01-04 Peter Bartok <pbartok@novell.com>
28148 * TextControl.cs: Switched Line, LineTag and Document classes to
28151 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
28153 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
28154 Simple mode, fixes, IntegralHeight, etc.
28156 2005-01-04 Peter Bartok <pbartok@novell.com>
28158 * TextBoxBase.cs: Using proper font variable now
28160 2005-01-04 Peter Bartok <pbartok@novell.com>
28162 * Form.cs (ShowDialog): Set parent to owner, if provided
28163 * GroupBox.cs: Removed unused vars
28165 - Added GetHashCode() for Document and LineTag classes
28166 - Removed unused variables
28167 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
28168 to allow translation between continuous char position and line/pos
28169 * CheckBox.cs: Removed vars that are provided by base class
28170 * RadioButton.cs: Removed vars that are provided by base class, added
28171 new keyword where required
28172 * LinkLabel.cs: Added new keyword where required
28173 * Control.cs (WndProc): Removed unused variable
28175 - Finished SelectionLength property
28176 - Implemented SelectionStart property
28177 - Implemented Text property
28178 - Removed unused vars
28179 * MessageBox.cs: Added new keyword where required
28180 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
28182 * MenuAPI.cs: Added new keyword where required
28183 * ButtonBase.cs: Removed vars that are provided by base class, added
28184 new keyword where required
28185 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
28186 argument to double, to allow compiling with csc 2.0 (Atsushi ran
28188 * Application.cs (Run): Now triggers the ThreadExit event
28189 * CommonDialog.cs: Added new keyword where required; now properly sets
28190 parent (owner) for dialog
28191 * XplatUIX11.cs: Commented out unused vars
28192 * StatusBar.cs: Fixed signature for Text property
28193 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
28195 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
28197 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
28198 TrackBar.cs, MonthCalendar.cs: remove unused vars
28200 2005-01-03 Jackson Harper <jackson@ximian.com>
28202 * ThemeWin32Classic.cs:
28203 * X11Keyboard.cs: Remove unused vars.
28205 2005-01-03 Peter Bartok <pbartok@novell.com>
28208 - set_Text: Tied into TextControl
28209 - set_TextAlignment: Tied into TextControl
28211 - Added alignment properties and implemented alignment handling
28212 and drawing (still has a bug, not generating proper expose events)
28213 - Added new Line() constructor to allow passing the line alignment
28214 - Fixed selection setting, properly handling end<start now
28215 - Added aligment considerations to RecalculateDocument()
28217 - Now properly enforces control height for single line controls
28218 - Added support for CharacterCasing
28219 - Added IsInputKey override
28220 - Fixed Keys.Enter logic
28221 - Added SetBoundsCore override
28222 - Fixed mouse selection handling
28224 2005-01-03 Jackson Harper <jackson@ximian.com>
28227 - Collapse and uncheck all nodes when CheckBoxes is disabled.
28228 - Checkboxes are always aligned to the bottom of the node,
28229 regardless of item height.
28230 - Use the node bounds to draw the text so we can center it when
28231 the item height is greater then the font height.
28232 - Node::Bounds are only the text part of the node.
28233 * TreeNode.cs: New method to combine collapsing and unchecking all
28236 2005-01-02 Jackson Harper <jackson@ximian.com>
28238 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
28239 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
28240 tree when a check is changed. TODO: Only refresh the checked node.
28242 2004-12-30 Jackson Harper <jackson@ximian.com>
28244 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
28245 * TreeNode.cs: When collapsing make sure to never collapse the
28248 2004-12-29 Jackson Harper <jackson@ximian.com>
28250 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
28252 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
28254 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
28256 2004-12-28 Peter Bartok <pbartok@novell.com>
28258 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
28261 2004-12-28 Peter Bartok <pbartok@novell.com>
28263 * Control.cs (WndProc): Added WM_HELP handler, now generates
28264 HelpRequested event
28265 * Form.cs: Added HelpButton property and required support code
28266 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
28268 2004-12-28 Peter Bartok <pbartok@novell.com>
28271 - Made DialogForm.owner variable internal
28272 - Added check to ensure owner form is set before setting
28273 owner properties in CreateParams
28275 2004-12-28 Geoff Norton <gnorton@customerdna.com>
28277 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
28278 swizzling. Implement ClientToScreen and ScreenToClient. Implement
28279 GetCursorPos. Fix major visibility issues. Rework the windowing
28280 system to support borderless/titleless windows (implements menus).
28281 Fix GetWindowPos. Implement initial background color support for
28284 2004-12-28 Peter Bartok <pbartok@novell.com>
28286 * Form.cs (get_CreateParams): Make sure we have an owner before using
28287 the owner variable. Implement proper default if no owner exists
28289 2004-12-28 Peter Bartok <pbartok@novell.com>
28291 * In preparation for making Managed.Windows.Forms the default build target
28292 for System.Windows.Forms, the following stubbed files were added.
28293 Dialogs are currently being implemented by contributors and are only
28294 short-term place holders.
28295 * ColorDialog.cs: Initial check-in (minmal stub)
28296 * DataGrid.cs: Initial check-in (minimal stub)
28297 * DataGridLineStyle.cs: Initial check-in (minimal stub)
28298 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
28299 * DataGridTableStyle.cs: Initial check-in (minimal stub)
28300 * FontDialog.cs: Initial check-in (minimal stub)
28301 * FileDialog.cs: Initial check-in (minimal stub)
28302 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
28303 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
28304 * OpenFileDialog: Initial check-in (minimal stub)
28305 * IComponentEditorPageSite.cs: Initial check-in
28306 * Splitter.cs: Initial check-in (for Jackson)
28307 * SplitterEventArgs.cs: Initial check-in (for Jackson)
28308 * SplitterEventHandler.cs: Initial check-in (for Jackson)
28309 * TextBox.cs: Initial check-in; still needs some wiring to
28310 TextControl backend
28311 * Form.cs: Implemented ControlBox property
28312 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
28313 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
28314 * TextControl.cs: Added selection functionality; added todo header
28316 - Implemented Lines property
28317 - Implemented TextHeight property
28318 - Implemented SelectedText property
28319 - Implemented SelectionLength property
28320 - Implemented SelectAll method
28321 - Implemented ToString method
28322 - Removed and cleaned up some debug code
28323 - Implemented (still buggy) mouse text selection
28325 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
28327 * ComboBox.cs: Complete DropDownList implementation, fixes.
28329 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
28331 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
28332 * ComboBoxStyle.cs: ComboBoxStyle enum
28333 * ComboBox.cs: Initial work on ComboBox control
28335 2004-12-21 Peter Bartok <pbartok@novell.com>
28337 * Control.cs (ctor, CreateParams): Moved setting of is_visible
28338 forward so that anything that creates a window gets the default,
28339 also no longer uses Visible property in CreateParams to avoid
28340 walking up the parent chain and possibly get the wrong visible
28341 status. Fixed IsVisible to no longer walk up to the parent.
28343 2004-12-21 Peter Bartok <pbartok@novell.com>
28345 * Form.cs (ShowDialog): Unset modality for the proper window
28347 2004-12-20 Peter Bartok <pbartok@novell.com>
28349 * CommonDialog.cs: Initial check-in
28351 2004-12-20 Peter Bartok <pbartok@novell.com>
28353 * Control.cs (Visible): Now uses the parent window instead of the
28354 client area window for the property
28357 - ShowDialog(): Now uses the proper window for modality
28358 - The default visibility state for the form parent is now false. This
28359 will prevent the user from seeing all the changes to the form and
28360 its controls before the application hits Application.Run()
28361 - Removed some stale commented out code
28364 - Added FindWindow() method to have a method to check for existence
28366 - Added ability to override default exception handling (for example
28367 when debugging with VS.Net; to do this the ExternalExceptionHandler
28369 - Removed some useless debug output
28372 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
28373 not working as expected
28374 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
28375 property to allow switching back to the modal window if focus is
28376 given to another one of our windows (Application Modal)
28377 - Now only sets override_redirect if we create a window
28379 - Moved EventMask selection before mapping of newly created window
28380 so we can catch the map event as well
28381 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
28382 - Added various Atom related DllImports
28383 - Implemented Exit() method
28384 - .ctor() : No longer shows window if WS_VISIBLE is not defined
28385 in the CreateParams
28387 * MessageBox.cs: Now properly deals with the FormParent window by
28388 providing an override the FormParent CreateParams property to
28389 set as POPUP instead of OVERLAPPED window.
28391 2004-12-19 Geoff Norton <gnorton@customerdna.com>
28393 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
28394 Minor code cleanup.
28396 2004-12-19 Geoff Norton <gnorton@customerdna.com>
28398 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
28400 2004-12-18 Peter Bartok <pbartok@novell.com>
28402 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
28403 implementing SetModal() method
28405 2004-12-18 Peter Bartok <pbartok@novell.com>
28407 * X11Structs.cs (XGCValues): Fixed type of function element
28408 * XplatUI.cs: Added ScrollWindow() method
28409 * XplatUIDriver.cs: Added ScrollWindow() abstract
28410 * XplatUIWin32.cs: Implemented ScrollWindow() method
28411 * XplatUIX11.cs: Implemented ScrollWindow() method
28412 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
28414 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28416 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
28417 Some more keyboard support (INCOMPLETE)
28419 2004-12-17 Peter Bartok <pbartok@novell.com>
28422 - Added color attribute to line tags.
28423 - Added color argument to all functions dealing with tags
28424 - Added color argument support to various functions
28425 - Fixed miss-calculation of baseline/shift in certain circumstances
28427 * TextBoxBase.cs: Added new color option to test code
28429 2004-12-17 Jackson Harper <jackson@ximian.com>
28432 * MonthCalendar.cs: Signature fixes
28434 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28436 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
28437 keyboard event moved it. Create a new graphics context for each paint resolves this
28439 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28441 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
28442 Make caret exist and go blink blink. Initial keyboard support.
28443 Fix exception handler, Add Invalidate support. Change way RefreshWindow
28446 2004-12-17 Jackson Harper <jackson@ximian.com>
28448 * XplatUIStructs.cs: Updated set of virtual keycodes.
28449 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
28451 2004-12-17 Jackson Harper <jackson@ximian.com>
28453 * XplatUIX11.cs: Prune old keyboard code.
28455 2004-12-17 Jackson Harper <jackson@ximian.com>
28457 * XplatUIX11.cs: When generating mouse wparams get the modifier
28458 keys from the ModifierKeys property.
28460 2004-12-17 Jackson Harper <jackson@ximian.com>
28462 * X11Keyboard.cs: Send up/down input when generating
28463 messages. Remove some unused vars.
28465 2004-12-17 Jackson Harper <jackson@ximian.com>
28468 * TreeView.cs: get rid of warnings.
28470 2004-12-17 Jackson Harper <jackson@ximian.com>
28472 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
28474 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
28476 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
28477 CheckedListBox.cs: Implementation
28479 2004-12-17 Peter Bartok <pbartok@novell.com>
28481 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
28483 2004-12-16 Peter Bartok <pbartok@novell.com>
28486 - InsertCharAtCaret(): Fixed start pos fixup
28487 - CaretLine_get: No longer derives the line from the tag, the tag
28488 could be stale if lines in the document have been added or deleted
28489 - RebalanceAfterDelete(): Fixed bug in balancing code
28490 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
28491 - Line.Streamline(): Now can also elminate leading empty tags
28492 - DumpTree(): Added a few more tests and prevented exception on
28494 - Added Debug section for Combining lines
28495 - Delete(): Now copies all remaining properties of a line
28498 - Left mousebutton now sets the caret (and middle button still acts
28499 as formatting tester, which must go away soon)
28500 - Added Debug section for Deleting/Combining lines
28501 - Fixed calculations for UpdateView after Combining lines
28503 2004-12-16 Peter Bartok <pbartok@novell.com>
28505 * TextControl.cs: Now properly aligns text on a baseline, using the
28506 new XplatUI.GetFontMetrics() method. Simplified several calculations
28507 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
28510 2004-12-16 Peter Bartok <pbartok@novell.com>
28512 * XplatUI.cs: Added GetFontMetrics() method
28513 * XplatUIDriver.cs: Added GetFontMetrics() abstract
28514 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
28515 into libgdiplus, our private GetFontMetrics function
28516 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
28517 * XplatUIWin32.cs: Implemented GetFontMetrics() method
28519 2004-12-16 Jackson Harper <jackson@ximain.com>
28521 * XplatUIStruct.cs: Add enum for dead keys
28522 * X11Keyboard.cs: Map and unmap dead keys.
28524 2004-12-16 Jackson Harper <jackson@ximian.com>
28526 * X11Keyboard.cs: Detect and use the num lock mask.
28528 2004-12-16 Peter Bartok <pbartok@novell.com>
28530 * Control.cs (CreateGraphics): Added check to make sure the
28531 handle of the window exists before calling Graphics.FromHwnd()
28533 2004-12-16 Peter Bartok <pbartok@novell.com>
28535 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
28536 contains a lot of code that's not supposed to be there for the
28537 real thing, but required for developing/testing the textbox
28540 2004-12-16 Peter Bartok <pbartok@novell.com>
28543 - Fixed Streamline method
28544 - Added FindTag method to Line
28545 - Added DumpTree method for debugging
28546 - Added DecrementLines() method for deleting lines
28547 - Fixed UpdateView to update the cursor to end-of-line on single-line
28549 - Added PositionCaret() method
28550 - Fixed MoveCaret(LineDown) to move into the last line, too
28551 - Added InsertChar overload
28552 - Fixed InsertChar tag offset calculations
28553 - Added DeleteChar() method
28554 - Added Combine() method for folding lines
28555 - Fixed Delete() method, no longer allocates wasted Line object and
28556 now copies all properties when swapping nodes
28557 - Delete() method now updates document line counter
28559 2004-12-15 Jackson Harper <jackson@ximian.com>
28561 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
28562 * X11Keyboard.cs: Expose the currently selected modifier keys
28563 through a property.
28565 2004-12-15 Peter Bartok <pbartok@novell.com>
28567 * TextControl.cs: Initial check-in. Still incomplete
28569 2004-12-15 Jackson Harper <jackson@ximian.com>
28572 * TreeView.cs: Fix build on csc (second time today ;-))
28574 2004-12-15 Jackson Harper <jackson@ximian.com>
28576 * TreeView.cs: Store the treenodes plus/minus box bounds when it
28577 is calculated and use this for click testing.
28578 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
28580 2004-12-15 Jackson Harper <jackson@ximian.com>
28582 * TreeView.cs: Pass the nodes image index to the image list when
28583 drawing that image.
28585 2004-12-15 Jackson Harper <jackson@ximian.com>
28587 * X11Keyboard.cs: Set messages hwnd.
28588 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
28589 post_message calls.
28591 2004-12-15 Jackson Harper <jackson@ximian.com>
28593 * X11Keyboard.cs: Fix to compile with csc.
28595 2004-12-15 Jackson Harper <jackson@ximian.com>
28597 * X11Structs.cs: Add key mask values
28598 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
28599 * X11Keyboard.cs: New file - Extrapolates and interpolates key
28600 down/up foo into WM_CHAR foo
28601 * KeyboardLayouts.cs: Common keyboard layouts
28602 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
28603 post messages into the main queue.
28605 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
28607 * Button.cs: implement ProcessMnemonic
28608 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
28610 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
28611 * ButtonBase.cs: Show HotkeyPrefix (not the &)
28613 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
28615 * MonthCalendar.cs: Implemented click-hold for next/previous month
28618 2004-12-11 Peter Bartok <pbartok@novell.com>
28621 - Added XKeyboardState (moved from XplatUIX11.cs)
28622 - Added XCreateGC related enums and structures
28623 - Added GXFunction for XSetFunction
28625 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
28627 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
28628 CaretVisible() calls
28630 * ToolTip.cs: Added code to prevent stealing focus from app windows
28632 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
28633 DestroyCaret, SetCaretPos and CaretVisible)
28636 - Added implementation for caret functions
28637 - Moved hover variables into a struct, to make it a bit easier
28638 on the eyes and to debug
28639 - Removed XKeyboardState (moved to XplatUIX11.cs)
28640 - Moved Keyboard properties into the properties region
28642 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
28643 call to get a graphics context for our control
28645 * XplatUIOSX.cs: Added empty overrides for the new caret functions
28647 * TreeView.cs: Fixed bug. No matter what color was set it would always
28648 return SystemColors.Window
28650 * XplatUIWin32.cs: Implemented caret overrides
28652 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
28654 * ListBox.cs: fire events, implement missing methods and properties,
28657 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
28659 * MonthCalendar.cs: invalidation bug fixing
28660 * ThemeWin32Classic.cs: paint fixing
28662 2004-12-09 Geoff Norton <gnorton@customerdna.com>
28664 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
28665 prepare the CGContextRef there now.
28667 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
28669 * MonthCalendar.cs:
28670 - optimisationL only invalidate areas that have changed
28671 * ThemeWin32Classic.cs:
28672 - only paint parts that intersect with clip_area
28674 2004-12-09 Peter Bartok <pbartok@novell.com>
28676 * Application.cs: Undid changes from r37004 which cause problems
28679 2004-12-09 Ravindra <rkumar@novell.com>
28681 * ToolBar.cs: Added support for displaying ContextMenu
28682 attached to a button on ToolBar.
28683 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
28686 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
28688 * Label.cs: autosize works in text change and removes unnecessary
28691 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
28693 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28696 2004-12-08 Geoff Norton <gnorton@customerdna.com>
28698 * XplatUIOSX.cs: Added mouse move/click/grab support
28699 Remove some debugging WriteLines not needed anymore.
28700 Add window resizing/positioning.
28701 Fix visibility on reparenting.
28703 2004-12-08 Peter Bartok <pbartok@novell.com>
28705 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
28707 2004-12-07 Geoff Norton <gnorton@customerdna.com>
28709 * XplatUIOSX.cs: Initial checkin
28710 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
28712 2004-12-03 Ravindra <rkumar@novell.com>
28714 * ListView.cs: Added some keybindings and fixed scrolling.
28715 ScrollBars listen to ValueChanged event instead of Scroll
28716 Event. This would let us take care of all changes being
28717 done in the scrollbars' values programmatically or manually.
28718 * ListView.cs (CanMultiselect): Added a check for shift key.
28719 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
28720 * ListViewItem.cs (Clone): Fixed. We need to make a copy
28721 of ListViewSubItemCollection as well.
28723 2004-12-06 Peter Bartok <pbartok@novell.com>
28725 * Control.cs (Parent): Added check and exception to prevent
28728 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
28730 * ListBox.cs: implemented clipping, selection single and multiple,
28733 2004-12-03 Ravindra <rkumar@novell.com>
28735 * ListView.cs (ListView_KeyDown):
28736 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
28737 when CTRL key is pressed.
28738 * ListViewItem.cs (Selected): Fixed setting the property.
28740 2004-12-03 Marek Safar <marek.safar@seznam.cz>
28742 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
28744 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
28745 MinimizeBox, ShowInTaskbar, TopMost properties.
28747 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
28748 will be implemented).
28750 2004-12-03 Marek Safar <marek.safar@seznam.cz>
28752 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
28754 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
28757 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
28759 * TreeView.cs: BackColor is Colors.Window.
28761 2004-12-01 Jackson Harper <jackson@ximian.com>
28763 * TreeView.cs: When resizing the tree if the user is making it
28764 smaller we don't get expose events, so we need to handle adding
28765 the horizontal scrollbar in the size changed handler as well as
28766 the expose handler.
28768 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
28770 * DrawItemState.cs: fixes wrong enum values
28772 2004-12-01 Jackson Harper <jackson@ximian.com>
28774 * TreeView.cs: Resize the hbar as well as the vbar on resize.
28776 2004-12-01 Jackson Harper <jackson@ximian.com>
28778 * NodeLabelEditEventArgs.cs:
28779 * NodeLabelEditEventHandler.cs:
28780 * OpenTreeNodeEnumerator.cs:
28782 * TreeNodeCollection.cs:
28784 * TreeViewAction.cs:
28785 * TreeViewCancelEventArgs.cs:
28786 * TreeViewCancelEventHandler.cs:
28787 * TreeViewEventArgs.cs:
28788 * TreeViewEventHandler.cs: Initial implementation.
28790 2004-12-01 Ravindra <rkumar@novell.com>
28792 * ListView.cs (CalculateListView): Fixed scrolling related
28793 calculations. Also, removed some debug statements from other
28795 * ListViewItem.cs: Changed access to 'selected' instance variable
28796 from private to internal.
28797 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
28799 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
28801 * ThemeWin32Classic.cs: remove cache of brush and pens for
28802 specific controls and use the global system, fixes scrollbutton
28803 bugs (for small sizes, disabled, etc)
28805 * ScrollBar.cs: does not show the thumb for very small controls
28806 (as MS) and allow smaller buttons that the regular size
28808 2004-12-01 Miguel de Icaza <miguel@ximian.com>
28810 * UpDownBase.cs: Add abstract methods for the interface.
28811 Add new virtual methods (need to be hooked up to TextEntry when it
28813 Add override methods for most features.
28814 Computes the size, forces the height of the text entry.
28816 * NumericUpDown.cs: Put here the current testing code.
28818 * Set eol-style property on all files that do not have mixed line
28819 endings, to minimize the future problems. There are still a few
28820 files with mixed endings, and someone should choose whether they
28821 want to move it or not.
28823 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
28825 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
28828 2004-11-30 Ravindra <rkumar@novell.com>
28830 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
28831 drawing and replaced use of SystemColors by theme colors.
28832 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
28833 * ListView.cs (ListViewItemCollection.Add): Throw exception when
28834 same ListViewItem is being added more than once.
28836 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
28838 * MonthCalendar.cs:
28839 - ControlStyles love to make the control not flicker
28841 2004-11-30 Peter Bartok <pbartok@novell.com>
28843 * CharacterCasing.cs: Added
28845 2004-11-29 Peter Bartok <pbartok@novell.com>
28847 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28848 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
28849 I am removing these files as they conflict with already completed
28850 work. While it is fantastic to get contributions to MWF, I
28851 respectfully ask that everyone please coordinate their contributions
28852 through mono-winforms-list or #mono-winforms at this time. We're
28853 explicitly avoiding stubbing and don't want controls that don't have
28854 their basic functionality implemented in svn. Please also see
28855 http://www.mono-project.com/contributing/winforms.html
28858 2004-11-29 Marek Safar <marek.safar@seznam.cz>
28860 * Application.cs (ModalRun): Don't hang after exit.
28862 * Theme.cs: New TreeViewDefaultSize property.
28864 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
28865 with less hardcoded SystemColors constant.
28866 Implemented TreeViewDefaultSize.
28868 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28869 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
28872 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
28874 * MonthCalendar.cs:
28875 - Fix NextMonthDate and PrevMonthDate click moving calendar
28877 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
28879 * MonthCalendar.cs:
28880 - Fix usage of ScrollChange Property when scrolling months
28882 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
28884 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
28885 - Fixes menu destroying
28886 - Support adding and removing items on already created menus
28888 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
28890 * MonthCalendar.cs:
28891 - Re-worked all bolded dates handling to match win32
28892 * ThemeWin32Classic.cs:
28893 - Fixed rendering with bolded dates
28895 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
28897 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
28898 - Horizontal scroolbar
28903 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
28905 * MonthCalendar.cs:
28906 - Fix Usage of MaxSelectionCount from SelectionRange
28907 - Fixed Shift + Cursor Selection
28908 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
28909 - Fixed normal cursor selection to be compat with win32
28910 - Fixed Shift + Mouse Click selection
28912 2004-11-24 Peter Bartok <pbartok@novell.com>
28914 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
28915 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
28917 - CreatedKeyBoardMsg now updates keystate with Alt key
28918 - Added workaround for timer crash to CheckTimers, Jackson will
28919 develop a proper fix and check in later
28920 - Implemented DispatchMessage
28921 - Removed calling the native window proc from GetMessage (call
28922 now moved to DispatchMessage)
28924 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
28925 the keydata (Fixes bug #69831)
28928 - (DispatchMessage): Switched to return IntPtr
28929 - Added DllImport for SetFocus
28931 2004-11-24 Ravindra <rkumar@novell.com>
28933 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
28934 background drawing.
28935 * ListViewItem.cs: Fixed various properties, calculations
28936 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
28937 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
28938 and some internal properties. Fixed MouseDown handler and Paint
28941 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
28943 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
28945 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
28947 * ContainerControl.cs: correct accidental check in of local changes
28949 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
28951 * ThemeWin32Classic.cs:
28952 - Fixed Drawing Last month in grid (sometimes not showing)
28953 * MonthCalendar.cs:
28954 - Fixed title width calculation bug (makeing title small)
28956 2004-11-23 Peter Bartok <pbartok@novell.com>
28959 - Added generation of WM_MOUSEHOVER event
28960 - Added missing assignment of async_method atom
28961 - Fixed WM_ERASEBKGND; now only redraws the exposed area
28963 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
28965 * ThemeWin32Classic.cs:
28966 - Fixed Drawing of today circle when showtodaycircle not set
28967 - fixed drawing of first and last month in the grid (gay dates)
28968 * MonthCalendar.cs:
28969 - Fixed Drawing of today circle
28970 - Fixed drawing of grady dates
28971 - Fixed HitTest for today link when ShowToday set to false
28972 - Fixed DefaultSize to obey ShowToday
28974 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
28976 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
28977 * System.Windows.Forms/Theme.cs
28978 * MonthCalendar.cs: added for MonthCalendar
28979 * SelectionRange.cs: added for MonthCalendar
28980 * Day.cs: added for MonthCalendar: added for MonthCalendar
28981 * DateRangeEventArgs.cs: added for MonthCalendar
28982 * DateRangeEventHandler.cs: added for MonthCalendar
28984 2004-11-22 Ravindra <rkumar@novell.com>
28986 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
28989 2004-11-22 Miguel de Icaza <miguel@ximian.com>
28991 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
28994 * NumericUpDown.cs: Added new implementation.
28995 * UpDownBase.cs: Added new implementation.
28997 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
29000 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
29003 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
29006 2004-11-21 Miguel de Icaza <miguel@ximian.com>
29008 * Timer.cs (Dispose): Should call the base dispose when
29011 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
29013 * ScrollBar.cs: updates thumb position when max, min or increment
29016 2004-11-21 Ravindra <rkumar@novell.com>
29018 * ListView.cs: Implemented item selection, activation and
29019 column header style. Fixed properties to do a redraw, if
29020 required. Added support for MouseHover, DoubleClick, KeyDown
29021 and KeyUp event handling and some minor fixes.
29022 * ListViewItem.cs: Fixed constructor.
29023 * ThemeWin32Classic.cs: Improved drawing for ListView.
29025 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
29027 * ThemeWin32Classic.cs: initial listbox drawing code
29028 * DrawMode.cs: new enumerator
29029 * ListControl.cs: stubbed class
29030 * ListBox.cs: initial implementation
29031 * Theme.cs: new methods definitions
29032 * SelectionMode.cs: new enumerator
29034 2004-11-17 Peter Bartok <pbartok@novell.com>
29036 * XplatUIWin32.cs: Added double-click events to the class style
29037 * Control.cs (WndProc):
29038 - Added handling of click-count to MouseDown/ MouseUp events.
29039 - Added handling of middle and right mouse buttons
29040 - Removed old debug code
29042 2004-11-17 Jackson Harper <jackson@ximian.com>
29044 * XplatUIX11.cs: Use the new Mono.Unix namespace.
29046 2004-11-17 Ravindra <rkumar@novell.com>
29048 * ListView.cs: Added event handling for MouseMove/Up/Down.
29049 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
29050 * ThemeWin32Classic.cs: We need to clear the graphics context and
29051 draw column header in a proper state.
29054 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
29056 * Menu.cs: fixes signature
29058 2004-11-16 Peter Bartok <pbartok@novell.com>
29060 * XplatUIX11.cs (GetMessage): Implemented generation of
29061 double click mouse messages
29063 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
29065 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
29068 2004-11-11 Peter Bartok <pbartok@novell.com>
29070 * HandleData.cs: Added Visible property
29071 * XplatUIX11.cs (IsVisible): Now uses Visible property from
29073 * XplatUIX11.cs: Removed old debug leftovers
29074 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
29075 * Control.cs (WndProc): Removed old debug leftovers,
29076 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
29077 needed WM_SIZE handling
29079 2004-11-11 Jackson Harper <jackson@ximian.com>
29081 * OwnerDrawPropertyBag.cs:
29082 * TreeViewImageIndexConverter.cs: Initial implementation
29084 2004-11-10 Jackson Harper <jackson@ximian.com>
29086 * ThemeWin32Classic.cs:
29087 * TabControl.cs: instead of moving tabs by the slider pos just
29088 start drawing at the tab that is offset by the slider. This way
29089 scrolling always moves by exactly one tab.
29091 2004-11-10 Jackson Harper <jackson@ximian.com>
29093 * TabControl.cs: You can only scroll left when the slider has
29094 already ben moved right.
29096 2004-11-10 Jackson Harper <jackson@ximian.com>
29098 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
29101 2004-11-10 Jackson Harper <jackson@ximian.com>
29103 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
29106 2004-11-09 Jackson Harper <jackson@ximian.com>
29108 * TabControl.cs (CalcXPos): New helper method so we can determine
29109 the proper place to start drawing vertical tabs.
29110 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
29112 2004-11-09 Jackson Harper <jackson@ximian.com>
29114 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
29115 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
29116 and Bottom, left and right are illegal values for this and
29117 multiline is enabled when the alignment is set to left or right.
29118 (DrawTab): Each alignment block should draw the text itself now
29119 because Left requires special love. Also add rendering for Left
29122 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
29124 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
29125 does not destroy the windows, removes debugging messages
29127 2004-11-09 jba <jba-mono@optusnet.com.au>
29129 * ThemeWin32Classic.cs
29130 (DrawButtonBase): Fix verticle text rect clipping in windows
29131 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29132 rendering and incorrect text rect clipping
29133 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29134 rendering and incorrect text rect clipping
29136 2004-11-08 Jackson Harper <jackson@ximian.com>
29138 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
29139 bottom when they are bottom aligned so the bottoms of the tabs get
29141 * TabControl.cs (DropRow): Move rows up instead of down when the
29142 tab control is bottom aligned.
29144 2004-11-08 13:59 pbartok
29147 - Added handling for various window styles
29148 - Added handling for popup windows
29149 - Added SetTopmost handling
29151 2004-11-08 13:55 pbartok
29154 - Added argument to SetTopmost method
29155 - Fixed broken ClientToScreen function
29157 2004-11-08 13:53 pbartok
29159 * XplatUIStructs.cs:
29160 - Added missing WS_EX styles
29162 2004-11-08 13:53 pbartok
29164 * XplatUI.cs, XplatUIDriver.cs:
29165 - Added argument to SetTopmost
29167 2004-11-08 13:52 pbartok
29170 - Added XSetWindowAttributes structure
29171 - Improved XWindowAttributes structure
29172 - Added SetWindowValuemask enum
29173 - Added window creation arguments enum
29174 - Added gravity enum
29175 - Added Motif hints structure
29176 - Added various Motif flags and enums
29177 - Added PropertyMode enum for property functions
29179 2004-11-08 13:50 pbartok
29182 - Fixed arguments for updated SetTopmost method
29184 2004-11-08 13:49 pbartok
29187 - Fixed arguments for updated SetTopmost function
29188 - Fixed usage of PointToClient
29190 2004-11-08 13:44 pbartok
29193 - Added Clipping of children and siblings
29195 2004-11-08 13:41 pbartok
29198 - Removed SetMenuBarWindow call. We do this in Form.cs
29200 2004-11-08 13:40 jackson
29202 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
29203 scrolling jimmi in the correct location with bottom aligned tabs
29205 2004-11-08 13:36 pbartok
29207 * ContainerControl.cs:
29208 - Implemented BindingContext
29209 - Implemented ParentForm
29211 2004-11-08 12:46 jackson
29213 * TabControl.cs: Put bottom rendered tabs in the right location
29215 2004-11-08 07:15 jordi
29217 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
29220 2004-11-05 17:30 jackson
29222 * TabControl.cs: When selected tabs are expanded make sure they
29223 don't go beyond the edges of the tab control
29225 2004-11-05 14:57 jackson
29227 * TabControl.cs: Reset show_slider so if the control is resized to
29228 a size where it is no longer needed it's not displayed anymore
29230 2004-11-05 13:16 jackson
29232 * TabControl.cs: Make tab pages non visible when added to the
29235 2004-11-05 12:42 jackson
29237 * TabControl.cs: Implement SizeMode.FillToRight
29239 2004-11-05 12:16 jackson
29241 * Control.cs: Do not call CreateHandle if the handle is already
29244 2004-11-05 11:46 jackson
29246 * TabControl.cs: Remove superflous call to CalcTabRows
29248 2004-11-05 09:07 jackson
29250 * XplatUIX11.cs: Update for Mono.Posix changes
29252 2004-11-05 07:00 ravindra
29254 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
29257 2004-11-04 22:47 jba
29259 * ThemeWin32Classic.cs:
29260 - Fix Button rendering for FlatStyle = Flat or Popup
29261 - Fix RadioButton and CheckBox rendering when Appearance = Button
29262 (normal and flatstyle).
29263 - Correct outer rectangle color when drawing focus rectangle
29264 - Adjust button bounds to be 1 px smaller when focused
29265 - Make button not draw sunken 3d border when pushed (windows compat)
29266 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
29267 - Offset the text in RadioButton and Checkbox when being rendered as
29269 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
29271 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
29272 - Fixed disabled text rendering for normally rendered radiobuttons
29274 2004-11-04 10:26 jackson
29276 * TabControl.cs: Recalculate tab rows when resizing
29278 2004-11-04 07:47 jordi
29280 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
29281 collection completion, drawing issues, missing features
29283 2004-11-04 05:03 ravindra
29286 - We need to recalculate the Thumb area when
29287 LargeChange/maximum/minimum values are changed.
29288 - We set the 'pos' in UpdatePos() method to minimum, if it's less
29289 than minimum. This is required to handle the case if large_change is
29290 more than max, and use LargeChange property instead of large_change
29292 - We return max+1 when large_change is more than max, like MS does.
29294 2004-11-04 04:29 ravindra
29296 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
29297 - Changed default value signatures (prefixed all with ListView).
29298 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
29300 - Fixed calculations for ListViewItem and implemented Clone()
29303 2004-11-04 04:26 ravindra
29305 * Theme.cs, ThemeWin32Classic.cs:
29306 - Changed default ListView values signatures (prefixed all with
29308 - Fixed default size values for VScrollBar and HScrollBar.
29309 - Fixed DrawListViewItem method.
29311 2004-11-04 04:05 ravindra
29313 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
29315 2004-11-04 04:04 ravindra
29317 * ImageList.cs: Implemented the missing overload for Draw method.
29319 2004-11-03 19:29 jackson
29321 * TabControl.cs: Handle dropping rows on selection properly
29323 2004-11-03 11:59 jackson
29325 * TabControl.cs: remove debug code
29327 2004-11-03 11:52 jackson
29329 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
29330 the scrolly widgerywoo
29332 2004-11-02 13:52 jackson
29334 * TabControl.cs: Resize the tab pages and tabs when the tab control
29337 2004-11-02 13:40 jackson
29339 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
29340 selected tab to the bottom
29342 2004-11-02 13:39 jackson
29344 * TabPage.cs: Store the tab pages row
29346 2004-11-02 12:33 jordi
29348 * MenuItem.cs: fixes handle creation
29350 2004-11-02 11:42 jackson
29352 * TabControl.cs: signature fix
29354 2004-11-02 08:56 jackson
29356 * TabControl.cs: Calculate whether the tab is on an edge properly.
29357 Remove top secret debugging code
29359 2004-11-01 19:57 jackson
29361 * TabControl.cs: Add click handling, and proper sizing
29363 2004-11-01 19:47 jackson
29365 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
29368 2004-11-01 19:39 jackson
29370 * TabPage.cs: add internal property to store the bounds of a tab
29373 2004-10-30 04:23 ravindra
29375 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
29378 2004-10-30 04:21 ravindra
29380 * ListView.cs, ListViewItem.cs: Added support for scrolling and
29381 fixed calculations.
29383 2004-10-30 03:06 pbartok
29386 - Removed extension of DllImported libs
29388 2004-10-29 09:55 jordi
29390 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
29391 navigation, itemcollection completion, menu fixes
29393 2004-10-27 22:58 pbartok
29396 - Now throws a nice error message when no X display could be opened
29398 2004-10-26 13:51 jordi
29400 * ListView.cs: removes warning
29402 2004-10-26 03:55 ravindra
29404 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
29405 ThemeWin32Classic.cs: Some formatting for my last checkins.
29407 2004-10-26 03:36 ravindra
29409 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
29410 control and default values.
29412 2004-10-26 03:35 ravindra
29414 * Theme.cs: Added some default values for ListView control.
29416 2004-10-26 03:33 ravindra
29418 * ToolBar.cs: ToolBar should use the user specified button size, if
29419 there is any. Added a size_specified flag for the same.
29421 2004-10-26 03:33 ravindra
29423 * ColumnHeader.cs: Added some internal members and calculations for
29426 2004-10-26 03:32 ravindra
29428 * ListViewItem.cs: Calculations for ListViewItem.
29430 2004-10-26 03:31 ravindra
29432 * ListView.cs: Added some internal members and calculations for
29435 2004-10-22 13:31 jordi
29437 * MenuAPI.cs: speedup menus drawing
29439 2004-10-22 13:16 jackson
29441 * XplatUIX11.cs: Make sure to update exposed regions when adding an
29444 2004-10-22 11:49 jackson
29448 2004-10-22 11:41 jackson
29450 * Control.cs: Check to see if the window should have its background
29451 repainted by X when drawing.
29453 2004-10-22 11:31 jackson
29455 * XplatUIX11.cs: When invalidating areas only use XClearArea if
29456 clear is true, this way we do not get flicker from X repainting the
29459 2004-10-22 11:28 jackson
29461 * XEventQueue.cs: Queue properly
29463 2004-10-21 09:38 jackson
29465 * XEventQueue.cs: Fix access modifier
29467 2004-10-21 09:36 jackson
29469 * XEventQueue.cs: Don't loose messages
29471 2004-10-21 09:22 jackson
29473 * XEventQueue.cs: Don't loose messages
29475 2004-10-20 04:15 jordi
29477 * BootMode.cs: enum need it by SystemInfo
29479 2004-10-19 21:58 pbartok
29482 - Small sanity check
29484 2004-10-19 21:56 pbartok
29487 - Added private FormParentWindow class which acts as the container
29488 for our form and as the non-client area where menus are drawn
29489 - Added/Moved required tie-ins to Jordi's menus
29490 - Fixed/Implemented the FormStartPosition functionality
29492 2004-10-19 21:52 pbartok
29495 - Removed unneeded locals
29496 - Added code to all size and location properties to understand and
29497 deal with the parent container of Form
29499 2004-10-19 21:33 pbartok
29502 - Fixed to deal with new Form subclasses for menus
29504 2004-10-19 17:48 jackson
29506 * XEventQueue.cs: commit correct version of file
29508 2004-10-19 16:50 jackson
29510 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
29512 2004-10-19 16:15 jordi
29514 * MenuAPI.cs: MenuBarCalcSize returns the height
29516 2004-10-19 08:31 pbartok
29519 - Added missing call to PreProcessMessage before calling OnXXXKey
29522 2004-10-19 00:04 ravindra
29524 * ToolTip.cs: Fixed constructor.
29526 2004-10-18 09:31 jordi
29528 * MenuAPI.cs: menuitems in menubars do not have shortcuts
29530 2004-10-18 09:26 jordi
29532 * MenuItem.cs: fixes MenuItem class signature
29534 2004-10-18 08:56 jordi
29536 * MenuAPI.cs: prevents windows from showing in the taskbar
29538 2004-10-18 00:28 ravindra
29540 * ToolTip.cs: Suppressed a warning message.
29542 2004-10-18 00:27 ravindra
29544 * Control.cs: Default value of visible property must be true.
29546 2004-10-17 23:19 pbartok
29549 - Complete implementation
29551 2004-10-17 23:19 pbartok
29554 - Added EnableWindow method
29555 - Added SetModal stub
29556 - Added generation of WM_ACTIVATE message (still needs testing)
29557 - Added SetTopMost stub
29558 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
29560 2004-10-17 23:17 pbartok
29563 - Removed VirtualKeys to XplatUIStructs
29564 - Implemented SetTopMost method
29565 - Implemented EnableWindow method
29566 - Bugfix in ScreenToClient()
29567 - Bugfixes in ClientToScreen()
29569 2004-10-17 22:51 pbartok
29571 * XplatUIStructs.cs:
29572 - Added WS_EX styles to WindowStyles enumeration
29574 2004-10-17 22:50 pbartok
29576 * XplatUI.cs, XplatUIDriver.cs:
29577 - Added method for enabling/disabling windows
29578 - Added method for setting window modality
29579 - Added method for setting topmost window
29581 2004-10-17 22:49 pbartok
29583 * ThemeWin32Classic.cs:
29584 - Added ToolTip drawing code
29586 2004-10-17 22:49 pbartok
29589 - Added ToolTip abstracts
29591 2004-10-17 22:47 pbartok
29594 - Fixed Form.ControlCollection to handle owner relations
29595 - Added Owner/OwnedForms handling
29596 - Implemented Z-Ordering for owned forms
29597 - Removed unneeded private overload of ShowDialog
29598 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
29600 - Fixed Close(), had wrong default
29601 - Added firing of OnLoad event
29602 - Added some commented out debug code for Ownership handling
29604 2004-10-17 22:16 pbartok
29607 - Fixed/implemented flat list of controls
29609 2004-10-17 22:14 pbartok
29612 - Added code to simulate modal dialogs on Win32
29614 2004-10-17 16:11 jordi
29616 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
29619 2004-10-17 13:39 jordi
29621 * MenuAPI.cs: menu drawing fixes
29623 2004-10-15 09:10 ravindra
29625 * StructFormat.cs: General Enum.
29627 2004-10-15 09:09 ravindra
29629 * SizeGripStyle.cs: Enum for Form.
29631 2004-10-15 09:08 ravindra
29633 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
29634 in Theme for ListView.
29636 2004-10-15 09:06 ravindra
29638 * ColumnHeader.cs: Flushing some formatting changes.
29640 2004-10-15 09:05 ravindra
29642 * ListViewItem.cs: Implemented GetBounds method and fixed coding
29645 2004-10-15 09:03 ravindra
29647 * ListView.cs: Implemented Paint method and fixed coding style.
29649 2004-10-15 07:34 jordi
29651 * MenuAPI.cs: fix for X11
29653 2004-10-15 07:32 ravindra
29655 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
29656 - Renamed Paint() method to Draw() for clarity. Also, moved
29657 DrawImage() to OnPaint().
29659 2004-10-15 07:25 ravindra
29661 * CheckBox.cs, RadioButton.cs:
29662 - Removed Redraw (), we get it from ButtonBase.
29663 - Implemented Paint (), to do class specific painting.
29665 2004-10-15 07:16 ravindra
29668 - Redraw () is not virtual now.
29669 - Added an internal virtual method Paint (), so that
29670 derived classes can do their painting on their own.
29671 - Modified OnPaint () to call Paint ().
29673 2004-10-15 06:43 jordi
29675 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
29676 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
29678 2004-10-15 00:30 ravindra
29681 - MessageBox on windows does not have min/max buttons.
29682 This change in CreateParams fixes this on Windows. We
29683 still need to implement this windowstyle behavior in
29686 2004-10-14 05:14 ravindra
29689 - Changed Redraw () to do a Refresh () always.
29690 - Fixed the MouseMove event handling when mouse is pressed,
29691 ie drag event handling.
29692 - Replaced the usage of ToolBarButton.Pressed property to
29693 ToolBarButton.pressed internal variable.
29695 2004-10-14 05:10 ravindra
29697 * ToolBarButton.cs:
29698 - Added an internal member 'inside' to handle mouse move
29699 with mouse pressed ie mouse drag event.
29700 - Changed 'Pressed' property to return true only when
29701 'inside' and 'pressed' are both true.
29702 - Some coding style love.
29704 2004-10-14 00:17 ravindra
29706 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
29709 2004-10-14 00:15 ravindra
29711 * ButtonBase.cs: Redraw () related improvements.
29713 2004-10-14 00:14 ravindra
29715 * MessageBox.cs: Moved InitFormSize () out of Paint method and
29716 removed unnecessary calls to Button.Show () method.
29718 2004-10-13 17:50 pbartok
29722 - Removed destroying of window until we solve the problem of X
29723 destroying the window before us on shutdown
29725 2004-10-13 16:32 pbartok
29728 - Now Redraws on MouseUp for FlatStyle Flat and Popup
29730 2004-10-13 14:18 pbartok
29733 - Added code to destroy the X window
29735 2004-10-13 14:18 pbartok
29738 - Added code to destroy a window
29740 2004-10-13 14:12 pbartok
29743 - Added the Redraw on Resize that got dropped in the last rev
29745 2004-10-13 09:06 pbartok
29747 * ThemeWin32Classic.cs:
29748 - Path from John BouAntoun:
29749 * Fix check rendering (centre correctly for normal style, offset
29750 correctly for FlatStyle).
29751 * Fix border color usage (use backcolor) for FlatStyle.Popup
29752 * Use checkbox.Capture instead of checkbox.is_pressed when
29753 rendering flatstyle states.
29755 2004-10-12 21:48 pbartok
29757 * ThemeWin32Classic.cs:
29758 - Removed all occurences of SystemColors and replaced them with the
29759 matching theme color
29761 2004-10-12 21:41 pbartok
29763 * ThemeWin32Classic.cs:
29764 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
29765 him using the function for flatstyle drawing
29766 - Changed functions to use the new version of CPDrawBorder3D
29768 2004-10-12 21:15 pbartok
29771 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
29772 match MS documentation. They need to return defined colors if the
29773 passed color matches the configured control color. Thanks to John
29774 BouAntoun for pointing this out.
29776 2004-10-12 20:57 pbartok
29779 - Fix from John BouAntoun: Raise ForeColorChanged event when text
29782 2004-10-12 20:46 pbartok
29785 - Fix from John BouAntoun: Now properly sets the Appearance property
29787 2004-10-12 20:45 pbartok
29789 * ThemeWin32Classic.cs:
29790 - Fixes from John BouAntoun: now handles forecolors and backcolors
29791 for flatstyle rendered controls much better; It also fixes normal
29792 checkbox rendering when pushed or disabled.
29794 2004-10-08 02:50 jordi
29796 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
29799 2004-10-07 08:56 jordi
29801 * ThemeWin32Classic.cs: Removes deletion of cached brushes
29803 2004-10-06 03:59 jordi
29805 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
29806 XplatUIWin32.cs: removes warnings from compilation
29808 2004-10-05 12:23 jackson
29810 * RadioButton.cs: Fix ctor
29812 2004-10-05 11:10 pbartok
29815 - Partial implementation by Benjamin Dasnois
29817 2004-10-05 10:15 jackson
29819 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
29822 2004-10-05 03:07 ravindra
29825 - Removed a private method, Draw ().
29826 - Fixed the ButtonDropDown event handling.
29827 - Fixed MouseMove event handling.
29829 2004-10-05 03:04 ravindra
29831 * ThemeWin32Classic.cs:
29832 - Added DrawListView method and ListViewDefaultSize property.
29833 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
29834 - Changed DOS style CRLF to Unix format (dos2unix).
29836 2004-10-05 03:03 ravindra
29839 - Added DrawListView method and ListViewDefaultSize property.
29841 2004-10-05 02:42 ravindra
29843 * ToolBarButton.cs: Added an internal member dd_pressed to handle
29844 clicks on DropDown arrow.
29846 2004-10-04 22:56 jackson
29848 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
29849 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
29850 Control handle the buffers, derived classes should not have to
29851 CreateBuffers themselves.
29853 2004-10-04 21:20 jackson
29855 * StatusBar.cs: The control handles resizing the buffers now.
29857 2004-10-04 21:18 jackson
29859 * Control.cs: When resizing the buffers should be invalidated. This
29860 should be handled in Control not in derived classes.
29862 2004-10-04 14:45 jackson
29866 2004-10-04 02:14 pbartok
29868 * LeftRightAlignment.cs:
29871 2004-10-04 01:09 jordi
29873 * ThemeWin32Classic.cs: fixes right button position causing right
29874 button not showing on horizontal scrollbars
29876 2004-10-02 13:12 pbartok
29879 - Simplified the Invalidate method by using an X call instead of
29880 generating the expose ourselves
29881 - Added an expose when the window background is changed
29882 - Implemented ClientToScreen method
29884 2004-10-02 13:08 pbartok
29887 - Added Win32EnableWindow method (test for implementing modal
29889 - Added ClientToScreen method and imports
29891 2004-10-02 13:07 pbartok
29893 * XplatUI.cs, XplatUIDriver.cs:
29894 - Added ClientToScreen coordinate translation method
29896 2004-10-02 13:06 pbartok
29898 * KeyPressEventArgs.cs:
29899 - Fixed access level for constructor
29901 2004-10-02 13:06 pbartok
29904 - Changed access level for the window_collection hash table
29906 2004-10-02 13:05 pbartok
29909 - Added KeyPreview property
29910 - Added Menu property (still incomplete, pending Jordi's menu work)
29911 - Implemented ProcessCmdKey
29912 - Implemented ProcessDialogKey
29913 - Implemented ProcessKeyPreview
29915 2004-10-02 13:02 pbartok
29918 - Added private method to get the Control object from the window
29920 - Implemented ContextMenu property
29921 - Implemented PointToScreen
29922 - Implemented PreProcessMessage
29923 - Implemented IsInputChar
29924 - Implemented IsInputKey
29925 - Implemented ProcessCmdKey
29926 - Completed ProcessKeyEventArgs
29927 - Fixed message loop to call the proper chain of functions on key
29929 - Implemented ProcessDialogChar
29930 - Implemented ProcessDialogKey
29931 - Implemented ProcessKeyMessage
29932 - Implemented ProcessKeyPreview
29933 - Added RaiseDragEvent stub (MS internal method)
29934 - Added RaiseKeyEvent stub (MS internal method)
29935 - Added RaiseMouseEvent stub (MS Internal method)
29936 - Added RaisePaintEvent stub (MS Internal method)
29937 - Added ResetMouseEventArgs stub (MS Internal method)
29938 - Implemented RtlTranslateAlignment
29939 - Implemented RtlTranslateContent
29940 - Implemented RtlTranslateHorizontal
29941 - Implemented RtlTranslateLeftRight
29942 - Added generation of KeyPress event
29944 2004-10-02 05:57 ravindra
29946 * ListViewItem.cs: Added attributes.
29948 2004-10-02 05:32 ravindra
29950 * ListView.cs: Added attributes.
29952 2004-10-01 11:53 jackson
29954 * Form.cs: Implement the Close method so work on MessageBox can
29957 2004-09-30 14:06 pbartok
29962 2004-09-30 11:34 jackson
29964 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
29966 2004-09-30 07:26 ravindra
29968 * ListViewItemConverter.cs: Converter for ListViewItem.
29970 2004-09-30 07:26 ravindra
29972 * SortOrder.cs: Enum for ListView control.
29974 2004-09-30 07:25 ravindra
29976 * ColumnHeader.cs: Supporting class for ListView control.
29978 2004-09-30 07:24 ravindra
29980 * ListView.cs, ListViewItem.cs: Initial implementation.
29982 2004-09-30 07:20 ravindra
29984 * ItemActivation.cs: Enum for ListView Control.
29986 2004-09-29 20:29 pbartok
29989 - Added lookup of pixel value for background color; tries to get a
29990 color 'close' to the requested color, it avoids having to create a
29991 colormap. Depending on the display this could mean the used color
29992 is slightly off the desired color. Might have to change it to a more
29993 resource intensive colormap approach, but it will work as a
29994 workaround to avoid red screens.
29996 2004-09-29 14:27 jackson
29998 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
30000 2004-09-28 12:44 pbartok
30002 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
30003 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
30004 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
30005 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
30006 TrackBar.cs, VScrollBar.cs:
30007 - Streamlined Theme interfaces:
30008 * Each DrawXXX method for a control now is passed the object for
30009 the control to be drawn in order to allow accessing any state the
30010 theme might require
30012 * ControlPaint methods for the theme now have a CP prefix to avoid
30013 name clashes with the Draw methods for controls
30015 * Every control now retrieves it's DefaultSize from the current
30018 2004-09-28 12:17 jackson
30020 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
30023 2004-09-24 14:57 jackson
30025 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
30026 Gives us a nice little performance boost.
30028 2004-09-24 12:02 jackson
30030 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
30031 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
30032 Control and supporting classes. Initial checkin
30034 2004-09-23 13:08 jackson
30036 * Form.cs: Temp build fixage
30038 2004-09-23 01:39 ravindra
30040 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
30041 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
30042 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
30043 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
30044 EventHandlers needed by ListView Control.
30046 2004-09-22 14:12 pbartok
30048 * ScrollableControl.cs:
30049 - Implemented DockPadding property
30050 - Implemented AutoScroll property
30051 - Implemented AutoScrollMargin property
30052 - Implemented AutoScrollMinSize property
30053 - Implemented AutoScrollPosition property
30054 - Implemented DisplayRectangle property (still incomplete)
30055 - Implemented CreateParams property
30056 - Implemented HScroll property
30057 - Implemented VScroll property
30058 - Implemented OnVisibleChanged property
30060 2004-09-22 14:09 pbartok
30063 - Added Form.ControllCollection class
30064 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
30065 RemoveOwnedForm (still incomplete, missing on-top and common
30066 minimize/maximize behaviour)
30067 - Added StartPosition property (still incomplete, does not use when
30069 - Added ShowDialog() methods (still incomplete, missing forcing the
30072 2004-09-22 14:05 pbartok
30075 - Added message loop for modal dialogs
30077 2004-09-22 14:02 pbartok
30080 - Fixed wrong types for events
30082 2004-09-22 14:00 pbartok
30084 * Shortcut.cs, FormWindowState.cs:
30085 - Fixed wrong values
30087 2004-09-22 12:01 jackson
30089 * Control.cs: Text is never null
30091 2004-09-20 22:14 pbartok
30094 - Fixed accessibility level for Idle handler
30096 2004-09-20 18:54 jackson
30098 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30099 XplatUIX11.cs: New message loop that uses poll so we don't get a
30102 2004-09-17 10:43 pbartok
30105 - Fixed behaviour of arrow buttons. Now properly behaves like
30106 Buttons (and like Microsoft's scrollbar arrow buttons)
30108 2004-09-17 10:14 pbartok
30111 - Added missing release of keyboard/mouse capture
30113 2004-09-17 06:18 jordi
30115 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
30116 Theme.cs: Very early menu support
30118 2004-09-16 17:45 pbartok
30121 - Fixed sending a window to the front
30122 - Added overload for SetWindowPos to avoid casting
30124 2004-09-16 17:44 pbartok
30127 - Added SendToBack and BringToFront methods
30129 2004-09-16 07:00 ravindra
30131 * Copyright: Added Novell URL.
30133 2004-09-16 07:00 ravindra
30135 * ToolBar.cs: Invalidate should be done before redrawing.
30137 2004-09-15 21:19 ravindra
30139 * ColumnHeaderStyle.cs: Enum for ListView Control.
30141 2004-09-15 21:18 ravindra
30143 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
30146 2004-09-13 18:26 jackson
30148 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
30151 2004-09-13 18:13 jackson
30153 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
30154 a second thread and post messages into the main threads message
30155 queue. This makes timing much more consistent. Both win2K and XP
30156 have a minimum timer value of 15 milliseconds, so we now do this
30159 2004-09-13 15:18 pbartok
30161 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30163 - Added Z-Ordering methods
30165 2004-09-13 10:56 pbartok
30168 - Fixed #region names
30169 - Moved properties and methods into their proper #regions
30171 2004-09-13 10:51 pbartok
30174 - Added Accept and CancelButton properties
30175 - Added ProcessDialogKey() method
30177 2004-09-13 08:18 pbartok
30179 * IWindowTarget.cs:
30182 2004-09-10 21:50 pbartok
30185 - Added DoDragDrop() [incomplete]
30186 - Properly implemented 'Visible' handling
30187 - Added SetVisibleCore()
30188 - Implemented FindChildAtPoint()
30189 - Implemented GetContainerControl()
30190 - Implemented Hide()
30192 2004-09-10 19:28 pbartok
30195 - Moved methods into their appropriate #regions
30196 - Reordered methods within regions alphabetically
30198 2004-09-10 18:57 pbartok
30200 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30201 - Added method to retrieve text from window
30203 2004-09-10 18:56 pbartok
30206 - Moved some internal functions into the internal region
30207 - Implemented FontHeight
30208 - Implemented RenderRightToLeft
30209 - Implemented ResizeRedraw
30210 - Implemented ShowFocusCues
30211 - Implemented ShowKeyboardCues
30212 - Implemented FromChildHandle
30213 - Implemented FromHandle
30214 - Implemented IsMnemonic
30215 - Implemented ReflectMessage
30216 - All public and protected Static Methods are now complete
30218 2004-09-10 16:54 pbartok
30221 - Implemented remaining missing public instance properties
30222 - Alphabetized some out of order properties
30224 2004-09-10 05:51 ravindra
30226 * PictureBox.cs: Added a check for null image.
30228 2004-09-10 00:59 jordi
30230 * GroupBox.cs: remove cvs tag
30232 2004-09-09 05:25 ravindra
30234 * ToolBar.cs: Make redraw accessible from ToolBarButton.
30236 2004-09-09 05:23 ravindra
30238 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
30241 2004-09-09 02:28 pbartok
30243 * ThemeWin32Classic.cs:
30244 - Improve disabled string look
30246 2004-09-09 01:15 jordi
30248 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
30251 2004-09-08 23:56 ravindra
30253 * ItemBoundsPortion.cs: It's enum, not a class!
30255 2004-09-08 23:47 ravindra
30257 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
30260 2004-09-08 21:13 ravindra
30262 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
30265 2004-09-08 21:03 ravindra
30267 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
30270 2004-09-08 21:01 ravindra
30272 * ScrollableControl.cs: Removed unreachable code.
30274 2004-09-08 06:45 jordi
30276 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
30278 2004-09-08 01:00 jackson
30280 * XplatUIX11.cs: Only run the timers when updating the message
30281 queue. This effectively gives X messages a higher priority then
30282 timer messages. Timers still need love though
30284 2004-09-07 14:01 jackson
30286 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
30287 this for us and the handle is no longer valid.
30289 2004-09-07 13:59 jackson
30291 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
30292 loop that manages to not crash. TODO: Add poll and cleanup timers
30294 2004-09-07 11:12 jordi
30296 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
30298 2004-09-07 03:40 jordi
30300 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
30301 fixes, methods, multiple links
30303 2004-09-06 06:55 jordi
30305 * Control.cs: Caches ClientRectangle rectangle value
30307 2004-09-05 02:03 jordi
30309 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
30312 2004-09-04 11:10 jordi
30314 * Label.cs: Refresh when font changed
30316 2004-09-02 16:24 pbartok
30319 - Added sanity check to creation of double buffer bitmap
30321 2004-09-02 16:24 pbartok
30324 - Fixed selection of text color
30325 - Fixed handling of resize event; now properly recreates double
30327 - Added missing assignment of TextAlignment
30328 - Added proper default for TextAlignment
30330 2004-09-02 14:26 pbartok
30333 - Added missing RadioButton.RadioButtonAccessibleObject class
30335 2004-09-02 14:26 pbartok
30338 - Added missing Control.ControlAccessibleObject class
30339 - Started to implement Select()ion mechanisms, still very incomplete
30341 2004-09-02 14:25 pbartok
30343 * AccessibleObject.cs:
30344 - Added missing methods
30346 2004-09-02 14:23 pbartok
30348 * AccessibleNavigation.cs, AccessibleSelection.cs:
30351 2004-09-02 10:32 jordi
30353 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
30354 pool for pens, brushes, and hatchbruses
30356 2004-09-01 15:30 jackson
30358 * StatusBar.cs: Fix typo
30360 2004-09-01 14:44 pbartok
30365 2004-09-01 14:39 pbartok
30367 * Button.cs, RadioButton.cs:
30368 - Functional initial check-in
30370 2004-09-01 14:01 pbartok
30373 - Added missing default
30374 - Added missing region mark
30376 2004-09-01 09:10 jordi
30378 * Label.cs: fixes method signatures, new methods, events, fixes
30381 2004-09-01 07:19 jordi
30383 * Control.cs: Init string variables with an empty object
30385 2004-09-01 04:20 jordi
30387 * Control.cs: fires OnFontChanged event
30389 2004-08-31 20:07 pbartok
30392 - Enabled display of strings
30394 2004-08-31 20:05 pbartok
30397 - Added (partial) implementation of DialogResult; rest needs to be
30398 implemented when the modal loop code is done
30400 2004-08-31 19:55 pbartok
30403 - Fixed to match the removal of the needs_redraw concept
30405 2004-08-31 19:55 pbartok
30408 - Removed the rather odd split between 'needs redraw' and redrawing
30409 - Now handles the events that require regeneration (ambient
30410 properties and size)
30412 2004-08-31 19:41 pbartok
30415 - Added firing of BackColorChanged event
30416 - Added TopLevelControl property
30417 - Fixed handling of WM_ERASEBKGRND message
30419 2004-08-31 12:49 pbartok
30425 2004-08-31 12:48 pbartok
30428 - Finished (famous last words)
30430 2004-08-31 04:35 jordi
30432 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
30433 scrolling bugs, adds new methods
30435 2004-08-30 14:42 pbartok
30438 - Implemented CheckBox drawing code
30440 2004-08-30 14:42 pbartok
30443 - Made Redraw() and CheckRedraw() virtual
30444 - Improved mouse up/down/move logic to properly track buttons
30446 2004-08-30 09:44 pbartok
30449 - Updated to fix broken build. Not complete yet.
30451 2004-08-30 09:28 pbartok
30456 2004-08-30 09:17 pbartok
30461 2004-08-27 16:12 ravindra
30463 * ToolBarButton.cs: Added TypeConverter attribute.
30465 2004-08-27 16:07 ravindra
30467 * ImageIndexConverter.cs: Implemented.
30469 2004-08-27 14:17 pbartok
30472 - Removed unneeded stack vars
30473 - First attempt to fix sizing issues when layout is suspended
30475 2004-08-25 15:35 jordi
30477 * ScrollBar.cs: more fixes to scrollbar
30479 2004-08-25 14:04 ravindra
30481 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
30482 Added the missing divider code and grip for ToolBar Control.
30484 2004-08-25 13:20 pbartok
30487 - Control now properly passes the ambient background color to child
30490 2004-08-25 13:20 jordi
30492 * ScrollBar.cs: small bug fix regarding bar position
30494 2004-08-25 12:33 pbartok
30497 - Now only calls SetTimer or KillTimer if the enabled state has
30500 2004-08-25 12:33 pbartok
30503 - Fixed timer handling, now seems to work
30504 - Improved error message for window creation
30506 2004-08-25 12:32 pbartok
30509 - Fixed generation of MouseUp message
30511 2004-08-25 12:29 jordi
30513 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
30514 and fixes for progressbar
30516 2004-08-24 18:43 ravindra
30518 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
30519 in ToolBar control.
30521 2004-08-24 17:15 pbartok
30525 - Added missing events
30528 2004-08-24 17:14 pbartok
30530 * StatusBar.cs, PictureBox.cs:
30531 - Now uses Control's CreateParams
30533 2004-08-24 16:36 pbartok
30536 - Fixed background color handling
30537 - Fixed sending of enter/leave events on a grab
30539 2004-08-24 16:35 pbartok
30542 - Refined definitions for CrossingEvent
30544 2004-08-24 12:37 jordi
30546 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
30547 formmating, methods signature, and adds missing events
30549 2004-08-24 12:24 jordi
30551 * Control.cs: fire OnEnabledChanged event
30553 2004-08-24 11:17 pbartok
30556 - Implemented SetTimer() and KillTimer()
30558 2004-08-24 11:16 pbartok
30561 - Now uses Remove instead of Add to kill the timer
30563 2004-08-24 10:16 jackson
30565 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
30566 picture boxes in the theme now. Draw picture box borders and obey
30569 2004-08-24 05:49 jackson
30571 * Timer.cs: Remove top secret debugging code
30573 2004-08-24 05:34 jackson
30575 * PictureBox.cs: Temp hack to make picture boxes draw their full
30578 2004-08-24 05:29 jackson
30580 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30581 XplatUIX11.cs: Move timers to the driver level. On X they are
30582 queued by the driver and checked on idle.
30584 2004-08-24 01:07 jackson
30586 * XplatUIX11.cs: Use a queue for async messages instead of passing
30587 them as ClientMessages since that was totally broken. Also simply
30588 check for events and return an idle message if none are found. This
30589 gives us an idle handler, and prevents deadlocking when no messages
30592 2004-08-23 18:19 ravindra
30594 * XplatUIWin32.cs: Removed the unwanted destructor.
30596 2004-08-23 17:27 pbartok
30599 - Finishing touches. Works now, just needs some optimizations.
30601 2004-08-23 16:53 jordi
30603 * ScrollBar.cs: small fix
30605 2004-08-23 16:45 pbartok
30608 - Removed debug output
30611 2004-08-23 16:43 jordi
30613 * ScrollBar.cs: [no log message]
30615 2004-08-23 16:10 pbartok
30618 - Fixed handling of WM_CLOSE message
30619 - Removed debug output
30621 2004-08-23 16:09 pbartok
30624 - Added handling of Idle event
30625 - Added handling of form closing
30626 - Fixed reporting of MessageLoop property
30627 - Removed some unneeded code, should provide a bit of a speedup
30629 2004-08-23 15:22 pbartok
30632 - Added InitLayout() method
30633 - Added code to properly perform layout when Anchor or Dock property
30635 - Changed 'interpretation' of ResumeLayout. MS seems to have a
30636 LAMESPEC, tried to do it in a way that makes sense
30638 2004-08-23 14:10 jordi
30640 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
30641 properties and methods
30643 2004-08-23 13:55 pbartok
30646 - Properly fixed Jordi's last fix
30647 - Now uses Cursor's Position property instead of calling XplatUI
30650 2004-08-23 13:44 jordi
30652 * PaintEventHandler.cs: Adding missing attribute
30654 2004-08-23 13:39 pbartok
30657 - Implemented Position property
30659 2004-08-23 13:39 pbartok
30661 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30662 - Added method to move mouse cursor
30664 2004-08-23 13:39 pbartok
30667 - Fixed setting of background color
30668 - Added method to move mouse cursor
30670 2004-08-23 13:16 jordi
30672 * Control.cs: avoids null exception
30674 2004-08-22 17:46 jackson
30676 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
30679 2004-08-22 17:40 jackson
30681 * XplatUIX11.cs: Add some missing locks
30683 2004-08-22 15:10 pbartok
30685 * Control.cs, Form.cs:
30686 - Removed OverlappedWindow style from Control, instead it's default
30688 - Made form windows OverlappedWindow by default
30690 2004-08-22 13:34 jackson
30692 * ScrollBar.cs: Update the position through the Value property so
30693 the OnValueChanged event is raised.
30695 2004-08-22 12:04 pbartok
30698 - Added Cursor.cs and UserControl.cs
30700 2004-08-22 12:03 pbartok
30703 - Started implementation, not usable yet
30705 2004-08-22 12:00 pbartok
30708 - Implemented UserControl (complete)
30710 2004-08-21 19:20 ravindra
30712 * ToolBar.cs: Correcting the formatting mess of VS.NET.
30714 2004-08-21 18:49 ravindra
30716 * ToolBar.cs: Probably this completes the missing attributes in
30719 2004-08-21 18:03 ravindra
30721 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
30722 Fixed toolbar control signatures.
30724 2004-08-21 16:32 pbartok
30729 2004-08-21 16:30 pbartok
30734 2004-08-21 16:19 pbartok
30736 * Control.cs, Label.cs:
30739 2004-08-21 15:57 pbartok
30742 - Added loads of debug output for development
30743 - Fixed typo in method name
30745 2004-08-21 15:52 pbartok
30747 * ToolBarButtonClickEventArgs.cs:
30748 - Added missing base class
30750 2004-08-21 14:53 pbartok
30753 - Updated to match new GrabWindow signature
30755 2004-08-21 14:51 pbartok
30757 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30758 - Added method to get default display size
30760 2004-08-21 14:23 pbartok
30762 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30763 - Added method to query current grab state
30764 - Added argument to allow confining a grab to a window
30766 2004-08-21 14:22 pbartok
30769 - Added [Flags] attribute so that modifiers can be used in bitwise
30772 2004-08-21 14:21 pbartok
30774 * TrackBar.cs, ScrollBar.cs:
30775 - Replaced direct XplatUI calls with their Control counterpart
30777 2004-08-21 13:32 pbartok
30780 - Implemented Created property
30782 2004-08-21 13:28 pbartok
30785 - Implemented ContainsFocus
30787 2004-08-21 13:26 pbartok
30790 - Implemented CausesValidation
30792 2004-08-21 13:21 pbartok
30795 - Implemented CanFocus
30796 - Implemented CanSelect
30797 - Implemented Capture
30799 2004-08-21 12:35 pbartok
30802 - Fixed bug with Async message handling
30803 - Implemented getting the ModifierKeys
30805 2004-08-21 12:32 jackson
30807 * AsyncMethodResult.cs: Make sure we have the mutex before we
30808 release it. Fixes BeginInvoke on windows
30810 2004-08-21 11:31 pbartok
30812 * XplatUIWin32.cs, XplatUIX11.cs:
30813 - Drivers now return proper mouse state
30815 2004-08-21 10:54 jackson
30817 * Control.cs: Implement EndInvoke
30819 2004-08-21 10:48 jackson
30821 * Timer.cs: Remove unneeded finalizer
30823 2004-08-20 19:52 ravindra
30825 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
30826 in mouse event handling in the ToolBar control.
30828 2004-08-20 19:50 ravindra
30830 * ImageList.cs: Changed draw method to use the arguments passed in
30833 2004-08-20 18:58 pbartok
30835 * XplatUIStructs.cs:
30836 - Added private message for async communication
30838 2004-08-20 17:38 ravindra
30840 * Control.cs: Made RightToLeft property virtual and removed a
30843 2004-08-20 14:39 jordi
30845 * ThemeGtk.cs: use style_attach
30847 2004-08-20 14:39 pbartok
30850 - Added jackson's Async code from X11 to Win32
30852 2004-08-20 14:09 pbartok
30855 - Added all new files
30857 2004-08-20 14:09 pbartok
30860 - Added call to set window background color
30862 2004-08-20 14:03 pbartok
30864 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
30865 - Added method for setting the window background
30867 2004-08-20 14:02 pbartok
30870 - Added method for setting the background color
30871 - Added handling for erasing the window background
30873 2004-08-20 13:45 jordi
30875 * TrackBar.cs: fixes timer, new properties and methods
30877 2004-08-20 13:34 jackson
30879 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
30882 2004-08-20 13:22 jackson
30884 * Timer.cs: Timer Tick events are now handed through Controls Async
30885 mechanism so the callbacks are executed in the same thread as X
30887 2004-08-20 13:19 jackson
30889 * XplatUIDriver.cs: Expose functionality to send async messages
30892 2004-08-20 13:18 jackson
30894 * Control.cs: Implement Begininvoke
30896 2004-08-20 13:14 jackson
30898 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
30899 messages through the driver
30901 2004-08-20 13:12 jackson
30903 * XplatUIX11.cs: Lock before all X operations. Also added Async
30904 method functionality through XSendEvent
30906 2004-08-20 13:11 jackson
30908 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
30909 This will screw up on 64 bit systems)
30911 2004-08-20 13:10 jackson
30913 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
30914 Async messages through X/Win32
30916 2004-08-19 19:39 pbartok
30919 - Updated code to match new HandleData.DeviceContext type
30921 2004-08-19 19:38 pbartok
30924 - Made DeviceContext a generic object to allow usage from various
30926 - Added support for queueing Windows messages
30928 2004-08-19 19:37 pbartok
30931 - Added generation of MouseEnter, MouseLeave and MouseHover events
30932 - Added cleanup on EndPaint
30934 2004-08-19 19:17 pbartok
30937 - Added handling of WM_MOUSEHOVER
30938 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
30941 2004-08-19 18:55 jordi
30943 * ThemeGtk.cs: fixes button order
30945 2004-08-19 18:12 jordi
30947 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
30949 2004-08-19 17:09 pbartok
30952 - Added Right property
30953 - Added RightToLeft property
30955 2004-08-19 16:27 jordi
30957 * ThemeGtk.cs: experimental GTK theme support
30959 2004-08-19 16:26 jordi
30961 * ITheme.cs, Theme.cs: move themes from an interface to a class
30963 2004-08-19 16:25 jordi
30965 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
30968 2004-08-19 16:04 pbartok
30971 - Added colormap basics
30972 - Added a way to re-initialize with a different display handle
30973 - Fixed setting of the window background color
30974 - Added various X11 imports related to colors and colormaps
30976 2004-08-19 15:51 pbartok
30979 - Removed packing hints (Paolo suggested this a while back)
30980 - fixed colormap type
30981 - Added default Atom types
30982 - Added Screen and color structs and enums
30984 2004-08-19 15:39 pbartok
30987 - Added missing Draw() method
30988 - Added missing RecreateHandle event
30990 2004-08-19 15:30 pbartok
30993 - Added handling of WM_CLOSE
30995 2004-08-18 13:16 jordi
30997 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
31000 2004-08-18 09:56 jordi
31002 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
31004 2004-08-17 15:31 ravindra
31006 * SWF.csproj: Updated project.
31008 2004-08-17 15:25 pbartok
31011 - Drawing improvement; don't call UpdateBounds if we are not visible
31012 (or have been minimized)
31014 2004-08-17 15:24 pbartok
31017 - Finished IsVisible
31018 - Added Win32GetWindowPlacement
31020 2004-08-17 15:08 jackson
31022 * Panel.cs: Initial checkin of the Panel
31024 2004-08-17 14:25 pbartok
31027 - Fixed broken handling of default window sizes
31029 2004-08-17 13:29 jackson
31031 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
31032 has a large startup time.
31034 2004-08-17 10:25 jackson
31036 * HandleData.cs: union areas properly
31038 2004-08-17 10:12 jackson
31040 * HandleData.cs: union areas properly
31042 2004-08-16 20:00 ravindra
31044 * ToolBar.cs, ToolBarButton.cs: Added attributes.
31046 2004-08-16 18:48 ravindra
31048 * ToolBar.cs: Added attributes.
31050 2004-08-16 17:17 ravindra
31052 * SWF.csproj: Updated project.
31054 2004-08-16 17:16 jackson
31056 * XplatUIX11.cs: Check for more expose events before sending a
31057 WM_PAINT so they can all be grouped together. This makes dragging a
31058 window across another window redraw in a sane way.
31060 2004-08-16 15:47 pbartok
31063 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
31064 support OnMouseEnter/Leave()
31065 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
31068 2004-08-16 15:46 pbartok
31070 * XplatUIStructs.cs, XplatUIX11.cs:
31071 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
31072 OnMouseEnter/Leave()
31074 2004-08-16 15:34 jackson
31076 * XplatUIX11.cs: Group multiple expose events in HandleData, make
31077 sure messages get the message field set to WM_NULL if they are not
31080 2004-08-16 15:24 jackson
31082 * HandleData.cs: HandleData is used for storing message information
31085 2004-08-15 17:23 ravindra
31087 * ColorDepth.cs: Added attribute.
31089 2004-08-15 17:23 ravindra
31091 * SWF.csproj: Updated project for ToolBar Control.
31093 2004-08-15 17:20 ravindra
31095 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
31096 control and also dos2unix format.
31098 2004-08-15 17:13 ravindra
31100 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
31101 ToolBarButtonClickEventArgs.cs,
31102 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
31103 ToolBarTextAlign.cs: First Implementation of ToolBar control.
31105 2004-08-15 15:31 pbartok
31108 - First (mostly) working version
31110 2004-08-13 16:15 pbartok
31113 - Fixed Anchor default
31115 2004-08-13 15:43 pbartok
31118 - Changed GetCursorPos signature
31120 2004-08-13 15:42 pbartok
31122 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
31123 - Changed signature for GetCursorPos
31125 2004-08-13 15:25 pbartok
31129 - Fixed resizing/exposure handling
31131 2004-08-13 15:22 jordi
31133 * ThemeWin32Classic.cs: removes redundant code and fixes issues
31136 2004-08-13 14:55 jordi
31138 * TrackBar.cs: change from wndproc to events
31140 2004-08-13 13:00 jordi
31142 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31143 XplatUIX11.cs: implements PointToClient (ScreenToClient)
31145 2004-08-13 12:53 pbartok
31148 - Changed GetWindowPos to also provide client area size
31149 - Fixed broken prototypes for several win32 functions
31151 2004-08-13 12:53 pbartok
31153 * XplatUI.cs, XplatUIDriver.cs:
31154 - Changed GetWindowPos to also provide client area size
31156 2004-08-13 12:52 pbartok
31159 - Added generation of WM_POSCHANGED
31160 - Changed GetWindowPos to also provide client area size
31162 2004-08-13 12:52 pbartok
31165 - Added Dispose() and destructor
31166 - Fixed resizing and bounds calculation
31168 - Added memory savings for invisible windows
31170 2004-08-13 12:46 jordi
31172 * TrackBar.cs: adds timer and grap window
31174 2004-08-13 10:25 jackson
31176 * Timer.cs: SWF Timer
31178 2004-08-12 16:59 pbartok
31180 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31181 - Implemented method to get current mouse position
31183 2004-08-12 14:29 jordi
31185 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
31186 enhancement, fix mouse problems, highli thumb, etc
31188 2004-08-12 13:31 pbartok
31191 - Fixed Anchoring bugs
31193 2004-08-12 13:01 jackson
31195 * StatusBar.cs: Don't forget things
31197 2004-08-12 12:54 jackson
31199 * ThemeWin32Classic.cs: Handle owner draw status bars
31201 2004-08-12 12:54 jackson
31203 * StatusBar.cs: Implement missing properties, events, and methods.
31204 Handle mouse clicking
31206 2004-08-12 10:19 jackson
31208 * StatusBarPanelClickEventArgs.cs,
31209 StatusBarPanelClickEventHandler.cs: Classes for handling status
31210 bar panel click events
31212 2004-08-12 10:10 jackson
31214 * Control.cs: Add missing properties
31216 2004-08-12 09:46 pbartok
31218 * BindingsManagerBase.cs:
31219 - Name changed to BindingManagerBase.cs
31221 2004-08-12 09:25 jordi
31223 * ScrollableControl.cs: calls ctrlbase instead of exeception
31225 2004-08-11 16:28 pbartok
31227 * InputLanguageChangingEventArgs.cs:
31228 - Never check in before compiling. Fixes the last check-in
31230 2004-08-11 16:26 pbartok
31232 * InputLanguageChangingEventArgs.cs:
31233 - More signature fixes
31235 2004-08-11 16:20 pbartok
31237 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
31238 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
31239 ImageListStreamer.cs, InputLanguage.cs,
31240 InputLanguageChangedEventArgs.cs,
31241 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
31242 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
31243 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
31244 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31247 2004-08-11 16:16 pbartok
31251 - Added .Net 1.1 method
31253 2004-08-11 15:25 pbartok
31256 - Fixed BindingManagerBase.cs filename
31258 2004-08-11 15:22 pbartok
31260 * BindingManagerBase.cs:
31261 - Was checked in with wrong filename
31263 2004-08-11 14:50 pbartok
31268 2004-08-11 13:41 jordi
31270 * XplatUIWin32.cs: Fixes ClientRect
31272 2004-08-11 13:19 pbartok
31274 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31276 - We had SetWindowPos and MoveWindow to set window positions and
31277 size, removed MoveWindow. We have GetWindowPos, so it made sense to
31278 keep SetWindowPos as matching counterpart
31279 - Added some X11 sanity checking
31281 2004-08-11 12:59 pbartok
31284 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
31285 (It seems that SetBounds is just a front for SetBoundsCore and
31286 SetBoundsCore updates the underlying window system and
31287 UpdateBounds is responsible for updating the variables associated
31288 with the Control and sending the events)
31289 - Major cleanup of Size handling; we now have two sizes, client_size
31290 and bounds. Bounds defines the window with decorations, client_size
31293 2004-08-11 12:55 pbartok
31295 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31296 - Added method to calculate difference between decorated window and
31299 2004-08-11 12:54 pbartok
31302 - Forcing redraw on resize
31304 2004-08-11 11:43 pbartok
31307 - Removed disposing of the actual images when the list is disposed
31309 2004-08-11 09:13 pbartok
31312 - Now properly reparents windows
31314 2004-08-11 08:37 pbartok
31319 2004-08-11 07:47 pbartok
31322 - Rewrote the collection stuff. Might not be as fast now, not
31323 keeping the number of children around and accessible directly, but
31324 it's more straightforward
31326 2004-08-11 07:44 pbartok
31328 * AccessibleObject.cs:
31329 - Fixed to match ControlCollection rewrite
31331 2004-08-11 07:43 pbartok
31334 - Added missing creation of the collection list
31336 2004-08-10 20:08 jackson
31338 * StatusBar.cs: Get the paint message from WndProc
31340 2004-08-10 19:31 jackson
31342 * ThemeWin32Classic.cs: Create Brushes as little as possible
31344 2004-08-10 19:20 jackson
31346 * UICues.cs: Add Flags attribute
31348 2004-08-10 19:19 jackson
31350 * StatusBarPanel.cs: Signature cleanup
31352 2004-08-10 19:10 jackson
31354 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
31355 Initial implementation of status bar item drawing
31357 2004-08-10 17:27 jordi
31359 * TrackBar.cs: add missing methods, properties, and restructure to
31362 2004-08-10 16:24 jackson
31364 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
31365 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
31368 2004-08-10 13:21 jordi
31370 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
31371 enhancements and standarize on win colors defaults
31373 2004-08-10 12:52 jackson
31375 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
31376 ThemeWin32Classic.cs: Implement DrawItem functionality
31378 2004-08-10 12:47 jordi
31380 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
31382 2004-08-10 12:32 jordi
31384 * Control.cs: throw ontextchange event
31386 2004-08-10 11:43 pbartok
31389 - Added more to the still unfinished Dock/Anchor layout code
31391 2004-08-10 11:39 pbartok
31393 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
31394 - Added GetWindowPos method
31396 2004-08-10 11:36 pbartok
31399 - Implemented several methods
31401 2004-08-10 09:47 jackson
31403 * TrackBar.cs: Allow control to handle buffering
31405 2004-08-10 09:41 jackson
31407 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
31409 2004-08-10 09:24 jackson
31411 * Label.cs, LinkLabel.cs: Let Control handle buffering.
31413 2004-08-10 09:09 jackson
31415 * StatusBar.cs: Let Control handle all the buffering.
31417 2004-08-10 09:08 jackson
31419 * Control.cs: Control will now handle the buffering code, so each
31420 control does not have to implement this.
31422 2004-08-10 08:34 jackson
31424 * XplatUIDriver.cs: Use default colors from the theme
31426 2004-08-09 17:12 pbartok
31429 - Fixed several bugs Ravindra pointed out
31431 2004-08-09 16:11 pbartok
31434 - Added incomplete dock layout code
31435 - Added support for mouse wheel
31437 2004-08-09 16:09 pbartok
31440 - Added handling for middle and right mousebutton
31441 - Added handling for mouse wheel
31442 - Added handling for key state and mouse state and position
31443 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
31446 2004-08-09 15:40 jackson
31448 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
31449 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
31452 2004-08-09 15:37 jackson
31454 * StatusBar.cs: Initial implementation of StatusBar
31456 2004-08-09 15:36 jackson
31458 * ITheme.cs: Add support for drawing status bar and getting status
31461 2004-08-09 15:35 pbartok
31466 2004-08-09 15:34 jackson
31468 * ThemeWin32Classic.cs: Add support for drawing status bar and get
31469 status bar item sizes
31471 2004-08-09 15:21 jackson
31473 * ThemeWin32Classic.cs: Use known colors for default control
31476 2004-08-09 15:12 jackson
31478 * ThemeWin32Classic.cs: Make the default font static, it is static
31479 in control so this doesn't change functionality and creating fonts
31482 2004-08-09 14:56 pbartok
31485 - Added GrabMode enum
31487 2004-08-09 14:55 pbartok
31489 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31490 - Removed Run method, was only required for initial development
31492 2004-08-09 14:51 pbartok
31494 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31495 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
31498 2004-08-09 13:48 pbartok
31501 - Fixed default sizing for child windows
31503 2004-08-09 12:56 pbartok
31506 - Added generation of WM_DESTROY message
31507 - Added handling of window manager induced shutdown
31509 2004-08-09 11:31 jackson
31511 * ThemeWin32Classic.cs: New names for control properties
31513 2004-08-09 11:25 jackson
31515 * Control.cs: Use new color names
31517 2004-08-09 11:02 jackson
31519 * XplatUI.cs: Get default window properties from the theme
31521 2004-08-09 11:01 jackson
31523 * ITheme.cs: The theme engine now controls default window
31526 2004-08-09 11:00 jackson
31528 * ThemeWin32Classic.cs: Add default window color properties
31530 2004-08-09 10:17 jackson
31532 * ThemeWin32Classic.cs: Use correct default back color
31534 2004-08-09 10:05 jackson
31536 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
31539 2004-08-09 09:56 jackson
31541 * XplatUI.cs: Remove defaults, these are handled by the theme now.
31543 2004-08-09 09:54 jackson
31545 * Control.cs: Get default properties from the theme.
31547 2004-08-09 09:53 jackson
31549 * ITheme.cs: Themes now handle default control properties
31551 2004-08-09 09:53 jackson
31553 * ThemeWin32Classic.cs: Themes now handle default control
31554 properties so coloring will be consistent
31556 2004-08-08 16:54 jordi
31558 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
31560 2004-08-08 15:08 jordi
31562 * XplatUIX11.cs: fixes keyboard crash
31564 2004-08-08 13:47 jordi
31566 * Label.cs: add cvs header info
31568 2004-08-08 12:09 jackson
31570 * ThemeWin32Classic.cs: Add pen_buttonface
31572 2004-08-08 11:52 jordi
31574 * Label.cs, LinkLabel.cs: [no log message]
31576 2004-08-08 11:34 jordi
31578 * ThemeWin32Classic.cs: Use Windows Standard Colours
31580 2004-08-07 17:32 jordi
31582 * TrackBar.cs: throw exceptions of invalid enums values
31584 2004-08-07 17:31 jordi
31586 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
31589 2004-08-07 16:56 jackson
31591 * HorizontalAlignment.cs: Initial checkin
31593 2004-08-07 13:16 jordi
31595 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
31598 2004-08-07 13:05 jordi
31600 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
31601 GetSysColor defines
31603 2004-08-06 18:01 pbartok
31605 * ThemeWin32Classic.cs:
31606 - Fixed some rounding issues with float/int
31608 2004-08-06 18:00 jackson
31610 * DockStyle.cs, AnchorStyles.cs:
31612 Add flags and serializable attributes.
31614 2004-08-06 17:46 pbartok
31617 - Implemented GetParent
31619 2004-08-06 17:18 pbartok
31622 - Fixed some rounding issues with float/int
31624 2004-08-06 17:17 pbartok
31626 * X11Structs.cs, XplatUIX11.cs:
31627 - Fixed Refresh and Invalidate
31629 2004-08-06 15:30 pbartok
31631 * Control.cs, X11Structs.cs, XplatUIX11.cs:
31632 - Fixed recursive loop when resizing
31633 - Improved/fixed redrawing on expose messages
31635 2004-08-06 09:53 jordi
31637 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
31638 keyboard navigation
31640 2004-08-06 08:02 pbartok
31642 * X11Structs.cs, XplatUIX11.cs:
31643 - Fixed reparenting
31644 - Fixed window border creation
31646 2004-08-05 15:38 pbartok
31649 - Attempted fix for reparenting problems
31651 2004-08-04 15:14 pbartok
31654 - Fixed Invalidation bug (calculated wrong client area)
31655 - Added ClientSize setter
31657 2004-08-04 15:13 pbartok
31660 - Added AutoScale properties
31662 2004-08-04 15:13 pbartok
31665 - Added latest files
31667 2004-08-04 14:11 pbartok
31669 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31671 - Added Invalidate handling
31673 2004-08-03 17:09 jordi
31675 * XplatUIDriver.cs: fixes spelling mistake
31677 2004-07-27 09:53 jordi
31679 * TrackBar.cs: fixes trackbar events, def classname, methods
31682 2004-07-27 09:29 jordi
31684 * ScrollBar.cs: fixes scrollbar events
31686 2004-07-27 04:38 jordi
31688 * Control.cs: changes to be able to run winforms samples
31690 2004-07-26 11:42 jordi
31692 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
31693 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
31695 2004-07-26 05:41 jordi
31697 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
31698 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
31701 2004-07-22 09:22 jordi
31703 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
31704 check link overlapping, implement events, and fixes
31706 2004-07-21 10:28 jordi
31708 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
31710 2004-07-21 10:19 jordi
31712 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
31713 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
31714 LinkLabelLinkClickedEventArgs.cs,
31715 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
31716 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
31719 2004-07-19 13:09 jordi
31721 * Control.cs, Label.cs: label control re-written: added missing
31722 functionlity, events, and properties
31724 2004-07-19 10:49 jordi
31726 * Control.cs: fixes SetBounds logic
31728 2004-07-19 01:29 jordi
31730 * Control.cs: Call RefreshWindow only if the window has created
31732 2004-07-15 14:05 pbartok
31734 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
31735 - Implemented ImageList and ImageList.ImageCollection classes
31736 - Added ColorDepth enumeration
31737 - Updated SWF VS.Net project
31739 2004-07-15 11:06 jordi
31741 * XplatUIStructs.cs: added MsgButons enum
31743 2004-07-15 11:03 jordi
31745 * Control.cs: added basic mouse handeling events
31747 2004-07-15 03:38 jordi
31749 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
31750 Vertical TrackBar control implementation
31752 2004-07-13 09:33 jordi
31754 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
31756 2004-07-13 09:31 jordi
31758 * Control.cs, Form.cs: commit: new properties and fixes form size
31761 2004-07-09 14:13 miguel
31763 * ProgressBar.cs: Spelling
31765 2004-07-09 11:25 pbartok
31768 - Removed usage of Rectangle for drawing. Miguel pointed out it's
31771 2004-07-09 11:17 miguel
31773 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
31775 * ProgressBar.cs: Fixed spelling for `block'
31777 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
31780 Avoid using the += on rect.X, that exposed a bug in the compiler.
31782 2004-07-08 23:21 pbartok
31784 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
31785 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
31786 BaseCollection.cs, Binding.cs, BindingContext.cs,
31787 BindingMemberInfo.cs, BindingsCollection.cs,
31788 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
31789 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
31790 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
31791 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
31792 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
31793 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
31794 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
31795 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
31796 FrameStyle.cs, GiveFeedbackEventArgs.cs,
31797 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
31798 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
31799 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
31800 InputLanguageChangedEventArgs.cs,
31801 InputLanguageChangedEventHandler.cs,
31802 InputLanguageChangingEventArgs.cs,
31803 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
31804 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
31805 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
31806 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
31807 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
31808 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
31809 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
31810 QueryAccessibilityHelpEventArgs.cs,
31811 QueryAccessibilityHelpEventHandler.cs,
31812 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
31813 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
31814 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
31815 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
31816 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
31817 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
31818 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
31819 XplatUIX11.cs, lang.cs: