1 2006-10-03 Chris Toshok <toshok@ximian.com>
3 * Form.cs (ProcessDialogKey): if the focused control is in this
4 form and is a button, call its PerformClick method here. Fixes
7 2006-10-04 Jackson Harper <jackson@ximian.com>
9 * TabPage.cs: Ignore setting of Visible, and add an internal
10 method for setting the controls visibility. TabPage's Visible
11 property is a little strange on MS, this seems to make us
12 compatible, and fixes cases where people set all the tab pages to
14 * TabControl.cs: Use the new internal setting on tab pages
17 2006-10-03 Mike Kestner <mkestner@novell.com>
19 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21 2006-10-03 Mike Kestner <mkestner@novell.com>
23 * ListView.cs : use is_visible instead of Visible to check if
24 scrollbars should be placed/sized. Also some max_wrap_width
25 love for LargeIcon view. [Fixes #79533]
27 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
30 Make set_TextAlign() do actually update the align. Fixed #78403.
32 2006-10-03 Chris Toshok <toshok@ximian.com>
34 * DataGrid.cs: fix a crash when switching datasources if the
35 vertical scrollbar is at someplace other than Value = 0. Also,
36 reduce the number of recalculation passes we do in SetDataSource
39 2006-10-03 Jackson Harper <jackson@ximian.com>
41 * TextBoxBase.cs: Move the if value the same bail check up, we
42 don't want to empty the document if it is already empty, this
43 seems to severly mess up the caret. TODO: I should probably fix
44 the empty statement to update teh caret somehow.
46 2006-10-03 Chris Toshok <toshok@ximian.com>
48 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
49 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
50 reflection, an internal row type, properties on said type, etc.)
51 will work with our datagrid. Fixes #79531.
53 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
55 * FileDialog.cs: Don't crash if a path is not accessible
56 (System.UnauthorizedAccessException). Fixes #79569.
57 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
58 a ':' too. Return unknown icon for those paths/files.
60 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
62 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
63 GetContainerControl returns null.
65 2006-10-02 Chris Toshok <toshok@ximian.com>
67 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
68 call to XGetWindowAttributes instead of "handle". fixes an X
69 error using notifyicon after the NotifyIconWindow to Form base
72 2006-10-02 Chris Toshok <toshok@ximian.com>
74 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
75 server grab and looping we need to do to get down to the most
76 deeply nested child window.
77 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
78 QueryPointer again after the WarpPointer so we can generate a
79 proper (fake) MotionNotify event to be enqueued in the destination
81 (GetCursorPos): call QueryPointer.
85 2006-10-02 Jackson Harper <jackson@ximian.com>
87 * NotifyIcon.cs: Derive the notify icon from a form, so things
88 like FindForm work on it.
89 - Swallow the WM_CONTEXTMENU message, since that is generated on
90 mouse down, and context menu is a mouse up kinda guy. I believe
91 the correct fix here is probably to make the notify icon entirely
92 NC area, but this seems to work fine for anyone not manipulating
95 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
97 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
98 ToolStripItemCollection.cs, ToolStripLabel.cs,
99 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
100 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
101 Initial implementation.
102 * TextRenderer.cs: Provide padding to MeasureText.
104 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
106 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
107 of ButtonBaseAccessibleObject. Fix bug #79552.
109 2006-10-02 Jackson Harper <jackson@ximian.com>
111 * MdiWindowManager.cs: When maximizing use the containers client
112 rect, not it's bounds, so nc area is accounted correctly.
113 - Use the parent form's size for the menu position, since the
114 client isn't always the full form size.
116 2006-10-01 Chris Toshok <toshok@ximian.com>
118 * ScrollableControl.cs: make sure neither right_edge or
119 bottom_edge are < 0, since they're used as LargeChange for the
120 horiz/vert scrollbars respectively. Fixes #79539.
122 2006-10-01 Chris Toshok <toshok@ximian.com>
124 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
125 the xplatuix11 code can cause us to destroy/recreate our handle.
129 - this code can be invoked many times for the same Hwnd. Make
130 sure we only destroy the client window once (the first time this
131 method is called). This fixes bug #79544.
132 - Remove the call to the improperly bound XSync. why we had two
133 bindings to this, I will never know, but this call resulted in
134 events being discarded from the queue(!).
135 - correct a misunderstanding of _XEMBED_INFO - the second atom is
136 not our current state but the state we wish to be in. So, 0 if
137 we don't want to be mapped. Change it to 1.
138 (SystrayRemove): The XEMBED spec makes mention of the fact that
139 gtk doesn't support the reparent of client windows away from the
140 embedder. Looking at gtksocket-x11.c seems to agree with this.
141 The only avenue we have for removing systray icons is to destroy
142 them. We don't want the handle to go away for good, though, so
143 call InternalRecreateHandle on the NotifyIconWindow. Fixes
146 2006-10-01 Chris Toshok <toshok@ximian.com>
148 * Form.cs (WndProc): inline the native_enabled variable usage into
149 the cases in which it's used. Fixes #79536.
151 2006-09-29 Mike Kestner <mkestner@novell.com>
153 * ListView.cs : toggle the selection state for ctrl clicks in
154 multiselect mode. [Fixes #79417]
156 2006-09-29 Mike Kestner <mkestner@novell.com>
158 * ListView.cs : kill CanMultiSelect and refactor the selection
159 code to support multiselection in the absence of mod keys. Steal
160 arrow/home/end keys by overriding InternalPreProcessMessage to
161 restore regressed keynav behavior.
164 2006-09-29 Jackson Harper <jackson@ximian.com>
166 * MdiClient.cs: Repaint the titlebars when the active window is
169 2006-09-29 Chris Toshok <toshok@ximian.com>
171 * Application.cs: when entering a runloop with a modal, make sure
172 the hwnd is enabled. Fixes #79480.
174 2006-09-29 Chris Toshok <toshok@ximian.com>
176 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
177 when ListManager.CanAddRows == false, bump us back one.
179 * DataGridColumnStyle.cs (ParentReadOnly): remove the
180 listmanager.CanAddRows check. This makes ArrayLists uneditable
181 using a datagrid, which is not right.
182 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
183 is an IEditable, but call property_descriptor.SetValue regardless.
186 2006-09-29 Chris Toshok <toshok@ximian.com>
188 * DataGridBoolColumn.cs: we need to test equality in the face of
189 possible null values (as is the case with the default NullValue).
190 This patch keeps us from crashing in that case.
192 2006-09-29 Jackson Harper <jackson@ximian.com>
194 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
195 here, since it will get called for every node collection in the
196 tree. This is now done in the treeview once the sorting is
198 * TreeView.cs: Recalculate the visible order, and update the
199 scrollbars after sorting, set the top nope to the root so that the
200 recalc actually works.
202 2006-09-29 Chris Toshok <toshok@ximian.com>
204 * LinkLabel.cs: more handling of the default link collection in
205 the face of LinkArea manipulation. The default link collection
206 contains 1 element (start=0,length=-1). If the user sets LinkArea
207 to anything and the links collection is the default, clear it.
208 Then only add the link if its nonempty. Fixes #79518.
210 2006-09-29 Chris Toshok <toshok@ximian.com>
212 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
213 piece correctly when we hit a '\n'. Fixes #79517.
215 2006-09-29 Chris Toshok <toshok@ximian.com>
217 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
218 change the binding of gdk_init_check to take two IntPtr's, and
219 pass IntPtr.Zero for both of them. Fixes #79520.
221 2006-09-29 Mike Kestner <mkestner@novell.com>
223 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
226 2006-09-28 Jackson Harper <jackson@ximian.com>
228 * XplatUIX11.cs: When translating NC messages make sure we go from
229 whole window to screen, not client window to screen.
230 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
232 - Skip over controls that aren't forms when arranging.
234 2006-09-28 Jackson Harper <jackson@ximian.com>
236 * XplatUIWin32.cs: Clip the rect to the parent window.
237 * XplatUIStructs.cs: Add clipping modes struct.
238 * InternalWindowManager.cs: New private method that factors title
239 bar heights in when calculating the pos of an NC mouse message.
240 - Use SendMessage to force a paint when the form's size is changed
241 instead of painting the decorations immediately.
242 - Don't let the NC button click messages get to DefWndProc,
243 because they will attempt to handle windowing themself, and this
244 messes up z-order (it will put them in front of the scrollbars).
245 * XplatUIX11.cs: Make sure that we don't reset window managers if
246 we already have one (ie the window is an MDI window).
248 2006-09-28 Chris Toshok <toshok@ximian.com>
250 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
251 menu code really needs going over.
253 2006-09-27 Chris Toshok <toshok@ximian.com>
255 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
256 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
257 window is maximizable. So, we need to make sure that even if we
258 clear the border/wm frame of those functions, they're still
259 available (basically, we remove the decoration without removing
260 the function). Half the fix for #79338.
262 2006-09-27 Chris Toshok <toshok@ximian.com>
264 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
267 2006-09-27 Chris Toshok <toshok@ximian.com>
269 * Splitter.cs: reorder things a bit so that we don't actually
270 draw/move the splitter until after calling OnSplitterMoving. This
271 lets users cancel/disallow the movement by explicitly setting
272 event.SplitX/SplitY. Fixes #79372.
274 2006-09-27 Jackson Harper <jackson@ximian.com>
276 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
277 because it is most likely on a window being destroyed, and that
278 will give us an X11 error.
280 2006-09-27 Chris Toshok <toshok@ximian.com>
282 * PropertyGridView.cs: half of the fix for #78190. Clicking on
283 the dropdown button now toggles between showing and hiding the
284 dropdown. Also, get rid of dropdown_form_showing and just use
285 dropdown_form.Visible. We still don't do a grab, but I'll leave
286 that part to someone who has handled Capture-fu before.
288 2006-09-27 Chris Toshok <toshok@ximian.com>
290 * DataGrid.cs: return false if alt isn't pressed when '0' is
291 pressed. this keeps the '0' key from being swallowed, and fixes
294 2006-09-27 Chris Toshok <toshok@ximian.com>
296 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
297 Calling Refresh (in response to a scrollbar event) screws up the
298 scrollbar painting. Fixes bug #78923.
300 2006-09-27 Chris Toshok <toshok@ximian.com>
302 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
303 then insert into hashtable" blocks threadsafe.
305 2006-09-27 Chris Toshok <toshok@ximian.com>
307 * MessageBox.cs (CreateParams): the styles should be |'ed with our
308 baseclass's, since otherwise the
309 ControlBox/MinimizeBox/MaximizeBox assignments above have no
310 effect. This gets the close button back in messageboxes.
312 2006-09-27 Chris Toshok <toshok@ximian.com>
314 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
315 flag, not just != 0. this makes flags that are actually multiple
316 bits (like WS_CAPTION) work. fixes bug #79508.
318 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
320 * PageSetupDialog.cs: add support for getting and settings the
321 paper size, source and orientation.
323 2006-09-26 Chris Toshok <toshok@ximian.com>
325 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
326 and caption == "", we need to remove the resize handles as well as
329 * Control.cs (set_Text): turns out that setting Text on a form
330 should change the WM styles on the window, since if ControlBox ==
331 false, the only way to get a window border is to have a non-""
332 Text property. check winforms/forms/text.cs for an example. so,
333 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
334 update both window styles and title. This fixes a lot of dialogs
335 (including the preferences dialog in MonoCalendar.)
337 2006-09-26 Chris Toshok <toshok@ximian.com>
339 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
340 control isn't a Form), call Win32ShowWindow to hide the window,
341 but don't update the control Visible property. When we reparent
342 back to a parent control, call SetVisible in order for the
343 window's visibility to be reinstated.
345 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
348 * Control.cs (ControlCollection.Remove): remove that value.Hide()
349 call for good, since it breaks MonoCalendar (and other things I'm
350 sure.) Also, set all_controls to null *after* the owner calls,
351 which end up regenerating it.
352 (ChangeParent): allow new_parent to be == null, passing
353 IntPtr.Zero down to XplatUI.
355 this fixes #79294 the right way.
357 2006-09-26 Mike Kestner <mkestner@novell.com>
359 * GridEntry.cs : internal SetParent method.
360 * PropertyGrid.cs : attach to property changed on the proper
361 target if we have a hierarchical grid with subobjects. Setup
362 GridItem.Parent for hierarchical items.
363 * PropertyGridView.cs : Set value on the correct target for
364 hierarchical grids. [Fixes #78903]
366 2006-09-26 Chris Toshok <toshok@ximian.com>
368 * Control.cs (ChildNeedsRecreating): this should return true if
369 either we're being recreated and the child is in our list, or our
370 parent is waiting for our recreation.
372 2006-09-26 Chris Toshok <toshok@ximian.com>
374 * Control.cs (ControlCollection.Remove): reinstate the
375 value.Hide() call as suggested in bug #79294.
377 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
379 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
380 coordinates (versus a relative move).
382 2006-09-26 Chris Toshok <toshok@ximian.com>
384 * Control.cs: rework child recreation a little bit. It turns out
385 that we race between the DestroyNotify the WM_DESTROY message. If
386 the parent gets its DestroyNotify before the child gets the
387 WM_DESTROY message, the child ends up not recreating (since the
388 parent finishes its recreation on DestroyNotify, and the child
389 checks ParentIsRecreating.)
391 So, instead we store off a list of all the child controls which
392 need to be recreated when the parent control starts to recreate
393 itself. Then, when child controls get their WM_DESTROY message we
394 check to see if they're in the parent's pending recreation list,
395 and if so, we recreate. This removes all dependency on ordering
396 from the code and fixes the initial MonoCalendar upgrade dialog.
398 2006-09-26 Jackson Harper <jackson@ximian.com>
400 * TextControl.cs: Use the Line to get the length of the line,
401 since soft line breaks can change the end line.
403 2006-09-26 Chris Toshok <toshok@ximian.com>
405 * Control.cs (ControlCollection.AddImplicit): don't add the
406 control again if it's already in one of our lists. This keeps us
407 from adding controls over and over again for comboboxes when their
408 handle gets recreated (as the combobox adds implicit controls in
409 OnHandleCreated). Fixes the X11 errors in bug #79480.
411 2006-09-26 Jackson Harper <jackson@ximian.com>
413 * TextControl.cs: When deleting characters make sure that any
414 orphaned zero lengthed tags get deleted.
415 - Fix ToString for zero lengthed tags.
417 2006-09-25 Jackson Harper <jackson@ximian.com>
419 * TextControl.cs: When getting a tag at the location there can be
420 multiple tags at the same spot, these are 0-lengthed tags that
421 appear when extra formatting has been stuck in a location. We
422 need to pull out the last of these 0 lengthed tags.
424 2006-09-25 Jackson Harper <jackson@ximian.com>
426 * TextControl.cs: Fix print out in debug method.
427 * TextBoxBase.cs: When text is set bail if we are setting to the
430 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
432 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
433 It is now possible to change the selected index in a FontXXXListBox
434 with the up and down arrow keys from the FontXXXTextBoxes.
435 Also, send the FontXXXTextBox mouse wheel event to the corresponding
436 FontXXXListBoxes to match ms.
438 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
440 * SystemInformation.cs: Return a clone of the theme's MenuFont because
441 anyone can dispose it, anytime. All other properties returns enums,
442 structs or basic types so they don't need such tricks.
444 2006-09-22 Jackson Harper <jackson@ximian.com>
451 * XplatUIDriver.cs: Update interface to add a primary selection
452 flag, so the driver can use the primary selection buffer if
454 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
456 * RichTextBox.cs: We need to supply the data object to paste now
457 (so we can choose to supply CLIPBOARD or PRIMARY).
458 * TextBoxBase.cs: Supply data object to paste (see above).
459 - Middle click uses the primary selection data object.
461 2006-09-21 Chris Toshok <toshok@ximian.com>
463 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
464 of SetWMStyles. It's still a rat's nest and is largely
465 order-dependent which I dislike immensely. This also fixes the X
466 button disappearing from toplevel forms.
468 2006-09-21 Mike Kestner <mkestner@novell.com>
470 * ListBox.cs: move Jordi's click/dblclick raising code to the
473 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
475 * ListBox.cs: Fixes 79450
477 2006-09-21 Mike Kestner <mkestner@novell.com>
479 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
480 to deal with people updating the TreeNodeCollection after the tree
481 is disposed. "Fixes" 79330.
483 2006-09-20 Jackson Harper <jackson@ximian.com>
485 * TextControl.cs: Push the cursor record onto the undo stack
486 before the delete action. This fixes 78651.
488 2006-09-20 Jonathan Chambers <joncham@gmail.com>
490 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
491 CreateParams. Fixes 79329.
493 2006-09-19 Chris Toshok <toshok@ximian.com>
495 * XplatUIX11.cs: a couple of blanket code massage passes to clean
496 things up a bit. First, get rid of the NetAtoms array (and the NA
497 enum), and just embed the atoms as static fields. Also, add a
498 couple of functions (StyleSet and ExStyleSet) to clean up all the
499 bitmask testing of styles.
501 * X11Structs.cs: remove the NA enum, not needed anymore.
503 2006-09-19 Chris Toshok <toshok@ximian.com>
505 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
506 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
507 added cleanup to get MessageBox titles appearing again, which were
508 broken by my earlier fix for caption-less/ControlBox-less windows.
510 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
512 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
513 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
514 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
515 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
516 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
517 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
518 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
519 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
520 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
521 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
522 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
524 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
525 ToolStripButton.cs: Stubs needed for above.
526 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
528 2006-09-15 Chris Toshok <toshok@ximian.com>
531 - make the MessageQueues hashtable Synchronized.
533 - SendMessage: if the Hwnd is owned by a different thread, use the
534 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
535 thread. Fixes bug #79201.
537 2006-09-15 Chris Toshok <toshok@ximian.com>
539 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
540 ControlBox == false, we disallow maximize/minimize/close. If the
541 form Caption is "" we also disallow move (and get rid of the Title
542 decoration). Unfortunately, regardless of how things are set,
543 we're stuck with the Title and WM menu.
545 2006-09-15 Chris Toshok <toshok@ximian.com>
547 * Application.cs: add locking around the static message_filters
548 ArrayList, part of #79196.
550 2006-09-15 Chris Toshok <toshok@ximian.com>
552 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
553 Form.ControlBox == false, the window has no titlebar nor resize
554 handles. fixes bug #79368.
556 2006-09-15 Chris Toshok <toshok@ximian.com>
558 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
559 >= 0. Fixes bug #79370.
561 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
562 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
564 Add properties: LayoutEngine, Margin, DefaultMargin.
565 Add method: GetPreferredSize.
566 Move layout logic from PerformLayout to layout engines.
568 2006-09-13 Chris Toshok <toshok@ximian.com>
570 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
571 fix for #79326 broke #78718, so this change addresses that.
573 - in SendWMDestroyMessages remove the call to
574 CleanupCachedWindows, since we might be recreating the control and
575 need to maintain the references to right Hwnd handles. Also, set
576 the zombie flag to true for each of the children in the hierarchy
577 instead of calling hwnd.Dispose. This will cause GetMessage to
578 ignore all events for the window except for DestroyNotify.
580 - In GetMessage, ignore messages except for DestroyNotify for
583 * Control.cs: revert the is_recreating fix from the last
584 ChangeLog. It's definitely "right", but it breaks switching from
585 an MDI form to a non-MDI form. Will need to revisit that.
587 * Hwnd.cs: add a zombie flag, which means "the
588 client_window/whole_window handles are invalid, but we're waiting
589 for the DestroyNotify event to come in for them". Set the flag to
590 false explicitly if setting WholeWindow/ClientWindow, and also
593 2006-09-13 Chris Toshok <toshok@ximian.com>
595 * XplatUIX11.cs: rework window destruction slightly.
597 - when destroying the windows associated with a control, we don't
598 need 2 separate XDestroyWindow calls. Just the one for the
599 whole_window (or for client_window if whole_window is somehow
600 IntPtr.Zero -- can this happen?) is enough.
602 - reworked SendWMDestroyMessages slightly, so we always dispose
603 the child control hwnd's after sending the messages.
605 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
606 the two places it was used (one was even using hwnd.Handle and the
607 other hwnd.client_window. ugh), adding another call in
608 SendWMDestroyMessages. We need this new call because now the
609 DestroyNotify events in the queue will be ignored for the child
610 controls (as their hwnd's were disposed, and the window id's
611 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
613 - this fixes bug #79326.
615 2006-09-13 Chris Toshok <toshok@ximian.com>
617 * Control.cs: don't always set is_recreating to false at the end
618 of RecreateHandle, since sometimes we're not done (and won't be
619 until WndProc handles the WM_DESTROY message). Also, set
620 is_recreating to false in the WM_DESTROY handling code. Part of
621 the fix for bug #79326.
623 2006-09-13 Miguel de Icaza <miguel@novell.com>
625 * X11DesktopColors.cs: Start the droppage of debugging messages.
627 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
629 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
631 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
633 2006-09-12 Chris Toshok <toshok@ximian.com>
635 * DataGrid.cs (get_ListManager): if the list_manager is null, try
636 to create it using SetDataSource. Fixes bug #79151.
638 2006-09-11 Chris Toshok <toshok@ximian.com>
640 * XEventQueue.cs: add a DispatchIdle property.
642 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
643 either the queue is null, or the queue has DispatchIdle set to
645 (DoEvents): set queue.DispatchIdle to false around the
646 peek/translate/dispatch message loop in this method. This keeps
647 Application.Doevents from emitting idle events. Part of the fix
650 2006-09-11 Chris Toshok <toshok@ximian.com>
652 * DataGrid.cs (set_DataSource): make this work for both the
653 winforms/datagrid test and ReportBuilder. It seems as though when
654 we've created a ListManager (or maybe it's if we have a
655 BindingContext?), when we set the DataSource it clears the
656 DataMember to "". otherwise we reuse the datamember. Fixes bug
659 2006-09-11 Chris Toshok <toshok@ximian.com>
661 * XplatUIX11.cs: deal with queue being null, which happens in all
662 the Clipboard functions. Fixes one of the two problems mentioned
665 2006-09-11 Chris Toshok <toshok@ximian.com>
667 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
668 button on various spots (including outside the menu) works closer
669 to MS, and doesn't crash. Fixes #79343.
671 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
673 * ListView.cs: Do not initialize item_sorter in init. To match MS,
674 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
675 and the internal comparer is set. When a new ListViewItemSorter is set,
676 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
677 was specified. No further processing is necessary if SortOrder is set
678 to it's current value. If Sorting is modified to None, and View is
679 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
680 (either custom or our internal ItemComparer) to null, on 1.0 profile
681 only set item_sorter to null if its our internal IComparer. If Sorting
682 is modified to Ascending or Descending, then use our internal IComparer
683 if none is set, and if the current IComparer is our internal one then:
684 on 2.0 profile always replace it with one for new Sorting, and on 1.0
685 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
686 Enum.IsDefined to verify whether a valid View value is specified in
687 its setter. Automatically sort listview items when listview is
688 created. In Sort, do nothing if ListView is not yet created, or if
689 no item_sorter is set (no Sorting was set, Sorting was explicitly set
690 to None or ListViewItemSorter was set to null). Added Sort overload
691 taking a bool to indicate whether the ListView should be redrawn when
692 items are sorted (we use this in ListViewItemCollection to avoid double
693 redraws). Modified our internal IComparer to take the sort order into
694 account. In Add and AddRange methods of ListViewItemCollection, also
695 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
696 view), but use overload with noredraw option to avoid double redraw.
697 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
698 true when View is Tile, and do the same when attempting to set View to
699 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
700 for selected/checked indices, as it involves overhead when sorting is
701 done while these collections are not used all that often. Instead
702 we'll build the indices on demand. Modified IList implementation of
703 CheckedIndexCollection to use public methods if object is int.
704 Modified CheckedListViewItemCollection to hide checked items if
705 ListView.CheckBoxes is false. Removed LAMESPEC remark in
706 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
707 IList implementation in SelectedIndexCollection to use public methods
708 if object is int. Modified SelectedListViewItemCollection to hide
709 selected items if listview is not yet created.
710 * ListViewItem.cs: CheckedIndices list no longer needs to be
711 maintained separately (see ListView changes). Also clone font, fixes
714 2006-09-11 Mike Kestner <mkestner@novell.com>
716 * ComboBox.cs: if we are updating the contents of the currently
717 selected index, refresh the control or the textbox selection.
720 2006-09-11 Mike Kestner <mkestner@novell.com>
722 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
723 the 'specified' logic has been moved there. This seems like a bug
724 in Control.cs, since our current SetBoundsCore completely ignores
725 the specified parameter. Peter's commit seems to indicate that is
726 the way the MS control implementation works. [Fixes #79325]
728 2006-09-10 Jonathan Chambers <joncham@gmail.com>
730 * XplatUI.cs: Set default_class_name to be composed
731 of current domain id. This allows MWF to be loaded in multiple
734 2006-09-09 Miguel de Icaza <miguel@novell.com>
736 * X11Keyboard.cs: If we are unable to obtain the input method, do
737 not call CreateXic to create the input context. Should fix
740 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
742 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
743 Simplified gnome support by adding more pinvokes to get the
744 icon for a file or mime type.
746 2006-09-08 Jackson Harper <jackson@ximian.com>
748 * MenuAPI.cs: Deslect popup context menu items before closing the
749 window, so that you don't see the previously selected item
750 selected when you reopen the menu.
751 * TextControl.cs: Update the cursor position even if we don't have
752 focus. This fixes typing in things like the ComboBox. I'm not
753 totally sure we should always set the visibility if we don't have
754 focus, but couldn't find any corner cases where the cursor showed
755 up when it shouldn't.
757 2006-09-08 Chris Toshok <toshok@ximian.com>
759 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
760 our arrays are length 256. & 0xff before indexing. Fixes the
763 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
765 * ThemeWin32Classic.cs:
766 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
767 is true. Handle that check box too.
769 2006-09-07 Chris Toshok <toshok@ximian.com>
771 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
774 2006-09-07 Chris Toshok <toshok@ximian.com>
776 * Control.cs: in set_BackColor only do the work if
777 background_color != value.
779 * XplatUIX11.cs: move the clearing of invalid areas (both client
780 and nc) to the same block of code where we set (nc_)expose_pending
781 to false. That is, move it from PaintEventEnd to PaintEventStart,
782 so things that cause invalidates from within OnPaint will trigger
783 another call to OnPaint. Fixes bug #79262.
785 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
787 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
788 * FileDialog.cs: Fix typo
790 2006-09-07 Jackson Harper <jackson@ximian.com>
792 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
793 for tab pages if they have any.
795 2006-09-06 Mike Kestner <mkestner@novell.com>
797 * Splitter.cs: use the "current" rect when finishing drag handle
798 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
800 2006-09-06 Mike Kestner <mkestner@novell.com>
802 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
803 support offset splitters. [Fixes #79298]
805 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
807 * Mime.cs: Fixed a bug that could override the global mime type
810 2006-09-05 Jackson Harper <jackson@ximian.com>
812 * TabControl.cs: Better calculation method for setting the slider
813 pos. Prevents crashes on really wide tabs.
814 - Draw Image on tab pages if an image list is used.
816 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
818 * MonthCalendar.cs: When Font changes, the Size should be
819 updated to fit the new font's space requirements.
821 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
823 * ListBox.cs: If the items are cleared with Items.Clear set
826 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
828 * MonthCalendar.cs: Handle arrow keys as input keys. Also
829 fire DateChanged event instead of DateSelected event when
830 the date was changed by keyboard interaction.
832 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
834 * DateTimePicker.cs: Handle DateChanged for the associated
835 month_calendar control, and set month_calendar.Font from
836 OnFontChanged method, as well as resize the height of the
837 control when needed. Make PreferredHeight proportional.
839 2006-09-01 Chris Toshok <toshok@ximian.com>
841 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
844 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
846 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
848 * FileDialog.cs: Set ClientSize instead of window size, to allow space
849 for decorations (Fixes #79219)
851 2006-09-01 Mike Kestner <mkestner@novell.com>
853 * ComboBox.cs: first stab at sorting plus some selection handling
854 fixes to bring us more in line with MS behavior. Also switches back
855 to index based selection. Alternative patches for index-based
856 selection were provided by Jackson Harper, Carlos Alberto Cortez,
857 and latency@gmx.de on bug 78848. I assume they were similar to this
858 code I've had simmering in my tree forever.
861 2006-09-01 Chris Toshok <toshok@ximian.com>
863 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
864 when setting list position guard against ending up with a -1 index
865 (the other part of the fix for #78812). Should probably make sure
866 we don't need the analogous fix in the ItemDeleted case.
869 - in SetDataSource, work around the fact that the way
870 OnBindingContextChanged is invoked will cause us to re-enter this
871 method. I'll remove the hack once I investigate
872 OnBindingContextChanged.
874 - fix the logic in set_DataSource and set_DataMember (basically
875 what to do if the other of the two is null.)
877 - in OnListManagerItemChanged, we need to take into account the
878 edit row when deciding whether or not to call RecreateDataGridRows
879 (part of the fix for #78812).
881 2006-09-01 Jackson Harper <jackson@ximian.com>
883 * Splitter.cs: Don't do anything if there is no control to affect
884 (prevents us from crashing in weird tet cases).
885 * TreeView.cs: Bounding box for the mouse movement reverting
886 focus/selection back to previously selected node. This matches
887 MS, and makes the tree a lot more useable.
888 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
889 use clipping so they are not drawn. This fixes when the control
890 is set to have a transparent background, or if it was over an
893 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
895 * MimeIcon.cs: Improved handling for reading default icons when
896 using gnome (2.16 made it necessary). Check and read svg icons
897 first, then 48x48 and then 32x32 icons.
899 2006-08-31 Chris Toshok <toshok@ximian.com>
901 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
904 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
905 ProcessKeyPreview. Fixes part of #77806.
907 * DataGrid.cs: big patch.
909 - revert the queueing up of DataSource/DataMember if inside
910 BeginInit/EndInit calls. That's not the way the datagrid achieves
911 its delayed databinding. Instead, call SetDataSource in
912 OnBindingContextChanged. This mimic's MS's behavior, and fixes
915 - Also, it wasn't mentioned in #78811, but the test case exhibits
916 behavior that was lacking in our datagrid implementation - Columns
917 that have mapping names that don't exist in the datasource's
918 properties aren't shown. Yuck. To fix this I added the bound
919 field to the column style, and basically any calculation to figure
920 out anything about columns uses a loop to find the bound columns.
921 still need to investigate if I can cache an array of the bound
922 columns or if the indices must be the same.
924 - When setting CurrentCell, we no longer abort if the cell being
925 edited was in the add row. This fixes the other part of #77806.
927 - The new code also fixes #78807.
929 * ThemeWin32Classic.cs: perpetrate the same disgusting
930 column.bound field hack, and only render bound fields.
932 2006-08-31 Chris Toshok <toshok@ximian.com>
934 * DataGridColumnStyle.cs: add bound field. this field is true if
935 the datasource has a property corresponding to the mapping name.
937 * DataGridTableStyle.cs: set the bound field on the column styles
938 depending on whether or not we have a column for that property.
940 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
942 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
943 splitter control (fixes #79228)
945 2006-08-31 Chris Toshok <toshok@ximian.com>
947 * DataGridColumnStyle.cs: we need to delay the assignment of
948 property descriptor until the last possible moment due to the lazy
949 databinding stuff in the datagrid. Also, fix the exceptions
950 thrown by CheckValidDataSource to match MS.
952 2006-08-31 Jackson Harper <jackson@ximian.com>
954 * Form.cs: When activated select the active control, if there is
955 no active control, we select the first control.
956 * XplatUIX11.cs: If there is no focus control when we get a
957 FocusIn event, find the toplevel form and activate it. This
958 occurs when you popup a window, it becomes the focus window, then
959 you close that window, giving focus back to the main window.
961 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
964 * ThemeWin32Classic.cs: Cache Font in bold style, as well
965 as StringFormat with Center alignments in MonthCalendar,
966 instead of creating new ones when drawing the control.
967 Also, draw the month name in bold style.
969 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
972 - PerformLayout(): It would seem MS performs the fill even if the
973 control is not visible (part of #79218 fix)
974 - ResetBackColor(): Use the setter to reset the color, to allow
975 overriders to catch the change.
977 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
978 - CreateHandle(): dito (part of $79218 fix)
979 - Don't set an icon if we have a dialog
980 * ScrollableControl.cs:
981 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
982 - ScrollIntoView(): No need to scroll if control is already visible
983 (resolves fixme and fixes #79218)
985 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
987 * MonthCalendar.cs: Change proportions in SingleMonthSize
988 to match the aspect of the original control.
990 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
992 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
993 get updated when they get maximized.
995 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
997 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
999 2006-08-29 Chris Toshok <toshok@ximian.com>
1001 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1003 2006-08-29 Jackson Harper <jackson@ximian.com>
1005 * TreeView.cs: Need to track selected node and highlighted node,
1006 they aren't always the same thing, when the mouse is down on a
1007 node it is hilighted, but not selected yet.
1008 - Do the HideSelection stuff right
1009 - Need to focus on rbutton mouse down. And redraw selection when
1010 right click is mouse upped.
1012 2006-08-29 Mike Kestner <mkestner@novell.com>
1014 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1015 when SubItems.Count < Columns.Count. [Fixes #79167]
1017 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
1019 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1021 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
1023 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1024 from X. Only send based on ConfigureNotify if we don't have the
1025 correct location in hwnd (if the window manager moved us)
1027 2006-08-28 Mike Kestner <mkestner@novell.com>
1029 * ListView.cs: remove a TODO.
1030 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1031 [Fixes ListView part of #79166]
1033 2006-08-28 Mike Kestner <mkestner@novell.com>
1035 * ListView.cs: move wheel handler to parent since it is focused
1036 instead of the item_control now. [Fixes #79177]
1038 2006-08-28 Mike Kestner <mkestner@novell.com>
1040 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1041 when the control is focused. [Fixes #79171]
1043 2006-08-28 Mike Kestner <mkestner@novell.com>
1045 * ListView.cs: size the item and header controls for empty and
1047 * ThemeWin32Classic.cs: draw disabled backgrounds.
1050 2006-08-28 Chris Toshok <toshok@ximian.com>
1052 * Form.cs: remove unused "active_form" static field.
1054 * Hwnd.cs: lock around accesses to static windows collection.
1056 * Application.cs: lock threads in Exit ().
1058 2006-08-28 Chris Toshok <toshok@ximian.com>
1060 * NativeWindow.cs: lock around accesses to window_collection.
1062 2006-08-28 Chris Toshok <toshok@ximian.com>
1064 * Control.cs: err, fix this the right way, by locking on controls
1065 when using it. not by making it synchronized.
1067 2006-08-28 Chris Toshok <toshok@ximian.com>
1069 * Control.cs: make the static "controls" field synchronized, as it
1070 gets updated from multiple threads.
1072 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1074 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
1075 Prevent other threads from exiting when calling thread sets quit state.
1076 * XEventQueue.cs: Added PostQuitState property
1078 2006-08-27 Chris Toshok <toshok@ximian.com>
1080 * AsyncMethodData.cs: add a slot for the window handle.
1082 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
1083 window (the destination control's window, not the foster window).
1085 * Control.cs (BeginInvokeInternal): store the window's handle in
1086 the AsyncMethodData.
1089 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1092 - PostQuitMessage: Removed resetting S.D display handle, we might have
1093 another loop started after calling PostQuitMessage (Fixes #79119)
1094 - Created destructor to reset S.D handle
1096 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1098 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
1100 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1102 * TextControl.cs (Insert): Update the caret position even if we don't
1103 have a handle yet, just don't call the driver in that case.
1104 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
1105 to the end of the new selection text (Fixes #79184)
1107 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1109 * Form.cs (Activate): Only activate if the handle is created)
1111 - Mark window as invisible when it's disposed
1112 - Check if window handle is created when setting window visible,
1113 instead of relying just on the is_created variable
1114 - Check if object is disposed when creating the control (Fixes #79155)
1116 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1118 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
1119 when allowing layout again. Otherwise we re-generate the anchoring
1120 distance to the border again and actually alter what the user wanted
1121 This is ugly, it'd be better if we used DisplayRectangle instead of
1122 ClientRectangle for Control.UpdateDistances, but that causes us to
1123 have other problems (initial anchoring positons would be wrong)
1126 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1129 - The size and location setters shouldn't go directly to
1130 SetBoundsCore, but to SetBounds, which triggers layout on the
1131 parent, then calls SetBoundsCore. (Related to fix for #78835)
1132 - SetBounds: Moved actual location update code into this function
1133 from SetBoundsCore, to match MS. Added call to PerformLayout if
1134 we have a parent (to trigger resizing of anchored parents if the
1135 child size has changed (see testcase for #78835)
1136 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
1138 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
1140 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1142 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
1143 System.Drawing when a toplevel window gets closed; there might
1144 be other toplevel windows belonging to the same app (Fixes #78052)
1146 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
1148 * FileDialog.cs: After reading FileDialog settings from mwf_config
1149 use Desktop prefix only if a real folder doesn't exist anymore.
1150 * FontDialog.cs: Added char sets.
1151 It is now possible to select the font, size or style with the
1154 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1156 * PrintPreviewDialog.cs: Use assembly name constants.
1158 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1160 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
1161 scrollbar from whacking it's buttons)
1163 2006-08-24 Chris Toshok <toshok@ximian.com>
1165 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
1166 in this patch (aggregating setting Left/Top/Width/Height to
1167 setting Bounds on the scrollbars), but the crux of the fix is in
1168 Recalculate, where we scroll by the remaining scroll_position if
1169 we're hiding a scrollbar. The 2*$5 reward in the comment is
1172 2006-08-24 Jackson Harper <jackson@ximian.com>
1175 * MdiWindowManager.cs: If the form is made a non-mdi window we
1176 need to remove the form closed event so that closing forms works
1179 2006-08-24 Jackson Harper <jackson@ximian.com>
1181 * Control.cs: Make IsRecreating internal so that the driver can
1183 - Temporarily remove the Hide when controls are removed, its
1184 making a whole bunch of things not work because visibility isn't
1185 getting reset elsewhere correctly
1186 * Form.cs: Need to do a full handle recreation when the mdi parent
1188 * XplatUIX11.cs: If we are recreating handles don't dispose the
1189 HWNDs. What was happening is the handles were being recreated in
1190 SendWMDestroyMessages, but then flow continued on in that method
1191 and destroyed the new handles.
1193 2006-08-23 Jackson Harper <jackson@ximian.com>
1195 * Form.cs: MdiClient is always at the back of the bus
1196 * Control.cs: When the order of items in the collection is changed
1197 we need to reset the all_controls array
1198 - do the same sorta setup thats done when adding a control when a
1199 control is set on the collection.
1201 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1203 * TextBoxBase.cs (get_Text): Return an empty array if our document
1204 is empty (fixes #79052)
1206 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1208 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
1209 on WM_SYSCHAR messages (fixes #79053)
1211 2006-08-23 Chris Toshok <toshok@ximian.com>
1213 * DataGrid.cs: fix flickering when scrolling vertically.
1215 2006-08-23 Chris Toshok <toshok@ximian.com>
1217 * DataGrid.cs (EndEdit): only invalidate the row header when we
1220 2006-08-23 Chris Toshok <toshok@ximian.com>
1222 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
1223 methods. fixes the flicker when scrolling around.
1225 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1227 * FileDialog.cs: Making sure the control is created before we get a
1228 chance to use it with BeginInvoke (Fixes #79096)
1230 2006-08-23 Chris Toshok <toshok@ximian.com>
1232 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
1233 width to use when painting the rows.
1235 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1238 - Throw ArgumentException if a negative value is passed to SelectionLength
1239 - Update the selection end if start is moved. end needs to be always
1240 after start. (Fixes #79095)
1241 - Track selection length; MS keeps the selection length even if start
1242 is changed; reset on all other operations affection selection
1244 2006-08-22 Jackson Harper <jackson@ximian.com>
1246 * TreeView.cs: Make sure both scrollbars get displayed and sized
1247 correctly when the other bar is visible.
1248 - Use the original clip rectangle for checking if the area between
1249 the two scrollbars is visible, not the viewport adjusted clipping
1252 2006-08-22 Jackson Harper <jackson@ximian.com>
1254 * Binding.cs: We don't use IsBinding because it requires the
1255 control to be created, which really shouldn't be necessary just to
1256 set a property on the control.
1258 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1260 * ComboBox.cs: Some CB.ObjectCollection methods must throw
1261 ArgumentNullReferenceException when the argument is null.
1263 2006-08-21 Jackson Harper <jackson@ximian.com>
1265 * Timer.cs: Track the thread that the timer is started in (NOT
1266 CREATED), this way messages for it will only be triggered on its
1268 * XEventQueue.cs: Track the timers here, this makes timers per
1270 * XplatUIX11.cs: The timers are moved to the XEventQueue.
1272 2006-08-19 Chris Toshok <toshok@ximian.com>
1274 * XplatUIX11.cs: after further communication with pdb, we get the
1275 best of both worlds. SetZOrder working for un-Mapped windows, and
1276 no X errors for un-mapped windows.
1278 2006-08-19 Chris Toshok <toshok@ximian.com>
1280 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1281 as it was causing pdn toolbars to not have the correct stacking.
1283 2006-08-18 Mike Kestner <mkestner@novell.com>
1285 * ListView.cs : guard against negative ClientArea.Width in scrollbar
1286 calculation. Not sure why control should ever be setting a negative
1287 width though. Fixes #78931.
1289 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1291 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1292 null items in ObjectCollection class.
1293 * ListBox.cs.: Likewise.
1295 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
1297 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1298 as the base method in ThemeWin32Classic should work fine.
1301 2006-08-18 Jackson Harper <jackson@ximian.com>
1303 * Binding.cs: When validating if the value entered doesn't convert
1304 properly reset to the old value.
1305 * RadioButton.cs: Don't fire click when we get focus.
1307 2006-08-18 Jackson Harper <jackson@ximian.com>
1309 * FileDialog.cs: Paint the selection on the directory combobox the
1312 2006-08-17 Jackson Harper <jackson@ximian.com>
1314 * ErrorProvider.cs: Don't allow the error control to be selected.
1315 * Control.cs: Don't send the SetFocus messages, the control
1316 activation will do this, and if we do it blindly here validation
1319 2006-08-17 Jackson Harper <jackson@ximian.com>
1322 * ContainerControl.cs: Make validation events fire in the correct
1323 order. TODO: For some reason the first validation event is not
1326 2006-08-17 Mike Kestner <mkestner@novell.com>
1328 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
1330 2006-08-17 Mike Kestner <mkestner@novell.com>
1332 * ComboBox.cs : implement scroll wheel support for popped-down
1333 state. Fixes #78945.
1335 2006-08-17 Jackson Harper <jackson@ximian.com>
1337 * TreeView.cs: Specify treeview actions (old patch that didn't get
1338 committed for some reason).
1339 - Don't let the mouse wheel scroll us too far. Just want to make
1340 the bottom node visible, not scroll it all the ways to the top.
1342 2006-08-17 Jackson Harper <jackson@ximian.com>
1344 * XplatUIX11.cs: Mouse wheel events go to the focused window.
1346 2006-08-17 Mike Kestner <mkestner@novell.com>
1348 * ComboBox.cs : don't do mouseover selection in simple mode.
1350 2006-08-16 Jackson Harper <jackson@ximian.com>
1352 * Form.cs: Fire the closing events for all the mdi child windows
1353 when a window is closed. If the cancel args are set to true, the
1354 main window still gets the event fired, but it doesn't not close.
1355 * MdiWindowManager.cs: Do this closing cleanup in a Closed
1356 handler, instead of when the button is clicked, so cancelling the
1357 close works correctly.
1358 * ComboBox.cs: Send the mouse down to the scrollbar.
1360 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1362 * ListBox.cs: When passing 'null' to SelectedItem,
1363 set SelectedIndex to -1, to unselect items. This is the
1364 observed behaviour in .Net.
1366 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
1368 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
1369 MS flags saying there won't be any. (fixes #78800)
1370 * Control.cs (HandleClick): Made virtual
1372 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
1374 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
1375 cultures. Fixed bug #78399.
1377 2006-08-16 Jackson Harper <jackson@ximian.com>
1379 * Form.cs: Use the MdiClients MdiChildren property to access
1380 MdiChildren instead of creating the array from the child controls.
1381 * MdiClient.cs: Maintain a separate array of the mdi children, so
1382 that insertion order is maintained when the Z-order is changed.
1384 2006-08-16 Mike Kestner <mkestner@novell.com>
1386 * ListView.cs : add an ItemComparer and default to it for sorting.
1387 Fixes #79076, but sorting needs a complete overhaul to be compat with
1390 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1392 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
1394 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1396 * Hwnd.cs (Mapped): Properly traverse the tree
1398 2006-08-15 Chris Toshok <toshok@ximian.com>
1400 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
1401 pass manager.Current.GetType() to ParseData. It has to be the
1402 property type. So, hold off doing the ParseData until we're in
1403 SetPropertyValue where we know the type. This fixes the crash in
1404 #78821 but the textbox is still empty.
1406 2006-08-15 Chris Toshok <toshok@ximian.com>
1409 - when we're scrolling, only call Edit() again if the
1410 current cell is still unobscured. Fixes bug #78927.
1411 - when handling mousedown on a cell, ensure the cell is visible
1412 before calling Edit.
1413 - remove the properties from DataGridRow, and remove the
1414 DataGridParentRow class altogether.
1417 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1419 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
1420 fire OnTextChanged by ourselves. There's no point calling base,
1421 we don't set the base value anywhere else. Fixes #78773.
1423 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1425 * ListBox.cs: Call CollectionChanged when modifying
1426 an item from Items indexer, to update the actual items
1429 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1431 * PrintDialog.cs: Small fixes for focus and a pair of checks,
1432 to match .Net behaviour.
1434 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1436 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
1438 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1440 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
1442 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
1444 * MessageBox.cs: Prevent potential NRE exception.
1445 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
1447 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
1449 * MessageBox.cs: Calculate the owner of a messagebox, also make
1450 it topmost. Fixes #78753
1452 2006-08-14 Chris Toshok <toshok@ximian.com>
1454 * XplatUIX11.cs: A couple of fixes so that metacity will let us
1455 programmatically move windows. first, set the PPosition hint as
1456 well as the USPosition hint. Second include some code from pdb
1457 that sets the window type to NORMAL when we set the transient for
1458 hint. This is because, in the absence of a window type, metacity
1459 thinks any window with TransientFor set is a dialog, and refuses
1460 to let us move it programmatically. fascists.
1462 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
1464 * XplatUIX11.cs: When setting normal hints, take into consideration
1465 an different hints previously set so we don't delete them (fixes #78866)
1467 2006-08-12 Chris Toshok <toshok@ximian.com>
1469 * ToolBarButton.cs: make Layout return a boolean, if something to
1470 do with the button's layout changed.
1473 - add another parameter to Redraw, @force, which all existing
1475 - make the Layout function return a boolean which is true if the
1476 layout has actually changed. Redraw now uses this (and @force)
1477 to determine when to invalidate. At present the only place
1478 where @force can be false is the call from OnResize, when
1479 background_image == null. So, resizing a toolbar when the
1480 layout doesn't change results in no drawing.
1482 2006-08-12 Chris Toshok <toshok@ximian.com>
1484 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
1485 the VScrollBar and HScrollbar reversed. oops.
1487 * DataGrid.cs: fix the logic that assigns sizes to the implicit
1488 scrollbars. we were assigning them twice (once in
1489 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
1490 therefore causing two scrollbar resizes (and redraws?) to happen
1493 2006-08-12 Chris Toshok <toshok@ximian.com>
1495 * ToolBarButton.cs: redraw the entire button if the theme tells us
1498 * Theme.cs: add ToolBarInvalidateEntireButton.
1500 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
1501 buttons, just the border.
1503 * ThemeNice.cs: redraw the entire toolbar button since we need to
1504 draw the highlight image.
1506 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
1507 we need to redraw the entire button (not just the border).
1509 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
1511 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
1512 for vertical bars. Fixes the mismatches shown by #78513
1514 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
1516 * FileDialog.cs: If a saved/remembered path doesn't exist
1517 anymore, fall back to "Desktop".
1519 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
1521 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
1522 parent. It's apparently legal to not have one
1524 - SetZOrder: Don't try to set Z-Order on an unmapped window
1525 - CreateWindow: 0,0 are legal coordinates for a window. don't move
1526 it unless the coordinates are negative
1528 2006-08-10 Mike Kestner <mkestner@novell.com>
1530 * ListControl.cs: allow null for DataSource. Clear DisplayMember
1531 when setting to null per msdn docs. Fixes #78854.
1533 2006-08-10 Chris Toshok <toshok@ximian.com>
1535 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1536 flickering by setting a clip rectangle on the Graphics when we
1537 need to redraw just a particular menuitem. Also, rename "OnClick"
1538 to "OnMouseDown" to reflect what it actually is.
1540 * Form.cs: track the OnMouseDown change.
1542 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
1544 * CommonDialog.cs: Properly inherit the CreateParams from the form
1545 and only change what we need. Fixes #78865
1547 2006-08-10 Chris Toshok <toshok@ximian.com>
1549 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1550 flickering in flat mode (and most of the flickering in general) by
1551 only invalidating the button border (and not the entire rectangle)
1552 when the state changes. A couple of cases still flicker:
1553 ToggleButtons, and the dropdown arrow case when the user mouse
1556 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
1558 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1559 for german keyboards. Numlock state shouldn't affect the behaviour
1560 of the Del key. Fixes bug #78291.
1562 2006-08-10 Chris Toshok <toshok@ximian.com>
1564 * ListControl.cs: remove the items.Clear line from BindDataItems,
1565 as this is the first thing done by both subclasses in their
1566 SetItemsCore overrides. Also, add a ItemChanged handler, and when
1567 passed -1, refresh the list. This gets databinding working when
1568 the datasource is set on the list before the datasource is
1569 populated (as in wf-apps/ReportBuilder.)
1571 * ComboBox.cs: remove the argument to BindDataItems. This call
1572 should really go away, and be initiated by the ListControl code.
1576 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1578 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1579 if no data is in the document when the control is displayed
1581 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1583 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1586 - PositionCaret: Allow positioning of caret but don't call methods
1587 requiring a handle if the window isn't created yet
1588 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1589 - owner_HandleCreated: Don't position the caret, just update it's
1590 location. User might have already set a different position
1592 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1594 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1595 windows. Screws up the returned coordinates for child windows.
1596 Fixes #78825. I'm hoping this doesn't break something, since the
1597 code was explicitly put in 8 months ago, but no bug was attached.
1598 Menus still seem to work properly.
1600 2006-08-08 Chris Toshok <toshok@ximian.com>
1602 * DataGrid.cs: make BeginInit/EndInit actually do what they're
1603 supposed to do - delay data binding until the EndInit call. Also,
1604 make the table style collection's CollectionChangeAction.Refresh
1607 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1608 (with action = Refresh) when a consituent table's MappingName is
1611 2006-08-08 Chris Toshok <toshok@ximian.com>
1613 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1614 Invalidate, since changing the text can change the size of the all
1617 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1619 * Form.cs (AddOwnedForm): Still need to add the form to our listif
1620 we don't have it yet
1622 2006-08-08 Chris Toshok <toshok@ximian.com>
1624 * PrintControllerWithStatusDialog.cs: don't .Close() the status
1625 dialog, as this causes X errors later on, since we actually
1626 destroy the window. Instead, .Hide() it.
1628 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1630 * ComboBox.cs: Added focus reflection for popup window
1632 - Removed transient setting for non-app windows for now, not sure it
1634 - Fixed logic checking if we have captions when deciding
1635 override_redirect, WS_CAPTION is two bits and a 0 check was not
1637 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1640 - AddOwnedForm: Don't just add the form to the list, call the property
1641 to ensure the driver is informed about the ownership as well
1642 - CreateHandle: Set the TopMost status in the driver if we have an owner
1643 * XplatUI.cs: Fixed debug statement
1645 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
1646 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1647 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1648 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
1649 TrackBarRenderer.cs: Make constructor private.
1650 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1651 * ProfessionalColorTable.cs: Make properties virtual.
1653 2006-08-06 Duncan Mak <duncan@novell.com>
1655 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1658 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1659 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1660 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1661 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1662 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1663 Initial import of new 2.0 classes.
1665 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1666 * Application.cs: Add 2.0 VisualStyles properties.
1668 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1669 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1670 XplatUIX11.cs: Create property to allow access to existing private
1671 variable "themes_enabled"
1673 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1675 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1676 file size, as otherwise our class libraries fail using windows. Fixes
1679 2006-08-04 Jackson Harper <jackson@ximian.com>
1682 * XplatUIX11.cs: Move the toolwindow window manager creation into
1683 the X11 driver, this way on win32 we can let windows create/handle
1686 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1688 * PrintDialog.cs: Remove some redundant checks, add some others,
1689 clean some code, and move the focus to the text boxes when the
1690 values are incorrect.
1692 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
1694 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1696 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1698 * NumericUpDown.cs: Setting the Minimum and Maximum is now
1699 handled correctly. Fixes bug #79001.
1701 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1703 * PrintDialog.cs: The "Copies" numeric up down must have
1704 set the Minimum property to 1; only if the value is bigger
1705 than 1, activate "Collate" check box. This is the behaviour of .Net.
1706 Also modify the Document elements only if it is not null.
1708 2006-08-03 Jackson Harper <jackson@ximian.com>
1710 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1711 length. (We have a larger array then actual node count).
1713 2006-08-03 Jackson Harper <jackson@ximian.com>
1715 * ComboBox.cs: Don't show selection by default.
1716 - The SelectAll isn't needed here, since the focus code should do
1718 - DDL style lists to manual selection drawing, so when they
1719 get/lose focus they have to invalidate.
1721 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
1723 * TextBoxBase.cs: Don't always show all selections by default.
1725 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
1726 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1727 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1728 Fixed various typos.
1730 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1732 * Control.cs: Removing the controls in a ControlCollection with
1733 Clear now hides the controls as expected. Fixes bug #78804.
1735 2006-08-03 Jackson Harper <jackson@ximian.com>
1737 * Control.cs: Revert previous focus patch, it breaks reflector.
1739 2006-08-03 Jackson Harper <jackson@ximian.com>
1741 * ComboBox.cs: Cleanup selection and focus with the combobox.
1742 This also eliminates some duplicated keyboard code, since now
1743 everything is handled by the main class.
1744 - Make list selection work on mouse up instead of down, to match
1747 2006-08-02 Jackson Harper <jackson@ximian.com>
1749 * Control.cs: Setting focus needs to go through the whole
1750 selection mechanism.
1752 2006-08-02 Chris Toshok <toshok@ximian.com>
1754 * PrintPreviewDialog.cs: change MinimumSize to use
1755 base.MinimumSize so it works.
1757 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
1760 - UpdateCaret: Added sanity check in case caret isn't defined yet
1761 - Line.Delete: Now updating selection and caret markers if we're
1762 transfering a node (Properly fixes #78323)
1763 - SetSelectionEnd: Added sanity check
1764 * TextBoxBase.cs: Removed broken attempt to fix #78323
1766 2006-08-01 Chris Toshok <toshok@ximian.com>
1768 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1769 Close() call is handled in Form, not here.
1771 2006-08-01 Chris Toshok <toshok@ximian.com>
1773 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1776 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1777 for sizes < 100% zoom. The code now aggressively attempts to keep
1778 from calling document.Print (), and tries not to use the scaling
1779 g.DrawImage whenever possible (it still does if you scale to >
1780 100%, since usually that involves huge images).
1782 * PrintPreviewControl.cs: hook up the close button.
1784 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
1785 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1786 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1787 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1788 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1789 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1790 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1791 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1792 Removed [Serializable] for 2.0 Event Handlers.
1794 2006-07-31 Jackson Harper <jackson@ximian.com>
1796 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1797 * TextControl.cs: Uncomment out the body of this method.
1799 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
1801 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1804 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1806 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1807 that embed TextBox and need selections visible even if textbox is not
1808 focused to enforce that behaviour.
1809 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1812 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1815 - Added new SetSelectionStart/SetSelectionEnd overloads
1816 - Fixed viewport width assignment to be accurate
1817 - Adjusted alignment line shift calculations to allow cursor on right
1818 aligned lines to be always visible at the right border (like MS)
1820 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1821 - TextBoxBase_SizeChanged: recalculating canvas on size changes
1822 - CalculateScrollBars: Use ViewPort size instead of window size, to
1823 properly consider space occupied by the border and scrollbars
1825 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
1826 calculations; no longer leaves artifacts
1827 - CaretMoved: Adjusted window scrolling to match MS and fixed several
1828 calculation bugs (Still missing right/center align calculations)
1830 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1832 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1833 use of both scroll rect and clip rect, as they do the same.
1835 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1837 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
1838 in the event handler (fixes #78912)
1840 2006-07-31 Chris Toshok <toshok@ximian.com>
1842 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1843 grid.ListManager.Count, since grid.ListManager might be null.
1844 This of course begs the question "why are we drawing rows for a
1845 grid with no list manager (and therefor no rows)?" Fixes the
1846 crash in bug #78929.
1848 2006-07-31 Chris Toshok <toshok@ximian.com>
1850 * RelatedPropertyManager.cs: Don't always chain up to the parent
1851 ctor. instead, call SetDataSource if the parent's position is !=
1852 -1. Fixes the crash in #78822.
1854 2006-07-31 Chris Toshok <toshok@ximian.com>
1856 * DataGrid.cs (get_ListManager): use field instead of property
1857 accessors for datasource and datamember.
1858 (RowsCount): make internal again.
1859 (OnMouseDown): end edits before resizing columns/rows.
1860 (OnMouseUp): restart edits after resizing columns/rows.
1862 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
1864 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1865 This fixes the situation where the last set cursor is displayed
1866 whenever the mouse is over scrollbars.
1868 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1870 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1871 Document properties, as well as initial values.
1873 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
1875 * XplatUIWin32.cs (SetBorderStyle): Setting both border
1876 and ClientEdge results in a 3-pixel border, which is
1879 2006-07-28 Jackson Harper <jackson@ximian.com>
1881 * TreeNodeCollection.cs: Fix the clear method.
1882 - Fix the Shrink also
1884 2006-07-27 Jackson Harper <jackson@ximian.com>
1886 * TreeView.cs: Make sure the visible order is computed when we
1887 attempt to size the scrollbars (for trees that mess with the
1888 scrolling when they shouldn't.
1889 - Make sure to give the scrollbars valid values.
1891 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1893 * XplatUIX11.cs: Move motion compression code to where it
1894 has less performance impact
1896 2006-07-26 Jackson Harper <jackson@ximian.com>
1898 * UpDownBase.cs: When the control is selected make the child
1899 controls non selectable, so that a click on them won't do a
1900 focus/unfocus cycle.
1901 - Don't give focus to the text box when the spinner is selected.
1902 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1904 2006-07-26 Chris Toshok <toshok@ximian.com>
1906 * ThemeWin32Classic.cs: add print preview rendering. I'm not
1907 satisfied with this solution. If the bitmaps are small, we should
1908 just cache them in the PrintPreviewDialog and draw them here.
1909 Also, the layout is broken for the 2-up and 3-up cases.
1911 * Theme.cs: add PrintPReviewControlPaint.
1913 * PrintPreviewDialog.cs: first pass implementation.
1915 * PrintPreviewControl.cs: first pass implementation. No
1918 * PrintDialog.cs: only validate fields if that particular portion
1919 of the UI is enabled. Also, set the document's controller to a
1920 PrintControllerWithStatusDialog wrapping the document's print
1923 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1924 bring up a SaveFileDialog (i hope we don't want to match the
1925 behavior of the crappy windows file entry) and set the
1926 PrinterSettings.PrintFileName accordingly.
1928 2006-07-26 Jackson Harper <jackson@ximian.com>
1930 * ContainerControl.cs: Add a field that disables auto selecting
1931 the next control in a container when the container is activated.
1932 * UpDownBase.cs: Don't select the text box when the up down is
1935 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1937 * XEventQueue.cs: Added methods for peeking (used for compression
1938 of successive events)
1939 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1940 mouse move events (fixes #78732)
1942 2006-07-25 Jackson Harper <jackson@ximian.com>
1944 * UpDownBase.cs: Use an internal class for the textbox so that we
1945 can control focus. the updown control should always have focus,
1946 if either the text area or the buttons are clicked.
1947 - Send the key messages to the textbox, since it never actually
1949 - Activate and decativate the textbox caret.
1951 2006-07-24 Jackson Harper <jackson@ximian.com>
1953 * Control.cs: Use the directed select when selecting a control,
1954 this way the container controls override will get called and the
1955 whole ActiveControl chain will get triggered. TODO: probably need
1956 to make sure this gets done everywhere instead of the old
1958 * ContainerControl.cs: Implement the directed Select method to
1959 find and activate the correct child control.
1961 2006-07-22 Mike Kestner <mkestner@novell.com>
1963 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1964 menu handling code so that clicks without a grab work too.
1967 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
1969 * FileDialog.cs: Enable the BackButton when dirstack has one element.
1970 Added some small optimizations.
1972 2006-07-21 Matt Hargett <matt@use.net>
1974 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1976 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
1978 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
1979 tests pass and match MS in some strange border cases.
1981 2006-07-21 Chris Toshok <toshok@ximian.com>
1983 * ThemeWin32Classic.cs: handle drawing of the relation links and
1986 * Theme.cs: change args to DataGridPaintParentRow.
1988 * DataGrid.cs: Don't use controls for the relation links and
1989 parent buttons, so we have to handle all their interactions in
1990 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
1991 when we're navigating through child tables, so we can reinstate
1992 selection, expanded state, current cell, etc.
1994 2006-07-20 Chris Toshok <toshok@ximian.com>
1996 * ToolBar.cs: When we redraw a button, for whatever reason,
1997 there's no reason to redraw the entire toolbar. Also, don't call
1998 Control.Refresh from within Redraw, as it's much heavier than
1999 Invalidate (which is really what we want).
2001 2006-07-20 Chris Toshok <toshok@ximian.com>
2003 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2004 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2005 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2006 traces from within a debug IBindingList datasource
2007 (in mono/winforms/datagrid) for *days*, I've finally gotten things
2008 to work in a similar fashion.
2010 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2012 * ListBox.cs: Don't call Sort () when setting
2013 the Sorted property to false (avoid an unnecessary sort).
2015 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2017 * ListControl.cs: DataSource should throw an ArgumentException
2018 instead of a normal exception when the argument is not of the
2021 2006-07-20 Mike Kestner <mkestner@novell.com>
2023 * Control.cs: add InternalPreProcessMessage to allow us to steal
2024 key events before MWF gets its paws on them. Adapted from a
2026 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
2027 up/down/left/right navigation. Override the new internal control
2028 method to steal the events since they never make it to WndProc.
2029 * ToolBarButton.cs: don't worry about pushed when setting hilight
2030 since the drawing code prefers pushed to hilight. Invalidate on
2031 Hilight changes. Fixes #78547 and #78525.
2033 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2035 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2036 the canvas size. Fixes #78868
2038 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2040 * Splitter.cs: Track requested split position until first layout
2041 is performed. Fixes #78871
2043 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2045 * Application.cs: Removed code that forces 1.x for the version
2046 number if the version started with 0. Not sure why that code was
2047 there and I couldn't find any bugs that indicated we needed it.
2050 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
2052 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2053 ResetDefaults(), just write some output to the console until it's
2054 implemented. Fixes bug #78907 for now. Eliminated two warnings.
2056 2006-07-19 Jonathan Chambers <joncham@gmail.com>
2058 * PropertyGridView.cs: set StartPosition of drop down forms
2059 so they appear in correct initial spot. Fixes #78190.
2061 2006-07-19 Mike Kestner <mkestner@novell.com>
2063 * ThemeWin32Classic.cs: use parent background color when drawing
2064 flat toolbars. Restructure the conditionals to make sure non-flat
2065 non-Divider toolbars are filled too. Fixes #78837.
2067 2006-07-19 Mike Kestner <mkestner@novell.com>
2069 * ListBox.cs: Sort on collection changes even if the handle
2070 isn't created yet. Fixes #78813.
2072 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2074 * ListControl.cs: DisplayMember should never be null,
2075 and now we assign String.Empty when null is passed to it (this
2078 2006-07-17 Mike Kestner <mkestner@novell.com>
2080 * ListViewItem.cs: restructure Font and subitem Font handling
2081 to hold a specific font and refer back to owner on null.
2084 2006-07-17 Mike Kestner <mkestner@novell.com>
2086 * ToolBar.cs: bandaid for side-effect of previous patch which was
2087 discarding explicit heights for non-AutoSize toolbars. Need to
2088 extend my format tester to deal with AutoSize=false. Fixes #78864.
2090 2006-07-15 Jackson Harper <jackson@ximian.com>
2092 * LabelEditTextBox.cs:
2093 * TreeView.cs: Use a new LabelEdit class for node editing, this
2094 class automatically 'closes' itself when it gets the enter key or
2096 - Use the client rectangle when setting the trees scrollbars, so
2097 border style is taken into account.
2099 2006-07-14 Jackson Harper <jackson@ximian.com>
2102 * TreeView.cs: Make the editing work similar to MSs, firing the
2103 events correctly and ending edits correctly.
2105 2006-07-14 Mike Kestner <mkestner@novell.com>
2108 * ToolBar.cs: layout restructuring and redraw enhancements to support
2109 formatting changes gracefully, like setting TextAlign, ImageList,
2110 ButtonSize, and Appearance. Handles explicit button sizing quirks
2111 of the MS controls. Things like flat toolbars ignoring button size
2112 but becoming constant sized at the largest button's size. Normal
2113 toolbars with an image set cannot be shrunk smaller than the image,
2114 but text can be clipped/ignored.
2115 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
2116 is zero. Seems like DrawString should be smart enough to not put
2117 anything on screen though. Also trim labels and ellipsize at the char
2119 Fixes #78711 and #78483.
2121 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2123 * FolderBrowserDialog.cs: Disable "New Folder" button and
2124 "New Folder" contextmenu menuitem if a folder like "My Computer"
2127 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2129 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
2130 * FolderBrowserDialog.cs:
2131 - Use MWFConfig to store and read size and position settings
2132 - Added code to create a new folder (button or context menu).
2133 Use TreeView labeledit to change the name of the new folder.
2135 2006-07-14 Jackson Harper <jackson@ximian.com>
2137 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
2138 when the tree is scrolled we end editing.
2140 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2142 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
2145 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
2147 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
2148 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
2149 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
2150 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
2151 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
2152 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
2153 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
2154 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
2155 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
2156 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
2157 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
2158 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
2159 ListViewItemSelectionChangedEventHandler.cs,
2160 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
2161 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
2162 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
2163 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
2164 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
2165 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
2166 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
2167 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
2168 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
2169 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
2170 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
2171 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
2172 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
2173 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
2174 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
2175 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
2176 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
2177 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
2178 WebBrowserNavigatingEventHandler.cs,
2179 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2181 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
2183 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
2184 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
2185 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
2186 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
2187 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
2188 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
2189 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
2190 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
2191 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
2192 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
2193 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
2194 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
2195 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
2196 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
2197 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
2198 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
2199 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
2200 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
2201 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
2202 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
2203 ListViewItemStates.cs, MaskFormat.cs: Added
2205 2006-07-13 Jonathan Chambers <joncham@gmail.com>
2207 * PropertyGridView.cs: Fix keyboard navigation of drop down.
2208 Patch from eno for bug 78558.
2210 2006-07-13 Jackson Harper <jackson@ximian.com>
2212 * TreeView.cs: When an edit is finished make sure that the
2213 selected node is visible.
2214 - When setting the top/bottom use the scrollbars is_visible, so
2215 everything will be set correctly even if the tree isn't visible
2218 2006-07-13 Jackson Harper <jackson@ximian.com>
2220 * ComboBox.cs: Revert the item->index part of my previous patch.
2221 * TreeView.cs: Use LostFocus instead of Leave for detecting when
2222 the edit box has lost focus (duh).
2223 - Just make the edit box not visible when we get return, that will
2224 take the focus, which will call EndEdit
2225 * TreeNode.cs When we start editing, notify the treeview.
2227 2006-07-12 Jackson Harper <jackson@ximian.com>
2229 * ComboBox.cs: Clear out old items before setting the item list.
2230 This prevents databound controls from having their items added
2232 - Switch the combobox to use indices whereever possible instead of
2233 using Item's. This allows usto navigate through lists that have
2234 more then one item with the same string value (ie a, b, b, a).
2235 - Scroll the listboxes scrollbar when a non visible item is
2237 - Allow keypress to cycle through all the possible values. For
2238 example if you have b1, b2, b3 and hold down the B key all the
2239 values will be cycled through.
2241 2006-07-12 Jackson Harper <jackson@ximian.com>
2244 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2245 this using the internal methods.
2246 * Control.cs: Add OnGotFocusInternal. A new method that allows
2247 controls to "override" OnGotFocus and change focus behavior if
2249 - Same thing for LostFocus
2250 * ComboBox.cs: Pass off focus to the text control properly.
2252 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
2254 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2255 * FolderBrowserDialog.cs: Almost a complete rewrite.
2256 - Better support for Environment.Specialfolders
2257 - Added support for MWFVFS
2258 - Made setting SelectedPath work
2260 2006-07-12 Jackson Harper <jackson@ximian.com>
2262 * Control.cs: Optimze getting all the controls.
2264 2006-07-11 Jackson Harper <jackson@ximian.com>
2266 * ContainerControl.cs: Override SETFOCUS in the container control,
2267 so that it is not selected on mouse click.
2269 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2271 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
2272 Hopefully we will have a better way once all of focus is complete.
2274 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2276 * ThemeWin32Classic.cs: Commented out some debug code and fixed
2277 a compile error with csc.
2279 2006-07-11 Jackson Harper <jackson@ximian.com>
2281 * Control.cs: When hiding a control only select the next control
2282 if the current control was focused.
2283 - Don't handle enter/leave when setting/killing focus, this is
2284 done by the container control.
2285 - Remove is_selected, it's not needed anymore.
2286 - Add utility methods for selecting a child control, and for
2287 firing the Enter/Leave events.
2288 * ContainerControl.cs: When a control is activated fire the
2290 - Don't wrap when processing the tab key, so that focus can be
2291 moved outside of the container.
2292 - Use the correct active control
2294 2006-07-11 Jackson Harper <jackson@ximian.com>
2296 * ComboBox.cs: Remove some debug code that was blinding me.
2297 * UpDownBase.cs: These controls actually aren't implicit, they are
2298 visible to the user.
2300 2006-07-10 Chris Toshok <toshok@ximian.com>
2302 * DataGrid.cs: move back to the is_adding boolean field. god i
2303 hate this is_editing/is_adding/is_changing stuff.
2305 2006-07-10 Chris Toshok <toshok@ximian.com>
2307 * DataGridTableStyle.cs: just check if the property type is bool.
2308 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2309 Don't use CanRenderType.
2311 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2312 if our text == NullText. Remove CanRenderType.
2314 * DataGridBoolColumn.cs: nuke CanRenderType.
2316 * DataGrid.cs: reenable some code to end the current edit inside
2317 of set_CurrentCell. This fixes the other 1.1.16 regression.
2318 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
2319 Also, remove the visible_row_count arg from CalcRowHeaders, since
2320 we don't need to worry about the actual height of the area.
2322 2006-07-10 Chris Toshok <toshok@ximian.com>
2324 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
2327 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
2328 the real sense of the IsInEditOrNavigateMode property (true =
2329 navigate, false = edit). Also, update OnKeyPress to reflect this.
2331 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
2332 column style exists, we still need to set its property descriptor
2333 to match up with our list manager.
2335 2006-07-10 Chris Toshok <toshok@ximian.com>
2337 * ThemeWin32Classic.cs: implement the new row/header painting
2338 approach. The parent row painting will likely go away and
2339 replaced with label controls, but the rest seems to work ok (and
2342 * Theme.cs: change the way we draw datagrid rows. we don't draw
2343 the row headers as a block now. Instead we draw them in the
2344 normal draw-row loop. Add some calls for drawing parent rows and
2347 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
2348 a default table style. Set the defaults from ThemeEngine.Current,
2349 not SystemColors. Fix lots of misc issues with property setters.
2351 * DataGrid.cs: move loads of style information out of this class
2352 as it's being duplicated with DataGridTableStyle. keep track of a
2353 special DataGridTableStyle for the properties we used to mirror
2354 here. Switch all the style properties to access this table style
2355 instead of instance fields of this class. Also add a internal
2356 class to represent parent rows (more needs to be stored here, like
2357 the selection state from the parent table, as well as the
2358 expansion state.) Also, for datasources with relations, do the
2359 right thing for collapse/expand, and add support for the
2360 navigation/parent row buttons.
2362 Lastly, fix the crash in the 1.1.16 build.
2364 * GridTableStylesCollection.cs: make the explicit interface
2365 implementations call the class's methods as opposed to duplicating
2368 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
2369 0 so the text doesn't jump around when we move the cursor.
2371 2006-07-10 Jackson Harper <jackson@ximian.com>
2374 * ListBox.cs: Match MS's ToString (this makes debugging focus
2375 stuff infinitely easier).
2377 2006-07-10 Jackson Harper <jackson@ximian.com>
2379 * Control.cs (SelectNextControl): When checking the control's
2380 parent use this instead of ctrl.parent so that null can be passed
2381 to SelectNextControl. (I have unit tests for this).
2382 - Remove unused var.
2384 2006-07-10 Chris Toshok <toshok@ximian.com>
2386 * CurrencyManager.cs: correct one regression, the removal of the
2387 finalType field. Also, add a MonoTODO on CanAddRows, implement
2388 Refresh() correctly, and fix some event emission in
2391 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
2393 * FileDialog.cs: Don't use brackets for new folders if they exist
2394 under *nix. Instead use -(number of existing folders +1).
2396 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
2399 - Fixed really nasty bug #78771
2400 - Don't block the whole GUI when reading directories with a lot of
2401 entries. Use an other thread instead and call BeginInvoke to
2402 update the ListView in MWFFileView
2404 2006-07-07 Chris Toshok <toshok@ximian.com>
2406 * Control.cs (Dispose): release any Capture when disposing.
2408 2006-07-07 Chris Toshok <toshok@ximian.com>
2410 * LinkLabel.cs (Select): if we chain up to the parent, set
2411 focused_index to -1 so we'll search for the first available link
2412 the next time the user tabs into us. Also, if the direction is
2413 backward and focused_index == -1, start the search from the last
2416 2006-07-07 Chris Toshok <toshok@ximian.com>
2418 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
2419 is beyond the end of the text, don't do anything.
2420 (CreateLinkPieces): set our ControlStyles.Selectable based on
2421 whether or not we have any links.
2422 (Link.Invalidate): use a loop instead of foreach.
2423 (Link.set_Start): null out owner.sorted_links so it'll be
2424 recreated by CreateLinkPieces.
2426 2006-07-06 Chris Toshok <toshok@ximian.com>
2428 * LinkLabel.cs: revert the SetStyle change.
2430 2006-07-06 Chris Toshok <toshok@ximian.com>
2432 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
2433 (OnEnableChanged): s/Refresh/Invalidate
2434 (OnGotFocus): if we have a focused index already, refocus it (so
2435 if we mouse out/in to the window it'll focus the right link).
2436 (OnKeyDown): move the tab handling out of here.
2437 (OnLostFocus): don't set focused_index to -1, so we can refocus it
2439 (OnMouseDown): don't Capture here - Control handles it. Also,
2440 focus the active link.
2441 (OnMouseUp): don't deal with Capture.
2442 (OnPaintBackgroundInternal): remove.
2443 (OnTextAlignChanged): CreateLinkPieces before calling the
2444 superclass's method.
2445 (OnTextChanged): call CreateLinkPieces before calling superclass's
2447 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
2449 (Select): implement this, moving the selection between different
2450 links, and call parent.SelectNextControl if we don't have another
2451 link to focus in the given direction.
2452 (CreateLinkPieces): call Invalidate instead of Refresh.
2454 2006-07-06 Chris Toshok <toshok@ximian.com>
2456 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
2457 new LinkLabel internals.
2459 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
2460 over pieces looking for active/focused/etc links. also, deal with
2461 runs of text (and links) with embedded \n's in them, and use
2462 MeasureCharacterRanges instead of MeasureString to figure out the
2463 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
2466 2006-07-04 Jackson Harper <jackson@ximian.com>
2468 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
2469 XKB or key auto repeat, do it manually. Without key auto repeat,
2470 when a key is held down we get key press, key release, key press,
2471 key release, ... with auto repeat we get key press, key press, key
2472 press ..., and then a release when the key is actually released.
2474 2006-07-03 Jackson Harper <jackson@ximian.com>
2477 * ThemeWin32Classic.cs: Tabs do not obey normal background color
2478 rules, they are always control color regardless of the background
2481 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
2483 * FileDialog.cs: Added internal class MWFConfig.
2484 Removed Registry support and replaced it with support for the new
2485 MWFConfig class. See MWFConfig comments for more information.
2487 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
2489 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
2490 rectangle. Added some patches from eno from bug #78490 and fixed
2491 the arrow position for small up and down CPDrawScrollButtons.
2493 2006-06-30 Jackson Harper <jackson@ximian.com>
2495 * InternalWindowManager.cs: Remove some debug code.
2496 * Form.cs: When an MdiParent is set to null, the window is
2497 "detatched" and becomes a normal window.
2498 * MdiClient.cs: Don't bring the new child form to the front until
2499 it is activated (setting it as active does this), this makes the
2500 previously active forms titlebar get redrawn as inactive.
2502 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
2504 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
2507 2006-06-29 Mike Kestner <mkestner@novell.com>
2509 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
2510 arrow in keynav state. Fixes #78682.
2512 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
2514 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
2515 order (fixes #78393)
2517 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
2519 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
2520 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
2521 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
2522 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
2523 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
2524 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
2525 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
2526 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2527 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2528 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2529 enumerations (FlagsAttribute, SerializableAttribute, added/removed
2532 2006-06-28 Mike Kestner <mkestner@novell.com>
2534 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2536 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
2539 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2540 item lines from other area (It also makes BackColor consistent and
2541 compatible with .NET). Fixed bug #78564.
2543 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
2545 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2546 Patch from Eno for #78555.
2548 2006-06-27 Chris Toshok <toshok@ximian.com>
2550 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2552 * DataGridColumnStyle.cs: same.
2554 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2556 * DataGridDrawingLogic.cs: nuke.
2558 2006-06-27 Chris Toshok <toshok@ximian.com>
2560 * DataGridTableStyle.cs: clean up the constructors, and build the
2561 list of child relations for this table. I have no idea if this is
2562 where we should be doing it (it probably isn't), but since we're
2563 already iterating over the properties..
2565 * DataGrid.cs: add row resizing. for now we add a DataGridRow
2566 struct and array for keeping track of row information, similar to
2567 what's shown in a hack on
2568 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2570 * Theme.cs: be consistent about the naming of DataGrid methods,
2571 prefering ColumnWidths and RowHeights over columnsWidths and
2574 * ThemeWin32Classic.cs: same, and also add support for variable
2575 sized rows (and the +/- expansion icons for related rows).
2577 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2579 * TextBoxBase.cs: Applied Eno's patch from #78660
2581 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2583 * Form.cs (ScaleCore): We don't want to scale our form if it's
2584 state is minimized or maximized, but we still need to scale our
2585 child windows. Also, added try/finally block to ensure layout
2586 gets reset (Fixes #78697)
2588 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2590 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2592 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2594 * Form.cs: Fixed c+p error and added check to resize form if minimum
2595 size is bigger than current size (Fixes #78709)
2597 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
2599 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2601 2006-06-26 Mike Kestner <mkestner@novell.com>
2603 * ComboBox.cs: only do Keypress handling in the combo when there
2604 are items in the collection. Fixes #78710.
2606 2006-06-26 Chris Toshok <toshok@ximian.com>
2608 * Binding.cs: make this work bi-directionally. also, clear up
2609 other mixups between Push/Pull Data (e.g. we're supposed to pull
2610 data when validating).
2612 * BindingManagerBase.cs: trim some fully qualified collection
2615 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2617 2006-06-23 Chris Toshok <toshok@ximian.com>
2619 * PropertyManager.cs: It appears (according to the unit tests)
2620 that PropertyManager doesn't use
2621 PropertyDescriptor.AddValueChanged to track propery value changes
2622 in its datasource, but uses the same scheme as Binding, where it
2623 looks for a <Property>Changed event and binds to it.
2625 Also, according to the docs, IsSuspended always returns false for
2626 a property manager with a non-null datasource.
2628 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2630 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2631 need to update the actual DialogResult. (Fixes #78613)
2633 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2635 * Form.cs (ShowDialog): Release any captures before running the
2636 new message pump (fixes #78680)
2638 2006-06-22 Mike Kestner <mkestner@novell.com>
2640 * ListView.cs: Layout column widths properly in details mode even
2641 if HeaderStyle.None is set. Fixes #78691.
2643 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2645 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2647 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2649 * Control.cs (ContainsFocus): Using new driver method to get focused
2650 window, instead of trying to use internal tracking var, which can
2651 recursion issues (Fixes #78685)
2652 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
2653 XplatUIWin32.cs: Added GetFocus method to return focused window
2655 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2657 * ColorDialog.cs: when the mouse button is pressed inside the color
2658 matrix, don't let the cursor move out of it until the button is
2659 released, which is the behavior on windows. Changed 'colours' by
2660 'colors' to use the same word consistently.
2662 2006-06-21 Chris Toshok <toshok@ximian.com>
2664 * DataGrid.cs: add in some basic navigation stuff (navigating to a
2665 child relation and back, using a stack). Also, remove
2666 GetDataSource and the code that calls it - it's not needed. Also,
2667 track CurrencyManager.ListName's removal.
2669 2006-06-21 Chris Toshok <toshok@ximian.com>
2671 * CurrencyManager.cs: push some of the original type checking from
2672 BindingContext.CreateBindingManager to here, and remove some of
2673 the finalType stuff. Need more tests to make sure I've got the
2674 ListName part right, and we might need more in SetDataSource.
2676 * PropertyManager.cs: add a ctor that takes just the datasource,
2677 and no property name. Make SetDataSource work with a null
2678 property_name, and make Current return the data_source if the
2679 property descriptor is null. this makes 'string foo = "hi";
2680 BindingContext[foo].Current' return "hi" as it should.
2682 * RelatedCurrencyManager.cs: make this code more generic - there's
2683 no reason the parent manager has to be CurrencyManager, and
2684 there's no reason to pass the DataRelation. It suffices to use a
2685 BindingManagerBase and PropetyDescriptor.
2687 * RelatedPropertyManager.cs: make a similar change here.
2689 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2690 flower I knew it could be.
2692 2006-06-20 Chris Toshok <toshok@ximian.com>
2694 * PropertyManager.cs: the PropertyChangedHandler is invoked when
2695 data in the source has changed and we need to update the control,
2696 so s/PullData/PushData.
2698 * CurrencyManager.cs: Refresh is meant to update the control from
2699 data in the datasource. So, s/PullData/PushData.
2701 * BindingContext.cs: add more ugliness (we weren't handling the
2702 case where data_source = DataTable and data_member = column_name).
2704 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
2705 from the perspective of the datasource. PullData pulls from the
2706 control, PushData pushes to the control.
2708 2006-06-20 Chris Toshok <toshok@ximian.com>
2710 * BindingContext.cs: rewrite the CreateBindingManager code to
2711 handle navigation paths more or less properly. This could
2712 definitely stand some more work, in particular to push the
2713 recursion up to the toplevel. But that relies on fixes in other
2714 places (System.Data comes to mind).
2716 Also, move to a flat hashtable (and encode the twolevel nature of
2717 the dictionary into the hash key). This lets us implement the
2718 IEnumerable.GetEnumerator method.
2720 * RelatedCurrencyManager.cs: new class. Update our view based on
2721 our relation and our parent CurrencyManager's position.
2723 * CurrencyManager.cs: split out some logic from the ctor into
2724 SetView, so it can be called from the new RelatedCurrencyManager
2727 * RelatedPropertyManager.cs: new class. Update our datasource
2728 based on the position of our parent CurrencyManager.
2730 * PropertyManager.cs: split out some logic from the ctor into
2731 SetDataSource, so it can be called from the new RelatedDataSource
2732 subclass. Also, make the Current getter return the value
2733 of the PropertyDescriptor, not the data_source.
2735 * Binding.cs: no need to duplicate the string splitting code here.
2737 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2740 - set_Enabled: OnEnabledChanged is not called if the inherited state
2741 of the control is not altered, even though we might be changing the
2742 internal state of the control (#78458)
2743 - set_Enabled: (Re)Moved the enabling/disabling of the window to
2744 OnEnabledChanged, to allow easy altering of any child window state
2745 - OnEnabledChanged: Added code to enable/disable driver window state
2746 - OnParentEnabledChanged: Instead of firing the event, call
2747 OnEnabledChanged, which will fire the event and also a) set driver
2748 window state and pass the enabled state to any grandchildren (#78458)
2750 2006-06-19 Jackson Harper <jackson@ximian.com>
2752 * InternalWindowManager.cs: We don't set the cursor explicitly
2753 thats done via the response to NCHITTESTs.
2754 - Don't need to adjust for titlebar heights anymore, the
2755 coordinates are coming in the correct coordinates now (see peters
2759 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2761 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2762 being translated relative to whole window, instead of client window.
2763 That caused broken offsets on mouseclick (and caused gas for our
2764 InternalWindowManager)
2766 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2769 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2770 - Undo(): Added replay of cursor move on DeleteChars action; added
2771 calling Undo() again if a recorded cursor move is invalid (to
2772 ensure that some action is performed on Undo)
2773 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2775 2006-06-16 Jackson Harper <jackson@ximian.com>
2777 * MdiClient.cs: Instead of just sizing maximized windows when
2778 there is a resize we also have to adjust the Y of minimized
2779 windows, so they stay pinned to the bottom of the mdi container.
2780 - Eliminate separate tracking of the active control, we can just
2781 get this from the controls collection.
2782 - Paint the decorations for the newly activated titlebar so we get
2784 * InternalWindowManager.cs:
2785 * ThemeWin32Classic.cs: Minimized windows get all three buttons
2786 even if they are a tool window.
2788 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2790 * TextControl.cs (Undo): Handle non-existent cursor locations in the
2791 undo buffer, these can happen when text was deleted and the cursor
2792 was recorded first. Since we will also have a recorded cursor
2793 after the delete this is not an issue. (Fixes #78651)
2795 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
2797 * AccessibleObject.cs: Remove dependence on Control.is_selected;
2798 instead properly track control states internally (allows us to
2799 remove is_selected from Control)
2801 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2803 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2804 whose width is not a multiple of 8.
2806 2006-06-13 Jackson Harper <jackson@ximian.com>
2808 * MdiClient.cs: Only maximize the next child if the current one
2811 2006-06-13 Chris Toshok <toshok@ximian.com>
2813 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2814 modified. Also, guard against grid or grid_drawing being null in
2817 * DataGrid.cs: Reformat tons of getters/setters. In the
2818 DataMember setter, just call SetNewDataSource instead of
2819 duplicating some of its functionality. In SetNewDataSource, don't
2820 check ListManager for null, since the property getter creates the
2823 * DataGridTableStyle.cs: don't set TableStyle or call
2824 SetDataGridInternal on the column here, it's done in
2825 GridColumnStylesCollection.Add.
2827 * GridColumnStylesCollection.cs: fix all the explicit interface
2828 implementations to just call our methods. Nuke AddInternal() and
2829 move the body of it to Add(). Also, add a call to
2830 column.SetDataGridInternal to Add().
2832 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2833 base()+duplicate code. Also, use the Format property instead of
2834 format to generate an Invalidate ala MS. Lastly, create the
2835 textbox here, unconditionally.
2836 (set_Format): call Invalidate.
2837 (get_TextBox): no need to call EnsureTextBox.
2838 (Commit): remove the message box.
2839 (Edit) remove the call to EnsureTextBox.
2840 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2841 (EnterNullValue): no need to check textbox for null.
2842 (HideEditBox): no need to check textbox for null.
2843 (SetDataGridInColumn): add the textbox to the grid's controls.
2844 (EnsureTextBox): nuke.
2846 2006-06-13 Jackson Harper <jackson@ximian.com>
2848 * MdiWindowManager.cs: Hook up to the maximized menus paint event
2849 and redraw the buttons when needed. Unhook when the window is
2851 * MainMenu.cs: Add an internal Paint event, the mdi window manager
2852 needs this so that it can redraw its buttons when the menu is
2854 * InternalWindowManager.cs:
2855 * Form.cs: The method order has changed for DrawMaximizedButtons,
2856 so that it can be a PaintEventHandler.
2858 2006-06-13 Jackson Harper <jackson@ximian.com>
2860 * MdiClient.cs: When we close a maximized mdi window, the next mdi
2861 window is activated and maximized, even if it wasn't before.
2862 - When a new window is activated repaint the decorations of the
2863 old one, so that it no longer has the Active "look" (the blue
2865 * InternalWindowManager.cs: Open up CreateButtons to base classes
2866 so they can recreate the buttons on state changes.
2867 - If a window is maximized give it all three buttons
2868 * MdiWindowManager.cs: Create the titlebar buttons when the state
2869 is changed, this is needed because a toolwindow will not have all
2870 three buttons until it is maximized.
2872 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
2874 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2877 2006-06-12 Jackson Harper <jackson@ximian.com>
2879 * KeysConverter.cs: Make sure we handle the Ctrl special case
2880 if its the only key.
2882 2006-06-12 Jackson Harper <jackson@ximian.com>
2884 * Theme.cs: Add a method to get the size of a managed window
2886 * InternalWindowManager.cs: Remove the ButtonSize property, this
2887 should be retrieved from the theme.
2888 * MdiWindowManager.cs: Get the button size from the theme
2889 * ThemeWin32Classic.cs: Make the method to get the managed window
2890 titlebar button size public.
2891 - Handle the different button sizes of maximized toolwindows
2892 (should match any maximized window).
2893 - Get the titlebar height from the theme, not the WM (which gets
2896 2006-06-12 Jackson Harper <jackson@ximian.com>
2898 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2899 event down to the mdi window manager.
2900 - Expose some extra stuff to base classes
2901 - Make sure to end the Capture on an NC Mouse up, so that we can
2902 get double clicks properly, and the sizing doens't stick.
2903 - When doing PointToClient contain it in the workable desktop
2904 area, this prevents windows from changing size when the cursor is
2905 pulled outside of the working area while sizing.
2906 * MdiWindowManager.cs: When we get a double click maximize the
2908 - Reset the cursor after handling mode changes.
2910 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
2912 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
2913 current desktop, instead of just assuming a 0, 0 origin. This
2914 is needed for our internal window manager, to know the top
2915 margin of the desktop
2917 2006-06-12 Chris Toshok <toshok@ximian.com>
2919 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2920 we need this to get rid of the selected background in the bool
2922 (CancelEditing): move the ConcedeFocus call to above the Abort
2923 call. Also, set is_changing to false and invalidate the row
2924 header if we were changing before.
2925 (ProcessKeyPreviewInternal): remove, since noone outside this
2926 class calls it anymore. Roll the code into ProcessKeyPreview.
2927 (EndEdit): remove the internal version.
2928 (InvalidateCurrentRowHeader): make private.
2930 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
2931 Keys.Escape handling (and with it the last call to
2932 DataGrid.EndEdit from outside the class.)
2935 2006-06-12 Chris Toshok <toshok@ximian.com>
2937 * DataGridTextBox.cs (.ctor): isedit defaults to false.
2938 (OnKeyPress): set isedit to true.
2939 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
2940 already handled by the grid.
2942 * DataGrid.cs (set_CurrentCell): more work here. it's still not
2944 (set_DataSource): SetDataSource always returns true, so stop
2945 putting it in an if statement.
2946 (EndEdit): get rid of some {}'s
2947 (ProcessGridKey): return true in case Keys.Escape.
2948 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2949 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2950 PositionChanged, stopped connecting to CurrentChanged.
2951 (GetDataSource): simplify this a bunch.
2952 (SetDataSource): change return type from bool to void.
2953 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2954 to this, and make sure we don't set ListManager.Position inside
2956 (OnListManagerItemChanged): if we're passed an actual index,
2959 * CurrencyManager.cs (set_Position): don't call PullData here.
2961 2006-06-09 Jackson Harper <jackson@ximian.com>
2963 * TreeNode.cs: Recalculate the visible order before doing the
2964 Expand/Collapse Below calls, because those calls generate an
2966 - Reduce calls to the TreeView property, which is mildly expensive
2967 by using a local var.
2968 * Form.cs: Layout the MDI child windows when creating the parent
2970 - Don't use the internal constructor anymore
2971 * MdiClient.cs: use the parent form width/height (if available)
2972 when laying out the child windows, we do this because the
2973 mdiclient isn't docked yet when the initial layout is done.
2974 - Don't need an internal constructor anymore.
2976 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2978 * FileDialog.cs: handle access errors when trying to create a folder
2979 or changing to a directory. No need to initialize out parameters.
2981 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2983 * FileDialog.cs: Append a number when creating a new folder if the
2984 folder already exists (use parenthesis instead of square brackets)
2986 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2989 - Disabled registry support for windows and added better registry
2990 error checking for other systems (need to investigate why it
2991 works perfectly on my system)
2992 - If a folder already exist show an error MessageBox instead of
2993 trying to create an indexed name.
2994 - Fixed a non intentional typo.
2996 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2998 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
3000 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3002 * FileDialog.cs: When creating a new folder don't crash if the
3003 folder already exists.
3005 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3007 * FileDialog.cs: Allmost a complete rewrite.
3008 - added a "virtual" file system that handles the differences
3009 between unix and windows file systems (especially the directory
3010 structure). Moved most of the directory and file handling code
3012 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3013 UnixFileSystem and FSEntry.
3014 - Recently used folder/directory, size, location and used file names
3015 (file name ComboBox) are now stored in the registry and get read
3016 before the dialog shows up (fixes part 6 of bug #78446).
3017 - Creation of new folders/directories is now possible (context menu
3018 or ToolBar). Added TextEntryDialog for this that fills in the gap
3019 until ListView.LabelEdit works.
3020 - Fixed cursor handling (bug #78527) and focus handling for
3022 - Various "Search in" ComboBox enhancements. The content of the
3023 dropdown listbox now almost matches ms.
3024 - Changed the behaviour when the user switches to SpecialFolder
3025 Recent to show the ListView in View.Details.
3026 - Beside using the ToolBar to change the View property of the
3027 file ListView it is now possible to use the context menu too.
3029 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3031 * ComboBox.cs: Don't create a new ObjectCollection when an item
3032 gets inserted. Just insert the item in the existing object_items
3035 2006-06-08 Jackson Harper <jackson@ximian.com>
3037 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3038 that the treeview and root node checks are done also, this fixes a
3039 regression i caused in the unit tests.
3041 2006-06-07 Wade Berrier <wberrier@novell.com>
3043 * RichTextBox.cs: More ISO8859-1 -> unicode
3045 2006-06-07 Mike Kestner <mkestner@novell.com>
3047 * ComboBox.cs : use items to hold highlight/selection so that
3048 collection insertions don't require synchronization.
3050 2006-06-07 Jackson Harper <jackson@ximian.com>
3052 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3053 routine. We now always keep the sized edge at the cursor instead
3054 of computing movement and adjusting rects. There is one buglet
3055 with this method though when the cursor is moved over area that
3056 the window can not expand too (such as the toolbars on the desktop).
3058 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3060 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
3061 here. Fixes crash on startup in AlbumSurfer.
3063 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
3065 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
3068 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3070 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
3071 statement to avoid calling XNextEvent which will block if another thread
3072 took the event that we were expecting. Fixes bug #78605.
3074 2006-06-07 Mike Kestner <mkestner@novell.com>
3076 * ListView.cs : isolated checkbox clicking from the selection logic.
3077 Toggle check state on item doubleclicks. Really fixes #78454 part2.
3079 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3081 * Form.cs: Check that the value passed to Form.DialogResult
3082 is a valid enum value.
3084 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3086 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
3087 Computer'. Clicking it in the network view goes to 'My Computer'.
3088 Added CIFS filesystem type. Display the mount point of filesystems.
3089 Avoid duplicate mount points (happens for me with CIFS);
3091 2006-06-06 Jackson Harper <jackson@ximian.com>
3093 * InternalWindowManager.cs: Draw the maximized windows buttons
3096 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3098 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
3099 all other dialogs. Fixes bug #78585.
3101 2006-06-06 Mike Kestner <mkestner@novell.com>
3103 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
3104 Only invalidate checkbox on checkstate changes to avoid flicker.
3105 * ListBox.cs : avoid unselect/select when clicking selected item.
3106 avoid reselection flicker for already multiselected items.
3109 2006-06-06 Jackson Harper <jackson@ximian.com>
3111 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
3112 the parent form so that the menu is removed if needed.
3114 2006-06-06 Mike Kestner <mkestner@novell.com>
3116 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
3117 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
3119 2006-06-06 Mike Kestner <mkestner@novell.com>
3121 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
3124 2006-06-06 Jackson Harper <jackson@ximian.com>
3126 * Control.cs: Use the property (instead of the field) to get the
3127 default cursor so it is instantiated correctly.
3128 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
3129 resizes so we need to manually repaint the window decorations here.
3130 - Set the titlebar button locations as soon as they are created,
3131 otherwise they are not set correctly on win32.
3133 2006-06-06 Chris Toshok <toshok@ximian.com>
3135 * CurrencyManager.cs (set_Position): call PullData before
3137 (AddNew): after calling IBindingList.AddNew, update our
3138 listposition, and call OnCurrentChanged/OnPositionChanged (without
3140 (OnCurrentChanged): remove the call to PullData from here.
3141 (OnItemChanged): remove the call to PushData from here.
3142 (OnPositionChanged): change the test from == null to != null to
3143 match the other methods.
3144 (ListChangedHandler): the grossest part of the patch. Implement
3145 this such that it passes the unit tests in CurrencyManagerTest and
3146 the output more or less matches that of MS's implementation.
3148 2006-06-06 Mike Kestner <mkestner@novell.com>
3150 * ListView.cs : only update check state on single click.
3151 * ThemeWin32Classic.cs : fix focus drawing for details view without
3152 fullrowselect. Fixes #78454.
3153 * XplatUIX11.cs : fix for double click emission.
3155 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
3157 * PropertyGridView.cs : Applied Atsushi's patch to fix
3158 font dialog bug (#78197).
3160 2006-06-05 Jackson Harper <jackson@ximian.com>
3162 * TreeNode.cs: Compute the next node for expanding/collapsing
3163 correctly. We now factor in nodes without a NextNode
3164 correctly. (Fixes somes cases in nunit-gui).
3165 * InternalWindowManager.cs: Set the bounds when updating the
3166 virtual position of a tool window.
3168 2006-06-05 Chris Toshok <toshok@ximian.com>
3170 * DataGrid.cs: rename cached_currencymgr to list_manager.
3171 (set_CurrentCell): move SetCurrentCell code here, and clean it up
3173 (CurrentRow, CurrentColumn): single accessors so we can make the
3174 cursor movement code a lot easier to understand.
3175 (CurrentRowIndex): implement this in terms of CurrentRow.
3176 (BeginEdit): clean this up a bit.
3177 (CancelEditing): sort out the is_editing/is_changing/is_adding
3179 (EndEdit): minor changes.
3180 (OnKeyDown): add a comment about a (most likely) unnecessary
3182 (OnMouseDown): cancel editing when we click on a row header. And
3183 use the CurrentRow setter, not CurrentCell.
3184 (ProcessDialogKey): directly call ProcessGridKey.
3185 (UpdateSelectionAfterCursorMove): factor out this common block of
3186 code (it's used everywhere that we move the cursor by updating row
3188 (ProcessGridKey): pretty substantial overhaul. Use the
3189 CurrentRow/CurrentColumn properties to make the code a lot more
3190 readable. Only use the CurrentCell property when we have to
3191 modify both row and column at once. Tab behavior is still broken,
3192 and Delete is untested.
3193 (Select): if we have no selected rows, set selection_start to
3195 (EditCurrentCell): rename EditCell this. It was only ever invoked
3196 with CurrentCell as the arg, so drop the arg and rename it.
3198 * DataGridColumnStyle.cs: clean up the constructors a little, and
3199 drop CommonConstructor().
3201 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
3202 actually get notified when the user hits it.
3203 (ProcessKeyMessage): *substantially* simplify this method.
3204 There's no reason (that I can see) for the textbox to be making
3205 calls into the datagrid at all. Remove all of them but the ones
3206 for Enter handling. those will take some more work.
3208 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
3209 calling HideEditBox.
3210 (HideEditBox): if we have an active textbox, render it invisible
3211 without causing a re-layout of the datagrid.
3213 2006-06-05 Mike Kestner <mkestner@novell.com>
3215 * ListView.cs : fix NRE crasher when focuseditem is cleared by
3216 collection changes by resetting it to Items[0]. Fixes #78587.
3218 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3220 * MessageBox.cs: if the height of the text is larger than the icon_size,
3221 use that. Fixes bug #78575.
3223 2006-06-05 Jackson Harper <jackson@ximian.com>
3225 * TreeView.cs: Fix line drawing when scrolling. To do this each
3226 node is basically responsible for drawing its entire horizontal
3227 area. When drawing a node it draws its parent node lines if
3229 - Adjust the clip area to the viewport rectangle
3230 - Fix Left/Right key handling to match MS. (It expand/collapses
3231 and moves to parents/first child but does not move selection to
3233 - Fix SetTop to work with new bound calculation code
3234 - When scrollbars are no longer needed we need to reset scrolling
3235 vars and recalculate the visible order so the redraw is correct
3236 * TreeNode.cs: We can't expand/collapse nodes with no children.
3238 2006-06-03 John Luke <john.luke@gmail.com>
3240 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
3241 so the colors work without dev packages
3243 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
3246 - Select: Implemented to just use activate. Seems to match MS
3247 behaviour closest. Documented to only do actual control walking
3248 based on it's parameters if in a container control so I moved
3250 - Removed selection check logic from our internal Select() method
3251 * ContainerControl.cs:
3252 - Select: Moved selection logic from Control here, since MS documents
3253 that containers obey the bool arguments. No longer calling base
3255 2006-06-02 Jackson Harper <jackson@ximian.com>
3257 * TreeView.cs: If the selected node isn't changed when we get
3258 focus update the previously selected node so that we see the
3261 2006-06-02 Mike Kestner <mkestner@novell.com>
3263 * ComboBox.cs: restructure grab and general mouse event handling.
3264 Make the composite control raise mouse events like it was a single
3265 control for leaves/enters/motion/up/down events. fix dropdown list
3266 coordinate mangling and refactor it into the scrollbar subclass to
3267 reduce code duplication. Fixes #78282 #78361 and #78457.
3269 2006-06-02 Mike Kestner <mkestner@novell.com>
3271 * ScrollBar.cs: remove Capture setting/clearing, as it happens
3272 automatically in the Control.WndProc.
3274 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3276 * FileDialog.cs: fix crash when running SharpChess, which sets the
3277 FilterIndex to 2 with only one Filter.
3279 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3281 * ToolBar.cs: add SizeSpecified property.
3282 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3283 try to figure out our real size, otherwise fallback to what the
3286 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3288 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3289 * Control.cs (WndProc): MS always calls the DefWndProc to pass
3292 2006-06-01 Mike Kestner <mkestner@novell.com>
3294 * ListView.cs: revamp the focus management in ListView. It still
3295 causes churn of LostFocus/GotFocus emissions on clicks, but it's
3296 better than not handling focus at all. Will revisit when pdb feels
3297 the general focus handling is solid. Fixes #78526.
3299 2006-06-01 Jackson Harper <jackson@ximian.com>
3301 * TreeView.cs: Set the default border style in the constructor.
3302 - Move painting to use OnPaintInternal instead of capturing
3303 WM_PAINT, this is the correct way of doing things
3304 - UpdateBelow shouldn't invalidate the scrollbar area
3305 - Cap the top on update below in case the node was above the top
3306 of the viewport rectangle.
3307 - ExpandBelow and Collapse below need to obey Begin/End Update.
3308 * TreeNode.cs: Make is_expanded internal so the treenode
3309 collection can change it without firing the whole event chain.
3310 * TreeNodeCollection.cs: When clearing all the child nodes make
3311 sure to recalc the visible order.
3312 - Improve algo for remove the top node
3314 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3316 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
3317 SendMessage directly calling window procedures, which in turn might
3320 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3322 * Control.cs: Don't handle WM_SETFOCUS if the same window already
3323 has focus (works around X11 sending a FocusIn after our SetFocus)
3324 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
3326 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
3328 * Mime.cs: Fix for the NET_2_0 build.
3329 NameValueCollection needs StringComparer now.
3331 2006-05-31 Chris Toshok <toshok@ximian.com>
3333 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
3334 return (via an out parameter) the starting X of the column.
3335 (UpdateVisibleColumn): track change to FromPixelToColumn.
3336 (HitTest): add a ColumnResize case here.
3337 (DrawResizeLine): new function, probably poorly named.
3339 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
3340 only need to keep one reference.
3341 (set_ListManager): same.
3342 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
3343 Also, add support for HitTestType.ColumnResize.
3344 (OnMouseMove): add column resize behavior here, and change the
3345 cursor to the correct one as we move around the datagrid.
3346 (OnMouseUp): terminate the column resize if we're resizing.
3347 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
3348 for the current cell.
3349 (ConnectListManagerEvents): use cached_currencymgr.
3350 (DisconnectListManagerEvents): fill this in, using
3352 (SetCurrentCell): remove cached_currencymgr_events handling.
3353 (SetDataMember): only call DisconnectListManagerEvents if
3354 cached_currencymgr is != null.
3355 (SetDataSource): same.
3356 (OnListManagerCurrentChanged): cached_currencymgr_events ->
3359 2006-05-31 Jackson Harper <jackson@ximian.com>
3361 * BindingManagerBase.cs: Remove somedebug code that creeped into
3363 * TreeNode.cs: We get the indent level dynamically right now, so
3364 don't track it as a member.
3365 * TreeNodeCollection.cs: Make sure all nodes added to the list
3366 have parents, treeviews/topnodes setup properly.
3367 - Don't attempt to track indent level.
3369 2006-05-30 Jackson Harper <jackson@ximian.com>
3371 * BindingContext.cs: Create the currency manager tables here.
3372 This allows us to more easily create null tables (when bad data
3373 members are used), and more easily create related currency
3375 * CurrencyManager.cs: All the table creation stuff is done by the
3376 binding context now.
3377 - Current should throw an exception if listposition is -1.
3378 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
3381 2006-05-30 Mike Kestner <mkestner@novell.com>
3383 * ListView.cs: allow reexpansion of zero-width column headers.
3386 2006-05-28 Chris Toshok <toshok@ximian.com>
3388 * CurrencyManager.cs (get_Current): after the late binding
3389 listposition = -1 fix, we need to guard against it here and return
3390 null, otherwise we raise an exception (which is swallowed
3391 elsewhere, and breaks datagrid databinding.)
3393 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3395 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
3396 than WM_SYSKEY, don't throw if get something unexpected (#78507)
3398 2006-05-26 Jackson Harper <jackson@ximian.com>
3401 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
3402 values, it's faster and it's all we care about (we don't care if
3403 the names aren't equal).
3404 * KeyboardLayouts.cs: Eliminate some dead code.
3406 * X11Keyboard.cs: Lazy init keyboard detection.
3407 - Cleanup access modifiers a little.
3409 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3411 * XplatUIX11.cs: Once again, attempting to get layout just right.
3413 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
3415 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
3416 the sizes of each link section, that will result in sizes that
3417 match DrawString's layout (Fixes #78391)
3419 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
3421 * FileDialog.cs: If AddExtension property is true autocomplete the
3422 extensions in SaveFileDialog correctly. Fixes bug #78453.
3423 Set MyNetwork and MyComputer to "C:\" for windows. This should
3424 fix part 8 of bug #78446 for now.
3426 2006-05-26 Chris Toshok <toshok@ximian.com>
3428 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
3429 invalidate the current row header if we need to, but presumably
3430 we'll invalidate the row corrsponding to the bounds or
3432 (GridHScrolled): switch back to this method, as it's part of the
3434 (GridVScrolled): same.
3435 (OnMouseWheel): hack up something that more or less works. Call
3436 GridHScrolled/GridVScrolled directly, instead of duplicating much
3438 (EnsureCellVisibility): reinstate a bunch of this code, since we
3439 can't just set the scrollbar Value and expect to do all the work
3440 in the ValueChanged handler. Also, Call Update() after scrolling
3441 in one direction so the other XplatX11.ScrollWindow call has the
3442 proper stuff in the proper places.
3443 (EditCell): set is_editing to true before calling .Edit.
3445 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
3446 don't bother comparing first.
3447 (OnKeyPress): call grid.ColumnStartedEditing before calling
3448 base.OnKeyPress. this will set is_changing and invalidate the row
3449 header if necessary.
3450 (ProcessKeyMessage): for WM_CHAR messages, call
3451 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
3454 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
3455 it's done in the DataGrid.
3456 (NextState): call grid.ColumnStartedEditing, which takes care of
3457 invalidating the row header (and setting is_changing).
3459 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
3460 here. it's done in the DataGrid.
3462 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3464 * Control.cs: allow changing the cursor when the mouse position is
3465 out of bounds but Capture is set.
3466 * LinkLabel.cs: handle the case when the mouse button is pressed on the
3467 linklabel but released somewhere else.
3469 2006-05-25 Jackson Harper <jackson@ximian.com>
3471 * TreeView.cs: When we get focus if there is no selected node make
3473 - Remove some uneeded setup code from Draw.
3474 * TreeNodeCollection.cs: If the tree doesn't have a top node when
3475 a new node is inserted make the new node the top.
3477 * Timer.cs: Use Utc time so that no local time zone stuff needs to
3478 be used (should be faster).
3480 2006-05-25 Chris Toshok <toshok@ximian.com>
3482 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
3483 problem with the last commit.
3485 2006-05-25 Chris Toshok <toshok@ximian.com>
3487 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
3488 need the invalidate call here, while scrolling right-to-left via
3489 the left arrow key (i.e. moving the editing cell while scrolling).
3491 * DataGrid.cs (.ctor): remove the initialization of
3492 ctrl_pressed/shift_pressed. We no longer track them using key
3493 up/down handlers, but by using Control.ModifierKeys. Also, switch
3494 to using ValueChanged handlers on the scrollbars instead of
3495 Scrolled event handlers. This simplifies a bunch of the scrolling
3497 (GridHValueChanged): rename from GridHScrolled, and change it to
3498 work with the new event args.
3499 (GridVValueChanged): same.
3500 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
3501 (OnMouseWheel): actually scroll the datagrid. Don't change the
3503 (ProcessGridKey): correct all the keyboard navigation stuff I
3504 could find. Ctrl up/down/left/right/home/end work now.
3505 (EnsureCellVisibility): correct method name spelling. Also,
3506 simplify this a touch by not explicitly calling the
3507 ScrollToRow/ScrollToColumnInPixels methods. We just set the
3509 (OnKeyUpDG): no need for this method now.
3511 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3513 * LinkLabel.cs: display the OverrideCursor when hovering the label.
3516 2006-05-25 Chris Toshok <toshok@ximian.com>
3518 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
3521 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
3523 * Application.cs: Moved setting of is_modal and closing to before
3524 we create the control, to allow the event handlers called as a
3525 result of creation affect closing. Also removed Gonzalo's previous
3526 change to setting DialogResult, the behaviour has been moved to
3529 - ShowDialog(): Removed explicit creation of the form, let RunLoop
3531 - ShowDialog(): If no dialog result is set, we need to return Cancel
3532 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3533 the close is cancelled
3535 2006-05-25 Jackson Harper <jackson@ximian.com>
3537 * StatusBar.cs: We only need to update the sizes of the other
3538 panels when we have auto size contents. Also we are only updating
3539 the contents of the panel, not the borders, so compensate for the
3540 border width (TODO: get this width from the theme somehow).
3541 * TreeView.cs: Scrollable is true by default
3542 - Use invalidate instead of refresh where needed
3543 - Factor the scrollable value into scrollbar updating
3544 - Update the scrollbars if the Scrollable property is altered
3545 - Update the selected node if its ImageIndex is changed
3546 - Handle null nodes in UpdateNode (mainly so we don't have to
3547 check if selected is null when updating it
3548 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3549 are factored into the visible count
3550 - Use VisibleCount for clarity in the code
3551 - When the font is changed we need to recurse through all the
3552 nodes and invalidate their sizes
3554 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3556 * Application.cs: set the DialogResult to fixed when the main form is
3557 hidden or destroyed while being modal.
3559 2006-05-25 Miguel de Icaza <miguel@novell.com>
3561 * Theme.cs: Use Tangoified messagebox icons.
3563 (GetSizedResourceImage): Also cope with width = 0 and do not
3564 trigger a warning in that case (0 means "give me your icon from
3565 the resouce, no special size needed).
3567 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
3569 * Application.cs: Leave runloop if the the main modal form is
3570 hidden (fixes #78484)
3572 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
3574 * BindingContext.cs : reject null datasource in Contains() and
3576 * CurrencyManager.cs : check data_member validity when data_source
3577 is dataset. When it is late binding, the initial position is -1.
3579 2006-05-24 Jackson Harper <jackson@ximian.com>
3581 * TreeNodeCollection.cs: Dont't recalculate the visible order on
3582 inserted nodes that aren't visible. This changes the
3583 max_visible_order which confuses scrollbar settings.
3584 - Use the enumerator to get the prev node instead of duplicating
3586 * TreeView.cs: Use new method for setting scrollbar values
3587 - Don't set the bounds every time the scrollbar is updated
3588 - When updating below the root node use an invalidate instead of a
3589 refresh to prevent the child controls (scrollbars) from being
3590 refreshed. (UpdateBelow still needs to be reworked anyways).
3591 - Reenable SetBottom now that visible orders are set correctly,
3592 added some debug code incase we ever get bad values there again.
3593 - Set the scrollbar max to 2 less then the max value, this
3594 compensates for the max value being one above the node count, and
3595 for scrollbars adding one extra "notch".
3596 - When drawing image nodes if there is an imagelist we draw the
3597 first image in the list if the supplied image index is out of the
3598 image list's bounds.
3600 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3602 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
3603 we receive a size change from the WM (Fixes #78503)
3605 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3607 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
3608 rectangle (Fixes #78501)
3610 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3613 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
3615 - Fixed MouseMove to no longer switch pressed state unless the left
3616 mouse button is pressed. Atsushi provided the original patch (#78485)
3618 2006-05-24 Jackson Harper <jackson@ximian.com>
3620 * ScrollBar.cs: New internal methods that allow us to change a
3621 couple values on the scrollbar (the most common case is maximum
3622 and large change) without getting multiple invalidates.
3624 2006-05-24 Chris Toshok <toshok@ximian.com>
3626 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3627 (Edit): save off the original state in oldState, and set
3628 grid.is_editing to true.
3629 (OnKeyDown): abort editing if escape is pressed. also, call
3630 NextState if space is pressed.
3631 (OnMouseDown): call NextState.
3632 (NextState): factor out shared code from OnKeyDown and OnMouseDown
3633 here. Also, only invalidate the row header once (on the initial
3634 is_changing switch) to save on redraws.
3636 2006-05-24 Chris Toshok <toshok@ximian.com>
3638 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3639 if the value in the cell is different than it was before. This
3640 keeps us from triggering a layout when we move around a datarid
3641 with a highlighted cell.
3642 (Edit): suspend layout when creating/positining the text box, and
3643 resume passing false so we don't ever actually re-layout.
3644 (ReleaseHostedControl): same.
3645 (EnsureTextBox): reformat slightly, and set WordWrap to false.
3647 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3648 control-key sequences should go to the datagrid - remove that
3649 lock. Also, modify the conditions under which we move between
3650 cells when moving the cursor within a cell, and remove the "this"
3651 and "base" from field accesses. We weren't even consistent, given
3652 they all were in the base class.
3654 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
3656 * Binding.cs : (.ctor)
3657 An obvious NRE fix for BindingTest.CtorNullTest().
3659 2006-05-23 Chris Toshok <toshok@ximian.com>
3661 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3662 them between lines. This fixes some quirks editing cells in the
3665 2006-05-23 Jackson Harper <jackson@ximian.com>
3667 * TreeView.cs: Use begin/end update when doing expand/collapse all
3668 so that we don't get flicker on the scrollbar.
3670 2006-05-23 Jackson Harper <jackson@ximian.com>
3672 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
3673 treenode calculations to be independant of the painting code. To
3674 do this nodes track a visible order which is calculated by the
3676 - Call new methods for expanding/collapsing nodes. These methods
3677 use scrollwindow so we don't have to update everything below the
3679 * TreeView.cs: Refactored drawing and scrolling code. We don't
3680 need to update nodes when drawing anymore or calculate scrollbar
3682 - Added new methods for expanding/collapsing nodes. These methods
3683 use ScrollWindow so as to not have to redraw all the nodes below.
3684 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3685 we add/remove nodes or sort.
3686 - Handle removing the selected and the top node properly.
3688 2006-05-23 Chris Toshok <toshok@ximian.com>
3690 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3691 maybe this should actually happen in the datagrid code?
3692 (EndEdit): no need to invalidate anything, given that
3693 ReleaseHostedControl causes the datagrid to relayout, which
3694 invalidates everything anyway.
3696 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3698 (set_SelectionBackColor): call InvalidateSelection instead of
3700 (set_SelectionForeColor): same.
3701 (BeginEdit): Flesh this out a bit.
3702 (CancelEditing): only do any of this if we're editing/adding.
3704 (OnMouseDown): there's no need to cancel editing here, it's done
3706 (SetCurrentCell): only invalidate the current row header if it's a
3707 different row than the new one.
3708 (ShiftSelection): fix this to work like MS does.
3709 (ResetSelection): factor out the invalidation of selected_rows to
3710 InvalidateSelection.
3711 (SetDataSource): cancel any editing that's going on.
3713 * DataGridColumnStyle.cs
3714 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3715 call the non-interface version.
3717 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3718 header rectangle with the clip rectangle so we don't redraw the
3719 entire header for just a small area. Gets rid of the last flicker
3720 when horizontally scrolling.
3721 (DataGridPaintRow): same.
3723 2006-05-23 Mike Kestner <mkestner@novell.com>
3725 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3726 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
3727 poorly placed checkbox on the MS control. Fixes Alex's unfiled
3728 Critical bug report.
3730 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3732 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3733 and this fixes #78493
3735 2006-05-23 Miguel de Icaza <miguel@novell.com>
3737 * Theme.cs (GetSizedResourceImage): Scale images if the proper
3740 * FileDialog.cs: Do not change the background for the side bar as
3741 it wont work nicely with the theme, and also reduces the artifacts
3742 in rendering the icons (which I want to fix too).
3744 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3745 resources, not resgen resources.
3747 (PlatformDefaultHandler): Pull images using the new API.
3749 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3751 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3752 a reference to the hwnd and will not remove it unless there are
3753 no pending exposures (fixes #78341)
3754 * XplatUI.cs: Improved debug
3756 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
3758 * MenuAPI.cs : don't handle OnClick event when it was not the left
3759 button. Fixed bug #78487.
3761 2006-05-23 Mike Kestner <mkestner@novell.com>
3763 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3764 prefer submenus to the top menu for item lookup, to avoid popping down
3767 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
3769 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3770 Graphics.FillRectangle as the visual results are really bad (even
3771 on win). We now draw perfect arrows (and perfect shadows when the
3772 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3773 Pen.DashPattern to draw the dots of each line.
3775 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
3777 * FileDialog.cs: Update the filename combobox when navigating through
3778 the ListView with the cursor keys. Fixes part 7 of bug #78446.
3780 2006-05-22 Mike Kestner <mkestner@novell.com>
3782 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3785 2006-05-22 Mike Kestner <mkestner@novell.com>
3787 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3788 requests. Fix a misspelled parameter and a copy paste exception error
3791 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
3793 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3794 to get the same width/height (5/13) on X11 as the default font has on
3795 win32. This means that our DefaultFont emSize is smaller than the
3796 the MS SWF equivalent (even thought the width/height stays the same)
3798 2006-05-20 Jackson Harper <jackson@ximian.com>
3801 * MdiWindowManager.cs:
3802 * InternalWindowManager.cs: Make sure to use the border width from
3805 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
3807 * PrintDialog.cs: Implements printer details
3809 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
3811 * FileDialog.cs: Added focus handling for PopupButtonPanel.
3812 Fixes part 1 and 2 of bug #78446
3814 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
3816 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3817 instead of sticking to the first ever calculated value
3819 2006-05-19 Mike Kestner <mkestner@novell.com>
3821 * ComboBox.cs: fix mouse motion selection to use MousePosition and
3822 PointToClient, since Capture is set. Fixes #78344.
3824 2006-05-19 Mike Kestner <mkestner@novell.com>
3826 * ListView.cs: match MS behavior in Details view where items are not
3827 drawn if Columns.Count == 0.
3828 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3829 Use a separate pen to draw the check, since changing the width affects
3830 the box as well. Fixes #78454.
3832 2006-05-18 Miguel de Icaza <miguel@novell.com>
3834 * ListView.cs: ArgumentOutOfRangeException, single versions of the
3835 exception should throw the name of the invalid argument.
3837 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3838 there are no files listed.
3840 2006-05-18 Jackson Harper <jackson@ximian.com>
3842 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3845 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3847 * Control.cs: Brought back our old UpdateZOrder method as a private
3848 function and switched our calls from UpdateZOrder to the new one.
3849 This fixes the Paint.Net canvas disappearing bug.
3851 2006-05-18 Jackson Harper <jackson@ximian.com>
3854 * ThemeWin32Classic.cs:
3855 * InternalWindowManager.cs: Move the drawing into the theme,
3856 expose everything the theme should need from the window manager.
3858 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3860 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
3861 from the call to NativeWindow to avoid walking up the parent chain
3862 further than needed (speeds up setting cursors and avoids setting
3863 the wrong cursor if a parent has another cursor defined)
3864 * Cursor.cs: When loading an icon as cursor, MS uses the center of
3865 the icon as hotspot, not what's contained as hotspot in the icon
3866 file. This fixes the perceived drawing offset seen with Paint.Net
3868 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3871 - Store the calculated rectangle in Hwnd object and use it when
3872 setting the client size
3873 - Force Toolwindows to always be type Dock, to ensure they're on top
3875 2006-05-18 Mike Kestner <mkestner@novell.com>
3877 * ComboBox.cs: first pass at ComboBox rework. Layout is more
3878 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
3879 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
3880 Substantial refactoring to remove confusing nested classes. Coding
3881 standard and Get+Set->property refactorings. Shift to index based
3882 highlighting in ComboListBox instead of constantly using IndexOf and
3883 Items[]. Add invalidations on resize for DropDownList to fix ugliness
3884 in FileDialog growth. Draw borders manually since Simple mode needs
3885 to look like two independent controls. Make listbox border
3886 conditional to DropDownStyle. Improved OwnerDraw support.
3888 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
3890 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
3891 Don't set the disposed graphics to null, so we can throw the "right"
3892 exception if the graphics is reused later (added a flag to avoid
3893 double disposing). Some behaviours are different under 2.0 and are
3894 filled under bug #78448.
3896 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3898 * Control.cs: When double-buffering is enabled, we need to reset
3899 our graphics context between paint calls. Otherwise, any
3900 transformations and other alterations on the context will
3901 become cumulative (#77734)
3903 2006-05-18 Mike Kestner <mkestner@novell.com>
3905 * ListView.cs: do focused item selection like MS on clicks.
3906 Rework focus handling for ItemControl so LostFocus invalidates as
3908 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3909 the ListView ItemControl has focus.
3911 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
3913 * XplatUIX11.cs: If client_window ends up being width or height zero
3914 due to border settings, move it off window inside whole_window (#78433)
3916 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3918 * Mime.cs: Shrink the mime file cache correctly.
3920 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3922 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3924 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3926 * XplatUIX11.cs (AddExpose): More sanity checks
3928 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3931 - AddExpose: Don't add expose ranges outside the size of our
3933 - Cast opacity values to Int32 to avoid crashes with certain
3935 - Added disabled code paths that protect against illegal cross-
3936 thread painting (Developers.exe)
3938 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3940 * ProgressBar.cs: Invalidate the control when it's resized
3941 since block size is based on control size. (#78388)
3943 2006-05-16 Miguel de Icaza <miguel@novell.com>
3945 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3946 of setting the incoming argument to the "reset" value, we set the
3947 this.datamember to string.empty (before we were invalidating the
3952 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3954 * Form.cs: Only apply transparency settings after the form
3955 is created. (Fixes #77800)
3957 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3959 * ApplicationContext.cs: Grab the HandleDestroyed event so
3960 we know when to fire OnMainFormClosed
3962 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3964 * Application.cs: Introduced sub-class to allow tracking of
3965 threads and centralized triggering of the event mess for
3966 ThreadExit, AppExit, etc.. (#76156)
3968 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
3971 - Do not return a null icon index value for a mime subclass.
3972 Instead try the main mime type class too.
3973 - Seems that some newer distributions don't have a link to some
3974 gnome default icons anymore. So check the default gnome dir too.
3977 2006-05-16 Jackson Harper <jackson@ximian.com>
3979 * MdiClient.cs: Don't paint the parent background image if we have
3980 our own background image.
3982 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3985 - PerformLayout: Do not shrink space filled by DockStyle.Fill
3986 controls, all filled controls are supposed to overlap (#78080)
3987 - UpdateZOrder is supposed to update the control's z-order in the
3988 parent's z-order chain. Fixed to behave like that
3989 - BringToFront: Removed obsolete code
3990 - SendToBack: Simplyfied
3991 - SetChildIndex: Trigger layout calculations when Z-order changes
3992 since layout is done by z-order
3994 2006-05-16 Chris Toshok <toshok@ximian.com>
3996 [ fixes bug #78410 ]
3997 * DataGrid.cs (set_AlternatingBackColor): use
3998 grid_drawing.InvalidateCells instead of Refresh().
3999 (set_BackColor): call grid_drawing.InvalidateCells.
4000 (set_BackgroundColor): use Invalidate instead of Refresh.
4002 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4003 invalidate the cell area.
4005 2006-05-15 Chris Toshok <toshok@ximian.com>
4007 [ fixes bug #78011 ]
4008 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4009 on to DataGridPaintRow.
4010 (DataGridPaintRow): take a clip argument, and only draw the cells
4011 which intersect it. same with the not_usedarea.
4013 * Theme.cs (DataGridPaintRow) add @clip parameter.
4015 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4016 XplatUI.ScrollWindow.
4017 (ScrollToRow): same.
4019 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4020 with last column which was causing a gray swath to appear with the
4021 XplatUI.ScrollWindow code.
4023 2006-05-15 Chris Toshok <toshok@ximian.com>
4025 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4026 use XplatUI.ScrollWindow.
4027 (VerticalScrollEvent): use XplatUI.ScrollWindow.
4029 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4031 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4033 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4035 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4036 file since there are no equivalent X11 cursors
4038 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
4040 * MonthCalendar.cs : DateTimePicker should reflect selected date
4041 on mouse*up*, not mouse*down*. Fixed originally reported part of
4044 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
4046 * TabControl.cs : When argument index is equal or more than tab
4047 count, just ignore. Fixed bug #78395.
4049 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4051 * Control.cs: Dispose all child controls when control is diposed (#78394)
4053 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4055 * ColorDialog.cs: Finally it is possible to select the color with
4058 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4060 * PrintDialog.cs: Fix typo
4062 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4064 * PrintDialog.cs: PrintDialog is not resizable
4065 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
4066 color. Made some ToolBar drawing methods protected virtual.
4068 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
4070 * PrintDialog.cs: Implementation of the PrintDialog
4072 2006-05-12 Chris Toshok <toshok@ximian.com>
4074 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
4075 thumb, instead use MoveThumb. This has the side effect of making
4076 most of the other thumb moving machinery use MoveThumb as well.
4077 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
4078 need to actually invalidate the rectangle where the new thumb will
4080 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
4081 We force an Update() after, so it's not as fast as it could be,
4082 but at least there's zero flicker and no droppings.
4083 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
4084 (UpdateThumbPos): add another argument (dirty), which says whether
4085 or not to calculate/add dirty regions which we later invalidate.
4086 For cases where we know we're going to use MoveThumb, we pass
4087 false for this. Otherwise, pass true.
4089 2006-05-12 Jackson Harper <jackson@ximian.com>
4091 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
4094 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
4096 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
4097 and GetClipRegion methods and UserClipWontExposeParent property.
4098 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
4099 overriding UserClipWontExposeParent property, setting to false, since
4100 Win32 handles the required expose messages to draw our clipped parent
4102 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
4103 PaintEventStart to set the user clip region if set.
4105 - Now internally tracking the Region for the control since we need to
4106 store it if the handle is not yet created and only set it when it
4107 becomes created. Before setting the region forced handle creation
4108 - Added code to draw the parents underneath a user-clipped region
4109 * Hwnd.cs: Added UserClip property
4111 2006-05-12 Chris Toshok <toshok@ximian.com>
4113 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
4114 (set_Maximum): same.
4115 (set_Minimum): same.
4116 (set_SmallChange): same.
4117 (OnMouseUpSB): remove the call to refresh when releasing the
4118 thumb. We shouldn't need it.
4120 2006-05-12 Miguel de Icaza <miguel@novell.com>
4122 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
4123 AutoSize set to None, we do not need to relayout everything, we
4124 just need to invalidate the current region.
4126 (Draw): Do not draw the entire ClientArea, just redraw the
4127 clip area being passed.
4129 * MdiClient.cs: Make MdiClient constructor with the Form argument
4132 2006-05-12 Jackson Harper <jackson@ximian.com>
4134 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
4135 parents background image, but strangely not their own.
4136 - (DrawStatusBarPanel): Take into account horizontal alignment
4137 when drawing the strings and icons.
4139 2006-05-12 Mike Kestner <mkestner@novell.com>
4141 * ListBox.cs: avoid invalidations for focus when the collection is
4144 2006-05-12 Chris Toshok <toshok@ximian.com>
4146 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
4147 invalidate the entire thumb area. Call InvalidateDirty which
4148 limits the redraw to the thumb itself and surrounding pixels.
4150 * XplatUIX11.cs (ScrollWindow): optimize copying.
4152 2006-05-12 Chris Toshok <toshok@ximian.com>
4154 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
4155 Figure out the positioning/layout in a single pass instead of
4156 multiple recursive invocations. Speeds up the initial display of
4157 the data grid. Also, make many things private that were
4158 originally public but unused outside this class.
4160 2006-05-11 Jackson Harper <jackson@ximian.com>
4162 * MdiClient.cs: Improved layout code.
4164 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
4166 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
4169 2006-05-11 Chris Toshok <toshok@ximian.com>
4171 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
4172 union of that will always be {0,0,width,height}.
4174 2006-05-11 Jackson Harper <jackson@ximian.com>
4176 * Form.cs: Match MS's DefaultSize for forms (they must have
4177 changed the size in sp2).
4179 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
4181 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
4183 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
4185 * TextControl.cs : Fixed bug #78109. This incorrect position
4186 comparison caused crash on automatic line split.
4187 * TextBoxBase.cs : reduce duplicate code.
4189 2006-05-10 Jackson Harper <jackson@ximian.com>
4191 * MdiClient.cs: Active form is only sent to the back when using
4192 the Next form functionality, when a form is clicked the current
4193 active shouldn't be sent to the back.
4194 - Layout the mdi windows when the container is first made visible.
4195 * Form.cs: Give the MdiClient a ref to the containing form when we
4198 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
4200 * LinkLabel.cs : link_font could be uninitialized, so populate one
4201 before actual use. Fixed bug #78340.
4203 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
4205 * XplatUIX11.cs : clipboard format native value is IntPtr.
4208 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4211 - Instead of showing context menus directly we send WM_CONTEXTMENU,
4212 which is passed up the parent chain by DefWndProc
4213 - We now handle WM_CONTEXTMENU to display any menu, or pass it
4214 to DefWndProc (#77956)
4215 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
4217 2006-05-10 Jackson Harper <jackson@ximian.com>
4219 * MdiClient.cs: We need to remove the controls from the mdi
4220 collection, when we close the window.
4221 * MdiWindowManager.cs: Special handling of closing mdi windows.
4222 * InternalWindowManager.cs: Make the close method virtual so the
4223 mdi window manager can handle it specially.
4225 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
4228 - Recalculate grid when the data source has changed
4229 - Matches styles provided by user from all data sources types
4230 * DataGridTableStyle.cs: For columns that provided by the user set the
4231 with the preferred value is there was unassigned.
4232 * CurrencyManager.cs: throw OnItemChanged event
4234 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4236 * PictureBox.cs: Don't animate until handle is created. Start animation
4237 when handle is created.
4239 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4241 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4243 * XEventQueue.cs: We don't need to provide the extra info
4245 2006-05-10 Jackson Harper <jackson@ximian.com>
4247 * MdiClient.cs: If the mdi clients parent form has a background
4248 image set, we draw that background image for the mdi area's
4251 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4253 * TextBoxBase.cs: Set IBeam cursor (#78347)
4255 2006-05-10 Mike Kestner <mkestner@novell.com>
4257 * ToolBar.cs: fix some text padding issues with ButtonSize
4258 calculation. Update the default size to match MS documentation.
4259 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4260 button size. Fixes #78296.
4262 2006-05-10 Mike Kestner <mkestner@novell.com>
4264 * ListBox.cs: use is_visible for scrollbar positioning in case the
4265 control isn't on screen yet. Fix off by one with Right vs Width
4266 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4268 2006-05-10 Jackson Harper <jackson@ximian.com>
4270 * X11Dnd.cs: Drop to a control with another control on top of it.
4271 * ToolBar.cs: Work on a copy of the buttons list, so that it can
4272 be modified in click handlers. TODO: Look for similar problems in
4275 2006-05-09 Jackson Harper <jackson@ximian.com>
4277 * Form.cs: Window managers need the old window state when setting
4279 * InternalWindowManager.cs: Allow the base mdi window manager to
4280 handle more of the MDI only stuff (like maximize buttons).
4281 * MdiWindowManager.cs: Fix some snafus in changing the window
4282 state. Add all the menu functionality, for both popup and
4284 * MdiClient.cs: When a new form is selected the currently
4285 activated form is sent to the back, this matches MS.
4286 - Implement a new method to activate the next mdi child window.
4288 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4291 - Added new InternalCapture method to allow controls to prevent
4292 the capture behaviour on the click handlers
4293 - Switched to use InternalCapture
4295 - Using InternalCapture to prevent mouse captures from being released
4296 on mouse button release (Fixes #78100)
4297 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4298 returns Form borders if a caption is present. (Fixes #78310)
4300 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4302 * TreeNode.cs: Changed serialization .ctor to not require every field
4303 to be present. (#78265)
4304 * OwnerDrawPropertyBag.cs: Added serialization .ctor
4306 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
4308 * MimeIcon.cs: for is faster than foreach for strings.
4310 2006-05-05 Mike Kestner <mkestner@novell.com>
4312 * CheckedListBox.cs: update check handling code to not use selected.
4313 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4314 behavior for visual feedback, motion response, shift/ctrl handling,
4315 and properly deal with all 4 selection modes. Updates to bounds
4316 handling logic. Add scroll wheel support. [Fixes #77842]
4318 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
4321 - Moved adding of Implicit controls into .ctor. That way, subsequent
4322 creation of the controls will not cause them to think they are
4323 toplevel windows (fixes #78200 header problem)
4324 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
4325 - Switched visibility setting of header control to use internal field
4326 to avoid triggering handle creation
4327 - Now checking if handle is created before causing a refresh when items
4328 are added (This makes us now match handle creation time with MS)
4329 * Splitter.cs: Removed loading of private splitter cursor, switched to
4330 Cursors version now that that is loading the right ones
4331 * Cursors.cs: Load proper splitter cursors from resources
4332 * Cursor.cs: Added second method of loading resource cursors for the
4333 VS.Net users amongst us
4335 2006-05-05 Mike Kestner <mkestner@novell.com>
4337 * ListView.cs: give header_control a minimum size based on the
4340 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
4342 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
4343 window seems to do that with metacity, so set that type. (#78120)
4345 2006-05-05 Mike Kestner <mkestner@novell.com>
4347 * ListViewItem.cs: fix Details mode checkbox layout bug.
4348 * ThemeWin32Classic.cs: draw a ListView column header for unused space
4349 at the end of the header, if it exists. [Fixes for #78200]
4351 2006-05-04 Jackson Harper <jackson@ximian.com>
4353 * MdiClient.cs: Add a helper property to get the container form.
4354 * MdiWindowManager.cs: We have to make sure to use the menu origin
4355 when drawing the icons and buttons, this fixes maximized window
4356 icons/buttons on win32.
4357 * InternalWindowManager.cs: Reset the restore captions when a
4358 window goes from Maximized to Minimized and vice versa. Move the
4359 DrawMaximizedButtons into the MdiWindowManager source, tool
4360 windows can't be maximized. NOTE: This could use a little
4361 refactoring if time ever permits.
4363 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
4365 * TextBox.cs: Add MWFCategoryAttributes
4366 * TextBoxBase.cs: Add MWFCategoryAttributes
4367 * Form.cs: Add MWFCategoryAttributes
4369 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
4371 * Control.cs: Add MWFCategoryAttributes
4372 * ScrollableControl.cs: Add MWFCategoryAttributes
4374 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
4376 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
4377 Divider is true. Fix a little glitch in PropertyToolBar
4380 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
4383 - Dispose: Call base.Dispose, this causes the disposed event
4384 to be fired (and probably other, more important stuff)
4385 - SetVisibleCore: Set is_visible to true after creating the
4386 window so that the window still gets created invisible (if
4387 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
4388 to generate a WM_ACTIVE message
4389 * Form.cs: Call Dispose when we want to destroy the window, instead of
4390 just destroying the handle (Dispose will do that for us)
4392 - RootWindow also needs a queue, so we can properly process the
4393 property change events from RootWindow (like Activate)
4394 - Generatic synthetic WM_ACTIVE message when the active window is
4397 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4399 * LinkLabel.cs: Trigger a recalc of our label dimensions when
4402 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4404 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
4405 for determining width and height (image might not be assigned if
4406 we're drawing an imagelist)
4408 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
4410 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
4411 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
4413 * Theme.cs: No longer returns hardcoded menu height, instead calls
4415 * Form.cs (OnLoad): Scaling happens before triggering Load events
4418 2006-05-01 Mike Kestner <mkestner@novell.com>
4420 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
4422 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
4424 * TextBoxBase.cs: Removed Fixme
4425 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
4427 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
4430 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
4431 the rectangle relative to the parent, considering borders. We
4432 don't really want that.
4433 - ScrollWindow: Fixed warning to be more understandable
4434 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
4435 scrollbars and scroll only the visible area
4436 * RichTextBox.cs: Removed debug output
4438 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4440 * NumericUpDown.cs (Text): Just use base
4441 * UpDownBase.cs: Ensure txtView is created before using it
4443 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4445 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
4446 casting to IntPtr to avoid 64bit overflow errors
4448 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4451 - AllowDrop: Don't force handle creation.
4452 - CreateHandle: Added call to tell driver if we're allowed to drop
4454 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4456 * FileDialog.cs: Remember the last directory not only for the
4457 current instance but also for new FileDialog instances.
4459 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4461 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
4462 broke sending async messages
4464 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
4467 - ScrollWindow: Fixed method. We finally generate expose events again
4468 for scrolled areas. This was causing 'garbage' when scrolling
4469 textbox and other controls that used ScrollWindow
4470 - Switched from using the regular queue for paint events to the MS
4471 model of 'generating' paint events when the queue is empty.
4472 We use the new XQueueEvent.Paint subclass to store which windows
4474 - AddExpose now takes the x/y/width/height of the exposed area
4475 and inserts the window into the paint queue if not already there
4476 - InvalidateWholeWindow: Switched to use new AddExpose method
4477 - UpdateMessageQueue: Added which queue to monitor for paint events
4478 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
4479 the unlikely case nothing above handles it. We reset the expose
4480 pending states to get them off the queue.
4481 - GetMessage: Now pulls a paint event if no other events are in the
4483 - Invalidate: Switched to new AddExpose method
4484 - PeekMessage: Updated to understand pending paint events
4485 - UpdateWindow: Fixed logic bug. We were only updating if the window
4486 didn't need updating. Also switched to sending WM_PAINT directly,
4488 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
4489 and random access Remove(). The random access is needed to handle
4490 UpdateWindow() where a WM_PAINT is sent directly without accessing
4492 * ScrollBar.cs: Added Update() calls to cause immediate updates to
4493 allow for better feedback when scrolling. Scrollbars are small and
4494 the immediate update should make it 'feel' more responsive without
4495 slowing things down. ScrollBar still needs it's invaliate logic
4496 updated to not always invalidate the whole bar on certain changes.
4498 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4501 (BackColor): if the control does not support a transparent background,
4502 return the default backcolor when the parent backcolor is transparent.
4504 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
4506 * Application.cs: Updated to new StartLoop/GetMessage API
4507 * RichTextBox.cs: Provide some output on RTF parsing errors
4508 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
4509 new queue_id argument to GetMessage and PeekMessage to allow faster
4510 handling of per-thread queues in drivers.
4511 * Hwnd.cs: Added Queue tracking and property
4512 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
4513 * XEventQueue.cs: Added thread trackingA
4514 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
4516 - Implemented new per-thread queue
4517 - GetMessage: Fixed return/break behaviour on several cases. We were
4518 returning stale messages in some cases, instead of just processing
4521 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
4523 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
4525 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
4527 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4528 fixed off-by-one comparisons between Width/Height and Right/Bottom.
4530 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
4532 * PropertyGridView.cs: Fix drop down width.
4534 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4536 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4537 a mess in DrawToolBar, so I removed one of them.
4539 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4541 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4542 needed (clip). Otherwise we get artifacts.
4544 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4546 * FixedSizeTextBox.cs: Added constructor to allow specifying which
4548 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4549 and switched FixedSizeTextBox to only be fixed vertical (#78116)
4550 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4551 if it matches the scale base font (avoids unneeded scaling)
4553 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4555 * X11DesktopColors.cs: One gtk_init_check should be enough
4557 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4559 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4562 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4565 - Generate OnTextChanged for Backspace even if we're only deleting
4566 the current selection
4567 - When setting the Text property, only select all text if the
4568 control does not have focus when it is being set. Otherwise
4569 just place the cursor at the beginning of the control
4571 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4573 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4574 Added a little helper to draw PropertyGrid ToolBar with a different
4575 border and a different BackColor.
4576 * PropertyGrid.cs: Some background parts didn't get painted with the
4577 correct background color. Added a class that helps us to draw the
4578 correct border for PropertyGridView and a class that helps us to
4579 draw ToolBars with a different backcolor
4580 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4582 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
4584 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4585 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4587 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4589 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4590 into the palette entries. Also, since we're working on a copy
4591 we needed to copy the palette back onto the bitmap.
4592 * Cursor.cs: Same fix as XplatUIWin32.cs.
4594 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4596 * ImageListStreamer.cs: Need to read the var (or we're off)
4598 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4600 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
4601 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4602 TextBoxBase.cs: Unused var fixes
4603 * AxHost.cs: Small 2.0 fix
4604 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
4605 as it seems that is what at least Metacity expects. This will make
4606 icons show up on 64bit platforms. We still have some 64bit size
4607 issues, though, since the startup app window size still won't match.
4609 2006-04-25 Mike Kestner <mkestner@novell.com>
4611 * *.cs: cleanup newly reported exception var unused warnings.
4613 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4615 * ThemeWin32Classic.cs: Button image alignment now matches exactly
4618 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4620 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4621 image. The image position is always the same, no matter if the
4622 button is pressed or not.
4624 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4626 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4627 selection and set the correct filename for SaveFileDialog.
4628 Patch by Emery Conrad.
4630 2006-04-24 Mike Kestner <mkestner@novell.com>
4632 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4633 check for item.X outside the ClientRect instead of item.Y. Fixes
4636 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4638 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4639 trust that value blindly and do some sanity check. Fixes bug #77814.
4641 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4643 * ImageListStreamer.cs: save the mask as a 1bpp image.
4645 2006-04-21 Mike Kestner <mkestner@novell.com>
4647 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4648 pass Checked and Indeterminate to the Theme Engine. Improve
4649 encapsulation with ListBox.
4650 * ListBox.cs: Keep a StringFormat instead of calculating it every item
4651 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4652 nested types. Move all CheckState functionality to CheckedListBox.
4653 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
4654 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
4655 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4656 single base list. Fix scrollbar sizing and placement to mirror MS.
4657 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4659 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4660 for CheckedListBox by using new DrawItemState info. Center the
4661 checkboxes on the items. Use new StringFormat property.
4663 2006-04-18 Jackson Harper <jackson@ximian.com>
4665 * Form.cs: MdiChildren don't do default locations the same way as
4666 regular forms. This prevents a crash when trying to position the
4669 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
4671 * PropertyGridTextBox.cs: Formatting, copyright
4672 * PropertiesTab.cs: Formatting
4673 * PropertyGrid.cs: Formatting
4674 * PropertyGridView.cs: Formatting, fix drop down, enabled double
4675 click toggling of values
4677 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
4679 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4680 * Control.cs (.ctor): verify_thread_handle is static, don't reset
4681 every time a control is created
4682 * Application.cs: Removed obsolete EnableRTLMirroring method
4684 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
4686 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4687 SelectedIndex to -1. Fixes bug #78121.
4689 2006-04-17 Jackson Harper <jackson@ximian.com>
4691 * Binding.cs: Handle null values for Current and BindingContext.
4692 This occurs when binding is a little delayed.
4693 * CurrencyManager.cs: return null for Current when there are no
4695 - Hookup to the listchanged event on the DataView and update
4696 bindings when the list is changed. This fixes late binding of
4699 2006-04-17 Jackson Harper <jackson@ximian.com>
4702 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4705 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
4707 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4709 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4710 with the correct ButtonState
4712 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
4714 * XplatUIX11.cs: Improved distinguishing between window types to
4715 tell the WM a type closer to what the app wants (Fixes #78107)
4717 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4719 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4722 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4724 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4725 drawing code to reflect the size grip changes
4727 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4729 * ImageListStreamer.cs: fix handling of the mask that follows the main
4730 bitmap when deserializing and serialize it properly. The generated mask
4731 should better be a 1bpp image, but I'll do that later.
4733 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4735 * FileDialog.cs: Show something in the DirComboBox on *nix if the
4736 path doesn't fit into some of our Current.Places
4738 2006-04-13 Jackson Harper <jackson@ximian.com>
4740 * ComboBox.cs: Use borders instead of drawing our own decorations,
4741 try to obey correct rules for heights.
4744 * ThemeClearLooks.cs:
4745 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4746 this is now handled by borders.
4747 - Remove unused DrawListBoxDecorationSize method.
4749 2006-04-13 Mike Kestner <mkestner@novell.com>
4751 * MenuAPI.cs: null guarding for the disbled click check fixes crash
4754 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4756 * ThemeWin32Classic.cs:
4757 - Fixed CPDrawStringDisabled
4758 - Corrected drawing of disabled menu items
4759 - Fixed drawing of disabled radio buttons (bug #78095)
4760 - Draw check in a disabled CheckBox with color ControlDark
4762 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4764 * Form.cs: Use the provided width when calculating the menu size;
4765 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4766 and ClientSize.Width won't be updated yet
4767 * Application.cs: Use Visible instead of Show() to make form visible,
4768 this way we create the handle later and menusize is considered
4770 2006-04-12 Mike Kestner <mkestner@novell.com>
4772 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4775 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4777 * TextBox.cs: Implemented context menu
4779 2006-04-12 Mike Kestner <mkestner@novell.com>
4781 * ListView.cs: implement box selection. fixes #77838.
4782 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4784 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4786 * XplatUIX11.cs: Added setting of window type when transient window
4787 is created (metacity would move it otherwise)
4788 * X11Structs.cs: Added WINDOW_TYPE atoms
4789 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4790 background (the control is Opaque but still wants transparent
4793 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4795 * Control.cs: Added OnPaintBackgroundInternal to allow controls
4796 that set Opaque but don't mean it (like all ButtonBase-derived
4797 controls) to still draw their background
4798 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4801 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4803 * Control.cs (PaintControlBackground): Set the graphics object
4804 on our PaintEvent to null to prevent it from being disposed
4805 when the PaintEvent gets disposed
4807 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
4809 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4810 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4812 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4815 - Added transparency check to BackColor property. Transparent
4816 backgrounds are only allowed if the control styles permit it
4817 - Added recursive painting of parent control background and
4818 foreground if a control with a transparent backcolor is drawn
4819 (Thanks to Tim Ringenback for providing his 'hack' as a base
4820 for this patch) Fixes #77985 and #78026.
4821 - Added Opaque style check before calling OnPaintBackground, no
4822 need to draw the background if the control is opaque
4823 - Removed ControlAccessibleObject owner variable (inherited from
4824 base, no need to define again)
4825 - Added some documentation links explaining the drawing events
4828 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4830 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4831 that the affected control is the located at the left border of our
4832 parent (Fixes #77936)
4834 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4836 * TextBoxBase.cs: When rendering disabled or readonly controls,
4837 draw the background with 'Control' instead of 'Window' color as
4838 long as the user hasn't specifically set a color
4840 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4842 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4843 since that won't be updated if the user types text (only if it's
4844 programatically set)
4846 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4848 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4849 layout changes do to app-triggered resizes will have the proper
4850 display rectangle for layout
4852 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
4854 * ThemeWin32Classic.cs:
4855 - Make use of the SystemBrushes and SystemPens wherever possible
4856 - Corrected some highlight colors
4857 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4859 * Theme.cs: Added Empty field to CPColor struct
4861 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4863 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4864 is displayed when calculating the display rectangle. Thanks to Mike
4865 for teaching me the err of my ways.
4867 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
4869 * ScrollableControl.cs:
4870 - Rewrote DisplayRectangle code, now returning the proper x/y coords
4871 (instead of 0,0) and we now return the real width/height instead of
4872 just the clientrectangle, adjusted for padding. The rectangle is
4873 now cached and created by the new CalculateDisplayRectangle method.
4874 - Created new CalculateDisplayRectange method, which basically does
4875 what get_DisplayRectangle() did originally, but now using the
4876 right edge instead of DisplayRectangle to determine the size of
4878 - get_Canvas(): Fixed it to properly calculate canvas for
4879 right/bottom controls which seem to be placed to the right/bottom
4880 of any controls that have a fixed location
4881 - Removed TODO that's taken care of
4882 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4883 and SetDisplayRectLocation according to new MSDN2 docs
4884 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4885 event when that is called, this is added for compatibility
4886 - ScrollControlIntoView(): Implemented.
4887 - Switched scrollbars to be implicit, they shouldn't be selectable
4888 * ContainerControl: Now that ScrollControlIntoView is implemented, we
4889 call it when the active control is set/changed
4890 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4891 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4892 implicit_control variable (used for native Win32 message generation)
4893 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
4894 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4895 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4896 * XplatUIStructs.cs: Added ScrollBarCommands enum
4898 2006-04-10 Jackson Harper <jackson@ximian.com>
4901 * CheckedListBox.cs:
4908 * PrintPreviewControl.cs:
4914 * UpDownBase.cs: Fixup base event overrides.
4916 2006-04-06 Mike Kestner <mkestner@novell.com>
4918 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4919 all user-initiated value changes to min <= value <= max-thumbsz+1.
4920 (set_Value): check for vert/horiz when calculating new thumb position.
4921 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4923 (OnMouseMoveSB): refactor the thumb dragging code and refine
4924 invalidation logic to reduce flicker.
4925 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4926 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4927 (UpdateThumbPosition): small code readability cleanup
4929 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
4931 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4934 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4936 * ThemeNice.cs: Use a better graphics effect when a button is pressed
4938 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4940 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4941 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4942 This dramatically reduces the number of Pen.Dispose calls.
4943 Where possible call ResPool methods only once instead of calling it
4944 over and over again (for example for the same color).
4946 2006-04-06 Mike Kestner <mkestner@novell.com>
4948 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4949 Also remove an unused private field on the collection. Fixes #77972.
4951 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4953 * ThemeNice.cs: Added ToolBar drawing code
4955 2006-04-06 Mike Kestner <mkestner@novell.com>
4957 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4958 I'm assuming that means we need to look up the toplevel for the
4959 provided control. Fixes the crash trace in #77911 but exposes another
4960 crash in some strange reflection usage in NDocGui.
4962 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4964 * ThemeNice.cs: Gave it a little silver touch and added Images
4966 * FontDialog.cs: FontDialog is not resizable
4967 * FileDialg.cs: Added SizeGripStyle.Show
4969 2006-04-05 Jackson Harper <jackson@ximian.com>
4971 * KeyboardLayouts.cs: Remove warning.
4973 2006-04-05 Jackson Harper <jackson@ximian.com>
4975 * Control.cs: Enable OnPaintInternal so we can use it for drawing
4976 all of our controls instead of Paint +=.
4991 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4992 use OnPaintInternal. Remove Width/Height and Visible checks in
4993 paint handler, this is done at a higher level now.
4994 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4995 * PaintEventArgs.cs: Add a handled flag so controls that don't
4996 want anymore painting after OnPaintInternal can make sure OnPaint
4999 2006-04-05 Mike Kestner <mkestner@novell.com>
5001 * Form.cs: fix the menu WndProc hacks to respect the native enabled
5002 state of the form, so that we don't process events when Modal dialogs
5003 are up. Fixes #77922.
5005 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
5007 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5010 2006-04-05 Mike Kestner <mkestner@novell.com>
5012 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5014 2006-04-05 Mike Kestner <mkestner@novell.com>
5016 * ListView.cs (HeaderMouseMove): null guarding for the over column
5017 when setting up the drag_to_index. Fixes #78015.
5019 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
5021 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5022 in the taskbar. Transient windows seem to accomplish that.
5024 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
5027 - Re-enabled CreateParams.X/Y code for FormStartPosition
5028 - Added code for manual placement when creating the Control
5029 - Incomplete patch to treat MDI forms differently when
5030 setting the ClientSizeCore. (Still need to figure out handling
5033 - When we're explicitly setting the X/Y position of a non-Child
5034 window, let the WM know. Metacity really wants this.
5036 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5038 * ThemeNice.cs: Added CPDrawButton
5040 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5042 * ThemeNice.cs: Changed the color for focused buttons and activated
5043 the arrows for small scroll buttons.
5045 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5047 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5048 anymore. Changed some method modifiers to protected (virtual)
5049 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5051 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5052 Updated drawing of menus, buttons and progressbars; added
5055 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5057 * ImageListStreamer.cs: implemented serialization/deserialization
5060 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
5062 * ThemeWin32Classic.cs:
5063 - Removed all the DrawFrameControl stuff; CPDrawButton,
5064 CPDrawCheckBox and CPDrawRadioButton are now handled directly
5066 - Updated and corrected the drawing code of CPDrawButton,
5067 CPDrawCheckBox and CPDrawRadioButton to better match ms
5068 - Updated theme checkbox and radiobutton code to use the CP*
5071 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5073 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
5076 2006-03-31 Jackson Harper <jackson@ximian.com>
5078 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
5080 * UpDownBase.cs: Don't CreateGraphics manually, use a
5081 Refresh. Ideally we would invalidate the correct areas here.
5083 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5086 - We now track the mapping state of windows. If a window (or
5087 one of it's parents) is not mapped we no longer permit
5088 WM_PAINT messages to be generated since we'd otherwise get
5089 lots of BadMatch X errors. Jackson did all the work figuring
5091 - Destroying the caret if the window it's contained in is
5092 destroyed. Can't use regular DestroyCaret method since it
5093 might fall into a drawing function (trying to remove the
5094 caret) and with that generate new BadMatch errors. Again,
5095 Jackson tracked this down.
5096 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
5097 make sure we send the messages to all windows. (The old code
5098 would send the WM_DESTROY to the window, and then all child
5099 windows would be 'gone' because the WM_DESTROY handle lookup
5100 would no longer find the destroyed window)
5101 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
5102 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
5104 2006-03-31 Jackson Harper <jackson@ximian.com>
5106 * ScrollableControl.cs: Dont recalc if we are not visible.
5108 2006-03-31 Mike Kestner <mkestner@novell.com>
5110 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
5111 the visibility branch.
5113 2006-03-31 Jackson Harper <jackson@ximian.com>
5115 * ScrollBar.cs: Cap values when incrementing/decrementing.
5117 2006-03-31 Mike Kestner <mkestner@novell.com>
5119 * MenuAPI.cs: setup menu.tracker for popup/context menus.
5120 * ToolTip.cs: guard against timer expirations with no active control.
5121 Not sure why it happened.
5123 2006-03-31 Mike Kestner <mkestner@novell.com>
5125 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
5127 * ToolTip.cs: Position the tooltip based on where the cursor is at
5128 popup time, not at MouseEnter time. Add a Down state so that we don't
5129 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
5130 positioning offset. Lookup DisplaySize at positioning time, since it
5131 can theoretically change during invocation.
5132 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
5133 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
5135 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5137 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
5138 Fixes behaviour when the Text property of the box is String.Empty
5140 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5142 * XplatUIX11.cs: Only send mouseleave for our client windows, not
5143 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
5146 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5148 * FileDialog.cs: Visual enhancement for the popup buttons in
5151 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5153 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
5156 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
5158 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
5159 highlighted menu items to match ms
5161 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
5163 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
5165 2006-03-30 Mike Kestner <mkestner@novell.com>
5167 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
5168 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
5169 go active to account for HotLight to Selected transition.
5170 * MenuItem.cs: add internal Selected prop. Fill out the Status
5171 property by calculating it from item info. Add HotLight,
5172 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
5174 2006-03-30 Mike Kestner <mkestner@novell.com>
5176 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
5178 2006-03-29 Jackson Harper <jackson@ximian.com>
5180 * Form.cs: Implement TODO.
5182 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
5184 * PrintPreviewDialog.cs: Implemented missing methods and events; still
5185 missing proper dialog setup in the constructor
5187 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
5189 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
5191 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
5192 - Fixed ResetBindings and removed TODO
5193 - Added check for cross-thread calls to get_Handle()
5194 - Added Marshaller attribute for set_Font to satisfy class status
5195 * FontDialog.cs: Removed TODOs that seemed implemented
5196 * UpDownBase.cs: Removed unneeded TODO and Fixme
5197 * MessageBox.cs: Implemented support for Default button and removed TODO
5198 * FileDialog.cs: Removed obsolete TODO
5199 * DomainUpDown.cs: Removed obsolete TODO
5200 * ButtonBase.cs: Removed obsolete TODO
5201 * XplatUIWin32.cs: Removed obsolete TODO
5203 - Removed obsolete TODO
5204 - Calling CheckAcceptButton when the acceptbutton is changed to allow
5205 internal status updates
5206 - Making sure the active control is selected when the control is created
5207 * CurrencyManager.cs: Removed obsolete TODO
5209 2006-03-29 Mike Kestner <mkestner@novell.com>
5211 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
5212 of PrintPreviewDialog and RichTextBox.
5214 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
5216 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
5217 DarkDark, Light and LightLight colors for a specific color
5218 * ThemeWin32Classic.cs:
5219 - Use Button drawing code to draw RadioButtons and CheckBoxes with
5221 - Make use of the new ResPool helper CPColor
5222 - Draw ProgressBar and StatusBar with correct 3D borders
5224 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
5226 * ColorDialog.cs: Return selected color. Fixes bug #77940.
5228 2006-03-28 Mike Kestner <mkestner@novell.com>
5230 * ListView.cs: fix Icon layout to plan for scrollbar widths when
5231 calculating col/row counts.
5233 2006-03-28 Mike Kestner <mkestner@novell.com>
5239 switch to explicit interface method implementation for some methods
5240 corcompare identifies as inconsistent with MS.
5242 2006-03-28 Mike Kestner <mkestner@novell.com>
5246 add a few missing methods from the class status output.
5248 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
5250 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5253 2006-03-28 Mike Kestner <mkestner@novell.com>
5255 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5257 2006-03-27 Mike Kestner <mkestner@novell.com>
5259 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5260 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5262 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
5264 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5266 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5268 * ThemeWin32Classic.cs:
5269 - GroupBox: Inserted a little gap between the text and the lines
5271 - Made the code in CPDrawBorder3D more readable
5272 - Corrected the drawing location of the up and down arrows in
5275 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5277 * ControlPaint.cs: Corrected line widths in DrawBorder for
5278 ButtonBorderStyle Inset and Outset
5280 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5282 * ThemeWin32Classic.cs:
5283 - Rewrote the totally broken CPDrawBorder3D method. That was
5284 one of the main problems for the terrific ThemeWin32Classic
5286 - Updated and corrected Button drawing
5287 - Correct the dimensions of the SizeGrip to match ms ones
5288 - Removed a small drawing glitch in DrawComboBoxEditDecorations
5289 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5290 Border3DStyle.Sunken to match ms.
5292 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5294 * ThemeWin32Classic.cs: First small part of the "de-uglify
5295 ThemeWin32Classic" effort, SizeGrip
5297 2006-03-24 Jackson Harper <jackson@ximian.com>
5299 * XplatUIX11.cs: Give a max idle time of one second, this matches
5300 MS and forces an Idle event every second when there are no other
5301 events in the queue.
5303 2006-03-24 Mike Kestner <mkestner@novell.com>
5305 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5306 * ListView.Item.cs: fix layout issues with null image lists and images
5307 smaller than checkbox size.
5308 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5309 mode like MS does. It's weird, but consistent. ;-)
5312 2006-03-24 Mike Kestner <mkestner@novell.com>
5314 * ListView.cs: Scroll wheel support for the item control. Fixes
5317 2006-03-23 Jackson Harper <jackson@ximian.com>
5319 * ScrollableControl.cs: Special case negative sized areas, not
5321 * MonthCalendar.cs: Save the rect of the clicked date so we can
5322 use it for invalidation.
5323 - Try to cut down on the number of invalidates
5324 - Invalidate the rect the mouse is over and was over when moving
5325 the mouse, so we get the focus box following the cursor.
5327 2006-03-23 Mike Kestner <mkestner@novell.com>
5329 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
5330 focus rectangle drawing. Fixes #77835.
5332 2006-03-23 Mike Kestner <mkestner@novell.com>
5334 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
5335 the if and else if and reverting back to the original == check on the
5338 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
5340 * FontDialog.cs: Update the example panel if the selected index of
5341 the fontListBox changes.
5343 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
5345 * FileDialog.cs: Make FileDialog remember which directory it was in
5346 last in the same execution.
5348 2006-03-22 Mike Kestner <mkestner@novell.com>
5350 * FileDialog.cs: make the DropDownMenu on the toolbar display
5351 RadioChecks since they are mutually exclusive and that's what MS does.
5353 2006-03-22 Mike Kestner <mkestner@novell.com>
5355 * Theme.cs: add Color param to CPDrawMenuGlyph.
5356 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
5357 checks and radio marks and arrows are visible on highlighted items.
5358 * ControlPaint.cs: update to use new Theme signature.
5360 2006-03-22 Mike Kestner <mkestner@novell.com>
5362 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
5363 is active. Fixes #77870.
5365 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
5367 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
5368 to be focused/selected after startup
5370 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
5373 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
5374 CustomColors and ShowHelp properties
5375 - Some internal rewrites to get better results when using the
5378 2006-03-22 Mike Kestner <mkestner@novell.com>
5380 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
5381 HoverSelection. Fixes #77836.
5383 2006-03-22 Mike Kestner <mkestner@novell.com>
5385 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
5386 ToggleButtons. (De)Sensitize the Back button around a stack count of
5387 1, not 0. Update ButtonSize based on a pixel count of the win32
5388 control. Adjust the toolbar size/location for new button size.
5390 2006-03-22 Jackson Harper <jackson@ximian.com>
5392 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
5394 * ScrollBar.cs: When doing increments and decrements we need to
5395 set the Value property so that ValueChanged gets raised. A
5396 possible optimization here would be to make an internal SetValue
5397 that doesn't invalidate immediately.
5398 * ToolTip.cs: Tooltips get added to their container (when
5399 supplied) so they get disposed when the container is disposed.
5400 - Don't create tooltips for String.Empty. This prevents all these
5401 little 2-3 pixel windows from showing up when running nunit-gui
5403 * Form.cs: Don't set topmost when setting the owner if the handles
5404 haven't been created yet. The topmost set will happen when the
5405 handles are created.
5407 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
5410 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
5411 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
5412 visible (to allow them to recalculate their sizes)
5414 2006-03-21 Mike Kestner <mkestner@novell.com>
5416 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
5417 methods. Removed a ton of redundant code. Still not really happy with
5418 the border rendering, but I think that's mainly because of the
5419 ControlDarkDark being black instead of a dark grey. Depending on how
5420 close we want to be, we might want to revisit those color choices.
5421 Among the new features added during the refactor were DropDownArrow
5422 pressed rendering, Disabled image rendering. Proper flat appearance
5423 boundary rendering. Removed the Divider and Wrapping dividers since I
5424 can't figure out any combination of themes and conditions to make the
5425 MS control draw a horizontal line on a toolbar despite what the
5426 Divider property docs indicate.
5427 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
5428 conditions and incorrect layout. Updated to coding standard.
5429 * ToolBarButton.cs: refactored layout and positioning code from
5430 ToolBar to here. Invalidate wherever possible instead of forcing
5431 redraws of the whole toolbar.
5432 (Known remaining issues: explicit ButtonSize smaller than provided
5435 2006-03-21 Mike Kestner <mkestner@novell.com>
5437 * ContextMenu.cs (Show): use the position parameter instead of just
5438 showing at the MousePosition.
5440 2006-03-21 Jackson Harper <jackson@ximian.com>
5442 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
5443 control handle this.
5444 * TreeNodeCollection.cs: If we are clearing the root node we need
5445 to reset top_node so calcs can still happen.
5446 * ThemeWin32Classic.cs: This is a Flags so we need to check
5449 2006-03-21 Jackson Harper <jackson@ximian.com>
5451 * DataGrid.cs: Create columns when the binding context has been
5453 * X11Structs.cs: Keysyms are uints.
5454 - Add size to fix build.
5456 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
5458 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5460 - Added ResetMouseHover method to allow controls to retrigger
5461 hovering if they need it more than once
5462 - Implemented MouseHoverTime and MouseHoverSize properties
5463 * Timer.cs: Start() must reset the interval
5464 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
5467 2006-03-21 Jackson Harper <jackson@ximian.com>
5469 * X11Keyboard.cs: improved layout detection. Move the nonchar
5470 tables into this file.
5471 * KeyboardLayouts.cs: Move the tables into resource files.
5473 2006-03-21 Mike Kestner <mkestner@novell.com>
5475 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
5477 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
5479 * Mime.cs: Various speed optimizations. Looking up mime types
5480 is now 2 times faster than before
5482 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
5484 * CreateParams.cs: Added internal menu field
5486 - Switched call order for UpdateBounds; now we always call
5487 the one that also takes ClientSize, and we're calculating the
5488 client size via driver method in the others. The previous
5489 method of tracking client size by difference wasn't working
5490 for forms where even the starting client size wouldn't match
5491 the overall form size (due to borders) (Part of fix for #77729)
5492 - CreateParams(): Do not use parent.Handle unless the handle is
5493 already created. Causes havoc with Nexxia and throws off our
5494 creation of controls
5496 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
5497 - Switched handling of ConfigureNotify over to new PerformNCCalc
5498 method (consolidates code)
5499 - Changed RequestNCRecalc to use new PerformNCCalc method
5500 - Added calls to RequestNCRecalc when menus and borders are changed
5501 to allow app to set NC size. (Part of fix for #77729) This matches
5502 when MS send a WM_NCRECALC on Win32 windows.
5503 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
5504 (Part of fix for #77729). This matches what MS does, they also
5505 send that message when the form is made visible.
5506 - XException.GetMessage: Improved usability of X errors by including
5507 a translation of the window into Hwnd and Control class
5508 - Improved debug info for window creation, reparenting and destruction
5509 - Created helper method WindowIsMapped() [Currently not used]
5510 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
5512 - CreateParams: Now setting our menu on the new internal menu field
5513 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
5514 avoid calculating the same property twice
5516 - Improved usability of ToString() for debugging purposes
5517 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
5518 determine the height of the menu, instead of just the font. This
5519 required to also create a graphics context and to keep a bmp
5520 around (for performance reasons)
5522 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
5524 * MenuAPI.cs: Added OnMouseUp method
5526 - Now remembering the requested client size, avoids size errors
5527 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5528 instead of base if the menu is active. This is required due to
5529 control now capturing and releasing on down/up and it would
5530 prematurely release our menu capture
5532 2006-03-17 Jackson Harper <jackson@ximian.com>
5534 * KeyboardLayouts.cs: Add the czech layouts.
5536 2006-03-16 Jackson Harper <jackson@ximian.com>
5538 * Control.cs: Use the viewport space when sizing not the controls
5539 client size, so things like ScrollableControl that effect the
5540 viewport size (when scrollbars are added) are computed correctly.
5541 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5543 - Handle creating BindingManagers for null data sources.
5544 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5545 source, otherwise when rows are added they are added to the 'fake'
5546 datasource and we will crash when trying to set the position in
5548 - Use Implicit scrollbars on the datagrid so they arent
5551 2006-03-16 Jackson Harper <jackson@ximian.com>
5554 * InternalWindowManager.cs:
5555 * MdiWindowManager.cs:
5556 * X11Keyboard.cs: I really want Mike to love me again (fix
5559 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5562 - OnMouseDown: Switch to editing mode when clicking on the cell
5563 even if we're clicking on the cell that's currently
5565 - ProcessGridKey: Left/Right now wrap like MS.Net does
5566 - ProcessGridKey: Tab now knows to add a new row when tab is
5567 pressed in the cell of the last column of the
5569 - ProcessGridKey: Enter now adds another row if pressed in the last
5570 row and selectes the new row, same column cell
5571 - ProcessGridKey: Home/End navigate columns, not rows, like
5572 originally implemented
5573 - Broke ProcessKeyPreview code out into an extra Internal method
5574 so it can be called from the edit code
5575 * DataGridTextBox.cs (ProcessKeyMessage):
5576 - Switched to accept Tab keypresses
5577 - Added F2 handling to allow jumping to the end of the edited cell
5578 - Added logic to allow moving caret left/right inside edited cell
5579 and making the edited cell jump when the caret hits cell borders
5580 - Tab and Enter are now passed to the datagrid after being handled
5582 - Removed capture code now that Control handles it
5583 - set_SelectionStart now ensures caret is visible
5585 2006-03-16 Jackson Harper <jackson@ximian.com>
5587 * TrackBar.cs: Debackwards the increment/decrement for handling
5588 mouse clicks on the bar with vertical trackbars.
5589 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5592 2006-03-16 Mike Kestner <mkestner@novell.com>
5594 * ListView.cs: make shift/ctrl keyboard and mouse selection
5595 consistent with the MS control. Fix a bug in
5596 SelectedListViewItemCollection.Clear that was pissing me off for the
5597 better part of a day because the collection was being altered
5598 underneath us as we walked the list.
5600 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5602 * Control.cs: Not sure how we could miss this so long, but it seems
5603 that MS.Net has Capture set all the way from before calling
5604 OnMouseDown through sending the mouse events until after
5605 OnMouseUp. This will fix DataGrid's selection being set to end
5606 at the location of the MouseUp.
5608 2006-03-15 Jackson Harper <jackson@ximian.com>
5610 * BindingContext.cs: Check the binding after its added so that it
5611 can initialize the binding managers and hookup to events.
5612 * Binding.cs: Data members seem to sometimes include rows/cols in
5613 the format Row.Column we now take this into account.
5614 - Hookup to the position changed event so we can update the
5615 control when the position has changed in the data set.
5616 * CurrencyManager.cs: Take into account the row/col naming
5617 convention when creating dataset tables.
5618 * BindingContext.cs: Using a newer better way of storing
5619 datasource/datamember pairs. Hopefully this better matches MS for
5620 looking up binding managers.
5623 2006-03-15 Jackson Harper <jackson@ximian.com>
5625 * BindingContext.cs: The currency manager needs the data member
5626 name, if the member is a data set we use the name to find the
5628 * CurrencyManager.cs: When creating the list prefer an IList over
5630 - Attempt to create a DataTable from a DataSet (TODO: might need
5631 some better error checking here, although MS doesn't seem to have much)
5632 - If we have a DataTable create a view and use it as our list.
5634 2006-03-15 Mike Kestner <mkestner@novell.com>
5636 * ListView.cs: keep a matrix of the icon mode layout to facilitate
5637 keyboard navigation. Support Up/Down/Left/Right selection correctly
5638 for all 4 View modes.
5639 * ListViewItem.cs: add internal row/col fields for icon layouts.
5641 2006-03-15 Jackson Harper <jackson@ximian.com>
5643 * TabControl.cs: Redraw the tabs when we resize so their newly
5644 calculated sizes are drawn on screen.
5645 * X11Keyboard.cs: Begginnings of XIM support. We also now support
5646 composite characters.
5647 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5648 - filter events so that composite characters can be created
5650 * X11Structs.cs: Add XIMProperties enum.
5652 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5654 * Control.cs (BringToFront, SendToBack): Don't use window or handle
5657 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5659 * Control.cs (PerformLayout): We don't need to consider visiblity
5660 for anchoring, only for docking. This fixes 'whacky' alignment
5661 in listbox and other controls that use implicit scrollbars after
5662 the previous PerformLayout patch
5663 * ListBox.cs: Switched to use implicit scrollbars
5665 2006-03-14 Mike Kestner <mkestner@novell.com>
5669 - chain up the "new event" overrides to base and use
5670 OnEvent to raise them. Part of fix for bug #76509.
5672 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
5674 * FileDialog.cs: Do not select an item in the parent directory
5677 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5679 * Control.cs (PerformLayout): It would seem that we considered
5680 invisible windows for our layout. Not quite the right thing
5681 to do. Now we don't any longer, thereby fixing bug #76889.
5683 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5685 * Control.cs (CanFocus): I goofed. A control can have focus
5686 even though it's not selectable. Made it match MS docs.
5688 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5690 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5691 center by default (fixes #76895)
5692 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
5693 all uses of Border3DSides.All with the explicit ORd together
5694 Left|Right|Top|Bottom because I assume that nobody was aware
5695 that All also implies a center fill. Most places I checked had
5697 * ProgressBarStyle.cs: Added
5699 2006-03-13 Mike Kestner <mkestner@novell.com>
5701 * ListView.cs: fix breakage in drag shadow header positioning
5702 from Peter's csc compilation fix.
5704 2006-03-13 Mike Kestner <mkestner@novell.com>
5706 * ListView.cs: fix NRE produced by backspacing twice in a focused
5709 2006-03-13 Mike Kestner <mkestner@novell.com>
5711 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5713 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5715 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5717 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5718 the allowed size before making programmatic size changes
5720 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5722 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
5723 set, metacity is broken and will still use the emty sizes in
5724 the struct. (Fix for #77089)
5726 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5728 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
5729 WindowExStyles and marked both enums as Flags
5730 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5731 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5732 to match WindowStyles split
5734 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5735 - Updated to match WindowStyles split
5737 - Fixed FosterParent creation, was using ExStyle on the Style field
5738 (This should help with Popup focus issues)
5739 - Updated to match WindowStyles split
5741 2006-03-13 Jackson Harper <jackson@ximian.com>
5743 * MdiWindowManager.cs: Use the system menu height. Fixes some
5744 strange sizing issues.
5746 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5748 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5750 - Scroll to caret after inserting text (#77672)
5751 - Make scroll range one pixel higher, fixes off-by-one error (and
5752 makes underlines visible on the last line)
5754 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5756 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5757 the keyboard state from being stuck with keys in 'pressed' state when
5758 focus is switched away via keyboard
5759 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5760 reset the keyboard if no X11 KeyUp events are expected to come
5761 * X11Structs.cs: Switched type of Visible to bool to match driver
5763 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5766 - Switched caret to be just 1 pixel wide, matches MS and looks less
5768 - Moved caret display 1 pixel down from the top of the control
5770 - InsertCharAtCharet: Update the selection start if moving the caret
5771 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5772 - No longer always creating the caret when the caret methods are
5773 called. Only the actual ShowCaret/HideCaret will do that now
5774 - Only setting caret visible if the owner control has focus
5775 - UpdateView: Added invalidation-shortcut logic for center and right
5776 aligned text. Previously we'd update all according to the left
5777 logic which caused drawing errors. Also fixed height of invalidated
5778 areas, now properly invalidating the whole area (was off-by-one)
5779 - owner_HandleCreated: Always generate the document when the
5780 handle is created; this ensures that
5782 - Fixed situation where caret would disappear under the right
5783 window border, also improved scrolling behaviour on left-
5785 - Fixed right-aligned textboxes to have a border to the
5786 right instead of the caret being under the right border
5788 - Switched from 'nested' to simple visible/not visible tracking
5789 for caret (part of fix for #77671)
5790 - No longer passing through translated FocusIn/FocusOut messages
5791 since we were notifying too often and the wrong windows. Instead
5792 we just notify our focussed window of receiving or loosing focus
5793 * XplatUIWin32.cs: Switched from 'nested' show/hide
5794 counting for caret to simple visible yes/no behaviour (part of
5797 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5799 * Mime.cs: Remove debug code...
5801 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5803 * MimeGenerated.cs: Removed
5804 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5805 and subclasses) from /usr/(local/)share/mime and
5806 $HOME/.local/share/mime.
5808 2006-03-10 Jackson Harper <jackson@ximian.com>
5810 * MdiWindowManager.cs: Recalc the NC area when a window is
5811 maximized/restored so that the menu area is drawn on forms that
5814 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5816 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5817 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5818 us to force a WM_NCCALCRESIZE message being sent. This is needed
5821 2006-03-10 Jackson Harper <jackson@ximian.com>
5823 * Form.cs: We need to use the ActiveMenu when calculating menu
5825 - Fix nullref when the window manager hasn't been created yet.
5826 * Control.cs: Fix nullref when we try to bring a control to the
5827 front that has no parent.
5828 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5830 - Add a dummy item to the maximized menu so it always has the
5831 correct height. Otherwise when there are no menus we don't get our
5835 2006-03-10 Jackson Harper <jackson@ximian.com>
5837 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5839 * Form.cs: Make the window_state internal so the window managers
5841 - When an MDI child is maximized let its window manager create the
5842 main menu (so it can add its icon).
5843 - Notify the window managers of state changes
5844 - Let the window manager paint its buttons and handle button
5845 clicks on the menu when it is maximized.
5846 * InternalWindowManager.cs: Move the prev_bounds into the mdi
5847 window manager, since tool windows don't use it, only mdi windows.
5848 - Tell the main form that we don't want it to handle NCPAINT
5849 itself to avoid extra painting.
5850 - Handle clicks on a maximized windows menu.
5851 - Handle window state changes
5852 - Handle minimize/maximize clicks correctly by setting the window state.
5853 * MdiWindowManager.cs: Add an icon menu that (the menu you get
5854 when clicking on the forms icon).
5855 - New method to create a forms maximized menu. This is its normal
5857 - Handle window state changes.
5858 - Handle sizing of maximized windows. Maximized windows are just
5859 drawn bigger then the parent visible area. All controls are still
5860 there, they are just outside the visible area (this matches windows).
5861 * MdiClient.cs: No scrollbars when a child window is maximized.
5862 - Let the children windows figure out how big they should be when
5863 sizing maximized windows.
5864 - Implement a version of ArrangeIconicWindows somewhat similar to
5865 Windows version. There are some little differences, but I don't
5866 think any app will rely on the layout of minimized mdi windows.
5868 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5870 * Padding.cs: Several fixes to allow compiling with csc 2.0
5872 2006-03-09 Jackson Harper <jackson@ximian.com>
5875 * MenuItem.cs: Cheap hack so we can add items to the list without
5876 the events being raised. This allows adding mdi items during
5877 drawing. TODO: Should probably find a better time to add the items.
5879 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5881 * ThemeWin32Classic.cs:
5882 - CheckBox_DrawText: Added logic to not wrap if not enough space
5883 is available (Fix for bug #77727)
5884 - RadioButton_DrawText: Added logic not to wrap if not enough
5885 space is available (Fix for bug #77727). Also removed some
5886 duplicate code, DrawString always drawing the regular text
5887 before hitting the if statement.
5889 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5891 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5893 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5895 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5896 * ContainerControl.cs: Partial implementation of some 2.0 scaling
5897 methods. Moved the new 2.0 properties into alphabetical order with
5898 other properties and added MonoTODO tags
5900 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5902 * AutoScaleMode.cs: Added. Fix build.
5904 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5906 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5907 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5908 and was requiring premature handle creation for calls from above
5909 * Form.cs, Control.cs: Removed handle arguments from calls to
5910 CalculateClientRect()
5912 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5914 * ListView.cs (HeaderMouseMove): Fix csc compilation.
5915 drag_column.column_rect is MarshalByRef and can't be used that way
5917 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5919 * AxHost.cs: Added deserialization constructor for
5920 AxHost+State (fixes 77743)
5922 2006-03-09 Mike Kestner <mkestner@novell.com>
5925 - Added column drag reordering for details view.
5926 - fixed behavior when mouse is dragged off column and
5927 AllowColumnReorder is false.
5928 * ColumnHeader.cs: clone the format too in Clone.
5929 * Theme.cs: add DrawListViewHeaderDragDetails method.
5930 * ThemeWin32Classic.cs:
5931 - impl new method for drawing drag column shadows and targets.
5932 - support column offset for details mode in DrawListViewItem.
5934 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5936 * TextControl.cs: Reset the char_count when the document is cleared
5937 (Fixes bug reported on mono-winforms mailing list)
5939 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5941 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5942 of calling base we simply process the key ourselves, since both
5943 DefWindowProc and the handled method would set m.Result.
5946 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5948 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5949 method also moves the window; instead implemented a copy of
5950 Control.ScaleCore (Part of fix for #77456)
5952 - Created new CreateGraphicsInternal method to allow providing
5953 a graphics context when no handle is created without triggering
5954 handle creation. (Part of fix for #77456)
5955 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5957 - Switched Constructor to require TextBoxBase instead of Control (to
5958 allow uncast access to CreateGraphicsInternal)
5959 - Safeguarded use of owner.Handle property. No longer accessing it
5960 unless the handle is already created.
5961 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5962 - Now triggering a recalc when owning control becomes visible
5963 * TextBox.cs, RichTextBox.cs: Switched to use new internal
5964 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5965 premature handle creation (Part of fix for #77456)
5967 - We now only destroy our double-buffering buffers when the
5968 control is resized or disposed, but not when visibility
5969 changes. (The code even re-created them twice every time)
5970 - Now requiring a redraw of the buffer on visibility changes
5971 (fixes bug 77654 part 2)
5972 - Not passing OnParentVisibleChanged up unless the control
5974 - CanFocus: Fixed to match MS documentation
5975 - Focus: Fixed to return actual focus state and to check if
5976 setting focus is legal before setting it
5978 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
5980 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5981 when to draw focus rectangle by looking at parent focus and
5982 selected state instead. This fixes TabPages on Linux sometimes
5983 having none or multiple focus rectangles.
5984 * XplatUIX11.cs (SetFocus):
5985 - Don't set the focus if the same window already has focus
5986 - Use SendMessage instead of PostMessage (like it's Win32
5987 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5988 to match MS behaviour
5989 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5992 2006-03-07 Jackson Harper <jackson@ximian.com>
5994 * PictureBox.cs: Revert line I accidently committed last week.
5996 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
5999 - Added new IsRecreating and ParentIsRecreating properties to
6000 allow testing if RecreateHandle has been called on ourselves
6001 or one of our parents
6002 - WndProc(WM_DESTROY): If our control handle is being recreated
6003 we immediately need to create the handle when receiving the
6004 destroy, that way our child windows find a valid parent handle
6005 when they themselves are being recreated upon WM_DESTROY receipt
6006 (fix for bug #77654 part 1)
6008 - DestroyWindow: WM_DESTROY must be sent to our own window before
6009 notifying any child windows. MS documents that child windows
6010 are still valid when WM_DESTROY is received. (Control now relies on
6012 - Added some fine-grain debug options
6014 2006-03-06 Jackson Harper <jackson@ximian.com>
6016 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6017 box and base calculations off this.
6018 * MdiChildContext.cs:
6019 * MdiWindowManager.cs: Don't need to ensure scrollbars here
6022 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
6024 * Splitter.cs: In situations where the affected control is added
6025 to the parent's control list after the splitter, we would not
6026 populate affected. Now we try populating it on mousedown, if
6027 it's not already set, and force it to be re-set whenever our
6030 2006-03-03 Matt Hargett <matt@use.net>
6032 * Control.cs: implement Control.Padding
6033 * Padding.cs: -Padding.All returns -1 when constructing with the
6034 implicit default ctor
6035 -Padding.ToString() matches MS.NET
6036 * ContainerControl.cs: implement
6037 ContainerControl.AutoScaleDimensions
6038 * ListControl.cs: implement ListControl.FormattingEnabled
6039 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6041 * TabPage.cs: Implement UseVisualStyleBackColor.
6042 * PictureBox.cs: Implement PictureBox.InitialImage.
6044 2006-03-03 Mike Kestner <mkestner@novell.com>
6046 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6047 event declarations to proxy to base event.
6048 * ListViewItem.cs: update to use ItemControl.
6049 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6050 * ThemeWin32Classic.cs: update to new ListView theme API and fix
6051 column header label rendering for 0 width columns.
6053 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
6055 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6056 that causes the control to be created. Fixes #77476.
6058 2006-03-02 Jackson Harper <jackson@ximian.com>
6060 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
6063 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
6065 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
6066 passed in for the EventArgs (fixes #77690)
6068 2006-03-01 Jackson Harper <jackson@ximian.com>
6070 * ScrollBar.cs: Refresh afterbeing resized.
6072 2006-02-28 Mike Kestner <mkestner@novell.com>
6074 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
6075 Clean up a tracker compile warning.
6076 * MenuItem.cs: add internal PerformPopup method.
6079 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6081 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
6082 implicit expose) when the text is set to null
6084 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6086 * RichTextBox.cs (FlushText): When newline is true, we always
6087 need to split the line, even if no text is on it and we may
6088 never eat newlines. (Fixes #77669)
6090 2006-02-28 Mike Kestner <mkestner@novell.com>
6092 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
6093 and set Selected instead.
6094 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
6097 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6099 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
6101 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
6104 - Got rid of the panel. All controls are now directly added to
6106 - It is now possible to set a font with the Font property
6107 - MinSize and MaxSize property do now what they should
6108 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
6109 - Searching and selecting a font with the font textbox works now,
6110 the same applies to the style and size textbox
6111 - Draw the correct 3D border in the example panel
6112 - Fixed a little mem leak (unused fonts didn't get disposed)
6113 - Many other internal updates/rewrites...
6116 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6119 - InsertRTFFromStream: Added 'number of characters inserted' argument
6120 - set_SelectedRTF: Now using the number of characters to calculate
6121 the new location for the selection and cursor (x/y cannot be used
6122 due to potentially already wrapped text)
6124 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6126 * TextControl.cs: Added property and implemented means to allow
6127 disabling recalculation of a document (can be used to speed up
6128 multiple inserts and is needed to make RTF inserts predictable, see
6130 * RichTextBox.cs: Using the new NoRecalc property of Document to
6131 keep x/y insert locations predictable. Also makes it faster inserting
6134 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6136 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
6137 it's easier for a child control to handle the other messages without
6138 having to duplicate the special functionality
6140 - WndProc: Removed calling base handler for WM_KEYDOWN and added
6141 code to handle processing the key ourselves, in order to get
6142 access to the result of KeyEventArgs.Handled. We now only call
6143 ProcessKey if they key hasn't been handled already. Fixes #77526.
6144 - set_Text: If null or empty string is given, just clear the
6145 document. Fixes part of #77526
6147 2006-02-27 Jackson Harper <jackson@ximian.com>
6149 * SizeGrip.cs: Paint the background color before painting the grip
6150 so things look right.
6151 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
6153 2006-02-27 Mike Kestner <mkestner@novell.com>
6156 - Restructure layout and invalidation model to remove a ton of
6157 flicker from the control and speed up performance in general.
6158 - Add manual column resize, flickers like crazy, but I already have
6159 some ideas on how I'll fix that. (#76822)
6160 - Merge the three Icon-based views into a single layout method.
6161 - Move item selection interaction logic from the item since
6162 interaction with the collections is more appropriate to the view.
6163 - Deselection on non-item clicks.
6165 - Encapsulate most of the layout. Add some internal props to trigger
6166 layout. Move to a model where Items invalidate themselves instead
6167 of just invalidating the whole control every time something changes.
6168 - Invalidate on Text/Caption changes.
6169 - switch to an offset based layout model to avoid having to absolute
6170 position every element on item moves.
6171 - correct checkbox layout to conform to MS layout.
6172 * ThemeWin32Classic.cs:
6173 - refactor some column header drawing code.
6174 - fix string justification for column headers (#76821)
6175 - make SmallIcon labels top justified for compat with MS impl.
6176 * ThemeClearlooks.cs:
6177 - adjust to new ListViewItem internal checkbox bounds api.
6179 2006-02-27 Jackson Harper <jackson@ximian.com>
6181 * Control.cs: Change where implicit controls fall in the zorder.
6182 They are now on top of all children.
6183 - Synced AddImplicit code with Add
6184 - Removed unused enumerator.
6185 * SizeGrip.cs: Remove the TODO as its been TODONE.
6187 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
6189 * TextControl.cs(Insert): Combine the last lines unless the insertion
6190 string ends with \n\n, otherwise we leave one line too many (Fixes
6191 something I noticed with the testapp for #77526; the bug itself was
6192 already fixed in the previous checkin)
6194 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
6197 - SelectionColor and SelectionFont methods no longer set absolute
6198 styles. Instead, the keep font or color respectively (This
6199 resolves a long-standing FIXME in the code)
6200 - When flushing RTF text, the insert code now considers text trailing
6201 behind the insertion point (Fixes the bug where when replacing
6202 the selected text via SelectedRTF the remainder of the line behind
6203 the selection would stay on the first insertion line)
6205 - AppendText now updates the selection points after inserting text
6206 - AppendText now ensures that the last tag (sometimes 0-length) of
6207 the document is used for the style information (Fixes part of
6210 - Created new FontDefiniton class to allow describing partial style
6212 - StreamLine() now takes a lines argument, to allow it to decide
6213 whether an encountered zero-length tag is the last in the document
6214 (which must be kept to not loose the font/color contained in it,
6216 - Created Combine() and Split() methods for Marker structs, to
6217 support marker updates due to reformatted documents (soft line
6219 - Implemented Document.CaretTag setter
6220 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
6221 of the last line (Not the cause, but also exposed by bug #77220)
6222 - Added LineTag argument to InsertString method, to allow callers
6223 to force a certain tag to be used (required to force use of the
6224 trailing zero-length tag of a document)
6225 - Now updating markers in Combine(), to avoid stale tag markers
6226 - Added some method descriptions to aid maintenance
6227 - Implemented new FormatText concept, allowing additive/subtractive
6228 formatting by only specifying the components that are to be
6229 changed. This was needed for resolving the RTB.SelectedColor/
6230 RTB.SelectedFont fixmes
6231 - Added Break() support method to allow breaking up linetags (used
6232 for partial formatting)
6233 - Added GenerateTextFormat() method. It is used for partial
6234 formatting and allows to generate a full font/color from given
6235 attributes and an existing tag.
6237 2006-02-26 Jackson Harper <jackson@ximian.com>
6239 * XplatUIX11.cs: Use the correct caption height.
6240 - Translate hittest coordinates to screen coords to match MS.
6241 * XplatUIWin32.cs: When we create MDI windows we need to reset
6242 some of the style flags, so we get a nice blank window, and can
6243 draw all the decorations ourselves.
6244 - Set a clipping rectangle on the non client paint event, the
6245 window manager drawing code needs one.
6246 * Form.cs: The window manager needs to know when the window state
6248 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6249 don't need to factor in border and title sizes in these
6250 methods. TODO: Remove the args and fix the call points.
6251 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6253 - Let the driver set the cursors.
6254 - Improve active window handling
6255 - Correct sizes for title bars and buttons.
6256 - Match MS drawing better
6257 * MdiWindowManager.cs: We don't need to handle border style
6258 updates specially anymore.
6259 - Check for scrollbars when windows are done moving
6260 - Handle Active properly.
6261 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6262 correctly. I am spewing the exception though, so we don't hide the
6265 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
6267 * DataGridViewRowPostPaintEventArgs.cs,
6268 DataGridViewCellPaintingEventArgs.cs,
6269 DataGridViewRowCollection.cs,
6270 DataGridViewRowPrePaintEventArgs.cs,
6271 DataGridViewCell.cs: Clear a few warnings and implement a few
6272 exceptions that should be thrown.
6274 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6276 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6277 'inheriting' our parent's (non-default) cursor. (Part of
6280 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6282 * XplatUIX11.cs: Fixed cast to make csc happy
6284 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6286 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6287 it's for the client area (part of fix for #77479 and needed
6288 for MDI window cursor handling)
6290 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6291 the appropriate default cursors and also passing the message
6293 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6294 for non-client areas
6296 2006-02-15 Jackson Harper <jackson@ximian.com>
6298 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6299 is a real MDI window
6301 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
6303 * X11DesktopColors.cs: Instead of checking the desktop session
6304 string for "KDE" check if it starts with "KDE"
6306 2006-02-10 Jackson Harper <jackson@ximian.com>
6308 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6311 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
6313 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
6316 - Got rid of the panel. All controls are now directly added to
6318 - Changed to mono coding style
6320 2006-02-10 Jackson Harper <jackson@ximian.com>
6322 * InternalWindowManager.cs: We don't need the set visibility to
6323 false hack anymore now that peter has written beautiful shutdown
6326 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
6328 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
6329 where already explicitly destroyed
6331 2006-02-10 Jackson Harper <jackson@ximian.com>
6333 * MdiClient.cs: Handle the case where windows are too high or to
6334 the left and we need scrollbars.
6336 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
6338 * MimeIcon.cs: Added some icons
6341 - Got rid of the panel. All controls are now directly added to
6343 - Changed to mono coding style
6344 - On Linux "My Computer" and "My Network" will now show some
6345 more usefull information. A new class, MasterMount, gathers
6346 this information from /proc/mount. Updated MWFFileView to make
6347 use of this information
6348 - Fixed a bug that caused FileDialog to crash when
6349 ".recently_used" file had a zero size
6350 - FilterIndex does now what it should
6352 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
6355 2006-02-09 Jackson Harper <jackson@ximian.com>
6357 * ComboBox.cs: Don't touch if null.
6359 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
6361 * Cursor.cs: 64bit safeness fix
6362 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
6364 2006-02-09 Jackson Harper <jackson@ximian.com>
6366 * Form.cs: If a form is made into an MDI form update the styles so
6367 all the props can get set correctly.
6368 - Kill the mdi_container when we dont need it anymore.
6369 * InternalWindowManager.cs: Add missing NOT
6371 2006-02-08 Jackson Harper <jackson@ximian.com>
6373 * InternalWindowManager.cs: Respek clipping when drawing MDi
6376 2006-02-08 Jackson Harper <jackson@ximian.com>
6378 * Hwnd.cs: Add bits to track non client expose events.
6379 * XplatUIX11.cs: Track non client expose events on the hwnd. This
6380 gives us a proper invalid rect and will allow for some nice
6381 optimizations with NC client drawing
6382 - MDI windows are children windows, so move their style handling
6383 into the child window block.
6384 * InternalWindowManager.cs: Remove a state reset that was
6385 getting invoked at the wrong time. Fixes managed windows getting
6386 into a 'stuck' captured state.
6388 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
6390 * TextControl.cs (Document.ctor): Now initializing
6391 selection_anchor. Fixes #77493
6393 2006-02-07 Jackson Harper <jackson@ximian.com>
6395 * TrackBar.cs: The increment/decrements were backwards.
6397 2006-02-07 Mike Kestner <mkestner@novell.com>
6399 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
6400 to the instance itself.
6402 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
6404 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
6405 on ulongs and pointers, the size differs between 32bit and 64bit
6408 2006-02-07 Mike Kestner <mkestner@novell.com>
6410 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
6411 for 64 bit platforms to work around a metacity bug.
6413 2006-02-07 Jackson Harper <jackson@ximian.com>
6415 * TrackBar.cs: Process the input keys we need, and hookup to
6416 KeyDown instead of using WndProc, so we get key messages.
6418 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
6420 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
6422 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
6423 we need to translate the XdndVersion atoms array before sending it
6425 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
6428 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
6429 number of bits for the property, not the number of bytes. The
6430 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
6431 but would not crash since it specified 8 bits instead of 4 bits)
6432 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
6433 defined as XID -> long in the C headers)
6434 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
6435 references since those are now IntPtr to begin with
6436 - Switched all Atom.XXX 'int' casts to IntPtr casts
6437 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
6438 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
6439 - Added XChangeActivePointerGrab DllImport (for X11DnD)
6441 - Changed 'int' type for Atoms in XEvent structures to IntPtr
6442 - Changed atom in HoverStruct to be IntPtr
6444 - Removed local DllImports, switched code to use those from XplatUIX11
6445 - Removed/fixed casts related to the switch of Atom to be a IntPtr
6447 2006-02-06 Mike Kestner <mkestner@novell.com>
6449 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
6450 method signatures in the import region. There may still be some
6451 lingering struct marshaling issues, as I didn't drill down into those.
6454 2006-02-06 Jackson Harper <jackson@ximian.com>
6456 * ComboBox.cs: Dont manually set the top_item, this is computed
6457 when the scrollbar position is set.
6459 2006-02-06 Mike Kestner <mkestner@novell.com>
6461 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
6462 startup crashes on amd64. There's other fixes needed. All pinvoke
6463 usage of Atom needs to be mapped to IntPtr for example. And there are
6464 likely other int/long issues to be addressed.
6466 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
6468 * FileDialog.cs: One more...
6470 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6472 * FileDialog.cs: Next try
6474 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6476 * FileDialog.cs: First part of fix for #77464
6478 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
6480 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
6481 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
6482 AcceptButton border drawing.
6484 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
6486 * Form.cs: Moved positioning of form after auto scaling is applied,
6487 otherwise it would possibly use wrong form size.
6489 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
6491 * Control.cs (RecreateHandle): No need to re-create any child
6492 controls, the child windows will get destroyed automatically by
6493 the windowing system or driver, and re-created when the handle
6494 is being accessed the first time. Fixes #77456
6495 * Form.cs: No longer setting the form to closing if the handle is
6496 being recreated. This seems like the right thing to do, don't
6497 have a bug or testcase for this, though.
6499 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6501 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
6502 controls to avoid unwanted side effects
6504 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6507 - ScaleCore needs to scale the bounds, not the ClientSize of the
6508 control. Fixes #77416.
6509 - DefaultSize is 0,0 for control
6511 - DefaultSize is 100, 20
6512 - SetBoundsCore: Now enforcing the height, no matter if the provided
6513 height is more or less than the preferred one, as long as AutoSize
6515 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
6517 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
6520 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
6521 call unless both performLayout is true *and* we have a pending
6523 - ResumeLayout: MS does not completely nest Suspend and Resume,
6524 they bottom out at 0, fixed our code to match that.
6525 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
6526 SetBoundsCore, we were updating even when we shouldn't. This fixes
6527 swf-anchors mis-anchoring when resizing the app fast and lots.
6528 - UpdateDistances: Now only setting the left and top distance if
6529 we have a parent and are not suspended, this is based on
6530 a suggestion by Don Edvaldson in bug #77355.
6531 - OnVisibleChanged: Fixed logic when to create the control. We may
6532 not create the control if we have no parent or if it's not visible;
6533 switched to using Visible property instead of is_visible field
6534 since the property also considers parent states. This fixes a bug
6535 when starting Paint.Net
6537 2006-02-02 Jackson Harper <jackson@ximian.com>
6539 * Form.cs: If the forms handle hasn't been created yet don't call
6540 into xplatui to make it top most, just set the topmost flag on the
6541 form in CreateParams
6542 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6544 2006-02-01 Jackson Harper <jackson@ximian.com>
6546 * ScrollableControl.cs: Refactored the Recalculate method a
6547 little, this wasn't handling all the variants of bottom and right
6548 bars needed to be added and added/removed based on their
6549 counterparts being added/removed (which changes the drawable
6550 size). Also we special case client widths and heights of 0 and
6551 don't add the scrollbar for those.
6553 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
6556 - Added method to get AbsoluteGeometry(); currently unused, but might
6557 be used in the future, if we try again to figure out toplevel
6558 coordinates with some more crappy window managers
6559 - Added FrameExtents() method to retrieve the WM set decoration size
6560 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
6561 to deal with at least KDE, FVWM and metacity (Fixes #77092)
6563 - Added whacky_wm tracking var for metacity
6564 - Added logic to have default menu height if the actual menu height
6565 has not yet been calculated (part of fix for #77426)
6566 * Form.cs: Keep track whether client size has been set and re-set
6567 it if a menu is added/removed afterwards (Fixes #77426)
6569 2006-01-31 Jackson Harper <jackson@ximian.com>
6571 * Control.cs: When a new Site is set on the component attempt to
6572 pull the AmbientProperties from it.
6574 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
6576 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6577 in the background of the owning form. Fixes #77332
6579 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6581 * MimeIcon.cs: Fix for #77409
6583 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6585 * XplatUIX11GTK.cs: Initial import
6587 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
6589 * FixedSizeTextBox: fixes class signature
6591 2006-01-30 Jackson Harper <jackson@ximian.com>
6593 * FixedSizeTextBox.cs: New internal class that represents a
6594 textBox that will not be scaled.
6597 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6600 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6602 * XplatUIX11.cs: Retrieve default screen number instead of
6603 assuming 0. Attempted fix for #77318
6605 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6608 - GetWindowPos: When a window is parented by FosterParent, use
6609 the desktop instead of FosterParent as the base to get coordinates
6610 - CreateWindow: Don't make FosterParent the parent window for Popups
6611 if we don't want a taskbar entry, Popups automatically don't get one
6612 * Hwnd.cs: Need to call remove to actually remove the key from the
6615 2006-01-30 Mike Kestner <mkestner@novell.com>
6617 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6619 2006-01-30 Jackson Harper <jackson@ximian.com>
6622 * TreeNode.cs: Raise events no matter how the treenode is
6623 checked. Patch by Don Edvalson.
6625 2006-01-30 Jackson Harper <jackson@ximian.com>
6627 * TreeNode.cs: Signature fix.
6629 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
6631 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6633 2006-01-20 Mike Kestner <mkestner@novell.com>
6635 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6636 event forwarding when menus are active.
6637 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
6638 Most of the patch is pdb's with a little rework.
6640 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6642 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
6643 Removed GetMenuDC and ReleaseMenuDC methods; replaced
6644 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6645 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6646 * InternalWindowManager.cs: Added use of PaintEventStart/End to
6647 handling of WM_NCPAINT message, now passing the PaintEventArgs to
6648 the PaintWindowDecorations method
6649 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6650 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6651 * MenuAPI.cs: Made tracker window invisible
6653 - Removed GetMenuDC and ReleaseMenuDC methods
6654 - Implemented the client=false path for PaintEventStart and
6657 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6659 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6660 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6663 - MaximizeBox, MinimizeBox: Recreate the handle when setting
6665 - CreateParams: Reworked the styles to match MS look'n'feel,
6666 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6667 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6669 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6671 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
6672 window is not mapped, since otherwise every form that's being
6673 created is considered minimized, which is wrong.
6674 * Form.cs: Catching the exception and returning our internal value
6677 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6679 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6680 SetWindowMinMax() to have means to tell the driver about the minimum,
6681 maximum and maximized state window sizes. (Part of the fix for #76485)
6683 - Implemented tracking of minimum and maximum window size, now calling
6684 new SetWindowMinMax() driver method to tell the driver (Part of the
6686 - Finished handling of WM_GETMINMAXINFO method, now setting all values
6687 (Completes fix for #76485)
6688 - Calling new SetWindowMinMax driver method when the handle for a
6689 form is created, to make sure the driver knows about it even if
6690 the values have been set before the window was created
6691 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6692 to avoid messing up our anchoring calculations (partial fix
6694 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6696 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6697 - Improved GetWindowState() to detect 'Minimized' state on Metacity
6698 (and presumably other freedesktop.org compliant WMs). Left the
6699 assumption unmapped=minimized, needed for SetVisible to work.
6700 - Now setting the window state when creating windows
6701 - Fixed SetVisible to consider/set the window state when mapping
6702 a Form. We cannot set the state before it's mapped, and we cannot
6703 use Form.WindowState once it's mapped (since it would ask the
6704 driver and get 'normal'. Therefore, we grab the state before
6705 mapping, map, and then set state.
6706 - Implmemented SetWindowMinMax method; Metacity does not seem to
6707 honor the ZoomHints, though.
6709 - Removed MINMAXINFO (moved to XplatUIStructs)
6710 - Added SetWindowMinMax stub (on Win32 the only way to set that
6711 information is in response to the WM_GETMINMAXINFO message, which
6712 is handled in Form.cs)
6713 - Added logic to SetVisible to set the proper window state when a
6714 form is made visible (fixes #75720)
6716 2006-01-26 Jackson Harper <jackson@ximian.com>
6718 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6719 same way we handle them with Invoke.
6721 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
6724 - Added tracking of window state so CreateParams can return
6725 the appropriate style
6726 - Moved setting of WS_CAPTION style in CreateParams to allow
6727 styles without caption
6728 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
6729 control if the TextBox property is accessed. Fixes #77345
6731 - get_Created: now uses is_disposed and is_created to determine
6732 return value (suggested by Jackson)
6733 - CreateHandle: No longer exits if the handle is being recreated
6734 - RecreateHandle: If the handle is not yet created call the
6735 appropriate method to create either control or handle. If the
6736 control is already created CreateHandle will simply exit instead
6737 of just creating the handle
6738 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6739 now SendMessage WM_DESTROY directly to the control when DestroyWindow
6742 - When DestroyWindow is called, instead of waiting for the
6743 DestroyNotification from X11, we directly post it to the WndProc
6744 and immediately dispose the hwnd object.
6745 Same applies to DestroyChildWindows, and this obsoletes the
6746 expose_pending tracking. Contrary to Win32 behaviour we destroy our
6747 child windows before our own, to avoid X11 errors.
6748 - Removed the direct sending of WM_PAINT on UpdateWindow
6750 - Reworked DoEvents and GetMessage to allow access to internal queue
6751 even when trying non-blocking access to the queue. Fixes #77335.
6752 Based on a patch suggestion by Don Edvalson. The new private
6753 GetMessage can now also be used as a backend for a PeekMessage
6755 * XplatUI.cs: Improved debug output for CreateWindow
6757 2006-01-25 Jackson Harper <jackson@ximian.com>
6759 * Help.cs: Allow param to be null. Patch by Don Edvalson.
6761 2006-01-24 Jackson Harper <jackson@ximian.com>
6763 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6764 when we have a MaxDropItems lower then the selected index.
6766 2006-01-24 Jackson Harper <jackson@ximian.com>
6768 * Control.cs: Don't allow selection of non visible controls, allow
6769 selection of controls without parents.
6771 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6773 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6774 * DataGridDrawingLogic.cs: Add editing row only when is necessary
6776 2006-01-23 Jackson Harper <jackson@ximian.com>
6778 * UpDownBase.cs: Make the textbox handle all the selection and
6779 tabbing. This fixes tabing to updown controls.
6781 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6783 * TextBoxBase.cs: fixes exception thown the object was null
6785 2006-01-23 Jackson Harper <jackson@ximian.com>
6787 * ButtonBase.cs: Just use the base CreateParams. They set
6788 visibility and enabled correctly.
6791 * MonthCalendar.cs: Lets let the base set as much of the
6792 createparams as possible so we don't have duplicate code all over
6795 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
6797 * ThemeGtk.cs: Added TrackBar and some experimental code to
6798 get double buffering back
6800 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
6802 * DataGrid.cs: Allows row number set internally higher than the last
6803 when creating a new row. Restores the editing functionality.
6805 2006-01-20 Mike Kestner <mkestner@novell.com>
6807 * MimeIcon.cs: delay Image creation until the icons are accessed
6808 instead of creating 190 scaled images on GnomeHandler startup.
6810 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6812 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6813 first call base before processing the event. Fixes #77279
6815 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6817 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6818 that the stride for the GDI bitmap would match the stride of
6821 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
6823 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6825 2006-01-19 Jackson Harper <jackson@ximian.com>
6827 * ComboBox.cs: Hookup the text controls keydown event so we get
6828 those when the text control has the focus.
6830 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6832 * Label.cs: Now using the base events instead of defining new ones;
6833 this allows us to just call the base properties without having to
6834 duplicate all base property logic
6836 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6838 * Label.cs: A label by default is not a tabstop (Fixes one of our
6839 failing nunit tests)
6841 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6843 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6844 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6846 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6848 * Cursor.cs: Reimplemented creating cursor bitmaps without using
6849 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6852 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
6853 constructor creates images that can't be saved. Part of the fix
6855 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6856 - SetWindowState: Switched ShowWindow flags (part of an upcoming
6857 bug fix for handling window state in forms properly)
6859 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6861 * ThemeGtk.cs: Simplify ScrollBar drawing
6863 2006-01-18 Jackson Harper <jackson@ximian.com>
6865 * Splitter.cs: Set the default dock style for the splitter control
6868 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6870 * ThemeGtk.cs: Corrected StateType and ShadowType for
6873 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6875 * Control.cs: Make use of Theme.DoubleBufferingSupported
6877 - Added drawing for flat style buttons
6878 - Added ScrollBar drawing
6880 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6882 * ThemeClearlooks.cs: Removed some unneeded code.
6883 * ThemeGtk.cs: First part of ThemeGtk enhancements.
6885 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6887 * LinkLabel.cs: We need to update the hover drawing when
6888 leaving the control as well.
6890 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
6892 * DataGrid.cs: Clicking on non empty areas in the columns
6893 area was giving an exception
6895 2006-01-17 Jackson Harper <jackson@ximian.com>
6897 * ThemeWin32Classic.cs:
6898 * ListView.cs: Do not draw/clip the headers when the header style
6901 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6903 * DataGrid.cs: Fixes 77260
6905 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6907 * DataGrid.cs: Clicking on a column on a empty grid was giving
6910 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6912 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6913 or any keypress will crash the grid.
6915 2006-01-17 Mike Kestner <mkestner@novell.com>
6917 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6918 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
6919 invisible/previously-visible items.
6922 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
6924 * ThemeClearlooks.cs:
6925 - Added CL_Draw_Button method; now other theme controls that are
6926 not derived from button or do not have a button can draw buttons
6928 - Updated ComboBox drawing
6929 - Beautified RadioButton drawing
6930 - Corrected drawing of bottom and left tabs
6931 - Beautified DateTimePicker and MonthCalendar
6932 - Added CPDrawButton and CPDrawRadioButton
6934 2006-01-16 Jackson Harper <jackson@ximian.com>
6936 * ComboBox.cs: Set the initial value of the scrollbar to the
6937 current index. Reduce the numbers of refreshs and IndexOfs called.
6939 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
6941 * FileDialog.cs: When the file listview is focused hitting the
6942 backspace key moves the fileview to the parent directory
6944 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6947 - Added RecreateHandle call when changing taskbar visibility to
6948 trigger reparenting in Win32 driver (Fixes #75719)
6949 - If a window has minimize or maximize buttons, it cannot have
6952 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6953 the toplevel form with FosterParent (A toolwindow not on the
6954 taskbar) (Fixes #75719)
6955 - Made FosterParent a toolwindow
6957 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6959 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6961 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6963 * ToolTip.cs: If SetToolTip is called from a control and the mouse
6964 is currently over that control, make sure that tooltip_window.Text
6967 2006-01-13 Mike Kestner <mkestner@novell.com>
6969 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6971 2006-01-13 Jackson Harper <jackson@ximian.com>
6973 * TreeView.cs: On MS GetNodeAt never actually factors in the X
6974 value passed. Also redraw the selected node when we recieve
6975 focus, so tabbing between trees works correctly.
6977 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6979 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6980 ~/.gconf/%gconf-tree.xml, so use
6981 .gconf/desktop/gnome/interface/%gconf.xml
6983 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6985 * TextControl.cs: Draw text in gray if control is disabled
6987 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6989 * TreeView.cs: Draw the focus rectangle outside the highlight, to
6990 make sure it's always visible. Fixes #76680.
6992 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6994 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6996 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
6998 * PageSetupDialog.cs: Added.
6999 * PrintDialog.cs: Attributes.
7000 * PrintPreviewControl.cs: Updates.
7001 * PrintPreviewDialog.cs: Updates.
7003 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7005 * Control.cs: Undid my selection check fix, since it's not needed
7007 - Now considering the presence of hscroll/vscroll when sizing
7008 vscroll/hscroll respectively. Fixed bug #77077
7009 - Added Left/Up/Down/Right to IsInputKey list to prevent
7010 ContainerControl from stealing them. This fixes what I broke
7011 with my last checkin.
7013 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7015 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7016 I finally understand how the property can be set without a setter :-)
7018 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7021 - Switched RunLoop to use static Message.Create to create a
7023 - Added PreProcessMessage call in runloop for keyboard events; this
7024 is part of the fix for #77219, I overlooked this originally in the
7025 MSDN doc for PreProcessMessage
7027 - Removed call to PreProcessMessage from handling of keyboard
7028 messages; it's supposed to be done in the message pump
7029 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7030 per MSDN documentation.
7031 - IsInputChar: All chars are input chars by default; removed the
7032 parent calling chain, MS does not document that
7033 - PreProcessMessage: If IsInputChar is true, we want to return false
7034 to allow dispatching of the message
7035 - When selecting the next control, now also check that we're not
7036 selecting ourselves again and therefore return a false positive.
7038 - Tried to match return values for IsInputKey and ProcessDialogKey
7039 to what MS returns; moved processing of our special keys outside
7040 ProcessDialogKey since MS does not seem to return true on those.
7041 - Moved code that previously was in ProcessDialogKey into new private
7042 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7043 - Reworked handling of WM_CHAR to not have to duplicate code from
7044 Control.cs anymore, instead we simply call down to base.
7046 2006-01-12 Jackson Harper <jackson@ximian.com>
7048 * ComboBox.cs: We always need to refresh the text area when
7049 EndUpdate is called. Fixes the combobox in the file dialog.
7050 * Control.cs: Don't create the creator_thread until the controls
7051 handle is created. Also in InvokeRequired we check if the
7052 creator_thread is null. This gives the effect of InvokeRequired
7053 returning true if the controls handle is not created yet, and
7056 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7059 - Added StartLoop() driver method. This is used to allow drivers to
7060 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
7061 loop for a particular thread
7062 - Added EndLoop() driver method. This is called once the message
7063 pump for the thread is shut down
7064 - Added SupportsTransparency method to allow the driver to indicate
7065 opacity support for windows
7067 - Removed TODO attribute, completed AllowTransparency property
7068 - Added documented logic to Opacity
7069 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
7070 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
7071 versions of CompatibleTextRendering
7072 * X11Structs.cs: Added opacity atom to our atom enumeration
7073 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
7074 of a form might be set before it's reparented by the WM, and we need
7075 the opacity value without calling up to Form)
7076 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
7077 SupportsTransparency() driver methods
7078 * Application.cs: Now calling StartLoop and EndLoop driver methods
7080 - Added opacity atom registration
7081 - Added StartLoop()/EndLoop() methods. They're empty right now but
7082 will need to get implemented when we switch to a per-thread queue
7083 - Implemented SupportsTransparency() method
7084 - Implemented SetWindowTransparency() method
7085 - Added support for setting the opacity value when a window is
7086 reparented (since the opacity needs to be set on the WM frame)
7087 * XplatUIOSX.cs, XplatUIWin32.cs:
7088 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
7090 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
7092 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
7094 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
7096 * FileDialog.cs: Added ToolTip for MWFFileView
7097 * MimeIcon.cs: Rewrote GnomeHandler.
7098 - Get currently used gnome icon theme from
7099 ($HOME)/.gconf/%gconf-tree.xml
7100 - Make use of inherited icon themes
7101 - Support SVG icon themes like Tango via librsvg
7103 2006-01-12 Miguel de Icaza <miguel@novell.com>
7105 Revert's Jackson's revert which broke 2.0 builds. Fix both
7108 * Application.cs: Move the use_compatible_text_rendering outside
7109 the NET_2_0 define. If we ever need to use the
7110 use_compatible_text_rendering on the individual controls they will
7111 access the variable from the common shared code paths.
7113 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7116 - Added more granular debug options
7117 - Added method to print both window text and id
7118 - Switched debug output to use new Window() debug method
7119 - Added IsEnabled() driver method
7120 - Added EnableWindow() driver method
7122 - Removed end_modal; no longer needed, new loop handles termination
7123 via 'closing' variable
7124 - If form is modal, setting DialogResult will now initiate loop
7125 termination via 'closing' variable
7126 - Added support for is_enabled/WS_DISABLED to CreateParams
7127 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
7129 - Removed code that's now in RunLoop from ShowDialog()
7130 - Added various documented sanity checks to ShowDialog()
7131 - Added handling of WM_DESTROY message; we set 'closing' on getting
7132 the message to indicate the message pump to terminate
7133 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
7134 send by the Application.ExitThread method. (We send the message
7135 to destroy the window after all other events have been
7136 processed through the queue, instead of destroying the handle
7138 - Moved code from Close() method to WM_CLOSE handler; added logic
7139 to only send close-related events if the form is not displayed
7141 * Splitter.cs (..ctor): Fixed typo in resource name
7143 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
7145 - set_Cursor: Now only setting calling into XplatUI if the handle for
7146 the control is already created; this avoids implict handle creation
7147 or crashes if it's not created
7148 - set_Enabled: Now setting the enabled state via the new driver method
7149 instead of just tracking it
7150 - CreateParams: Added logic to set WS_DISABLED based on enabled state
7151 - CreateControl: Reordered event firing and method calls to more
7152 closely fire events in the order MS does. Now setting the
7153 enabled state in the driver when creating the control.
7154 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
7156 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
7157 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
7158 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
7160 - Added tracking of window enabled state (get_Enabled/set_Enabled)
7161 - Added EnabledHwnd property to easily allow a driver to find the
7162 handle of the first enabled window in the parent chain (this is
7163 used by drivers to pass up input events of disabled windows)
7164 * XplatUIDriver.cs: Added IsEnabled() method
7166 - Removed crude and obsolete exiting tracking variable
7167 - Removed internal ModalRun(); replaced by RunLoop()
7168 - Implemented private CloseForms() method to allow closing all
7169 windows owned by a particular (or all) threads
7170 - Exit() now properly closes all windows without forcing the message
7172 - Removed obsolete InternalExit() method
7173 - Changed Run() methods to use new RunLoop() message pump
7174 - Implemented new RunLoop() method for both modal and non-modal forms
7176 - get_CreateParams: Added setting of WS_DISABLED
7177 - Simplified ShowDialog(); now all the work is done in RunLoop(),
7178 invoked via Form.ShowDialog()
7179 * NativeWindow.cs: We don't remove the window from the collection when
7180 the handle is destroyed; there might still be messages for it in the
7181 queue (mainly the resulting WM_DESTROY); instead it will be removed
7182 when Control calls InvalidateHandle in the WM_DESTROY handler
7184 - CreateWindow: Added logic to handle the WS_DISABLED window style
7185 - EnableWindow: Implemented based on Hwnd.Enabled
7186 - GetMessage: Reset PostQuitState so the method can be called again
7187 - Implemented support for disabled windows (passing messages to the
7188 first enabled parent) in handling all input messages
7189 - Added optimizations for handling Expose events
7190 - Implemeted new driver method IsEnabled()
7191 - Now always resetting paint pending tracking vars when we start paint
7192 - Re-implemented UpdateWindow via just sending a WM_PAINT message
7193 * XplatUIOSX.cs: Added IsEnabled method stub
7194 * XplatUIWin32.cs: Implemented new IsEnabled() method
7196 2006-01-11 Jackson Harper <jackson@ximian.com>
7198 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7199 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
7201 * ColorDialog.cs: Clear out the old form before adding the new
7204 2006-01-11 Jackson Harper <jackson@ximian.com>
7206 * X11Dnd.cs: Make sure to add all the text formats when adding
7207 strings to the data object.
7208 * TreeNodeCollection.cs: When adding to a sorted tree we need to
7209 do some redrawing too. Also change the UpdateNode to an
7210 UpdateBelow so the newly added node gets painted.
7212 2006-01-11 Miguel de Icaza <miguel@novell.com>
7214 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7215 LinkLabel.cs, PropertyGrid.cs: Implement the
7216 UseCompatibleTextRendering property for 2.x
7218 * Application.cs (SetCompatibleTextRenderingDefault): Add.
7220 2006-01-11 Jackson Harper <jackson@ximian.com>
7222 * TreeView.cs: Use the property for setting the selected node so
7223 the correct events get raised.
7224 * TreeNode.cs: Update the tree when the fore/back colours of a
7227 2006-01-10 Jackson Harper <jackson@ximian.com>
7229 * TreeView.cs: Allow setting SelectedNode to null.
7231 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7233 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
7235 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7237 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
7239 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7241 * PrintDialog.cs: Added attributes and set default property values.
7243 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7245 * PrintControllerWithStatusDialog.cs:
7246 Added PrintControllerWithStatusDialog.
7248 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7250 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7251 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7253 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7255 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7257 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
7259 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7260 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7262 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7264 * MimeIcon.cs: Added internal class SVGUtil.
7266 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7268 * FileDialog.cs: Don't crash if there are two files with the
7269 same name but different locations.
7271 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
7273 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7274 dates across multiple month grids. Used to not highlight entire
7275 month, but does now.
7277 2006-01-06 Jackson Harper <jackson@ximian.com>
7279 * MonthCalendar.cs: Removed DoEvents call to prevent a running
7280 message loop. Change timer intervals to numbers that seem more
7283 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
7285 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7286 object for location info since screen object is now implemented.
7288 2006-01-05 Jackson Harper <jackson@ximian.com>
7290 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7291 * AsyncMethodResult.cs: We no longer use a WeakReference for the
7292 AsyncMethodResult, this is because we ALWAYS want the
7293 ManualResetEvent to get set.
7294 * Control.cs: When disposing use an async invoke to call shutdown
7295 code, so that thigns don't block on the finalizer thread. Also
7296 check if we even have a message loop before trying to send
7297 messages, if we don't then don't bother sending messages.
7298 - No more weak references for async methods
7299 * XplatUIDriver.cs: No more weak references for async methods.
7301 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7303 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7304 returns two FontFamily with the same name
7306 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
7308 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
7309 drawing disabled text. Instead using the ColorGrayText color
7311 2006-01-04 Jackson Harper <jackson@ximian.com>
7313 * TreeNode.cs: redraw the node when its image index is changed.
7315 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
7317 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
7318 time I checked there are no others like it.
7320 2006-01-04 Jackson Harper <jackson@ximian.com>
7322 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
7323 this gives the behavoir I was looking for.
7324 * Control.cs: Special case Invoking EventHandlers, this matches MS
7325 and fixes part of bug #76326.
7327 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7329 * ThemeClearlooks.cs, FileDialog.cs:
7330 - Reflect the latest Theme class changes
7331 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
7334 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7336 * Theme.cs: Cache UI resource images and resize them if needed
7338 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7340 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
7341 is called. This fixes the crash in Nexxia when setting the font
7342 attributes in the chat. [However, RTF needs a look-over to make sure
7343 that all SelectionXXX methods handle the special case that selection
7344 is empty and therefore the change must be applied to all text starting
7345 at the cursor/selection start]
7347 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7349 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7350 XplatUIOSX.cs: Added SendMessage and PostMessage methods
7351 * X11Keyboard.cs: Switched to new way of calling PostMessage
7353 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
7355 * Theme.cs: Added theme interface for images to allow the theme to
7356 control what images are used for things like FileDialog, MessageBox
7358 * MessageBox.cs: Now uses the new Theme icon/image interfaces
7360 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
7363 - Removed some dead code
7364 - Opening a recently used file does work now
7365 - Small UI enhancements
7368 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
7370 * FileDialog.cs: Forgot too add __MonoCS__
7372 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
7374 * FileDialog.cs: We are able to read recently used files now let's
7375 go on and write them.
7377 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
7379 * FileDialog.cs: Breathe some life into "last open"/"recently used"
7381 * MimeIcon.cs: Do a check for the top level media type also
7383 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
7385 * ThemeClearlooks.cs:
7386 - Added CPDrawStringDisabled
7387 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
7388 some chars if the text doesn't fit into text_rect
7389 - DrawListViewItem: If View = View.LargeIcon center the image;
7390 rewrote the drawing of ListViewItem.Text if View =
7393 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
7395 * MimeIcon.cs: Use default KDE icon theme if there is no
7396 "48x48" directory for the current icon theme, fixes #77114
7397 * Mime.cs: Disable not working and actually not used code.
7398 * ThemeWin32Classic.cs:
7399 - Replace "new SolidBrush" in GetControlBackBrush and
7400 GetControlForeBrush with ResPool.GetSolidBrush
7401 - Changed DrawListViewItem from private to protected virtual
7403 - Added form.MaximizeBox = true
7404 - Don't throw an exception if there is a broken symbolic link
7406 2005-12-23 Jackson Harper <jackson@ximian.com>
7408 * TabControl.cs: Give the panels focus, keyboard navigation is
7409 fixed so this works correctly now.
7410 - We need these key events also.
7411 * ToolBar.cs: Remove some of the poor mans double buffering.
7413 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
7415 * ComboBox.cs: The internal TextBox now returns the focus.
7417 2005-12-23 Jackson Harper <jackson@ximian.com>
7419 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
7421 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7423 * Control.cs: Removed debug code
7424 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
7427 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7429 * Control.cs: When creating the control, update the Z-order after
7430 all it's children are created, too. (Fixes nexxia not showing
7433 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
7435 * Control.cs: Do not update the anchoring distances if layout is
7436 suspended, instead do it once layout is resumed
7438 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7441 - After many hours of debugging, for both Jackson and
7442 myself, it turns out that it helps to set the parent of a control
7443 if you want to actually see it onscreen. In the spirit of that
7444 discovery, we're now setting the parent of the control and
7445 it's children when the control's handle is created. This fix
7446 will make Lutz Roeder's Reflector run happily.
7447 - now just creating the handle instead of the whole control when
7448 getting a graphics context for the control.
7450 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7452 * ScrollableControl.cs: When calculating the canvas, don't consider
7453 the scrollbar widths. Instead, predict if horizontal scrollbar
7454 will affect canvas when deciding on vertical display and vice versa.
7456 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
7458 * RichTextBox.cs: Set default RTF font for documents that don't
7459 have a font table (Fixes #77076)
7461 2005-12-22 Jackson Harper <jackson@ximian.com>
7463 * TextBoxBase.cs: It's difficult to do, but you can have an empty
7464 clipboard. This prevents a NullRef in that case.
7465 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
7466 clipboard. PRIMARY is for the currently selected text only. (We
7467 should implement PRIMARY at some point.
7469 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7471 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
7472 a Unicode function with a structure that was defined in Ansi way.
7475 2005-12-21 Jackson Harper <jackson@ximian.com>
7477 * StatusBar.cs: Statusbar handles its fore/back colours on it's
7478 on. Because thats how it rolls. (and this avoids it using ambient
7480 * ThemeWin32Classic.cs: Use the proper back color for filling.
7481 * Menu.cs: Use the system menu bar color for drawing menu
7482 bars. Using the window back color will bring ambient colours into
7485 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
7487 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
7488 Bitmaps were created and not disposed.
7490 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7492 * Control.cs (CreateControl): Don't do anything if the control is
7493 already created, otherwise we'd fire the OnCreated event more than
7496 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7498 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
7499 will always match. Instead return -1. Fixes #76464.
7501 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7503 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
7504 neither the beginning nor the end of the line (Fixes bug #76479)
7506 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
7509 - ControlNativeWindow.ControlFromHandle(): Now handling situation
7510 where handle is invalid
7511 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
7512 instead of slower linear search
7513 * NativeWindow.cs: Don't remove the window from the hashtable until
7514 after the driver has destroyed it (since the driver might use
7515 Control.FromHandle to lookup the control object
7516 * Hwnd.cs: Added DestroyPending property to track if a window is
7517 already destroyed as far as the driver is concerned and only hasn't
7518 yet notified the control
7520 - Activate(): Check if the window is still valid before using the
7522 - Implemented DestroyChildWindow() method to mark child windows as
7523 destroyed when a window is destroyed. This prevents situations
7524 where we might call an X method based on queued events for a
7525 window that already has been destroyed but we haven't yet pulled
7526 the destroy method from the queue.
7527 - Added a call to the new DestroyChildWindow() method to the drivers
7528 DestroyWindow code. Also now marking the destroyed window itself
7531 2005-12-20 Jackson Harper <jackson@ximian.com>
7534 * StatusBarPanel.cs: Don't calculate panel sizes on draw
7535 anymore. Just do them when needed, also track the rects of panels
7536 so that we can optimize refreshing more in the future.
7538 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
7540 * ColorDialog.cs: Fixed focus drawing in small color controls
7542 2005-12-19 Jackson Harper <jackson@ximian.com>
7544 * InternalWindowManager.cs:
7545 * MdiWindowManager.cs: Cleanup some coordinate system changes so
7546 moving windows works properly.
7548 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
7551 - Removed call to InitLayout() from SetBoundsCore(); doc says
7552 it's only called when a control is added to a container
7553 - Split InitLayout logic, moved to separate UpdateDistances() method
7554 since we need to perform those calculations more often than just
7555 when adding the control to a container. (Needed to fix #77022)
7556 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7557 - Reduced the OnBindingContextChanged events count, don't send them
7558 unless the control is created, we still aren't totally matching
7559 MS, but I can't quite figure out some of their rules
7561 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7563 * ThemeClearlooks.cs: Corrected distance between ProgressBar
7566 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7568 * ThemeClearlooks.cs:
7569 - Updated ProgressBar drawing
7570 - Corrected drawing of ScrollBars and scroll buttons
7571 - Some temporary fixes for minor pixel artefacts
7573 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
7576 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7577 cause events to be sent in the same order as MS does.
7578 - Added ChangeParent() method to trigger various OnXXXChanged events
7579 that need to be fired when a parent changes (This is a reworking
7580 of the patch from r54254, with the X11 errors fixed)
7581 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7582 since on MS we get OnLayoutChanged events when calling Clear()
7583 - Changed Enabled property to consider parent state as well, if a
7584 parent is not enabled, the control will not be either
7585 - Changed Parent property to simply call Controls.Add() since that
7586 now does all the work required, this way we avoid code duplication
7587 - Threw in a few OnBindingsContextChanged calls to try and match
7588 when MS sends them. We seem to send a few too many, though.
7589 - Added call to CreateControl when adding the control to a parent.
7590 We were never calling CreateControl. Still needs some work, in
7591 some places we treat HandleCreated and ControlCreated as equal,
7593 - Removed obsolete commented out code from UpdateZOrder()
7595 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7597 * ThemeClearlooks.cs: Updated TrackBar drawing.
7599 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7601 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7603 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7605 * FileDialog.cs: Add the Help button and the open readonly
7606 checkbox only if needed
7608 2005-12-16 Jackson Harper <jackson@ximian.com>
7610 * Control.cs: Make sure we have an active menu before trying to
7611 process commands on it. Prevents menu-less forms from crashing
7612 when Alt is pressed.
7613 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7615 * RichTextBox.cs: Expand statement to help out gmcs and fix the
7618 2005-12-16 Jackson Harper <jackson@ximian.com>
7620 * InternalWindowManager.cs: Don't translate tool windows screen
7621 coordinates. This fixes windows 'bouncing' around when being moved.
7623 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7626 - MaxLength now treats 2^31-1 equal to unlimited length (this is
7627 not quite MS compatible, MS uses that number only for single line
7628 and 2^32-1 for multi-line, but I figure it won't hurt keeping
7630 - Now enforcing the MaxLength limit when entering characters
7631 - Added argument to internal Paste() method to track if it's called
7632 from programatically or via keyboard, since keyboard driven pastes
7633 need to enforce max-length
7634 - Added logic to Paste to only paste as many chars as MaxLength
7636 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7638 - Added Length property to return number of characters in document
7639 - Added private CharCount property which only tracks actual chars
7640 in the document (no linefeeds) and fires event when CharCount
7642 - Added tracking of character count to all methods that alter it
7643 - Added LengthChanged event to allow applications to subscribe
7644 to any changes to the document
7646 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7649 - Removed local password_char field (moved to TextBoxBase)
7650 - Now setting the document's password var when password is
7653 - Added password_char field (needed here so MultiLine can
7655 - Added logic to MultiLine property setter to set the document's
7656 variable when password display is allowed
7657 - Removed debug code and made some debug code conditional
7659 - Added RecalculatePasswordLine() method to handle special password
7661 - Added PasswordChar property, also added related tracking vars
7662 - Draw() method now uses local text var for grabbing text to draw,
7663 this var is set to line.text unless we're doing password display,
7664 then it is set to the pre-generated all-password-chars line
7665 - Added calling RecalculatePasswordLine() method for password lines
7667 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7670 - Added Reparented property to allow tracking of Window Manager
7671 reparenting actions (which affect X/Y calculations of toplevel
7673 - Made ToString() print window handles in hex
7675 - AddConfigureNotify(): Now uses reparented state off Hwnd to
7676 determine if X/Y needs offsetting
7677 - AddConfigureNotify(): Fixed offset calculations
7678 - Now adds ReparentNotify messages into the queue
7679 - Now processes ReparentNotify messages and causes a
7680 WM_WINDOWPOSCHANGED message to be sent upstream if a window
7681 is reparented (as most likely it's X/Y coordinates are changed
7684 2005-12-14 Jackson Harper <jackson@ximian.com>
7686 * XplatUIX11.cs: Tool windows still need to respek focus.
7688 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7690 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7691 have a working release
7693 2005-12-13 Jackson Harper <jackson@ximian.com>
7695 * Form.cs: Update styles after setting the border style regardless
7696 of whether or not the window is using a window manager.
7698 2005-12-13 Jackson Harper <jackson@ximian.com>
7700 * Form.cs: We now hook into an internal window manager instead of just an
7701 MDI subsystem, this is so we can have properly behaving tool windows.
7702 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7703 * InternalWindowManager.cs: New internal class that acts as a
7704 window manager for tool windows and as a base for mdi windows.
7705 * MdiWindowManager.cs: New class that acts as a window manager for
7708 2005-12-12 Jackson Harper <jackson@ximian.com>
7710 * Control.cs: Updates so we match behavoir for for implicit
7711 controls. Fixes explosions in MDI.
7713 2005-12-12 Jackson Harper <jackson@ximian.com>
7715 * Control.cs: Implement Invalidate (Region).
7717 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
7720 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
7721 the same events as MS does. MS fires events for each property
7722 except, for unknown reasons, Cursor, when the control is reparented.
7723 I can't seem to totally match add/remove since MS also fires some
7724 VisibleChanged events, which makes no sense. Consolidated the
7725 parenting code into a separate method so it can be called from
7726 both Add and Remove. set_Parent no longer needs any special logic
7727 as it calls the parent's add method which implicitly fires
7729 - Removed some obsolete code and debug output
7730 - Enabled state is inherited from parents, if this is enabled
7732 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7734 * Form.cs: Removed commented out code
7736 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7739 - Added internal version of Invoke, with additional argument
7740 indicating if we're calling it from a Dispose() handler. That
7741 way we can avoid BeginInvoke throwing an exception if we're
7742 calling for an already destroyed window.
7743 - Added a dispose argument to BeginInvokeInternal, and made the
7744 check if a valid window handle chain exists conditional on
7745 it not being a dispose call
7746 - Removed code in DestroyHandle to destroy our children. Since we
7747 now handle the WM_DESTROY message we will catch all our children
7749 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7751 - Added a field to track the application context of the form.
7752 - No need to set closing variable as response to WM_CLOSE, instead
7753 we destroy the window. We also call PostQuitMessage if the form
7754 has an application context (which makes it the main app form,
7755 which, when closed terminates the app)
7757 - Dropped Exit() method, it's naming was confusing
7758 - Added PostQuitMessage() which causes GetMessage to return false
7759 once the message queue is empty
7760 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
7762 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7763 no longer a valid XplatUI method, but left it in since it's used
7764 internally. Added empty PostQuitMessage() method.
7765 * MenuAPI.cs: Replaced call to Exit() with call to
7766 PostQuitMessage, even though this is probably no longer needed.
7767 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7768 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7770 - Replaced call to XplatUI.Exit() with PostQuitMessage()
7771 - Removed old debug code that would call XplatUI for exception
7772 display, enabled standard exception handling (Still not enabled
7773 though, until NativeWindow's ExternalExceptionHandler define
7776 - Added internal method to allow control to update NativeWindow
7777 after a window has been destroyed
7778 - Added handling of already destroyed windows when calling i
7780 - Added removal of handle from list on ReleaseHandle
7782 - Dropped GetMessageResult var and related code
7783 - Added PostQuitState to field to track if PostQuitMessage has been
7785 - Dropped Exit() method
7786 - Added PostQuitMessage() method
7787 - GetMessage now will return false if PostQuitState is set and no
7788 more messages are in the queue.
7789 - Expose handler will no longer generate WM_PAINT messages if we are
7790 in PostQuitState since it's very likely any windows have already
7791 been destroyed, and since Hwnd won't get updated until we have
7792 processed the DestroyNotify we'd be causing X errors.
7794 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7796 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7797 Thanks to Mike for pointing out the err of my ways.
7799 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7801 * Control.cs(PreProcessMessage): Moved menu handling back, but
7802 after all other key handling, to match MS (who handles Menu in
7804 * Menu.cs (WndProc): Removed my brainfart
7806 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7808 * Control.cs(PreProcessMessage): Removed special menu handling
7809 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7811 2005-12-07 Mike Kestner <mkestner@novell.com>
7813 * Control.cs : special case SYSKEYUP so that we can adjust keynav
7814 state according in tracker.
7815 * Menu.cs : promote tracker field to base class and provide a tracker
7816 lookup capability. Add/Remove shortcuts dynamically if the top menu
7817 has a tracker. Unparent items that are removed from the collection.
7818 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7819 * Theme*.cs: add always_show_hotkeys field to support configurability
7820 of mnemonic display. win32 doesn't show mnemonics until Alt is
7823 2005-12-07 Jackson Harper <jackson@ximian.com>
7825 * MdiChildContext.cs: Use Control.ResetCursor.
7826 * Control.cs: ResetCursor needs to set the property so that the
7827 correct XplatUI call gets made.
7829 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7831 * Control.cs: More fixes to make our key events match MS. We
7832 were not setting the modifier state on KeyData, and we were
7833 not generating any events when Alt was pressed with a key
7834 since handling of WM_SYSxxx was missing for the OnKey methods.
7836 2005-12-07 Jackson Harper <jackson@ximian.com>
7838 * MdiChildContext.cs: reenable the sizing code.
7839 - When the mouse leaves a window reset its cursor.
7841 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7843 * ThemeClearlooks.cs: Reflect latest Hwnd changes
7845 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7847 * Hwnd.cs: Now using the theme 3d bordersize to calculate
7848 widths of Fixed3D borders
7850 2005-12-07 Jackson Harper <jackson@ximian.com>
7852 * MdiClient.cs: Fix warnings. Earn Mike's love.
7854 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7856 * ThemeClearlooks.cs:
7857 - Adjusted mouse over button color
7858 - Added first parts of CheckBox drawing
7859 - Added correct color for selected text background
7860 - Fixed ComboBox drawing
7861 - Added CPDrawBorder3D and CPDrawBorder
7863 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7865 * XplatUIX11.cs: Added call to XBell for AudibleAlert
7867 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7869 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7870 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7871 alert users via sound. We could add an enum arg with different
7872 types of alerts in the future
7874 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7876 * Control.cs: Fix behaviour problems pointed out by Mike
7878 2005-12-05 Mike Kestner <mkestner@novell.com>
7880 * StatusBarPanel.cs: add Invalidate method and hook it into all the
7881 prop setters. Calls parent.Refresh for now, but could be maybe be
7882 optimized with an internal method on StatusBar at some point.
7885 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
7887 * RichTextBox.cs: Implemented get_SelectionColor
7889 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
7891 * ThemeClearlooks.cs:
7893 - Draw black button border only if button is Form.AcceptButton
7894 - Draw correct button color for pressed RadioButton if the mouse
7895 has entered the button
7896 - Updated ProgressBar drawing!
7897 - Updated CPDrawSizeGrip drawing
7898 - Updated StatusBarPanel drawing
7900 2005-12-05 Mike Kestner <mkestner@novell.com>
7902 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7903 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7905 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
7907 * ThemeClearlooks.cs: Initial check-in, activate with
7908 export MONO_THEME=clearlooks
7909 * ThemeEngine.cs: Added ThemeClearlooks
7911 2005-12-03 Mike Kestner <mkestner@novell.com>
7913 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7916 2005-12-02 Jackson Harper <jackson@ximian.com>
7918 * Form.cs: If the child form has no menu the default main menu is
7919 used as the active menu.
7921 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7923 * ListBox.cs: Check if any items exist before trying to resolve
7924 coordinates into items
7926 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7928 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7929 as the second color for the background hatch
7931 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7933 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7934 * RichTextBox.cs: FormatText position arguments are 1-based, now making
7935 sure that what we pass to FormatText is always 1-based. Fixes #76885
7937 2005-11-29 Miguel de Icaza <miguel@novell.com>
7939 * NumericUpDown.cs (EndInit): When we are done initializing,
7940 reflect any updates on the UI.
7942 2005-12-02 Jackson Harper <jackson@ximian.com>
7944 * ImplicitHScrollBar.cs:
7945 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7946 their container controls.
7947 * TreeView.cs: Use the new implicit scrollbars.
7949 2005-12-02 Jackson Harper <jackson@ximian.com>
7951 * TreeView.cs: Make top_node internal so the TreeNodeCollections
7953 * TreeNodeCollection.cs: If we remove the topnode we need to
7954 update topnode to the next node in line.
7955 - When clearing nodes go through the same process as removing
7956 them, so they get depareneted and checked if they are top node.
7958 2005-12-01 Jackson Harper <jackson@ximian.com>
7960 * TreeView.cs: When imagelists are used the image area is
7961 selectable as well as the text.
7962 - If there are no selected nodes select the first one.
7963 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7964 so don't do it more then we need to.
7966 2005-12-01 Jackson Harper <jackson@ximian.com>
7968 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7969 that arrows can be scaled.
7971 2005-12-01 Jackson Harper <jackson@ximian.com>
7973 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7974 fail. Patch by Dieter Bremes
7976 2005-11-30 Jackson Harper <jackson@ximian.com>
7978 * Form.cs: Property is 2.0 only
7979 * PrintDialog.cs: Signature fix.
7981 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7984 - No longer artificially moves text 2 pixels down (now that we have
7985 borders this is no longer needed)
7986 - Added calcs for left, hanging and right indent
7988 2005-11-23 Mike Kestner <mkestner@novell.com>
7990 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7992 2005-11-30 Jackson Harper <jackson@ximian.com>
7994 * MdiChildContext.cs: Set the cloned menus forms, as these don't
7995 get cloned as part of CloneMenu ().
7996 * Menu.cs: Make sure the parent of the items get set correctly
7997 when they are added. And the owners are notified of the changes.
7998 * Form.cs: Create an ActiveMenu property, so that when MDI is used
7999 we can change the menu being displayed/handled by the form without
8000 changing the menu assosciated with the form.
8001 - Don't let Mdi children draw/handle menus.
8003 2005-11-30 Jackson Harper <jackson@ximian.com>
8005 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8006 a MenuChanged event. Just to make the API a little more
8009 * MenuItem.cs: Use the new OnMenuChanged
8010 * MdiChildContext.cs: Handle menu merging.
8011 * Form.cs: Implement MergedMenu.
8013 2005-11-30 Jackson Harper <jackson@ximian.com>
8015 * Menu.cs: We were misusing Add. Add goes behind the specified
8016 index according to the docs, and does not replace the specified
8017 index. So I added an Insert method.
8019 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
8021 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8022 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8024 * RichTextBox.cs: Added calls to base for DnD events
8026 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
8029 - Fixed drag-selection related crash; style fixes
8030 - Implemented undo class
8031 o Implemented method to capture document state for specified
8032 range in document tree
8033 o Implemented method to restore captured document state
8034 o Implemented cursor tracking
8035 o Implemented basic undo stack
8036 - Added undo cursor tracking to methods altering cursor location
8037 - Added undo tracking to selection deletion (still missing
8038 other text-altering hookups)
8040 - Added SelectionLength property
8041 - Implemented CanPaste()
8042 - Implemented Paste()
8043 - Added missing protected methods
8044 - Fixed RTF->Document conversion; now uses font index 0 and color
8045 index 0 as the default font for the parsed text
8046 - Fixed RTF<->Document font size translation
8047 - Fixed RTF generation, now properly handles cross-tag boundaries
8048 for single line selection
8049 - No longer always appends blank line to generated RTF
8051 - Added missing attributes
8052 - Hooked up undo-related methods
8054 - Implemented Copy()
8055 - Implemented Paste()
8057 - Fixed caret mis-behaviour on backspace across line-boundaries
8059 2005-11-29 Jackson Harper <jackson@ximian.com>
8061 * MdiClient.cs: Add a method for activating mdi children. Very
8062 basic right now. I imagine someday it might need more girth.
8063 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
8064 children windows names are added to the menu item.
8065 * ThemeWin32Classic.cs: Draw the arrow if the item is an
8066 mdilist. This happens regardless of whether or not there are any
8067 mdi windows to see in the list, and according to my tests happens
8068 before the items are even added. Also happens if there isn't even
8069 an mdi client to get windows from.
8071 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
8073 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
8074 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
8076 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
8078 * DataGridTableStyle.cs:
8079 - Create always the styles for the missing columns even if they are
8080 provided by the user (not default table style)
8083 - Fixes SetDataBinding (always re-attach source)
8084 - Fixes SetNewDataSource (only clear styles if they are not for
8086 - Expands OnTableStylesCollectionChanged to handle style refresh
8089 2005-11-29 Jackson Harper <jackson@ximian.com>
8091 * FileDialog.cs: Implement missing bits, remove some dead
8093 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
8094 creation of the panel so that the options set on the dialog are
8095 seen when the panel is created.
8096 * TreeView.cs: raise a click when items are clicked.
8098 2005-11-29 Jackson Harper <jackson@ximian.com>
8100 * MdiClient.cs: Pass some signature methods through to base.
8102 2005-11-28 Jackson Harper <jackson@ximian.com>
8104 * ListView.cs: Raise the click event when items are clicked.
8106 2005-11-28 Jackson Harper <jackson@ximian.com>
8108 * MdiClient.cs: Make this algorithm even more beautiful. And fix
8111 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
8113 * ThemeNice.cs: - Removed 1 pixel bitmaps
8114 - Use SmoothingMode.AntiAlias where it makes sense
8115 (ScrollButton arrow for example)
8116 - Enhanced Button focus drawing
8117 - Fixed ComboBox drawing (no artefacts anymore, focus
8118 rectangle is back again, reduced size of ComboButton, etc.)
8119 - Fixed RadioButton focus drawing for Appearence.Button
8120 - Slight ScrollButton redesign
8121 - Some LinearGradientBrush size fixes
8122 - GroupBoxes have now rounded edges
8123 - Fixed StatusBar drawing
8125 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
8127 * ThemeNice.cs: - Remove dead code
8128 - use correct background colors for menus, etc.
8129 - Fake pixel drawing with 1 pixel bitmaps
8131 2005-11-24 Jackson Harper <jackson@ximian.com>
8133 * MdiClient.cs: Size the scrollbars when resizing the window.
8134 - Resize the maximized windows when the client is resized
8135 * Form.cs: Make the child context available
8137 2005-11-23 Jackson Harper <jackson@ximian.com>
8139 * MdiChildContext.cs: Don't size windows if they are maximized.
8141 2005-11-23 Mike Kestner <mkestner@novell.com>
8143 * ContextMenu.cs: use MenuTracker.
8144 * Control.cs: remove menu handle usage.
8145 * Form.cs: remove menu handle usage.
8146 * Hwnd.cs: remove menu handle usage.
8147 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
8148 motion and clicks to the new Tracker handlers.
8149 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
8151 * MenuAPI.cs: refactored to combine popup and menubar event handling.
8152 Killed the MENU and MENUITEM data types and associated collections
8153 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
8154 MenuTracker class that exposes the leftovers from the old MenuAPI
8155 static methods. Restructured Capture handling so that only one grab is
8156 done for the entire menu hierarchy instead of handing off grabs to
8157 submenus. Tracker now has an invisible control to Capture when active.
8158 * MenuItem.cs: add sizing accessors, kill Create
8160 * Theme.cs: remove menu handle and MENU(ITEM) usage.
8161 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
8162 MENU(ITEM). remove menu handle usage, use Menu directly.
8163 * XplatUIDriver.cs: remove menu handle usage.
8164 * XplatUIOSX.cs: remove menu handle usage.
8165 * XplatUIWin32.cs: remove menu handle usage.
8166 * XplatUIX11.cs: remove menu handle usage.
8168 2005-11-22 Jackson Harper <jackson@ximian.com>
8170 * Hwnd.cs: Don't compute the menu size for
8171 DefaultClientRectangle.
8172 - Reenable menu sizes being computed for GetClienRectangle.
8173 * Form.cs: Remove comment of trechery
8175 2005-11-22 Jackson Harper <jackson@ximian.com>
8177 * Hwnd.cs: The adjustments for the menu bar are made when it is
8178 attached to the form.
8180 2005-11-19 Jackson Harper <jackson@ximian.com>
8182 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
8183 (just like on windows).
8185 2005-11-19 Jackson Harper <jackson@ximian.com>
8187 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
8188 use real buttons anymore because they are in non client area. The
8189 one TODO here is that I need to somehow invalidate a section of
8190 the non client area.
8192 2005-11-18 Jackson Harper <jackson@ximian.com>
8194 * Control.cs: Put the enum check back in now that MDI doesnt have
8195 to use this to set border styles.
8196 * Form.cs: Only set mdi child windows borders if the handle has
8198 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
8199 this directly on to the driver.
8200 - Get the move start position before adjusting for the titlebar
8201 height, this fixes the windows "skipping" when they are first
8204 2005-11-18 Jackson Harper <jackson@ximian.com>
8206 * XplatUIX11.cs: Just compute the mdi borders separately as they
8207 don't totally match up with normal form borders.
8209 2005-11-18 Jackson Harper <jackson@ximian.com>
8211 * Control.cs: Set WS_ styles for borders, so that the driver does
8212 not have to retrieve the control instance to figure out what kind
8213 of borders it should have.
8214 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
8215 driver can know its an mdi child easily.
8216 * XplatUIX11.cs: Get the border styles and whether the window is
8217 MDI from the Styles and ExStyles params instead of having to get a
8218 control. This prevents a chicken and egg problem.
8220 2005-11-18 Jackson Harper <jackson@ximian.com>
8222 * MdiClient.cs: Fix typo so scrollbars show up correctly.
8224 2005-11-18 Jackson Harper <jackson@ximian.com>
8226 * MdiClient.cs: Calculate when to add and remove scrollbars
8228 * MdiChildContext.cs: Adjust the y position to take the titlebar
8230 - No height for FormBorderStyle.None
8232 2005-11-18 Jackson Harper <jackson@ximian.com>
8234 * Control.cs: Allow non enum values to be used for
8235 InternalBorderStyle. MDI does this to set a special border style.
8236 - New utility methods for converting points to/from client coords
8237 - Add the newly created control to the Controls collection before
8238 updating its style. This way UpdateStyle can walk the control
8239 heirarchy to find the control if needed.
8240 so I don't need to create a new Point object all the time.
8241 * Form.cs: Let MDI windows handle their border styles.
8242 - Set styles on MDI windows so the correct title style is derived.
8243 * MdiChildContext.cs: Move all the painting and window handling
8244 into the non client area.
8245 - Use correct sizing and put correct buttons on frames based on
8246 the FormBorderStyle.
8247 - Notify the mdi client about scrolling
8248 - Need to handle the buttons ourselves now, because they are all
8249 in non client areas and we can't add controls there.
8250 * MdiClient.cs: Halfway to scrolling, this implementation is
8251 somewhat broken though, we need to check to make sure other
8252 windows aren't causing scrolling before removing the bars. Also
8253 the bars need to be drawn on top, maybe I can switch implicit
8254 controls to be on top.
8255 * Hwnd.cs: caption_height and tool_caption_height are now
8256 properties of an hwnd, this way they can be set by the driver
8257 based on the type of window they are. In X11 the window manager
8258 handles the decorations so caption_height is zero unless its an
8260 - Add 3 pixel borders for MDI windows (0xFFFF).
8261 - Get rid of some code duplication, have DefaultClientRectanle
8262 just call GetClientRectangle.
8263 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8265 - Set border styles differently for mdi windows.
8266 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8269 2005-11-15 Mike Kestner <mkestner@novell.com>
8271 * Menu.cs: when adding an item to the collection, if item is already
8272 parented, remove it from the parent.
8274 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
8276 * X11DesktopColors.cs: Added KDE support
8278 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
8281 - Clipboard methods now can translate Rtf format
8282 - No longer removes clipboard contents whenever a new format is added
8283 to allow placing multiple formats on the clipboard
8284 * Clipboard.cs: Clipboard now supports getting a IDataObject and
8285 will place all formats contained in it onto the clipboard. Also
8286 now cleans the clipboard before placing a new object onto it
8288 - Implemented set_Rtf
8289 - Implemented set_SelectedRtf
8290 - Created InsertRTFFromStream() method to allow single code base
8291 for all properties and methods that insert RTF into document
8292 - Removed debug output
8294 - Fixed Delete(int) to fix up line numbers
8295 - Fixed ReplaceSelection to combine start and end line
8296 - Fixed serious DeleteChars bug that would leave the document tree
8298 - Improved DumpTree with several logic checks to detect broken
8300 - Removed debug lines
8301 - Fixed Caret.WordForward/WordBack moving code, now always also
8302 updates caret.tag (fixes crash when word-selecting across tag
8303 boundaries via keyboard)
8304 - Added Insert() method for inserting multiline text into documents
8305 - Fixed DeleteChars() calculation errors that would cause a broken
8306 tag chain with multiple tag lines
8307 - DeleteChars() no longer crashes on multi-tag lines if not all tags
8308 - Split() no longer moves caret if split is at caret location
8309 - ReplaceSelection() now updates the cursor and re-displays it
8310 - ReplaceSelection() now uses new Insert() method to avoid code
8312 - FormatText() can now handle formatting partial lines
8314 - Append now uses new TextControl.Insert() method (this avoids
8316 - Implemented Ctrl-X (Cut) (
8317 - Implemented Ctrl-C (Copy)
8318 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
8319 regeneration when pasting text; roundtripping Copy&Paste within
8320 edit control still fails due to some calculation bugs in GenerateRTF)
8321 - The Delete key will now remove the current selection if it is visible
8322 * TextBox.cs: Removed debug lines
8323 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
8324 driver to be initialized and can't therefore be done via a static ctor)
8326 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
8328 * TextControl.cs: Added backend code for finding char arrays and strings
8330 - Added mouse wheel scroll support
8331 - Added support for VScroll and HScroll events
8333 - Implemented all seven Find() variants
8334 - Implemented GetCharFromPosition()
8335 - Implemented GetCharIndexFromPosition()
8336 - Implemented GetLineFromIndex()
8337 - Implemented GetPositionFromCharIndex();
8338 - Implemented SaveFile for PlainText and UnicodeText
8339 - Fixed set_Font, now setting a new font applies that font to
8341 - Implemented generic Document to RTF converter
8342 - Implemented SaveFile for RichText format (still missing unicode
8343 conversion for non-ansi chars)
8344 - Implemented get_Rtf
8345 - Implemented get_SelectedRtf
8347 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
8349 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
8350 to allow any captures to be released before triggering OnClick. This
8351 way a click handler may capture the mouse without interference.
8352 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
8353 This way we send them even though X may not allow a grab (if the window
8354 isn't visible, for example)
8356 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
8358 * DataGridViewRowEventArgs.cs: DataGridView implementation
8359 * DataGridViewElement.cs: DataGridView implementation
8360 * DataGridViewComboBoxCell.cs: DataGridView implementation
8361 * DataGridViewDataErrorContexts.cs: DataGridView implementation
8362 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
8363 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
8364 * ImageLayout.cs: DataGridView implementation
8365 * DataGridViewComboBoxColumn.cs: DataGridView implementation
8366 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
8367 * DataGridViewSelectionMode.cs: DataGridView implementation
8368 * IDataGridViewEditingControl.cs: DataGridView implementation
8369 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
8370 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
8371 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
8372 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
8373 * DataGridViewColumnSortMode.cs: DataGridView implementation
8374 * DataGridView.cs: DataGridView implementation
8375 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
8376 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
8377 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
8378 * Padding.cs: DataGridView implementation
8379 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
8380 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
8381 * DataGridViewRowEventHandler.cs: DataGridView implementation
8382 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
8383 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
8384 * DataGridViewButtonCell.cs: DataGridView implementation
8385 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
8386 * DataGridViewEditMode.cs: DataGridView implementation
8387 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
8388 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
8389 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
8390 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
8391 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
8392 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
8393 * DataGridViewCellEventHandler.cs: DataGridView implementation
8394 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
8395 * DataGridViewCellStyleConverter.cs: DataGridView implementation
8396 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
8397 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
8398 * DataGridViewColumnEventArgs.cs: DataGridView implementation
8399 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
8400 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
8401 * QuestionEventArgs.cs: DataGridView implementation
8402 * IDataGridViewEditingCell.cs: DataGridView implementation
8403 * DataGridViewTriState.cs: DataGridView implementation
8404 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
8405 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
8406 * DataGridViewColumnCollection.cs: DataGridView implementation
8407 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
8408 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
8409 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
8410 * DataGridViewColumn.cs: DataGridView implementation
8411 * DataGridViewCellBorderStyle.cs: DataGridView implementation
8412 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
8413 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
8414 * DataGridViewRow.cs: DataGridView implementation
8415 * DataGridViewImageCellLayout.cs: DataGridView implementation
8416 * DataGridViewImageCell.cs: DataGridView implementation
8417 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
8418 * DataGridViewCheckBoxCell.cs: DataGridView implementation
8419 * DataGridViewHeaderCell.cs: DataGridView implementation
8420 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
8421 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
8422 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
8423 * DataGridViewTextBoxColumn.cs: DataGridView implementation
8424 * QuestionEventHandler.cs: DataGridView implementation
8425 * DataGridViewCellStyleScopes.cs: DataGridView implementation
8426 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
8427 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
8428 * DataGridViewCell.cs: DataGridView implementation
8429 * DataGridViewCellEventArgs.cs: DataGridView implementation
8430 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
8431 * DataGridViewCellStyle.cs: DataGridView implementation
8432 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
8433 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
8434 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
8435 * TextFormatFlags.cs: DataGridView implementation
8436 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
8437 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
8438 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
8439 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
8440 * DataGridViewButtonColumn.cs: DataGridView implementation
8441 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
8442 * HandledMouseEventArgs.cs: DataGridView implementation
8443 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
8444 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
8445 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
8446 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
8447 * DataGridViewRowCollection.cs: DataGridView implementation
8448 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
8449 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
8450 * DataGridViewHitTestType.cs: DataGridView implementation
8451 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
8452 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
8453 * DataGridViewColumnEventHandler.cs: DataGridView implementation
8454 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
8455 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
8456 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
8457 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
8458 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
8459 * DataGridViewContentAlignment.cs: DataGridView implementation
8460 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
8461 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
8462 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
8463 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
8464 * DataGridViewPaintParts.cs: DataGridView implementation
8465 * DataGridViewCellCollection.cs: DataGridView implementation
8466 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
8467 * DataGridViewImageColumn.cs: DataGridView implementation
8468 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
8469 * DataGridViewElementStates.cs: DataGridView implementation
8470 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
8471 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
8472 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
8473 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
8474 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
8475 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
8476 * DataGridViewRowHeaderCell.cs: DataGridView implementation
8477 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
8478 * DataGridViewTextBoxCell.cs: DataGridView implementation
8479 * DataGridViewBand.cs: DataGridView implementation
8480 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
8481 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
8482 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
8483 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
8484 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
8485 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
8486 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
8487 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
8488 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
8489 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
8490 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
8492 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
8494 * ThemeWin32Classic.cs:
8495 - Draw the outside focus rectangle around buttons
8496 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
8497 doesn't use end caps for every dash of a line anymore. This
8498 workaround ignores the forecolor.
8500 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
8502 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
8505 2005-11-07 Jackson Harper <jackson@ximian.com>
8507 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
8509 2005-11-07 Jackson Harper <jackson@ximian.com>
8511 * ScrollableControl.cs: Calculate the maximum and change vars
8512 (more) correctly so that scrollbars appear as a sensible size.
8514 2005-11-04 Jackson Harper <jackson@ximian.com>
8516 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
8518 * TreeView.cs: When the tree is sorted null out the top_node so
8519 that it is recalculated.
8520 - Use dotted lines instead of dashed lines to match MS better.
8522 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
8525 - Implements key search for items. Useful when browsing files with FileDialog
8526 - When changing view mode or when clear the items reset scrollbar positions
8528 2005-11-04 Jackson Harper <jackson@ximian.com>
8530 * CurrencyManager.cs: Implement the MetaDataChanged event, the
8531 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8532 as to what the method may do as there is no real way of creating a
8533 derived CurrencyManager and calling the method.
8535 2005-11-03 Jackson Harper <jackson@ximian.com>
8537 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8538 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8539 method which seems to just be used internally to refresh the tabs.
8541 2005-11-03 Jackson Harper <jackson@ximian.com>
8543 * TabControl.cs: Implement the remove method. Fix some broken
8546 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8548 * DateTimePicker.cs:
8549 - Added missing DateTimePickerAccessibleObject class
8550 - Added missing events
8551 - Added OnFontChanged method
8552 * Form.cs: Added missing attributes
8553 * TreeView.cs: Added missing attributes
8555 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8557 * GridItemCollection.cs: Fix signatures
8559 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8561 * XplatUI.cs: Updated build rev/date
8562 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
8563 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8564 * Application.cs: Trigger context-specific ExitThread events
8566 2005-11-03 Jackson Harper <jackson@ximian.com>
8570 * GridTableStylesCollection.cs:
8575 * MonthCalendar.cs: Signature fixes
8577 2005-11-03 Jackson Harper <jackson@ximian.com>
8579 * TreeNodeCollection.cs: Remove should not be virtual.
8580 * TreeView.cs: Implement the last of the missing methods.
8582 2005-11-03 Jackson Harper <jackson@ximian.com>
8584 * TreeNodeConverter.cs: Implement to get off my class-status back.
8586 2005-11-03 Jackson Harper <jackson@ximian.com>
8588 * TreeView.cs: Hookup the bits for drag and drop.
8589 * TreeNode.cs: Don't cache the tree_view or index anymore, now
8590 that nodes can be moved from tree to tree easily this just causes
8591 all sorts of problems.
8592 * TreeNodeCollection: Don't need to give treenodes an index and
8593 treeview anymore when they are added, these are computed on the
8594 fly. Also make sure to remove a node before its added.
8596 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8599 - Added CaretSelection enum
8600 - Added comparison methods to Marker struct, makes selection code
8602 - Added SelectionStart and SelectionEnd as 'moveable' location for
8603 the CaretDirection enum and handler
8604 - Added selection_prev variable to track optimized invalidation for
8605 word and line selection
8606 - Added SelectionVisible property (returns true if there is a valid
8608 - Switched CaretHasFocus to only display the caret if there is no
8610 - Avoiding StringBuilder.ToString to retrieve a single char, instead
8611 using the direct character index; should be much faster
8612 - Added various conditional debug statements
8613 - Fixed invalidation calculation for selection ranges
8614 - Added ExpandSelection() method to support word and line selection
8615 - Switched SetSelectionToCaret to use new Marker compare overloads
8616 - Added central IsWordSeparator() method to determine word
8617 separators/whitespace and FindWordSeparator() to streamline common
8618 usage of IsWordSeparator()
8620 - Removed unneeded grabbed variable, it was just mirroring
8622 - No longer firing OnTextChanged event when Text setter is called,
8623 since the base will fire the event for us
8624 - Added handling of Ctrl-Up/Down selection
8625 - Added handling of Shift-Cursorkey selection
8626 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8628 - Added handling of Shift and Ctrl-Shift-Home/End selection
8629 - Removed some debug output
8630 - Added handling for single/double/tripple-click to place caret/
8631 select word/select line respectively (Fixes bug #76031)
8632 - Added support for drag expansion of word/line selection
8633 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8636 2005-11-02 Jackson Harper <jackson@ximian.com>
8638 * X11Dnd.cs: If the drag is going to and from a MWF window just
8639 copy the data instead of sending it out through the X Selection
8642 2005-11-02 Jackson Harper <jackson@ximian.com>
8645 * XplatUIX11.cs: When in a drag we don't want motion notify
8646 messages to get passed on to the other controls. This prevents
8647 mouse move messages from showing up in the drag source.
8649 2005-11-02 Jackson Harper <jackson@ximian.com>
8651 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
8652 the correct button is release to end a drag.
8653 * XplatUIX11.cs: Make the button state internal so the drag system
8654 can access it. Dragging needs to know about all button releases,
8655 not just left button.
8657 2005-11-02 Miguel de Icaza <miguel@novell.com>
8659 * Form.cs (Icon): If the icon is null, reset the icon to the
8662 * Cursor.cs: When writing the AND-mask bitmap do not include the
8663 number of colors, but hardcode those to two (black and white),
8664 fixes the loading of color cursors (Paint Dot Net).
8666 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8667 turn off autoscaling.
8669 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8671 2005-11-02 Jackson Harper <jackson@ximian.com>
8673 * X11Dnd.cs: Make sure to send a status message if the pointer
8674 enters a control that can not accept a drop, otherwise the cursor
8675 isn't updated correctly. Also tried to compress the lines of code
8678 2005-11-02 Jackson Harper <jackson@ximian.com>
8680 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8681 set actions correctly. This isn't perfect as XDND and win32 have
8682 some differences on how you allow actions. I'll clear this up by
8683 adding a path for drag from MWF to MWF windows.
8684 * XplatUIX11.cs: Hook into the dnd system.
8686 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
8688 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8689 previously shown but they are no longer need it. Very obvious when
8690 browsing files with FileDialog.
8692 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
8694 * Control.cs: We always need to call OnPaintBackground. We pretty much
8695 ignore AllPaintingInWmPaint and always do the painting there, whether
8696 it's set or not, since we always ignore the WM_ERASEBKGND message
8697 (which we don't generate on X11). This fixes #76616.
8698 * Panel.cs: Removed unneeded background painting. This happens properly
8699 in Control.cs already
8701 2005-10-31 Mike Kestner <mkestner@novell.com>
8703 * Menu.cs: Add items to collection before setting their index.
8704 * MenuItem.cs : add range checking with ArgumentException like MS.
8707 2005-10-31 Jackson Harper <jackson@ximian.com>
8709 * ListBox.cs: Invalidate if the area is visible at all not just
8710 contained in the visible rect. Fixes unselection of semi visible
8713 2005-10-31 Jackson Harper <jackson@ximian.com>
8715 * Control.cs: Consistently name the dnd methods. Make them
8716 internal so we can override them to match some MS behavoir
8718 * Win32DnD.cs: Use the new consistent names.
8720 2005-10-31 Jackson Harper <jackson@ximian.com>
8722 * TreeView.cs: Don't draw the selected node when we lose focus.
8724 2005-10-31 Jackson Harper <jackson@ximian.com>
8726 * X11Dnd.cs: We still need to reset the state even though a full
8727 reset isn't being done, otherwise status's still get sent all over
8730 2005-10-31 Jackson Harper <jackson@ximian.com>
8732 * Control.cs: Make the dnd_aware flag internal so the dnd
8733 subsystem can check it. Catch exceptions thrown in dnd handlers to
8735 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8736 * X11Dnd.cs: Handle null data in the converters. Set the XDND
8737 version when sending a XdndEnter. Use the control/hwnd dnd_aware
8738 flags to reduce the number of dnd enters/status's sent.
8740 2005-10-31 Jackson Harper <jackson@ximian.com>
8742 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8744 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
8746 * PictureBox.cs: Fixes 76512
8748 2005-10-28 Jackson Harper <jackson@ximian.com>
8750 * X11Dnd.cs: Early implementation to support winforms being a drag
8751 source for data on X11. Also restructured the converters so they
8752 can go both ways now.
8753 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8755 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
8757 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8760 2005-10-27 Jackson Harper <jackson@ximian.com>
8762 * TreeNode.cs: Implement serialization so my DnD examples will work.
8764 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
8766 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8767 TreeView.cs: Don't dispose objects that are not owned.
8769 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
8771 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8772 should retrieve the current cursor and report that, but XplatUI
8773 doesn't (yet) have an interface for that (and I'm not sure I even
8775 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8776 until any message loop processing is done (and the WM_SETCURSOR
8777 replaces the cursor to the proper one)
8779 - Fixed override behaviour, we can't set the cursor globally on X11,
8780 just for our windows.
8781 - Invalidating the System.Drawing X11 display handle when we are
8783 * Control.cs: Fix to make csc happy
8785 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
8788 - get_Text: Add last line (without trailing newline) to returned
8790 - get_TextLength: Count last line in returned length
8791 - ToString: Call Text property instead of duplicating code
8793 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
8795 * ImageList.cs: Dispose ImageAttributes objects.
8797 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8799 * ImageList.cs: Use attribute constructors with less arguments where
8802 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8804 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8805 Use typeof instead of strings when assembly is referenced. Added
8808 2005-10-21 Jackson Harper <jackson@ximian.com>
8810 * ListView.cs: Raise a double click event. Also tried to somewhat
8811 fix when the selectedindexchanged event is raised. Its still
8814 2005-10-21 Jackson Harper <jackson@ximian.com>
8816 * TreeView.cs: New method to invalidate the plus minus area of a
8817 node without invalidating the whole node (maybe this can be used
8818 in some more places).
8819 * TreeNodeCollection.cs: When adding to an empty node we need to
8820 invalidate its plus minus area so the little block shows up.
8822 2005-10-21 Jackson Harper <jackson@ximian.com>
8824 * TreeView.cs: Make sure that when we invalidate a node the bounds
8825 are big enough to cover the selected box and the focus
8826 rectangle. Use a different colour for the lines connecting nodes
8827 so they show up with all themes.
8829 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8831 * NativeWindow.cs: Don't call anything that could call into the driver,
8832 we might be on a different thread.
8834 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8836 * Control.cs(Dispose): Since Dispose might run on a different thread,
8837 make sure that we call methods that could call into the driver via
8838 invoke, to avoid thread issues
8840 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8842 * XplatUI.cs: Removed finalizer
8843 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8844 not allowing to be called on the finalizer thread.
8846 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
8849 - Reverted r51889 and r51891.
8850 - Added ImageListItem class that stores unmodified image items and image
8851 properties required to create list images until handle is created.
8852 - Added AddItem and moved image creation logic to AddItemInternal.
8853 - Added CreateHandle method that creates images based on unmodified items.
8854 - Added DestroyHandle that changes state to store unmodified items.
8855 - Add and AddStrip methods no more create handle.
8856 - ReduceColorDepth has no return value.
8857 - Dispose destroys handle.
8858 - Modified other methods to reflect the above changes.
8859 - Implemented key support.
8860 - Added profile 2.0 members and attributes.
8861 - Added private Reset and ShouldSerialize methods that provide the same
8862 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8863 them as they are private.
8864 - Added some more comments about implementation details.
8866 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8868 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8870 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8872 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8874 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8876 * DataGridDrawingLogic.cs: Fixes column hit calcultation
8877 * DataGridColumnStyle.cs: Remove debug message
8879 2005-10-20 Jackson Harper <jackson@ximian.com>
8881 * TreeView.cs: We can always get input keys regardless of whether
8882 or not editing is enabled. They are used for navigation.
8884 2005-10-20 Jackson Harper <jackson@ximian.com>
8886 * TreeNode.cs: Use the viewport rect for determining if a node
8887 needs to be moved for visibility. Don't use Begin/End edit. This
8888 calls a full refresh when its done.
8889 * TreeView.cs: New SetBottom works correctly. Make the viewport
8890 rect property internal so the treenodes can see it. When clicking
8891 on a node we need to ensure that its visible because it might just
8892 be partly visible when clicked.
8894 2005-10-20 Jackson Harper <jackson@ximian.com>
8896 * TreeNodeCollection.cs: Remove debug code.
8898 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8900 * Datagrid.cs: Implements column sorting in Datagrid
8901 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8903 2005-10-20 Jackson Harper <jackson@ximian.com>
8905 * TreeNodeCollection.cs: Remove items properly. Update the correct
8906 area after removing them.
8908 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8910 * Datagrid.cs: Should not call base.OnPaintBackground
8912 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8914 * XplatUIX11.cs (GetMessage):
8915 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8916 window instead of client window
8917 - Now properly calculates NC_xBUTTONUP message coordinates
8918 - ScreenToMenu now properly calculates it's coordinates of whole
8919 window, since menus are in the whole window, not in the client
8921 - Added WholeToScreen coordinate translation method
8923 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8925 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8926 want to return a message, loop back to the beginning of the function
8927 and grab the next real message to process instead.
8929 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8931 * Splitter.cs: Properly set limits if no filler control is used
8933 2005-10-19 Jackson Harper <jackson@ximian.com>
8935 * ColorDialog.cs: Don't show the help button if it is not enabled
8936 instead of disabling it (this is what MS does). Don't create the
8937 panel until the dialog is run, otherwise the vars (such as
8938 ShowHelp) are not set yet.
8940 2005-10-19 Jackson Harper <jackson@ximian.com>
8942 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8943 are reduced when adding nodes.
8945 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8948 2005-10-19 Jackson Harper <jackson@ximian.com>
8950 * FolderBrowserDialog.cs: End editing our treeview so the window
8951 actually gets refreshed.
8953 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8955 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
8956 Obsoleted handling of WM_ERASEBKGND, now always draws our background
8959 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8961 * MenuAPI.cs: Returns after Hidding window
8962 * XplatUIX11.cs: Added TODO found while debugging menu issues
8964 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8966 * XplatUIX11.cs: Do not re-map the whole window when it's size
8967 becomes non-zero unless it's supposed to be actually visible
8969 2005-10-18 Jackson Harper <jackson@ximian.com>
8971 * TreeView.cs: We don't need to keep a count anymore.
8972 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8973 use the Grow method.
8975 2005-10-18 Jackson Harper <jackson@ximian.com>
8977 * TreeNodeCollection.cs: Insert is not supported on arrays, so
8978 implement it manually here.
8980 2005-10-18 Jackson Harper <jackson@ximian.com>
8982 * ImageList.cs: Dont kill the list when the colour depth is
8983 changed, just change the colour depth of all the images.
8984 - Same goes for setting the image size. Just resize them all
8985 instead of killing the list softly.
8987 2005-10-18 Jackson Harper <jackson@ximian.com>
8989 * Control.cs: Don't invalidate empty rectangles.
8991 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8994 - Adds checked item to the Checked/Item lists (where empty before)
8995 - Do not add items to the Selected lists if they are already present
8997 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8998 - When deleting items make sure that we delete them for the Selected
8999 and Checked list also.
9001 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
9003 * Label.cs: Dispose objects no longer used
9004 * ThemeWin32Classic.cs: Dispose objects no longer used
9006 2005-10-18 Jackson Harper <jackson@ximian.com>
9008 * TabControl.cs: Don't refresh the whole control when the tabs are
9009 scrolled, we just need to refresh the tab area.
9011 2005-10-17 Jackson Harper <jackson@ximian.com>
9013 * XplatUIX11.cs: Compress code a little bit. Only calculate the
9014 after handle when we need it.
9016 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
9018 * Control.cs: When the parent size changes, recalculate anchor
9019 positions. Partial fix for #76462
9021 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
9023 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
9026 2005-10-17 Jackson Harper <jackson@ximian.com>
9028 * MonthCalendar.cs: Don't create the numeric up down until our
9029 handle is created. Otherwise our handle is created in the
9030 constructor and we don't know if we are a WS_CHILD or WS_POPUP
9033 2005-10-17 Jackson Harper <jackson@ximian.com>
9035 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9038 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9039 * TreeNode.cs : small logical fix (was using local var instead of field)
9041 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
9043 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9045 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
9047 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9049 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
9052 - Re-implemented anchoring code. My first version was really broken.
9053 This fixes bug #76033. Unlike the previous implementation we will
9054 no longer have round errors since all numbers are calculated from
9055 scratch every time. Removed various anchor-related obsolete vars.
9056 - InitLayout no longer causes layout event firing and layout to be
9059 2005-10-16 Jackson Harper <jackson@ximian.com>
9061 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
9064 2005-10-16 Jackson Harper <jackson@ximian.com>
9066 * TabControl.cs: Remove debug code.
9068 2005-10-16 Jackson Harper <jackson@ximian.com>
9070 * XEventQueue.cs: Increase the default queue size (very simple
9071 apps needed to grow the queue).
9072 * Hwnd.cs: No finalizer so we don't need to suppress
9073 finalization. Compute the invalid area manually so a new rectangle
9074 does not newto be created.
9075 * ScrollableControl.cs: Don't set any params (otherwise visibility
9076 isn't set correctly).
9077 * MdiChildContext.cs: New constructor takes the mdi parent so it
9078 doesn't have to be computed and avoids a crash on windows. Draw
9079 the window icon properly, and allow the text to be seen.
9080 * Form.cs: Use new MdiChildContext constructor. Make sure the
9081 child context isn't null in wndproc.
9082 * TabControl.cs: Don't set focus, this is muddling keyboard
9083 behavoir. Expand the tab rows when a window size increase will
9084 allow extra tabs to be seen. Don't allow tabs smaller than the
9085 width of a window to be scrolled out of view.
9087 * TreeView.cs: Use measure string to calculate a nodes width, the
9088 width is cached and only updated when the text or the font is
9089 changed. Don't check for expand/collapse clicks on the first level
9090 nodes if root lines are disabled.
9092 2005-10-16 Ritvik Mayank <mritvik@novell.com>
9094 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
9096 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
9098 * DataGridBoolColumn.cs: fixes warning
9100 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
9102 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
9103 to match more to match more precisely the MS Net behavior
9105 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9107 * Hwnd.cs: Added field to track if window is mapped
9109 - Unmap windows if they become 0-size, re-map when
9110 they are >0 again; fixes #76035
9111 - Re-set our error handler after initializing X11Desktop
9112 to override any error handlers Gtk or whatever was called
9115 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9117 * CheckedListBox.cs: Removed unused vars
9118 * ListView.cs: Fixed signatures
9119 * RichTextBox.cs: Removed unused vars
9120 * TextBoxBase.cs: Removed unused vars
9121 * XplatUIWin32.cs: Removed unused vars
9122 * XplatUIX11.cs: Removed unused vars
9123 * XplatUI.cs: Updated version and date to latest published
9125 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9127 * Cursor.cs: Added private .ctor to work around a bug in
9128 resourceset (Thanks to Geoff Norton for the help on this)
9129 * SplitterEventArgs.cs: Made fields accessible so we don't
9130 waste boatloads of objects and can reuse the same one
9132 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
9133 any captions and borders when generating screen coordinates
9134 * Splitter.cs: Reimplemented control, now fully complete, uses
9135 rubberband drawing, supports and obeys all properties, has
9138 2005-10-13 Miguel de Icaza <miguel@novell.com>
9140 * Form.cs (Form): Setup default values for autoscale and
9141 autoscale_base_size; Make these instance variables, not static
9144 (OnLoad): on the first load, adjust the size of the form.
9146 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9148 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
9149 width argument to DrawReversibleRectangle()
9150 * XplatUIWin32.cs, XplatUIX11.cs:
9151 - Implemented width for DrawReversibleRectangle()
9152 - Added logic to DrawReversibleRectangle that recognizes a zero
9153 width or height and only draws a line in that situation
9155 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
9157 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
9158 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
9159 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
9160 method (it uses our FosterParent window to get a graphics context)
9162 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
9164 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
9165 and SetWindowBackground methods
9167 - Setting proper ControlStyles
9168 - We no longer call XplatUI.SetWindowBackground and XplatUI.
9169 EraseWindowBackground, instead we draw the window background
9170 ourselves in PaintControlBackground. This behaviour is
9171 required to match MS, where, when OnPaintBackground is not
9172 called, the background is not drawn.
9173 - Removed unneeded Refresh() in set_Text
9174 * Hwnd.cs: Dropped the ErasePending support. No longer needed
9176 - Created DeriveStyles method to translate from CreateParams to
9177 FormBorderStyle and TitleStyle, also handles BorderStyle (which
9178 matches FormBorderStyle enum values)
9179 - Consolidated SetHwndStyles and CalculateWindowRect border/title
9180 style calculations into single DeriveStyles method
9181 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
9182 from redrawing the whole window on any resize or expose.
9183 - Fixed CreateWindow usage of SetWindowValuemask. Before not
9184 all styles were applied to our whole/client window appropriately
9185 - Removed EraseWindowBackground() and SetWindowBackground() methods
9186 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
9187 no longer clear/redraw the background through X
9188 - Removed handling of erase_pending bit, we have no use for it (or
9191 - Removed generation and handling of WM_ERASEBKGND message
9192 - Removed EraseWindowBackground() and SetWindowBackground() methods
9193 - Removed handling of hwnd.ErasePending flag
9195 - Removed EraseWindowBackground() and SetWindowBackground() methods
9196 - We no longer call EraseWindowBackground on PaintEventStart, we
9197 ignore the fErase flag, erasing is handled in Control in the
9199 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
9200 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
9201 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
9202 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
9203 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
9204 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
9205 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
9207 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
9209 * PropertyGrids.cs: Get sub properties
9210 * PropertyGridView.cs: Fix drawing code
9212 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9214 * ListBox.cs: Fixes 76383
9216 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9218 * DataGridTextBoxColumn.cs: Sets location and size before attachment
9219 * ThemeWin32Classic.cs: Fixes border drawing and calculations
9220 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
9223 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9225 * ComboBox.cs: Fixes border drawing
9227 2005-10-10 Miguel de Icaza <miguel@novell.com>
9229 * MimeIcon.cs: Ignore errors if the file can not be read.
9231 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9233 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
9234 - Fixed border calculations
9235 - Fixed horizontal scrolling in single column listboxes
9236 - Fixed drawing issues
9238 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
9240 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
9241 FormBorderStyle enum
9242 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
9243 code to determine FormBorderStyles from CreateParams
9245 - Fixed bug where we'd set the wrong window styles if we were
9246 not creating an MDI window
9247 - Added call to XplatUI.SetBorderStyle when form borders are set
9248 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9250 - Removed obsolete edge style
9251 - Switched from BorderStyle to FormBorderStyle
9253 2005-10-10 Jackson Harper <jackson@ximian.com>
9255 * Form.cs: Use the property to get the window handle instead of
9256 accessing it directly. Prevents a null reference exception.
9258 2005-10-10 Jackson Harper <jackson@ximian.com>
9260 * TreeView.cs: Don't adjust the rect given to DrawString now that
9261 our libgdiplus draws correctly.
9263 2005-10-08 Jackson Harper <jackson@ximian.com>
9265 * TreeView.cs: Don't try to find the clicked on node if there are
9266 no nodes in the tree.
9268 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9274 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9276 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9277 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9279 Use ResPool for brushes and dispose System.Drawing objects that
9280 are not used anymore.
9282 2005-10-07 Jackson Harper <jackson@ximian.com>
9284 * MdiChildContext.cs: Use the new borders instead of drawing them
9287 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9289 * Calling UpdateBounds after changing the window's BorderStyle
9290 since the style can change the ClientSize
9292 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9294 * Control.cs: Made PaintControlBackground virtual
9295 * Panel.cs: Overriding PaintControlBackground instead of using paint
9296 event; paint event method was interfering with 'real' users of the
9299 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9301 * ThemeWin32Classic.cs: remove border drawing since it is handled
9302 by the base control class now and was causing double border drawing.
9304 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9306 * Panel.cs: Redraw our background on paint. Not a pretty solution,
9307 but it does seem to match MS behaviour. This fixes bug #75324
9309 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9311 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9312 somewhat hackish looking
9314 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9317 - We now accept Enter even if AcceptEnter is false, if the containing
9318 form does not have an AcceptButton configured (fixes bug #76355)
9319 - Calculations are now fixed to no longer use Width/Height, but
9320 ClientSize.Width/Height, since we now support borders (this was
9321 a result of fixing borders and therefore bug #76166)
9322 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
9323 true (fixes bug #76354)
9325 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9328 - Defaulting BorderStyle and setting it in XplatUI when our window
9330 - Added enum check to InternalBorderStyle setter
9332 - Added drawing of window borders
9333 - Now properly calculates WM decorations offset for toplevel
9334 windows (fixes bug #74763)
9336 - Implemented BorderStyles for windows (we're letting win32 draw
9338 - Fixed the signature for SetWindowLong
9339 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
9340 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
9342 * UpDownBase.cs: Remove drawing of borders, this is handled by
9343 the driver, outside the client area
9344 * ListView.cs: Removed bogus border calculations. The control should
9345 be oblivious to borders, since those are not part of the client
9347 * X11DesktopColors.cs: Commented out (currently) unneeded variables
9348 * ThemeWin32Classic.cs: Removed border calculations from ListView
9351 2005-10-06 Jackson Harper <jackson@ximian.com>
9353 * MdiChildContext.cs: Clear out the old virtual position remove
9354 all the unneeded calls to CreateGraphics.
9356 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9358 * TextControl.cs: Use proper color for highlighted text; fixes #76350
9360 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9363 - Added loading and setting of our new default icon
9364 - Only set icon if window is already created
9366 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9369 - Do not explicitly set the foreground and background colors, to
9370 allow inheriting from parents (fixes #76302)
9371 - Use Control's InternalBorderStyle property to deal with borders
9373 2005-10-06 Jackson Harper <jackson@ximian.com>
9375 * MdiChildContext.cs: Use the new xplatui function to draw a
9378 2005-10-06 Jackson Harper <jackson@ximian.com>
9380 * Form.cs: Add the parent before creating the child context cause
9381 we need the parent when setting up the child.
9383 2005-10-06 Jackson Harper <jackson@ximian.com>
9385 * FolderBrowserDialog.cs: redo the tree population code so a
9386 second thread isn't used. Should be a lot faster and more stable
9389 2005-10-05 Jackson Harper <jackson@ximian.com>
9391 * TreeView.cs: There are no expand/collapse boxes if the node has
9394 2005-10-05 Jackson Harper <jackson@ximian.com>
9396 * X11DesktopColors.cs: Get menu colours for the gtk theme.
9398 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
9400 * FileDialog.cs: Fix InitialDirectory
9402 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
9405 - Fixes changing between styles
9407 - Fixes last item crashing when navigating with keyboard
9409 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
9411 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
9413 2005-10-05 Jackson Harper <jackson@ximian.com>
9415 * TreeView.cs: If updating the root node do a full refresh.
9416 * TreeNode.cs: The root node should be expanded by default. Also
9417 added a utility prop to tell if we are the root node.
9418 * TreeNodeCollection.cs: Only refresh if the node we are being
9419 added to is expanded. Also added a comment on a potential
9422 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
9424 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
9425 in dispose method. Fixes #76330
9427 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
9429 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
9431 - Implements vertical and horizontal scrolling using XplatUI
9432 - Fixes keyboard navagation
9433 - Fixes EnsureVisible
9435 - Handles and draws focus properly
9438 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
9440 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
9441 Create handle. NET_2_0: Destroy handle when value is null.
9443 2005-10-03 Jackson Harper <jackson@ximian.com>
9445 * ScrollBar.cs: My last scrollbar patch was broken. This is a
9446 revert and a new patch to prevent the thumb from refreshing so
9449 2005-10-02 Jackson Harper <jackson@ximian.com>
9451 * ScrollBar.cs: Don't update position if it hasn't actually
9452 changed. This occurs when you hold down the increment/decrement
9453 buttons and the thumb gets to the max/min.
9455 2005-10-01 Jackson Harper <jackson@ximian.com>
9458 * MdiChildContext.cs:
9459 * MdiClient.cs: Implement ActiveMdiChild in Form.
9461 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
9463 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
9465 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
9467 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
9470 2005-09-30 Jackson Harper <jackson@ximian.com>
9472 * ListBox.cs: Don't do a full refresh unless some data has
9475 2005-09-30 Jackson Harper <jackson@ximian.com>
9477 * TreeView.cs: Make sure that the checkboxes size is factored in
9478 even when not visible.
9480 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9482 * FileDialog.cs: Fix Jordi's build break
9484 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
9487 - Use standard the Windows colours for the combobox as espected
9488 - Dispose objects that use resouces when no longer need them
9490 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9492 * X11DesktopColors.cs: Initial incomplete implementation
9493 * XplatUIX11.cs: Added call to initialize X11DesktopColors
9495 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
9498 - Switched Theme color names to match the names defined in
9499 System.Drawing.KnownColors. Life's hard enough, no need to make
9501 - Added setters to all theme color properties so themes can set
9502 their color schemes. The setters also propagate the color changes
9503 to System.Drawing.KnownColors via reflection
9504 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
9505 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
9506 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
9507 use the new, more logical theme color names
9508 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
9510 * ThemeWin32Classic.cs:
9511 - Removed code to set the old classic Windows colors. Instead it
9512 now relies on the colors returned by System.Drawing.KnownColors
9513 which will be either modern static colors (Unix) or colors
9514 read from the user's configuration (Win32)
9515 - Updated to use the new, more logical theme color names
9516 - Switched DataGrid drawing code to use only Theme colors instead of
9517 a mix of System.Drawing.KnownColors and Theme colors
9518 - DrawFrameControl(): Removed code that fills the button area, the
9519 fill would overwrite any previous fill done by a control. This
9521 - Added DrawReversibleRectangle() stub
9522 * ScrollableControl.cs: Set visible state to false when scrollbars
9523 are removed (pdn fix)
9524 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
9525 DrawReversibleRectangle() method to allow drawing primitive
9527 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9529 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9531 * ImageList.cs: Add(Icon): Create handle.
9533 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
9536 * ThemeWin32Classic.cs:
9539 - Issues with drawing
9541 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9543 * ImageList.cs: Moved RecreateHandle back to ImageList as event
9544 source has to be the ImageList.
9546 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9548 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9550 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9552 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9554 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9556 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9558 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
9559 * GridItem.cs: Fixed TODOs
9560 * GridItemCollection.cs: Added ICollection interface
9562 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9564 * ImageList.cs: Resize icons when needed.
9566 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
9569 - Fixes GetBounds and returns on screen rects
9571 - Fixes vertical and horzintal scrolling of items
9572 * ThemeWin32Classic.cs:
9575 2005-09-29 Raja R Harinath <harinath@gmail.com>
9577 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9579 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
9581 * ImageList.cs: Added comments about handle creation. Moved Handle,
9582 HandleCreated and OnRecreateHandle implementations to ImageCollection.
9583 Handle is created in Add methods.
9585 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9587 * DataGridDrawingLogic.cs:
9588 - Takes rows into account on Colum calculations
9589 - Returns the column when clickig
9591 - Fixes default HitTestInfo values
9592 - Fixes HitTestInfo.ToString
9593 - Fixes ResetBackColor
9595 2005-09-28 Jackson Harper <jackson@ximian.com>
9597 * MdiChildContext.cs: Obey rules for fixed sized windows (no
9598 sizing or cursor changes). Also added some temp code to draw the
9599 titlebars text (Makes dev a little easier).
9601 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9603 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9605 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9607 * ListBox.cs: Fixes bug 76253
9609 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9611 * ImageList.cs: Added comments about the current implementation. Added
9612 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9613 Format32bppArgb to preserve transparency and can use Graphics.FromImage
9614 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9615 with Bitmap.LockBits for better performance. Revised the whole file to
9616 match MS.NET behaviour and provide better performance. Non-public
9617 interface members are calling public members even when they throw
9618 NotSupportedException for better maintainability. Moved ColorDepth,
9619 ImageSize, ImageStream and TransparentColor implementations to
9620 ImageCollection for better performance as these properties are not used
9622 * ImageListStreamer.cs: Added a new internal constructor that takes an
9623 ImageList.ImageCollection and serializes Images based on
9624 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9625 match ImageList property name.
9627 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
9629 * ListBox.cs: Fixes IndexFromPoint for last item
9631 2005-09-27 Jackson Harper <jackson@ximian.com>
9633 * Form.cs: Set the position of new mdi children correctly.
9635 2005-09-27 Jackson Harper <jackson@ximian.com>
9637 * MdiClient.cs: New mdi children need to be added to the back of
9638 the controls collection so the zorder is set correctly. Also add a
9639 count of all the child windows that have been created.
9641 2005-09-27 Jackson Harper <jackson@ximian.com>
9643 * Form.cs (CreateParams): Setup MDI forms correctly.
9645 2005-09-27 Jackson Harper <jackson@ximian.com>
9647 * MdiChildContext.cs:
9654 * ScrollableControl.cs:
9655 * ComboBox.cs: Add implicit controls using the new implict control
9656 functionality in ControlCollection. Also try to block multiple
9657 control add in a suspend/resume layout to save some cycles.
9659 2005-09-27 Jackson Harper <jackson@ximian.com>
9661 * Control.cs: Add functionality to the controls collection to add
9662 'implicit controls' these are controls that are created by the
9663 containing control but should not be exposed to the user. Such as
9664 scrollbars in the treeview.
9665 * Form.cs: The list var of the ControlsCollection is no longer
9666 available because of the potential of implicit controls getting
9667 ignored by someone accessing the list directly.
9669 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
9671 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9672 loose it's parent. (Fixed bug introduced in r49103 when we added
9673 setting the child parent to null on Remove)
9675 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
9677 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9678 * Splitter.cs: Added missing attributes for BorderStyle property.
9679 * TextBoxBase.cs: Marked Calculate* methods internal.
9680 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9683 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
9685 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9687 2005-09-25 Jackson Harper <jackson@ximian.com>
9689 * TreeView.cs: Update the node bounds correctly regardless of
9690 whether the node is visible.
9692 2005-09-25 Jackson Harper <jackson@ximian.com>
9694 * ImageList.cs: Don't dispose the image after it is added to the
9695 image list. Only reformat images that need to be resized.
9697 2005-09-25 Jackson Harper <jackson@ximian.com>
9699 * ImageList.cs: Don't set the format when changing the image.
9701 2005-09-25 Jackson Harper <jackson@ximian.com>
9703 * TreeView.cs: We can't just assume the node has a font. Use the
9704 treeviews font if no node font is available.
9706 2005-09-25 Jackson Harper <jackson@ximian.com>
9708 * TreeView.cs: Allow the scrollbars to be reset with negative
9710 - Don't add scrollbars to negative sized windows.
9712 2005-09-23 Jackson Harper <jackson@ximian.com>
9714 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9715 old Mono.Posix. Also remove some stray code that shouldn't have
9718 2005-09-23 Jackson Harper <jackson@ximian.com>
9720 * TreeView.cs: Attempt at proper sizing of the horizontal
9721 scrollbar. Also don't resize the scrollbars unless they are
9724 2005-09-23 Jackson Harper <jackson@ximian.com>
9726 * TreeView.cs: We don't need to expand the invalid area when the
9727 selection changes, as this is all drawn in the node's bounding
9728 box. The area needs to be expanded (previous typo was contracting
9729 it) when the focus rect moves.
9731 2005-09-23 Jackson Harper <jackson@ximian.com>
9733 * TreeView.cs: Display the selection box under the correct
9734 circumstances. We were rendering white text with no selection box
9737 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
9739 * TextControl.cs(Split): Now updates selection start/end if it points
9740 into a line that's being split. Fixes a FIXME and bug #75258
9742 2005-09-23 Jackson Harper <jackson@ximian.com>
9745 * ListControl.cs: Don't use the path when retrieving binding
9746 managers from the binding context. My bat sense tells me that the
9747 path is only used on insertion.
9749 2005-09-22 Jackson Harper <jackson@ximian.com>
9751 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9753 2005-09-22 Jackson Harper <jackson@ximian.com>
9755 * Splitter.cs: There are special cursors used for splitting.
9756 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9758 2005-09-22 Jackson Harper <jackson@ximian.com>
9760 * Splitter.cs: Change the cursor appropriately when the splitter
9761 is moused over, so the user actually knows there is a splitter
9764 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9766 * Label.cs : Fix ToString method to give same output as MS.NET
9768 2005-09-22 Jackson Harper <jackson@ximian.com>
9770 * TreeView.cs: Create the scrollbars when the handle is created
9771 and add them right away, just make them invisble. Also account for
9772 the window being shrunk vertically to the point that the vert
9773 scrollbar needs to be added.
9774 - Remove some 0.5 adjustments to get around anti aliasing issues.
9776 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
9778 * MainMenu.cs: Fixes default value
9779 * MenuItem.cs: Fixes default value
9781 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
9783 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9785 2005-09-21 Jackson Harper <jackson@ximian.com>
9787 * Control.cs: Don't try to set the border style on the window if
9788 it hasn't been created. When the window is created the border
9791 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9793 * Control.cs (Update): Don't call XplatUI if we don't have a
9796 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9798 * ContainerControl.cs: Instead of throwing an exception, print
9799 a one-time warning about Validate not being implemented
9800 * XplatUIWin32.cs: Removed debug output
9802 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9804 * Control.cs: Only set XplatUI background if we expect the windowing
9805 system to handle the background. This stops controls that draw their
9806 own background from flickering
9808 * XplatUIX11.cs: Support custom visuals and colormaps for window
9809 creation. This allows, amongst other things, using MWF X11 windows
9812 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9814 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9815 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9816 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9817 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9818 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9819 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9820 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9821 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9822 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9823 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9824 GridColumnStylesCollection.cs,
9825 IDataGridColumnStyleEditingNotificationService.cs,
9826 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9827 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9828 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
9829 TreeNodeCollection.cs, AmbientProperties.cs,
9830 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9831 DataObject.cs, ErrorProvider.cs, Splitter.cs,
9832 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9833 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9834 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9835 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9836 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9837 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9838 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9839 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9840 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9841 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9842 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9843 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9844 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9845 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9846 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9847 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9848 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9849 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9850 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9851 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9852 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9853 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9854 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9855 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9856 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9857 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9858 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9859 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9860 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9861 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9862 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9863 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9864 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9865 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9866 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9868 2005-09-21 Jackson Harper <jackson@ximian.com>
9870 * TreeNode.cs: Call Before/After Expand not Collapse when
9873 2005-09-20 Jackson Harper <jackson@ximian.com>
9875 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9877 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9881 - Fixes proper storing of subitems
9882 - Fixes not updated items
9884 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9886 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9887 things if our window handle isn't created yet. Also disabled
9888 debug for TextBoxBase
9890 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9892 * MenuAPI.cs: Remove filtering of events to allow menu usage
9894 2005-09-20 Miguel de Icaza <miguel@novell.com>
9896 * Cursor.cs: Allow null to be passed to Cursor.Current.
9898 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
9900 * ThemeWin32Classic.cs:
9901 - Change some private methods/fields to protected virtual so that
9902 they can be accessed and overriden in derived classes
9903 - First refactoring of some methods. Derived themes now don't
9904 need to duplicate the complete code from ThemeWin32Classic
9906 - Added nice StatusBar
9907 - Derive from ThemeWin32Classic and not Theme
9908 - Removed duplicate ThemeWin32Classic code
9910 2005-09-20 Miguel de Icaza <miguel@novell.com>
9912 * Control.cs (ControlCollection.Add): If the value null is passed
9913 the control is ignored.
9917 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9919 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9920 PostQuitMessage state.
9921 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9923 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9925 * Application.cs: Our constructor will never get called, move
9926 initialization to fields; fixes bug #75933
9928 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9931 - Allow files to be selected properly using file name
9933 - Add ability to change diretory (absolute / relative)
9934 using file name combo box.
9936 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9939 - Fixes Multicolumn listboxes item wrong calculations
9940 - Allows to click when only one item is in the listbox
9941 - Fixes crash when no items using keyboard navigation
9943 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
9945 * ComboBox.cs: Reverted almost everything from the latest patch which
9948 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
9951 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9953 - When DropDownStyle is Simple, it does not show scrollbar
9954 to the last item of the list.
9955 - When DropDownStyle is Simple, it crashed when the list was
9956 scrolled down with the down cursor key.
9957 - Fixed a bug that when DropDownStyle is DropDownList, the
9958 selected item was not shown.
9959 - The position of the selected item was not preserved when
9960 the next dropdown happened.
9961 * ThemeWin32Classic.cs:
9962 - Items were wrapped at the right end.
9963 * CheckedListBox.cs:
9966 - Items should be fully shown.
9967 - When resizing and vertical scrollbar disappeared, the item
9968 of index 0 should be on the top of the list.
9969 - GetItemRectangle should consider the size of ver. scrollbar
9971 - SizingGrip area should not be allocated when it is not
9973 - Now it reflects MinWidth of the containing panel and
9974 fixed a crash that happens when its width becomes so small.
9976 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9978 * CheckedListBox.cs: Fixes bug 76028
9979 * ListBox.cs: Fixes bug 76028
9981 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9983 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9984 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9986 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
9988 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9990 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9992 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
9994 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9996 * IRootGridEntry.cs: Added
9997 * PropertyGridCommands.cs: Added
9998 * PropertiesTab.cs: Added missing methods and property
9999 * PropertyGridView.cs: Made class internal
10000 * PropertyGridTextBox.cs: Made class internal
10002 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10004 * MimeIcon.cs: Try to check some other environment variables
10005 if "DESKTOP_SESSION" returns "default"
10007 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10009 * ThemeNice.cs: Corrected background colors (e.g. menus)
10010 * ColorDialog.cs: Use correct background colors for controls
10012 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10014 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10016 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
10018 * RichTextBox.cs: Added initial implementation
10019 * lang.cs: Removed. Was accidentally checked in long time ago
10020 * TODO: Removed. Contents were obsolete
10022 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
10024 * PropertiesTab.cs : Added
10026 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
10028 * PropertyGrid.cs : Update
10029 * PropertyGridView.cs : Update
10030 * System.Windows.Forms.resx : Added images and strings
10032 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
10034 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10036 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
10038 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10039 a busy loop right after the Ungrab the X11 display is otherwise
10042 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
10044 * ThemeWin32Classic.cs: Optimise the use of clipping
10046 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
10048 * DataGrid.cs: fixes recursion bug
10050 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
10053 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10056 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
10058 * ThemeNice.cs: Draw nice ProgressBars
10060 2005-09-01 Miguel de Icaza <miguel@novell.com>
10062 * VScrollBar.cs: Another buglet found by Aaron's tool.
10064 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
10067 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
10070 - Added nicer menu drawing
10074 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10076 * CreateParams.cs (ToString): Made output match MS
10077 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
10078 handle is already created (to avoid forcing window creation)
10079 * XplatUIX11.cs: Set window text to caption after creating window,
10080 in case Text was set before window was created
10081 * Form.cs: Use this.Text instead of a static string as caption
10083 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10085 * NotifyIcon.cs: Don't set the window to visible; this screws
10086 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
10087 OnPaint without a bitmap)
10088 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
10089 happen very often anyway; we could add the check to the WM_PAINT
10090 event generation code
10092 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10094 * NotifyIcon.cs: Fill the icon area with a background color, to
10095 avoid 'residue' when transparent icons are drawn
10097 - Handle whole_window == client_window when destroying windows
10098 - SystrayAdd(): Set client_window to whole_window value to
10099 get mouse and other events passed to NotifyIcon
10101 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10103 * Form.cs: Set proper default for Opacity property
10105 - ShowSystray(): Don't bother creating telling the OS
10106 about the systray item if no icon is provided
10107 - Now handles WM_NCPAINT message to deal with whole/client window
10109 - Create window as visible to not get caught by Expose optimization
10110 * Hwnd.cs: Removed debug message
10111 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
10112 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
10113 PaintEventStart/End to use new client argument
10115 - Commented out debug messages
10116 - Switched PaintEventStart/End to use new client argument
10117 * XplatUI.cs: Added client window bool to PaintEventStart()/
10118 PaintEventEnd() calls, to support drawing in non-client areas
10119 * XplatUIDriver.cs:
10120 - Added client window bool to PaintEventStart()/PaintEventEnd()
10121 calls, to support drawing in non-client areas
10122 - Added conditional compile to allow using MWF BeginInvoke
10125 - Added some conditional debug output
10126 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
10127 whole/client window split
10128 - Implemented handling of client argument to PaintEventStart()/End()
10130 - Throw exception if BeginInvoke() is called and the window handle
10131 or one of the window's parent handles is not created
10132 - Added conditional compile to allow using MWF BeginInvoke on
10134 - get_Parent(): Only sets parent if handle is created. This avoids
10135 forcing window handle creation when parent is set.
10136 - Now fires Layout and Parent changed events in proper order
10137 - Switched to use Handle instead of window.Handle for Z-Order setting,
10138 the get_Parent() patch above causes us to possibly get null for 'window'
10139 - Implemented handling of client argument to PaintEventStart()/End()
10140 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
10142 - Now sends a Refresh() to all child windows when Refresh() is called
10144 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
10146 * Form.cs: Added (non-functional) Opacity property
10147 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
10149 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
10150 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
10151 use export MONO_THEME=nice to activate it.
10152 Currently supported controls:
10156 - TabControl (TabAlignment.Top only, other will follow)
10157 * ThemeEngine.cs: Add theme nice
10158 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
10161 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
10163 * Splitter.cs: Resize docked control and its neighbor.
10165 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10166 -- Making Windows with Menus layout correctly --
10167 * Form.cs : The first leg of the fix
10168 Menu setter - adjust Client Size as needed to make space for the menu
10169 SetClientSizeCore - doesn't call base version to be able to pass the
10170 menu handle to XplatUI.CalculateWindowRect
10171 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
10172 * XplatUIX11.cs: The critical second leg of the fix
10173 GetWindowPos needs to use a recalculated client_rect
10174 so that resizing the window doesn't break layout of child controls.
10175 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
10176 Lots of \t\n killed
10178 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
10180 * Label.cs: Now properly recalculates width and height on Font and Text
10181 changes if AutoSize is set
10183 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10184 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
10186 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
10188 * ImageList.cs: Makes ToString method compatible with MS
10190 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
10192 * MenuAPI.cs: fixes bug 75716
10194 2005-08-11 Umadevi S <sumadevi@novell.com>
10195 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
10197 2005-08-11 Umadevi S <sumadevi@novell.com>
10198 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
10200 2005-08-10 Umadevi S <sumadevi@novell.com>
10201 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
10203 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
10205 * Menu.cs: fixes bug 75700
10206 * MenuAPI.cs: fixes navigation issues
10208 2005-08-09 Umadevi S <sumadevi@novell.com>
10209 * CheckedListBox.cs - simple fix for GetItemChecked.
10211 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
10213 * ComboBox.cs: Serveral fixes
10214 * ListBox.cs: Serveral fixes
10216 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
10218 * ComboBox.cs: Fixes FindString methods and GetItemHeight
10219 * ListBox.cs: Fixes FindString methods
10221 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
10223 * DataGrid.cs: fixes bugs exposed by new tests
10225 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
10227 * Mime.cs: Compile Mono assembly references only if compiling
10228 with Mono (Allows to build with VS.Net again)
10230 2005-07-28 Marek Safar <marek.safar@seznam.cz>
10232 * Control.cs (PaintControlBackground): Draw background image
10234 (CheckForIllegalCrossThreadCalls): Stubbed.
10236 * Form.cs (OnCreateControl): Center when should be centered.
10238 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
10240 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
10242 * Binding.cs: Binding to properties should be case unsensitive
10244 2005-07-18 vlindos@nucleusys.com
10246 * DataGrid.cs: fixes setmember order
10248 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
10250 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10251 * FileDialog.cs: FileDialog is now resizable and uses the new
10254 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
10256 * DataGridTextBoxColumn.cs: default value
10257 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10258 * GridTableStylesCollection.cs: fixes checking MappingName
10259 * DataGridDrawingLogic.cs: fixes drawing logic issues
10260 * DataSourceHelper.cs: rewritten to make compatible with more data sources
10261 * DataGrid.cs: fixes
10263 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
10265 * MimeGenerated.cs: Use case sensitive comparer for
10266 NameValueCollections
10268 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
10270 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
10271 * ThemeWin32Classic.cs: bug fixes, code refactoring
10272 * DataGridDrawingLogic.cs: bug fixes, code refactoring
10273 * DataGrid.cs: bug fixes, code refactoring
10274 * DataGridTextBox.cs: bug fixes, code refactoring
10275 * DataGridColumnStyle.cs: bug fixes, code refactoring
10276 * Theme.cs: bug fixes, code refactoring
10278 2005-07-01 Peter Bartok <pbartok@novell.com>
10280 * TextControl.cs: Quick fix for the reported crash on ColorDialog
10281 and other text box usage
10283 2005-07-01 Jackson Harper <jackson@ximian.com>
10285 * TabControl.cs: Make sure the bottom of the tab covers the pages
10288 2005-06-30 Peter Bartok <pbartok@novell.com>
10290 * Form.cs (ShowDialog): Assign owner of the dialog
10291 * TextBoxBase.cs: Always refresh caret size when deleting, caret
10292 might have been moved to a tag with different height
10294 2005-06-30 Jackson Harper <jackson@ximian.com>
10296 * Form.cs: Don't create an infinite loop when setting focus
10297 * MenuItem.cs: Don't dirty the parents if we don't have any
10299 2005-06-29 Ben Maurer <bmaurer@ximian.com>
10301 * LibSupport.cs: Rename
10303 2005-06-29 Peter Bartok <pbartok@novell.com>
10305 * TextBoxBase.cs: Re-align caret after deleting a character
10307 - DeleteChars(): Ensure that tag covers the provided position
10308 - StreamLine(): Drop reference for dropped tag
10310 2005-06-29 Peter Bartok <pbartok@novell.com>
10313 - Selections now work properly, anchoring at the initial location
10314 and properly extending in either direction (SetSelectionToCaret(),
10315 SetSelectionStart() and SetSelectionEnd())
10316 - No longer redraws the whole control on selection change, now
10317 calculates delta between previous and new selection and only
10318 invalidates/redraws that area
10319 - Fixed FindPos() math off-by-one errors
10320 - Changed DeleteChars() to verify the provided tag covers the
10321 provided position, selections may have a tag that doesn't cover
10322 the position if the selection is at a tag border
10323 - Fixed off-by-one errors in DeleteChars()
10324 - Added missing streamlining check in DeleteChars() to remove
10326 - Implemented Invalidate() method, now properly calculates exposures
10327 between two given lines/positions
10328 - Implemented SetSelection()
10329 - Obsoleted and removed FixupSelection()
10330 - Improved RecalculateDocument() logic, removing code duplication
10332 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10334 * LibSupport.cs: changes to match different input/output arguments.
10336 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10338 * LibSupport.cs: added libsupport.so init routine.
10340 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
10342 * ControlBindingsCollection.cs
10343 - Throws an exception on null datasource when adding
10344 - Checks for duplicated bindings when adding
10346 2005-06-28 Jackson Harper <jackson@ximian.com>
10348 * TreeView.cs (OnKeyDown): Support left and right properly
10349 (navigates as well as expanding and collapsing.
10350 - Add support for Multiply, this expands all the selected nodes
10352 - Fix some tabbing.
10354 2005-06-28 Jackson Harper <jackson@ximian.com>
10356 * TreeView.cs: Implement keyboard navigation, currently supports,
10357 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
10358 support for toggling checkboxes with the space bar.
10360 2005-06-28 Jackson Harper <jackson@ximian.com>
10362 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
10365 2005-06-28 Jackson Harper <jackson@ximian.com>
10367 * TreeView.cs: Add missing event.
10369 2005-06-27 Peter Bartok <pbartok@novell.com>
10372 - Made line ending size configurable (now allows for counting
10373 lineendings as \n or \r\n)
10374 - Added margin to viewport to keep caret visible on right side
10375 - Fixed translation routines for line/pos to documentpos to consider
10376 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
10377 - Fixed some line-endings to be unix style
10378 - Fixed Document.FormatText to perform it's calculations 1-based
10379 - Added descriptions for a few methods that might otherwise get
10381 - Added NOTE section with some basic conventions to remember at
10382 the top of the file
10383 - Major fixup for RichTextBox selection drawing:
10384 * Fixed crashes when multiple tags on a single line were selected
10385 * fixed selection box drawing not overlaying text
10386 * fixed bogus offset calculation for tags not starting at index 1
10387 * Switched behaviour from using multiple Substrings of a
10388 StringBuilder.ToString() to using multiple
10389 StringBuilder.ToString(start, length) statements, hoping this is
10390 faster (kept original version commented out in the code, in case
10391 original version was faster)
10392 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
10394 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
10397 2005-06-27 Jackson Harper <jackson@ximian.com>
10399 * TabControl.cs: Move to the left and right with the arrow
10400 keys. These keys don't cycle beyond first and last like
10401 tab. Refresh all the tabs when scrolling them to the left or
10404 2005-06-27 Jackson Harper <jackson@ximian.com>
10407 - ToString: Added method
10408 - CreateParams: Remove TODO and comment
10409 - OnKeyDown: Cycle through bounds properly.
10410 - SelectedIndex: Scroll to the right or left if we need to
10411 display the newly selected tab.
10413 2005-06-23 Jackson Harper <jackson@ximian.com>
10415 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
10418 2005-06-23 Jackson Harper <jackson@ximian.com>
10420 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
10421 CTRL-SHIFT-TAB, and HOME, END are there any others?
10423 2005-06-23 Jackson Harper <jackson@ximian.com>
10425 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
10427 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
10429 * DataGridTextBoxColumn.cs: fixes and enhancements
10430 * ThemeWin32Classic.cs: fixes and enhancements
10431 * DataGridBoolColumn.cs: fixes and enhancements
10432 * DataGridDrawingLogic.cs: fixes and enhancements
10433 * CurrencyManager.cs: fixes and enhancements
10434 * DataGrid.cs: fixes and enhancements
10435 * DataGridColumnStyle.cs: fixes and enhancements
10437 2005-06-22 Jackson Harper <jackson@ximian.com>
10439 * TabControl.cs: Add some missing methods that just call into the
10440 base. Make the TabPageCollection's IList interface behave in the
10441 same manner as the MS implementation.
10443 2005-06-22 Peter Bartok <pbartok@novell.com>
10445 * TextControl.cs: Added sanity check
10447 - Fixed wrapping behaviour, don't set wrap on single line controls
10448 (this fixes the breakage of colordialog introduced in an earlier
10450 - Added rudimentary support for autoscrolling right-aligned controls
10451 (still needs fixing, also, center alignment scroll is missing)
10453 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
10455 * ScrollBar.cs: Fixes thumbpos on Maximum values
10457 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
10459 * PropertyGridView.cs: Pass context information to UITypeEditors
10461 2005-06-21 Peter Bartok <pbartok@novell.com>
10464 - Now calling PositionCaret with absolute space coordinates
10465 - Enabled vertical scrolling
10466 - Better tracking of scrollbar changes, tied into WidthChange
10468 - Improved cursor tracking
10469 - Removed debug output
10471 - PositionCaret coordinates are now works in absolute space, not
10473 - Improved tracking of document size
10474 - Added events for width and height changes
10476 2005-06-21 Peter Bartok <pbartok@novell.com>
10478 * Form.cs: Set focus to active control when form is activated
10480 - Added word-wrap functionality to RecalculateLine()
10481 - Added some short function descriptions for VS.Net to aid in
10482 writing dependent controls
10483 - Added Caret property, returning the current coords of the caret
10484 - Added ViewPortWidth and ViewPortHeight properties
10485 - Added Wrap property
10486 - Added CaretMoved event
10487 - Removed some old debug code
10488 - Split() can now create soft splits
10489 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
10490 - Added method to format existing text
10491 - Fixed size/alignment calculations to use viewport
10492 - RecalculateDocument now can handle changing line-numbers while
10496 - Added some wrap logic, we don't wrap if alignment is not left
10497 - Added casts for scrollbar var, base class switched types to
10498 also support RichTextBoxA
10499 - Implemented handling of scrollbar visibility flags
10502 - Switched scrollbars type to RichTextBoxScrollBars to support
10504 - Added tracking of canvas width/height
10505 - Switched scrollbars to be not selectable (to keep focus on text)
10506 - Added central CalculateDocument() method to handle all redraw
10508 - Added ReadOnly support
10509 - Added WordWrap support
10510 - Fixed handling of Enter key (we now treat it as a DialogKey)
10511 - Fixed caret positioning when h or v scroll is not zero
10512 - Fixed placing/generation of vertical scrollbar
10513 - Added CalculateScrollBars() method to allow updating scrollbar
10514 limits and visibility
10515 - Fixed handling of horizontal scroll
10516 - Added handling of vertical scroll
10517 - Implemented auto-'jump' when caret moves to close to a left or
10518 right border and there is text to be scrolled into view (currently
10519 there's the potential for a stack overflow, until a bug in
10520 scrollbar is fixed)
10522 2005-06-21 Geoff Norton <gnorton@customerdna.com>
10524 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
10526 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
10530 - return application/x-zerosize for files with size zero
10531 (if no extension pattern matches).
10532 - check matches collection for strings too.
10533 - return only the first mime type if the name value
10534 collection has more than one mime type.
10536 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
10538 * PropertyGrid.cs: Cleaned up some TODOs
10539 * PropertyGridView.cs: Added support for UITypeEditors
10541 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10543 * DataGrid.cs: clears cached value
10545 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10547 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10548 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10549 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10550 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10552 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
10554 * ThemeWin32Classic.cs: fixes colour
10556 2005-06-15 Peter Bartok <pbartok@novell.com>
10558 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10559 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10560 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10561 * Control.cs: Added some MWFCategory and MWFDescription attributes
10562 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10564 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
10566 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10569 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
10571 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10572 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10573 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10574 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10575 * DataGrid.cs: default datagrid settings for Default Styles, fixes
10576 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10578 2005-06-13 Jackson Harper <jackson@ximian.com>
10580 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10581 isn't printed when the user enables dropping. (X11 does accept
10584 2005-06-13 Jackson Harper <jackson@ximian.com>
10586 * TreeView.cs: Remove some TODOS.
10588 2005-06-13 Jackson Harper <jackson@ximian.com>
10590 * Form.cs: Hook into the mdi framework.
10591 * MdiClient.cs: Use the base control collections add method so
10592 parents get setup correctly. Set the default back colour and dock
10594 * MdiChildContext.cs: New class, this bad actor handles an
10595 instance of an MDI window. Right now there is only basic
10596 support. You can drag, close, and resize windows. Minimize and
10597 Maximize are partially implemented.
10599 2005-06-13 Jackson Harper <jackson@ximian.com>
10601 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10602 freaky when both vals are negative. NOTE: There are probably other
10603 places in XplatUIX11 that this needs to be done.
10605 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
10607 * DataGrid.cs: implement missing methods, move KeyboardNavigation
10608 * DataGridColumnStyle.cs: fixes signature
10610 2005-06-12 Jackson Harper <jackson@ximian.com>
10612 * XplatUIX11.cs: Use sizing cursors similar to the ones on
10615 2005-06-11 Jackson Harper <jackson@ximian.com>
10617 * StatusBarPanel.cs: Signature cleanups. Implement
10620 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
10622 * DataGridTextBoxColumn.cs: Honors aligment
10623 * GridColumnStylesCollection.cs: Contains is case unsensitive
10624 * GridTableStylesCollection.cs: several fixes
10625 * DataGridTableStyle.cs: default column creation
10626 * DataGridDrawingLogic.cs: fixes
10627 * CurrencyManager.cs: ListName property
10628 * DataGrid.cs: multiple styles support
10629 * DataGridColumnStyle.cs: fixes
10632 2005-06-10 Peter Bartok <pbartok@novell.com>
10634 * Control.cs(Select): Moved SetFocus call to avoid potential
10635 loops if controls change the active control when getting focus
10636 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10637 the up/down buttons
10639 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
10641 * ImageListConverter.cs: Implemented
10643 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10645 * MonthCalendar.cs: Wired in NumericUpDown control for year
10647 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10649 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10650 DoubleClick events, since they are not meant to be fired.
10652 2005-06-09 Peter Bartok <pbartok@novell.com>
10654 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10655 Jonathan's standalone controls into MWF, implemented missing
10656 events, attributes and methods; added xxxAccessible classes
10657 * AccessibleObject.cs: Made fields internal so other classes
10658 can change them if needed
10660 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
10662 * UpDownBase.cs: Complete implementation
10663 * NumericUpDown.cs: Complete implementation
10664 * DomainUpDown.cs: Complete implementation
10666 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
10668 * DataGridTextBoxColumn.cs: drawing fixes
10669 * DataGridCell.cs: fixes ToString method to match MSNet
10670 * DataGridTableStyle.cs: fixes
10671 * DataGridBoolColumn.cs: fixes, drawing
10672 * DataGridDrawingLogic.cs: fixes, new methods
10673 * DataGridTextBox.cs: Keyboard and fixes
10675 - Keyboard navigation
10677 - Row selection (single, multiple, deletion, etc)
10680 2005-06-07 Jackson Harper <jackson@ximian.com>
10682 * ThemeWin32Classic.cs: Clear the background area when drawing
10685 2005-06-06 Peter Bartok <pbartok@novell.com>
10687 * ImageListStreamer.cs: Fixed signature for GetData
10688 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10690 - Added missing ChildAccessibleObject class
10691 - Added missing OnXXXFocus overrides, switched to using those
10692 instead of the event handler
10694 - Added Parent property for ControlAccessibleObject
10697 - Added ResetBindings()
10698 * ListBindingConverter.cs: Implemented some methods
10699 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10700 * ImageList.cs: Implemented basic handle scheme, removed TODOs
10701 * ContainerControl.cs: Fixed signature, now subscribing to the
10702 ControlRemoved event instead of overriding the handler, LAMESPEC
10703 * CurrencyManager.cs: Added missing attribute
10704 * MonthCalendar.cs: Added missing properties
10706 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10708 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10710 2005-06-06 Gaurav Vaish and Ankit Jain
10712 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10713 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10715 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10717 * Control.cs: fixes CreateParams Width / Height.
10719 2005-06-05 Peter Bartok <pbartok@novell.com>
10721 * Win32DnD.cs: Removed compilation warnings
10723 2005-06-05 Peter Bartok <pbartok@novell.com>
10725 * Control.cs (CreateParams): Since we don't know if one of the
10726 properties we use is overridden, lets make sure if we fail accessing
10727 we continue with a backup plan
10729 2005-06-05 Peter Bartok <pbartok@novell.com>
10732 - Removed debug output
10733 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10735 - Plugged resource leak
10736 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10739 2005-06-05 Peter Bartok <pbartok@novell.com>
10741 * XplatUIWin32.cs: Removed DnD code
10742 * Win32DnD.cs: Implemented drop source and drop target functionality
10744 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10746 * UpDownBase.cs: remove duplicate addition of event, enable some code
10747 that was commented out.
10748 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10749 Validate input when a key is pressed. It works fine now for every
10750 combination of Hexadecimal. Only missing some drawing love when sharing
10751 space with other controls.
10753 2005-06-04 Peter Bartok <pbartok@novell.com>
10756 - We need to pass a window for DragDrop, so enable callback events
10757 - Added DnD callback events when being a DragSource
10758 * XplatUI.cs (StartDrag): Added window handle argument
10759 * XplatUIDriver.cs (StartDrag): Added window handle argument
10760 * QueryContinueDragEventArgs: Made fields internally accessible so
10761 drivers can set them
10762 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10765 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
10767 * DataGridTextBoxColumn.cs: column text editing
10768 * DataGridTableStyle.cs: Respect columns styles created by the user
10769 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10770 * DataGridBoolColumn.cs: bool column editing
10771 * DataGrid.cs: fixes to scrolling, properties, etc
10772 * DataGridTextBox.cs: handle keyboard
10773 * DataGridColumnStyle.cs: fixes
10775 2005-06-02 Jackson Harper <jackson@ximian.com>
10777 * ImageListStreamer.cs: Somewhat broken implementation of
10778 GetObjectData. The RLE needs some work to match MS properly.
10780 2005-06-02 Jackson Harper <jackson@ximian.com>
10782 * X11Dnd.cs: Attempting to keep at least one file in MWF
10785 2005-06-02 Peter Bartok <pbartok@novell.com>
10787 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10790 2005-06-02 Peter Bartok <pbartok@novell.com>
10792 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10793 * XplatUI.cs: Added DoDragDrop() method
10794 * XplatUIDriver.cs: Added DoDragDrop() method
10796 2005-06-02 Jackson Harper <jackson@ximian.com>
10798 * Splitter.cs: Implement BorderStyle.
10800 2005-06-02 Jackson Harper <jackson@ximian.com>
10802 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10803 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10806 2005-06-02 Peter Bartok <pbartok@novell.com>
10809 - Added Data setter
10810 - Fixed broken insertion code for SetData, now also
10811 overwrites any existing entry of the same format name
10812 * Hwnd.cs: Added list of pointers that automatically gets
10813 freed when the window is disposed
10814 * XplatUI.cs: Call driver initialization method when loading
10817 - OnDragLeave takes EventArgs, not DragEventArgs
10818 - Added setting of WS_EX_ACCEPTFILES style when dropping is
10820 - Forces style update when drop state changes
10821 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10822 not perfect since we cannot (yet) call the IDataObject.GetData()
10823 method, we keep getting 0x80004005 error, dunno why)
10825 2005-06-02 Peter Bartok <pbartok@novell.com>
10827 * DragEventArgs.cs: Make fields internal so we can cache the
10828 object and re-set the fields from XplatUI
10830 2005-06-02 Jackson Harper <jackson@ximian.com>
10832 * Control.cs: Add some internal methods so the DnD subsystem can
10833 raise DnD events. Also call into the driver when AllowDrop is set.
10835 * XplatUIDriver.cs: New method for setting whether or not a window
10836 is allowed to accept drag and drop messages.
10838 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
10840 * ScrollBar.cs: Make sure that values sent in Scroll events
10841 are always between Maximum and Minimum.
10843 2005-06-01 Marek Safar <marek.safar@seznam.cz>
10845 * Menu.cs: Call MenuChanged when menuitem visibility has been
10847 * MenuItem.cs: Rebuild menu when item is (not) visible.
10848 * MainMenu.cs: MainMenu has special MenuChanged.
10849 * Theme.cs: Caption and FrameBorderSize are not fixed.
10850 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10851 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10853 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10854 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10856 2005-05-30 Jackson Harper <jackson@ximian.com>
10858 * DataFormat.cs: We can't statically initialize this stuff because
10859 it calls into the xplatui and could create a loop. So we lazy init
10862 2005-05-28 Jackson Harper <jackson@ximian.com>
10864 * Control.cs: Proper implementation of Product(Name/Version).
10866 2005-05-27 Jackson Harper <jackson@ximian.com>
10868 * DataObject.cs: Dont crash if no data is found.
10870 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10871 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10872 as per status page, guessing it should be set to true
10874 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
10876 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10877 * DataGridTableStyle.cs: set proper formatting text, def header text
10878 * ThemeWin32Classic.cs: new themable paramaters
10879 * DataGridBoolColumn.cs: paint check box, get data, fixes
10880 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10881 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10882 * DataGridColumnStyle.cs: fixes
10883 * Theme.cs: new themable paramaters
10885 2005-05-26 Peter Bartok <pbartok@novell.com>
10887 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10889 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10890 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10892 2005-05-24 Peter Bartok <pbartok@novell.com>
10894 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10895 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10896 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10897 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10898 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10899 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10900 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10901 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10902 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10903 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10904 missing attributes, etc
10905 * DataGridPreferredColumnWidthTypeConverter.cs: Added
10907 2005-05-24 Peter Bartok <pbartok@novell.com>
10909 * Help.cs: Added, implemented trivial functions, throws up MessageBox
10910 when user tries to get help
10911 * DataObject.cs, DataFormats.cs, LinkArea.cs,
10912 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10913 to suppress warnings
10914 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10915 avoid unreachable code warning
10917 2005-05-20 Peter Bartok <pbartok@novell.com>
10919 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10921 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10923 * DataGridTextBoxColumn.cs: Basic painting methods
10924 * DataGridTableStyle.cs: Set table style in the column
10925 * ThemeWin32Classic.cs: Use Theme for colors
10926 * DataGridDrawingLogic.cs: Implement more drawing
10927 * DataGrid.cs: drawing, theming, enhacements, fixes
10928 * DataGridColumnStyle.cs: fixes, drawing
10929 * Theme.cs: theming for Datagrid
10931 2005-05-20 Peter Bartok <pbartok@novell.com>
10933 * Cursor.cs: Implemented GetObjectData() method
10935 2005-05-20 Peter Bartok <pbartok@novell.com>
10937 * Cursors.cs: Added setting of cursor name
10939 - Implemented constructors
10940 - Implemented Draw and DrawStretched
10941 - Implemented Current property
10942 - Implemented == and != operators
10943 - Implemented Dispose()
10944 - Implemented ToString
10945 - Added missing attributes
10947 - Added missing reset for OverrideCursor when DoEvents is called
10948 - Fixed creation of cursor, logic was wrong
10950 - Added missing reset for OverrideCursor when DoEvents is called
10951 - Fixed creation of cursor, bit arrays were swapped
10952 * Clipboard.cs: Removed obsolete MonoTODO attribute
10954 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10956 * ComboBox.cs: fixes OnSelectedItemChanged
10957 * ControlBindingsCollection.cs: fixes item range check
10959 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10962 - Calc preferred height properly
10963 - Implement missing properties
10965 * NumericUpDown.cs: Implement missing events
10967 2005-05-19 Jackson Harper <jackson@ximian.com>
10969 * TabControl.cs: New method that resizes the tab pages before
10970 redrawing them. This as needed as the control is double buffered
10971 and sizing will not be recalculated unless ResizeTabPages is
10973 * TabPage.cs: Set base.Text instead of Text in the constructor so
10974 that UpdateOwner does not get called. Use the new Redraw method of
10975 TabControl instead of Refresh so the sizing is recalculated.
10976 * ThemeWin32Classic.cs: Draw the text for button tabs.
10978 2005-05-19 Jackson Harper <jackson@ximian.com>
10980 * Control.cs: Paint control background images. Fix typo where
10981 PaintControlBackground was not getting called correctly.
10983 2005-05-19 Peter Bartok <pbartok@novell.com>
10985 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10986 I can investigate, apparently I broke FileDialog
10988 2005-05-19 Marek Safar <marek.safar@seznam.cz>
10990 * AxHost.cs: Some simple properties.
10991 * Control.cs: window must be accessible after ctor.
10992 * Form.cs: Added TransparencyKey property.
10993 * TextBoxBase.cs: Implemented Clear. Text property can be null.
10994 * XplatUIWin32.cs: SetBorderStyle implemented.
10996 2005-05-18 Peter Bartok <pbartok@novell.com>
10998 * DataObject.cs: Entries are not global but particular to the
10999 DataObject, now it behaves that way
11000 * XplatUIWin32.cs: Implemented Clipboard methods
11001 * Clipboard.cs: Implemented
11002 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11003 * XplatUIOSX.cs: Updated to final clipboard prototypes
11004 * XplatUIX11.cs: Implemented Clipboard methods
11005 * XplatUIDriver.cs: Updated to final clipboard prototypes
11006 * XplatUIStructs.cs:
11007 - Added BITMAPINFOHEADER struct
11008 - Added ClipboardFormats enum
11010 - Added ClipboardStruct
11011 - Added Atom enum items for clipboard types
11012 - Fixed atom types for Selection event structures
11014 - Added internal properties and methods for drivers to enumerate
11016 - Switched initialization method to allow drivers to assign their
11017 own IDs even for the MS predefined clipboard IDs
11018 * XplatUI.cs: Updated to final clipboard interface
11020 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11021 * PropertyGridView.cs: Fixed compiler warnings.
11023 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11024 * PropertyGrid.cs: Added some event calls
11025 * PropertyGridView.cs: Change drawing code to use double buffering
11026 * PropertyGridTextBox.cs: Changed Text property name
11027 * GridItem.cs: Added Bounds property.
11028 * GridEntry.cs: Added Bounds property.
11030 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
11032 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11033 since GetType() may not return the correct type if the object is
11036 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
11038 * TreeNodeCollection.cs: fixes get/set item ranges
11040 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
11042 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11044 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
11046 * ComboBox.cs: Fix item range comparation
11047 * ListView.cs: Fix item range comparation
11049 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
11052 - Clear example panel when OnPaint is called
11053 - Better solution for displaying the example panel text
11054 - Select default indexes in the ListBoxes
11056 2005-05-11 Geoff Norton <gnorton@customerdna.com>
11058 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
11060 2005-05-11 Peter Bartok <pbartok@novell.com>
11062 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
11063 * SelectionRangeConverter.cs: Implemented
11064 * PropertyGrid.cs: Fixed attribute value
11066 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
11067 - Added Sebastien Pouliot's CAS Stack Propagation fixes
11068 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
11069 that's common to all drivers. First methods to go there are
11070 Sebastien Pouliot's CAS Stack Propagation helper methods
11071 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
11072 Sebastien Pouliot for CAS Stack Propagation
11074 2005-05-11 Geoff Norton <gnorton@customerdna.com>
11077 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
11079 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
11081 * DataGridTextBoxColumn.cs: fixed some members
11082 * GridColumnStylesCollection.cs: indexed column is case insensitive
11083 * DataGridTableStyle.cs: fixes
11084 * ThemeWin32Classic.cs: add new theme parameter
11085 * Theme.cs: add new theme parameter
11086 * DataGridDrawingLogic.cs: Datagrid's drawing logic
11087 * DataGrid.cs: fixes, new internal properties, etc.
11088 * DataGridColumnStyle.cs: allows to set grid value
11091 2005-05-10 Peter Bartok <pbartok@novell.com>
11093 * AccessibleObject.cs:
11094 - Removed MonoTODO attribute on help, method is correct
11095 - Fixed Bounds property
11096 * AxHost.cs: Moved MonoTODO
11097 * ButtonBase.cs: Now setting AccessibleObject properties
11098 * RadioButton.cs: Setting proper AccessibleObject role
11099 * CheckBox.cs: Setting proper AccessibleObject role
11100 * ControlBindingsCollection.cs: Added properties, methods and attributes
11101 * DataFormats.cs: Fixed awkward internal API, and changed to enable
11102 userdefined DataFormats.Format items as well
11103 * ListControl.cs: Removed data_member from the public eye
11104 * OpenFileDialog.cs:
11105 - Made class sealed
11106 - Added missing attributes
11107 * SaveFileDialog.cs: Added missing attributes
11108 * ImageListStreamer.cs: Fixed code that caused warnings
11109 * LinkLabel.cs: Removed unreachable code
11110 * TreeView.cs: Fixed code that caused warnings
11111 * PropertyGridView.cs: Fixed code that caused warnings
11112 * GridColumnStylesCollection.cs: Added missing attributes
11113 * GridTableStylesCollection: Added missing attribute
11114 * PropertyManager: Added .ctor
11115 * SecurityIDType: Added
11116 * DataObject.cs: Implemented class
11117 * LinkArea.cs: Added missing attribute
11119 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
11121 * RadioButton.cs: call base method to allow to fire OnClick event
11122 * UpDownBase.cs: OnMouseUp call base method
11123 * CheckedListBox.cs: call base method before returning
11124 * TrackBar.cs: call base method before returning
11127 2005-05-10 Peter Bartok <pbartok@novell.com>
11129 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
11132 2005-05-10 Peter Bartok <pbartok@novell.com>
11134 * DataFormats.cs: Implemented
11135 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
11136 XplatUIX11.cs: Added Clipboard APIs
11137 * XplatUIWin32.cs: Implemented Clipboard APIs
11138 * FolderBrowserDialog.cs: Added missing event, attributes
11140 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
11142 * CheckBox.cs: call base method to allow to fire OnClick event
11144 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
11146 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
11148 2005-05-06 Peter Bartok <pbartok@novell.com>
11150 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
11151 * Screen.cs: Implemented
11152 * HelpNavigator.cs: Added
11153 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
11155 * HelpProvider.cs: Implemented all we can do until we have a CHM
11156 help library (which means that "What's This" does work now)
11158 2005-05-06 Jackson Harper <jackson@ximian.com>
11160 * XplatUIX11.cs: Fix waking up the main loop.
11162 2005-05-05 Peter Bartok <pbartok@novell.com>
11164 * XplatUI.cs: Updated revision
11165 * Form.cs: Removed enless loop
11166 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
11167 * Label.cs (OnPaint): Added call to base.OnPaint()
11168 * ToolTip.cs: Made ToolTipWindow reusable for other controls
11169 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
11170 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
11172 * ButtonBase.cs: Moved base.OnPaint() call to end of method
11173 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
11174 to ToolTip.ToolTipWindow for drawing and size methods; this allows
11175 reuse of ToolTipWindow by other controls
11176 * SizeGrip.cs: Moved base.OnPaint() call to end of method
11177 * XplatUIX11.cs: Now clipping drawing area (experimental)
11178 * PictureBox.cs: Moved base.OnPaint() call to end of method
11179 * Theme.cs: Fixed ToolTip abstracts to match new format
11180 * ErrorProvider.cs: Implemented
11182 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
11184 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
11188 - Implements LinkBehavior
11189 - Fixes many issues
11191 2005-05-03 Jackson Harper <jackson@ximian.com>
11193 * ListView.cs: Calculate the scrollbar positioning on resize and
11194 paint, so they get put in the correct place.
11196 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
11198 * ColorDialogs.cs: The small color panels are now handled by
11199 SmallColorControl. This fixes drawing of the focus rectangle
11200 and adds a 3D border.
11202 2005-05-03 Peter Bartok <pbartok@novell.com>
11204 * Control.cs: Modified version of Jonathan Chamber's fix for
11207 2005-05-03 Jackson Harper <jackson@ximian.com>
11209 * ListView.cs: Remove redraw variable. Control now handles whether
11210 or not a redraw needs to be done, and will only raise the paint
11211 event if redrawing is needed.
11213 2005-05-03 Jackson Harper <jackson@ximian.com>
11215 * Splitter.cs: No decorations for the splitter form. Cache the
11218 2005-05-03 Jackson Harper <jackson@ximian.com>
11220 * TreeView.cs: Use dashed lines to connect nodes. Use the
11221 ControlPaint method for drawing the focus rect instead of doing
11224 2005-05-02 Peter Bartok <pbartok@novell.com>
11226 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
11228 2005-04-29 Jackson Harper <jackson@ximian.com>
11230 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
11231 entire image buffer. Just clear the clipping rectangle.
11233 2005-04-29 Jackson Harper <jackson@ximian.com>
11235 * ThemeWin32Classic.cs: Don't draw list view items that are
11236 outside the clipping rectangle.
11238 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
11240 * ListBox.cs: added horizontal item scroll
11242 2005-04-29 Jackson Harper <jackson@ximian.com>
11244 * ThemeWin32Classic.cs: Remove some old debug code that was
11245 causing flicker with the new double buffering code.
11247 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
11249 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11250 behave like combobox and comboboxlist (still not sure if this is
11253 2005-04-28 Jackson Harper <jackson@ximian.com>
11255 * ThemeWin32Classic.cs: Don't fill the middle of progress
11256 bars. This fills areas outside of the clip bounds that don't need
11259 2005-04-28 Jackson Harper <jackson@ximian.com>
11261 * Control.cs: Don't expose functionality to touch the image buffers.
11263 * ListView.cs: We do not need to (and no longer can) manipulate
11264 the image buffers directly. All of this is handled by Control.
11266 2005-04-28 Peter Bartok <pbartok@novell.com>
11268 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11269 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11270 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11272 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11275 - Adjust control's height for non-simple comboboxes (bug fix)
11277 * MenuAPI.cs: remove unused var
11278 * ScrollBar.cs: remove unsed var
11280 * ListBox.cs: unselect items when clearing
11282 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11284 * ListControl.cs: honors OnPositionChanged and default Selected Item
11285 * ListBox.cs: unselect items when clearing
11287 2005-04-27 Jackson Harper <jackson@ximian.com>
11289 * X11Keyboard.cs: Initialize a default keyboard and give a warning
11290 if a "correct" keyboard is not found. This will make us not crash,
11291 but might give some users bad keyboard layouts...seems to be the
11292 same thing rewind does.
11294 2005-04-27 Jackson Harper <jackson@ximian.com>
11296 * BindingManagerBase.cs: Attach the current/position changed
11297 handlers to their respective events.
11299 2005-04-27 Jackson Harper <jackson@ximian.com>
11301 * Control.cs: Make sure that the first WM_PAINT does a full draw,
11303 * ThemeWin32Classic.cs: Don't fill the background for picture
11304 boxes. This could overright user drawing.
11305 * ComboBox.cs: Just fill the clipping rect not the entire client
11306 rect when drawing the background. This prevents pieces of the
11307 image buffer from getting overwritten and is theoretically faster.
11309 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
11311 * ComboBox.cs: Databinding support fixes, fire missing events
11312 * ListControl.cs: implement missing methods and properties, fixes
11313 * ThemeWin32Classic.cs: Databiding support on Drawing
11314 * CheckedListBox.cs: Databinding support fixes, fire missing events
11315 * ListBox.cs: Databinding support fixes, fire missing events
11317 2005-04-25 Peter Bartok <pbartok@novell.com>
11319 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
11321 2005-04-25 Jackson Harper <jackson@ximian.com>
11323 * TreeView.cs: Use the horizontal scrollbars height not width when
11324 determining how much of the client area is available.
11326 2005-04-25 Jackson Harper <jackson@ximian.com>
11328 * Control.cs: Double buffering is handled differently now. As per
11329 the spec, the extra buffer is created in the WM_PAINT message and
11330 passed down to the control's drawing code.
11338 * PropertyGridView.cs:
11350 * DateTimePicker.cs:
11352 * TreeView.cs: Update to new double buffering system.
11353 * MonthCalendar.cs: Uncomment block, as Capture is now
11354 working. Update to new double buffering
11355 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
11356 * PaintEventArgs.cs: New internal method allows us to set the
11357 graphics object. This is used for double buffering.
11358 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
11359 rectangle. The internal paint_area var has been removed from
11360 StatusBar. The clipping rect should be used instead.
11361 * Theme.cs: Give the PictureBox drawing method a clipping rect.
11362 * TabPage.cs: The RefreshTabs method was removed, so just call the
11363 tab controls Refresh method now.
11364 * TabControl.cs: Update to new double buffering. Make sure the
11365 handle is created before sizing the tab pages, otherwise we will
11366 get stuck in a loop.
11368 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
11370 * LinkLabel.cs: Fix typo, bug #74719; patch
11371 from Borja Sanchez Zamorano
11373 2005-04-22 Jackson Harper <jackson@ximian.com>
11375 * TreeNode.cs: Implement Handle stuff.
11376 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
11378 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
11380 * DataGridTextBoxColumn.cs: call base constructors, fixes
11381 * GridColumnStylesCollection.cs: missing events, methods, and functionality
11382 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
11383 * DataGridTableStyle.cs: implements create default column styles
11384 * DataGridBoolColumn.cs: which types can handle
11385 * DataGrid.cs: missing methods, fixes, new functionality
11386 * DataGridColumnStyle.cs: fixes
11388 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
11389 * FolderBrowserDialog.cs:
11390 - Use a thread to fill the TreeView
11391 - Adjusted some sizes
11393 2005-04-19 Peter Bartok <pbartok@novell.com>
11395 * LinkLabel.cs: (Re-)create the pieces when setting the Text
11396 property. Fixes #74360.
11398 2005-04-19 Jackson Harper <jackson@ximian.com>
11400 * XEventQueue.cs: Lock when getting the lockqueue size.
11401 * PictureBox.cs: Call base OnPaint
11403 2005-04-19 Peter Bartok <pbartok@novell.com>
11405 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
11406 messages were no longer being processed (this broke BeginInvoke)
11409 2005-04-18 Jackson Harper <jackson@ximian.com>
11411 * TreeView.cs: buglet that caused node images to get drawn
11412 regardless of whether or not they were in the clipping rectangle.
11414 2005-04-18 Jackson Harper <jackson@ximian.com>
11416 * CurrencyManager.cs: There are four rules for GetItemProperties:
11417 - If the type is an array use the element type of the array
11418 - If the type is a typed list, use the type
11419 - If the list contains an Item property that is not an object, use
11421 - use the first element of the list if there are any elements in
11424 2005-04-17 Jackson Harper <jackson@ximian.oom>
11426 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
11427 click. This handles offsets for scrolling properly and reduces
11428 memory. Also fixed GetNode to not offset now that TopNode works
11430 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
11432 2005-04-17 Jackson Harper <jackson@ximian.com>
11434 * CursorConverter.cs: Initial implementation.
11436 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
11438 * ListControl.cs: work towards complex data binding support on ListControl
11439 * CurrencyManager.cs: work towards complex data binding support on ListControl
11440 * ListBox.cs: work towards complex data binding support on ListControl
11443 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
11445 * GridTableStylesCollection.cs: fixes name and constructor
11446 * DataGridTableStyle.cs: fixes
11447 * DataGridBoolColumn.cs: fixes names and constructors
11448 * DataGrid.cs: define methods and properties. Some init implementations
11449 * DataGridCell.cs: define methods and properties. Some init implementations
11450 * GridTablesFactory.cs: Define methods and properties
11452 2005-04-15 Geoff Norton <gnorton@customerdna.com>
11454 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
11455 graphics port changes. We still want the coordinates in global screen
11458 2005-04-14 Jackson Harper <jackson@ximian.com>
11460 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
11461 check plus minus or checkbox clicks unless those features are enabled.
11463 2005-04-14 Jackson Harper <jackson@ximian.com>
11465 * TreeView.cs: Add methods for setting the top and bottom visible
11466 nodes. TreeNode::EnsureVisible uses these methods.
11467 * TreeNode.cs: Implement EnsureVisible
11469 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
11471 * Form.cs: Pospone menu assignation if the window has not been created yet
11472 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
11475 2005-04-12 Jackson Harper <jackson@ximian.com>
11477 * TreeView.cs: Set the TopNode properly when scrolling
11478 occurs. This has the added benifit of reducing the amount of
11479 walking that needs to be done when drawing. Also removed an old
11481 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
11483 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
11485 * Timer.cs: fixes interval setting when the timer is already enabled
11487 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
11489 * FolderBrowserDialog.cs: First approach
11491 2005-04-09 Peter Bartok <pbartok@novell.com>
11493 * FolderBrowserDialog: Added
11495 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
11497 * LinkLabel.cs: move drawing code into the theme
11498 * ThemeWin32Classic.cs: drawing code and painting background bugfix
11499 * Theme.cs: define DrawLinkLabel method
11501 2005-04-05 Jackson Harper <jackson@ximian.com>
11503 * BindingContext.cs: Use weak references so these bad actors don't
11504 stay alive longer then they need to.
11506 2005-04-05 Jackson Harper <jackson@ximian.com>
11508 * ListControl.cs: Basic implementation of complex databinding.
11510 * ListBox.cs: Add calls to ListControl databinding methods.
11512 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
11515 - Don't change PopupButtonState to Normal when the
11516 PopupButton gets pressed several times.
11517 - Renamed ButtonPanel to PopupButtonPanel
11519 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
11521 * ColorDialog.cs: Use cached objects instead of creating them
11522 * LinkLabel.cs: Use cached objects instead of creating them
11523 * Splitter.cs: Use cached objects instead of creating them
11524 * FontDialog.cs: Use cached objects instead of creating them
11525 * PropertyGridView.cs: Use cached objects instead of creating them
11526 * MessageBox.cs: Use cached objects instead of creating them
11527 * FileDialog.cs: Use cached objects instead of creating them
11528 * ThemeWin32Classic.cs: Use cached objects instead of creating them
11529 * TreeView.cs: Use cached objects instead of creating them
11531 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
11533 * Control.cs: use Equals to compare the font since no == op
11534 * ScrollBar.cs: use Equals to compare the font since no == op
11536 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
11538 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11540 2005-04-01 Jackson Harper <jackson@ximian.com>
11542 * Binding.cs: Implement IsBinding.
11543 * BindingManagerBase.cs:
11544 * PropertyManager.cs:
11545 * CurrencyManager.cs: Add IsSuspended property.
11547 2005-04-01 Jackson Harper <jackson@ximian.com>
11549 * Binding.cs: Had some IsAssignableFrom calls backwards.
11551 2005-04-01 Jackson Harper <jackson@ximian.com>
11553 * Binding.cs: Handle null data members when pulling data.
11554 * PropertyManager.cs: Handle the data member being a property that
11557 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11559 * DataGridTextBoxColumn.cs: fixes signature
11560 * DataGrid.cs: calls right constructor
11562 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11564 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11565 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11566 * GridTableStylesCollection.cs: implements GridTableStylesCollection
11567 * DataGridTableStyle.cs: implements DataGridTableStyle
11568 * DataGridBoolColumn.cs: implements DataGridBoolColumn
11569 * DataGridTextBox.cs: implements DataGridTextBox
11570 * DataGridColumnStyle.cs: implements DataGridColumnStyle
11572 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
11574 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11576 2005-03-29 Peter Bartok <pbartok@novell.com>
11579 - Properly implemented CompanyName property
11580 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11581 returns a path that includes CompanyName, ProductName and
11582 Version (fixes bug #70330)
11584 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
11586 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11589 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11591 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11593 - Added ReadOnly CheckBox
11594 - Further refactoring: moved some code from Open-/SaveFileDialog
11597 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11599 * OpenFileDialog.cs: Fixed CheckFileExists
11601 Moved FileView and DirComboBox outside FileDialog class.
11602 They can now be used outside FileDialog
11604 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11606 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11607 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11609 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11611 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11612 - Added missing CreatePrompt property in SaveDialog
11613 - Overall SaveDialog handling should be better now
11614 - Added non standard ShowHiddenFiles property
11615 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11616 - Added InitialDirectory and RestoreDirectory support
11618 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
11620 * FileDialog.cs: Made dirComboBox usable
11622 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
11624 * FileDialog.cs: Added Filter support (case sensitiv)
11626 2005-03-24 Jackson Harper <jackson@ximian.com>
11628 * TabControl.cs: Need a couple more pixels for the lines.
11630 2005-03-23 Jackson Harper <jackson@ximian.com>
11632 * TabControl.cs: Give the tab page focus when it is selected.
11634 2005-03-23 Jackson Harper <jackson@ximian.com>
11636 * TabControl.cs: Account for the drawing of tabs borders when
11637 invalidating. If the slider was clicked dont do click detection on
11640 2005-03-23 Jackson Harper <jackson@ximian.com>
11642 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11644 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
11646 * CategoryGridEntry.cs: Added
11647 * GridItem.cs: Added helper properties
11648 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11649 * GridEntry.cs: Updated code for collection
11650 * PropertyGrid.cs: Cleaned up some formatting
11651 * PropertyGridView.cs: Added drop down functionality for enums.
11652 * GridItemCollection.cs: Added enumerator logic
11653 * PropertyGridEntry.cs: Added
11655 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11658 - Removed unnecessary commented code
11659 - Fixed handling for entering the filename manually in the combobox
11661 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11663 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11665 2005-03-18 Peter Bartok <pbartok@novell.com>
11667 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11668 them being touching the border
11670 2005-03-18 Peter Bartok <pbartok@novell.com>
11672 * TextControl.cs: Quick hack to center text better
11674 2005-03-18 Peter Bartok <pbartok@novell.com>
11677 - Don't throw NotImplemented exceptions, just print a notice once
11678 instead (requested by Miguel). This makes running existing SWF
11681 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11682 - Added context menu trigger on right click
11683 * Panel.cs: Trigger invalidate on resize
11685 - Removed old double-buffer drawing
11686 - Added ResizeRedraw style to force proper update of statusbar
11688 - Removed debug output
11689 * ThemeWin32Classic.cs:
11690 - Fixed drawing of status bar, now draws Text property if there
11691 are no defined panels
11693 2005-03-18 Jackson Harper <jackson@ximian.com>
11695 * ImageList.cs: When the image stream is set pull all the images
11697 * ImageListStreamer.cs: Implement reading image list streams.
11699 2005-03-18 Peter Bartok <pbartok@novell.com>
11701 * ThemeWin32Classic.cs (DrawPictureBox):
11702 - Fixed calculations for centered drawing
11703 - Fixed drawing for normal mode, not scaling the image on normal
11705 2005-03-18 Peter Bartok <pbartok@novell.com>
11707 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11710 - Made Open/Save button the accept button for FileDialog
11711 - Tied the cancel button to the IButtonControl cancel button
11712 - Save/Open now properly builds the pathname
11713 - Now handles user-entered text
11714 - Preventing crash on right-click if no item is selected
11715 - Fixed Text property, now uses contents of textbox
11716 - Fixed SelectedText property, now just returns the text part that
11717 is selected in the text box
11719 2005-03-18 Jackson Harper <jackson@ximian.com>
11721 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11722 rect, make sure to de-adjust the interior rect after drawing the
11725 2005-03-18 Peter Bartok <pbartok@novell.com>
11727 * MenuAPI.cs: Remove menu *before* executing selected action to
11728 prevent the menu from 'hanging around'
11730 2005-03-17 Geoff Norton <gnorton@customerdna.com>
11732 * XplatUIOSX.cs: Implemented WorkingArea property
11734 2005-03-17 Peter Bartok <pbartok@novell.com>
11736 * XplatUIX11.cs: Fixed menu coord calculations
11737 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11738 for calculating offsets
11740 2005-03-17 Peter Bartok <pbartok@novell.com>
11742 * Hwnd.cs: Do not consider menu presence for default client
11743 rectangle location/size
11744 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11745 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11746 translation functions
11747 * FileDialog.cs: Fixed (what I presume is a) typo
11749 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
11751 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11752 X access (avoids X-Async errors)
11754 2005-03-16 Jackson Harper <jackson@ximian.com>
11756 * TabControl.cs: Raise the SelectedIndexChanged event.
11758 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
11760 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11761 - Removed vertical ToolBar and replaced it with a custom panel
11762 (desktop and home button already work)
11763 - Added Help button (some controls get resized or relocated then)
11764 - Draw correct text depending on Open or Save.
11765 - Fixed some typos...
11767 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
11770 - Only change Maximum and Minimum when need it (bug fix)
11772 2005-03-15 Peter Bartok <pbartok@novell.com>
11774 * Form.cs: Use Handle for icon, to trigger creation if
11775 the window does not yet exist
11777 - CanSelect: Slight performance improvement
11778 - Focus(): Preventing possible recursion
11779 - Invalidate(): Removed ControlStyle based clear flag setting
11780 - WM_PAINT: fixed logic for calling OnPaintBackground
11781 - WM_ERASEBKGND: Fixed logic, added call to new driver method
11782 EraseWindowBackground if the control doesn't paint background
11784 - Moved EraseWindowBackground() method to internal methods
11785 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11786 is sent via SendMessage on BeginPaint call on Win32
11788 - Added EraseWindowBackground() method
11789 - No longer sends WM_ERASEBKGND on .Expose, but on call to
11790 PaintEventStart, which more closely matches Win32 behaviour
11791 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11792 - Fixed SetFocus() to properly deal with client and whole windows
11793 * Hwnd.cs: Added ErasePending property
11794 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11795 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11797 2005-03-12 Geoff Norton <gnorton@customerdna.com>
11800 - Fix hard loop when timers exist.
11801 - Fix bugs with middle and right click for 3 button mice.
11803 2005-03-11 Peter Bartok <pbartok@novell.com>
11806 - get_WorkingArea: Need to call X directly, GetWindowPos only
11807 returns cached data now
11808 - Added sanity check to GetWindowPos hwnd usage
11810 2005-03-11 Jackson Harper <jackson@ximian.com>
11812 * BindingManagerBase.cs: This method isn't used anymore as
11813 PullData now updates the data in the control.
11815 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
11817 * Form.cs: fixes menu drawing on X11
11818 * MenuAPI.cs: fixes menu drawing on X11
11820 2005-03-11 Peter Bartok <pbartok@novell.com>
11822 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11823 from Jonathan Gilbert; should fix bug #73606
11824 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11825 in Screen coordinates. Thanks, Jordi.
11826 * Form.cs: Added missing attribute
11828 2005-03-11 Peter Bartok <pbartok@novell.com>
11831 - Rudimentary Mdi support
11832 - Removed outdated FormParent code
11833 - Implemented lots of missing properties and methods, still missing
11834 transparency support
11835 - Added missing attributes
11836 - Implemented support for MaximumBounds
11837 - Added firing of various events
11838 * XplatUI.cs: Added SetIcon() method
11839 * XplatUIDriver.cs: Added SetIcon() abstract
11840 * XplatUIOSX.cs: Stubbed out SetIcon() method
11842 - Implemented SetIcon() support
11843 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11844 - Switched to unix line endings
11846 - Made POINT internal so for can access it as part of MINMAX
11847 - Implemented SetIcon() support
11848 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11849 native Mdi support again, might have to go managed)
11850 * Control.cs: Now fires the StyleChanged event
11851 * MdiClient.cs: Added; still mostly empty
11853 2005-03-10 Peter Bartok <pbartok@novell.com>
11855 * SaveFileDialog.cs: Added emtpy file
11857 2005-03-08 Peter Bartok <pbartok@novell.com>
11859 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11860 in turn triggers OnCreateContro) when creating a handle for the
11862 * TextControl.cs: Fixed endless loop in certain cases when
11863 replacing the current selection
11865 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
11868 - Honors NewValue changes in Scroll events allowing apps to change it
11869 - Adds First and Last Scroll events
11870 - Fixes Thumb events
11872 2005-03-07 Peter Bartok <pbartok@novell.com>
11874 * Hwnd.cs: Added DefaultClientRectangle property
11875 * XplatUI.cs: Now using the X11 driver Where() method, which provides
11876 more detailed debug information
11878 - Fixed size-change feedback loop, where we would pull an old size
11879 off the queue and mistakenly change our window's size to an
11881 - Now compressing ConfigureNotify events, to reduce looping and
11883 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11886 2005-03-07 Jackson Harper <jackson@ximian.com>
11888 * Binding.cs: Push data pushes from data -> property. Check if the
11889 property is readonly when attempting to set it.
11891 2005-03-07 Jackson Harper <jackson@ximian.com>
11893 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11894 instead of IsSubclassOf. Pulling data now sets the value on the
11896 * PropertyManager.cs:
11897 * CurrencyManager.cs: Just need to pull data when updating now,
11898 because PullData will set the value on the control.
11900 2005-03-04 Jackson Harper <jackson@ximian.com>
11902 * Binding.cs: Implement data type parsing and converting on pulled
11903 data. TODO: Are there more ways the data can be converted?
11905 2005-03-04 Jackson Harper <jackson@ximian.com>
11907 * Binding.cs: Support <Property>IsNull checks. Also bind to the
11908 controls Validating method so we can repull the data when the
11909 control loses focus.
11911 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
11914 - Fixes null string format
11917 - Adds enum type checks
11918 - Fixes redrawing and recalc need after changing some properties
11919 - Fixes on focus_item set after the event
11920 - Fixes adding columns after the control has been created
11922 * ThemeWin32Classic.cs:
11923 - Fixes CheckBox focus rectangle
11924 - Fixes ColumnHeader drawing
11927 2005-03-03 Jackson Harper <jackson@ximian.com>
11929 * Binding.cs: Bind to <Property>Changed events so we can detect
11930 when properties are changed and update the data.
11932 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
11935 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11936 - Fixes ImageList constructor with ImageList container
11937 - Fixes image scaling (wrong parameters at DrawImage)
11939 2005-02-02 Jackson Harper <jackson@ximian.com>
11941 * Binding.cs: Make property searches case-insensitive. Eliminate
11942 some duplicated code.
11944 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
11947 - Handle focus event
11948 - Fix scrollbar events
11949 - Discard highlighted item if remove it
11950 - Fixes SelectedItem with strings
11952 2005-03-01 Peter Bartok <pbartok@novell.com>
11955 - Fixed Visible property, now follows (once again) parent chain
11956 to return false if any control in the chain is visible=false
11957 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11958 - Fixed several places where is_visible instead of Visible was used
11959 - Implemented FIXME related to focus selection when setting focused
11960 control to be invisible
11962 * XplatUIWin32.cs: Now using proper method to find out if window is
11963 visible. Thanks to Jordi for pointing it out
11965 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
11967 * ComboBox.cs: show/hide scrollbar instead of creating it
11969 2005-02-27 Jackson Harper <jackson@ximian.com>
11971 * CurrencyManager.cs: Add PositionChanged stuff.
11973 2005-02-27 Peter Bartok <pbartok@novell.com>
11975 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11976 * XplatUIOSX.cs: Added GetMenuOrigin() stub
11977 * XplatUIWin32.cs: Implemented GetMenuOrigin()
11979 - Implemented GetMenuDC()
11980 - Implemented GetMenuOrigin()
11981 - Implemented ReleaseMenuDC()
11982 - Implemented generation of WM_NCPAINT message
11983 - Implemented generation and handling of WM_NCCALCSIZE message
11984 * Form.cs: Added debug helper message for Jordi's menu work
11986 - Modified ClientRect property; added setter, fixed getter to handle
11987 setting of ClientRect
11988 - Added MenuOrigin property
11990 2005-02-26 Peter Bartok <pbartok@novell.com>
11993 - Destroys the caret if a window that's being destroyed contains it
11994 - Ignores expose events coming from the X11 queue for windows that
11995 already are destroyed
11996 - Now uses the proper variable for handling DestroyNotify, before we
11997 marked the wrong window as destroyed
11998 - Improved/added some debug output
12000 2005-02-26 Peter Bartok <pbartok@novell.com>
12002 * X11Keyboard.cs: Fixes to work on 64bit systems
12004 2005-02-26 Peter Bartok <pbartok@novell.com>
12007 - Now calling OnHandleDestroyed from DestroyHandle()
12008 instead of Dispose()
12009 - Removed bogus call to controls.Remove() from DestroyHandle()
12011 2005-02-26 Peter Bartok <pbartok@novell.com>
12013 * Control.cs: Properly destroy child windows when our handle is
12016 2005-02-25 Peter Bartok <pbartok@novell.com>
12019 - Added 'DriverDebug' define to allow tracing XplatUI API calls
12020 - Alphabetized Static Methods and Subclasses
12023 - Added XException class to allow custom handling of X11 exceptions
12024 - Created custom X11 error handler, tied into XException class
12025 - Added support for MONO_XEXCEPTIONS env var to allow the user
12026 to either throw an exception on X errors or continue running
12027 after displaying the error
12028 - Added handling of DestroyNotify message
12029 - Added handler for CreateNotify message (still disabled)
12030 - Improved (tried to at least) Where method to provide file and lineno
12032 - Added XErrorHandler delegate
12033 - Added XRequest enumeration (to suppor translation of errors)
12035 2005-02-25 Jackson Harper <jackson@ximian.com>
12037 * PropertyManager.cs: Implement editing features
12038 * CurrencyManager.cs:
12039 * Binding.cs: First attempt at UpdateIsBinding
12040 * BindingManagerBase.cs: Call UpdateIsBinding before
12041 pushing/pulling data.
12043 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
12045 * MenuAPI.cs: Respect disabled items
12046 * ThemeWin32Classic.cs
12047 - Caches ImageAttributes creation for DrawImageDisabled
12048 - Fixes vertical menu line drawing
12049 - Draws disabled arrows in disable menu items
12051 2005-02-24 Peter Bartok <pbartok@novell.com>
12054 - Added UserData property to allow associating arbitrary objects
12056 - Fixed leak; now removing Hwnd references from static windows array
12058 - Fixed Graphics leak in PaintEventEnd
12059 - Removed usage of HandleData, switched over to Hwnd class
12060 * HandleData.cs: Removed, obsoleted by Hwnd.cs
12062 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
12064 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
12065 * ScrollBar.cs: Fixes bug
12066 * TrackBar.cs: removes death code, clipping, mimize refreshes,
12067 keyboard navigation enhancements
12069 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
12071 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
12072 * GroupBox.cs: Add control styles
12073 * Label.cs: Add control styles
12074 * UpDownBase.cs: Add control styles
12075 * ListBox.cs: Add control styles
12076 * XplatUIWin32.cs: Fixes wrong parameter order
12079 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
12081 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
12083 2005-02-23 Jackson Harper <jackson@ximian.com>
12085 * PropertyManager.cs: Implement property binding. This doesn't
12086 seem to work yet though as (I think) there are some bugs in
12087 System.ComponentModel.PropertyDescriptor.
12088 * BindingContext.cs: Use new PropertyManager constructor.
12090 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
12092 * ProgressBar.cs: use clip region in ProgressBar
12093 * ThemeWin32Classic.cs: use clip region in ProgressBar
12095 2004-02-22 Jackson Harper <jackson@ximian.com>
12097 * BindingsCollection.cs: Remove some debug code.
12099 2005-02-22 Jackson Harper <jackson@ximian.com>
12101 * BindingContext.cs:
12102 * ControlBindingsCollection.cs:
12103 * CurrencyManager.cs:
12105 * BindingManagerBase.cs: Initial implementation
12106 * BindingsCollection.cs: Add an internal contains method that the
12107 BindingManagerBase uses to ensure bindings aren't added twice to
12109 * PropertyManager.cs: Stubbed out.
12111 * ContainerControl.cs: Hook up databinding
12113 2005-02-22 Geoff Norton <gnorton@customerdna.com>
12116 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
12117 Fixed Invalidate/Update chain.
12118 Fixed tons of other minor bugs (this is almost a complete rewrite).
12120 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
12122 * ComboBox.cs: do subcontrol creation when the control is created
12124 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12126 * Label.cs: fixes image drawing (image and imagelist)
12127 * ThemeWin32Classic.cs: cache brushes
12129 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12131 * Form.cs: Move menu drawing code to Theme class
12132 * ComboBox.cs: Move ComboBox drawing code to Theme class
12133 * MenuItem.cs: Move menu drawing code to Theme class
12134 * MenuAPI.cs: Move menu drawing code to Theme class
12135 * ThemeWin32Classic.cs: New methods
12136 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
12137 * ListBox.cs: Move Listbox drawing code to Theme class
12138 * Theme.cs: New methods
12140 2005-02-20 Peter Bartok <pbartok@novell.com>
12143 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
12144 only process mnemonics on those)
12145 - Fixed event sequence for key handling; first calling
12146 ProcessKeyEventArgs now
12148 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
12149 for processing non-character keys
12150 - Fixed WM_CHAR to generate proper event sequence before processing
12151 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
12154 2005-02-19 Peter Bartok <pbartok@novell.com>
12156 * UserControl.cs: Added TextChanged event; added attributes
12157 * SizeGrip.cs: Implemented resizing and optional display of grip
12158 * Form.cs: Fixed attribute
12159 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12160 Changed meaning of ScrollWindow bool argument; instead of the
12161 clear attribute (which will be true usually anyway), it gives the
12162 option of moving child controls as well.
12164 - Changed to match new ScrollWindow argument
12165 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
12166 now handles the implicit parent window a WM puts around us
12167 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
12169 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
12170 * TreeView.cs: Adjusted to new ScrollWindow arguments
12172 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12174 * Form.cs: Menu integration with non-client area
12175 * MenuItem.cs: Menu integration with non-client area
12176 * MenuAPI.cs: Menu integration with non-client area
12178 2005-02-18 Peter Bartok <pbartok@novell.com>
12180 * MethodInvoker.cs: Added
12181 * MdiLayout.cs: Added
12182 * SendKeys.cs: Started implementation
12183 * ErrorIconAlignment.cs: Added
12185 2005-02-18 Peter Bartok <pbartok@novell.com>
12187 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
12188 * Form.cs: Added handling for Menu-related Non-client messages
12190 2005-02-17 Peter Bartok <pbartok@novell.com>
12192 * UpDownBase.cs: Fixed typo, compilation errors
12193 * DomainUpDown.cs: Fixed attribute value
12195 2005-02-16 Miguel de Icaza <miguel@novell.com>
12197 * UpDownBase.cs: Attach entry events.
12199 Add ForeColor property, Focused, InterceptArrowKeys (interception
12200 does not work yet).
12202 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
12205 - Redraw non client are on Setmenu
12206 - Calc proper menu starting point
12208 2005-02-17 Peter Bartok <pbartok@novell.com>
12210 * Application.cs: Fixed message_filter check
12212 2005-02-17 Peter Bartok <pbartok@novell.com>
12214 * Application.cs: Now calls registered message filters
12215 * DockStyle.cs: Fixed attribute
12216 * Form.cs: Fixed attribute
12217 * Menu.cs: Fixed attribute
12218 * ToolTip.cs: Fixed attribute
12219 * TreeNode.cs: Added missing attributes and arranged in regions
12220 * PropertyGrid.cs: Fixed signatures
12221 * TreeNodeCollection.cs: Added attributes
12222 * Splitter.cs: Added missing attributes; arranged into regions
12223 * TabPage.cs: Added missing attributes; arranged into regions
12224 * TextBoxBase.cs: Added missing attributes
12225 * TextBox.cs: Added missing attributes
12226 * ArrangeDirection.cs: Added missing attributes
12227 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
12228 * ToolBarButton.cs: Fixed attributes
12229 * AnchorStyles.cs: Fixed attribute
12230 * TrackBar.cs: Fixed attributes
12231 * TabControl.cs: Added missing attributes and arranged into regions
12232 * ToolBar.cs: Fixed attribute
12233 * StatusBar.cs: Fixed signature, organized into regions and added
12235 * StatusBarPanel.cs: Fixed attributes
12236 * ContentsResizedEventArgs.cs: Implemented
12237 * ContentsResizedEventHandler.cs: Implemented
12238 * DateBoldEventArgs.cs: Implemented
12239 * DateBoldEventHandler.cs: Implemented
12240 * UpDownEventArgs.cs: Implemented
12241 * UpDownEventHandler.cs: Implemented
12243 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
12245 * Form.cs: first Menu NC refactoring
12246 * MenuAPI.cs: first Menu NC refactoring
12248 2005-02-16 Peter Bartok <pbartok@novell.com>
12250 * ImeMode.cs: Added missing attributes
12251 * Menu.cs: Fixed attribute
12252 * GroupBox.cs: Fixed attribute
12253 * Label.cs: Fixed attribute
12254 * ColorDialog.cs (RunDialog): Removed TODO attribute
12255 * ComboBox.cs: Fixed attributes
12256 * ListControl.cs: Added missing attributes
12257 * PropertyGrid.cs: Fixed attributes
12258 * Control.cs: Fixed attributes
12259 * ListViewItem.cs: Added TypeConverter attribute
12260 * NotifyIcon.cs: Fixed attributes
12261 * ListView.cs: Fixed attributes
12262 * ButtonBase.cs: Fixed attribute
12263 * ImageList.cs: Added missing attributes
12264 * ContainerControl.cs: Fixed signature
12265 * CheckedListBox.cs: Fixed attribute; added missing attributes
12266 * Panel.cs: Fixed attributes
12267 * PropertyTabChangedEventArgs.cs: Added missing attribute
12268 * PropertyValueChangedEventArgs.cs: Added missing attribute
12269 * Binding.cs: Fixed attribute
12270 * ListViewItemConverter: Implemented ListViewSubItemConverter class
12271 * ListBox.cs: Fixed attribute; added missing attributes;
12272 * ScrollableControl.cs: Added missing attributes
12273 * PictureBox.cs: Added missing attributes; implemented missing property
12274 * DateTimePicker.cs: Added missing attributes
12275 * Theme.cs (ToolWindowCaptionHeight): Fixed type
12276 * MonthCalendar.cs: Fixed attributes
12277 * StatusBarPanel.cs: Added missing attributes
12278 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12280 2005-02-16 Peter Bartok <pbartok@novell.com>
12282 * TextBoxBase.cs: The previous method to enforce height yet remember
12283 the requested high was less than ideal, this is an attempt to do
12285 * Control.cs: Added comment about possible problem
12286 * Copyright: Updated format
12287 * GridItemType.cs: Fixed swapped values
12289 2005-02-15 Jackson Harper <jackson@ximian.com>
12291 * BaseCollection.cs: Use property so we never access an
12292 uninitialized list. Also initialize the list in the property.
12294 2005-02-15 Peter Bartok <pbartok@novell.com>
12296 * GroupBox.cs (ProcessMnemonic): Implemented
12297 * Label.cs (ProcessMnemonic): Implemented
12298 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12301 2005-02-15 Peter Bartok <pbartok@novell.com>
12303 * RadioButton.cs (ProcessMnemonic): Implemented
12304 * CheckBox.cs (ProcessMnemonic): Implemented
12306 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12308 - Added internal method to allow calling ProcessMnemonic from other
12310 * ContainerControl.cs:
12311 - Started support for handling validation chain handling
12312 - Implemented ProcessMnemonic support
12313 - Added Select() call to Active, to make sure the active control
12315 * Form.cs: Setting toplevel flag for Forms (this was lost in the
12316 FormParent rewrite)
12317 * ThemeWin32Classic.cs:
12318 - DrawCheckBox(): Fixed stringformat to show hotkeys
12319 - DrawRadioButton(): Fixed stringformat to show hotkeys
12320 * CommonDialog.cs: Removed WndProc override, not needed
12322 2005-02-14 Peter Bartok <pbartok@novell.com>
12324 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
12325 missed those in the rewrite
12327 2005-02-14 Miguel de Icaza <miguel@novell.com>
12329 * NumericUpDown.cs (Increment, ToString): Add.
12330 (DecimalPlaces): implement.
12334 * UpDownBase.cs: Add the designer attributes.
12336 2005-02-13 Peter Bartok <pbartok@novell.com>
12338 * Panel.cs: Removed border_style, now in Control
12339 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
12340 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
12342 2005-02-13 Peter Bartok <pbartok@novell.com>
12344 * MouseButtons.cs: Added missing attributes
12345 * XplatUIStructs.cs: Added enumeration for title styles
12346 * LeftRightAlignment.cs: Added missing attributes
12347 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
12348 it compatible with Graphics.FromHwnd()
12349 * SelectedGridItemChangedEventArgs.cs: Fixed property type
12350 * Keys.cs: Added missing attributes
12351 * SelectionRange.cs: Added missing attributes
12352 * SelectionRangeConverter.cs: Added
12354 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
12355 ReleaseMenuDC methods
12356 - Renamed ReleaseWindow to UngrabWindow
12357 - Added proper startup notice to allow version identification
12359 - Added missing attributes
12360 - Removed FormParent concept
12361 * Label.cs: Removed border_style field, now in Control
12362 * RadioButton.cs: Now properly selects RadioButton when focus is
12364 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
12366 - Added missing attributes
12367 - Added borderstyle handling
12368 - Removed FormParent concept support
12369 - Fixed calls to XplatUI to match changed APIs
12370 - Fixed bug that would case us to use disposed Graphics objects
12371 - Removed unneeded internal methods
12372 - PerformLayout(): Fixed to handle DockStyle.Fill properly
12373 - SelectNextControl(): Fixed to properly check common parents
12374 * TextBoxBase.cs: Removed border_style field (now in Control)
12376 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
12377 fixed calculations for form size
12378 - Added support for localized strings and icons
12379 - Improved form size calculations, added border
12380 * ListView.cs: Removed border_style field (now in Control)
12381 * X11Structs.cs: Moved several structs from X11 driver here
12382 * X11Keyboard.cs: Changed debug message
12383 * Application.cs: Removed FormParent concept support
12385 - Resetting end_modal flag
12386 - Removed FormParent concept support
12387 * NativeWindow.cs: Removed FormParent concept support
12388 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
12389 Client area and Non-Client whole window to allow support for WM_NC
12391 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
12392 prevent using it until it supports Hwnd as per Geoff Norton's request
12393 * ToolBar.cs: Fixed drawing, was not doing proper drawing
12394 * PictureBox.cs: Removed border_style field, now in Control
12395 * XplatUIWin32.cs: Added new driver methods
12397 2005-02-12 Peter Bartok <pbartok@novell.com>
12399 * OpacityConverter.cs: Implemented
12400 * Hwnd.cs: Internal class to support drivers that need to emulate
12401 client area/non-client area window behaviour
12403 2005-02-11 Peter Bartok <pbartok@novell.com>
12405 * KeysConverter.cs: Implemented
12407 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
12409 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
12410 * LinkLabel: Added missing attributes
12411 * MainMenu.cs: fixes ToString
12412 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
12413 * ListBox.cs: fixes event position
12414 * TrackBar.cs: adds missing attributes and events
12416 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
12418 * MenuItem.cs: Use SystemInformation and bug fixes
12419 * MenuAPI.cs: Use SystemInformation and bug fixes
12421 2005-02-09 Jackson Harper <jackson@ximian.com>
12423 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
12424 their keystate otherwise things like VK_MENU get stuck "on".
12426 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
12428 * ListBox.cs: Fixes AddRange bug
12430 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
12433 - Add missing attributes
12434 - Add missing method
12436 * CheckedListBox.cs: Added missing attributes
12437 - Add missing attributes
12438 - Remove extra method
12440 * ComboBox.cs: Added missing attributes
12441 * VScrollBar.cs: Added missing attributes
12442 * ScrollBar.cs: Added missing attributes
12443 * ListBox.cs: Fixes signature, add missing consts
12444 * LinkArea.cs: Added missing attributes
12447 2005-02-08 Peter Bartok <pbartok@novell.com>
12449 * Menu.cs: Added missing attributes
12450 * MainMenu.cs: Added missing attributes
12451 * GroupBox.cs: Added missing attributes
12452 * Label.cs: Added missing attributes
12453 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
12455 - Added Instance and Options properties
12456 - Added missing attributes
12457 * Cursor.cs: Made Serializable
12458 * NotifyIcon: Added missing attributes
12459 * MenuItem.cs: Added missing attributes
12460 * TextBoxBase.cs: Implemented AppendText() and Select() methods
12461 * Panel.cs: Added Missing attributes
12462 * MonthCalendar.cs: Fixed CreateParams
12464 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
12468 - Fixes issues with links
12469 - Adds the class attributes
12471 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
12474 - Fixes button when no items available in dropdown
12475 - Fixes repainting problems
12476 - Adds the class attributes
12478 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12480 * XplatUIOSX.cs: Detect the menu bar and title bar height from
12481 the current theme. Cache these on startup.
12483 2005-02-07 Jackson Harper <jackson@ximian.com>
12485 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
12486 the scrollbar buttons when they are depressed.
12488 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12490 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
12491 Get the display size from the main displayid. We currently dont
12492 support multiple display configurations.
12494 2005-02-07 Geoff Norton <gnorton@customerdna.com>
12496 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
12498 2005-02-07 Miguel de Icaza <miguel@novell.com>
12500 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
12502 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
12504 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
12506 2005-02-04 Jackson Harper <jackson@ximian.com>
12508 * ThemeWin32Classic.cs: Respect the clipping rect when
12509 drawing. Only fill the intersection of clips and rects so there
12510 isn't a lot of large fills.
12511 * ScrollBar.cs: Pass the correct clipping rect to the theme
12512 engine. Remove some debug code.
12514 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
12516 * DateTimePicker.cs:
12517 - Fixed crash on DateTime.Parse, use Constructor instead
12519 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
12523 - Owner draw support (MeasureItem and DrawItem)
12525 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
12528 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12529 - Fixes MenuItems.Add range
12531 - MergeMenu and Clone and CloneMenu functions
12533 2005-02-03 Jackson Harper <jackson@ximian.com>
12535 * ScrollBar.cs: Make abstract
12536 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12539 2005-02-03 Jackson Harper <jackson@ximian.com>
12541 * ScrollBar.cs: First part of my scrollbar fixups. This removes
12542 all the unneeded refreshes and uses invalidates with properly
12545 2005-02-03 Peter Bartok <pbartok@novell.com>
12547 * ComponentModel.cs: Added
12548 * IDataGridEditingService.cs: Added
12549 * Timer.cs: Added missing attributes
12550 * ToolTip.cs: Added missing attributes
12552 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12554 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12556 2005-02-03 Peter Bartok <pbartok@novell.com>
12558 * ListBox.cs: Added missing attributes
12560 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
12563 - Fixes font height after font change
12564 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12566 2005-02-02 Peter Bartok <pbartok@novell.com>
12568 * HandleData.cs: Introduced static methods to allow class
12569 to be more self-contained and track it's own HandleData objects
12570 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12571 HandleData to use new static methods
12573 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
12576 - Fixes default size and PreferredHeight
12578 - ObjectCollection.Insert implementation
12584 - ObjectCollection.Insert implementation
12585 - No selection after clean
12588 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12590 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12592 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
12595 - Caches ItemHeight calculation for OwnerDrawVariable
12596 - Handles dropdown properly
12597 - Fixes several minor bugs
12599 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12602 - Fixes 71946 and 71950
12603 - Fixes changing Multicolumn on the fly
12604 - Fixes keyboard navigation on Multicolumn listboxes
12606 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12608 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12609 crash reporter log.
12611 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12613 * XplatUIOSX.cs: Allow applications to actually exit.
12615 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12617 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
12618 their parent at creation time rather than lazily later. Fixes a major
12619 regression we were experiencing.
12621 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12623 * ThemeWin32Classic.cs: more date time picker painting fixes
12624 * DateTimePicker.cs: more monthcalendar drop down fixes
12625 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12627 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12630 - When moving the thumb going outside the control should stop the moving
12631 - Adds the firing of missing events
12632 - Fixes no button show if Size is not specified
12633 - End / Home keys for keyboard navigation
12635 2005-01-30 Peter Bartok <pbartok@novell.com>
12637 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12638 sanity check to prevent theoretical loop
12639 * XplatUIWin32.cs (SetVisible): Removed debug output
12640 * XplatUIX11.cs (SystrayChange): Added sanity check
12641 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12642 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12643 behaviour, valid until the X11 client window rewrite is done
12644 * TextBox.cs (ctor): Setting proper default foreground and background
12647 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
12649 * Theme: Added DrawDateTimePicker to interface
12650 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12651 * DateTimePicker.cs: Created (still needs keys and painting code)
12652 * DateTimePickerFormat.cs: added
12653 * MonthCalendar.cs: fixed CreateParams for popup window mode
12655 2005-01-29 Peter Bartok <pbartok@novell.com>
12657 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12658 this should also the calculations for ligher/darker
12659 * Theme.cs: Fixed defaults for ScrollBar widths/heights
12661 2005-01-29 Peter Bartok <pbartok@novell.com>
12663 * ArrangeDirection.cs: Added
12664 * ArrangeStartingPositon.cs: Added
12665 * SystemInformation.cs: Implemented
12666 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12667 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12668 used by SystemInformation class
12669 * X11Strucs.cs: Added XSizeHints structure
12671 - Fixed CreateParams to make sure the menu window is always visible
12672 - TrackPopupMenu: Added check to make sure we don't draw the
12675 2005-01-29 Peter Bartok <pbartok@novell.com>
12677 * HandleData.cs: Added method for altering invalid area
12678 * TextBoxBase.cs: Implemented TextLength
12680 2005-01-28 Peter Bartok <pbartok@novell.com>
12682 * XplatUIX11.cs: Improvement over last patch, not sending
12683 the WM_PAINT directly anymore, instead we scroll any pending
12684 exposed areas and let the system pick out the WM_PAINT later
12686 2005-01-28 Peter Bartok <pbartok@novell.com>
12688 * SWF.csproj: Deleted, no longer used. Instead,
12689 Managed.Windows.Forms/SWF.csproj should be used
12690 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12691 directly, to avoid a potential race condition with the next
12694 2005-01-28 Peter Bartok <pbartok@novell.com>
12696 * XplatUI.cs: Made class internal
12698 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
12700 * CheckedListBox.cs:
12703 - Missing methods and events
12705 2005-01-27 Peter Bartok <pbartok@novell.com>
12707 * Application.cs (Run): Don't use form if we don't have one
12709 2005-01-27 Peter Bartok <pbartok@novell.com>
12711 * TextBoxBase.cs (get_Lines): Fixed index off by one error
12713 2005-01-27 Peter Bartok <pbartok@novell.com>
12715 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12716 * GridItem.cs: Added; Patch by Jonathan S. Chambers
12717 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12718 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12719 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12720 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12721 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12722 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12723 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12724 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12725 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12726 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12728 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12731 - Draw focus on Simple Combobox
12732 - Fixes drawing issues
12735 2005-01-27 Peter Bartok <pbartok@novell.com>
12738 - Place window in default location, instead of hardcoded 0/0
12739 - Send initial LocationChanged event
12741 - UpdateBounds after creation to find out where the WM placed us
12742 - Make sure that if the ParentForm changes location the Form
12744 * XplatUIX11.cs: XGetGeometry will not return the coords relative
12745 to the root, but to whatever the WM placed around us.
12746 Translate to root coordinates before returning toplevel
12748 * XplatUIWin32.cs: Removed debug output
12749 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12750 flag to GetWindowPos, to allow translation of coordinates on X11
12752 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12754 * ListBox.cs: connect LostFocus Event
12756 2005-01-27 Peter Bartok <pbartok@novell.com>
12758 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12759 XplatUIX11.cs: Extended the Systray API
12760 * Form.cs: Removed debug output
12761 * Application.cs: Fixed focus assignment, always need to call
12762 XplatUI.Activate() since Form.Activate() has rules that may
12764 * NotifyIcon.cs: Should be complete now
12765 * ToolTip.cs: Worked around possible timer bug
12767 2005-01-27 Jackson Harper <jackson@ximian.com>
12770 - Only invalidate the effected tabs when the
12771 selected index changes. This reduces drawing and gets rid of some
12773 - Only refresh if the tabs need to be shifted, otherwise only
12774 invalidate the slider button.
12775 - On windows the tabs are not filled to right if the slider is
12778 2005-01-27 Jackson Harper <jackson@ximian.com>
12780 * TabControl.cs: Only refresh on mouseup if we are showing the
12781 slider. Also only invalidate the button whose state has changed.
12783 2005-01-26 Peter Bartok <pbartok@novell.com>
12785 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12786 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12787 and SystrayRemove() methods
12788 * XplatUIOSX.cs: Stubbed Systray methods
12790 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12792 - Fixed broken XChangeProperty calls (marshalling messed up things)
12793 * X11Structs.cs: Added enums and structs required for Size hinting
12794 * NotifyIcon.cs: Added & implemented
12796 2005-01-26 Jackson Harper <jackson@ximian.com>
12798 * TabControl.cs: Space vertically layed out tabs properly.
12800 2005-01-26 Peter Bartok <pbartok@novell.com>
12802 * Form.cs (CreateClientParams): Always set the location to 0,0
12803 since we're a child window.
12805 * Control.cs (SetVisibleCore): Always explicitly setting the location
12806 of a toplevel window, apparently X11 doesn't like to move windows
12807 while they're not mapped.
12809 2005-01-26 Jackson Harper <jackson@ximian.com>
12811 * TabControl.cs: Implement FillToRight size mode with vertically
12814 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12816 * ControlPaint.cs, ThemeWin32Classic.cs
12817 - Fixes DrawFocusRectangle
12819 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12822 - MenuBar tracking only starts when item is first clicked
12823 - Fixes menu hidding for multiple subitems
12824 - Unselect item in MenuBar when item Executed
12827 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
12830 - IsInputKey for ListBox
12833 - Shift and Control item selection
12834 - Implement SelectionMode.MultiExtended
12835 - Fixes RightToLeft
12837 - IsInputKey implemented
12838 - Do not generate OnTextChangedEdit on internal txt changes
12840 2005-01-23 Peter Bartok <pbartok@novell.com>
12842 * AccessibleObject.cs: Partially implemented Select()
12843 * MonthCalendar.cs: Added missing attributes and events
12844 * Form.cs: Fixed CreateParams behaviour, now controls derived from
12845 form can properly override CreateParams.
12846 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12847 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12848 Control performs Invalidate & Update
12849 * NativeWindow (CreateHandle): Added special handling for Form
12850 and Form.FormParent classes to allow overriding of From.CreateParams
12852 - ControlNativeWindow: Renamed 'control' variable to more intuitive
12854 - ControlNativeWindow: Added Owner property
12855 - Removed usage of Refresh() on property changes, changed into
12856 Invalidate(), we need to wait until the queue is processed for
12857 updates, direct calls might cause problems if not all vars for
12858 Paint are initialized
12859 - Added call to UpdateStyles() when creating the window, to set any
12860 styles that CreateWindow might have ignored.
12861 - Added support for Form CreateParent overrides to UpdateStyles()
12862 * MessageBox.cs: Removed no longer needed FormParent override stuff,
12863 CreateParams are now properly overridable
12864 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12865 CreateParams are now properly overridable
12867 2005-01-23 Miguel de Icaza <miguel@ximian.com>
12869 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12872 Capture LostFocus and OnTextBoxChanged. The later introduces a
12873 recursive invocation that I have not figured out yet.
12875 Reset the timer when not using (it was accumulating).
12878 (OnTextBoxChanged): Set UserEdit to true here to track whether the
12879 user has made changes that require validation.
12881 Reset changing to avoid loops.
12883 2005-01-22 Miguel de Icaza <miguel@ximian.com>
12885 * NumericUpDown.cs: Display value at startup.
12887 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12890 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12891 filled in. Added some basic parsing of text.
12893 Still missing the OnXXX method overrides, and figuring out the
12894 events that must be emitted.
12896 * UpDownBase.cs: Handle UserEdit on the Text property.
12898 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
12901 - Fixes IntegralHeight
12904 2005-01-21 Jackson Harper <jackson@ximian.com>
12906 * TabControl.cs: Set the SelectedIndex property when SelectedTab
12907 is set so that the page visibility is updated and the tabs are
12910 2005-01-21 Jackson Harper <jackson@ximian.com>
12912 * TabControl.cs: Use cliping rectangle for blitting. Give the
12913 theme the clipping rect so we can do clipping while
12914 drawing. Remove some debug code.
12916 2005-01-21 Jackson Harper <jackson@ximian.com>
12918 * TabPage.cs: Add a new method so tab pages can force the tab
12919 control to recalculate the tab page sizes.
12920 * TabControl.cs: UpdateOwner needs to make the tab control recalc
12923 2005-01-20 Jackson Harper <jackson@ximian.com>
12925 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12927 2005-01-20 Jackson Harper <jackson@ximian.com>
12929 * TreeView.cs: Set the bounds for nodes properly. They were
12930 getting screwed up when checkboxes were not enabled, but images
12933 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
12936 - Owner draw support
12939 2005-01-20 Jackson Harper <jackson@ximian.com>
12941 * XplatUIStructs.cs: More misc keys
12942 * X11Keyboard.cs: Ignore some control keys.
12944 2005-01-20 Jackson Harper <jackson@ximian.com>
12946 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12947 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12949 2005-01-19 Peter Bartok <pbartok@novell.com>
12951 * Control.cs: Un-selecting the control when it is loosing focus
12953 2005-01-19 Jackson Harper <jackson@ximian.com>
12955 * TreeView.cs: Hook up to the text controls leave event so we can
12956 end editing when the users clicks outside the text box.
12958 2005-01-19 Jackson Harper <jackson@ximian.com>
12960 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12961 get set in the conversion array.
12963 2005-01-19 Peter Bartok <pbartok@novell.com>
12965 * Application.cs (ModalRun): Added a call to CreateControl to ensure
12966 focus is properly set
12968 - Added missing attributes
12969 - removed styles, those are already set in the base class
12971 - Added missing attributes
12972 - Added clip window styles
12973 * CheckBox.cs: Added missing attributes
12975 - FormParentWindow.CreateParams: Added required clip styles
12976 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12977 also filters modifier keys
12979 - Added assignment of Accept and Cancel button to enable Enter
12980 and Esc keys in MessageBox dialogs
12981 - FormParentWindow.CreateParams: Added required clip styles
12982 * RadioButton.cs: Added missing attributes
12983 * TextControl.cs: No longer draws selection if control does not
12986 - Now draws simple rectangle around test area to make it obvious
12987 there's a control. This is a hack until we properly support borders
12988 - A few simple fixes to support selections better, now erases selected
12989 text when typing, and resets selection when using movement keys
12991 2005-01-19 Miguel de Icaza <miguel@ximian.com>
12993 * UpDownBase.cs: Added some new properties.
12995 * DomainUpDown.cs: Implement a lot to get my test working.
12997 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12999 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13001 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13003 * OSXStructs (WindowAttributes): Fixed csc complaints
13005 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13008 OSXStructs.cs: Initial refactor to move enums and consts into
13009 OSXStructs and use them in the driver for greater readability.
13011 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13013 * XplatUIOSX.cs: Initial support for Standard Cursors.
13014 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13016 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
13018 * ComboBox.cs: ability to change style when the ctrl is already
13019 created, missing methods and events, bug fixes, signature fixes
13021 2005-01-19 Peter Bartok <pbartok@novell.com>
13023 * Cursors.cs (ctor): Added ctor to fix signature
13025 2005-01-18 Peter Bartok <pbartok@novell.com>
13027 * Button.cs: Implemented DoubleClick event
13029 - Fixed keyboard handling to behave like MS, where the press of
13030 Spacebar is equivalent to a mousedown, and the key release is
13031 equivalent to mouseup. Now a spacebar push will give the same
13032 visual feedback like a mouse click.
13033 - Added missing attributes
13034 - Added ImeModeChanged event
13035 - Added support for generating DoubleClick event for derived classes
13037 - Implemented DoubleClick event
13038 - Added missing attributes
13039 * CommonDialog.cs: Added missing attribute
13040 * ContextMenu.cs: Added missing attributes
13042 - AutoChecked buttons do not allow to be unselected when clicked
13043 (otherwise we might end up with no selected buttons in a group)
13044 - Added missing attributes
13045 - Implemented DoubleClickEvent
13046 * ThreadExceptionDialog.cs: Enabled TextBox code
13048 2005-01-18 Peter Bartok <pbartok@novell.com>
13050 * Form.cs: Removed debug output
13051 * Button.cs: Added support for DoubleClick method
13053 2005-01-18 Peter Bartok <pbartok@novell.com>
13056 - Added method to parent window that allows triggering size
13057 calculations when a menu is added/removed
13058 - set_Menu: Cleaned up mess from early days of Form and Control,
13059 now properly triggers a recalc when a menu is added/removed
13060 - Added case to select form itself as focused form if no child
13062 - Added PerformLayout call when showing dialog, to ensure properly
13065 - Select(): Made internal so Form can access it
13066 - Focus(): Only call Xplat layer if required (avoids loop), and sets
13068 * Application.cs (Run): Removed hack and calls PerformLayout instead
13069 to trigger calculation when Form becomes visible
13071 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
13073 * ComboBox.cs: fixes for ownerdraw
13075 2005-01-18 Peter Bartok <pbartok@novell.com>
13078 - Sentinel is no longer static, each Document gets it's own, this
13079 avoids locking or alternatively overwrite problems when more
13080 than one text control is used simultaneously.
13081 - Switched to use Hilight and HilightText brushes for text selection
13083 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
13085 2005-01-18 Peter Bartok <pbartok@novell.com>
13088 - Hooked up the following events:
13096 o SystemColorsChanged
13097 o ParentFontChanged
13099 - Removed debug output
13100 - Added a call to the current theme's ResetDefaults when a color change
13102 * Form.cs: Now setting the proper ImeMode
13103 * Theme.cs: Defined a method to force recreation of cached resources
13104 and rereading of system defaults (ResetDefaults())
13105 * ThemeWin32Classic.cs: Added ResetDefaults() stub
13107 2005-01-17 Peter Bartok <pbartok@novell.com>
13109 * Control.cs: Added missing attributes
13111 2005-01-17 Jackson Harper <jackson@ximian.com>
13113 * TreeNode.cs: Implement editing. Add missing properties selected
13115 * TreeView.cs: Implement node editing. Also some fixes to use
13116 Invalidate (invalid area) instead of Refresh when selecting.
13118 2005-01-17 Peter Bartok <pbartok@novell.com>
13121 - Implemented InvokeGotFocus() method
13122 - Implemented InvokeLostFocus() method
13123 - Implemented InvokePaint() method
13124 - Implemented InvokePaintBackground() method
13125 - Implemented InvokeClick() method
13126 - Implemented FindForm() method
13127 - Implemented RectangleToClient() method
13128 - Implemented ClientToRectangle() method
13129 - Implemented ResetBackColor() method
13130 - Implemented ResetCursor() method
13131 - Implemented ResetFont() method
13132 - Implemented ResteForeColor() method
13133 - Implemented ResetImeMode() method
13134 - Implemented ResetLeftToRight() method
13135 - Implemented ResetText() method
13136 - Implemented Scale() methods
13137 - Implemented ScaleCore() method
13138 - Implemented Update() method
13139 - Removed unused variables
13140 - Stubbed AccessibilityNotifyClients and
13141 ControlAccessibleObject.NotifyClients() methods (dunno what to do
13143 - Now setting proper default for RightToLeft property
13144 - Fixed bug in SetClientSizeCore that would cause windows to get
13146 - Now sending Click/DoubleClick events
13147 - Now selecting controls when left mouse button is clicked on
13149 * AccessibleEvents.cs: Added
13150 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
13151 * XplatUIOSX.cs: Stubbed UpdateWindow() method
13152 * XplatUIWin32.cs: Implemented UpdateWindow() method
13153 * XplatUIX11.cs: Implemented UpdateWindow() method
13154 * Form.cs: Removed stray semicolon causing CS0162 warning
13155 * ThemeWin32Classic.cs: Fixed unused variable warnings
13156 * ScrollableControl.cs: Now calls base method for ScaleCore
13157 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
13158 style to avoid interference with internal click handler (which is
13159 different than standard Control click handling)
13161 - Now unchecks all sibling radio buttons when control is
13162 selected (Fixes #68756)
13163 - Removed internal tabstop variable, using the one inherited from
13166 2005-01-17 Jackson Harper <jackson@ximian.com>
13168 * NavigateEventArgs.cs: Fix base type.
13169 * LinkLabel.cs: Sig fix
13171 2005-01-17 Jackson Harper <jackson@ximian.com>
13173 * TreeView.cs: Only invalidate the effected nodes bounds when
13176 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13178 * XplatUIWin32.cs: fixes Win32 marshaling
13179 * XplatUIX11.cs: fixes method signature
13181 2005-01-17 Peter Bartok <pbartok@novell.com>
13183 * XplatUIX11.cs: Clean up resources when we no longer need them
13185 2005-01-17 Peter Bartok <pbartok@novell.com>
13187 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
13188 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
13189 and DestroyCursor() methods.
13190 * Cursor.cs: Partially implemented, now supports standard cursors;
13191 still contains some debug code
13192 * Cursors.cs: Implemented class
13194 - WndProc(): Added handling of WM_SETCURSOR message, setting the
13196 - Implemented Cursor property
13197 - Replaced break; with return; more straightforwar and possibly
13199 - Now properly setting the result for WM_HELP
13200 * X11Structs.cs: Added CursorFontShape enum
13201 * XplatUIStructs.cs:
13202 - Added StdCursor enum (to support DefineStdCursor() method)
13203 - Added HitTest enum (to support sending WM_SETCURSOR message)
13205 - Now sends the WM_SETCURSOR message
13206 - Implemented new cursor methods
13207 * XplatUIOSX.cs: Stubbed new cursor methods
13209 - Implemented new cursor methods
13210 - Added GetSystemMetrics function and associated enumeration
13212 2005-01-15 Peter Bartok <pbartok@novell.com>
13215 - WndProc(): Now handles EnableNotifyMessage
13216 - SelectNextControl(): Fixed bug where if no child or sibling
13217 controls exist we looped endlessly
13219 2005-01-14 Jackson Harper <jackson@ximian.com>
13221 * TreeView.cs: Recalculate the tab pages when a new one is added
13222 so that the proper bounding rects are created.
13224 2005-01-14 Jackson Harper <jackson@ximian.com>
13226 * TreeView.cs: Draw a gray box instead of a grip in the lower
13227 right hand corner when there are both horizontal and vertical
13230 2005-01-14 Jackson Harper <jackson@ximian.com>
13232 * Control.cs: When erasing backgrounds use FromHwnd instead of
13233 FromHdc when there is a NULL wparam. This occurs on the X driver.
13234 * XplatUIX11.cs: Set the wparam to NULL.
13236 2005-01-13 Jackson Harper <jackson@ximian.com>
13238 * PictureBox.cs: Implement missing methods (except ToString, need
13239 to test that on windows) and events. When visibility is changed we
13240 need to redraw the image because the buffers are killed. When size
13241 is changed refresh if the sizemode needs it.
13243 2005-01-13 Peter Bartok <pbartok@novell.com>
13245 * Control.cs (SelectNextControl): Was using wrong method to select
13248 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13250 * ComboBox.cs: fixes dropstyle
13252 2005-01-13 Peter Bartok <pbartok@novell.com>
13255 - Implemented Select() override
13256 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13257 - Now sets keyboard focus on startup
13258 * Control.cs (SelectNextControl): Now properly handles directed=true
13260 - WndProc: Now passes tab key on to base if AcceptTabChar=false
13261 - Added (really bad) focus rectangle (mostly for testing)
13262 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13263 to enforce redraw on focus changes
13264 * ContainerControl.cs:
13265 - Fixed detection of Shift-Tab key presses
13266 - Fixed traversal with arrow keys
13267 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13268 gonna keep this or if it's complete yet
13270 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13272 * ComboBox.cs: missing properties, fixes
13274 2005-01-13 Peter Bartok <pbartok@novell.com>
13276 * Panel.cs (ctor): Setting Selectable window style to off
13277 * Splitter.cs (ctor): Setting Selectable window style to off
13278 * GroupBox.cs (ctor): Setting Selectable window style to off
13279 * Label.cs (ctor): Setting Selectable window style to off
13281 2005-01-12 Miguel de Icaza <miguel@ximian.com>
13283 * UpDownBase.cs (InitTimer): If the timer has been already
13284 created, enable it.
13286 Use a TextBox instead of a Label.
13288 2005-01-12 Jackson Harper <jackson@ximian.com>
13290 * TreeView.cs: Refresh the tree after sorting the nodes. Always
13291 draw the connecting node lines (when ShowLines is true).
13292 * TreeNode.cs: The nodes index can now be updated. This is used
13293 when a node collection is sorted.
13294 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13295 insert or an existing unsorted node collection can be sorted.
13297 2005-01-12 Peter Bartok <pbartok@novell.com>
13299 * ContainerControl.cs: Implemented ProcessDialogKeys()
13301 2005-01-12 Peter Bartok <pbartok@novell.com>
13304 - Implemented SelectNextControl() method
13305 - Several focus related bug fixes
13306 - Fixed Docking calculations to match MS documentation and
13309 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
13311 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13314 2005-01-12 Peter Bartok <pbartok@novell.com>
13317 - Fixed broken Contains() method
13318 - Implemented GetNextControl() method. Finally. This is the pre-
13319 requisite for focus handling.
13321 2005-01-12 Peter Bartok <pbartok@novell.com>
13323 * OSXStrucs.cs: Added
13325 2005-01-12 Peter Bartok <pbartok@novell.com>
13328 - Removed PeekMessageFlags
13329 - Implemented SetWindowStyle() method
13330 * XplatUIStructs.cs: Added PeekMessageFlags
13331 * X11Structs: Added missing border_width field to XWindowChanges struct
13333 - PeekMessage: Now throws exception if flags which are not yet
13334 supported are passed
13335 - Implemented SetWindowStyle() method
13336 - Fixed SetZOrder to handle AfterHwnd properly
13337 * XplatUI.cs: Added SetWindowStyle() method
13338 * XplatUIDriver.cs: Added SetWindowStyle() abstract
13340 - Implemented UpdateStyles() method
13341 - Implemented UpdateZOrder() method
13342 * XplatUIOSX.cs: Added SetWindowStyle() stub
13344 2005-01-12 Geoff Norton <gnorton@customerdna.com>
13346 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
13350 2005-01-11 Jackson Harper <jackson@ximian.com>
13352 * TreeView.cs: Still need to draw lines to siblings even if out of
13353 the current node is out of the clip.
13355 2005-01-11 Jackson Harper <jackson@ximian.com>
13357 * TreeView.cs: When setting the hbar/vbar/grip position use
13358 SetBounds so that perform layout is only called once. Also suspend
13359 and resume layout so layout is only done once for all controls.
13360 - Removed some debug fluff
13361 * SizeGrip.cs: Call base implmentation in overriding methods.
13362 - When visibility is changed the drawing buffers are killed so we
13365 2005-01-11 Jackson Harper <jackson@ximian.com>
13367 * TreeView.cs: Calculate the open node count while drawing. This
13368 saves us an entire tree traversal for every paint operation. Use
13369 a member var for the open node count so less vars are passed around.
13371 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
13373 * MonthCalendar.cs:
13374 - fixed selection to use mousemove, not mouse polling on timer
13375 * ThemeWin32Classic.cs
13376 - removed redundant unused variable "no_more_content"
13378 2005-01-11 Peter Bartok <pbartok@novell.com>
13380 * XplatUIX11.cs (DoEvents): Needs to return when no more events
13381 are pending, so it now calls PeekMessage instead of GetMessage;
13382 implemented a incomplete version of PeekMessage
13384 2005-01-11 Peter Bartok <pbartok@novell.com>
13386 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
13388 * TextBoxBase.cs: Added sending of TextChanged event
13390 2005-01-10 Jackson Harper <jackson@ximian.com>
13392 * TreeView.cs: Try not to draw outside the clipping rectangle on
13395 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
13397 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
13399 2005-01-10 Jackson Harper <jackson@ximian.com>
13402 - Implement fast scrolling. Now only the newly
13403 exposed nodes are drawn and the old image is moved using the
13404 XplatUI::ScrollWindow method.
13405 - Factor in height of nodes when calculating whether or not the
13406 node is in the clipping rect.
13408 2005-01-10 Jackson Harper <jackson@ximian.com>
13410 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
13412 2005-01-10 Peter Bartok <pbartok@novell.com>
13414 * Application.cs: Added temporary hack to resolve all our resize
13415 required issues on startup. This will get fixed properly at
13416 some point in the future
13418 2005-01-10 Jackson Harper <jackson@ximian.com>
13420 * SizeGrip.cs: New internal class that is used as a sizing
13421 grip control...hence the name.
13423 2005-01-10 Peter Bartok <pbartok@novell.com>
13425 * Control.cs: Implemented proper TabIndex handling, now assigning
13426 a tabindex when a control is added to a container
13427 * GroupBox.cs (ctor): Now sets the Container style bit, required
13428 for Control.GetNextControl()
13430 2005-01-09 Jackson Harper <jackson@ximian.com>
13432 * TextBoxBase.cs: Clear window when scrolling (fixes build).
13434 2005-01-09 Peter Bartok <pbartok@novell.com>
13436 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13437 XplatUIX11.cs: Added ability to control ScrollWindow expose and
13438 an overload for ScrollWindow to allow only scrolling a rectangle
13440 2005-01-09 Peter Bartok <pbartok@novell.com>
13443 - Implemented SetDesktopBounds method
13444 - Implemented SetDesktopLocation method
13446 2005-01-08 Jackson Harper <jackson@ximian.com>
13448 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
13449 the node count has changed, this removes to VScroll::Refresh calls
13452 2005-01-08 Geoff Norton <gnorton@customerdna.com>
13454 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
13456 2005-01-07 Jackson Harper <jackson@ximian.com>
13458 * TreeNode.cs: Just update the single node when it is
13459 checked. Don't refresh after toggling, the Expand/Collapse already
13461 * TreeView.cs: Respect clipping a little more when drawing. Try
13462 not to redraw things that don't need to be redrawn. Just hide the
13463 scrollbars when they are no longer needed instead of removing
13464 them, so they don't have to be created again and again.
13466 2005-01-07 Geoff Norton <gnorton@customerdna.com>
13468 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
13469 coordinates to window space to place the caret properly, FIXED.
13470 Implement GetWindowState & SetWindowState
13472 2005-01-06 Peter Bartok <pbartok@novell.com>
13475 - Implemented ClientSize property
13476 - Implemented DesktopBounds property
13477 - Implemented DesktopLocation property
13478 - Implemented IsRestrictedWindow property
13479 - Implemented Size property
13480 - Implemented TopLevel property
13481 - Implemented FormWindowState property
13483 - Implemented GetTopLevel() method
13484 - Implemented SetTopLevel() method
13485 * X11Structs.cs (Atom):
13486 - Added AnyPropertyType definition
13487 - Added MapState definiton and updated XWindowAttribute struct
13488 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
13489 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
13490 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
13492 - Implemented GetWindowState() and SetWindowState() methods
13493 - Fixed Win32GetWindowLong return type
13495 - Introduced central function for sending NET_WM messages
13496 - Implemented GetWindowState() and SetWindowState() methods
13497 * TextBoxBase.cs (set_Lines):
13498 - Now uses Foreground color for text added via Text property (Duh!)
13499 - Added code to remember programmatically requested size (fixes
13500 behaviour when Multiline is set after Size)
13501 - Added AutoSize logic
13503 2005-01-06 Jackson Harper <jackson@ximian.com>
13505 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
13507 2005-01-06 Jackson Harper <jackson@ximian.com>
13509 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
13510 set to less then 0.
13512 2005-01-06 Jackson Harper <jackson@ximian.com>
13514 * ScrollableControl.cs: Lazy init the scrollbars.
13516 2005-01-06 Jackson Harper <jackson@ximian.com>
13518 * Theme.cs: Speed up getting pens and solid brushes, by using
13519 their ARGB as a hash instead of tostring and not calling Contains.
13521 2005-01-06 Peter Bartok <pbartok@novell.com>
13524 - Implemented OnActivated and OnDeactivate event trigger
13525 - Implemented Activate() method
13526 - Fixed ShowDialog() to activate the form that was active before
13527 the dialog was shown
13529 - Added global active_window var that tracks the currently active
13531 - Now always grabs Property changes from the root window to always
13532 catch changes on the active window property
13533 - Added code to PropertyNotify handler to send Active/Inactive
13534 messages when state changes. This puts X11 and Win32 en par on
13535 WM_ACTIVATE notifications (except for double notifications when
13536 the user clicks away from our modal window to another one of our
13539 2005-01-05 Jackson Harper <jackson@ximian.com>
13541 * ImageList.cs: Implment ctor
13543 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13545 * XplatUIOSX.cs: Implement Activate/SetTopmost
13547 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13549 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13551 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13553 * XplatUIOSX.cs: Implement GetActive/SetFocus.
13555 2005-01-05 Peter Bartok <pbartok@novell.com>
13557 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13558 XplatUIOSX.cs: Added GetActive method to return the currently
13559 active window for the application (or null, if none is active)
13561 - Implemented ActiveForm
13562 - Commented out owner assignment for modal dialogs (causes problems
13563 on Win32, since the owner will be disabled)
13564 - Reworked some Active/Focus handling (still incomplete)
13565 * CommonDialog.cs: Commented out owner assignment for modal dialogs
13566 (causes problems on Win32, since the owner will be disabled)
13567 * IWin32Window: Added ComVisible attribute
13569 2005-01-05 Peter Bartok <pbartok@novell.com>
13571 * ToolTip.cs (WndProc): Enable setting focus now that we have the
13572 required XplatUI functions.
13574 2005-01-05 Peter Bartok <pbartok@novell.com>
13576 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13577 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13578 to implement focus and activation handling; still incomplete and
13581 2005-01-04 Peter Bartok <pbartok@novell.com>
13583 * TextBoxBase.cs: Changed access level for Document property to
13584 match switch to internal for TextControl
13586 2005-01-04 Peter Bartok <pbartok@novell.com>
13588 * AccessibleObject: Added ComVisible attribute
13590 2005-01-04 Jackson Harper <jackson@ximian.com>
13592 * X11Keyboard.cs: Remove unneeded var.
13594 2005-01-04 Jackson Harper <jackson@ximian.com>
13596 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13598 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13599 ClientMessage. This makes apps exit cleanly (more often).
13601 2005-01-04 Jackson Harper <jackson@ximian.com>
13603 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13604 handling focus, return correct colors and fonts,
13605 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13606 handle selection, horizontal scrolling, and mouse interaction.
13608 2005-01-04 Peter Bartok <pbartok@novell.com>
13610 * ICommandExecutor.cs: Added
13611 * IDataGridColumnStyleEditingNotificationService.cs: Added
13612 * IFeatureSupport.cs: Added
13613 * IFileReaderService.cs: Added
13614 * IDataObject.cs: Added ComVisible attribute
13615 * AmbientProperties.cs: Added
13616 * BaseCollection.cs: Added missing attributes
13617 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13618 * BaseCollection.cs: Added missing attributes
13619 * Binding.cs: Added TypeConverter attribute
13620 * BindingContext.cs: Added DefaultEvent attribute
13621 * BindingsCollection.cs: Added DefaultEvent attribute
13622 * Button.cs: Added DefaultValue attribute
13623 * DragEventArgs.cs: Added ComVisible attribute
13624 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13625 * KeyEventArgs.cs: Added ComVisible attribute
13626 * KeyPressEventArgs.cs: Added ComVisible attribute
13627 * MouseEventArgs.cs: Added ComVisible attribute
13628 * NavigateEventArgs.cs: Added
13629 * NavigateEventHandler.cs: Added
13630 * FeatureSupport.cs: Added
13631 * OSFeature.cs: Added
13632 * Theme.cs: Added abstract Version property to support OSFeature
13633 * ThemeWin32Classic.cs: Added Version property to
13634 support OSFeature.Themes
13635 * ProgressBar.cs: Removed OnPaintBackground override, not required since
13636 the proper styles to avoid background drawing are set, also doesn't
13638 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13639 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13640 * ScrollEventArgs.cs: Added ComVisible attribute
13641 * SplitterEventArgs.cs: Added ComVisible attribute
13642 * AccessibleSelection.cs: Added Flags attribute
13643 * Appearance.cs: Added ComVisible attribute
13644 * Border3DSide.cs: Added ComVisible attribute
13645 * Border3DStyle.cs: Added ComVisible attribute
13646 * BorderStyle.cs: Added ComVisible attribute
13647 * DragAction.cs: Added ComVisible attribute
13648 * ErrorBlinkStyle.cs: Added
13649 * ScrollEventType.cs: Added ComVisible attribute
13650 * AnchorStyles.cs: Added Editor attribute
13651 * DockStyle.cs: Added Editor attribute
13652 * HorizontalAlignment.cs: Added ComVisible attribute
13653 * HelpEventArgs.cs: Added ComVisible attribute
13654 * PaintEventArgs.cs: Added IDisposable
13656 2005-01-04 Peter Bartok <pbartok@novell.com>
13658 * TextControl.cs: Switched Line, LineTag and Document classes to
13661 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13663 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13664 Simple mode, fixes, IntegralHeight, etc.
13666 2005-01-04 Peter Bartok <pbartok@novell.com>
13668 * TextBoxBase.cs: Using proper font variable now
13670 2005-01-04 Peter Bartok <pbartok@novell.com>
13672 * Form.cs (ShowDialog): Set parent to owner, if provided
13673 * GroupBox.cs: Removed unused vars
13675 - Added GetHashCode() for Document and LineTag classes
13676 - Removed unused variables
13677 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13678 to allow translation between continuous char position and line/pos
13679 * CheckBox.cs: Removed vars that are provided by base class
13680 * RadioButton.cs: Removed vars that are provided by base class, added
13681 new keyword where required
13682 * LinkLabel.cs: Added new keyword where required
13683 * Control.cs (WndProc): Removed unused variable
13685 - Finished SelectionLength property
13686 - Implemented SelectionStart property
13687 - Implemented Text property
13688 - Removed unused vars
13689 * MessageBox.cs: Added new keyword where required
13690 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13692 * MenuAPI.cs: Added new keyword where required
13693 * ButtonBase.cs: Removed vars that are provided by base class, added
13694 new keyword where required
13695 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13696 argument to double, to allow compiling with csc 2.0 (Atsushi ran
13698 * Application.cs (Run): Now triggers the ThreadExit event
13699 * CommonDialog.cs: Added new keyword where required; now properly sets
13700 parent (owner) for dialog
13701 * XplatUIX11.cs: Commented out unused vars
13702 * StatusBar.cs: Fixed signature for Text property
13703 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13705 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13707 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13708 TrackBar.cs, MonthCalendar.cs: remove unused vars
13710 2005-01-03 Jackson Harper <jackson@ximian.com>
13712 * ThemeWin32Classic.cs:
13713 * X11Keyboard.cs: Remove unused vars.
13715 2005-01-03 Peter Bartok <pbartok@novell.com>
13718 - set_Text: Tied into TextControl
13719 - set_TextAlignment: Tied into TextControl
13721 - Added alignment properties and implemented alignment handling
13722 and drawing (still has a bug, not generating proper expose events)
13723 - Added new Line() constructor to allow passing the line alignment
13724 - Fixed selection setting, properly handling end<start now
13725 - Added aligment considerations to RecalculateDocument()
13727 - Now properly enforces control height for single line controls
13728 - Added support for CharacterCasing
13729 - Added IsInputKey override
13730 - Fixed Keys.Enter logic
13731 - Added SetBoundsCore override
13732 - Fixed mouse selection handling
13734 2005-01-03 Jackson Harper <jackson@ximian.com>
13737 - Collapse and uncheck all nodes when CheckBoxes is disabled.
13738 - Checkboxes are always aligned to the bottom of the node,
13739 regardless of item height.
13740 - Use the node bounds to draw the text so we can center it when
13741 the item height is greater then the font height.
13742 - Node::Bounds are only the text part of the node.
13743 * TreeNode.cs: New method to combine collapsing and unchecking all
13746 2005-01-02 Jackson Harper <jackson@ximian.com>
13748 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13749 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13750 tree when a check is changed. TODO: Only refresh the checked node.
13752 2004-12-30 Jackson Harper <jackson@ximian.com>
13754 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13755 * TreeNode.cs: When collapsing make sure to never collapse the
13758 2004-12-29 Jackson Harper <jackson@ximian.com>
13760 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13762 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
13764 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13766 2004-12-28 Peter Bartok <pbartok@novell.com>
13768 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13771 2004-12-28 Peter Bartok <pbartok@novell.com>
13773 * Control.cs (WndProc): Added WM_HELP handler, now generates
13774 HelpRequested event
13775 * Form.cs: Added HelpButton property and required support code
13776 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13778 2004-12-28 Peter Bartok <pbartok@novell.com>
13781 - Made DialogForm.owner variable internal
13782 - Added check to ensure owner form is set before setting
13783 owner properties in CreateParams
13785 2004-12-28 Geoff Norton <gnorton@customerdna.com>
13787 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
13788 swizzling. Implement ClientToScreen and ScreenToClient. Implement
13789 GetCursorPos. Fix major visibility issues. Rework the windowing
13790 system to support borderless/titleless windows (implements menus).
13791 Fix GetWindowPos. Implement initial background color support for
13794 2004-12-28 Peter Bartok <pbartok@novell.com>
13796 * Form.cs (get_CreateParams): Make sure we have an owner before using
13797 the owner variable. Implement proper default if no owner exists
13799 2004-12-28 Peter Bartok <pbartok@novell.com>
13801 * In preparation for making Managed.Windows.Forms the default build target
13802 for System.Windows.Forms, the following stubbed files were added.
13803 Dialogs are currently being implemented by contributors and are only
13804 short-term place holders.
13805 * ColorDialog.cs: Initial check-in (minmal stub)
13806 * DataGrid.cs: Initial check-in (minimal stub)
13807 * DataGridLineStyle.cs: Initial check-in (minimal stub)
13808 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13809 * DataGridTableStyle.cs: Initial check-in (minimal stub)
13810 * FontDialog.cs: Initial check-in (minimal stub)
13811 * FileDialog.cs: Initial check-in (minimal stub)
13812 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13813 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13814 * OpenFileDialog: Initial check-in (minimal stub)
13815 * IComponentEditorPageSite.cs: Initial check-in
13816 * Splitter.cs: Initial check-in (for Jackson)
13817 * SplitterEventArgs.cs: Initial check-in (for Jackson)
13818 * SplitterEventHandler.cs: Initial check-in (for Jackson)
13819 * TextBox.cs: Initial check-in; still needs some wiring to
13820 TextControl backend
13821 * Form.cs: Implemented ControlBox property
13822 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13823 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13824 * TextControl.cs: Added selection functionality; added todo header
13826 - Implemented Lines property
13827 - Implemented TextHeight property
13828 - Implemented SelectedText property
13829 - Implemented SelectionLength property
13830 - Implemented SelectAll method
13831 - Implemented ToString method
13832 - Removed and cleaned up some debug code
13833 - Implemented (still buggy) mouse text selection
13835 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
13837 * ComboBox.cs: Complete DropDownList implementation, fixes.
13839 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
13841 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13842 * ComboBoxStyle.cs: ComboBoxStyle enum
13843 * ComboBox.cs: Initial work on ComboBox control
13845 2004-12-21 Peter Bartok <pbartok@novell.com>
13847 * Control.cs (ctor, CreateParams): Moved setting of is_visible
13848 forward so that anything that creates a window gets the default,
13849 also no longer uses Visible property in CreateParams to avoid
13850 walking up the parent chain and possibly get the wrong visible
13851 status. Fixed IsVisible to no longer walk up to the parent.
13853 2004-12-21 Peter Bartok <pbartok@novell.com>
13855 * Form.cs (ShowDialog): Unset modality for the proper window
13857 2004-12-20 Peter Bartok <pbartok@novell.com>
13859 * CommonDialog.cs: Initial check-in
13861 2004-12-20 Peter Bartok <pbartok@novell.com>
13863 * Control.cs (Visible): Now uses the parent window instead of the
13864 client area window for the property
13867 - ShowDialog(): Now uses the proper window for modality
13868 - The default visibility state for the form parent is now false. This
13869 will prevent the user from seeing all the changes to the form and
13870 its controls before the application hits Application.Run()
13871 - Removed some stale commented out code
13874 - Added FindWindow() method to have a method to check for existence
13876 - Added ability to override default exception handling (for example
13877 when debugging with VS.Net; to do this the ExternalExceptionHandler
13879 - Removed some useless debug output
13882 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13883 not working as expected
13884 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13885 property to allow switching back to the modal window if focus is
13886 given to another one of our windows (Application Modal)
13887 - Now only sets override_redirect if we create a window
13889 - Moved EventMask selection before mapping of newly created window
13890 so we can catch the map event as well
13891 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13892 - Added various Atom related DllImports
13893 - Implemented Exit() method
13894 - .ctor() : No longer shows window if WS_VISIBLE is not defined
13895 in the CreateParams
13897 * MessageBox.cs: Now properly deals with the FormParent window by
13898 providing an override the FormParent CreateParams property to
13899 set as POPUP instead of OVERLAPPED window.
13901 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13903 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
13904 Minor code cleanup.
13906 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13908 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13910 2004-12-18 Peter Bartok <pbartok@novell.com>
13912 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13913 implementing SetModal() method
13915 2004-12-18 Peter Bartok <pbartok@novell.com>
13917 * X11Structs.cs (XGCValues): Fixed type of function element
13918 * XplatUI.cs: Added ScrollWindow() method
13919 * XplatUIDriver.cs: Added ScrollWindow() abstract
13920 * XplatUIWin32.cs: Implemented ScrollWindow() method
13921 * XplatUIX11.cs: Implemented ScrollWindow() method
13922 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13924 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13926 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
13927 Some more keyboard support (INCOMPLETE)
13929 2004-12-17 Peter Bartok <pbartok@novell.com>
13932 - Added color attribute to line tags.
13933 - Added color argument to all functions dealing with tags
13934 - Added color argument support to various functions
13935 - Fixed miss-calculation of baseline/shift in certain circumstances
13937 * TextBoxBase.cs: Added new color option to test code
13939 2004-12-17 Jackson Harper <jackson@ximian.com>
13942 * MonthCalendar.cs: Signature fixes
13944 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13946 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13947 keyboard event moved it. Create a new graphics context for each paint resolves this
13949 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13951 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13952 Make caret exist and go blink blink. Initial keyboard support.
13953 Fix exception handler, Add Invalidate support. Change way RefreshWindow
13956 2004-12-17 Jackson Harper <jackson@ximian.com>
13958 * XplatUIStructs.cs: Updated set of virtual keycodes.
13959 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13961 2004-12-17 Jackson Harper <jackson@ximian.com>
13963 * XplatUIX11.cs: Prune old keyboard code.
13965 2004-12-17 Jackson Harper <jackson@ximian.com>
13967 * XplatUIX11.cs: When generating mouse wparams get the modifier
13968 keys from the ModifierKeys property.
13970 2004-12-17 Jackson Harper <jackson@ximian.com>
13972 * X11Keyboard.cs: Send up/down input when generating
13973 messages. Remove some unused vars.
13975 2004-12-17 Jackson Harper <jackson@ximian.com>
13978 * TreeView.cs: get rid of warnings.
13980 2004-12-17 Jackson Harper <jackson@ximian.com>
13982 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13984 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
13986 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13987 CheckedListBox.cs: Implementation
13989 2004-12-17 Peter Bartok <pbartok@novell.com>
13991 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13993 2004-12-16 Peter Bartok <pbartok@novell.com>
13996 - InsertCharAtCaret(): Fixed start pos fixup
13997 - CaretLine_get: No longer derives the line from the tag, the tag
13998 could be stale if lines in the document have been added or deleted
13999 - RebalanceAfterDelete(): Fixed bug in balancing code
14000 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14001 - Line.Streamline(): Now can also elminate leading empty tags
14002 - DumpTree(): Added a few more tests and prevented exception on
14004 - Added Debug section for Combining lines
14005 - Delete(): Now copies all remaining properties of a line
14008 - Left mousebutton now sets the caret (and middle button still acts
14009 as formatting tester, which must go away soon)
14010 - Added Debug section for Deleting/Combining lines
14011 - Fixed calculations for UpdateView after Combining lines
14013 2004-12-16 Peter Bartok <pbartok@novell.com>
14015 * TextControl.cs: Now properly aligns text on a baseline, using the
14016 new XplatUI.GetFontMetrics() method. Simplified several calculations
14017 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14020 2004-12-16 Peter Bartok <pbartok@novell.com>
14022 * XplatUI.cs: Added GetFontMetrics() method
14023 * XplatUIDriver.cs: Added GetFontMetrics() abstract
14024 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14025 into libgdiplus, our private GetFontMetrics function
14026 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14027 * XplatUIWin32.cs: Implemented GetFontMetrics() method
14029 2004-12-16 Jackson Harper <jackson@ximain.com>
14031 * XplatUIStruct.cs: Add enum for dead keys
14032 * X11Keyboard.cs: Map and unmap dead keys.
14034 2004-12-16 Jackson Harper <jackson@ximian.com>
14036 * X11Keyboard.cs: Detect and use the num lock mask.
14038 2004-12-16 Peter Bartok <pbartok@novell.com>
14040 * Control.cs (CreateGraphics): Added check to make sure the
14041 handle of the window exists before calling Graphics.FromHwnd()
14043 2004-12-16 Peter Bartok <pbartok@novell.com>
14045 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14046 contains a lot of code that's not supposed to be there for the
14047 real thing, but required for developing/testing the textbox
14050 2004-12-16 Peter Bartok <pbartok@novell.com>
14053 - Fixed Streamline method
14054 - Added FindTag method to Line
14055 - Added DumpTree method for debugging
14056 - Added DecrementLines() method for deleting lines
14057 - Fixed UpdateView to update the cursor to end-of-line on single-line
14059 - Added PositionCaret() method
14060 - Fixed MoveCaret(LineDown) to move into the last line, too
14061 - Added InsertChar overload
14062 - Fixed InsertChar tag offset calculations
14063 - Added DeleteChar() method
14064 - Added Combine() method for folding lines
14065 - Fixed Delete() method, no longer allocates wasted Line object and
14066 now copies all properties when swapping nodes
14067 - Delete() method now updates document line counter
14069 2004-12-15 Jackson Harper <jackson@ximian.com>
14071 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
14072 * X11Keyboard.cs: Expose the currently selected modifier keys
14073 through a property.
14075 2004-12-15 Peter Bartok <pbartok@novell.com>
14077 * TextControl.cs: Initial check-in. Still incomplete
14079 2004-12-15 Jackson Harper <jackson@ximian.com>
14082 * TreeView.cs: Fix build on csc (second time today ;-))
14084 2004-12-15 Jackson Harper <jackson@ximian.com>
14086 * TreeView.cs: Store the treenodes plus/minus box bounds when it
14087 is calculated and use this for click testing.
14088 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
14090 2004-12-15 Jackson Harper <jackson@ximian.com>
14092 * TreeView.cs: Pass the nodes image index to the image list when
14093 drawing that image.
14095 2004-12-15 Jackson Harper <jackson@ximian.com>
14097 * X11Keyboard.cs: Set messages hwnd.
14098 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
14099 post_message calls.
14101 2004-12-15 Jackson Harper <jackson@ximian.com>
14103 * X11Keyboard.cs: Fix to compile with csc.
14105 2004-12-15 Jackson Harper <jackson@ximian.com>
14107 * X11Structs.cs: Add key mask values
14108 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
14109 * X11Keyboard.cs: New file - Extrapolates and interpolates key
14110 down/up foo into WM_CHAR foo
14111 * KeyboardLayouts.cs: Common keyboard layouts
14112 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
14113 post messages into the main queue.
14115 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
14117 * Button.cs: implement ProcessMnemonic
14118 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
14120 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
14121 * ButtonBase.cs: Show HotkeyPrefix (not the &)
14123 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
14125 * MonthCalendar.cs: Implemented click-hold for next/previous month
14128 2004-12-11 Peter Bartok <pbartok@novell.com>
14131 - Added XKeyboardState (moved from XplatUIX11.cs)
14132 - Added XCreateGC related enums and structures
14133 - Added GXFunction for XSetFunction
14135 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
14137 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
14138 CaretVisible() calls
14140 * ToolTip.cs: Added code to prevent stealing focus from app windows
14142 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
14143 DestroyCaret, SetCaretPos and CaretVisible)
14146 - Added implementation for caret functions
14147 - Moved hover variables into a struct, to make it a bit easier
14148 on the eyes and to debug
14149 - Removed XKeyboardState (moved to XplatUIX11.cs)
14150 - Moved Keyboard properties into the properties region
14152 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
14153 call to get a graphics context for our control
14155 * XplatUIOSX.cs: Added empty overrides for the new caret functions
14157 * TreeView.cs: Fixed bug. No matter what color was set it would always
14158 return SystemColors.Window
14160 * XplatUIWin32.cs: Implemented caret overrides
14162 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
14164 * ListBox.cs: fire events, implement missing methods and properties,
14167 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
14169 * MonthCalendar.cs: invalidation bug fixing
14170 * ThemeWin32Classic.cs: paint fixing
14172 2004-12-09 Geoff Norton <gnorton@customerdna.com>
14174 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
14175 prepare the CGContextRef there now.
14177 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
14179 * MonthCalendar.cs:
14180 - optimisationL only invalidate areas that have changed
14181 * ThemeWin32Classic.cs:
14182 - only paint parts that intersect with clip_area
14184 2004-12-09 Peter Bartok <pbartok@novell.com>
14186 * Application.cs: Undid changes from r37004 which cause problems
14189 2004-12-09 Ravindra <rkumar@novell.com>
14191 * ToolBar.cs: Added support for displaying ContextMenu
14192 attached to a button on ToolBar.
14193 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
14196 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
14198 * Label.cs: autosize works in text change and removes unnecessary
14201 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
14203 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14206 2004-12-08 Geoff Norton <gnorton@customerdna.com>
14208 * XplatUIOSX.cs: Added mouse move/click/grab support
14209 Remove some debugging WriteLines not needed anymore.
14210 Add window resizing/positioning.
14211 Fix visibility on reparenting.
14213 2004-12-08 Peter Bartok <pbartok@novell.com>
14215 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
14217 2004-12-07 Geoff Norton <gnorton@customerdna.com>
14219 * XplatUIOSX.cs: Initial checkin
14220 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
14222 2004-12-03 Ravindra <rkumar@novell.com>
14224 * ListView.cs: Added some keybindings and fixed scrolling.
14225 ScrollBars listen to ValueChanged event instead of Scroll
14226 Event. This would let us take care of all changes being
14227 done in the scrollbars' values programmatically or manually.
14228 * ListView.cs (CanMultiselect): Added a check for shift key.
14229 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
14230 * ListViewItem.cs (Clone): Fixed. We need to make a copy
14231 of ListViewSubItemCollection as well.
14233 2004-12-06 Peter Bartok <pbartok@novell.com>
14235 * Control.cs (Parent): Added check and exception to prevent
14238 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
14240 * ListBox.cs: implemented clipping, selection single and multiple,
14243 2004-12-03 Ravindra <rkumar@novell.com>
14245 * ListView.cs (ListView_KeyDown):
14246 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14247 when CTRL key is pressed.
14248 * ListViewItem.cs (Selected): Fixed setting the property.
14250 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14252 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14254 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14255 MinimizeBox, ShowInTaskbar, TopMost properties.
14257 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14258 will be implemented).
14260 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14262 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14264 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14267 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14269 * TreeView.cs: BackColor is Colors.Window.
14271 2004-12-01 Jackson Harper <jackson@ximian.com>
14273 * TreeView.cs: When resizing the tree if the user is making it
14274 smaller we don't get expose events, so we need to handle adding
14275 the horizontal scrollbar in the size changed handler as well as
14276 the expose handler.
14278 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
14280 * DrawItemState.cs: fixes wrong enum values
14282 2004-12-01 Jackson Harper <jackson@ximian.com>
14284 * TreeView.cs: Resize the hbar as well as the vbar on resize.
14286 2004-12-01 Jackson Harper <jackson@ximian.com>
14288 * NodeLabelEditEventArgs.cs:
14289 * NodeLabelEditEventHandler.cs:
14290 * OpenTreeNodeEnumerator.cs:
14292 * TreeNodeCollection.cs:
14294 * TreeViewAction.cs:
14295 * TreeViewCancelEventArgs.cs:
14296 * TreeViewCancelEventHandler.cs:
14297 * TreeViewEventArgs.cs:
14298 * TreeViewEventHandler.cs: Initial implementation.
14300 2004-12-01 Ravindra <rkumar@novell.com>
14302 * ListView.cs (CalculateListView): Fixed scrolling related
14303 calculations. Also, removed some debug statements from other
14305 * ListViewItem.cs: Changed access to 'selected' instance variable
14306 from private to internal.
14307 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14309 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
14311 * ThemeWin32Classic.cs: remove cache of brush and pens for
14312 specific controls and use the global system, fixes scrollbutton
14313 bugs (for small sizes, disabled, etc)
14315 * ScrollBar.cs: does not show the thumb for very small controls
14316 (as MS) and allow smaller buttons that the regular size
14318 2004-12-01 Miguel de Icaza <miguel@ximian.com>
14320 * UpDownBase.cs: Add abstract methods for the interface.
14321 Add new virtual methods (need to be hooked up to TextEntry when it
14323 Add override methods for most features.
14324 Computes the size, forces the height of the text entry.
14326 * NumericUpDown.cs: Put here the current testing code.
14328 * Set eol-style property on all files that do not have mixed line
14329 endings, to minimize the future problems. There are still a few
14330 files with mixed endings, and someone should choose whether they
14331 want to move it or not.
14333 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
14335 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
14338 2004-11-30 Ravindra <rkumar@novell.com>
14340 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
14341 drawing and replaced use of SystemColors by theme colors.
14342 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
14343 * ListView.cs (ListViewItemCollection.Add): Throw exception when
14344 same ListViewItem is being added more than once.
14346 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
14348 * MonthCalendar.cs:
14349 - ControlStyles love to make the control not flicker
14351 2004-11-30 Peter Bartok <pbartok@novell.com>
14353 * CharacterCasing.cs: Added
14355 2004-11-29 Peter Bartok <pbartok@novell.com>
14357 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14358 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
14359 I am removing these files as they conflict with already completed
14360 work. While it is fantastic to get contributions to MWF, I
14361 respectfully ask that everyone please coordinate their contributions
14362 through mono-winforms-list or #mono-winforms at this time. We're
14363 explicitly avoiding stubbing and don't want controls that don't have
14364 their basic functionality implemented in svn. Please also see
14365 http://www.mono-project.com/contributing/winforms.html
14368 2004-11-29 Marek Safar <marek.safar@seznam.cz>
14370 * Application.cs (ModalRun): Don't hang after exit.
14372 * Theme.cs: New TreeViewDefaultSize property.
14374 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
14375 with less hardcoded SystemColors constant.
14376 Implemented TreeViewDefaultSize.
14378 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14379 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
14382 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
14384 * MonthCalendar.cs:
14385 - Fix NextMonthDate and PrevMonthDate click moving calendar
14387 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
14389 * MonthCalendar.cs:
14390 - Fix usage of ScrollChange Property when scrolling months
14392 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
14394 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
14395 - Fixes menu destroying
14396 - Support adding and removing items on already created menus
14398 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
14400 * MonthCalendar.cs:
14401 - Re-worked all bolded dates handling to match win32
14402 * ThemeWin32Classic.cs:
14403 - Fixed rendering with bolded dates
14405 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
14407 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
14408 - Horizontal scroolbar
14413 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
14415 * MonthCalendar.cs:
14416 - Fix Usage of MaxSelectionCount from SelectionRange
14417 - Fixed Shift + Cursor Selection
14418 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
14419 - Fixed normal cursor selection to be compat with win32
14420 - Fixed Shift + Mouse Click selection
14422 2004-11-24 Peter Bartok <pbartok@novell.com>
14424 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
14425 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
14427 - CreatedKeyBoardMsg now updates keystate with Alt key
14428 - Added workaround for timer crash to CheckTimers, Jackson will
14429 develop a proper fix and check in later
14430 - Implemented DispatchMessage
14431 - Removed calling the native window proc from GetMessage (call
14432 now moved to DispatchMessage)
14434 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
14435 the keydata (Fixes bug #69831)
14438 - (DispatchMessage): Switched to return IntPtr
14439 - Added DllImport for SetFocus
14441 2004-11-24 Ravindra <rkumar@novell.com>
14443 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
14444 background drawing.
14445 * ListViewItem.cs: Fixed various properties, calculations
14446 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
14447 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
14448 and some internal properties. Fixed MouseDown handler and Paint
14451 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14453 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
14455 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14457 * ContainerControl.cs: correct accidental check in of local changes
14459 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
14461 * ThemeWin32Classic.cs:
14462 - Fixed Drawing Last month in grid (sometimes not showing)
14463 * MonthCalendar.cs:
14464 - Fixed title width calculation bug (makeing title small)
14466 2004-11-23 Peter Bartok <pbartok@novell.com>
14469 - Added generation of WM_MOUSEHOVER event
14470 - Added missing assignment of async_method atom
14471 - Fixed WM_ERASEBKGND; now only redraws the exposed area
14473 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
14475 * ThemeWin32Classic.cs:
14476 - Fixed Drawing of today circle when showtodaycircle not set
14477 - fixed drawing of first and last month in the grid (gay dates)
14478 * MonthCalendar.cs:
14479 - Fixed Drawing of today circle
14480 - Fixed drawing of grady dates
14481 - Fixed HitTest for today link when ShowToday set to false
14482 - Fixed DefaultSize to obey ShowToday
14484 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
14486 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
14487 * System.Windows.Forms/Theme.cs
14488 * MonthCalendar.cs: added for MonthCalendar
14489 * SelectionRange.cs: added for MonthCalendar
14490 * Day.cs: added for MonthCalendar: added for MonthCalendar
14491 * DateRangeEventArgs.cs: added for MonthCalendar
14492 * DateRangeEventHandler.cs: added for MonthCalendar
14494 2004-11-22 Ravindra <rkumar@novell.com>
14496 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
14499 2004-11-22 Miguel de Icaza <miguel@ximian.com>
14501 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
14504 * NumericUpDown.cs: Added new implementation.
14505 * UpDownBase.cs: Added new implementation.
14507 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
14510 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
14513 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
14516 2004-11-21 Miguel de Icaza <miguel@ximian.com>
14518 * Timer.cs (Dispose): Should call the base dispose when
14521 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
14523 * ScrollBar.cs: updates thumb position when max, min or increment
14526 2004-11-21 Ravindra <rkumar@novell.com>
14528 * ListView.cs: Implemented item selection, activation and
14529 column header style. Fixed properties to do a redraw, if
14530 required. Added support for MouseHover, DoubleClick, KeyDown
14531 and KeyUp event handling and some minor fixes.
14532 * ListViewItem.cs: Fixed constructor.
14533 * ThemeWin32Classic.cs: Improved drawing for ListView.
14535 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
14537 * ThemeWin32Classic.cs: initial listbox drawing code
14538 * DrawMode.cs: new enumerator
14539 * ListControl.cs: stubbed class
14540 * ListBox.cs: initial implementation
14541 * Theme.cs: new methods definitions
14542 * SelectionMode.cs: new enumerator
14544 2004-11-17 Peter Bartok <pbartok@novell.com>
14546 * XplatUIWin32.cs: Added double-click events to the class style
14547 * Control.cs (WndProc):
14548 - Added handling of click-count to MouseDown/ MouseUp events.
14549 - Added handling of middle and right mouse buttons
14550 - Removed old debug code
14552 2004-11-17 Jackson Harper <jackson@ximian.com>
14554 * XplatUIX11.cs: Use the new Mono.Unix namespace.
14556 2004-11-17 Ravindra <rkumar@novell.com>
14558 * ListView.cs: Added event handling for MouseMove/Up/Down.
14559 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14560 * ThemeWin32Classic.cs: We need to clear the graphics context and
14561 draw column header in a proper state.
14564 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
14566 * Menu.cs: fixes signature
14568 2004-11-16 Peter Bartok <pbartok@novell.com>
14570 * XplatUIX11.cs (GetMessage): Implemented generation of
14571 double click mouse messages
14573 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
14575 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14578 2004-11-11 Peter Bartok <pbartok@novell.com>
14580 * HandleData.cs: Added Visible property
14581 * XplatUIX11.cs (IsVisible): Now uses Visible property from
14583 * XplatUIX11.cs: Removed old debug leftovers
14584 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14585 * Control.cs (WndProc): Removed old debug leftovers,
14586 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14587 needed WM_SIZE handling
14589 2004-11-11 Jackson Harper <jackson@ximian.com>
14591 * OwnerDrawPropertyBag.cs:
14592 * TreeViewImageIndexConverter.cs: Initial implementation
14594 2004-11-10 Jackson Harper <jackson@ximian.com>
14596 * ThemeWin32Classic.cs:
14597 * TabControl.cs: instead of moving tabs by the slider pos just
14598 start drawing at the tab that is offset by the slider. This way
14599 scrolling always moves by exactly one tab.
14601 2004-11-10 Jackson Harper <jackson@ximian.com>
14603 * TabControl.cs: You can only scroll left when the slider has
14604 already ben moved right.
14606 2004-11-10 Jackson Harper <jackson@ximian.com>
14608 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14611 2004-11-10 Jackson Harper <jackson@ximian.com>
14613 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14616 2004-11-09 Jackson Harper <jackson@ximian.com>
14618 * TabControl.cs (CalcXPos): New helper method so we can determine
14619 the proper place to start drawing vertical tabs.
14620 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14622 2004-11-09 Jackson Harper <jackson@ximian.com>
14624 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14625 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14626 and Bottom, left and right are illegal values for this and
14627 multiline is enabled when the alignment is set to left or right.
14628 (DrawTab): Each alignment block should draw the text itself now
14629 because Left requires special love. Also add rendering for Left
14632 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
14634 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14635 does not destroy the windows, removes debugging messages
14637 2004-11-09 jba <jba-mono@optusnet.com.au>
14639 * ThemeWin32Classic.cs
14640 (DrawButtonBase): Fix verticle text rect clipping in windows
14641 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14642 rendering and incorrect text rect clipping
14643 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14644 rendering and incorrect text rect clipping
14646 2004-11-08 Jackson Harper <jackson@ximian.com>
14648 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14649 bottom when they are bottom aligned so the bottoms of the tabs get
14651 * TabControl.cs (DropRow): Move rows up instead of down when the
14652 tab control is bottom aligned.
14654 2004-11-08 13:59 pbartok
14657 - Added handling for various window styles
14658 - Added handling for popup windows
14659 - Added SetTopmost handling
14661 2004-11-08 13:55 pbartok
14664 - Added argument to SetTopmost method
14665 - Fixed broken ClientToScreen function
14667 2004-11-08 13:53 pbartok
14669 * XplatUIStructs.cs:
14670 - Added missing WS_EX styles
14672 2004-11-08 13:53 pbartok
14674 * XplatUI.cs, XplatUIDriver.cs:
14675 - Added argument to SetTopmost
14677 2004-11-08 13:52 pbartok
14680 - Added XSetWindowAttributes structure
14681 - Improved XWindowAttributes structure
14682 - Added SetWindowValuemask enum
14683 - Added window creation arguments enum
14684 - Added gravity enum
14685 - Added Motif hints structure
14686 - Added various Motif flags and enums
14687 - Added PropertyMode enum for property functions
14689 2004-11-08 13:50 pbartok
14692 - Fixed arguments for updated SetTopmost method
14694 2004-11-08 13:49 pbartok
14697 - Fixed arguments for updated SetTopmost function
14698 - Fixed usage of PointToClient
14700 2004-11-08 13:44 pbartok
14703 - Added Clipping of children and siblings
14705 2004-11-08 13:41 pbartok
14708 - Removed SetMenuBarWindow call. We do this in Form.cs
14710 2004-11-08 13:40 jackson
14712 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14713 scrolling jimmi in the correct location with bottom aligned tabs
14715 2004-11-08 13:36 pbartok
14717 * ContainerControl.cs:
14718 - Implemented BindingContext
14719 - Implemented ParentForm
14721 2004-11-08 12:46 jackson
14723 * TabControl.cs: Put bottom rendered tabs in the right location
14725 2004-11-08 07:15 jordi
14727 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14730 2004-11-05 17:30 jackson
14732 * TabControl.cs: When selected tabs are expanded make sure they
14733 don't go beyond the edges of the tab control
14735 2004-11-05 14:57 jackson
14737 * TabControl.cs: Reset show_slider so if the control is resized to
14738 a size where it is no longer needed it's not displayed anymore
14740 2004-11-05 13:16 jackson
14742 * TabControl.cs: Make tab pages non visible when added to the
14745 2004-11-05 12:42 jackson
14747 * TabControl.cs: Implement SizeMode.FillToRight
14749 2004-11-05 12:16 jackson
14751 * Control.cs: Do not call CreateHandle if the handle is already
14754 2004-11-05 11:46 jackson
14756 * TabControl.cs: Remove superflous call to CalcTabRows
14758 2004-11-05 09:07 jackson
14760 * XplatUIX11.cs: Update for Mono.Posix changes
14762 2004-11-05 07:00 ravindra
14764 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14767 2004-11-04 22:47 jba
14769 * ThemeWin32Classic.cs:
14770 - Fix Button rendering for FlatStyle = Flat or Popup
14771 - Fix RadioButton and CheckBox rendering when Appearance = Button
14772 (normal and flatstyle).
14773 - Correct outer rectangle color when drawing focus rectangle
14774 - Adjust button bounds to be 1 px smaller when focused
14775 - Make button not draw sunken 3d border when pushed (windows compat)
14776 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14777 - Offset the text in RadioButton and Checkbox when being rendered as
14779 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14781 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14782 - Fixed disabled text rendering for normally rendered radiobuttons
14784 2004-11-04 10:26 jackson
14786 * TabControl.cs: Recalculate tab rows when resizing
14788 2004-11-04 07:47 jordi
14790 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14791 collection completion, drawing issues, missing features
14793 2004-11-04 05:03 ravindra
14796 - We need to recalculate the Thumb area when
14797 LargeChange/maximum/minimum values are changed.
14798 - We set the 'pos' in UpdatePos() method to minimum, if it's less
14799 than minimum. This is required to handle the case if large_change is
14800 more than max, and use LargeChange property instead of large_change
14802 - We return max+1 when large_change is more than max, like MS does.
14804 2004-11-04 04:29 ravindra
14806 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14807 - Changed default value signatures (prefixed all with ListView).
14808 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14810 - Fixed calculations for ListViewItem and implemented Clone()
14813 2004-11-04 04:26 ravindra
14815 * Theme.cs, ThemeWin32Classic.cs:
14816 - Changed default ListView values signatures (prefixed all with
14818 - Fixed default size values for VScrollBar and HScrollBar.
14819 - Fixed DrawListViewItem method.
14821 2004-11-04 04:05 ravindra
14823 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14825 2004-11-04 04:04 ravindra
14827 * ImageList.cs: Implemented the missing overload for Draw method.
14829 2004-11-03 19:29 jackson
14831 * TabControl.cs: Handle dropping rows on selection properly
14833 2004-11-03 11:59 jackson
14835 * TabControl.cs: remove debug code
14837 2004-11-03 11:52 jackson
14839 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14840 the scrolly widgerywoo
14842 2004-11-02 13:52 jackson
14844 * TabControl.cs: Resize the tab pages and tabs when the tab control
14847 2004-11-02 13:40 jackson
14849 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14850 selected tab to the bottom
14852 2004-11-02 13:39 jackson
14854 * TabPage.cs: Store the tab pages row
14856 2004-11-02 12:33 jordi
14858 * MenuItem.cs: fixes handle creation
14860 2004-11-02 11:42 jackson
14862 * TabControl.cs: signature fix
14864 2004-11-02 08:56 jackson
14866 * TabControl.cs: Calculate whether the tab is on an edge properly.
14867 Remove top secret debugging code
14869 2004-11-01 19:57 jackson
14871 * TabControl.cs: Add click handling, and proper sizing
14873 2004-11-01 19:47 jackson
14875 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14878 2004-11-01 19:39 jackson
14880 * TabPage.cs: add internal property to store the bounds of a tab
14883 2004-10-30 04:23 ravindra
14885 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14888 2004-10-30 04:21 ravindra
14890 * ListView.cs, ListViewItem.cs: Added support for scrolling and
14891 fixed calculations.
14893 2004-10-30 03:06 pbartok
14896 - Removed extension of DllImported libs
14898 2004-10-29 09:55 jordi
14900 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14901 navigation, itemcollection completion, menu fixes
14903 2004-10-27 22:58 pbartok
14906 - Now throws a nice error message when no X display could be opened
14908 2004-10-26 13:51 jordi
14910 * ListView.cs: removes warning
14912 2004-10-26 03:55 ravindra
14914 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14915 ThemeWin32Classic.cs: Some formatting for my last checkins.
14917 2004-10-26 03:36 ravindra
14919 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14920 control and default values.
14922 2004-10-26 03:35 ravindra
14924 * Theme.cs: Added some default values for ListView control.
14926 2004-10-26 03:33 ravindra
14928 * ToolBar.cs: ToolBar should use the user specified button size, if
14929 there is any. Added a size_specified flag for the same.
14931 2004-10-26 03:33 ravindra
14933 * ColumnHeader.cs: Added some internal members and calculations for
14936 2004-10-26 03:32 ravindra
14938 * ListViewItem.cs: Calculations for ListViewItem.
14940 2004-10-26 03:31 ravindra
14942 * ListView.cs: Added some internal members and calculations for
14945 2004-10-22 13:31 jordi
14947 * MenuAPI.cs: speedup menus drawing
14949 2004-10-22 13:16 jackson
14951 * XplatUIX11.cs: Make sure to update exposed regions when adding an
14954 2004-10-22 11:49 jackson
14958 2004-10-22 11:41 jackson
14960 * Control.cs: Check to see if the window should have its background
14961 repainted by X when drawing.
14963 2004-10-22 11:31 jackson
14965 * XplatUIX11.cs: When invalidating areas only use XClearArea if
14966 clear is true, this way we do not get flicker from X repainting the
14969 2004-10-22 11:28 jackson
14971 * XEventQueue.cs: Queue properly
14973 2004-10-21 09:38 jackson
14975 * XEventQueue.cs: Fix access modifier
14977 2004-10-21 09:36 jackson
14979 * XEventQueue.cs: Don't loose messages
14981 2004-10-21 09:22 jackson
14983 * XEventQueue.cs: Don't loose messages
14985 2004-10-20 04:15 jordi
14987 * BootMode.cs: enum need it by SystemInfo
14989 2004-10-19 21:58 pbartok
14992 - Small sanity check
14994 2004-10-19 21:56 pbartok
14997 - Added private FormParentWindow class which acts as the container
14998 for our form and as the non-client area where menus are drawn
14999 - Added/Moved required tie-ins to Jordi's menus
15000 - Fixed/Implemented the FormStartPosition functionality
15002 2004-10-19 21:52 pbartok
15005 - Removed unneeded locals
15006 - Added code to all size and location properties to understand and
15007 deal with the parent container of Form
15009 2004-10-19 21:33 pbartok
15012 - Fixed to deal with new Form subclasses for menus
15014 2004-10-19 17:48 jackson
15016 * XEventQueue.cs: commit correct version of file
15018 2004-10-19 16:50 jackson
15020 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15022 2004-10-19 16:15 jordi
15024 * MenuAPI.cs: MenuBarCalcSize returns the height
15026 2004-10-19 08:31 pbartok
15029 - Added missing call to PreProcessMessage before calling OnXXXKey
15032 2004-10-19 00:04 ravindra
15034 * ToolTip.cs: Fixed constructor.
15036 2004-10-18 09:31 jordi
15038 * MenuAPI.cs: menuitems in menubars do not have shortcuts
15040 2004-10-18 09:26 jordi
15042 * MenuItem.cs: fixes MenuItem class signature
15044 2004-10-18 08:56 jordi
15046 * MenuAPI.cs: prevents windows from showing in the taskbar
15048 2004-10-18 00:28 ravindra
15050 * ToolTip.cs: Suppressed a warning message.
15052 2004-10-18 00:27 ravindra
15054 * Control.cs: Default value of visible property must be true.
15056 2004-10-17 23:19 pbartok
15059 - Complete implementation
15061 2004-10-17 23:19 pbartok
15064 - Added EnableWindow method
15065 - Added SetModal stub
15066 - Added generation of WM_ACTIVATE message (still needs testing)
15067 - Added SetTopMost stub
15068 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
15070 2004-10-17 23:17 pbartok
15073 - Removed VirtualKeys to XplatUIStructs
15074 - Implemented SetTopMost method
15075 - Implemented EnableWindow method
15076 - Bugfix in ScreenToClient()
15077 - Bugfixes in ClientToScreen()
15079 2004-10-17 22:51 pbartok
15081 * XplatUIStructs.cs:
15082 - Added WS_EX styles to WindowStyles enumeration
15084 2004-10-17 22:50 pbartok
15086 * XplatUI.cs, XplatUIDriver.cs:
15087 - Added method for enabling/disabling windows
15088 - Added method for setting window modality
15089 - Added method for setting topmost window
15091 2004-10-17 22:49 pbartok
15093 * ThemeWin32Classic.cs:
15094 - Added ToolTip drawing code
15096 2004-10-17 22:49 pbartok
15099 - Added ToolTip abstracts
15101 2004-10-17 22:47 pbartok
15104 - Fixed Form.ControlCollection to handle owner relations
15105 - Added Owner/OwnedForms handling
15106 - Implemented Z-Ordering for owned forms
15107 - Removed unneeded private overload of ShowDialog
15108 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
15110 - Fixed Close(), had wrong default
15111 - Added firing of OnLoad event
15112 - Added some commented out debug code for Ownership handling
15114 2004-10-17 22:16 pbartok
15117 - Fixed/implemented flat list of controls
15119 2004-10-17 22:14 pbartok
15122 - Added code to simulate modal dialogs on Win32
15124 2004-10-17 16:11 jordi
15126 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
15129 2004-10-17 13:39 jordi
15131 * MenuAPI.cs: menu drawing fixes
15133 2004-10-15 09:10 ravindra
15135 * StructFormat.cs: General Enum.
15137 2004-10-15 09:09 ravindra
15139 * SizeGripStyle.cs: Enum for Form.
15141 2004-10-15 09:08 ravindra
15143 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
15144 in Theme for ListView.
15146 2004-10-15 09:06 ravindra
15148 * ColumnHeader.cs: Flushing some formatting changes.
15150 2004-10-15 09:05 ravindra
15152 * ListViewItem.cs: Implemented GetBounds method and fixed coding
15155 2004-10-15 09:03 ravindra
15157 * ListView.cs: Implemented Paint method and fixed coding style.
15159 2004-10-15 07:34 jordi
15161 * MenuAPI.cs: fix for X11
15163 2004-10-15 07:32 ravindra
15165 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
15166 - Renamed Paint() method to Draw() for clarity. Also, moved
15167 DrawImage() to OnPaint().
15169 2004-10-15 07:25 ravindra
15171 * CheckBox.cs, RadioButton.cs:
15172 - Removed Redraw (), we get it from ButtonBase.
15173 - Implemented Paint (), to do class specific painting.
15175 2004-10-15 07:16 ravindra
15178 - Redraw () is not virtual now.
15179 - Added an internal virtual method Paint (), so that
15180 derived classes can do their painting on their own.
15181 - Modified OnPaint () to call Paint ().
15183 2004-10-15 06:43 jordi
15185 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
15186 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
15188 2004-10-15 00:30 ravindra
15191 - MessageBox on windows does not have min/max buttons.
15192 This change in CreateParams fixes this on Windows. We
15193 still need to implement this windowstyle behavior in
15196 2004-10-14 05:14 ravindra
15199 - Changed Redraw () to do a Refresh () always.
15200 - Fixed the MouseMove event handling when mouse is pressed,
15201 ie drag event handling.
15202 - Replaced the usage of ToolBarButton.Pressed property to
15203 ToolBarButton.pressed internal variable.
15205 2004-10-14 05:10 ravindra
15207 * ToolBarButton.cs:
15208 - Added an internal member 'inside' to handle mouse move
15209 with mouse pressed ie mouse drag event.
15210 - Changed 'Pressed' property to return true only when
15211 'inside' and 'pressed' are both true.
15212 - Some coding style love.
15214 2004-10-14 00:17 ravindra
15216 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
15219 2004-10-14 00:15 ravindra
15221 * ButtonBase.cs: Redraw () related improvements.
15223 2004-10-14 00:14 ravindra
15225 * MessageBox.cs: Moved InitFormSize () out of Paint method and
15226 removed unnecessary calls to Button.Show () method.
15228 2004-10-13 17:50 pbartok
15232 - Removed destroying of window until we solve the problem of X
15233 destroying the window before us on shutdown
15235 2004-10-13 16:32 pbartok
15238 - Now Redraws on MouseUp for FlatStyle Flat and Popup
15240 2004-10-13 14:18 pbartok
15243 - Added code to destroy the X window
15245 2004-10-13 14:18 pbartok
15248 - Added code to destroy a window
15250 2004-10-13 14:12 pbartok
15253 - Added the Redraw on Resize that got dropped in the last rev
15255 2004-10-13 09:06 pbartok
15257 * ThemeWin32Classic.cs:
15258 - Path from John BouAntoun:
15259 * Fix check rendering (centre correctly for normal style, offset
15260 correctly for FlatStyle).
15261 * Fix border color usage (use backcolor) for FlatStyle.Popup
15262 * Use checkbox.Capture instead of checkbox.is_pressed when
15263 rendering flatstyle states.
15265 2004-10-12 21:48 pbartok
15267 * ThemeWin32Classic.cs:
15268 - Removed all occurences of SystemColors and replaced them with the
15269 matching theme color
15271 2004-10-12 21:41 pbartok
15273 * ThemeWin32Classic.cs:
15274 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15275 him using the function for flatstyle drawing
15276 - Changed functions to use the new version of CPDrawBorder3D
15278 2004-10-12 21:15 pbartok
15281 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15282 match MS documentation. They need to return defined colors if the
15283 passed color matches the configured control color. Thanks to John
15284 BouAntoun for pointing this out.
15286 2004-10-12 20:57 pbartok
15289 - Fix from John BouAntoun: Raise ForeColorChanged event when text
15292 2004-10-12 20:46 pbartok
15295 - Fix from John BouAntoun: Now properly sets the Appearance property
15297 2004-10-12 20:45 pbartok
15299 * ThemeWin32Classic.cs:
15300 - Fixes from John BouAntoun: now handles forecolors and backcolors
15301 for flatstyle rendered controls much better; It also fixes normal
15302 checkbox rendering when pushed or disabled.
15304 2004-10-08 02:50 jordi
15306 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15309 2004-10-07 08:56 jordi
15311 * ThemeWin32Classic.cs: Removes deletion of cached brushes
15313 2004-10-06 03:59 jordi
15315 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
15316 XplatUIWin32.cs: removes warnings from compilation
15318 2004-10-05 12:23 jackson
15320 * RadioButton.cs: Fix ctor
15322 2004-10-05 11:10 pbartok
15325 - Partial implementation by Benjamin Dasnois
15327 2004-10-05 10:15 jackson
15329 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
15332 2004-10-05 03:07 ravindra
15335 - Removed a private method, Draw ().
15336 - Fixed the ButtonDropDown event handling.
15337 - Fixed MouseMove event handling.
15339 2004-10-05 03:04 ravindra
15341 * ThemeWin32Classic.cs:
15342 - Added DrawListView method and ListViewDefaultSize property.
15343 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
15344 - Changed DOS style CRLF to Unix format (dos2unix).
15346 2004-10-05 03:03 ravindra
15349 - Added DrawListView method and ListViewDefaultSize property.
15351 2004-10-05 02:42 ravindra
15353 * ToolBarButton.cs: Added an internal member dd_pressed to handle
15354 clicks on DropDown arrow.
15356 2004-10-04 22:56 jackson
15358 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
15359 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
15360 Control handle the buffers, derived classes should not have to
15361 CreateBuffers themselves.
15363 2004-10-04 21:20 jackson
15365 * StatusBar.cs: The control handles resizing the buffers now.
15367 2004-10-04 21:18 jackson
15369 * Control.cs: When resizing the buffers should be invalidated. This
15370 should be handled in Control not in derived classes.
15372 2004-10-04 14:45 jackson
15376 2004-10-04 02:14 pbartok
15378 * LeftRightAlignment.cs:
15381 2004-10-04 01:09 jordi
15383 * ThemeWin32Classic.cs: fixes right button position causing right
15384 button not showing on horizontal scrollbars
15386 2004-10-02 13:12 pbartok
15389 - Simplified the Invalidate method by using an X call instead of
15390 generating the expose ourselves
15391 - Added an expose when the window background is changed
15392 - Implemented ClientToScreen method
15394 2004-10-02 13:08 pbartok
15397 - Added Win32EnableWindow method (test for implementing modal
15399 - Added ClientToScreen method and imports
15401 2004-10-02 13:07 pbartok
15403 * XplatUI.cs, XplatUIDriver.cs:
15404 - Added ClientToScreen coordinate translation method
15406 2004-10-02 13:06 pbartok
15408 * KeyPressEventArgs.cs:
15409 - Fixed access level for constructor
15411 2004-10-02 13:06 pbartok
15414 - Changed access level for the window_collection hash table
15416 2004-10-02 13:05 pbartok
15419 - Added KeyPreview property
15420 - Added Menu property (still incomplete, pending Jordi's menu work)
15421 - Implemented ProcessCmdKey
15422 - Implemented ProcessDialogKey
15423 - Implemented ProcessKeyPreview
15425 2004-10-02 13:02 pbartok
15428 - Added private method to get the Control object from the window
15430 - Implemented ContextMenu property
15431 - Implemented PointToScreen
15432 - Implemented PreProcessMessage
15433 - Implemented IsInputChar
15434 - Implemented IsInputKey
15435 - Implemented ProcessCmdKey
15436 - Completed ProcessKeyEventArgs
15437 - Fixed message loop to call the proper chain of functions on key
15439 - Implemented ProcessDialogChar
15440 - Implemented ProcessDialogKey
15441 - Implemented ProcessKeyMessage
15442 - Implemented ProcessKeyPreview
15443 - Added RaiseDragEvent stub (MS internal method)
15444 - Added RaiseKeyEvent stub (MS internal method)
15445 - Added RaiseMouseEvent stub (MS Internal method)
15446 - Added RaisePaintEvent stub (MS Internal method)
15447 - Added ResetMouseEventArgs stub (MS Internal method)
15448 - Implemented RtlTranslateAlignment
15449 - Implemented RtlTranslateContent
15450 - Implemented RtlTranslateHorizontal
15451 - Implemented RtlTranslateLeftRight
15452 - Added generation of KeyPress event
15454 2004-10-02 05:57 ravindra
15456 * ListViewItem.cs: Added attributes.
15458 2004-10-02 05:32 ravindra
15460 * ListView.cs: Added attributes.
15462 2004-10-01 11:53 jackson
15464 * Form.cs: Implement the Close method so work on MessageBox can
15467 2004-09-30 14:06 pbartok
15472 2004-09-30 11:34 jackson
15474 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
15476 2004-09-30 07:26 ravindra
15478 * ListViewItemConverter.cs: Converter for ListViewItem.
15480 2004-09-30 07:26 ravindra
15482 * SortOrder.cs: Enum for ListView control.
15484 2004-09-30 07:25 ravindra
15486 * ColumnHeader.cs: Supporting class for ListView control.
15488 2004-09-30 07:24 ravindra
15490 * ListView.cs, ListViewItem.cs: Initial implementation.
15492 2004-09-30 07:20 ravindra
15494 * ItemActivation.cs: Enum for ListView Control.
15496 2004-09-29 20:29 pbartok
15499 - Added lookup of pixel value for background color; tries to get a
15500 color 'close' to the requested color, it avoids having to create a
15501 colormap. Depending on the display this could mean the used color
15502 is slightly off the desired color. Might have to change it to a more
15503 resource intensive colormap approach, but it will work as a
15504 workaround to avoid red screens.
15506 2004-09-29 14:27 jackson
15508 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
15510 2004-09-28 12:44 pbartok
15512 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
15513 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
15514 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
15515 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
15516 TrackBar.cs, VScrollBar.cs:
15517 - Streamlined Theme interfaces:
15518 * Each DrawXXX method for a control now is passed the object for
15519 the control to be drawn in order to allow accessing any state the
15520 theme might require
15522 * ControlPaint methods for the theme now have a CP prefix to avoid
15523 name clashes with the Draw methods for controls
15525 * Every control now retrieves it's DefaultSize from the current
15528 2004-09-28 12:17 jackson
15530 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15533 2004-09-24 14:57 jackson
15535 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15536 Gives us a nice little performance boost.
15538 2004-09-24 12:02 jackson
15540 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15541 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15542 Control and supporting classes. Initial checkin
15544 2004-09-23 13:08 jackson
15546 * Form.cs: Temp build fixage
15548 2004-09-23 01:39 ravindra
15550 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15551 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15552 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15553 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15554 EventHandlers needed by ListView Control.
15556 2004-09-22 14:12 pbartok
15558 * ScrollableControl.cs:
15559 - Implemented DockPadding property
15560 - Implemented AutoScroll property
15561 - Implemented AutoScrollMargin property
15562 - Implemented AutoScrollMinSize property
15563 - Implemented AutoScrollPosition property
15564 - Implemented DisplayRectangle property (still incomplete)
15565 - Implemented CreateParams property
15566 - Implemented HScroll property
15567 - Implemented VScroll property
15568 - Implemented OnVisibleChanged property
15570 2004-09-22 14:09 pbartok
15573 - Added Form.ControllCollection class
15574 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15575 RemoveOwnedForm (still incomplete, missing on-top and common
15576 minimize/maximize behaviour)
15577 - Added StartPosition property (still incomplete, does not use when
15579 - Added ShowDialog() methods (still incomplete, missing forcing the
15582 2004-09-22 14:05 pbartok
15585 - Added message loop for modal dialogs
15587 2004-09-22 14:02 pbartok
15590 - Fixed wrong types for events
15592 2004-09-22 14:00 pbartok
15594 * Shortcut.cs, FormWindowState.cs:
15595 - Fixed wrong values
15597 2004-09-22 12:01 jackson
15599 * Control.cs: Text is never null
15601 2004-09-20 22:14 pbartok
15604 - Fixed accessibility level for Idle handler
15606 2004-09-20 18:54 jackson
15608 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15609 XplatUIX11.cs: New message loop that uses poll so we don't get a
15612 2004-09-17 10:43 pbartok
15615 - Fixed behaviour of arrow buttons. Now properly behaves like
15616 Buttons (and like Microsoft's scrollbar arrow buttons)
15618 2004-09-17 10:14 pbartok
15621 - Added missing release of keyboard/mouse capture
15623 2004-09-17 06:18 jordi
15625 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15626 Theme.cs: Very early menu support
15628 2004-09-16 17:45 pbartok
15631 - Fixed sending a window to the front
15632 - Added overload for SetWindowPos to avoid casting
15634 2004-09-16 17:44 pbartok
15637 - Added SendToBack and BringToFront methods
15639 2004-09-16 07:00 ravindra
15641 * Copyright: Added Novell URL.
15643 2004-09-16 07:00 ravindra
15645 * ToolBar.cs: Invalidate should be done before redrawing.
15647 2004-09-15 21:19 ravindra
15649 * ColumnHeaderStyle.cs: Enum for ListView Control.
15651 2004-09-15 21:18 ravindra
15653 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15656 2004-09-13 18:26 jackson
15658 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15661 2004-09-13 18:13 jackson
15663 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15664 a second thread and post messages into the main threads message
15665 queue. This makes timing much more consistent. Both win2K and XP
15666 have a minimum timer value of 15 milliseconds, so we now do this
15669 2004-09-13 15:18 pbartok
15671 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15673 - Added Z-Ordering methods
15675 2004-09-13 10:56 pbartok
15678 - Fixed #region names
15679 - Moved properties and methods into their proper #regions
15681 2004-09-13 10:51 pbartok
15684 - Added Accept and CancelButton properties
15685 - Added ProcessDialogKey() method
15687 2004-09-13 08:18 pbartok
15689 * IWindowTarget.cs:
15692 2004-09-10 21:50 pbartok
15695 - Added DoDragDrop() [incomplete]
15696 - Properly implemented 'Visible' handling
15697 - Added SetVisibleCore()
15698 - Implemented FindChildAtPoint()
15699 - Implemented GetContainerControl()
15700 - Implemented Hide()
15702 2004-09-10 19:28 pbartok
15705 - Moved methods into their appropriate #regions
15706 - Reordered methods within regions alphabetically
15708 2004-09-10 18:57 pbartok
15710 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15711 - Added method to retrieve text from window
15713 2004-09-10 18:56 pbartok
15716 - Moved some internal functions into the internal region
15717 - Implemented FontHeight
15718 - Implemented RenderRightToLeft
15719 - Implemented ResizeRedraw
15720 - Implemented ShowFocusCues
15721 - Implemented ShowKeyboardCues
15722 - Implemented FromChildHandle
15723 - Implemented FromHandle
15724 - Implemented IsMnemonic
15725 - Implemented ReflectMessage
15726 - All public and protected Static Methods are now complete
15728 2004-09-10 16:54 pbartok
15731 - Implemented remaining missing public instance properties
15732 - Alphabetized some out of order properties
15734 2004-09-10 05:51 ravindra
15736 * PictureBox.cs: Added a check for null image.
15738 2004-09-10 00:59 jordi
15740 * GroupBox.cs: remove cvs tag
15742 2004-09-09 05:25 ravindra
15744 * ToolBar.cs: Make redraw accessible from ToolBarButton.
15746 2004-09-09 05:23 ravindra
15748 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15751 2004-09-09 02:28 pbartok
15753 * ThemeWin32Classic.cs:
15754 - Improve disabled string look
15756 2004-09-09 01:15 jordi
15758 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15761 2004-09-08 23:56 ravindra
15763 * ItemBoundsPortion.cs: It's enum, not a class!
15765 2004-09-08 23:47 ravindra
15767 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15770 2004-09-08 21:13 ravindra
15772 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15775 2004-09-08 21:03 ravindra
15777 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15780 2004-09-08 21:01 ravindra
15782 * ScrollableControl.cs: Removed unreachable code.
15784 2004-09-08 06:45 jordi
15786 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15788 2004-09-08 01:00 jackson
15790 * XplatUIX11.cs: Only run the timers when updating the message
15791 queue. This effectively gives X messages a higher priority then
15792 timer messages. Timers still need love though
15794 2004-09-07 14:01 jackson
15796 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15797 this for us and the handle is no longer valid.
15799 2004-09-07 13:59 jackson
15801 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15802 loop that manages to not crash. TODO: Add poll and cleanup timers
15804 2004-09-07 11:12 jordi
15806 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15808 2004-09-07 03:40 jordi
15810 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15811 fixes, methods, multiple links
15813 2004-09-06 06:55 jordi
15815 * Control.cs: Caches ClientRectangle rectangle value
15817 2004-09-05 02:03 jordi
15819 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15822 2004-09-04 11:10 jordi
15824 * Label.cs: Refresh when font changed
15826 2004-09-02 16:24 pbartok
15829 - Added sanity check to creation of double buffer bitmap
15831 2004-09-02 16:24 pbartok
15834 - Fixed selection of text color
15835 - Fixed handling of resize event; now properly recreates double
15837 - Added missing assignment of TextAlignment
15838 - Added proper default for TextAlignment
15840 2004-09-02 14:26 pbartok
15843 - Added missing RadioButton.RadioButtonAccessibleObject class
15845 2004-09-02 14:26 pbartok
15848 - Added missing Control.ControlAccessibleObject class
15849 - Started to implement Select()ion mechanisms, still very incomplete
15851 2004-09-02 14:25 pbartok
15853 * AccessibleObject.cs:
15854 - Added missing methods
15856 2004-09-02 14:23 pbartok
15858 * AccessibleNavigation.cs, AccessibleSelection.cs:
15861 2004-09-02 10:32 jordi
15863 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15864 pool for pens, brushes, and hatchbruses
15866 2004-09-01 15:30 jackson
15868 * StatusBar.cs: Fix typo
15870 2004-09-01 14:44 pbartok
15875 2004-09-01 14:39 pbartok
15877 * Button.cs, RadioButton.cs:
15878 - Functional initial check-in
15880 2004-09-01 14:01 pbartok
15883 - Added missing default
15884 - Added missing region mark
15886 2004-09-01 09:10 jordi
15888 * Label.cs: fixes method signatures, new methods, events, fixes
15891 2004-09-01 07:19 jordi
15893 * Control.cs: Init string variables with an empty object
15895 2004-09-01 04:20 jordi
15897 * Control.cs: fires OnFontChanged event
15899 2004-08-31 20:07 pbartok
15902 - Enabled display of strings
15904 2004-08-31 20:05 pbartok
15907 - Added (partial) implementation of DialogResult; rest needs to be
15908 implemented when the modal loop code is done
15910 2004-08-31 19:55 pbartok
15913 - Fixed to match the removal of the needs_redraw concept
15915 2004-08-31 19:55 pbartok
15918 - Removed the rather odd split between 'needs redraw' and redrawing
15919 - Now handles the events that require regeneration (ambient
15920 properties and size)
15922 2004-08-31 19:41 pbartok
15925 - Added firing of BackColorChanged event
15926 - Added TopLevelControl property
15927 - Fixed handling of WM_ERASEBKGRND message
15929 2004-08-31 12:49 pbartok
15935 2004-08-31 12:48 pbartok
15938 - Finished (famous last words)
15940 2004-08-31 04:35 jordi
15942 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15943 scrolling bugs, adds new methods
15945 2004-08-30 14:42 pbartok
15948 - Implemented CheckBox drawing code
15950 2004-08-30 14:42 pbartok
15953 - Made Redraw() and CheckRedraw() virtual
15954 - Improved mouse up/down/move logic to properly track buttons
15956 2004-08-30 09:44 pbartok
15959 - Updated to fix broken build. Not complete yet.
15961 2004-08-30 09:28 pbartok
15966 2004-08-30 09:17 pbartok
15971 2004-08-27 16:12 ravindra
15973 * ToolBarButton.cs: Added TypeConverter attribute.
15975 2004-08-27 16:07 ravindra
15977 * ImageIndexConverter.cs: Implemented.
15979 2004-08-27 14:17 pbartok
15982 - Removed unneeded stack vars
15983 - First attempt to fix sizing issues when layout is suspended
15985 2004-08-25 15:35 jordi
15987 * ScrollBar.cs: more fixes to scrollbar
15989 2004-08-25 14:04 ravindra
15991 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15992 Added the missing divider code and grip for ToolBar Control.
15994 2004-08-25 13:20 pbartok
15997 - Control now properly passes the ambient background color to child
16000 2004-08-25 13:20 jordi
16002 * ScrollBar.cs: small bug fix regarding bar position
16004 2004-08-25 12:33 pbartok
16007 - Now only calls SetTimer or KillTimer if the enabled state has
16010 2004-08-25 12:33 pbartok
16013 - Fixed timer handling, now seems to work
16014 - Improved error message for window creation
16016 2004-08-25 12:32 pbartok
16019 - Fixed generation of MouseUp message
16021 2004-08-25 12:29 jordi
16023 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16024 and fixes for progressbar
16026 2004-08-24 18:43 ravindra
16028 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16029 in ToolBar control.
16031 2004-08-24 17:15 pbartok
16035 - Added missing events
16038 2004-08-24 17:14 pbartok
16040 * StatusBar.cs, PictureBox.cs:
16041 - Now uses Control's CreateParams
16043 2004-08-24 16:36 pbartok
16046 - Fixed background color handling
16047 - Fixed sending of enter/leave events on a grab
16049 2004-08-24 16:35 pbartok
16052 - Refined definitions for CrossingEvent
16054 2004-08-24 12:37 jordi
16056 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16057 formmating, methods signature, and adds missing events
16059 2004-08-24 12:24 jordi
16061 * Control.cs: fire OnEnabledChanged event
16063 2004-08-24 11:17 pbartok
16066 - Implemented SetTimer() and KillTimer()
16068 2004-08-24 11:16 pbartok
16071 - Now uses Remove instead of Add to kill the timer
16073 2004-08-24 10:16 jackson
16075 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
16076 picture boxes in the theme now. Draw picture box borders and obey
16079 2004-08-24 05:49 jackson
16081 * Timer.cs: Remove top secret debugging code
16083 2004-08-24 05:34 jackson
16085 * PictureBox.cs: Temp hack to make picture boxes draw their full
16088 2004-08-24 05:29 jackson
16090 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16091 XplatUIX11.cs: Move timers to the driver level. On X they are
16092 queued by the driver and checked on idle.
16094 2004-08-24 01:07 jackson
16096 * XplatUIX11.cs: Use a queue for async messages instead of passing
16097 them as ClientMessages since that was totally broken. Also simply
16098 check for events and return an idle message if none are found. This
16099 gives us an idle handler, and prevents deadlocking when no messages
16102 2004-08-23 18:19 ravindra
16104 * XplatUIWin32.cs: Removed the unwanted destructor.
16106 2004-08-23 17:27 pbartok
16109 - Finishing touches. Works now, just needs some optimizations.
16111 2004-08-23 16:53 jordi
16113 * ScrollBar.cs: small fix
16115 2004-08-23 16:45 pbartok
16118 - Removed debug output
16121 2004-08-23 16:43 jordi
16123 * ScrollBar.cs: [no log message]
16125 2004-08-23 16:10 pbartok
16128 - Fixed handling of WM_CLOSE message
16129 - Removed debug output
16131 2004-08-23 16:09 pbartok
16134 - Added handling of Idle event
16135 - Added handling of form closing
16136 - Fixed reporting of MessageLoop property
16137 - Removed some unneeded code, should provide a bit of a speedup
16139 2004-08-23 15:22 pbartok
16142 - Added InitLayout() method
16143 - Added code to properly perform layout when Anchor or Dock property
16145 - Changed 'interpretation' of ResumeLayout. MS seems to have a
16146 LAMESPEC, tried to do it in a way that makes sense
16148 2004-08-23 14:10 jordi
16150 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
16151 properties and methods
16153 2004-08-23 13:55 pbartok
16156 - Properly fixed Jordi's last fix
16157 - Now uses Cursor's Position property instead of calling XplatUI
16160 2004-08-23 13:44 jordi
16162 * PaintEventHandler.cs: Adding missing attribute
16164 2004-08-23 13:39 pbartok
16167 - Implemented Position property
16169 2004-08-23 13:39 pbartok
16171 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16172 - Added method to move mouse cursor
16174 2004-08-23 13:39 pbartok
16177 - Fixed setting of background color
16178 - Added method to move mouse cursor
16180 2004-08-23 13:16 jordi
16182 * Control.cs: avoids null exception
16184 2004-08-22 17:46 jackson
16186 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
16189 2004-08-22 17:40 jackson
16191 * XplatUIX11.cs: Add some missing locks
16193 2004-08-22 15:10 pbartok
16195 * Control.cs, Form.cs:
16196 - Removed OverlappedWindow style from Control, instead it's default
16198 - Made form windows OverlappedWindow by default
16200 2004-08-22 13:34 jackson
16202 * ScrollBar.cs: Update the position through the Value property so
16203 the OnValueChanged event is raised.
16205 2004-08-22 12:04 pbartok
16208 - Added Cursor.cs and UserControl.cs
16210 2004-08-22 12:03 pbartok
16213 - Started implementation, not usable yet
16215 2004-08-22 12:00 pbartok
16218 - Implemented UserControl (complete)
16220 2004-08-21 19:20 ravindra
16222 * ToolBar.cs: Correcting the formatting mess of VS.NET.
16224 2004-08-21 18:49 ravindra
16226 * ToolBar.cs: Probably this completes the missing attributes in
16229 2004-08-21 18:03 ravindra
16231 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
16232 Fixed toolbar control signatures.
16234 2004-08-21 16:32 pbartok
16239 2004-08-21 16:30 pbartok
16244 2004-08-21 16:19 pbartok
16246 * Control.cs, Label.cs:
16249 2004-08-21 15:57 pbartok
16252 - Added loads of debug output for development
16253 - Fixed typo in method name
16255 2004-08-21 15:52 pbartok
16257 * ToolBarButtonClickEventArgs.cs:
16258 - Added missing base class
16260 2004-08-21 14:53 pbartok
16263 - Updated to match new GrabWindow signature
16265 2004-08-21 14:51 pbartok
16267 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16268 - Added method to get default display size
16270 2004-08-21 14:23 pbartok
16272 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16273 - Added method to query current grab state
16274 - Added argument to allow confining a grab to a window
16276 2004-08-21 14:22 pbartok
16279 - Added [Flags] attribute so that modifiers can be used in bitwise
16282 2004-08-21 14:21 pbartok
16284 * TrackBar.cs, ScrollBar.cs:
16285 - Replaced direct XplatUI calls with their Control counterpart
16287 2004-08-21 13:32 pbartok
16290 - Implemented Created property
16292 2004-08-21 13:28 pbartok
16295 - Implemented ContainsFocus
16297 2004-08-21 13:26 pbartok
16300 - Implemented CausesValidation
16302 2004-08-21 13:21 pbartok
16305 - Implemented CanFocus
16306 - Implemented CanSelect
16307 - Implemented Capture
16309 2004-08-21 12:35 pbartok
16312 - Fixed bug with Async message handling
16313 - Implemented getting the ModifierKeys
16315 2004-08-21 12:32 jackson
16317 * AsyncMethodResult.cs: Make sure we have the mutex before we
16318 release it. Fixes BeginInvoke on windows
16320 2004-08-21 11:31 pbartok
16322 * XplatUIWin32.cs, XplatUIX11.cs:
16323 - Drivers now return proper mouse state
16325 2004-08-21 10:54 jackson
16327 * Control.cs: Implement EndInvoke
16329 2004-08-21 10:48 jackson
16331 * Timer.cs: Remove unneeded finalizer
16333 2004-08-20 19:52 ravindra
16335 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
16336 in mouse event handling in the ToolBar control.
16338 2004-08-20 19:50 ravindra
16340 * ImageList.cs: Changed draw method to use the arguments passed in
16343 2004-08-20 18:58 pbartok
16345 * XplatUIStructs.cs:
16346 - Added private message for async communication
16348 2004-08-20 17:38 ravindra
16350 * Control.cs: Made RightToLeft property virtual and removed a
16353 2004-08-20 14:39 jordi
16355 * ThemeGtk.cs: use style_attach
16357 2004-08-20 14:39 pbartok
16360 - Added jackson's Async code from X11 to Win32
16362 2004-08-20 14:09 pbartok
16365 - Added all new files
16367 2004-08-20 14:09 pbartok
16370 - Added call to set window background color
16372 2004-08-20 14:03 pbartok
16374 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16375 - Added method for setting the window background
16377 2004-08-20 14:02 pbartok
16380 - Added method for setting the background color
16381 - Added handling for erasing the window background
16383 2004-08-20 13:45 jordi
16385 * TrackBar.cs: fixes timer, new properties and methods
16387 2004-08-20 13:34 jackson
16389 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
16392 2004-08-20 13:22 jackson
16394 * Timer.cs: Timer Tick events are now handed through Controls Async
16395 mechanism so the callbacks are executed in the same thread as X
16397 2004-08-20 13:19 jackson
16399 * XplatUIDriver.cs: Expose functionality to send async messages
16402 2004-08-20 13:18 jackson
16404 * Control.cs: Implement Begininvoke
16406 2004-08-20 13:14 jackson
16408 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
16409 messages through the driver
16411 2004-08-20 13:12 jackson
16413 * XplatUIX11.cs: Lock before all X operations. Also added Async
16414 method functionality through XSendEvent
16416 2004-08-20 13:11 jackson
16418 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
16419 This will screw up on 64 bit systems)
16421 2004-08-20 13:10 jackson
16423 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
16424 Async messages through X/Win32
16426 2004-08-19 19:39 pbartok
16429 - Updated code to match new HandleData.DeviceContext type
16431 2004-08-19 19:38 pbartok
16434 - Made DeviceContext a generic object to allow usage from various
16436 - Added support for queueing Windows messages
16438 2004-08-19 19:37 pbartok
16441 - Added generation of MouseEnter, MouseLeave and MouseHover events
16442 - Added cleanup on EndPaint
16444 2004-08-19 19:17 pbartok
16447 - Added handling of WM_MOUSEHOVER
16448 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
16451 2004-08-19 18:55 jordi
16453 * ThemeGtk.cs: fixes button order
16455 2004-08-19 18:12 jordi
16457 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
16459 2004-08-19 17:09 pbartok
16462 - Added Right property
16463 - Added RightToLeft property
16465 2004-08-19 16:27 jordi
16467 * ThemeGtk.cs: experimental GTK theme support
16469 2004-08-19 16:26 jordi
16471 * ITheme.cs, Theme.cs: move themes from an interface to a class
16473 2004-08-19 16:25 jordi
16475 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
16478 2004-08-19 16:04 pbartok
16481 - Added colormap basics
16482 - Added a way to re-initialize with a different display handle
16483 - Fixed setting of the window background color
16484 - Added various X11 imports related to colors and colormaps
16486 2004-08-19 15:51 pbartok
16489 - Removed packing hints (Paolo suggested this a while back)
16490 - fixed colormap type
16491 - Added default Atom types
16492 - Added Screen and color structs and enums
16494 2004-08-19 15:39 pbartok
16497 - Added missing Draw() method
16498 - Added missing RecreateHandle event
16500 2004-08-19 15:30 pbartok
16503 - Added handling of WM_CLOSE
16505 2004-08-18 13:16 jordi
16507 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
16510 2004-08-18 09:56 jordi
16512 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
16514 2004-08-17 15:31 ravindra
16516 * SWF.csproj: Updated project.
16518 2004-08-17 15:25 pbartok
16521 - Drawing improvement; don't call UpdateBounds if we are not visible
16522 (or have been minimized)
16524 2004-08-17 15:24 pbartok
16527 - Finished IsVisible
16528 - Added Win32GetWindowPlacement
16530 2004-08-17 15:08 jackson
16532 * Panel.cs: Initial checkin of the Panel
16534 2004-08-17 14:25 pbartok
16537 - Fixed broken handling of default window sizes
16539 2004-08-17 13:29 jackson
16541 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16542 has a large startup time.
16544 2004-08-17 10:25 jackson
16546 * HandleData.cs: union areas properly
16548 2004-08-17 10:12 jackson
16550 * HandleData.cs: union areas properly
16552 2004-08-16 20:00 ravindra
16554 * ToolBar.cs, ToolBarButton.cs: Added attributes.
16556 2004-08-16 18:48 ravindra
16558 * ToolBar.cs: Added attributes.
16560 2004-08-16 17:17 ravindra
16562 * SWF.csproj: Updated project.
16564 2004-08-16 17:16 jackson
16566 * XplatUIX11.cs: Check for more expose events before sending a
16567 WM_PAINT so they can all be grouped together. This makes dragging a
16568 window across another window redraw in a sane way.
16570 2004-08-16 15:47 pbartok
16573 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16574 support OnMouseEnter/Leave()
16575 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16578 2004-08-16 15:46 pbartok
16580 * XplatUIStructs.cs, XplatUIX11.cs:
16581 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16582 OnMouseEnter/Leave()
16584 2004-08-16 15:34 jackson
16586 * XplatUIX11.cs: Group multiple expose events in HandleData, make
16587 sure messages get the message field set to WM_NULL if they are not
16590 2004-08-16 15:24 jackson
16592 * HandleData.cs: HandleData is used for storing message information
16595 2004-08-15 17:23 ravindra
16597 * ColorDepth.cs: Added attribute.
16599 2004-08-15 17:23 ravindra
16601 * SWF.csproj: Updated project for ToolBar Control.
16603 2004-08-15 17:20 ravindra
16605 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16606 control and also dos2unix format.
16608 2004-08-15 17:13 ravindra
16610 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16611 ToolBarButtonClickEventArgs.cs,
16612 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16613 ToolBarTextAlign.cs: First Implementation of ToolBar control.
16615 2004-08-15 15:31 pbartok
16618 - First (mostly) working version
16620 2004-08-13 16:15 pbartok
16623 - Fixed Anchor default
16625 2004-08-13 15:43 pbartok
16628 - Changed GetCursorPos signature
16630 2004-08-13 15:42 pbartok
16632 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16633 - Changed signature for GetCursorPos
16635 2004-08-13 15:25 pbartok
16639 - Fixed resizing/exposure handling
16641 2004-08-13 15:22 jordi
16643 * ThemeWin32Classic.cs: removes redundant code and fixes issues
16646 2004-08-13 14:55 jordi
16648 * TrackBar.cs: change from wndproc to events
16650 2004-08-13 13:00 jordi
16652 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16653 XplatUIX11.cs: implements PointToClient (ScreenToClient)
16655 2004-08-13 12:53 pbartok
16658 - Changed GetWindowPos to also provide client area size
16659 - Fixed broken prototypes for several win32 functions
16661 2004-08-13 12:53 pbartok
16663 * XplatUI.cs, XplatUIDriver.cs:
16664 - Changed GetWindowPos to also provide client area size
16666 2004-08-13 12:52 pbartok
16669 - Added generation of WM_POSCHANGED
16670 - Changed GetWindowPos to also provide client area size
16672 2004-08-13 12:52 pbartok
16675 - Added Dispose() and destructor
16676 - Fixed resizing and bounds calculation
16678 - Added memory savings for invisible windows
16680 2004-08-13 12:46 jordi
16682 * TrackBar.cs: adds timer and grap window
16684 2004-08-13 10:25 jackson
16686 * Timer.cs: SWF Timer
16688 2004-08-12 16:59 pbartok
16690 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16691 - Implemented method to get current mouse position
16693 2004-08-12 14:29 jordi
16695 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16696 enhancement, fix mouse problems, highli thumb, etc
16698 2004-08-12 13:31 pbartok
16701 - Fixed Anchoring bugs
16703 2004-08-12 13:01 jackson
16705 * StatusBar.cs: Don't forget things
16707 2004-08-12 12:54 jackson
16709 * ThemeWin32Classic.cs: Handle owner draw status bars
16711 2004-08-12 12:54 jackson
16713 * StatusBar.cs: Implement missing properties, events, and methods.
16714 Handle mouse clicking
16716 2004-08-12 10:19 jackson
16718 * StatusBarPanelClickEventArgs.cs,
16719 StatusBarPanelClickEventHandler.cs: Classes for handling status
16720 bar panel click events
16722 2004-08-12 10:10 jackson
16724 * Control.cs: Add missing properties
16726 2004-08-12 09:46 pbartok
16728 * BindingsManagerBase.cs:
16729 - Name changed to BindingManagerBase.cs
16731 2004-08-12 09:25 jordi
16733 * ScrollableControl.cs: calls ctrlbase instead of exeception
16735 2004-08-11 16:28 pbartok
16737 * InputLanguageChangingEventArgs.cs:
16738 - Never check in before compiling. Fixes the last check-in
16740 2004-08-11 16:26 pbartok
16742 * InputLanguageChangingEventArgs.cs:
16743 - More signature fixes
16745 2004-08-11 16:20 pbartok
16747 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16748 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16749 ImageListStreamer.cs, InputLanguage.cs,
16750 InputLanguageChangedEventArgs.cs,
16751 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16752 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16753 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16754 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16757 2004-08-11 16:16 pbartok
16761 - Added .Net 1.1 method
16763 2004-08-11 15:25 pbartok
16766 - Fixed BindingManagerBase.cs filename
16768 2004-08-11 15:22 pbartok
16770 * BindingManagerBase.cs:
16771 - Was checked in with wrong filename
16773 2004-08-11 14:50 pbartok
16778 2004-08-11 13:41 jordi
16780 * XplatUIWin32.cs: Fixes ClientRect
16782 2004-08-11 13:19 pbartok
16784 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16786 - We had SetWindowPos and MoveWindow to set window positions and
16787 size, removed MoveWindow. We have GetWindowPos, so it made sense to
16788 keep SetWindowPos as matching counterpart
16789 - Added some X11 sanity checking
16791 2004-08-11 12:59 pbartok
16794 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16795 (It seems that SetBounds is just a front for SetBoundsCore and
16796 SetBoundsCore updates the underlying window system and
16797 UpdateBounds is responsible for updating the variables associated
16798 with the Control and sending the events)
16799 - Major cleanup of Size handling; we now have two sizes, client_size
16800 and bounds. Bounds defines the window with decorations, client_size
16803 2004-08-11 12:55 pbartok
16805 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16806 - Added method to calculate difference between decorated window and
16809 2004-08-11 12:54 pbartok
16812 - Forcing redraw on resize
16814 2004-08-11 11:43 pbartok
16817 - Removed disposing of the actual images when the list is disposed
16819 2004-08-11 09:13 pbartok
16822 - Now properly reparents windows
16824 2004-08-11 08:37 pbartok
16829 2004-08-11 07:47 pbartok
16832 - Rewrote the collection stuff. Might not be as fast now, not
16833 keeping the number of children around and accessible directly, but
16834 it's more straightforward
16836 2004-08-11 07:44 pbartok
16838 * AccessibleObject.cs:
16839 - Fixed to match ControlCollection rewrite
16841 2004-08-11 07:43 pbartok
16844 - Added missing creation of the collection list
16846 2004-08-10 20:08 jackson
16848 * StatusBar.cs: Get the paint message from WndProc
16850 2004-08-10 19:31 jackson
16852 * ThemeWin32Classic.cs: Create Brushes as little as possible
16854 2004-08-10 19:20 jackson
16856 * UICues.cs: Add Flags attribute
16858 2004-08-10 19:19 jackson
16860 * StatusBarPanel.cs: Signature cleanup
16862 2004-08-10 19:10 jackson
16864 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16865 Initial implementation of status bar item drawing
16867 2004-08-10 17:27 jordi
16869 * TrackBar.cs: add missing methods, properties, and restructure to
16872 2004-08-10 16:24 jackson
16874 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16875 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16878 2004-08-10 13:21 jordi
16880 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16881 enhancements and standarize on win colors defaults
16883 2004-08-10 12:52 jackson
16885 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16886 ThemeWin32Classic.cs: Implement DrawItem functionality
16888 2004-08-10 12:47 jordi
16890 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16892 2004-08-10 12:32 jordi
16894 * Control.cs: throw ontextchange event
16896 2004-08-10 11:43 pbartok
16899 - Added more to the still unfinished Dock/Anchor layout code
16901 2004-08-10 11:39 pbartok
16903 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16904 - Added GetWindowPos method
16906 2004-08-10 11:36 pbartok
16909 - Implemented several methods
16911 2004-08-10 09:47 jackson
16913 * TrackBar.cs: Allow control to handle buffering
16915 2004-08-10 09:41 jackson
16917 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16919 2004-08-10 09:24 jackson
16921 * Label.cs, LinkLabel.cs: Let Control handle buffering.
16923 2004-08-10 09:09 jackson
16925 * StatusBar.cs: Let Control handle all the buffering.
16927 2004-08-10 09:08 jackson
16929 * Control.cs: Control will now handle the buffering code, so each
16930 control does not have to implement this.
16932 2004-08-10 08:34 jackson
16934 * XplatUIDriver.cs: Use default colors from the theme
16936 2004-08-09 17:12 pbartok
16939 - Fixed several bugs Ravindra pointed out
16941 2004-08-09 16:11 pbartok
16944 - Added incomplete dock layout code
16945 - Added support for mouse wheel
16947 2004-08-09 16:09 pbartok
16950 - Added handling for middle and right mousebutton
16951 - Added handling for mouse wheel
16952 - Added handling for key state and mouse state and position
16953 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16956 2004-08-09 15:40 jackson
16958 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16959 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16962 2004-08-09 15:37 jackson
16964 * StatusBar.cs: Initial implementation of StatusBar
16966 2004-08-09 15:36 jackson
16968 * ITheme.cs: Add support for drawing status bar and getting status
16971 2004-08-09 15:35 pbartok
16976 2004-08-09 15:34 jackson
16978 * ThemeWin32Classic.cs: Add support for drawing status bar and get
16979 status bar item sizes
16981 2004-08-09 15:21 jackson
16983 * ThemeWin32Classic.cs: Use known colors for default control
16986 2004-08-09 15:12 jackson
16988 * ThemeWin32Classic.cs: Make the default font static, it is static
16989 in control so this doesn't change functionality and creating fonts
16992 2004-08-09 14:56 pbartok
16995 - Added GrabMode enum
16997 2004-08-09 14:55 pbartok
16999 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17000 - Removed Run method, was only required for initial development
17002 2004-08-09 14:51 pbartok
17004 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17005 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17008 2004-08-09 13:48 pbartok
17011 - Fixed default sizing for child windows
17013 2004-08-09 12:56 pbartok
17016 - Added generation of WM_DESTROY message
17017 - Added handling of window manager induced shutdown
17019 2004-08-09 11:31 jackson
17021 * ThemeWin32Classic.cs: New names for control properties
17023 2004-08-09 11:25 jackson
17025 * Control.cs: Use new color names
17027 2004-08-09 11:02 jackson
17029 * XplatUI.cs: Get default window properties from the theme
17031 2004-08-09 11:01 jackson
17033 * ITheme.cs: The theme engine now controls default window
17036 2004-08-09 11:00 jackson
17038 * ThemeWin32Classic.cs: Add default window color properties
17040 2004-08-09 10:17 jackson
17042 * ThemeWin32Classic.cs: Use correct default back color
17044 2004-08-09 10:05 jackson
17046 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17049 2004-08-09 09:56 jackson
17051 * XplatUI.cs: Remove defaults, these are handled by the theme now.
17053 2004-08-09 09:54 jackson
17055 * Control.cs: Get default properties from the theme.
17057 2004-08-09 09:53 jackson
17059 * ITheme.cs: Themes now handle default control properties
17061 2004-08-09 09:53 jackson
17063 * ThemeWin32Classic.cs: Themes now handle default control
17064 properties so coloring will be consistent
17066 2004-08-08 16:54 jordi
17068 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
17070 2004-08-08 15:08 jordi
17072 * XplatUIX11.cs: fixes keyboard crash
17074 2004-08-08 13:47 jordi
17076 * Label.cs: add cvs header info
17078 2004-08-08 12:09 jackson
17080 * ThemeWin32Classic.cs: Add pen_buttonface
17082 2004-08-08 11:52 jordi
17084 * Label.cs, LinkLabel.cs: [no log message]
17086 2004-08-08 11:34 jordi
17088 * ThemeWin32Classic.cs: Use Windows Standard Colours
17090 2004-08-07 17:32 jordi
17092 * TrackBar.cs: throw exceptions of invalid enums values
17094 2004-08-07 17:31 jordi
17096 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
17099 2004-08-07 16:56 jackson
17101 * HorizontalAlignment.cs: Initial checkin
17103 2004-08-07 13:16 jordi
17105 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
17108 2004-08-07 13:05 jordi
17110 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
17111 GetSysColor defines
17113 2004-08-06 18:01 pbartok
17115 * ThemeWin32Classic.cs:
17116 - Fixed some rounding issues with float/int
17118 2004-08-06 18:00 jackson
17120 * DockStyle.cs, AnchorStyles.cs:
17122 Add flags and serializable attributes.
17124 2004-08-06 17:46 pbartok
17127 - Implemented GetParent
17129 2004-08-06 17:18 pbartok
17132 - Fixed some rounding issues with float/int
17134 2004-08-06 17:17 pbartok
17136 * X11Structs.cs, XplatUIX11.cs:
17137 - Fixed Refresh and Invalidate
17139 2004-08-06 15:30 pbartok
17141 * Control.cs, X11Structs.cs, XplatUIX11.cs:
17142 - Fixed recursive loop when resizing
17143 - Improved/fixed redrawing on expose messages
17145 2004-08-06 09:53 jordi
17147 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
17148 keyboard navigation
17150 2004-08-06 08:02 pbartok
17152 * X11Structs.cs, XplatUIX11.cs:
17153 - Fixed reparenting
17154 - Fixed window border creation
17156 2004-08-05 15:38 pbartok
17159 - Attempted fix for reparenting problems
17161 2004-08-04 15:14 pbartok
17164 - Fixed Invalidation bug (calculated wrong client area)
17165 - Added ClientSize setter
17167 2004-08-04 15:13 pbartok
17170 - Added AutoScale properties
17172 2004-08-04 15:13 pbartok
17175 - Added latest files
17177 2004-08-04 14:11 pbartok
17179 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17181 - Added Invalidate handling
17183 2004-08-03 17:09 jordi
17185 * XplatUIDriver.cs: fixes spelling mistake
17187 2004-07-27 09:53 jordi
17189 * TrackBar.cs: fixes trackbar events, def classname, methods
17192 2004-07-27 09:29 jordi
17194 * ScrollBar.cs: fixes scrollbar events
17196 2004-07-27 04:38 jordi
17198 * Control.cs: changes to be able to run winforms samples
17200 2004-07-26 11:42 jordi
17202 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
17203 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
17205 2004-07-26 05:41 jordi
17207 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
17208 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
17211 2004-07-22 09:22 jordi
17213 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
17214 check link overlapping, implement events, and fixes
17216 2004-07-21 10:28 jordi
17218 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
17220 2004-07-21 10:19 jordi
17222 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
17223 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
17224 LinkLabelLinkClickedEventArgs.cs,
17225 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
17226 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
17229 2004-07-19 13:09 jordi
17231 * Control.cs, Label.cs: label control re-written: added missing
17232 functionlity, events, and properties
17234 2004-07-19 10:49 jordi
17236 * Control.cs: fixes SetBounds logic
17238 2004-07-19 01:29 jordi
17240 * Control.cs: Call RefreshWindow only if the window has created
17242 2004-07-15 14:05 pbartok
17244 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17245 - Implemented ImageList and ImageList.ImageCollection classes
17246 - Added ColorDepth enumeration
17247 - Updated SWF VS.Net project
17249 2004-07-15 11:06 jordi
17251 * XplatUIStructs.cs: added MsgButons enum
17253 2004-07-15 11:03 jordi
17255 * Control.cs: added basic mouse handeling events
17257 2004-07-15 03:38 jordi
17259 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17260 Vertical TrackBar control implementation
17262 2004-07-13 09:33 jordi
17264 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17266 2004-07-13 09:31 jordi
17268 * Control.cs, Form.cs: commit: new properties and fixes form size
17271 2004-07-09 14:13 miguel
17273 * ProgressBar.cs: Spelling
17275 2004-07-09 11:25 pbartok
17278 - Removed usage of Rectangle for drawing. Miguel pointed out it's
17281 2004-07-09 11:17 miguel
17283 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
17285 * ProgressBar.cs: Fixed spelling for `block'
17287 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17290 Avoid using the += on rect.X, that exposed a bug in the compiler.
17292 2004-07-08 23:21 pbartok
17294 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17295 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17296 BaseCollection.cs, Binding.cs, BindingContext.cs,
17297 BindingMemberInfo.cs, BindingsCollection.cs,
17298 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17299 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17300 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17301 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17302 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17303 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17304 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17305 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17306 FrameStyle.cs, GiveFeedbackEventArgs.cs,
17307 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17308 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17309 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17310 InputLanguageChangedEventArgs.cs,
17311 InputLanguageChangedEventHandler.cs,
17312 InputLanguageChangingEventArgs.cs,
17313 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17314 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
17315 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
17316 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
17317 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
17318 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
17319 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
17320 QueryAccessibilityHelpEventArgs.cs,
17321 QueryAccessibilityHelpEventHandler.cs,
17322 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
17323 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
17324 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
17325 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
17326 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
17327 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
17328 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
17329 XplatUIX11.cs, lang.cs: