1 2006-09-05 Jackson Harper <jackson@ximian.com>
3 * TabControl.cs: Better calculation method for setting the slider
4 pos. Prevents crashes on really wide tabs.
6 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8 * MonthCalendar.cs: When Font changes, the Size should be
9 updated to fit the new font's space requirements.
11 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
13 * ListBox.cs: If the items are cleared with Items.Clear set
16 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19 fire DateChanged event instead of DateSelected event when
20 the date was changed by keyboard interaction.
22 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24 * DateTimePicker.cs: Handle DateChanged for the associated
25 month_calendar control, and set month_calendar.Font from
26 OnFontChanged method, as well as resize the height of the
27 control when needed. Make PreferredHeight proportional.
29 2006-09-01 Chris Toshok <toshok@ximian.com>
31 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
34 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
36 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
38 * FileDialog.cs: Set ClientSize instead of window size, to allow space
39 for decorations (Fixes #79219)
41 2006-09-01 Mike Kestner <mkestner@novell.com>
43 * ComboBox.cs: first stab at sorting plus some selection handling
44 fixes to bring us more in line with MS behavior. Also switches back
45 to index based selection. Alternative patches for index-based
46 selection were provided by Jackson Harper, Carlos Alberto Cortez,
47 and latency@gmx.de on bug 78848. I assume they were similar to this
48 code I've had simmering in my tree forever.
51 2006-09-01 Chris Toshok <toshok@ximian.com>
53 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
54 when setting list position guard against ending up with a -1 index
55 (the other part of the fix for #78812). Should probably make sure
56 we don't need the analogous fix in the ItemDeleted case.
59 - in SetDataSource, work around the fact that the way
60 OnBindingContextChanged is invoked will cause us to re-enter this
61 method. I'll remove the hack once I investigate
62 OnBindingContextChanged.
64 - fix the logic in set_DataSource and set_DataMember (basically
65 what to do if the other of the two is null.)
67 - in OnListManagerItemChanged, we need to take into account the
68 edit row when deciding whether or not to call RecreateDataGridRows
69 (part of the fix for #78812).
71 2006-09-01 Jackson Harper <jackson@ximian.com>
73 * Splitter.cs: Don't do anything if there is no control to affect
74 (prevents us from crashing in weird tet cases).
75 * TreeView.cs: Bounding box for the mouse movement reverting
76 focus/selection back to previously selected node. This matches
77 MS, and makes the tree a lot more useable.
78 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
79 use clipping so they are not drawn. This fixes when the control
80 is set to have a transparent background, or if it was over an
83 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
85 * MimeIcon.cs: Improved handling for reading default icons when
86 using gnome (2.16 made it necessary). Check and read svg icons
87 first, then 48x48 and then 32x32 icons.
89 2006-08-31 Chris Toshok <toshok@ximian.com>
91 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
94 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
95 ProcessKeyPreview. Fixes part of #77806.
97 * DataGrid.cs: big patch.
99 - revert the queueing up of DataSource/DataMember if inside
100 BeginInit/EndInit calls. That's not the way the datagrid achieves
101 its delayed databinding. Instead, call SetDataSource in
102 OnBindingContextChanged. This mimic's MS's behavior, and fixes
105 - Also, it wasn't mentioned in #78811, but the test case exhibits
106 behavior that was lacking in our datagrid implementation - Columns
107 that have mapping names that don't exist in the datasource's
108 properties aren't shown. Yuck. To fix this I added the bound
109 field to the column style, and basically any calculation to figure
110 out anything about columns uses a loop to find the bound columns.
111 still need to investigate if I can cache an array of the bound
112 columns or if the indices must be the same.
114 - When setting CurrentCell, we no longer abort if the cell being
115 edited was in the add row. This fixes the other part of #77806.
117 - The new code also fixes #78807.
119 * ThemeWin32Classic.cs: perpetrate the same disgusting
120 column.bound field hack, and only render bound fields.
122 2006-08-31 Chris Toshok <toshok@ximian.com>
124 * DataGridColumnStyle.cs: add bound field. this field is true if
125 the datasource has a property corresponding to the mapping name.
127 * DataGridTableStyle.cs: set the bound field on the column styles
128 depending on whether or not we have a column for that property.
130 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
132 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
133 splitter control (fixes #79228)
135 2006-08-31 Chris Toshok <toshok@ximian.com>
137 * DataGridColumnStyle.cs: we need to delay the assignment of
138 property descriptor until the last possible moment due to the lazy
139 databinding stuff in the datagrid. Also, fix the exceptions
140 thrown by CheckValidDataSource to match MS.
142 2006-08-31 Jackson Harper <jackson@ximian.com>
144 * Form.cs: When activated select the active control, if there is
145 no active control, we select the first control.
146 * XplatUIX11.cs: If there is no focus control when we get a
147 FocusIn event, find the toplevel form and activate it. This
148 occurs when you popup a window, it becomes the focus window, then
149 you close that window, giving focus back to the main window.
151 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
154 * ThemeWin32Classic.cs: Cache Font in bold style, as well
155 as StringFormat with Center alignments in MonthCalendar,
156 instead of creating new ones when drawing the control.
157 Also, draw the month name in bold style.
159 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
162 - PerformLayout(): It would seem MS performs the fill even if the
163 control is not visible (part of #79218 fix)
164 - ResetBackColor(): Use the setter to reset the color, to allow
165 overriders to catch the change.
167 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
168 - CreateHandle(): dito (part of $79218 fix)
169 - Don't set an icon if we have a dialog
170 * ScrollableControl.cs:
171 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
172 - ScrollIntoView(): No need to scroll if control is already visible
173 (resolves fixme and fixes #79218)
175 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
177 * MonthCalendar.cs: Change proportions in SingleMonthSize
178 to match the aspect of the original control.
180 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
182 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
183 get updated when they get maximized.
185 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
187 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
189 2006-08-29 Chris Toshok <toshok@ximian.com>
191 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
193 2006-08-29 Jackson Harper <jackson@ximian.com>
195 * TreeView.cs: Need to track selected node and highlighted node,
196 they aren't always the same thing, when the mouse is down on a
197 node it is hilighted, but not selected yet.
198 - Do the HideSelection stuff right
199 - Need to focus on rbutton mouse down. And redraw selection when
200 right click is mouse upped.
202 2006-08-29 Mike Kestner <mkestner@novell.com>
204 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
205 when SubItems.Count < Columns.Count. [Fixes #79167]
207 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
209 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
211 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
213 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
214 from X. Only send based on ConfigureNotify if we don't have the
215 correct location in hwnd (if the window manager moved us)
217 2006-08-28 Mike Kestner <mkestner@novell.com>
219 * ListView.cs: remove a TODO.
220 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
221 [Fixes ListView part of #79166]
223 2006-08-28 Mike Kestner <mkestner@novell.com>
225 * ListView.cs: move wheel handler to parent since it is focused
226 instead of the item_control now. [Fixes #79177]
228 2006-08-28 Mike Kestner <mkestner@novell.com>
230 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
231 when the control is focused. [Fixes #79171]
233 2006-08-28 Mike Kestner <mkestner@novell.com>
235 * ListView.cs: size the item and header controls for empty and
237 * ThemeWin32Classic.cs: draw disabled backgrounds.
240 2006-08-28 Chris Toshok <toshok@ximian.com>
242 * Form.cs: remove unused "active_form" static field.
244 * Hwnd.cs: lock around accesses to static windows collection.
246 * Application.cs: lock threads in Exit ().
248 2006-08-28 Chris Toshok <toshok@ximian.com>
250 * NativeWindow.cs: lock around accesses to window_collection.
252 2006-08-28 Chris Toshok <toshok@ximian.com>
254 * Control.cs: err, fix this the right way, by locking on controls
255 when using it. not by making it synchronized.
257 2006-08-28 Chris Toshok <toshok@ximian.com>
259 * Control.cs: make the static "controls" field synchronized, as it
260 gets updated from multiple threads.
262 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
264 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
265 Prevent other threads from exiting when calling thread sets quit state.
266 * XEventQueue.cs: Added PostQuitState property
268 2006-08-27 Chris Toshok <toshok@ximian.com>
270 * AsyncMethodData.cs: add a slot for the window handle.
272 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
273 window (the destination control's window, not the foster window).
275 * Control.cs (BeginInvokeInternal): store the window's handle in
279 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
282 - PostQuitMessage: Removed resetting S.D display handle, we might have
283 another loop started after calling PostQuitMessage (Fixes #79119)
284 - Created destructor to reset S.D handle
286 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
288 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
290 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
292 * TextControl.cs (Insert): Update the caret position even if we don't
293 have a handle yet, just don't call the driver in that case.
294 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
295 to the end of the new selection text (Fixes #79184)
297 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
299 * Form.cs (Activate): Only activate if the handle is created)
301 - Mark window as invisible when it's disposed
302 - Check if window handle is created when setting window visible,
303 instead of relying just on the is_created variable
304 - Check if object is disposed when creating the control (Fixes #79155)
306 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
308 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
309 when allowing layout again. Otherwise we re-generate the anchoring
310 distance to the border again and actually alter what the user wanted
311 This is ugly, it'd be better if we used DisplayRectangle instead of
312 ClientRectangle for Control.UpdateDistances, but that causes us to
313 have other problems (initial anchoring positons would be wrong)
316 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
319 - The size and location setters shouldn't go directly to
320 SetBoundsCore, but to SetBounds, which triggers layout on the
321 parent, then calls SetBoundsCore. (Related to fix for #78835)
322 - SetBounds: Moved actual location update code into this function
323 from SetBoundsCore, to match MS. Added call to PerformLayout if
324 we have a parent (to trigger resizing of anchored parents if the
325 child size has changed (see testcase for #78835)
326 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
328 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
330 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
332 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
333 System.Drawing when a toplevel window gets closed; there might
334 be other toplevel windows belonging to the same app (Fixes #78052)
336 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
338 * FileDialog.cs: After reading FileDialog settings from mwf_config
339 use Desktop prefix only if a real folder doesn't exist anymore.
340 * FontDialog.cs: Added char sets.
341 It is now possible to select the font, size or style with the
344 2006-08-25 Kornél Pál <kornelpal@gmail.com>
346 * PrintPreviewDialog.cs: Use assembly name constants.
348 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
350 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
351 scrollbar from whacking it's buttons)
353 2006-08-24 Chris Toshok <toshok@ximian.com>
355 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
356 in this patch (aggregating setting Left/Top/Width/Height to
357 setting Bounds on the scrollbars), but the crux of the fix is in
358 Recalculate, where we scroll by the remaining scroll_position if
359 we're hiding a scrollbar. The 2*$5 reward in the comment is
362 2006-08-24 Jackson Harper <jackson@ximian.com>
365 * MdiWindowManager.cs: If the form is made a non-mdi window we
366 need to remove the form closed event so that closing forms works
369 2006-08-24 Jackson Harper <jackson@ximian.com>
371 * Control.cs: Make IsRecreating internal so that the driver can
373 - Temporarily remove the Hide when controls are removed, its
374 making a whole bunch of things not work because visibility isn't
375 getting reset elsewhere correctly
376 * Form.cs: Need to do a full handle recreation when the mdi parent
378 * XplatUIX11.cs: If we are recreating handles don't dispose the
379 HWNDs. What was happening is the handles were being recreated in
380 SendWMDestroyMessages, but then flow continued on in that method
381 and destroyed the new handles.
383 2006-08-23 Jackson Harper <jackson@ximian.com>
385 * Form.cs: MdiClient is always at the back of the bus
386 * Control.cs: When the order of items in the collection is changed
387 we need to reset the all_controls array
388 - do the same sorta setup thats done when adding a control when a
389 control is set on the collection.
391 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
393 * TextBoxBase.cs (get_Text): Return an empty array if our document
394 is empty (fixes #79052)
396 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
398 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
399 on WM_SYSCHAR messages (fixes #79053)
401 2006-08-23 Chris Toshok <toshok@ximian.com>
403 * DataGrid.cs: fix flickering when scrolling vertically.
405 2006-08-23 Chris Toshok <toshok@ximian.com>
407 * DataGrid.cs (EndEdit): only invalidate the row header when we
410 2006-08-23 Chris Toshok <toshok@ximian.com>
412 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
413 methods. fixes the flicker when scrolling around.
415 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
417 * FileDialog.cs: Making sure the control is created before we get a
418 chance to use it with BeginInvoke (Fixes #79096)
420 2006-08-23 Chris Toshok <toshok@ximian.com>
422 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
423 width to use when painting the rows.
425 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
428 - Throw ArgumentException if a negative value is passed to SelectionLength
429 - Update the selection end if start is moved. end needs to be always
430 after start. (Fixes #79095)
431 - Track selection length; MS keeps the selection length even if start
432 is changed; reset on all other operations affection selection
434 2006-08-22 Jackson Harper <jackson@ximian.com>
436 * TreeView.cs: Make sure both scrollbars get displayed and sized
437 correctly when the other bar is visible.
438 - Use the original clip rectangle for checking if the area between
439 the two scrollbars is visible, not the viewport adjusted clipping
442 2006-08-22 Jackson Harper <jackson@ximian.com>
444 * Binding.cs: We don't use IsBinding because it requires the
445 control to be created, which really shouldn't be necessary just to
446 set a property on the control.
448 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
450 * ComboBox.cs: Some CB.ObjectCollection methods must throw
451 ArgumentNullReferenceException when the argument is null.
453 2006-08-21 Jackson Harper <jackson@ximian.com>
455 * Timer.cs: Track the thread that the timer is started in (NOT
456 CREATED), this way messages for it will only be triggered on its
458 * XEventQueue.cs: Track the timers here, this makes timers per
460 * XplatUIX11.cs: The timers are moved to the XEventQueue.
462 2006-08-19 Chris Toshok <toshok@ximian.com>
464 * XplatUIX11.cs: after further communication with pdb, we get the
465 best of both worlds. SetZOrder working for un-Mapped windows, and
466 no X errors for un-mapped windows.
468 2006-08-19 Chris Toshok <toshok@ximian.com>
470 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
471 as it was causing pdn toolbars to not have the correct stacking.
473 2006-08-18 Mike Kestner <mkestner@novell.com>
475 * ListView.cs : guard against negative ClientArea.Width in scrollbar
476 calculation. Not sure why control should ever be setting a negative
477 width though. Fixes #78931.
479 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
481 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
482 null items in ObjectCollection class.
483 * ListBox.cs.: Likewise.
485 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
487 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
488 as the base method in ThemeWin32Classic should work fine.
491 2006-08-18 Jackson Harper <jackson@ximian.com>
493 * Binding.cs: When validating if the value entered doesn't convert
494 properly reset to the old value.
495 * RadioButton.cs: Don't fire click when we get focus.
497 2006-08-18 Jackson Harper <jackson@ximian.com>
499 * FileDialog.cs: Paint the selection on the directory combobox the
502 2006-08-17 Jackson Harper <jackson@ximian.com>
504 * ErrorProvider.cs: Don't allow the error control to be selected.
505 * Control.cs: Don't send the SetFocus messages, the control
506 activation will do this, and if we do it blindly here validation
509 2006-08-17 Jackson Harper <jackson@ximian.com>
512 * ContainerControl.cs: Make validation events fire in the correct
513 order. TODO: For some reason the first validation event is not
516 2006-08-17 Mike Kestner <mkestner@novell.com>
518 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
520 2006-08-17 Mike Kestner <mkestner@novell.com>
522 * ComboBox.cs : implement scroll wheel support for popped-down
525 2006-08-17 Jackson Harper <jackson@ximian.com>
527 * TreeView.cs: Specify treeview actions (old patch that didn't get
528 committed for some reason).
529 - Don't let the mouse wheel scroll us too far. Just want to make
530 the bottom node visible, not scroll it all the ways to the top.
532 2006-08-17 Jackson Harper <jackson@ximian.com>
534 * XplatUIX11.cs: Mouse wheel events go to the focused window.
536 2006-08-17 Mike Kestner <mkestner@novell.com>
538 * ComboBox.cs : don't do mouseover selection in simple mode.
540 2006-08-16 Jackson Harper <jackson@ximian.com>
542 * Form.cs: Fire the closing events for all the mdi child windows
543 when a window is closed. If the cancel args are set to true, the
544 main window still gets the event fired, but it doesn't not close.
545 * MdiWindowManager.cs: Do this closing cleanup in a Closed
546 handler, instead of when the button is clicked, so cancelling the
547 close works correctly.
548 * ComboBox.cs: Send the mouse down to the scrollbar.
550 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
552 * ListBox.cs: When passing 'null' to SelectedItem,
553 set SelectedIndex to -1, to unselect items. This is the
554 observed behaviour in .Net.
556 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
558 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
559 MS flags saying there won't be any. (fixes #78800)
560 * Control.cs (HandleClick): Made virtual
562 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
564 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
565 cultures. Fixed bug #78399.
567 2006-08-16 Jackson Harper <jackson@ximian.com>
569 * Form.cs: Use the MdiClients MdiChildren property to access
570 MdiChildren instead of creating the array from the child controls.
571 * MdiClient.cs: Maintain a separate array of the mdi children, so
572 that insertion order is maintained when the Z-order is changed.
574 2006-08-16 Mike Kestner <mkestner@novell.com>
576 * ListView.cs : add an ItemComparer and default to it for sorting.
577 Fixes #79076, but sorting needs a complete overhaul to be compat with
580 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
582 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
584 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
586 * Hwnd.cs (Mapped): Properly traverse the tree
588 2006-08-15 Chris Toshok <toshok@ximian.com>
590 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
591 pass manager.Current.GetType() to ParseData. It has to be the
592 property type. So, hold off doing the ParseData until we're in
593 SetPropertyValue where we know the type. This fixes the crash in
594 #78821 but the textbox is still empty.
596 2006-08-15 Chris Toshok <toshok@ximian.com>
599 - when we're scrolling, only call Edit() again if the
600 current cell is still unobscured. Fixes bug #78927.
601 - when handling mousedown on a cell, ensure the cell is visible
603 - remove the properties from DataGridRow, and remove the
604 DataGridParentRow class altogether.
607 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
609 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
610 fire OnTextChanged by ourselves. There's no point calling base,
611 we don't set the base value anywhere else. Fixes #78773.
613 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
615 * ListBox.cs: Call CollectionChanged when modifying
616 an item from Items indexer, to update the actual items
619 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
621 * PrintDialog.cs: Small fixes for focus and a pair of checks,
622 to match .Net behaviour.
624 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
626 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
628 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
630 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
632 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
634 * MessageBox.cs: Prevent potential NRE exception.
635 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
637 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
639 * MessageBox.cs: Calculate the owner of a messagebox, also make
640 it topmost. Fixes #78753
642 2006-08-14 Chris Toshok <toshok@ximian.com>
644 * XplatUIX11.cs: A couple of fixes so that metacity will let us
645 programmatically move windows. first, set the PPosition hint as
646 well as the USPosition hint. Second include some code from pdb
647 that sets the window type to NORMAL when we set the transient for
648 hint. This is because, in the absence of a window type, metacity
649 thinks any window with TransientFor set is a dialog, and refuses
650 to let us move it programmatically. fascists.
652 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
654 * XplatUIX11.cs: When setting normal hints, take into consideration
655 an different hints previously set so we don't delete them (fixes #78866)
657 2006-08-12 Chris Toshok <toshok@ximian.com>
659 * ToolBarButton.cs: make Layout return a boolean, if something to
660 do with the button's layout changed.
663 - add another parameter to Redraw, @force, which all existing
665 - make the Layout function return a boolean which is true if the
666 layout has actually changed. Redraw now uses this (and @force)
667 to determine when to invalidate. At present the only place
668 where @force can be false is the call from OnResize, when
669 background_image == null. So, resizing a toolbar when the
670 layout doesn't change results in no drawing.
672 2006-08-12 Chris Toshok <toshok@ximian.com>
674 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
675 the VScrollBar and HScrollbar reversed. oops.
677 * DataGrid.cs: fix the logic that assigns sizes to the implicit
678 scrollbars. we were assigning them twice (once in
679 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
680 therefore causing two scrollbar resizes (and redraws?) to happen
683 2006-08-12 Chris Toshok <toshok@ximian.com>
685 * ToolBarButton.cs: redraw the entire button if the theme tells us
688 * Theme.cs: add ToolBarInvalidateEntireButton.
690 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
691 buttons, just the border.
693 * ThemeNice.cs: redraw the entire toolbar button since we need to
694 draw the highlight image.
696 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
697 we need to redraw the entire button (not just the border).
699 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
701 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
702 for vertical bars. Fixes the mismatches shown by #78513
704 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
706 * FileDialog.cs: If a saved/remembered path doesn't exist
707 anymore, fall back to "Desktop".
709 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
711 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
712 parent. It's apparently legal to not have one
714 - SetZOrder: Don't try to set Z-Order on an unmapped window
715 - CreateWindow: 0,0 are legal coordinates for a window. don't move
716 it unless the coordinates are negative
718 2006-08-10 Mike Kestner <mkestner@novell.com>
720 * ListControl.cs: allow null for DataSource. Clear DisplayMember
721 when setting to null per msdn docs. Fixes #78854.
723 2006-08-10 Chris Toshok <toshok@ximian.com>
725 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
726 flickering by setting a clip rectangle on the Graphics when we
727 need to redraw just a particular menuitem. Also, rename "OnClick"
728 to "OnMouseDown" to reflect what it actually is.
730 * Form.cs: track the OnMouseDown change.
732 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
734 * CommonDialog.cs: Properly inherit the CreateParams from the form
735 and only change what we need. Fixes #78865
737 2006-08-10 Chris Toshok <toshok@ximian.com>
739 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
740 flickering in flat mode (and most of the flickering in general) by
741 only invalidating the button border (and not the entire rectangle)
742 when the state changes. A couple of cases still flicker:
743 ToggleButtons, and the dropdown arrow case when the user mouse
746 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
748 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
749 for german keyboards. Numlock state shouldn't affect the behaviour
750 of the Del key. Fixes bug #78291.
752 2006-08-10 Chris Toshok <toshok@ximian.com>
754 * ListControl.cs: remove the items.Clear line from BindDataItems,
755 as this is the first thing done by both subclasses in their
756 SetItemsCore overrides. Also, add a ItemChanged handler, and when
757 passed -1, refresh the list. This gets databinding working when
758 the datasource is set on the list before the datasource is
759 populated (as in wf-apps/ReportBuilder.)
761 * ComboBox.cs: remove the argument to BindDataItems. This call
762 should really go away, and be initiated by the ListControl code.
766 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
768 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
769 if no data is in the document when the control is displayed
771 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
773 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
776 - PositionCaret: Allow positioning of caret but don't call methods
777 requiring a handle if the window isn't created yet
778 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
779 - owner_HandleCreated: Don't position the caret, just update it's
780 location. User might have already set a different position
782 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
784 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
785 windows. Screws up the returned coordinates for child windows.
786 Fixes #78825. I'm hoping this doesn't break something, since the
787 code was explicitly put in 8 months ago, but no bug was attached.
788 Menus still seem to work properly.
790 2006-08-08 Chris Toshok <toshok@ximian.com>
792 * DataGrid.cs: make BeginInit/EndInit actually do what they're
793 supposed to do - delay data binding until the EndInit call. Also,
794 make the table style collection's CollectionChangeAction.Refresh
797 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
798 (with action = Refresh) when a consituent table's MappingName is
801 2006-08-08 Chris Toshok <toshok@ximian.com>
803 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
804 Invalidate, since changing the text can change the size of the all
807 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
809 * Form.cs (AddOwnedForm): Still need to add the form to our listif
812 2006-08-08 Chris Toshok <toshok@ximian.com>
814 * PrintControllerWithStatusDialog.cs: don't .Close() the status
815 dialog, as this causes X errors later on, since we actually
816 destroy the window. Instead, .Hide() it.
818 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
820 * ComboBox.cs: Added focus reflection for popup window
822 - Removed transient setting for non-app windows for now, not sure it
824 - Fixed logic checking if we have captions when deciding
825 override_redirect, WS_CAPTION is two bits and a 0 check was not
827 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
830 - AddOwnedForm: Don't just add the form to the list, call the property
831 to ensure the driver is informed about the ownership as well
832 - CreateHandle: Set the TopMost status in the driver if we have an owner
833 * XplatUI.cs: Fixed debug statement
835 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
836 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
837 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
838 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
839 TrackBarRenderer.cs: Make constructor private.
840 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
841 * ProfessionalColorTable.cs: Make properties virtual.
843 2006-08-06 Duncan Mak <duncan@novell.com>
845 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
848 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
849 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
850 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
851 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
852 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
853 Initial import of new 2.0 classes.
855 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
856 * Application.cs: Add 2.0 VisualStyles properties.
858 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
859 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
860 XplatUIX11.cs: Create property to allow access to existing private
861 variable "themes_enabled"
863 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
865 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
866 file size, as otherwise our class libraries fail using windows. Fixes
869 2006-08-04 Jackson Harper <jackson@ximian.com>
872 * XplatUIX11.cs: Move the toolwindow window manager creation into
873 the X11 driver, this way on win32 we can let windows create/handle
876 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
878 * PrintDialog.cs: Remove some redundant checks, add some others,
879 clean some code, and move the focus to the text boxes when the
880 values are incorrect.
882 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
884 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
886 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
888 * NumericUpDown.cs: Setting the Minimum and Maximum is now
889 handled correctly. Fixes bug #79001.
891 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
893 * PrintDialog.cs: The "Copies" numeric up down must have
894 set the Minimum property to 1; only if the value is bigger
895 than 1, activate "Collate" check box. This is the behaviour of .Net.
896 Also modify the Document elements only if it is not null.
898 2006-08-03 Jackson Harper <jackson@ximian.com>
900 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
901 length. (We have a larger array then actual node count).
903 2006-08-03 Jackson Harper <jackson@ximian.com>
905 * ComboBox.cs: Don't show selection by default.
906 - The SelectAll isn't needed here, since the focus code should do
908 - DDL style lists to manual selection drawing, so when they
909 get/lose focus they have to invalidate.
911 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
913 * TextBoxBase.cs: Don't always show all selections by default.
915 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
916 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
917 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
920 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
922 * Control.cs: Removing the controls in a ControlCollection with
923 Clear now hides the controls as expected. Fixes bug #78804.
925 2006-08-03 Jackson Harper <jackson@ximian.com>
927 * Control.cs: Revert previous focus patch, it breaks reflector.
929 2006-08-03 Jackson Harper <jackson@ximian.com>
931 * ComboBox.cs: Cleanup selection and focus with the combobox.
932 This also eliminates some duplicated keyboard code, since now
933 everything is handled by the main class.
934 - Make list selection work on mouse up instead of down, to match
937 2006-08-02 Jackson Harper <jackson@ximian.com>
939 * Control.cs: Setting focus needs to go through the whole
942 2006-08-02 Chris Toshok <toshok@ximian.com>
944 * PrintPreviewDialog.cs: change MinimumSize to use
945 base.MinimumSize so it works.
947 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
950 - UpdateCaret: Added sanity check in case caret isn't defined yet
951 - Line.Delete: Now updating selection and caret markers if we're
952 transfering a node (Properly fixes #78323)
953 - SetSelectionEnd: Added sanity check
954 * TextBoxBase.cs: Removed broken attempt to fix #78323
956 2006-08-01 Chris Toshok <toshok@ximian.com>
958 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
959 Close() call is handled in Form, not here.
961 2006-08-01 Chris Toshok <toshok@ximian.com>
963 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
966 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
967 for sizes < 100% zoom. The code now aggressively attempts to keep
968 from calling document.Print (), and tries not to use the scaling
969 g.DrawImage whenever possible (it still does if you scale to >
970 100%, since usually that involves huge images).
972 * PrintPreviewControl.cs: hook up the close button.
974 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
975 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
976 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
977 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
978 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
979 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
980 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
981 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
982 Removed [Serializable] for 2.0 Event Handlers.
984 2006-07-31 Jackson Harper <jackson@ximian.com>
986 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
987 * TextControl.cs: Uncomment out the body of this method.
989 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
991 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
994 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
996 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
997 that embed TextBox and need selections visible even if textbox is not
998 focused to enforce that behaviour.
999 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1002 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1005 - Added new SetSelectionStart/SetSelectionEnd overloads
1006 - Fixed viewport width assignment to be accurate
1007 - Adjusted alignment line shift calculations to allow cursor on right
1008 aligned lines to be always visible at the right border (like MS)
1010 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1011 - TextBoxBase_SizeChanged: recalculating canvas on size changes
1012 - CalculateScrollBars: Use ViewPort size instead of window size, to
1013 properly consider space occupied by the border and scrollbars
1015 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
1016 calculations; no longer leaves artifacts
1017 - CaretMoved: Adjusted window scrolling to match MS and fixed several
1018 calculation bugs (Still missing right/center align calculations)
1020 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1022 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1023 use of both scroll rect and clip rect, as they do the same.
1025 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1027 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
1028 in the event handler (fixes #78912)
1030 2006-07-31 Chris Toshok <toshok@ximian.com>
1032 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1033 grid.ListManager.Count, since grid.ListManager might be null.
1034 This of course begs the question "why are we drawing rows for a
1035 grid with no list manager (and therefor no rows)?" Fixes the
1036 crash in bug #78929.
1038 2006-07-31 Chris Toshok <toshok@ximian.com>
1040 * RelatedPropertyManager.cs: Don't always chain up to the parent
1041 ctor. instead, call SetDataSource if the parent's position is !=
1042 -1. Fixes the crash in #78822.
1044 2006-07-31 Chris Toshok <toshok@ximian.com>
1046 * DataGrid.cs (get_ListManager): use field instead of property
1047 accessors for datasource and datamember.
1048 (RowsCount): make internal again.
1049 (OnMouseDown): end edits before resizing columns/rows.
1050 (OnMouseUp): restart edits after resizing columns/rows.
1052 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
1054 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1055 This fixes the situation where the last set cursor is displayed
1056 whenever the mouse is over scrollbars.
1058 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1060 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1061 Document properties, as well as initial values.
1063 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
1065 * XplatUIWin32.cs (SetBorderStyle): Setting both border
1066 and ClientEdge results in a 3-pixel border, which is
1069 2006-07-28 Jackson Harper <jackson@ximian.com>
1071 * TreeNodeCollection.cs: Fix the clear method.
1072 - Fix the Shrink also
1074 2006-07-27 Jackson Harper <jackson@ximian.com>
1076 * TreeView.cs: Make sure the visible order is computed when we
1077 attempt to size the scrollbars (for trees that mess with the
1078 scrolling when they shouldn't.
1079 - Make sure to give the scrollbars valid values.
1081 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1083 * XplatUIX11.cs: Move motion compression code to where it
1084 has less performance impact
1086 2006-07-26 Jackson Harper <jackson@ximian.com>
1088 * UpDownBase.cs: When the control is selected make the child
1089 controls non selectable, so that a click on them won't do a
1090 focus/unfocus cycle.
1091 - Don't give focus to the text box when the spinner is selected.
1092 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1094 2006-07-26 Chris Toshok <toshok@ximian.com>
1096 * ThemeWin32Classic.cs: add print preview rendering. I'm not
1097 satisfied with this solution. If the bitmaps are small, we should
1098 just cache them in the PrintPreviewDialog and draw them here.
1099 Also, the layout is broken for the 2-up and 3-up cases.
1101 * Theme.cs: add PrintPReviewControlPaint.
1103 * PrintPreviewDialog.cs: first pass implementation.
1105 * PrintPreviewControl.cs: first pass implementation. No
1108 * PrintDialog.cs: only validate fields if that particular portion
1109 of the UI is enabled. Also, set the document's controller to a
1110 PrintControllerWithStatusDialog wrapping the document's print
1113 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1114 bring up a SaveFileDialog (i hope we don't want to match the
1115 behavior of the crappy windows file entry) and set the
1116 PrinterSettings.PrintFileName accordingly.
1118 2006-07-26 Jackson Harper <jackson@ximian.com>
1120 * ContainerControl.cs: Add a field that disables auto selecting
1121 the next control in a container when the container is activated.
1122 * UpDownBase.cs: Don't select the text box when the up down is
1125 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1127 * XEventQueue.cs: Added methods for peeking (used for compression
1128 of successive events)
1129 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1130 mouse move events (fixes #78732)
1132 2006-07-25 Jackson Harper <jackson@ximian.com>
1134 * UpDownBase.cs: Use an internal class for the textbox so that we
1135 can control focus. the updown control should always have focus,
1136 if either the text area or the buttons are clicked.
1137 - Send the key messages to the textbox, since it never actually
1139 - Activate and decativate the textbox caret.
1141 2006-07-24 Jackson Harper <jackson@ximian.com>
1143 * Control.cs: Use the directed select when selecting a control,
1144 this way the container controls override will get called and the
1145 whole ActiveControl chain will get triggered. TODO: probably need
1146 to make sure this gets done everywhere instead of the old
1148 * ContainerControl.cs: Implement the directed Select method to
1149 find and activate the correct child control.
1151 2006-07-22 Mike Kestner <mkestner@novell.com>
1153 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1154 menu handling code so that clicks without a grab work too.
1157 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
1159 * FileDialog.cs: Enable the BackButton when dirstack has one element.
1160 Added some small optimizations.
1162 2006-07-21 Matt Hargett <matt@use.net>
1164 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1166 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
1168 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
1169 tests pass and match MS in some strange border cases.
1171 2006-07-21 Chris Toshok <toshok@ximian.com>
1173 * ThemeWin32Classic.cs: handle drawing of the relation links and
1176 * Theme.cs: change args to DataGridPaintParentRow.
1178 * DataGrid.cs: Don't use controls for the relation links and
1179 parent buttons, so we have to handle all their interactions in
1180 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
1181 when we're navigating through child tables, so we can reinstate
1182 selection, expanded state, current cell, etc.
1184 2006-07-20 Chris Toshok <toshok@ximian.com>
1186 * ToolBar.cs: When we redraw a button, for whatever reason,
1187 there's no reason to redraw the entire toolbar. Also, don't call
1188 Control.Refresh from within Redraw, as it's much heavier than
1189 Invalidate (which is really what we want).
1191 2006-07-20 Chris Toshok <toshok@ximian.com>
1193 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
1194 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
1195 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
1196 traces from within a debug IBindingList datasource
1197 (in mono/winforms/datagrid) for *days*, I've finally gotten things
1198 to work in a similar fashion.
1200 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1202 * ListBox.cs: Don't call Sort () when setting
1203 the Sorted property to false (avoid an unnecessary sort).
1205 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1207 * ListControl.cs: DataSource should throw an ArgumentException
1208 instead of a normal exception when the argument is not of the
1211 2006-07-20 Mike Kestner <mkestner@novell.com>
1213 * Control.cs: add InternalPreProcessMessage to allow us to steal
1214 key events before MWF gets its paws on them. Adapted from a
1216 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
1217 up/down/left/right navigation. Override the new internal control
1218 method to steal the events since they never make it to WndProc.
1219 * ToolBarButton.cs: don't worry about pushed when setting hilight
1220 since the drawing code prefers pushed to hilight. Invalidate on
1221 Hilight changes. Fixes #78547 and #78525.
1223 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1225 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
1226 the canvas size. Fixes #78868
1228 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1230 * Splitter.cs: Track requested split position until first layout
1231 is performed. Fixes #78871
1233 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1235 * Application.cs: Removed code that forces 1.x for the version
1236 number if the version started with 0. Not sure why that code was
1237 there and I couldn't find any bugs that indicated we needed it.
1240 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
1242 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
1243 ResetDefaults(), just write some output to the console until it's
1244 implemented. Fixes bug #78907 for now. Eliminated two warnings.
1246 2006-07-19 Jonathan Chambers <joncham@gmail.com>
1248 * PropertyGridView.cs: set StartPosition of drop down forms
1249 so they appear in correct initial spot. Fixes #78190.
1251 2006-07-19 Mike Kestner <mkestner@novell.com>
1253 * ThemeWin32Classic.cs: use parent background color when drawing
1254 flat toolbars. Restructure the conditionals to make sure non-flat
1255 non-Divider toolbars are filled too. Fixes #78837.
1257 2006-07-19 Mike Kestner <mkestner@novell.com>
1259 * ListBox.cs: Sort on collection changes even if the handle
1260 isn't created yet. Fixes #78813.
1262 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1264 * ListControl.cs: DisplayMember should never be null,
1265 and now we assign String.Empty when null is passed to it (this
1268 2006-07-17 Mike Kestner <mkestner@novell.com>
1270 * ListViewItem.cs: restructure Font and subitem Font handling
1271 to hold a specific font and refer back to owner on null.
1274 2006-07-17 Mike Kestner <mkestner@novell.com>
1276 * ToolBar.cs: bandaid for side-effect of previous patch which was
1277 discarding explicit heights for non-AutoSize toolbars. Need to
1278 extend my format tester to deal with AutoSize=false. Fixes #78864.
1280 2006-07-15 Jackson Harper <jackson@ximian.com>
1282 * LabelEditTextBox.cs:
1283 * TreeView.cs: Use a new LabelEdit class for node editing, this
1284 class automatically 'closes' itself when it gets the enter key or
1286 - Use the client rectangle when setting the trees scrollbars, so
1287 border style is taken into account.
1289 2006-07-14 Jackson Harper <jackson@ximian.com>
1292 * TreeView.cs: Make the editing work similar to MSs, firing the
1293 events correctly and ending edits correctly.
1295 2006-07-14 Mike Kestner <mkestner@novell.com>
1298 * ToolBar.cs: layout restructuring and redraw enhancements to support
1299 formatting changes gracefully, like setting TextAlign, ImageList,
1300 ButtonSize, and Appearance. Handles explicit button sizing quirks
1301 of the MS controls. Things like flat toolbars ignoring button size
1302 but becoming constant sized at the largest button's size. Normal
1303 toolbars with an image set cannot be shrunk smaller than the image,
1304 but text can be clipped/ignored.
1305 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
1306 is zero. Seems like DrawString should be smart enough to not put
1307 anything on screen though. Also trim labels and ellipsize at the char
1309 Fixes #78711 and #78483.
1311 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1313 * FolderBrowserDialog.cs: Disable "New Folder" button and
1314 "New Folder" contextmenu menuitem if a folder like "My Computer"
1317 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1319 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
1320 * FolderBrowserDialog.cs:
1321 - Use MWFConfig to store and read size and position settings
1322 - Added code to create a new folder (button or context menu).
1323 Use TreeView labeledit to change the name of the new folder.
1325 2006-07-14 Jackson Harper <jackson@ximian.com>
1327 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
1328 when the tree is scrolled we end editing.
1330 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1332 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
1335 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1337 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
1338 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
1339 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
1340 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
1341 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
1342 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
1343 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
1344 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
1345 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
1346 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
1347 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
1348 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
1349 ListViewItemSelectionChangedEventHandler.cs,
1350 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
1351 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
1352 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
1353 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
1354 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
1355 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
1356 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
1357 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
1358 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
1359 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
1360 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
1361 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
1362 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
1363 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
1364 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
1365 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
1366 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
1367 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
1368 WebBrowserNavigatingEventHandler.cs,
1369 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
1371 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1373 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
1374 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
1375 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
1376 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
1377 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
1378 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
1379 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
1380 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
1381 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
1382 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
1383 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
1384 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
1385 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
1386 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
1387 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
1388 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
1389 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
1390 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
1391 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
1392 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
1393 ListViewItemStates.cs, MaskFormat.cs: Added
1395 2006-07-13 Jonathan Chambers <joncham@gmail.com>
1397 * PropertyGridView.cs: Fix keyboard navigation of drop down.
1398 Patch from eno for bug 78558.
1400 2006-07-13 Jackson Harper <jackson@ximian.com>
1402 * TreeView.cs: When an edit is finished make sure that the
1403 selected node is visible.
1404 - When setting the top/bottom use the scrollbars is_visible, so
1405 everything will be set correctly even if the tree isn't visible
1408 2006-07-13 Jackson Harper <jackson@ximian.com>
1410 * ComboBox.cs: Revert the item->index part of my previous patch.
1411 * TreeView.cs: Use LostFocus instead of Leave for detecting when
1412 the edit box has lost focus (duh).
1413 - Just make the edit box not visible when we get return, that will
1414 take the focus, which will call EndEdit
1415 * TreeNode.cs When we start editing, notify the treeview.
1417 2006-07-12 Jackson Harper <jackson@ximian.com>
1419 * ComboBox.cs: Clear out old items before setting the item list.
1420 This prevents databound controls from having their items added
1422 - Switch the combobox to use indices whereever possible instead of
1423 using Item's. This allows usto navigate through lists that have
1424 more then one item with the same string value (ie a, b, b, a).
1425 - Scroll the listboxes scrollbar when a non visible item is
1427 - Allow keypress to cycle through all the possible values. For
1428 example if you have b1, b2, b3 and hold down the B key all the
1429 values will be cycled through.
1431 2006-07-12 Jackson Harper <jackson@ximian.com>
1434 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
1435 this using the internal methods.
1436 * Control.cs: Add OnGotFocusInternal. A new method that allows
1437 controls to "override" OnGotFocus and change focus behavior if
1439 - Same thing for LostFocus
1440 * ComboBox.cs: Pass off focus to the text control properly.
1442 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
1444 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
1445 * FolderBrowserDialog.cs: Almost a complete rewrite.
1446 - Better support for Environment.Specialfolders
1447 - Added support for MWFVFS
1448 - Made setting SelectedPath work
1450 2006-07-12 Jackson Harper <jackson@ximian.com>
1452 * Control.cs: Optimze getting all the controls.
1454 2006-07-11 Jackson Harper <jackson@ximian.com>
1456 * ContainerControl.cs: Override SETFOCUS in the container control,
1457 so that it is not selected on mouse click.
1459 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1461 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
1462 Hopefully we will have a better way once all of focus is complete.
1464 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1466 * ThemeWin32Classic.cs: Commented out some debug code and fixed
1467 a compile error with csc.
1469 2006-07-11 Jackson Harper <jackson@ximian.com>
1471 * Control.cs: When hiding a control only select the next control
1472 if the current control was focused.
1473 - Don't handle enter/leave when setting/killing focus, this is
1474 done by the container control.
1475 - Remove is_selected, it's not needed anymore.
1476 - Add utility methods for selecting a child control, and for
1477 firing the Enter/Leave events.
1478 * ContainerControl.cs: When a control is activated fire the
1480 - Don't wrap when processing the tab key, so that focus can be
1481 moved outside of the container.
1482 - Use the correct active control
1484 2006-07-11 Jackson Harper <jackson@ximian.com>
1486 * ComboBox.cs: Remove some debug code that was blinding me.
1487 * UpDownBase.cs: These controls actually aren't implicit, they are
1488 visible to the user.
1490 2006-07-10 Chris Toshok <toshok@ximian.com>
1492 * DataGrid.cs: move back to the is_adding boolean field. god i
1493 hate this is_editing/is_adding/is_changing stuff.
1495 2006-07-10 Chris Toshok <toshok@ximian.com>
1497 * DataGridTableStyle.cs: just check if the property type is bool.
1498 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
1499 Don't use CanRenderType.
1501 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
1502 if our text == NullText. Remove CanRenderType.
1504 * DataGridBoolColumn.cs: nuke CanRenderType.
1506 * DataGrid.cs: reenable some code to end the current edit inside
1507 of set_CurrentCell. This fixes the other 1.1.16 regression.
1508 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
1509 Also, remove the visible_row_count arg from CalcRowHeaders, since
1510 we don't need to worry about the actual height of the area.
1512 2006-07-10 Chris Toshok <toshok@ximian.com>
1514 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
1517 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
1518 the real sense of the IsInEditOrNavigateMode property (true =
1519 navigate, false = edit). Also, update OnKeyPress to reflect this.
1521 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
1522 column style exists, we still need to set its property descriptor
1523 to match up with our list manager.
1525 2006-07-10 Chris Toshok <toshok@ximian.com>
1527 * ThemeWin32Classic.cs: implement the new row/header painting
1528 approach. The parent row painting will likely go away and
1529 replaced with label controls, but the rest seems to work ok (and
1532 * Theme.cs: change the way we draw datagrid rows. we don't draw
1533 the row headers as a block now. Instead we draw them in the
1534 normal draw-row loop. Add some calls for drawing parent rows and
1537 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
1538 a default table style. Set the defaults from ThemeEngine.Current,
1539 not SystemColors. Fix lots of misc issues with property setters.
1541 * DataGrid.cs: move loads of style information out of this class
1542 as it's being duplicated with DataGridTableStyle. keep track of a
1543 special DataGridTableStyle for the properties we used to mirror
1544 here. Switch all the style properties to access this table style
1545 instead of instance fields of this class. Also add a internal
1546 class to represent parent rows (more needs to be stored here, like
1547 the selection state from the parent table, as well as the
1548 expansion state.) Also, for datasources with relations, do the
1549 right thing for collapse/expand, and add support for the
1550 navigation/parent row buttons.
1552 Lastly, fix the crash in the 1.1.16 build.
1554 * GridTableStylesCollection.cs: make the explicit interface
1555 implementations call the class's methods as opposed to duplicating
1558 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
1559 0 so the text doesn't jump around when we move the cursor.
1561 2006-07-10 Jackson Harper <jackson@ximian.com>
1564 * ListBox.cs: Match MS's ToString (this makes debugging focus
1565 stuff infinitely easier).
1567 2006-07-10 Jackson Harper <jackson@ximian.com>
1569 * Control.cs (SelectNextControl): When checking the control's
1570 parent use this instead of ctrl.parent so that null can be passed
1571 to SelectNextControl. (I have unit tests for this).
1572 - Remove unused var.
1574 2006-07-10 Chris Toshok <toshok@ximian.com>
1576 * CurrencyManager.cs: correct one regression, the removal of the
1577 finalType field. Also, add a MonoTODO on CanAddRows, implement
1578 Refresh() correctly, and fix some event emission in
1581 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1583 * FileDialog.cs: Don't use brackets for new folders if they exist
1584 under *nix. Instead use -(number of existing folders +1).
1586 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1589 - Fixed really nasty bug #78771
1590 - Don't block the whole GUI when reading directories with a lot of
1591 entries. Use an other thread instead and call BeginInvoke to
1592 update the ListView in MWFFileView
1594 2006-07-07 Chris Toshok <toshok@ximian.com>
1596 * Control.cs (Dispose): release any Capture when disposing.
1598 2006-07-07 Chris Toshok <toshok@ximian.com>
1600 * LinkLabel.cs (Select): if we chain up to the parent, set
1601 focused_index to -1 so we'll search for the first available link
1602 the next time the user tabs into us. Also, if the direction is
1603 backward and focused_index == -1, start the search from the last
1606 2006-07-07 Chris Toshok <toshok@ximian.com>
1608 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
1609 is beyond the end of the text, don't do anything.
1610 (CreateLinkPieces): set our ControlStyles.Selectable based on
1611 whether or not we have any links.
1612 (Link.Invalidate): use a loop instead of foreach.
1613 (Link.set_Start): null out owner.sorted_links so it'll be
1614 recreated by CreateLinkPieces.
1616 2006-07-06 Chris Toshok <toshok@ximian.com>
1618 * LinkLabel.cs: revert the SetStyle change.
1620 2006-07-06 Chris Toshok <toshok@ximian.com>
1622 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
1623 (OnEnableChanged): s/Refresh/Invalidate
1624 (OnGotFocus): if we have a focused index already, refocus it (so
1625 if we mouse out/in to the window it'll focus the right link).
1626 (OnKeyDown): move the tab handling out of here.
1627 (OnLostFocus): don't set focused_index to -1, so we can refocus it
1629 (OnMouseDown): don't Capture here - Control handles it. Also,
1630 focus the active link.
1631 (OnMouseUp): don't deal with Capture.
1632 (OnPaintBackgroundInternal): remove.
1633 (OnTextAlignChanged): CreateLinkPieces before calling the
1634 superclass's method.
1635 (OnTextChanged): call CreateLinkPieces before calling superclass's
1637 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
1639 (Select): implement this, moving the selection between different
1640 links, and call parent.SelectNextControl if we don't have another
1641 link to focus in the given direction.
1642 (CreateLinkPieces): call Invalidate instead of Refresh.
1644 2006-07-06 Chris Toshok <toshok@ximian.com>
1646 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
1647 new LinkLabel internals.
1649 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
1650 over pieces looking for active/focused/etc links. also, deal with
1651 runs of text (and links) with embedded \n's in them, and use
1652 MeasureCharacterRanges instead of MeasureString to figure out the
1653 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
1656 2006-07-04 Jackson Harper <jackson@ximian.com>
1658 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
1659 XKB or key auto repeat, do it manually. Without key auto repeat,
1660 when a key is held down we get key press, key release, key press,
1661 key release, ... with auto repeat we get key press, key press, key
1662 press ..., and then a release when the key is actually released.
1664 2006-07-03 Jackson Harper <jackson@ximian.com>
1667 * ThemeWin32Classic.cs: Tabs do not obey normal background color
1668 rules, they are always control color regardless of the background
1671 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
1673 * FileDialog.cs: Added internal class MWFConfig.
1674 Removed Registry support and replaced it with support for the new
1675 MWFConfig class. See MWFConfig comments for more information.
1677 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
1679 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
1680 rectangle. Added some patches from eno from bug #78490 and fixed
1681 the arrow position for small up and down CPDrawScrollButtons.
1683 2006-06-30 Jackson Harper <jackson@ximian.com>
1685 * InternalWindowManager.cs: Remove some debug code.
1686 * Form.cs: When an MdiParent is set to null, the window is
1687 "detatched" and becomes a normal window.
1688 * MdiClient.cs: Don't bring the new child form to the front until
1689 it is activated (setting it as active does this), this makes the
1690 previously active forms titlebar get redrawn as inactive.
1692 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
1694 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
1697 2006-06-29 Mike Kestner <mkestner@novell.com>
1699 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
1700 arrow in keynav state. Fixes #78682.
1702 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
1704 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
1705 order (fixes #78393)
1707 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
1709 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
1710 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
1711 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
1712 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
1713 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
1714 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
1715 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
1716 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
1717 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
1718 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
1719 enumerations (FlagsAttribute, SerializableAttribute, added/removed
1722 2006-06-28 Mike Kestner <mkestner@novell.com>
1724 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
1726 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
1729 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
1730 item lines from other area (It also makes BackColor consistent and
1731 compatible with .NET). Fixed bug #78564.
1733 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
1735 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
1736 Patch from Eno for #78555.
1738 2006-06-27 Chris Toshok <toshok@ximian.com>
1740 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
1742 * DataGridColumnStyle.cs: same.
1744 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
1746 * DataGridDrawingLogic.cs: nuke.
1748 2006-06-27 Chris Toshok <toshok@ximian.com>
1750 * DataGridTableStyle.cs: clean up the constructors, and build the
1751 list of child relations for this table. I have no idea if this is
1752 where we should be doing it (it probably isn't), but since we're
1753 already iterating over the properties..
1755 * DataGrid.cs: add row resizing. for now we add a DataGridRow
1756 struct and array for keeping track of row information, similar to
1757 what's shown in a hack on
1758 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
1760 * Theme.cs: be consistent about the naming of DataGrid methods,
1761 prefering ColumnWidths and RowHeights over columnsWidths and
1764 * ThemeWin32Classic.cs: same, and also add support for variable
1765 sized rows (and the +/- expansion icons for related rows).
1767 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1769 * TextBoxBase.cs: Applied Eno's patch from #78660
1771 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1773 * Form.cs (ScaleCore): We don't want to scale our form if it's
1774 state is minimized or maximized, but we still need to scale our
1775 child windows. Also, added try/finally block to ensure layout
1776 gets reset (Fixes #78697)
1778 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1780 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
1782 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1784 * Form.cs: Fixed c+p error and added check to resize form if minimum
1785 size is bigger than current size (Fixes #78709)
1787 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
1789 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
1791 2006-06-26 Mike Kestner <mkestner@novell.com>
1793 * ComboBox.cs: only do Keypress handling in the combo when there
1794 are items in the collection. Fixes #78710.
1796 2006-06-26 Chris Toshok <toshok@ximian.com>
1798 * Binding.cs: make this work bi-directionally. also, clear up
1799 other mixups between Push/Pull Data (e.g. we're supposed to pull
1800 data when validating).
1802 * BindingManagerBase.cs: trim some fully qualified collection
1805 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
1807 2006-06-23 Chris Toshok <toshok@ximian.com>
1809 * PropertyManager.cs: It appears (according to the unit tests)
1810 that PropertyManager doesn't use
1811 PropertyDescriptor.AddValueChanged to track propery value changes
1812 in its datasource, but uses the same scheme as Binding, where it
1813 looks for a <Property>Changed event and binds to it.
1815 Also, according to the docs, IsSuspended always returns false for
1816 a property manager with a non-null datasource.
1818 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
1820 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
1821 need to update the actual DialogResult. (Fixes #78613)
1823 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
1825 * Form.cs (ShowDialog): Release any captures before running the
1826 new message pump (fixes #78680)
1828 2006-06-22 Mike Kestner <mkestner@novell.com>
1830 * ListView.cs: Layout column widths properly in details mode even
1831 if HeaderStyle.None is set. Fixes #78691.
1833 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
1835 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
1837 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
1839 * Control.cs (ContainsFocus): Using new driver method to get focused
1840 window, instead of trying to use internal tracking var, which can
1841 recursion issues (Fixes #78685)
1842 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
1843 XplatUIWin32.cs: Added GetFocus method to return focused window
1845 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1847 * ColorDialog.cs: when the mouse button is pressed inside the color
1848 matrix, don't let the cursor move out of it until the button is
1849 released, which is the behavior on windows. Changed 'colours' by
1850 'colors' to use the same word consistently.
1852 2006-06-21 Chris Toshok <toshok@ximian.com>
1854 * DataGrid.cs: add in some basic navigation stuff (navigating to a
1855 child relation and back, using a stack). Also, remove
1856 GetDataSource and the code that calls it - it's not needed. Also,
1857 track CurrencyManager.ListName's removal.
1859 2006-06-21 Chris Toshok <toshok@ximian.com>
1861 * CurrencyManager.cs: push some of the original type checking from
1862 BindingContext.CreateBindingManager to here, and remove some of
1863 the finalType stuff. Need more tests to make sure I've got the
1864 ListName part right, and we might need more in SetDataSource.
1866 * PropertyManager.cs: add a ctor that takes just the datasource,
1867 and no property name. Make SetDataSource work with a null
1868 property_name, and make Current return the data_source if the
1869 property descriptor is null. this makes 'string foo = "hi";
1870 BindingContext[foo].Current' return "hi" as it should.
1872 * RelatedCurrencyManager.cs: make this code more generic - there's
1873 no reason the parent manager has to be CurrencyManager, and
1874 there's no reason to pass the DataRelation. It suffices to use a
1875 BindingManagerBase and PropetyDescriptor.
1877 * RelatedPropertyManager.cs: make a similar change here.
1879 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
1880 flower I knew it could be.
1882 2006-06-20 Chris Toshok <toshok@ximian.com>
1884 * PropertyManager.cs: the PropertyChangedHandler is invoked when
1885 data in the source has changed and we need to update the control,
1886 so s/PullData/PushData.
1888 * CurrencyManager.cs: Refresh is meant to update the control from
1889 data in the datasource. So, s/PullData/PushData.
1891 * BindingContext.cs: add more ugliness (we weren't handling the
1892 case where data_source = DataTable and data_member = column_name).
1894 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
1895 from the perspective of the datasource. PullData pulls from the
1896 control, PushData pushes to the control.
1898 2006-06-20 Chris Toshok <toshok@ximian.com>
1900 * BindingContext.cs: rewrite the CreateBindingManager code to
1901 handle navigation paths more or less properly. This could
1902 definitely stand some more work, in particular to push the
1903 recursion up to the toplevel. But that relies on fixes in other
1904 places (System.Data comes to mind).
1906 Also, move to a flat hashtable (and encode the twolevel nature of
1907 the dictionary into the hash key). This lets us implement the
1908 IEnumerable.GetEnumerator method.
1910 * RelatedCurrencyManager.cs: new class. Update our view based on
1911 our relation and our parent CurrencyManager's position.
1913 * CurrencyManager.cs: split out some logic from the ctor into
1914 SetView, so it can be called from the new RelatedCurrencyManager
1917 * RelatedPropertyManager.cs: new class. Update our datasource
1918 based on the position of our parent CurrencyManager.
1920 * PropertyManager.cs: split out some logic from the ctor into
1921 SetDataSource, so it can be called from the new RelatedDataSource
1922 subclass. Also, make the Current getter return the value
1923 of the PropertyDescriptor, not the data_source.
1925 * Binding.cs: no need to duplicate the string splitting code here.
1927 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
1930 - set_Enabled: OnEnabledChanged is not called if the inherited state
1931 of the control is not altered, even though we might be changing the
1932 internal state of the control (#78458)
1933 - set_Enabled: (Re)Moved the enabling/disabling of the window to
1934 OnEnabledChanged, to allow easy altering of any child window state
1935 - OnEnabledChanged: Added code to enable/disable driver window state
1936 - OnParentEnabledChanged: Instead of firing the event, call
1937 OnEnabledChanged, which will fire the event and also a) set driver
1938 window state and pass the enabled state to any grandchildren (#78458)
1940 2006-06-19 Jackson Harper <jackson@ximian.com>
1942 * InternalWindowManager.cs: We don't set the cursor explicitly
1943 thats done via the response to NCHITTESTs.
1944 - Don't need to adjust for titlebar heights anymore, the
1945 coordinates are coming in the correct coordinates now (see peters
1949 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
1951 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
1952 being translated relative to whole window, instead of client window.
1953 That caused broken offsets on mouseclick (and caused gas for our
1954 InternalWindowManager)
1956 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
1959 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
1960 - Undo(): Added replay of cursor move on DeleteChars action; added
1961 calling Undo() again if a recorded cursor move is invalid (to
1962 ensure that some action is performed on Undo)
1963 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
1965 2006-06-16 Jackson Harper <jackson@ximian.com>
1967 * MdiClient.cs: Instead of just sizing maximized windows when
1968 there is a resize we also have to adjust the Y of minimized
1969 windows, so they stay pinned to the bottom of the mdi container.
1970 - Eliminate separate tracking of the active control, we can just
1971 get this from the controls collection.
1972 - Paint the decorations for the newly activated titlebar so we get
1974 * InternalWindowManager.cs:
1975 * ThemeWin32Classic.cs: Minimized windows get all three buttons
1976 even if they are a tool window.
1978 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
1980 * TextControl.cs (Undo): Handle non-existent cursor locations in the
1981 undo buffer, these can happen when text was deleted and the cursor
1982 was recorded first. Since we will also have a recorded cursor
1983 after the delete this is not an issue. (Fixes #78651)
1985 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
1987 * AccessibleObject.cs: Remove dependence on Control.is_selected;
1988 instead properly track control states internally (allows us to
1989 remove is_selected from Control)
1991 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1993 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
1994 whose width is not a multiple of 8.
1996 2006-06-13 Jackson Harper <jackson@ximian.com>
1998 * MdiClient.cs: Only maximize the next child if the current one
2001 2006-06-13 Chris Toshok <toshok@ximian.com>
2003 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2004 modified. Also, guard against grid or grid_drawing being null in
2007 * DataGrid.cs: Reformat tons of getters/setters. In the
2008 DataMember setter, just call SetNewDataSource instead of
2009 duplicating some of its functionality. In SetNewDataSource, don't
2010 check ListManager for null, since the property getter creates the
2013 * DataGridTableStyle.cs: don't set TableStyle or call
2014 SetDataGridInternal on the column here, it's done in
2015 GridColumnStylesCollection.Add.
2017 * GridColumnStylesCollection.cs: fix all the explicit interface
2018 implementations to just call our methods. Nuke AddInternal() and
2019 move the body of it to Add(). Also, add a call to
2020 column.SetDataGridInternal to Add().
2022 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2023 base()+duplicate code. Also, use the Format property instead of
2024 format to generate an Invalidate ala MS. Lastly, create the
2025 textbox here, unconditionally.
2026 (set_Format): call Invalidate.
2027 (get_TextBox): no need to call EnsureTextBox.
2028 (Commit): remove the message box.
2029 (Edit) remove the call to EnsureTextBox.
2030 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2031 (EnterNullValue): no need to check textbox for null.
2032 (HideEditBox): no need to check textbox for null.
2033 (SetDataGridInColumn): add the textbox to the grid's controls.
2034 (EnsureTextBox): nuke.
2036 2006-06-13 Jackson Harper <jackson@ximian.com>
2038 * MdiWindowManager.cs: Hook up to the maximized menus paint event
2039 and redraw the buttons when needed. Unhook when the window is
2041 * MainMenu.cs: Add an internal Paint event, the mdi window manager
2042 needs this so that it can redraw its buttons when the menu is
2044 * InternalWindowManager.cs:
2045 * Form.cs: The method order has changed for DrawMaximizedButtons,
2046 so that it can be a PaintEventHandler.
2048 2006-06-13 Jackson Harper <jackson@ximian.com>
2050 * MdiClient.cs: When we close a maximized mdi window, the next mdi
2051 window is activated and maximized, even if it wasn't before.
2052 - When a new window is activated repaint the decorations of the
2053 old one, so that it no longer has the Active "look" (the blue
2055 * InternalWindowManager.cs: Open up CreateButtons to base classes
2056 so they can recreate the buttons on state changes.
2057 - If a window is maximized give it all three buttons
2058 * MdiWindowManager.cs: Create the titlebar buttons when the state
2059 is changed, this is needed because a toolwindow will not have all
2060 three buttons until it is maximized.
2062 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
2064 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2067 2006-06-12 Jackson Harper <jackson@ximian.com>
2069 * KeysConverter.cs: Make sure we handle the Ctrl special case
2070 if its the only key.
2072 2006-06-12 Jackson Harper <jackson@ximian.com>
2074 * Theme.cs: Add a method to get the size of a managed window
2076 * InternalWindowManager.cs: Remove the ButtonSize property, this
2077 should be retrieved from the theme.
2078 * MdiWindowManager.cs: Get the button size from the theme
2079 * ThemeWin32Classic.cs: Make the method to get the managed window
2080 titlebar button size public.
2081 - Handle the different button sizes of maximized toolwindows
2082 (should match any maximized window).
2083 - Get the titlebar height from the theme, not the WM (which gets
2086 2006-06-12 Jackson Harper <jackson@ximian.com>
2088 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2089 event down to the mdi window manager.
2090 - Expose some extra stuff to base classes
2091 - Make sure to end the Capture on an NC Mouse up, so that we can
2092 get double clicks properly, and the sizing doens't stick.
2093 - When doing PointToClient contain it in the workable desktop
2094 area, this prevents windows from changing size when the cursor is
2095 pulled outside of the working area while sizing.
2096 * MdiWindowManager.cs: When we get a double click maximize the
2098 - Reset the cursor after handling mode changes.
2100 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
2102 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
2103 current desktop, instead of just assuming a 0, 0 origin. This
2104 is needed for our internal window manager, to know the top
2105 margin of the desktop
2107 2006-06-12 Chris Toshok <toshok@ximian.com>
2109 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2110 we need this to get rid of the selected background in the bool
2112 (CancelEditing): move the ConcedeFocus call to above the Abort
2113 call. Also, set is_changing to false and invalidate the row
2114 header if we were changing before.
2115 (ProcessKeyPreviewInternal): remove, since noone outside this
2116 class calls it anymore. Roll the code into ProcessKeyPreview.
2117 (EndEdit): remove the internal version.
2118 (InvalidateCurrentRowHeader): make private.
2120 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
2121 Keys.Escape handling (and with it the last call to
2122 DataGrid.EndEdit from outside the class.)
2125 2006-06-12 Chris Toshok <toshok@ximian.com>
2127 * DataGridTextBox.cs (.ctor): isedit defaults to false.
2128 (OnKeyPress): set isedit to true.
2129 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
2130 already handled by the grid.
2132 * DataGrid.cs (set_CurrentCell): more work here. it's still not
2134 (set_DataSource): SetDataSource always returns true, so stop
2135 putting it in an if statement.
2136 (EndEdit): get rid of some {}'s
2137 (ProcessGridKey): return true in case Keys.Escape.
2138 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2139 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2140 PositionChanged, stopped connecting to CurrentChanged.
2141 (GetDataSource): simplify this a bunch.
2142 (SetDataSource): change return type from bool to void.
2143 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2144 to this, and make sure we don't set ListManager.Position inside
2146 (OnListManagerItemChanged): if we're passed an actual index,
2149 * CurrencyManager.cs (set_Position): don't call PullData here.
2151 2006-06-09 Jackson Harper <jackson@ximian.com>
2153 * TreeNode.cs: Recalculate the visible order before doing the
2154 Expand/Collapse Below calls, because those calls generate an
2156 - Reduce calls to the TreeView property, which is mildly expensive
2157 by using a local var.
2158 * Form.cs: Layout the MDI child windows when creating the parent
2160 - Don't use the internal constructor anymore
2161 * MdiClient.cs: use the parent form width/height (if available)
2162 when laying out the child windows, we do this because the
2163 mdiclient isn't docked yet when the initial layout is done.
2164 - Don't need an internal constructor anymore.
2166 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2168 * FileDialog.cs: handle access errors when trying to create a folder
2169 or changing to a directory. No need to initialize out parameters.
2171 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2173 * FileDialog.cs: Append a number when creating a new folder if the
2174 folder already exists (use parenthesis instead of square brackets)
2176 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2179 - Disabled registry support for windows and added better registry
2180 error checking for other systems (need to investigate why it
2181 works perfectly on my system)
2182 - If a folder already exist show an error MessageBox instead of
2183 trying to create an indexed name.
2184 - Fixed a non intentional typo.
2186 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2188 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2190 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2192 * FileDialog.cs: When creating a new folder don't crash if the
2193 folder already exists.
2195 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2197 * FileDialog.cs: Allmost a complete rewrite.
2198 - added a "virtual" file system that handles the differences
2199 between unix and windows file systems (especially the directory
2200 structure). Moved most of the directory and file handling code
2202 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
2203 UnixFileSystem and FSEntry.
2204 - Recently used folder/directory, size, location and used file names
2205 (file name ComboBox) are now stored in the registry and get read
2206 before the dialog shows up (fixes part 6 of bug #78446).
2207 - Creation of new folders/directories is now possible (context menu
2208 or ToolBar). Added TextEntryDialog for this that fills in the gap
2209 until ListView.LabelEdit works.
2210 - Fixed cursor handling (bug #78527) and focus handling for
2212 - Various "Search in" ComboBox enhancements. The content of the
2213 dropdown listbox now almost matches ms.
2214 - Changed the behaviour when the user switches to SpecialFolder
2215 Recent to show the ListView in View.Details.
2216 - Beside using the ToolBar to change the View property of the
2217 file ListView it is now possible to use the context menu too.
2219 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2221 * ComboBox.cs: Don't create a new ObjectCollection when an item
2222 gets inserted. Just insert the item in the existing object_items
2225 2006-06-08 Jackson Harper <jackson@ximian.com>
2227 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
2228 that the treeview and root node checks are done also, this fixes a
2229 regression i caused in the unit tests.
2231 2006-06-07 Wade Berrier <wberrier@novell.com>
2233 * RichTextBox.cs: More ISO8859-1 -> unicode
2235 2006-06-07 Mike Kestner <mkestner@novell.com>
2237 * ComboBox.cs : use items to hold highlight/selection so that
2238 collection insertions don't require synchronization.
2240 2006-06-07 Jackson Harper <jackson@ximian.com>
2242 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
2243 routine. We now always keep the sized edge at the cursor instead
2244 of computing movement and adjusting rects. There is one buglet
2245 with this method though when the cursor is moved over area that
2246 the window can not expand too (such as the toolbars on the desktop).
2248 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2250 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
2251 here. Fixes crash on startup in AlbumSurfer.
2253 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
2255 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
2258 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2260 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
2261 statement to avoid calling XNextEvent which will block if another thread
2262 took the event that we were expecting. Fixes bug #78605.
2264 2006-06-07 Mike Kestner <mkestner@novell.com>
2266 * ListView.cs : isolated checkbox clicking from the selection logic.
2267 Toggle check state on item doubleclicks. Really fixes #78454 part2.
2269 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2271 * Form.cs: Check that the value passed to Form.DialogResult
2272 is a valid enum value.
2274 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
2277 Computer'. Clicking it in the network view goes to 'My Computer'.
2278 Added CIFS filesystem type. Display the mount point of filesystems.
2279 Avoid duplicate mount points (happens for me with CIFS);
2281 2006-06-06 Jackson Harper <jackson@ximian.com>
2283 * InternalWindowManager.cs: Draw the maximized windows buttons
2286 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2288 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
2289 all other dialogs. Fixes bug #78585.
2291 2006-06-06 Mike Kestner <mkestner@novell.com>
2293 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
2294 Only invalidate checkbox on checkstate changes to avoid flicker.
2295 * ListBox.cs : avoid unselect/select when clicking selected item.
2296 avoid reselection flicker for already multiselected items.
2299 2006-06-06 Jackson Harper <jackson@ximian.com>
2301 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
2302 the parent form so that the menu is removed if needed.
2304 2006-06-06 Mike Kestner <mkestner@novell.com>
2306 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
2307 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
2309 2006-06-06 Mike Kestner <mkestner@novell.com>
2311 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
2314 2006-06-06 Jackson Harper <jackson@ximian.com>
2316 * Control.cs: Use the property (instead of the field) to get the
2317 default cursor so it is instantiated correctly.
2318 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
2319 resizes so we need to manually repaint the window decorations here.
2320 - Set the titlebar button locations as soon as they are created,
2321 otherwise they are not set correctly on win32.
2323 2006-06-06 Chris Toshok <toshok@ximian.com>
2325 * CurrencyManager.cs (set_Position): call PullData before
2327 (AddNew): after calling IBindingList.AddNew, update our
2328 listposition, and call OnCurrentChanged/OnPositionChanged (without
2330 (OnCurrentChanged): remove the call to PullData from here.
2331 (OnItemChanged): remove the call to PushData from here.
2332 (OnPositionChanged): change the test from == null to != null to
2333 match the other methods.
2334 (ListChangedHandler): the grossest part of the patch. Implement
2335 this such that it passes the unit tests in CurrencyManagerTest and
2336 the output more or less matches that of MS's implementation.
2338 2006-06-06 Mike Kestner <mkestner@novell.com>
2340 * ListView.cs : only update check state on single click.
2341 * ThemeWin32Classic.cs : fix focus drawing for details view without
2342 fullrowselect. Fixes #78454.
2343 * XplatUIX11.cs : fix for double click emission.
2345 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
2347 * PropertyGridView.cs : Applied Atsushi's patch to fix
2348 font dialog bug (#78197).
2350 2006-06-05 Jackson Harper <jackson@ximian.com>
2352 * TreeNode.cs: Compute the next node for expanding/collapsing
2353 correctly. We now factor in nodes without a NextNode
2354 correctly. (Fixes somes cases in nunit-gui).
2355 * InternalWindowManager.cs: Set the bounds when updating the
2356 virtual position of a tool window.
2358 2006-06-05 Chris Toshok <toshok@ximian.com>
2360 * DataGrid.cs: rename cached_currencymgr to list_manager.
2361 (set_CurrentCell): move SetCurrentCell code here, and clean it up
2363 (CurrentRow, CurrentColumn): single accessors so we can make the
2364 cursor movement code a lot easier to understand.
2365 (CurrentRowIndex): implement this in terms of CurrentRow.
2366 (BeginEdit): clean this up a bit.
2367 (CancelEditing): sort out the is_editing/is_changing/is_adding
2369 (EndEdit): minor changes.
2370 (OnKeyDown): add a comment about a (most likely) unnecessary
2372 (OnMouseDown): cancel editing when we click on a row header. And
2373 use the CurrentRow setter, not CurrentCell.
2374 (ProcessDialogKey): directly call ProcessGridKey.
2375 (UpdateSelectionAfterCursorMove): factor out this common block of
2376 code (it's used everywhere that we move the cursor by updating row
2378 (ProcessGridKey): pretty substantial overhaul. Use the
2379 CurrentRow/CurrentColumn properties to make the code a lot more
2380 readable. Only use the CurrentCell property when we have to
2381 modify both row and column at once. Tab behavior is still broken,
2382 and Delete is untested.
2383 (Select): if we have no selected rows, set selection_start to
2385 (EditCurrentCell): rename EditCell this. It was only ever invoked
2386 with CurrentCell as the arg, so drop the arg and rename it.
2388 * DataGridColumnStyle.cs: clean up the constructors a little, and
2389 drop CommonConstructor().
2391 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
2392 actually get notified when the user hits it.
2393 (ProcessKeyMessage): *substantially* simplify this method.
2394 There's no reason (that I can see) for the textbox to be making
2395 calls into the datagrid at all. Remove all of them but the ones
2396 for Enter handling. those will take some more work.
2398 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
2399 calling HideEditBox.
2400 (HideEditBox): if we have an active textbox, render it invisible
2401 without causing a re-layout of the datagrid.
2403 2006-06-05 Mike Kestner <mkestner@novell.com>
2405 * ListView.cs : fix NRE crasher when focuseditem is cleared by
2406 collection changes by resetting it to Items[0]. Fixes #78587.
2408 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2410 * MessageBox.cs: if the height of the text is larger than the icon_size,
2411 use that. Fixes bug #78575.
2413 2006-06-05 Jackson Harper <jackson@ximian.com>
2415 * TreeView.cs: Fix line drawing when scrolling. To do this each
2416 node is basically responsible for drawing its entire horizontal
2417 area. When drawing a node it draws its parent node lines if
2419 - Adjust the clip area to the viewport rectangle
2420 - Fix Left/Right key handling to match MS. (It expand/collapses
2421 and moves to parents/first child but does not move selection to
2423 - Fix SetTop to work with new bound calculation code
2424 - When scrollbars are no longer needed we need to reset scrolling
2425 vars and recalculate the visible order so the redraw is correct
2426 * TreeNode.cs: We can't expand/collapse nodes with no children.
2428 2006-06-03 John Luke <john.luke@gmail.com>
2430 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
2431 so the colors work without dev packages
2433 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
2436 - Select: Implemented to just use activate. Seems to match MS
2437 behaviour closest. Documented to only do actual control walking
2438 based on it's parameters if in a container control so I moved
2440 - Removed selection check logic from our internal Select() method
2441 * ContainerControl.cs:
2442 - Select: Moved selection logic from Control here, since MS documents
2443 that containers obey the bool arguments. No longer calling base
2445 2006-06-02 Jackson Harper <jackson@ximian.com>
2447 * TreeView.cs: If the selected node isn't changed when we get
2448 focus update the previously selected node so that we see the
2451 2006-06-02 Mike Kestner <mkestner@novell.com>
2453 * ComboBox.cs: restructure grab and general mouse event handling.
2454 Make the composite control raise mouse events like it was a single
2455 control for leaves/enters/motion/up/down events. fix dropdown list
2456 coordinate mangling and refactor it into the scrollbar subclass to
2457 reduce code duplication. Fixes #78282 #78361 and #78457.
2459 2006-06-02 Mike Kestner <mkestner@novell.com>
2461 * ScrollBar.cs: remove Capture setting/clearing, as it happens
2462 automatically in the Control.WndProc.
2464 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2466 * FileDialog.cs: fix crash when running SharpChess, which sets the
2467 FilterIndex to 2 with only one Filter.
2469 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471 * ToolBar.cs: add SizeSpecified property.
2472 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
2473 try to figure out our real size, otherwise fallback to what the
2476 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2478 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
2479 * Control.cs (WndProc): MS always calls the DefWndProc to pass
2482 2006-06-01 Mike Kestner <mkestner@novell.com>
2484 * ListView.cs: revamp the focus management in ListView. It still
2485 causes churn of LostFocus/GotFocus emissions on clicks, but it's
2486 better than not handling focus at all. Will revisit when pdb feels
2487 the general focus handling is solid. Fixes #78526.
2489 2006-06-01 Jackson Harper <jackson@ximian.com>
2491 * TreeView.cs: Set the default border style in the constructor.
2492 - Move painting to use OnPaintInternal instead of capturing
2493 WM_PAINT, this is the correct way of doing things
2494 - UpdateBelow shouldn't invalidate the scrollbar area
2495 - Cap the top on update below in case the node was above the top
2496 of the viewport rectangle.
2497 - ExpandBelow and Collapse below need to obey Begin/End Update.
2498 * TreeNode.cs: Make is_expanded internal so the treenode
2499 collection can change it without firing the whole event chain.
2500 * TreeNodeCollection.cs: When clearing all the child nodes make
2501 sure to recalc the visible order.
2502 - Improve algo for remove the top node
2504 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2506 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
2507 SendMessage directly calling window procedures, which in turn might
2510 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2512 * Control.cs: Don't handle WM_SETFOCUS if the same window already
2513 has focus (works around X11 sending a FocusIn after our SetFocus)
2514 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
2516 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
2518 * Mime.cs: Fix for the NET_2_0 build.
2519 NameValueCollection needs StringComparer now.
2521 2006-05-31 Chris Toshok <toshok@ximian.com>
2523 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
2524 return (via an out parameter) the starting X of the column.
2525 (UpdateVisibleColumn): track change to FromPixelToColumn.
2526 (HitTest): add a ColumnResize case here.
2527 (DrawResizeLine): new function, probably poorly named.
2529 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
2530 only need to keep one reference.
2531 (set_ListManager): same.
2532 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
2533 Also, add support for HitTestType.ColumnResize.
2534 (OnMouseMove): add column resize behavior here, and change the
2535 cursor to the correct one as we move around the datagrid.
2536 (OnMouseUp): terminate the column resize if we're resizing.
2537 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
2538 for the current cell.
2539 (ConnectListManagerEvents): use cached_currencymgr.
2540 (DisconnectListManagerEvents): fill this in, using
2542 (SetCurrentCell): remove cached_currencymgr_events handling.
2543 (SetDataMember): only call DisconnectListManagerEvents if
2544 cached_currencymgr is != null.
2545 (SetDataSource): same.
2546 (OnListManagerCurrentChanged): cached_currencymgr_events ->
2549 2006-05-31 Jackson Harper <jackson@ximian.com>
2551 * BindingManagerBase.cs: Remove somedebug code that creeped into
2553 * TreeNode.cs: We get the indent level dynamically right now, so
2554 don't track it as a member.
2555 * TreeNodeCollection.cs: Make sure all nodes added to the list
2556 have parents, treeviews/topnodes setup properly.
2557 - Don't attempt to track indent level.
2559 2006-05-30 Jackson Harper <jackson@ximian.com>
2561 * BindingContext.cs: Create the currency manager tables here.
2562 This allows us to more easily create null tables (when bad data
2563 members are used), and more easily create related currency
2565 * CurrencyManager.cs: All the table creation stuff is done by the
2566 binding context now.
2567 - Current should throw an exception if listposition is -1.
2568 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
2571 2006-05-30 Mike Kestner <mkestner@novell.com>
2573 * ListView.cs: allow reexpansion of zero-width column headers.
2576 2006-05-28 Chris Toshok <toshok@ximian.com>
2578 * CurrencyManager.cs (get_Current): after the late binding
2579 listposition = -1 fix, we need to guard against it here and return
2580 null, otherwise we raise an exception (which is swallowed
2581 elsewhere, and breaks datagrid databinding.)
2583 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2585 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
2586 than WM_SYSKEY, don't throw if get something unexpected (#78507)
2588 2006-05-26 Jackson Harper <jackson@ximian.com>
2591 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
2592 values, it's faster and it's all we care about (we don't care if
2593 the names aren't equal).
2594 * KeyboardLayouts.cs: Eliminate some dead code.
2596 * X11Keyboard.cs: Lazy init keyboard detection.
2597 - Cleanup access modifiers a little.
2599 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2601 * XplatUIX11.cs: Once again, attempting to get layout just right.
2603 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2605 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
2606 the sizes of each link section, that will result in sizes that
2607 match DrawString's layout (Fixes #78391)
2609 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
2611 * FileDialog.cs: If AddExtension property is true autocomplete the
2612 extensions in SaveFileDialog correctly. Fixes bug #78453.
2613 Set MyNetwork and MyComputer to "C:\" for windows. This should
2614 fix part 8 of bug #78446 for now.
2616 2006-05-26 Chris Toshok <toshok@ximian.com>
2618 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
2619 invalidate the current row header if we need to, but presumably
2620 we'll invalidate the row corrsponding to the bounds or
2622 (GridHScrolled): switch back to this method, as it's part of the
2624 (GridVScrolled): same.
2625 (OnMouseWheel): hack up something that more or less works. Call
2626 GridHScrolled/GridVScrolled directly, instead of duplicating much
2628 (EnsureCellVisibility): reinstate a bunch of this code, since we
2629 can't just set the scrollbar Value and expect to do all the work
2630 in the ValueChanged handler. Also, Call Update() after scrolling
2631 in one direction so the other XplatX11.ScrollWindow call has the
2632 proper stuff in the proper places.
2633 (EditCell): set is_editing to true before calling .Edit.
2635 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
2636 don't bother comparing first.
2637 (OnKeyPress): call grid.ColumnStartedEditing before calling
2638 base.OnKeyPress. this will set is_changing and invalidate the row
2639 header if necessary.
2640 (ProcessKeyMessage): for WM_CHAR messages, call
2641 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
2644 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
2645 it's done in the DataGrid.
2646 (NextState): call grid.ColumnStartedEditing, which takes care of
2647 invalidating the row header (and setting is_changing).
2649 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
2650 here. it's done in the DataGrid.
2652 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2654 * Control.cs: allow changing the cursor when the mouse position is
2655 out of bounds but Capture is set.
2656 * LinkLabel.cs: handle the case when the mouse button is pressed on the
2657 linklabel but released somewhere else.
2659 2006-05-25 Jackson Harper <jackson@ximian.com>
2661 * TreeView.cs: When we get focus if there is no selected node make
2663 - Remove some uneeded setup code from Draw.
2664 * TreeNodeCollection.cs: If the tree doesn't have a top node when
2665 a new node is inserted make the new node the top.
2667 * Timer.cs: Use Utc time so that no local time zone stuff needs to
2668 be used (should be faster).
2670 2006-05-25 Chris Toshok <toshok@ximian.com>
2672 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
2673 problem with the last commit.
2675 2006-05-25 Chris Toshok <toshok@ximian.com>
2677 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
2678 need the invalidate call here, while scrolling right-to-left via
2679 the left arrow key (i.e. moving the editing cell while scrolling).
2681 * DataGrid.cs (.ctor): remove the initialization of
2682 ctrl_pressed/shift_pressed. We no longer track them using key
2683 up/down handlers, but by using Control.ModifierKeys. Also, switch
2684 to using ValueChanged handlers on the scrollbars instead of
2685 Scrolled event handlers. This simplifies a bunch of the scrolling
2687 (GridHValueChanged): rename from GridHScrolled, and change it to
2688 work with the new event args.
2689 (GridVValueChanged): same.
2690 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
2691 (OnMouseWheel): actually scroll the datagrid. Don't change the
2693 (ProcessGridKey): correct all the keyboard navigation stuff I
2694 could find. Ctrl up/down/left/right/home/end work now.
2695 (EnsureCellVisibility): correct method name spelling. Also,
2696 simplify this a touch by not explicitly calling the
2697 ScrollToRow/ScrollToColumnInPixels methods. We just set the
2699 (OnKeyUpDG): no need for this method now.
2701 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2703 * LinkLabel.cs: display the OverrideCursor when hovering the label.
2706 2006-05-25 Chris Toshok <toshok@ximian.com>
2708 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
2711 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
2713 * Application.cs: Moved setting of is_modal and closing to before
2714 we create the control, to allow the event handlers called as a
2715 result of creation affect closing. Also removed Gonzalo's previous
2716 change to setting DialogResult, the behaviour has been moved to
2719 - ShowDialog(): Removed explicit creation of the form, let RunLoop
2721 - ShowDialog(): If no dialog result is set, we need to return Cancel
2722 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
2723 the close is cancelled
2725 2006-05-25 Jackson Harper <jackson@ximian.com>
2727 * StatusBar.cs: We only need to update the sizes of the other
2728 panels when we have auto size contents. Also we are only updating
2729 the contents of the panel, not the borders, so compensate for the
2730 border width (TODO: get this width from the theme somehow).
2731 * TreeView.cs: Scrollable is true by default
2732 - Use invalidate instead of refresh where needed
2733 - Factor the scrollable value into scrollbar updating
2734 - Update the scrollbars if the Scrollable property is altered
2735 - Update the selected node if its ImageIndex is changed
2736 - Handle null nodes in UpdateNode (mainly so we don't have to
2737 check if selected is null when updating it
2738 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
2739 are factored into the visible count
2740 - Use VisibleCount for clarity in the code
2741 - When the font is changed we need to recurse through all the
2742 nodes and invalidate their sizes
2744 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2746 * Application.cs: set the DialogResult to fixed when the main form is
2747 hidden or destroyed while being modal.
2749 2006-05-25 Miguel de Icaza <miguel@novell.com>
2751 * Theme.cs: Use Tangoified messagebox icons.
2753 (GetSizedResourceImage): Also cope with width = 0 and do not
2754 trigger a warning in that case (0 means "give me your icon from
2755 the resouce, no special size needed).
2757 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
2759 * Application.cs: Leave runloop if the the main modal form is
2760 hidden (fixes #78484)
2762 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
2764 * BindingContext.cs : reject null datasource in Contains() and
2766 * CurrencyManager.cs : check data_member validity when data_source
2767 is dataset. When it is late binding, the initial position is -1.
2769 2006-05-24 Jackson Harper <jackson@ximian.com>
2771 * TreeNodeCollection.cs: Dont't recalculate the visible order on
2772 inserted nodes that aren't visible. This changes the
2773 max_visible_order which confuses scrollbar settings.
2774 - Use the enumerator to get the prev node instead of duplicating
2776 * TreeView.cs: Use new method for setting scrollbar values
2777 - Don't set the bounds every time the scrollbar is updated
2778 - When updating below the root node use an invalidate instead of a
2779 refresh to prevent the child controls (scrollbars) from being
2780 refreshed. (UpdateBelow still needs to be reworked anyways).
2781 - Reenable SetBottom now that visible orders are set correctly,
2782 added some debug code incase we ever get bad values there again.
2783 - Set the scrollbar max to 2 less then the max value, this
2784 compensates for the max value being one above the node count, and
2785 for scrollbars adding one extra "notch".
2786 - When drawing image nodes if there is an imagelist we draw the
2787 first image in the list if the supplied image index is out of the
2788 image list's bounds.
2790 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2792 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
2793 we receive a size change from the WM (Fixes #78503)
2795 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2797 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
2798 rectangle (Fixes #78501)
2800 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2803 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
2805 - Fixed MouseMove to no longer switch pressed state unless the left
2806 mouse button is pressed. Atsushi provided the original patch (#78485)
2808 2006-05-24 Jackson Harper <jackson@ximian.com>
2810 * ScrollBar.cs: New internal methods that allow us to change a
2811 couple values on the scrollbar (the most common case is maximum
2812 and large change) without getting multiple invalidates.
2814 2006-05-24 Chris Toshok <toshok@ximian.com>
2816 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
2817 (Edit): save off the original state in oldState, and set
2818 grid.is_editing to true.
2819 (OnKeyDown): abort editing if escape is pressed. also, call
2820 NextState if space is pressed.
2821 (OnMouseDown): call NextState.
2822 (NextState): factor out shared code from OnKeyDown and OnMouseDown
2823 here. Also, only invalidate the row header once (on the initial
2824 is_changing switch) to save on redraws.
2826 2006-05-24 Chris Toshok <toshok@ximian.com>
2828 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
2829 if the value in the cell is different than it was before. This
2830 keeps us from triggering a layout when we move around a datarid
2831 with a highlighted cell.
2832 (Edit): suspend layout when creating/positining the text box, and
2833 resume passing false so we don't ever actually re-layout.
2834 (ReleaseHostedControl): same.
2835 (EnsureTextBox): reformat slightly, and set WordWrap to false.
2837 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
2838 control-key sequences should go to the datagrid - remove that
2839 lock. Also, modify the conditions under which we move between
2840 cells when moving the cursor within a cell, and remove the "this"
2841 and "base" from field accesses. We weren't even consistent, given
2842 they all were in the base class.
2844 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
2846 * Binding.cs : (.ctor)
2847 An obvious NRE fix for BindingTest.CtorNullTest().
2849 2006-05-23 Chris Toshok <toshok@ximian.com>
2851 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
2852 them between lines. This fixes some quirks editing cells in the
2855 2006-05-23 Jackson Harper <jackson@ximian.com>
2857 * TreeView.cs: Use begin/end update when doing expand/collapse all
2858 so that we don't get flicker on the scrollbar.
2860 2006-05-23 Jackson Harper <jackson@ximian.com>
2862 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
2863 treenode calculations to be independant of the painting code. To
2864 do this nodes track a visible order which is calculated by the
2866 - Call new methods for expanding/collapsing nodes. These methods
2867 use scrollwindow so we don't have to update everything below the
2869 * TreeView.cs: Refactored drawing and scrolling code. We don't
2870 need to update nodes when drawing anymore or calculate scrollbar
2872 - Added new methods for expanding/collapsing nodes. These methods
2873 use ScrollWindow so as to not have to redraw all the nodes below.
2874 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
2875 we add/remove nodes or sort.
2876 - Handle removing the selected and the top node properly.
2878 2006-05-23 Chris Toshok <toshok@ximian.com>
2880 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
2881 maybe this should actually happen in the datagrid code?
2882 (EndEdit): no need to invalidate anything, given that
2883 ReleaseHostedControl causes the datagrid to relayout, which
2884 invalidates everything anyway.
2886 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
2888 (set_SelectionBackColor): call InvalidateSelection instead of
2890 (set_SelectionForeColor): same.
2891 (BeginEdit): Flesh this out a bit.
2892 (CancelEditing): only do any of this if we're editing/adding.
2894 (OnMouseDown): there's no need to cancel editing here, it's done
2896 (SetCurrentCell): only invalidate the current row header if it's a
2897 different row than the new one.
2898 (ShiftSelection): fix this to work like MS does.
2899 (ResetSelection): factor out the invalidation of selected_rows to
2900 InvalidateSelection.
2901 (SetDataSource): cancel any editing that's going on.
2903 * DataGridColumnStyle.cs
2904 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
2905 call the non-interface version.
2907 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
2908 header rectangle with the clip rectangle so we don't redraw the
2909 entire header for just a small area. Gets rid of the last flicker
2910 when horizontally scrolling.
2911 (DataGridPaintRow): same.
2913 2006-05-23 Mike Kestner <mkestner@novell.com>
2915 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
2916 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
2917 poorly placed checkbox on the MS control. Fixes Alex's unfiled
2918 Critical bug report.
2920 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
2922 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
2923 and this fixes #78493
2925 2006-05-23 Miguel de Icaza <miguel@novell.com>
2927 * Theme.cs (GetSizedResourceImage): Scale images if the proper
2930 * FileDialog.cs: Do not change the background for the side bar as
2931 it wont work nicely with the theme, and also reduces the artifacts
2932 in rendering the icons (which I want to fix too).
2934 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
2935 resources, not resgen resources.
2937 (PlatformDefaultHandler): Pull images using the new API.
2939 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
2941 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
2942 a reference to the hwnd and will not remove it unless there are
2943 no pending exposures (fixes #78341)
2944 * XplatUI.cs: Improved debug
2946 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
2948 * MenuAPI.cs : don't handle OnClick event when it was not the left
2949 button. Fixed bug #78487.
2951 2006-05-23 Mike Kestner <mkestner@novell.com>
2953 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
2954 prefer submenus to the top menu for item lookup, to avoid popping down
2957 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
2959 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
2960 Graphics.FillRectangle as the visual results are really bad (even
2961 on win). We now draw perfect arrows (and perfect shadows when the
2962 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
2963 Pen.DashPattern to draw the dots of each line.
2965 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
2967 * FileDialog.cs: Update the filename combobox when navigating through
2968 the ListView with the cursor keys. Fixes part 7 of bug #78446.
2970 2006-05-22 Mike Kestner <mkestner@novell.com>
2972 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
2975 2006-05-22 Mike Kestner <mkestner@novell.com>
2977 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
2978 requests. Fix a misspelled parameter and a copy paste exception error
2981 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
2983 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
2984 to get the same width/height (5/13) on X11 as the default font has on
2985 win32. This means that our DefaultFont emSize is smaller than the
2986 the MS SWF equivalent (even thought the width/height stays the same)
2988 2006-05-20 Jackson Harper <jackson@ximian.com>
2991 * MdiWindowManager.cs:
2992 * InternalWindowManager.cs: Make sure to use the border width from
2995 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
2997 * PrintDialog.cs: Implements printer details
2999 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
3001 * FileDialog.cs: Added focus handling for PopupButtonPanel.
3002 Fixes part 1 and 2 of bug #78446
3004 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
3006 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3007 instead of sticking to the first ever calculated value
3009 2006-05-19 Mike Kestner <mkestner@novell.com>
3011 * ComboBox.cs: fix mouse motion selection to use MousePosition and
3012 PointToClient, since Capture is set. Fixes #78344.
3014 2006-05-19 Mike Kestner <mkestner@novell.com>
3016 * ListView.cs: match MS behavior in Details view where items are not
3017 drawn if Columns.Count == 0.
3018 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3019 Use a separate pen to draw the check, since changing the width affects
3020 the box as well. Fixes #78454.
3022 2006-05-18 Miguel de Icaza <miguel@novell.com>
3024 * ListView.cs: ArgumentOutOfRangeException, single versions of the
3025 exception should throw the name of the invalid argument.
3027 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3028 there are no files listed.
3030 2006-05-18 Jackson Harper <jackson@ximian.com>
3032 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3035 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3037 * Control.cs: Brought back our old UpdateZOrder method as a private
3038 function and switched our calls from UpdateZOrder to the new one.
3039 This fixes the Paint.Net canvas disappearing bug.
3041 2006-05-18 Jackson Harper <jackson@ximian.com>
3044 * ThemeWin32Classic.cs:
3045 * InternalWindowManager.cs: Move the drawing into the theme,
3046 expose everything the theme should need from the window manager.
3048 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3050 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
3051 from the call to NativeWindow to avoid walking up the parent chain
3052 further than needed (speeds up setting cursors and avoids setting
3053 the wrong cursor if a parent has another cursor defined)
3054 * Cursor.cs: When loading an icon as cursor, MS uses the center of
3055 the icon as hotspot, not what's contained as hotspot in the icon
3056 file. This fixes the perceived drawing offset seen with Paint.Net
3058 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3061 - Store the calculated rectangle in Hwnd object and use it when
3062 setting the client size
3063 - Force Toolwindows to always be type Dock, to ensure they're on top
3065 2006-05-18 Mike Kestner <mkestner@novell.com>
3067 * ComboBox.cs: first pass at ComboBox rework. Layout is more
3068 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
3069 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
3070 Substantial refactoring to remove confusing nested classes. Coding
3071 standard and Get+Set->property refactorings. Shift to index based
3072 highlighting in ComboListBox instead of constantly using IndexOf and
3073 Items[]. Add invalidations on resize for DropDownList to fix ugliness
3074 in FileDialog growth. Draw borders manually since Simple mode needs
3075 to look like two independent controls. Make listbox border
3076 conditional to DropDownStyle. Improved OwnerDraw support.
3078 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
3080 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
3081 Don't set the disposed graphics to null, so we can throw the "right"
3082 exception if the graphics is reused later (added a flag to avoid
3083 double disposing). Some behaviours are different under 2.0 and are
3084 filled under bug #78448.
3086 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3088 * Control.cs: When double-buffering is enabled, we need to reset
3089 our graphics context between paint calls. Otherwise, any
3090 transformations and other alterations on the context will
3091 become cumulative (#77734)
3093 2006-05-18 Mike Kestner <mkestner@novell.com>
3095 * ListView.cs: do focused item selection like MS on clicks.
3096 Rework focus handling for ItemControl so LostFocus invalidates as
3098 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3099 the ListView ItemControl has focus.
3101 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
3103 * XplatUIX11.cs: If client_window ends up being width or height zero
3104 due to border settings, move it off window inside whole_window (#78433)
3106 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3108 * Mime.cs: Shrink the mime file cache correctly.
3110 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3112 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3114 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3116 * XplatUIX11.cs (AddExpose): More sanity checks
3118 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3121 - AddExpose: Don't add expose ranges outside the size of our
3123 - Cast opacity values to Int32 to avoid crashes with certain
3125 - Added disabled code paths that protect against illegal cross-
3126 thread painting (Developers.exe)
3128 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3130 * ProgressBar.cs: Invalidate the control when it's resized
3131 since block size is based on control size. (#78388)
3133 2006-05-16 Miguel de Icaza <miguel@novell.com>
3135 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3136 of setting the incoming argument to the "reset" value, we set the
3137 this.datamember to string.empty (before we were invalidating the
3142 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3144 * Form.cs: Only apply transparency settings after the form
3145 is created. (Fixes #77800)
3147 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3149 * ApplicationContext.cs: Grab the HandleDestroyed event so
3150 we know when to fire OnMainFormClosed
3152 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3154 * Application.cs: Introduced sub-class to allow tracking of
3155 threads and centralized triggering of the event mess for
3156 ThreadExit, AppExit, etc.. (#76156)
3158 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
3161 - Do not return a null icon index value for a mime subclass.
3162 Instead try the main mime type class too.
3163 - Seems that some newer distributions don't have a link to some
3164 gnome default icons anymore. So check the default gnome dir too.
3167 2006-05-16 Jackson Harper <jackson@ximian.com>
3169 * MdiClient.cs: Don't paint the parent background image if we have
3170 our own background image.
3172 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3175 - PerformLayout: Do not shrink space filled by DockStyle.Fill
3176 controls, all filled controls are supposed to overlap (#78080)
3177 - UpdateZOrder is supposed to update the control's z-order in the
3178 parent's z-order chain. Fixed to behave like that
3179 - BringToFront: Removed obsolete code
3180 - SendToBack: Simplyfied
3181 - SetChildIndex: Trigger layout calculations when Z-order changes
3182 since layout is done by z-order
3184 2006-05-16 Chris Toshok <toshok@ximian.com>
3186 [ fixes bug #78410 ]
3187 * DataGrid.cs (set_AlternatingBackColor): use
3188 grid_drawing.InvalidateCells instead of Refresh().
3189 (set_BackColor): call grid_drawing.InvalidateCells.
3190 (set_BackgroundColor): use Invalidate instead of Refresh.
3192 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
3193 invalidate the cell area.
3195 2006-05-15 Chris Toshok <toshok@ximian.com>
3197 [ fixes bug #78011 ]
3198 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
3199 on to DataGridPaintRow.
3200 (DataGridPaintRow): take a clip argument, and only draw the cells
3201 which intersect it. same with the not_usedarea.
3203 * Theme.cs (DataGridPaintRow) add @clip parameter.
3205 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
3206 XplatUI.ScrollWindow.
3207 (ScrollToRow): same.
3209 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
3210 with last column which was causing a gray swath to appear with the
3211 XplatUI.ScrollWindow code.
3213 2006-05-15 Chris Toshok <toshok@ximian.com>
3215 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
3216 use XplatUI.ScrollWindow.
3217 (VerticalScrollEvent): use XplatUI.ScrollWindow.
3219 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3221 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
3223 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3225 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
3226 file since there are no equivalent X11 cursors
3228 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3230 * MonthCalendar.cs : DateTimePicker should reflect selected date
3231 on mouse*up*, not mouse*down*. Fixed originally reported part of
3234 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3236 * TabControl.cs : When argument index is equal or more than tab
3237 count, just ignore. Fixed bug #78395.
3239 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3241 * Control.cs: Dispose all child controls when control is diposed (#78394)
3243 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3245 * ColorDialog.cs: Finally it is possible to select the color with
3248 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3250 * PrintDialog.cs: Fix typo
3252 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3254 * PrintDialog.cs: PrintDialog is not resizable
3255 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
3256 color. Made some ToolBar drawing methods protected virtual.
3258 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
3260 * PrintDialog.cs: Implementation of the PrintDialog
3262 2006-05-12 Chris Toshok <toshok@ximian.com>
3264 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
3265 thumb, instead use MoveThumb. This has the side effect of making
3266 most of the other thumb moving machinery use MoveThumb as well.
3267 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
3268 need to actually invalidate the rectangle where the new thumb will
3270 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
3271 We force an Update() after, so it's not as fast as it could be,
3272 but at least there's zero flicker and no droppings.
3273 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
3274 (UpdateThumbPos): add another argument (dirty), which says whether
3275 or not to calculate/add dirty regions which we later invalidate.
3276 For cases where we know we're going to use MoveThumb, we pass
3277 false for this. Otherwise, pass true.
3279 2006-05-12 Jackson Harper <jackson@ximian.com>
3281 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
3284 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
3286 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
3287 and GetClipRegion methods and UserClipWontExposeParent property.
3288 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
3289 overriding UserClipWontExposeParent property, setting to false, since
3290 Win32 handles the required expose messages to draw our clipped parent
3292 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
3293 PaintEventStart to set the user clip region if set.
3295 - Now internally tracking the Region for the control since we need to
3296 store it if the handle is not yet created and only set it when it
3297 becomes created. Before setting the region forced handle creation
3298 - Added code to draw the parents underneath a user-clipped region
3299 * Hwnd.cs: Added UserClip property
3301 2006-05-12 Chris Toshok <toshok@ximian.com>
3303 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
3304 (set_Maximum): same.
3305 (set_Minimum): same.
3306 (set_SmallChange): same.
3307 (OnMouseUpSB): remove the call to refresh when releasing the
3308 thumb. We shouldn't need it.
3310 2006-05-12 Miguel de Icaza <miguel@novell.com>
3312 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
3313 AutoSize set to None, we do not need to relayout everything, we
3314 just need to invalidate the current region.
3316 (Draw): Do not draw the entire ClientArea, just redraw the
3317 clip area being passed.
3319 * MdiClient.cs: Make MdiClient constructor with the Form argument
3322 2006-05-12 Jackson Harper <jackson@ximian.com>
3324 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
3325 parents background image, but strangely not their own.
3326 - (DrawStatusBarPanel): Take into account horizontal alignment
3327 when drawing the strings and icons.
3329 2006-05-12 Mike Kestner <mkestner@novell.com>
3331 * ListBox.cs: avoid invalidations for focus when the collection is
3334 2006-05-12 Chris Toshok <toshok@ximian.com>
3336 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
3337 invalidate the entire thumb area. Call InvalidateDirty which
3338 limits the redraw to the thumb itself and surrounding pixels.
3340 * XplatUIX11.cs (ScrollWindow): optimize copying.
3342 2006-05-12 Chris Toshok <toshok@ximian.com>
3344 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
3345 Figure out the positioning/layout in a single pass instead of
3346 multiple recursive invocations. Speeds up the initial display of
3347 the data grid. Also, make many things private that were
3348 originally public but unused outside this class.
3350 2006-05-11 Jackson Harper <jackson@ximian.com>
3352 * MdiClient.cs: Improved layout code.
3354 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
3356 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
3359 2006-05-11 Chris Toshok <toshok@ximian.com>
3361 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
3362 union of that will always be {0,0,width,height}.
3364 2006-05-11 Jackson Harper <jackson@ximian.com>
3366 * Form.cs: Match MS's DefaultSize for forms (they must have
3367 changed the size in sp2).
3369 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3371 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
3373 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3375 * TextControl.cs : Fixed bug #78109. This incorrect position
3376 comparison caused crash on automatic line split.
3377 * TextBoxBase.cs : reduce duplicate code.
3379 2006-05-10 Jackson Harper <jackson@ximian.com>
3381 * MdiClient.cs: Active form is only sent to the back when using
3382 the Next form functionality, when a form is clicked the current
3383 active shouldn't be sent to the back.
3384 - Layout the mdi windows when the container is first made visible.
3385 * Form.cs: Give the MdiClient a ref to the containing form when we
3388 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3390 * LinkLabel.cs : link_font could be uninitialized, so populate one
3391 before actual use. Fixed bug #78340.
3393 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3395 * XplatUIX11.cs : clipboard format native value is IntPtr.
3398 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3401 - Instead of showing context menus directly we send WM_CONTEXTMENU,
3402 which is passed up the parent chain by DefWndProc
3403 - We now handle WM_CONTEXTMENU to display any menu, or pass it
3404 to DefWndProc (#77956)
3405 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
3407 2006-05-10 Jackson Harper <jackson@ximian.com>
3409 * MdiClient.cs: We need to remove the controls from the mdi
3410 collection, when we close the window.
3411 * MdiWindowManager.cs: Special handling of closing mdi windows.
3412 * InternalWindowManager.cs: Make the close method virtual so the
3413 mdi window manager can handle it specially.
3415 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
3418 - Recalculate grid when the data source has changed
3419 - Matches styles provided by user from all data sources types
3420 * DataGridTableStyle.cs: For columns that provided by the user set the
3421 with the preferred value is there was unassigned.
3422 * CurrencyManager.cs: throw OnItemChanged event
3424 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3426 * PictureBox.cs: Don't animate until handle is created. Start animation
3427 when handle is created.
3429 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3431 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
3433 * XEventQueue.cs: We don't need to provide the extra info
3435 2006-05-10 Jackson Harper <jackson@ximian.com>
3437 * MdiClient.cs: If the mdi clients parent form has a background
3438 image set, we draw that background image for the mdi area's
3441 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3443 * TextBoxBase.cs: Set IBeam cursor (#78347)
3445 2006-05-10 Mike Kestner <mkestner@novell.com>
3447 * ToolBar.cs: fix some text padding issues with ButtonSize
3448 calculation. Update the default size to match MS documentation.
3449 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
3450 button size. Fixes #78296.
3452 2006-05-10 Mike Kestner <mkestner@novell.com>
3454 * ListBox.cs: use is_visible for scrollbar positioning in case the
3455 control isn't on screen yet. Fix off by one with Right vs Width
3456 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
3458 2006-05-10 Jackson Harper <jackson@ximian.com>
3460 * X11Dnd.cs: Drop to a control with another control on top of it.
3461 * ToolBar.cs: Work on a copy of the buttons list, so that it can
3462 be modified in click handlers. TODO: Look for similar problems in
3465 2006-05-09 Jackson Harper <jackson@ximian.com>
3467 * Form.cs: Window managers need the old window state when setting
3469 * InternalWindowManager.cs: Allow the base mdi window manager to
3470 handle more of the MDI only stuff (like maximize buttons).
3471 * MdiWindowManager.cs: Fix some snafus in changing the window
3472 state. Add all the menu functionality, for both popup and
3474 * MdiClient.cs: When a new form is selected the currently
3475 activated form is sent to the back, this matches MS.
3476 - Implement a new method to activate the next mdi child window.
3478 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3481 - Added new InternalCapture method to allow controls to prevent
3482 the capture behaviour on the click handlers
3483 - Switched to use InternalCapture
3485 - Using InternalCapture to prevent mouse captures from being released
3486 on mouse button release (Fixes #78100)
3487 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
3488 returns Form borders if a caption is present. (Fixes #78310)
3490 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3492 * TreeNode.cs: Changed serialization .ctor to not require every field
3493 to be present. (#78265)
3494 * OwnerDrawPropertyBag.cs: Added serialization .ctor
3496 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
3498 * MimeIcon.cs: for is faster than foreach for strings.
3500 2006-05-05 Mike Kestner <mkestner@novell.com>
3502 * CheckedListBox.cs: update check handling code to not use selected.
3503 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
3504 behavior for visual feedback, motion response, shift/ctrl handling,
3505 and properly deal with all 4 selection modes. Updates to bounds
3506 handling logic. Add scroll wheel support. [Fixes #77842]
3508 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3511 - Moved adding of Implicit controls into .ctor. That way, subsequent
3512 creation of the controls will not cause them to think they are
3513 toplevel windows (fixes #78200 header problem)
3514 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
3515 - Switched visibility setting of header control to use internal field
3516 to avoid triggering handle creation
3517 - Now checking if handle is created before causing a refresh when items
3518 are added (This makes us now match handle creation time with MS)
3519 * Splitter.cs: Removed loading of private splitter cursor, switched to
3520 Cursors version now that that is loading the right ones
3521 * Cursors.cs: Load proper splitter cursors from resources
3522 * Cursor.cs: Added second method of loading resource cursors for the
3523 VS.Net users amongst us
3525 2006-05-05 Mike Kestner <mkestner@novell.com>
3527 * ListView.cs: give header_control a minimum size based on the
3530 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3532 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
3533 window seems to do that with metacity, so set that type. (#78120)
3535 2006-05-05 Mike Kestner <mkestner@novell.com>
3537 * ListViewItem.cs: fix Details mode checkbox layout bug.
3538 * ThemeWin32Classic.cs: draw a ListView column header for unused space
3539 at the end of the header, if it exists. [Fixes for #78200]
3541 2006-05-04 Jackson Harper <jackson@ximian.com>
3543 * MdiClient.cs: Add a helper property to get the container form.
3544 * MdiWindowManager.cs: We have to make sure to use the menu origin
3545 when drawing the icons and buttons, this fixes maximized window
3546 icons/buttons on win32.
3547 * InternalWindowManager.cs: Reset the restore captions when a
3548 window goes from Maximized to Minimized and vice versa. Move the
3549 DrawMaximizedButtons into the MdiWindowManager source, tool
3550 windows can't be maximized. NOTE: This could use a little
3551 refactoring if time ever permits.
3553 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3555 * TextBox.cs: Add MWFCategoryAttributes
3556 * TextBoxBase.cs: Add MWFCategoryAttributes
3557 * Form.cs: Add MWFCategoryAttributes
3559 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3561 * Control.cs: Add MWFCategoryAttributes
3562 * ScrollableControl.cs: Add MWFCategoryAttributes
3564 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
3566 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
3567 Divider is true. Fix a little glitch in PropertyToolBar
3570 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
3573 - Dispose: Call base.Dispose, this causes the disposed event
3574 to be fired (and probably other, more important stuff)
3575 - SetVisibleCore: Set is_visible to true after creating the
3576 window so that the window still gets created invisible (if
3577 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
3578 to generate a WM_ACTIVE message
3579 * Form.cs: Call Dispose when we want to destroy the window, instead of
3580 just destroying the handle (Dispose will do that for us)
3582 - RootWindow also needs a queue, so we can properly process the
3583 property change events from RootWindow (like Activate)
3584 - Generatic synthetic WM_ACTIVE message when the active window is
3587 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3589 * LinkLabel.cs: Trigger a recalc of our label dimensions when
3592 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3594 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
3595 for determining width and height (image might not be assigned if
3596 we're drawing an imagelist)
3598 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3600 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
3601 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
3603 * Theme.cs: No longer returns hardcoded menu height, instead calls
3605 * Form.cs (OnLoad): Scaling happens before triggering Load events
3608 2006-05-01 Mike Kestner <mkestner@novell.com>
3610 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
3612 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3614 * TextBoxBase.cs: Removed Fixme
3615 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
3617 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3620 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
3621 the rectangle relative to the parent, considering borders. We
3622 don't really want that.
3623 - ScrollWindow: Fixed warning to be more understandable
3624 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
3625 scrollbars and scroll only the visible area
3626 * RichTextBox.cs: Removed debug output
3628 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3630 * NumericUpDown.cs (Text): Just use base
3631 * UpDownBase.cs: Ensure txtView is created before using it
3633 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3635 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
3636 casting to IntPtr to avoid 64bit overflow errors
3638 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3641 - AllowDrop: Don't force handle creation.
3642 - CreateHandle: Added call to tell driver if we're allowed to drop
3644 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3646 * FileDialog.cs: Remember the last directory not only for the
3647 current instance but also for new FileDialog instances.
3649 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3651 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
3652 broke sending async messages
3654 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3657 - ScrollWindow: Fixed method. We finally generate expose events again
3658 for scrolled areas. This was causing 'garbage' when scrolling
3659 textbox and other controls that used ScrollWindow
3660 - Switched from using the regular queue for paint events to the MS
3661 model of 'generating' paint events when the queue is empty.
3662 We use the new XQueueEvent.Paint subclass to store which windows
3664 - AddExpose now takes the x/y/width/height of the exposed area
3665 and inserts the window into the paint queue if not already there
3666 - InvalidateWholeWindow: Switched to use new AddExpose method
3667 - UpdateMessageQueue: Added which queue to monitor for paint events
3668 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
3669 the unlikely case nothing above handles it. We reset the expose
3670 pending states to get them off the queue.
3671 - GetMessage: Now pulls a paint event if no other events are in the
3673 - Invalidate: Switched to new AddExpose method
3674 - PeekMessage: Updated to understand pending paint events
3675 - UpdateWindow: Fixed logic bug. We were only updating if the window
3676 didn't need updating. Also switched to sending WM_PAINT directly,
3678 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
3679 and random access Remove(). The random access is needed to handle
3680 UpdateWindow() where a WM_PAINT is sent directly without accessing
3682 * ScrollBar.cs: Added Update() calls to cause immediate updates to
3683 allow for better feedback when scrolling. Scrollbars are small and
3684 the immediate update should make it 'feel' more responsive without
3685 slowing things down. ScrollBar still needs it's invaliate logic
3686 updated to not always invalidate the whole bar on certain changes.
3688 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3691 (BackColor): if the control does not support a transparent background,
3692 return the default backcolor when the parent backcolor is transparent.
3694 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
3696 * Application.cs: Updated to new StartLoop/GetMessage API
3697 * RichTextBox.cs: Provide some output on RTF parsing errors
3698 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
3699 new queue_id argument to GetMessage and PeekMessage to allow faster
3700 handling of per-thread queues in drivers.
3701 * Hwnd.cs: Added Queue tracking and property
3702 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
3703 * XEventQueue.cs: Added thread trackingA
3704 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
3706 - Implemented new per-thread queue
3707 - GetMessage: Fixed return/break behaviour on several cases. We were
3708 returning stale messages in some cases, instead of just processing
3711 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
3713 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
3715 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
3717 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
3718 fixed off-by-one comparisons between Width/Height and Right/Bottom.
3720 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
3722 * PropertyGridView.cs: Fix drop down width.
3724 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3726 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
3727 a mess in DrawToolBar, so I removed one of them.
3729 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3731 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
3732 needed (clip). Otherwise we get artifacts.
3734 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3736 * FixedSizeTextBox.cs: Added constructor to allow specifying which
3738 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
3739 and switched FixedSizeTextBox to only be fixed vertical (#78116)
3740 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
3741 if it matches the scale base font (avoids unneeded scaling)
3743 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
3745 * X11DesktopColors.cs: One gtk_init_check should be enough
3747 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3749 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
3752 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3755 - Generate OnTextChanged for Backspace even if we're only deleting
3756 the current selection
3757 - When setting the Text property, only select all text if the
3758 control does not have focus when it is being set. Otherwise
3759 just place the cursor at the beginning of the control
3761 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
3763 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
3764 Added a little helper to draw PropertyGrid ToolBar with a different
3765 border and a different BackColor.
3766 * PropertyGrid.cs: Some background parts didn't get painted with the
3767 correct background color. Added a class that helps us to draw the
3768 correct border for PropertyGridView and a class that helps us to
3769 draw ToolBars with a different backcolor
3770 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
3772 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
3774 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
3775 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
3777 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3779 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
3780 into the palette entries. Also, since we're working on a copy
3781 we needed to copy the palette back onto the bitmap.
3782 * Cursor.cs: Same fix as XplatUIWin32.cs.
3784 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3786 * ImageListStreamer.cs: Need to read the var (or we're off)
3788 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3790 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
3791 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
3792 TextBoxBase.cs: Unused var fixes
3793 * AxHost.cs: Small 2.0 fix
3794 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
3795 as it seems that is what at least Metacity expects. This will make
3796 icons show up on 64bit platforms. We still have some 64bit size
3797 issues, though, since the startup app window size still won't match.
3799 2006-04-25 Mike Kestner <mkestner@novell.com>
3801 * *.cs: cleanup newly reported exception var unused warnings.
3803 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3805 * ThemeWin32Classic.cs: Button image alignment now matches exactly
3808 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3810 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
3811 image. The image position is always the same, no matter if the
3812 button is pressed or not.
3814 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3816 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
3817 selection and set the correct filename for SaveFileDialog.
3818 Patch by Emery Conrad.
3820 2006-04-24 Mike Kestner <mkestner@novell.com>
3822 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
3823 check for item.X outside the ClientRect instead of item.Y. Fixes
3826 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3828 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
3829 trust that value blindly and do some sanity check. Fixes bug #77814.
3831 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3833 * ImageListStreamer.cs: save the mask as a 1bpp image.
3835 2006-04-21 Mike Kestner <mkestner@novell.com>
3837 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
3838 pass Checked and Indeterminate to the Theme Engine. Improve
3839 encapsulation with ListBox.
3840 * ListBox.cs: Keep a StringFormat instead of calculating it every item
3841 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
3842 nested types. Move all CheckState functionality to CheckedListBox.
3843 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
3844 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
3845 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
3846 single base list. Fix scrollbar sizing and placement to mirror MS.
3847 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
3849 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
3850 for CheckedListBox by using new DrawItemState info. Center the
3851 checkboxes on the items. Use new StringFormat property.
3853 2006-04-18 Jackson Harper <jackson@ximian.com>
3855 * Form.cs: MdiChildren don't do default locations the same way as
3856 regular forms. This prevents a crash when trying to position the
3859 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
3861 * PropertyGridTextBox.cs: Formatting, copyright
3862 * PropertiesTab.cs: Formatting
3863 * PropertyGrid.cs: Formatting
3864 * PropertyGridView.cs: Formatting, fix drop down, enabled double
3865 click toggling of values
3867 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
3869 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
3870 * Control.cs (.ctor): verify_thread_handle is static, don't reset
3871 every time a control is created
3872 * Application.cs: Removed obsolete EnableRTLMirroring method
3874 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
3876 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
3877 SelectedIndex to -1. Fixes bug #78121.
3879 2006-04-17 Jackson Harper <jackson@ximian.com>
3881 * Binding.cs: Handle null values for Current and BindingContext.
3882 This occurs when binding is a little delayed.
3883 * CurrencyManager.cs: return null for Current when there are no
3885 - Hookup to the listchanged event on the DataView and update
3886 bindings when the list is changed. This fixes late binding of
3889 2006-04-17 Jackson Harper <jackson@ximian.com>
3892 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
3895 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
3897 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
3899 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
3900 with the correct ButtonState
3902 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
3904 * XplatUIX11.cs: Improved distinguishing between window types to
3905 tell the WM a type closer to what the app wants (Fixes #78107)
3907 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
3909 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
3912 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
3914 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
3915 drawing code to reflect the size grip changes
3917 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3919 * ImageListStreamer.cs: fix handling of the mask that follows the main
3920 bitmap when deserializing and serialize it properly. The generated mask
3921 should better be a 1bpp image, but I'll do that later.
3923 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
3925 * FileDialog.cs: Show something in the DirComboBox on *nix if the
3926 path doesn't fit into some of our Current.Places
3928 2006-04-13 Jackson Harper <jackson@ximian.com>
3930 * ComboBox.cs: Use borders instead of drawing our own decorations,
3931 try to obey correct rules for heights.
3934 * ThemeClearLooks.cs:
3935 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
3936 this is now handled by borders.
3937 - Remove unused DrawListBoxDecorationSize method.
3939 2006-04-13 Mike Kestner <mkestner@novell.com>
3941 * MenuAPI.cs: null guarding for the disbled click check fixes crash
3944 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
3946 * ThemeWin32Classic.cs:
3947 - Fixed CPDrawStringDisabled
3948 - Corrected drawing of disabled menu items
3949 - Fixed drawing of disabled radio buttons (bug #78095)
3950 - Draw check in a disabled CheckBox with color ControlDark
3952 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3954 * Form.cs: Use the provided width when calculating the menu size;
3955 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
3956 and ClientSize.Width won't be updated yet
3957 * Application.cs: Use Visible instead of Show() to make form visible,
3958 this way we create the handle later and menusize is considered
3960 2006-04-12 Mike Kestner <mkestner@novell.com>
3962 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
3965 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3967 * TextBox.cs: Implemented context menu
3969 2006-04-12 Mike Kestner <mkestner@novell.com>
3971 * ListView.cs: implement box selection. fixes #77838.
3972 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
3974 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3976 * XplatUIX11.cs: Added setting of window type when transient window
3977 is created (metacity would move it otherwise)
3978 * X11Structs.cs: Added WINDOW_TYPE atoms
3979 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
3980 background (the control is Opaque but still wants transparent
3983 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3985 * Control.cs: Added OnPaintBackgroundInternal to allow controls
3986 that set Opaque but don't mean it (like all ButtonBase-derived
3987 controls) to still draw their background
3988 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
3991 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3993 * Control.cs (PaintControlBackground): Set the graphics object
3994 on our PaintEvent to null to prevent it from being disposed
3995 when the PaintEvent gets disposed
3997 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
3999 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4000 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4002 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4005 - Added transparency check to BackColor property. Transparent
4006 backgrounds are only allowed if the control styles permit it
4007 - Added recursive painting of parent control background and
4008 foreground if a control with a transparent backcolor is drawn
4009 (Thanks to Tim Ringenback for providing his 'hack' as a base
4010 for this patch) Fixes #77985 and #78026.
4011 - Added Opaque style check before calling OnPaintBackground, no
4012 need to draw the background if the control is opaque
4013 - Removed ControlAccessibleObject owner variable (inherited from
4014 base, no need to define again)
4015 - Added some documentation links explaining the drawing events
4018 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4020 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4021 that the affected control is the located at the left border of our
4022 parent (Fixes #77936)
4024 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4026 * TextBoxBase.cs: When rendering disabled or readonly controls,
4027 draw the background with 'Control' instead of 'Window' color as
4028 long as the user hasn't specifically set a color
4030 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4032 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4033 since that won't be updated if the user types text (only if it's
4034 programatically set)
4036 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4038 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4039 layout changes do to app-triggered resizes will have the proper
4040 display rectangle for layout
4042 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
4044 * ThemeWin32Classic.cs:
4045 - Make use of the SystemBrushes and SystemPens wherever possible
4046 - Corrected some highlight colors
4047 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4049 * Theme.cs: Added Empty field to CPColor struct
4051 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4053 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4054 is displayed when calculating the display rectangle. Thanks to Mike
4055 for teaching me the err of my ways.
4057 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
4059 * ScrollableControl.cs:
4060 - Rewrote DisplayRectangle code, now returning the proper x/y coords
4061 (instead of 0,0) and we now return the real width/height instead of
4062 just the clientrectangle, adjusted for padding. The rectangle is
4063 now cached and created by the new CalculateDisplayRectangle method.
4064 - Created new CalculateDisplayRectange method, which basically does
4065 what get_DisplayRectangle() did originally, but now using the
4066 right edge instead of DisplayRectangle to determine the size of
4068 - get_Canvas(): Fixed it to properly calculate canvas for
4069 right/bottom controls which seem to be placed to the right/bottom
4070 of any controls that have a fixed location
4071 - Removed TODO that's taken care of
4072 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4073 and SetDisplayRectLocation according to new MSDN2 docs
4074 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4075 event when that is called, this is added for compatibility
4076 - ScrollControlIntoView(): Implemented.
4077 - Switched scrollbars to be implicit, they shouldn't be selectable
4078 * ContainerControl: Now that ScrollControlIntoView is implemented, we
4079 call it when the active control is set/changed
4080 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4081 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4082 implicit_control variable (used for native Win32 message generation)
4083 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
4084 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4085 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4086 * XplatUIStructs.cs: Added ScrollBarCommands enum
4088 2006-04-10 Jackson Harper <jackson@ximian.com>
4091 * CheckedListBox.cs:
4098 * PrintPreviewControl.cs:
4104 * UpDownBase.cs: Fixup base event overrides.
4106 2006-04-06 Mike Kestner <mkestner@novell.com>
4108 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4109 all user-initiated value changes to min <= value <= max-thumbsz+1.
4110 (set_Value): check for vert/horiz when calculating new thumb position.
4111 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4113 (OnMouseMoveSB): refactor the thumb dragging code and refine
4114 invalidation logic to reduce flicker.
4115 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4116 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4117 (UpdateThumbPosition): small code readability cleanup
4119 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
4121 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4124 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4126 * ThemeNice.cs: Use a better graphics effect when a button is pressed
4128 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4130 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4131 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4132 This dramatically reduces the number of Pen.Dispose calls.
4133 Where possible call ResPool methods only once instead of calling it
4134 over and over again (for example for the same color).
4136 2006-04-06 Mike Kestner <mkestner@novell.com>
4138 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4139 Also remove an unused private field on the collection. Fixes #77972.
4141 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4143 * ThemeNice.cs: Added ToolBar drawing code
4145 2006-04-06 Mike Kestner <mkestner@novell.com>
4147 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4148 I'm assuming that means we need to look up the toplevel for the
4149 provided control. Fixes the crash trace in #77911 but exposes another
4150 crash in some strange reflection usage in NDocGui.
4152 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4154 * ThemeNice.cs: Gave it a little silver touch and added Images
4156 * FontDialog.cs: FontDialog is not resizable
4157 * FileDialg.cs: Added SizeGripStyle.Show
4159 2006-04-05 Jackson Harper <jackson@ximian.com>
4161 * KeyboardLayouts.cs: Remove warning.
4163 2006-04-05 Jackson Harper <jackson@ximian.com>
4165 * Control.cs: Enable OnPaintInternal so we can use it for drawing
4166 all of our controls instead of Paint +=.
4181 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4182 use OnPaintInternal. Remove Width/Height and Visible checks in
4183 paint handler, this is done at a higher level now.
4184 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4185 * PaintEventArgs.cs: Add a handled flag so controls that don't
4186 want anymore painting after OnPaintInternal can make sure OnPaint
4189 2006-04-05 Mike Kestner <mkestner@novell.com>
4191 * Form.cs: fix the menu WndProc hacks to respect the native enabled
4192 state of the form, so that we don't process events when Modal dialogs
4193 are up. Fixes #77922.
4195 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
4197 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
4200 2006-04-05 Mike Kestner <mkestner@novell.com>
4202 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
4204 2006-04-05 Mike Kestner <mkestner@novell.com>
4206 * ListView.cs (HeaderMouseMove): null guarding for the over column
4207 when setting up the drag_to_index. Fixes #78015.
4209 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4211 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
4212 in the taskbar. Transient windows seem to accomplish that.
4214 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4217 - Re-enabled CreateParams.X/Y code for FormStartPosition
4218 - Added code for manual placement when creating the Control
4219 - Incomplete patch to treat MDI forms differently when
4220 setting the ClientSizeCore. (Still need to figure out handling
4223 - When we're explicitly setting the X/Y position of a non-Child
4224 window, let the WM know. Metacity really wants this.
4226 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4228 * ThemeNice.cs: Added CPDrawButton
4230 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4232 * ThemeNice.cs: Changed the color for focused buttons and activated
4233 the arrows for small scroll buttons.
4235 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4237 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
4238 anymore. Changed some method modifiers to protected (virtual)
4239 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
4241 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
4242 Updated drawing of menus, buttons and progressbars; added
4245 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4247 * ImageListStreamer.cs: implemented serialization/deserialization
4250 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
4252 * ThemeWin32Classic.cs:
4253 - Removed all the DrawFrameControl stuff; CPDrawButton,
4254 CPDrawCheckBox and CPDrawRadioButton are now handled directly
4256 - Updated and corrected the drawing code of CPDrawButton,
4257 CPDrawCheckBox and CPDrawRadioButton to better match ms
4258 - Updated theme checkbox and radiobutton code to use the CP*
4261 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4263 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
4266 2006-03-31 Jackson Harper <jackson@ximian.com>
4268 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
4270 * UpDownBase.cs: Don't CreateGraphics manually, use a
4271 Refresh. Ideally we would invalidate the correct areas here.
4273 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4276 - We now track the mapping state of windows. If a window (or
4277 one of it's parents) is not mapped we no longer permit
4278 WM_PAINT messages to be generated since we'd otherwise get
4279 lots of BadMatch X errors. Jackson did all the work figuring
4281 - Destroying the caret if the window it's contained in is
4282 destroyed. Can't use regular DestroyCaret method since it
4283 might fall into a drawing function (trying to remove the
4284 caret) and with that generate new BadMatch errors. Again,
4285 Jackson tracked this down.
4286 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
4287 make sure we send the messages to all windows. (The old code
4288 would send the WM_DESTROY to the window, and then all child
4289 windows would be 'gone' because the WM_DESTROY handle lookup
4290 would no longer find the destroyed window)
4291 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
4292 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
4294 2006-03-31 Jackson Harper <jackson@ximian.com>
4296 * ScrollableControl.cs: Dont recalc if we are not visible.
4298 2006-03-31 Mike Kestner <mkestner@novell.com>
4300 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
4301 the visibility branch.
4303 2006-03-31 Jackson Harper <jackson@ximian.com>
4305 * ScrollBar.cs: Cap values when incrementing/decrementing.
4307 2006-03-31 Mike Kestner <mkestner@novell.com>
4309 * MenuAPI.cs: setup menu.tracker for popup/context menus.
4310 * ToolTip.cs: guard against timer expirations with no active control.
4311 Not sure why it happened.
4313 2006-03-31 Mike Kestner <mkestner@novell.com>
4315 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
4317 * ToolTip.cs: Position the tooltip based on where the cursor is at
4318 popup time, not at MouseEnter time. Add a Down state so that we don't
4319 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
4320 positioning offset. Lookup DisplaySize at positioning time, since it
4321 can theoretically change during invocation.
4322 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
4323 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
4325 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4327 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
4328 Fixes behaviour when the Text property of the box is String.Empty
4330 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4332 * XplatUIX11.cs: Only send mouseleave for our client windows, not
4333 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
4336 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4338 * FileDialog.cs: Visual enhancement for the popup buttons in
4341 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4343 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
4346 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
4348 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
4349 highlighted menu items to match ms
4351 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
4353 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
4355 2006-03-30 Mike Kestner <mkestner@novell.com>
4357 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
4358 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
4359 go active to account for HotLight to Selected transition.
4360 * MenuItem.cs: add internal Selected prop. Fill out the Status
4361 property by calculating it from item info. Add HotLight,
4362 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
4364 2006-03-30 Mike Kestner <mkestner@novell.com>
4366 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
4368 2006-03-29 Jackson Harper <jackson@ximian.com>
4370 * Form.cs: Implement TODO.
4372 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4374 * PrintPreviewDialog.cs: Implemented missing methods and events; still
4375 missing proper dialog setup in the constructor
4377 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4379 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
4381 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
4382 - Fixed ResetBindings and removed TODO
4383 - Added check for cross-thread calls to get_Handle()
4384 - Added Marshaller attribute for set_Font to satisfy class status
4385 * FontDialog.cs: Removed TODOs that seemed implemented
4386 * UpDownBase.cs: Removed unneeded TODO and Fixme
4387 * MessageBox.cs: Implemented support for Default button and removed TODO
4388 * FileDialog.cs: Removed obsolete TODO
4389 * DomainUpDown.cs: Removed obsolete TODO
4390 * ButtonBase.cs: Removed obsolete TODO
4391 * XplatUIWin32.cs: Removed obsolete TODO
4393 - Removed obsolete TODO
4394 - Calling CheckAcceptButton when the acceptbutton is changed to allow
4395 internal status updates
4396 - Making sure the active control is selected when the control is created
4397 * CurrencyManager.cs: Removed obsolete TODO
4399 2006-03-29 Mike Kestner <mkestner@novell.com>
4401 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
4402 of PrintPreviewDialog and RichTextBox.
4404 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4406 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
4407 DarkDark, Light and LightLight colors for a specific color
4408 * ThemeWin32Classic.cs:
4409 - Use Button drawing code to draw RadioButtons and CheckBoxes with
4411 - Make use of the new ResPool helper CPColor
4412 - Draw ProgressBar and StatusBar with correct 3D borders
4414 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4416 * ColorDialog.cs: Return selected color. Fixes bug #77940.
4418 2006-03-28 Mike Kestner <mkestner@novell.com>
4420 * ListView.cs: fix Icon layout to plan for scrollbar widths when
4421 calculating col/row counts.
4423 2006-03-28 Mike Kestner <mkestner@novell.com>
4429 switch to explicit interface method implementation for some methods
4430 corcompare identifies as inconsistent with MS.
4432 2006-03-28 Mike Kestner <mkestner@novell.com>
4436 add a few missing methods from the class status output.
4438 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
4440 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
4443 2006-03-28 Mike Kestner <mkestner@novell.com>
4445 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
4447 2006-03-27 Mike Kestner <mkestner@novell.com>
4449 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
4450 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
4452 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
4454 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
4456 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4458 * ThemeWin32Classic.cs:
4459 - GroupBox: Inserted a little gap between the text and the lines
4461 - Made the code in CPDrawBorder3D more readable
4462 - Corrected the drawing location of the up and down arrows in
4465 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4467 * ControlPaint.cs: Corrected line widths in DrawBorder for
4468 ButtonBorderStyle Inset and Outset
4470 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4472 * ThemeWin32Classic.cs:
4473 - Rewrote the totally broken CPDrawBorder3D method. That was
4474 one of the main problems for the terrific ThemeWin32Classic
4476 - Updated and corrected Button drawing
4477 - Correct the dimensions of the SizeGrip to match ms ones
4478 - Removed a small drawing glitch in DrawComboBoxEditDecorations
4479 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
4480 Border3DStyle.Sunken to match ms.
4482 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4484 * ThemeWin32Classic.cs: First small part of the "de-uglify
4485 ThemeWin32Classic" effort, SizeGrip
4487 2006-03-24 Jackson Harper <jackson@ximian.com>
4489 * XplatUIX11.cs: Give a max idle time of one second, this matches
4490 MS and forces an Idle event every second when there are no other
4491 events in the queue.
4493 2006-03-24 Mike Kestner <mkestner@novell.com>
4495 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
4496 * ListView.Item.cs: fix layout issues with null image lists and images
4497 smaller than checkbox size.
4498 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
4499 mode like MS does. It's weird, but consistent. ;-)
4502 2006-03-24 Mike Kestner <mkestner@novell.com>
4504 * ListView.cs: Scroll wheel support for the item control. Fixes
4507 2006-03-23 Jackson Harper <jackson@ximian.com>
4509 * ScrollableControl.cs: Special case negative sized areas, not
4511 * MonthCalendar.cs: Save the rect of the clicked date so we can
4512 use it for invalidation.
4513 - Try to cut down on the number of invalidates
4514 - Invalidate the rect the mouse is over and was over when moving
4515 the mouse, so we get the focus box following the cursor.
4517 2006-03-23 Mike Kestner <mkestner@novell.com>
4519 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
4520 focus rectangle drawing. Fixes #77835.
4522 2006-03-23 Mike Kestner <mkestner@novell.com>
4524 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
4525 the if and else if and reverting back to the original == check on the
4528 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4530 * FontDialog.cs: Update the example panel if the selected index of
4531 the fontListBox changes.
4533 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4535 * FileDialog.cs: Make FileDialog remember which directory it was in
4536 last in the same execution.
4538 2006-03-22 Mike Kestner <mkestner@novell.com>
4540 * FileDialog.cs: make the DropDownMenu on the toolbar display
4541 RadioChecks since they are mutually exclusive and that's what MS does.
4543 2006-03-22 Mike Kestner <mkestner@novell.com>
4545 * Theme.cs: add Color param to CPDrawMenuGlyph.
4546 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
4547 checks and radio marks and arrows are visible on highlighted items.
4548 * ControlPaint.cs: update to use new Theme signature.
4550 2006-03-22 Mike Kestner <mkestner@novell.com>
4552 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
4553 is active. Fixes #77870.
4555 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4557 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
4558 to be focused/selected after startup
4560 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4563 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
4564 CustomColors and ShowHelp properties
4565 - Some internal rewrites to get better results when using the
4568 2006-03-22 Mike Kestner <mkestner@novell.com>
4570 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
4571 HoverSelection. Fixes #77836.
4573 2006-03-22 Mike Kestner <mkestner@novell.com>
4575 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
4576 ToggleButtons. (De)Sensitize the Back button around a stack count of
4577 1, not 0. Update ButtonSize based on a pixel count of the win32
4578 control. Adjust the toolbar size/location for new button size.
4580 2006-03-22 Jackson Harper <jackson@ximian.com>
4582 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
4584 * ScrollBar.cs: When doing increments and decrements we need to
4585 set the Value property so that ValueChanged gets raised. A
4586 possible optimization here would be to make an internal SetValue
4587 that doesn't invalidate immediately.
4588 * ToolTip.cs: Tooltips get added to their container (when
4589 supplied) so they get disposed when the container is disposed.
4590 - Don't create tooltips for String.Empty. This prevents all these
4591 little 2-3 pixel windows from showing up when running nunit-gui
4593 * Form.cs: Don't set topmost when setting the owner if the handles
4594 haven't been created yet. The topmost set will happen when the
4595 handles are created.
4597 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
4600 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
4601 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
4602 visible (to allow them to recalculate their sizes)
4604 2006-03-21 Mike Kestner <mkestner@novell.com>
4606 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
4607 methods. Removed a ton of redundant code. Still not really happy with
4608 the border rendering, but I think that's mainly because of the
4609 ControlDarkDark being black instead of a dark grey. Depending on how
4610 close we want to be, we might want to revisit those color choices.
4611 Among the new features added during the refactor were DropDownArrow
4612 pressed rendering, Disabled image rendering. Proper flat appearance
4613 boundary rendering. Removed the Divider and Wrapping dividers since I
4614 can't figure out any combination of themes and conditions to make the
4615 MS control draw a horizontal line on a toolbar despite what the
4616 Divider property docs indicate.
4617 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
4618 conditions and incorrect layout. Updated to coding standard.
4619 * ToolBarButton.cs: refactored layout and positioning code from
4620 ToolBar to here. Invalidate wherever possible instead of forcing
4621 redraws of the whole toolbar.
4622 (Known remaining issues: explicit ButtonSize smaller than provided
4625 2006-03-21 Mike Kestner <mkestner@novell.com>
4627 * ContextMenu.cs (Show): use the position parameter instead of just
4628 showing at the MousePosition.
4630 2006-03-21 Jackson Harper <jackson@ximian.com>
4632 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
4633 control handle this.
4634 * TreeNodeCollection.cs: If we are clearing the root node we need
4635 to reset top_node so calcs can still happen.
4636 * ThemeWin32Classic.cs: This is a Flags so we need to check
4639 2006-03-21 Jackson Harper <jackson@ximian.com>
4641 * DataGrid.cs: Create columns when the binding context has been
4643 * X11Structs.cs: Keysyms are uints.
4644 - Add size to fix build.
4646 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
4648 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4650 - Added ResetMouseHover method to allow controls to retrigger
4651 hovering if they need it more than once
4652 - Implemented MouseHoverTime and MouseHoverSize properties
4653 * Timer.cs: Start() must reset the interval
4654 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
4657 2006-03-21 Jackson Harper <jackson@ximian.com>
4659 * X11Keyboard.cs: improved layout detection. Move the nonchar
4660 tables into this file.
4661 * KeyboardLayouts.cs: Move the tables into resource files.
4663 2006-03-21 Mike Kestner <mkestner@novell.com>
4665 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
4667 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
4669 * Mime.cs: Various speed optimizations. Looking up mime types
4670 is now 2 times faster than before
4672 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4674 * CreateParams.cs: Added internal menu field
4676 - Switched call order for UpdateBounds; now we always call
4677 the one that also takes ClientSize, and we're calculating the
4678 client size via driver method in the others. The previous
4679 method of tracking client size by difference wasn't working
4680 for forms where even the starting client size wouldn't match
4681 the overall form size (due to borders) (Part of fix for #77729)
4682 - CreateParams(): Do not use parent.Handle unless the handle is
4683 already created. Causes havoc with Nexxia and throws off our
4684 creation of controls
4686 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
4687 - Switched handling of ConfigureNotify over to new PerformNCCalc
4688 method (consolidates code)
4689 - Changed RequestNCRecalc to use new PerformNCCalc method
4690 - Added calls to RequestNCRecalc when menus and borders are changed
4691 to allow app to set NC size. (Part of fix for #77729) This matches
4692 when MS send a WM_NCRECALC on Win32 windows.
4693 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
4694 (Part of fix for #77729). This matches what MS does, they also
4695 send that message when the form is made visible.
4696 - XException.GetMessage: Improved usability of X errors by including
4697 a translation of the window into Hwnd and Control class
4698 - Improved debug info for window creation, reparenting and destruction
4699 - Created helper method WindowIsMapped() [Currently not used]
4700 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
4702 - CreateParams: Now setting our menu on the new internal menu field
4703 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
4704 avoid calculating the same property twice
4706 - Improved usability of ToString() for debugging purposes
4707 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
4708 determine the height of the menu, instead of just the font. This
4709 required to also create a graphics context and to keep a bmp
4710 around (for performance reasons)
4712 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4714 * MenuAPI.cs: Added OnMouseUp method
4716 - Now remembering the requested client size, avoids size errors
4717 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
4718 instead of base if the menu is active. This is required due to
4719 control now capturing and releasing on down/up and it would
4720 prematurely release our menu capture
4722 2006-03-17 Jackson Harper <jackson@ximian.com>
4724 * KeyboardLayouts.cs: Add the czech layouts.
4726 2006-03-16 Jackson Harper <jackson@ximian.com>
4728 * Control.cs: Use the viewport space when sizing not the controls
4729 client size, so things like ScrollableControl that effect the
4730 viewport size (when scrollbars are added) are computed correctly.
4731 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
4733 - Handle creating BindingManagers for null data sources.
4734 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
4735 source, otherwise when rows are added they are added to the 'fake'
4736 datasource and we will crash when trying to set the position in
4738 - Use Implicit scrollbars on the datagrid so they arent
4741 2006-03-16 Jackson Harper <jackson@ximian.com>
4744 * InternalWindowManager.cs:
4745 * MdiWindowManager.cs:
4746 * X11Keyboard.cs: I really want Mike to love me again (fix
4749 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
4752 - OnMouseDown: Switch to editing mode when clicking on the cell
4753 even if we're clicking on the cell that's currently
4755 - ProcessGridKey: Left/Right now wrap like MS.Net does
4756 - ProcessGridKey: Tab now knows to add a new row when tab is
4757 pressed in the cell of the last column of the
4759 - ProcessGridKey: Enter now adds another row if pressed in the last
4760 row and selectes the new row, same column cell
4761 - ProcessGridKey: Home/End navigate columns, not rows, like
4762 originally implemented
4763 - Broke ProcessKeyPreview code out into an extra Internal method
4764 so it can be called from the edit code
4765 * DataGridTextBox.cs (ProcessKeyMessage):
4766 - Switched to accept Tab keypresses
4767 - Added F2 handling to allow jumping to the end of the edited cell
4768 - Added logic to allow moving caret left/right inside edited cell
4769 and making the edited cell jump when the caret hits cell borders
4770 - Tab and Enter are now passed to the datagrid after being handled
4772 - Removed capture code now that Control handles it
4773 - set_SelectionStart now ensures caret is visible
4775 2006-03-16 Jackson Harper <jackson@ximian.com>
4777 * TrackBar.cs: Debackwards the increment/decrement for handling
4778 mouse clicks on the bar with vertical trackbars.
4779 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
4782 2006-03-16 Mike Kestner <mkestner@novell.com>
4784 * ListView.cs: make shift/ctrl keyboard and mouse selection
4785 consistent with the MS control. Fix a bug in
4786 SelectedListViewItemCollection.Clear that was pissing me off for the
4787 better part of a day because the collection was being altered
4788 underneath us as we walked the list.
4790 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
4792 * Control.cs: Not sure how we could miss this so long, but it seems
4793 that MS.Net has Capture set all the way from before calling
4794 OnMouseDown through sending the mouse events until after
4795 OnMouseUp. This will fix DataGrid's selection being set to end
4796 at the location of the MouseUp.
4798 2006-03-15 Jackson Harper <jackson@ximian.com>
4800 * BindingContext.cs: Check the binding after its added so that it
4801 can initialize the binding managers and hookup to events.
4802 * Binding.cs: Data members seem to sometimes include rows/cols in
4803 the format Row.Column we now take this into account.
4804 - Hookup to the position changed event so we can update the
4805 control when the position has changed in the data set.
4806 * CurrencyManager.cs: Take into account the row/col naming
4807 convention when creating dataset tables.
4808 * BindingContext.cs: Using a newer better way of storing
4809 datasource/datamember pairs. Hopefully this better matches MS for
4810 looking up binding managers.
4813 2006-03-15 Jackson Harper <jackson@ximian.com>
4815 * BindingContext.cs: The currency manager needs the data member
4816 name, if the member is a data set we use the name to find the
4818 * CurrencyManager.cs: When creating the list prefer an IList over
4820 - Attempt to create a DataTable from a DataSet (TODO: might need
4821 some better error checking here, although MS doesn't seem to have much)
4822 - If we have a DataTable create a view and use it as our list.
4824 2006-03-15 Mike Kestner <mkestner@novell.com>
4826 * ListView.cs: keep a matrix of the icon mode layout to facilitate
4827 keyboard navigation. Support Up/Down/Left/Right selection correctly
4828 for all 4 View modes.
4829 * ListViewItem.cs: add internal row/col fields for icon layouts.
4831 2006-03-15 Jackson Harper <jackson@ximian.com>
4833 * TabControl.cs: Redraw the tabs when we resize so their newly
4834 calculated sizes are drawn on screen.
4835 * X11Keyboard.cs: Begginnings of XIM support. We also now support
4836 composite characters.
4837 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
4838 - filter events so that composite characters can be created
4840 * X11Structs.cs: Add XIMProperties enum.
4842 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4844 * Control.cs (BringToFront, SendToBack): Don't use window or handle
4847 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4849 * Control.cs (PerformLayout): We don't need to consider visiblity
4850 for anchoring, only for docking. This fixes 'whacky' alignment
4851 in listbox and other controls that use implicit scrollbars after
4852 the previous PerformLayout patch
4853 * ListBox.cs: Switched to use implicit scrollbars
4855 2006-03-14 Mike Kestner <mkestner@novell.com>
4859 - chain up the "new event" overrides to base and use
4860 OnEvent to raise them. Part of fix for bug #76509.
4862 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
4864 * FileDialog.cs: Do not select an item in the parent directory
4867 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4869 * Control.cs (PerformLayout): It would seem that we considered
4870 invisible windows for our layout. Not quite the right thing
4871 to do. Now we don't any longer, thereby fixing bug #76889.
4873 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4875 * Control.cs (CanFocus): I goofed. A control can have focus
4876 even though it's not selectable. Made it match MS docs.
4878 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4880 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
4881 center by default (fixes #76895)
4882 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
4883 all uses of Border3DSides.All with the explicit ORd together
4884 Left|Right|Top|Bottom because I assume that nobody was aware
4885 that All also implies a center fill. Most places I checked had
4887 * ProgressBarStyle.cs: Added
4889 2006-03-13 Mike Kestner <mkestner@novell.com>
4891 * ListView.cs: fix breakage in drag shadow header positioning
4892 from Peter's csc compilation fix.
4894 2006-03-13 Mike Kestner <mkestner@novell.com>
4896 * ListView.cs: fix NRE produced by backspacing twice in a focused
4899 2006-03-13 Mike Kestner <mkestner@novell.com>
4901 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
4903 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4905 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
4907 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
4908 the allowed size before making programmatic size changes
4910 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4912 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
4913 set, metacity is broken and will still use the emty sizes in
4914 the struct. (Fix for #77089)
4916 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4918 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
4919 WindowExStyles and marked both enums as Flags
4920 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
4921 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
4922 to match WindowStyles split
4924 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
4925 - Updated to match WindowStyles split
4927 - Fixed FosterParent creation, was using ExStyle on the Style field
4928 (This should help with Popup focus issues)
4929 - Updated to match WindowStyles split
4931 2006-03-13 Jackson Harper <jackson@ximian.com>
4933 * MdiWindowManager.cs: Use the system menu height. Fixes some
4934 strange sizing issues.
4936 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4938 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
4940 - Scroll to caret after inserting text (#77672)
4941 - Make scroll range one pixel higher, fixes off-by-one error (and
4942 makes underlines visible on the last line)
4944 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4946 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
4947 the keyboard state from being stuck with keys in 'pressed' state when
4948 focus is switched away via keyboard
4949 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
4950 reset the keyboard if no X11 KeyUp events are expected to come
4951 * X11Structs.cs: Switched type of Visible to bool to match driver
4953 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4956 - Switched caret to be just 1 pixel wide, matches MS and looks less
4958 - Moved caret display 1 pixel down from the top of the control
4960 - InsertCharAtCharet: Update the selection start if moving the caret
4961 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
4962 - No longer always creating the caret when the caret methods are
4963 called. Only the actual ShowCaret/HideCaret will do that now
4964 - Only setting caret visible if the owner control has focus
4965 - UpdateView: Added invalidation-shortcut logic for center and right
4966 aligned text. Previously we'd update all according to the left
4967 logic which caused drawing errors. Also fixed height of invalidated
4968 areas, now properly invalidating the whole area (was off-by-one)
4969 - owner_HandleCreated: Always generate the document when the
4970 handle is created; this ensures that
4972 - Fixed situation where caret would disappear under the right
4973 window border, also improved scrolling behaviour on left-
4975 - Fixed right-aligned textboxes to have a border to the
4976 right instead of the caret being under the right border
4978 - Switched from 'nested' to simple visible/not visible tracking
4979 for caret (part of fix for #77671)
4980 - No longer passing through translated FocusIn/FocusOut messages
4981 since we were notifying too often and the wrong windows. Instead
4982 we just notify our focussed window of receiving or loosing focus
4983 * XplatUIWin32.cs: Switched from 'nested' show/hide
4984 counting for caret to simple visible yes/no behaviour (part of
4987 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
4989 * Mime.cs: Remove debug code...
4991 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
4993 * MimeGenerated.cs: Removed
4994 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
4995 and subclasses) from /usr/(local/)share/mime and
4996 $HOME/.local/share/mime.
4998 2006-03-10 Jackson Harper <jackson@ximian.com>
5000 * MdiWindowManager.cs: Recalc the NC area when a window is
5001 maximized/restored so that the menu area is drawn on forms that
5004 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5006 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5007 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5008 us to force a WM_NCCALCRESIZE message being sent. This is needed
5011 2006-03-10 Jackson Harper <jackson@ximian.com>
5013 * Form.cs: We need to use the ActiveMenu when calculating menu
5015 - Fix nullref when the window manager hasn't been created yet.
5016 * Control.cs: Fix nullref when we try to bring a control to the
5017 front that has no parent.
5018 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5020 - Add a dummy item to the maximized menu so it always has the
5021 correct height. Otherwise when there are no menus we don't get our
5025 2006-03-10 Jackson Harper <jackson@ximian.com>
5027 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5029 * Form.cs: Make the window_state internal so the window managers
5031 - When an MDI child is maximized let its window manager create the
5032 main menu (so it can add its icon).
5033 - Notify the window managers of state changes
5034 - Let the window manager paint its buttons and handle button
5035 clicks on the menu when it is maximized.
5036 * InternalWindowManager.cs: Move the prev_bounds into the mdi
5037 window manager, since tool windows don't use it, only mdi windows.
5038 - Tell the main form that we don't want it to handle NCPAINT
5039 itself to avoid extra painting.
5040 - Handle clicks on a maximized windows menu.
5041 - Handle window state changes
5042 - Handle minimize/maximize clicks correctly by setting the window state.
5043 * MdiWindowManager.cs: Add an icon menu that (the menu you get
5044 when clicking on the forms icon).
5045 - New method to create a forms maximized menu. This is its normal
5047 - Handle window state changes.
5048 - Handle sizing of maximized windows. Maximized windows are just
5049 drawn bigger then the parent visible area. All controls are still
5050 there, they are just outside the visible area (this matches windows).
5051 * MdiClient.cs: No scrollbars when a child window is maximized.
5052 - Let the children windows figure out how big they should be when
5053 sizing maximized windows.
5054 - Implement a version of ArrangeIconicWindows somewhat similar to
5055 Windows version. There are some little differences, but I don't
5056 think any app will rely on the layout of minimized mdi windows.
5058 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5060 * Padding.cs: Several fixes to allow compiling with csc 2.0
5062 2006-03-09 Jackson Harper <jackson@ximian.com>
5065 * MenuItem.cs: Cheap hack so we can add items to the list without
5066 the events being raised. This allows adding mdi items during
5067 drawing. TODO: Should probably find a better time to add the items.
5069 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5071 * ThemeWin32Classic.cs:
5072 - CheckBox_DrawText: Added logic to not wrap if not enough space
5073 is available (Fix for bug #77727)
5074 - RadioButton_DrawText: Added logic not to wrap if not enough
5075 space is available (Fix for bug #77727). Also removed some
5076 duplicate code, DrawString always drawing the regular text
5077 before hitting the if statement.
5079 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5081 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5083 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5085 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5086 * ContainerControl.cs: Partial implementation of some 2.0 scaling
5087 methods. Moved the new 2.0 properties into alphabetical order with
5088 other properties and added MonoTODO tags
5090 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5092 * AutoScaleMode.cs: Added. Fix build.
5094 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5096 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5097 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5098 and was requiring premature handle creation for calls from above
5099 * Form.cs, Control.cs: Removed handle arguments from calls to
5100 CalculateClientRect()
5102 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5104 * ListView.cs (HeaderMouseMove): Fix csc compilation.
5105 drag_column.column_rect is MarshalByRef and can't be used that way
5107 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5109 * AxHost.cs: Added deserialization constructor for
5110 AxHost+State (fixes 77743)
5112 2006-03-09 Mike Kestner <mkestner@novell.com>
5115 - Added column drag reordering for details view.
5116 - fixed behavior when mouse is dragged off column and
5117 AllowColumnReorder is false.
5118 * ColumnHeader.cs: clone the format too in Clone.
5119 * Theme.cs: add DrawListViewHeaderDragDetails method.
5120 * ThemeWin32Classic.cs:
5121 - impl new method for drawing drag column shadows and targets.
5122 - support column offset for details mode in DrawListViewItem.
5124 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5126 * TextControl.cs: Reset the char_count when the document is cleared
5127 (Fixes bug reported on mono-winforms mailing list)
5129 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5131 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5132 of calling base we simply process the key ourselves, since both
5133 DefWindowProc and the handled method would set m.Result.
5136 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5138 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5139 method also moves the window; instead implemented a copy of
5140 Control.ScaleCore (Part of fix for #77456)
5142 - Created new CreateGraphicsInternal method to allow providing
5143 a graphics context when no handle is created without triggering
5144 handle creation. (Part of fix for #77456)
5145 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5147 - Switched Constructor to require TextBoxBase instead of Control (to
5148 allow uncast access to CreateGraphicsInternal)
5149 - Safeguarded use of owner.Handle property. No longer accessing it
5150 unless the handle is already created.
5151 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5152 - Now triggering a recalc when owning control becomes visible
5153 * TextBox.cs, RichTextBox.cs: Switched to use new internal
5154 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5155 premature handle creation (Part of fix for #77456)
5157 - We now only destroy our double-buffering buffers when the
5158 control is resized or disposed, but not when visibility
5159 changes. (The code even re-created them twice every time)
5160 - Now requiring a redraw of the buffer on visibility changes
5161 (fixes bug 77654 part 2)
5162 - Not passing OnParentVisibleChanged up unless the control
5164 - CanFocus: Fixed to match MS documentation
5165 - Focus: Fixed to return actual focus state and to check if
5166 setting focus is legal before setting it
5168 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
5170 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5171 when to draw focus rectangle by looking at parent focus and
5172 selected state instead. This fixes TabPages on Linux sometimes
5173 having none or multiple focus rectangles.
5174 * XplatUIX11.cs (SetFocus):
5175 - Don't set the focus if the same window already has focus
5176 - Use SendMessage instead of PostMessage (like it's Win32
5177 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5178 to match MS behaviour
5179 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5182 2006-03-07 Jackson Harper <jackson@ximian.com>
5184 * PictureBox.cs: Revert line I accidently committed last week.
5186 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
5189 - Added new IsRecreating and ParentIsRecreating properties to
5190 allow testing if RecreateHandle has been called on ourselves
5191 or one of our parents
5192 - WndProc(WM_DESTROY): If our control handle is being recreated
5193 we immediately need to create the handle when receiving the
5194 destroy, that way our child windows find a valid parent handle
5195 when they themselves are being recreated upon WM_DESTROY receipt
5196 (fix for bug #77654 part 1)
5198 - DestroyWindow: WM_DESTROY must be sent to our own window before
5199 notifying any child windows. MS documents that child windows
5200 are still valid when WM_DESTROY is received. (Control now relies on
5202 - Added some fine-grain debug options
5204 2006-03-06 Jackson Harper <jackson@ximian.com>
5206 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
5207 box and base calculations off this.
5208 * MdiChildContext.cs:
5209 * MdiWindowManager.cs: Don't need to ensure scrollbars here
5212 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
5214 * Splitter.cs: In situations where the affected control is added
5215 to the parent's control list after the splitter, we would not
5216 populate affected. Now we try populating it on mousedown, if
5217 it's not already set, and force it to be re-set whenever our
5220 2006-03-03 Matt Hargett <matt@use.net>
5222 * Control.cs: implement Control.Padding
5223 * Padding.cs: -Padding.All returns -1 when constructing with the
5224 implicit default ctor
5225 -Padding.ToString() matches MS.NET
5226 * ContainerControl.cs: implement
5227 ContainerControl.AutoScaleDimensions
5228 * ListControl.cs: implement ListControl.FormattingEnabled
5229 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
5231 * TabPage.cs: Implement UseVisualStyleBackColor.
5232 * PictureBox.cs: Implement PictureBox.InitialImage.
5234 2006-03-03 Mike Kestner <mkestner@novell.com>
5236 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
5237 event declarations to proxy to base event.
5238 * ListViewItem.cs: update to use ItemControl.
5239 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
5240 * ThemeWin32Classic.cs: update to new ListView theme API and fix
5241 column header label rendering for 0 width columns.
5243 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
5245 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
5246 that causes the control to be created. Fixes #77476.
5248 2006-03-02 Jackson Harper <jackson@ximian.com>
5250 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
5253 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
5255 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
5256 passed in for the EventArgs (fixes #77690)
5258 2006-03-01 Jackson Harper <jackson@ximian.com>
5260 * ScrollBar.cs: Refresh afterbeing resized.
5262 2006-02-28 Mike Kestner <mkestner@novell.com>
5264 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
5265 Clean up a tracker compile warning.
5266 * MenuItem.cs: add internal PerformPopup method.
5269 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5271 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
5272 implicit expose) when the text is set to null
5274 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5276 * RichTextBox.cs (FlushText): When newline is true, we always
5277 need to split the line, even if no text is on it and we may
5278 never eat newlines. (Fixes #77669)
5280 2006-02-28 Mike Kestner <mkestner@novell.com>
5282 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
5283 and set Selected instead.
5284 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
5287 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5289 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
5291 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
5294 - Got rid of the panel. All controls are now directly added to
5296 - It is now possible to set a font with the Font property
5297 - MinSize and MaxSize property do now what they should
5298 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
5299 - Searching and selecting a font with the font textbox works now,
5300 the same applies to the style and size textbox
5301 - Draw the correct 3D border in the example panel
5302 - Fixed a little mem leak (unused fonts didn't get disposed)
5303 - Many other internal updates/rewrites...
5306 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5309 - InsertRTFFromStream: Added 'number of characters inserted' argument
5310 - set_SelectedRTF: Now using the number of characters to calculate
5311 the new location for the selection and cursor (x/y cannot be used
5312 due to potentially already wrapped text)
5314 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5316 * TextControl.cs: Added property and implemented means to allow
5317 disabling recalculation of a document (can be used to speed up
5318 multiple inserts and is needed to make RTF inserts predictable, see
5320 * RichTextBox.cs: Using the new NoRecalc property of Document to
5321 keep x/y insert locations predictable. Also makes it faster inserting
5324 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5326 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
5327 it's easier for a child control to handle the other messages without
5328 having to duplicate the special functionality
5330 - WndProc: Removed calling base handler for WM_KEYDOWN and added
5331 code to handle processing the key ourselves, in order to get
5332 access to the result of KeyEventArgs.Handled. We now only call
5333 ProcessKey if they key hasn't been handled already. Fixes #77526.
5334 - set_Text: If null or empty string is given, just clear the
5335 document. Fixes part of #77526
5337 2006-02-27 Jackson Harper <jackson@ximian.com>
5339 * SizeGrip.cs: Paint the background color before painting the grip
5340 so things look right.
5341 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
5343 2006-02-27 Mike Kestner <mkestner@novell.com>
5346 - Restructure layout and invalidation model to remove a ton of
5347 flicker from the control and speed up performance in general.
5348 - Add manual column resize, flickers like crazy, but I already have
5349 some ideas on how I'll fix that. (#76822)
5350 - Merge the three Icon-based views into a single layout method.
5351 - Move item selection interaction logic from the item since
5352 interaction with the collections is more appropriate to the view.
5353 - Deselection on non-item clicks.
5355 - Encapsulate most of the layout. Add some internal props to trigger
5356 layout. Move to a model where Items invalidate themselves instead
5357 of just invalidating the whole control every time something changes.
5358 - Invalidate on Text/Caption changes.
5359 - switch to an offset based layout model to avoid having to absolute
5360 position every element on item moves.
5361 - correct checkbox layout to conform to MS layout.
5362 * ThemeWin32Classic.cs:
5363 - refactor some column header drawing code.
5364 - fix string justification for column headers (#76821)
5365 - make SmallIcon labels top justified for compat with MS impl.
5366 * ThemeClearlooks.cs:
5367 - adjust to new ListViewItem internal checkbox bounds api.
5369 2006-02-27 Jackson Harper <jackson@ximian.com>
5371 * Control.cs: Change where implicit controls fall in the zorder.
5372 They are now on top of all children.
5373 - Synced AddImplicit code with Add
5374 - Removed unused enumerator.
5375 * SizeGrip.cs: Remove the TODO as its been TODONE.
5377 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5379 * TextControl.cs(Insert): Combine the last lines unless the insertion
5380 string ends with \n\n, otherwise we leave one line too many (Fixes
5381 something I noticed with the testapp for #77526; the bug itself was
5382 already fixed in the previous checkin)
5384 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5387 - SelectionColor and SelectionFont methods no longer set absolute
5388 styles. Instead, the keep font or color respectively (This
5389 resolves a long-standing FIXME in the code)
5390 - When flushing RTF text, the insert code now considers text trailing
5391 behind the insertion point (Fixes the bug where when replacing
5392 the selected text via SelectedRTF the remainder of the line behind
5393 the selection would stay on the first insertion line)
5395 - AppendText now updates the selection points after inserting text
5396 - AppendText now ensures that the last tag (sometimes 0-length) of
5397 the document is used for the style information (Fixes part of
5400 - Created new FontDefiniton class to allow describing partial style
5402 - StreamLine() now takes a lines argument, to allow it to decide
5403 whether an encountered zero-length tag is the last in the document
5404 (which must be kept to not loose the font/color contained in it,
5406 - Created Combine() and Split() methods for Marker structs, to
5407 support marker updates due to reformatted documents (soft line
5409 - Implemented Document.CaretTag setter
5410 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
5411 of the last line (Not the cause, but also exposed by bug #77220)
5412 - Added LineTag argument to InsertString method, to allow callers
5413 to force a certain tag to be used (required to force use of the
5414 trailing zero-length tag of a document)
5415 - Now updating markers in Combine(), to avoid stale tag markers
5416 - Added some method descriptions to aid maintenance
5417 - Implemented new FormatText concept, allowing additive/subtractive
5418 formatting by only specifying the components that are to be
5419 changed. This was needed for resolving the RTB.SelectedColor/
5420 RTB.SelectedFont fixmes
5421 - Added Break() support method to allow breaking up linetags (used
5422 for partial formatting)
5423 - Added GenerateTextFormat() method. It is used for partial
5424 formatting and allows to generate a full font/color from given
5425 attributes and an existing tag.
5427 2006-02-26 Jackson Harper <jackson@ximian.com>
5429 * XplatUIX11.cs: Use the correct caption height.
5430 - Translate hittest coordinates to screen coords to match MS.
5431 * XplatUIWin32.cs: When we create MDI windows we need to reset
5432 some of the style flags, so we get a nice blank window, and can
5433 draw all the decorations ourselves.
5434 - Set a clipping rectangle on the non client paint event, the
5435 window manager drawing code needs one.
5436 * Form.cs: The window manager needs to know when the window state
5438 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
5439 don't need to factor in border and title sizes in these
5440 methods. TODO: Remove the args and fix the call points.
5441 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
5443 - Let the driver set the cursors.
5444 - Improve active window handling
5445 - Correct sizes for title bars and buttons.
5446 - Match MS drawing better
5447 * MdiWindowManager.cs: We don't need to handle border style
5448 updates specially anymore.
5449 - Check for scrollbars when windows are done moving
5450 - Handle Active properly.
5451 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
5452 correctly. I am spewing the exception though, so we don't hide the
5455 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
5457 * DataGridViewRowPostPaintEventArgs.cs,
5458 DataGridViewCellPaintingEventArgs.cs,
5459 DataGridViewRowCollection.cs,
5460 DataGridViewRowPrePaintEventArgs.cs,
5461 DataGridViewCell.cs: Clear a few warnings and implement a few
5462 exceptions that should be thrown.
5464 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5466 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
5467 'inheriting' our parent's (non-default) cursor. (Part of
5470 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5472 * XplatUIX11.cs: Fixed cast to make csc happy
5474 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5476 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
5477 it's for the client area (part of fix for #77479 and needed
5478 for MDI window cursor handling)
5480 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
5481 the appropriate default cursors and also passing the message
5483 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
5484 for non-client areas
5486 2006-02-15 Jackson Harper <jackson@ximian.com>
5488 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
5489 is a real MDI window
5491 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
5493 * X11DesktopColors.cs: Instead of checking the desktop session
5494 string for "KDE" check if it starts with "KDE"
5496 2006-02-10 Jackson Harper <jackson@ximian.com>
5498 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
5501 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5503 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
5506 - Got rid of the panel. All controls are now directly added to
5508 - Changed to mono coding style
5510 2006-02-10 Jackson Harper <jackson@ximian.com>
5512 * InternalWindowManager.cs: We don't need the set visibility to
5513 false hack anymore now that peter has written beautiful shutdown
5516 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
5518 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
5519 where already explicitly destroyed
5521 2006-02-10 Jackson Harper <jackson@ximian.com>
5523 * MdiClient.cs: Handle the case where windows are too high or to
5524 the left and we need scrollbars.
5526 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5528 * MimeIcon.cs: Added some icons
5531 - Got rid of the panel. All controls are now directly added to
5533 - Changed to mono coding style
5534 - On Linux "My Computer" and "My Network" will now show some
5535 more usefull information. A new class, MasterMount, gathers
5536 this information from /proc/mount. Updated MWFFileView to make
5537 use of this information
5538 - Fixed a bug that caused FileDialog to crash when
5539 ".recently_used" file had a zero size
5540 - FilterIndex does now what it should
5542 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
5545 2006-02-09 Jackson Harper <jackson@ximian.com>
5547 * ComboBox.cs: Don't touch if null.
5549 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
5551 * Cursor.cs: 64bit safeness fix
5552 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
5554 2006-02-09 Jackson Harper <jackson@ximian.com>
5556 * Form.cs: If a form is made into an MDI form update the styles so
5557 all the props can get set correctly.
5558 - Kill the mdi_container when we dont need it anymore.
5559 * InternalWindowManager.cs: Add missing NOT
5561 2006-02-08 Jackson Harper <jackson@ximian.com>
5563 * InternalWindowManager.cs: Respek clipping when drawing MDi
5566 2006-02-08 Jackson Harper <jackson@ximian.com>
5568 * Hwnd.cs: Add bits to track non client expose events.
5569 * XplatUIX11.cs: Track non client expose events on the hwnd. This
5570 gives us a proper invalid rect and will allow for some nice
5571 optimizations with NC client drawing
5572 - MDI windows are children windows, so move their style handling
5573 into the child window block.
5574 * InternalWindowManager.cs: Remove a state reset that was
5575 getting invoked at the wrong time. Fixes managed windows getting
5576 into a 'stuck' captured state.
5578 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5580 * TextControl.cs (Document.ctor): Now initializing
5581 selection_anchor. Fixes #77493
5583 2006-02-07 Jackson Harper <jackson@ximian.com>
5585 * TrackBar.cs: The increment/decrements were backwards.
5587 2006-02-07 Mike Kestner <mkestner@novell.com>
5589 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
5590 to the instance itself.
5592 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5594 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
5595 on ulongs and pointers, the size differs between 32bit and 64bit
5598 2006-02-07 Mike Kestner <mkestner@novell.com>
5600 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
5601 for 64 bit platforms to work around a metacity bug.
5603 2006-02-07 Jackson Harper <jackson@ximian.com>
5605 * TrackBar.cs: Process the input keys we need, and hookup to
5606 KeyDown instead of using WndProc, so we get key messages.
5608 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5610 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
5612 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
5613 we need to translate the XdndVersion atoms array before sending it
5615 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5618 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
5619 number of bits for the property, not the number of bytes. The
5620 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
5621 but would not crash since it specified 8 bits instead of 4 bits)
5622 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
5623 defined as XID -> long in the C headers)
5624 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
5625 references since those are now IntPtr to begin with
5626 - Switched all Atom.XXX 'int' casts to IntPtr casts
5627 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
5628 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
5629 - Added XChangeActivePointerGrab DllImport (for X11DnD)
5631 - Changed 'int' type for Atoms in XEvent structures to IntPtr
5632 - Changed atom in HoverStruct to be IntPtr
5634 - Removed local DllImports, switched code to use those from XplatUIX11
5635 - Removed/fixed casts related to the switch of Atom to be a IntPtr
5637 2006-02-06 Mike Kestner <mkestner@novell.com>
5639 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
5640 method signatures in the import region. There may still be some
5641 lingering struct marshaling issues, as I didn't drill down into those.
5644 2006-02-06 Jackson Harper <jackson@ximian.com>
5646 * ComboBox.cs: Dont manually set the top_item, this is computed
5647 when the scrollbar position is set.
5649 2006-02-06 Mike Kestner <mkestner@novell.com>
5651 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
5652 startup crashes on amd64. There's other fixes needed. All pinvoke
5653 usage of Atom needs to be mapped to IntPtr for example. And there are
5654 likely other int/long issues to be addressed.
5656 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
5658 * FileDialog.cs: One more...
5660 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5662 * FileDialog.cs: Next try
5664 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5666 * FileDialog.cs: First part of fix for #77464
5668 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5670 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
5671 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
5672 AcceptButton border drawing.
5674 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5676 * Form.cs: Moved positioning of form after auto scaling is applied,
5677 otherwise it would possibly use wrong form size.
5679 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5681 * Control.cs (RecreateHandle): No need to re-create any child
5682 controls, the child windows will get destroyed automatically by
5683 the windowing system or driver, and re-created when the handle
5684 is being accessed the first time. Fixes #77456
5685 * Form.cs: No longer setting the form to closing if the handle is
5686 being recreated. This seems like the right thing to do, don't
5687 have a bug or testcase for this, though.
5689 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5691 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
5692 controls to avoid unwanted side effects
5694 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5697 - ScaleCore needs to scale the bounds, not the ClientSize of the
5698 control. Fixes #77416.
5699 - DefaultSize is 0,0 for control
5701 - DefaultSize is 100, 20
5702 - SetBoundsCore: Now enforcing the height, no matter if the provided
5703 height is more or less than the preferred one, as long as AutoSize
5705 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
5707 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5710 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
5711 call unless both performLayout is true *and* we have a pending
5713 - ResumeLayout: MS does not completely nest Suspend and Resume,
5714 they bottom out at 0, fixed our code to match that.
5715 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
5716 SetBoundsCore, we were updating even when we shouldn't. This fixes
5717 swf-anchors mis-anchoring when resizing the app fast and lots.
5718 - UpdateDistances: Now only setting the left and top distance if
5719 we have a parent and are not suspended, this is based on
5720 a suggestion by Don Edvaldson in bug #77355.
5721 - OnVisibleChanged: Fixed logic when to create the control. We may
5722 not create the control if we have no parent or if it's not visible;
5723 switched to using Visible property instead of is_visible field
5724 since the property also considers parent states. This fixes a bug
5725 when starting Paint.Net
5727 2006-02-02 Jackson Harper <jackson@ximian.com>
5729 * Form.cs: If the forms handle hasn't been created yet don't call
5730 into xplatui to make it top most, just set the topmost flag on the
5731 form in CreateParams
5732 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
5734 2006-02-01 Jackson Harper <jackson@ximian.com>
5736 * ScrollableControl.cs: Refactored the Recalculate method a
5737 little, this wasn't handling all the variants of bottom and right
5738 bars needed to be added and added/removed based on their
5739 counterparts being added/removed (which changes the drawable
5740 size). Also we special case client widths and heights of 0 and
5741 don't add the scrollbar for those.
5743 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
5746 - Added method to get AbsoluteGeometry(); currently unused, but might
5747 be used in the future, if we try again to figure out toplevel
5748 coordinates with some more crappy window managers
5749 - Added FrameExtents() method to retrieve the WM set decoration size
5750 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
5751 to deal with at least KDE, FVWM and metacity (Fixes #77092)
5753 - Added whacky_wm tracking var for metacity
5754 - Added logic to have default menu height if the actual menu height
5755 has not yet been calculated (part of fix for #77426)
5756 * Form.cs: Keep track whether client size has been set and re-set
5757 it if a menu is added/removed afterwards (Fixes #77426)
5759 2006-01-31 Jackson Harper <jackson@ximian.com>
5761 * Control.cs: When a new Site is set on the component attempt to
5762 pull the AmbientProperties from it.
5764 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
5766 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
5767 in the background of the owning form. Fixes #77332
5769 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
5771 * MimeIcon.cs: Fix for #77409
5773 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
5775 * XplatUIX11GTK.cs: Initial import
5777 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
5779 * FixedSizeTextBox: fixes class signature
5781 2006-01-30 Jackson Harper <jackson@ximian.com>
5783 * FixedSizeTextBox.cs: New internal class that represents a
5784 textBox that will not be scaled.
5787 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
5790 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
5792 * XplatUIX11.cs: Retrieve default screen number instead of
5793 assuming 0. Attempted fix for #77318
5795 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
5798 - GetWindowPos: When a window is parented by FosterParent, use
5799 the desktop instead of FosterParent as the base to get coordinates
5800 - CreateWindow: Don't make FosterParent the parent window for Popups
5801 if we don't want a taskbar entry, Popups automatically don't get one
5802 * Hwnd.cs: Need to call remove to actually remove the key from the
5805 2006-01-30 Mike Kestner <mkestner@novell.com>
5807 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
5809 2006-01-30 Jackson Harper <jackson@ximian.com>
5812 * TreeNode.cs: Raise events no matter how the treenode is
5813 checked. Patch by Don Edvalson.
5815 2006-01-30 Jackson Harper <jackson@ximian.com>
5817 * TreeNode.cs: Signature fix.
5819 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
5821 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
5823 2006-01-20 Mike Kestner <mkestner@novell.com>
5825 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
5826 event forwarding when menus are active.
5827 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
5828 Most of the patch is pdb's with a little rework.
5830 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5832 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
5833 Removed GetMenuDC and ReleaseMenuDC methods; replaced
5834 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
5835 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
5836 * InternalWindowManager.cs: Added use of PaintEventStart/End to
5837 handling of WM_NCPAINT message, now passing the PaintEventArgs to
5838 the PaintWindowDecorations method
5839 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
5840 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
5841 * MenuAPI.cs: Made tracker window invisible
5843 - Removed GetMenuDC and ReleaseMenuDC methods
5844 - Implemented the client=false path for PaintEventStart and
5847 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5849 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
5850 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
5853 - MaximizeBox, MinimizeBox: Recreate the handle when setting
5855 - CreateParams: Reworked the styles to match MS look'n'feel,
5856 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
5857 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
5859 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5861 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
5862 window is not mapped, since otherwise every form that's being
5863 created is considered minimized, which is wrong.
5864 * Form.cs: Catching the exception and returning our internal value
5867 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5869 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
5870 SetWindowMinMax() to have means to tell the driver about the minimum,
5871 maximum and maximized state window sizes. (Part of the fix for #76485)
5873 - Implemented tracking of minimum and maximum window size, now calling
5874 new SetWindowMinMax() driver method to tell the driver (Part of the
5876 - Finished handling of WM_GETMINMAXINFO method, now setting all values
5877 (Completes fix for #76485)
5878 - Calling new SetWindowMinMax driver method when the handle for a
5879 form is created, to make sure the driver knows about it even if
5880 the values have been set before the window was created
5881 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
5882 to avoid messing up our anchoring calculations (partial fix
5884 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
5886 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
5887 - Improved GetWindowState() to detect 'Minimized' state on Metacity
5888 (and presumably other freedesktop.org compliant WMs). Left the
5889 assumption unmapped=minimized, needed for SetVisible to work.
5890 - Now setting the window state when creating windows
5891 - Fixed SetVisible to consider/set the window state when mapping
5892 a Form. We cannot set the state before it's mapped, and we cannot
5893 use Form.WindowState once it's mapped (since it would ask the
5894 driver and get 'normal'. Therefore, we grab the state before
5895 mapping, map, and then set state.
5896 - Implmemented SetWindowMinMax method; Metacity does not seem to
5897 honor the ZoomHints, though.
5899 - Removed MINMAXINFO (moved to XplatUIStructs)
5900 - Added SetWindowMinMax stub (on Win32 the only way to set that
5901 information is in response to the WM_GETMINMAXINFO message, which
5902 is handled in Form.cs)
5903 - Added logic to SetVisible to set the proper window state when a
5904 form is made visible (fixes #75720)
5906 2006-01-26 Jackson Harper <jackson@ximian.com>
5908 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
5909 same way we handle them with Invoke.
5911 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
5914 - Added tracking of window state so CreateParams can return
5915 the appropriate style
5916 - Moved setting of WS_CAPTION style in CreateParams to allow
5917 styles without caption
5918 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
5919 control if the TextBox property is accessed. Fixes #77345
5921 - get_Created: now uses is_disposed and is_created to determine
5922 return value (suggested by Jackson)
5923 - CreateHandle: No longer exits if the handle is being recreated
5924 - RecreateHandle: If the handle is not yet created call the
5925 appropriate method to create either control or handle. If the
5926 control is already created CreateHandle will simply exit instead
5927 of just creating the handle
5928 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
5929 now SendMessage WM_DESTROY directly to the control when DestroyWindow
5932 - When DestroyWindow is called, instead of waiting for the
5933 DestroyNotification from X11, we directly post it to the WndProc
5934 and immediately dispose the hwnd object.
5935 Same applies to DestroyChildWindows, and this obsoletes the
5936 expose_pending tracking. Contrary to Win32 behaviour we destroy our
5937 child windows before our own, to avoid X11 errors.
5938 - Removed the direct sending of WM_PAINT on UpdateWindow
5940 - Reworked DoEvents and GetMessage to allow access to internal queue
5941 even when trying non-blocking access to the queue. Fixes #77335.
5942 Based on a patch suggestion by Don Edvalson. The new private
5943 GetMessage can now also be used as a backend for a PeekMessage
5945 * XplatUI.cs: Improved debug output for CreateWindow
5947 2006-01-25 Jackson Harper <jackson@ximian.com>
5949 * Help.cs: Allow param to be null. Patch by Don Edvalson.
5951 2006-01-24 Jackson Harper <jackson@ximian.com>
5953 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
5954 when we have a MaxDropItems lower then the selected index.
5956 2006-01-24 Jackson Harper <jackson@ximian.com>
5958 * Control.cs: Don't allow selection of non visible controls, allow
5959 selection of controls without parents.
5961 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
5963 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
5964 * DataGridDrawingLogic.cs: Add editing row only when is necessary
5966 2006-01-23 Jackson Harper <jackson@ximian.com>
5968 * UpDownBase.cs: Make the textbox handle all the selection and
5969 tabbing. This fixes tabing to updown controls.
5971 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
5973 * TextBoxBase.cs: fixes exception thown the object was null
5975 2006-01-23 Jackson Harper <jackson@ximian.com>
5977 * ButtonBase.cs: Just use the base CreateParams. They set
5978 visibility and enabled correctly.
5981 * MonthCalendar.cs: Lets let the base set as much of the
5982 createparams as possible so we don't have duplicate code all over
5985 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
5987 * ThemeGtk.cs: Added TrackBar and some experimental code to
5988 get double buffering back
5990 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
5992 * DataGrid.cs: Allows row number set internally higher than the last
5993 when creating a new row. Restores the editing functionality.
5995 2006-01-20 Mike Kestner <mkestner@novell.com>
5997 * MimeIcon.cs: delay Image creation until the icons are accessed
5998 instead of creating 190 scaled images on GnomeHandler startup.
6000 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6002 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6003 first call base before processing the event. Fixes #77279
6005 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6007 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6008 that the stride for the GDI bitmap would match the stride of
6011 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
6013 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6015 2006-01-19 Jackson Harper <jackson@ximian.com>
6017 * ComboBox.cs: Hookup the text controls keydown event so we get
6018 those when the text control has the focus.
6020 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6022 * Label.cs: Now using the base events instead of defining new ones;
6023 this allows us to just call the base properties without having to
6024 duplicate all base property logic
6026 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6028 * Label.cs: A label by default is not a tabstop (Fixes one of our
6029 failing nunit tests)
6031 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6033 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6034 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6036 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6038 * Cursor.cs: Reimplemented creating cursor bitmaps without using
6039 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6042 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
6043 constructor creates images that can't be saved. Part of the fix
6045 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6046 - SetWindowState: Switched ShowWindow flags (part of an upcoming
6047 bug fix for handling window state in forms properly)
6049 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6051 * ThemeGtk.cs: Simplify ScrollBar drawing
6053 2006-01-18 Jackson Harper <jackson@ximian.com>
6055 * Splitter.cs: Set the default dock style for the splitter control
6058 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6060 * ThemeGtk.cs: Corrected StateType and ShadowType for
6063 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6065 * Control.cs: Make use of Theme.DoubleBufferingSupported
6067 - Added drawing for flat style buttons
6068 - Added ScrollBar drawing
6070 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6072 * ThemeClearlooks.cs: Removed some unneeded code.
6073 * ThemeGtk.cs: First part of ThemeGtk enhancements.
6075 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6077 * LinkLabel.cs: We need to update the hover drawing when
6078 leaving the control as well.
6080 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
6082 * DataGrid.cs: Clicking on non empty areas in the columns
6083 area was giving an exception
6085 2006-01-17 Jackson Harper <jackson@ximian.com>
6087 * ThemeWin32Classic.cs:
6088 * ListView.cs: Do not draw/clip the headers when the header style
6091 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6093 * DataGrid.cs: Fixes 77260
6095 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6097 * DataGrid.cs: Clicking on a column on a empty grid was giving
6100 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6102 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6103 or any keypress will crash the grid.
6105 2006-01-17 Mike Kestner <mkestner@novell.com>
6107 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6108 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
6109 invisible/previously-visible items.
6112 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
6114 * ThemeClearlooks.cs:
6115 - Added CL_Draw_Button method; now other theme controls that are
6116 not derived from button or do not have a button can draw buttons
6118 - Updated ComboBox drawing
6119 - Beautified RadioButton drawing
6120 - Corrected drawing of bottom and left tabs
6121 - Beautified DateTimePicker and MonthCalendar
6122 - Added CPDrawButton and CPDrawRadioButton
6124 2006-01-16 Jackson Harper <jackson@ximian.com>
6126 * ComboBox.cs: Set the initial value of the scrollbar to the
6127 current index. Reduce the numbers of refreshs and IndexOfs called.
6129 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
6131 * FileDialog.cs: When the file listview is focused hitting the
6132 backspace key moves the fileview to the parent directory
6134 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6137 - Added RecreateHandle call when changing taskbar visibility to
6138 trigger reparenting in Win32 driver (Fixes #75719)
6139 - If a window has minimize or maximize buttons, it cannot have
6142 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6143 the toplevel form with FosterParent (A toolwindow not on the
6144 taskbar) (Fixes #75719)
6145 - Made FosterParent a toolwindow
6147 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6149 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6151 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6153 * ToolTip.cs: If SetToolTip is called from a control and the mouse
6154 is currently over that control, make sure that tooltip_window.Text
6157 2006-01-13 Mike Kestner <mkestner@novell.com>
6159 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6161 2006-01-13 Jackson Harper <jackson@ximian.com>
6163 * TreeView.cs: On MS GetNodeAt never actually factors in the X
6164 value passed. Also redraw the selected node when we recieve
6165 focus, so tabbing between trees works correctly.
6167 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6169 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6170 ~/.gconf/%gconf-tree.xml, so use
6171 .gconf/desktop/gnome/interface/%gconf.xml
6173 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6175 * TextControl.cs: Draw text in gray if control is disabled
6177 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6179 * TreeView.cs: Draw the focus rectangle outside the highlight, to
6180 make sure it's always visible. Fixes #76680.
6182 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6184 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6186 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
6188 * PageSetupDialog.cs: Added.
6189 * PrintDialog.cs: Attributes.
6190 * PrintPreviewControl.cs: Updates.
6191 * PrintPreviewDialog.cs: Updates.
6193 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6195 * Control.cs: Undid my selection check fix, since it's not needed
6197 - Now considering the presence of hscroll/vscroll when sizing
6198 vscroll/hscroll respectively. Fixed bug #77077
6199 - Added Left/Up/Down/Right to IsInputKey list to prevent
6200 ContainerControl from stealing them. This fixes what I broke
6201 with my last checkin.
6203 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6205 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
6206 I finally understand how the property can be set without a setter :-)
6208 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6211 - Switched RunLoop to use static Message.Create to create a
6213 - Added PreProcessMessage call in runloop for keyboard events; this
6214 is part of the fix for #77219, I overlooked this originally in the
6215 MSDN doc for PreProcessMessage
6217 - Removed call to PreProcessMessage from handling of keyboard
6218 messages; it's supposed to be done in the message pump
6219 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
6220 per MSDN documentation.
6221 - IsInputChar: All chars are input chars by default; removed the
6222 parent calling chain, MS does not document that
6223 - PreProcessMessage: If IsInputChar is true, we want to return false
6224 to allow dispatching of the message
6225 - When selecting the next control, now also check that we're not
6226 selecting ourselves again and therefore return a false positive.
6228 - Tried to match return values for IsInputKey and ProcessDialogKey
6229 to what MS returns; moved processing of our special keys outside
6230 ProcessDialogKey since MS does not seem to return true on those.
6231 - Moved code that previously was in ProcessDialogKey into new private
6232 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
6233 - Reworked handling of WM_CHAR to not have to duplicate code from
6234 Control.cs anymore, instead we simply call down to base.
6236 2006-01-12 Jackson Harper <jackson@ximian.com>
6238 * ComboBox.cs: We always need to refresh the text area when
6239 EndUpdate is called. Fixes the combobox in the file dialog.
6240 * Control.cs: Don't create the creator_thread until the controls
6241 handle is created. Also in InvokeRequired we check if the
6242 creator_thread is null. This gives the effect of InvokeRequired
6243 returning true if the controls handle is not created yet, and
6246 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6249 - Added StartLoop() driver method. This is used to allow drivers to
6250 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
6251 loop for a particular thread
6252 - Added EndLoop() driver method. This is called once the message
6253 pump for the thread is shut down
6254 - Added SupportsTransparency method to allow the driver to indicate
6255 opacity support for windows
6257 - Removed TODO attribute, completed AllowTransparency property
6258 - Added documented logic to Opacity
6259 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
6260 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
6261 versions of CompatibleTextRendering
6262 * X11Structs.cs: Added opacity atom to our atom enumeration
6263 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
6264 of a form might be set before it's reparented by the WM, and we need
6265 the opacity value without calling up to Form)
6266 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
6267 SupportsTransparency() driver methods
6268 * Application.cs: Now calling StartLoop and EndLoop driver methods
6270 - Added opacity atom registration
6271 - Added StartLoop()/EndLoop() methods. They're empty right now but
6272 will need to get implemented when we switch to a per-thread queue
6273 - Implemented SupportsTransparency() method
6274 - Implemented SetWindowTransparency() method
6275 - Added support for setting the opacity value when a window is
6276 reparented (since the opacity needs to be set on the WM frame)
6277 * XplatUIOSX.cs, XplatUIWin32.cs:
6278 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
6280 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6282 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
6284 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6286 * FileDialog.cs: Added ToolTip for MWFFileView
6287 * MimeIcon.cs: Rewrote GnomeHandler.
6288 - Get currently used gnome icon theme from
6289 ($HOME)/.gconf/%gconf-tree.xml
6290 - Make use of inherited icon themes
6291 - Support SVG icon themes like Tango via librsvg
6293 2006-01-12 Miguel de Icaza <miguel@novell.com>
6295 Revert's Jackson's revert which broke 2.0 builds. Fix both
6298 * Application.cs: Move the use_compatible_text_rendering outside
6299 the NET_2_0 define. If we ever need to use the
6300 use_compatible_text_rendering on the individual controls they will
6301 access the variable from the common shared code paths.
6303 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6306 - Added more granular debug options
6307 - Added method to print both window text and id
6308 - Switched debug output to use new Window() debug method
6309 - Added IsEnabled() driver method
6310 - Added EnableWindow() driver method
6312 - Removed end_modal; no longer needed, new loop handles termination
6313 via 'closing' variable
6314 - If form is modal, setting DialogResult will now initiate loop
6315 termination via 'closing' variable
6316 - Added support for is_enabled/WS_DISABLED to CreateParams
6317 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
6319 - Removed code that's now in RunLoop from ShowDialog()
6320 - Added various documented sanity checks to ShowDialog()
6321 - Added handling of WM_DESTROY message; we set 'closing' on getting
6322 the message to indicate the message pump to terminate
6323 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
6324 send by the Application.ExitThread method. (We send the message
6325 to destroy the window after all other events have been
6326 processed through the queue, instead of destroying the handle
6328 - Moved code from Close() method to WM_CLOSE handler; added logic
6329 to only send close-related events if the form is not displayed
6331 * Splitter.cs (..ctor): Fixed typo in resource name
6333 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
6335 - set_Cursor: Now only setting calling into XplatUI if the handle for
6336 the control is already created; this avoids implict handle creation
6337 or crashes if it's not created
6338 - set_Enabled: Now setting the enabled state via the new driver method
6339 instead of just tracking it
6340 - CreateParams: Added logic to set WS_DISABLED based on enabled state
6341 - CreateControl: Reordered event firing and method calls to more
6342 closely fire events in the order MS does. Now setting the
6343 enabled state in the driver when creating the control.
6344 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
6346 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
6347 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
6348 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
6350 - Added tracking of window enabled state (get_Enabled/set_Enabled)
6351 - Added EnabledHwnd property to easily allow a driver to find the
6352 handle of the first enabled window in the parent chain (this is
6353 used by drivers to pass up input events of disabled windows)
6354 * XplatUIDriver.cs: Added IsEnabled() method
6356 - Removed crude and obsolete exiting tracking variable
6357 - Removed internal ModalRun(); replaced by RunLoop()
6358 - Implemented private CloseForms() method to allow closing all
6359 windows owned by a particular (or all) threads
6360 - Exit() now properly closes all windows without forcing the message
6362 - Removed obsolete InternalExit() method
6363 - Changed Run() methods to use new RunLoop() message pump
6364 - Implemented new RunLoop() method for both modal and non-modal forms
6366 - get_CreateParams: Added setting of WS_DISABLED
6367 - Simplified ShowDialog(); now all the work is done in RunLoop(),
6368 invoked via Form.ShowDialog()
6369 * NativeWindow.cs: We don't remove the window from the collection when
6370 the handle is destroyed; there might still be messages for it in the
6371 queue (mainly the resulting WM_DESTROY); instead it will be removed
6372 when Control calls InvalidateHandle in the WM_DESTROY handler
6374 - CreateWindow: Added logic to handle the WS_DISABLED window style
6375 - EnableWindow: Implemented based on Hwnd.Enabled
6376 - GetMessage: Reset PostQuitState so the method can be called again
6377 - Implemented support for disabled windows (passing messages to the
6378 first enabled parent) in handling all input messages
6379 - Added optimizations for handling Expose events
6380 - Implemeted new driver method IsEnabled()
6381 - Now always resetting paint pending tracking vars when we start paint
6382 - Re-implemented UpdateWindow via just sending a WM_PAINT message
6383 * XplatUIOSX.cs: Added IsEnabled method stub
6384 * XplatUIWin32.cs: Implemented new IsEnabled() method
6386 2006-01-11 Jackson Harper <jackson@ximian.com>
6388 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6389 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
6391 * ColorDialog.cs: Clear out the old form before adding the new
6394 2006-01-11 Jackson Harper <jackson@ximian.com>
6396 * X11Dnd.cs: Make sure to add all the text formats when adding
6397 strings to the data object.
6398 * TreeNodeCollection.cs: When adding to a sorted tree we need to
6399 do some redrawing too. Also change the UpdateNode to an
6400 UpdateBelow so the newly added node gets painted.
6402 2006-01-11 Miguel de Icaza <miguel@novell.com>
6404 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6405 LinkLabel.cs, PropertyGrid.cs: Implement the
6406 UseCompatibleTextRendering property for 2.x
6408 * Application.cs (SetCompatibleTextRenderingDefault): Add.
6410 2006-01-11 Jackson Harper <jackson@ximian.com>
6412 * TreeView.cs: Use the property for setting the selected node so
6413 the correct events get raised.
6414 * TreeNode.cs: Update the tree when the fore/back colours of a
6417 2006-01-10 Jackson Harper <jackson@ximian.com>
6419 * TreeView.cs: Allow setting SelectedNode to null.
6421 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6423 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
6425 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6427 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
6429 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6431 * PrintDialog.cs: Added attributes and set default property values.
6433 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6435 * PrintControllerWithStatusDialog.cs:
6436 Added PrintControllerWithStatusDialog.
6438 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6440 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6441 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
6443 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6445 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
6447 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6449 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
6450 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
6452 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6454 * MimeIcon.cs: Added internal class SVGUtil.
6456 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6458 * FileDialog.cs: Don't crash if there are two files with the
6459 same name but different locations.
6461 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
6463 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
6464 dates across multiple month grids. Used to not highlight entire
6465 month, but does now.
6467 2006-01-06 Jackson Harper <jackson@ximian.com>
6469 * MonthCalendar.cs: Removed DoEvents call to prevent a running
6470 message loop. Change timer intervals to numbers that seem more
6473 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
6475 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
6476 object for location info since screen object is now implemented.
6478 2006-01-05 Jackson Harper <jackson@ximian.com>
6480 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
6481 * AsyncMethodResult.cs: We no longer use a WeakReference for the
6482 AsyncMethodResult, this is because we ALWAYS want the
6483 ManualResetEvent to get set.
6484 * Control.cs: When disposing use an async invoke to call shutdown
6485 code, so that thigns don't block on the finalizer thread. Also
6486 check if we even have a message loop before trying to send
6487 messages, if we don't then don't bother sending messages.
6488 - No more weak references for async methods
6489 * XplatUIDriver.cs: No more weak references for async methods.
6491 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6493 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
6494 returns two FontFamily with the same name
6496 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6498 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
6499 drawing disabled text. Instead using the ColorGrayText color
6501 2006-01-04 Jackson Harper <jackson@ximian.com>
6503 * TreeNode.cs: redraw the node when its image index is changed.
6505 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6507 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
6508 time I checked there are no others like it.
6510 2006-01-04 Jackson Harper <jackson@ximian.com>
6512 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
6513 this gives the behavoir I was looking for.
6514 * Control.cs: Special case Invoking EventHandlers, this matches MS
6515 and fixes part of bug #76326.
6517 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6519 * ThemeClearlooks.cs, FileDialog.cs:
6520 - Reflect the latest Theme class changes
6521 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
6524 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6526 * Theme.cs: Cache UI resource images and resize them if needed
6528 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6530 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
6531 is called. This fixes the crash in Nexxia when setting the font
6532 attributes in the chat. [However, RTF needs a look-over to make sure
6533 that all SelectionXXX methods handle the special case that selection
6534 is empty and therefore the change must be applied to all text starting
6535 at the cursor/selection start]
6537 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6539 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6540 XplatUIOSX.cs: Added SendMessage and PostMessage methods
6541 * X11Keyboard.cs: Switched to new way of calling PostMessage
6543 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6545 * Theme.cs: Added theme interface for images to allow the theme to
6546 control what images are used for things like FileDialog, MessageBox
6548 * MessageBox.cs: Now uses the new Theme icon/image interfaces
6550 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
6553 - Removed some dead code
6554 - Opening a recently used file does work now
6555 - Small UI enhancements
6558 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6560 * FileDialog.cs: Forgot too add __MonoCS__
6562 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6564 * FileDialog.cs: We are able to read recently used files now let's
6565 go on and write them.
6567 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
6569 * FileDialog.cs: Breathe some life into "last open"/"recently used"
6571 * MimeIcon.cs: Do a check for the top level media type also
6573 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6575 * ThemeClearlooks.cs:
6576 - Added CPDrawStringDisabled
6577 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
6578 some chars if the text doesn't fit into text_rect
6579 - DrawListViewItem: If View = View.LargeIcon center the image;
6580 rewrote the drawing of ListViewItem.Text if View =
6583 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6585 * MimeIcon.cs: Use default KDE icon theme if there is no
6586 "48x48" directory for the current icon theme, fixes #77114
6587 * Mime.cs: Disable not working and actually not used code.
6588 * ThemeWin32Classic.cs:
6589 - Replace "new SolidBrush" in GetControlBackBrush and
6590 GetControlForeBrush with ResPool.GetSolidBrush
6591 - Changed DrawListViewItem from private to protected virtual
6593 - Added form.MaximizeBox = true
6594 - Don't throw an exception if there is a broken symbolic link
6596 2005-12-23 Jackson Harper <jackson@ximian.com>
6598 * TabControl.cs: Give the panels focus, keyboard navigation is
6599 fixed so this works correctly now.
6600 - We need these key events also.
6601 * ToolBar.cs: Remove some of the poor mans double buffering.
6603 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
6605 * ComboBox.cs: The internal TextBox now returns the focus.
6607 2005-12-23 Jackson Harper <jackson@ximian.com>
6609 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
6611 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6613 * Control.cs: Removed debug code
6614 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
6617 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6619 * Control.cs: When creating the control, update the Z-order after
6620 all it's children are created, too. (Fixes nexxia not showing
6623 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6625 * Control.cs: Do not update the anchoring distances if layout is
6626 suspended, instead do it once layout is resumed
6628 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6631 - After many hours of debugging, for both Jackson and
6632 myself, it turns out that it helps to set the parent of a control
6633 if you want to actually see it onscreen. In the spirit of that
6634 discovery, we're now setting the parent of the control and
6635 it's children when the control's handle is created. This fix
6636 will make Lutz Roeder's Reflector run happily.
6637 - now just creating the handle instead of the whole control when
6638 getting a graphics context for the control.
6640 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6642 * ScrollableControl.cs: When calculating the canvas, don't consider
6643 the scrollbar widths. Instead, predict if horizontal scrollbar
6644 will affect canvas when deciding on vertical display and vice versa.
6646 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6648 * RichTextBox.cs: Set default RTF font for documents that don't
6649 have a font table (Fixes #77076)
6651 2005-12-22 Jackson Harper <jackson@ximian.com>
6653 * TextBoxBase.cs: It's difficult to do, but you can have an empty
6654 clipboard. This prevents a NullRef in that case.
6655 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
6656 clipboard. PRIMARY is for the currently selected text only. (We
6657 should implement PRIMARY at some point.
6659 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6661 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
6662 a Unicode function with a structure that was defined in Ansi way.
6665 2005-12-21 Jackson Harper <jackson@ximian.com>
6667 * StatusBar.cs: Statusbar handles its fore/back colours on it's
6668 on. Because thats how it rolls. (and this avoids it using ambient
6670 * ThemeWin32Classic.cs: Use the proper back color for filling.
6671 * Menu.cs: Use the system menu bar color for drawing menu
6672 bars. Using the window back color will bring ambient colours into
6675 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
6677 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
6678 Bitmaps were created and not disposed.
6680 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6682 * Control.cs (CreateControl): Don't do anything if the control is
6683 already created, otherwise we'd fire the OnCreated event more than
6686 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6688 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
6689 will always match. Instead return -1. Fixes #76464.
6691 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6693 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
6694 neither the beginning nor the end of the line (Fixes bug #76479)
6696 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6699 - ControlNativeWindow.ControlFromHandle(): Now handling situation
6700 where handle is invalid
6701 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
6702 instead of slower linear search
6703 * NativeWindow.cs: Don't remove the window from the hashtable until
6704 after the driver has destroyed it (since the driver might use
6705 Control.FromHandle to lookup the control object
6706 * Hwnd.cs: Added DestroyPending property to track if a window is
6707 already destroyed as far as the driver is concerned and only hasn't
6708 yet notified the control
6710 - Activate(): Check if the window is still valid before using the
6712 - Implemented DestroyChildWindow() method to mark child windows as
6713 destroyed when a window is destroyed. This prevents situations
6714 where we might call an X method based on queued events for a
6715 window that already has been destroyed but we haven't yet pulled
6716 the destroy method from the queue.
6717 - Added a call to the new DestroyChildWindow() method to the drivers
6718 DestroyWindow code. Also now marking the destroyed window itself
6721 2005-12-20 Jackson Harper <jackson@ximian.com>
6724 * StatusBarPanel.cs: Don't calculate panel sizes on draw
6725 anymore. Just do them when needed, also track the rects of panels
6726 so that we can optimize refreshing more in the future.
6728 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
6730 * ColorDialog.cs: Fixed focus drawing in small color controls
6732 2005-12-19 Jackson Harper <jackson@ximian.com>
6734 * InternalWindowManager.cs:
6735 * MdiWindowManager.cs: Cleanup some coordinate system changes so
6736 moving windows works properly.
6738 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
6741 - Removed call to InitLayout() from SetBoundsCore(); doc says
6742 it's only called when a control is added to a container
6743 - Split InitLayout logic, moved to separate UpdateDistances() method
6744 since we need to perform those calculations more often than just
6745 when adding the control to a container. (Needed to fix #77022)
6746 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
6747 - Reduced the OnBindingContextChanged events count, don't send them
6748 unless the control is created, we still aren't totally matching
6749 MS, but I can't quite figure out some of their rules
6751 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6753 * ThemeClearlooks.cs: Corrected distance between ProgressBar
6756 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6758 * ThemeClearlooks.cs:
6759 - Updated ProgressBar drawing
6760 - Corrected drawing of ScrollBars and scroll buttons
6761 - Some temporary fixes for minor pixel artefacts
6763 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
6766 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
6767 cause events to be sent in the same order as MS does.
6768 - Added ChangeParent() method to trigger various OnXXXChanged events
6769 that need to be fired when a parent changes (This is a reworking
6770 of the patch from r54254, with the X11 errors fixed)
6771 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
6772 since on MS we get OnLayoutChanged events when calling Clear()
6773 - Changed Enabled property to consider parent state as well, if a
6774 parent is not enabled, the control will not be either
6775 - Changed Parent property to simply call Controls.Add() since that
6776 now does all the work required, this way we avoid code duplication
6777 - Threw in a few OnBindingsContextChanged calls to try and match
6778 when MS sends them. We seem to send a few too many, though.
6779 - Added call to CreateControl when adding the control to a parent.
6780 We were never calling CreateControl. Still needs some work, in
6781 some places we treat HandleCreated and ControlCreated as equal,
6783 - Removed obsolete commented out code from UpdateZOrder()
6785 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6787 * ThemeClearlooks.cs: Updated TrackBar drawing.
6789 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
6791 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
6793 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
6795 * FileDialog.cs: Add the Help button and the open readonly
6796 checkbox only if needed
6798 2005-12-16 Jackson Harper <jackson@ximian.com>
6800 * Control.cs: Make sure we have an active menu before trying to
6801 process commands on it. Prevents menu-less forms from crashing
6802 when Alt is pressed.
6803 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
6805 * RichTextBox.cs: Expand statement to help out gmcs and fix the
6808 2005-12-16 Jackson Harper <jackson@ximian.com>
6810 * InternalWindowManager.cs: Don't translate tool windows screen
6811 coordinates. This fixes windows 'bouncing' around when being moved.
6813 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
6816 - MaxLength now treats 2^31-1 equal to unlimited length (this is
6817 not quite MS compatible, MS uses that number only for single line
6818 and 2^32-1 for multi-line, but I figure it won't hurt keeping
6820 - Now enforcing the MaxLength limit when entering characters
6821 - Added argument to internal Paste() method to track if it's called
6822 from programatically or via keyboard, since keyboard driven pastes
6823 need to enforce max-length
6824 - Added logic to Paste to only paste as many chars as MaxLength
6826 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
6828 - Added Length property to return number of characters in document
6829 - Added private CharCount property which only tracks actual chars
6830 in the document (no linefeeds) and fires event when CharCount
6832 - Added tracking of character count to all methods that alter it
6833 - Added LengthChanged event to allow applications to subscribe
6834 to any changes to the document
6836 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
6839 - Removed local password_char field (moved to TextBoxBase)
6840 - Now setting the document's password var when password is
6843 - Added password_char field (needed here so MultiLine can
6845 - Added logic to MultiLine property setter to set the document's
6846 variable when password display is allowed
6847 - Removed debug code and made some debug code conditional
6849 - Added RecalculatePasswordLine() method to handle special password
6851 - Added PasswordChar property, also added related tracking vars
6852 - Draw() method now uses local text var for grabbing text to draw,
6853 this var is set to line.text unless we're doing password display,
6854 then it is set to the pre-generated all-password-chars line
6855 - Added calling RecalculatePasswordLine() method for password lines
6857 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
6860 - Added Reparented property to allow tracking of Window Manager
6861 reparenting actions (which affect X/Y calculations of toplevel
6863 - Made ToString() print window handles in hex
6865 - AddConfigureNotify(): Now uses reparented state off Hwnd to
6866 determine if X/Y needs offsetting
6867 - AddConfigureNotify(): Fixed offset calculations
6868 - Now adds ReparentNotify messages into the queue
6869 - Now processes ReparentNotify messages and causes a
6870 WM_WINDOWPOSCHANGED message to be sent upstream if a window
6871 is reparented (as most likely it's X/Y coordinates are changed
6874 2005-12-14 Jackson Harper <jackson@ximian.com>
6876 * XplatUIX11.cs: Tool windows still need to respek focus.
6878 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
6880 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
6881 have a working release
6883 2005-12-13 Jackson Harper <jackson@ximian.com>
6885 * Form.cs: Update styles after setting the border style regardless
6886 of whether or not the window is using a window manager.
6888 2005-12-13 Jackson Harper <jackson@ximian.com>
6890 * Form.cs: We now hook into an internal window manager instead of just an
6891 MDI subsystem, this is so we can have properly behaving tool windows.
6892 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
6893 * InternalWindowManager.cs: New internal class that acts as a
6894 window manager for tool windows and as a base for mdi windows.
6895 * MdiWindowManager.cs: New class that acts as a window manager for
6898 2005-12-12 Jackson Harper <jackson@ximian.com>
6900 * Control.cs: Updates so we match behavoir for for implicit
6901 controls. Fixes explosions in MDI.
6903 2005-12-12 Jackson Harper <jackson@ximian.com>
6905 * Control.cs: Implement Invalidate (Region).
6907 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
6910 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
6911 the same events as MS does. MS fires events for each property
6912 except, for unknown reasons, Cursor, when the control is reparented.
6913 I can't seem to totally match add/remove since MS also fires some
6914 VisibleChanged events, which makes no sense. Consolidated the
6915 parenting code into a separate method so it can be called from
6916 both Add and Remove. set_Parent no longer needs any special logic
6917 as it calls the parent's add method which implicitly fires
6919 - Removed some obsolete code and debug output
6920 - Enabled state is inherited from parents, if this is enabled
6922 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
6924 * Form.cs: Removed commented out code
6926 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
6929 - Added internal version of Invoke, with additional argument
6930 indicating if we're calling it from a Dispose() handler. That
6931 way we can avoid BeginInvoke throwing an exception if we're
6932 calling for an already destroyed window.
6933 - Added a dispose argument to BeginInvokeInternal, and made the
6934 check if a valid window handle chain exists conditional on
6935 it not being a dispose call
6936 - Removed code in DestroyHandle to destroy our children. Since we
6937 now handle the WM_DESTROY message we will catch all our children
6939 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
6941 - Added a field to track the application context of the form.
6942 - No need to set closing variable as response to WM_CLOSE, instead
6943 we destroy the window. We also call PostQuitMessage if the form
6944 has an application context (which makes it the main app form,
6945 which, when closed terminates the app)
6947 - Dropped Exit() method, it's naming was confusing
6948 - Added PostQuitMessage() which causes GetMessage to return false
6949 once the message queue is empty
6950 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
6952 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
6953 no longer a valid XplatUI method, but left it in since it's used
6954 internally. Added empty PostQuitMessage() method.
6955 * MenuAPI.cs: Replaced call to Exit() with call to
6956 PostQuitMessage, even though this is probably no longer needed.
6957 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
6958 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
6960 - Replaced call to XplatUI.Exit() with PostQuitMessage()
6961 - Removed old debug code that would call XplatUI for exception
6962 display, enabled standard exception handling (Still not enabled
6963 though, until NativeWindow's ExternalExceptionHandler define
6966 - Added internal method to allow control to update NativeWindow
6967 after a window has been destroyed
6968 - Added handling of already destroyed windows when calling i
6970 - Added removal of handle from list on ReleaseHandle
6972 - Dropped GetMessageResult var and related code
6973 - Added PostQuitState to field to track if PostQuitMessage has been
6975 - Dropped Exit() method
6976 - Added PostQuitMessage() method
6977 - GetMessage now will return false if PostQuitState is set and no
6978 more messages are in the queue.
6979 - Expose handler will no longer generate WM_PAINT messages if we are
6980 in PostQuitState since it's very likely any windows have already
6981 been destroyed, and since Hwnd won't get updated until we have
6982 processed the DestroyNotify we'd be causing X errors.
6984 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6986 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
6987 Thanks to Mike for pointing out the err of my ways.
6989 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6991 * Control.cs(PreProcessMessage): Moved menu handling back, but
6992 after all other key handling, to match MS (who handles Menu in
6994 * Menu.cs (WndProc): Removed my brainfart
6996 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6998 * Control.cs(PreProcessMessage): Removed special menu handling
6999 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7001 2005-12-07 Mike Kestner <mkestner@novell.com>
7003 * Control.cs : special case SYSKEYUP so that we can adjust keynav
7004 state according in tracker.
7005 * Menu.cs : promote tracker field to base class and provide a tracker
7006 lookup capability. Add/Remove shortcuts dynamically if the top menu
7007 has a tracker. Unparent items that are removed from the collection.
7008 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7009 * Theme*.cs: add always_show_hotkeys field to support configurability
7010 of mnemonic display. win32 doesn't show mnemonics until Alt is
7013 2005-12-07 Jackson Harper <jackson@ximian.com>
7015 * MdiChildContext.cs: Use Control.ResetCursor.
7016 * Control.cs: ResetCursor needs to set the property so that the
7017 correct XplatUI call gets made.
7019 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7021 * Control.cs: More fixes to make our key events match MS. We
7022 were not setting the modifier state on KeyData, and we were
7023 not generating any events when Alt was pressed with a key
7024 since handling of WM_SYSxxx was missing for the OnKey methods.
7026 2005-12-07 Jackson Harper <jackson@ximian.com>
7028 * MdiChildContext.cs: reenable the sizing code.
7029 - When the mouse leaves a window reset its cursor.
7031 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7033 * ThemeClearlooks.cs: Reflect latest Hwnd changes
7035 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7037 * Hwnd.cs: Now using the theme 3d bordersize to calculate
7038 widths of Fixed3D borders
7040 2005-12-07 Jackson Harper <jackson@ximian.com>
7042 * MdiClient.cs: Fix warnings. Earn Mike's love.
7044 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7046 * ThemeClearlooks.cs:
7047 - Adjusted mouse over button color
7048 - Added first parts of CheckBox drawing
7049 - Added correct color for selected text background
7050 - Fixed ComboBox drawing
7051 - Added CPDrawBorder3D and CPDrawBorder
7053 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7055 * XplatUIX11.cs: Added call to XBell for AudibleAlert
7057 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7059 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7060 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7061 alert users via sound. We could add an enum arg with different
7062 types of alerts in the future
7064 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7066 * Control.cs: Fix behaviour problems pointed out by Mike
7068 2005-12-05 Mike Kestner <mkestner@novell.com>
7070 * StatusBarPanel.cs: add Invalidate method and hook it into all the
7071 prop setters. Calls parent.Refresh for now, but could be maybe be
7072 optimized with an internal method on StatusBar at some point.
7075 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
7077 * RichTextBox.cs: Implemented get_SelectionColor
7079 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
7081 * ThemeClearlooks.cs:
7083 - Draw black button border only if button is Form.AcceptButton
7084 - Draw correct button color for pressed RadioButton if the mouse
7085 has entered the button
7086 - Updated ProgressBar drawing!
7087 - Updated CPDrawSizeGrip drawing
7088 - Updated StatusBarPanel drawing
7090 2005-12-05 Mike Kestner <mkestner@novell.com>
7092 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7093 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7095 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
7097 * ThemeClearlooks.cs: Initial check-in, activate with
7098 export MONO_THEME=clearlooks
7099 * ThemeEngine.cs: Added ThemeClearlooks
7101 2005-12-03 Mike Kestner <mkestner@novell.com>
7103 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7106 2005-12-02 Jackson Harper <jackson@ximian.com>
7108 * Form.cs: If the child form has no menu the default main menu is
7109 used as the active menu.
7111 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7113 * ListBox.cs: Check if any items exist before trying to resolve
7114 coordinates into items
7116 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7118 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7119 as the second color for the background hatch
7121 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7123 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7124 * RichTextBox.cs: FormatText position arguments are 1-based, now making
7125 sure that what we pass to FormatText is always 1-based. Fixes #76885
7127 2005-11-29 Miguel de Icaza <miguel@novell.com>
7129 * NumericUpDown.cs (EndInit): When we are done initializing,
7130 reflect any updates on the UI.
7132 2005-12-02 Jackson Harper <jackson@ximian.com>
7134 * ImplicitHScrollBar.cs:
7135 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7136 their container controls.
7137 * TreeView.cs: Use the new implicit scrollbars.
7139 2005-12-02 Jackson Harper <jackson@ximian.com>
7141 * TreeView.cs: Make top_node internal so the TreeNodeCollections
7143 * TreeNodeCollection.cs: If we remove the topnode we need to
7144 update topnode to the next node in line.
7145 - When clearing nodes go through the same process as removing
7146 them, so they get depareneted and checked if they are top node.
7148 2005-12-01 Jackson Harper <jackson@ximian.com>
7150 * TreeView.cs: When imagelists are used the image area is
7151 selectable as well as the text.
7152 - If there are no selected nodes select the first one.
7153 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7154 so don't do it more then we need to.
7156 2005-12-01 Jackson Harper <jackson@ximian.com>
7158 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7159 that arrows can be scaled.
7161 2005-12-01 Jackson Harper <jackson@ximian.com>
7163 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7164 fail. Patch by Dieter Bremes
7166 2005-11-30 Jackson Harper <jackson@ximian.com>
7168 * Form.cs: Property is 2.0 only
7169 * PrintDialog.cs: Signature fix.
7171 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7174 - No longer artificially moves text 2 pixels down (now that we have
7175 borders this is no longer needed)
7176 - Added calcs for left, hanging and right indent
7178 2005-11-23 Mike Kestner <mkestner@novell.com>
7180 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7182 2005-11-30 Jackson Harper <jackson@ximian.com>
7184 * MdiChildContext.cs: Set the cloned menus forms, as these don't
7185 get cloned as part of CloneMenu ().
7186 * Menu.cs: Make sure the parent of the items get set correctly
7187 when they are added. And the owners are notified of the changes.
7188 * Form.cs: Create an ActiveMenu property, so that when MDI is used
7189 we can change the menu being displayed/handled by the form without
7190 changing the menu assosciated with the form.
7191 - Don't let Mdi children draw/handle menus.
7193 2005-11-30 Jackson Harper <jackson@ximian.com>
7195 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
7196 a MenuChanged event. Just to make the API a little more
7199 * MenuItem.cs: Use the new OnMenuChanged
7200 * MdiChildContext.cs: Handle menu merging.
7201 * Form.cs: Implement MergedMenu.
7203 2005-11-30 Jackson Harper <jackson@ximian.com>
7205 * Menu.cs: We were misusing Add. Add goes behind the specified
7206 index according to the docs, and does not replace the specified
7207 index. So I added an Insert method.
7209 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7211 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
7212 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
7214 * RichTextBox.cs: Added calls to base for DnD events
7216 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
7219 - Fixed drag-selection related crash; style fixes
7220 - Implemented undo class
7221 o Implemented method to capture document state for specified
7222 range in document tree
7223 o Implemented method to restore captured document state
7224 o Implemented cursor tracking
7225 o Implemented basic undo stack
7226 - Added undo cursor tracking to methods altering cursor location
7227 - Added undo tracking to selection deletion (still missing
7228 other text-altering hookups)
7230 - Added SelectionLength property
7231 - Implemented CanPaste()
7232 - Implemented Paste()
7233 - Added missing protected methods
7234 - Fixed RTF->Document conversion; now uses font index 0 and color
7235 index 0 as the default font for the parsed text
7236 - Fixed RTF<->Document font size translation
7237 - Fixed RTF generation, now properly handles cross-tag boundaries
7238 for single line selection
7239 - No longer always appends blank line to generated RTF
7241 - Added missing attributes
7242 - Hooked up undo-related methods
7244 - Implemented Copy()
7245 - Implemented Paste()
7247 - Fixed caret mis-behaviour on backspace across line-boundaries
7249 2005-11-29 Jackson Harper <jackson@ximian.com>
7251 * MdiClient.cs: Add a method for activating mdi children. Very
7252 basic right now. I imagine someday it might need more girth.
7253 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
7254 children windows names are added to the menu item.
7255 * ThemeWin32Classic.cs: Draw the arrow if the item is an
7256 mdilist. This happens regardless of whether or not there are any
7257 mdi windows to see in the list, and according to my tests happens
7258 before the items are even added. Also happens if there isn't even
7259 an mdi client to get windows from.
7261 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
7263 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
7264 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
7266 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
7268 * DataGridTableStyle.cs:
7269 - Create always the styles for the missing columns even if they are
7270 provided by the user (not default table style)
7273 - Fixes SetDataBinding (always re-attach source)
7274 - Fixes SetNewDataSource (only clear styles if they are not for
7276 - Expands OnTableStylesCollectionChanged to handle style refresh
7279 2005-11-29 Jackson Harper <jackson@ximian.com>
7281 * FileDialog.cs: Implement missing bits, remove some dead
7283 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
7284 creation of the panel so that the options set on the dialog are
7285 seen when the panel is created.
7286 * TreeView.cs: raise a click when items are clicked.
7288 2005-11-29 Jackson Harper <jackson@ximian.com>
7290 * MdiClient.cs: Pass some signature methods through to base.
7292 2005-11-28 Jackson Harper <jackson@ximian.com>
7294 * ListView.cs: Raise the click event when items are clicked.
7296 2005-11-28 Jackson Harper <jackson@ximian.com>
7298 * MdiClient.cs: Make this algorithm even more beautiful. And fix
7301 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
7303 * ThemeNice.cs: - Removed 1 pixel bitmaps
7304 - Use SmoothingMode.AntiAlias where it makes sense
7305 (ScrollButton arrow for example)
7306 - Enhanced Button focus drawing
7307 - Fixed ComboBox drawing (no artefacts anymore, focus
7308 rectangle is back again, reduced size of ComboButton, etc.)
7309 - Fixed RadioButton focus drawing for Appearence.Button
7310 - Slight ScrollButton redesign
7311 - Some LinearGradientBrush size fixes
7312 - GroupBoxes have now rounded edges
7313 - Fixed StatusBar drawing
7315 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
7317 * ThemeNice.cs: - Remove dead code
7318 - use correct background colors for menus, etc.
7319 - Fake pixel drawing with 1 pixel bitmaps
7321 2005-11-24 Jackson Harper <jackson@ximian.com>
7323 * MdiClient.cs: Size the scrollbars when resizing the window.
7324 - Resize the maximized windows when the client is resized
7325 * Form.cs: Make the child context available
7327 2005-11-23 Jackson Harper <jackson@ximian.com>
7329 * MdiChildContext.cs: Don't size windows if they are maximized.
7331 2005-11-23 Mike Kestner <mkestner@novell.com>
7333 * ContextMenu.cs: use MenuTracker.
7334 * Control.cs: remove menu handle usage.
7335 * Form.cs: remove menu handle usage.
7336 * Hwnd.cs: remove menu handle usage.
7337 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
7338 motion and clicks to the new Tracker handlers.
7339 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
7341 * MenuAPI.cs: refactored to combine popup and menubar event handling.
7342 Killed the MENU and MENUITEM data types and associated collections
7343 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
7344 MenuTracker class that exposes the leftovers from the old MenuAPI
7345 static methods. Restructured Capture handling so that only one grab is
7346 done for the entire menu hierarchy instead of handing off grabs to
7347 submenus. Tracker now has an invisible control to Capture when active.
7348 * MenuItem.cs: add sizing accessors, kill Create
7350 * Theme.cs: remove menu handle and MENU(ITEM) usage.
7351 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
7352 MENU(ITEM). remove menu handle usage, use Menu directly.
7353 * XplatUIDriver.cs: remove menu handle usage.
7354 * XplatUIOSX.cs: remove menu handle usage.
7355 * XplatUIWin32.cs: remove menu handle usage.
7356 * XplatUIX11.cs: remove menu handle usage.
7358 2005-11-22 Jackson Harper <jackson@ximian.com>
7360 * Hwnd.cs: Don't compute the menu size for
7361 DefaultClientRectangle.
7362 - Reenable menu sizes being computed for GetClienRectangle.
7363 * Form.cs: Remove comment of trechery
7365 2005-11-22 Jackson Harper <jackson@ximian.com>
7367 * Hwnd.cs: The adjustments for the menu bar are made when it is
7368 attached to the form.
7370 2005-11-19 Jackson Harper <jackson@ximian.com>
7372 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
7373 (just like on windows).
7375 2005-11-19 Jackson Harper <jackson@ximian.com>
7377 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
7378 use real buttons anymore because they are in non client area. The
7379 one TODO here is that I need to somehow invalidate a section of
7380 the non client area.
7382 2005-11-18 Jackson Harper <jackson@ximian.com>
7384 * Control.cs: Put the enum check back in now that MDI doesnt have
7385 to use this to set border styles.
7386 * Form.cs: Only set mdi child windows borders if the handle has
7388 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
7389 this directly on to the driver.
7390 - Get the move start position before adjusting for the titlebar
7391 height, this fixes the windows "skipping" when they are first
7394 2005-11-18 Jackson Harper <jackson@ximian.com>
7396 * XplatUIX11.cs: Just compute the mdi borders separately as they
7397 don't totally match up with normal form borders.
7399 2005-11-18 Jackson Harper <jackson@ximian.com>
7401 * Control.cs: Set WS_ styles for borders, so that the driver does
7402 not have to retrieve the control instance to figure out what kind
7403 of borders it should have.
7404 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
7405 driver can know its an mdi child easily.
7406 * XplatUIX11.cs: Get the border styles and whether the window is
7407 MDI from the Styles and ExStyles params instead of having to get a
7408 control. This prevents a chicken and egg problem.
7410 2005-11-18 Jackson Harper <jackson@ximian.com>
7412 * MdiClient.cs: Fix typo so scrollbars show up correctly.
7414 2005-11-18 Jackson Harper <jackson@ximian.com>
7416 * MdiClient.cs: Calculate when to add and remove scrollbars
7418 * MdiChildContext.cs: Adjust the y position to take the titlebar
7420 - No height for FormBorderStyle.None
7422 2005-11-18 Jackson Harper <jackson@ximian.com>
7424 * Control.cs: Allow non enum values to be used for
7425 InternalBorderStyle. MDI does this to set a special border style.
7426 - New utility methods for converting points to/from client coords
7427 - Add the newly created control to the Controls collection before
7428 updating its style. This way UpdateStyle can walk the control
7429 heirarchy to find the control if needed.
7430 so I don't need to create a new Point object all the time.
7431 * Form.cs: Let MDI windows handle their border styles.
7432 - Set styles on MDI windows so the correct title style is derived.
7433 * MdiChildContext.cs: Move all the painting and window handling
7434 into the non client area.
7435 - Use correct sizing and put correct buttons on frames based on
7436 the FormBorderStyle.
7437 - Notify the mdi client about scrolling
7438 - Need to handle the buttons ourselves now, because they are all
7439 in non client areas and we can't add controls there.
7440 * MdiClient.cs: Halfway to scrolling, this implementation is
7441 somewhat broken though, we need to check to make sure other
7442 windows aren't causing scrolling before removing the bars. Also
7443 the bars need to be drawn on top, maybe I can switch implicit
7444 controls to be on top.
7445 * Hwnd.cs: caption_height and tool_caption_height are now
7446 properties of an hwnd, this way they can be set by the driver
7447 based on the type of window they are. In X11 the window manager
7448 handles the decorations so caption_height is zero unless its an
7450 - Add 3 pixel borders for MDI windows (0xFFFF).
7451 - Get rid of some code duplication, have DefaultClientRectanle
7452 just call GetClientRectangle.
7453 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
7455 - Set border styles differently for mdi windows.
7456 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
7459 2005-11-15 Mike Kestner <mkestner@novell.com>
7461 * Menu.cs: when adding an item to the collection, if item is already
7462 parented, remove it from the parent.
7464 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
7466 * X11DesktopColors.cs: Added KDE support
7468 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
7471 - Clipboard methods now can translate Rtf format
7472 - No longer removes clipboard contents whenever a new format is added
7473 to allow placing multiple formats on the clipboard
7474 * Clipboard.cs: Clipboard now supports getting a IDataObject and
7475 will place all formats contained in it onto the clipboard. Also
7476 now cleans the clipboard before placing a new object onto it
7478 - Implemented set_Rtf
7479 - Implemented set_SelectedRtf
7480 - Created InsertRTFFromStream() method to allow single code base
7481 for all properties and methods that insert RTF into document
7482 - Removed debug output
7484 - Fixed Delete(int) to fix up line numbers
7485 - Fixed ReplaceSelection to combine start and end line
7486 - Fixed serious DeleteChars bug that would leave the document tree
7488 - Improved DumpTree with several logic checks to detect broken
7490 - Removed debug lines
7491 - Fixed Caret.WordForward/WordBack moving code, now always also
7492 updates caret.tag (fixes crash when word-selecting across tag
7493 boundaries via keyboard)
7494 - Added Insert() method for inserting multiline text into documents
7495 - Fixed DeleteChars() calculation errors that would cause a broken
7496 tag chain with multiple tag lines
7497 - DeleteChars() no longer crashes on multi-tag lines if not all tags
7498 - Split() no longer moves caret if split is at caret location
7499 - ReplaceSelection() now updates the cursor and re-displays it
7500 - ReplaceSelection() now uses new Insert() method to avoid code
7502 - FormatText() can now handle formatting partial lines
7504 - Append now uses new TextControl.Insert() method (this avoids
7506 - Implemented Ctrl-X (Cut) (
7507 - Implemented Ctrl-C (Copy)
7508 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
7509 regeneration when pasting text; roundtripping Copy&Paste within
7510 edit control still fails due to some calculation bugs in GenerateRTF)
7511 - The Delete key will now remove the current selection if it is visible
7512 * TextBox.cs: Removed debug lines
7513 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
7514 driver to be initialized and can't therefore be done via a static ctor)
7516 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
7518 * TextControl.cs: Added backend code for finding char arrays and strings
7520 - Added mouse wheel scroll support
7521 - Added support for VScroll and HScroll events
7523 - Implemented all seven Find() variants
7524 - Implemented GetCharFromPosition()
7525 - Implemented GetCharIndexFromPosition()
7526 - Implemented GetLineFromIndex()
7527 - Implemented GetPositionFromCharIndex();
7528 - Implemented SaveFile for PlainText and UnicodeText
7529 - Fixed set_Font, now setting a new font applies that font to
7531 - Implemented generic Document to RTF converter
7532 - Implemented SaveFile for RichText format (still missing unicode
7533 conversion for non-ansi chars)
7534 - Implemented get_Rtf
7535 - Implemented get_SelectedRtf
7537 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
7539 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
7540 to allow any captures to be released before triggering OnClick. This
7541 way a click handler may capture the mouse without interference.
7542 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
7543 This way we send them even though X may not allow a grab (if the window
7544 isn't visible, for example)
7546 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
7548 * DataGridViewRowEventArgs.cs: DataGridView implementation
7549 * DataGridViewElement.cs: DataGridView implementation
7550 * DataGridViewComboBoxCell.cs: DataGridView implementation
7551 * DataGridViewDataErrorContexts.cs: DataGridView implementation
7552 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
7553 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
7554 * ImageLayout.cs: DataGridView implementation
7555 * DataGridViewComboBoxColumn.cs: DataGridView implementation
7556 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
7557 * DataGridViewSelectionMode.cs: DataGridView implementation
7558 * IDataGridViewEditingControl.cs: DataGridView implementation
7559 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
7560 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
7561 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
7562 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
7563 * DataGridViewColumnSortMode.cs: DataGridView implementation
7564 * DataGridView.cs: DataGridView implementation
7565 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
7566 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
7567 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
7568 * Padding.cs: DataGridView implementation
7569 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
7570 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
7571 * DataGridViewRowEventHandler.cs: DataGridView implementation
7572 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
7573 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
7574 * DataGridViewButtonCell.cs: DataGridView implementation
7575 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
7576 * DataGridViewEditMode.cs: DataGridView implementation
7577 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
7578 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
7579 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
7580 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
7581 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
7582 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
7583 * DataGridViewCellEventHandler.cs: DataGridView implementation
7584 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
7585 * DataGridViewCellStyleConverter.cs: DataGridView implementation
7586 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
7587 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
7588 * DataGridViewColumnEventArgs.cs: DataGridView implementation
7589 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
7590 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
7591 * QuestionEventArgs.cs: DataGridView implementation
7592 * IDataGridViewEditingCell.cs: DataGridView implementation
7593 * DataGridViewTriState.cs: DataGridView implementation
7594 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
7595 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
7596 * DataGridViewColumnCollection.cs: DataGridView implementation
7597 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
7598 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
7599 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
7600 * DataGridViewColumn.cs: DataGridView implementation
7601 * DataGridViewCellBorderStyle.cs: DataGridView implementation
7602 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
7603 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
7604 * DataGridViewRow.cs: DataGridView implementation
7605 * DataGridViewImageCellLayout.cs: DataGridView implementation
7606 * DataGridViewImageCell.cs: DataGridView implementation
7607 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
7608 * DataGridViewCheckBoxCell.cs: DataGridView implementation
7609 * DataGridViewHeaderCell.cs: DataGridView implementation
7610 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
7611 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
7612 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
7613 * DataGridViewTextBoxColumn.cs: DataGridView implementation
7614 * QuestionEventHandler.cs: DataGridView implementation
7615 * DataGridViewCellStyleScopes.cs: DataGridView implementation
7616 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
7617 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
7618 * DataGridViewCell.cs: DataGridView implementation
7619 * DataGridViewCellEventArgs.cs: DataGridView implementation
7620 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
7621 * DataGridViewCellStyle.cs: DataGridView implementation
7622 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
7623 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
7624 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
7625 * TextFormatFlags.cs: DataGridView implementation
7626 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
7627 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
7628 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
7629 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
7630 * DataGridViewButtonColumn.cs: DataGridView implementation
7631 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
7632 * HandledMouseEventArgs.cs: DataGridView implementation
7633 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
7634 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
7635 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
7636 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
7637 * DataGridViewRowCollection.cs: DataGridView implementation
7638 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
7639 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
7640 * DataGridViewHitTestType.cs: DataGridView implementation
7641 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
7642 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
7643 * DataGridViewColumnEventHandler.cs: DataGridView implementation
7644 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
7645 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
7646 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
7647 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
7648 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
7649 * DataGridViewContentAlignment.cs: DataGridView implementation
7650 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
7651 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
7652 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
7653 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
7654 * DataGridViewPaintParts.cs: DataGridView implementation
7655 * DataGridViewCellCollection.cs: DataGridView implementation
7656 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
7657 * DataGridViewImageColumn.cs: DataGridView implementation
7658 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
7659 * DataGridViewElementStates.cs: DataGridView implementation
7660 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
7661 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
7662 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
7663 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
7664 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
7665 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
7666 * DataGridViewRowHeaderCell.cs: DataGridView implementation
7667 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
7668 * DataGridViewTextBoxCell.cs: DataGridView implementation
7669 * DataGridViewBand.cs: DataGridView implementation
7670 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
7671 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
7672 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
7673 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
7674 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
7675 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
7676 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
7677 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
7678 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
7679 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
7680 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
7682 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
7684 * ThemeWin32Classic.cs:
7685 - Draw the outside focus rectangle around buttons
7686 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
7687 doesn't use end caps for every dash of a line anymore. This
7688 workaround ignores the forecolor.
7690 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
7692 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
7695 2005-11-07 Jackson Harper <jackson@ximian.com>
7697 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
7699 2005-11-07 Jackson Harper <jackson@ximian.com>
7701 * ScrollableControl.cs: Calculate the maximum and change vars
7702 (more) correctly so that scrollbars appear as a sensible size.
7704 2005-11-04 Jackson Harper <jackson@ximian.com>
7706 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
7708 * TreeView.cs: When the tree is sorted null out the top_node so
7709 that it is recalculated.
7710 - Use dotted lines instead of dashed lines to match MS better.
7712 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
7715 - Implements key search for items. Useful when browsing files with FileDialog
7716 - When changing view mode or when clear the items reset scrollbar positions
7718 2005-11-04 Jackson Harper <jackson@ximian.com>
7720 * CurrencyManager.cs: Implement the MetaDataChanged event, the
7721 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
7722 as to what the method may do as there is no real way of creating a
7723 derived CurrencyManager and calling the method.
7725 2005-11-03 Jackson Harper <jackson@ximian.com>
7727 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
7728 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
7729 method which seems to just be used internally to refresh the tabs.
7731 2005-11-03 Jackson Harper <jackson@ximian.com>
7733 * TabControl.cs: Implement the remove method. Fix some broken
7736 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7738 * DateTimePicker.cs:
7739 - Added missing DateTimePickerAccessibleObject class
7740 - Added missing events
7741 - Added OnFontChanged method
7742 * Form.cs: Added missing attributes
7743 * TreeView.cs: Added missing attributes
7745 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7747 * GridItemCollection.cs: Fix signatures
7749 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7751 * XplatUI.cs: Updated build rev/date
7752 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
7753 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
7754 * Application.cs: Trigger context-specific ExitThread events
7756 2005-11-03 Jackson Harper <jackson@ximian.com>
7760 * GridTableStylesCollection.cs:
7765 * MonthCalendar.cs: Signature fixes
7767 2005-11-03 Jackson Harper <jackson@ximian.com>
7769 * TreeNodeCollection.cs: Remove should not be virtual.
7770 * TreeView.cs: Implement the last of the missing methods.
7772 2005-11-03 Jackson Harper <jackson@ximian.com>
7774 * TreeNodeConverter.cs: Implement to get off my class-status back.
7776 2005-11-03 Jackson Harper <jackson@ximian.com>
7778 * TreeView.cs: Hookup the bits for drag and drop.
7779 * TreeNode.cs: Don't cache the tree_view or index anymore, now
7780 that nodes can be moved from tree to tree easily this just causes
7781 all sorts of problems.
7782 * TreeNodeCollection: Don't need to give treenodes an index and
7783 treeview anymore when they are added, these are computed on the
7784 fly. Also make sure to remove a node before its added.
7786 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7789 - Added CaretSelection enum
7790 - Added comparison methods to Marker struct, makes selection code
7792 - Added SelectionStart and SelectionEnd as 'moveable' location for
7793 the CaretDirection enum and handler
7794 - Added selection_prev variable to track optimized invalidation for
7795 word and line selection
7796 - Added SelectionVisible property (returns true if there is a valid
7798 - Switched CaretHasFocus to only display the caret if there is no
7800 - Avoiding StringBuilder.ToString to retrieve a single char, instead
7801 using the direct character index; should be much faster
7802 - Added various conditional debug statements
7803 - Fixed invalidation calculation for selection ranges
7804 - Added ExpandSelection() method to support word and line selection
7805 - Switched SetSelectionToCaret to use new Marker compare overloads
7806 - Added central IsWordSeparator() method to determine word
7807 separators/whitespace and FindWordSeparator() to streamline common
7808 usage of IsWordSeparator()
7810 - Removed unneeded grabbed variable, it was just mirroring
7812 - No longer firing OnTextChanged event when Text setter is called,
7813 since the base will fire the event for us
7814 - Added handling of Ctrl-Up/Down selection
7815 - Added handling of Shift-Cursorkey selection
7816 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
7818 - Added handling of Shift and Ctrl-Shift-Home/End selection
7819 - Removed some debug output
7820 - Added handling for single/double/tripple-click to place caret/
7821 select word/select line respectively (Fixes bug #76031)
7822 - Added support for drag expansion of word/line selection
7823 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
7826 2005-11-02 Jackson Harper <jackson@ximian.com>
7828 * X11Dnd.cs: If the drag is going to and from a MWF window just
7829 copy the data instead of sending it out through the X Selection
7832 2005-11-02 Jackson Harper <jackson@ximian.com>
7835 * XplatUIX11.cs: When in a drag we don't want motion notify
7836 messages to get passed on to the other controls. This prevents
7837 mouse move messages from showing up in the drag source.
7839 2005-11-02 Jackson Harper <jackson@ximian.com>
7841 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
7842 the correct button is release to end a drag.
7843 * XplatUIX11.cs: Make the button state internal so the drag system
7844 can access it. Dragging needs to know about all button releases,
7845 not just left button.
7847 2005-11-02 Miguel de Icaza <miguel@novell.com>
7849 * Form.cs (Icon): If the icon is null, reset the icon to the
7852 * Cursor.cs: When writing the AND-mask bitmap do not include the
7853 number of colors, but hardcode those to two (black and white),
7854 fixes the loading of color cursors (Paint Dot Net).
7856 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
7857 turn off autoscaling.
7859 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
7861 2005-11-02 Jackson Harper <jackson@ximian.com>
7863 * X11Dnd.cs: Make sure to send a status message if the pointer
7864 enters a control that can not accept a drop, otherwise the cursor
7865 isn't updated correctly. Also tried to compress the lines of code
7868 2005-11-02 Jackson Harper <jackson@ximian.com>
7870 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
7871 set actions correctly. This isn't perfect as XDND and win32 have
7872 some differences on how you allow actions. I'll clear this up by
7873 adding a path for drag from MWF to MWF windows.
7874 * XplatUIX11.cs: Hook into the dnd system.
7876 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
7878 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
7879 previously shown but they are no longer need it. Very obvious when
7880 browsing files with FileDialog.
7882 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
7884 * Control.cs: We always need to call OnPaintBackground. We pretty much
7885 ignore AllPaintingInWmPaint and always do the painting there, whether
7886 it's set or not, since we always ignore the WM_ERASEBKGND message
7887 (which we don't generate on X11). This fixes #76616.
7888 * Panel.cs: Removed unneeded background painting. This happens properly
7889 in Control.cs already
7891 2005-10-31 Mike Kestner <mkestner@novell.com>
7893 * Menu.cs: Add items to collection before setting their index.
7894 * MenuItem.cs : add range checking with ArgumentException like MS.
7897 2005-10-31 Jackson Harper <jackson@ximian.com>
7899 * ListBox.cs: Invalidate if the area is visible at all not just
7900 contained in the visible rect. Fixes unselection of semi visible
7903 2005-10-31 Jackson Harper <jackson@ximian.com>
7905 * Control.cs: Consistently name the dnd methods. Make them
7906 internal so we can override them to match some MS behavoir
7908 * Win32DnD.cs: Use the new consistent names.
7910 2005-10-31 Jackson Harper <jackson@ximian.com>
7912 * TreeView.cs: Don't draw the selected node when we lose focus.
7914 2005-10-31 Jackson Harper <jackson@ximian.com>
7916 * X11Dnd.cs: We still need to reset the state even though a full
7917 reset isn't being done, otherwise status's still get sent all over
7920 2005-10-31 Jackson Harper <jackson@ximian.com>
7922 * Control.cs: Make the dnd_aware flag internal so the dnd
7923 subsystem can check it. Catch exceptions thrown in dnd handlers to
7925 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
7926 * X11Dnd.cs: Handle null data in the converters. Set the XDND
7927 version when sending a XdndEnter. Use the control/hwnd dnd_aware
7928 flags to reduce the number of dnd enters/status's sent.
7930 2005-10-31 Jackson Harper <jackson@ximian.com>
7932 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
7934 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
7936 * PictureBox.cs: Fixes 76512
7938 2005-10-28 Jackson Harper <jackson@ximian.com>
7940 * X11Dnd.cs: Early implementation to support winforms being a drag
7941 source for data on X11. Also restructured the converters so they
7942 can go both ways now.
7943 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
7945 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
7947 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
7950 2005-10-27 Jackson Harper <jackson@ximian.com>
7952 * TreeNode.cs: Implement serialization so my DnD examples will work.
7954 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
7956 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
7957 TreeView.cs: Don't dispose objects that are not owned.
7959 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
7961 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
7962 should retrieve the current cursor and report that, but XplatUI
7963 doesn't (yet) have an interface for that (and I'm not sure I even
7965 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
7966 until any message loop processing is done (and the WM_SETCURSOR
7967 replaces the cursor to the proper one)
7969 - Fixed override behaviour, we can't set the cursor globally on X11,
7970 just for our windows.
7971 - Invalidating the System.Drawing X11 display handle when we are
7973 * Control.cs: Fix to make csc happy
7975 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
7978 - get_Text: Add last line (without trailing newline) to returned
7980 - get_TextLength: Count last line in returned length
7981 - ToString: Call Text property instead of duplicating code
7983 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
7985 * ImageList.cs: Dispose ImageAttributes objects.
7987 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
7989 * ImageList.cs: Use attribute constructors with less arguments where
7992 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
7994 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
7995 Use typeof instead of strings when assembly is referenced. Added
7998 2005-10-21 Jackson Harper <jackson@ximian.com>
8000 * ListView.cs: Raise a double click event. Also tried to somewhat
8001 fix when the selectedindexchanged event is raised. Its still
8004 2005-10-21 Jackson Harper <jackson@ximian.com>
8006 * TreeView.cs: New method to invalidate the plus minus area of a
8007 node without invalidating the whole node (maybe this can be used
8008 in some more places).
8009 * TreeNodeCollection.cs: When adding to an empty node we need to
8010 invalidate its plus minus area so the little block shows up.
8012 2005-10-21 Jackson Harper <jackson@ximian.com>
8014 * TreeView.cs: Make sure that when we invalidate a node the bounds
8015 are big enough to cover the selected box and the focus
8016 rectangle. Use a different colour for the lines connecting nodes
8017 so they show up with all themes.
8019 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8021 * NativeWindow.cs: Don't call anything that could call into the driver,
8022 we might be on a different thread.
8024 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8026 * Control.cs(Dispose): Since Dispose might run on a different thread,
8027 make sure that we call methods that could call into the driver via
8028 invoke, to avoid thread issues
8030 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8032 * XplatUI.cs: Removed finalizer
8033 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8034 not allowing to be called on the finalizer thread.
8036 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
8039 - Reverted r51889 and r51891.
8040 - Added ImageListItem class that stores unmodified image items and image
8041 properties required to create list images until handle is created.
8042 - Added AddItem and moved image creation logic to AddItemInternal.
8043 - Added CreateHandle method that creates images based on unmodified items.
8044 - Added DestroyHandle that changes state to store unmodified items.
8045 - Add and AddStrip methods no more create handle.
8046 - ReduceColorDepth has no return value.
8047 - Dispose destroys handle.
8048 - Modified other methods to reflect the above changes.
8049 - Implemented key support.
8050 - Added profile 2.0 members and attributes.
8051 - Added private Reset and ShouldSerialize methods that provide the same
8052 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8053 them as they are private.
8054 - Added some more comments about implementation details.
8056 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8058 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8060 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8062 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8064 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8066 * DataGridDrawingLogic.cs: Fixes column hit calcultation
8067 * DataGridColumnStyle.cs: Remove debug message
8069 2005-10-20 Jackson Harper <jackson@ximian.com>
8071 * TreeView.cs: We can always get input keys regardless of whether
8072 or not editing is enabled. They are used for navigation.
8074 2005-10-20 Jackson Harper <jackson@ximian.com>
8076 * TreeNode.cs: Use the viewport rect for determining if a node
8077 needs to be moved for visibility. Don't use Begin/End edit. This
8078 calls a full refresh when its done.
8079 * TreeView.cs: New SetBottom works correctly. Make the viewport
8080 rect property internal so the treenodes can see it. When clicking
8081 on a node we need to ensure that its visible because it might just
8082 be partly visible when clicked.
8084 2005-10-20 Jackson Harper <jackson@ximian.com>
8086 * TreeNodeCollection.cs: Remove debug code.
8088 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8090 * Datagrid.cs: Implements column sorting in Datagrid
8091 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8093 2005-10-20 Jackson Harper <jackson@ximian.com>
8095 * TreeNodeCollection.cs: Remove items properly. Update the correct
8096 area after removing them.
8098 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8100 * Datagrid.cs: Should not call base.OnPaintBackground
8102 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8104 * XplatUIX11.cs (GetMessage):
8105 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8106 window instead of client window
8107 - Now properly calculates NC_xBUTTONUP message coordinates
8108 - ScreenToMenu now properly calculates it's coordinates of whole
8109 window, since menus are in the whole window, not in the client
8111 - Added WholeToScreen coordinate translation method
8113 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8115 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8116 want to return a message, loop back to the beginning of the function
8117 and grab the next real message to process instead.
8119 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8121 * Splitter.cs: Properly set limits if no filler control is used
8123 2005-10-19 Jackson Harper <jackson@ximian.com>
8125 * ColorDialog.cs: Don't show the help button if it is not enabled
8126 instead of disabling it (this is what MS does). Don't create the
8127 panel until the dialog is run, otherwise the vars (such as
8128 ShowHelp) are not set yet.
8130 2005-10-19 Jackson Harper <jackson@ximian.com>
8132 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8133 are reduced when adding nodes.
8135 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8138 2005-10-19 Jackson Harper <jackson@ximian.com>
8140 * FolderBrowserDialog.cs: End editing our treeview so the window
8141 actually gets refreshed.
8143 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8145 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
8146 Obsoleted handling of WM_ERASEBKGND, now always draws our background
8149 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8151 * MenuAPI.cs: Returns after Hidding window
8152 * XplatUIX11.cs: Added TODO found while debugging menu issues
8154 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8156 * XplatUIX11.cs: Do not re-map the whole window when it's size
8157 becomes non-zero unless it's supposed to be actually visible
8159 2005-10-18 Jackson Harper <jackson@ximian.com>
8161 * TreeView.cs: We don't need to keep a count anymore.
8162 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8163 use the Grow method.
8165 2005-10-18 Jackson Harper <jackson@ximian.com>
8167 * TreeNodeCollection.cs: Insert is not supported on arrays, so
8168 implement it manually here.
8170 2005-10-18 Jackson Harper <jackson@ximian.com>
8172 * ImageList.cs: Dont kill the list when the colour depth is
8173 changed, just change the colour depth of all the images.
8174 - Same goes for setting the image size. Just resize them all
8175 instead of killing the list softly.
8177 2005-10-18 Jackson Harper <jackson@ximian.com>
8179 * Control.cs: Don't invalidate empty rectangles.
8181 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8184 - Adds checked item to the Checked/Item lists (where empty before)
8185 - Do not add items to the Selected lists if they are already present
8187 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8188 - When deleting items make sure that we delete them for the Selected
8189 and Checked list also.
8191 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8193 * Label.cs: Dispose objects no longer used
8194 * ThemeWin32Classic.cs: Dispose objects no longer used
8196 2005-10-18 Jackson Harper <jackson@ximian.com>
8198 * TabControl.cs: Don't refresh the whole control when the tabs are
8199 scrolled, we just need to refresh the tab area.
8201 2005-10-17 Jackson Harper <jackson@ximian.com>
8203 * XplatUIX11.cs: Compress code a little bit. Only calculate the
8204 after handle when we need it.
8206 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8208 * Control.cs: When the parent size changes, recalculate anchor
8209 positions. Partial fix for #76462
8211 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8213 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
8216 2005-10-17 Jackson Harper <jackson@ximian.com>
8218 * MonthCalendar.cs: Don't create the numeric up down until our
8219 handle is created. Otherwise our handle is created in the
8220 constructor and we don't know if we are a WS_CHILD or WS_POPUP
8223 2005-10-17 Jackson Harper <jackson@ximian.com>
8225 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
8228 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8229 * TreeNode.cs : small logical fix (was using local var instead of field)
8231 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8233 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
8235 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8237 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
8239 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
8242 - Re-implemented anchoring code. My first version was really broken.
8243 This fixes bug #76033. Unlike the previous implementation we will
8244 no longer have round errors since all numbers are calculated from
8245 scratch every time. Removed various anchor-related obsolete vars.
8246 - InitLayout no longer causes layout event firing and layout to be
8249 2005-10-16 Jackson Harper <jackson@ximian.com>
8251 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
8254 2005-10-16 Jackson Harper <jackson@ximian.com>
8256 * TabControl.cs: Remove debug code.
8258 2005-10-16 Jackson Harper <jackson@ximian.com>
8260 * XEventQueue.cs: Increase the default queue size (very simple
8261 apps needed to grow the queue).
8262 * Hwnd.cs: No finalizer so we don't need to suppress
8263 finalization. Compute the invalid area manually so a new rectangle
8264 does not newto be created.
8265 * ScrollableControl.cs: Don't set any params (otherwise visibility
8266 isn't set correctly).
8267 * MdiChildContext.cs: New constructor takes the mdi parent so it
8268 doesn't have to be computed and avoids a crash on windows. Draw
8269 the window icon properly, and allow the text to be seen.
8270 * Form.cs: Use new MdiChildContext constructor. Make sure the
8271 child context isn't null in wndproc.
8272 * TabControl.cs: Don't set focus, this is muddling keyboard
8273 behavoir. Expand the tab rows when a window size increase will
8274 allow extra tabs to be seen. Don't allow tabs smaller than the
8275 width of a window to be scrolled out of view.
8277 * TreeView.cs: Use measure string to calculate a nodes width, the
8278 width is cached and only updated when the text or the font is
8279 changed. Don't check for expand/collapse clicks on the first level
8280 nodes if root lines are disabled.
8282 2005-10-16 Ritvik Mayank <mritvik@novell.com>
8284 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
8286 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8288 * DataGridBoolColumn.cs: fixes warning
8290 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8292 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
8293 to match more to match more precisely the MS Net behavior
8295 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8297 * Hwnd.cs: Added field to track if window is mapped
8299 - Unmap windows if they become 0-size, re-map when
8300 they are >0 again; fixes #76035
8301 - Re-set our error handler after initializing X11Desktop
8302 to override any error handlers Gtk or whatever was called
8305 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8307 * CheckedListBox.cs: Removed unused vars
8308 * ListView.cs: Fixed signatures
8309 * RichTextBox.cs: Removed unused vars
8310 * TextBoxBase.cs: Removed unused vars
8311 * XplatUIWin32.cs: Removed unused vars
8312 * XplatUIX11.cs: Removed unused vars
8313 * XplatUI.cs: Updated version and date to latest published
8315 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8317 * Cursor.cs: Added private .ctor to work around a bug in
8318 resourceset (Thanks to Geoff Norton for the help on this)
8319 * SplitterEventArgs.cs: Made fields accessible so we don't
8320 waste boatloads of objects and can reuse the same one
8322 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
8323 any captions and borders when generating screen coordinates
8324 * Splitter.cs: Reimplemented control, now fully complete, uses
8325 rubberband drawing, supports and obeys all properties, has
8328 2005-10-13 Miguel de Icaza <miguel@novell.com>
8330 * Form.cs (Form): Setup default values for autoscale and
8331 autoscale_base_size; Make these instance variables, not static
8334 (OnLoad): on the first load, adjust the size of the form.
8336 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8338 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
8339 width argument to DrawReversibleRectangle()
8340 * XplatUIWin32.cs, XplatUIX11.cs:
8341 - Implemented width for DrawReversibleRectangle()
8342 - Added logic to DrawReversibleRectangle that recognizes a zero
8343 width or height and only draws a line in that situation
8345 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8347 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
8348 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
8349 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
8350 method (it uses our FosterParent window to get a graphics context)
8352 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8354 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
8355 and SetWindowBackground methods
8357 - Setting proper ControlStyles
8358 - We no longer call XplatUI.SetWindowBackground and XplatUI.
8359 EraseWindowBackground, instead we draw the window background
8360 ourselves in PaintControlBackground. This behaviour is
8361 required to match MS, where, when OnPaintBackground is not
8362 called, the background is not drawn.
8363 - Removed unneeded Refresh() in set_Text
8364 * Hwnd.cs: Dropped the ErasePending support. No longer needed
8366 - Created DeriveStyles method to translate from CreateParams to
8367 FormBorderStyle and TitleStyle, also handles BorderStyle (which
8368 matches FormBorderStyle enum values)
8369 - Consolidated SetHwndStyles and CalculateWindowRect border/title
8370 style calculations into single DeriveStyles method
8371 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
8372 from redrawing the whole window on any resize or expose.
8373 - Fixed CreateWindow usage of SetWindowValuemask. Before not
8374 all styles were applied to our whole/client window appropriately
8375 - Removed EraseWindowBackground() and SetWindowBackground() methods
8376 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
8377 no longer clear/redraw the background through X
8378 - Removed handling of erase_pending bit, we have no use for it (or
8381 - Removed generation and handling of WM_ERASEBKGND message
8382 - Removed EraseWindowBackground() and SetWindowBackground() methods
8383 - Removed handling of hwnd.ErasePending flag
8385 - Removed EraseWindowBackground() and SetWindowBackground() methods
8386 - We no longer call EraseWindowBackground on PaintEventStart, we
8387 ignore the fErase flag, erasing is handled in Control in the
8389 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
8390 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
8391 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
8392 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
8393 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
8394 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
8395 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
8397 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
8399 * PropertyGrids.cs: Get sub properties
8400 * PropertyGridView.cs: Fix drawing code
8402 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8404 * ListBox.cs: Fixes 76383
8406 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8408 * DataGridTextBoxColumn.cs: Sets location and size before attachment
8409 * ThemeWin32Classic.cs: Fixes border drawing and calculations
8410 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
8413 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8415 * ComboBox.cs: Fixes border drawing
8417 2005-10-10 Miguel de Icaza <miguel@novell.com>
8419 * MimeIcon.cs: Ignore errors if the file can not be read.
8421 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8423 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
8424 - Fixed border calculations
8425 - Fixed horizontal scrolling in single column listboxes
8426 - Fixed drawing issues
8428 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
8430 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
8431 FormBorderStyle enum
8432 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
8433 code to determine FormBorderStyles from CreateParams
8435 - Fixed bug where we'd set the wrong window styles if we were
8436 not creating an MDI window
8437 - Added call to XplatUI.SetBorderStyle when form borders are set
8438 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
8440 - Removed obsolete edge style
8441 - Switched from BorderStyle to FormBorderStyle
8443 2005-10-10 Jackson Harper <jackson@ximian.com>
8445 * Form.cs: Use the property to get the window handle instead of
8446 accessing it directly. Prevents a null reference exception.
8448 2005-10-10 Jackson Harper <jackson@ximian.com>
8450 * TreeView.cs: Don't adjust the rect given to DrawString now that
8451 our libgdiplus draws correctly.
8453 2005-10-08 Jackson Harper <jackson@ximian.com>
8455 * TreeView.cs: Don't try to find the clicked on node if there are
8456 no nodes in the tree.
8458 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8464 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8466 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
8467 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
8469 Use ResPool for brushes and dispose System.Drawing objects that
8470 are not used anymore.
8472 2005-10-07 Jackson Harper <jackson@ximian.com>
8474 * MdiChildContext.cs: Use the new borders instead of drawing them
8477 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8479 * Calling UpdateBounds after changing the window's BorderStyle
8480 since the style can change the ClientSize
8482 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8484 * Control.cs: Made PaintControlBackground virtual
8485 * Panel.cs: Overriding PaintControlBackground instead of using paint
8486 event; paint event method was interfering with 'real' users of the
8489 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8491 * ThemeWin32Classic.cs: remove border drawing since it is handled
8492 by the base control class now and was causing double border drawing.
8494 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8496 * Panel.cs: Redraw our background on paint. Not a pretty solution,
8497 but it does seem to match MS behaviour. This fixes bug #75324
8499 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8501 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
8502 somewhat hackish looking
8504 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8507 - We now accept Enter even if AcceptEnter is false, if the containing
8508 form does not have an AcceptButton configured (fixes bug #76355)
8509 - Calculations are now fixed to no longer use Width/Height, but
8510 ClientSize.Width/Height, since we now support borders (this was
8511 a result of fixing borders and therefore bug #76166)
8512 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
8513 true (fixes bug #76354)
8515 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8518 - Defaulting BorderStyle and setting it in XplatUI when our window
8520 - Added enum check to InternalBorderStyle setter
8522 - Added drawing of window borders
8523 - Now properly calculates WM decorations offset for toplevel
8524 windows (fixes bug #74763)
8526 - Implemented BorderStyles for windows (we're letting win32 draw
8528 - Fixed the signature for SetWindowLong
8529 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
8530 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
8532 * UpDownBase.cs: Remove drawing of borders, this is handled by
8533 the driver, outside the client area
8534 * ListView.cs: Removed bogus border calculations. The control should
8535 be oblivious to borders, since those are not part of the client
8537 * X11DesktopColors.cs: Commented out (currently) unneeded variables
8538 * ThemeWin32Classic.cs: Removed border calculations from ListView
8541 2005-10-06 Jackson Harper <jackson@ximian.com>
8543 * MdiChildContext.cs: Clear out the old virtual position remove
8544 all the unneeded calls to CreateGraphics.
8546 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8548 * TextControl.cs: Use proper color for highlighted text; fixes #76350
8550 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8553 - Added loading and setting of our new default icon
8554 - Only set icon if window is already created
8556 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8559 - Do not explicitly set the foreground and background colors, to
8560 allow inheriting from parents (fixes #76302)
8561 - Use Control's InternalBorderStyle property to deal with borders
8563 2005-10-06 Jackson Harper <jackson@ximian.com>
8565 * MdiChildContext.cs: Use the new xplatui function to draw a
8568 2005-10-06 Jackson Harper <jackson@ximian.com>
8570 * Form.cs: Add the parent before creating the child context cause
8571 we need the parent when setting up the child.
8573 2005-10-06 Jackson Harper <jackson@ximian.com>
8575 * FolderBrowserDialog.cs: redo the tree population code so a
8576 second thread isn't used. Should be a lot faster and more stable
8579 2005-10-05 Jackson Harper <jackson@ximian.com>
8581 * TreeView.cs: There are no expand/collapse boxes if the node has
8584 2005-10-05 Jackson Harper <jackson@ximian.com>
8586 * X11DesktopColors.cs: Get menu colours for the gtk theme.
8588 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
8590 * FileDialog.cs: Fix InitialDirectory
8592 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8595 - Fixes changing between styles
8597 - Fixes last item crashing when navigating with keyboard
8599 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8601 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
8603 2005-10-05 Jackson Harper <jackson@ximian.com>
8605 * TreeView.cs: If updating the root node do a full refresh.
8606 * TreeNode.cs: The root node should be expanded by default. Also
8607 added a utility prop to tell if we are the root node.
8608 * TreeNodeCollection.cs: Only refresh if the node we are being
8609 added to is expanded. Also added a comment on a potential
8612 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
8614 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
8615 in dispose method. Fixes #76330
8617 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
8619 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
8621 - Implements vertical and horizontal scrolling using XplatUI
8622 - Fixes keyboard navagation
8623 - Fixes EnsureVisible
8625 - Handles and draws focus properly
8628 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
8630 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
8631 Create handle. NET_2_0: Destroy handle when value is null.
8633 2005-10-03 Jackson Harper <jackson@ximian.com>
8635 * ScrollBar.cs: My last scrollbar patch was broken. This is a
8636 revert and a new patch to prevent the thumb from refreshing so
8639 2005-10-02 Jackson Harper <jackson@ximian.com>
8641 * ScrollBar.cs: Don't update position if it hasn't actually
8642 changed. This occurs when you hold down the increment/decrement
8643 buttons and the thumb gets to the max/min.
8645 2005-10-01 Jackson Harper <jackson@ximian.com>
8648 * MdiChildContext.cs:
8649 * MdiClient.cs: Implement ActiveMdiChild in Form.
8651 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
8653 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
8655 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
8657 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
8660 2005-09-30 Jackson Harper <jackson@ximian.com>
8662 * ListBox.cs: Don't do a full refresh unless some data has
8665 2005-09-30 Jackson Harper <jackson@ximian.com>
8667 * TreeView.cs: Make sure that the checkboxes size is factored in
8668 even when not visible.
8670 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8672 * FileDialog.cs: Fix Jordi's build break
8674 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
8677 - Use standard the Windows colours for the combobox as espected
8678 - Dispose objects that use resouces when no longer need them
8680 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8682 * X11DesktopColors.cs: Initial incomplete implementation
8683 * XplatUIX11.cs: Added call to initialize X11DesktopColors
8685 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8688 - Switched Theme color names to match the names defined in
8689 System.Drawing.KnownColors. Life's hard enough, no need to make
8691 - Added setters to all theme color properties so themes can set
8692 their color schemes. The setters also propagate the color changes
8693 to System.Drawing.KnownColors via reflection
8694 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
8695 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
8696 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
8697 use the new, more logical theme color names
8698 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
8700 * ThemeWin32Classic.cs:
8701 - Removed code to set the old classic Windows colors. Instead it
8702 now relies on the colors returned by System.Drawing.KnownColors
8703 which will be either modern static colors (Unix) or colors
8704 read from the user's configuration (Win32)
8705 - Updated to use the new, more logical theme color names
8706 - Switched DataGrid drawing code to use only Theme colors instead of
8707 a mix of System.Drawing.KnownColors and Theme colors
8708 - DrawFrameControl(): Removed code that fills the button area, the
8709 fill would overwrite any previous fill done by a control. This
8711 - Added DrawReversibleRectangle() stub
8712 * ScrollableControl.cs: Set visible state to false when scrollbars
8713 are removed (pdn fix)
8714 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
8715 DrawReversibleRectangle() method to allow drawing primitive
8717 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
8719 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8721 * ImageList.cs: Add(Icon): Create handle.
8723 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
8726 * ThemeWin32Classic.cs:
8729 - Issues with drawing
8731 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8733 * ImageList.cs: Moved RecreateHandle back to ImageList as event
8734 source has to be the ImageList.
8736 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8738 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
8740 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8742 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
8744 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8746 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
8748 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
8749 * GridItem.cs: Fixed TODOs
8750 * GridItemCollection.cs: Added ICollection interface
8752 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8754 * ImageList.cs: Resize icons when needed.
8756 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
8759 - Fixes GetBounds and returns on screen rects
8761 - Fixes vertical and horzintal scrolling of items
8762 * ThemeWin32Classic.cs:
8765 2005-09-29 Raja R Harinath <harinath@gmail.com>
8767 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
8769 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
8771 * ImageList.cs: Added comments about handle creation. Moved Handle,
8772 HandleCreated and OnRecreateHandle implementations to ImageCollection.
8773 Handle is created in Add methods.
8775 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
8777 * DataGridDrawingLogic.cs:
8778 - Takes rows into account on Colum calculations
8779 - Returns the column when clickig
8781 - Fixes default HitTestInfo values
8782 - Fixes HitTestInfo.ToString
8783 - Fixes ResetBackColor
8785 2005-09-28 Jackson Harper <jackson@ximian.com>
8787 * MdiChildContext.cs: Obey rules for fixed sized windows (no
8788 sizing or cursor changes). Also added some temp code to draw the
8789 titlebars text (Makes dev a little easier).
8791 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
8793 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
8795 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
8797 * ListBox.cs: Fixes bug 76253
8799 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
8801 * ImageList.cs: Added comments about the current implementation. Added
8802 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
8803 Format32bppArgb to preserve transparency and can use Graphics.FromImage
8804 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
8805 with Bitmap.LockBits for better performance. Revised the whole file to
8806 match MS.NET behaviour and provide better performance. Non-public
8807 interface members are calling public members even when they throw
8808 NotSupportedException for better maintainability. Moved ColorDepth,
8809 ImageSize, ImageStream and TransparentColor implementations to
8810 ImageCollection for better performance as these properties are not used
8812 * ImageListStreamer.cs: Added a new internal constructor that takes an
8813 ImageList.ImageCollection and serializes Images based on
8814 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
8815 match ImageList property name.
8817 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
8819 * ListBox.cs: Fixes IndexFromPoint for last item
8821 2005-09-27 Jackson Harper <jackson@ximian.com>
8823 * Form.cs: Set the position of new mdi children correctly.
8825 2005-09-27 Jackson Harper <jackson@ximian.com>
8827 * MdiClient.cs: New mdi children need to be added to the back of
8828 the controls collection so the zorder is set correctly. Also add a
8829 count of all the child windows that have been created.
8831 2005-09-27 Jackson Harper <jackson@ximian.com>
8833 * Form.cs (CreateParams): Setup MDI forms correctly.
8835 2005-09-27 Jackson Harper <jackson@ximian.com>
8837 * MdiChildContext.cs:
8844 * ScrollableControl.cs:
8845 * ComboBox.cs: Add implicit controls using the new implict control
8846 functionality in ControlCollection. Also try to block multiple
8847 control add in a suspend/resume layout to save some cycles.
8849 2005-09-27 Jackson Harper <jackson@ximian.com>
8851 * Control.cs: Add functionality to the controls collection to add
8852 'implicit controls' these are controls that are created by the
8853 containing control but should not be exposed to the user. Such as
8854 scrollbars in the treeview.
8855 * Form.cs: The list var of the ControlsCollection is no longer
8856 available because of the potential of implicit controls getting
8857 ignored by someone accessing the list directly.
8859 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
8861 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
8862 loose it's parent. (Fixed bug introduced in r49103 when we added
8863 setting the child parent to null on Remove)
8865 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
8867 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
8868 * Splitter.cs: Added missing attributes for BorderStyle property.
8869 * TextBoxBase.cs: Marked Calculate* methods internal.
8870 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
8873 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
8875 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
8877 2005-09-25 Jackson Harper <jackson@ximian.com>
8879 * TreeView.cs: Update the node bounds correctly regardless of
8880 whether the node is visible.
8882 2005-09-25 Jackson Harper <jackson@ximian.com>
8884 * ImageList.cs: Don't dispose the image after it is added to the
8885 image list. Only reformat images that need to be resized.
8887 2005-09-25 Jackson Harper <jackson@ximian.com>
8889 * ImageList.cs: Don't set the format when changing the image.
8891 2005-09-25 Jackson Harper <jackson@ximian.com>
8893 * TreeView.cs: We can't just assume the node has a font. Use the
8894 treeviews font if no node font is available.
8896 2005-09-25 Jackson Harper <jackson@ximian.com>
8898 * TreeView.cs: Allow the scrollbars to be reset with negative
8900 - Don't add scrollbars to negative sized windows.
8902 2005-09-23 Jackson Harper <jackson@ximian.com>
8904 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
8905 old Mono.Posix. Also remove some stray code that shouldn't have
8908 2005-09-23 Jackson Harper <jackson@ximian.com>
8910 * TreeView.cs: Attempt at proper sizing of the horizontal
8911 scrollbar. Also don't resize the scrollbars unless they are
8914 2005-09-23 Jackson Harper <jackson@ximian.com>
8916 * TreeView.cs: We don't need to expand the invalid area when the
8917 selection changes, as this is all drawn in the node's bounding
8918 box. The area needs to be expanded (previous typo was contracting
8919 it) when the focus rect moves.
8921 2005-09-23 Jackson Harper <jackson@ximian.com>
8923 * TreeView.cs: Display the selection box under the correct
8924 circumstances. We were rendering white text with no selection box
8927 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
8929 * TextControl.cs(Split): Now updates selection start/end if it points
8930 into a line that's being split. Fixes a FIXME and bug #75258
8932 2005-09-23 Jackson Harper <jackson@ximian.com>
8935 * ListControl.cs: Don't use the path when retrieving binding
8936 managers from the binding context. My bat sense tells me that the
8937 path is only used on insertion.
8939 2005-09-22 Jackson Harper <jackson@ximian.com>
8941 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
8943 2005-09-22 Jackson Harper <jackson@ximian.com>
8945 * Splitter.cs: There are special cursors used for splitting.
8946 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
8948 2005-09-22 Jackson Harper <jackson@ximian.com>
8950 * Splitter.cs: Change the cursor appropriately when the splitter
8951 is moused over, so the user actually knows there is a splitter
8954 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
8956 * Label.cs : Fix ToString method to give same output as MS.NET
8958 2005-09-22 Jackson Harper <jackson@ximian.com>
8960 * TreeView.cs: Create the scrollbars when the handle is created
8961 and add them right away, just make them invisble. Also account for
8962 the window being shrunk vertically to the point that the vert
8963 scrollbar needs to be added.
8964 - Remove some 0.5 adjustments to get around anti aliasing issues.
8966 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
8968 * MainMenu.cs: Fixes default value
8969 * MenuItem.cs: Fixes default value
8971 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
8973 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
8975 2005-09-21 Jackson Harper <jackson@ximian.com>
8977 * Control.cs: Don't try to set the border style on the window if
8978 it hasn't been created. When the window is created the border
8981 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8983 * Control.cs (Update): Don't call XplatUI if we don't have a
8986 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8988 * ContainerControl.cs: Instead of throwing an exception, print
8989 a one-time warning about Validate not being implemented
8990 * XplatUIWin32.cs: Removed debug output
8992 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8994 * Control.cs: Only set XplatUI background if we expect the windowing
8995 system to handle the background. This stops controls that draw their
8996 own background from flickering
8998 * XplatUIX11.cs: Support custom visuals and colormaps for window
8999 creation. This allows, amongst other things, using MWF X11 windows
9002 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9004 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9005 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9006 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9007 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9008 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9009 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9010 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9011 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9012 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9013 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9014 GridColumnStylesCollection.cs,
9015 IDataGridColumnStyleEditingNotificationService.cs,
9016 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9017 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9018 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
9019 TreeNodeCollection.cs, AmbientProperties.cs,
9020 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9021 DataObject.cs, ErrorProvider.cs, Splitter.cs,
9022 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9023 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9024 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9025 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9026 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9027 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9028 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9029 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9030 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9031 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9032 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9033 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9034 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9035 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9036 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9037 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9038 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9039 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9040 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9041 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9042 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9043 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9044 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9045 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9046 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9047 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9048 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9049 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9050 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9051 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9052 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9053 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9054 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9055 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9056 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9058 2005-09-21 Jackson Harper <jackson@ximian.com>
9060 * TreeNode.cs: Call Before/After Expand not Collapse when
9063 2005-09-20 Jackson Harper <jackson@ximian.com>
9065 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9067 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9071 - Fixes proper storing of subitems
9072 - Fixes not updated items
9074 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9076 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9077 things if our window handle isn't created yet. Also disabled
9078 debug for TextBoxBase
9080 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9082 * MenuAPI.cs: Remove filtering of events to allow menu usage
9084 2005-09-20 Miguel de Icaza <miguel@novell.com>
9086 * Cursor.cs: Allow null to be passed to Cursor.Current.
9088 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
9090 * ThemeWin32Classic.cs:
9091 - Change some private methods/fields to protected virtual so that
9092 they can be accessed and overriden in derived classes
9093 - First refactoring of some methods. Derived themes now don't
9094 need to duplicate the complete code from ThemeWin32Classic
9096 - Added nice StatusBar
9097 - Derive from ThemeWin32Classic and not Theme
9098 - Removed duplicate ThemeWin32Classic code
9100 2005-09-20 Miguel de Icaza <miguel@novell.com>
9102 * Control.cs (ControlCollection.Add): If the value null is passed
9103 the control is ignored.
9107 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9109 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9110 PostQuitMessage state.
9111 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9113 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9115 * Application.cs: Our constructor will never get called, move
9116 initialization to fields; fixes bug #75933
9118 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9121 - Allow files to be selected properly using file name
9123 - Add ability to change diretory (absolute / relative)
9124 using file name combo box.
9126 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9129 - Fixes Multicolumn listboxes item wrong calculations
9130 - Allows to click when only one item is in the listbox
9131 - Fixes crash when no items using keyboard navigation
9133 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
9135 * ComboBox.cs: Reverted almost everything from the latest patch which
9138 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
9141 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9143 - When DropDownStyle is Simple, it does not show scrollbar
9144 to the last item of the list.
9145 - When DropDownStyle is Simple, it crashed when the list was
9146 scrolled down with the down cursor key.
9147 - Fixed a bug that when DropDownStyle is DropDownList, the
9148 selected item was not shown.
9149 - The position of the selected item was not preserved when
9150 the next dropdown happened.
9151 * ThemeWin32Classic.cs:
9152 - Items were wrapped at the right end.
9153 * CheckedListBox.cs:
9156 - Items should be fully shown.
9157 - When resizing and vertical scrollbar disappeared, the item
9158 of index 0 should be on the top of the list.
9159 - GetItemRectangle should consider the size of ver. scrollbar
9161 - SizingGrip area should not be allocated when it is not
9163 - Now it reflects MinWidth of the containing panel and
9164 fixed a crash that happens when its width becomes so small.
9166 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9168 * CheckedListBox.cs: Fixes bug 76028
9169 * ListBox.cs: Fixes bug 76028
9171 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9173 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9174 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9176 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
9178 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9180 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9182 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
9184 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9186 * IRootGridEntry.cs: Added
9187 * PropertyGridCommands.cs: Added
9188 * PropertiesTab.cs: Added missing methods and property
9189 * PropertyGridView.cs: Made class internal
9190 * PropertyGridTextBox.cs: Made class internal
9192 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9194 * MimeIcon.cs: Try to check some other environment variables
9195 if "DESKTOP_SESSION" returns "default"
9197 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9199 * ThemeNice.cs: Corrected background colors (e.g. menus)
9200 * ColorDialog.cs: Use correct background colors for controls
9202 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9204 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
9206 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
9208 * RichTextBox.cs: Added initial implementation
9209 * lang.cs: Removed. Was accidentally checked in long time ago
9210 * TODO: Removed. Contents were obsolete
9212 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9214 * PropertiesTab.cs : Added
9216 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9218 * PropertyGrid.cs : Update
9219 * PropertyGridView.cs : Update
9220 * System.Windows.Forms.resx : Added images and strings
9222 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9224 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
9226 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9228 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
9229 a busy loop right after the Ungrab the X11 display is otherwise
9232 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
9234 * ThemeWin32Classic.cs: Optimise the use of clipping
9236 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
9238 * DataGrid.cs: fixes recursion bug
9240 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
9243 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
9246 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
9248 * ThemeNice.cs: Draw nice ProgressBars
9250 2005-09-01 Miguel de Icaza <miguel@novell.com>
9252 * VScrollBar.cs: Another buglet found by Aaron's tool.
9254 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
9257 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
9260 - Added nicer menu drawing
9264 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9266 * CreateParams.cs (ToString): Made output match MS
9267 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
9268 handle is already created (to avoid forcing window creation)
9269 * XplatUIX11.cs: Set window text to caption after creating window,
9270 in case Text was set before window was created
9271 * Form.cs: Use this.Text instead of a static string as caption
9273 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9275 * NotifyIcon.cs: Don't set the window to visible; this screws
9276 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
9277 OnPaint without a bitmap)
9278 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
9279 happen very often anyway; we could add the check to the WM_PAINT
9280 event generation code
9282 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9284 * NotifyIcon.cs: Fill the icon area with a background color, to
9285 avoid 'residue' when transparent icons are drawn
9287 - Handle whole_window == client_window when destroying windows
9288 - SystrayAdd(): Set client_window to whole_window value to
9289 get mouse and other events passed to NotifyIcon
9291 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9293 * Form.cs: Set proper default for Opacity property
9295 - ShowSystray(): Don't bother creating telling the OS
9296 about the systray item if no icon is provided
9297 - Now handles WM_NCPAINT message to deal with whole/client window
9299 - Create window as visible to not get caught by Expose optimization
9300 * Hwnd.cs: Removed debug message
9301 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
9302 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
9303 PaintEventStart/End to use new client argument
9305 - Commented out debug messages
9306 - Switched PaintEventStart/End to use new client argument
9307 * XplatUI.cs: Added client window bool to PaintEventStart()/
9308 PaintEventEnd() calls, to support drawing in non-client areas
9310 - Added client window bool to PaintEventStart()/PaintEventEnd()
9311 calls, to support drawing in non-client areas
9312 - Added conditional compile to allow using MWF BeginInvoke
9315 - Added some conditional debug output
9316 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
9317 whole/client window split
9318 - Implemented handling of client argument to PaintEventStart()/End()
9320 - Throw exception if BeginInvoke() is called and the window handle
9321 or one of the window's parent handles is not created
9322 - Added conditional compile to allow using MWF BeginInvoke on
9324 - get_Parent(): Only sets parent if handle is created. This avoids
9325 forcing window handle creation when parent is set.
9326 - Now fires Layout and Parent changed events in proper order
9327 - Switched to use Handle instead of window.Handle for Z-Order setting,
9328 the get_Parent() patch above causes us to possibly get null for 'window'
9329 - Implemented handling of client argument to PaintEventStart()/End()
9330 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
9332 - Now sends a Refresh() to all child windows when Refresh() is called
9334 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
9336 * Form.cs: Added (non-functional) Opacity property
9337 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
9339 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
9340 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
9341 use export MONO_THEME=nice to activate it.
9342 Currently supported controls:
9346 - TabControl (TabAlignment.Top only, other will follow)
9347 * ThemeEngine.cs: Add theme nice
9348 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
9351 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
9353 * Splitter.cs: Resize docked control and its neighbor.
9355 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9356 -- Making Windows with Menus layout correctly --
9357 * Form.cs : The first leg of the fix
9358 Menu setter - adjust Client Size as needed to make space for the menu
9359 SetClientSizeCore - doesn't call base version to be able to pass the
9360 menu handle to XplatUI.CalculateWindowRect
9361 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
9362 * XplatUIX11.cs: The critical second leg of the fix
9363 GetWindowPos needs to use a recalculated client_rect
9364 so that resizing the window doesn't break layout of child controls.
9365 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
9368 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
9370 * Label.cs: Now properly recalculates width and height on Font and Text
9371 changes if AutoSize is set
9373 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9374 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
9376 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
9378 * ImageList.cs: Makes ToString method compatible with MS
9380 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
9382 * MenuAPI.cs: fixes bug 75716
9384 2005-08-11 Umadevi S <sumadevi@novell.com>
9385 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
9387 2005-08-11 Umadevi S <sumadevi@novell.com>
9388 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
9390 2005-08-10 Umadevi S <sumadevi@novell.com>
9391 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
9393 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
9395 * Menu.cs: fixes bug 75700
9396 * MenuAPI.cs: fixes navigation issues
9398 2005-08-09 Umadevi S <sumadevi@novell.com>
9399 * CheckedListBox.cs - simple fix for GetItemChecked.
9401 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
9403 * ComboBox.cs: Serveral fixes
9404 * ListBox.cs: Serveral fixes
9406 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9408 * ComboBox.cs: Fixes FindString methods and GetItemHeight
9409 * ListBox.cs: Fixes FindString methods
9411 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9413 * DataGrid.cs: fixes bugs exposed by new tests
9415 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
9417 * Mime.cs: Compile Mono assembly references only if compiling
9418 with Mono (Allows to build with VS.Net again)
9420 2005-07-28 Marek Safar <marek.safar@seznam.cz>
9422 * Control.cs (PaintControlBackground): Draw background image
9424 (CheckForIllegalCrossThreadCalls): Stubbed.
9426 * Form.cs (OnCreateControl): Center when should be centered.
9428 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
9430 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
9432 * Binding.cs: Binding to properties should be case unsensitive
9434 2005-07-18 vlindos@nucleusys.com
9436 * DataGrid.cs: fixes setmember order
9438 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
9440 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
9441 * FileDialog.cs: FileDialog is now resizable and uses the new
9444 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
9446 * DataGridTextBoxColumn.cs: default value
9447 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
9448 * GridTableStylesCollection.cs: fixes checking MappingName
9449 * DataGridDrawingLogic.cs: fixes drawing logic issues
9450 * DataSourceHelper.cs: rewritten to make compatible with more data sources
9451 * DataGrid.cs: fixes
9453 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
9455 * MimeGenerated.cs: Use case sensitive comparer for
9456 NameValueCollections
9458 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
9460 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
9461 * ThemeWin32Classic.cs: bug fixes, code refactoring
9462 * DataGridDrawingLogic.cs: bug fixes, code refactoring
9463 * DataGrid.cs: bug fixes, code refactoring
9464 * DataGridTextBox.cs: bug fixes, code refactoring
9465 * DataGridColumnStyle.cs: bug fixes, code refactoring
9466 * Theme.cs: bug fixes, code refactoring
9468 2005-07-01 Peter Bartok <pbartok@novell.com>
9470 * TextControl.cs: Quick fix for the reported crash on ColorDialog
9471 and other text box usage
9473 2005-07-01 Jackson Harper <jackson@ximian.com>
9475 * TabControl.cs: Make sure the bottom of the tab covers the pages
9478 2005-06-30 Peter Bartok <pbartok@novell.com>
9480 * Form.cs (ShowDialog): Assign owner of the dialog
9481 * TextBoxBase.cs: Always refresh caret size when deleting, caret
9482 might have been moved to a tag with different height
9484 2005-06-30 Jackson Harper <jackson@ximian.com>
9486 * Form.cs: Don't create an infinite loop when setting focus
9487 * MenuItem.cs: Don't dirty the parents if we don't have any
9489 2005-06-29 Ben Maurer <bmaurer@ximian.com>
9491 * LibSupport.cs: Rename
9493 2005-06-29 Peter Bartok <pbartok@novell.com>
9495 * TextBoxBase.cs: Re-align caret after deleting a character
9497 - DeleteChars(): Ensure that tag covers the provided position
9498 - StreamLine(): Drop reference for dropped tag
9500 2005-06-29 Peter Bartok <pbartok@novell.com>
9503 - Selections now work properly, anchoring at the initial location
9504 and properly extending in either direction (SetSelectionToCaret(),
9505 SetSelectionStart() and SetSelectionEnd())
9506 - No longer redraws the whole control on selection change, now
9507 calculates delta between previous and new selection and only
9508 invalidates/redraws that area
9509 - Fixed FindPos() math off-by-one errors
9510 - Changed DeleteChars() to verify the provided tag covers the
9511 provided position, selections may have a tag that doesn't cover
9512 the position if the selection is at a tag border
9513 - Fixed off-by-one errors in DeleteChars()
9514 - Added missing streamlining check in DeleteChars() to remove
9516 - Implemented Invalidate() method, now properly calculates exposures
9517 between two given lines/positions
9518 - Implemented SetSelection()
9519 - Obsoleted and removed FixupSelection()
9520 - Improved RecalculateDocument() logic, removing code duplication
9522 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9524 * LibSupport.cs: changes to match different input/output arguments.
9526 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9528 * LibSupport.cs: added libsupport.so init routine.
9530 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
9532 * ControlBindingsCollection.cs
9533 - Throws an exception on null datasource when adding
9534 - Checks for duplicated bindings when adding
9536 2005-06-28 Jackson Harper <jackson@ximian.com>
9538 * TreeView.cs (OnKeyDown): Support left and right properly
9539 (navigates as well as expanding and collapsing.
9540 - Add support for Multiply, this expands all the selected nodes
9544 2005-06-28 Jackson Harper <jackson@ximian.com>
9546 * TreeView.cs: Implement keyboard navigation, currently supports,
9547 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
9548 support for toggling checkboxes with the space bar.
9550 2005-06-28 Jackson Harper <jackson@ximian.com>
9552 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
9555 2005-06-28 Jackson Harper <jackson@ximian.com>
9557 * TreeView.cs: Add missing event.
9559 2005-06-27 Peter Bartok <pbartok@novell.com>
9562 - Made line ending size configurable (now allows for counting
9563 lineendings as \n or \r\n)
9564 - Added margin to viewport to keep caret visible on right side
9565 - Fixed translation routines for line/pos to documentpos to consider
9566 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
9567 - Fixed some line-endings to be unix style
9568 - Fixed Document.FormatText to perform it's calculations 1-based
9569 - Added descriptions for a few methods that might otherwise get
9571 - Added NOTE section with some basic conventions to remember at
9573 - Major fixup for RichTextBox selection drawing:
9574 * Fixed crashes when multiple tags on a single line were selected
9575 * fixed selection box drawing not overlaying text
9576 * fixed bogus offset calculation for tags not starting at index 1
9577 * Switched behaviour from using multiple Substrings of a
9578 StringBuilder.ToString() to using multiple
9579 StringBuilder.ToString(start, length) statements, hoping this is
9580 faster (kept original version commented out in the code, in case
9581 original version was faster)
9582 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
9584 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
9587 2005-06-27 Jackson Harper <jackson@ximian.com>
9589 * TabControl.cs: Move to the left and right with the arrow
9590 keys. These keys don't cycle beyond first and last like
9591 tab. Refresh all the tabs when scrolling them to the left or
9594 2005-06-27 Jackson Harper <jackson@ximian.com>
9597 - ToString: Added method
9598 - CreateParams: Remove TODO and comment
9599 - OnKeyDown: Cycle through bounds properly.
9600 - SelectedIndex: Scroll to the right or left if we need to
9601 display the newly selected tab.
9603 2005-06-23 Jackson Harper <jackson@ximian.com>
9605 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
9608 2005-06-23 Jackson Harper <jackson@ximian.com>
9610 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
9611 CTRL-SHIFT-TAB, and HOME, END are there any others?
9613 2005-06-23 Jackson Harper <jackson@ximian.com>
9615 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
9617 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9619 * DataGridTextBoxColumn.cs: fixes and enhancements
9620 * ThemeWin32Classic.cs: fixes and enhancements
9621 * DataGridBoolColumn.cs: fixes and enhancements
9622 * DataGridDrawingLogic.cs: fixes and enhancements
9623 * CurrencyManager.cs: fixes and enhancements
9624 * DataGrid.cs: fixes and enhancements
9625 * DataGridColumnStyle.cs: fixes and enhancements
9627 2005-06-22 Jackson Harper <jackson@ximian.com>
9629 * TabControl.cs: Add some missing methods that just call into the
9630 base. Make the TabPageCollection's IList interface behave in the
9631 same manner as the MS implementation.
9633 2005-06-22 Peter Bartok <pbartok@novell.com>
9635 * TextControl.cs: Added sanity check
9637 - Fixed wrapping behaviour, don't set wrap on single line controls
9638 (this fixes the breakage of colordialog introduced in an earlier
9640 - Added rudimentary support for autoscrolling right-aligned controls
9641 (still needs fixing, also, center alignment scroll is missing)
9643 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9645 * ScrollBar.cs: Fixes thumbpos on Maximum values
9647 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
9649 * PropertyGridView.cs: Pass context information to UITypeEditors
9651 2005-06-21 Peter Bartok <pbartok@novell.com>
9654 - Now calling PositionCaret with absolute space coordinates
9655 - Enabled vertical scrolling
9656 - Better tracking of scrollbar changes, tied into WidthChange
9658 - Improved cursor tracking
9659 - Removed debug output
9661 - PositionCaret coordinates are now works in absolute space, not
9663 - Improved tracking of document size
9664 - Added events for width and height changes
9666 2005-06-21 Peter Bartok <pbartok@novell.com>
9668 * Form.cs: Set focus to active control when form is activated
9670 - Added word-wrap functionality to RecalculateLine()
9671 - Added some short function descriptions for VS.Net to aid in
9672 writing dependent controls
9673 - Added Caret property, returning the current coords of the caret
9674 - Added ViewPortWidth and ViewPortHeight properties
9675 - Added Wrap property
9676 - Added CaretMoved event
9677 - Removed some old debug code
9678 - Split() can now create soft splits
9679 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
9680 - Added method to format existing text
9681 - Fixed size/alignment calculations to use viewport
9682 - RecalculateDocument now can handle changing line-numbers while
9686 - Added some wrap logic, we don't wrap if alignment is not left
9687 - Added casts for scrollbar var, base class switched types to
9688 also support RichTextBoxA
9689 - Implemented handling of scrollbar visibility flags
9692 - Switched scrollbars type to RichTextBoxScrollBars to support
9694 - Added tracking of canvas width/height
9695 - Switched scrollbars to be not selectable (to keep focus on text)
9696 - Added central CalculateDocument() method to handle all redraw
9698 - Added ReadOnly support
9699 - Added WordWrap support
9700 - Fixed handling of Enter key (we now treat it as a DialogKey)
9701 - Fixed caret positioning when h or v scroll is not zero
9702 - Fixed placing/generation of vertical scrollbar
9703 - Added CalculateScrollBars() method to allow updating scrollbar
9704 limits and visibility
9705 - Fixed handling of horizontal scroll
9706 - Added handling of vertical scroll
9707 - Implemented auto-'jump' when caret moves to close to a left or
9708 right border and there is text to be scrolled into view (currently
9709 there's the potential for a stack overflow, until a bug in
9712 2005-06-21 Geoff Norton <gnorton@customerdna.com>
9714 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
9716 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
9720 - return application/x-zerosize for files with size zero
9721 (if no extension pattern matches).
9722 - check matches collection for strings too.
9723 - return only the first mime type if the name value
9724 collection has more than one mime type.
9726 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
9728 * PropertyGrid.cs: Cleaned up some TODOs
9729 * PropertyGridView.cs: Added support for UITypeEditors
9731 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
9733 * DataGrid.cs: clears cached value
9735 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
9737 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
9738 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
9739 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
9740 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
9742 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
9744 * ThemeWin32Classic.cs: fixes colour
9746 2005-06-15 Peter Bartok <pbartok@novell.com>
9748 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
9749 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
9750 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
9751 * Control.cs: Added some MWFCategory and MWFDescription attributes
9752 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
9754 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
9756 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
9759 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
9761 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
9762 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
9763 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
9764 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
9765 * DataGrid.cs: default datagrid settings for Default Styles, fixes
9766 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
9768 2005-06-13 Jackson Harper <jackson@ximian.com>
9770 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
9771 isn't printed when the user enables dropping. (X11 does accept
9774 2005-06-13 Jackson Harper <jackson@ximian.com>
9776 * TreeView.cs: Remove some TODOS.
9778 2005-06-13 Jackson Harper <jackson@ximian.com>
9780 * Form.cs: Hook into the mdi framework.
9781 * MdiClient.cs: Use the base control collections add method so
9782 parents get setup correctly. Set the default back colour and dock
9784 * MdiChildContext.cs: New class, this bad actor handles an
9785 instance of an MDI window. Right now there is only basic
9786 support. You can drag, close, and resize windows. Minimize and
9787 Maximize are partially implemented.
9789 2005-06-13 Jackson Harper <jackson@ximian.com>
9791 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
9792 freaky when both vals are negative. NOTE: There are probably other
9793 places in XplatUIX11 that this needs to be done.
9795 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
9797 * DataGrid.cs: implement missing methods, move KeyboardNavigation
9798 * DataGridColumnStyle.cs: fixes signature
9800 2005-06-12 Jackson Harper <jackson@ximian.com>
9802 * XplatUIX11.cs: Use sizing cursors similar to the ones on
9805 2005-06-11 Jackson Harper <jackson@ximian.com>
9807 * StatusBarPanel.cs: Signature cleanups. Implement
9810 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
9812 * DataGridTextBoxColumn.cs: Honors aligment
9813 * GridColumnStylesCollection.cs: Contains is case unsensitive
9814 * GridTableStylesCollection.cs: several fixes
9815 * DataGridTableStyle.cs: default column creation
9816 * DataGridDrawingLogic.cs: fixes
9817 * CurrencyManager.cs: ListName property
9818 * DataGrid.cs: multiple styles support
9819 * DataGridColumnStyle.cs: fixes
9822 2005-06-10 Peter Bartok <pbartok@novell.com>
9824 * Control.cs(Select): Moved SetFocus call to avoid potential
9825 loops if controls change the active control when getting focus
9826 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
9829 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
9831 * ImageListConverter.cs: Implemented
9833 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
9835 * MonthCalendar.cs: Wired in NumericUpDown control for year
9837 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
9839 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
9840 DoubleClick events, since they are not meant to be fired.
9842 2005-06-09 Peter Bartok <pbartok@novell.com>
9844 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
9845 Jonathan's standalone controls into MWF, implemented missing
9846 events, attributes and methods; added xxxAccessible classes
9847 * AccessibleObject.cs: Made fields internal so other classes
9848 can change them if needed
9850 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
9852 * UpDownBase.cs: Complete implementation
9853 * NumericUpDown.cs: Complete implementation
9854 * DomainUpDown.cs: Complete implementation
9856 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
9858 * DataGridTextBoxColumn.cs: drawing fixes
9859 * DataGridCell.cs: fixes ToString method to match MSNet
9860 * DataGridTableStyle.cs: fixes
9861 * DataGridBoolColumn.cs: fixes, drawing
9862 * DataGridDrawingLogic.cs: fixes, new methods
9863 * DataGridTextBox.cs: Keyboard and fixes
9865 - Keyboard navigation
9867 - Row selection (single, multiple, deletion, etc)
9870 2005-06-07 Jackson Harper <jackson@ximian.com>
9872 * ThemeWin32Classic.cs: Clear the background area when drawing
9875 2005-06-06 Peter Bartok <pbartok@novell.com>
9877 * ImageListStreamer.cs: Fixed signature for GetData
9878 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
9880 - Added missing ChildAccessibleObject class
9881 - Added missing OnXXXFocus overrides, switched to using those
9882 instead of the event handler
9884 - Added Parent property for ControlAccessibleObject
9887 - Added ResetBindings()
9888 * ListBindingConverter.cs: Implemented some methods
9889 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
9890 * ImageList.cs: Implemented basic handle scheme, removed TODOs
9891 * ContainerControl.cs: Fixed signature, now subscribing to the
9892 ControlRemoved event instead of overriding the handler, LAMESPEC
9893 * CurrencyManager.cs: Added missing attribute
9894 * MonthCalendar.cs: Added missing properties
9896 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
9898 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
9900 2005-06-06 Gaurav Vaish and Ankit Jain
9902 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
9903 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
9905 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
9907 * Control.cs: fixes CreateParams Width / Height.
9909 2005-06-05 Peter Bartok <pbartok@novell.com>
9911 * Win32DnD.cs: Removed compilation warnings
9913 2005-06-05 Peter Bartok <pbartok@novell.com>
9915 * Control.cs (CreateParams): Since we don't know if one of the
9916 properties we use is overridden, lets make sure if we fail accessing
9917 we continue with a backup plan
9919 2005-06-05 Peter Bartok <pbartok@novell.com>
9922 - Removed debug output
9923 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
9925 - Plugged resource leak
9926 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
9929 2005-06-05 Peter Bartok <pbartok@novell.com>
9931 * XplatUIWin32.cs: Removed DnD code
9932 * Win32DnD.cs: Implemented drop source and drop target functionality
9934 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9936 * UpDownBase.cs: remove duplicate addition of event, enable some code
9937 that was commented out.
9938 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
9939 Validate input when a key is pressed. It works fine now for every
9940 combination of Hexadecimal. Only missing some drawing love when sharing
9941 space with other controls.
9943 2005-06-04 Peter Bartok <pbartok@novell.com>
9946 - We need to pass a window for DragDrop, so enable callback events
9947 - Added DnD callback events when being a DragSource
9948 * XplatUI.cs (StartDrag): Added window handle argument
9949 * XplatUIDriver.cs (StartDrag): Added window handle argument
9950 * QueryContinueDragEventArgs: Made fields internally accessible so
9951 drivers can set them
9952 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
9955 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
9957 * DataGridTextBoxColumn.cs: column text editing
9958 * DataGridTableStyle.cs: Respect columns styles created by the user
9959 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
9960 * DataGridBoolColumn.cs: bool column editing
9961 * DataGrid.cs: fixes to scrolling, properties, etc
9962 * DataGridTextBox.cs: handle keyboard
9963 * DataGridColumnStyle.cs: fixes
9965 2005-06-02 Jackson Harper <jackson@ximian.com>
9967 * ImageListStreamer.cs: Somewhat broken implementation of
9968 GetObjectData. The RLE needs some work to match MS properly.
9970 2005-06-02 Jackson Harper <jackson@ximian.com>
9972 * X11Dnd.cs: Attempting to keep at least one file in MWF
9975 2005-06-02 Peter Bartok <pbartok@novell.com>
9977 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
9980 2005-06-02 Peter Bartok <pbartok@novell.com>
9982 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
9983 * XplatUI.cs: Added DoDragDrop() method
9984 * XplatUIDriver.cs: Added DoDragDrop() method
9986 2005-06-02 Jackson Harper <jackson@ximian.com>
9988 * Splitter.cs: Implement BorderStyle.
9990 2005-06-02 Jackson Harper <jackson@ximian.com>
9992 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
9993 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
9996 2005-06-02 Peter Bartok <pbartok@novell.com>
10000 - Fixed broken insertion code for SetData, now also
10001 overwrites any existing entry of the same format name
10002 * Hwnd.cs: Added list of pointers that automatically gets
10003 freed when the window is disposed
10004 * XplatUI.cs: Call driver initialization method when loading
10007 - OnDragLeave takes EventArgs, not DragEventArgs
10008 - Added setting of WS_EX_ACCEPTFILES style when dropping is
10010 - Forces style update when drop state changes
10011 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10012 not perfect since we cannot (yet) call the IDataObject.GetData()
10013 method, we keep getting 0x80004005 error, dunno why)
10015 2005-06-02 Peter Bartok <pbartok@novell.com>
10017 * DragEventArgs.cs: Make fields internal so we can cache the
10018 object and re-set the fields from XplatUI
10020 2005-06-02 Jackson Harper <jackson@ximian.com>
10022 * Control.cs: Add some internal methods so the DnD subsystem can
10023 raise DnD events. Also call into the driver when AllowDrop is set.
10025 * XplatUIDriver.cs: New method for setting whether or not a window
10026 is allowed to accept drag and drop messages.
10028 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
10030 * ScrollBar.cs: Make sure that values sent in Scroll events
10031 are always between Maximum and Minimum.
10033 2005-06-01 Marek Safar <marek.safar@seznam.cz>
10035 * Menu.cs: Call MenuChanged when menuitem visibility has been
10037 * MenuItem.cs: Rebuild menu when item is (not) visible.
10038 * MainMenu.cs: MainMenu has special MenuChanged.
10039 * Theme.cs: Caption and FrameBorderSize are not fixed.
10040 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10041 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10043 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10044 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10046 2005-05-30 Jackson Harper <jackson@ximian.com>
10048 * DataFormat.cs: We can't statically initialize this stuff because
10049 it calls into the xplatui and could create a loop. So we lazy init
10052 2005-05-28 Jackson Harper <jackson@ximian.com>
10054 * Control.cs: Proper implementation of Product(Name/Version).
10056 2005-05-27 Jackson Harper <jackson@ximian.com>
10058 * DataObject.cs: Dont crash if no data is found.
10060 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10061 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10062 as per status page, guessing it should be set to true
10064 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
10066 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10067 * DataGridTableStyle.cs: set proper formatting text, def header text
10068 * ThemeWin32Classic.cs: new themable paramaters
10069 * DataGridBoolColumn.cs: paint check box, get data, fixes
10070 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10071 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10072 * DataGridColumnStyle.cs: fixes
10073 * Theme.cs: new themable paramaters
10075 2005-05-26 Peter Bartok <pbartok@novell.com>
10077 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10079 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10080 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10082 2005-05-24 Peter Bartok <pbartok@novell.com>
10084 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10085 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10086 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10087 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10088 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10089 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10090 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10091 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10092 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10093 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10094 missing attributes, etc
10095 * DataGridPreferredColumnWidthTypeConverter.cs: Added
10097 2005-05-24 Peter Bartok <pbartok@novell.com>
10099 * Help.cs: Added, implemented trivial functions, throws up MessageBox
10100 when user tries to get help
10101 * DataObject.cs, DataFormats.cs, LinkArea.cs,
10102 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10103 to suppress warnings
10104 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10105 avoid unreachable code warning
10107 2005-05-20 Peter Bartok <pbartok@novell.com>
10109 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10111 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10113 * DataGridTextBoxColumn.cs: Basic painting methods
10114 * DataGridTableStyle.cs: Set table style in the column
10115 * ThemeWin32Classic.cs: Use Theme for colors
10116 * DataGridDrawingLogic.cs: Implement more drawing
10117 * DataGrid.cs: drawing, theming, enhacements, fixes
10118 * DataGridColumnStyle.cs: fixes, drawing
10119 * Theme.cs: theming for Datagrid
10121 2005-05-20 Peter Bartok <pbartok@novell.com>
10123 * Cursor.cs: Implemented GetObjectData() method
10125 2005-05-20 Peter Bartok <pbartok@novell.com>
10127 * Cursors.cs: Added setting of cursor name
10129 - Implemented constructors
10130 - Implemented Draw and DrawStretched
10131 - Implemented Current property
10132 - Implemented == and != operators
10133 - Implemented Dispose()
10134 - Implemented ToString
10135 - Added missing attributes
10137 - Added missing reset for OverrideCursor when DoEvents is called
10138 - Fixed creation of cursor, logic was wrong
10140 - Added missing reset for OverrideCursor when DoEvents is called
10141 - Fixed creation of cursor, bit arrays were swapped
10142 * Clipboard.cs: Removed obsolete MonoTODO attribute
10144 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10146 * ComboBox.cs: fixes OnSelectedItemChanged
10147 * ControlBindingsCollection.cs: fixes item range check
10149 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10152 - Calc preferred height properly
10153 - Implement missing properties
10155 * NumericUpDown.cs: Implement missing events
10157 2005-05-19 Jackson Harper <jackson@ximian.com>
10159 * TabControl.cs: New method that resizes the tab pages before
10160 redrawing them. This as needed as the control is double buffered
10161 and sizing will not be recalculated unless ResizeTabPages is
10163 * TabPage.cs: Set base.Text instead of Text in the constructor so
10164 that UpdateOwner does not get called. Use the new Redraw method of
10165 TabControl instead of Refresh so the sizing is recalculated.
10166 * ThemeWin32Classic.cs: Draw the text for button tabs.
10168 2005-05-19 Jackson Harper <jackson@ximian.com>
10170 * Control.cs: Paint control background images. Fix typo where
10171 PaintControlBackground was not getting called correctly.
10173 2005-05-19 Peter Bartok <pbartok@novell.com>
10175 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10176 I can investigate, apparently I broke FileDialog
10178 2005-05-19 Marek Safar <marek.safar@seznam.cz>
10180 * AxHost.cs: Some simple properties.
10181 * Control.cs: window must be accessible after ctor.
10182 * Form.cs: Added TransparencyKey property.
10183 * TextBoxBase.cs: Implemented Clear. Text property can be null.
10184 * XplatUIWin32.cs: SetBorderStyle implemented.
10186 2005-05-18 Peter Bartok <pbartok@novell.com>
10188 * DataObject.cs: Entries are not global but particular to the
10189 DataObject, now it behaves that way
10190 * XplatUIWin32.cs: Implemented Clipboard methods
10191 * Clipboard.cs: Implemented
10192 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
10193 * XplatUIOSX.cs: Updated to final clipboard prototypes
10194 * XplatUIX11.cs: Implemented Clipboard methods
10195 * XplatUIDriver.cs: Updated to final clipboard prototypes
10196 * XplatUIStructs.cs:
10197 - Added BITMAPINFOHEADER struct
10198 - Added ClipboardFormats enum
10200 - Added ClipboardStruct
10201 - Added Atom enum items for clipboard types
10202 - Fixed atom types for Selection event structures
10204 - Added internal properties and methods for drivers to enumerate
10206 - Switched initialization method to allow drivers to assign their
10207 own IDs even for the MS predefined clipboard IDs
10208 * XplatUI.cs: Updated to final clipboard interface
10210 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10211 * PropertyGridView.cs: Fixed compiler warnings.
10213 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10214 * PropertyGrid.cs: Added some event calls
10215 * PropertyGridView.cs: Change drawing code to use double buffering
10216 * PropertyGridTextBox.cs: Changed Text property name
10217 * GridItem.cs: Added Bounds property.
10218 * GridEntry.cs: Added Bounds property.
10220 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
10222 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
10223 since GetType() may not return the correct type if the object is
10226 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
10228 * TreeNodeCollection.cs: fixes get/set item ranges
10230 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10232 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
10234 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10236 * ComboBox.cs: Fix item range comparation
10237 * ListView.cs: Fix item range comparation
10239 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10242 - Clear example panel when OnPaint is called
10243 - Better solution for displaying the example panel text
10244 - Select default indexes in the ListBoxes
10246 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10248 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
10250 2005-05-11 Peter Bartok <pbartok@novell.com>
10252 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
10253 * SelectionRangeConverter.cs: Implemented
10254 * PropertyGrid.cs: Fixed attribute value
10256 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
10257 - Added Sebastien Pouliot's CAS Stack Propagation fixes
10258 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
10259 that's common to all drivers. First methods to go there are
10260 Sebastien Pouliot's CAS Stack Propagation helper methods
10261 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
10262 Sebastien Pouliot for CAS Stack Propagation
10264 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10267 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
10269 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
10271 * DataGridTextBoxColumn.cs: fixed some members
10272 * GridColumnStylesCollection.cs: indexed column is case insensitive
10273 * DataGridTableStyle.cs: fixes
10274 * ThemeWin32Classic.cs: add new theme parameter
10275 * Theme.cs: add new theme parameter
10276 * DataGridDrawingLogic.cs: Datagrid's drawing logic
10277 * DataGrid.cs: fixes, new internal properties, etc.
10278 * DataGridColumnStyle.cs: allows to set grid value
10281 2005-05-10 Peter Bartok <pbartok@novell.com>
10283 * AccessibleObject.cs:
10284 - Removed MonoTODO attribute on help, method is correct
10285 - Fixed Bounds property
10286 * AxHost.cs: Moved MonoTODO
10287 * ButtonBase.cs: Now setting AccessibleObject properties
10288 * RadioButton.cs: Setting proper AccessibleObject role
10289 * CheckBox.cs: Setting proper AccessibleObject role
10290 * ControlBindingsCollection.cs: Added properties, methods and attributes
10291 * DataFormats.cs: Fixed awkward internal API, and changed to enable
10292 userdefined DataFormats.Format items as well
10293 * ListControl.cs: Removed data_member from the public eye
10294 * OpenFileDialog.cs:
10295 - Made class sealed
10296 - Added missing attributes
10297 * SaveFileDialog.cs: Added missing attributes
10298 * ImageListStreamer.cs: Fixed code that caused warnings
10299 * LinkLabel.cs: Removed unreachable code
10300 * TreeView.cs: Fixed code that caused warnings
10301 * PropertyGridView.cs: Fixed code that caused warnings
10302 * GridColumnStylesCollection.cs: Added missing attributes
10303 * GridTableStylesCollection: Added missing attribute
10304 * PropertyManager: Added .ctor
10305 * SecurityIDType: Added
10306 * DataObject.cs: Implemented class
10307 * LinkArea.cs: Added missing attribute
10309 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
10311 * RadioButton.cs: call base method to allow to fire OnClick event
10312 * UpDownBase.cs: OnMouseUp call base method
10313 * CheckedListBox.cs: call base method before returning
10314 * TrackBar.cs: call base method before returning
10317 2005-05-10 Peter Bartok <pbartok@novell.com>
10319 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
10322 2005-05-10 Peter Bartok <pbartok@novell.com>
10324 * DataFormats.cs: Implemented
10325 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
10326 XplatUIX11.cs: Added Clipboard APIs
10327 * XplatUIWin32.cs: Implemented Clipboard APIs
10328 * FolderBrowserDialog.cs: Added missing event, attributes
10330 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
10332 * CheckBox.cs: call base method to allow to fire OnClick event
10334 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
10336 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
10338 2005-05-06 Peter Bartok <pbartok@novell.com>
10340 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
10341 * Screen.cs: Implemented
10342 * HelpNavigator.cs: Added
10343 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
10345 * HelpProvider.cs: Implemented all we can do until we have a CHM
10346 help library (which means that "What's This" does work now)
10348 2005-05-06 Jackson Harper <jackson@ximian.com>
10350 * XplatUIX11.cs: Fix waking up the main loop.
10352 2005-05-05 Peter Bartok <pbartok@novell.com>
10354 * XplatUI.cs: Updated revision
10355 * Form.cs: Removed enless loop
10356 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
10357 * Label.cs (OnPaint): Added call to base.OnPaint()
10358 * ToolTip.cs: Made ToolTipWindow reusable for other controls
10359 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
10360 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
10362 * ButtonBase.cs: Moved base.OnPaint() call to end of method
10363 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
10364 to ToolTip.ToolTipWindow for drawing and size methods; this allows
10365 reuse of ToolTipWindow by other controls
10366 * SizeGrip.cs: Moved base.OnPaint() call to end of method
10367 * XplatUIX11.cs: Now clipping drawing area (experimental)
10368 * PictureBox.cs: Moved base.OnPaint() call to end of method
10369 * Theme.cs: Fixed ToolTip abstracts to match new format
10370 * ErrorProvider.cs: Implemented
10372 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
10374 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
10378 - Implements LinkBehavior
10379 - Fixes many issues
10381 2005-05-03 Jackson Harper <jackson@ximian.com>
10383 * ListView.cs: Calculate the scrollbar positioning on resize and
10384 paint, so they get put in the correct place.
10386 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10388 * ColorDialogs.cs: The small color panels are now handled by
10389 SmallColorControl. This fixes drawing of the focus rectangle
10390 and adds a 3D border.
10392 2005-05-03 Peter Bartok <pbartok@novell.com>
10394 * Control.cs: Modified version of Jonathan Chamber's fix for
10397 2005-05-03 Jackson Harper <jackson@ximian.com>
10399 * ListView.cs: Remove redraw variable. Control now handles whether
10400 or not a redraw needs to be done, and will only raise the paint
10401 event if redrawing is needed.
10403 2005-05-03 Jackson Harper <jackson@ximian.com>
10405 * Splitter.cs: No decorations for the splitter form. Cache the
10408 2005-05-03 Jackson Harper <jackson@ximian.com>
10410 * TreeView.cs: Use dashed lines to connect nodes. Use the
10411 ControlPaint method for drawing the focus rect instead of doing
10414 2005-05-02 Peter Bartok <pbartok@novell.com>
10416 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
10418 2005-04-29 Jackson Harper <jackson@ximian.com>
10420 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
10421 entire image buffer. Just clear the clipping rectangle.
10423 2005-04-29 Jackson Harper <jackson@ximian.com>
10425 * ThemeWin32Classic.cs: Don't draw list view items that are
10426 outside the clipping rectangle.
10428 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
10430 * ListBox.cs: added horizontal item scroll
10432 2005-04-29 Jackson Harper <jackson@ximian.com>
10434 * ThemeWin32Classic.cs: Remove some old debug code that was
10435 causing flicker with the new double buffering code.
10437 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
10439 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
10440 behave like combobox and comboboxlist (still not sure if this is
10443 2005-04-28 Jackson Harper <jackson@ximian.com>
10445 * ThemeWin32Classic.cs: Don't fill the middle of progress
10446 bars. This fills areas outside of the clip bounds that don't need
10449 2005-04-28 Jackson Harper <jackson@ximian.com>
10451 * Control.cs: Don't expose functionality to touch the image buffers.
10453 * ListView.cs: We do not need to (and no longer can) manipulate
10454 the image buffers directly. All of this is handled by Control.
10456 2005-04-28 Peter Bartok <pbartok@novell.com>
10458 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10459 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
10460 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
10462 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10465 - Adjust control's height for non-simple comboboxes (bug fix)
10467 * MenuAPI.cs: remove unused var
10468 * ScrollBar.cs: remove unsed var
10470 * ListBox.cs: unselect items when clearing
10472 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10474 * ListControl.cs: honors OnPositionChanged and default Selected Item
10475 * ListBox.cs: unselect items when clearing
10477 2005-04-27 Jackson Harper <jackson@ximian.com>
10479 * X11Keyboard.cs: Initialize a default keyboard and give a warning
10480 if a "correct" keyboard is not found. This will make us not crash,
10481 but might give some users bad keyboard layouts...seems to be the
10482 same thing rewind does.
10484 2005-04-27 Jackson Harper <jackson@ximian.com>
10486 * BindingManagerBase.cs: Attach the current/position changed
10487 handlers to their respective events.
10489 2005-04-27 Jackson Harper <jackson@ximian.com>
10491 * Control.cs: Make sure that the first WM_PAINT does a full draw,
10493 * ThemeWin32Classic.cs: Don't fill the background for picture
10494 boxes. This could overright user drawing.
10495 * ComboBox.cs: Just fill the clipping rect not the entire client
10496 rect when drawing the background. This prevents pieces of the
10497 image buffer from getting overwritten and is theoretically faster.
10499 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
10501 * ComboBox.cs: Databinding support fixes, fire missing events
10502 * ListControl.cs: implement missing methods and properties, fixes
10503 * ThemeWin32Classic.cs: Databiding support on Drawing
10504 * CheckedListBox.cs: Databinding support fixes, fire missing events
10505 * ListBox.cs: Databinding support fixes, fire missing events
10507 2005-04-25 Peter Bartok <pbartok@novell.com>
10509 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
10511 2005-04-25 Jackson Harper <jackson@ximian.com>
10513 * TreeView.cs: Use the horizontal scrollbars height not width when
10514 determining how much of the client area is available.
10516 2005-04-25 Jackson Harper <jackson@ximian.com>
10518 * Control.cs: Double buffering is handled differently now. As per
10519 the spec, the extra buffer is created in the WM_PAINT message and
10520 passed down to the control's drawing code.
10528 * PropertyGridView.cs:
10540 * DateTimePicker.cs:
10542 * TreeView.cs: Update to new double buffering system.
10543 * MonthCalendar.cs: Uncomment block, as Capture is now
10544 working. Update to new double buffering
10545 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
10546 * PaintEventArgs.cs: New internal method allows us to set the
10547 graphics object. This is used for double buffering.
10548 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
10549 rectangle. The internal paint_area var has been removed from
10550 StatusBar. The clipping rect should be used instead.
10551 * Theme.cs: Give the PictureBox drawing method a clipping rect.
10552 * TabPage.cs: The RefreshTabs method was removed, so just call the
10553 tab controls Refresh method now.
10554 * TabControl.cs: Update to new double buffering. Make sure the
10555 handle is created before sizing the tab pages, otherwise we will
10556 get stuck in a loop.
10558 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
10560 * LinkLabel.cs: Fix typo, bug #74719; patch
10561 from Borja Sanchez Zamorano
10563 2005-04-22 Jackson Harper <jackson@ximian.com>
10565 * TreeNode.cs: Implement Handle stuff.
10566 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
10568 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
10570 * DataGridTextBoxColumn.cs: call base constructors, fixes
10571 * GridColumnStylesCollection.cs: missing events, methods, and functionality
10572 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
10573 * DataGridTableStyle.cs: implements create default column styles
10574 * DataGridBoolColumn.cs: which types can handle
10575 * DataGrid.cs: missing methods, fixes, new functionality
10576 * DataGridColumnStyle.cs: fixes
10578 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
10579 * FolderBrowserDialog.cs:
10580 - Use a thread to fill the TreeView
10581 - Adjusted some sizes
10583 2005-04-19 Peter Bartok <pbartok@novell.com>
10585 * LinkLabel.cs: (Re-)create the pieces when setting the Text
10586 property. Fixes #74360.
10588 2005-04-19 Jackson Harper <jackson@ximian.com>
10590 * XEventQueue.cs: Lock when getting the lockqueue size.
10591 * PictureBox.cs: Call base OnPaint
10593 2005-04-19 Peter Bartok <pbartok@novell.com>
10595 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
10596 messages were no longer being processed (this broke BeginInvoke)
10599 2005-04-18 Jackson Harper <jackson@ximian.com>
10601 * TreeView.cs: buglet that caused node images to get drawn
10602 regardless of whether or not they were in the clipping rectangle.
10604 2005-04-18 Jackson Harper <jackson@ximian.com>
10606 * CurrencyManager.cs: There are four rules for GetItemProperties:
10607 - If the type is an array use the element type of the array
10608 - If the type is a typed list, use the type
10609 - If the list contains an Item property that is not an object, use
10611 - use the first element of the list if there are any elements in
10614 2005-04-17 Jackson Harper <jackson@ximian.oom>
10616 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
10617 click. This handles offsets for scrolling properly and reduces
10618 memory. Also fixed GetNode to not offset now that TopNode works
10620 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
10622 2005-04-17 Jackson Harper <jackson@ximian.com>
10624 * CursorConverter.cs: Initial implementation.
10626 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10628 * ListControl.cs: work towards complex data binding support on ListControl
10629 * CurrencyManager.cs: work towards complex data binding support on ListControl
10630 * ListBox.cs: work towards complex data binding support on ListControl
10633 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10635 * GridTableStylesCollection.cs: fixes name and constructor
10636 * DataGridTableStyle.cs: fixes
10637 * DataGridBoolColumn.cs: fixes names and constructors
10638 * DataGrid.cs: define methods and properties. Some init implementations
10639 * DataGridCell.cs: define methods and properties. Some init implementations
10640 * GridTablesFactory.cs: Define methods and properties
10642 2005-04-15 Geoff Norton <gnorton@customerdna.com>
10644 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
10645 graphics port changes. We still want the coordinates in global screen
10648 2005-04-14 Jackson Harper <jackson@ximian.com>
10650 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
10651 check plus minus or checkbox clicks unless those features are enabled.
10653 2005-04-14 Jackson Harper <jackson@ximian.com>
10655 * TreeView.cs: Add methods for setting the top and bottom visible
10656 nodes. TreeNode::EnsureVisible uses these methods.
10657 * TreeNode.cs: Implement EnsureVisible
10659 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
10661 * Form.cs: Pospone menu assignation if the window has not been created yet
10662 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
10665 2005-04-12 Jackson Harper <jackson@ximian.com>
10667 * TreeView.cs: Set the TopNode properly when scrolling
10668 occurs. This has the added benifit of reducing the amount of
10669 walking that needs to be done when drawing. Also removed an old
10671 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
10673 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
10675 * Timer.cs: fixes interval setting when the timer is already enabled
10677 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
10679 * FolderBrowserDialog.cs: First approach
10681 2005-04-09 Peter Bartok <pbartok@novell.com>
10683 * FolderBrowserDialog: Added
10685 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
10687 * LinkLabel.cs: move drawing code into the theme
10688 * ThemeWin32Classic.cs: drawing code and painting background bugfix
10689 * Theme.cs: define DrawLinkLabel method
10691 2005-04-05 Jackson Harper <jackson@ximian.com>
10693 * BindingContext.cs: Use weak references so these bad actors don't
10694 stay alive longer then they need to.
10696 2005-04-05 Jackson Harper <jackson@ximian.com>
10698 * ListControl.cs: Basic implementation of complex databinding.
10700 * ListBox.cs: Add calls to ListControl databinding methods.
10702 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
10705 - Don't change PopupButtonState to Normal when the
10706 PopupButton gets pressed several times.
10707 - Renamed ButtonPanel to PopupButtonPanel
10709 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
10711 * ColorDialog.cs: Use cached objects instead of creating them
10712 * LinkLabel.cs: Use cached objects instead of creating them
10713 * Splitter.cs: Use cached objects instead of creating them
10714 * FontDialog.cs: Use cached objects instead of creating them
10715 * PropertyGridView.cs: Use cached objects instead of creating them
10716 * MessageBox.cs: Use cached objects instead of creating them
10717 * FileDialog.cs: Use cached objects instead of creating them
10718 * ThemeWin32Classic.cs: Use cached objects instead of creating them
10719 * TreeView.cs: Use cached objects instead of creating them
10721 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
10723 * Control.cs: use Equals to compare the font since no == op
10724 * ScrollBar.cs: use Equals to compare the font since no == op
10726 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
10728 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
10730 2005-04-01 Jackson Harper <jackson@ximian.com>
10732 * Binding.cs: Implement IsBinding.
10733 * BindingManagerBase.cs:
10734 * PropertyManager.cs:
10735 * CurrencyManager.cs: Add IsSuspended property.
10737 2005-04-01 Jackson Harper <jackson@ximian.com>
10739 * Binding.cs: Had some IsAssignableFrom calls backwards.
10741 2005-04-01 Jackson Harper <jackson@ximian.com>
10743 * Binding.cs: Handle null data members when pulling data.
10744 * PropertyManager.cs: Handle the data member being a property that
10747 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
10749 * DataGridTextBoxColumn.cs: fixes signature
10750 * DataGrid.cs: calls right constructor
10752 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
10754 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
10755 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
10756 * GridTableStylesCollection.cs: implements GridTableStylesCollection
10757 * DataGridTableStyle.cs: implements DataGridTableStyle
10758 * DataGridBoolColumn.cs: implements DataGridBoolColumn
10759 * DataGridTextBox.cs: implements DataGridTextBox
10760 * DataGridColumnStyle.cs: implements DataGridColumnStyle
10762 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
10764 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
10766 2005-03-29 Peter Bartok <pbartok@novell.com>
10769 - Properly implemented CompanyName property
10770 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
10771 returns a path that includes CompanyName, ProductName and
10772 Version (fixes bug #70330)
10774 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
10776 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
10779 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
10781 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
10783 - Added ReadOnly CheckBox
10784 - Further refactoring: moved some code from Open-/SaveFileDialog
10787 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
10789 * OpenFileDialog.cs: Fixed CheckFileExists
10791 Moved FileView and DirComboBox outside FileDialog class.
10792 They can now be used outside FileDialog
10794 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
10796 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
10797 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
10799 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
10801 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
10802 - Added missing CreatePrompt property in SaveDialog
10803 - Overall SaveDialog handling should be better now
10804 - Added non standard ShowHiddenFiles property
10805 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
10806 - Added InitialDirectory and RestoreDirectory support
10808 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
10810 * FileDialog.cs: Made dirComboBox usable
10812 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
10814 * FileDialog.cs: Added Filter support (case sensitiv)
10816 2005-03-24 Jackson Harper <jackson@ximian.com>
10818 * TabControl.cs: Need a couple more pixels for the lines.
10820 2005-03-23 Jackson Harper <jackson@ximian.com>
10822 * TabControl.cs: Give the tab page focus when it is selected.
10824 2005-03-23 Jackson Harper <jackson@ximian.com>
10826 * TabControl.cs: Account for the drawing of tabs borders when
10827 invalidating. If the slider was clicked dont do click detection on
10830 2005-03-23 Jackson Harper <jackson@ximian.com>
10832 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
10834 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
10836 * CategoryGridEntry.cs: Added
10837 * GridItem.cs: Added helper properties
10838 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
10839 * GridEntry.cs: Updated code for collection
10840 * PropertyGrid.cs: Cleaned up some formatting
10841 * PropertyGridView.cs: Added drop down functionality for enums.
10842 * GridItemCollection.cs: Added enumerator logic
10843 * PropertyGridEntry.cs: Added
10845 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
10848 - Removed unnecessary commented code
10849 - Fixed handling for entering the filename manually in the combobox
10851 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
10853 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
10855 2005-03-18 Peter Bartok <pbartok@novell.com>
10857 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
10858 them being touching the border
10860 2005-03-18 Peter Bartok <pbartok@novell.com>
10862 * TextControl.cs: Quick hack to center text better
10864 2005-03-18 Peter Bartok <pbartok@novell.com>
10867 - Don't throw NotImplemented exceptions, just print a notice once
10868 instead (requested by Miguel). This makes running existing SWF
10871 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
10872 - Added context menu trigger on right click
10873 * Panel.cs: Trigger invalidate on resize
10875 - Removed old double-buffer drawing
10876 - Added ResizeRedraw style to force proper update of statusbar
10878 - Removed debug output
10879 * ThemeWin32Classic.cs:
10880 - Fixed drawing of status bar, now draws Text property if there
10881 are no defined panels
10883 2005-03-18 Jackson Harper <jackson@ximian.com>
10885 * ImageList.cs: When the image stream is set pull all the images
10887 * ImageListStreamer.cs: Implement reading image list streams.
10889 2005-03-18 Peter Bartok <pbartok@novell.com>
10891 * ThemeWin32Classic.cs (DrawPictureBox):
10892 - Fixed calculations for centered drawing
10893 - Fixed drawing for normal mode, not scaling the image on normal
10895 2005-03-18 Peter Bartok <pbartok@novell.com>
10897 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
10900 - Made Open/Save button the accept button for FileDialog
10901 - Tied the cancel button to the IButtonControl cancel button
10902 - Save/Open now properly builds the pathname
10903 - Now handles user-entered text
10904 - Preventing crash on right-click if no item is selected
10905 - Fixed Text property, now uses contents of textbox
10906 - Fixed SelectedText property, now just returns the text part that
10907 is selected in the text box
10909 2005-03-18 Jackson Harper <jackson@ximian.com>
10911 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
10912 rect, make sure to de-adjust the interior rect after drawing the
10915 2005-03-18 Peter Bartok <pbartok@novell.com>
10917 * MenuAPI.cs: Remove menu *before* executing selected action to
10918 prevent the menu from 'hanging around'
10920 2005-03-17 Geoff Norton <gnorton@customerdna.com>
10922 * XplatUIOSX.cs: Implemented WorkingArea property
10924 2005-03-17 Peter Bartok <pbartok@novell.com>
10926 * XplatUIX11.cs: Fixed menu coord calculations
10927 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
10928 for calculating offsets
10930 2005-03-17 Peter Bartok <pbartok@novell.com>
10932 * Hwnd.cs: Do not consider menu presence for default client
10933 rectangle location/size
10934 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
10935 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
10936 translation functions
10937 * FileDialog.cs: Fixed (what I presume is a) typo
10939 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
10941 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
10942 X access (avoids X-Async errors)
10944 2005-03-16 Jackson Harper <jackson@ximian.com>
10946 * TabControl.cs: Raise the SelectedIndexChanged event.
10948 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
10950 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
10951 - Removed vertical ToolBar and replaced it with a custom panel
10952 (desktop and home button already work)
10953 - Added Help button (some controls get resized or relocated then)
10954 - Draw correct text depending on Open or Save.
10955 - Fixed some typos...
10957 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
10960 - Only change Maximum and Minimum when need it (bug fix)
10962 2005-03-15 Peter Bartok <pbartok@novell.com>
10964 * Form.cs: Use Handle for icon, to trigger creation if
10965 the window does not yet exist
10967 - CanSelect: Slight performance improvement
10968 - Focus(): Preventing possible recursion
10969 - Invalidate(): Removed ControlStyle based clear flag setting
10970 - WM_PAINT: fixed logic for calling OnPaintBackground
10971 - WM_ERASEBKGND: Fixed logic, added call to new driver method
10972 EraseWindowBackground if the control doesn't paint background
10974 - Moved EraseWindowBackground() method to internal methods
10975 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
10976 is sent via SendMessage on BeginPaint call on Win32
10978 - Added EraseWindowBackground() method
10979 - No longer sends WM_ERASEBKGND on .Expose, but on call to
10980 PaintEventStart, which more closely matches Win32 behaviour
10981 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
10982 - Fixed SetFocus() to properly deal with client and whole windows
10983 * Hwnd.cs: Added ErasePending property
10984 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
10985 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
10987 2005-03-12 Geoff Norton <gnorton@customerdna.com>
10990 - Fix hard loop when timers exist.
10991 - Fix bugs with middle and right click for 3 button mice.
10993 2005-03-11 Peter Bartok <pbartok@novell.com>
10996 - get_WorkingArea: Need to call X directly, GetWindowPos only
10997 returns cached data now
10998 - Added sanity check to GetWindowPos hwnd usage
11000 2005-03-11 Jackson Harper <jackson@ximian.com>
11002 * BindingManagerBase.cs: This method isn't used anymore as
11003 PullData now updates the data in the control.
11005 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
11007 * Form.cs: fixes menu drawing on X11
11008 * MenuAPI.cs: fixes menu drawing on X11
11010 2005-03-11 Peter Bartok <pbartok@novell.com>
11012 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11013 from Jonathan Gilbert; should fix bug #73606
11014 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11015 in Screen coordinates. Thanks, Jordi.
11016 * Form.cs: Added missing attribute
11018 2005-03-11 Peter Bartok <pbartok@novell.com>
11021 - Rudimentary Mdi support
11022 - Removed outdated FormParent code
11023 - Implemented lots of missing properties and methods, still missing
11024 transparency support
11025 - Added missing attributes
11026 - Implemented support for MaximumBounds
11027 - Added firing of various events
11028 * XplatUI.cs: Added SetIcon() method
11029 * XplatUIDriver.cs: Added SetIcon() abstract
11030 * XplatUIOSX.cs: Stubbed out SetIcon() method
11032 - Implemented SetIcon() support
11033 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11034 - Switched to unix line endings
11036 - Made POINT internal so for can access it as part of MINMAX
11037 - Implemented SetIcon() support
11038 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11039 native Mdi support again, might have to go managed)
11040 * Control.cs: Now fires the StyleChanged event
11041 * MdiClient.cs: Added; still mostly empty
11043 2005-03-10 Peter Bartok <pbartok@novell.com>
11045 * SaveFileDialog.cs: Added emtpy file
11047 2005-03-08 Peter Bartok <pbartok@novell.com>
11049 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11050 in turn triggers OnCreateContro) when creating a handle for the
11052 * TextControl.cs: Fixed endless loop in certain cases when
11053 replacing the current selection
11055 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
11058 - Honors NewValue changes in Scroll events allowing apps to change it
11059 - Adds First and Last Scroll events
11060 - Fixes Thumb events
11062 2005-03-07 Peter Bartok <pbartok@novell.com>
11064 * Hwnd.cs: Added DefaultClientRectangle property
11065 * XplatUI.cs: Now using the X11 driver Where() method, which provides
11066 more detailed debug information
11068 - Fixed size-change feedback loop, where we would pull an old size
11069 off the queue and mistakenly change our window's size to an
11071 - Now compressing ConfigureNotify events, to reduce looping and
11073 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11076 2005-03-07 Jackson Harper <jackson@ximian.com>
11078 * Binding.cs: Push data pushes from data -> property. Check if the
11079 property is readonly when attempting to set it.
11081 2005-03-07 Jackson Harper <jackson@ximian.com>
11083 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11084 instead of IsSubclassOf. Pulling data now sets the value on the
11086 * PropertyManager.cs:
11087 * CurrencyManager.cs: Just need to pull data when updating now,
11088 because PullData will set the value on the control.
11090 2005-03-04 Jackson Harper <jackson@ximian.com>
11092 * Binding.cs: Implement data type parsing and converting on pulled
11093 data. TODO: Are there more ways the data can be converted?
11095 2005-03-04 Jackson Harper <jackson@ximian.com>
11097 * Binding.cs: Support <Property>IsNull checks. Also bind to the
11098 controls Validating method so we can repull the data when the
11099 control loses focus.
11101 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
11104 - Fixes null string format
11107 - Adds enum type checks
11108 - Fixes redrawing and recalc need after changing some properties
11109 - Fixes on focus_item set after the event
11110 - Fixes adding columns after the control has been created
11112 * ThemeWin32Classic.cs:
11113 - Fixes CheckBox focus rectangle
11114 - Fixes ColumnHeader drawing
11117 2005-03-03 Jackson Harper <jackson@ximian.com>
11119 * Binding.cs: Bind to <Property>Changed events so we can detect
11120 when properties are changed and update the data.
11122 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
11125 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11126 - Fixes ImageList constructor with ImageList container
11127 - Fixes image scaling (wrong parameters at DrawImage)
11129 2005-02-02 Jackson Harper <jackson@ximian.com>
11131 * Binding.cs: Make property searches case-insensitive. Eliminate
11132 some duplicated code.
11134 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
11137 - Handle focus event
11138 - Fix scrollbar events
11139 - Discard highlighted item if remove it
11140 - Fixes SelectedItem with strings
11142 2005-03-01 Peter Bartok <pbartok@novell.com>
11145 - Fixed Visible property, now follows (once again) parent chain
11146 to return false if any control in the chain is visible=false
11147 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11148 - Fixed several places where is_visible instead of Visible was used
11149 - Implemented FIXME related to focus selection when setting focused
11150 control to be invisible
11152 * XplatUIWin32.cs: Now using proper method to find out if window is
11153 visible. Thanks to Jordi for pointing it out
11155 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
11157 * ComboBox.cs: show/hide scrollbar instead of creating it
11159 2005-02-27 Jackson Harper <jackson@ximian.com>
11161 * CurrencyManager.cs: Add PositionChanged stuff.
11163 2005-02-27 Peter Bartok <pbartok@novell.com>
11165 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11166 * XplatUIOSX.cs: Added GetMenuOrigin() stub
11167 * XplatUIWin32.cs: Implemented GetMenuOrigin()
11169 - Implemented GetMenuDC()
11170 - Implemented GetMenuOrigin()
11171 - Implemented ReleaseMenuDC()
11172 - Implemented generation of WM_NCPAINT message
11173 - Implemented generation and handling of WM_NCCALCSIZE message
11174 * Form.cs: Added debug helper message for Jordi's menu work
11176 - Modified ClientRect property; added setter, fixed getter to handle
11177 setting of ClientRect
11178 - Added MenuOrigin property
11180 2005-02-26 Peter Bartok <pbartok@novell.com>
11183 - Destroys the caret if a window that's being destroyed contains it
11184 - Ignores expose events coming from the X11 queue for windows that
11185 already are destroyed
11186 - Now uses the proper variable for handling DestroyNotify, before we
11187 marked the wrong window as destroyed
11188 - Improved/added some debug output
11190 2005-02-26 Peter Bartok <pbartok@novell.com>
11192 * X11Keyboard.cs: Fixes to work on 64bit systems
11194 2005-02-26 Peter Bartok <pbartok@novell.com>
11197 - Now calling OnHandleDestroyed from DestroyHandle()
11198 instead of Dispose()
11199 - Removed bogus call to controls.Remove() from DestroyHandle()
11201 2005-02-26 Peter Bartok <pbartok@novell.com>
11203 * Control.cs: Properly destroy child windows when our handle is
11206 2005-02-25 Peter Bartok <pbartok@novell.com>
11209 - Added 'DriverDebug' define to allow tracing XplatUI API calls
11210 - Alphabetized Static Methods and Subclasses
11213 - Added XException class to allow custom handling of X11 exceptions
11214 - Created custom X11 error handler, tied into XException class
11215 - Added support for MONO_XEXCEPTIONS env var to allow the user
11216 to either throw an exception on X errors or continue running
11217 after displaying the error
11218 - Added handling of DestroyNotify message
11219 - Added handler for CreateNotify message (still disabled)
11220 - Improved (tried to at least) Where method to provide file and lineno
11222 - Added XErrorHandler delegate
11223 - Added XRequest enumeration (to suppor translation of errors)
11225 2005-02-25 Jackson Harper <jackson@ximian.com>
11227 * PropertyManager.cs: Implement editing features
11228 * CurrencyManager.cs:
11229 * Binding.cs: First attempt at UpdateIsBinding
11230 * BindingManagerBase.cs: Call UpdateIsBinding before
11231 pushing/pulling data.
11233 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
11235 * MenuAPI.cs: Respect disabled items
11236 * ThemeWin32Classic.cs
11237 - Caches ImageAttributes creation for DrawImageDisabled
11238 - Fixes vertical menu line drawing
11239 - Draws disabled arrows in disable menu items
11241 2005-02-24 Peter Bartok <pbartok@novell.com>
11244 - Added UserData property to allow associating arbitrary objects
11246 - Fixed leak; now removing Hwnd references from static windows array
11248 - Fixed Graphics leak in PaintEventEnd
11249 - Removed usage of HandleData, switched over to Hwnd class
11250 * HandleData.cs: Removed, obsoleted by Hwnd.cs
11252 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11254 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
11255 * ScrollBar.cs: Fixes bug
11256 * TrackBar.cs: removes death code, clipping, mimize refreshes,
11257 keyboard navigation enhancements
11259 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11261 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
11262 * GroupBox.cs: Add control styles
11263 * Label.cs: Add control styles
11264 * UpDownBase.cs: Add control styles
11265 * ListBox.cs: Add control styles
11266 * XplatUIWin32.cs: Fixes wrong parameter order
11269 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
11271 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
11273 2005-02-23 Jackson Harper <jackson@ximian.com>
11275 * PropertyManager.cs: Implement property binding. This doesn't
11276 seem to work yet though as (I think) there are some bugs in
11277 System.ComponentModel.PropertyDescriptor.
11278 * BindingContext.cs: Use new PropertyManager constructor.
11280 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
11282 * ProgressBar.cs: use clip region in ProgressBar
11283 * ThemeWin32Classic.cs: use clip region in ProgressBar
11285 2004-02-22 Jackson Harper <jackson@ximian.com>
11287 * BindingsCollection.cs: Remove some debug code.
11289 2005-02-22 Jackson Harper <jackson@ximian.com>
11291 * BindingContext.cs:
11292 * ControlBindingsCollection.cs:
11293 * CurrencyManager.cs:
11295 * BindingManagerBase.cs: Initial implementation
11296 * BindingsCollection.cs: Add an internal contains method that the
11297 BindingManagerBase uses to ensure bindings aren't added twice to
11299 * PropertyManager.cs: Stubbed out.
11301 * ContainerControl.cs: Hook up databinding
11303 2005-02-22 Geoff Norton <gnorton@customerdna.com>
11306 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
11307 Fixed Invalidate/Update chain.
11308 Fixed tons of other minor bugs (this is almost a complete rewrite).
11310 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
11312 * ComboBox.cs: do subcontrol creation when the control is created
11314 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11316 * Label.cs: fixes image drawing (image and imagelist)
11317 * ThemeWin32Classic.cs: cache brushes
11319 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11321 * Form.cs: Move menu drawing code to Theme class
11322 * ComboBox.cs: Move ComboBox drawing code to Theme class
11323 * MenuItem.cs: Move menu drawing code to Theme class
11324 * MenuAPI.cs: Move menu drawing code to Theme class
11325 * ThemeWin32Classic.cs: New methods
11326 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
11327 * ListBox.cs: Move Listbox drawing code to Theme class
11328 * Theme.cs: New methods
11330 2005-02-20 Peter Bartok <pbartok@novell.com>
11333 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
11334 only process mnemonics on those)
11335 - Fixed event sequence for key handling; first calling
11336 ProcessKeyEventArgs now
11338 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
11339 for processing non-character keys
11340 - Fixed WM_CHAR to generate proper event sequence before processing
11341 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
11344 2005-02-19 Peter Bartok <pbartok@novell.com>
11346 * UserControl.cs: Added TextChanged event; added attributes
11347 * SizeGrip.cs: Implemented resizing and optional display of grip
11348 * Form.cs: Fixed attribute
11349 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11350 Changed meaning of ScrollWindow bool argument; instead of the
11351 clear attribute (which will be true usually anyway), it gives the
11352 option of moving child controls as well.
11354 - Changed to match new ScrollWindow argument
11355 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
11356 now handles the implicit parent window a WM puts around us
11357 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
11359 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
11360 * TreeView.cs: Adjusted to new ScrollWindow arguments
11362 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11364 * Form.cs: Menu integration with non-client area
11365 * MenuItem.cs: Menu integration with non-client area
11366 * MenuAPI.cs: Menu integration with non-client area
11368 2005-02-18 Peter Bartok <pbartok@novell.com>
11370 * MethodInvoker.cs: Added
11371 * MdiLayout.cs: Added
11372 * SendKeys.cs: Started implementation
11373 * ErrorIconAlignment.cs: Added
11375 2005-02-18 Peter Bartok <pbartok@novell.com>
11377 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
11378 * Form.cs: Added handling for Menu-related Non-client messages
11380 2005-02-17 Peter Bartok <pbartok@novell.com>
11382 * UpDownBase.cs: Fixed typo, compilation errors
11383 * DomainUpDown.cs: Fixed attribute value
11385 2005-02-16 Miguel de Icaza <miguel@novell.com>
11387 * UpDownBase.cs: Attach entry events.
11389 Add ForeColor property, Focused, InterceptArrowKeys (interception
11390 does not work yet).
11392 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
11395 - Redraw non client are on Setmenu
11396 - Calc proper menu starting point
11398 2005-02-17 Peter Bartok <pbartok@novell.com>
11400 * Application.cs: Fixed message_filter check
11402 2005-02-17 Peter Bartok <pbartok@novell.com>
11404 * Application.cs: Now calls registered message filters
11405 * DockStyle.cs: Fixed attribute
11406 * Form.cs: Fixed attribute
11407 * Menu.cs: Fixed attribute
11408 * ToolTip.cs: Fixed attribute
11409 * TreeNode.cs: Added missing attributes and arranged in regions
11410 * PropertyGrid.cs: Fixed signatures
11411 * TreeNodeCollection.cs: Added attributes
11412 * Splitter.cs: Added missing attributes; arranged into regions
11413 * TabPage.cs: Added missing attributes; arranged into regions
11414 * TextBoxBase.cs: Added missing attributes
11415 * TextBox.cs: Added missing attributes
11416 * ArrangeDirection.cs: Added missing attributes
11417 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
11418 * ToolBarButton.cs: Fixed attributes
11419 * AnchorStyles.cs: Fixed attribute
11420 * TrackBar.cs: Fixed attributes
11421 * TabControl.cs: Added missing attributes and arranged into regions
11422 * ToolBar.cs: Fixed attribute
11423 * StatusBar.cs: Fixed signature, organized into regions and added
11425 * StatusBarPanel.cs: Fixed attributes
11426 * ContentsResizedEventArgs.cs: Implemented
11427 * ContentsResizedEventHandler.cs: Implemented
11428 * DateBoldEventArgs.cs: Implemented
11429 * DateBoldEventHandler.cs: Implemented
11430 * UpDownEventArgs.cs: Implemented
11431 * UpDownEventHandler.cs: Implemented
11433 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
11435 * Form.cs: first Menu NC refactoring
11436 * MenuAPI.cs: first Menu NC refactoring
11438 2005-02-16 Peter Bartok <pbartok@novell.com>
11440 * ImeMode.cs: Added missing attributes
11441 * Menu.cs: Fixed attribute
11442 * GroupBox.cs: Fixed attribute
11443 * Label.cs: Fixed attribute
11444 * ColorDialog.cs (RunDialog): Removed TODO attribute
11445 * ComboBox.cs: Fixed attributes
11446 * ListControl.cs: Added missing attributes
11447 * PropertyGrid.cs: Fixed attributes
11448 * Control.cs: Fixed attributes
11449 * ListViewItem.cs: Added TypeConverter attribute
11450 * NotifyIcon.cs: Fixed attributes
11451 * ListView.cs: Fixed attributes
11452 * ButtonBase.cs: Fixed attribute
11453 * ImageList.cs: Added missing attributes
11454 * ContainerControl.cs: Fixed signature
11455 * CheckedListBox.cs: Fixed attribute; added missing attributes
11456 * Panel.cs: Fixed attributes
11457 * PropertyTabChangedEventArgs.cs: Added missing attribute
11458 * PropertyValueChangedEventArgs.cs: Added missing attribute
11459 * Binding.cs: Fixed attribute
11460 * ListViewItemConverter: Implemented ListViewSubItemConverter class
11461 * ListBox.cs: Fixed attribute; added missing attributes;
11462 * ScrollableControl.cs: Added missing attributes
11463 * PictureBox.cs: Added missing attributes; implemented missing property
11464 * DateTimePicker.cs: Added missing attributes
11465 * Theme.cs (ToolWindowCaptionHeight): Fixed type
11466 * MonthCalendar.cs: Fixed attributes
11467 * StatusBarPanel.cs: Added missing attributes
11468 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
11470 2005-02-16 Peter Bartok <pbartok@novell.com>
11472 * TextBoxBase.cs: The previous method to enforce height yet remember
11473 the requested high was less than ideal, this is an attempt to do
11475 * Control.cs: Added comment about possible problem
11476 * Copyright: Updated format
11477 * GridItemType.cs: Fixed swapped values
11479 2005-02-15 Jackson Harper <jackson@ximian.com>
11481 * BaseCollection.cs: Use property so we never access an
11482 uninitialized list. Also initialize the list in the property.
11484 2005-02-15 Peter Bartok <pbartok@novell.com>
11486 * GroupBox.cs (ProcessMnemonic): Implemented
11487 * Label.cs (ProcessMnemonic): Implemented
11488 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
11491 2005-02-15 Peter Bartok <pbartok@novell.com>
11493 * RadioButton.cs (ProcessMnemonic): Implemented
11494 * CheckBox.cs (ProcessMnemonic): Implemented
11496 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
11498 - Added internal method to allow calling ProcessMnemonic from other
11500 * ContainerControl.cs:
11501 - Started support for handling validation chain handling
11502 - Implemented ProcessMnemonic support
11503 - Added Select() call to Active, to make sure the active control
11505 * Form.cs: Setting toplevel flag for Forms (this was lost in the
11506 FormParent rewrite)
11507 * ThemeWin32Classic.cs:
11508 - DrawCheckBox(): Fixed stringformat to show hotkeys
11509 - DrawRadioButton(): Fixed stringformat to show hotkeys
11510 * CommonDialog.cs: Removed WndProc override, not needed
11512 2005-02-14 Peter Bartok <pbartok@novell.com>
11514 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
11515 missed those in the rewrite
11517 2005-02-14 Miguel de Icaza <miguel@novell.com>
11519 * NumericUpDown.cs (Increment, ToString): Add.
11520 (DecimalPlaces): implement.
11524 * UpDownBase.cs: Add the designer attributes.
11526 2005-02-13 Peter Bartok <pbartok@novell.com>
11528 * Panel.cs: Removed border_style, now in Control
11529 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
11530 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
11532 2005-02-13 Peter Bartok <pbartok@novell.com>
11534 * MouseButtons.cs: Added missing attributes
11535 * XplatUIStructs.cs: Added enumeration for title styles
11536 * LeftRightAlignment.cs: Added missing attributes
11537 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
11538 it compatible with Graphics.FromHwnd()
11539 * SelectedGridItemChangedEventArgs.cs: Fixed property type
11540 * Keys.cs: Added missing attributes
11541 * SelectionRange.cs: Added missing attributes
11542 * SelectionRangeConverter.cs: Added
11544 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
11545 ReleaseMenuDC methods
11546 - Renamed ReleaseWindow to UngrabWindow
11547 - Added proper startup notice to allow version identification
11549 - Added missing attributes
11550 - Removed FormParent concept
11551 * Label.cs: Removed border_style field, now in Control
11552 * RadioButton.cs: Now properly selects RadioButton when focus is
11554 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
11556 - Added missing attributes
11557 - Added borderstyle handling
11558 - Removed FormParent concept support
11559 - Fixed calls to XplatUI to match changed APIs
11560 - Fixed bug that would case us to use disposed Graphics objects
11561 - Removed unneeded internal methods
11562 - PerformLayout(): Fixed to handle DockStyle.Fill properly
11563 - SelectNextControl(): Fixed to properly check common parents
11564 * TextBoxBase.cs: Removed border_style field (now in Control)
11566 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
11567 fixed calculations for form size
11568 - Added support for localized strings and icons
11569 - Improved form size calculations, added border
11570 * ListView.cs: Removed border_style field (now in Control)
11571 * X11Structs.cs: Moved several structs from X11 driver here
11572 * X11Keyboard.cs: Changed debug message
11573 * Application.cs: Removed FormParent concept support
11575 - Resetting end_modal flag
11576 - Removed FormParent concept support
11577 * NativeWindow.cs: Removed FormParent concept support
11578 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
11579 Client area and Non-Client whole window to allow support for WM_NC
11581 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
11582 prevent using it until it supports Hwnd as per Geoff Norton's request
11583 * ToolBar.cs: Fixed drawing, was not doing proper drawing
11584 * PictureBox.cs: Removed border_style field, now in Control
11585 * XplatUIWin32.cs: Added new driver methods
11587 2005-02-12 Peter Bartok <pbartok@novell.com>
11589 * OpacityConverter.cs: Implemented
11590 * Hwnd.cs: Internal class to support drivers that need to emulate
11591 client area/non-client area window behaviour
11593 2005-02-11 Peter Bartok <pbartok@novell.com>
11595 * KeysConverter.cs: Implemented
11597 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
11599 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
11600 * LinkLabel: Added missing attributes
11601 * MainMenu.cs: fixes ToString
11602 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
11603 * ListBox.cs: fixes event position
11604 * TrackBar.cs: adds missing attributes and events
11606 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
11608 * MenuItem.cs: Use SystemInformation and bug fixes
11609 * MenuAPI.cs: Use SystemInformation and bug fixes
11611 2005-02-09 Jackson Harper <jackson@ximian.com>
11613 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
11614 their keystate otherwise things like VK_MENU get stuck "on".
11616 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
11618 * ListBox.cs: Fixes AddRange bug
11620 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
11623 - Add missing attributes
11624 - Add missing method
11626 * CheckedListBox.cs: Added missing attributes
11627 - Add missing attributes
11628 - Remove extra method
11630 * ComboBox.cs: Added missing attributes
11631 * VScrollBar.cs: Added missing attributes
11632 * ScrollBar.cs: Added missing attributes
11633 * ListBox.cs: Fixes signature, add missing consts
11634 * LinkArea.cs: Added missing attributes
11637 2005-02-08 Peter Bartok <pbartok@novell.com>
11639 * Menu.cs: Added missing attributes
11640 * MainMenu.cs: Added missing attributes
11641 * GroupBox.cs: Added missing attributes
11642 * Label.cs: Added missing attributes
11643 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
11645 - Added Instance and Options properties
11646 - Added missing attributes
11647 * Cursor.cs: Made Serializable
11648 * NotifyIcon: Added missing attributes
11649 * MenuItem.cs: Added missing attributes
11650 * TextBoxBase.cs: Implemented AppendText() and Select() methods
11651 * Panel.cs: Added Missing attributes
11652 * MonthCalendar.cs: Fixed CreateParams
11654 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11658 - Fixes issues with links
11659 - Adds the class attributes
11661 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11664 - Fixes button when no items available in dropdown
11665 - Fixes repainting problems
11666 - Adds the class attributes
11668 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11670 * XplatUIOSX.cs: Detect the menu bar and title bar height from
11671 the current theme. Cache these on startup.
11673 2005-02-07 Jackson Harper <jackson@ximian.com>
11675 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
11676 the scrollbar buttons when they are depressed.
11678 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11680 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
11681 Get the display size from the main displayid. We currently dont
11682 support multiple display configurations.
11684 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11686 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
11688 2005-02-07 Miguel de Icaza <miguel@novell.com>
11690 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
11692 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
11694 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
11696 2005-02-04 Jackson Harper <jackson@ximian.com>
11698 * ThemeWin32Classic.cs: Respect the clipping rect when
11699 drawing. Only fill the intersection of clips and rects so there
11700 isn't a lot of large fills.
11701 * ScrollBar.cs: Pass the correct clipping rect to the theme
11702 engine. Remove some debug code.
11704 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
11706 * DateTimePicker.cs:
11707 - Fixed crash on DateTime.Parse, use Constructor instead
11709 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
11713 - Owner draw support (MeasureItem and DrawItem)
11715 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
11718 - Implements FindMergePosition and MergeMenu functions (very poor documented)
11719 - Fixes MenuItems.Add range
11721 - MergeMenu and Clone and CloneMenu functions
11723 2005-02-03 Jackson Harper <jackson@ximian.com>
11725 * ScrollBar.cs: Make abstract
11726 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
11729 2005-02-03 Jackson Harper <jackson@ximian.com>
11731 * ScrollBar.cs: First part of my scrollbar fixups. This removes
11732 all the unneeded refreshes and uses invalidates with properly
11735 2005-02-03 Peter Bartok <pbartok@novell.com>
11737 * ComponentModel.cs: Added
11738 * IDataGridEditingService.cs: Added
11739 * Timer.cs: Added missing attributes
11740 * ToolTip.cs: Added missing attributes
11742 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11744 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
11746 2005-02-03 Peter Bartok <pbartok@novell.com>
11748 * ListBox.cs: Added missing attributes
11750 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
11753 - Fixes font height after font change
11754 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
11756 2005-02-02 Peter Bartok <pbartok@novell.com>
11758 * HandleData.cs: Introduced static methods to allow class
11759 to be more self-contained and track it's own HandleData objects
11760 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
11761 HandleData to use new static methods
11763 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
11766 - Fixes default size and PreferredHeight
11768 - ObjectCollection.Insert implementation
11774 - ObjectCollection.Insert implementation
11775 - No selection after clean
11778 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
11780 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
11782 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
11785 - Caches ItemHeight calculation for OwnerDrawVariable
11786 - Handles dropdown properly
11787 - Fixes several minor bugs
11789 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
11792 - Fixes 71946 and 71950
11793 - Fixes changing Multicolumn on the fly
11794 - Fixes keyboard navigation on Multicolumn listboxes
11796 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11798 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
11799 crash reporter log.
11801 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11803 * XplatUIOSX.cs: Allow applications to actually exit.
11805 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11807 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
11808 their parent at creation time rather than lazily later. Fixes a major
11809 regression we were experiencing.
11811 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
11813 * ThemeWin32Classic.cs: more date time picker painting fixes
11814 * DateTimePicker.cs: more monthcalendar drop down fixes
11815 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
11817 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
11820 - When moving the thumb going outside the control should stop the moving
11821 - Adds the firing of missing events
11822 - Fixes no button show if Size is not specified
11823 - End / Home keys for keyboard navigation
11825 2005-01-30 Peter Bartok <pbartok@novell.com>
11827 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
11828 sanity check to prevent theoretical loop
11829 * XplatUIWin32.cs (SetVisible): Removed debug output
11830 * XplatUIX11.cs (SystrayChange): Added sanity check
11831 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
11832 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
11833 behaviour, valid until the X11 client window rewrite is done
11834 * TextBox.cs (ctor): Setting proper default foreground and background
11837 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
11839 * Theme: Added DrawDateTimePicker to interface
11840 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
11841 * DateTimePicker.cs: Created (still needs keys and painting code)
11842 * DateTimePickerFormat.cs: added
11843 * MonthCalendar.cs: fixed CreateParams for popup window mode
11845 2005-01-29 Peter Bartok <pbartok@novell.com>
11847 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
11848 this should also the calculations for ligher/darker
11849 * Theme.cs: Fixed defaults for ScrollBar widths/heights
11851 2005-01-29 Peter Bartok <pbartok@novell.com>
11853 * ArrangeDirection.cs: Added
11854 * ArrangeStartingPositon.cs: Added
11855 * SystemInformation.cs: Implemented
11856 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11857 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
11858 used by SystemInformation class
11859 * X11Strucs.cs: Added XSizeHints structure
11861 - Fixed CreateParams to make sure the menu window is always visible
11862 - TrackPopupMenu: Added check to make sure we don't draw the
11865 2005-01-29 Peter Bartok <pbartok@novell.com>
11867 * HandleData.cs: Added method for altering invalid area
11868 * TextBoxBase.cs: Implemented TextLength
11870 2005-01-28 Peter Bartok <pbartok@novell.com>
11872 * XplatUIX11.cs: Improvement over last patch, not sending
11873 the WM_PAINT directly anymore, instead we scroll any pending
11874 exposed areas and let the system pick out the WM_PAINT later
11876 2005-01-28 Peter Bartok <pbartok@novell.com>
11878 * SWF.csproj: Deleted, no longer used. Instead,
11879 Managed.Windows.Forms/SWF.csproj should be used
11880 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
11881 directly, to avoid a potential race condition with the next
11884 2005-01-28 Peter Bartok <pbartok@novell.com>
11886 * XplatUI.cs: Made class internal
11888 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
11890 * CheckedListBox.cs:
11893 - Missing methods and events
11895 2005-01-27 Peter Bartok <pbartok@novell.com>
11897 * Application.cs (Run): Don't use form if we don't have one
11899 2005-01-27 Peter Bartok <pbartok@novell.com>
11901 * TextBoxBase.cs (get_Lines): Fixed index off by one error
11903 2005-01-27 Peter Bartok <pbartok@novell.com>
11905 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
11906 * GridItem.cs: Added; Patch by Jonathan S. Chambers
11907 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
11908 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
11909 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
11910 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
11911 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11912 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
11913 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11914 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11915 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11916 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
11918 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
11921 - Draw focus on Simple Combobox
11922 - Fixes drawing issues
11925 2005-01-27 Peter Bartok <pbartok@novell.com>
11928 - Place window in default location, instead of hardcoded 0/0
11929 - Send initial LocationChanged event
11931 - UpdateBounds after creation to find out where the WM placed us
11932 - Make sure that if the ParentForm changes location the Form
11934 * XplatUIX11.cs: XGetGeometry will not return the coords relative
11935 to the root, but to whatever the WM placed around us.
11936 Translate to root coordinates before returning toplevel
11938 * XplatUIWin32.cs: Removed debug output
11939 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
11940 flag to GetWindowPos, to allow translation of coordinates on X11
11942 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
11944 * ListBox.cs: connect LostFocus Event
11946 2005-01-27 Peter Bartok <pbartok@novell.com>
11948 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11949 XplatUIX11.cs: Extended the Systray API
11950 * Form.cs: Removed debug output
11951 * Application.cs: Fixed focus assignment, always need to call
11952 XplatUI.Activate() since Form.Activate() has rules that may
11954 * NotifyIcon.cs: Should be complete now
11955 * ToolTip.cs: Worked around possible timer bug
11957 2005-01-27 Jackson Harper <jackson@ximian.com>
11960 - Only invalidate the effected tabs when the
11961 selected index changes. This reduces drawing and gets rid of some
11963 - Only refresh if the tabs need to be shifted, otherwise only
11964 invalidate the slider button.
11965 - On windows the tabs are not filled to right if the slider is
11968 2005-01-27 Jackson Harper <jackson@ximian.com>
11970 * TabControl.cs: Only refresh on mouseup if we are showing the
11971 slider. Also only invalidate the button whose state has changed.
11973 2005-01-26 Peter Bartok <pbartok@novell.com>
11975 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
11976 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
11977 and SystrayRemove() methods
11978 * XplatUIOSX.cs: Stubbed Systray methods
11980 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
11982 - Fixed broken XChangeProperty calls (marshalling messed up things)
11983 * X11Structs.cs: Added enums and structs required for Size hinting
11984 * NotifyIcon.cs: Added & implemented
11986 2005-01-26 Jackson Harper <jackson@ximian.com>
11988 * TabControl.cs: Space vertically layed out tabs properly.
11990 2005-01-26 Peter Bartok <pbartok@novell.com>
11992 * Form.cs (CreateClientParams): Always set the location to 0,0
11993 since we're a child window.
11995 * Control.cs (SetVisibleCore): Always explicitly setting the location
11996 of a toplevel window, apparently X11 doesn't like to move windows
11997 while they're not mapped.
11999 2005-01-26 Jackson Harper <jackson@ximian.com>
12001 * TabControl.cs: Implement FillToRight size mode with vertically
12004 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12006 * ControlPaint.cs, ThemeWin32Classic.cs
12007 - Fixes DrawFocusRectangle
12009 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12012 - MenuBar tracking only starts when item is first clicked
12013 - Fixes menu hidding for multiple subitems
12014 - Unselect item in MenuBar when item Executed
12017 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
12020 - IsInputKey for ListBox
12023 - Shift and Control item selection
12024 - Implement SelectionMode.MultiExtended
12025 - Fixes RightToLeft
12027 - IsInputKey implemented
12028 - Do not generate OnTextChangedEdit on internal txt changes
12030 2005-01-23 Peter Bartok <pbartok@novell.com>
12032 * AccessibleObject.cs: Partially implemented Select()
12033 * MonthCalendar.cs: Added missing attributes and events
12034 * Form.cs: Fixed CreateParams behaviour, now controls derived from
12035 form can properly override CreateParams.
12036 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12037 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12038 Control performs Invalidate & Update
12039 * NativeWindow (CreateHandle): Added special handling for Form
12040 and Form.FormParent classes to allow overriding of From.CreateParams
12042 - ControlNativeWindow: Renamed 'control' variable to more intuitive
12044 - ControlNativeWindow: Added Owner property
12045 - Removed usage of Refresh() on property changes, changed into
12046 Invalidate(), we need to wait until the queue is processed for
12047 updates, direct calls might cause problems if not all vars for
12048 Paint are initialized
12049 - Added call to UpdateStyles() when creating the window, to set any
12050 styles that CreateWindow might have ignored.
12051 - Added support for Form CreateParent overrides to UpdateStyles()
12052 * MessageBox.cs: Removed no longer needed FormParent override stuff,
12053 CreateParams are now properly overridable
12054 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12055 CreateParams are now properly overridable
12057 2005-01-23 Miguel de Icaza <miguel@ximian.com>
12059 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12062 Capture LostFocus and OnTextBoxChanged. The later introduces a
12063 recursive invocation that I have not figured out yet.
12065 Reset the timer when not using (it was accumulating).
12068 (OnTextBoxChanged): Set UserEdit to true here to track whether the
12069 user has made changes that require validation.
12071 Reset changing to avoid loops.
12073 2005-01-22 Miguel de Icaza <miguel@ximian.com>
12075 * NumericUpDown.cs: Display value at startup.
12077 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12080 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12081 filled in. Added some basic parsing of text.
12083 Still missing the OnXXX method overrides, and figuring out the
12084 events that must be emitted.
12086 * UpDownBase.cs: Handle UserEdit on the Text property.
12088 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
12091 - Fixes IntegralHeight
12094 2005-01-21 Jackson Harper <jackson@ximian.com>
12096 * TabControl.cs: Set the SelectedIndex property when SelectedTab
12097 is set so that the page visibility is updated and the tabs are
12100 2005-01-21 Jackson Harper <jackson@ximian.com>
12102 * TabControl.cs: Use cliping rectangle for blitting. Give the
12103 theme the clipping rect so we can do clipping while
12104 drawing. Remove some debug code.
12106 2005-01-21 Jackson Harper <jackson@ximian.com>
12108 * TabPage.cs: Add a new method so tab pages can force the tab
12109 control to recalculate the tab page sizes.
12110 * TabControl.cs: UpdateOwner needs to make the tab control recalc
12113 2005-01-20 Jackson Harper <jackson@ximian.com>
12115 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12117 2005-01-20 Jackson Harper <jackson@ximian.com>
12119 * TreeView.cs: Set the bounds for nodes properly. They were
12120 getting screwed up when checkboxes were not enabled, but images
12123 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
12126 - Owner draw support
12129 2005-01-20 Jackson Harper <jackson@ximian.com>
12131 * XplatUIStructs.cs: More misc keys
12132 * X11Keyboard.cs: Ignore some control keys.
12134 2005-01-20 Jackson Harper <jackson@ximian.com>
12136 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12137 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12139 2005-01-19 Peter Bartok <pbartok@novell.com>
12141 * Control.cs: Un-selecting the control when it is loosing focus
12143 2005-01-19 Jackson Harper <jackson@ximian.com>
12145 * TreeView.cs: Hook up to the text controls leave event so we can
12146 end editing when the users clicks outside the text box.
12148 2005-01-19 Jackson Harper <jackson@ximian.com>
12150 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12151 get set in the conversion array.
12153 2005-01-19 Peter Bartok <pbartok@novell.com>
12155 * Application.cs (ModalRun): Added a call to CreateControl to ensure
12156 focus is properly set
12158 - Added missing attributes
12159 - removed styles, those are already set in the base class
12161 - Added missing attributes
12162 - Added clip window styles
12163 * CheckBox.cs: Added missing attributes
12165 - FormParentWindow.CreateParams: Added required clip styles
12166 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12167 also filters modifier keys
12169 - Added assignment of Accept and Cancel button to enable Enter
12170 and Esc keys in MessageBox dialogs
12171 - FormParentWindow.CreateParams: Added required clip styles
12172 * RadioButton.cs: Added missing attributes
12173 * TextControl.cs: No longer draws selection if control does not
12176 - Now draws simple rectangle around test area to make it obvious
12177 there's a control. This is a hack until we properly support borders
12178 - A few simple fixes to support selections better, now erases selected
12179 text when typing, and resets selection when using movement keys
12181 2005-01-19 Miguel de Icaza <miguel@ximian.com>
12183 * UpDownBase.cs: Added some new properties.
12185 * DomainUpDown.cs: Implement a lot to get my test working.
12187 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12189 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
12191 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12193 * OSXStructs (WindowAttributes): Fixed csc complaints
12195 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12198 OSXStructs.cs: Initial refactor to move enums and consts into
12199 OSXStructs and use them in the driver for greater readability.
12201 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12203 * XplatUIOSX.cs: Initial support for Standard Cursors.
12204 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
12206 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
12208 * ComboBox.cs: ability to change style when the ctrl is already
12209 created, missing methods and events, bug fixes, signature fixes
12211 2005-01-19 Peter Bartok <pbartok@novell.com>
12213 * Cursors.cs (ctor): Added ctor to fix signature
12215 2005-01-18 Peter Bartok <pbartok@novell.com>
12217 * Button.cs: Implemented DoubleClick event
12219 - Fixed keyboard handling to behave like MS, where the press of
12220 Spacebar is equivalent to a mousedown, and the key release is
12221 equivalent to mouseup. Now a spacebar push will give the same
12222 visual feedback like a mouse click.
12223 - Added missing attributes
12224 - Added ImeModeChanged event
12225 - Added support for generating DoubleClick event for derived classes
12227 - Implemented DoubleClick event
12228 - Added missing attributes
12229 * CommonDialog.cs: Added missing attribute
12230 * ContextMenu.cs: Added missing attributes
12232 - AutoChecked buttons do not allow to be unselected when clicked
12233 (otherwise we might end up with no selected buttons in a group)
12234 - Added missing attributes
12235 - Implemented DoubleClickEvent
12236 * ThreadExceptionDialog.cs: Enabled TextBox code
12238 2005-01-18 Peter Bartok <pbartok@novell.com>
12240 * Form.cs: Removed debug output
12241 * Button.cs: Added support for DoubleClick method
12243 2005-01-18 Peter Bartok <pbartok@novell.com>
12246 - Added method to parent window that allows triggering size
12247 calculations when a menu is added/removed
12248 - set_Menu: Cleaned up mess from early days of Form and Control,
12249 now properly triggers a recalc when a menu is added/removed
12250 - Added case to select form itself as focused form if no child
12252 - Added PerformLayout call when showing dialog, to ensure properly
12255 - Select(): Made internal so Form can access it
12256 - Focus(): Only call Xplat layer if required (avoids loop), and sets
12258 * Application.cs (Run): Removed hack and calls PerformLayout instead
12259 to trigger calculation when Form becomes visible
12261 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
12263 * ComboBox.cs: fixes for ownerdraw
12265 2005-01-18 Peter Bartok <pbartok@novell.com>
12268 - Sentinel is no longer static, each Document gets it's own, this
12269 avoids locking or alternatively overwrite problems when more
12270 than one text control is used simultaneously.
12271 - Switched to use Hilight and HilightText brushes for text selection
12273 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
12275 2005-01-18 Peter Bartok <pbartok@novell.com>
12278 - Hooked up the following events:
12286 o SystemColorsChanged
12287 o ParentFontChanged
12289 - Removed debug output
12290 - Added a call to the current theme's ResetDefaults when a color change
12292 * Form.cs: Now setting the proper ImeMode
12293 * Theme.cs: Defined a method to force recreation of cached resources
12294 and rereading of system defaults (ResetDefaults())
12295 * ThemeWin32Classic.cs: Added ResetDefaults() stub
12297 2005-01-17 Peter Bartok <pbartok@novell.com>
12299 * Control.cs: Added missing attributes
12301 2005-01-17 Jackson Harper <jackson@ximian.com>
12303 * TreeNode.cs: Implement editing. Add missing properties selected
12305 * TreeView.cs: Implement node editing. Also some fixes to use
12306 Invalidate (invalid area) instead of Refresh when selecting.
12308 2005-01-17 Peter Bartok <pbartok@novell.com>
12311 - Implemented InvokeGotFocus() method
12312 - Implemented InvokeLostFocus() method
12313 - Implemented InvokePaint() method
12314 - Implemented InvokePaintBackground() method
12315 - Implemented InvokeClick() method
12316 - Implemented FindForm() method
12317 - Implemented RectangleToClient() method
12318 - Implemented ClientToRectangle() method
12319 - Implemented ResetBackColor() method
12320 - Implemented ResetCursor() method
12321 - Implemented ResetFont() method
12322 - Implemented ResteForeColor() method
12323 - Implemented ResetImeMode() method
12324 - Implemented ResetLeftToRight() method
12325 - Implemented ResetText() method
12326 - Implemented Scale() methods
12327 - Implemented ScaleCore() method
12328 - Implemented Update() method
12329 - Removed unused variables
12330 - Stubbed AccessibilityNotifyClients and
12331 ControlAccessibleObject.NotifyClients() methods (dunno what to do
12333 - Now setting proper default for RightToLeft property
12334 - Fixed bug in SetClientSizeCore that would cause windows to get
12336 - Now sending Click/DoubleClick events
12337 - Now selecting controls when left mouse button is clicked on
12339 * AccessibleEvents.cs: Added
12340 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
12341 * XplatUIOSX.cs: Stubbed UpdateWindow() method
12342 * XplatUIWin32.cs: Implemented UpdateWindow() method
12343 * XplatUIX11.cs: Implemented UpdateWindow() method
12344 * Form.cs: Removed stray semicolon causing CS0162 warning
12345 * ThemeWin32Classic.cs: Fixed unused variable warnings
12346 * ScrollableControl.cs: Now calls base method for ScaleCore
12347 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
12348 style to avoid interference with internal click handler (which is
12349 different than standard Control click handling)
12351 - Now unchecks all sibling radio buttons when control is
12352 selected (Fixes #68756)
12353 - Removed internal tabstop variable, using the one inherited from
12356 2005-01-17 Jackson Harper <jackson@ximian.com>
12358 * NavigateEventArgs.cs: Fix base type.
12359 * LinkLabel.cs: Sig fix
12361 2005-01-17 Jackson Harper <jackson@ximian.com>
12363 * TreeView.cs: Only invalidate the effected nodes bounds when
12366 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12368 * XplatUIWin32.cs: fixes Win32 marshaling
12369 * XplatUIX11.cs: fixes method signature
12371 2005-01-17 Peter Bartok <pbartok@novell.com>
12373 * XplatUIX11.cs: Clean up resources when we no longer need them
12375 2005-01-17 Peter Bartok <pbartok@novell.com>
12377 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
12378 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
12379 and DestroyCursor() methods.
12380 * Cursor.cs: Partially implemented, now supports standard cursors;
12381 still contains some debug code
12382 * Cursors.cs: Implemented class
12384 - WndProc(): Added handling of WM_SETCURSOR message, setting the
12386 - Implemented Cursor property
12387 - Replaced break; with return; more straightforwar and possibly
12389 - Now properly setting the result for WM_HELP
12390 * X11Structs.cs: Added CursorFontShape enum
12391 * XplatUIStructs.cs:
12392 - Added StdCursor enum (to support DefineStdCursor() method)
12393 - Added HitTest enum (to support sending WM_SETCURSOR message)
12395 - Now sends the WM_SETCURSOR message
12396 - Implemented new cursor methods
12397 * XplatUIOSX.cs: Stubbed new cursor methods
12399 - Implemented new cursor methods
12400 - Added GetSystemMetrics function and associated enumeration
12402 2005-01-15 Peter Bartok <pbartok@novell.com>
12405 - WndProc(): Now handles EnableNotifyMessage
12406 - SelectNextControl(): Fixed bug where if no child or sibling
12407 controls exist we looped endlessly
12409 2005-01-14 Jackson Harper <jackson@ximian.com>
12411 * TreeView.cs: Recalculate the tab pages when a new one is added
12412 so that the proper bounding rects are created.
12414 2005-01-14 Jackson Harper <jackson@ximian.com>
12416 * TreeView.cs: Draw a gray box instead of a grip in the lower
12417 right hand corner when there are both horizontal and vertical
12420 2005-01-14 Jackson Harper <jackson@ximian.com>
12422 * Control.cs: When erasing backgrounds use FromHwnd instead of
12423 FromHdc when there is a NULL wparam. This occurs on the X driver.
12424 * XplatUIX11.cs: Set the wparam to NULL.
12426 2005-01-13 Jackson Harper <jackson@ximian.com>
12428 * PictureBox.cs: Implement missing methods (except ToString, need
12429 to test that on windows) and events. When visibility is changed we
12430 need to redraw the image because the buffers are killed. When size
12431 is changed refresh if the sizemode needs it.
12433 2005-01-13 Peter Bartok <pbartok@novell.com>
12435 * Control.cs (SelectNextControl): Was using wrong method to select
12438 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12440 * ComboBox.cs: fixes dropstyle
12442 2005-01-13 Peter Bartok <pbartok@novell.com>
12445 - Implemented Select() override
12446 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
12447 - Now sets keyboard focus on startup
12448 * Control.cs (SelectNextControl): Now properly handles directed=true
12450 - WndProc: Now passes tab key on to base if AcceptTabChar=false
12451 - Added (really bad) focus rectangle (mostly for testing)
12452 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
12453 to enforce redraw on focus changes
12454 * ContainerControl.cs:
12455 - Fixed detection of Shift-Tab key presses
12456 - Fixed traversal with arrow keys
12457 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
12458 gonna keep this or if it's complete yet
12460 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12462 * ComboBox.cs: missing properties, fixes
12464 2005-01-13 Peter Bartok <pbartok@novell.com>
12466 * Panel.cs (ctor): Setting Selectable window style to off
12467 * Splitter.cs (ctor): Setting Selectable window style to off
12468 * GroupBox.cs (ctor): Setting Selectable window style to off
12469 * Label.cs (ctor): Setting Selectable window style to off
12471 2005-01-12 Miguel de Icaza <miguel@ximian.com>
12473 * UpDownBase.cs (InitTimer): If the timer has been already
12474 created, enable it.
12476 Use a TextBox instead of a Label.
12478 2005-01-12 Jackson Harper <jackson@ximian.com>
12480 * TreeView.cs: Refresh the tree after sorting the nodes. Always
12481 draw the connecting node lines (when ShowLines is true).
12482 * TreeNode.cs: The nodes index can now be updated. This is used
12483 when a node collection is sorted.
12484 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
12485 insert or an existing unsorted node collection can be sorted.
12487 2005-01-12 Peter Bartok <pbartok@novell.com>
12489 * ContainerControl.cs: Implemented ProcessDialogKeys()
12491 2005-01-12 Peter Bartok <pbartok@novell.com>
12494 - Implemented SelectNextControl() method
12495 - Several focus related bug fixes
12496 - Fixed Docking calculations to match MS documentation and
12499 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
12501 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
12504 2005-01-12 Peter Bartok <pbartok@novell.com>
12507 - Fixed broken Contains() method
12508 - Implemented GetNextControl() method. Finally. This is the pre-
12509 requisite for focus handling.
12511 2005-01-12 Peter Bartok <pbartok@novell.com>
12513 * OSXStrucs.cs: Added
12515 2005-01-12 Peter Bartok <pbartok@novell.com>
12518 - Removed PeekMessageFlags
12519 - Implemented SetWindowStyle() method
12520 * XplatUIStructs.cs: Added PeekMessageFlags
12521 * X11Structs: Added missing border_width field to XWindowChanges struct
12523 - PeekMessage: Now throws exception if flags which are not yet
12524 supported are passed
12525 - Implemented SetWindowStyle() method
12526 - Fixed SetZOrder to handle AfterHwnd properly
12527 * XplatUI.cs: Added SetWindowStyle() method
12528 * XplatUIDriver.cs: Added SetWindowStyle() abstract
12530 - Implemented UpdateStyles() method
12531 - Implemented UpdateZOrder() method
12532 * XplatUIOSX.cs: Added SetWindowStyle() stub
12534 2005-01-12 Geoff Norton <gnorton@customerdna.com>
12536 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
12540 2005-01-11 Jackson Harper <jackson@ximian.com>
12542 * TreeView.cs: Still need to draw lines to siblings even if out of
12543 the current node is out of the clip.
12545 2005-01-11 Jackson Harper <jackson@ximian.com>
12547 * TreeView.cs: When setting the hbar/vbar/grip position use
12548 SetBounds so that perform layout is only called once. Also suspend
12549 and resume layout so layout is only done once for all controls.
12550 - Removed some debug fluff
12551 * SizeGrip.cs: Call base implmentation in overriding methods.
12552 - When visibility is changed the drawing buffers are killed so we
12555 2005-01-11 Jackson Harper <jackson@ximian.com>
12557 * TreeView.cs: Calculate the open node count while drawing. This
12558 saves us an entire tree traversal for every paint operation. Use
12559 a member var for the open node count so less vars are passed around.
12561 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
12563 * MonthCalendar.cs:
12564 - fixed selection to use mousemove, not mouse polling on timer
12565 * ThemeWin32Classic.cs
12566 - removed redundant unused variable "no_more_content"
12568 2005-01-11 Peter Bartok <pbartok@novell.com>
12570 * XplatUIX11.cs (DoEvents): Needs to return when no more events
12571 are pending, so it now calls PeekMessage instead of GetMessage;
12572 implemented a incomplete version of PeekMessage
12574 2005-01-11 Peter Bartok <pbartok@novell.com>
12576 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
12578 * TextBoxBase.cs: Added sending of TextChanged event
12580 2005-01-10 Jackson Harper <jackson@ximian.com>
12582 * TreeView.cs: Try not to draw outside the clipping rectangle on
12585 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
12587 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
12589 2005-01-10 Jackson Harper <jackson@ximian.com>
12592 - Implement fast scrolling. Now only the newly
12593 exposed nodes are drawn and the old image is moved using the
12594 XplatUI::ScrollWindow method.
12595 - Factor in height of nodes when calculating whether or not the
12596 node is in the clipping rect.
12598 2005-01-10 Jackson Harper <jackson@ximian.com>
12600 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
12602 2005-01-10 Peter Bartok <pbartok@novell.com>
12604 * Application.cs: Added temporary hack to resolve all our resize
12605 required issues on startup. This will get fixed properly at
12606 some point in the future
12608 2005-01-10 Jackson Harper <jackson@ximian.com>
12610 * SizeGrip.cs: New internal class that is used as a sizing
12611 grip control...hence the name.
12613 2005-01-10 Peter Bartok <pbartok@novell.com>
12615 * Control.cs: Implemented proper TabIndex handling, now assigning
12616 a tabindex when a control is added to a container
12617 * GroupBox.cs (ctor): Now sets the Container style bit, required
12618 for Control.GetNextControl()
12620 2005-01-09 Jackson Harper <jackson@ximian.com>
12622 * TextBoxBase.cs: Clear window when scrolling (fixes build).
12624 2005-01-09 Peter Bartok <pbartok@novell.com>
12626 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12627 XplatUIX11.cs: Added ability to control ScrollWindow expose and
12628 an overload for ScrollWindow to allow only scrolling a rectangle
12630 2005-01-09 Peter Bartok <pbartok@novell.com>
12633 - Implemented SetDesktopBounds method
12634 - Implemented SetDesktopLocation method
12636 2005-01-08 Jackson Harper <jackson@ximian.com>
12638 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
12639 the node count has changed, this removes to VScroll::Refresh calls
12642 2005-01-08 Geoff Norton <gnorton@customerdna.com>
12644 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
12646 2005-01-07 Jackson Harper <jackson@ximian.com>
12648 * TreeNode.cs: Just update the single node when it is
12649 checked. Don't refresh after toggling, the Expand/Collapse already
12651 * TreeView.cs: Respect clipping a little more when drawing. Try
12652 not to redraw things that don't need to be redrawn. Just hide the
12653 scrollbars when they are no longer needed instead of removing
12654 them, so they don't have to be created again and again.
12656 2005-01-07 Geoff Norton <gnorton@customerdna.com>
12658 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
12659 coordinates to window space to place the caret properly, FIXED.
12660 Implement GetWindowState & SetWindowState
12662 2005-01-06 Peter Bartok <pbartok@novell.com>
12665 - Implemented ClientSize property
12666 - Implemented DesktopBounds property
12667 - Implemented DesktopLocation property
12668 - Implemented IsRestrictedWindow property
12669 - Implemented Size property
12670 - Implemented TopLevel property
12671 - Implemented FormWindowState property
12673 - Implemented GetTopLevel() method
12674 - Implemented SetTopLevel() method
12675 * X11Structs.cs (Atom):
12676 - Added AnyPropertyType definition
12677 - Added MapState definiton and updated XWindowAttribute struct
12678 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
12679 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
12680 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
12682 - Implemented GetWindowState() and SetWindowState() methods
12683 - Fixed Win32GetWindowLong return type
12685 - Introduced central function for sending NET_WM messages
12686 - Implemented GetWindowState() and SetWindowState() methods
12687 * TextBoxBase.cs (set_Lines):
12688 - Now uses Foreground color for text added via Text property (Duh!)
12689 - Added code to remember programmatically requested size (fixes
12690 behaviour when Multiline is set after Size)
12691 - Added AutoSize logic
12693 2005-01-06 Jackson Harper <jackson@ximian.com>
12695 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
12697 2005-01-06 Jackson Harper <jackson@ximian.com>
12699 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
12700 set to less then 0.
12702 2005-01-06 Jackson Harper <jackson@ximian.com>
12704 * ScrollableControl.cs: Lazy init the scrollbars.
12706 2005-01-06 Jackson Harper <jackson@ximian.com>
12708 * Theme.cs: Speed up getting pens and solid brushes, by using
12709 their ARGB as a hash instead of tostring and not calling Contains.
12711 2005-01-06 Peter Bartok <pbartok@novell.com>
12714 - Implemented OnActivated and OnDeactivate event trigger
12715 - Implemented Activate() method
12716 - Fixed ShowDialog() to activate the form that was active before
12717 the dialog was shown
12719 - Added global active_window var that tracks the currently active
12721 - Now always grabs Property changes from the root window to always
12722 catch changes on the active window property
12723 - Added code to PropertyNotify handler to send Active/Inactive
12724 messages when state changes. This puts X11 and Win32 en par on
12725 WM_ACTIVATE notifications (except for double notifications when
12726 the user clicks away from our modal window to another one of our
12729 2005-01-05 Jackson Harper <jackson@ximian.com>
12731 * ImageList.cs: Implment ctor
12733 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12735 * XplatUIOSX.cs: Implement Activate/SetTopmost
12737 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12739 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
12741 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12743 * XplatUIOSX.cs: Implement GetActive/SetFocus.
12745 2005-01-05 Peter Bartok <pbartok@novell.com>
12747 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
12748 XplatUIOSX.cs: Added GetActive method to return the currently
12749 active window for the application (or null, if none is active)
12751 - Implemented ActiveForm
12752 - Commented out owner assignment for modal dialogs (causes problems
12753 on Win32, since the owner will be disabled)
12754 - Reworked some Active/Focus handling (still incomplete)
12755 * CommonDialog.cs: Commented out owner assignment for modal dialogs
12756 (causes problems on Win32, since the owner will be disabled)
12757 * IWin32Window: Added ComVisible attribute
12759 2005-01-05 Peter Bartok <pbartok@novell.com>
12761 * ToolTip.cs (WndProc): Enable setting focus now that we have the
12762 required XplatUI functions.
12764 2005-01-05 Peter Bartok <pbartok@novell.com>
12766 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
12767 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
12768 to implement focus and activation handling; still incomplete and
12771 2005-01-04 Peter Bartok <pbartok@novell.com>
12773 * TextBoxBase.cs: Changed access level for Document property to
12774 match switch to internal for TextControl
12776 2005-01-04 Peter Bartok <pbartok@novell.com>
12778 * AccessibleObject: Added ComVisible attribute
12780 2005-01-04 Jackson Harper <jackson@ximian.com>
12782 * X11Keyboard.cs: Remove unneeded var.
12784 2005-01-04 Jackson Harper <jackson@ximian.com>
12786 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
12788 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
12789 ClientMessage. This makes apps exit cleanly (more often).
12791 2005-01-04 Jackson Harper <jackson@ximian.com>
12793 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
12794 handling focus, return correct colors and fonts,
12795 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
12796 handle selection, horizontal scrolling, and mouse interaction.
12798 2005-01-04 Peter Bartok <pbartok@novell.com>
12800 * ICommandExecutor.cs: Added
12801 * IDataGridColumnStyleEditingNotificationService.cs: Added
12802 * IFeatureSupport.cs: Added
12803 * IFileReaderService.cs: Added
12804 * IDataObject.cs: Added ComVisible attribute
12805 * AmbientProperties.cs: Added
12806 * BaseCollection.cs: Added missing attributes
12807 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
12808 * BaseCollection.cs: Added missing attributes
12809 * Binding.cs: Added TypeConverter attribute
12810 * BindingContext.cs: Added DefaultEvent attribute
12811 * BindingsCollection.cs: Added DefaultEvent attribute
12812 * Button.cs: Added DefaultValue attribute
12813 * DragEventArgs.cs: Added ComVisible attribute
12814 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
12815 * KeyEventArgs.cs: Added ComVisible attribute
12816 * KeyPressEventArgs.cs: Added ComVisible attribute
12817 * MouseEventArgs.cs: Added ComVisible attribute
12818 * NavigateEventArgs.cs: Added
12819 * NavigateEventHandler.cs: Added
12820 * FeatureSupport.cs: Added
12821 * OSFeature.cs: Added
12822 * Theme.cs: Added abstract Version property to support OSFeature
12823 * ThemeWin32Classic.cs: Added Version property to
12824 support OSFeature.Themes
12825 * ProgressBar.cs: Removed OnPaintBackground override, not required since
12826 the proper styles to avoid background drawing are set, also doesn't
12828 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
12829 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
12830 * ScrollEventArgs.cs: Added ComVisible attribute
12831 * SplitterEventArgs.cs: Added ComVisible attribute
12832 * AccessibleSelection.cs: Added Flags attribute
12833 * Appearance.cs: Added ComVisible attribute
12834 * Border3DSide.cs: Added ComVisible attribute
12835 * Border3DStyle.cs: Added ComVisible attribute
12836 * BorderStyle.cs: Added ComVisible attribute
12837 * DragAction.cs: Added ComVisible attribute
12838 * ErrorBlinkStyle.cs: Added
12839 * ScrollEventType.cs: Added ComVisible attribute
12840 * AnchorStyles.cs: Added Editor attribute
12841 * DockStyle.cs: Added Editor attribute
12842 * HorizontalAlignment.cs: Added ComVisible attribute
12843 * HelpEventArgs.cs: Added ComVisible attribute
12844 * PaintEventArgs.cs: Added IDisposable
12846 2005-01-04 Peter Bartok <pbartok@novell.com>
12848 * TextControl.cs: Switched Line, LineTag and Document classes to
12851 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
12853 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
12854 Simple mode, fixes, IntegralHeight, etc.
12856 2005-01-04 Peter Bartok <pbartok@novell.com>
12858 * TextBoxBase.cs: Using proper font variable now
12860 2005-01-04 Peter Bartok <pbartok@novell.com>
12862 * Form.cs (ShowDialog): Set parent to owner, if provided
12863 * GroupBox.cs: Removed unused vars
12865 - Added GetHashCode() for Document and LineTag classes
12866 - Removed unused variables
12867 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
12868 to allow translation between continuous char position and line/pos
12869 * CheckBox.cs: Removed vars that are provided by base class
12870 * RadioButton.cs: Removed vars that are provided by base class, added
12871 new keyword where required
12872 * LinkLabel.cs: Added new keyword where required
12873 * Control.cs (WndProc): Removed unused variable
12875 - Finished SelectionLength property
12876 - Implemented SelectionStart property
12877 - Implemented Text property
12878 - Removed unused vars
12879 * MessageBox.cs: Added new keyword where required
12880 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
12882 * MenuAPI.cs: Added new keyword where required
12883 * ButtonBase.cs: Removed vars that are provided by base class, added
12884 new keyword where required
12885 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
12886 argument to double, to allow compiling with csc 2.0 (Atsushi ran
12888 * Application.cs (Run): Now triggers the ThreadExit event
12889 * CommonDialog.cs: Added new keyword where required; now properly sets
12890 parent (owner) for dialog
12891 * XplatUIX11.cs: Commented out unused vars
12892 * StatusBar.cs: Fixed signature for Text property
12893 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
12895 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
12897 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
12898 TrackBar.cs, MonthCalendar.cs: remove unused vars
12900 2005-01-03 Jackson Harper <jackson@ximian.com>
12902 * ThemeWin32Classic.cs:
12903 * X11Keyboard.cs: Remove unused vars.
12905 2005-01-03 Peter Bartok <pbartok@novell.com>
12908 - set_Text: Tied into TextControl
12909 - set_TextAlignment: Tied into TextControl
12911 - Added alignment properties and implemented alignment handling
12912 and drawing (still has a bug, not generating proper expose events)
12913 - Added new Line() constructor to allow passing the line alignment
12914 - Fixed selection setting, properly handling end<start now
12915 - Added aligment considerations to RecalculateDocument()
12917 - Now properly enforces control height for single line controls
12918 - Added support for CharacterCasing
12919 - Added IsInputKey override
12920 - Fixed Keys.Enter logic
12921 - Added SetBoundsCore override
12922 - Fixed mouse selection handling
12924 2005-01-03 Jackson Harper <jackson@ximian.com>
12927 - Collapse and uncheck all nodes when CheckBoxes is disabled.
12928 - Checkboxes are always aligned to the bottom of the node,
12929 regardless of item height.
12930 - Use the node bounds to draw the text so we can center it when
12931 the item height is greater then the font height.
12932 - Node::Bounds are only the text part of the node.
12933 * TreeNode.cs: New method to combine collapsing and unchecking all
12936 2005-01-02 Jackson Harper <jackson@ximian.com>
12938 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
12939 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
12940 tree when a check is changed. TODO: Only refresh the checked node.
12942 2004-12-30 Jackson Harper <jackson@ximian.com>
12944 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
12945 * TreeNode.cs: When collapsing make sure to never collapse the
12948 2004-12-29 Jackson Harper <jackson@ximian.com>
12950 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
12952 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
12954 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
12956 2004-12-28 Peter Bartok <pbartok@novell.com>
12958 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
12961 2004-12-28 Peter Bartok <pbartok@novell.com>
12963 * Control.cs (WndProc): Added WM_HELP handler, now generates
12964 HelpRequested event
12965 * Form.cs: Added HelpButton property and required support code
12966 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
12968 2004-12-28 Peter Bartok <pbartok@novell.com>
12971 - Made DialogForm.owner variable internal
12972 - Added check to ensure owner form is set before setting
12973 owner properties in CreateParams
12975 2004-12-28 Geoff Norton <gnorton@customerdna.com>
12977 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
12978 swizzling. Implement ClientToScreen and ScreenToClient. Implement
12979 GetCursorPos. Fix major visibility issues. Rework the windowing
12980 system to support borderless/titleless windows (implements menus).
12981 Fix GetWindowPos. Implement initial background color support for
12984 2004-12-28 Peter Bartok <pbartok@novell.com>
12986 * Form.cs (get_CreateParams): Make sure we have an owner before using
12987 the owner variable. Implement proper default if no owner exists
12989 2004-12-28 Peter Bartok <pbartok@novell.com>
12991 * In preparation for making Managed.Windows.Forms the default build target
12992 for System.Windows.Forms, the following stubbed files were added.
12993 Dialogs are currently being implemented by contributors and are only
12994 short-term place holders.
12995 * ColorDialog.cs: Initial check-in (minmal stub)
12996 * DataGrid.cs: Initial check-in (minimal stub)
12997 * DataGridLineStyle.cs: Initial check-in (minimal stub)
12998 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
12999 * DataGridTableStyle.cs: Initial check-in (minimal stub)
13000 * FontDialog.cs: Initial check-in (minimal stub)
13001 * FileDialog.cs: Initial check-in (minimal stub)
13002 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13003 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13004 * OpenFileDialog: Initial check-in (minimal stub)
13005 * IComponentEditorPageSite.cs: Initial check-in
13006 * Splitter.cs: Initial check-in (for Jackson)
13007 * SplitterEventArgs.cs: Initial check-in (for Jackson)
13008 * SplitterEventHandler.cs: Initial check-in (for Jackson)
13009 * TextBox.cs: Initial check-in; still needs some wiring to
13010 TextControl backend
13011 * Form.cs: Implemented ControlBox property
13012 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13013 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13014 * TextControl.cs: Added selection functionality; added todo header
13016 - Implemented Lines property
13017 - Implemented TextHeight property
13018 - Implemented SelectedText property
13019 - Implemented SelectionLength property
13020 - Implemented SelectAll method
13021 - Implemented ToString method
13022 - Removed and cleaned up some debug code
13023 - Implemented (still buggy) mouse text selection
13025 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
13027 * ComboBox.cs: Complete DropDownList implementation, fixes.
13029 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
13031 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13032 * ComboBoxStyle.cs: ComboBoxStyle enum
13033 * ComboBox.cs: Initial work on ComboBox control
13035 2004-12-21 Peter Bartok <pbartok@novell.com>
13037 * Control.cs (ctor, CreateParams): Moved setting of is_visible
13038 forward so that anything that creates a window gets the default,
13039 also no longer uses Visible property in CreateParams to avoid
13040 walking up the parent chain and possibly get the wrong visible
13041 status. Fixed IsVisible to no longer walk up to the parent.
13043 2004-12-21 Peter Bartok <pbartok@novell.com>
13045 * Form.cs (ShowDialog): Unset modality for the proper window
13047 2004-12-20 Peter Bartok <pbartok@novell.com>
13049 * CommonDialog.cs: Initial check-in
13051 2004-12-20 Peter Bartok <pbartok@novell.com>
13053 * Control.cs (Visible): Now uses the parent window instead of the
13054 client area window for the property
13057 - ShowDialog(): Now uses the proper window for modality
13058 - The default visibility state for the form parent is now false. This
13059 will prevent the user from seeing all the changes to the form and
13060 its controls before the application hits Application.Run()
13061 - Removed some stale commented out code
13064 - Added FindWindow() method to have a method to check for existence
13066 - Added ability to override default exception handling (for example
13067 when debugging with VS.Net; to do this the ExternalExceptionHandler
13069 - Removed some useless debug output
13072 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13073 not working as expected
13074 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13075 property to allow switching back to the modal window if focus is
13076 given to another one of our windows (Application Modal)
13077 - Now only sets override_redirect if we create a window
13079 - Moved EventMask selection before mapping of newly created window
13080 so we can catch the map event as well
13081 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13082 - Added various Atom related DllImports
13083 - Implemented Exit() method
13084 - .ctor() : No longer shows window if WS_VISIBLE is not defined
13085 in the CreateParams
13087 * MessageBox.cs: Now properly deals with the FormParent window by
13088 providing an override the FormParent CreateParams property to
13089 set as POPUP instead of OVERLAPPED window.
13091 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13093 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
13094 Minor code cleanup.
13096 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13098 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13100 2004-12-18 Peter Bartok <pbartok@novell.com>
13102 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13103 implementing SetModal() method
13105 2004-12-18 Peter Bartok <pbartok@novell.com>
13107 * X11Structs.cs (XGCValues): Fixed type of function element
13108 * XplatUI.cs: Added ScrollWindow() method
13109 * XplatUIDriver.cs: Added ScrollWindow() abstract
13110 * XplatUIWin32.cs: Implemented ScrollWindow() method
13111 * XplatUIX11.cs: Implemented ScrollWindow() method
13112 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13114 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13116 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
13117 Some more keyboard support (INCOMPLETE)
13119 2004-12-17 Peter Bartok <pbartok@novell.com>
13122 - Added color attribute to line tags.
13123 - Added color argument to all functions dealing with tags
13124 - Added color argument support to various functions
13125 - Fixed miss-calculation of baseline/shift in certain circumstances
13127 * TextBoxBase.cs: Added new color option to test code
13129 2004-12-17 Jackson Harper <jackson@ximian.com>
13132 * MonthCalendar.cs: Signature fixes
13134 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13136 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13137 keyboard event moved it. Create a new graphics context for each paint resolves this
13139 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13141 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13142 Make caret exist and go blink blink. Initial keyboard support.
13143 Fix exception handler, Add Invalidate support. Change way RefreshWindow
13146 2004-12-17 Jackson Harper <jackson@ximian.com>
13148 * XplatUIStructs.cs: Updated set of virtual keycodes.
13149 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13151 2004-12-17 Jackson Harper <jackson@ximian.com>
13153 * XplatUIX11.cs: Prune old keyboard code.
13155 2004-12-17 Jackson Harper <jackson@ximian.com>
13157 * XplatUIX11.cs: When generating mouse wparams get the modifier
13158 keys from the ModifierKeys property.
13160 2004-12-17 Jackson Harper <jackson@ximian.com>
13162 * X11Keyboard.cs: Send up/down input when generating
13163 messages. Remove some unused vars.
13165 2004-12-17 Jackson Harper <jackson@ximian.com>
13168 * TreeView.cs: get rid of warnings.
13170 2004-12-17 Jackson Harper <jackson@ximian.com>
13172 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13174 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
13176 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13177 CheckedListBox.cs: Implementation
13179 2004-12-17 Peter Bartok <pbartok@novell.com>
13181 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13183 2004-12-16 Peter Bartok <pbartok@novell.com>
13186 - InsertCharAtCaret(): Fixed start pos fixup
13187 - CaretLine_get: No longer derives the line from the tag, the tag
13188 could be stale if lines in the document have been added or deleted
13189 - RebalanceAfterDelete(): Fixed bug in balancing code
13190 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
13191 - Line.Streamline(): Now can also elminate leading empty tags
13192 - DumpTree(): Added a few more tests and prevented exception on
13194 - Added Debug section for Combining lines
13195 - Delete(): Now copies all remaining properties of a line
13198 - Left mousebutton now sets the caret (and middle button still acts
13199 as formatting tester, which must go away soon)
13200 - Added Debug section for Deleting/Combining lines
13201 - Fixed calculations for UpdateView after Combining lines
13203 2004-12-16 Peter Bartok <pbartok@novell.com>
13205 * TextControl.cs: Now properly aligns text on a baseline, using the
13206 new XplatUI.GetFontMetrics() method. Simplified several calculations
13207 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
13210 2004-12-16 Peter Bartok <pbartok@novell.com>
13212 * XplatUI.cs: Added GetFontMetrics() method
13213 * XplatUIDriver.cs: Added GetFontMetrics() abstract
13214 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
13215 into libgdiplus, our private GetFontMetrics function
13216 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
13217 * XplatUIWin32.cs: Implemented GetFontMetrics() method
13219 2004-12-16 Jackson Harper <jackson@ximain.com>
13221 * XplatUIStruct.cs: Add enum for dead keys
13222 * X11Keyboard.cs: Map and unmap dead keys.
13224 2004-12-16 Jackson Harper <jackson@ximian.com>
13226 * X11Keyboard.cs: Detect and use the num lock mask.
13228 2004-12-16 Peter Bartok <pbartok@novell.com>
13230 * Control.cs (CreateGraphics): Added check to make sure the
13231 handle of the window exists before calling Graphics.FromHwnd()
13233 2004-12-16 Peter Bartok <pbartok@novell.com>
13235 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
13236 contains a lot of code that's not supposed to be there for the
13237 real thing, but required for developing/testing the textbox
13240 2004-12-16 Peter Bartok <pbartok@novell.com>
13243 - Fixed Streamline method
13244 - Added FindTag method to Line
13245 - Added DumpTree method for debugging
13246 - Added DecrementLines() method for deleting lines
13247 - Fixed UpdateView to update the cursor to end-of-line on single-line
13249 - Added PositionCaret() method
13250 - Fixed MoveCaret(LineDown) to move into the last line, too
13251 - Added InsertChar overload
13252 - Fixed InsertChar tag offset calculations
13253 - Added DeleteChar() method
13254 - Added Combine() method for folding lines
13255 - Fixed Delete() method, no longer allocates wasted Line object and
13256 now copies all properties when swapping nodes
13257 - Delete() method now updates document line counter
13259 2004-12-15 Jackson Harper <jackson@ximian.com>
13261 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
13262 * X11Keyboard.cs: Expose the currently selected modifier keys
13263 through a property.
13265 2004-12-15 Peter Bartok <pbartok@novell.com>
13267 * TextControl.cs: Initial check-in. Still incomplete
13269 2004-12-15 Jackson Harper <jackson@ximian.com>
13272 * TreeView.cs: Fix build on csc (second time today ;-))
13274 2004-12-15 Jackson Harper <jackson@ximian.com>
13276 * TreeView.cs: Store the treenodes plus/minus box bounds when it
13277 is calculated and use this for click testing.
13278 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
13280 2004-12-15 Jackson Harper <jackson@ximian.com>
13282 * TreeView.cs: Pass the nodes image index to the image list when
13283 drawing that image.
13285 2004-12-15 Jackson Harper <jackson@ximian.com>
13287 * X11Keyboard.cs: Set messages hwnd.
13288 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
13289 post_message calls.
13291 2004-12-15 Jackson Harper <jackson@ximian.com>
13293 * X11Keyboard.cs: Fix to compile with csc.
13295 2004-12-15 Jackson Harper <jackson@ximian.com>
13297 * X11Structs.cs: Add key mask values
13298 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
13299 * X11Keyboard.cs: New file - Extrapolates and interpolates key
13300 down/up foo into WM_CHAR foo
13301 * KeyboardLayouts.cs: Common keyboard layouts
13302 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
13303 post messages into the main queue.
13305 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
13307 * Button.cs: implement ProcessMnemonic
13308 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
13310 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
13311 * ButtonBase.cs: Show HotkeyPrefix (not the &)
13313 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
13315 * MonthCalendar.cs: Implemented click-hold for next/previous month
13318 2004-12-11 Peter Bartok <pbartok@novell.com>
13321 - Added XKeyboardState (moved from XplatUIX11.cs)
13322 - Added XCreateGC related enums and structures
13323 - Added GXFunction for XSetFunction
13325 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
13327 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
13328 CaretVisible() calls
13330 * ToolTip.cs: Added code to prevent stealing focus from app windows
13332 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
13333 DestroyCaret, SetCaretPos and CaretVisible)
13336 - Added implementation for caret functions
13337 - Moved hover variables into a struct, to make it a bit easier
13338 on the eyes and to debug
13339 - Removed XKeyboardState (moved to XplatUIX11.cs)
13340 - Moved Keyboard properties into the properties region
13342 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
13343 call to get a graphics context for our control
13345 * XplatUIOSX.cs: Added empty overrides for the new caret functions
13347 * TreeView.cs: Fixed bug. No matter what color was set it would always
13348 return SystemColors.Window
13350 * XplatUIWin32.cs: Implemented caret overrides
13352 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
13354 * ListBox.cs: fire events, implement missing methods and properties,
13357 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
13359 * MonthCalendar.cs: invalidation bug fixing
13360 * ThemeWin32Classic.cs: paint fixing
13362 2004-12-09 Geoff Norton <gnorton@customerdna.com>
13364 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
13365 prepare the CGContextRef there now.
13367 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
13369 * MonthCalendar.cs:
13370 - optimisationL only invalidate areas that have changed
13371 * ThemeWin32Classic.cs:
13372 - only paint parts that intersect with clip_area
13374 2004-12-09 Peter Bartok <pbartok@novell.com>
13376 * Application.cs: Undid changes from r37004 which cause problems
13379 2004-12-09 Ravindra <rkumar@novell.com>
13381 * ToolBar.cs: Added support for displaying ContextMenu
13382 attached to a button on ToolBar.
13383 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
13386 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13388 * Label.cs: autosize works in text change and removes unnecessary
13391 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13393 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13396 2004-12-08 Geoff Norton <gnorton@customerdna.com>
13398 * XplatUIOSX.cs: Added mouse move/click/grab support
13399 Remove some debugging WriteLines not needed anymore.
13400 Add window resizing/positioning.
13401 Fix visibility on reparenting.
13403 2004-12-08 Peter Bartok <pbartok@novell.com>
13405 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
13407 2004-12-07 Geoff Norton <gnorton@customerdna.com>
13409 * XplatUIOSX.cs: Initial checkin
13410 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
13412 2004-12-03 Ravindra <rkumar@novell.com>
13414 * ListView.cs: Added some keybindings and fixed scrolling.
13415 ScrollBars listen to ValueChanged event instead of Scroll
13416 Event. This would let us take care of all changes being
13417 done in the scrollbars' values programmatically or manually.
13418 * ListView.cs (CanMultiselect): Added a check for shift key.
13419 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
13420 * ListViewItem.cs (Clone): Fixed. We need to make a copy
13421 of ListViewSubItemCollection as well.
13423 2004-12-06 Peter Bartok <pbartok@novell.com>
13425 * Control.cs (Parent): Added check and exception to prevent
13428 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
13430 * ListBox.cs: implemented clipping, selection single and multiple,
13433 2004-12-03 Ravindra <rkumar@novell.com>
13435 * ListView.cs (ListView_KeyDown):
13436 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
13437 when CTRL key is pressed.
13438 * ListViewItem.cs (Selected): Fixed setting the property.
13440 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13442 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
13444 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
13445 MinimizeBox, ShowInTaskbar, TopMost properties.
13447 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
13448 will be implemented).
13450 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13452 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
13454 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
13457 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
13459 * TreeView.cs: BackColor is Colors.Window.
13461 2004-12-01 Jackson Harper <jackson@ximian.com>
13463 * TreeView.cs: When resizing the tree if the user is making it
13464 smaller we don't get expose events, so we need to handle adding
13465 the horizontal scrollbar in the size changed handler as well as
13466 the expose handler.
13468 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
13470 * DrawItemState.cs: fixes wrong enum values
13472 2004-12-01 Jackson Harper <jackson@ximian.com>
13474 * TreeView.cs: Resize the hbar as well as the vbar on resize.
13476 2004-12-01 Jackson Harper <jackson@ximian.com>
13478 * NodeLabelEditEventArgs.cs:
13479 * NodeLabelEditEventHandler.cs:
13480 * OpenTreeNodeEnumerator.cs:
13482 * TreeNodeCollection.cs:
13484 * TreeViewAction.cs:
13485 * TreeViewCancelEventArgs.cs:
13486 * TreeViewCancelEventHandler.cs:
13487 * TreeViewEventArgs.cs:
13488 * TreeViewEventHandler.cs: Initial implementation.
13490 2004-12-01 Ravindra <rkumar@novell.com>
13492 * ListView.cs (CalculateListView): Fixed scrolling related
13493 calculations. Also, removed some debug statements from other
13495 * ListViewItem.cs: Changed access to 'selected' instance variable
13496 from private to internal.
13497 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
13499 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
13501 * ThemeWin32Classic.cs: remove cache of brush and pens for
13502 specific controls and use the global system, fixes scrollbutton
13503 bugs (for small sizes, disabled, etc)
13505 * ScrollBar.cs: does not show the thumb for very small controls
13506 (as MS) and allow smaller buttons that the regular size
13508 2004-12-01 Miguel de Icaza <miguel@ximian.com>
13510 * UpDownBase.cs: Add abstract methods for the interface.
13511 Add new virtual methods (need to be hooked up to TextEntry when it
13513 Add override methods for most features.
13514 Computes the size, forces the height of the text entry.
13516 * NumericUpDown.cs: Put here the current testing code.
13518 * Set eol-style property on all files that do not have mixed line
13519 endings, to minimize the future problems. There are still a few
13520 files with mixed endings, and someone should choose whether they
13521 want to move it or not.
13523 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
13525 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
13528 2004-11-30 Ravindra <rkumar@novell.com>
13530 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
13531 drawing and replaced use of SystemColors by theme colors.
13532 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
13533 * ListView.cs (ListViewItemCollection.Add): Throw exception when
13534 same ListViewItem is being added more than once.
13536 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
13538 * MonthCalendar.cs:
13539 - ControlStyles love to make the control not flicker
13541 2004-11-30 Peter Bartok <pbartok@novell.com>
13543 * CharacterCasing.cs: Added
13545 2004-11-29 Peter Bartok <pbartok@novell.com>
13547 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13548 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
13549 I am removing these files as they conflict with already completed
13550 work. While it is fantastic to get contributions to MWF, I
13551 respectfully ask that everyone please coordinate their contributions
13552 through mono-winforms-list or #mono-winforms at this time. We're
13553 explicitly avoiding stubbing and don't want controls that don't have
13554 their basic functionality implemented in svn. Please also see
13555 http://www.mono-project.com/contributing/winforms.html
13558 2004-11-29 Marek Safar <marek.safar@seznam.cz>
13560 * Application.cs (ModalRun): Don't hang after exit.
13562 * Theme.cs: New TreeViewDefaultSize property.
13564 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
13565 with less hardcoded SystemColors constant.
13566 Implemented TreeViewDefaultSize.
13568 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13569 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
13572 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
13574 * MonthCalendar.cs:
13575 - Fix NextMonthDate and PrevMonthDate click moving calendar
13577 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13579 * MonthCalendar.cs:
13580 - Fix usage of ScrollChange Property when scrolling months
13582 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
13584 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
13585 - Fixes menu destroying
13586 - Support adding and removing items on already created menus
13588 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13590 * MonthCalendar.cs:
13591 - Re-worked all bolded dates handling to match win32
13592 * ThemeWin32Classic.cs:
13593 - Fixed rendering with bolded dates
13595 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
13597 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
13598 - Horizontal scroolbar
13603 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
13605 * MonthCalendar.cs:
13606 - Fix Usage of MaxSelectionCount from SelectionRange
13607 - Fixed Shift + Cursor Selection
13608 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
13609 - Fixed normal cursor selection to be compat with win32
13610 - Fixed Shift + Mouse Click selection
13612 2004-11-24 Peter Bartok <pbartok@novell.com>
13614 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
13615 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
13617 - CreatedKeyBoardMsg now updates keystate with Alt key
13618 - Added workaround for timer crash to CheckTimers, Jackson will
13619 develop a proper fix and check in later
13620 - Implemented DispatchMessage
13621 - Removed calling the native window proc from GetMessage (call
13622 now moved to DispatchMessage)
13624 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
13625 the keydata (Fixes bug #69831)
13628 - (DispatchMessage): Switched to return IntPtr
13629 - Added DllImport for SetFocus
13631 2004-11-24 Ravindra <rkumar@novell.com>
13633 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
13634 background drawing.
13635 * ListViewItem.cs: Fixed various properties, calculations
13636 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
13637 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
13638 and some internal properties. Fixed MouseDown handler and Paint
13641 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13643 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
13645 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13647 * ContainerControl.cs: correct accidental check in of local changes
13649 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13651 * ThemeWin32Classic.cs:
13652 - Fixed Drawing Last month in grid (sometimes not showing)
13653 * MonthCalendar.cs:
13654 - Fixed title width calculation bug (makeing title small)
13656 2004-11-23 Peter Bartok <pbartok@novell.com>
13659 - Added generation of WM_MOUSEHOVER event
13660 - Added missing assignment of async_method atom
13661 - Fixed WM_ERASEBKGND; now only redraws the exposed area
13663 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13665 * ThemeWin32Classic.cs:
13666 - Fixed Drawing of today circle when showtodaycircle not set
13667 - fixed drawing of first and last month in the grid (gay dates)
13668 * MonthCalendar.cs:
13669 - Fixed Drawing of today circle
13670 - Fixed drawing of grady dates
13671 - Fixed HitTest for today link when ShowToday set to false
13672 - Fixed DefaultSize to obey ShowToday
13674 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13676 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
13677 * System.Windows.Forms/Theme.cs
13678 * MonthCalendar.cs: added for MonthCalendar
13679 * SelectionRange.cs: added for MonthCalendar
13680 * Day.cs: added for MonthCalendar: added for MonthCalendar
13681 * DateRangeEventArgs.cs: added for MonthCalendar
13682 * DateRangeEventHandler.cs: added for MonthCalendar
13684 2004-11-22 Ravindra <rkumar@novell.com>
13686 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
13689 2004-11-22 Miguel de Icaza <miguel@ximian.com>
13691 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
13694 * NumericUpDown.cs: Added new implementation.
13695 * UpDownBase.cs: Added new implementation.
13697 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
13700 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
13703 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
13706 2004-11-21 Miguel de Icaza <miguel@ximian.com>
13708 * Timer.cs (Dispose): Should call the base dispose when
13711 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
13713 * ScrollBar.cs: updates thumb position when max, min or increment
13716 2004-11-21 Ravindra <rkumar@novell.com>
13718 * ListView.cs: Implemented item selection, activation and
13719 column header style. Fixed properties to do a redraw, if
13720 required. Added support for MouseHover, DoubleClick, KeyDown
13721 and KeyUp event handling and some minor fixes.
13722 * ListViewItem.cs: Fixed constructor.
13723 * ThemeWin32Classic.cs: Improved drawing for ListView.
13725 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
13727 * ThemeWin32Classic.cs: initial listbox drawing code
13728 * DrawMode.cs: new enumerator
13729 * ListControl.cs: stubbed class
13730 * ListBox.cs: initial implementation
13731 * Theme.cs: new methods definitions
13732 * SelectionMode.cs: new enumerator
13734 2004-11-17 Peter Bartok <pbartok@novell.com>
13736 * XplatUIWin32.cs: Added double-click events to the class style
13737 * Control.cs (WndProc):
13738 - Added handling of click-count to MouseDown/ MouseUp events.
13739 - Added handling of middle and right mouse buttons
13740 - Removed old debug code
13742 2004-11-17 Jackson Harper <jackson@ximian.com>
13744 * XplatUIX11.cs: Use the new Mono.Unix namespace.
13746 2004-11-17 Ravindra <rkumar@novell.com>
13748 * ListView.cs: Added event handling for MouseMove/Up/Down.
13749 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
13750 * ThemeWin32Classic.cs: We need to clear the graphics context and
13751 draw column header in a proper state.
13754 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
13756 * Menu.cs: fixes signature
13758 2004-11-16 Peter Bartok <pbartok@novell.com>
13760 * XplatUIX11.cs (GetMessage): Implemented generation of
13761 double click mouse messages
13763 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
13765 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
13768 2004-11-11 Peter Bartok <pbartok@novell.com>
13770 * HandleData.cs: Added Visible property
13771 * XplatUIX11.cs (IsVisible): Now uses Visible property from
13773 * XplatUIX11.cs: Removed old debug leftovers
13774 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
13775 * Control.cs (WndProc): Removed old debug leftovers,
13776 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
13777 needed WM_SIZE handling
13779 2004-11-11 Jackson Harper <jackson@ximian.com>
13781 * OwnerDrawPropertyBag.cs:
13782 * TreeViewImageIndexConverter.cs: Initial implementation
13784 2004-11-10 Jackson Harper <jackson@ximian.com>
13786 * ThemeWin32Classic.cs:
13787 * TabControl.cs: instead of moving tabs by the slider pos just
13788 start drawing at the tab that is offset by the slider. This way
13789 scrolling always moves by exactly one tab.
13791 2004-11-10 Jackson Harper <jackson@ximian.com>
13793 * TabControl.cs: You can only scroll left when the slider has
13794 already ben moved right.
13796 2004-11-10 Jackson Harper <jackson@ximian.com>
13798 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
13801 2004-11-10 Jackson Harper <jackson@ximian.com>
13803 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
13806 2004-11-09 Jackson Harper <jackson@ximian.com>
13808 * TabControl.cs (CalcXPos): New helper method so we can determine
13809 the proper place to start drawing vertical tabs.
13810 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
13812 2004-11-09 Jackson Harper <jackson@ximian.com>
13814 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
13815 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
13816 and Bottom, left and right are illegal values for this and
13817 multiline is enabled when the alignment is set to left or right.
13818 (DrawTab): Each alignment block should draw the text itself now
13819 because Left requires special love. Also add rendering for Left
13822 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
13824 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
13825 does not destroy the windows, removes debugging messages
13827 2004-11-09 jba <jba-mono@optusnet.com.au>
13829 * ThemeWin32Classic.cs
13830 (DrawButtonBase): Fix verticle text rect clipping in windows
13831 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
13832 rendering and incorrect text rect clipping
13833 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
13834 rendering and incorrect text rect clipping
13836 2004-11-08 Jackson Harper <jackson@ximian.com>
13838 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
13839 bottom when they are bottom aligned so the bottoms of the tabs get
13841 * TabControl.cs (DropRow): Move rows up instead of down when the
13842 tab control is bottom aligned.
13844 2004-11-08 13:59 pbartok
13847 - Added handling for various window styles
13848 - Added handling for popup windows
13849 - Added SetTopmost handling
13851 2004-11-08 13:55 pbartok
13854 - Added argument to SetTopmost method
13855 - Fixed broken ClientToScreen function
13857 2004-11-08 13:53 pbartok
13859 * XplatUIStructs.cs:
13860 - Added missing WS_EX styles
13862 2004-11-08 13:53 pbartok
13864 * XplatUI.cs, XplatUIDriver.cs:
13865 - Added argument to SetTopmost
13867 2004-11-08 13:52 pbartok
13870 - Added XSetWindowAttributes structure
13871 - Improved XWindowAttributes structure
13872 - Added SetWindowValuemask enum
13873 - Added window creation arguments enum
13874 - Added gravity enum
13875 - Added Motif hints structure
13876 - Added various Motif flags and enums
13877 - Added PropertyMode enum for property functions
13879 2004-11-08 13:50 pbartok
13882 - Fixed arguments for updated SetTopmost method
13884 2004-11-08 13:49 pbartok
13887 - Fixed arguments for updated SetTopmost function
13888 - Fixed usage of PointToClient
13890 2004-11-08 13:44 pbartok
13893 - Added Clipping of children and siblings
13895 2004-11-08 13:41 pbartok
13898 - Removed SetMenuBarWindow call. We do this in Form.cs
13900 2004-11-08 13:40 jackson
13902 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
13903 scrolling jimmi in the correct location with bottom aligned tabs
13905 2004-11-08 13:36 pbartok
13907 * ContainerControl.cs:
13908 - Implemented BindingContext
13909 - Implemented ParentForm
13911 2004-11-08 12:46 jackson
13913 * TabControl.cs: Put bottom rendered tabs in the right location
13915 2004-11-08 07:15 jordi
13917 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
13920 2004-11-05 17:30 jackson
13922 * TabControl.cs: When selected tabs are expanded make sure they
13923 don't go beyond the edges of the tab control
13925 2004-11-05 14:57 jackson
13927 * TabControl.cs: Reset show_slider so if the control is resized to
13928 a size where it is no longer needed it's not displayed anymore
13930 2004-11-05 13:16 jackson
13932 * TabControl.cs: Make tab pages non visible when added to the
13935 2004-11-05 12:42 jackson
13937 * TabControl.cs: Implement SizeMode.FillToRight
13939 2004-11-05 12:16 jackson
13941 * Control.cs: Do not call CreateHandle if the handle is already
13944 2004-11-05 11:46 jackson
13946 * TabControl.cs: Remove superflous call to CalcTabRows
13948 2004-11-05 09:07 jackson
13950 * XplatUIX11.cs: Update for Mono.Posix changes
13952 2004-11-05 07:00 ravindra
13954 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
13957 2004-11-04 22:47 jba
13959 * ThemeWin32Classic.cs:
13960 - Fix Button rendering for FlatStyle = Flat or Popup
13961 - Fix RadioButton and CheckBox rendering when Appearance = Button
13962 (normal and flatstyle).
13963 - Correct outer rectangle color when drawing focus rectangle
13964 - Adjust button bounds to be 1 px smaller when focused
13965 - Make button not draw sunken 3d border when pushed (windows compat)
13966 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
13967 - Offset the text in RadioButton and Checkbox when being rendered as
13969 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
13971 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
13972 - Fixed disabled text rendering for normally rendered radiobuttons
13974 2004-11-04 10:26 jackson
13976 * TabControl.cs: Recalculate tab rows when resizing
13978 2004-11-04 07:47 jordi
13980 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
13981 collection completion, drawing issues, missing features
13983 2004-11-04 05:03 ravindra
13986 - We need to recalculate the Thumb area when
13987 LargeChange/maximum/minimum values are changed.
13988 - We set the 'pos' in UpdatePos() method to minimum, if it's less
13989 than minimum. This is required to handle the case if large_change is
13990 more than max, and use LargeChange property instead of large_change
13992 - We return max+1 when large_change is more than max, like MS does.
13994 2004-11-04 04:29 ravindra
13996 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
13997 - Changed default value signatures (prefixed all with ListView).
13998 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14000 - Fixed calculations for ListViewItem and implemented Clone()
14003 2004-11-04 04:26 ravindra
14005 * Theme.cs, ThemeWin32Classic.cs:
14006 - Changed default ListView values signatures (prefixed all with
14008 - Fixed default size values for VScrollBar and HScrollBar.
14009 - Fixed DrawListViewItem method.
14011 2004-11-04 04:05 ravindra
14013 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14015 2004-11-04 04:04 ravindra
14017 * ImageList.cs: Implemented the missing overload for Draw method.
14019 2004-11-03 19:29 jackson
14021 * TabControl.cs: Handle dropping rows on selection properly
14023 2004-11-03 11:59 jackson
14025 * TabControl.cs: remove debug code
14027 2004-11-03 11:52 jackson
14029 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14030 the scrolly widgerywoo
14032 2004-11-02 13:52 jackson
14034 * TabControl.cs: Resize the tab pages and tabs when the tab control
14037 2004-11-02 13:40 jackson
14039 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14040 selected tab to the bottom
14042 2004-11-02 13:39 jackson
14044 * TabPage.cs: Store the tab pages row
14046 2004-11-02 12:33 jordi
14048 * MenuItem.cs: fixes handle creation
14050 2004-11-02 11:42 jackson
14052 * TabControl.cs: signature fix
14054 2004-11-02 08:56 jackson
14056 * TabControl.cs: Calculate whether the tab is on an edge properly.
14057 Remove top secret debugging code
14059 2004-11-01 19:57 jackson
14061 * TabControl.cs: Add click handling, and proper sizing
14063 2004-11-01 19:47 jackson
14065 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14068 2004-11-01 19:39 jackson
14070 * TabPage.cs: add internal property to store the bounds of a tab
14073 2004-10-30 04:23 ravindra
14075 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14078 2004-10-30 04:21 ravindra
14080 * ListView.cs, ListViewItem.cs: Added support for scrolling and
14081 fixed calculations.
14083 2004-10-30 03:06 pbartok
14086 - Removed extension of DllImported libs
14088 2004-10-29 09:55 jordi
14090 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14091 navigation, itemcollection completion, menu fixes
14093 2004-10-27 22:58 pbartok
14096 - Now throws a nice error message when no X display could be opened
14098 2004-10-26 13:51 jordi
14100 * ListView.cs: removes warning
14102 2004-10-26 03:55 ravindra
14104 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14105 ThemeWin32Classic.cs: Some formatting for my last checkins.
14107 2004-10-26 03:36 ravindra
14109 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14110 control and default values.
14112 2004-10-26 03:35 ravindra
14114 * Theme.cs: Added some default values for ListView control.
14116 2004-10-26 03:33 ravindra
14118 * ToolBar.cs: ToolBar should use the user specified button size, if
14119 there is any. Added a size_specified flag for the same.
14121 2004-10-26 03:33 ravindra
14123 * ColumnHeader.cs: Added some internal members and calculations for
14126 2004-10-26 03:32 ravindra
14128 * ListViewItem.cs: Calculations for ListViewItem.
14130 2004-10-26 03:31 ravindra
14132 * ListView.cs: Added some internal members and calculations for
14135 2004-10-22 13:31 jordi
14137 * MenuAPI.cs: speedup menus drawing
14139 2004-10-22 13:16 jackson
14141 * XplatUIX11.cs: Make sure to update exposed regions when adding an
14144 2004-10-22 11:49 jackson
14148 2004-10-22 11:41 jackson
14150 * Control.cs: Check to see if the window should have its background
14151 repainted by X when drawing.
14153 2004-10-22 11:31 jackson
14155 * XplatUIX11.cs: When invalidating areas only use XClearArea if
14156 clear is true, this way we do not get flicker from X repainting the
14159 2004-10-22 11:28 jackson
14161 * XEventQueue.cs: Queue properly
14163 2004-10-21 09:38 jackson
14165 * XEventQueue.cs: Fix access modifier
14167 2004-10-21 09:36 jackson
14169 * XEventQueue.cs: Don't loose messages
14171 2004-10-21 09:22 jackson
14173 * XEventQueue.cs: Don't loose messages
14175 2004-10-20 04:15 jordi
14177 * BootMode.cs: enum need it by SystemInfo
14179 2004-10-19 21:58 pbartok
14182 - Small sanity check
14184 2004-10-19 21:56 pbartok
14187 - Added private FormParentWindow class which acts as the container
14188 for our form and as the non-client area where menus are drawn
14189 - Added/Moved required tie-ins to Jordi's menus
14190 - Fixed/Implemented the FormStartPosition functionality
14192 2004-10-19 21:52 pbartok
14195 - Removed unneeded locals
14196 - Added code to all size and location properties to understand and
14197 deal with the parent container of Form
14199 2004-10-19 21:33 pbartok
14202 - Fixed to deal with new Form subclasses for menus
14204 2004-10-19 17:48 jackson
14206 * XEventQueue.cs: commit correct version of file
14208 2004-10-19 16:50 jackson
14210 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
14212 2004-10-19 16:15 jordi
14214 * MenuAPI.cs: MenuBarCalcSize returns the height
14216 2004-10-19 08:31 pbartok
14219 - Added missing call to PreProcessMessage before calling OnXXXKey
14222 2004-10-19 00:04 ravindra
14224 * ToolTip.cs: Fixed constructor.
14226 2004-10-18 09:31 jordi
14228 * MenuAPI.cs: menuitems in menubars do not have shortcuts
14230 2004-10-18 09:26 jordi
14232 * MenuItem.cs: fixes MenuItem class signature
14234 2004-10-18 08:56 jordi
14236 * MenuAPI.cs: prevents windows from showing in the taskbar
14238 2004-10-18 00:28 ravindra
14240 * ToolTip.cs: Suppressed a warning message.
14242 2004-10-18 00:27 ravindra
14244 * Control.cs: Default value of visible property must be true.
14246 2004-10-17 23:19 pbartok
14249 - Complete implementation
14251 2004-10-17 23:19 pbartok
14254 - Added EnableWindow method
14255 - Added SetModal stub
14256 - Added generation of WM_ACTIVATE message (still needs testing)
14257 - Added SetTopMost stub
14258 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
14260 2004-10-17 23:17 pbartok
14263 - Removed VirtualKeys to XplatUIStructs
14264 - Implemented SetTopMost method
14265 - Implemented EnableWindow method
14266 - Bugfix in ScreenToClient()
14267 - Bugfixes in ClientToScreen()
14269 2004-10-17 22:51 pbartok
14271 * XplatUIStructs.cs:
14272 - Added WS_EX styles to WindowStyles enumeration
14274 2004-10-17 22:50 pbartok
14276 * XplatUI.cs, XplatUIDriver.cs:
14277 - Added method for enabling/disabling windows
14278 - Added method for setting window modality
14279 - Added method for setting topmost window
14281 2004-10-17 22:49 pbartok
14283 * ThemeWin32Classic.cs:
14284 - Added ToolTip drawing code
14286 2004-10-17 22:49 pbartok
14289 - Added ToolTip abstracts
14291 2004-10-17 22:47 pbartok
14294 - Fixed Form.ControlCollection to handle owner relations
14295 - Added Owner/OwnedForms handling
14296 - Implemented Z-Ordering for owned forms
14297 - Removed unneeded private overload of ShowDialog
14298 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
14300 - Fixed Close(), had wrong default
14301 - Added firing of OnLoad event
14302 - Added some commented out debug code for Ownership handling
14304 2004-10-17 22:16 pbartok
14307 - Fixed/implemented flat list of controls
14309 2004-10-17 22:14 pbartok
14312 - Added code to simulate modal dialogs on Win32
14314 2004-10-17 16:11 jordi
14316 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
14319 2004-10-17 13:39 jordi
14321 * MenuAPI.cs: menu drawing fixes
14323 2004-10-15 09:10 ravindra
14325 * StructFormat.cs: General Enum.
14327 2004-10-15 09:09 ravindra
14329 * SizeGripStyle.cs: Enum for Form.
14331 2004-10-15 09:08 ravindra
14333 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
14334 in Theme for ListView.
14336 2004-10-15 09:06 ravindra
14338 * ColumnHeader.cs: Flushing some formatting changes.
14340 2004-10-15 09:05 ravindra
14342 * ListViewItem.cs: Implemented GetBounds method and fixed coding
14345 2004-10-15 09:03 ravindra
14347 * ListView.cs: Implemented Paint method and fixed coding style.
14349 2004-10-15 07:34 jordi
14351 * MenuAPI.cs: fix for X11
14353 2004-10-15 07:32 ravindra
14355 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
14356 - Renamed Paint() method to Draw() for clarity. Also, moved
14357 DrawImage() to OnPaint().
14359 2004-10-15 07:25 ravindra
14361 * CheckBox.cs, RadioButton.cs:
14362 - Removed Redraw (), we get it from ButtonBase.
14363 - Implemented Paint (), to do class specific painting.
14365 2004-10-15 07:16 ravindra
14368 - Redraw () is not virtual now.
14369 - Added an internal virtual method Paint (), so that
14370 derived classes can do their painting on their own.
14371 - Modified OnPaint () to call Paint ().
14373 2004-10-15 06:43 jordi
14375 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
14376 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
14378 2004-10-15 00:30 ravindra
14381 - MessageBox on windows does not have min/max buttons.
14382 This change in CreateParams fixes this on Windows. We
14383 still need to implement this windowstyle behavior in
14386 2004-10-14 05:14 ravindra
14389 - Changed Redraw () to do a Refresh () always.
14390 - Fixed the MouseMove event handling when mouse is pressed,
14391 ie drag event handling.
14392 - Replaced the usage of ToolBarButton.Pressed property to
14393 ToolBarButton.pressed internal variable.
14395 2004-10-14 05:10 ravindra
14397 * ToolBarButton.cs:
14398 - Added an internal member 'inside' to handle mouse move
14399 with mouse pressed ie mouse drag event.
14400 - Changed 'Pressed' property to return true only when
14401 'inside' and 'pressed' are both true.
14402 - Some coding style love.
14404 2004-10-14 00:17 ravindra
14406 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
14409 2004-10-14 00:15 ravindra
14411 * ButtonBase.cs: Redraw () related improvements.
14413 2004-10-14 00:14 ravindra
14415 * MessageBox.cs: Moved InitFormSize () out of Paint method and
14416 removed unnecessary calls to Button.Show () method.
14418 2004-10-13 17:50 pbartok
14422 - Removed destroying of window until we solve the problem of X
14423 destroying the window before us on shutdown
14425 2004-10-13 16:32 pbartok
14428 - Now Redraws on MouseUp for FlatStyle Flat and Popup
14430 2004-10-13 14:18 pbartok
14433 - Added code to destroy the X window
14435 2004-10-13 14:18 pbartok
14438 - Added code to destroy a window
14440 2004-10-13 14:12 pbartok
14443 - Added the Redraw on Resize that got dropped in the last rev
14445 2004-10-13 09:06 pbartok
14447 * ThemeWin32Classic.cs:
14448 - Path from John BouAntoun:
14449 * Fix check rendering (centre correctly for normal style, offset
14450 correctly for FlatStyle).
14451 * Fix border color usage (use backcolor) for FlatStyle.Popup
14452 * Use checkbox.Capture instead of checkbox.is_pressed when
14453 rendering flatstyle states.
14455 2004-10-12 21:48 pbartok
14457 * ThemeWin32Classic.cs:
14458 - Removed all occurences of SystemColors and replaced them with the
14459 matching theme color
14461 2004-10-12 21:41 pbartok
14463 * ThemeWin32Classic.cs:
14464 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
14465 him using the function for flatstyle drawing
14466 - Changed functions to use the new version of CPDrawBorder3D
14468 2004-10-12 21:15 pbartok
14471 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
14472 match MS documentation. They need to return defined colors if the
14473 passed color matches the configured control color. Thanks to John
14474 BouAntoun for pointing this out.
14476 2004-10-12 20:57 pbartok
14479 - Fix from John BouAntoun: Raise ForeColorChanged event when text
14482 2004-10-12 20:46 pbartok
14485 - Fix from John BouAntoun: Now properly sets the Appearance property
14487 2004-10-12 20:45 pbartok
14489 * ThemeWin32Classic.cs:
14490 - Fixes from John BouAntoun: now handles forecolors and backcolors
14491 for flatstyle rendered controls much better; It also fixes normal
14492 checkbox rendering when pushed or disabled.
14494 2004-10-08 02:50 jordi
14496 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
14499 2004-10-07 08:56 jordi
14501 * ThemeWin32Classic.cs: Removes deletion of cached brushes
14503 2004-10-06 03:59 jordi
14505 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
14506 XplatUIWin32.cs: removes warnings from compilation
14508 2004-10-05 12:23 jackson
14510 * RadioButton.cs: Fix ctor
14512 2004-10-05 11:10 pbartok
14515 - Partial implementation by Benjamin Dasnois
14517 2004-10-05 10:15 jackson
14519 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
14522 2004-10-05 03:07 ravindra
14525 - Removed a private method, Draw ().
14526 - Fixed the ButtonDropDown event handling.
14527 - Fixed MouseMove event handling.
14529 2004-10-05 03:04 ravindra
14531 * ThemeWin32Classic.cs:
14532 - Added DrawListView method and ListViewDefaultSize property.
14533 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
14534 - Changed DOS style CRLF to Unix format (dos2unix).
14536 2004-10-05 03:03 ravindra
14539 - Added DrawListView method and ListViewDefaultSize property.
14541 2004-10-05 02:42 ravindra
14543 * ToolBarButton.cs: Added an internal member dd_pressed to handle
14544 clicks on DropDown arrow.
14546 2004-10-04 22:56 jackson
14548 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
14549 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
14550 Control handle the buffers, derived classes should not have to
14551 CreateBuffers themselves.
14553 2004-10-04 21:20 jackson
14555 * StatusBar.cs: The control handles resizing the buffers now.
14557 2004-10-04 21:18 jackson
14559 * Control.cs: When resizing the buffers should be invalidated. This
14560 should be handled in Control not in derived classes.
14562 2004-10-04 14:45 jackson
14566 2004-10-04 02:14 pbartok
14568 * LeftRightAlignment.cs:
14571 2004-10-04 01:09 jordi
14573 * ThemeWin32Classic.cs: fixes right button position causing right
14574 button not showing on horizontal scrollbars
14576 2004-10-02 13:12 pbartok
14579 - Simplified the Invalidate method by using an X call instead of
14580 generating the expose ourselves
14581 - Added an expose when the window background is changed
14582 - Implemented ClientToScreen method
14584 2004-10-02 13:08 pbartok
14587 - Added Win32EnableWindow method (test for implementing modal
14589 - Added ClientToScreen method and imports
14591 2004-10-02 13:07 pbartok
14593 * XplatUI.cs, XplatUIDriver.cs:
14594 - Added ClientToScreen coordinate translation method
14596 2004-10-02 13:06 pbartok
14598 * KeyPressEventArgs.cs:
14599 - Fixed access level for constructor
14601 2004-10-02 13:06 pbartok
14604 - Changed access level for the window_collection hash table
14606 2004-10-02 13:05 pbartok
14609 - Added KeyPreview property
14610 - Added Menu property (still incomplete, pending Jordi's menu work)
14611 - Implemented ProcessCmdKey
14612 - Implemented ProcessDialogKey
14613 - Implemented ProcessKeyPreview
14615 2004-10-02 13:02 pbartok
14618 - Added private method to get the Control object from the window
14620 - Implemented ContextMenu property
14621 - Implemented PointToScreen
14622 - Implemented PreProcessMessage
14623 - Implemented IsInputChar
14624 - Implemented IsInputKey
14625 - Implemented ProcessCmdKey
14626 - Completed ProcessKeyEventArgs
14627 - Fixed message loop to call the proper chain of functions on key
14629 - Implemented ProcessDialogChar
14630 - Implemented ProcessDialogKey
14631 - Implemented ProcessKeyMessage
14632 - Implemented ProcessKeyPreview
14633 - Added RaiseDragEvent stub (MS internal method)
14634 - Added RaiseKeyEvent stub (MS internal method)
14635 - Added RaiseMouseEvent stub (MS Internal method)
14636 - Added RaisePaintEvent stub (MS Internal method)
14637 - Added ResetMouseEventArgs stub (MS Internal method)
14638 - Implemented RtlTranslateAlignment
14639 - Implemented RtlTranslateContent
14640 - Implemented RtlTranslateHorizontal
14641 - Implemented RtlTranslateLeftRight
14642 - Added generation of KeyPress event
14644 2004-10-02 05:57 ravindra
14646 * ListViewItem.cs: Added attributes.
14648 2004-10-02 05:32 ravindra
14650 * ListView.cs: Added attributes.
14652 2004-10-01 11:53 jackson
14654 * Form.cs: Implement the Close method so work on MessageBox can
14657 2004-09-30 14:06 pbartok
14662 2004-09-30 11:34 jackson
14664 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
14666 2004-09-30 07:26 ravindra
14668 * ListViewItemConverter.cs: Converter for ListViewItem.
14670 2004-09-30 07:26 ravindra
14672 * SortOrder.cs: Enum for ListView control.
14674 2004-09-30 07:25 ravindra
14676 * ColumnHeader.cs: Supporting class for ListView control.
14678 2004-09-30 07:24 ravindra
14680 * ListView.cs, ListViewItem.cs: Initial implementation.
14682 2004-09-30 07:20 ravindra
14684 * ItemActivation.cs: Enum for ListView Control.
14686 2004-09-29 20:29 pbartok
14689 - Added lookup of pixel value for background color; tries to get a
14690 color 'close' to the requested color, it avoids having to create a
14691 colormap. Depending on the display this could mean the used color
14692 is slightly off the desired color. Might have to change it to a more
14693 resource intensive colormap approach, but it will work as a
14694 workaround to avoid red screens.
14696 2004-09-29 14:27 jackson
14698 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
14700 2004-09-28 12:44 pbartok
14702 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
14703 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
14704 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
14705 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
14706 TrackBar.cs, VScrollBar.cs:
14707 - Streamlined Theme interfaces:
14708 * Each DrawXXX method for a control now is passed the object for
14709 the control to be drawn in order to allow accessing any state the
14710 theme might require
14712 * ControlPaint methods for the theme now have a CP prefix to avoid
14713 name clashes with the Draw methods for controls
14715 * Every control now retrieves it's DefaultSize from the current
14718 2004-09-28 12:17 jackson
14720 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
14723 2004-09-24 14:57 jackson
14725 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
14726 Gives us a nice little performance boost.
14728 2004-09-24 12:02 jackson
14730 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
14731 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
14732 Control and supporting classes. Initial checkin
14734 2004-09-23 13:08 jackson
14736 * Form.cs: Temp build fixage
14738 2004-09-23 01:39 ravindra
14740 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
14741 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
14742 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
14743 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
14744 EventHandlers needed by ListView Control.
14746 2004-09-22 14:12 pbartok
14748 * ScrollableControl.cs:
14749 - Implemented DockPadding property
14750 - Implemented AutoScroll property
14751 - Implemented AutoScrollMargin property
14752 - Implemented AutoScrollMinSize property
14753 - Implemented AutoScrollPosition property
14754 - Implemented DisplayRectangle property (still incomplete)
14755 - Implemented CreateParams property
14756 - Implemented HScroll property
14757 - Implemented VScroll property
14758 - Implemented OnVisibleChanged property
14760 2004-09-22 14:09 pbartok
14763 - Added Form.ControllCollection class
14764 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
14765 RemoveOwnedForm (still incomplete, missing on-top and common
14766 minimize/maximize behaviour)
14767 - Added StartPosition property (still incomplete, does not use when
14769 - Added ShowDialog() methods (still incomplete, missing forcing the
14772 2004-09-22 14:05 pbartok
14775 - Added message loop for modal dialogs
14777 2004-09-22 14:02 pbartok
14780 - Fixed wrong types for events
14782 2004-09-22 14:00 pbartok
14784 * Shortcut.cs, FormWindowState.cs:
14785 - Fixed wrong values
14787 2004-09-22 12:01 jackson
14789 * Control.cs: Text is never null
14791 2004-09-20 22:14 pbartok
14794 - Fixed accessibility level for Idle handler
14796 2004-09-20 18:54 jackson
14798 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14799 XplatUIX11.cs: New message loop that uses poll so we don't get a
14802 2004-09-17 10:43 pbartok
14805 - Fixed behaviour of arrow buttons. Now properly behaves like
14806 Buttons (and like Microsoft's scrollbar arrow buttons)
14808 2004-09-17 10:14 pbartok
14811 - Added missing release of keyboard/mouse capture
14813 2004-09-17 06:18 jordi
14815 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
14816 Theme.cs: Very early menu support
14818 2004-09-16 17:45 pbartok
14821 - Fixed sending a window to the front
14822 - Added overload for SetWindowPos to avoid casting
14824 2004-09-16 17:44 pbartok
14827 - Added SendToBack and BringToFront methods
14829 2004-09-16 07:00 ravindra
14831 * Copyright: Added Novell URL.
14833 2004-09-16 07:00 ravindra
14835 * ToolBar.cs: Invalidate should be done before redrawing.
14837 2004-09-15 21:19 ravindra
14839 * ColumnHeaderStyle.cs: Enum for ListView Control.
14841 2004-09-15 21:18 ravindra
14843 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
14846 2004-09-13 18:26 jackson
14848 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
14851 2004-09-13 18:13 jackson
14853 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
14854 a second thread and post messages into the main threads message
14855 queue. This makes timing much more consistent. Both win2K and XP
14856 have a minimum timer value of 15 milliseconds, so we now do this
14859 2004-09-13 15:18 pbartok
14861 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14863 - Added Z-Ordering methods
14865 2004-09-13 10:56 pbartok
14868 - Fixed #region names
14869 - Moved properties and methods into their proper #regions
14871 2004-09-13 10:51 pbartok
14874 - Added Accept and CancelButton properties
14875 - Added ProcessDialogKey() method
14877 2004-09-13 08:18 pbartok
14879 * IWindowTarget.cs:
14882 2004-09-10 21:50 pbartok
14885 - Added DoDragDrop() [incomplete]
14886 - Properly implemented 'Visible' handling
14887 - Added SetVisibleCore()
14888 - Implemented FindChildAtPoint()
14889 - Implemented GetContainerControl()
14890 - Implemented Hide()
14892 2004-09-10 19:28 pbartok
14895 - Moved methods into their appropriate #regions
14896 - Reordered methods within regions alphabetically
14898 2004-09-10 18:57 pbartok
14900 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14901 - Added method to retrieve text from window
14903 2004-09-10 18:56 pbartok
14906 - Moved some internal functions into the internal region
14907 - Implemented FontHeight
14908 - Implemented RenderRightToLeft
14909 - Implemented ResizeRedraw
14910 - Implemented ShowFocusCues
14911 - Implemented ShowKeyboardCues
14912 - Implemented FromChildHandle
14913 - Implemented FromHandle
14914 - Implemented IsMnemonic
14915 - Implemented ReflectMessage
14916 - All public and protected Static Methods are now complete
14918 2004-09-10 16:54 pbartok
14921 - Implemented remaining missing public instance properties
14922 - Alphabetized some out of order properties
14924 2004-09-10 05:51 ravindra
14926 * PictureBox.cs: Added a check for null image.
14928 2004-09-10 00:59 jordi
14930 * GroupBox.cs: remove cvs tag
14932 2004-09-09 05:25 ravindra
14934 * ToolBar.cs: Make redraw accessible from ToolBarButton.
14936 2004-09-09 05:23 ravindra
14938 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
14941 2004-09-09 02:28 pbartok
14943 * ThemeWin32Classic.cs:
14944 - Improve disabled string look
14946 2004-09-09 01:15 jordi
14948 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
14951 2004-09-08 23:56 ravindra
14953 * ItemBoundsPortion.cs: It's enum, not a class!
14955 2004-09-08 23:47 ravindra
14957 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
14960 2004-09-08 21:13 ravindra
14962 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
14965 2004-09-08 21:03 ravindra
14967 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
14970 2004-09-08 21:01 ravindra
14972 * ScrollableControl.cs: Removed unreachable code.
14974 2004-09-08 06:45 jordi
14976 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
14978 2004-09-08 01:00 jackson
14980 * XplatUIX11.cs: Only run the timers when updating the message
14981 queue. This effectively gives X messages a higher priority then
14982 timer messages. Timers still need love though
14984 2004-09-07 14:01 jackson
14986 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
14987 this for us and the handle is no longer valid.
14989 2004-09-07 13:59 jackson
14991 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
14992 loop that manages to not crash. TODO: Add poll and cleanup timers
14994 2004-09-07 11:12 jordi
14996 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
14998 2004-09-07 03:40 jordi
15000 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15001 fixes, methods, multiple links
15003 2004-09-06 06:55 jordi
15005 * Control.cs: Caches ClientRectangle rectangle value
15007 2004-09-05 02:03 jordi
15009 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15012 2004-09-04 11:10 jordi
15014 * Label.cs: Refresh when font changed
15016 2004-09-02 16:24 pbartok
15019 - Added sanity check to creation of double buffer bitmap
15021 2004-09-02 16:24 pbartok
15024 - Fixed selection of text color
15025 - Fixed handling of resize event; now properly recreates double
15027 - Added missing assignment of TextAlignment
15028 - Added proper default for TextAlignment
15030 2004-09-02 14:26 pbartok
15033 - Added missing RadioButton.RadioButtonAccessibleObject class
15035 2004-09-02 14:26 pbartok
15038 - Added missing Control.ControlAccessibleObject class
15039 - Started to implement Select()ion mechanisms, still very incomplete
15041 2004-09-02 14:25 pbartok
15043 * AccessibleObject.cs:
15044 - Added missing methods
15046 2004-09-02 14:23 pbartok
15048 * AccessibleNavigation.cs, AccessibleSelection.cs:
15051 2004-09-02 10:32 jordi
15053 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15054 pool for pens, brushes, and hatchbruses
15056 2004-09-01 15:30 jackson
15058 * StatusBar.cs: Fix typo
15060 2004-09-01 14:44 pbartok
15065 2004-09-01 14:39 pbartok
15067 * Button.cs, RadioButton.cs:
15068 - Functional initial check-in
15070 2004-09-01 14:01 pbartok
15073 - Added missing default
15074 - Added missing region mark
15076 2004-09-01 09:10 jordi
15078 * Label.cs: fixes method signatures, new methods, events, fixes
15081 2004-09-01 07:19 jordi
15083 * Control.cs: Init string variables with an empty object
15085 2004-09-01 04:20 jordi
15087 * Control.cs: fires OnFontChanged event
15089 2004-08-31 20:07 pbartok
15092 - Enabled display of strings
15094 2004-08-31 20:05 pbartok
15097 - Added (partial) implementation of DialogResult; rest needs to be
15098 implemented when the modal loop code is done
15100 2004-08-31 19:55 pbartok
15103 - Fixed to match the removal of the needs_redraw concept
15105 2004-08-31 19:55 pbartok
15108 - Removed the rather odd split between 'needs redraw' and redrawing
15109 - Now handles the events that require regeneration (ambient
15110 properties and size)
15112 2004-08-31 19:41 pbartok
15115 - Added firing of BackColorChanged event
15116 - Added TopLevelControl property
15117 - Fixed handling of WM_ERASEBKGRND message
15119 2004-08-31 12:49 pbartok
15125 2004-08-31 12:48 pbartok
15128 - Finished (famous last words)
15130 2004-08-31 04:35 jordi
15132 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15133 scrolling bugs, adds new methods
15135 2004-08-30 14:42 pbartok
15138 - Implemented CheckBox drawing code
15140 2004-08-30 14:42 pbartok
15143 - Made Redraw() and CheckRedraw() virtual
15144 - Improved mouse up/down/move logic to properly track buttons
15146 2004-08-30 09:44 pbartok
15149 - Updated to fix broken build. Not complete yet.
15151 2004-08-30 09:28 pbartok
15156 2004-08-30 09:17 pbartok
15161 2004-08-27 16:12 ravindra
15163 * ToolBarButton.cs: Added TypeConverter attribute.
15165 2004-08-27 16:07 ravindra
15167 * ImageIndexConverter.cs: Implemented.
15169 2004-08-27 14:17 pbartok
15172 - Removed unneeded stack vars
15173 - First attempt to fix sizing issues when layout is suspended
15175 2004-08-25 15:35 jordi
15177 * ScrollBar.cs: more fixes to scrollbar
15179 2004-08-25 14:04 ravindra
15181 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15182 Added the missing divider code and grip for ToolBar Control.
15184 2004-08-25 13:20 pbartok
15187 - Control now properly passes the ambient background color to child
15190 2004-08-25 13:20 jordi
15192 * ScrollBar.cs: small bug fix regarding bar position
15194 2004-08-25 12:33 pbartok
15197 - Now only calls SetTimer or KillTimer if the enabled state has
15200 2004-08-25 12:33 pbartok
15203 - Fixed timer handling, now seems to work
15204 - Improved error message for window creation
15206 2004-08-25 12:32 pbartok
15209 - Fixed generation of MouseUp message
15211 2004-08-25 12:29 jordi
15213 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
15214 and fixes for progressbar
15216 2004-08-24 18:43 ravindra
15218 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
15219 in ToolBar control.
15221 2004-08-24 17:15 pbartok
15225 - Added missing events
15228 2004-08-24 17:14 pbartok
15230 * StatusBar.cs, PictureBox.cs:
15231 - Now uses Control's CreateParams
15233 2004-08-24 16:36 pbartok
15236 - Fixed background color handling
15237 - Fixed sending of enter/leave events on a grab
15239 2004-08-24 16:35 pbartok
15242 - Refined definitions for CrossingEvent
15244 2004-08-24 12:37 jordi
15246 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
15247 formmating, methods signature, and adds missing events
15249 2004-08-24 12:24 jordi
15251 * Control.cs: fire OnEnabledChanged event
15253 2004-08-24 11:17 pbartok
15256 - Implemented SetTimer() and KillTimer()
15258 2004-08-24 11:16 pbartok
15261 - Now uses Remove instead of Add to kill the timer
15263 2004-08-24 10:16 jackson
15265 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
15266 picture boxes in the theme now. Draw picture box borders and obey
15269 2004-08-24 05:49 jackson
15271 * Timer.cs: Remove top secret debugging code
15273 2004-08-24 05:34 jackson
15275 * PictureBox.cs: Temp hack to make picture boxes draw their full
15278 2004-08-24 05:29 jackson
15280 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15281 XplatUIX11.cs: Move timers to the driver level. On X they are
15282 queued by the driver and checked on idle.
15284 2004-08-24 01:07 jackson
15286 * XplatUIX11.cs: Use a queue for async messages instead of passing
15287 them as ClientMessages since that was totally broken. Also simply
15288 check for events and return an idle message if none are found. This
15289 gives us an idle handler, and prevents deadlocking when no messages
15292 2004-08-23 18:19 ravindra
15294 * XplatUIWin32.cs: Removed the unwanted destructor.
15296 2004-08-23 17:27 pbartok
15299 - Finishing touches. Works now, just needs some optimizations.
15301 2004-08-23 16:53 jordi
15303 * ScrollBar.cs: small fix
15305 2004-08-23 16:45 pbartok
15308 - Removed debug output
15311 2004-08-23 16:43 jordi
15313 * ScrollBar.cs: [no log message]
15315 2004-08-23 16:10 pbartok
15318 - Fixed handling of WM_CLOSE message
15319 - Removed debug output
15321 2004-08-23 16:09 pbartok
15324 - Added handling of Idle event
15325 - Added handling of form closing
15326 - Fixed reporting of MessageLoop property
15327 - Removed some unneeded code, should provide a bit of a speedup
15329 2004-08-23 15:22 pbartok
15332 - Added InitLayout() method
15333 - Added code to properly perform layout when Anchor or Dock property
15335 - Changed 'interpretation' of ResumeLayout. MS seems to have a
15336 LAMESPEC, tried to do it in a way that makes sense
15338 2004-08-23 14:10 jordi
15340 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
15341 properties and methods
15343 2004-08-23 13:55 pbartok
15346 - Properly fixed Jordi's last fix
15347 - Now uses Cursor's Position property instead of calling XplatUI
15350 2004-08-23 13:44 jordi
15352 * PaintEventHandler.cs: Adding missing attribute
15354 2004-08-23 13:39 pbartok
15357 - Implemented Position property
15359 2004-08-23 13:39 pbartok
15361 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15362 - Added method to move mouse cursor
15364 2004-08-23 13:39 pbartok
15367 - Fixed setting of background color
15368 - Added method to move mouse cursor
15370 2004-08-23 13:16 jordi
15372 * Control.cs: avoids null exception
15374 2004-08-22 17:46 jackson
15376 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
15379 2004-08-22 17:40 jackson
15381 * XplatUIX11.cs: Add some missing locks
15383 2004-08-22 15:10 pbartok
15385 * Control.cs, Form.cs:
15386 - Removed OverlappedWindow style from Control, instead it's default
15388 - Made form windows OverlappedWindow by default
15390 2004-08-22 13:34 jackson
15392 * ScrollBar.cs: Update the position through the Value property so
15393 the OnValueChanged event is raised.
15395 2004-08-22 12:04 pbartok
15398 - Added Cursor.cs and UserControl.cs
15400 2004-08-22 12:03 pbartok
15403 - Started implementation, not usable yet
15405 2004-08-22 12:00 pbartok
15408 - Implemented UserControl (complete)
15410 2004-08-21 19:20 ravindra
15412 * ToolBar.cs: Correcting the formatting mess of VS.NET.
15414 2004-08-21 18:49 ravindra
15416 * ToolBar.cs: Probably this completes the missing attributes in
15419 2004-08-21 18:03 ravindra
15421 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
15422 Fixed toolbar control signatures.
15424 2004-08-21 16:32 pbartok
15429 2004-08-21 16:30 pbartok
15434 2004-08-21 16:19 pbartok
15436 * Control.cs, Label.cs:
15439 2004-08-21 15:57 pbartok
15442 - Added loads of debug output for development
15443 - Fixed typo in method name
15445 2004-08-21 15:52 pbartok
15447 * ToolBarButtonClickEventArgs.cs:
15448 - Added missing base class
15450 2004-08-21 14:53 pbartok
15453 - Updated to match new GrabWindow signature
15455 2004-08-21 14:51 pbartok
15457 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15458 - Added method to get default display size
15460 2004-08-21 14:23 pbartok
15462 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15463 - Added method to query current grab state
15464 - Added argument to allow confining a grab to a window
15466 2004-08-21 14:22 pbartok
15469 - Added [Flags] attribute so that modifiers can be used in bitwise
15472 2004-08-21 14:21 pbartok
15474 * TrackBar.cs, ScrollBar.cs:
15475 - Replaced direct XplatUI calls with their Control counterpart
15477 2004-08-21 13:32 pbartok
15480 - Implemented Created property
15482 2004-08-21 13:28 pbartok
15485 - Implemented ContainsFocus
15487 2004-08-21 13:26 pbartok
15490 - Implemented CausesValidation
15492 2004-08-21 13:21 pbartok
15495 - Implemented CanFocus
15496 - Implemented CanSelect
15497 - Implemented Capture
15499 2004-08-21 12:35 pbartok
15502 - Fixed bug with Async message handling
15503 - Implemented getting the ModifierKeys
15505 2004-08-21 12:32 jackson
15507 * AsyncMethodResult.cs: Make sure we have the mutex before we
15508 release it. Fixes BeginInvoke on windows
15510 2004-08-21 11:31 pbartok
15512 * XplatUIWin32.cs, XplatUIX11.cs:
15513 - Drivers now return proper mouse state
15515 2004-08-21 10:54 jackson
15517 * Control.cs: Implement EndInvoke
15519 2004-08-21 10:48 jackson
15521 * Timer.cs: Remove unneeded finalizer
15523 2004-08-20 19:52 ravindra
15525 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
15526 in mouse event handling in the ToolBar control.
15528 2004-08-20 19:50 ravindra
15530 * ImageList.cs: Changed draw method to use the arguments passed in
15533 2004-08-20 18:58 pbartok
15535 * XplatUIStructs.cs:
15536 - Added private message for async communication
15538 2004-08-20 17:38 ravindra
15540 * Control.cs: Made RightToLeft property virtual and removed a
15543 2004-08-20 14:39 jordi
15545 * ThemeGtk.cs: use style_attach
15547 2004-08-20 14:39 pbartok
15550 - Added jackson's Async code from X11 to Win32
15552 2004-08-20 14:09 pbartok
15555 - Added all new files
15557 2004-08-20 14:09 pbartok
15560 - Added call to set window background color
15562 2004-08-20 14:03 pbartok
15564 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
15565 - Added method for setting the window background
15567 2004-08-20 14:02 pbartok
15570 - Added method for setting the background color
15571 - Added handling for erasing the window background
15573 2004-08-20 13:45 jordi
15575 * TrackBar.cs: fixes timer, new properties and methods
15577 2004-08-20 13:34 jackson
15579 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
15582 2004-08-20 13:22 jackson
15584 * Timer.cs: Timer Tick events are now handed through Controls Async
15585 mechanism so the callbacks are executed in the same thread as X
15587 2004-08-20 13:19 jackson
15589 * XplatUIDriver.cs: Expose functionality to send async messages
15592 2004-08-20 13:18 jackson
15594 * Control.cs: Implement Begininvoke
15596 2004-08-20 13:14 jackson
15598 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
15599 messages through the driver
15601 2004-08-20 13:12 jackson
15603 * XplatUIX11.cs: Lock before all X operations. Also added Async
15604 method functionality through XSendEvent
15606 2004-08-20 13:11 jackson
15608 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
15609 This will screw up on 64 bit systems)
15611 2004-08-20 13:10 jackson
15613 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
15614 Async messages through X/Win32
15616 2004-08-19 19:39 pbartok
15619 - Updated code to match new HandleData.DeviceContext type
15621 2004-08-19 19:38 pbartok
15624 - Made DeviceContext a generic object to allow usage from various
15626 - Added support for queueing Windows messages
15628 2004-08-19 19:37 pbartok
15631 - Added generation of MouseEnter, MouseLeave and MouseHover events
15632 - Added cleanup on EndPaint
15634 2004-08-19 19:17 pbartok
15637 - Added handling of WM_MOUSEHOVER
15638 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
15641 2004-08-19 18:55 jordi
15643 * ThemeGtk.cs: fixes button order
15645 2004-08-19 18:12 jordi
15647 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
15649 2004-08-19 17:09 pbartok
15652 - Added Right property
15653 - Added RightToLeft property
15655 2004-08-19 16:27 jordi
15657 * ThemeGtk.cs: experimental GTK theme support
15659 2004-08-19 16:26 jordi
15661 * ITheme.cs, Theme.cs: move themes from an interface to a class
15663 2004-08-19 16:25 jordi
15665 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
15668 2004-08-19 16:04 pbartok
15671 - Added colormap basics
15672 - Added a way to re-initialize with a different display handle
15673 - Fixed setting of the window background color
15674 - Added various X11 imports related to colors and colormaps
15676 2004-08-19 15:51 pbartok
15679 - Removed packing hints (Paolo suggested this a while back)
15680 - fixed colormap type
15681 - Added default Atom types
15682 - Added Screen and color structs and enums
15684 2004-08-19 15:39 pbartok
15687 - Added missing Draw() method
15688 - Added missing RecreateHandle event
15690 2004-08-19 15:30 pbartok
15693 - Added handling of WM_CLOSE
15695 2004-08-18 13:16 jordi
15697 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
15700 2004-08-18 09:56 jordi
15702 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
15704 2004-08-17 15:31 ravindra
15706 * SWF.csproj: Updated project.
15708 2004-08-17 15:25 pbartok
15711 - Drawing improvement; don't call UpdateBounds if we are not visible
15712 (or have been minimized)
15714 2004-08-17 15:24 pbartok
15717 - Finished IsVisible
15718 - Added Win32GetWindowPlacement
15720 2004-08-17 15:08 jackson
15722 * Panel.cs: Initial checkin of the Panel
15724 2004-08-17 14:25 pbartok
15727 - Fixed broken handling of default window sizes
15729 2004-08-17 13:29 jackson
15731 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
15732 has a large startup time.
15734 2004-08-17 10:25 jackson
15736 * HandleData.cs: union areas properly
15738 2004-08-17 10:12 jackson
15740 * HandleData.cs: union areas properly
15742 2004-08-16 20:00 ravindra
15744 * ToolBar.cs, ToolBarButton.cs: Added attributes.
15746 2004-08-16 18:48 ravindra
15748 * ToolBar.cs: Added attributes.
15750 2004-08-16 17:17 ravindra
15752 * SWF.csproj: Updated project.
15754 2004-08-16 17:16 jackson
15756 * XplatUIX11.cs: Check for more expose events before sending a
15757 WM_PAINT so they can all be grouped together. This makes dragging a
15758 window across another window redraw in a sane way.
15760 2004-08-16 15:47 pbartok
15763 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
15764 support OnMouseEnter/Leave()
15765 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
15768 2004-08-16 15:46 pbartok
15770 * XplatUIStructs.cs, XplatUIX11.cs:
15771 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
15772 OnMouseEnter/Leave()
15774 2004-08-16 15:34 jackson
15776 * XplatUIX11.cs: Group multiple expose events in HandleData, make
15777 sure messages get the message field set to WM_NULL if they are not
15780 2004-08-16 15:24 jackson
15782 * HandleData.cs: HandleData is used for storing message information
15785 2004-08-15 17:23 ravindra
15787 * ColorDepth.cs: Added attribute.
15789 2004-08-15 17:23 ravindra
15791 * SWF.csproj: Updated project for ToolBar Control.
15793 2004-08-15 17:20 ravindra
15795 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
15796 control and also dos2unix format.
15798 2004-08-15 17:13 ravindra
15800 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
15801 ToolBarButtonClickEventArgs.cs,
15802 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
15803 ToolBarTextAlign.cs: First Implementation of ToolBar control.
15805 2004-08-15 15:31 pbartok
15808 - First (mostly) working version
15810 2004-08-13 16:15 pbartok
15813 - Fixed Anchor default
15815 2004-08-13 15:43 pbartok
15818 - Changed GetCursorPos signature
15820 2004-08-13 15:42 pbartok
15822 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15823 - Changed signature for GetCursorPos
15825 2004-08-13 15:25 pbartok
15829 - Fixed resizing/exposure handling
15831 2004-08-13 15:22 jordi
15833 * ThemeWin32Classic.cs: removes redundant code and fixes issues
15836 2004-08-13 14:55 jordi
15838 * TrackBar.cs: change from wndproc to events
15840 2004-08-13 13:00 jordi
15842 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15843 XplatUIX11.cs: implements PointToClient (ScreenToClient)
15845 2004-08-13 12:53 pbartok
15848 - Changed GetWindowPos to also provide client area size
15849 - Fixed broken prototypes for several win32 functions
15851 2004-08-13 12:53 pbartok
15853 * XplatUI.cs, XplatUIDriver.cs:
15854 - Changed GetWindowPos to also provide client area size
15856 2004-08-13 12:52 pbartok
15859 - Added generation of WM_POSCHANGED
15860 - Changed GetWindowPos to also provide client area size
15862 2004-08-13 12:52 pbartok
15865 - Added Dispose() and destructor
15866 - Fixed resizing and bounds calculation
15868 - Added memory savings for invisible windows
15870 2004-08-13 12:46 jordi
15872 * TrackBar.cs: adds timer and grap window
15874 2004-08-13 10:25 jackson
15876 * Timer.cs: SWF Timer
15878 2004-08-12 16:59 pbartok
15880 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15881 - Implemented method to get current mouse position
15883 2004-08-12 14:29 jordi
15885 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
15886 enhancement, fix mouse problems, highli thumb, etc
15888 2004-08-12 13:31 pbartok
15891 - Fixed Anchoring bugs
15893 2004-08-12 13:01 jackson
15895 * StatusBar.cs: Don't forget things
15897 2004-08-12 12:54 jackson
15899 * ThemeWin32Classic.cs: Handle owner draw status bars
15901 2004-08-12 12:54 jackson
15903 * StatusBar.cs: Implement missing properties, events, and methods.
15904 Handle mouse clicking
15906 2004-08-12 10:19 jackson
15908 * StatusBarPanelClickEventArgs.cs,
15909 StatusBarPanelClickEventHandler.cs: Classes for handling status
15910 bar panel click events
15912 2004-08-12 10:10 jackson
15914 * Control.cs: Add missing properties
15916 2004-08-12 09:46 pbartok
15918 * BindingsManagerBase.cs:
15919 - Name changed to BindingManagerBase.cs
15921 2004-08-12 09:25 jordi
15923 * ScrollableControl.cs: calls ctrlbase instead of exeception
15925 2004-08-11 16:28 pbartok
15927 * InputLanguageChangingEventArgs.cs:
15928 - Never check in before compiling. Fixes the last check-in
15930 2004-08-11 16:26 pbartok
15932 * InputLanguageChangingEventArgs.cs:
15933 - More signature fixes
15935 2004-08-11 16:20 pbartok
15937 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
15938 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
15939 ImageListStreamer.cs, InputLanguage.cs,
15940 InputLanguageChangedEventArgs.cs,
15941 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
15942 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
15943 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
15944 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15947 2004-08-11 16:16 pbartok
15951 - Added .Net 1.1 method
15953 2004-08-11 15:25 pbartok
15956 - Fixed BindingManagerBase.cs filename
15958 2004-08-11 15:22 pbartok
15960 * BindingManagerBase.cs:
15961 - Was checked in with wrong filename
15963 2004-08-11 14:50 pbartok
15968 2004-08-11 13:41 jordi
15970 * XplatUIWin32.cs: Fixes ClientRect
15972 2004-08-11 13:19 pbartok
15974 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15976 - We had SetWindowPos and MoveWindow to set window positions and
15977 size, removed MoveWindow. We have GetWindowPos, so it made sense to
15978 keep SetWindowPos as matching counterpart
15979 - Added some X11 sanity checking
15981 2004-08-11 12:59 pbartok
15984 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
15985 (It seems that SetBounds is just a front for SetBoundsCore and
15986 SetBoundsCore updates the underlying window system and
15987 UpdateBounds is responsible for updating the variables associated
15988 with the Control and sending the events)
15989 - Major cleanup of Size handling; we now have two sizes, client_size
15990 and bounds. Bounds defines the window with decorations, client_size
15993 2004-08-11 12:55 pbartok
15995 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15996 - Added method to calculate difference between decorated window and
15999 2004-08-11 12:54 pbartok
16002 - Forcing redraw on resize
16004 2004-08-11 11:43 pbartok
16007 - Removed disposing of the actual images when the list is disposed
16009 2004-08-11 09:13 pbartok
16012 - Now properly reparents windows
16014 2004-08-11 08:37 pbartok
16019 2004-08-11 07:47 pbartok
16022 - Rewrote the collection stuff. Might not be as fast now, not
16023 keeping the number of children around and accessible directly, but
16024 it's more straightforward
16026 2004-08-11 07:44 pbartok
16028 * AccessibleObject.cs:
16029 - Fixed to match ControlCollection rewrite
16031 2004-08-11 07:43 pbartok
16034 - Added missing creation of the collection list
16036 2004-08-10 20:08 jackson
16038 * StatusBar.cs: Get the paint message from WndProc
16040 2004-08-10 19:31 jackson
16042 * ThemeWin32Classic.cs: Create Brushes as little as possible
16044 2004-08-10 19:20 jackson
16046 * UICues.cs: Add Flags attribute
16048 2004-08-10 19:19 jackson
16050 * StatusBarPanel.cs: Signature cleanup
16052 2004-08-10 19:10 jackson
16054 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16055 Initial implementation of status bar item drawing
16057 2004-08-10 17:27 jordi
16059 * TrackBar.cs: add missing methods, properties, and restructure to
16062 2004-08-10 16:24 jackson
16064 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16065 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16068 2004-08-10 13:21 jordi
16070 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16071 enhancements and standarize on win colors defaults
16073 2004-08-10 12:52 jackson
16075 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16076 ThemeWin32Classic.cs: Implement DrawItem functionality
16078 2004-08-10 12:47 jordi
16080 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16082 2004-08-10 12:32 jordi
16084 * Control.cs: throw ontextchange event
16086 2004-08-10 11:43 pbartok
16089 - Added more to the still unfinished Dock/Anchor layout code
16091 2004-08-10 11:39 pbartok
16093 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16094 - Added GetWindowPos method
16096 2004-08-10 11:36 pbartok
16099 - Implemented several methods
16101 2004-08-10 09:47 jackson
16103 * TrackBar.cs: Allow control to handle buffering
16105 2004-08-10 09:41 jackson
16107 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16109 2004-08-10 09:24 jackson
16111 * Label.cs, LinkLabel.cs: Let Control handle buffering.
16113 2004-08-10 09:09 jackson
16115 * StatusBar.cs: Let Control handle all the buffering.
16117 2004-08-10 09:08 jackson
16119 * Control.cs: Control will now handle the buffering code, so each
16120 control does not have to implement this.
16122 2004-08-10 08:34 jackson
16124 * XplatUIDriver.cs: Use default colors from the theme
16126 2004-08-09 17:12 pbartok
16129 - Fixed several bugs Ravindra pointed out
16131 2004-08-09 16:11 pbartok
16134 - Added incomplete dock layout code
16135 - Added support for mouse wheel
16137 2004-08-09 16:09 pbartok
16140 - Added handling for middle and right mousebutton
16141 - Added handling for mouse wheel
16142 - Added handling for key state and mouse state and position
16143 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16146 2004-08-09 15:40 jackson
16148 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16149 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16152 2004-08-09 15:37 jackson
16154 * StatusBar.cs: Initial implementation of StatusBar
16156 2004-08-09 15:36 jackson
16158 * ITheme.cs: Add support for drawing status bar and getting status
16161 2004-08-09 15:35 pbartok
16166 2004-08-09 15:34 jackson
16168 * ThemeWin32Classic.cs: Add support for drawing status bar and get
16169 status bar item sizes
16171 2004-08-09 15:21 jackson
16173 * ThemeWin32Classic.cs: Use known colors for default control
16176 2004-08-09 15:12 jackson
16178 * ThemeWin32Classic.cs: Make the default font static, it is static
16179 in control so this doesn't change functionality and creating fonts
16182 2004-08-09 14:56 pbartok
16185 - Added GrabMode enum
16187 2004-08-09 14:55 pbartok
16189 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16190 - Removed Run method, was only required for initial development
16192 2004-08-09 14:51 pbartok
16194 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16195 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
16198 2004-08-09 13:48 pbartok
16201 - Fixed default sizing for child windows
16203 2004-08-09 12:56 pbartok
16206 - Added generation of WM_DESTROY message
16207 - Added handling of window manager induced shutdown
16209 2004-08-09 11:31 jackson
16211 * ThemeWin32Classic.cs: New names for control properties
16213 2004-08-09 11:25 jackson
16215 * Control.cs: Use new color names
16217 2004-08-09 11:02 jackson
16219 * XplatUI.cs: Get default window properties from the theme
16221 2004-08-09 11:01 jackson
16223 * ITheme.cs: The theme engine now controls default window
16226 2004-08-09 11:00 jackson
16228 * ThemeWin32Classic.cs: Add default window color properties
16230 2004-08-09 10:17 jackson
16232 * ThemeWin32Classic.cs: Use correct default back color
16234 2004-08-09 10:05 jackson
16236 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
16239 2004-08-09 09:56 jackson
16241 * XplatUI.cs: Remove defaults, these are handled by the theme now.
16243 2004-08-09 09:54 jackson
16245 * Control.cs: Get default properties from the theme.
16247 2004-08-09 09:53 jackson
16249 * ITheme.cs: Themes now handle default control properties
16251 2004-08-09 09:53 jackson
16253 * ThemeWin32Classic.cs: Themes now handle default control
16254 properties so coloring will be consistent
16256 2004-08-08 16:54 jordi
16258 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
16260 2004-08-08 15:08 jordi
16262 * XplatUIX11.cs: fixes keyboard crash
16264 2004-08-08 13:47 jordi
16266 * Label.cs: add cvs header info
16268 2004-08-08 12:09 jackson
16270 * ThemeWin32Classic.cs: Add pen_buttonface
16272 2004-08-08 11:52 jordi
16274 * Label.cs, LinkLabel.cs: [no log message]
16276 2004-08-08 11:34 jordi
16278 * ThemeWin32Classic.cs: Use Windows Standard Colours
16280 2004-08-07 17:32 jordi
16282 * TrackBar.cs: throw exceptions of invalid enums values
16284 2004-08-07 17:31 jordi
16286 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
16289 2004-08-07 16:56 jackson
16291 * HorizontalAlignment.cs: Initial checkin
16293 2004-08-07 13:16 jordi
16295 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
16298 2004-08-07 13:05 jordi
16300 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
16301 GetSysColor defines
16303 2004-08-06 18:01 pbartok
16305 * ThemeWin32Classic.cs:
16306 - Fixed some rounding issues with float/int
16308 2004-08-06 18:00 jackson
16310 * DockStyle.cs, AnchorStyles.cs:
16312 Add flags and serializable attributes.
16314 2004-08-06 17:46 pbartok
16317 - Implemented GetParent
16319 2004-08-06 17:18 pbartok
16322 - Fixed some rounding issues with float/int
16324 2004-08-06 17:17 pbartok
16326 * X11Structs.cs, XplatUIX11.cs:
16327 - Fixed Refresh and Invalidate
16329 2004-08-06 15:30 pbartok
16331 * Control.cs, X11Structs.cs, XplatUIX11.cs:
16332 - Fixed recursive loop when resizing
16333 - Improved/fixed redrawing on expose messages
16335 2004-08-06 09:53 jordi
16337 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
16338 keyboard navigation
16340 2004-08-06 08:02 pbartok
16342 * X11Structs.cs, XplatUIX11.cs:
16343 - Fixed reparenting
16344 - Fixed window border creation
16346 2004-08-05 15:38 pbartok
16349 - Attempted fix for reparenting problems
16351 2004-08-04 15:14 pbartok
16354 - Fixed Invalidation bug (calculated wrong client area)
16355 - Added ClientSize setter
16357 2004-08-04 15:13 pbartok
16360 - Added AutoScale properties
16362 2004-08-04 15:13 pbartok
16365 - Added latest files
16367 2004-08-04 14:11 pbartok
16369 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16371 - Added Invalidate handling
16373 2004-08-03 17:09 jordi
16375 * XplatUIDriver.cs: fixes spelling mistake
16377 2004-07-27 09:53 jordi
16379 * TrackBar.cs: fixes trackbar events, def classname, methods
16382 2004-07-27 09:29 jordi
16384 * ScrollBar.cs: fixes scrollbar events
16386 2004-07-27 04:38 jordi
16388 * Control.cs: changes to be able to run winforms samples
16390 2004-07-26 11:42 jordi
16392 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
16393 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
16395 2004-07-26 05:41 jordi
16397 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
16398 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
16401 2004-07-22 09:22 jordi
16403 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
16404 check link overlapping, implement events, and fixes
16406 2004-07-21 10:28 jordi
16408 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
16410 2004-07-21 10:19 jordi
16412 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
16413 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
16414 LinkLabelLinkClickedEventArgs.cs,
16415 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
16416 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
16419 2004-07-19 13:09 jordi
16421 * Control.cs, Label.cs: label control re-written: added missing
16422 functionlity, events, and properties
16424 2004-07-19 10:49 jordi
16426 * Control.cs: fixes SetBounds logic
16428 2004-07-19 01:29 jordi
16430 * Control.cs: Call RefreshWindow only if the window has created
16432 2004-07-15 14:05 pbartok
16434 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
16435 - Implemented ImageList and ImageList.ImageCollection classes
16436 - Added ColorDepth enumeration
16437 - Updated SWF VS.Net project
16439 2004-07-15 11:06 jordi
16441 * XplatUIStructs.cs: added MsgButons enum
16443 2004-07-15 11:03 jordi
16445 * Control.cs: added basic mouse handeling events
16447 2004-07-15 03:38 jordi
16449 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
16450 Vertical TrackBar control implementation
16452 2004-07-13 09:33 jordi
16454 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
16456 2004-07-13 09:31 jordi
16458 * Control.cs, Form.cs: commit: new properties and fixes form size
16461 2004-07-09 14:13 miguel
16463 * ProgressBar.cs: Spelling
16465 2004-07-09 11:25 pbartok
16468 - Removed usage of Rectangle for drawing. Miguel pointed out it's
16471 2004-07-09 11:17 miguel
16473 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
16475 * ProgressBar.cs: Fixed spelling for `block'
16477 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
16480 Avoid using the += on rect.X, that exposed a bug in the compiler.
16482 2004-07-08 23:21 pbartok
16484 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
16485 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
16486 BaseCollection.cs, Binding.cs, BindingContext.cs,
16487 BindingMemberInfo.cs, BindingsCollection.cs,
16488 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
16489 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
16490 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
16491 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
16492 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
16493 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
16494 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
16495 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
16496 FrameStyle.cs, GiveFeedbackEventArgs.cs,
16497 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
16498 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
16499 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
16500 InputLanguageChangedEventArgs.cs,
16501 InputLanguageChangedEventHandler.cs,
16502 InputLanguageChangingEventArgs.cs,
16503 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
16504 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
16505 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
16506 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
16507 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
16508 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
16509 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
16510 QueryAccessibilityHelpEventArgs.cs,
16511 QueryAccessibilityHelpEventHandler.cs,
16512 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
16513 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
16514 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
16515 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
16516 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
16517 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
16518 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
16519 XplatUIX11.cs, lang.cs: