1 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4 when the item in current position is different than 0. Also, save the
5 item index in the beginning of the operation, instead of getting the
6 index of the item when the event is actually performed. Lastly clean
7 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
11 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
13 * Form.cs: Alt-Minus for MDI children system menu should work
14 with both the minus keys on the keyboard.
17 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
19 * Control.cs: Don't invalidate on region change. The WM should
20 take care of this automagically. Keeps us out of an infinite
21 paint loop if someone changes the Region in the OnPaint.
24 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
26 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
28 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
30 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
31 down the MonthCalendar only on F4, not Alt+F4.
32 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
35 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
37 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
38 if its part of a DateTimePicker, else, use the back color.
41 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
43 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
46 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
48 * CurrencyManager.cs: When we get a ListChanged event from our source,
49 always fire our own ListChanged event, as .Net does.
51 2008-02-03 Luke Page <luke.a.page@gmail.com>
53 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
56 2008-02-03 Luke Page <luke.a.page@gmail.com>
58 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
59 property. Removed if for richtext property that was always true.
60 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
62 2008-02-03 Luke Page <luke.a.page@gmail.com>
64 * TextBoxBase.cs - commited patch from James Purcell that
65 correctly sets the FixedHeight control style when the MultiLine
66 property is changed on a TextBox control. Fixes bug 358229.
68 2008-02-02 Luke Page <luke.a.page@gmail.com>
70 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
71 Fixes bug 351938 - caret is positioned correctly when drawn
72 and when calculating textual position of caret, no longer
73 has a NRE in certain situations.
75 2008-02-01 Geoff Norton <gnorton@novell.com>
77 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
78 get that region removed from the paint event.
79 * XplatUICarbon.cs: Remove the window mapping after disposing of
80 window. Prevents a crash with handle reuse. Optimize exposes
81 only onto visible windows (rare; but possible).
83 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
85 * UpDownBase.cs: Make sure the internal textbox calls the base's
86 OnMouseDown and OnMouseUp so the textbox will function correctly.
87 There were notes saying it doesn't chain up, but its an internal
88 class, so our implementation may differ.
91 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
93 * ListBox.cs: Fix a logic error and don't process MouseDown
94 for mouse buttons other than Left.
96 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
98 * Control.cs: Remove HeightInternal.
99 * ListBox.cs: Commit patch from James Purcell that correctly
100 calculates heights for ListBoxen.
103 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
105 * Label.cs: Apply patch from James Purcell that corrects the
106 signature of the AutoSize property.
109 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
111 * ListBox.cs: Don't throw [Mouse]Click events for buttons
112 other than the left mouse button.
114 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
116 * Control.cs: Remove my awesome optimization as it caused some
117 regressions with control ordering. :(
120 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
122 * PropertyGridView.cs: Fix a NRE on double click when there is no
125 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
127 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
129 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
131 * ListBox.cs: Call MouseClick and MouseDoubleClick.
134 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
136 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
137 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
138 instead of Hwnd.bmp_g.
140 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
142 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
143 Use the Hwnd one instead.
145 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
147 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
149 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
151 * Form.cs: corcompare for RestoreBounds.
153 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
155 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
157 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
159 * Form.cs: Handle Alt-Minus for MDI children forms.
160 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
161 Add mnemonics to the control menu.
164 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
166 * Binding.cs: Initial implementation bits of FormattingEnabled
167 property and BindingComplete event (2.0).
168 * BindingCompleteEventArgs.cs: Internal methods for setting error text
171 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
173 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
174 table.Location. [Fixes bug #354672]
176 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
178 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
179 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
181 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
183 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
184 of doing all the re-bound work, just invalidate and call SetControlText
185 to set the updated text of selected item to our textbox.
188 2008-01-28 Andreia Gaita <avidigal@novell.com>
190 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
191 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
192 missing properties and methods. Add Load, Unload, Error, GotFocus,
193 LostFocus, Resize, Scroll events (only load and unload are connected)
195 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
197 * AccessibleObject.cs: Modified argument names to match MS.
198 * Button.cs: Modified argument names to match MS.
199 * BindingContext.cs: Modified argument names to match MS.
200 * BindingMemberInfo.cs: Modified argument names to match MS.
201 * ButtonBase.cs: Modified argument names to match MS.
202 * ComboBox.cs: Modified argument names to match MS.
203 * Control.cs: Modified argument names to match MS.
204 * CheckedListBox.cs: Modified argument names to match MS.
205 * CommonDialog.cs: Modified argument names to match MS.
206 * DataGrid.cs: Modified argument names to match MS.
207 * CursorConverter.cs: Modified argument names to match MS.
208 * ControlPaint.cs: Modified argument names to match MS.
209 * CheckBox.cs: Modified argument names to match MS.
210 * ControlBindingsCollection.cs: Modified argument names to match MS.
211 * BindingSource.cs: Modified argument names to match MS.
212 * DataFormats.cs: Modified argument names to match MS.
213 * ContainerControl.cs: Modified argument names to match MS.
214 * CurrencyManager.cs: Modified argument names to match MS.
215 * Application.cs: Modified argument names to match MS.
216 * ContextMenuStrip.cs: Modified argument names to match MS.
217 * ContextMenu.cs: Modified argument names to match MS.
218 * BindingManagerBase.cs: Modified argument names to match MS.
219 * WindowsFormsSection.cs: Fixed line ending.
221 2008-01-27 Andreia Gaita <avidigal@novell.com>
223 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
224 detecting that the dropdown toolwindow is hidden. EndLoop outside the
227 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
229 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
232 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
234 * Binding.cs: Don't avoid the Format event if the control
235 property type is object. Also, if the value retrieved by
236 the data source is null _and_ the control proeprty type
237 is object, return Convert.DBNull (match .Net).
238 Fixes part of #324286.
240 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
242 * ListControl.cs: Since we are getting two BinginContextChanged events
243 for the same binding context instance (when the control is added to
244 form, and when the form is actually shown), take it into account only the
245 first time for a given binding context instance.
246 Fixes part of #324286.
248 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
250 * PropertryGridView.cs: Ops.
252 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
254 * PropertyGridView.cs: Close dropdown form if the owner form is
258 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
260 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
261 RootGridEntry.cs, CategoryGridEntry.cs:
262 PropertyGrid rewrite.
263 - Rewrite all of the control logic in PropertyGrid.
264 - Rewrite all of the ComponentModel logic in GridEntry.
265 - Rewrite all UI work in PropertyGridView.
266 - Many bugfixes, etc.
268 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
270 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
271 when all contained controls are autosize or dock-fill. Also take into
272 account when the total percentage of column/row sizes is not 100%.
275 2008-01-24 Andreia Gaita <avidigal@novell.com>
278 - Save a reference to the IDocument in the instance and
279 use that one instead of going to WebHost.Document; the document that the
280 WebHost returns might not be the right one (in case of frames).
281 - Use the hashcode returned from the IDocument interface.
282 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
283 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
284 LinkColor, Url, VisitedColor, Window
287 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
288 set_Attribute, NextSibling, Parent, TagName, AppendChild,
289 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
290 SetAttribute, Equals, equality operators.
291 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
292 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
294 * HtmlElementCollection.cs: Change implementation to use a generic
295 collection. Implemented Enumerator and CopyTo
297 * HtmlHistory.cs: Add constructor, no implementation yet.
299 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
300 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
301 Equals, equality operators.
303 * HtmlWindowCollection.cs: Implemented.
305 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
306 has been deprecated).
308 * WebBrowserBase.cs: Use Completed event to track document loading
309 (Navigated has been deprecated)
311 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
313 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
314 level MenuItems do not respect tabs.
317 2008-01-23 Geoff Norton <gnorton@novell.com>
319 * XplatUICarbon.cs: Ensure that windows are created in their initial
320 FormWindowState. Finished fixing Fullscreen windows on Carbon
322 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
324 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
325 be used as grab_control. Also save status of capture before show ContextMenu
326 and restore it after close.
328 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
330 * Control.cs: Internal FindRootParent method added to return high control
333 2008-01-23 Geoff Norton <gnorton@novell.com>
335 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
336 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
337 it work again. Handle HITTEST events.
339 2008-01-23 Geoff Norton <gnorton@novell.com>
341 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
342 a crash in certain cases. Support for fullscreen windows in certain cases.
344 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
346 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
349 2008-01-23 Geoff Norton <gnorton@novell.com>
351 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
353 2008-01-23 Geoff Norton <gnorton@novell.com>
355 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
357 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
359 * SplitContainer.cs: Remove unused declarations.
360 * Binding.cs: Remove unused declarations.
362 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
364 * Form.cs: Remove unused declaration of 'active' in Activate method.
365 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
366 prevent compilation warnings.
367 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
368 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
369 * Bindings.cs: Remove unused formatting_enabled declaration.
370 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
372 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
374 * PropertyGridView.cs: Remove usused 'ex' declaration.
375 * DataGridView.cs: Remove unused declarations.
377 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
379 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
381 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
382 to Control class, it makes possible to grab menu to controls that can't
383 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
384 WmMouseMove removed since it was used only to track menu events.
387 - Moved all active_tracker stuff from Form.
388 - ProcessActiveTracker added to prevent code duplicity, now mouse events
389 can call this method instead of reimplement all necessary code handle for
391 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
395 - Remove special handle to ToolStripOverflow, now we can grab menu to
396 controls that can't reach Form using parent tree.
397 - Change type of grab_control from Form to Control.
399 2008-01-22 Geoff Norton <gnorton@novell.com>
401 * TextBoxBase.cs: Split up the sizing of controls and placing of
402 controls. Fixes a bug where scrollbars in Reflector could be sized
403 wrong and have non-working thumbers.
405 2008-01-23 Geoff Norton <gnorton@novell.com>
407 * XplatUI.cs: Refactor environment variables to default support to the
408 Carbon driver on the Mac.
410 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
412 * Label.cs: Uses new LabelPainter for drawing operations.
413 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
414 * Theme.cs: DrawLabel and LabelDefaultSize removed.
416 2008-01-22 Geoff Norton <gnorton@novell.com>
418 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
420 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
422 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
423 through the normal flat button code and don't draw the checkbox glyph.
424 * Theme.cs: Button->ButtonBase signature change.
427 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
429 * LinkLabel.cs: Uses new class LinkLabelPainter.
431 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
433 * MessageBox.cs: Adjust right border space, we don't need to add
434 "space_border*2" two times.
436 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
438 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
439 becomes a wrapper around Padding.
440 [Fixes a part of bug #354676]
442 2008-01-22 Geoff Norton <gnorton@novell.com>
444 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
445 acquired. Also ensure the buffer is large enough to grab the header
446 we need on linux boxes.
448 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
450 * Control.cs: Implement a custom enumerator so people can delete
451 from the Controls collection while in a foreach.
454 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
456 * PropertyGridView.cs: Fix focusing behavior:
457 - Tab should focus the grid text box.
458 - Clicking on the labels shouldn't focus the grid text box.
460 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
462 * PropertyGridView.cs: IsValueTypeGridItem should return true
465 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
467 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
468 - Renamed GridEntry.SelectedObjects to TargetObjects to better
469 reflect the property name role.
470 - PropertyGrid.GetTarget is not required as the target is known
472 - Setting values will handle value types as a special case now and
473 populate them up in the chain.
476 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
478 * Hwnd.cs: Create a public property for the Graphics we keep around.
480 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
482 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
483 when the current object selection changes.
484 Fixes failing test SelectedObject_Null2.B5.
486 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
488 * PropertyGrid.cs: Process Browsable properties with
489 DesignerSerializationVisibilityAttribute.Content as being expandable.
490 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
491 will not be expandable. We should be nested components-friendly now.
493 2008-01-21 Andreia Gaita <avidigal@novell.com>
495 * WebBrowserBase.cs: Check if control was loaded properly,
496 don't bind if it wasn't.
498 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
499 GetElementFromPoint, equality operators, OpenNew, Write.
500 Remove extra set_Body
502 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
504 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
505 that makes our AutoScale* stuff more tolerant to different orders
506 of being set. [Fixes bug #354669]
508 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
510 * PropertyGridView.cs, PropertyGridTextBox.cs:
511 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
512 [Fixes #339005 and #348209]
514 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
516 * PropertyGridView.cs: Hide the grid text box before adjusting it
517 for the newly selected GridItem.
520 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
522 * Form.cs: Give MDI children the opportunity to cancel the parent form
523 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
524 properly for both the parent and child.
525 * Application.cs: Signature of internal method changed, pass the previous
529 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
531 * PropertyGridView.cs: Set the property value only if it has changed.
534 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
536 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
537 If the mouse hasn't actually moved, ignore these messages so the currently
538 highlighted menuitem isn't reset to the one under the mouse.
541 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
543 * PropertyGridView.cs: When the property changes Invalidate the GridItem
544 in order for the properties with UITypeEditor.GetPaintValueSupported == true
545 to reflect the change visually.
548 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
550 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
551 to 2.0 button drawing.
552 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
553 the button text is tall enough for one line. LineLimit says it will
554 always draw at least one line, but it is a lie.
557 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
559 * XplatUIStructs.cs, X11Keyboard.cs :
560 added some more VK_* keys to be handled.
562 2008-01-16 Andreia Gaita <avidigal@novell.com>
564 * Control.cs: Check if there is a container before setting or getting
567 2008-01-16 Andreia Gaita <avidigal@novell.com>
569 * ContainerControl.cs: Add flag to track if a control cancels validation,
570 so we don't fire click events.
573 - (HandleClick) Check if validation was cancelled before firing the click
574 events (doubleclicks are fired, but not clicks)
575 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
576 ContainerControl.set_ActiveControl, but in the case of non-selectable
577 controls, like a Label, activecontrol is not set.
579 * ButtonBase.cs: Only fire clicks if validation passes.
583 2008-01-16 Geoff Norton <gnorton@novell.com>
585 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
588 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
590 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
591 SelectedPath, just display the default dialog instead of crashing.
594 2008-01-16 Geoff Norton <gnorton@novell.com>
596 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
597 AddExpose instead of trusting apples compositing manager which doesn't
598 work for our use case. Remove some dead code causing warnings and
599 redecorate some other code to prevent warnings.
601 2008-01-16 Geoff Norton <gnorton@novell.com>
603 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
604 carbon signals us to redraw. Fixes another portion of the flickering bug
606 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
608 * Form.cs: Prevent the MdiParent property to be set when value is the same
609 as value already set. Fixes bug #328019.
611 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
613 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
614 it prevents NRE when closing mdi child windows. Fixes bug #325211.
616 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
618 * InternalWindowManager.cs: Invalidade close button after mouse up when
619 mdi form is prevented to close.
621 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
623 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
624 thanks to Andy Hume. Fixes bug #325433.
626 2008-01-16 Andreia Gaita <avidigal@novell.com>
628 * LinkLabel.cs: Reset focused_index when resellecting the control.
631 2008-01-15 Geoff Norton <gnorton@novell.com>
633 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
636 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
638 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
641 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
643 * ContainerControl.cs: Setting AutoScaleMode to anything should set
644 Form.AutoScale to false.
645 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
646 AutoScaleBaseSize should be changed on Font change unless it has been
650 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
652 * MenuAPI.cs: On instance of MenuTracker check if source control is
653 ToolStripOverflow and use properly method to find form.
656 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
658 [Fixes bug #323241 Transparent toolbar support]
660 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
663 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
664 defined in control style to mimic win32 behavior.
666 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
667 it will be transparent.
669 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
671 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
672 CreateParams for ToolBar controls.
674 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
676 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
677 FixedToolWindow, SizeableToolWindow, or None for border styles have
678 different minimum sizes than regular forms. Implemented to fix
679 regression in PDN with toolbox being too wide.
681 2008-01-14 Andreia Gaita <avidigal@novell.com>
683 * HtmlElementCollection.cs: Implemented
685 * HtmlElement.cs: Implemented:
693 * HtmlDocument.cs: Implemented GetElementsByTagName.
695 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
697 * Screen.cs: Stub BitsPerPixel to always return 32.
699 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
701 * Form.cs: Implement RestoreBounds.
703 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
705 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
706 Sebastien and his fabulous magical problem-finding machine:
707 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
708 respect the value set.
710 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
712 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
713 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
715 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
717 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
718 messages (to match .Net), we need to remove the capture ourselves.
720 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
722 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
723 will process the message and close our window.
726 2008-01-10 Geoff Norton <gnorton@novell.com>
728 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
729 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
732 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
734 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
737 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
739 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
740 Linux doesn't care, having a minimum matches MS and keeps the window
741 from becoming too small to use window decorations.
744 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
746 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
747 ShowFocusCues. Make focus rectangles fit the text instead of the whole
748 control. [Fixes bug #325419]
750 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
752 * ComboBox.cs: Guard against an NRE if the user open a new form from a
753 SelectedIndexChanged event. This closes the combobox dropdown, and we
754 were trying to dispose it. [Fixes bug #352830]
756 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
758 * Control.cs, Form.cs: Implement the necessary semantics for
759 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
760 to determine if a focus rectangle should be drawn.
761 * PropertyGrid.cs: Fix property visibility to match override.
762 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
764 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
766 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
769 2008-01-09 Geoff Norton <gnorton@novell.com>
771 * XplatUICarbon.cs: Scroll windows in the correct direction.
773 2008-01-09 Geoff Norton <gnorton@novell.com>
775 * XplatUICarbon.cs: Track all created utility windows so we can hide them
776 when the app is deactivated or spaces is enabled.
778 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
780 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
781 extra separation pixel for the label rect origin if SmallImageList is
782 null, and thus we don't need that separation between icon and label
784 Patch by Ernesto Carrea.
787 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
789 * StatusStrip.cs: Invalidate after completing a layout. The base
790 OnLayout does this, but we don't call the base.
791 * ToolStripItem.cs: Revert the previous change to invalidate after
793 [Fixes bug #351341 better.]
795 2008-01-07 Geoff Norton <gnorton@novell.com>
797 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
798 not a notification to exit the application. Listen for WM_QUIT
801 2008-01-07 Andreia Gaita <avidigal@novell.com>
803 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
805 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
807 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
808 so it can repaint at the correct location.
811 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
813 * ListControl.cs: SelectedValue should return a null value if
814 SelectedIndex is -1. Also, when setting it, it should throw an
815 ArgumentNullException if the value is null, as well as taking
816 into account the String.Empty value, instead of ignoring it (we have
818 Fixes part of #324286.
820 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
822 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
823 SelectionStart is updated after pressing enter. Fixes bug #351918.
825 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
827 * TextControl.cs: Revert a piece r92316 that prevented the fix
828 from working when there were multiple tags in the text box.
831 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
833 * TextControl.cs: Apply patch from Luke Page that prevents an
834 NRE when determining the beginning of a paragraph.
837 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
839 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
840 caret gets moved with clicking away from a selected block of
841 text. Fixes bug #351885.
843 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
845 * TextControl.cs: Apply patch from Luke Page that takes line
846 alignment into account for mouse selection, so that center and
847 right aligned text can be selected.
850 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
852 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
853 issues after loading an RTF file by using the correct line feeds.
856 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
858 * TextControl.cs: When deleting multiple line selections, we need
859 to invalidate every line beginning at the first line of the selection.
860 Patch from Luke Page fixes bug #351791.
862 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * ListControl.cs: When getting a CurrencyManager.PositionChanged
865 event, don't set SelectedIndex if the number of items is 1. This is
866 because, for the first item, PositionChanged is fired _before_
867 ItemChanged (the place where we actually populate the items), and
868 leave us in a temporary invalid state (since items collection is
872 2008-01-04 Geoff Norton <gnorton@novell.com>
874 * XplatUICarbon.cs: Create native toolwindows instead of
875 the managed drawing ones.
877 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
879 * LineTag.cs: If the line doesn't have any characters, return
880 0 for GetCharIndex. Fixes an AOORE exception after certain
881 caret movements. Fixes bug #351683. Patch by Luke Page.
883 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
885 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
886 is hit when there is selected text, only the selected text gets
887 deleted, not the character in front of the selection as well.
890 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
892 * ComboBox.cs: When the values are displayed, calculate the
893 ComboListBox scrollbar's LargeChange based on the visible area's
894 height and the actuall ItemHeight, instead of calculating it
895 based on MaxDropItems value, since it's not used by our _current_
899 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
901 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
902 Patch from Luke Page that fixes issues with font colors and styles
903 not showing up in a readonly RichTextBox. Fixes bug #324354.
905 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
907 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
908 from Luke Page. This one fixes bug #349926.
910 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
912 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
913 an item in the IBindingList source changes with
914 ListChangedType.ItemAdded. Ignore for now firing the event for other
915 changes, since we want to have tests for those cases as well.
917 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
919 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
922 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
924 * TextBoxTextRenderer.cs: Implement a cache for measuring each
925 character. This is effective because the typical usage of a
926 TextBox is with a limited amount of fonts and characters, and
927 the current implementation of TextBox measures everything one
928 character at a time. Another second or two speedup for bug #347238.
930 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
932 * Control.cs: Rewrite the Font getter to only query the parent's
933 Font property once instead of twice. Since this operation is
934 recursive, the queries were growing exponentially as the control
935 tree got deeper. Another second or two speedup for bug #347238.
937 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
939 * Control.cs: Avoid setting a parent (and more importantly, updating
940 the zorder of all its children) if the parent is already correct in
941 WmShowWindow. Decreases the startup time of the test case on bug
942 #347238 from 35 seconds to 11 seconds.
944 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
946 * X11Dnd.cs: When the dnd operation has started and we are
947 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
948 This is done to match .Net, which doesn't send those messages after
949 dnd operation was completed/cancelled.
952 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
954 * ToolStrip.cs: Previous change should be != null, not == null.
957 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
959 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
960 user may have moved the mouse off the current item during the event.
962 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
964 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
965 calling GetItemAt for every MouseMove event by also taking into
966 account whether any mouse button is pressed (probably dragging);
967 if so, we can call GetItemAt, and if not, try to not call it
968 (GetItemAt can be quite expensive when used with a large number of items).
970 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
972 * ListView.cs: Implement -finally- support for dnd, by calling
973 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
975 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
976 simple calculation of distances for all the items in the owner
979 2007-12-21 Geoff Norton <gnorton@novell.com>
981 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
982 for windows that are originally created as invisible. Fixes missing
983 main window in paint-mono.
985 2007-12-21 Geoff Norton <gnorton@novell.com>
987 * XplatUICarbon.cs: Register our D&D handler. Register our custom
988 subclass handler for com.novell.mwfview subclassing HIView. Implement
989 Pasteboard and Dnd methods.
991 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
993 * ListBox.cs: When we got focus, give focus to first item if there
994 wasn't any pervious focused item. Also update navigation to depend on
995 SelectedIndex rather than FocusedItem, just as .Net does.
998 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1000 * ListBox.cs: Both FindString and FindStringExact methods must do an
1001 case insensitive search, should allow the last valid index to be
1002 passed in the overload taking an initial index, and should also
1003 continue searching from the top back to the specified index when it
1006 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
1008 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
1009 redraw issue, and allows RichTextBox to draw colored text even while
1010 disabled or readonly.
1012 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
1014 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
1015 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
1016 and doesn't grey text in a disabled RichTextBox.
1018 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
1020 * RichTextBox.cs: Apply patch from Luke Page that adds better support
1021 for many RTF commands: quad alignment, separate formatting for blocks
1022 inside groups, and ParDef support. Makes the test case from bug #324589
1025 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
1027 * LineTag.cs: Fix an error in the new Draw method that caused
1028 a crash when rendering the document on bug #324589.
1030 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
1032 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
1033 TextControl.cs: Apply patch from Luke Page that adds support
1034 for URL links in RichTextBox.
1035 [Fixes enhancement #342516]
1037 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
1039 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
1040 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
1042 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1044 * ListBox.cs: When a key gets pressed, try to find a string
1045 if the key is a character or a digit.
1048 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
1050 * TableLayoutPanel.cs: Remove some unused variables.
1052 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
1054 * DateTimePicker.cs: Commit patch from Luke Page that ensures
1055 we don't end up at an invalid date when we click the up/down
1056 spinner to change the month or year. Fixes bug #348682.
1058 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
1060 * Application.cs: Calling Exit in 2.0 should chain to the
1061 Exit (CancelEventArgs) version so it can be cancelled.
1062 * Form.cs: Create a flag to allow raising the Closing
1063 events to be skipped. We raise them once in Application.Exit
1064 and don't want to raise them again when the Form is actually
1065 closed. [Fixes bug #349073]
1067 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
1069 * ToolStripDropDown.cs: Guard against an NRE when there
1070 hasn't been a mainform set in the application context.
1073 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1075 * ListBox.cs: When SetBoundsCore gets called, besides
1076 calling UpdateScrollBars, update the value of
1077 last_visible_index, since we could need to show more items
1078 than before, and we need to let the paint routines know that.
1081 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1083 * ListView.cs: Add DesignerSerializationVisibility attribute to
1084 InsertionMark property.
1085 * ListViewItem.cs: Add same attribute to Position property.
1087 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1089 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
1092 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
1094 * ThemeWin32Classic.cs: Don't draw the background on a
1095 flat button if there is a background image.
1098 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1100 * ListBox.cs: If we remove the item currently selected,
1101 remove it not only from SelectedItems, but also
1102 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
1103 the items count decreased and focused_item has bigger value than that.
1105 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
1107 * Control.cs: Perform our layout after we resize ourselves
1108 if we had to adjust our AutoSize. Missed commit for bug
1111 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
1113 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
1114 we can provide an implementation of AutoSize.
1117 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1119 * ListBox.cs: Add the internal overload Sort (bool paint),
1120 to indicate whether we actually need a paint or we will
1121 call Refresh ourselves. This way we don't request a paint
1122 _before_ having an updated and valid layout.
1125 2007-12-12 Andreia Gaita <avidigal@novell.com>
1127 * XPlatUIX11.cs: Send paint messages when updating a systray icon
1128 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
1129 properly invalidated.
1132 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1134 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
1135 don't simply assign it to our internal group field, but instead
1136 use our Group property, which should do all the neccessary work
1137 required to support groups. Fixes an issue reported to me (mail) by a
1138 guy using this new feature.
1140 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
1142 * Control.cs: Use Scale instead of ScaleControl to ensure the
1143 whole hierarchy gets scaled.
1146 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1148 * DateTimePicker.cs: Don't set the internal MonthCalendar's
1149 Parent property. Doing this causes the control to be hosted by
1150 the Form instead of being a popup window.
1153 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1155 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
1156 at an index higher than Count, just use Add instead of Insert.
1159 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
1161 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
1162 DrawPictureBox, this is handled by Control.PaintBackground.
1165 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
1167 * MenuAPI.cs: When process menu keys return true by default only if menu is
1168 active. Fixes bug #342892.
1170 2007-12-09 Andreia Gaita <avidigal@novell.com>
1172 * Control.cs: check if windows are actually mapped before
1173 trying to zorder. Fixes #342509, #346955
1175 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1178 * ListViewInsertionMark.cs:
1179 * ThemeWin32Classic.cs: Implement the drawing side of the
1180 new 2.0 ListView.InsertionMark property.
1182 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
1184 * CurrencyManager.cs: Silence some debug spew.
1186 2007-12-07 Geoff Norton <gnorton@novell.com>
1188 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
1189 masks for our children as well as siblings to avoid having to query
1190 Quartz for this information.
1191 * XplatUICarbon.cs: Implement a delegate based system to pass
1192 information to System.Drawing. Implement Async methods. Remove
1193 the hack for the resize thumb and imlpement a transparent Grow Box.
1194 Rework the messaging system to proplery create window's and messages,
1197 2007-12-06 Andreia Gaita <avidigal@novell.com>
1199 * X11Keyboard.cs: Use Xutf8LookupString to support international
1200 characters under alternate codepages. Patch from #340878
1202 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1204 * ListView.cs: When doing layout computations, set position in the
1205 ListView instances (we cache the position just as .Net does).
1206 * ListViewItem.cs: New internal setter method for Position. Also set
1207 position field as also available in 1.1, since we are going to use it
1208 now in the common case.
1210 2007-12-06 Andreia Gaita <avidigal@novell.com>
1212 * Control.cs: When removing controls, get the actual container
1213 to notify about active control changes. Fixes 341314.
1215 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1217 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
1219 2007-12-05 Andreia Gaita <avidigal@novell.com>
1221 * Control.cs: When updating the zorder, ignore windows that are not
1222 mapped. Fixes #342509
1224 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226 * ListViewItem.cs: Actually implement serialization on this class.
1228 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
1230 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
1231 LinkCollection. Spaces to tabs, and removed extra tabs.
1233 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1235 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
1236 tests to fail (hopefully).
1238 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1240 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
1241 the image margin so custom renderers can correctly place it.
1243 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1245 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
1246 so custom renderers can correctly place it.
1248 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
1250 * Application.cs: Let WM_CHAR messages flow through to controls
1251 hosted in Strips. [Fixes bug #343972]
1253 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
1255 * ToolStripManager.cs: Guard against an NRE I ran into.
1257 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
1259 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
1260 a Link is manually added to the Links collection, we need to set
1261 its owner, so it can invalidate properly.
1264 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1266 * ListView.cs: When changing ListViewItem.Position (which calls
1267 ListView.ChangeItemLocation), invalidate not only the area
1268 corresponding to the main item, but also to the area occupied
1269 by the items being moved.
1271 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1273 * ListView.cs: When changing the position of a given item,
1274 don't use item bounds, but item areas (which includes the item spacing
1275 between them). Also, use first/last position if the requested
1276 position is outside bounds (as .Net does). Invalidate the previous and
1277 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
1278 in a specific position, instead of directly accessing Items collection
1279 (this is done to get the right item - remember an Item can have a
1280 different position in the grid than in the Items collection).
1282 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1284 * MessageBox.cs: Calculate text area instead of just top left, this rect
1285 area will be used in DrawString. Fixes bug #343364.
1287 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1289 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
1290 screen width. Partially fixes bug #343364.
1292 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
1294 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
1295 code inside recalculate, it makes code more simple.
1297 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
1299 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
1300 between update or add icon. Fixes bug #324344.
1302 2007-11-21 Andreia Gaita <avidigal@novell.com>
1304 * XPlatUIX11.cs: Do not treat tool windows as if they have no
1305 window manager, since that stretches the drawing area to include
1306 the window decorations, and they get hidden. Reverts r84444 and fixes
1307 #335849 and #342790 (mdi and pdn3 regression)
1309 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1311 * ListView.cs: When setting focused item, try to give focus to the
1312 previous one _only_ if the previous one remains valid.
1315 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
1317 * Application.cs: Revert r89650, as it broke a common case to fix
1318 an obscure case. Fixes bug #342606.
1320 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
1322 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
1324 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
1326 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
1327 alignment. [Fixes #324228]
1329 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
1331 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
1334 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
1336 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
1337 it prevent problems when empty captions. [Fixes #342141]
1339 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
1341 * Label.cs: Use Size instead of None. Fixes bug #342077.
1343 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1345 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
1347 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
1349 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
1350 but there isn't a MdiContainer.
1353 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
1355 * TextControl.cs: Don't recalculate document if the recalc_start and
1356 recalc_end hasn't changed.
1359 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
1361 * DataGridViewTextBoxCell.cs: Removed CWL.
1363 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
1367 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
1369 * TextControl.cs: Missed some code for bug 341534 to trigger a
1370 recalculation when the font changes.
1372 2007-11-16 Andreia Gaita <avidigal@novell.com>
1374 * Control.cs: When updating the zorder, check if the child to update is
1375 the same control that is set to always be on top (i.e., scrollbars), and
1376 just put it on top directly. Fixes BadMatch error on pdn3
1378 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1380 * ListView.cs: Throw the needed exceptions for FindNearestItem.
1382 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
1384 * Control.cs: Don't perform a new layout when a label changes its text,
1385 cause label handles its own autosizing.
1388 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1390 * ListView.cs: Implement 2.0 FindNearestItem methods.
1392 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1394 * ToolStripPanel.cs: Make Join at least add the control to the panel,
1395 even if the rest of what Join does isn't supported. Add some more
1396 support for vertical toolbars.
1397 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
1398 [Fixes the application breaking parts of bug #341998]
1400 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1402 * ToolStripItem.cs: When determining if we have a check/image margin,
1403 we need to look at ShowCheckMargin as well as ShowImageMargin.
1405 2007-11-15 Geoff Norton <gnorton@novell.com>
1407 * XplatUIOSX.cs: Rename to...
1408 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
1409 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
1411 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
1413 * KeysConverter.cs: The default values should be an array of Keys, not
1414 strings. Also, the array has more values for 2.0.
1417 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1419 * Application.cs: Change ExecutablePath to use
1420 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
1423 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1425 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
1426 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
1427 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
1428 be ignored. Create a new GetLineEnding that can specify which types of
1429 line endings to look for. On Insert, only create new lines for \n and \r\n.
1432 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
1434 * TextBoxBase.cs: As we loop through each line changing the font, tell
1435 the document that the line needs to be recalculated. Fixes bug #341534.
1437 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
1438 [Another round of refactoring]
1439 * Line.cs: Add DeleteCharacters.
1440 * LineTag.cs: Add Delete.
1441 * TextBoxBase.cs: Update to use new methods.
1442 * TextControl.cs: Refactor the Delete* methods.
1444 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
1446 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
1447 the patch. [Fixes #324856]
1449 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452 * ListViewItem.cs: Add an initial implementation of
1453 2.0 ListViewItem.Position getter.
1455 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1457 * ListView.cs: Add a reordered_items_indices array, to allow us
1458 to have a different sorting than that of Items (the sorting in Items
1459 could not match the actual sorting in screen). This is needed to
1460 implement a pair of 2.0 features.
1461 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
1462 actual position in the ListView grid, since it could have a position
1463 different than its Index (position in ListViewItemCollection).
1465 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
1467 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
1468 not draw partial lines.
1469 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
1470 LineLimit flag from the base is preserved.
1471 Fixes the windows part of bug #338965.
1473 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
1475 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
1476 so that it can be canceled in KeyPress.
1479 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1481 * ListView.cs: In ItemControl, reset mouse-handling related
1482 fields even if we dont' have items (we still should reset them when
1483 we had items but then called Items.Clear). Partially based in a patch
1487 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
1489 * Application.cs: In ProductVersion first try AssemblyFileVersion
1490 before falling back to assembly version. Fixes bug #339787.
1492 2007-11-08 Andreia Gaita <avidigal@novell.com>
1494 * HtmlElement.cs: Implement InnerText setter.
1495 * WebBrowserBase.cs: Implement Navigated event support.
1496 Add flag to track when the browser "document" is ready to be retrieved.
1497 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
1498 Make sure browser document is ready before retrieving it.
1499 Clean up cached objects (document) when moving to a new page through
1500 any of the navigation methods.
1501 Use the new Mono.WebBrowser.INavigation interface to control navigation.
1502 Implement OnNavigated event.
1504 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
1506 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
1507 DrawLinkLabel, this is handled by OnPaintBackground.
1508 Fixes bug #339565, part II.
1510 2007-11-07 Andreia Gaita <avidigal@novell.com>
1512 * Control.cs: Revert r88915. Selecting text on a textbox depends on
1513 getting a Select call on click, so this call needs to be here for now.
1516 2007-11-07 Geoff Norton <gnorton@novell.com>
1518 * OSXStructs.cs: Add the kEventClassApplication constants.
1519 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
1520 application is deactivated otherwise Menu overlays linger on top of
1521 other application windows.
1523 2007-11-07 Geoff Norton <gnorton@novell.com>
1525 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
1526 dont support cursors yet anyways. This allows Reflector to run.
1528 2007-11-07 Geoff Norton <gnorton@novell.com>
1530 * XplatUIOSX.cs: Implement DragSize.
1532 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1534 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
1535 ItemControl, request the focus, as .Net does. This is needed after
1536 Control does not request focus anymore when it receives a
1539 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
1541 * Label.cs: Make DrawImage internal so it can be called from Theme code.
1542 Remove the DrawImage call from OnPaint.
1543 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
1544 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
1545 but before we draw the text for DrawLabel and DrawLinkLabel.
1548 2007-11-05 Andreia Gaita <avidigal@novell.com>
1550 * Control.cs: Remove select call on click. Fixes #325809
1552 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1554 * ListViewItem.cs: Add 2.0 Position property getter.
1556 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1558 * ListView.cs: Add 2.0 BackgroundImageTiled property.
1559 Also, to make it work properly, change item's BackColor and
1560 BackgroundImageLayout as needed.
1561 * ThemeWin32Classic.cs: Don't fill any background rectangle
1562 in ListView.ItemControl when drawing items; just let the Control
1563 base implementation fill it.
1565 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1567 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
1568 as well as adding a custom 'dummy' Converter, as .net does.
1570 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572 * PropertyGridView.cs: When clicking drop-down button,
1573 select an index in the listbox only if our standard values collection
1574 has one or more items.
1576 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1578 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
1581 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
1583 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
1584 the value is not changed. This ensure a pushed button remains in that
1585 state when clicked again. When switching the value of PropertySort
1586 between Categorized and CategorizedAlphabetical, do not update the
1587 grid items and do not fire a PropertyChangedEvent. When clicking the
1588 sorting buttons, do not modify the PropertySort value when switching
1589 between Categorized and CategorizedAlphabetical but only update the
1592 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
1594 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
1596 * PropertyGrid.cs: Also put Categorized button in pushed state when
1597 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
1598 for help description label.
1600 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1602 * ListView.cs: When calculating the biggest item for a given column,
1603 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
1606 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
1608 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
1609 value for PropertySort on 1.0 profile. PropertySortChanged event
1610 should only be fired on 2.0 profile. Fixed NullReferenceException
1611 in UpdateSortLayout when PropertyGrid contains no items.
1613 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
1615 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
1618 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1620 * ListViewItem.cs: Implement 2.0 IndentCount property.
1622 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1624 * X11Dnd.cs: When sending status in a dnd operation, compare current
1625 effect with the 'allowed' field instead of 'drag_data.Allowed', since
1626 the later is only created when a Winforms application is both the
1627 source and the target, but not when we are the target only.
1628 Fixes part of #324251.
1630 2007-11-01 Geoff Norton <gnorton@novell.com>
1632 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
1634 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
1635 children out of the drawing view on mac.
1636 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
1637 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
1639 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
1641 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
1642 on the non-hosted-control part of it shouldn't do anything.
1643 Fixes part of bug #327498.
1645 2007-11-01 Andreia Gaita <avidigal@novell.com>
1647 * WebBrowserBase.cs: revert previous change, resize can be called anytime
1649 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
1651 * Application.cs: When a toolstrip has the keyboard input loop, let messages
1652 it does not use flow through to controls that are hosted in menus.
1653 Same with mouse clicks.
1654 * Form.cs: Don't close all menus on click if the click is on a
1655 control hosted in a menu.
1656 Fixes part of bug #327498, and part of bug #325969.
1658 2007-10-31 Andreia Gaita <avidigal@novell.com>
1660 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
1662 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
1664 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
1665 Addresses an issue raised in bug #336218.
1667 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
1669 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
1670 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
1672 2007-10-30 Andreia Gaita <avidigal@novell.com>
1674 * ContainerControl.cs: Check if the active control is a
1675 child of a removed control and update active_control accordingly.
1678 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1680 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
1681 or the MaxDate. Fixed bug #337693.
1683 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1685 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
1686 after calling SetWindowLong for a form, to force an immediate NC refresh.
1687 Fixes first part of bug #325150.
1689 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1691 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
1692 simple. Fixes the last part of bug #322668.
1694 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
1696 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
1697 needs to be TopMost as well, or else the MessageBox is under the form.
1698 Patch by George fixes bug #325300.
1700 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1702 * X11Dnd.cs: When starting a new drag operation, reset the static
1703 'dropped' field to false (previously the implementation didn't reset
1704 it and got confused after the first drag).
1707 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1709 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
1710 items instead of re-creating them all. For this purpose we now cache
1711 both CategoryGridEntry items and the GridEntries for the main object's
1713 * GridItem.cs: Make SetParent method abstract.
1714 * GridEntry.cs: Override the SetParent method (already there, but now
1718 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1720 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
1721 depending on its depth (as .Net does). Update the needed values in
1722 MouseDown handler. Also draw the plus/minus rect after the label,
1723 so we don't draw on top of it.
1725 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
1727 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
1728 processed by forms or controls when menu is active. [Fixes #333548]
1730 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1732 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
1733 parent doesn't have focus. This was causing ToolStripTextBoxes to take
1734 focus on mouse over.
1736 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1738 * TextControl.cs: Code cleaning, simplifying.
1740 2007-10-24 Geoff Norton <gnorton@novell.com>
1742 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
1743 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
1745 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
1747 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
1748 the cap is maxvalue, not actually 0. [Fixes bug #336218]
1750 2007-10-24 Andreia Gaita <avidigal@novell.com>
1752 * SendKeys.cs: apply jpobst's patch to bug #332409
1754 2007-10-23 Andreia Gaita <avidigal@novell.com>
1756 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
1757 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
1760 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1762 * PropertyGridView.cs: If a property has an UIEditor available,
1763 make the drop-down/editor button available only if the property
1766 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1768 * PropertyGridView.cs: Don't make the grid item textbox
1769 editable when a drop-down control is available, but
1770 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
1771 true. The same bur the color of the grid item value's label.
1773 2007-10-22 Geoff Norton <gnorton@novell.com>
1775 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
1776 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
1777 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
1778 driver. Padd the bottom of all real windows so the resize thumb doesn't
1779 obscure scroll/status bars.
1781 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
1783 * WindowsFormsSection.cs: Implement.
1785 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
1787 * MdiClient.cs: Maximize new active mdi child when a maximized child is
1788 closed see #325434 patch.
1790 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
1792 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
1795 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1797 * PropertyGridView.cs: When showing the textbox for a grid item,
1798 have two local variables to store the read-only and non-editable
1799 status of a grid item (we were previously using just one variable
1800 to do this, when actually they are slightly different).
1801 Fixes part of #325023.
1803 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1805 * PropertyGridView.cs: When showing a drop-down list, try to get the
1806 values using TypeConverter.ConvertTo (to convert to a string). Fixes
1809 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1811 * PropertyGrid.cs: When updating a property and populating sub grid
1812 items, remove the previous ones, and invalidate the specific area.
1813 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
1814 area behind a grid item.
1815 * GridItemCollection.cs: Add an internal Clear method, to allow us to
1816 clean the items if needed (specially for controls implementing
1817 ICustomTypeDescriptor and returning a variable number of properties).
1820 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
1822 * TextControl.cs: Clean up and document the Insert function.
1824 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1826 * TextControl.cs: Make sure we know our start point for updating the view
1827 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
1830 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1832 * ListView: Couple of corcompare fixes.
1834 2007-10-17 Geoff Norton <gnorton@novell.com>
1836 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
1837 the title caption of real window.
1839 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1841 * ErrorProvider.cs: Add the error provider's internal window to a
1842 containercontrol when the parent changes. [Fixes bug #329714]
1844 2007-10-17 Geoff Norton <gnorton@novell.com>
1846 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
1847 When we make a new window; restore the old active window - fixes dialogs.
1849 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1851 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
1852 when modifying a property, and if found then invalidate as
1854 Fixes part of #324865.
1856 2007-10-17 Geoff Norton <gnorton@novell.com>
1858 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
1859 highly experimental. Fixed coordinate translation. Fixed window locations.
1860 Initial support for clipping. Implemented NC areas and menus. Support for
1861 launching from command line from Will Johansson (wjohansson@atacomm.com).
1862 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
1863 wjohansson@atacomm.com)
1864 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
1865 Hwnds now track the existence of all of their children for Mac clipping.
1866 * XplatUI.cs: Re-enabled the native driver on the Mac.
1868 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
1870 * Line.cs: Move the InsertString function to here.
1871 * TextControl.cs: Cleanup some duplicate code, move some InsertString
1872 functionality to Line.
1874 2007-10-17 Geoff Norton <gnorton@novell.com>
1876 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
1878 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
1880 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
1881 always setting value to true.
1882 * Form.cs: When changing AcceptButton, notify new and original button.
1884 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
1886 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
1887 a custom control that implements IButtonControl instead of an actual
1888 button. [Fixes bug #334244]
1890 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
1892 * Form.cs: Change SelectActiveControl to internal, we need to call it in
1895 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
1896 active control when activate a new mdi window.
1900 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
1902 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
1906 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1908 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
1909 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
1910 so we always recalculate the whole document instead of just the new part.
1913 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1915 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
1916 when the mouse was to the left of the first character in the line.
1918 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
1920 * TextBox.cs, TextBoxBase.cs: When setting the document's password
1921 character, use the property instead of the variable so that the
1922 UseSystemPasswordChar property is taken into account.
1925 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927 * FolderBrowserDialog.cs: When a node is right clicked and the "New
1928 folder" contex menu appears, actually add the new folder to it, even
1929 if the node is not currently selected. Still use SelectedNode in case
1930 there wasn't found a node under the pointer.
1933 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1935 * ListViewItem.cs: When retrieving the focused state, the index check
1936 should be done only when ListView is in virtualmode, as it is an
1937 expensive check for normal mode.
1939 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1941 * ListViewItem.cs: Make the focus state information be stored
1942 in the ListView, not in the items. This is done to match the MS
1943 behaviour for items that are not yet part of a ListView control;
1944 besides that, since just one item can be focused at the same time,
1945 we save a little space in our items.
1946 Fixes part of #331643.
1948 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1950 * ComboBox.cs: When focus is lost, deselect the text. When setting
1951 text of control, select all text. Do not hide selection when control
1952 does not have focus. Fixes bug #333663.
1954 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1956 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
1957 instead of ArgumentException when SelectionLength is set to negative
1958 value. Added same check to SelectionStart. Code formatting.
1960 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1962 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
1963 or SelectionStart. Code formatting.
1965 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1967 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
1968 indicating that there was not a previous drag-and-drop operation going
1970 Fixes part of #325071.
1972 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1974 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
1975 AllowedEffect, don't let the drop operation happen.
1978 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1980 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
1982 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1984 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
1987 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
1989 * Line.cs: Add a method that finds the tag that contains an x-coord.
1990 * LineTag.cs: Add a method that finds the character at an x-coord using
1991 a binary search, the old way was a linear search.
1992 * TextControl.cs: Change FindCursor to use the above new methods.
1994 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1996 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
1997 value different than AllowedEffect). This should be possible to
1998 indicate that dragging is not possible in some control/area.
2000 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
2002 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
2003 descent internally when font changes instead of outside code being responsible
2005 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
2006 instead of accessing internal variables.
2008 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
2010 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
2011 remove special treatment for ArrangeIcons since it is already arranged.
2013 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
2015 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
2016 the Win32 backend uses Color.
2017 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2018 Refactor to store a Color instead of a Brush for Color.
2020 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
2022 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
2023 away. I didn't realize I needed this when I refactored these earlier.
2025 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
2027 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
2028 store a Color structure and use the ResPool for back color instead of
2029 holding onto brushes.
2031 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
2033 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
2036 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
2038 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
2039 to recalculate its size. Fixes a part of bug #331052.
2041 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
2043 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
2044 button. Fixes a part of bug #331052.
2046 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
2048 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
2050 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
2054 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
2056 * TextBoxTextRenderer.cs: Don't make this a static class, as static
2057 doesn't exist in 1.1. (Thanks jb!)
2059 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
2061 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
2062 class to allow us to use different backends on different platforms.
2063 Linux uses the current [Draw|Measure]String backend. Windows uses
2064 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
2065 of GDI+. This leads to better looking text and more accurate measurements
2066 on Windows, fixing many of the reported issues.
2067 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
2069 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071 * FolderBrowserDialog.cs: When running on Windows,
2072 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
2073 since we must match both "C:" and "C:\" forms. A little hackish, but
2077 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2079 * ListView.cs: When calling EndEdit (after editing an item),
2080 create a new instance of LabelEditEventArgs to keep clean the fields
2081 in case we get a new call to BeginEdit; also do Application.DoEvents
2082 to have focus in synch. This is a fix similar to TreeView's #325244.
2084 2007-10-07 Andreia Gaita <avidigal@novell.com>
2086 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
2087 * WebBrowserBase.cs: Added dialog support, calling the
2088 WebBrowserDialogs classes for each specific dialog type.
2090 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2092 * ListView.cs: When the last item is focused and is removed,
2093 move the focus to the previous item (in Items order). This is what MS
2097 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2099 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
2100 instead of the opposite (RemoveAt call Remove). This is a better
2101 approach since we don't need to to a pair of traversals when using
2104 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2106 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
2107 check that the node actually has nodes, and if not, move to the
2108 parent node instead.
2111 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2113 * TreeView.cs: Move the previous change to the general case (to
2114 call Application.DoEvents in cases where the method was called by
2117 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2119 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
2120 call Application.DoEvents. This is neccessary when we get a call to
2121 BeginEdit from an AfterLabelEdit handler, because the focus always
2122 goes to the TreeView, even if we try to give it to our
2123 LabelEditTextBox. The call do Application.DoEvents seems to
2124 synchronize the focus, basically.
2127 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2129 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
2130 should be false. This also removes some nasty recursive paths. Fixes
2133 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
2135 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
2136 state to normal. Also resize window when cascading. Fixes #325433.
2138 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
2140 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
2141 DefaultForeColor, as drawing empty colored lines isn't very useful.
2142 [Fixes the not drawn lines part of bug #324358]
2144 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
2146 * TextControl.cs: Move Line and LineTag classes into separate files to
2147 make things easier to find.
2148 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
2149 * RichTextBox.cs: Capitalize LineTag.Length property access.
2150 - This is purely an organizational/formatting change, no logic changed. -
2152 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2154 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
2157 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2159 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
2162 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2164 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
2165 prevent calling of OnBackColorChanged. Fixes #325321.
2167 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
2169 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
2170 because control can be disabled because owner is disabled.
2172 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
2174 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
2175 string.Empty, test failed from previous change.
2177 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
2179 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
2180 is null, not String.Empty. See bug #323038.
2182 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
2184 * TextControl.cs: Change the margins to match MS a little better.
2185 Still not perfect for X11 due to some DrawString differences, but
2186 is still an improvement over the old stuff.
2187 Partially fixes #324467.
2189 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2191 * FolderBrowserDialog.cs: When using MyComputer as
2192 RootFolder, let absolute paths be considered as valid ones. Also, use
2193 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
2194 for Windows compatibility.
2195 Partially fixes #325247.
2197 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2199 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
2200 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
2201 method, since it causes the dialog to not select folders directly
2202 under the root path (when setting SelectedPath property).
2204 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2206 * TreeNode.cs: When calling Expand/Collapse and need to call
2207 ExpandBelow/CollapseBelow respectively, take into account
2208 partially visible nodes (previously Expanding/Collapsing
2209 a partially visible node in the bottom was not updating its +- sign).
2211 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2213 * TreeView.cs: When calling Expand on a TreeNode, and we need to
2214 expand nodes below (ExpandBelow), scroll the entire Viewport
2215 area if the node is above it and not visible (instead of scrolling
2216 the area from node's Bottom, which applies only when the node is
2220 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2222 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
2223 node in the bottom area (as .Net does). This is done to preserve the
2224 scroll position when ExpandAll is called before handle is created for
2225 the 1.1 profile (bottom area, as opposed to top area in 2.0).
2228 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2230 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
2231 bottom area if we are in fact not using the vertical scroll bar.
2234 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
2236 * Control.cs: Comment out a double buffering optimization that doesn't
2237 take into account invalidates created in OnPaint, causing the control
2238 to never be redrawn. It would take quite a bit of work to work around
2239 this, but I left it commented with an explanation for later possible
2243 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
2245 * Control.cs: Ask parent to perform a layout if control is AutoSize and
2247 * RadioButton.cs: Implement GetPreferredSizeCore.
2250 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
2252 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
2255 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
2257 * Application.cs: Move the sync context stuff to Run instead of RunLoop
2258 so that it doesn't get uninstalled on modal forms.
2259 * Control.cs: Install a sync context when a control is created.
2260 * WindowsFormsSyncronizationContext.cs: Create a private static control
2261 to invoke on. This is easier than trying to find a created control we
2265 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
2267 * Application.cs: Install a WindowsFormsSynchronizationContext in the
2268 run loop, and uninstall it when done.
2269 * WindowsFormsSynchronizationContext.cs: Implement.
2270 [Fixes the common case in bug #327608]
2272 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
2274 * DataGridViewCellCollection.cs: Added argument checks for indexers.
2275 Use case-insensitive lookup of column name in indexer. Code
2278 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2280 * TreeNode.cs: When collapsing or expanding a node, check whether its
2281 change will affect the visible area (we were previously doing a
2282 IsVisible check, but that check is not enough since children nodes
2283 could be still visible). Fixes part of #325266.
2285 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
2287 * TreeView.cs: Always select the first node when the TreeView gets
2288 focus if there is no currently selected node.
2291 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
2293 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
2294 node being selected is null.
2295 [Patch from Yves Bastide fixes bug #326858]
2297 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2299 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
2300 whether all the parent nodes are expanded.
2301 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
2302 call RecalculateVisibleOrder if all previous nodes are expanded.
2303 Before that we were doing a IsVisible check, but sometimes the node
2304 is not in the visible area, but _should_already be ready, because of
2305 all previous nodes are expanded. Fixes #325259.
2307 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2309 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
2310 portion of the item is clicked.
2312 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2314 * TextControl.cs: Do not tell the system to move the cursor if the
2315 textbox isn't focused. Fixes part of bug #322668.
2317 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2319 * ComboBox.cs: When there are no items, do not show the dropdown if
2320 the down arrow is clicked. Fixes part of bug #322668.
2322 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
2324 * ToolStripComboBox.cs: Manually set the size of this control in the
2325 constructor, as it doesn't seem to be the same as DefaultSize.
2326 Fixes a failing monobuild test.
2328 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
2330 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
2331 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
2333 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
2335 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
2336 Desktop. This lets it work for people who have moved their desktops
2337 from the default location on windows. For people who have not, both
2338 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
2340 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2342 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
2343 but when the base constructor sets this, the control is null. Set it
2344 again in the constructor. Fixes a failing monobuild test.
2346 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2348 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
2350 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
2353 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2355 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
2356 will handle it themselves.
2357 * ToolStripItem.cs: When deciding what the text of a tooltip should
2358 be, use the Text property instead of the text field.
2359 * ToolStripTextBox.cs: Handle tooltips.
2360 [Fixes bugs #325417 and #325973]
2362 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2364 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
2365 left click. Fixes the easy part of bug #325969.
2367 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
2369 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
2370 bug #325406, but set a minimum for StatusStrip to 22 to keep
2371 bug #325390 fixed. I think this minimum would have been figured
2372 up automatically if the grip was actually a ToolStripItem, but it
2375 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2377 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
2378 as this is apparently the actual value used by .Net. Also apply
2379 ItemPadding in Details view only, and decrease the general width padding,
2380 to have only the needed. This should fix #324340 in Windows too.
2382 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2384 * ListViewItem.cs: Don't Invalidate item if parent is inside
2385 a BeginUpdate/EndUpdate block. This prevents to have differences
2386 between the ListView and items state, as well as avoid some exceptions
2388 * ListView.cs: Make 'updating' field internal.
2390 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2392 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
2393 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
2394 size if appropriate.
2395 Fixes reopened bug #325414.
2397 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2399 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
2400 * ToolStripItem.cs: Invalidate before and after our new autosize when
2402 Fixes reopened bug #325390.
2404 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2406 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
2407 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
2410 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
2412 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
2414 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2416 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
2417 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
2420 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
2422 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
2423 item to select when the ToolStrip is selected.
2424 * ToolStripControlHost: Realign the control when the bounds or visibility
2426 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
2427 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
2429 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
2430 base.OnPaint. Was causing text not to be drawn.
2432 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
2434 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
2436 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2438 * TreeView.cs: When creating the label edit text box,
2439 set is initially to Visible = false. This is done to
2440 prevent a confusion in the layout which makes it to lose
2441 focus when shown the first time. Fixes part of #82592.
2443 2007-09-13 Andreia Gaita <avidigal@novell.com>
2445 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2447 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2449 * ToolStrip.cs: Take Margin into account when calculating preferred
2450 size. Also, allow preferred size to get smaller than the explicit
2452 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
2453 First step towards fixing bug #82747.
2455 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2457 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
2458 full row select background over the plus/minus glyph. Also, turn
2459 off the focus rectangle for full row select since MS doesn't seem
2460 to ever paint it. [Fixes bug #81839]
2462 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2464 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
2465 This was causing keyboard opened dropdowns to lose focus.
2468 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2470 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
2471 ClientRectangle instead. [Fixes bug #82838]
2473 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
2475 * SplitContainer.cs: We can't reset Visible on every layout because
2476 someone may have set Visible = false explicitly on a SplitterPanel.
2477 Make sure when we switch orientation the SplitterDistance does not
2478 change. Fixes two failing tests.
2480 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2482 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
2483 TextRenderer, since the latter is only available in 2.0.
2485 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
2487 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
2488 * SplitContainer.cs: Implement FixedPanel layouting.
2490 2007-09-12 Andreia Gaita <avidigal@novell.com>
2492 * WebBrowserBase.cs: setup shutdown routine
2494 2007-09-12 Andreia Gaita <avidigal@novell.com>
2496 * Application.cs: Let keyboard events that are targetted
2497 to non-mwf windows hosted inside mwf (as in, webbrowser),
2498 propagate properly. Fixes keyboard handling on the webbrowser.
2500 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2502 * ListView.cs: When handling MouseUp event and we are
2503 highligting a node with the mouse right button, don't trigger
2504 Before/AfterSelecting event, since we are not actually selecting
2507 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2509 * TreeView.cs: When editing a node, modify the edit text box
2510 depending on the text length (as you are typing), like MS does.
2512 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
2514 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
2515 Override GetPreferredSizeCore to perform calculations. Remove custom
2516 autosize logic. [Fixes bug #82739]
2518 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
2520 * TextBoxBase.cs: Modified should default to false.
2522 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2524 * Control.cs: Update the anchoring distances even when layout is supspended.
2525 Patch provided by George fixes bug #82805.
2527 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2529 * Control.cs: Provide a setter for ExplicitHeight.
2530 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
2531 remove the hacks in here for requested_height.
2534 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2536 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
2537 Maximum to lower that its current Value caused an ArgumentException by setting
2538 the Value to the new Maximum.
2540 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2542 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
2543 handle moves to the closest tick when it is being dragged.
2546 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
2548 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
2549 can't let them count as real items when calculating where to merge in the
2550 user's items. [Fixed bug #82786]
2552 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2554 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
2555 who want to add a menu item directly onto a toolstrip.
2556 [Fixes bug #82775, part II]
2558 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2560 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
2561 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
2562 don't set it to available.
2563 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
2564 [Fixes bug #82727, part II]
2566 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2568 * StatusStrip.cs: Change item placement to None if not visible.
2569 * ToolStripItem.cs: Invalidate when InternalVisible changes.
2570 These should have been committed to fix 82723, but I missed them.
2572 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
2574 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
2575 Click, and that it is only called once.
2576 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
2577 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
2581 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2583 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
2585 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
2586 instead of 8, just like above. Partially fixes #82734.
2588 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2590 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
2593 * ListView.cs: Remove extra space between rows in Details view (match
2595 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
2598 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
2600 * Application.cs: Modified ProductVersion to return value of
2601 AssemblyInformationVersion if available, and fallback to assembly
2602 version. Fixes bug #82746. Code formatting.
2603 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
2606 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2608 * Control.cs: When updating ZOrder for a child control,
2609 take into account the implicit ones (we need it in our controls
2610 using them). Fixes #82642.
2612 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
2614 * ToolStripItem.cs: Add support for animated images.
2617 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
2619 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
2620 visible. [Fixes bug #82727]
2622 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2624 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
2625 so we repaint using the new size. [Fixes bug #82723]
2627 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2629 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
2630 option. [Fixes bug #81779]
2632 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2634 * TreeView.cs: Override HandleClick because the StandardClick style is
2635 set to false. According to MSDN (and testing), the click events should
2636 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
2638 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2640 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
2641 the border will disappear. Fixes reopened #82653.
2643 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2645 * Control.cs: If the control is autosize, and its preferred size changes
2646 when it lays out its children, tell its parent so it can be re-layed out.
2647 Fixing some of the fallout from r85433.
2649 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2651 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
2652 and CheckBox share some code.
2654 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2656 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
2657 the TrackBar, not every mouse move. [Fixed bug #82718]
2659 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2661 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
2662 under 2.0 rendering. [Fixes bug #82657]
2664 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2666 * TreeView.cs: If we found a TreeNode to display a context menu, but
2667 it doesn't have one to show, let the TreeView display its menu
2668 instead. [Fixes bug #82680]
2670 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
2672 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
2673 OnPaintInternal instead. Give the internal TextBox a Border property
2674 so it can draw itself more correctly. [Fixes bug #82653]
2676 2007-09-06 Zoltan Varga <vargaz@gmail.com>
2678 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2680 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2682 * ComboBox.cs: Adjust combobox button state to reflect current state when
2683 back to enabled = true. Fixes first issue of #82654.
2685 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2687 * Control.cs: Fix last patch regression, prevent forms to update zorder when
2688 setting visible property.
2690 2007-09-05 Everaldo Canuto <everaldo@simios.org>
2692 * Control.cs: Update zorder after control creation in SetVisibleCore, it
2693 fix zorder for controls initially created as non visible. Fixes #82667.
2695 2007-09-04 Everaldo Canuto <everaldo@simios.org>
2697 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
2698 mimic win32 look. Fixes #82656.
2700 2007-09-01 Zoltan Varga <vargaz@gmail.com>
2702 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
2703 Stubs for new net 3.5 classes.
2705 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707 * ListViewItem.cs: In ListViewItemCollection operations calculate
2708 Layout for owner as well as invalidate it. Fixes part of #82642.
2710 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
2712 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
2713 when returning Enabled. [Fixes bug #82651]
2715 2007-08-30 Everaldo Canuto <everaldo@simios.org>
2717 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2719 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2721 * ListView.cs: Put item padding info in a single place
2722 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
2724 * ThemeWin32Classic.cs:
2725 * Theme.cs: Likewise.
2727 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2729 * ListView.cs: When a ListViewSubItem instance is invalidated,
2730 invoke Invalidate on parent ListViewItem, not parent ListView.
2733 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2735 * ListView.cs, ListViewItem.cs: corcompare stuffs.
2737 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2739 * BindingMemberInfo.cs: Implement == and != operators.
2741 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
2743 * HtmlElementEventArgs.cs: Implement properties.
2745 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2747 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2749 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2751 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
2752 Add (string,string,string) to implement the imagekey. It turns out, we
2753 use the requested imagekey whereas .Net does not. So I broke ours to match
2756 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2758 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2760 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
2762 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2764 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
2766 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
2767 up-to-date. Fixes bug #82618.
2769 2007-08-29 Everaldo Canuto <everaldo@simios.org>
2771 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
2772 reflect document changes. Fixes #82367.
2774 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2776 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
2777 as well as add new ones. This should make work the BackgroundImage
2778 property for ListView again.
2780 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2782 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
2783 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
2784 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2786 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2788 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
2791 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2793 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
2794 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2796 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
2798 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
2799 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2801 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
2803 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
2805 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
2807 * GridEntry.cs: Implement GetService.
2809 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
2811 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
2812 for label editting, make sure we focus back on the TreeView.
2815 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2817 * ListView.cs: Add some 2.0 overrides.
2819 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2821 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
2822 because getter dont returns right value before handle creation. Thanks
2823 to George. Fixes #82569.
2825 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2827 * Theme.cs: Revert last patch, it causes error under win32.
2829 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
2831 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
2832 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
2833 logical Desktop rather than the physical file system location. Fixes #82603.
2835 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
2837 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
2838 for the patch. Fixes #82568.
2840 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2842 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
2845 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2847 * ListViewInsertionMark.cs: New stubbed class.
2849 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2851 * FolderBrowserDialog.cs: When adding folder, immediately create the
2852 directory with temporary name and rename the directory when editing
2853 finishes. This matches MS. Ensure the node for the new folder is
2854 selected and LabelEdit is disabled, when editing is either finished
2857 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2859 * TreeView.cs: When editing label of node, ensure node is visible.
2861 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
2863 * PropertyGridView.cs: Set the value only if it has changed.
2865 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2867 * ListView.cs: Some more code refactoring to add support sorting
2868 with groups (now for Details view). Remove unused code also.
2870 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2872 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
2873 Not a big fan of reacting immediately to a field in an EventArg, but that's
2874 the way it's done. (This is part of the previous commit that got left out.)
2876 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
2878 * FolderBrowserDialog.cs: Removed need for separate description field.
2879 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
2880 has focus when dialog box is displayed again, regardless of what
2881 button was pressed the previous time. Set RootFolder and SelectedPath
2882 each time dialog box is displayed. This ensures the treeview is
2883 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
2884 when it does not have focus. Added support for more special folders.
2886 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2888 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
2889 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
2890 it resets the edit_args.
2891 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
2894 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2896 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
2897 button to match MS. Provide more meaningful exception message for
2898 invalid RootFolder value. Use zero-length string when SelectedPath
2899 is set to null. Allow non-rooted paths in SelectedPath, but ignore
2900 them in FolderBrowserTreeView. Allow folders to be created in
2901 RootFolder. Fixes bug #82576.
2903 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2905 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
2906 since we need to take into account the group headers and the margin
2908 * ListViewGroup.cs: Add a rows field to store the number of rows per
2911 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2913 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
2914 Anyways, let's just follow the lead.
2916 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2918 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
2919 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
2920 controls in GetPreferredSizeCore.
2921 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
2924 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
2926 * PrintDialog.cs: Need to instantiate the form variable here too.
2928 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2930 * ListView.cs: Do some reorganization to support sorting in groups,
2931 by doing the layout sequentially in ListView.Items. Also add support
2932 for the Default Group, which should be available for items with no
2934 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
2935 for storing layout info also.
2936 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
2937 collection, as well as providing internal members to do a traversal
2938 including the default group (needed when doing layout/drawing).
2939 * ThemeWin32Classic.cs: When drawing group headers use internal
2940 ListViewGroupCollection members to take into account the default
2943 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
2945 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
2947 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2949 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
2950 been created. If handle is created, we want arror keys. If we are editing
2951 a node, we want things like enter, esc, home, end, page up, page down.
2952 Allows Esc to work for FolderBrowserDialog.
2954 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2956 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
2957 they close when ESC is pressed. Thanks Andy!
2959 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2961 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
2962 This way we can tell if this is a CommonDialog provided with mono, or one
2963 that is being implemented outside by a developer. If it is an external one,
2964 the developer is responsible for showing their own form. We were showing
2965 our blank form after the developer showed his.
2966 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
2967 PageSetupDialog.cs: Instantiate form variable in our constructor.
2970 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2972 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
2973 and always return true. [Fixes bug #81616]
2975 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
2977 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
2978 TextBox. [Fixes bug #82549]
2980 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2982 * FileDialog.cs: When Save/Open is clicked and no filename is selected
2983 or entered then do not close the dialog. Fixes bug #82539. Removed
2986 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
2988 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
2989 code to this method. It is calling every time filter changes. This method
2990 will help to fix the bug #80887.
2992 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
2994 * CheckBox.cs: Implement AutoSize calculation.
2996 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
2998 * CheckBox.cs: Use new 2.0 rendering for 2.0.
2999 * Theme.cs: Method declarations for 2.0 rendering path.
3000 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
3002 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3004 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
3006 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008 * ListViewGroupCollection.cs: Implement AddRange the right way, to
3009 only call Redraw on the parent one time.
3011 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3013 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
3014 GetClipboardContent.
3015 * DataGridViewCell.cs: Implemented GetClipboardContent,
3016 GetEditedFormattedValue, GetFormattedValue.
3017 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
3019 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
3021 * TableLayoutStyleCollection.cs: corcompare fix.
3023 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3025 * DataObject.cs: Implemented retrieval of convertible / not convertible
3028 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
3030 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
3031 ourselves. This ensures the entire old bounds are repainted, in case our new
3032 size is smaller. [Fixes bug #82518]
3034 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
3036 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
3037 flag to make fast handle of mouse events, without this the mouse move is
3038 handled in some manner, whether it is a mouse move or not. Fixes #81588.
3040 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3042 * ListView.cs: When doing layout calculations don't use a ref
3043 param to keep the current item; instead use its Index value (this
3044 is specially important when doing the layout with Groups
3045 and Items being sparse). Also don't take into account items added to
3046 the Group but not yet added to the main ListView.Items collection.
3048 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3050 * ListViewGroupCollection.cs: Forgot to mimic an issue
3051 in the indexer (don't assign the ListView owner for new values).
3053 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3055 * ListViewGroupCollection.cs: Make the string indexer use
3056 the int based indexer to re-use code, instead of duplicate the code.
3057 Also Redraw as needed and take into account null values.
3059 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
3061 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
3064 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
3066 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
3067 when other buttons are clicked or navigated to.
3069 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3071 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
3072 it's XplatUIX11 that attaches them.
3074 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3076 * DataGridView.cs: If a column has been added, recreate the editing row.
3079 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3081 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
3082 of the tag to draw. Makes disappearing text show up again.
3084 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3086 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
3087 Contents. Fixes #82487.
3089 2007-08-19 Andreia Gaita <avidigal@novell.com>
3091 * Added HtmlElement.cs, HtmlElementCollection.cs,
3092 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
3094 2007-08-19 Andreia Gaita <avidigal@novell.com>
3096 * BindingSource.cs: Implement this, dispose and getenumerator.
3097 * DataGridViewRowCollection.cs: Move the InvalidOperationException
3098 out of AddInternal, throw it only on public Add calls. The
3099 UsingWebBrowser sample was blowing up with this when setting the
3100 DataSource after adding DataBindings, so it's likely that .net
3101 only throws this exception when Add is called directly.
3103 * ToolStripControlHost.cs: Return the hosted control's text
3104 property, and not the ToolStripItem one (it would always return
3107 * HtmlDocument.cs: Implement GetElementById and All
3108 * WebBrowser.cs: Remove exception on set_DocumentStream.
3110 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3112 * Form.cs: Fix the max and min value for opacity (0~1).
3114 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3117 * DataGridTableStyle.cs: Default header font is now null, on getter it
3118 returns datagrid font when is null. On setter permits null.
3121 - When ResetHeaderFont set header font to null.
3122 - On EndInit set grid_style.DataGrid.
3124 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3126 * TabControl.cs: Fix regression in default padding x.
3128 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3130 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
3132 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
3134 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
3135 not 2. Fixes #82229.
3137 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3139 * TabControl.cs: Fix tab size when image height is less than text height.
3140 Partially fixes #81837.
3142 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3144 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
3145 "alt + tab". It works only for Win32, for X11 theres no way to remove window
3146 from taskbar and keep it on "alt_tab". Fixes #81722.
3148 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3150 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
3151 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
3152 Fixes #80877 and #79418.
3154 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3156 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
3157 between position and one of the screen borders. Fixes #82349.
3159 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3161 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
3162 the MessageBox in the taskbar. Fixes #82457.
3164 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
3166 * MessageBox.cs: Fix form size when icon is set and text height is bigger
3167 than icon. Fixes #82468.
3169 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3171 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
3172 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
3173 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
3174 Refactored HandleNCCalcSize somewhat to avoid code duplication.
3175 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
3176 FormBorderStyle to decide if we're calculating a new size from the
3177 client size or not. CreateParams: Don't fake tool windows, only the X11
3178 backend manages toolwindows manually.
3180 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3182 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
3183 ObjectDisposedException.
3185 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3187 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
3188 in OnLoad should not have any effect. [Fixes bug #82470]
3190 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3192 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
3193 paint for controls that create their own ToolTipWindow instead of
3194 going through ToolTip.
3196 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3198 * ToolTip.cs: Make Hide internal instead of public to match MS API.
3200 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3202 * ListViewGroupCollection.cs: Use generic List instead of an
3203 ArrayList, since this collection is 2.0 only.
3205 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
3207 * ToolTip.cs (Hide): Made public to make the build work (should
3208 this not be public?).
3210 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3212 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
3214 * ToolTip.cs: Add an internal Visible property to facilitate transition.
3216 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
3218 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
3219 PopupEventHandler.cs: Make these internal for 1.1.
3220 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
3221 use ToolTipWindow internals.
3222 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
3223 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
3225 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3227 * X11Dnd.cs: Add a null check.
3229 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3231 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
3232 nothing else succeeds. Fixes #82453.
3234 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3236 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
3237 rectangle if we're painting to another window than the one the paint
3238 message was generated on. Simplify the code somewhat, which makes
3239 PaintEventEnd also simpler.
3241 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3243 * Control.cs: When changing parent of a form, let the form decide whether
3244 XplatUI.SetParent should be called or not.
3245 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
3246 recreating the handle. If the new parent's handle isn't created, don't
3247 recreate our handle, just destroy it. CreateParams: Check if the
3248 parent's handle is created before fetching it.
3250 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3252 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
3253 Update calls to PaintEventStart/End to take a Message argument.
3254 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
3255 take a Message argument.
3256 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
3257 Message argument, and handle the case where we don't paint to the window
3258 for which the paint message was generated.
3260 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3262 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
3263 Marshal.GetLastWin32Error. Plug nasty memory leak in
3264 PaintEventStart/End, we were creating a DC we weren't releasing.
3266 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268 * ListView.cs: Add Groups support in Details view. Also have a small
3269 method to do the layout of the group header. Don't use a separate
3270 method to do the groups calculation in Icons view, since our methods
3271 are now a little simpler.
3272 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
3274 * ThemeWin32Classic.cs: Likewise.
3276 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
3278 * Application.cs: Add FilterMessage method and rework our message loop
3281 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
3283 * Application.cs: Add some methods and stub a few methods that are
3284 pretty much never used.
3286 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
3288 * TreeNode.cs: Add some serialization methods.
3290 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292 * ListView.cs: In ListViewItemCollection have a
3293 'is_main_collection' field to not modify ListViewItem.ListView
3294 when using it as ListViewGroup.Items (and not ListView.Items)
3295 and also don't modify selection state (.Net behaviour).
3296 Instead, set group for items contained in a ListViewGroup.Items collection.
3297 * ListViewItem.cs: Simplify some code in Group setter.
3298 * ListViewGroup.cs: use the new .ctor to pass the current instance
3299 to the ItemsCollection.
3300 * ListViewGroup.cs: Set the ListView property for ListViewGroup
3301 instances when adding/removing. Also make Remove use RemoveAt, which
3302 should perform better.
3304 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3306 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
3307 that crept into the 1.1 profile.
3309 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3311 * ToolBarButton.cs: Implement ImageKey.
3313 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
3315 * ToolBar.cs: Implement ScaleControl/ScaleCore.
3317 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3319 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
3320 created, it might have gotten destroyed since we last checked. Fixes
3323 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
3325 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
3326 tooltip will hide when mouse is moved off the control.
3329 2007-08-11 Andreia Gaita <avidigal@novell.com>
3331 * WebBrowserBase.cs, WebBrowser.cs: add implementation
3332 using Mono.Mozilla for loading and navigating webcontrol
3334 The initial implementation was done on
3335 /trunk/mozembed/tests/browser , and copied here.
3337 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
3339 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
3340 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
3342 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
3344 * DataGridView.cs: Add support for an editing row. Fixes #82226.
3345 RowTemplateFull: throw an exception if a column doesn't have a template.
3346 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
3347 add the row just before it.
3348 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
3350 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
3351 DataGridView field to be able to reach the grid's editing row.
3353 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3355 * ToolTip.cs: If the control's handle hasn't been created when it has a
3356 tooltip set on it, don't check to see if we need to show the tooltip. This
3357 check was causing the control's handle to be created.
3360 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3362 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
3364 Handle Not Created -1 0
3368 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
3370 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
3373 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
3375 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
3376 * ToolTip.cs: Implement some properties and owner draw.
3378 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3380 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
3381 show them again, since setting visibility causes a paint, causing an
3382 endless loop (instead use a temporary and set it all when it's known if
3383 they should be shown or not). Fixes #79265.
3385 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3387 * DataGridView.cs: Only do a full column/row selection if a header was
3388 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
3389 isn't pressed, deselect everything before selecting something.
3391 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3393 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
3394 behaviour according to bug #81075 - they are returned in the order they
3395 are selected. Fix HitTest to check if the point is within any of the
3396 headers. Allow for row/column selection when in ColumnHeader or
3397 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
3398 the row and column to call when their selected state changes, and
3399 updated selected_[rows|columns] whenever SetSelected* is called.
3400 * DataGridViewBand.cs: Initialize isRow correctly. Call
3401 SetSelected[Row|Column]CoreInternal when the selected state changes, and
3402 add a SelectedInternal to avoid StackOverflows.
3403 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
3404 ReadOnly no matter what.
3405 * DataGridViewSelectedColumnCollection.cs,
3406 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
3407 the items in reverse order (just as MS does...)
3409 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
3411 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
3412 itself, not part of a mnemonic. [Fixes bug #82378]
3414 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3416 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
3417 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
3418 the DGV, the column, the row, or the cell itself is readonly.
3420 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
3422 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
3424 * FileDialog.cs: Same.
3425 * TextRendered.cs: Same.
3426 * FolderBrowserDialog.cs: Same.
3427 * TextBoxBase.cs: Same.
3428 * Application.cs: Same.
3430 * ThemeClearLooks.cs: Same.
3432 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
3434 * XplatUI.cs: Added RunningOnUnix property to be used by controls
3435 instead of duplicating these checks everywhere.
3436 * FileDialog.cs: Use case-insensitive comparison for populating the
3437 DirComboBox when not running on unix. Fixes bug #82385.
3438 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
3441 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3443 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
3444 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
3445 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
3446 cell and column selection with ctrl and shift pressed. Call the correct
3447 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
3448 the corresponding virtual method (PaintBackground to paint background,
3450 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
3451 either the column, row or the cell itself is selected.
3452 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
3454 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
3455 here. When the row is selected, don't select all cells. Each cell now
3456 queries the row to see if the row is selected.
3458 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3460 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
3463 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3465 * ListView.cs: In ListViewItemsCollection check that owner is
3466 not null before trying to access it (this happens quite often
3467 using Groups). Also don't duplicate calls by calling CollectionChanged
3470 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3472 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
3473 when we are dismissed to clear keyboard mnemonics.
3474 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
3475 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
3476 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
3477 was activated by keyboard or the OS tells us to always draw them.
3478 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
3479 [Fixes bugs #82376, #82377]
3481 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3483 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
3484 shot at having it because Alt was pressed.
3485 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
3486 the first real menu item.
3487 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
3488 a mnemonic if Text is null.
3491 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3493 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
3494 search do check whether the item is already contained in the
3495 collection or not; instead check if the owner of the item is the same
3496 as ours. Also, remove a redundant check in the same method.
3498 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
3500 * Control.cs: Allow the clip region to be set back to null.
3501 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
3502 [Fixes button still showing up in bug #82370 when Show Through is turned off]
3504 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
3506 * GridEntry.cs: Add a null check.
3507 * PropertyGrid.cs: When checking for existing grid entries, ignore category
3508 entries. Fixes #82297.
3510 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
3512 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
3515 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
3517 * ListBox.cs: Implement ScaleControl.
3519 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3521 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
3523 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
3524 parent has a menu strip. Fixes #81689.
3526 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3528 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
3529 moments, so apply some fuzzy logic to determine if the mouse is still
3530 inside a control or not. Fixes #82288 (for the third time).
3532 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3534 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
3535 Don't create the child if it has been disposed already (may happen if
3536 the user closes the form the Load event).
3538 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3540 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
3543 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3545 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
3546 might call us after we've been destroyed, in which case our own private
3547 parent field is null. Fixes #82326.
3549 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
3551 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
3552 check for setting the dropdown's owner.
3554 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
3556 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
3557 before removing system menu items.
3559 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
3561 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
3563 * MdiControlStrip.cs: Added. These are the menu items used in mdi
3565 * ToolStrip.cs: Add a null check to mnemonics.
3566 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
3568 [Fixes most of bug #81689]
3570 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3572 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
3574 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3576 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
3578 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3580 * DataGridViewCell.cs: EditType: returns
3581 DataGridViewTextBoxEditingControl always.
3583 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
3585 * TextRenderer.cs: Remove the LineLimit string format flag from the
3586 DrawString fallback method so that things like buttons that aren't
3587 tall enough to draw a full line will still draw part of the text.
3588 [Fixes part of bug #82272]
3590 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3592 * DataGridView.cs: Implemented AutoResizeColumn(s).
3593 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
3594 according to the Alignment.
3595 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
3596 Implement alignment and padding when painting.
3597 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
3599 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
3601 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
3604 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3606 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
3609 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3611 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
3612 hide GetPreferredSize from public API.
3613 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
3614 * ToolStripItem.cs: Stub out drag and drop methods and events.
3615 * ToolStripManager.cs: Stub out Save/LoadSettings.
3616 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
3617 * ToolStripPanel.cs: Fix corcompare error.
3618 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
3619 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
3620 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
3622 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
3624 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
3625 bounds height instead of PreferredHeight. Puts things back the way
3626 they were for height while still fixing the width. Fixes broken unit
3629 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3631 * Binding.cs: Implement 2.0 constructors and add a null check.
3633 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3635 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
3636 and fix row index (off by one).
3638 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3640 * PropertyGridView.cs: Remove debug output.
3642 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3644 * Control.cs: We need to reset the is_created flags when the handle is
3645 destroyed. Fixes #82187.
3646 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
3647 client coordinates if the window doesn't have a parent.
3648 Win32GetParent returns the parent or the owner, and for top-level
3649 windows with no parent (but with an owner) we were calculating the
3650 location from the location of the owner.
3651 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
3652 form has been disposed.
3653 * MdiClient.cs: Add a null-check.
3655 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
3657 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
3658 actually do auto-sizing. Override the internal GetPreferredSizeCore
3659 so we can provide an implementation that returns the current width
3660 and preferred height. Allows anchor = right to work with TextBox 2.0.
3663 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3665 * ListView.cs: Add support for navigating items in Groups mode, by
3666 creating a big matrix containing all rows and cols of all groups. When
3667 are in other mode than Details, pressing Up should have a similar
3668 behaviour as that one of Down (moving to the next available column if
3669 current one doesn't have an item in the requested row). Also, don't
3670 proceed to use groups if ShowGroups is false.
3671 * ListViewGroup.cs: Add an internal int field to store the starting
3672 row of the group (used by the big matrix used for navigating the
3674 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
3677 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
3679 * ToolStripDropDown.cs: When we do Show, start with the
3680 DefaultDropDownDirection, but if our popup menu is going to off-screen,
3681 modify the direction to keep it on screen. [Fixes bug #82210]
3683 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
3685 * FileDialog.cs: Accept any FilterIndex value, and store it
3686 unmodified. When FilterIndex is less than 1, or greater than number
3687 of filters, then default to first filter. Only add filter extension to
3688 file if user did not specifiy an extension. When type of dialog is
3689 OpenFileDialog and DefaultExt is set, then only use filter extension
3690 if: CheckFileExists is true and no file wih the default extension
3691 exists, or CheckFileExists is false, and user specified file does not
3692 exist. When CheckFileExists is true, then add first extension of
3693 selected filter that matches existing file. Perform checks for
3694 existing file, overwrite and create after extension has been added to
3695 file name. When CheckFileExists is true and type is SaveFileDialog,
3696 then only consider first filter extension if DefaultExt is set.
3697 When CheckFileExists is true, then ignore DefaultExt if file with that
3698 extension does not exist. Also perform check for existing file when
3699 type is SaveFileDialog. Changed some field to constants.
3701 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3703 * ListView.cs: Take into account the region used by header
3704 control when doing the vertical scroll (this way we invalidate
3705 the precise area, and don't get any dirty one).
3707 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
3709 * FileDialog.cs: Check for valid filterIndex on button open/save.
3712 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3714 * ListView.cs: Update some layout calculations in details view
3715 and clean the code in a pair of assignations.
3717 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3719 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
3720 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
3721 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
3722 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
3724 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3726 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
3727 performance of thread-safe Graphic methods. (Thanks rolf!)
3729 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3731 * ListView.cs: When doing the layout calculations, don't calculate
3732 scroll bars before handle is created. This is unnecessary and also
3733 calculating them before handle creation item causes a number of random
3734 bugs (which begin to appear after Chris' big patch for handle creation
3737 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
3739 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
3740 for things that don't have a Graphics object. Currently, things just use
3741 the static Hwnd.bmp_g which is not thread safe.
3743 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3745 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
3746 dialog. Fixes #82187.
3748 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3750 * DataGridViewElement.cs: Initialize state.
3751 * DataGridView.cs: Forward a few Mouse events to cells. Add
3752 GetRowInternal and GetCellInternal that doesn't unshare rows.
3753 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
3754 don't use the index, but look it up. Add
3755 DataGridViewControlCollection.RemoveInternal to remove controls
3756 that Remove won't remove (scrollbars, edit control).
3757 * DataGridViewColumn.cs: Initialize State correctly.
3758 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
3759 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
3761 * DataGridViewRowCollection.cs: Implemented shared rows.
3762 * DataGridViewRow.cs: Throw exceptions as MS do.
3763 * DataGridViewCell.cs: A few properties are implemented by a
3764 Get<Property> method, so move implementation there and remove the
3765 NIEX in the method. Add a bunch of OnXInternal that DataGridView
3766 calls when necessary.
3767 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
3768 complicates matters.
3769 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
3772 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3774 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
3775 the children controls. Instead, we will just set up the proper docking for the
3776 children controls so we don't have to worry about it. [Fixes bug #82188]
3778 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3780 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
3781 canceling and correct Before/AfterLabelEdit properties as layed out in bug
3782 81847. [Fixes bug #81847]
3784 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
3786 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
3787 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
3788 an explicit size based on the design-time size of the text. Since our fonts
3789 may not match this explicit size, we tend to cut off the ends of people's labels.
3791 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
3793 * Menu.cs: Add some missing methods to MenuItemCollection.
3795 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3797 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
3798 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
3799 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
3800 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
3801 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
3802 * DataGridViewElement.cs: State defaults to Visible.
3803 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
3804 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
3806 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3808 * Control.cs: Minor 1.1 corcompare fix.
3810 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3812 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
3813 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
3815 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3817 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
3818 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
3819 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
3820 DataGridViewSelectedColumnCollection.cs,
3821 DataGridViewSelectedRowCollection.cs: Corcompare work.
3823 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3825 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
3826 it is autoset by VS2005 designer and the effect is barely noticeable.
3828 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
3830 * TreeView.cs: Implement HitTest.
3832 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3834 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
3835 manually adding and removing the control from the Controls
3837 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
3838 EditingControlInternal property that tracks the editing control.
3839 Always keeping the scrollbars in the Controls collection, as MS
3840 testing confirms is the right behaviour.
3842 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3844 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
3845 according to MSDN and new test.
3847 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3849 * TreeNode.cs: Implement ToolTipText.
3850 * TreeView.cs: Implement tooltips, NodeMouse* events.
3852 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3854 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
3856 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3858 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
3859 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
3861 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
3863 * Control.cs, Form.cs, ContainerControl.cs,
3864 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
3865 for misc properties.
3867 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
3869 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
3870 * TreeView.cs: Implement StateImageList.
3872 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3874 * Form.cs: Don't check if the current form is the active form before
3875 activating it. Fixes #81904.
3877 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3879 * Form.cs: Don't check if the current form is the active form before
3880 activating it. Fixes #81904.
3882 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3884 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
3886 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3888 * Form.cs: Don't try to position the form after loading if the form was
3889 disposed. Fixes #81969.
3891 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3893 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
3894 properties. Had to change ToolBar into ToolStrip, which required a
3897 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3899 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
3900 resized, fixes part of #79829 (vertical lines in toolbar).
3901 PropertyGrid: Refactored Populate* to something that's easier to
3902 follow at least for me, as well as splitting it up into several new
3903 methods, required to update only subitems when something has
3904 changed by a popup editor or listbox. Don't use events to check
3905 when any values are changed, since the events are unreliable (we're
3906 changing the objects the events are registered with, and if the
3907 event handling requires the objects to be immutable (objects stored
3908 in hashtables for instance), the events will never be raised).
3909 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
3910 everytime we change a value, since events are unreliable.
3911 DropDownButtonClicked: For the same reason don't compare objects to
3912 check if it has changed or not, it would require all objects to
3913 derive Equals. Fix dialog location on windows, MS is doing weird
3914 things when creating parented forms.
3915 * GridEntry.cs: Add a SelectedObject setter.
3917 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
3919 * TreeNode.cs: Add some corcompare attributes.
3920 * TreeNodeCollection.cs: Implement 2.0 stuffs.
3921 * TreeView.cs: Implement some 2.0 stuffs.
3923 2007-07-18 Andreia Gaita <avidigal@novell.com>
3925 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
3928 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
3930 * ListBox.cs: Implement custom tab offsets.
3932 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3934 * ToolStripContentPanel.cs: Support System renderer.
3935 * ToolStripControlHost.cs: Set RightToLeft to default to No.
3937 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3939 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
3941 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3943 * CheckBox.cs: Chain TextAlign to base implementation instead of
3944 maintaining another one.
3946 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3948 * ButtonBase.cs: Fix an incorrect string constant.
3950 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3952 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
3953 of creating one for measuring strings.
3955 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
3957 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
3958 Implement MaxItemSize.
3960 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
3962 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
3963 for DeviceContext. Instead, use the static one available in Hwnd.
3964 Informal tests show this saves about 500k on formtest.exe.
3966 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
3968 * ContainerControl.cs: Implement 2.0 AutoScaling.
3970 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
3972 * ComboBox.cs: Work around bug #82120 (bug in mcs).
3974 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
3976 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
3977 Darken the focus color.
3979 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
3981 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
3983 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
3984 X, Y instead of a rect for drawing text.
3985 - For ControlPaint.DrawCheckBox, center the check a little better when the
3986 checkbox is odd width. When drawing a flat checkbox, use a white background
3987 when state != inactive.
3988 [Fixes bugs #82097, 82100]
3990 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
3992 * ListControl.cs: When changing CurrencyManager, disconnect event
3993 handlers from previous one. Fixes bug #81771. Code formatting.
3995 2007-07-15 Andreia Gaita <avidigal@novell.com>
3997 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
3998 full preview invalidation from layout invalidation, and only invalidate
3999 the layout when setting zoom or other properties. Invalidation should
4000 always be done even when resetting properties with the same values as
4001 what is there. Fixes #81744 and #79830.
4003 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4005 * ListView.cs: Implement initial support for Groups. Split some of the
4006 LayoutIcons code to render a partial list of the items (needed by
4007 items contained in ListViewGroup instances). Let the
4008 ListViewItemsCollection.ListView property be modifiable (needed when
4010 * ListViewGroup.cs: Use a Bounds property rather than a Location
4011 one. Also invalidate the bounds when they get changed.
4012 * ThemeWin32Classic.cs: When drawing items, also draw the group header
4013 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
4016 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4018 * ListView.cs: When space gets pressed and CheckBoxes is true,
4019 don't invoke the Begin and EndUpdate methods. We are generating
4020 a redraw of the entire control without need to do so.
4022 2007-07-13 William Holmes <billholmes54@gmail.com>
4024 * Control.cs: Changing logic in FindFlatForward and
4025 FindFlatBackward to handle multiple Controls with
4027 This fixes bug 81687.
4029 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
4031 * OSFeature.cs: Enable IsPresent.
4033 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4035 * Control.cs: Don't do anything in WmShowWindow if the control has been
4036 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
4037 control is created, put on a form, the control is disposed (the
4038 form is never shown), and then we get a MapNotify, triggering a
4040 * Form.cs: Exclude the current form when sending Deactivate to all
4042 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
4043 there was a race condition because assigning the handle raises
4044 events, we can get more messages, therefore trying to assign the
4045 handle again, which would fail if any of those event handlers
4046 closed/disposed the control.
4048 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4050 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
4052 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
4054 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
4055 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
4057 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
4059 * DateTimePicker.cs: If there's no part format specifier, return an
4062 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
4064 * FlatButtonAppearance.cs: Throw NotSupportedException for a
4065 Transparent BorderColor.
4067 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
4069 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
4070 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
4071 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
4072 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
4073 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
4074 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
4075 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
4077 * X11Structs.cs: Remove warnings, add ToString implementations.
4079 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4081 * XplatUIX11.cs: Translate min/max size according to the actual min/max
4082 size, and not the current size. Fixes #81798.
4084 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4086 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
4087 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
4088 to the control yet).
4090 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4092 * PropertyGridTextBox.cs: Add a method that sends any forwarded
4093 mousedowns to the contained textbox.
4094 * X11Structs.cs: More ToString implementation.
4095 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
4098 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4100 * PropertyGridView.cs: Add a null-check, fixes a few tests.
4102 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
4104 * TableLayoutPanelCellPosition.cs: TypeConverter.
4106 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4110 * PropertyGridTextBox.cs: Propagate any color changes to all contained
4112 * PropertyGridView.cs: A few color fixes.
4114 2007-07-10 Jackson Harper <jackson@ximian.com>
4116 * TextControl.cs: Remove some old unused text formatting stuff.
4118 2007-07-10 Jackson Harper <jackson@ximian.com>
4120 * TreeView.cs: Update full row select invalidation to match the
4121 newer DrawSelection... method.
4122 - Make sure to invalidate the entire width when selecting a new
4123 node, if we have full row selection enabled.
4125 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4127 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
4128 display of properties again.
4130 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
4132 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
4133 to existing collections.
4135 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4137 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
4138 that changed between 1.1 and 2.0.
4140 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4142 * PowerStatus.cs: Added. This is just a data class, it is filled
4143 in by SystemInformation.
4145 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4147 * Message.cs: Add op_Equality and op_Inequality.
4149 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4151 * MenuStrip.cs: Finish corcompare work.
4153 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4155 * LinkArea.cs: Add op_Equality and op_Inequality.
4157 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4159 * Application.cs: Add MessageLoopCallback delegate.
4161 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4163 * ListBox.cs: First set of 2.0 stuffs.
4165 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
4167 * Control.cs: Make an internal Height property we can override
4168 without messing up the public API.
4169 * ListBox.cs: Override HeightInternal to always return the size
4170 the user set. [Fixes bug #80466]
4172 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
4174 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
4175 paint cell borders if we haven't calculated where they go yet.
4176 [Fixes bugs #82040 and #82041]
4178 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4180 * ListView.cs: In Details view, set the location of item_control
4181 in the (0,0) position (and the header_control is thus on the
4182 item_control). This way the Bounds of the Items are relative to the
4183 ListView control (before this, they had a Bounds value without the
4184 header_control offset, which wasn't matching .Net). Fixes #82004.
4186 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4188 * ListControl.cs: When DataSource is set to null, pass an empty
4189 array of object to SetItemsCore. This is done to clean the items
4190 in the ListContol children. Fixes #81788.
4192 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4194 * ListControl.cs: Add 2.0 stuffs.
4196 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4198 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
4199 Refresh is overkill for just about every repaint request.
4201 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4203 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
4204 so remove my custom Get method and fix the property getter.
4206 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4208 * Label.cs: DefaultMargin for 2.0.
4210 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4212 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
4213 reported issue where other controls with mnemonics would steal strokes
4214 from a selected ComboBox.
4216 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
4218 * ScrollOrientation.cs: Make internal for 1.1.
4219 * ScrollEventArgs.cs: Add 2.0 stuffs.
4221 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
4223 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4224 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
4225 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
4227 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4229 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
4231 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4233 * ListView.cs: Implement the so-incredibly broken 2.0
4234 VirtualItemsSelectionRangeChanged event.
4236 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4238 * ListView.cs: When enter is pressed and selection is non empty,
4239 an OnItemActivate event must be fired.
4241 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4243 * ListView.cs: Store the FocusedItem information as an
4244 int instead of a ListViewItem (needed by VirtualMode).
4245 Update the calls to SetFocusedItem to pass an index instead of
4247 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
4248 the Focused state from the owner ListView.
4250 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4252 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
4253 property. Also, invalidate previous focused item in the mentioned
4254 property (match .Net).
4256 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4258 * ListView.cs: Implement 2.0 FocusedItem property setter.
4260 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4262 * ListView.cs: Implement 2.0 TopItem property setter.
4264 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
4266 * StatusStrip.cs: The default renderer is System.
4267 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
4268 if the user specifies it.
4269 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
4270 if we are ManagerRenderMode.
4271 * ToolStripMenuItem.cs: Calculate our text color better.
4272 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
4273 from Professional to the base class based off working with the System renderer.
4274 * ToolStripSystemRenderer.cs: Added.
4276 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4278 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
4280 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
4282 * ToolTip.cs: Implement 2.0 Tag property.
4284 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4286 * ListView.cs: Implement 2.0 HitTest methods.
4288 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
4291 item is under the pointer or not (sugar). Also remove the TODO
4292 regarding to the cursor changes in OneClick activation.
4293 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
4294 the subitems use the parent's HotFont if UseItemStyleForSubItems is
4295 true; otherwise don't show the underline style.
4297 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4299 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
4300 the code to retrieve the item at position only one time. Also
4301 change cursor when Activation is ItemActivation.OneClick as well
4302 as invalidate the item if HotTracking is true (to show/hide the
4303 underline style). Add an internal HotItemIndex property to retrieve
4304 the current hot item's index.
4305 * ListViewItem.cs: Add an internal HotFont property to cache the
4306 font used when HotTracking is true and the pointer moves within the
4308 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
4309 HotFont depending on the hot state of the item.
4311 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4313 * ListView.cs: Implement 2.0 HotTracking property.
4315 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4317 * ToolStripControlHost.cs: If our hosted control never got created,
4318 don't try to dispose it. [Fixes bug #81909]
4320 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4322 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
4324 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
4326 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
4328 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4330 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
4332 * DrawListViewColumnHeaderEventArgs.cs:
4333 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
4334 using the DrawText () methods.
4336 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
4338 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
4339 background which got erased in my changes yesterday.
4341 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4343 * ListViewItem.cs: Actually set bounds for subitems in Details view
4345 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
4346 can invoke from the owner draw routines if we need it. Also, add
4347 support for Owner draw in Details view.
4349 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4351 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
4352 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
4353 ShowImageMargin setting, properly align text in a ToolStripLabel
4354 hosted on a ToolStripDropDown.
4356 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4358 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
4359 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
4361 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4363 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
4365 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
4367 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
4368 location to match ToolStripMenuItems.
4370 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4372 * DrawListViewColumnHeaderEventArgs.cs:
4373 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
4374 column headers in ListView.
4376 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
4378 * UserControl.cs: Implement AutoSize.
4380 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4382 * DrawListViewItemEventArgs.cs:
4384 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
4387 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
4389 * ToolStripDropDownItemAccessibleObject.cs: Added.
4390 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4391 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
4392 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
4393 ToolStripTextBox.cs: corcompare work.
4395 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
4397 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
4398 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
4399 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
4402 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
4404 * OSFeature.cs: Add IsPresent.
4405 * PrintPreviewControl.cs: Add RightToLeft.
4406 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
4407 * SplitterPanel.cs: Add AutoSizeMode.
4409 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4411 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
4412 * MdiClient.cs: Add 2.0 ScaleControl.
4413 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
4414 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
4416 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4418 * Form.cs: Implement some scaling methods, stub some RTL methods,
4421 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4423 * Control.cs: corcompare work.
4424 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
4426 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
4428 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
4429 ControlPaint 2.0 stuffs.
4431 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4433 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
4435 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4437 * UpDownBase.cs: Add 2.0 stuffs.
4439 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4441 * NumericUpDown.cs: Add 2.0 stuffs.
4443 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4445 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
4447 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4449 * ErrorProvider.cs: Implement 2.0 stuffs.
4451 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4453 * DomainUpDown.cs: Implement 2.0 stuffs.
4455 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4457 * CheckedListBox.cs: Fix RefreshItems signature.
4459 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
4461 * PictureBox.cs: Implement 2.0 stuffs.
4463 2007-06-12 Andreia Gaita <avidigal@novell.com>
4465 * TabControl.cs: Check if there are tabpages before checking
4466 the selected index - fix #81802 (font changes raise a ResizeTabs
4467 call on controls.add, which blew up nicely with no tabpages)
4469 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4472 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
4474 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4477 * ListViewItem.cs: In VirtualMode the selection information
4478 resides in the ListView, rather than in the Items. Also, throw
4479 InvalidOperationExceptions when VirtualMode is being used and
4480 CheckedItemCollection is accessed.
4482 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4484 * ComboBox.cs: Add ScaleControl.
4486 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4488 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
4490 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4492 * GroupBox.cs: Add 2.0 stuffs.
4494 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
4496 * Panel.cs: Add autosize properties/event.
4498 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
4501 - When we remove a control, remove it from the collection before performing the layout.
4502 - Setup an internal property for explicit_bounds.
4503 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
4504 - Perform a layout when we set a new AutoSizeMode.
4506 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
4508 * ScrollableControl.cs: Add 2.0 stuffs.
4510 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4512 * ScrollBar.cs: Add 2.0 stuffs.
4514 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4516 * Splitter.cs: Add 2.0 stuffs.
4518 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4520 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
4521 to have BindingContext simply use base implementation.
4523 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4525 * ColumnHeader.cs: corcompare fix.
4527 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4529 * Button.cs: corcompare fixes.
4530 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
4532 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
4534 * Button.cs: Override GetPreferredSizeCore.
4535 * ButtonBase.cs: PerformLayout after changing properties that can affect
4536 AutoSize. Simplify some mouse/keyboard code.
4537 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
4538 * MouseEventArgs.cs: Make Location internal for 1.1.
4539 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
4540 * Theme.cs: Add CalculateButtonAutoSize.
4541 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
4543 2007-06-05 Miguel de Icaza <miguel@novell.com>
4545 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
4547 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4549 * ListViewItem.cs: We can't cache Bounds in VirtualMode
4550 since we can get different item instances every time we retrieve it.
4552 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4554 * ListView.cs: Work around for #81602, since an unkown an pretty
4555 infrequent condition appears only in some systems (old linux boxes, it
4558 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4560 * Button.cs: Completely reformat and a little refactor to bring
4561 this closer to Mono circa 2007.
4563 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4565 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
4566 to be ButtonBase.Invalidate.
4568 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4570 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
4572 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
4574 * ButtonBase.cs: Completely reformat and a little refactor to bring
4575 this closer to Mono circa 2007.
4577 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
4579 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
4580 values for autosize. Fixes #80137.
4582 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4584 * Control.cs: Don't perform layout when AutoSize changes.
4585 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
4586 directly when autosizing, use SetBounds with BoundsSpecified.None.
4587 Fixes unit tests my last commit broke.
4589 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4591 * Control.cs: Perform layout when AutoSize changes.
4592 * Form.cs: Implement AutoSizing.
4594 2007-06-01 Chris Toshok <toshok@ximian.com>
4596 * DataGrid.cs: remove the XXX'ed check at the top of
4597 ProcessGridKey. fixes #80464.
4599 2007-06-01 Chris Toshok <toshok@ximian.com>
4601 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
4602 adding idempotent (add/remove in Edit()), and also make sure we
4603 don't add it until after we set the text, so it's not tripped in
4604 Edit(). Fixes unit test regression.
4606 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
4608 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
4609 change is user explicit, not when the layout engine moves stuff. Fixes
4610 anchoring to bottom and right. [Fixes bug #81790]
4612 2007-06-01 Andreia Gaita <avidigal@novell.com>
4614 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
4616 2007-06-01 Andreia Gaita <avidigal@novell.com>
4618 * ContainerControl.cs:
4619 Fire enter event for common ancestor if it is not a ContainerControl.
4620 Send focus to the active_control and not the 'value', the active
4621 control might have been changed in one of the events fired.
4622 Definitely fixes #80159.
4624 2007-06-01 Andreia Gaita <avidigal@novell.com>
4626 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
4628 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4630 * PropertyGrid.cs: Anchor the help description to the bottom of the
4631 help panel and refactor SelectGridItem into a
4632 SelectGridItemInternal that can be set to null (and update it to
4633 clear the help texts when it is set to null). Set root item to null
4634 when there's no SelectedObject. Fixes #80438.
4635 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
4636 when we're recalculating after a resize (only).
4638 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4640 * ListView.cs: Implement 2.0 RedrawItems method.
4642 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4644 * ListControl.cs: Disconnect PositionChanged and ItemChanged
4645 handlers from previous data manager when DataSource is set to
4648 2007-05-31 Jackson Harper <jackson@ximian.com>
4650 * TextBoxBase.cs: These seem to be the correct values.
4652 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
4654 * FileDialog.cs: When close dialog with ok set filterindex using combobox
4655 value. Fixes #81784.
4657 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
4659 * Control.cs: Implement 2.0 scaling methods.
4661 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4663 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
4664 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
4667 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4669 * ProgressBar.cs: Implemented missing 2.0 members.
4671 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4673 * Control.cs: Corcompare issues.
4674 * MessageBox.cs: Implemented missing 2.0 functions.
4676 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4678 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
4679 Implemented more 2.0 members.
4681 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4683 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
4684 null (strange, but it seems to happen when running unit tests).
4686 2007-05-30 Andreia Gaita <avidigal@novell.com>
4688 * ContainerControl.cs: Set active_control even earlier, before
4689 firing any events, and undo it if validation returns false.
4691 2007-05-30 Andreia Gaita <avidigal@novell.com>
4693 * ContainerControl.cs: Raise Validation and Enter/Leave events
4694 even if there is no Form and set active_control earlier, just
4695 before firing Enter events (toshok's patches). Fixes #80647.
4697 2007-05-30 Jackson Harper <jackson@ximian.com>
4699 * TextControl.cs: Redid the pageup/pagedown a little to simplify
4700 things and fix bug #81311.
4702 2007-05-30 Jackson Harper <jackson@ximian.com>
4704 * X11Dnd.cs: Now that we have our own event loop, we need to
4705 cancel when we get a mouseup but it won't be accepted.
4707 2007-05-30 Chris Toshok <toshok@ximian.com>
4709 * DataGrid.cs (set_CurrentCell): guard against negative
4712 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
4713 array index syntax instead of looping over the property names.
4715 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
4716 and set IsInEditOrNavigateMode to false there.
4718 2007-05-30 Jackson Harper <jackson@ximian.com>
4720 * TreeView.cs: Make sure we don't get a bad visible order when
4721 setting to the top node. Fixes some misc crashing in
4724 2007-05-30 Andreia Gaita <avidigal@novell.com>
4726 * UserControl.cs: Add 2.0 AutoSizeMode
4728 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4730 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
4732 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4734 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
4735 lines. Fixes #80285.
4737 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4739 * DataGridColumnStyle.cs: Add char trimming column header text format.
4741 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
4743 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
4746 2007-05-29 Jackson Harper <jackson@ximian.com>
4748 * TreeNode.cs: Fix off by one on calculating whether or not a node
4751 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
4753 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
4754 * ScrollableControl.cs: Force an UpdateDistances when we move the
4758 2007-05-29 Andreia Gaita <avidigal@novell.com>
4760 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
4761 update the page setup screen.
4763 2007-05-29 Andreia Gaita <avidigal@novell.com>
4765 * PageSetupDialog.cs: Fix landscape mode.
4767 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4769 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
4770 IconSizeHorizontalSpacing.
4772 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4774 * ListView.cs: The declaration of prev_tooltip_item should be inside
4775 a NET_2_0 conditional (avoid a warning).
4777 2007-05-28 Andreia Gaita <avidigal@novell.com>
4779 * PageSetupDialog.cs: Implement PrintPreview control to display
4780 the preview thumbnail. Change unit conversion to use
4781 PrinterUnitConvert methods.
4783 Note: there is a huge bug in ms.net where the default margins are
4784 interpreted as centimeters (?), when in fact they are set in inches. When
4785 loading the page setup dialog initially (ms.net), the default margins
4786 are set to 1 inch, and the dialog shows them with value 10, when in fact
4787 it should be 25 (properly converted). Our dialog doesn't have this bug.
4789 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
4791 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
4793 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4796 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
4799 2007-05-28 Andreia Gaita <avidigal@novell.com>
4801 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
4802 an IntPtr on csc (it builds fine on mcs, could it be a compiler
4803 bug?), convert the ptr to Int32 first.
4805 2007-05-28 Jackson Harper <jackson@ximian.com>
4807 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
4808 recieved, we will exit the dnd tracking loop.
4810 2007-05-28 Jackson Harper <jackson@ximian.com>
4812 * X11Dnd.cs: Keep tracking until the xdnd finished event is
4813 recieved. TODO: I should probably stick a timer on the dropped
4814 event, and finish the drag if the XDND Finished event never shows
4815 (because some apps don't seem to send it).
4817 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
4819 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
4822 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4824 * MonthCalendar.cs: Only mark the keypresses we actually handle as
4827 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4829 * MonthCalendar.cs: Set the size after initializing all the relevant
4830 variables. Fixes #81742.
4832 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4834 * KeyEventArgs.cs: Fix typo.
4836 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
4838 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
4839 to match MS. Fixed MinDate to only accept value less than or equal
4840 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
4841 Removed TODO's that are now verified by unit tests.
4843 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
4845 * TreeNodeCollection.cs: Minor corrections to exceptions to match
4848 2007-05-25 Jackson Harper <jackson@ximian.com>
4850 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
4851 it's own message loop.
4852 * XplatUIX11.cs: Remove some of the dnd hooks
4854 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
4856 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
4857 instead of MinimizedWindowSize.
4859 2007-05-25 Jackson Harper <jackson@ximian.com>
4861 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
4863 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4865 * KeyEventArgs.cs: Added SuppressKeyPress.
4866 * Control.cs: Added support for SuppressKeyPress.
4868 2007-05-24 Andreia Gaita <avidigal@novell.com>
4870 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
4871 problems with PieChart. suppress_validation should not be a counter,
4872 if there are several BeginInit calls, the first EndInit will
4873 activate validation. Fix exceptions thrown by set_Value.
4874 * UpDownBase.cs: ValidateText only if it's the user editing it.
4876 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4878 * ListControl.cs: FilterItemOnProperty should return the filtered
4879 item proeprty even if DataSource is null. The same applies for
4880 GetItemText. Fixes #80427.
4882 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4884 * Control.cs: If a control doesn't have a parent when it's Dock is
4885 set, but it has children, it needs to do a layout. Fixes some nested
4886 controls issues. [Fixes bug #81199]
4888 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4890 * ComboBox.cs: If there are few items in the drop down list, make it
4891 the exact size the items need, no bigger. Fixes #81612.
4893 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4895 * Application.cs: When we have captured the keyboard for a menu,
4896 check for mouse down events in case we need to close the menu.
4897 * Control.cs, Form.cs: Remove mouse down checks for menus.
4899 2007-05-24 Jackson Harper <jackson@ximian.com>
4901 * TextControl.cs: Handle tabs in non multiline mode a little
4904 2007-05-24 Jackson Harper <jackson@ximian.com>
4906 * TextControl.cs: We need to manually break apart tabbed text and
4907 move the tabs, since the system.drawing tabbing mechanism relies
4909 * TextBoxBase.cs: Move the caret properly when the user enters a
4912 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
4914 * ContainerControl.cs: Don't check CanSelect before calling
4916 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
4917 release a KeyboardActive on click if it's not ours.
4919 2007-05-23 Andreia Gaita <avidigal@novell.com>
4921 * ColumnHeader.cs: Add TypeConverter
4923 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4925 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
4927 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4929 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
4931 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4933 * LinkLabel.cs: Implement public Padding property.
4935 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4937 * LinkLabel.cs: Implement public FlatStyle.
4939 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
4941 * Control.cs: Apply patch from George to call parent.PerformLayout
4942 when Visible is changed. [Fixes bugs #81118, 81718]
4944 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4946 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
4948 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4950 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
4952 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
4954 * ContextMenu.cs: Implement Collapse.
4956 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4958 * ToolBarButton.cs: Implement Name.
4960 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
4962 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
4963 use current_item, it prevents some NRE. Fixes #81675.
4965 2007-05-22 Andreia Gaita <avidigal@novell.com>
4967 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
4968 without updating the text.
4970 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
4972 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
4973 without calling DeleteObject. [Should fix bug #81709]
4975 2007-05-22 Jackson Harper <jackson@ximian.com>
4977 * RichTextBox.cs: Set the line endings correctly, when flushing
4980 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
4982 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
4985 2007-05-22 Jackson Harper <jackson@ximian.com>
4987 * TreeView.cs: Setting top with a null node should set to the very
4990 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4992 * Form.cs: ShowDialog: destroy the handle when message loop is
4993 finished, matches MS behaviour. Refactor parts of WmClose into
4994 RaiseCloseEvents, that only raises events if they haven't already
4995 been raised. Fixes #81688 and #81521.
4996 * Application.cs: Don't call close on the form when exiting a modal
4997 loop, it will raise all the (Form)Closed/Closing events again if
4998 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
4999 which doesn'r raise any events it they have been raised before.
5001 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
5003 * Control.cs: Add OnPrint.
5004 * ToolStrip.cs: Add GetChildAtPoint.
5005 * ToolStripContainer.cs: Add OnRightToLeftChanged.
5006 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
5008 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
5010 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
5012 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5014 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
5015 isn't visible anymore. Fixes #81651.
5017 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5019 * Control.cs: WmShowWindow: Update children's z-order after setting
5020 their parent. SetParent may show the window, thereby corrupting
5021 z-order, since the window will be shown on top.
5022 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
5023 multiple (and redundant) WM_SHOWWINDOW messages.
5024 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
5025 event has already been raised.
5026 * Form.cs: Change is_changing_visible_state to a counter, since
5027 SetVisibleCore can be called recursively. CreateHandle: when
5028 creating mdi children, send (De)Activated events.
5029 * MdiClient.cs: Update use of is_changing_visible_state.
5030 * Application.cs: OnThreadException: Surround exception handling with
5031 try/finally to ensure we always reset the error-handling state
5034 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5036 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
5039 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5041 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
5042 SmallIcon views, now that we have a standarized horizontal spacing.
5044 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
5045 4, just like the other views (Match .Net).
5047 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
5049 * Control.cs: Delay calculating anchor distances until we actually layout.
5050 Always query the WM for the actual size and location it put us at instead of
5051 only when we send negative values.
5052 [Fixes bugs #81694, 81695]
5054 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5056 * Application.cs: Avoid a possible stack overflow when trying to exit
5059 2007-05-19 Marek Safar <marek.safar@gmail.com>
5061 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
5064 2007-05-19 Andreia Gaita <avidigal@novell.com>
5066 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
5067 * NumericUpDownAcceleration.cs,
5068 NumericUpDownAccelerationCollection.cs: Added 2.0
5071 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
5073 * RichTextBox.cs: Recalculate the document after the ScrollBars
5074 property is changed. Fixes bug #81681.
5076 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
5078 * DataObject.cs: Implement 2.0 methods.
5080 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5082 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
5083 in the center of the checkbox, not in the left-top corner.
5086 2007-05-18 Jackson Harper <jackson@ximian.com>
5088 * RichTextBox.cs: Recalculate the document after the scrollbars
5089 property is changed.
5090 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
5093 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
5095 * CreateParams.cs: Make HasWindowManager marginally faster.
5096 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
5097 into Hwnd so that other drivers can use it as well.
5098 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
5099 the default location from Hwnd. Fixes MDI client windows always
5100 showing up at (0,0) in Windows (Win32 won't set the default
5101 location since the window styles aren't correct).
5103 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
5105 * TreeView.cs: Modified DoubleBuffered to just use the base
5108 2007-05-18 Jackson Harper <jackson@ximian.com>
5110 * TreeView.cs: Set the top node to the last child node when
5112 - When we get focus, if there is no selected node, use the top
5115 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
5117 * KeysConverter.cs: Add CanConvertTo.
5118 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
5119 * LinkConverter.cs: Added.
5121 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5123 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
5124 it prevents error when file dont have write access. Fixes #81669 and #81667.
5126 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5128 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
5129 button text. Fixes #79640.
5131 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5133 * Control.cs: According to MSDN controls created in the designer theres
5134 keyboard accelerators visible by default. So included check for design
5135 in ShowKeyboardCuesInternal.
5137 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5139 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
5142 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
5144 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
5145 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
5147 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5149 * Control.cs: Finish implementation of UI State using WmChangeUIState
5150 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
5151 in some controls to check for show_keyboard_cues to draw accell keys "_".
5153 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5155 * ListBox.cs: When calculating the horizontal scrollbar
5156 in single column mode, don't use values less than 0 for
5157 Maximum. Fixes #81474.
5159 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5161 * ListBox.cs: Throw the some missing exceptions in
5162 ListBox.ObjectCollection methods.
5164 2007-05-17 Jackson Harper <jackson@ximian.com>
5166 * TextBoxBase.cs: Recalculate the document when the word wrap
5167 value has changed. This fixes 81488.
5169 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5171 * Clipboard.cs: Implement missing GetText overload.
5173 2007-05-17 Chris Toshok <toshok@ximian.com>
5175 * Control.cs (CheckDataBindings): remove the binding_context arg
5178 * CurrencyManager.cs (OnItemChanged): fix this now that
5179 BindingManagerBase is fixed. also remove the comment telling where
5180 the fix should go. We set transfering_data to true/false around
5181 the call to PushData to keep UpdateIsBinding from being called.
5182 (ListChangedHandler): remove the extra OnMetaDataChanged call for
5183 PropertyDescriptorAdded in the 1.1 case. The extra call is
5184 actually generated by System.Data generating 2 metadata changed
5185 events of its own per column add. The fix should go there. Add a
5186 comment to that affect in our test's Assert.Ignore.
5188 * BindingManagerBase.cs: Rework PullData and PushData slightly.
5189 we keep a boolean flag (transfering_data) that keeps us from
5190 calling UpdateIsBinding multiple times if we re-enter either of
5193 * ControlBindingsCollection.cs (AddCore): remove the
5194 binding_context arg to binding.Check.
5196 * Binding.cs (IsBinding): don't check if we're binding here, just
5197 return our cached value. we update it in UpdateIsBinding.
5198 (Check): don't take the binding_context arg, we'll just use our
5199 control's. Also, for some reason MS doesn't use the data member
5200 field when getting the bindingmanager for this binding. it just
5201 uses the datasource. Make this method callable multiple times,
5202 and only do the is_null_desc stuff if manager.Position != -1 (so
5203 we don't get an exception accessing manager.Current).
5204 (UpdateIsBinding): move the code from IsBinding here.
5205 (PositionChangedHandler): call Check here to we can initialize
5206 things that require a non- -1 position.
5208 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5210 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
5213 2007-05-17 Andreia Gaita <avidigal@novell.com>
5215 * TabControl.cs: Add 2.0 methods and events, including
5216 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
5217 * TabPage.cs: Add 2.0 methods
5219 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
5221 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
5222 keyboard_cues is properly handled by message method.
5224 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5226 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
5228 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
5230 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
5232 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
5235 - WmUpdateUIState added to handle state changes, it make call to
5236 OnChangeUICues event.
5237 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
5240 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
5242 * ImageKeyConverter.cs: Added.
5243 * TreeViewImageKeyConverter.cs: Added.
5245 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5247 * ToolTips.cs: Update Text if SetToolTip is called for a control
5248 already showing the tooltip, as well as restarting its timer; show
5249 tooltip if we are inside the control bounds by the time of calling
5250 SetToolTip. Inside ShowTooltip remove the check to not show the
5251 tooltip again for the active control (it is allowed by .Net to
5252 show the tooltip on the same control multiple times).
5254 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5256 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5258 2007-05-16 Andreia Gaita <avidigal@novell.com>
5260 * ContainerControl.cs: only process tab key if there are no
5261 modifier keys present, otherwise the control does the
5262 tab processing, if it needs to. Fixes #81622
5263 * TabControl.cs: Fixes calculation for which tab to select on
5266 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5268 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5270 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
5272 * Control.cs: Make IsInputCharInternal to allow controls to
5273 override it and still match MS API.
5274 * TextBoxBase.cs: Override IsInputCharInternal and always
5278 2007-05-15 Jackson Harper <jackson@ximian.com>
5280 * TextBox.cs: Disable some of the menu options when using a
5283 2007-05-15 Jackson Harper <jackson@ximian.com>
5287 * RichTextBox.cs: Some new 2.0 methods
5289 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
5291 * FileDialog.cs: On 1.0 profile, do not support multidotted
5294 2007-05-14 Jackson Harper <jackson@ximian.com>
5296 * TextBoxBase.cs: Implement some of the new 2.0 methods.
5297 * RichTextBox.cs: We need to override these methods on 2.0.
5298 * MaskedTextBox.cs: These are implemented now
5299 * TextControl.cs: This was off by one.
5301 2007-05-14 Jackson Harper <jackson@ximian.com>
5303 * TextControl.cs: Because the line endings are including in the
5304 text, we don't need to add them in anymore.
5306 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5308 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
5309 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
5311 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5313 * ToolBar.cs: Adjust size to default size when button theres no text and
5314 image, it fixes remaining issues from #81524.
5316 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5319 - When not flat call redraw to recalculate sizes on creare handle to match
5321 - Revert 77220 because it causes some regressions in toobar
5324 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
5326 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
5327 now actually enters a usable state.
5329 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5331 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
5332 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
5335 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5337 * ToolBar.cs: Save default_size on create handle to use later for buttons
5338 without text, needed to mimic win32 behavior.
5340 2007-05-11 Everaldo Canuto <everaldo@simios.org>
5342 * ToolBar.cs: Fix button layour to best fit width or height according to
5343 vertical or not. Fixes #81524.
5345 2007-05-10 Everaldo Canuto <everaldo@simios.org>
5347 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
5348 toolbar size info because different styles theres different sizes.
5351 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5353 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
5354 if we are using checkboxes, checked is true, and we have less
5355 than two images in StateImageList; for the 1.1 in the same scenario
5356 draw the first image if we have at least one image in StateImageList.
5357 Fixes part of #81191.
5359 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5361 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
5362 the owner's Items collection on merge.
5364 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5366 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
5367 * ToolStripItemCollection.cs: Lots of fixes to when events get called
5368 and parent/owner gets changed based on gert's unit tests.
5370 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5372 * MaskedTextBox.cs: Started implementing parts of it.
5374 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5376 * ListView.cs: When clicking the checkbox on the items
5377 take into account the double clicks even if we have only
5378 one image in StateImageList (only for 1.0/1.1). Also
5379 generate an extra change of checked state when we receive
5380 the second click on checkbox (match .Net behaviour).
5381 Fixes part of #81191.
5383 2007-05-10 Everaldo Canuto <everaldo@simios.org>
5385 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
5387 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
5389 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
5390 even if OnLoad is overriden and base.OnLoad is not called.
5393 2007-05-10 Andreia Gaita <avidigal@novell.com>
5395 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
5396 shame. (I blame my ever-persisting and annoying cold)
5398 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5400 * ListView.cs: Don't eat navigation keys. Let them flow through to
5401 KeyDown/KeyPress routines. [Fixes bug #81569]
5403 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5405 * ListView.cs: When handling keys for selecting the item based off
5406 keyboard input, do not consider keys pressed with Alt or Control. Also,
5407 correctly handle keys when the Shift key is down. [Fixes bug #81578]
5409 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5411 * Control.cs: When using UseWaitCursor, we have to store the requested
5412 Cursor to use when UseWaitCursor is turned off.
5414 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
5416 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
5418 * Application.cs: Use PreProcessControlMessage instead of
5420 * PreProcessControlMessage.cs: Make internal for 1.1.
5422 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5424 * Control.cs: Add InternalContains focus property, which hast the same
5425 functionality of ContainsFocus, but also including implicit controls.
5426 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
5427 since we need to know if the focus is contained in our implicit
5428 ItemControl when calculating Layout. Fixes part of #80888.
5430 2007-05-08 Everaldo Canuto <everaldo@simios.org>
5432 * ToolTip.cs: Remove center form string alignment as it must be align to
5435 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
5437 * ToolStripItemCollection.cs: Set the new item's parent and owner
5438 in Insert like we do in Add. [Fixes bug #81568]
5440 2007-05-08 Jackson Harper <jackson@ximian.com>
5442 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
5443 - Off by one error in SetTop
5444 - Disable DoubeBuffering
5446 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5448 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
5449 control as much as necessary in order to make it entirely visible,
5450 instead of centering the control in the container (matches MS
5451 behaviour). CalculateCanvasSize: we need to take the current scroll
5452 position into account when calculating the maximum canvas,
5453 otherwise the following scenario will fail: resize so that the
5454 scrollbars appear, use the scrollbars to scroll, resize again
5455 smaller, and now the canvas size is too small. Recalculate: when
5456 showing scrollbars make sure they start off at 0, and try to scroll
5457 the active control into view. Fixes #79540. HandleScrollBar: don't
5458 scroll anywhere if the scrollbar isn't visible.
5460 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5462 * ListView.cs: When focus changed, call Layout/Invalidate
5463 in the focused item to update the selected state (should show
5464 entire label when ListView is focused, and a part of it if is not).
5465 * ListViewItem.cs: When doing layout for LargeIcon, take into account
5466 for displaying the entire label not only the Focused state of the
5467 item, but also the Focused state of the ListView (match .Net
5470 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5472 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
5473 Implement UseWaitCursor.
5475 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5476 Applying contributed patch from Sergey Volk.
5478 * Clipboard.cs: Implement SetDataObject retry logic and new overload
5480 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
5482 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5484 * Control.cs: Implement DrawToBitmap.
5486 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5487 Applying contributed patch from Stefan Noack.
5489 * Control.cs: Add [Get|Set]AutoSizeMode.
5491 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5493 * MdiClient.cs: Unmerge menus when the last child is closed.
5495 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
5497 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
5498 * ToolStripManager.cs: Call Merge on DropDowns.
5501 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5503 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
5505 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
5506 visibility. We can't create forms visible, since we have to set the
5507 owner before making the form visible (otherwise Win32 will do
5508 strange things with task bar icons). The problem is that we set the
5509 internal is_visible to true before creating the control, so
5510 is_changing_visible_state is the only way of determining if we're
5511 in the process of creating the form due to setting Visible=true -
5512 this works because SetVisibleCore explicitly makes the form
5513 visibile afterwards anyways. Fixes #80775.
5515 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5517 * ThemeWin32Classic.cs: When drawing ListViewItems,
5518 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
5519 or LargeIcon _and_ item is not focused (match .Net behaviour).
5521 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
5523 * Control.cs, Form.cs: Fix some obsolete method warnings.
5525 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
5527 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
5528 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
5530 2007-05-04 Andreia Gaita <avidigal@novell.com>
5532 * ContainerControl.cs: Fix active_control attribution when going
5533 up the parent chain so that the first parent container gets the control
5534 and the rest of the parent containers get the child containers (skips
5535 non-containers). Fixes #80729
5537 2007-05-04 Randolph Chung <tausq@debian.org>
5539 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
5542 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5544 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
5545 takes a size parameter, since the CreateParam's size isn't true for
5546 minimized forms. Fixes #81518,
5548 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5550 * Form.cs: Add OnDeactivateInternal.
5551 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
5553 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5555 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
5556 accessing the parent. Fixes #81508.
5558 2007-05-03 Chris Toshok <toshok@ximian.com>
5560 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
5561 2.0 block, pass listposition + 1 to ChangeRecordState when a row
5562 was added before the current listposition. Fixes the
5563 TestInsertRowBeforeCurrent unit test.
5565 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
5567 * Application.cs: Add RaiseIdle.
5568 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5569 XplatUIX11.cs: Implement RaiseIdle.
5571 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
5572 corcompare work: N - Z
5576 * ScrollableControl.cs
5580 * SystemInformation.cs
5582 * TableLayoutControlCollection.cs
5583 * TableLayoutPanel.cs
5588 * ToolStripComboBox.cs
5589 * ToolStripContainer.cs
5590 * ToolStripContentPanel.cs
5591 * ToolStripDropDown.cs
5592 * ToolStripDropDownItem.cs
5593 * ToolStripDropDownMenu.cs
5595 * ToolStripItemCollection.cs
5596 * ToolStripMenuItem.cs
5598 * ToolStripSplitButton.cs
5601 * TreeNodeCollection.cs
5602 * TreeNodeMouseHoverEventArgs.cs
5605 2007-05-01 Everaldo Canuto <everaldo@simios.org>
5607 * ContextMenu.cs: Add public method Show with alignment property to 2.0
5608 stuff. Thanks aatdark for the patch.
5610 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5612 * GridItem.cs: Implement 2.0 Tag property.
5614 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
5616 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
5617 count instead of Nodes.Length. [Fixes bug #81448]
5619 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5621 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
5624 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5625 corcompare work: A - M
5626 * BindingNavigator.cs
5631 * FlowLayoutPanel.cs
5637 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
5639 * Application.cs: Give toolstrips a chance to process mnemonics.
5640 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
5641 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
5642 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
5644 2007-05-01 Jackson Harper <jackson@ximian.com>
5646 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
5648 - Don't set the BoundsSpecified
5650 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5652 * Application.cs: When using the toolstrip shortcut mechanism, allow the
5653 message to pass through to a regular control if it hosted by a toolstrip.
5654 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5655 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
5657 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5659 * TextRenderer.cs: Use the flags argument when using the MeasureString
5662 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
5664 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
5665 the MDI menu item. [Fixes bug #81483]
5667 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
5669 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
5670 string. When setting Name to null, use zero-length string instead.
5672 2007-04-29 Andreia Gaita <avidigal@novell.com>
5674 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
5675 DeselectTab). Implement missing 2.0 TabPageCollection methods
5676 (Add, ContainsKey, RemoveByKey, IndexOfKey)
5678 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
5680 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
5682 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
5684 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
5685 Fixes bug #81479. Include details of exception when LoadFile fails.
5687 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
5689 * DrawListViewSubItemEventArgs.cs: Added missing setter
5691 2007-04-27 Andreia Gaita <avidigal@novell.com>
5693 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
5694 Hide methods (not complete). Implement missing 2.0 OnPopup event.
5696 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5698 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
5699 removed in ly last commit (it was breaking the Label edit feature).
5701 * ThemeWin32Classic.cs: When drawing a ListViewItem use
5702 StringAlignment.Near for LineAlignment (match .Net).
5704 2007-04-27 Andreia Gaita <avidigal@novell.com>
5706 * TabControl.cs: Change SetTab so it adds the tabpage to the list
5707 of controls if it isn't already there - was blowing up when doing
5708 tabcontrol.TabPages[i]=new TabPage().
5709 SetTab now does a replace by removing the page at the index.
5710 Add a new InsertTab method that inserts a page in a given index
5711 instead of replacing.
5712 Implements TabPageCollection.Insert(int, TabPage).
5714 2007-04-27 Chris Toshok <toshok@ximian.com>
5716 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
5717 internal handler that can be invoked from our subclasses.) Also,
5718 add a comment to PushData about how we need to fix it.
5720 * CurrencyManager.cs: tons of changes here. trying to get things
5721 matching the behavior of .net wrt event orders (ItemChanged,
5722 CurrentChanged, PositionChanged.) I've implemented a private .net
5723 symbol (ChangeRecordState) that appears in stack traces because
5724 it's actually easier to do this than to effective inline all its
5725 various behaviors at every call site.
5727 * RelatedPropertyManager.cs: guard against an exception here by
5728 not using parent.Current if the position is set to -1 (if the
5729 parent datasource is cleared, for instance).
5731 * Binding.cs: don't parse data in PushData (this might be wrong,
5732 but it jives with MS's behavior.) Also, don't call PushData when
5733 we get a CurrentChanged event.
5735 2007-04-27 Andreia Gaita <avidigal@novell.com>
5739 WebBrowserSiteBase.cs,
5740 HtmlDocument.cs: Added stubbed out classes, no real implementations
5743 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5745 * MainMenu.cs: In draw method without parameters call draw method with
5746 PaintEvent, another one (just rect) adjust rectangle and we dont need it
5747 as Rect property is already adjusted. Fixes #80694.
5749 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
5751 * Application.cs: Need to handle keyboard menu deselection here.
5752 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
5753 navigation, allowing keyboard to work on X11.
5754 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
5756 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5758 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
5759 menu bar. It fixes some drawing issues in menu bar.
5761 2007-04-27 Everaldo Canuto <everaldo@simios.org>
5763 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
5764 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
5765 when <alt> key is pressed.
5767 2007-04-26 Everaldo Canuto <everaldo@simios.org>
5769 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
5770 example just set visible to false and make this prevent from other problems.
5771 In SystrayAdd always remove pending expose. Fixes #81072.
5773 2007-04-26 Marek Safar <marek.safar@gmail.com>
5775 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
5778 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5780 * ListView.cs: Added three missing 2.0 events and corresponding
5781 EventHandlers. Added the OwnerDraw property.
5782 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
5784 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5786 * DrawListViewItemEventArgs.cs
5787 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
5789 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
5791 * TextControl.cs: Fixed typo in constructor
5793 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
5795 * Application.cs: Create a shortcut path so that currently selected
5796 MenuStrips can intercept keyboard events without having focus.
5797 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
5798 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
5799 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
5800 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
5801 generate WM_SYSCOMMAND message in X11 for other platforms.
5802 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
5803 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
5804 * ToolStripSplitButton.cs: Add DefaultItem property.
5806 2007-04-26 Everaldo Canuto <everaldo@simios.org>
5808 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
5809 fixes some menu draw problem on Windows with border diferent from default
5810 it also fixes #81403.
5812 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5814 * Form.cs: Refactor WndProc into separate methods, just like Control is
5817 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5819 * Control.cs: set_Text: move the call to the driver into a seperate
5820 virtual method so that Form can override it.
5821 * MaskedTextBox.cs: Corcompare fixes.
5822 * Form.cs: Override UpdateWindowText and only update the styles if the
5823 form has been shown (fixes #81405).
5825 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
5827 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
5828 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
5829 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
5830 the form lost focus or another control was clicked.
5832 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
5834 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
5837 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
5839 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
5840 DrawListViewItemEventHandler.cs,
5841 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
5843 * X11Structs.cs: More ToString implementation.
5845 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
5847 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
5848 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
5850 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
5852 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
5854 * FormCollection.cs: Don't add a form if it's already in the
5856 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
5857 according to behaviour and MSDN. The ownerWin32 is the active
5858 window at the moment when we call ShowDialog, not the context's
5859 main form (the context's main form may open another form that opens
5860 a form with ShowDialog, the win32 owner is the second form). Add
5861 and remove forms to the Application.OpenForms in other places to
5862 better match MS behaviour. Add an IsActive property that raises
5863 On(de)Activated only if the active state has changed (we were
5864 raising OnDeactivated before OnActivated while creating forms).
5865 * Application.cs: Refactor Enabling/Disabling of windows for modal
5866 dialog loops out to separate methods, and restore the thread
5867 context when we quit the method. Fixes #81407.
5869 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5871 * ListView.cs: In ItemControl.HandleClicks, also fire
5872 2.0 MouseClick or MouseDoubleClick events on the parent,
5873 not only the Click/DoubleClick events.
5875 2007-04-24 Andreia Gaita <avidigal@novell.com>
5877 * TableLayoutSettings.cs:
5878 - Added a GetControls method and a support structure to help the
5879 TypeConverter to enumerate the controls for serialization.
5880 - Added a new serialization constructor.
5881 - Added a isSerialized flag initialized to true on the
5882 serialization constructor so that the TableLayoutPanel.LayoutSettings
5883 setter does not throw the designed NotSupportedOperation exception
5884 when the object is built through deserialization.
5885 - Implemented GetObjectData
5887 * TableLayoutPanel.cs: Added check on LayoutSettings.
5889 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5891 * ListView.cs: Report Click and DoubleClick events to the parent
5892 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
5893 from breaking the click count state when using dialog forms (Control
5894 reports the clicks in a similar fashion). In the previous behaviour
5895 the last WM_LBUTTONUP message in a double click was sent to the
5896 ListView's form, instead of the ListView, which was breaking the click
5897 count for it. Fixes #80387.
5899 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
5901 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
5903 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
5905 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
5906 us from created dropdowns for menu items that do not have subitems.
5907 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
5908 Check HasDropDownItems before calling DropDown so a dropdown will not be
5909 created if it isn't needed.
5911 2007-04-24 Jackson Harper <jackson@ximian.com>
5913 * TreeView.cs: Set the first node to the selected node when we get
5914 focus if there is no selected node.
5916 2007-04-24 Andreia Gaita <avidigal@novell.com>
5918 * MimeIcon.cs: remove using blocks so that image streams are
5919 not disposed of. Fixes #80151
5921 2007-04-24 Jackson Harper <jackson@ximian.com>
5923 * TextBoxBase.cs: Fixup the height of textboxes when the control
5926 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
5928 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
5929 for each ToolStripItem when the parent's RightToLeftChanged is called.
5931 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5933 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
5935 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
5936 property, so that the setter can be overriden too.
5937 * TextBox.cs: Change GetContextMenuInternal() to use
5938 ContextMenuInternal.
5940 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5942 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5945 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5947 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5950 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5952 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
5953 avoid duplicate work. Mostily skeleton code, it's not working at
5956 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
5958 * NotifyIcon.cs : stub for MouseClick event
5959 * Application.cs: stub for SetUnhandledExceptionMode
5961 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
5963 * BindingNavigator.cs : Initial (partial) implementation
5965 2007-04-23 Jackson Harper <jackson@ximian.com>
5967 * TreeView.cs: Do not create the treeview's handle when setting
5968 the scroll position.
5969 - ExpandAll needs to compute the scrollbars so it knows which
5970 position to set the bar too.
5972 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
5974 2007-04-23 Jackson Harper <jackson@ximian.com>
5976 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
5979 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
5981 * ToolStripItem.cs: Make GetImageSize internal.
5982 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
5983 need to draw an item. Fixes a reported issue where images on menus
5984 that were not 16x16 were drawing incorrectly.
5986 2007-04-21 Miguel de Icaza <miguel@novell.com>
5988 * Padding.cs: Use the converter, fixes the resgen2 issue with
5991 2007-04-21 Jackson Harper <jackson@ximian.com>
5993 * TreeView.cs: Dont try to unhighlight the selected node if there
5994 isn't a selected node.
5996 2007-04-21 Jackson Harper <jackson@ximian.com>
6002 * TreeView.cs: Use the InternalBorderStyle property to set the
6003 initial border style, this forces the client rectangle to be sized
6006 2007-04-20 Jackson Harper <jackson@ximian.com>
6008 * TreeView.cs: Simplify scrolling to the last node after expanding
6010 - Fix some off by ones with setting the bottom.
6012 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
6014 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
6015 that. We were incorrectly doing it the other way around. Also,
6016 update ClientSize if we change the BorderStyle before the control
6019 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
6021 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6022 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6023 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
6024 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6025 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6026 Caption to CaptionHeight.
6027 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
6028 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
6029 and FixedFrameBorderSize to return value from current XplatUI driver.
6030 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
6031 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
6032 and FixedFrameBorderSize using win32 API. Renamed Caption to
6034 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
6035 * SystemInformation.cs: Fixed typo in BorderSize.
6037 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
6039 * XplatUI.cs: Added MenuAccessKeysUnderlined.
6040 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
6041 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
6043 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
6044 value from XplatUI driver.
6045 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
6046 SystemParametersInfo.
6047 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
6049 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
6052 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6054 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
6056 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6058 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
6060 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
6062 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
6063 MenuStrips that contain ToolStripSeparators.
6065 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6067 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
6068 DefineStdCursorBitmap.
6069 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
6070 has been created off a standard cursor. This is used to get a
6071 bitmap of the standard cursor when Draw or DrawStretched is called
6072 in order to draw the cursor.
6073 * X11Structs.cs: Added XcursorImage and XcursorImages.
6074 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
6075 DefineStdCursorBitmap.
6076 * Cursors.cs: Update all relevant creations of Cursor to use the new
6077 internal constructor.
6079 2007-04-19 Jackson Harper <jackson@ximian.com>
6081 * TextBox.cs: Move the has_been_focused into the base control, so
6082 some of the text adding methods can manipulate it (probably time
6083 for a better name for this flag too).
6084 - Call a new version of selectall that doesn't scroll
6085 * TextBoxBase.cs: When we append text, if the document is empty,
6086 don't scroll. If the document has text already, we scroll to the
6087 end of the appended text.
6088 - When the text is changed, we reset the has_been_focused, so the
6089 next time the control gets focused, all the text is selected.
6091 2007-04-19 Jackson Harper <jackson@ximian.com>
6093 * TextControl.cs: Move the margins to the document, add a method
6094 so the margin sizes can be updated.
6095 * TextBoxBase.cs: When the border style is changed, update the
6098 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
6100 * Control.cs: Respect DefaultPadding.
6101 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
6102 padding into account.
6103 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
6105 2007-04-19 Jackson Harper <jackson@ximian.com>
6107 * TextControl.cs: Oops, we need to use the ClientRect not the
6110 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6112 * ListView.cs: In ItemControl.ItemsMouseDown, take into
6113 account the double clicks when CheckBoxes are used and
6114 the pointer is inside the checkbox. Fixes part of #81191.
6116 2007-04-18 Jackson Harper <jackson@ximian.com>
6118 * TextControl.cs: Pressing the end key shouldn't move the caret
6119 past the line ending.
6120 * TextBoxBase.cs: We can still delete if we are in the line
6121 ending and the combine will just kill the existing line ending.
6123 2007-04-18 Jackson Harper <jackson@ximian.com>
6125 * TextControl.cs: We can't move lines, then invalidate their
6126 bounds, we need to get the old bounds and combine that with the
6128 * TextBoxBase.cs: Before combining two lines for a delete, we need
6129 to invalidate the area of the old line, since that will be moved
6130 in the combine operation.
6132 2007-04-18 Everaldo Canuto <everaldo@simios.org>
6134 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
6135 with transparent background. Fixes #80482.
6137 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
6139 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
6140 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
6143 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6145 * CreateParams.cs: Add a couple of helper methods and do a less string
6146 concatenation in ToString.
6147 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
6148 overload that takes a Control parameter, since this method may be
6149 called before a control is assigned to the hwnd (from
6150 CreateWindow), and update CreateWindow to use the new overload. In
6151 GetMenuOrigin subtract the title bar from the y position if the
6152 form has a window manager (since we're painting it and not X).
6153 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
6154 CreateParams to calculate the origin (since border sizes may vary).
6155 In ScreenToMenu only subtract the title height if we actually have
6157 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
6158 mdi children never have menus of themselves.
6159 * InternalWindowManager.cs: Implement menu handling like form does.
6160 Added GetMenuOrigin to calculate the menu origin, can't use the
6161 CreateParams from the form like normally since it's lying.
6162 * Hwnd.cs: Implement GetBorderSize better (in the sense more
6163 windows-like) and add Inflate and comparison operators to the
6164 Borders type. When calculating MenuOrigin and it's a form with a
6165 window manager, use the window manager to calculate it.
6167 2007-04-17 Chris Toshok <toshok@ximian.com>
6169 * Control.cs (CreateControl): turns out in 2.0 we don't need this
6170 OnBindingContextChanged thing here. It's only generated from
6171 ContainerControl.OnCreateControl. Fixes a newly written unit test
6172 - BindingTest.BindingContextChangedTest4.
6174 2007-04-17 Jackson Harper <jackson@ximian.com>
6176 * ScrollBar.cs: When setting values, make sure the current
6177 position stays within the new values range.
6179 2007-04-17 Chris Toshok <toshok@ximian.com>
6181 * Control.cs (CreateControl): talk about a bizarre corner case.
6182 Don't emit OnBindingContextChanged here if we're a parentless
6183 control (i.e. if we're a form.). Fixes
6184 BindingTest.BindingContextChangedTest2.
6186 2007-04-17 Everaldo Canuto <everaldo@simios.org>
6188 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
6189 from win32. Fixes #81255.
6191 2007-04-17 Everaldo Canuto <everaldo@simios.org>
6193 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
6194 already present in CalculateButtonTextAndImageLayout.
6196 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6198 * XplatUIX11.cs: When setting min/max size for a window we need to
6199 translate the coordinates to x coordinates. Create an overload of
6200 SetWindowMinMax that takes a CreateParams handling this, and change
6201 SetWMStyles to call this function (can't use Control.FromHandle in
6202 the SetWindowMinMax to get the control/CreateParams from the handle
6203 because the handle might not have been assigned to the control
6206 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
6209 if StateImageList is non-null and it has less than two items (match MS
6210 behaviour). Also, in HandleNavKeys handle the Space key, calling
6211 the new ToggleItemsCheckState method, which tries to change the
6212 checked state of the selected items. Fixes part of #81191.
6214 2007-04-16 Jackson Harper <jackson@ximian.com>
6216 * RichTextBox.cs: namespace cleanup.
6218 2007-04-16 Everaldo Canuto <everaldo@simios.org>
6220 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
6222 2007-04-16 Everaldo Canuto <everaldo@simios.org>
6225 * Control.cs: Call invalidate in set_Region.
6227 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
6230 2007-04-16 Jackson Harper <jackson@ximian.com>
6232 * TextBoxBase.cs: When enter is pressed, we need to update all
6233 lines below the current.
6235 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
6237 * MdiClient.cs: Implement implicit menu merging for MDI
6238 children. When a child form is active, if it has a menustrip
6239 and the parent form has a MainMenuStrip, automatically merge
6242 2007-04-15 Andreia Gaita <avidigal@novell.com>
6244 * TabControl.cs: Refactored sizing methods to not repeat
6245 code all over the place. Tab bounds are now calculated
6246 as if alignment is top and single line, and only when
6247 setting the bounds are the positions adjusted according
6248 to alignment. Replaced hardcoded positions, spacings and
6249 paddings by getting the values the ThemeEngine.
6252 * Theme.cs: Change TabControl properties and methods so
6253 that all start with TabControl*. Added more properties
6254 to help remove hardcoded values on tabcontrol.
6255 Add CPDrawBorder3D declaration so the Theming classes
6258 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
6260 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
6261 on the Theming namespace, and call the appropriate methods here.
6262 Change CPDrawBorder3D to public.
6264 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6266 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
6267 the control after firing the OnMouseUp event, instead of sending
6268 the message before the mentioned event. This is so we can match the
6269 MS behaviour. Fixes part of #80385.
6271 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
6273 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
6274 RightToLeft property.
6276 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
6278 * ToolStrip.cs: Add properties and internal methods to support merging.
6279 * ToolStripItem.cs: Add MergeAction and MergeIndex.
6280 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
6281 not trigger reparenting or layouts.
6282 * ToolStripManager.cs: Add Merge and RevertMerge methods.
6283 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
6284 is hosting the overflow menu.
6286 2007-04-13 Jackson Harper <jackson@ximian.com>
6288 * TextControl.cs: Set the line ending correctly for the first
6291 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
6293 * Theme.cs: Update GetMethod to get the new definition for
6294 KnownColors.Update (and fix theme color updates).
6296 2007-04-12 Everaldo Canuto <everaldo@simios.org>
6298 * MessageBox.cs: Fix some test and button position.
6300 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302 * Form.cs: Consider the implicit controls in
6303 GetRealChildAtPoint. We need it since this method
6304 is called on Form when handling the some messages in
6305 WndProc, and need to consider those implicit ones too.
6308 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
6310 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
6311 if there are no ShortcutKeys set.
6312 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
6313 set, use it when painting.
6315 2007-04-12 Jackson Harper <jackson@ximian.com>
6317 * TextControl.cs: Fix some off-by-one issues in line duplication
6318 and insertion in the undo manager. Also, overwrite the first tag
6319 of a line on insert, if it is just a zero lengthed tag. This
6320 prevents us from getting an extra stranded tag at the beginning of
6323 2007-04-11 Everaldo Canuto <everaldo@simios.org>
6325 * Label.cs: Remove check for handle created in CalcAutoSize, we need
6326 to calculated proper size including when handle was not created yet.
6328 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6330 * MdiWindowManager.cs: When moving a form, allow the form to be moved
6331 when the mouse is outside of it's parent's client rectangle. Fixes
6332 #79982 (take 3, part 2).
6334 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6336 * X11Structs.cs: Add a few ToString() overrides.
6337 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
6338 the window location in a window-manager independent way. Reworked
6339 FrameExtents, it now actually works. Reworked AddConfigureNotify
6340 and ReparentNotify handling to use GetTopLevelWindowLocation
6341 instead of the earlier, more hacky solution. Reworked SetWMStyles,
6342 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
6343 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
6344 for all other windows (fixes #81281 part 1), a toolwindow is hidden
6345 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
6346 and generally refactored to do as few calculations as possible
6349 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
6351 * Theme.cs: Change "reflective-contract" between MWF and SD to
6352 minimize # of calls, avoid Color serialization and avoid updating
6353 every "known colors" each time a single one is updated.
6355 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
6357 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
6358 when not readonly and the text is explicitly set. Code style updates.
6359 * DataGridTableStyle.cs: Removed extra line.
6360 * DataGrid.cs: Code style updates. Removed extra whitespace.
6361 * DataGridColumnStyle.cs: Code style updates. Removed extra
6364 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6366 * XplatUIX11.cs: Added comment that "fixes" #80021.
6368 2007-04-09 Jackson Harper <jackson@ximian.com>
6370 * TextControl.cs: We don't need this -1 on the line count anymore.
6372 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
6374 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
6375 entered value to underlying type, and convert it back to a string to
6376 apply formatting. Modified GetFormattedValue to use TypeConverter
6379 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
6381 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
6382 Use SubItems property when we want to ensure there's at least one
6383 subitem. Modified SubItems property to ensure there's always at least
6384 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
6385 the NRE's reported by MS.
6387 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
6389 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
6390 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
6391 Spaces to tabs. Removed extra tabs.
6393 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
6395 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6396 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
6398 2007-04-06 Jackson Harper <jackson@ximian.com>
6400 * TextBoxBase.cs: When a delete removes a line, recalculate all
6401 lines below that line (they need to get offsets setup correctly)
6404 2007-04-05 Jackson Harper <jackson@ximian.com>
6406 * TextControl.cs: We need to invalidate across the width of the
6407 document when we are invalidating multiple lines.
6408 * TextBoxBase.cs: Don't delete into the line ending.
6410 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6412 * ListView.cs: Restore the check for the MouseHover event
6413 in ListView. It looks like the ListView fires more than one MouseHover
6414 event when HoverSelection is true _only_ in weird-corner scenarios, but
6415 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
6418 2007-04-05 Mike Kestner <mkestner@novell.com>
6420 * ListView.cs : raise MouseDown before updating selection.
6421 [Fixes #80373 tab 1&3]
6423 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
6425 * ToolStripRenderer.cs: Add static method to mirror image.
6426 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
6427 and RightToLeftAutoMirrorImage.
6428 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
6430 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
6432 * ToolStripSplitStackLayout.cs: Support Alignment property.
6433 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
6435 2007-04-05 Jackson Harper <jackson@ximian.com>
6437 * TextControl.cs: Move around the line endings when crossing line
6439 - When combining lines, strip the ending text off the first line.
6441 2007-04-05 Jackson Harper <jackson@ximian.com>
6444 * TextBoxBase.cs: Try to never move the cursor into the line
6447 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6449 * ToolStripItem.cs: Make sure we aren't firing mouse events when
6450 the item is disabled. Also add a few missing methods.
6452 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6454 * ListView.cs: We don't need the MouseEnter/MouseLeave check
6455 to fire just one MouseHover event when HoverSelection is true, since
6456 .Net does fire more than one MouseHover event in that scenario. Also,
6457 fix the selection in HoverSelection, by invoking UpdateMultiSelect
6458 if MultiSelect is true, instead of only setting ListViewItem.Selected.
6459 Finally, we need to reset the Hover logic in MouseMove, even when we
6460 don't have a selected item.
6462 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6464 * ToolStrip.cs: Add several missing methods, properties, and events.
6466 2007-04-04 Chris Toshok <toshok@ximian.com>
6468 * DataGridTextBoxColumn.cs: set the bounds of the text box to
6469 (0,0,0,0) in Commit, as MS does.
6471 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
6472 make sure we set CurrentRow on a row header click *before* calling
6473 Select. This moves the current cell (and the textbox) to the new
6474 row. The call to Select then hides the textbox, giving us the
6475 correct behavior. Fixes #80362.
6477 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
6478 (ListChangedHandler): reorder the position/current changed events,
6479 and call UpdateIsBinding in the ItemAdded case.
6481 * GridColumnStylesCollection.cs: add some columns events, one of
6482 which raises the CollectionChanged event.
6484 2007-04-04 Jackson Harper <jackson@ximian.com>
6486 * TextControl.cs: When we delete multiple selection lines
6487 invalidate the selection area, don't need to do that for single
6488 lines because the final update view will handle it.
6490 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
6492 * Control.cs: When we CreateControl, we need to also create all of the
6493 control's children. The child's OnLoad must also fire before the parent's
6494 OnLoad. Fixes the toolbox size in PDN.
6496 2007-04-04 Jackson Harper <jackson@ximian.com>
6498 * TextBoxBase.cs: When the user presses enter, insert a line
6499 ending into the text. (Maybe this would be a good spot for
6500 Environment.NewLine).
6501 * TextControl.cs: Remove undo manager hack, line endings get
6502 inserted properly now.
6504 2007-04-04 Everaldo Canuto <everaldo@simios.org>
6507 - Remove unneeded parameters in UpdateCursor.
6508 - Fix UpdateCursor to check if menu is active.
6509 - Call UpdateCursor when menu deactivate my click.
6510 [Fixes remaining issues from #80410]
6512 2007-04-04 Everaldo Canuto <everaldo@simios.org>
6514 * Control.cs: GetRealChildAtPoint method added, it make an
6515 recursive child control search for the point.
6517 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
6520 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
6522 2007-04-03 Everaldo Canuto <everaldo@simios.org>
6524 * Form.cs: Fix mouse position when send back mouse event after closes
6527 2007-04-03 Everaldo Canuto <everaldo@simios.org>
6529 * Form.cs: Simplify the BUTTONDOWN for active tracker.
6531 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
6533 * Control.cs: Fix an issue where if a user resized a control inside
6534 a sizing method like OnResize, we would overwrite their explicit
6535 value. Also, only call DefaultSize once in the constructor instead
6536 of 4 times. Also, do not call SetBoundsCore from SetBounds if
6537 nothing actually changed.
6539 2007-04-03 Jackson Harper <jackson@ximian.com>
6541 * TextControl.cs: Don't attempt to copy text for lines with no
6542 text in them (technically this shouldn't happen, but we aren't
6543 always inserting line endings when we should be).
6545 2007-04-03 Jackson Harper <jackson@ximian.com>
6547 * TextBoxBase.cs: Calculate the scrollbars before calculating the
6548 document, because this sets some of the document size properties
6551 2007-04-03 Jackson Harper <jackson@ximian.com>
6553 * TextBoxBase.cs: We need to calculate maximums even if this is
6554 not a multiline control, because the maxs are used for scrolling.
6555 - Display the caret after doing a page up/down, we need to
6556 manually display it because a proper CaretMoved event isn't
6557 triggered (this is because of the way the math is done to
6558 determine how far to scroll).
6560 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
6562 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
6563 (ToolBar was relying on SetBoundsCore to default the values sent
6564 base off of BoundsSpecified.)
6566 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6568 * DateTimePicker.cs: Change Text so that when a null value or empty
6569 string is assigned to the test we always raise ValueChanged and
6570 TextChanged (earlier implementation would only raise ValueChanged
6571 if the current date value was different from DateTime.Now).
6573 2007-04-03 Andreia Gaita <avidigal@novell.com>
6575 * ButtonBase: Call update after invalidation, fixes #80194
6577 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6579 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
6582 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6584 * XplatUIX11.cs: SetWMStyles: If the control is a form with
6585 FormBorderStyle = None, don't give the window any decorations.
6588 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6590 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6591 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
6592 to check for is a mix of several styles (such as WS_CAPTION for
6594 * Control.cs: Don't paint an area bigger than the client area when
6595 painting the background colour. Add an internal GetCreateParams.
6596 Update calls to XplatUI.CalculateWindowRect due to API change.
6597 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
6598 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
6599 the size if it hasn't been handled by any windows. When creating
6600 and moving windows, X wants the location of the entire window, but
6601 the size of the client window, so add
6602 TranslateClientRectangleToXClientRectangle,
6603 TranslateWindowSizeToXWindowSIze and
6604 TranslatedXWindowSizeToWindowSize to cope with this, and call them
6605 before every window creation and move. Update CalculateWIndowRect
6606 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
6607 In AddConfigureNotify don't do anything if the hwnd is a zombie
6608 (fixes the BadWindow we were getting while running the tests),
6609 always calculate the offsets when it's a parentless window, not
6610 only when reparented, and translate the window size, since we're
6611 getting the client size of the whole window, excluding entire
6613 * Theme.cs: Added BorderSizableSize.
6614 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6615 anymore. Update calls to XplatUI.CalculateWindowRect due to API
6617 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
6618 change. Fake the window styles here instead of in XplatUIWin32 so
6619 that all back-ends get the same window styles (and it's Form that's
6620 deciding when to use wm, not the Win32 backend anyways)
6621 * Hwnd.cs: Completely reworked GetWindowRectangle and
6622 GetClientRectangle - they are now passed a CreateParams and they
6623 only use Style and ExStyle to determine the rectangles (they should
6624 now work just like Win32AdjustWindowRectEx - though quite a few
6625 special cases are probably missing). They should also be 100%
6626 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
6627 == rect), and all numbers (borders, menu sizes) are taken from the
6628 current theme. Added a GetBorders helper function that will return
6629 the borders for any given CreateParams (including captions and
6630 menus), and GetBorderSize that returns the given border size only.
6631 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6632 Hwnd.GetClientRectangle.
6634 2007-04-02 Chris Toshok <toshok@ximian.com>
6636 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
6637 logic between the values we present to the user and the values
6638 which are stored in the column's property. Also, don't call
6639 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
6641 2007-04-02 Jackson Harper <jackson@ximian.com>
6643 * TextBoxBase.cs: Scroll faster!
6645 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
6647 * StatusStrip.cs: Layout fixes for PDN.
6648 * ToolStrip.cs: Set item's available to true, and placement to main when
6650 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
6651 changing in setter before doing any work, add InternalVisible.
6652 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
6653 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6656 2007-04-02 Jackson Harper <jackson@ximian.com>
6658 * TextBox.cs: LBUTTON does not make the textbox select all of it's
6661 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6663 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
6664 Makes ToolStripComboBoxes show up again.
6666 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6668 * ListView.cs: Add a hover_pending field in ListView
6669 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
6670 cycle (we are resetting the MouseHover logic in XplatUI
6671 to handle HoverSelection). Fixes #80429.
6673 2007-04-02 Jackson Harper <jackson@ximian.com>
6675 * TextControl.cs: Make sure the attributes get set on the last
6677 - Still have to do the end tag if we have stepped all the ways to
6680 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
6682 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
6683 on an internal libgdiplus call when the information is already
6684 available via the public API.
6686 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6688 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
6689 control is removed from a control collecftion.
6690 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6691 Fixes FormPropertyTest (failed on rare occasions).
6692 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
6693 of Win32SetParent (when changing from no parent to a parent it
6694 might add the new parent's location in screen coordinates to this
6696 * Form.cs: Rework ChangingParent once again, now the handle is
6697 recreated whenever a FormWindowManager is added or removed (that is
6698 whenever a normal form is parented or abandoned). Also change
6699 CreateParams so that all non-toplevel windows always get the
6700 specified sice (StartupPosition is never considered for
6701 non-TopLevel forms).
6702 * ContainerControl.cs: Add ChildControlRemoved, the container control
6703 needs to be notified when a control is removed from it's
6704 collection, in the case the removed control is the active control.
6706 2007-04-02 Jackson Harper <jackson@ximian.com>
6708 * RichTextBox.cs: Use the new methods for setting the font and
6709 color, these methods set the specified attribute without
6710 overriding the other attributes.
6712 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
6714 * ToolStripPanel.cs: Fixes for better layouts in PDN.
6716 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
6718 * TextBox.cs: Added internal ChangeBackColor method to special-case
6719 Color.Empty. Added check for invalid ScrollBars value.
6720 * TextBoxBase.cs: Added internal ChangeBackColor method.
6721 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
6722 internal ChangeBackColor method to special-case Color.Empty. Added
6723 check for invalid ScrollBars value.
6725 2007-03-30 Everaldo Canuto <everaldo@simios.org>
6727 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
6729 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
6731 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
6732 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
6733 [Based on submitted patch from Olivier Duff.]
6735 2007-03-30 Jackson Harper <jackson@ximian.com>
6737 * TextBox.cs: Only select all on initial focus if the user has not
6738 specified a selection area.
6740 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
6742 * UserControl.cs: Override CreateParams.
6744 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
6748 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6749 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
6750 check for is a mix of several styles (such as WS_CAPTION for instance).
6751 * Control.cs: Don't paint an area bigger than the client area when painting
6752 the background colour. Add an internal GetCreateParams. Update calls to
6753 XplatUI.CalculateWindowRect due to API change.
6754 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
6755 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
6756 hasn't been handled by any windows. When creating and moving windows, X
6757 wants the location of the entire window, but the size of the client
6758 window, so add TranslateClientRectangleToXClientRectangle,
6759 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
6760 to cope with this, and call them before every window creation and move.
6761 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
6762 removing DeriveStyles). In AddConfigureNotify don't do anything if the
6763 hwnd is a zombie (fixes the BadWindow we were getting while running the
6764 tests), always calculate the offsets when it's a parentless window, not
6765 only when reparented, and translate the window size, since we're getting
6766 the client size of the whole window, excluding entire window.
6767 * Theme.cs: Added BorderSizableSize.
6768 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6769 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
6770 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
6771 Fake the window styles here instead of in XplatUIWin32 so that all
6772 back-ends get the same window styles (and it's Form that's deciding when
6773 to use wm, not the Win32 backend anyways)
6774 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
6775 they are now passed a CreateParams and they only use Style and ExStyle
6776 to determine the rectangles (they should now work just like
6777 Win32AdjustWindowRectEx - though quite a few special cases are probably
6778 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
6779 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
6780 sizes) are taken from the current theme. Added a GetBorders helper
6781 function that will return the borders for any given CreateParams
6782 (including captions and menus), and GetBorderSize that returns the given
6784 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6785 Hwnd.GetClientRectangle.
6787 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
6789 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
6790 layout of the mdi children is handled by CreateParams. Fixes
6793 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6795 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
6798 * Form.cs: When active tracker mouse down is not processed, send event
6799 back to control inside mouse position. [Fixes #81227]
6801 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
6803 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
6804 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
6805 stealing focus from the active form on Windows. (Control will be made
6806 visible in ShowWindow.)
6808 2007-03-29 Mike Kestner <mkestner@novell.com>
6810 * ImageList.cs : add internal Changed event.
6811 * ListView.cs : hook up to StateImageList.Changed to perform
6812 invalidations when the the state icon list changes. [Fixes #81191]
6814 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
6816 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
6817 to prevent tooltips from stealing focus from the active form on Windows.
6819 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6821 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
6823 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
6825 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6827 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
6830 2007-03-29 Jackson Harper <jackson@ximian.com>
6832 * TextControl.cs: When deleting text from non multiline textboxes,
6833 we need to update the entire document, because line offsets will
6836 2007-03-29 Everaldo Canuto <everaldo@simios.org>
6838 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
6839 added to theme, now we can create themes that uses diferent notify engines
6840 like notification-daemon from galago project or growl for Mac OS.
6842 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6844 * NotifyIcon.cs: Prevent Balloon to show in task bar.
6846 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6848 * XplatUIX11.cs: Prevent system to open more than one balloon.
6850 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
6851 some compiler warning messages.
6853 2007-03-28 Everaldo Canuto <everaldo@simios.org>
6857 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
6859 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
6860 implemented, this methods is used by NotifyIcon.BalloonWindow class.
6862 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
6865 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6867 * ListViewItem.cs: Forgot to make Invalidate internal.
6869 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6871 * ListView.cs: Add a InvalidateSelection method to
6872 invalidate methods which are currently selected, and call
6873 it when setting FullRowSelect and HideSelection, instead of
6876 2007-03-28 Chris Toshok <toshok@ximian.com>
6878 * XplatUIX11.cs (UnmapWindow): reindent this block.
6880 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
6881 the selection_start if we're moving the selection (that is, not
6882 extending it). Fixes bug #80461.
6884 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6886 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
6887 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
6888 create private ControlCollection.
6890 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6892 * Control.cs: We need to call OnVisibleChanged for our implicit
6893 children as well as our normal children. Fixes scrollbars in
6894 comboboxes not showing up.
6896 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6898 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
6899 the check for IsHandleCreated first. The check in CreateHandle is not
6900 good enough because CreateHandle can be overriden, and the override
6901 should not be called if the handle is already created.
6903 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
6905 * ToolStrip.cs: Remove MonoTODO for tooltips.
6906 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
6907 * ToolStripContainer.cs: Add custom ControlCollection class.
6908 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
6909 * ToolStripDropDown.cs: Add some missing properties/methods.
6910 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
6911 * ToolStripItem.cs: Remove MonoTODO for tooltips.
6912 * ToolStripManager.cs: Add IsShortcutDefined.
6913 * ToolStripOverflow.cs: Override LayoutEngine.
6914 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
6915 * ToolStripSeparator.cs: Add ImageKey.
6917 2007-03-28 Jackson Harper <jackson@ximian.com>
6919 * TextControl.cs: If a char delete removes a line ending, we need
6920 to update the ending style.
6921 - Make sure the line ending calcs get called.
6923 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6925 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
6926 it was making the new code not work. Fixed a typo in the new code
6927 as well. Fixes #79826.
6929 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6932 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
6933 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
6934 - SystrayBalloon method implemented.
6935 [Add support for notifyicon balloon on win32, #79149]
6937 2007-03-27 Mike Kestner <mkestner@novell.com>
6939 * ThemeWin32Classic.cs : update StateImageList selection to mirror
6940 the ms behavior when only one image is added to the list.
6943 2007-03-27 Jackson Harper <jackson@ximian.com>
6945 * TextControl.cs: Improvements to non multiline line ending
6948 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6950 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
6952 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6955 - Balloon message handling added.
6956 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
6958 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6959 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
6960 to SystrayBalloon to me like other Systray method, also a
6961 handle parameter added.
6963 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6965 * ListView.cs: Show scrollbars even when items.Count == 0
6966 but the columns Width is bigger than the ListView.Width.
6967 Also, when columns.Count == 0 set layout_wd and layout_ht
6968 to the ClientRectangle values, so we don't show any scrollbar
6971 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6973 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
6975 2007-03-27 Jackson Harper <jackson@ximian.com>
6977 * RichTextBox.cs: The RTF library decodes the text properly for us
6980 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6982 * ListView.cs: Display HeaderControl even when columns.Count == 0.
6983 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
6984 ListView header (HeaderControl), instead of Control.BackColor.
6986 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
6988 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
6989 Fixes tab control issues where controls would not show up because they
6990 never received their OnVisibleChanged call.
6992 2007-03-27 Everaldo Canuto <everaldo@simios.org>
6994 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
6997 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
6999 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
7000 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
7001 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
7002 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
7003 the handle. Fix WindowState by using the internal variable until we are
7004 sure that we've been shown.
7005 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
7009 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7011 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
7012 (at least borders). Fixes #79386 on Linux (with a small difference
7013 in behaviour: when trying to resize a caption-less window metacity
7014 shows the sysmenu. Resizing is still possible though).
7015 * XplatUIWin32.cs: When setting window styles send request an extra
7016 WM_NCCALCSIZE when it's a form without title (due to no text and no
7017 caption), since Win32 seems to calculate it wrong the first time we
7018 get the message, though the second time things work as they should.
7019 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
7020 newly reparented window might show up unparented. Update
7021 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
7022 there's no title text. Fixes #79386.
7024 2007-03-27 Mike Kestner <mkestner@novell.com>
7026 * ListBox.cs : don't perform invalidations if the handle hasn't been
7027 created. [Fixes #80753]
7029 2007-03-27 Mike Kestner <mkestner@novell.com>
7031 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
7034 2007-03-26 Everaldo Canuto <everaldo@simios.org>
7036 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
7037 needed to implement Balloon.
7039 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7041 * ListViewItem.cs: In the constructors that take
7042 an array of strings, don't use ListViewSubItemCollection.AddRange
7043 method to add items, since we need to have a different behaviour (in
7044 the constructors we add an item for each null string, opposed to
7045 the behaviour of AddRange, which adds nothing).
7047 2007-03-26 Andreia Gaita <avidigal@novell.com>
7049 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
7051 2007-03-26 Jackson Harper <jackson@ximian.com>
7053 * TextControl.cs: Draw and measure line endings when in non
7055 - When searching the text, count the end of the last line as a
7058 2007-03-26 Jackson Harper <jackson@ximian.com>
7060 * RichTextBox.cs: The selection_start and selection_end don't
7061 really track the correct tags for the selection. So we'll manually
7062 compute the correct tag here.
7064 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7066 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
7067 and Continuous styles. Fixes #79469.
7069 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
7071 * ToolStrip.cs: Implement Tooltips.
7072 * ToolStripItem.cs: Create internal method for determining tooltip.
7074 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
7076 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
7078 2007-03-26 Everaldo Canuto <everaldo@simios.org>
7080 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
7081 it prevents a problem thak keeps icon visible after application
7084 2007-03-26 Everaldo Canuto <everaldo@simios.org>
7086 * NotifyIcon.cs: Balloon properties and methods created.
7088 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7089 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
7091 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
7093 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
7095 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
7097 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
7098 parameter indicates which aspects were explicit/user-set.
7099 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
7101 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
7103 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
7104 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
7105 SmallChange, and Value (2.0).
7106 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
7108 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7110 * ListView.cs: Always set item_control.Width in LayoutDetails
7111 if View is Details. Setting it later in CalculateScrollBars
7112 in a not-so-corner scenario (the sum of columns width is
7113 not bigger than the ListView width when handle is created, and then
7114 that sum gets bigger by increasing the width of the columns)
7115 causes a very weird recursion path (which shouldn't be happening,
7116 since header_control sets it in CalculateScrollBars too). This bug
7117 appeared after Chris' fixes for handle created issues, so probably
7118 it's related to some handle-creation time.
7120 2007-03-23 Chris Toshok <toshok@ximian.com>
7122 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
7123 case where there's an add row, just so we don't end up in a case
7124 where it's not displayed (this happens when the row is partially
7125 obscured). Fixes bug #79574.
7127 2007-03-23 Jackson Harper <jackson@ximian.com>
7131 * RichTextBox.cs: Preserve line endings in the lines text buffer,
7132 also added an enum that represents the line ending type.
7134 2007-03-23 Andreia Gaita <avidigal@novell.com>
7136 * NumericUpDown.cs: Fix logic so Text and Value properties are not
7137 messed with in every method call, but only from DownButton,
7138 UpButton, UpdateEditText() and ValidateText. Fixes #80346
7140 2007-03-23 Chris Toshok <toshok@ximian.com>
7142 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
7143 format objects if the format spec is "". Fixes bug #80889.
7145 2007-03-22 Miguel de Icaza <miguel@novell.com>
7147 * ToolStripPanel.cs (Join): added stubs to build PDN3
7149 * Control.cs (AutoScrollOffset): Add.
7151 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
7152 property, its only implemented for Win32, on X11 it defaults to
7153 some hardcoded value.
7155 * ToolStripItem.cs (AllowDrop): Add property
7157 2007-03-22 Mike Kestner <mkestner@novell.com>
7159 * ListView.cs : in FullRowSelect Details mode, only enable box
7160 selection if the user clicks over the "item" column outside of the
7161 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
7163 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7165 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
7166 handle is not created yet.
7167 * Form.cs: Select: Don't call CreateHandle if the handle is already
7168 created, avoids a stack overflow on Windows when we are recreating
7170 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
7171 they are made visible, and override AfterTopMostControl to keep
7172 them on top when other controls are brought to front.
7173 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
7174 or force_*scroll_visible is true (old implementation always shows
7175 scrollbars when needed, no matter what auto_scroll was set to).
7176 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
7177 IsHandleCreated check.
7179 2007-03-22 Andreia Gaita <avidigal@novell.com>
7181 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
7182 row or col separator.
7183 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
7185 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7187 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
7189 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7191 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
7192 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
7193 every time. Fixes #80410.
7195 2007-03-22 Chris Toshok <toshok@ximian.com>
7197 * BindingSource.cs (AddNew): partially implement.
7199 remove a couple of NotImplementedException's
7200 to get bug #81148 closed.
7202 2007-03-22 Everaldo Canuto <everaldo@simios.org>
7207 - UpdateCursor method added to update the screen cursor.
7208 - GetAvailableCursor method added to return cursor for enabled tree,
7209 it searches for cursor on control and it's parent's for enabled control.
7210 - Call UpdateCursor method on setter of Cursor property.
7211 - On setter of Enabled call UpdateCursor when it is false, we need to
7212 change cursor to normal (or to this parent cursor) because cursor
7213 setting theres no effect to disabled controls.
7214 - Some minor source changes to follow the coding style guidelines.
7216 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
7219 2007-03-22 Chris Toshok <toshok@ximian.com>
7221 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
7224 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7226 * XplatUIX11.cs: Implement default locations for forms.
7227 * Form.cs: Completely rework startup location for forms. Fixes #79964.
7228 * Hwnd.cs: Add previous_child_startup_location (to track the current
7229 startup location for any child forms of the current form) and
7230 previous_main_startup_location (to track the startup location for
7231 the current toplevel form).
7233 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7235 * Control.cs: Don't trigger a layout if an implicit control is added
7236 that isn't visible. Also, don't notify the owner when an implicit control
7237 is added. (Owners shouldn't even know about their implicit controls.)
7239 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7241 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
7242 to save some re-layouts.
7244 2007-03-21 Everaldo Canuto <everaldo@simios.org>
7246 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
7249 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
7251 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
7252 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
7254 2007-03-21 Mike Kestner <mkestner@novell.com>
7256 * ListView.cs : disable selection update for non-left button clicks
7257 with mods and over selected items. [Fixes #80524]
7259 2007-03-20 Jackson Harper <jackson@ximian.com>
7262 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
7265 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7267 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
7268 very probably a more complicated calculation there. Update the
7269 textbox' ForeColor and BackColor when the ComboBox' colors are
7270 changed. Change the border change in LayoutComboBox to only affect
7271 the textbox, not all the calculations there. Seems to fix most of
7274 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7276 * ComboBox.cs: Handle Home and End keys as well as all combinations of
7277 modifiers + navigation keys as input keys, enables advanced text
7278 selection in the combobox (like Shift+Left Arrow for instance).
7279 ComboTextBox now overrides Focused and returns whatever
7280 ComboBox.Focused returns, since it really should be focused
7281 whenever the ComboBox is. Fixes #80795. Also make the border around
7282 the text box one pixel bigger, as mentioned in #79436.
7284 2007-03-20 Jackson Harper <jackson@ximian.com>
7286 * TreeView.cs: Don't offset the images, this was causing some
7287 artifacts when expanding/collapsing with images that were the
7288 exact height of the treenode.
7290 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7292 * TrackBar.cs: Query the theme for the correct value when the mouse
7293 moves and the thumb is pressed.
7294 * Theme.cs: Added TrackBarValueFromMousePosition
7295 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
7296 implementation was updating the trackbar value when drawing, now
7297 the drawing methods only draw. Fixes #80900. Refactored the
7298 calculations out to TrackBarValueFromMousePosition and
7299 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
7300 according to the mouse position whenever it wants to. Changed the
7301 light coloured pen when drawing the thumb from ControlLight to
7302 ControlLightLight, because the ControlLight is the same colour as
7303 the background so the 3D effect is lost.
7305 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7307 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
7308 defined. Fixes #80784.
7310 2007-03-20 Marek Habersack <mhabersack@novell.com>
7312 * ContextMenuStrip.cs: align with the change introduced in
7315 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7317 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
7318 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
7321 2007-03-19 Chris Toshok <toshok@ximian.com>
7323 * Control.cs (WmPaint): don't make use of the Handle property
7324 after an event is emitted, as the user could have closed the
7325 form/destroyed the control. Store the Handle in a local variable
7326 and make use of that. Fixes bug #80768.
7328 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7330 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
7331 behavior in X11 environments.
7333 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7335 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
7336 because on setter of topmost we dont call SetTopmost when handle is not
7339 2007-03-20 Jackson Harper <jackson@ximian.com>
7341 * TextControl.cs: Need to use SelectionLength () not
7342 selection_length, since that var is reset to -1.
7343 - Draw the caret when we don't have focus.
7344 * TextBox.cs: The selectall actually doesn't occur until the first
7346 * TextBoxBase.cs: Need to update the caret position after a
7349 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7351 * ListView.cs: Enable scrolling when using Tile view.
7353 2007-03-20 Everaldo Canuto <everaldo@simios.org>
7357 * XplatUIDriver.cs: Abstract SetOwner method created.
7359 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
7360 must be implemented and was masked as todo.
7362 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
7365 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
7366 cheking for null owner to remove transient. The SetTopmost will be change
7369 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
7370 SetTopmost. Now owned forms will work properly in win32 and X11.
7372 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7374 * MdiWindowManager.cs: Update function name.
7375 * Form.cs: After closing a form MdiParent is always null.
7376 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
7377 better what it should do: necessary book-keeping when the form is
7378 closed, it should not close the form itself.
7380 2007-03-19 Andreia Gaita <avidigal@novell.com>
7382 * ListViewItem.cs: Fix back and fore color. The subitems only
7383 use their own colors if they are set, otherwise use the listview's
7384 colors. Don't set default colors on constructor for subitem.
7387 2007-03-19 Mike Kestner <mkestner@novell.com>
7389 * ListView.cs : make box selection for Details views with
7390 FullRowSelect conform to MS behavior when clicking in the "item"
7391 column and clicking outside the defined columns.
7392 [Fixes case 5-6 of #80374]
7394 2007-03-19 Chris Toshok <toshok@ximian.com>
7396 * ScrollableControl.cs: create the controls from within the ctor,
7397 but don't actually add them until our handle is created. this
7398 fixes a NRE possibility jpobst found (if you override OnLayout in
7399 a subclass, it's called before your ctor). Also, add a
7400 IsHandleCreated guard to UpdateSizeGripVisibility as well.
7402 2007-03-19 Jackson Harper <jackson@ximian.com>
7404 * TextBox.cs: Reduce the amount of invalidation we do.
7405 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
7406 some of them are true by default on MS.
7407 - Add some functions to reduce the amount of invalidates we do.
7408 * TextControl.cs: Less invalidation.
7410 2007-03-19 Chris Toshok <toshok@ximian.com>
7412 [ Fixes #81773, and *seems* to fix #81553 as well ]
7414 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
7415 AccumulateDestroyedHandles. We need to do it *after* we send
7416 WM_DESTROY, as the user's code can access Control.Handle in
7417 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
7418 move the WM_DESTROY/zombie handling to before the call to
7419 XDestroyWindow. For some reason without this ordering
7420 FormTest.RecreateHandle hangs. This ordering is semantically
7421 equivalent, however, as XDestroyWindow is async anyway.
7423 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
7425 * RichTextBox.cs: Reset backcolor_set after setting default.
7427 2007-03-19 Chris Toshok <toshok@ximian.com>
7429 * ScrollableControl.cs: the scroll position should not effect the
7430 canvas size. commit patch from georgegiolfan@yahoo.com, which
7431 fixes some really bizarre behavior on resizing. Fixes bug #80778.
7433 2007-03-19 Chris Toshok <toshok@ximian.com>
7435 * ScrollableControl.cs: clean this up a bit. create the
7436 scrollbars in the ctor and just show/hide them as needed. Also,
7437 make hscroll_visible/vscroll_visible internal to Recalculate, and
7438 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
7439 everywhere else. This seems to fix the scrollbars appearing
7440 beneath the content for me (i have *no* idea why that is,
7443 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
7445 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
7446 some redundacy for stuff in Anchor and Dock that base will take care of.
7449 2007-03-19 Mike Kestner <mkestner@novell.com>
7451 * ListView.cs : make box selection for Details views without
7452 FullRowSelect dependent on the text bounds, not item bounds.
7453 * ListViewItem.cs : add an internal property to obtain the TextBounds
7454 in Details view. [Fixes case 1-4 of #80374]
7456 2007-03-19 Andreia Gaita <avidigal@novell.com>
7458 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
7459 we're < 2.0. #78448 && #80316
7461 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
7463 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
7464 have the same style available as the previously selected one. Also,
7465 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
7467 2007-03-19 Jackson Harper <jackson@ximian.com>
7469 * TextControl.cs: Add an alignment property that all new lines
7471 - Make sure to use the align shift when calculating the line's X
7473 * TextBox.cs: Set the alignment on the document as well as on all
7476 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7478 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
7479 throw if setting the parent of an mdichild that already has an
7480 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
7481 AssemblyProductAttribute in the assembly, use the type's namespace (as
7482 MS seems to do). CreateControl: don't create the handle if the control
7483 is not visible (according to MS behaviour and spec). SetTopLevel: Only
7484 create handle if the control is not a form. Change FocusInternal to
7485 virtual so that it can be overriden by Form.
7486 * TextBox.cs: Update call to FocusInternal.
7487 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
7488 form is not a toplevel form when it's a mdi child, so update is_toplevel
7489 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
7490 hasn't been created. Show (IWin32Window): Don't allow this overload for
7491 toplevel windows. CenterToParent/CenterToScreen/Select: create the
7492 handle as MS does. SetVisibleCore: if called on a MdiChild and the
7493 parent isn't visible yet, save the visibility and restore it when the
7494 parent is made visible.
7495 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
7496 methods, since the visibility of the scrollbars can be changed from
7497 several places, not only from AutoScroll.
7500 2007-03-19 Jackson Harper <jackson@ximian.com>
7502 * RichTextBox.cs: Enable shortcuts by default.
7503 * TextBoxBase.cs: Add conditional shortcuts.
7505 2007-03-19 Everaldo Canuto <everaldo@simios.org>
7507 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
7509 2007-03-19 Chris Toshok <toshok@ximian.com>
7513 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
7514 swallow the message we're waiting on, instead of delivering it, as
7515 this is only used for the WM_SHOWWINDOW raised from
7516 MapWindow/UnmapWindow, and the message needs to be generated
7517 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
7518 before doing the Map/Unmap. Also make sure that the Hwnd is still
7519 alive after the message has been handled.
7521 *before* the window is shown.
7523 * Control.cs (CreateControl): guard a few more things inside the
7524 if (!is_created) block, as we might end up being called again -
7526 (WmShowWindow): call CreateControl if we're showing the control.
7528 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7530 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
7531 controls without a handle if they have any parent with a handle. In
7532 Dispose add a check whether the handle is created or not before
7533 calling BeginInvoke, this removes the need of the extra disposing
7534 parameter (which was bogus anyway since it didn't prevent the
7535 invoke from happening, it only skipped the check for an existing
7536 handle, meaning that the invoke would call on an inexistent
7539 2007-03-19 Everaldo Canuto <everaldo@simios.org>
7541 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
7544 2007-03-18 Everaldo Canuto <everaldo@simios.org>
7547 - Fixed a problem that dont show help button for messages with 3 buttons.
7548 - Refactory button size and position calculations, now dont use fixed
7549 values, also fixed button sizes (#80043) and form's border space.
7550 - AddButton method created, now all other AddButton methods call this one.
7551 - Some other source code cosmetic changes.
7553 2007-03-18 Jackson Harper <jackson@ximian.com>
7555 * RichTextBox.cs: Don't do this all fonts must match check if
7556 there is only one char selected.
7558 2007-03-18 Jackson Harper <jackson@ximian.com>
7560 * TreeView.cs: ScrollWindow works properly now, so we don't need
7561 to screw around with the scroll area. This fixes some artifacts
7562 when expanding and collapsing.
7564 2007-03-18 Jackson Harper <jackson@ximian.com>
7566 * TextBoxBase.cs: Allow updating the selection position when the
7567 cursor is outside the textarea, but we have a capture.
7568 * TextControl.cs: A special case for when the cursor is outside
7569 the bounds of the TB.
7571 2007-03-18 Jackson Harper <jackson@ximian.com>
7573 * TextBoxBase.cs: Remove image pasting code for now. There is no
7574 way to get an image on the clipboard right now anyways.
7576 * RichTextBox.cs: Use the new RTF Picture class for pictures.
7578 2007-03-18 Everaldo Canuto <everaldo@simios.org>
7581 - Set window properties in constructor intead of on CreateParams.
7582 - Remove topmost from Window ExStyle.
7583 - Set ShowInTaskbar to false.
7584 - Set form border to FixedDialog.
7585 - Some cosmetic changes and remove unneeded comments.
7586 - It fixes itens 2,3 and 4 of bug #80043.
7588 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
7590 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
7591 none was explicitly set. Fixes part of bug #79949.
7593 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
7595 * ToolStripComboBox.cs: Add AutoComplete*.
7597 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
7599 * ToolStripComboBox.cs: Add FlatStyle.
7601 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
7603 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
7604 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
7606 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7608 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
7609 CheckBox.cs, RadioButton.cs, BindingSource.cs,
7610 DataGridColumnStyle.cs: Remove warnings.
7612 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7614 * Menu.cs: MergeMenu: Check menu argument for null before looping over
7616 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
7617 visibility of mdi child forms. FormSizeChangedHandler: update the
7618 maximized size if size has changed while maximized.
7619 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
7620 creating the handle.
7621 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
7622 avoid creating the handle if not created.
7623 * XplatUI.cs: Update debug output.
7624 * XplatUIStructs.cs: Added ToString's for a couple of structs.
7626 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
7628 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
7630 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
7631 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
7632 Implement keyboard shortcuts.
7634 2007-03-15 Everaldo Canuto <everaldo@simios.org>
7636 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
7637 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
7638 ColorDialog and all derived classes.
7640 2007-03-15 Everaldo Canuto <everaldo@simios.org>
7642 [ Fixes bug #79828 ]
7645 - Rename ToolBarButtonInfor to ToolBarItem.
7646 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
7647 - Maintain an array of ToolBarItem, used instead of ToolBarButton
7648 collection to be able add same button more than one time on a toolbar.
7649 - Refactory all properties and methods to use ToolBarItem.
7652 - Remove all propeties and methods that is now in ToolBarItem.
7653 - Rectangle propery now gets the rectangle from first ToolBarItem to
7654 mimic win32 behavior.
7655 - Size calculation and layout methods also removed.
7657 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
7658 ToolBarItem instead of ToolBarButton to right drawing buttons when
7659 same button/separator was added more than one time to ToolBar.
7661 * ThemeNice.cs: Same as above.
7663 2007-03-15 Andreia Gaita <avidigal@novell.com>
7665 * XplatUIX11.cs: Fire extra MouseMove events right after
7666 MouseDown and MouseUp, emulating win32's <censored> behaviour
7667 for apps that rely on it.
7669 2007-03-15 Jackson Harper <jackson@ximian.com>
7672 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
7673 it is drawn on the controls client window and there is no NC
7675 - Set the background color to gray on 2.0 when we are readonly.
7677 2007-03-15 Chris Toshok <toshok@ximian.com>
7679 [ Fixes bug #81144 ]
7681 * XplatUIX11.cs: implement VirtualScreen independently of
7682 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
7685 2007-03-15 Chris Toshok <toshok@ximian.com>
7687 * Hwnd.cs: add an internal field for the cached_window_state.
7689 * XplatUIX11.cs: cache the window state, invalidating the cache
7690 (and thus re-querying the X server) only when we see an update to
7691 the _NET_WM_STATE property.
7693 2007-03-15 Chris Toshok <toshok@ximian.com>
7695 * BindingSource.cs: get a lot of the unit tests working.
7697 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
7699 * Control.cs: Modify UpdateStyles to store distances when bounds >=
7700 0 instead of just bounds > 0. [Fixes bug #80912]
7702 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
7704 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
7707 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
7709 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
7710 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
7711 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
7712 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
7714 2007-03-15 Chris Toshok <toshok@ximian.com>
7718 * Control.cs: add Ivan's fix for 81101, with a slight modification
7719 - you can set control.Target to null.
7721 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
7723 * ToolStripItem.cs: If our OwnerItem is null, we can't use
7724 HideDropDown, use Hide instead to prevent an NRE.
7727 2007-03-14 Jackson Harper <jackson@ximian.com>
7729 * TextBoxBase.cs: Mess with the creation stuff a little. We need
7730 to calculate the document before the handle is created, in some
7731 cases. (Actually just one case).
7733 2007-03-14 Jackson Harper <jackson@ximian.com>
7735 * TextBoxBase.cs: Need to display the caret after letting the base
7736 wndproc handle the focus methods, because the caret display
7737 methods check the focus state.
7738 - Try to display the caret after updating it's position with SelectWord.
7739 - Don't need to do an immediate update on this recalc, since there
7740 will be an invalidate anyways.
7742 2007-03-14 Jackson Harper <jackson@ximian.com>
7744 * TreeView.cs: Some workarounds so that we can match event order a
7747 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
7749 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
7750 #80803. Avoid NullReferenceException when Control does not have
7751 parent. Fixed different blinkstyle issues. Only subscribe to Tick
7752 event a single time. Only draw error icon when control is created and
7753 visible. Fixes failing unit tests.
7755 2007-03-14 Andreia Gaita <avidigal@novell.com>
7757 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
7758 Selecting events. Fire Leave and Enter events when changing tabs.
7760 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
7762 * TreeView.cs: Add TreeViewNodeSorter.
7763 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
7765 2007-03-14 Chris Toshok <toshok@ximian.com>
7767 * Form.cs: go ahead and remove the RecreateHandles that jpobst
7768 removed earlier and I had him add back it. It turns out metacity
7769 *does* in fact handle the MOTIF_WM_HINTS property changing, it
7770 just doesn't redraw the window titlebar until you resize the
7771 window. This also means we aren't recreating the entire window
7772 hierarchy on X when you change this property. And it looks better
7775 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7778 * ListView.cs: Collecting selection information
7779 is now done in SelectedIndexCollection rather than in
7780 SelectedListViewItemCollection. This is done so we can
7781 have the selection information code in one single place
7782 (virtual mode selection information entirely depends on
7783 SelectedIndexCollection).
7785 2007-03-13 Miguel de Icaza <miguel@novell.com>
7787 * ErrorProvider.cs: Add stubs for ISupportInitialize
7789 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7791 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
7792 in the right order with the right values, from the Checked property,
7793 just as MS does (instead of triggering them from ListView).
7795 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
7797 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7799 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
7800 the correct handler in OnItemCheck method (ItemCheckEventHandler
7801 instead of EventHandler). This used to throw an InvalidCastException.
7803 2007-03-13 Jackson Harper <jackson@ximian.com>
7805 * TextBoxBase.cs: Calculate the document before the handle is
7806 created, so there isn't an extra invalidate called.
7808 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
7810 * Form.cs: Don't set owner in ShowDialog until we are sure
7811 that we aren't going to throw an exception. [Fixes bug #80773]
7813 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
7815 * TreeView.cs: Make it compile.
7817 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7819 * Control.cs: Another place we don't call SizeFromClientSize.
7820 * Form.cs: Another place we don't call SizeFromClientSize.
7823 2007-03-12 Jackson Harper <jackson@ximian.com>
7825 * TreeView.cs: Basically emulating some strangness here with
7826 exanding nodes and setting node positions when windows aren't
7828 - Also attempting to walk the node tree less than previously, and
7829 just use visible order calculations for determining offsets.
7830 - oops made scrolling backwards.
7831 * TreeNode.cs: We need to start nodes with a zero visible order,
7832 because the order calcs are based on the first nodes order.
7834 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7836 * Form.cs: Don't exit the program if RecreateHandle is called on
7839 2007-03-12 Chris Toshok <toshok@ximian.com>
7841 * XEventQueue.cs: remove the use of PostQuitState.
7843 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
7844 WM_QUIT message in GetMessage, return false (and if we're in the
7845 nested WaitForHwndMessage, repost the WM_QUIT message).
7847 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7849 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
7850 or the MaximizeBox properties. [Part of bug #80640]
7852 2007-03-12 Everaldo Canuto <everaldo@simios.org>
7854 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
7857 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7859 * ToolStripItem.cs: Fix some tests I broke by checking Visible
7862 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
7864 * FileDialog.cs: Use text of File name combobox to determine what
7865 files the user selected. Added tokenizer to parse the file names.
7868 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
7870 * Control.cs: We can't call SizeFromClientSize in the constructor,
7871 but we still need to do the same work, so make an internal version.
7874 2007-03-12 Jackson Harper <jackson@ximian.com>
7878 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
7881 2007-03-12 Jackson Harper <jackson@ximian.com>
7883 * TextBoxBase.cs: Now that the handles are being created a little
7884 later, we need to make sure that the document is recalculated when
7885 the handle is created.
7887 2007-03-11 Everaldo Canuto <everaldo@simios.org>
7889 * Theme.cs: GetLinkFont abstract method added.
7892 - Remove CalcTrimRectangle, no longer needed.
7893 - Factor also remove, position issues must be fixed in libgdiplus.
7894 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
7895 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
7896 care about font used to draw links.
7897 - Set TabStop to true when control is "Selectable", control is selectable
7898 when have one or more links. Fixes #80501 (test case is also added).
7899 - Set the LinkArea values after links change, LinkArea values must be
7900 based in first link position and size, a test case was created.
7901 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
7902 the attribute must be true LinkArea.Length > 0. The same was applied to
7905 * ThemeWin32Classic.cs:
7906 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
7908 - Use CPDrawStringDisabled to draw disabled text instead of hard code
7910 - Draw focus rectangle for every parts focused, including parts that
7911 is on another line, its because regions returns various rectangles
7912 and not only one. Needed to mimic W32 look.
7913 - Uses Graphics.Clip to delimite region painted, it mean that now
7914 complete text is passed to DrawString, with this we solve layout
7915 issues without create another text renderer.
7916 - Uses Region.Intersect to fix some flickers problems, now only needed
7917 parts will redrawed.
7918 - This changes fixes #79614 and some other unreported issues, on Linux
7919 some layout problems still remain, the problem is under
7920 MeasureCharacterRanges but it is an libgdiplus bug.
7922 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
7924 * TextBox.cs: Set for foreground color.
7925 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
7926 this is already done in Control.
7928 2007-03-10 Jackson Harper <jackson@ximian.com>
7930 * TextBox.cs: Set the background color, but reset the
7931 backcolor_set flag which is just for the user setting the
7934 2007-03-09 Chris Toshok <toshok@ximian.com>
7936 * Control.cs: really remove the call to XplatUI.SetVisible from
7937 CreateHandle(), like I said I did when I merged the branch.
7939 * BindingSource.cs: implement some more of this stuff.
7941 2007-03-09 Jackson Harper <jackson@ximian.com>
7943 * TextBox.cs: Don't explicitly set our background colors.
7945 * TextBoxBase.cs: Draw readonly text.
7946 - Need to invalidate when backcolor or readonly are changed.
7948 2007-03-09 Jackson Harper <jackson@ximian.com>
7950 * TextBoxBase.cs: Don't set the forecolor until the handle is
7952 - Do not raise OnPaint, and removed some old debug code.
7954 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
7956 * ScrollableControl.cs: Fix mouse wheel scrolling.
7958 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
7960 * Control.cs: Wire up MouseDoubleClick event.
7962 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
7964 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
7966 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
7967 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
7968 item is added. This logic was moved to ToolStrip.OnItemAdded.
7971 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7973 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
7975 2007-03-08 Jackson Harper <jackson@ximian.com>
7977 * TreeView.cs: Show the correct image for selected node (this used
7978 to work, not sure how the code got deleted). Also implemented 2.0 feature
7981 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7984 * ListViewItem.cs: Cache index in items when retrieving them
7987 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
7989 * ToolStripItem.cs: Don't return the explicit_size if we are using
7990 AutoSize. Fixes invalidation issue when user has explicitly set a
7991 size and has AutoSize = true.
7993 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
7995 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
7997 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
7999 * DataGridView.cs: Remove event handler from DataView when a
8000 DataTable is used as DataSource.
8002 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
8004 * Control.cs: Create internal setter for client_size to allow it to be
8005 set without triggering resizing code.
8006 * Form.cs: Calculate client_size in constructor, only change client_size
8007 in FormBorderStyle property if Handle has been created.
8008 [Fixes #80574, #80791]
8010 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
8012 * SystemInformation.cs: Add TerminalServerSession.
8014 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
8016 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
8019 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
8021 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
8022 Handle before we were supposed to. Now checks ActivateOnShow property
8024 * Control.cs: Add internal ActivateOnShow property.
8025 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
8027 * Hwnd.cs Remove no longer needed no_activate field.
8029 2007-03-07 Jackson Harper <jackson@ximian.com>
8031 * TreeView.cs: Implement owner draw tree nodes. And a couple more
8033 * DrawTreeNodeEventHandler.cs: Add
8034 * DrawTreeNodeEventArgs.cs: Correct default value.
8036 2007-03-07 Chris Toshok <toshok@ximian.com>
8038 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
8039 to be called before NativeWindow.WndProc. Put the HwndCreating
8040 magic there to hook up our Hwnd's to handles.
8042 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
8044 * DataGridView.cs: Comment out debug code.
8046 2007-03-07 Chris Toshok <toshok@ximian.com>
8048 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
8049 to make the rest of the world happy]
8051 * Control.cs (CreateHandle): there's no need to call
8052 XplatUI.SetVisible here, it's effectively done by
8053 XplatUI.CreateWindow on X now, and always was on windows.
8055 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
8056 shortcircuit out of the loop if we have a message loop running on
8059 [Changelog from merge]
8061 2007-03-05 Chris Toshok <toshok@ximian.com>
8063 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
8064 causes handle creation.
8066 2007-02-28 Chris Toshok <toshok@ximian.com>
8068 * ApplicationContext.cs: Add a flag to make sure we only raise the
8069 ThreadExit event once (ExitThreadCore can be indirectly called
8070 from a few places.) I don't like the additional flag, but it
8071 makes the event ordering/count correct.
8073 * Application.cs (MWFThread.LoopCount): don't use an enumerator
8074 without locking the collection. An enumerator doesn't give us any
8075 protection from modification anyway. Lock the thread hash and
8076 replace the complicated enumerator loop with a foreach.
8077 (Application.CloseForms): make internal so it can be called from
8078 ApplicationContext. This should probably be moved to MWFThread.
8079 (Application.ExitThread): don't call MWFThread.Current.Exit()
8080 here. just call XplatUI.PostQuitMessage. We'll exit the thread
8081 when the runloop exits (in response to WM_QUIT.)
8082 (Application.RunLoop): add a comment (and check) for
8083 context.MainForm being null after setting context.MainForm.Visible
8084 = true. This is because you're perfectly free to dispose of a
8085 form in VisibilityChanged. Chalk this up to another case where we
8086 need to synchronously generate WM_ACTIVATE from Control.Show.
8087 Also, add handling for WM_QUIT here so we'll exit the loop.
8089 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
8090 fact that we don't wait if we're only unmapping the whole_window
8091 makes me a bit nervous, but it doesn't seem to cause any problems
8094 also, add a comment about the stupid, broken and wrong resetting
8095 of PostQuitState to false in GetMessage().
8097 In PostQuitMessage, we need to add a WM_QUIT message to the
8098 thread's queue. We use the FosterParent to get the right
8101 Lastly, in SetVisible, we need to unmap both windows, since the
8102 waiting only happens when we're unmapping the client window. So
8103 now, the *only* time we unmap just the whole_window is in the hack
8104 for resizing a control to 0,0.
8106 2007-02-21 Chris Toshok <toshok@ximian.com>
8108 * Application.cs (CloseForms): rewrite this so that we don't
8109 modify the list while we're traversing it.
8111 2007-02-20 Chris Toshok <toshok@ximian.com>
8113 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
8115 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
8116 handle is created. otherwise we'll create it here.
8117 (VerticalScrollEvent): same here.
8119 * Application.cs (CloseForms): call Form.Dispose, don't post
8122 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
8123 here. Application should Dispose() of the Form's.
8125 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
8127 (MapWindow,UnmapWindow): only actually do the waiting for
8128 SHOWWINDOW if the control we're dealing with is a Form.
8129 (CreateWindow): if the control isn't a form, SendMessage
8130 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
8132 * Control.cs (SetVisibleCore): always use is_visible here, not
8133 value. If we use value, we can end up re-setting something
8134 visible if, for instance, you do Control.Hide() in a delegate
8135 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
8137 2007-02-20 Chris Toshok <toshok@ximian.com>
8139 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
8140 the message we need. PeekMessage returning false should not be a
8141 condition under which we exit the loop.
8143 2007-02-15 Chris Toshok <toshok@ximian.com>
8145 * Control.cs (Refresh): only refresh if we've got a handle and are
8147 (CreateAccessibilityInstance): CreateControl() here.
8148 (UpdateChildrenZOrder): complicate the code loop even more by
8149 taking into account controls that haven't had their handle
8150 created, and those that aren't visible. But on the flip side,
8151 simplify the code by splitting it into two loops. one which
8152 builds up the list of child controls we're interested in, and the
8153 other that sets the z order of those children.
8155 2007-02-14 Chris Toshok <toshok@ximian.com>
8157 * Control.cs: Control.AccessibilityObject causes the control to be
8158 created, not just the handle.
8160 2007-02-14 Chris Toshok <toshok@ximian.com>
8162 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
8163 problem on X where a window might have its handle created (and be
8164 visible) while the window is unmapped. calling XConfigureWindow
8165 on an unmapped window is bad, and generates X errors.
8167 2007-02-13 Chris Toshok <toshok@ximian.com>
8169 * Control.cs (CreateHandle): don't loop over our children setting
8170 their parent here. do it when in WndProc when we're shown.
8171 (UpdateChildrenZOrder): make this internal so we can call it from
8173 (WndProc): for WM_SHOWWINDOW, reparent the child control after
8174 creating its handle. Also, remove the calls to PerformLayout from
8175 here. they're done in ScrollableControl.OnVisibleChanged. Also,
8176 OnVisibleChanged only seems to be called directly here for the
8177 toplevel control. It's propagated down the window hierarchy by
8178 calls to child.OnParentVisibleChanged.
8179 (OnVisibleChanged): don't do layout here - it's done (oddly
8180 enough, according to a glance at stack traces on ms.net..) in
8183 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
8184 z order of our children before calling PerformLayout.
8186 2007-02-12 Chris Toshok <toshok@ximian.com>
8188 [big change, fixes #80020]
8190 * AccessibleObject.cs: we need to make owner internal again to fix
8191 some of ControlAccessibleObject.
8193 * Control.cs: lots of changes here. add support for WM_CREATE,
8194 for which we generate OnHandleCreated. Remove the OnHandleCreated
8195 call from CreateHandle. Also add support for WM_SHOWWINDOW where
8196 we create child controls. leave the MonoTODO's for the
8197 accessibility calls, but fix the exceptions so the tests pass.
8199 Add the InvalidOperationExceptions to Invoke methods, and remove a
8200 couple of InvokeInternal methods we aren't using.
8202 Also, add a couple of CreateHandle calls in places where we know
8203 the handles are being created but our code doesn't reference
8206 Make SetVisibleCore call OnVisibleChange if the handle isn't
8207 created. If the handle is created, we rely on XplatUI.SetVisible
8208 generating the event synchronously.
8210 Lastly, make sure we don't use this.Handle inside CreateHandle,
8211 because we can call back into client (and that code can dispose of
8214 * XplatUIStructs.cs: misc/cleanup.
8216 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
8217 although we don't populate the wParam properly.
8218 (CreateWindow): generate WM_CREATE.
8219 (MapWindow,UnmapWindow): make these calls synchronous, at great
8220 performance expense (particularly in the unmap case), to match
8223 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
8225 (set_MdiParent): don't recreate the handle unless it's been
8228 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
8231 * NativeWindow.cs: this is probably the weirdest part of the
8232 patch. We need a way to link up the window being created to the
8233 WM_CREATE message. Since we can only be creating one window at a
8234 time on a given thread, we keep track of a per-thread reference so
8235 we can dispatch it properly. We also need to keep track of the
8236 Hwnd currently being created so that the win32 backend doesn't
8239 * XplatUIWin32.cs: a similar change to the one we made in
8242 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
8244 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
8245 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
8246 to draw the menu shortcut string.
8248 2007-03-07 Jackson Harper <jackson@ximian.com>
8250 * TreeNode.cs: Add the 2.0 collapse method.
8252 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8254 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
8256 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8258 * DataGridView.cs: Change DataSource will clear column and row
8259 lists. Call Invalidate() to reflect DataSource change.
8261 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8263 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
8264 and a new row is added to it.
8266 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
8268 * DataGridView.cs: Add columns when DataSource is en empty list but
8269 is a System.Data.DataView (from a System.Data.DataTable).
8271 2007-03-06 Andreia Gaita <avidigal@novell.com>
8273 * Label.cs: Implement AutoEllipsis (2.0)
8275 2007-03-06 Jackson Harper <jackson@ximian.com>
8277 * TreeView.cs: Implement 2.0 TopNode setter property.
8278 - Use a local var instead of the skipped_nodes field for computing
8279 how many nodes to skip. Otherwise we won't scroll because the
8280 valuechanged handler checks if skipped_nodes is equal to the new
8282 - Implement 2.0 Sort method.
8283 - Add useless 2.0 DoubleBuffer property
8284 - Implement 2.0 LineColors property. Lets you change the color of
8285 the lines in the tree. Terribly useful for creating non cohesive
8287 - Implement 2.0 image key feature.
8289 2007-03-06 Jackson Harper <jackson@ximian.com>
8291 * TreeView.cs: We can't get the bounds of the nodes before raising
8292 the AfterSelect event, because that event could change the node's
8293 bounds (scrolling, font change, etc).
8295 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8297 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
8298 * Form.cs: Don't recreate handle when creating FormWindowManager, just
8299 update window styles. In CreateParams us VisibleInternal instead of
8300 VIsible to get the actual visible flag set for this form.
8301 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
8302 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
8303 handle the case when the form is already maximized, in which case
8304 it should be restored. Fixes #81043.
8306 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
8308 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
8310 2007-03-05 Jackson Harper <jackson@ximian.com>
8312 * TreeViewHitTestInfo.cs: implement.
8314 2007-03-05 Jackson Harper <jackson@ximian.com>
8316 * InternalWindowManager.cs: class status fix.
8318 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
8320 * InternalWindowManager.cs: All windows that have a parent
8321 are confined to their parent when they're being moved.
8324 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
8326 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
8327 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
8329 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8331 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
8332 buttons invisible before deciding which ones should be visible
8333 (fixes minimize/maximize buttons showing up in toolwindows). Remove
8335 * InternalWindowManager.cs: Remove warning.
8337 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8339 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
8340 to throw an InvalidOperationException is virtual mode is being used.
8342 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
8344 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
8345 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
8346 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
8347 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8348 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
8349 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
8351 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8353 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
8354 driver.KeyboardDelay from XplatUI.KeyboardDelay
8355 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
8356 (patch by Sergey Volk)
8358 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8360 * ToolWindowManager.cs: Added, contains logic for
8362 * CreateParams.cs: Add a few helper methods and an
8363 internal variable to know which control the CreateParams belongs
8365 * Control.cs: Call Form.ChangingParent when the
8366 parent is about to be changed.
8367 * XplatUIX11.cs: DeriveStyles (): Set
8368 caption_height for all windows that have captions and are children.
8369 Update to use ToolWindowManager instead of InternalWindowManager
8371 * XplatUIWin32.cs: Set fake window styles for all
8372 windows that have window managers.
8373 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
8374 now duplicated for mdi windows when they are
8375 maximized, first for the buttons the window itself has, then for
8376 the buttons that appear in the menu bar. Makes things a little
8377 easier). Updated UpdateWindowDecorations, SetWindowState and the
8378 mouse eventhandlers accordingly.
8379 * Form.cs: Add ChangingParent (), contains the
8380 logic of what should happen when the parent changes. In MdiParent
8381 don't set things that ChangingParent () is doing. When handling
8382 WM_CLOSE, we can close the form if there are any other modal forms
8383 and the current form is a descendent of the modal form.
8384 * InternalWindowManager.cs: A lot of refactoring,
8385 the title buttons are now extracted to a separate container class
8386 that takes care of all button code (clicks, tooltips, etc). Moved
8387 Iconic|Maximized|Normal Bounds properties to this class from
8388 MdiWindowManager, so that the window state logic can succeed for
8389 other than mdi wm's. Implemented general window state change logic.
8390 Moved CreateButtons to ThemeWin32Classic, since the theme might
8391 override which buttons are available when as well as the exact
8393 * FormWindowManager.cs: Added, contains logic for
8395 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
8396 which buttons go where (and if they are at all visible).
8397 Removed special handling of maximized windows, since they aren't special.
8398 In DrawManagedWindowDecorations don't try to draw the text if it is
8400 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
8401 use whatever the wm gives us.
8403 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
8405 * ButtonBase.cs: Add 2.0 properties.
8406 * Button.cs: Override Draw for 2.0.
8407 * Control.cs: Add Entered and Selected properties.
8408 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
8409 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
8410 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
8412 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
8414 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
8416 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
8418 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
8420 * XplatUIWin32.cs: Register a new class with Windows each time we get
8421 a new ClassStyle. [Fixes bugs #79432, #80817]
8422 * Controls.cs: Set the correct ClassStyle in CreateParams.
8423 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
8425 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
8427 * ListView.cs: Add fireEvent argument to ReorderColumn since the
8428 ColumnReordered event must not be signaled when modifying DisplayIndex
8429 of a ColumnHeader. Added internal ReorderColumns method which takes
8430 care of drawing, and updating the internal DisplayIndex of the
8431 ColumnHeader. Added AddColumn method which is invoked from
8432 ColumnHeaderCollection when adding or inserting columns, and which
8433 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
8434 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
8435 Recalculated dispay indices after removing a ColumnHeader.
8436 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
8437 match MS. Allows last display index to be returned after ListView
8438 is disposed. Update actual location of ColumnHeader when DisplayIndex
8441 2007-03-01 Everaldo Canuto <everaldo@simios.org>
8443 * LinkLabel.cs: Improve CalcTrimRectangle.
8445 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
8447 2007-02-28 Everaldo Canuto <everaldo@simios.org>
8449 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
8450 get rectangle as a result value.
8452 2007-02-28 Everaldo Canuto <everaldo@simios.org>
8454 * LinkLabel.cs: Theres some diferences between rectangle return from
8455 MeasureCharacterRanges and the area used for DrawString to fix this
8456 CalcMeasurementFactor method was created, it calcules the diferences
8457 to be use later to adjust rectangle in draw operations. Fixes #80473.
8459 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
8460 to adjust draw rectangle.
8462 2007-02-27 Everaldo Canuto <everaldo@simios.org>
8464 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
8465 text and some other changes to reduce and optimize source code.
8467 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
8469 * RadioButton.cs: Implement 2.0 event.
8470 * RelatedImageListAttribute.cs: Implement new class.
8472 2007-02-27 Everaldo Canuto <everaldo@simios.org>
8474 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
8476 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
8478 * CheckBox.cs: Implement 2.0 functionality.
8480 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8482 * ListView.cs: Refactor Add and AddRange methods of
8483 ListViewItemCollection, to not update the ListView
8484 everytime an item is added in AddRange. Also move the update
8485 code to a new CollectionChanged method, and call it
8486 from other methods that need it as well (this should also fix some
8487 bugs when Sorting is used).
8489 2007-02-27 Jackson Harper <jackson@ximian.com>
8491 * TextControl.cs: Try to never let the caret stay in a non-text
8493 * TextBoxBase.cs: Update the caret.
8495 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
8497 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
8498 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
8499 delete POINT structure, duplicate of one in XplatUIStructs.
8500 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
8502 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
8504 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
8505 edit box since otherwise the Label would immediately be set (even if
8506 the user did not modify the label). In OnKeyDown set Handled to true
8507 if Return or Escape was pressed. In ColumnHeaderCollection unlink
8508 columns that are to be removed. In ListViewItemCollection unlink items
8509 that are to be removed.
8511 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
8513 * TextRenderer.cs: If we set a GDI clip region, we need to clear
8514 it when we are done. [Fixes bug #80949]
8516 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8518 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
8520 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8522 * ListView.cs: I forgot to commit the changes for ListView
8523 in my previous patch.
8525 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8527 * Clipboard.cs: Partially implement an overload of SetDataObject.
8528 * Form.cs: Implement ShowWithoutActivation.
8529 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
8531 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8533 This is a first set of changes to make the Virtual mode works,
8534 by avoiding the retrieval of ListViewItem instances until
8537 * ListView.cs: Store item position in the ListView instead of the
8538 ListViewItem, this way we don't request the Bounds property of
8539 ListViewItem inside the ListView calculations, as well as cache the item
8540 size in item_size field. Store indexes instead of ListViewItem
8541 instances in the matrix used by icon view. Add a ItemMatrixLocation
8542 struct to hold the row and col info of the matrix info.
8544 * ListViewItem.cs: Don't store the location anymore, and only cache
8545 the rectangles for GetBounds. Use the ListView.GetItemLocation
8546 method to retrieve the actual location.
8548 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8550 * TextRenderer.cs: Add clipping support, thanks to George.
8553 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8555 * ListViewItem.cs: Cancel label edit when item is removed from
8557 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
8558 event before the edit textbox is displayed. Added CancelEdit method
8559 which is used end to editing while ignoring the value set by the
8560 user. In EndEdit, set focus to ListView to avoid losing focus to
8561 other controls. In ListViewItemCollection.Clear, cancel editing of
8562 any of the items. In Remove, cancel editing of item being removed.
8563 Avoid udplicate code by modifing RemoveAt to invoke Remove.
8565 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8567 * FileDialog.cs: Update FSEntry when move is successful. Fixes
8570 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8572 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
8573 compatible with non X11 systems. Fixes #80901.
8575 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
8577 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
8578 whether the item should be unselected and reselect. We do no want this
8579 when we're starting to edit the label. Do not fire the
8580 SelectedIndexChanged event from ListView when its already been fired
8581 by modifying ListViewItem.Selected. Fixes bug #80943.
8583 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8585 * TextRenderer.cs: Previos commit logic was backwards.
8587 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
8589 * TextRenderer.cs: Don't add padding on MeasureText if we were
8590 sent the NoPadding flag.
8592 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8594 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
8595 after DrawButton. To prevent image overlaps button borders SetClip and
8596 ResetClip added before and after draw image. Fixes #79129.
8598 2007-02-23 Everaldo Canuto <everaldo@simios.org>
8600 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
8601 window size, it fix problem when you run under win32 that theres
8602 Size diferent than ClientSize. Also fix controls size and positions
8603 to mimic Win32. Fixes #80837.
8605 2007-02-22 Everaldo Canuto <everaldo@simios.org>
8607 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
8608 menu area to fix some problems for non X11 systems. Fixes #80613.
8610 2007-02-22 Jackson Harper <jackson@ximian.com>
8612 * TreeNode.cs: When a node is expanded, set its is_expanded flag
8613 even if it doesn't have any children.
8615 2007-02-22 Jackson Harper <jackson@ximian.com>
8617 * TreeView.cs: Calculate the top node 'on the fly', this
8618 eliminates issues where you need to click on the tree before
8619 scrolling it to get the top node computed correctly.
8620 * TreeNodeCollection.cs: We don't need to mess with the top node
8623 2007-02-22 Jackson Harper <jackson@ximian.com>
8625 * DataGridViewRow.cs: Fix typo so height can actually be set.
8626 Patch by Peter Grimm.
8628 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8630 * FileDialog.cs: Fixed support for renaming files and directories.
8631 * ListView.cs: Do not lose focus when edit is canceled. Process
8632 Escape as regular key (to prevent closing of dialogs).
8634 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8636 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
8637 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
8639 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
8641 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
8642 did not modify label.
8643 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
8644 modified the text. Reset Label when user presses Escape in edit mode.
8645 Move focus to ListView after having cancelled or finished editing the
8648 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
8650 * ComboBox.cs: Removed unnecessary initializations. Marked items field
8651 private. Clear textbox when Text is set to null and SelectedIndex is
8653 * FileDialog.cs: Removed unnecessary initializations. Removed
8654 workarounds for ComboBox bugs that are now fixed. Modified
8655 DefaultExt, InitialDirectory and Title property to change null to
8656 zero-length string in getters. Avoid directly accessing fields.
8658 2007-02-20 Jackson Harper <jackson@ximian.com>
8660 * TextControl.cs: Remove RecalAlignments call, that was some
8661 debugging leftovers.
8662 - Don't use the line indent when we shouldn't.
8663 * RichTextBox.cs: Add support for paragraph left indents.
8665 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8667 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
8668 Seems like the class status pages doesn't catch params differences.
8670 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
8672 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
8674 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
8676 * ComboBox.cs: Setting Text should have no effect if item text of
8677 selected item exactly matches value. First lookup text using
8678 case-sensitive comparison, and fallback to case-insensitive comparison.
8679 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
8680 allow startIndex to be last index. Changed ArgumentOutOfRangeException
8681 paramname to match MS. Restart from first item if string is not found
8682 after startIndex. Fixed paramname of ArgumentNullException that is
8683 thrown for null value in ObjectCollection.Contains.
8685 2007-02-19 Everaldo Canuto <everaldo@simios.org>
8687 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
8689 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8691 * ListControl.cs: In SelectedValue use value.Equals to compare for
8692 equality instead of ==, otherwise it will fail for strings.
8695 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8697 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
8698 since the caret won't show up unless ShowSelection is true.
8701 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
8703 * Application.cs: When disabling all forms but the main form, do not
8704 disable any descendants of the main form (such as mdi children or
8705 other parented forms). Fixes #80822 on Windows.
8706 * Form.cs: If we have a parent, set the WS_CHILD style.
8707 * Control.cs: Update the window styles if the control whose parent has
8708 changed is a form (the WS_CHILD style has to be switched).
8710 2007-02-19 Everaldo Canuto <everaldo@simios.org>
8712 * XplatUIStructs.cs: MsgUIState structure added.
8714 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
8716 * FileDialog.cs: Removed need for separate fileName field. On 2.0
8717 profile, do not check filename(s) for illegal character if filename(s)
8718 were set non-interactively but always check on 1.0 profile. Fixed NRE
8719 in DefaultExt and only strip off first leading dot. Improve exception
8720 message when invalid Filter is set. Do not ignore InitialDirectory if
8721 it does no exist. Store specified Title, and if empty use default
8722 title (depending on type of dialog). Added an internal DialogTitle
8723 property for retrieving dialog title. Fixed logic of displayed dir to
8724 more closely match MS. Avoid setting ComboBox.Text to a zero-length
8725 string as its buggy.
8726 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
8727 FileName is a zero-length string (it can never be null). Override
8728 DialogTitle property to set default title of dialog box.
8729 * SaveFileDialog.cs: Override DialogTitle property to set default
8730 title of dialog box.
8732 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
8734 * FileDialog.cs: Modify default text of filename and filetype labels
8735 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
8736 after we've updated the SelectedIndex. Fixes part of bug #80887.
8737 * SaveFileDialog.cs: Set text of filetype label.
8739 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8741 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
8742 label field. Needed by latest Jackson's fixes for ListView.
8744 2007-02-16 Andreia Gaita <avidigal@novell.com>
8746 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
8747 print preview images.
8749 2007-02-16 Jackson Harper <jackson@ximian.com>
8751 * ListView.cs: Make AfterLabelEdit work correctly.
8752 * FileDialog.cs: After changing the name of the folder, we have to
8753 make sure that it is created, or that we pop up an error because
8756 2007-02-16 Jackson Harper <jackson@ximian.com>
8758 * X11Dnd.cs: Implement aliases on mime handlers, so things like
8759 System.String are mapped to text.
8760 - Handle dataobjects, getting all the possible formats out of them
8761 - We dont need the drag event args before we give feedback. This
8762 allows feedback cursors to be immediate before selections have
8765 2007-02-16 Jackson Harper <jackson@ximian.com>
8767 * TextBoxBase.cs: Modified the method for inserting images to
8768 taking a line and position instead of tag and position.
8769 * RichTextBox.cs: Handle PngBlip data by inserting the png image
8771 * TextControl.cs: Allow images to be inserted as the first tag of
8773 - Fix some off by one issues when we assume the first tag is a
8774 text tag, not an image tag.
8776 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8778 * ListView.cs: Set focus to ListView when ItemControl gets a
8779 WM_RBUTTONDOWN message, to mimic .Net behaviour.
8780 Fixes part of #80467.
8782 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
8784 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
8785 validate Text input (if null or empty string reset Value to default
8786 value). Fixes #80830.
8788 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8790 * ListView.cs: Set owner as null for columns and items when
8791 Dispose is invoked. Fixes #80607.
8793 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
8795 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
8796 showing DropDowns, don't show a Grip when doing Flow layout.
8797 [This fixes the toolbox in PDN 2.72.]
8798 * ToolStripItem.cs: Add Anchor property and some internal properties to
8799 reduces needed changes to FlowLayout.
8800 * ToolStripOverflow.cs: Remove unused variable.
8801 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
8802 use it in the layout calculations.
8804 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8806 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
8809 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
8812 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8814 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
8815 MeasureString format, it can make button very large in some cases, it is
8816 strange but is what win32 do.
8818 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8820 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
8823 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
8824 rendering, the value is based on MenuAccessKeysUnderlined.
8826 2007-02-13 Everaldo Canuto <everaldo@simios.org>
8828 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
8831 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
8833 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
8834 and use MenuAccessKeysUnderlined instead.
8836 2007-02-13 Andreia Gaita <avidigal@novell.com>
8838 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
8839 A selected control would not get a Focus call if:
8840 - the default active control of the container is the same as
8841 the one that was selected
8842 - we are switching from one container to another
8843 Under these conditions, the container being selected already has
8844 an active_control, which is the same as the one being activated,
8845 so set_ActiveControl would always return and not send the Focus
8846 call. Fix to check if the currently active control of the container
8847 is actually focused.
8849 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
8851 * StatusStrip.cs: Implement the spring layout.
8852 * ToolStripControlHost.cs: Make sure the hosted control's visibility
8853 always matches the host.
8854 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
8857 2007-02-13 Andreia Gaita <avidigal@novell.com>
8859 * Control.cs: Code reorganization only.
8860 - Reorganize the WndProc cases so that each case has it's own handling method,
8861 to help with the no-line-numbering stack traces.
8862 - Formatting changes (it's vstudio's fault, really :p)
8864 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8866 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
8867 Thread.CurrentUICulture to match DateTimePicker's (and MS)
8870 2007-02-12 Jackson Harper <jackson@ximian.com>
8873 * TextBox.cs: By default we have a non multiline document
8874 - use the multiline property instead of the internal variable
8875 * TextBoxBase.cs: Treat multiline and non multiline the same in
8877 - Use the documents multiline flag instead of tracking it ourself
8878 * TextControl.cs: Attempt at getting multiline to match MS
8879 behavior. Lines now track an offset, which is either their X or Y
8880 offset depending on whether or not we are in multiline mode.
8881 - Update all the methods to understand that lines have an X value.
8882 - Fix crash in Undo::Duplicate when empty lines are deleted.
8884 2007-02-12 Everaldo Canuto <everaldo@simios.org>
8886 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
8887 code moved to properties PreferredHeight and PreferredWidth. It solve the
8888 all problems when preferred sizes must be recalculated. Fixes #80801.
8890 2007-02-12 Everaldo Canuto <everaldo@simios.org>
8892 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
8893 font height when compatible_text_rendering is false. Partially fix #80801.
8895 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8897 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
8899 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8901 * Form.cs: Improved exception messages in ShowDialog.
8903 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
8905 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
8906 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
8907 if not set. Fixes bug #80764. Avoid accessing current_settings field
8910 2007-02-08 Everaldo Canuto <everaldo@simios.org>
8912 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
8915 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
8916 public in 2.0 and for easy maintenance and dont break compatibility it is
8919 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8921 * ToolStripItem.cs: Implement using images from ImageList.
8923 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8925 * DateTimePicker.cs: Change default date-formatting culture from
8926 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
8927 seems to be the way MS does it.
8929 2007-02-08 Andreia Gaita <avidigal@novell.com>
8931 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
8932 (the 6 was cut off on the right side)
8934 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8936 * Form.cs: Tell MenuStrips to close when the form is clicked.
8937 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
8938 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
8939 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
8940 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
8941 support for Overflow, where items that do not fit are automatically
8942 reparented to a drop down menu.
8943 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
8944 Also: fixes bug #80747.
8946 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8948 * ComboBox.cs: Remove warning (unused code).
8949 * ScrollableControl.cs: Remove warning for 1.1 profile.
8951 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8953 * Form.cs: Remove a warning.
8955 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8957 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
8958 'g' specifier, not documented anywhere, but seems to always show up
8959 as a single space (might have something to do with the DateTime 'g'
8960 specifier, which is the era format, but since DateTimePicker can't
8961 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
8962 won't crash if the format has an unmatched quote. Now shows
8963 single-character formats correctly. Fixes #80744.
8965 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
8967 * StatusStrip.cs: Stretch property needs to call base.Stretch,
8968 not this.Stretch to fix stack overflow. [Fixes bug #80760]
8970 2007-02-07 Chris Toshok <toshok@ximian.com>
8972 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
8973 background color. it overwrites the background image we've
8974 already painted. Fixes #80599.
8976 2007-02-07 Chris Toshok <toshok@ximian.com>
8978 * DataGrid.cs: return immediately from Edit() when there are no
8979 columns. Fixes #80662.
8981 2007-02-07 Chris Toshok <toshok@ximian.com>
8983 * MessageBox.cs: fix #80625. don't always show the Help button in
8984 2.0. use the displayHelpButton parameter to determine if we
8985 should show it. Also, make the internal show_help field private.
8987 2007-02-07 Chris Toshok <toshok@ximian.com>
8989 * Control.cs (SetVisibleCore): check in the proposed patch for
8990 80604, and set is_visible before calling CreateControl.
8992 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
8994 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
8995 MonoInternalNote. This is added automagically by VS2005, so let's not crash
8998 2007-02-06 Everaldo Canuto <everaldo@simios.org>
9000 * MenuAPI.cs: hotkey_active internal field added, it is required because
9001 we need to know when hotkeys must be draw, before this change a keystate
9002 Navigating was used but we can have menu in navigating state without
9003 hotkeys. Fixes #80694.
9005 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
9007 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
9009 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
9010 corresponding events and methods to be internal for 1.1 profile and
9011 public for 2.0 profile (required by SizeGrip).
9012 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
9013 implicit control list). Don't set the size nor the location of the
9014 SizeGrip anymore as it's not needed.
9015 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
9016 draw directly on the captured control (fixes #80656). Removed
9017 ShowGrip (it wasn't used anywhere), redraw (always true), added
9018 GetDefaultSize and GetDefaultRectangle to calculate defaults.
9019 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
9020 be called from SizeGrip.
9022 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
9024 * Timer.cs: Throw ArgumentException if Interval <= 0.
9026 2007-02-05 Jackson Harper <jackson@ximian.com>
9028 * TreeView.cs: We need to check scrollbar visibility when window
9029 visibility is updated, because non visible trees don't ever add
9031 * Cursor.cs: We want the override cursor to be reset to NULL when
9032 we set current cursor to the default cursor.
9034 2007-02-05 Jackson Harper <jackson@ximian.com>
9036 * TextControl.cs: Don't have crlfs when we are non multiline.
9037 - Consolidate the line position.
9039 2007-02-05 Jackson Harper <jackson@ximian.com>
9041 * X11Keyboard.cs: BACK+CTRL gets a special char code.
9043 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9045 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
9046 handling LeaveNotify->NotifyUngrab in order to send
9047 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
9048 after calling XUngrabPointer, so we call WindowUngrabbed directly
9049 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
9050 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
9051 MouseCaptureChanged correctly. Also create handles if changing
9052 Capture (matches MS behaviour).
9054 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9056 * SizeGrip.cs: Make the last change 2.0 only.
9058 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9060 * SizeGrip.cs: If resizing and the capture is lost, revert any size
9061 changes to initial size (fixes #80597).
9063 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9065 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
9067 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9069 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
9070 background) and only allow dragging if enabled. This way the
9071 sizegrip can be used to fill the open square that otherwise would
9072 have been shown in the bottom right corner of ScrollableControl
9073 when ScrollableControl is not suppose to support sizing.
9074 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
9075 sizegrip is shown and enabled, and hook up with necessary events.
9077 2007-02-01 Chris Toshok <toshok@ximian.com>
9079 * DataGridTextBoxColumn.cs: clean up the
9080 GetFormattedString/GetColumnValueAtRow combination of functions.
9081 Also fix UpdateUI, and the initial state of
9082 IsInEditOrNavigateMode.
9084 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
9085 aren't supposed to scroll the textbox here, we're supposed to
9086 scroll the datagrid.
9088 2007-02-01 Chris Toshok <toshok@ximian.com>
9090 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
9091 setting the position.
9093 2007-02-01 Chris Toshok <toshok@ximian.com>
9095 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
9096 here, since the most recent focus fixes keep us from generating
9097 the Leave event when our textbox gets focus.
9098 (Edit): we should be passing null for the column style's
9099 instantText parameter.
9101 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
9103 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
9104 raised. Fixes menu text/icons not showing up in PDN.
9106 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9108 * Control.cs: Remove code in constructor that makes every
9109 control with WS_CHILD set have initial location -1, -1.
9111 2007-01-31 Jackson Harper <jackson@ximian.com>
9113 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
9115 * XplatUIX11.cs: Give teh keyboard to teh dnd.
9117 2007-01-31 Jackson Harper <jackson@ximian.com>
9119 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
9120 - Remove some debug code.
9122 2007-01-31 Jackson Harper <jackson@ximian.com>
9124 * XplatUIX11.cs: If you set the override cursor during a grab, it
9125 should actually override the grab cursor. This comes into play
9126 when you are setting custom cursors in a DND feedback method.
9128 2007-01-31 Jackson Harper <jackson@ximian.com>
9130 * X11Dnd.cs: Add support for handling the QueryContinue and
9131 GiveFeedback events.
9132 - Cancel drag and drop actions when the escape key is clicked.
9133 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
9134 can handle the ESCAPE key.
9135 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
9136 done when dnd events are continued after the button is released.
9137 - Add a new helper method so that dnd can translate key events.
9139 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
9141 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
9142 make it more obvious what is happening.
9144 2007-01-30 Jackson Harper <jackson@ximian.com>
9146 * XplatUIX11.cs: Don't break when handling button release in drag
9147 and drop operations. We need that BUTTONUP message to get through
9148 so capture is released.
9149 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
9150 this is handled automatically when the mouse is down.
9152 2007-01-30 Jackson Harper <jackson@ximian.com>
9154 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
9155 is closed, so we need to make sure that we aren't changing the
9156 dialog result when the OK (Open or Save) button has been clicked
9157 and we are closing the window ourselves. Note we don't need to
9158 worry about the cache being written in this case, because it was
9159 already done in the previous FilOk call.
9161 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9163 * DateTimePicker.cs: Remove a warning.
9164 * ComboBox.cs: Remove a couple of warnings.
9166 2007-01-29 Chris Toshok <toshok@ximian.com>
9168 * XplatUIX11.cs: don't crash, and remove the icon if the user has
9169 set one, if SetIcon is passed a null icon.
9171 2007-01-29 Andreia Gaita <avidigal@novell.com>
9173 * TextBox.cs: Redraw when the password characters changes
9174 * TextControl.cs: Check if textbox has a password char and draw
9175 a line of password chars instead of the text in the line. LineTag gets
9176 an extra Draw() method which allows document.Draw to override the text
9177 that will be drawn. Removes 1024 char limitation on length of passworded
9180 2007-01-29 Jackson Harper <jackson@ximian.com>
9182 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
9183 single chars is not.
9185 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
9187 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
9188 one pixel. Fix a StackOverflowException caused by an overload wrongly
9191 2007-01-26 Everaldo Canuto <everaldo@simios.org>
9193 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
9194 also remove ProcessArrowKey and put the code inside ProcessKeys.
9196 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
9198 * PaddingConverter.cs: Added.
9200 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9202 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
9203 ShowPanels is false (fixes #80600). Only draw up to 127 characters
9204 of text (fixes #80601). For panels clip the text to draw to the
9205 panel (fixes #80603).
9207 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9209 * ComboBox.cs: Fixed implementation of ResetText.
9211 2007-01-25 Jackson Harper <jackson@ximian.com>
9213 * TextControl.cs: For the last char of a line we need to use the
9214 line size, not that chars width, since it won't actually be
9215 computed since the right side of a char is based on the start of
9216 the left side of the next char, and the next char does not exist.
9218 2007-01-25 Chris Toshok <toshok@ximian.com>
9220 * Splitter.cs: fix the new unit tests, and reindent some switch
9223 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9225 * ComboBox.cs: Implemented 2.0 methods and events.
9226 * TextBoxBase.cs: Added OnTextUpdate, so that
9227 ComboBox.ComboTextBox can inform ComboBox of it.
9229 2007-01-25 Jackson Harper <jackson@ximian.com>
9231 * TextControl.cs: Respect ShowSelection when deciding whether or
9232 not to display the caret, this allows comboboxes to have carets
9233 when the combotextbox does not have focus.
9235 2007-01-25 Jackson Harper <jackson@ximian.com>
9237 * TextControl.cs: Add a Suspend/Resume for updating, basically the
9238 same as the Suspend/Resume for recalc, except this will do actual
9240 - New Undo manager, works much like the MS version.
9242 * TextBoxBase.cs: The Cut operation is undoable.
9244 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9246 * TextBoxBase.cs: Don't antialias text. Makes it look way better
9247 on Windows (no difference on Linux).
9249 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9251 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
9252 we don't want to activate any windows. Fixes #79433.
9254 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
9256 - ButtonBase.cs: Fix capitalization of parameter: disposing.
9259 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
9262 - Move to using System.ComponentModel.EventHandlerList
9263 - Replace Refresh with Invalidate
9264 - Clear the mime filecache on closing
9265 - Some other memory reducing work. After beeing closed FD now uses
9266 only about 300 KB for the fdo mime stuff plus the memory of the
9268 * Mime.cs: Changed coding style and removed unnecessary commented
9269 code. Some more memory memory reducing work.
9271 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9273 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
9274 a few other missing 2.0 properties.
9275 * Theme.cs: Added DrawFlatStyleComboBox.
9276 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
9278 2007-01-24 Chris Toshok <toshok@ximian.com>
9280 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
9281 wake_waiting flag, not just when there's data to be read. if we
9282 don't, then future wakeup's won't reach us and we'll be doomed to
9283 wait for the entire 1 second timeout forever (unless there are X
9286 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
9288 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
9289 until you pass Items.Count, not Items.Count - 1 like 1.1.
9291 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
9293 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
9295 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
9297 * ToolStripContainer.cs: The recent Dock fix exposed that I was
9298 adding the panels in the wrong order.
9300 2007-01-24 Jackson Harper <jackson@ximian.com>
9302 * TextBoxBase.cs: When we move the caret we also need to move the
9303 selection, this fixes some random crashing after doing select
9304 text, unselect, delete a char, paste.
9306 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9308 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
9310 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9312 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
9313 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
9314 * ToolBar.cs: Force redraw in BackgroundImageChanged.
9316 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9319 - Implement support for vertical toolbars. Fixes #80539;
9320 - Call LayoutToolBar when resize, it fix some other problems in layout.
9321 - Rename requested_height to requested_size, as we can have width on it
9322 when toolbar is vertical.
9323 - Create a private property "Vertical" that uses Dock to verify when
9324 toolbar is vertical or not.
9325 - Set ControlStyles when change Dock property.
9326 - Refactory in LayoutToolBar to have better variables names and to support
9328 - Fixes default value for ButtonSize when button count is equal zero, size
9329 must be (39, 36) test case writed.
9331 2007-01-23 Chris Toshok <toshok@ximian.com>
9333 * Control.cs: fix the checks so that they work correctly for mdi
9336 2007-01-23 Chris Toshok <toshok@ximian.com>
9338 * Control.cs: ControlCollection seems to have super-secret
9339 abstraction breaking knowledge of Mdi containers. allow MdiClient
9340 to add toplevel controls.
9342 2007-01-23 Chris Toshok <toshok@ximian.com>
9344 * Control.cs: throw an ArgumentException if a toplevel control is
9345 added to our control collection from ControlCollection.Add, as
9346 well as from ControlCollection.IList.Add. This fixes the
9347 ControlSetTopLevelTest.TestTopLevelAdd unit test.
9349 Also, in ControlCollection.IList.Add, don't through an
9350 ArgumentNullException, throw an ArgumentException, when value ==
9351 null. This matches MS.
9353 2007-01-23 Chris Toshok <toshok@ximian.com>
9355 * BindingSource.cs: initial, incomplete, implementation of
9358 2007-01-23 Jackson Harper <jackson@ximian.com>
9361 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
9362 that I can fix a broken unit test (TextBoxTest::ClearUndo)
9364 2007-01-23 Everaldo Canuto <everaldo@simios.org>
9366 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
9368 2007-01-23 Andreia Gaita <avidigal@novell.com>
9370 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
9371 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
9372 IndexOfKey() for 2.0
9374 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9376 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
9377 to prevent it from changing z-order.
9378 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
9379 leave UI updates in MdiWindowManager.
9380 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
9381 1 sized (NC handling goes weird on Linux otherwise).
9382 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
9383 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
9384 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
9385 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
9386 and SetWindowState(s) to allow for changing the size of an activated child
9387 before activating it (reduces a lot of flicker).
9389 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
9391 * Form.cs: Changing FormBorderStyle has different semantics based
9392 on whether the Form is visible or not. If not visible, don't change
9393 the Size. But InvalidateNC needs to be called to force the window
9394 to pick up the changes and redraw itself. [Fixes bug #80574]
9396 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
9399 * ContainerControl.cs: ProcessCmdKey.
9400 * ErrorProvider.cs: new constructor.
9401 * Form.cs: fix AutoValidateEvent compiler warning.
9402 * Label.cs: fix OnAutoSizeChanged compiler warning.
9403 * MenuStrip.cs: fix CanOverflow compiler warning.
9404 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
9405 * TextBox.cs: Dispose.
9406 * ToolStrip.cs: CanOverflow, re-enable double buffering.
9407 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
9408 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
9409 * ToolStripItem.cs: Overflow, RightToLeft properties.
9411 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9413 * Form.cs: Move the layout of the main form to MdiWindowManager.
9414 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
9415 do a layout of the main window to update MdiClient's client area to
9416 the right area. Fixes #80533. Remove the calculation of nc size,
9417 it was just wrong and the correct one is the same as for
9418 InternalWindowManager.
9420 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
9422 * Control.cs: Setting Anchor or Dock needs to reset the other
9423 to its default. [Fixes bug #80556]
9425 2007-01-20 Chris Toshok <toshok@ximian.com>
9427 * CheckedListBox.cs: class status changes.
9429 * ScrollableControl.cs: same.
9431 * RichTextBox.cs: same.
9433 * ContainerControl.cs: same.
9435 * ListView.cs: same.
9437 * NotifyIcon.cs: same.
9439 * MenuStrip.cs: same.
9441 * RadioButton.cs: same.
9443 * CheckBox.cs: same.
9445 * PrintPreviewDialog.cs: same.
9449 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
9451 * TreeNode.cs: Apply Alan's patch for Name property.
9453 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9455 * Form.cs: Implemented SizeGripStyle.
9456 * SizeGrip.cs: Check for minimum and maximum size for the
9457 control being resized and only resize if size has actually
9460 2007-01-19 Chris Toshok <toshok@ximian.com>
9462 * DataGridColumnStyle.cs: stop setting _readonly in the
9463 PropertyDescriptor setter. fixes a unit test failure.
9465 also, rename ParentReadOnly to TableStyleReadOnly, and have it
9466 just consult our table style (if we have one). We don't need to
9467 consult the datagrid readonly attribute because that's passed in
9468 as the _ro arg to Edit. this simplifies things a little.
9470 * DataGrid.cs: use CurrentColumn instead of
9471 current_cell.ColumnNumber just to simplify some of the code.
9473 switch the order of some things in the CurrentCell setter to keep
9474 the previous cell from getting a textbox again -
9475 EnsureCellVisibility causes scrolling to happen, which calls Edit.
9476 So we need to set the new cell before calling it.
9478 call Edit in OnEnter, as does Microsoft.
9480 also, make sure the current table style isn't the one we create
9481 initially when checking to see if it's different than the one
9482 we're setting it to in BindColumns (this fixes #80421).
9484 * GridTableStylesCollection.cs: table styles can have "" for a
9485 mapping name. part of the fix for #80421.
9487 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
9490 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9492 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
9493 and less GDI object leaky-er.
9495 2007-01-18 Andreia Gaita <avidigal@novell.com>
9497 * LinkLabel.cs: Add opaque control style
9499 2007-01-18 Jackson Harper <jackson@ximian.com>
9501 * TextControl.cs: Calculate width properly.
9502 - Don't store the tag's X offset, this can be figured out very
9504 - When getting the caret tag make sure to get the last empty tag.
9506 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9508 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
9511 * Control.cs: Color.Empty shouldn't count for previous transparent
9514 2007-01-18 Jackson Harper <jackson@ximian.com>
9518 * TextControl.cs: Starting to merge in some pieces of my older
9519 undo work. Basically just some slight cleanup of the undo API.
9521 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9523 * TrackBar.cs: Fix signature of RightToLeftLayout.
9524 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
9525 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
9526 * Application.cs: Implemented UseWaitCursor.
9528 2007-01-18 Jackson Harper <jackson@ximian.com>
9530 * TextControl.cs: We can't skip tags if any part of the tag is
9533 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9535 * ContainerControl.cs: Override OnLayout.
9537 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9539 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
9541 * ContextMenuStrip.cs: Make sure context menu is shown on top of
9544 2007-01-18 Chris Toshok <toshok@ximian.com>
9546 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
9547 (leftover from the container_selected days, I'd wager). fixes bug
9550 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9552 * Control.cs: Apply patch from George to fix the new testcase on
9553 bug #80451. We can't just check for Color.Transparent, we need
9554 to check if the back color's alpha channel is < 255.
9556 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
9558 * Form.cs: Move setting show_icon = true to before the constructor
9559 so that the base constructor has that information when it calculates
9560 the form's size. Was causing forms to be (6, 6) bigger than they
9561 were supposed to be. Thanks for catching this Rolf!
9563 2007-01-18 Jackson Harper <jackson@ximian.com>
9565 * TextControl.cs: When replacing a selection we need to invalidate
9566 from the initial selection start, because selection start is moved
9567 to the end of the replacement.
9569 2007-01-18 Andreia Gaita <avidigal@novell.com>
9571 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
9573 2007-01-18 Chris Toshok <toshok@ximian.com>
9575 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
9578 2007-01-17 Everaldo Canuto <everaldo@simios.org>
9580 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
9581 layout methods and properties from ToolBarButton must be available
9582 into ToolBarButtonInfo.
9584 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9586 * Control.cs: If the control has a transparent background, we
9587 need to refresh it when it moves and when it's parent's background
9588 image changes. [Fixes bug #80451]
9590 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9592 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
9594 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
9596 * XplatUIWin32.cs: Implement proper double buffering for Windows.
9597 [Fixes bug #80447, and probably speeds up things as well]
9599 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9601 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
9602 * XplatUIWin32.cs: We need to recalculate NC size after changing
9603 window style to toolwindow (otherwise the client rectangle will be
9604 3 pixels to small for some reason).
9605 * MdiWindowManager.cs: Revert NC size calculations to match how
9606 they are calculated only based on window styles (to match
9607 Win32AdjustWindowRectEx, since otherwise when setting size or
9608 location, Control will call Win32AdjustWindowRectEx to update client
9609 size, which would provoke a paint, then we'd get a NCCALCSIZE and
9610 calculate a different value of client size causing another paint
9612 * InternalWindowManager.cs: When moving or resizing a window only
9613 update size or location if they actually changed.
9614 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
9615 (seems to match Windows behaviour better). Cleaned up
9616 ManagedWindowDecorations to draw what's needed and nothing else
9617 (was drawing borders and lines where they shouldn't be)
9618 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
9619 (style = 0xFFFF) and takes into account caption height when
9620 calculating window rectangle.
9622 2007-01-16 Everaldo Canuto <everaldo@simios.org>
9624 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
9625 can be added to toolbar multiple times, we need to maintain a list of
9626 button information for each positions.
9628 2007-01-16 Everaldo Canuto <everaldo@simios.org>
9630 * ToolBar.cs: Some small stetic changes.
9632 2007-01-16 Jackson Harper <jackson@ximian.com>
9634 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
9635 that allow us to have nested recalc = false blocks.
9636 - Add paste support for images in the RichTextBox
9637 * RichTextBox.cs: flush the text after the color is changed, so
9638 the change takes effect.
9640 - Some extra debugging info
9641 * TextControl.cs: Tags no longer track their length, it is just
9642 computed from the next tags length, this makes things a little
9643 simpler and reduces places that we have to track length changes.
9644 - Refactored the linetag class a little so we could make it
9645 a base class for different kinds of tags
9646 - Created a image tag, a tag that can have a single image inserted
9648 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
9649 that we can call suspend multiple times.
9650 - Add some debugging methods
9652 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9654 * MdiClient.cs: Add ActivatePreviousChild for
9655 mdi child window navigation.
9656 * Form.cs: Use MdiClient.ActivateNextChild/
9657 ActivatePreviousChild instead of Form.SelectNextControl
9658 to select the next/previous child since
9659 SelectNextControl doesn't do it in the same order
9660 as mdi children should do it.
9662 2007-01-16 Chris Toshok <toshok@ximian.com>
9664 * Control.cs: remove container_selected field.
9666 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9668 * MdiClient.cs: Update main form's ActiveChild when
9669 updating keyboard focus for the mdi child.
9671 2007-01-16 Jonathan Pobst <jpobst@novell.com>
9673 * Control.cs: PreferredSize fix.
9675 * Form.cs: Add several 2.0 events, properties, and methods.
9677 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
9679 * Form.cs: Provide meaningful message when MdiParent is assigned a
9680 Form that is not an MdiContainer.
9682 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9684 * MdiClient.cs: Update main form's ActiveChild when
9685 activating a mdi child.
9687 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9689 * MdiWindowManager.cs: Fix NRE when merging menus and main form
9690 doesn't have a menu.
9692 * Form.cs: Request NCRecalc after creating a mdi child window.
9693 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
9694 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
9696 * MdiClient.cs: Add new method SendFocusToActiveChild that either
9697 sends keyboard focus to the active child, or to the MdiClient
9698 if there are no child forms.
9700 2007-01-15 Chris Toshok <toshok@ximian.com>
9702 * ListView.cs: drop the *Internal overrides, just do our work in
9703 ItemControl's WndProc instead.
9705 * UpDownBase.cs: a few large changes. Fix up the Selectable state
9706 of the various controls, and forward the events properly (in the
9707 same manner as MS) from the textbox to the UpDown. Also the
9708 ActiveControl of the UpDownBase gets set properly now. Finally,
9709 we don't call UpdateEditText from the ctor. Fixes bug #79957.
9711 * NumericUpDown.cs: set Text in the ctor.
9713 * DomainUpDown.cs: call UpdateEditText in the ctor.
9715 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
9716 so even a Selectable = false textbox can be focused if you click
9719 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
9720 just add their handling in their respective WndProc's. Also add
9721 an explicit FocusInternal method that doesn't consult CanFocus
9722 before calling Select(this).
9724 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
9725 do our work in WndProc instead.
9727 * TabControl.cs: same.
9729 * ComboBox.cs: same.
9731 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9733 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
9736 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9739 * ThemeWin32Classic.cs: Don't draw the item text outside
9740 item bounds in Details view, as well as use trimming.
9743 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9745 * Form.cs: Implement Form.ShowIcon.
9747 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
9748 null, which when combined with the DlgModalFrame window style removes
9749 the icon from the title bar.
9751 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9753 * Control.cs: Call OnMouseClick after OnClick. (2.0)
9755 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9757 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
9758 menu when mdi child windows theres a menu, uses insert to get icon
9759 at first position. Partially fix #80006.
9761 2007-01-15 Jonathan Pobst <jpobst@novell.com>
9763 * Clipboard.cs: Implement 2.0 methods.
9765 2007-01-15 Everaldo Canuto <everaldo@simios.org>
9767 * Menu.cs: Implement Insert method of MenuItemCollection class
9770 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9772 * ListView.cs: Implement 2.0 FindItemWithText method.
9774 2007-01-11 Everaldo Canuto <everaldo@simios.org>
9776 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
9777 to calculate menu bar size. Fixes #80290.
9779 2007-01-11 Everaldo Canuto <everaldo@simios.org>
9781 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
9783 2007-01-11 Chris Toshok <toshok@ximian.com>
9785 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
9788 2007-01-11 Chris Toshok <toshok@ximian.com>
9790 * LinkLabel.cs: make sure to call base.Select in our Select method
9791 if it turns out we're going to be selected (i.e. if we have a link
9792 that is going to receive focus). That way our container's
9793 ActiveControl is updated properly.
9795 2007-01-11 Chris Toshok <toshok@ximian.com>
9797 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
9798 they have 1 or more links. this fixes the crash gert reported.
9800 2007-01-11 Andreia Gaita <avidigal@novell.com>
9802 * ContainerControl.cs: Remove ContainerSelected flag, not needed
9805 * Control.cs (Controls.Add): Check if control to be added to the collection
9806 is a top level control, and throw an ArgumentException if it is.
9807 Remove ContainerSelectedFlag, not needed anymore.
9809 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
9810 top most control doesn't activate the form. This fixes a problem in the
9811 MessageBox, where the default button wouldn't get focus because the form
9812 was activated before being Loaded - when the Owner is set, SetTopMost is
9813 called, and it would activate it.
9815 2007-01-11 Jonathan Pobst <jpobst@novell.com>
9817 * Button.cs: When clicked and setting the parent form's DialogResult,
9818 use FindForm instead of Parent, since parent could be a container
9819 control and not the Form. Fixes bug #80495.
9821 2007-01-10 Chris Toshok <toshok@ximian.com>
9823 * Form.cs: move the call to SendControlFocus into the same
9826 2007-01-10 Chris Toshok <toshok@ximian.com>
9828 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
9829 It breaks in the face of the new ActiveControl stuff, and should
9832 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
9833 activecontrol's focus if it's not already set, after we set
9834 ActiveControl, but before we call OnActivated. Re-fixes #79667
9835 after the previous focus/active control fixes regressed it.
9837 * Control.cs: reindent some code.
9839 2007-01-10 Chris Toshok <toshok@ximian.com>
9841 * Splitter.cs: clearing some outstanding changes from my tree.
9842 Replace all accesses (not writes) to the internal dock_style field
9843 with the Dock property.
9845 2007-01-10 Chris Toshok <toshok@ximian.com>
9847 * Control.cs: make FireEnter, FireLeave, FireValidating, and
9848 FireValidated virtual.
9850 * Form.cs: override and don't chain up calls to FireEnter and
9853 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9855 * ListView.cs: Add more text padding space when using
9856 auto resize for columns (the previous value didn't work fine).
9858 * ThemeWin32Classic.cs: Update text position inside columns,
9859 to match the appeareance of .Net.
9861 * ColumnHeader.cs: When using auto resize, only the Width should
9862 depend on the sub items, not the Height. Also, set width after
9863 auto resizing (the value of Width should never remain as -1 or -2).
9865 2007-01-10 Chris Toshok <toshok@ximian.com>
9867 * Application.cs: fix compilation errors when debug is enabled.
9869 2007-01-10 Chris Toshok <toshok@ximian.com>
9871 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
9872 add some nice ascii art pictures and explanation of the process).
9873 (GetMostDeeplyNestedActiveControl): new utility function we need
9874 because our ActiveControl can refer to a child container with its
9877 * Form.cs (OnActivated): remove the call to SelectActiveControl
9878 from here, since you can override this method and not chain up,
9879 and winforms still sets the active control.
9880 (OnCreateControl): also remove the unnecessary SelectActiveControl
9882 (WndProc): it's actually called from the WM_ACTIVATE block, just
9883 before calling OnActivated.
9885 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
9886 inside the else. the ActiveControl setter will end up setting
9887 focus on @control. This keeps us from setting it again (and
9888 generating an extra LostFocus/GotFocus pair).
9889 (Select (bool, bool)): reindent.
9891 2007-01-10 Jonathan Pobst <jpobst@novell.com>
9893 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
9894 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
9895 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
9896 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9897 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
9898 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
9899 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
9900 ToolStripTextBox.cs: Another wave of corcompare work.
9902 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9904 * ColumnHeader.cs: Implement 2.0 AutoResize method using
9907 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
9908 methods by callling Column.AutoResize method on columns.
9910 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
9912 * Control.cs: Provide proper implementations of PreferredSize
9913 and GetPreferredSize (2.0).
9915 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
9917 * Form.cs: Remove one character (!) to make my previous OnClosing
9918 stuff work for modal windows like MessageBox.
9920 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
9924 ListView.Columns to get the last displayed column. Fixes #80452.
9926 2007-01-09 Everaldo Canuto <everaldo@simios.org>
9928 * Label.cs, LinkLabel.cs: Source code identation fixes.
9930 2007-01-08 Everaldo Canuto <everaldo@simios.org>
9932 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
9933 we dont need to invalidate only borders because when we invalidate four
9934 border lines the invalidate's generates a complete redraw of button,
9935 because it now invalidate a complete rect some other redraws operations
9936 are fixed. Fixes #80196.
9938 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
9939 Remove ToolBarInvalidateEntireButton as it is not used.
9941 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
9943 * Form.cs: Make sure that both OnClosing and OnFormClosing are
9944 called for 2.0 profile.
9945 * CloseReason.cs: Make class internal for 1.1.
9947 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
9949 * ToolStripManager.cs: Implement FindToolStrip functionality.
9950 * ToolStrip.cs: Register and unregister with ToolStripManager.
9952 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
9954 * Control.cs: This was messy. 2.0 moves much of ControlCollection
9955 to ArrangedElementCollection. Implemented this with as few #if's as
9956 possible (which is still too many).
9958 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
9960 * Control.cs: Implement SizeFromClientSize() [2.0].
9962 2007-01-07 Everaldo Canuto <everaldo@simios.org>
9964 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
9965 use Theme.BorderSize to calculate area instead of static value 1,
9966 by the way use new BorderStaticSize instead Border3DSize when
9967 border_static is true. Fixes #79537.
9969 * XplatUIOSX.cs: Fix call to GetClientRectangle.
9971 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
9974 2007-01-06 Everaldo Canuto <everaldo@simios.org>
9976 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
9978 2007-01-06 Everaldo Canuto <everaldo@simios.org>
9980 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
9981 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
9984 - border_static field added, it will used to define when a control
9985 theres 3D border but it must be static (thin).
9986 - In GetWindowRectangle use Theme.BorderSize to calculate area
9987 instead of static value 1, by the way use new BorderStaticSize instead
9988 Border3DSize when border_static is true.
9990 * XplatUIX11.cs, XplatUIOSX.cs:
9991 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
9993 * Theme.cs: BorderStaticSize field added.
9995 2007-01-05 Everaldo Canuto <everaldo@simios.org>
9997 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
9999 2007-01-05 Everaldo Canuto <everaldo@simios.org>
10001 * Control.cs: Under InternalBorderStyle call RecreateHangle to
10002 mimic same behavior than win32 that set border only in CreateParams,
10003 it fix problems under CreateParams overrides. Fix #79442 and partial
10006 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
10007 of thi control you must call recreate handle.
10009 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
10010 need to do anything as RecreateHangle will take care about borders.
10012 2007-01-05 Mike Kestner <mkestner@novell.com>
10014 * ListView.cs: hack to eliminate Lost/Got focus notifications on
10015 cycles between the ItemControl and parent. Fixes #80388.
10017 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
10019 * Control.cs: Lazy init layout engine. Do not directly use
10020 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
10022 2007-01-05 Chris Toshok <toshok@ximian.com>
10024 * DataGrid.cs: don't forceably rebind columns in SetDataSource
10025 unless our list manager has changed (i.e. unless we have reason to
10026 believe our columns have changed). Fixes #80422.
10028 also, disable the call do BindColumns in
10029 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
10030 1.1 the event isn't raised in response to a column addition on a
10033 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
10035 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
10036 that inheritors can not call it if they choose. Fixes bug #80456.
10038 2007-01-05 Andreia Gaita <avidigal@novell.com>
10040 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
10041 doesn't blow up with a null exception on marshalling.
10043 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
10045 * Control.cs: Implement several 2.0 protected properties and methods.
10046 Ensure that all necessary events are being called when properties
10049 2007-01-05 Mike Kestner <mkestner@novell.com>
10051 * ListView.cs: implement PgUp/PgDn for Details view. Also
10052 fixes First/LastVisibleIndex to use the item_control.ClientRect
10053 instead of the parent control. Fixes #80378.
10055 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
10057 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
10058 determine whether to use yard-pound or not (bug #78399).
10060 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
10062 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
10063 problems. So it is time to bring back the old popupbutton colors.
10065 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10068 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
10069 property by using the internal information of the
10070 columns order in ListView.
10072 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
10074 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
10075 Add 2.0 Tag properties.
10077 * LinkArea.cs: Add 2.0 ToString method.
10079 2007-01-03 Chris Toshok <toshok@ximian.com>
10081 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
10082 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
10083 when we're editing, which fixes #80047.
10085 2007-01-03 Chris Toshok <toshok@ximian.com>
10087 * Form.cs: apply patch contributed by Dominik Seichter. fixes
10090 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
10092 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
10093 property and implementation.
10095 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
10096 for MdiWindowListItem property.
10098 * ToolStripDropDown.cs: Don't consider hidden menu items while
10099 laying out the menu.
10101 2007-01-03 Andreia Gaita <avidigal@novell.com>
10103 * SendKeys.cs: window handle is not needed in win32, so just
10104 get the active window for X after parsing keys and don't use
10105 it when building the message; it is passed by parameter to the
10106 Xplat method and used there to build the message instead. Also,
10107 wait for events to be processed on SendWait, as opposed to Send,
10108 which doesn't wait :) Playing with threads and Send() completely
10109 hangs on ms.net, only SendWait() works.
10112 X11Display.cs: Check for valid window handle.
10114 2007-01-03 Jackson Harper <jackson@ximian.com>
10116 * TextControl.cs: Need to prevent wrap calculations when replacing
10117 text (this was there before i removed it accidently).
10118 - Don't update the cursor during the positioning, just set it to
10119 selection_start at the end of the operaion.
10121 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10124 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
10126 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10128 * MonthCalendar.cs: Added Click and DoubleClick events again,
10129 but this time they only hide Control's Click and DoubleClick.
10131 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
10133 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
10134 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
10136 2007-01-02 Jackson Harper <jackson@ximian.com>
10138 * TextBoxBase.cs: We move the caret with the split now, so we
10139 don't need to explicitly move the caret after splitting. This
10140 fixes the caret bumping down an extra line on Enter.
10142 2007-01-02 Miguel de Icaza <miguel@novell.com>
10144 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
10147 * ScrollableControl.cs: Add Scroll event.
10149 2007-01-02 Mike Kestner <mkestner@novell.com>
10151 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
10152 to fix all hdr height padding codepaths. Fixes #80207.
10154 2007-01-02 Chris Toshok <toshok@ximian.com>
10156 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
10157 setting it to the Control defaults anyway, and it being after the
10158 Dock set was screwing up layout.
10159 (set_Dock): don't short circuit out of setting base.Dock. Also,
10160 no need to call UpdateStatusBar here, as it'll be re-layed out if
10163 2007-01-02 Mike Kestner <mkestner@novell.com>
10165 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
10166 to header height for width == -1. Fixes the rest of #80207.
10168 2007-01-02 Mike Kestner <mkestner@novell.com>
10170 * ListView.cs: rework the mouse event forwarding everaldo added
10171 to translate the coordinates to the parent control not
10172 raise the parent events until after we've done our work. Hover
10173 needs more work, in the case where HoverSelection is on, because
10174 the item control receives more than one MouseHover per Enter
10175 event, so we need to ensure only the "first" hover gets forwarded.
10176 Opening a minor bug for that.
10178 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
10180 * CheckedListBox.cs: Fixed SelectionMode to match MS.
10181 * ListControl.cs: Implemented AllowSelection property. Removed extra
10183 * ListBox.cs: Implemented AllowSelection property.
10185 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10187 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
10188 SelectedItem, it prevent for errors when you must disable item
10189 before perform click. Fixes #80409.
10191 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10193 * MenuAPI.cs: Prevent second level and beyond submenus to close
10194 until first level when move out side of popup.
10196 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10199 - Down submenu positin in three pixels.
10200 - Closes sub menu when mouse leaves from menu. Fixes #80402.
10202 2007-01-02 Everaldo Canuto <everaldo@simios.org>
10204 * ThemeWin32Classic.cs:
10205 - Fix popup menu size adding one pixel on the top.
10206 - Down menu item border from two to one to mimic Win32.
10207 - Some source identation fixes.
10209 2007-01-01 Everaldo Canuto <everaldo@simios.org>
10211 * ThemeWin32Classic.cs: Use float numbers to calculate size and
10212 position of menu arrows, it fix wrong arrow size.
10214 2007-01-01 Everaldo Canuto <everaldo@simios.org>
10216 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
10217 instead of line, it simplify draw operation and fix it using 3D
10218 borders to mimic Win32.
10220 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
10222 * StatusStrip.cs: Add implementation of the sizing grip.
10224 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
10225 StatusStrip rendering.
10227 2006-12-31 Chris Toshok <toshok@ximian.com>
10229 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
10230 override the layout style (anchor/dock) of the control. assign to
10231 Dock instead. Fixes bug #80416.
10233 * ToolStrip.cs: same.
10235 2006-12-31 Andreia Gaita <avidigal@novell.com>
10237 * ContainerControl.cs: Use ContainerSelected flag to check if
10238 a Container is directly selected, or if Select is called on a
10239 non-container. If a container is directly selected, focus events
10240 should not be raised.
10241 Apply #80411 patch to throw exception on set_ActiveControl if
10242 control is the same as the current one.
10244 * Control.cs: Use ContainerSelected flag (see above).
10245 Add invalidation check to raise event but not invalidate if
10247 Apply #80411 patch.
10250 2006-12-31 Everaldo Canuto <everaldo@simios.org>
10252 * MenuAPI.cs: After click, dont close popup menu when menu is
10253 ContextMenu. Fixes #80399.
10255 2006-12-30 Chris Toshok <toshok@ximian.com>
10257 * ContainerControl.cs: make sure we throw the exception if the
10258 container control doesn't contain the control we're setting
10261 2006-12-30 Chris Toshok <toshok@ximian.com>
10263 * Control.cs (SetTopLevel): fix the exception raised by
10264 SetTopLevel for child controls.
10265 (set_Anchor): call UpdateDistances when setting the anchor type.
10266 This fixes bug #80336.
10268 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10270 * Theme.cs: For now, revert back to 8pt font.
10272 2006-12-29 Everaldo Canuto <everaldo@simios.org>
10274 * MenuAPI.cs: Set popup as active when open a ContextMenu.
10277 2006-12-29 Chris Toshok <toshok@ximian.com>
10279 * Control.cs: reorder the code in OnResize to give the same event
10282 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
10284 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
10285 TileHorizontally and TileVertically.
10287 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
10289 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
10290 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
10291 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
10292 Corrected copyright and email adress.
10294 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10296 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
10297 of Exception in FullPath property if no TreeView is associated with
10300 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
10302 * Theme.cs: Marked default_font as private, and initialize it in ctor
10303 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
10305 * ThemeGtk.cs: Removed default_font intialization.
10306 * ThemeWin32Classic.cs: Removed default_font initialization.
10308 2006-12-28 Chris Toshok <toshok@ximian.com>
10310 * Control.cs: fix a couple of place where we were creating handles
10311 more aggressively than we should be. Fixes ControlRefresh unit
10314 2006-12-28 Chris Toshok <toshok@ximian.com>
10316 * Control.cs: contrary to what the comment said, Control.Dock does
10317 not supercede Control.Anchor - the last one you assign to decides
10318 the layout behavior. so we need to keep track of which was the
10319 last set. Also, fix some of the affected property arguments in
10320 PerformLayout calls, and remove an redundant parent.PerformLayout
10323 Add a VisibleInternal property, which returns is_visible. We
10324 can/should get rid of all the usage of this field elsewhere.
10326 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10328 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
10329 control style, not DoubleBuffer. Added UseDoubleBuffering property
10330 that indicates whether doublebuffering is enabled and supported.
10331 (comment from and code based on Gert Driesen's patch in #80324).
10334 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10336 * Control.cs: Fixed a NRE.
10338 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10340 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
10343 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10345 * Control.cs: Rewrote double buffering, now a seperate
10346 class handles all the buffering, no Graphics is disposed of
10347 until the painting is finished (earlier implementation
10348 would crash if the control was resized in the OnPaint,
10349 since it would cause the double buffer to be recreated
10350 and the old one disposed), a separate Graphics is
10351 created for every paint (MS behaviour and anyways the state
10352 of the Graphics would have to be saved and restored otherwise)
10354 * XplatUIDriver.cs:
10356 * XplatUI.cs: Added and implemented GetOffscreenGraphics
10357 so that we can get the graphics for the back buffer without
10358 having to create a new one and remove the offscreen_dc parameter
10359 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
10361 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10363 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
10364 Also make virtual all the key-related methods.
10366 * ListViewItem.cs: Make virtual the key related methods for
10367 ListViewSubItemCollection.
10369 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10373 * ThemeWin32Classic.cs:
10374 * Theme.cs: Initial support for Tile view in ListView,
10375 as well as the implementation of the required bits for it (Item
10378 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10380 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
10381 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
10382 Provide useful exception messages.
10384 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10386 * TrackBar.cs: Remove a warning.
10387 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
10388 when used by DateTimePicker, fixes #80287. This also requires that
10389 MonthCalendar implements it's own drawing for the yearly updown control,
10390 otherwise the Capture tracking would be too complicated. Removed the Click
10391 and DoubleClick events (according to comments they were hiding the base class
10392 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
10393 raise these events, not that they cannot be raised. It is possible to raise
10394 them by calling OnClick and OnDoubleClick). Added two internal fields in
10395 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
10396 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
10397 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
10398 event, no longer needed.
10400 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10402 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
10403 true if new value differs from current value.
10405 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10407 * Control.cs: ControlCollection.Count must be public. Fixed build of
10410 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10412 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
10414 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
10416 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
10418 2006-12-26 Everaldo Canuto <everaldo@simios.org>
10420 * Control.cs: Invalidates control including when Width and Height is
10421 equal zero or is not visible, only Paint event must be care about
10422 this. Fixes #79913.
10424 2006-12-26 Chris Toshok <toshok@ximian.com>
10426 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
10427 more corcompare work.
10429 * DataGridView.cs: fix compiler warning.
10431 * ColumnHeader.cs: some corcompare work, and also take the
10432 opportunity to make the internal fields private.
10434 * ListView.cs: fix the fallout from the above field change.
10436 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
10438 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
10439 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
10440 ToolStripTextBox.cs: Fixes to events and corcompare.
10442 2006-12-26 Everaldo Canuto <everaldo@simios.org>
10444 * ListView.cs: Call owner.OnMousexx event to propagate events from
10445 item to ListView. Fixes #80367.
10447 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10449 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
10450 if value is less than one. ItemHeight should not be set to a value
10451 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
10452 Removed extra tabs.
10454 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
10456 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
10457 * ToolStripStatusLabel.cs: Add Spring for Moma.
10459 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10461 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
10462 Fixed code formatting. Removed debug code.
10463 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
10465 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
10467 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
10468 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
10469 ArgumentOutOfRangeException if ColumnCount is negative. In
10470 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
10471 less than 4 or higher than 32768.
10472 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
10473 Fixed FormatProvider to return CurrentCulture unless explicitly set.
10474 Fixed IsFormatProviderDefault to return true if FormatProvider has
10475 not been explicitly set.
10477 2006-12-25 Chris Toshok <toshok@ximian.com>
10479 * Application.cs: add a couple of 2.0 events.
10481 2006-12-25 Chris Toshok <toshok@ximian.com>
10483 * Control.cs: fix compiler warning.
10485 * AxHost.cs: corcompare fixes.
10487 * ApplicationContext.cs: corcompare fixes.
10489 2006-12-25 Chris Toshok <toshok@ximian.com>
10491 * Control.cs: only update dist_right/dist_bottom if the
10492 width/height is > 0. this fixes anchored controls being resized
10493 smaller until they disappear and then resized larger again.
10495 2006-12-25 Chris Toshok <toshok@ximian.com>
10497 * Control.cs: a couple of changes. Remove dist_left and dist_top,
10498 since they're nothing more than X/Left and Y/Top, respectively.
10500 Also, move back to a per-control Bitmap/Graphics for
10501 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
10502 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
10505 2006-12-25 Miguel de Icaza <miguel@novell.com>
10507 * MessageBox.cs: Implemented overload that takes a new "bool
10508 displayHelpButton" by adding a new internal field "show_help".
10509 When clicked this will raise the HelpRequested on the owner or the
10512 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
10513 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
10515 * ListView.cs: Add support ColumnWidthChanged and
10516 ColumnWidthChanging.
10518 Add support for ColumnReordered event.
10519 (ReorderColumn): Add NET_2_0 specific support for cancelling the
10522 Very nice codebase!
10524 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
10526 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
10528 2006-12-24 Chris Toshok <toshok@ximian.com>
10530 * GridTablesFactory.cs: 2.0 corcompare work.
10532 * ToolStripContainer.cs: add "override" to
10533 ContextMenuStripChanged, and remove the local event object.
10535 * ToolStripDropDown.cs: same with a couple properties.
10537 * ToolStripPanel.cs: same with AutoSizeChanged event.
10539 * TextBoxBase.cs: add "override" to AutoSizeChanged.
10541 * Form.cs: add the remaining 2.0 events, and do some corcompare
10544 * DateTimePicker.cs: add "new" to padding.
10546 * ButtonBase.cs: use Control's use_compatible_text_rendering.
10548 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
10550 * DataGridView.cs: PaddingChanged is overridden.
10552 2006-12-24 Chris Toshok <toshok@ximian.com>
10554 * Control.cs: corecompare work here too.
10556 * DataGridViewElement.cs, DataGridView.cs,
10557 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
10558 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
10559 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
10560 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
10563 2006-12-24 Miguel de Icaza <miguel@novell.com>
10565 * Control.cs: Switched the error message on the console for a
10566 todo. A review of the code will have to cope with this anyways
10567 (since its a large feature, it is in our radar) and it was
10568 producing too much output when running PDN.
10570 * ToolStripComboBox.cs: Set the text when the SelectedIndex
10571 changes. Applications depend on this (PDN 2.72)
10573 2006-12-23 Chris Toshok <toshok@ximian.com>
10575 * TableLayoutSettings.cs: finish up the corcompare work for this
10578 2006-12-23 Chris Toshok <toshok@ximian.com>
10580 * Control.cs: make SetImplicitBounds internal, do some futzing
10581 with LayoutEngine so that it's available in 1.1, and remove the
10582 entire duplicated code mess from PerformLayout. Use
10583 System.Windows.Forms.Layout.DefaultLayout instead.
10585 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
10587 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
10589 * Form.cs: Add MainMenuStrip property.
10591 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
10593 * Control.cs: Add ContextMenuStrip property and implementation.
10594 Fix ContextMenu implementation to show menu centered on control when
10595 activated using the keyboard instead of showing at screen (0,0).
10597 * ToolStripDropDown.cs: Fix needed overload of Show ().
10599 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10601 * Menu.cs: Name property added for 2.0 profile.
10603 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10605 * Menu.cs: Update information about FindMenuItem, method to be
10608 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10610 * MenuAPI.cs: When deselect items deselect also selected subitems.
10612 2006-12-23 Everaldo Canuto <everaldo@simios.org>
10614 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
10615 FindSubItemByCoord to found itens that is not active, also an
10616 cheking added to FindSubItemByCoord to search for items only
10617 in visible popup windows. Fixes #80274.
10619 2006-12-22 Everaldo Canuto <everaldo@simios.org>
10621 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
10622 internal property, it be care about change ExStyle.
10624 2006-12-22 Andreia Gaita <avidigal@novell.com>
10626 * ContainerControl.cs: set activeControl for parent forms up the
10627 tree when the new activecontrol is a container.
10628 When validating the active control, if it is a container, also
10629 raise up the validation for it's active control. Fixes #80280
10631 * Control.cs: Add internal property flag and check to prevent
10632 Focus events from getting raised when Select() is called for
10633 a ContainerControl. There are still too many focus events being
10634 raised at the moment though.
10635 Cleaned up the code a bit.
10637 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10639 * Control.cs: Added all missing 2.0 events.and
10640 fixed a couple of corcompare issues.
10641 * TrackBar.cs: Implemented missing 2.0 bits.
10642 * MonthCalendar.cs,
10643 * DateTimePicker.cs,
10644 * MdiClient.cs: Fixed some corcompare issues.
10646 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10648 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
10649 SplitterPanel.cs: corecompare work.
10651 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10653 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
10654 Clean up warnings for BackgroundImageChanged and PaddingChanged
10655 events now that they are implemented in Control.cs.
10657 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
10659 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
10661 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
10662 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
10663 of TableLayoutPanel and supporting cast.
10665 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10668 - GrabWindow now confines the mouse pointer to the confine window.
10669 - Added Win32ClipCursor and Win32GetClipCursor.
10672 - Added CaptureWithConfine to be able to capture and confine
10675 * InternalWindowManager.cs:
10676 - Call CaptureWithConfine instead of Capture if we're an
10677 MdiChild (fixes #79982).
10679 2006-12-21 Chris Toshok <toshok@ximian.com>
10681 * DataGrid.cs: guard against the initial state of selection, where
10682 selection_start == -1. make sure we only select from index >= 0.
10685 2006-12-21 Chris Toshok <toshok@ximian.com>
10687 * Control.cs: we don't need to be so draconian with
10688 UpdateDistances, and we thusly don't need to call it before
10689 calling PerformLayout in ResumeLayout. Fixes bug #80289.
10691 2006-12-21 Daniel Nauck <dna@mono-project.de>
10694 TextBox.cs: Implemented AutoComplete properties.
10696 2006-12-20 Chris Toshok <toshok@ximian.com>
10698 * DataGridView*.cs: some corecompare work.
10700 2006-12-20 Jackson Harper <jackson@ximian.com>
10702 * XplatUIX11.cs: We need to hide the caret when deleting it,
10703 otherwise you get carets left lying around everywhere.
10704 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
10705 prevents getting some weird half drawn caret tracers when
10707 * TextControl.cs: Attempt to reduce the number of times we need to
10708 recreate the caret.
10710 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
10712 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
10714 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10716 * DateTimePicker.cs:
10717 - Implemented missing 2.0 bits.
10718 - Changed some default values to match MS.
10720 2006-12-20 Jackson Harper <jackson@ximian.com>
10722 * TextBoxBase.cs: When changing the font across the document we
10723 can't recalculate after changing each line, since that will cahnge
10725 - PreferredHeight is a little different than i thought.
10726 - When backspacing, move the caret before we do the actual char
10727 delete, because when that delete crosses a wrap boundary the
10728 positional information will change.
10730 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10732 * Control.cs: Added some missing 2.0 bits:
10733 BackgroundImageLayout, BackgroundImageLayoutChanged,
10734 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
10735 add IBindableComponent and IDropTarget implementation.
10737 * MonthCalendar.cs:
10738 - Added all missing 2.0 features:
10739 BackgroundImageLayout, RightToLeftLayout,
10740 OnHandleDestroyed, RightToLeftLayoutChanged,
10741 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
10743 - Rewrote all the BoldDate code, it was completely broken.
10744 - Fixed all the tests (the tests can now be re-enabled, the
10745 problems were not with the tests, but with the control, it was
10748 * DateTimePicker.cs: Changed the location where the
10749 MonthCalendar is shown.
10751 2006-12-19 Chris Toshok <toshok@ximian.com>
10753 * DataGridView.cs: add IDropTarget implementation.
10755 * ToolStripPanel.cs: add IDropTarget implementation.
10757 2006-12-19 Jackson Harper <jackson@ximian.com>
10759 * TextControl.cs: soft now means something different than what it
10760 used to mean, we want to move the caret regardless of whether or
10761 not this break was soft (would we really have wanted the caret
10762 to not move with the break in the old context?)
10763 * TreeView.cs: Make sure we factor in the vert scrollbar when
10764 calculating the horizontal scrollbar's maximum.
10766 2006-12-19 Andreia Gaita <avidigal@novell.org>
10768 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
10769 check for keywords in alternate casing, close bug #80049.
10771 2006-12-19 Chris Toshok <toshok@ximian.com>
10773 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
10774 methods (which all do nothing).
10776 * IDropTarget.cs: add the 4 missing methods.
10778 2006-12-19 Chris Toshok <toshok@ximian.com>
10780 * TableLayoutRowStyleCollection.cs: corcompare work.
10782 * TableLayoutSettings.cs: same.
10784 * TableLayoutStyle.cs: same.
10786 * TableLayoutColumnStyleCollection.cs: same.
10788 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
10790 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
10791 TableLayoutPanel I've had in my local tree for way too long.
10793 2006-12-19 Miguel de Icaza <miguel@novell.com>
10795 * TableLayoutSettings.cs: Finish the public API (still needs all
10796 the logic to update on changes).
10798 * TableLayoutPanelCellPosition.cs: new file.
10800 * TableLayoutRowStyleCollection.cs,
10801 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
10802 TableLayoutSettings.cs: Track the final 2.0 table api.
10804 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10806 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
10807 and Image List 2.0 members for ColummnHeader.
10808 * ListView.cs: Add key-related 2.0 methods for
10809 ColumnHeaderCollection.
10811 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
10813 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
10814 ArgumentNullException if items argument is null. Ignore null item in
10815 arrays. Removed extra tabs.
10817 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
10819 * MonthCalendar.cs: Fixed InvalidCastException.
10821 2006-12-19 Jackson Harper <jackson@ximian.com>
10823 * TextControl.cs: Don't increment the position here.
10824 - When calculating char positions only add in the line break size
10825 for hard line breaks.
10827 2006-12-19 Andreia Gaita <avidigal@novell.org>
10829 * SendKeys.cs: Changed some things to match ms.net behaviour
10830 when parsing shifted capital letters.
10832 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
10833 Add window handle as parameter to SendInput. X11 needs the
10834 window handle, and the handle being passed to it in the keys
10835 queue is the active control handle (which windows needs), not
10838 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
10839 to support SendKeys on X.
10841 * X11Keyboard: Implement helper method to lookup a linux keycode
10842 given the virtual keycode. Added table of keycode-2-virtualkey
10843 values to support this.
10845 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10847 * ListView.cs: Add support for SelectedIndexCollection
10848 and SelectedItemCollection 2.0 methods. Implement support
10850 * ListViewItem.cs: Add support for ListViewSubItemCollection
10851 2.0 methods. Also, fix an incorrect behavior of AddRange method
10852 (it shouldn't call Clear).
10853 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
10855 2006-12-19 Jackson Harper <jackson@ximian.com>
10858 * TextBoxBase.cs: New args for FormatText
10859 * TextControl.cs: Rewrote the main drawing method, this version
10860 feels a little easier to understand and debug to me. Hopefully it
10861 does to others also
10862 - Fix FormatText to OR in the new formating values. Added
10863 FormatSpecified param, basically this works in the same way as
10864 BoundsSpecified in Control.
10865 - Set the caret properties when the caret is positioned.
10866 - When wrapping text make sure that we calculate the width of the
10868 - when calculating alignments we might have wrapped down to the
10869 next line, so don't search for an individual tag, search for the
10871 - We need to invalidate the selection area when we replace the
10874 2006-12-19 Daniel Nauck <dna@mono-project.de>
10876 * Application.cs: add Restart () 2.0 support
10878 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10880 * MenuItem.cs: Invalidate menu item rectangle after change Enable
10881 property. Fixes #80268.
10883 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10885 * MenuAPI.cs: Dont trigger select event when closes top menu
10886 item. Fixes #80270.
10888 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10890 * MenuAPI.cs: When you click on menuitem only trigger onselect
10891 event for top menu itens. Fixes #80271.
10893 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10895 * MdiWindowManager.cs: Make IconicBounds depend on
10896 the bottom of MdiClient, not the top (fixes #80267)
10898 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10900 * MdiClient.cs: Added missing 2.0 attribute
10902 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10904 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
10905 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
10907 2006-12-18 Everaldo Canuto <everaldo@simios.org>
10909 * MenuAPI.cs: Fix click when menuitem is not popup,
10910 this regression was caused by last commit (#80272).
10912 2006-12-17 Everaldo Canuto <everaldo@simios.org>
10914 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
10915 fire click event or close menu. Fixes #80272.
10917 2006-12-17 Daniel Nauck <dna@mono-project.de>
10919 * ListViewHitTestInfo.cs: add
10921 2006-12-17 Daniel Nauck <dna@mono-project.de>
10923 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
10924 * FlatButtonAppearance.cs: add
10925 * DockingAttribute.cs: add
10927 2006-12-17 Chris Toshok <toshok@ximian.com>
10929 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
10930 and rebind our columns when it does - this way, if you make
10931 changes to the DataTable (or set the Table attribute on a DataView
10932 after setting it as the DataGrid's DataSource, the changes are
10933 made visible.) Fixes bug #80107.
10935 2006-12-17 Daniel Nauck <dna@mono-project.de>
10937 * ListViewGroup.cs: add internal Location property for layouting.
10938 * Theme.cs: add abstract ListViewGroupHeight function.
10939 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
10941 2006-12-16 Andreia Gaita <avidigal@novell.com>
10943 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
10944 Added reset of selected index to 0 when adding first tab page.
10947 * NumericUpDown.cs: Fix NET_2_0 check
10949 2006-12-16 Daniel Nauck <dna@mono-project.de>
10951 * ListViewGroup.cs: fixed DefaultValueAttribute value
10953 2006-12-16 Daniel Nauck <dna@mono-project.de>
10955 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
10957 2006-12-15 Miguel de Icaza <miguel@novell.com>
10959 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
10960 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
10961 ScrollableControl.cs: Add a handful of methods that are
10964 2006-12-15 Chris Toshok <toshok@ximian.com>
10966 * XplatUIWin32.cs: initial implementation of the Reversible
10967 drawing functions. there are some problems. DrawReversibleFrame
10968 doesn't seem to work at all for Dashed FrameStyle, and in the
10969 Thick case there are drawing errors at the corners (we probably
10970 need to bind Rectangle instead of doing moveto/lineto's.)
10972 2006-12-16 Andreia Gaita <avidigal@novell.com>
10974 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
10975 to send blocks of key messages. Send accumulates keys to send with Flush,
10976 while SendWait sends all keys immediately.
10978 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10979 XplatUIX11.cs, XplatUIX11-new.cs:
10980 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
10981 to Win32 SendInput.
10982 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
10984 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
10985 testing for ms.net on this class is very tricky, as the tests run too fast
10986 to allow the hook to release, essentially freezing the keyboard and the
10987 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
10990 2006-12-16 Daniel Nauck <dna@mono-project.de>
10992 * Padding.cs: fixed serialization compability to MS ("_var" field names),
10993 added missing attributes.
10995 2006-12-15 Daniel Nauck <dna@mono-project.de>
10997 * ListViewGroup.cs: Added missing attributes.
10998 * ListViewGroupCollection.cs: Added missing attributes.
11000 2006-12-15 Daniel Nauck <dna@mono-project.de>
11002 * ListViewItem.cs: fixed ListViewSubItem text property.
11004 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11006 * Control.cs: Added missing 2.0 attributes
11008 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11010 * MdiClient.cs: Added missing 2.0 attribute.
11011 * MonthCalendar.cs: Added some missing 2.0 attributes
11014 2006-12-15 Daniel Nauck <dna@mono-project.de>
11016 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
11018 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
11020 * MainMenu.cs: Add the new 2.0 constructor to help out people
11021 using the MainMenu in VS2005.
11023 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11025 * MdiChildContext.cs: Removed it, no longer used.
11026 * MdiClient.cs: Added missing 2.0 attributes.
11028 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11030 * InternalWindowManager.cs: Fix a NullRef with previous
11031 changes for toolwindows.
11033 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11036 - Added AfterTopMostControl to allow for certain controls
11037 to always stay on top when normal controls are brought to
11041 - (DrawInversibleRectangle): Get window rectangle from Win32
11042 in stead of from control, since Win32 doesn't calculate
11043 screen coords correctly from control's Location if it
11044 have docked siblings.
11046 * MdiWindowManager.cs:
11047 - Correct the control menu popup location when clicked on
11048 the maximized form icon. (fixes #80223.1)
11049 - Don't show moving rectangle if mouse hasn't moved from
11050 the original clicked point.
11051 - Removed FormGotFocus handler (not used).
11052 - Calculate the control buttons location from the main
11053 window's size and not client size (fixes #79770).
11054 - Form is now closed when the form icon is double-clicked
11056 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
11058 * InternalWindowManager.cs:
11059 - Moved some MDI-only methods to MdiWindowManager.
11060 - Removed unused properties and methods.
11061 - Unified method naming for methods handling wm messages.
11062 - Moved all message handling to seperate methods for
11065 * ThemeWin32Classic.cs:
11066 - DrawManagedWindowDecorations now draws the title bar
11067 with a gradient brush.
11068 - Add a CPDrawButtonInternal that allows us to specify
11069 light, normal and dark colors for the buttons (control
11070 buttons for MDI children were drawn with the same light
11071 color as the background, therefore loosing the 3D effect).
11074 - Add a CapturedControl property that is used to
11075 determine the control to resize (defaults to parent).
11076 Needed for MdiClient, since its SizeGrip's parent is
11077 MdiClient, but the control to resize is the main form.
11080 - Set SizeGrip's CapturedControl to the main form in order
11081 to resize the main form and not the MdiClient.
11082 - Override AfterTopMostControl to leave the scrollbars
11085 2006-12-15 Daniel Nauck <dna@mono-project.de>
11087 * ListView.cs: fixed ListViewItemCollection AddRange and
11088 implemented ListViewItemCollection AddRange 2.0 support.
11090 2006-12-15 Daniel Nauck <dna@mono-project.de>
11092 * ListViewGroup.cs: Add.
11093 * ListViewGroupCollection.cs: Add
11094 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
11095 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
11096 stub for ImageKey 2.0 support.
11098 2006-12-14 Mike Kestner <mkestner@novell.com>
11100 * ListView.cs: add text padding to the autocalculation for columns
11101 of width -2. Fixes #80207.
11103 2006-12-14 Mike Kestner <mkestner@novell.com>
11105 * ListView.cs: add some index guarding for partial row navigation
11106 logic. Fixes #80250.
11108 2006-12-14 Mike Kestner <mkestner@novell.com>
11110 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
11111 are added or inserted to the collection. Fixes #81099.
11113 2006-12-13 Everaldo Canuto <everaldo@simios.org>
11115 * MenuAPI.cs: Closes menu when right click out side of popup
11116 it fix problem in ContextMenu and MainMenu. Fixes #80252.
11118 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11120 * ListViewItem.cs: Fix dumb error.
11122 * ListView.cs: Add Find and ContainsKey methods in
11123 ListViewItemCollection, and also return true for IsReadOnly
11124 and IsFixedSize (changes for 2.0).
11126 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
11128 * Control.cs: Allow Region to be set to null.
11130 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11132 * MdiWindowManager.cs: Remove unused (commented out) code.
11133 * Form.cs: When the MdiChild is maximized, the form needs
11134 WM_NCMOUSELEAVE, so request it.
11135 * InternalWindowManager.cs:
11136 - Added tooltips to control buttons.
11137 - Removed duplicated control button handling code.
11138 - Removed unused (commented out) code.
11140 2006-12-12 Everaldo Canuto <everaldo@simios.org>
11142 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
11143 was used because we must set cursor without trigger ChangeCursor event
11144 and without change Cursor control property. Fixes #79963.
11146 2006-12-12 Andreia Gaita <avidigal@novell.com>
11148 * Control.cs: Check if Region setter value is null, and ignore
11150 2006-12-12 Jackson Harper <jackson@ximian.com>
11152 * TextControl.cs: We were almost always drawing one more line then
11153 needed, since the GetLineByPixel will return the last line found
11154 at that pixel. In most cases though, we were invalidating up to
11155 the junction between two lines.
11156 - Improve debug code.
11158 2006-12-12 Chris Toshok <toshok@ximian.com>
11160 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
11161 and FillReversibleRectangle.
11163 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
11164 and FillReversibleRectangle.
11166 * XplatUIWin32.cs: add stubs which do nothing for
11167 DrawReversibleFrame, DrawReversibleLine, and
11168 FillReversibleRectangle.
11170 * XplatUIOSX.cs: add stubs which raise NIE for
11171 DrawReversibleFrame, DrawReversibleLine, and
11172 FillReversibleRectangle.
11174 * XplatUIX11.cs: add working implementation for
11175 DrawReversibleFrame, DrawReversibleLine, and
11176 FillReversibleRectangle.
11178 * ControlPaint.cs: implement DrawReversibleFrame,
11179 DrawReversibleLine, and FillReversibleRectangle, by calling into
11180 the appropriate XplatUI method.
11182 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11184 * Form.cs: Make MdiClient have the focus even if it's
11185 not selectable, since it should receive WM_KEY* and WM_MOUSE
11186 messages. Fixes #79907.
11188 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11190 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
11191 queried after the window is created.
11193 * XplatUIX11.cs: Added SendParentNotify to implement
11194 WM_PARENTNOTIFY logic. Fixes #79965.
11196 * Control.cs: Added MakeParam.
11198 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11200 * MdiClient.cs: Resume Layout before setting window
11201 states (fixes #80201).
11203 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11205 * MenuAPI.cs: Deselect a menu item after performing
11206 the click (fixes #80197).
11208 2006-12-11 Jackson Harper <jackson@ximian.com>
11210 * TextBoxBase.cs: We need to cap this value, since Maximum -
11211 ViewPortHeight can be less than zero.
11212 - Only do selection with the left mouse button.
11213 * TextBox.cs: Don't tell the world that we have a context menu.
11214 * Control.cs: New method so that we can control whether or not the
11215 context menu is visible outside MWF.
11217 2006-12-11 Everaldo Canuto <everaldo@simios.org>
11219 * ToolBarButton.cs: Fix text positon.
11221 2006-12-11 Miguel de Icaza <miguel@novell.com>
11223 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
11225 * Control.cs (DoubleBuffered): Add implementation.
11227 * Application.cs (OpenForms): Add.
11229 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
11231 * Form.cs: Use opacity instead of Opactiy to determine if we need
11232 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
11234 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
11236 * Control.cs: Fix NRE if Control.Site was set to null.
11238 2006-12-11 Chris Toshok <toshok@ximian.com>
11240 * Control.cs: ControlCollection.Remove should return if the arg is
11241 null, and ControlCollection.SetChildIndex should raise a ANE.
11243 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
11245 * Control.cs: Verify value set for Dock property. Code formatting
11248 2006-12-11 Jackson Harper <jackson@ximian.com>
11250 * TextControl.cs: Draw the caret and the selection when a flag is
11252 * TextBoxBase.cs: We want to draw the caret and the selection for
11253 TextBox but not for TextBoxBase.
11254 - If the window is resized and scrolling is no longer needed (the
11255 whole doc is visible) set the scroll position to zero.
11256 - The default SelectWord (the one TextBox uses) should move the
11257 caret to the end of the word.
11258 - SelectAll moves the caret to the end of the selection.
11259 * TextBox.cs: We don't selectall on focus, we just do it when the
11260 control is created.
11262 2006-12-11 Mike Kestner <mkestner@novell.com>
11264 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
11266 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11268 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
11270 * ListViewItem.cs: Add Name 2.0 property.
11272 2006-12-11 Andreia Gaita <avidigal@novell.com>
11274 * TabControl.cs: Set visibility on selected or default tab
11275 when tabcontrol handle is created, so that it's contents
11276 actually show up (duh). Fixes #80193
11277 Don't redraw the control if there is no handle created, as
11278 the selected index might be completely invalid. Added some tests
11281 2006-12-11 Everaldo Canuto <everaldo@simios.org>
11283 * ToolBar.cs: Uses maximun width and height of all buttons as
11284 button rectangle when ButtonSize specified, it looks strange but
11285 is what happens in Win32. Fixes #80189.
11287 2006-12-11 Jackson Harper <jackson@ximian.com>
11289 * TextControl.cs: Need to track undo levels ourself, since
11290 compound actions will mess them up.
11292 2006-12-10 Andreia Gaita <avidigal@novell.com>
11294 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
11295 SelectedIndex value is changed (even if it's not valid).
11296 Reset SelectedIndex to 0 when the handle is created and if
11297 the current index is invalid.
11298 Fixes SelectdeIndex unit tests and #80128
11300 2006-12-08 Chris Toshok <toshok@ximian.com>
11302 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
11303 calls EndEdit, it needs to be called before we set current_cell to
11304 its new value. Otherwise, we end up committing the value in the
11305 textbox to the new cell as well. Fixes bug #80160.
11307 2006-12-08 Chris Toshok <toshok@ximian.com>
11309 * Form.cs (set_CancelButton): if the button's DialogResult is
11310 None, set it to Cancel. Fixes bug 80180.
11312 2006-12-08 Jackson Harper <jackson@ximian.com>
11314 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
11315 to watch ourselves when setting the canvas size and setting the
11318 2006-12-08 Chris Toshok <toshok@ximian.com>
11320 * DataGrid.cs: comment out the two MakeTransparent calls for the
11321 time being so people using trunk (and not 1.2.2) on windows can
11322 actually use the datagrid. This deals with bug #80151.
11324 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
11326 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
11327 Graphics.DrawImage (image, int, int, int, int) overload instead
11328 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
11329 the dpi difference and was blurring images it drew.
11332 2006-12-08 Chris Toshok <toshok@ximian.com>
11334 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
11335 rowcnt is 0 (such as with an empty datasource), and make sure we
11336 initialize not_usedarea.Y to cells.Y, so we don't draw over the
11337 other areas (caption, parent row, etc, etc). Fixes bug #80095.
11339 2006-12-08 Chris Toshok <toshok@ximian.com>
11341 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
11344 2006-12-08 Chris Toshok <toshok@ximian.com>
11346 [ Fixes bug #80167 ]
11348 * ThemeWin32Classic.cs: don't draw the image if the button's flat
11349 style is FlatStyle.System.
11351 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
11352 ButtonBase.flat_style private, and switch uses of it to the public
11355 2006-12-08 Chris Toshok <toshok@ximian.com>
11357 [ Fixes bug #80121 ]
11359 * ThemeWin32Classic.cs: center the caption text in the datagrid
11362 * DataGrid.cs: lessen the amount we add to the caption height from
11363 6 to 2. 6 was making it huge.
11365 2006-12-08 Andreia Gaita <avidigal@novell.com>
11367 * UpDownBase: Handle MouseWheel call directly instead of capturing
11368 the inner textbox's OnMouseWheel. Fixes #80166
11370 2006-12-08 Jackson Harper <jackson@ximian.com>
11372 * TextControl.cs: We need to invalidate the textbox when we empty
11373 it (how had this not been discovered before?)
11375 2006-12-08 Jackson Harper <jackson@ximian.com>
11377 * TextBoxBase.cs: Reworked the mouse down code so I could get it
11378 to behave like MS, we now ignore the eventargs.Click and just
11379 track state ourself, which we were already doing anyways.
11380 - Constrain the double click handler to the double click size.
11382 2006-12-08 Chris Toshok <toshok@ximian.com>
11384 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
11385 direction if that scrollbar isn't shown. fixes bug #80158.
11387 2006-12-08 Andreia Gaita <avidigal@novell.com>
11389 * NumericUpDown.cs: Update value on getter. Fixes #79950
11391 2006-12-08 Chris Toshok <toshok@ximian.com>
11393 * MenuItem.cs: add back in the event cloning code. I didn't know
11394 how to do it in the face of the EventHandlerList work i'd done
11395 last week. Fixes bug #80183.
11397 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
11399 * Control.cs: Add an invalidate to the BackgroundImage setter.
11402 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
11404 * ToolStrip*: Add some small properties reported by MoMA, fix event
11405 firing and default properties based off of unit tests, and add some
11406 attributes based off of the class status page.
11408 2006-12-07 Jackson Harper <jackson@ximian.com>
11410 * TextBoxBase.cs: Take HideSelection into account when determining
11411 whether or not to show the selection.
11412 * RichTextBox.cs: After inserting the RTF into the document move
11413 the cursor to the beginning of the document.
11415 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
11417 * Control.cs: Remove static ArrayList "controls" which maintained
11418 a reference to every control created.
11419 * Application.cs: Create a static FormCollection to maintain a reference
11420 to every form created. Use it in places that formerly enumerated through
11421 the controls one looking for forms.
11422 * Form.cs: Add and remove self from above FormCollection.
11424 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
11426 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
11427 not libgdk (though it makes me wonder why I didn't have any
11430 2006-12-07 Chris Toshok <toshok@ximian.com>
11432 [ you had to know this was coming after that last commit...]
11434 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
11435 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
11436 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
11439 2006-12-07 Chris Toshok <toshok@ximian.com>
11441 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
11442 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
11443 all the behavior we need for double buffering.
11445 * XplatUIDriver.cs: implement the 3 double buffer methods using a
11446 client side Bitmap, just like the old Control-based double buffer
11447 code did. The methods are virtual, so each XplatUI driver
11448 subclass can replace the implementation to use a faster, platform
11451 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
11452 double buffer code, and clean things up a bit in the process.
11454 2006-12-06 Chris Toshok <toshok@ximian.com>
11456 * Control.cs: reindent WndProc.
11458 2006-12-06 Chris Toshok <toshok@ximian.com>
11460 [ I wanna be like BenM when I grow up ]
11462 * Hwnd.cs: create a single static Graphics object on the static
11463 Bitmap we create. use this for our text measurements.
11465 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
11466 This was causing us to allocate a backbuffer for every control,
11467 even when it wasn't flagged as double buffered. Instead use the
11468 single graphics instance. This might have implications for
11469 multithreaded applications. If we run into problems we can switch
11470 to creating 1 Graphics per control, on the static Hwnd bitmap.
11472 this change nets us a 7M savings in private dirty mappings when
11473 running FormsTest.exe.
11475 2006-12-06 Chris Toshok <toshok@ximian.com>
11477 * ListView.cs: the BackgroundImage override is just to set
11478 attributes. chain up to base.BackgroundImage.
11480 * RichTextBox.cs: same.
11482 * ToolBar.cs: same, but we need to also redraw the toolbar when it
11483 changes, so instead a handler for BackgroundImageChanged.
11485 * Control.cs: make background_image private.
11487 2006-12-06 Chris Toshok <toshok@ximian.com>
11489 * ScrollBar.cs: change the assignment of cursor to Cursor. not
11490 sure we even need this assignment, but roll with it for now.
11492 * Control.cs: make the cursor field private.
11494 2006-12-06 Chris Toshok <toshok@ximian.com>
11496 * Form.cs: we don't need to explicitly set ImeMode to
11497 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
11498 behavior in the face of ImeMode.Inherit.
11500 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
11501 change the ctor's assignment to use ImeMode instead of ime_mode.
11503 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
11504 ImeModeInherit. Only check for the parent's imemode (and return
11505 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
11506 This fixes the button unit test, which sets both ImeMode and
11507 DefaultImeMode to ImeMode.Disable.
11509 also make the ime_mode field private.
11511 2006-12-06 Chris Toshok <toshok@ximian.com>
11513 * Control.cs: make control_style private.
11515 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
11516 setting the styles to true, then setting them to false instead of
11517 reverting to their previous values.
11519 also, call SetStyle on the scrollbars instead of using
11520 control_style directly.
11522 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
11524 * FormCollection.cs: Implement. [2.0]
11526 2006-12-06 Chris Toshok <toshok@ximian.com>
11528 * Control.cs: make tab_stop private.
11530 * Label.cs: set TabStop, not tab_stop. reformat some event
11531 add/remove methods to make them more compact.
11533 2006-12-06 Chris Toshok <toshok@ximian.com>
11535 * RadioButton.cs: fix TabStop handling.
11537 2006-12-06 Chris Toshok <toshok@ximian.com>
11539 * TextBox.cs: remove the explicit assignments to has_focus.
11542 * ButtonBase.cs: remove the assignment to has_focus. Control will
11545 2006-12-06 Chris Toshok <toshok@ximian.com>
11547 * ButtonBase.cs: remove all uses of is_enabled from this code.
11548 it's always true when any of the code containing the checks is
11551 2006-12-06 Chris Toshok <toshok@ximian.com>
11553 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
11554 with different semantics (some are present in both 1.1 and 2.0
11555 profiles) so that we match MS's behavior in our unit tests.
11557 2006-12-06 Jackson Harper <jackson@ximian.com>
11559 * TextControl.cs: Make this operation undoable.
11560 * TextBoxBase.cs: Factor the border width into the preferred
11562 - implement Modified as per the spec.
11564 2006-12-06 Chris Toshok <toshok@ximian.com>
11566 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
11568 2006-12-06 Chris Toshok <toshok@ximian.com>
11570 * Control.cs: make right_to_left and context_menu fields private.
11572 2006-12-06 Chris Toshok <toshok@ximian.com>
11574 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
11575 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
11576 Control.child_controls private. switch all uses over to
11579 2006-12-06 Chris Toshok <toshok@ximian.com>
11581 * System.Windows.Forms/GroupBox.cs,
11582 System.Windows.Forms/AccessibleObject.cs,
11583 System.Windows.Forms/ErrorProvider.cs,
11584 System.Windows.Forms/Control.cs,
11585 System.Windows.Forms/UpDownBase.cs,
11586 System.Windows.Forms/ScrollBar.cs,
11587 System.Windows.Forms/DateTimePicker.cs,
11588 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
11589 System.Windows.Forms/ToolTip.cs,
11590 System.Windows.Forms/RadioButton.cs,
11591 System.Windows.Forms/LinkLabel.cs,
11592 System.Windows.Forms/Splitter.cs,
11593 System.Windows.Forms/TextBoxBase.cs,
11594 System.Windows.Forms/ToolStripTextBox.cs,
11595 System.Windows.Forms/ContainerControl.cs,
11596 System.Windows.Forms/ThemeWin32Classic.cs,
11597 System.Windows.Forms/SizeGrip.cs,
11598 System.Windows.Forms/ToolStripDropDown.cs,
11599 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
11600 private. switch all uses over to Control.Parent.
11602 2006-12-06 Chris Toshok <toshok@ximian.com>
11604 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
11605 Control does this before calling emitting these events.
11607 * TabControl.cs: same.
11609 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
11610 Control.client_rect.
11612 * ButtonBase.cs: use the ClientSize property instead of the
11615 * ScrollableControl.cs: same.
11617 * Control.cs: another pass at making properties private. also,
11618 move the initialization of tab_stop to the ctor.
11620 2006-12-05 Andreia Gaita <avidigal@novell.com>
11622 * TabControl.cs: Let the selected index be set freely if the
11623 control handle is not yet created.
11625 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
11627 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
11628 internal until I can rewrite DefaultLayout.
11629 * ToolStrip.cs: Fix build error and some general cleaning.
11630 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
11631 Fix build errors caused by making some of Control's fields private.
11633 2006-12-05 Jackson Harper <jackson@ximian.com>
11635 * TextControl.cs: Redo Insert a little so that it use IndexOf
11636 instead of Split, this prevents it from messing up on things like
11637 \n\n\n. Also more effecient since the split array doesn't need to
11639 * TextBoxBase.cs: AppendText doesnt handle multiline and non
11640 multiline text differently, this is the first of many fixes that
11641 will make multiline/non-multiline the same thing as far as the
11642 TextBoxBase is concerned.
11643 - Don't split the text and insert lines, this can lose some line
11644 endings (like is the last line a soft or hard break). Instead use
11646 - Fix an off by one when combining all the lines in the Text
11648 - Remove separate multiline handling from the Text getter/setter.
11650 2006-12-05 Chris Toshok <toshok@ximian.com>
11652 * ButtonBase.cs: a few changes:
11654 - don't reinitialize internal Control fields in the ctor when they
11655 have the same values as Control sets them.
11657 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
11658 this before calling those methods.
11660 - we don't need to call Refresh for anything. use Invalidate
11663 - OnEnabledChanged doesn't need to redraw at all - Control.cs
11664 calls Refresh in its OnEnabledChanged.
11666 - several of the events we were registered for in the ctor to
11667 redraw ourselves already include calls to Invalidate in the
11668 property setters that raise the events. remove the extra
11671 - reformat a switch statement that was 83274658 columns wide.
11673 2006-12-05 Mike Kestner <mkestner@novell.com>
11675 * ComboBox.cs: fix a unit test regression from a TextBox
11676 SelectionLength return of -1 when there's no selection.
11678 2006-12-05 Chris Toshok <toshok@ximian.com>
11680 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
11681 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
11682 cleaning up some of the internal Control fields being used by
11685 2006-12-05 Mike Kestner <mkestner@novell.com>
11687 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
11688 listbox after AddImplicit calls since it defaults to hidden. Add a
11689 hack to preserve requested heights across DropDownStyle changes.
11691 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
11693 * PropertyGrid.cs: Hide FindFirstItem method from public API.
11695 2006-12-05 Chris Toshok <toshok@ximian.com>
11697 * DataGridView.cs: fix compiler warnings.
11699 * PrintControllerWithStatusDialog.cs: same.
11701 * ToolBar.cs: same.
11703 * FolderBrowserDialog.cs: same.
11705 * Splitter.cs: same.
11707 * DataGridViewComboBoxCell.cs: same.
11709 * XplatUIWin32.cs: same.
11711 * PictureBox.cs: same.
11713 * Win32DnD.cs: same.
11715 * PageSetupDialog.cs: same.
11717 * FileDialog.cs: same.
11719 * PrintDialog.cs: same.
11721 * DataGridTextBoxColumn.cs: same.
11723 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
11725 2006-12-05 Chris Toshok <toshok@ximian.com>
11727 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
11728 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
11729 System.ComponentModel.EventHandlerList work.
11731 2006-12-05 Jonathan Chambers <joncham@gmail.com>
11733 * DrawTreeNodeEventArgs.cs: Added.
11735 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11737 * InternalWindowManager.cs: Remove an unused field.
11739 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11741 * InternalWindowManager.cs:
11742 - Save the point where the title bar is clicked.
11744 * MdiWindowManager.cs:
11745 - Only allow moving of the window as long as the
11746 clicked point on the title bar does not get out of
11747 MdiClient's rectangle. Fixes #79982.
11750 - Added Horizontal/VerticalScrollbarVisible.
11751 - Simplified the scrollbar sizing algorithm.
11752 - Cache the difference in scrolled value in
11753 H/VBarValueChanged and move the calculation out
11756 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11758 * Control.cs: Make the Console.WriteLine in WndProc
11761 2006-12-05 Chris Toshok <toshok@ximian.com>
11763 * ToolStripManager.cs, ToolStripButton.cs,
11764 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
11765 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
11766 ToolStripSplitButton.cs, ToolStripSeparator.cs,
11767 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
11768 ToolStripProgressBar.cs, ToolStripContainer.cs,
11769 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
11770 to using System.ComponentModel.EventHandlerList.
11772 2006-12-04 Chris Toshok <toshok@ximian.com>
11774 * LinkLabel.cs: fix up compiler warnings.
11776 * TableLayoutSettings.cs: same.
11778 * TreeView.cs: same.
11780 * ToolBar.cs: same.
11782 * TabControl.cs: same.
11784 * RichTextBox.cs: same.
11786 * ListViewItem.cs: same.
11788 * PropertyGrid.cs: same.
11790 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
11794 * TextRenderer.cs: fix up compiler warnings.
11798 * Form.cs: corcompare fixes.
11800 * PictureBox.cs: fix up compiler warnings.
11802 * ImageListStreamer.cs: same.
11804 * TrackBar.cs: corcompare fix.
11806 * Control.cs: fix up compiler warnings.
11808 * SplitterPanel.cs: same.
11810 * NumericTextBox.cs: same.
11812 * ImageList.cs: same.
11814 * StatusStrip.cs: same.
11816 * ProgressBar.cs: corcompare fix.
11818 * ToolStripButton.cs: fix up compiler warnings.
11820 * ToolStripStatusLabel.cs: same.
11822 * ToolStripSplitButton.cs: same.
11824 * ToolStripSeparator.cs: same.
11826 * ToolStripProgressBar.cs: same.
11828 * ToolStripDropDownMenu.cs: same
11830 * ToolStripDropDown.cs: same.
11832 * ToolStripDropDownButton.cs: same.
11834 * ToolStrip.cs: same.
11836 * ToolStripControlHost.cs: same.
11838 * ToolStripContentPanel.cs: same.
11840 * ToolStripDropDown.cs: same.
11842 * ToolStripContainer.cs: same.
11844 * ToolStripPanel.cs: same, and add "new" where we need it to work
11845 with the new ArrangedElementCollection.
11847 * ToolStripItemCollection.cs: add "new" where we need it to work
11848 with the new ArrangedElementCollection.
11850 2006-12-04 Andreia Gaita <avidigal@novell.com>
11852 * TabControl.cs: Fix default tab selection to after TabControl
11853 gets focus and not before. Fixes #80128
11855 2006-12-04 Chris Toshok <toshok@ximian.com>
11857 * DataGridTableStyle.cs: remove the gross calling of
11858 datagrid.Refresh from here. It's a broken idea and it doesn't
11861 * DataGrid.cs: instead, just register/unregister from the
11862 DataGridTableStyle events in CurrentTableStyle. we play it
11863 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
11864 even though some would most likely not require it. Fixes bug
11865 #80115 (and one portion of #80117 as a side effect).
11867 2006-12-04 Chris Toshok <toshok@ximian.com>
11869 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
11870 so the textbox (if any) goes away. Fixes bug #80117.
11872 2006-12-04 Chris Toshok <toshok@ximian.com>
11874 * DataGridColumnStyle.cs: set the column's readonly property
11875 initially based on the property descriptor's IsReadOnly. Fixes
11878 2006-12-04 Chris Toshok <toshok@ximian.com>
11880 * ComboBox.cs: wrap the dropdown style changing work in
11881 SuspendLayout/ResumeLayout. Fixes bug #79968.
11883 2006-12-04 Jackson Harper <jackson@ximian.com>
11885 * TextBoxBase.cs: Fix off by one, since these are one-based.
11886 * TextBox.cs: Select all the text when we get focus. The TextBox
11887 does this but the RTB does not.
11889 2006-12-04 Chris Toshok <toshok@ximian.com>
11891 * DataGridTextBoxColumn.cs: remove some spew.
11893 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
11894 but some part of me is saying "it shouldn't be here.." At any
11895 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
11898 2006-12-04 Chris Toshok <toshok@ximian.com>
11900 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
11901 to reassign the propertydescriptor.
11903 2006-12-04 Jackson Harper <jackson@ximian.com>
11906 * TextControl.cs: Remove some unused variables. Maybe this will
11907 patch things up between mike and I.
11908 - don't split lines less then one char wide, if the viewport is
11909 that small text won't be visible anyways.
11911 2006-12-04 Jackson Harper <jackson@ximian.com>
11913 * TextBoxBase.cs: Default selection length is -1, need to do some
11914 more testing on windows to see when this is used for the property.
11915 - Redid the Lines [] property to that we properly remove soft line
11917 - added support for preserving carriage returns
11918 - CanUndo is not a variable like 'is undo enabled' it just returns
11919 true if there is undo operations available.
11920 - AppendText doesn't need to grab the last tag itself anymore,
11921 this happens automatically when we move the cursor.
11922 * TextControl.cs: Add CompoundActions to the undo class. This
11923 allows combining the other operations into one big option. ie a
11924 paste will combine { delete old, insert new, move cursor }
11925 - Add InsertString undo operation
11926 - New method for deleting multiline text
11927 - Add carriage returns to lines. So we can preserve carriage
11928 returns when text is 'roundtripped'
11930 2006-12-04 Chris Toshok <toshok@ximian.com>
11932 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
11933 minimum 0. Fixes the scrollbar exception in bug #80136.
11935 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11938 * MdiWindowManager: Removed unused fields and methods.
11940 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11942 * StatusBar.cs: Update all panels when a AutoSize=Contents
11943 panel needs updating.
11945 * StatusBarPanel.cs: Remove twidth and only use initialize.
11948 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11950 * Form.cs: When a form's MdiParent is set add it directly
11951 on top of the z-order in stead of relying on MdiClient's
11952 ActivateChild to do it. Fixes #80135.
11955 - Remove original_order, mdi_child_list is already doing
11957 - Create mdi_child_list on construction in
11958 stead of first use (avoids a few null checks).
11960 * MenuItem.cs: Use an already existing list of mdi children
11961 to get the correct order of children and remove the other
11964 2006-12-04 Chris Toshok <toshok@ximian.com>
11966 * PropertyGridView.cs: cached_splitter_location is only used in
11967 !DOUBLEBUFFER code.
11969 * PropertyGrid.cs: implement the ComComponentNameChanged event
11970 using Events, hoping that would fix the warning. Looks like a
11971 compiler bug instead (#80144).
11973 * PropertyManager.cs: remove unused method.
11975 2006-11-04 Everaldo Canuto <everaldo@simios.org>
11977 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
11978 include parentesis to fix expression evaluation. Fixes #79634.
11980 2006-11-02 Everaldo Canuto <everaldo@simios.org>
11983 - Changes to fix behavior in Menu control, some reported in #80097
11984 and other detected during behavior refactory like a select event
11986 - Remove unneded "if's" conditions.
11987 - Created an internal to flag when popup is active in control, we need
11988 it because in .NET you can have menu active but without popup active
11989 when you active menu using popup without visible items.
11990 - Mimic win32 behavior for Select and Popup events.
11991 - Dont open popup menu when you dont have visible subitems.
11992 - Do nothing when click on disabled menu item.
11993 - Some small changes to follow the coding style guidelines.
11994 - Unselect menu only when another control gives focus. Fixes #80097.
11995 - Remove unused code.
11997 * MenuItem.cs: internal VisibleItems method to check if menu
11998 theres visible subitems, it will be usefull to fix some
11999 behavior in Menu control.
12001 2006-11-01 Everaldo Canuto <everaldo@simios.org>
12003 * Timer.cs: Tag property for 2.0 profile.
12005 2006-12-01 Chris Toshok <toshok@ximian.com>
12007 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
12009 * Win32DnD.cs: comment out some unused fields.
12011 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
12012 some unused properties/methods.
12014 * XplatUIX11.cs: fix MousePosition so we override the base class's
12015 property instead of conflicting with it.
12017 * PictureBox.cs: comment out some unused fields
12019 * OSXStructs.cs: make some struct fields public.
12021 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
12022 MousePosition so we override the base class's property instead of
12023 conflicting with it.
12025 * X11Dnd.cs: comment out some unused fields
12027 * X11DesktopColors.cs: fix some struct field visibility to quiet
12030 * X11Dnd.cs: remove some debug code.
12032 * ThemeClearlooks.cs: comment out unused field.
12034 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
12036 * ThemeGtk.cs: comment out some unused pinvokes.
12038 * Timer.cs: remove some unused fields.
12040 * ThemeClearlooks.cs: comment out unused field.
12042 * UpDownBase.cs: comment out unused field.
12044 * DataObject.cs: comment out unused field.
12046 * DataGridBoolColumn.cs: reomve unused field.
12048 * DataGrid.cs: remove unused field.
12050 * Cursor.cs: remove old ToBitmap code.
12052 * ControlPaint.cs: remove unused method.
12054 * ScrollBar.cs: remove unused fields.
12056 * ComboBox.cs: remove unused field, and chain up to
12057 AccessibleObject ctor.
12059 * ListBox.cs: remove unused field.
12061 * ButtonBase.cs: wrap a couple fields in NET_2_0.
12063 * GridEntry.cs: remove unused fields.
12065 * Binding.cs: remove unused fields.
12067 * AxHost.cs: remove unused method.
12069 * ContainerControl.cs: remove unused field.
12071 * ScrollableControl.cs: remove unused fields.
12073 2006-12-01 Chris Toshok <toshok@ximian.com>
12075 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
12076 the Where/WhereString stuff. it's easy enough to CWL
12077 Environment.StackTrace.
12079 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
12080 unused private fields.
12082 2006-12-01 Jackson Harper <jackson@ximian.com>
12084 * TextControl.cs: Do not update the view while inserting multiline
12085 text. If we update the view we might wrap lines, before entering
12086 the new lines, which causes the new line insertion calculations to
12087 be totally fubared.
12088 - Remove an old TODO
12089 - Make debug output a little nicer
12091 2006-12-01 Chris Toshok <toshok@ximian.com>
12093 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
12095 2006-12-01 Chris Toshok <toshok@ximian.com>
12097 [ fix the majority of the CS0108 warnings we've been suppressing ]
12099 * TreeView.cs: mark BackgroundImageChanged as 'new'.
12101 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
12102 to "LayoutToolBar" to quiet mcs.
12104 * TabControl.cs: mark our ControlCollection class as 'new'.
12106 * TextBoxBase.cs: mark some events as 'new'.
12108 * Splitter.cs: TabStop is 'new'.
12110 * ControlBindingsCollection.cs: mark a few methods as new since
12111 they change the visibility from protected to public.
12113 * RadioButton.cs: DoubleClick -> base class, and remove unused
12116 * MonthCalendar.cs: ImeMode property -> base class, and mark many
12119 * NumericUpDown.cs: TextChanged -> base class.
12121 * CheckedListBox.cs: mark our ObjectCollection class as new to
12124 * FolderBrowserDialog.cs: make HelpRequest event new and have it
12125 muck with the base class.
12127 * StatusBar.cs: fix some mcs warnings about Update being the same
12128 name as a base class method.
12130 * RichTextBox.cs: mark some events as new, and make them do things
12131 to the base class impl.
12133 * UserControl.cs: mark TextChanged as new, and have it manipulate
12136 * UpDownBase.cs: mark some things new.
12138 * CheckBox.cs: mark DoubleClick "new", and add some text about
12139 what we need to look at.
12141 * Panel.cs: make the events "new", and manipulate the base
12142 version. these are just here for attributes.
12144 * AccessibleObject.cs: make owner private.
12146 * Control.cs: deal with AccessibleObject.owner being private.
12147 cache our own copy if we need it.
12149 * Button.cs: add "new" to the DoubleClickEvent.
12151 * ListBox.cs: no need to track our own has_focus here. let
12152 Control.has_focus do it for us. Also some other work to clear up
12153 warnings about not overriding base class methods of the same name.
12155 * ComboBox.cs: clear up some warnings about not override base
12156 class methods of the same name.
12158 2006-12-01 Chris Toshok <toshok@ximian.com>
12160 * Form.cs: flag a few things as "new" to quiet some of the mcs
12165 * PrintPreviewDialog.cs: same.
12167 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
12168 now DGV isn't so horrible on the class status page. also, move
12169 all events to using System.ComponentModel.EventHandlerList. my
12172 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12174 * MdiWindowManager.cs:
12175 - Set form to active mdi child if shown,
12176 and update the active mdi child to the next
12177 remaining child in the z-order if the form is hidden.
12180 - Track if the form has been visible and if its
12181 visibility is beeing changed, so that the MdiClient
12182 can properly decide the ActiveMdiChild. The MdiClient
12183 cannot track this since the form can change visibility
12184 before MdiClient is created.
12187 - Don't activate anything of the parent form is changing
12189 - Rework ActiveMdiChild to only return visible mdi
12190 children and take into account several other corner
12193 2006-12-01 Chris Toshok <toshok@ximian.com>
12195 * IBindableComponent.cs: new 2.0 interface.
12197 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
12199 * DataGrid.cs: Font for caption area is bold by default.
12201 2006-12-01 Everaldo Canuto <everaldo@simios.org>
12203 * Menu.cs: Tag property for 2.0.
12205 2006-11-01 Everaldo Canuto <everaldo@simios.org>
12207 * ThemeWin32Classic.cs: Adjust menu separator drawing.
12209 2006-12-01 Chris Toshok <toshok@ximian.com>
12211 * TreeView.cs: doh, the Begin* events should be
12212 TreeViewCancelEventHandler.
12214 2006-12-01 Chris Toshok <toshok@ximian.com>
12216 * Form.cs: Form.ControlCollection already stores off the
12217 form_owner field. don't access the base class's internal "owner"
12220 * Control.cs: make all the fields in Control.ControlCollection
12221 private. there's no need for any internal fields here.
12223 2006-12-01 Chris Toshok <toshok@ximian.com>
12225 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
12226 OnHandleCreated. Fixes bug #80109.
12228 2006-12-01 Chris Toshok <toshok@ximian.com>
12230 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
12231 SplitContainer.cs, Control.cs, StatusStrip.cs,
12232 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
12233 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
12234 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
12235 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
12236 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
12237 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
12238 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
12239 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
12240 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
12241 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
12243 do most of the work to convert our code over to use
12244 System.ComponentModel.Component.Events for
12245 adding/removing/dispatching events.
12248 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
12250 * DataGridView.cs: Fix an ArgumentNullException reported
12251 twice today in IRC.
12253 2006-11-30 Mike Kestner <mkestner@novell.com>
12255 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
12256 grabbed listbox. Fixes #80036 and #80101.
12258 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12260 * Message.cs: Changed ToString() to match MS.
12262 2006-11-30 Jackson Harper <jackson@ximian.com>
12264 * TextBoxBase.cs: You can still change the selected text on a read
12266 * TextControl.cs: Lower magic number for wrap calculations. This
12267 lets text get closer to the right (far) edge.
12269 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
12271 * Control.cs: Tweak 2.0 layout properties.
12272 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
12273 * TextRenderer.cs: Add a new overload.
12274 * ToolStrip*: Huge amount of changes and new features.
12276 2006-11-30 Mike Kestner <mkestner@novell.com>
12278 * ComboBox.cs: fixes for LargeChange and Maximum to get the
12279 scroll range correct. Fixes #79994.
12281 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12283 * MdiWindowManager.cs: Update main form's text when
12284 a form is closed. (fixes #80038)
12286 2006-11-30 Everaldo Canuto <everaldo@simios.org>
12289 - Fix an regression in ButtonSize.
12290 - Get ImeMode default value change to "Disable".
12291 - Get ShowTooltips default value change to true, default value is
12292 "false" but after make a test in .NET we get "true" result as default.
12294 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
12296 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
12298 2006-11-29 Chris Toshok <toshok@ximian.com>
12300 * XplatUIWin32.cs (GetWindowTransparency): check return value of
12301 GetLayeredWindowAttributes. if it's 0, return 1.0, as
12302 SetWindowTransparency hasn't been called.
12304 2006-11-29 Chris Toshok <toshok@ximian.com>
12306 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
12308 (set_AllowTransparency): reorder things a little so that the
12309 WS_EX_LAYERED style is removed properly.
12311 2006-11-29 Chris Toshok <toshok@ximian.com>
12313 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
12315 * Form.cs: only call the XplatUI transparency method (get/set) if
12316 SupportsTransparency says it's supported. Otherwise fallback to
12317 doing nothing (in the set case) or returning the instance field we
12318 cache (in the get case).
12320 * XplatUIStructs.cs: add TransparencySupport flag enum.
12322 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
12323 change to SupportsTransparency.
12325 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
12326 TransparencySupport.None from SupportsTransparency.
12328 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
12329 TransparencySupport.Set from SupportsTransparency.
12331 * XplatUIWin32.cs: implement GetWindowTransparency calling
12332 GetLayeredWindowAttributes, and implement SupportsTransparency by
12333 checking whether or not both
12334 GetWindowTransparency/SetWindowTransparency are available
12335 entrypoints. We need to do this since SetWindowTransparency is
12336 available as of win2k, but GetWindowTransparency requires winxp.
12339 * XplatUI.cs: Add GetWindowTransparency, and change
12340 SupportsTransparency to allow for either/both Get/Set.
12342 2006-11-29 Chris Toshok <toshok@ximian.com>
12344 * DataGrid.cs: keep from going into an infinite loop redrawing a
12345 datagrid that has no datasource. Fixes bug #80033.
12347 2006-11-29 Chris Toshok <toshok@ximian.com>
12349 * MenuItem.cs: fix the NRE when we assign text (and therefore call
12350 Invalidate) before the mainmenu has been assigned to a control.
12352 2006-11-29 Chris Toshok <toshok@ximian.com>
12354 * DataGrid.cs: detect when we should be double the double click
12355 row/column autosize stuff, although that codepath has yet to be
12356 written. part of the work for bug #79891.
12358 2006-11-29 Chris Toshok <toshok@ximian.com>
12360 * Binding.cs (SetControl): fix unit test.
12362 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12364 * PageSetupDialog.cs: Validate the margins and set them in
12366 * NumericTextBox.cs: New class to mimic the behavior of the
12367 textboxes used in the printing dialogs.
12369 2006-11-29 Andreia Gaita <avidigal@novell.com>
12371 * Form.cs: Revert previous change (remove call UpdateBounds
12372 from form constructor), because it messes with the handle creation
12373 order, and that one needs lots and lots of love.
12374 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
12375 for valid printer and throw InvalidPrinterException if document
12376 is set but printer not valid), adding a MonoTODO. Once
12377 handle creation is done properly, we can put this back in.
12379 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12381 * MenuItem.cs: Create a invalidate method for menu item, to be
12382 calling from set text, it make text changes to imadiate update
12383 on screen. Fixes #80013.
12385 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12387 * ToolBar.cs: Fixes and simplify toolbar button layout, it
12388 fixes bug #80070 and some other problem on toolbar buttons
12391 2006-11-28 Everaldo Canuto <everaldo@simios.org>
12393 * ThemeWin32Classic.cs: Paint toolbar toggle button background
12394 with dotted brush. Fixes #79564
12396 2006-11-28 Andreia Gaita <avidigal@novell.com>
12398 * Form.cs: Removed call to UpdateBounds on Form
12399 constructor, it was causing a call to CreateHandle
12400 before it was supposed to.
12401 * PrintControllerWithStatusDialog: Applied patch
12402 by Chris Toshok to hide controller when there are
12403 no printers available.
12404 PrintDialog.cs: initialize printer settings to
12405 null - correct DefaultValues test #5
12406 * PrintPreviewControl.cs: Move PrintController
12407 initialization to GeneratePreview
12408 * PrintPreviewDialog.cs:
12409 - Remove Preview generation from Document_set(). It is
12411 - Throw InvalidPrinterException on CreateHandle if
12412 a Document is set but there are no printers or
12413 printer is not valid.
12414 * ThemeWin32Classic: don't paint PrintPreviewControl
12415 if there is nothing to paint
12417 2006-11-28 Miguel de Icaza <miguel@novell.com>
12419 * Form.cs: Add another popular method.
12421 * TabPage.cs: ditto.
12423 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12425 * MenuItem.cs: Fixed a warning.
12426 * InternalWindowManager: Fixed a warning.
12428 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12431 - When cloning a menu also clone MdiList and clone the
12432 window menu items properly (as the forms and menuitems
12433 are kept in an internal hashtable, these need updating
12435 - Rewrote the window menu code, menu items are added in the
12436 order the forms were added to their parent, and they are
12437 updated every time the window menu is shown (before the
12438 list was only generated once, in the current order of the
12439 forms, and would never be updated). A checkmark is shown
12440 next to the item corresponding to the active mdi child.
12442 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12444 * XplatUIStructs.cs:
12445 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
12448 - Added TME_NONCLIENT to TMEFlags.
12449 - Handles WM_NCMOUSEMOVE in GetMessage to
12450 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
12452 * MdiWindowManager:
12453 - Now merges mdi child menu to parent menu when maximized.
12454 - Recalculate NC areas of both mdi child and mdi parent.
12456 on window state and size changes.Fixes #79844 (3).
12457 - Handle WM_NCCALCSIZE to properly calculate borders.
12460 - Add/remove to the mdi containers list of mdi children
12461 in the order they are added.
12462 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
12463 to the maximized mdi child.
12465 * InternalWindowManager.cs:
12466 - Only execute a click on the control buttons on the mouse up,
12467 not on the mouse down. Show the state of the button
12468 (was only showing Normal state, never Pressed state). The
12469 pressed button now follows the mouse (if you click the Close
12470 button and move the mouse over the Maximize button, the
12471 Maximize button will be shown as pressed). Since Win32 does
12472 not generate WM_NCLBUTTONUP if you release the button outside
12473 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
12476 * ThemeWin32Classic.cs:
12477 - Draw a missing border around mdi child forms. Fixes #79844 (2).
12480 - Added a list of forms which contains the order the forms are
12481 added to the mdi parent.
12482 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
12483 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
12484 - If the active form changes set the scrollbars to the top
12485 of the Z order, otherwise the form could hide them.
12486 - Scrollbars are now sized according to ClientSize, not
12487 to Size, and they take into account the other scrollbar
12488 to determine maximum.
12490 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12493 * XplatUIDriver.cs:
12497 - Added RequestAdditionalWM_NCMessages for windows to
12498 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
12499 Currently only implemented in XplatUIWin32.
12501 2006-11-27 Chris Toshok <toshok@ximian.com>
12503 * Hwnd.cs: only add the hwnd to the windows hash in
12504 set_WholeWindow and set_ClientWindow if whole_window/client_window
12505 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
12507 2006-11-27 Mike Kestner <mkestner@novell.com>
12509 * ComboBox.cs: remove redundant OnDropDown call. It is called
12510 from the ComboListBox.ShowWindow code. Fixes #79969.
12512 2006-11-27 Chris Toshok <toshok@ximian.com>
12514 * Hwnd.cs: remove the setters for ExposePending and
12515 NCExposePending - noone uses them.
12517 2006-11-27 Jackson Harper <jackson@ximian.com>
12519 * TextControl.cs: new param for ReplaceSelection which determines
12520 whether we select the new selection, or set the cursor to the end
12521 of the new selection.
12522 * TextBoxBase.cs: Use new param for ReplaceSelection. When
12523 pasting, select the new text.
12524 * RichTextBox.cs: Use new param for ReplaceSelection.
12526 2006-11-27 Jackson Harper <jackson@ximian.com>
12528 * TextBoxBase.cs: Set the selection to the caret after the caret
12529 is moved, otherwise they get out of sync.
12531 2006-11-26 Everaldo Canuto <everaldo@simios.org>
12533 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
12536 2006-11-26 Everaldo Canuto <everaldo@simios.org>
12538 * ThemeWin32Classic.cs:
12539 - Fix toolbar drop down arrow position.
12540 - Fix drop down appearance when ToolBar.Appearance is normal,
12543 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
12545 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
12546 * Control.cs: Same.
12547 * UpDownBase.cs: Same.
12548 * ButtonBase.cs: Same.
12549 * ScrollBar.cs: Same.
12550 * TrackBar.cs: Same.
12551 * PictureBox.cs: Same.
12552 * UserControl.cs: Same.
12554 * ListControl.cs: Same.
12555 * TextBoxBase.cs: Same.
12556 * ListView.cs: Same.
12557 * RichTextBox.cs: Same.
12558 * TreeView.cs: Same.
12560 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
12563 - Text label for where
12564 - Text label comment was not shown
12566 2006-11-23 Everaldo Canuto <everaldo@simios.org>
12568 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
12570 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12572 * InternalWindowManager.cs:
12573 - Handle WM_PARENTNOTIFY to activate the form
12574 if any child control is clicked.
12575 - The form is only sizable if not minimized.
12577 * MdiWindowManager.cs:
12578 - Save the IconicBounds if the form is moved.
12579 - Rework SetWindowState, now the window bounds
12580 are stored only if the old window state is Normal.
12583 - In SetWindowStates store the old window state if
12584 the window is maximized and restore window state if
12585 the window looses focus.
12586 - Don't handle any scrollbar value changes if
12587 initializing the scroll bars. Fixes #79771.
12588 - Reworked ArrangeIconicWindows. Current algorithm
12589 tests bounds agains all other minimized windows, if
12590 any intersections create new bounds (going left to
12591 right, bottom to top) and then test again. When
12592 successful the bounds are saved and never computed
12593 again. Fixes #79774.
12595 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12597 * InternalWindowManager.cs: Added HandleTitleBarUp.
12599 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12601 * NumericUpDown.cs: In .NET 1.1, user entered text is still
12602 hexadecimal in ParseUserEdit.
12605 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12607 * MdiWindowManager.cs:
12608 - Handle a click on the form's icon to show the
12609 system menu (when maximized). Fixes #79775.
12610 - Change the existing click handler for the form's
12611 icon when not maximized to show on MouseUp.
12614 * Form.cs: In OnResize only layout the mdi child's
12615 parent if it actually has a parent. Might not if
12616 the window is closing.
12619 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12621 * MdiClient.cs: Ignore active MDI client for text of parent, if
12622 child has no text set.
12624 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
12626 * ToolBar.cs: Fixed ToString to match MS.
12628 2006-11-22 Andreia Gaita <avidigal@novell.com>
12631 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
12632 update inner values on set. Fixes #79966.
12633 - Override OnLostFocus to update value on NET 2. Fixes #79950.
12634 - Fix hexadecimal parsing.
12636 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
12637 parent. Fixes #79957
12639 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12641 * Control.cs: After calling SetWindowsPos in SetBoundsCore
12642 the actual size has to be queried, since if height /
12643 width is negative Win32 changes it to 0.
12644 Fixes #79999 on Windows.
12646 * XplatUIX11.cs: Set height / width to 0 if negative
12647 in SetWindowPos. Fixes #79999 on Linux.
12649 2006-11-22 Everaldo Canuto <everaldo@simios.org>
12651 * ThemeWin32Classic.cs: Fix text redenring when button is
12654 2006-11-22 Everaldo Canuto <everaldo@simios.org>
12656 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
12657 and later navigate by mouse. Fixes #79528.
12659 2006-11-21 Everaldo Canuto <everaldo@simios.org>
12661 * ToolBar.cs: Set default value for TabStop to false in
12662 constructor, it fixes remaining behavior of bug #79863.
12664 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12666 * MdiWindowManager.cs:
12667 * InternalWindowManager.cs:
12668 - Moved a few methods specific to Mdi from
12669 InternalWindowManager to MdiWindowManager.
12672 2006-11-21 Chris Toshok <toshok@ximian.com>
12674 * XplatUIOSX.cs: stub out InvalidateNC.
12676 * XplatUIWin32.cs: implement InvalidateNC using the call I found
12677 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
12679 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
12681 * XplatUIDriver.cs: add InvalidateNC abstract method.
12683 * XplatUI.cs: add InvalidateNC.
12685 2006-11-21 Everaldo Canuto <everaldo@simios.org>
12687 * ToolBar.cs: Invalidate complete button area when pressed status
12689 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
12690 * ThemeWin32Classic.cs: Increase vertical and horizontal position
12691 by 1 when button is pressed.
12693 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12695 * ToolButton.cs: Invalidate middle of DropDown button when
12696 ToolBar theres DropDownArrows.
12697 * ThemeWin32Classic.cs: Change position of DropDown arrow and
12698 fix DropDown drawing operations.
12700 2006-11-20 Chris Toshok <toshok@ximian.com>
12702 * NativeWindow.cs: fix the formatting of functions ('{' on the
12703 following line), and enable the thread exception dialog.
12705 * Application.cs: remove the duplicate exception catching from
12708 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12710 * Toolbar.cs: Triggers button click event when click on icon
12711 of dropdown ToolBarButton. Fixes #79912.
12713 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12716 * ThemeWin32Classic.cs:
12717 - Added a property WindowBorderFont to enable themeing
12718 of mdi child windows' Text.
12720 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12722 * InternalWindowManager.cs:
12725 * MdiWindowManager.cs:
12726 - If mdi child is maximized, set mdi parent's
12727 text to "Parent - [Child]". Fixes #79770.
12728 - If there is any maximized mdi child windows, only the active
12729 window (and any new windows) is maximized, the rest are normal.
12730 - On a WindowState change only save mdi child's window bounds
12731 if the old window state was normal. Fixes #79774.
12732 - The scroll bars are now calculated on hopefully all
12733 necessary events. Fixed #79771 / #79844->6 / #79906.
12734 - MdiClient.SizeScrollBars() now takes into account docked
12735 controls in the parent when calculating available space.
12736 - InternalWindowManager now always repaints the entire title
12737 area. Fixes #79844->1/4/5.
12738 - Added RequestNCRecalc on mdi child windowstate changes.
12741 2006-11-20 Mike Kestner <mkestner@novell.com>
12743 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
12744 in the MouseUp handler of the listbox and move the return handling
12745 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
12747 2006-11-20 Everaldo Canuto <everaldo@simios.org>
12749 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
12751 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
12753 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
12754 working in 1.2.x anymore. So, updated.
12756 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
12758 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
12759 NumberGroupSeparator of current culture instead of assuming en-US.
12762 2006-11-17 Mike Kestner <mkestner@novell.com>
12764 * Control.cs: Add the concept of implicit bounds setting so that
12765 dock/undock round trips preserve explicitly set size/locations.
12768 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
12770 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
12771 can't handle those filters. (Fixes bug #79961)
12773 2006-11-17 Chris Toshok <toshok@ximian.com>
12775 [ fixes the exit/crashes associated with #79835. it's clearly
12776 suboptimal though, we need to figure out a better way to solve
12779 * PrintPreviewControl.cs: deal with the new invalid printer
12782 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
12783 and return false (so CommonDialog.ShowDialog doesn't actually show
12786 * PrintDialog.cs: enable/disable the Ok button depending on
12787 whether or not the printer is valid.
12789 * CommonDialog.cs (ShowDialog): only actually show the form if
12790 RunDialog returns true.
12792 2006-11-17 Jackson Harper <jackson@ximian.com>
12794 * TextControl.cs: When soft splitting a line, mark it as a soft
12795 split line. Also carry over the current line break to the next
12798 2006-11-17 Chris Toshok <toshok@ximian.com>
12800 * XplatUIX11.cs: when scrolling a window with an invalid area, we
12801 only want to shift the part of the invalid area that overlaps the
12802 area we're scrolling. we also don't want to clear the invalid
12803 area unless the invalid area was entirely contained within the
12806 2006-11-16 Chris Toshok <toshok@ximian.com>
12808 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
12809 also make sure to free the memory returned by XGetWindowProperty
12812 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
12814 2006-11-16 Chris Toshok <toshok@ximian.com>
12816 * XplatUI.cs: add a new super secret way to get at the totally
12817 unsupported X11 backend.
12819 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
12821 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
12823 2006-11-16 Jackson Harper <jackson@ximian.com>
12825 * TreeView.cs: Allow more explicit setting of top node position
12826 for scrollbars. Slower algo, but more accurate.
12827 - CollapseAll should maintain the current top node.
12828 * TextBoxBase.cs: When positioning the caret, use the line, pos
12829 method, since the x, y method does not grab the correct tag, and
12830 the caret height never gets set correctly. (Maybe I should just do
12831 away with the caret having its own height, and always use the
12832 carets current tag for height).
12834 2006-11-16 Jonathan Pobst <monkey@jpobst.com
12836 [Fixes 79778, 79923]
12838 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
12839 Parent to the FosterParent instead.
12841 2006-11-16 Jackson Harper <jackson@ximian.com>
12843 * TreeView.cs: Need to recalc the topnode when we expand or
12844 collapse. The scrolling methods can't handle this on their own,
12845 since they use differences between the last scroll position, and
12846 those difference get completely messed up since we are expanding
12847 nodes. This problem should probably be fixed in the scrolling
12848 methods, so they can figure out exactly where they are, but this
12849 will slow things down a little.
12850 * ThemeWin32Classic.cs: Special case for groupboxes with empty
12851 strings, makes nunit-gui look a lot nicer.
12853 2006-11-16 Chris Toshok <toshok@ximian.com>
12855 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
12856 the broken multithreaded event handling we have in here. File
12857 this entry under "Why we should move to the new X11 backend".
12859 Any thread can make it into UpdateMessageQueue, which gets events
12860 from the X socket - some of which could belong to hwnds being
12861 managed by a different thread. We can also have multiple threads
12862 in UpdateMessageQueue at the same time, with each one reading from
12863 the X socket. This leads to many problems, with the following
12866 We can't use hwnd.Queue.Enqueue anywhere in here and must use
12869 The MotionNotify compression we do can't work across threads
12870 (without locking the entire queue, perhaps) since we call
12871 hwnd.Queue.Peek, so we just punt and don't compress motion events
12872 unless the owning thread is the one which got the X event.
12874 ConfigureNotify is another fun one, since it modifies the hwnd's
12875 bounds and then enqueues the event. We add a lock to Hwnd which
12876 is held when setting configure_pending to true (and enqueuing the
12879 There is a race wrt the wake socket. we need to make sure that
12880 only 1 thread is waiting on that socket, or else a thread could
12881 sleep waiting for data that never comes. It's difficult (but not
12882 impossible) to make happen, because it seems to require something
12883 like the following:
12885 1. Thread 1 polls on wake_receive
12887 2. poll returns saying there's data to be read on
12890 3. Thread 2 polls on wake_receive and immediately returns
12891 saying there's data to be read.
12893 4. Thread 2 reads the wakeup byte from wake_receive
12895 5. Thread 1 attempts to read the wakeup byte from
12898 6. Thread 2 exits (due to a form closing, perhaps).
12900 7. Thread 1 blocks forever.
12904 Fixing the Expose handling isn't done yet, and the races inherent
12905 in that piece of code are responsible for the drawing mistakes you
12906 see when generating expose events in a MT app (like NPlot). This
12907 one is the likely to be the hardest to bandaid, and it doesn't
12908 appear to cause anything but drawing problems. The other issues
12909 caused apps to exit or hang.
12911 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
12912 called from a different thread than the one that should be calling
12915 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
12917 2006-11-15 Chris Toshok <toshok@ximian.com>
12919 * Application.cs: null out the context's MainForm when we exit
12920 RunLoop. Fixes a newly checked in unit test as well as the last
12921 ODE from bug #79933.
12923 2006-11-15 Chris Toshok <toshok@ximian.com>
12925 * Form.cs (set_Owner): allow a null value so we can clear the
12927 (Dispose): set all our owned_form's Owner properties to null, and
12928 clear the owned_forms collection.
12929 (WM_CLOSE): clean up this a little bit.. still not right though.
12931 * ApplicationContext.cs: OnMainFormClosed should only call
12932 ExitThreadCore if the main form isn't recreating. Fixes unit
12935 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12939 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
12941 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12945 * Hwnd.cs: Add a flag to show a window, but not activate it, to
12946 keep popup window types from stealing focus from the main form
12949 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
12951 * MenuAPI.cs: Set above flag to true.
12953 2006-11-15 Chris Toshok <toshok@ximian.com>
12955 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
12956 the button being released is not in wParam.
12958 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
12960 * Form.cs: Add the released button to MouseEventArgs.Button
12961 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
12964 2006-11-15 Chris Toshok <toshok@ximian.com>
12966 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
12967 GetText(). untested because it's unused in our implementation.
12968 Control.Text always caches the text, even if
12969 ControlStyles.CacheText is not set.
12973 2006-11-15 Chris Toshok <toshok@ximian.com>
12977 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
12978 message. no hiding, no disposing.
12980 in the WM_CLOSE handler, hide the form if it's modal.
12982 2006-11-15 Chris Toshok <toshok@ximian.com>
12984 * XplatUIX11.cs: use AddExpose instead of sending a message.
12985 fixes textbox border drawing.
12987 2006-11-15 Chris Toshok <toshok@ximian.com>
12989 * PropertyGridView.cs: keep from crashing on mouse move/down when
12990 the property grid is empty.
12992 2006-11-14 Jackson Harper <jackson@ximian.com>
12994 * TextControl.cs: Make PageUp and PageDown more like the MS
12996 * TextBoxBase.cs: When we set the text property position the
12997 cursor at the beginning of the document.
12999 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
13001 * Form.cs: if a mdi child's WindowState has changed
13002 before it's creation, it would display wrong control
13005 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
13007 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
13010 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
13012 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
13013 the window gets to paint its borders even if the window is
13016 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
13017 otherwise the old control buttons would still be painted
13018 if the window gets bigger.
13020 * PaintEventArgs.cs: add an internal method so that the clip
13021 rectangle can be changed.
13023 2006-11-13 Chris Toshok <toshok@ximian.com>
13025 [ fixes bug #79745 ]
13027 * NotifyIcon.cs: lots of cleanup.
13029 * X11Structs.cs: add an enum for XEMBED messages.
13031 * XplatUIX11.cs: reindent one of the giant switch statements, it
13032 was taking up an additional tab stop, and this file is already way
13033 too wide for my laptop's screen.
13035 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
13036 we get it, resize the hwnd to the WMNormalHints max_width/height.
13038 2006-11-13 Jackson Harper <jackson@ximian.com>
13040 * TextBoxBase.cs: Compute the value changes for the mouse wheel
13043 2006-11-13 Chris Toshok <toshok@ximian.com>
13045 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
13046 #79898. force a reference to the Region to stick around so the
13047 unmanaged object isn't collected (rendering our handle in the MSG
13050 2006-11-13 Chris Toshok <toshok@ximian.com>
13052 * XplatUIX11.cs: fix #79917 for window managers which support
13054 using XStoreName on the raw utf8, and we need to convert to
13055 COMPOUND_TEXT if it's non-latin1.
13057 2006-11-13 Chris Toshok <toshok@ximian.com>
13059 * Form.cs (set_DialogResult): we need to set closing to false if
13060 we're setting our result to None. fixes bug #79908.
13062 2006-11-13 Jackson Harper <jackson@ximian.com>
13064 * TextControl.cs: When formatting text, compute the adjusted tag
13065 lengths correctly, using FindTag for the end tag instead of trying
13066 to figure it out outselves.
13067 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
13068 the item, ItemHeight doesn't work, because trees with large
13069 imagelists use those for their height
13070 * TreeView.cs: ActualItemHeight factors in the image height
13071 - compute left edge of checkboxes correctly
13072 - when expanding/collapsing move the bottom down one pixel, so we
13073 aren't moving part of the node
13075 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13077 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
13078 stack in PaintEventStart so that it won't get disposed by the gc
13079 before reaching PaintEventEnd.
13081 2006-11-13 Jackson Harper <jackson@ximian.com>
13083 * TextBoxBase.cs: Don't select the word if we are on a line with
13085 - We don't need to position the caret on mouse up, since the mouse
13086 move handler should be doing this
13087 - When double clicking a blank line, the caret is advanced to the
13090 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
13092 * TreeNodeCollection.cs: Avoid duplicating indexer code.
13094 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
13096 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
13097 Fixes part of bug #79910.
13099 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
13101 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
13102 (bug #79903). Some minor string updates to match ms.
13104 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13106 * FileDialog.cs: Don't add an extension if the filename
13107 already ends with that extension.
13109 2006-11-10 Jackson Harper <jackson@ximian.com>
13111 * TreeView.cs: Use the currently highlighted node for the
13112 BeforeSelect event.
13113 * TextBoxBase.cs: There is no need to expand selection on
13115 - CanUndo means 'is there any undo operations', not 'is undo
13116 allowed on this textcontrol. Fixed ClearUndo unit test.
13118 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
13120 * Button.cs: only perform click when button is Selectable (so as
13121 not to activate default buttons when they're disabled)
13123 * Control.cs: Rewrite of the SelectNextControl and related
13124 methods. HandleClick now selects next control if the current one
13127 * Form.cs: OnActivated selects next active control only if Load
13128 has already occurred. If Load hasn't run, there's no point in
13129 selecting here, Load might change the state of controls.
13131 * FocusTest.cs: Tests marked as working again for these fixes
13133 2006-11-10 Chris Toshok <toshok@ximian.com>
13135 * XplatUIX11.cs: a couple of fixes.
13137 - use XInternAtoms with almost all the atoms we need to register,
13138 instead of many, many calls to XInternAtom. should help a bit on
13139 startup time, at the expense of making the code look a little
13142 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
13143 isn't reparented (which seems to be a clue that we're running fon
13144 compiz) and they have an Owner form. This fixes the tool windows
13145 in paint.net when running under compiz.
13147 - when setting the opacity of a window, support both the case
13148 where the window has been reparented and also when it hasn't been.
13149 Since compiz/beryl doesn't seem to reparent windows, and these are
13150 the only window managers which support translucency, I'm not sure
13151 why we need the hwnd.reparented case at all.. but leave it in.
13152 now we get translucent windows in paint.net under compiz/beryl.
13154 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13156 * FileDialog.cs: Always return the value for FilterIndex that
13157 was set. Internally convert it to values that make sense.
13159 2006-11-10 Everaldo Canuto <everaldo@simios.org>
13161 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
13163 2006-11-10 Everaldo Canuto <everaldo@simios.org>
13165 * Toolbar.cs: Change default value of DropDownArrows to true, the
13166 signature still using false to make it compatible with MS but the
13167 initial value is true. Fixes #79855.
13169 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
13171 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
13172 only available on Linux.
13174 2006-11-09 Everaldo Canuto <everaldo@simios.org>
13176 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
13177 reduce number of calls to redraw method during toolbar creation.
13179 2006-11-09 Mike Kestner <mkestner@novell.com>
13181 * ListView.cs : raise SelectedIndexChanged when an item is selected
13182 programmatically via the Item.Selected property. Gert's nice
13183 ListViewSelectedIndexChanged test fixture now runs clean.
13185 2006-11-09 Mike Kestner <mkestner@novell.com>
13187 * ListView.cs : raise SelectedIndexChanged when a selected item is
13188 removed from the item collection using Remove or RemoveAt.
13190 2006-11-09 Mike Kestner <mkestner@novell.com>
13192 * ListView.cs : raise SelectedIndexChanged once per selected item
13193 for compat with MS. Fixes #79849+.
13195 2006-11-09 Chris Toshok <toshok@ximian.com>
13197 * TabControl.cs: initialize row_count to 0, and set it to 1 when
13198 we need to (if we have any tab pages). Fixes unit test.
13200 2006-11-09 Chris Toshok <toshok@ximian.com>
13202 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
13203 width is 0, not 3. Fixes a unit test.
13205 2006-11-09 Mike Kestner <mkestner@novell.com>
13207 * ListView.cs : use Implicit scrollbars so that focus isn't
13208 stolen from the listview when they are clicked. Fixes #79850.
13210 2006-11-09 Chris Toshok <toshok@ximian.com>
13212 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
13213 have a root item. Fixes #79879.
13215 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
13219 - An ArgumentException is now thrown if a wrong filter
13220 is applied (matches ms). The previous filter doesn't change
13221 anymore if an exception is thrown.
13222 - Changing the FileName property also affects FileNames
13223 * ColorDialog.cs: The length of the CustomColors array is always
13224 16. It doesn't matter if we use a smaller array or null to update
13225 or change the custom colors property.
13226 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
13227 for RootFolder if we get a undefined value.
13229 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13231 * StatusBarPanel.cs:
13232 - Width is set to MinWidth if Width is smaller than
13233 MinWidth. Fixes #79842.
13234 - MinWidth now always overrides Width (MSDN says MinWidth
13235 is set to Width when AutoSize = None, but they do not
13237 - Style has now the the correct default value.
13239 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13242 - The control is completely invalidated on
13243 Got/LostFocus to draw the focus rectangle correctly.
13244 - When AutoSize then height is always 45 (width for
13245 vertical controls).
13247 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
13248 on the mouse when moved and it doesn't move when grabbed
13249 until the mouse moves as well. Also fixed some wrong
13250 calculations when clicking on the thumb (control thought
13251 click was outside of thumb and didn't grab it).
13252 Fixes some of the issues in #79718.
13254 2006-11-08 Everaldo Canuto <everaldo@simios.org>
13256 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
13258 2006-11-08 Chris Toshok <toshok@ximian.com>
13260 * PropertyGridView.cs: only call ToggleValue if the item is not
13263 2006-11-08 Jackson Harper <jackson@ximian.com>
13265 * TextBoxBase.cs: The RichTextBox and textbox have very different
13266 word selection methods. Implement the textbox's simple word
13267 selection here, and let the RichTextBox override and provide it's
13269 - Don't do extra selection on mouseup
13270 * RichTextBox.cs: Use the documents word selection algorithm, I
13271 think ideally, this function will be pulled into the
13272 RichTextBox.cs code someday.
13274 2006-11-08 Chris Toshok <toshok@ximian.com>
13276 * RootGridEntry.cs: new class to represent GridItemType.Root.
13278 * CategoryGridEntry.cs: reformat, and add boilerplate.
13280 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
13281 returns the UI parent anyway, and we need special handling to
13282 implement the GetTarget method in the face of it. Also, implement
13285 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
13286 a root grid item, and use that instead of PropertyGrid.grid_items.
13287 Also, make use of TypeConverters (and add limitted support for
13288 ICustomTypeDescriptors) when initially populating the grid.
13289 Arrays now show up more or less properly.
13291 2006-11-08 Chris Toshok <toshok@ximian.com>
13293 * Application.cs: set the modal dialog to non modal after we close
13294 it. Fixes bug #79866.
13296 2006-11-08 Jackson Harper <jackson@ximian.com>
13298 * TextControl.cs: When combining lines carry over the line end
13299 style from the end line.
13300 - Invalidate the selected area when setting it, if it is visible.
13301 * TextBoxBase.cs: Only rich text box can do full line selects.
13302 - Make sure to set the cursor position when there is a click,
13303 otherwise two clicks in separate areas could cause a large chunk
13306 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13308 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
13311 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13313 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
13314 time. Remove tooltips when ToolButton click events. Fixes #79856.
13316 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13318 * MenuAPI.cs: Ignore right click for menu actions and fixes
13319 menu border when clicked. Fixes #79846.
13321 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13323 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
13324 MouseState after create wParam for message, this fixes mouse button
13325 equal none in mouse up events.
13327 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
13329 * Control.cs : Focus() now calls Select to set the Container's
13330 Active Control and to give it focus. To avoid infinite recursion
13331 (because ActiveControl also calls Focus at one point), a check
13332 is made in Focus with the help of a new internal variable
13335 2006-11-07 Mike Kestner <mkestner@novell.com>
13337 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
13338 if there's a selection. Fixes #79849.
13340 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
13342 * PropertyGrid.cs: Avoid fixed height of help description label.
13343 Fixes part of bug #79829.
13345 2006-11-07 Chris Toshok <toshok@ximian.com>
13347 * XplatUIX11.cs: fix #79790 again, by using the
13348 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
13350 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13352 * ToolBar.cs: Fix left click checking.
13354 2006-11-07 Chris Toshok <toshok@ximian.com>
13356 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
13358 2006-11-07 Chris Toshok <toshok@ximian.com>
13360 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
13361 PropertyManager unit tests.
13363 * PropertyManager.cs: make property_name internal.
13365 2006-11-07 Chris Toshok <toshok@ximian.com>
13367 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
13368 pass a unit test. Also, don't set image_index to anything in
13369 response to setting the ImageList property.
13371 2006-11-07 Everaldo Canuto <everaldo@simios.org>
13373 * ToolBar.cs: Ignore click events when mouse button is not a
13374 left button, only accepts other button for dropdown menus.
13377 2006-11-07 Chris Toshok <toshok@ximian.com>
13379 * DataGrid.cs: make the back and parent row buttons a little less
13382 2006-11-07 Jackson Harper <jackson@ximian.com>
13384 * TextBoxBase.cs: When converting to Text don't put line breaks in
13385 for soft line breaks.
13386 * TextControl.cs: There is an initial "fake" line in the document,
13387 this is now a soft break line, so that an extra line feed doesn't
13388 get added to the end of documents.
13390 2006-11-07 Chris Toshok <toshok@ximian.com>
13394 * CurrencyManager.cs: if the list is readonly, don't bother
13395 checking if IBindingList.AllowNew is true.
13397 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
13398 for non-DataRowView datasources.. or rather, make it not crash.
13399 (DataGridPaintRelationRow): make sure we limit the row painting to
13400 the area not covered by the row header, and make our cell width at
13401 least large enough to cover the relation area. This allows grids
13402 that have relations but no rows to render correctly.
13403 (DataGridPaintRowContents): same type of changes here.
13404 (SetDataSource): move back to always calling
13405 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
13406 navigating back through relations.
13407 (HitTest): handle the case where we have no cells but have
13408 relations. Right now we generate a hit in cell 0 of whatever the
13409 row is, not sure if this is strictly correct, but it works for our
13412 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
13413 bother doing anything.
13415 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
13417 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
13418 early version of StatusStrip. Not responsible for eaten
13419 application or firstborn children.
13421 2006-11-06 Chris Toshok <toshok@ximian.com>
13423 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
13424 call GetTabRect with a -1 index. Fixes #79847.
13426 2006-11-06 Jackson Harper <jackson@ximian.com>
13428 * TreeNodeCollection.cs: Update scrollbars after clearing.
13430 2006-11-06 Chris Toshok <toshok@ximian.com>
13432 * NumericUpDown.cs: fix the ToString method for some unit test
13435 2006-11-06 Chris Toshok <toshok@ximian.com>
13438 - set the initial SelectedGridItem if we can.
13440 - Exclude non-mergable properties only if we're merging > 1
13441 object. Merging 1 object isn't really merging, obviously.
13443 - Handle PropertySort.NoSort just like Alphabetical, which is
13444 wrong of course, but at least gets things on the screen.
13446 * PropertyGridView.cs:
13447 - Add method "FindFirstItem" which finds the first property grid
13448 item, so we can select it by default.
13450 - make use of GridEntry.CanResetValue.
13452 - Don't call RedrawBelowItemOnExpansion here anymore, the
13453 individual GridEntry's will do that.
13455 - Remove the ITypeDescriptorContextImpl internal class.
13458 - this class needs to implement ITypeDescriptorContext, as it's
13459 what MS's PropertyDescriptorGridEntry does, which means we can
13460 remove the ITypeDescriptorContextImpl internal class from
13461 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
13463 - keep a reference to our PropertyGridView, and move the call to
13464 RedrawBelowItemOnExpansion here from PGV. This means
13465 programmaticly setting Expanded actually does something visible.
13467 - add a CanResetValue() function which takes into account our
13468 possibly multiple "selected_objects" in the merged case. Shifting
13469 PropertyGridView to use this method fixes another unreported
13470 crasher found running the test for #79829.
13472 - when Top or Bounds is updated, make sure the PropertyGridTextBox
13473 is updated to reflect this.
13475 * CategoryGridEntry.cs: the ctor takes the PGV now.
13477 2006-11-06 Jackson Harper <jackson@ximian.com>
13479 * TextControl.cs: These are 1 based.
13480 * TextBoxBase.cs: When setting the selected text, don't change the
13481 selected text tags, this is done by ReplaceText, just position the
13482 cursor at the end of the new text.
13484 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
13486 * ListView.cs: Allow label edit only when, when LabelEdit is
13489 2006-11-06 Jackson Harper <jackson@ximian.com>
13491 * TextControl.cs: If a suitable wrapping position isn't found,
13492 just wrap right in the middle of a word.
13494 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
13496 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
13499 2006-11-06 Jackson Harper <jackson@ximian.com>
13501 * TreeView.cs: Can't use the VisibleCount property when setting
13502 scrollbar heights, because this doesn't take into account whether
13503 or not the horz scrollbar just came visible.
13505 2006-11-05 Everaldo Canuto <everaldo@simios.org>
13507 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
13508 activated. Fixes #79369, #79832.
13510 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
13512 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
13513 had to remove support for links that point to a directory. FileInfo
13514 returns no usefull information (means, the directory they point to)
13515 for such links. Replaced some empty string ("") with String.Empty.
13517 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
13519 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
13520 NullReferenceException when attempting to remove node that is not in
13521 collection. Throw NullReferenceException when null is passed to
13522 Remove. Allow first element of the collection to be removed. Fixes
13523 bug #79831. In GetEnumerator ().Current return null if positioned
13524 before the first element of the collection. In GetEnumerator ().Reset,
13525 position before first element of the collection.
13527 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
13529 * PropertyGrid.cs: To match MS, remove default title and description
13530 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
13533 2006-11-04 Chris Toshok <toshok@ximian.com>
13535 * Theme.cs: add a Clamp method, just for kicks.
13537 * ThemeWin32Classic.cs: clamp all color components to [0..255].
13539 2006-11-04 Chris Toshok <toshok@ximian.com>
13541 * Form.cs: if the form isn't visible, Close() does nothing.
13543 2006-11-03 Chris Toshok <toshok@ximian.com>
13545 * Form.cs (Close): if the form is modal, don't Dispose of it, only
13547 (WndProc): don't Dispose after handling the WM_CLOSE message.
13549 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
13550 them as such, instead of using casts from Control to Form. Also,
13551 don't Dispose of the modal dialog when we fall out of the loop -
13552 Close() it instead.
13556 2006-11-03 Chris Toshok <toshok@ximian.com>
13558 * Control.cs (Dispose): only go through the dispose thing if we're
13559 @disposing, and we haven't already been disposed. Fixes bug
13562 * Form.cs: no reason to call "base.Dispose()" here instead of
13565 2006-11-03 Mike Kestner <mkestner@novell.com>
13567 * ComboBox.cs : use ToString instead of casts in AddItem for
13568 sorting functionality. Fixes #79812.
13570 2006-11-03 Chris Toshok <toshok@ximian.com>
13572 * Application.cs: pave the way for actually using the thread
13573 exception dialog. it's ifdefed out at the moment.
13575 2006-11-03 Chris Toshok <toshok@ximian.com>
13577 * ThreadExceptionDialog.cs: until we get a better layout, actually
13578 hide the details textbox and label when we shouldn't see them.
13580 2006-11-03 Jackson Harper <jackson@ximian.com>
13582 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
13583 multiline textboxes anymore. This method also determines the
13584 width/height of a textboxes canvas area.
13585 - Sorta a revert of the last patch. For multiline just position
13586 the controls, then bail. This way the scrollbar width won't be
13589 2006-11-03 Everaldo Canuto <everaldo@simios.org>
13591 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
13592 it dont need. Fixes #79537.
13594 2006-11-02 Jackson Harper <jackson@ximian.com>
13596 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
13597 send the status after firing the DndOver event.
13599 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13601 * TrackBar.cs: Now orientation only switches height / width if
13602 the control's handle is created (Win32 does it like this). Also
13603 fixed a typo in ToString() for a test to pass, changed the
13604 exception thrown in set_LargeChange and set_SmallChange to
13605 match Win32 behaviour, and added TrackBar tests to the unit
13608 2006-11-02 Chris Toshok <toshok@ximian.com>
13610 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
13611 not _NET_WM_STATE_NO_TASKBAR.
13613 2006-11-02 Jackson Harper <jackson@ximian.com>
13615 * TextControl.cs: Increment count by one, since in the update view
13618 2006-11-02 Jackson Harper <jackson@ximian.com>
13620 * TextBoxBase.cs: Use client rectangle not bounds for checking if
13621 the mouse is in the client rectangle (duh).
13623 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13625 * TrackBar.cs: Fixed trackbar jumping around when clicking
13626 on it - the trackbar was not detecting correctly at which
13627 side of the thumb the click was done. (fixes #79718)
13629 2006-11-02 Everaldo Canuto <everaldo@simios.org>
13631 * ListBox.cs: scroll visible area when change SelectedIndex to
13632 a non visible area. Fixes #79481.
13634 2006-11-01 Jackson Harper <jackson@ximian.com>
13636 * TextControl.cs: When replacing the selection move the selection
13637 start/end/anchor to the end of the new text.
13639 2006-11-01 Jackson Harper <jackson@ximian.com>
13641 * XplatUIWin32.cs: When setting the parent change the controls
13642 visibility to it's visibility flag, not to it's old parents
13643 visibility (.Visible walks the parent chain).
13645 2006-11-01 Chris Toshok <toshok@ximian.com>
13647 * XplatUIX11.cs: revert the #79790 fix, as the simple.
13648 XSetTransientForHint fix breaks paint .net's tool windows. more
13649 work needed for that one.
13651 2006-11-01 Chris Toshok <toshok@ximian.com>
13653 * ScrollBar.cs: throw ArgumentException instead of Exception in
13654 LargeChange/SmallChange setters. fixes unit tests.
13656 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
13658 * ContainerControl.cs: reverted rev.67183 (which was itself
13659 a reversion of rev.66853... eh).
13661 * Control.cs: Fixes Reflector hang by changing Focus() call
13662 to what it was before rev.66643 (calling Select() here sets
13663 ActiveControl, which in some situations calls back Focus and
13664 eventually does a stack overflow). Temp fix.
13665 Changes to GetNextControl() to not look for children to select when
13666 parent cannot be selectable (so it looks for siblings instead)
13668 2006-10-31 Mike Kestner <mkestner@novell.com>
13670 * CheckedListBox.cs : off by one error in returned index from
13671 ObjectCollection.Add. Fixes #79758.
13673 2006-10-31 Chris Toshok <toshok@ximian.com>
13675 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
13676 calls for the textbox/spinner, to keep from recursing to the point
13677 where we crash. Fixes #79760.
13679 2006-10-31 Chris Toshok <toshok@ximian.com>
13681 * ListControl.cs (set_SelectedValue): don't throw exceptions on
13682 null/"" value, just return. matches ms's behavior and fixes some
13685 2006-10-31 Chris Toshok <toshok@ximian.com>
13687 * Control.cs (set_Capture): make a logic a little easier to
13690 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
13691 if it's being destroyed. A necessary fix surely, but a bandaid
13692 also, to fix the stuck capture problem in bug #78413.
13694 2006-10-31 Chris Toshok <toshok@ximian.com>
13696 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
13697 convention of clearing hwnd.ClientRect when we set the
13698 width/height (so it'll be recalculated by Hwnd).
13700 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
13702 * ContainerControl.cs: reversed Contains check from
13703 ActiveControl due to hanging problems. This fix
13704 partly regresses #79667 (button does not have
13705 initial focus), so this might be a symptom for
13706 a larger parenting problem (set_ActiveControl
13707 is being called but the child control does
13708 not have the parent set yet?)
13710 2006-10-31 Mike Kestner <mkestner@novell.com>
13712 * MenuAPI.cs : fix keynav when menu is click activated.
13714 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
13716 * ToolStrip*: Version 0.2.
13718 * MenuStrip.cs: Version 0.1.
13720 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
13722 2006-10-30 Chris Toshok <toshok@ximian.com>
13724 [ fixes the oversized notify icon issue in bug #79745 ]
13726 * NotifyIcon.cs: scale the icon down to the size we're given by
13727 the XplatUI layer (this would be faster if we did it once instead
13728 of whenever we paint..) Also, remove the WM_NCPAINT handling,
13729 since it's never invoked.
13731 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
13732 pixels high by default, so let's hardcode our systray icon to that
13733 size. The SYSTEM_TRAY protocol should really have a way for
13734 client apps to query for the correct icon size.. but oh well. A
13735 couple of patches to deal with the screwy client_window ==
13736 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
13737 instance, and also make sure we don't XSelectInput twice).
13739 2006-10-30 Chris Toshok <toshok@ximian.com>
13741 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
13742 recreating forms. Control recreation is the bane of my existence.
13743 Fix it in a way that keeps everyone happy.
13745 2006-10-30 Chris Toshok <toshok@ximian.com>
13747 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
13748 just non-CHILD ones. otherwise sometimes scrollbars end up with
13749 client_windows not being resized to the proper size (ReportBuilder
13750 shows this extremely well).
13752 2006-10-30 Chris Toshok <toshok@ximian.com>
13754 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
13755 for non-WS_EX_APPWINDOW windows. This is what keeps them from
13756 showing up in the gnome taskbar. Fixes bug #79790.
13758 2006-10-30 Chris Toshok <toshok@ximian.com>
13760 * ApplicationContext.cs: guard against a NRE.
13762 * Application.cs: null out the old MainForm for the context, so we
13763 don't try to use it again once it's disposed. Fixes bug #79783.
13765 2006-10-30 Chris Toshok <toshok@ximian.com>
13767 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
13768 BindingContext, set the data source directly, otherwise do the
13769 lazy approach - the actual ListManager will be created when we get
13770 a BindingContext. Fixes bug #79700.
13772 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
13774 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13775 XplatUIX11.cs: Remove old 2 parameter SetVisible.
13777 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
13779 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
13781 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
13782 of SetVisible that allows a window to be shown, but not activated.
13783 This is needed on Windows for MenuStrip, and can probably be used
13784 with MainMenu and ComboBox to fix the focus stealing issues on
13787 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
13789 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
13791 * PictureBox.cs: Fix the output of the ToString method.
13793 2006-10-29 Chris Toshok <toshok@ximian.com>
13795 * Control.cs (get_TopLevelControl): fix bug #79781.
13797 2006-10-29 Chris Toshok <toshok@ximian.com>
13799 * ListControl.cs (set_DataSource): throw Exception here, not
13800 ArgumentException, to match MS behavior.
13802 2006-10-29 Chris Toshok <toshok@ximian.com>
13804 * Form.cs: remove the try-catch's around calls to GetWindowState.
13805 We can just check the return value.
13807 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
13810 * XplatUI.cs: Add note about additional return value for
13813 2006-10-29 Chris Toshok <toshok@ximian.com>
13815 * Control.cs (CreateHandle): when we create our handle, we also
13816 create the handles of our child controls. Fixes one of the
13817 Control unit tests (CH11).
13819 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
13821 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
13823 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
13825 * ThemeClearlooks.cs: A little speedup.
13827 2006-10-27 Chris Toshok <toshok@ximian.com>
13829 * Control.cs: implement Control.FromChildHandle in a way that
13830 matches the docs (and fixes the failed test.)
13832 2006-10-27 Chris Toshok <toshok@ximian.com>
13834 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
13837 * DataGrid.cs: implement ResetForeColor such that the tests
13840 2006-10-27 Chris Toshok <toshok@ximian.com>
13842 * ToolBarButton.cs: setting text/tooltiptext to null results in it
13843 being set to "". Fixes bug #79759.
13845 2006-10-27 Jackson Harper <jackson@ximian.com>
13847 * TextControl.cs: We need to clear the entire selection area when
13848 setting the start, otherwise multiline selections are still
13851 2006-10-26 Chris Toshok <toshok@ximian.com>
13853 * PropertyGridView.cs:
13855 - ifdef all the code specific to the double
13856 buffer case, and provide some alternatives in the non-doublebuffer
13857 code, which makes heavy use of XplatUI.ScrollWindow to move things
13858 around without having to invalidate (and cause flicker). There
13859 are still some drawing problems in the non-doublebuffered case, so
13860 DOUBLEBUFFER is defined by default.
13862 - Fix the way dropdowns are handled. now we explicitly watch for
13863 the events which might cause the dropdown to close, and break out
13864 of the nested event loop there. This gets rid of all Capture
13865 code, at the expense of the Msg special casing. Seems to work,
13866 though, and fixes bug #79743.
13868 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13869 * Control.cs: SetIsRecreating now recreates implicitly added
13870 child controls as well. Finally fixes #79629. The flag passed to
13871 SetIsRecreating has also been removed since it wasn't used.
13873 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13875 * PageSetupDialog.cs: Clean some code, fix some bits,
13876 add some checks, and add a printer sub-dialog.
13878 2006-10-26 Chris Toshok <toshok@ximian.com>
13880 * PropertyGrid.cs: make set_SelectedObject call
13881 set_SelectedObjects, and move the duplicate logic to the
13882 SelectedObjects setter. Also, raise SelectedObjectsChanged.
13884 * PropertyGridView.cs: hide the textbox when we get a
13885 SelectedObjectsChanged event.
13889 2006-10-26 Chris Toshok <toshok@ximian.com>
13891 * PropertyGridView.cs: deal with the type converter not supporting
13892 GetStandardValues() or GetStandardValues() returning null, which
13893 is does in the default case. Fixes #79742.
13895 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
13897 * CheckedListBox.cs: nunit no longer crashes when selecting
13898 Project/Edit menu option
13900 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
13902 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
13903 is no menu selected. fixes #79739
13905 2006-10-25 Chris Toshok <toshok@ximian.com>
13907 * PropertyGridView.cs: factor out the splitter invalidation code
13908 into the SplitterPercent setter, and for kicks implement the
13909 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
13910 amount in either direction.
13912 2006-10-25 Chris Toshok <toshok@ximian.com>
13914 * PropertyGridView.cs: do some cleanup of the brush used to draw
13915 text - read only fields should be grayed out. not sure how to do
13916 this with the textbox, though. but the textbox's should also be
13917 readonly now at least. Also, hide/show the textbox when resizing
13920 * CursorConverter.cs: use System.Reflection when getting the
13921 properties of Cursors, as TypeDescriptor.GetProperties isn't
13922 returning static properties.
13924 2006-10-25 Chris Toshok <toshok@ximian.com>
13926 * PropertyGridView.cs: factor out the up/down handling, and reuse
13927 it for page up/down. also add End/Home support.
13929 2006-10-25 Chris Toshok <toshok@ximian.com>
13931 * PropertyGridView.cs:
13933 - ensure the selected grid item is visible in the scrolled area,
13936 - fix Keys.Down handling when you're on the last item in the
13939 2006-10-25 Mike Kestner <mkestner@novell.com>
13941 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
13942 clicks too. Fixes #79725.
13944 2006-10-24 Chris Toshok <toshok@ximian.com>
13946 * PropertyGrid.cs: use property.Converter instead of
13947 TypeDescriptor.GetConverter(property.PropertyType), so we catch
13948 TypeConverters declared on the property as well as on the
13949 PropertyType. Fixes bug #79678.
13951 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
13953 * MimeIcon.cs, Mime.cs:
13954 Fallback to the default platform handler if no shared mime info
13955 stuff exists (fixes #79693).
13957 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13958 * ContainerControl.cs: Incorrect contains check in ActiveControl
13959 from previous fix (duh).
13961 2006-10-20 Chris Toshok <toshok@ximian.com>
13963 * PropertyGridView.cs: the dropdown should be MIN(number of items
13964 in list, 15). Fixes #79551.
13966 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13967 Fixes #79384, #79394, #79652, #79667
13970 - Modal windows are now destroyed in the proper order for windows
13972 * ContainerControl.cs:
13974 - ActiveControl setter has more conditions on when to return:
13975 - if we're reselecting the active control, but it actually
13976 didn't have focus (window hidden or some such), it runs
13977 - if the active control being selected doesn't actually
13978 exist in the container, it returns
13982 - The ShowDialog now gets the current form as the owner when
13983 invoking without parameters, and correctly activates the owner
13988 - MessageBox now catches the Escape key to exit
13990 2006-10-20 Chris Toshok <toshok@ximian.com>
13992 * PropertyGridView.cs: fix a number of issues (bug #78565, and
13993 most of bug #79676):
13995 - you can navigate around the property grid with the arrow keys.
13997 - the dropdown is sized properly when the pg has a vertical
14000 - fix the indentation for subentries, and properly select the
14003 - fix the gray bar's drawing (only draw it to the last element,
14004 not for the height of the control. Also make sure we draw that
14005 last horizontal grid line.
14007 - use the same mechanism the datagrid uses wrt the editing textbox
14008 when scrolling/resizing/etc. Namely, we hide it first, do the
14009 operation, then show it again (if it's still visible).
14011 - aggressively remove a lot of unnecessary refreshes (and also
14012 calls to Invalidate(). call more limited variants, and only redraw
14017 - when we're populating the merged collection, fill in the UI
14018 parent with either the passed in item, or the category item we
14021 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
14023 * GridItem.cs: drop some fully qualified names.
14025 * GridEntry.cs: add a "UIParent", which is basically the parent
14028 * GridItemCollection.cs: add an IndexOf method.
14030 2006-10-20 Mike Kestner <mkestner@novell.com>
14032 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
14033 a working win32 NC invalidation mechanism, we can't invalidate
14034 menus. [Fixes #79705]
14036 2006-10-20 Mike Kestner <mkestner@novell.com>
14038 * ListBox.cs : don't update the VScrollbar if the list is empty,
14039 just hide it. [Fixes #79692]
14041 2006-10-20 Jackson Harper <jackson@ximian.com>
14043 * RichTextBox.cs: Handle some special chars better, and don't skip
14044 the entire group when we encounter a special char that we don't
14047 2006-10-18 Chris Toshok <toshok@ximian.com>
14049 * PropertyGridView.cs: address a number of issues from bug #79676,
14050 mostly of the cosmetic variety.
14052 - The highlight rectangle for indented items not extends all the
14055 - Indented items aren't indented so much.
14057 - the dropdown is properly sized width-wise if the pg has a
14058 vertical scrollbar.
14060 2006-10-18 Chris Toshok <toshok@ximian.com>
14062 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
14063 systray stuff is rather convoluted to begin with.
14065 systray icons are a single window for some reason (that I haven't
14066 figured out yet), and for them, client_window == whole_window.
14067 Given the way the tests are structured elsewhere to determine
14068 which paints are pending (client vs. nc), that situation will
14069 always yield PAINT, not NCPAINT. So, if we have a pending
14070 nc_expose and no pending expose, remove the hwnd from the paint
14071 queue, and also set nc_expose_pending to false, to keep us from
14072 blocking further expose's adding the hwnd to the paint queue.
14074 phew. like i said, a rather convoluted change. Fixes the
14075 notifyicon repaint issues in bug #79645.
14077 2006-10-18 Chris Toshok <toshok@ximian.com>
14079 * Form.cs: when getting the backcolor of the form, don't get
14080 base.BackColor, as this allows parents to influence the background
14081 color. This breaks mdi forms. Instead, if the background_color
14082 is empty, return the default.
14084 2006-10-18 Chris Toshok <toshok@ximian.com>
14086 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
14087 to being private instead of internal static.
14089 * Control.cs: remove all the stupid ParentWaitingOnRecreation
14090 crap, it wasn't working for more deeply nested controls anyway,
14091 and we already have the is_recreating flag - use that instead.
14092 Before calling DestroyHandle in RecreateHandle, recurse through
14093 the control tree setting it to true. this returns the recreate
14094 code to much of its original simplicity, while now guaranteeing we
14095 actually recreate everything we're supposed to. This change gets
14096 fyireporting actually showing mdi children.
14098 2006-10-17 Chris Toshok <toshok@ximian.com>
14100 * Form.cs: remove some debug spew, and collapse some duplicate
14101 code at the end of SetClientSizeCore.
14104 - add some more debug spew here too wrt Destroy handling.
14105 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
14106 in Control's handling of WM_DESTROY.
14107 - Remove the handling of zombie window DestroyNotifies from the
14108 event loop - we don't need it. Now the only DestroyNotifies we
14109 actually handle are ones generated by X.
14110 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
14111 match gtk's (functioning) handling of this. This keep metacity
14112 from leaving droppings in the form of wm borders with no window
14113 contents all over the place.
14116 - add a bunch of debug spew wrt control recreation.
14117 - fix a bug where we weren't tracking Visible properly on
14119 - fixed the WM_PAINT double buffer handling to support re-entrant
14120 calls (yes, i know it's gross, but it's happening to us).
14122 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14123 * ThemeWin32Classic.cs: changed drawing of selected days
14124 to make them look better.
14126 2006-10-16 Chris Toshok <toshok@ximian.com>
14128 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
14129 drawing_stack. Nuke the ClientDC/NonClientDC properties.
14131 * XplatUIX11.cs: move away from using hwnd.client_dc and
14132 hwnd.non_client_dc and on to a stack of dc's (and in window's
14133 case, PAINTSTRUCT's), so we can deal with nested Paint calls
14134 without puking or not disposing of Graphics objects.
14136 * XplatUIOSX.cs: same.
14138 * XplatUIWin32.cs: same.
14140 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
14142 * FileDialog.cs: Don't call on_directory_changed inside
14143 OnSelectedIndexChanged (it changes the SelectedIndex too).
14144 Instead move it to OnSelectionChangeCommitted.
14146 2006-10-13 Chris Toshok <toshok@ximian.com>
14148 * XplatUIX11.cs: more Destroy work. the current code does the
14149 following things, in order:
14151 1. Enumerates all handles of all controls at or below the one
14152 being destroyed, in pre-order. As it is doing this, it marks the
14153 handles as zombie and clears all references to them.
14155 2. calls XDestroyWindow on the window passed in.
14157 3. SendMessage's WM_DESTROY to all he handles in the accumulated
14160 2006-10-13 Chris Toshok <toshok@ximian.com>
14162 * XplatUIX11.cs: set hwnd.zombie to true before calling
14163 SendMessage (WM_DESTROY). this keeps us from marking the new
14164 window a zombie, and also keeps us from calling sendmessage at
14167 2006-10-13 Jackson Harper <jackson@ximian.com>
14169 * TextControl.cs: Do not show the caret and selection at the same
14170 time. Reduces ugliness by 35%.
14172 2006-10-13 Chris Toshok <toshok@ximian.com>
14174 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
14175 zombie after we do the recursive call, so we actually do call
14176 SendMessage on the children controls.
14177 (GetMessage): if we find a pending paint event for a zombie hwnd,
14178 remove the hwnd from the paint queue, or else it will always be
14179 there (and we'll effectively loop infinitely)
14181 2006-10-13 Mike Kestner <mkestner@novell.com>
14183 * MenuItem.cs : add Selected format under keynav too.
14186 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
14188 * PropertyGrid.cs: Fixed some NRE's and small difference between our
14189 implementation and that of MS.
14191 2006-10-13 Chris Toshok <toshok@ximian.com>
14193 * Control.cs (OnInvalidated) only futz with the invalid_region if
14194 the control is double buffered. this fixes the apparent hang in
14195 the ListView unit tests. Someone needs to make the
14196 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
14198 2006-10-13 Chris Toshok <toshok@ximian.com>
14200 * PropertyGridView.cs:
14202 - do a little refactoring so that only one place calls
14203 dropdown_form.Hide, and that is CloseDropDown. make everywhere
14204 else call that. Also make it Refresh, since there are redraw bugs
14205 otherwise (we should take a look at that...)
14207 - do a little more refactoring work to share the body of code
14208 involved with the drop down. it was duplicated in the code
14209 dealing with the listbox handling and in the code dealing with the
14212 - add a Capture to the dropdown form's control once it's
14213 displayed, and add a MouseDown handler that checks to make sure
14214 the position is inside the control. If it's not, close the
14215 dropdown. This fixes #78190.
14217 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
14218 if the value is different than the initial value.
14220 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
14222 * Control.cs: see #78650
14223 - Fixed GetNextControl for several cases:
14224 - Changed FindFlatForward to return
14225 correct sibling control when more than one
14226 control has same TabIndex as the currently
14228 - Changed FindFlatBackward to loop children
14229 from last to first and apply same logic as in
14231 - Changed FindControlForward to search for
14232 children when control is not a container
14233 but has children, or search for siblings if
14234 control is a container...
14235 - Changed FindControlBackward to continue
14236 searching for child controls when hitting
14239 - Fixed Focus method to update ActiveControl
14240 (FocusTest.FocusSetsActive failure)
14243 - Focus rectangle now refreshes when gaining
14245 - Removed grab for Tab key on IsInputKey that
14246 was keeping tab navigation from working (#78650)
14248 2006-10-13 Chris Toshok <toshok@ximian.com>
14250 * PropertyGridView.cs:
14251 - Rewrite SetPropertyValue to loop over SelectedGridItem's
14254 - Deal with GridItem.Value == null a few places.
14257 - replace the PopulateGridItemCollection with a pair of methods
14258 which compute the intersection of all the properties in the
14259 SelectedObjects array. Fixes #79615.
14261 - Throw ArgumentException from set_SelectedObjects if there's a
14264 - Add GetTarget method which can be used to traverse up the
14265 GridItem.Parent chain. It depends on the assumption that
14266 selected_objects for different GridEntries are always in the same
14267 order (a safe assumption). Use this method and loop over all the
14268 selected objects in the entry when calling RemoveValueChanged and
14271 * GridEntry.cs: Make this handle multiple selected objects.
14272 .Value returns null if not all the selected objects share the same
14275 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
14276 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
14277 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
14278 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
14279 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
14280 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
14281 add additional functionality.
14283 2006-10-12 Mike Kestner <mkestner@novell.com>
14285 * ErrorProvider.cs : new ToolTipWindow ctor sig.
14286 * HelpProvider.cs : new ToolTipWindow ctor sig.
14287 * ToolTip.cs : remove ToolTip param from Window sig since it is
14289 * ToolBar.cs : add tooltip support. Fixes #79565.
14291 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14293 * ComboBox.cs: move the events in set_SelectedIndex to
14294 after the call to HighlightIndex in order to avoid
14295 possible recursion and subsequent problems with the call
14296 to HighlightIndex and include a range check in
14297 set_HighlightIndex. Fixes #79588
14299 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14301 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
14302 to ui thread's settings instead of sunday.
14303 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
14305 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
14307 * DateTimePicker.cs
14309 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
14310 and implement missing functionality (selecting different parts
14311 of the date and edit them individually with the keyboard).
14313 2006-10-11 Chris Toshok <toshok@ximian.com>
14315 * Control.cs (OnInvalidated): fix NRE relating to last change.
14317 2006-10-11 Chris Toshok <toshok@ximian.com>
14319 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
14320 atoms in _NET_WM_STATE here if the window is maximized. We need
14321 to do this because we're *replacing* the existing _NET_WM_STATE
14322 property, so those atoms will be lost otherwise, and any further
14323 call to GetWindowState will return Normal for a window which is
14324 actually maximized. Fixes #79338.
14326 2006-10-11 Jackson Harper <jackson@ximian.com>
14328 * TextControl.cs: Special case for setting selection end to
14329 selection start, we basically kill the anchor.
14330 - some todo comments.
14332 2006-10-11 Chris Toshok <toshok@ximian.com>
14334 * Control.cs: switch to using an "invalid_region" to track which
14335 parts of the image buffer need updating. This is more code than
14336 the simple fix from r66532. That version just attempted to always
14337 fill the entire buffer on redraw, which turns out to be
14338 inefficient when invalidating small rectangles. This version
14339 simply adds the invalid rectangle to the invalid region. When we
14340 get any WM_PAINT message we see if it can be filled using the
14341 image buffer, and if it can't (if the paint event's clip rectangle
14342 is visible in the invalid region) we first fill the image buffer.
14343 So, the image buffer is still a cache, we just fill it lazily.
14345 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
14346 need it any longer.
14348 2006-10-11 Chris Toshok <toshok@ximian.com>
14350 * XplatUIX11.cs (SetWindowPos): we need to update both position as
14351 well as size after calling XMoveResizeWindow. This keeps us from
14352 ignoring future SetWindowPos calls. Fixes the disappearing
14353 DateTimePicker in the ToolBarDockExample from bug #72499.
14355 2006-10-11 Chris Toshok <toshok@ximian.com>
14357 * TextBoxBase.cs: reorder things a bit when it comes to
14358 resizing-causing-recalculation. we were recalculating the
14359 document when our position was changed, which shouldn't happen.
14360 We only care about size changes. Clear up some more redundant
14361 recalculation calls while I'm at it. This makes the toolbar dock
14362 example snappy when you're just dragging toolbars around (since it
14363 causes a relayout whenever you move one.)
14365 2006-10-11 Chris Toshok <toshok@ximian.com>
14367 * ToolBarButton.cs (get_Rectangle): this only returns
14368 Rectangle.Empty if Visible == false, or Parent == null.
14369 Parent.Visible doesn't matter.
14371 2006-10-10 Chris Toshok <toshok@ximian.com>
14373 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
14374 by .net 1.1, so switch to an internal method instead.
14376 2006-10-10 Chris Toshok <toshok@ximian.com>
14378 * Control.cs (WM_PAINT): when a control is double buffered we draw
14379 initially to the ImageBuffer and then copy from there. But when a
14380 parent control which has child controls is double buffered, the
14381 initial drawing doesn't encompass the entire ClientRectangle of
14382 the parent control, so we end up with uninitialized bits (this is
14383 easily seen by dragging the top toolbar in
14384 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
14385 manually set the ClipRectangle of the paint_event (only the one we
14386 use to populate the ImageBuffer) to ClientRectangle. Fixes more
14387 of the nastiness in bug #72499.
14389 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
14390 which we use in Control.cs's WM_PAINT handling.
14392 2006-10-10 Jackson Harper <jackson@ximian.com>
14394 * TextBoxBase.cs: Finish off the autoscrolling stuff.
14396 2006-10-10 Chris Toshok <toshok@ximian.com>
14398 * Cursor.cs: Apply a slightly different patch to the one suggested
14401 2006-10-10 Jackson Harper <jackson@ximian.com>
14403 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
14404 not the parent form.
14405 * TextControl.cs: use difference in old line count vs new count to
14406 calculate how many lines were added, this takes into account soft
14407 line breaks properly.
14409 2006-10-10 Chris Toshok <toshok@ximian.com>
14411 * LinkLabel.cs: don't call MeasureCharacterRanges against a
14412 rectangle located at 0,0 and the size of the text. Use
14413 ClientRectangle instead. This fixes rendering of non-left aligned
14416 2006-10-10 Jackson Harper <jackson@ximian.com>
14418 * TextBoxBase.cs: When we set the selection start position the
14420 * TextControl.cs: Need to update the caret when we decrement it to
14422 - Make sure that the selection_visible flag gets reset to false if
14423 the selection isn't visible. Before this you could get it set to
14424 visible by changing the selection start, then changing the end to
14427 2006-10-09 Jackson Harper <jackson@ximian.com>
14429 * TreeView.cs: Don't update scrollbars when we aren't visible.
14430 * TreeNodeCollection.cs: Only need to update scrollbars if being
14431 added to an expanded visible node or the root node.
14433 2006-10-09 Chris Toshok <toshok@ximian.com>
14435 * XplatUIX11.cs (SendMessage): fix NRE.
14437 2006-10-09 Jackson Harper <jackson@ximian.com>
14439 * TextBoxBase.cs: Implement horizontal autoscrolling.
14440 * TextControl.cs: Add a movement types that allows moving forward
14441 and backwards without wrapping.
14443 2006-10-09 Mike Kestner <mkestner@novell.com>
14445 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
14446 with focus "expansion" of labels. Fixes #79532 and then some.
14447 * ThemeWin32Classic.cs : add LineLimit to ListView label format
14450 2006-10-09 Jackson Harper <jackson@ximian.com>
14452 * TextBoxBase.cs: Set the default max values to MaxValue since
14453 we use the scrollbar for autoscrolling and the default value is
14454 100. If we don't do this the caret won't keep up with typing
14455 after about 18 characters.
14456 * TextControl.cs: Make sure the selection is offset by the
14457 viewport x. This fixes selection when using auto scrolling.
14459 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
14461 * Form.cs: The active control should be selected after the
14462 OnLoad so that any child control initialization that affects
14463 the selection is done. Fixes #79406
14465 2006-10-06 Chris Toshok <toshok@ximian.com>
14467 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
14468 to have no evil effects.
14470 - Stop selecting StructureNotifyMask on non-toplevel windows.
14472 The only way children should be resized is by using the SWF api,
14473 and we already send WM_WINDOWPOSCHANGED messages in those cases.
14474 Toplevel windows can be interacted with via the window manager,
14475 and so we keep the input mask there.
14477 The other event StructureNotifyMask gives us (that we care
14478 about) is DestroyNotify. The code is already structured such
14479 that it assumes we won't be getting a DestroyNotify event for
14480 the window we pass to XDestroyWindow (which is what
14481 StructureNotifyMask is supposed to guarantee.) So, that code
14482 shouldn't be affected by this either.
14484 - Stop selecting VisibilityChangeMask altogether.
14486 We weren't doing anything with the resulting events anyway.
14488 This vastly reduces the number of X requests and events we see
14489 when resizing/laying out a large ui.
14491 2006-10-06 Chris Toshok <toshok@ximian.com>
14493 * ScrollableControl.cs (DisplayRectangle): we need to take into
14494 account the DockPadding regardless of whether or not auto_scroll
14495 == true. rework this slightly to this effect, and fix bug #79606,
14496 and part of #72499 (you can now see the drag handles and drag
14499 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
14501 * ListViewItem.cs: Collections of selected and checked items are now
14502 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
14503 we mark the collection "dirty".
14504 * ListView.cs: Marked collections readonly. Modified UpdateSelection
14505 to only clear SelectedItems when a new item is selected and MultiSelect
14506 is enabled. CheckedItems and SelectedItems now subscribe to Changed
14507 event of ListViewItemCollection, and mark its list dirty whenever
14508 that event is fire. This allows us to return selected/checked items
14509 in the same order as they are in the Items collection. This matches
14512 2006-10-06 Chris Toshok <toshok@ximian.com>
14514 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
14515 right mouse clicks. Fixes bug #79593.
14517 2006-10-06 Chris Toshok <toshok@ximian.com>
14519 * Splitter.cs: doh, fix splitters that don't want to cancel the
14520 movement when you drag them. Also, impose the limits on the
14521 values we send to the SplitterMovingEvent. Fixes #79598.
14523 2006-10-06 Jackson Harper <jackson@ximian.com>
14525 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
14526 since we use this for auto scrolling also.
14528 2006-10-05 Chris Toshok <toshok@ximian.com>
14530 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
14531 beginning to think that most datagrid column types don't need this
14532 method. Fixes bug #79392.
14534 2006-10-05 Chris Toshok <toshok@ximian.com>
14536 * DataGrid.cs: move back to a more lazy scheme for creating the
14537 CurrencyManager, so we aren't updating it every time you set
14538 either DataSource or DataMember. Also, don't call
14539 RecreateDataGridRows if the currency manager hasn't changed.
14541 2006-10-05 Chris Toshok <toshok@ximian.com>
14543 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
14544 emitted, SelectedIndex should already be updated. Fixes bug
14547 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
14549 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
14550 ToolStripTextBox.cs: Initial commit.
14551 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
14553 2006-10-05 Jackson Harper <jackson@ximian.com>
14555 * TabControl.cs: We need to invalidate the tab control area when
14556 new ones are added (duh).
14558 2006-10-03 Chris Toshok <toshok@ximian.com>
14560 * Form.cs (ProcessDialogKey): if the focused control is in this
14561 form and is a button, call its PerformClick method here. Fixes
14564 2006-10-04 Jackson Harper <jackson@ximian.com>
14566 * TabPage.cs: Ignore setting of Visible, and add an internal
14567 method for setting the controls visibility. TabPage's Visible
14568 property is a little strange on MS, this seems to make us
14569 compatible, and fixes cases where people set all the tab pages to
14571 * TabControl.cs: Use the new internal setting on tab pages
14574 2006-10-03 Mike Kestner <mkestner@novell.com>
14576 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
14578 2006-10-03 Mike Kestner <mkestner@novell.com>
14580 * ListView.cs : use is_visible instead of Visible to check if
14581 scrollbars should be placed/sized. Also some max_wrap_width
14582 love for LargeIcon view. [Fixes #79533]
14584 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
14587 Make set_TextAlign() do actually update the align. Fixed #78403.
14589 2006-10-03 Chris Toshok <toshok@ximian.com>
14591 * DataGrid.cs: fix a crash when switching datasources if the
14592 vertical scrollbar is at someplace other than Value = 0. Also,
14593 reduce the number of recalculation passes we do in SetDataSource
14596 2006-10-03 Jackson Harper <jackson@ximian.com>
14598 * TextBoxBase.cs: Move the if value the same bail check up, we
14599 don't want to empty the document if it is already empty, this
14600 seems to severly mess up the caret. TODO: I should probably fix
14601 the empty statement to update teh caret somehow.
14603 2006-10-03 Chris Toshok <toshok@ximian.com>
14605 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
14606 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
14607 reflection, an internal row type, properties on said type, etc.)
14608 will work with our datagrid. Fixes #79531.
14610 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
14612 * FileDialog.cs: Don't crash if a path is not accessible
14613 (System.UnauthorizedAccessException). Fixes #79569.
14614 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
14615 a ':' too. Return unknown icon for those paths/files.
14617 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
14619 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
14620 GetContainerControl returns null.
14622 2006-10-02 Chris Toshok <toshok@ximian.com>
14624 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
14625 call to XGetWindowAttributes instead of "handle". fixes an X
14626 error using notifyicon after the NotifyIconWindow to Form base
14629 2006-10-02 Chris Toshok <toshok@ximian.com>
14631 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
14632 server grab and looping we need to do to get down to the most
14633 deeply nested child window.
14634 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
14635 QueryPointer again after the WarpPointer so we can generate a
14636 proper (fake) MotionNotify event to be enqueued in the destination
14638 (GetCursorPos): call QueryPointer.
14642 2006-10-02 Jackson Harper <jackson@ximian.com>
14644 * NotifyIcon.cs: Derive the notify icon from a form, so things
14645 like FindForm work on it.
14646 - Swallow the WM_CONTEXTMENU message, since that is generated on
14647 mouse down, and context menu is a mouse up kinda guy. I believe
14648 the correct fix here is probably to make the notify icon entirely
14649 NC area, but this seems to work fine for anyone not manipulating
14652 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
14654 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
14655 ToolStripItemCollection.cs, ToolStripLabel.cs,
14656 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
14657 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
14658 Initial implementation.
14659 * TextRenderer.cs: Provide padding to MeasureText.
14661 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
14663 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
14664 of ButtonBaseAccessibleObject. Fix bug #79552.
14666 2006-10-02 Jackson Harper <jackson@ximian.com>
14668 * MdiWindowManager.cs: When maximizing use the containers client
14669 rect, not it's bounds, so nc area is accounted correctly.
14670 - Use the parent form's size for the menu position, since the
14671 client isn't always the full form size.
14673 2006-10-01 Chris Toshok <toshok@ximian.com>
14675 * ScrollableControl.cs: make sure neither right_edge or
14676 bottom_edge are < 0, since they're used as LargeChange for the
14677 horiz/vert scrollbars respectively. Fixes #79539.
14679 2006-10-01 Chris Toshok <toshok@ximian.com>
14681 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
14682 the xplatuix11 code can cause us to destroy/recreate our handle.
14686 - this code can be invoked many times for the same Hwnd. Make
14687 sure we only destroy the client window once (the first time this
14688 method is called). This fixes bug #79544.
14689 - Remove the call to the improperly bound XSync. why we had two
14690 bindings to this, I will never know, but this call resulted in
14691 events being discarded from the queue(!).
14692 - correct a misunderstanding of _XEMBED_INFO - the second atom is
14693 not our current state but the state we wish to be in. So, 0 if
14694 we don't want to be mapped. Change it to 1.
14695 (SystrayRemove): The XEMBED spec makes mention of the fact that
14696 gtk doesn't support the reparent of client windows away from the
14697 embedder. Looking at gtksocket-x11.c seems to agree with this.
14698 The only avenue we have for removing systray icons is to destroy
14699 them. We don't want the handle to go away for good, though, so
14700 call InternalRecreateHandle on the NotifyIconWindow. Fixes
14703 2006-10-01 Chris Toshok <toshok@ximian.com>
14705 * Form.cs (WndProc): inline the native_enabled variable usage into
14706 the cases in which it's used. Fixes #79536.
14708 2006-09-29 Mike Kestner <mkestner@novell.com>
14710 * ListView.cs : toggle the selection state for ctrl clicks in
14711 multiselect mode. [Fixes #79417]
14713 2006-09-29 Mike Kestner <mkestner@novell.com>
14715 * ListView.cs : kill CanMultiSelect and refactor the selection
14716 code to support multiselection in the absence of mod keys. Steal
14717 arrow/home/end keys by overriding InternalPreProcessMessage to
14718 restore regressed keynav behavior.
14721 2006-09-29 Jackson Harper <jackson@ximian.com>
14723 * MdiClient.cs: Repaint the titlebars when the active window is
14726 2006-09-29 Chris Toshok <toshok@ximian.com>
14728 * Application.cs: when entering a runloop with a modal, make sure
14729 the hwnd is enabled. Fixes #79480.
14731 2006-09-29 Chris Toshok <toshok@ximian.com>
14733 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
14734 when ListManager.CanAddRows == false, bump us back one.
14736 * DataGridColumnStyle.cs (ParentReadOnly): remove the
14737 listmanager.CanAddRows check. This makes ArrayLists uneditable
14738 using a datagrid, which is not right.
14739 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
14740 is an IEditable, but call property_descriptor.SetValue regardless.
14743 2006-09-29 Chris Toshok <toshok@ximian.com>
14745 * DataGridBoolColumn.cs: we need to test equality in the face of
14746 possible null values (as is the case with the default NullValue).
14747 This patch keeps us from crashing in that case.
14749 2006-09-29 Jackson Harper <jackson@ximian.com>
14751 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
14752 here, since it will get called for every node collection in the
14753 tree. This is now done in the treeview once the sorting is
14755 * TreeView.cs: Recalculate the visible order, and update the
14756 scrollbars after sorting, set the top nope to the root so that the
14757 recalc actually works.
14759 2006-09-29 Chris Toshok <toshok@ximian.com>
14761 * LinkLabel.cs: more handling of the default link collection in
14762 the face of LinkArea manipulation. The default link collection
14763 contains 1 element (start=0,length=-1). If the user sets LinkArea
14764 to anything and the links collection is the default, clear it.
14765 Then only add the link if its nonempty. Fixes #79518.
14767 2006-09-29 Chris Toshok <toshok@ximian.com>
14769 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
14770 piece correctly when we hit a '\n'. Fixes #79517.
14772 2006-09-29 Chris Toshok <toshok@ximian.com>
14774 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
14775 change the binding of gdk_init_check to take two IntPtr's, and
14776 pass IntPtr.Zero for both of them. Fixes #79520.
14778 2006-09-29 Mike Kestner <mkestner@novell.com>
14780 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
14783 2006-09-28 Jackson Harper <jackson@ximian.com>
14785 * XplatUIX11.cs: When translating NC messages make sure we go from
14786 whole window to screen, not client window to screen.
14787 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
14788 method doesn't exist
14789 - Skip over controls that aren't forms when arranging.
14791 2006-09-28 Jackson Harper <jackson@ximian.com>
14793 * XplatUIWin32.cs: Clip the rect to the parent window.
14794 * XplatUIStructs.cs: Add clipping modes struct.
14795 * InternalWindowManager.cs: New private method that factors title
14796 bar heights in when calculating the pos of an NC mouse message.
14797 - Use SendMessage to force a paint when the form's size is changed
14798 instead of painting the decorations immediately.
14799 - Don't let the NC button click messages get to DefWndProc,
14800 because they will attempt to handle windowing themself, and this
14801 messes up z-order (it will put them in front of the scrollbars).
14802 * XplatUIX11.cs: Make sure that we don't reset window managers if
14803 we already have one (ie the window is an MDI window).
14805 2006-09-28 Chris Toshok <toshok@ximian.com>
14807 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
14808 menu code really needs going over.
14810 2006-09-27 Chris Toshok <toshok@ximian.com>
14812 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
14813 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
14814 window is maximizable. So, we need to make sure that even if we
14815 clear the border/wm frame of those functions, they're still
14816 available (basically, we remove the decoration without removing
14817 the function). Half the fix for #79338.
14819 2006-09-27 Chris Toshok <toshok@ximian.com>
14821 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
14824 2006-09-27 Chris Toshok <toshok@ximian.com>
14826 * Splitter.cs: reorder things a bit so that we don't actually
14827 draw/move the splitter until after calling OnSplitterMoving. This
14828 lets users cancel/disallow the movement by explicitly setting
14829 event.SplitX/SplitY. Fixes #79372.
14831 2006-09-27 Jackson Harper <jackson@ximian.com>
14833 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
14834 because it is most likely on a window being destroyed, and that
14835 will give us an X11 error.
14837 2006-09-27 Chris Toshok <toshok@ximian.com>
14839 * PropertyGridView.cs: half of the fix for #78190. Clicking on
14840 the dropdown button now toggles between showing and hiding the
14841 dropdown. Also, get rid of dropdown_form_showing and just use
14842 dropdown_form.Visible. We still don't do a grab, but I'll leave
14843 that part to someone who has handled Capture-fu before.
14845 2006-09-27 Chris Toshok <toshok@ximian.com>
14847 * DataGrid.cs: return false if alt isn't pressed when '0' is
14848 pressed. this keeps the '0' key from being swallowed, and fixes
14851 2006-09-27 Chris Toshok <toshok@ximian.com>
14853 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
14854 Calling Refresh (in response to a scrollbar event) screws up the
14855 scrollbar painting. Fixes bug #78923.
14857 2006-09-27 Chris Toshok <toshok@ximian.com>
14859 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
14860 then insert into hashtable" blocks threadsafe.
14862 2006-09-27 Chris Toshok <toshok@ximian.com>
14864 * MessageBox.cs (CreateParams): the styles should be |'ed with our
14865 baseclass's, since otherwise the
14866 ControlBox/MinimizeBox/MaximizeBox assignments above have no
14867 effect. This gets the close button back in messageboxes.
14869 2006-09-27 Chris Toshok <toshok@ximian.com>
14871 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
14872 flag, not just != 0. this makes flags that are actually multiple
14873 bits (like WS_CAPTION) work. fixes bug #79508.
14875 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
14877 * PageSetupDialog.cs: add support for getting and settings the
14878 paper size, source and orientation.
14880 2006-09-26 Chris Toshok <toshok@ximian.com>
14882 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
14883 and caption == "", we need to remove the resize handles as well as
14886 * Control.cs (set_Text): turns out that setting Text on a form
14887 should change the WM styles on the window, since if ControlBox ==
14888 false, the only way to get a window border is to have a non-""
14889 Text property. check winforms/forms/text.cs for an example. so,
14890 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
14891 update both window styles and title. This fixes a lot of dialogs
14892 (including the preferences dialog in MonoCalendar.)
14894 2006-09-26 Chris Toshok <toshok@ximian.com>
14896 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
14897 control isn't a Form), call Win32ShowWindow to hide the window,
14898 but don't update the control Visible property. When we reparent
14899 back to a parent control, call SetVisible in order for the
14900 window's visibility to be reinstated.
14902 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
14905 * Control.cs (ControlCollection.Remove): remove that value.Hide()
14906 call for good, since it breaks MonoCalendar (and other things I'm
14907 sure.) Also, set all_controls to null *after* the owner calls,
14908 which end up regenerating it.
14909 (ChangeParent): allow new_parent to be == null, passing
14910 IntPtr.Zero down to XplatUI.
14912 this fixes #79294 the right way.
14914 2006-09-26 Mike Kestner <mkestner@novell.com>
14916 * GridEntry.cs : internal SetParent method.
14917 * PropertyGrid.cs : attach to property changed on the proper
14918 target if we have a hierarchical grid with subobjects. Setup
14919 GridItem.Parent for hierarchical items.
14920 * PropertyGridView.cs : Set value on the correct target for
14921 hierarchical grids. [Fixes #78903]
14923 2006-09-26 Chris Toshok <toshok@ximian.com>
14925 * Control.cs (ChildNeedsRecreating): this should return true if
14926 either we're being recreated and the child is in our list, or our
14927 parent is waiting for our recreation.
14929 2006-09-26 Chris Toshok <toshok@ximian.com>
14931 * Control.cs (ControlCollection.Remove): reinstate the
14932 value.Hide() call as suggested in bug #79294.
14934 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
14936 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
14937 coordinates (versus a relative move).
14939 2006-09-26 Chris Toshok <toshok@ximian.com>
14941 * Control.cs: rework child recreation a little bit. It turns out
14942 that we race between the DestroyNotify the WM_DESTROY message. If
14943 the parent gets its DestroyNotify before the child gets the
14944 WM_DESTROY message, the child ends up not recreating (since the
14945 parent finishes its recreation on DestroyNotify, and the child
14946 checks ParentIsRecreating.)
14948 So, instead we store off a list of all the child controls which
14949 need to be recreated when the parent control starts to recreate
14950 itself. Then, when child controls get their WM_DESTROY message we
14951 check to see if they're in the parent's pending recreation list,
14952 and if so, we recreate. This removes all dependency on ordering
14953 from the code and fixes the initial MonoCalendar upgrade dialog.
14955 2006-09-26 Jackson Harper <jackson@ximian.com>
14957 * TextControl.cs: Use the Line to get the length of the line,
14958 since soft line breaks can change the end line.
14960 2006-09-26 Chris Toshok <toshok@ximian.com>
14962 * Control.cs (ControlCollection.AddImplicit): don't add the
14963 control again if it's already in one of our lists. This keeps us
14964 from adding controls over and over again for comboboxes when their
14965 handle gets recreated (as the combobox adds implicit controls in
14966 OnHandleCreated). Fixes the X11 errors in bug #79480.
14968 2006-09-26 Jackson Harper <jackson@ximian.com>
14970 * TextControl.cs: When deleting characters make sure that any
14971 orphaned zero lengthed tags get deleted.
14972 - Fix ToString for zero lengthed tags.
14974 2006-09-25 Jackson Harper <jackson@ximian.com>
14976 * TextControl.cs: When getting a tag at the location there can be
14977 multiple tags at the same spot, these are 0-lengthed tags that
14978 appear when extra formatting has been stuck in a location. We
14979 need to pull out the last of these 0 lengthed tags.
14981 2006-09-25 Jackson Harper <jackson@ximian.com>
14983 * TextControl.cs: Fix print out in debug method.
14984 * TextBoxBase.cs: When text is set bail if we are setting to the
14987 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
14989 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
14990 It is now possible to change the selected index in a FontXXXListBox
14991 with the up and down arrow keys from the FontXXXTextBoxes.
14992 Also, send the FontXXXTextBox mouse wheel event to the corresponding
14993 FontXXXListBoxes to match ms.
14995 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
14997 * SystemInformation.cs: Return a clone of the theme's MenuFont because
14998 anyone can dispose it, anytime. All other properties returns enums,
14999 structs or basic types so they don't need such tricks.
15001 2006-09-22 Jackson Harper <jackson@ximian.com>
15008 * XplatUIDriver.cs: Update interface to add a primary selection
15009 flag, so the driver can use the primary selection buffer if
15011 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
15013 * RichTextBox.cs: We need to supply the data object to paste now
15014 (so we can choose to supply CLIPBOARD or PRIMARY).
15015 * TextBoxBase.cs: Supply data object to paste (see above).
15016 - Middle click uses the primary selection data object.
15018 2006-09-21 Chris Toshok <toshok@ximian.com>
15020 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
15021 of SetWMStyles. It's still a rat's nest and is largely
15022 order-dependent which I dislike immensely. This also fixes the X
15023 button disappearing from toplevel forms.
15025 2006-09-21 Mike Kestner <mkestner@novell.com>
15027 * ListBox.cs: move Jordi's click/dblclick raising code to the
15030 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
15032 * ListBox.cs: Fixes 79450
15034 2006-09-21 Mike Kestner <mkestner@novell.com>
15036 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
15037 to deal with people updating the TreeNodeCollection after the tree
15038 is disposed. "Fixes" 79330.
15040 2006-09-20 Jackson Harper <jackson@ximian.com>
15042 * TextControl.cs: Push the cursor record onto the undo stack
15043 before the delete action. This fixes 78651.
15045 2006-09-20 Jonathan Chambers <joncham@gmail.com>
15047 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
15048 CreateParams. Fixes 79329.
15050 2006-09-19 Chris Toshok <toshok@ximian.com>
15052 * XplatUIX11.cs: a couple of blanket code massage passes to clean
15053 things up a bit. First, get rid of the NetAtoms array (and the NA
15054 enum), and just embed the atoms as static fields. Also, add a
15055 couple of functions (StyleSet and ExStyleSet) to clean up all the
15056 bitmask testing of styles.
15058 * X11Structs.cs: remove the NA enum, not needed anymore.
15060 2006-09-19 Chris Toshok <toshok@ximian.com>
15062 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
15063 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
15064 added cleanup to get MessageBox titles appearing again, which were
15065 broken by my earlier fix for caption-less/ControlBox-less windows.
15067 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
15069 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
15070 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
15071 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
15072 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
15073 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
15074 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
15075 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
15076 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
15077 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
15078 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
15079 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
15081 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
15082 ToolStripButton.cs: Stubs needed for above.
15083 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
15085 2006-09-15 Chris Toshok <toshok@ximian.com>
15088 - make the MessageQueues hashtable Synchronized.
15090 - SendMessage: if the Hwnd is owned by a different thread, use the
15091 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
15092 thread. Fixes bug #79201.
15094 2006-09-15 Chris Toshok <toshok@ximian.com>
15096 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
15097 ControlBox == false, we disallow maximize/minimize/close. If the
15098 form Caption is "" we also disallow move (and get rid of the Title
15099 decoration). Unfortunately, regardless of how things are set,
15100 we're stuck with the Title and WM menu.
15102 2006-09-15 Chris Toshok <toshok@ximian.com>
15104 * Application.cs: add locking around the static message_filters
15105 ArrayList, part of #79196.
15107 2006-09-15 Chris Toshok <toshok@ximian.com>
15109 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
15110 Form.ControlBox == false, the window has no titlebar nor resize
15111 handles. fixes bug #79368.
15113 2006-09-15 Chris Toshok <toshok@ximian.com>
15115 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
15116 >= 0. Fixes bug #79370.
15118 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
15119 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
15121 Add properties: LayoutEngine, Margin, DefaultMargin.
15122 Add method: GetPreferredSize.
15123 Move layout logic from PerformLayout to layout engines.
15125 2006-09-13 Chris Toshok <toshok@ximian.com>
15127 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
15128 fix for #79326 broke #78718, so this change addresses that.
15130 - in SendWMDestroyMessages remove the call to
15131 CleanupCachedWindows, since we might be recreating the control and
15132 need to maintain the references to right Hwnd handles. Also, set
15133 the zombie flag to true for each of the children in the hierarchy
15134 instead of calling hwnd.Dispose. This will cause GetMessage to
15135 ignore all events for the window except for DestroyNotify.
15137 - In GetMessage, ignore messages except for DestroyNotify for
15140 * Control.cs: revert the is_recreating fix from the last
15141 ChangeLog. It's definitely "right", but it breaks switching from
15142 an MDI form to a non-MDI form. Will need to revisit that.
15144 * Hwnd.cs: add a zombie flag, which means "the
15145 client_window/whole_window handles are invalid, but we're waiting
15146 for the DestroyNotify event to come in for them". Set the flag to
15147 false explicitly if setting WholeWindow/ClientWindow, and also
15150 2006-09-13 Chris Toshok <toshok@ximian.com>
15152 * XplatUIX11.cs: rework window destruction slightly.
15154 - when destroying the windows associated with a control, we don't
15155 need 2 separate XDestroyWindow calls. Just the one for the
15156 whole_window (or for client_window if whole_window is somehow
15157 IntPtr.Zero -- can this happen?) is enough.
15159 - reworked SendWMDestroyMessages slightly, so we always dispose
15160 the child control hwnd's after sending the messages.
15162 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
15163 the two places it was used (one was even using hwnd.Handle and the
15164 other hwnd.client_window. ugh), adding another call in
15165 SendWMDestroyMessages. We need this new call because now the
15166 DestroyNotify events in the queue will be ignored for the child
15167 controls (as their hwnd's were disposed, and the window id's
15168 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
15170 - this fixes bug #79326.
15172 2006-09-13 Chris Toshok <toshok@ximian.com>
15174 * Control.cs: don't always set is_recreating to false at the end
15175 of RecreateHandle, since sometimes we're not done (and won't be
15176 until WndProc handles the WM_DESTROY message). Also, set
15177 is_recreating to false in the WM_DESTROY handling code. Part of
15178 the fix for bug #79326.
15180 2006-09-13 Miguel de Icaza <miguel@novell.com>
15182 * X11DesktopColors.cs: Start the droppage of debugging messages.
15184 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
15186 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
15188 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
15190 2006-09-12 Chris Toshok <toshok@ximian.com>
15192 * DataGrid.cs (get_ListManager): if the list_manager is null, try
15193 to create it using SetDataSource. Fixes bug #79151.
15195 2006-09-11 Chris Toshok <toshok@ximian.com>
15197 * XEventQueue.cs: add a DispatchIdle property.
15199 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
15200 either the queue is null, or the queue has DispatchIdle set to
15202 (DoEvents): set queue.DispatchIdle to false around the
15203 peek/translate/dispatch message loop in this method. This keeps
15204 Application.Doevents from emitting idle events. Part of the fix
15207 2006-09-11 Chris Toshok <toshok@ximian.com>
15209 * DataGrid.cs (set_DataSource): make this work for both the
15210 winforms/datagrid test and ReportBuilder. It seems as though when
15211 we've created a ListManager (or maybe it's if we have a
15212 BindingContext?), when we set the DataSource it clears the
15213 DataMember to "". otherwise we reuse the datamember. Fixes bug
15216 2006-09-11 Chris Toshok <toshok@ximian.com>
15218 * XplatUIX11.cs: deal with queue being null, which happens in all
15219 the Clipboard functions. Fixes one of the two problems mentioned
15222 2006-09-11 Chris Toshok <toshok@ximian.com>
15224 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
15225 button on various spots (including outside the menu) works closer
15226 to MS, and doesn't crash. Fixes #79343.
15228 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
15230 * ListView.cs: Do not initialize item_sorter in init. To match MS,
15231 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
15232 and the internal comparer is set. When a new ListViewItemSorter is set,
15233 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
15234 was specified. No further processing is necessary if SortOrder is set
15235 to it's current value. If Sorting is modified to None, and View is
15236 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
15237 (either custom or our internal ItemComparer) to null, on 1.0 profile
15238 only set item_sorter to null if its our internal IComparer. If Sorting
15239 is modified to Ascending or Descending, then use our internal IComparer
15240 if none is set, and if the current IComparer is our internal one then:
15241 on 2.0 profile always replace it with one for new Sorting, and on 1.0
15242 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
15243 Enum.IsDefined to verify whether a valid View value is specified in
15244 its setter. Automatically sort listview items when listview is
15245 created. In Sort, do nothing if ListView is not yet created, or if
15246 no item_sorter is set (no Sorting was set, Sorting was explicitly set
15247 to None or ListViewItemSorter was set to null). Added Sort overload
15248 taking a bool to indicate whether the ListView should be redrawn when
15249 items are sorted (we use this in ListViewItemCollection to avoid double
15250 redraws). Modified our internal IComparer to take the sort order into
15251 account. In Add and AddRange methods of ListViewItemCollection, also
15252 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
15253 view), but use overload with noredraw option to avoid double redraw.
15254 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
15255 true when View is Tile, and do the same when attempting to set View to
15256 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
15257 for selected/checked indices, as it involves overhead when sorting is
15258 done while these collections are not used all that often. Instead
15259 we'll build the indices on demand. Modified IList implementation of
15260 CheckedIndexCollection to use public methods if object is int.
15261 Modified CheckedListViewItemCollection to hide checked items if
15262 ListView.CheckBoxes is false. Removed LAMESPEC remark in
15263 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
15264 IList implementation in SelectedIndexCollection to use public methods
15265 if object is int. Modified SelectedListViewItemCollection to hide
15266 selected items if listview is not yet created.
15267 * ListViewItem.cs: CheckedIndices list no longer needs to be
15268 maintained separately (see ListView changes). Also clone font, fixes
15271 2006-09-11 Mike Kestner <mkestner@novell.com>
15273 * ComboBox.cs: if we are updating the contents of the currently
15274 selected index, refresh the control or the textbox selection.
15277 2006-09-11 Mike Kestner <mkestner@novell.com>
15279 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
15280 the 'specified' logic has been moved there. This seems like a bug
15281 in Control.cs, since our current SetBoundsCore completely ignores
15282 the specified parameter. Peter's commit seems to indicate that is
15283 the way the MS control implementation works. [Fixes #79325]
15285 2006-09-10 Jonathan Chambers <joncham@gmail.com>
15287 * XplatUI.cs: Set default_class_name to be composed
15288 of current domain id. This allows MWF to be loaded in multiple
15291 2006-09-09 Miguel de Icaza <miguel@novell.com>
15293 * X11Keyboard.cs: If we are unable to obtain the input method, do
15294 not call CreateXic to create the input context. Should fix
15297 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
15299 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
15300 Simplified gnome support by adding more pinvokes to get the
15301 icon for a file or mime type.
15303 2006-09-08 Jackson Harper <jackson@ximian.com>
15305 * MenuAPI.cs: Deslect popup context menu items before closing the
15306 window, so that you don't see the previously selected item
15307 selected when you reopen the menu.
15308 * TextControl.cs: Update the cursor position even if we don't have
15309 focus. This fixes typing in things like the ComboBox. I'm not
15310 totally sure we should always set the visibility if we don't have
15311 focus, but couldn't find any corner cases where the cursor showed
15312 up when it shouldn't.
15314 2006-09-08 Chris Toshok <toshok@ximian.com>
15316 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
15317 our arrays are length 256. & 0xff before indexing. Fixes the
15318 crash in bug #78077.
15320 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15322 * ThemeWin32Classic.cs:
15323 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
15324 is true. Handle that check box too.
15326 2006-09-07 Chris Toshok <toshok@ximian.com>
15328 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
15331 2006-09-07 Chris Toshok <toshok@ximian.com>
15333 * Control.cs: in set_BackColor only do the work if
15334 background_color != value.
15336 * XplatUIX11.cs: move the clearing of invalid areas (both client
15337 and nc) to the same block of code where we set (nc_)expose_pending
15338 to false. That is, move it from PaintEventEnd to PaintEventStart,
15339 so things that cause invalidates from within OnPaint will trigger
15340 another call to OnPaint. Fixes bug #79262.
15342 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
15344 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
15345 * FileDialog.cs: Fix typo
15347 2006-09-07 Jackson Harper <jackson@ximian.com>
15349 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
15350 for tab pages if they have any.
15352 2006-09-06 Mike Kestner <mkestner@novell.com>
15354 * Splitter.cs: use the "current" rect when finishing drag handle
15355 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
15357 2006-09-06 Mike Kestner <mkestner@novell.com>
15359 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
15360 support offset splitters. [Fixes #79298]
15362 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
15364 * Mime.cs: Fixed a bug that could override the global mime type
15367 2006-09-05 Jackson Harper <jackson@ximian.com>
15369 * TabControl.cs: Better calculation method for setting the slider
15370 pos. Prevents crashes on really wide tabs.
15371 - Draw Image on tab pages if an image list is used.
15373 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15375 * MonthCalendar.cs: When Font changes, the Size should be
15376 updated to fit the new font's space requirements.
15378 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
15380 * ListBox.cs: If the items are cleared with Items.Clear set
15383 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15385 * MonthCalendar.cs: Handle arrow keys as input keys. Also
15386 fire DateChanged event instead of DateSelected event when
15387 the date was changed by keyboard interaction.
15389 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15391 * DateTimePicker.cs: Handle DateChanged for the associated
15392 month_calendar control, and set month_calendar.Font from
15393 OnFontChanged method, as well as resize the height of the
15394 control when needed. Make PreferredHeight proportional.
15396 2006-09-01 Chris Toshok <toshok@ximian.com>
15398 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
15401 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
15403 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
15405 * FileDialog.cs: Set ClientSize instead of window size, to allow space
15406 for decorations (Fixes #79219)
15408 2006-09-01 Mike Kestner <mkestner@novell.com>
15410 * ComboBox.cs: first stab at sorting plus some selection handling
15411 fixes to bring us more in line with MS behavior. Also switches back
15412 to index based selection. Alternative patches for index-based
15413 selection were provided by Jackson Harper, Carlos Alberto Cortez,
15414 and latency@gmx.de on bug 78848. I assume they were similar to this
15415 code I've had simmering in my tree forever.
15418 2006-09-01 Chris Toshok <toshok@ximian.com>
15420 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
15421 when setting list position guard against ending up with a -1 index
15422 (the other part of the fix for #78812). Should probably make sure
15423 we don't need the analogous fix in the ItemDeleted case.
15426 - in SetDataSource, work around the fact that the way
15427 OnBindingContextChanged is invoked will cause us to re-enter this
15428 method. I'll remove the hack once I investigate
15429 OnBindingContextChanged.
15431 - fix the logic in set_DataSource and set_DataMember (basically
15432 what to do if the other of the two is null.)
15434 - in OnListManagerItemChanged, we need to take into account the
15435 edit row when deciding whether or not to call RecreateDataGridRows
15436 (part of the fix for #78812).
15438 2006-09-01 Jackson Harper <jackson@ximian.com>
15440 * Splitter.cs: Don't do anything if there is no control to affect
15441 (prevents us from crashing in weird tet cases).
15442 * TreeView.cs: Bounding box for the mouse movement reverting
15443 focus/selection back to previously selected node. This matches
15444 MS, and makes the tree a lot more useable.
15445 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
15446 use clipping so they are not drawn. This fixes when the control
15447 is set to have a transparent background, or if it was over an
15450 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
15452 * MimeIcon.cs: Improved handling for reading default icons when
15453 using gnome (2.16 made it necessary). Check and read svg icons
15454 first, then 48x48 and then 32x32 icons.
15456 2006-08-31 Chris Toshok <toshok@ximian.com>
15458 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
15461 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
15462 ProcessKeyPreview. Fixes part of #77806.
15464 * DataGrid.cs: big patch.
15466 - revert the queueing up of DataSource/DataMember if inside
15467 BeginInit/EndInit calls. That's not the way the datagrid achieves
15468 its delayed databinding. Instead, call SetDataSource in
15469 OnBindingContextChanged. This mimic's MS's behavior, and fixes
15472 - Also, it wasn't mentioned in #78811, but the test case exhibits
15473 behavior that was lacking in our datagrid implementation - Columns
15474 that have mapping names that don't exist in the datasource's
15475 properties aren't shown. Yuck. To fix this I added the bound
15476 field to the column style, and basically any calculation to figure
15477 out anything about columns uses a loop to find the bound columns.
15478 still need to investigate if I can cache an array of the bound
15479 columns or if the indices must be the same.
15481 - When setting CurrentCell, we no longer abort if the cell being
15482 edited was in the add row. This fixes the other part of #77806.
15484 - The new code also fixes #78807.
15486 * ThemeWin32Classic.cs: perpetrate the same disgusting
15487 column.bound field hack, and only render bound fields.
15489 2006-08-31 Chris Toshok <toshok@ximian.com>
15491 * DataGridColumnStyle.cs: add bound field. this field is true if
15492 the datasource has a property corresponding to the mapping name.
15494 * DataGridTableStyle.cs: set the bound field on the column styles
15495 depending on whether or not we have a column for that property.
15497 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
15499 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
15500 splitter control (fixes #79228)
15502 2006-08-31 Chris Toshok <toshok@ximian.com>
15504 * DataGridColumnStyle.cs: we need to delay the assignment of
15505 property descriptor until the last possible moment due to the lazy
15506 databinding stuff in the datagrid. Also, fix the exceptions
15507 thrown by CheckValidDataSource to match MS.
15509 2006-08-31 Jackson Harper <jackson@ximian.com>
15511 * Form.cs: When activated select the active control, if there is
15512 no active control, we select the first control.
15513 * XplatUIX11.cs: If there is no focus control when we get a
15514 FocusIn event, find the toplevel form and activate it. This
15515 occurs when you popup a window, it becomes the focus window, then
15516 you close that window, giving focus back to the main window.
15518 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15520 * MonthCalendar.cs:
15521 * ThemeWin32Classic.cs: Cache Font in bold style, as well
15522 as StringFormat with Center alignments in MonthCalendar,
15523 instead of creating new ones when drawing the control.
15524 Also, draw the month name in bold style.
15526 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
15529 - PerformLayout(): It would seem MS performs the fill even if the
15530 control is not visible (part of #79218 fix)
15531 - ResetBackColor(): Use the setter to reset the color, to allow
15532 overriders to catch the change.
15534 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
15535 - CreateHandle(): dito (part of $79218 fix)
15536 - Don't set an icon if we have a dialog
15537 * ScrollableControl.cs:
15538 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
15539 - ScrollIntoView(): No need to scroll if control is already visible
15540 (resolves fixme and fixes #79218)
15542 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15544 * MonthCalendar.cs: Change proportions in SingleMonthSize
15545 to match the aspect of the original control.
15547 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
15549 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
15550 get updated when they get maximized.
15552 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
15554 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
15556 2006-08-29 Chris Toshok <toshok@ximian.com>
15558 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
15560 2006-08-29 Jackson Harper <jackson@ximian.com>
15562 * TreeView.cs: Need to track selected node and highlighted node,
15563 they aren't always the same thing, when the mouse is down on a
15564 node it is hilighted, but not selected yet.
15565 - Do the HideSelection stuff right
15566 - Need to focus on rbutton mouse down. And redraw selection when
15567 right click is mouse upped.
15569 2006-08-29 Mike Kestner <mkestner@novell.com>
15571 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
15572 when SubItems.Count < Columns.Count. [Fixes #79167]
15574 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
15576 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
15578 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
15580 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
15581 from X. Only send based on ConfigureNotify if we don't have the
15582 correct location in hwnd (if the window manager moved us)
15584 2006-08-28 Mike Kestner <mkestner@novell.com>
15586 * ListView.cs: remove a TODO.
15587 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
15588 [Fixes ListView part of #79166]
15590 2006-08-28 Mike Kestner <mkestner@novell.com>
15592 * ListView.cs: move wheel handler to parent since it is focused
15593 instead of the item_control now. [Fixes #79177]
15595 2006-08-28 Mike Kestner <mkestner@novell.com>
15597 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
15598 when the control is focused. [Fixes #79171]
15600 2006-08-28 Mike Kestner <mkestner@novell.com>
15602 * ListView.cs: size the item and header controls for empty and
15603 unscrollable views.
15604 * ThemeWin32Classic.cs: draw disabled backgrounds.
15607 2006-08-28 Chris Toshok <toshok@ximian.com>
15609 * Form.cs: remove unused "active_form" static field.
15611 * Hwnd.cs: lock around accesses to static windows collection.
15613 * Application.cs: lock threads in Exit ().
15615 2006-08-28 Chris Toshok <toshok@ximian.com>
15617 * NativeWindow.cs: lock around accesses to window_collection.
15619 2006-08-28 Chris Toshok <toshok@ximian.com>
15621 * Control.cs: err, fix this the right way, by locking on controls
15622 when using it. not by making it synchronized.
15624 2006-08-28 Chris Toshok <toshok@ximian.com>
15626 * Control.cs: make the static "controls" field synchronized, as it
15627 gets updated from multiple threads.
15629 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15631 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
15632 Prevent other threads from exiting when calling thread sets quit state.
15633 * XEventQueue.cs: Added PostQuitState property
15635 2006-08-27 Chris Toshok <toshok@ximian.com>
15637 * AsyncMethodData.cs: add a slot for the window handle.
15639 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
15640 window (the destination control's window, not the foster window).
15642 * Control.cs (BeginInvokeInternal): store the window's handle in
15643 the AsyncMethodData.
15646 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15649 - PostQuitMessage: Removed resetting S.D display handle, we might have
15650 another loop started after calling PostQuitMessage (Fixes #79119)
15651 - Created destructor to reset S.D handle
15653 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
15655 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
15657 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15659 * TextControl.cs (Insert): Update the caret position even if we don't
15660 have a handle yet, just don't call the driver in that case.
15661 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
15662 to the end of the new selection text (Fixes #79184)
15664 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15666 * Form.cs (Activate): Only activate if the handle is created)
15668 - Mark window as invisible when it's disposed
15669 - Check if window handle is created when setting window visible,
15670 instead of relying just on the is_created variable
15671 - Check if object is disposed when creating the control (Fixes #79155)
15673 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15675 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
15676 when allowing layout again. Otherwise we re-generate the anchoring
15677 distance to the border again and actually alter what the user wanted
15678 This is ugly, it'd be better if we used DisplayRectangle instead of
15679 ClientRectangle for Control.UpdateDistances, but that causes us to
15680 have other problems (initial anchoring positons would be wrong)
15683 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15686 - The size and location setters shouldn't go directly to
15687 SetBoundsCore, but to SetBounds, which triggers layout on the
15688 parent, then calls SetBoundsCore. (Related to fix for #78835)
15689 - SetBounds: Moved actual location update code into this function
15690 from SetBoundsCore, to match MS. Added call to PerformLayout if
15691 we have a parent (to trigger resizing of anchored parents if the
15692 child size has changed (see testcase for #78835)
15693 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
15695 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
15697 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15699 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
15700 System.Drawing when a toplevel window gets closed; there might
15701 be other toplevel windows belonging to the same app (Fixes #78052)
15703 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
15705 * FileDialog.cs: After reading FileDialog settings from mwf_config
15706 use Desktop prefix only if a real folder doesn't exist anymore.
15707 * FontDialog.cs: Added char sets.
15708 It is now possible to select the font, size or style with the
15711 2006-08-25 Kornél Pál <kornelpal@gmail.com>
15713 * PrintPreviewDialog.cs: Use assembly name constants.
15715 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15717 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
15718 scrollbar from whacking it's buttons)
15720 2006-08-24 Chris Toshok <toshok@ximian.com>
15722 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
15723 in this patch (aggregating setting Left/Top/Width/Height to
15724 setting Bounds on the scrollbars), but the crux of the fix is in
15725 Recalculate, where we scroll by the remaining scroll_position if
15726 we're hiding a scrollbar. The 2*$5 reward in the comment is
15729 2006-08-24 Jackson Harper <jackson@ximian.com>
15732 * MdiWindowManager.cs: If the form is made a non-mdi window we
15733 need to remove the form closed event so that closing forms works
15736 2006-08-24 Jackson Harper <jackson@ximian.com>
15738 * Control.cs: Make IsRecreating internal so that the driver can
15740 - Temporarily remove the Hide when controls are removed, its
15741 making a whole bunch of things not work because visibility isn't
15742 getting reset elsewhere correctly
15743 * Form.cs: Need to do a full handle recreation when the mdi parent
15745 * XplatUIX11.cs: If we are recreating handles don't dispose the
15746 HWNDs. What was happening is the handles were being recreated in
15747 SendWMDestroyMessages, but then flow continued on in that method
15748 and destroyed the new handles.
15750 2006-08-23 Jackson Harper <jackson@ximian.com>
15752 * Form.cs: MdiClient is always at the back of the bus
15753 * Control.cs: When the order of items in the collection is changed
15754 we need to reset the all_controls array
15755 - do the same sorta setup thats done when adding a control when a
15756 control is set on the collection.
15758 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15760 * TextBoxBase.cs (get_Text): Return an empty array if our document
15761 is empty (fixes #79052)
15763 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15765 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
15766 on WM_SYSCHAR messages (fixes #79053)
15768 2006-08-23 Chris Toshok <toshok@ximian.com>
15770 * DataGrid.cs: fix flickering when scrolling vertically.
15772 2006-08-23 Chris Toshok <toshok@ximian.com>
15774 * DataGrid.cs (EndEdit): only invalidate the row header when we
15777 2006-08-23 Chris Toshok <toshok@ximian.com>
15779 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
15780 methods. fixes the flicker when scrolling around.
15782 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15784 * FileDialog.cs: Making sure the control is created before we get a
15785 chance to use it with BeginInvoke (Fixes #79096)
15787 2006-08-23 Chris Toshok <toshok@ximian.com>
15789 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
15790 width to use when painting the rows.
15792 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
15795 - Throw ArgumentException if a negative value is passed to SelectionLength
15796 - Update the selection end if start is moved. end needs to be always
15797 after start. (Fixes #79095)
15798 - Track selection length; MS keeps the selection length even if start
15799 is changed; reset on all other operations affection selection
15801 2006-08-22 Jackson Harper <jackson@ximian.com>
15803 * TreeView.cs: Make sure both scrollbars get displayed and sized
15804 correctly when the other bar is visible.
15805 - Use the original clip rectangle for checking if the area between
15806 the two scrollbars is visible, not the viewport adjusted clipping
15809 2006-08-22 Jackson Harper <jackson@ximian.com>
15811 * Binding.cs: We don't use IsBinding because it requires the
15812 control to be created, which really shouldn't be necessary just to
15813 set a property on the control.
15815 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15817 * ComboBox.cs: Some CB.ObjectCollection methods must throw
15818 ArgumentNullReferenceException when the argument is null.
15820 2006-08-21 Jackson Harper <jackson@ximian.com>
15822 * Timer.cs: Track the thread that the timer is started in (NOT
15823 CREATED), this way messages for it will only be triggered on its
15825 * XEventQueue.cs: Track the timers here, this makes timers per
15827 * XplatUIX11.cs: The timers are moved to the XEventQueue.
15829 2006-08-19 Chris Toshok <toshok@ximian.com>
15831 * XplatUIX11.cs: after further communication with pdb, we get the
15832 best of both worlds. SetZOrder working for un-Mapped windows, and
15833 no X errors for un-mapped windows.
15835 2006-08-19 Chris Toshok <toshok@ximian.com>
15837 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
15838 as it was causing pdn toolbars to not have the correct stacking.
15840 2006-08-18 Mike Kestner <mkestner@novell.com>
15842 * ListView.cs : guard against negative ClientArea.Width in scrollbar
15843 calculation. Not sure why control should ever be setting a negative
15844 width though. Fixes #78931.
15846 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15848 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
15849 null items in ObjectCollection class.
15850 * ListBox.cs.: Likewise.
15852 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
15854 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
15855 as the base method in ThemeWin32Classic should work fine.
15858 2006-08-18 Jackson Harper <jackson@ximian.com>
15860 * Binding.cs: When validating if the value entered doesn't convert
15861 properly reset to the old value.
15862 * RadioButton.cs: Don't fire click when we get focus.
15864 2006-08-18 Jackson Harper <jackson@ximian.com>
15866 * FileDialog.cs: Paint the selection on the directory combobox the
15869 2006-08-17 Jackson Harper <jackson@ximian.com>
15871 * ErrorProvider.cs: Don't allow the error control to be selected.
15872 * Control.cs: Don't send the SetFocus messages, the control
15873 activation will do this, and if we do it blindly here validation
15876 2006-08-17 Jackson Harper <jackson@ximian.com>
15879 * ContainerControl.cs: Make validation events fire in the correct
15880 order. TODO: For some reason the first validation event is not
15883 2006-08-17 Mike Kestner <mkestner@novell.com>
15885 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
15887 2006-08-17 Mike Kestner <mkestner@novell.com>
15889 * ComboBox.cs : implement scroll wheel support for popped-down
15890 state. Fixes #78945.
15892 2006-08-17 Jackson Harper <jackson@ximian.com>
15894 * TreeView.cs: Specify treeview actions (old patch that didn't get
15895 committed for some reason).
15896 - Don't let the mouse wheel scroll us too far. Just want to make
15897 the bottom node visible, not scroll it all the ways to the top.
15899 2006-08-17 Jackson Harper <jackson@ximian.com>
15901 * XplatUIX11.cs: Mouse wheel events go to the focused window.
15903 2006-08-17 Mike Kestner <mkestner@novell.com>
15905 * ComboBox.cs : don't do mouseover selection in simple mode.
15907 2006-08-16 Jackson Harper <jackson@ximian.com>
15909 * Form.cs: Fire the closing events for all the mdi child windows
15910 when a window is closed. If the cancel args are set to true, the
15911 main window still gets the event fired, but it doesn't not close.
15912 * MdiWindowManager.cs: Do this closing cleanup in a Closed
15913 handler, instead of when the button is clicked, so cancelling the
15914 close works correctly.
15915 * ComboBox.cs: Send the mouse down to the scrollbar.
15917 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15919 * ListBox.cs: When passing 'null' to SelectedItem,
15920 set SelectedIndex to -1, to unselect items. This is the
15921 observed behaviour in .Net.
15923 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
15925 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
15926 MS flags saying there won't be any. (fixes #78800)
15927 * Control.cs (HandleClick): Made virtual
15929 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
15931 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
15932 cultures. Fixed bug #78399.
15934 2006-08-16 Jackson Harper <jackson@ximian.com>
15936 * Form.cs: Use the MdiClients MdiChildren property to access
15937 MdiChildren instead of creating the array from the child controls.
15938 * MdiClient.cs: Maintain a separate array of the mdi children, so
15939 that insertion order is maintained when the Z-order is changed.
15941 2006-08-16 Mike Kestner <mkestner@novell.com>
15943 * ListView.cs : add an ItemComparer and default to it for sorting.
15944 Fixes #79076, but sorting needs a complete overhaul to be compat with
15947 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15949 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
15951 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15953 * Hwnd.cs (Mapped): Properly traverse the tree
15955 2006-08-15 Chris Toshok <toshok@ximian.com>
15957 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
15958 pass manager.Current.GetType() to ParseData. It has to be the
15959 property type. So, hold off doing the ParseData until we're in
15960 SetPropertyValue where we know the type. This fixes the crash in
15961 #78821 but the textbox is still empty.
15963 2006-08-15 Chris Toshok <toshok@ximian.com>
15966 - when we're scrolling, only call Edit() again if the
15967 current cell is still unobscured. Fixes bug #78927.
15968 - when handling mousedown on a cell, ensure the cell is visible
15969 before calling Edit.
15970 - remove the properties from DataGridRow, and remove the
15971 DataGridParentRow class altogether.
15974 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15976 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
15977 fire OnTextChanged by ourselves. There's no point calling base,
15978 we don't set the base value anywhere else. Fixes #78773.
15980 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15982 * ListBox.cs: Call CollectionChanged when modifying
15983 an item from Items indexer, to update the actual items
15986 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15988 * PrintDialog.cs: Small fixes for focus and a pair of checks,
15989 to match .Net behaviour.
15991 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15993 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
15995 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
15997 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
15999 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
16001 * MessageBox.cs: Prevent potential NRE exception.
16002 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
16004 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
16006 * MessageBox.cs: Calculate the owner of a messagebox, also make
16007 it topmost. Fixes #78753
16009 2006-08-14 Chris Toshok <toshok@ximian.com>
16011 * XplatUIX11.cs: A couple of fixes so that metacity will let us
16012 programmatically move windows. first, set the PPosition hint as
16013 well as the USPosition hint. Second include some code from pdb
16014 that sets the window type to NORMAL when we set the transient for
16015 hint. This is because, in the absence of a window type, metacity
16016 thinks any window with TransientFor set is a dialog, and refuses
16017 to let us move it programmatically. fascists.
16019 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
16021 * XplatUIX11.cs: When setting normal hints, take into consideration
16022 an different hints previously set so we don't delete them (fixes #78866)
16024 2006-08-12 Chris Toshok <toshok@ximian.com>
16026 * ToolBarButton.cs: make Layout return a boolean, if something to
16027 do with the button's layout changed.
16030 - add another parameter to Redraw, @force, which all existing
16032 - make the Layout function return a boolean which is true if the
16033 layout has actually changed. Redraw now uses this (and @force)
16034 to determine when to invalidate. At present the only place
16035 where @force can be false is the call from OnResize, when
16036 background_image == null. So, resizing a toolbar when the
16037 layout doesn't change results in no drawing.
16039 2006-08-12 Chris Toshok <toshok@ximian.com>
16041 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
16042 the VScrollBar and HScrollbar reversed. oops.
16044 * DataGrid.cs: fix the logic that assigns sizes to the implicit
16045 scrollbars. we were assigning them twice (once in
16046 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
16047 therefore causing two scrollbar resizes (and redraws?) to happen
16050 2006-08-12 Chris Toshok <toshok@ximian.com>
16052 * ToolBarButton.cs: redraw the entire button if the theme tells us
16055 * Theme.cs: add ToolBarInvalidateEntireButton.
16057 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
16058 buttons, just the border.
16060 * ThemeNice.cs: redraw the entire toolbar button since we need to
16061 draw the highlight image.
16063 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
16064 we need to redraw the entire button (not just the border).
16066 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
16068 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
16069 for vertical bars. Fixes the mismatches shown by #78513
16071 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
16073 * FileDialog.cs: If a saved/remembered path doesn't exist
16074 anymore, fall back to "Desktop".
16076 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
16078 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
16079 parent. It's apparently legal to not have one
16081 - SetZOrder: Don't try to set Z-Order on an unmapped window
16082 - CreateWindow: 0,0 are legal coordinates for a window. don't move
16083 it unless the coordinates are negative
16085 2006-08-10 Mike Kestner <mkestner@novell.com>
16087 * ListControl.cs: allow null for DataSource. Clear DisplayMember
16088 when setting to null per msdn docs. Fixes #78854.
16090 2006-08-10 Chris Toshok <toshok@ximian.com>
16092 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
16093 flickering by setting a clip rectangle on the Graphics when we
16094 need to redraw just a particular menuitem. Also, rename "OnClick"
16095 to "OnMouseDown" to reflect what it actually is.
16097 * Form.cs: track the OnMouseDown change.
16099 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
16101 * CommonDialog.cs: Properly inherit the CreateParams from the form
16102 and only change what we need. Fixes #78865
16104 2006-08-10 Chris Toshok <toshok@ximian.com>
16106 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
16107 flickering in flat mode (and most of the flickering in general) by
16108 only invalidating the button border (and not the entire rectangle)
16109 when the state changes. A couple of cases still flicker:
16110 ToggleButtons, and the dropdown arrow case when the user mouse
16113 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
16115 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
16116 for german keyboards. Numlock state shouldn't affect the behaviour
16117 of the Del key. Fixes bug #78291.
16119 2006-08-10 Chris Toshok <toshok@ximian.com>
16121 * ListControl.cs: remove the items.Clear line from BindDataItems,
16122 as this is the first thing done by both subclasses in their
16123 SetItemsCore overrides. Also, add a ItemChanged handler, and when
16124 passed -1, refresh the list. This gets databinding working when
16125 the datasource is set on the list before the datasource is
16126 populated (as in wf-apps/ReportBuilder.)
16128 * ComboBox.cs: remove the argument to BindDataItems. This call
16129 should really go away, and be initiated by the ListControl code.
16131 * ListBox.cs: same.
16133 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16135 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
16136 if no data is in the document when the control is displayed
16138 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16140 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
16143 - PositionCaret: Allow positioning of caret but don't call methods
16144 requiring a handle if the window isn't created yet
16145 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
16146 - owner_HandleCreated: Don't position the caret, just update it's
16147 location. User might have already set a different position
16149 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
16151 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
16152 windows. Screws up the returned coordinates for child windows.
16153 Fixes #78825. I'm hoping this doesn't break something, since the
16154 code was explicitly put in 8 months ago, but no bug was attached.
16155 Menus still seem to work properly.
16157 2006-08-08 Chris Toshok <toshok@ximian.com>
16159 * DataGrid.cs: make BeginInit/EndInit actually do what they're
16160 supposed to do - delay data binding until the EndInit call. Also,
16161 make the table style collection's CollectionChangeAction.Refresh
16164 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
16165 (with action = Refresh) when a consituent table's MappingName is
16168 2006-08-08 Chris Toshok <toshok@ximian.com>
16170 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
16171 Invalidate, since changing the text can change the size of the all
16174 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
16176 * Form.cs (AddOwnedForm): Still need to add the form to our listif
16177 we don't have it yet
16179 2006-08-08 Chris Toshok <toshok@ximian.com>
16181 * PrintControllerWithStatusDialog.cs: don't .Close() the status
16182 dialog, as this causes X errors later on, since we actually
16183 destroy the window. Instead, .Hide() it.
16185 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
16187 * ComboBox.cs: Added focus reflection for popup window
16189 - Removed transient setting for non-app windows for now, not sure it
16191 - Fixed logic checking if we have captions when deciding
16192 override_redirect, WS_CAPTION is two bits and a 0 check was not
16194 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
16197 - AddOwnedForm: Don't just add the form to the list, call the property
16198 to ensure the driver is informed about the ownership as well
16199 - CreateHandle: Set the TopMost status in the driver if we have an owner
16200 * XplatUI.cs: Fixed debug statement
16202 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
16203 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16204 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
16205 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
16206 TrackBarRenderer.cs: Make constructor private.
16207 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
16208 * ProfessionalColorTable.cs: Make properties virtual.
16210 2006-08-06 Duncan Mak <duncan@novell.com>
16212 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
16215 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16216 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16217 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
16218 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
16219 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
16220 Initial import of new 2.0 classes.
16222 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16223 * Application.cs: Add 2.0 VisualStyles properties.
16225 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
16226 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16227 XplatUIX11.cs: Create property to allow access to existing private
16228 variable "themes_enabled"
16230 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16232 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
16233 file size, as otherwise our class libraries fail using windows. Fixes
16236 2006-08-04 Jackson Harper <jackson@ximian.com>
16239 * XplatUIX11.cs: Move the toolwindow window manager creation into
16240 the X11 driver, this way on win32 we can let windows create/handle
16243 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16245 * PrintDialog.cs: Remove some redundant checks, add some others,
16246 clean some code, and move the focus to the text boxes when the
16247 values are incorrect.
16249 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
16251 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
16253 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
16255 * NumericUpDown.cs: Setting the Minimum and Maximum is now
16256 handled correctly. Fixes bug #79001.
16258 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16260 * PrintDialog.cs: The "Copies" numeric up down must have
16261 set the Minimum property to 1; only if the value is bigger
16262 than 1, activate "Collate" check box. This is the behaviour of .Net.
16263 Also modify the Document elements only if it is not null.
16265 2006-08-03 Jackson Harper <jackson@ximian.com>
16267 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
16268 length. (We have a larger array then actual node count).
16270 2006-08-03 Jackson Harper <jackson@ximian.com>
16272 * ComboBox.cs: Don't show selection by default.
16273 - The SelectAll isn't needed here, since the focus code should do
16275 - DDL style lists to manual selection drawing, so when they
16276 get/lose focus they have to invalidate.
16278 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
16280 * TextBoxBase.cs: Don't always show all selections by default.
16282 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
16283 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
16284 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
16285 Fixed various typos.
16287 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
16289 * Control.cs: Removing the controls in a ControlCollection with
16290 Clear now hides the controls as expected. Fixes bug #78804.
16292 2006-08-03 Jackson Harper <jackson@ximian.com>
16294 * Control.cs: Revert previous focus patch, it breaks reflector.
16296 2006-08-03 Jackson Harper <jackson@ximian.com>
16298 * ComboBox.cs: Cleanup selection and focus with the combobox.
16299 This also eliminates some duplicated keyboard code, since now
16300 everything is handled by the main class.
16301 - Make list selection work on mouse up instead of down, to match
16304 2006-08-02 Jackson Harper <jackson@ximian.com>
16306 * Control.cs: Setting focus needs to go through the whole
16307 selection mechanism.
16309 2006-08-02 Chris Toshok <toshok@ximian.com>
16311 * PrintPreviewDialog.cs: change MinimumSize to use
16312 base.MinimumSize so it works.
16314 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
16317 - UpdateCaret: Added sanity check in case caret isn't defined yet
16318 - Line.Delete: Now updating selection and caret markers if we're
16319 transfering a node (Properly fixes #78323)
16320 - SetSelectionEnd: Added sanity check
16321 * TextBoxBase.cs: Removed broken attempt to fix #78323
16323 2006-08-01 Chris Toshok <toshok@ximian.com>
16325 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
16326 Close() call is handled in Form, not here.
16328 2006-08-01 Chris Toshok <toshok@ximian.com>
16330 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
16333 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
16334 for sizes < 100% zoom. The code now aggressively attempts to keep
16335 from calling document.Print (), and tries not to use the scaling
16336 g.DrawImage whenever possible (it still does if you scale to >
16337 100%, since usually that involves huge images).
16339 * PrintPreviewControl.cs: hook up the close button.
16341 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
16342 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
16343 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
16344 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
16345 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
16346 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
16347 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
16348 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
16349 Removed [Serializable] for 2.0 Event Handlers.
16351 2006-07-31 Jackson Harper <jackson@ximian.com>
16353 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
16354 * TextControl.cs: Uncomment out the body of this method.
16356 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
16358 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
16361 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16363 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
16364 that embed TextBox and need selections visible even if textbox is not
16365 focused to enforce that behaviour.
16366 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
16369 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16372 - Added new SetSelectionStart/SetSelectionEnd overloads
16373 - Fixed viewport width assignment to be accurate
16374 - Adjusted alignment line shift calculations to allow cursor on right
16375 aligned lines to be always visible at the right border (like MS)
16377 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
16378 - TextBoxBase_SizeChanged: recalculating canvas on size changes
16379 - CalculateScrollBars: Use ViewPort size instead of window size, to
16380 properly consider space occupied by the border and scrollbars
16382 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
16383 calculations; no longer leaves artifacts
16384 - CaretMoved: Adjusted window scrolling to match MS and fixed several
16385 calculation bugs (Still missing right/center align calculations)
16387 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16389 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
16390 use of both scroll rect and clip rect, as they do the same.
16392 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
16394 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
16395 in the event handler (fixes #78912)
16397 2006-07-31 Chris Toshok <toshok@ximian.com>
16399 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
16400 grid.ListManager.Count, since grid.ListManager might be null.
16401 This of course begs the question "why are we drawing rows for a
16402 grid with no list manager (and therefor no rows)?" Fixes the
16403 crash in bug #78929.
16405 2006-07-31 Chris Toshok <toshok@ximian.com>
16407 * RelatedPropertyManager.cs: Don't always chain up to the parent
16408 ctor. instead, call SetDataSource if the parent's position is !=
16409 -1. Fixes the crash in #78822.
16411 2006-07-31 Chris Toshok <toshok@ximian.com>
16413 * DataGrid.cs (get_ListManager): use field instead of property
16414 accessors for datasource and datamember.
16415 (RowsCount): make internal again.
16416 (OnMouseDown): end edits before resizing columns/rows.
16417 (OnMouseUp): restart edits after resizing columns/rows.
16419 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
16421 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
16422 This fixes the situation where the last set cursor is displayed
16423 whenever the mouse is over scrollbars.
16425 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16427 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
16428 Document properties, as well as initial values.
16430 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
16432 * XplatUIWin32.cs (SetBorderStyle): Setting both border
16433 and ClientEdge results in a 3-pixel border, which is
16436 2006-07-28 Jackson Harper <jackson@ximian.com>
16438 * TreeNodeCollection.cs: Fix the clear method.
16439 - Fix the Shrink also
16441 2006-07-27 Jackson Harper <jackson@ximian.com>
16443 * TreeView.cs: Make sure the visible order is computed when we
16444 attempt to size the scrollbars (for trees that mess with the
16445 scrolling when they shouldn't.
16446 - Make sure to give the scrollbars valid values.
16448 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
16450 * XplatUIX11.cs: Move motion compression code to where it
16451 has less performance impact
16453 2006-07-26 Jackson Harper <jackson@ximian.com>
16455 * UpDownBase.cs: When the control is selected make the child
16456 controls non selectable, so that a click on them won't do a
16457 focus/unfocus cycle.
16458 - Don't give focus to the text box when the spinner is selected.
16459 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
16461 2006-07-26 Chris Toshok <toshok@ximian.com>
16463 * ThemeWin32Classic.cs: add print preview rendering. I'm not
16464 satisfied with this solution. If the bitmaps are small, we should
16465 just cache them in the PrintPreviewDialog and draw them here.
16466 Also, the layout is broken for the 2-up and 3-up cases.
16468 * Theme.cs: add PrintPReviewControlPaint.
16470 * PrintPreviewDialog.cs: first pass implementation.
16472 * PrintPreviewControl.cs: first pass implementation. No
16475 * PrintDialog.cs: only validate fields if that particular portion
16476 of the UI is enabled. Also, set the document's controller to a
16477 PrintControllerWithStatusDialog wrapping the document's print
16480 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
16481 bring up a SaveFileDialog (i hope we don't want to match the
16482 behavior of the crappy windows file entry) and set the
16483 PrinterSettings.PrintFileName accordingly.
16485 2006-07-26 Jackson Harper <jackson@ximian.com>
16487 * ContainerControl.cs: Add a field that disables auto selecting
16488 the next control in a container when the container is activated.
16489 * UpDownBase.cs: Don't select the text box when the up down is
16492 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
16494 * XEventQueue.cs: Added methods for peeking (used for compression
16495 of successive events)
16496 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
16497 mouse move events (fixes #78732)
16499 2006-07-25 Jackson Harper <jackson@ximian.com>
16501 * UpDownBase.cs: Use an internal class for the textbox so that we
16502 can control focus. the updown control should always have focus,
16503 if either the text area or the buttons are clicked.
16504 - Send the key messages to the textbox, since it never actually
16506 - Activate and decativate the textbox caret.
16508 2006-07-24 Jackson Harper <jackson@ximian.com>
16510 * Control.cs: Use the directed select when selecting a control,
16511 this way the container controls override will get called and the
16512 whole ActiveControl chain will get triggered. TODO: probably need
16513 to make sure this gets done everywhere instead of the old
16515 * ContainerControl.cs: Implement the directed Select method to
16516 find and activate the correct child control.
16518 2006-07-22 Mike Kestner <mkestner@novell.com>
16520 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
16521 menu handling code so that clicks without a grab work too.
16524 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
16526 * FileDialog.cs: Enable the BackButton when dirstack has one element.
16527 Added some small optimizations.
16529 2006-07-21 Matt Hargett <matt@use.net>
16531 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
16533 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
16535 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
16536 tests pass and match MS in some strange border cases.
16538 2006-07-21 Chris Toshok <toshok@ximian.com>
16540 * ThemeWin32Classic.cs: handle drawing of the relation links and
16541 parent row buttons.
16543 * Theme.cs: change args to DataGridPaintParentRow.
16545 * DataGrid.cs: Don't use controls for the relation links and
16546 parent buttons, so we have to handle all their interactions in
16547 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
16548 when we're navigating through child tables, so we can reinstate
16549 selection, expanded state, current cell, etc.
16551 2006-07-20 Chris Toshok <toshok@ximian.com>
16553 * ToolBar.cs: When we redraw a button, for whatever reason,
16554 there's no reason to redraw the entire toolbar. Also, don't call
16555 Control.Refresh from within Redraw, as it's much heavier than
16556 Invalidate (which is really what we want).
16558 2006-07-20 Chris Toshok <toshok@ximian.com>
16560 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
16561 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
16562 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
16563 traces from within a debug IBindingList datasource
16564 (in mono/winforms/datagrid) for *days*, I've finally gotten things
16565 to work in a similar fashion.
16567 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16569 * ListBox.cs: Don't call Sort () when setting
16570 the Sorted property to false (avoid an unnecessary sort).
16572 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16574 * ListControl.cs: DataSource should throw an ArgumentException
16575 instead of a normal exception when the argument is not of the
16578 2006-07-20 Mike Kestner <mkestner@novell.com>
16580 * Control.cs: add InternalPreProcessMessage to allow us to steal
16581 key events before MWF gets its paws on them. Adapted from a
16583 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
16584 up/down/left/right navigation. Override the new internal control
16585 method to steal the events since they never make it to WndProc.
16586 * ToolBarButton.cs: don't worry about pushed when setting hilight
16587 since the drawing code prefers pushed to hilight. Invalidate on
16588 Hilight changes. Fixes #78547 and #78525.
16590 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16592 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
16593 the canvas size. Fixes #78868
16595 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16597 * Splitter.cs: Track requested split position until first layout
16598 is performed. Fixes #78871
16600 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
16602 * Application.cs: Removed code that forces 1.x for the version
16603 number if the version started with 0. Not sure why that code was
16604 there and I couldn't find any bugs that indicated we needed it.
16607 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
16609 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
16610 ResetDefaults(), just write some output to the console until it's
16611 implemented. Fixes bug #78907 for now. Eliminated two warnings.
16613 2006-07-19 Jonathan Chambers <joncham@gmail.com>
16615 * PropertyGridView.cs: set StartPosition of drop down forms
16616 so they appear in correct initial spot. Fixes #78190.
16618 2006-07-19 Mike Kestner <mkestner@novell.com>
16620 * ThemeWin32Classic.cs: use parent background color when drawing
16621 flat toolbars. Restructure the conditionals to make sure non-flat
16622 non-Divider toolbars are filled too. Fixes #78837.
16624 2006-07-19 Mike Kestner <mkestner@novell.com>
16626 * ListBox.cs: Sort on collection changes even if the handle
16627 isn't created yet. Fixes #78813.
16629 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16631 * ListControl.cs: DisplayMember should never be null,
16632 and now we assign String.Empty when null is passed to it (this
16635 2006-07-17 Mike Kestner <mkestner@novell.com>
16637 * ListViewItem.cs: restructure Font and subitem Font handling
16638 to hold a specific font and refer back to owner on null.
16641 2006-07-17 Mike Kestner <mkestner@novell.com>
16643 * ToolBar.cs: bandaid for side-effect of previous patch which was
16644 discarding explicit heights for non-AutoSize toolbars. Need to
16645 extend my format tester to deal with AutoSize=false. Fixes #78864.
16647 2006-07-15 Jackson Harper <jackson@ximian.com>
16649 * LabelEditTextBox.cs:
16650 * TreeView.cs: Use a new LabelEdit class for node editing, this
16651 class automatically 'closes' itself when it gets the enter key or
16653 - Use the client rectangle when setting the trees scrollbars, so
16654 border style is taken into account.
16656 2006-07-14 Jackson Harper <jackson@ximian.com>
16659 * TreeView.cs: Make the editing work similar to MSs, firing the
16660 events correctly and ending edits correctly.
16662 2006-07-14 Mike Kestner <mkestner@novell.com>
16664 * ToolBarButton.cs:
16665 * ToolBar.cs: layout restructuring and redraw enhancements to support
16666 formatting changes gracefully, like setting TextAlign, ImageList,
16667 ButtonSize, and Appearance. Handles explicit button sizing quirks
16668 of the MS controls. Things like flat toolbars ignoring button size
16669 but becoming constant sized at the largest button's size. Normal
16670 toolbars with an image set cannot be shrunk smaller than the image,
16671 but text can be clipped/ignored.
16672 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
16673 is zero. Seems like DrawString should be smart enough to not put
16674 anything on screen though. Also trim labels and ellipsize at the char
16675 boundary, not word.
16676 Fixes #78711 and #78483.
16678 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16680 * FolderBrowserDialog.cs: Disable "New Folder" button and
16681 "New Folder" contextmenu menuitem if a folder like "My Computer"
16684 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16686 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
16687 * FolderBrowserDialog.cs:
16688 - Use MWFConfig to store and read size and position settings
16689 - Added code to create a new folder (button or context menu).
16690 Use TreeView labeledit to change the name of the new folder.
16692 2006-07-14 Jackson Harper <jackson@ximian.com>
16694 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
16695 when the tree is scrolled we end editing.
16697 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
16699 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
16702 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
16704 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
16705 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
16706 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
16707 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
16708 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
16709 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
16710 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
16711 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16712 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
16713 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
16714 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
16715 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
16716 ListViewItemSelectionChangedEventHandler.cs,
16717 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
16718 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
16719 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
16720 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
16721 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
16722 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
16723 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
16724 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
16725 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
16726 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
16727 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
16728 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
16729 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
16730 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
16731 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
16732 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
16733 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
16734 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
16735 WebBrowserNavigatingEventHandler.cs,
16736 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
16738 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
16740 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
16741 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
16742 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
16743 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
16744 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
16745 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
16746 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
16747 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
16748 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
16749 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
16750 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
16751 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
16752 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
16753 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
16754 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
16755 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
16756 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
16757 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
16758 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
16759 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
16760 ListViewItemStates.cs, MaskFormat.cs: Added
16762 2006-07-13 Jonathan Chambers <joncham@gmail.com>
16764 * PropertyGridView.cs: Fix keyboard navigation of drop down.
16765 Patch from eno for bug 78558.
16767 2006-07-13 Jackson Harper <jackson@ximian.com>
16769 * TreeView.cs: When an edit is finished make sure that the
16770 selected node is visible.
16771 - When setting the top/bottom use the scrollbars is_visible, so
16772 everything will be set correctly even if the tree isn't visible
16775 2006-07-13 Jackson Harper <jackson@ximian.com>
16777 * ComboBox.cs: Revert the item->index part of my previous patch.
16778 * TreeView.cs: Use LostFocus instead of Leave for detecting when
16779 the edit box has lost focus (duh).
16780 - Just make the edit box not visible when we get return, that will
16781 take the focus, which will call EndEdit
16782 * TreeNode.cs When we start editing, notify the treeview.
16784 2006-07-12 Jackson Harper <jackson@ximian.com>
16786 * ComboBox.cs: Clear out old items before setting the item list.
16787 This prevents databound controls from having their items added
16789 - Switch the combobox to use indices whereever possible instead of
16790 using Item's. This allows usto navigate through lists that have
16791 more then one item with the same string value (ie a, b, b, a).
16792 - Scroll the listboxes scrollbar when a non visible item is
16794 - Allow keypress to cycle through all the possible values. For
16795 example if you have b1, b2, b3 and hold down the B key all the
16796 values will be cycled through.
16798 2006-07-12 Jackson Harper <jackson@ximian.com>
16801 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
16802 this using the internal methods.
16803 * Control.cs: Add OnGotFocusInternal. A new method that allows
16804 controls to "override" OnGotFocus and change focus behavior if
16806 - Same thing for LostFocus
16807 * ComboBox.cs: Pass off focus to the text control properly.
16809 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
16811 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
16812 * FolderBrowserDialog.cs: Almost a complete rewrite.
16813 - Better support for Environment.Specialfolders
16814 - Added support for MWFVFS
16815 - Made setting SelectedPath work
16817 2006-07-12 Jackson Harper <jackson@ximian.com>
16819 * Control.cs: Optimze getting all the controls.
16821 2006-07-11 Jackson Harper <jackson@ximian.com>
16823 * ContainerControl.cs: Override SETFOCUS in the container control,
16824 so that it is not selected on mouse click.
16826 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
16828 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
16829 Hopefully we will have a better way once all of focus is complete.
16831 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
16833 * ThemeWin32Classic.cs: Commented out some debug code and fixed
16834 a compile error with csc.
16836 2006-07-11 Jackson Harper <jackson@ximian.com>
16838 * Control.cs: When hiding a control only select the next control
16839 if the current control was focused.
16840 - Don't handle enter/leave when setting/killing focus, this is
16841 done by the container control.
16842 - Remove is_selected, it's not needed anymore.
16843 - Add utility methods for selecting a child control, and for
16844 firing the Enter/Leave events.
16845 * ContainerControl.cs: When a control is activated fire the
16846 enter/leave events.
16847 - Don't wrap when processing the tab key, so that focus can be
16848 moved outside of the container.
16849 - Use the correct active control
16851 2006-07-11 Jackson Harper <jackson@ximian.com>
16853 * ComboBox.cs: Remove some debug code that was blinding me.
16854 * UpDownBase.cs: These controls actually aren't implicit, they are
16855 visible to the user.
16857 2006-07-10 Chris Toshok <toshok@ximian.com>
16859 * DataGrid.cs: move back to the is_adding boolean field. god i
16860 hate this is_editing/is_adding/is_changing stuff.
16862 2006-07-10 Chris Toshok <toshok@ximian.com>
16864 * DataGridTableStyle.cs: just check if the property type is bool.
16865 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
16866 Don't use CanRenderType.
16868 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
16869 if our text == NullText. Remove CanRenderType.
16871 * DataGridBoolColumn.cs: nuke CanRenderType.
16873 * DataGrid.cs: reenable some code to end the current edit inside
16874 of set_CurrentCell. This fixes the other 1.1.16 regression.
16875 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
16876 Also, remove the visible_row_count arg from CalcRowHeaders, since
16877 we don't need to worry about the actual height of the area.
16879 2006-07-10 Chris Toshok <toshok@ximian.com>
16881 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
16884 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
16885 the real sense of the IsInEditOrNavigateMode property (true =
16886 navigate, false = edit). Also, update OnKeyPress to reflect this.
16888 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
16889 column style exists, we still need to set its property descriptor
16890 to match up with our list manager.
16892 2006-07-10 Chris Toshok <toshok@ximian.com>
16894 * ThemeWin32Classic.cs: implement the new row/header painting
16895 approach. The parent row painting will likely go away and
16896 replaced with label controls, but the rest seems to work ok (and
16899 * Theme.cs: change the way we draw datagrid rows. we don't draw
16900 the row headers as a block now. Instead we draw them in the
16901 normal draw-row loop. Add some calls for drawing parent rows and
16904 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
16905 a default table style. Set the defaults from ThemeEngine.Current,
16906 not SystemColors. Fix lots of misc issues with property setters.
16908 * DataGrid.cs: move loads of style information out of this class
16909 as it's being duplicated with DataGridTableStyle. keep track of a
16910 special DataGridTableStyle for the properties we used to mirror
16911 here. Switch all the style properties to access this table style
16912 instead of instance fields of this class. Also add a internal
16913 class to represent parent rows (more needs to be stored here, like
16914 the selection state from the parent table, as well as the
16915 expansion state.) Also, for datasources with relations, do the
16916 right thing for collapse/expand, and add support for the
16917 navigation/parent row buttons.
16919 Lastly, fix the crash in the 1.1.16 build.
16921 * GridTableStylesCollection.cs: make the explicit interface
16922 implementations call the class's methods as opposed to duplicating
16925 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
16926 0 so the text doesn't jump around when we move the cursor.
16928 2006-07-10 Jackson Harper <jackson@ximian.com>
16931 * ListBox.cs: Match MS's ToString (this makes debugging focus
16932 stuff infinitely easier).
16934 2006-07-10 Jackson Harper <jackson@ximian.com>
16936 * Control.cs (SelectNextControl): When checking the control's
16937 parent use this instead of ctrl.parent so that null can be passed
16938 to SelectNextControl. (I have unit tests for this).
16939 - Remove unused var.
16941 2006-07-10 Chris Toshok <toshok@ximian.com>
16943 * CurrencyManager.cs: correct one regression, the removal of the
16944 finalType field. Also, add a MonoTODO on CanAddRows, implement
16945 Refresh() correctly, and fix some event emission in
16946 ListChangedHandler.
16948 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
16950 * FileDialog.cs: Don't use brackets for new folders if they exist
16951 under *nix. Instead use -(number of existing folders +1).
16953 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
16956 - Fixed really nasty bug #78771
16957 - Don't block the whole GUI when reading directories with a lot of
16958 entries. Use an other thread instead and call BeginInvoke to
16959 update the ListView in MWFFileView
16961 2006-07-07 Chris Toshok <toshok@ximian.com>
16963 * Control.cs (Dispose): release any Capture when disposing.
16965 2006-07-07 Chris Toshok <toshok@ximian.com>
16967 * LinkLabel.cs (Select): if we chain up to the parent, set
16968 focused_index to -1 so we'll search for the first available link
16969 the next time the user tabs into us. Also, if the direction is
16970 backward and focused_index == -1, start the search from the last
16973 2006-07-07 Chris Toshok <toshok@ximian.com>
16975 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
16976 is beyond the end of the text, don't do anything.
16977 (CreateLinkPieces): set our ControlStyles.Selectable based on
16978 whether or not we have any links.
16979 (Link.Invalidate): use a loop instead of foreach.
16980 (Link.set_Start): null out owner.sorted_links so it'll be
16981 recreated by CreateLinkPieces.
16983 2006-07-06 Chris Toshok <toshok@ximian.com>
16985 * LinkLabel.cs: revert the SetStyle change.
16987 2006-07-06 Chris Toshok <toshok@ximian.com>
16989 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
16990 (OnEnableChanged): s/Refresh/Invalidate
16991 (OnGotFocus): if we have a focused index already, refocus it (so
16992 if we mouse out/in to the window it'll focus the right link).
16993 (OnKeyDown): move the tab handling out of here.
16994 (OnLostFocus): don't set focused_index to -1, so we can refocus it
16995 when we lose focus.
16996 (OnMouseDown): don't Capture here - Control handles it. Also,
16997 focus the active link.
16998 (OnMouseUp): don't deal with Capture.
16999 (OnPaintBackgroundInternal): remove.
17000 (OnTextAlignChanged): CreateLinkPieces before calling the
17001 superclass's method.
17002 (OnTextChanged): call CreateLinkPieces before calling superclass's
17004 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
17006 (Select): implement this, moving the selection between different
17007 links, and call parent.SelectNextControl if we don't have another
17008 link to focus in the given direction.
17009 (CreateLinkPieces): call Invalidate instead of Refresh.
17011 2006-07-06 Chris Toshok <toshok@ximian.com>
17013 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
17014 new LinkLabel internals.
17016 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
17017 over pieces looking for active/focused/etc links. also, deal with
17018 runs of text (and links) with embedded \n's in them, and use
17019 MeasureCharacterRanges instead of MeasureString to figure out the
17020 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
17023 2006-07-04 Jackson Harper <jackson@ximian.com>
17025 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
17026 XKB or key auto repeat, do it manually. Without key auto repeat,
17027 when a key is held down we get key press, key release, key press,
17028 key release, ... with auto repeat we get key press, key press, key
17029 press ..., and then a release when the key is actually released.
17031 2006-07-03 Jackson Harper <jackson@ximian.com>
17034 * ThemeWin32Classic.cs: Tabs do not obey normal background color
17035 rules, they are always control color regardless of the background
17038 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
17040 * FileDialog.cs: Added internal class MWFConfig.
17041 Removed Registry support and replaced it with support for the new
17042 MWFConfig class. See MWFConfig comments for more information.
17044 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
17046 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
17047 rectangle. Added some patches from eno from bug #78490 and fixed
17048 the arrow position for small up and down CPDrawScrollButtons.
17050 2006-06-30 Jackson Harper <jackson@ximian.com>
17052 * InternalWindowManager.cs: Remove some debug code.
17053 * Form.cs: When an MdiParent is set to null, the window is
17054 "detatched" and becomes a normal window.
17055 * MdiClient.cs: Don't bring the new child form to the front until
17056 it is activated (setting it as active does this), this makes the
17057 previously active forms titlebar get redrawn as inactive.
17059 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
17061 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
17062 with later controls
17064 2006-06-29 Mike Kestner <mkestner@novell.com>
17066 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
17067 arrow in keynav state. Fixes #78682.
17069 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
17071 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
17072 order (fixes #78393)
17074 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
17076 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
17077 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
17078 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
17079 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
17080 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
17081 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
17082 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
17083 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
17084 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
17085 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
17086 enumerations (FlagsAttribute, SerializableAttribute, added/removed
17089 2006-06-28 Mike Kestner <mkestner@novell.com>
17091 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
17093 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
17096 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
17097 item lines from other area (It also makes BackColor consistent and
17098 compatible with .NET). Fixed bug #78564.
17100 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
17102 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
17103 Patch from Eno for #78555.
17105 2006-06-27 Chris Toshok <toshok@ximian.com>
17107 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
17109 * DataGridColumnStyle.cs: same.
17111 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
17113 * DataGridDrawingLogic.cs: nuke.
17115 2006-06-27 Chris Toshok <toshok@ximian.com>
17117 * DataGridTableStyle.cs: clean up the constructors, and build the
17118 list of child relations for this table. I have no idea if this is
17119 where we should be doing it (it probably isn't), but since we're
17120 already iterating over the properties..
17122 * DataGrid.cs: add row resizing. for now we add a DataGridRow
17123 struct and array for keeping track of row information, similar to
17124 what's shown in a hack on
17125 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
17127 * Theme.cs: be consistent about the naming of DataGrid methods,
17128 prefering ColumnWidths and RowHeights over columnsWidths and
17131 * ThemeWin32Classic.cs: same, and also add support for variable
17132 sized rows (and the +/- expansion icons for related rows).
17134 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17136 * TextBoxBase.cs: Applied Eno's patch from #78660
17138 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17140 * Form.cs (ScaleCore): We don't want to scale our form if it's
17141 state is minimized or maximized, but we still need to scale our
17142 child windows. Also, added try/finally block to ensure layout
17143 gets reset (Fixes #78697)
17145 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17147 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
17149 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
17151 * Form.cs: Fixed c+p error and added check to resize form if minimum
17152 size is bigger than current size (Fixes #78709)
17154 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
17156 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
17158 2006-06-26 Mike Kestner <mkestner@novell.com>
17160 * ComboBox.cs: only do Keypress handling in the combo when there
17161 are items in the collection. Fixes #78710.
17163 2006-06-26 Chris Toshok <toshok@ximian.com>
17165 * Binding.cs: make this work bi-directionally. also, clear up
17166 other mixups between Push/Pull Data (e.g. we're supposed to pull
17167 data when validating).
17169 * BindingManagerBase.cs: trim some fully qualified collection
17172 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
17174 2006-06-23 Chris Toshok <toshok@ximian.com>
17176 * PropertyManager.cs: It appears (according to the unit tests)
17177 that PropertyManager doesn't use
17178 PropertyDescriptor.AddValueChanged to track propery value changes
17179 in its datasource, but uses the same scheme as Binding, where it
17180 looks for a <Property>Changed event and binds to it.
17182 Also, according to the docs, IsSuspended always returns false for
17183 a property manager with a non-null datasource.
17185 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
17187 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
17188 need to update the actual DialogResult. (Fixes #78613)
17190 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
17192 * Form.cs (ShowDialog): Release any captures before running the
17193 new message pump (fixes #78680)
17195 2006-06-22 Mike Kestner <mkestner@novell.com>
17197 * ListView.cs: Layout column widths properly in details mode even
17198 if HeaderStyle.None is set. Fixes #78691.
17200 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
17202 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
17204 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
17206 * Control.cs (ContainsFocus): Using new driver method to get focused
17207 window, instead of trying to use internal tracking var, which can
17208 recursion issues (Fixes #78685)
17209 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
17210 XplatUIWin32.cs: Added GetFocus method to return focused window
17212 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17214 * ColorDialog.cs: when the mouse button is pressed inside the color
17215 matrix, don't let the cursor move out of it until the button is
17216 released, which is the behavior on windows. Changed 'colours' by
17217 'colors' to use the same word consistently.
17219 2006-06-21 Chris Toshok <toshok@ximian.com>
17221 * DataGrid.cs: add in some basic navigation stuff (navigating to a
17222 child relation and back, using a stack). Also, remove
17223 GetDataSource and the code that calls it - it's not needed. Also,
17224 track CurrencyManager.ListName's removal.
17226 2006-06-21 Chris Toshok <toshok@ximian.com>
17228 * CurrencyManager.cs: push some of the original type checking from
17229 BindingContext.CreateBindingManager to here, and remove some of
17230 the finalType stuff. Need more tests to make sure I've got the
17231 ListName part right, and we might need more in SetDataSource.
17233 * PropertyManager.cs: add a ctor that takes just the datasource,
17234 and no property name. Make SetDataSource work with a null
17235 property_name, and make Current return the data_source if the
17236 property descriptor is null. this makes 'string foo = "hi";
17237 BindingContext[foo].Current' return "hi" as it should.
17239 * RelatedCurrencyManager.cs: make this code more generic - there's
17240 no reason the parent manager has to be CurrencyManager, and
17241 there's no reason to pass the DataRelation. It suffices to use a
17242 BindingManagerBase and PropetyDescriptor.
17244 * RelatedPropertyManager.cs: make a similar change here.
17246 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
17247 flower I knew it could be.
17249 2006-06-20 Chris Toshok <toshok@ximian.com>
17251 * PropertyManager.cs: the PropertyChangedHandler is invoked when
17252 data in the source has changed and we need to update the control,
17253 so s/PullData/PushData.
17255 * CurrencyManager.cs: Refresh is meant to update the control from
17256 data in the datasource. So, s/PullData/PushData.
17258 * BindingContext.cs: add more ugliness (we weren't handling the
17259 case where data_source = DataTable and data_member = column_name).
17261 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
17262 from the perspective of the datasource. PullData pulls from the
17263 control, PushData pushes to the control.
17265 2006-06-20 Chris Toshok <toshok@ximian.com>
17267 * BindingContext.cs: rewrite the CreateBindingManager code to
17268 handle navigation paths more or less properly. This could
17269 definitely stand some more work, in particular to push the
17270 recursion up to the toplevel. But that relies on fixes in other
17271 places (System.Data comes to mind).
17273 Also, move to a flat hashtable (and encode the twolevel nature of
17274 the dictionary into the hash key). This lets us implement the
17275 IEnumerable.GetEnumerator method.
17277 * RelatedCurrencyManager.cs: new class. Update our view based on
17278 our relation and our parent CurrencyManager's position.
17280 * CurrencyManager.cs: split out some logic from the ctor into
17281 SetView, so it can be called from the new RelatedCurrencyManager
17284 * RelatedPropertyManager.cs: new class. Update our datasource
17285 based on the position of our parent CurrencyManager.
17287 * PropertyManager.cs: split out some logic from the ctor into
17288 SetDataSource, so it can be called from the new RelatedDataSource
17289 subclass. Also, make the Current getter return the value
17290 of the PropertyDescriptor, not the data_source.
17292 * Binding.cs: no need to duplicate the string splitting code here.
17294 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
17297 - set_Enabled: OnEnabledChanged is not called if the inherited state
17298 of the control is not altered, even though we might be changing the
17299 internal state of the control (#78458)
17300 - set_Enabled: (Re)Moved the enabling/disabling of the window to
17301 OnEnabledChanged, to allow easy altering of any child window state
17302 - OnEnabledChanged: Added code to enable/disable driver window state
17303 - OnParentEnabledChanged: Instead of firing the event, call
17304 OnEnabledChanged, which will fire the event and also a) set driver
17305 window state and pass the enabled state to any grandchildren (#78458)
17307 2006-06-19 Jackson Harper <jackson@ximian.com>
17309 * InternalWindowManager.cs: We don't set the cursor explicitly
17310 thats done via the response to NCHITTESTs.
17311 - Don't need to adjust for titlebar heights anymore, the
17312 coordinates are coming in the correct coordinates now (see peters
17316 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
17318 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
17319 being translated relative to whole window, instead of client window.
17320 That caused broken offsets on mouseclick (and caused gas for our
17321 InternalWindowManager)
17323 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
17326 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
17327 - Undo(): Added replay of cursor move on DeleteChars action; added
17328 calling Undo() again if a recorded cursor move is invalid (to
17329 ensure that some action is performed on Undo)
17330 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
17332 2006-06-16 Jackson Harper <jackson@ximian.com>
17334 * MdiClient.cs: Instead of just sizing maximized windows when
17335 there is a resize we also have to adjust the Y of minimized
17336 windows, so they stay pinned to the bottom of the mdi container.
17337 - Eliminate separate tracking of the active control, we can just
17338 get this from the controls collection.
17339 - Paint the decorations for the newly activated titlebar so we get
17341 * InternalWindowManager.cs:
17342 * ThemeWin32Classic.cs: Minimized windows get all three buttons
17343 even if they are a tool window.
17345 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
17347 * TextControl.cs (Undo): Handle non-existent cursor locations in the
17348 undo buffer, these can happen when text was deleted and the cursor
17349 was recorded first. Since we will also have a recorded cursor
17350 after the delete this is not an issue. (Fixes #78651)
17352 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
17354 * AccessibleObject.cs: Remove dependence on Control.is_selected;
17355 instead properly track control states internally (allows us to
17356 remove is_selected from Control)
17358 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17360 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
17361 whose width is not a multiple of 8.
17363 2006-06-13 Jackson Harper <jackson@ximian.com>
17365 * MdiClient.cs: Only maximize the next child if the current one
17368 2006-06-13 Chris Toshok <toshok@ximian.com>
17370 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
17371 modified. Also, guard against grid or grid_drawing being null in
17374 * DataGrid.cs: Reformat tons of getters/setters. In the
17375 DataMember setter, just call SetNewDataSource instead of
17376 duplicating some of its functionality. In SetNewDataSource, don't
17377 check ListManager for null, since the property getter creates the
17380 * DataGridTableStyle.cs: don't set TableStyle or call
17381 SetDataGridInternal on the column here, it's done in
17382 GridColumnStylesCollection.Add.
17384 * GridColumnStylesCollection.cs: fix all the explicit interface
17385 implementations to just call our methods. Nuke AddInternal() and
17386 move the body of it to Add(). Also, add a call to
17387 column.SetDataGridInternal to Add().
17389 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
17390 base()+duplicate code. Also, use the Format property instead of
17391 format to generate an Invalidate ala MS. Lastly, create the
17392 textbox here, unconditionally.
17393 (set_Format): call Invalidate.
17394 (get_TextBox): no need to call EnsureTextBox.
17395 (Commit): remove the message box.
17396 (Edit) remove the call to EnsureTextBox.
17397 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
17398 (EnterNullValue): no need to check textbox for null.
17399 (HideEditBox): no need to check textbox for null.
17400 (SetDataGridInColumn): add the textbox to the grid's controls.
17401 (EnsureTextBox): nuke.
17403 2006-06-13 Jackson Harper <jackson@ximian.com>
17405 * MdiWindowManager.cs: Hook up to the maximized menus paint event
17406 and redraw the buttons when needed. Unhook when the window is
17408 * MainMenu.cs: Add an internal Paint event, the mdi window manager
17409 needs this so that it can redraw its buttons when the menu is
17411 * InternalWindowManager.cs:
17412 * Form.cs: The method order has changed for DrawMaximizedButtons,
17413 so that it can be a PaintEventHandler.
17415 2006-06-13 Jackson Harper <jackson@ximian.com>
17417 * MdiClient.cs: When we close a maximized mdi window, the next mdi
17418 window is activated and maximized, even if it wasn't before.
17419 - When a new window is activated repaint the decorations of the
17420 old one, so that it no longer has the Active "look" (the blue
17422 * InternalWindowManager.cs: Open up CreateButtons to base classes
17423 so they can recreate the buttons on state changes.
17424 - If a window is maximized give it all three buttons
17425 * MdiWindowManager.cs: Create the titlebar buttons when the state
17426 is changed, this is needed because a toolwindow will not have all
17427 three buttons until it is maximized.
17429 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
17431 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
17434 2006-06-12 Jackson Harper <jackson@ximian.com>
17436 * KeysConverter.cs: Make sure we handle the Ctrl special case
17437 if its the only key.
17439 2006-06-12 Jackson Harper <jackson@ximian.com>
17441 * Theme.cs: Add a method to get the size of a managed window
17443 * InternalWindowManager.cs: Remove the ButtonSize property, this
17444 should be retrieved from the theme.
17445 * MdiWindowManager.cs: Get the button size from the theme
17446 * ThemeWin32Classic.cs: Make the method to get the managed window
17447 titlebar button size public.
17448 - Handle the different button sizes of maximized toolwindows
17449 (should match any maximized window).
17450 - Get the titlebar height from the theme, not the WM (which gets
17451 it from the theme).
17453 2006-06-12 Jackson Harper <jackson@ximian.com>
17455 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
17456 event down to the mdi window manager.
17457 - Expose some extra stuff to base classes
17458 - Make sure to end the Capture on an NC Mouse up, so that we can
17459 get double clicks properly, and the sizing doens't stick.
17460 - When doing PointToClient contain it in the workable desktop
17461 area, this prevents windows from changing size when the cursor is
17462 pulled outside of the working area while sizing.
17463 * MdiWindowManager.cs: When we get a double click maximize the
17465 - Reset the cursor after handling mode changes.
17467 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
17469 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
17470 current desktop, instead of just assuming a 0, 0 origin. This
17471 is needed for our internal window manager, to know the top
17472 margin of the desktop
17474 2006-06-12 Chris Toshok <toshok@ximian.com>
17476 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
17477 we need this to get rid of the selected background in the bool
17479 (CancelEditing): move the ConcedeFocus call to above the Abort
17480 call. Also, set is_changing to false and invalidate the row
17481 header if we were changing before.
17482 (ProcessKeyPreviewInternal): remove, since noone outside this
17483 class calls it anymore. Roll the code into ProcessKeyPreview.
17484 (EndEdit): remove the internal version.
17485 (InvalidateCurrentRowHeader): make private.
17487 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
17488 Keys.Escape handling (and with it the last call to
17489 DataGrid.EndEdit from outside the class.)
17492 2006-06-12 Chris Toshok <toshok@ximian.com>
17494 * DataGridTextBox.cs (.ctor): isedit defaults to false.
17495 (OnKeyPress): set isedit to true.
17496 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
17497 already handled by the grid.
17499 * DataGrid.cs (set_CurrentCell): more work here. it's still not
17501 (set_DataSource): SetDataSource always returns true, so stop
17502 putting it in an if statement.
17503 (EndEdit): get rid of some {}'s
17504 (ProcessGridKey): return true in case Keys.Escape.
17505 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
17506 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
17507 PositionChanged, stopped connecting to CurrentChanged.
17508 (GetDataSource): simplify this a bunch.
17509 (SetDataSource): change return type from bool to void.
17510 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
17511 to this, and make sure we don't set ListManager.Position inside
17513 (OnListManagerItemChanged): if we're passed an actual index,
17516 * CurrencyManager.cs (set_Position): don't call PullData here.
17518 2006-06-09 Jackson Harper <jackson@ximian.com>
17520 * TreeNode.cs: Recalculate the visible order before doing the
17521 Expand/Collapse Below calls, because those calls generate an
17523 - Reduce calls to the TreeView property, which is mildly expensive
17524 by using a local var.
17525 * Form.cs: Layout the MDI child windows when creating the parent
17527 - Don't use the internal constructor anymore
17528 * MdiClient.cs: use the parent form width/height (if available)
17529 when laying out the child windows, we do this because the
17530 mdiclient isn't docked yet when the initial layout is done.
17531 - Don't need an internal constructor anymore.
17533 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17535 * FileDialog.cs: handle access errors when trying to create a folder
17536 or changing to a directory. No need to initialize out parameters.
17538 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17540 * FileDialog.cs: Append a number when creating a new folder if the
17541 folder already exists (use parenthesis instead of square brackets)
17543 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17546 - Disabled registry support for windows and added better registry
17547 error checking for other systems (need to investigate why it
17548 works perfectly on my system)
17549 - If a folder already exist show an error MessageBox instead of
17550 trying to create an indexed name.
17551 - Fixed a non intentional typo.
17553 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17555 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
17557 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17559 * FileDialog.cs: When creating a new folder don't crash if the
17560 folder already exists.
17562 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17564 * FileDialog.cs: Allmost a complete rewrite.
17565 - added a "virtual" file system that handles the differences
17566 between unix and windows file systems (especially the directory
17567 structure). Moved most of the directory and file handling code
17569 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
17570 UnixFileSystem and FSEntry.
17571 - Recently used folder/directory, size, location and used file names
17572 (file name ComboBox) are now stored in the registry and get read
17573 before the dialog shows up (fixes part 6 of bug #78446).
17574 - Creation of new folders/directories is now possible (context menu
17575 or ToolBar). Added TextEntryDialog for this that fills in the gap
17576 until ListView.LabelEdit works.
17577 - Fixed cursor handling (bug #78527) and focus handling for
17579 - Various "Search in" ComboBox enhancements. The content of the
17580 dropdown listbox now almost matches ms.
17581 - Changed the behaviour when the user switches to SpecialFolder
17582 Recent to show the ListView in View.Details.
17583 - Beside using the ToolBar to change the View property of the
17584 file ListView it is now possible to use the context menu too.
17586 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
17588 * ComboBox.cs: Don't create a new ObjectCollection when an item
17589 gets inserted. Just insert the item in the existing object_items
17592 2006-06-08 Jackson Harper <jackson@ximian.com>
17594 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
17595 that the treeview and root node checks are done also, this fixes a
17596 regression i caused in the unit tests.
17598 2006-06-07 Wade Berrier <wberrier@novell.com>
17600 * RichTextBox.cs: More ISO8859-1 -> unicode
17602 2006-06-07 Mike Kestner <mkestner@novell.com>
17604 * ComboBox.cs : use items to hold highlight/selection so that
17605 collection insertions don't require synchronization.
17607 2006-06-07 Jackson Harper <jackson@ximian.com>
17609 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
17610 routine. We now always keep the sized edge at the cursor instead
17611 of computing movement and adjusting rects. There is one buglet
17612 with this method though when the cursor is moved over area that
17613 the window can not expand too (such as the toolbars on the desktop).
17615 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17617 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
17618 here. Fixes crash on startup in AlbumSurfer.
17620 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
17622 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
17625 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17627 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
17628 statement to avoid calling XNextEvent which will block if another thread
17629 took the event that we were expecting. Fixes bug #78605.
17631 2006-06-07 Mike Kestner <mkestner@novell.com>
17633 * ListView.cs : isolated checkbox clicking from the selection logic.
17634 Toggle check state on item doubleclicks. Really fixes #78454 part2.
17636 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17638 * Form.cs: Check that the value passed to Form.DialogResult
17639 is a valid enum value.
17641 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17643 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
17644 Computer'. Clicking it in the network view goes to 'My Computer'.
17645 Added CIFS filesystem type. Display the mount point of filesystems.
17646 Avoid duplicate mount points (happens for me with CIFS);
17648 2006-06-06 Jackson Harper <jackson@ximian.com>
17650 * InternalWindowManager.cs: Draw the maximized windows buttons
17653 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17655 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
17656 all other dialogs. Fixes bug #78585.
17658 2006-06-06 Mike Kestner <mkestner@novell.com>
17660 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
17661 Only invalidate checkbox on checkstate changes to avoid flicker.
17662 * ListBox.cs : avoid unselect/select when clicking selected item.
17663 avoid reselection flicker for already multiselected items.
17666 2006-06-06 Jackson Harper <jackson@ximian.com>
17668 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
17669 the parent form so that the menu is removed if needed.
17671 2006-06-06 Mike Kestner <mkestner@novell.com>
17673 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
17674 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
17676 2006-06-06 Mike Kestner <mkestner@novell.com>
17678 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
17681 2006-06-06 Jackson Harper <jackson@ximian.com>
17683 * Control.cs: Use the property (instead of the field) to get the
17684 default cursor so it is instantiated correctly.
17685 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
17686 resizes so we need to manually repaint the window decorations here.
17687 - Set the titlebar button locations as soon as they are created,
17688 otherwise they are not set correctly on win32.
17690 2006-06-06 Chris Toshok <toshok@ximian.com>
17692 * CurrencyManager.cs (set_Position): call PullData before
17694 (AddNew): after calling IBindingList.AddNew, update our
17695 listposition, and call OnCurrentChanged/OnPositionChanged (without
17697 (OnCurrentChanged): remove the call to PullData from here.
17698 (OnItemChanged): remove the call to PushData from here.
17699 (OnPositionChanged): change the test from == null to != null to
17700 match the other methods.
17701 (ListChangedHandler): the grossest part of the patch. Implement
17702 this such that it passes the unit tests in CurrencyManagerTest and
17703 the output more or less matches that of MS's implementation.
17705 2006-06-06 Mike Kestner <mkestner@novell.com>
17707 * ListView.cs : only update check state on single click.
17708 * ThemeWin32Classic.cs : fix focus drawing for details view without
17709 fullrowselect. Fixes #78454.
17710 * XplatUIX11.cs : fix for double click emission.
17712 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
17714 * PropertyGridView.cs : Applied Atsushi's patch to fix
17715 font dialog bug (#78197).
17717 2006-06-05 Jackson Harper <jackson@ximian.com>
17719 * TreeNode.cs: Compute the next node for expanding/collapsing
17720 correctly. We now factor in nodes without a NextNode
17721 correctly. (Fixes somes cases in nunit-gui).
17722 * InternalWindowManager.cs: Set the bounds when updating the
17723 virtual position of a tool window.
17725 2006-06-05 Chris Toshok <toshok@ximian.com>
17727 * DataGrid.cs: rename cached_currencymgr to list_manager.
17728 (set_CurrentCell): move SetCurrentCell code here, and clean it up
17730 (CurrentRow, CurrentColumn): single accessors so we can make the
17731 cursor movement code a lot easier to understand.
17732 (CurrentRowIndex): implement this in terms of CurrentRow.
17733 (BeginEdit): clean this up a bit.
17734 (CancelEditing): sort out the is_editing/is_changing/is_adding
17736 (EndEdit): minor changes.
17737 (OnKeyDown): add a comment about a (most likely) unnecessary
17739 (OnMouseDown): cancel editing when we click on a row header. And
17740 use the CurrentRow setter, not CurrentCell.
17741 (ProcessDialogKey): directly call ProcessGridKey.
17742 (UpdateSelectionAfterCursorMove): factor out this common block of
17743 code (it's used everywhere that we move the cursor by updating row
17745 (ProcessGridKey): pretty substantial overhaul. Use the
17746 CurrentRow/CurrentColumn properties to make the code a lot more
17747 readable. Only use the CurrentCell property when we have to
17748 modify both row and column at once. Tab behavior is still broken,
17749 and Delete is untested.
17750 (Select): if we have no selected rows, set selection_start to
17752 (EditCurrentCell): rename EditCell this. It was only ever invoked
17753 with CurrentCell as the arg, so drop the arg and rename it.
17755 * DataGridColumnStyle.cs: clean up the constructors a little, and
17756 drop CommonConstructor().
17758 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
17759 actually get notified when the user hits it.
17760 (ProcessKeyMessage): *substantially* simplify this method.
17761 There's no reason (that I can see) for the textbox to be making
17762 calls into the datagrid at all. Remove all of them but the ones
17763 for Enter handling. those will take some more work.
17765 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
17766 calling HideEditBox.
17767 (HideEditBox): if we have an active textbox, render it invisible
17768 without causing a re-layout of the datagrid.
17770 2006-06-05 Mike Kestner <mkestner@novell.com>
17772 * ListView.cs : fix NRE crasher when focuseditem is cleared by
17773 collection changes by resetting it to Items[0]. Fixes #78587.
17775 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17777 * MessageBox.cs: if the height of the text is larger than the icon_size,
17778 use that. Fixes bug #78575.
17780 2006-06-05 Jackson Harper <jackson@ximian.com>
17782 * TreeView.cs: Fix line drawing when scrolling. To do this each
17783 node is basically responsible for drawing its entire horizontal
17784 area. When drawing a node it draws its parent node lines if
17786 - Adjust the clip area to the viewport rectangle
17787 - Fix Left/Right key handling to match MS. (It expand/collapses
17788 and moves to parents/first child but does not move selection to
17790 - Fix SetTop to work with new bound calculation code
17791 - When scrollbars are no longer needed we need to reset scrolling
17792 vars and recalculate the visible order so the redraw is correct
17793 * TreeNode.cs: We can't expand/collapse nodes with no children.
17795 2006-06-03 John Luke <john.luke@gmail.com>
17797 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17798 so the colors work without dev packages
17800 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
17803 - Select: Implemented to just use activate. Seems to match MS
17804 behaviour closest. Documented to only do actual control walking
17805 based on it's parameters if in a container control so I moved
17807 - Removed selection check logic from our internal Select() method
17808 * ContainerControl.cs:
17809 - Select: Moved selection logic from Control here, since MS documents
17810 that containers obey the bool arguments. No longer calling base
17812 2006-06-02 Jackson Harper <jackson@ximian.com>
17814 * TreeView.cs: If the selected node isn't changed when we get
17815 focus update the previously selected node so that we see the
17818 2006-06-02 Mike Kestner <mkestner@novell.com>
17820 * ComboBox.cs: restructure grab and general mouse event handling.
17821 Make the composite control raise mouse events like it was a single
17822 control for leaves/enters/motion/up/down events. fix dropdown list
17823 coordinate mangling and refactor it into the scrollbar subclass to
17824 reduce code duplication. Fixes #78282 #78361 and #78457.
17826 2006-06-02 Mike Kestner <mkestner@novell.com>
17828 * ScrollBar.cs: remove Capture setting/clearing, as it happens
17829 automatically in the Control.WndProc.
17831 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17833 * FileDialog.cs: fix crash when running SharpChess, which sets the
17834 FilterIndex to 2 with only one Filter.
17836 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17838 * ToolBar.cs: add SizeSpecified property.
17839 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
17840 try to figure out our real size, otherwise fallback to what the
17843 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17845 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
17846 * Control.cs (WndProc): MS always calls the DefWndProc to pass
17849 2006-06-01 Mike Kestner <mkestner@novell.com>
17851 * ListView.cs: revamp the focus management in ListView. It still
17852 causes churn of LostFocus/GotFocus emissions on clicks, but it's
17853 better than not handling focus at all. Will revisit when pdb feels
17854 the general focus handling is solid. Fixes #78526.
17856 2006-06-01 Jackson Harper <jackson@ximian.com>
17858 * TreeView.cs: Set the default border style in the constructor.
17859 - Move painting to use OnPaintInternal instead of capturing
17860 WM_PAINT, this is the correct way of doing things
17861 - UpdateBelow shouldn't invalidate the scrollbar area
17862 - Cap the top on update below in case the node was above the top
17863 of the viewport rectangle.
17864 - ExpandBelow and Collapse below need to obey Begin/End Update.
17865 * TreeNode.cs: Make is_expanded internal so the treenode
17866 collection can change it without firing the whole event chain.
17867 * TreeNodeCollection.cs: When clearing all the child nodes make
17868 sure to recalc the visible order.
17869 - Improve algo for remove the top node
17871 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17873 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
17874 SendMessage directly calling window procedures, which in turn might
17877 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
17879 * Control.cs: Don't handle WM_SETFOCUS if the same window already
17880 has focus (works around X11 sending a FocusIn after our SetFocus)
17881 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
17883 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
17885 * Mime.cs: Fix for the NET_2_0 build.
17886 NameValueCollection needs StringComparer now.
17888 2006-05-31 Chris Toshok <toshok@ximian.com>
17890 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
17891 return (via an out parameter) the starting X of the column.
17892 (UpdateVisibleColumn): track change to FromPixelToColumn.
17893 (HitTest): add a ColumnResize case here.
17894 (DrawResizeLine): new function, probably poorly named.
17896 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
17897 only need to keep one reference.
17898 (set_ListManager): same.
17899 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
17900 Also, add support for HitTestType.ColumnResize.
17901 (OnMouseMove): add column resize behavior here, and change the
17902 cursor to the correct one as we move around the datagrid.
17903 (OnMouseUp): terminate the column resize if we're resizing.
17904 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
17905 for the current cell.
17906 (ConnectListManagerEvents): use cached_currencymgr.
17907 (DisconnectListManagerEvents): fill this in, using
17908 cached_currencymgr.
17909 (SetCurrentCell): remove cached_currencymgr_events handling.
17910 (SetDataMember): only call DisconnectListManagerEvents if
17911 cached_currencymgr is != null.
17912 (SetDataSource): same.
17913 (OnListManagerCurrentChanged): cached_currencymgr_events ->
17914 cached_currencymgr.
17916 2006-05-31 Jackson Harper <jackson@ximian.com>
17918 * BindingManagerBase.cs: Remove somedebug code that creeped into
17920 * TreeNode.cs: We get the indent level dynamically right now, so
17921 don't track it as a member.
17922 * TreeNodeCollection.cs: Make sure all nodes added to the list
17923 have parents, treeviews/topnodes setup properly.
17924 - Don't attempt to track indent level.
17926 2006-05-30 Jackson Harper <jackson@ximian.com>
17928 * BindingContext.cs: Create the currency manager tables here.
17929 This allows us to more easily create null tables (when bad data
17930 members are used), and more easily create related currency
17932 * CurrencyManager.cs: All the table creation stuff is done by the
17933 binding context now.
17934 - Current should throw an exception if listposition is -1.
17935 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
17938 2006-05-30 Mike Kestner <mkestner@novell.com>
17940 * ListView.cs: allow reexpansion of zero-width column headers.
17943 2006-05-28 Chris Toshok <toshok@ximian.com>
17945 * CurrencyManager.cs (get_Current): after the late binding
17946 listposition = -1 fix, we need to guard against it here and return
17947 null, otherwise we raise an exception (which is swallowed
17948 elsewhere, and breaks datagrid databinding.)
17950 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17952 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
17953 than WM_SYSKEY, don't throw if get something unexpected (#78507)
17955 2006-05-26 Jackson Harper <jackson@ximian.com>
17958 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
17959 values, it's faster and it's all we care about (we don't care if
17960 the names aren't equal).
17961 * KeyboardLayouts.cs: Eliminate some dead code.
17963 * X11Keyboard.cs: Lazy init keyboard detection.
17964 - Cleanup access modifiers a little.
17966 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17968 * XplatUIX11.cs: Once again, attempting to get layout just right.
17970 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
17972 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
17973 the sizes of each link section, that will result in sizes that
17974 match DrawString's layout (Fixes #78391)
17976 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
17978 * FileDialog.cs: If AddExtension property is true autocomplete the
17979 extensions in SaveFileDialog correctly. Fixes bug #78453.
17980 Set MyNetwork and MyComputer to "C:\" for windows. This should
17981 fix part 8 of bug #78446 for now.
17983 2006-05-26 Chris Toshok <toshok@ximian.com>
17985 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
17986 invalidate the current row header if we need to, but presumably
17987 we'll invalidate the row corrsponding to the bounds or
17989 (GridHScrolled): switch back to this method, as it's part of the
17990 public api. *sigh*.
17991 (GridVScrolled): same.
17992 (OnMouseWheel): hack up something that more or less works. Call
17993 GridHScrolled/GridVScrolled directly, instead of duplicating much
17994 of their code here.
17995 (EnsureCellVisibility): reinstate a bunch of this code, since we
17996 can't just set the scrollbar Value and expect to do all the work
17997 in the ValueChanged handler. Also, Call Update() after scrolling
17998 in one direction so the other XplatX11.ScrollWindow call has the
17999 proper stuff in the proper places.
18000 (EditCell): set is_editing to true before calling .Edit.
18002 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
18003 don't bother comparing first.
18004 (OnKeyPress): call grid.ColumnStartedEditing before calling
18005 base.OnKeyPress. this will set is_changing and invalidate the row
18006 header if necessary.
18007 (ProcessKeyMessage): for WM_CHAR messages, call
18008 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
18011 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
18012 it's done in the DataGrid.
18013 (NextState): call grid.ColumnStartedEditing, which takes care of
18014 invalidating the row header (and setting is_changing).
18016 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
18017 here. it's done in the DataGrid.
18019 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18021 * Control.cs: allow changing the cursor when the mouse position is
18022 out of bounds but Capture is set.
18023 * LinkLabel.cs: handle the case when the mouse button is pressed on the
18024 linklabel but released somewhere else.
18026 2006-05-25 Jackson Harper <jackson@ximian.com>
18028 * TreeView.cs: When we get focus if there is no selected node make
18030 - Remove some uneeded setup code from Draw.
18031 * TreeNodeCollection.cs: If the tree doesn't have a top node when
18032 a new node is inserted make the new node the top.
18034 * Timer.cs: Use Utc time so that no local time zone stuff needs to
18035 be used (should be faster).
18037 2006-05-25 Chris Toshok <toshok@ximian.com>
18039 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
18040 problem with the last commit.
18042 2006-05-25 Chris Toshok <toshok@ximian.com>
18044 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
18045 need the invalidate call here, while scrolling right-to-left via
18046 the left arrow key (i.e. moving the editing cell while scrolling).
18048 * DataGrid.cs (.ctor): remove the initialization of
18049 ctrl_pressed/shift_pressed. We no longer track them using key
18050 up/down handlers, but by using Control.ModifierKeys. Also, switch
18051 to using ValueChanged handlers on the scrollbars instead of
18052 Scrolled event handlers. This simplifies a bunch of the scrolling
18054 (GridHValueChanged): rename from GridHScrolled, and change it to
18055 work with the new event args.
18056 (GridVValueChanged): same.
18057 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
18058 (OnMouseWheel): actually scroll the datagrid. Don't change the
18060 (ProcessGridKey): correct all the keyboard navigation stuff I
18061 could find. Ctrl up/down/left/right/home/end work now.
18062 (EnsureCellVisibility): correct method name spelling. Also,
18063 simplify this a touch by not explicitly calling the
18064 ScrollToRow/ScrollToColumnInPixels methods. We just set the
18066 (OnKeyUpDG): no need for this method now.
18068 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18070 * LinkLabel.cs: display the OverrideCursor when hovering the label.
18073 2006-05-25 Chris Toshok <toshok@ximian.com>
18075 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
18078 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
18080 * Application.cs: Moved setting of is_modal and closing to before
18081 we create the control, to allow the event handlers called as a
18082 result of creation affect closing. Also removed Gonzalo's previous
18083 change to setting DialogResult, the behaviour has been moved to
18086 - ShowDialog(): Removed explicit creation of the form, let RunLoop
18088 - ShowDialog(): If no dialog result is set, we need to return Cancel
18089 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
18090 the close is cancelled
18092 2006-05-25 Jackson Harper <jackson@ximian.com>
18094 * StatusBar.cs: We only need to update the sizes of the other
18095 panels when we have auto size contents. Also we are only updating
18096 the contents of the panel, not the borders, so compensate for the
18097 border width (TODO: get this width from the theme somehow).
18098 * TreeView.cs: Scrollable is true by default
18099 - Use invalidate instead of refresh where needed
18100 - Factor the scrollable value into scrollbar updating
18101 - Update the scrollbars if the Scrollable property is altered
18102 - Update the selected node if its ImageIndex is changed
18103 - Handle null nodes in UpdateNode (mainly so we don't have to
18104 check if selected is null when updating it
18105 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
18106 are factored into the visible count
18107 - Use VisibleCount for clarity in the code
18108 - When the font is changed we need to recurse through all the
18109 nodes and invalidate their sizes
18111 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18113 * Application.cs: set the DialogResult to fixed when the main form is
18114 hidden or destroyed while being modal.
18116 2006-05-25 Miguel de Icaza <miguel@novell.com>
18118 * Theme.cs: Use Tangoified messagebox icons.
18120 (GetSizedResourceImage): Also cope with width = 0 and do not
18121 trigger a warning in that case (0 means "give me your icon from
18122 the resouce, no special size needed).
18124 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
18126 * Application.cs: Leave runloop if the the main modal form is
18127 hidden (fixes #78484)
18129 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
18131 * BindingContext.cs : reject null datasource in Contains() and
18133 * CurrencyManager.cs : check data_member validity when data_source
18134 is dataset. When it is late binding, the initial position is -1.
18136 2006-05-24 Jackson Harper <jackson@ximian.com>
18138 * TreeNodeCollection.cs: Dont't recalculate the visible order on
18139 inserted nodes that aren't visible. This changes the
18140 max_visible_order which confuses scrollbar settings.
18141 - Use the enumerator to get the prev node instead of duplicating
18143 * TreeView.cs: Use new method for setting scrollbar values
18144 - Don't set the bounds every time the scrollbar is updated
18145 - When updating below the root node use an invalidate instead of a
18146 refresh to prevent the child controls (scrollbars) from being
18147 refreshed. (UpdateBelow still needs to be reworked anyways).
18148 - Reenable SetBottom now that visible orders are set correctly,
18149 added some debug code incase we ever get bad values there again.
18150 - Set the scrollbar max to 2 less then the max value, this
18151 compensates for the max value being one above the node count, and
18152 for scrollbars adding one extra "notch".
18153 - When drawing image nodes if there is an imagelist we draw the
18154 first image in the list if the supplied image index is out of the
18155 image list's bounds.
18157 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18159 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
18160 we receive a size change from the WM (Fixes #78503)
18162 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18164 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
18165 rectangle (Fixes #78501)
18167 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
18170 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
18172 - Fixed MouseMove to no longer switch pressed state unless the left
18173 mouse button is pressed. Atsushi provided the original patch (#78485)
18175 2006-05-24 Jackson Harper <jackson@ximian.com>
18177 * ScrollBar.cs: New internal methods that allow us to change a
18178 couple values on the scrollbar (the most common case is maximum
18179 and large change) without getting multiple invalidates.
18181 2006-05-24 Chris Toshok <toshok@ximian.com>
18183 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
18184 (Edit): save off the original state in oldState, and set
18185 grid.is_editing to true.
18186 (OnKeyDown): abort editing if escape is pressed. also, call
18187 NextState if space is pressed.
18188 (OnMouseDown): call NextState.
18189 (NextState): factor out shared code from OnKeyDown and OnMouseDown
18190 here. Also, only invalidate the row header once (on the initial
18191 is_changing switch) to save on redraws.
18193 2006-05-24 Chris Toshok <toshok@ximian.com>
18195 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
18196 if the value in the cell is different than it was before. This
18197 keeps us from triggering a layout when we move around a datarid
18198 with a highlighted cell.
18199 (Edit): suspend layout when creating/positining the text box, and
18200 resume passing false so we don't ever actually re-layout.
18201 (ReleaseHostedControl): same.
18202 (EnsureTextBox): reformat slightly, and set WordWrap to false.
18204 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
18205 control-key sequences should go to the datagrid - remove that
18206 lock. Also, modify the conditions under which we move between
18207 cells when moving the cursor within a cell, and remove the "this"
18208 and "base" from field accesses. We weren't even consistent, given
18209 they all were in the base class.
18211 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
18213 * Binding.cs : (.ctor)
18214 An obvious NRE fix for BindingTest.CtorNullTest().
18216 2006-05-23 Chris Toshok <toshok@ximian.com>
18218 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
18219 them between lines. This fixes some quirks editing cells in the
18222 2006-05-23 Jackson Harper <jackson@ximian.com>
18224 * TreeView.cs: Use begin/end update when doing expand/collapse all
18225 so that we don't get flicker on the scrollbar.
18227 2006-05-23 Jackson Harper <jackson@ximian.com>
18229 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
18230 treenode calculations to be independant of the painting code. To
18231 do this nodes track a visible order which is calculated by the
18233 - Call new methods for expanding/collapsing nodes. These methods
18234 use scrollwindow so we don't have to update everything below the
18236 * TreeView.cs: Refactored drawing and scrolling code. We don't
18237 need to update nodes when drawing anymore or calculate scrollbar
18239 - Added new methods for expanding/collapsing nodes. These methods
18240 use ScrollWindow so as to not have to redraw all the nodes below.
18241 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
18242 we add/remove nodes or sort.
18243 - Handle removing the selected and the top node properly.
18245 2006-05-23 Chris Toshok <toshok@ximian.com>
18247 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
18248 maybe this should actually happen in the datagrid code?
18249 (EndEdit): no need to invalidate anything, given that
18250 ReleaseHostedControl causes the datagrid to relayout, which
18251 invalidates everything anyway.
18253 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
18254 in SetCurrentCell).
18255 (set_SelectionBackColor): call InvalidateSelection instead of
18257 (set_SelectionForeColor): same.
18258 (BeginEdit): Flesh this out a bit.
18259 (CancelEditing): only do any of this if we're editing/adding.
18261 (OnMouseDown): there's no need to cancel editing here, it's done
18263 (SetCurrentCell): only invalidate the current row header if it's a
18264 different row than the new one.
18265 (ShiftSelection): fix this to work like MS does.
18266 (ResetSelection): factor out the invalidation of selected_rows to
18267 InvalidateSelection.
18268 (SetDataSource): cancel any editing that's going on.
18270 * DataGridColumnStyle.cs
18271 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
18272 call the non-interface version.
18274 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
18275 header rectangle with the clip rectangle so we don't redraw the
18276 entire header for just a small area. Gets rid of the last flicker
18277 when horizontally scrolling.
18278 (DataGridPaintRow): same.
18280 2006-05-23 Mike Kestner <mkestner@novell.com>
18282 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
18283 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
18284 poorly placed checkbox on the MS control. Fixes Alex's unfiled
18285 Critical bug report.
18287 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
18289 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
18290 and this fixes #78493
18292 2006-05-23 Miguel de Icaza <miguel@novell.com>
18294 * Theme.cs (GetSizedResourceImage): Scale images if the proper
18297 * FileDialog.cs: Do not change the background for the side bar as
18298 it wont work nicely with the theme, and also reduces the artifacts
18299 in rendering the icons (which I want to fix too).
18301 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
18302 resources, not resgen resources.
18304 (PlatformDefaultHandler): Pull images using the new API.
18306 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
18308 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
18309 a reference to the hwnd and will not remove it unless there are
18310 no pending exposures (fixes #78341)
18311 * XplatUI.cs: Improved debug
18313 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
18315 * MenuAPI.cs : don't handle OnClick event when it was not the left
18316 button. Fixed bug #78487.
18318 2006-05-23 Mike Kestner <mkestner@novell.com>
18320 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
18321 prefer submenus to the top menu for item lookup, to avoid popping down
18324 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
18326 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
18327 Graphics.FillRectangle as the visual results are really bad (even
18328 on win). We now draw perfect arrows (and perfect shadows when the
18329 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
18330 Pen.DashPattern to draw the dots of each line.
18332 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
18334 * FileDialog.cs: Update the filename combobox when navigating through
18335 the ListView with the cursor keys. Fixes part 7 of bug #78446.
18337 2006-05-22 Mike Kestner <mkestner@novell.com>
18339 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
18342 2006-05-22 Mike Kestner <mkestner@novell.com>
18344 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
18345 requests. Fix a misspelled parameter and a copy paste exception error
18348 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
18350 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
18351 to get the same width/height (5/13) on X11 as the default font has on
18352 win32. This means that our DefaultFont emSize is smaller than the
18353 the MS SWF equivalent (even thought the width/height stays the same)
18355 2006-05-20 Jackson Harper <jackson@ximian.com>
18358 * MdiWindowManager.cs:
18359 * InternalWindowManager.cs: Make sure to use the border width from
18362 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
18364 * PrintDialog.cs: Implements printer details
18366 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
18368 * FileDialog.cs: Added focus handling for PopupButtonPanel.
18369 Fixes part 1 and 2 of bug #78446
18371 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
18373 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
18374 instead of sticking to the first ever calculated value
18376 2006-05-19 Mike Kestner <mkestner@novell.com>
18378 * ComboBox.cs: fix mouse motion selection to use MousePosition and
18379 PointToClient, since Capture is set. Fixes #78344.
18381 2006-05-19 Mike Kestner <mkestner@novell.com>
18383 * ListView.cs: match MS behavior in Details view where items are not
18384 drawn if Columns.Count == 0.
18385 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
18386 Use a separate pen to draw the check, since changing the width affects
18387 the box as well. Fixes #78454.
18389 2006-05-18 Miguel de Icaza <miguel@novell.com>
18391 * ListView.cs: ArgumentOutOfRangeException, single versions of the
18392 exception should throw the name of the invalid argument.
18394 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
18395 there are no files listed.
18397 2006-05-18 Jackson Harper <jackson@ximian.com>
18399 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
18402 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18404 * Control.cs: Brought back our old UpdateZOrder method as a private
18405 function and switched our calls from UpdateZOrder to the new one.
18406 This fixes the Paint.Net canvas disappearing bug.
18408 2006-05-18 Jackson Harper <jackson@ximian.com>
18411 * ThemeWin32Classic.cs:
18412 * InternalWindowManager.cs: Move the drawing into the theme,
18413 expose everything the theme should need from the window manager.
18415 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18417 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
18418 from the call to NativeWindow to avoid walking up the parent chain
18419 further than needed (speeds up setting cursors and avoids setting
18420 the wrong cursor if a parent has another cursor defined)
18421 * Cursor.cs: When loading an icon as cursor, MS uses the center of
18422 the icon as hotspot, not what's contained as hotspot in the icon
18423 file. This fixes the perceived drawing offset seen with Paint.Net
18425 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18428 - Store the calculated rectangle in Hwnd object and use it when
18429 setting the client size
18430 - Force Toolwindows to always be type Dock, to ensure they're on top
18432 2006-05-18 Mike Kestner <mkestner@novell.com>
18434 * ComboBox.cs: first pass at ComboBox rework. Layout is more
18435 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
18436 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
18437 Substantial refactoring to remove confusing nested classes. Coding
18438 standard and Get+Set->property refactorings. Shift to index based
18439 highlighting in ComboListBox instead of constantly using IndexOf and
18440 Items[]. Add invalidations on resize for DropDownList to fix ugliness
18441 in FileDialog growth. Draw borders manually since Simple mode needs
18442 to look like two independent controls. Make listbox border
18443 conditional to DropDownStyle. Improved OwnerDraw support.
18445 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
18447 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
18448 Don't set the disposed graphics to null, so we can throw the "right"
18449 exception if the graphics is reused later (added a flag to avoid
18450 double disposing). Some behaviours are different under 2.0 and are
18451 filled under bug #78448.
18453 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
18455 * Control.cs: When double-buffering is enabled, we need to reset
18456 our graphics context between paint calls. Otherwise, any
18457 transformations and other alterations on the context will
18458 become cumulative (#77734)
18460 2006-05-18 Mike Kestner <mkestner@novell.com>
18462 * ListView.cs: do focused item selection like MS on clicks.
18463 Rework focus handling for ItemControl so LostFocus invalidates as
18465 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
18466 the ListView ItemControl has focus.
18468 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
18470 * XplatUIX11.cs: If client_window ends up being width or height zero
18471 due to border settings, move it off window inside whole_window (#78433)
18473 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
18475 * Mime.cs: Shrink the mime file cache correctly.
18477 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
18479 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
18481 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18483 * XplatUIX11.cs (AddExpose): More sanity checks
18485 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18488 - AddExpose: Don't add expose ranges outside the size of our
18490 - Cast opacity values to Int32 to avoid crashes with certain
18492 - Added disabled code paths that protect against illegal cross-
18493 thread painting (Developers.exe)
18495 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18497 * ProgressBar.cs: Invalidate the control when it's resized
18498 since block size is based on control size. (#78388)
18500 2006-05-16 Miguel de Icaza <miguel@novell.com>
18502 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
18503 of setting the incoming argument to the "reset" value, we set the
18504 this.datamember to string.empty (before we were invalidating the
18509 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18511 * Form.cs: Only apply transparency settings after the form
18512 is created. (Fixes #77800)
18514 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18516 * ApplicationContext.cs: Grab the HandleDestroyed event so
18517 we know when to fire OnMainFormClosed
18519 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18521 * Application.cs: Introduced sub-class to allow tracking of
18522 threads and centralized triggering of the event mess for
18523 ThreadExit, AppExit, etc.. (#76156)
18525 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
18528 - Do not return a null icon index value for a mime subclass.
18529 Instead try the main mime type class too.
18530 - Seems that some newer distributions don't have a link to some
18531 gnome default icons anymore. So check the default gnome dir too.
18534 2006-05-16 Jackson Harper <jackson@ximian.com>
18536 * MdiClient.cs: Don't paint the parent background image if we have
18537 our own background image.
18539 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
18542 - PerformLayout: Do not shrink space filled by DockStyle.Fill
18543 controls, all filled controls are supposed to overlap (#78080)
18544 - UpdateZOrder is supposed to update the control's z-order in the
18545 parent's z-order chain. Fixed to behave like that
18546 - BringToFront: Removed obsolete code
18547 - SendToBack: Simplyfied
18548 - SetChildIndex: Trigger layout calculations when Z-order changes
18549 since layout is done by z-order
18551 2006-05-16 Chris Toshok <toshok@ximian.com>
18553 [ fixes bug #78410 ]
18554 * DataGrid.cs (set_AlternatingBackColor): use
18555 grid_drawing.InvalidateCells instead of Refresh().
18556 (set_BackColor): call grid_drawing.InvalidateCells.
18557 (set_BackgroundColor): use Invalidate instead of Refresh.
18559 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
18560 invalidate the cell area.
18562 2006-05-15 Chris Toshok <toshok@ximian.com>
18564 [ fixes bug #78011 ]
18565 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
18566 on to DataGridPaintRow.
18567 (DataGridPaintRow): take a clip argument, and only draw the cells
18568 which intersect it. same with the not_usedarea.
18570 * Theme.cs (DataGridPaintRow) add @clip parameter.
18572 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
18573 XplatUI.ScrollWindow.
18574 (ScrollToRow): same.
18576 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
18577 with last column which was causing a gray swath to appear with the
18578 XplatUI.ScrollWindow code.
18580 2006-05-15 Chris Toshok <toshok@ximian.com>
18582 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
18583 use XplatUI.ScrollWindow.
18584 (VerticalScrollEvent): use XplatUI.ScrollWindow.
18586 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18588 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
18590 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18592 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
18593 file since there are no equivalent X11 cursors
18595 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
18597 * MonthCalendar.cs : DateTimePicker should reflect selected date
18598 on mouse*up*, not mouse*down*. Fixed originally reported part of
18601 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
18603 * TabControl.cs : When argument index is equal or more than tab
18604 count, just ignore. Fixed bug #78395.
18606 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
18608 * Control.cs: Dispose all child controls when control is diposed (#78394)
18610 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18612 * ColorDialog.cs: Finally it is possible to select the color with
18615 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18617 * PrintDialog.cs: Fix typo
18619 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
18621 * PrintDialog.cs: PrintDialog is not resizable
18622 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
18623 color. Made some ToolBar drawing methods protected virtual.
18625 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
18627 * PrintDialog.cs: Implementation of the PrintDialog
18629 2006-05-12 Chris Toshok <toshok@ximian.com>
18631 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
18632 thumb, instead use MoveThumb. This has the side effect of making
18633 most of the other thumb moving machinery use MoveThumb as well.
18634 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
18635 need to actually invalidate the rectangle where the new thumb will
18637 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
18638 We force an Update() after, so it's not as fast as it could be,
18639 but at least there's zero flicker and no droppings.
18640 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
18641 (UpdateThumbPos): add another argument (dirty), which says whether
18642 or not to calculate/add dirty regions which we later invalidate.
18643 For cases where we know we're going to use MoveThumb, we pass
18644 false for this. Otherwise, pass true.
18646 2006-05-12 Jackson Harper <jackson@ximian.com>
18648 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
18651 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
18653 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
18654 and GetClipRegion methods and UserClipWontExposeParent property.
18655 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
18656 overriding UserClipWontExposeParent property, setting to false, since
18657 Win32 handles the required expose messages to draw our clipped parent
18659 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
18660 PaintEventStart to set the user clip region if set.
18662 - Now internally tracking the Region for the control since we need to
18663 store it if the handle is not yet created and only set it when it
18664 becomes created. Before setting the region forced handle creation
18665 - Added code to draw the parents underneath a user-clipped region
18666 * Hwnd.cs: Added UserClip property
18668 2006-05-12 Chris Toshok <toshok@ximian.com>
18670 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
18671 (set_Maximum): same.
18672 (set_Minimum): same.
18673 (set_SmallChange): same.
18674 (OnMouseUpSB): remove the call to refresh when releasing the
18675 thumb. We shouldn't need it.
18677 2006-05-12 Miguel de Icaza <miguel@novell.com>
18679 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
18680 AutoSize set to None, we do not need to relayout everything, we
18681 just need to invalidate the current region.
18683 (Draw): Do not draw the entire ClientArea, just redraw the
18684 clip area being passed.
18686 * MdiClient.cs: Make MdiClient constructor with the Form argument
18689 2006-05-12 Jackson Harper <jackson@ximian.com>
18691 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
18692 parents background image, but strangely not their own.
18693 - (DrawStatusBarPanel): Take into account horizontal alignment
18694 when drawing the strings and icons.
18696 2006-05-12 Mike Kestner <mkestner@novell.com>
18698 * ListBox.cs: avoid invalidations for focus when the collection is
18701 2006-05-12 Chris Toshok <toshok@ximian.com>
18703 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
18704 invalidate the entire thumb area. Call InvalidateDirty which
18705 limits the redraw to the thumb itself and surrounding pixels.
18707 * XplatUIX11.cs (ScrollWindow): optimize copying.
18709 2006-05-12 Chris Toshok <toshok@ximian.com>
18711 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
18712 Figure out the positioning/layout in a single pass instead of
18713 multiple recursive invocations. Speeds up the initial display of
18714 the data grid. Also, make many things private that were
18715 originally public but unused outside this class.
18717 2006-05-11 Jackson Harper <jackson@ximian.com>
18719 * MdiClient.cs: Improved layout code.
18721 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
18723 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
18724 not SelectedObject.
18726 2006-05-11 Chris Toshok <toshok@ximian.com>
18728 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
18729 union of that will always be {0,0,width,height}.
18731 2006-05-11 Jackson Harper <jackson@ximian.com>
18733 * Form.cs: Match MS's DefaultSize for forms (they must have
18734 changed the size in sp2).
18736 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
18738 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
18740 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
18742 * TextControl.cs : Fixed bug #78109. This incorrect position
18743 comparison caused crash on automatic line split.
18744 * TextBoxBase.cs : reduce duplicate code.
18746 2006-05-10 Jackson Harper <jackson@ximian.com>
18748 * MdiClient.cs: Active form is only sent to the back when using
18749 the Next form functionality, when a form is clicked the current
18750 active shouldn't be sent to the back.
18751 - Layout the mdi windows when the container is first made visible.
18752 * Form.cs: Give the MdiClient a ref to the containing form when we
18755 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
18757 * LinkLabel.cs : link_font could be uninitialized, so populate one
18758 before actual use. Fixed bug #78340.
18760 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
18762 * XplatUIX11.cs : clipboard format native value is IntPtr.
18765 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18768 - Instead of showing context menus directly we send WM_CONTEXTMENU,
18769 which is passed up the parent chain by DefWndProc
18770 - We now handle WM_CONTEXTMENU to display any menu, or pass it
18771 to DefWndProc (#77956)
18772 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
18774 2006-05-10 Jackson Harper <jackson@ximian.com>
18776 * MdiClient.cs: We need to remove the controls from the mdi
18777 collection, when we close the window.
18778 * MdiWindowManager.cs: Special handling of closing mdi windows.
18779 * InternalWindowManager.cs: Make the close method virtual so the
18780 mdi window manager can handle it specially.
18782 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
18785 - Recalculate grid when the data source has changed
18786 - Matches styles provided by user from all data sources types
18787 * DataGridTableStyle.cs: For columns that provided by the user set the
18788 with the preferred value is there was unassigned.
18789 * CurrencyManager.cs: throw OnItemChanged event
18791 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18793 * PictureBox.cs: Don't animate until handle is created. Start animation
18794 when handle is created.
18796 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18798 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
18800 * XEventQueue.cs: We don't need to provide the extra info
18802 2006-05-10 Jackson Harper <jackson@ximian.com>
18804 * MdiClient.cs: If the mdi clients parent form has a background
18805 image set, we draw that background image for the mdi area's
18808 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
18810 * TextBoxBase.cs: Set IBeam cursor (#78347)
18812 2006-05-10 Mike Kestner <mkestner@novell.com>
18814 * ToolBar.cs: fix some text padding issues with ButtonSize
18815 calculation. Update the default size to match MS documentation.
18816 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
18817 button size. Fixes #78296.
18819 2006-05-10 Mike Kestner <mkestner@novell.com>
18821 * ListBox.cs: use is_visible for scrollbar positioning in case the
18822 control isn't on screen yet. Fix off by one with Right vs Width
18823 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
18825 2006-05-10 Jackson Harper <jackson@ximian.com>
18827 * X11Dnd.cs: Drop to a control with another control on top of it.
18828 * ToolBar.cs: Work on a copy of the buttons list, so that it can
18829 be modified in click handlers. TODO: Look for similar problems in
18832 2006-05-09 Jackson Harper <jackson@ximian.com>
18834 * Form.cs: Window managers need the old window state when setting
18836 * InternalWindowManager.cs: Allow the base mdi window manager to
18837 handle more of the MDI only stuff (like maximize buttons).
18838 * MdiWindowManager.cs: Fix some snafus in changing the window
18839 state. Add all the menu functionality, for both popup and
18841 * MdiClient.cs: When a new form is selected the currently
18842 activated form is sent to the back, this matches MS.
18843 - Implement a new method to activate the next mdi child window.
18845 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
18848 - Added new InternalCapture method to allow controls to prevent
18849 the capture behaviour on the click handlers
18850 - Switched to use InternalCapture
18852 - Using InternalCapture to prevent mouse captures from being released
18853 on mouse button release (Fixes #78100)
18854 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
18855 returns Form borders if a caption is present. (Fixes #78310)
18857 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
18859 * TreeNode.cs: Changed serialization .ctor to not require every field
18860 to be present. (#78265)
18861 * OwnerDrawPropertyBag.cs: Added serialization .ctor
18863 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
18865 * MimeIcon.cs: for is faster than foreach for strings.
18867 2006-05-05 Mike Kestner <mkestner@novell.com>
18869 * CheckedListBox.cs: update check handling code to not use selected.
18870 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
18871 behavior for visual feedback, motion response, shift/ctrl handling,
18872 and properly deal with all 4 selection modes. Updates to bounds
18873 handling logic. Add scroll wheel support. [Fixes #77842]
18875 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
18878 - Moved adding of Implicit controls into .ctor. That way, subsequent
18879 creation of the controls will not cause them to think they are
18880 toplevel windows (fixes #78200 header problem)
18881 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
18882 - Switched visibility setting of header control to use internal field
18883 to avoid triggering handle creation
18884 - Now checking if handle is created before causing a refresh when items
18885 are added (This makes us now match handle creation time with MS)
18886 * Splitter.cs: Removed loading of private splitter cursor, switched to
18887 Cursors version now that that is loading the right ones
18888 * Cursors.cs: Load proper splitter cursors from resources
18889 * Cursor.cs: Added second method of loading resource cursors for the
18890 VS.Net users amongst us
18892 2006-05-05 Mike Kestner <mkestner@novell.com>
18894 * ListView.cs: give header_control a minimum size based on the
18897 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
18899 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
18900 window seems to do that with metacity, so set that type. (#78120)
18902 2006-05-05 Mike Kestner <mkestner@novell.com>
18904 * ListViewItem.cs: fix Details mode checkbox layout bug.
18905 * ThemeWin32Classic.cs: draw a ListView column header for unused space
18906 at the end of the header, if it exists. [Fixes for #78200]
18908 2006-05-04 Jackson Harper <jackson@ximian.com>
18910 * MdiClient.cs: Add a helper property to get the container form.
18911 * MdiWindowManager.cs: We have to make sure to use the menu origin
18912 when drawing the icons and buttons, this fixes maximized window
18913 icons/buttons on win32.
18914 * InternalWindowManager.cs: Reset the restore captions when a
18915 window goes from Maximized to Minimized and vice versa. Move the
18916 DrawMaximizedButtons into the MdiWindowManager source, tool
18917 windows can't be maximized. NOTE: This could use a little
18918 refactoring if time ever permits.
18920 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
18922 * TextBox.cs: Add MWFCategoryAttributes
18923 * TextBoxBase.cs: Add MWFCategoryAttributes
18924 * Form.cs: Add MWFCategoryAttributes
18926 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
18928 * Control.cs: Add MWFCategoryAttributes
18929 * ScrollableControl.cs: Add MWFCategoryAttributes
18931 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
18933 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
18934 Divider is true. Fix a little glitch in PropertyToolBar
18937 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
18940 - Dispose: Call base.Dispose, this causes the disposed event
18941 to be fired (and probably other, more important stuff)
18942 - SetVisibleCore: Set is_visible to true after creating the
18943 window so that the window still gets created invisible (if
18944 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
18945 to generate a WM_ACTIVE message
18946 * Form.cs: Call Dispose when we want to destroy the window, instead of
18947 just destroying the handle (Dispose will do that for us)
18949 - RootWindow also needs a queue, so we can properly process the
18950 property change events from RootWindow (like Activate)
18951 - Generatic synthetic WM_ACTIVE message when the active window is
18954 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18956 * LinkLabel.cs: Trigger a recalc of our label dimensions when
18959 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18961 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
18962 for determining width and height (image might not be assigned if
18963 we're drawing an imagelist)
18965 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
18967 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
18968 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
18970 * Theme.cs: No longer returns hardcoded menu height, instead calls
18972 * Form.cs (OnLoad): Scaling happens before triggering Load events
18975 2006-05-01 Mike Kestner <mkestner@novell.com>
18977 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
18979 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
18981 * TextBoxBase.cs: Removed Fixme
18982 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
18984 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
18987 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
18988 the rectangle relative to the parent, considering borders. We
18989 don't really want that.
18990 - ScrollWindow: Fixed warning to be more understandable
18991 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
18992 scrollbars and scroll only the visible area
18993 * RichTextBox.cs: Removed debug output
18995 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
18997 * NumericUpDown.cs (Text): Just use base
18998 * UpDownBase.cs: Ensure txtView is created before using it
19000 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
19002 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
19003 casting to IntPtr to avoid 64bit overflow errors
19005 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
19008 - AllowDrop: Don't force handle creation.
19009 - CreateHandle: Added call to tell driver if we're allowed to drop
19011 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
19013 * FileDialog.cs: Remember the last directory not only for the
19014 current instance but also for new FileDialog instances.
19016 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
19018 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
19019 broke sending async messages
19021 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
19024 - ScrollWindow: Fixed method. We finally generate expose events again
19025 for scrolled areas. This was causing 'garbage' when scrolling
19026 textbox and other controls that used ScrollWindow
19027 - Switched from using the regular queue for paint events to the MS
19028 model of 'generating' paint events when the queue is empty.
19029 We use the new XQueueEvent.Paint subclass to store which windows
19031 - AddExpose now takes the x/y/width/height of the exposed area
19032 and inserts the window into the paint queue if not already there
19033 - InvalidateWholeWindow: Switched to use new AddExpose method
19034 - UpdateMessageQueue: Added which queue to monitor for paint events
19035 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
19036 the unlikely case nothing above handles it. We reset the expose
19037 pending states to get them off the queue.
19038 - GetMessage: Now pulls a paint event if no other events are in the
19040 - Invalidate: Switched to new AddExpose method
19041 - PeekMessage: Updated to understand pending paint events
19042 - UpdateWindow: Fixed logic bug. We were only updating if the window
19043 didn't need updating. Also switched to sending WM_PAINT directly,
19045 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
19046 and random access Remove(). The random access is needed to handle
19047 UpdateWindow() where a WM_PAINT is sent directly without accessing
19049 * ScrollBar.cs: Added Update() calls to cause immediate updates to
19050 allow for better feedback when scrolling. Scrollbars are small and
19051 the immediate update should make it 'feel' more responsive without
19052 slowing things down. ScrollBar still needs it's invaliate logic
19053 updated to not always invalidate the whole bar on certain changes.
19055 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19058 (BackColor): if the control does not support a transparent background,
19059 return the default backcolor when the parent backcolor is transparent.
19061 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
19063 * Application.cs: Updated to new StartLoop/GetMessage API
19064 * RichTextBox.cs: Provide some output on RTF parsing errors
19065 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
19066 new queue_id argument to GetMessage and PeekMessage to allow faster
19067 handling of per-thread queues in drivers.
19068 * Hwnd.cs: Added Queue tracking and property
19069 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
19070 * XEventQueue.cs: Added thread trackingA
19071 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
19073 - Implemented new per-thread queue
19074 - GetMessage: Fixed return/break behaviour on several cases. We were
19075 returning stale messages in some cases, instead of just processing
19078 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
19080 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
19082 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
19084 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
19085 fixed off-by-one comparisons between Width/Height and Right/Bottom.
19087 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
19089 * PropertyGridView.cs: Fix drop down width.
19091 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
19093 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
19094 a mess in DrawToolBar, so I removed one of them.
19096 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
19098 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
19099 needed (clip). Otherwise we get artifacts.
19101 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19103 * FixedSizeTextBox.cs: Added constructor to allow specifying which
19105 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
19106 and switched FixedSizeTextBox to only be fixed vertical (#78116)
19107 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
19108 if it matches the scale base font (avoids unneeded scaling)
19110 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
19112 * X11DesktopColors.cs: One gtk_init_check should be enough
19114 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19116 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
19119 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
19122 - Generate OnTextChanged for Backspace even if we're only deleting
19123 the current selection
19124 - When setting the Text property, only select all text if the
19125 control does not have focus when it is being set. Otherwise
19126 just place the cursor at the beginning of the control
19128 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
19130 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
19131 Added a little helper to draw PropertyGrid ToolBar with a different
19132 border and a different BackColor.
19133 * PropertyGrid.cs: Some background parts didn't get painted with the
19134 correct background color. Added a class that helps us to draw the
19135 correct border for PropertyGridView and a class that helps us to
19136 draw ToolBars with a different backcolor
19137 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
19139 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
19141 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
19142 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
19144 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19146 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
19147 into the palette entries. Also, since we're working on a copy
19148 we needed to copy the palette back onto the bitmap.
19149 * Cursor.cs: Same fix as XplatUIWin32.cs.
19151 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19153 * ImageListStreamer.cs: Need to read the var (or we're off)
19155 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
19157 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
19158 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
19159 TextBoxBase.cs: Unused var fixes
19160 * AxHost.cs: Small 2.0 fix
19161 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
19162 as it seems that is what at least Metacity expects. This will make
19163 icons show up on 64bit platforms. We still have some 64bit size
19164 issues, though, since the startup app window size still won't match.
19166 2006-04-25 Mike Kestner <mkestner@novell.com>
19168 * *.cs: cleanup newly reported exception var unused warnings.
19170 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19172 * ThemeWin32Classic.cs: Button image alignment now matches exactly
19175 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19177 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
19178 image. The image position is always the same, no matter if the
19179 button is pressed or not.
19181 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
19183 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
19184 selection and set the correct filename for SaveFileDialog.
19185 Patch by Emery Conrad.
19187 2006-04-24 Mike Kestner <mkestner@novell.com>
19189 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
19190 check for item.X outside the ClientRect instead of item.Y. Fixes
19193 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19195 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
19196 trust that value blindly and do some sanity check. Fixes bug #77814.
19198 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19200 * ImageListStreamer.cs: save the mask as a 1bpp image.
19202 2006-04-21 Mike Kestner <mkestner@novell.com>
19204 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
19205 pass Checked and Indeterminate to the Theme Engine. Improve
19206 encapsulation with ListBox.
19207 * ListBox.cs: Keep a StringFormat instead of calculating it every item
19208 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
19209 nested types. Move all CheckState functionality to CheckedListBox.
19210 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
19211 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
19212 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
19213 single base list. Fix scrollbar sizing and placement to mirror MS.
19214 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
19216 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
19217 for CheckedListBox by using new DrawItemState info. Center the
19218 checkboxes on the items. Use new StringFormat property.
19220 2006-04-18 Jackson Harper <jackson@ximian.com>
19222 * Form.cs: MdiChildren don't do default locations the same way as
19223 regular forms. This prevents a crash when trying to position the
19226 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
19228 * PropertyGridTextBox.cs: Formatting, copyright
19229 * PropertiesTab.cs: Formatting
19230 * PropertyGrid.cs: Formatting
19231 * PropertyGridView.cs: Formatting, fix drop down, enabled double
19232 click toggling of values
19234 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
19236 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
19237 * Control.cs (.ctor): verify_thread_handle is static, don't reset
19238 every time a control is created
19239 * Application.cs: Removed obsolete EnableRTLMirroring method
19241 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
19243 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
19244 SelectedIndex to -1. Fixes bug #78121.
19246 2006-04-17 Jackson Harper <jackson@ximian.com>
19248 * Binding.cs: Handle null values for Current and BindingContext.
19249 This occurs when binding is a little delayed.
19250 * CurrencyManager.cs: return null for Current when there are no
19252 - Hookup to the listchanged event on the DataView and update
19253 bindings when the list is changed. This fixes late binding of
19256 2006-04-17 Jackson Harper <jackson@ximian.com>
19259 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
19262 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
19264 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
19266 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
19267 with the correct ButtonState
19269 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
19271 * XplatUIX11.cs: Improved distinguishing between window types to
19272 tell the WM a type closer to what the app wants (Fixes #78107)
19274 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
19276 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
19279 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
19281 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
19282 drawing code to reflect the size grip changes
19284 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19286 * ImageListStreamer.cs: fix handling of the mask that follows the main
19287 bitmap when deserializing and serialize it properly. The generated mask
19288 should better be a 1bpp image, but I'll do that later.
19290 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
19292 * FileDialog.cs: Show something in the DirComboBox on *nix if the
19293 path doesn't fit into some of our Current.Places
19295 2006-04-13 Jackson Harper <jackson@ximian.com>
19297 * ComboBox.cs: Use borders instead of drawing our own decorations,
19298 try to obey correct rules for heights.
19301 * ThemeClearLooks.cs:
19302 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
19303 this is now handled by borders.
19304 - Remove unused DrawListBoxDecorationSize method.
19306 2006-04-13 Mike Kestner <mkestner@novell.com>
19308 * MenuAPI.cs: null guarding for the disbled click check fixes crash
19311 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
19313 * ThemeWin32Classic.cs:
19314 - Fixed CPDrawStringDisabled
19315 - Corrected drawing of disabled menu items
19316 - Fixed drawing of disabled radio buttons (bug #78095)
19317 - Draw check in a disabled CheckBox with color ControlDark
19319 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19321 * Form.cs: Use the provided width when calculating the menu size;
19322 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
19323 and ClientSize.Width won't be updated yet
19324 * Application.cs: Use Visible instead of Show() to make form visible,
19325 this way we create the handle later and menusize is considered
19327 2006-04-12 Mike Kestner <mkestner@novell.com>
19329 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
19332 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19334 * TextBox.cs: Implemented context menu
19336 2006-04-12 Mike Kestner <mkestner@novell.com>
19338 * ListView.cs: implement box selection. fixes #77838.
19339 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
19341 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19343 * XplatUIX11.cs: Added setting of window type when transient window
19344 is created (metacity would move it otherwise)
19345 * X11Structs.cs: Added WINDOW_TYPE atoms
19346 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
19347 background (the control is Opaque but still wants transparent
19350 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19352 * Control.cs: Added OnPaintBackgroundInternal to allow controls
19353 that set Opaque but don't mean it (like all ButtonBase-derived
19354 controls) to still draw their background
19355 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
19358 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19360 * Control.cs (PaintControlBackground): Set the graphics object
19361 on our PaintEvent to null to prevent it from being disposed
19362 when the PaintEvent gets disposed
19364 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
19366 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
19367 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
19369 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
19372 - Added transparency check to BackColor property. Transparent
19373 backgrounds are only allowed if the control styles permit it
19374 - Added recursive painting of parent control background and
19375 foreground if a control with a transparent backcolor is drawn
19376 (Thanks to Tim Ringenback for providing his 'hack' as a base
19377 for this patch) Fixes #77985 and #78026.
19378 - Added Opaque style check before calling OnPaintBackground, no
19379 need to draw the background if the control is opaque
19380 - Removed ControlAccessibleObject owner variable (inherited from
19381 base, no need to define again)
19382 - Added some documentation links explaining the drawing events
19385 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19387 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
19388 that the affected control is the located at the left border of our
19389 parent (Fixes #77936)
19391 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19393 * TextBoxBase.cs: When rendering disabled or readonly controls,
19394 draw the background with 'Control' instead of 'Window' color as
19395 long as the user hasn't specifically set a color
19397 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19399 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
19400 since that won't be updated if the user types text (only if it's
19401 programatically set)
19403 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19405 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
19406 layout changes do to app-triggered resizes will have the proper
19407 display rectangle for layout
19409 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
19411 * ThemeWin32Classic.cs:
19412 - Make use of the SystemBrushes and SystemPens wherever possible
19413 - Corrected some highlight colors
19414 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
19416 * Theme.cs: Added Empty field to CPColor struct
19418 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
19420 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
19421 is displayed when calculating the display rectangle. Thanks to Mike
19422 for teaching me the err of my ways.
19424 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
19426 * ScrollableControl.cs:
19427 - Rewrote DisplayRectangle code, now returning the proper x/y coords
19428 (instead of 0,0) and we now return the real width/height instead of
19429 just the clientrectangle, adjusted for padding. The rectangle is
19430 now cached and created by the new CalculateDisplayRectangle method.
19431 - Created new CalculateDisplayRectange method, which basically does
19432 what get_DisplayRectangle() did originally, but now using the
19433 right edge instead of DisplayRectangle to determine the size of
19435 - get_Canvas(): Fixed it to properly calculate canvas for
19436 right/bottom controls which seem to be placed to the right/bottom
19437 of any controls that have a fixed location
19438 - Removed TODO that's taken care of
19439 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
19440 and SetDisplayRectLocation according to new MSDN2 docs
19441 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19442 event when that is called, this is added for compatibility
19443 - ScrollControlIntoView(): Implemented.
19444 - Switched scrollbars to be implicit, they shouldn't be selectable
19445 * ContainerControl: Now that ScrollControlIntoView is implemented, we
19446 call it when the active control is set/changed
19447 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
19448 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
19449 implicit_control variable (used for native Win32 message generation)
19450 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
19451 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
19452 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
19453 * XplatUIStructs.cs: Added ScrollBarCommands enum
19455 2006-04-10 Jackson Harper <jackson@ximian.com>
19458 * CheckedListBox.cs:
19465 * PrintPreviewControl.cs:
19471 * UpDownBase.cs: Fixup base event overrides.
19473 2006-04-06 Mike Kestner <mkestner@novell.com>
19475 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
19476 all user-initiated value changes to min <= value <= max-thumbsz+1.
19477 (set_Value): check for vert/horiz when calculating new thumb position.
19478 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
19480 (OnMouseMoveSB): refactor the thumb dragging code and refine
19481 invalidation logic to reduce flicker.
19482 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
19483 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
19484 (UpdateThumbPosition): small code readability cleanup
19486 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
19488 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
19491 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
19493 * ThemeNice.cs: Use a better graphics effect when a button is pressed
19495 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
19497 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
19498 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
19499 This dramatically reduces the number of Pen.Dispose calls.
19500 Where possible call ResPool methods only once instead of calling it
19501 over and over again (for example for the same color).
19503 2006-04-06 Mike Kestner <mkestner@novell.com>
19505 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
19506 Also remove an unused private field on the collection. Fixes #77972.
19508 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
19510 * ThemeNice.cs: Added ToolBar drawing code
19512 2006-04-06 Mike Kestner <mkestner@novell.com>
19514 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
19515 I'm assuming that means we need to look up the toplevel for the
19516 provided control. Fixes the crash trace in #77911 but exposes another
19517 crash in some strange reflection usage in NDocGui.
19519 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
19521 * ThemeNice.cs: Gave it a little silver touch and added Images
19523 * FontDialog.cs: FontDialog is not resizable
19524 * FileDialg.cs: Added SizeGripStyle.Show
19526 2006-04-05 Jackson Harper <jackson@ximian.com>
19528 * KeyboardLayouts.cs: Remove warning.
19530 2006-04-05 Jackson Harper <jackson@ximian.com>
19532 * Control.cs: Enable OnPaintInternal so we can use it for drawing
19533 all of our controls instead of Paint +=.
19548 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
19549 use OnPaintInternal. Remove Width/Height and Visible checks in
19550 paint handler, this is done at a higher level now.
19551 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
19552 * PaintEventArgs.cs: Add a handled flag so controls that don't
19553 want anymore painting after OnPaintInternal can make sure OnPaint
19556 2006-04-05 Mike Kestner <mkestner@novell.com>
19558 * Form.cs: fix the menu WndProc hacks to respect the native enabled
19559 state of the form, so that we don't process events when Modal dialogs
19560 are up. Fixes #77922.
19562 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
19564 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
19567 2006-04-05 Mike Kestner <mkestner@novell.com>
19569 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
19571 2006-04-05 Mike Kestner <mkestner@novell.com>
19573 * ListView.cs (HeaderMouseMove): null guarding for the over column
19574 when setting up the drag_to_index. Fixes #78015.
19576 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
19578 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
19579 in the taskbar. Transient windows seem to accomplish that.
19581 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
19584 - Re-enabled CreateParams.X/Y code for FormStartPosition
19585 - Added code for manual placement when creating the Control
19586 - Incomplete patch to treat MDI forms differently when
19587 setting the ClientSizeCore. (Still need to figure out handling
19590 - When we're explicitly setting the X/Y position of a non-Child
19591 window, let the WM know. Metacity really wants this.
19593 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19595 * ThemeNice.cs: Added CPDrawButton
19597 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19599 * ThemeNice.cs: Changed the color for focused buttons and activated
19600 the arrows for small scroll buttons.
19602 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
19604 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
19605 anymore. Changed some method modifiers to protected (virtual)
19606 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
19608 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
19609 Updated drawing of menus, buttons and progressbars; added
19612 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19614 * ImageListStreamer.cs: implemented serialization/deserialization
19617 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
19619 * ThemeWin32Classic.cs:
19620 - Removed all the DrawFrameControl stuff; CPDrawButton,
19621 CPDrawCheckBox and CPDrawRadioButton are now handled directly
19623 - Updated and corrected the drawing code of CPDrawButton,
19624 CPDrawCheckBox and CPDrawRadioButton to better match ms
19625 - Updated theme checkbox and radiobutton code to use the CP*
19628 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19630 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
19633 2006-03-31 Jackson Harper <jackson@ximian.com>
19635 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
19637 * UpDownBase.cs: Don't CreateGraphics manually, use a
19638 Refresh. Ideally we would invalidate the correct areas here.
19640 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19643 - We now track the mapping state of windows. If a window (or
19644 one of it's parents) is not mapped we no longer permit
19645 WM_PAINT messages to be generated since we'd otherwise get
19646 lots of BadMatch X errors. Jackson did all the work figuring
19648 - Destroying the caret if the window it's contained in is
19649 destroyed. Can't use regular DestroyCaret method since it
19650 might fall into a drawing function (trying to remove the
19651 caret) and with that generate new BadMatch errors. Again,
19652 Jackson tracked this down.
19653 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
19654 make sure we send the messages to all windows. (The old code
19655 would send the WM_DESTROY to the window, and then all child
19656 windows would be 'gone' because the WM_DESTROY handle lookup
19657 would no longer find the destroyed window)
19658 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
19659 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
19661 2006-03-31 Jackson Harper <jackson@ximian.com>
19663 * ScrollableControl.cs: Dont recalc if we are not visible.
19665 2006-03-31 Mike Kestner <mkestner@novell.com>
19667 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
19668 the visibility branch.
19670 2006-03-31 Jackson Harper <jackson@ximian.com>
19672 * ScrollBar.cs: Cap values when incrementing/decrementing.
19674 2006-03-31 Mike Kestner <mkestner@novell.com>
19676 * MenuAPI.cs: setup menu.tracker for popup/context menus.
19677 * ToolTip.cs: guard against timer expirations with no active control.
19678 Not sure why it happened.
19680 2006-03-31 Mike Kestner <mkestner@novell.com>
19682 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
19684 * ToolTip.cs: Position the tooltip based on where the cursor is at
19685 popup time, not at MouseEnter time. Add a Down state so that we don't
19686 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
19687 positioning offset. Lookup DisplaySize at positioning time, since it
19688 can theoretically change during invocation.
19689 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
19690 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
19692 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19694 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
19695 Fixes behaviour when the Text property of the box is String.Empty
19697 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
19699 * XplatUIX11.cs: Only send mouseleave for our client windows, not
19700 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
19703 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19705 * FileDialog.cs: Visual enhancement for the popup buttons in
19708 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
19710 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
19713 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
19715 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
19716 highlighted menu items to match ms
19718 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
19720 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
19722 2006-03-30 Mike Kestner <mkestner@novell.com>
19724 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
19725 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
19726 go active to account for HotLight to Selected transition.
19727 * MenuItem.cs: add internal Selected prop. Fill out the Status
19728 property by calculating it from item info. Add HotLight,
19729 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
19731 2006-03-30 Mike Kestner <mkestner@novell.com>
19733 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
19735 2006-03-29 Jackson Harper <jackson@ximian.com>
19737 * Form.cs: Implement TODO.
19739 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
19741 * PrintPreviewDialog.cs: Implemented missing methods and events; still
19742 missing proper dialog setup in the constructor
19744 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
19746 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
19748 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
19749 - Fixed ResetBindings and removed TODO
19750 - Added check for cross-thread calls to get_Handle()
19751 - Added Marshaller attribute for set_Font to satisfy class status
19752 * FontDialog.cs: Removed TODOs that seemed implemented
19753 * UpDownBase.cs: Removed unneeded TODO and Fixme
19754 * MessageBox.cs: Implemented support for Default button and removed TODO
19755 * FileDialog.cs: Removed obsolete TODO
19756 * DomainUpDown.cs: Removed obsolete TODO
19757 * ButtonBase.cs: Removed obsolete TODO
19758 * XplatUIWin32.cs: Removed obsolete TODO
19760 - Removed obsolete TODO
19761 - Calling CheckAcceptButton when the acceptbutton is changed to allow
19762 internal status updates
19763 - Making sure the active control is selected when the control is created
19764 * CurrencyManager.cs: Removed obsolete TODO
19766 2006-03-29 Mike Kestner <mkestner@novell.com>
19768 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
19769 of PrintPreviewDialog and RichTextBox.
19771 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
19773 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
19774 DarkDark, Light and LightLight colors for a specific color
19775 * ThemeWin32Classic.cs:
19776 - Use Button drawing code to draw RadioButtons and CheckBoxes with
19777 Appearance = Button
19778 - Make use of the new ResPool helper CPColor
19779 - Draw ProgressBar and StatusBar with correct 3D borders
19781 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
19783 * ColorDialog.cs: Return selected color. Fixes bug #77940.
19785 2006-03-28 Mike Kestner <mkestner@novell.com>
19787 * ListView.cs: fix Icon layout to plan for scrollbar widths when
19788 calculating col/row counts.
19790 2006-03-28 Mike Kestner <mkestner@novell.com>
19796 switch to explicit interface method implementation for some methods
19797 corcompare identifies as inconsistent with MS.
19799 2006-03-28 Mike Kestner <mkestner@novell.com>
19803 add a few missing methods from the class status output.
19805 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
19807 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
19810 2006-03-28 Mike Kestner <mkestner@novell.com>
19812 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
19814 2006-03-27 Mike Kestner <mkestner@novell.com>
19816 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
19817 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
19819 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
19821 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
19823 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19825 * ThemeWin32Classic.cs:
19826 - GroupBox: Inserted a little gap between the text and the lines
19828 - Made the code in CPDrawBorder3D more readable
19829 - Corrected the drawing location of the up and down arrows in
19832 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19834 * ControlPaint.cs: Corrected line widths in DrawBorder for
19835 ButtonBorderStyle Inset and Outset
19837 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19839 * ThemeWin32Classic.cs:
19840 - Rewrote the totally broken CPDrawBorder3D method. That was
19841 one of the main problems for the terrific ThemeWin32Classic
19843 - Updated and corrected Button drawing
19844 - Correct the dimensions of the SizeGrip to match ms ones
19845 - Removed a small drawing glitch in DrawComboBoxEditDecorations
19846 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
19847 Border3DStyle.Sunken to match ms.
19849 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
19851 * ThemeWin32Classic.cs: First small part of the "de-uglify
19852 ThemeWin32Classic" effort, SizeGrip
19854 2006-03-24 Jackson Harper <jackson@ximian.com>
19856 * XplatUIX11.cs: Give a max idle time of one second, this matches
19857 MS and forces an Idle event every second when there are no other
19858 events in the queue.
19860 2006-03-24 Mike Kestner <mkestner@novell.com>
19862 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
19863 * ListView.Item.cs: fix layout issues with null image lists and images
19864 smaller than checkbox size.
19865 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
19866 mode like MS does. It's weird, but consistent. ;-)
19869 2006-03-24 Mike Kestner <mkestner@novell.com>
19871 * ListView.cs: Scroll wheel support for the item control. Fixes
19874 2006-03-23 Jackson Harper <jackson@ximian.com>
19876 * ScrollableControl.cs: Special case negative sized areas, not
19878 * MonthCalendar.cs: Save the rect of the clicked date so we can
19879 use it for invalidation.
19880 - Try to cut down on the number of invalidates
19881 - Invalidate the rect the mouse is over and was over when moving
19882 the mouse, so we get the focus box following the cursor.
19884 2006-03-23 Mike Kestner <mkestner@novell.com>
19886 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
19887 focus rectangle drawing. Fixes #77835.
19889 2006-03-23 Mike Kestner <mkestner@novell.com>
19891 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
19892 the if and else if and reverting back to the original == check on the
19895 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
19897 * FontDialog.cs: Update the example panel if the selected index of
19898 the fontListBox changes.
19900 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
19902 * FileDialog.cs: Make FileDialog remember which directory it was in
19903 last in the same execution.
19905 2006-03-22 Mike Kestner <mkestner@novell.com>
19907 * FileDialog.cs: make the DropDownMenu on the toolbar display
19908 RadioChecks since they are mutually exclusive and that's what MS does.
19910 2006-03-22 Mike Kestner <mkestner@novell.com>
19912 * Theme.cs: add Color param to CPDrawMenuGlyph.
19913 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
19914 checks and radio marks and arrows are visible on highlighted items.
19915 * ControlPaint.cs: update to use new Theme signature.
19917 2006-03-22 Mike Kestner <mkestner@novell.com>
19919 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
19920 is active. Fixes #77870.
19922 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
19924 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
19925 to be focused/selected after startup
19927 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
19930 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
19931 CustomColors and ShowHelp properties
19932 - Some internal rewrites to get better results when using the
19935 2006-03-22 Mike Kestner <mkestner@novell.com>
19937 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
19938 HoverSelection. Fixes #77836.
19940 2006-03-22 Mike Kestner <mkestner@novell.com>
19942 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
19943 ToggleButtons. (De)Sensitize the Back button around a stack count of
19944 1, not 0. Update ButtonSize based on a pixel count of the win32
19945 control. Adjust the toolbar size/location for new button size.
19947 2006-03-22 Jackson Harper <jackson@ximian.com>
19949 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
19951 * ScrollBar.cs: When doing increments and decrements we need to
19952 set the Value property so that ValueChanged gets raised. A
19953 possible optimization here would be to make an internal SetValue
19954 that doesn't invalidate immediately.
19955 * ToolTip.cs: Tooltips get added to their container (when
19956 supplied) so they get disposed when the container is disposed.
19957 - Don't create tooltips for String.Empty. This prevents all these
19958 little 2-3 pixel windows from showing up when running nunit-gui
19959 and driving me mad.
19960 * Form.cs: Don't set topmost when setting the owner if the handles
19961 haven't been created yet. The topmost set will happen when the
19962 handles are created.
19964 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
19967 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
19968 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
19969 visible (to allow them to recalculate their sizes)
19971 2006-03-21 Mike Kestner <mkestner@novell.com>
19973 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
19974 methods. Removed a ton of redundant code. Still not really happy with
19975 the border rendering, but I think that's mainly because of the
19976 ControlDarkDark being black instead of a dark grey. Depending on how
19977 close we want to be, we might want to revisit those color choices.
19978 Among the new features added during the refactor were DropDownArrow
19979 pressed rendering, Disabled image rendering. Proper flat appearance
19980 boundary rendering. Removed the Divider and Wrapping dividers since I
19981 can't figure out any combination of themes and conditions to make the
19982 MS control draw a horizontal line on a toolbar despite what the
19983 Divider property docs indicate.
19984 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
19985 conditions and incorrect layout. Updated to coding standard.
19986 * ToolBarButton.cs: refactored layout and positioning code from
19987 ToolBar to here. Invalidate wherever possible instead of forcing
19988 redraws of the whole toolbar.
19989 (Known remaining issues: explicit ButtonSize smaller than provided
19992 2006-03-21 Mike Kestner <mkestner@novell.com>
19994 * ContextMenu.cs (Show): use the position parameter instead of just
19995 showing at the MousePosition.
19997 2006-03-21 Jackson Harper <jackson@ximian.com>
19999 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
20000 control handle this.
20001 * TreeNodeCollection.cs: If we are clearing the root node we need
20002 to reset top_node so calcs can still happen.
20003 * ThemeWin32Classic.cs: This is a Flags so we need to check
20006 2006-03-21 Jackson Harper <jackson@ximian.com>
20008 * DataGrid.cs: Create columns when the binding context has been
20010 * X11Structs.cs: Keysyms are uints.
20011 - Add size to fix build.
20013 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
20015 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
20017 - Added ResetMouseHover method to allow controls to retrigger
20018 hovering if they need it more than once
20019 - Implemented MouseHoverTime and MouseHoverSize properties
20020 * Timer.cs: Start() must reset the interval
20021 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
20024 2006-03-21 Jackson Harper <jackson@ximian.com>
20026 * X11Keyboard.cs: improved layout detection. Move the nonchar
20027 tables into this file.
20028 * KeyboardLayouts.cs: Move the tables into resource files.
20030 2006-03-21 Mike Kestner <mkestner@novell.com>
20032 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
20034 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
20036 * Mime.cs: Various speed optimizations. Looking up mime types
20037 is now 2 times faster than before
20039 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
20041 * CreateParams.cs: Added internal menu field
20043 - Switched call order for UpdateBounds; now we always call
20044 the one that also takes ClientSize, and we're calculating the
20045 client size via driver method in the others. The previous
20046 method of tracking client size by difference wasn't working
20047 for forms where even the starting client size wouldn't match
20048 the overall form size (due to borders) (Part of fix for #77729)
20049 - CreateParams(): Do not use parent.Handle unless the handle is
20050 already created. Causes havoc with Nexxia and throws off our
20051 creation of controls
20053 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
20054 - Switched handling of ConfigureNotify over to new PerformNCCalc
20055 method (consolidates code)
20056 - Changed RequestNCRecalc to use new PerformNCCalc method
20057 - Added calls to RequestNCRecalc when menus and borders are changed
20058 to allow app to set NC size. (Part of fix for #77729) This matches
20059 when MS send a WM_NCRECALC on Win32 windows.
20060 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
20061 (Part of fix for #77729). This matches what MS does, they also
20062 send that message when the form is made visible.
20063 - XException.GetMessage: Improved usability of X errors by including
20064 a translation of the window into Hwnd and Control class
20065 - Improved debug info for window creation, reparenting and destruction
20066 - Created helper method WindowIsMapped() [Currently not used]
20067 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
20069 - CreateParams: Now setting our menu on the new internal menu field
20070 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
20071 avoid calculating the same property twice
20073 - Improved usability of ToString() for debugging purposes
20074 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
20075 determine the height of the menu, instead of just the font. This
20076 required to also create a graphics context and to keep a bmp
20077 around (for performance reasons)
20079 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
20081 * MenuAPI.cs: Added OnMouseUp method
20083 - Now remembering the requested client size, avoids size errors
20084 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
20085 instead of base if the menu is active. This is required due to
20086 control now capturing and releasing on down/up and it would
20087 prematurely release our menu capture
20089 2006-03-17 Jackson Harper <jackson@ximian.com>
20091 * KeyboardLayouts.cs: Add the czech layouts.
20093 2006-03-16 Jackson Harper <jackson@ximian.com>
20095 * Control.cs: Use the viewport space when sizing not the controls
20096 client size, so things like ScrollableControl that effect the
20097 viewport size (when scrollbars are added) are computed correctly.
20098 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
20100 - Handle creating BindingManagers for null data sources.
20101 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
20102 source, otherwise when rows are added they are added to the 'fake'
20103 datasource and we will crash when trying to set the position in
20105 - Use Implicit scrollbars on the datagrid so they arent
20108 2006-03-16 Jackson Harper <jackson@ximian.com>
20111 * InternalWindowManager.cs:
20112 * MdiWindowManager.cs:
20113 * X11Keyboard.cs: I really want Mike to love me again (fix
20114 compiler warnings).
20116 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
20119 - OnMouseDown: Switch to editing mode when clicking on the cell
20120 even if we're clicking on the cell that's currently
20122 - ProcessGridKey: Left/Right now wrap like MS.Net does
20123 - ProcessGridKey: Tab now knows to add a new row when tab is
20124 pressed in the cell of the last column of the
20126 - ProcessGridKey: Enter now adds another row if pressed in the last
20127 row and selectes the new row, same column cell
20128 - ProcessGridKey: Home/End navigate columns, not rows, like
20129 originally implemented
20130 - Broke ProcessKeyPreview code out into an extra Internal method
20131 so it can be called from the edit code
20132 * DataGridTextBox.cs (ProcessKeyMessage):
20133 - Switched to accept Tab keypresses
20134 - Added F2 handling to allow jumping to the end of the edited cell
20135 - Added logic to allow moving caret left/right inside edited cell
20136 and making the edited cell jump when the caret hits cell borders
20137 - Tab and Enter are now passed to the datagrid after being handled
20139 - Removed capture code now that Control handles it
20140 - set_SelectionStart now ensures caret is visible
20142 2006-03-16 Jackson Harper <jackson@ximian.com>
20144 * TrackBar.cs: Debackwards the increment/decrement for handling
20145 mouse clicks on the bar with vertical trackbars.
20146 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
20147 bottom to match MS.
20149 2006-03-16 Mike Kestner <mkestner@novell.com>
20151 * ListView.cs: make shift/ctrl keyboard and mouse selection
20152 consistent with the MS control. Fix a bug in
20153 SelectedListViewItemCollection.Clear that was pissing me off for the
20154 better part of a day because the collection was being altered
20155 underneath us as we walked the list.
20157 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
20159 * Control.cs: Not sure how we could miss this so long, but it seems
20160 that MS.Net has Capture set all the way from before calling
20161 OnMouseDown through sending the mouse events until after
20162 OnMouseUp. This will fix DataGrid's selection being set to end
20163 at the location of the MouseUp.
20165 2006-03-15 Jackson Harper <jackson@ximian.com>
20167 * BindingContext.cs: Check the binding after its added so that it
20168 can initialize the binding managers and hookup to events.
20169 * Binding.cs: Data members seem to sometimes include rows/cols in
20170 the format Row.Column we now take this into account.
20171 - Hookup to the position changed event so we can update the
20172 control when the position has changed in the data set.
20173 * CurrencyManager.cs: Take into account the row/col naming
20174 convention when creating dataset tables.
20175 * BindingContext.cs: Using a newer better way of storing
20176 datasource/datamember pairs. Hopefully this better matches MS for
20177 looking up binding managers.
20180 2006-03-15 Jackson Harper <jackson@ximian.com>
20182 * BindingContext.cs: The currency manager needs the data member
20183 name, if the member is a data set we use the name to find the
20185 * CurrencyManager.cs: When creating the list prefer an IList over
20187 - Attempt to create a DataTable from a DataSet (TODO: might need
20188 some better error checking here, although MS doesn't seem to have much)
20189 - If we have a DataTable create a view and use it as our list.
20191 2006-03-15 Mike Kestner <mkestner@novell.com>
20193 * ListView.cs: keep a matrix of the icon mode layout to facilitate
20194 keyboard navigation. Support Up/Down/Left/Right selection correctly
20195 for all 4 View modes.
20196 * ListViewItem.cs: add internal row/col fields for icon layouts.
20198 2006-03-15 Jackson Harper <jackson@ximian.com>
20200 * TabControl.cs: Redraw the tabs when we resize so their newly
20201 calculated sizes are drawn on screen.
20202 * X11Keyboard.cs: Begginnings of XIM support. We also now support
20203 composite characters.
20204 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
20205 - filter events so that composite characters can be created
20207 * X11Structs.cs: Add XIMProperties enum.
20209 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20211 * Control.cs (BringToFront, SendToBack): Don't use window or handle
20212 unless it's created
20214 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20216 * Control.cs (PerformLayout): We don't need to consider visiblity
20217 for anchoring, only for docking. This fixes 'whacky' alignment
20218 in listbox and other controls that use implicit scrollbars after
20219 the previous PerformLayout patch
20220 * ListBox.cs: Switched to use implicit scrollbars
20222 2006-03-14 Mike Kestner <mkestner@novell.com>
20226 - chain up the "new event" overrides to base and use
20227 OnEvent to raise them. Part of fix for bug #76509.
20229 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
20231 * FileDialog.cs: Do not select an item in the parent directory
20234 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20236 * Control.cs (PerformLayout): It would seem that we considered
20237 invisible windows for our layout. Not quite the right thing
20238 to do. Now we don't any longer, thereby fixing bug #76889.
20240 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
20242 * Control.cs (CanFocus): I goofed. A control can have focus
20243 even though it's not selectable. Made it match MS docs.
20245 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20247 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
20248 center by default (fixes #76895)
20249 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
20250 all uses of Border3DSides.All with the explicit ORd together
20251 Left|Right|Top|Bottom because I assume that nobody was aware
20252 that All also implies a center fill. Most places I checked had
20253 a fill right above.
20254 * ProgressBarStyle.cs: Added
20256 2006-03-13 Mike Kestner <mkestner@novell.com>
20258 * ListView.cs: fix breakage in drag shadow header positioning
20259 from Peter's csc compilation fix.
20261 2006-03-13 Mike Kestner <mkestner@novell.com>
20263 * ListView.cs: fix NRE produced by backspacing twice in a focused
20266 2006-03-13 Mike Kestner <mkestner@novell.com>
20268 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
20270 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20272 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
20274 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
20275 the allowed size before making programmatic size changes
20277 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20279 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
20280 set, metacity is broken and will still use the emty sizes in
20281 the struct. (Fix for #77089)
20283 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
20285 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
20286 WindowExStyles and marked both enums as Flags
20287 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
20288 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
20289 to match WindowStyles split
20291 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
20292 - Updated to match WindowStyles split
20294 - Fixed FosterParent creation, was using ExStyle on the Style field
20295 (This should help with Popup focus issues)
20296 - Updated to match WindowStyles split
20298 2006-03-13 Jackson Harper <jackson@ximian.com>
20300 * MdiWindowManager.cs: Use the system menu height. Fixes some
20301 strange sizing issues.
20303 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20305 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
20307 - Scroll to caret after inserting text (#77672)
20308 - Make scroll range one pixel higher, fixes off-by-one error (and
20309 makes underlines visible on the last line)
20311 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20313 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
20314 the keyboard state from being stuck with keys in 'pressed' state when
20315 focus is switched away via keyboard
20316 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
20317 reset the keyboard if no X11 KeyUp events are expected to come
20318 * X11Structs.cs: Switched type of Visible to bool to match driver
20320 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
20323 - Switched caret to be just 1 pixel wide, matches MS and looks less
20325 - Moved caret display 1 pixel down from the top of the control
20327 - InsertCharAtCharet: Update the selection start if moving the caret
20328 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
20329 - No longer always creating the caret when the caret methods are
20330 called. Only the actual ShowCaret/HideCaret will do that now
20331 - Only setting caret visible if the owner control has focus
20332 - UpdateView: Added invalidation-shortcut logic for center and right
20333 aligned text. Previously we'd update all according to the left
20334 logic which caused drawing errors. Also fixed height of invalidated
20335 areas, now properly invalidating the whole area (was off-by-one)
20336 - owner_HandleCreated: Always generate the document when the
20337 handle is created; this ensures that
20339 - Fixed situation where caret would disappear under the right
20340 window border, also improved scrolling behaviour on left-
20342 - Fixed right-aligned textboxes to have a border to the
20343 right instead of the caret being under the right border
20345 - Switched from 'nested' to simple visible/not visible tracking
20346 for caret (part of fix for #77671)
20347 - No longer passing through translated FocusIn/FocusOut messages
20348 since we were notifying too often and the wrong windows. Instead
20349 we just notify our focussed window of receiving or loosing focus
20350 * XplatUIWin32.cs: Switched from 'nested' show/hide
20351 counting for caret to simple visible yes/no behaviour (part of
20354 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
20356 * Mime.cs: Remove debug code...
20358 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
20360 * MimeGenerated.cs: Removed
20361 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
20362 and subclasses) from /usr/(local/)share/mime and
20363 $HOME/.local/share/mime.
20365 2006-03-10 Jackson Harper <jackson@ximian.com>
20367 * MdiWindowManager.cs: Recalc the NC area when a window is
20368 maximized/restored so that the menu area is drawn on forms that
20371 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20373 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20374 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
20375 us to force a WM_NCCALCRESIZE message being sent. This is needed
20376 for MDI maximizing.
20378 2006-03-10 Jackson Harper <jackson@ximian.com>
20380 * Form.cs: We need to use the ActiveMenu when calculating menu
20382 - Fix nullref when the window manager hasn't been created yet.
20383 * Control.cs: Fix nullref when we try to bring a control to the
20384 front that has no parent.
20385 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
20387 - Add a dummy item to the maximized menu so it always has the
20388 correct height. Otherwise when there are no menus we don't get our
20392 2006-03-10 Jackson Harper <jackson@ximian.com>
20394 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
20396 * Form.cs: Make the window_state internal so the window managers
20398 - When an MDI child is maximized let its window manager create the
20399 main menu (so it can add its icon).
20400 - Notify the window managers of state changes
20401 - Let the window manager paint its buttons and handle button
20402 clicks on the menu when it is maximized.
20403 * InternalWindowManager.cs: Move the prev_bounds into the mdi
20404 window manager, since tool windows don't use it, only mdi windows.
20405 - Tell the main form that we don't want it to handle NCPAINT
20406 itself to avoid extra painting.
20407 - Handle clicks on a maximized windows menu.
20408 - Handle window state changes
20409 - Handle minimize/maximize clicks correctly by setting the window state.
20410 * MdiWindowManager.cs: Add an icon menu that (the menu you get
20411 when clicking on the forms icon).
20412 - New method to create a forms maximized menu. This is its normal
20414 - Handle window state changes.
20415 - Handle sizing of maximized windows. Maximized windows are just
20416 drawn bigger then the parent visible area. All controls are still
20417 there, they are just outside the visible area (this matches windows).
20418 * MdiClient.cs: No scrollbars when a child window is maximized.
20419 - Let the children windows figure out how big they should be when
20420 sizing maximized windows.
20421 - Implement a version of ArrangeIconicWindows somewhat similar to
20422 Windows version. There are some little differences, but I don't
20423 think any app will rely on the layout of minimized mdi windows.
20425 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20427 * Padding.cs: Several fixes to allow compiling with csc 2.0
20429 2006-03-09 Jackson Harper <jackson@ximian.com>
20432 * MenuItem.cs: Cheap hack so we can add items to the list without
20433 the events being raised. This allows adding mdi items during
20434 drawing. TODO: Should probably find a better time to add the items.
20436 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20438 * ThemeWin32Classic.cs:
20439 - CheckBox_DrawText: Added logic to not wrap if not enough space
20440 is available (Fix for bug #77727)
20441 - RadioButton_DrawText: Added logic not to wrap if not enough
20442 space is available (Fix for bug #77727). Also removed some
20443 duplicate code, DrawString always drawing the regular text
20444 before hitting the if statement.
20446 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20448 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
20450 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
20452 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
20453 * ContainerControl.cs: Partial implementation of some 2.0 scaling
20454 methods. Moved the new 2.0 properties into alphabetical order with
20455 other properties and added MonoTODO tags
20457 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20459 * AutoScaleMode.cs: Added. Fix build.
20461 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20463 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
20464 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
20465 and was requiring premature handle creation for calls from above
20466 * Form.cs, Control.cs: Removed handle arguments from calls to
20467 CalculateClientRect()
20469 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20471 * ListView.cs (HeaderMouseMove): Fix csc compilation.
20472 drag_column.column_rect is MarshalByRef and can't be used that way
20474 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20476 * AxHost.cs: Added deserialization constructor for
20477 AxHost+State (fixes 77743)
20479 2006-03-09 Mike Kestner <mkestner@novell.com>
20482 - Added column drag reordering for details view.
20483 - fixed behavior when mouse is dragged off column and
20484 AllowColumnReorder is false.
20485 * ColumnHeader.cs: clone the format too in Clone.
20486 * Theme.cs: add DrawListViewHeaderDragDetails method.
20487 * ThemeWin32Classic.cs:
20488 - impl new method for drawing drag column shadows and targets.
20489 - support column offset for details mode in DrawListViewItem.
20491 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20493 * TextControl.cs: Reset the char_count when the document is cleared
20494 (Fixes bug reported on mono-winforms mailing list)
20496 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20498 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
20499 of calling base we simply process the key ourselves, since both
20500 DefWindowProc and the handled method would set m.Result.
20503 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
20505 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
20506 method also moves the window; instead implemented a copy of
20507 Control.ScaleCore (Part of fix for #77456)
20509 - Created new CreateGraphicsInternal method to allow providing
20510 a graphics context when no handle is created without triggering
20511 handle creation. (Part of fix for #77456)
20512 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20514 - Switched Constructor to require TextBoxBase instead of Control (to
20515 allow uncast access to CreateGraphicsInternal)
20516 - Safeguarded use of owner.Handle property. No longer accessing it
20517 unless the handle is already created.
20518 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20519 - Now triggering a recalc when owning control becomes visible
20520 * TextBox.cs, RichTextBox.cs: Switched to use new internal
20521 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
20522 premature handle creation (Part of fix for #77456)
20524 - We now only destroy our double-buffering buffers when the
20525 control is resized or disposed, but not when visibility
20526 changes. (The code even re-created them twice every time)
20527 - Now requiring a redraw of the buffer on visibility changes
20528 (fixes bug 77654 part 2)
20529 - Not passing OnParentVisibleChanged up unless the control
20531 - CanFocus: Fixed to match MS documentation
20532 - Focus: Fixed to return actual focus state and to check if
20533 setting focus is legal before setting it
20535 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
20537 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
20538 when to draw focus rectangle by looking at parent focus and
20539 selected state instead. This fixes TabPages on Linux sometimes
20540 having none or multiple focus rectangles.
20541 * XplatUIX11.cs (SetFocus):
20542 - Don't set the focus if the same window already has focus
20543 - Use SendMessage instead of PostMessage (like it's Win32
20544 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
20545 to match MS behaviour
20546 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
20547 are not selectable.
20549 2006-03-07 Jackson Harper <jackson@ximian.com>
20551 * PictureBox.cs: Revert line I accidently committed last week.
20553 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
20556 - Added new IsRecreating and ParentIsRecreating properties to
20557 allow testing if RecreateHandle has been called on ourselves
20558 or one of our parents
20559 - WndProc(WM_DESTROY): If our control handle is being recreated
20560 we immediately need to create the handle when receiving the
20561 destroy, that way our child windows find a valid parent handle
20562 when they themselves are being recreated upon WM_DESTROY receipt
20563 (fix for bug #77654 part 1)
20565 - DestroyWindow: WM_DESTROY must be sent to our own window before
20566 notifying any child windows. MS documents that child windows
20567 are still valid when WM_DESTROY is received. (Control now relies on
20569 - Added some fine-grain debug options
20571 2006-03-06 Jackson Harper <jackson@ximian.com>
20573 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
20574 box and base calculations off this.
20575 * MdiChildContext.cs:
20576 * MdiWindowManager.cs: Don't need to ensure scrollbars here
20579 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
20581 * Splitter.cs: In situations where the affected control is added
20582 to the parent's control list after the splitter, we would not
20583 populate affected. Now we try populating it on mousedown, if
20584 it's not already set, and force it to be re-set whenever our
20587 2006-03-03 Matt Hargett <matt@use.net>
20589 * Control.cs: implement Control.Padding
20590 * Padding.cs: -Padding.All returns -1 when constructing with the
20591 implicit default ctor
20592 -Padding.ToString() matches MS.NET
20593 * ContainerControl.cs: implement
20594 ContainerControl.AutoScaleDimensions
20595 * ListControl.cs: implement ListControl.FormattingEnabled
20596 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
20598 * TabPage.cs: Implement UseVisualStyleBackColor.
20599 * PictureBox.cs: Implement PictureBox.InitialImage.
20601 2006-03-03 Mike Kestner <mkestner@novell.com>
20603 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
20604 event declarations to proxy to base event.
20605 * ListViewItem.cs: update to use ItemControl.
20606 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
20607 * ThemeWin32Classic.cs: update to new ListView theme API and fix
20608 column header label rendering for 0 width columns.
20610 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
20612 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
20613 that causes the control to be created. Fixes #77476.
20615 2006-03-02 Jackson Harper <jackson@ximian.com>
20617 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
20620 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
20622 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
20623 passed in for the EventArgs (fixes #77690)
20625 2006-03-01 Jackson Harper <jackson@ximian.com>
20627 * ScrollBar.cs: Refresh afterbeing resized.
20629 2006-02-28 Mike Kestner <mkestner@novell.com>
20631 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
20632 Clean up a tracker compile warning.
20633 * MenuItem.cs: add internal PerformPopup method.
20636 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20638 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
20639 implicit expose) when the text is set to null
20641 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20643 * RichTextBox.cs (FlushText): When newline is true, we always
20644 need to split the line, even if no text is on it and we may
20645 never eat newlines. (Fixes #77669)
20647 2006-02-28 Mike Kestner <mkestner@novell.com>
20649 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
20650 and set Selected instead.
20651 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
20654 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
20656 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
20658 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
20661 - Got rid of the panel. All controls are now directly added to
20663 - It is now possible to set a font with the Font property
20664 - MinSize and MaxSize property do now what they should
20665 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
20666 - Searching and selecting a font with the font textbox works now,
20667 the same applies to the style and size textbox
20668 - Draw the correct 3D border in the example panel
20669 - Fixed a little mem leak (unused fonts didn't get disposed)
20670 - Many other internal updates/rewrites...
20673 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20676 - InsertRTFFromStream: Added 'number of characters inserted' argument
20677 - set_SelectedRTF: Now using the number of characters to calculate
20678 the new location for the selection and cursor (x/y cannot be used
20679 due to potentially already wrapped text)
20681 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20683 * TextControl.cs: Added property and implemented means to allow
20684 disabling recalculation of a document (can be used to speed up
20685 multiple inserts and is needed to make RTF inserts predictable, see
20687 * RichTextBox.cs: Using the new NoRecalc property of Document to
20688 keep x/y insert locations predictable. Also makes it faster inserting
20689 large chunks of RTF
20691 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
20693 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
20694 it's easier for a child control to handle the other messages without
20695 having to duplicate the special functionality
20697 - WndProc: Removed calling base handler for WM_KEYDOWN and added
20698 code to handle processing the key ourselves, in order to get
20699 access to the result of KeyEventArgs.Handled. We now only call
20700 ProcessKey if they key hasn't been handled already. Fixes #77526.
20701 - set_Text: If null or empty string is given, just clear the
20702 document. Fixes part of #77526
20704 2006-02-27 Jackson Harper <jackson@ximian.com>
20706 * SizeGrip.cs: Paint the background color before painting the grip
20707 so things look right.
20708 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
20710 2006-02-27 Mike Kestner <mkestner@novell.com>
20713 - Restructure layout and invalidation model to remove a ton of
20714 flicker from the control and speed up performance in general.
20715 - Add manual column resize, flickers like crazy, but I already have
20716 some ideas on how I'll fix that. (#76822)
20717 - Merge the three Icon-based views into a single layout method.
20718 - Move item selection interaction logic from the item since
20719 interaction with the collections is more appropriate to the view.
20720 - Deselection on non-item clicks.
20722 - Encapsulate most of the layout. Add some internal props to trigger
20723 layout. Move to a model where Items invalidate themselves instead
20724 of just invalidating the whole control every time something changes.
20725 - Invalidate on Text/Caption changes.
20726 - switch to an offset based layout model to avoid having to absolute
20727 position every element on item moves.
20728 - correct checkbox layout to conform to MS layout.
20729 * ThemeWin32Classic.cs:
20730 - refactor some column header drawing code.
20731 - fix string justification for column headers (#76821)
20732 - make SmallIcon labels top justified for compat with MS impl.
20733 * ThemeClearlooks.cs:
20734 - adjust to new ListViewItem internal checkbox bounds api.
20736 2006-02-27 Jackson Harper <jackson@ximian.com>
20738 * Control.cs: Change where implicit controls fall in the zorder.
20739 They are now on top of all children.
20740 - Synced AddImplicit code with Add
20741 - Removed unused enumerator.
20742 * SizeGrip.cs: Remove the TODO as its been TODONE.
20744 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
20746 * TextControl.cs(Insert): Combine the last lines unless the insertion
20747 string ends with \n\n, otherwise we leave one line too many (Fixes
20748 something I noticed with the testapp for #77526; the bug itself was
20749 already fixed in the previous checkin)
20751 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
20754 - SelectionColor and SelectionFont methods no longer set absolute
20755 styles. Instead, the keep font or color respectively (This
20756 resolves a long-standing FIXME in the code)
20757 - When flushing RTF text, the insert code now considers text trailing
20758 behind the insertion point (Fixes the bug where when replacing
20759 the selected text via SelectedRTF the remainder of the line behind
20760 the selection would stay on the first insertion line)
20762 - AppendText now updates the selection points after inserting text
20763 - AppendText now ensures that the last tag (sometimes 0-length) of
20764 the document is used for the style information (Fixes part of
20767 - Created new FontDefiniton class to allow describing partial style
20769 - StreamLine() now takes a lines argument, to allow it to decide
20770 whether an encountered zero-length tag is the last in the document
20771 (which must be kept to not loose the font/color contained in it,
20773 - Created Combine() and Split() methods for Marker structs, to
20774 support marker updates due to reformatted documents (soft line
20776 - Implemented Document.CaretTag setter
20777 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
20778 of the last line (Not the cause, but also exposed by bug #77220)
20779 - Added LineTag argument to InsertString method, to allow callers
20780 to force a certain tag to be used (required to force use of the
20781 trailing zero-length tag of a document)
20782 - Now updating markers in Combine(), to avoid stale tag markers
20783 - Added some method descriptions to aid maintenance
20784 - Implemented new FormatText concept, allowing additive/subtractive
20785 formatting by only specifying the components that are to be
20786 changed. This was needed for resolving the RTB.SelectedColor/
20787 RTB.SelectedFont fixmes
20788 - Added Break() support method to allow breaking up linetags (used
20789 for partial formatting)
20790 - Added GenerateTextFormat() method. It is used for partial
20791 formatting and allows to generate a full font/color from given
20792 attributes and an existing tag.
20794 2006-02-26 Jackson Harper <jackson@ximian.com>
20796 * XplatUIX11.cs: Use the correct caption height.
20797 - Translate hittest coordinates to screen coords to match MS.
20798 * XplatUIWin32.cs: When we create MDI windows we need to reset
20799 some of the style flags, so we get a nice blank window, and can
20800 draw all the decorations ourselves.
20801 - Set a clipping rectangle on the non client paint event, the
20802 window manager drawing code needs one.
20803 * Form.cs: The window manager needs to know when the window state
20805 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
20806 don't need to factor in border and title sizes in these
20807 methods. TODO: Remove the args and fix the call points.
20808 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
20810 - Let the driver set the cursors.
20811 - Improve active window handling
20812 - Correct sizes for title bars and buttons.
20813 - Match MS drawing better
20814 * MdiWindowManager.cs: We don't need to handle border style
20815 updates specially anymore.
20816 - Check for scrollbars when windows are done moving
20817 - Handle Active properly.
20818 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
20819 correctly. I am spewing the exception though, so we don't hide the
20822 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
20824 * DataGridViewRowPostPaintEventArgs.cs,
20825 DataGridViewCellPaintingEventArgs.cs,
20826 DataGridViewRowCollection.cs,
20827 DataGridViewRowPrePaintEventArgs.cs,
20828 DataGridViewCell.cs: Clear a few warnings and implement a few
20829 exceptions that should be thrown.
20831 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20833 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
20834 'inheriting' our parent's (non-default) cursor. (Part of
20835 the fix for #77479)
20837 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20839 * XplatUIX11.cs: Fixed cast to make csc happy
20841 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
20843 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
20844 it's for the client area (part of fix for #77479 and needed
20845 for MDI window cursor handling)
20847 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
20848 the appropriate default cursors and also passing the message
20849 up the parent chain
20850 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
20851 for non-client areas
20853 2006-02-15 Jackson Harper <jackson@ximian.com>
20855 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
20856 is a real MDI window
20858 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
20860 * X11DesktopColors.cs: Instead of checking the desktop session
20861 string for "KDE" check if it starts with "KDE"
20863 2006-02-10 Jackson Harper <jackson@ximian.com>
20865 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
20868 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
20870 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
20873 - Got rid of the panel. All controls are now directly added to
20875 - Changed to mono coding style
20877 2006-02-10 Jackson Harper <jackson@ximian.com>
20879 * InternalWindowManager.cs: We don't need the set visibility to
20880 false hack anymore now that peter has written beautiful shutdown
20883 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
20885 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
20886 where already explicitly destroyed
20888 2006-02-10 Jackson Harper <jackson@ximian.com>
20890 * MdiClient.cs: Handle the case where windows are too high or to
20891 the left and we need scrollbars.
20893 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
20895 * MimeIcon.cs: Added some icons
20898 - Got rid of the panel. All controls are now directly added to
20900 - Changed to mono coding style
20901 - On Linux "My Computer" and "My Network" will now show some
20902 more usefull information. A new class, MasterMount, gathers
20903 this information from /proc/mount. Updated MWFFileView to make
20904 use of this information
20905 - Fixed a bug that caused FileDialog to crash when
20906 ".recently_used" file had a zero size
20907 - FilterIndex does now what it should
20909 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
20912 2006-02-09 Jackson Harper <jackson@ximian.com>
20914 * ComboBox.cs: Don't touch if null.
20916 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
20918 * Cursor.cs: 64bit safeness fix
20919 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
20921 2006-02-09 Jackson Harper <jackson@ximian.com>
20923 * Form.cs: If a form is made into an MDI form update the styles so
20924 all the props can get set correctly.
20925 - Kill the mdi_container when we dont need it anymore.
20926 * InternalWindowManager.cs: Add missing NOT
20928 2006-02-08 Jackson Harper <jackson@ximian.com>
20930 * InternalWindowManager.cs: Respek clipping when drawing MDi
20933 2006-02-08 Jackson Harper <jackson@ximian.com>
20935 * Hwnd.cs: Add bits to track non client expose events.
20936 * XplatUIX11.cs: Track non client expose events on the hwnd. This
20937 gives us a proper invalid rect and will allow for some nice
20938 optimizations with NC client drawing
20939 - MDI windows are children windows, so move their style handling
20940 into the child window block.
20941 * InternalWindowManager.cs: Remove a state reset that was
20942 getting invoked at the wrong time. Fixes managed windows getting
20943 into a 'stuck' captured state.
20945 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
20947 * TextControl.cs (Document.ctor): Now initializing
20948 selection_anchor. Fixes #77493
20950 2006-02-07 Jackson Harper <jackson@ximian.com>
20952 * TrackBar.cs: The increment/decrements were backwards.
20954 2006-02-07 Mike Kestner <mkestner@novell.com>
20956 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
20957 to the instance itself.
20959 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
20961 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
20962 on ulongs and pointers, the size differs between 32bit and 64bit
20965 2006-02-07 Mike Kestner <mkestner@novell.com>
20967 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
20968 for 64 bit platforms to work around a metacity bug.
20970 2006-02-07 Jackson Harper <jackson@ximian.com>
20972 * TrackBar.cs: Process the input keys we need, and hookup to
20973 KeyDown instead of using WndProc, so we get key messages.
20975 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
20977 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
20979 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
20980 we need to translate the XdndVersion atoms array before sending it
20982 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
20985 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
20986 number of bits for the property, not the number of bytes. The
20987 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
20988 but would not crash since it specified 8 bits instead of 4 bits)
20989 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
20990 defined as XID -> long in the C headers)
20991 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
20992 references since those are now IntPtr to begin with
20993 - Switched all Atom.XXX 'int' casts to IntPtr casts
20994 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
20995 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
20996 - Added XChangeActivePointerGrab DllImport (for X11DnD)
20998 - Changed 'int' type for Atoms in XEvent structures to IntPtr
20999 - Changed atom in HoverStruct to be IntPtr
21001 - Removed local DllImports, switched code to use those from XplatUIX11
21002 - Removed/fixed casts related to the switch of Atom to be a IntPtr
21004 2006-02-06 Mike Kestner <mkestner@novell.com>
21006 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
21007 method signatures in the import region. There may still be some
21008 lingering struct marshaling issues, as I didn't drill down into those.
21011 2006-02-06 Jackson Harper <jackson@ximian.com>
21013 * ComboBox.cs: Dont manually set the top_item, this is computed
21014 when the scrollbar position is set.
21016 2006-02-06 Mike Kestner <mkestner@novell.com>
21018 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
21019 startup crashes on amd64. There's other fixes needed. All pinvoke
21020 usage of Atom needs to be mapped to IntPtr for example. And there are
21021 likely other int/long issues to be addressed.
21023 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
21025 * FileDialog.cs: One more...
21027 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
21029 * FileDialog.cs: Next try
21031 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
21033 * FileDialog.cs: First part of fix for #77464
21035 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
21037 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
21038 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
21039 AcceptButton border drawing.
21041 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
21043 * Form.cs: Moved positioning of form after auto scaling is applied,
21044 otherwise it would possibly use wrong form size.
21046 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
21048 * Control.cs (RecreateHandle): No need to re-create any child
21049 controls, the child windows will get destroyed automatically by
21050 the windowing system or driver, and re-created when the handle
21051 is being accessed the first time. Fixes #77456
21052 * Form.cs: No longer setting the form to closing if the handle is
21053 being recreated. This seems like the right thing to do, don't
21054 have a bug or testcase for this, though.
21056 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
21058 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
21059 controls to avoid unwanted side effects
21061 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
21064 - ScaleCore needs to scale the bounds, not the ClientSize of the
21065 control. Fixes #77416.
21066 - DefaultSize is 0,0 for control
21068 - DefaultSize is 100, 20
21069 - SetBoundsCore: Now enforcing the height, no matter if the provided
21070 height is more or less than the preferred one, as long as AutoSize
21072 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
21074 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
21077 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
21078 call unless both performLayout is true *and* we have a pending
21080 - ResumeLayout: MS does not completely nest Suspend and Resume,
21081 they bottom out at 0, fixed our code to match that.
21082 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
21083 SetBoundsCore, we were updating even when we shouldn't. This fixes
21084 swf-anchors mis-anchoring when resizing the app fast and lots.
21085 - UpdateDistances: Now only setting the left and top distance if
21086 we have a parent and are not suspended, this is based on
21087 a suggestion by Don Edvaldson in bug #77355.
21088 - OnVisibleChanged: Fixed logic when to create the control. We may
21089 not create the control if we have no parent or if it's not visible;
21090 switched to using Visible property instead of is_visible field
21091 since the property also considers parent states. This fixes a bug
21092 when starting Paint.Net
21094 2006-02-02 Jackson Harper <jackson@ximian.com>
21096 * Form.cs: If the forms handle hasn't been created yet don't call
21097 into xplatui to make it top most, just set the topmost flag on the
21098 form in CreateParams
21099 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
21101 2006-02-01 Jackson Harper <jackson@ximian.com>
21103 * ScrollableControl.cs: Refactored the Recalculate method a
21104 little, this wasn't handling all the variants of bottom and right
21105 bars needed to be added and added/removed based on their
21106 counterparts being added/removed (which changes the drawable
21107 size). Also we special case client widths and heights of 0 and
21108 don't add the scrollbar for those.
21110 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
21113 - Added method to get AbsoluteGeometry(); currently unused, but might
21114 be used in the future, if we try again to figure out toplevel
21115 coordinates with some more crappy window managers
21116 - Added FrameExtents() method to retrieve the WM set decoration size
21117 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
21118 to deal with at least KDE, FVWM and metacity (Fixes #77092)
21120 - Added whacky_wm tracking var for metacity
21121 - Added logic to have default menu height if the actual menu height
21122 has not yet been calculated (part of fix for #77426)
21123 * Form.cs: Keep track whether client size has been set and re-set
21124 it if a menu is added/removed afterwards (Fixes #77426)
21126 2006-01-31 Jackson Harper <jackson@ximian.com>
21128 * Control.cs: When a new Site is set on the component attempt to
21129 pull the AmbientProperties from it.
21131 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
21133 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
21134 in the background of the owning form. Fixes #77332
21136 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
21138 * MimeIcon.cs: Fix for #77409
21140 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
21142 * XplatUIX11GTK.cs: Initial import
21144 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
21146 * FixedSizeTextBox: fixes class signature
21148 2006-01-30 Jackson Harper <jackson@ximian.com>
21150 * FixedSizeTextBox.cs: New internal class that represents a
21151 textBox that will not be scaled.
21154 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
21157 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
21159 * XplatUIX11.cs: Retrieve default screen number instead of
21160 assuming 0. Attempted fix for #77318
21162 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
21165 - GetWindowPos: When a window is parented by FosterParent, use
21166 the desktop instead of FosterParent as the base to get coordinates
21167 - CreateWindow: Don't make FosterParent the parent window for Popups
21168 if we don't want a taskbar entry, Popups automatically don't get one
21169 * Hwnd.cs: Need to call remove to actually remove the key from the
21172 2006-01-30 Mike Kestner <mkestner@novell.com>
21174 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
21176 2006-01-30 Jackson Harper <jackson@ximian.com>
21179 * TreeNode.cs: Raise events no matter how the treenode is
21180 checked. Patch by Don Edvalson.
21182 2006-01-30 Jackson Harper <jackson@ximian.com>
21184 * TreeNode.cs: Signature fix.
21186 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
21188 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
21190 2006-01-20 Mike Kestner <mkestner@novell.com>
21192 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
21193 event forwarding when menus are active.
21194 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
21195 Most of the patch is pdb's with a little rework.
21197 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21199 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
21200 Removed GetMenuDC and ReleaseMenuDC methods; replaced
21201 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
21202 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
21203 * InternalWindowManager.cs: Added use of PaintEventStart/End to
21204 handling of WM_NCPAINT message, now passing the PaintEventArgs to
21205 the PaintWindowDecorations method
21206 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
21207 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
21208 * MenuAPI.cs: Made tracker window invisible
21210 - Removed GetMenuDC and ReleaseMenuDC methods
21211 - Implemented the client=false path for PaintEventStart and
21214 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21216 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
21217 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
21220 - MaximizeBox, MinimizeBox: Recreate the handle when setting
21222 - CreateParams: Reworked the styles to match MS look'n'feel,
21223 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
21224 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
21226 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21228 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
21229 window is not mapped, since otherwise every form that's being
21230 created is considered minimized, which is wrong.
21231 * Form.cs: Catching the exception and returning our internal value
21234 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
21236 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
21237 SetWindowMinMax() to have means to tell the driver about the minimum,
21238 maximum and maximized state window sizes. (Part of the fix for #76485)
21240 - Implemented tracking of minimum and maximum window size, now calling
21241 new SetWindowMinMax() driver method to tell the driver (Part of the
21243 - Finished handling of WM_GETMINMAXINFO method, now setting all values
21244 (Completes fix for #76485)
21245 - Calling new SetWindowMinMax driver method when the handle for a
21246 form is created, to make sure the driver knows about it even if
21247 the values have been set before the window was created
21248 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
21249 to avoid messing up our anchoring calculations (partial fix
21251 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
21253 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
21254 - Improved GetWindowState() to detect 'Minimized' state on Metacity
21255 (and presumably other freedesktop.org compliant WMs). Left the
21256 assumption unmapped=minimized, needed for SetVisible to work.
21257 - Now setting the window state when creating windows
21258 - Fixed SetVisible to consider/set the window state when mapping
21259 a Form. We cannot set the state before it's mapped, and we cannot
21260 use Form.WindowState once it's mapped (since it would ask the
21261 driver and get 'normal'. Therefore, we grab the state before
21262 mapping, map, and then set state.
21263 - Implmemented SetWindowMinMax method; Metacity does not seem to
21264 honor the ZoomHints, though.
21266 - Removed MINMAXINFO (moved to XplatUIStructs)
21267 - Added SetWindowMinMax stub (on Win32 the only way to set that
21268 information is in response to the WM_GETMINMAXINFO message, which
21269 is handled in Form.cs)
21270 - Added logic to SetVisible to set the proper window state when a
21271 form is made visible (fixes #75720)
21273 2006-01-26 Jackson Harper <jackson@ximian.com>
21275 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
21276 same way we handle them with Invoke.
21278 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
21281 - Added tracking of window state so CreateParams can return
21282 the appropriate style
21283 - Moved setting of WS_CAPTION style in CreateParams to allow
21284 styles without caption
21285 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
21286 control if the TextBox property is accessed. Fixes #77345
21288 - get_Created: now uses is_disposed and is_created to determine
21289 return value (suggested by Jackson)
21290 - CreateHandle: No longer exits if the handle is being recreated
21291 - RecreateHandle: If the handle is not yet created call the
21292 appropriate method to create either control or handle. If the
21293 control is already created CreateHandle will simply exit instead
21294 of just creating the handle
21295 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
21296 now SendMessage WM_DESTROY directly to the control when DestroyWindow
21299 - When DestroyWindow is called, instead of waiting for the
21300 DestroyNotification from X11, we directly post it to the WndProc
21301 and immediately dispose the hwnd object.
21302 Same applies to DestroyChildWindows, and this obsoletes the
21303 expose_pending tracking. Contrary to Win32 behaviour we destroy our
21304 child windows before our own, to avoid X11 errors.
21305 - Removed the direct sending of WM_PAINT on UpdateWindow
21307 - Reworked DoEvents and GetMessage to allow access to internal queue
21308 even when trying non-blocking access to the queue. Fixes #77335.
21309 Based on a patch suggestion by Don Edvalson. The new private
21310 GetMessage can now also be used as a backend for a PeekMessage
21312 * XplatUI.cs: Improved debug output for CreateWindow
21314 2006-01-25 Jackson Harper <jackson@ximian.com>
21316 * Help.cs: Allow param to be null. Patch by Don Edvalson.
21318 2006-01-24 Jackson Harper <jackson@ximian.com>
21320 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
21321 when we have a MaxDropItems lower then the selected index.
21323 2006-01-24 Jackson Harper <jackson@ximian.com>
21325 * Control.cs: Don't allow selection of non visible controls, allow
21326 selection of controls without parents.
21328 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
21330 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
21331 * DataGridDrawingLogic.cs: Add editing row only when is necessary
21333 2006-01-23 Jackson Harper <jackson@ximian.com>
21335 * UpDownBase.cs: Make the textbox handle all the selection and
21336 tabbing. This fixes tabing to updown controls.
21338 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
21340 * TextBoxBase.cs: fixes exception thown the object was null
21342 2006-01-23 Jackson Harper <jackson@ximian.com>
21344 * ButtonBase.cs: Just use the base CreateParams. They set
21345 visibility and enabled correctly.
21348 * MonthCalendar.cs: Lets let the base set as much of the
21349 createparams as possible so we don't have duplicate code all over
21352 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
21354 * ThemeGtk.cs: Added TrackBar and some experimental code to
21355 get double buffering back
21357 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21359 * DataGrid.cs: Allows row number set internally higher than the last
21360 when creating a new row. Restores the editing functionality.
21362 2006-01-20 Mike Kestner <mkestner@novell.com>
21364 * MimeIcon.cs: delay Image creation until the icons are accessed
21365 instead of creating 190 scaled images on GnomeHandler startup.
21367 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
21369 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
21370 first call base before processing the event. Fixes #77279
21372 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
21374 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
21375 that the stride for the GDI bitmap would match the stride of
21378 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
21380 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
21382 2006-01-19 Jackson Harper <jackson@ximian.com>
21384 * ComboBox.cs: Hookup the text controls keydown event so we get
21385 those when the text control has the focus.
21387 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21389 * Label.cs: Now using the base events instead of defining new ones;
21390 this allows us to just call the base properties without having to
21391 duplicate all base property logic
21393 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21395 * Label.cs: A label by default is not a tabstop (Fixes one of our
21396 failing nunit tests)
21398 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21400 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
21401 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
21403 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
21405 * Cursor.cs: Reimplemented creating cursor bitmaps without using
21406 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
21409 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
21410 constructor creates images that can't be saved. Part of the fix
21412 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
21413 - SetWindowState: Switched ShowWindow flags (part of an upcoming
21414 bug fix for handling window state in forms properly)
21416 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21418 * ThemeGtk.cs: Simplify ScrollBar drawing
21420 2006-01-18 Jackson Harper <jackson@ximian.com>
21422 * Splitter.cs: Set the default dock style for the splitter control
21423 in the constructor.
21425 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21427 * ThemeGtk.cs: Corrected StateType and ShadowType for
21430 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21432 * Control.cs: Make use of Theme.DoubleBufferingSupported
21434 - Added drawing for flat style buttons
21435 - Added ScrollBar drawing
21437 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
21439 * ThemeClearlooks.cs: Removed some unneeded code.
21440 * ThemeGtk.cs: First part of ThemeGtk enhancements.
21442 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
21444 * LinkLabel.cs: We need to update the hover drawing when
21445 leaving the control as well.
21447 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
21449 * DataGrid.cs: Clicking on non empty areas in the columns
21450 area was giving an exception
21452 2006-01-17 Jackson Harper <jackson@ximian.com>
21454 * ThemeWin32Classic.cs:
21455 * ListView.cs: Do not draw/clip the headers when the header style
21458 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
21460 * DataGrid.cs: Fixes 77260
21462 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
21464 * DataGrid.cs: Clicking on a column on a empty grid was giving
21467 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
21469 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
21470 or any keypress will crash the grid.
21472 2006-01-17 Mike Kestner <mkestner@novell.com>
21474 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
21475 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
21476 invisible/previously-visible items.
21479 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
21481 * ThemeClearlooks.cs:
21482 - Added CL_Draw_Button method; now other theme controls that are
21483 not derived from button or do not have a button can draw buttons
21485 - Updated ComboBox drawing
21486 - Beautified RadioButton drawing
21487 - Corrected drawing of bottom and left tabs
21488 - Beautified DateTimePicker and MonthCalendar
21489 - Added CPDrawButton and CPDrawRadioButton
21491 2006-01-16 Jackson Harper <jackson@ximian.com>
21493 * ComboBox.cs: Set the initial value of the scrollbar to the
21494 current index. Reduce the numbers of refreshs and IndexOfs called.
21496 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
21498 * FileDialog.cs: When the file listview is focused hitting the
21499 backspace key moves the fileview to the parent directory
21501 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21504 - Added RecreateHandle call when changing taskbar visibility to
21505 trigger reparenting in Win32 driver (Fixes #75719)
21506 - If a window has minimize or maximize buttons, it cannot have
21509 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
21510 the toplevel form with FosterParent (A toolwindow not on the
21511 taskbar) (Fixes #75719)
21512 - Made FosterParent a toolwindow
21514 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21516 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
21518 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21520 * ToolTip.cs: If SetToolTip is called from a control and the mouse
21521 is currently over that control, make sure that tooltip_window.Text
21524 2006-01-13 Mike Kestner <mkestner@novell.com>
21526 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
21528 2006-01-13 Jackson Harper <jackson@ximian.com>
21530 * TreeView.cs: On MS GetNodeAt never actually factors in the X
21531 value passed. Also redraw the selected node when we recieve
21532 focus, so tabbing between trees works correctly.
21534 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
21536 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
21537 ~/.gconf/%gconf-tree.xml, so use
21538 .gconf/desktop/gnome/interface/%gconf.xml
21540 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21542 * TextControl.cs: Draw text in gray if control is disabled
21544 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21546 * TreeView.cs: Draw the focus rectangle outside the highlight, to
21547 make sure it's always visible. Fixes #76680.
21549 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
21551 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
21553 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
21555 * PageSetupDialog.cs: Added.
21556 * PrintDialog.cs: Attributes.
21557 * PrintPreviewControl.cs: Updates.
21558 * PrintPreviewDialog.cs: Updates.
21560 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21562 * Control.cs: Undid my selection check fix, since it's not needed
21564 - Now considering the presence of hscroll/vscroll when sizing
21565 vscroll/hscroll respectively. Fixed bug #77077
21566 - Added Left/Up/Down/Right to IsInputKey list to prevent
21567 ContainerControl from stealing them. This fixes what I broke
21568 with my last checkin.
21570 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21572 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
21573 I finally understand how the property can be set without a setter :-)
21575 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21578 - Switched RunLoop to use static Message.Create to create a
21580 - Added PreProcessMessage call in runloop for keyboard events; this
21581 is part of the fix for #77219, I overlooked this originally in the
21582 MSDN doc for PreProcessMessage
21584 - Removed call to PreProcessMessage from handling of keyboard
21585 messages; it's supposed to be done in the message pump
21586 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
21587 per MSDN documentation.
21588 - IsInputChar: All chars are input chars by default; removed the
21589 parent calling chain, MS does not document that
21590 - PreProcessMessage: If IsInputChar is true, we want to return false
21591 to allow dispatching of the message
21592 - When selecting the next control, now also check that we're not
21593 selecting ourselves again and therefore return a false positive.
21595 - Tried to match return values for IsInputKey and ProcessDialogKey
21596 to what MS returns; moved processing of our special keys outside
21597 ProcessDialogKey since MS does not seem to return true on those.
21598 - Moved code that previously was in ProcessDialogKey into new private
21599 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
21600 - Reworked handling of WM_CHAR to not have to duplicate code from
21601 Control.cs anymore, instead we simply call down to base.
21603 2006-01-12 Jackson Harper <jackson@ximian.com>
21605 * ComboBox.cs: We always need to refresh the text area when
21606 EndUpdate is called. Fixes the combobox in the file dialog.
21607 * Control.cs: Don't create the creator_thread until the controls
21608 handle is created. Also in InvokeRequired we check if the
21609 creator_thread is null. This gives the effect of InvokeRequired
21610 returning true if the controls handle is not created yet, and
21613 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21616 - Added StartLoop() driver method. This is used to allow drivers to
21617 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
21618 loop for a particular thread
21619 - Added EndLoop() driver method. This is called once the message
21620 pump for the thread is shut down
21621 - Added SupportsTransparency method to allow the driver to indicate
21622 opacity support for windows
21624 - Removed TODO attribute, completed AllowTransparency property
21625 - Added documented logic to Opacity
21626 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
21627 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
21628 versions of CompatibleTextRendering
21629 * X11Structs.cs: Added opacity atom to our atom enumeration
21630 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
21631 of a form might be set before it's reparented by the WM, and we need
21632 the opacity value without calling up to Form)
21633 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
21634 SupportsTransparency() driver methods
21635 * Application.cs: Now calling StartLoop and EndLoop driver methods
21637 - Added opacity atom registration
21638 - Added StartLoop()/EndLoop() methods. They're empty right now but
21639 will need to get implemented when we switch to a per-thread queue
21640 - Implemented SupportsTransparency() method
21641 - Implemented SetWindowTransparency() method
21642 - Added support for setting the opacity value when a window is
21643 reparented (since the opacity needs to be set on the WM frame)
21644 * XplatUIOSX.cs, XplatUIWin32.cs:
21645 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
21647 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
21649 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
21651 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
21653 * FileDialog.cs: Added ToolTip for MWFFileView
21654 * MimeIcon.cs: Rewrote GnomeHandler.
21655 - Get currently used gnome icon theme from
21656 ($HOME)/.gconf/%gconf-tree.xml
21657 - Make use of inherited icon themes
21658 - Support SVG icon themes like Tango via librsvg
21660 2006-01-12 Miguel de Icaza <miguel@novell.com>
21662 Revert's Jackson's revert which broke 2.0 builds. Fix both
21665 * Application.cs: Move the use_compatible_text_rendering outside
21666 the NET_2_0 define. If we ever need to use the
21667 use_compatible_text_rendering on the individual controls they will
21668 access the variable from the common shared code paths.
21670 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
21673 - Added more granular debug options
21674 - Added method to print both window text and id
21675 - Switched debug output to use new Window() debug method
21676 - Added IsEnabled() driver method
21677 - Added EnableWindow() driver method
21679 - Removed end_modal; no longer needed, new loop handles termination
21680 via 'closing' variable
21681 - If form is modal, setting DialogResult will now initiate loop
21682 termination via 'closing' variable
21683 - Added support for is_enabled/WS_DISABLED to CreateParams
21684 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
21686 - Removed code that's now in RunLoop from ShowDialog()
21687 - Added various documented sanity checks to ShowDialog()
21688 - Added handling of WM_DESTROY message; we set 'closing' on getting
21689 the message to indicate the message pump to terminate
21690 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
21691 send by the Application.ExitThread method. (We send the message
21692 to destroy the window after all other events have been
21693 processed through the queue, instead of destroying the handle
21695 - Moved code from Close() method to WM_CLOSE handler; added logic
21696 to only send close-related events if the form is not displayed
21698 * Splitter.cs (..ctor): Fixed typo in resource name
21700 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
21702 - set_Cursor: Now only setting calling into XplatUI if the handle for
21703 the control is already created; this avoids implict handle creation
21704 or crashes if it's not created
21705 - set_Enabled: Now setting the enabled state via the new driver method
21706 instead of just tracking it
21707 - CreateParams: Added logic to set WS_DISABLED based on enabled state
21708 - CreateControl: Reordered event firing and method calls to more
21709 closely fire events in the order MS does. Now setting the
21710 enabled state in the driver when creating the control.
21711 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
21713 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
21714 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
21715 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
21717 - Added tracking of window enabled state (get_Enabled/set_Enabled)
21718 - Added EnabledHwnd property to easily allow a driver to find the
21719 handle of the first enabled window in the parent chain (this is
21720 used by drivers to pass up input events of disabled windows)
21721 * XplatUIDriver.cs: Added IsEnabled() method
21723 - Removed crude and obsolete exiting tracking variable
21724 - Removed internal ModalRun(); replaced by RunLoop()
21725 - Implemented private CloseForms() method to allow closing all
21726 windows owned by a particular (or all) threads
21727 - Exit() now properly closes all windows without forcing the message
21729 - Removed obsolete InternalExit() method
21730 - Changed Run() methods to use new RunLoop() message pump
21731 - Implemented new RunLoop() method for both modal and non-modal forms
21733 - get_CreateParams: Added setting of WS_DISABLED
21734 - Simplified ShowDialog(); now all the work is done in RunLoop(),
21735 invoked via Form.ShowDialog()
21736 * NativeWindow.cs: We don't remove the window from the collection when
21737 the handle is destroyed; there might still be messages for it in the
21738 queue (mainly the resulting WM_DESTROY); instead it will be removed
21739 when Control calls InvalidateHandle in the WM_DESTROY handler
21741 - CreateWindow: Added logic to handle the WS_DISABLED window style
21742 - EnableWindow: Implemented based on Hwnd.Enabled
21743 - GetMessage: Reset PostQuitState so the method can be called again
21744 - Implemented support for disabled windows (passing messages to the
21745 first enabled parent) in handling all input messages
21746 - Added optimizations for handling Expose events
21747 - Implemeted new driver method IsEnabled()
21748 - Now always resetting paint pending tracking vars when we start paint
21749 - Re-implemented UpdateWindow via just sending a WM_PAINT message
21750 * XplatUIOSX.cs: Added IsEnabled method stub
21751 * XplatUIWin32.cs: Implemented new IsEnabled() method
21753 2006-01-11 Jackson Harper <jackson@ximian.com>
21755 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21756 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
21757 variables a little.
21758 * ColorDialog.cs: Clear out the old form before adding the new
21761 2006-01-11 Jackson Harper <jackson@ximian.com>
21763 * X11Dnd.cs: Make sure to add all the text formats when adding
21764 strings to the data object.
21765 * TreeNodeCollection.cs: When adding to a sorted tree we need to
21766 do some redrawing too. Also change the UpdateNode to an
21767 UpdateBelow so the newly added node gets painted.
21769 2006-01-11 Miguel de Icaza <miguel@novell.com>
21771 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21772 LinkLabel.cs, PropertyGrid.cs: Implement the
21773 UseCompatibleTextRendering property for 2.x
21775 * Application.cs (SetCompatibleTextRenderingDefault): Add.
21777 2006-01-11 Jackson Harper <jackson@ximian.com>
21779 * TreeView.cs: Use the property for setting the selected node so
21780 the correct events get raised.
21781 * TreeNode.cs: Update the tree when the fore/back colours of a
21784 2006-01-10 Jackson Harper <jackson@ximian.com>
21786 * TreeView.cs: Allow setting SelectedNode to null.
21788 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21790 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
21792 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21794 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
21796 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21798 * PrintDialog.cs: Added attributes and set default property values.
21800 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21802 * PrintControllerWithStatusDialog.cs:
21803 Added PrintControllerWithStatusDialog.
21805 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21807 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21808 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
21810 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
21812 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
21814 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
21816 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
21817 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
21819 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
21821 * MimeIcon.cs: Added internal class SVGUtil.
21823 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
21825 * FileDialog.cs: Don't crash if there are two files with the
21826 same name but different locations.
21828 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
21830 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
21831 dates across multiple month grids. Used to not highlight entire
21832 month, but does now.
21834 2006-01-06 Jackson Harper <jackson@ximian.com>
21836 * MonthCalendar.cs: Removed DoEvents call to prevent a running
21837 message loop. Change timer intervals to numbers that seem more
21840 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
21842 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
21843 object for location info since screen object is now implemented.
21845 2006-01-05 Jackson Harper <jackson@ximian.com>
21847 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
21848 * AsyncMethodResult.cs: We no longer use a WeakReference for the
21849 AsyncMethodResult, this is because we ALWAYS want the
21850 ManualResetEvent to get set.
21851 * Control.cs: When disposing use an async invoke to call shutdown
21852 code, so that thigns don't block on the finalizer thread. Also
21853 check if we even have a message loop before trying to send
21854 messages, if we don't then don't bother sending messages.
21855 - No more weak references for async methods
21856 * XplatUIDriver.cs: No more weak references for async methods.
21858 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21860 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
21861 returns two FontFamily with the same name
21863 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
21865 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
21866 drawing disabled text. Instead using the ColorGrayText color
21868 2006-01-04 Jackson Harper <jackson@ximian.com>
21870 * TreeNode.cs: redraw the node when its image index is changed.
21872 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
21874 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
21875 time I checked there are no others like it.
21877 2006-01-04 Jackson Harper <jackson@ximian.com>
21879 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
21880 this gives the behavoir I was looking for.
21881 * Control.cs: Special case Invoking EventHandlers, this matches MS
21882 and fixes part of bug #76326.
21884 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21886 * ThemeClearlooks.cs, FileDialog.cs:
21887 - Reflect the latest Theme class changes
21888 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
21891 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
21893 * Theme.cs: Cache UI resource images and resize them if needed
21895 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21897 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
21898 is called. This fixes the crash in Nexxia when setting the font
21899 attributes in the chat. [However, RTF needs a look-over to make sure
21900 that all SelectionXXX methods handle the special case that selection
21901 is empty and therefore the change must be applied to all text starting
21902 at the cursor/selection start]
21904 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21906 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21907 XplatUIOSX.cs: Added SendMessage and PostMessage methods
21908 * X11Keyboard.cs: Switched to new way of calling PostMessage
21910 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
21912 * Theme.cs: Added theme interface for images to allow the theme to
21913 control what images are used for things like FileDialog, MessageBox
21915 * MessageBox.cs: Now uses the new Theme icon/image interfaces
21917 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
21920 - Removed some dead code
21921 - Opening a recently used file does work now
21922 - Small UI enhancements
21925 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
21927 * FileDialog.cs: Forgot too add __MonoCS__
21929 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
21931 * FileDialog.cs: We are able to read recently used files now let's
21932 go on and write them.
21934 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
21936 * FileDialog.cs: Breathe some life into "last open"/"recently used"
21938 * MimeIcon.cs: Do a check for the top level media type also
21940 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
21942 * ThemeClearlooks.cs:
21943 - Added CPDrawStringDisabled
21944 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
21945 some chars if the text doesn't fit into text_rect
21946 - DrawListViewItem: If View = View.LargeIcon center the image;
21947 rewrote the drawing of ListViewItem.Text if View =
21950 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
21952 * MimeIcon.cs: Use default KDE icon theme if there is no
21953 "48x48" directory for the current icon theme, fixes #77114
21954 * Mime.cs: Disable not working and actually not used code.
21955 * ThemeWin32Classic.cs:
21956 - Replace "new SolidBrush" in GetControlBackBrush and
21957 GetControlForeBrush with ResPool.GetSolidBrush
21958 - Changed DrawListViewItem from private to protected virtual
21960 - Added form.MaximizeBox = true
21961 - Don't throw an exception if there is a broken symbolic link
21963 2005-12-23 Jackson Harper <jackson@ximian.com>
21965 * TabControl.cs: Give the panels focus, keyboard navigation is
21966 fixed so this works correctly now.
21967 - We need these key events also.
21968 * ToolBar.cs: Remove some of the poor mans double buffering.
21970 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
21972 * ComboBox.cs: The internal TextBox now returns the focus.
21974 2005-12-23 Jackson Harper <jackson@ximian.com>
21976 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
21978 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21980 * Control.cs: Removed debug code
21981 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
21984 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21986 * Control.cs: When creating the control, update the Z-order after
21987 all it's children are created, too. (Fixes nexxia not showing
21990 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
21992 * Control.cs: Do not update the anchoring distances if layout is
21993 suspended, instead do it once layout is resumed
21995 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
21998 - After many hours of debugging, for both Jackson and
21999 myself, it turns out that it helps to set the parent of a control
22000 if you want to actually see it onscreen. In the spirit of that
22001 discovery, we're now setting the parent of the control and
22002 it's children when the control's handle is created. This fix
22003 will make Lutz Roeder's Reflector run happily.
22004 - now just creating the handle instead of the whole control when
22005 getting a graphics context for the control.
22007 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
22009 * ScrollableControl.cs: When calculating the canvas, don't consider
22010 the scrollbar widths. Instead, predict if horizontal scrollbar
22011 will affect canvas when deciding on vertical display and vice versa.
22013 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
22015 * RichTextBox.cs: Set default RTF font for documents that don't
22016 have a font table (Fixes #77076)
22018 2005-12-22 Jackson Harper <jackson@ximian.com>
22020 * TextBoxBase.cs: It's difficult to do, but you can have an empty
22021 clipboard. This prevents a NullRef in that case.
22022 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
22023 clipboard. PRIMARY is for the currently selected text only. (We
22024 should implement PRIMARY at some point.
22026 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
22028 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
22029 a Unicode function with a structure that was defined in Ansi way.
22032 2005-12-21 Jackson Harper <jackson@ximian.com>
22034 * StatusBar.cs: Statusbar handles its fore/back colours on it's
22035 on. Because thats how it rolls. (and this avoids it using ambient
22037 * ThemeWin32Classic.cs: Use the proper back color for filling.
22038 * Menu.cs: Use the system menu bar color for drawing menu
22039 bars. Using the window back color will bring ambient colours into
22042 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
22044 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
22045 Bitmaps were created and not disposed.
22047 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
22049 * Control.cs (CreateControl): Don't do anything if the control is
22050 already created, otherwise we'd fire the OnCreated event more than
22053 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
22055 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
22056 will always match. Instead return -1. Fixes #76464.
22058 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
22060 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
22061 neither the beginning nor the end of the line (Fixes bug #76479)
22063 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
22066 - ControlNativeWindow.ControlFromHandle(): Now handling situation
22067 where handle is invalid
22068 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
22069 instead of slower linear search
22070 * NativeWindow.cs: Don't remove the window from the hashtable until
22071 after the driver has destroyed it (since the driver might use
22072 Control.FromHandle to lookup the control object
22073 * Hwnd.cs: Added DestroyPending property to track if a window is
22074 already destroyed as far as the driver is concerned and only hasn't
22075 yet notified the control
22077 - Activate(): Check if the window is still valid before using the
22079 - Implemented DestroyChildWindow() method to mark child windows as
22080 destroyed when a window is destroyed. This prevents situations
22081 where we might call an X method based on queued events for a
22082 window that already has been destroyed but we haven't yet pulled
22083 the destroy method from the queue.
22084 - Added a call to the new DestroyChildWindow() method to the drivers
22085 DestroyWindow code. Also now marking the destroyed window itself
22088 2005-12-20 Jackson Harper <jackson@ximian.com>
22091 * StatusBarPanel.cs: Don't calculate panel sizes on draw
22092 anymore. Just do them when needed, also track the rects of panels
22093 so that we can optimize refreshing more in the future.
22095 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
22097 * ColorDialog.cs: Fixed focus drawing in small color controls
22099 2005-12-19 Jackson Harper <jackson@ximian.com>
22101 * InternalWindowManager.cs:
22102 * MdiWindowManager.cs: Cleanup some coordinate system changes so
22103 moving windows works properly.
22105 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
22108 - Removed call to InitLayout() from SetBoundsCore(); doc says
22109 it's only called when a control is added to a container
22110 - Split InitLayout logic, moved to separate UpdateDistances() method
22111 since we need to perform those calculations more often than just
22112 when adding the control to a container. (Needed to fix #77022)
22113 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
22114 - Reduced the OnBindingContextChanged events count, don't send them
22115 unless the control is created, we still aren't totally matching
22116 MS, but I can't quite figure out some of their rules
22118 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22120 * ThemeClearlooks.cs: Corrected distance between ProgressBar
22123 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22125 * ThemeClearlooks.cs:
22126 - Updated ProgressBar drawing
22127 - Corrected drawing of ScrollBars and scroll buttons
22128 - Some temporary fixes for minor pixel artefacts
22130 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
22133 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
22134 cause events to be sent in the same order as MS does.
22135 - Added ChangeParent() method to trigger various OnXXXChanged events
22136 that need to be fired when a parent changes (This is a reworking
22137 of the patch from r54254, with the X11 errors fixed)
22138 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
22139 since on MS we get OnLayoutChanged events when calling Clear()
22140 - Changed Enabled property to consider parent state as well, if a
22141 parent is not enabled, the control will not be either
22142 - Changed Parent property to simply call Controls.Add() since that
22143 now does all the work required, this way we avoid code duplication
22144 - Threw in a few OnBindingsContextChanged calls to try and match
22145 when MS sends them. We seem to send a few too many, though.
22146 - Added call to CreateControl when adding the control to a parent.
22147 We were never calling CreateControl. Still needs some work, in
22148 some places we treat HandleCreated and ControlCreated as equal,
22150 - Removed obsolete commented out code from UpdateZOrder()
22152 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
22154 * ThemeClearlooks.cs: Updated TrackBar drawing.
22156 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
22158 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
22160 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
22162 * FileDialog.cs: Add the Help button and the open readonly
22163 checkbox only if needed
22165 2005-12-16 Jackson Harper <jackson@ximian.com>
22167 * Control.cs: Make sure we have an active menu before trying to
22168 process commands on it. Prevents menu-less forms from crashing
22169 when Alt is pressed.
22170 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
22172 * RichTextBox.cs: Expand statement to help out gmcs and fix the
22175 2005-12-16 Jackson Harper <jackson@ximian.com>
22177 * InternalWindowManager.cs: Don't translate tool windows screen
22178 coordinates. This fixes windows 'bouncing' around when being moved.
22180 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
22183 - MaxLength now treats 2^31-1 equal to unlimited length (this is
22184 not quite MS compatible, MS uses that number only for single line
22185 and 2^32-1 for multi-line, but I figure it won't hurt keeping
22187 - Now enforcing the MaxLength limit when entering characters
22188 - Added argument to internal Paste() method to track if it's called
22189 from programatically or via keyboard, since keyboard driven pastes
22190 need to enforce max-length
22191 - Added logic to Paste to only paste as many chars as MaxLength
22193 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
22195 - Added Length property to return number of characters in document
22196 - Added private CharCount property which only tracks actual chars
22197 in the document (no linefeeds) and fires event when CharCount
22199 - Added tracking of character count to all methods that alter it
22200 - Added LengthChanged event to allow applications to subscribe
22201 to any changes to the document
22203 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
22206 - Removed local password_char field (moved to TextBoxBase)
22207 - Now setting the document's password var when password is
22210 - Added password_char field (needed here so MultiLine can
22212 - Added logic to MultiLine property setter to set the document's
22213 variable when password display is allowed
22214 - Removed debug code and made some debug code conditional
22216 - Added RecalculatePasswordLine() method to handle special password
22218 - Added PasswordChar property, also added related tracking vars
22219 - Draw() method now uses local text var for grabbing text to draw,
22220 this var is set to line.text unless we're doing password display,
22221 then it is set to the pre-generated all-password-chars line
22222 - Added calling RecalculatePasswordLine() method for password lines
22224 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
22227 - Added Reparented property to allow tracking of Window Manager
22228 reparenting actions (which affect X/Y calculations of toplevel
22230 - Made ToString() print window handles in hex
22232 - AddConfigureNotify(): Now uses reparented state off Hwnd to
22233 determine if X/Y needs offsetting
22234 - AddConfigureNotify(): Fixed offset calculations
22235 - Now adds ReparentNotify messages into the queue
22236 - Now processes ReparentNotify messages and causes a
22237 WM_WINDOWPOSCHANGED message to be sent upstream if a window
22238 is reparented (as most likely it's X/Y coordinates are changed
22241 2005-12-14 Jackson Harper <jackson@ximian.com>
22243 * XplatUIX11.cs: Tool windows still need to respek focus.
22245 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
22247 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
22248 have a working release
22250 2005-12-13 Jackson Harper <jackson@ximian.com>
22252 * Form.cs: Update styles after setting the border style regardless
22253 of whether or not the window is using a window manager.
22255 2005-12-13 Jackson Harper <jackson@ximian.com>
22257 * Form.cs: We now hook into an internal window manager instead of just an
22258 MDI subsystem, this is so we can have properly behaving tool windows.
22259 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
22260 * InternalWindowManager.cs: New internal class that acts as a
22261 window manager for tool windows and as a base for mdi windows.
22262 * MdiWindowManager.cs: New class that acts as a window manager for
22265 2005-12-12 Jackson Harper <jackson@ximian.com>
22267 * Control.cs: Updates so we match behavoir for for implicit
22268 controls. Fixes explosions in MDI.
22270 2005-12-12 Jackson Harper <jackson@ximian.com>
22272 * Control.cs: Implement Invalidate (Region).
22274 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
22277 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
22278 the same events as MS does. MS fires events for each property
22279 except, for unknown reasons, Cursor, when the control is reparented.
22280 I can't seem to totally match add/remove since MS also fires some
22281 VisibleChanged events, which makes no sense. Consolidated the
22282 parenting code into a separate method so it can be called from
22283 both Add and Remove. set_Parent no longer needs any special logic
22284 as it calls the parent's add method which implicitly fires
22286 - Removed some obsolete code and debug output
22287 - Enabled state is inherited from parents, if this is enabled
22289 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
22291 * Form.cs: Removed commented out code
22293 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
22296 - Added internal version of Invoke, with additional argument
22297 indicating if we're calling it from a Dispose() handler. That
22298 way we can avoid BeginInvoke throwing an exception if we're
22299 calling for an already destroyed window.
22300 - Added a dispose argument to BeginInvokeInternal, and made the
22301 check if a valid window handle chain exists conditional on
22302 it not being a dispose call
22303 - Removed code in DestroyHandle to destroy our children. Since we
22304 now handle the WM_DESTROY message we will catch all our children
22306 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
22308 - Added a field to track the application context of the form.
22309 - No need to set closing variable as response to WM_CLOSE, instead
22310 we destroy the window. We also call PostQuitMessage if the form
22311 has an application context (which makes it the main app form,
22312 which, when closed terminates the app)
22314 - Dropped Exit() method, it's naming was confusing
22315 - Added PostQuitMessage() which causes GetMessage to return false
22316 once the message queue is empty
22317 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
22319 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
22320 no longer a valid XplatUI method, but left it in since it's used
22321 internally. Added empty PostQuitMessage() method.
22322 * MenuAPI.cs: Replaced call to Exit() with call to
22323 PostQuitMessage, even though this is probably no longer needed.
22324 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
22325 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
22327 - Replaced call to XplatUI.Exit() with PostQuitMessage()
22328 - Removed old debug code that would call XplatUI for exception
22329 display, enabled standard exception handling (Still not enabled
22330 though, until NativeWindow's ExternalExceptionHandler define
22333 - Added internal method to allow control to update NativeWindow
22334 after a window has been destroyed
22335 - Added handling of already destroyed windows when calling i
22337 - Added removal of handle from list on ReleaseHandle
22339 - Dropped GetMessageResult var and related code
22340 - Added PostQuitState to field to track if PostQuitMessage has been
22342 - Dropped Exit() method
22343 - Added PostQuitMessage() method
22344 - GetMessage now will return false if PostQuitState is set and no
22345 more messages are in the queue.
22346 - Expose handler will no longer generate WM_PAINT messages if we are
22347 in PostQuitState since it's very likely any windows have already
22348 been destroyed, and since Hwnd won't get updated until we have
22349 processed the DestroyNotify we'd be causing X errors.
22351 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22353 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
22354 Thanks to Mike for pointing out the err of my ways.
22356 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22358 * Control.cs(PreProcessMessage): Moved menu handling back, but
22359 after all other key handling, to match MS (who handles Menu in
22361 * Menu.cs (WndProc): Removed my brainfart
22363 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22365 * Control.cs(PreProcessMessage): Removed special menu handling
22366 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
22368 2005-12-07 Mike Kestner <mkestner@novell.com>
22370 * Control.cs : special case SYSKEYUP so that we can adjust keynav
22371 state according in tracker.
22372 * Menu.cs : promote tracker field to base class and provide a tracker
22373 lookup capability. Add/Remove shortcuts dynamically if the top menu
22374 has a tracker. Unparent items that are removed from the collection.
22375 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
22376 * Theme*.cs: add always_show_hotkeys field to support configurability
22377 of mnemonic display. win32 doesn't show mnemonics until Alt is
22380 2005-12-07 Jackson Harper <jackson@ximian.com>
22382 * MdiChildContext.cs: Use Control.ResetCursor.
22383 * Control.cs: ResetCursor needs to set the property so that the
22384 correct XplatUI call gets made.
22386 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22388 * Control.cs: More fixes to make our key events match MS. We
22389 were not setting the modifier state on KeyData, and we were
22390 not generating any events when Alt was pressed with a key
22391 since handling of WM_SYSxxx was missing for the OnKey methods.
22393 2005-12-07 Jackson Harper <jackson@ximian.com>
22395 * MdiChildContext.cs: reenable the sizing code.
22396 - When the mouse leaves a window reset its cursor.
22398 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
22400 * ThemeClearlooks.cs: Reflect latest Hwnd changes
22402 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
22404 * Hwnd.cs: Now using the theme 3d bordersize to calculate
22405 widths of Fixed3D borders
22407 2005-12-07 Jackson Harper <jackson@ximian.com>
22409 * MdiClient.cs: Fix warnings. Earn Mike's love.
22411 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
22413 * ThemeClearlooks.cs:
22414 - Adjusted mouse over button color
22415 - Added first parts of CheckBox drawing
22416 - Added correct color for selected text background
22417 - Fixed ComboBox drawing
22418 - Added CPDrawBorder3D and CPDrawBorder
22420 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22422 * XplatUIX11.cs: Added call to XBell for AudibleAlert
22424 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22426 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22427 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
22428 alert users via sound. We could add an enum arg with different
22429 types of alerts in the future
22431 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
22433 * Control.cs: Fix behaviour problems pointed out by Mike
22435 2005-12-05 Mike Kestner <mkestner@novell.com>
22437 * StatusBarPanel.cs: add Invalidate method and hook it into all the
22438 prop setters. Calls parent.Refresh for now, but could be maybe be
22439 optimized with an internal method on StatusBar at some point.
22442 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
22444 * RichTextBox.cs: Implemented get_SelectionColor
22446 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
22448 * ThemeClearlooks.cs:
22449 - Removed dead code
22450 - Draw black button border only if button is Form.AcceptButton
22451 - Draw correct button color for pressed RadioButton if the mouse
22452 has entered the button
22453 - Updated ProgressBar drawing!
22454 - Updated CPDrawSizeGrip drawing
22455 - Updated StatusBarPanel drawing
22457 2005-12-05 Mike Kestner <mkestner@novell.com>
22459 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
22460 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
22462 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
22464 * ThemeClearlooks.cs: Initial check-in, activate with
22465 export MONO_THEME=clearlooks
22466 * ThemeEngine.cs: Added ThemeClearlooks
22468 2005-12-03 Mike Kestner <mkestner@novell.com>
22470 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
22473 2005-12-02 Jackson Harper <jackson@ximian.com>
22475 * Form.cs: If the child form has no menu the default main menu is
22476 used as the active menu.
22478 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22480 * ListBox.cs: Check if any items exist before trying to resolve
22481 coordinates into items
22483 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22485 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
22486 as the second color for the background hatch
22488 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
22490 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
22491 * RichTextBox.cs: FormatText position arguments are 1-based, now making
22492 sure that what we pass to FormatText is always 1-based. Fixes #76885
22494 2005-11-29 Miguel de Icaza <miguel@novell.com>
22496 * NumericUpDown.cs (EndInit): When we are done initializing,
22497 reflect any updates on the UI.
22499 2005-12-02 Jackson Harper <jackson@ximian.com>
22501 * ImplicitHScrollBar.cs:
22502 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
22503 their container controls.
22504 * TreeView.cs: Use the new implicit scrollbars.
22506 2005-12-02 Jackson Harper <jackson@ximian.com>
22508 * TreeView.cs: Make top_node internal so the TreeNodeCollections
22510 * TreeNodeCollection.cs: If we remove the topnode we need to
22511 update topnode to the next node in line.
22512 - When clearing nodes go through the same process as removing
22513 them, so they get depareneted and checked if they are top node.
22515 2005-12-01 Jackson Harper <jackson@ximian.com>
22517 * TreeView.cs: When imagelists are used the image area is
22518 selectable as well as the text.
22519 - If there are no selected nodes select the first one.
22520 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
22521 so don't do it more then we need to.
22523 2005-12-01 Jackson Harper <jackson@ximian.com>
22525 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
22526 that arrows can be scaled.
22528 2005-12-01 Jackson Harper <jackson@ximian.com>
22530 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
22531 fail. Patch by Dieter Bremes
22533 2005-11-30 Jackson Harper <jackson@ximian.com>
22535 * Form.cs: Property is 2.0 only
22536 * PrintDialog.cs: Signature fix.
22538 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
22541 - No longer artificially moves text 2 pixels down (now that we have
22542 borders this is no longer needed)
22543 - Added calcs for left, hanging and right indent
22545 2005-11-23 Mike Kestner <mkestner@novell.com>
22547 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
22549 2005-11-30 Jackson Harper <jackson@ximian.com>
22551 * MdiChildContext.cs: Set the cloned menus forms, as these don't
22552 get cloned as part of CloneMenu ().
22553 * Menu.cs: Make sure the parent of the items get set correctly
22554 when they are added. And the owners are notified of the changes.
22555 * Form.cs: Create an ActiveMenu property, so that when MDI is used
22556 we can change the menu being displayed/handled by the form without
22557 changing the menu assosciated with the form.
22558 - Don't let Mdi children draw/handle menus.
22560 2005-11-30 Jackson Harper <jackson@ximian.com>
22562 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
22563 a MenuChanged event. Just to make the API a little more
22566 * MenuItem.cs: Use the new OnMenuChanged
22567 * MdiChildContext.cs: Handle menu merging.
22568 * Form.cs: Implement MergedMenu.
22570 2005-11-30 Jackson Harper <jackson@ximian.com>
22572 * Menu.cs: We were misusing Add. Add goes behind the specified
22573 index according to the docs, and does not replace the specified
22574 index. So I added an Insert method.
22576 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
22578 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
22579 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
22581 * RichTextBox.cs: Added calls to base for DnD events
22583 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
22586 - Fixed drag-selection related crash; style fixes
22587 - Implemented undo class
22588 o Implemented method to capture document state for specified
22589 range in document tree
22590 o Implemented method to restore captured document state
22591 o Implemented cursor tracking
22592 o Implemented basic undo stack
22593 - Added undo cursor tracking to methods altering cursor location
22594 - Added undo tracking to selection deletion (still missing
22595 other text-altering hookups)
22597 - Added SelectionLength property
22598 - Implemented CanPaste()
22599 - Implemented Paste()
22600 - Added missing protected methods
22601 - Fixed RTF->Document conversion; now uses font index 0 and color
22602 index 0 as the default font for the parsed text
22603 - Fixed RTF<->Document font size translation
22604 - Fixed RTF generation, now properly handles cross-tag boundaries
22605 for single line selection
22606 - No longer always appends blank line to generated RTF
22608 - Added missing attributes
22609 - Hooked up undo-related methods
22611 - Implemented Copy()
22612 - Implemented Paste()
22613 - Implemented Cut()
22614 - Fixed caret mis-behaviour on backspace across line-boundaries
22616 2005-11-29 Jackson Harper <jackson@ximian.com>
22618 * MdiClient.cs: Add a method for activating mdi children. Very
22619 basic right now. I imagine someday it might need more girth.
22620 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
22621 children windows names are added to the menu item.
22622 * ThemeWin32Classic.cs: Draw the arrow if the item is an
22623 mdilist. This happens regardless of whether or not there are any
22624 mdi windows to see in the list, and according to my tests happens
22625 before the items are even added. Also happens if there isn't even
22626 an mdi client to get windows from.
22628 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
22630 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
22631 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
22633 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
22635 * DataGridTableStyle.cs:
22636 - Create always the styles for the missing columns even if they are
22637 provided by the user (not default table style)
22640 - Fixes SetDataBinding (always re-attach source)
22641 - Fixes SetNewDataSource (only clear styles if they are not for
22643 - Expands OnTableStylesCollectionChanged to handle style refresh
22644 and remove properly
22646 2005-11-29 Jackson Harper <jackson@ximian.com>
22648 * FileDialog.cs: Implement missing bits, remove some dead
22650 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
22651 creation of the panel so that the options set on the dialog are
22652 seen when the panel is created.
22653 * TreeView.cs: raise a click when items are clicked.
22655 2005-11-29 Jackson Harper <jackson@ximian.com>
22657 * MdiClient.cs: Pass some signature methods through to base.
22659 2005-11-28 Jackson Harper <jackson@ximian.com>
22661 * ListView.cs: Raise the click event when items are clicked.
22663 2005-11-28 Jackson Harper <jackson@ximian.com>
22665 * MdiClient.cs: Make this algorithm even more beautiful. And fix
22668 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
22670 * ThemeNice.cs: - Removed 1 pixel bitmaps
22671 - Use SmoothingMode.AntiAlias where it makes sense
22672 (ScrollButton arrow for example)
22673 - Enhanced Button focus drawing
22674 - Fixed ComboBox drawing (no artefacts anymore, focus
22675 rectangle is back again, reduced size of ComboButton, etc.)
22676 - Fixed RadioButton focus drawing for Appearence.Button
22677 - Slight ScrollButton redesign
22678 - Some LinearGradientBrush size fixes
22679 - GroupBoxes have now rounded edges
22680 - Fixed StatusBar drawing
22682 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
22684 * ThemeNice.cs: - Remove dead code
22685 - use correct background colors for menus, etc.
22686 - Fake pixel drawing with 1 pixel bitmaps
22688 2005-11-24 Jackson Harper <jackson@ximian.com>
22690 * MdiClient.cs: Size the scrollbars when resizing the window.
22691 - Resize the maximized windows when the client is resized
22692 * Form.cs: Make the child context available
22694 2005-11-23 Jackson Harper <jackson@ximian.com>
22696 * MdiChildContext.cs: Don't size windows if they are maximized.
22698 2005-11-23 Mike Kestner <mkestner@novell.com>
22700 * ContextMenu.cs: use MenuTracker.
22701 * Control.cs: remove menu handle usage.
22702 * Form.cs: remove menu handle usage.
22703 * Hwnd.cs: remove menu handle usage.
22704 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
22705 motion and clicks to the new Tracker handlers.
22706 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
22708 * MenuAPI.cs: refactored to combine popup and menubar event handling.
22709 Killed the MENU and MENUITEM data types and associated collections
22710 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
22711 MenuTracker class that exposes the leftovers from the old MenuAPI
22712 static methods. Restructured Capture handling so that only one grab is
22713 done for the entire menu hierarchy instead of handing off grabs to
22714 submenus. Tracker now has an invisible control to Capture when active.
22715 * MenuItem.cs: add sizing accessors, kill Create
22717 * Theme.cs: remove menu handle and MENU(ITEM) usage.
22718 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
22719 MENU(ITEM). remove menu handle usage, use Menu directly.
22720 * XplatUIDriver.cs: remove menu handle usage.
22721 * XplatUIOSX.cs: remove menu handle usage.
22722 * XplatUIWin32.cs: remove menu handle usage.
22723 * XplatUIX11.cs: remove menu handle usage.
22725 2005-11-22 Jackson Harper <jackson@ximian.com>
22727 * Hwnd.cs: Don't compute the menu size for
22728 DefaultClientRectangle.
22729 - Reenable menu sizes being computed for GetClienRectangle.
22730 * Form.cs: Remove comment of trechery
22732 2005-11-22 Jackson Harper <jackson@ximian.com>
22734 * Hwnd.cs: The adjustments for the menu bar are made when it is
22735 attached to the form.
22737 2005-11-19 Jackson Harper <jackson@ximian.com>
22739 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
22740 (just like on windows).
22742 2005-11-19 Jackson Harper <jackson@ximian.com>
22744 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
22745 use real buttons anymore because they are in non client area. The
22746 one TODO here is that I need to somehow invalidate a section of
22747 the non client area.
22749 2005-11-18 Jackson Harper <jackson@ximian.com>
22751 * Control.cs: Put the enum check back in now that MDI doesnt have
22752 to use this to set border styles.
22753 * Form.cs: Only set mdi child windows borders if the handle has
22755 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
22756 this directly on to the driver.
22757 - Get the move start position before adjusting for the titlebar
22758 height, this fixes the windows "skipping" when they are first
22761 2005-11-18 Jackson Harper <jackson@ximian.com>
22763 * XplatUIX11.cs: Just compute the mdi borders separately as they
22764 don't totally match up with normal form borders.
22766 2005-11-18 Jackson Harper <jackson@ximian.com>
22768 * Control.cs: Set WS_ styles for borders, so that the driver does
22769 not have to retrieve the control instance to figure out what kind
22770 of borders it should have.
22771 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
22772 driver can know its an mdi child easily.
22773 * XplatUIX11.cs: Get the border styles and whether the window is
22774 MDI from the Styles and ExStyles params instead of having to get a
22775 control. This prevents a chicken and egg problem.
22777 2005-11-18 Jackson Harper <jackson@ximian.com>
22779 * MdiClient.cs: Fix typo so scrollbars show up correctly.
22781 2005-11-18 Jackson Harper <jackson@ximian.com>
22783 * MdiClient.cs: Calculate when to add and remove scrollbars
22785 * MdiChildContext.cs: Adjust the y position to take the titlebar
22787 - No height for FormBorderStyle.None
22789 2005-11-18 Jackson Harper <jackson@ximian.com>
22791 * Control.cs: Allow non enum values to be used for
22792 InternalBorderStyle. MDI does this to set a special border style.
22793 - New utility methods for converting points to/from client coords
22794 - Add the newly created control to the Controls collection before
22795 updating its style. This way UpdateStyle can walk the control
22796 heirarchy to find the control if needed.
22797 so I don't need to create a new Point object all the time.
22798 * Form.cs: Let MDI windows handle their border styles.
22799 - Set styles on MDI windows so the correct title style is derived.
22800 * MdiChildContext.cs: Move all the painting and window handling
22801 into the non client area.
22802 - Use correct sizing and put correct buttons on frames based on
22803 the FormBorderStyle.
22804 - Notify the mdi client about scrolling
22805 - Need to handle the buttons ourselves now, because they are all
22806 in non client areas and we can't add controls there.
22807 * MdiClient.cs: Halfway to scrolling, this implementation is
22808 somewhat broken though, we need to check to make sure other
22809 windows aren't causing scrolling before removing the bars. Also
22810 the bars need to be drawn on top, maybe I can switch implicit
22811 controls to be on top.
22812 * Hwnd.cs: caption_height and tool_caption_height are now
22813 properties of an hwnd, this way they can be set by the driver
22814 based on the type of window they are. In X11 the window manager
22815 handles the decorations so caption_height is zero unless its an
22817 - Add 3 pixel borders for MDI windows (0xFFFF).
22818 - Get rid of some code duplication, have DefaultClientRectanle
22819 just call GetClientRectangle.
22820 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
22822 - Set border styles differently for mdi windows.
22823 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
22826 2005-11-15 Mike Kestner <mkestner@novell.com>
22828 * Menu.cs: when adding an item to the collection, if item is already
22829 parented, remove it from the parent.
22831 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
22833 * X11DesktopColors.cs: Added KDE support
22835 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
22838 - Clipboard methods now can translate Rtf format
22839 - No longer removes clipboard contents whenever a new format is added
22840 to allow placing multiple formats on the clipboard
22841 * Clipboard.cs: Clipboard now supports getting a IDataObject and
22842 will place all formats contained in it onto the clipboard. Also
22843 now cleans the clipboard before placing a new object onto it
22845 - Implemented set_Rtf
22846 - Implemented set_SelectedRtf
22847 - Created InsertRTFFromStream() method to allow single code base
22848 for all properties and methods that insert RTF into document
22849 - Removed debug output
22851 - Fixed Delete(int) to fix up line numbers
22852 - Fixed ReplaceSelection to combine start and end line
22853 - Fixed serious DeleteChars bug that would leave the document tree
22855 - Improved DumpTree with several logic checks to detect broken
22857 - Removed debug lines
22858 - Fixed Caret.WordForward/WordBack moving code, now always also
22859 updates caret.tag (fixes crash when word-selecting across tag
22860 boundaries via keyboard)
22861 - Added Insert() method for inserting multiline text into documents
22862 - Fixed DeleteChars() calculation errors that would cause a broken
22863 tag chain with multiple tag lines
22864 - DeleteChars() no longer crashes on multi-tag lines if not all tags
22865 - Split() no longer moves caret if split is at caret location
22866 - ReplaceSelection() now updates the cursor and re-displays it
22867 - ReplaceSelection() now uses new Insert() method to avoid code
22869 - FormatText() can now handle formatting partial lines
22871 - Append now uses new TextControl.Insert() method (this avoids
22873 - Implemented Ctrl-X (Cut) (
22874 - Implemented Ctrl-C (Copy)
22875 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
22876 regeneration when pasting text; roundtripping Copy&Paste within
22877 edit control still fails due to some calculation bugs in GenerateRTF)
22878 - The Delete key will now remove the current selection if it is visible
22879 * TextBox.cs: Removed debug lines
22880 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
22881 driver to be initialized and can't therefore be done via a static ctor)
22883 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
22885 * TextControl.cs: Added backend code for finding char arrays and strings
22887 - Added mouse wheel scroll support
22888 - Added support for VScroll and HScroll events
22890 - Implemented all seven Find() variants
22891 - Implemented GetCharFromPosition()
22892 - Implemented GetCharIndexFromPosition()
22893 - Implemented GetLineFromIndex()
22894 - Implemented GetPositionFromCharIndex();
22895 - Implemented SaveFile for PlainText and UnicodeText
22896 - Fixed set_Font, now setting a new font applies that font to
22898 - Implemented generic Document to RTF converter
22899 - Implemented SaveFile for RichText format (still missing unicode
22900 conversion for non-ansi chars)
22901 - Implemented get_Rtf
22902 - Implemented get_SelectedRtf
22904 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
22906 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
22907 to allow any captures to be released before triggering OnClick. This
22908 way a click handler may capture the mouse without interference.
22909 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
22910 This way we send them even though X may not allow a grab (if the window
22911 isn't visible, for example)
22913 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
22915 * DataGridViewRowEventArgs.cs: DataGridView implementation
22916 * DataGridViewElement.cs: DataGridView implementation
22917 * DataGridViewComboBoxCell.cs: DataGridView implementation
22918 * DataGridViewDataErrorContexts.cs: DataGridView implementation
22919 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
22920 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
22921 * ImageLayout.cs: DataGridView implementation
22922 * DataGridViewComboBoxColumn.cs: DataGridView implementation
22923 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
22924 * DataGridViewSelectionMode.cs: DataGridView implementation
22925 * IDataGridViewEditingControl.cs: DataGridView implementation
22926 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
22927 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
22928 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
22929 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
22930 * DataGridViewColumnSortMode.cs: DataGridView implementation
22931 * DataGridView.cs: DataGridView implementation
22932 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
22933 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
22934 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
22935 * Padding.cs: DataGridView implementation
22936 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
22937 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
22938 * DataGridViewRowEventHandler.cs: DataGridView implementation
22939 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
22940 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
22941 * DataGridViewButtonCell.cs: DataGridView implementation
22942 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
22943 * DataGridViewEditMode.cs: DataGridView implementation
22944 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
22945 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
22946 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
22947 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
22948 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
22949 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
22950 * DataGridViewCellEventHandler.cs: DataGridView implementation
22951 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
22952 * DataGridViewCellStyleConverter.cs: DataGridView implementation
22953 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
22954 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
22955 * DataGridViewColumnEventArgs.cs: DataGridView implementation
22956 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
22957 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
22958 * QuestionEventArgs.cs: DataGridView implementation
22959 * IDataGridViewEditingCell.cs: DataGridView implementation
22960 * DataGridViewTriState.cs: DataGridView implementation
22961 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
22962 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
22963 * DataGridViewColumnCollection.cs: DataGridView implementation
22964 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
22965 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
22966 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
22967 * DataGridViewColumn.cs: DataGridView implementation
22968 * DataGridViewCellBorderStyle.cs: DataGridView implementation
22969 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
22970 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
22971 * DataGridViewRow.cs: DataGridView implementation
22972 * DataGridViewImageCellLayout.cs: DataGridView implementation
22973 * DataGridViewImageCell.cs: DataGridView implementation
22974 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
22975 * DataGridViewCheckBoxCell.cs: DataGridView implementation
22976 * DataGridViewHeaderCell.cs: DataGridView implementation
22977 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
22978 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
22979 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
22980 * DataGridViewTextBoxColumn.cs: DataGridView implementation
22981 * QuestionEventHandler.cs: DataGridView implementation
22982 * DataGridViewCellStyleScopes.cs: DataGridView implementation
22983 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
22984 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
22985 * DataGridViewCell.cs: DataGridView implementation
22986 * DataGridViewCellEventArgs.cs: DataGridView implementation
22987 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
22988 * DataGridViewCellStyle.cs: DataGridView implementation
22989 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
22990 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
22991 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
22992 * TextFormatFlags.cs: DataGridView implementation
22993 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
22994 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
22995 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
22996 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
22997 * DataGridViewButtonColumn.cs: DataGridView implementation
22998 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
22999 * HandledMouseEventArgs.cs: DataGridView implementation
23000 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
23001 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
23002 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
23003 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
23004 * DataGridViewRowCollection.cs: DataGridView implementation
23005 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
23006 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
23007 * DataGridViewHitTestType.cs: DataGridView implementation
23008 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
23009 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
23010 * DataGridViewColumnEventHandler.cs: DataGridView implementation
23011 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
23012 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
23013 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
23014 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
23015 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
23016 * DataGridViewContentAlignment.cs: DataGridView implementation
23017 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
23018 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
23019 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
23020 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
23021 * DataGridViewPaintParts.cs: DataGridView implementation
23022 * DataGridViewCellCollection.cs: DataGridView implementation
23023 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
23024 * DataGridViewImageColumn.cs: DataGridView implementation
23025 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
23026 * DataGridViewElementStates.cs: DataGridView implementation
23027 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
23028 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
23029 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
23030 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
23031 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
23032 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
23033 * DataGridViewRowHeaderCell.cs: DataGridView implementation
23034 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
23035 * DataGridViewTextBoxCell.cs: DataGridView implementation
23036 * DataGridViewBand.cs: DataGridView implementation
23037 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
23038 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
23039 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
23040 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
23041 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
23042 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
23043 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
23044 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
23045 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
23046 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
23047 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
23049 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
23051 * ThemeWin32Classic.cs:
23052 - Draw the outside focus rectangle around buttons
23053 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
23054 doesn't use end caps for every dash of a line anymore. This
23055 workaround ignores the forecolor.
23057 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
23059 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
23062 2005-11-07 Jackson Harper <jackson@ximian.com>
23064 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
23066 2005-11-07 Jackson Harper <jackson@ximian.com>
23068 * ScrollableControl.cs: Calculate the maximum and change vars
23069 (more) correctly so that scrollbars appear as a sensible size.
23071 2005-11-04 Jackson Harper <jackson@ximian.com>
23073 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
23075 * TreeView.cs: When the tree is sorted null out the top_node so
23076 that it is recalculated.
23077 - Use dotted lines instead of dashed lines to match MS better.
23079 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
23082 - Implements key search for items. Useful when browsing files with FileDialog
23083 - When changing view mode or when clear the items reset scrollbar positions
23085 2005-11-04 Jackson Harper <jackson@ximian.com>
23087 * CurrencyManager.cs: Implement the MetaDataChanged event, the
23088 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
23089 as to what the method may do as there is no real way of creating a
23090 derived CurrencyManager and calling the method.
23092 2005-11-03 Jackson Harper <jackson@ximian.com>
23094 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
23095 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
23096 method which seems to just be used internally to refresh the tabs.
23098 2005-11-03 Jackson Harper <jackson@ximian.com>
23100 * TabControl.cs: Implement the remove method. Fix some broken
23103 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23105 * DateTimePicker.cs:
23106 - Added missing DateTimePickerAccessibleObject class
23107 - Added missing events
23108 - Added OnFontChanged method
23109 * Form.cs: Added missing attributes
23110 * TreeView.cs: Added missing attributes
23112 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23114 * GridItemCollection.cs: Fix signatures
23116 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23118 * XplatUI.cs: Updated build rev/date
23119 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
23120 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
23121 * Application.cs: Trigger context-specific ExitThread events
23123 2005-11-03 Jackson Harper <jackson@ximian.com>
23127 * GridTableStylesCollection.cs:
23132 * MonthCalendar.cs: Signature fixes
23134 2005-11-03 Jackson Harper <jackson@ximian.com>
23136 * TreeNodeCollection.cs: Remove should not be virtual.
23137 * TreeView.cs: Implement the last of the missing methods.
23139 2005-11-03 Jackson Harper <jackson@ximian.com>
23141 * TreeNodeConverter.cs: Implement to get off my class-status back.
23143 2005-11-03 Jackson Harper <jackson@ximian.com>
23145 * TreeView.cs: Hookup the bits for drag and drop.
23146 * TreeNode.cs: Don't cache the tree_view or index anymore, now
23147 that nodes can be moved from tree to tree easily this just causes
23148 all sorts of problems.
23149 * TreeNodeCollection: Don't need to give treenodes an index and
23150 treeview anymore when they are added, these are computed on the
23151 fly. Also make sure to remove a node before its added.
23153 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
23156 - Added CaretSelection enum
23157 - Added comparison methods to Marker struct, makes selection code
23159 - Added SelectionStart and SelectionEnd as 'moveable' location for
23160 the CaretDirection enum and handler
23161 - Added selection_prev variable to track optimized invalidation for
23162 word and line selection
23163 - Added SelectionVisible property (returns true if there is a valid
23165 - Switched CaretHasFocus to only display the caret if there is no
23167 - Avoiding StringBuilder.ToString to retrieve a single char, instead
23168 using the direct character index; should be much faster
23169 - Added various conditional debug statements
23170 - Fixed invalidation calculation for selection ranges
23171 - Added ExpandSelection() method to support word and line selection
23172 - Switched SetSelectionToCaret to use new Marker compare overloads
23173 - Added central IsWordSeparator() method to determine word
23174 separators/whitespace and FindWordSeparator() to streamline common
23175 usage of IsWordSeparator()
23177 - Removed unneeded grabbed variable, it was just mirroring
23179 - No longer firing OnTextChanged event when Text setter is called,
23180 since the base will fire the event for us
23181 - Added handling of Ctrl-Up/Down selection
23182 - Added handling of Shift-Cursorkey selection
23183 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
23185 - Added handling of Shift and Ctrl-Shift-Home/End selection
23186 - Removed some debug output
23187 - Added handling for single/double/tripple-click to place caret/
23188 select word/select line respectively (Fixes bug #76031)
23189 - Added support for drag expansion of word/line selection
23190 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
23193 2005-11-02 Jackson Harper <jackson@ximian.com>
23195 * X11Dnd.cs: If the drag is going to and from a MWF window just
23196 copy the data instead of sending it out through the X Selection
23199 2005-11-02 Jackson Harper <jackson@ximian.com>
23202 * XplatUIX11.cs: When in a drag we don't want motion notify
23203 messages to get passed on to the other controls. This prevents
23204 mouse move messages from showing up in the drag source.
23206 2005-11-02 Jackson Harper <jackson@ximian.com>
23208 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
23209 the correct button is release to end a drag.
23210 * XplatUIX11.cs: Make the button state internal so the drag system
23211 can access it. Dragging needs to know about all button releases,
23212 not just left button.
23214 2005-11-02 Miguel de Icaza <miguel@novell.com>
23216 * Form.cs (Icon): If the icon is null, reset the icon to the
23219 * Cursor.cs: When writing the AND-mask bitmap do not include the
23220 number of colors, but hardcode those to two (black and white),
23221 fixes the loading of color cursors (Paint Dot Net).
23223 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
23224 turn off autoscaling.
23226 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
23228 2005-11-02 Jackson Harper <jackson@ximian.com>
23230 * X11Dnd.cs: Make sure to send a status message if the pointer
23231 enters a control that can not accept a drop, otherwise the cursor
23232 isn't updated correctly. Also tried to compress the lines of code
23235 2005-11-02 Jackson Harper <jackson@ximian.com>
23237 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
23238 set actions correctly. This isn't perfect as XDND and win32 have
23239 some differences on how you allow actions. I'll clear this up by
23240 adding a path for drag from MWF to MWF windows.
23241 * XplatUIX11.cs: Hook into the dnd system.
23243 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
23245 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
23246 previously shown but they are no longer need it. Very obvious when
23247 browsing files with FileDialog.
23249 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
23251 * Control.cs: We always need to call OnPaintBackground. We pretty much
23252 ignore AllPaintingInWmPaint and always do the painting there, whether
23253 it's set or not, since we always ignore the WM_ERASEBKGND message
23254 (which we don't generate on X11). This fixes #76616.
23255 * Panel.cs: Removed unneeded background painting. This happens properly
23256 in Control.cs already
23258 2005-10-31 Mike Kestner <mkestner@novell.com>
23260 * Menu.cs: Add items to collection before setting their index.
23261 * MenuItem.cs : add range checking with ArgumentException like MS.
23264 2005-10-31 Jackson Harper <jackson@ximian.com>
23266 * ListBox.cs: Invalidate if the area is visible at all not just
23267 contained in the visible rect. Fixes unselection of semi visible
23270 2005-10-31 Jackson Harper <jackson@ximian.com>
23272 * Control.cs: Consistently name the dnd methods. Make them
23273 internal so we can override them to match some MS behavoir
23275 * Win32DnD.cs: Use the new consistent names.
23277 2005-10-31 Jackson Harper <jackson@ximian.com>
23279 * TreeView.cs: Don't draw the selected node when we lose focus.
23281 2005-10-31 Jackson Harper <jackson@ximian.com>
23283 * X11Dnd.cs: We still need to reset the state even though a full
23284 reset isn't being done, otherwise status's still get sent all over
23287 2005-10-31 Jackson Harper <jackson@ximian.com>
23289 * Control.cs: Make the dnd_aware flag internal so the dnd
23290 subsystem can check it. Catch exceptions thrown in dnd handlers to
23292 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
23293 * X11Dnd.cs: Handle null data in the converters. Set the XDND
23294 version when sending a XdndEnter. Use the control/hwnd dnd_aware
23295 flags to reduce the number of dnd enters/status's sent.
23297 2005-10-31 Jackson Harper <jackson@ximian.com>
23299 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
23301 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
23303 * PictureBox.cs: Fixes 76512
23305 2005-10-28 Jackson Harper <jackson@ximian.com>
23307 * X11Dnd.cs: Early implementation to support winforms being a drag
23308 source for data on X11. Also restructured the converters so they
23309 can go both ways now.
23310 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
23312 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
23314 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
23317 2005-10-27 Jackson Harper <jackson@ximian.com>
23319 * TreeNode.cs: Implement serialization so my DnD examples will work.
23321 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
23323 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
23324 TreeView.cs: Don't dispose objects that are not owned.
23326 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
23328 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
23329 should retrieve the current cursor and report that, but XplatUI
23330 doesn't (yet) have an interface for that (and I'm not sure I even
23332 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
23333 until any message loop processing is done (and the WM_SETCURSOR
23334 replaces the cursor to the proper one)
23336 - Fixed override behaviour, we can't set the cursor globally on X11,
23337 just for our windows.
23338 - Invalidating the System.Drawing X11 display handle when we are
23340 * Control.cs: Fix to make csc happy
23342 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
23345 - get_Text: Add last line (without trailing newline) to returned
23346 value (Fixes 76212)
23347 - get_TextLength: Count last line in returned length
23348 - ToString: Call Text property instead of duplicating code
23350 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
23352 * ImageList.cs: Dispose ImageAttributes objects.
23354 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
23356 * ImageList.cs: Use attribute constructors with less arguments where
23359 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
23361 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
23362 Use typeof instead of strings when assembly is referenced. Added
23363 some more comments.
23365 2005-10-21 Jackson Harper <jackson@ximian.com>
23367 * ListView.cs: Raise a double click event. Also tried to somewhat
23368 fix when the selectedindexchanged event is raised. Its still
23371 2005-10-21 Jackson Harper <jackson@ximian.com>
23373 * TreeView.cs: New method to invalidate the plus minus area of a
23374 node without invalidating the whole node (maybe this can be used
23375 in some more places).
23376 * TreeNodeCollection.cs: When adding to an empty node we need to
23377 invalidate its plus minus area so the little block shows up.
23379 2005-10-21 Jackson Harper <jackson@ximian.com>
23381 * TreeView.cs: Make sure that when we invalidate a node the bounds
23382 are big enough to cover the selected box and the focus
23383 rectangle. Use a different colour for the lines connecting nodes
23384 so they show up with all themes.
23386 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23388 * NativeWindow.cs: Don't call anything that could call into the driver,
23389 we might be on a different thread.
23391 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23393 * Control.cs(Dispose): Since Dispose might run on a different thread,
23394 make sure that we call methods that could call into the driver via
23395 invoke, to avoid thread issues
23397 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
23399 * XplatUI.cs: Removed finalizer
23400 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
23401 not allowing to be called on the finalizer thread.
23403 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
23406 - Reverted r51889 and r51891.
23407 - Added ImageListItem class that stores unmodified image items and image
23408 properties required to create list images until handle is created.
23409 - Added AddItem and moved image creation logic to AddItemInternal.
23410 - Added CreateHandle method that creates images based on unmodified items.
23411 - Added DestroyHandle that changes state to store unmodified items.
23412 - Add and AddStrip methods no more create handle.
23413 - ReduceColorDepth has no return value.
23414 - Dispose destroys handle.
23415 - Modified other methods to reflect the above changes.
23416 - Implemented key support.
23417 - Added profile 2.0 members and attributes.
23418 - Added private Reset and ShouldSerialize methods that provide the same
23419 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
23420 them as they are private.
23421 - Added some more comments about implementation details.
23423 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23425 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
23427 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23429 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
23431 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
23433 * DataGridDrawingLogic.cs: Fixes column hit calcultation
23434 * DataGridColumnStyle.cs: Remove debug message
23436 2005-10-20 Jackson Harper <jackson@ximian.com>
23438 * TreeView.cs: We can always get input keys regardless of whether
23439 or not editing is enabled. They are used for navigation.
23441 2005-10-20 Jackson Harper <jackson@ximian.com>
23443 * TreeNode.cs: Use the viewport rect for determining if a node
23444 needs to be moved for visibility. Don't use Begin/End edit. This
23445 calls a full refresh when its done.
23446 * TreeView.cs: New SetBottom works correctly. Make the viewport
23447 rect property internal so the treenodes can see it. When clicking
23448 on a node we need to ensure that its visible because it might just
23449 be partly visible when clicked.
23451 2005-10-20 Jackson Harper <jackson@ximian.com>
23453 * TreeNodeCollection.cs: Remove debug code.
23455 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
23457 * Datagrid.cs: Implements column sorting in Datagrid
23458 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
23460 2005-10-20 Jackson Harper <jackson@ximian.com>
23462 * TreeNodeCollection.cs: Remove items properly. Update the correct
23463 area after removing them.
23465 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
23467 * Datagrid.cs: Should not call base.OnPaintBackground
23469 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23471 * XplatUIX11.cs (GetMessage):
23472 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
23473 window instead of client window
23474 - Now properly calculates NC_xBUTTONUP message coordinates
23475 - ScreenToMenu now properly calculates it's coordinates of whole
23476 window, since menus are in the whole window, not in the client
23478 - Added WholeToScreen coordinate translation method
23480 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23482 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
23483 want to return a message, loop back to the beginning of the function
23484 and grab the next real message to process instead.
23486 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
23488 * Splitter.cs: Properly set limits if no filler control is used
23490 2005-10-19 Jackson Harper <jackson@ximian.com>
23492 * ColorDialog.cs: Don't show the help button if it is not enabled
23493 instead of disabling it (this is what MS does). Don't create the
23494 panel until the dialog is run, otherwise the vars (such as
23495 ShowHelp) are not set yet.
23497 2005-10-19 Jackson Harper <jackson@ximian.com>
23499 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
23500 are reduced when adding nodes.
23502 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
23505 2005-10-19 Jackson Harper <jackson@ximian.com>
23507 * FolderBrowserDialog.cs: End editing our treeview so the window
23508 actually gets refreshed.
23510 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
23512 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
23513 Obsoleted handling of WM_ERASEBKGND, now always draws our background
23516 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23518 * MenuAPI.cs: Returns after Hidding window
23519 * XplatUIX11.cs: Added TODO found while debugging menu issues
23521 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
23523 * XplatUIX11.cs: Do not re-map the whole window when it's size
23524 becomes non-zero unless it's supposed to be actually visible
23526 2005-10-18 Jackson Harper <jackson@ximian.com>
23528 * TreeView.cs: We don't need to keep a count anymore.
23529 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
23530 use the Grow method.
23532 2005-10-18 Jackson Harper <jackson@ximian.com>
23534 * TreeNodeCollection.cs: Insert is not supported on arrays, so
23535 implement it manually here.
23537 2005-10-18 Jackson Harper <jackson@ximian.com>
23539 * ImageList.cs: Dont kill the list when the colour depth is
23540 changed, just change the colour depth of all the images.
23541 - Same goes for setting the image size. Just resize them all
23542 instead of killing the list softly.
23544 2005-10-18 Jackson Harper <jackson@ximian.com>
23546 * Control.cs: Don't invalidate empty rectangles.
23548 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23551 - Adds checked item to the Checked/Item lists (where empty before)
23552 - Do not add items to the Selected lists if they are already present
23554 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
23555 - When deleting items make sure that we delete them for the Selected
23556 and Checked list also.
23558 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
23560 * Label.cs: Dispose objects no longer used
23561 * ThemeWin32Classic.cs: Dispose objects no longer used
23563 2005-10-18 Jackson Harper <jackson@ximian.com>
23565 * TabControl.cs: Don't refresh the whole control when the tabs are
23566 scrolled, we just need to refresh the tab area.
23568 2005-10-17 Jackson Harper <jackson@ximian.com>
23570 * XplatUIX11.cs: Compress code a little bit. Only calculate the
23571 after handle when we need it.
23573 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
23575 * Control.cs: When the parent size changes, recalculate anchor
23576 positions. Partial fix for #76462
23578 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
23580 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
23581 drawn. Fixes #76462
23583 2005-10-17 Jackson Harper <jackson@ximian.com>
23585 * MonthCalendar.cs: Don't create the numeric up down until our
23586 handle is created. Otherwise our handle is created in the
23587 constructor and we don't know if we are a WS_CHILD or WS_POPUP
23590 2005-10-17 Jackson Harper <jackson@ximian.com>
23592 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
23595 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
23596 * TreeNode.cs : small logical fix (was using local var instead of field)
23598 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
23600 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
23602 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
23604 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
23606 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
23609 - Re-implemented anchoring code. My first version was really broken.
23610 This fixes bug #76033. Unlike the previous implementation we will
23611 no longer have round errors since all numbers are calculated from
23612 scratch every time. Removed various anchor-related obsolete vars.
23613 - InitLayout no longer causes layout event firing and layout to be
23616 2005-10-16 Jackson Harper <jackson@ximian.com>
23618 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
23621 2005-10-16 Jackson Harper <jackson@ximian.com>
23623 * TabControl.cs: Remove debug code.
23625 2005-10-16 Jackson Harper <jackson@ximian.com>
23627 * XEventQueue.cs: Increase the default queue size (very simple
23628 apps needed to grow the queue).
23629 * Hwnd.cs: No finalizer so we don't need to suppress
23630 finalization. Compute the invalid area manually so a new rectangle
23631 does not newto be created.
23632 * ScrollableControl.cs: Don't set any params (otherwise visibility
23633 isn't set correctly).
23634 * MdiChildContext.cs: New constructor takes the mdi parent so it
23635 doesn't have to be computed and avoids a crash on windows. Draw
23636 the window icon properly, and allow the text to be seen.
23637 * Form.cs: Use new MdiChildContext constructor. Make sure the
23638 child context isn't null in wndproc.
23639 * TabControl.cs: Don't set focus, this is muddling keyboard
23640 behavoir. Expand the tab rows when a window size increase will
23641 allow extra tabs to be seen. Don't allow tabs smaller than the
23642 width of a window to be scrolled out of view.
23644 * TreeView.cs: Use measure string to calculate a nodes width, the
23645 width is cached and only updated when the text or the font is
23646 changed. Don't check for expand/collapse clicks on the first level
23647 nodes if root lines are disabled.
23649 2005-10-16 Ritvik Mayank <mritvik@novell.com>
23651 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
23653 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
23655 * DataGridBoolColumn.cs: fixes warning
23657 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
23659 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
23660 to match more to match more precisely the MS Net behavior
23662 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23664 * Hwnd.cs: Added field to track if window is mapped
23666 - Unmap windows if they become 0-size, re-map when
23667 they are >0 again; fixes #76035
23668 - Re-set our error handler after initializing X11Desktop
23669 to override any error handlers Gtk or whatever was called
23672 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23674 * CheckedListBox.cs: Removed unused vars
23675 * ListView.cs: Fixed signatures
23676 * RichTextBox.cs: Removed unused vars
23677 * TextBoxBase.cs: Removed unused vars
23678 * XplatUIWin32.cs: Removed unused vars
23679 * XplatUIX11.cs: Removed unused vars
23680 * XplatUI.cs: Updated version and date to latest published
23682 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23684 * Cursor.cs: Added private .ctor to work around a bug in
23685 resourceset (Thanks to Geoff Norton for the help on this)
23686 * SplitterEventArgs.cs: Made fields accessible so we don't
23687 waste boatloads of objects and can reuse the same one
23689 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
23690 any captions and borders when generating screen coordinates
23691 * Splitter.cs: Reimplemented control, now fully complete, uses
23692 rubberband drawing, supports and obeys all properties, has
23695 2005-10-13 Miguel de Icaza <miguel@novell.com>
23697 * Form.cs (Form): Setup default values for autoscale and
23698 autoscale_base_size; Make these instance variables, not static
23701 (OnLoad): on the first load, adjust the size of the form.
23703 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
23705 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
23706 width argument to DrawReversibleRectangle()
23707 * XplatUIWin32.cs, XplatUIX11.cs:
23708 - Implemented width for DrawReversibleRectangle()
23709 - Added logic to DrawReversibleRectangle that recognizes a zero
23710 width or height and only draws a line in that situation
23712 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
23714 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
23715 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
23716 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
23717 method (it uses our FosterParent window to get a graphics context)
23719 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
23721 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
23722 and SetWindowBackground methods
23724 - Setting proper ControlStyles
23725 - We no longer call XplatUI.SetWindowBackground and XplatUI.
23726 EraseWindowBackground, instead we draw the window background
23727 ourselves in PaintControlBackground. This behaviour is
23728 required to match MS, where, when OnPaintBackground is not
23729 called, the background is not drawn.
23730 - Removed unneeded Refresh() in set_Text
23731 * Hwnd.cs: Dropped the ErasePending support. No longer needed
23733 - Created DeriveStyles method to translate from CreateParams to
23734 FormBorderStyle and TitleStyle, also handles BorderStyle (which
23735 matches FormBorderStyle enum values)
23736 - Consolidated SetHwndStyles and CalculateWindowRect border/title
23737 style calculations into single DeriveStyles method
23738 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
23739 from redrawing the whole window on any resize or expose.
23740 - Fixed CreateWindow usage of SetWindowValuemask. Before not
23741 all styles were applied to our whole/client window appropriately
23742 - Removed EraseWindowBackground() and SetWindowBackground() methods
23743 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
23744 no longer clear/redraw the background through X
23745 - Removed handling of erase_pending bit, we have no use for it (or
23748 - Removed generation and handling of WM_ERASEBKGND message
23749 - Removed EraseWindowBackground() and SetWindowBackground() methods
23750 - Removed handling of hwnd.ErasePending flag
23752 - Removed EraseWindowBackground() and SetWindowBackground() methods
23753 - We no longer call EraseWindowBackground on PaintEventStart, we
23754 ignore the fErase flag, erasing is handled in Control in the
23756 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
23757 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
23758 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
23759 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
23760 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
23761 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
23762 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
23764 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
23766 * PropertyGrids.cs: Get sub properties
23767 * PropertyGridView.cs: Fix drawing code
23769 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23771 * ListBox.cs: Fixes 76383
23773 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23775 * DataGridTextBoxColumn.cs: Sets location and size before attachment
23776 * ThemeWin32Classic.cs: Fixes border drawing and calculations
23777 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
23780 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23782 * ComboBox.cs: Fixes border drawing
23784 2005-10-10 Miguel de Icaza <miguel@novell.com>
23786 * MimeIcon.cs: Ignore errors if the file can not be read.
23788 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
23790 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
23791 - Fixed border calculations
23792 - Fixed horizontal scrolling in single column listboxes
23793 - Fixed drawing issues
23795 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
23797 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
23798 FormBorderStyle enum
23799 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
23800 code to determine FormBorderStyles from CreateParams
23802 - Fixed bug where we'd set the wrong window styles if we were
23803 not creating an MDI window
23804 - Added call to XplatUI.SetBorderStyle when form borders are set
23805 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
23807 - Removed obsolete edge style
23808 - Switched from BorderStyle to FormBorderStyle
23810 2005-10-10 Jackson Harper <jackson@ximian.com>
23812 * Form.cs: Use the property to get the window handle instead of
23813 accessing it directly. Prevents a null reference exception.
23815 2005-10-10 Jackson Harper <jackson@ximian.com>
23817 * TreeView.cs: Don't adjust the rect given to DrawString now that
23818 our libgdiplus draws correctly.
23820 2005-10-08 Jackson Harper <jackson@ximian.com>
23822 * TreeView.cs: Don't try to find the clicked on node if there are
23823 no nodes in the tree.
23825 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
23831 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
23833 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
23834 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
23836 Use ResPool for brushes and dispose System.Drawing objects that
23837 are not used anymore.
23839 2005-10-07 Jackson Harper <jackson@ximian.com>
23841 * MdiChildContext.cs: Use the new borders instead of drawing them
23844 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
23846 * Calling UpdateBounds after changing the window's BorderStyle
23847 since the style can change the ClientSize
23849 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23851 * Control.cs: Made PaintControlBackground virtual
23852 * Panel.cs: Overriding PaintControlBackground instead of using paint
23853 event; paint event method was interfering with 'real' users of the
23856 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
23858 * ThemeWin32Classic.cs: remove border drawing since it is handled
23859 by the base control class now and was causing double border drawing.
23861 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23863 * Panel.cs: Redraw our background on paint. Not a pretty solution,
23864 but it does seem to match MS behaviour. This fixes bug #75324
23866 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23868 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
23869 somewhat hackish looking
23871 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23874 - We now accept Enter even if AcceptEnter is false, if the containing
23875 form does not have an AcceptButton configured (fixes bug #76355)
23876 - Calculations are now fixed to no longer use Width/Height, but
23877 ClientSize.Width/Height, since we now support borders (this was
23878 a result of fixing borders and therefore bug #76166)
23879 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
23880 true (fixes bug #76354)
23882 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23885 - Defaulting BorderStyle and setting it in XplatUI when our window
23887 - Added enum check to InternalBorderStyle setter
23889 - Added drawing of window borders
23890 - Now properly calculates WM decorations offset for toplevel
23891 windows (fixes bug #74763)
23893 - Implemented BorderStyles for windows (we're letting win32 draw
23895 - Fixed the signature for SetWindowLong
23896 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
23897 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
23899 * UpDownBase.cs: Remove drawing of borders, this is handled by
23900 the driver, outside the client area
23901 * ListView.cs: Removed bogus border calculations. The control should
23902 be oblivious to borders, since those are not part of the client
23904 * X11DesktopColors.cs: Commented out (currently) unneeded variables
23905 * ThemeWin32Classic.cs: Removed border calculations from ListView
23908 2005-10-06 Jackson Harper <jackson@ximian.com>
23910 * MdiChildContext.cs: Clear out the old virtual position remove
23911 all the unneeded calls to CreateGraphics.
23913 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23915 * TextControl.cs: Use proper color for highlighted text; fixes #76350
23917 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23920 - Added loading and setting of our new default icon
23921 - Only set icon if window is already created
23923 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
23926 - Do not explicitly set the foreground and background colors, to
23927 allow inheriting from parents (fixes #76302)
23928 - Use Control's InternalBorderStyle property to deal with borders
23930 2005-10-06 Jackson Harper <jackson@ximian.com>
23932 * MdiChildContext.cs: Use the new xplatui function to draw a
23935 2005-10-06 Jackson Harper <jackson@ximian.com>
23937 * Form.cs: Add the parent before creating the child context cause
23938 we need the parent when setting up the child.
23940 2005-10-06 Jackson Harper <jackson@ximian.com>
23942 * FolderBrowserDialog.cs: redo the tree population code so a
23943 second thread isn't used. Should be a lot faster and more stable
23946 2005-10-05 Jackson Harper <jackson@ximian.com>
23948 * TreeView.cs: There are no expand/collapse boxes if the node has
23951 2005-10-05 Jackson Harper <jackson@ximian.com>
23953 * X11DesktopColors.cs: Get menu colours for the gtk theme.
23955 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
23957 * FileDialog.cs: Fix InitialDirectory
23959 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
23962 - Fixes changing between styles
23963 - Fixes simple mode
23964 - Fixes last item crashing when navigating with keyboard
23966 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
23968 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
23970 2005-10-05 Jackson Harper <jackson@ximian.com>
23972 * TreeView.cs: If updating the root node do a full refresh.
23973 * TreeNode.cs: The root node should be expanded by default. Also
23974 added a utility prop to tell if we are the root node.
23975 * TreeNodeCollection.cs: Only refresh if the node we are being
23976 added to is expanded. Also added a comment on a potential
23979 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
23981 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
23982 in dispose method. Fixes #76330
23984 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
23986 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
23988 - Implements vertical and horizontal scrolling using XplatUI
23989 - Fixes keyboard navagation
23990 - Fixes EnsureVisible
23992 - Handles and draws focus properly
23995 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
23997 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
23998 Create handle. NET_2_0: Destroy handle when value is null.
24000 2005-10-03 Jackson Harper <jackson@ximian.com>
24002 * ScrollBar.cs: My last scrollbar patch was broken. This is a
24003 revert and a new patch to prevent the thumb from refreshing so
24006 2005-10-02 Jackson Harper <jackson@ximian.com>
24008 * ScrollBar.cs: Don't update position if it hasn't actually
24009 changed. This occurs when you hold down the increment/decrement
24010 buttons and the thumb gets to the max/min.
24012 2005-10-01 Jackson Harper <jackson@ximian.com>
24015 * MdiChildContext.cs:
24016 * MdiClient.cs: Implement ActiveMdiChild in Form.
24018 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
24020 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
24022 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
24024 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
24027 2005-09-30 Jackson Harper <jackson@ximian.com>
24029 * ListBox.cs: Don't do a full refresh unless some data has
24032 2005-09-30 Jackson Harper <jackson@ximian.com>
24034 * TreeView.cs: Make sure that the checkboxes size is factored in
24035 even when not visible.
24037 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
24039 * FileDialog.cs: Fix Jordi's build break
24041 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
24044 - Use standard the Windows colours for the combobox as espected
24045 - Dispose objects that use resouces when no longer need them
24047 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
24049 * X11DesktopColors.cs: Initial incomplete implementation
24050 * XplatUIX11.cs: Added call to initialize X11DesktopColors
24052 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
24055 - Switched Theme color names to match the names defined in
24056 System.Drawing.KnownColors. Life's hard enough, no need to make
24058 - Added setters to all theme color properties so themes can set
24059 their color schemes. The setters also propagate the color changes
24060 to System.Drawing.KnownColors via reflection
24061 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
24062 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
24063 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
24064 use the new, more logical theme color names
24065 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
24067 * ThemeWin32Classic.cs:
24068 - Removed code to set the old classic Windows colors. Instead it
24069 now relies on the colors returned by System.Drawing.KnownColors
24070 which will be either modern static colors (Unix) or colors
24071 read from the user's configuration (Win32)
24072 - Updated to use the new, more logical theme color names
24073 - Switched DataGrid drawing code to use only Theme colors instead of
24074 a mix of System.Drawing.KnownColors and Theme colors
24075 - DrawFrameControl(): Removed code that fills the button area, the
24076 fill would overwrite any previous fill done by a control. This
24078 - Added DrawReversibleRectangle() stub
24079 * ScrollableControl.cs: Set visible state to false when scrollbars
24080 are removed (pdn fix)
24081 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
24082 DrawReversibleRectangle() method to allow drawing primitive
24084 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
24086 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24088 * ImageList.cs: Add(Icon): Create handle.
24090 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
24093 * ThemeWin32Classic.cs:
24094 - Fixes detail mode
24096 - Issues with drawing
24098 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24100 * ImageList.cs: Moved RecreateHandle back to ImageList as event
24101 source has to be the ImageList.
24103 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24105 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
24107 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24109 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
24111 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24113 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
24115 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
24116 * GridItem.cs: Fixed TODOs
24117 * GridItemCollection.cs: Added ICollection interface
24119 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
24121 * ImageList.cs: Resize icons when needed.
24123 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
24126 - Fixes GetBounds and returns on screen rects
24128 - Fixes vertical and horzintal scrolling of items
24129 * ThemeWin32Classic.cs:
24132 2005-09-29 Raja R Harinath <harinath@gmail.com>
24134 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
24136 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
24138 * ImageList.cs: Added comments about handle creation. Moved Handle,
24139 HandleCreated and OnRecreateHandle implementations to ImageCollection.
24140 Handle is created in Add methods.
24142 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
24144 * DataGridDrawingLogic.cs:
24145 - Takes rows into account on Colum calculations
24146 - Returns the column when clickig
24148 - Fixes default HitTestInfo values
24149 - Fixes HitTestInfo.ToString
24150 - Fixes ResetBackColor
24152 2005-09-28 Jackson Harper <jackson@ximian.com>
24154 * MdiChildContext.cs: Obey rules for fixed sized windows (no
24155 sizing or cursor changes). Also added some temp code to draw the
24156 titlebars text (Makes dev a little easier).
24158 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
24160 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
24162 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
24164 * ListBox.cs: Fixes bug 76253
24166 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
24168 * ImageList.cs: Added comments about the current implementation. Added
24169 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
24170 Format32bppArgb to preserve transparency and can use Graphics.FromImage
24171 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
24172 with Bitmap.LockBits for better performance. Revised the whole file to
24173 match MS.NET behaviour and provide better performance. Non-public
24174 interface members are calling public members even when they throw
24175 NotSupportedException for better maintainability. Moved ColorDepth,
24176 ImageSize, ImageStream and TransparentColor implementations to
24177 ImageCollection for better performance as these properties are not used
24179 * ImageListStreamer.cs: Added a new internal constructor that takes an
24180 ImageList.ImageCollection and serializes Images based on
24181 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
24182 match ImageList property name.
24184 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
24186 * ListBox.cs: Fixes IndexFromPoint for last item
24188 2005-09-27 Jackson Harper <jackson@ximian.com>
24190 * Form.cs: Set the position of new mdi children correctly.
24192 2005-09-27 Jackson Harper <jackson@ximian.com>
24194 * MdiClient.cs: New mdi children need to be added to the back of
24195 the controls collection so the zorder is set correctly. Also add a
24196 count of all the child windows that have been created.
24198 2005-09-27 Jackson Harper <jackson@ximian.com>
24200 * Form.cs (CreateParams): Setup MDI forms correctly.
24202 2005-09-27 Jackson Harper <jackson@ximian.com>
24204 * MdiChildContext.cs:
24205 * MonthCalendar.cs:
24211 * ScrollableControl.cs:
24212 * ComboBox.cs: Add implicit controls using the new implict control
24213 functionality in ControlCollection. Also try to block multiple
24214 control add in a suspend/resume layout to save some cycles.
24216 2005-09-27 Jackson Harper <jackson@ximian.com>
24218 * Control.cs: Add functionality to the controls collection to add
24219 'implicit controls' these are controls that are created by the
24220 containing control but should not be exposed to the user. Such as
24221 scrollbars in the treeview.
24222 * Form.cs: The list var of the ControlsCollection is no longer
24223 available because of the potential of implicit controls getting
24224 ignored by someone accessing the list directly.
24226 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
24228 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
24229 loose it's parent. (Fixed bug introduced in r49103 when we added
24230 setting the child parent to null on Remove)
24232 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
24234 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
24235 * Splitter.cs: Added missing attributes for BorderStyle property.
24236 * TextBoxBase.cs: Marked Calculate* methods internal.
24237 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
24240 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
24242 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
24244 2005-09-25 Jackson Harper <jackson@ximian.com>
24246 * TreeView.cs: Update the node bounds correctly regardless of
24247 whether the node is visible.
24249 2005-09-25 Jackson Harper <jackson@ximian.com>
24251 * ImageList.cs: Don't dispose the image after it is added to the
24252 image list. Only reformat images that need to be resized.
24254 2005-09-25 Jackson Harper <jackson@ximian.com>
24256 * ImageList.cs: Don't set the format when changing the image.
24258 2005-09-25 Jackson Harper <jackson@ximian.com>
24260 * TreeView.cs: We can't just assume the node has a font. Use the
24261 treeviews font if no node font is available.
24263 2005-09-25 Jackson Harper <jackson@ximian.com>
24265 * TreeView.cs: Allow the scrollbars to be reset with negative
24267 - Don't add scrollbars to negative sized windows.
24269 2005-09-23 Jackson Harper <jackson@ximian.com>
24271 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
24272 old Mono.Posix. Also remove some stray code that shouldn't have
24275 2005-09-23 Jackson Harper <jackson@ximian.com>
24277 * TreeView.cs: Attempt at proper sizing of the horizontal
24278 scrollbar. Also don't resize the scrollbars unless they are
24281 2005-09-23 Jackson Harper <jackson@ximian.com>
24283 * TreeView.cs: We don't need to expand the invalid area when the
24284 selection changes, as this is all drawn in the node's bounding
24285 box. The area needs to be expanded (previous typo was contracting
24286 it) when the focus rect moves.
24288 2005-09-23 Jackson Harper <jackson@ximian.com>
24290 * TreeView.cs: Display the selection box under the correct
24291 circumstances. We were rendering white text with no selection box
24294 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
24296 * TextControl.cs(Split): Now updates selection start/end if it points
24297 into a line that's being split. Fixes a FIXME and bug #75258
24299 2005-09-23 Jackson Harper <jackson@ximian.com>
24302 * ListControl.cs: Don't use the path when retrieving binding
24303 managers from the binding context. My bat sense tells me that the
24304 path is only used on insertion.
24306 2005-09-22 Jackson Harper <jackson@ximian.com>
24308 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
24310 2005-09-22 Jackson Harper <jackson@ximian.com>
24312 * Splitter.cs: There are special cursors used for splitting.
24313 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
24315 2005-09-22 Jackson Harper <jackson@ximian.com>
24317 * Splitter.cs: Change the cursor appropriately when the splitter
24318 is moused over, so the user actually knows there is a splitter
24321 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24323 * Label.cs : Fix ToString method to give same output as MS.NET
24325 2005-09-22 Jackson Harper <jackson@ximian.com>
24327 * TreeView.cs: Create the scrollbars when the handle is created
24328 and add them right away, just make them invisble. Also account for
24329 the window being shrunk vertically to the point that the vert
24330 scrollbar needs to be added.
24331 - Remove some 0.5 adjustments to get around anti aliasing issues.
24333 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
24335 * MainMenu.cs: Fixes default value
24336 * MenuItem.cs: Fixes default value
24338 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
24340 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
24342 2005-09-21 Jackson Harper <jackson@ximian.com>
24344 * Control.cs: Don't try to set the border style on the window if
24345 it hasn't been created. When the window is created the border
24346 style will be used.
24348 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24350 * Control.cs (Update): Don't call XplatUI if we don't have a
24353 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24355 * ContainerControl.cs: Instead of throwing an exception, print
24356 a one-time warning about Validate not being implemented
24357 * XplatUIWin32.cs: Removed debug output
24359 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24361 * Control.cs: Only set XplatUI background if we expect the windowing
24362 system to handle the background. This stops controls that draw their
24363 own background from flickering
24365 * XplatUIX11.cs: Support custom visuals and colormaps for window
24366 creation. This allows, amongst other things, using MWF X11 windows
24369 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
24371 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
24372 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
24373 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
24374 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
24375 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
24376 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
24377 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
24378 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
24379 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
24380 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
24381 GridColumnStylesCollection.cs,
24382 IDataGridColumnStyleEditingNotificationService.cs,
24383 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
24384 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
24385 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
24386 TreeNodeCollection.cs, AmbientProperties.cs,
24387 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
24388 DataObject.cs, ErrorProvider.cs, Splitter.cs,
24389 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
24390 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
24391 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
24392 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
24393 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
24394 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
24395 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
24396 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
24397 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
24398 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
24399 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
24400 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
24401 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
24402 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
24403 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
24404 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
24405 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
24406 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
24407 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
24408 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
24409 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
24410 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
24411 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
24412 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
24413 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
24414 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
24415 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
24416 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
24417 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
24418 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
24419 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
24420 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
24421 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
24422 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
24423 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
24425 2005-09-21 Jackson Harper <jackson@ximian.com>
24427 * TreeNode.cs: Call Before/After Expand not Collapse when
24430 2005-09-20 Jackson Harper <jackson@ximian.com>
24432 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
24434 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
24438 - Fixes proper storing of subitems
24439 - Fixes not updated items
24441 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
24443 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
24444 things if our window handle isn't created yet. Also disabled
24445 debug for TextBoxBase
24447 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
24449 * MenuAPI.cs: Remove filtering of events to allow menu usage
24451 2005-09-20 Miguel de Icaza <miguel@novell.com>
24453 * Cursor.cs: Allow null to be passed to Cursor.Current.
24455 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
24457 * ThemeWin32Classic.cs:
24458 - Change some private methods/fields to protected virtual so that
24459 they can be accessed and overriden in derived classes
24460 - First refactoring of some methods. Derived themes now don't
24461 need to duplicate the complete code from ThemeWin32Classic
24463 - Added nice StatusBar
24464 - Derive from ThemeWin32Classic and not Theme
24465 - Removed duplicate ThemeWin32Classic code
24467 2005-09-20 Miguel de Icaza <miguel@novell.com>
24469 * Control.cs (ControlCollection.Add): If the value null is passed
24470 the control is ignored.
24472 Optimize this loop.
24474 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
24476 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
24477 PostQuitMessage state.
24478 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
24480 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
24482 * Application.cs: Our constructor will never get called, move
24483 initialization to fields; fixes bug #75933
24485 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24488 - Allow files to be selected properly using file name
24490 - Add ability to change diretory (absolute / relative)
24491 using file name combo box.
24493 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
24496 - Fixes Multicolumn listboxes item wrong calculations
24497 - Allows to click when only one item is in the listbox
24498 - Fixes crash when no items using keyboard navigation
24500 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
24502 * ComboBox.cs: Reverted almost everything from the latest patch which
24505 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
24508 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
24510 - When DropDownStyle is Simple, it does not show scrollbar
24511 to the last item of the list.
24512 - When DropDownStyle is Simple, it crashed when the list was
24513 scrolled down with the down cursor key.
24514 - Fixed a bug that when DropDownStyle is DropDownList, the
24515 selected item was not shown.
24516 - The position of the selected item was not preserved when
24517 the next dropdown happened.
24518 * ThemeWin32Classic.cs:
24519 - Items were wrapped at the right end.
24520 * CheckedListBox.cs:
24523 - Items should be fully shown.
24524 - When resizing and vertical scrollbar disappeared, the item
24525 of index 0 should be on the top of the list.
24526 - GetItemRectangle should consider the size of ver. scrollbar
24528 - SizingGrip area should not be allocated when it is not
24530 - Now it reflects MinWidth of the containing panel and
24531 fixed a crash that happens when its width becomes so small.
24533 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
24535 * CheckedListBox.cs: Fixes bug 76028
24536 * ListBox.cs: Fixes bug 76028
24538 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
24540 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
24541 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
24543 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
24545 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
24547 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24549 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
24551 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24553 * IRootGridEntry.cs: Added
24554 * PropertyGridCommands.cs: Added
24555 * PropertiesTab.cs: Added missing methods and property
24556 * PropertyGridView.cs: Made class internal
24557 * PropertyGridTextBox.cs: Made class internal
24559 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24561 * MimeIcon.cs: Try to check some other environment variables
24562 if "DESKTOP_SESSION" returns "default"
24564 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24566 * ThemeNice.cs: Corrected background colors (e.g. menus)
24567 * ColorDialog.cs: Use correct background colors for controls
24569 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
24571 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
24573 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
24575 * RichTextBox.cs: Added initial implementation
24576 * lang.cs: Removed. Was accidentally checked in long time ago
24577 * TODO: Removed. Contents were obsolete
24579 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
24581 * PropertiesTab.cs : Added
24583 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
24585 * PropertyGrid.cs : Update
24586 * PropertyGridView.cs : Update
24587 * System.Windows.Forms.resx : Added images and strings
24589 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
24591 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
24593 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
24595 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
24596 a busy loop right after the Ungrab the X11 display is otherwise
24599 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
24601 * ThemeWin32Classic.cs: Optimise the use of clipping
24603 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
24605 * DataGrid.cs: fixes recursion bug
24607 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
24610 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
24613 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
24615 * ThemeNice.cs: Draw nice ProgressBars
24617 2005-09-01 Miguel de Icaza <miguel@novell.com>
24619 * VScrollBar.cs: Another buglet found by Aaron's tool.
24621 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
24624 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
24627 - Added nicer menu drawing
24631 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24633 * CreateParams.cs (ToString): Made output match MS
24634 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
24635 handle is already created (to avoid forcing window creation)
24636 * XplatUIX11.cs: Set window text to caption after creating window,
24637 in case Text was set before window was created
24638 * Form.cs: Use this.Text instead of a static string as caption
24640 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24642 * NotifyIcon.cs: Don't set the window to visible; this screws
24643 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
24644 OnPaint without a bitmap)
24645 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
24646 happen very often anyway; we could add the check to the WM_PAINT
24647 event generation code
24649 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24651 * NotifyIcon.cs: Fill the icon area with a background color, to
24652 avoid 'residue' when transparent icons are drawn
24654 - Handle whole_window == client_window when destroying windows
24655 - SystrayAdd(): Set client_window to whole_window value to
24656 get mouse and other events passed to NotifyIcon
24658 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
24660 * Form.cs: Set proper default for Opacity property
24662 - ShowSystray(): Don't bother creating telling the OS
24663 about the systray item if no icon is provided
24664 - Now handles WM_NCPAINT message to deal with whole/client window
24666 - Create window as visible to not get caught by Expose optimization
24667 * Hwnd.cs: Removed debug message
24668 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
24669 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
24670 PaintEventStart/End to use new client argument
24672 - Commented out debug messages
24673 - Switched PaintEventStart/End to use new client argument
24674 * XplatUI.cs: Added client window bool to PaintEventStart()/
24675 PaintEventEnd() calls, to support drawing in non-client areas
24676 * XplatUIDriver.cs:
24677 - Added client window bool to PaintEventStart()/PaintEventEnd()
24678 calls, to support drawing in non-client areas
24679 - Added conditional compile to allow using MWF BeginInvoke
24682 - Added some conditional debug output
24683 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
24684 whole/client window split
24685 - Implemented handling of client argument to PaintEventStart()/End()
24687 - Throw exception if BeginInvoke() is called and the window handle
24688 or one of the window's parent handles is not created
24689 - Added conditional compile to allow using MWF BeginInvoke on
24691 - get_Parent(): Only sets parent if handle is created. This avoids
24692 forcing window handle creation when parent is set.
24693 - Now fires Layout and Parent changed events in proper order
24694 - Switched to use Handle instead of window.Handle for Z-Order setting,
24695 the get_Parent() patch above causes us to possibly get null for 'window'
24696 - Implemented handling of client argument to PaintEventStart()/End()
24697 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
24699 - Now sends a Refresh() to all child windows when Refresh() is called
24701 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
24703 * Form.cs: Added (non-functional) Opacity property
24704 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
24706 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
24707 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
24708 use export MONO_THEME=nice to activate it.
24709 Currently supported controls:
24713 - TabControl (TabAlignment.Top only, other will follow)
24714 * ThemeEngine.cs: Add theme nice
24715 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
24718 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
24720 * Splitter.cs: Resize docked control and its neighbor.
24722 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
24723 -- Making Windows with Menus layout correctly --
24724 * Form.cs : The first leg of the fix
24725 Menu setter - adjust Client Size as needed to make space for the menu
24726 SetClientSizeCore - doesn't call base version to be able to pass the
24727 menu handle to XplatUI.CalculateWindowRect
24728 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
24729 * XplatUIX11.cs: The critical second leg of the fix
24730 GetWindowPos needs to use a recalculated client_rect
24731 so that resizing the window doesn't break layout of child controls.
24732 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
24733 Lots of \t\n killed
24735 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
24737 * Label.cs: Now properly recalculates width and height on Font and Text
24738 changes if AutoSize is set
24740 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
24741 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
24743 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
24745 * ImageList.cs: Makes ToString method compatible with MS
24747 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
24749 * MenuAPI.cs: fixes bug 75716
24751 2005-08-11 Umadevi S <sumadevi@novell.com>
24752 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
24754 2005-08-11 Umadevi S <sumadevi@novell.com>
24755 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
24757 2005-08-10 Umadevi S <sumadevi@novell.com>
24758 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
24760 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
24762 * Menu.cs: fixes bug 75700
24763 * MenuAPI.cs: fixes navigation issues
24765 2005-08-09 Umadevi S <sumadevi@novell.com>
24766 * CheckedListBox.cs - simple fix for GetItemChecked.
24768 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
24770 * ComboBox.cs: Serveral fixes
24771 * ListBox.cs: Serveral fixes
24773 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
24775 * ComboBox.cs: Fixes FindString methods and GetItemHeight
24776 * ListBox.cs: Fixes FindString methods
24778 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
24780 * DataGrid.cs: fixes bugs exposed by new tests
24782 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
24784 * Mime.cs: Compile Mono assembly references only if compiling
24785 with Mono (Allows to build with VS.Net again)
24787 2005-07-28 Marek Safar <marek.safar@seznam.cz>
24789 * Control.cs (PaintControlBackground): Draw background image
24791 (CheckForIllegalCrossThreadCalls): Stubbed.
24793 * Form.cs (OnCreateControl): Center when should be centered.
24795 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
24797 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
24799 * Binding.cs: Binding to properties should be case unsensitive
24801 2005-07-18 vlindos@nucleusys.com
24803 * DataGrid.cs: fixes setmember order
24805 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
24807 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
24808 * FileDialog.cs: FileDialog is now resizable and uses the new
24811 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
24813 * DataGridTextBoxColumn.cs: default value
24814 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
24815 * GridTableStylesCollection.cs: fixes checking MappingName
24816 * DataGridDrawingLogic.cs: fixes drawing logic issues
24817 * DataSourceHelper.cs: rewritten to make compatible with more data sources
24818 * DataGrid.cs: fixes
24820 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
24822 * MimeGenerated.cs: Use case sensitive comparer for
24823 NameValueCollections
24825 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
24827 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
24828 * ThemeWin32Classic.cs: bug fixes, code refactoring
24829 * DataGridDrawingLogic.cs: bug fixes, code refactoring
24830 * DataGrid.cs: bug fixes, code refactoring
24831 * DataGridTextBox.cs: bug fixes, code refactoring
24832 * DataGridColumnStyle.cs: bug fixes, code refactoring
24833 * Theme.cs: bug fixes, code refactoring
24835 2005-07-01 Peter Bartok <pbartok@novell.com>
24837 * TextControl.cs: Quick fix for the reported crash on ColorDialog
24838 and other text box usage
24840 2005-07-01 Jackson Harper <jackson@ximian.com>
24842 * TabControl.cs: Make sure the bottom of the tab covers the pages
24845 2005-06-30 Peter Bartok <pbartok@novell.com>
24847 * Form.cs (ShowDialog): Assign owner of the dialog
24848 * TextBoxBase.cs: Always refresh caret size when deleting, caret
24849 might have been moved to a tag with different height
24851 2005-06-30 Jackson Harper <jackson@ximian.com>
24853 * Form.cs: Don't create an infinite loop when setting focus
24854 * MenuItem.cs: Don't dirty the parents if we don't have any
24856 2005-06-29 Ben Maurer <bmaurer@ximian.com>
24858 * LibSupport.cs: Rename
24860 2005-06-29 Peter Bartok <pbartok@novell.com>
24862 * TextBoxBase.cs: Re-align caret after deleting a character
24864 - DeleteChars(): Ensure that tag covers the provided position
24865 - StreamLine(): Drop reference for dropped tag
24867 2005-06-29 Peter Bartok <pbartok@novell.com>
24870 - Selections now work properly, anchoring at the initial location
24871 and properly extending in either direction (SetSelectionToCaret(),
24872 SetSelectionStart() and SetSelectionEnd())
24873 - No longer redraws the whole control on selection change, now
24874 calculates delta between previous and new selection and only
24875 invalidates/redraws that area
24876 - Fixed FindPos() math off-by-one errors
24877 - Changed DeleteChars() to verify the provided tag covers the
24878 provided position, selections may have a tag that doesn't cover
24879 the position if the selection is at a tag border
24880 - Fixed off-by-one errors in DeleteChars()
24881 - Added missing streamlining check in DeleteChars() to remove
24883 - Implemented Invalidate() method, now properly calculates exposures
24884 between two given lines/positions
24885 - Implemented SetSelection()
24886 - Obsoleted and removed FixupSelection()
24887 - Improved RecalculateDocument() logic, removing code duplication
24889 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24891 * LibSupport.cs: changes to match different input/output arguments.
24893 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24895 * LibSupport.cs: added libsupport.so init routine.
24897 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
24899 * ControlBindingsCollection.cs
24900 - Throws an exception on null datasource when adding
24901 - Checks for duplicated bindings when adding
24903 2005-06-28 Jackson Harper <jackson@ximian.com>
24905 * TreeView.cs (OnKeyDown): Support left and right properly
24906 (navigates as well as expanding and collapsing.
24907 - Add support for Multiply, this expands all the selected nodes
24909 - Fix some tabbing.
24911 2005-06-28 Jackson Harper <jackson@ximian.com>
24913 * TreeView.cs: Implement keyboard navigation, currently supports,
24914 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
24915 support for toggling checkboxes with the space bar.
24917 2005-06-28 Jackson Harper <jackson@ximian.com>
24919 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
24922 2005-06-28 Jackson Harper <jackson@ximian.com>
24924 * TreeView.cs: Add missing event.
24926 2005-06-27 Peter Bartok <pbartok@novell.com>
24929 - Made line ending size configurable (now allows for counting
24930 lineendings as \n or \r\n)
24931 - Added margin to viewport to keep caret visible on right side
24932 - Fixed translation routines for line/pos to documentpos to consider
24933 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
24934 - Fixed some line-endings to be unix style
24935 - Fixed Document.FormatText to perform it's calculations 1-based
24936 - Added descriptions for a few methods that might otherwise get
24938 - Added NOTE section with some basic conventions to remember at
24939 the top of the file
24940 - Major fixup for RichTextBox selection drawing:
24941 * Fixed crashes when multiple tags on a single line were selected
24942 * fixed selection box drawing not overlaying text
24943 * fixed bogus offset calculation for tags not starting at index 1
24944 * Switched behaviour from using multiple Substrings of a
24945 StringBuilder.ToString() to using multiple
24946 StringBuilder.ToString(start, length) statements, hoping this is
24947 faster (kept original version commented out in the code, in case
24948 original version was faster)
24949 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
24951 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
24954 2005-06-27 Jackson Harper <jackson@ximian.com>
24956 * TabControl.cs: Move to the left and right with the arrow
24957 keys. These keys don't cycle beyond first and last like
24958 tab. Refresh all the tabs when scrolling them to the left or
24961 2005-06-27 Jackson Harper <jackson@ximian.com>
24964 - ToString: Added method
24965 - CreateParams: Remove TODO and comment
24966 - OnKeyDown: Cycle through bounds properly.
24967 - SelectedIndex: Scroll to the right or left if we need to
24968 display the newly selected tab.
24970 2005-06-23 Jackson Harper <jackson@ximian.com>
24972 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
24975 2005-06-23 Jackson Harper <jackson@ximian.com>
24977 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
24978 CTRL-SHIFT-TAB, and HOME, END are there any others?
24980 2005-06-23 Jackson Harper <jackson@ximian.com>
24982 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
24984 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
24986 * DataGridTextBoxColumn.cs: fixes and enhancements
24987 * ThemeWin32Classic.cs: fixes and enhancements
24988 * DataGridBoolColumn.cs: fixes and enhancements
24989 * DataGridDrawingLogic.cs: fixes and enhancements
24990 * CurrencyManager.cs: fixes and enhancements
24991 * DataGrid.cs: fixes and enhancements
24992 * DataGridColumnStyle.cs: fixes and enhancements
24994 2005-06-22 Jackson Harper <jackson@ximian.com>
24996 * TabControl.cs: Add some missing methods that just call into the
24997 base. Make the TabPageCollection's IList interface behave in the
24998 same manner as the MS implementation.
25000 2005-06-22 Peter Bartok <pbartok@novell.com>
25002 * TextControl.cs: Added sanity check
25004 - Fixed wrapping behaviour, don't set wrap on single line controls
25005 (this fixes the breakage of colordialog introduced in an earlier
25007 - Added rudimentary support for autoscrolling right-aligned controls
25008 (still needs fixing, also, center alignment scroll is missing)
25010 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
25012 * ScrollBar.cs: Fixes thumbpos on Maximum values
25014 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
25016 * PropertyGridView.cs: Pass context information to UITypeEditors
25018 2005-06-21 Peter Bartok <pbartok@novell.com>
25021 - Now calling PositionCaret with absolute space coordinates
25022 - Enabled vertical scrolling
25023 - Better tracking of scrollbar changes, tied into WidthChange
25025 - Improved cursor tracking
25026 - Removed debug output
25028 - PositionCaret coordinates are now works in absolute space, not
25030 - Improved tracking of document size
25031 - Added events for width and height changes
25033 2005-06-21 Peter Bartok <pbartok@novell.com>
25035 * Form.cs: Set focus to active control when form is activated
25037 - Added word-wrap functionality to RecalculateLine()
25038 - Added some short function descriptions for VS.Net to aid in
25039 writing dependent controls
25040 - Added Caret property, returning the current coords of the caret
25041 - Added ViewPortWidth and ViewPortHeight properties
25042 - Added Wrap property
25043 - Added CaretMoved event
25044 - Removed some old debug code
25045 - Split() can now create soft splits
25046 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
25047 - Added method to format existing text
25048 - Fixed size/alignment calculations to use viewport
25049 - RecalculateDocument now can handle changing line-numbers while
25053 - Added some wrap logic, we don't wrap if alignment is not left
25054 - Added casts for scrollbar var, base class switched types to
25055 also support RichTextBoxA
25056 - Implemented handling of scrollbar visibility flags
25059 - Switched scrollbars type to RichTextBoxScrollBars to support
25061 - Added tracking of canvas width/height
25062 - Switched scrollbars to be not selectable (to keep focus on text)
25063 - Added central CalculateDocument() method to handle all redraw
25065 - Added ReadOnly support
25066 - Added WordWrap support
25067 - Fixed handling of Enter key (we now treat it as a DialogKey)
25068 - Fixed caret positioning when h or v scroll is not zero
25069 - Fixed placing/generation of vertical scrollbar
25070 - Added CalculateScrollBars() method to allow updating scrollbar
25071 limits and visibility
25072 - Fixed handling of horizontal scroll
25073 - Added handling of vertical scroll
25074 - Implemented auto-'jump' when caret moves to close to a left or
25075 right border and there is text to be scrolled into view (currently
25076 there's the potential for a stack overflow, until a bug in
25077 scrollbar is fixed)
25079 2005-06-21 Geoff Norton <gnorton@customerdna.com>
25081 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
25083 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
25087 - return application/x-zerosize for files with size zero
25088 (if no extension pattern matches).
25089 - check matches collection for strings too.
25090 - return only the first mime type if the name value
25091 collection has more than one mime type.
25093 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
25095 * PropertyGrid.cs: Cleaned up some TODOs
25096 * PropertyGridView.cs: Added support for UITypeEditors
25098 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
25100 * DataGrid.cs: clears cached value
25102 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
25104 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
25105 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
25106 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
25107 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
25109 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
25111 * ThemeWin32Classic.cs: fixes colour
25113 2005-06-15 Peter Bartok <pbartok@novell.com>
25115 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
25116 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
25117 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
25118 * Control.cs: Added some MWFCategory and MWFDescription attributes
25119 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
25121 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
25123 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
25126 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
25128 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
25129 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
25130 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
25131 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
25132 * DataGrid.cs: default datagrid settings for Default Styles, fixes
25133 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
25135 2005-06-13 Jackson Harper <jackson@ximian.com>
25137 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
25138 isn't printed when the user enables dropping. (X11 does accept
25141 2005-06-13 Jackson Harper <jackson@ximian.com>
25143 * TreeView.cs: Remove some TODOS.
25145 2005-06-13 Jackson Harper <jackson@ximian.com>
25147 * Form.cs: Hook into the mdi framework.
25148 * MdiClient.cs: Use the base control collections add method so
25149 parents get setup correctly. Set the default back colour and dock
25151 * MdiChildContext.cs: New class, this bad actor handles an
25152 instance of an MDI window. Right now there is only basic
25153 support. You can drag, close, and resize windows. Minimize and
25154 Maximize are partially implemented.
25156 2005-06-13 Jackson Harper <jackson@ximian.com>
25158 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
25159 freaky when both vals are negative. NOTE: There are probably other
25160 places in XplatUIX11 that this needs to be done.
25162 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
25164 * DataGrid.cs: implement missing methods, move KeyboardNavigation
25165 * DataGridColumnStyle.cs: fixes signature
25167 2005-06-12 Jackson Harper <jackson@ximian.com>
25169 * XplatUIX11.cs: Use sizing cursors similar to the ones on
25172 2005-06-11 Jackson Harper <jackson@ximian.com>
25174 * StatusBarPanel.cs: Signature cleanups. Implement
25177 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
25179 * DataGridTextBoxColumn.cs: Honors aligment
25180 * GridColumnStylesCollection.cs: Contains is case unsensitive
25181 * GridTableStylesCollection.cs: several fixes
25182 * DataGridTableStyle.cs: default column creation
25183 * DataGridDrawingLogic.cs: fixes
25184 * CurrencyManager.cs: ListName property
25185 * DataGrid.cs: multiple styles support
25186 * DataGridColumnStyle.cs: fixes
25189 2005-06-10 Peter Bartok <pbartok@novell.com>
25191 * Control.cs(Select): Moved SetFocus call to avoid potential
25192 loops if controls change the active control when getting focus
25193 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
25194 the up/down buttons
25196 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
25198 * ImageListConverter.cs: Implemented
25200 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
25202 * MonthCalendar.cs: Wired in NumericUpDown control for year
25204 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
25206 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
25207 DoubleClick events, since they are not meant to be fired.
25209 2005-06-09 Peter Bartok <pbartok@novell.com>
25211 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
25212 Jonathan's standalone controls into MWF, implemented missing
25213 events, attributes and methods; added xxxAccessible classes
25214 * AccessibleObject.cs: Made fields internal so other classes
25215 can change them if needed
25217 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
25219 * UpDownBase.cs: Complete implementation
25220 * NumericUpDown.cs: Complete implementation
25221 * DomainUpDown.cs: Complete implementation
25223 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
25225 * DataGridTextBoxColumn.cs: drawing fixes
25226 * DataGridCell.cs: fixes ToString method to match MSNet
25227 * DataGridTableStyle.cs: fixes
25228 * DataGridBoolColumn.cs: fixes, drawing
25229 * DataGridDrawingLogic.cs: fixes, new methods
25230 * DataGridTextBox.cs: Keyboard and fixes
25232 - Keyboard navigation
25234 - Row selection (single, multiple, deletion, etc)
25237 2005-06-07 Jackson Harper <jackson@ximian.com>
25239 * ThemeWin32Classic.cs: Clear the background area when drawing
25242 2005-06-06 Peter Bartok <pbartok@novell.com>
25244 * ImageListStreamer.cs: Fixed signature for GetData
25245 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
25247 - Added missing ChildAccessibleObject class
25248 - Added missing OnXXXFocus overrides, switched to using those
25249 instead of the event handler
25251 - Added Parent property for ControlAccessibleObject
25254 - Added ResetBindings()
25255 * ListBindingConverter.cs: Implemented some methods
25256 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
25257 * ImageList.cs: Implemented basic handle scheme, removed TODOs
25258 * ContainerControl.cs: Fixed signature, now subscribing to the
25259 ControlRemoved event instead of overriding the handler, LAMESPEC
25260 * CurrencyManager.cs: Added missing attribute
25261 * MonthCalendar.cs: Added missing properties
25263 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
25265 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
25267 2005-06-06 Gaurav Vaish and Ankit Jain
25269 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
25270 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
25272 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
25274 * Control.cs: fixes CreateParams Width / Height.
25276 2005-06-05 Peter Bartok <pbartok@novell.com>
25278 * Win32DnD.cs: Removed compilation warnings
25280 2005-06-05 Peter Bartok <pbartok@novell.com>
25282 * Control.cs (CreateParams): Since we don't know if one of the
25283 properties we use is overridden, lets make sure if we fail accessing
25284 we continue with a backup plan
25286 2005-06-05 Peter Bartok <pbartok@novell.com>
25289 - Removed debug output
25290 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
25292 - Plugged resource leak
25293 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
25296 2005-06-05 Peter Bartok <pbartok@novell.com>
25298 * XplatUIWin32.cs: Removed DnD code
25299 * Win32DnD.cs: Implemented drop source and drop target functionality
25301 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25303 * UpDownBase.cs: remove duplicate addition of event, enable some code
25304 that was commented out.
25305 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
25306 Validate input when a key is pressed. It works fine now for every
25307 combination of Hexadecimal. Only missing some drawing love when sharing
25308 space with other controls.
25310 2005-06-04 Peter Bartok <pbartok@novell.com>
25313 - We need to pass a window for DragDrop, so enable callback events
25314 - Added DnD callback events when being a DragSource
25315 * XplatUI.cs (StartDrag): Added window handle argument
25316 * XplatUIDriver.cs (StartDrag): Added window handle argument
25317 * QueryContinueDragEventArgs: Made fields internally accessible so
25318 drivers can set them
25319 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
25322 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
25324 * DataGridTextBoxColumn.cs: column text editing
25325 * DataGridTableStyle.cs: Respect columns styles created by the user
25326 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
25327 * DataGridBoolColumn.cs: bool column editing
25328 * DataGrid.cs: fixes to scrolling, properties, etc
25329 * DataGridTextBox.cs: handle keyboard
25330 * DataGridColumnStyle.cs: fixes
25332 2005-06-02 Jackson Harper <jackson@ximian.com>
25334 * ImageListStreamer.cs: Somewhat broken implementation of
25335 GetObjectData. The RLE needs some work to match MS properly.
25337 2005-06-02 Jackson Harper <jackson@ximian.com>
25339 * X11Dnd.cs: Attempting to keep at least one file in MWF
25342 2005-06-02 Peter Bartok <pbartok@novell.com>
25344 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
25347 2005-06-02 Peter Bartok <pbartok@novell.com>
25349 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
25350 * XplatUI.cs: Added DoDragDrop() method
25351 * XplatUIDriver.cs: Added DoDragDrop() method
25353 2005-06-02 Jackson Harper <jackson@ximian.com>
25355 * Splitter.cs: Implement BorderStyle.
25357 2005-06-02 Jackson Harper <jackson@ximian.com>
25359 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
25360 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
25363 2005-06-02 Peter Bartok <pbartok@novell.com>
25366 - Added Data setter
25367 - Fixed broken insertion code for SetData, now also
25368 overwrites any existing entry of the same format name
25369 * Hwnd.cs: Added list of pointers that automatically gets
25370 freed when the window is disposed
25371 * XplatUI.cs: Call driver initialization method when loading
25374 - OnDragLeave takes EventArgs, not DragEventArgs
25375 - Added setting of WS_EX_ACCEPTFILES style when dropping is
25377 - Forces style update when drop state changes
25378 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
25379 not perfect since we cannot (yet) call the IDataObject.GetData()
25380 method, we keep getting 0x80004005 error, dunno why)
25382 2005-06-02 Peter Bartok <pbartok@novell.com>
25384 * DragEventArgs.cs: Make fields internal so we can cache the
25385 object and re-set the fields from XplatUI
25387 2005-06-02 Jackson Harper <jackson@ximian.com>
25389 * Control.cs: Add some internal methods so the DnD subsystem can
25390 raise DnD events. Also call into the driver when AllowDrop is set.
25392 * XplatUIDriver.cs: New method for setting whether or not a window
25393 is allowed to accept drag and drop messages.
25395 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
25397 * ScrollBar.cs: Make sure that values sent in Scroll events
25398 are always between Maximum and Minimum.
25400 2005-06-01 Marek Safar <marek.safar@seznam.cz>
25402 * Menu.cs: Call MenuChanged when menuitem visibility has been
25404 * MenuItem.cs: Rebuild menu when item is (not) visible.
25405 * MainMenu.cs: MainMenu has special MenuChanged.
25406 * Theme.cs: Caption and FrameBorderSize are not fixed.
25407 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
25408 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
25410 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
25411 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
25413 2005-05-30 Jackson Harper <jackson@ximian.com>
25415 * DataFormat.cs: We can't statically initialize this stuff because
25416 it calls into the xplatui and could create a loop. So we lazy init
25419 2005-05-28 Jackson Harper <jackson@ximian.com>
25421 * Control.cs: Proper implementation of Product(Name/Version).
25423 2005-05-27 Jackson Harper <jackson@ximian.com>
25425 * DataObject.cs: Dont crash if no data is found.
25427 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
25428 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
25429 as per status page, guessing it should be set to true
25431 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
25433 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
25434 * DataGridTableStyle.cs: set proper formatting text, def header text
25435 * ThemeWin32Classic.cs: new themable paramaters
25436 * DataGridBoolColumn.cs: paint check box, get data, fixes
25437 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
25438 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
25439 * DataGridColumnStyle.cs: fixes
25440 * Theme.cs: new themable paramaters
25442 2005-05-26 Peter Bartok <pbartok@novell.com>
25444 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
25446 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25447 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
25449 2005-05-24 Peter Bartok <pbartok@novell.com>
25451 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
25452 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
25453 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
25454 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
25455 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
25456 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
25457 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
25458 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
25459 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
25460 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
25461 missing attributes, etc
25462 * DataGridPreferredColumnWidthTypeConverter.cs: Added
25464 2005-05-24 Peter Bartok <pbartok@novell.com>
25466 * Help.cs: Added, implemented trivial functions, throws up MessageBox
25467 when user tries to get help
25468 * DataObject.cs, DataFormats.cs, LinkArea.cs,
25469 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
25470 to suppress warnings
25471 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
25472 avoid unreachable code warning
25474 2005-05-20 Peter Bartok <pbartok@novell.com>
25476 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
25478 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25480 * DataGridTextBoxColumn.cs: Basic painting methods
25481 * DataGridTableStyle.cs: Set table style in the column
25482 * ThemeWin32Classic.cs: Use Theme for colors
25483 * DataGridDrawingLogic.cs: Implement more drawing
25484 * DataGrid.cs: drawing, theming, enhacements, fixes
25485 * DataGridColumnStyle.cs: fixes, drawing
25486 * Theme.cs: theming for Datagrid
25488 2005-05-20 Peter Bartok <pbartok@novell.com>
25490 * Cursor.cs: Implemented GetObjectData() method
25492 2005-05-20 Peter Bartok <pbartok@novell.com>
25494 * Cursors.cs: Added setting of cursor name
25496 - Implemented constructors
25497 - Implemented Draw and DrawStretched
25498 - Implemented Current property
25499 - Implemented == and != operators
25500 - Implemented Dispose()
25501 - Implemented ToString
25502 - Added missing attributes
25504 - Added missing reset for OverrideCursor when DoEvents is called
25505 - Fixed creation of cursor, logic was wrong
25507 - Added missing reset for OverrideCursor when DoEvents is called
25508 - Fixed creation of cursor, bit arrays were swapped
25509 * Clipboard.cs: Removed obsolete MonoTODO attribute
25511 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25513 * ComboBox.cs: fixes OnSelectedItemChanged
25514 * ControlBindingsCollection.cs: fixes item range check
25516 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
25519 - Calc preferred height properly
25520 - Implement missing properties
25522 * NumericUpDown.cs: Implement missing events
25524 2005-05-19 Jackson Harper <jackson@ximian.com>
25526 * TabControl.cs: New method that resizes the tab pages before
25527 redrawing them. This as needed as the control is double buffered
25528 and sizing will not be recalculated unless ResizeTabPages is
25530 * TabPage.cs: Set base.Text instead of Text in the constructor so
25531 that UpdateOwner does not get called. Use the new Redraw method of
25532 TabControl instead of Refresh so the sizing is recalculated.
25533 * ThemeWin32Classic.cs: Draw the text for button tabs.
25535 2005-05-19 Jackson Harper <jackson@ximian.com>
25537 * Control.cs: Paint control background images. Fix typo where
25538 PaintControlBackground was not getting called correctly.
25540 2005-05-19 Peter Bartok <pbartok@novell.com>
25542 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
25543 I can investigate, apparently I broke FileDialog
25545 2005-05-19 Marek Safar <marek.safar@seznam.cz>
25547 * AxHost.cs: Some simple properties.
25548 * Control.cs: window must be accessible after ctor.
25549 * Form.cs: Added TransparencyKey property.
25550 * TextBoxBase.cs: Implemented Clear. Text property can be null.
25551 * XplatUIWin32.cs: SetBorderStyle implemented.
25553 2005-05-18 Peter Bartok <pbartok@novell.com>
25555 * DataObject.cs: Entries are not global but particular to the
25556 DataObject, now it behaves that way
25557 * XplatUIWin32.cs: Implemented Clipboard methods
25558 * Clipboard.cs: Implemented
25559 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
25560 * XplatUIOSX.cs: Updated to final clipboard prototypes
25561 * XplatUIX11.cs: Implemented Clipboard methods
25562 * XplatUIDriver.cs: Updated to final clipboard prototypes
25563 * XplatUIStructs.cs:
25564 - Added BITMAPINFOHEADER struct
25565 - Added ClipboardFormats enum
25567 - Added ClipboardStruct
25568 - Added Atom enum items for clipboard types
25569 - Fixed atom types for Selection event structures
25571 - Added internal properties and methods for drivers to enumerate
25573 - Switched initialization method to allow drivers to assign their
25574 own IDs even for the MS predefined clipboard IDs
25575 * XplatUI.cs: Updated to final clipboard interface
25577 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25578 * PropertyGridView.cs: Fixed compiler warnings.
25580 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25581 * PropertyGrid.cs: Added some event calls
25582 * PropertyGridView.cs: Change drawing code to use double buffering
25583 * PropertyGridTextBox.cs: Changed Text property name
25584 * GridItem.cs: Added Bounds property.
25585 * GridEntry.cs: Added Bounds property.
25587 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
25589 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
25590 since GetType() may not return the correct type if the object is
25593 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
25595 * TreeNodeCollection.cs: fixes get/set item ranges
25597 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
25599 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
25601 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
25603 * ComboBox.cs: Fix item range comparation
25604 * ListView.cs: Fix item range comparation
25606 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
25609 - Clear example panel when OnPaint is called
25610 - Better solution for displaying the example panel text
25611 - Select default indexes in the ListBoxes
25613 2005-05-11 Geoff Norton <gnorton@customerdna.com>
25615 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
25617 2005-05-11 Peter Bartok <pbartok@novell.com>
25619 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
25620 * SelectionRangeConverter.cs: Implemented
25621 * PropertyGrid.cs: Fixed attribute value
25623 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
25624 - Added Sebastien Pouliot's CAS Stack Propagation fixes
25625 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
25626 that's common to all drivers. First methods to go there are
25627 Sebastien Pouliot's CAS Stack Propagation helper methods
25628 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
25629 Sebastien Pouliot for CAS Stack Propagation
25631 2005-05-11 Geoff Norton <gnorton@customerdna.com>
25634 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
25636 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
25638 * DataGridTextBoxColumn.cs: fixed some members
25639 * GridColumnStylesCollection.cs: indexed column is case insensitive
25640 * DataGridTableStyle.cs: fixes
25641 * ThemeWin32Classic.cs: add new theme parameter
25642 * Theme.cs: add new theme parameter
25643 * DataGridDrawingLogic.cs: Datagrid's drawing logic
25644 * DataGrid.cs: fixes, new internal properties, etc.
25645 * DataGridColumnStyle.cs: allows to set grid value
25648 2005-05-10 Peter Bartok <pbartok@novell.com>
25650 * AccessibleObject.cs:
25651 - Removed MonoTODO attribute on help, method is correct
25652 - Fixed Bounds property
25653 * AxHost.cs: Moved MonoTODO
25654 * ButtonBase.cs: Now setting AccessibleObject properties
25655 * RadioButton.cs: Setting proper AccessibleObject role
25656 * CheckBox.cs: Setting proper AccessibleObject role
25657 * ControlBindingsCollection.cs: Added properties, methods and attributes
25658 * DataFormats.cs: Fixed awkward internal API, and changed to enable
25659 userdefined DataFormats.Format items as well
25660 * ListControl.cs: Removed data_member from the public eye
25661 * OpenFileDialog.cs:
25662 - Made class sealed
25663 - Added missing attributes
25664 * SaveFileDialog.cs: Added missing attributes
25665 * ImageListStreamer.cs: Fixed code that caused warnings
25666 * LinkLabel.cs: Removed unreachable code
25667 * TreeView.cs: Fixed code that caused warnings
25668 * PropertyGridView.cs: Fixed code that caused warnings
25669 * GridColumnStylesCollection.cs: Added missing attributes
25670 * GridTableStylesCollection: Added missing attribute
25671 * PropertyManager: Added .ctor
25672 * SecurityIDType: Added
25673 * DataObject.cs: Implemented class
25674 * LinkArea.cs: Added missing attribute
25676 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
25678 * RadioButton.cs: call base method to allow to fire OnClick event
25679 * UpDownBase.cs: OnMouseUp call base method
25680 * CheckedListBox.cs: call base method before returning
25681 * TrackBar.cs: call base method before returning
25684 2005-05-10 Peter Bartok <pbartok@novell.com>
25686 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
25689 2005-05-10 Peter Bartok <pbartok@novell.com>
25691 * DataFormats.cs: Implemented
25692 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
25693 XplatUIX11.cs: Added Clipboard APIs
25694 * XplatUIWin32.cs: Implemented Clipboard APIs
25695 * FolderBrowserDialog.cs: Added missing event, attributes
25697 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
25699 * CheckBox.cs: call base method to allow to fire OnClick event
25701 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
25703 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
25705 2005-05-06 Peter Bartok <pbartok@novell.com>
25707 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
25708 * Screen.cs: Implemented
25709 * HelpNavigator.cs: Added
25710 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
25712 * HelpProvider.cs: Implemented all we can do until we have a CHM
25713 help library (which means that "What's This" does work now)
25715 2005-05-06 Jackson Harper <jackson@ximian.com>
25717 * XplatUIX11.cs: Fix waking up the main loop.
25719 2005-05-05 Peter Bartok <pbartok@novell.com>
25721 * XplatUI.cs: Updated revision
25722 * Form.cs: Removed enless loop
25723 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
25724 * Label.cs (OnPaint): Added call to base.OnPaint()
25725 * ToolTip.cs: Made ToolTipWindow reusable for other controls
25726 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
25727 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
25729 * ButtonBase.cs: Moved base.OnPaint() call to end of method
25730 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
25731 to ToolTip.ToolTipWindow for drawing and size methods; this allows
25732 reuse of ToolTipWindow by other controls
25733 * SizeGrip.cs: Moved base.OnPaint() call to end of method
25734 * XplatUIX11.cs: Now clipping drawing area (experimental)
25735 * PictureBox.cs: Moved base.OnPaint() call to end of method
25736 * Theme.cs: Fixed ToolTip abstracts to match new format
25737 * ErrorProvider.cs: Implemented
25739 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
25741 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
25745 - Implements LinkBehavior
25746 - Fixes many issues
25748 2005-05-03 Jackson Harper <jackson@ximian.com>
25750 * ListView.cs: Calculate the scrollbar positioning on resize and
25751 paint, so they get put in the correct place.
25753 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
25755 * ColorDialogs.cs: The small color panels are now handled by
25756 SmallColorControl. This fixes drawing of the focus rectangle
25757 and adds a 3D border.
25759 2005-05-03 Peter Bartok <pbartok@novell.com>
25761 * Control.cs: Modified version of Jonathan Chamber's fix for
25764 2005-05-03 Jackson Harper <jackson@ximian.com>
25766 * ListView.cs: Remove redraw variable. Control now handles whether
25767 or not a redraw needs to be done, and will only raise the paint
25768 event if redrawing is needed.
25770 2005-05-03 Jackson Harper <jackson@ximian.com>
25772 * Splitter.cs: No decorations for the splitter form. Cache the
25775 2005-05-03 Jackson Harper <jackson@ximian.com>
25777 * TreeView.cs: Use dashed lines to connect nodes. Use the
25778 ControlPaint method for drawing the focus rect instead of doing
25781 2005-05-02 Peter Bartok <pbartok@novell.com>
25783 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
25785 2005-04-29 Jackson Harper <jackson@ximian.com>
25787 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
25788 entire image buffer. Just clear the clipping rectangle.
25790 2005-04-29 Jackson Harper <jackson@ximian.com>
25792 * ThemeWin32Classic.cs: Don't draw list view items that are
25793 outside the clipping rectangle.
25795 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
25797 * ListBox.cs: added horizontal item scroll
25799 2005-04-29 Jackson Harper <jackson@ximian.com>
25801 * ThemeWin32Classic.cs: Remove some old debug code that was
25802 causing flicker with the new double buffering code.
25804 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
25806 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
25807 behave like combobox and comboboxlist (still not sure if this is
25810 2005-04-28 Jackson Harper <jackson@ximian.com>
25812 * ThemeWin32Classic.cs: Don't fill the middle of progress
25813 bars. This fills areas outside of the clip bounds that don't need
25816 2005-04-28 Jackson Harper <jackson@ximian.com>
25818 * Control.cs: Don't expose functionality to touch the image buffers.
25820 * ListView.cs: We do not need to (and no longer can) manipulate
25821 the image buffers directly. All of this is handled by Control.
25823 2005-04-28 Peter Bartok <pbartok@novell.com>
25825 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
25826 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
25827 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
25829 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
25832 - Adjust control's height for non-simple comboboxes (bug fix)
25834 * MenuAPI.cs: remove unused var
25835 * ScrollBar.cs: remove unsed var
25837 * ListBox.cs: unselect items when clearing
25839 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
25841 * ListControl.cs: honors OnPositionChanged and default Selected Item
25842 * ListBox.cs: unselect items when clearing
25844 2005-04-27 Jackson Harper <jackson@ximian.com>
25846 * X11Keyboard.cs: Initialize a default keyboard and give a warning
25847 if a "correct" keyboard is not found. This will make us not crash,
25848 but might give some users bad keyboard layouts...seems to be the
25849 same thing rewind does.
25851 2005-04-27 Jackson Harper <jackson@ximian.com>
25853 * BindingManagerBase.cs: Attach the current/position changed
25854 handlers to their respective events.
25856 2005-04-27 Jackson Harper <jackson@ximian.com>
25858 * Control.cs: Make sure that the first WM_PAINT does a full draw,
25860 * ThemeWin32Classic.cs: Don't fill the background for picture
25861 boxes. This could overright user drawing.
25862 * ComboBox.cs: Just fill the clipping rect not the entire client
25863 rect when drawing the background. This prevents pieces of the
25864 image buffer from getting overwritten and is theoretically faster.
25866 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
25868 * ComboBox.cs: Databinding support fixes, fire missing events
25869 * ListControl.cs: implement missing methods and properties, fixes
25870 * ThemeWin32Classic.cs: Databiding support on Drawing
25871 * CheckedListBox.cs: Databinding support fixes, fire missing events
25872 * ListBox.cs: Databinding support fixes, fire missing events
25874 2005-04-25 Peter Bartok <pbartok@novell.com>
25876 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
25878 2005-04-25 Jackson Harper <jackson@ximian.com>
25880 * TreeView.cs: Use the horizontal scrollbars height not width when
25881 determining how much of the client area is available.
25883 2005-04-25 Jackson Harper <jackson@ximian.com>
25885 * Control.cs: Double buffering is handled differently now. As per
25886 the spec, the extra buffer is created in the WM_PAINT message and
25887 passed down to the control's drawing code.
25895 * PropertyGridView.cs:
25907 * DateTimePicker.cs:
25909 * TreeView.cs: Update to new double buffering system.
25910 * MonthCalendar.cs: Uncomment block, as Capture is now
25911 working. Update to new double buffering
25912 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
25913 * PaintEventArgs.cs: New internal method allows us to set the
25914 graphics object. This is used for double buffering.
25915 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
25916 rectangle. The internal paint_area var has been removed from
25917 StatusBar. The clipping rect should be used instead.
25918 * Theme.cs: Give the PictureBox drawing method a clipping rect.
25919 * TabPage.cs: The RefreshTabs method was removed, so just call the
25920 tab controls Refresh method now.
25921 * TabControl.cs: Update to new double buffering. Make sure the
25922 handle is created before sizing the tab pages, otherwise we will
25923 get stuck in a loop.
25925 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
25927 * LinkLabel.cs: Fix typo, bug #74719; patch
25928 from Borja Sanchez Zamorano
25930 2005-04-22 Jackson Harper <jackson@ximian.com>
25932 * TreeNode.cs: Implement Handle stuff.
25933 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
25935 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
25937 * DataGridTextBoxColumn.cs: call base constructors, fixes
25938 * GridColumnStylesCollection.cs: missing events, methods, and functionality
25939 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
25940 * DataGridTableStyle.cs: implements create default column styles
25941 * DataGridBoolColumn.cs: which types can handle
25942 * DataGrid.cs: missing methods, fixes, new functionality
25943 * DataGridColumnStyle.cs: fixes
25945 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
25946 * FolderBrowserDialog.cs:
25947 - Use a thread to fill the TreeView
25948 - Adjusted some sizes
25950 2005-04-19 Peter Bartok <pbartok@novell.com>
25952 * LinkLabel.cs: (Re-)create the pieces when setting the Text
25953 property. Fixes #74360.
25955 2005-04-19 Jackson Harper <jackson@ximian.com>
25957 * XEventQueue.cs: Lock when getting the lockqueue size.
25958 * PictureBox.cs: Call base OnPaint
25960 2005-04-19 Peter Bartok <pbartok@novell.com>
25962 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
25963 messages were no longer being processed (this broke BeginInvoke)
25966 2005-04-18 Jackson Harper <jackson@ximian.com>
25968 * TreeView.cs: buglet that caused node images to get drawn
25969 regardless of whether or not they were in the clipping rectangle.
25971 2005-04-18 Jackson Harper <jackson@ximian.com>
25973 * CurrencyManager.cs: There are four rules for GetItemProperties:
25974 - If the type is an array use the element type of the array
25975 - If the type is a typed list, use the type
25976 - If the list contains an Item property that is not an object, use
25978 - use the first element of the list if there are any elements in
25981 2005-04-17 Jackson Harper <jackson@ximian.oom>
25983 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
25984 click. This handles offsets for scrolling properly and reduces
25985 memory. Also fixed GetNode to not offset now that TopNode works
25987 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
25989 2005-04-17 Jackson Harper <jackson@ximian.com>
25991 * CursorConverter.cs: Initial implementation.
25993 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
25995 * ListControl.cs: work towards complex data binding support on ListControl
25996 * CurrencyManager.cs: work towards complex data binding support on ListControl
25997 * ListBox.cs: work towards complex data binding support on ListControl
26000 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
26002 * GridTableStylesCollection.cs: fixes name and constructor
26003 * DataGridTableStyle.cs: fixes
26004 * DataGridBoolColumn.cs: fixes names and constructors
26005 * DataGrid.cs: define methods and properties. Some init implementations
26006 * DataGridCell.cs: define methods and properties. Some init implementations
26007 * GridTablesFactory.cs: Define methods and properties
26009 2005-04-15 Geoff Norton <gnorton@customerdna.com>
26011 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
26012 graphics port changes. We still want the coordinates in global screen
26015 2005-04-14 Jackson Harper <jackson@ximian.com>
26017 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
26018 check plus minus or checkbox clicks unless those features are enabled.
26020 2005-04-14 Jackson Harper <jackson@ximian.com>
26022 * TreeView.cs: Add methods for setting the top and bottom visible
26023 nodes. TreeNode::EnsureVisible uses these methods.
26024 * TreeNode.cs: Implement EnsureVisible
26026 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
26028 * Form.cs: Pospone menu assignation if the window has not been created yet
26029 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
26032 2005-04-12 Jackson Harper <jackson@ximian.com>
26034 * TreeView.cs: Set the TopNode properly when scrolling
26035 occurs. This has the added benifit of reducing the amount of
26036 walking that needs to be done when drawing. Also removed an old
26038 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
26040 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
26042 * Timer.cs: fixes interval setting when the timer is already enabled
26044 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
26046 * FolderBrowserDialog.cs: First approach
26048 2005-04-09 Peter Bartok <pbartok@novell.com>
26050 * FolderBrowserDialog: Added
26052 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
26054 * LinkLabel.cs: move drawing code into the theme
26055 * ThemeWin32Classic.cs: drawing code and painting background bugfix
26056 * Theme.cs: define DrawLinkLabel method
26058 2005-04-05 Jackson Harper <jackson@ximian.com>
26060 * BindingContext.cs: Use weak references so these bad actors don't
26061 stay alive longer then they need to.
26063 2005-04-05 Jackson Harper <jackson@ximian.com>
26065 * ListControl.cs: Basic implementation of complex databinding.
26067 * ListBox.cs: Add calls to ListControl databinding methods.
26069 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
26072 - Don't change PopupButtonState to Normal when the
26073 PopupButton gets pressed several times.
26074 - Renamed ButtonPanel to PopupButtonPanel
26076 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
26078 * ColorDialog.cs: Use cached objects instead of creating them
26079 * LinkLabel.cs: Use cached objects instead of creating them
26080 * Splitter.cs: Use cached objects instead of creating them
26081 * FontDialog.cs: Use cached objects instead of creating them
26082 * PropertyGridView.cs: Use cached objects instead of creating them
26083 * MessageBox.cs: Use cached objects instead of creating them
26084 * FileDialog.cs: Use cached objects instead of creating them
26085 * ThemeWin32Classic.cs: Use cached objects instead of creating them
26086 * TreeView.cs: Use cached objects instead of creating them
26088 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
26090 * Control.cs: use Equals to compare the font since no == op
26091 * ScrollBar.cs: use Equals to compare the font since no == op
26093 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
26095 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
26097 2005-04-01 Jackson Harper <jackson@ximian.com>
26099 * Binding.cs: Implement IsBinding.
26100 * BindingManagerBase.cs:
26101 * PropertyManager.cs:
26102 * CurrencyManager.cs: Add IsSuspended property.
26104 2005-04-01 Jackson Harper <jackson@ximian.com>
26106 * Binding.cs: Had some IsAssignableFrom calls backwards.
26108 2005-04-01 Jackson Harper <jackson@ximian.com>
26110 * Binding.cs: Handle null data members when pulling data.
26111 * PropertyManager.cs: Handle the data member being a property that
26114 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
26116 * DataGridTextBoxColumn.cs: fixes signature
26117 * DataGrid.cs: calls right constructor
26119 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
26121 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
26122 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
26123 * GridTableStylesCollection.cs: implements GridTableStylesCollection
26124 * DataGridTableStyle.cs: implements DataGridTableStyle
26125 * DataGridBoolColumn.cs: implements DataGridBoolColumn
26126 * DataGridTextBox.cs: implements DataGridTextBox
26127 * DataGridColumnStyle.cs: implements DataGridColumnStyle
26129 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
26131 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
26133 2005-03-29 Peter Bartok <pbartok@novell.com>
26136 - Properly implemented CompanyName property
26137 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
26138 returns a path that includes CompanyName, ProductName and
26139 Version (fixes bug #70330)
26141 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
26143 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
26146 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
26148 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
26150 - Added ReadOnly CheckBox
26151 - Further refactoring: moved some code from Open-/SaveFileDialog
26154 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
26156 * OpenFileDialog.cs: Fixed CheckFileExists
26158 Moved FileView and DirComboBox outside FileDialog class.
26159 They can now be used outside FileDialog
26161 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
26163 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
26164 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
26166 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
26168 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26169 - Added missing CreatePrompt property in SaveDialog
26170 - Overall SaveDialog handling should be better now
26171 - Added non standard ShowHiddenFiles property
26172 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
26173 - Added InitialDirectory and RestoreDirectory support
26175 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
26177 * FileDialog.cs: Made dirComboBox usable
26179 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
26181 * FileDialog.cs: Added Filter support (case sensitiv)
26183 2005-03-24 Jackson Harper <jackson@ximian.com>
26185 * TabControl.cs: Need a couple more pixels for the lines.
26187 2005-03-23 Jackson Harper <jackson@ximian.com>
26189 * TabControl.cs: Give the tab page focus when it is selected.
26191 2005-03-23 Jackson Harper <jackson@ximian.com>
26193 * TabControl.cs: Account for the drawing of tabs borders when
26194 invalidating. If the slider was clicked dont do click detection on
26197 2005-03-23 Jackson Harper <jackson@ximian.com>
26199 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
26201 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
26203 * CategoryGridEntry.cs: Added
26204 * GridItem.cs: Added helper properties
26205 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
26206 * GridEntry.cs: Updated code for collection
26207 * PropertyGrid.cs: Cleaned up some formatting
26208 * PropertyGridView.cs: Added drop down functionality for enums.
26209 * GridItemCollection.cs: Added enumerator logic
26210 * PropertyGridEntry.cs: Added
26212 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
26215 - Removed unnecessary commented code
26216 - Fixed handling for entering the filename manually in the combobox
26218 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
26220 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
26222 2005-03-18 Peter Bartok <pbartok@novell.com>
26224 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
26225 them being touching the border
26227 2005-03-18 Peter Bartok <pbartok@novell.com>
26229 * TextControl.cs: Quick hack to center text better
26231 2005-03-18 Peter Bartok <pbartok@novell.com>
26234 - Don't throw NotImplemented exceptions, just print a notice once
26235 instead (requested by Miguel). This makes running existing SWF
26238 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
26239 - Added context menu trigger on right click
26240 * Panel.cs: Trigger invalidate on resize
26242 - Removed old double-buffer drawing
26243 - Added ResizeRedraw style to force proper update of statusbar
26245 - Removed debug output
26246 * ThemeWin32Classic.cs:
26247 - Fixed drawing of status bar, now draws Text property if there
26248 are no defined panels
26250 2005-03-18 Jackson Harper <jackson@ximian.com>
26252 * ImageList.cs: When the image stream is set pull all the images
26254 * ImageListStreamer.cs: Implement reading image list streams.
26256 2005-03-18 Peter Bartok <pbartok@novell.com>
26258 * ThemeWin32Classic.cs (DrawPictureBox):
26259 - Fixed calculations for centered drawing
26260 - Fixed drawing for normal mode, not scaling the image on normal
26262 2005-03-18 Peter Bartok <pbartok@novell.com>
26264 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
26267 - Made Open/Save button the accept button for FileDialog
26268 - Tied the cancel button to the IButtonControl cancel button
26269 - Save/Open now properly builds the pathname
26270 - Now handles user-entered text
26271 - Preventing crash on right-click if no item is selected
26272 - Fixed Text property, now uses contents of textbox
26273 - Fixed SelectedText property, now just returns the text part that
26274 is selected in the text box
26276 2005-03-18 Jackson Harper <jackson@ximian.com>
26278 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
26279 rect, make sure to de-adjust the interior rect after drawing the
26282 2005-03-18 Peter Bartok <pbartok@novell.com>
26284 * MenuAPI.cs: Remove menu *before* executing selected action to
26285 prevent the menu from 'hanging around'
26287 2005-03-17 Geoff Norton <gnorton@customerdna.com>
26289 * XplatUIOSX.cs: Implemented WorkingArea property
26291 2005-03-17 Peter Bartok <pbartok@novell.com>
26293 * XplatUIX11.cs: Fixed menu coord calculations
26294 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
26295 for calculating offsets
26297 2005-03-17 Peter Bartok <pbartok@novell.com>
26299 * Hwnd.cs: Do not consider menu presence for default client
26300 rectangle location/size
26301 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26302 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
26303 translation functions
26304 * FileDialog.cs: Fixed (what I presume is a) typo
26306 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
26308 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
26309 X access (avoids X-Async errors)
26311 2005-03-16 Jackson Harper <jackson@ximian.com>
26313 * TabControl.cs: Raise the SelectedIndexChanged event.
26315 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
26317 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26318 - Removed vertical ToolBar and replaced it with a custom panel
26319 (desktop and home button already work)
26320 - Added Help button (some controls get resized or relocated then)
26321 - Draw correct text depending on Open or Save.
26322 - Fixed some typos...
26324 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
26327 - Only change Maximum and Minimum when need it (bug fix)
26329 2005-03-15 Peter Bartok <pbartok@novell.com>
26331 * Form.cs: Use Handle for icon, to trigger creation if
26332 the window does not yet exist
26334 - CanSelect: Slight performance improvement
26335 - Focus(): Preventing possible recursion
26336 - Invalidate(): Removed ControlStyle based clear flag setting
26337 - WM_PAINT: fixed logic for calling OnPaintBackground
26338 - WM_ERASEBKGND: Fixed logic, added call to new driver method
26339 EraseWindowBackground if the control doesn't paint background
26341 - Moved EraseWindowBackground() method to internal methods
26342 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
26343 is sent via SendMessage on BeginPaint call on Win32
26345 - Added EraseWindowBackground() method
26346 - No longer sends WM_ERASEBKGND on .Expose, but on call to
26347 PaintEventStart, which more closely matches Win32 behaviour
26348 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
26349 - Fixed SetFocus() to properly deal with client and whole windows
26350 * Hwnd.cs: Added ErasePending property
26351 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
26352 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
26354 2005-03-12 Geoff Norton <gnorton@customerdna.com>
26357 - Fix hard loop when timers exist.
26358 - Fix bugs with middle and right click for 3 button mice.
26360 2005-03-11 Peter Bartok <pbartok@novell.com>
26363 - get_WorkingArea: Need to call X directly, GetWindowPos only
26364 returns cached data now
26365 - Added sanity check to GetWindowPos hwnd usage
26367 2005-03-11 Jackson Harper <jackson@ximian.com>
26369 * BindingManagerBase.cs: This method isn't used anymore as
26370 PullData now updates the data in the control.
26372 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
26374 * Form.cs: fixes menu drawing on X11
26375 * MenuAPI.cs: fixes menu drawing on X11
26377 2005-03-11 Peter Bartok <pbartok@novell.com>
26379 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
26380 from Jonathan Gilbert; should fix bug #73606
26381 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
26382 in Screen coordinates. Thanks, Jordi.
26383 * Form.cs: Added missing attribute
26385 2005-03-11 Peter Bartok <pbartok@novell.com>
26388 - Rudimentary Mdi support
26389 - Removed outdated FormParent code
26390 - Implemented lots of missing properties and methods, still missing
26391 transparency support
26392 - Added missing attributes
26393 - Implemented support for MaximumBounds
26394 - Added firing of various events
26395 * XplatUI.cs: Added SetIcon() method
26396 * XplatUIDriver.cs: Added SetIcon() abstract
26397 * XplatUIOSX.cs: Stubbed out SetIcon() method
26399 - Implemented SetIcon() support
26400 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
26401 - Switched to unix line endings
26403 - Made POINT internal so for can access it as part of MINMAX
26404 - Implemented SetIcon() support
26405 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
26406 native Mdi support again, might have to go managed)
26407 * Control.cs: Now fires the StyleChanged event
26408 * MdiClient.cs: Added; still mostly empty
26410 2005-03-10 Peter Bartok <pbartok@novell.com>
26412 * SaveFileDialog.cs: Added emtpy file
26414 2005-03-08 Peter Bartok <pbartok@novell.com>
26416 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
26417 in turn triggers OnCreateContro) when creating a handle for the
26419 * TextControl.cs: Fixed endless loop in certain cases when
26420 replacing the current selection
26422 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
26425 - Honors NewValue changes in Scroll events allowing apps to change it
26426 - Adds First and Last Scroll events
26427 - Fixes Thumb events
26429 2005-03-07 Peter Bartok <pbartok@novell.com>
26431 * Hwnd.cs: Added DefaultClientRectangle property
26432 * XplatUI.cs: Now using the X11 driver Where() method, which provides
26433 more detailed debug information
26435 - Fixed size-change feedback loop, where we would pull an old size
26436 off the queue and mistakenly change our window's size to an
26438 - Now compressing ConfigureNotify events, to reduce looping and
26440 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
26443 2005-03-07 Jackson Harper <jackson@ximian.com>
26445 * Binding.cs: Push data pushes from data -> property. Check if the
26446 property is readonly when attempting to set it.
26448 2005-03-07 Jackson Harper <jackson@ximian.com>
26450 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
26451 instead of IsSubclassOf. Pulling data now sets the value on the
26453 * PropertyManager.cs:
26454 * CurrencyManager.cs: Just need to pull data when updating now,
26455 because PullData will set the value on the control.
26457 2005-03-04 Jackson Harper <jackson@ximian.com>
26459 * Binding.cs: Implement data type parsing and converting on pulled
26460 data. TODO: Are there more ways the data can be converted?
26462 2005-03-04 Jackson Harper <jackson@ximian.com>
26464 * Binding.cs: Support <Property>IsNull checks. Also bind to the
26465 controls Validating method so we can repull the data when the
26466 control loses focus.
26468 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
26471 - Fixes null string format
26474 - Adds enum type checks
26475 - Fixes redrawing and recalc need after changing some properties
26476 - Fixes on focus_item set after the event
26477 - Fixes adding columns after the control has been created
26479 * ThemeWin32Classic.cs:
26480 - Fixes CheckBox focus rectangle
26481 - Fixes ColumnHeader drawing
26484 2005-03-03 Jackson Harper <jackson@ximian.com>
26486 * Binding.cs: Bind to <Property>Changed events so we can detect
26487 when properties are changed and update the data.
26489 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
26492 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
26493 - Fixes ImageList constructor with ImageList container
26494 - Fixes image scaling (wrong parameters at DrawImage)
26496 2005-02-02 Jackson Harper <jackson@ximian.com>
26498 * Binding.cs: Make property searches case-insensitive. Eliminate
26499 some duplicated code.
26501 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
26504 - Handle focus event
26505 - Fix scrollbar events
26506 - Discard highlighted item if remove it
26507 - Fixes SelectedItem with strings
26509 2005-03-01 Peter Bartok <pbartok@novell.com>
26512 - Fixed Visible property, now follows (once again) parent chain
26513 to return false if any control in the chain is visible=false
26514 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
26515 - Fixed several places where is_visible instead of Visible was used
26516 - Implemented FIXME related to focus selection when setting focused
26517 control to be invisible
26519 * XplatUIWin32.cs: Now using proper method to find out if window is
26520 visible. Thanks to Jordi for pointing it out
26522 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
26524 * ComboBox.cs: show/hide scrollbar instead of creating it
26526 2005-02-27 Jackson Harper <jackson@ximian.com>
26528 * CurrencyManager.cs: Add PositionChanged stuff.
26530 2005-02-27 Peter Bartok <pbartok@novell.com>
26532 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
26533 * XplatUIOSX.cs: Added GetMenuOrigin() stub
26534 * XplatUIWin32.cs: Implemented GetMenuOrigin()
26536 - Implemented GetMenuDC()
26537 - Implemented GetMenuOrigin()
26538 - Implemented ReleaseMenuDC()
26539 - Implemented generation of WM_NCPAINT message
26540 - Implemented generation and handling of WM_NCCALCSIZE message
26541 * Form.cs: Added debug helper message for Jordi's menu work
26543 - Modified ClientRect property; added setter, fixed getter to handle
26544 setting of ClientRect
26545 - Added MenuOrigin property
26547 2005-02-26 Peter Bartok <pbartok@novell.com>
26550 - Destroys the caret if a window that's being destroyed contains it
26551 - Ignores expose events coming from the X11 queue for windows that
26552 already are destroyed
26553 - Now uses the proper variable for handling DestroyNotify, before we
26554 marked the wrong window as destroyed
26555 - Improved/added some debug output
26557 2005-02-26 Peter Bartok <pbartok@novell.com>
26559 * X11Keyboard.cs: Fixes to work on 64bit systems
26561 2005-02-26 Peter Bartok <pbartok@novell.com>
26564 - Now calling OnHandleDestroyed from DestroyHandle()
26565 instead of Dispose()
26566 - Removed bogus call to controls.Remove() from DestroyHandle()
26568 2005-02-26 Peter Bartok <pbartok@novell.com>
26570 * Control.cs: Properly destroy child windows when our handle is
26573 2005-02-25 Peter Bartok <pbartok@novell.com>
26576 - Added 'DriverDebug' define to allow tracing XplatUI API calls
26577 - Alphabetized Static Methods and Subclasses
26580 - Added XException class to allow custom handling of X11 exceptions
26581 - Created custom X11 error handler, tied into XException class
26582 - Added support for MONO_XEXCEPTIONS env var to allow the user
26583 to either throw an exception on X errors or continue running
26584 after displaying the error
26585 - Added handling of DestroyNotify message
26586 - Added handler for CreateNotify message (still disabled)
26587 - Improved (tried to at least) Where method to provide file and lineno
26589 - Added XErrorHandler delegate
26590 - Added XRequest enumeration (to suppor translation of errors)
26592 2005-02-25 Jackson Harper <jackson@ximian.com>
26594 * PropertyManager.cs: Implement editing features
26595 * CurrencyManager.cs:
26596 * Binding.cs: First attempt at UpdateIsBinding
26597 * BindingManagerBase.cs: Call UpdateIsBinding before
26598 pushing/pulling data.
26600 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
26602 * MenuAPI.cs: Respect disabled items
26603 * ThemeWin32Classic.cs
26604 - Caches ImageAttributes creation for DrawImageDisabled
26605 - Fixes vertical menu line drawing
26606 - Draws disabled arrows in disable menu items
26608 2005-02-24 Peter Bartok <pbartok@novell.com>
26611 - Added UserData property to allow associating arbitrary objects
26613 - Fixed leak; now removing Hwnd references from static windows array
26615 - Fixed Graphics leak in PaintEventEnd
26616 - Removed usage of HandleData, switched over to Hwnd class
26617 * HandleData.cs: Removed, obsoleted by Hwnd.cs
26619 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
26621 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
26622 * ScrollBar.cs: Fixes bug
26623 * TrackBar.cs: removes death code, clipping, mimize refreshes,
26624 keyboard navigation enhancements
26626 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
26628 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
26629 * GroupBox.cs: Add control styles
26630 * Label.cs: Add control styles
26631 * UpDownBase.cs: Add control styles
26632 * ListBox.cs: Add control styles
26633 * XplatUIWin32.cs: Fixes wrong parameter order
26636 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
26638 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
26640 2005-02-23 Jackson Harper <jackson@ximian.com>
26642 * PropertyManager.cs: Implement property binding. This doesn't
26643 seem to work yet though as (I think) there are some bugs in
26644 System.ComponentModel.PropertyDescriptor.
26645 * BindingContext.cs: Use new PropertyManager constructor.
26647 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
26649 * ProgressBar.cs: use clip region in ProgressBar
26650 * ThemeWin32Classic.cs: use clip region in ProgressBar
26652 2004-02-22 Jackson Harper <jackson@ximian.com>
26654 * BindingsCollection.cs: Remove some debug code.
26656 2005-02-22 Jackson Harper <jackson@ximian.com>
26658 * BindingContext.cs:
26659 * ControlBindingsCollection.cs:
26660 * CurrencyManager.cs:
26662 * BindingManagerBase.cs: Initial implementation
26663 * BindingsCollection.cs: Add an internal contains method that the
26664 BindingManagerBase uses to ensure bindings aren't added twice to
26666 * PropertyManager.cs: Stubbed out.
26668 * ContainerControl.cs: Hook up databinding
26670 2005-02-22 Geoff Norton <gnorton@customerdna.com>
26673 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
26674 Fixed Invalidate/Update chain.
26675 Fixed tons of other minor bugs (this is almost a complete rewrite).
26677 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
26679 * ComboBox.cs: do subcontrol creation when the control is created
26681 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26683 * Label.cs: fixes image drawing (image and imagelist)
26684 * ThemeWin32Classic.cs: cache brushes
26686 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26688 * Form.cs: Move menu drawing code to Theme class
26689 * ComboBox.cs: Move ComboBox drawing code to Theme class
26690 * MenuItem.cs: Move menu drawing code to Theme class
26691 * MenuAPI.cs: Move menu drawing code to Theme class
26692 * ThemeWin32Classic.cs: New methods
26693 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
26694 * ListBox.cs: Move Listbox drawing code to Theme class
26695 * Theme.cs: New methods
26697 2005-02-20 Peter Bartok <pbartok@novell.com>
26700 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
26701 only process mnemonics on those)
26702 - Fixed event sequence for key handling; first calling
26703 ProcessKeyEventArgs now
26705 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
26706 for processing non-character keys
26707 - Fixed WM_CHAR to generate proper event sequence before processing
26708 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
26711 2005-02-19 Peter Bartok <pbartok@novell.com>
26713 * UserControl.cs: Added TextChanged event; added attributes
26714 * SizeGrip.cs: Implemented resizing and optional display of grip
26715 * Form.cs: Fixed attribute
26716 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26717 Changed meaning of ScrollWindow bool argument; instead of the
26718 clear attribute (which will be true usually anyway), it gives the
26719 option of moving child controls as well.
26721 - Changed to match new ScrollWindow argument
26722 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
26723 now handles the implicit parent window a WM puts around us
26724 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
26726 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
26727 * TreeView.cs: Adjusted to new ScrollWindow arguments
26729 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
26731 * Form.cs: Menu integration with non-client area
26732 * MenuItem.cs: Menu integration with non-client area
26733 * MenuAPI.cs: Menu integration with non-client area
26735 2005-02-18 Peter Bartok <pbartok@novell.com>
26737 * MethodInvoker.cs: Added
26738 * MdiLayout.cs: Added
26739 * SendKeys.cs: Started implementation
26740 * ErrorIconAlignment.cs: Added
26742 2005-02-18 Peter Bartok <pbartok@novell.com>
26744 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
26745 * Form.cs: Added handling for Menu-related Non-client messages
26747 2005-02-17 Peter Bartok <pbartok@novell.com>
26749 * UpDownBase.cs: Fixed typo, compilation errors
26750 * DomainUpDown.cs: Fixed attribute value
26752 2005-02-16 Miguel de Icaza <miguel@novell.com>
26754 * UpDownBase.cs: Attach entry events.
26756 Add ForeColor property, Focused, InterceptArrowKeys (interception
26757 does not work yet).
26759 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
26762 - Redraw non client are on Setmenu
26763 - Calc proper menu starting point
26765 2005-02-17 Peter Bartok <pbartok@novell.com>
26767 * Application.cs: Fixed message_filter check
26769 2005-02-17 Peter Bartok <pbartok@novell.com>
26771 * Application.cs: Now calls registered message filters
26772 * DockStyle.cs: Fixed attribute
26773 * Form.cs: Fixed attribute
26774 * Menu.cs: Fixed attribute
26775 * ToolTip.cs: Fixed attribute
26776 * TreeNode.cs: Added missing attributes and arranged in regions
26777 * PropertyGrid.cs: Fixed signatures
26778 * TreeNodeCollection.cs: Added attributes
26779 * Splitter.cs: Added missing attributes; arranged into regions
26780 * TabPage.cs: Added missing attributes; arranged into regions
26781 * TextBoxBase.cs: Added missing attributes
26782 * TextBox.cs: Added missing attributes
26783 * ArrangeDirection.cs: Added missing attributes
26784 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
26785 * ToolBarButton.cs: Fixed attributes
26786 * AnchorStyles.cs: Fixed attribute
26787 * TrackBar.cs: Fixed attributes
26788 * TabControl.cs: Added missing attributes and arranged into regions
26789 * ToolBar.cs: Fixed attribute
26790 * StatusBar.cs: Fixed signature, organized into regions and added
26792 * StatusBarPanel.cs: Fixed attributes
26793 * ContentsResizedEventArgs.cs: Implemented
26794 * ContentsResizedEventHandler.cs: Implemented
26795 * DateBoldEventArgs.cs: Implemented
26796 * DateBoldEventHandler.cs: Implemented
26797 * UpDownEventArgs.cs: Implemented
26798 * UpDownEventHandler.cs: Implemented
26800 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
26802 * Form.cs: first Menu NC refactoring
26803 * MenuAPI.cs: first Menu NC refactoring
26805 2005-02-16 Peter Bartok <pbartok@novell.com>
26807 * ImeMode.cs: Added missing attributes
26808 * Menu.cs: Fixed attribute
26809 * GroupBox.cs: Fixed attribute
26810 * Label.cs: Fixed attribute
26811 * ColorDialog.cs (RunDialog): Removed TODO attribute
26812 * ComboBox.cs: Fixed attributes
26813 * ListControl.cs: Added missing attributes
26814 * PropertyGrid.cs: Fixed attributes
26815 * Control.cs: Fixed attributes
26816 * ListViewItem.cs: Added TypeConverter attribute
26817 * NotifyIcon.cs: Fixed attributes
26818 * ListView.cs: Fixed attributes
26819 * ButtonBase.cs: Fixed attribute
26820 * ImageList.cs: Added missing attributes
26821 * ContainerControl.cs: Fixed signature
26822 * CheckedListBox.cs: Fixed attribute; added missing attributes
26823 * Panel.cs: Fixed attributes
26824 * PropertyTabChangedEventArgs.cs: Added missing attribute
26825 * PropertyValueChangedEventArgs.cs: Added missing attribute
26826 * Binding.cs: Fixed attribute
26827 * ListViewItemConverter: Implemented ListViewSubItemConverter class
26828 * ListBox.cs: Fixed attribute; added missing attributes;
26829 * ScrollableControl.cs: Added missing attributes
26830 * PictureBox.cs: Added missing attributes; implemented missing property
26831 * DateTimePicker.cs: Added missing attributes
26832 * Theme.cs (ToolWindowCaptionHeight): Fixed type
26833 * MonthCalendar.cs: Fixed attributes
26834 * StatusBarPanel.cs: Added missing attributes
26835 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
26837 2005-02-16 Peter Bartok <pbartok@novell.com>
26839 * TextBoxBase.cs: The previous method to enforce height yet remember
26840 the requested high was less than ideal, this is an attempt to do
26842 * Control.cs: Added comment about possible problem
26843 * Copyright: Updated format
26844 * GridItemType.cs: Fixed swapped values
26846 2005-02-15 Jackson Harper <jackson@ximian.com>
26848 * BaseCollection.cs: Use property so we never access an
26849 uninitialized list. Also initialize the list in the property.
26851 2005-02-15 Peter Bartok <pbartok@novell.com>
26853 * GroupBox.cs (ProcessMnemonic): Implemented
26854 * Label.cs (ProcessMnemonic): Implemented
26855 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
26858 2005-02-15 Peter Bartok <pbartok@novell.com>
26860 * RadioButton.cs (ProcessMnemonic): Implemented
26861 * CheckBox.cs (ProcessMnemonic): Implemented
26863 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
26865 - Added internal method to allow calling ProcessMnemonic from other
26867 * ContainerControl.cs:
26868 - Started support for handling validation chain handling
26869 - Implemented ProcessMnemonic support
26870 - Added Select() call to Active, to make sure the active control
26872 * Form.cs: Setting toplevel flag for Forms (this was lost in the
26873 FormParent rewrite)
26874 * ThemeWin32Classic.cs:
26875 - DrawCheckBox(): Fixed stringformat to show hotkeys
26876 - DrawRadioButton(): Fixed stringformat to show hotkeys
26877 * CommonDialog.cs: Removed WndProc override, not needed
26879 2005-02-14 Peter Bartok <pbartok@novell.com>
26881 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
26882 missed those in the rewrite
26884 2005-02-14 Miguel de Icaza <miguel@novell.com>
26886 * NumericUpDown.cs (Increment, ToString): Add.
26887 (DecimalPlaces): implement.
26891 * UpDownBase.cs: Add the designer attributes.
26893 2005-02-13 Peter Bartok <pbartok@novell.com>
26895 * Panel.cs: Removed border_style, now in Control
26896 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
26897 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
26899 2005-02-13 Peter Bartok <pbartok@novell.com>
26901 * MouseButtons.cs: Added missing attributes
26902 * XplatUIStructs.cs: Added enumeration for title styles
26903 * LeftRightAlignment.cs: Added missing attributes
26904 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
26905 it compatible with Graphics.FromHwnd()
26906 * SelectedGridItemChangedEventArgs.cs: Fixed property type
26907 * Keys.cs: Added missing attributes
26908 * SelectionRange.cs: Added missing attributes
26909 * SelectionRangeConverter.cs: Added
26911 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
26912 ReleaseMenuDC methods
26913 - Renamed ReleaseWindow to UngrabWindow
26914 - Added proper startup notice to allow version identification
26916 - Added missing attributes
26917 - Removed FormParent concept
26918 * Label.cs: Removed border_style field, now in Control
26919 * RadioButton.cs: Now properly selects RadioButton when focus is
26921 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
26923 - Added missing attributes
26924 - Added borderstyle handling
26925 - Removed FormParent concept support
26926 - Fixed calls to XplatUI to match changed APIs
26927 - Fixed bug that would case us to use disposed Graphics objects
26928 - Removed unneeded internal methods
26929 - PerformLayout(): Fixed to handle DockStyle.Fill properly
26930 - SelectNextControl(): Fixed to properly check common parents
26931 * TextBoxBase.cs: Removed border_style field (now in Control)
26933 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
26934 fixed calculations for form size
26935 - Added support for localized strings and icons
26936 - Improved form size calculations, added border
26937 * ListView.cs: Removed border_style field (now in Control)
26938 * X11Structs.cs: Moved several structs from X11 driver here
26939 * X11Keyboard.cs: Changed debug message
26940 * Application.cs: Removed FormParent concept support
26942 - Resetting end_modal flag
26943 - Removed FormParent concept support
26944 * NativeWindow.cs: Removed FormParent concept support
26945 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
26946 Client area and Non-Client whole window to allow support for WM_NC
26948 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
26949 prevent using it until it supports Hwnd as per Geoff Norton's request
26950 * ToolBar.cs: Fixed drawing, was not doing proper drawing
26951 * PictureBox.cs: Removed border_style field, now in Control
26952 * XplatUIWin32.cs: Added new driver methods
26954 2005-02-12 Peter Bartok <pbartok@novell.com>
26956 * OpacityConverter.cs: Implemented
26957 * Hwnd.cs: Internal class to support drivers that need to emulate
26958 client area/non-client area window behaviour
26960 2005-02-11 Peter Bartok <pbartok@novell.com>
26962 * KeysConverter.cs: Implemented
26964 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
26966 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
26967 * LinkLabel: Added missing attributes
26968 * MainMenu.cs: fixes ToString
26969 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
26970 * ListBox.cs: fixes event position
26971 * TrackBar.cs: adds missing attributes and events
26973 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
26975 * MenuItem.cs: Use SystemInformation and bug fixes
26976 * MenuAPI.cs: Use SystemInformation and bug fixes
26978 2005-02-09 Jackson Harper <jackson@ximian.com>
26980 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
26981 their keystate otherwise things like VK_MENU get stuck "on".
26983 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
26985 * ListBox.cs: Fixes AddRange bug
26987 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
26990 - Add missing attributes
26991 - Add missing method
26993 * CheckedListBox.cs: Added missing attributes
26994 - Add missing attributes
26995 - Remove extra method
26997 * ComboBox.cs: Added missing attributes
26998 * VScrollBar.cs: Added missing attributes
26999 * ScrollBar.cs: Added missing attributes
27000 * ListBox.cs: Fixes signature, add missing consts
27001 * LinkArea.cs: Added missing attributes
27004 2005-02-08 Peter Bartok <pbartok@novell.com>
27006 * Menu.cs: Added missing attributes
27007 * MainMenu.cs: Added missing attributes
27008 * GroupBox.cs: Added missing attributes
27009 * Label.cs: Added missing attributes
27010 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
27012 - Added Instance and Options properties
27013 - Added missing attributes
27014 * Cursor.cs: Made Serializable
27015 * NotifyIcon: Added missing attributes
27016 * MenuItem.cs: Added missing attributes
27017 * TextBoxBase.cs: Implemented AppendText() and Select() methods
27018 * Panel.cs: Added Missing attributes
27019 * MonthCalendar.cs: Fixed CreateParams
27021 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
27025 - Fixes issues with links
27026 - Adds the class attributes
27028 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
27031 - Fixes button when no items available in dropdown
27032 - Fixes repainting problems
27033 - Adds the class attributes
27035 2005-02-07 Geoff Norton <gnorton@customerdna.com>
27037 * XplatUIOSX.cs: Detect the menu bar and title bar height from
27038 the current theme. Cache these on startup.
27040 2005-02-07 Jackson Harper <jackson@ximian.com>
27042 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
27043 the scrollbar buttons when they are depressed.
27045 2005-02-07 Geoff Norton <gnorton@customerdna.com>
27047 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
27048 Get the display size from the main displayid. We currently dont
27049 support multiple display configurations.
27051 2005-02-07 Geoff Norton <gnorton@customerdna.com>
27053 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
27055 2005-02-07 Miguel de Icaza <miguel@novell.com>
27057 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
27059 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
27061 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
27063 2005-02-04 Jackson Harper <jackson@ximian.com>
27065 * ThemeWin32Classic.cs: Respect the clipping rect when
27066 drawing. Only fill the intersection of clips and rects so there
27067 isn't a lot of large fills.
27068 * ScrollBar.cs: Pass the correct clipping rect to the theme
27069 engine. Remove some debug code.
27071 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
27073 * DateTimePicker.cs:
27074 - Fixed crash on DateTime.Parse, use Constructor instead
27076 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
27080 - Owner draw support (MeasureItem and DrawItem)
27082 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
27085 - Implements FindMergePosition and MergeMenu functions (very poor documented)
27086 - Fixes MenuItems.Add range
27088 - MergeMenu and Clone and CloneMenu functions
27090 2005-02-03 Jackson Harper <jackson@ximian.com>
27092 * ScrollBar.cs: Make abstract
27093 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
27096 2005-02-03 Jackson Harper <jackson@ximian.com>
27098 * ScrollBar.cs: First part of my scrollbar fixups. This removes
27099 all the unneeded refreshes and uses invalidates with properly
27102 2005-02-03 Peter Bartok <pbartok@novell.com>
27104 * ComponentModel.cs: Added
27105 * IDataGridEditingService.cs: Added
27106 * Timer.cs: Added missing attributes
27107 * ToolTip.cs: Added missing attributes
27109 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27111 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
27113 2005-02-03 Peter Bartok <pbartok@novell.com>
27115 * ListBox.cs: Added missing attributes
27117 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
27120 - Fixes font height after font change
27121 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
27123 2005-02-02 Peter Bartok <pbartok@novell.com>
27125 * HandleData.cs: Introduced static methods to allow class
27126 to be more self-contained and track it's own HandleData objects
27127 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
27128 HandleData to use new static methods
27130 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
27133 - Fixes default size and PreferredHeight
27135 - ObjectCollection.Insert implementation
27141 - ObjectCollection.Insert implementation
27142 - No selection after clean
27145 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
27147 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
27149 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
27152 - Caches ItemHeight calculation for OwnerDrawVariable
27153 - Handles dropdown properly
27154 - Fixes several minor bugs
27156 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
27159 - Fixes 71946 and 71950
27160 - Fixes changing Multicolumn on the fly
27161 - Fixes keyboard navigation on Multicolumn listboxes
27163 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27165 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
27166 crash reporter log.
27168 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27170 * XplatUIOSX.cs: Allow applications to actually exit.
27172 2005-01-31 Geoff Norton <gnorton@customerdna.com>
27174 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
27175 their parent at creation time rather than lazily later. Fixes a major
27176 regression we were experiencing.
27178 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
27180 * ThemeWin32Classic.cs: more date time picker painting fixes
27181 * DateTimePicker.cs: more monthcalendar drop down fixes
27182 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
27184 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
27187 - When moving the thumb going outside the control should stop the moving
27188 - Adds the firing of missing events
27189 - Fixes no button show if Size is not specified
27190 - End / Home keys for keyboard navigation
27192 2005-01-30 Peter Bartok <pbartok@novell.com>
27194 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
27195 sanity check to prevent theoretical loop
27196 * XplatUIWin32.cs (SetVisible): Removed debug output
27197 * XplatUIX11.cs (SystrayChange): Added sanity check
27198 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
27199 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
27200 behaviour, valid until the X11 client window rewrite is done
27201 * TextBox.cs (ctor): Setting proper default foreground and background
27204 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
27206 * Theme: Added DrawDateTimePicker to interface
27207 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
27208 * DateTimePicker.cs: Created (still needs keys and painting code)
27209 * DateTimePickerFormat.cs: added
27210 * MonthCalendar.cs: fixed CreateParams for popup window mode
27212 2005-01-29 Peter Bartok <pbartok@novell.com>
27214 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
27215 this should also the calculations for ligher/darker
27216 * Theme.cs: Fixed defaults for ScrollBar widths/heights
27218 2005-01-29 Peter Bartok <pbartok@novell.com>
27220 * ArrangeDirection.cs: Added
27221 * ArrangeStartingPositon.cs: Added
27222 * SystemInformation.cs: Implemented
27223 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27224 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
27225 used by SystemInformation class
27226 * X11Strucs.cs: Added XSizeHints structure
27228 - Fixed CreateParams to make sure the menu window is always visible
27229 - TrackPopupMenu: Added check to make sure we don't draw the
27232 2005-01-29 Peter Bartok <pbartok@novell.com>
27234 * HandleData.cs: Added method for altering invalid area
27235 * TextBoxBase.cs: Implemented TextLength
27237 2005-01-28 Peter Bartok <pbartok@novell.com>
27239 * XplatUIX11.cs: Improvement over last patch, not sending
27240 the WM_PAINT directly anymore, instead we scroll any pending
27241 exposed areas and let the system pick out the WM_PAINT later
27243 2005-01-28 Peter Bartok <pbartok@novell.com>
27245 * SWF.csproj: Deleted, no longer used. Instead,
27246 Managed.Windows.Forms/SWF.csproj should be used
27247 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
27248 directly, to avoid a potential race condition with the next
27251 2005-01-28 Peter Bartok <pbartok@novell.com>
27253 * XplatUI.cs: Made class internal
27255 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
27257 * CheckedListBox.cs:
27260 - Missing methods and events
27262 2005-01-27 Peter Bartok <pbartok@novell.com>
27264 * Application.cs (Run): Don't use form if we don't have one
27266 2005-01-27 Peter Bartok <pbartok@novell.com>
27268 * TextBoxBase.cs (get_Lines): Fixed index off by one error
27270 2005-01-27 Peter Bartok <pbartok@novell.com>
27272 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
27273 * GridItem.cs: Added; Patch by Jonathan S. Chambers
27274 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
27275 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
27276 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
27277 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
27278 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27279 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27280 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27281 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27282 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27283 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27285 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
27288 - Draw focus on Simple Combobox
27289 - Fixes drawing issues
27292 2005-01-27 Peter Bartok <pbartok@novell.com>
27295 - Place window in default location, instead of hardcoded 0/0
27296 - Send initial LocationChanged event
27298 - UpdateBounds after creation to find out where the WM placed us
27299 - Make sure that if the ParentForm changes location the Form
27301 * XplatUIX11.cs: XGetGeometry will not return the coords relative
27302 to the root, but to whatever the WM placed around us.
27303 Translate to root coordinates before returning toplevel
27305 * XplatUIWin32.cs: Removed debug output
27306 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
27307 flag to GetWindowPos, to allow translation of coordinates on X11
27309 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
27311 * ListBox.cs: connect LostFocus Event
27313 2005-01-27 Peter Bartok <pbartok@novell.com>
27315 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27316 XplatUIX11.cs: Extended the Systray API
27317 * Form.cs: Removed debug output
27318 * Application.cs: Fixed focus assignment, always need to call
27319 XplatUI.Activate() since Form.Activate() has rules that may
27321 * NotifyIcon.cs: Should be complete now
27322 * ToolTip.cs: Worked around possible timer bug
27324 2005-01-27 Jackson Harper <jackson@ximian.com>
27327 - Only invalidate the effected tabs when the
27328 selected index changes. This reduces drawing and gets rid of some
27330 - Only refresh if the tabs need to be shifted, otherwise only
27331 invalidate the slider button.
27332 - On windows the tabs are not filled to right if the slider is
27335 2005-01-27 Jackson Harper <jackson@ximian.com>
27337 * TabControl.cs: Only refresh on mouseup if we are showing the
27338 slider. Also only invalidate the button whose state has changed.
27340 2005-01-26 Peter Bartok <pbartok@novell.com>
27342 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
27343 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
27344 and SystrayRemove() methods
27345 * XplatUIOSX.cs: Stubbed Systray methods
27347 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
27349 - Fixed broken XChangeProperty calls (marshalling messed up things)
27350 * X11Structs.cs: Added enums and structs required for Size hinting
27351 * NotifyIcon.cs: Added & implemented
27353 2005-01-26 Jackson Harper <jackson@ximian.com>
27355 * TabControl.cs: Space vertically layed out tabs properly.
27357 2005-01-26 Peter Bartok <pbartok@novell.com>
27359 * Form.cs (CreateClientParams): Always set the location to 0,0
27360 since we're a child window.
27362 * Control.cs (SetVisibleCore): Always explicitly setting the location
27363 of a toplevel window, apparently X11 doesn't like to move windows
27364 while they're not mapped.
27366 2005-01-26 Jackson Harper <jackson@ximian.com>
27368 * TabControl.cs: Implement FillToRight size mode with vertically
27371 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
27373 * ControlPaint.cs, ThemeWin32Classic.cs
27374 - Fixes DrawFocusRectangle
27376 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
27379 - MenuBar tracking only starts when item is first clicked
27380 - Fixes menu hidding for multiple subitems
27381 - Unselect item in MenuBar when item Executed
27384 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
27387 - IsInputKey for ListBox
27390 - Shift and Control item selection
27391 - Implement SelectionMode.MultiExtended
27392 - Fixes RightToLeft
27394 - IsInputKey implemented
27395 - Do not generate OnTextChangedEdit on internal txt changes
27397 2005-01-23 Peter Bartok <pbartok@novell.com>
27399 * AccessibleObject.cs: Partially implemented Select()
27400 * MonthCalendar.cs: Added missing attributes and events
27401 * Form.cs: Fixed CreateParams behaviour, now controls derived from
27402 form can properly override CreateParams.
27403 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27404 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
27405 Control performs Invalidate & Update
27406 * NativeWindow (CreateHandle): Added special handling for Form
27407 and Form.FormParent classes to allow overriding of From.CreateParams
27409 - ControlNativeWindow: Renamed 'control' variable to more intuitive
27411 - ControlNativeWindow: Added Owner property
27412 - Removed usage of Refresh() on property changes, changed into
27413 Invalidate(), we need to wait until the queue is processed for
27414 updates, direct calls might cause problems if not all vars for
27415 Paint are initialized
27416 - Added call to UpdateStyles() when creating the window, to set any
27417 styles that CreateWindow might have ignored.
27418 - Added support for Form CreateParent overrides to UpdateStyles()
27419 * MessageBox.cs: Removed no longer needed FormParent override stuff,
27420 CreateParams are now properly overridable
27421 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
27422 CreateParams are now properly overridable
27424 2005-01-23 Miguel de Icaza <miguel@ximian.com>
27426 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
27429 Capture LostFocus and OnTextBoxChanged. The later introduces a
27430 recursive invocation that I have not figured out yet.
27432 Reset the timer when not using (it was accumulating).
27435 (OnTextBoxChanged): Set UserEdit to true here to track whether the
27436 user has made changes that require validation.
27438 Reset changing to avoid loops.
27440 2005-01-22 Miguel de Icaza <miguel@ximian.com>
27442 * NumericUpDown.cs: Display value at startup.
27444 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
27447 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
27448 filled in. Added some basic parsing of text.
27450 Still missing the OnXXX method overrides, and figuring out the
27451 events that must be emitted.
27453 * UpDownBase.cs: Handle UserEdit on the Text property.
27455 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
27458 - Fixes IntegralHeight
27461 2005-01-21 Jackson Harper <jackson@ximian.com>
27463 * TabControl.cs: Set the SelectedIndex property when SelectedTab
27464 is set so that the page visibility is updated and the tabs are
27467 2005-01-21 Jackson Harper <jackson@ximian.com>
27469 * TabControl.cs: Use cliping rectangle for blitting. Give the
27470 theme the clipping rect so we can do clipping while
27471 drawing. Remove some debug code.
27473 2005-01-21 Jackson Harper <jackson@ximian.com>
27475 * TabPage.cs: Add a new method so tab pages can force the tab
27476 control to recalculate the tab page sizes.
27477 * TabControl.cs: UpdateOwner needs to make the tab control recalc
27480 2005-01-20 Jackson Harper <jackson@ximian.com>
27482 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
27484 2005-01-20 Jackson Harper <jackson@ximian.com>
27486 * TreeView.cs: Set the bounds for nodes properly. They were
27487 getting screwed up when checkboxes were not enabled, but images
27490 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
27493 - Owner draw support
27496 2005-01-20 Jackson Harper <jackson@ximian.com>
27498 * XplatUIStructs.cs: More misc keys
27499 * X11Keyboard.cs: Ignore some control keys.
27501 2005-01-20 Jackson Harper <jackson@ximian.com>
27503 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
27504 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
27506 2005-01-19 Peter Bartok <pbartok@novell.com>
27508 * Control.cs: Un-selecting the control when it is loosing focus
27510 2005-01-19 Jackson Harper <jackson@ximian.com>
27512 * TreeView.cs: Hook up to the text controls leave event so we can
27513 end editing when the users clicks outside the text box.
27515 2005-01-19 Jackson Harper <jackson@ximian.com>
27517 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
27518 get set in the conversion array.
27520 2005-01-19 Peter Bartok <pbartok@novell.com>
27522 * Application.cs (ModalRun): Added a call to CreateControl to ensure
27523 focus is properly set
27525 - Added missing attributes
27526 - removed styles, those are already set in the base class
27528 - Added missing attributes
27529 - Added clip window styles
27530 * CheckBox.cs: Added missing attributes
27532 - FormParentWindow.CreateParams: Added required clip styles
27533 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
27534 also filters modifier keys
27536 - Added assignment of Accept and Cancel button to enable Enter
27537 and Esc keys in MessageBox dialogs
27538 - FormParentWindow.CreateParams: Added required clip styles
27539 * RadioButton.cs: Added missing attributes
27540 * TextControl.cs: No longer draws selection if control does not
27543 - Now draws simple rectangle around test area to make it obvious
27544 there's a control. This is a hack until we properly support borders
27545 - A few simple fixes to support selections better, now erases selected
27546 text when typing, and resets selection when using movement keys
27548 2005-01-19 Miguel de Icaza <miguel@ximian.com>
27550 * UpDownBase.cs: Added some new properties.
27552 * DomainUpDown.cs: Implement a lot to get my test working.
27554 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27556 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
27558 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27560 * OSXStructs (WindowAttributes): Fixed csc complaints
27562 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27565 OSXStructs.cs: Initial refactor to move enums and consts into
27566 OSXStructs and use them in the driver for greater readability.
27568 2005-01-19 Geoff Norton <gnorton@customerdna.com>
27570 * XplatUIOSX.cs: Initial support for Standard Cursors.
27571 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
27573 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
27575 * ComboBox.cs: ability to change style when the ctrl is already
27576 created, missing methods and events, bug fixes, signature fixes
27578 2005-01-19 Peter Bartok <pbartok@novell.com>
27580 * Cursors.cs (ctor): Added ctor to fix signature
27582 2005-01-18 Peter Bartok <pbartok@novell.com>
27584 * Button.cs: Implemented DoubleClick event
27586 - Fixed keyboard handling to behave like MS, where the press of
27587 Spacebar is equivalent to a mousedown, and the key release is
27588 equivalent to mouseup. Now a spacebar push will give the same
27589 visual feedback like a mouse click.
27590 - Added missing attributes
27591 - Added ImeModeChanged event
27592 - Added support for generating DoubleClick event for derived classes
27594 - Implemented DoubleClick event
27595 - Added missing attributes
27596 * CommonDialog.cs: Added missing attribute
27597 * ContextMenu.cs: Added missing attributes
27599 - AutoChecked buttons do not allow to be unselected when clicked
27600 (otherwise we might end up with no selected buttons in a group)
27601 - Added missing attributes
27602 - Implemented DoubleClickEvent
27603 * ThreadExceptionDialog.cs: Enabled TextBox code
27605 2005-01-18 Peter Bartok <pbartok@novell.com>
27607 * Form.cs: Removed debug output
27608 * Button.cs: Added support for DoubleClick method
27610 2005-01-18 Peter Bartok <pbartok@novell.com>
27613 - Added method to parent window that allows triggering size
27614 calculations when a menu is added/removed
27615 - set_Menu: Cleaned up mess from early days of Form and Control,
27616 now properly triggers a recalc when a menu is added/removed
27617 - Added case to select form itself as focused form if no child
27619 - Added PerformLayout call when showing dialog, to ensure properly
27622 - Select(): Made internal so Form can access it
27623 - Focus(): Only call Xplat layer if required (avoids loop), and sets
27625 * Application.cs (Run): Removed hack and calls PerformLayout instead
27626 to trigger calculation when Form becomes visible
27628 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
27630 * ComboBox.cs: fixes for ownerdraw
27632 2005-01-18 Peter Bartok <pbartok@novell.com>
27635 - Sentinel is no longer static, each Document gets it's own, this
27636 avoids locking or alternatively overwrite problems when more
27637 than one text control is used simultaneously.
27638 - Switched to use Hilight and HilightText brushes for text selection
27640 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
27642 2005-01-18 Peter Bartok <pbartok@novell.com>
27645 - Hooked up the following events:
27653 o SystemColorsChanged
27654 o ParentFontChanged
27656 - Removed debug output
27657 - Added a call to the current theme's ResetDefaults when a color change
27659 * Form.cs: Now setting the proper ImeMode
27660 * Theme.cs: Defined a method to force recreation of cached resources
27661 and rereading of system defaults (ResetDefaults())
27662 * ThemeWin32Classic.cs: Added ResetDefaults() stub
27664 2005-01-17 Peter Bartok <pbartok@novell.com>
27666 * Control.cs: Added missing attributes
27668 2005-01-17 Jackson Harper <jackson@ximian.com>
27670 * TreeNode.cs: Implement editing. Add missing properties selected
27672 * TreeView.cs: Implement node editing. Also some fixes to use
27673 Invalidate (invalid area) instead of Refresh when selecting.
27675 2005-01-17 Peter Bartok <pbartok@novell.com>
27678 - Implemented InvokeGotFocus() method
27679 - Implemented InvokeLostFocus() method
27680 - Implemented InvokePaint() method
27681 - Implemented InvokePaintBackground() method
27682 - Implemented InvokeClick() method
27683 - Implemented FindForm() method
27684 - Implemented RectangleToClient() method
27685 - Implemented ClientToRectangle() method
27686 - Implemented ResetBackColor() method
27687 - Implemented ResetCursor() method
27688 - Implemented ResetFont() method
27689 - Implemented ResteForeColor() method
27690 - Implemented ResetImeMode() method
27691 - Implemented ResetLeftToRight() method
27692 - Implemented ResetText() method
27693 - Implemented Scale() methods
27694 - Implemented ScaleCore() method
27695 - Implemented Update() method
27696 - Removed unused variables
27697 - Stubbed AccessibilityNotifyClients and
27698 ControlAccessibleObject.NotifyClients() methods (dunno what to do
27700 - Now setting proper default for RightToLeft property
27701 - Fixed bug in SetClientSizeCore that would cause windows to get
27703 - Now sending Click/DoubleClick events
27704 - Now selecting controls when left mouse button is clicked on
27706 * AccessibleEvents.cs: Added
27707 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
27708 * XplatUIOSX.cs: Stubbed UpdateWindow() method
27709 * XplatUIWin32.cs: Implemented UpdateWindow() method
27710 * XplatUIX11.cs: Implemented UpdateWindow() method
27711 * Form.cs: Removed stray semicolon causing CS0162 warning
27712 * ThemeWin32Classic.cs: Fixed unused variable warnings
27713 * ScrollableControl.cs: Now calls base method for ScaleCore
27714 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
27715 style to avoid interference with internal click handler (which is
27716 different than standard Control click handling)
27718 - Now unchecks all sibling radio buttons when control is
27719 selected (Fixes #68756)
27720 - Removed internal tabstop variable, using the one inherited from
27723 2005-01-17 Jackson Harper <jackson@ximian.com>
27725 * NavigateEventArgs.cs: Fix base type.
27726 * LinkLabel.cs: Sig fix
27728 2005-01-17 Jackson Harper <jackson@ximian.com>
27730 * TreeView.cs: Only invalidate the effected nodes bounds when
27733 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27735 * XplatUIWin32.cs: fixes Win32 marshaling
27736 * XplatUIX11.cs: fixes method signature
27738 2005-01-17 Peter Bartok <pbartok@novell.com>
27740 * XplatUIX11.cs: Clean up resources when we no longer need them
27742 2005-01-17 Peter Bartok <pbartok@novell.com>
27744 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
27745 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
27746 and DestroyCursor() methods.
27747 * Cursor.cs: Partially implemented, now supports standard cursors;
27748 still contains some debug code
27749 * Cursors.cs: Implemented class
27751 - WndProc(): Added handling of WM_SETCURSOR message, setting the
27753 - Implemented Cursor property
27754 - Replaced break; with return; more straightforwar and possibly
27756 - Now properly setting the result for WM_HELP
27757 * X11Structs.cs: Added CursorFontShape enum
27758 * XplatUIStructs.cs:
27759 - Added StdCursor enum (to support DefineStdCursor() method)
27760 - Added HitTest enum (to support sending WM_SETCURSOR message)
27762 - Now sends the WM_SETCURSOR message
27763 - Implemented new cursor methods
27764 * XplatUIOSX.cs: Stubbed new cursor methods
27766 - Implemented new cursor methods
27767 - Added GetSystemMetrics function and associated enumeration
27769 2005-01-15 Peter Bartok <pbartok@novell.com>
27772 - WndProc(): Now handles EnableNotifyMessage
27773 - SelectNextControl(): Fixed bug where if no child or sibling
27774 controls exist we looped endlessly
27776 2005-01-14 Jackson Harper <jackson@ximian.com>
27778 * TreeView.cs: Recalculate the tab pages when a new one is added
27779 so that the proper bounding rects are created.
27781 2005-01-14 Jackson Harper <jackson@ximian.com>
27783 * TreeView.cs: Draw a gray box instead of a grip in the lower
27784 right hand corner when there are both horizontal and vertical
27787 2005-01-14 Jackson Harper <jackson@ximian.com>
27789 * Control.cs: When erasing backgrounds use FromHwnd instead of
27790 FromHdc when there is a NULL wparam. This occurs on the X driver.
27791 * XplatUIX11.cs: Set the wparam to NULL.
27793 2005-01-13 Jackson Harper <jackson@ximian.com>
27795 * PictureBox.cs: Implement missing methods (except ToString, need
27796 to test that on windows) and events. When visibility is changed we
27797 need to redraw the image because the buffers are killed. When size
27798 is changed refresh if the sizemode needs it.
27800 2005-01-13 Peter Bartok <pbartok@novell.com>
27802 * Control.cs (SelectNextControl): Was using wrong method to select
27805 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27807 * ComboBox.cs: fixes dropstyle
27809 2005-01-13 Peter Bartok <pbartok@novell.com>
27812 - Implemented Select() override
27813 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
27814 - Now sets keyboard focus on startup
27815 * Control.cs (SelectNextControl): Now properly handles directed=true
27817 - WndProc: Now passes tab key on to base if AcceptTabChar=false
27818 - Added (really bad) focus rectangle (mostly for testing)
27819 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
27820 to enforce redraw on focus changes
27821 * ContainerControl.cs:
27822 - Fixed detection of Shift-Tab key presses
27823 - Fixed traversal with arrow keys
27824 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
27825 gonna keep this or if it's complete yet
27827 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
27829 * ComboBox.cs: missing properties, fixes
27831 2005-01-13 Peter Bartok <pbartok@novell.com>
27833 * Panel.cs (ctor): Setting Selectable window style to off
27834 * Splitter.cs (ctor): Setting Selectable window style to off
27835 * GroupBox.cs (ctor): Setting Selectable window style to off
27836 * Label.cs (ctor): Setting Selectable window style to off
27838 2005-01-12 Miguel de Icaza <miguel@ximian.com>
27840 * UpDownBase.cs (InitTimer): If the timer has been already
27841 created, enable it.
27843 Use a TextBox instead of a Label.
27845 2005-01-12 Jackson Harper <jackson@ximian.com>
27847 * TreeView.cs: Refresh the tree after sorting the nodes. Always
27848 draw the connecting node lines (when ShowLines is true).
27849 * TreeNode.cs: The nodes index can now be updated. This is used
27850 when a node collection is sorted.
27851 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
27852 insert or an existing unsorted node collection can be sorted.
27854 2005-01-12 Peter Bartok <pbartok@novell.com>
27856 * ContainerControl.cs: Implemented ProcessDialogKeys()
27858 2005-01-12 Peter Bartok <pbartok@novell.com>
27861 - Implemented SelectNextControl() method
27862 - Several focus related bug fixes
27863 - Fixed Docking calculations to match MS documentation and
27866 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
27868 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
27871 2005-01-12 Peter Bartok <pbartok@novell.com>
27874 - Fixed broken Contains() method
27875 - Implemented GetNextControl() method. Finally. This is the pre-
27876 requisite for focus handling.
27878 2005-01-12 Peter Bartok <pbartok@novell.com>
27880 * OSXStrucs.cs: Added
27882 2005-01-12 Peter Bartok <pbartok@novell.com>
27885 - Removed PeekMessageFlags
27886 - Implemented SetWindowStyle() method
27887 * XplatUIStructs.cs: Added PeekMessageFlags
27888 * X11Structs: Added missing border_width field to XWindowChanges struct
27890 - PeekMessage: Now throws exception if flags which are not yet
27891 supported are passed
27892 - Implemented SetWindowStyle() method
27893 - Fixed SetZOrder to handle AfterHwnd properly
27894 * XplatUI.cs: Added SetWindowStyle() method
27895 * XplatUIDriver.cs: Added SetWindowStyle() abstract
27897 - Implemented UpdateStyles() method
27898 - Implemented UpdateZOrder() method
27899 * XplatUIOSX.cs: Added SetWindowStyle() stub
27901 2005-01-12 Geoff Norton <gnorton@customerdna.com>
27903 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
27907 2005-01-11 Jackson Harper <jackson@ximian.com>
27909 * TreeView.cs: Still need to draw lines to siblings even if out of
27910 the current node is out of the clip.
27912 2005-01-11 Jackson Harper <jackson@ximian.com>
27914 * TreeView.cs: When setting the hbar/vbar/grip position use
27915 SetBounds so that perform layout is only called once. Also suspend
27916 and resume layout so layout is only done once for all controls.
27917 - Removed some debug fluff
27918 * SizeGrip.cs: Call base implmentation in overriding methods.
27919 - When visibility is changed the drawing buffers are killed so we
27922 2005-01-11 Jackson Harper <jackson@ximian.com>
27924 * TreeView.cs: Calculate the open node count while drawing. This
27925 saves us an entire tree traversal for every paint operation. Use
27926 a member var for the open node count so less vars are passed around.
27928 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
27930 * MonthCalendar.cs:
27931 - fixed selection to use mousemove, not mouse polling on timer
27932 * ThemeWin32Classic.cs
27933 - removed redundant unused variable "no_more_content"
27935 2005-01-11 Peter Bartok <pbartok@novell.com>
27937 * XplatUIX11.cs (DoEvents): Needs to return when no more events
27938 are pending, so it now calls PeekMessage instead of GetMessage;
27939 implemented a incomplete version of PeekMessage
27941 2005-01-11 Peter Bartok <pbartok@novell.com>
27943 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
27945 * TextBoxBase.cs: Added sending of TextChanged event
27947 2005-01-10 Jackson Harper <jackson@ximian.com>
27949 * TreeView.cs: Try not to draw outside the clipping rectangle on
27952 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
27954 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
27956 2005-01-10 Jackson Harper <jackson@ximian.com>
27959 - Implement fast scrolling. Now only the newly
27960 exposed nodes are drawn and the old image is moved using the
27961 XplatUI::ScrollWindow method.
27962 - Factor in height of nodes when calculating whether or not the
27963 node is in the clipping rect.
27965 2005-01-10 Jackson Harper <jackson@ximian.com>
27967 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
27969 2005-01-10 Peter Bartok <pbartok@novell.com>
27971 * Application.cs: Added temporary hack to resolve all our resize
27972 required issues on startup. This will get fixed properly at
27973 some point in the future
27975 2005-01-10 Jackson Harper <jackson@ximian.com>
27977 * SizeGrip.cs: New internal class that is used as a sizing
27978 grip control...hence the name.
27980 2005-01-10 Peter Bartok <pbartok@novell.com>
27982 * Control.cs: Implemented proper TabIndex handling, now assigning
27983 a tabindex when a control is added to a container
27984 * GroupBox.cs (ctor): Now sets the Container style bit, required
27985 for Control.GetNextControl()
27987 2005-01-09 Jackson Harper <jackson@ximian.com>
27989 * TextBoxBase.cs: Clear window when scrolling (fixes build).
27991 2005-01-09 Peter Bartok <pbartok@novell.com>
27993 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27994 XplatUIX11.cs: Added ability to control ScrollWindow expose and
27995 an overload for ScrollWindow to allow only scrolling a rectangle
27997 2005-01-09 Peter Bartok <pbartok@novell.com>
28000 - Implemented SetDesktopBounds method
28001 - Implemented SetDesktopLocation method
28003 2005-01-08 Jackson Harper <jackson@ximian.com>
28005 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
28006 the node count has changed, this removes to VScroll::Refresh calls
28009 2005-01-08 Geoff Norton <gnorton@customerdna.com>
28011 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
28013 2005-01-07 Jackson Harper <jackson@ximian.com>
28015 * TreeNode.cs: Just update the single node when it is
28016 checked. Don't refresh after toggling, the Expand/Collapse already
28018 * TreeView.cs: Respect clipping a little more when drawing. Try
28019 not to redraw things that don't need to be redrawn. Just hide the
28020 scrollbars when they are no longer needed instead of removing
28021 them, so they don't have to be created again and again.
28023 2005-01-07 Geoff Norton <gnorton@customerdna.com>
28025 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
28026 coordinates to window space to place the caret properly, FIXED.
28027 Implement GetWindowState & SetWindowState
28029 2005-01-06 Peter Bartok <pbartok@novell.com>
28032 - Implemented ClientSize property
28033 - Implemented DesktopBounds property
28034 - Implemented DesktopLocation property
28035 - Implemented IsRestrictedWindow property
28036 - Implemented Size property
28037 - Implemented TopLevel property
28038 - Implemented FormWindowState property
28040 - Implemented GetTopLevel() method
28041 - Implemented SetTopLevel() method
28042 * X11Structs.cs (Atom):
28043 - Added AnyPropertyType definition
28044 - Added MapState definiton and updated XWindowAttribute struct
28045 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
28046 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
28047 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
28049 - Implemented GetWindowState() and SetWindowState() methods
28050 - Fixed Win32GetWindowLong return type
28052 - Introduced central function for sending NET_WM messages
28053 - Implemented GetWindowState() and SetWindowState() methods
28054 * TextBoxBase.cs (set_Lines):
28055 - Now uses Foreground color for text added via Text property (Duh!)
28056 - Added code to remember programmatically requested size (fixes
28057 behaviour when Multiline is set after Size)
28058 - Added AutoSize logic
28060 2005-01-06 Jackson Harper <jackson@ximian.com>
28062 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
28064 2005-01-06 Jackson Harper <jackson@ximian.com>
28066 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
28067 set to less then 0.
28069 2005-01-06 Jackson Harper <jackson@ximian.com>
28071 * ScrollableControl.cs: Lazy init the scrollbars.
28073 2005-01-06 Jackson Harper <jackson@ximian.com>
28075 * Theme.cs: Speed up getting pens and solid brushes, by using
28076 their ARGB as a hash instead of tostring and not calling Contains.
28078 2005-01-06 Peter Bartok <pbartok@novell.com>
28081 - Implemented OnActivated and OnDeactivate event trigger
28082 - Implemented Activate() method
28083 - Fixed ShowDialog() to activate the form that was active before
28084 the dialog was shown
28086 - Added global active_window var that tracks the currently active
28088 - Now always grabs Property changes from the root window to always
28089 catch changes on the active window property
28090 - Added code to PropertyNotify handler to send Active/Inactive
28091 messages when state changes. This puts X11 and Win32 en par on
28092 WM_ACTIVATE notifications (except for double notifications when
28093 the user clicks away from our modal window to another one of our
28096 2005-01-05 Jackson Harper <jackson@ximian.com>
28098 * ImageList.cs: Implment ctor
28100 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28102 * XplatUIOSX.cs: Implement Activate/SetTopmost
28104 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28106 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
28108 2005-01-05 Geoff Norton <gnorton@customerdna.com>
28110 * XplatUIOSX.cs: Implement GetActive/SetFocus.
28112 2005-01-05 Peter Bartok <pbartok@novell.com>
28114 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
28115 XplatUIOSX.cs: Added GetActive method to return the currently
28116 active window for the application (or null, if none is active)
28118 - Implemented ActiveForm
28119 - Commented out owner assignment for modal dialogs (causes problems
28120 on Win32, since the owner will be disabled)
28121 - Reworked some Active/Focus handling (still incomplete)
28122 * CommonDialog.cs: Commented out owner assignment for modal dialogs
28123 (causes problems on Win32, since the owner will be disabled)
28124 * IWin32Window: Added ComVisible attribute
28126 2005-01-05 Peter Bartok <pbartok@novell.com>
28128 * ToolTip.cs (WndProc): Enable setting focus now that we have the
28129 required XplatUI functions.
28131 2005-01-05 Peter Bartok <pbartok@novell.com>
28133 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
28134 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
28135 to implement focus and activation handling; still incomplete and
28138 2005-01-04 Peter Bartok <pbartok@novell.com>
28140 * TextBoxBase.cs: Changed access level for Document property to
28141 match switch to internal for TextControl
28143 2005-01-04 Peter Bartok <pbartok@novell.com>
28145 * AccessibleObject: Added ComVisible attribute
28147 2005-01-04 Jackson Harper <jackson@ximian.com>
28149 * X11Keyboard.cs: Remove unneeded var.
28151 2005-01-04 Jackson Harper <jackson@ximian.com>
28153 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
28155 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
28156 ClientMessage. This makes apps exit cleanly (more often).
28158 2005-01-04 Jackson Harper <jackson@ximian.com>
28160 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
28161 handling focus, return correct colors and fonts,
28162 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
28163 handle selection, horizontal scrolling, and mouse interaction.
28165 2005-01-04 Peter Bartok <pbartok@novell.com>
28167 * ICommandExecutor.cs: Added
28168 * IDataGridColumnStyleEditingNotificationService.cs: Added
28169 * IFeatureSupport.cs: Added
28170 * IFileReaderService.cs: Added
28171 * IDataObject.cs: Added ComVisible attribute
28172 * AmbientProperties.cs: Added
28173 * BaseCollection.cs: Added missing attributes
28174 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
28175 * BaseCollection.cs: Added missing attributes
28176 * Binding.cs: Added TypeConverter attribute
28177 * BindingContext.cs: Added DefaultEvent attribute
28178 * BindingsCollection.cs: Added DefaultEvent attribute
28179 * Button.cs: Added DefaultValue attribute
28180 * DragEventArgs.cs: Added ComVisible attribute
28181 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
28182 * KeyEventArgs.cs: Added ComVisible attribute
28183 * KeyPressEventArgs.cs: Added ComVisible attribute
28184 * MouseEventArgs.cs: Added ComVisible attribute
28185 * NavigateEventArgs.cs: Added
28186 * NavigateEventHandler.cs: Added
28187 * FeatureSupport.cs: Added
28188 * OSFeature.cs: Added
28189 * Theme.cs: Added abstract Version property to support OSFeature
28190 * ThemeWin32Classic.cs: Added Version property to
28191 support OSFeature.Themes
28192 * ProgressBar.cs: Removed OnPaintBackground override, not required since
28193 the proper styles to avoid background drawing are set, also doesn't
28195 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
28196 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
28197 * ScrollEventArgs.cs: Added ComVisible attribute
28198 * SplitterEventArgs.cs: Added ComVisible attribute
28199 * AccessibleSelection.cs: Added Flags attribute
28200 * Appearance.cs: Added ComVisible attribute
28201 * Border3DSide.cs: Added ComVisible attribute
28202 * Border3DStyle.cs: Added ComVisible attribute
28203 * BorderStyle.cs: Added ComVisible attribute
28204 * DragAction.cs: Added ComVisible attribute
28205 * ErrorBlinkStyle.cs: Added
28206 * ScrollEventType.cs: Added ComVisible attribute
28207 * AnchorStyles.cs: Added Editor attribute
28208 * DockStyle.cs: Added Editor attribute
28209 * HorizontalAlignment.cs: Added ComVisible attribute
28210 * HelpEventArgs.cs: Added ComVisible attribute
28211 * PaintEventArgs.cs: Added IDisposable
28213 2005-01-04 Peter Bartok <pbartok@novell.com>
28215 * TextControl.cs: Switched Line, LineTag and Document classes to
28218 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
28220 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
28221 Simple mode, fixes, IntegralHeight, etc.
28223 2005-01-04 Peter Bartok <pbartok@novell.com>
28225 * TextBoxBase.cs: Using proper font variable now
28227 2005-01-04 Peter Bartok <pbartok@novell.com>
28229 * Form.cs (ShowDialog): Set parent to owner, if provided
28230 * GroupBox.cs: Removed unused vars
28232 - Added GetHashCode() for Document and LineTag classes
28233 - Removed unused variables
28234 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
28235 to allow translation between continuous char position and line/pos
28236 * CheckBox.cs: Removed vars that are provided by base class
28237 * RadioButton.cs: Removed vars that are provided by base class, added
28238 new keyword where required
28239 * LinkLabel.cs: Added new keyword where required
28240 * Control.cs (WndProc): Removed unused variable
28242 - Finished SelectionLength property
28243 - Implemented SelectionStart property
28244 - Implemented Text property
28245 - Removed unused vars
28246 * MessageBox.cs: Added new keyword where required
28247 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
28249 * MenuAPI.cs: Added new keyword where required
28250 * ButtonBase.cs: Removed vars that are provided by base class, added
28251 new keyword where required
28252 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
28253 argument to double, to allow compiling with csc 2.0 (Atsushi ran
28255 * Application.cs (Run): Now triggers the ThreadExit event
28256 * CommonDialog.cs: Added new keyword where required; now properly sets
28257 parent (owner) for dialog
28258 * XplatUIX11.cs: Commented out unused vars
28259 * StatusBar.cs: Fixed signature for Text property
28260 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
28262 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
28264 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
28265 TrackBar.cs, MonthCalendar.cs: remove unused vars
28267 2005-01-03 Jackson Harper <jackson@ximian.com>
28269 * ThemeWin32Classic.cs:
28270 * X11Keyboard.cs: Remove unused vars.
28272 2005-01-03 Peter Bartok <pbartok@novell.com>
28275 - set_Text: Tied into TextControl
28276 - set_TextAlignment: Tied into TextControl
28278 - Added alignment properties and implemented alignment handling
28279 and drawing (still has a bug, not generating proper expose events)
28280 - Added new Line() constructor to allow passing the line alignment
28281 - Fixed selection setting, properly handling end<start now
28282 - Added aligment considerations to RecalculateDocument()
28284 - Now properly enforces control height for single line controls
28285 - Added support for CharacterCasing
28286 - Added IsInputKey override
28287 - Fixed Keys.Enter logic
28288 - Added SetBoundsCore override
28289 - Fixed mouse selection handling
28291 2005-01-03 Jackson Harper <jackson@ximian.com>
28294 - Collapse and uncheck all nodes when CheckBoxes is disabled.
28295 - Checkboxes are always aligned to the bottom of the node,
28296 regardless of item height.
28297 - Use the node bounds to draw the text so we can center it when
28298 the item height is greater then the font height.
28299 - Node::Bounds are only the text part of the node.
28300 * TreeNode.cs: New method to combine collapsing and unchecking all
28303 2005-01-02 Jackson Harper <jackson@ximian.com>
28305 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
28306 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
28307 tree when a check is changed. TODO: Only refresh the checked node.
28309 2004-12-30 Jackson Harper <jackson@ximian.com>
28311 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
28312 * TreeNode.cs: When collapsing make sure to never collapse the
28315 2004-12-29 Jackson Harper <jackson@ximian.com>
28317 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
28319 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
28321 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
28323 2004-12-28 Peter Bartok <pbartok@novell.com>
28325 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
28328 2004-12-28 Peter Bartok <pbartok@novell.com>
28330 * Control.cs (WndProc): Added WM_HELP handler, now generates
28331 HelpRequested event
28332 * Form.cs: Added HelpButton property and required support code
28333 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
28335 2004-12-28 Peter Bartok <pbartok@novell.com>
28338 - Made DialogForm.owner variable internal
28339 - Added check to ensure owner form is set before setting
28340 owner properties in CreateParams
28342 2004-12-28 Geoff Norton <gnorton@customerdna.com>
28344 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
28345 swizzling. Implement ClientToScreen and ScreenToClient. Implement
28346 GetCursorPos. Fix major visibility issues. Rework the windowing
28347 system to support borderless/titleless windows (implements menus).
28348 Fix GetWindowPos. Implement initial background color support for
28351 2004-12-28 Peter Bartok <pbartok@novell.com>
28353 * Form.cs (get_CreateParams): Make sure we have an owner before using
28354 the owner variable. Implement proper default if no owner exists
28356 2004-12-28 Peter Bartok <pbartok@novell.com>
28358 * In preparation for making Managed.Windows.Forms the default build target
28359 for System.Windows.Forms, the following stubbed files were added.
28360 Dialogs are currently being implemented by contributors and are only
28361 short-term place holders.
28362 * ColorDialog.cs: Initial check-in (minmal stub)
28363 * DataGrid.cs: Initial check-in (minimal stub)
28364 * DataGridLineStyle.cs: Initial check-in (minimal stub)
28365 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
28366 * DataGridTableStyle.cs: Initial check-in (minimal stub)
28367 * FontDialog.cs: Initial check-in (minimal stub)
28368 * FileDialog.cs: Initial check-in (minimal stub)
28369 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
28370 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
28371 * OpenFileDialog: Initial check-in (minimal stub)
28372 * IComponentEditorPageSite.cs: Initial check-in
28373 * Splitter.cs: Initial check-in (for Jackson)
28374 * SplitterEventArgs.cs: Initial check-in (for Jackson)
28375 * SplitterEventHandler.cs: Initial check-in (for Jackson)
28376 * TextBox.cs: Initial check-in; still needs some wiring to
28377 TextControl backend
28378 * Form.cs: Implemented ControlBox property
28379 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
28380 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
28381 * TextControl.cs: Added selection functionality; added todo header
28383 - Implemented Lines property
28384 - Implemented TextHeight property
28385 - Implemented SelectedText property
28386 - Implemented SelectionLength property
28387 - Implemented SelectAll method
28388 - Implemented ToString method
28389 - Removed and cleaned up some debug code
28390 - Implemented (still buggy) mouse text selection
28392 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
28394 * ComboBox.cs: Complete DropDownList implementation, fixes.
28396 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
28398 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
28399 * ComboBoxStyle.cs: ComboBoxStyle enum
28400 * ComboBox.cs: Initial work on ComboBox control
28402 2004-12-21 Peter Bartok <pbartok@novell.com>
28404 * Control.cs (ctor, CreateParams): Moved setting of is_visible
28405 forward so that anything that creates a window gets the default,
28406 also no longer uses Visible property in CreateParams to avoid
28407 walking up the parent chain and possibly get the wrong visible
28408 status. Fixed IsVisible to no longer walk up to the parent.
28410 2004-12-21 Peter Bartok <pbartok@novell.com>
28412 * Form.cs (ShowDialog): Unset modality for the proper window
28414 2004-12-20 Peter Bartok <pbartok@novell.com>
28416 * CommonDialog.cs: Initial check-in
28418 2004-12-20 Peter Bartok <pbartok@novell.com>
28420 * Control.cs (Visible): Now uses the parent window instead of the
28421 client area window for the property
28424 - ShowDialog(): Now uses the proper window for modality
28425 - The default visibility state for the form parent is now false. This
28426 will prevent the user from seeing all the changes to the form and
28427 its controls before the application hits Application.Run()
28428 - Removed some stale commented out code
28431 - Added FindWindow() method to have a method to check for existence
28433 - Added ability to override default exception handling (for example
28434 when debugging with VS.Net; to do this the ExternalExceptionHandler
28436 - Removed some useless debug output
28439 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
28440 not working as expected
28441 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
28442 property to allow switching back to the modal window if focus is
28443 given to another one of our windows (Application Modal)
28444 - Now only sets override_redirect if we create a window
28446 - Moved EventMask selection before mapping of newly created window
28447 so we can catch the map event as well
28448 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
28449 - Added various Atom related DllImports
28450 - Implemented Exit() method
28451 - .ctor() : No longer shows window if WS_VISIBLE is not defined
28452 in the CreateParams
28454 * MessageBox.cs: Now properly deals with the FormParent window by
28455 providing an override the FormParent CreateParams property to
28456 set as POPUP instead of OVERLAPPED window.
28458 2004-12-19 Geoff Norton <gnorton@customerdna.com>
28460 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
28461 Minor code cleanup.
28463 2004-12-19 Geoff Norton <gnorton@customerdna.com>
28465 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
28467 2004-12-18 Peter Bartok <pbartok@novell.com>
28469 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
28470 implementing SetModal() method
28472 2004-12-18 Peter Bartok <pbartok@novell.com>
28474 * X11Structs.cs (XGCValues): Fixed type of function element
28475 * XplatUI.cs: Added ScrollWindow() method
28476 * XplatUIDriver.cs: Added ScrollWindow() abstract
28477 * XplatUIWin32.cs: Implemented ScrollWindow() method
28478 * XplatUIX11.cs: Implemented ScrollWindow() method
28479 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
28481 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28483 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
28484 Some more keyboard support (INCOMPLETE)
28486 2004-12-17 Peter Bartok <pbartok@novell.com>
28489 - Added color attribute to line tags.
28490 - Added color argument to all functions dealing with tags
28491 - Added color argument support to various functions
28492 - Fixed miss-calculation of baseline/shift in certain circumstances
28494 * TextBoxBase.cs: Added new color option to test code
28496 2004-12-17 Jackson Harper <jackson@ximian.com>
28499 * MonthCalendar.cs: Signature fixes
28501 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28503 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
28504 keyboard event moved it. Create a new graphics context for each paint resolves this
28506 2004-12-17 Geoff Norton <gnorton@customerdna.com>
28508 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
28509 Make caret exist and go blink blink. Initial keyboard support.
28510 Fix exception handler, Add Invalidate support. Change way RefreshWindow
28513 2004-12-17 Jackson Harper <jackson@ximian.com>
28515 * XplatUIStructs.cs: Updated set of virtual keycodes.
28516 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
28518 2004-12-17 Jackson Harper <jackson@ximian.com>
28520 * XplatUIX11.cs: Prune old keyboard code.
28522 2004-12-17 Jackson Harper <jackson@ximian.com>
28524 * XplatUIX11.cs: When generating mouse wparams get the modifier
28525 keys from the ModifierKeys property.
28527 2004-12-17 Jackson Harper <jackson@ximian.com>
28529 * X11Keyboard.cs: Send up/down input when generating
28530 messages. Remove some unused vars.
28532 2004-12-17 Jackson Harper <jackson@ximian.com>
28535 * TreeView.cs: get rid of warnings.
28537 2004-12-17 Jackson Harper <jackson@ximian.com>
28539 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
28541 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
28543 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
28544 CheckedListBox.cs: Implementation
28546 2004-12-17 Peter Bartok <pbartok@novell.com>
28548 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
28550 2004-12-16 Peter Bartok <pbartok@novell.com>
28553 - InsertCharAtCaret(): Fixed start pos fixup
28554 - CaretLine_get: No longer derives the line from the tag, the tag
28555 could be stale if lines in the document have been added or deleted
28556 - RebalanceAfterDelete(): Fixed bug in balancing code
28557 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
28558 - Line.Streamline(): Now can also elminate leading empty tags
28559 - DumpTree(): Added a few more tests and prevented exception on
28561 - Added Debug section for Combining lines
28562 - Delete(): Now copies all remaining properties of a line
28565 - Left mousebutton now sets the caret (and middle button still acts
28566 as formatting tester, which must go away soon)
28567 - Added Debug section for Deleting/Combining lines
28568 - Fixed calculations for UpdateView after Combining lines
28570 2004-12-16 Peter Bartok <pbartok@novell.com>
28572 * TextControl.cs: Now properly aligns text on a baseline, using the
28573 new XplatUI.GetFontMetrics() method. Simplified several calculations
28574 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
28577 2004-12-16 Peter Bartok <pbartok@novell.com>
28579 * XplatUI.cs: Added GetFontMetrics() method
28580 * XplatUIDriver.cs: Added GetFontMetrics() abstract
28581 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
28582 into libgdiplus, our private GetFontMetrics function
28583 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
28584 * XplatUIWin32.cs: Implemented GetFontMetrics() method
28586 2004-12-16 Jackson Harper <jackson@ximain.com>
28588 * XplatUIStruct.cs: Add enum for dead keys
28589 * X11Keyboard.cs: Map and unmap dead keys.
28591 2004-12-16 Jackson Harper <jackson@ximian.com>
28593 * X11Keyboard.cs: Detect and use the num lock mask.
28595 2004-12-16 Peter Bartok <pbartok@novell.com>
28597 * Control.cs (CreateGraphics): Added check to make sure the
28598 handle of the window exists before calling Graphics.FromHwnd()
28600 2004-12-16 Peter Bartok <pbartok@novell.com>
28602 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
28603 contains a lot of code that's not supposed to be there for the
28604 real thing, but required for developing/testing the textbox
28607 2004-12-16 Peter Bartok <pbartok@novell.com>
28610 - Fixed Streamline method
28611 - Added FindTag method to Line
28612 - Added DumpTree method for debugging
28613 - Added DecrementLines() method for deleting lines
28614 - Fixed UpdateView to update the cursor to end-of-line on single-line
28616 - Added PositionCaret() method
28617 - Fixed MoveCaret(LineDown) to move into the last line, too
28618 - Added InsertChar overload
28619 - Fixed InsertChar tag offset calculations
28620 - Added DeleteChar() method
28621 - Added Combine() method for folding lines
28622 - Fixed Delete() method, no longer allocates wasted Line object and
28623 now copies all properties when swapping nodes
28624 - Delete() method now updates document line counter
28626 2004-12-15 Jackson Harper <jackson@ximian.com>
28628 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
28629 * X11Keyboard.cs: Expose the currently selected modifier keys
28630 through a property.
28632 2004-12-15 Peter Bartok <pbartok@novell.com>
28634 * TextControl.cs: Initial check-in. Still incomplete
28636 2004-12-15 Jackson Harper <jackson@ximian.com>
28639 * TreeView.cs: Fix build on csc (second time today ;-))
28641 2004-12-15 Jackson Harper <jackson@ximian.com>
28643 * TreeView.cs: Store the treenodes plus/minus box bounds when it
28644 is calculated and use this for click testing.
28645 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
28647 2004-12-15 Jackson Harper <jackson@ximian.com>
28649 * TreeView.cs: Pass the nodes image index to the image list when
28650 drawing that image.
28652 2004-12-15 Jackson Harper <jackson@ximian.com>
28654 * X11Keyboard.cs: Set messages hwnd.
28655 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
28656 post_message calls.
28658 2004-12-15 Jackson Harper <jackson@ximian.com>
28660 * X11Keyboard.cs: Fix to compile with csc.
28662 2004-12-15 Jackson Harper <jackson@ximian.com>
28664 * X11Structs.cs: Add key mask values
28665 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
28666 * X11Keyboard.cs: New file - Extrapolates and interpolates key
28667 down/up foo into WM_CHAR foo
28668 * KeyboardLayouts.cs: Common keyboard layouts
28669 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
28670 post messages into the main queue.
28672 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
28674 * Button.cs: implement ProcessMnemonic
28675 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
28677 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
28678 * ButtonBase.cs: Show HotkeyPrefix (not the &)
28680 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
28682 * MonthCalendar.cs: Implemented click-hold for next/previous month
28685 2004-12-11 Peter Bartok <pbartok@novell.com>
28688 - Added XKeyboardState (moved from XplatUIX11.cs)
28689 - Added XCreateGC related enums and structures
28690 - Added GXFunction for XSetFunction
28692 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
28694 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
28695 CaretVisible() calls
28697 * ToolTip.cs: Added code to prevent stealing focus from app windows
28699 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
28700 DestroyCaret, SetCaretPos and CaretVisible)
28703 - Added implementation for caret functions
28704 - Moved hover variables into a struct, to make it a bit easier
28705 on the eyes and to debug
28706 - Removed XKeyboardState (moved to XplatUIX11.cs)
28707 - Moved Keyboard properties into the properties region
28709 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
28710 call to get a graphics context for our control
28712 * XplatUIOSX.cs: Added empty overrides for the new caret functions
28714 * TreeView.cs: Fixed bug. No matter what color was set it would always
28715 return SystemColors.Window
28717 * XplatUIWin32.cs: Implemented caret overrides
28719 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
28721 * ListBox.cs: fire events, implement missing methods and properties,
28724 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
28726 * MonthCalendar.cs: invalidation bug fixing
28727 * ThemeWin32Classic.cs: paint fixing
28729 2004-12-09 Geoff Norton <gnorton@customerdna.com>
28731 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
28732 prepare the CGContextRef there now.
28734 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
28736 * MonthCalendar.cs:
28737 - optimisationL only invalidate areas that have changed
28738 * ThemeWin32Classic.cs:
28739 - only paint parts that intersect with clip_area
28741 2004-12-09 Peter Bartok <pbartok@novell.com>
28743 * Application.cs: Undid changes from r37004 which cause problems
28746 2004-12-09 Ravindra <rkumar@novell.com>
28748 * ToolBar.cs: Added support for displaying ContextMenu
28749 attached to a button on ToolBar.
28750 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
28753 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
28755 * Label.cs: autosize works in text change and removes unnecessary
28758 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
28760 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28763 2004-12-08 Geoff Norton <gnorton@customerdna.com>
28765 * XplatUIOSX.cs: Added mouse move/click/grab support
28766 Remove some debugging WriteLines not needed anymore.
28767 Add window resizing/positioning.
28768 Fix visibility on reparenting.
28770 2004-12-08 Peter Bartok <pbartok@novell.com>
28772 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
28774 2004-12-07 Geoff Norton <gnorton@customerdna.com>
28776 * XplatUIOSX.cs: Initial checkin
28777 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
28779 2004-12-03 Ravindra <rkumar@novell.com>
28781 * ListView.cs: Added some keybindings and fixed scrolling.
28782 ScrollBars listen to ValueChanged event instead of Scroll
28783 Event. This would let us take care of all changes being
28784 done in the scrollbars' values programmatically or manually.
28785 * ListView.cs (CanMultiselect): Added a check for shift key.
28786 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
28787 * ListViewItem.cs (Clone): Fixed. We need to make a copy
28788 of ListViewSubItemCollection as well.
28790 2004-12-06 Peter Bartok <pbartok@novell.com>
28792 * Control.cs (Parent): Added check and exception to prevent
28795 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
28797 * ListBox.cs: implemented clipping, selection single and multiple,
28800 2004-12-03 Ravindra <rkumar@novell.com>
28802 * ListView.cs (ListView_KeyDown):
28803 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
28804 when CTRL key is pressed.
28805 * ListViewItem.cs (Selected): Fixed setting the property.
28807 2004-12-03 Marek Safar <marek.safar@seznam.cz>
28809 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
28811 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
28812 MinimizeBox, ShowInTaskbar, TopMost properties.
28814 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
28815 will be implemented).
28817 2004-12-03 Marek Safar <marek.safar@seznam.cz>
28819 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
28821 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
28824 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
28826 * TreeView.cs: BackColor is Colors.Window.
28828 2004-12-01 Jackson Harper <jackson@ximian.com>
28830 * TreeView.cs: When resizing the tree if the user is making it
28831 smaller we don't get expose events, so we need to handle adding
28832 the horizontal scrollbar in the size changed handler as well as
28833 the expose handler.
28835 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
28837 * DrawItemState.cs: fixes wrong enum values
28839 2004-12-01 Jackson Harper <jackson@ximian.com>
28841 * TreeView.cs: Resize the hbar as well as the vbar on resize.
28843 2004-12-01 Jackson Harper <jackson@ximian.com>
28845 * NodeLabelEditEventArgs.cs:
28846 * NodeLabelEditEventHandler.cs:
28847 * OpenTreeNodeEnumerator.cs:
28849 * TreeNodeCollection.cs:
28851 * TreeViewAction.cs:
28852 * TreeViewCancelEventArgs.cs:
28853 * TreeViewCancelEventHandler.cs:
28854 * TreeViewEventArgs.cs:
28855 * TreeViewEventHandler.cs: Initial implementation.
28857 2004-12-01 Ravindra <rkumar@novell.com>
28859 * ListView.cs (CalculateListView): Fixed scrolling related
28860 calculations. Also, removed some debug statements from other
28862 * ListViewItem.cs: Changed access to 'selected' instance variable
28863 from private to internal.
28864 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
28866 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
28868 * ThemeWin32Classic.cs: remove cache of brush and pens for
28869 specific controls and use the global system, fixes scrollbutton
28870 bugs (for small sizes, disabled, etc)
28872 * ScrollBar.cs: does not show the thumb for very small controls
28873 (as MS) and allow smaller buttons that the regular size
28875 2004-12-01 Miguel de Icaza <miguel@ximian.com>
28877 * UpDownBase.cs: Add abstract methods for the interface.
28878 Add new virtual methods (need to be hooked up to TextEntry when it
28880 Add override methods for most features.
28881 Computes the size, forces the height of the text entry.
28883 * NumericUpDown.cs: Put here the current testing code.
28885 * Set eol-style property on all files that do not have mixed line
28886 endings, to minimize the future problems. There are still a few
28887 files with mixed endings, and someone should choose whether they
28888 want to move it or not.
28890 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
28892 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
28895 2004-11-30 Ravindra <rkumar@novell.com>
28897 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
28898 drawing and replaced use of SystemColors by theme colors.
28899 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
28900 * ListView.cs (ListViewItemCollection.Add): Throw exception when
28901 same ListViewItem is being added more than once.
28903 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
28905 * MonthCalendar.cs:
28906 - ControlStyles love to make the control not flicker
28908 2004-11-30 Peter Bartok <pbartok@novell.com>
28910 * CharacterCasing.cs: Added
28912 2004-11-29 Peter Bartok <pbartok@novell.com>
28914 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28915 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
28916 I am removing these files as they conflict with already completed
28917 work. While it is fantastic to get contributions to MWF, I
28918 respectfully ask that everyone please coordinate their contributions
28919 through mono-winforms-list or #mono-winforms at this time. We're
28920 explicitly avoiding stubbing and don't want controls that don't have
28921 their basic functionality implemented in svn. Please also see
28922 http://www.mono-project.com/contributing/winforms.html
28925 2004-11-29 Marek Safar <marek.safar@seznam.cz>
28927 * Application.cs (ModalRun): Don't hang after exit.
28929 * Theme.cs: New TreeViewDefaultSize property.
28931 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
28932 with less hardcoded SystemColors constant.
28933 Implemented TreeViewDefaultSize.
28935 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28936 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
28939 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
28941 * MonthCalendar.cs:
28942 - Fix NextMonthDate and PrevMonthDate click moving calendar
28944 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
28946 * MonthCalendar.cs:
28947 - Fix usage of ScrollChange Property when scrolling months
28949 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
28951 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
28952 - Fixes menu destroying
28953 - Support adding and removing items on already created menus
28955 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
28957 * MonthCalendar.cs:
28958 - Re-worked all bolded dates handling to match win32
28959 * ThemeWin32Classic.cs:
28960 - Fixed rendering with bolded dates
28962 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
28964 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
28965 - Horizontal scroolbar
28970 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
28972 * MonthCalendar.cs:
28973 - Fix Usage of MaxSelectionCount from SelectionRange
28974 - Fixed Shift + Cursor Selection
28975 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
28976 - Fixed normal cursor selection to be compat with win32
28977 - Fixed Shift + Mouse Click selection
28979 2004-11-24 Peter Bartok <pbartok@novell.com>
28981 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
28982 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
28984 - CreatedKeyBoardMsg now updates keystate with Alt key
28985 - Added workaround for timer crash to CheckTimers, Jackson will
28986 develop a proper fix and check in later
28987 - Implemented DispatchMessage
28988 - Removed calling the native window proc from GetMessage (call
28989 now moved to DispatchMessage)
28991 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
28992 the keydata (Fixes bug #69831)
28995 - (DispatchMessage): Switched to return IntPtr
28996 - Added DllImport for SetFocus
28998 2004-11-24 Ravindra <rkumar@novell.com>
29000 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
29001 background drawing.
29002 * ListViewItem.cs: Fixed various properties, calculations
29003 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
29004 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
29005 and some internal properties. Fixed MouseDown handler and Paint
29008 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
29010 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
29012 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
29014 * ContainerControl.cs: correct accidental check in of local changes
29016 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
29018 * ThemeWin32Classic.cs:
29019 - Fixed Drawing Last month in grid (sometimes not showing)
29020 * MonthCalendar.cs:
29021 - Fixed title width calculation bug (makeing title small)
29023 2004-11-23 Peter Bartok <pbartok@novell.com>
29026 - Added generation of WM_MOUSEHOVER event
29027 - Added missing assignment of async_method atom
29028 - Fixed WM_ERASEBKGND; now only redraws the exposed area
29030 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
29032 * ThemeWin32Classic.cs:
29033 - Fixed Drawing of today circle when showtodaycircle not set
29034 - fixed drawing of first and last month in the grid (gay dates)
29035 * MonthCalendar.cs:
29036 - Fixed Drawing of today circle
29037 - Fixed drawing of grady dates
29038 - Fixed HitTest for today link when ShowToday set to false
29039 - Fixed DefaultSize to obey ShowToday
29041 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
29043 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
29044 * System.Windows.Forms/Theme.cs
29045 * MonthCalendar.cs: added for MonthCalendar
29046 * SelectionRange.cs: added for MonthCalendar
29047 * Day.cs: added for MonthCalendar: added for MonthCalendar
29048 * DateRangeEventArgs.cs: added for MonthCalendar
29049 * DateRangeEventHandler.cs: added for MonthCalendar
29051 2004-11-22 Ravindra <rkumar@novell.com>
29053 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
29056 2004-11-22 Miguel de Icaza <miguel@ximian.com>
29058 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
29061 * NumericUpDown.cs: Added new implementation.
29062 * UpDownBase.cs: Added new implementation.
29064 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
29067 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
29070 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
29073 2004-11-21 Miguel de Icaza <miguel@ximian.com>
29075 * Timer.cs (Dispose): Should call the base dispose when
29078 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
29080 * ScrollBar.cs: updates thumb position when max, min or increment
29083 2004-11-21 Ravindra <rkumar@novell.com>
29085 * ListView.cs: Implemented item selection, activation and
29086 column header style. Fixed properties to do a redraw, if
29087 required. Added support for MouseHover, DoubleClick, KeyDown
29088 and KeyUp event handling and some minor fixes.
29089 * ListViewItem.cs: Fixed constructor.
29090 * ThemeWin32Classic.cs: Improved drawing for ListView.
29092 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
29094 * ThemeWin32Classic.cs: initial listbox drawing code
29095 * DrawMode.cs: new enumerator
29096 * ListControl.cs: stubbed class
29097 * ListBox.cs: initial implementation
29098 * Theme.cs: new methods definitions
29099 * SelectionMode.cs: new enumerator
29101 2004-11-17 Peter Bartok <pbartok@novell.com>
29103 * XplatUIWin32.cs: Added double-click events to the class style
29104 * Control.cs (WndProc):
29105 - Added handling of click-count to MouseDown/ MouseUp events.
29106 - Added handling of middle and right mouse buttons
29107 - Removed old debug code
29109 2004-11-17 Jackson Harper <jackson@ximian.com>
29111 * XplatUIX11.cs: Use the new Mono.Unix namespace.
29113 2004-11-17 Ravindra <rkumar@novell.com>
29115 * ListView.cs: Added event handling for MouseMove/Up/Down.
29116 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
29117 * ThemeWin32Classic.cs: We need to clear the graphics context and
29118 draw column header in a proper state.
29121 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
29123 * Menu.cs: fixes signature
29125 2004-11-16 Peter Bartok <pbartok@novell.com>
29127 * XplatUIX11.cs (GetMessage): Implemented generation of
29128 double click mouse messages
29130 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
29132 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
29135 2004-11-11 Peter Bartok <pbartok@novell.com>
29137 * HandleData.cs: Added Visible property
29138 * XplatUIX11.cs (IsVisible): Now uses Visible property from
29140 * XplatUIX11.cs: Removed old debug leftovers
29141 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
29142 * Control.cs (WndProc): Removed old debug leftovers,
29143 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
29144 needed WM_SIZE handling
29146 2004-11-11 Jackson Harper <jackson@ximian.com>
29148 * OwnerDrawPropertyBag.cs:
29149 * TreeViewImageIndexConverter.cs: Initial implementation
29151 2004-11-10 Jackson Harper <jackson@ximian.com>
29153 * ThemeWin32Classic.cs:
29154 * TabControl.cs: instead of moving tabs by the slider pos just
29155 start drawing at the tab that is offset by the slider. This way
29156 scrolling always moves by exactly one tab.
29158 2004-11-10 Jackson Harper <jackson@ximian.com>
29160 * TabControl.cs: You can only scroll left when the slider has
29161 already ben moved right.
29163 2004-11-10 Jackson Harper <jackson@ximian.com>
29165 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
29168 2004-11-10 Jackson Harper <jackson@ximian.com>
29170 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
29173 2004-11-09 Jackson Harper <jackson@ximian.com>
29175 * TabControl.cs (CalcXPos): New helper method so we can determine
29176 the proper place to start drawing vertical tabs.
29177 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
29179 2004-11-09 Jackson Harper <jackson@ximian.com>
29181 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
29182 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
29183 and Bottom, left and right are illegal values for this and
29184 multiline is enabled when the alignment is set to left or right.
29185 (DrawTab): Each alignment block should draw the text itself now
29186 because Left requires special love. Also add rendering for Left
29189 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
29191 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
29192 does not destroy the windows, removes debugging messages
29194 2004-11-09 jba <jba-mono@optusnet.com.au>
29196 * ThemeWin32Classic.cs
29197 (DrawButtonBase): Fix verticle text rect clipping in windows
29198 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29199 rendering and incorrect text rect clipping
29200 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29201 rendering and incorrect text rect clipping
29203 2004-11-08 Jackson Harper <jackson@ximian.com>
29205 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
29206 bottom when they are bottom aligned so the bottoms of the tabs get
29208 * TabControl.cs (DropRow): Move rows up instead of down when the
29209 tab control is bottom aligned.
29211 2004-11-08 13:59 pbartok
29214 - Added handling for various window styles
29215 - Added handling for popup windows
29216 - Added SetTopmost handling
29218 2004-11-08 13:55 pbartok
29221 - Added argument to SetTopmost method
29222 - Fixed broken ClientToScreen function
29224 2004-11-08 13:53 pbartok
29226 * XplatUIStructs.cs:
29227 - Added missing WS_EX styles
29229 2004-11-08 13:53 pbartok
29231 * XplatUI.cs, XplatUIDriver.cs:
29232 - Added argument to SetTopmost
29234 2004-11-08 13:52 pbartok
29237 - Added XSetWindowAttributes structure
29238 - Improved XWindowAttributes structure
29239 - Added SetWindowValuemask enum
29240 - Added window creation arguments enum
29241 - Added gravity enum
29242 - Added Motif hints structure
29243 - Added various Motif flags and enums
29244 - Added PropertyMode enum for property functions
29246 2004-11-08 13:50 pbartok
29249 - Fixed arguments for updated SetTopmost method
29251 2004-11-08 13:49 pbartok
29254 - Fixed arguments for updated SetTopmost function
29255 - Fixed usage of PointToClient
29257 2004-11-08 13:44 pbartok
29260 - Added Clipping of children and siblings
29262 2004-11-08 13:41 pbartok
29265 - Removed SetMenuBarWindow call. We do this in Form.cs
29267 2004-11-08 13:40 jackson
29269 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
29270 scrolling jimmi in the correct location with bottom aligned tabs
29272 2004-11-08 13:36 pbartok
29274 * ContainerControl.cs:
29275 - Implemented BindingContext
29276 - Implemented ParentForm
29278 2004-11-08 12:46 jackson
29280 * TabControl.cs: Put bottom rendered tabs in the right location
29282 2004-11-08 07:15 jordi
29284 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
29287 2004-11-05 17:30 jackson
29289 * TabControl.cs: When selected tabs are expanded make sure they
29290 don't go beyond the edges of the tab control
29292 2004-11-05 14:57 jackson
29294 * TabControl.cs: Reset show_slider so if the control is resized to
29295 a size where it is no longer needed it's not displayed anymore
29297 2004-11-05 13:16 jackson
29299 * TabControl.cs: Make tab pages non visible when added to the
29302 2004-11-05 12:42 jackson
29304 * TabControl.cs: Implement SizeMode.FillToRight
29306 2004-11-05 12:16 jackson
29308 * Control.cs: Do not call CreateHandle if the handle is already
29311 2004-11-05 11:46 jackson
29313 * TabControl.cs: Remove superflous call to CalcTabRows
29315 2004-11-05 09:07 jackson
29317 * XplatUIX11.cs: Update for Mono.Posix changes
29319 2004-11-05 07:00 ravindra
29321 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
29324 2004-11-04 22:47 jba
29326 * ThemeWin32Classic.cs:
29327 - Fix Button rendering for FlatStyle = Flat or Popup
29328 - Fix RadioButton and CheckBox rendering when Appearance = Button
29329 (normal and flatstyle).
29330 - Correct outer rectangle color when drawing focus rectangle
29331 - Adjust button bounds to be 1 px smaller when focused
29332 - Make button not draw sunken 3d border when pushed (windows compat)
29333 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
29334 - Offset the text in RadioButton and Checkbox when being rendered as
29336 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
29338 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
29339 - Fixed disabled text rendering for normally rendered radiobuttons
29341 2004-11-04 10:26 jackson
29343 * TabControl.cs: Recalculate tab rows when resizing
29345 2004-11-04 07:47 jordi
29347 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
29348 collection completion, drawing issues, missing features
29350 2004-11-04 05:03 ravindra
29353 - We need to recalculate the Thumb area when
29354 LargeChange/maximum/minimum values are changed.
29355 - We set the 'pos' in UpdatePos() method to minimum, if it's less
29356 than minimum. This is required to handle the case if large_change is
29357 more than max, and use LargeChange property instead of large_change
29359 - We return max+1 when large_change is more than max, like MS does.
29361 2004-11-04 04:29 ravindra
29363 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
29364 - Changed default value signatures (prefixed all with ListView).
29365 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
29367 - Fixed calculations for ListViewItem and implemented Clone()
29370 2004-11-04 04:26 ravindra
29372 * Theme.cs, ThemeWin32Classic.cs:
29373 - Changed default ListView values signatures (prefixed all with
29375 - Fixed default size values for VScrollBar and HScrollBar.
29376 - Fixed DrawListViewItem method.
29378 2004-11-04 04:05 ravindra
29380 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
29382 2004-11-04 04:04 ravindra
29384 * ImageList.cs: Implemented the missing overload for Draw method.
29386 2004-11-03 19:29 jackson
29388 * TabControl.cs: Handle dropping rows on selection properly
29390 2004-11-03 11:59 jackson
29392 * TabControl.cs: remove debug code
29394 2004-11-03 11:52 jackson
29396 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
29397 the scrolly widgerywoo
29399 2004-11-02 13:52 jackson
29401 * TabControl.cs: Resize the tab pages and tabs when the tab control
29404 2004-11-02 13:40 jackson
29406 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
29407 selected tab to the bottom
29409 2004-11-02 13:39 jackson
29411 * TabPage.cs: Store the tab pages row
29413 2004-11-02 12:33 jordi
29415 * MenuItem.cs: fixes handle creation
29417 2004-11-02 11:42 jackson
29419 * TabControl.cs: signature fix
29421 2004-11-02 08:56 jackson
29423 * TabControl.cs: Calculate whether the tab is on an edge properly.
29424 Remove top secret debugging code
29426 2004-11-01 19:57 jackson
29428 * TabControl.cs: Add click handling, and proper sizing
29430 2004-11-01 19:47 jackson
29432 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
29435 2004-11-01 19:39 jackson
29437 * TabPage.cs: add internal property to store the bounds of a tab
29440 2004-10-30 04:23 ravindra
29442 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
29445 2004-10-30 04:21 ravindra
29447 * ListView.cs, ListViewItem.cs: Added support for scrolling and
29448 fixed calculations.
29450 2004-10-30 03:06 pbartok
29453 - Removed extension of DllImported libs
29455 2004-10-29 09:55 jordi
29457 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
29458 navigation, itemcollection completion, menu fixes
29460 2004-10-27 22:58 pbartok
29463 - Now throws a nice error message when no X display could be opened
29465 2004-10-26 13:51 jordi
29467 * ListView.cs: removes warning
29469 2004-10-26 03:55 ravindra
29471 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
29472 ThemeWin32Classic.cs: Some formatting for my last checkins.
29474 2004-10-26 03:36 ravindra
29476 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
29477 control and default values.
29479 2004-10-26 03:35 ravindra
29481 * Theme.cs: Added some default values for ListView control.
29483 2004-10-26 03:33 ravindra
29485 * ToolBar.cs: ToolBar should use the user specified button size, if
29486 there is any. Added a size_specified flag for the same.
29488 2004-10-26 03:33 ravindra
29490 * ColumnHeader.cs: Added some internal members and calculations for
29493 2004-10-26 03:32 ravindra
29495 * ListViewItem.cs: Calculations for ListViewItem.
29497 2004-10-26 03:31 ravindra
29499 * ListView.cs: Added some internal members and calculations for
29502 2004-10-22 13:31 jordi
29504 * MenuAPI.cs: speedup menus drawing
29506 2004-10-22 13:16 jackson
29508 * XplatUIX11.cs: Make sure to update exposed regions when adding an
29511 2004-10-22 11:49 jackson
29515 2004-10-22 11:41 jackson
29517 * Control.cs: Check to see if the window should have its background
29518 repainted by X when drawing.
29520 2004-10-22 11:31 jackson
29522 * XplatUIX11.cs: When invalidating areas only use XClearArea if
29523 clear is true, this way we do not get flicker from X repainting the
29526 2004-10-22 11:28 jackson
29528 * XEventQueue.cs: Queue properly
29530 2004-10-21 09:38 jackson
29532 * XEventQueue.cs: Fix access modifier
29534 2004-10-21 09:36 jackson
29536 * XEventQueue.cs: Don't loose messages
29538 2004-10-21 09:22 jackson
29540 * XEventQueue.cs: Don't loose messages
29542 2004-10-20 04:15 jordi
29544 * BootMode.cs: enum need it by SystemInfo
29546 2004-10-19 21:58 pbartok
29549 - Small sanity check
29551 2004-10-19 21:56 pbartok
29554 - Added private FormParentWindow class which acts as the container
29555 for our form and as the non-client area where menus are drawn
29556 - Added/Moved required tie-ins to Jordi's menus
29557 - Fixed/Implemented the FormStartPosition functionality
29559 2004-10-19 21:52 pbartok
29562 - Removed unneeded locals
29563 - Added code to all size and location properties to understand and
29564 deal with the parent container of Form
29566 2004-10-19 21:33 pbartok
29569 - Fixed to deal with new Form subclasses for menus
29571 2004-10-19 17:48 jackson
29573 * XEventQueue.cs: commit correct version of file
29575 2004-10-19 16:50 jackson
29577 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
29579 2004-10-19 16:15 jordi
29581 * MenuAPI.cs: MenuBarCalcSize returns the height
29583 2004-10-19 08:31 pbartok
29586 - Added missing call to PreProcessMessage before calling OnXXXKey
29589 2004-10-19 00:04 ravindra
29591 * ToolTip.cs: Fixed constructor.
29593 2004-10-18 09:31 jordi
29595 * MenuAPI.cs: menuitems in menubars do not have shortcuts
29597 2004-10-18 09:26 jordi
29599 * MenuItem.cs: fixes MenuItem class signature
29601 2004-10-18 08:56 jordi
29603 * MenuAPI.cs: prevents windows from showing in the taskbar
29605 2004-10-18 00:28 ravindra
29607 * ToolTip.cs: Suppressed a warning message.
29609 2004-10-18 00:27 ravindra
29611 * Control.cs: Default value of visible property must be true.
29613 2004-10-17 23:19 pbartok
29616 - Complete implementation
29618 2004-10-17 23:19 pbartok
29621 - Added EnableWindow method
29622 - Added SetModal stub
29623 - Added generation of WM_ACTIVATE message (still needs testing)
29624 - Added SetTopMost stub
29625 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
29627 2004-10-17 23:17 pbartok
29630 - Removed VirtualKeys to XplatUIStructs
29631 - Implemented SetTopMost method
29632 - Implemented EnableWindow method
29633 - Bugfix in ScreenToClient()
29634 - Bugfixes in ClientToScreen()
29636 2004-10-17 22:51 pbartok
29638 * XplatUIStructs.cs:
29639 - Added WS_EX styles to WindowStyles enumeration
29641 2004-10-17 22:50 pbartok
29643 * XplatUI.cs, XplatUIDriver.cs:
29644 - Added method for enabling/disabling windows
29645 - Added method for setting window modality
29646 - Added method for setting topmost window
29648 2004-10-17 22:49 pbartok
29650 * ThemeWin32Classic.cs:
29651 - Added ToolTip drawing code
29653 2004-10-17 22:49 pbartok
29656 - Added ToolTip abstracts
29658 2004-10-17 22:47 pbartok
29661 - Fixed Form.ControlCollection to handle owner relations
29662 - Added Owner/OwnedForms handling
29663 - Implemented Z-Ordering for owned forms
29664 - Removed unneeded private overload of ShowDialog
29665 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
29667 - Fixed Close(), had wrong default
29668 - Added firing of OnLoad event
29669 - Added some commented out debug code for Ownership handling
29671 2004-10-17 22:16 pbartok
29674 - Fixed/implemented flat list of controls
29676 2004-10-17 22:14 pbartok
29679 - Added code to simulate modal dialogs on Win32
29681 2004-10-17 16:11 jordi
29683 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
29686 2004-10-17 13:39 jordi
29688 * MenuAPI.cs: menu drawing fixes
29690 2004-10-15 09:10 ravindra
29692 * StructFormat.cs: General Enum.
29694 2004-10-15 09:09 ravindra
29696 * SizeGripStyle.cs: Enum for Form.
29698 2004-10-15 09:08 ravindra
29700 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
29701 in Theme for ListView.
29703 2004-10-15 09:06 ravindra
29705 * ColumnHeader.cs: Flushing some formatting changes.
29707 2004-10-15 09:05 ravindra
29709 * ListViewItem.cs: Implemented GetBounds method and fixed coding
29712 2004-10-15 09:03 ravindra
29714 * ListView.cs: Implemented Paint method and fixed coding style.
29716 2004-10-15 07:34 jordi
29718 * MenuAPI.cs: fix for X11
29720 2004-10-15 07:32 ravindra
29722 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
29723 - Renamed Paint() method to Draw() for clarity. Also, moved
29724 DrawImage() to OnPaint().
29726 2004-10-15 07:25 ravindra
29728 * CheckBox.cs, RadioButton.cs:
29729 - Removed Redraw (), we get it from ButtonBase.
29730 - Implemented Paint (), to do class specific painting.
29732 2004-10-15 07:16 ravindra
29735 - Redraw () is not virtual now.
29736 - Added an internal virtual method Paint (), so that
29737 derived classes can do their painting on their own.
29738 - Modified OnPaint () to call Paint ().
29740 2004-10-15 06:43 jordi
29742 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
29743 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
29745 2004-10-15 00:30 ravindra
29748 - MessageBox on windows does not have min/max buttons.
29749 This change in CreateParams fixes this on Windows. We
29750 still need to implement this windowstyle behavior in
29753 2004-10-14 05:14 ravindra
29756 - Changed Redraw () to do a Refresh () always.
29757 - Fixed the MouseMove event handling when mouse is pressed,
29758 ie drag event handling.
29759 - Replaced the usage of ToolBarButton.Pressed property to
29760 ToolBarButton.pressed internal variable.
29762 2004-10-14 05:10 ravindra
29764 * ToolBarButton.cs:
29765 - Added an internal member 'inside' to handle mouse move
29766 with mouse pressed ie mouse drag event.
29767 - Changed 'Pressed' property to return true only when
29768 'inside' and 'pressed' are both true.
29769 - Some coding style love.
29771 2004-10-14 00:17 ravindra
29773 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
29776 2004-10-14 00:15 ravindra
29778 * ButtonBase.cs: Redraw () related improvements.
29780 2004-10-14 00:14 ravindra
29782 * MessageBox.cs: Moved InitFormSize () out of Paint method and
29783 removed unnecessary calls to Button.Show () method.
29785 2004-10-13 17:50 pbartok
29789 - Removed destroying of window until we solve the problem of X
29790 destroying the window before us on shutdown
29792 2004-10-13 16:32 pbartok
29795 - Now Redraws on MouseUp for FlatStyle Flat and Popup
29797 2004-10-13 14:18 pbartok
29800 - Added code to destroy the X window
29802 2004-10-13 14:18 pbartok
29805 - Added code to destroy a window
29807 2004-10-13 14:12 pbartok
29810 - Added the Redraw on Resize that got dropped in the last rev
29812 2004-10-13 09:06 pbartok
29814 * ThemeWin32Classic.cs:
29815 - Path from John BouAntoun:
29816 * Fix check rendering (centre correctly for normal style, offset
29817 correctly for FlatStyle).
29818 * Fix border color usage (use backcolor) for FlatStyle.Popup
29819 * Use checkbox.Capture instead of checkbox.is_pressed when
29820 rendering flatstyle states.
29822 2004-10-12 21:48 pbartok
29824 * ThemeWin32Classic.cs:
29825 - Removed all occurences of SystemColors and replaced them with the
29826 matching theme color
29828 2004-10-12 21:41 pbartok
29830 * ThemeWin32Classic.cs:
29831 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
29832 him using the function for flatstyle drawing
29833 - Changed functions to use the new version of CPDrawBorder3D
29835 2004-10-12 21:15 pbartok
29838 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
29839 match MS documentation. They need to return defined colors if the
29840 passed color matches the configured control color. Thanks to John
29841 BouAntoun for pointing this out.
29843 2004-10-12 20:57 pbartok
29846 - Fix from John BouAntoun: Raise ForeColorChanged event when text
29849 2004-10-12 20:46 pbartok
29852 - Fix from John BouAntoun: Now properly sets the Appearance property
29854 2004-10-12 20:45 pbartok
29856 * ThemeWin32Classic.cs:
29857 - Fixes from John BouAntoun: now handles forecolors and backcolors
29858 for flatstyle rendered controls much better; It also fixes normal
29859 checkbox rendering when pushed or disabled.
29861 2004-10-08 02:50 jordi
29863 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
29866 2004-10-07 08:56 jordi
29868 * ThemeWin32Classic.cs: Removes deletion of cached brushes
29870 2004-10-06 03:59 jordi
29872 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
29873 XplatUIWin32.cs: removes warnings from compilation
29875 2004-10-05 12:23 jackson
29877 * RadioButton.cs: Fix ctor
29879 2004-10-05 11:10 pbartok
29882 - Partial implementation by Benjamin Dasnois
29884 2004-10-05 10:15 jackson
29886 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
29889 2004-10-05 03:07 ravindra
29892 - Removed a private method, Draw ().
29893 - Fixed the ButtonDropDown event handling.
29894 - Fixed MouseMove event handling.
29896 2004-10-05 03:04 ravindra
29898 * ThemeWin32Classic.cs:
29899 - Added DrawListView method and ListViewDefaultSize property.
29900 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
29901 - Changed DOS style CRLF to Unix format (dos2unix).
29903 2004-10-05 03:03 ravindra
29906 - Added DrawListView method and ListViewDefaultSize property.
29908 2004-10-05 02:42 ravindra
29910 * ToolBarButton.cs: Added an internal member dd_pressed to handle
29911 clicks on DropDown arrow.
29913 2004-10-04 22:56 jackson
29915 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
29916 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
29917 Control handle the buffers, derived classes should not have to
29918 CreateBuffers themselves.
29920 2004-10-04 21:20 jackson
29922 * StatusBar.cs: The control handles resizing the buffers now.
29924 2004-10-04 21:18 jackson
29926 * Control.cs: When resizing the buffers should be invalidated. This
29927 should be handled in Control not in derived classes.
29929 2004-10-04 14:45 jackson
29933 2004-10-04 02:14 pbartok
29935 * LeftRightAlignment.cs:
29938 2004-10-04 01:09 jordi
29940 * ThemeWin32Classic.cs: fixes right button position causing right
29941 button not showing on horizontal scrollbars
29943 2004-10-02 13:12 pbartok
29946 - Simplified the Invalidate method by using an X call instead of
29947 generating the expose ourselves
29948 - Added an expose when the window background is changed
29949 - Implemented ClientToScreen method
29951 2004-10-02 13:08 pbartok
29954 - Added Win32EnableWindow method (test for implementing modal
29956 - Added ClientToScreen method and imports
29958 2004-10-02 13:07 pbartok
29960 * XplatUI.cs, XplatUIDriver.cs:
29961 - Added ClientToScreen coordinate translation method
29963 2004-10-02 13:06 pbartok
29965 * KeyPressEventArgs.cs:
29966 - Fixed access level for constructor
29968 2004-10-02 13:06 pbartok
29971 - Changed access level for the window_collection hash table
29973 2004-10-02 13:05 pbartok
29976 - Added KeyPreview property
29977 - Added Menu property (still incomplete, pending Jordi's menu work)
29978 - Implemented ProcessCmdKey
29979 - Implemented ProcessDialogKey
29980 - Implemented ProcessKeyPreview
29982 2004-10-02 13:02 pbartok
29985 - Added private method to get the Control object from the window
29987 - Implemented ContextMenu property
29988 - Implemented PointToScreen
29989 - Implemented PreProcessMessage
29990 - Implemented IsInputChar
29991 - Implemented IsInputKey
29992 - Implemented ProcessCmdKey
29993 - Completed ProcessKeyEventArgs
29994 - Fixed message loop to call the proper chain of functions on key
29996 - Implemented ProcessDialogChar
29997 - Implemented ProcessDialogKey
29998 - Implemented ProcessKeyMessage
29999 - Implemented ProcessKeyPreview
30000 - Added RaiseDragEvent stub (MS internal method)
30001 - Added RaiseKeyEvent stub (MS internal method)
30002 - Added RaiseMouseEvent stub (MS Internal method)
30003 - Added RaisePaintEvent stub (MS Internal method)
30004 - Added ResetMouseEventArgs stub (MS Internal method)
30005 - Implemented RtlTranslateAlignment
30006 - Implemented RtlTranslateContent
30007 - Implemented RtlTranslateHorizontal
30008 - Implemented RtlTranslateLeftRight
30009 - Added generation of KeyPress event
30011 2004-10-02 05:57 ravindra
30013 * ListViewItem.cs: Added attributes.
30015 2004-10-02 05:32 ravindra
30017 * ListView.cs: Added attributes.
30019 2004-10-01 11:53 jackson
30021 * Form.cs: Implement the Close method so work on MessageBox can
30024 2004-09-30 14:06 pbartok
30029 2004-09-30 11:34 jackson
30031 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
30033 2004-09-30 07:26 ravindra
30035 * ListViewItemConverter.cs: Converter for ListViewItem.
30037 2004-09-30 07:26 ravindra
30039 * SortOrder.cs: Enum for ListView control.
30041 2004-09-30 07:25 ravindra
30043 * ColumnHeader.cs: Supporting class for ListView control.
30045 2004-09-30 07:24 ravindra
30047 * ListView.cs, ListViewItem.cs: Initial implementation.
30049 2004-09-30 07:20 ravindra
30051 * ItemActivation.cs: Enum for ListView Control.
30053 2004-09-29 20:29 pbartok
30056 - Added lookup of pixel value for background color; tries to get a
30057 color 'close' to the requested color, it avoids having to create a
30058 colormap. Depending on the display this could mean the used color
30059 is slightly off the desired color. Might have to change it to a more
30060 resource intensive colormap approach, but it will work as a
30061 workaround to avoid red screens.
30063 2004-09-29 14:27 jackson
30065 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
30067 2004-09-28 12:44 pbartok
30069 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
30070 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
30071 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
30072 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
30073 TrackBar.cs, VScrollBar.cs:
30074 - Streamlined Theme interfaces:
30075 * Each DrawXXX method for a control now is passed the object for
30076 the control to be drawn in order to allow accessing any state the
30077 theme might require
30079 * ControlPaint methods for the theme now have a CP prefix to avoid
30080 name clashes with the Draw methods for controls
30082 * Every control now retrieves it's DefaultSize from the current
30085 2004-09-28 12:17 jackson
30087 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
30090 2004-09-24 14:57 jackson
30092 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
30093 Gives us a nice little performance boost.
30095 2004-09-24 12:02 jackson
30097 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
30098 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
30099 Control and supporting classes. Initial checkin
30101 2004-09-23 13:08 jackson
30103 * Form.cs: Temp build fixage
30105 2004-09-23 01:39 ravindra
30107 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
30108 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
30109 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
30110 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
30111 EventHandlers needed by ListView Control.
30113 2004-09-22 14:12 pbartok
30115 * ScrollableControl.cs:
30116 - Implemented DockPadding property
30117 - Implemented AutoScroll property
30118 - Implemented AutoScrollMargin property
30119 - Implemented AutoScrollMinSize property
30120 - Implemented AutoScrollPosition property
30121 - Implemented DisplayRectangle property (still incomplete)
30122 - Implemented CreateParams property
30123 - Implemented HScroll property
30124 - Implemented VScroll property
30125 - Implemented OnVisibleChanged property
30127 2004-09-22 14:09 pbartok
30130 - Added Form.ControllCollection class
30131 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
30132 RemoveOwnedForm (still incomplete, missing on-top and common
30133 minimize/maximize behaviour)
30134 - Added StartPosition property (still incomplete, does not use when
30136 - Added ShowDialog() methods (still incomplete, missing forcing the
30139 2004-09-22 14:05 pbartok
30142 - Added message loop for modal dialogs
30144 2004-09-22 14:02 pbartok
30147 - Fixed wrong types for events
30149 2004-09-22 14:00 pbartok
30151 * Shortcut.cs, FormWindowState.cs:
30152 - Fixed wrong values
30154 2004-09-22 12:01 jackson
30156 * Control.cs: Text is never null
30158 2004-09-20 22:14 pbartok
30161 - Fixed accessibility level for Idle handler
30163 2004-09-20 18:54 jackson
30165 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30166 XplatUIX11.cs: New message loop that uses poll so we don't get a
30169 2004-09-17 10:43 pbartok
30172 - Fixed behaviour of arrow buttons. Now properly behaves like
30173 Buttons (and like Microsoft's scrollbar arrow buttons)
30175 2004-09-17 10:14 pbartok
30178 - Added missing release of keyboard/mouse capture
30180 2004-09-17 06:18 jordi
30182 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
30183 Theme.cs: Very early menu support
30185 2004-09-16 17:45 pbartok
30188 - Fixed sending a window to the front
30189 - Added overload for SetWindowPos to avoid casting
30191 2004-09-16 17:44 pbartok
30194 - Added SendToBack and BringToFront methods
30196 2004-09-16 07:00 ravindra
30198 * Copyright: Added Novell URL.
30200 2004-09-16 07:00 ravindra
30202 * ToolBar.cs: Invalidate should be done before redrawing.
30204 2004-09-15 21:19 ravindra
30206 * ColumnHeaderStyle.cs: Enum for ListView Control.
30208 2004-09-15 21:18 ravindra
30210 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
30213 2004-09-13 18:26 jackson
30215 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
30218 2004-09-13 18:13 jackson
30220 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
30221 a second thread and post messages into the main threads message
30222 queue. This makes timing much more consistent. Both win2K and XP
30223 have a minimum timer value of 15 milliseconds, so we now do this
30226 2004-09-13 15:18 pbartok
30228 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30230 - Added Z-Ordering methods
30232 2004-09-13 10:56 pbartok
30235 - Fixed #region names
30236 - Moved properties and methods into their proper #regions
30238 2004-09-13 10:51 pbartok
30241 - Added Accept and CancelButton properties
30242 - Added ProcessDialogKey() method
30244 2004-09-13 08:18 pbartok
30246 * IWindowTarget.cs:
30249 2004-09-10 21:50 pbartok
30252 - Added DoDragDrop() [incomplete]
30253 - Properly implemented 'Visible' handling
30254 - Added SetVisibleCore()
30255 - Implemented FindChildAtPoint()
30256 - Implemented GetContainerControl()
30257 - Implemented Hide()
30259 2004-09-10 19:28 pbartok
30262 - Moved methods into their appropriate #regions
30263 - Reordered methods within regions alphabetically
30265 2004-09-10 18:57 pbartok
30267 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30268 - Added method to retrieve text from window
30270 2004-09-10 18:56 pbartok
30273 - Moved some internal functions into the internal region
30274 - Implemented FontHeight
30275 - Implemented RenderRightToLeft
30276 - Implemented ResizeRedraw
30277 - Implemented ShowFocusCues
30278 - Implemented ShowKeyboardCues
30279 - Implemented FromChildHandle
30280 - Implemented FromHandle
30281 - Implemented IsMnemonic
30282 - Implemented ReflectMessage
30283 - All public and protected Static Methods are now complete
30285 2004-09-10 16:54 pbartok
30288 - Implemented remaining missing public instance properties
30289 - Alphabetized some out of order properties
30291 2004-09-10 05:51 ravindra
30293 * PictureBox.cs: Added a check for null image.
30295 2004-09-10 00:59 jordi
30297 * GroupBox.cs: remove cvs tag
30299 2004-09-09 05:25 ravindra
30301 * ToolBar.cs: Make redraw accessible from ToolBarButton.
30303 2004-09-09 05:23 ravindra
30305 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
30308 2004-09-09 02:28 pbartok
30310 * ThemeWin32Classic.cs:
30311 - Improve disabled string look
30313 2004-09-09 01:15 jordi
30315 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
30318 2004-09-08 23:56 ravindra
30320 * ItemBoundsPortion.cs: It's enum, not a class!
30322 2004-09-08 23:47 ravindra
30324 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
30327 2004-09-08 21:13 ravindra
30329 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
30332 2004-09-08 21:03 ravindra
30334 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
30337 2004-09-08 21:01 ravindra
30339 * ScrollableControl.cs: Removed unreachable code.
30341 2004-09-08 06:45 jordi
30343 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
30345 2004-09-08 01:00 jackson
30347 * XplatUIX11.cs: Only run the timers when updating the message
30348 queue. This effectively gives X messages a higher priority then
30349 timer messages. Timers still need love though
30351 2004-09-07 14:01 jackson
30353 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
30354 this for us and the handle is no longer valid.
30356 2004-09-07 13:59 jackson
30358 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
30359 loop that manages to not crash. TODO: Add poll and cleanup timers
30361 2004-09-07 11:12 jordi
30363 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
30365 2004-09-07 03:40 jordi
30367 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
30368 fixes, methods, multiple links
30370 2004-09-06 06:55 jordi
30372 * Control.cs: Caches ClientRectangle rectangle value
30374 2004-09-05 02:03 jordi
30376 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
30379 2004-09-04 11:10 jordi
30381 * Label.cs: Refresh when font changed
30383 2004-09-02 16:24 pbartok
30386 - Added sanity check to creation of double buffer bitmap
30388 2004-09-02 16:24 pbartok
30391 - Fixed selection of text color
30392 - Fixed handling of resize event; now properly recreates double
30394 - Added missing assignment of TextAlignment
30395 - Added proper default for TextAlignment
30397 2004-09-02 14:26 pbartok
30400 - Added missing RadioButton.RadioButtonAccessibleObject class
30402 2004-09-02 14:26 pbartok
30405 - Added missing Control.ControlAccessibleObject class
30406 - Started to implement Select()ion mechanisms, still very incomplete
30408 2004-09-02 14:25 pbartok
30410 * AccessibleObject.cs:
30411 - Added missing methods
30413 2004-09-02 14:23 pbartok
30415 * AccessibleNavigation.cs, AccessibleSelection.cs:
30418 2004-09-02 10:32 jordi
30420 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
30421 pool for pens, brushes, and hatchbruses
30423 2004-09-01 15:30 jackson
30425 * StatusBar.cs: Fix typo
30427 2004-09-01 14:44 pbartok
30432 2004-09-01 14:39 pbartok
30434 * Button.cs, RadioButton.cs:
30435 - Functional initial check-in
30437 2004-09-01 14:01 pbartok
30440 - Added missing default
30441 - Added missing region mark
30443 2004-09-01 09:10 jordi
30445 * Label.cs: fixes method signatures, new methods, events, fixes
30448 2004-09-01 07:19 jordi
30450 * Control.cs: Init string variables with an empty object
30452 2004-09-01 04:20 jordi
30454 * Control.cs: fires OnFontChanged event
30456 2004-08-31 20:07 pbartok
30459 - Enabled display of strings
30461 2004-08-31 20:05 pbartok
30464 - Added (partial) implementation of DialogResult; rest needs to be
30465 implemented when the modal loop code is done
30467 2004-08-31 19:55 pbartok
30470 - Fixed to match the removal of the needs_redraw concept
30472 2004-08-31 19:55 pbartok
30475 - Removed the rather odd split between 'needs redraw' and redrawing
30476 - Now handles the events that require regeneration (ambient
30477 properties and size)
30479 2004-08-31 19:41 pbartok
30482 - Added firing of BackColorChanged event
30483 - Added TopLevelControl property
30484 - Fixed handling of WM_ERASEBKGRND message
30486 2004-08-31 12:49 pbartok
30492 2004-08-31 12:48 pbartok
30495 - Finished (famous last words)
30497 2004-08-31 04:35 jordi
30499 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
30500 scrolling bugs, adds new methods
30502 2004-08-30 14:42 pbartok
30505 - Implemented CheckBox drawing code
30507 2004-08-30 14:42 pbartok
30510 - Made Redraw() and CheckRedraw() virtual
30511 - Improved mouse up/down/move logic to properly track buttons
30513 2004-08-30 09:44 pbartok
30516 - Updated to fix broken build. Not complete yet.
30518 2004-08-30 09:28 pbartok
30523 2004-08-30 09:17 pbartok
30528 2004-08-27 16:12 ravindra
30530 * ToolBarButton.cs: Added TypeConverter attribute.
30532 2004-08-27 16:07 ravindra
30534 * ImageIndexConverter.cs: Implemented.
30536 2004-08-27 14:17 pbartok
30539 - Removed unneeded stack vars
30540 - First attempt to fix sizing issues when layout is suspended
30542 2004-08-25 15:35 jordi
30544 * ScrollBar.cs: more fixes to scrollbar
30546 2004-08-25 14:04 ravindra
30548 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
30549 Added the missing divider code and grip for ToolBar Control.
30551 2004-08-25 13:20 pbartok
30554 - Control now properly passes the ambient background color to child
30557 2004-08-25 13:20 jordi
30559 * ScrollBar.cs: small bug fix regarding bar position
30561 2004-08-25 12:33 pbartok
30564 - Now only calls SetTimer or KillTimer if the enabled state has
30567 2004-08-25 12:33 pbartok
30570 - Fixed timer handling, now seems to work
30571 - Improved error message for window creation
30573 2004-08-25 12:32 pbartok
30576 - Fixed generation of MouseUp message
30578 2004-08-25 12:29 jordi
30580 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
30581 and fixes for progressbar
30583 2004-08-24 18:43 ravindra
30585 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
30586 in ToolBar control.
30588 2004-08-24 17:15 pbartok
30592 - Added missing events
30595 2004-08-24 17:14 pbartok
30597 * StatusBar.cs, PictureBox.cs:
30598 - Now uses Control's CreateParams
30600 2004-08-24 16:36 pbartok
30603 - Fixed background color handling
30604 - Fixed sending of enter/leave events on a grab
30606 2004-08-24 16:35 pbartok
30609 - Refined definitions for CrossingEvent
30611 2004-08-24 12:37 jordi
30613 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
30614 formmating, methods signature, and adds missing events
30616 2004-08-24 12:24 jordi
30618 * Control.cs: fire OnEnabledChanged event
30620 2004-08-24 11:17 pbartok
30623 - Implemented SetTimer() and KillTimer()
30625 2004-08-24 11:16 pbartok
30628 - Now uses Remove instead of Add to kill the timer
30630 2004-08-24 10:16 jackson
30632 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
30633 picture boxes in the theme now. Draw picture box borders and obey
30636 2004-08-24 05:49 jackson
30638 * Timer.cs: Remove top secret debugging code
30640 2004-08-24 05:34 jackson
30642 * PictureBox.cs: Temp hack to make picture boxes draw their full
30645 2004-08-24 05:29 jackson
30647 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30648 XplatUIX11.cs: Move timers to the driver level. On X they are
30649 queued by the driver and checked on idle.
30651 2004-08-24 01:07 jackson
30653 * XplatUIX11.cs: Use a queue for async messages instead of passing
30654 them as ClientMessages since that was totally broken. Also simply
30655 check for events and return an idle message if none are found. This
30656 gives us an idle handler, and prevents deadlocking when no messages
30659 2004-08-23 18:19 ravindra
30661 * XplatUIWin32.cs: Removed the unwanted destructor.
30663 2004-08-23 17:27 pbartok
30666 - Finishing touches. Works now, just needs some optimizations.
30668 2004-08-23 16:53 jordi
30670 * ScrollBar.cs: small fix
30672 2004-08-23 16:45 pbartok
30675 - Removed debug output
30678 2004-08-23 16:43 jordi
30680 * ScrollBar.cs: [no log message]
30682 2004-08-23 16:10 pbartok
30685 - Fixed handling of WM_CLOSE message
30686 - Removed debug output
30688 2004-08-23 16:09 pbartok
30691 - Added handling of Idle event
30692 - Added handling of form closing
30693 - Fixed reporting of MessageLoop property
30694 - Removed some unneeded code, should provide a bit of a speedup
30696 2004-08-23 15:22 pbartok
30699 - Added InitLayout() method
30700 - Added code to properly perform layout when Anchor or Dock property
30702 - Changed 'interpretation' of ResumeLayout. MS seems to have a
30703 LAMESPEC, tried to do it in a way that makes sense
30705 2004-08-23 14:10 jordi
30707 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
30708 properties and methods
30710 2004-08-23 13:55 pbartok
30713 - Properly fixed Jordi's last fix
30714 - Now uses Cursor's Position property instead of calling XplatUI
30717 2004-08-23 13:44 jordi
30719 * PaintEventHandler.cs: Adding missing attribute
30721 2004-08-23 13:39 pbartok
30724 - Implemented Position property
30726 2004-08-23 13:39 pbartok
30728 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30729 - Added method to move mouse cursor
30731 2004-08-23 13:39 pbartok
30734 - Fixed setting of background color
30735 - Added method to move mouse cursor
30737 2004-08-23 13:16 jordi
30739 * Control.cs: avoids null exception
30741 2004-08-22 17:46 jackson
30743 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
30746 2004-08-22 17:40 jackson
30748 * XplatUIX11.cs: Add some missing locks
30750 2004-08-22 15:10 pbartok
30752 * Control.cs, Form.cs:
30753 - Removed OverlappedWindow style from Control, instead it's default
30755 - Made form windows OverlappedWindow by default
30757 2004-08-22 13:34 jackson
30759 * ScrollBar.cs: Update the position through the Value property so
30760 the OnValueChanged event is raised.
30762 2004-08-22 12:04 pbartok
30765 - Added Cursor.cs and UserControl.cs
30767 2004-08-22 12:03 pbartok
30770 - Started implementation, not usable yet
30772 2004-08-22 12:00 pbartok
30775 - Implemented UserControl (complete)
30777 2004-08-21 19:20 ravindra
30779 * ToolBar.cs: Correcting the formatting mess of VS.NET.
30781 2004-08-21 18:49 ravindra
30783 * ToolBar.cs: Probably this completes the missing attributes in
30786 2004-08-21 18:03 ravindra
30788 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
30789 Fixed toolbar control signatures.
30791 2004-08-21 16:32 pbartok
30796 2004-08-21 16:30 pbartok
30801 2004-08-21 16:19 pbartok
30803 * Control.cs, Label.cs:
30806 2004-08-21 15:57 pbartok
30809 - Added loads of debug output for development
30810 - Fixed typo in method name
30812 2004-08-21 15:52 pbartok
30814 * ToolBarButtonClickEventArgs.cs:
30815 - Added missing base class
30817 2004-08-21 14:53 pbartok
30820 - Updated to match new GrabWindow signature
30822 2004-08-21 14:51 pbartok
30824 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30825 - Added method to get default display size
30827 2004-08-21 14:23 pbartok
30829 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30830 - Added method to query current grab state
30831 - Added argument to allow confining a grab to a window
30833 2004-08-21 14:22 pbartok
30836 - Added [Flags] attribute so that modifiers can be used in bitwise
30839 2004-08-21 14:21 pbartok
30841 * TrackBar.cs, ScrollBar.cs:
30842 - Replaced direct XplatUI calls with their Control counterpart
30844 2004-08-21 13:32 pbartok
30847 - Implemented Created property
30849 2004-08-21 13:28 pbartok
30852 - Implemented ContainsFocus
30854 2004-08-21 13:26 pbartok
30857 - Implemented CausesValidation
30859 2004-08-21 13:21 pbartok
30862 - Implemented CanFocus
30863 - Implemented CanSelect
30864 - Implemented Capture
30866 2004-08-21 12:35 pbartok
30869 - Fixed bug with Async message handling
30870 - Implemented getting the ModifierKeys
30872 2004-08-21 12:32 jackson
30874 * AsyncMethodResult.cs: Make sure we have the mutex before we
30875 release it. Fixes BeginInvoke on windows
30877 2004-08-21 11:31 pbartok
30879 * XplatUIWin32.cs, XplatUIX11.cs:
30880 - Drivers now return proper mouse state
30882 2004-08-21 10:54 jackson
30884 * Control.cs: Implement EndInvoke
30886 2004-08-21 10:48 jackson
30888 * Timer.cs: Remove unneeded finalizer
30890 2004-08-20 19:52 ravindra
30892 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
30893 in mouse event handling in the ToolBar control.
30895 2004-08-20 19:50 ravindra
30897 * ImageList.cs: Changed draw method to use the arguments passed in
30900 2004-08-20 18:58 pbartok
30902 * XplatUIStructs.cs:
30903 - Added private message for async communication
30905 2004-08-20 17:38 ravindra
30907 * Control.cs: Made RightToLeft property virtual and removed a
30910 2004-08-20 14:39 jordi
30912 * ThemeGtk.cs: use style_attach
30914 2004-08-20 14:39 pbartok
30917 - Added jackson's Async code from X11 to Win32
30919 2004-08-20 14:09 pbartok
30922 - Added all new files
30924 2004-08-20 14:09 pbartok
30927 - Added call to set window background color
30929 2004-08-20 14:03 pbartok
30931 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
30932 - Added method for setting the window background
30934 2004-08-20 14:02 pbartok
30937 - Added method for setting the background color
30938 - Added handling for erasing the window background
30940 2004-08-20 13:45 jordi
30942 * TrackBar.cs: fixes timer, new properties and methods
30944 2004-08-20 13:34 jackson
30946 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
30949 2004-08-20 13:22 jackson
30951 * Timer.cs: Timer Tick events are now handed through Controls Async
30952 mechanism so the callbacks are executed in the same thread as X
30954 2004-08-20 13:19 jackson
30956 * XplatUIDriver.cs: Expose functionality to send async messages
30959 2004-08-20 13:18 jackson
30961 * Control.cs: Implement Begininvoke
30963 2004-08-20 13:14 jackson
30965 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
30966 messages through the driver
30968 2004-08-20 13:12 jackson
30970 * XplatUIX11.cs: Lock before all X operations. Also added Async
30971 method functionality through XSendEvent
30973 2004-08-20 13:11 jackson
30975 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
30976 This will screw up on 64 bit systems)
30978 2004-08-20 13:10 jackson
30980 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
30981 Async messages through X/Win32
30983 2004-08-19 19:39 pbartok
30986 - Updated code to match new HandleData.DeviceContext type
30988 2004-08-19 19:38 pbartok
30991 - Made DeviceContext a generic object to allow usage from various
30993 - Added support for queueing Windows messages
30995 2004-08-19 19:37 pbartok
30998 - Added generation of MouseEnter, MouseLeave and MouseHover events
30999 - Added cleanup on EndPaint
31001 2004-08-19 19:17 pbartok
31004 - Added handling of WM_MOUSEHOVER
31005 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
31008 2004-08-19 18:55 jordi
31010 * ThemeGtk.cs: fixes button order
31012 2004-08-19 18:12 jordi
31014 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
31016 2004-08-19 17:09 pbartok
31019 - Added Right property
31020 - Added RightToLeft property
31022 2004-08-19 16:27 jordi
31024 * ThemeGtk.cs: experimental GTK theme support
31026 2004-08-19 16:26 jordi
31028 * ITheme.cs, Theme.cs: move themes from an interface to a class
31030 2004-08-19 16:25 jordi
31032 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
31035 2004-08-19 16:04 pbartok
31038 - Added colormap basics
31039 - Added a way to re-initialize with a different display handle
31040 - Fixed setting of the window background color
31041 - Added various X11 imports related to colors and colormaps
31043 2004-08-19 15:51 pbartok
31046 - Removed packing hints (Paolo suggested this a while back)
31047 - fixed colormap type
31048 - Added default Atom types
31049 - Added Screen and color structs and enums
31051 2004-08-19 15:39 pbartok
31054 - Added missing Draw() method
31055 - Added missing RecreateHandle event
31057 2004-08-19 15:30 pbartok
31060 - Added handling of WM_CLOSE
31062 2004-08-18 13:16 jordi
31064 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
31067 2004-08-18 09:56 jordi
31069 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
31071 2004-08-17 15:31 ravindra
31073 * SWF.csproj: Updated project.
31075 2004-08-17 15:25 pbartok
31078 - Drawing improvement; don't call UpdateBounds if we are not visible
31079 (or have been minimized)
31081 2004-08-17 15:24 pbartok
31084 - Finished IsVisible
31085 - Added Win32GetWindowPlacement
31087 2004-08-17 15:08 jackson
31089 * Panel.cs: Initial checkin of the Panel
31091 2004-08-17 14:25 pbartok
31094 - Fixed broken handling of default window sizes
31096 2004-08-17 13:29 jackson
31098 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
31099 has a large startup time.
31101 2004-08-17 10:25 jackson
31103 * HandleData.cs: union areas properly
31105 2004-08-17 10:12 jackson
31107 * HandleData.cs: union areas properly
31109 2004-08-16 20:00 ravindra
31111 * ToolBar.cs, ToolBarButton.cs: Added attributes.
31113 2004-08-16 18:48 ravindra
31115 * ToolBar.cs: Added attributes.
31117 2004-08-16 17:17 ravindra
31119 * SWF.csproj: Updated project.
31121 2004-08-16 17:16 jackson
31123 * XplatUIX11.cs: Check for more expose events before sending a
31124 WM_PAINT so they can all be grouped together. This makes dragging a
31125 window across another window redraw in a sane way.
31127 2004-08-16 15:47 pbartok
31130 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
31131 support OnMouseEnter/Leave()
31132 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
31135 2004-08-16 15:46 pbartok
31137 * XplatUIStructs.cs, XplatUIX11.cs:
31138 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
31139 OnMouseEnter/Leave()
31141 2004-08-16 15:34 jackson
31143 * XplatUIX11.cs: Group multiple expose events in HandleData, make
31144 sure messages get the message field set to WM_NULL if they are not
31147 2004-08-16 15:24 jackson
31149 * HandleData.cs: HandleData is used for storing message information
31152 2004-08-15 17:23 ravindra
31154 * ColorDepth.cs: Added attribute.
31156 2004-08-15 17:23 ravindra
31158 * SWF.csproj: Updated project for ToolBar Control.
31160 2004-08-15 17:20 ravindra
31162 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
31163 control and also dos2unix format.
31165 2004-08-15 17:13 ravindra
31167 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
31168 ToolBarButtonClickEventArgs.cs,
31169 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
31170 ToolBarTextAlign.cs: First Implementation of ToolBar control.
31172 2004-08-15 15:31 pbartok
31175 - First (mostly) working version
31177 2004-08-13 16:15 pbartok
31180 - Fixed Anchor default
31182 2004-08-13 15:43 pbartok
31185 - Changed GetCursorPos signature
31187 2004-08-13 15:42 pbartok
31189 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
31190 - Changed signature for GetCursorPos
31192 2004-08-13 15:25 pbartok
31196 - Fixed resizing/exposure handling
31198 2004-08-13 15:22 jordi
31200 * ThemeWin32Classic.cs: removes redundant code and fixes issues
31203 2004-08-13 14:55 jordi
31205 * TrackBar.cs: change from wndproc to events
31207 2004-08-13 13:00 jordi
31209 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31210 XplatUIX11.cs: implements PointToClient (ScreenToClient)
31212 2004-08-13 12:53 pbartok
31215 - Changed GetWindowPos to also provide client area size
31216 - Fixed broken prototypes for several win32 functions
31218 2004-08-13 12:53 pbartok
31220 * XplatUI.cs, XplatUIDriver.cs:
31221 - Changed GetWindowPos to also provide client area size
31223 2004-08-13 12:52 pbartok
31226 - Added generation of WM_POSCHANGED
31227 - Changed GetWindowPos to also provide client area size
31229 2004-08-13 12:52 pbartok
31232 - Added Dispose() and destructor
31233 - Fixed resizing and bounds calculation
31235 - Added memory savings for invisible windows
31237 2004-08-13 12:46 jordi
31239 * TrackBar.cs: adds timer and grap window
31241 2004-08-13 10:25 jackson
31243 * Timer.cs: SWF Timer
31245 2004-08-12 16:59 pbartok
31247 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31248 - Implemented method to get current mouse position
31250 2004-08-12 14:29 jordi
31252 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
31253 enhancement, fix mouse problems, highli thumb, etc
31255 2004-08-12 13:31 pbartok
31258 - Fixed Anchoring bugs
31260 2004-08-12 13:01 jackson
31262 * StatusBar.cs: Don't forget things
31264 2004-08-12 12:54 jackson
31266 * ThemeWin32Classic.cs: Handle owner draw status bars
31268 2004-08-12 12:54 jackson
31270 * StatusBar.cs: Implement missing properties, events, and methods.
31271 Handle mouse clicking
31273 2004-08-12 10:19 jackson
31275 * StatusBarPanelClickEventArgs.cs,
31276 StatusBarPanelClickEventHandler.cs: Classes for handling status
31277 bar panel click events
31279 2004-08-12 10:10 jackson
31281 * Control.cs: Add missing properties
31283 2004-08-12 09:46 pbartok
31285 * BindingsManagerBase.cs:
31286 - Name changed to BindingManagerBase.cs
31288 2004-08-12 09:25 jordi
31290 * ScrollableControl.cs: calls ctrlbase instead of exeception
31292 2004-08-11 16:28 pbartok
31294 * InputLanguageChangingEventArgs.cs:
31295 - Never check in before compiling. Fixes the last check-in
31297 2004-08-11 16:26 pbartok
31299 * InputLanguageChangingEventArgs.cs:
31300 - More signature fixes
31302 2004-08-11 16:20 pbartok
31304 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
31305 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
31306 ImageListStreamer.cs, InputLanguage.cs,
31307 InputLanguageChangedEventArgs.cs,
31308 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
31309 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
31310 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
31311 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31314 2004-08-11 16:16 pbartok
31318 - Added .Net 1.1 method
31320 2004-08-11 15:25 pbartok
31323 - Fixed BindingManagerBase.cs filename
31325 2004-08-11 15:22 pbartok
31327 * BindingManagerBase.cs:
31328 - Was checked in with wrong filename
31330 2004-08-11 14:50 pbartok
31335 2004-08-11 13:41 jordi
31337 * XplatUIWin32.cs: Fixes ClientRect
31339 2004-08-11 13:19 pbartok
31341 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31343 - We had SetWindowPos and MoveWindow to set window positions and
31344 size, removed MoveWindow. We have GetWindowPos, so it made sense to
31345 keep SetWindowPos as matching counterpart
31346 - Added some X11 sanity checking
31348 2004-08-11 12:59 pbartok
31351 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
31352 (It seems that SetBounds is just a front for SetBoundsCore and
31353 SetBoundsCore updates the underlying window system and
31354 UpdateBounds is responsible for updating the variables associated
31355 with the Control and sending the events)
31356 - Major cleanup of Size handling; we now have two sizes, client_size
31357 and bounds. Bounds defines the window with decorations, client_size
31360 2004-08-11 12:55 pbartok
31362 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31363 - Added method to calculate difference between decorated window and
31366 2004-08-11 12:54 pbartok
31369 - Forcing redraw on resize
31371 2004-08-11 11:43 pbartok
31374 - Removed disposing of the actual images when the list is disposed
31376 2004-08-11 09:13 pbartok
31379 - Now properly reparents windows
31381 2004-08-11 08:37 pbartok
31386 2004-08-11 07:47 pbartok
31389 - Rewrote the collection stuff. Might not be as fast now, not
31390 keeping the number of children around and accessible directly, but
31391 it's more straightforward
31393 2004-08-11 07:44 pbartok
31395 * AccessibleObject.cs:
31396 - Fixed to match ControlCollection rewrite
31398 2004-08-11 07:43 pbartok
31401 - Added missing creation of the collection list
31403 2004-08-10 20:08 jackson
31405 * StatusBar.cs: Get the paint message from WndProc
31407 2004-08-10 19:31 jackson
31409 * ThemeWin32Classic.cs: Create Brushes as little as possible
31411 2004-08-10 19:20 jackson
31413 * UICues.cs: Add Flags attribute
31415 2004-08-10 19:19 jackson
31417 * StatusBarPanel.cs: Signature cleanup
31419 2004-08-10 19:10 jackson
31421 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
31422 Initial implementation of status bar item drawing
31424 2004-08-10 17:27 jordi
31426 * TrackBar.cs: add missing methods, properties, and restructure to
31429 2004-08-10 16:24 jackson
31431 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
31432 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
31435 2004-08-10 13:21 jordi
31437 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
31438 enhancements and standarize on win colors defaults
31440 2004-08-10 12:52 jackson
31442 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
31443 ThemeWin32Classic.cs: Implement DrawItem functionality
31445 2004-08-10 12:47 jordi
31447 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
31449 2004-08-10 12:32 jordi
31451 * Control.cs: throw ontextchange event
31453 2004-08-10 11:43 pbartok
31456 - Added more to the still unfinished Dock/Anchor layout code
31458 2004-08-10 11:39 pbartok
31460 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
31461 - Added GetWindowPos method
31463 2004-08-10 11:36 pbartok
31466 - Implemented several methods
31468 2004-08-10 09:47 jackson
31470 * TrackBar.cs: Allow control to handle buffering
31472 2004-08-10 09:41 jackson
31474 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
31476 2004-08-10 09:24 jackson
31478 * Label.cs, LinkLabel.cs: Let Control handle buffering.
31480 2004-08-10 09:09 jackson
31482 * StatusBar.cs: Let Control handle all the buffering.
31484 2004-08-10 09:08 jackson
31486 * Control.cs: Control will now handle the buffering code, so each
31487 control does not have to implement this.
31489 2004-08-10 08:34 jackson
31491 * XplatUIDriver.cs: Use default colors from the theme
31493 2004-08-09 17:12 pbartok
31496 - Fixed several bugs Ravindra pointed out
31498 2004-08-09 16:11 pbartok
31501 - Added incomplete dock layout code
31502 - Added support for mouse wheel
31504 2004-08-09 16:09 pbartok
31507 - Added handling for middle and right mousebutton
31508 - Added handling for mouse wheel
31509 - Added handling for key state and mouse state and position
31510 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
31513 2004-08-09 15:40 jackson
31515 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
31516 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
31519 2004-08-09 15:37 jackson
31521 * StatusBar.cs: Initial implementation of StatusBar
31523 2004-08-09 15:36 jackson
31525 * ITheme.cs: Add support for drawing status bar and getting status
31528 2004-08-09 15:35 pbartok
31533 2004-08-09 15:34 jackson
31535 * ThemeWin32Classic.cs: Add support for drawing status bar and get
31536 status bar item sizes
31538 2004-08-09 15:21 jackson
31540 * ThemeWin32Classic.cs: Use known colors for default control
31543 2004-08-09 15:12 jackson
31545 * ThemeWin32Classic.cs: Make the default font static, it is static
31546 in control so this doesn't change functionality and creating fonts
31549 2004-08-09 14:56 pbartok
31552 - Added GrabMode enum
31554 2004-08-09 14:55 pbartok
31556 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31557 - Removed Run method, was only required for initial development
31559 2004-08-09 14:51 pbartok
31561 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31562 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
31565 2004-08-09 13:48 pbartok
31568 - Fixed default sizing for child windows
31570 2004-08-09 12:56 pbartok
31573 - Added generation of WM_DESTROY message
31574 - Added handling of window manager induced shutdown
31576 2004-08-09 11:31 jackson
31578 * ThemeWin32Classic.cs: New names for control properties
31580 2004-08-09 11:25 jackson
31582 * Control.cs: Use new color names
31584 2004-08-09 11:02 jackson
31586 * XplatUI.cs: Get default window properties from the theme
31588 2004-08-09 11:01 jackson
31590 * ITheme.cs: The theme engine now controls default window
31593 2004-08-09 11:00 jackson
31595 * ThemeWin32Classic.cs: Add default window color properties
31597 2004-08-09 10:17 jackson
31599 * ThemeWin32Classic.cs: Use correct default back color
31601 2004-08-09 10:05 jackson
31603 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
31606 2004-08-09 09:56 jackson
31608 * XplatUI.cs: Remove defaults, these are handled by the theme now.
31610 2004-08-09 09:54 jackson
31612 * Control.cs: Get default properties from the theme.
31614 2004-08-09 09:53 jackson
31616 * ITheme.cs: Themes now handle default control properties
31618 2004-08-09 09:53 jackson
31620 * ThemeWin32Classic.cs: Themes now handle default control
31621 properties so coloring will be consistent
31623 2004-08-08 16:54 jordi
31625 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
31627 2004-08-08 15:08 jordi
31629 * XplatUIX11.cs: fixes keyboard crash
31631 2004-08-08 13:47 jordi
31633 * Label.cs: add cvs header info
31635 2004-08-08 12:09 jackson
31637 * ThemeWin32Classic.cs: Add pen_buttonface
31639 2004-08-08 11:52 jordi
31641 * Label.cs, LinkLabel.cs: [no log message]
31643 2004-08-08 11:34 jordi
31645 * ThemeWin32Classic.cs: Use Windows Standard Colours
31647 2004-08-07 17:32 jordi
31649 * TrackBar.cs: throw exceptions of invalid enums values
31651 2004-08-07 17:31 jordi
31653 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
31656 2004-08-07 16:56 jackson
31658 * HorizontalAlignment.cs: Initial checkin
31660 2004-08-07 13:16 jordi
31662 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
31665 2004-08-07 13:05 jordi
31667 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
31668 GetSysColor defines
31670 2004-08-06 18:01 pbartok
31672 * ThemeWin32Classic.cs:
31673 - Fixed some rounding issues with float/int
31675 2004-08-06 18:00 jackson
31677 * DockStyle.cs, AnchorStyles.cs:
31679 Add flags and serializable attributes.
31681 2004-08-06 17:46 pbartok
31684 - Implemented GetParent
31686 2004-08-06 17:18 pbartok
31689 - Fixed some rounding issues with float/int
31691 2004-08-06 17:17 pbartok
31693 * X11Structs.cs, XplatUIX11.cs:
31694 - Fixed Refresh and Invalidate
31696 2004-08-06 15:30 pbartok
31698 * Control.cs, X11Structs.cs, XplatUIX11.cs:
31699 - Fixed recursive loop when resizing
31700 - Improved/fixed redrawing on expose messages
31702 2004-08-06 09:53 jordi
31704 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
31705 keyboard navigation
31707 2004-08-06 08:02 pbartok
31709 * X11Structs.cs, XplatUIX11.cs:
31710 - Fixed reparenting
31711 - Fixed window border creation
31713 2004-08-05 15:38 pbartok
31716 - Attempted fix for reparenting problems
31718 2004-08-04 15:14 pbartok
31721 - Fixed Invalidation bug (calculated wrong client area)
31722 - Added ClientSize setter
31724 2004-08-04 15:13 pbartok
31727 - Added AutoScale properties
31729 2004-08-04 15:13 pbartok
31732 - Added latest files
31734 2004-08-04 14:11 pbartok
31736 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31738 - Added Invalidate handling
31740 2004-08-03 17:09 jordi
31742 * XplatUIDriver.cs: fixes spelling mistake
31744 2004-07-27 09:53 jordi
31746 * TrackBar.cs: fixes trackbar events, def classname, methods
31749 2004-07-27 09:29 jordi
31751 * ScrollBar.cs: fixes scrollbar events
31753 2004-07-27 04:38 jordi
31755 * Control.cs: changes to be able to run winforms samples
31757 2004-07-26 11:42 jordi
31759 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
31760 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
31762 2004-07-26 05:41 jordi
31764 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
31765 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
31768 2004-07-22 09:22 jordi
31770 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
31771 check link overlapping, implement events, and fixes
31773 2004-07-21 10:28 jordi
31775 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
31777 2004-07-21 10:19 jordi
31779 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
31780 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
31781 LinkLabelLinkClickedEventArgs.cs,
31782 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
31783 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
31786 2004-07-19 13:09 jordi
31788 * Control.cs, Label.cs: label control re-written: added missing
31789 functionlity, events, and properties
31791 2004-07-19 10:49 jordi
31793 * Control.cs: fixes SetBounds logic
31795 2004-07-19 01:29 jordi
31797 * Control.cs: Call RefreshWindow only if the window has created
31799 2004-07-15 14:05 pbartok
31801 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
31802 - Implemented ImageList and ImageList.ImageCollection classes
31803 - Added ColorDepth enumeration
31804 - Updated SWF VS.Net project
31806 2004-07-15 11:06 jordi
31808 * XplatUIStructs.cs: added MsgButons enum
31810 2004-07-15 11:03 jordi
31812 * Control.cs: added basic mouse handeling events
31814 2004-07-15 03:38 jordi
31816 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
31817 Vertical TrackBar control implementation
31819 2004-07-13 09:33 jordi
31821 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
31823 2004-07-13 09:31 jordi
31825 * Control.cs, Form.cs: commit: new properties and fixes form size
31828 2004-07-09 14:13 miguel
31830 * ProgressBar.cs: Spelling
31832 2004-07-09 11:25 pbartok
31835 - Removed usage of Rectangle for drawing. Miguel pointed out it's
31838 2004-07-09 11:17 miguel
31840 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
31842 * ProgressBar.cs: Fixed spelling for `block'
31844 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
31847 Avoid using the += on rect.X, that exposed a bug in the compiler.
31849 2004-07-08 23:21 pbartok
31851 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
31852 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
31853 BaseCollection.cs, Binding.cs, BindingContext.cs,
31854 BindingMemberInfo.cs, BindingsCollection.cs,
31855 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
31856 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
31857 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
31858 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
31859 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
31860 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
31861 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
31862 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
31863 FrameStyle.cs, GiveFeedbackEventArgs.cs,
31864 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
31865 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
31866 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
31867 InputLanguageChangedEventArgs.cs,
31868 InputLanguageChangedEventHandler.cs,
31869 InputLanguageChangingEventArgs.cs,
31870 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
31871 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
31872 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
31873 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
31874 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
31875 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
31876 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
31877 QueryAccessibilityHelpEventArgs.cs,
31878 QueryAccessibilityHelpEventHandler.cs,
31879 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
31880 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
31881 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
31882 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
31883 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
31884 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
31885 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
31886 XplatUIX11.cs, lang.cs: