1 2006-09-28 Jackson Harper <jackson@ximian.com>
3 * XplatUIWin32.cs: Clip the rect to the parent window.
4 * XplatUIStructs.cs: Add clipping modes struct.
6 2006-09-28 Chris Toshok <toshok@ximian.com>
8 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
9 menu code really needs going over.
11 2006-09-27 Chris Toshok <toshok@ximian.com>
13 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
14 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
15 window is maximizable. So, we need to make sure that even if we
16 clear the border/wm frame of those functions, they're still
17 available (basically, we remove the decoration without removing
18 the function). Half the fix for #79338.
20 2006-09-27 Chris Toshok <toshok@ximian.com>
22 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
25 2006-09-27 Chris Toshok <toshok@ximian.com>
27 * Splitter.cs: reorder things a bit so that we don't actually
28 draw/move the splitter until after calling OnSplitterMoving. This
29 lets users cancel/disallow the movement by explicitly setting
30 event.SplitX/SplitY. Fixes #79372.
32 2006-09-27 Jackson Harper <jackson@ximian.com>
34 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
35 because it is most likely on a window being destroyed, and that
36 will give us an X11 error.
38 2006-09-27 Chris Toshok <toshok@ximian.com>
40 * PropertyGridView.cs: half of the fix for #78190. Clicking on
41 the dropdown button now toggles between showing and hiding the
42 dropdown. Also, get rid of dropdown_form_showing and just use
43 dropdown_form.Visible. We still don't do a grab, but I'll leave
44 that part to someone who has handled Capture-fu before.
46 2006-09-27 Chris Toshok <toshok@ximian.com>
48 * DataGrid.cs: return false if alt isn't pressed when '0' is
49 pressed. this keeps the '0' key from being swallowed, and fixes
52 2006-09-27 Chris Toshok <toshok@ximian.com>
54 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
55 Calling Refresh (in response to a scrollbar event) screws up the
56 scrollbar painting. Fixes bug #78923.
58 2006-09-27 Chris Toshok <toshok@ximian.com>
60 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
61 then insert into hashtable" blocks threadsafe.
63 2006-09-27 Chris Toshok <toshok@ximian.com>
65 * MessageBox.cs (CreateParams): the styles should be |'ed with our
66 baseclass's, since otherwise the
67 ControlBox/MinimizeBox/MaximizeBox assignments above have no
68 effect. This gets the close button back in messageboxes.
70 2006-09-27 Chris Toshok <toshok@ximian.com>
72 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
73 flag, not just != 0. this makes flags that are actually multiple
74 bits (like WS_CAPTION) work. fixes bug #79508.
76 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
78 * PageSetupDialog.cs: add support for getting and settings the
79 paper size, source and orientation.
81 2006-09-26 Chris Toshok <toshok@ximian.com>
83 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
84 and caption == "", we need to remove the resize handles as well as
87 * Control.cs (set_Text): turns out that setting Text on a form
88 should change the WM styles on the window, since if ControlBox ==
89 false, the only way to get a window border is to have a non-""
90 Text property. check winforms/forms/text.cs for an example. so,
91 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
92 update both window styles and title. This fixes a lot of dialogs
93 (including the preferences dialog in MonoCalendar.)
95 2006-09-26 Chris Toshok <toshok@ximian.com>
97 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
98 control isn't a Form), call Win32ShowWindow to hide the window,
99 but don't update the control Visible property. When we reparent
100 back to a parent control, call SetVisible in order for the
101 window's visibility to be reinstated.
103 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
106 * Control.cs (ControlCollection.Remove): remove that value.Hide()
107 call for good, since it breaks MonoCalendar (and other things I'm
108 sure.) Also, set all_controls to null *after* the owner calls,
109 which end up regenerating it.
110 (ChangeParent): allow new_parent to be == null, passing
111 IntPtr.Zero down to XplatUI.
113 this fixes #79294 the right way.
115 2006-09-26 Mike Kestner <mkestner@novell.com>
117 * GridEntry.cs : internal SetParent method.
118 * PropertyGrid.cs : attach to property changed on the proper
119 target if we have a hierarchical grid with subobjects. Setup
120 GridItem.Parent for hierarchical items.
121 * PropertyGridView.cs : Set value on the correct target for
122 hierarchical grids. [Fixes #78903]
124 2006-09-26 Chris Toshok <toshok@ximian.com>
126 * Control.cs (ChildNeedsRecreating): this should return true if
127 either we're being recreated and the child is in our list, or our
128 parent is waiting for our recreation.
130 2006-09-26 Chris Toshok <toshok@ximian.com>
132 * Control.cs (ControlCollection.Remove): reinstate the
133 value.Hide() call as suggested in bug #79294.
135 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
137 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
138 coordinates (versus a relative move).
140 2006-09-26 Chris Toshok <toshok@ximian.com>
142 * Control.cs: rework child recreation a little bit. It turns out
143 that we race between the DestroyNotify the WM_DESTROY message. If
144 the parent gets its DestroyNotify before the child gets the
145 WM_DESTROY message, the child ends up not recreating (since the
146 parent finishes its recreation on DestroyNotify, and the child
147 checks ParentIsRecreating.)
149 So, instead we store off a list of all the child controls which
150 need to be recreated when the parent control starts to recreate
151 itself. Then, when child controls get their WM_DESTROY message we
152 check to see if they're in the parent's pending recreation list,
153 and if so, we recreate. This removes all dependency on ordering
154 from the code and fixes the initial MonoCalendar upgrade dialog.
156 2006-09-26 Jackson Harper <jackson@ximian.com>
158 * TextControl.cs: Use the Line to get the length of the line,
159 since soft line breaks can change the end line.
161 2006-09-26 Chris Toshok <toshok@ximian.com>
163 * Control.cs (ControlCollection.AddImplicit): don't add the
164 control again if it's already in one of our lists. This keeps us
165 from adding controls over and over again for comboboxes when their
166 handle gets recreated (as the combobox adds implicit controls in
167 OnHandleCreated). Fixes the X11 errors in bug #79480.
169 2006-09-26 Jackson Harper <jackson@ximian.com>
171 * TextControl.cs: When deleting characters make sure that any
172 orphaned zero lengthed tags get deleted.
173 - Fix ToString for zero lengthed tags.
175 2006-09-25 Jackson Harper <jackson@ximian.com>
177 * TextControl.cs: When getting a tag at the location there can be
178 multiple tags at the same spot, these are 0-lengthed tags that
179 appear when extra formatting has been stuck in a location. We
180 need to pull out the last of these 0 lengthed tags.
182 2006-09-25 Jackson Harper <jackson@ximian.com>
184 * TextControl.cs: Fix print out in debug method.
185 * TextBoxBase.cs: When text is set bail if we are setting to the
188 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
190 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
191 It is now possible to change the selected index in a FontXXXListBox
192 with the up and down arrow keys from the FontXXXTextBoxes.
193 Also, send the FontXXXTextBox mouse wheel event to the corresponding
194 FontXXXListBoxes to match ms.
196 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
198 * SystemInformation.cs: Return a clone of the theme's MenuFont because
199 anyone can dispose it, anytime. All other properties returns enums,
200 structs or basic types so they don't need such tricks.
202 2006-09-22 Jackson Harper <jackson@ximian.com>
209 * XplatUIDriver.cs: Update interface to add a primary selection
210 flag, so the driver can use the primary selection buffer if
212 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
214 * RichTextBox.cs: We need to supply the data object to paste now
215 (so we can choose to supply CLIPBOARD or PRIMARY).
216 * TextBoxBase.cs: Supply data object to paste (see above).
217 - Middle click uses the primary selection data object.
219 2006-09-21 Chris Toshok <toshok@ximian.com>
221 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
222 of SetWMStyles. It's still a rat's nest and is largely
223 order-dependent which I dislike immensely. This also fixes the X
224 button disappearing from toplevel forms.
226 2006-09-21 Mike Kestner <mkestner@novell.com>
228 * ListBox.cs: move Jordi's click/dblclick raising code to the
231 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
233 * ListBox.cs: Fixes 79450
235 2006-09-21 Mike Kestner <mkestner@novell.com>
237 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
238 to deal with people updating the TreeNodeCollection after the tree
239 is disposed. "Fixes" 79330.
241 2006-09-20 Jackson Harper <jackson@ximian.com>
243 * TextControl.cs: Push the cursor record onto the undo stack
244 before the delete action. This fixes 78651.
246 2006-09-20 Jonathan Chambers <joncham@gmail.com>
248 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
249 CreateParams. Fixes 79329.
251 2006-09-19 Chris Toshok <toshok@ximian.com>
253 * XplatUIX11.cs: a couple of blanket code massage passes to clean
254 things up a bit. First, get rid of the NetAtoms array (and the NA
255 enum), and just embed the atoms as static fields. Also, add a
256 couple of functions (StyleSet and ExStyleSet) to clean up all the
257 bitmask testing of styles.
259 * X11Structs.cs: remove the NA enum, not needed anymore.
261 2006-09-19 Chris Toshok <toshok@ximian.com>
263 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
264 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
265 added cleanup to get MessageBox titles appearing again, which were
266 broken by my earlier fix for caption-less/ControlBox-less windows.
268 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
270 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
271 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
272 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
273 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
274 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
275 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
276 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
277 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
278 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
279 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
280 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
282 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
283 ToolStripButton.cs: Stubs needed for above.
284 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
286 2006-09-15 Chris Toshok <toshok@ximian.com>
289 - make the MessageQueues hashtable Synchronized.
291 - SendMessage: if the Hwnd is owned by a different thread, use the
292 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
293 thread. Fixes bug #79201.
295 2006-09-15 Chris Toshok <toshok@ximian.com>
297 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
298 ControlBox == false, we disallow maximize/minimize/close. If the
299 form Caption is "" we also disallow move (and get rid of the Title
300 decoration). Unfortunately, regardless of how things are set,
301 we're stuck with the Title and WM menu.
303 2006-09-15 Chris Toshok <toshok@ximian.com>
305 * Application.cs: add locking around the static message_filters
306 ArrayList, part of #79196.
308 2006-09-15 Chris Toshok <toshok@ximian.com>
310 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
311 Form.ControlBox == false, the window has no titlebar nor resize
312 handles. fixes bug #79368.
314 2006-09-15 Chris Toshok <toshok@ximian.com>
316 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
317 >= 0. Fixes bug #79370.
319 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
320 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
322 Add properties: LayoutEngine, Margin, DefaultMargin.
323 Add method: GetPreferredSize.
324 Move layout logic from PerformLayout to layout engines.
326 2006-09-13 Chris Toshok <toshok@ximian.com>
328 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
329 fix for #79326 broke #78718, so this change addresses that.
331 - in SendWMDestroyMessages remove the call to
332 CleanupCachedWindows, since we might be recreating the control and
333 need to maintain the references to right Hwnd handles. Also, set
334 the zombie flag to true for each of the children in the hierarchy
335 instead of calling hwnd.Dispose. This will cause GetMessage to
336 ignore all events for the window except for DestroyNotify.
338 - In GetMessage, ignore messages except for DestroyNotify for
341 * Control.cs: revert the is_recreating fix from the last
342 ChangeLog. It's definitely "right", but it breaks switching from
343 an MDI form to a non-MDI form. Will need to revisit that.
345 * Hwnd.cs: add a zombie flag, which means "the
346 client_window/whole_window handles are invalid, but we're waiting
347 for the DestroyNotify event to come in for them". Set the flag to
348 false explicitly if setting WholeWindow/ClientWindow, and also
351 2006-09-13 Chris Toshok <toshok@ximian.com>
353 * XplatUIX11.cs: rework window destruction slightly.
355 - when destroying the windows associated with a control, we don't
356 need 2 separate XDestroyWindow calls. Just the one for the
357 whole_window (or for client_window if whole_window is somehow
358 IntPtr.Zero -- can this happen?) is enough.
360 - reworked SendWMDestroyMessages slightly, so we always dispose
361 the child control hwnd's after sending the messages.
363 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
364 the two places it was used (one was even using hwnd.Handle and the
365 other hwnd.client_window. ugh), adding another call in
366 SendWMDestroyMessages. We need this new call because now the
367 DestroyNotify events in the queue will be ignored for the child
368 controls (as their hwnd's were disposed, and the window id's
369 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
371 - this fixes bug #79326.
373 2006-09-13 Chris Toshok <toshok@ximian.com>
375 * Control.cs: don't always set is_recreating to false at the end
376 of RecreateHandle, since sometimes we're not done (and won't be
377 until WndProc handles the WM_DESTROY message). Also, set
378 is_recreating to false in the WM_DESTROY handling code. Part of
379 the fix for bug #79326.
381 2006-09-13 Miguel de Icaza <miguel@novell.com>
383 * X11DesktopColors.cs: Start the droppage of debugging messages.
385 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
387 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
389 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
391 2006-09-12 Chris Toshok <toshok@ximian.com>
393 * DataGrid.cs (get_ListManager): if the list_manager is null, try
394 to create it using SetDataSource. Fixes bug #79151.
396 2006-09-11 Chris Toshok <toshok@ximian.com>
398 * XEventQueue.cs: add a DispatchIdle property.
400 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
401 either the queue is null, or the queue has DispatchIdle set to
403 (DoEvents): set queue.DispatchIdle to false around the
404 peek/translate/dispatch message loop in this method. This keeps
405 Application.Doevents from emitting idle events. Part of the fix
408 2006-09-11 Chris Toshok <toshok@ximian.com>
410 * DataGrid.cs (set_DataSource): make this work for both the
411 winforms/datagrid test and ReportBuilder. It seems as though when
412 we've created a ListManager (or maybe it's if we have a
413 BindingContext?), when we set the DataSource it clears the
414 DataMember to "". otherwise we reuse the datamember. Fixes bug
417 2006-09-11 Chris Toshok <toshok@ximian.com>
419 * XplatUIX11.cs: deal with queue being null, which happens in all
420 the Clipboard functions. Fixes one of the two problems mentioned
423 2006-09-11 Chris Toshok <toshok@ximian.com>
425 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
426 button on various spots (including outside the menu) works closer
427 to MS, and doesn't crash. Fixes #79343.
429 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
431 * ListView.cs: Do not initialize item_sorter in init. To match MS,
432 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
433 and the internal comparer is set. When a new ListViewItemSorter is set,
434 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
435 was specified. No further processing is necessary if SortOrder is set
436 to it's current value. If Sorting is modified to None, and View is
437 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
438 (either custom or our internal ItemComparer) to null, on 1.0 profile
439 only set item_sorter to null if its our internal IComparer. If Sorting
440 is modified to Ascending or Descending, then use our internal IComparer
441 if none is set, and if the current IComparer is our internal one then:
442 on 2.0 profile always replace it with one for new Sorting, and on 1.0
443 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
444 Enum.IsDefined to verify whether a valid View value is specified in
445 its setter. Automatically sort listview items when listview is
446 created. In Sort, do nothing if ListView is not yet created, or if
447 no item_sorter is set (no Sorting was set, Sorting was explicitly set
448 to None or ListViewItemSorter was set to null). Added Sort overload
449 taking a bool to indicate whether the ListView should be redrawn when
450 items are sorted (we use this in ListViewItemCollection to avoid double
451 redraws). Modified our internal IComparer to take the sort order into
452 account. In Add and AddRange methods of ListViewItemCollection, also
453 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
454 view), but use overload with noredraw option to avoid double redraw.
455 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
456 true when View is Tile, and do the same when attempting to set View to
457 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
458 for selected/checked indices, as it involves overhead when sorting is
459 done while these collections are not used all that often. Instead
460 we'll build the indices on demand. Modified IList implementation of
461 CheckedIndexCollection to use public methods if object is int.
462 Modified CheckedListViewItemCollection to hide checked items if
463 ListView.CheckBoxes is false. Removed LAMESPEC remark in
464 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
465 IList implementation in SelectedIndexCollection to use public methods
466 if object is int. Modified SelectedListViewItemCollection to hide
467 selected items if listview is not yet created.
468 * ListViewItem.cs: CheckedIndices list no longer needs to be
469 maintained separately (see ListView changes). Also clone font, fixes
472 2006-09-11 Mike Kestner <mkestner@novell.com>
474 * ComboBox.cs: if we are updating the contents of the currently
475 selected index, refresh the control or the textbox selection.
478 2006-09-11 Mike Kestner <mkestner@novell.com>
480 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
481 the 'specified' logic has been moved there. This seems like a bug
482 in Control.cs, since our current SetBoundsCore completely ignores
483 the specified parameter. Peter's commit seems to indicate that is
484 the way the MS control implementation works. [Fixes #79325]
486 2006-09-10 Jonathan Chambers <joncham@gmail.com>
488 * XplatUI.cs: Set default_class_name to be composed
489 of current domain id. This allows MWF to be loaded in multiple
492 2006-09-09 Miguel de Icaza <miguel@novell.com>
494 * X11Keyboard.cs: If we are unable to obtain the input method, do
495 not call CreateXic to create the input context. Should fix
498 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
500 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
501 Simplified gnome support by adding more pinvokes to get the
502 icon for a file or mime type.
504 2006-09-08 Jackson Harper <jackson@ximian.com>
506 * MenuAPI.cs: Deslect popup context menu items before closing the
507 window, so that you don't see the previously selected item
508 selected when you reopen the menu.
509 * TextControl.cs: Update the cursor position even if we don't have
510 focus. This fixes typing in things like the ComboBox. I'm not
511 totally sure we should always set the visibility if we don't have
512 focus, but couldn't find any corner cases where the cursor showed
513 up when it shouldn't.
515 2006-09-08 Chris Toshok <toshok@ximian.com>
517 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
518 our arrays are length 256. & 0xff before indexing. Fixes the
521 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
523 * ThemeWin32Classic.cs:
524 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
525 is true. Handle that check box too.
527 2006-09-07 Chris Toshok <toshok@ximian.com>
529 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
532 2006-09-07 Chris Toshok <toshok@ximian.com>
534 * Control.cs: in set_BackColor only do the work if
535 background_color != value.
537 * XplatUIX11.cs: move the clearing of invalid areas (both client
538 and nc) to the same block of code where we set (nc_)expose_pending
539 to false. That is, move it from PaintEventEnd to PaintEventStart,
540 so things that cause invalidates from within OnPaint will trigger
541 another call to OnPaint. Fixes bug #79262.
543 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
545 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
546 * FileDialog.cs: Fix typo
548 2006-09-07 Jackson Harper <jackson@ximian.com>
550 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
551 for tab pages if they have any.
553 2006-09-06 Mike Kestner <mkestner@novell.com>
555 * Splitter.cs: use the "current" rect when finishing drag handle
556 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
558 2006-09-06 Mike Kestner <mkestner@novell.com>
560 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
561 support offset splitters. [Fixes #79298]
563 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
565 * Mime.cs: Fixed a bug that could override the global mime type
568 2006-09-05 Jackson Harper <jackson@ximian.com>
570 * TabControl.cs: Better calculation method for setting the slider
571 pos. Prevents crashes on really wide tabs.
572 - Draw Image on tab pages if an image list is used.
574 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
576 * MonthCalendar.cs: When Font changes, the Size should be
577 updated to fit the new font's space requirements.
579 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
581 * ListBox.cs: If the items are cleared with Items.Clear set
584 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
586 * MonthCalendar.cs: Handle arrow keys as input keys. Also
587 fire DateChanged event instead of DateSelected event when
588 the date was changed by keyboard interaction.
590 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
592 * DateTimePicker.cs: Handle DateChanged for the associated
593 month_calendar control, and set month_calendar.Font from
594 OnFontChanged method, as well as resize the height of the
595 control when needed. Make PreferredHeight proportional.
597 2006-09-01 Chris Toshok <toshok@ximian.com>
599 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
602 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
604 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
606 * FileDialog.cs: Set ClientSize instead of window size, to allow space
607 for decorations (Fixes #79219)
609 2006-09-01 Mike Kestner <mkestner@novell.com>
611 * ComboBox.cs: first stab at sorting plus some selection handling
612 fixes to bring us more in line with MS behavior. Also switches back
613 to index based selection. Alternative patches for index-based
614 selection were provided by Jackson Harper, Carlos Alberto Cortez,
615 and latency@gmx.de on bug 78848. I assume they were similar to this
616 code I've had simmering in my tree forever.
619 2006-09-01 Chris Toshok <toshok@ximian.com>
621 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
622 when setting list position guard against ending up with a -1 index
623 (the other part of the fix for #78812). Should probably make sure
624 we don't need the analogous fix in the ItemDeleted case.
627 - in SetDataSource, work around the fact that the way
628 OnBindingContextChanged is invoked will cause us to re-enter this
629 method. I'll remove the hack once I investigate
630 OnBindingContextChanged.
632 - fix the logic in set_DataSource and set_DataMember (basically
633 what to do if the other of the two is null.)
635 - in OnListManagerItemChanged, we need to take into account the
636 edit row when deciding whether or not to call RecreateDataGridRows
637 (part of the fix for #78812).
639 2006-09-01 Jackson Harper <jackson@ximian.com>
641 * Splitter.cs: Don't do anything if there is no control to affect
642 (prevents us from crashing in weird tet cases).
643 * TreeView.cs: Bounding box for the mouse movement reverting
644 focus/selection back to previously selected node. This matches
645 MS, and makes the tree a lot more useable.
646 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
647 use clipping so they are not drawn. This fixes when the control
648 is set to have a transparent background, or if it was over an
651 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
653 * MimeIcon.cs: Improved handling for reading default icons when
654 using gnome (2.16 made it necessary). Check and read svg icons
655 first, then 48x48 and then 32x32 icons.
657 2006-08-31 Chris Toshok <toshok@ximian.com>
659 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
662 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
663 ProcessKeyPreview. Fixes part of #77806.
665 * DataGrid.cs: big patch.
667 - revert the queueing up of DataSource/DataMember if inside
668 BeginInit/EndInit calls. That's not the way the datagrid achieves
669 its delayed databinding. Instead, call SetDataSource in
670 OnBindingContextChanged. This mimic's MS's behavior, and fixes
673 - Also, it wasn't mentioned in #78811, but the test case exhibits
674 behavior that was lacking in our datagrid implementation - Columns
675 that have mapping names that don't exist in the datasource's
676 properties aren't shown. Yuck. To fix this I added the bound
677 field to the column style, and basically any calculation to figure
678 out anything about columns uses a loop to find the bound columns.
679 still need to investigate if I can cache an array of the bound
680 columns or if the indices must be the same.
682 - When setting CurrentCell, we no longer abort if the cell being
683 edited was in the add row. This fixes the other part of #77806.
685 - The new code also fixes #78807.
687 * ThemeWin32Classic.cs: perpetrate the same disgusting
688 column.bound field hack, and only render bound fields.
690 2006-08-31 Chris Toshok <toshok@ximian.com>
692 * DataGridColumnStyle.cs: add bound field. this field is true if
693 the datasource has a property corresponding to the mapping name.
695 * DataGridTableStyle.cs: set the bound field on the column styles
696 depending on whether or not we have a column for that property.
698 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
700 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
701 splitter control (fixes #79228)
703 2006-08-31 Chris Toshok <toshok@ximian.com>
705 * DataGridColumnStyle.cs: we need to delay the assignment of
706 property descriptor until the last possible moment due to the lazy
707 databinding stuff in the datagrid. Also, fix the exceptions
708 thrown by CheckValidDataSource to match MS.
710 2006-08-31 Jackson Harper <jackson@ximian.com>
712 * Form.cs: When activated select the active control, if there is
713 no active control, we select the first control.
714 * XplatUIX11.cs: If there is no focus control when we get a
715 FocusIn event, find the toplevel form and activate it. This
716 occurs when you popup a window, it becomes the focus window, then
717 you close that window, giving focus back to the main window.
719 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
722 * ThemeWin32Classic.cs: Cache Font in bold style, as well
723 as StringFormat with Center alignments in MonthCalendar,
724 instead of creating new ones when drawing the control.
725 Also, draw the month name in bold style.
727 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
730 - PerformLayout(): It would seem MS performs the fill even if the
731 control is not visible (part of #79218 fix)
732 - ResetBackColor(): Use the setter to reset the color, to allow
733 overriders to catch the change.
735 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
736 - CreateHandle(): dito (part of $79218 fix)
737 - Don't set an icon if we have a dialog
738 * ScrollableControl.cs:
739 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
740 - ScrollIntoView(): No need to scroll if control is already visible
741 (resolves fixme and fixes #79218)
743 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
745 * MonthCalendar.cs: Change proportions in SingleMonthSize
746 to match the aspect of the original control.
748 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
750 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
751 get updated when they get maximized.
753 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
755 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
757 2006-08-29 Chris Toshok <toshok@ximian.com>
759 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
761 2006-08-29 Jackson Harper <jackson@ximian.com>
763 * TreeView.cs: Need to track selected node and highlighted node,
764 they aren't always the same thing, when the mouse is down on a
765 node it is hilighted, but not selected yet.
766 - Do the HideSelection stuff right
767 - Need to focus on rbutton mouse down. And redraw selection when
768 right click is mouse upped.
770 2006-08-29 Mike Kestner <mkestner@novell.com>
772 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
773 when SubItems.Count < Columns.Count. [Fixes #79167]
775 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
777 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
779 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
781 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
782 from X. Only send based on ConfigureNotify if we don't have the
783 correct location in hwnd (if the window manager moved us)
785 2006-08-28 Mike Kestner <mkestner@novell.com>
787 * ListView.cs: remove a TODO.
788 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
789 [Fixes ListView part of #79166]
791 2006-08-28 Mike Kestner <mkestner@novell.com>
793 * ListView.cs: move wheel handler to parent since it is focused
794 instead of the item_control now. [Fixes #79177]
796 2006-08-28 Mike Kestner <mkestner@novell.com>
798 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
799 when the control is focused. [Fixes #79171]
801 2006-08-28 Mike Kestner <mkestner@novell.com>
803 * ListView.cs: size the item and header controls for empty and
805 * ThemeWin32Classic.cs: draw disabled backgrounds.
808 2006-08-28 Chris Toshok <toshok@ximian.com>
810 * Form.cs: remove unused "active_form" static field.
812 * Hwnd.cs: lock around accesses to static windows collection.
814 * Application.cs: lock threads in Exit ().
816 2006-08-28 Chris Toshok <toshok@ximian.com>
818 * NativeWindow.cs: lock around accesses to window_collection.
820 2006-08-28 Chris Toshok <toshok@ximian.com>
822 * Control.cs: err, fix this the right way, by locking on controls
823 when using it. not by making it synchronized.
825 2006-08-28 Chris Toshok <toshok@ximian.com>
827 * Control.cs: make the static "controls" field synchronized, as it
828 gets updated from multiple threads.
830 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
832 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
833 Prevent other threads from exiting when calling thread sets quit state.
834 * XEventQueue.cs: Added PostQuitState property
836 2006-08-27 Chris Toshok <toshok@ximian.com>
838 * AsyncMethodData.cs: add a slot for the window handle.
840 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
841 window (the destination control's window, not the foster window).
843 * Control.cs (BeginInvokeInternal): store the window's handle in
847 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
850 - PostQuitMessage: Removed resetting S.D display handle, we might have
851 another loop started after calling PostQuitMessage (Fixes #79119)
852 - Created destructor to reset S.D handle
854 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
856 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
858 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
860 * TextControl.cs (Insert): Update the caret position even if we don't
861 have a handle yet, just don't call the driver in that case.
862 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
863 to the end of the new selection text (Fixes #79184)
865 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
867 * Form.cs (Activate): Only activate if the handle is created)
869 - Mark window as invisible when it's disposed
870 - Check if window handle is created when setting window visible,
871 instead of relying just on the is_created variable
872 - Check if object is disposed when creating the control (Fixes #79155)
874 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
876 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
877 when allowing layout again. Otherwise we re-generate the anchoring
878 distance to the border again and actually alter what the user wanted
879 This is ugly, it'd be better if we used DisplayRectangle instead of
880 ClientRectangle for Control.UpdateDistances, but that causes us to
881 have other problems (initial anchoring positons would be wrong)
884 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
887 - The size and location setters shouldn't go directly to
888 SetBoundsCore, but to SetBounds, which triggers layout on the
889 parent, then calls SetBoundsCore. (Related to fix for #78835)
890 - SetBounds: Moved actual location update code into this function
891 from SetBoundsCore, to match MS. Added call to PerformLayout if
892 we have a parent (to trigger resizing of anchored parents if the
893 child size has changed (see testcase for #78835)
894 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
896 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
898 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
900 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
901 System.Drawing when a toplevel window gets closed; there might
902 be other toplevel windows belonging to the same app (Fixes #78052)
904 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
906 * FileDialog.cs: After reading FileDialog settings from mwf_config
907 use Desktop prefix only if a real folder doesn't exist anymore.
908 * FontDialog.cs: Added char sets.
909 It is now possible to select the font, size or style with the
912 2006-08-25 Kornél Pál <kornelpal@gmail.com>
914 * PrintPreviewDialog.cs: Use assembly name constants.
916 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
918 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
919 scrollbar from whacking it's buttons)
921 2006-08-24 Chris Toshok <toshok@ximian.com>
923 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
924 in this patch (aggregating setting Left/Top/Width/Height to
925 setting Bounds on the scrollbars), but the crux of the fix is in
926 Recalculate, where we scroll by the remaining scroll_position if
927 we're hiding a scrollbar. The 2*$5 reward in the comment is
930 2006-08-24 Jackson Harper <jackson@ximian.com>
933 * MdiWindowManager.cs: If the form is made a non-mdi window we
934 need to remove the form closed event so that closing forms works
937 2006-08-24 Jackson Harper <jackson@ximian.com>
939 * Control.cs: Make IsRecreating internal so that the driver can
941 - Temporarily remove the Hide when controls are removed, its
942 making a whole bunch of things not work because visibility isn't
943 getting reset elsewhere correctly
944 * Form.cs: Need to do a full handle recreation when the mdi parent
946 * XplatUIX11.cs: If we are recreating handles don't dispose the
947 HWNDs. What was happening is the handles were being recreated in
948 SendWMDestroyMessages, but then flow continued on in that method
949 and destroyed the new handles.
951 2006-08-23 Jackson Harper <jackson@ximian.com>
953 * Form.cs: MdiClient is always at the back of the bus
954 * Control.cs: When the order of items in the collection is changed
955 we need to reset the all_controls array
956 - do the same sorta setup thats done when adding a control when a
957 control is set on the collection.
959 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
961 * TextBoxBase.cs (get_Text): Return an empty array if our document
962 is empty (fixes #79052)
964 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
966 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
967 on WM_SYSCHAR messages (fixes #79053)
969 2006-08-23 Chris Toshok <toshok@ximian.com>
971 * DataGrid.cs: fix flickering when scrolling vertically.
973 2006-08-23 Chris Toshok <toshok@ximian.com>
975 * DataGrid.cs (EndEdit): only invalidate the row header when we
978 2006-08-23 Chris Toshok <toshok@ximian.com>
980 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
981 methods. fixes the flicker when scrolling around.
983 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
985 * FileDialog.cs: Making sure the control is created before we get a
986 chance to use it with BeginInvoke (Fixes #79096)
988 2006-08-23 Chris Toshok <toshok@ximian.com>
990 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
991 width to use when painting the rows.
993 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
996 - Throw ArgumentException if a negative value is passed to SelectionLength
997 - Update the selection end if start is moved. end needs to be always
998 after start. (Fixes #79095)
999 - Track selection length; MS keeps the selection length even if start
1000 is changed; reset on all other operations affection selection
1002 2006-08-22 Jackson Harper <jackson@ximian.com>
1004 * TreeView.cs: Make sure both scrollbars get displayed and sized
1005 correctly when the other bar is visible.
1006 - Use the original clip rectangle for checking if the area between
1007 the two scrollbars is visible, not the viewport adjusted clipping
1010 2006-08-22 Jackson Harper <jackson@ximian.com>
1012 * Binding.cs: We don't use IsBinding because it requires the
1013 control to be created, which really shouldn't be necessary just to
1014 set a property on the control.
1016 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1018 * ComboBox.cs: Some CB.ObjectCollection methods must throw
1019 ArgumentNullReferenceException when the argument is null.
1021 2006-08-21 Jackson Harper <jackson@ximian.com>
1023 * Timer.cs: Track the thread that the timer is started in (NOT
1024 CREATED), this way messages for it will only be triggered on its
1026 * XEventQueue.cs: Track the timers here, this makes timers per
1028 * XplatUIX11.cs: The timers are moved to the XEventQueue.
1030 2006-08-19 Chris Toshok <toshok@ximian.com>
1032 * XplatUIX11.cs: after further communication with pdb, we get the
1033 best of both worlds. SetZOrder working for un-Mapped windows, and
1034 no X errors for un-mapped windows.
1036 2006-08-19 Chris Toshok <toshok@ximian.com>
1038 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1039 as it was causing pdn toolbars to not have the correct stacking.
1041 2006-08-18 Mike Kestner <mkestner@novell.com>
1043 * ListView.cs : guard against negative ClientArea.Width in scrollbar
1044 calculation. Not sure why control should ever be setting a negative
1045 width though. Fixes #78931.
1047 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1049 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1050 null items in ObjectCollection class.
1051 * ListBox.cs.: Likewise.
1053 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
1055 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1056 as the base method in ThemeWin32Classic should work fine.
1059 2006-08-18 Jackson Harper <jackson@ximian.com>
1061 * Binding.cs: When validating if the value entered doesn't convert
1062 properly reset to the old value.
1063 * RadioButton.cs: Don't fire click when we get focus.
1065 2006-08-18 Jackson Harper <jackson@ximian.com>
1067 * FileDialog.cs: Paint the selection on the directory combobox the
1070 2006-08-17 Jackson Harper <jackson@ximian.com>
1072 * ErrorProvider.cs: Don't allow the error control to be selected.
1073 * Control.cs: Don't send the SetFocus messages, the control
1074 activation will do this, and if we do it blindly here validation
1077 2006-08-17 Jackson Harper <jackson@ximian.com>
1080 * ContainerControl.cs: Make validation events fire in the correct
1081 order. TODO: For some reason the first validation event is not
1084 2006-08-17 Mike Kestner <mkestner@novell.com>
1086 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
1088 2006-08-17 Mike Kestner <mkestner@novell.com>
1090 * ComboBox.cs : implement scroll wheel support for popped-down
1091 state. Fixes #78945.
1093 2006-08-17 Jackson Harper <jackson@ximian.com>
1095 * TreeView.cs: Specify treeview actions (old patch that didn't get
1096 committed for some reason).
1097 - Don't let the mouse wheel scroll us too far. Just want to make
1098 the bottom node visible, not scroll it all the ways to the top.
1100 2006-08-17 Jackson Harper <jackson@ximian.com>
1102 * XplatUIX11.cs: Mouse wheel events go to the focused window.
1104 2006-08-17 Mike Kestner <mkestner@novell.com>
1106 * ComboBox.cs : don't do mouseover selection in simple mode.
1108 2006-08-16 Jackson Harper <jackson@ximian.com>
1110 * Form.cs: Fire the closing events for all the mdi child windows
1111 when a window is closed. If the cancel args are set to true, the
1112 main window still gets the event fired, but it doesn't not close.
1113 * MdiWindowManager.cs: Do this closing cleanup in a Closed
1114 handler, instead of when the button is clicked, so cancelling the
1115 close works correctly.
1116 * ComboBox.cs: Send the mouse down to the scrollbar.
1118 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1120 * ListBox.cs: When passing 'null' to SelectedItem,
1121 set SelectedIndex to -1, to unselect items. This is the
1122 observed behaviour in .Net.
1124 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
1126 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
1127 MS flags saying there won't be any. (fixes #78800)
1128 * Control.cs (HandleClick): Made virtual
1130 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
1132 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
1133 cultures. Fixed bug #78399.
1135 2006-08-16 Jackson Harper <jackson@ximian.com>
1137 * Form.cs: Use the MdiClients MdiChildren property to access
1138 MdiChildren instead of creating the array from the child controls.
1139 * MdiClient.cs: Maintain a separate array of the mdi children, so
1140 that insertion order is maintained when the Z-order is changed.
1142 2006-08-16 Mike Kestner <mkestner@novell.com>
1144 * ListView.cs : add an ItemComparer and default to it for sorting.
1145 Fixes #79076, but sorting needs a complete overhaul to be compat with
1148 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1150 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
1152 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1154 * Hwnd.cs (Mapped): Properly traverse the tree
1156 2006-08-15 Chris Toshok <toshok@ximian.com>
1158 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
1159 pass manager.Current.GetType() to ParseData. It has to be the
1160 property type. So, hold off doing the ParseData until we're in
1161 SetPropertyValue where we know the type. This fixes the crash in
1162 #78821 but the textbox is still empty.
1164 2006-08-15 Chris Toshok <toshok@ximian.com>
1167 - when we're scrolling, only call Edit() again if the
1168 current cell is still unobscured. Fixes bug #78927.
1169 - when handling mousedown on a cell, ensure the cell is visible
1170 before calling Edit.
1171 - remove the properties from DataGridRow, and remove the
1172 DataGridParentRow class altogether.
1175 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1177 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
1178 fire OnTextChanged by ourselves. There's no point calling base,
1179 we don't set the base value anywhere else. Fixes #78773.
1181 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1183 * ListBox.cs: Call CollectionChanged when modifying
1184 an item from Items indexer, to update the actual items
1187 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1189 * PrintDialog.cs: Small fixes for focus and a pair of checks,
1190 to match .Net behaviour.
1192 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1194 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
1196 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1198 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
1200 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1202 * MessageBox.cs: Prevent potential NRE exception.
1203 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
1205 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
1207 * MessageBox.cs: Calculate the owner of a messagebox, also make
1208 it topmost. Fixes #78753
1210 2006-08-14 Chris Toshok <toshok@ximian.com>
1212 * XplatUIX11.cs: A couple of fixes so that metacity will let us
1213 programmatically move windows. first, set the PPosition hint as
1214 well as the USPosition hint. Second include some code from pdb
1215 that sets the window type to NORMAL when we set the transient for
1216 hint. This is because, in the absence of a window type, metacity
1217 thinks any window with TransientFor set is a dialog, and refuses
1218 to let us move it programmatically. fascists.
1220 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
1222 * XplatUIX11.cs: When setting normal hints, take into consideration
1223 an different hints previously set so we don't delete them (fixes #78866)
1225 2006-08-12 Chris Toshok <toshok@ximian.com>
1227 * ToolBarButton.cs: make Layout return a boolean, if something to
1228 do with the button's layout changed.
1231 - add another parameter to Redraw, @force, which all existing
1233 - make the Layout function return a boolean which is true if the
1234 layout has actually changed. Redraw now uses this (and @force)
1235 to determine when to invalidate. At present the only place
1236 where @force can be false is the call from OnResize, when
1237 background_image == null. So, resizing a toolbar when the
1238 layout doesn't change results in no drawing.
1240 2006-08-12 Chris Toshok <toshok@ximian.com>
1242 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
1243 the VScrollBar and HScrollbar reversed. oops.
1245 * DataGrid.cs: fix the logic that assigns sizes to the implicit
1246 scrollbars. we were assigning them twice (once in
1247 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
1248 therefore causing two scrollbar resizes (and redraws?) to happen
1251 2006-08-12 Chris Toshok <toshok@ximian.com>
1253 * ToolBarButton.cs: redraw the entire button if the theme tells us
1256 * Theme.cs: add ToolBarInvalidateEntireButton.
1258 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
1259 buttons, just the border.
1261 * ThemeNice.cs: redraw the entire toolbar button since we need to
1262 draw the highlight image.
1264 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
1265 we need to redraw the entire button (not just the border).
1267 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
1269 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
1270 for vertical bars. Fixes the mismatches shown by #78513
1272 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
1274 * FileDialog.cs: If a saved/remembered path doesn't exist
1275 anymore, fall back to "Desktop".
1277 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
1279 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
1280 parent. It's apparently legal to not have one
1282 - SetZOrder: Don't try to set Z-Order on an unmapped window
1283 - CreateWindow: 0,0 are legal coordinates for a window. don't move
1284 it unless the coordinates are negative
1286 2006-08-10 Mike Kestner <mkestner@novell.com>
1288 * ListControl.cs: allow null for DataSource. Clear DisplayMember
1289 when setting to null per msdn docs. Fixes #78854.
1291 2006-08-10 Chris Toshok <toshok@ximian.com>
1293 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1294 flickering by setting a clip rectangle on the Graphics when we
1295 need to redraw just a particular menuitem. Also, rename "OnClick"
1296 to "OnMouseDown" to reflect what it actually is.
1298 * Form.cs: track the OnMouseDown change.
1300 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
1302 * CommonDialog.cs: Properly inherit the CreateParams from the form
1303 and only change what we need. Fixes #78865
1305 2006-08-10 Chris Toshok <toshok@ximian.com>
1307 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1308 flickering in flat mode (and most of the flickering in general) by
1309 only invalidating the button border (and not the entire rectangle)
1310 when the state changes. A couple of cases still flicker:
1311 ToggleButtons, and the dropdown arrow case when the user mouse
1314 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
1316 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1317 for german keyboards. Numlock state shouldn't affect the behaviour
1318 of the Del key. Fixes bug #78291.
1320 2006-08-10 Chris Toshok <toshok@ximian.com>
1322 * ListControl.cs: remove the items.Clear line from BindDataItems,
1323 as this is the first thing done by both subclasses in their
1324 SetItemsCore overrides. Also, add a ItemChanged handler, and when
1325 passed -1, refresh the list. This gets databinding working when
1326 the datasource is set on the list before the datasource is
1327 populated (as in wf-apps/ReportBuilder.)
1329 * ComboBox.cs: remove the argument to BindDataItems. This call
1330 should really go away, and be initiated by the ListControl code.
1334 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1336 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1337 if no data is in the document when the control is displayed
1339 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1341 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1344 - PositionCaret: Allow positioning of caret but don't call methods
1345 requiring a handle if the window isn't created yet
1346 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1347 - owner_HandleCreated: Don't position the caret, just update it's
1348 location. User might have already set a different position
1350 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1352 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1353 windows. Screws up the returned coordinates for child windows.
1354 Fixes #78825. I'm hoping this doesn't break something, since the
1355 code was explicitly put in 8 months ago, but no bug was attached.
1356 Menus still seem to work properly.
1358 2006-08-08 Chris Toshok <toshok@ximian.com>
1360 * DataGrid.cs: make BeginInit/EndInit actually do what they're
1361 supposed to do - delay data binding until the EndInit call. Also,
1362 make the table style collection's CollectionChangeAction.Refresh
1365 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1366 (with action = Refresh) when a consituent table's MappingName is
1369 2006-08-08 Chris Toshok <toshok@ximian.com>
1371 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1372 Invalidate, since changing the text can change the size of the all
1375 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1377 * Form.cs (AddOwnedForm): Still need to add the form to our listif
1378 we don't have it yet
1380 2006-08-08 Chris Toshok <toshok@ximian.com>
1382 * PrintControllerWithStatusDialog.cs: don't .Close() the status
1383 dialog, as this causes X errors later on, since we actually
1384 destroy the window. Instead, .Hide() it.
1386 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1388 * ComboBox.cs: Added focus reflection for popup window
1390 - Removed transient setting for non-app windows for now, not sure it
1392 - Fixed logic checking if we have captions when deciding
1393 override_redirect, WS_CAPTION is two bits and a 0 check was not
1395 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1398 - AddOwnedForm: Don't just add the form to the list, call the property
1399 to ensure the driver is informed about the ownership as well
1400 - CreateHandle: Set the TopMost status in the driver if we have an owner
1401 * XplatUI.cs: Fixed debug statement
1403 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
1404 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1405 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1406 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
1407 TrackBarRenderer.cs: Make constructor private.
1408 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1409 * ProfessionalColorTable.cs: Make properties virtual.
1411 2006-08-06 Duncan Mak <duncan@novell.com>
1413 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1416 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1417 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1418 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1419 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1420 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1421 Initial import of new 2.0 classes.
1423 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1424 * Application.cs: Add 2.0 VisualStyles properties.
1426 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1427 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1428 XplatUIX11.cs: Create property to allow access to existing private
1429 variable "themes_enabled"
1431 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1433 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1434 file size, as otherwise our class libraries fail using windows. Fixes
1437 2006-08-04 Jackson Harper <jackson@ximian.com>
1440 * XplatUIX11.cs: Move the toolwindow window manager creation into
1441 the X11 driver, this way on win32 we can let windows create/handle
1444 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1446 * PrintDialog.cs: Remove some redundant checks, add some others,
1447 clean some code, and move the focus to the text boxes when the
1448 values are incorrect.
1450 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
1452 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1454 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1456 * NumericUpDown.cs: Setting the Minimum and Maximum is now
1457 handled correctly. Fixes bug #79001.
1459 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1461 * PrintDialog.cs: The "Copies" numeric up down must have
1462 set the Minimum property to 1; only if the value is bigger
1463 than 1, activate "Collate" check box. This is the behaviour of .Net.
1464 Also modify the Document elements only if it is not null.
1466 2006-08-03 Jackson Harper <jackson@ximian.com>
1468 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1469 length. (We have a larger array then actual node count).
1471 2006-08-03 Jackson Harper <jackson@ximian.com>
1473 * ComboBox.cs: Don't show selection by default.
1474 - The SelectAll isn't needed here, since the focus code should do
1476 - DDL style lists to manual selection drawing, so when they
1477 get/lose focus they have to invalidate.
1479 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
1481 * TextBoxBase.cs: Don't always show all selections by default.
1483 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
1484 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1485 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1486 Fixed various typos.
1488 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1490 * Control.cs: Removing the controls in a ControlCollection with
1491 Clear now hides the controls as expected. Fixes bug #78804.
1493 2006-08-03 Jackson Harper <jackson@ximian.com>
1495 * Control.cs: Revert previous focus patch, it breaks reflector.
1497 2006-08-03 Jackson Harper <jackson@ximian.com>
1499 * ComboBox.cs: Cleanup selection and focus with the combobox.
1500 This also eliminates some duplicated keyboard code, since now
1501 everything is handled by the main class.
1502 - Make list selection work on mouse up instead of down, to match
1505 2006-08-02 Jackson Harper <jackson@ximian.com>
1507 * Control.cs: Setting focus needs to go through the whole
1508 selection mechanism.
1510 2006-08-02 Chris Toshok <toshok@ximian.com>
1512 * PrintPreviewDialog.cs: change MinimumSize to use
1513 base.MinimumSize so it works.
1515 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
1518 - UpdateCaret: Added sanity check in case caret isn't defined yet
1519 - Line.Delete: Now updating selection and caret markers if we're
1520 transfering a node (Properly fixes #78323)
1521 - SetSelectionEnd: Added sanity check
1522 * TextBoxBase.cs: Removed broken attempt to fix #78323
1524 2006-08-01 Chris Toshok <toshok@ximian.com>
1526 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1527 Close() call is handled in Form, not here.
1529 2006-08-01 Chris Toshok <toshok@ximian.com>
1531 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1534 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1535 for sizes < 100% zoom. The code now aggressively attempts to keep
1536 from calling document.Print (), and tries not to use the scaling
1537 g.DrawImage whenever possible (it still does if you scale to >
1538 100%, since usually that involves huge images).
1540 * PrintPreviewControl.cs: hook up the close button.
1542 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
1543 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1544 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1545 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1546 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1547 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1548 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1549 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1550 Removed [Serializable] for 2.0 Event Handlers.
1552 2006-07-31 Jackson Harper <jackson@ximian.com>
1554 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1555 * TextControl.cs: Uncomment out the body of this method.
1557 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
1559 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1562 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1564 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1565 that embed TextBox and need selections visible even if textbox is not
1566 focused to enforce that behaviour.
1567 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1570 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1573 - Added new SetSelectionStart/SetSelectionEnd overloads
1574 - Fixed viewport width assignment to be accurate
1575 - Adjusted alignment line shift calculations to allow cursor on right
1576 aligned lines to be always visible at the right border (like MS)
1578 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1579 - TextBoxBase_SizeChanged: recalculating canvas on size changes
1580 - CalculateScrollBars: Use ViewPort size instead of window size, to
1581 properly consider space occupied by the border and scrollbars
1583 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
1584 calculations; no longer leaves artifacts
1585 - CaretMoved: Adjusted window scrolling to match MS and fixed several
1586 calculation bugs (Still missing right/center align calculations)
1588 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1590 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1591 use of both scroll rect and clip rect, as they do the same.
1593 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1595 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
1596 in the event handler (fixes #78912)
1598 2006-07-31 Chris Toshok <toshok@ximian.com>
1600 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1601 grid.ListManager.Count, since grid.ListManager might be null.
1602 This of course begs the question "why are we drawing rows for a
1603 grid with no list manager (and therefor no rows)?" Fixes the
1604 crash in bug #78929.
1606 2006-07-31 Chris Toshok <toshok@ximian.com>
1608 * RelatedPropertyManager.cs: Don't always chain up to the parent
1609 ctor. instead, call SetDataSource if the parent's position is !=
1610 -1. Fixes the crash in #78822.
1612 2006-07-31 Chris Toshok <toshok@ximian.com>
1614 * DataGrid.cs (get_ListManager): use field instead of property
1615 accessors for datasource and datamember.
1616 (RowsCount): make internal again.
1617 (OnMouseDown): end edits before resizing columns/rows.
1618 (OnMouseUp): restart edits after resizing columns/rows.
1620 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
1622 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1623 This fixes the situation where the last set cursor is displayed
1624 whenever the mouse is over scrollbars.
1626 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1628 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1629 Document properties, as well as initial values.
1631 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
1633 * XplatUIWin32.cs (SetBorderStyle): Setting both border
1634 and ClientEdge results in a 3-pixel border, which is
1637 2006-07-28 Jackson Harper <jackson@ximian.com>
1639 * TreeNodeCollection.cs: Fix the clear method.
1640 - Fix the Shrink also
1642 2006-07-27 Jackson Harper <jackson@ximian.com>
1644 * TreeView.cs: Make sure the visible order is computed when we
1645 attempt to size the scrollbars (for trees that mess with the
1646 scrolling when they shouldn't.
1647 - Make sure to give the scrollbars valid values.
1649 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1651 * XplatUIX11.cs: Move motion compression code to where it
1652 has less performance impact
1654 2006-07-26 Jackson Harper <jackson@ximian.com>
1656 * UpDownBase.cs: When the control is selected make the child
1657 controls non selectable, so that a click on them won't do a
1658 focus/unfocus cycle.
1659 - Don't give focus to the text box when the spinner is selected.
1660 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1662 2006-07-26 Chris Toshok <toshok@ximian.com>
1664 * ThemeWin32Classic.cs: add print preview rendering. I'm not
1665 satisfied with this solution. If the bitmaps are small, we should
1666 just cache them in the PrintPreviewDialog and draw them here.
1667 Also, the layout is broken for the 2-up and 3-up cases.
1669 * Theme.cs: add PrintPReviewControlPaint.
1671 * PrintPreviewDialog.cs: first pass implementation.
1673 * PrintPreviewControl.cs: first pass implementation. No
1676 * PrintDialog.cs: only validate fields if that particular portion
1677 of the UI is enabled. Also, set the document's controller to a
1678 PrintControllerWithStatusDialog wrapping the document's print
1681 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1682 bring up a SaveFileDialog (i hope we don't want to match the
1683 behavior of the crappy windows file entry) and set the
1684 PrinterSettings.PrintFileName accordingly.
1686 2006-07-26 Jackson Harper <jackson@ximian.com>
1688 * ContainerControl.cs: Add a field that disables auto selecting
1689 the next control in a container when the container is activated.
1690 * UpDownBase.cs: Don't select the text box when the up down is
1693 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1695 * XEventQueue.cs: Added methods for peeking (used for compression
1696 of successive events)
1697 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1698 mouse move events (fixes #78732)
1700 2006-07-25 Jackson Harper <jackson@ximian.com>
1702 * UpDownBase.cs: Use an internal class for the textbox so that we
1703 can control focus. the updown control should always have focus,
1704 if either the text area or the buttons are clicked.
1705 - Send the key messages to the textbox, since it never actually
1707 - Activate and decativate the textbox caret.
1709 2006-07-24 Jackson Harper <jackson@ximian.com>
1711 * Control.cs: Use the directed select when selecting a control,
1712 this way the container controls override will get called and the
1713 whole ActiveControl chain will get triggered. TODO: probably need
1714 to make sure this gets done everywhere instead of the old
1716 * ContainerControl.cs: Implement the directed Select method to
1717 find and activate the correct child control.
1719 2006-07-22 Mike Kestner <mkestner@novell.com>
1721 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1722 menu handling code so that clicks without a grab work too.
1725 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
1727 * FileDialog.cs: Enable the BackButton when dirstack has one element.
1728 Added some small optimizations.
1730 2006-07-21 Matt Hargett <matt@use.net>
1732 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1734 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
1736 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
1737 tests pass and match MS in some strange border cases.
1739 2006-07-21 Chris Toshok <toshok@ximian.com>
1741 * ThemeWin32Classic.cs: handle drawing of the relation links and
1744 * Theme.cs: change args to DataGridPaintParentRow.
1746 * DataGrid.cs: Don't use controls for the relation links and
1747 parent buttons, so we have to handle all their interactions in
1748 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
1749 when we're navigating through child tables, so we can reinstate
1750 selection, expanded state, current cell, etc.
1752 2006-07-20 Chris Toshok <toshok@ximian.com>
1754 * ToolBar.cs: When we redraw a button, for whatever reason,
1755 there's no reason to redraw the entire toolbar. Also, don't call
1756 Control.Refresh from within Redraw, as it's much heavier than
1757 Invalidate (which is really what we want).
1759 2006-07-20 Chris Toshok <toshok@ximian.com>
1761 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
1762 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
1763 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
1764 traces from within a debug IBindingList datasource
1765 (in mono/winforms/datagrid) for *days*, I've finally gotten things
1766 to work in a similar fashion.
1768 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1770 * ListBox.cs: Don't call Sort () when setting
1771 the Sorted property to false (avoid an unnecessary sort).
1773 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1775 * ListControl.cs: DataSource should throw an ArgumentException
1776 instead of a normal exception when the argument is not of the
1779 2006-07-20 Mike Kestner <mkestner@novell.com>
1781 * Control.cs: add InternalPreProcessMessage to allow us to steal
1782 key events before MWF gets its paws on them. Adapted from a
1784 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
1785 up/down/left/right navigation. Override the new internal control
1786 method to steal the events since they never make it to WndProc.
1787 * ToolBarButton.cs: don't worry about pushed when setting hilight
1788 since the drawing code prefers pushed to hilight. Invalidate on
1789 Hilight changes. Fixes #78547 and #78525.
1791 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1793 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
1794 the canvas size. Fixes #78868
1796 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1798 * Splitter.cs: Track requested split position until first layout
1799 is performed. Fixes #78871
1801 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1803 * Application.cs: Removed code that forces 1.x for the version
1804 number if the version started with 0. Not sure why that code was
1805 there and I couldn't find any bugs that indicated we needed it.
1808 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
1810 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
1811 ResetDefaults(), just write some output to the console until it's
1812 implemented. Fixes bug #78907 for now. Eliminated two warnings.
1814 2006-07-19 Jonathan Chambers <joncham@gmail.com>
1816 * PropertyGridView.cs: set StartPosition of drop down forms
1817 so they appear in correct initial spot. Fixes #78190.
1819 2006-07-19 Mike Kestner <mkestner@novell.com>
1821 * ThemeWin32Classic.cs: use parent background color when drawing
1822 flat toolbars. Restructure the conditionals to make sure non-flat
1823 non-Divider toolbars are filled too. Fixes #78837.
1825 2006-07-19 Mike Kestner <mkestner@novell.com>
1827 * ListBox.cs: Sort on collection changes even if the handle
1828 isn't created yet. Fixes #78813.
1830 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1832 * ListControl.cs: DisplayMember should never be null,
1833 and now we assign String.Empty when null is passed to it (this
1836 2006-07-17 Mike Kestner <mkestner@novell.com>
1838 * ListViewItem.cs: restructure Font and subitem Font handling
1839 to hold a specific font and refer back to owner on null.
1842 2006-07-17 Mike Kestner <mkestner@novell.com>
1844 * ToolBar.cs: bandaid for side-effect of previous patch which was
1845 discarding explicit heights for non-AutoSize toolbars. Need to
1846 extend my format tester to deal with AutoSize=false. Fixes #78864.
1848 2006-07-15 Jackson Harper <jackson@ximian.com>
1850 * LabelEditTextBox.cs:
1851 * TreeView.cs: Use a new LabelEdit class for node editing, this
1852 class automatically 'closes' itself when it gets the enter key or
1854 - Use the client rectangle when setting the trees scrollbars, so
1855 border style is taken into account.
1857 2006-07-14 Jackson Harper <jackson@ximian.com>
1860 * TreeView.cs: Make the editing work similar to MSs, firing the
1861 events correctly and ending edits correctly.
1863 2006-07-14 Mike Kestner <mkestner@novell.com>
1866 * ToolBar.cs: layout restructuring and redraw enhancements to support
1867 formatting changes gracefully, like setting TextAlign, ImageList,
1868 ButtonSize, and Appearance. Handles explicit button sizing quirks
1869 of the MS controls. Things like flat toolbars ignoring button size
1870 but becoming constant sized at the largest button's size. Normal
1871 toolbars with an image set cannot be shrunk smaller than the image,
1872 but text can be clipped/ignored.
1873 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
1874 is zero. Seems like DrawString should be smart enough to not put
1875 anything on screen though. Also trim labels and ellipsize at the char
1877 Fixes #78711 and #78483.
1879 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1881 * FolderBrowserDialog.cs: Disable "New Folder" button and
1882 "New Folder" contextmenu menuitem if a folder like "My Computer"
1885 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1887 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
1888 * FolderBrowserDialog.cs:
1889 - Use MWFConfig to store and read size and position settings
1890 - Added code to create a new folder (button or context menu).
1891 Use TreeView labeledit to change the name of the new folder.
1893 2006-07-14 Jackson Harper <jackson@ximian.com>
1895 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
1896 when the tree is scrolled we end editing.
1898 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1900 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
1903 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1905 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
1906 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
1907 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
1908 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
1909 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
1910 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
1911 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
1912 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
1913 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
1914 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
1915 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
1916 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
1917 ListViewItemSelectionChangedEventHandler.cs,
1918 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
1919 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
1920 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
1921 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
1922 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
1923 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
1924 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
1925 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
1926 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
1927 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
1928 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
1929 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
1930 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
1931 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
1932 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
1933 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
1934 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
1935 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
1936 WebBrowserNavigatingEventHandler.cs,
1937 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
1939 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1941 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
1942 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
1943 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
1944 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
1945 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
1946 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
1947 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
1948 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
1949 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
1950 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
1951 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
1952 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
1953 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
1954 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
1955 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
1956 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
1957 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
1958 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
1959 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
1960 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
1961 ListViewItemStates.cs, MaskFormat.cs: Added
1963 2006-07-13 Jonathan Chambers <joncham@gmail.com>
1965 * PropertyGridView.cs: Fix keyboard navigation of drop down.
1966 Patch from eno for bug 78558.
1968 2006-07-13 Jackson Harper <jackson@ximian.com>
1970 * TreeView.cs: When an edit is finished make sure that the
1971 selected node is visible.
1972 - When setting the top/bottom use the scrollbars is_visible, so
1973 everything will be set correctly even if the tree isn't visible
1976 2006-07-13 Jackson Harper <jackson@ximian.com>
1978 * ComboBox.cs: Revert the item->index part of my previous patch.
1979 * TreeView.cs: Use LostFocus instead of Leave for detecting when
1980 the edit box has lost focus (duh).
1981 - Just make the edit box not visible when we get return, that will
1982 take the focus, which will call EndEdit
1983 * TreeNode.cs When we start editing, notify the treeview.
1985 2006-07-12 Jackson Harper <jackson@ximian.com>
1987 * ComboBox.cs: Clear out old items before setting the item list.
1988 This prevents databound controls from having their items added
1990 - Switch the combobox to use indices whereever possible instead of
1991 using Item's. This allows usto navigate through lists that have
1992 more then one item with the same string value (ie a, b, b, a).
1993 - Scroll the listboxes scrollbar when a non visible item is
1995 - Allow keypress to cycle through all the possible values. For
1996 example if you have b1, b2, b3 and hold down the B key all the
1997 values will be cycled through.
1999 2006-07-12 Jackson Harper <jackson@ximian.com>
2002 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2003 this using the internal methods.
2004 * Control.cs: Add OnGotFocusInternal. A new method that allows
2005 controls to "override" OnGotFocus and change focus behavior if
2007 - Same thing for LostFocus
2008 * ComboBox.cs: Pass off focus to the text control properly.
2010 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
2012 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2013 * FolderBrowserDialog.cs: Almost a complete rewrite.
2014 - Better support for Environment.Specialfolders
2015 - Added support for MWFVFS
2016 - Made setting SelectedPath work
2018 2006-07-12 Jackson Harper <jackson@ximian.com>
2020 * Control.cs: Optimze getting all the controls.
2022 2006-07-11 Jackson Harper <jackson@ximian.com>
2024 * ContainerControl.cs: Override SETFOCUS in the container control,
2025 so that it is not selected on mouse click.
2027 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2029 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
2030 Hopefully we will have a better way once all of focus is complete.
2032 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2034 * ThemeWin32Classic.cs: Commented out some debug code and fixed
2035 a compile error with csc.
2037 2006-07-11 Jackson Harper <jackson@ximian.com>
2039 * Control.cs: When hiding a control only select the next control
2040 if the current control was focused.
2041 - Don't handle enter/leave when setting/killing focus, this is
2042 done by the container control.
2043 - Remove is_selected, it's not needed anymore.
2044 - Add utility methods for selecting a child control, and for
2045 firing the Enter/Leave events.
2046 * ContainerControl.cs: When a control is activated fire the
2048 - Don't wrap when processing the tab key, so that focus can be
2049 moved outside of the container.
2050 - Use the correct active control
2052 2006-07-11 Jackson Harper <jackson@ximian.com>
2054 * ComboBox.cs: Remove some debug code that was blinding me.
2055 * UpDownBase.cs: These controls actually aren't implicit, they are
2056 visible to the user.
2058 2006-07-10 Chris Toshok <toshok@ximian.com>
2060 * DataGrid.cs: move back to the is_adding boolean field. god i
2061 hate this is_editing/is_adding/is_changing stuff.
2063 2006-07-10 Chris Toshok <toshok@ximian.com>
2065 * DataGridTableStyle.cs: just check if the property type is bool.
2066 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2067 Don't use CanRenderType.
2069 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2070 if our text == NullText. Remove CanRenderType.
2072 * DataGridBoolColumn.cs: nuke CanRenderType.
2074 * DataGrid.cs: reenable some code to end the current edit inside
2075 of set_CurrentCell. This fixes the other 1.1.16 regression.
2076 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
2077 Also, remove the visible_row_count arg from CalcRowHeaders, since
2078 we don't need to worry about the actual height of the area.
2080 2006-07-10 Chris Toshok <toshok@ximian.com>
2082 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
2085 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
2086 the real sense of the IsInEditOrNavigateMode property (true =
2087 navigate, false = edit). Also, update OnKeyPress to reflect this.
2089 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
2090 column style exists, we still need to set its property descriptor
2091 to match up with our list manager.
2093 2006-07-10 Chris Toshok <toshok@ximian.com>
2095 * ThemeWin32Classic.cs: implement the new row/header painting
2096 approach. The parent row painting will likely go away and
2097 replaced with label controls, but the rest seems to work ok (and
2100 * Theme.cs: change the way we draw datagrid rows. we don't draw
2101 the row headers as a block now. Instead we draw them in the
2102 normal draw-row loop. Add some calls for drawing parent rows and
2105 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
2106 a default table style. Set the defaults from ThemeEngine.Current,
2107 not SystemColors. Fix lots of misc issues with property setters.
2109 * DataGrid.cs: move loads of style information out of this class
2110 as it's being duplicated with DataGridTableStyle. keep track of a
2111 special DataGridTableStyle for the properties we used to mirror
2112 here. Switch all the style properties to access this table style
2113 instead of instance fields of this class. Also add a internal
2114 class to represent parent rows (more needs to be stored here, like
2115 the selection state from the parent table, as well as the
2116 expansion state.) Also, for datasources with relations, do the
2117 right thing for collapse/expand, and add support for the
2118 navigation/parent row buttons.
2120 Lastly, fix the crash in the 1.1.16 build.
2122 * GridTableStylesCollection.cs: make the explicit interface
2123 implementations call the class's methods as opposed to duplicating
2126 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
2127 0 so the text doesn't jump around when we move the cursor.
2129 2006-07-10 Jackson Harper <jackson@ximian.com>
2132 * ListBox.cs: Match MS's ToString (this makes debugging focus
2133 stuff infinitely easier).
2135 2006-07-10 Jackson Harper <jackson@ximian.com>
2137 * Control.cs (SelectNextControl): When checking the control's
2138 parent use this instead of ctrl.parent so that null can be passed
2139 to SelectNextControl. (I have unit tests for this).
2140 - Remove unused var.
2142 2006-07-10 Chris Toshok <toshok@ximian.com>
2144 * CurrencyManager.cs: correct one regression, the removal of the
2145 finalType field. Also, add a MonoTODO on CanAddRows, implement
2146 Refresh() correctly, and fix some event emission in
2149 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
2151 * FileDialog.cs: Don't use brackets for new folders if they exist
2152 under *nix. Instead use -(number of existing folders +1).
2154 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
2157 - Fixed really nasty bug #78771
2158 - Don't block the whole GUI when reading directories with a lot of
2159 entries. Use an other thread instead and call BeginInvoke to
2160 update the ListView in MWFFileView
2162 2006-07-07 Chris Toshok <toshok@ximian.com>
2164 * Control.cs (Dispose): release any Capture when disposing.
2166 2006-07-07 Chris Toshok <toshok@ximian.com>
2168 * LinkLabel.cs (Select): if we chain up to the parent, set
2169 focused_index to -1 so we'll search for the first available link
2170 the next time the user tabs into us. Also, if the direction is
2171 backward and focused_index == -1, start the search from the last
2174 2006-07-07 Chris Toshok <toshok@ximian.com>
2176 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
2177 is beyond the end of the text, don't do anything.
2178 (CreateLinkPieces): set our ControlStyles.Selectable based on
2179 whether or not we have any links.
2180 (Link.Invalidate): use a loop instead of foreach.
2181 (Link.set_Start): null out owner.sorted_links so it'll be
2182 recreated by CreateLinkPieces.
2184 2006-07-06 Chris Toshok <toshok@ximian.com>
2186 * LinkLabel.cs: revert the SetStyle change.
2188 2006-07-06 Chris Toshok <toshok@ximian.com>
2190 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
2191 (OnEnableChanged): s/Refresh/Invalidate
2192 (OnGotFocus): if we have a focused index already, refocus it (so
2193 if we mouse out/in to the window it'll focus the right link).
2194 (OnKeyDown): move the tab handling out of here.
2195 (OnLostFocus): don't set focused_index to -1, so we can refocus it
2197 (OnMouseDown): don't Capture here - Control handles it. Also,
2198 focus the active link.
2199 (OnMouseUp): don't deal with Capture.
2200 (OnPaintBackgroundInternal): remove.
2201 (OnTextAlignChanged): CreateLinkPieces before calling the
2202 superclass's method.
2203 (OnTextChanged): call CreateLinkPieces before calling superclass's
2205 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
2207 (Select): implement this, moving the selection between different
2208 links, and call parent.SelectNextControl if we don't have another
2209 link to focus in the given direction.
2210 (CreateLinkPieces): call Invalidate instead of Refresh.
2212 2006-07-06 Chris Toshok <toshok@ximian.com>
2214 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
2215 new LinkLabel internals.
2217 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
2218 over pieces looking for active/focused/etc links. also, deal with
2219 runs of text (and links) with embedded \n's in them, and use
2220 MeasureCharacterRanges instead of MeasureString to figure out the
2221 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
2224 2006-07-04 Jackson Harper <jackson@ximian.com>
2226 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
2227 XKB or key auto repeat, do it manually. Without key auto repeat,
2228 when a key is held down we get key press, key release, key press,
2229 key release, ... with auto repeat we get key press, key press, key
2230 press ..., and then a release when the key is actually released.
2232 2006-07-03 Jackson Harper <jackson@ximian.com>
2235 * ThemeWin32Classic.cs: Tabs do not obey normal background color
2236 rules, they are always control color regardless of the background
2239 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
2241 * FileDialog.cs: Added internal class MWFConfig.
2242 Removed Registry support and replaced it with support for the new
2243 MWFConfig class. See MWFConfig comments for more information.
2245 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
2247 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
2248 rectangle. Added some patches from eno from bug #78490 and fixed
2249 the arrow position for small up and down CPDrawScrollButtons.
2251 2006-06-30 Jackson Harper <jackson@ximian.com>
2253 * InternalWindowManager.cs: Remove some debug code.
2254 * Form.cs: When an MdiParent is set to null, the window is
2255 "detatched" and becomes a normal window.
2256 * MdiClient.cs: Don't bring the new child form to the front until
2257 it is activated (setting it as active does this), this makes the
2258 previously active forms titlebar get redrawn as inactive.
2260 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
2262 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
2265 2006-06-29 Mike Kestner <mkestner@novell.com>
2267 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
2268 arrow in keynav state. Fixes #78682.
2270 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
2272 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
2273 order (fixes #78393)
2275 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
2277 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
2278 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
2279 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
2280 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
2281 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
2282 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
2283 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
2284 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2285 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2286 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2287 enumerations (FlagsAttribute, SerializableAttribute, added/removed
2290 2006-06-28 Mike Kestner <mkestner@novell.com>
2292 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2294 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
2297 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2298 item lines from other area (It also makes BackColor consistent and
2299 compatible with .NET). Fixed bug #78564.
2301 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
2303 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2304 Patch from Eno for #78555.
2306 2006-06-27 Chris Toshok <toshok@ximian.com>
2308 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2310 * DataGridColumnStyle.cs: same.
2312 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2314 * DataGridDrawingLogic.cs: nuke.
2316 2006-06-27 Chris Toshok <toshok@ximian.com>
2318 * DataGridTableStyle.cs: clean up the constructors, and build the
2319 list of child relations for this table. I have no idea if this is
2320 where we should be doing it (it probably isn't), but since we're
2321 already iterating over the properties..
2323 * DataGrid.cs: add row resizing. for now we add a DataGridRow
2324 struct and array for keeping track of row information, similar to
2325 what's shown in a hack on
2326 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2328 * Theme.cs: be consistent about the naming of DataGrid methods,
2329 prefering ColumnWidths and RowHeights over columnsWidths and
2332 * ThemeWin32Classic.cs: same, and also add support for variable
2333 sized rows (and the +/- expansion icons for related rows).
2335 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2337 * TextBoxBase.cs: Applied Eno's patch from #78660
2339 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2341 * Form.cs (ScaleCore): We don't want to scale our form if it's
2342 state is minimized or maximized, but we still need to scale our
2343 child windows. Also, added try/finally block to ensure layout
2344 gets reset (Fixes #78697)
2346 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2348 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2350 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2352 * Form.cs: Fixed c+p error and added check to resize form if minimum
2353 size is bigger than current size (Fixes #78709)
2355 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
2357 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2359 2006-06-26 Mike Kestner <mkestner@novell.com>
2361 * ComboBox.cs: only do Keypress handling in the combo when there
2362 are items in the collection. Fixes #78710.
2364 2006-06-26 Chris Toshok <toshok@ximian.com>
2366 * Binding.cs: make this work bi-directionally. also, clear up
2367 other mixups between Push/Pull Data (e.g. we're supposed to pull
2368 data when validating).
2370 * BindingManagerBase.cs: trim some fully qualified collection
2373 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2375 2006-06-23 Chris Toshok <toshok@ximian.com>
2377 * PropertyManager.cs: It appears (according to the unit tests)
2378 that PropertyManager doesn't use
2379 PropertyDescriptor.AddValueChanged to track propery value changes
2380 in its datasource, but uses the same scheme as Binding, where it
2381 looks for a <Property>Changed event and binds to it.
2383 Also, according to the docs, IsSuspended always returns false for
2384 a property manager with a non-null datasource.
2386 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2388 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2389 need to update the actual DialogResult. (Fixes #78613)
2391 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2393 * Form.cs (ShowDialog): Release any captures before running the
2394 new message pump (fixes #78680)
2396 2006-06-22 Mike Kestner <mkestner@novell.com>
2398 * ListView.cs: Layout column widths properly in details mode even
2399 if HeaderStyle.None is set. Fixes #78691.
2401 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2403 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2405 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2407 * Control.cs (ContainsFocus): Using new driver method to get focused
2408 window, instead of trying to use internal tracking var, which can
2409 recursion issues (Fixes #78685)
2410 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
2411 XplatUIWin32.cs: Added GetFocus method to return focused window
2413 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2415 * ColorDialog.cs: when the mouse button is pressed inside the color
2416 matrix, don't let the cursor move out of it until the button is
2417 released, which is the behavior on windows. Changed 'colours' by
2418 'colors' to use the same word consistently.
2420 2006-06-21 Chris Toshok <toshok@ximian.com>
2422 * DataGrid.cs: add in some basic navigation stuff (navigating to a
2423 child relation and back, using a stack). Also, remove
2424 GetDataSource and the code that calls it - it's not needed. Also,
2425 track CurrencyManager.ListName's removal.
2427 2006-06-21 Chris Toshok <toshok@ximian.com>
2429 * CurrencyManager.cs: push some of the original type checking from
2430 BindingContext.CreateBindingManager to here, and remove some of
2431 the finalType stuff. Need more tests to make sure I've got the
2432 ListName part right, and we might need more in SetDataSource.
2434 * PropertyManager.cs: add a ctor that takes just the datasource,
2435 and no property name. Make SetDataSource work with a null
2436 property_name, and make Current return the data_source if the
2437 property descriptor is null. this makes 'string foo = "hi";
2438 BindingContext[foo].Current' return "hi" as it should.
2440 * RelatedCurrencyManager.cs: make this code more generic - there's
2441 no reason the parent manager has to be CurrencyManager, and
2442 there's no reason to pass the DataRelation. It suffices to use a
2443 BindingManagerBase and PropetyDescriptor.
2445 * RelatedPropertyManager.cs: make a similar change here.
2447 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2448 flower I knew it could be.
2450 2006-06-20 Chris Toshok <toshok@ximian.com>
2452 * PropertyManager.cs: the PropertyChangedHandler is invoked when
2453 data in the source has changed and we need to update the control,
2454 so s/PullData/PushData.
2456 * CurrencyManager.cs: Refresh is meant to update the control from
2457 data in the datasource. So, s/PullData/PushData.
2459 * BindingContext.cs: add more ugliness (we weren't handling the
2460 case where data_source = DataTable and data_member = column_name).
2462 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
2463 from the perspective of the datasource. PullData pulls from the
2464 control, PushData pushes to the control.
2466 2006-06-20 Chris Toshok <toshok@ximian.com>
2468 * BindingContext.cs: rewrite the CreateBindingManager code to
2469 handle navigation paths more or less properly. This could
2470 definitely stand some more work, in particular to push the
2471 recursion up to the toplevel. But that relies on fixes in other
2472 places (System.Data comes to mind).
2474 Also, move to a flat hashtable (and encode the twolevel nature of
2475 the dictionary into the hash key). This lets us implement the
2476 IEnumerable.GetEnumerator method.
2478 * RelatedCurrencyManager.cs: new class. Update our view based on
2479 our relation and our parent CurrencyManager's position.
2481 * CurrencyManager.cs: split out some logic from the ctor into
2482 SetView, so it can be called from the new RelatedCurrencyManager
2485 * RelatedPropertyManager.cs: new class. Update our datasource
2486 based on the position of our parent CurrencyManager.
2488 * PropertyManager.cs: split out some logic from the ctor into
2489 SetDataSource, so it can be called from the new RelatedDataSource
2490 subclass. Also, make the Current getter return the value
2491 of the PropertyDescriptor, not the data_source.
2493 * Binding.cs: no need to duplicate the string splitting code here.
2495 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2498 - set_Enabled: OnEnabledChanged is not called if the inherited state
2499 of the control is not altered, even though we might be changing the
2500 internal state of the control (#78458)
2501 - set_Enabled: (Re)Moved the enabling/disabling of the window to
2502 OnEnabledChanged, to allow easy altering of any child window state
2503 - OnEnabledChanged: Added code to enable/disable driver window state
2504 - OnParentEnabledChanged: Instead of firing the event, call
2505 OnEnabledChanged, which will fire the event and also a) set driver
2506 window state and pass the enabled state to any grandchildren (#78458)
2508 2006-06-19 Jackson Harper <jackson@ximian.com>
2510 * InternalWindowManager.cs: We don't set the cursor explicitly
2511 thats done via the response to NCHITTESTs.
2512 - Don't need to adjust for titlebar heights anymore, the
2513 coordinates are coming in the correct coordinates now (see peters
2517 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2519 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2520 being translated relative to whole window, instead of client window.
2521 That caused broken offsets on mouseclick (and caused gas for our
2522 InternalWindowManager)
2524 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2527 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2528 - Undo(): Added replay of cursor move on DeleteChars action; added
2529 calling Undo() again if a recorded cursor move is invalid (to
2530 ensure that some action is performed on Undo)
2531 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2533 2006-06-16 Jackson Harper <jackson@ximian.com>
2535 * MdiClient.cs: Instead of just sizing maximized windows when
2536 there is a resize we also have to adjust the Y of minimized
2537 windows, so they stay pinned to the bottom of the mdi container.
2538 - Eliminate separate tracking of the active control, we can just
2539 get this from the controls collection.
2540 - Paint the decorations for the newly activated titlebar so we get
2542 * InternalWindowManager.cs:
2543 * ThemeWin32Classic.cs: Minimized windows get all three buttons
2544 even if they are a tool window.
2546 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2548 * TextControl.cs (Undo): Handle non-existent cursor locations in the
2549 undo buffer, these can happen when text was deleted and the cursor
2550 was recorded first. Since we will also have a recorded cursor
2551 after the delete this is not an issue. (Fixes #78651)
2553 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
2555 * AccessibleObject.cs: Remove dependence on Control.is_selected;
2556 instead properly track control states internally (allows us to
2557 remove is_selected from Control)
2559 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2561 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2562 whose width is not a multiple of 8.
2564 2006-06-13 Jackson Harper <jackson@ximian.com>
2566 * MdiClient.cs: Only maximize the next child if the current one
2569 2006-06-13 Chris Toshok <toshok@ximian.com>
2571 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2572 modified. Also, guard against grid or grid_drawing being null in
2575 * DataGrid.cs: Reformat tons of getters/setters. In the
2576 DataMember setter, just call SetNewDataSource instead of
2577 duplicating some of its functionality. In SetNewDataSource, don't
2578 check ListManager for null, since the property getter creates the
2581 * DataGridTableStyle.cs: don't set TableStyle or call
2582 SetDataGridInternal on the column here, it's done in
2583 GridColumnStylesCollection.Add.
2585 * GridColumnStylesCollection.cs: fix all the explicit interface
2586 implementations to just call our methods. Nuke AddInternal() and
2587 move the body of it to Add(). Also, add a call to
2588 column.SetDataGridInternal to Add().
2590 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2591 base()+duplicate code. Also, use the Format property instead of
2592 format to generate an Invalidate ala MS. Lastly, create the
2593 textbox here, unconditionally.
2594 (set_Format): call Invalidate.
2595 (get_TextBox): no need to call EnsureTextBox.
2596 (Commit): remove the message box.
2597 (Edit) remove the call to EnsureTextBox.
2598 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2599 (EnterNullValue): no need to check textbox for null.
2600 (HideEditBox): no need to check textbox for null.
2601 (SetDataGridInColumn): add the textbox to the grid's controls.
2602 (EnsureTextBox): nuke.
2604 2006-06-13 Jackson Harper <jackson@ximian.com>
2606 * MdiWindowManager.cs: Hook up to the maximized menus paint event
2607 and redraw the buttons when needed. Unhook when the window is
2609 * MainMenu.cs: Add an internal Paint event, the mdi window manager
2610 needs this so that it can redraw its buttons when the menu is
2612 * InternalWindowManager.cs:
2613 * Form.cs: The method order has changed for DrawMaximizedButtons,
2614 so that it can be a PaintEventHandler.
2616 2006-06-13 Jackson Harper <jackson@ximian.com>
2618 * MdiClient.cs: When we close a maximized mdi window, the next mdi
2619 window is activated and maximized, even if it wasn't before.
2620 - When a new window is activated repaint the decorations of the
2621 old one, so that it no longer has the Active "look" (the blue
2623 * InternalWindowManager.cs: Open up CreateButtons to base classes
2624 so they can recreate the buttons on state changes.
2625 - If a window is maximized give it all three buttons
2626 * MdiWindowManager.cs: Create the titlebar buttons when the state
2627 is changed, this is needed because a toolwindow will not have all
2628 three buttons until it is maximized.
2630 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
2632 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2635 2006-06-12 Jackson Harper <jackson@ximian.com>
2637 * KeysConverter.cs: Make sure we handle the Ctrl special case
2638 if its the only key.
2640 2006-06-12 Jackson Harper <jackson@ximian.com>
2642 * Theme.cs: Add a method to get the size of a managed window
2644 * InternalWindowManager.cs: Remove the ButtonSize property, this
2645 should be retrieved from the theme.
2646 * MdiWindowManager.cs: Get the button size from the theme
2647 * ThemeWin32Classic.cs: Make the method to get the managed window
2648 titlebar button size public.
2649 - Handle the different button sizes of maximized toolwindows
2650 (should match any maximized window).
2651 - Get the titlebar height from the theme, not the WM (which gets
2654 2006-06-12 Jackson Harper <jackson@ximian.com>
2656 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2657 event down to the mdi window manager.
2658 - Expose some extra stuff to base classes
2659 - Make sure to end the Capture on an NC Mouse up, so that we can
2660 get double clicks properly, and the sizing doens't stick.
2661 - When doing PointToClient contain it in the workable desktop
2662 area, this prevents windows from changing size when the cursor is
2663 pulled outside of the working area while sizing.
2664 * MdiWindowManager.cs: When we get a double click maximize the
2666 - Reset the cursor after handling mode changes.
2668 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
2670 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
2671 current desktop, instead of just assuming a 0, 0 origin. This
2672 is needed for our internal window manager, to know the top
2673 margin of the desktop
2675 2006-06-12 Chris Toshok <toshok@ximian.com>
2677 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2678 we need this to get rid of the selected background in the bool
2680 (CancelEditing): move the ConcedeFocus call to above the Abort
2681 call. Also, set is_changing to false and invalidate the row
2682 header if we were changing before.
2683 (ProcessKeyPreviewInternal): remove, since noone outside this
2684 class calls it anymore. Roll the code into ProcessKeyPreview.
2685 (EndEdit): remove the internal version.
2686 (InvalidateCurrentRowHeader): make private.
2688 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
2689 Keys.Escape handling (and with it the last call to
2690 DataGrid.EndEdit from outside the class.)
2693 2006-06-12 Chris Toshok <toshok@ximian.com>
2695 * DataGridTextBox.cs (.ctor): isedit defaults to false.
2696 (OnKeyPress): set isedit to true.
2697 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
2698 already handled by the grid.
2700 * DataGrid.cs (set_CurrentCell): more work here. it's still not
2702 (set_DataSource): SetDataSource always returns true, so stop
2703 putting it in an if statement.
2704 (EndEdit): get rid of some {}'s
2705 (ProcessGridKey): return true in case Keys.Escape.
2706 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2707 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2708 PositionChanged, stopped connecting to CurrentChanged.
2709 (GetDataSource): simplify this a bunch.
2710 (SetDataSource): change return type from bool to void.
2711 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2712 to this, and make sure we don't set ListManager.Position inside
2714 (OnListManagerItemChanged): if we're passed an actual index,
2717 * CurrencyManager.cs (set_Position): don't call PullData here.
2719 2006-06-09 Jackson Harper <jackson@ximian.com>
2721 * TreeNode.cs: Recalculate the visible order before doing the
2722 Expand/Collapse Below calls, because those calls generate an
2724 - Reduce calls to the TreeView property, which is mildly expensive
2725 by using a local var.
2726 * Form.cs: Layout the MDI child windows when creating the parent
2728 - Don't use the internal constructor anymore
2729 * MdiClient.cs: use the parent form width/height (if available)
2730 when laying out the child windows, we do this because the
2731 mdiclient isn't docked yet when the initial layout is done.
2732 - Don't need an internal constructor anymore.
2734 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2736 * FileDialog.cs: handle access errors when trying to create a folder
2737 or changing to a directory. No need to initialize out parameters.
2739 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2741 * FileDialog.cs: Append a number when creating a new folder if the
2742 folder already exists (use parenthesis instead of square brackets)
2744 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2747 - Disabled registry support for windows and added better registry
2748 error checking for other systems (need to investigate why it
2749 works perfectly on my system)
2750 - If a folder already exist show an error MessageBox instead of
2751 trying to create an indexed name.
2752 - Fixed a non intentional typo.
2754 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2756 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2758 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2760 * FileDialog.cs: When creating a new folder don't crash if the
2761 folder already exists.
2763 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2765 * FileDialog.cs: Allmost a complete rewrite.
2766 - added a "virtual" file system that handles the differences
2767 between unix and windows file systems (especially the directory
2768 structure). Moved most of the directory and file handling code
2770 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
2771 UnixFileSystem and FSEntry.
2772 - Recently used folder/directory, size, location and used file names
2773 (file name ComboBox) are now stored in the registry and get read
2774 before the dialog shows up (fixes part 6 of bug #78446).
2775 - Creation of new folders/directories is now possible (context menu
2776 or ToolBar). Added TextEntryDialog for this that fills in the gap
2777 until ListView.LabelEdit works.
2778 - Fixed cursor handling (bug #78527) and focus handling for
2780 - Various "Search in" ComboBox enhancements. The content of the
2781 dropdown listbox now almost matches ms.
2782 - Changed the behaviour when the user switches to SpecialFolder
2783 Recent to show the ListView in View.Details.
2784 - Beside using the ToolBar to change the View property of the
2785 file ListView it is now possible to use the context menu too.
2787 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2789 * ComboBox.cs: Don't create a new ObjectCollection when an item
2790 gets inserted. Just insert the item in the existing object_items
2793 2006-06-08 Jackson Harper <jackson@ximian.com>
2795 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
2796 that the treeview and root node checks are done also, this fixes a
2797 regression i caused in the unit tests.
2799 2006-06-07 Wade Berrier <wberrier@novell.com>
2801 * RichTextBox.cs: More ISO8859-1 -> unicode
2803 2006-06-07 Mike Kestner <mkestner@novell.com>
2805 * ComboBox.cs : use items to hold highlight/selection so that
2806 collection insertions don't require synchronization.
2808 2006-06-07 Jackson Harper <jackson@ximian.com>
2810 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
2811 routine. We now always keep the sized edge at the cursor instead
2812 of computing movement and adjusting rects. There is one buglet
2813 with this method though when the cursor is moved over area that
2814 the window can not expand too (such as the toolbars on the desktop).
2816 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2818 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
2819 here. Fixes crash on startup in AlbumSurfer.
2821 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
2823 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
2826 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2828 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
2829 statement to avoid calling XNextEvent which will block if another thread
2830 took the event that we were expecting. Fixes bug #78605.
2832 2006-06-07 Mike Kestner <mkestner@novell.com>
2834 * ListView.cs : isolated checkbox clicking from the selection logic.
2835 Toggle check state on item doubleclicks. Really fixes #78454 part2.
2837 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2839 * Form.cs: Check that the value passed to Form.DialogResult
2840 is a valid enum value.
2842 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2844 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
2845 Computer'. Clicking it in the network view goes to 'My Computer'.
2846 Added CIFS filesystem type. Display the mount point of filesystems.
2847 Avoid duplicate mount points (happens for me with CIFS);
2849 2006-06-06 Jackson Harper <jackson@ximian.com>
2851 * InternalWindowManager.cs: Draw the maximized windows buttons
2854 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2856 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
2857 all other dialogs. Fixes bug #78585.
2859 2006-06-06 Mike Kestner <mkestner@novell.com>
2861 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
2862 Only invalidate checkbox on checkstate changes to avoid flicker.
2863 * ListBox.cs : avoid unselect/select when clicking selected item.
2864 avoid reselection flicker for already multiselected items.
2867 2006-06-06 Jackson Harper <jackson@ximian.com>
2869 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
2870 the parent form so that the menu is removed if needed.
2872 2006-06-06 Mike Kestner <mkestner@novell.com>
2874 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
2875 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
2877 2006-06-06 Mike Kestner <mkestner@novell.com>
2879 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
2882 2006-06-06 Jackson Harper <jackson@ximian.com>
2884 * Control.cs: Use the property (instead of the field) to get the
2885 default cursor so it is instantiated correctly.
2886 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
2887 resizes so we need to manually repaint the window decorations here.
2888 - Set the titlebar button locations as soon as they are created,
2889 otherwise they are not set correctly on win32.
2891 2006-06-06 Chris Toshok <toshok@ximian.com>
2893 * CurrencyManager.cs (set_Position): call PullData before
2895 (AddNew): after calling IBindingList.AddNew, update our
2896 listposition, and call OnCurrentChanged/OnPositionChanged (without
2898 (OnCurrentChanged): remove the call to PullData from here.
2899 (OnItemChanged): remove the call to PushData from here.
2900 (OnPositionChanged): change the test from == null to != null to
2901 match the other methods.
2902 (ListChangedHandler): the grossest part of the patch. Implement
2903 this such that it passes the unit tests in CurrencyManagerTest and
2904 the output more or less matches that of MS's implementation.
2906 2006-06-06 Mike Kestner <mkestner@novell.com>
2908 * ListView.cs : only update check state on single click.
2909 * ThemeWin32Classic.cs : fix focus drawing for details view without
2910 fullrowselect. Fixes #78454.
2911 * XplatUIX11.cs : fix for double click emission.
2913 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
2915 * PropertyGridView.cs : Applied Atsushi's patch to fix
2916 font dialog bug (#78197).
2918 2006-06-05 Jackson Harper <jackson@ximian.com>
2920 * TreeNode.cs: Compute the next node for expanding/collapsing
2921 correctly. We now factor in nodes without a NextNode
2922 correctly. (Fixes somes cases in nunit-gui).
2923 * InternalWindowManager.cs: Set the bounds when updating the
2924 virtual position of a tool window.
2926 2006-06-05 Chris Toshok <toshok@ximian.com>
2928 * DataGrid.cs: rename cached_currencymgr to list_manager.
2929 (set_CurrentCell): move SetCurrentCell code here, and clean it up
2931 (CurrentRow, CurrentColumn): single accessors so we can make the
2932 cursor movement code a lot easier to understand.
2933 (CurrentRowIndex): implement this in terms of CurrentRow.
2934 (BeginEdit): clean this up a bit.
2935 (CancelEditing): sort out the is_editing/is_changing/is_adding
2937 (EndEdit): minor changes.
2938 (OnKeyDown): add a comment about a (most likely) unnecessary
2940 (OnMouseDown): cancel editing when we click on a row header. And
2941 use the CurrentRow setter, not CurrentCell.
2942 (ProcessDialogKey): directly call ProcessGridKey.
2943 (UpdateSelectionAfterCursorMove): factor out this common block of
2944 code (it's used everywhere that we move the cursor by updating row
2946 (ProcessGridKey): pretty substantial overhaul. Use the
2947 CurrentRow/CurrentColumn properties to make the code a lot more
2948 readable. Only use the CurrentCell property when we have to
2949 modify both row and column at once. Tab behavior is still broken,
2950 and Delete is untested.
2951 (Select): if we have no selected rows, set selection_start to
2953 (EditCurrentCell): rename EditCell this. It was only ever invoked
2954 with CurrentCell as the arg, so drop the arg and rename it.
2956 * DataGridColumnStyle.cs: clean up the constructors a little, and
2957 drop CommonConstructor().
2959 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
2960 actually get notified when the user hits it.
2961 (ProcessKeyMessage): *substantially* simplify this method.
2962 There's no reason (that I can see) for the textbox to be making
2963 calls into the datagrid at all. Remove all of them but the ones
2964 for Enter handling. those will take some more work.
2966 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
2967 calling HideEditBox.
2968 (HideEditBox): if we have an active textbox, render it invisible
2969 without causing a re-layout of the datagrid.
2971 2006-06-05 Mike Kestner <mkestner@novell.com>
2973 * ListView.cs : fix NRE crasher when focuseditem is cleared by
2974 collection changes by resetting it to Items[0]. Fixes #78587.
2976 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2978 * MessageBox.cs: if the height of the text is larger than the icon_size,
2979 use that. Fixes bug #78575.
2981 2006-06-05 Jackson Harper <jackson@ximian.com>
2983 * TreeView.cs: Fix line drawing when scrolling. To do this each
2984 node is basically responsible for drawing its entire horizontal
2985 area. When drawing a node it draws its parent node lines if
2987 - Adjust the clip area to the viewport rectangle
2988 - Fix Left/Right key handling to match MS. (It expand/collapses
2989 and moves to parents/first child but does not move selection to
2991 - Fix SetTop to work with new bound calculation code
2992 - When scrollbars are no longer needed we need to reset scrolling
2993 vars and recalculate the visible order so the redraw is correct
2994 * TreeNode.cs: We can't expand/collapse nodes with no children.
2996 2006-06-03 John Luke <john.luke@gmail.com>
2998 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
2999 so the colors work without dev packages
3001 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
3004 - Select: Implemented to just use activate. Seems to match MS
3005 behaviour closest. Documented to only do actual control walking
3006 based on it's parameters if in a container control so I moved
3008 - Removed selection check logic from our internal Select() method
3009 * ContainerControl.cs:
3010 - Select: Moved selection logic from Control here, since MS documents
3011 that containers obey the bool arguments. No longer calling base
3013 2006-06-02 Jackson Harper <jackson@ximian.com>
3015 * TreeView.cs: If the selected node isn't changed when we get
3016 focus update the previously selected node so that we see the
3019 2006-06-02 Mike Kestner <mkestner@novell.com>
3021 * ComboBox.cs: restructure grab and general mouse event handling.
3022 Make the composite control raise mouse events like it was a single
3023 control for leaves/enters/motion/up/down events. fix dropdown list
3024 coordinate mangling and refactor it into the scrollbar subclass to
3025 reduce code duplication. Fixes #78282 #78361 and #78457.
3027 2006-06-02 Mike Kestner <mkestner@novell.com>
3029 * ScrollBar.cs: remove Capture setting/clearing, as it happens
3030 automatically in the Control.WndProc.
3032 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3034 * FileDialog.cs: fix crash when running SharpChess, which sets the
3035 FilterIndex to 2 with only one Filter.
3037 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3039 * ToolBar.cs: add SizeSpecified property.
3040 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3041 try to figure out our real size, otherwise fallback to what the
3044 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3046 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3047 * Control.cs (WndProc): MS always calls the DefWndProc to pass
3050 2006-06-01 Mike Kestner <mkestner@novell.com>
3052 * ListView.cs: revamp the focus management in ListView. It still
3053 causes churn of LostFocus/GotFocus emissions on clicks, but it's
3054 better than not handling focus at all. Will revisit when pdb feels
3055 the general focus handling is solid. Fixes #78526.
3057 2006-06-01 Jackson Harper <jackson@ximian.com>
3059 * TreeView.cs: Set the default border style in the constructor.
3060 - Move painting to use OnPaintInternal instead of capturing
3061 WM_PAINT, this is the correct way of doing things
3062 - UpdateBelow shouldn't invalidate the scrollbar area
3063 - Cap the top on update below in case the node was above the top
3064 of the viewport rectangle.
3065 - ExpandBelow and Collapse below need to obey Begin/End Update.
3066 * TreeNode.cs: Make is_expanded internal so the treenode
3067 collection can change it without firing the whole event chain.
3068 * TreeNodeCollection.cs: When clearing all the child nodes make
3069 sure to recalc the visible order.
3070 - Improve algo for remove the top node
3072 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3074 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
3075 SendMessage directly calling window procedures, which in turn might
3078 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3080 * Control.cs: Don't handle WM_SETFOCUS if the same window already
3081 has focus (works around X11 sending a FocusIn after our SetFocus)
3082 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
3084 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
3086 * Mime.cs: Fix for the NET_2_0 build.
3087 NameValueCollection needs StringComparer now.
3089 2006-05-31 Chris Toshok <toshok@ximian.com>
3091 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
3092 return (via an out parameter) the starting X of the column.
3093 (UpdateVisibleColumn): track change to FromPixelToColumn.
3094 (HitTest): add a ColumnResize case here.
3095 (DrawResizeLine): new function, probably poorly named.
3097 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
3098 only need to keep one reference.
3099 (set_ListManager): same.
3100 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
3101 Also, add support for HitTestType.ColumnResize.
3102 (OnMouseMove): add column resize behavior here, and change the
3103 cursor to the correct one as we move around the datagrid.
3104 (OnMouseUp): terminate the column resize if we're resizing.
3105 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
3106 for the current cell.
3107 (ConnectListManagerEvents): use cached_currencymgr.
3108 (DisconnectListManagerEvents): fill this in, using
3110 (SetCurrentCell): remove cached_currencymgr_events handling.
3111 (SetDataMember): only call DisconnectListManagerEvents if
3112 cached_currencymgr is != null.
3113 (SetDataSource): same.
3114 (OnListManagerCurrentChanged): cached_currencymgr_events ->
3117 2006-05-31 Jackson Harper <jackson@ximian.com>
3119 * BindingManagerBase.cs: Remove somedebug code that creeped into
3121 * TreeNode.cs: We get the indent level dynamically right now, so
3122 don't track it as a member.
3123 * TreeNodeCollection.cs: Make sure all nodes added to the list
3124 have parents, treeviews/topnodes setup properly.
3125 - Don't attempt to track indent level.
3127 2006-05-30 Jackson Harper <jackson@ximian.com>
3129 * BindingContext.cs: Create the currency manager tables here.
3130 This allows us to more easily create null tables (when bad data
3131 members are used), and more easily create related currency
3133 * CurrencyManager.cs: All the table creation stuff is done by the
3134 binding context now.
3135 - Current should throw an exception if listposition is -1.
3136 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
3139 2006-05-30 Mike Kestner <mkestner@novell.com>
3141 * ListView.cs: allow reexpansion of zero-width column headers.
3144 2006-05-28 Chris Toshok <toshok@ximian.com>
3146 * CurrencyManager.cs (get_Current): after the late binding
3147 listposition = -1 fix, we need to guard against it here and return
3148 null, otherwise we raise an exception (which is swallowed
3149 elsewhere, and breaks datagrid databinding.)
3151 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3153 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
3154 than WM_SYSKEY, don't throw if get something unexpected (#78507)
3156 2006-05-26 Jackson Harper <jackson@ximian.com>
3159 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
3160 values, it's faster and it's all we care about (we don't care if
3161 the names aren't equal).
3162 * KeyboardLayouts.cs: Eliminate some dead code.
3164 * X11Keyboard.cs: Lazy init keyboard detection.
3165 - Cleanup access modifiers a little.
3167 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3169 * XplatUIX11.cs: Once again, attempting to get layout just right.
3171 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3173 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
3174 the sizes of each link section, that will result in sizes that
3175 match DrawString's layout (Fixes #78391)
3177 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
3179 * FileDialog.cs: If AddExtension property is true autocomplete the
3180 extensions in SaveFileDialog correctly. Fixes bug #78453.
3181 Set MyNetwork and MyComputer to "C:\" for windows. This should
3182 fix part 8 of bug #78446 for now.
3184 2006-05-26 Chris Toshok <toshok@ximian.com>
3186 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
3187 invalidate the current row header if we need to, but presumably
3188 we'll invalidate the row corrsponding to the bounds or
3190 (GridHScrolled): switch back to this method, as it's part of the
3192 (GridVScrolled): same.
3193 (OnMouseWheel): hack up something that more or less works. Call
3194 GridHScrolled/GridVScrolled directly, instead of duplicating much
3196 (EnsureCellVisibility): reinstate a bunch of this code, since we
3197 can't just set the scrollbar Value and expect to do all the work
3198 in the ValueChanged handler. Also, Call Update() after scrolling
3199 in one direction so the other XplatX11.ScrollWindow call has the
3200 proper stuff in the proper places.
3201 (EditCell): set is_editing to true before calling .Edit.
3203 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
3204 don't bother comparing first.
3205 (OnKeyPress): call grid.ColumnStartedEditing before calling
3206 base.OnKeyPress. this will set is_changing and invalidate the row
3207 header if necessary.
3208 (ProcessKeyMessage): for WM_CHAR messages, call
3209 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
3212 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
3213 it's done in the DataGrid.
3214 (NextState): call grid.ColumnStartedEditing, which takes care of
3215 invalidating the row header (and setting is_changing).
3217 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
3218 here. it's done in the DataGrid.
3220 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3222 * Control.cs: allow changing the cursor when the mouse position is
3223 out of bounds but Capture is set.
3224 * LinkLabel.cs: handle the case when the mouse button is pressed on the
3225 linklabel but released somewhere else.
3227 2006-05-25 Jackson Harper <jackson@ximian.com>
3229 * TreeView.cs: When we get focus if there is no selected node make
3231 - Remove some uneeded setup code from Draw.
3232 * TreeNodeCollection.cs: If the tree doesn't have a top node when
3233 a new node is inserted make the new node the top.
3235 * Timer.cs: Use Utc time so that no local time zone stuff needs to
3236 be used (should be faster).
3238 2006-05-25 Chris Toshok <toshok@ximian.com>
3240 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
3241 problem with the last commit.
3243 2006-05-25 Chris Toshok <toshok@ximian.com>
3245 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
3246 need the invalidate call here, while scrolling right-to-left via
3247 the left arrow key (i.e. moving the editing cell while scrolling).
3249 * DataGrid.cs (.ctor): remove the initialization of
3250 ctrl_pressed/shift_pressed. We no longer track them using key
3251 up/down handlers, but by using Control.ModifierKeys. Also, switch
3252 to using ValueChanged handlers on the scrollbars instead of
3253 Scrolled event handlers. This simplifies a bunch of the scrolling
3255 (GridHValueChanged): rename from GridHScrolled, and change it to
3256 work with the new event args.
3257 (GridVValueChanged): same.
3258 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
3259 (OnMouseWheel): actually scroll the datagrid. Don't change the
3261 (ProcessGridKey): correct all the keyboard navigation stuff I
3262 could find. Ctrl up/down/left/right/home/end work now.
3263 (EnsureCellVisibility): correct method name spelling. Also,
3264 simplify this a touch by not explicitly calling the
3265 ScrollToRow/ScrollToColumnInPixels methods. We just set the
3267 (OnKeyUpDG): no need for this method now.
3269 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3271 * LinkLabel.cs: display the OverrideCursor when hovering the label.
3274 2006-05-25 Chris Toshok <toshok@ximian.com>
3276 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
3279 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
3281 * Application.cs: Moved setting of is_modal and closing to before
3282 we create the control, to allow the event handlers called as a
3283 result of creation affect closing. Also removed Gonzalo's previous
3284 change to setting DialogResult, the behaviour has been moved to
3287 - ShowDialog(): Removed explicit creation of the form, let RunLoop
3289 - ShowDialog(): If no dialog result is set, we need to return Cancel
3290 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3291 the close is cancelled
3293 2006-05-25 Jackson Harper <jackson@ximian.com>
3295 * StatusBar.cs: We only need to update the sizes of the other
3296 panels when we have auto size contents. Also we are only updating
3297 the contents of the panel, not the borders, so compensate for the
3298 border width (TODO: get this width from the theme somehow).
3299 * TreeView.cs: Scrollable is true by default
3300 - Use invalidate instead of refresh where needed
3301 - Factor the scrollable value into scrollbar updating
3302 - Update the scrollbars if the Scrollable property is altered
3303 - Update the selected node if its ImageIndex is changed
3304 - Handle null nodes in UpdateNode (mainly so we don't have to
3305 check if selected is null when updating it
3306 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3307 are factored into the visible count
3308 - Use VisibleCount for clarity in the code
3309 - When the font is changed we need to recurse through all the
3310 nodes and invalidate their sizes
3312 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3314 * Application.cs: set the DialogResult to fixed when the main form is
3315 hidden or destroyed while being modal.
3317 2006-05-25 Miguel de Icaza <miguel@novell.com>
3319 * Theme.cs: Use Tangoified messagebox icons.
3321 (GetSizedResourceImage): Also cope with width = 0 and do not
3322 trigger a warning in that case (0 means "give me your icon from
3323 the resouce, no special size needed).
3325 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
3327 * Application.cs: Leave runloop if the the main modal form is
3328 hidden (fixes #78484)
3330 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
3332 * BindingContext.cs : reject null datasource in Contains() and
3334 * CurrencyManager.cs : check data_member validity when data_source
3335 is dataset. When it is late binding, the initial position is -1.
3337 2006-05-24 Jackson Harper <jackson@ximian.com>
3339 * TreeNodeCollection.cs: Dont't recalculate the visible order on
3340 inserted nodes that aren't visible. This changes the
3341 max_visible_order which confuses scrollbar settings.
3342 - Use the enumerator to get the prev node instead of duplicating
3344 * TreeView.cs: Use new method for setting scrollbar values
3345 - Don't set the bounds every time the scrollbar is updated
3346 - When updating below the root node use an invalidate instead of a
3347 refresh to prevent the child controls (scrollbars) from being
3348 refreshed. (UpdateBelow still needs to be reworked anyways).
3349 - Reenable SetBottom now that visible orders are set correctly,
3350 added some debug code incase we ever get bad values there again.
3351 - Set the scrollbar max to 2 less then the max value, this
3352 compensates for the max value being one above the node count, and
3353 for scrollbars adding one extra "notch".
3354 - When drawing image nodes if there is an imagelist we draw the
3355 first image in the list if the supplied image index is out of the
3356 image list's bounds.
3358 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3360 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
3361 we receive a size change from the WM (Fixes #78503)
3363 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3365 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
3366 rectangle (Fixes #78501)
3368 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3371 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
3373 - Fixed MouseMove to no longer switch pressed state unless the left
3374 mouse button is pressed. Atsushi provided the original patch (#78485)
3376 2006-05-24 Jackson Harper <jackson@ximian.com>
3378 * ScrollBar.cs: New internal methods that allow us to change a
3379 couple values on the scrollbar (the most common case is maximum
3380 and large change) without getting multiple invalidates.
3382 2006-05-24 Chris Toshok <toshok@ximian.com>
3384 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3385 (Edit): save off the original state in oldState, and set
3386 grid.is_editing to true.
3387 (OnKeyDown): abort editing if escape is pressed. also, call
3388 NextState if space is pressed.
3389 (OnMouseDown): call NextState.
3390 (NextState): factor out shared code from OnKeyDown and OnMouseDown
3391 here. Also, only invalidate the row header once (on the initial
3392 is_changing switch) to save on redraws.
3394 2006-05-24 Chris Toshok <toshok@ximian.com>
3396 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3397 if the value in the cell is different than it was before. This
3398 keeps us from triggering a layout when we move around a datarid
3399 with a highlighted cell.
3400 (Edit): suspend layout when creating/positining the text box, and
3401 resume passing false so we don't ever actually re-layout.
3402 (ReleaseHostedControl): same.
3403 (EnsureTextBox): reformat slightly, and set WordWrap to false.
3405 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3406 control-key sequences should go to the datagrid - remove that
3407 lock. Also, modify the conditions under which we move between
3408 cells when moving the cursor within a cell, and remove the "this"
3409 and "base" from field accesses. We weren't even consistent, given
3410 they all were in the base class.
3412 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
3414 * Binding.cs : (.ctor)
3415 An obvious NRE fix for BindingTest.CtorNullTest().
3417 2006-05-23 Chris Toshok <toshok@ximian.com>
3419 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3420 them between lines. This fixes some quirks editing cells in the
3423 2006-05-23 Jackson Harper <jackson@ximian.com>
3425 * TreeView.cs: Use begin/end update when doing expand/collapse all
3426 so that we don't get flicker on the scrollbar.
3428 2006-05-23 Jackson Harper <jackson@ximian.com>
3430 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
3431 treenode calculations to be independant of the painting code. To
3432 do this nodes track a visible order which is calculated by the
3434 - Call new methods for expanding/collapsing nodes. These methods
3435 use scrollwindow so we don't have to update everything below the
3437 * TreeView.cs: Refactored drawing and scrolling code. We don't
3438 need to update nodes when drawing anymore or calculate scrollbar
3440 - Added new methods for expanding/collapsing nodes. These methods
3441 use ScrollWindow so as to not have to redraw all the nodes below.
3442 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3443 we add/remove nodes or sort.
3444 - Handle removing the selected and the top node properly.
3446 2006-05-23 Chris Toshok <toshok@ximian.com>
3448 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3449 maybe this should actually happen in the datagrid code?
3450 (EndEdit): no need to invalidate anything, given that
3451 ReleaseHostedControl causes the datagrid to relayout, which
3452 invalidates everything anyway.
3454 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3456 (set_SelectionBackColor): call InvalidateSelection instead of
3458 (set_SelectionForeColor): same.
3459 (BeginEdit): Flesh this out a bit.
3460 (CancelEditing): only do any of this if we're editing/adding.
3462 (OnMouseDown): there's no need to cancel editing here, it's done
3464 (SetCurrentCell): only invalidate the current row header if it's a
3465 different row than the new one.
3466 (ShiftSelection): fix this to work like MS does.
3467 (ResetSelection): factor out the invalidation of selected_rows to
3468 InvalidateSelection.
3469 (SetDataSource): cancel any editing that's going on.
3471 * DataGridColumnStyle.cs
3472 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3473 call the non-interface version.
3475 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3476 header rectangle with the clip rectangle so we don't redraw the
3477 entire header for just a small area. Gets rid of the last flicker
3478 when horizontally scrolling.
3479 (DataGridPaintRow): same.
3481 2006-05-23 Mike Kestner <mkestner@novell.com>
3483 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3484 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
3485 poorly placed checkbox on the MS control. Fixes Alex's unfiled
3486 Critical bug report.
3488 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3490 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3491 and this fixes #78493
3493 2006-05-23 Miguel de Icaza <miguel@novell.com>
3495 * Theme.cs (GetSizedResourceImage): Scale images if the proper
3498 * FileDialog.cs: Do not change the background for the side bar as
3499 it wont work nicely with the theme, and also reduces the artifacts
3500 in rendering the icons (which I want to fix too).
3502 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3503 resources, not resgen resources.
3505 (PlatformDefaultHandler): Pull images using the new API.
3507 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3509 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3510 a reference to the hwnd and will not remove it unless there are
3511 no pending exposures (fixes #78341)
3512 * XplatUI.cs: Improved debug
3514 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
3516 * MenuAPI.cs : don't handle OnClick event when it was not the left
3517 button. Fixed bug #78487.
3519 2006-05-23 Mike Kestner <mkestner@novell.com>
3521 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3522 prefer submenus to the top menu for item lookup, to avoid popping down
3525 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
3527 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3528 Graphics.FillRectangle as the visual results are really bad (even
3529 on win). We now draw perfect arrows (and perfect shadows when the
3530 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3531 Pen.DashPattern to draw the dots of each line.
3533 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
3535 * FileDialog.cs: Update the filename combobox when navigating through
3536 the ListView with the cursor keys. Fixes part 7 of bug #78446.
3538 2006-05-22 Mike Kestner <mkestner@novell.com>
3540 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3543 2006-05-22 Mike Kestner <mkestner@novell.com>
3545 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3546 requests. Fix a misspelled parameter and a copy paste exception error
3549 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
3551 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3552 to get the same width/height (5/13) on X11 as the default font has on
3553 win32. This means that our DefaultFont emSize is smaller than the
3554 the MS SWF equivalent (even thought the width/height stays the same)
3556 2006-05-20 Jackson Harper <jackson@ximian.com>
3559 * MdiWindowManager.cs:
3560 * InternalWindowManager.cs: Make sure to use the border width from
3563 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
3565 * PrintDialog.cs: Implements printer details
3567 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
3569 * FileDialog.cs: Added focus handling for PopupButtonPanel.
3570 Fixes part 1 and 2 of bug #78446
3572 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
3574 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3575 instead of sticking to the first ever calculated value
3577 2006-05-19 Mike Kestner <mkestner@novell.com>
3579 * ComboBox.cs: fix mouse motion selection to use MousePosition and
3580 PointToClient, since Capture is set. Fixes #78344.
3582 2006-05-19 Mike Kestner <mkestner@novell.com>
3584 * ListView.cs: match MS behavior in Details view where items are not
3585 drawn if Columns.Count == 0.
3586 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3587 Use a separate pen to draw the check, since changing the width affects
3588 the box as well. Fixes #78454.
3590 2006-05-18 Miguel de Icaza <miguel@novell.com>
3592 * ListView.cs: ArgumentOutOfRangeException, single versions of the
3593 exception should throw the name of the invalid argument.
3595 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3596 there are no files listed.
3598 2006-05-18 Jackson Harper <jackson@ximian.com>
3600 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3603 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3605 * Control.cs: Brought back our old UpdateZOrder method as a private
3606 function and switched our calls from UpdateZOrder to the new one.
3607 This fixes the Paint.Net canvas disappearing bug.
3609 2006-05-18 Jackson Harper <jackson@ximian.com>
3612 * ThemeWin32Classic.cs:
3613 * InternalWindowManager.cs: Move the drawing into the theme,
3614 expose everything the theme should need from the window manager.
3616 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3618 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
3619 from the call to NativeWindow to avoid walking up the parent chain
3620 further than needed (speeds up setting cursors and avoids setting
3621 the wrong cursor if a parent has another cursor defined)
3622 * Cursor.cs: When loading an icon as cursor, MS uses the center of
3623 the icon as hotspot, not what's contained as hotspot in the icon
3624 file. This fixes the perceived drawing offset seen with Paint.Net
3626 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3629 - Store the calculated rectangle in Hwnd object and use it when
3630 setting the client size
3631 - Force Toolwindows to always be type Dock, to ensure they're on top
3633 2006-05-18 Mike Kestner <mkestner@novell.com>
3635 * ComboBox.cs: first pass at ComboBox rework. Layout is more
3636 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
3637 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
3638 Substantial refactoring to remove confusing nested classes. Coding
3639 standard and Get+Set->property refactorings. Shift to index based
3640 highlighting in ComboListBox instead of constantly using IndexOf and
3641 Items[]. Add invalidations on resize for DropDownList to fix ugliness
3642 in FileDialog growth. Draw borders manually since Simple mode needs
3643 to look like two independent controls. Make listbox border
3644 conditional to DropDownStyle. Improved OwnerDraw support.
3646 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
3648 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
3649 Don't set the disposed graphics to null, so we can throw the "right"
3650 exception if the graphics is reused later (added a flag to avoid
3651 double disposing). Some behaviours are different under 2.0 and are
3652 filled under bug #78448.
3654 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3656 * Control.cs: When double-buffering is enabled, we need to reset
3657 our graphics context between paint calls. Otherwise, any
3658 transformations and other alterations on the context will
3659 become cumulative (#77734)
3661 2006-05-18 Mike Kestner <mkestner@novell.com>
3663 * ListView.cs: do focused item selection like MS on clicks.
3664 Rework focus handling for ItemControl so LostFocus invalidates as
3666 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3667 the ListView ItemControl has focus.
3669 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
3671 * XplatUIX11.cs: If client_window ends up being width or height zero
3672 due to border settings, move it off window inside whole_window (#78433)
3674 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3676 * Mime.cs: Shrink the mime file cache correctly.
3678 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3680 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3682 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3684 * XplatUIX11.cs (AddExpose): More sanity checks
3686 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3689 - AddExpose: Don't add expose ranges outside the size of our
3691 - Cast opacity values to Int32 to avoid crashes with certain
3693 - Added disabled code paths that protect against illegal cross-
3694 thread painting (Developers.exe)
3696 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3698 * ProgressBar.cs: Invalidate the control when it's resized
3699 since block size is based on control size. (#78388)
3701 2006-05-16 Miguel de Icaza <miguel@novell.com>
3703 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3704 of setting the incoming argument to the "reset" value, we set the
3705 this.datamember to string.empty (before we were invalidating the
3710 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3712 * Form.cs: Only apply transparency settings after the form
3713 is created. (Fixes #77800)
3715 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3717 * ApplicationContext.cs: Grab the HandleDestroyed event so
3718 we know when to fire OnMainFormClosed
3720 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3722 * Application.cs: Introduced sub-class to allow tracking of
3723 threads and centralized triggering of the event mess for
3724 ThreadExit, AppExit, etc.. (#76156)
3726 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
3729 - Do not return a null icon index value for a mime subclass.
3730 Instead try the main mime type class too.
3731 - Seems that some newer distributions don't have a link to some
3732 gnome default icons anymore. So check the default gnome dir too.
3735 2006-05-16 Jackson Harper <jackson@ximian.com>
3737 * MdiClient.cs: Don't paint the parent background image if we have
3738 our own background image.
3740 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3743 - PerformLayout: Do not shrink space filled by DockStyle.Fill
3744 controls, all filled controls are supposed to overlap (#78080)
3745 - UpdateZOrder is supposed to update the control's z-order in the
3746 parent's z-order chain. Fixed to behave like that
3747 - BringToFront: Removed obsolete code
3748 - SendToBack: Simplyfied
3749 - SetChildIndex: Trigger layout calculations when Z-order changes
3750 since layout is done by z-order
3752 2006-05-16 Chris Toshok <toshok@ximian.com>
3754 [ fixes bug #78410 ]
3755 * DataGrid.cs (set_AlternatingBackColor): use
3756 grid_drawing.InvalidateCells instead of Refresh().
3757 (set_BackColor): call grid_drawing.InvalidateCells.
3758 (set_BackgroundColor): use Invalidate instead of Refresh.
3760 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
3761 invalidate the cell area.
3763 2006-05-15 Chris Toshok <toshok@ximian.com>
3765 [ fixes bug #78011 ]
3766 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
3767 on to DataGridPaintRow.
3768 (DataGridPaintRow): take a clip argument, and only draw the cells
3769 which intersect it. same with the not_usedarea.
3771 * Theme.cs (DataGridPaintRow) add @clip parameter.
3773 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
3774 XplatUI.ScrollWindow.
3775 (ScrollToRow): same.
3777 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
3778 with last column which was causing a gray swath to appear with the
3779 XplatUI.ScrollWindow code.
3781 2006-05-15 Chris Toshok <toshok@ximian.com>
3783 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
3784 use XplatUI.ScrollWindow.
3785 (VerticalScrollEvent): use XplatUI.ScrollWindow.
3787 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3789 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
3791 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3793 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
3794 file since there are no equivalent X11 cursors
3796 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3798 * MonthCalendar.cs : DateTimePicker should reflect selected date
3799 on mouse*up*, not mouse*down*. Fixed originally reported part of
3802 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3804 * TabControl.cs : When argument index is equal or more than tab
3805 count, just ignore. Fixed bug #78395.
3807 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3809 * Control.cs: Dispose all child controls when control is diposed (#78394)
3811 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3813 * ColorDialog.cs: Finally it is possible to select the color with
3816 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3818 * PrintDialog.cs: Fix typo
3820 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3822 * PrintDialog.cs: PrintDialog is not resizable
3823 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
3824 color. Made some ToolBar drawing methods protected virtual.
3826 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
3828 * PrintDialog.cs: Implementation of the PrintDialog
3830 2006-05-12 Chris Toshok <toshok@ximian.com>
3832 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
3833 thumb, instead use MoveThumb. This has the side effect of making
3834 most of the other thumb moving machinery use MoveThumb as well.
3835 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
3836 need to actually invalidate the rectangle where the new thumb will
3838 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
3839 We force an Update() after, so it's not as fast as it could be,
3840 but at least there's zero flicker and no droppings.
3841 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
3842 (UpdateThumbPos): add another argument (dirty), which says whether
3843 or not to calculate/add dirty regions which we later invalidate.
3844 For cases where we know we're going to use MoveThumb, we pass
3845 false for this. Otherwise, pass true.
3847 2006-05-12 Jackson Harper <jackson@ximian.com>
3849 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
3852 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
3854 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
3855 and GetClipRegion methods and UserClipWontExposeParent property.
3856 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
3857 overriding UserClipWontExposeParent property, setting to false, since
3858 Win32 handles the required expose messages to draw our clipped parent
3860 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
3861 PaintEventStart to set the user clip region if set.
3863 - Now internally tracking the Region for the control since we need to
3864 store it if the handle is not yet created and only set it when it
3865 becomes created. Before setting the region forced handle creation
3866 - Added code to draw the parents underneath a user-clipped region
3867 * Hwnd.cs: Added UserClip property
3869 2006-05-12 Chris Toshok <toshok@ximian.com>
3871 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
3872 (set_Maximum): same.
3873 (set_Minimum): same.
3874 (set_SmallChange): same.
3875 (OnMouseUpSB): remove the call to refresh when releasing the
3876 thumb. We shouldn't need it.
3878 2006-05-12 Miguel de Icaza <miguel@novell.com>
3880 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
3881 AutoSize set to None, we do not need to relayout everything, we
3882 just need to invalidate the current region.
3884 (Draw): Do not draw the entire ClientArea, just redraw the
3885 clip area being passed.
3887 * MdiClient.cs: Make MdiClient constructor with the Form argument
3890 2006-05-12 Jackson Harper <jackson@ximian.com>
3892 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
3893 parents background image, but strangely not their own.
3894 - (DrawStatusBarPanel): Take into account horizontal alignment
3895 when drawing the strings and icons.
3897 2006-05-12 Mike Kestner <mkestner@novell.com>
3899 * ListBox.cs: avoid invalidations for focus when the collection is
3902 2006-05-12 Chris Toshok <toshok@ximian.com>
3904 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
3905 invalidate the entire thumb area. Call InvalidateDirty which
3906 limits the redraw to the thumb itself and surrounding pixels.
3908 * XplatUIX11.cs (ScrollWindow): optimize copying.
3910 2006-05-12 Chris Toshok <toshok@ximian.com>
3912 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
3913 Figure out the positioning/layout in a single pass instead of
3914 multiple recursive invocations. Speeds up the initial display of
3915 the data grid. Also, make many things private that were
3916 originally public but unused outside this class.
3918 2006-05-11 Jackson Harper <jackson@ximian.com>
3920 * MdiClient.cs: Improved layout code.
3922 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
3924 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
3927 2006-05-11 Chris Toshok <toshok@ximian.com>
3929 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
3930 union of that will always be {0,0,width,height}.
3932 2006-05-11 Jackson Harper <jackson@ximian.com>
3934 * Form.cs: Match MS's DefaultSize for forms (they must have
3935 changed the size in sp2).
3937 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3939 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
3941 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3943 * TextControl.cs : Fixed bug #78109. This incorrect position
3944 comparison caused crash on automatic line split.
3945 * TextBoxBase.cs : reduce duplicate code.
3947 2006-05-10 Jackson Harper <jackson@ximian.com>
3949 * MdiClient.cs: Active form is only sent to the back when using
3950 the Next form functionality, when a form is clicked the current
3951 active shouldn't be sent to the back.
3952 - Layout the mdi windows when the container is first made visible.
3953 * Form.cs: Give the MdiClient a ref to the containing form when we
3956 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3958 * LinkLabel.cs : link_font could be uninitialized, so populate one
3959 before actual use. Fixed bug #78340.
3961 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3963 * XplatUIX11.cs : clipboard format native value is IntPtr.
3966 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3969 - Instead of showing context menus directly we send WM_CONTEXTMENU,
3970 which is passed up the parent chain by DefWndProc
3971 - We now handle WM_CONTEXTMENU to display any menu, or pass it
3972 to DefWndProc (#77956)
3973 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
3975 2006-05-10 Jackson Harper <jackson@ximian.com>
3977 * MdiClient.cs: We need to remove the controls from the mdi
3978 collection, when we close the window.
3979 * MdiWindowManager.cs: Special handling of closing mdi windows.
3980 * InternalWindowManager.cs: Make the close method virtual so the
3981 mdi window manager can handle it specially.
3983 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
3986 - Recalculate grid when the data source has changed
3987 - Matches styles provided by user from all data sources types
3988 * DataGridTableStyle.cs: For columns that provided by the user set the
3989 with the preferred value is there was unassigned.
3990 * CurrencyManager.cs: throw OnItemChanged event
3992 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3994 * PictureBox.cs: Don't animate until handle is created. Start animation
3995 when handle is created.
3997 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3999 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4001 * XEventQueue.cs: We don't need to provide the extra info
4003 2006-05-10 Jackson Harper <jackson@ximian.com>
4005 * MdiClient.cs: If the mdi clients parent form has a background
4006 image set, we draw that background image for the mdi area's
4009 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4011 * TextBoxBase.cs: Set IBeam cursor (#78347)
4013 2006-05-10 Mike Kestner <mkestner@novell.com>
4015 * ToolBar.cs: fix some text padding issues with ButtonSize
4016 calculation. Update the default size to match MS documentation.
4017 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4018 button size. Fixes #78296.
4020 2006-05-10 Mike Kestner <mkestner@novell.com>
4022 * ListBox.cs: use is_visible for scrollbar positioning in case the
4023 control isn't on screen yet. Fix off by one with Right vs Width
4024 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4026 2006-05-10 Jackson Harper <jackson@ximian.com>
4028 * X11Dnd.cs: Drop to a control with another control on top of it.
4029 * ToolBar.cs: Work on a copy of the buttons list, so that it can
4030 be modified in click handlers. TODO: Look for similar problems in
4033 2006-05-09 Jackson Harper <jackson@ximian.com>
4035 * Form.cs: Window managers need the old window state when setting
4037 * InternalWindowManager.cs: Allow the base mdi window manager to
4038 handle more of the MDI only stuff (like maximize buttons).
4039 * MdiWindowManager.cs: Fix some snafus in changing the window
4040 state. Add all the menu functionality, for both popup and
4042 * MdiClient.cs: When a new form is selected the currently
4043 activated form is sent to the back, this matches MS.
4044 - Implement a new method to activate the next mdi child window.
4046 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4049 - Added new InternalCapture method to allow controls to prevent
4050 the capture behaviour on the click handlers
4051 - Switched to use InternalCapture
4053 - Using InternalCapture to prevent mouse captures from being released
4054 on mouse button release (Fixes #78100)
4055 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4056 returns Form borders if a caption is present. (Fixes #78310)
4058 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4060 * TreeNode.cs: Changed serialization .ctor to not require every field
4061 to be present. (#78265)
4062 * OwnerDrawPropertyBag.cs: Added serialization .ctor
4064 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
4066 * MimeIcon.cs: for is faster than foreach for strings.
4068 2006-05-05 Mike Kestner <mkestner@novell.com>
4070 * CheckedListBox.cs: update check handling code to not use selected.
4071 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4072 behavior for visual feedback, motion response, shift/ctrl handling,
4073 and properly deal with all 4 selection modes. Updates to bounds
4074 handling logic. Add scroll wheel support. [Fixes #77842]
4076 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
4079 - Moved adding of Implicit controls into .ctor. That way, subsequent
4080 creation of the controls will not cause them to think they are
4081 toplevel windows (fixes #78200 header problem)
4082 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
4083 - Switched visibility setting of header control to use internal field
4084 to avoid triggering handle creation
4085 - Now checking if handle is created before causing a refresh when items
4086 are added (This makes us now match handle creation time with MS)
4087 * Splitter.cs: Removed loading of private splitter cursor, switched to
4088 Cursors version now that that is loading the right ones
4089 * Cursors.cs: Load proper splitter cursors from resources
4090 * Cursor.cs: Added second method of loading resource cursors for the
4091 VS.Net users amongst us
4093 2006-05-05 Mike Kestner <mkestner@novell.com>
4095 * ListView.cs: give header_control a minimum size based on the
4098 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
4100 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
4101 window seems to do that with metacity, so set that type. (#78120)
4103 2006-05-05 Mike Kestner <mkestner@novell.com>
4105 * ListViewItem.cs: fix Details mode checkbox layout bug.
4106 * ThemeWin32Classic.cs: draw a ListView column header for unused space
4107 at the end of the header, if it exists. [Fixes for #78200]
4109 2006-05-04 Jackson Harper <jackson@ximian.com>
4111 * MdiClient.cs: Add a helper property to get the container form.
4112 * MdiWindowManager.cs: We have to make sure to use the menu origin
4113 when drawing the icons and buttons, this fixes maximized window
4114 icons/buttons on win32.
4115 * InternalWindowManager.cs: Reset the restore captions when a
4116 window goes from Maximized to Minimized and vice versa. Move the
4117 DrawMaximizedButtons into the MdiWindowManager source, tool
4118 windows can't be maximized. NOTE: This could use a little
4119 refactoring if time ever permits.
4121 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
4123 * TextBox.cs: Add MWFCategoryAttributes
4124 * TextBoxBase.cs: Add MWFCategoryAttributes
4125 * Form.cs: Add MWFCategoryAttributes
4127 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
4129 * Control.cs: Add MWFCategoryAttributes
4130 * ScrollableControl.cs: Add MWFCategoryAttributes
4132 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
4134 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
4135 Divider is true. Fix a little glitch in PropertyToolBar
4138 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
4141 - Dispose: Call base.Dispose, this causes the disposed event
4142 to be fired (and probably other, more important stuff)
4143 - SetVisibleCore: Set is_visible to true after creating the
4144 window so that the window still gets created invisible (if
4145 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
4146 to generate a WM_ACTIVE message
4147 * Form.cs: Call Dispose when we want to destroy the window, instead of
4148 just destroying the handle (Dispose will do that for us)
4150 - RootWindow also needs a queue, so we can properly process the
4151 property change events from RootWindow (like Activate)
4152 - Generatic synthetic WM_ACTIVE message when the active window is
4155 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4157 * LinkLabel.cs: Trigger a recalc of our label dimensions when
4160 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4162 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
4163 for determining width and height (image might not be assigned if
4164 we're drawing an imagelist)
4166 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4168 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
4169 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
4171 * Theme.cs: No longer returns hardcoded menu height, instead calls
4173 * Form.cs (OnLoad): Scaling happens before triggering Load events
4176 2006-05-01 Mike Kestner <mkestner@novell.com>
4178 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
4180 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
4182 * TextBoxBase.cs: Removed Fixme
4183 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
4185 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
4188 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
4189 the rectangle relative to the parent, considering borders. We
4190 don't really want that.
4191 - ScrollWindow: Fixed warning to be more understandable
4192 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
4193 scrollbars and scroll only the visible area
4194 * RichTextBox.cs: Removed debug output
4196 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4198 * NumericUpDown.cs (Text): Just use base
4199 * UpDownBase.cs: Ensure txtView is created before using it
4201 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4203 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
4204 casting to IntPtr to avoid 64bit overflow errors
4206 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4209 - AllowDrop: Don't force handle creation.
4210 - CreateHandle: Added call to tell driver if we're allowed to drop
4212 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4214 * FileDialog.cs: Remember the last directory not only for the
4215 current instance but also for new FileDialog instances.
4217 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4219 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
4220 broke sending async messages
4222 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4225 - ScrollWindow: Fixed method. We finally generate expose events again
4226 for scrolled areas. This was causing 'garbage' when scrolling
4227 textbox and other controls that used ScrollWindow
4228 - Switched from using the regular queue for paint events to the MS
4229 model of 'generating' paint events when the queue is empty.
4230 We use the new XQueueEvent.Paint subclass to store which windows
4232 - AddExpose now takes the x/y/width/height of the exposed area
4233 and inserts the window into the paint queue if not already there
4234 - InvalidateWholeWindow: Switched to use new AddExpose method
4235 - UpdateMessageQueue: Added which queue to monitor for paint events
4236 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
4237 the unlikely case nothing above handles it. We reset the expose
4238 pending states to get them off the queue.
4239 - GetMessage: Now pulls a paint event if no other events are in the
4241 - Invalidate: Switched to new AddExpose method
4242 - PeekMessage: Updated to understand pending paint events
4243 - UpdateWindow: Fixed logic bug. We were only updating if the window
4244 didn't need updating. Also switched to sending WM_PAINT directly,
4246 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
4247 and random access Remove(). The random access is needed to handle
4248 UpdateWindow() where a WM_PAINT is sent directly without accessing
4250 * ScrollBar.cs: Added Update() calls to cause immediate updates to
4251 allow for better feedback when scrolling. Scrollbars are small and
4252 the immediate update should make it 'feel' more responsive without
4253 slowing things down. ScrollBar still needs it's invaliate logic
4254 updated to not always invalidate the whole bar on certain changes.
4256 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4259 (BackColor): if the control does not support a transparent background,
4260 return the default backcolor when the parent backcolor is transparent.
4262 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
4264 * Application.cs: Updated to new StartLoop/GetMessage API
4265 * RichTextBox.cs: Provide some output on RTF parsing errors
4266 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
4267 new queue_id argument to GetMessage and PeekMessage to allow faster
4268 handling of per-thread queues in drivers.
4269 * Hwnd.cs: Added Queue tracking and property
4270 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
4271 * XEventQueue.cs: Added thread trackingA
4272 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
4274 - Implemented new per-thread queue
4275 - GetMessage: Fixed return/break behaviour on several cases. We were
4276 returning stale messages in some cases, instead of just processing
4279 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
4281 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
4283 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
4285 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4286 fixed off-by-one comparisons between Width/Height and Right/Bottom.
4288 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
4290 * PropertyGridView.cs: Fix drop down width.
4292 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4294 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4295 a mess in DrawToolBar, so I removed one of them.
4297 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4299 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4300 needed (clip). Otherwise we get artifacts.
4302 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4304 * FixedSizeTextBox.cs: Added constructor to allow specifying which
4306 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4307 and switched FixedSizeTextBox to only be fixed vertical (#78116)
4308 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4309 if it matches the scale base font (avoids unneeded scaling)
4311 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4313 * X11DesktopColors.cs: One gtk_init_check should be enough
4315 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4317 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4320 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4323 - Generate OnTextChanged for Backspace even if we're only deleting
4324 the current selection
4325 - When setting the Text property, only select all text if the
4326 control does not have focus when it is being set. Otherwise
4327 just place the cursor at the beginning of the control
4329 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4331 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4332 Added a little helper to draw PropertyGrid ToolBar with a different
4333 border and a different BackColor.
4334 * PropertyGrid.cs: Some background parts didn't get painted with the
4335 correct background color. Added a class that helps us to draw the
4336 correct border for PropertyGridView and a class that helps us to
4337 draw ToolBars with a different backcolor
4338 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4340 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
4342 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4343 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4345 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4347 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4348 into the palette entries. Also, since we're working on a copy
4349 we needed to copy the palette back onto the bitmap.
4350 * Cursor.cs: Same fix as XplatUIWin32.cs.
4352 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4354 * ImageListStreamer.cs: Need to read the var (or we're off)
4356 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4358 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
4359 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4360 TextBoxBase.cs: Unused var fixes
4361 * AxHost.cs: Small 2.0 fix
4362 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
4363 as it seems that is what at least Metacity expects. This will make
4364 icons show up on 64bit platforms. We still have some 64bit size
4365 issues, though, since the startup app window size still won't match.
4367 2006-04-25 Mike Kestner <mkestner@novell.com>
4369 * *.cs: cleanup newly reported exception var unused warnings.
4371 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4373 * ThemeWin32Classic.cs: Button image alignment now matches exactly
4376 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4378 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4379 image. The image position is always the same, no matter if the
4380 button is pressed or not.
4382 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4384 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4385 selection and set the correct filename for SaveFileDialog.
4386 Patch by Emery Conrad.
4388 2006-04-24 Mike Kestner <mkestner@novell.com>
4390 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4391 check for item.X outside the ClientRect instead of item.Y. Fixes
4394 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4396 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4397 trust that value blindly and do some sanity check. Fixes bug #77814.
4399 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4401 * ImageListStreamer.cs: save the mask as a 1bpp image.
4403 2006-04-21 Mike Kestner <mkestner@novell.com>
4405 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4406 pass Checked and Indeterminate to the Theme Engine. Improve
4407 encapsulation with ListBox.
4408 * ListBox.cs: Keep a StringFormat instead of calculating it every item
4409 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4410 nested types. Move all CheckState functionality to CheckedListBox.
4411 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
4412 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
4413 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4414 single base list. Fix scrollbar sizing and placement to mirror MS.
4415 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4417 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4418 for CheckedListBox by using new DrawItemState info. Center the
4419 checkboxes on the items. Use new StringFormat property.
4421 2006-04-18 Jackson Harper <jackson@ximian.com>
4423 * Form.cs: MdiChildren don't do default locations the same way as
4424 regular forms. This prevents a crash when trying to position the
4427 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
4429 * PropertyGridTextBox.cs: Formatting, copyright
4430 * PropertiesTab.cs: Formatting
4431 * PropertyGrid.cs: Formatting
4432 * PropertyGridView.cs: Formatting, fix drop down, enabled double
4433 click toggling of values
4435 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
4437 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4438 * Control.cs (.ctor): verify_thread_handle is static, don't reset
4439 every time a control is created
4440 * Application.cs: Removed obsolete EnableRTLMirroring method
4442 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
4444 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4445 SelectedIndex to -1. Fixes bug #78121.
4447 2006-04-17 Jackson Harper <jackson@ximian.com>
4449 * Binding.cs: Handle null values for Current and BindingContext.
4450 This occurs when binding is a little delayed.
4451 * CurrencyManager.cs: return null for Current when there are no
4453 - Hookup to the listchanged event on the DataView and update
4454 bindings when the list is changed. This fixes late binding of
4457 2006-04-17 Jackson Harper <jackson@ximian.com>
4460 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4463 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
4465 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4467 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4468 with the correct ButtonState
4470 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
4472 * XplatUIX11.cs: Improved distinguishing between window types to
4473 tell the WM a type closer to what the app wants (Fixes #78107)
4475 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4477 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4480 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4482 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4483 drawing code to reflect the size grip changes
4485 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4487 * ImageListStreamer.cs: fix handling of the mask that follows the main
4488 bitmap when deserializing and serialize it properly. The generated mask
4489 should better be a 1bpp image, but I'll do that later.
4491 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4493 * FileDialog.cs: Show something in the DirComboBox on *nix if the
4494 path doesn't fit into some of our Current.Places
4496 2006-04-13 Jackson Harper <jackson@ximian.com>
4498 * ComboBox.cs: Use borders instead of drawing our own decorations,
4499 try to obey correct rules for heights.
4502 * ThemeClearLooks.cs:
4503 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4504 this is now handled by borders.
4505 - Remove unused DrawListBoxDecorationSize method.
4507 2006-04-13 Mike Kestner <mkestner@novell.com>
4509 * MenuAPI.cs: null guarding for the disbled click check fixes crash
4512 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4514 * ThemeWin32Classic.cs:
4515 - Fixed CPDrawStringDisabled
4516 - Corrected drawing of disabled menu items
4517 - Fixed drawing of disabled radio buttons (bug #78095)
4518 - Draw check in a disabled CheckBox with color ControlDark
4520 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4522 * Form.cs: Use the provided width when calculating the menu size;
4523 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4524 and ClientSize.Width won't be updated yet
4525 * Application.cs: Use Visible instead of Show() to make form visible,
4526 this way we create the handle later and menusize is considered
4528 2006-04-12 Mike Kestner <mkestner@novell.com>
4530 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4533 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4535 * TextBox.cs: Implemented context menu
4537 2006-04-12 Mike Kestner <mkestner@novell.com>
4539 * ListView.cs: implement box selection. fixes #77838.
4540 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4542 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4544 * XplatUIX11.cs: Added setting of window type when transient window
4545 is created (metacity would move it otherwise)
4546 * X11Structs.cs: Added WINDOW_TYPE atoms
4547 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4548 background (the control is Opaque but still wants transparent
4551 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4553 * Control.cs: Added OnPaintBackgroundInternal to allow controls
4554 that set Opaque but don't mean it (like all ButtonBase-derived
4555 controls) to still draw their background
4556 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4559 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4561 * Control.cs (PaintControlBackground): Set the graphics object
4562 on our PaintEvent to null to prevent it from being disposed
4563 when the PaintEvent gets disposed
4565 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
4567 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4568 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4570 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4573 - Added transparency check to BackColor property. Transparent
4574 backgrounds are only allowed if the control styles permit it
4575 - Added recursive painting of parent control background and
4576 foreground if a control with a transparent backcolor is drawn
4577 (Thanks to Tim Ringenback for providing his 'hack' as a base
4578 for this patch) Fixes #77985 and #78026.
4579 - Added Opaque style check before calling OnPaintBackground, no
4580 need to draw the background if the control is opaque
4581 - Removed ControlAccessibleObject owner variable (inherited from
4582 base, no need to define again)
4583 - Added some documentation links explaining the drawing events
4586 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4588 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4589 that the affected control is the located at the left border of our
4590 parent (Fixes #77936)
4592 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4594 * TextBoxBase.cs: When rendering disabled or readonly controls,
4595 draw the background with 'Control' instead of 'Window' color as
4596 long as the user hasn't specifically set a color
4598 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4600 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4601 since that won't be updated if the user types text (only if it's
4602 programatically set)
4604 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4606 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4607 layout changes do to app-triggered resizes will have the proper
4608 display rectangle for layout
4610 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
4612 * ThemeWin32Classic.cs:
4613 - Make use of the SystemBrushes and SystemPens wherever possible
4614 - Corrected some highlight colors
4615 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4617 * Theme.cs: Added Empty field to CPColor struct
4619 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4621 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4622 is displayed when calculating the display rectangle. Thanks to Mike
4623 for teaching me the err of my ways.
4625 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
4627 * ScrollableControl.cs:
4628 - Rewrote DisplayRectangle code, now returning the proper x/y coords
4629 (instead of 0,0) and we now return the real width/height instead of
4630 just the clientrectangle, adjusted for padding. The rectangle is
4631 now cached and created by the new CalculateDisplayRectangle method.
4632 - Created new CalculateDisplayRectange method, which basically does
4633 what get_DisplayRectangle() did originally, but now using the
4634 right edge instead of DisplayRectangle to determine the size of
4636 - get_Canvas(): Fixed it to properly calculate canvas for
4637 right/bottom controls which seem to be placed to the right/bottom
4638 of any controls that have a fixed location
4639 - Removed TODO that's taken care of
4640 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4641 and SetDisplayRectLocation according to new MSDN2 docs
4642 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4643 event when that is called, this is added for compatibility
4644 - ScrollControlIntoView(): Implemented.
4645 - Switched scrollbars to be implicit, they shouldn't be selectable
4646 * ContainerControl: Now that ScrollControlIntoView is implemented, we
4647 call it when the active control is set/changed
4648 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4649 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4650 implicit_control variable (used for native Win32 message generation)
4651 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
4652 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4653 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4654 * XplatUIStructs.cs: Added ScrollBarCommands enum
4656 2006-04-10 Jackson Harper <jackson@ximian.com>
4659 * CheckedListBox.cs:
4666 * PrintPreviewControl.cs:
4672 * UpDownBase.cs: Fixup base event overrides.
4674 2006-04-06 Mike Kestner <mkestner@novell.com>
4676 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4677 all user-initiated value changes to min <= value <= max-thumbsz+1.
4678 (set_Value): check for vert/horiz when calculating new thumb position.
4679 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4681 (OnMouseMoveSB): refactor the thumb dragging code and refine
4682 invalidation logic to reduce flicker.
4683 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4684 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4685 (UpdateThumbPosition): small code readability cleanup
4687 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
4689 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4692 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4694 * ThemeNice.cs: Use a better graphics effect when a button is pressed
4696 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4698 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4699 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4700 This dramatically reduces the number of Pen.Dispose calls.
4701 Where possible call ResPool methods only once instead of calling it
4702 over and over again (for example for the same color).
4704 2006-04-06 Mike Kestner <mkestner@novell.com>
4706 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4707 Also remove an unused private field on the collection. Fixes #77972.
4709 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4711 * ThemeNice.cs: Added ToolBar drawing code
4713 2006-04-06 Mike Kestner <mkestner@novell.com>
4715 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4716 I'm assuming that means we need to look up the toplevel for the
4717 provided control. Fixes the crash trace in #77911 but exposes another
4718 crash in some strange reflection usage in NDocGui.
4720 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4722 * ThemeNice.cs: Gave it a little silver touch and added Images
4724 * FontDialog.cs: FontDialog is not resizable
4725 * FileDialg.cs: Added SizeGripStyle.Show
4727 2006-04-05 Jackson Harper <jackson@ximian.com>
4729 * KeyboardLayouts.cs: Remove warning.
4731 2006-04-05 Jackson Harper <jackson@ximian.com>
4733 * Control.cs: Enable OnPaintInternal so we can use it for drawing
4734 all of our controls instead of Paint +=.
4749 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4750 use OnPaintInternal. Remove Width/Height and Visible checks in
4751 paint handler, this is done at a higher level now.
4752 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4753 * PaintEventArgs.cs: Add a handled flag so controls that don't
4754 want anymore painting after OnPaintInternal can make sure OnPaint
4757 2006-04-05 Mike Kestner <mkestner@novell.com>
4759 * Form.cs: fix the menu WndProc hacks to respect the native enabled
4760 state of the form, so that we don't process events when Modal dialogs
4761 are up. Fixes #77922.
4763 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
4765 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
4768 2006-04-05 Mike Kestner <mkestner@novell.com>
4770 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
4772 2006-04-05 Mike Kestner <mkestner@novell.com>
4774 * ListView.cs (HeaderMouseMove): null guarding for the over column
4775 when setting up the drag_to_index. Fixes #78015.
4777 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4779 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
4780 in the taskbar. Transient windows seem to accomplish that.
4782 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4785 - Re-enabled CreateParams.X/Y code for FormStartPosition
4786 - Added code for manual placement when creating the Control
4787 - Incomplete patch to treat MDI forms differently when
4788 setting the ClientSizeCore. (Still need to figure out handling
4791 - When we're explicitly setting the X/Y position of a non-Child
4792 window, let the WM know. Metacity really wants this.
4794 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4796 * ThemeNice.cs: Added CPDrawButton
4798 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4800 * ThemeNice.cs: Changed the color for focused buttons and activated
4801 the arrows for small scroll buttons.
4803 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4805 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
4806 anymore. Changed some method modifiers to protected (virtual)
4807 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
4809 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
4810 Updated drawing of menus, buttons and progressbars; added
4813 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4815 * ImageListStreamer.cs: implemented serialization/deserialization
4818 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
4820 * ThemeWin32Classic.cs:
4821 - Removed all the DrawFrameControl stuff; CPDrawButton,
4822 CPDrawCheckBox and CPDrawRadioButton are now handled directly
4824 - Updated and corrected the drawing code of CPDrawButton,
4825 CPDrawCheckBox and CPDrawRadioButton to better match ms
4826 - Updated theme checkbox and radiobutton code to use the CP*
4829 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4831 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
4834 2006-03-31 Jackson Harper <jackson@ximian.com>
4836 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
4838 * UpDownBase.cs: Don't CreateGraphics manually, use a
4839 Refresh. Ideally we would invalidate the correct areas here.
4841 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4844 - We now track the mapping state of windows. If a window (or
4845 one of it's parents) is not mapped we no longer permit
4846 WM_PAINT messages to be generated since we'd otherwise get
4847 lots of BadMatch X errors. Jackson did all the work figuring
4849 - Destroying the caret if the window it's contained in is
4850 destroyed. Can't use regular DestroyCaret method since it
4851 might fall into a drawing function (trying to remove the
4852 caret) and with that generate new BadMatch errors. Again,
4853 Jackson tracked this down.
4854 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
4855 make sure we send the messages to all windows. (The old code
4856 would send the WM_DESTROY to the window, and then all child
4857 windows would be 'gone' because the WM_DESTROY handle lookup
4858 would no longer find the destroyed window)
4859 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
4860 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
4862 2006-03-31 Jackson Harper <jackson@ximian.com>
4864 * ScrollableControl.cs: Dont recalc if we are not visible.
4866 2006-03-31 Mike Kestner <mkestner@novell.com>
4868 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
4869 the visibility branch.
4871 2006-03-31 Jackson Harper <jackson@ximian.com>
4873 * ScrollBar.cs: Cap values when incrementing/decrementing.
4875 2006-03-31 Mike Kestner <mkestner@novell.com>
4877 * MenuAPI.cs: setup menu.tracker for popup/context menus.
4878 * ToolTip.cs: guard against timer expirations with no active control.
4879 Not sure why it happened.
4881 2006-03-31 Mike Kestner <mkestner@novell.com>
4883 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
4885 * ToolTip.cs: Position the tooltip based on where the cursor is at
4886 popup time, not at MouseEnter time. Add a Down state so that we don't
4887 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
4888 positioning offset. Lookup DisplaySize at positioning time, since it
4889 can theoretically change during invocation.
4890 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
4891 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
4893 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4895 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
4896 Fixes behaviour when the Text property of the box is String.Empty
4898 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4900 * XplatUIX11.cs: Only send mouseleave for our client windows, not
4901 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
4904 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4906 * FileDialog.cs: Visual enhancement for the popup buttons in
4909 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4911 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
4914 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
4916 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
4917 highlighted menu items to match ms
4919 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
4921 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
4923 2006-03-30 Mike Kestner <mkestner@novell.com>
4925 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
4926 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
4927 go active to account for HotLight to Selected transition.
4928 * MenuItem.cs: add internal Selected prop. Fill out the Status
4929 property by calculating it from item info. Add HotLight,
4930 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
4932 2006-03-30 Mike Kestner <mkestner@novell.com>
4934 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
4936 2006-03-29 Jackson Harper <jackson@ximian.com>
4938 * Form.cs: Implement TODO.
4940 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4942 * PrintPreviewDialog.cs: Implemented missing methods and events; still
4943 missing proper dialog setup in the constructor
4945 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4947 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
4949 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
4950 - Fixed ResetBindings and removed TODO
4951 - Added check for cross-thread calls to get_Handle()
4952 - Added Marshaller attribute for set_Font to satisfy class status
4953 * FontDialog.cs: Removed TODOs that seemed implemented
4954 * UpDownBase.cs: Removed unneeded TODO and Fixme
4955 * MessageBox.cs: Implemented support for Default button and removed TODO
4956 * FileDialog.cs: Removed obsolete TODO
4957 * DomainUpDown.cs: Removed obsolete TODO
4958 * ButtonBase.cs: Removed obsolete TODO
4959 * XplatUIWin32.cs: Removed obsolete TODO
4961 - Removed obsolete TODO
4962 - Calling CheckAcceptButton when the acceptbutton is changed to allow
4963 internal status updates
4964 - Making sure the active control is selected when the control is created
4965 * CurrencyManager.cs: Removed obsolete TODO
4967 2006-03-29 Mike Kestner <mkestner@novell.com>
4969 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
4970 of PrintPreviewDialog and RichTextBox.
4972 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4974 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
4975 DarkDark, Light and LightLight colors for a specific color
4976 * ThemeWin32Classic.cs:
4977 - Use Button drawing code to draw RadioButtons and CheckBoxes with
4979 - Make use of the new ResPool helper CPColor
4980 - Draw ProgressBar and StatusBar with correct 3D borders
4982 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4984 * ColorDialog.cs: Return selected color. Fixes bug #77940.
4986 2006-03-28 Mike Kestner <mkestner@novell.com>
4988 * ListView.cs: fix Icon layout to plan for scrollbar widths when
4989 calculating col/row counts.
4991 2006-03-28 Mike Kestner <mkestner@novell.com>
4997 switch to explicit interface method implementation for some methods
4998 corcompare identifies as inconsistent with MS.
5000 2006-03-28 Mike Kestner <mkestner@novell.com>
5004 add a few missing methods from the class status output.
5006 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
5008 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5011 2006-03-28 Mike Kestner <mkestner@novell.com>
5013 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5015 2006-03-27 Mike Kestner <mkestner@novell.com>
5017 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5018 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5020 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
5022 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5024 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5026 * ThemeWin32Classic.cs:
5027 - GroupBox: Inserted a little gap between the text and the lines
5029 - Made the code in CPDrawBorder3D more readable
5030 - Corrected the drawing location of the up and down arrows in
5033 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5035 * ControlPaint.cs: Corrected line widths in DrawBorder for
5036 ButtonBorderStyle Inset and Outset
5038 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5040 * ThemeWin32Classic.cs:
5041 - Rewrote the totally broken CPDrawBorder3D method. That was
5042 one of the main problems for the terrific ThemeWin32Classic
5044 - Updated and corrected Button drawing
5045 - Correct the dimensions of the SizeGrip to match ms ones
5046 - Removed a small drawing glitch in DrawComboBoxEditDecorations
5047 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5048 Border3DStyle.Sunken to match ms.
5050 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5052 * ThemeWin32Classic.cs: First small part of the "de-uglify
5053 ThemeWin32Classic" effort, SizeGrip
5055 2006-03-24 Jackson Harper <jackson@ximian.com>
5057 * XplatUIX11.cs: Give a max idle time of one second, this matches
5058 MS and forces an Idle event every second when there are no other
5059 events in the queue.
5061 2006-03-24 Mike Kestner <mkestner@novell.com>
5063 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5064 * ListView.Item.cs: fix layout issues with null image lists and images
5065 smaller than checkbox size.
5066 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5067 mode like MS does. It's weird, but consistent. ;-)
5070 2006-03-24 Mike Kestner <mkestner@novell.com>
5072 * ListView.cs: Scroll wheel support for the item control. Fixes
5075 2006-03-23 Jackson Harper <jackson@ximian.com>
5077 * ScrollableControl.cs: Special case negative sized areas, not
5079 * MonthCalendar.cs: Save the rect of the clicked date so we can
5080 use it for invalidation.
5081 - Try to cut down on the number of invalidates
5082 - Invalidate the rect the mouse is over and was over when moving
5083 the mouse, so we get the focus box following the cursor.
5085 2006-03-23 Mike Kestner <mkestner@novell.com>
5087 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
5088 focus rectangle drawing. Fixes #77835.
5090 2006-03-23 Mike Kestner <mkestner@novell.com>
5092 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
5093 the if and else if and reverting back to the original == check on the
5096 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
5098 * FontDialog.cs: Update the example panel if the selected index of
5099 the fontListBox changes.
5101 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
5103 * FileDialog.cs: Make FileDialog remember which directory it was in
5104 last in the same execution.
5106 2006-03-22 Mike Kestner <mkestner@novell.com>
5108 * FileDialog.cs: make the DropDownMenu on the toolbar display
5109 RadioChecks since they are mutually exclusive and that's what MS does.
5111 2006-03-22 Mike Kestner <mkestner@novell.com>
5113 * Theme.cs: add Color param to CPDrawMenuGlyph.
5114 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
5115 checks and radio marks and arrows are visible on highlighted items.
5116 * ControlPaint.cs: update to use new Theme signature.
5118 2006-03-22 Mike Kestner <mkestner@novell.com>
5120 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
5121 is active. Fixes #77870.
5123 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
5125 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
5126 to be focused/selected after startup
5128 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
5131 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
5132 CustomColors and ShowHelp properties
5133 - Some internal rewrites to get better results when using the
5136 2006-03-22 Mike Kestner <mkestner@novell.com>
5138 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
5139 HoverSelection. Fixes #77836.
5141 2006-03-22 Mike Kestner <mkestner@novell.com>
5143 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
5144 ToggleButtons. (De)Sensitize the Back button around a stack count of
5145 1, not 0. Update ButtonSize based on a pixel count of the win32
5146 control. Adjust the toolbar size/location for new button size.
5148 2006-03-22 Jackson Harper <jackson@ximian.com>
5150 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
5152 * ScrollBar.cs: When doing increments and decrements we need to
5153 set the Value property so that ValueChanged gets raised. A
5154 possible optimization here would be to make an internal SetValue
5155 that doesn't invalidate immediately.
5156 * ToolTip.cs: Tooltips get added to their container (when
5157 supplied) so they get disposed when the container is disposed.
5158 - Don't create tooltips for String.Empty. This prevents all these
5159 little 2-3 pixel windows from showing up when running nunit-gui
5161 * Form.cs: Don't set topmost when setting the owner if the handles
5162 haven't been created yet. The topmost set will happen when the
5163 handles are created.
5165 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
5168 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
5169 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
5170 visible (to allow them to recalculate their sizes)
5172 2006-03-21 Mike Kestner <mkestner@novell.com>
5174 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
5175 methods. Removed a ton of redundant code. Still not really happy with
5176 the border rendering, but I think that's mainly because of the
5177 ControlDarkDark being black instead of a dark grey. Depending on how
5178 close we want to be, we might want to revisit those color choices.
5179 Among the new features added during the refactor were DropDownArrow
5180 pressed rendering, Disabled image rendering. Proper flat appearance
5181 boundary rendering. Removed the Divider and Wrapping dividers since I
5182 can't figure out any combination of themes and conditions to make the
5183 MS control draw a horizontal line on a toolbar despite what the
5184 Divider property docs indicate.
5185 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
5186 conditions and incorrect layout. Updated to coding standard.
5187 * ToolBarButton.cs: refactored layout and positioning code from
5188 ToolBar to here. Invalidate wherever possible instead of forcing
5189 redraws of the whole toolbar.
5190 (Known remaining issues: explicit ButtonSize smaller than provided
5193 2006-03-21 Mike Kestner <mkestner@novell.com>
5195 * ContextMenu.cs (Show): use the position parameter instead of just
5196 showing at the MousePosition.
5198 2006-03-21 Jackson Harper <jackson@ximian.com>
5200 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
5201 control handle this.
5202 * TreeNodeCollection.cs: If we are clearing the root node we need
5203 to reset top_node so calcs can still happen.
5204 * ThemeWin32Classic.cs: This is a Flags so we need to check
5207 2006-03-21 Jackson Harper <jackson@ximian.com>
5209 * DataGrid.cs: Create columns when the binding context has been
5211 * X11Structs.cs: Keysyms are uints.
5212 - Add size to fix build.
5214 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
5216 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5218 - Added ResetMouseHover method to allow controls to retrigger
5219 hovering if they need it more than once
5220 - Implemented MouseHoverTime and MouseHoverSize properties
5221 * Timer.cs: Start() must reset the interval
5222 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
5225 2006-03-21 Jackson Harper <jackson@ximian.com>
5227 * X11Keyboard.cs: improved layout detection. Move the nonchar
5228 tables into this file.
5229 * KeyboardLayouts.cs: Move the tables into resource files.
5231 2006-03-21 Mike Kestner <mkestner@novell.com>
5233 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
5235 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
5237 * Mime.cs: Various speed optimizations. Looking up mime types
5238 is now 2 times faster than before
5240 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
5242 * CreateParams.cs: Added internal menu field
5244 - Switched call order for UpdateBounds; now we always call
5245 the one that also takes ClientSize, and we're calculating the
5246 client size via driver method in the others. The previous
5247 method of tracking client size by difference wasn't working
5248 for forms where even the starting client size wouldn't match
5249 the overall form size (due to borders) (Part of fix for #77729)
5250 - CreateParams(): Do not use parent.Handle unless the handle is
5251 already created. Causes havoc with Nexxia and throws off our
5252 creation of controls
5254 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
5255 - Switched handling of ConfigureNotify over to new PerformNCCalc
5256 method (consolidates code)
5257 - Changed RequestNCRecalc to use new PerformNCCalc method
5258 - Added calls to RequestNCRecalc when menus and borders are changed
5259 to allow app to set NC size. (Part of fix for #77729) This matches
5260 when MS send a WM_NCRECALC on Win32 windows.
5261 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
5262 (Part of fix for #77729). This matches what MS does, they also
5263 send that message when the form is made visible.
5264 - XException.GetMessage: Improved usability of X errors by including
5265 a translation of the window into Hwnd and Control class
5266 - Improved debug info for window creation, reparenting and destruction
5267 - Created helper method WindowIsMapped() [Currently not used]
5268 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
5270 - CreateParams: Now setting our menu on the new internal menu field
5271 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
5272 avoid calculating the same property twice
5274 - Improved usability of ToString() for debugging purposes
5275 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
5276 determine the height of the menu, instead of just the font. This
5277 required to also create a graphics context and to keep a bmp
5278 around (for performance reasons)
5280 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
5282 * MenuAPI.cs: Added OnMouseUp method
5284 - Now remembering the requested client size, avoids size errors
5285 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5286 instead of base if the menu is active. This is required due to
5287 control now capturing and releasing on down/up and it would
5288 prematurely release our menu capture
5290 2006-03-17 Jackson Harper <jackson@ximian.com>
5292 * KeyboardLayouts.cs: Add the czech layouts.
5294 2006-03-16 Jackson Harper <jackson@ximian.com>
5296 * Control.cs: Use the viewport space when sizing not the controls
5297 client size, so things like ScrollableControl that effect the
5298 viewport size (when scrollbars are added) are computed correctly.
5299 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5301 - Handle creating BindingManagers for null data sources.
5302 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5303 source, otherwise when rows are added they are added to the 'fake'
5304 datasource and we will crash when trying to set the position in
5306 - Use Implicit scrollbars on the datagrid so they arent
5309 2006-03-16 Jackson Harper <jackson@ximian.com>
5312 * InternalWindowManager.cs:
5313 * MdiWindowManager.cs:
5314 * X11Keyboard.cs: I really want Mike to love me again (fix
5317 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5320 - OnMouseDown: Switch to editing mode when clicking on the cell
5321 even if we're clicking on the cell that's currently
5323 - ProcessGridKey: Left/Right now wrap like MS.Net does
5324 - ProcessGridKey: Tab now knows to add a new row when tab is
5325 pressed in the cell of the last column of the
5327 - ProcessGridKey: Enter now adds another row if pressed in the last
5328 row and selectes the new row, same column cell
5329 - ProcessGridKey: Home/End navigate columns, not rows, like
5330 originally implemented
5331 - Broke ProcessKeyPreview code out into an extra Internal method
5332 so it can be called from the edit code
5333 * DataGridTextBox.cs (ProcessKeyMessage):
5334 - Switched to accept Tab keypresses
5335 - Added F2 handling to allow jumping to the end of the edited cell
5336 - Added logic to allow moving caret left/right inside edited cell
5337 and making the edited cell jump when the caret hits cell borders
5338 - Tab and Enter are now passed to the datagrid after being handled
5340 - Removed capture code now that Control handles it
5341 - set_SelectionStart now ensures caret is visible
5343 2006-03-16 Jackson Harper <jackson@ximian.com>
5345 * TrackBar.cs: Debackwards the increment/decrement for handling
5346 mouse clicks on the bar with vertical trackbars.
5347 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5350 2006-03-16 Mike Kestner <mkestner@novell.com>
5352 * ListView.cs: make shift/ctrl keyboard and mouse selection
5353 consistent with the MS control. Fix a bug in
5354 SelectedListViewItemCollection.Clear that was pissing me off for the
5355 better part of a day because the collection was being altered
5356 underneath us as we walked the list.
5358 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5360 * Control.cs: Not sure how we could miss this so long, but it seems
5361 that MS.Net has Capture set all the way from before calling
5362 OnMouseDown through sending the mouse events until after
5363 OnMouseUp. This will fix DataGrid's selection being set to end
5364 at the location of the MouseUp.
5366 2006-03-15 Jackson Harper <jackson@ximian.com>
5368 * BindingContext.cs: Check the binding after its added so that it
5369 can initialize the binding managers and hookup to events.
5370 * Binding.cs: Data members seem to sometimes include rows/cols in
5371 the format Row.Column we now take this into account.
5372 - Hookup to the position changed event so we can update the
5373 control when the position has changed in the data set.
5374 * CurrencyManager.cs: Take into account the row/col naming
5375 convention when creating dataset tables.
5376 * BindingContext.cs: Using a newer better way of storing
5377 datasource/datamember pairs. Hopefully this better matches MS for
5378 looking up binding managers.
5381 2006-03-15 Jackson Harper <jackson@ximian.com>
5383 * BindingContext.cs: The currency manager needs the data member
5384 name, if the member is a data set we use the name to find the
5386 * CurrencyManager.cs: When creating the list prefer an IList over
5388 - Attempt to create a DataTable from a DataSet (TODO: might need
5389 some better error checking here, although MS doesn't seem to have much)
5390 - If we have a DataTable create a view and use it as our list.
5392 2006-03-15 Mike Kestner <mkestner@novell.com>
5394 * ListView.cs: keep a matrix of the icon mode layout to facilitate
5395 keyboard navigation. Support Up/Down/Left/Right selection correctly
5396 for all 4 View modes.
5397 * ListViewItem.cs: add internal row/col fields for icon layouts.
5399 2006-03-15 Jackson Harper <jackson@ximian.com>
5401 * TabControl.cs: Redraw the tabs when we resize so their newly
5402 calculated sizes are drawn on screen.
5403 * X11Keyboard.cs: Begginnings of XIM support. We also now support
5404 composite characters.
5405 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5406 - filter events so that composite characters can be created
5408 * X11Structs.cs: Add XIMProperties enum.
5410 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5412 * Control.cs (BringToFront, SendToBack): Don't use window or handle
5415 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5417 * Control.cs (PerformLayout): We don't need to consider visiblity
5418 for anchoring, only for docking. This fixes 'whacky' alignment
5419 in listbox and other controls that use implicit scrollbars after
5420 the previous PerformLayout patch
5421 * ListBox.cs: Switched to use implicit scrollbars
5423 2006-03-14 Mike Kestner <mkestner@novell.com>
5427 - chain up the "new event" overrides to base and use
5428 OnEvent to raise them. Part of fix for bug #76509.
5430 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
5432 * FileDialog.cs: Do not select an item in the parent directory
5435 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5437 * Control.cs (PerformLayout): It would seem that we considered
5438 invisible windows for our layout. Not quite the right thing
5439 to do. Now we don't any longer, thereby fixing bug #76889.
5441 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5443 * Control.cs (CanFocus): I goofed. A control can have focus
5444 even though it's not selectable. Made it match MS docs.
5446 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5448 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5449 center by default (fixes #76895)
5450 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
5451 all uses of Border3DSides.All with the explicit ORd together
5452 Left|Right|Top|Bottom because I assume that nobody was aware
5453 that All also implies a center fill. Most places I checked had
5455 * ProgressBarStyle.cs: Added
5457 2006-03-13 Mike Kestner <mkestner@novell.com>
5459 * ListView.cs: fix breakage in drag shadow header positioning
5460 from Peter's csc compilation fix.
5462 2006-03-13 Mike Kestner <mkestner@novell.com>
5464 * ListView.cs: fix NRE produced by backspacing twice in a focused
5467 2006-03-13 Mike Kestner <mkestner@novell.com>
5469 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5471 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5473 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5475 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5476 the allowed size before making programmatic size changes
5478 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5480 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
5481 set, metacity is broken and will still use the emty sizes in
5482 the struct. (Fix for #77089)
5484 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5486 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
5487 WindowExStyles and marked both enums as Flags
5488 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5489 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5490 to match WindowStyles split
5492 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5493 - Updated to match WindowStyles split
5495 - Fixed FosterParent creation, was using ExStyle on the Style field
5496 (This should help with Popup focus issues)
5497 - Updated to match WindowStyles split
5499 2006-03-13 Jackson Harper <jackson@ximian.com>
5501 * MdiWindowManager.cs: Use the system menu height. Fixes some
5502 strange sizing issues.
5504 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5506 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5508 - Scroll to caret after inserting text (#77672)
5509 - Make scroll range one pixel higher, fixes off-by-one error (and
5510 makes underlines visible on the last line)
5512 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5514 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5515 the keyboard state from being stuck with keys in 'pressed' state when
5516 focus is switched away via keyboard
5517 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5518 reset the keyboard if no X11 KeyUp events are expected to come
5519 * X11Structs.cs: Switched type of Visible to bool to match driver
5521 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5524 - Switched caret to be just 1 pixel wide, matches MS and looks less
5526 - Moved caret display 1 pixel down from the top of the control
5528 - InsertCharAtCharet: Update the selection start if moving the caret
5529 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5530 - No longer always creating the caret when the caret methods are
5531 called. Only the actual ShowCaret/HideCaret will do that now
5532 - Only setting caret visible if the owner control has focus
5533 - UpdateView: Added invalidation-shortcut logic for center and right
5534 aligned text. Previously we'd update all according to the left
5535 logic which caused drawing errors. Also fixed height of invalidated
5536 areas, now properly invalidating the whole area (was off-by-one)
5537 - owner_HandleCreated: Always generate the document when the
5538 handle is created; this ensures that
5540 - Fixed situation where caret would disappear under the right
5541 window border, also improved scrolling behaviour on left-
5543 - Fixed right-aligned textboxes to have a border to the
5544 right instead of the caret being under the right border
5546 - Switched from 'nested' to simple visible/not visible tracking
5547 for caret (part of fix for #77671)
5548 - No longer passing through translated FocusIn/FocusOut messages
5549 since we were notifying too often and the wrong windows. Instead
5550 we just notify our focussed window of receiving or loosing focus
5551 * XplatUIWin32.cs: Switched from 'nested' show/hide
5552 counting for caret to simple visible yes/no behaviour (part of
5555 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5557 * Mime.cs: Remove debug code...
5559 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5561 * MimeGenerated.cs: Removed
5562 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5563 and subclasses) from /usr/(local/)share/mime and
5564 $HOME/.local/share/mime.
5566 2006-03-10 Jackson Harper <jackson@ximian.com>
5568 * MdiWindowManager.cs: Recalc the NC area when a window is
5569 maximized/restored so that the menu area is drawn on forms that
5572 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5574 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5575 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5576 us to force a WM_NCCALCRESIZE message being sent. This is needed
5579 2006-03-10 Jackson Harper <jackson@ximian.com>
5581 * Form.cs: We need to use the ActiveMenu when calculating menu
5583 - Fix nullref when the window manager hasn't been created yet.
5584 * Control.cs: Fix nullref when we try to bring a control to the
5585 front that has no parent.
5586 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5588 - Add a dummy item to the maximized menu so it always has the
5589 correct height. Otherwise when there are no menus we don't get our
5593 2006-03-10 Jackson Harper <jackson@ximian.com>
5595 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5597 * Form.cs: Make the window_state internal so the window managers
5599 - When an MDI child is maximized let its window manager create the
5600 main menu (so it can add its icon).
5601 - Notify the window managers of state changes
5602 - Let the window manager paint its buttons and handle button
5603 clicks on the menu when it is maximized.
5604 * InternalWindowManager.cs: Move the prev_bounds into the mdi
5605 window manager, since tool windows don't use it, only mdi windows.
5606 - Tell the main form that we don't want it to handle NCPAINT
5607 itself to avoid extra painting.
5608 - Handle clicks on a maximized windows menu.
5609 - Handle window state changes
5610 - Handle minimize/maximize clicks correctly by setting the window state.
5611 * MdiWindowManager.cs: Add an icon menu that (the menu you get
5612 when clicking on the forms icon).
5613 - New method to create a forms maximized menu. This is its normal
5615 - Handle window state changes.
5616 - Handle sizing of maximized windows. Maximized windows are just
5617 drawn bigger then the parent visible area. All controls are still
5618 there, they are just outside the visible area (this matches windows).
5619 * MdiClient.cs: No scrollbars when a child window is maximized.
5620 - Let the children windows figure out how big they should be when
5621 sizing maximized windows.
5622 - Implement a version of ArrangeIconicWindows somewhat similar to
5623 Windows version. There are some little differences, but I don't
5624 think any app will rely on the layout of minimized mdi windows.
5626 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5628 * Padding.cs: Several fixes to allow compiling with csc 2.0
5630 2006-03-09 Jackson Harper <jackson@ximian.com>
5633 * MenuItem.cs: Cheap hack so we can add items to the list without
5634 the events being raised. This allows adding mdi items during
5635 drawing. TODO: Should probably find a better time to add the items.
5637 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5639 * ThemeWin32Classic.cs:
5640 - CheckBox_DrawText: Added logic to not wrap if not enough space
5641 is available (Fix for bug #77727)
5642 - RadioButton_DrawText: Added logic not to wrap if not enough
5643 space is available (Fix for bug #77727). Also removed some
5644 duplicate code, DrawString always drawing the regular text
5645 before hitting the if statement.
5647 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5649 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5651 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5653 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5654 * ContainerControl.cs: Partial implementation of some 2.0 scaling
5655 methods. Moved the new 2.0 properties into alphabetical order with
5656 other properties and added MonoTODO tags
5658 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5660 * AutoScaleMode.cs: Added. Fix build.
5662 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5664 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5665 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5666 and was requiring premature handle creation for calls from above
5667 * Form.cs, Control.cs: Removed handle arguments from calls to
5668 CalculateClientRect()
5670 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5672 * ListView.cs (HeaderMouseMove): Fix csc compilation.
5673 drag_column.column_rect is MarshalByRef and can't be used that way
5675 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5677 * AxHost.cs: Added deserialization constructor for
5678 AxHost+State (fixes 77743)
5680 2006-03-09 Mike Kestner <mkestner@novell.com>
5683 - Added column drag reordering for details view.
5684 - fixed behavior when mouse is dragged off column and
5685 AllowColumnReorder is false.
5686 * ColumnHeader.cs: clone the format too in Clone.
5687 * Theme.cs: add DrawListViewHeaderDragDetails method.
5688 * ThemeWin32Classic.cs:
5689 - impl new method for drawing drag column shadows and targets.
5690 - support column offset for details mode in DrawListViewItem.
5692 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5694 * TextControl.cs: Reset the char_count when the document is cleared
5695 (Fixes bug reported on mono-winforms mailing list)
5697 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5699 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5700 of calling base we simply process the key ourselves, since both
5701 DefWindowProc and the handled method would set m.Result.
5704 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5706 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5707 method also moves the window; instead implemented a copy of
5708 Control.ScaleCore (Part of fix for #77456)
5710 - Created new CreateGraphicsInternal method to allow providing
5711 a graphics context when no handle is created without triggering
5712 handle creation. (Part of fix for #77456)
5713 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5715 - Switched Constructor to require TextBoxBase instead of Control (to
5716 allow uncast access to CreateGraphicsInternal)
5717 - Safeguarded use of owner.Handle property. No longer accessing it
5718 unless the handle is already created.
5719 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5720 - Now triggering a recalc when owning control becomes visible
5721 * TextBox.cs, RichTextBox.cs: Switched to use new internal
5722 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5723 premature handle creation (Part of fix for #77456)
5725 - We now only destroy our double-buffering buffers when the
5726 control is resized or disposed, but not when visibility
5727 changes. (The code even re-created them twice every time)
5728 - Now requiring a redraw of the buffer on visibility changes
5729 (fixes bug 77654 part 2)
5730 - Not passing OnParentVisibleChanged up unless the control
5732 - CanFocus: Fixed to match MS documentation
5733 - Focus: Fixed to return actual focus state and to check if
5734 setting focus is legal before setting it
5736 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
5738 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5739 when to draw focus rectangle by looking at parent focus and
5740 selected state instead. This fixes TabPages on Linux sometimes
5741 having none or multiple focus rectangles.
5742 * XplatUIX11.cs (SetFocus):
5743 - Don't set the focus if the same window already has focus
5744 - Use SendMessage instead of PostMessage (like it's Win32
5745 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5746 to match MS behaviour
5747 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5750 2006-03-07 Jackson Harper <jackson@ximian.com>
5752 * PictureBox.cs: Revert line I accidently committed last week.
5754 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
5757 - Added new IsRecreating and ParentIsRecreating properties to
5758 allow testing if RecreateHandle has been called on ourselves
5759 or one of our parents
5760 - WndProc(WM_DESTROY): If our control handle is being recreated
5761 we immediately need to create the handle when receiving the
5762 destroy, that way our child windows find a valid parent handle
5763 when they themselves are being recreated upon WM_DESTROY receipt
5764 (fix for bug #77654 part 1)
5766 - DestroyWindow: WM_DESTROY must be sent to our own window before
5767 notifying any child windows. MS documents that child windows
5768 are still valid when WM_DESTROY is received. (Control now relies on
5770 - Added some fine-grain debug options
5772 2006-03-06 Jackson Harper <jackson@ximian.com>
5774 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
5775 box and base calculations off this.
5776 * MdiChildContext.cs:
5777 * MdiWindowManager.cs: Don't need to ensure scrollbars here
5780 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
5782 * Splitter.cs: In situations where the affected control is added
5783 to the parent's control list after the splitter, we would not
5784 populate affected. Now we try populating it on mousedown, if
5785 it's not already set, and force it to be re-set whenever our
5788 2006-03-03 Matt Hargett <matt@use.net>
5790 * Control.cs: implement Control.Padding
5791 * Padding.cs: -Padding.All returns -1 when constructing with the
5792 implicit default ctor
5793 -Padding.ToString() matches MS.NET
5794 * ContainerControl.cs: implement
5795 ContainerControl.AutoScaleDimensions
5796 * ListControl.cs: implement ListControl.FormattingEnabled
5797 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
5799 * TabPage.cs: Implement UseVisualStyleBackColor.
5800 * PictureBox.cs: Implement PictureBox.InitialImage.
5802 2006-03-03 Mike Kestner <mkestner@novell.com>
5804 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
5805 event declarations to proxy to base event.
5806 * ListViewItem.cs: update to use ItemControl.
5807 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
5808 * ThemeWin32Classic.cs: update to new ListView theme API and fix
5809 column header label rendering for 0 width columns.
5811 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
5813 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
5814 that causes the control to be created. Fixes #77476.
5816 2006-03-02 Jackson Harper <jackson@ximian.com>
5818 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
5821 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
5823 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
5824 passed in for the EventArgs (fixes #77690)
5826 2006-03-01 Jackson Harper <jackson@ximian.com>
5828 * ScrollBar.cs: Refresh afterbeing resized.
5830 2006-02-28 Mike Kestner <mkestner@novell.com>
5832 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
5833 Clean up a tracker compile warning.
5834 * MenuItem.cs: add internal PerformPopup method.
5837 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5839 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
5840 implicit expose) when the text is set to null
5842 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5844 * RichTextBox.cs (FlushText): When newline is true, we always
5845 need to split the line, even if no text is on it and we may
5846 never eat newlines. (Fixes #77669)
5848 2006-02-28 Mike Kestner <mkestner@novell.com>
5850 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
5851 and set Selected instead.
5852 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
5855 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5857 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
5859 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
5862 - Got rid of the panel. All controls are now directly added to
5864 - It is now possible to set a font with the Font property
5865 - MinSize and MaxSize property do now what they should
5866 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
5867 - Searching and selecting a font with the font textbox works now,
5868 the same applies to the style and size textbox
5869 - Draw the correct 3D border in the example panel
5870 - Fixed a little mem leak (unused fonts didn't get disposed)
5871 - Many other internal updates/rewrites...
5874 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5877 - InsertRTFFromStream: Added 'number of characters inserted' argument
5878 - set_SelectedRTF: Now using the number of characters to calculate
5879 the new location for the selection and cursor (x/y cannot be used
5880 due to potentially already wrapped text)
5882 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5884 * TextControl.cs: Added property and implemented means to allow
5885 disabling recalculation of a document (can be used to speed up
5886 multiple inserts and is needed to make RTF inserts predictable, see
5888 * RichTextBox.cs: Using the new NoRecalc property of Document to
5889 keep x/y insert locations predictable. Also makes it faster inserting
5892 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5894 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
5895 it's easier for a child control to handle the other messages without
5896 having to duplicate the special functionality
5898 - WndProc: Removed calling base handler for WM_KEYDOWN and added
5899 code to handle processing the key ourselves, in order to get
5900 access to the result of KeyEventArgs.Handled. We now only call
5901 ProcessKey if they key hasn't been handled already. Fixes #77526.
5902 - set_Text: If null or empty string is given, just clear the
5903 document. Fixes part of #77526
5905 2006-02-27 Jackson Harper <jackson@ximian.com>
5907 * SizeGrip.cs: Paint the background color before painting the grip
5908 so things look right.
5909 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
5911 2006-02-27 Mike Kestner <mkestner@novell.com>
5914 - Restructure layout and invalidation model to remove a ton of
5915 flicker from the control and speed up performance in general.
5916 - Add manual column resize, flickers like crazy, but I already have
5917 some ideas on how I'll fix that. (#76822)
5918 - Merge the three Icon-based views into a single layout method.
5919 - Move item selection interaction logic from the item since
5920 interaction with the collections is more appropriate to the view.
5921 - Deselection on non-item clicks.
5923 - Encapsulate most of the layout. Add some internal props to trigger
5924 layout. Move to a model where Items invalidate themselves instead
5925 of just invalidating the whole control every time something changes.
5926 - Invalidate on Text/Caption changes.
5927 - switch to an offset based layout model to avoid having to absolute
5928 position every element on item moves.
5929 - correct checkbox layout to conform to MS layout.
5930 * ThemeWin32Classic.cs:
5931 - refactor some column header drawing code.
5932 - fix string justification for column headers (#76821)
5933 - make SmallIcon labels top justified for compat with MS impl.
5934 * ThemeClearlooks.cs:
5935 - adjust to new ListViewItem internal checkbox bounds api.
5937 2006-02-27 Jackson Harper <jackson@ximian.com>
5939 * Control.cs: Change where implicit controls fall in the zorder.
5940 They are now on top of all children.
5941 - Synced AddImplicit code with Add
5942 - Removed unused enumerator.
5943 * SizeGrip.cs: Remove the TODO as its been TODONE.
5945 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5947 * TextControl.cs(Insert): Combine the last lines unless the insertion
5948 string ends with \n\n, otherwise we leave one line too many (Fixes
5949 something I noticed with the testapp for #77526; the bug itself was
5950 already fixed in the previous checkin)
5952 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5955 - SelectionColor and SelectionFont methods no longer set absolute
5956 styles. Instead, the keep font or color respectively (This
5957 resolves a long-standing FIXME in the code)
5958 - When flushing RTF text, the insert code now considers text trailing
5959 behind the insertion point (Fixes the bug where when replacing
5960 the selected text via SelectedRTF the remainder of the line behind
5961 the selection would stay on the first insertion line)
5963 - AppendText now updates the selection points after inserting text
5964 - AppendText now ensures that the last tag (sometimes 0-length) of
5965 the document is used for the style information (Fixes part of
5968 - Created new FontDefiniton class to allow describing partial style
5970 - StreamLine() now takes a lines argument, to allow it to decide
5971 whether an encountered zero-length tag is the last in the document
5972 (which must be kept to not loose the font/color contained in it,
5974 - Created Combine() and Split() methods for Marker structs, to
5975 support marker updates due to reformatted documents (soft line
5977 - Implemented Document.CaretTag setter
5978 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
5979 of the last line (Not the cause, but also exposed by bug #77220)
5980 - Added LineTag argument to InsertString method, to allow callers
5981 to force a certain tag to be used (required to force use of the
5982 trailing zero-length tag of a document)
5983 - Now updating markers in Combine(), to avoid stale tag markers
5984 - Added some method descriptions to aid maintenance
5985 - Implemented new FormatText concept, allowing additive/subtractive
5986 formatting by only specifying the components that are to be
5987 changed. This was needed for resolving the RTB.SelectedColor/
5988 RTB.SelectedFont fixmes
5989 - Added Break() support method to allow breaking up linetags (used
5990 for partial formatting)
5991 - Added GenerateTextFormat() method. It is used for partial
5992 formatting and allows to generate a full font/color from given
5993 attributes and an existing tag.
5995 2006-02-26 Jackson Harper <jackson@ximian.com>
5997 * XplatUIX11.cs: Use the correct caption height.
5998 - Translate hittest coordinates to screen coords to match MS.
5999 * XplatUIWin32.cs: When we create MDI windows we need to reset
6000 some of the style flags, so we get a nice blank window, and can
6001 draw all the decorations ourselves.
6002 - Set a clipping rectangle on the non client paint event, the
6003 window manager drawing code needs one.
6004 * Form.cs: The window manager needs to know when the window state
6006 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6007 don't need to factor in border and title sizes in these
6008 methods. TODO: Remove the args and fix the call points.
6009 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6011 - Let the driver set the cursors.
6012 - Improve active window handling
6013 - Correct sizes for title bars and buttons.
6014 - Match MS drawing better
6015 * MdiWindowManager.cs: We don't need to handle border style
6016 updates specially anymore.
6017 - Check for scrollbars when windows are done moving
6018 - Handle Active properly.
6019 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6020 correctly. I am spewing the exception though, so we don't hide the
6023 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
6025 * DataGridViewRowPostPaintEventArgs.cs,
6026 DataGridViewCellPaintingEventArgs.cs,
6027 DataGridViewRowCollection.cs,
6028 DataGridViewRowPrePaintEventArgs.cs,
6029 DataGridViewCell.cs: Clear a few warnings and implement a few
6030 exceptions that should be thrown.
6032 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6034 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6035 'inheriting' our parent's (non-default) cursor. (Part of
6038 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6040 * XplatUIX11.cs: Fixed cast to make csc happy
6042 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6044 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6045 it's for the client area (part of fix for #77479 and needed
6046 for MDI window cursor handling)
6048 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6049 the appropriate default cursors and also passing the message
6051 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6052 for non-client areas
6054 2006-02-15 Jackson Harper <jackson@ximian.com>
6056 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6057 is a real MDI window
6059 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
6061 * X11DesktopColors.cs: Instead of checking the desktop session
6062 string for "KDE" check if it starts with "KDE"
6064 2006-02-10 Jackson Harper <jackson@ximian.com>
6066 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6069 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
6071 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
6074 - Got rid of the panel. All controls are now directly added to
6076 - Changed to mono coding style
6078 2006-02-10 Jackson Harper <jackson@ximian.com>
6080 * InternalWindowManager.cs: We don't need the set visibility to
6081 false hack anymore now that peter has written beautiful shutdown
6084 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
6086 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
6087 where already explicitly destroyed
6089 2006-02-10 Jackson Harper <jackson@ximian.com>
6091 * MdiClient.cs: Handle the case where windows are too high or to
6092 the left and we need scrollbars.
6094 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
6096 * MimeIcon.cs: Added some icons
6099 - Got rid of the panel. All controls are now directly added to
6101 - Changed to mono coding style
6102 - On Linux "My Computer" and "My Network" will now show some
6103 more usefull information. A new class, MasterMount, gathers
6104 this information from /proc/mount. Updated MWFFileView to make
6105 use of this information
6106 - Fixed a bug that caused FileDialog to crash when
6107 ".recently_used" file had a zero size
6108 - FilterIndex does now what it should
6110 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
6113 2006-02-09 Jackson Harper <jackson@ximian.com>
6115 * ComboBox.cs: Don't touch if null.
6117 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
6119 * Cursor.cs: 64bit safeness fix
6120 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
6122 2006-02-09 Jackson Harper <jackson@ximian.com>
6124 * Form.cs: If a form is made into an MDI form update the styles so
6125 all the props can get set correctly.
6126 - Kill the mdi_container when we dont need it anymore.
6127 * InternalWindowManager.cs: Add missing NOT
6129 2006-02-08 Jackson Harper <jackson@ximian.com>
6131 * InternalWindowManager.cs: Respek clipping when drawing MDi
6134 2006-02-08 Jackson Harper <jackson@ximian.com>
6136 * Hwnd.cs: Add bits to track non client expose events.
6137 * XplatUIX11.cs: Track non client expose events on the hwnd. This
6138 gives us a proper invalid rect and will allow for some nice
6139 optimizations with NC client drawing
6140 - MDI windows are children windows, so move their style handling
6141 into the child window block.
6142 * InternalWindowManager.cs: Remove a state reset that was
6143 getting invoked at the wrong time. Fixes managed windows getting
6144 into a 'stuck' captured state.
6146 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
6148 * TextControl.cs (Document.ctor): Now initializing
6149 selection_anchor. Fixes #77493
6151 2006-02-07 Jackson Harper <jackson@ximian.com>
6153 * TrackBar.cs: The increment/decrements were backwards.
6155 2006-02-07 Mike Kestner <mkestner@novell.com>
6157 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
6158 to the instance itself.
6160 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
6162 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
6163 on ulongs and pointers, the size differs between 32bit and 64bit
6166 2006-02-07 Mike Kestner <mkestner@novell.com>
6168 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
6169 for 64 bit platforms to work around a metacity bug.
6171 2006-02-07 Jackson Harper <jackson@ximian.com>
6173 * TrackBar.cs: Process the input keys we need, and hookup to
6174 KeyDown instead of using WndProc, so we get key messages.
6176 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
6178 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
6180 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
6181 we need to translate the XdndVersion atoms array before sending it
6183 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
6186 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
6187 number of bits for the property, not the number of bytes. The
6188 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
6189 but would not crash since it specified 8 bits instead of 4 bits)
6190 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
6191 defined as XID -> long in the C headers)
6192 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
6193 references since those are now IntPtr to begin with
6194 - Switched all Atom.XXX 'int' casts to IntPtr casts
6195 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
6196 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
6197 - Added XChangeActivePointerGrab DllImport (for X11DnD)
6199 - Changed 'int' type for Atoms in XEvent structures to IntPtr
6200 - Changed atom in HoverStruct to be IntPtr
6202 - Removed local DllImports, switched code to use those from XplatUIX11
6203 - Removed/fixed casts related to the switch of Atom to be a IntPtr
6205 2006-02-06 Mike Kestner <mkestner@novell.com>
6207 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
6208 method signatures in the import region. There may still be some
6209 lingering struct marshaling issues, as I didn't drill down into those.
6212 2006-02-06 Jackson Harper <jackson@ximian.com>
6214 * ComboBox.cs: Dont manually set the top_item, this is computed
6215 when the scrollbar position is set.
6217 2006-02-06 Mike Kestner <mkestner@novell.com>
6219 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
6220 startup crashes on amd64. There's other fixes needed. All pinvoke
6221 usage of Atom needs to be mapped to IntPtr for example. And there are
6222 likely other int/long issues to be addressed.
6224 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
6226 * FileDialog.cs: One more...
6228 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6230 * FileDialog.cs: Next try
6232 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6234 * FileDialog.cs: First part of fix for #77464
6236 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6238 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
6239 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
6240 AcceptButton border drawing.
6242 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
6244 * Form.cs: Moved positioning of form after auto scaling is applied,
6245 otherwise it would possibly use wrong form size.
6247 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
6249 * Control.cs (RecreateHandle): No need to re-create any child
6250 controls, the child windows will get destroyed automatically by
6251 the windowing system or driver, and re-created when the handle
6252 is being accessed the first time. Fixes #77456
6253 * Form.cs: No longer setting the form to closing if the handle is
6254 being recreated. This seems like the right thing to do, don't
6255 have a bug or testcase for this, though.
6257 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6259 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
6260 controls to avoid unwanted side effects
6262 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6265 - ScaleCore needs to scale the bounds, not the ClientSize of the
6266 control. Fixes #77416.
6267 - DefaultSize is 0,0 for control
6269 - DefaultSize is 100, 20
6270 - SetBoundsCore: Now enforcing the height, no matter if the provided
6271 height is more or less than the preferred one, as long as AutoSize
6273 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
6275 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6278 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
6279 call unless both performLayout is true *and* we have a pending
6281 - ResumeLayout: MS does not completely nest Suspend and Resume,
6282 they bottom out at 0, fixed our code to match that.
6283 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
6284 SetBoundsCore, we were updating even when we shouldn't. This fixes
6285 swf-anchors mis-anchoring when resizing the app fast and lots.
6286 - UpdateDistances: Now only setting the left and top distance if
6287 we have a parent and are not suspended, this is based on
6288 a suggestion by Don Edvaldson in bug #77355.
6289 - OnVisibleChanged: Fixed logic when to create the control. We may
6290 not create the control if we have no parent or if it's not visible;
6291 switched to using Visible property instead of is_visible field
6292 since the property also considers parent states. This fixes a bug
6293 when starting Paint.Net
6295 2006-02-02 Jackson Harper <jackson@ximian.com>
6297 * Form.cs: If the forms handle hasn't been created yet don't call
6298 into xplatui to make it top most, just set the topmost flag on the
6299 form in CreateParams
6300 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6302 2006-02-01 Jackson Harper <jackson@ximian.com>
6304 * ScrollableControl.cs: Refactored the Recalculate method a
6305 little, this wasn't handling all the variants of bottom and right
6306 bars needed to be added and added/removed based on their
6307 counterparts being added/removed (which changes the drawable
6308 size). Also we special case client widths and heights of 0 and
6309 don't add the scrollbar for those.
6311 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
6314 - Added method to get AbsoluteGeometry(); currently unused, but might
6315 be used in the future, if we try again to figure out toplevel
6316 coordinates with some more crappy window managers
6317 - Added FrameExtents() method to retrieve the WM set decoration size
6318 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
6319 to deal with at least KDE, FVWM and metacity (Fixes #77092)
6321 - Added whacky_wm tracking var for metacity
6322 - Added logic to have default menu height if the actual menu height
6323 has not yet been calculated (part of fix for #77426)
6324 * Form.cs: Keep track whether client size has been set and re-set
6325 it if a menu is added/removed afterwards (Fixes #77426)
6327 2006-01-31 Jackson Harper <jackson@ximian.com>
6329 * Control.cs: When a new Site is set on the component attempt to
6330 pull the AmbientProperties from it.
6332 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
6334 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6335 in the background of the owning form. Fixes #77332
6337 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6339 * MimeIcon.cs: Fix for #77409
6341 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6343 * XplatUIX11GTK.cs: Initial import
6345 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
6347 * FixedSizeTextBox: fixes class signature
6349 2006-01-30 Jackson Harper <jackson@ximian.com>
6351 * FixedSizeTextBox.cs: New internal class that represents a
6352 textBox that will not be scaled.
6355 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6358 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6360 * XplatUIX11.cs: Retrieve default screen number instead of
6361 assuming 0. Attempted fix for #77318
6363 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6366 - GetWindowPos: When a window is parented by FosterParent, use
6367 the desktop instead of FosterParent as the base to get coordinates
6368 - CreateWindow: Don't make FosterParent the parent window for Popups
6369 if we don't want a taskbar entry, Popups automatically don't get one
6370 * Hwnd.cs: Need to call remove to actually remove the key from the
6373 2006-01-30 Mike Kestner <mkestner@novell.com>
6375 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6377 2006-01-30 Jackson Harper <jackson@ximian.com>
6380 * TreeNode.cs: Raise events no matter how the treenode is
6381 checked. Patch by Don Edvalson.
6383 2006-01-30 Jackson Harper <jackson@ximian.com>
6385 * TreeNode.cs: Signature fix.
6387 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
6389 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6391 2006-01-20 Mike Kestner <mkestner@novell.com>
6393 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6394 event forwarding when menus are active.
6395 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
6396 Most of the patch is pdb's with a little rework.
6398 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6400 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
6401 Removed GetMenuDC and ReleaseMenuDC methods; replaced
6402 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6403 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6404 * InternalWindowManager.cs: Added use of PaintEventStart/End to
6405 handling of WM_NCPAINT message, now passing the PaintEventArgs to
6406 the PaintWindowDecorations method
6407 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6408 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6409 * MenuAPI.cs: Made tracker window invisible
6411 - Removed GetMenuDC and ReleaseMenuDC methods
6412 - Implemented the client=false path for PaintEventStart and
6415 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6417 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6418 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6421 - MaximizeBox, MinimizeBox: Recreate the handle when setting
6423 - CreateParams: Reworked the styles to match MS look'n'feel,
6424 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6425 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6427 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6429 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
6430 window is not mapped, since otherwise every form that's being
6431 created is considered minimized, which is wrong.
6432 * Form.cs: Catching the exception and returning our internal value
6435 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6437 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6438 SetWindowMinMax() to have means to tell the driver about the minimum,
6439 maximum and maximized state window sizes. (Part of the fix for #76485)
6441 - Implemented tracking of minimum and maximum window size, now calling
6442 new SetWindowMinMax() driver method to tell the driver (Part of the
6444 - Finished handling of WM_GETMINMAXINFO method, now setting all values
6445 (Completes fix for #76485)
6446 - Calling new SetWindowMinMax driver method when the handle for a
6447 form is created, to make sure the driver knows about it even if
6448 the values have been set before the window was created
6449 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6450 to avoid messing up our anchoring calculations (partial fix
6452 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6454 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6455 - Improved GetWindowState() to detect 'Minimized' state on Metacity
6456 (and presumably other freedesktop.org compliant WMs). Left the
6457 assumption unmapped=minimized, needed for SetVisible to work.
6458 - Now setting the window state when creating windows
6459 - Fixed SetVisible to consider/set the window state when mapping
6460 a Form. We cannot set the state before it's mapped, and we cannot
6461 use Form.WindowState once it's mapped (since it would ask the
6462 driver and get 'normal'. Therefore, we grab the state before
6463 mapping, map, and then set state.
6464 - Implmemented SetWindowMinMax method; Metacity does not seem to
6465 honor the ZoomHints, though.
6467 - Removed MINMAXINFO (moved to XplatUIStructs)
6468 - Added SetWindowMinMax stub (on Win32 the only way to set that
6469 information is in response to the WM_GETMINMAXINFO message, which
6470 is handled in Form.cs)
6471 - Added logic to SetVisible to set the proper window state when a
6472 form is made visible (fixes #75720)
6474 2006-01-26 Jackson Harper <jackson@ximian.com>
6476 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6477 same way we handle them with Invoke.
6479 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
6482 - Added tracking of window state so CreateParams can return
6483 the appropriate style
6484 - Moved setting of WS_CAPTION style in CreateParams to allow
6485 styles without caption
6486 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
6487 control if the TextBox property is accessed. Fixes #77345
6489 - get_Created: now uses is_disposed and is_created to determine
6490 return value (suggested by Jackson)
6491 - CreateHandle: No longer exits if the handle is being recreated
6492 - RecreateHandle: If the handle is not yet created call the
6493 appropriate method to create either control or handle. If the
6494 control is already created CreateHandle will simply exit instead
6495 of just creating the handle
6496 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6497 now SendMessage WM_DESTROY directly to the control when DestroyWindow
6500 - When DestroyWindow is called, instead of waiting for the
6501 DestroyNotification from X11, we directly post it to the WndProc
6502 and immediately dispose the hwnd object.
6503 Same applies to DestroyChildWindows, and this obsoletes the
6504 expose_pending tracking. Contrary to Win32 behaviour we destroy our
6505 child windows before our own, to avoid X11 errors.
6506 - Removed the direct sending of WM_PAINT on UpdateWindow
6508 - Reworked DoEvents and GetMessage to allow access to internal queue
6509 even when trying non-blocking access to the queue. Fixes #77335.
6510 Based on a patch suggestion by Don Edvalson. The new private
6511 GetMessage can now also be used as a backend for a PeekMessage
6513 * XplatUI.cs: Improved debug output for CreateWindow
6515 2006-01-25 Jackson Harper <jackson@ximian.com>
6517 * Help.cs: Allow param to be null. Patch by Don Edvalson.
6519 2006-01-24 Jackson Harper <jackson@ximian.com>
6521 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6522 when we have a MaxDropItems lower then the selected index.
6524 2006-01-24 Jackson Harper <jackson@ximian.com>
6526 * Control.cs: Don't allow selection of non visible controls, allow
6527 selection of controls without parents.
6529 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6531 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6532 * DataGridDrawingLogic.cs: Add editing row only when is necessary
6534 2006-01-23 Jackson Harper <jackson@ximian.com>
6536 * UpDownBase.cs: Make the textbox handle all the selection and
6537 tabbing. This fixes tabing to updown controls.
6539 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6541 * TextBoxBase.cs: fixes exception thown the object was null
6543 2006-01-23 Jackson Harper <jackson@ximian.com>
6545 * ButtonBase.cs: Just use the base CreateParams. They set
6546 visibility and enabled correctly.
6549 * MonthCalendar.cs: Lets let the base set as much of the
6550 createparams as possible so we don't have duplicate code all over
6553 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
6555 * ThemeGtk.cs: Added TrackBar and some experimental code to
6556 get double buffering back
6558 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
6560 * DataGrid.cs: Allows row number set internally higher than the last
6561 when creating a new row. Restores the editing functionality.
6563 2006-01-20 Mike Kestner <mkestner@novell.com>
6565 * MimeIcon.cs: delay Image creation until the icons are accessed
6566 instead of creating 190 scaled images on GnomeHandler startup.
6568 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6570 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6571 first call base before processing the event. Fixes #77279
6573 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6575 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6576 that the stride for the GDI bitmap would match the stride of
6579 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
6581 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6583 2006-01-19 Jackson Harper <jackson@ximian.com>
6585 * ComboBox.cs: Hookup the text controls keydown event so we get
6586 those when the text control has the focus.
6588 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6590 * Label.cs: Now using the base events instead of defining new ones;
6591 this allows us to just call the base properties without having to
6592 duplicate all base property logic
6594 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6596 * Label.cs: A label by default is not a tabstop (Fixes one of our
6597 failing nunit tests)
6599 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6601 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6602 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6604 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6606 * Cursor.cs: Reimplemented creating cursor bitmaps without using
6607 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6610 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
6611 constructor creates images that can't be saved. Part of the fix
6613 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6614 - SetWindowState: Switched ShowWindow flags (part of an upcoming
6615 bug fix for handling window state in forms properly)
6617 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6619 * ThemeGtk.cs: Simplify ScrollBar drawing
6621 2006-01-18 Jackson Harper <jackson@ximian.com>
6623 * Splitter.cs: Set the default dock style for the splitter control
6626 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6628 * ThemeGtk.cs: Corrected StateType and ShadowType for
6631 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6633 * Control.cs: Make use of Theme.DoubleBufferingSupported
6635 - Added drawing for flat style buttons
6636 - Added ScrollBar drawing
6638 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6640 * ThemeClearlooks.cs: Removed some unneeded code.
6641 * ThemeGtk.cs: First part of ThemeGtk enhancements.
6643 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6645 * LinkLabel.cs: We need to update the hover drawing when
6646 leaving the control as well.
6648 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
6650 * DataGrid.cs: Clicking on non empty areas in the columns
6651 area was giving an exception
6653 2006-01-17 Jackson Harper <jackson@ximian.com>
6655 * ThemeWin32Classic.cs:
6656 * ListView.cs: Do not draw/clip the headers when the header style
6659 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6661 * DataGrid.cs: Fixes 77260
6663 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6665 * DataGrid.cs: Clicking on a column on a empty grid was giving
6668 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6670 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6671 or any keypress will crash the grid.
6673 2006-01-17 Mike Kestner <mkestner@novell.com>
6675 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6676 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
6677 invisible/previously-visible items.
6680 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
6682 * ThemeClearlooks.cs:
6683 - Added CL_Draw_Button method; now other theme controls that are
6684 not derived from button or do not have a button can draw buttons
6686 - Updated ComboBox drawing
6687 - Beautified RadioButton drawing
6688 - Corrected drawing of bottom and left tabs
6689 - Beautified DateTimePicker and MonthCalendar
6690 - Added CPDrawButton and CPDrawRadioButton
6692 2006-01-16 Jackson Harper <jackson@ximian.com>
6694 * ComboBox.cs: Set the initial value of the scrollbar to the
6695 current index. Reduce the numbers of refreshs and IndexOfs called.
6697 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
6699 * FileDialog.cs: When the file listview is focused hitting the
6700 backspace key moves the fileview to the parent directory
6702 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6705 - Added RecreateHandle call when changing taskbar visibility to
6706 trigger reparenting in Win32 driver (Fixes #75719)
6707 - If a window has minimize or maximize buttons, it cannot have
6710 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6711 the toplevel form with FosterParent (A toolwindow not on the
6712 taskbar) (Fixes #75719)
6713 - Made FosterParent a toolwindow
6715 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6717 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6719 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6721 * ToolTip.cs: If SetToolTip is called from a control and the mouse
6722 is currently over that control, make sure that tooltip_window.Text
6725 2006-01-13 Mike Kestner <mkestner@novell.com>
6727 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6729 2006-01-13 Jackson Harper <jackson@ximian.com>
6731 * TreeView.cs: On MS GetNodeAt never actually factors in the X
6732 value passed. Also redraw the selected node when we recieve
6733 focus, so tabbing between trees works correctly.
6735 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6737 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6738 ~/.gconf/%gconf-tree.xml, so use
6739 .gconf/desktop/gnome/interface/%gconf.xml
6741 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6743 * TextControl.cs: Draw text in gray if control is disabled
6745 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6747 * TreeView.cs: Draw the focus rectangle outside the highlight, to
6748 make sure it's always visible. Fixes #76680.
6750 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6752 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6754 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
6756 * PageSetupDialog.cs: Added.
6757 * PrintDialog.cs: Attributes.
6758 * PrintPreviewControl.cs: Updates.
6759 * PrintPreviewDialog.cs: Updates.
6761 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6763 * Control.cs: Undid my selection check fix, since it's not needed
6765 - Now considering the presence of hscroll/vscroll when sizing
6766 vscroll/hscroll respectively. Fixed bug #77077
6767 - Added Left/Up/Down/Right to IsInputKey list to prevent
6768 ContainerControl from stealing them. This fixes what I broke
6769 with my last checkin.
6771 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6773 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
6774 I finally understand how the property can be set without a setter :-)
6776 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6779 - Switched RunLoop to use static Message.Create to create a
6781 - Added PreProcessMessage call in runloop for keyboard events; this
6782 is part of the fix for #77219, I overlooked this originally in the
6783 MSDN doc for PreProcessMessage
6785 - Removed call to PreProcessMessage from handling of keyboard
6786 messages; it's supposed to be done in the message pump
6787 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
6788 per MSDN documentation.
6789 - IsInputChar: All chars are input chars by default; removed the
6790 parent calling chain, MS does not document that
6791 - PreProcessMessage: If IsInputChar is true, we want to return false
6792 to allow dispatching of the message
6793 - When selecting the next control, now also check that we're not
6794 selecting ourselves again and therefore return a false positive.
6796 - Tried to match return values for IsInputKey and ProcessDialogKey
6797 to what MS returns; moved processing of our special keys outside
6798 ProcessDialogKey since MS does not seem to return true on those.
6799 - Moved code that previously was in ProcessDialogKey into new private
6800 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
6801 - Reworked handling of WM_CHAR to not have to duplicate code from
6802 Control.cs anymore, instead we simply call down to base.
6804 2006-01-12 Jackson Harper <jackson@ximian.com>
6806 * ComboBox.cs: We always need to refresh the text area when
6807 EndUpdate is called. Fixes the combobox in the file dialog.
6808 * Control.cs: Don't create the creator_thread until the controls
6809 handle is created. Also in InvokeRequired we check if the
6810 creator_thread is null. This gives the effect of InvokeRequired
6811 returning true if the controls handle is not created yet, and
6814 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6817 - Added StartLoop() driver method. This is used to allow drivers to
6818 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
6819 loop for a particular thread
6820 - Added EndLoop() driver method. This is called once the message
6821 pump for the thread is shut down
6822 - Added SupportsTransparency method to allow the driver to indicate
6823 opacity support for windows
6825 - Removed TODO attribute, completed AllowTransparency property
6826 - Added documented logic to Opacity
6827 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
6828 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
6829 versions of CompatibleTextRendering
6830 * X11Structs.cs: Added opacity atom to our atom enumeration
6831 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
6832 of a form might be set before it's reparented by the WM, and we need
6833 the opacity value without calling up to Form)
6834 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
6835 SupportsTransparency() driver methods
6836 * Application.cs: Now calling StartLoop and EndLoop driver methods
6838 - Added opacity atom registration
6839 - Added StartLoop()/EndLoop() methods. They're empty right now but
6840 will need to get implemented when we switch to a per-thread queue
6841 - Implemented SupportsTransparency() method
6842 - Implemented SetWindowTransparency() method
6843 - Added support for setting the opacity value when a window is
6844 reparented (since the opacity needs to be set on the WM frame)
6845 * XplatUIOSX.cs, XplatUIWin32.cs:
6846 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
6848 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6850 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
6852 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6854 * FileDialog.cs: Added ToolTip for MWFFileView
6855 * MimeIcon.cs: Rewrote GnomeHandler.
6856 - Get currently used gnome icon theme from
6857 ($HOME)/.gconf/%gconf-tree.xml
6858 - Make use of inherited icon themes
6859 - Support SVG icon themes like Tango via librsvg
6861 2006-01-12 Miguel de Icaza <miguel@novell.com>
6863 Revert's Jackson's revert which broke 2.0 builds. Fix both
6866 * Application.cs: Move the use_compatible_text_rendering outside
6867 the NET_2_0 define. If we ever need to use the
6868 use_compatible_text_rendering on the individual controls they will
6869 access the variable from the common shared code paths.
6871 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6874 - Added more granular debug options
6875 - Added method to print both window text and id
6876 - Switched debug output to use new Window() debug method
6877 - Added IsEnabled() driver method
6878 - Added EnableWindow() driver method
6880 - Removed end_modal; no longer needed, new loop handles termination
6881 via 'closing' variable
6882 - If form is modal, setting DialogResult will now initiate loop
6883 termination via 'closing' variable
6884 - Added support for is_enabled/WS_DISABLED to CreateParams
6885 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
6887 - Removed code that's now in RunLoop from ShowDialog()
6888 - Added various documented sanity checks to ShowDialog()
6889 - Added handling of WM_DESTROY message; we set 'closing' on getting
6890 the message to indicate the message pump to terminate
6891 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
6892 send by the Application.ExitThread method. (We send the message
6893 to destroy the window after all other events have been
6894 processed through the queue, instead of destroying the handle
6896 - Moved code from Close() method to WM_CLOSE handler; added logic
6897 to only send close-related events if the form is not displayed
6899 * Splitter.cs (..ctor): Fixed typo in resource name
6901 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
6903 - set_Cursor: Now only setting calling into XplatUI if the handle for
6904 the control is already created; this avoids implict handle creation
6905 or crashes if it's not created
6906 - set_Enabled: Now setting the enabled state via the new driver method
6907 instead of just tracking it
6908 - CreateParams: Added logic to set WS_DISABLED based on enabled state
6909 - CreateControl: Reordered event firing and method calls to more
6910 closely fire events in the order MS does. Now setting the
6911 enabled state in the driver when creating the control.
6912 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
6914 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
6915 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
6916 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
6918 - Added tracking of window enabled state (get_Enabled/set_Enabled)
6919 - Added EnabledHwnd property to easily allow a driver to find the
6920 handle of the first enabled window in the parent chain (this is
6921 used by drivers to pass up input events of disabled windows)
6922 * XplatUIDriver.cs: Added IsEnabled() method
6924 - Removed crude and obsolete exiting tracking variable
6925 - Removed internal ModalRun(); replaced by RunLoop()
6926 - Implemented private CloseForms() method to allow closing all
6927 windows owned by a particular (or all) threads
6928 - Exit() now properly closes all windows without forcing the message
6930 - Removed obsolete InternalExit() method
6931 - Changed Run() methods to use new RunLoop() message pump
6932 - Implemented new RunLoop() method for both modal and non-modal forms
6934 - get_CreateParams: Added setting of WS_DISABLED
6935 - Simplified ShowDialog(); now all the work is done in RunLoop(),
6936 invoked via Form.ShowDialog()
6937 * NativeWindow.cs: We don't remove the window from the collection when
6938 the handle is destroyed; there might still be messages for it in the
6939 queue (mainly the resulting WM_DESTROY); instead it will be removed
6940 when Control calls InvalidateHandle in the WM_DESTROY handler
6942 - CreateWindow: Added logic to handle the WS_DISABLED window style
6943 - EnableWindow: Implemented based on Hwnd.Enabled
6944 - GetMessage: Reset PostQuitState so the method can be called again
6945 - Implemented support for disabled windows (passing messages to the
6946 first enabled parent) in handling all input messages
6947 - Added optimizations for handling Expose events
6948 - Implemeted new driver method IsEnabled()
6949 - Now always resetting paint pending tracking vars when we start paint
6950 - Re-implemented UpdateWindow via just sending a WM_PAINT message
6951 * XplatUIOSX.cs: Added IsEnabled method stub
6952 * XplatUIWin32.cs: Implemented new IsEnabled() method
6954 2006-01-11 Jackson Harper <jackson@ximian.com>
6956 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6957 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
6959 * ColorDialog.cs: Clear out the old form before adding the new
6962 2006-01-11 Jackson Harper <jackson@ximian.com>
6964 * X11Dnd.cs: Make sure to add all the text formats when adding
6965 strings to the data object.
6966 * TreeNodeCollection.cs: When adding to a sorted tree we need to
6967 do some redrawing too. Also change the UpdateNode to an
6968 UpdateBelow so the newly added node gets painted.
6970 2006-01-11 Miguel de Icaza <miguel@novell.com>
6972 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6973 LinkLabel.cs, PropertyGrid.cs: Implement the
6974 UseCompatibleTextRendering property for 2.x
6976 * Application.cs (SetCompatibleTextRenderingDefault): Add.
6978 2006-01-11 Jackson Harper <jackson@ximian.com>
6980 * TreeView.cs: Use the property for setting the selected node so
6981 the correct events get raised.
6982 * TreeNode.cs: Update the tree when the fore/back colours of a
6985 2006-01-10 Jackson Harper <jackson@ximian.com>
6987 * TreeView.cs: Allow setting SelectedNode to null.
6989 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6991 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
6993 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6995 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
6997 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6999 * PrintDialog.cs: Added attributes and set default property values.
7001 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7003 * PrintControllerWithStatusDialog.cs:
7004 Added PrintControllerWithStatusDialog.
7006 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7008 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7009 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7011 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7013 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7015 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
7017 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7018 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7020 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7022 * MimeIcon.cs: Added internal class SVGUtil.
7024 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7026 * FileDialog.cs: Don't crash if there are two files with the
7027 same name but different locations.
7029 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
7031 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7032 dates across multiple month grids. Used to not highlight entire
7033 month, but does now.
7035 2006-01-06 Jackson Harper <jackson@ximian.com>
7037 * MonthCalendar.cs: Removed DoEvents call to prevent a running
7038 message loop. Change timer intervals to numbers that seem more
7041 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
7043 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7044 object for location info since screen object is now implemented.
7046 2006-01-05 Jackson Harper <jackson@ximian.com>
7048 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7049 * AsyncMethodResult.cs: We no longer use a WeakReference for the
7050 AsyncMethodResult, this is because we ALWAYS want the
7051 ManualResetEvent to get set.
7052 * Control.cs: When disposing use an async invoke to call shutdown
7053 code, so that thigns don't block on the finalizer thread. Also
7054 check if we even have a message loop before trying to send
7055 messages, if we don't then don't bother sending messages.
7056 - No more weak references for async methods
7057 * XplatUIDriver.cs: No more weak references for async methods.
7059 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7061 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7062 returns two FontFamily with the same name
7064 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
7066 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
7067 drawing disabled text. Instead using the ColorGrayText color
7069 2006-01-04 Jackson Harper <jackson@ximian.com>
7071 * TreeNode.cs: redraw the node when its image index is changed.
7073 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
7075 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
7076 time I checked there are no others like it.
7078 2006-01-04 Jackson Harper <jackson@ximian.com>
7080 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
7081 this gives the behavoir I was looking for.
7082 * Control.cs: Special case Invoking EventHandlers, this matches MS
7083 and fixes part of bug #76326.
7085 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7087 * ThemeClearlooks.cs, FileDialog.cs:
7088 - Reflect the latest Theme class changes
7089 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
7092 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7094 * Theme.cs: Cache UI resource images and resize them if needed
7096 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7098 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
7099 is called. This fixes the crash in Nexxia when setting the font
7100 attributes in the chat. [However, RTF needs a look-over to make sure
7101 that all SelectionXXX methods handle the special case that selection
7102 is empty and therefore the change must be applied to all text starting
7103 at the cursor/selection start]
7105 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7107 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7108 XplatUIOSX.cs: Added SendMessage and PostMessage methods
7109 * X11Keyboard.cs: Switched to new way of calling PostMessage
7111 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7113 * Theme.cs: Added theme interface for images to allow the theme to
7114 control what images are used for things like FileDialog, MessageBox
7116 * MessageBox.cs: Now uses the new Theme icon/image interfaces
7118 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
7121 - Removed some dead code
7122 - Opening a recently used file does work now
7123 - Small UI enhancements
7126 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
7128 * FileDialog.cs: Forgot too add __MonoCS__
7130 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
7132 * FileDialog.cs: We are able to read recently used files now let's
7133 go on and write them.
7135 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
7137 * FileDialog.cs: Breathe some life into "last open"/"recently used"
7139 * MimeIcon.cs: Do a check for the top level media type also
7141 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
7143 * ThemeClearlooks.cs:
7144 - Added CPDrawStringDisabled
7145 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
7146 some chars if the text doesn't fit into text_rect
7147 - DrawListViewItem: If View = View.LargeIcon center the image;
7148 rewrote the drawing of ListViewItem.Text if View =
7151 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
7153 * MimeIcon.cs: Use default KDE icon theme if there is no
7154 "48x48" directory for the current icon theme, fixes #77114
7155 * Mime.cs: Disable not working and actually not used code.
7156 * ThemeWin32Classic.cs:
7157 - Replace "new SolidBrush" in GetControlBackBrush and
7158 GetControlForeBrush with ResPool.GetSolidBrush
7159 - Changed DrawListViewItem from private to protected virtual
7161 - Added form.MaximizeBox = true
7162 - Don't throw an exception if there is a broken symbolic link
7164 2005-12-23 Jackson Harper <jackson@ximian.com>
7166 * TabControl.cs: Give the panels focus, keyboard navigation is
7167 fixed so this works correctly now.
7168 - We need these key events also.
7169 * ToolBar.cs: Remove some of the poor mans double buffering.
7171 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
7173 * ComboBox.cs: The internal TextBox now returns the focus.
7175 2005-12-23 Jackson Harper <jackson@ximian.com>
7177 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
7179 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7181 * Control.cs: Removed debug code
7182 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
7185 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7187 * Control.cs: When creating the control, update the Z-order after
7188 all it's children are created, too. (Fixes nexxia not showing
7191 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7193 * Control.cs: Do not update the anchoring distances if layout is
7194 suspended, instead do it once layout is resumed
7196 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7199 - After many hours of debugging, for both Jackson and
7200 myself, it turns out that it helps to set the parent of a control
7201 if you want to actually see it onscreen. In the spirit of that
7202 discovery, we're now setting the parent of the control and
7203 it's children when the control's handle is created. This fix
7204 will make Lutz Roeder's Reflector run happily.
7205 - now just creating the handle instead of the whole control when
7206 getting a graphics context for the control.
7208 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7210 * ScrollableControl.cs: When calculating the canvas, don't consider
7211 the scrollbar widths. Instead, predict if horizontal scrollbar
7212 will affect canvas when deciding on vertical display and vice versa.
7214 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7216 * RichTextBox.cs: Set default RTF font for documents that don't
7217 have a font table (Fixes #77076)
7219 2005-12-22 Jackson Harper <jackson@ximian.com>
7221 * TextBoxBase.cs: It's difficult to do, but you can have an empty
7222 clipboard. This prevents a NullRef in that case.
7223 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
7224 clipboard. PRIMARY is for the currently selected text only. (We
7225 should implement PRIMARY at some point.
7227 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7229 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
7230 a Unicode function with a structure that was defined in Ansi way.
7233 2005-12-21 Jackson Harper <jackson@ximian.com>
7235 * StatusBar.cs: Statusbar handles its fore/back colours on it's
7236 on. Because thats how it rolls. (and this avoids it using ambient
7238 * ThemeWin32Classic.cs: Use the proper back color for filling.
7239 * Menu.cs: Use the system menu bar color for drawing menu
7240 bars. Using the window back color will bring ambient colours into
7243 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
7245 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
7246 Bitmaps were created and not disposed.
7248 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7250 * Control.cs (CreateControl): Don't do anything if the control is
7251 already created, otherwise we'd fire the OnCreated event more than
7254 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7256 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
7257 will always match. Instead return -1. Fixes #76464.
7259 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7261 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
7262 neither the beginning nor the end of the line (Fixes bug #76479)
7264 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7267 - ControlNativeWindow.ControlFromHandle(): Now handling situation
7268 where handle is invalid
7269 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
7270 instead of slower linear search
7271 * NativeWindow.cs: Don't remove the window from the hashtable until
7272 after the driver has destroyed it (since the driver might use
7273 Control.FromHandle to lookup the control object
7274 * Hwnd.cs: Added DestroyPending property to track if a window is
7275 already destroyed as far as the driver is concerned and only hasn't
7276 yet notified the control
7278 - Activate(): Check if the window is still valid before using the
7280 - Implemented DestroyChildWindow() method to mark child windows as
7281 destroyed when a window is destroyed. This prevents situations
7282 where we might call an X method based on queued events for a
7283 window that already has been destroyed but we haven't yet pulled
7284 the destroy method from the queue.
7285 - Added a call to the new DestroyChildWindow() method to the drivers
7286 DestroyWindow code. Also now marking the destroyed window itself
7289 2005-12-20 Jackson Harper <jackson@ximian.com>
7292 * StatusBarPanel.cs: Don't calculate panel sizes on draw
7293 anymore. Just do them when needed, also track the rects of panels
7294 so that we can optimize refreshing more in the future.
7296 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
7298 * ColorDialog.cs: Fixed focus drawing in small color controls
7300 2005-12-19 Jackson Harper <jackson@ximian.com>
7302 * InternalWindowManager.cs:
7303 * MdiWindowManager.cs: Cleanup some coordinate system changes so
7304 moving windows works properly.
7306 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
7309 - Removed call to InitLayout() from SetBoundsCore(); doc says
7310 it's only called when a control is added to a container
7311 - Split InitLayout logic, moved to separate UpdateDistances() method
7312 since we need to perform those calculations more often than just
7313 when adding the control to a container. (Needed to fix #77022)
7314 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7315 - Reduced the OnBindingContextChanged events count, don't send them
7316 unless the control is created, we still aren't totally matching
7317 MS, but I can't quite figure out some of their rules
7319 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7321 * ThemeClearlooks.cs: Corrected distance between ProgressBar
7324 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7326 * ThemeClearlooks.cs:
7327 - Updated ProgressBar drawing
7328 - Corrected drawing of ScrollBars and scroll buttons
7329 - Some temporary fixes for minor pixel artefacts
7331 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
7334 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7335 cause events to be sent in the same order as MS does.
7336 - Added ChangeParent() method to trigger various OnXXXChanged events
7337 that need to be fired when a parent changes (This is a reworking
7338 of the patch from r54254, with the X11 errors fixed)
7339 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7340 since on MS we get OnLayoutChanged events when calling Clear()
7341 - Changed Enabled property to consider parent state as well, if a
7342 parent is not enabled, the control will not be either
7343 - Changed Parent property to simply call Controls.Add() since that
7344 now does all the work required, this way we avoid code duplication
7345 - Threw in a few OnBindingsContextChanged calls to try and match
7346 when MS sends them. We seem to send a few too many, though.
7347 - Added call to CreateControl when adding the control to a parent.
7348 We were never calling CreateControl. Still needs some work, in
7349 some places we treat HandleCreated and ControlCreated as equal,
7351 - Removed obsolete commented out code from UpdateZOrder()
7353 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7355 * ThemeClearlooks.cs: Updated TrackBar drawing.
7357 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7359 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7361 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7363 * FileDialog.cs: Add the Help button and the open readonly
7364 checkbox only if needed
7366 2005-12-16 Jackson Harper <jackson@ximian.com>
7368 * Control.cs: Make sure we have an active menu before trying to
7369 process commands on it. Prevents menu-less forms from crashing
7370 when Alt is pressed.
7371 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7373 * RichTextBox.cs: Expand statement to help out gmcs and fix the
7376 2005-12-16 Jackson Harper <jackson@ximian.com>
7378 * InternalWindowManager.cs: Don't translate tool windows screen
7379 coordinates. This fixes windows 'bouncing' around when being moved.
7381 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7384 - MaxLength now treats 2^31-1 equal to unlimited length (this is
7385 not quite MS compatible, MS uses that number only for single line
7386 and 2^32-1 for multi-line, but I figure it won't hurt keeping
7388 - Now enforcing the MaxLength limit when entering characters
7389 - Added argument to internal Paste() method to track if it's called
7390 from programatically or via keyboard, since keyboard driven pastes
7391 need to enforce max-length
7392 - Added logic to Paste to only paste as many chars as MaxLength
7394 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7396 - Added Length property to return number of characters in document
7397 - Added private CharCount property which only tracks actual chars
7398 in the document (no linefeeds) and fires event when CharCount
7400 - Added tracking of character count to all methods that alter it
7401 - Added LengthChanged event to allow applications to subscribe
7402 to any changes to the document
7404 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7407 - Removed local password_char field (moved to TextBoxBase)
7408 - Now setting the document's password var when password is
7411 - Added password_char field (needed here so MultiLine can
7413 - Added logic to MultiLine property setter to set the document's
7414 variable when password display is allowed
7415 - Removed debug code and made some debug code conditional
7417 - Added RecalculatePasswordLine() method to handle special password
7419 - Added PasswordChar property, also added related tracking vars
7420 - Draw() method now uses local text var for grabbing text to draw,
7421 this var is set to line.text unless we're doing password display,
7422 then it is set to the pre-generated all-password-chars line
7423 - Added calling RecalculatePasswordLine() method for password lines
7425 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7428 - Added Reparented property to allow tracking of Window Manager
7429 reparenting actions (which affect X/Y calculations of toplevel
7431 - Made ToString() print window handles in hex
7433 - AddConfigureNotify(): Now uses reparented state off Hwnd to
7434 determine if X/Y needs offsetting
7435 - AddConfigureNotify(): Fixed offset calculations
7436 - Now adds ReparentNotify messages into the queue
7437 - Now processes ReparentNotify messages and causes a
7438 WM_WINDOWPOSCHANGED message to be sent upstream if a window
7439 is reparented (as most likely it's X/Y coordinates are changed
7442 2005-12-14 Jackson Harper <jackson@ximian.com>
7444 * XplatUIX11.cs: Tool windows still need to respek focus.
7446 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7448 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7449 have a working release
7451 2005-12-13 Jackson Harper <jackson@ximian.com>
7453 * Form.cs: Update styles after setting the border style regardless
7454 of whether or not the window is using a window manager.
7456 2005-12-13 Jackson Harper <jackson@ximian.com>
7458 * Form.cs: We now hook into an internal window manager instead of just an
7459 MDI subsystem, this is so we can have properly behaving tool windows.
7460 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7461 * InternalWindowManager.cs: New internal class that acts as a
7462 window manager for tool windows and as a base for mdi windows.
7463 * MdiWindowManager.cs: New class that acts as a window manager for
7466 2005-12-12 Jackson Harper <jackson@ximian.com>
7468 * Control.cs: Updates so we match behavoir for for implicit
7469 controls. Fixes explosions in MDI.
7471 2005-12-12 Jackson Harper <jackson@ximian.com>
7473 * Control.cs: Implement Invalidate (Region).
7475 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
7478 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
7479 the same events as MS does. MS fires events for each property
7480 except, for unknown reasons, Cursor, when the control is reparented.
7481 I can't seem to totally match add/remove since MS also fires some
7482 VisibleChanged events, which makes no sense. Consolidated the
7483 parenting code into a separate method so it can be called from
7484 both Add and Remove. set_Parent no longer needs any special logic
7485 as it calls the parent's add method which implicitly fires
7487 - Removed some obsolete code and debug output
7488 - Enabled state is inherited from parents, if this is enabled
7490 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7492 * Form.cs: Removed commented out code
7494 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7497 - Added internal version of Invoke, with additional argument
7498 indicating if we're calling it from a Dispose() handler. That
7499 way we can avoid BeginInvoke throwing an exception if we're
7500 calling for an already destroyed window.
7501 - Added a dispose argument to BeginInvokeInternal, and made the
7502 check if a valid window handle chain exists conditional on
7503 it not being a dispose call
7504 - Removed code in DestroyHandle to destroy our children. Since we
7505 now handle the WM_DESTROY message we will catch all our children
7507 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7509 - Added a field to track the application context of the form.
7510 - No need to set closing variable as response to WM_CLOSE, instead
7511 we destroy the window. We also call PostQuitMessage if the form
7512 has an application context (which makes it the main app form,
7513 which, when closed terminates the app)
7515 - Dropped Exit() method, it's naming was confusing
7516 - Added PostQuitMessage() which causes GetMessage to return false
7517 once the message queue is empty
7518 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
7520 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7521 no longer a valid XplatUI method, but left it in since it's used
7522 internally. Added empty PostQuitMessage() method.
7523 * MenuAPI.cs: Replaced call to Exit() with call to
7524 PostQuitMessage, even though this is probably no longer needed.
7525 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7526 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7528 - Replaced call to XplatUI.Exit() with PostQuitMessage()
7529 - Removed old debug code that would call XplatUI for exception
7530 display, enabled standard exception handling (Still not enabled
7531 though, until NativeWindow's ExternalExceptionHandler define
7534 - Added internal method to allow control to update NativeWindow
7535 after a window has been destroyed
7536 - Added handling of already destroyed windows when calling i
7538 - Added removal of handle from list on ReleaseHandle
7540 - Dropped GetMessageResult var and related code
7541 - Added PostQuitState to field to track if PostQuitMessage has been
7543 - Dropped Exit() method
7544 - Added PostQuitMessage() method
7545 - GetMessage now will return false if PostQuitState is set and no
7546 more messages are in the queue.
7547 - Expose handler will no longer generate WM_PAINT messages if we are
7548 in PostQuitState since it's very likely any windows have already
7549 been destroyed, and since Hwnd won't get updated until we have
7550 processed the DestroyNotify we'd be causing X errors.
7552 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7554 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7555 Thanks to Mike for pointing out the err of my ways.
7557 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7559 * Control.cs(PreProcessMessage): Moved menu handling back, but
7560 after all other key handling, to match MS (who handles Menu in
7562 * Menu.cs (WndProc): Removed my brainfart
7564 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7566 * Control.cs(PreProcessMessage): Removed special menu handling
7567 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7569 2005-12-07 Mike Kestner <mkestner@novell.com>
7571 * Control.cs : special case SYSKEYUP so that we can adjust keynav
7572 state according in tracker.
7573 * Menu.cs : promote tracker field to base class and provide a tracker
7574 lookup capability. Add/Remove shortcuts dynamically if the top menu
7575 has a tracker. Unparent items that are removed from the collection.
7576 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7577 * Theme*.cs: add always_show_hotkeys field to support configurability
7578 of mnemonic display. win32 doesn't show mnemonics until Alt is
7581 2005-12-07 Jackson Harper <jackson@ximian.com>
7583 * MdiChildContext.cs: Use Control.ResetCursor.
7584 * Control.cs: ResetCursor needs to set the property so that the
7585 correct XplatUI call gets made.
7587 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7589 * Control.cs: More fixes to make our key events match MS. We
7590 were not setting the modifier state on KeyData, and we were
7591 not generating any events when Alt was pressed with a key
7592 since handling of WM_SYSxxx was missing for the OnKey methods.
7594 2005-12-07 Jackson Harper <jackson@ximian.com>
7596 * MdiChildContext.cs: reenable the sizing code.
7597 - When the mouse leaves a window reset its cursor.
7599 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7601 * ThemeClearlooks.cs: Reflect latest Hwnd changes
7603 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7605 * Hwnd.cs: Now using the theme 3d bordersize to calculate
7606 widths of Fixed3D borders
7608 2005-12-07 Jackson Harper <jackson@ximian.com>
7610 * MdiClient.cs: Fix warnings. Earn Mike's love.
7612 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7614 * ThemeClearlooks.cs:
7615 - Adjusted mouse over button color
7616 - Added first parts of CheckBox drawing
7617 - Added correct color for selected text background
7618 - Fixed ComboBox drawing
7619 - Added CPDrawBorder3D and CPDrawBorder
7621 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7623 * XplatUIX11.cs: Added call to XBell for AudibleAlert
7625 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7627 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7628 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7629 alert users via sound. We could add an enum arg with different
7630 types of alerts in the future
7632 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7634 * Control.cs: Fix behaviour problems pointed out by Mike
7636 2005-12-05 Mike Kestner <mkestner@novell.com>
7638 * StatusBarPanel.cs: add Invalidate method and hook it into all the
7639 prop setters. Calls parent.Refresh for now, but could be maybe be
7640 optimized with an internal method on StatusBar at some point.
7643 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
7645 * RichTextBox.cs: Implemented get_SelectionColor
7647 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
7649 * ThemeClearlooks.cs:
7651 - Draw black button border only if button is Form.AcceptButton
7652 - Draw correct button color for pressed RadioButton if the mouse
7653 has entered the button
7654 - Updated ProgressBar drawing!
7655 - Updated CPDrawSizeGrip drawing
7656 - Updated StatusBarPanel drawing
7658 2005-12-05 Mike Kestner <mkestner@novell.com>
7660 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7661 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7663 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
7665 * ThemeClearlooks.cs: Initial check-in, activate with
7666 export MONO_THEME=clearlooks
7667 * ThemeEngine.cs: Added ThemeClearlooks
7669 2005-12-03 Mike Kestner <mkestner@novell.com>
7671 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7674 2005-12-02 Jackson Harper <jackson@ximian.com>
7676 * Form.cs: If the child form has no menu the default main menu is
7677 used as the active menu.
7679 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7681 * ListBox.cs: Check if any items exist before trying to resolve
7682 coordinates into items
7684 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7686 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7687 as the second color for the background hatch
7689 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7691 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7692 * RichTextBox.cs: FormatText position arguments are 1-based, now making
7693 sure that what we pass to FormatText is always 1-based. Fixes #76885
7695 2005-11-29 Miguel de Icaza <miguel@novell.com>
7697 * NumericUpDown.cs (EndInit): When we are done initializing,
7698 reflect any updates on the UI.
7700 2005-12-02 Jackson Harper <jackson@ximian.com>
7702 * ImplicitHScrollBar.cs:
7703 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7704 their container controls.
7705 * TreeView.cs: Use the new implicit scrollbars.
7707 2005-12-02 Jackson Harper <jackson@ximian.com>
7709 * TreeView.cs: Make top_node internal so the TreeNodeCollections
7711 * TreeNodeCollection.cs: If we remove the topnode we need to
7712 update topnode to the next node in line.
7713 - When clearing nodes go through the same process as removing
7714 them, so they get depareneted and checked if they are top node.
7716 2005-12-01 Jackson Harper <jackson@ximian.com>
7718 * TreeView.cs: When imagelists are used the image area is
7719 selectable as well as the text.
7720 - If there are no selected nodes select the first one.
7721 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7722 so don't do it more then we need to.
7724 2005-12-01 Jackson Harper <jackson@ximian.com>
7726 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7727 that arrows can be scaled.
7729 2005-12-01 Jackson Harper <jackson@ximian.com>
7731 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7732 fail. Patch by Dieter Bremes
7734 2005-11-30 Jackson Harper <jackson@ximian.com>
7736 * Form.cs: Property is 2.0 only
7737 * PrintDialog.cs: Signature fix.
7739 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7742 - No longer artificially moves text 2 pixels down (now that we have
7743 borders this is no longer needed)
7744 - Added calcs for left, hanging and right indent
7746 2005-11-23 Mike Kestner <mkestner@novell.com>
7748 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7750 2005-11-30 Jackson Harper <jackson@ximian.com>
7752 * MdiChildContext.cs: Set the cloned menus forms, as these don't
7753 get cloned as part of CloneMenu ().
7754 * Menu.cs: Make sure the parent of the items get set correctly
7755 when they are added. And the owners are notified of the changes.
7756 * Form.cs: Create an ActiveMenu property, so that when MDI is used
7757 we can change the menu being displayed/handled by the form without
7758 changing the menu assosciated with the form.
7759 - Don't let Mdi children draw/handle menus.
7761 2005-11-30 Jackson Harper <jackson@ximian.com>
7763 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
7764 a MenuChanged event. Just to make the API a little more
7767 * MenuItem.cs: Use the new OnMenuChanged
7768 * MdiChildContext.cs: Handle menu merging.
7769 * Form.cs: Implement MergedMenu.
7771 2005-11-30 Jackson Harper <jackson@ximian.com>
7773 * Menu.cs: We were misusing Add. Add goes behind the specified
7774 index according to the docs, and does not replace the specified
7775 index. So I added an Insert method.
7777 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7779 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
7780 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
7782 * RichTextBox.cs: Added calls to base for DnD events
7784 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
7787 - Fixed drag-selection related crash; style fixes
7788 - Implemented undo class
7789 o Implemented method to capture document state for specified
7790 range in document tree
7791 o Implemented method to restore captured document state
7792 o Implemented cursor tracking
7793 o Implemented basic undo stack
7794 - Added undo cursor tracking to methods altering cursor location
7795 - Added undo tracking to selection deletion (still missing
7796 other text-altering hookups)
7798 - Added SelectionLength property
7799 - Implemented CanPaste()
7800 - Implemented Paste()
7801 - Added missing protected methods
7802 - Fixed RTF->Document conversion; now uses font index 0 and color
7803 index 0 as the default font for the parsed text
7804 - Fixed RTF<->Document font size translation
7805 - Fixed RTF generation, now properly handles cross-tag boundaries
7806 for single line selection
7807 - No longer always appends blank line to generated RTF
7809 - Added missing attributes
7810 - Hooked up undo-related methods
7812 - Implemented Copy()
7813 - Implemented Paste()
7815 - Fixed caret mis-behaviour on backspace across line-boundaries
7817 2005-11-29 Jackson Harper <jackson@ximian.com>
7819 * MdiClient.cs: Add a method for activating mdi children. Very
7820 basic right now. I imagine someday it might need more girth.
7821 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
7822 children windows names are added to the menu item.
7823 * ThemeWin32Classic.cs: Draw the arrow if the item is an
7824 mdilist. This happens regardless of whether or not there are any
7825 mdi windows to see in the list, and according to my tests happens
7826 before the items are even added. Also happens if there isn't even
7827 an mdi client to get windows from.
7829 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
7831 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
7832 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
7834 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
7836 * DataGridTableStyle.cs:
7837 - Create always the styles for the missing columns even if they are
7838 provided by the user (not default table style)
7841 - Fixes SetDataBinding (always re-attach source)
7842 - Fixes SetNewDataSource (only clear styles if they are not for
7844 - Expands OnTableStylesCollectionChanged to handle style refresh
7847 2005-11-29 Jackson Harper <jackson@ximian.com>
7849 * FileDialog.cs: Implement missing bits, remove some dead
7851 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
7852 creation of the panel so that the options set on the dialog are
7853 seen when the panel is created.
7854 * TreeView.cs: raise a click when items are clicked.
7856 2005-11-29 Jackson Harper <jackson@ximian.com>
7858 * MdiClient.cs: Pass some signature methods through to base.
7860 2005-11-28 Jackson Harper <jackson@ximian.com>
7862 * ListView.cs: Raise the click event when items are clicked.
7864 2005-11-28 Jackson Harper <jackson@ximian.com>
7866 * MdiClient.cs: Make this algorithm even more beautiful. And fix
7869 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
7871 * ThemeNice.cs: - Removed 1 pixel bitmaps
7872 - Use SmoothingMode.AntiAlias where it makes sense
7873 (ScrollButton arrow for example)
7874 - Enhanced Button focus drawing
7875 - Fixed ComboBox drawing (no artefacts anymore, focus
7876 rectangle is back again, reduced size of ComboButton, etc.)
7877 - Fixed RadioButton focus drawing for Appearence.Button
7878 - Slight ScrollButton redesign
7879 - Some LinearGradientBrush size fixes
7880 - GroupBoxes have now rounded edges
7881 - Fixed StatusBar drawing
7883 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
7885 * ThemeNice.cs: - Remove dead code
7886 - use correct background colors for menus, etc.
7887 - Fake pixel drawing with 1 pixel bitmaps
7889 2005-11-24 Jackson Harper <jackson@ximian.com>
7891 * MdiClient.cs: Size the scrollbars when resizing the window.
7892 - Resize the maximized windows when the client is resized
7893 * Form.cs: Make the child context available
7895 2005-11-23 Jackson Harper <jackson@ximian.com>
7897 * MdiChildContext.cs: Don't size windows if they are maximized.
7899 2005-11-23 Mike Kestner <mkestner@novell.com>
7901 * ContextMenu.cs: use MenuTracker.
7902 * Control.cs: remove menu handle usage.
7903 * Form.cs: remove menu handle usage.
7904 * Hwnd.cs: remove menu handle usage.
7905 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
7906 motion and clicks to the new Tracker handlers.
7907 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
7909 * MenuAPI.cs: refactored to combine popup and menubar event handling.
7910 Killed the MENU and MENUITEM data types and associated collections
7911 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
7912 MenuTracker class that exposes the leftovers from the old MenuAPI
7913 static methods. Restructured Capture handling so that only one grab is
7914 done for the entire menu hierarchy instead of handing off grabs to
7915 submenus. Tracker now has an invisible control to Capture when active.
7916 * MenuItem.cs: add sizing accessors, kill Create
7918 * Theme.cs: remove menu handle and MENU(ITEM) usage.
7919 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
7920 MENU(ITEM). remove menu handle usage, use Menu directly.
7921 * XplatUIDriver.cs: remove menu handle usage.
7922 * XplatUIOSX.cs: remove menu handle usage.
7923 * XplatUIWin32.cs: remove menu handle usage.
7924 * XplatUIX11.cs: remove menu handle usage.
7926 2005-11-22 Jackson Harper <jackson@ximian.com>
7928 * Hwnd.cs: Don't compute the menu size for
7929 DefaultClientRectangle.
7930 - Reenable menu sizes being computed for GetClienRectangle.
7931 * Form.cs: Remove comment of trechery
7933 2005-11-22 Jackson Harper <jackson@ximian.com>
7935 * Hwnd.cs: The adjustments for the menu bar are made when it is
7936 attached to the form.
7938 2005-11-19 Jackson Harper <jackson@ximian.com>
7940 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
7941 (just like on windows).
7943 2005-11-19 Jackson Harper <jackson@ximian.com>
7945 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
7946 use real buttons anymore because they are in non client area. The
7947 one TODO here is that I need to somehow invalidate a section of
7948 the non client area.
7950 2005-11-18 Jackson Harper <jackson@ximian.com>
7952 * Control.cs: Put the enum check back in now that MDI doesnt have
7953 to use this to set border styles.
7954 * Form.cs: Only set mdi child windows borders if the handle has
7956 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
7957 this directly on to the driver.
7958 - Get the move start position before adjusting for the titlebar
7959 height, this fixes the windows "skipping" when they are first
7962 2005-11-18 Jackson Harper <jackson@ximian.com>
7964 * XplatUIX11.cs: Just compute the mdi borders separately as they
7965 don't totally match up with normal form borders.
7967 2005-11-18 Jackson Harper <jackson@ximian.com>
7969 * Control.cs: Set WS_ styles for borders, so that the driver does
7970 not have to retrieve the control instance to figure out what kind
7971 of borders it should have.
7972 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
7973 driver can know its an mdi child easily.
7974 * XplatUIX11.cs: Get the border styles and whether the window is
7975 MDI from the Styles and ExStyles params instead of having to get a
7976 control. This prevents a chicken and egg problem.
7978 2005-11-18 Jackson Harper <jackson@ximian.com>
7980 * MdiClient.cs: Fix typo so scrollbars show up correctly.
7982 2005-11-18 Jackson Harper <jackson@ximian.com>
7984 * MdiClient.cs: Calculate when to add and remove scrollbars
7986 * MdiChildContext.cs: Adjust the y position to take the titlebar
7988 - No height for FormBorderStyle.None
7990 2005-11-18 Jackson Harper <jackson@ximian.com>
7992 * Control.cs: Allow non enum values to be used for
7993 InternalBorderStyle. MDI does this to set a special border style.
7994 - New utility methods for converting points to/from client coords
7995 - Add the newly created control to the Controls collection before
7996 updating its style. This way UpdateStyle can walk the control
7997 heirarchy to find the control if needed.
7998 so I don't need to create a new Point object all the time.
7999 * Form.cs: Let MDI windows handle their border styles.
8000 - Set styles on MDI windows so the correct title style is derived.
8001 * MdiChildContext.cs: Move all the painting and window handling
8002 into the non client area.
8003 - Use correct sizing and put correct buttons on frames based on
8004 the FormBorderStyle.
8005 - Notify the mdi client about scrolling
8006 - Need to handle the buttons ourselves now, because they are all
8007 in non client areas and we can't add controls there.
8008 * MdiClient.cs: Halfway to scrolling, this implementation is
8009 somewhat broken though, we need to check to make sure other
8010 windows aren't causing scrolling before removing the bars. Also
8011 the bars need to be drawn on top, maybe I can switch implicit
8012 controls to be on top.
8013 * Hwnd.cs: caption_height and tool_caption_height are now
8014 properties of an hwnd, this way they can be set by the driver
8015 based on the type of window they are. In X11 the window manager
8016 handles the decorations so caption_height is zero unless its an
8018 - Add 3 pixel borders for MDI windows (0xFFFF).
8019 - Get rid of some code duplication, have DefaultClientRectanle
8020 just call GetClientRectangle.
8021 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8023 - Set border styles differently for mdi windows.
8024 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8027 2005-11-15 Mike Kestner <mkestner@novell.com>
8029 * Menu.cs: when adding an item to the collection, if item is already
8030 parented, remove it from the parent.
8032 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
8034 * X11DesktopColors.cs: Added KDE support
8036 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
8039 - Clipboard methods now can translate Rtf format
8040 - No longer removes clipboard contents whenever a new format is added
8041 to allow placing multiple formats on the clipboard
8042 * Clipboard.cs: Clipboard now supports getting a IDataObject and
8043 will place all formats contained in it onto the clipboard. Also
8044 now cleans the clipboard before placing a new object onto it
8046 - Implemented set_Rtf
8047 - Implemented set_SelectedRtf
8048 - Created InsertRTFFromStream() method to allow single code base
8049 for all properties and methods that insert RTF into document
8050 - Removed debug output
8052 - Fixed Delete(int) to fix up line numbers
8053 - Fixed ReplaceSelection to combine start and end line
8054 - Fixed serious DeleteChars bug that would leave the document tree
8056 - Improved DumpTree with several logic checks to detect broken
8058 - Removed debug lines
8059 - Fixed Caret.WordForward/WordBack moving code, now always also
8060 updates caret.tag (fixes crash when word-selecting across tag
8061 boundaries via keyboard)
8062 - Added Insert() method for inserting multiline text into documents
8063 - Fixed DeleteChars() calculation errors that would cause a broken
8064 tag chain with multiple tag lines
8065 - DeleteChars() no longer crashes on multi-tag lines if not all tags
8066 - Split() no longer moves caret if split is at caret location
8067 - ReplaceSelection() now updates the cursor and re-displays it
8068 - ReplaceSelection() now uses new Insert() method to avoid code
8070 - FormatText() can now handle formatting partial lines
8072 - Append now uses new TextControl.Insert() method (this avoids
8074 - Implemented Ctrl-X (Cut) (
8075 - Implemented Ctrl-C (Copy)
8076 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
8077 regeneration when pasting text; roundtripping Copy&Paste within
8078 edit control still fails due to some calculation bugs in GenerateRTF)
8079 - The Delete key will now remove the current selection if it is visible
8080 * TextBox.cs: Removed debug lines
8081 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
8082 driver to be initialized and can't therefore be done via a static ctor)
8084 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
8086 * TextControl.cs: Added backend code for finding char arrays and strings
8088 - Added mouse wheel scroll support
8089 - Added support for VScroll and HScroll events
8091 - Implemented all seven Find() variants
8092 - Implemented GetCharFromPosition()
8093 - Implemented GetCharIndexFromPosition()
8094 - Implemented GetLineFromIndex()
8095 - Implemented GetPositionFromCharIndex();
8096 - Implemented SaveFile for PlainText and UnicodeText
8097 - Fixed set_Font, now setting a new font applies that font to
8099 - Implemented generic Document to RTF converter
8100 - Implemented SaveFile for RichText format (still missing unicode
8101 conversion for non-ansi chars)
8102 - Implemented get_Rtf
8103 - Implemented get_SelectedRtf
8105 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
8107 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
8108 to allow any captures to be released before triggering OnClick. This
8109 way a click handler may capture the mouse without interference.
8110 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
8111 This way we send them even though X may not allow a grab (if the window
8112 isn't visible, for example)
8114 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
8116 * DataGridViewRowEventArgs.cs: DataGridView implementation
8117 * DataGridViewElement.cs: DataGridView implementation
8118 * DataGridViewComboBoxCell.cs: DataGridView implementation
8119 * DataGridViewDataErrorContexts.cs: DataGridView implementation
8120 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
8121 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
8122 * ImageLayout.cs: DataGridView implementation
8123 * DataGridViewComboBoxColumn.cs: DataGridView implementation
8124 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
8125 * DataGridViewSelectionMode.cs: DataGridView implementation
8126 * IDataGridViewEditingControl.cs: DataGridView implementation
8127 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
8128 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
8129 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
8130 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
8131 * DataGridViewColumnSortMode.cs: DataGridView implementation
8132 * DataGridView.cs: DataGridView implementation
8133 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
8134 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
8135 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
8136 * Padding.cs: DataGridView implementation
8137 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
8138 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
8139 * DataGridViewRowEventHandler.cs: DataGridView implementation
8140 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
8141 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
8142 * DataGridViewButtonCell.cs: DataGridView implementation
8143 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
8144 * DataGridViewEditMode.cs: DataGridView implementation
8145 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
8146 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
8147 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
8148 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
8149 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
8150 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
8151 * DataGridViewCellEventHandler.cs: DataGridView implementation
8152 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
8153 * DataGridViewCellStyleConverter.cs: DataGridView implementation
8154 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
8155 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
8156 * DataGridViewColumnEventArgs.cs: DataGridView implementation
8157 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
8158 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
8159 * QuestionEventArgs.cs: DataGridView implementation
8160 * IDataGridViewEditingCell.cs: DataGridView implementation
8161 * DataGridViewTriState.cs: DataGridView implementation
8162 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
8163 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
8164 * DataGridViewColumnCollection.cs: DataGridView implementation
8165 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
8166 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
8167 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
8168 * DataGridViewColumn.cs: DataGridView implementation
8169 * DataGridViewCellBorderStyle.cs: DataGridView implementation
8170 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
8171 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
8172 * DataGridViewRow.cs: DataGridView implementation
8173 * DataGridViewImageCellLayout.cs: DataGridView implementation
8174 * DataGridViewImageCell.cs: DataGridView implementation
8175 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
8176 * DataGridViewCheckBoxCell.cs: DataGridView implementation
8177 * DataGridViewHeaderCell.cs: DataGridView implementation
8178 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
8179 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
8180 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
8181 * DataGridViewTextBoxColumn.cs: DataGridView implementation
8182 * QuestionEventHandler.cs: DataGridView implementation
8183 * DataGridViewCellStyleScopes.cs: DataGridView implementation
8184 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
8185 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
8186 * DataGridViewCell.cs: DataGridView implementation
8187 * DataGridViewCellEventArgs.cs: DataGridView implementation
8188 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
8189 * DataGridViewCellStyle.cs: DataGridView implementation
8190 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
8191 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
8192 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
8193 * TextFormatFlags.cs: DataGridView implementation
8194 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
8195 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
8196 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
8197 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
8198 * DataGridViewButtonColumn.cs: DataGridView implementation
8199 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
8200 * HandledMouseEventArgs.cs: DataGridView implementation
8201 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
8202 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
8203 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
8204 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
8205 * DataGridViewRowCollection.cs: DataGridView implementation
8206 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
8207 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
8208 * DataGridViewHitTestType.cs: DataGridView implementation
8209 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
8210 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
8211 * DataGridViewColumnEventHandler.cs: DataGridView implementation
8212 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
8213 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
8214 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
8215 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
8216 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
8217 * DataGridViewContentAlignment.cs: DataGridView implementation
8218 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
8219 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
8220 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
8221 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
8222 * DataGridViewPaintParts.cs: DataGridView implementation
8223 * DataGridViewCellCollection.cs: DataGridView implementation
8224 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
8225 * DataGridViewImageColumn.cs: DataGridView implementation
8226 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
8227 * DataGridViewElementStates.cs: DataGridView implementation
8228 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
8229 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
8230 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
8231 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
8232 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
8233 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
8234 * DataGridViewRowHeaderCell.cs: DataGridView implementation
8235 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
8236 * DataGridViewTextBoxCell.cs: DataGridView implementation
8237 * DataGridViewBand.cs: DataGridView implementation
8238 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
8239 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
8240 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
8241 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
8242 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
8243 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
8244 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
8245 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
8246 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
8247 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
8248 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
8250 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
8252 * ThemeWin32Classic.cs:
8253 - Draw the outside focus rectangle around buttons
8254 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
8255 doesn't use end caps for every dash of a line anymore. This
8256 workaround ignores the forecolor.
8258 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
8260 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
8263 2005-11-07 Jackson Harper <jackson@ximian.com>
8265 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
8267 2005-11-07 Jackson Harper <jackson@ximian.com>
8269 * ScrollableControl.cs: Calculate the maximum and change vars
8270 (more) correctly so that scrollbars appear as a sensible size.
8272 2005-11-04 Jackson Harper <jackson@ximian.com>
8274 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
8276 * TreeView.cs: When the tree is sorted null out the top_node so
8277 that it is recalculated.
8278 - Use dotted lines instead of dashed lines to match MS better.
8280 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
8283 - Implements key search for items. Useful when browsing files with FileDialog
8284 - When changing view mode or when clear the items reset scrollbar positions
8286 2005-11-04 Jackson Harper <jackson@ximian.com>
8288 * CurrencyManager.cs: Implement the MetaDataChanged event, the
8289 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8290 as to what the method may do as there is no real way of creating a
8291 derived CurrencyManager and calling the method.
8293 2005-11-03 Jackson Harper <jackson@ximian.com>
8295 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8296 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8297 method which seems to just be used internally to refresh the tabs.
8299 2005-11-03 Jackson Harper <jackson@ximian.com>
8301 * TabControl.cs: Implement the remove method. Fix some broken
8304 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8306 * DateTimePicker.cs:
8307 - Added missing DateTimePickerAccessibleObject class
8308 - Added missing events
8309 - Added OnFontChanged method
8310 * Form.cs: Added missing attributes
8311 * TreeView.cs: Added missing attributes
8313 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8315 * GridItemCollection.cs: Fix signatures
8317 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8319 * XplatUI.cs: Updated build rev/date
8320 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
8321 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8322 * Application.cs: Trigger context-specific ExitThread events
8324 2005-11-03 Jackson Harper <jackson@ximian.com>
8328 * GridTableStylesCollection.cs:
8333 * MonthCalendar.cs: Signature fixes
8335 2005-11-03 Jackson Harper <jackson@ximian.com>
8337 * TreeNodeCollection.cs: Remove should not be virtual.
8338 * TreeView.cs: Implement the last of the missing methods.
8340 2005-11-03 Jackson Harper <jackson@ximian.com>
8342 * TreeNodeConverter.cs: Implement to get off my class-status back.
8344 2005-11-03 Jackson Harper <jackson@ximian.com>
8346 * TreeView.cs: Hookup the bits for drag and drop.
8347 * TreeNode.cs: Don't cache the tree_view or index anymore, now
8348 that nodes can be moved from tree to tree easily this just causes
8349 all sorts of problems.
8350 * TreeNodeCollection: Don't need to give treenodes an index and
8351 treeview anymore when they are added, these are computed on the
8352 fly. Also make sure to remove a node before its added.
8354 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8357 - Added CaretSelection enum
8358 - Added comparison methods to Marker struct, makes selection code
8360 - Added SelectionStart and SelectionEnd as 'moveable' location for
8361 the CaretDirection enum and handler
8362 - Added selection_prev variable to track optimized invalidation for
8363 word and line selection
8364 - Added SelectionVisible property (returns true if there is a valid
8366 - Switched CaretHasFocus to only display the caret if there is no
8368 - Avoiding StringBuilder.ToString to retrieve a single char, instead
8369 using the direct character index; should be much faster
8370 - Added various conditional debug statements
8371 - Fixed invalidation calculation for selection ranges
8372 - Added ExpandSelection() method to support word and line selection
8373 - Switched SetSelectionToCaret to use new Marker compare overloads
8374 - Added central IsWordSeparator() method to determine word
8375 separators/whitespace and FindWordSeparator() to streamline common
8376 usage of IsWordSeparator()
8378 - Removed unneeded grabbed variable, it was just mirroring
8380 - No longer firing OnTextChanged event when Text setter is called,
8381 since the base will fire the event for us
8382 - Added handling of Ctrl-Up/Down selection
8383 - Added handling of Shift-Cursorkey selection
8384 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8386 - Added handling of Shift and Ctrl-Shift-Home/End selection
8387 - Removed some debug output
8388 - Added handling for single/double/tripple-click to place caret/
8389 select word/select line respectively (Fixes bug #76031)
8390 - Added support for drag expansion of word/line selection
8391 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8394 2005-11-02 Jackson Harper <jackson@ximian.com>
8396 * X11Dnd.cs: If the drag is going to and from a MWF window just
8397 copy the data instead of sending it out through the X Selection
8400 2005-11-02 Jackson Harper <jackson@ximian.com>
8403 * XplatUIX11.cs: When in a drag we don't want motion notify
8404 messages to get passed on to the other controls. This prevents
8405 mouse move messages from showing up in the drag source.
8407 2005-11-02 Jackson Harper <jackson@ximian.com>
8409 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
8410 the correct button is release to end a drag.
8411 * XplatUIX11.cs: Make the button state internal so the drag system
8412 can access it. Dragging needs to know about all button releases,
8413 not just left button.
8415 2005-11-02 Miguel de Icaza <miguel@novell.com>
8417 * Form.cs (Icon): If the icon is null, reset the icon to the
8420 * Cursor.cs: When writing the AND-mask bitmap do not include the
8421 number of colors, but hardcode those to two (black and white),
8422 fixes the loading of color cursors (Paint Dot Net).
8424 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8425 turn off autoscaling.
8427 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8429 2005-11-02 Jackson Harper <jackson@ximian.com>
8431 * X11Dnd.cs: Make sure to send a status message if the pointer
8432 enters a control that can not accept a drop, otherwise the cursor
8433 isn't updated correctly. Also tried to compress the lines of code
8436 2005-11-02 Jackson Harper <jackson@ximian.com>
8438 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8439 set actions correctly. This isn't perfect as XDND and win32 have
8440 some differences on how you allow actions. I'll clear this up by
8441 adding a path for drag from MWF to MWF windows.
8442 * XplatUIX11.cs: Hook into the dnd system.
8444 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
8446 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8447 previously shown but they are no longer need it. Very obvious when
8448 browsing files with FileDialog.
8450 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
8452 * Control.cs: We always need to call OnPaintBackground. We pretty much
8453 ignore AllPaintingInWmPaint and always do the painting there, whether
8454 it's set or not, since we always ignore the WM_ERASEBKGND message
8455 (which we don't generate on X11). This fixes #76616.
8456 * Panel.cs: Removed unneeded background painting. This happens properly
8457 in Control.cs already
8459 2005-10-31 Mike Kestner <mkestner@novell.com>
8461 * Menu.cs: Add items to collection before setting their index.
8462 * MenuItem.cs : add range checking with ArgumentException like MS.
8465 2005-10-31 Jackson Harper <jackson@ximian.com>
8467 * ListBox.cs: Invalidate if the area is visible at all not just
8468 contained in the visible rect. Fixes unselection of semi visible
8471 2005-10-31 Jackson Harper <jackson@ximian.com>
8473 * Control.cs: Consistently name the dnd methods. Make them
8474 internal so we can override them to match some MS behavoir
8476 * Win32DnD.cs: Use the new consistent names.
8478 2005-10-31 Jackson Harper <jackson@ximian.com>
8480 * TreeView.cs: Don't draw the selected node when we lose focus.
8482 2005-10-31 Jackson Harper <jackson@ximian.com>
8484 * X11Dnd.cs: We still need to reset the state even though a full
8485 reset isn't being done, otherwise status's still get sent all over
8488 2005-10-31 Jackson Harper <jackson@ximian.com>
8490 * Control.cs: Make the dnd_aware flag internal so the dnd
8491 subsystem can check it. Catch exceptions thrown in dnd handlers to
8493 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8494 * X11Dnd.cs: Handle null data in the converters. Set the XDND
8495 version when sending a XdndEnter. Use the control/hwnd dnd_aware
8496 flags to reduce the number of dnd enters/status's sent.
8498 2005-10-31 Jackson Harper <jackson@ximian.com>
8500 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8502 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
8504 * PictureBox.cs: Fixes 76512
8506 2005-10-28 Jackson Harper <jackson@ximian.com>
8508 * X11Dnd.cs: Early implementation to support winforms being a drag
8509 source for data on X11. Also restructured the converters so they
8510 can go both ways now.
8511 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8513 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
8515 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8518 2005-10-27 Jackson Harper <jackson@ximian.com>
8520 * TreeNode.cs: Implement serialization so my DnD examples will work.
8522 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
8524 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8525 TreeView.cs: Don't dispose objects that are not owned.
8527 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
8529 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8530 should retrieve the current cursor and report that, but XplatUI
8531 doesn't (yet) have an interface for that (and I'm not sure I even
8533 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8534 until any message loop processing is done (and the WM_SETCURSOR
8535 replaces the cursor to the proper one)
8537 - Fixed override behaviour, we can't set the cursor globally on X11,
8538 just for our windows.
8539 - Invalidating the System.Drawing X11 display handle when we are
8541 * Control.cs: Fix to make csc happy
8543 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
8546 - get_Text: Add last line (without trailing newline) to returned
8548 - get_TextLength: Count last line in returned length
8549 - ToString: Call Text property instead of duplicating code
8551 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
8553 * ImageList.cs: Dispose ImageAttributes objects.
8555 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8557 * ImageList.cs: Use attribute constructors with less arguments where
8560 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8562 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8563 Use typeof instead of strings when assembly is referenced. Added
8566 2005-10-21 Jackson Harper <jackson@ximian.com>
8568 * ListView.cs: Raise a double click event. Also tried to somewhat
8569 fix when the selectedindexchanged event is raised. Its still
8572 2005-10-21 Jackson Harper <jackson@ximian.com>
8574 * TreeView.cs: New method to invalidate the plus minus area of a
8575 node without invalidating the whole node (maybe this can be used
8576 in some more places).
8577 * TreeNodeCollection.cs: When adding to an empty node we need to
8578 invalidate its plus minus area so the little block shows up.
8580 2005-10-21 Jackson Harper <jackson@ximian.com>
8582 * TreeView.cs: Make sure that when we invalidate a node the bounds
8583 are big enough to cover the selected box and the focus
8584 rectangle. Use a different colour for the lines connecting nodes
8585 so they show up with all themes.
8587 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8589 * NativeWindow.cs: Don't call anything that could call into the driver,
8590 we might be on a different thread.
8592 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8594 * Control.cs(Dispose): Since Dispose might run on a different thread,
8595 make sure that we call methods that could call into the driver via
8596 invoke, to avoid thread issues
8598 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8600 * XplatUI.cs: Removed finalizer
8601 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8602 not allowing to be called on the finalizer thread.
8604 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
8607 - Reverted r51889 and r51891.
8608 - Added ImageListItem class that stores unmodified image items and image
8609 properties required to create list images until handle is created.
8610 - Added AddItem and moved image creation logic to AddItemInternal.
8611 - Added CreateHandle method that creates images based on unmodified items.
8612 - Added DestroyHandle that changes state to store unmodified items.
8613 - Add and AddStrip methods no more create handle.
8614 - ReduceColorDepth has no return value.
8615 - Dispose destroys handle.
8616 - Modified other methods to reflect the above changes.
8617 - Implemented key support.
8618 - Added profile 2.0 members and attributes.
8619 - Added private Reset and ShouldSerialize methods that provide the same
8620 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8621 them as they are private.
8622 - Added some more comments about implementation details.
8624 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8626 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8628 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8630 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8632 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8634 * DataGridDrawingLogic.cs: Fixes column hit calcultation
8635 * DataGridColumnStyle.cs: Remove debug message
8637 2005-10-20 Jackson Harper <jackson@ximian.com>
8639 * TreeView.cs: We can always get input keys regardless of whether
8640 or not editing is enabled. They are used for navigation.
8642 2005-10-20 Jackson Harper <jackson@ximian.com>
8644 * TreeNode.cs: Use the viewport rect for determining if a node
8645 needs to be moved for visibility. Don't use Begin/End edit. This
8646 calls a full refresh when its done.
8647 * TreeView.cs: New SetBottom works correctly. Make the viewport
8648 rect property internal so the treenodes can see it. When clicking
8649 on a node we need to ensure that its visible because it might just
8650 be partly visible when clicked.
8652 2005-10-20 Jackson Harper <jackson@ximian.com>
8654 * TreeNodeCollection.cs: Remove debug code.
8656 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8658 * Datagrid.cs: Implements column sorting in Datagrid
8659 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8661 2005-10-20 Jackson Harper <jackson@ximian.com>
8663 * TreeNodeCollection.cs: Remove items properly. Update the correct
8664 area after removing them.
8666 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8668 * Datagrid.cs: Should not call base.OnPaintBackground
8670 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8672 * XplatUIX11.cs (GetMessage):
8673 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8674 window instead of client window
8675 - Now properly calculates NC_xBUTTONUP message coordinates
8676 - ScreenToMenu now properly calculates it's coordinates of whole
8677 window, since menus are in the whole window, not in the client
8679 - Added WholeToScreen coordinate translation method
8681 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8683 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8684 want to return a message, loop back to the beginning of the function
8685 and grab the next real message to process instead.
8687 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8689 * Splitter.cs: Properly set limits if no filler control is used
8691 2005-10-19 Jackson Harper <jackson@ximian.com>
8693 * ColorDialog.cs: Don't show the help button if it is not enabled
8694 instead of disabling it (this is what MS does). Don't create the
8695 panel until the dialog is run, otherwise the vars (such as
8696 ShowHelp) are not set yet.
8698 2005-10-19 Jackson Harper <jackson@ximian.com>
8700 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8701 are reduced when adding nodes.
8703 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8706 2005-10-19 Jackson Harper <jackson@ximian.com>
8708 * FolderBrowserDialog.cs: End editing our treeview so the window
8709 actually gets refreshed.
8711 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8713 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
8714 Obsoleted handling of WM_ERASEBKGND, now always draws our background
8717 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8719 * MenuAPI.cs: Returns after Hidding window
8720 * XplatUIX11.cs: Added TODO found while debugging menu issues
8722 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8724 * XplatUIX11.cs: Do not re-map the whole window when it's size
8725 becomes non-zero unless it's supposed to be actually visible
8727 2005-10-18 Jackson Harper <jackson@ximian.com>
8729 * TreeView.cs: We don't need to keep a count anymore.
8730 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8731 use the Grow method.
8733 2005-10-18 Jackson Harper <jackson@ximian.com>
8735 * TreeNodeCollection.cs: Insert is not supported on arrays, so
8736 implement it manually here.
8738 2005-10-18 Jackson Harper <jackson@ximian.com>
8740 * ImageList.cs: Dont kill the list when the colour depth is
8741 changed, just change the colour depth of all the images.
8742 - Same goes for setting the image size. Just resize them all
8743 instead of killing the list softly.
8745 2005-10-18 Jackson Harper <jackson@ximian.com>
8747 * Control.cs: Don't invalidate empty rectangles.
8749 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8752 - Adds checked item to the Checked/Item lists (where empty before)
8753 - Do not add items to the Selected lists if they are already present
8755 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8756 - When deleting items make sure that we delete them for the Selected
8757 and Checked list also.
8759 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8761 * Label.cs: Dispose objects no longer used
8762 * ThemeWin32Classic.cs: Dispose objects no longer used
8764 2005-10-18 Jackson Harper <jackson@ximian.com>
8766 * TabControl.cs: Don't refresh the whole control when the tabs are
8767 scrolled, we just need to refresh the tab area.
8769 2005-10-17 Jackson Harper <jackson@ximian.com>
8771 * XplatUIX11.cs: Compress code a little bit. Only calculate the
8772 after handle when we need it.
8774 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8776 * Control.cs: When the parent size changes, recalculate anchor
8777 positions. Partial fix for #76462
8779 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8781 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
8784 2005-10-17 Jackson Harper <jackson@ximian.com>
8786 * MonthCalendar.cs: Don't create the numeric up down until our
8787 handle is created. Otherwise our handle is created in the
8788 constructor and we don't know if we are a WS_CHILD or WS_POPUP
8791 2005-10-17 Jackson Harper <jackson@ximian.com>
8793 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
8796 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8797 * TreeNode.cs : small logical fix (was using local var instead of field)
8799 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8801 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
8803 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8805 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
8807 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
8810 - Re-implemented anchoring code. My first version was really broken.
8811 This fixes bug #76033. Unlike the previous implementation we will
8812 no longer have round errors since all numbers are calculated from
8813 scratch every time. Removed various anchor-related obsolete vars.
8814 - InitLayout no longer causes layout event firing and layout to be
8817 2005-10-16 Jackson Harper <jackson@ximian.com>
8819 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
8822 2005-10-16 Jackson Harper <jackson@ximian.com>
8824 * TabControl.cs: Remove debug code.
8826 2005-10-16 Jackson Harper <jackson@ximian.com>
8828 * XEventQueue.cs: Increase the default queue size (very simple
8829 apps needed to grow the queue).
8830 * Hwnd.cs: No finalizer so we don't need to suppress
8831 finalization. Compute the invalid area manually so a new rectangle
8832 does not newto be created.
8833 * ScrollableControl.cs: Don't set any params (otherwise visibility
8834 isn't set correctly).
8835 * MdiChildContext.cs: New constructor takes the mdi parent so it
8836 doesn't have to be computed and avoids a crash on windows. Draw
8837 the window icon properly, and allow the text to be seen.
8838 * Form.cs: Use new MdiChildContext constructor. Make sure the
8839 child context isn't null in wndproc.
8840 * TabControl.cs: Don't set focus, this is muddling keyboard
8841 behavoir. Expand the tab rows when a window size increase will
8842 allow extra tabs to be seen. Don't allow tabs smaller than the
8843 width of a window to be scrolled out of view.
8845 * TreeView.cs: Use measure string to calculate a nodes width, the
8846 width is cached and only updated when the text or the font is
8847 changed. Don't check for expand/collapse clicks on the first level
8848 nodes if root lines are disabled.
8850 2005-10-16 Ritvik Mayank <mritvik@novell.com>
8852 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
8854 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8856 * DataGridBoolColumn.cs: fixes warning
8858 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8860 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
8861 to match more to match more precisely the MS Net behavior
8863 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8865 * Hwnd.cs: Added field to track if window is mapped
8867 - Unmap windows if they become 0-size, re-map when
8868 they are >0 again; fixes #76035
8869 - Re-set our error handler after initializing X11Desktop
8870 to override any error handlers Gtk or whatever was called
8873 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8875 * CheckedListBox.cs: Removed unused vars
8876 * ListView.cs: Fixed signatures
8877 * RichTextBox.cs: Removed unused vars
8878 * TextBoxBase.cs: Removed unused vars
8879 * XplatUIWin32.cs: Removed unused vars
8880 * XplatUIX11.cs: Removed unused vars
8881 * XplatUI.cs: Updated version and date to latest published
8883 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8885 * Cursor.cs: Added private .ctor to work around a bug in
8886 resourceset (Thanks to Geoff Norton for the help on this)
8887 * SplitterEventArgs.cs: Made fields accessible so we don't
8888 waste boatloads of objects and can reuse the same one
8890 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
8891 any captions and borders when generating screen coordinates
8892 * Splitter.cs: Reimplemented control, now fully complete, uses
8893 rubberband drawing, supports and obeys all properties, has
8896 2005-10-13 Miguel de Icaza <miguel@novell.com>
8898 * Form.cs (Form): Setup default values for autoscale and
8899 autoscale_base_size; Make these instance variables, not static
8902 (OnLoad): on the first load, adjust the size of the form.
8904 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8906 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
8907 width argument to DrawReversibleRectangle()
8908 * XplatUIWin32.cs, XplatUIX11.cs:
8909 - Implemented width for DrawReversibleRectangle()
8910 - Added logic to DrawReversibleRectangle that recognizes a zero
8911 width or height and only draws a line in that situation
8913 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8915 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
8916 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
8917 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
8918 method (it uses our FosterParent window to get a graphics context)
8920 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8922 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
8923 and SetWindowBackground methods
8925 - Setting proper ControlStyles
8926 - We no longer call XplatUI.SetWindowBackground and XplatUI.
8927 EraseWindowBackground, instead we draw the window background
8928 ourselves in PaintControlBackground. This behaviour is
8929 required to match MS, where, when OnPaintBackground is not
8930 called, the background is not drawn.
8931 - Removed unneeded Refresh() in set_Text
8932 * Hwnd.cs: Dropped the ErasePending support. No longer needed
8934 - Created DeriveStyles method to translate from CreateParams to
8935 FormBorderStyle and TitleStyle, also handles BorderStyle (which
8936 matches FormBorderStyle enum values)
8937 - Consolidated SetHwndStyles and CalculateWindowRect border/title
8938 style calculations into single DeriveStyles method
8939 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
8940 from redrawing the whole window on any resize or expose.
8941 - Fixed CreateWindow usage of SetWindowValuemask. Before not
8942 all styles were applied to our whole/client window appropriately
8943 - Removed EraseWindowBackground() and SetWindowBackground() methods
8944 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
8945 no longer clear/redraw the background through X
8946 - Removed handling of erase_pending bit, we have no use for it (or
8949 - Removed generation and handling of WM_ERASEBKGND message
8950 - Removed EraseWindowBackground() and SetWindowBackground() methods
8951 - Removed handling of hwnd.ErasePending flag
8953 - Removed EraseWindowBackground() and SetWindowBackground() methods
8954 - We no longer call EraseWindowBackground on PaintEventStart, we
8955 ignore the fErase flag, erasing is handled in Control in the
8957 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
8958 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
8959 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
8960 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
8961 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
8962 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
8963 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
8965 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
8967 * PropertyGrids.cs: Get sub properties
8968 * PropertyGridView.cs: Fix drawing code
8970 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8972 * ListBox.cs: Fixes 76383
8974 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8976 * DataGridTextBoxColumn.cs: Sets location and size before attachment
8977 * ThemeWin32Classic.cs: Fixes border drawing and calculations
8978 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
8981 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8983 * ComboBox.cs: Fixes border drawing
8985 2005-10-10 Miguel de Icaza <miguel@novell.com>
8987 * MimeIcon.cs: Ignore errors if the file can not be read.
8989 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8991 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
8992 - Fixed border calculations
8993 - Fixed horizontal scrolling in single column listboxes
8994 - Fixed drawing issues
8996 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
8998 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
8999 FormBorderStyle enum
9000 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
9001 code to determine FormBorderStyles from CreateParams
9003 - Fixed bug where we'd set the wrong window styles if we were
9004 not creating an MDI window
9005 - Added call to XplatUI.SetBorderStyle when form borders are set
9006 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9008 - Removed obsolete edge style
9009 - Switched from BorderStyle to FormBorderStyle
9011 2005-10-10 Jackson Harper <jackson@ximian.com>
9013 * Form.cs: Use the property to get the window handle instead of
9014 accessing it directly. Prevents a null reference exception.
9016 2005-10-10 Jackson Harper <jackson@ximian.com>
9018 * TreeView.cs: Don't adjust the rect given to DrawString now that
9019 our libgdiplus draws correctly.
9021 2005-10-08 Jackson Harper <jackson@ximian.com>
9023 * TreeView.cs: Don't try to find the clicked on node if there are
9024 no nodes in the tree.
9026 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9032 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9034 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9035 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9037 Use ResPool for brushes and dispose System.Drawing objects that
9038 are not used anymore.
9040 2005-10-07 Jackson Harper <jackson@ximian.com>
9042 * MdiChildContext.cs: Use the new borders instead of drawing them
9045 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9047 * Calling UpdateBounds after changing the window's BorderStyle
9048 since the style can change the ClientSize
9050 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9052 * Control.cs: Made PaintControlBackground virtual
9053 * Panel.cs: Overriding PaintControlBackground instead of using paint
9054 event; paint event method was interfering with 'real' users of the
9057 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9059 * ThemeWin32Classic.cs: remove border drawing since it is handled
9060 by the base control class now and was causing double border drawing.
9062 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9064 * Panel.cs: Redraw our background on paint. Not a pretty solution,
9065 but it does seem to match MS behaviour. This fixes bug #75324
9067 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9069 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9070 somewhat hackish looking
9072 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9075 - We now accept Enter even if AcceptEnter is false, if the containing
9076 form does not have an AcceptButton configured (fixes bug #76355)
9077 - Calculations are now fixed to no longer use Width/Height, but
9078 ClientSize.Width/Height, since we now support borders (this was
9079 a result of fixing borders and therefore bug #76166)
9080 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
9081 true (fixes bug #76354)
9083 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9086 - Defaulting BorderStyle and setting it in XplatUI when our window
9088 - Added enum check to InternalBorderStyle setter
9090 - Added drawing of window borders
9091 - Now properly calculates WM decorations offset for toplevel
9092 windows (fixes bug #74763)
9094 - Implemented BorderStyles for windows (we're letting win32 draw
9096 - Fixed the signature for SetWindowLong
9097 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
9098 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
9100 * UpDownBase.cs: Remove drawing of borders, this is handled by
9101 the driver, outside the client area
9102 * ListView.cs: Removed bogus border calculations. The control should
9103 be oblivious to borders, since those are not part of the client
9105 * X11DesktopColors.cs: Commented out (currently) unneeded variables
9106 * ThemeWin32Classic.cs: Removed border calculations from ListView
9109 2005-10-06 Jackson Harper <jackson@ximian.com>
9111 * MdiChildContext.cs: Clear out the old virtual position remove
9112 all the unneeded calls to CreateGraphics.
9114 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9116 * TextControl.cs: Use proper color for highlighted text; fixes #76350
9118 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9121 - Added loading and setting of our new default icon
9122 - Only set icon if window is already created
9124 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9127 - Do not explicitly set the foreground and background colors, to
9128 allow inheriting from parents (fixes #76302)
9129 - Use Control's InternalBorderStyle property to deal with borders
9131 2005-10-06 Jackson Harper <jackson@ximian.com>
9133 * MdiChildContext.cs: Use the new xplatui function to draw a
9136 2005-10-06 Jackson Harper <jackson@ximian.com>
9138 * Form.cs: Add the parent before creating the child context cause
9139 we need the parent when setting up the child.
9141 2005-10-06 Jackson Harper <jackson@ximian.com>
9143 * FolderBrowserDialog.cs: redo the tree population code so a
9144 second thread isn't used. Should be a lot faster and more stable
9147 2005-10-05 Jackson Harper <jackson@ximian.com>
9149 * TreeView.cs: There are no expand/collapse boxes if the node has
9152 2005-10-05 Jackson Harper <jackson@ximian.com>
9154 * X11DesktopColors.cs: Get menu colours for the gtk theme.
9156 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
9158 * FileDialog.cs: Fix InitialDirectory
9160 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
9163 - Fixes changing between styles
9165 - Fixes last item crashing when navigating with keyboard
9167 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
9169 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
9171 2005-10-05 Jackson Harper <jackson@ximian.com>
9173 * TreeView.cs: If updating the root node do a full refresh.
9174 * TreeNode.cs: The root node should be expanded by default. Also
9175 added a utility prop to tell if we are the root node.
9176 * TreeNodeCollection.cs: Only refresh if the node we are being
9177 added to is expanded. Also added a comment on a potential
9180 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
9182 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
9183 in dispose method. Fixes #76330
9185 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
9187 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
9189 - Implements vertical and horizontal scrolling using XplatUI
9190 - Fixes keyboard navagation
9191 - Fixes EnsureVisible
9193 - Handles and draws focus properly
9196 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
9198 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
9199 Create handle. NET_2_0: Destroy handle when value is null.
9201 2005-10-03 Jackson Harper <jackson@ximian.com>
9203 * ScrollBar.cs: My last scrollbar patch was broken. This is a
9204 revert and a new patch to prevent the thumb from refreshing so
9207 2005-10-02 Jackson Harper <jackson@ximian.com>
9209 * ScrollBar.cs: Don't update position if it hasn't actually
9210 changed. This occurs when you hold down the increment/decrement
9211 buttons and the thumb gets to the max/min.
9213 2005-10-01 Jackson Harper <jackson@ximian.com>
9216 * MdiChildContext.cs:
9217 * MdiClient.cs: Implement ActiveMdiChild in Form.
9219 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
9221 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
9223 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
9225 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
9228 2005-09-30 Jackson Harper <jackson@ximian.com>
9230 * ListBox.cs: Don't do a full refresh unless some data has
9233 2005-09-30 Jackson Harper <jackson@ximian.com>
9235 * TreeView.cs: Make sure that the checkboxes size is factored in
9236 even when not visible.
9238 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9240 * FileDialog.cs: Fix Jordi's build break
9242 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
9245 - Use standard the Windows colours for the combobox as espected
9246 - Dispose objects that use resouces when no longer need them
9248 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9250 * X11DesktopColors.cs: Initial incomplete implementation
9251 * XplatUIX11.cs: Added call to initialize X11DesktopColors
9253 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9256 - Switched Theme color names to match the names defined in
9257 System.Drawing.KnownColors. Life's hard enough, no need to make
9259 - Added setters to all theme color properties so themes can set
9260 their color schemes. The setters also propagate the color changes
9261 to System.Drawing.KnownColors via reflection
9262 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
9263 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
9264 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
9265 use the new, more logical theme color names
9266 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
9268 * ThemeWin32Classic.cs:
9269 - Removed code to set the old classic Windows colors. Instead it
9270 now relies on the colors returned by System.Drawing.KnownColors
9271 which will be either modern static colors (Unix) or colors
9272 read from the user's configuration (Win32)
9273 - Updated to use the new, more logical theme color names
9274 - Switched DataGrid drawing code to use only Theme colors instead of
9275 a mix of System.Drawing.KnownColors and Theme colors
9276 - DrawFrameControl(): Removed code that fills the button area, the
9277 fill would overwrite any previous fill done by a control. This
9279 - Added DrawReversibleRectangle() stub
9280 * ScrollableControl.cs: Set visible state to false when scrollbars
9281 are removed (pdn fix)
9282 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
9283 DrawReversibleRectangle() method to allow drawing primitive
9285 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9287 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9289 * ImageList.cs: Add(Icon): Create handle.
9291 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
9294 * ThemeWin32Classic.cs:
9297 - Issues with drawing
9299 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9301 * ImageList.cs: Moved RecreateHandle back to ImageList as event
9302 source has to be the ImageList.
9304 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9306 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9308 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9310 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9312 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9314 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9316 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
9317 * GridItem.cs: Fixed TODOs
9318 * GridItemCollection.cs: Added ICollection interface
9320 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9322 * ImageList.cs: Resize icons when needed.
9324 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
9327 - Fixes GetBounds and returns on screen rects
9329 - Fixes vertical and horzintal scrolling of items
9330 * ThemeWin32Classic.cs:
9333 2005-09-29 Raja R Harinath <harinath@gmail.com>
9335 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9337 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
9339 * ImageList.cs: Added comments about handle creation. Moved Handle,
9340 HandleCreated and OnRecreateHandle implementations to ImageCollection.
9341 Handle is created in Add methods.
9343 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9345 * DataGridDrawingLogic.cs:
9346 - Takes rows into account on Colum calculations
9347 - Returns the column when clickig
9349 - Fixes default HitTestInfo values
9350 - Fixes HitTestInfo.ToString
9351 - Fixes ResetBackColor
9353 2005-09-28 Jackson Harper <jackson@ximian.com>
9355 * MdiChildContext.cs: Obey rules for fixed sized windows (no
9356 sizing or cursor changes). Also added some temp code to draw the
9357 titlebars text (Makes dev a little easier).
9359 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9361 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9363 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9365 * ListBox.cs: Fixes bug 76253
9367 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9369 * ImageList.cs: Added comments about the current implementation. Added
9370 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9371 Format32bppArgb to preserve transparency and can use Graphics.FromImage
9372 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9373 with Bitmap.LockBits for better performance. Revised the whole file to
9374 match MS.NET behaviour and provide better performance. Non-public
9375 interface members are calling public members even when they throw
9376 NotSupportedException for better maintainability. Moved ColorDepth,
9377 ImageSize, ImageStream and TransparentColor implementations to
9378 ImageCollection for better performance as these properties are not used
9380 * ImageListStreamer.cs: Added a new internal constructor that takes an
9381 ImageList.ImageCollection and serializes Images based on
9382 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9383 match ImageList property name.
9385 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
9387 * ListBox.cs: Fixes IndexFromPoint for last item
9389 2005-09-27 Jackson Harper <jackson@ximian.com>
9391 * Form.cs: Set the position of new mdi children correctly.
9393 2005-09-27 Jackson Harper <jackson@ximian.com>
9395 * MdiClient.cs: New mdi children need to be added to the back of
9396 the controls collection so the zorder is set correctly. Also add a
9397 count of all the child windows that have been created.
9399 2005-09-27 Jackson Harper <jackson@ximian.com>
9401 * Form.cs (CreateParams): Setup MDI forms correctly.
9403 2005-09-27 Jackson Harper <jackson@ximian.com>
9405 * MdiChildContext.cs:
9412 * ScrollableControl.cs:
9413 * ComboBox.cs: Add implicit controls using the new implict control
9414 functionality in ControlCollection. Also try to block multiple
9415 control add in a suspend/resume layout to save some cycles.
9417 2005-09-27 Jackson Harper <jackson@ximian.com>
9419 * Control.cs: Add functionality to the controls collection to add
9420 'implicit controls' these are controls that are created by the
9421 containing control but should not be exposed to the user. Such as
9422 scrollbars in the treeview.
9423 * Form.cs: The list var of the ControlsCollection is no longer
9424 available because of the potential of implicit controls getting
9425 ignored by someone accessing the list directly.
9427 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
9429 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9430 loose it's parent. (Fixed bug introduced in r49103 when we added
9431 setting the child parent to null on Remove)
9433 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
9435 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9436 * Splitter.cs: Added missing attributes for BorderStyle property.
9437 * TextBoxBase.cs: Marked Calculate* methods internal.
9438 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9441 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
9443 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9445 2005-09-25 Jackson Harper <jackson@ximian.com>
9447 * TreeView.cs: Update the node bounds correctly regardless of
9448 whether the node is visible.
9450 2005-09-25 Jackson Harper <jackson@ximian.com>
9452 * ImageList.cs: Don't dispose the image after it is added to the
9453 image list. Only reformat images that need to be resized.
9455 2005-09-25 Jackson Harper <jackson@ximian.com>
9457 * ImageList.cs: Don't set the format when changing the image.
9459 2005-09-25 Jackson Harper <jackson@ximian.com>
9461 * TreeView.cs: We can't just assume the node has a font. Use the
9462 treeviews font if no node font is available.
9464 2005-09-25 Jackson Harper <jackson@ximian.com>
9466 * TreeView.cs: Allow the scrollbars to be reset with negative
9468 - Don't add scrollbars to negative sized windows.
9470 2005-09-23 Jackson Harper <jackson@ximian.com>
9472 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9473 old Mono.Posix. Also remove some stray code that shouldn't have
9476 2005-09-23 Jackson Harper <jackson@ximian.com>
9478 * TreeView.cs: Attempt at proper sizing of the horizontal
9479 scrollbar. Also don't resize the scrollbars unless they are
9482 2005-09-23 Jackson Harper <jackson@ximian.com>
9484 * TreeView.cs: We don't need to expand the invalid area when the
9485 selection changes, as this is all drawn in the node's bounding
9486 box. The area needs to be expanded (previous typo was contracting
9487 it) when the focus rect moves.
9489 2005-09-23 Jackson Harper <jackson@ximian.com>
9491 * TreeView.cs: Display the selection box under the correct
9492 circumstances. We were rendering white text with no selection box
9495 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
9497 * TextControl.cs(Split): Now updates selection start/end if it points
9498 into a line that's being split. Fixes a FIXME and bug #75258
9500 2005-09-23 Jackson Harper <jackson@ximian.com>
9503 * ListControl.cs: Don't use the path when retrieving binding
9504 managers from the binding context. My bat sense tells me that the
9505 path is only used on insertion.
9507 2005-09-22 Jackson Harper <jackson@ximian.com>
9509 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9511 2005-09-22 Jackson Harper <jackson@ximian.com>
9513 * Splitter.cs: There are special cursors used for splitting.
9514 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9516 2005-09-22 Jackson Harper <jackson@ximian.com>
9518 * Splitter.cs: Change the cursor appropriately when the splitter
9519 is moused over, so the user actually knows there is a splitter
9522 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9524 * Label.cs : Fix ToString method to give same output as MS.NET
9526 2005-09-22 Jackson Harper <jackson@ximian.com>
9528 * TreeView.cs: Create the scrollbars when the handle is created
9529 and add them right away, just make them invisble. Also account for
9530 the window being shrunk vertically to the point that the vert
9531 scrollbar needs to be added.
9532 - Remove some 0.5 adjustments to get around anti aliasing issues.
9534 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
9536 * MainMenu.cs: Fixes default value
9537 * MenuItem.cs: Fixes default value
9539 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
9541 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9543 2005-09-21 Jackson Harper <jackson@ximian.com>
9545 * Control.cs: Don't try to set the border style on the window if
9546 it hasn't been created. When the window is created the border
9549 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9551 * Control.cs (Update): Don't call XplatUI if we don't have a
9554 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9556 * ContainerControl.cs: Instead of throwing an exception, print
9557 a one-time warning about Validate not being implemented
9558 * XplatUIWin32.cs: Removed debug output
9560 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9562 * Control.cs: Only set XplatUI background if we expect the windowing
9563 system to handle the background. This stops controls that draw their
9564 own background from flickering
9566 * XplatUIX11.cs: Support custom visuals and colormaps for window
9567 creation. This allows, amongst other things, using MWF X11 windows
9570 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9572 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9573 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9574 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9575 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9576 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9577 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9578 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9579 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9580 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9581 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9582 GridColumnStylesCollection.cs,
9583 IDataGridColumnStyleEditingNotificationService.cs,
9584 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9585 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9586 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
9587 TreeNodeCollection.cs, AmbientProperties.cs,
9588 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9589 DataObject.cs, ErrorProvider.cs, Splitter.cs,
9590 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9591 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9592 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9593 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9594 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9595 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9596 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9597 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9598 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9599 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9600 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9601 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9602 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9603 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9604 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9605 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9606 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9607 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9608 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9609 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9610 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9611 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9612 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9613 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9614 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9615 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9616 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9617 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9618 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9619 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9620 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9621 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9622 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9623 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9624 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9626 2005-09-21 Jackson Harper <jackson@ximian.com>
9628 * TreeNode.cs: Call Before/After Expand not Collapse when
9631 2005-09-20 Jackson Harper <jackson@ximian.com>
9633 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9635 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9639 - Fixes proper storing of subitems
9640 - Fixes not updated items
9642 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9644 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9645 things if our window handle isn't created yet. Also disabled
9646 debug for TextBoxBase
9648 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9650 * MenuAPI.cs: Remove filtering of events to allow menu usage
9652 2005-09-20 Miguel de Icaza <miguel@novell.com>
9654 * Cursor.cs: Allow null to be passed to Cursor.Current.
9656 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
9658 * ThemeWin32Classic.cs:
9659 - Change some private methods/fields to protected virtual so that
9660 they can be accessed and overriden in derived classes
9661 - First refactoring of some methods. Derived themes now don't
9662 need to duplicate the complete code from ThemeWin32Classic
9664 - Added nice StatusBar
9665 - Derive from ThemeWin32Classic and not Theme
9666 - Removed duplicate ThemeWin32Classic code
9668 2005-09-20 Miguel de Icaza <miguel@novell.com>
9670 * Control.cs (ControlCollection.Add): If the value null is passed
9671 the control is ignored.
9675 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9677 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9678 PostQuitMessage state.
9679 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9681 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9683 * Application.cs: Our constructor will never get called, move
9684 initialization to fields; fixes bug #75933
9686 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9689 - Allow files to be selected properly using file name
9691 - Add ability to change diretory (absolute / relative)
9692 using file name combo box.
9694 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9697 - Fixes Multicolumn listboxes item wrong calculations
9698 - Allows to click when only one item is in the listbox
9699 - Fixes crash when no items using keyboard navigation
9701 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
9703 * ComboBox.cs: Reverted almost everything from the latest patch which
9706 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
9709 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9711 - When DropDownStyle is Simple, it does not show scrollbar
9712 to the last item of the list.
9713 - When DropDownStyle is Simple, it crashed when the list was
9714 scrolled down with the down cursor key.
9715 - Fixed a bug that when DropDownStyle is DropDownList, the
9716 selected item was not shown.
9717 - The position of the selected item was not preserved when
9718 the next dropdown happened.
9719 * ThemeWin32Classic.cs:
9720 - Items were wrapped at the right end.
9721 * CheckedListBox.cs:
9724 - Items should be fully shown.
9725 - When resizing and vertical scrollbar disappeared, the item
9726 of index 0 should be on the top of the list.
9727 - GetItemRectangle should consider the size of ver. scrollbar
9729 - SizingGrip area should not be allocated when it is not
9731 - Now it reflects MinWidth of the containing panel and
9732 fixed a crash that happens when its width becomes so small.
9734 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9736 * CheckedListBox.cs: Fixes bug 76028
9737 * ListBox.cs: Fixes bug 76028
9739 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9741 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9742 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9744 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
9746 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9748 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9750 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
9752 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9754 * IRootGridEntry.cs: Added
9755 * PropertyGridCommands.cs: Added
9756 * PropertiesTab.cs: Added missing methods and property
9757 * PropertyGridView.cs: Made class internal
9758 * PropertyGridTextBox.cs: Made class internal
9760 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9762 * MimeIcon.cs: Try to check some other environment variables
9763 if "DESKTOP_SESSION" returns "default"
9765 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9767 * ThemeNice.cs: Corrected background colors (e.g. menus)
9768 * ColorDialog.cs: Use correct background colors for controls
9770 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9772 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
9774 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
9776 * RichTextBox.cs: Added initial implementation
9777 * lang.cs: Removed. Was accidentally checked in long time ago
9778 * TODO: Removed. Contents were obsolete
9780 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9782 * PropertiesTab.cs : Added
9784 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9786 * PropertyGrid.cs : Update
9787 * PropertyGridView.cs : Update
9788 * System.Windows.Forms.resx : Added images and strings
9790 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9792 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
9794 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9796 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
9797 a busy loop right after the Ungrab the X11 display is otherwise
9800 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
9802 * ThemeWin32Classic.cs: Optimise the use of clipping
9804 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
9806 * DataGrid.cs: fixes recursion bug
9808 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
9811 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
9814 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
9816 * ThemeNice.cs: Draw nice ProgressBars
9818 2005-09-01 Miguel de Icaza <miguel@novell.com>
9820 * VScrollBar.cs: Another buglet found by Aaron's tool.
9822 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
9825 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
9828 - Added nicer menu drawing
9832 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9834 * CreateParams.cs (ToString): Made output match MS
9835 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
9836 handle is already created (to avoid forcing window creation)
9837 * XplatUIX11.cs: Set window text to caption after creating window,
9838 in case Text was set before window was created
9839 * Form.cs: Use this.Text instead of a static string as caption
9841 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9843 * NotifyIcon.cs: Don't set the window to visible; this screws
9844 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
9845 OnPaint without a bitmap)
9846 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
9847 happen very often anyway; we could add the check to the WM_PAINT
9848 event generation code
9850 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9852 * NotifyIcon.cs: Fill the icon area with a background color, to
9853 avoid 'residue' when transparent icons are drawn
9855 - Handle whole_window == client_window when destroying windows
9856 - SystrayAdd(): Set client_window to whole_window value to
9857 get mouse and other events passed to NotifyIcon
9859 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9861 * Form.cs: Set proper default for Opacity property
9863 - ShowSystray(): Don't bother creating telling the OS
9864 about the systray item if no icon is provided
9865 - Now handles WM_NCPAINT message to deal with whole/client window
9867 - Create window as visible to not get caught by Expose optimization
9868 * Hwnd.cs: Removed debug message
9869 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
9870 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
9871 PaintEventStart/End to use new client argument
9873 - Commented out debug messages
9874 - Switched PaintEventStart/End to use new client argument
9875 * XplatUI.cs: Added client window bool to PaintEventStart()/
9876 PaintEventEnd() calls, to support drawing in non-client areas
9878 - Added client window bool to PaintEventStart()/PaintEventEnd()
9879 calls, to support drawing in non-client areas
9880 - Added conditional compile to allow using MWF BeginInvoke
9883 - Added some conditional debug output
9884 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
9885 whole/client window split
9886 - Implemented handling of client argument to PaintEventStart()/End()
9888 - Throw exception if BeginInvoke() is called and the window handle
9889 or one of the window's parent handles is not created
9890 - Added conditional compile to allow using MWF BeginInvoke on
9892 - get_Parent(): Only sets parent if handle is created. This avoids
9893 forcing window handle creation when parent is set.
9894 - Now fires Layout and Parent changed events in proper order
9895 - Switched to use Handle instead of window.Handle for Z-Order setting,
9896 the get_Parent() patch above causes us to possibly get null for 'window'
9897 - Implemented handling of client argument to PaintEventStart()/End()
9898 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
9900 - Now sends a Refresh() to all child windows when Refresh() is called
9902 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
9904 * Form.cs: Added (non-functional) Opacity property
9905 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
9907 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
9908 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
9909 use export MONO_THEME=nice to activate it.
9910 Currently supported controls:
9914 - TabControl (TabAlignment.Top only, other will follow)
9915 * ThemeEngine.cs: Add theme nice
9916 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
9919 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
9921 * Splitter.cs: Resize docked control and its neighbor.
9923 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9924 -- Making Windows with Menus layout correctly --
9925 * Form.cs : The first leg of the fix
9926 Menu setter - adjust Client Size as needed to make space for the menu
9927 SetClientSizeCore - doesn't call base version to be able to pass the
9928 menu handle to XplatUI.CalculateWindowRect
9929 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
9930 * XplatUIX11.cs: The critical second leg of the fix
9931 GetWindowPos needs to use a recalculated client_rect
9932 so that resizing the window doesn't break layout of child controls.
9933 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
9936 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
9938 * Label.cs: Now properly recalculates width and height on Font and Text
9939 changes if AutoSize is set
9941 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9942 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
9944 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
9946 * ImageList.cs: Makes ToString method compatible with MS
9948 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
9950 * MenuAPI.cs: fixes bug 75716
9952 2005-08-11 Umadevi S <sumadevi@novell.com>
9953 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
9955 2005-08-11 Umadevi S <sumadevi@novell.com>
9956 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
9958 2005-08-10 Umadevi S <sumadevi@novell.com>
9959 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
9961 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
9963 * Menu.cs: fixes bug 75700
9964 * MenuAPI.cs: fixes navigation issues
9966 2005-08-09 Umadevi S <sumadevi@novell.com>
9967 * CheckedListBox.cs - simple fix for GetItemChecked.
9969 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
9971 * ComboBox.cs: Serveral fixes
9972 * ListBox.cs: Serveral fixes
9974 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9976 * ComboBox.cs: Fixes FindString methods and GetItemHeight
9977 * ListBox.cs: Fixes FindString methods
9979 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9981 * DataGrid.cs: fixes bugs exposed by new tests
9983 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
9985 * Mime.cs: Compile Mono assembly references only if compiling
9986 with Mono (Allows to build with VS.Net again)
9988 2005-07-28 Marek Safar <marek.safar@seznam.cz>
9990 * Control.cs (PaintControlBackground): Draw background image
9992 (CheckForIllegalCrossThreadCalls): Stubbed.
9994 * Form.cs (OnCreateControl): Center when should be centered.
9996 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
9998 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
10000 * Binding.cs: Binding to properties should be case unsensitive
10002 2005-07-18 vlindos@nucleusys.com
10004 * DataGrid.cs: fixes setmember order
10006 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
10008 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10009 * FileDialog.cs: FileDialog is now resizable and uses the new
10012 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
10014 * DataGridTextBoxColumn.cs: default value
10015 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10016 * GridTableStylesCollection.cs: fixes checking MappingName
10017 * DataGridDrawingLogic.cs: fixes drawing logic issues
10018 * DataSourceHelper.cs: rewritten to make compatible with more data sources
10019 * DataGrid.cs: fixes
10021 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
10023 * MimeGenerated.cs: Use case sensitive comparer for
10024 NameValueCollections
10026 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
10028 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
10029 * ThemeWin32Classic.cs: bug fixes, code refactoring
10030 * DataGridDrawingLogic.cs: bug fixes, code refactoring
10031 * DataGrid.cs: bug fixes, code refactoring
10032 * DataGridTextBox.cs: bug fixes, code refactoring
10033 * DataGridColumnStyle.cs: bug fixes, code refactoring
10034 * Theme.cs: bug fixes, code refactoring
10036 2005-07-01 Peter Bartok <pbartok@novell.com>
10038 * TextControl.cs: Quick fix for the reported crash on ColorDialog
10039 and other text box usage
10041 2005-07-01 Jackson Harper <jackson@ximian.com>
10043 * TabControl.cs: Make sure the bottom of the tab covers the pages
10046 2005-06-30 Peter Bartok <pbartok@novell.com>
10048 * Form.cs (ShowDialog): Assign owner of the dialog
10049 * TextBoxBase.cs: Always refresh caret size when deleting, caret
10050 might have been moved to a tag with different height
10052 2005-06-30 Jackson Harper <jackson@ximian.com>
10054 * Form.cs: Don't create an infinite loop when setting focus
10055 * MenuItem.cs: Don't dirty the parents if we don't have any
10057 2005-06-29 Ben Maurer <bmaurer@ximian.com>
10059 * LibSupport.cs: Rename
10061 2005-06-29 Peter Bartok <pbartok@novell.com>
10063 * TextBoxBase.cs: Re-align caret after deleting a character
10065 - DeleteChars(): Ensure that tag covers the provided position
10066 - StreamLine(): Drop reference for dropped tag
10068 2005-06-29 Peter Bartok <pbartok@novell.com>
10071 - Selections now work properly, anchoring at the initial location
10072 and properly extending in either direction (SetSelectionToCaret(),
10073 SetSelectionStart() and SetSelectionEnd())
10074 - No longer redraws the whole control on selection change, now
10075 calculates delta between previous and new selection and only
10076 invalidates/redraws that area
10077 - Fixed FindPos() math off-by-one errors
10078 - Changed DeleteChars() to verify the provided tag covers the
10079 provided position, selections may have a tag that doesn't cover
10080 the position if the selection is at a tag border
10081 - Fixed off-by-one errors in DeleteChars()
10082 - Added missing streamlining check in DeleteChars() to remove
10084 - Implemented Invalidate() method, now properly calculates exposures
10085 between two given lines/positions
10086 - Implemented SetSelection()
10087 - Obsoleted and removed FixupSelection()
10088 - Improved RecalculateDocument() logic, removing code duplication
10090 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10092 * LibSupport.cs: changes to match different input/output arguments.
10094 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10096 * LibSupport.cs: added libsupport.so init routine.
10098 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
10100 * ControlBindingsCollection.cs
10101 - Throws an exception on null datasource when adding
10102 - Checks for duplicated bindings when adding
10104 2005-06-28 Jackson Harper <jackson@ximian.com>
10106 * TreeView.cs (OnKeyDown): Support left and right properly
10107 (navigates as well as expanding and collapsing.
10108 - Add support for Multiply, this expands all the selected nodes
10110 - Fix some tabbing.
10112 2005-06-28 Jackson Harper <jackson@ximian.com>
10114 * TreeView.cs: Implement keyboard navigation, currently supports,
10115 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
10116 support for toggling checkboxes with the space bar.
10118 2005-06-28 Jackson Harper <jackson@ximian.com>
10120 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
10123 2005-06-28 Jackson Harper <jackson@ximian.com>
10125 * TreeView.cs: Add missing event.
10127 2005-06-27 Peter Bartok <pbartok@novell.com>
10130 - Made line ending size configurable (now allows for counting
10131 lineendings as \n or \r\n)
10132 - Added margin to viewport to keep caret visible on right side
10133 - Fixed translation routines for line/pos to documentpos to consider
10134 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
10135 - Fixed some line-endings to be unix style
10136 - Fixed Document.FormatText to perform it's calculations 1-based
10137 - Added descriptions for a few methods that might otherwise get
10139 - Added NOTE section with some basic conventions to remember at
10140 the top of the file
10141 - Major fixup for RichTextBox selection drawing:
10142 * Fixed crashes when multiple tags on a single line were selected
10143 * fixed selection box drawing not overlaying text
10144 * fixed bogus offset calculation for tags not starting at index 1
10145 * Switched behaviour from using multiple Substrings of a
10146 StringBuilder.ToString() to using multiple
10147 StringBuilder.ToString(start, length) statements, hoping this is
10148 faster (kept original version commented out in the code, in case
10149 original version was faster)
10150 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
10152 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
10155 2005-06-27 Jackson Harper <jackson@ximian.com>
10157 * TabControl.cs: Move to the left and right with the arrow
10158 keys. These keys don't cycle beyond first and last like
10159 tab. Refresh all the tabs when scrolling them to the left or
10162 2005-06-27 Jackson Harper <jackson@ximian.com>
10165 - ToString: Added method
10166 - CreateParams: Remove TODO and comment
10167 - OnKeyDown: Cycle through bounds properly.
10168 - SelectedIndex: Scroll to the right or left if we need to
10169 display the newly selected tab.
10171 2005-06-23 Jackson Harper <jackson@ximian.com>
10173 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
10176 2005-06-23 Jackson Harper <jackson@ximian.com>
10178 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
10179 CTRL-SHIFT-TAB, and HOME, END are there any others?
10181 2005-06-23 Jackson Harper <jackson@ximian.com>
10183 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
10185 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
10187 * DataGridTextBoxColumn.cs: fixes and enhancements
10188 * ThemeWin32Classic.cs: fixes and enhancements
10189 * DataGridBoolColumn.cs: fixes and enhancements
10190 * DataGridDrawingLogic.cs: fixes and enhancements
10191 * CurrencyManager.cs: fixes and enhancements
10192 * DataGrid.cs: fixes and enhancements
10193 * DataGridColumnStyle.cs: fixes and enhancements
10195 2005-06-22 Jackson Harper <jackson@ximian.com>
10197 * TabControl.cs: Add some missing methods that just call into the
10198 base. Make the TabPageCollection's IList interface behave in the
10199 same manner as the MS implementation.
10201 2005-06-22 Peter Bartok <pbartok@novell.com>
10203 * TextControl.cs: Added sanity check
10205 - Fixed wrapping behaviour, don't set wrap on single line controls
10206 (this fixes the breakage of colordialog introduced in an earlier
10208 - Added rudimentary support for autoscrolling right-aligned controls
10209 (still needs fixing, also, center alignment scroll is missing)
10211 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
10213 * ScrollBar.cs: Fixes thumbpos on Maximum values
10215 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
10217 * PropertyGridView.cs: Pass context information to UITypeEditors
10219 2005-06-21 Peter Bartok <pbartok@novell.com>
10222 - Now calling PositionCaret with absolute space coordinates
10223 - Enabled vertical scrolling
10224 - Better tracking of scrollbar changes, tied into WidthChange
10226 - Improved cursor tracking
10227 - Removed debug output
10229 - PositionCaret coordinates are now works in absolute space, not
10231 - Improved tracking of document size
10232 - Added events for width and height changes
10234 2005-06-21 Peter Bartok <pbartok@novell.com>
10236 * Form.cs: Set focus to active control when form is activated
10238 - Added word-wrap functionality to RecalculateLine()
10239 - Added some short function descriptions for VS.Net to aid in
10240 writing dependent controls
10241 - Added Caret property, returning the current coords of the caret
10242 - Added ViewPortWidth and ViewPortHeight properties
10243 - Added Wrap property
10244 - Added CaretMoved event
10245 - Removed some old debug code
10246 - Split() can now create soft splits
10247 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
10248 - Added method to format existing text
10249 - Fixed size/alignment calculations to use viewport
10250 - RecalculateDocument now can handle changing line-numbers while
10254 - Added some wrap logic, we don't wrap if alignment is not left
10255 - Added casts for scrollbar var, base class switched types to
10256 also support RichTextBoxA
10257 - Implemented handling of scrollbar visibility flags
10260 - Switched scrollbars type to RichTextBoxScrollBars to support
10262 - Added tracking of canvas width/height
10263 - Switched scrollbars to be not selectable (to keep focus on text)
10264 - Added central CalculateDocument() method to handle all redraw
10266 - Added ReadOnly support
10267 - Added WordWrap support
10268 - Fixed handling of Enter key (we now treat it as a DialogKey)
10269 - Fixed caret positioning when h or v scroll is not zero
10270 - Fixed placing/generation of vertical scrollbar
10271 - Added CalculateScrollBars() method to allow updating scrollbar
10272 limits and visibility
10273 - Fixed handling of horizontal scroll
10274 - Added handling of vertical scroll
10275 - Implemented auto-'jump' when caret moves to close to a left or
10276 right border and there is text to be scrolled into view (currently
10277 there's the potential for a stack overflow, until a bug in
10278 scrollbar is fixed)
10280 2005-06-21 Geoff Norton <gnorton@customerdna.com>
10282 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
10284 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
10288 - return application/x-zerosize for files with size zero
10289 (if no extension pattern matches).
10290 - check matches collection for strings too.
10291 - return only the first mime type if the name value
10292 collection has more than one mime type.
10294 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
10296 * PropertyGrid.cs: Cleaned up some TODOs
10297 * PropertyGridView.cs: Added support for UITypeEditors
10299 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10301 * DataGrid.cs: clears cached value
10303 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10305 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10306 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10307 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10308 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10310 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
10312 * ThemeWin32Classic.cs: fixes colour
10314 2005-06-15 Peter Bartok <pbartok@novell.com>
10316 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10317 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10318 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10319 * Control.cs: Added some MWFCategory and MWFDescription attributes
10320 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10322 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
10324 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10327 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
10329 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10330 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10331 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10332 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10333 * DataGrid.cs: default datagrid settings for Default Styles, fixes
10334 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10336 2005-06-13 Jackson Harper <jackson@ximian.com>
10338 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10339 isn't printed when the user enables dropping. (X11 does accept
10342 2005-06-13 Jackson Harper <jackson@ximian.com>
10344 * TreeView.cs: Remove some TODOS.
10346 2005-06-13 Jackson Harper <jackson@ximian.com>
10348 * Form.cs: Hook into the mdi framework.
10349 * MdiClient.cs: Use the base control collections add method so
10350 parents get setup correctly. Set the default back colour and dock
10352 * MdiChildContext.cs: New class, this bad actor handles an
10353 instance of an MDI window. Right now there is only basic
10354 support. You can drag, close, and resize windows. Minimize and
10355 Maximize are partially implemented.
10357 2005-06-13 Jackson Harper <jackson@ximian.com>
10359 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10360 freaky when both vals are negative. NOTE: There are probably other
10361 places in XplatUIX11 that this needs to be done.
10363 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
10365 * DataGrid.cs: implement missing methods, move KeyboardNavigation
10366 * DataGridColumnStyle.cs: fixes signature
10368 2005-06-12 Jackson Harper <jackson@ximian.com>
10370 * XplatUIX11.cs: Use sizing cursors similar to the ones on
10373 2005-06-11 Jackson Harper <jackson@ximian.com>
10375 * StatusBarPanel.cs: Signature cleanups. Implement
10378 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
10380 * DataGridTextBoxColumn.cs: Honors aligment
10381 * GridColumnStylesCollection.cs: Contains is case unsensitive
10382 * GridTableStylesCollection.cs: several fixes
10383 * DataGridTableStyle.cs: default column creation
10384 * DataGridDrawingLogic.cs: fixes
10385 * CurrencyManager.cs: ListName property
10386 * DataGrid.cs: multiple styles support
10387 * DataGridColumnStyle.cs: fixes
10390 2005-06-10 Peter Bartok <pbartok@novell.com>
10392 * Control.cs(Select): Moved SetFocus call to avoid potential
10393 loops if controls change the active control when getting focus
10394 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10395 the up/down buttons
10397 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
10399 * ImageListConverter.cs: Implemented
10401 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10403 * MonthCalendar.cs: Wired in NumericUpDown control for year
10405 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10407 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10408 DoubleClick events, since they are not meant to be fired.
10410 2005-06-09 Peter Bartok <pbartok@novell.com>
10412 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10413 Jonathan's standalone controls into MWF, implemented missing
10414 events, attributes and methods; added xxxAccessible classes
10415 * AccessibleObject.cs: Made fields internal so other classes
10416 can change them if needed
10418 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
10420 * UpDownBase.cs: Complete implementation
10421 * NumericUpDown.cs: Complete implementation
10422 * DomainUpDown.cs: Complete implementation
10424 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
10426 * DataGridTextBoxColumn.cs: drawing fixes
10427 * DataGridCell.cs: fixes ToString method to match MSNet
10428 * DataGridTableStyle.cs: fixes
10429 * DataGridBoolColumn.cs: fixes, drawing
10430 * DataGridDrawingLogic.cs: fixes, new methods
10431 * DataGridTextBox.cs: Keyboard and fixes
10433 - Keyboard navigation
10435 - Row selection (single, multiple, deletion, etc)
10438 2005-06-07 Jackson Harper <jackson@ximian.com>
10440 * ThemeWin32Classic.cs: Clear the background area when drawing
10443 2005-06-06 Peter Bartok <pbartok@novell.com>
10445 * ImageListStreamer.cs: Fixed signature for GetData
10446 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10448 - Added missing ChildAccessibleObject class
10449 - Added missing OnXXXFocus overrides, switched to using those
10450 instead of the event handler
10452 - Added Parent property for ControlAccessibleObject
10455 - Added ResetBindings()
10456 * ListBindingConverter.cs: Implemented some methods
10457 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10458 * ImageList.cs: Implemented basic handle scheme, removed TODOs
10459 * ContainerControl.cs: Fixed signature, now subscribing to the
10460 ControlRemoved event instead of overriding the handler, LAMESPEC
10461 * CurrencyManager.cs: Added missing attribute
10462 * MonthCalendar.cs: Added missing properties
10464 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10466 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10468 2005-06-06 Gaurav Vaish and Ankit Jain
10470 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10471 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10473 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10475 * Control.cs: fixes CreateParams Width / Height.
10477 2005-06-05 Peter Bartok <pbartok@novell.com>
10479 * Win32DnD.cs: Removed compilation warnings
10481 2005-06-05 Peter Bartok <pbartok@novell.com>
10483 * Control.cs (CreateParams): Since we don't know if one of the
10484 properties we use is overridden, lets make sure if we fail accessing
10485 we continue with a backup plan
10487 2005-06-05 Peter Bartok <pbartok@novell.com>
10490 - Removed debug output
10491 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10493 - Plugged resource leak
10494 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10497 2005-06-05 Peter Bartok <pbartok@novell.com>
10499 * XplatUIWin32.cs: Removed DnD code
10500 * Win32DnD.cs: Implemented drop source and drop target functionality
10502 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10504 * UpDownBase.cs: remove duplicate addition of event, enable some code
10505 that was commented out.
10506 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10507 Validate input when a key is pressed. It works fine now for every
10508 combination of Hexadecimal. Only missing some drawing love when sharing
10509 space with other controls.
10511 2005-06-04 Peter Bartok <pbartok@novell.com>
10514 - We need to pass a window for DragDrop, so enable callback events
10515 - Added DnD callback events when being a DragSource
10516 * XplatUI.cs (StartDrag): Added window handle argument
10517 * XplatUIDriver.cs (StartDrag): Added window handle argument
10518 * QueryContinueDragEventArgs: Made fields internally accessible so
10519 drivers can set them
10520 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10523 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
10525 * DataGridTextBoxColumn.cs: column text editing
10526 * DataGridTableStyle.cs: Respect columns styles created by the user
10527 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10528 * DataGridBoolColumn.cs: bool column editing
10529 * DataGrid.cs: fixes to scrolling, properties, etc
10530 * DataGridTextBox.cs: handle keyboard
10531 * DataGridColumnStyle.cs: fixes
10533 2005-06-02 Jackson Harper <jackson@ximian.com>
10535 * ImageListStreamer.cs: Somewhat broken implementation of
10536 GetObjectData. The RLE needs some work to match MS properly.
10538 2005-06-02 Jackson Harper <jackson@ximian.com>
10540 * X11Dnd.cs: Attempting to keep at least one file in MWF
10543 2005-06-02 Peter Bartok <pbartok@novell.com>
10545 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10548 2005-06-02 Peter Bartok <pbartok@novell.com>
10550 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10551 * XplatUI.cs: Added DoDragDrop() method
10552 * XplatUIDriver.cs: Added DoDragDrop() method
10554 2005-06-02 Jackson Harper <jackson@ximian.com>
10556 * Splitter.cs: Implement BorderStyle.
10558 2005-06-02 Jackson Harper <jackson@ximian.com>
10560 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10561 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10564 2005-06-02 Peter Bartok <pbartok@novell.com>
10567 - Added Data setter
10568 - Fixed broken insertion code for SetData, now also
10569 overwrites any existing entry of the same format name
10570 * Hwnd.cs: Added list of pointers that automatically gets
10571 freed when the window is disposed
10572 * XplatUI.cs: Call driver initialization method when loading
10575 - OnDragLeave takes EventArgs, not DragEventArgs
10576 - Added setting of WS_EX_ACCEPTFILES style when dropping is
10578 - Forces style update when drop state changes
10579 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10580 not perfect since we cannot (yet) call the IDataObject.GetData()
10581 method, we keep getting 0x80004005 error, dunno why)
10583 2005-06-02 Peter Bartok <pbartok@novell.com>
10585 * DragEventArgs.cs: Make fields internal so we can cache the
10586 object and re-set the fields from XplatUI
10588 2005-06-02 Jackson Harper <jackson@ximian.com>
10590 * Control.cs: Add some internal methods so the DnD subsystem can
10591 raise DnD events. Also call into the driver when AllowDrop is set.
10593 * XplatUIDriver.cs: New method for setting whether or not a window
10594 is allowed to accept drag and drop messages.
10596 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
10598 * ScrollBar.cs: Make sure that values sent in Scroll events
10599 are always between Maximum and Minimum.
10601 2005-06-01 Marek Safar <marek.safar@seznam.cz>
10603 * Menu.cs: Call MenuChanged when menuitem visibility has been
10605 * MenuItem.cs: Rebuild menu when item is (not) visible.
10606 * MainMenu.cs: MainMenu has special MenuChanged.
10607 * Theme.cs: Caption and FrameBorderSize are not fixed.
10608 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10609 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10611 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10612 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10614 2005-05-30 Jackson Harper <jackson@ximian.com>
10616 * DataFormat.cs: We can't statically initialize this stuff because
10617 it calls into the xplatui and could create a loop. So we lazy init
10620 2005-05-28 Jackson Harper <jackson@ximian.com>
10622 * Control.cs: Proper implementation of Product(Name/Version).
10624 2005-05-27 Jackson Harper <jackson@ximian.com>
10626 * DataObject.cs: Dont crash if no data is found.
10628 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10629 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10630 as per status page, guessing it should be set to true
10632 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
10634 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10635 * DataGridTableStyle.cs: set proper formatting text, def header text
10636 * ThemeWin32Classic.cs: new themable paramaters
10637 * DataGridBoolColumn.cs: paint check box, get data, fixes
10638 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10639 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10640 * DataGridColumnStyle.cs: fixes
10641 * Theme.cs: new themable paramaters
10643 2005-05-26 Peter Bartok <pbartok@novell.com>
10645 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10647 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10648 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10650 2005-05-24 Peter Bartok <pbartok@novell.com>
10652 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10653 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10654 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10655 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10656 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10657 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10658 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10659 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10660 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10661 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10662 missing attributes, etc
10663 * DataGridPreferredColumnWidthTypeConverter.cs: Added
10665 2005-05-24 Peter Bartok <pbartok@novell.com>
10667 * Help.cs: Added, implemented trivial functions, throws up MessageBox
10668 when user tries to get help
10669 * DataObject.cs, DataFormats.cs, LinkArea.cs,
10670 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10671 to suppress warnings
10672 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10673 avoid unreachable code warning
10675 2005-05-20 Peter Bartok <pbartok@novell.com>
10677 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10679 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10681 * DataGridTextBoxColumn.cs: Basic painting methods
10682 * DataGridTableStyle.cs: Set table style in the column
10683 * ThemeWin32Classic.cs: Use Theme for colors
10684 * DataGridDrawingLogic.cs: Implement more drawing
10685 * DataGrid.cs: drawing, theming, enhacements, fixes
10686 * DataGridColumnStyle.cs: fixes, drawing
10687 * Theme.cs: theming for Datagrid
10689 2005-05-20 Peter Bartok <pbartok@novell.com>
10691 * Cursor.cs: Implemented GetObjectData() method
10693 2005-05-20 Peter Bartok <pbartok@novell.com>
10695 * Cursors.cs: Added setting of cursor name
10697 - Implemented constructors
10698 - Implemented Draw and DrawStretched
10699 - Implemented Current property
10700 - Implemented == and != operators
10701 - Implemented Dispose()
10702 - Implemented ToString
10703 - Added missing attributes
10705 - Added missing reset for OverrideCursor when DoEvents is called
10706 - Fixed creation of cursor, logic was wrong
10708 - Added missing reset for OverrideCursor when DoEvents is called
10709 - Fixed creation of cursor, bit arrays were swapped
10710 * Clipboard.cs: Removed obsolete MonoTODO attribute
10712 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10714 * ComboBox.cs: fixes OnSelectedItemChanged
10715 * ControlBindingsCollection.cs: fixes item range check
10717 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10720 - Calc preferred height properly
10721 - Implement missing properties
10723 * NumericUpDown.cs: Implement missing events
10725 2005-05-19 Jackson Harper <jackson@ximian.com>
10727 * TabControl.cs: New method that resizes the tab pages before
10728 redrawing them. This as needed as the control is double buffered
10729 and sizing will not be recalculated unless ResizeTabPages is
10731 * TabPage.cs: Set base.Text instead of Text in the constructor so
10732 that UpdateOwner does not get called. Use the new Redraw method of
10733 TabControl instead of Refresh so the sizing is recalculated.
10734 * ThemeWin32Classic.cs: Draw the text for button tabs.
10736 2005-05-19 Jackson Harper <jackson@ximian.com>
10738 * Control.cs: Paint control background images. Fix typo where
10739 PaintControlBackground was not getting called correctly.
10741 2005-05-19 Peter Bartok <pbartok@novell.com>
10743 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10744 I can investigate, apparently I broke FileDialog
10746 2005-05-19 Marek Safar <marek.safar@seznam.cz>
10748 * AxHost.cs: Some simple properties.
10749 * Control.cs: window must be accessible after ctor.
10750 * Form.cs: Added TransparencyKey property.
10751 * TextBoxBase.cs: Implemented Clear. Text property can be null.
10752 * XplatUIWin32.cs: SetBorderStyle implemented.
10754 2005-05-18 Peter Bartok <pbartok@novell.com>
10756 * DataObject.cs: Entries are not global but particular to the
10757 DataObject, now it behaves that way
10758 * XplatUIWin32.cs: Implemented Clipboard methods
10759 * Clipboard.cs: Implemented
10760 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
10761 * XplatUIOSX.cs: Updated to final clipboard prototypes
10762 * XplatUIX11.cs: Implemented Clipboard methods
10763 * XplatUIDriver.cs: Updated to final clipboard prototypes
10764 * XplatUIStructs.cs:
10765 - Added BITMAPINFOHEADER struct
10766 - Added ClipboardFormats enum
10768 - Added ClipboardStruct
10769 - Added Atom enum items for clipboard types
10770 - Fixed atom types for Selection event structures
10772 - Added internal properties and methods for drivers to enumerate
10774 - Switched initialization method to allow drivers to assign their
10775 own IDs even for the MS predefined clipboard IDs
10776 * XplatUI.cs: Updated to final clipboard interface
10778 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10779 * PropertyGridView.cs: Fixed compiler warnings.
10781 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10782 * PropertyGrid.cs: Added some event calls
10783 * PropertyGridView.cs: Change drawing code to use double buffering
10784 * PropertyGridTextBox.cs: Changed Text property name
10785 * GridItem.cs: Added Bounds property.
10786 * GridEntry.cs: Added Bounds property.
10788 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
10790 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
10791 since GetType() may not return the correct type if the object is
10794 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
10796 * TreeNodeCollection.cs: fixes get/set item ranges
10798 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10800 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
10802 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10804 * ComboBox.cs: Fix item range comparation
10805 * ListView.cs: Fix item range comparation
10807 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10810 - Clear example panel when OnPaint is called
10811 - Better solution for displaying the example panel text
10812 - Select default indexes in the ListBoxes
10814 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10816 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
10818 2005-05-11 Peter Bartok <pbartok@novell.com>
10820 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
10821 * SelectionRangeConverter.cs: Implemented
10822 * PropertyGrid.cs: Fixed attribute value
10824 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
10825 - Added Sebastien Pouliot's CAS Stack Propagation fixes
10826 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
10827 that's common to all drivers. First methods to go there are
10828 Sebastien Pouliot's CAS Stack Propagation helper methods
10829 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
10830 Sebastien Pouliot for CAS Stack Propagation
10832 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10835 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
10837 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
10839 * DataGridTextBoxColumn.cs: fixed some members
10840 * GridColumnStylesCollection.cs: indexed column is case insensitive
10841 * DataGridTableStyle.cs: fixes
10842 * ThemeWin32Classic.cs: add new theme parameter
10843 * Theme.cs: add new theme parameter
10844 * DataGridDrawingLogic.cs: Datagrid's drawing logic
10845 * DataGrid.cs: fixes, new internal properties, etc.
10846 * DataGridColumnStyle.cs: allows to set grid value
10849 2005-05-10 Peter Bartok <pbartok@novell.com>
10851 * AccessibleObject.cs:
10852 - Removed MonoTODO attribute on help, method is correct
10853 - Fixed Bounds property
10854 * AxHost.cs: Moved MonoTODO
10855 * ButtonBase.cs: Now setting AccessibleObject properties
10856 * RadioButton.cs: Setting proper AccessibleObject role
10857 * CheckBox.cs: Setting proper AccessibleObject role
10858 * ControlBindingsCollection.cs: Added properties, methods and attributes
10859 * DataFormats.cs: Fixed awkward internal API, and changed to enable
10860 userdefined DataFormats.Format items as well
10861 * ListControl.cs: Removed data_member from the public eye
10862 * OpenFileDialog.cs:
10863 - Made class sealed
10864 - Added missing attributes
10865 * SaveFileDialog.cs: Added missing attributes
10866 * ImageListStreamer.cs: Fixed code that caused warnings
10867 * LinkLabel.cs: Removed unreachable code
10868 * TreeView.cs: Fixed code that caused warnings
10869 * PropertyGridView.cs: Fixed code that caused warnings
10870 * GridColumnStylesCollection.cs: Added missing attributes
10871 * GridTableStylesCollection: Added missing attribute
10872 * PropertyManager: Added .ctor
10873 * SecurityIDType: Added
10874 * DataObject.cs: Implemented class
10875 * LinkArea.cs: Added missing attribute
10877 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
10879 * RadioButton.cs: call base method to allow to fire OnClick event
10880 * UpDownBase.cs: OnMouseUp call base method
10881 * CheckedListBox.cs: call base method before returning
10882 * TrackBar.cs: call base method before returning
10885 2005-05-10 Peter Bartok <pbartok@novell.com>
10887 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
10890 2005-05-10 Peter Bartok <pbartok@novell.com>
10892 * DataFormats.cs: Implemented
10893 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
10894 XplatUIX11.cs: Added Clipboard APIs
10895 * XplatUIWin32.cs: Implemented Clipboard APIs
10896 * FolderBrowserDialog.cs: Added missing event, attributes
10898 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
10900 * CheckBox.cs: call base method to allow to fire OnClick event
10902 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
10904 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
10906 2005-05-06 Peter Bartok <pbartok@novell.com>
10908 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
10909 * Screen.cs: Implemented
10910 * HelpNavigator.cs: Added
10911 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
10913 * HelpProvider.cs: Implemented all we can do until we have a CHM
10914 help library (which means that "What's This" does work now)
10916 2005-05-06 Jackson Harper <jackson@ximian.com>
10918 * XplatUIX11.cs: Fix waking up the main loop.
10920 2005-05-05 Peter Bartok <pbartok@novell.com>
10922 * XplatUI.cs: Updated revision
10923 * Form.cs: Removed enless loop
10924 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
10925 * Label.cs (OnPaint): Added call to base.OnPaint()
10926 * ToolTip.cs: Made ToolTipWindow reusable for other controls
10927 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
10928 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
10930 * ButtonBase.cs: Moved base.OnPaint() call to end of method
10931 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
10932 to ToolTip.ToolTipWindow for drawing and size methods; this allows
10933 reuse of ToolTipWindow by other controls
10934 * SizeGrip.cs: Moved base.OnPaint() call to end of method
10935 * XplatUIX11.cs: Now clipping drawing area (experimental)
10936 * PictureBox.cs: Moved base.OnPaint() call to end of method
10937 * Theme.cs: Fixed ToolTip abstracts to match new format
10938 * ErrorProvider.cs: Implemented
10940 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
10942 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
10946 - Implements LinkBehavior
10947 - Fixes many issues
10949 2005-05-03 Jackson Harper <jackson@ximian.com>
10951 * ListView.cs: Calculate the scrollbar positioning on resize and
10952 paint, so they get put in the correct place.
10954 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10956 * ColorDialogs.cs: The small color panels are now handled by
10957 SmallColorControl. This fixes drawing of the focus rectangle
10958 and adds a 3D border.
10960 2005-05-03 Peter Bartok <pbartok@novell.com>
10962 * Control.cs: Modified version of Jonathan Chamber's fix for
10965 2005-05-03 Jackson Harper <jackson@ximian.com>
10967 * ListView.cs: Remove redraw variable. Control now handles whether
10968 or not a redraw needs to be done, and will only raise the paint
10969 event if redrawing is needed.
10971 2005-05-03 Jackson Harper <jackson@ximian.com>
10973 * Splitter.cs: No decorations for the splitter form. Cache the
10976 2005-05-03 Jackson Harper <jackson@ximian.com>
10978 * TreeView.cs: Use dashed lines to connect nodes. Use the
10979 ControlPaint method for drawing the focus rect instead of doing
10982 2005-05-02 Peter Bartok <pbartok@novell.com>
10984 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
10986 2005-04-29 Jackson Harper <jackson@ximian.com>
10988 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
10989 entire image buffer. Just clear the clipping rectangle.
10991 2005-04-29 Jackson Harper <jackson@ximian.com>
10993 * ThemeWin32Classic.cs: Don't draw list view items that are
10994 outside the clipping rectangle.
10996 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
10998 * ListBox.cs: added horizontal item scroll
11000 2005-04-29 Jackson Harper <jackson@ximian.com>
11002 * ThemeWin32Classic.cs: Remove some old debug code that was
11003 causing flicker with the new double buffering code.
11005 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
11007 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11008 behave like combobox and comboboxlist (still not sure if this is
11011 2005-04-28 Jackson Harper <jackson@ximian.com>
11013 * ThemeWin32Classic.cs: Don't fill the middle of progress
11014 bars. This fills areas outside of the clip bounds that don't need
11017 2005-04-28 Jackson Harper <jackson@ximian.com>
11019 * Control.cs: Don't expose functionality to touch the image buffers.
11021 * ListView.cs: We do not need to (and no longer can) manipulate
11022 the image buffers directly. All of this is handled by Control.
11024 2005-04-28 Peter Bartok <pbartok@novell.com>
11026 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11027 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11028 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11030 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11033 - Adjust control's height for non-simple comboboxes (bug fix)
11035 * MenuAPI.cs: remove unused var
11036 * ScrollBar.cs: remove unsed var
11038 * ListBox.cs: unselect items when clearing
11040 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11042 * ListControl.cs: honors OnPositionChanged and default Selected Item
11043 * ListBox.cs: unselect items when clearing
11045 2005-04-27 Jackson Harper <jackson@ximian.com>
11047 * X11Keyboard.cs: Initialize a default keyboard and give a warning
11048 if a "correct" keyboard is not found. This will make us not crash,
11049 but might give some users bad keyboard layouts...seems to be the
11050 same thing rewind does.
11052 2005-04-27 Jackson Harper <jackson@ximian.com>
11054 * BindingManagerBase.cs: Attach the current/position changed
11055 handlers to their respective events.
11057 2005-04-27 Jackson Harper <jackson@ximian.com>
11059 * Control.cs: Make sure that the first WM_PAINT does a full draw,
11061 * ThemeWin32Classic.cs: Don't fill the background for picture
11062 boxes. This could overright user drawing.
11063 * ComboBox.cs: Just fill the clipping rect not the entire client
11064 rect when drawing the background. This prevents pieces of the
11065 image buffer from getting overwritten and is theoretically faster.
11067 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
11069 * ComboBox.cs: Databinding support fixes, fire missing events
11070 * ListControl.cs: implement missing methods and properties, fixes
11071 * ThemeWin32Classic.cs: Databiding support on Drawing
11072 * CheckedListBox.cs: Databinding support fixes, fire missing events
11073 * ListBox.cs: Databinding support fixes, fire missing events
11075 2005-04-25 Peter Bartok <pbartok@novell.com>
11077 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
11079 2005-04-25 Jackson Harper <jackson@ximian.com>
11081 * TreeView.cs: Use the horizontal scrollbars height not width when
11082 determining how much of the client area is available.
11084 2005-04-25 Jackson Harper <jackson@ximian.com>
11086 * Control.cs: Double buffering is handled differently now. As per
11087 the spec, the extra buffer is created in the WM_PAINT message and
11088 passed down to the control's drawing code.
11096 * PropertyGridView.cs:
11108 * DateTimePicker.cs:
11110 * TreeView.cs: Update to new double buffering system.
11111 * MonthCalendar.cs: Uncomment block, as Capture is now
11112 working. Update to new double buffering
11113 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
11114 * PaintEventArgs.cs: New internal method allows us to set the
11115 graphics object. This is used for double buffering.
11116 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
11117 rectangle. The internal paint_area var has been removed from
11118 StatusBar. The clipping rect should be used instead.
11119 * Theme.cs: Give the PictureBox drawing method a clipping rect.
11120 * TabPage.cs: The RefreshTabs method was removed, so just call the
11121 tab controls Refresh method now.
11122 * TabControl.cs: Update to new double buffering. Make sure the
11123 handle is created before sizing the tab pages, otherwise we will
11124 get stuck in a loop.
11126 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
11128 * LinkLabel.cs: Fix typo, bug #74719; patch
11129 from Borja Sanchez Zamorano
11131 2005-04-22 Jackson Harper <jackson@ximian.com>
11133 * TreeNode.cs: Implement Handle stuff.
11134 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
11136 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
11138 * DataGridTextBoxColumn.cs: call base constructors, fixes
11139 * GridColumnStylesCollection.cs: missing events, methods, and functionality
11140 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
11141 * DataGridTableStyle.cs: implements create default column styles
11142 * DataGridBoolColumn.cs: which types can handle
11143 * DataGrid.cs: missing methods, fixes, new functionality
11144 * DataGridColumnStyle.cs: fixes
11146 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
11147 * FolderBrowserDialog.cs:
11148 - Use a thread to fill the TreeView
11149 - Adjusted some sizes
11151 2005-04-19 Peter Bartok <pbartok@novell.com>
11153 * LinkLabel.cs: (Re-)create the pieces when setting the Text
11154 property. Fixes #74360.
11156 2005-04-19 Jackson Harper <jackson@ximian.com>
11158 * XEventQueue.cs: Lock when getting the lockqueue size.
11159 * PictureBox.cs: Call base OnPaint
11161 2005-04-19 Peter Bartok <pbartok@novell.com>
11163 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
11164 messages were no longer being processed (this broke BeginInvoke)
11167 2005-04-18 Jackson Harper <jackson@ximian.com>
11169 * TreeView.cs: buglet that caused node images to get drawn
11170 regardless of whether or not they were in the clipping rectangle.
11172 2005-04-18 Jackson Harper <jackson@ximian.com>
11174 * CurrencyManager.cs: There are four rules for GetItemProperties:
11175 - If the type is an array use the element type of the array
11176 - If the type is a typed list, use the type
11177 - If the list contains an Item property that is not an object, use
11179 - use the first element of the list if there are any elements in
11182 2005-04-17 Jackson Harper <jackson@ximian.oom>
11184 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
11185 click. This handles offsets for scrolling properly and reduces
11186 memory. Also fixed GetNode to not offset now that TopNode works
11188 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
11190 2005-04-17 Jackson Harper <jackson@ximian.com>
11192 * CursorConverter.cs: Initial implementation.
11194 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
11196 * ListControl.cs: work towards complex data binding support on ListControl
11197 * CurrencyManager.cs: work towards complex data binding support on ListControl
11198 * ListBox.cs: work towards complex data binding support on ListControl
11201 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
11203 * GridTableStylesCollection.cs: fixes name and constructor
11204 * DataGridTableStyle.cs: fixes
11205 * DataGridBoolColumn.cs: fixes names and constructors
11206 * DataGrid.cs: define methods and properties. Some init implementations
11207 * DataGridCell.cs: define methods and properties. Some init implementations
11208 * GridTablesFactory.cs: Define methods and properties
11210 2005-04-15 Geoff Norton <gnorton@customerdna.com>
11212 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
11213 graphics port changes. We still want the coordinates in global screen
11216 2005-04-14 Jackson Harper <jackson@ximian.com>
11218 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
11219 check plus minus or checkbox clicks unless those features are enabled.
11221 2005-04-14 Jackson Harper <jackson@ximian.com>
11223 * TreeView.cs: Add methods for setting the top and bottom visible
11224 nodes. TreeNode::EnsureVisible uses these methods.
11225 * TreeNode.cs: Implement EnsureVisible
11227 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
11229 * Form.cs: Pospone menu assignation if the window has not been created yet
11230 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
11233 2005-04-12 Jackson Harper <jackson@ximian.com>
11235 * TreeView.cs: Set the TopNode properly when scrolling
11236 occurs. This has the added benifit of reducing the amount of
11237 walking that needs to be done when drawing. Also removed an old
11239 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
11241 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
11243 * Timer.cs: fixes interval setting when the timer is already enabled
11245 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
11247 * FolderBrowserDialog.cs: First approach
11249 2005-04-09 Peter Bartok <pbartok@novell.com>
11251 * FolderBrowserDialog: Added
11253 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
11255 * LinkLabel.cs: move drawing code into the theme
11256 * ThemeWin32Classic.cs: drawing code and painting background bugfix
11257 * Theme.cs: define DrawLinkLabel method
11259 2005-04-05 Jackson Harper <jackson@ximian.com>
11261 * BindingContext.cs: Use weak references so these bad actors don't
11262 stay alive longer then they need to.
11264 2005-04-05 Jackson Harper <jackson@ximian.com>
11266 * ListControl.cs: Basic implementation of complex databinding.
11268 * ListBox.cs: Add calls to ListControl databinding methods.
11270 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
11273 - Don't change PopupButtonState to Normal when the
11274 PopupButton gets pressed several times.
11275 - Renamed ButtonPanel to PopupButtonPanel
11277 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
11279 * ColorDialog.cs: Use cached objects instead of creating them
11280 * LinkLabel.cs: Use cached objects instead of creating them
11281 * Splitter.cs: Use cached objects instead of creating them
11282 * FontDialog.cs: Use cached objects instead of creating them
11283 * PropertyGridView.cs: Use cached objects instead of creating them
11284 * MessageBox.cs: Use cached objects instead of creating them
11285 * FileDialog.cs: Use cached objects instead of creating them
11286 * ThemeWin32Classic.cs: Use cached objects instead of creating them
11287 * TreeView.cs: Use cached objects instead of creating them
11289 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
11291 * Control.cs: use Equals to compare the font since no == op
11292 * ScrollBar.cs: use Equals to compare the font since no == op
11294 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
11296 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11298 2005-04-01 Jackson Harper <jackson@ximian.com>
11300 * Binding.cs: Implement IsBinding.
11301 * BindingManagerBase.cs:
11302 * PropertyManager.cs:
11303 * CurrencyManager.cs: Add IsSuspended property.
11305 2005-04-01 Jackson Harper <jackson@ximian.com>
11307 * Binding.cs: Had some IsAssignableFrom calls backwards.
11309 2005-04-01 Jackson Harper <jackson@ximian.com>
11311 * Binding.cs: Handle null data members when pulling data.
11312 * PropertyManager.cs: Handle the data member being a property that
11315 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11317 * DataGridTextBoxColumn.cs: fixes signature
11318 * DataGrid.cs: calls right constructor
11320 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11322 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11323 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11324 * GridTableStylesCollection.cs: implements GridTableStylesCollection
11325 * DataGridTableStyle.cs: implements DataGridTableStyle
11326 * DataGridBoolColumn.cs: implements DataGridBoolColumn
11327 * DataGridTextBox.cs: implements DataGridTextBox
11328 * DataGridColumnStyle.cs: implements DataGridColumnStyle
11330 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
11332 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11334 2005-03-29 Peter Bartok <pbartok@novell.com>
11337 - Properly implemented CompanyName property
11338 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11339 returns a path that includes CompanyName, ProductName and
11340 Version (fixes bug #70330)
11342 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
11344 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11347 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11349 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11351 - Added ReadOnly CheckBox
11352 - Further refactoring: moved some code from Open-/SaveFileDialog
11355 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11357 * OpenFileDialog.cs: Fixed CheckFileExists
11359 Moved FileView and DirComboBox outside FileDialog class.
11360 They can now be used outside FileDialog
11362 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11364 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11365 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11367 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11369 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11370 - Added missing CreatePrompt property in SaveDialog
11371 - Overall SaveDialog handling should be better now
11372 - Added non standard ShowHiddenFiles property
11373 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11374 - Added InitialDirectory and RestoreDirectory support
11376 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
11378 * FileDialog.cs: Made dirComboBox usable
11380 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
11382 * FileDialog.cs: Added Filter support (case sensitiv)
11384 2005-03-24 Jackson Harper <jackson@ximian.com>
11386 * TabControl.cs: Need a couple more pixels for the lines.
11388 2005-03-23 Jackson Harper <jackson@ximian.com>
11390 * TabControl.cs: Give the tab page focus when it is selected.
11392 2005-03-23 Jackson Harper <jackson@ximian.com>
11394 * TabControl.cs: Account for the drawing of tabs borders when
11395 invalidating. If the slider was clicked dont do click detection on
11398 2005-03-23 Jackson Harper <jackson@ximian.com>
11400 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11402 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
11404 * CategoryGridEntry.cs: Added
11405 * GridItem.cs: Added helper properties
11406 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11407 * GridEntry.cs: Updated code for collection
11408 * PropertyGrid.cs: Cleaned up some formatting
11409 * PropertyGridView.cs: Added drop down functionality for enums.
11410 * GridItemCollection.cs: Added enumerator logic
11411 * PropertyGridEntry.cs: Added
11413 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11416 - Removed unnecessary commented code
11417 - Fixed handling for entering the filename manually in the combobox
11419 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11421 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11423 2005-03-18 Peter Bartok <pbartok@novell.com>
11425 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11426 them being touching the border
11428 2005-03-18 Peter Bartok <pbartok@novell.com>
11430 * TextControl.cs: Quick hack to center text better
11432 2005-03-18 Peter Bartok <pbartok@novell.com>
11435 - Don't throw NotImplemented exceptions, just print a notice once
11436 instead (requested by Miguel). This makes running existing SWF
11439 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11440 - Added context menu trigger on right click
11441 * Panel.cs: Trigger invalidate on resize
11443 - Removed old double-buffer drawing
11444 - Added ResizeRedraw style to force proper update of statusbar
11446 - Removed debug output
11447 * ThemeWin32Classic.cs:
11448 - Fixed drawing of status bar, now draws Text property if there
11449 are no defined panels
11451 2005-03-18 Jackson Harper <jackson@ximian.com>
11453 * ImageList.cs: When the image stream is set pull all the images
11455 * ImageListStreamer.cs: Implement reading image list streams.
11457 2005-03-18 Peter Bartok <pbartok@novell.com>
11459 * ThemeWin32Classic.cs (DrawPictureBox):
11460 - Fixed calculations for centered drawing
11461 - Fixed drawing for normal mode, not scaling the image on normal
11463 2005-03-18 Peter Bartok <pbartok@novell.com>
11465 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11468 - Made Open/Save button the accept button for FileDialog
11469 - Tied the cancel button to the IButtonControl cancel button
11470 - Save/Open now properly builds the pathname
11471 - Now handles user-entered text
11472 - Preventing crash on right-click if no item is selected
11473 - Fixed Text property, now uses contents of textbox
11474 - Fixed SelectedText property, now just returns the text part that
11475 is selected in the text box
11477 2005-03-18 Jackson Harper <jackson@ximian.com>
11479 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11480 rect, make sure to de-adjust the interior rect after drawing the
11483 2005-03-18 Peter Bartok <pbartok@novell.com>
11485 * MenuAPI.cs: Remove menu *before* executing selected action to
11486 prevent the menu from 'hanging around'
11488 2005-03-17 Geoff Norton <gnorton@customerdna.com>
11490 * XplatUIOSX.cs: Implemented WorkingArea property
11492 2005-03-17 Peter Bartok <pbartok@novell.com>
11494 * XplatUIX11.cs: Fixed menu coord calculations
11495 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11496 for calculating offsets
11498 2005-03-17 Peter Bartok <pbartok@novell.com>
11500 * Hwnd.cs: Do not consider menu presence for default client
11501 rectangle location/size
11502 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11503 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11504 translation functions
11505 * FileDialog.cs: Fixed (what I presume is a) typo
11507 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
11509 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11510 X access (avoids X-Async errors)
11512 2005-03-16 Jackson Harper <jackson@ximian.com>
11514 * TabControl.cs: Raise the SelectedIndexChanged event.
11516 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
11518 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11519 - Removed vertical ToolBar and replaced it with a custom panel
11520 (desktop and home button already work)
11521 - Added Help button (some controls get resized or relocated then)
11522 - Draw correct text depending on Open or Save.
11523 - Fixed some typos...
11525 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
11528 - Only change Maximum and Minimum when need it (bug fix)
11530 2005-03-15 Peter Bartok <pbartok@novell.com>
11532 * Form.cs: Use Handle for icon, to trigger creation if
11533 the window does not yet exist
11535 - CanSelect: Slight performance improvement
11536 - Focus(): Preventing possible recursion
11537 - Invalidate(): Removed ControlStyle based clear flag setting
11538 - WM_PAINT: fixed logic for calling OnPaintBackground
11539 - WM_ERASEBKGND: Fixed logic, added call to new driver method
11540 EraseWindowBackground if the control doesn't paint background
11542 - Moved EraseWindowBackground() method to internal methods
11543 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11544 is sent via SendMessage on BeginPaint call on Win32
11546 - Added EraseWindowBackground() method
11547 - No longer sends WM_ERASEBKGND on .Expose, but on call to
11548 PaintEventStart, which more closely matches Win32 behaviour
11549 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11550 - Fixed SetFocus() to properly deal with client and whole windows
11551 * Hwnd.cs: Added ErasePending property
11552 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11553 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11555 2005-03-12 Geoff Norton <gnorton@customerdna.com>
11558 - Fix hard loop when timers exist.
11559 - Fix bugs with middle and right click for 3 button mice.
11561 2005-03-11 Peter Bartok <pbartok@novell.com>
11564 - get_WorkingArea: Need to call X directly, GetWindowPos only
11565 returns cached data now
11566 - Added sanity check to GetWindowPos hwnd usage
11568 2005-03-11 Jackson Harper <jackson@ximian.com>
11570 * BindingManagerBase.cs: This method isn't used anymore as
11571 PullData now updates the data in the control.
11573 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
11575 * Form.cs: fixes menu drawing on X11
11576 * MenuAPI.cs: fixes menu drawing on X11
11578 2005-03-11 Peter Bartok <pbartok@novell.com>
11580 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11581 from Jonathan Gilbert; should fix bug #73606
11582 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11583 in Screen coordinates. Thanks, Jordi.
11584 * Form.cs: Added missing attribute
11586 2005-03-11 Peter Bartok <pbartok@novell.com>
11589 - Rudimentary Mdi support
11590 - Removed outdated FormParent code
11591 - Implemented lots of missing properties and methods, still missing
11592 transparency support
11593 - Added missing attributes
11594 - Implemented support for MaximumBounds
11595 - Added firing of various events
11596 * XplatUI.cs: Added SetIcon() method
11597 * XplatUIDriver.cs: Added SetIcon() abstract
11598 * XplatUIOSX.cs: Stubbed out SetIcon() method
11600 - Implemented SetIcon() support
11601 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11602 - Switched to unix line endings
11604 - Made POINT internal so for can access it as part of MINMAX
11605 - Implemented SetIcon() support
11606 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11607 native Mdi support again, might have to go managed)
11608 * Control.cs: Now fires the StyleChanged event
11609 * MdiClient.cs: Added; still mostly empty
11611 2005-03-10 Peter Bartok <pbartok@novell.com>
11613 * SaveFileDialog.cs: Added emtpy file
11615 2005-03-08 Peter Bartok <pbartok@novell.com>
11617 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11618 in turn triggers OnCreateContro) when creating a handle for the
11620 * TextControl.cs: Fixed endless loop in certain cases when
11621 replacing the current selection
11623 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
11626 - Honors NewValue changes in Scroll events allowing apps to change it
11627 - Adds First and Last Scroll events
11628 - Fixes Thumb events
11630 2005-03-07 Peter Bartok <pbartok@novell.com>
11632 * Hwnd.cs: Added DefaultClientRectangle property
11633 * XplatUI.cs: Now using the X11 driver Where() method, which provides
11634 more detailed debug information
11636 - Fixed size-change feedback loop, where we would pull an old size
11637 off the queue and mistakenly change our window's size to an
11639 - Now compressing ConfigureNotify events, to reduce looping and
11641 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11644 2005-03-07 Jackson Harper <jackson@ximian.com>
11646 * Binding.cs: Push data pushes from data -> property. Check if the
11647 property is readonly when attempting to set it.
11649 2005-03-07 Jackson Harper <jackson@ximian.com>
11651 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11652 instead of IsSubclassOf. Pulling data now sets the value on the
11654 * PropertyManager.cs:
11655 * CurrencyManager.cs: Just need to pull data when updating now,
11656 because PullData will set the value on the control.
11658 2005-03-04 Jackson Harper <jackson@ximian.com>
11660 * Binding.cs: Implement data type parsing and converting on pulled
11661 data. TODO: Are there more ways the data can be converted?
11663 2005-03-04 Jackson Harper <jackson@ximian.com>
11665 * Binding.cs: Support <Property>IsNull checks. Also bind to the
11666 controls Validating method so we can repull the data when the
11667 control loses focus.
11669 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
11672 - Fixes null string format
11675 - Adds enum type checks
11676 - Fixes redrawing and recalc need after changing some properties
11677 - Fixes on focus_item set after the event
11678 - Fixes adding columns after the control has been created
11680 * ThemeWin32Classic.cs:
11681 - Fixes CheckBox focus rectangle
11682 - Fixes ColumnHeader drawing
11685 2005-03-03 Jackson Harper <jackson@ximian.com>
11687 * Binding.cs: Bind to <Property>Changed events so we can detect
11688 when properties are changed and update the data.
11690 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
11693 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11694 - Fixes ImageList constructor with ImageList container
11695 - Fixes image scaling (wrong parameters at DrawImage)
11697 2005-02-02 Jackson Harper <jackson@ximian.com>
11699 * Binding.cs: Make property searches case-insensitive. Eliminate
11700 some duplicated code.
11702 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
11705 - Handle focus event
11706 - Fix scrollbar events
11707 - Discard highlighted item if remove it
11708 - Fixes SelectedItem with strings
11710 2005-03-01 Peter Bartok <pbartok@novell.com>
11713 - Fixed Visible property, now follows (once again) parent chain
11714 to return false if any control in the chain is visible=false
11715 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11716 - Fixed several places where is_visible instead of Visible was used
11717 - Implemented FIXME related to focus selection when setting focused
11718 control to be invisible
11720 * XplatUIWin32.cs: Now using proper method to find out if window is
11721 visible. Thanks to Jordi for pointing it out
11723 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
11725 * ComboBox.cs: show/hide scrollbar instead of creating it
11727 2005-02-27 Jackson Harper <jackson@ximian.com>
11729 * CurrencyManager.cs: Add PositionChanged stuff.
11731 2005-02-27 Peter Bartok <pbartok@novell.com>
11733 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11734 * XplatUIOSX.cs: Added GetMenuOrigin() stub
11735 * XplatUIWin32.cs: Implemented GetMenuOrigin()
11737 - Implemented GetMenuDC()
11738 - Implemented GetMenuOrigin()
11739 - Implemented ReleaseMenuDC()
11740 - Implemented generation of WM_NCPAINT message
11741 - Implemented generation and handling of WM_NCCALCSIZE message
11742 * Form.cs: Added debug helper message for Jordi's menu work
11744 - Modified ClientRect property; added setter, fixed getter to handle
11745 setting of ClientRect
11746 - Added MenuOrigin property
11748 2005-02-26 Peter Bartok <pbartok@novell.com>
11751 - Destroys the caret if a window that's being destroyed contains it
11752 - Ignores expose events coming from the X11 queue for windows that
11753 already are destroyed
11754 - Now uses the proper variable for handling DestroyNotify, before we
11755 marked the wrong window as destroyed
11756 - Improved/added some debug output
11758 2005-02-26 Peter Bartok <pbartok@novell.com>
11760 * X11Keyboard.cs: Fixes to work on 64bit systems
11762 2005-02-26 Peter Bartok <pbartok@novell.com>
11765 - Now calling OnHandleDestroyed from DestroyHandle()
11766 instead of Dispose()
11767 - Removed bogus call to controls.Remove() from DestroyHandle()
11769 2005-02-26 Peter Bartok <pbartok@novell.com>
11771 * Control.cs: Properly destroy child windows when our handle is
11774 2005-02-25 Peter Bartok <pbartok@novell.com>
11777 - Added 'DriverDebug' define to allow tracing XplatUI API calls
11778 - Alphabetized Static Methods and Subclasses
11781 - Added XException class to allow custom handling of X11 exceptions
11782 - Created custom X11 error handler, tied into XException class
11783 - Added support for MONO_XEXCEPTIONS env var to allow the user
11784 to either throw an exception on X errors or continue running
11785 after displaying the error
11786 - Added handling of DestroyNotify message
11787 - Added handler for CreateNotify message (still disabled)
11788 - Improved (tried to at least) Where method to provide file and lineno
11790 - Added XErrorHandler delegate
11791 - Added XRequest enumeration (to suppor translation of errors)
11793 2005-02-25 Jackson Harper <jackson@ximian.com>
11795 * PropertyManager.cs: Implement editing features
11796 * CurrencyManager.cs:
11797 * Binding.cs: First attempt at UpdateIsBinding
11798 * BindingManagerBase.cs: Call UpdateIsBinding before
11799 pushing/pulling data.
11801 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
11803 * MenuAPI.cs: Respect disabled items
11804 * ThemeWin32Classic.cs
11805 - Caches ImageAttributes creation for DrawImageDisabled
11806 - Fixes vertical menu line drawing
11807 - Draws disabled arrows in disable menu items
11809 2005-02-24 Peter Bartok <pbartok@novell.com>
11812 - Added UserData property to allow associating arbitrary objects
11814 - Fixed leak; now removing Hwnd references from static windows array
11816 - Fixed Graphics leak in PaintEventEnd
11817 - Removed usage of HandleData, switched over to Hwnd class
11818 * HandleData.cs: Removed, obsoleted by Hwnd.cs
11820 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11822 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
11823 * ScrollBar.cs: Fixes bug
11824 * TrackBar.cs: removes death code, clipping, mimize refreshes,
11825 keyboard navigation enhancements
11827 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11829 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
11830 * GroupBox.cs: Add control styles
11831 * Label.cs: Add control styles
11832 * UpDownBase.cs: Add control styles
11833 * ListBox.cs: Add control styles
11834 * XplatUIWin32.cs: Fixes wrong parameter order
11837 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
11839 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
11841 2005-02-23 Jackson Harper <jackson@ximian.com>
11843 * PropertyManager.cs: Implement property binding. This doesn't
11844 seem to work yet though as (I think) there are some bugs in
11845 System.ComponentModel.PropertyDescriptor.
11846 * BindingContext.cs: Use new PropertyManager constructor.
11848 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
11850 * ProgressBar.cs: use clip region in ProgressBar
11851 * ThemeWin32Classic.cs: use clip region in ProgressBar
11853 2004-02-22 Jackson Harper <jackson@ximian.com>
11855 * BindingsCollection.cs: Remove some debug code.
11857 2005-02-22 Jackson Harper <jackson@ximian.com>
11859 * BindingContext.cs:
11860 * ControlBindingsCollection.cs:
11861 * CurrencyManager.cs:
11863 * BindingManagerBase.cs: Initial implementation
11864 * BindingsCollection.cs: Add an internal contains method that the
11865 BindingManagerBase uses to ensure bindings aren't added twice to
11867 * PropertyManager.cs: Stubbed out.
11869 * ContainerControl.cs: Hook up databinding
11871 2005-02-22 Geoff Norton <gnorton@customerdna.com>
11874 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
11875 Fixed Invalidate/Update chain.
11876 Fixed tons of other minor bugs (this is almost a complete rewrite).
11878 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
11880 * ComboBox.cs: do subcontrol creation when the control is created
11882 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11884 * Label.cs: fixes image drawing (image and imagelist)
11885 * ThemeWin32Classic.cs: cache brushes
11887 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11889 * Form.cs: Move menu drawing code to Theme class
11890 * ComboBox.cs: Move ComboBox drawing code to Theme class
11891 * MenuItem.cs: Move menu drawing code to Theme class
11892 * MenuAPI.cs: Move menu drawing code to Theme class
11893 * ThemeWin32Classic.cs: New methods
11894 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
11895 * ListBox.cs: Move Listbox drawing code to Theme class
11896 * Theme.cs: New methods
11898 2005-02-20 Peter Bartok <pbartok@novell.com>
11901 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
11902 only process mnemonics on those)
11903 - Fixed event sequence for key handling; first calling
11904 ProcessKeyEventArgs now
11906 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
11907 for processing non-character keys
11908 - Fixed WM_CHAR to generate proper event sequence before processing
11909 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
11912 2005-02-19 Peter Bartok <pbartok@novell.com>
11914 * UserControl.cs: Added TextChanged event; added attributes
11915 * SizeGrip.cs: Implemented resizing and optional display of grip
11916 * Form.cs: Fixed attribute
11917 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11918 Changed meaning of ScrollWindow bool argument; instead of the
11919 clear attribute (which will be true usually anyway), it gives the
11920 option of moving child controls as well.
11922 - Changed to match new ScrollWindow argument
11923 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
11924 now handles the implicit parent window a WM puts around us
11925 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
11927 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
11928 * TreeView.cs: Adjusted to new ScrollWindow arguments
11930 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11932 * Form.cs: Menu integration with non-client area
11933 * MenuItem.cs: Menu integration with non-client area
11934 * MenuAPI.cs: Menu integration with non-client area
11936 2005-02-18 Peter Bartok <pbartok@novell.com>
11938 * MethodInvoker.cs: Added
11939 * MdiLayout.cs: Added
11940 * SendKeys.cs: Started implementation
11941 * ErrorIconAlignment.cs: Added
11943 2005-02-18 Peter Bartok <pbartok@novell.com>
11945 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
11946 * Form.cs: Added handling for Menu-related Non-client messages
11948 2005-02-17 Peter Bartok <pbartok@novell.com>
11950 * UpDownBase.cs: Fixed typo, compilation errors
11951 * DomainUpDown.cs: Fixed attribute value
11953 2005-02-16 Miguel de Icaza <miguel@novell.com>
11955 * UpDownBase.cs: Attach entry events.
11957 Add ForeColor property, Focused, InterceptArrowKeys (interception
11958 does not work yet).
11960 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
11963 - Redraw non client are on Setmenu
11964 - Calc proper menu starting point
11966 2005-02-17 Peter Bartok <pbartok@novell.com>
11968 * Application.cs: Fixed message_filter check
11970 2005-02-17 Peter Bartok <pbartok@novell.com>
11972 * Application.cs: Now calls registered message filters
11973 * DockStyle.cs: Fixed attribute
11974 * Form.cs: Fixed attribute
11975 * Menu.cs: Fixed attribute
11976 * ToolTip.cs: Fixed attribute
11977 * TreeNode.cs: Added missing attributes and arranged in regions
11978 * PropertyGrid.cs: Fixed signatures
11979 * TreeNodeCollection.cs: Added attributes
11980 * Splitter.cs: Added missing attributes; arranged into regions
11981 * TabPage.cs: Added missing attributes; arranged into regions
11982 * TextBoxBase.cs: Added missing attributes
11983 * TextBox.cs: Added missing attributes
11984 * ArrangeDirection.cs: Added missing attributes
11985 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
11986 * ToolBarButton.cs: Fixed attributes
11987 * AnchorStyles.cs: Fixed attribute
11988 * TrackBar.cs: Fixed attributes
11989 * TabControl.cs: Added missing attributes and arranged into regions
11990 * ToolBar.cs: Fixed attribute
11991 * StatusBar.cs: Fixed signature, organized into regions and added
11993 * StatusBarPanel.cs: Fixed attributes
11994 * ContentsResizedEventArgs.cs: Implemented
11995 * ContentsResizedEventHandler.cs: Implemented
11996 * DateBoldEventArgs.cs: Implemented
11997 * DateBoldEventHandler.cs: Implemented
11998 * UpDownEventArgs.cs: Implemented
11999 * UpDownEventHandler.cs: Implemented
12001 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
12003 * Form.cs: first Menu NC refactoring
12004 * MenuAPI.cs: first Menu NC refactoring
12006 2005-02-16 Peter Bartok <pbartok@novell.com>
12008 * ImeMode.cs: Added missing attributes
12009 * Menu.cs: Fixed attribute
12010 * GroupBox.cs: Fixed attribute
12011 * Label.cs: Fixed attribute
12012 * ColorDialog.cs (RunDialog): Removed TODO attribute
12013 * ComboBox.cs: Fixed attributes
12014 * ListControl.cs: Added missing attributes
12015 * PropertyGrid.cs: Fixed attributes
12016 * Control.cs: Fixed attributes
12017 * ListViewItem.cs: Added TypeConverter attribute
12018 * NotifyIcon.cs: Fixed attributes
12019 * ListView.cs: Fixed attributes
12020 * ButtonBase.cs: Fixed attribute
12021 * ImageList.cs: Added missing attributes
12022 * ContainerControl.cs: Fixed signature
12023 * CheckedListBox.cs: Fixed attribute; added missing attributes
12024 * Panel.cs: Fixed attributes
12025 * PropertyTabChangedEventArgs.cs: Added missing attribute
12026 * PropertyValueChangedEventArgs.cs: Added missing attribute
12027 * Binding.cs: Fixed attribute
12028 * ListViewItemConverter: Implemented ListViewSubItemConverter class
12029 * ListBox.cs: Fixed attribute; added missing attributes;
12030 * ScrollableControl.cs: Added missing attributes
12031 * PictureBox.cs: Added missing attributes; implemented missing property
12032 * DateTimePicker.cs: Added missing attributes
12033 * Theme.cs (ToolWindowCaptionHeight): Fixed type
12034 * MonthCalendar.cs: Fixed attributes
12035 * StatusBarPanel.cs: Added missing attributes
12036 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12038 2005-02-16 Peter Bartok <pbartok@novell.com>
12040 * TextBoxBase.cs: The previous method to enforce height yet remember
12041 the requested high was less than ideal, this is an attempt to do
12043 * Control.cs: Added comment about possible problem
12044 * Copyright: Updated format
12045 * GridItemType.cs: Fixed swapped values
12047 2005-02-15 Jackson Harper <jackson@ximian.com>
12049 * BaseCollection.cs: Use property so we never access an
12050 uninitialized list. Also initialize the list in the property.
12052 2005-02-15 Peter Bartok <pbartok@novell.com>
12054 * GroupBox.cs (ProcessMnemonic): Implemented
12055 * Label.cs (ProcessMnemonic): Implemented
12056 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12059 2005-02-15 Peter Bartok <pbartok@novell.com>
12061 * RadioButton.cs (ProcessMnemonic): Implemented
12062 * CheckBox.cs (ProcessMnemonic): Implemented
12064 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12066 - Added internal method to allow calling ProcessMnemonic from other
12068 * ContainerControl.cs:
12069 - Started support for handling validation chain handling
12070 - Implemented ProcessMnemonic support
12071 - Added Select() call to Active, to make sure the active control
12073 * Form.cs: Setting toplevel flag for Forms (this was lost in the
12074 FormParent rewrite)
12075 * ThemeWin32Classic.cs:
12076 - DrawCheckBox(): Fixed stringformat to show hotkeys
12077 - DrawRadioButton(): Fixed stringformat to show hotkeys
12078 * CommonDialog.cs: Removed WndProc override, not needed
12080 2005-02-14 Peter Bartok <pbartok@novell.com>
12082 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
12083 missed those in the rewrite
12085 2005-02-14 Miguel de Icaza <miguel@novell.com>
12087 * NumericUpDown.cs (Increment, ToString): Add.
12088 (DecimalPlaces): implement.
12092 * UpDownBase.cs: Add the designer attributes.
12094 2005-02-13 Peter Bartok <pbartok@novell.com>
12096 * Panel.cs: Removed border_style, now in Control
12097 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
12098 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
12100 2005-02-13 Peter Bartok <pbartok@novell.com>
12102 * MouseButtons.cs: Added missing attributes
12103 * XplatUIStructs.cs: Added enumeration for title styles
12104 * LeftRightAlignment.cs: Added missing attributes
12105 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
12106 it compatible with Graphics.FromHwnd()
12107 * SelectedGridItemChangedEventArgs.cs: Fixed property type
12108 * Keys.cs: Added missing attributes
12109 * SelectionRange.cs: Added missing attributes
12110 * SelectionRangeConverter.cs: Added
12112 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
12113 ReleaseMenuDC methods
12114 - Renamed ReleaseWindow to UngrabWindow
12115 - Added proper startup notice to allow version identification
12117 - Added missing attributes
12118 - Removed FormParent concept
12119 * Label.cs: Removed border_style field, now in Control
12120 * RadioButton.cs: Now properly selects RadioButton when focus is
12122 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
12124 - Added missing attributes
12125 - Added borderstyle handling
12126 - Removed FormParent concept support
12127 - Fixed calls to XplatUI to match changed APIs
12128 - Fixed bug that would case us to use disposed Graphics objects
12129 - Removed unneeded internal methods
12130 - PerformLayout(): Fixed to handle DockStyle.Fill properly
12131 - SelectNextControl(): Fixed to properly check common parents
12132 * TextBoxBase.cs: Removed border_style field (now in Control)
12134 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
12135 fixed calculations for form size
12136 - Added support for localized strings and icons
12137 - Improved form size calculations, added border
12138 * ListView.cs: Removed border_style field (now in Control)
12139 * X11Structs.cs: Moved several structs from X11 driver here
12140 * X11Keyboard.cs: Changed debug message
12141 * Application.cs: Removed FormParent concept support
12143 - Resetting end_modal flag
12144 - Removed FormParent concept support
12145 * NativeWindow.cs: Removed FormParent concept support
12146 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
12147 Client area and Non-Client whole window to allow support for WM_NC
12149 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
12150 prevent using it until it supports Hwnd as per Geoff Norton's request
12151 * ToolBar.cs: Fixed drawing, was not doing proper drawing
12152 * PictureBox.cs: Removed border_style field, now in Control
12153 * XplatUIWin32.cs: Added new driver methods
12155 2005-02-12 Peter Bartok <pbartok@novell.com>
12157 * OpacityConverter.cs: Implemented
12158 * Hwnd.cs: Internal class to support drivers that need to emulate
12159 client area/non-client area window behaviour
12161 2005-02-11 Peter Bartok <pbartok@novell.com>
12163 * KeysConverter.cs: Implemented
12165 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
12167 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
12168 * LinkLabel: Added missing attributes
12169 * MainMenu.cs: fixes ToString
12170 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
12171 * ListBox.cs: fixes event position
12172 * TrackBar.cs: adds missing attributes and events
12174 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
12176 * MenuItem.cs: Use SystemInformation and bug fixes
12177 * MenuAPI.cs: Use SystemInformation and bug fixes
12179 2005-02-09 Jackson Harper <jackson@ximian.com>
12181 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
12182 their keystate otherwise things like VK_MENU get stuck "on".
12184 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
12186 * ListBox.cs: Fixes AddRange bug
12188 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
12191 - Add missing attributes
12192 - Add missing method
12194 * CheckedListBox.cs: Added missing attributes
12195 - Add missing attributes
12196 - Remove extra method
12198 * ComboBox.cs: Added missing attributes
12199 * VScrollBar.cs: Added missing attributes
12200 * ScrollBar.cs: Added missing attributes
12201 * ListBox.cs: Fixes signature, add missing consts
12202 * LinkArea.cs: Added missing attributes
12205 2005-02-08 Peter Bartok <pbartok@novell.com>
12207 * Menu.cs: Added missing attributes
12208 * MainMenu.cs: Added missing attributes
12209 * GroupBox.cs: Added missing attributes
12210 * Label.cs: Added missing attributes
12211 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
12213 - Added Instance and Options properties
12214 - Added missing attributes
12215 * Cursor.cs: Made Serializable
12216 * NotifyIcon: Added missing attributes
12217 * MenuItem.cs: Added missing attributes
12218 * TextBoxBase.cs: Implemented AppendText() and Select() methods
12219 * Panel.cs: Added Missing attributes
12220 * MonthCalendar.cs: Fixed CreateParams
12222 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
12226 - Fixes issues with links
12227 - Adds the class attributes
12229 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
12232 - Fixes button when no items available in dropdown
12233 - Fixes repainting problems
12234 - Adds the class attributes
12236 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12238 * XplatUIOSX.cs: Detect the menu bar and title bar height from
12239 the current theme. Cache these on startup.
12241 2005-02-07 Jackson Harper <jackson@ximian.com>
12243 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
12244 the scrollbar buttons when they are depressed.
12246 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12248 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
12249 Get the display size from the main displayid. We currently dont
12250 support multiple display configurations.
12252 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12254 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
12256 2005-02-07 Miguel de Icaza <miguel@novell.com>
12258 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
12260 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
12262 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
12264 2005-02-04 Jackson Harper <jackson@ximian.com>
12266 * ThemeWin32Classic.cs: Respect the clipping rect when
12267 drawing. Only fill the intersection of clips and rects so there
12268 isn't a lot of large fills.
12269 * ScrollBar.cs: Pass the correct clipping rect to the theme
12270 engine. Remove some debug code.
12272 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
12274 * DateTimePicker.cs:
12275 - Fixed crash on DateTime.Parse, use Constructor instead
12277 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
12281 - Owner draw support (MeasureItem and DrawItem)
12283 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
12286 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12287 - Fixes MenuItems.Add range
12289 - MergeMenu and Clone and CloneMenu functions
12291 2005-02-03 Jackson Harper <jackson@ximian.com>
12293 * ScrollBar.cs: Make abstract
12294 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12297 2005-02-03 Jackson Harper <jackson@ximian.com>
12299 * ScrollBar.cs: First part of my scrollbar fixups. This removes
12300 all the unneeded refreshes and uses invalidates with properly
12303 2005-02-03 Peter Bartok <pbartok@novell.com>
12305 * ComponentModel.cs: Added
12306 * IDataGridEditingService.cs: Added
12307 * Timer.cs: Added missing attributes
12308 * ToolTip.cs: Added missing attributes
12310 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12312 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12314 2005-02-03 Peter Bartok <pbartok@novell.com>
12316 * ListBox.cs: Added missing attributes
12318 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
12321 - Fixes font height after font change
12322 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12324 2005-02-02 Peter Bartok <pbartok@novell.com>
12326 * HandleData.cs: Introduced static methods to allow class
12327 to be more self-contained and track it's own HandleData objects
12328 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12329 HandleData to use new static methods
12331 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
12334 - Fixes default size and PreferredHeight
12336 - ObjectCollection.Insert implementation
12342 - ObjectCollection.Insert implementation
12343 - No selection after clean
12346 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12348 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12350 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
12353 - Caches ItemHeight calculation for OwnerDrawVariable
12354 - Handles dropdown properly
12355 - Fixes several minor bugs
12357 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12360 - Fixes 71946 and 71950
12361 - Fixes changing Multicolumn on the fly
12362 - Fixes keyboard navigation on Multicolumn listboxes
12364 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12366 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12367 crash reporter log.
12369 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12371 * XplatUIOSX.cs: Allow applications to actually exit.
12373 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12375 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
12376 their parent at creation time rather than lazily later. Fixes a major
12377 regression we were experiencing.
12379 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12381 * ThemeWin32Classic.cs: more date time picker painting fixes
12382 * DateTimePicker.cs: more monthcalendar drop down fixes
12383 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12385 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12388 - When moving the thumb going outside the control should stop the moving
12389 - Adds the firing of missing events
12390 - Fixes no button show if Size is not specified
12391 - End / Home keys for keyboard navigation
12393 2005-01-30 Peter Bartok <pbartok@novell.com>
12395 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12396 sanity check to prevent theoretical loop
12397 * XplatUIWin32.cs (SetVisible): Removed debug output
12398 * XplatUIX11.cs (SystrayChange): Added sanity check
12399 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12400 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12401 behaviour, valid until the X11 client window rewrite is done
12402 * TextBox.cs (ctor): Setting proper default foreground and background
12405 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
12407 * Theme: Added DrawDateTimePicker to interface
12408 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12409 * DateTimePicker.cs: Created (still needs keys and painting code)
12410 * DateTimePickerFormat.cs: added
12411 * MonthCalendar.cs: fixed CreateParams for popup window mode
12413 2005-01-29 Peter Bartok <pbartok@novell.com>
12415 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12416 this should also the calculations for ligher/darker
12417 * Theme.cs: Fixed defaults for ScrollBar widths/heights
12419 2005-01-29 Peter Bartok <pbartok@novell.com>
12421 * ArrangeDirection.cs: Added
12422 * ArrangeStartingPositon.cs: Added
12423 * SystemInformation.cs: Implemented
12424 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12425 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12426 used by SystemInformation class
12427 * X11Strucs.cs: Added XSizeHints structure
12429 - Fixed CreateParams to make sure the menu window is always visible
12430 - TrackPopupMenu: Added check to make sure we don't draw the
12433 2005-01-29 Peter Bartok <pbartok@novell.com>
12435 * HandleData.cs: Added method for altering invalid area
12436 * TextBoxBase.cs: Implemented TextLength
12438 2005-01-28 Peter Bartok <pbartok@novell.com>
12440 * XplatUIX11.cs: Improvement over last patch, not sending
12441 the WM_PAINT directly anymore, instead we scroll any pending
12442 exposed areas and let the system pick out the WM_PAINT later
12444 2005-01-28 Peter Bartok <pbartok@novell.com>
12446 * SWF.csproj: Deleted, no longer used. Instead,
12447 Managed.Windows.Forms/SWF.csproj should be used
12448 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12449 directly, to avoid a potential race condition with the next
12452 2005-01-28 Peter Bartok <pbartok@novell.com>
12454 * XplatUI.cs: Made class internal
12456 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
12458 * CheckedListBox.cs:
12461 - Missing methods and events
12463 2005-01-27 Peter Bartok <pbartok@novell.com>
12465 * Application.cs (Run): Don't use form if we don't have one
12467 2005-01-27 Peter Bartok <pbartok@novell.com>
12469 * TextBoxBase.cs (get_Lines): Fixed index off by one error
12471 2005-01-27 Peter Bartok <pbartok@novell.com>
12473 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12474 * GridItem.cs: Added; Patch by Jonathan S. Chambers
12475 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12476 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12477 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12478 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12479 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12480 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12481 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12482 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12483 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12484 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12486 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12489 - Draw focus on Simple Combobox
12490 - Fixes drawing issues
12493 2005-01-27 Peter Bartok <pbartok@novell.com>
12496 - Place window in default location, instead of hardcoded 0/0
12497 - Send initial LocationChanged event
12499 - UpdateBounds after creation to find out where the WM placed us
12500 - Make sure that if the ParentForm changes location the Form
12502 * XplatUIX11.cs: XGetGeometry will not return the coords relative
12503 to the root, but to whatever the WM placed around us.
12504 Translate to root coordinates before returning toplevel
12506 * XplatUIWin32.cs: Removed debug output
12507 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12508 flag to GetWindowPos, to allow translation of coordinates on X11
12510 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12512 * ListBox.cs: connect LostFocus Event
12514 2005-01-27 Peter Bartok <pbartok@novell.com>
12516 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12517 XplatUIX11.cs: Extended the Systray API
12518 * Form.cs: Removed debug output
12519 * Application.cs: Fixed focus assignment, always need to call
12520 XplatUI.Activate() since Form.Activate() has rules that may
12522 * NotifyIcon.cs: Should be complete now
12523 * ToolTip.cs: Worked around possible timer bug
12525 2005-01-27 Jackson Harper <jackson@ximian.com>
12528 - Only invalidate the effected tabs when the
12529 selected index changes. This reduces drawing and gets rid of some
12531 - Only refresh if the tabs need to be shifted, otherwise only
12532 invalidate the slider button.
12533 - On windows the tabs are not filled to right if the slider is
12536 2005-01-27 Jackson Harper <jackson@ximian.com>
12538 * TabControl.cs: Only refresh on mouseup if we are showing the
12539 slider. Also only invalidate the button whose state has changed.
12541 2005-01-26 Peter Bartok <pbartok@novell.com>
12543 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12544 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12545 and SystrayRemove() methods
12546 * XplatUIOSX.cs: Stubbed Systray methods
12548 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12550 - Fixed broken XChangeProperty calls (marshalling messed up things)
12551 * X11Structs.cs: Added enums and structs required for Size hinting
12552 * NotifyIcon.cs: Added & implemented
12554 2005-01-26 Jackson Harper <jackson@ximian.com>
12556 * TabControl.cs: Space vertically layed out tabs properly.
12558 2005-01-26 Peter Bartok <pbartok@novell.com>
12560 * Form.cs (CreateClientParams): Always set the location to 0,0
12561 since we're a child window.
12563 * Control.cs (SetVisibleCore): Always explicitly setting the location
12564 of a toplevel window, apparently X11 doesn't like to move windows
12565 while they're not mapped.
12567 2005-01-26 Jackson Harper <jackson@ximian.com>
12569 * TabControl.cs: Implement FillToRight size mode with vertically
12572 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12574 * ControlPaint.cs, ThemeWin32Classic.cs
12575 - Fixes DrawFocusRectangle
12577 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12580 - MenuBar tracking only starts when item is first clicked
12581 - Fixes menu hidding for multiple subitems
12582 - Unselect item in MenuBar when item Executed
12585 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
12588 - IsInputKey for ListBox
12591 - Shift and Control item selection
12592 - Implement SelectionMode.MultiExtended
12593 - Fixes RightToLeft
12595 - IsInputKey implemented
12596 - Do not generate OnTextChangedEdit on internal txt changes
12598 2005-01-23 Peter Bartok <pbartok@novell.com>
12600 * AccessibleObject.cs: Partially implemented Select()
12601 * MonthCalendar.cs: Added missing attributes and events
12602 * Form.cs: Fixed CreateParams behaviour, now controls derived from
12603 form can properly override CreateParams.
12604 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12605 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12606 Control performs Invalidate & Update
12607 * NativeWindow (CreateHandle): Added special handling for Form
12608 and Form.FormParent classes to allow overriding of From.CreateParams
12610 - ControlNativeWindow: Renamed 'control' variable to more intuitive
12612 - ControlNativeWindow: Added Owner property
12613 - Removed usage of Refresh() on property changes, changed into
12614 Invalidate(), we need to wait until the queue is processed for
12615 updates, direct calls might cause problems if not all vars for
12616 Paint are initialized
12617 - Added call to UpdateStyles() when creating the window, to set any
12618 styles that CreateWindow might have ignored.
12619 - Added support for Form CreateParent overrides to UpdateStyles()
12620 * MessageBox.cs: Removed no longer needed FormParent override stuff,
12621 CreateParams are now properly overridable
12622 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12623 CreateParams are now properly overridable
12625 2005-01-23 Miguel de Icaza <miguel@ximian.com>
12627 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12630 Capture LostFocus and OnTextBoxChanged. The later introduces a
12631 recursive invocation that I have not figured out yet.
12633 Reset the timer when not using (it was accumulating).
12636 (OnTextBoxChanged): Set UserEdit to true here to track whether the
12637 user has made changes that require validation.
12639 Reset changing to avoid loops.
12641 2005-01-22 Miguel de Icaza <miguel@ximian.com>
12643 * NumericUpDown.cs: Display value at startup.
12645 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12648 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12649 filled in. Added some basic parsing of text.
12651 Still missing the OnXXX method overrides, and figuring out the
12652 events that must be emitted.
12654 * UpDownBase.cs: Handle UserEdit on the Text property.
12656 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
12659 - Fixes IntegralHeight
12662 2005-01-21 Jackson Harper <jackson@ximian.com>
12664 * TabControl.cs: Set the SelectedIndex property when SelectedTab
12665 is set so that the page visibility is updated and the tabs are
12668 2005-01-21 Jackson Harper <jackson@ximian.com>
12670 * TabControl.cs: Use cliping rectangle for blitting. Give the
12671 theme the clipping rect so we can do clipping while
12672 drawing. Remove some debug code.
12674 2005-01-21 Jackson Harper <jackson@ximian.com>
12676 * TabPage.cs: Add a new method so tab pages can force the tab
12677 control to recalculate the tab page sizes.
12678 * TabControl.cs: UpdateOwner needs to make the tab control recalc
12681 2005-01-20 Jackson Harper <jackson@ximian.com>
12683 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12685 2005-01-20 Jackson Harper <jackson@ximian.com>
12687 * TreeView.cs: Set the bounds for nodes properly. They were
12688 getting screwed up when checkboxes were not enabled, but images
12691 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
12694 - Owner draw support
12697 2005-01-20 Jackson Harper <jackson@ximian.com>
12699 * XplatUIStructs.cs: More misc keys
12700 * X11Keyboard.cs: Ignore some control keys.
12702 2005-01-20 Jackson Harper <jackson@ximian.com>
12704 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12705 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12707 2005-01-19 Peter Bartok <pbartok@novell.com>
12709 * Control.cs: Un-selecting the control when it is loosing focus
12711 2005-01-19 Jackson Harper <jackson@ximian.com>
12713 * TreeView.cs: Hook up to the text controls leave event so we can
12714 end editing when the users clicks outside the text box.
12716 2005-01-19 Jackson Harper <jackson@ximian.com>
12718 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12719 get set in the conversion array.
12721 2005-01-19 Peter Bartok <pbartok@novell.com>
12723 * Application.cs (ModalRun): Added a call to CreateControl to ensure
12724 focus is properly set
12726 - Added missing attributes
12727 - removed styles, those are already set in the base class
12729 - Added missing attributes
12730 - Added clip window styles
12731 * CheckBox.cs: Added missing attributes
12733 - FormParentWindow.CreateParams: Added required clip styles
12734 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12735 also filters modifier keys
12737 - Added assignment of Accept and Cancel button to enable Enter
12738 and Esc keys in MessageBox dialogs
12739 - FormParentWindow.CreateParams: Added required clip styles
12740 * RadioButton.cs: Added missing attributes
12741 * TextControl.cs: No longer draws selection if control does not
12744 - Now draws simple rectangle around test area to make it obvious
12745 there's a control. This is a hack until we properly support borders
12746 - A few simple fixes to support selections better, now erases selected
12747 text when typing, and resets selection when using movement keys
12749 2005-01-19 Miguel de Icaza <miguel@ximian.com>
12751 * UpDownBase.cs: Added some new properties.
12753 * DomainUpDown.cs: Implement a lot to get my test working.
12755 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12757 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
12759 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12761 * OSXStructs (WindowAttributes): Fixed csc complaints
12763 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12766 OSXStructs.cs: Initial refactor to move enums and consts into
12767 OSXStructs and use them in the driver for greater readability.
12769 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12771 * XplatUIOSX.cs: Initial support for Standard Cursors.
12772 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
12774 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
12776 * ComboBox.cs: ability to change style when the ctrl is already
12777 created, missing methods and events, bug fixes, signature fixes
12779 2005-01-19 Peter Bartok <pbartok@novell.com>
12781 * Cursors.cs (ctor): Added ctor to fix signature
12783 2005-01-18 Peter Bartok <pbartok@novell.com>
12785 * Button.cs: Implemented DoubleClick event
12787 - Fixed keyboard handling to behave like MS, where the press of
12788 Spacebar is equivalent to a mousedown, and the key release is
12789 equivalent to mouseup. Now a spacebar push will give the same
12790 visual feedback like a mouse click.
12791 - Added missing attributes
12792 - Added ImeModeChanged event
12793 - Added support for generating DoubleClick event for derived classes
12795 - Implemented DoubleClick event
12796 - Added missing attributes
12797 * CommonDialog.cs: Added missing attribute
12798 * ContextMenu.cs: Added missing attributes
12800 - AutoChecked buttons do not allow to be unselected when clicked
12801 (otherwise we might end up with no selected buttons in a group)
12802 - Added missing attributes
12803 - Implemented DoubleClickEvent
12804 * ThreadExceptionDialog.cs: Enabled TextBox code
12806 2005-01-18 Peter Bartok <pbartok@novell.com>
12808 * Form.cs: Removed debug output
12809 * Button.cs: Added support for DoubleClick method
12811 2005-01-18 Peter Bartok <pbartok@novell.com>
12814 - Added method to parent window that allows triggering size
12815 calculations when a menu is added/removed
12816 - set_Menu: Cleaned up mess from early days of Form and Control,
12817 now properly triggers a recalc when a menu is added/removed
12818 - Added case to select form itself as focused form if no child
12820 - Added PerformLayout call when showing dialog, to ensure properly
12823 - Select(): Made internal so Form can access it
12824 - Focus(): Only call Xplat layer if required (avoids loop), and sets
12826 * Application.cs (Run): Removed hack and calls PerformLayout instead
12827 to trigger calculation when Form becomes visible
12829 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
12831 * ComboBox.cs: fixes for ownerdraw
12833 2005-01-18 Peter Bartok <pbartok@novell.com>
12836 - Sentinel is no longer static, each Document gets it's own, this
12837 avoids locking or alternatively overwrite problems when more
12838 than one text control is used simultaneously.
12839 - Switched to use Hilight and HilightText brushes for text selection
12841 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
12843 2005-01-18 Peter Bartok <pbartok@novell.com>
12846 - Hooked up the following events:
12854 o SystemColorsChanged
12855 o ParentFontChanged
12857 - Removed debug output
12858 - Added a call to the current theme's ResetDefaults when a color change
12860 * Form.cs: Now setting the proper ImeMode
12861 * Theme.cs: Defined a method to force recreation of cached resources
12862 and rereading of system defaults (ResetDefaults())
12863 * ThemeWin32Classic.cs: Added ResetDefaults() stub
12865 2005-01-17 Peter Bartok <pbartok@novell.com>
12867 * Control.cs: Added missing attributes
12869 2005-01-17 Jackson Harper <jackson@ximian.com>
12871 * TreeNode.cs: Implement editing. Add missing properties selected
12873 * TreeView.cs: Implement node editing. Also some fixes to use
12874 Invalidate (invalid area) instead of Refresh when selecting.
12876 2005-01-17 Peter Bartok <pbartok@novell.com>
12879 - Implemented InvokeGotFocus() method
12880 - Implemented InvokeLostFocus() method
12881 - Implemented InvokePaint() method
12882 - Implemented InvokePaintBackground() method
12883 - Implemented InvokeClick() method
12884 - Implemented FindForm() method
12885 - Implemented RectangleToClient() method
12886 - Implemented ClientToRectangle() method
12887 - Implemented ResetBackColor() method
12888 - Implemented ResetCursor() method
12889 - Implemented ResetFont() method
12890 - Implemented ResteForeColor() method
12891 - Implemented ResetImeMode() method
12892 - Implemented ResetLeftToRight() method
12893 - Implemented ResetText() method
12894 - Implemented Scale() methods
12895 - Implemented ScaleCore() method
12896 - Implemented Update() method
12897 - Removed unused variables
12898 - Stubbed AccessibilityNotifyClients and
12899 ControlAccessibleObject.NotifyClients() methods (dunno what to do
12901 - Now setting proper default for RightToLeft property
12902 - Fixed bug in SetClientSizeCore that would cause windows to get
12904 - Now sending Click/DoubleClick events
12905 - Now selecting controls when left mouse button is clicked on
12907 * AccessibleEvents.cs: Added
12908 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
12909 * XplatUIOSX.cs: Stubbed UpdateWindow() method
12910 * XplatUIWin32.cs: Implemented UpdateWindow() method
12911 * XplatUIX11.cs: Implemented UpdateWindow() method
12912 * Form.cs: Removed stray semicolon causing CS0162 warning
12913 * ThemeWin32Classic.cs: Fixed unused variable warnings
12914 * ScrollableControl.cs: Now calls base method for ScaleCore
12915 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
12916 style to avoid interference with internal click handler (which is
12917 different than standard Control click handling)
12919 - Now unchecks all sibling radio buttons when control is
12920 selected (Fixes #68756)
12921 - Removed internal tabstop variable, using the one inherited from
12924 2005-01-17 Jackson Harper <jackson@ximian.com>
12926 * NavigateEventArgs.cs: Fix base type.
12927 * LinkLabel.cs: Sig fix
12929 2005-01-17 Jackson Harper <jackson@ximian.com>
12931 * TreeView.cs: Only invalidate the effected nodes bounds when
12934 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12936 * XplatUIWin32.cs: fixes Win32 marshaling
12937 * XplatUIX11.cs: fixes method signature
12939 2005-01-17 Peter Bartok <pbartok@novell.com>
12941 * XplatUIX11.cs: Clean up resources when we no longer need them
12943 2005-01-17 Peter Bartok <pbartok@novell.com>
12945 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
12946 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
12947 and DestroyCursor() methods.
12948 * Cursor.cs: Partially implemented, now supports standard cursors;
12949 still contains some debug code
12950 * Cursors.cs: Implemented class
12952 - WndProc(): Added handling of WM_SETCURSOR message, setting the
12954 - Implemented Cursor property
12955 - Replaced break; with return; more straightforwar and possibly
12957 - Now properly setting the result for WM_HELP
12958 * X11Structs.cs: Added CursorFontShape enum
12959 * XplatUIStructs.cs:
12960 - Added StdCursor enum (to support DefineStdCursor() method)
12961 - Added HitTest enum (to support sending WM_SETCURSOR message)
12963 - Now sends the WM_SETCURSOR message
12964 - Implemented new cursor methods
12965 * XplatUIOSX.cs: Stubbed new cursor methods
12967 - Implemented new cursor methods
12968 - Added GetSystemMetrics function and associated enumeration
12970 2005-01-15 Peter Bartok <pbartok@novell.com>
12973 - WndProc(): Now handles EnableNotifyMessage
12974 - SelectNextControl(): Fixed bug where if no child or sibling
12975 controls exist we looped endlessly
12977 2005-01-14 Jackson Harper <jackson@ximian.com>
12979 * TreeView.cs: Recalculate the tab pages when a new one is added
12980 so that the proper bounding rects are created.
12982 2005-01-14 Jackson Harper <jackson@ximian.com>
12984 * TreeView.cs: Draw a gray box instead of a grip in the lower
12985 right hand corner when there are both horizontal and vertical
12988 2005-01-14 Jackson Harper <jackson@ximian.com>
12990 * Control.cs: When erasing backgrounds use FromHwnd instead of
12991 FromHdc when there is a NULL wparam. This occurs on the X driver.
12992 * XplatUIX11.cs: Set the wparam to NULL.
12994 2005-01-13 Jackson Harper <jackson@ximian.com>
12996 * PictureBox.cs: Implement missing methods (except ToString, need
12997 to test that on windows) and events. When visibility is changed we
12998 need to redraw the image because the buffers are killed. When size
12999 is changed refresh if the sizemode needs it.
13001 2005-01-13 Peter Bartok <pbartok@novell.com>
13003 * Control.cs (SelectNextControl): Was using wrong method to select
13006 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13008 * ComboBox.cs: fixes dropstyle
13010 2005-01-13 Peter Bartok <pbartok@novell.com>
13013 - Implemented Select() override
13014 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13015 - Now sets keyboard focus on startup
13016 * Control.cs (SelectNextControl): Now properly handles directed=true
13018 - WndProc: Now passes tab key on to base if AcceptTabChar=false
13019 - Added (really bad) focus rectangle (mostly for testing)
13020 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13021 to enforce redraw on focus changes
13022 * ContainerControl.cs:
13023 - Fixed detection of Shift-Tab key presses
13024 - Fixed traversal with arrow keys
13025 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13026 gonna keep this or if it's complete yet
13028 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13030 * ComboBox.cs: missing properties, fixes
13032 2005-01-13 Peter Bartok <pbartok@novell.com>
13034 * Panel.cs (ctor): Setting Selectable window style to off
13035 * Splitter.cs (ctor): Setting Selectable window style to off
13036 * GroupBox.cs (ctor): Setting Selectable window style to off
13037 * Label.cs (ctor): Setting Selectable window style to off
13039 2005-01-12 Miguel de Icaza <miguel@ximian.com>
13041 * UpDownBase.cs (InitTimer): If the timer has been already
13042 created, enable it.
13044 Use a TextBox instead of a Label.
13046 2005-01-12 Jackson Harper <jackson@ximian.com>
13048 * TreeView.cs: Refresh the tree after sorting the nodes. Always
13049 draw the connecting node lines (when ShowLines is true).
13050 * TreeNode.cs: The nodes index can now be updated. This is used
13051 when a node collection is sorted.
13052 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13053 insert or an existing unsorted node collection can be sorted.
13055 2005-01-12 Peter Bartok <pbartok@novell.com>
13057 * ContainerControl.cs: Implemented ProcessDialogKeys()
13059 2005-01-12 Peter Bartok <pbartok@novell.com>
13062 - Implemented SelectNextControl() method
13063 - Several focus related bug fixes
13064 - Fixed Docking calculations to match MS documentation and
13067 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
13069 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13072 2005-01-12 Peter Bartok <pbartok@novell.com>
13075 - Fixed broken Contains() method
13076 - Implemented GetNextControl() method. Finally. This is the pre-
13077 requisite for focus handling.
13079 2005-01-12 Peter Bartok <pbartok@novell.com>
13081 * OSXStrucs.cs: Added
13083 2005-01-12 Peter Bartok <pbartok@novell.com>
13086 - Removed PeekMessageFlags
13087 - Implemented SetWindowStyle() method
13088 * XplatUIStructs.cs: Added PeekMessageFlags
13089 * X11Structs: Added missing border_width field to XWindowChanges struct
13091 - PeekMessage: Now throws exception if flags which are not yet
13092 supported are passed
13093 - Implemented SetWindowStyle() method
13094 - Fixed SetZOrder to handle AfterHwnd properly
13095 * XplatUI.cs: Added SetWindowStyle() method
13096 * XplatUIDriver.cs: Added SetWindowStyle() abstract
13098 - Implemented UpdateStyles() method
13099 - Implemented UpdateZOrder() method
13100 * XplatUIOSX.cs: Added SetWindowStyle() stub
13102 2005-01-12 Geoff Norton <gnorton@customerdna.com>
13104 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
13108 2005-01-11 Jackson Harper <jackson@ximian.com>
13110 * TreeView.cs: Still need to draw lines to siblings even if out of
13111 the current node is out of the clip.
13113 2005-01-11 Jackson Harper <jackson@ximian.com>
13115 * TreeView.cs: When setting the hbar/vbar/grip position use
13116 SetBounds so that perform layout is only called once. Also suspend
13117 and resume layout so layout is only done once for all controls.
13118 - Removed some debug fluff
13119 * SizeGrip.cs: Call base implmentation in overriding methods.
13120 - When visibility is changed the drawing buffers are killed so we
13123 2005-01-11 Jackson Harper <jackson@ximian.com>
13125 * TreeView.cs: Calculate the open node count while drawing. This
13126 saves us an entire tree traversal for every paint operation. Use
13127 a member var for the open node count so less vars are passed around.
13129 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
13131 * MonthCalendar.cs:
13132 - fixed selection to use mousemove, not mouse polling on timer
13133 * ThemeWin32Classic.cs
13134 - removed redundant unused variable "no_more_content"
13136 2005-01-11 Peter Bartok <pbartok@novell.com>
13138 * XplatUIX11.cs (DoEvents): Needs to return when no more events
13139 are pending, so it now calls PeekMessage instead of GetMessage;
13140 implemented a incomplete version of PeekMessage
13142 2005-01-11 Peter Bartok <pbartok@novell.com>
13144 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
13146 * TextBoxBase.cs: Added sending of TextChanged event
13148 2005-01-10 Jackson Harper <jackson@ximian.com>
13150 * TreeView.cs: Try not to draw outside the clipping rectangle on
13153 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
13155 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
13157 2005-01-10 Jackson Harper <jackson@ximian.com>
13160 - Implement fast scrolling. Now only the newly
13161 exposed nodes are drawn and the old image is moved using the
13162 XplatUI::ScrollWindow method.
13163 - Factor in height of nodes when calculating whether or not the
13164 node is in the clipping rect.
13166 2005-01-10 Jackson Harper <jackson@ximian.com>
13168 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
13170 2005-01-10 Peter Bartok <pbartok@novell.com>
13172 * Application.cs: Added temporary hack to resolve all our resize
13173 required issues on startup. This will get fixed properly at
13174 some point in the future
13176 2005-01-10 Jackson Harper <jackson@ximian.com>
13178 * SizeGrip.cs: New internal class that is used as a sizing
13179 grip control...hence the name.
13181 2005-01-10 Peter Bartok <pbartok@novell.com>
13183 * Control.cs: Implemented proper TabIndex handling, now assigning
13184 a tabindex when a control is added to a container
13185 * GroupBox.cs (ctor): Now sets the Container style bit, required
13186 for Control.GetNextControl()
13188 2005-01-09 Jackson Harper <jackson@ximian.com>
13190 * TextBoxBase.cs: Clear window when scrolling (fixes build).
13192 2005-01-09 Peter Bartok <pbartok@novell.com>
13194 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13195 XplatUIX11.cs: Added ability to control ScrollWindow expose and
13196 an overload for ScrollWindow to allow only scrolling a rectangle
13198 2005-01-09 Peter Bartok <pbartok@novell.com>
13201 - Implemented SetDesktopBounds method
13202 - Implemented SetDesktopLocation method
13204 2005-01-08 Jackson Harper <jackson@ximian.com>
13206 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
13207 the node count has changed, this removes to VScroll::Refresh calls
13210 2005-01-08 Geoff Norton <gnorton@customerdna.com>
13212 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
13214 2005-01-07 Jackson Harper <jackson@ximian.com>
13216 * TreeNode.cs: Just update the single node when it is
13217 checked. Don't refresh after toggling, the Expand/Collapse already
13219 * TreeView.cs: Respect clipping a little more when drawing. Try
13220 not to redraw things that don't need to be redrawn. Just hide the
13221 scrollbars when they are no longer needed instead of removing
13222 them, so they don't have to be created again and again.
13224 2005-01-07 Geoff Norton <gnorton@customerdna.com>
13226 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
13227 coordinates to window space to place the caret properly, FIXED.
13228 Implement GetWindowState & SetWindowState
13230 2005-01-06 Peter Bartok <pbartok@novell.com>
13233 - Implemented ClientSize property
13234 - Implemented DesktopBounds property
13235 - Implemented DesktopLocation property
13236 - Implemented IsRestrictedWindow property
13237 - Implemented Size property
13238 - Implemented TopLevel property
13239 - Implemented FormWindowState property
13241 - Implemented GetTopLevel() method
13242 - Implemented SetTopLevel() method
13243 * X11Structs.cs (Atom):
13244 - Added AnyPropertyType definition
13245 - Added MapState definiton and updated XWindowAttribute struct
13246 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
13247 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
13248 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
13250 - Implemented GetWindowState() and SetWindowState() methods
13251 - Fixed Win32GetWindowLong return type
13253 - Introduced central function for sending NET_WM messages
13254 - Implemented GetWindowState() and SetWindowState() methods
13255 * TextBoxBase.cs (set_Lines):
13256 - Now uses Foreground color for text added via Text property (Duh!)
13257 - Added code to remember programmatically requested size (fixes
13258 behaviour when Multiline is set after Size)
13259 - Added AutoSize logic
13261 2005-01-06 Jackson Harper <jackson@ximian.com>
13263 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
13265 2005-01-06 Jackson Harper <jackson@ximian.com>
13267 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
13268 set to less then 0.
13270 2005-01-06 Jackson Harper <jackson@ximian.com>
13272 * ScrollableControl.cs: Lazy init the scrollbars.
13274 2005-01-06 Jackson Harper <jackson@ximian.com>
13276 * Theme.cs: Speed up getting pens and solid brushes, by using
13277 their ARGB as a hash instead of tostring and not calling Contains.
13279 2005-01-06 Peter Bartok <pbartok@novell.com>
13282 - Implemented OnActivated and OnDeactivate event trigger
13283 - Implemented Activate() method
13284 - Fixed ShowDialog() to activate the form that was active before
13285 the dialog was shown
13287 - Added global active_window var that tracks the currently active
13289 - Now always grabs Property changes from the root window to always
13290 catch changes on the active window property
13291 - Added code to PropertyNotify handler to send Active/Inactive
13292 messages when state changes. This puts X11 and Win32 en par on
13293 WM_ACTIVATE notifications (except for double notifications when
13294 the user clicks away from our modal window to another one of our
13297 2005-01-05 Jackson Harper <jackson@ximian.com>
13299 * ImageList.cs: Implment ctor
13301 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13303 * XplatUIOSX.cs: Implement Activate/SetTopmost
13305 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13307 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13309 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13311 * XplatUIOSX.cs: Implement GetActive/SetFocus.
13313 2005-01-05 Peter Bartok <pbartok@novell.com>
13315 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13316 XplatUIOSX.cs: Added GetActive method to return the currently
13317 active window for the application (or null, if none is active)
13319 - Implemented ActiveForm
13320 - Commented out owner assignment for modal dialogs (causes problems
13321 on Win32, since the owner will be disabled)
13322 - Reworked some Active/Focus handling (still incomplete)
13323 * CommonDialog.cs: Commented out owner assignment for modal dialogs
13324 (causes problems on Win32, since the owner will be disabled)
13325 * IWin32Window: Added ComVisible attribute
13327 2005-01-05 Peter Bartok <pbartok@novell.com>
13329 * ToolTip.cs (WndProc): Enable setting focus now that we have the
13330 required XplatUI functions.
13332 2005-01-05 Peter Bartok <pbartok@novell.com>
13334 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13335 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13336 to implement focus and activation handling; still incomplete and
13339 2005-01-04 Peter Bartok <pbartok@novell.com>
13341 * TextBoxBase.cs: Changed access level for Document property to
13342 match switch to internal for TextControl
13344 2005-01-04 Peter Bartok <pbartok@novell.com>
13346 * AccessibleObject: Added ComVisible attribute
13348 2005-01-04 Jackson Harper <jackson@ximian.com>
13350 * X11Keyboard.cs: Remove unneeded var.
13352 2005-01-04 Jackson Harper <jackson@ximian.com>
13354 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13356 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13357 ClientMessage. This makes apps exit cleanly (more often).
13359 2005-01-04 Jackson Harper <jackson@ximian.com>
13361 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13362 handling focus, return correct colors and fonts,
13363 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13364 handle selection, horizontal scrolling, and mouse interaction.
13366 2005-01-04 Peter Bartok <pbartok@novell.com>
13368 * ICommandExecutor.cs: Added
13369 * IDataGridColumnStyleEditingNotificationService.cs: Added
13370 * IFeatureSupport.cs: Added
13371 * IFileReaderService.cs: Added
13372 * IDataObject.cs: Added ComVisible attribute
13373 * AmbientProperties.cs: Added
13374 * BaseCollection.cs: Added missing attributes
13375 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13376 * BaseCollection.cs: Added missing attributes
13377 * Binding.cs: Added TypeConverter attribute
13378 * BindingContext.cs: Added DefaultEvent attribute
13379 * BindingsCollection.cs: Added DefaultEvent attribute
13380 * Button.cs: Added DefaultValue attribute
13381 * DragEventArgs.cs: Added ComVisible attribute
13382 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13383 * KeyEventArgs.cs: Added ComVisible attribute
13384 * KeyPressEventArgs.cs: Added ComVisible attribute
13385 * MouseEventArgs.cs: Added ComVisible attribute
13386 * NavigateEventArgs.cs: Added
13387 * NavigateEventHandler.cs: Added
13388 * FeatureSupport.cs: Added
13389 * OSFeature.cs: Added
13390 * Theme.cs: Added abstract Version property to support OSFeature
13391 * ThemeWin32Classic.cs: Added Version property to
13392 support OSFeature.Themes
13393 * ProgressBar.cs: Removed OnPaintBackground override, not required since
13394 the proper styles to avoid background drawing are set, also doesn't
13396 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13397 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13398 * ScrollEventArgs.cs: Added ComVisible attribute
13399 * SplitterEventArgs.cs: Added ComVisible attribute
13400 * AccessibleSelection.cs: Added Flags attribute
13401 * Appearance.cs: Added ComVisible attribute
13402 * Border3DSide.cs: Added ComVisible attribute
13403 * Border3DStyle.cs: Added ComVisible attribute
13404 * BorderStyle.cs: Added ComVisible attribute
13405 * DragAction.cs: Added ComVisible attribute
13406 * ErrorBlinkStyle.cs: Added
13407 * ScrollEventType.cs: Added ComVisible attribute
13408 * AnchorStyles.cs: Added Editor attribute
13409 * DockStyle.cs: Added Editor attribute
13410 * HorizontalAlignment.cs: Added ComVisible attribute
13411 * HelpEventArgs.cs: Added ComVisible attribute
13412 * PaintEventArgs.cs: Added IDisposable
13414 2005-01-04 Peter Bartok <pbartok@novell.com>
13416 * TextControl.cs: Switched Line, LineTag and Document classes to
13419 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13421 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13422 Simple mode, fixes, IntegralHeight, etc.
13424 2005-01-04 Peter Bartok <pbartok@novell.com>
13426 * TextBoxBase.cs: Using proper font variable now
13428 2005-01-04 Peter Bartok <pbartok@novell.com>
13430 * Form.cs (ShowDialog): Set parent to owner, if provided
13431 * GroupBox.cs: Removed unused vars
13433 - Added GetHashCode() for Document and LineTag classes
13434 - Removed unused variables
13435 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13436 to allow translation between continuous char position and line/pos
13437 * CheckBox.cs: Removed vars that are provided by base class
13438 * RadioButton.cs: Removed vars that are provided by base class, added
13439 new keyword where required
13440 * LinkLabel.cs: Added new keyword where required
13441 * Control.cs (WndProc): Removed unused variable
13443 - Finished SelectionLength property
13444 - Implemented SelectionStart property
13445 - Implemented Text property
13446 - Removed unused vars
13447 * MessageBox.cs: Added new keyword where required
13448 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13450 * MenuAPI.cs: Added new keyword where required
13451 * ButtonBase.cs: Removed vars that are provided by base class, added
13452 new keyword where required
13453 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13454 argument to double, to allow compiling with csc 2.0 (Atsushi ran
13456 * Application.cs (Run): Now triggers the ThreadExit event
13457 * CommonDialog.cs: Added new keyword where required; now properly sets
13458 parent (owner) for dialog
13459 * XplatUIX11.cs: Commented out unused vars
13460 * StatusBar.cs: Fixed signature for Text property
13461 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13463 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13465 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13466 TrackBar.cs, MonthCalendar.cs: remove unused vars
13468 2005-01-03 Jackson Harper <jackson@ximian.com>
13470 * ThemeWin32Classic.cs:
13471 * X11Keyboard.cs: Remove unused vars.
13473 2005-01-03 Peter Bartok <pbartok@novell.com>
13476 - set_Text: Tied into TextControl
13477 - set_TextAlignment: Tied into TextControl
13479 - Added alignment properties and implemented alignment handling
13480 and drawing (still has a bug, not generating proper expose events)
13481 - Added new Line() constructor to allow passing the line alignment
13482 - Fixed selection setting, properly handling end<start now
13483 - Added aligment considerations to RecalculateDocument()
13485 - Now properly enforces control height for single line controls
13486 - Added support for CharacterCasing
13487 - Added IsInputKey override
13488 - Fixed Keys.Enter logic
13489 - Added SetBoundsCore override
13490 - Fixed mouse selection handling
13492 2005-01-03 Jackson Harper <jackson@ximian.com>
13495 - Collapse and uncheck all nodes when CheckBoxes is disabled.
13496 - Checkboxes are always aligned to the bottom of the node,
13497 regardless of item height.
13498 - Use the node bounds to draw the text so we can center it when
13499 the item height is greater then the font height.
13500 - Node::Bounds are only the text part of the node.
13501 * TreeNode.cs: New method to combine collapsing and unchecking all
13504 2005-01-02 Jackson Harper <jackson@ximian.com>
13506 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13507 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13508 tree when a check is changed. TODO: Only refresh the checked node.
13510 2004-12-30 Jackson Harper <jackson@ximian.com>
13512 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13513 * TreeNode.cs: When collapsing make sure to never collapse the
13516 2004-12-29 Jackson Harper <jackson@ximian.com>
13518 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13520 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
13522 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13524 2004-12-28 Peter Bartok <pbartok@novell.com>
13526 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13529 2004-12-28 Peter Bartok <pbartok@novell.com>
13531 * Control.cs (WndProc): Added WM_HELP handler, now generates
13532 HelpRequested event
13533 * Form.cs: Added HelpButton property and required support code
13534 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13536 2004-12-28 Peter Bartok <pbartok@novell.com>
13539 - Made DialogForm.owner variable internal
13540 - Added check to ensure owner form is set before setting
13541 owner properties in CreateParams
13543 2004-12-28 Geoff Norton <gnorton@customerdna.com>
13545 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
13546 swizzling. Implement ClientToScreen and ScreenToClient. Implement
13547 GetCursorPos. Fix major visibility issues. Rework the windowing
13548 system to support borderless/titleless windows (implements menus).
13549 Fix GetWindowPos. Implement initial background color support for
13552 2004-12-28 Peter Bartok <pbartok@novell.com>
13554 * Form.cs (get_CreateParams): Make sure we have an owner before using
13555 the owner variable. Implement proper default if no owner exists
13557 2004-12-28 Peter Bartok <pbartok@novell.com>
13559 * In preparation for making Managed.Windows.Forms the default build target
13560 for System.Windows.Forms, the following stubbed files were added.
13561 Dialogs are currently being implemented by contributors and are only
13562 short-term place holders.
13563 * ColorDialog.cs: Initial check-in (minmal stub)
13564 * DataGrid.cs: Initial check-in (minimal stub)
13565 * DataGridLineStyle.cs: Initial check-in (minimal stub)
13566 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13567 * DataGridTableStyle.cs: Initial check-in (minimal stub)
13568 * FontDialog.cs: Initial check-in (minimal stub)
13569 * FileDialog.cs: Initial check-in (minimal stub)
13570 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13571 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13572 * OpenFileDialog: Initial check-in (minimal stub)
13573 * IComponentEditorPageSite.cs: Initial check-in
13574 * Splitter.cs: Initial check-in (for Jackson)
13575 * SplitterEventArgs.cs: Initial check-in (for Jackson)
13576 * SplitterEventHandler.cs: Initial check-in (for Jackson)
13577 * TextBox.cs: Initial check-in; still needs some wiring to
13578 TextControl backend
13579 * Form.cs: Implemented ControlBox property
13580 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13581 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13582 * TextControl.cs: Added selection functionality; added todo header
13584 - Implemented Lines property
13585 - Implemented TextHeight property
13586 - Implemented SelectedText property
13587 - Implemented SelectionLength property
13588 - Implemented SelectAll method
13589 - Implemented ToString method
13590 - Removed and cleaned up some debug code
13591 - Implemented (still buggy) mouse text selection
13593 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
13595 * ComboBox.cs: Complete DropDownList implementation, fixes.
13597 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
13599 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13600 * ComboBoxStyle.cs: ComboBoxStyle enum
13601 * ComboBox.cs: Initial work on ComboBox control
13603 2004-12-21 Peter Bartok <pbartok@novell.com>
13605 * Control.cs (ctor, CreateParams): Moved setting of is_visible
13606 forward so that anything that creates a window gets the default,
13607 also no longer uses Visible property in CreateParams to avoid
13608 walking up the parent chain and possibly get the wrong visible
13609 status. Fixed IsVisible to no longer walk up to the parent.
13611 2004-12-21 Peter Bartok <pbartok@novell.com>
13613 * Form.cs (ShowDialog): Unset modality for the proper window
13615 2004-12-20 Peter Bartok <pbartok@novell.com>
13617 * CommonDialog.cs: Initial check-in
13619 2004-12-20 Peter Bartok <pbartok@novell.com>
13621 * Control.cs (Visible): Now uses the parent window instead of the
13622 client area window for the property
13625 - ShowDialog(): Now uses the proper window for modality
13626 - The default visibility state for the form parent is now false. This
13627 will prevent the user from seeing all the changes to the form and
13628 its controls before the application hits Application.Run()
13629 - Removed some stale commented out code
13632 - Added FindWindow() method to have a method to check for existence
13634 - Added ability to override default exception handling (for example
13635 when debugging with VS.Net; to do this the ExternalExceptionHandler
13637 - Removed some useless debug output
13640 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13641 not working as expected
13642 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13643 property to allow switching back to the modal window if focus is
13644 given to another one of our windows (Application Modal)
13645 - Now only sets override_redirect if we create a window
13647 - Moved EventMask selection before mapping of newly created window
13648 so we can catch the map event as well
13649 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13650 - Added various Atom related DllImports
13651 - Implemented Exit() method
13652 - .ctor() : No longer shows window if WS_VISIBLE is not defined
13653 in the CreateParams
13655 * MessageBox.cs: Now properly deals with the FormParent window by
13656 providing an override the FormParent CreateParams property to
13657 set as POPUP instead of OVERLAPPED window.
13659 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13661 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
13662 Minor code cleanup.
13664 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13666 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13668 2004-12-18 Peter Bartok <pbartok@novell.com>
13670 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13671 implementing SetModal() method
13673 2004-12-18 Peter Bartok <pbartok@novell.com>
13675 * X11Structs.cs (XGCValues): Fixed type of function element
13676 * XplatUI.cs: Added ScrollWindow() method
13677 * XplatUIDriver.cs: Added ScrollWindow() abstract
13678 * XplatUIWin32.cs: Implemented ScrollWindow() method
13679 * XplatUIX11.cs: Implemented ScrollWindow() method
13680 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13682 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13684 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
13685 Some more keyboard support (INCOMPLETE)
13687 2004-12-17 Peter Bartok <pbartok@novell.com>
13690 - Added color attribute to line tags.
13691 - Added color argument to all functions dealing with tags
13692 - Added color argument support to various functions
13693 - Fixed miss-calculation of baseline/shift in certain circumstances
13695 * TextBoxBase.cs: Added new color option to test code
13697 2004-12-17 Jackson Harper <jackson@ximian.com>
13700 * MonthCalendar.cs: Signature fixes
13702 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13704 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13705 keyboard event moved it. Create a new graphics context for each paint resolves this
13707 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13709 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13710 Make caret exist and go blink blink. Initial keyboard support.
13711 Fix exception handler, Add Invalidate support. Change way RefreshWindow
13714 2004-12-17 Jackson Harper <jackson@ximian.com>
13716 * XplatUIStructs.cs: Updated set of virtual keycodes.
13717 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13719 2004-12-17 Jackson Harper <jackson@ximian.com>
13721 * XplatUIX11.cs: Prune old keyboard code.
13723 2004-12-17 Jackson Harper <jackson@ximian.com>
13725 * XplatUIX11.cs: When generating mouse wparams get the modifier
13726 keys from the ModifierKeys property.
13728 2004-12-17 Jackson Harper <jackson@ximian.com>
13730 * X11Keyboard.cs: Send up/down input when generating
13731 messages. Remove some unused vars.
13733 2004-12-17 Jackson Harper <jackson@ximian.com>
13736 * TreeView.cs: get rid of warnings.
13738 2004-12-17 Jackson Harper <jackson@ximian.com>
13740 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13742 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
13744 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13745 CheckedListBox.cs: Implementation
13747 2004-12-17 Peter Bartok <pbartok@novell.com>
13749 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13751 2004-12-16 Peter Bartok <pbartok@novell.com>
13754 - InsertCharAtCaret(): Fixed start pos fixup
13755 - CaretLine_get: No longer derives the line from the tag, the tag
13756 could be stale if lines in the document have been added or deleted
13757 - RebalanceAfterDelete(): Fixed bug in balancing code
13758 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
13759 - Line.Streamline(): Now can also elminate leading empty tags
13760 - DumpTree(): Added a few more tests and prevented exception on
13762 - Added Debug section for Combining lines
13763 - Delete(): Now copies all remaining properties of a line
13766 - Left mousebutton now sets the caret (and middle button still acts
13767 as formatting tester, which must go away soon)
13768 - Added Debug section for Deleting/Combining lines
13769 - Fixed calculations for UpdateView after Combining lines
13771 2004-12-16 Peter Bartok <pbartok@novell.com>
13773 * TextControl.cs: Now properly aligns text on a baseline, using the
13774 new XplatUI.GetFontMetrics() method. Simplified several calculations
13775 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
13778 2004-12-16 Peter Bartok <pbartok@novell.com>
13780 * XplatUI.cs: Added GetFontMetrics() method
13781 * XplatUIDriver.cs: Added GetFontMetrics() abstract
13782 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
13783 into libgdiplus, our private GetFontMetrics function
13784 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
13785 * XplatUIWin32.cs: Implemented GetFontMetrics() method
13787 2004-12-16 Jackson Harper <jackson@ximain.com>
13789 * XplatUIStruct.cs: Add enum for dead keys
13790 * X11Keyboard.cs: Map and unmap dead keys.
13792 2004-12-16 Jackson Harper <jackson@ximian.com>
13794 * X11Keyboard.cs: Detect and use the num lock mask.
13796 2004-12-16 Peter Bartok <pbartok@novell.com>
13798 * Control.cs (CreateGraphics): Added check to make sure the
13799 handle of the window exists before calling Graphics.FromHwnd()
13801 2004-12-16 Peter Bartok <pbartok@novell.com>
13803 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
13804 contains a lot of code that's not supposed to be there for the
13805 real thing, but required for developing/testing the textbox
13808 2004-12-16 Peter Bartok <pbartok@novell.com>
13811 - Fixed Streamline method
13812 - Added FindTag method to Line
13813 - Added DumpTree method for debugging
13814 - Added DecrementLines() method for deleting lines
13815 - Fixed UpdateView to update the cursor to end-of-line on single-line
13817 - Added PositionCaret() method
13818 - Fixed MoveCaret(LineDown) to move into the last line, too
13819 - Added InsertChar overload
13820 - Fixed InsertChar tag offset calculations
13821 - Added DeleteChar() method
13822 - Added Combine() method for folding lines
13823 - Fixed Delete() method, no longer allocates wasted Line object and
13824 now copies all properties when swapping nodes
13825 - Delete() method now updates document line counter
13827 2004-12-15 Jackson Harper <jackson@ximian.com>
13829 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
13830 * X11Keyboard.cs: Expose the currently selected modifier keys
13831 through a property.
13833 2004-12-15 Peter Bartok <pbartok@novell.com>
13835 * TextControl.cs: Initial check-in. Still incomplete
13837 2004-12-15 Jackson Harper <jackson@ximian.com>
13840 * TreeView.cs: Fix build on csc (second time today ;-))
13842 2004-12-15 Jackson Harper <jackson@ximian.com>
13844 * TreeView.cs: Store the treenodes plus/minus box bounds when it
13845 is calculated and use this for click testing.
13846 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
13848 2004-12-15 Jackson Harper <jackson@ximian.com>
13850 * TreeView.cs: Pass the nodes image index to the image list when
13851 drawing that image.
13853 2004-12-15 Jackson Harper <jackson@ximian.com>
13855 * X11Keyboard.cs: Set messages hwnd.
13856 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
13857 post_message calls.
13859 2004-12-15 Jackson Harper <jackson@ximian.com>
13861 * X11Keyboard.cs: Fix to compile with csc.
13863 2004-12-15 Jackson Harper <jackson@ximian.com>
13865 * X11Structs.cs: Add key mask values
13866 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
13867 * X11Keyboard.cs: New file - Extrapolates and interpolates key
13868 down/up foo into WM_CHAR foo
13869 * KeyboardLayouts.cs: Common keyboard layouts
13870 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
13871 post messages into the main queue.
13873 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
13875 * Button.cs: implement ProcessMnemonic
13876 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
13878 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
13879 * ButtonBase.cs: Show HotkeyPrefix (not the &)
13881 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
13883 * MonthCalendar.cs: Implemented click-hold for next/previous month
13886 2004-12-11 Peter Bartok <pbartok@novell.com>
13889 - Added XKeyboardState (moved from XplatUIX11.cs)
13890 - Added XCreateGC related enums and structures
13891 - Added GXFunction for XSetFunction
13893 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
13895 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
13896 CaretVisible() calls
13898 * ToolTip.cs: Added code to prevent stealing focus from app windows
13900 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
13901 DestroyCaret, SetCaretPos and CaretVisible)
13904 - Added implementation for caret functions
13905 - Moved hover variables into a struct, to make it a bit easier
13906 on the eyes and to debug
13907 - Removed XKeyboardState (moved to XplatUIX11.cs)
13908 - Moved Keyboard properties into the properties region
13910 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
13911 call to get a graphics context for our control
13913 * XplatUIOSX.cs: Added empty overrides for the new caret functions
13915 * TreeView.cs: Fixed bug. No matter what color was set it would always
13916 return SystemColors.Window
13918 * XplatUIWin32.cs: Implemented caret overrides
13920 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
13922 * ListBox.cs: fire events, implement missing methods and properties,
13925 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
13927 * MonthCalendar.cs: invalidation bug fixing
13928 * ThemeWin32Classic.cs: paint fixing
13930 2004-12-09 Geoff Norton <gnorton@customerdna.com>
13932 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
13933 prepare the CGContextRef there now.
13935 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
13937 * MonthCalendar.cs:
13938 - optimisationL only invalidate areas that have changed
13939 * ThemeWin32Classic.cs:
13940 - only paint parts that intersect with clip_area
13942 2004-12-09 Peter Bartok <pbartok@novell.com>
13944 * Application.cs: Undid changes from r37004 which cause problems
13947 2004-12-09 Ravindra <rkumar@novell.com>
13949 * ToolBar.cs: Added support for displaying ContextMenu
13950 attached to a button on ToolBar.
13951 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
13954 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13956 * Label.cs: autosize works in text change and removes unnecessary
13959 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13961 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13964 2004-12-08 Geoff Norton <gnorton@customerdna.com>
13966 * XplatUIOSX.cs: Added mouse move/click/grab support
13967 Remove some debugging WriteLines not needed anymore.
13968 Add window resizing/positioning.
13969 Fix visibility on reparenting.
13971 2004-12-08 Peter Bartok <pbartok@novell.com>
13973 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
13975 2004-12-07 Geoff Norton <gnorton@customerdna.com>
13977 * XplatUIOSX.cs: Initial checkin
13978 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
13980 2004-12-03 Ravindra <rkumar@novell.com>
13982 * ListView.cs: Added some keybindings and fixed scrolling.
13983 ScrollBars listen to ValueChanged event instead of Scroll
13984 Event. This would let us take care of all changes being
13985 done in the scrollbars' values programmatically or manually.
13986 * ListView.cs (CanMultiselect): Added a check for shift key.
13987 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
13988 * ListViewItem.cs (Clone): Fixed. We need to make a copy
13989 of ListViewSubItemCollection as well.
13991 2004-12-06 Peter Bartok <pbartok@novell.com>
13993 * Control.cs (Parent): Added check and exception to prevent
13996 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
13998 * ListBox.cs: implemented clipping, selection single and multiple,
14001 2004-12-03 Ravindra <rkumar@novell.com>
14003 * ListView.cs (ListView_KeyDown):
14004 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14005 when CTRL key is pressed.
14006 * ListViewItem.cs (Selected): Fixed setting the property.
14008 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14010 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14012 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14013 MinimizeBox, ShowInTaskbar, TopMost properties.
14015 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14016 will be implemented).
14018 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14020 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14022 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14025 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14027 * TreeView.cs: BackColor is Colors.Window.
14029 2004-12-01 Jackson Harper <jackson@ximian.com>
14031 * TreeView.cs: When resizing the tree if the user is making it
14032 smaller we don't get expose events, so we need to handle adding
14033 the horizontal scrollbar in the size changed handler as well as
14034 the expose handler.
14036 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
14038 * DrawItemState.cs: fixes wrong enum values
14040 2004-12-01 Jackson Harper <jackson@ximian.com>
14042 * TreeView.cs: Resize the hbar as well as the vbar on resize.
14044 2004-12-01 Jackson Harper <jackson@ximian.com>
14046 * NodeLabelEditEventArgs.cs:
14047 * NodeLabelEditEventHandler.cs:
14048 * OpenTreeNodeEnumerator.cs:
14050 * TreeNodeCollection.cs:
14052 * TreeViewAction.cs:
14053 * TreeViewCancelEventArgs.cs:
14054 * TreeViewCancelEventHandler.cs:
14055 * TreeViewEventArgs.cs:
14056 * TreeViewEventHandler.cs: Initial implementation.
14058 2004-12-01 Ravindra <rkumar@novell.com>
14060 * ListView.cs (CalculateListView): Fixed scrolling related
14061 calculations. Also, removed some debug statements from other
14063 * ListViewItem.cs: Changed access to 'selected' instance variable
14064 from private to internal.
14065 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14067 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
14069 * ThemeWin32Classic.cs: remove cache of brush and pens for
14070 specific controls and use the global system, fixes scrollbutton
14071 bugs (for small sizes, disabled, etc)
14073 * ScrollBar.cs: does not show the thumb for very small controls
14074 (as MS) and allow smaller buttons that the regular size
14076 2004-12-01 Miguel de Icaza <miguel@ximian.com>
14078 * UpDownBase.cs: Add abstract methods for the interface.
14079 Add new virtual methods (need to be hooked up to TextEntry when it
14081 Add override methods for most features.
14082 Computes the size, forces the height of the text entry.
14084 * NumericUpDown.cs: Put here the current testing code.
14086 * Set eol-style property on all files that do not have mixed line
14087 endings, to minimize the future problems. There are still a few
14088 files with mixed endings, and someone should choose whether they
14089 want to move it or not.
14091 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
14093 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
14096 2004-11-30 Ravindra <rkumar@novell.com>
14098 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
14099 drawing and replaced use of SystemColors by theme colors.
14100 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
14101 * ListView.cs (ListViewItemCollection.Add): Throw exception when
14102 same ListViewItem is being added more than once.
14104 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
14106 * MonthCalendar.cs:
14107 - ControlStyles love to make the control not flicker
14109 2004-11-30 Peter Bartok <pbartok@novell.com>
14111 * CharacterCasing.cs: Added
14113 2004-11-29 Peter Bartok <pbartok@novell.com>
14115 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14116 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
14117 I am removing these files as they conflict with already completed
14118 work. While it is fantastic to get contributions to MWF, I
14119 respectfully ask that everyone please coordinate their contributions
14120 through mono-winforms-list or #mono-winforms at this time. We're
14121 explicitly avoiding stubbing and don't want controls that don't have
14122 their basic functionality implemented in svn. Please also see
14123 http://www.mono-project.com/contributing/winforms.html
14126 2004-11-29 Marek Safar <marek.safar@seznam.cz>
14128 * Application.cs (ModalRun): Don't hang after exit.
14130 * Theme.cs: New TreeViewDefaultSize property.
14132 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
14133 with less hardcoded SystemColors constant.
14134 Implemented TreeViewDefaultSize.
14136 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14137 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
14140 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
14142 * MonthCalendar.cs:
14143 - Fix NextMonthDate and PrevMonthDate click moving calendar
14145 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
14147 * MonthCalendar.cs:
14148 - Fix usage of ScrollChange Property when scrolling months
14150 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
14152 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
14153 - Fixes menu destroying
14154 - Support adding and removing items on already created menus
14156 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
14158 * MonthCalendar.cs:
14159 - Re-worked all bolded dates handling to match win32
14160 * ThemeWin32Classic.cs:
14161 - Fixed rendering with bolded dates
14163 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
14165 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
14166 - Horizontal scroolbar
14171 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
14173 * MonthCalendar.cs:
14174 - Fix Usage of MaxSelectionCount from SelectionRange
14175 - Fixed Shift + Cursor Selection
14176 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
14177 - Fixed normal cursor selection to be compat with win32
14178 - Fixed Shift + Mouse Click selection
14180 2004-11-24 Peter Bartok <pbartok@novell.com>
14182 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
14183 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
14185 - CreatedKeyBoardMsg now updates keystate with Alt key
14186 - Added workaround for timer crash to CheckTimers, Jackson will
14187 develop a proper fix and check in later
14188 - Implemented DispatchMessage
14189 - Removed calling the native window proc from GetMessage (call
14190 now moved to DispatchMessage)
14192 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
14193 the keydata (Fixes bug #69831)
14196 - (DispatchMessage): Switched to return IntPtr
14197 - Added DllImport for SetFocus
14199 2004-11-24 Ravindra <rkumar@novell.com>
14201 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
14202 background drawing.
14203 * ListViewItem.cs: Fixed various properties, calculations
14204 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
14205 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
14206 and some internal properties. Fixed MouseDown handler and Paint
14209 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14211 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
14213 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14215 * ContainerControl.cs: correct accidental check in of local changes
14217 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14219 * ThemeWin32Classic.cs:
14220 - Fixed Drawing Last month in grid (sometimes not showing)
14221 * MonthCalendar.cs:
14222 - Fixed title width calculation bug (makeing title small)
14224 2004-11-23 Peter Bartok <pbartok@novell.com>
14227 - Added generation of WM_MOUSEHOVER event
14228 - Added missing assignment of async_method atom
14229 - Fixed WM_ERASEBKGND; now only redraws the exposed area
14231 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
14233 * ThemeWin32Classic.cs:
14234 - Fixed Drawing of today circle when showtodaycircle not set
14235 - fixed drawing of first and last month in the grid (gay dates)
14236 * MonthCalendar.cs:
14237 - Fixed Drawing of today circle
14238 - Fixed drawing of grady dates
14239 - Fixed HitTest for today link when ShowToday set to false
14240 - Fixed DefaultSize to obey ShowToday
14242 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
14244 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
14245 * System.Windows.Forms/Theme.cs
14246 * MonthCalendar.cs: added for MonthCalendar
14247 * SelectionRange.cs: added for MonthCalendar
14248 * Day.cs: added for MonthCalendar: added for MonthCalendar
14249 * DateRangeEventArgs.cs: added for MonthCalendar
14250 * DateRangeEventHandler.cs: added for MonthCalendar
14252 2004-11-22 Ravindra <rkumar@novell.com>
14254 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
14257 2004-11-22 Miguel de Icaza <miguel@ximian.com>
14259 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
14262 * NumericUpDown.cs: Added new implementation.
14263 * UpDownBase.cs: Added new implementation.
14265 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
14268 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
14271 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
14274 2004-11-21 Miguel de Icaza <miguel@ximian.com>
14276 * Timer.cs (Dispose): Should call the base dispose when
14279 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
14281 * ScrollBar.cs: updates thumb position when max, min or increment
14284 2004-11-21 Ravindra <rkumar@novell.com>
14286 * ListView.cs: Implemented item selection, activation and
14287 column header style. Fixed properties to do a redraw, if
14288 required. Added support for MouseHover, DoubleClick, KeyDown
14289 and KeyUp event handling and some minor fixes.
14290 * ListViewItem.cs: Fixed constructor.
14291 * ThemeWin32Classic.cs: Improved drawing for ListView.
14293 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
14295 * ThemeWin32Classic.cs: initial listbox drawing code
14296 * DrawMode.cs: new enumerator
14297 * ListControl.cs: stubbed class
14298 * ListBox.cs: initial implementation
14299 * Theme.cs: new methods definitions
14300 * SelectionMode.cs: new enumerator
14302 2004-11-17 Peter Bartok <pbartok@novell.com>
14304 * XplatUIWin32.cs: Added double-click events to the class style
14305 * Control.cs (WndProc):
14306 - Added handling of click-count to MouseDown/ MouseUp events.
14307 - Added handling of middle and right mouse buttons
14308 - Removed old debug code
14310 2004-11-17 Jackson Harper <jackson@ximian.com>
14312 * XplatUIX11.cs: Use the new Mono.Unix namespace.
14314 2004-11-17 Ravindra <rkumar@novell.com>
14316 * ListView.cs: Added event handling for MouseMove/Up/Down.
14317 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14318 * ThemeWin32Classic.cs: We need to clear the graphics context and
14319 draw column header in a proper state.
14322 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
14324 * Menu.cs: fixes signature
14326 2004-11-16 Peter Bartok <pbartok@novell.com>
14328 * XplatUIX11.cs (GetMessage): Implemented generation of
14329 double click mouse messages
14331 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
14333 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14336 2004-11-11 Peter Bartok <pbartok@novell.com>
14338 * HandleData.cs: Added Visible property
14339 * XplatUIX11.cs (IsVisible): Now uses Visible property from
14341 * XplatUIX11.cs: Removed old debug leftovers
14342 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14343 * Control.cs (WndProc): Removed old debug leftovers,
14344 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14345 needed WM_SIZE handling
14347 2004-11-11 Jackson Harper <jackson@ximian.com>
14349 * OwnerDrawPropertyBag.cs:
14350 * TreeViewImageIndexConverter.cs: Initial implementation
14352 2004-11-10 Jackson Harper <jackson@ximian.com>
14354 * ThemeWin32Classic.cs:
14355 * TabControl.cs: instead of moving tabs by the slider pos just
14356 start drawing at the tab that is offset by the slider. This way
14357 scrolling always moves by exactly one tab.
14359 2004-11-10 Jackson Harper <jackson@ximian.com>
14361 * TabControl.cs: You can only scroll left when the slider has
14362 already ben moved right.
14364 2004-11-10 Jackson Harper <jackson@ximian.com>
14366 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14369 2004-11-10 Jackson Harper <jackson@ximian.com>
14371 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14374 2004-11-09 Jackson Harper <jackson@ximian.com>
14376 * TabControl.cs (CalcXPos): New helper method so we can determine
14377 the proper place to start drawing vertical tabs.
14378 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14380 2004-11-09 Jackson Harper <jackson@ximian.com>
14382 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14383 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14384 and Bottom, left and right are illegal values for this and
14385 multiline is enabled when the alignment is set to left or right.
14386 (DrawTab): Each alignment block should draw the text itself now
14387 because Left requires special love. Also add rendering for Left
14390 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
14392 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14393 does not destroy the windows, removes debugging messages
14395 2004-11-09 jba <jba-mono@optusnet.com.au>
14397 * ThemeWin32Classic.cs
14398 (DrawButtonBase): Fix verticle text rect clipping in windows
14399 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14400 rendering and incorrect text rect clipping
14401 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14402 rendering and incorrect text rect clipping
14404 2004-11-08 Jackson Harper <jackson@ximian.com>
14406 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14407 bottom when they are bottom aligned so the bottoms of the tabs get
14409 * TabControl.cs (DropRow): Move rows up instead of down when the
14410 tab control is bottom aligned.
14412 2004-11-08 13:59 pbartok
14415 - Added handling for various window styles
14416 - Added handling for popup windows
14417 - Added SetTopmost handling
14419 2004-11-08 13:55 pbartok
14422 - Added argument to SetTopmost method
14423 - Fixed broken ClientToScreen function
14425 2004-11-08 13:53 pbartok
14427 * XplatUIStructs.cs:
14428 - Added missing WS_EX styles
14430 2004-11-08 13:53 pbartok
14432 * XplatUI.cs, XplatUIDriver.cs:
14433 - Added argument to SetTopmost
14435 2004-11-08 13:52 pbartok
14438 - Added XSetWindowAttributes structure
14439 - Improved XWindowAttributes structure
14440 - Added SetWindowValuemask enum
14441 - Added window creation arguments enum
14442 - Added gravity enum
14443 - Added Motif hints structure
14444 - Added various Motif flags and enums
14445 - Added PropertyMode enum for property functions
14447 2004-11-08 13:50 pbartok
14450 - Fixed arguments for updated SetTopmost method
14452 2004-11-08 13:49 pbartok
14455 - Fixed arguments for updated SetTopmost function
14456 - Fixed usage of PointToClient
14458 2004-11-08 13:44 pbartok
14461 - Added Clipping of children and siblings
14463 2004-11-08 13:41 pbartok
14466 - Removed SetMenuBarWindow call. We do this in Form.cs
14468 2004-11-08 13:40 jackson
14470 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14471 scrolling jimmi in the correct location with bottom aligned tabs
14473 2004-11-08 13:36 pbartok
14475 * ContainerControl.cs:
14476 - Implemented BindingContext
14477 - Implemented ParentForm
14479 2004-11-08 12:46 jackson
14481 * TabControl.cs: Put bottom rendered tabs in the right location
14483 2004-11-08 07:15 jordi
14485 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14488 2004-11-05 17:30 jackson
14490 * TabControl.cs: When selected tabs are expanded make sure they
14491 don't go beyond the edges of the tab control
14493 2004-11-05 14:57 jackson
14495 * TabControl.cs: Reset show_slider so if the control is resized to
14496 a size where it is no longer needed it's not displayed anymore
14498 2004-11-05 13:16 jackson
14500 * TabControl.cs: Make tab pages non visible when added to the
14503 2004-11-05 12:42 jackson
14505 * TabControl.cs: Implement SizeMode.FillToRight
14507 2004-11-05 12:16 jackson
14509 * Control.cs: Do not call CreateHandle if the handle is already
14512 2004-11-05 11:46 jackson
14514 * TabControl.cs: Remove superflous call to CalcTabRows
14516 2004-11-05 09:07 jackson
14518 * XplatUIX11.cs: Update for Mono.Posix changes
14520 2004-11-05 07:00 ravindra
14522 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14525 2004-11-04 22:47 jba
14527 * ThemeWin32Classic.cs:
14528 - Fix Button rendering for FlatStyle = Flat or Popup
14529 - Fix RadioButton and CheckBox rendering when Appearance = Button
14530 (normal and flatstyle).
14531 - Correct outer rectangle color when drawing focus rectangle
14532 - Adjust button bounds to be 1 px smaller when focused
14533 - Make button not draw sunken 3d border when pushed (windows compat)
14534 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14535 - Offset the text in RadioButton and Checkbox when being rendered as
14537 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14539 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14540 - Fixed disabled text rendering for normally rendered radiobuttons
14542 2004-11-04 10:26 jackson
14544 * TabControl.cs: Recalculate tab rows when resizing
14546 2004-11-04 07:47 jordi
14548 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14549 collection completion, drawing issues, missing features
14551 2004-11-04 05:03 ravindra
14554 - We need to recalculate the Thumb area when
14555 LargeChange/maximum/minimum values are changed.
14556 - We set the 'pos' in UpdatePos() method to minimum, if it's less
14557 than minimum. This is required to handle the case if large_change is
14558 more than max, and use LargeChange property instead of large_change
14560 - We return max+1 when large_change is more than max, like MS does.
14562 2004-11-04 04:29 ravindra
14564 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14565 - Changed default value signatures (prefixed all with ListView).
14566 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14568 - Fixed calculations for ListViewItem and implemented Clone()
14571 2004-11-04 04:26 ravindra
14573 * Theme.cs, ThemeWin32Classic.cs:
14574 - Changed default ListView values signatures (prefixed all with
14576 - Fixed default size values for VScrollBar and HScrollBar.
14577 - Fixed DrawListViewItem method.
14579 2004-11-04 04:05 ravindra
14581 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14583 2004-11-04 04:04 ravindra
14585 * ImageList.cs: Implemented the missing overload for Draw method.
14587 2004-11-03 19:29 jackson
14589 * TabControl.cs: Handle dropping rows on selection properly
14591 2004-11-03 11:59 jackson
14593 * TabControl.cs: remove debug code
14595 2004-11-03 11:52 jackson
14597 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14598 the scrolly widgerywoo
14600 2004-11-02 13:52 jackson
14602 * TabControl.cs: Resize the tab pages and tabs when the tab control
14605 2004-11-02 13:40 jackson
14607 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14608 selected tab to the bottom
14610 2004-11-02 13:39 jackson
14612 * TabPage.cs: Store the tab pages row
14614 2004-11-02 12:33 jordi
14616 * MenuItem.cs: fixes handle creation
14618 2004-11-02 11:42 jackson
14620 * TabControl.cs: signature fix
14622 2004-11-02 08:56 jackson
14624 * TabControl.cs: Calculate whether the tab is on an edge properly.
14625 Remove top secret debugging code
14627 2004-11-01 19:57 jackson
14629 * TabControl.cs: Add click handling, and proper sizing
14631 2004-11-01 19:47 jackson
14633 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14636 2004-11-01 19:39 jackson
14638 * TabPage.cs: add internal property to store the bounds of a tab
14641 2004-10-30 04:23 ravindra
14643 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14646 2004-10-30 04:21 ravindra
14648 * ListView.cs, ListViewItem.cs: Added support for scrolling and
14649 fixed calculations.
14651 2004-10-30 03:06 pbartok
14654 - Removed extension of DllImported libs
14656 2004-10-29 09:55 jordi
14658 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14659 navigation, itemcollection completion, menu fixes
14661 2004-10-27 22:58 pbartok
14664 - Now throws a nice error message when no X display could be opened
14666 2004-10-26 13:51 jordi
14668 * ListView.cs: removes warning
14670 2004-10-26 03:55 ravindra
14672 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14673 ThemeWin32Classic.cs: Some formatting for my last checkins.
14675 2004-10-26 03:36 ravindra
14677 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14678 control and default values.
14680 2004-10-26 03:35 ravindra
14682 * Theme.cs: Added some default values for ListView control.
14684 2004-10-26 03:33 ravindra
14686 * ToolBar.cs: ToolBar should use the user specified button size, if
14687 there is any. Added a size_specified flag for the same.
14689 2004-10-26 03:33 ravindra
14691 * ColumnHeader.cs: Added some internal members and calculations for
14694 2004-10-26 03:32 ravindra
14696 * ListViewItem.cs: Calculations for ListViewItem.
14698 2004-10-26 03:31 ravindra
14700 * ListView.cs: Added some internal members and calculations for
14703 2004-10-22 13:31 jordi
14705 * MenuAPI.cs: speedup menus drawing
14707 2004-10-22 13:16 jackson
14709 * XplatUIX11.cs: Make sure to update exposed regions when adding an
14712 2004-10-22 11:49 jackson
14716 2004-10-22 11:41 jackson
14718 * Control.cs: Check to see if the window should have its background
14719 repainted by X when drawing.
14721 2004-10-22 11:31 jackson
14723 * XplatUIX11.cs: When invalidating areas only use XClearArea if
14724 clear is true, this way we do not get flicker from X repainting the
14727 2004-10-22 11:28 jackson
14729 * XEventQueue.cs: Queue properly
14731 2004-10-21 09:38 jackson
14733 * XEventQueue.cs: Fix access modifier
14735 2004-10-21 09:36 jackson
14737 * XEventQueue.cs: Don't loose messages
14739 2004-10-21 09:22 jackson
14741 * XEventQueue.cs: Don't loose messages
14743 2004-10-20 04:15 jordi
14745 * BootMode.cs: enum need it by SystemInfo
14747 2004-10-19 21:58 pbartok
14750 - Small sanity check
14752 2004-10-19 21:56 pbartok
14755 - Added private FormParentWindow class which acts as the container
14756 for our form and as the non-client area where menus are drawn
14757 - Added/Moved required tie-ins to Jordi's menus
14758 - Fixed/Implemented the FormStartPosition functionality
14760 2004-10-19 21:52 pbartok
14763 - Removed unneeded locals
14764 - Added code to all size and location properties to understand and
14765 deal with the parent container of Form
14767 2004-10-19 21:33 pbartok
14770 - Fixed to deal with new Form subclasses for menus
14772 2004-10-19 17:48 jackson
14774 * XEventQueue.cs: commit correct version of file
14776 2004-10-19 16:50 jackson
14778 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
14780 2004-10-19 16:15 jordi
14782 * MenuAPI.cs: MenuBarCalcSize returns the height
14784 2004-10-19 08:31 pbartok
14787 - Added missing call to PreProcessMessage before calling OnXXXKey
14790 2004-10-19 00:04 ravindra
14792 * ToolTip.cs: Fixed constructor.
14794 2004-10-18 09:31 jordi
14796 * MenuAPI.cs: menuitems in menubars do not have shortcuts
14798 2004-10-18 09:26 jordi
14800 * MenuItem.cs: fixes MenuItem class signature
14802 2004-10-18 08:56 jordi
14804 * MenuAPI.cs: prevents windows from showing in the taskbar
14806 2004-10-18 00:28 ravindra
14808 * ToolTip.cs: Suppressed a warning message.
14810 2004-10-18 00:27 ravindra
14812 * Control.cs: Default value of visible property must be true.
14814 2004-10-17 23:19 pbartok
14817 - Complete implementation
14819 2004-10-17 23:19 pbartok
14822 - Added EnableWindow method
14823 - Added SetModal stub
14824 - Added generation of WM_ACTIVATE message (still needs testing)
14825 - Added SetTopMost stub
14826 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
14828 2004-10-17 23:17 pbartok
14831 - Removed VirtualKeys to XplatUIStructs
14832 - Implemented SetTopMost method
14833 - Implemented EnableWindow method
14834 - Bugfix in ScreenToClient()
14835 - Bugfixes in ClientToScreen()
14837 2004-10-17 22:51 pbartok
14839 * XplatUIStructs.cs:
14840 - Added WS_EX styles to WindowStyles enumeration
14842 2004-10-17 22:50 pbartok
14844 * XplatUI.cs, XplatUIDriver.cs:
14845 - Added method for enabling/disabling windows
14846 - Added method for setting window modality
14847 - Added method for setting topmost window
14849 2004-10-17 22:49 pbartok
14851 * ThemeWin32Classic.cs:
14852 - Added ToolTip drawing code
14854 2004-10-17 22:49 pbartok
14857 - Added ToolTip abstracts
14859 2004-10-17 22:47 pbartok
14862 - Fixed Form.ControlCollection to handle owner relations
14863 - Added Owner/OwnedForms handling
14864 - Implemented Z-Ordering for owned forms
14865 - Removed unneeded private overload of ShowDialog
14866 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
14868 - Fixed Close(), had wrong default
14869 - Added firing of OnLoad event
14870 - Added some commented out debug code for Ownership handling
14872 2004-10-17 22:16 pbartok
14875 - Fixed/implemented flat list of controls
14877 2004-10-17 22:14 pbartok
14880 - Added code to simulate modal dialogs on Win32
14882 2004-10-17 16:11 jordi
14884 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
14887 2004-10-17 13:39 jordi
14889 * MenuAPI.cs: menu drawing fixes
14891 2004-10-15 09:10 ravindra
14893 * StructFormat.cs: General Enum.
14895 2004-10-15 09:09 ravindra
14897 * SizeGripStyle.cs: Enum for Form.
14899 2004-10-15 09:08 ravindra
14901 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
14902 in Theme for ListView.
14904 2004-10-15 09:06 ravindra
14906 * ColumnHeader.cs: Flushing some formatting changes.
14908 2004-10-15 09:05 ravindra
14910 * ListViewItem.cs: Implemented GetBounds method and fixed coding
14913 2004-10-15 09:03 ravindra
14915 * ListView.cs: Implemented Paint method and fixed coding style.
14917 2004-10-15 07:34 jordi
14919 * MenuAPI.cs: fix for X11
14921 2004-10-15 07:32 ravindra
14923 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
14924 - Renamed Paint() method to Draw() for clarity. Also, moved
14925 DrawImage() to OnPaint().
14927 2004-10-15 07:25 ravindra
14929 * CheckBox.cs, RadioButton.cs:
14930 - Removed Redraw (), we get it from ButtonBase.
14931 - Implemented Paint (), to do class specific painting.
14933 2004-10-15 07:16 ravindra
14936 - Redraw () is not virtual now.
14937 - Added an internal virtual method Paint (), so that
14938 derived classes can do their painting on their own.
14939 - Modified OnPaint () to call Paint ().
14941 2004-10-15 06:43 jordi
14943 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
14944 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
14946 2004-10-15 00:30 ravindra
14949 - MessageBox on windows does not have min/max buttons.
14950 This change in CreateParams fixes this on Windows. We
14951 still need to implement this windowstyle behavior in
14954 2004-10-14 05:14 ravindra
14957 - Changed Redraw () to do a Refresh () always.
14958 - Fixed the MouseMove event handling when mouse is pressed,
14959 ie drag event handling.
14960 - Replaced the usage of ToolBarButton.Pressed property to
14961 ToolBarButton.pressed internal variable.
14963 2004-10-14 05:10 ravindra
14965 * ToolBarButton.cs:
14966 - Added an internal member 'inside' to handle mouse move
14967 with mouse pressed ie mouse drag event.
14968 - Changed 'Pressed' property to return true only when
14969 'inside' and 'pressed' are both true.
14970 - Some coding style love.
14972 2004-10-14 00:17 ravindra
14974 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
14977 2004-10-14 00:15 ravindra
14979 * ButtonBase.cs: Redraw () related improvements.
14981 2004-10-14 00:14 ravindra
14983 * MessageBox.cs: Moved InitFormSize () out of Paint method and
14984 removed unnecessary calls to Button.Show () method.
14986 2004-10-13 17:50 pbartok
14990 - Removed destroying of window until we solve the problem of X
14991 destroying the window before us on shutdown
14993 2004-10-13 16:32 pbartok
14996 - Now Redraws on MouseUp for FlatStyle Flat and Popup
14998 2004-10-13 14:18 pbartok
15001 - Added code to destroy the X window
15003 2004-10-13 14:18 pbartok
15006 - Added code to destroy a window
15008 2004-10-13 14:12 pbartok
15011 - Added the Redraw on Resize that got dropped in the last rev
15013 2004-10-13 09:06 pbartok
15015 * ThemeWin32Classic.cs:
15016 - Path from John BouAntoun:
15017 * Fix check rendering (centre correctly for normal style, offset
15018 correctly for FlatStyle).
15019 * Fix border color usage (use backcolor) for FlatStyle.Popup
15020 * Use checkbox.Capture instead of checkbox.is_pressed when
15021 rendering flatstyle states.
15023 2004-10-12 21:48 pbartok
15025 * ThemeWin32Classic.cs:
15026 - Removed all occurences of SystemColors and replaced them with the
15027 matching theme color
15029 2004-10-12 21:41 pbartok
15031 * ThemeWin32Classic.cs:
15032 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15033 him using the function for flatstyle drawing
15034 - Changed functions to use the new version of CPDrawBorder3D
15036 2004-10-12 21:15 pbartok
15039 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15040 match MS documentation. They need to return defined colors if the
15041 passed color matches the configured control color. Thanks to John
15042 BouAntoun for pointing this out.
15044 2004-10-12 20:57 pbartok
15047 - Fix from John BouAntoun: Raise ForeColorChanged event when text
15050 2004-10-12 20:46 pbartok
15053 - Fix from John BouAntoun: Now properly sets the Appearance property
15055 2004-10-12 20:45 pbartok
15057 * ThemeWin32Classic.cs:
15058 - Fixes from John BouAntoun: now handles forecolors and backcolors
15059 for flatstyle rendered controls much better; It also fixes normal
15060 checkbox rendering when pushed or disabled.
15062 2004-10-08 02:50 jordi
15064 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15067 2004-10-07 08:56 jordi
15069 * ThemeWin32Classic.cs: Removes deletion of cached brushes
15071 2004-10-06 03:59 jordi
15073 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
15074 XplatUIWin32.cs: removes warnings from compilation
15076 2004-10-05 12:23 jackson
15078 * RadioButton.cs: Fix ctor
15080 2004-10-05 11:10 pbartok
15083 - Partial implementation by Benjamin Dasnois
15085 2004-10-05 10:15 jackson
15087 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
15090 2004-10-05 03:07 ravindra
15093 - Removed a private method, Draw ().
15094 - Fixed the ButtonDropDown event handling.
15095 - Fixed MouseMove event handling.
15097 2004-10-05 03:04 ravindra
15099 * ThemeWin32Classic.cs:
15100 - Added DrawListView method and ListViewDefaultSize property.
15101 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
15102 - Changed DOS style CRLF to Unix format (dos2unix).
15104 2004-10-05 03:03 ravindra
15107 - Added DrawListView method and ListViewDefaultSize property.
15109 2004-10-05 02:42 ravindra
15111 * ToolBarButton.cs: Added an internal member dd_pressed to handle
15112 clicks on DropDown arrow.
15114 2004-10-04 22:56 jackson
15116 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
15117 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
15118 Control handle the buffers, derived classes should not have to
15119 CreateBuffers themselves.
15121 2004-10-04 21:20 jackson
15123 * StatusBar.cs: The control handles resizing the buffers now.
15125 2004-10-04 21:18 jackson
15127 * Control.cs: When resizing the buffers should be invalidated. This
15128 should be handled in Control not in derived classes.
15130 2004-10-04 14:45 jackson
15134 2004-10-04 02:14 pbartok
15136 * LeftRightAlignment.cs:
15139 2004-10-04 01:09 jordi
15141 * ThemeWin32Classic.cs: fixes right button position causing right
15142 button not showing on horizontal scrollbars
15144 2004-10-02 13:12 pbartok
15147 - Simplified the Invalidate method by using an X call instead of
15148 generating the expose ourselves
15149 - Added an expose when the window background is changed
15150 - Implemented ClientToScreen method
15152 2004-10-02 13:08 pbartok
15155 - Added Win32EnableWindow method (test for implementing modal
15157 - Added ClientToScreen method and imports
15159 2004-10-02 13:07 pbartok
15161 * XplatUI.cs, XplatUIDriver.cs:
15162 - Added ClientToScreen coordinate translation method
15164 2004-10-02 13:06 pbartok
15166 * KeyPressEventArgs.cs:
15167 - Fixed access level for constructor
15169 2004-10-02 13:06 pbartok
15172 - Changed access level for the window_collection hash table
15174 2004-10-02 13:05 pbartok
15177 - Added KeyPreview property
15178 - Added Menu property (still incomplete, pending Jordi's menu work)
15179 - Implemented ProcessCmdKey
15180 - Implemented ProcessDialogKey
15181 - Implemented ProcessKeyPreview
15183 2004-10-02 13:02 pbartok
15186 - Added private method to get the Control object from the window
15188 - Implemented ContextMenu property
15189 - Implemented PointToScreen
15190 - Implemented PreProcessMessage
15191 - Implemented IsInputChar
15192 - Implemented IsInputKey
15193 - Implemented ProcessCmdKey
15194 - Completed ProcessKeyEventArgs
15195 - Fixed message loop to call the proper chain of functions on key
15197 - Implemented ProcessDialogChar
15198 - Implemented ProcessDialogKey
15199 - Implemented ProcessKeyMessage
15200 - Implemented ProcessKeyPreview
15201 - Added RaiseDragEvent stub (MS internal method)
15202 - Added RaiseKeyEvent stub (MS internal method)
15203 - Added RaiseMouseEvent stub (MS Internal method)
15204 - Added RaisePaintEvent stub (MS Internal method)
15205 - Added ResetMouseEventArgs stub (MS Internal method)
15206 - Implemented RtlTranslateAlignment
15207 - Implemented RtlTranslateContent
15208 - Implemented RtlTranslateHorizontal
15209 - Implemented RtlTranslateLeftRight
15210 - Added generation of KeyPress event
15212 2004-10-02 05:57 ravindra
15214 * ListViewItem.cs: Added attributes.
15216 2004-10-02 05:32 ravindra
15218 * ListView.cs: Added attributes.
15220 2004-10-01 11:53 jackson
15222 * Form.cs: Implement the Close method so work on MessageBox can
15225 2004-09-30 14:06 pbartok
15230 2004-09-30 11:34 jackson
15232 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
15234 2004-09-30 07:26 ravindra
15236 * ListViewItemConverter.cs: Converter for ListViewItem.
15238 2004-09-30 07:26 ravindra
15240 * SortOrder.cs: Enum for ListView control.
15242 2004-09-30 07:25 ravindra
15244 * ColumnHeader.cs: Supporting class for ListView control.
15246 2004-09-30 07:24 ravindra
15248 * ListView.cs, ListViewItem.cs: Initial implementation.
15250 2004-09-30 07:20 ravindra
15252 * ItemActivation.cs: Enum for ListView Control.
15254 2004-09-29 20:29 pbartok
15257 - Added lookup of pixel value for background color; tries to get a
15258 color 'close' to the requested color, it avoids having to create a
15259 colormap. Depending on the display this could mean the used color
15260 is slightly off the desired color. Might have to change it to a more
15261 resource intensive colormap approach, but it will work as a
15262 workaround to avoid red screens.
15264 2004-09-29 14:27 jackson
15266 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
15268 2004-09-28 12:44 pbartok
15270 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
15271 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
15272 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
15273 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
15274 TrackBar.cs, VScrollBar.cs:
15275 - Streamlined Theme interfaces:
15276 * Each DrawXXX method for a control now is passed the object for
15277 the control to be drawn in order to allow accessing any state the
15278 theme might require
15280 * ControlPaint methods for the theme now have a CP prefix to avoid
15281 name clashes with the Draw methods for controls
15283 * Every control now retrieves it's DefaultSize from the current
15286 2004-09-28 12:17 jackson
15288 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15291 2004-09-24 14:57 jackson
15293 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15294 Gives us a nice little performance boost.
15296 2004-09-24 12:02 jackson
15298 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15299 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15300 Control and supporting classes. Initial checkin
15302 2004-09-23 13:08 jackson
15304 * Form.cs: Temp build fixage
15306 2004-09-23 01:39 ravindra
15308 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15309 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15310 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15311 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15312 EventHandlers needed by ListView Control.
15314 2004-09-22 14:12 pbartok
15316 * ScrollableControl.cs:
15317 - Implemented DockPadding property
15318 - Implemented AutoScroll property
15319 - Implemented AutoScrollMargin property
15320 - Implemented AutoScrollMinSize property
15321 - Implemented AutoScrollPosition property
15322 - Implemented DisplayRectangle property (still incomplete)
15323 - Implemented CreateParams property
15324 - Implemented HScroll property
15325 - Implemented VScroll property
15326 - Implemented OnVisibleChanged property
15328 2004-09-22 14:09 pbartok
15331 - Added Form.ControllCollection class
15332 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15333 RemoveOwnedForm (still incomplete, missing on-top and common
15334 minimize/maximize behaviour)
15335 - Added StartPosition property (still incomplete, does not use when
15337 - Added ShowDialog() methods (still incomplete, missing forcing the
15340 2004-09-22 14:05 pbartok
15343 - Added message loop for modal dialogs
15345 2004-09-22 14:02 pbartok
15348 - Fixed wrong types for events
15350 2004-09-22 14:00 pbartok
15352 * Shortcut.cs, FormWindowState.cs:
15353 - Fixed wrong values
15355 2004-09-22 12:01 jackson
15357 * Control.cs: Text is never null
15359 2004-09-20 22:14 pbartok
15362 - Fixed accessibility level for Idle handler
15364 2004-09-20 18:54 jackson
15366 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15367 XplatUIX11.cs: New message loop that uses poll so we don't get a
15370 2004-09-17 10:43 pbartok
15373 - Fixed behaviour of arrow buttons. Now properly behaves like
15374 Buttons (and like Microsoft's scrollbar arrow buttons)
15376 2004-09-17 10:14 pbartok
15379 - Added missing release of keyboard/mouse capture
15381 2004-09-17 06:18 jordi
15383 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15384 Theme.cs: Very early menu support
15386 2004-09-16 17:45 pbartok
15389 - Fixed sending a window to the front
15390 - Added overload for SetWindowPos to avoid casting
15392 2004-09-16 17:44 pbartok
15395 - Added SendToBack and BringToFront methods
15397 2004-09-16 07:00 ravindra
15399 * Copyright: Added Novell URL.
15401 2004-09-16 07:00 ravindra
15403 * ToolBar.cs: Invalidate should be done before redrawing.
15405 2004-09-15 21:19 ravindra
15407 * ColumnHeaderStyle.cs: Enum for ListView Control.
15409 2004-09-15 21:18 ravindra
15411 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15414 2004-09-13 18:26 jackson
15416 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15419 2004-09-13 18:13 jackson
15421 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15422 a second thread and post messages into the main threads message
15423 queue. This makes timing much more consistent. Both win2K and XP
15424 have a minimum timer value of 15 milliseconds, so we now do this
15427 2004-09-13 15:18 pbartok
15429 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15431 - Added Z-Ordering methods
15433 2004-09-13 10:56 pbartok
15436 - Fixed #region names
15437 - Moved properties and methods into their proper #regions
15439 2004-09-13 10:51 pbartok
15442 - Added Accept and CancelButton properties
15443 - Added ProcessDialogKey() method
15445 2004-09-13 08:18 pbartok
15447 * IWindowTarget.cs:
15450 2004-09-10 21:50 pbartok
15453 - Added DoDragDrop() [incomplete]
15454 - Properly implemented 'Visible' handling
15455 - Added SetVisibleCore()
15456 - Implemented FindChildAtPoint()
15457 - Implemented GetContainerControl()
15458 - Implemented Hide()
15460 2004-09-10 19:28 pbartok
15463 - Moved methods into their appropriate #regions
15464 - Reordered methods within regions alphabetically
15466 2004-09-10 18:57 pbartok
15468 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15469 - Added method to retrieve text from window
15471 2004-09-10 18:56 pbartok
15474 - Moved some internal functions into the internal region
15475 - Implemented FontHeight
15476 - Implemented RenderRightToLeft
15477 - Implemented ResizeRedraw
15478 - Implemented ShowFocusCues
15479 - Implemented ShowKeyboardCues
15480 - Implemented FromChildHandle
15481 - Implemented FromHandle
15482 - Implemented IsMnemonic
15483 - Implemented ReflectMessage
15484 - All public and protected Static Methods are now complete
15486 2004-09-10 16:54 pbartok
15489 - Implemented remaining missing public instance properties
15490 - Alphabetized some out of order properties
15492 2004-09-10 05:51 ravindra
15494 * PictureBox.cs: Added a check for null image.
15496 2004-09-10 00:59 jordi
15498 * GroupBox.cs: remove cvs tag
15500 2004-09-09 05:25 ravindra
15502 * ToolBar.cs: Make redraw accessible from ToolBarButton.
15504 2004-09-09 05:23 ravindra
15506 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15509 2004-09-09 02:28 pbartok
15511 * ThemeWin32Classic.cs:
15512 - Improve disabled string look
15514 2004-09-09 01:15 jordi
15516 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15519 2004-09-08 23:56 ravindra
15521 * ItemBoundsPortion.cs: It's enum, not a class!
15523 2004-09-08 23:47 ravindra
15525 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15528 2004-09-08 21:13 ravindra
15530 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15533 2004-09-08 21:03 ravindra
15535 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15538 2004-09-08 21:01 ravindra
15540 * ScrollableControl.cs: Removed unreachable code.
15542 2004-09-08 06:45 jordi
15544 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15546 2004-09-08 01:00 jackson
15548 * XplatUIX11.cs: Only run the timers when updating the message
15549 queue. This effectively gives X messages a higher priority then
15550 timer messages. Timers still need love though
15552 2004-09-07 14:01 jackson
15554 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15555 this for us and the handle is no longer valid.
15557 2004-09-07 13:59 jackson
15559 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15560 loop that manages to not crash. TODO: Add poll and cleanup timers
15562 2004-09-07 11:12 jordi
15564 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15566 2004-09-07 03:40 jordi
15568 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15569 fixes, methods, multiple links
15571 2004-09-06 06:55 jordi
15573 * Control.cs: Caches ClientRectangle rectangle value
15575 2004-09-05 02:03 jordi
15577 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15580 2004-09-04 11:10 jordi
15582 * Label.cs: Refresh when font changed
15584 2004-09-02 16:24 pbartok
15587 - Added sanity check to creation of double buffer bitmap
15589 2004-09-02 16:24 pbartok
15592 - Fixed selection of text color
15593 - Fixed handling of resize event; now properly recreates double
15595 - Added missing assignment of TextAlignment
15596 - Added proper default for TextAlignment
15598 2004-09-02 14:26 pbartok
15601 - Added missing RadioButton.RadioButtonAccessibleObject class
15603 2004-09-02 14:26 pbartok
15606 - Added missing Control.ControlAccessibleObject class
15607 - Started to implement Select()ion mechanisms, still very incomplete
15609 2004-09-02 14:25 pbartok
15611 * AccessibleObject.cs:
15612 - Added missing methods
15614 2004-09-02 14:23 pbartok
15616 * AccessibleNavigation.cs, AccessibleSelection.cs:
15619 2004-09-02 10:32 jordi
15621 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15622 pool for pens, brushes, and hatchbruses
15624 2004-09-01 15:30 jackson
15626 * StatusBar.cs: Fix typo
15628 2004-09-01 14:44 pbartok
15633 2004-09-01 14:39 pbartok
15635 * Button.cs, RadioButton.cs:
15636 - Functional initial check-in
15638 2004-09-01 14:01 pbartok
15641 - Added missing default
15642 - Added missing region mark
15644 2004-09-01 09:10 jordi
15646 * Label.cs: fixes method signatures, new methods, events, fixes
15649 2004-09-01 07:19 jordi
15651 * Control.cs: Init string variables with an empty object
15653 2004-09-01 04:20 jordi
15655 * Control.cs: fires OnFontChanged event
15657 2004-08-31 20:07 pbartok
15660 - Enabled display of strings
15662 2004-08-31 20:05 pbartok
15665 - Added (partial) implementation of DialogResult; rest needs to be
15666 implemented when the modal loop code is done
15668 2004-08-31 19:55 pbartok
15671 - Fixed to match the removal of the needs_redraw concept
15673 2004-08-31 19:55 pbartok
15676 - Removed the rather odd split between 'needs redraw' and redrawing
15677 - Now handles the events that require regeneration (ambient
15678 properties and size)
15680 2004-08-31 19:41 pbartok
15683 - Added firing of BackColorChanged event
15684 - Added TopLevelControl property
15685 - Fixed handling of WM_ERASEBKGRND message
15687 2004-08-31 12:49 pbartok
15693 2004-08-31 12:48 pbartok
15696 - Finished (famous last words)
15698 2004-08-31 04:35 jordi
15700 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15701 scrolling bugs, adds new methods
15703 2004-08-30 14:42 pbartok
15706 - Implemented CheckBox drawing code
15708 2004-08-30 14:42 pbartok
15711 - Made Redraw() and CheckRedraw() virtual
15712 - Improved mouse up/down/move logic to properly track buttons
15714 2004-08-30 09:44 pbartok
15717 - Updated to fix broken build. Not complete yet.
15719 2004-08-30 09:28 pbartok
15724 2004-08-30 09:17 pbartok
15729 2004-08-27 16:12 ravindra
15731 * ToolBarButton.cs: Added TypeConverter attribute.
15733 2004-08-27 16:07 ravindra
15735 * ImageIndexConverter.cs: Implemented.
15737 2004-08-27 14:17 pbartok
15740 - Removed unneeded stack vars
15741 - First attempt to fix sizing issues when layout is suspended
15743 2004-08-25 15:35 jordi
15745 * ScrollBar.cs: more fixes to scrollbar
15747 2004-08-25 14:04 ravindra
15749 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15750 Added the missing divider code and grip for ToolBar Control.
15752 2004-08-25 13:20 pbartok
15755 - Control now properly passes the ambient background color to child
15758 2004-08-25 13:20 jordi
15760 * ScrollBar.cs: small bug fix regarding bar position
15762 2004-08-25 12:33 pbartok
15765 - Now only calls SetTimer or KillTimer if the enabled state has
15768 2004-08-25 12:33 pbartok
15771 - Fixed timer handling, now seems to work
15772 - Improved error message for window creation
15774 2004-08-25 12:32 pbartok
15777 - Fixed generation of MouseUp message
15779 2004-08-25 12:29 jordi
15781 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
15782 and fixes for progressbar
15784 2004-08-24 18:43 ravindra
15786 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
15787 in ToolBar control.
15789 2004-08-24 17:15 pbartok
15793 - Added missing events
15796 2004-08-24 17:14 pbartok
15798 * StatusBar.cs, PictureBox.cs:
15799 - Now uses Control's CreateParams
15801 2004-08-24 16:36 pbartok
15804 - Fixed background color handling
15805 - Fixed sending of enter/leave events on a grab
15807 2004-08-24 16:35 pbartok
15810 - Refined definitions for CrossingEvent
15812 2004-08-24 12:37 jordi
15814 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
15815 formmating, methods signature, and adds missing events
15817 2004-08-24 12:24 jordi
15819 * Control.cs: fire OnEnabledChanged event
15821 2004-08-24 11:17 pbartok
15824 - Implemented SetTimer() and KillTimer()
15826 2004-08-24 11:16 pbartok
15829 - Now uses Remove instead of Add to kill the timer
15831 2004-08-24 10:16 jackson
15833 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
15834 picture boxes in the theme now. Draw picture box borders and obey
15837 2004-08-24 05:49 jackson
15839 * Timer.cs: Remove top secret debugging code
15841 2004-08-24 05:34 jackson
15843 * PictureBox.cs: Temp hack to make picture boxes draw their full
15846 2004-08-24 05:29 jackson
15848 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15849 XplatUIX11.cs: Move timers to the driver level. On X they are
15850 queued by the driver and checked on idle.
15852 2004-08-24 01:07 jackson
15854 * XplatUIX11.cs: Use a queue for async messages instead of passing
15855 them as ClientMessages since that was totally broken. Also simply
15856 check for events and return an idle message if none are found. This
15857 gives us an idle handler, and prevents deadlocking when no messages
15860 2004-08-23 18:19 ravindra
15862 * XplatUIWin32.cs: Removed the unwanted destructor.
15864 2004-08-23 17:27 pbartok
15867 - Finishing touches. Works now, just needs some optimizations.
15869 2004-08-23 16:53 jordi
15871 * ScrollBar.cs: small fix
15873 2004-08-23 16:45 pbartok
15876 - Removed debug output
15879 2004-08-23 16:43 jordi
15881 * ScrollBar.cs: [no log message]
15883 2004-08-23 16:10 pbartok
15886 - Fixed handling of WM_CLOSE message
15887 - Removed debug output
15889 2004-08-23 16:09 pbartok
15892 - Added handling of Idle event
15893 - Added handling of form closing
15894 - Fixed reporting of MessageLoop property
15895 - Removed some unneeded code, should provide a bit of a speedup
15897 2004-08-23 15:22 pbartok
15900 - Added InitLayout() method
15901 - Added code to properly perform layout when Anchor or Dock property
15903 - Changed 'interpretation' of ResumeLayout. MS seems to have a
15904 LAMESPEC, tried to do it in a way that makes sense
15906 2004-08-23 14:10 jordi
15908 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
15909 properties and methods
15911 2004-08-23 13:55 pbartok
15914 - Properly fixed Jordi's last fix
15915 - Now uses Cursor's Position property instead of calling XplatUI
15918 2004-08-23 13:44 jordi
15920 * PaintEventHandler.cs: Adding missing attribute
15922 2004-08-23 13:39 pbartok
15925 - Implemented Position property
15927 2004-08-23 13:39 pbartok
15929 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15930 - Added method to move mouse cursor
15932 2004-08-23 13:39 pbartok
15935 - Fixed setting of background color
15936 - Added method to move mouse cursor
15938 2004-08-23 13:16 jordi
15940 * Control.cs: avoids null exception
15942 2004-08-22 17:46 jackson
15944 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
15947 2004-08-22 17:40 jackson
15949 * XplatUIX11.cs: Add some missing locks
15951 2004-08-22 15:10 pbartok
15953 * Control.cs, Form.cs:
15954 - Removed OverlappedWindow style from Control, instead it's default
15956 - Made form windows OverlappedWindow by default
15958 2004-08-22 13:34 jackson
15960 * ScrollBar.cs: Update the position through the Value property so
15961 the OnValueChanged event is raised.
15963 2004-08-22 12:04 pbartok
15966 - Added Cursor.cs and UserControl.cs
15968 2004-08-22 12:03 pbartok
15971 - Started implementation, not usable yet
15973 2004-08-22 12:00 pbartok
15976 - Implemented UserControl (complete)
15978 2004-08-21 19:20 ravindra
15980 * ToolBar.cs: Correcting the formatting mess of VS.NET.
15982 2004-08-21 18:49 ravindra
15984 * ToolBar.cs: Probably this completes the missing attributes in
15987 2004-08-21 18:03 ravindra
15989 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
15990 Fixed toolbar control signatures.
15992 2004-08-21 16:32 pbartok
15997 2004-08-21 16:30 pbartok
16002 2004-08-21 16:19 pbartok
16004 * Control.cs, Label.cs:
16007 2004-08-21 15:57 pbartok
16010 - Added loads of debug output for development
16011 - Fixed typo in method name
16013 2004-08-21 15:52 pbartok
16015 * ToolBarButtonClickEventArgs.cs:
16016 - Added missing base class
16018 2004-08-21 14:53 pbartok
16021 - Updated to match new GrabWindow signature
16023 2004-08-21 14:51 pbartok
16025 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16026 - Added method to get default display size
16028 2004-08-21 14:23 pbartok
16030 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16031 - Added method to query current grab state
16032 - Added argument to allow confining a grab to a window
16034 2004-08-21 14:22 pbartok
16037 - Added [Flags] attribute so that modifiers can be used in bitwise
16040 2004-08-21 14:21 pbartok
16042 * TrackBar.cs, ScrollBar.cs:
16043 - Replaced direct XplatUI calls with their Control counterpart
16045 2004-08-21 13:32 pbartok
16048 - Implemented Created property
16050 2004-08-21 13:28 pbartok
16053 - Implemented ContainsFocus
16055 2004-08-21 13:26 pbartok
16058 - Implemented CausesValidation
16060 2004-08-21 13:21 pbartok
16063 - Implemented CanFocus
16064 - Implemented CanSelect
16065 - Implemented Capture
16067 2004-08-21 12:35 pbartok
16070 - Fixed bug with Async message handling
16071 - Implemented getting the ModifierKeys
16073 2004-08-21 12:32 jackson
16075 * AsyncMethodResult.cs: Make sure we have the mutex before we
16076 release it. Fixes BeginInvoke on windows
16078 2004-08-21 11:31 pbartok
16080 * XplatUIWin32.cs, XplatUIX11.cs:
16081 - Drivers now return proper mouse state
16083 2004-08-21 10:54 jackson
16085 * Control.cs: Implement EndInvoke
16087 2004-08-21 10:48 jackson
16089 * Timer.cs: Remove unneeded finalizer
16091 2004-08-20 19:52 ravindra
16093 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
16094 in mouse event handling in the ToolBar control.
16096 2004-08-20 19:50 ravindra
16098 * ImageList.cs: Changed draw method to use the arguments passed in
16101 2004-08-20 18:58 pbartok
16103 * XplatUIStructs.cs:
16104 - Added private message for async communication
16106 2004-08-20 17:38 ravindra
16108 * Control.cs: Made RightToLeft property virtual and removed a
16111 2004-08-20 14:39 jordi
16113 * ThemeGtk.cs: use style_attach
16115 2004-08-20 14:39 pbartok
16118 - Added jackson's Async code from X11 to Win32
16120 2004-08-20 14:09 pbartok
16123 - Added all new files
16125 2004-08-20 14:09 pbartok
16128 - Added call to set window background color
16130 2004-08-20 14:03 pbartok
16132 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16133 - Added method for setting the window background
16135 2004-08-20 14:02 pbartok
16138 - Added method for setting the background color
16139 - Added handling for erasing the window background
16141 2004-08-20 13:45 jordi
16143 * TrackBar.cs: fixes timer, new properties and methods
16145 2004-08-20 13:34 jackson
16147 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
16150 2004-08-20 13:22 jackson
16152 * Timer.cs: Timer Tick events are now handed through Controls Async
16153 mechanism so the callbacks are executed in the same thread as X
16155 2004-08-20 13:19 jackson
16157 * XplatUIDriver.cs: Expose functionality to send async messages
16160 2004-08-20 13:18 jackson
16162 * Control.cs: Implement Begininvoke
16164 2004-08-20 13:14 jackson
16166 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
16167 messages through the driver
16169 2004-08-20 13:12 jackson
16171 * XplatUIX11.cs: Lock before all X operations. Also added Async
16172 method functionality through XSendEvent
16174 2004-08-20 13:11 jackson
16176 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
16177 This will screw up on 64 bit systems)
16179 2004-08-20 13:10 jackson
16181 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
16182 Async messages through X/Win32
16184 2004-08-19 19:39 pbartok
16187 - Updated code to match new HandleData.DeviceContext type
16189 2004-08-19 19:38 pbartok
16192 - Made DeviceContext a generic object to allow usage from various
16194 - Added support for queueing Windows messages
16196 2004-08-19 19:37 pbartok
16199 - Added generation of MouseEnter, MouseLeave and MouseHover events
16200 - Added cleanup on EndPaint
16202 2004-08-19 19:17 pbartok
16205 - Added handling of WM_MOUSEHOVER
16206 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
16209 2004-08-19 18:55 jordi
16211 * ThemeGtk.cs: fixes button order
16213 2004-08-19 18:12 jordi
16215 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
16217 2004-08-19 17:09 pbartok
16220 - Added Right property
16221 - Added RightToLeft property
16223 2004-08-19 16:27 jordi
16225 * ThemeGtk.cs: experimental GTK theme support
16227 2004-08-19 16:26 jordi
16229 * ITheme.cs, Theme.cs: move themes from an interface to a class
16231 2004-08-19 16:25 jordi
16233 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
16236 2004-08-19 16:04 pbartok
16239 - Added colormap basics
16240 - Added a way to re-initialize with a different display handle
16241 - Fixed setting of the window background color
16242 - Added various X11 imports related to colors and colormaps
16244 2004-08-19 15:51 pbartok
16247 - Removed packing hints (Paolo suggested this a while back)
16248 - fixed colormap type
16249 - Added default Atom types
16250 - Added Screen and color structs and enums
16252 2004-08-19 15:39 pbartok
16255 - Added missing Draw() method
16256 - Added missing RecreateHandle event
16258 2004-08-19 15:30 pbartok
16261 - Added handling of WM_CLOSE
16263 2004-08-18 13:16 jordi
16265 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
16268 2004-08-18 09:56 jordi
16270 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
16272 2004-08-17 15:31 ravindra
16274 * SWF.csproj: Updated project.
16276 2004-08-17 15:25 pbartok
16279 - Drawing improvement; don't call UpdateBounds if we are not visible
16280 (or have been minimized)
16282 2004-08-17 15:24 pbartok
16285 - Finished IsVisible
16286 - Added Win32GetWindowPlacement
16288 2004-08-17 15:08 jackson
16290 * Panel.cs: Initial checkin of the Panel
16292 2004-08-17 14:25 pbartok
16295 - Fixed broken handling of default window sizes
16297 2004-08-17 13:29 jackson
16299 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16300 has a large startup time.
16302 2004-08-17 10:25 jackson
16304 * HandleData.cs: union areas properly
16306 2004-08-17 10:12 jackson
16308 * HandleData.cs: union areas properly
16310 2004-08-16 20:00 ravindra
16312 * ToolBar.cs, ToolBarButton.cs: Added attributes.
16314 2004-08-16 18:48 ravindra
16316 * ToolBar.cs: Added attributes.
16318 2004-08-16 17:17 ravindra
16320 * SWF.csproj: Updated project.
16322 2004-08-16 17:16 jackson
16324 * XplatUIX11.cs: Check for more expose events before sending a
16325 WM_PAINT so they can all be grouped together. This makes dragging a
16326 window across another window redraw in a sane way.
16328 2004-08-16 15:47 pbartok
16331 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16332 support OnMouseEnter/Leave()
16333 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16336 2004-08-16 15:46 pbartok
16338 * XplatUIStructs.cs, XplatUIX11.cs:
16339 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16340 OnMouseEnter/Leave()
16342 2004-08-16 15:34 jackson
16344 * XplatUIX11.cs: Group multiple expose events in HandleData, make
16345 sure messages get the message field set to WM_NULL if they are not
16348 2004-08-16 15:24 jackson
16350 * HandleData.cs: HandleData is used for storing message information
16353 2004-08-15 17:23 ravindra
16355 * ColorDepth.cs: Added attribute.
16357 2004-08-15 17:23 ravindra
16359 * SWF.csproj: Updated project for ToolBar Control.
16361 2004-08-15 17:20 ravindra
16363 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16364 control and also dos2unix format.
16366 2004-08-15 17:13 ravindra
16368 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16369 ToolBarButtonClickEventArgs.cs,
16370 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16371 ToolBarTextAlign.cs: First Implementation of ToolBar control.
16373 2004-08-15 15:31 pbartok
16376 - First (mostly) working version
16378 2004-08-13 16:15 pbartok
16381 - Fixed Anchor default
16383 2004-08-13 15:43 pbartok
16386 - Changed GetCursorPos signature
16388 2004-08-13 15:42 pbartok
16390 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16391 - Changed signature for GetCursorPos
16393 2004-08-13 15:25 pbartok
16397 - Fixed resizing/exposure handling
16399 2004-08-13 15:22 jordi
16401 * ThemeWin32Classic.cs: removes redundant code and fixes issues
16404 2004-08-13 14:55 jordi
16406 * TrackBar.cs: change from wndproc to events
16408 2004-08-13 13:00 jordi
16410 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16411 XplatUIX11.cs: implements PointToClient (ScreenToClient)
16413 2004-08-13 12:53 pbartok
16416 - Changed GetWindowPos to also provide client area size
16417 - Fixed broken prototypes for several win32 functions
16419 2004-08-13 12:53 pbartok
16421 * XplatUI.cs, XplatUIDriver.cs:
16422 - Changed GetWindowPos to also provide client area size
16424 2004-08-13 12:52 pbartok
16427 - Added generation of WM_POSCHANGED
16428 - Changed GetWindowPos to also provide client area size
16430 2004-08-13 12:52 pbartok
16433 - Added Dispose() and destructor
16434 - Fixed resizing and bounds calculation
16436 - Added memory savings for invisible windows
16438 2004-08-13 12:46 jordi
16440 * TrackBar.cs: adds timer and grap window
16442 2004-08-13 10:25 jackson
16444 * Timer.cs: SWF Timer
16446 2004-08-12 16:59 pbartok
16448 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16449 - Implemented method to get current mouse position
16451 2004-08-12 14:29 jordi
16453 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16454 enhancement, fix mouse problems, highli thumb, etc
16456 2004-08-12 13:31 pbartok
16459 - Fixed Anchoring bugs
16461 2004-08-12 13:01 jackson
16463 * StatusBar.cs: Don't forget things
16465 2004-08-12 12:54 jackson
16467 * ThemeWin32Classic.cs: Handle owner draw status bars
16469 2004-08-12 12:54 jackson
16471 * StatusBar.cs: Implement missing properties, events, and methods.
16472 Handle mouse clicking
16474 2004-08-12 10:19 jackson
16476 * StatusBarPanelClickEventArgs.cs,
16477 StatusBarPanelClickEventHandler.cs: Classes for handling status
16478 bar panel click events
16480 2004-08-12 10:10 jackson
16482 * Control.cs: Add missing properties
16484 2004-08-12 09:46 pbartok
16486 * BindingsManagerBase.cs:
16487 - Name changed to BindingManagerBase.cs
16489 2004-08-12 09:25 jordi
16491 * ScrollableControl.cs: calls ctrlbase instead of exeception
16493 2004-08-11 16:28 pbartok
16495 * InputLanguageChangingEventArgs.cs:
16496 - Never check in before compiling. Fixes the last check-in
16498 2004-08-11 16:26 pbartok
16500 * InputLanguageChangingEventArgs.cs:
16501 - More signature fixes
16503 2004-08-11 16:20 pbartok
16505 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16506 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16507 ImageListStreamer.cs, InputLanguage.cs,
16508 InputLanguageChangedEventArgs.cs,
16509 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16510 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16511 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16512 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16515 2004-08-11 16:16 pbartok
16519 - Added .Net 1.1 method
16521 2004-08-11 15:25 pbartok
16524 - Fixed BindingManagerBase.cs filename
16526 2004-08-11 15:22 pbartok
16528 * BindingManagerBase.cs:
16529 - Was checked in with wrong filename
16531 2004-08-11 14:50 pbartok
16536 2004-08-11 13:41 jordi
16538 * XplatUIWin32.cs: Fixes ClientRect
16540 2004-08-11 13:19 pbartok
16542 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16544 - We had SetWindowPos and MoveWindow to set window positions and
16545 size, removed MoveWindow. We have GetWindowPos, so it made sense to
16546 keep SetWindowPos as matching counterpart
16547 - Added some X11 sanity checking
16549 2004-08-11 12:59 pbartok
16552 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16553 (It seems that SetBounds is just a front for SetBoundsCore and
16554 SetBoundsCore updates the underlying window system and
16555 UpdateBounds is responsible for updating the variables associated
16556 with the Control and sending the events)
16557 - Major cleanup of Size handling; we now have two sizes, client_size
16558 and bounds. Bounds defines the window with decorations, client_size
16561 2004-08-11 12:55 pbartok
16563 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16564 - Added method to calculate difference between decorated window and
16567 2004-08-11 12:54 pbartok
16570 - Forcing redraw on resize
16572 2004-08-11 11:43 pbartok
16575 - Removed disposing of the actual images when the list is disposed
16577 2004-08-11 09:13 pbartok
16580 - Now properly reparents windows
16582 2004-08-11 08:37 pbartok
16587 2004-08-11 07:47 pbartok
16590 - Rewrote the collection stuff. Might not be as fast now, not
16591 keeping the number of children around and accessible directly, but
16592 it's more straightforward
16594 2004-08-11 07:44 pbartok
16596 * AccessibleObject.cs:
16597 - Fixed to match ControlCollection rewrite
16599 2004-08-11 07:43 pbartok
16602 - Added missing creation of the collection list
16604 2004-08-10 20:08 jackson
16606 * StatusBar.cs: Get the paint message from WndProc
16608 2004-08-10 19:31 jackson
16610 * ThemeWin32Classic.cs: Create Brushes as little as possible
16612 2004-08-10 19:20 jackson
16614 * UICues.cs: Add Flags attribute
16616 2004-08-10 19:19 jackson
16618 * StatusBarPanel.cs: Signature cleanup
16620 2004-08-10 19:10 jackson
16622 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16623 Initial implementation of status bar item drawing
16625 2004-08-10 17:27 jordi
16627 * TrackBar.cs: add missing methods, properties, and restructure to
16630 2004-08-10 16:24 jackson
16632 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16633 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16636 2004-08-10 13:21 jordi
16638 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16639 enhancements and standarize on win colors defaults
16641 2004-08-10 12:52 jackson
16643 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16644 ThemeWin32Classic.cs: Implement DrawItem functionality
16646 2004-08-10 12:47 jordi
16648 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16650 2004-08-10 12:32 jordi
16652 * Control.cs: throw ontextchange event
16654 2004-08-10 11:43 pbartok
16657 - Added more to the still unfinished Dock/Anchor layout code
16659 2004-08-10 11:39 pbartok
16661 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16662 - Added GetWindowPos method
16664 2004-08-10 11:36 pbartok
16667 - Implemented several methods
16669 2004-08-10 09:47 jackson
16671 * TrackBar.cs: Allow control to handle buffering
16673 2004-08-10 09:41 jackson
16675 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16677 2004-08-10 09:24 jackson
16679 * Label.cs, LinkLabel.cs: Let Control handle buffering.
16681 2004-08-10 09:09 jackson
16683 * StatusBar.cs: Let Control handle all the buffering.
16685 2004-08-10 09:08 jackson
16687 * Control.cs: Control will now handle the buffering code, so each
16688 control does not have to implement this.
16690 2004-08-10 08:34 jackson
16692 * XplatUIDriver.cs: Use default colors from the theme
16694 2004-08-09 17:12 pbartok
16697 - Fixed several bugs Ravindra pointed out
16699 2004-08-09 16:11 pbartok
16702 - Added incomplete dock layout code
16703 - Added support for mouse wheel
16705 2004-08-09 16:09 pbartok
16708 - Added handling for middle and right mousebutton
16709 - Added handling for mouse wheel
16710 - Added handling for key state and mouse state and position
16711 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16714 2004-08-09 15:40 jackson
16716 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16717 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16720 2004-08-09 15:37 jackson
16722 * StatusBar.cs: Initial implementation of StatusBar
16724 2004-08-09 15:36 jackson
16726 * ITheme.cs: Add support for drawing status bar and getting status
16729 2004-08-09 15:35 pbartok
16734 2004-08-09 15:34 jackson
16736 * ThemeWin32Classic.cs: Add support for drawing status bar and get
16737 status bar item sizes
16739 2004-08-09 15:21 jackson
16741 * ThemeWin32Classic.cs: Use known colors for default control
16744 2004-08-09 15:12 jackson
16746 * ThemeWin32Classic.cs: Make the default font static, it is static
16747 in control so this doesn't change functionality and creating fonts
16750 2004-08-09 14:56 pbartok
16753 - Added GrabMode enum
16755 2004-08-09 14:55 pbartok
16757 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16758 - Removed Run method, was only required for initial development
16760 2004-08-09 14:51 pbartok
16762 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16763 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
16766 2004-08-09 13:48 pbartok
16769 - Fixed default sizing for child windows
16771 2004-08-09 12:56 pbartok
16774 - Added generation of WM_DESTROY message
16775 - Added handling of window manager induced shutdown
16777 2004-08-09 11:31 jackson
16779 * ThemeWin32Classic.cs: New names for control properties
16781 2004-08-09 11:25 jackson
16783 * Control.cs: Use new color names
16785 2004-08-09 11:02 jackson
16787 * XplatUI.cs: Get default window properties from the theme
16789 2004-08-09 11:01 jackson
16791 * ITheme.cs: The theme engine now controls default window
16794 2004-08-09 11:00 jackson
16796 * ThemeWin32Classic.cs: Add default window color properties
16798 2004-08-09 10:17 jackson
16800 * ThemeWin32Classic.cs: Use correct default back color
16802 2004-08-09 10:05 jackson
16804 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
16807 2004-08-09 09:56 jackson
16809 * XplatUI.cs: Remove defaults, these are handled by the theme now.
16811 2004-08-09 09:54 jackson
16813 * Control.cs: Get default properties from the theme.
16815 2004-08-09 09:53 jackson
16817 * ITheme.cs: Themes now handle default control properties
16819 2004-08-09 09:53 jackson
16821 * ThemeWin32Classic.cs: Themes now handle default control
16822 properties so coloring will be consistent
16824 2004-08-08 16:54 jordi
16826 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
16828 2004-08-08 15:08 jordi
16830 * XplatUIX11.cs: fixes keyboard crash
16832 2004-08-08 13:47 jordi
16834 * Label.cs: add cvs header info
16836 2004-08-08 12:09 jackson
16838 * ThemeWin32Classic.cs: Add pen_buttonface
16840 2004-08-08 11:52 jordi
16842 * Label.cs, LinkLabel.cs: [no log message]
16844 2004-08-08 11:34 jordi
16846 * ThemeWin32Classic.cs: Use Windows Standard Colours
16848 2004-08-07 17:32 jordi
16850 * TrackBar.cs: throw exceptions of invalid enums values
16852 2004-08-07 17:31 jordi
16854 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
16857 2004-08-07 16:56 jackson
16859 * HorizontalAlignment.cs: Initial checkin
16861 2004-08-07 13:16 jordi
16863 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
16866 2004-08-07 13:05 jordi
16868 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
16869 GetSysColor defines
16871 2004-08-06 18:01 pbartok
16873 * ThemeWin32Classic.cs:
16874 - Fixed some rounding issues with float/int
16876 2004-08-06 18:00 jackson
16878 * DockStyle.cs, AnchorStyles.cs:
16880 Add flags and serializable attributes.
16882 2004-08-06 17:46 pbartok
16885 - Implemented GetParent
16887 2004-08-06 17:18 pbartok
16890 - Fixed some rounding issues with float/int
16892 2004-08-06 17:17 pbartok
16894 * X11Structs.cs, XplatUIX11.cs:
16895 - Fixed Refresh and Invalidate
16897 2004-08-06 15:30 pbartok
16899 * Control.cs, X11Structs.cs, XplatUIX11.cs:
16900 - Fixed recursive loop when resizing
16901 - Improved/fixed redrawing on expose messages
16903 2004-08-06 09:53 jordi
16905 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
16906 keyboard navigation
16908 2004-08-06 08:02 pbartok
16910 * X11Structs.cs, XplatUIX11.cs:
16911 - Fixed reparenting
16912 - Fixed window border creation
16914 2004-08-05 15:38 pbartok
16917 - Attempted fix for reparenting problems
16919 2004-08-04 15:14 pbartok
16922 - Fixed Invalidation bug (calculated wrong client area)
16923 - Added ClientSize setter
16925 2004-08-04 15:13 pbartok
16928 - Added AutoScale properties
16930 2004-08-04 15:13 pbartok
16933 - Added latest files
16935 2004-08-04 14:11 pbartok
16937 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16939 - Added Invalidate handling
16941 2004-08-03 17:09 jordi
16943 * XplatUIDriver.cs: fixes spelling mistake
16945 2004-07-27 09:53 jordi
16947 * TrackBar.cs: fixes trackbar events, def classname, methods
16950 2004-07-27 09:29 jordi
16952 * ScrollBar.cs: fixes scrollbar events
16954 2004-07-27 04:38 jordi
16956 * Control.cs: changes to be able to run winforms samples
16958 2004-07-26 11:42 jordi
16960 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
16961 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
16963 2004-07-26 05:41 jordi
16965 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
16966 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
16969 2004-07-22 09:22 jordi
16971 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
16972 check link overlapping, implement events, and fixes
16974 2004-07-21 10:28 jordi
16976 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
16978 2004-07-21 10:19 jordi
16980 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
16981 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
16982 LinkLabelLinkClickedEventArgs.cs,
16983 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
16984 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
16987 2004-07-19 13:09 jordi
16989 * Control.cs, Label.cs: label control re-written: added missing
16990 functionlity, events, and properties
16992 2004-07-19 10:49 jordi
16994 * Control.cs: fixes SetBounds logic
16996 2004-07-19 01:29 jordi
16998 * Control.cs: Call RefreshWindow only if the window has created
17000 2004-07-15 14:05 pbartok
17002 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17003 - Implemented ImageList and ImageList.ImageCollection classes
17004 - Added ColorDepth enumeration
17005 - Updated SWF VS.Net project
17007 2004-07-15 11:06 jordi
17009 * XplatUIStructs.cs: added MsgButons enum
17011 2004-07-15 11:03 jordi
17013 * Control.cs: added basic mouse handeling events
17015 2004-07-15 03:38 jordi
17017 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17018 Vertical TrackBar control implementation
17020 2004-07-13 09:33 jordi
17022 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17024 2004-07-13 09:31 jordi
17026 * Control.cs, Form.cs: commit: new properties and fixes form size
17029 2004-07-09 14:13 miguel
17031 * ProgressBar.cs: Spelling
17033 2004-07-09 11:25 pbartok
17036 - Removed usage of Rectangle for drawing. Miguel pointed out it's
17039 2004-07-09 11:17 miguel
17041 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
17043 * ProgressBar.cs: Fixed spelling for `block'
17045 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17048 Avoid using the += on rect.X, that exposed a bug in the compiler.
17050 2004-07-08 23:21 pbartok
17052 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17053 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17054 BaseCollection.cs, Binding.cs, BindingContext.cs,
17055 BindingMemberInfo.cs, BindingsCollection.cs,
17056 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17057 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17058 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17059 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17060 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17061 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17062 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17063 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17064 FrameStyle.cs, GiveFeedbackEventArgs.cs,
17065 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17066 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17067 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17068 InputLanguageChangedEventArgs.cs,
17069 InputLanguageChangedEventHandler.cs,
17070 InputLanguageChangingEventArgs.cs,
17071 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17072 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
17073 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
17074 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
17075 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
17076 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
17077 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
17078 QueryAccessibilityHelpEventArgs.cs,
17079 QueryAccessibilityHelpEventHandler.cs,
17080 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
17081 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
17082 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
17083 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
17084 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
17085 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
17086 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
17087 XplatUIX11.cs, lang.cs: