1 2006-09-15 Chris Toshok <toshok@ximian.com>
4 - make the MessageQueues hashtable Synchronized.
6 - SendMessage: if the Hwnd is owned by a different thread, use the
7 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8 thread. Fixes bug #79201.
10 2006-09-15 Chris Toshok <toshok@ximian.com>
12 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
13 ControlBox == false, we disallow maximize/minimize/close. If the
14 form Caption is "" we also disallow move (and get rid of the Title
15 decoration). Unfortunately, regardless of how things are set,
16 we're stuck with the Title and WM menu.
18 2006-09-15 Chris Toshok <toshok@ximian.com>
20 * Application.cs: add locking around the static message_filters
21 ArrayList, part of #79196.
23 2006-09-15 Chris Toshok <toshok@ximian.com>
25 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
26 Form.ControlBox == false, the window has no titlebar nor resize
27 handles. fixes bug #79368.
29 2006-09-15 Chris Toshok <toshok@ximian.com>
31 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
32 >= 0. Fixes bug #79370.
34 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
35 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
37 Add properties: LayoutEngine, Margin, DefaultMargin.
38 Add method: GetPreferredSize.
39 Move layout logic from PerformLayout to layout engines.
41 2006-09-13 Chris Toshok <toshok@ximian.com>
43 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
44 fix for #79326 broke #78718, so this change addresses that.
46 - in SendWMDestroyMessages remove the call to
47 CleanupCachedWindows, since we might be recreating the control and
48 need to maintain the references to right Hwnd handles. Also, set
49 the zombie flag to true for each of the children in the hierarchy
50 instead of calling hwnd.Dispose. This will cause GetMessage to
51 ignore all events for the window except for DestroyNotify.
53 - In GetMessage, ignore messages except for DestroyNotify for
56 * Control.cs: revert the is_recreating fix from the last
57 ChangeLog. It's definitely "right", but it breaks switching from
58 an MDI form to a non-MDI form. Will need to revisit that.
60 * Hwnd.cs: add a zombie flag, which means "the
61 client_window/whole_window handles are invalid, but we're waiting
62 for the DestroyNotify event to come in for them". Set the flag to
63 false explicitly if setting WholeWindow/ClientWindow, and also
66 2006-09-13 Chris Toshok <toshok@ximian.com>
68 * XplatUIX11.cs: rework window destruction slightly.
70 - when destroying the windows associated with a control, we don't
71 need 2 separate XDestroyWindow calls. Just the one for the
72 whole_window (or for client_window if whole_window is somehow
73 IntPtr.Zero -- can this happen?) is enough.
75 - reworked SendWMDestroyMessages slightly, so we always dispose
76 the child control hwnd's after sending the messages.
78 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
79 the two places it was used (one was even using hwnd.Handle and the
80 other hwnd.client_window. ugh), adding another call in
81 SendWMDestroyMessages. We need this new call because now the
82 DestroyNotify events in the queue will be ignored for the child
83 controls (as their hwnd's were disposed, and the window id's
84 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
86 - this fixes bug #79326.
88 2006-09-13 Chris Toshok <toshok@ximian.com>
90 * Control.cs: don't always set is_recreating to false at the end
91 of RecreateHandle, since sometimes we're not done (and won't be
92 until WndProc handles the WM_DESTROY message). Also, set
93 is_recreating to false in the WM_DESTROY handling code. Part of
94 the fix for bug #79326.
96 2006-09-13 Miguel de Icaza <miguel@novell.com>
98 * X11DesktopColors.cs: Start the droppage of debugging messages.
100 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
102 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
104 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
106 2006-09-12 Chris Toshok <toshok@ximian.com>
108 * DataGrid.cs (get_ListManager): if the list_manager is null, try
109 to create it using SetDataSource. Fixes bug #79151.
111 2006-09-11 Chris Toshok <toshok@ximian.com>
113 * XEventQueue.cs: add a DispatchIdle property.
115 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
116 either the queue is null, or the queue has DispatchIdle set to
118 (DoEvents): set queue.DispatchIdle to false around the
119 peek/translate/dispatch message loop in this method. This keeps
120 Application.Doevents from emitting idle events. Part of the fix
123 2006-09-11 Chris Toshok <toshok@ximian.com>
125 * DataGrid.cs (set_DataSource): make this work for both the
126 winforms/datagrid test and ReportBuilder. It seems as though when
127 we've created a ListManager (or maybe it's if we have a
128 BindingContext?), when we set the DataSource it clears the
129 DataMember to "". otherwise we reuse the datamember. Fixes bug
132 2006-09-11 Chris Toshok <toshok@ximian.com>
134 * XplatUIX11.cs: deal with queue being null, which happens in all
135 the Clipboard functions. Fixes one of the two problems mentioned
138 2006-09-11 Chris Toshok <toshok@ximian.com>
140 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
141 button on various spots (including outside the menu) works closer
142 to MS, and doesn't crash. Fixes #79343.
144 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
146 * ListView.cs: Do not initialize item_sorter in init. To match MS,
147 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
148 and the internal comparer is set. When a new ListViewItemSorter is set,
149 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
150 was specified. No further processing is necessary if SortOrder is set
151 to it's current value. If Sorting is modified to None, and View is
152 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
153 (either custom or our internal ItemComparer) to null, on 1.0 profile
154 only set item_sorter to null if its our internal IComparer. If Sorting
155 is modified to Ascending or Descending, then use our internal IComparer
156 if none is set, and if the current IComparer is our internal one then:
157 on 2.0 profile always replace it with one for new Sorting, and on 1.0
158 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
159 Enum.IsDefined to verify whether a valid View value is specified in
160 its setter. Automatically sort listview items when listview is
161 created. In Sort, do nothing if ListView is not yet created, or if
162 no item_sorter is set (no Sorting was set, Sorting was explicitly set
163 to None or ListViewItemSorter was set to null). Added Sort overload
164 taking a bool to indicate whether the ListView should be redrawn when
165 items are sorted (we use this in ListViewItemCollection to avoid double
166 redraws). Modified our internal IComparer to take the sort order into
167 account. In Add and AddRange methods of ListViewItemCollection, also
168 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
169 view), but use overload with noredraw option to avoid double redraw.
170 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
171 true when View is Tile, and do the same when attempting to set View to
172 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
173 for selected/checked indices, as it involves overhead when sorting is
174 done while these collections are not used all that often. Instead
175 we'll build the indices on demand. Modified IList implementation of
176 CheckedIndexCollection to use public methods if object is int.
177 Modified CheckedListViewItemCollection to hide checked items if
178 ListView.CheckBoxes is false. Removed LAMESPEC remark in
179 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
180 IList implementation in SelectedIndexCollection to use public methods
181 if object is int. Modified SelectedListViewItemCollection to hide
182 selected items if listview is not yet created.
183 * ListViewItem.cs: CheckedIndices list no longer needs to be
184 maintained separately (see ListView changes). Also clone font, fixes
187 2006-09-11 Mike Kestner <mkestner@novell.com>
189 * ComboBox.cs: if we are updating the contents of the currently
190 selected index, refresh the control or the textbox selection.
193 2006-09-11 Mike Kestner <mkestner@novell.com>
195 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
196 the 'specified' logic has been moved there. This seems like a bug
197 in Control.cs, since our current SetBoundsCore completely ignores
198 the specified parameter. Peter's commit seems to indicate that is
199 the way the MS control implementation works. [Fixes #79325]
201 2006-09-10 Jonathan Chambers <joncham@gmail.com>
203 * XplatUI.cs: Set default_class_name to be composed
204 of current domain id. This allows MWF to be loaded in multiple
207 2006-09-09 Miguel de Icaza <miguel@novell.com>
209 * X11Keyboard.cs: If we are unable to obtain the input method, do
210 not call CreateXic to create the input context. Should fix
213 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
215 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
216 Simplified gnome support by adding more pinvokes to get the
217 icon for a file or mime type.
219 2006-09-08 Jackson Harper <jackson@ximian.com>
221 * MenuAPI.cs: Deslect popup context menu items before closing the
222 window, so that you don't see the previously selected item
223 selected when you reopen the menu.
224 * TextControl.cs: Update the cursor position even if we don't have
225 focus. This fixes typing in things like the ComboBox. I'm not
226 totally sure we should always set the visibility if we don't have
227 focus, but couldn't find any corner cases where the cursor showed
228 up when it shouldn't.
230 2006-09-08 Chris Toshok <toshok@ximian.com>
232 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
233 our arrays are length 256. & 0xff before indexing. Fixes the
236 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
238 * ThemeWin32Classic.cs:
239 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
240 is true. Handle that check box too.
242 2006-09-07 Chris Toshok <toshok@ximian.com>
244 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
247 2006-09-07 Chris Toshok <toshok@ximian.com>
249 * Control.cs: in set_BackColor only do the work if
250 background_color != value.
252 * XplatUIX11.cs: move the clearing of invalid areas (both client
253 and nc) to the same block of code where we set (nc_)expose_pending
254 to false. That is, move it from PaintEventEnd to PaintEventStart,
255 so things that cause invalidates from within OnPaint will trigger
256 another call to OnPaint. Fixes bug #79262.
258 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
260 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
261 * FileDialog.cs: Fix typo
263 2006-09-07 Jackson Harper <jackson@ximian.com>
265 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
266 for tab pages if they have any.
268 2006-09-06 Mike Kestner <mkestner@novell.com>
270 * Splitter.cs: use the "current" rect when finishing drag handle
271 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
273 2006-09-06 Mike Kestner <mkestner@novell.com>
275 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
276 support offset splitters. [Fixes #79298]
278 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
280 * Mime.cs: Fixed a bug that could override the global mime type
283 2006-09-05 Jackson Harper <jackson@ximian.com>
285 * TabControl.cs: Better calculation method for setting the slider
286 pos. Prevents crashes on really wide tabs.
287 - Draw Image on tab pages if an image list is used.
289 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
291 * MonthCalendar.cs: When Font changes, the Size should be
292 updated to fit the new font's space requirements.
294 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
296 * ListBox.cs: If the items are cleared with Items.Clear set
299 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
301 * MonthCalendar.cs: Handle arrow keys as input keys. Also
302 fire DateChanged event instead of DateSelected event when
303 the date was changed by keyboard interaction.
305 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
307 * DateTimePicker.cs: Handle DateChanged for the associated
308 month_calendar control, and set month_calendar.Font from
309 OnFontChanged method, as well as resize the height of the
310 control when needed. Make PreferredHeight proportional.
312 2006-09-01 Chris Toshok <toshok@ximian.com>
314 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
317 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
319 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
321 * FileDialog.cs: Set ClientSize instead of window size, to allow space
322 for decorations (Fixes #79219)
324 2006-09-01 Mike Kestner <mkestner@novell.com>
326 * ComboBox.cs: first stab at sorting plus some selection handling
327 fixes to bring us more in line with MS behavior. Also switches back
328 to index based selection. Alternative patches for index-based
329 selection were provided by Jackson Harper, Carlos Alberto Cortez,
330 and latency@gmx.de on bug 78848. I assume they were similar to this
331 code I've had simmering in my tree forever.
334 2006-09-01 Chris Toshok <toshok@ximian.com>
336 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
337 when setting list position guard against ending up with a -1 index
338 (the other part of the fix for #78812). Should probably make sure
339 we don't need the analogous fix in the ItemDeleted case.
342 - in SetDataSource, work around the fact that the way
343 OnBindingContextChanged is invoked will cause us to re-enter this
344 method. I'll remove the hack once I investigate
345 OnBindingContextChanged.
347 - fix the logic in set_DataSource and set_DataMember (basically
348 what to do if the other of the two is null.)
350 - in OnListManagerItemChanged, we need to take into account the
351 edit row when deciding whether or not to call RecreateDataGridRows
352 (part of the fix for #78812).
354 2006-09-01 Jackson Harper <jackson@ximian.com>
356 * Splitter.cs: Don't do anything if there is no control to affect
357 (prevents us from crashing in weird tet cases).
358 * TreeView.cs: Bounding box for the mouse movement reverting
359 focus/selection back to previously selected node. This matches
360 MS, and makes the tree a lot more useable.
361 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
362 use clipping so they are not drawn. This fixes when the control
363 is set to have a transparent background, or if it was over an
366 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
368 * MimeIcon.cs: Improved handling for reading default icons when
369 using gnome (2.16 made it necessary). Check and read svg icons
370 first, then 48x48 and then 32x32 icons.
372 2006-08-31 Chris Toshok <toshok@ximian.com>
374 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
377 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
378 ProcessKeyPreview. Fixes part of #77806.
380 * DataGrid.cs: big patch.
382 - revert the queueing up of DataSource/DataMember if inside
383 BeginInit/EndInit calls. That's not the way the datagrid achieves
384 its delayed databinding. Instead, call SetDataSource in
385 OnBindingContextChanged. This mimic's MS's behavior, and fixes
388 - Also, it wasn't mentioned in #78811, but the test case exhibits
389 behavior that was lacking in our datagrid implementation - Columns
390 that have mapping names that don't exist in the datasource's
391 properties aren't shown. Yuck. To fix this I added the bound
392 field to the column style, and basically any calculation to figure
393 out anything about columns uses a loop to find the bound columns.
394 still need to investigate if I can cache an array of the bound
395 columns or if the indices must be the same.
397 - When setting CurrentCell, we no longer abort if the cell being
398 edited was in the add row. This fixes the other part of #77806.
400 - The new code also fixes #78807.
402 * ThemeWin32Classic.cs: perpetrate the same disgusting
403 column.bound field hack, and only render bound fields.
405 2006-08-31 Chris Toshok <toshok@ximian.com>
407 * DataGridColumnStyle.cs: add bound field. this field is true if
408 the datasource has a property corresponding to the mapping name.
410 * DataGridTableStyle.cs: set the bound field on the column styles
411 depending on whether or not we have a column for that property.
413 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
415 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
416 splitter control (fixes #79228)
418 2006-08-31 Chris Toshok <toshok@ximian.com>
420 * DataGridColumnStyle.cs: we need to delay the assignment of
421 property descriptor until the last possible moment due to the lazy
422 databinding stuff in the datagrid. Also, fix the exceptions
423 thrown by CheckValidDataSource to match MS.
425 2006-08-31 Jackson Harper <jackson@ximian.com>
427 * Form.cs: When activated select the active control, if there is
428 no active control, we select the first control.
429 * XplatUIX11.cs: If there is no focus control when we get a
430 FocusIn event, find the toplevel form and activate it. This
431 occurs when you popup a window, it becomes the focus window, then
432 you close that window, giving focus back to the main window.
434 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
437 * ThemeWin32Classic.cs: Cache Font in bold style, as well
438 as StringFormat with Center alignments in MonthCalendar,
439 instead of creating new ones when drawing the control.
440 Also, draw the month name in bold style.
442 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
445 - PerformLayout(): It would seem MS performs the fill even if the
446 control is not visible (part of #79218 fix)
447 - ResetBackColor(): Use the setter to reset the color, to allow
448 overriders to catch the change.
450 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
451 - CreateHandle(): dito (part of $79218 fix)
452 - Don't set an icon if we have a dialog
453 * ScrollableControl.cs:
454 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
455 - ScrollIntoView(): No need to scroll if control is already visible
456 (resolves fixme and fixes #79218)
458 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
460 * MonthCalendar.cs: Change proportions in SingleMonthSize
461 to match the aspect of the original control.
463 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
465 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
466 get updated when they get maximized.
468 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
470 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
472 2006-08-29 Chris Toshok <toshok@ximian.com>
474 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
476 2006-08-29 Jackson Harper <jackson@ximian.com>
478 * TreeView.cs: Need to track selected node and highlighted node,
479 they aren't always the same thing, when the mouse is down on a
480 node it is hilighted, but not selected yet.
481 - Do the HideSelection stuff right
482 - Need to focus on rbutton mouse down. And redraw selection when
483 right click is mouse upped.
485 2006-08-29 Mike Kestner <mkestner@novell.com>
487 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
488 when SubItems.Count < Columns.Count. [Fixes #79167]
490 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
492 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
494 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
496 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
497 from X. Only send based on ConfigureNotify if we don't have the
498 correct location in hwnd (if the window manager moved us)
500 2006-08-28 Mike Kestner <mkestner@novell.com>
502 * ListView.cs: remove a TODO.
503 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
504 [Fixes ListView part of #79166]
506 2006-08-28 Mike Kestner <mkestner@novell.com>
508 * ListView.cs: move wheel handler to parent since it is focused
509 instead of the item_control now. [Fixes #79177]
511 2006-08-28 Mike Kestner <mkestner@novell.com>
513 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
514 when the control is focused. [Fixes #79171]
516 2006-08-28 Mike Kestner <mkestner@novell.com>
518 * ListView.cs: size the item and header controls for empty and
520 * ThemeWin32Classic.cs: draw disabled backgrounds.
523 2006-08-28 Chris Toshok <toshok@ximian.com>
525 * Form.cs: remove unused "active_form" static field.
527 * Hwnd.cs: lock around accesses to static windows collection.
529 * Application.cs: lock threads in Exit ().
531 2006-08-28 Chris Toshok <toshok@ximian.com>
533 * NativeWindow.cs: lock around accesses to window_collection.
535 2006-08-28 Chris Toshok <toshok@ximian.com>
537 * Control.cs: err, fix this the right way, by locking on controls
538 when using it. not by making it synchronized.
540 2006-08-28 Chris Toshok <toshok@ximian.com>
542 * Control.cs: make the static "controls" field synchronized, as it
543 gets updated from multiple threads.
545 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
547 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
548 Prevent other threads from exiting when calling thread sets quit state.
549 * XEventQueue.cs: Added PostQuitState property
551 2006-08-27 Chris Toshok <toshok@ximian.com>
553 * AsyncMethodData.cs: add a slot for the window handle.
555 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
556 window (the destination control's window, not the foster window).
558 * Control.cs (BeginInvokeInternal): store the window's handle in
562 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
565 - PostQuitMessage: Removed resetting S.D display handle, we might have
566 another loop started after calling PostQuitMessage (Fixes #79119)
567 - Created destructor to reset S.D handle
569 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
571 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
573 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
575 * TextControl.cs (Insert): Update the caret position even if we don't
576 have a handle yet, just don't call the driver in that case.
577 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
578 to the end of the new selection text (Fixes #79184)
580 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
582 * Form.cs (Activate): Only activate if the handle is created)
584 - Mark window as invisible when it's disposed
585 - Check if window handle is created when setting window visible,
586 instead of relying just on the is_created variable
587 - Check if object is disposed when creating the control (Fixes #79155)
589 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
591 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
592 when allowing layout again. Otherwise we re-generate the anchoring
593 distance to the border again and actually alter what the user wanted
594 This is ugly, it'd be better if we used DisplayRectangle instead of
595 ClientRectangle for Control.UpdateDistances, but that causes us to
596 have other problems (initial anchoring positons would be wrong)
599 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
602 - The size and location setters shouldn't go directly to
603 SetBoundsCore, but to SetBounds, which triggers layout on the
604 parent, then calls SetBoundsCore. (Related to fix for #78835)
605 - SetBounds: Moved actual location update code into this function
606 from SetBoundsCore, to match MS. Added call to PerformLayout if
607 we have a parent (to trigger resizing of anchored parents if the
608 child size has changed (see testcase for #78835)
609 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
611 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
613 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
615 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
616 System.Drawing when a toplevel window gets closed; there might
617 be other toplevel windows belonging to the same app (Fixes #78052)
619 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
621 * FileDialog.cs: After reading FileDialog settings from mwf_config
622 use Desktop prefix only if a real folder doesn't exist anymore.
623 * FontDialog.cs: Added char sets.
624 It is now possible to select the font, size or style with the
627 2006-08-25 Kornél Pál <kornelpal@gmail.com>
629 * PrintPreviewDialog.cs: Use assembly name constants.
631 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
633 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
634 scrollbar from whacking it's buttons)
636 2006-08-24 Chris Toshok <toshok@ximian.com>
638 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
639 in this patch (aggregating setting Left/Top/Width/Height to
640 setting Bounds on the scrollbars), but the crux of the fix is in
641 Recalculate, where we scroll by the remaining scroll_position if
642 we're hiding a scrollbar. The 2*$5 reward in the comment is
645 2006-08-24 Jackson Harper <jackson@ximian.com>
648 * MdiWindowManager.cs: If the form is made a non-mdi window we
649 need to remove the form closed event so that closing forms works
652 2006-08-24 Jackson Harper <jackson@ximian.com>
654 * Control.cs: Make IsRecreating internal so that the driver can
656 - Temporarily remove the Hide when controls are removed, its
657 making a whole bunch of things not work because visibility isn't
658 getting reset elsewhere correctly
659 * Form.cs: Need to do a full handle recreation when the mdi parent
661 * XplatUIX11.cs: If we are recreating handles don't dispose the
662 HWNDs. What was happening is the handles were being recreated in
663 SendWMDestroyMessages, but then flow continued on in that method
664 and destroyed the new handles.
666 2006-08-23 Jackson Harper <jackson@ximian.com>
668 * Form.cs: MdiClient is always at the back of the bus
669 * Control.cs: When the order of items in the collection is changed
670 we need to reset the all_controls array
671 - do the same sorta setup thats done when adding a control when a
672 control is set on the collection.
674 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
676 * TextBoxBase.cs (get_Text): Return an empty array if our document
677 is empty (fixes #79052)
679 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
681 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
682 on WM_SYSCHAR messages (fixes #79053)
684 2006-08-23 Chris Toshok <toshok@ximian.com>
686 * DataGrid.cs: fix flickering when scrolling vertically.
688 2006-08-23 Chris Toshok <toshok@ximian.com>
690 * DataGrid.cs (EndEdit): only invalidate the row header when we
693 2006-08-23 Chris Toshok <toshok@ximian.com>
695 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
696 methods. fixes the flicker when scrolling around.
698 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
700 * FileDialog.cs: Making sure the control is created before we get a
701 chance to use it with BeginInvoke (Fixes #79096)
703 2006-08-23 Chris Toshok <toshok@ximian.com>
705 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
706 width to use when painting the rows.
708 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
711 - Throw ArgumentException if a negative value is passed to SelectionLength
712 - Update the selection end if start is moved. end needs to be always
713 after start. (Fixes #79095)
714 - Track selection length; MS keeps the selection length even if start
715 is changed; reset on all other operations affection selection
717 2006-08-22 Jackson Harper <jackson@ximian.com>
719 * TreeView.cs: Make sure both scrollbars get displayed and sized
720 correctly when the other bar is visible.
721 - Use the original clip rectangle for checking if the area between
722 the two scrollbars is visible, not the viewport adjusted clipping
725 2006-08-22 Jackson Harper <jackson@ximian.com>
727 * Binding.cs: We don't use IsBinding because it requires the
728 control to be created, which really shouldn't be necessary just to
729 set a property on the control.
731 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
733 * ComboBox.cs: Some CB.ObjectCollection methods must throw
734 ArgumentNullReferenceException when the argument is null.
736 2006-08-21 Jackson Harper <jackson@ximian.com>
738 * Timer.cs: Track the thread that the timer is started in (NOT
739 CREATED), this way messages for it will only be triggered on its
741 * XEventQueue.cs: Track the timers here, this makes timers per
743 * XplatUIX11.cs: The timers are moved to the XEventQueue.
745 2006-08-19 Chris Toshok <toshok@ximian.com>
747 * XplatUIX11.cs: after further communication with pdb, we get the
748 best of both worlds. SetZOrder working for un-Mapped windows, and
749 no X errors for un-mapped windows.
751 2006-08-19 Chris Toshok <toshok@ximian.com>
753 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
754 as it was causing pdn toolbars to not have the correct stacking.
756 2006-08-18 Mike Kestner <mkestner@novell.com>
758 * ListView.cs : guard against negative ClientArea.Width in scrollbar
759 calculation. Not sure why control should ever be setting a negative
760 width though. Fixes #78931.
762 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
764 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
765 null items in ObjectCollection class.
766 * ListBox.cs.: Likewise.
768 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
770 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
771 as the base method in ThemeWin32Classic should work fine.
774 2006-08-18 Jackson Harper <jackson@ximian.com>
776 * Binding.cs: When validating if the value entered doesn't convert
777 properly reset to the old value.
778 * RadioButton.cs: Don't fire click when we get focus.
780 2006-08-18 Jackson Harper <jackson@ximian.com>
782 * FileDialog.cs: Paint the selection on the directory combobox the
785 2006-08-17 Jackson Harper <jackson@ximian.com>
787 * ErrorProvider.cs: Don't allow the error control to be selected.
788 * Control.cs: Don't send the SetFocus messages, the control
789 activation will do this, and if we do it blindly here validation
792 2006-08-17 Jackson Harper <jackson@ximian.com>
795 * ContainerControl.cs: Make validation events fire in the correct
796 order. TODO: For some reason the first validation event is not
799 2006-08-17 Mike Kestner <mkestner@novell.com>
801 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
803 2006-08-17 Mike Kestner <mkestner@novell.com>
805 * ComboBox.cs : implement scroll wheel support for popped-down
808 2006-08-17 Jackson Harper <jackson@ximian.com>
810 * TreeView.cs: Specify treeview actions (old patch that didn't get
811 committed for some reason).
812 - Don't let the mouse wheel scroll us too far. Just want to make
813 the bottom node visible, not scroll it all the ways to the top.
815 2006-08-17 Jackson Harper <jackson@ximian.com>
817 * XplatUIX11.cs: Mouse wheel events go to the focused window.
819 2006-08-17 Mike Kestner <mkestner@novell.com>
821 * ComboBox.cs : don't do mouseover selection in simple mode.
823 2006-08-16 Jackson Harper <jackson@ximian.com>
825 * Form.cs: Fire the closing events for all the mdi child windows
826 when a window is closed. If the cancel args are set to true, the
827 main window still gets the event fired, but it doesn't not close.
828 * MdiWindowManager.cs: Do this closing cleanup in a Closed
829 handler, instead of when the button is clicked, so cancelling the
830 close works correctly.
831 * ComboBox.cs: Send the mouse down to the scrollbar.
833 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
835 * ListBox.cs: When passing 'null' to SelectedItem,
836 set SelectedIndex to -1, to unselect items. This is the
837 observed behaviour in .Net.
839 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
841 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
842 MS flags saying there won't be any. (fixes #78800)
843 * Control.cs (HandleClick): Made virtual
845 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
847 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
848 cultures. Fixed bug #78399.
850 2006-08-16 Jackson Harper <jackson@ximian.com>
852 * Form.cs: Use the MdiClients MdiChildren property to access
853 MdiChildren instead of creating the array from the child controls.
854 * MdiClient.cs: Maintain a separate array of the mdi children, so
855 that insertion order is maintained when the Z-order is changed.
857 2006-08-16 Mike Kestner <mkestner@novell.com>
859 * ListView.cs : add an ItemComparer and default to it for sorting.
860 Fixes #79076, but sorting needs a complete overhaul to be compat with
863 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
865 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
867 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
869 * Hwnd.cs (Mapped): Properly traverse the tree
871 2006-08-15 Chris Toshok <toshok@ximian.com>
873 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
874 pass manager.Current.GetType() to ParseData. It has to be the
875 property type. So, hold off doing the ParseData until we're in
876 SetPropertyValue where we know the type. This fixes the crash in
877 #78821 but the textbox is still empty.
879 2006-08-15 Chris Toshok <toshok@ximian.com>
882 - when we're scrolling, only call Edit() again if the
883 current cell is still unobscured. Fixes bug #78927.
884 - when handling mousedown on a cell, ensure the cell is visible
886 - remove the properties from DataGridRow, and remove the
887 DataGridParentRow class altogether.
890 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
892 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
893 fire OnTextChanged by ourselves. There's no point calling base,
894 we don't set the base value anywhere else. Fixes #78773.
896 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
898 * ListBox.cs: Call CollectionChanged when modifying
899 an item from Items indexer, to update the actual items
902 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
904 * PrintDialog.cs: Small fixes for focus and a pair of checks,
905 to match .Net behaviour.
907 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
909 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
911 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
913 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
915 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
917 * MessageBox.cs: Prevent potential NRE exception.
918 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
920 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
922 * MessageBox.cs: Calculate the owner of a messagebox, also make
923 it topmost. Fixes #78753
925 2006-08-14 Chris Toshok <toshok@ximian.com>
927 * XplatUIX11.cs: A couple of fixes so that metacity will let us
928 programmatically move windows. first, set the PPosition hint as
929 well as the USPosition hint. Second include some code from pdb
930 that sets the window type to NORMAL when we set the transient for
931 hint. This is because, in the absence of a window type, metacity
932 thinks any window with TransientFor set is a dialog, and refuses
933 to let us move it programmatically. fascists.
935 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
937 * XplatUIX11.cs: When setting normal hints, take into consideration
938 an different hints previously set so we don't delete them (fixes #78866)
940 2006-08-12 Chris Toshok <toshok@ximian.com>
942 * ToolBarButton.cs: make Layout return a boolean, if something to
943 do with the button's layout changed.
946 - add another parameter to Redraw, @force, which all existing
948 - make the Layout function return a boolean which is true if the
949 layout has actually changed. Redraw now uses this (and @force)
950 to determine when to invalidate. At present the only place
951 where @force can be false is the call from OnResize, when
952 background_image == null. So, resizing a toolbar when the
953 layout doesn't change results in no drawing.
955 2006-08-12 Chris Toshok <toshok@ximian.com>
957 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
958 the VScrollBar and HScrollbar reversed. oops.
960 * DataGrid.cs: fix the logic that assigns sizes to the implicit
961 scrollbars. we were assigning them twice (once in
962 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
963 therefore causing two scrollbar resizes (and redraws?) to happen
966 2006-08-12 Chris Toshok <toshok@ximian.com>
968 * ToolBarButton.cs: redraw the entire button if the theme tells us
971 * Theme.cs: add ToolBarInvalidateEntireButton.
973 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
974 buttons, just the border.
976 * ThemeNice.cs: redraw the entire toolbar button since we need to
977 draw the highlight image.
979 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
980 we need to redraw the entire button (not just the border).
982 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
984 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
985 for vertical bars. Fixes the mismatches shown by #78513
987 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
989 * FileDialog.cs: If a saved/remembered path doesn't exist
990 anymore, fall back to "Desktop".
992 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
994 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
995 parent. It's apparently legal to not have one
997 - SetZOrder: Don't try to set Z-Order on an unmapped window
998 - CreateWindow: 0,0 are legal coordinates for a window. don't move
999 it unless the coordinates are negative
1001 2006-08-10 Mike Kestner <mkestner@novell.com>
1003 * ListControl.cs: allow null for DataSource. Clear DisplayMember
1004 when setting to null per msdn docs. Fixes #78854.
1006 2006-08-10 Chris Toshok <toshok@ximian.com>
1008 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1009 flickering by setting a clip rectangle on the Graphics when we
1010 need to redraw just a particular menuitem. Also, rename "OnClick"
1011 to "OnMouseDown" to reflect what it actually is.
1013 * Form.cs: track the OnMouseDown change.
1015 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
1017 * CommonDialog.cs: Properly inherit the CreateParams from the form
1018 and only change what we need. Fixes #78865
1020 2006-08-10 Chris Toshok <toshok@ximian.com>
1022 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1023 flickering in flat mode (and most of the flickering in general) by
1024 only invalidating the button border (and not the entire rectangle)
1025 when the state changes. A couple of cases still flicker:
1026 ToggleButtons, and the dropdown arrow case when the user mouse
1029 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
1031 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1032 for german keyboards. Numlock state shouldn't affect the behaviour
1033 of the Del key. Fixes bug #78291.
1035 2006-08-10 Chris Toshok <toshok@ximian.com>
1037 * ListControl.cs: remove the items.Clear line from BindDataItems,
1038 as this is the first thing done by both subclasses in their
1039 SetItemsCore overrides. Also, add a ItemChanged handler, and when
1040 passed -1, refresh the list. This gets databinding working when
1041 the datasource is set on the list before the datasource is
1042 populated (as in wf-apps/ReportBuilder.)
1044 * ComboBox.cs: remove the argument to BindDataItems. This call
1045 should really go away, and be initiated by the ListControl code.
1049 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1051 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1052 if no data is in the document when the control is displayed
1054 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1056 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1059 - PositionCaret: Allow positioning of caret but don't call methods
1060 requiring a handle if the window isn't created yet
1061 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1062 - owner_HandleCreated: Don't position the caret, just update it's
1063 location. User might have already set a different position
1065 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
1067 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1068 windows. Screws up the returned coordinates for child windows.
1069 Fixes #78825. I'm hoping this doesn't break something, since the
1070 code was explicitly put in 8 months ago, but no bug was attached.
1071 Menus still seem to work properly.
1073 2006-08-08 Chris Toshok <toshok@ximian.com>
1075 * DataGrid.cs: make BeginInit/EndInit actually do what they're
1076 supposed to do - delay data binding until the EndInit call. Also,
1077 make the table style collection's CollectionChangeAction.Refresh
1080 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1081 (with action = Refresh) when a consituent table's MappingName is
1084 2006-08-08 Chris Toshok <toshok@ximian.com>
1086 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1087 Invalidate, since changing the text can change the size of the all
1090 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1092 * Form.cs (AddOwnedForm): Still need to add the form to our listif
1093 we don't have it yet
1095 2006-08-08 Chris Toshok <toshok@ximian.com>
1097 * PrintControllerWithStatusDialog.cs: don't .Close() the status
1098 dialog, as this causes X errors later on, since we actually
1099 destroy the window. Instead, .Hide() it.
1101 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
1103 * ComboBox.cs: Added focus reflection for popup window
1105 - Removed transient setting for non-app windows for now, not sure it
1107 - Fixed logic checking if we have captions when deciding
1108 override_redirect, WS_CAPTION is two bits and a 0 check was not
1110 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1113 - AddOwnedForm: Don't just add the form to the list, call the property
1114 to ensure the driver is informed about the ownership as well
1115 - CreateHandle: Set the TopMost status in the driver if we have an owner
1116 * XplatUI.cs: Fixed debug statement
1118 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
1119 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1120 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1121 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
1122 TrackBarRenderer.cs: Make constructor private.
1123 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1124 * ProfessionalColorTable.cs: Make properties virtual.
1126 2006-08-06 Duncan Mak <duncan@novell.com>
1128 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1131 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1132 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1133 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1134 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1135 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1136 Initial import of new 2.0 classes.
1138 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1139 * Application.cs: Add 2.0 VisualStyles properties.
1141 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
1142 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1143 XplatUIX11.cs: Create property to allow access to existing private
1144 variable "themes_enabled"
1146 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1148 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1149 file size, as otherwise our class libraries fail using windows. Fixes
1152 2006-08-04 Jackson Harper <jackson@ximian.com>
1155 * XplatUIX11.cs: Move the toolwindow window manager creation into
1156 the X11 driver, this way on win32 we can let windows create/handle
1159 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1161 * PrintDialog.cs: Remove some redundant checks, add some others,
1162 clean some code, and move the focus to the text boxes when the
1163 values are incorrect.
1165 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
1167 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1169 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1171 * NumericUpDown.cs: Setting the Minimum and Maximum is now
1172 handled correctly. Fixes bug #79001.
1174 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176 * PrintDialog.cs: The "Copies" numeric up down must have
1177 set the Minimum property to 1; only if the value is bigger
1178 than 1, activate "Collate" check box. This is the behaviour of .Net.
1179 Also modify the Document elements only if it is not null.
1181 2006-08-03 Jackson Harper <jackson@ximian.com>
1183 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1184 length. (We have a larger array then actual node count).
1186 2006-08-03 Jackson Harper <jackson@ximian.com>
1188 * ComboBox.cs: Don't show selection by default.
1189 - The SelectAll isn't needed here, since the focus code should do
1191 - DDL style lists to manual selection drawing, so when they
1192 get/lose focus they have to invalidate.
1194 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
1196 * TextBoxBase.cs: Don't always show all selections by default.
1198 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
1199 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1200 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1201 Fixed various typos.
1203 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
1205 * Control.cs: Removing the controls in a ControlCollection with
1206 Clear now hides the controls as expected. Fixes bug #78804.
1208 2006-08-03 Jackson Harper <jackson@ximian.com>
1210 * Control.cs: Revert previous focus patch, it breaks reflector.
1212 2006-08-03 Jackson Harper <jackson@ximian.com>
1214 * ComboBox.cs: Cleanup selection and focus with the combobox.
1215 This also eliminates some duplicated keyboard code, since now
1216 everything is handled by the main class.
1217 - Make list selection work on mouse up instead of down, to match
1220 2006-08-02 Jackson Harper <jackson@ximian.com>
1222 * Control.cs: Setting focus needs to go through the whole
1223 selection mechanism.
1225 2006-08-02 Chris Toshok <toshok@ximian.com>
1227 * PrintPreviewDialog.cs: change MinimumSize to use
1228 base.MinimumSize so it works.
1230 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
1233 - UpdateCaret: Added sanity check in case caret isn't defined yet
1234 - Line.Delete: Now updating selection and caret markers if we're
1235 transfering a node (Properly fixes #78323)
1236 - SetSelectionEnd: Added sanity check
1237 * TextBoxBase.cs: Removed broken attempt to fix #78323
1239 2006-08-01 Chris Toshok <toshok@ximian.com>
1241 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1242 Close() call is handled in Form, not here.
1244 2006-08-01 Chris Toshok <toshok@ximian.com>
1246 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1249 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1250 for sizes < 100% zoom. The code now aggressively attempts to keep
1251 from calling document.Print (), and tries not to use the scaling
1252 g.DrawImage whenever possible (it still does if you scale to >
1253 100%, since usually that involves huge images).
1255 * PrintPreviewControl.cs: hook up the close button.
1257 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
1258 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1259 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1260 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1261 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1262 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1263 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1264 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1265 Removed [Serializable] for 2.0 Event Handlers.
1267 2006-07-31 Jackson Harper <jackson@ximian.com>
1269 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1270 * TextControl.cs: Uncomment out the body of this method.
1272 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
1274 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1277 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1279 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1280 that embed TextBox and need selections visible even if textbox is not
1281 focused to enforce that behaviour.
1282 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1285 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1288 - Added new SetSelectionStart/SetSelectionEnd overloads
1289 - Fixed viewport width assignment to be accurate
1290 - Adjusted alignment line shift calculations to allow cursor on right
1291 aligned lines to be always visible at the right border (like MS)
1293 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1294 - TextBoxBase_SizeChanged: recalculating canvas on size changes
1295 - CalculateScrollBars: Use ViewPort size instead of window size, to
1296 properly consider space occupied by the border and scrollbars
1298 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
1299 calculations; no longer leaves artifacts
1300 - CaretMoved: Adjusted window scrolling to match MS and fixed several
1301 calculation bugs (Still missing right/center align calculations)
1303 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1305 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1306 use of both scroll rect and clip rect, as they do the same.
1308 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
1310 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
1311 in the event handler (fixes #78912)
1313 2006-07-31 Chris Toshok <toshok@ximian.com>
1315 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1316 grid.ListManager.Count, since grid.ListManager might be null.
1317 This of course begs the question "why are we drawing rows for a
1318 grid with no list manager (and therefor no rows)?" Fixes the
1319 crash in bug #78929.
1321 2006-07-31 Chris Toshok <toshok@ximian.com>
1323 * RelatedPropertyManager.cs: Don't always chain up to the parent
1324 ctor. instead, call SetDataSource if the parent's position is !=
1325 -1. Fixes the crash in #78822.
1327 2006-07-31 Chris Toshok <toshok@ximian.com>
1329 * DataGrid.cs (get_ListManager): use field instead of property
1330 accessors for datasource and datamember.
1331 (RowsCount): make internal again.
1332 (OnMouseDown): end edits before resizing columns/rows.
1333 (OnMouseUp): restart edits after resizing columns/rows.
1335 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
1337 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1338 This fixes the situation where the last set cursor is displayed
1339 whenever the mouse is over scrollbars.
1341 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1343 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1344 Document properties, as well as initial values.
1346 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
1348 * XplatUIWin32.cs (SetBorderStyle): Setting both border
1349 and ClientEdge results in a 3-pixel border, which is
1352 2006-07-28 Jackson Harper <jackson@ximian.com>
1354 * TreeNodeCollection.cs: Fix the clear method.
1355 - Fix the Shrink also
1357 2006-07-27 Jackson Harper <jackson@ximian.com>
1359 * TreeView.cs: Make sure the visible order is computed when we
1360 attempt to size the scrollbars (for trees that mess with the
1361 scrolling when they shouldn't.
1362 - Make sure to give the scrollbars valid values.
1364 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1366 * XplatUIX11.cs: Move motion compression code to where it
1367 has less performance impact
1369 2006-07-26 Jackson Harper <jackson@ximian.com>
1371 * UpDownBase.cs: When the control is selected make the child
1372 controls non selectable, so that a click on them won't do a
1373 focus/unfocus cycle.
1374 - Don't give focus to the text box when the spinner is selected.
1375 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1377 2006-07-26 Chris Toshok <toshok@ximian.com>
1379 * ThemeWin32Classic.cs: add print preview rendering. I'm not
1380 satisfied with this solution. If the bitmaps are small, we should
1381 just cache them in the PrintPreviewDialog and draw them here.
1382 Also, the layout is broken for the 2-up and 3-up cases.
1384 * Theme.cs: add PrintPReviewControlPaint.
1386 * PrintPreviewDialog.cs: first pass implementation.
1388 * PrintPreviewControl.cs: first pass implementation. No
1391 * PrintDialog.cs: only validate fields if that particular portion
1392 of the UI is enabled. Also, set the document's controller to a
1393 PrintControllerWithStatusDialog wrapping the document's print
1396 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1397 bring up a SaveFileDialog (i hope we don't want to match the
1398 behavior of the crappy windows file entry) and set the
1399 PrinterSettings.PrintFileName accordingly.
1401 2006-07-26 Jackson Harper <jackson@ximian.com>
1403 * ContainerControl.cs: Add a field that disables auto selecting
1404 the next control in a container when the container is activated.
1405 * UpDownBase.cs: Don't select the text box when the up down is
1408 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
1410 * XEventQueue.cs: Added methods for peeking (used for compression
1411 of successive events)
1412 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1413 mouse move events (fixes #78732)
1415 2006-07-25 Jackson Harper <jackson@ximian.com>
1417 * UpDownBase.cs: Use an internal class for the textbox so that we
1418 can control focus. the updown control should always have focus,
1419 if either the text area or the buttons are clicked.
1420 - Send the key messages to the textbox, since it never actually
1422 - Activate and decativate the textbox caret.
1424 2006-07-24 Jackson Harper <jackson@ximian.com>
1426 * Control.cs: Use the directed select when selecting a control,
1427 this way the container controls override will get called and the
1428 whole ActiveControl chain will get triggered. TODO: probably need
1429 to make sure this gets done everywhere instead of the old
1431 * ContainerControl.cs: Implement the directed Select method to
1432 find and activate the correct child control.
1434 2006-07-22 Mike Kestner <mkestner@novell.com>
1436 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1437 menu handling code so that clicks without a grab work too.
1440 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
1442 * FileDialog.cs: Enable the BackButton when dirstack has one element.
1443 Added some small optimizations.
1445 2006-07-21 Matt Hargett <matt@use.net>
1447 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1449 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
1451 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
1452 tests pass and match MS in some strange border cases.
1454 2006-07-21 Chris Toshok <toshok@ximian.com>
1456 * ThemeWin32Classic.cs: handle drawing of the relation links and
1459 * Theme.cs: change args to DataGridPaintParentRow.
1461 * DataGrid.cs: Don't use controls for the relation links and
1462 parent buttons, so we have to handle all their interactions in
1463 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
1464 when we're navigating through child tables, so we can reinstate
1465 selection, expanded state, current cell, etc.
1467 2006-07-20 Chris Toshok <toshok@ximian.com>
1469 * ToolBar.cs: When we redraw a button, for whatever reason,
1470 there's no reason to redraw the entire toolbar. Also, don't call
1471 Control.Refresh from within Redraw, as it's much heavier than
1472 Invalidate (which is really what we want).
1474 2006-07-20 Chris Toshok <toshok@ximian.com>
1476 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
1477 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
1478 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
1479 traces from within a debug IBindingList datasource
1480 (in mono/winforms/datagrid) for *days*, I've finally gotten things
1481 to work in a similar fashion.
1483 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1485 * ListBox.cs: Don't call Sort () when setting
1486 the Sorted property to false (avoid an unnecessary sort).
1488 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1490 * ListControl.cs: DataSource should throw an ArgumentException
1491 instead of a normal exception when the argument is not of the
1494 2006-07-20 Mike Kestner <mkestner@novell.com>
1496 * Control.cs: add InternalPreProcessMessage to allow us to steal
1497 key events before MWF gets its paws on them. Adapted from a
1499 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
1500 up/down/left/right navigation. Override the new internal control
1501 method to steal the events since they never make it to WndProc.
1502 * ToolBarButton.cs: don't worry about pushed when setting hilight
1503 since the drawing code prefers pushed to hilight. Invalidate on
1504 Hilight changes. Fixes #78547 and #78525.
1506 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1508 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
1509 the canvas size. Fixes #78868
1511 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1513 * Splitter.cs: Track requested split position until first layout
1514 is performed. Fixes #78871
1516 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
1518 * Application.cs: Removed code that forces 1.x for the version
1519 number if the version started with 0. Not sure why that code was
1520 there and I couldn't find any bugs that indicated we needed it.
1523 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
1525 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
1526 ResetDefaults(), just write some output to the console until it's
1527 implemented. Fixes bug #78907 for now. Eliminated two warnings.
1529 2006-07-19 Jonathan Chambers <joncham@gmail.com>
1531 * PropertyGridView.cs: set StartPosition of drop down forms
1532 so they appear in correct initial spot. Fixes #78190.
1534 2006-07-19 Mike Kestner <mkestner@novell.com>
1536 * ThemeWin32Classic.cs: use parent background color when drawing
1537 flat toolbars. Restructure the conditionals to make sure non-flat
1538 non-Divider toolbars are filled too. Fixes #78837.
1540 2006-07-19 Mike Kestner <mkestner@novell.com>
1542 * ListBox.cs: Sort on collection changes even if the handle
1543 isn't created yet. Fixes #78813.
1545 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1547 * ListControl.cs: DisplayMember should never be null,
1548 and now we assign String.Empty when null is passed to it (this
1551 2006-07-17 Mike Kestner <mkestner@novell.com>
1553 * ListViewItem.cs: restructure Font and subitem Font handling
1554 to hold a specific font and refer back to owner on null.
1557 2006-07-17 Mike Kestner <mkestner@novell.com>
1559 * ToolBar.cs: bandaid for side-effect of previous patch which was
1560 discarding explicit heights for non-AutoSize toolbars. Need to
1561 extend my format tester to deal with AutoSize=false. Fixes #78864.
1563 2006-07-15 Jackson Harper <jackson@ximian.com>
1565 * LabelEditTextBox.cs:
1566 * TreeView.cs: Use a new LabelEdit class for node editing, this
1567 class automatically 'closes' itself when it gets the enter key or
1569 - Use the client rectangle when setting the trees scrollbars, so
1570 border style is taken into account.
1572 2006-07-14 Jackson Harper <jackson@ximian.com>
1575 * TreeView.cs: Make the editing work similar to MSs, firing the
1576 events correctly and ending edits correctly.
1578 2006-07-14 Mike Kestner <mkestner@novell.com>
1581 * ToolBar.cs: layout restructuring and redraw enhancements to support
1582 formatting changes gracefully, like setting TextAlign, ImageList,
1583 ButtonSize, and Appearance. Handles explicit button sizing quirks
1584 of the MS controls. Things like flat toolbars ignoring button size
1585 but becoming constant sized at the largest button's size. Normal
1586 toolbars with an image set cannot be shrunk smaller than the image,
1587 but text can be clipped/ignored.
1588 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
1589 is zero. Seems like DrawString should be smart enough to not put
1590 anything on screen though. Also trim labels and ellipsize at the char
1592 Fixes #78711 and #78483.
1594 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1596 * FolderBrowserDialog.cs: Disable "New Folder" button and
1597 "New Folder" contextmenu menuitem if a folder like "My Computer"
1600 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1602 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
1603 * FolderBrowserDialog.cs:
1604 - Use MWFConfig to store and read size and position settings
1605 - Added code to create a new folder (button or context menu).
1606 Use TreeView labeledit to change the name of the new folder.
1608 2006-07-14 Jackson Harper <jackson@ximian.com>
1610 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
1611 when the tree is scrolled we end editing.
1613 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
1615 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
1618 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1620 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
1621 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
1622 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
1623 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
1624 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
1625 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
1626 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
1627 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
1628 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
1629 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
1630 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
1631 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
1632 ListViewItemSelectionChangedEventHandler.cs,
1633 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
1634 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
1635 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
1636 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
1637 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
1638 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
1639 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
1640 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
1641 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
1642 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
1643 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
1644 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
1645 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
1646 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
1647 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
1648 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
1649 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
1650 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
1651 WebBrowserNavigatingEventHandler.cs,
1652 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
1654 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
1656 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
1657 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
1658 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
1659 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
1660 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
1661 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
1662 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
1663 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
1664 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
1665 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
1666 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
1667 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
1668 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
1669 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
1670 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
1671 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
1672 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
1673 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
1674 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
1675 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
1676 ListViewItemStates.cs, MaskFormat.cs: Added
1678 2006-07-13 Jonathan Chambers <joncham@gmail.com>
1680 * PropertyGridView.cs: Fix keyboard navigation of drop down.
1681 Patch from eno for bug 78558.
1683 2006-07-13 Jackson Harper <jackson@ximian.com>
1685 * TreeView.cs: When an edit is finished make sure that the
1686 selected node is visible.
1687 - When setting the top/bottom use the scrollbars is_visible, so
1688 everything will be set correctly even if the tree isn't visible
1691 2006-07-13 Jackson Harper <jackson@ximian.com>
1693 * ComboBox.cs: Revert the item->index part of my previous patch.
1694 * TreeView.cs: Use LostFocus instead of Leave for detecting when
1695 the edit box has lost focus (duh).
1696 - Just make the edit box not visible when we get return, that will
1697 take the focus, which will call EndEdit
1698 * TreeNode.cs When we start editing, notify the treeview.
1700 2006-07-12 Jackson Harper <jackson@ximian.com>
1702 * ComboBox.cs: Clear out old items before setting the item list.
1703 This prevents databound controls from having their items added
1705 - Switch the combobox to use indices whereever possible instead of
1706 using Item's. This allows usto navigate through lists that have
1707 more then one item with the same string value (ie a, b, b, a).
1708 - Scroll the listboxes scrollbar when a non visible item is
1710 - Allow keypress to cycle through all the possible values. For
1711 example if you have b1, b2, b3 and hold down the B key all the
1712 values will be cycled through.
1714 2006-07-12 Jackson Harper <jackson@ximian.com>
1717 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
1718 this using the internal methods.
1719 * Control.cs: Add OnGotFocusInternal. A new method that allows
1720 controls to "override" OnGotFocus and change focus behavior if
1722 - Same thing for LostFocus
1723 * ComboBox.cs: Pass off focus to the text control properly.
1725 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
1727 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
1728 * FolderBrowserDialog.cs: Almost a complete rewrite.
1729 - Better support for Environment.Specialfolders
1730 - Added support for MWFVFS
1731 - Made setting SelectedPath work
1733 2006-07-12 Jackson Harper <jackson@ximian.com>
1735 * Control.cs: Optimze getting all the controls.
1737 2006-07-11 Jackson Harper <jackson@ximian.com>
1739 * ContainerControl.cs: Override SETFOCUS in the container control,
1740 so that it is not selected on mouse click.
1742 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1744 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
1745 Hopefully we will have a better way once all of focus is complete.
1747 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1749 * ThemeWin32Classic.cs: Commented out some debug code and fixed
1750 a compile error with csc.
1752 2006-07-11 Jackson Harper <jackson@ximian.com>
1754 * Control.cs: When hiding a control only select the next control
1755 if the current control was focused.
1756 - Don't handle enter/leave when setting/killing focus, this is
1757 done by the container control.
1758 - Remove is_selected, it's not needed anymore.
1759 - Add utility methods for selecting a child control, and for
1760 firing the Enter/Leave events.
1761 * ContainerControl.cs: When a control is activated fire the
1763 - Don't wrap when processing the tab key, so that focus can be
1764 moved outside of the container.
1765 - Use the correct active control
1767 2006-07-11 Jackson Harper <jackson@ximian.com>
1769 * ComboBox.cs: Remove some debug code that was blinding me.
1770 * UpDownBase.cs: These controls actually aren't implicit, they are
1771 visible to the user.
1773 2006-07-10 Chris Toshok <toshok@ximian.com>
1775 * DataGrid.cs: move back to the is_adding boolean field. god i
1776 hate this is_editing/is_adding/is_changing stuff.
1778 2006-07-10 Chris Toshok <toshok@ximian.com>
1780 * DataGridTableStyle.cs: just check if the property type is bool.
1781 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
1782 Don't use CanRenderType.
1784 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
1785 if our text == NullText. Remove CanRenderType.
1787 * DataGridBoolColumn.cs: nuke CanRenderType.
1789 * DataGrid.cs: reenable some code to end the current edit inside
1790 of set_CurrentCell. This fixes the other 1.1.16 regression.
1791 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
1792 Also, remove the visible_row_count arg from CalcRowHeaders, since
1793 we don't need to worry about the actual height of the area.
1795 2006-07-10 Chris Toshok <toshok@ximian.com>
1797 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
1800 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
1801 the real sense of the IsInEditOrNavigateMode property (true =
1802 navigate, false = edit). Also, update OnKeyPress to reflect this.
1804 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
1805 column style exists, we still need to set its property descriptor
1806 to match up with our list manager.
1808 2006-07-10 Chris Toshok <toshok@ximian.com>
1810 * ThemeWin32Classic.cs: implement the new row/header painting
1811 approach. The parent row painting will likely go away and
1812 replaced with label controls, but the rest seems to work ok (and
1815 * Theme.cs: change the way we draw datagrid rows. we don't draw
1816 the row headers as a block now. Instead we draw them in the
1817 normal draw-row loop. Add some calls for drawing parent rows and
1820 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
1821 a default table style. Set the defaults from ThemeEngine.Current,
1822 not SystemColors. Fix lots of misc issues with property setters.
1824 * DataGrid.cs: move loads of style information out of this class
1825 as it's being duplicated with DataGridTableStyle. keep track of a
1826 special DataGridTableStyle for the properties we used to mirror
1827 here. Switch all the style properties to access this table style
1828 instead of instance fields of this class. Also add a internal
1829 class to represent parent rows (more needs to be stored here, like
1830 the selection state from the parent table, as well as the
1831 expansion state.) Also, for datasources with relations, do the
1832 right thing for collapse/expand, and add support for the
1833 navigation/parent row buttons.
1835 Lastly, fix the crash in the 1.1.16 build.
1837 * GridTableStylesCollection.cs: make the explicit interface
1838 implementations call the class's methods as opposed to duplicating
1841 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
1842 0 so the text doesn't jump around when we move the cursor.
1844 2006-07-10 Jackson Harper <jackson@ximian.com>
1847 * ListBox.cs: Match MS's ToString (this makes debugging focus
1848 stuff infinitely easier).
1850 2006-07-10 Jackson Harper <jackson@ximian.com>
1852 * Control.cs (SelectNextControl): When checking the control's
1853 parent use this instead of ctrl.parent so that null can be passed
1854 to SelectNextControl. (I have unit tests for this).
1855 - Remove unused var.
1857 2006-07-10 Chris Toshok <toshok@ximian.com>
1859 * CurrencyManager.cs: correct one regression, the removal of the
1860 finalType field. Also, add a MonoTODO on CanAddRows, implement
1861 Refresh() correctly, and fix some event emission in
1864 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1866 * FileDialog.cs: Don't use brackets for new folders if they exist
1867 under *nix. Instead use -(number of existing folders +1).
1869 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1872 - Fixed really nasty bug #78771
1873 - Don't block the whole GUI when reading directories with a lot of
1874 entries. Use an other thread instead and call BeginInvoke to
1875 update the ListView in MWFFileView
1877 2006-07-07 Chris Toshok <toshok@ximian.com>
1879 * Control.cs (Dispose): release any Capture when disposing.
1881 2006-07-07 Chris Toshok <toshok@ximian.com>
1883 * LinkLabel.cs (Select): if we chain up to the parent, set
1884 focused_index to -1 so we'll search for the first available link
1885 the next time the user tabs into us. Also, if the direction is
1886 backward and focused_index == -1, start the search from the last
1889 2006-07-07 Chris Toshok <toshok@ximian.com>
1891 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
1892 is beyond the end of the text, don't do anything.
1893 (CreateLinkPieces): set our ControlStyles.Selectable based on
1894 whether or not we have any links.
1895 (Link.Invalidate): use a loop instead of foreach.
1896 (Link.set_Start): null out owner.sorted_links so it'll be
1897 recreated by CreateLinkPieces.
1899 2006-07-06 Chris Toshok <toshok@ximian.com>
1901 * LinkLabel.cs: revert the SetStyle change.
1903 2006-07-06 Chris Toshok <toshok@ximian.com>
1905 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
1906 (OnEnableChanged): s/Refresh/Invalidate
1907 (OnGotFocus): if we have a focused index already, refocus it (so
1908 if we mouse out/in to the window it'll focus the right link).
1909 (OnKeyDown): move the tab handling out of here.
1910 (OnLostFocus): don't set focused_index to -1, so we can refocus it
1912 (OnMouseDown): don't Capture here - Control handles it. Also,
1913 focus the active link.
1914 (OnMouseUp): don't deal with Capture.
1915 (OnPaintBackgroundInternal): remove.
1916 (OnTextAlignChanged): CreateLinkPieces before calling the
1917 superclass's method.
1918 (OnTextChanged): call CreateLinkPieces before calling superclass's
1920 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
1922 (Select): implement this, moving the selection between different
1923 links, and call parent.SelectNextControl if we don't have another
1924 link to focus in the given direction.
1925 (CreateLinkPieces): call Invalidate instead of Refresh.
1927 2006-07-06 Chris Toshok <toshok@ximian.com>
1929 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
1930 new LinkLabel internals.
1932 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
1933 over pieces looking for active/focused/etc links. also, deal with
1934 runs of text (and links) with embedded \n's in them, and use
1935 MeasureCharacterRanges instead of MeasureString to figure out the
1936 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
1939 2006-07-04 Jackson Harper <jackson@ximian.com>
1941 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
1942 XKB or key auto repeat, do it manually. Without key auto repeat,
1943 when a key is held down we get key press, key release, key press,
1944 key release, ... with auto repeat we get key press, key press, key
1945 press ..., and then a release when the key is actually released.
1947 2006-07-03 Jackson Harper <jackson@ximian.com>
1950 * ThemeWin32Classic.cs: Tabs do not obey normal background color
1951 rules, they are always control color regardless of the background
1954 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
1956 * FileDialog.cs: Added internal class MWFConfig.
1957 Removed Registry support and replaced it with support for the new
1958 MWFConfig class. See MWFConfig comments for more information.
1960 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
1962 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
1963 rectangle. Added some patches from eno from bug #78490 and fixed
1964 the arrow position for small up and down CPDrawScrollButtons.
1966 2006-06-30 Jackson Harper <jackson@ximian.com>
1968 * InternalWindowManager.cs: Remove some debug code.
1969 * Form.cs: When an MdiParent is set to null, the window is
1970 "detatched" and becomes a normal window.
1971 * MdiClient.cs: Don't bring the new child form to the front until
1972 it is activated (setting it as active does this), this makes the
1973 previously active forms titlebar get redrawn as inactive.
1975 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
1977 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
1980 2006-06-29 Mike Kestner <mkestner@novell.com>
1982 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
1983 arrow in keynav state. Fixes #78682.
1985 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
1987 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
1988 order (fixes #78393)
1990 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
1992 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
1993 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
1994 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
1995 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
1996 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
1997 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
1998 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
1999 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2000 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2001 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2002 enumerations (FlagsAttribute, SerializableAttribute, added/removed
2005 2006-06-28 Mike Kestner <mkestner@novell.com>
2007 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2009 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
2012 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2013 item lines from other area (It also makes BackColor consistent and
2014 compatible with .NET). Fixed bug #78564.
2016 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
2018 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2019 Patch from Eno for #78555.
2021 2006-06-27 Chris Toshok <toshok@ximian.com>
2023 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2025 * DataGridColumnStyle.cs: same.
2027 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2029 * DataGridDrawingLogic.cs: nuke.
2031 2006-06-27 Chris Toshok <toshok@ximian.com>
2033 * DataGridTableStyle.cs: clean up the constructors, and build the
2034 list of child relations for this table. I have no idea if this is
2035 where we should be doing it (it probably isn't), but since we're
2036 already iterating over the properties..
2038 * DataGrid.cs: add row resizing. for now we add a DataGridRow
2039 struct and array for keeping track of row information, similar to
2040 what's shown in a hack on
2041 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2043 * Theme.cs: be consistent about the naming of DataGrid methods,
2044 prefering ColumnWidths and RowHeights over columnsWidths and
2047 * ThemeWin32Classic.cs: same, and also add support for variable
2048 sized rows (and the +/- expansion icons for related rows).
2050 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2052 * TextBoxBase.cs: Applied Eno's patch from #78660
2054 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2056 * Form.cs (ScaleCore): We don't want to scale our form if it's
2057 state is minimized or maximized, but we still need to scale our
2058 child windows. Also, added try/finally block to ensure layout
2059 gets reset (Fixes #78697)
2061 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2063 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2065 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
2067 * Form.cs: Fixed c+p error and added check to resize form if minimum
2068 size is bigger than current size (Fixes #78709)
2070 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
2072 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2074 2006-06-26 Mike Kestner <mkestner@novell.com>
2076 * ComboBox.cs: only do Keypress handling in the combo when there
2077 are items in the collection. Fixes #78710.
2079 2006-06-26 Chris Toshok <toshok@ximian.com>
2081 * Binding.cs: make this work bi-directionally. also, clear up
2082 other mixups between Push/Pull Data (e.g. we're supposed to pull
2083 data when validating).
2085 * BindingManagerBase.cs: trim some fully qualified collection
2088 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2090 2006-06-23 Chris Toshok <toshok@ximian.com>
2092 * PropertyManager.cs: It appears (according to the unit tests)
2093 that PropertyManager doesn't use
2094 PropertyDescriptor.AddValueChanged to track propery value changes
2095 in its datasource, but uses the same scheme as Binding, where it
2096 looks for a <Property>Changed event and binds to it.
2098 Also, according to the docs, IsSuspended always returns false for
2099 a property manager with a non-null datasource.
2101 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2103 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2104 need to update the actual DialogResult. (Fixes #78613)
2106 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
2108 * Form.cs (ShowDialog): Release any captures before running the
2109 new message pump (fixes #78680)
2111 2006-06-22 Mike Kestner <mkestner@novell.com>
2113 * ListView.cs: Layout column widths properly in details mode even
2114 if HeaderStyle.None is set. Fixes #78691.
2116 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2118 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2120 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
2122 * Control.cs (ContainsFocus): Using new driver method to get focused
2123 window, instead of trying to use internal tracking var, which can
2124 recursion issues (Fixes #78685)
2125 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
2126 XplatUIWin32.cs: Added GetFocus method to return focused window
2128 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * ColorDialog.cs: when the mouse button is pressed inside the color
2131 matrix, don't let the cursor move out of it until the button is
2132 released, which is the behavior on windows. Changed 'colours' by
2133 'colors' to use the same word consistently.
2135 2006-06-21 Chris Toshok <toshok@ximian.com>
2137 * DataGrid.cs: add in some basic navigation stuff (navigating to a
2138 child relation and back, using a stack). Also, remove
2139 GetDataSource and the code that calls it - it's not needed. Also,
2140 track CurrencyManager.ListName's removal.
2142 2006-06-21 Chris Toshok <toshok@ximian.com>
2144 * CurrencyManager.cs: push some of the original type checking from
2145 BindingContext.CreateBindingManager to here, and remove some of
2146 the finalType stuff. Need more tests to make sure I've got the
2147 ListName part right, and we might need more in SetDataSource.
2149 * PropertyManager.cs: add a ctor that takes just the datasource,
2150 and no property name. Make SetDataSource work with a null
2151 property_name, and make Current return the data_source if the
2152 property descriptor is null. this makes 'string foo = "hi";
2153 BindingContext[foo].Current' return "hi" as it should.
2155 * RelatedCurrencyManager.cs: make this code more generic - there's
2156 no reason the parent manager has to be CurrencyManager, and
2157 there's no reason to pass the DataRelation. It suffices to use a
2158 BindingManagerBase and PropetyDescriptor.
2160 * RelatedPropertyManager.cs: make a similar change here.
2162 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2163 flower I knew it could be.
2165 2006-06-20 Chris Toshok <toshok@ximian.com>
2167 * PropertyManager.cs: the PropertyChangedHandler is invoked when
2168 data in the source has changed and we need to update the control,
2169 so s/PullData/PushData.
2171 * CurrencyManager.cs: Refresh is meant to update the control from
2172 data in the datasource. So, s/PullData/PushData.
2174 * BindingContext.cs: add more ugliness (we weren't handling the
2175 case where data_source = DataTable and data_member = column_name).
2177 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
2178 from the perspective of the datasource. PullData pulls from the
2179 control, PushData pushes to the control.
2181 2006-06-20 Chris Toshok <toshok@ximian.com>
2183 * BindingContext.cs: rewrite the CreateBindingManager code to
2184 handle navigation paths more or less properly. This could
2185 definitely stand some more work, in particular to push the
2186 recursion up to the toplevel. But that relies on fixes in other
2187 places (System.Data comes to mind).
2189 Also, move to a flat hashtable (and encode the twolevel nature of
2190 the dictionary into the hash key). This lets us implement the
2191 IEnumerable.GetEnumerator method.
2193 * RelatedCurrencyManager.cs: new class. Update our view based on
2194 our relation and our parent CurrencyManager's position.
2196 * CurrencyManager.cs: split out some logic from the ctor into
2197 SetView, so it can be called from the new RelatedCurrencyManager
2200 * RelatedPropertyManager.cs: new class. Update our datasource
2201 based on the position of our parent CurrencyManager.
2203 * PropertyManager.cs: split out some logic from the ctor into
2204 SetDataSource, so it can be called from the new RelatedDataSource
2205 subclass. Also, make the Current getter return the value
2206 of the PropertyDescriptor, not the data_source.
2208 * Binding.cs: no need to duplicate the string splitting code here.
2210 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2213 - set_Enabled: OnEnabledChanged is not called if the inherited state
2214 of the control is not altered, even though we might be changing the
2215 internal state of the control (#78458)
2216 - set_Enabled: (Re)Moved the enabling/disabling of the window to
2217 OnEnabledChanged, to allow easy altering of any child window state
2218 - OnEnabledChanged: Added code to enable/disable driver window state
2219 - OnParentEnabledChanged: Instead of firing the event, call
2220 OnEnabledChanged, which will fire the event and also a) set driver
2221 window state and pass the enabled state to any grandchildren (#78458)
2223 2006-06-19 Jackson Harper <jackson@ximian.com>
2225 * InternalWindowManager.cs: We don't set the cursor explicitly
2226 thats done via the response to NCHITTESTs.
2227 - Don't need to adjust for titlebar heights anymore, the
2228 coordinates are coming in the correct coordinates now (see peters
2232 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
2234 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2235 being translated relative to whole window, instead of client window.
2236 That caused broken offsets on mouseclick (and caused gas for our
2237 InternalWindowManager)
2239 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2242 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2243 - Undo(): Added replay of cursor move on DeleteChars action; added
2244 calling Undo() again if a recorded cursor move is invalid (to
2245 ensure that some action is performed on Undo)
2246 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2248 2006-06-16 Jackson Harper <jackson@ximian.com>
2250 * MdiClient.cs: Instead of just sizing maximized windows when
2251 there is a resize we also have to adjust the Y of minimized
2252 windows, so they stay pinned to the bottom of the mdi container.
2253 - Eliminate separate tracking of the active control, we can just
2254 get this from the controls collection.
2255 - Paint the decorations for the newly activated titlebar so we get
2257 * InternalWindowManager.cs:
2258 * ThemeWin32Classic.cs: Minimized windows get all three buttons
2259 even if they are a tool window.
2261 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
2263 * TextControl.cs (Undo): Handle non-existent cursor locations in the
2264 undo buffer, these can happen when text was deleted and the cursor
2265 was recorded first. Since we will also have a recorded cursor
2266 after the delete this is not an issue. (Fixes #78651)
2268 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
2270 * AccessibleObject.cs: Remove dependence on Control.is_selected;
2271 instead properly track control states internally (allows us to
2272 remove is_selected from Control)
2274 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2277 whose width is not a multiple of 8.
2279 2006-06-13 Jackson Harper <jackson@ximian.com>
2281 * MdiClient.cs: Only maximize the next child if the current one
2284 2006-06-13 Chris Toshok <toshok@ximian.com>
2286 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2287 modified. Also, guard against grid or grid_drawing being null in
2290 * DataGrid.cs: Reformat tons of getters/setters. In the
2291 DataMember setter, just call SetNewDataSource instead of
2292 duplicating some of its functionality. In SetNewDataSource, don't
2293 check ListManager for null, since the property getter creates the
2296 * DataGridTableStyle.cs: don't set TableStyle or call
2297 SetDataGridInternal on the column here, it's done in
2298 GridColumnStylesCollection.Add.
2300 * GridColumnStylesCollection.cs: fix all the explicit interface
2301 implementations to just call our methods. Nuke AddInternal() and
2302 move the body of it to Add(). Also, add a call to
2303 column.SetDataGridInternal to Add().
2305 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2306 base()+duplicate code. Also, use the Format property instead of
2307 format to generate an Invalidate ala MS. Lastly, create the
2308 textbox here, unconditionally.
2309 (set_Format): call Invalidate.
2310 (get_TextBox): no need to call EnsureTextBox.
2311 (Commit): remove the message box.
2312 (Edit) remove the call to EnsureTextBox.
2313 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2314 (EnterNullValue): no need to check textbox for null.
2315 (HideEditBox): no need to check textbox for null.
2316 (SetDataGridInColumn): add the textbox to the grid's controls.
2317 (EnsureTextBox): nuke.
2319 2006-06-13 Jackson Harper <jackson@ximian.com>
2321 * MdiWindowManager.cs: Hook up to the maximized menus paint event
2322 and redraw the buttons when needed. Unhook when the window is
2324 * MainMenu.cs: Add an internal Paint event, the mdi window manager
2325 needs this so that it can redraw its buttons when the menu is
2327 * InternalWindowManager.cs:
2328 * Form.cs: The method order has changed for DrawMaximizedButtons,
2329 so that it can be a PaintEventHandler.
2331 2006-06-13 Jackson Harper <jackson@ximian.com>
2333 * MdiClient.cs: When we close a maximized mdi window, the next mdi
2334 window is activated and maximized, even if it wasn't before.
2335 - When a new window is activated repaint the decorations of the
2336 old one, so that it no longer has the Active "look" (the blue
2338 * InternalWindowManager.cs: Open up CreateButtons to base classes
2339 so they can recreate the buttons on state changes.
2340 - If a window is maximized give it all three buttons
2341 * MdiWindowManager.cs: Create the titlebar buttons when the state
2342 is changed, this is needed because a toolwindow will not have all
2343 three buttons until it is maximized.
2345 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
2347 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2350 2006-06-12 Jackson Harper <jackson@ximian.com>
2352 * KeysConverter.cs: Make sure we handle the Ctrl special case
2353 if its the only key.
2355 2006-06-12 Jackson Harper <jackson@ximian.com>
2357 * Theme.cs: Add a method to get the size of a managed window
2359 * InternalWindowManager.cs: Remove the ButtonSize property, this
2360 should be retrieved from the theme.
2361 * MdiWindowManager.cs: Get the button size from the theme
2362 * ThemeWin32Classic.cs: Make the method to get the managed window
2363 titlebar button size public.
2364 - Handle the different button sizes of maximized toolwindows
2365 (should match any maximized window).
2366 - Get the titlebar height from the theme, not the WM (which gets
2369 2006-06-12 Jackson Harper <jackson@ximian.com>
2371 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2372 event down to the mdi window manager.
2373 - Expose some extra stuff to base classes
2374 - Make sure to end the Capture on an NC Mouse up, so that we can
2375 get double clicks properly, and the sizing doens't stick.
2376 - When doing PointToClient contain it in the workable desktop
2377 area, this prevents windows from changing size when the cursor is
2378 pulled outside of the working area while sizing.
2379 * MdiWindowManager.cs: When we get a double click maximize the
2381 - Reset the cursor after handling mode changes.
2383 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
2385 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
2386 current desktop, instead of just assuming a 0, 0 origin. This
2387 is needed for our internal window manager, to know the top
2388 margin of the desktop
2390 2006-06-12 Chris Toshok <toshok@ximian.com>
2392 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2393 we need this to get rid of the selected background in the bool
2395 (CancelEditing): move the ConcedeFocus call to above the Abort
2396 call. Also, set is_changing to false and invalidate the row
2397 header if we were changing before.
2398 (ProcessKeyPreviewInternal): remove, since noone outside this
2399 class calls it anymore. Roll the code into ProcessKeyPreview.
2400 (EndEdit): remove the internal version.
2401 (InvalidateCurrentRowHeader): make private.
2403 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
2404 Keys.Escape handling (and with it the last call to
2405 DataGrid.EndEdit from outside the class.)
2408 2006-06-12 Chris Toshok <toshok@ximian.com>
2410 * DataGridTextBox.cs (.ctor): isedit defaults to false.
2411 (OnKeyPress): set isedit to true.
2412 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
2413 already handled by the grid.
2415 * DataGrid.cs (set_CurrentCell): more work here. it's still not
2417 (set_DataSource): SetDataSource always returns true, so stop
2418 putting it in an if statement.
2419 (EndEdit): get rid of some {}'s
2420 (ProcessGridKey): return true in case Keys.Escape.
2421 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2422 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2423 PositionChanged, stopped connecting to CurrentChanged.
2424 (GetDataSource): simplify this a bunch.
2425 (SetDataSource): change return type from bool to void.
2426 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2427 to this, and make sure we don't set ListManager.Position inside
2429 (OnListManagerItemChanged): if we're passed an actual index,
2432 * CurrencyManager.cs (set_Position): don't call PullData here.
2434 2006-06-09 Jackson Harper <jackson@ximian.com>
2436 * TreeNode.cs: Recalculate the visible order before doing the
2437 Expand/Collapse Below calls, because those calls generate an
2439 - Reduce calls to the TreeView property, which is mildly expensive
2440 by using a local var.
2441 * Form.cs: Layout the MDI child windows when creating the parent
2443 - Don't use the internal constructor anymore
2444 * MdiClient.cs: use the parent form width/height (if available)
2445 when laying out the child windows, we do this because the
2446 mdiclient isn't docked yet when the initial layout is done.
2447 - Don't need an internal constructor anymore.
2449 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2451 * FileDialog.cs: handle access errors when trying to create a folder
2452 or changing to a directory. No need to initialize out parameters.
2454 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2456 * FileDialog.cs: Append a number when creating a new folder if the
2457 folder already exists (use parenthesis instead of square brackets)
2459 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2462 - Disabled registry support for windows and added better registry
2463 error checking for other systems (need to investigate why it
2464 works perfectly on my system)
2465 - If a folder already exist show an error MessageBox instead of
2466 trying to create an indexed name.
2467 - Fixed a non intentional typo.
2469 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2473 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2475 * FileDialog.cs: When creating a new folder don't crash if the
2476 folder already exists.
2478 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2480 * FileDialog.cs: Allmost a complete rewrite.
2481 - added a "virtual" file system that handles the differences
2482 between unix and windows file systems (especially the directory
2483 structure). Moved most of the directory and file handling code
2485 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
2486 UnixFileSystem and FSEntry.
2487 - Recently used folder/directory, size, location and used file names
2488 (file name ComboBox) are now stored in the registry and get read
2489 before the dialog shows up (fixes part 6 of bug #78446).
2490 - Creation of new folders/directories is now possible (context menu
2491 or ToolBar). Added TextEntryDialog for this that fills in the gap
2492 until ListView.LabelEdit works.
2493 - Fixed cursor handling (bug #78527) and focus handling for
2495 - Various "Search in" ComboBox enhancements. The content of the
2496 dropdown listbox now almost matches ms.
2497 - Changed the behaviour when the user switches to SpecialFolder
2498 Recent to show the ListView in View.Details.
2499 - Beside using the ToolBar to change the View property of the
2500 file ListView it is now possible to use the context menu too.
2502 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
2504 * ComboBox.cs: Don't create a new ObjectCollection when an item
2505 gets inserted. Just insert the item in the existing object_items
2508 2006-06-08 Jackson Harper <jackson@ximian.com>
2510 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
2511 that the treeview and root node checks are done also, this fixes a
2512 regression i caused in the unit tests.
2514 2006-06-07 Wade Berrier <wberrier@novell.com>
2516 * RichTextBox.cs: More ISO8859-1 -> unicode
2518 2006-06-07 Mike Kestner <mkestner@novell.com>
2520 * ComboBox.cs : use items to hold highlight/selection so that
2521 collection insertions don't require synchronization.
2523 2006-06-07 Jackson Harper <jackson@ximian.com>
2525 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
2526 routine. We now always keep the sized edge at the cursor instead
2527 of computing movement and adjusting rects. There is one buglet
2528 with this method though when the cursor is moved over area that
2529 the window can not expand too (such as the toolbars on the desktop).
2531 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2533 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
2534 here. Fixes crash on startup in AlbumSurfer.
2536 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
2538 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
2541 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2543 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
2544 statement to avoid calling XNextEvent which will block if another thread
2545 took the event that we were expecting. Fixes bug #78605.
2547 2006-06-07 Mike Kestner <mkestner@novell.com>
2549 * ListView.cs : isolated checkbox clicking from the selection logic.
2550 Toggle check state on item doubleclicks. Really fixes #78454 part2.
2552 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2554 * Form.cs: Check that the value passed to Form.DialogResult
2555 is a valid enum value.
2557 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2559 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
2560 Computer'. Clicking it in the network view goes to 'My Computer'.
2561 Added CIFS filesystem type. Display the mount point of filesystems.
2562 Avoid duplicate mount points (happens for me with CIFS);
2564 2006-06-06 Jackson Harper <jackson@ximian.com>
2566 * InternalWindowManager.cs: Draw the maximized windows buttons
2569 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2571 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
2572 all other dialogs. Fixes bug #78585.
2574 2006-06-06 Mike Kestner <mkestner@novell.com>
2576 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
2577 Only invalidate checkbox on checkstate changes to avoid flicker.
2578 * ListBox.cs : avoid unselect/select when clicking selected item.
2579 avoid reselection flicker for already multiselected items.
2582 2006-06-06 Jackson Harper <jackson@ximian.com>
2584 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
2585 the parent form so that the menu is removed if needed.
2587 2006-06-06 Mike Kestner <mkestner@novell.com>
2589 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
2590 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
2592 2006-06-06 Mike Kestner <mkestner@novell.com>
2594 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
2597 2006-06-06 Jackson Harper <jackson@ximian.com>
2599 * Control.cs: Use the property (instead of the field) to get the
2600 default cursor so it is instantiated correctly.
2601 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
2602 resizes so we need to manually repaint the window decorations here.
2603 - Set the titlebar button locations as soon as they are created,
2604 otherwise they are not set correctly on win32.
2606 2006-06-06 Chris Toshok <toshok@ximian.com>
2608 * CurrencyManager.cs (set_Position): call PullData before
2610 (AddNew): after calling IBindingList.AddNew, update our
2611 listposition, and call OnCurrentChanged/OnPositionChanged (without
2613 (OnCurrentChanged): remove the call to PullData from here.
2614 (OnItemChanged): remove the call to PushData from here.
2615 (OnPositionChanged): change the test from == null to != null to
2616 match the other methods.
2617 (ListChangedHandler): the grossest part of the patch. Implement
2618 this such that it passes the unit tests in CurrencyManagerTest and
2619 the output more or less matches that of MS's implementation.
2621 2006-06-06 Mike Kestner <mkestner@novell.com>
2623 * ListView.cs : only update check state on single click.
2624 * ThemeWin32Classic.cs : fix focus drawing for details view without
2625 fullrowselect. Fixes #78454.
2626 * XplatUIX11.cs : fix for double click emission.
2628 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
2630 * PropertyGridView.cs : Applied Atsushi's patch to fix
2631 font dialog bug (#78197).
2633 2006-06-05 Jackson Harper <jackson@ximian.com>
2635 * TreeNode.cs: Compute the next node for expanding/collapsing
2636 correctly. We now factor in nodes without a NextNode
2637 correctly. (Fixes somes cases in nunit-gui).
2638 * InternalWindowManager.cs: Set the bounds when updating the
2639 virtual position of a tool window.
2641 2006-06-05 Chris Toshok <toshok@ximian.com>
2643 * DataGrid.cs: rename cached_currencymgr to list_manager.
2644 (set_CurrentCell): move SetCurrentCell code here, and clean it up
2646 (CurrentRow, CurrentColumn): single accessors so we can make the
2647 cursor movement code a lot easier to understand.
2648 (CurrentRowIndex): implement this in terms of CurrentRow.
2649 (BeginEdit): clean this up a bit.
2650 (CancelEditing): sort out the is_editing/is_changing/is_adding
2652 (EndEdit): minor changes.
2653 (OnKeyDown): add a comment about a (most likely) unnecessary
2655 (OnMouseDown): cancel editing when we click on a row header. And
2656 use the CurrentRow setter, not CurrentCell.
2657 (ProcessDialogKey): directly call ProcessGridKey.
2658 (UpdateSelectionAfterCursorMove): factor out this common block of
2659 code (it's used everywhere that we move the cursor by updating row
2661 (ProcessGridKey): pretty substantial overhaul. Use the
2662 CurrentRow/CurrentColumn properties to make the code a lot more
2663 readable. Only use the CurrentCell property when we have to
2664 modify both row and column at once. Tab behavior is still broken,
2665 and Delete is untested.
2666 (Select): if we have no selected rows, set selection_start to
2668 (EditCurrentCell): rename EditCell this. It was only ever invoked
2669 with CurrentCell as the arg, so drop the arg and rename it.
2671 * DataGridColumnStyle.cs: clean up the constructors a little, and
2672 drop CommonConstructor().
2674 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
2675 actually get notified when the user hits it.
2676 (ProcessKeyMessage): *substantially* simplify this method.
2677 There's no reason (that I can see) for the textbox to be making
2678 calls into the datagrid at all. Remove all of them but the ones
2679 for Enter handling. those will take some more work.
2681 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
2682 calling HideEditBox.
2683 (HideEditBox): if we have an active textbox, render it invisible
2684 without causing a re-layout of the datagrid.
2686 2006-06-05 Mike Kestner <mkestner@novell.com>
2688 * ListView.cs : fix NRE crasher when focuseditem is cleared by
2689 collection changes by resetting it to Items[0]. Fixes #78587.
2691 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2693 * MessageBox.cs: if the height of the text is larger than the icon_size,
2694 use that. Fixes bug #78575.
2696 2006-06-05 Jackson Harper <jackson@ximian.com>
2698 * TreeView.cs: Fix line drawing when scrolling. To do this each
2699 node is basically responsible for drawing its entire horizontal
2700 area. When drawing a node it draws its parent node lines if
2702 - Adjust the clip area to the viewport rectangle
2703 - Fix Left/Right key handling to match MS. (It expand/collapses
2704 and moves to parents/first child but does not move selection to
2706 - Fix SetTop to work with new bound calculation code
2707 - When scrollbars are no longer needed we need to reset scrolling
2708 vars and recalculate the visible order so the redraw is correct
2709 * TreeNode.cs: We can't expand/collapse nodes with no children.
2711 2006-06-03 John Luke <john.luke@gmail.com>
2713 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
2714 so the colors work without dev packages
2716 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
2719 - Select: Implemented to just use activate. Seems to match MS
2720 behaviour closest. Documented to only do actual control walking
2721 based on it's parameters if in a container control so I moved
2723 - Removed selection check logic from our internal Select() method
2724 * ContainerControl.cs:
2725 - Select: Moved selection logic from Control here, since MS documents
2726 that containers obey the bool arguments. No longer calling base
2728 2006-06-02 Jackson Harper <jackson@ximian.com>
2730 * TreeView.cs: If the selected node isn't changed when we get
2731 focus update the previously selected node so that we see the
2734 2006-06-02 Mike Kestner <mkestner@novell.com>
2736 * ComboBox.cs: restructure grab and general mouse event handling.
2737 Make the composite control raise mouse events like it was a single
2738 control for leaves/enters/motion/up/down events. fix dropdown list
2739 coordinate mangling and refactor it into the scrollbar subclass to
2740 reduce code duplication. Fixes #78282 #78361 and #78457.
2742 2006-06-02 Mike Kestner <mkestner@novell.com>
2744 * ScrollBar.cs: remove Capture setting/clearing, as it happens
2745 automatically in the Control.WndProc.
2747 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2749 * FileDialog.cs: fix crash when running SharpChess, which sets the
2750 FilterIndex to 2 with only one Filter.
2752 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2754 * ToolBar.cs: add SizeSpecified property.
2755 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
2756 try to figure out our real size, otherwise fallback to what the
2759 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2761 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
2762 * Control.cs (WndProc): MS always calls the DefWndProc to pass
2765 2006-06-01 Mike Kestner <mkestner@novell.com>
2767 * ListView.cs: revamp the focus management in ListView. It still
2768 causes churn of LostFocus/GotFocus emissions on clicks, but it's
2769 better than not handling focus at all. Will revisit when pdb feels
2770 the general focus handling is solid. Fixes #78526.
2772 2006-06-01 Jackson Harper <jackson@ximian.com>
2774 * TreeView.cs: Set the default border style in the constructor.
2775 - Move painting to use OnPaintInternal instead of capturing
2776 WM_PAINT, this is the correct way of doing things
2777 - UpdateBelow shouldn't invalidate the scrollbar area
2778 - Cap the top on update below in case the node was above the top
2779 of the viewport rectangle.
2780 - ExpandBelow and Collapse below need to obey Begin/End Update.
2781 * TreeNode.cs: Make is_expanded internal so the treenode
2782 collection can change it without firing the whole event chain.
2783 * TreeNodeCollection.cs: When clearing all the child nodes make
2784 sure to recalc the visible order.
2785 - Improve algo for remove the top node
2787 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2789 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
2790 SendMessage directly calling window procedures, which in turn might
2793 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2795 * Control.cs: Don't handle WM_SETFOCUS if the same window already
2796 has focus (works around X11 sending a FocusIn after our SetFocus)
2797 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
2799 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
2801 * Mime.cs: Fix for the NET_2_0 build.
2802 NameValueCollection needs StringComparer now.
2804 2006-05-31 Chris Toshok <toshok@ximian.com>
2806 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
2807 return (via an out parameter) the starting X of the column.
2808 (UpdateVisibleColumn): track change to FromPixelToColumn.
2809 (HitTest): add a ColumnResize case here.
2810 (DrawResizeLine): new function, probably poorly named.
2812 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
2813 only need to keep one reference.
2814 (set_ListManager): same.
2815 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
2816 Also, add support for HitTestType.ColumnResize.
2817 (OnMouseMove): add column resize behavior here, and change the
2818 cursor to the correct one as we move around the datagrid.
2819 (OnMouseUp): terminate the column resize if we're resizing.
2820 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
2821 for the current cell.
2822 (ConnectListManagerEvents): use cached_currencymgr.
2823 (DisconnectListManagerEvents): fill this in, using
2825 (SetCurrentCell): remove cached_currencymgr_events handling.
2826 (SetDataMember): only call DisconnectListManagerEvents if
2827 cached_currencymgr is != null.
2828 (SetDataSource): same.
2829 (OnListManagerCurrentChanged): cached_currencymgr_events ->
2832 2006-05-31 Jackson Harper <jackson@ximian.com>
2834 * BindingManagerBase.cs: Remove somedebug code that creeped into
2836 * TreeNode.cs: We get the indent level dynamically right now, so
2837 don't track it as a member.
2838 * TreeNodeCollection.cs: Make sure all nodes added to the list
2839 have parents, treeviews/topnodes setup properly.
2840 - Don't attempt to track indent level.
2842 2006-05-30 Jackson Harper <jackson@ximian.com>
2844 * BindingContext.cs: Create the currency manager tables here.
2845 This allows us to more easily create null tables (when bad data
2846 members are used), and more easily create related currency
2848 * CurrencyManager.cs: All the table creation stuff is done by the
2849 binding context now.
2850 - Current should throw an exception if listposition is -1.
2851 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
2854 2006-05-30 Mike Kestner <mkestner@novell.com>
2856 * ListView.cs: allow reexpansion of zero-width column headers.
2859 2006-05-28 Chris Toshok <toshok@ximian.com>
2861 * CurrencyManager.cs (get_Current): after the late binding
2862 listposition = -1 fix, we need to guard against it here and return
2863 null, otherwise we raise an exception (which is swallowed
2864 elsewhere, and breaks datagrid databinding.)
2866 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2868 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
2869 than WM_SYSKEY, don't throw if get something unexpected (#78507)
2871 2006-05-26 Jackson Harper <jackson@ximian.com>
2874 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
2875 values, it's faster and it's all we care about (we don't care if
2876 the names aren't equal).
2877 * KeyboardLayouts.cs: Eliminate some dead code.
2879 * X11Keyboard.cs: Lazy init keyboard detection.
2880 - Cleanup access modifiers a little.
2882 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2884 * XplatUIX11.cs: Once again, attempting to get layout just right.
2886 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2888 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
2889 the sizes of each link section, that will result in sizes that
2890 match DrawString's layout (Fixes #78391)
2892 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
2894 * FileDialog.cs: If AddExtension property is true autocomplete the
2895 extensions in SaveFileDialog correctly. Fixes bug #78453.
2896 Set MyNetwork and MyComputer to "C:\" for windows. This should
2897 fix part 8 of bug #78446 for now.
2899 2006-05-26 Chris Toshok <toshok@ximian.com>
2901 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
2902 invalidate the current row header if we need to, but presumably
2903 we'll invalidate the row corrsponding to the bounds or
2905 (GridHScrolled): switch back to this method, as it's part of the
2907 (GridVScrolled): same.
2908 (OnMouseWheel): hack up something that more or less works. Call
2909 GridHScrolled/GridVScrolled directly, instead of duplicating much
2911 (EnsureCellVisibility): reinstate a bunch of this code, since we
2912 can't just set the scrollbar Value and expect to do all the work
2913 in the ValueChanged handler. Also, Call Update() after scrolling
2914 in one direction so the other XplatX11.ScrollWindow call has the
2915 proper stuff in the proper places.
2916 (EditCell): set is_editing to true before calling .Edit.
2918 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
2919 don't bother comparing first.
2920 (OnKeyPress): call grid.ColumnStartedEditing before calling
2921 base.OnKeyPress. this will set is_changing and invalidate the row
2922 header if necessary.
2923 (ProcessKeyMessage): for WM_CHAR messages, call
2924 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
2927 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
2928 it's done in the DataGrid.
2929 (NextState): call grid.ColumnStartedEditing, which takes care of
2930 invalidating the row header (and setting is_changing).
2932 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
2933 here. it's done in the DataGrid.
2935 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2937 * Control.cs: allow changing the cursor when the mouse position is
2938 out of bounds but Capture is set.
2939 * LinkLabel.cs: handle the case when the mouse button is pressed on the
2940 linklabel but released somewhere else.
2942 2006-05-25 Jackson Harper <jackson@ximian.com>
2944 * TreeView.cs: When we get focus if there is no selected node make
2946 - Remove some uneeded setup code from Draw.
2947 * TreeNodeCollection.cs: If the tree doesn't have a top node when
2948 a new node is inserted make the new node the top.
2950 * Timer.cs: Use Utc time so that no local time zone stuff needs to
2951 be used (should be faster).
2953 2006-05-25 Chris Toshok <toshok@ximian.com>
2955 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
2956 problem with the last commit.
2958 2006-05-25 Chris Toshok <toshok@ximian.com>
2960 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
2961 need the invalidate call here, while scrolling right-to-left via
2962 the left arrow key (i.e. moving the editing cell while scrolling).
2964 * DataGrid.cs (.ctor): remove the initialization of
2965 ctrl_pressed/shift_pressed. We no longer track them using key
2966 up/down handlers, but by using Control.ModifierKeys. Also, switch
2967 to using ValueChanged handlers on the scrollbars instead of
2968 Scrolled event handlers. This simplifies a bunch of the scrolling
2970 (GridHValueChanged): rename from GridHScrolled, and change it to
2971 work with the new event args.
2972 (GridVValueChanged): same.
2973 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
2974 (OnMouseWheel): actually scroll the datagrid. Don't change the
2976 (ProcessGridKey): correct all the keyboard navigation stuff I
2977 could find. Ctrl up/down/left/right/home/end work now.
2978 (EnsureCellVisibility): correct method name spelling. Also,
2979 simplify this a touch by not explicitly calling the
2980 ScrollToRow/ScrollToColumnInPixels methods. We just set the
2982 (OnKeyUpDG): no need for this method now.
2984 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2986 * LinkLabel.cs: display the OverrideCursor when hovering the label.
2989 2006-05-25 Chris Toshok <toshok@ximian.com>
2991 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
2994 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
2996 * Application.cs: Moved setting of is_modal and closing to before
2997 we create the control, to allow the event handlers called as a
2998 result of creation affect closing. Also removed Gonzalo's previous
2999 change to setting DialogResult, the behaviour has been moved to
3002 - ShowDialog(): Removed explicit creation of the form, let RunLoop
3004 - ShowDialog(): If no dialog result is set, we need to return Cancel
3005 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3006 the close is cancelled
3008 2006-05-25 Jackson Harper <jackson@ximian.com>
3010 * StatusBar.cs: We only need to update the sizes of the other
3011 panels when we have auto size contents. Also we are only updating
3012 the contents of the panel, not the borders, so compensate for the
3013 border width (TODO: get this width from the theme somehow).
3014 * TreeView.cs: Scrollable is true by default
3015 - Use invalidate instead of refresh where needed
3016 - Factor the scrollable value into scrollbar updating
3017 - Update the scrollbars if the Scrollable property is altered
3018 - Update the selected node if its ImageIndex is changed
3019 - Handle null nodes in UpdateNode (mainly so we don't have to
3020 check if selected is null when updating it
3021 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3022 are factored into the visible count
3023 - Use VisibleCount for clarity in the code
3024 - When the font is changed we need to recurse through all the
3025 nodes and invalidate their sizes
3027 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3029 * Application.cs: set the DialogResult to fixed when the main form is
3030 hidden or destroyed while being modal.
3032 2006-05-25 Miguel de Icaza <miguel@novell.com>
3034 * Theme.cs: Use Tangoified messagebox icons.
3036 (GetSizedResourceImage): Also cope with width = 0 and do not
3037 trigger a warning in that case (0 means "give me your icon from
3038 the resouce, no special size needed).
3040 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
3042 * Application.cs: Leave runloop if the the main modal form is
3043 hidden (fixes #78484)
3045 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
3047 * BindingContext.cs : reject null datasource in Contains() and
3049 * CurrencyManager.cs : check data_member validity when data_source
3050 is dataset. When it is late binding, the initial position is -1.
3052 2006-05-24 Jackson Harper <jackson@ximian.com>
3054 * TreeNodeCollection.cs: Dont't recalculate the visible order on
3055 inserted nodes that aren't visible. This changes the
3056 max_visible_order which confuses scrollbar settings.
3057 - Use the enumerator to get the prev node instead of duplicating
3059 * TreeView.cs: Use new method for setting scrollbar values
3060 - Don't set the bounds every time the scrollbar is updated
3061 - When updating below the root node use an invalidate instead of a
3062 refresh to prevent the child controls (scrollbars) from being
3063 refreshed. (UpdateBelow still needs to be reworked anyways).
3064 - Reenable SetBottom now that visible orders are set correctly,
3065 added some debug code incase we ever get bad values there again.
3066 - Set the scrollbar max to 2 less then the max value, this
3067 compensates for the max value being one above the node count, and
3068 for scrollbars adding one extra "notch".
3069 - When drawing image nodes if there is an imagelist we draw the
3070 first image in the list if the supplied image index is out of the
3071 image list's bounds.
3073 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3075 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
3076 we receive a size change from the WM (Fixes #78503)
3078 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3080 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
3081 rectangle (Fixes #78501)
3083 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
3086 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
3088 - Fixed MouseMove to no longer switch pressed state unless the left
3089 mouse button is pressed. Atsushi provided the original patch (#78485)
3091 2006-05-24 Jackson Harper <jackson@ximian.com>
3093 * ScrollBar.cs: New internal methods that allow us to change a
3094 couple values on the scrollbar (the most common case is maximum
3095 and large change) without getting multiple invalidates.
3097 2006-05-24 Chris Toshok <toshok@ximian.com>
3099 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3100 (Edit): save off the original state in oldState, and set
3101 grid.is_editing to true.
3102 (OnKeyDown): abort editing if escape is pressed. also, call
3103 NextState if space is pressed.
3104 (OnMouseDown): call NextState.
3105 (NextState): factor out shared code from OnKeyDown and OnMouseDown
3106 here. Also, only invalidate the row header once (on the initial
3107 is_changing switch) to save on redraws.
3109 2006-05-24 Chris Toshok <toshok@ximian.com>
3111 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3112 if the value in the cell is different than it was before. This
3113 keeps us from triggering a layout when we move around a datarid
3114 with a highlighted cell.
3115 (Edit): suspend layout when creating/positining the text box, and
3116 resume passing false so we don't ever actually re-layout.
3117 (ReleaseHostedControl): same.
3118 (EnsureTextBox): reformat slightly, and set WordWrap to false.
3120 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3121 control-key sequences should go to the datagrid - remove that
3122 lock. Also, modify the conditions under which we move between
3123 cells when moving the cursor within a cell, and remove the "this"
3124 and "base" from field accesses. We weren't even consistent, given
3125 they all were in the base class.
3127 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
3129 * Binding.cs : (.ctor)
3130 An obvious NRE fix for BindingTest.CtorNullTest().
3132 2006-05-23 Chris Toshok <toshok@ximian.com>
3134 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3135 them between lines. This fixes some quirks editing cells in the
3138 2006-05-23 Jackson Harper <jackson@ximian.com>
3140 * TreeView.cs: Use begin/end update when doing expand/collapse all
3141 so that we don't get flicker on the scrollbar.
3143 2006-05-23 Jackson Harper <jackson@ximian.com>
3145 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
3146 treenode calculations to be independant of the painting code. To
3147 do this nodes track a visible order which is calculated by the
3149 - Call new methods for expanding/collapsing nodes. These methods
3150 use scrollwindow so we don't have to update everything below the
3152 * TreeView.cs: Refactored drawing and scrolling code. We don't
3153 need to update nodes when drawing anymore or calculate scrollbar
3155 - Added new methods for expanding/collapsing nodes. These methods
3156 use ScrollWindow so as to not have to redraw all the nodes below.
3157 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3158 we add/remove nodes or sort.
3159 - Handle removing the selected and the top node properly.
3161 2006-05-23 Chris Toshok <toshok@ximian.com>
3163 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3164 maybe this should actually happen in the datagrid code?
3165 (EndEdit): no need to invalidate anything, given that
3166 ReleaseHostedControl causes the datagrid to relayout, which
3167 invalidates everything anyway.
3169 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3171 (set_SelectionBackColor): call InvalidateSelection instead of
3173 (set_SelectionForeColor): same.
3174 (BeginEdit): Flesh this out a bit.
3175 (CancelEditing): only do any of this if we're editing/adding.
3177 (OnMouseDown): there's no need to cancel editing here, it's done
3179 (SetCurrentCell): only invalidate the current row header if it's a
3180 different row than the new one.
3181 (ShiftSelection): fix this to work like MS does.
3182 (ResetSelection): factor out the invalidation of selected_rows to
3183 InvalidateSelection.
3184 (SetDataSource): cancel any editing that's going on.
3186 * DataGridColumnStyle.cs
3187 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3188 call the non-interface version.
3190 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3191 header rectangle with the clip rectangle so we don't redraw the
3192 entire header for just a small area. Gets rid of the last flicker
3193 when horizontally scrolling.
3194 (DataGridPaintRow): same.
3196 2006-05-23 Mike Kestner <mkestner@novell.com>
3198 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3199 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
3200 poorly placed checkbox on the MS control. Fixes Alex's unfiled
3201 Critical bug report.
3203 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3205 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3206 and this fixes #78493
3208 2006-05-23 Miguel de Icaza <miguel@novell.com>
3210 * Theme.cs (GetSizedResourceImage): Scale images if the proper
3213 * FileDialog.cs: Do not change the background for the side bar as
3214 it wont work nicely with the theme, and also reduces the artifacts
3215 in rendering the icons (which I want to fix too).
3217 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3218 resources, not resgen resources.
3220 (PlatformDefaultHandler): Pull images using the new API.
3222 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
3224 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3225 a reference to the hwnd and will not remove it unless there are
3226 no pending exposures (fixes #78341)
3227 * XplatUI.cs: Improved debug
3229 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
3231 * MenuAPI.cs : don't handle OnClick event when it was not the left
3232 button. Fixed bug #78487.
3234 2006-05-23 Mike Kestner <mkestner@novell.com>
3236 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3237 prefer submenus to the top menu for item lookup, to avoid popping down
3240 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
3242 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3243 Graphics.FillRectangle as the visual results are really bad (even
3244 on win). We now draw perfect arrows (and perfect shadows when the
3245 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3246 Pen.DashPattern to draw the dots of each line.
3248 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
3250 * FileDialog.cs: Update the filename combobox when navigating through
3251 the ListView with the cursor keys. Fixes part 7 of bug #78446.
3253 2006-05-22 Mike Kestner <mkestner@novell.com>
3255 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3258 2006-05-22 Mike Kestner <mkestner@novell.com>
3260 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3261 requests. Fix a misspelled parameter and a copy paste exception error
3264 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
3266 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3267 to get the same width/height (5/13) on X11 as the default font has on
3268 win32. This means that our DefaultFont emSize is smaller than the
3269 the MS SWF equivalent (even thought the width/height stays the same)
3271 2006-05-20 Jackson Harper <jackson@ximian.com>
3274 * MdiWindowManager.cs:
3275 * InternalWindowManager.cs: Make sure to use the border width from
3278 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
3280 * PrintDialog.cs: Implements printer details
3282 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
3284 * FileDialog.cs: Added focus handling for PopupButtonPanel.
3285 Fixes part 1 and 2 of bug #78446
3287 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
3289 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3290 instead of sticking to the first ever calculated value
3292 2006-05-19 Mike Kestner <mkestner@novell.com>
3294 * ComboBox.cs: fix mouse motion selection to use MousePosition and
3295 PointToClient, since Capture is set. Fixes #78344.
3297 2006-05-19 Mike Kestner <mkestner@novell.com>
3299 * ListView.cs: match MS behavior in Details view where items are not
3300 drawn if Columns.Count == 0.
3301 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3302 Use a separate pen to draw the check, since changing the width affects
3303 the box as well. Fixes #78454.
3305 2006-05-18 Miguel de Icaza <miguel@novell.com>
3307 * ListView.cs: ArgumentOutOfRangeException, single versions of the
3308 exception should throw the name of the invalid argument.
3310 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3311 there are no files listed.
3313 2006-05-18 Jackson Harper <jackson@ximian.com>
3315 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3318 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3320 * Control.cs: Brought back our old UpdateZOrder method as a private
3321 function and switched our calls from UpdateZOrder to the new one.
3322 This fixes the Paint.Net canvas disappearing bug.
3324 2006-05-18 Jackson Harper <jackson@ximian.com>
3327 * ThemeWin32Classic.cs:
3328 * InternalWindowManager.cs: Move the drawing into the theme,
3329 expose everything the theme should need from the window manager.
3331 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3333 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
3334 from the call to NativeWindow to avoid walking up the parent chain
3335 further than needed (speeds up setting cursors and avoids setting
3336 the wrong cursor if a parent has another cursor defined)
3337 * Cursor.cs: When loading an icon as cursor, MS uses the center of
3338 the icon as hotspot, not what's contained as hotspot in the icon
3339 file. This fixes the perceived drawing offset seen with Paint.Net
3341 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3344 - Store the calculated rectangle in Hwnd object and use it when
3345 setting the client size
3346 - Force Toolwindows to always be type Dock, to ensure they're on top
3348 2006-05-18 Mike Kestner <mkestner@novell.com>
3350 * ComboBox.cs: first pass at ComboBox rework. Layout is more
3351 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
3352 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
3353 Substantial refactoring to remove confusing nested classes. Coding
3354 standard and Get+Set->property refactorings. Shift to index based
3355 highlighting in ComboListBox instead of constantly using IndexOf and
3356 Items[]. Add invalidations on resize for DropDownList to fix ugliness
3357 in FileDialog growth. Draw borders manually since Simple mode needs
3358 to look like two independent controls. Make listbox border
3359 conditional to DropDownStyle. Improved OwnerDraw support.
3361 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
3363 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
3364 Don't set the disposed graphics to null, so we can throw the "right"
3365 exception if the graphics is reused later (added a flag to avoid
3366 double disposing). Some behaviours are different under 2.0 and are
3367 filled under bug #78448.
3369 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
3371 * Control.cs: When double-buffering is enabled, we need to reset
3372 our graphics context between paint calls. Otherwise, any
3373 transformations and other alterations on the context will
3374 become cumulative (#77734)
3376 2006-05-18 Mike Kestner <mkestner@novell.com>
3378 * ListView.cs: do focused item selection like MS on clicks.
3379 Rework focus handling for ItemControl so LostFocus invalidates as
3381 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3382 the ListView ItemControl has focus.
3384 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
3386 * XplatUIX11.cs: If client_window ends up being width or height zero
3387 due to border settings, move it off window inside whole_window (#78433)
3389 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3391 * Mime.cs: Shrink the mime file cache correctly.
3393 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
3395 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3397 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3399 * XplatUIX11.cs (AddExpose): More sanity checks
3401 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3404 - AddExpose: Don't add expose ranges outside the size of our
3406 - Cast opacity values to Int32 to avoid crashes with certain
3408 - Added disabled code paths that protect against illegal cross-
3409 thread painting (Developers.exe)
3411 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3413 * ProgressBar.cs: Invalidate the control when it's resized
3414 since block size is based on control size. (#78388)
3416 2006-05-16 Miguel de Icaza <miguel@novell.com>
3418 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3419 of setting the incoming argument to the "reset" value, we set the
3420 this.datamember to string.empty (before we were invalidating the
3425 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3427 * Form.cs: Only apply transparency settings after the form
3428 is created. (Fixes #77800)
3430 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3432 * ApplicationContext.cs: Grab the HandleDestroyed event so
3433 we know when to fire OnMainFormClosed
3435 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3437 * Application.cs: Introduced sub-class to allow tracking of
3438 threads and centralized triggering of the event mess for
3439 ThreadExit, AppExit, etc.. (#76156)
3441 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
3444 - Do not return a null icon index value for a mime subclass.
3445 Instead try the main mime type class too.
3446 - Seems that some newer distributions don't have a link to some
3447 gnome default icons anymore. So check the default gnome dir too.
3450 2006-05-16 Jackson Harper <jackson@ximian.com>
3452 * MdiClient.cs: Don't paint the parent background image if we have
3453 our own background image.
3455 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
3458 - PerformLayout: Do not shrink space filled by DockStyle.Fill
3459 controls, all filled controls are supposed to overlap (#78080)
3460 - UpdateZOrder is supposed to update the control's z-order in the
3461 parent's z-order chain. Fixed to behave like that
3462 - BringToFront: Removed obsolete code
3463 - SendToBack: Simplyfied
3464 - SetChildIndex: Trigger layout calculations when Z-order changes
3465 since layout is done by z-order
3467 2006-05-16 Chris Toshok <toshok@ximian.com>
3469 [ fixes bug #78410 ]
3470 * DataGrid.cs (set_AlternatingBackColor): use
3471 grid_drawing.InvalidateCells instead of Refresh().
3472 (set_BackColor): call grid_drawing.InvalidateCells.
3473 (set_BackgroundColor): use Invalidate instead of Refresh.
3475 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
3476 invalidate the cell area.
3478 2006-05-15 Chris Toshok <toshok@ximian.com>
3480 [ fixes bug #78011 ]
3481 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
3482 on to DataGridPaintRow.
3483 (DataGridPaintRow): take a clip argument, and only draw the cells
3484 which intersect it. same with the not_usedarea.
3486 * Theme.cs (DataGridPaintRow) add @clip parameter.
3488 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
3489 XplatUI.ScrollWindow.
3490 (ScrollToRow): same.
3492 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
3493 with last column which was causing a gray swath to appear with the
3494 XplatUI.ScrollWindow code.
3496 2006-05-15 Chris Toshok <toshok@ximian.com>
3498 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
3499 use XplatUI.ScrollWindow.
3500 (VerticalScrollEvent): use XplatUI.ScrollWindow.
3502 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3504 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
3506 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3508 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
3509 file since there are no equivalent X11 cursors
3511 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3513 * MonthCalendar.cs : DateTimePicker should reflect selected date
3514 on mouse*up*, not mouse*down*. Fixed originally reported part of
3517 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
3519 * TabControl.cs : When argument index is equal or more than tab
3520 count, just ignore. Fixed bug #78395.
3522 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
3524 * Control.cs: Dispose all child controls when control is diposed (#78394)
3526 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3528 * ColorDialog.cs: Finally it is possible to select the color with
3531 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3533 * PrintDialog.cs: Fix typo
3535 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
3537 * PrintDialog.cs: PrintDialog is not resizable
3538 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
3539 color. Made some ToolBar drawing methods protected virtual.
3541 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
3543 * PrintDialog.cs: Implementation of the PrintDialog
3545 2006-05-12 Chris Toshok <toshok@ximian.com>
3547 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
3548 thumb, instead use MoveThumb. This has the side effect of making
3549 most of the other thumb moving machinery use MoveThumb as well.
3550 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
3551 need to actually invalidate the rectangle where the new thumb will
3553 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
3554 We force an Update() after, so it's not as fast as it could be,
3555 but at least there's zero flicker and no droppings.
3556 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
3557 (UpdateThumbPos): add another argument (dirty), which says whether
3558 or not to calculate/add dirty regions which we later invalidate.
3559 For cases where we know we're going to use MoveThumb, we pass
3560 false for this. Otherwise, pass true.
3562 2006-05-12 Jackson Harper <jackson@ximian.com>
3564 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
3567 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
3569 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
3570 and GetClipRegion methods and UserClipWontExposeParent property.
3571 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
3572 overriding UserClipWontExposeParent property, setting to false, since
3573 Win32 handles the required expose messages to draw our clipped parent
3575 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
3576 PaintEventStart to set the user clip region if set.
3578 - Now internally tracking the Region for the control since we need to
3579 store it if the handle is not yet created and only set it when it
3580 becomes created. Before setting the region forced handle creation
3581 - Added code to draw the parents underneath a user-clipped region
3582 * Hwnd.cs: Added UserClip property
3584 2006-05-12 Chris Toshok <toshok@ximian.com>
3586 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
3587 (set_Maximum): same.
3588 (set_Minimum): same.
3589 (set_SmallChange): same.
3590 (OnMouseUpSB): remove the call to refresh when releasing the
3591 thumb. We shouldn't need it.
3593 2006-05-12 Miguel de Icaza <miguel@novell.com>
3595 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
3596 AutoSize set to None, we do not need to relayout everything, we
3597 just need to invalidate the current region.
3599 (Draw): Do not draw the entire ClientArea, just redraw the
3600 clip area being passed.
3602 * MdiClient.cs: Make MdiClient constructor with the Form argument
3605 2006-05-12 Jackson Harper <jackson@ximian.com>
3607 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
3608 parents background image, but strangely not their own.
3609 - (DrawStatusBarPanel): Take into account horizontal alignment
3610 when drawing the strings and icons.
3612 2006-05-12 Mike Kestner <mkestner@novell.com>
3614 * ListBox.cs: avoid invalidations for focus when the collection is
3617 2006-05-12 Chris Toshok <toshok@ximian.com>
3619 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
3620 invalidate the entire thumb area. Call InvalidateDirty which
3621 limits the redraw to the thumb itself and surrounding pixels.
3623 * XplatUIX11.cs (ScrollWindow): optimize copying.
3625 2006-05-12 Chris Toshok <toshok@ximian.com>
3627 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
3628 Figure out the positioning/layout in a single pass instead of
3629 multiple recursive invocations. Speeds up the initial display of
3630 the data grid. Also, make many things private that were
3631 originally public but unused outside this class.
3633 2006-05-11 Jackson Harper <jackson@ximian.com>
3635 * MdiClient.cs: Improved layout code.
3637 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
3639 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
3642 2006-05-11 Chris Toshok <toshok@ximian.com>
3644 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
3645 union of that will always be {0,0,width,height}.
3647 2006-05-11 Jackson Harper <jackson@ximian.com>
3649 * Form.cs: Match MS's DefaultSize for forms (they must have
3650 changed the size in sp2).
3652 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3654 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
3656 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
3658 * TextControl.cs : Fixed bug #78109. This incorrect position
3659 comparison caused crash on automatic line split.
3660 * TextBoxBase.cs : reduce duplicate code.
3662 2006-05-10 Jackson Harper <jackson@ximian.com>
3664 * MdiClient.cs: Active form is only sent to the back when using
3665 the Next form functionality, when a form is clicked the current
3666 active shouldn't be sent to the back.
3667 - Layout the mdi windows when the container is first made visible.
3668 * Form.cs: Give the MdiClient a ref to the containing form when we
3671 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3673 * LinkLabel.cs : link_font could be uninitialized, so populate one
3674 before actual use. Fixed bug #78340.
3676 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
3678 * XplatUIX11.cs : clipboard format native value is IntPtr.
3681 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3684 - Instead of showing context menus directly we send WM_CONTEXTMENU,
3685 which is passed up the parent chain by DefWndProc
3686 - We now handle WM_CONTEXTMENU to display any menu, or pass it
3687 to DefWndProc (#77956)
3688 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
3690 2006-05-10 Jackson Harper <jackson@ximian.com>
3692 * MdiClient.cs: We need to remove the controls from the mdi
3693 collection, when we close the window.
3694 * MdiWindowManager.cs: Special handling of closing mdi windows.
3695 * InternalWindowManager.cs: Make the close method virtual so the
3696 mdi window manager can handle it specially.
3698 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
3701 - Recalculate grid when the data source has changed
3702 - Matches styles provided by user from all data sources types
3703 * DataGridTableStyle.cs: For columns that provided by the user set the
3704 with the preferred value is there was unassigned.
3705 * CurrencyManager.cs: throw OnItemChanged event
3707 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3709 * PictureBox.cs: Don't animate until handle is created. Start animation
3710 when handle is created.
3712 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3714 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
3716 * XEventQueue.cs: We don't need to provide the extra info
3718 2006-05-10 Jackson Harper <jackson@ximian.com>
3720 * MdiClient.cs: If the mdi clients parent form has a background
3721 image set, we draw that background image for the mdi area's
3724 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3726 * TextBoxBase.cs: Set IBeam cursor (#78347)
3728 2006-05-10 Mike Kestner <mkestner@novell.com>
3730 * ToolBar.cs: fix some text padding issues with ButtonSize
3731 calculation. Update the default size to match MS documentation.
3732 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
3733 button size. Fixes #78296.
3735 2006-05-10 Mike Kestner <mkestner@novell.com>
3737 * ListBox.cs: use is_visible for scrollbar positioning in case the
3738 control isn't on screen yet. Fix off by one with Right vs Width
3739 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
3741 2006-05-10 Jackson Harper <jackson@ximian.com>
3743 * X11Dnd.cs: Drop to a control with another control on top of it.
3744 * ToolBar.cs: Work on a copy of the buttons list, so that it can
3745 be modified in click handlers. TODO: Look for similar problems in
3748 2006-05-09 Jackson Harper <jackson@ximian.com>
3750 * Form.cs: Window managers need the old window state when setting
3752 * InternalWindowManager.cs: Allow the base mdi window manager to
3753 handle more of the MDI only stuff (like maximize buttons).
3754 * MdiWindowManager.cs: Fix some snafus in changing the window
3755 state. Add all the menu functionality, for both popup and
3757 * MdiClient.cs: When a new form is selected the currently
3758 activated form is sent to the back, this matches MS.
3759 - Implement a new method to activate the next mdi child window.
3761 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3764 - Added new InternalCapture method to allow controls to prevent
3765 the capture behaviour on the click handlers
3766 - Switched to use InternalCapture
3768 - Using InternalCapture to prevent mouse captures from being released
3769 on mouse button release (Fixes #78100)
3770 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
3771 returns Form borders if a caption is present. (Fixes #78310)
3773 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3775 * TreeNode.cs: Changed serialization .ctor to not require every field
3776 to be present. (#78265)
3777 * OwnerDrawPropertyBag.cs: Added serialization .ctor
3779 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
3781 * MimeIcon.cs: for is faster than foreach for strings.
3783 2006-05-05 Mike Kestner <mkestner@novell.com>
3785 * CheckedListBox.cs: update check handling code to not use selected.
3786 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
3787 behavior for visual feedback, motion response, shift/ctrl handling,
3788 and properly deal with all 4 selection modes. Updates to bounds
3789 handling logic. Add scroll wheel support. [Fixes #77842]
3791 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3794 - Moved adding of Implicit controls into .ctor. That way, subsequent
3795 creation of the controls will not cause them to think they are
3796 toplevel windows (fixes #78200 header problem)
3797 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
3798 - Switched visibility setting of header control to use internal field
3799 to avoid triggering handle creation
3800 - Now checking if handle is created before causing a refresh when items
3801 are added (This makes us now match handle creation time with MS)
3802 * Splitter.cs: Removed loading of private splitter cursor, switched to
3803 Cursors version now that that is loading the right ones
3804 * Cursors.cs: Load proper splitter cursors from resources
3805 * Cursor.cs: Added second method of loading resource cursors for the
3806 VS.Net users amongst us
3808 2006-05-05 Mike Kestner <mkestner@novell.com>
3810 * ListView.cs: give header_control a minimum size based on the
3813 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3815 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
3816 window seems to do that with metacity, so set that type. (#78120)
3818 2006-05-05 Mike Kestner <mkestner@novell.com>
3820 * ListViewItem.cs: fix Details mode checkbox layout bug.
3821 * ThemeWin32Classic.cs: draw a ListView column header for unused space
3822 at the end of the header, if it exists. [Fixes for #78200]
3824 2006-05-04 Jackson Harper <jackson@ximian.com>
3826 * MdiClient.cs: Add a helper property to get the container form.
3827 * MdiWindowManager.cs: We have to make sure to use the menu origin
3828 when drawing the icons and buttons, this fixes maximized window
3829 icons/buttons on win32.
3830 * InternalWindowManager.cs: Reset the restore captions when a
3831 window goes from Maximized to Minimized and vice versa. Move the
3832 DrawMaximizedButtons into the MdiWindowManager source, tool
3833 windows can't be maximized. NOTE: This could use a little
3834 refactoring if time ever permits.
3836 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3838 * TextBox.cs: Add MWFCategoryAttributes
3839 * TextBoxBase.cs: Add MWFCategoryAttributes
3840 * Form.cs: Add MWFCategoryAttributes
3842 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3844 * Control.cs: Add MWFCategoryAttributes
3845 * ScrollableControl.cs: Add MWFCategoryAttributes
3847 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
3849 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
3850 Divider is true. Fix a little glitch in PropertyToolBar
3853 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
3856 - Dispose: Call base.Dispose, this causes the disposed event
3857 to be fired (and probably other, more important stuff)
3858 - SetVisibleCore: Set is_visible to true after creating the
3859 window so that the window still gets created invisible (if
3860 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
3861 to generate a WM_ACTIVE message
3862 * Form.cs: Call Dispose when we want to destroy the window, instead of
3863 just destroying the handle (Dispose will do that for us)
3865 - RootWindow also needs a queue, so we can properly process the
3866 property change events from RootWindow (like Activate)
3867 - Generatic synthetic WM_ACTIVE message when the active window is
3870 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3872 * LinkLabel.cs: Trigger a recalc of our label dimensions when
3875 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3877 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
3878 for determining width and height (image might not be assigned if
3879 we're drawing an imagelist)
3881 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3883 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
3884 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
3886 * Theme.cs: No longer returns hardcoded menu height, instead calls
3888 * Form.cs (OnLoad): Scaling happens before triggering Load events
3891 2006-05-01 Mike Kestner <mkestner@novell.com>
3893 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
3895 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3897 * TextBoxBase.cs: Removed Fixme
3898 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
3900 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3903 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
3904 the rectangle relative to the parent, considering borders. We
3905 don't really want that.
3906 - ScrollWindow: Fixed warning to be more understandable
3907 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
3908 scrollbars and scroll only the visible area
3909 * RichTextBox.cs: Removed debug output
3911 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3913 * NumericUpDown.cs (Text): Just use base
3914 * UpDownBase.cs: Ensure txtView is created before using it
3916 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3918 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
3919 casting to IntPtr to avoid 64bit overflow errors
3921 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3924 - AllowDrop: Don't force handle creation.
3925 - CreateHandle: Added call to tell driver if we're allowed to drop
3927 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3929 * FileDialog.cs: Remember the last directory not only for the
3930 current instance but also for new FileDialog instances.
3932 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3934 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
3935 broke sending async messages
3937 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3940 - ScrollWindow: Fixed method. We finally generate expose events again
3941 for scrolled areas. This was causing 'garbage' when scrolling
3942 textbox and other controls that used ScrollWindow
3943 - Switched from using the regular queue for paint events to the MS
3944 model of 'generating' paint events when the queue is empty.
3945 We use the new XQueueEvent.Paint subclass to store which windows
3947 - AddExpose now takes the x/y/width/height of the exposed area
3948 and inserts the window into the paint queue if not already there
3949 - InvalidateWholeWindow: Switched to use new AddExpose method
3950 - UpdateMessageQueue: Added which queue to monitor for paint events
3951 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
3952 the unlikely case nothing above handles it. We reset the expose
3953 pending states to get them off the queue.
3954 - GetMessage: Now pulls a paint event if no other events are in the
3956 - Invalidate: Switched to new AddExpose method
3957 - PeekMessage: Updated to understand pending paint events
3958 - UpdateWindow: Fixed logic bug. We were only updating if the window
3959 didn't need updating. Also switched to sending WM_PAINT directly,
3961 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
3962 and random access Remove(). The random access is needed to handle
3963 UpdateWindow() where a WM_PAINT is sent directly without accessing
3965 * ScrollBar.cs: Added Update() calls to cause immediate updates to
3966 allow for better feedback when scrolling. Scrollbars are small and
3967 the immediate update should make it 'feel' more responsive without
3968 slowing things down. ScrollBar still needs it's invaliate logic
3969 updated to not always invalidate the whole bar on certain changes.
3971 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3974 (BackColor): if the control does not support a transparent background,
3975 return the default backcolor when the parent backcolor is transparent.
3977 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
3979 * Application.cs: Updated to new StartLoop/GetMessage API
3980 * RichTextBox.cs: Provide some output on RTF parsing errors
3981 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
3982 new queue_id argument to GetMessage and PeekMessage to allow faster
3983 handling of per-thread queues in drivers.
3984 * Hwnd.cs: Added Queue tracking and property
3985 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
3986 * XEventQueue.cs: Added thread trackingA
3987 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
3989 - Implemented new per-thread queue
3990 - GetMessage: Fixed return/break behaviour on several cases. We were
3991 returning stale messages in some cases, instead of just processing
3994 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
3996 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
3998 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
4000 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4001 fixed off-by-one comparisons between Width/Height and Right/Bottom.
4003 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
4005 * PropertyGridView.cs: Fix drop down width.
4007 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4009 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4010 a mess in DrawToolBar, so I removed one of them.
4012 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
4014 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4015 needed (clip). Otherwise we get artifacts.
4017 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4019 * FixedSizeTextBox.cs: Added constructor to allow specifying which
4021 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4022 and switched FixedSizeTextBox to only be fixed vertical (#78116)
4023 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4024 if it matches the scale base font (avoids unneeded scaling)
4026 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4028 * X11DesktopColors.cs: One gtk_init_check should be enough
4030 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4032 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4035 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
4038 - Generate OnTextChanged for Backspace even if we're only deleting
4039 the current selection
4040 - When setting the Text property, only select all text if the
4041 control does not have focus when it is being set. Otherwise
4042 just place the cursor at the beginning of the control
4044 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
4046 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4047 Added a little helper to draw PropertyGrid ToolBar with a different
4048 border and a different BackColor.
4049 * PropertyGrid.cs: Some background parts didn't get painted with the
4050 correct background color. Added a class that helps us to draw the
4051 correct border for PropertyGridView and a class that helps us to
4052 draw ToolBars with a different backcolor
4053 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4055 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
4057 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4058 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4060 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4062 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4063 into the palette entries. Also, since we're working on a copy
4064 we needed to copy the palette back onto the bitmap.
4065 * Cursor.cs: Same fix as XplatUIWin32.cs.
4067 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4069 * ImageListStreamer.cs: Need to read the var (or we're off)
4071 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
4073 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
4074 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4075 TextBoxBase.cs: Unused var fixes
4076 * AxHost.cs: Small 2.0 fix
4077 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
4078 as it seems that is what at least Metacity expects. This will make
4079 icons show up on 64bit platforms. We still have some 64bit size
4080 issues, though, since the startup app window size still won't match.
4082 2006-04-25 Mike Kestner <mkestner@novell.com>
4084 * *.cs: cleanup newly reported exception var unused warnings.
4086 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4088 * ThemeWin32Classic.cs: Button image alignment now matches exactly
4091 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4093 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4094 image. The image position is always the same, no matter if the
4095 button is pressed or not.
4097 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
4099 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4100 selection and set the correct filename for SaveFileDialog.
4101 Patch by Emery Conrad.
4103 2006-04-24 Mike Kestner <mkestner@novell.com>
4105 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4106 check for item.X outside the ClientRect instead of item.Y. Fixes
4109 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4111 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4112 trust that value blindly and do some sanity check. Fixes bug #77814.
4114 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4116 * ImageListStreamer.cs: save the mask as a 1bpp image.
4118 2006-04-21 Mike Kestner <mkestner@novell.com>
4120 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4121 pass Checked and Indeterminate to the Theme Engine. Improve
4122 encapsulation with ListBox.
4123 * ListBox.cs: Keep a StringFormat instead of calculating it every item
4124 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4125 nested types. Move all CheckState functionality to CheckedListBox.
4126 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
4127 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
4128 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4129 single base list. Fix scrollbar sizing and placement to mirror MS.
4130 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4132 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4133 for CheckedListBox by using new DrawItemState info. Center the
4134 checkboxes on the items. Use new StringFormat property.
4136 2006-04-18 Jackson Harper <jackson@ximian.com>
4138 * Form.cs: MdiChildren don't do default locations the same way as
4139 regular forms. This prevents a crash when trying to position the
4142 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
4144 * PropertyGridTextBox.cs: Formatting, copyright
4145 * PropertiesTab.cs: Formatting
4146 * PropertyGrid.cs: Formatting
4147 * PropertyGridView.cs: Formatting, fix drop down, enabled double
4148 click toggling of values
4150 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
4152 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4153 * Control.cs (.ctor): verify_thread_handle is static, don't reset
4154 every time a control is created
4155 * Application.cs: Removed obsolete EnableRTLMirroring method
4157 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
4159 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4160 SelectedIndex to -1. Fixes bug #78121.
4162 2006-04-17 Jackson Harper <jackson@ximian.com>
4164 * Binding.cs: Handle null values for Current and BindingContext.
4165 This occurs when binding is a little delayed.
4166 * CurrencyManager.cs: return null for Current when there are no
4168 - Hookup to the listchanged event on the DataView and update
4169 bindings when the list is changed. This fixes late binding of
4172 2006-04-17 Jackson Harper <jackson@ximian.com>
4175 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4178 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
4180 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4182 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4183 with the correct ButtonState
4185 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
4187 * XplatUIX11.cs: Improved distinguishing between window types to
4188 tell the WM a type closer to what the app wants (Fixes #78107)
4190 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4192 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4195 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
4197 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4198 drawing code to reflect the size grip changes
4200 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4202 * ImageListStreamer.cs: fix handling of the mask that follows the main
4203 bitmap when deserializing and serialize it properly. The generated mask
4204 should better be a 1bpp image, but I'll do that later.
4206 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4208 * FileDialog.cs: Show something in the DirComboBox on *nix if the
4209 path doesn't fit into some of our Current.Places
4211 2006-04-13 Jackson Harper <jackson@ximian.com>
4213 * ComboBox.cs: Use borders instead of drawing our own decorations,
4214 try to obey correct rules for heights.
4217 * ThemeClearLooks.cs:
4218 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4219 this is now handled by borders.
4220 - Remove unused DrawListBoxDecorationSize method.
4222 2006-04-13 Mike Kestner <mkestner@novell.com>
4224 * MenuAPI.cs: null guarding for the disbled click check fixes crash
4227 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
4229 * ThemeWin32Classic.cs:
4230 - Fixed CPDrawStringDisabled
4231 - Corrected drawing of disabled menu items
4232 - Fixed drawing of disabled radio buttons (bug #78095)
4233 - Draw check in a disabled CheckBox with color ControlDark
4235 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4237 * Form.cs: Use the provided width when calculating the menu size;
4238 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4239 and ClientSize.Width won't be updated yet
4240 * Application.cs: Use Visible instead of Show() to make form visible,
4241 this way we create the handle later and menusize is considered
4243 2006-04-12 Mike Kestner <mkestner@novell.com>
4245 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4248 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4250 * TextBox.cs: Implemented context menu
4252 2006-04-12 Mike Kestner <mkestner@novell.com>
4254 * ListView.cs: implement box selection. fixes #77838.
4255 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4257 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4259 * XplatUIX11.cs: Added setting of window type when transient window
4260 is created (metacity would move it otherwise)
4261 * X11Structs.cs: Added WINDOW_TYPE atoms
4262 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4263 background (the control is Opaque but still wants transparent
4266 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4268 * Control.cs: Added OnPaintBackgroundInternal to allow controls
4269 that set Opaque but don't mean it (like all ButtonBase-derived
4270 controls) to still draw their background
4271 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4274 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4276 * Control.cs (PaintControlBackground): Set the graphics object
4277 on our PaintEvent to null to prevent it from being disposed
4278 when the PaintEvent gets disposed
4280 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
4282 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4283 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4285 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
4288 - Added transparency check to BackColor property. Transparent
4289 backgrounds are only allowed if the control styles permit it
4290 - Added recursive painting of parent control background and
4291 foreground if a control with a transparent backcolor is drawn
4292 (Thanks to Tim Ringenback for providing his 'hack' as a base
4293 for this patch) Fixes #77985 and #78026.
4294 - Added Opaque style check before calling OnPaintBackground, no
4295 need to draw the background if the control is opaque
4296 - Removed ControlAccessibleObject owner variable (inherited from
4297 base, no need to define again)
4298 - Added some documentation links explaining the drawing events
4301 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4303 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4304 that the affected control is the located at the left border of our
4305 parent (Fixes #77936)
4307 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4309 * TextBoxBase.cs: When rendering disabled or readonly controls,
4310 draw the background with 'Control' instead of 'Window' color as
4311 long as the user hasn't specifically set a color
4313 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4315 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4316 since that won't be updated if the user types text (only if it's
4317 programatically set)
4319 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4321 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4322 layout changes do to app-triggered resizes will have the proper
4323 display rectangle for layout
4325 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
4327 * ThemeWin32Classic.cs:
4328 - Make use of the SystemBrushes and SystemPens wherever possible
4329 - Corrected some highlight colors
4330 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4332 * Theme.cs: Added Empty field to CPColor struct
4334 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
4336 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4337 is displayed when calculating the display rectangle. Thanks to Mike
4338 for teaching me the err of my ways.
4340 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
4342 * ScrollableControl.cs:
4343 - Rewrote DisplayRectangle code, now returning the proper x/y coords
4344 (instead of 0,0) and we now return the real width/height instead of
4345 just the clientrectangle, adjusted for padding. The rectangle is
4346 now cached and created by the new CalculateDisplayRectangle method.
4347 - Created new CalculateDisplayRectange method, which basically does
4348 what get_DisplayRectangle() did originally, but now using the
4349 right edge instead of DisplayRectangle to determine the size of
4351 - get_Canvas(): Fixed it to properly calculate canvas for
4352 right/bottom controls which seem to be placed to the right/bottom
4353 of any controls that have a fixed location
4354 - Removed TODO that's taken care of
4355 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4356 and SetDisplayRectLocation according to new MSDN2 docs
4357 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4358 event when that is called, this is added for compatibility
4359 - ScrollControlIntoView(): Implemented.
4360 - Switched scrollbars to be implicit, they shouldn't be selectable
4361 * ContainerControl: Now that ScrollControlIntoView is implemented, we
4362 call it when the active control is set/changed
4363 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4364 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4365 implicit_control variable (used for native Win32 message generation)
4366 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
4367 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4368 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4369 * XplatUIStructs.cs: Added ScrollBarCommands enum
4371 2006-04-10 Jackson Harper <jackson@ximian.com>
4374 * CheckedListBox.cs:
4381 * PrintPreviewControl.cs:
4387 * UpDownBase.cs: Fixup base event overrides.
4389 2006-04-06 Mike Kestner <mkestner@novell.com>
4391 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4392 all user-initiated value changes to min <= value <= max-thumbsz+1.
4393 (set_Value): check for vert/horiz when calculating new thumb position.
4394 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4396 (OnMouseMoveSB): refactor the thumb dragging code and refine
4397 invalidation logic to reduce flicker.
4398 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4399 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4400 (UpdateThumbPosition): small code readability cleanup
4402 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
4404 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4407 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4409 * ThemeNice.cs: Use a better graphics effect when a button is pressed
4411 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
4413 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4414 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4415 This dramatically reduces the number of Pen.Dispose calls.
4416 Where possible call ResPool methods only once instead of calling it
4417 over and over again (for example for the same color).
4419 2006-04-06 Mike Kestner <mkestner@novell.com>
4421 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4422 Also remove an unused private field on the collection. Fixes #77972.
4424 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4426 * ThemeNice.cs: Added ToolBar drawing code
4428 2006-04-06 Mike Kestner <mkestner@novell.com>
4430 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4431 I'm assuming that means we need to look up the toplevel for the
4432 provided control. Fixes the crash trace in #77911 but exposes another
4433 crash in some strange reflection usage in NDocGui.
4435 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
4437 * ThemeNice.cs: Gave it a little silver touch and added Images
4439 * FontDialog.cs: FontDialog is not resizable
4440 * FileDialg.cs: Added SizeGripStyle.Show
4442 2006-04-05 Jackson Harper <jackson@ximian.com>
4444 * KeyboardLayouts.cs: Remove warning.
4446 2006-04-05 Jackson Harper <jackson@ximian.com>
4448 * Control.cs: Enable OnPaintInternal so we can use it for drawing
4449 all of our controls instead of Paint +=.
4464 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4465 use OnPaintInternal. Remove Width/Height and Visible checks in
4466 paint handler, this is done at a higher level now.
4467 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4468 * PaintEventArgs.cs: Add a handled flag so controls that don't
4469 want anymore painting after OnPaintInternal can make sure OnPaint
4472 2006-04-05 Mike Kestner <mkestner@novell.com>
4474 * Form.cs: fix the menu WndProc hacks to respect the native enabled
4475 state of the form, so that we don't process events when Modal dialogs
4476 are up. Fixes #77922.
4478 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
4480 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
4483 2006-04-05 Mike Kestner <mkestner@novell.com>
4485 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
4487 2006-04-05 Mike Kestner <mkestner@novell.com>
4489 * ListView.cs (HeaderMouseMove): null guarding for the over column
4490 when setting up the drag_to_index. Fixes #78015.
4492 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4494 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
4495 in the taskbar. Transient windows seem to accomplish that.
4497 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
4500 - Re-enabled CreateParams.X/Y code for FormStartPosition
4501 - Added code for manual placement when creating the Control
4502 - Incomplete patch to treat MDI forms differently when
4503 setting the ClientSizeCore. (Still need to figure out handling
4506 - When we're explicitly setting the X/Y position of a non-Child
4507 window, let the WM know. Metacity really wants this.
4509 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4511 * ThemeNice.cs: Added CPDrawButton
4513 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4515 * ThemeNice.cs: Changed the color for focused buttons and activated
4516 the arrows for small scroll buttons.
4518 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
4520 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
4521 anymore. Changed some method modifiers to protected (virtual)
4522 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
4524 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
4525 Updated drawing of menus, buttons and progressbars; added
4528 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4530 * ImageListStreamer.cs: implemented serialization/deserialization
4533 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
4535 * ThemeWin32Classic.cs:
4536 - Removed all the DrawFrameControl stuff; CPDrawButton,
4537 CPDrawCheckBox and CPDrawRadioButton are now handled directly
4539 - Updated and corrected the drawing code of CPDrawButton,
4540 CPDrawCheckBox and CPDrawRadioButton to better match ms
4541 - Updated theme checkbox and radiobutton code to use the CP*
4544 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4546 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
4549 2006-03-31 Jackson Harper <jackson@ximian.com>
4551 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
4553 * UpDownBase.cs: Don't CreateGraphics manually, use a
4554 Refresh. Ideally we would invalidate the correct areas here.
4556 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4559 - We now track the mapping state of windows. If a window (or
4560 one of it's parents) is not mapped we no longer permit
4561 WM_PAINT messages to be generated since we'd otherwise get
4562 lots of BadMatch X errors. Jackson did all the work figuring
4564 - Destroying the caret if the window it's contained in is
4565 destroyed. Can't use regular DestroyCaret method since it
4566 might fall into a drawing function (trying to remove the
4567 caret) and with that generate new BadMatch errors. Again,
4568 Jackson tracked this down.
4569 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
4570 make sure we send the messages to all windows. (The old code
4571 would send the WM_DESTROY to the window, and then all child
4572 windows would be 'gone' because the WM_DESTROY handle lookup
4573 would no longer find the destroyed window)
4574 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
4575 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
4577 2006-03-31 Jackson Harper <jackson@ximian.com>
4579 * ScrollableControl.cs: Dont recalc if we are not visible.
4581 2006-03-31 Mike Kestner <mkestner@novell.com>
4583 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
4584 the visibility branch.
4586 2006-03-31 Jackson Harper <jackson@ximian.com>
4588 * ScrollBar.cs: Cap values when incrementing/decrementing.
4590 2006-03-31 Mike Kestner <mkestner@novell.com>
4592 * MenuAPI.cs: setup menu.tracker for popup/context menus.
4593 * ToolTip.cs: guard against timer expirations with no active control.
4594 Not sure why it happened.
4596 2006-03-31 Mike Kestner <mkestner@novell.com>
4598 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
4600 * ToolTip.cs: Position the tooltip based on where the cursor is at
4601 popup time, not at MouseEnter time. Add a Down state so that we don't
4602 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
4603 positioning offset. Lookup DisplaySize at positioning time, since it
4604 can theoretically change during invocation.
4605 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
4606 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
4608 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4610 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
4611 Fixes behaviour when the Text property of the box is String.Empty
4613 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
4615 * XplatUIX11.cs: Only send mouseleave for our client windows, not
4616 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
4619 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4621 * FileDialog.cs: Visual enhancement for the popup buttons in
4624 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
4626 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
4629 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
4631 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
4632 highlighted menu items to match ms
4634 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
4636 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
4638 2006-03-30 Mike Kestner <mkestner@novell.com>
4640 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
4641 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
4642 go active to account for HotLight to Selected transition.
4643 * MenuItem.cs: add internal Selected prop. Fill out the Status
4644 property by calculating it from item info. Add HotLight,
4645 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
4647 2006-03-30 Mike Kestner <mkestner@novell.com>
4649 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
4651 2006-03-29 Jackson Harper <jackson@ximian.com>
4653 * Form.cs: Implement TODO.
4655 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4657 * PrintPreviewDialog.cs: Implemented missing methods and events; still
4658 missing proper dialog setup in the constructor
4660 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
4662 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
4664 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
4665 - Fixed ResetBindings and removed TODO
4666 - Added check for cross-thread calls to get_Handle()
4667 - Added Marshaller attribute for set_Font to satisfy class status
4668 * FontDialog.cs: Removed TODOs that seemed implemented
4669 * UpDownBase.cs: Removed unneeded TODO and Fixme
4670 * MessageBox.cs: Implemented support for Default button and removed TODO
4671 * FileDialog.cs: Removed obsolete TODO
4672 * DomainUpDown.cs: Removed obsolete TODO
4673 * ButtonBase.cs: Removed obsolete TODO
4674 * XplatUIWin32.cs: Removed obsolete TODO
4676 - Removed obsolete TODO
4677 - Calling CheckAcceptButton when the acceptbutton is changed to allow
4678 internal status updates
4679 - Making sure the active control is selected when the control is created
4680 * CurrencyManager.cs: Removed obsolete TODO
4682 2006-03-29 Mike Kestner <mkestner@novell.com>
4684 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
4685 of PrintPreviewDialog and RichTextBox.
4687 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4689 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
4690 DarkDark, Light and LightLight colors for a specific color
4691 * ThemeWin32Classic.cs:
4692 - Use Button drawing code to draw RadioButtons and CheckBoxes with
4694 - Make use of the new ResPool helper CPColor
4695 - Draw ProgressBar and StatusBar with correct 3D borders
4697 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
4699 * ColorDialog.cs: Return selected color. Fixes bug #77940.
4701 2006-03-28 Mike Kestner <mkestner@novell.com>
4703 * ListView.cs: fix Icon layout to plan for scrollbar widths when
4704 calculating col/row counts.
4706 2006-03-28 Mike Kestner <mkestner@novell.com>
4712 switch to explicit interface method implementation for some methods
4713 corcompare identifies as inconsistent with MS.
4715 2006-03-28 Mike Kestner <mkestner@novell.com>
4719 add a few missing methods from the class status output.
4721 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
4723 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
4726 2006-03-28 Mike Kestner <mkestner@novell.com>
4728 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
4730 2006-03-27 Mike Kestner <mkestner@novell.com>
4732 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
4733 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
4735 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
4737 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
4739 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4741 * ThemeWin32Classic.cs:
4742 - GroupBox: Inserted a little gap between the text and the lines
4744 - Made the code in CPDrawBorder3D more readable
4745 - Corrected the drawing location of the up and down arrows in
4748 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4750 * ControlPaint.cs: Corrected line widths in DrawBorder for
4751 ButtonBorderStyle Inset and Outset
4753 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4755 * ThemeWin32Classic.cs:
4756 - Rewrote the totally broken CPDrawBorder3D method. That was
4757 one of the main problems for the terrific ThemeWin32Classic
4759 - Updated and corrected Button drawing
4760 - Correct the dimensions of the SizeGrip to match ms ones
4761 - Removed a small drawing glitch in DrawComboBoxEditDecorations
4762 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
4763 Border3DStyle.Sunken to match ms.
4765 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4767 * ThemeWin32Classic.cs: First small part of the "de-uglify
4768 ThemeWin32Classic" effort, SizeGrip
4770 2006-03-24 Jackson Harper <jackson@ximian.com>
4772 * XplatUIX11.cs: Give a max idle time of one second, this matches
4773 MS and forces an Idle event every second when there are no other
4774 events in the queue.
4776 2006-03-24 Mike Kestner <mkestner@novell.com>
4778 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
4779 * ListView.Item.cs: fix layout issues with null image lists and images
4780 smaller than checkbox size.
4781 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
4782 mode like MS does. It's weird, but consistent. ;-)
4785 2006-03-24 Mike Kestner <mkestner@novell.com>
4787 * ListView.cs: Scroll wheel support for the item control. Fixes
4790 2006-03-23 Jackson Harper <jackson@ximian.com>
4792 * ScrollableControl.cs: Special case negative sized areas, not
4794 * MonthCalendar.cs: Save the rect of the clicked date so we can
4795 use it for invalidation.
4796 - Try to cut down on the number of invalidates
4797 - Invalidate the rect the mouse is over and was over when moving
4798 the mouse, so we get the focus box following the cursor.
4800 2006-03-23 Mike Kestner <mkestner@novell.com>
4802 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
4803 focus rectangle drawing. Fixes #77835.
4805 2006-03-23 Mike Kestner <mkestner@novell.com>
4807 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
4808 the if and else if and reverting back to the original == check on the
4811 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4813 * FontDialog.cs: Update the example panel if the selected index of
4814 the fontListBox changes.
4816 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4818 * FileDialog.cs: Make FileDialog remember which directory it was in
4819 last in the same execution.
4821 2006-03-22 Mike Kestner <mkestner@novell.com>
4823 * FileDialog.cs: make the DropDownMenu on the toolbar display
4824 RadioChecks since they are mutually exclusive and that's what MS does.
4826 2006-03-22 Mike Kestner <mkestner@novell.com>
4828 * Theme.cs: add Color param to CPDrawMenuGlyph.
4829 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
4830 checks and radio marks and arrows are visible on highlighted items.
4831 * ControlPaint.cs: update to use new Theme signature.
4833 2006-03-22 Mike Kestner <mkestner@novell.com>
4835 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
4836 is active. Fixes #77870.
4838 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4840 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
4841 to be focused/selected after startup
4843 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4846 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
4847 CustomColors and ShowHelp properties
4848 - Some internal rewrites to get better results when using the
4851 2006-03-22 Mike Kestner <mkestner@novell.com>
4853 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
4854 HoverSelection. Fixes #77836.
4856 2006-03-22 Mike Kestner <mkestner@novell.com>
4858 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
4859 ToggleButtons. (De)Sensitize the Back button around a stack count of
4860 1, not 0. Update ButtonSize based on a pixel count of the win32
4861 control. Adjust the toolbar size/location for new button size.
4863 2006-03-22 Jackson Harper <jackson@ximian.com>
4865 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
4867 * ScrollBar.cs: When doing increments and decrements we need to
4868 set the Value property so that ValueChanged gets raised. A
4869 possible optimization here would be to make an internal SetValue
4870 that doesn't invalidate immediately.
4871 * ToolTip.cs: Tooltips get added to their container (when
4872 supplied) so they get disposed when the container is disposed.
4873 - Don't create tooltips for String.Empty. This prevents all these
4874 little 2-3 pixel windows from showing up when running nunit-gui
4876 * Form.cs: Don't set topmost when setting the owner if the handles
4877 haven't been created yet. The topmost set will happen when the
4878 handles are created.
4880 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
4883 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
4884 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
4885 visible (to allow them to recalculate their sizes)
4887 2006-03-21 Mike Kestner <mkestner@novell.com>
4889 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
4890 methods. Removed a ton of redundant code. Still not really happy with
4891 the border rendering, but I think that's mainly because of the
4892 ControlDarkDark being black instead of a dark grey. Depending on how
4893 close we want to be, we might want to revisit those color choices.
4894 Among the new features added during the refactor were DropDownArrow
4895 pressed rendering, Disabled image rendering. Proper flat appearance
4896 boundary rendering. Removed the Divider and Wrapping dividers since I
4897 can't figure out any combination of themes and conditions to make the
4898 MS control draw a horizontal line on a toolbar despite what the
4899 Divider property docs indicate.
4900 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
4901 conditions and incorrect layout. Updated to coding standard.
4902 * ToolBarButton.cs: refactored layout and positioning code from
4903 ToolBar to here. Invalidate wherever possible instead of forcing
4904 redraws of the whole toolbar.
4905 (Known remaining issues: explicit ButtonSize smaller than provided
4908 2006-03-21 Mike Kestner <mkestner@novell.com>
4910 * ContextMenu.cs (Show): use the position parameter instead of just
4911 showing at the MousePosition.
4913 2006-03-21 Jackson Harper <jackson@ximian.com>
4915 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
4916 control handle this.
4917 * TreeNodeCollection.cs: If we are clearing the root node we need
4918 to reset top_node so calcs can still happen.
4919 * ThemeWin32Classic.cs: This is a Flags so we need to check
4922 2006-03-21 Jackson Harper <jackson@ximian.com>
4924 * DataGrid.cs: Create columns when the binding context has been
4926 * X11Structs.cs: Keysyms are uints.
4927 - Add size to fix build.
4929 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
4931 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4933 - Added ResetMouseHover method to allow controls to retrigger
4934 hovering if they need it more than once
4935 - Implemented MouseHoverTime and MouseHoverSize properties
4936 * Timer.cs: Start() must reset the interval
4937 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
4940 2006-03-21 Jackson Harper <jackson@ximian.com>
4942 * X11Keyboard.cs: improved layout detection. Move the nonchar
4943 tables into this file.
4944 * KeyboardLayouts.cs: Move the tables into resource files.
4946 2006-03-21 Mike Kestner <mkestner@novell.com>
4948 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
4950 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
4952 * Mime.cs: Various speed optimizations. Looking up mime types
4953 is now 2 times faster than before
4955 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4957 * CreateParams.cs: Added internal menu field
4959 - Switched call order for UpdateBounds; now we always call
4960 the one that also takes ClientSize, and we're calculating the
4961 client size via driver method in the others. The previous
4962 method of tracking client size by difference wasn't working
4963 for forms where even the starting client size wouldn't match
4964 the overall form size (due to borders) (Part of fix for #77729)
4965 - CreateParams(): Do not use parent.Handle unless the handle is
4966 already created. Causes havoc with Nexxia and throws off our
4967 creation of controls
4969 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
4970 - Switched handling of ConfigureNotify over to new PerformNCCalc
4971 method (consolidates code)
4972 - Changed RequestNCRecalc to use new PerformNCCalc method
4973 - Added calls to RequestNCRecalc when menus and borders are changed
4974 to allow app to set NC size. (Part of fix for #77729) This matches
4975 when MS send a WM_NCRECALC on Win32 windows.
4976 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
4977 (Part of fix for #77729). This matches what MS does, they also
4978 send that message when the form is made visible.
4979 - XException.GetMessage: Improved usability of X errors by including
4980 a translation of the window into Hwnd and Control class
4981 - Improved debug info for window creation, reparenting and destruction
4982 - Created helper method WindowIsMapped() [Currently not used]
4983 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
4985 - CreateParams: Now setting our menu on the new internal menu field
4986 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
4987 avoid calculating the same property twice
4989 - Improved usability of ToString() for debugging purposes
4990 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
4991 determine the height of the menu, instead of just the font. This
4992 required to also create a graphics context and to keep a bmp
4993 around (for performance reasons)
4995 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4997 * MenuAPI.cs: Added OnMouseUp method
4999 - Now remembering the requested client size, avoids size errors
5000 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5001 instead of base if the menu is active. This is required due to
5002 control now capturing and releasing on down/up and it would
5003 prematurely release our menu capture
5005 2006-03-17 Jackson Harper <jackson@ximian.com>
5007 * KeyboardLayouts.cs: Add the czech layouts.
5009 2006-03-16 Jackson Harper <jackson@ximian.com>
5011 * Control.cs: Use the viewport space when sizing not the controls
5012 client size, so things like ScrollableControl that effect the
5013 viewport size (when scrollbars are added) are computed correctly.
5014 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5016 - Handle creating BindingManagers for null data sources.
5017 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5018 source, otherwise when rows are added they are added to the 'fake'
5019 datasource and we will crash when trying to set the position in
5021 - Use Implicit scrollbars on the datagrid so they arent
5024 2006-03-16 Jackson Harper <jackson@ximian.com>
5027 * InternalWindowManager.cs:
5028 * MdiWindowManager.cs:
5029 * X11Keyboard.cs: I really want Mike to love me again (fix
5032 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5035 - OnMouseDown: Switch to editing mode when clicking on the cell
5036 even if we're clicking on the cell that's currently
5038 - ProcessGridKey: Left/Right now wrap like MS.Net does
5039 - ProcessGridKey: Tab now knows to add a new row when tab is
5040 pressed in the cell of the last column of the
5042 - ProcessGridKey: Enter now adds another row if pressed in the last
5043 row and selectes the new row, same column cell
5044 - ProcessGridKey: Home/End navigate columns, not rows, like
5045 originally implemented
5046 - Broke ProcessKeyPreview code out into an extra Internal method
5047 so it can be called from the edit code
5048 * DataGridTextBox.cs (ProcessKeyMessage):
5049 - Switched to accept Tab keypresses
5050 - Added F2 handling to allow jumping to the end of the edited cell
5051 - Added logic to allow moving caret left/right inside edited cell
5052 and making the edited cell jump when the caret hits cell borders
5053 - Tab and Enter are now passed to the datagrid after being handled
5055 - Removed capture code now that Control handles it
5056 - set_SelectionStart now ensures caret is visible
5058 2006-03-16 Jackson Harper <jackson@ximian.com>
5060 * TrackBar.cs: Debackwards the increment/decrement for handling
5061 mouse clicks on the bar with vertical trackbars.
5062 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5065 2006-03-16 Mike Kestner <mkestner@novell.com>
5067 * ListView.cs: make shift/ctrl keyboard and mouse selection
5068 consistent with the MS control. Fix a bug in
5069 SelectedListViewItemCollection.Clear that was pissing me off for the
5070 better part of a day because the collection was being altered
5071 underneath us as we walked the list.
5073 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
5075 * Control.cs: Not sure how we could miss this so long, but it seems
5076 that MS.Net has Capture set all the way from before calling
5077 OnMouseDown through sending the mouse events until after
5078 OnMouseUp. This will fix DataGrid's selection being set to end
5079 at the location of the MouseUp.
5081 2006-03-15 Jackson Harper <jackson@ximian.com>
5083 * BindingContext.cs: Check the binding after its added so that it
5084 can initialize the binding managers and hookup to events.
5085 * Binding.cs: Data members seem to sometimes include rows/cols in
5086 the format Row.Column we now take this into account.
5087 - Hookup to the position changed event so we can update the
5088 control when the position has changed in the data set.
5089 * CurrencyManager.cs: Take into account the row/col naming
5090 convention when creating dataset tables.
5091 * BindingContext.cs: Using a newer better way of storing
5092 datasource/datamember pairs. Hopefully this better matches MS for
5093 looking up binding managers.
5096 2006-03-15 Jackson Harper <jackson@ximian.com>
5098 * BindingContext.cs: The currency manager needs the data member
5099 name, if the member is a data set we use the name to find the
5101 * CurrencyManager.cs: When creating the list prefer an IList over
5103 - Attempt to create a DataTable from a DataSet (TODO: might need
5104 some better error checking here, although MS doesn't seem to have much)
5105 - If we have a DataTable create a view and use it as our list.
5107 2006-03-15 Mike Kestner <mkestner@novell.com>
5109 * ListView.cs: keep a matrix of the icon mode layout to facilitate
5110 keyboard navigation. Support Up/Down/Left/Right selection correctly
5111 for all 4 View modes.
5112 * ListViewItem.cs: add internal row/col fields for icon layouts.
5114 2006-03-15 Jackson Harper <jackson@ximian.com>
5116 * TabControl.cs: Redraw the tabs when we resize so their newly
5117 calculated sizes are drawn on screen.
5118 * X11Keyboard.cs: Begginnings of XIM support. We also now support
5119 composite characters.
5120 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5121 - filter events so that composite characters can be created
5123 * X11Structs.cs: Add XIMProperties enum.
5125 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5127 * Control.cs (BringToFront, SendToBack): Don't use window or handle
5130 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5132 * Control.cs (PerformLayout): We don't need to consider visiblity
5133 for anchoring, only for docking. This fixes 'whacky' alignment
5134 in listbox and other controls that use implicit scrollbars after
5135 the previous PerformLayout patch
5136 * ListBox.cs: Switched to use implicit scrollbars
5138 2006-03-14 Mike Kestner <mkestner@novell.com>
5142 - chain up the "new event" overrides to base and use
5143 OnEvent to raise them. Part of fix for bug #76509.
5145 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
5147 * FileDialog.cs: Do not select an item in the parent directory
5150 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5152 * Control.cs (PerformLayout): It would seem that we considered
5153 invisible windows for our layout. Not quite the right thing
5154 to do. Now we don't any longer, thereby fixing bug #76889.
5156 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
5158 * Control.cs (CanFocus): I goofed. A control can have focus
5159 even though it's not selectable. Made it match MS docs.
5161 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5163 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5164 center by default (fixes #76895)
5165 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
5166 all uses of Border3DSides.All with the explicit ORd together
5167 Left|Right|Top|Bottom because I assume that nobody was aware
5168 that All also implies a center fill. Most places I checked had
5170 * ProgressBarStyle.cs: Added
5172 2006-03-13 Mike Kestner <mkestner@novell.com>
5174 * ListView.cs: fix breakage in drag shadow header positioning
5175 from Peter's csc compilation fix.
5177 2006-03-13 Mike Kestner <mkestner@novell.com>
5179 * ListView.cs: fix NRE produced by backspacing twice in a focused
5182 2006-03-13 Mike Kestner <mkestner@novell.com>
5184 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5186 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5188 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5190 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5191 the allowed size before making programmatic size changes
5193 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5195 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
5196 set, metacity is broken and will still use the emty sizes in
5197 the struct. (Fix for #77089)
5199 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
5201 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
5202 WindowExStyles and marked both enums as Flags
5203 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5204 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5205 to match WindowStyles split
5207 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5208 - Updated to match WindowStyles split
5210 - Fixed FosterParent creation, was using ExStyle on the Style field
5211 (This should help with Popup focus issues)
5212 - Updated to match WindowStyles split
5214 2006-03-13 Jackson Harper <jackson@ximian.com>
5216 * MdiWindowManager.cs: Use the system menu height. Fixes some
5217 strange sizing issues.
5219 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5221 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5223 - Scroll to caret after inserting text (#77672)
5224 - Make scroll range one pixel higher, fixes off-by-one error (and
5225 makes underlines visible on the last line)
5227 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5229 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5230 the keyboard state from being stuck with keys in 'pressed' state when
5231 focus is switched away via keyboard
5232 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5233 reset the keyboard if no X11 KeyUp events are expected to come
5234 * X11Structs.cs: Switched type of Visible to bool to match driver
5236 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
5239 - Switched caret to be just 1 pixel wide, matches MS and looks less
5241 - Moved caret display 1 pixel down from the top of the control
5243 - InsertCharAtCharet: Update the selection start if moving the caret
5244 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5245 - No longer always creating the caret when the caret methods are
5246 called. Only the actual ShowCaret/HideCaret will do that now
5247 - Only setting caret visible if the owner control has focus
5248 - UpdateView: Added invalidation-shortcut logic for center and right
5249 aligned text. Previously we'd update all according to the left
5250 logic which caused drawing errors. Also fixed height of invalidated
5251 areas, now properly invalidating the whole area (was off-by-one)
5252 - owner_HandleCreated: Always generate the document when the
5253 handle is created; this ensures that
5255 - Fixed situation where caret would disappear under the right
5256 window border, also improved scrolling behaviour on left-
5258 - Fixed right-aligned textboxes to have a border to the
5259 right instead of the caret being under the right border
5261 - Switched from 'nested' to simple visible/not visible tracking
5262 for caret (part of fix for #77671)
5263 - No longer passing through translated FocusIn/FocusOut messages
5264 since we were notifying too often and the wrong windows. Instead
5265 we just notify our focussed window of receiving or loosing focus
5266 * XplatUIWin32.cs: Switched from 'nested' show/hide
5267 counting for caret to simple visible yes/no behaviour (part of
5270 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5272 * Mime.cs: Remove debug code...
5274 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
5276 * MimeGenerated.cs: Removed
5277 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5278 and subclasses) from /usr/(local/)share/mime and
5279 $HOME/.local/share/mime.
5281 2006-03-10 Jackson Harper <jackson@ximian.com>
5283 * MdiWindowManager.cs: Recalc the NC area when a window is
5284 maximized/restored so that the menu area is drawn on forms that
5287 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5289 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5290 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5291 us to force a WM_NCCALCRESIZE message being sent. This is needed
5294 2006-03-10 Jackson Harper <jackson@ximian.com>
5296 * Form.cs: We need to use the ActiveMenu when calculating menu
5298 - Fix nullref when the window manager hasn't been created yet.
5299 * Control.cs: Fix nullref when we try to bring a control to the
5300 front that has no parent.
5301 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5303 - Add a dummy item to the maximized menu so it always has the
5304 correct height. Otherwise when there are no menus we don't get our
5308 2006-03-10 Jackson Harper <jackson@ximian.com>
5310 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5312 * Form.cs: Make the window_state internal so the window managers
5314 - When an MDI child is maximized let its window manager create the
5315 main menu (so it can add its icon).
5316 - Notify the window managers of state changes
5317 - Let the window manager paint its buttons and handle button
5318 clicks on the menu when it is maximized.
5319 * InternalWindowManager.cs: Move the prev_bounds into the mdi
5320 window manager, since tool windows don't use it, only mdi windows.
5321 - Tell the main form that we don't want it to handle NCPAINT
5322 itself to avoid extra painting.
5323 - Handle clicks on a maximized windows menu.
5324 - Handle window state changes
5325 - Handle minimize/maximize clicks correctly by setting the window state.
5326 * MdiWindowManager.cs: Add an icon menu that (the menu you get
5327 when clicking on the forms icon).
5328 - New method to create a forms maximized menu. This is its normal
5330 - Handle window state changes.
5331 - Handle sizing of maximized windows. Maximized windows are just
5332 drawn bigger then the parent visible area. All controls are still
5333 there, they are just outside the visible area (this matches windows).
5334 * MdiClient.cs: No scrollbars when a child window is maximized.
5335 - Let the children windows figure out how big they should be when
5336 sizing maximized windows.
5337 - Implement a version of ArrangeIconicWindows somewhat similar to
5338 Windows version. There are some little differences, but I don't
5339 think any app will rely on the layout of minimized mdi windows.
5341 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5343 * Padding.cs: Several fixes to allow compiling with csc 2.0
5345 2006-03-09 Jackson Harper <jackson@ximian.com>
5348 * MenuItem.cs: Cheap hack so we can add items to the list without
5349 the events being raised. This allows adding mdi items during
5350 drawing. TODO: Should probably find a better time to add the items.
5352 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5354 * ThemeWin32Classic.cs:
5355 - CheckBox_DrawText: Added logic to not wrap if not enough space
5356 is available (Fix for bug #77727)
5357 - RadioButton_DrawText: Added logic not to wrap if not enough
5358 space is available (Fix for bug #77727). Also removed some
5359 duplicate code, DrawString always drawing the regular text
5360 before hitting the if statement.
5362 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5364 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5366 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
5368 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5369 * ContainerControl.cs: Partial implementation of some 2.0 scaling
5370 methods. Moved the new 2.0 properties into alphabetical order with
5371 other properties and added MonoTODO tags
5373 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5375 * AutoScaleMode.cs: Added. Fix build.
5377 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5379 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5380 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5381 and was requiring premature handle creation for calls from above
5382 * Form.cs, Control.cs: Removed handle arguments from calls to
5383 CalculateClientRect()
5385 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5387 * ListView.cs (HeaderMouseMove): Fix csc compilation.
5388 drag_column.column_rect is MarshalByRef and can't be used that way
5390 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5392 * AxHost.cs: Added deserialization constructor for
5393 AxHost+State (fixes 77743)
5395 2006-03-09 Mike Kestner <mkestner@novell.com>
5398 - Added column drag reordering for details view.
5399 - fixed behavior when mouse is dragged off column and
5400 AllowColumnReorder is false.
5401 * ColumnHeader.cs: clone the format too in Clone.
5402 * Theme.cs: add DrawListViewHeaderDragDetails method.
5403 * ThemeWin32Classic.cs:
5404 - impl new method for drawing drag column shadows and targets.
5405 - support column offset for details mode in DrawListViewItem.
5407 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5409 * TextControl.cs: Reset the char_count when the document is cleared
5410 (Fixes bug reported on mono-winforms mailing list)
5412 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5414 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5415 of calling base we simply process the key ourselves, since both
5416 DefWindowProc and the handled method would set m.Result.
5419 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
5421 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5422 method also moves the window; instead implemented a copy of
5423 Control.ScaleCore (Part of fix for #77456)
5425 - Created new CreateGraphicsInternal method to allow providing
5426 a graphics context when no handle is created without triggering
5427 handle creation. (Part of fix for #77456)
5428 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5430 - Switched Constructor to require TextBoxBase instead of Control (to
5431 allow uncast access to CreateGraphicsInternal)
5432 - Safeguarded use of owner.Handle property. No longer accessing it
5433 unless the handle is already created.
5434 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5435 - Now triggering a recalc when owning control becomes visible
5436 * TextBox.cs, RichTextBox.cs: Switched to use new internal
5437 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5438 premature handle creation (Part of fix for #77456)
5440 - We now only destroy our double-buffering buffers when the
5441 control is resized or disposed, but not when visibility
5442 changes. (The code even re-created them twice every time)
5443 - Now requiring a redraw of the buffer on visibility changes
5444 (fixes bug 77654 part 2)
5445 - Not passing OnParentVisibleChanged up unless the control
5447 - CanFocus: Fixed to match MS documentation
5448 - Focus: Fixed to return actual focus state and to check if
5449 setting focus is legal before setting it
5451 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
5453 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5454 when to draw focus rectangle by looking at parent focus and
5455 selected state instead. This fixes TabPages on Linux sometimes
5456 having none or multiple focus rectangles.
5457 * XplatUIX11.cs (SetFocus):
5458 - Don't set the focus if the same window already has focus
5459 - Use SendMessage instead of PostMessage (like it's Win32
5460 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5461 to match MS behaviour
5462 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5465 2006-03-07 Jackson Harper <jackson@ximian.com>
5467 * PictureBox.cs: Revert line I accidently committed last week.
5469 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
5472 - Added new IsRecreating and ParentIsRecreating properties to
5473 allow testing if RecreateHandle has been called on ourselves
5474 or one of our parents
5475 - WndProc(WM_DESTROY): If our control handle is being recreated
5476 we immediately need to create the handle when receiving the
5477 destroy, that way our child windows find a valid parent handle
5478 when they themselves are being recreated upon WM_DESTROY receipt
5479 (fix for bug #77654 part 1)
5481 - DestroyWindow: WM_DESTROY must be sent to our own window before
5482 notifying any child windows. MS documents that child windows
5483 are still valid when WM_DESTROY is received. (Control now relies on
5485 - Added some fine-grain debug options
5487 2006-03-06 Jackson Harper <jackson@ximian.com>
5489 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
5490 box and base calculations off this.
5491 * MdiChildContext.cs:
5492 * MdiWindowManager.cs: Don't need to ensure scrollbars here
5495 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
5497 * Splitter.cs: In situations where the affected control is added
5498 to the parent's control list after the splitter, we would not
5499 populate affected. Now we try populating it on mousedown, if
5500 it's not already set, and force it to be re-set whenever our
5503 2006-03-03 Matt Hargett <matt@use.net>
5505 * Control.cs: implement Control.Padding
5506 * Padding.cs: -Padding.All returns -1 when constructing with the
5507 implicit default ctor
5508 -Padding.ToString() matches MS.NET
5509 * ContainerControl.cs: implement
5510 ContainerControl.AutoScaleDimensions
5511 * ListControl.cs: implement ListControl.FormattingEnabled
5512 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
5514 * TabPage.cs: Implement UseVisualStyleBackColor.
5515 * PictureBox.cs: Implement PictureBox.InitialImage.
5517 2006-03-03 Mike Kestner <mkestner@novell.com>
5519 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
5520 event declarations to proxy to base event.
5521 * ListViewItem.cs: update to use ItemControl.
5522 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
5523 * ThemeWin32Classic.cs: update to new ListView theme API and fix
5524 column header label rendering for 0 width columns.
5526 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
5528 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
5529 that causes the control to be created. Fixes #77476.
5531 2006-03-02 Jackson Harper <jackson@ximian.com>
5533 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
5536 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
5538 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
5539 passed in for the EventArgs (fixes #77690)
5541 2006-03-01 Jackson Harper <jackson@ximian.com>
5543 * ScrollBar.cs: Refresh afterbeing resized.
5545 2006-02-28 Mike Kestner <mkestner@novell.com>
5547 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
5548 Clean up a tracker compile warning.
5549 * MenuItem.cs: add internal PerformPopup method.
5552 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5554 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
5555 implicit expose) when the text is set to null
5557 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5559 * RichTextBox.cs (FlushText): When newline is true, we always
5560 need to split the line, even if no text is on it and we may
5561 never eat newlines. (Fixes #77669)
5563 2006-02-28 Mike Kestner <mkestner@novell.com>
5565 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
5566 and set Selected instead.
5567 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
5570 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
5572 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
5574 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
5577 - Got rid of the panel. All controls are now directly added to
5579 - It is now possible to set a font with the Font property
5580 - MinSize and MaxSize property do now what they should
5581 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
5582 - Searching and selecting a font with the font textbox works now,
5583 the same applies to the style and size textbox
5584 - Draw the correct 3D border in the example panel
5585 - Fixed a little mem leak (unused fonts didn't get disposed)
5586 - Many other internal updates/rewrites...
5589 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5592 - InsertRTFFromStream: Added 'number of characters inserted' argument
5593 - set_SelectedRTF: Now using the number of characters to calculate
5594 the new location for the selection and cursor (x/y cannot be used
5595 due to potentially already wrapped text)
5597 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5599 * TextControl.cs: Added property and implemented means to allow
5600 disabling recalculation of a document (can be used to speed up
5601 multiple inserts and is needed to make RTF inserts predictable, see
5603 * RichTextBox.cs: Using the new NoRecalc property of Document to
5604 keep x/y insert locations predictable. Also makes it faster inserting
5607 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
5609 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
5610 it's easier for a child control to handle the other messages without
5611 having to duplicate the special functionality
5613 - WndProc: Removed calling base handler for WM_KEYDOWN and added
5614 code to handle processing the key ourselves, in order to get
5615 access to the result of KeyEventArgs.Handled. We now only call
5616 ProcessKey if they key hasn't been handled already. Fixes #77526.
5617 - set_Text: If null or empty string is given, just clear the
5618 document. Fixes part of #77526
5620 2006-02-27 Jackson Harper <jackson@ximian.com>
5622 * SizeGrip.cs: Paint the background color before painting the grip
5623 so things look right.
5624 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
5626 2006-02-27 Mike Kestner <mkestner@novell.com>
5629 - Restructure layout and invalidation model to remove a ton of
5630 flicker from the control and speed up performance in general.
5631 - Add manual column resize, flickers like crazy, but I already have
5632 some ideas on how I'll fix that. (#76822)
5633 - Merge the three Icon-based views into a single layout method.
5634 - Move item selection interaction logic from the item since
5635 interaction with the collections is more appropriate to the view.
5636 - Deselection on non-item clicks.
5638 - Encapsulate most of the layout. Add some internal props to trigger
5639 layout. Move to a model where Items invalidate themselves instead
5640 of just invalidating the whole control every time something changes.
5641 - Invalidate on Text/Caption changes.
5642 - switch to an offset based layout model to avoid having to absolute
5643 position every element on item moves.
5644 - correct checkbox layout to conform to MS layout.
5645 * ThemeWin32Classic.cs:
5646 - refactor some column header drawing code.
5647 - fix string justification for column headers (#76821)
5648 - make SmallIcon labels top justified for compat with MS impl.
5649 * ThemeClearlooks.cs:
5650 - adjust to new ListViewItem internal checkbox bounds api.
5652 2006-02-27 Jackson Harper <jackson@ximian.com>
5654 * Control.cs: Change where implicit controls fall in the zorder.
5655 They are now on top of all children.
5656 - Synced AddImplicit code with Add
5657 - Removed unused enumerator.
5658 * SizeGrip.cs: Remove the TODO as its been TODONE.
5660 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5662 * TextControl.cs(Insert): Combine the last lines unless the insertion
5663 string ends with \n\n, otherwise we leave one line too many (Fixes
5664 something I noticed with the testapp for #77526; the bug itself was
5665 already fixed in the previous checkin)
5667 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
5670 - SelectionColor and SelectionFont methods no longer set absolute
5671 styles. Instead, the keep font or color respectively (This
5672 resolves a long-standing FIXME in the code)
5673 - When flushing RTF text, the insert code now considers text trailing
5674 behind the insertion point (Fixes the bug where when replacing
5675 the selected text via SelectedRTF the remainder of the line behind
5676 the selection would stay on the first insertion line)
5678 - AppendText now updates the selection points after inserting text
5679 - AppendText now ensures that the last tag (sometimes 0-length) of
5680 the document is used for the style information (Fixes part of
5683 - Created new FontDefiniton class to allow describing partial style
5685 - StreamLine() now takes a lines argument, to allow it to decide
5686 whether an encountered zero-length tag is the last in the document
5687 (which must be kept to not loose the font/color contained in it,
5689 - Created Combine() and Split() methods for Marker structs, to
5690 support marker updates due to reformatted documents (soft line
5692 - Implemented Document.CaretTag setter
5693 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
5694 of the last line (Not the cause, but also exposed by bug #77220)
5695 - Added LineTag argument to InsertString method, to allow callers
5696 to force a certain tag to be used (required to force use of the
5697 trailing zero-length tag of a document)
5698 - Now updating markers in Combine(), to avoid stale tag markers
5699 - Added some method descriptions to aid maintenance
5700 - Implemented new FormatText concept, allowing additive/subtractive
5701 formatting by only specifying the components that are to be
5702 changed. This was needed for resolving the RTB.SelectedColor/
5703 RTB.SelectedFont fixmes
5704 - Added Break() support method to allow breaking up linetags (used
5705 for partial formatting)
5706 - Added GenerateTextFormat() method. It is used for partial
5707 formatting and allows to generate a full font/color from given
5708 attributes and an existing tag.
5710 2006-02-26 Jackson Harper <jackson@ximian.com>
5712 * XplatUIX11.cs: Use the correct caption height.
5713 - Translate hittest coordinates to screen coords to match MS.
5714 * XplatUIWin32.cs: When we create MDI windows we need to reset
5715 some of the style flags, so we get a nice blank window, and can
5716 draw all the decorations ourselves.
5717 - Set a clipping rectangle on the non client paint event, the
5718 window manager drawing code needs one.
5719 * Form.cs: The window manager needs to know when the window state
5721 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
5722 don't need to factor in border and title sizes in these
5723 methods. TODO: Remove the args and fix the call points.
5724 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
5726 - Let the driver set the cursors.
5727 - Improve active window handling
5728 - Correct sizes for title bars and buttons.
5729 - Match MS drawing better
5730 * MdiWindowManager.cs: We don't need to handle border style
5731 updates specially anymore.
5732 - Check for scrollbars when windows are done moving
5733 - Handle Active properly.
5734 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
5735 correctly. I am spewing the exception though, so we don't hide the
5738 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
5740 * DataGridViewRowPostPaintEventArgs.cs,
5741 DataGridViewCellPaintingEventArgs.cs,
5742 DataGridViewRowCollection.cs,
5743 DataGridViewRowPrePaintEventArgs.cs,
5744 DataGridViewCell.cs: Clear a few warnings and implement a few
5745 exceptions that should be thrown.
5747 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5749 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
5750 'inheriting' our parent's (non-default) cursor. (Part of
5753 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5755 * XplatUIX11.cs: Fixed cast to make csc happy
5757 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5759 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
5760 it's for the client area (part of fix for #77479 and needed
5761 for MDI window cursor handling)
5763 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
5764 the appropriate default cursors and also passing the message
5766 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
5767 for non-client areas
5769 2006-02-15 Jackson Harper <jackson@ximian.com>
5771 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
5772 is a real MDI window
5774 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
5776 * X11DesktopColors.cs: Instead of checking the desktop session
5777 string for "KDE" check if it starts with "KDE"
5779 2006-02-10 Jackson Harper <jackson@ximian.com>
5781 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
5784 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5786 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
5789 - Got rid of the panel. All controls are now directly added to
5791 - Changed to mono coding style
5793 2006-02-10 Jackson Harper <jackson@ximian.com>
5795 * InternalWindowManager.cs: We don't need the set visibility to
5796 false hack anymore now that peter has written beautiful shutdown
5799 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
5801 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
5802 where already explicitly destroyed
5804 2006-02-10 Jackson Harper <jackson@ximian.com>
5806 * MdiClient.cs: Handle the case where windows are too high or to
5807 the left and we need scrollbars.
5809 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5811 * MimeIcon.cs: Added some icons
5814 - Got rid of the panel. All controls are now directly added to
5816 - Changed to mono coding style
5817 - On Linux "My Computer" and "My Network" will now show some
5818 more usefull information. A new class, MasterMount, gathers
5819 this information from /proc/mount. Updated MWFFileView to make
5820 use of this information
5821 - Fixed a bug that caused FileDialog to crash when
5822 ".recently_used" file had a zero size
5823 - FilterIndex does now what it should
5825 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
5828 2006-02-09 Jackson Harper <jackson@ximian.com>
5830 * ComboBox.cs: Don't touch if null.
5832 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
5834 * Cursor.cs: 64bit safeness fix
5835 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
5837 2006-02-09 Jackson Harper <jackson@ximian.com>
5839 * Form.cs: If a form is made into an MDI form update the styles so
5840 all the props can get set correctly.
5841 - Kill the mdi_container when we dont need it anymore.
5842 * InternalWindowManager.cs: Add missing NOT
5844 2006-02-08 Jackson Harper <jackson@ximian.com>
5846 * InternalWindowManager.cs: Respek clipping when drawing MDi
5849 2006-02-08 Jackson Harper <jackson@ximian.com>
5851 * Hwnd.cs: Add bits to track non client expose events.
5852 * XplatUIX11.cs: Track non client expose events on the hwnd. This
5853 gives us a proper invalid rect and will allow for some nice
5854 optimizations with NC client drawing
5855 - MDI windows are children windows, so move their style handling
5856 into the child window block.
5857 * InternalWindowManager.cs: Remove a state reset that was
5858 getting invoked at the wrong time. Fixes managed windows getting
5859 into a 'stuck' captured state.
5861 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5863 * TextControl.cs (Document.ctor): Now initializing
5864 selection_anchor. Fixes #77493
5866 2006-02-07 Jackson Harper <jackson@ximian.com>
5868 * TrackBar.cs: The increment/decrements were backwards.
5870 2006-02-07 Mike Kestner <mkestner@novell.com>
5872 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
5873 to the instance itself.
5875 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5877 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
5878 on ulongs and pointers, the size differs between 32bit and 64bit
5881 2006-02-07 Mike Kestner <mkestner@novell.com>
5883 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
5884 for 64 bit platforms to work around a metacity bug.
5886 2006-02-07 Jackson Harper <jackson@ximian.com>
5888 * TrackBar.cs: Process the input keys we need, and hookup to
5889 KeyDown instead of using WndProc, so we get key messages.
5891 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5893 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
5895 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
5896 we need to translate the XdndVersion atoms array before sending it
5898 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5901 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
5902 number of bits for the property, not the number of bytes. The
5903 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
5904 but would not crash since it specified 8 bits instead of 4 bits)
5905 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
5906 defined as XID -> long in the C headers)
5907 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
5908 references since those are now IntPtr to begin with
5909 - Switched all Atom.XXX 'int' casts to IntPtr casts
5910 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
5911 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
5912 - Added XChangeActivePointerGrab DllImport (for X11DnD)
5914 - Changed 'int' type for Atoms in XEvent structures to IntPtr
5915 - Changed atom in HoverStruct to be IntPtr
5917 - Removed local DllImports, switched code to use those from XplatUIX11
5918 - Removed/fixed casts related to the switch of Atom to be a IntPtr
5920 2006-02-06 Mike Kestner <mkestner@novell.com>
5922 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
5923 method signatures in the import region. There may still be some
5924 lingering struct marshaling issues, as I didn't drill down into those.
5927 2006-02-06 Jackson Harper <jackson@ximian.com>
5929 * ComboBox.cs: Dont manually set the top_item, this is computed
5930 when the scrollbar position is set.
5932 2006-02-06 Mike Kestner <mkestner@novell.com>
5934 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
5935 startup crashes on amd64. There's other fixes needed. All pinvoke
5936 usage of Atom needs to be mapped to IntPtr for example. And there are
5937 likely other int/long issues to be addressed.
5939 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
5941 * FileDialog.cs: One more...
5943 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5945 * FileDialog.cs: Next try
5947 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5949 * FileDialog.cs: First part of fix for #77464
5951 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5953 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
5954 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
5955 AcceptButton border drawing.
5957 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5959 * Form.cs: Moved positioning of form after auto scaling is applied,
5960 otherwise it would possibly use wrong form size.
5962 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5964 * Control.cs (RecreateHandle): No need to re-create any child
5965 controls, the child windows will get destroyed automatically by
5966 the windowing system or driver, and re-created when the handle
5967 is being accessed the first time. Fixes #77456
5968 * Form.cs: No longer setting the form to closing if the handle is
5969 being recreated. This seems like the right thing to do, don't
5970 have a bug or testcase for this, though.
5972 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5974 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
5975 controls to avoid unwanted side effects
5977 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5980 - ScaleCore needs to scale the bounds, not the ClientSize of the
5981 control. Fixes #77416.
5982 - DefaultSize is 0,0 for control
5984 - DefaultSize is 100, 20
5985 - SetBoundsCore: Now enforcing the height, no matter if the provided
5986 height is more or less than the preferred one, as long as AutoSize
5988 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
5990 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5993 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
5994 call unless both performLayout is true *and* we have a pending
5996 - ResumeLayout: MS does not completely nest Suspend and Resume,
5997 they bottom out at 0, fixed our code to match that.
5998 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
5999 SetBoundsCore, we were updating even when we shouldn't. This fixes
6000 swf-anchors mis-anchoring when resizing the app fast and lots.
6001 - UpdateDistances: Now only setting the left and top distance if
6002 we have a parent and are not suspended, this is based on
6003 a suggestion by Don Edvaldson in bug #77355.
6004 - OnVisibleChanged: Fixed logic when to create the control. We may
6005 not create the control if we have no parent or if it's not visible;
6006 switched to using Visible property instead of is_visible field
6007 since the property also considers parent states. This fixes a bug
6008 when starting Paint.Net
6010 2006-02-02 Jackson Harper <jackson@ximian.com>
6012 * Form.cs: If the forms handle hasn't been created yet don't call
6013 into xplatui to make it top most, just set the topmost flag on the
6014 form in CreateParams
6015 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6017 2006-02-01 Jackson Harper <jackson@ximian.com>
6019 * ScrollableControl.cs: Refactored the Recalculate method a
6020 little, this wasn't handling all the variants of bottom and right
6021 bars needed to be added and added/removed based on their
6022 counterparts being added/removed (which changes the drawable
6023 size). Also we special case client widths and heights of 0 and
6024 don't add the scrollbar for those.
6026 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
6029 - Added method to get AbsoluteGeometry(); currently unused, but might
6030 be used in the future, if we try again to figure out toplevel
6031 coordinates with some more crappy window managers
6032 - Added FrameExtents() method to retrieve the WM set decoration size
6033 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
6034 to deal with at least KDE, FVWM and metacity (Fixes #77092)
6036 - Added whacky_wm tracking var for metacity
6037 - Added logic to have default menu height if the actual menu height
6038 has not yet been calculated (part of fix for #77426)
6039 * Form.cs: Keep track whether client size has been set and re-set
6040 it if a menu is added/removed afterwards (Fixes #77426)
6042 2006-01-31 Jackson Harper <jackson@ximian.com>
6044 * Control.cs: When a new Site is set on the component attempt to
6045 pull the AmbientProperties from it.
6047 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
6049 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6050 in the background of the owning form. Fixes #77332
6052 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6054 * MimeIcon.cs: Fix for #77409
6056 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
6058 * XplatUIX11GTK.cs: Initial import
6060 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
6062 * FixedSizeTextBox: fixes class signature
6064 2006-01-30 Jackson Harper <jackson@ximian.com>
6066 * FixedSizeTextBox.cs: New internal class that represents a
6067 textBox that will not be scaled.
6070 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6073 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6075 * XplatUIX11.cs: Retrieve default screen number instead of
6076 assuming 0. Attempted fix for #77318
6078 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
6081 - GetWindowPos: When a window is parented by FosterParent, use
6082 the desktop instead of FosterParent as the base to get coordinates
6083 - CreateWindow: Don't make FosterParent the parent window for Popups
6084 if we don't want a taskbar entry, Popups automatically don't get one
6085 * Hwnd.cs: Need to call remove to actually remove the key from the
6088 2006-01-30 Mike Kestner <mkestner@novell.com>
6090 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6092 2006-01-30 Jackson Harper <jackson@ximian.com>
6095 * TreeNode.cs: Raise events no matter how the treenode is
6096 checked. Patch by Don Edvalson.
6098 2006-01-30 Jackson Harper <jackson@ximian.com>
6100 * TreeNode.cs: Signature fix.
6102 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
6104 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6106 2006-01-20 Mike Kestner <mkestner@novell.com>
6108 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6109 event forwarding when menus are active.
6110 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
6111 Most of the patch is pdb's with a little rework.
6113 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6115 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
6116 Removed GetMenuDC and ReleaseMenuDC methods; replaced
6117 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6118 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6119 * InternalWindowManager.cs: Added use of PaintEventStart/End to
6120 handling of WM_NCPAINT message, now passing the PaintEventArgs to
6121 the PaintWindowDecorations method
6122 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6123 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6124 * MenuAPI.cs: Made tracker window invisible
6126 - Removed GetMenuDC and ReleaseMenuDC methods
6127 - Implemented the client=false path for PaintEventStart and
6130 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6132 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6133 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6136 - MaximizeBox, MinimizeBox: Recreate the handle when setting
6138 - CreateParams: Reworked the styles to match MS look'n'feel,
6139 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6140 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6142 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6144 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
6145 window is not mapped, since otherwise every form that's being
6146 created is considered minimized, which is wrong.
6147 * Form.cs: Catching the exception and returning our internal value
6150 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
6152 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6153 SetWindowMinMax() to have means to tell the driver about the minimum,
6154 maximum and maximized state window sizes. (Part of the fix for #76485)
6156 - Implemented tracking of minimum and maximum window size, now calling
6157 new SetWindowMinMax() driver method to tell the driver (Part of the
6159 - Finished handling of WM_GETMINMAXINFO method, now setting all values
6160 (Completes fix for #76485)
6161 - Calling new SetWindowMinMax driver method when the handle for a
6162 form is created, to make sure the driver knows about it even if
6163 the values have been set before the window was created
6164 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6165 to avoid messing up our anchoring calculations (partial fix
6167 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6169 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6170 - Improved GetWindowState() to detect 'Minimized' state on Metacity
6171 (and presumably other freedesktop.org compliant WMs). Left the
6172 assumption unmapped=minimized, needed for SetVisible to work.
6173 - Now setting the window state when creating windows
6174 - Fixed SetVisible to consider/set the window state when mapping
6175 a Form. We cannot set the state before it's mapped, and we cannot
6176 use Form.WindowState once it's mapped (since it would ask the
6177 driver and get 'normal'. Therefore, we grab the state before
6178 mapping, map, and then set state.
6179 - Implmemented SetWindowMinMax method; Metacity does not seem to
6180 honor the ZoomHints, though.
6182 - Removed MINMAXINFO (moved to XplatUIStructs)
6183 - Added SetWindowMinMax stub (on Win32 the only way to set that
6184 information is in response to the WM_GETMINMAXINFO message, which
6185 is handled in Form.cs)
6186 - Added logic to SetVisible to set the proper window state when a
6187 form is made visible (fixes #75720)
6189 2006-01-26 Jackson Harper <jackson@ximian.com>
6191 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6192 same way we handle them with Invoke.
6194 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
6197 - Added tracking of window state so CreateParams can return
6198 the appropriate style
6199 - Moved setting of WS_CAPTION style in CreateParams to allow
6200 styles without caption
6201 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
6202 control if the TextBox property is accessed. Fixes #77345
6204 - get_Created: now uses is_disposed and is_created to determine
6205 return value (suggested by Jackson)
6206 - CreateHandle: No longer exits if the handle is being recreated
6207 - RecreateHandle: If the handle is not yet created call the
6208 appropriate method to create either control or handle. If the
6209 control is already created CreateHandle will simply exit instead
6210 of just creating the handle
6211 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6212 now SendMessage WM_DESTROY directly to the control when DestroyWindow
6215 - When DestroyWindow is called, instead of waiting for the
6216 DestroyNotification from X11, we directly post it to the WndProc
6217 and immediately dispose the hwnd object.
6218 Same applies to DestroyChildWindows, and this obsoletes the
6219 expose_pending tracking. Contrary to Win32 behaviour we destroy our
6220 child windows before our own, to avoid X11 errors.
6221 - Removed the direct sending of WM_PAINT on UpdateWindow
6223 - Reworked DoEvents and GetMessage to allow access to internal queue
6224 even when trying non-blocking access to the queue. Fixes #77335.
6225 Based on a patch suggestion by Don Edvalson. The new private
6226 GetMessage can now also be used as a backend for a PeekMessage
6228 * XplatUI.cs: Improved debug output for CreateWindow
6230 2006-01-25 Jackson Harper <jackson@ximian.com>
6232 * Help.cs: Allow param to be null. Patch by Don Edvalson.
6234 2006-01-24 Jackson Harper <jackson@ximian.com>
6236 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6237 when we have a MaxDropItems lower then the selected index.
6239 2006-01-24 Jackson Harper <jackson@ximian.com>
6241 * Control.cs: Don't allow selection of non visible controls, allow
6242 selection of controls without parents.
6244 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6246 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6247 * DataGridDrawingLogic.cs: Add editing row only when is necessary
6249 2006-01-23 Jackson Harper <jackson@ximian.com>
6251 * UpDownBase.cs: Make the textbox handle all the selection and
6252 tabbing. This fixes tabing to updown controls.
6254 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
6256 * TextBoxBase.cs: fixes exception thown the object was null
6258 2006-01-23 Jackson Harper <jackson@ximian.com>
6260 * ButtonBase.cs: Just use the base CreateParams. They set
6261 visibility and enabled correctly.
6264 * MonthCalendar.cs: Lets let the base set as much of the
6265 createparams as possible so we don't have duplicate code all over
6268 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
6270 * ThemeGtk.cs: Added TrackBar and some experimental code to
6271 get double buffering back
6273 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
6275 * DataGrid.cs: Allows row number set internally higher than the last
6276 when creating a new row. Restores the editing functionality.
6278 2006-01-20 Mike Kestner <mkestner@novell.com>
6280 * MimeIcon.cs: delay Image creation until the icons are accessed
6281 instead of creating 190 scaled images on GnomeHandler startup.
6283 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6285 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6286 first call base before processing the event. Fixes #77279
6288 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
6290 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6291 that the stride for the GDI bitmap would match the stride of
6294 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
6296 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6298 2006-01-19 Jackson Harper <jackson@ximian.com>
6300 * ComboBox.cs: Hookup the text controls keydown event so we get
6301 those when the text control has the focus.
6303 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6305 * Label.cs: Now using the base events instead of defining new ones;
6306 this allows us to just call the base properties without having to
6307 duplicate all base property logic
6309 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6311 * Label.cs: A label by default is not a tabstop (Fixes one of our
6312 failing nunit tests)
6314 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6316 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6317 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6319 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
6321 * Cursor.cs: Reimplemented creating cursor bitmaps without using
6322 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6325 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
6326 constructor creates images that can't be saved. Part of the fix
6328 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6329 - SetWindowState: Switched ShowWindow flags (part of an upcoming
6330 bug fix for handling window state in forms properly)
6332 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6334 * ThemeGtk.cs: Simplify ScrollBar drawing
6336 2006-01-18 Jackson Harper <jackson@ximian.com>
6338 * Splitter.cs: Set the default dock style for the splitter control
6341 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6343 * ThemeGtk.cs: Corrected StateType and ShadowType for
6346 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6348 * Control.cs: Make use of Theme.DoubleBufferingSupported
6350 - Added drawing for flat style buttons
6351 - Added ScrollBar drawing
6353 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
6355 * ThemeClearlooks.cs: Removed some unneeded code.
6356 * ThemeGtk.cs: First part of ThemeGtk enhancements.
6358 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6360 * LinkLabel.cs: We need to update the hover drawing when
6361 leaving the control as well.
6363 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
6365 * DataGrid.cs: Clicking on non empty areas in the columns
6366 area was giving an exception
6368 2006-01-17 Jackson Harper <jackson@ximian.com>
6370 * ThemeWin32Classic.cs:
6371 * ListView.cs: Do not draw/clip the headers when the header style
6374 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6376 * DataGrid.cs: Fixes 77260
6378 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
6380 * DataGrid.cs: Clicking on a column on a empty grid was giving
6383 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
6385 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6386 or any keypress will crash the grid.
6388 2006-01-17 Mike Kestner <mkestner@novell.com>
6390 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6391 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
6392 invisible/previously-visible items.
6395 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
6397 * ThemeClearlooks.cs:
6398 - Added CL_Draw_Button method; now other theme controls that are
6399 not derived from button or do not have a button can draw buttons
6401 - Updated ComboBox drawing
6402 - Beautified RadioButton drawing
6403 - Corrected drawing of bottom and left tabs
6404 - Beautified DateTimePicker and MonthCalendar
6405 - Added CPDrawButton and CPDrawRadioButton
6407 2006-01-16 Jackson Harper <jackson@ximian.com>
6409 * ComboBox.cs: Set the initial value of the scrollbar to the
6410 current index. Reduce the numbers of refreshs and IndexOfs called.
6412 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
6414 * FileDialog.cs: When the file listview is focused hitting the
6415 backspace key moves the fileview to the parent directory
6417 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6420 - Added RecreateHandle call when changing taskbar visibility to
6421 trigger reparenting in Win32 driver (Fixes #75719)
6422 - If a window has minimize or maximize buttons, it cannot have
6425 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6426 the toplevel form with FosterParent (A toolwindow not on the
6427 taskbar) (Fixes #75719)
6428 - Made FosterParent a toolwindow
6430 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6432 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6434 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6436 * ToolTip.cs: If SetToolTip is called from a control and the mouse
6437 is currently over that control, make sure that tooltip_window.Text
6440 2006-01-13 Mike Kestner <mkestner@novell.com>
6442 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6444 2006-01-13 Jackson Harper <jackson@ximian.com>
6446 * TreeView.cs: On MS GetNodeAt never actually factors in the X
6447 value passed. Also redraw the selected node when we recieve
6448 focus, so tabbing between trees works correctly.
6450 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
6452 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6453 ~/.gconf/%gconf-tree.xml, so use
6454 .gconf/desktop/gnome/interface/%gconf.xml
6456 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6458 * TextControl.cs: Draw text in gray if control is disabled
6460 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6462 * TreeView.cs: Draw the focus rectangle outside the highlight, to
6463 make sure it's always visible. Fixes #76680.
6465 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
6467 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6469 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
6471 * PageSetupDialog.cs: Added.
6472 * PrintDialog.cs: Attributes.
6473 * PrintPreviewControl.cs: Updates.
6474 * PrintPreviewDialog.cs: Updates.
6476 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6478 * Control.cs: Undid my selection check fix, since it's not needed
6480 - Now considering the presence of hscroll/vscroll when sizing
6481 vscroll/hscroll respectively. Fixed bug #77077
6482 - Added Left/Up/Down/Right to IsInputKey list to prevent
6483 ContainerControl from stealing them. This fixes what I broke
6484 with my last checkin.
6486 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6488 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
6489 I finally understand how the property can be set without a setter :-)
6491 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6494 - Switched RunLoop to use static Message.Create to create a
6496 - Added PreProcessMessage call in runloop for keyboard events; this
6497 is part of the fix for #77219, I overlooked this originally in the
6498 MSDN doc for PreProcessMessage
6500 - Removed call to PreProcessMessage from handling of keyboard
6501 messages; it's supposed to be done in the message pump
6502 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
6503 per MSDN documentation.
6504 - IsInputChar: All chars are input chars by default; removed the
6505 parent calling chain, MS does not document that
6506 - PreProcessMessage: If IsInputChar is true, we want to return false
6507 to allow dispatching of the message
6508 - When selecting the next control, now also check that we're not
6509 selecting ourselves again and therefore return a false positive.
6511 - Tried to match return values for IsInputKey and ProcessDialogKey
6512 to what MS returns; moved processing of our special keys outside
6513 ProcessDialogKey since MS does not seem to return true on those.
6514 - Moved code that previously was in ProcessDialogKey into new private
6515 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
6516 - Reworked handling of WM_CHAR to not have to duplicate code from
6517 Control.cs anymore, instead we simply call down to base.
6519 2006-01-12 Jackson Harper <jackson@ximian.com>
6521 * ComboBox.cs: We always need to refresh the text area when
6522 EndUpdate is called. Fixes the combobox in the file dialog.
6523 * Control.cs: Don't create the creator_thread until the controls
6524 handle is created. Also in InvokeRequired we check if the
6525 creator_thread is null. This gives the effect of InvokeRequired
6526 returning true if the controls handle is not created yet, and
6529 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6532 - Added StartLoop() driver method. This is used to allow drivers to
6533 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
6534 loop for a particular thread
6535 - Added EndLoop() driver method. This is called once the message
6536 pump for the thread is shut down
6537 - Added SupportsTransparency method to allow the driver to indicate
6538 opacity support for windows
6540 - Removed TODO attribute, completed AllowTransparency property
6541 - Added documented logic to Opacity
6542 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
6543 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
6544 versions of CompatibleTextRendering
6545 * X11Structs.cs: Added opacity atom to our atom enumeration
6546 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
6547 of a form might be set before it's reparented by the WM, and we need
6548 the opacity value without calling up to Form)
6549 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
6550 SupportsTransparency() driver methods
6551 * Application.cs: Now calling StartLoop and EndLoop driver methods
6553 - Added opacity atom registration
6554 - Added StartLoop()/EndLoop() methods. They're empty right now but
6555 will need to get implemented when we switch to a per-thread queue
6556 - Implemented SupportsTransparency() method
6557 - Implemented SetWindowTransparency() method
6558 - Added support for setting the opacity value when a window is
6559 reparented (since the opacity needs to be set on the WM frame)
6560 * XplatUIOSX.cs, XplatUIWin32.cs:
6561 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
6563 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6565 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
6567 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
6569 * FileDialog.cs: Added ToolTip for MWFFileView
6570 * MimeIcon.cs: Rewrote GnomeHandler.
6571 - Get currently used gnome icon theme from
6572 ($HOME)/.gconf/%gconf-tree.xml
6573 - Make use of inherited icon themes
6574 - Support SVG icon themes like Tango via librsvg
6576 2006-01-12 Miguel de Icaza <miguel@novell.com>
6578 Revert's Jackson's revert which broke 2.0 builds. Fix both
6581 * Application.cs: Move the use_compatible_text_rendering outside
6582 the NET_2_0 define. If we ever need to use the
6583 use_compatible_text_rendering on the individual controls they will
6584 access the variable from the common shared code paths.
6586 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
6589 - Added more granular debug options
6590 - Added method to print both window text and id
6591 - Switched debug output to use new Window() debug method
6592 - Added IsEnabled() driver method
6593 - Added EnableWindow() driver method
6595 - Removed end_modal; no longer needed, new loop handles termination
6596 via 'closing' variable
6597 - If form is modal, setting DialogResult will now initiate loop
6598 termination via 'closing' variable
6599 - Added support for is_enabled/WS_DISABLED to CreateParams
6600 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
6602 - Removed code that's now in RunLoop from ShowDialog()
6603 - Added various documented sanity checks to ShowDialog()
6604 - Added handling of WM_DESTROY message; we set 'closing' on getting
6605 the message to indicate the message pump to terminate
6606 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
6607 send by the Application.ExitThread method. (We send the message
6608 to destroy the window after all other events have been
6609 processed through the queue, instead of destroying the handle
6611 - Moved code from Close() method to WM_CLOSE handler; added logic
6612 to only send close-related events if the form is not displayed
6614 * Splitter.cs (..ctor): Fixed typo in resource name
6616 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
6618 - set_Cursor: Now only setting calling into XplatUI if the handle for
6619 the control is already created; this avoids implict handle creation
6620 or crashes if it's not created
6621 - set_Enabled: Now setting the enabled state via the new driver method
6622 instead of just tracking it
6623 - CreateParams: Added logic to set WS_DISABLED based on enabled state
6624 - CreateControl: Reordered event firing and method calls to more
6625 closely fire events in the order MS does. Now setting the
6626 enabled state in the driver when creating the control.
6627 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
6629 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
6630 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
6631 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
6633 - Added tracking of window enabled state (get_Enabled/set_Enabled)
6634 - Added EnabledHwnd property to easily allow a driver to find the
6635 handle of the first enabled window in the parent chain (this is
6636 used by drivers to pass up input events of disabled windows)
6637 * XplatUIDriver.cs: Added IsEnabled() method
6639 - Removed crude and obsolete exiting tracking variable
6640 - Removed internal ModalRun(); replaced by RunLoop()
6641 - Implemented private CloseForms() method to allow closing all
6642 windows owned by a particular (or all) threads
6643 - Exit() now properly closes all windows without forcing the message
6645 - Removed obsolete InternalExit() method
6646 - Changed Run() methods to use new RunLoop() message pump
6647 - Implemented new RunLoop() method for both modal and non-modal forms
6649 - get_CreateParams: Added setting of WS_DISABLED
6650 - Simplified ShowDialog(); now all the work is done in RunLoop(),
6651 invoked via Form.ShowDialog()
6652 * NativeWindow.cs: We don't remove the window from the collection when
6653 the handle is destroyed; there might still be messages for it in the
6654 queue (mainly the resulting WM_DESTROY); instead it will be removed
6655 when Control calls InvalidateHandle in the WM_DESTROY handler
6657 - CreateWindow: Added logic to handle the WS_DISABLED window style
6658 - EnableWindow: Implemented based on Hwnd.Enabled
6659 - GetMessage: Reset PostQuitState so the method can be called again
6660 - Implemented support for disabled windows (passing messages to the
6661 first enabled parent) in handling all input messages
6662 - Added optimizations for handling Expose events
6663 - Implemeted new driver method IsEnabled()
6664 - Now always resetting paint pending tracking vars when we start paint
6665 - Re-implemented UpdateWindow via just sending a WM_PAINT message
6666 * XplatUIOSX.cs: Added IsEnabled method stub
6667 * XplatUIWin32.cs: Implemented new IsEnabled() method
6669 2006-01-11 Jackson Harper <jackson@ximian.com>
6671 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6672 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
6674 * ColorDialog.cs: Clear out the old form before adding the new
6677 2006-01-11 Jackson Harper <jackson@ximian.com>
6679 * X11Dnd.cs: Make sure to add all the text formats when adding
6680 strings to the data object.
6681 * TreeNodeCollection.cs: When adding to a sorted tree we need to
6682 do some redrawing too. Also change the UpdateNode to an
6683 UpdateBelow so the newly added node gets painted.
6685 2006-01-11 Miguel de Icaza <miguel@novell.com>
6687 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6688 LinkLabel.cs, PropertyGrid.cs: Implement the
6689 UseCompatibleTextRendering property for 2.x
6691 * Application.cs (SetCompatibleTextRenderingDefault): Add.
6693 2006-01-11 Jackson Harper <jackson@ximian.com>
6695 * TreeView.cs: Use the property for setting the selected node so
6696 the correct events get raised.
6697 * TreeNode.cs: Update the tree when the fore/back colours of a
6700 2006-01-10 Jackson Harper <jackson@ximian.com>
6702 * TreeView.cs: Allow setting SelectedNode to null.
6704 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6706 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
6708 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6710 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
6712 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6714 * PrintDialog.cs: Added attributes and set default property values.
6716 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6718 * PrintControllerWithStatusDialog.cs:
6719 Added PrintControllerWithStatusDialog.
6721 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6723 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6724 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
6726 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6728 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
6730 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6732 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
6733 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
6735 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6737 * MimeIcon.cs: Added internal class SVGUtil.
6739 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6741 * FileDialog.cs: Don't crash if there are two files with the
6742 same name but different locations.
6744 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
6746 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
6747 dates across multiple month grids. Used to not highlight entire
6748 month, but does now.
6750 2006-01-06 Jackson Harper <jackson@ximian.com>
6752 * MonthCalendar.cs: Removed DoEvents call to prevent a running
6753 message loop. Change timer intervals to numbers that seem more
6756 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
6758 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
6759 object for location info since screen object is now implemented.
6761 2006-01-05 Jackson Harper <jackson@ximian.com>
6763 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
6764 * AsyncMethodResult.cs: We no longer use a WeakReference for the
6765 AsyncMethodResult, this is because we ALWAYS want the
6766 ManualResetEvent to get set.
6767 * Control.cs: When disposing use an async invoke to call shutdown
6768 code, so that thigns don't block on the finalizer thread. Also
6769 check if we even have a message loop before trying to send
6770 messages, if we don't then don't bother sending messages.
6771 - No more weak references for async methods
6772 * XplatUIDriver.cs: No more weak references for async methods.
6774 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6776 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
6777 returns two FontFamily with the same name
6779 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6781 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
6782 drawing disabled text. Instead using the ColorGrayText color
6784 2006-01-04 Jackson Harper <jackson@ximian.com>
6786 * TreeNode.cs: redraw the node when its image index is changed.
6788 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6790 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
6791 time I checked there are no others like it.
6793 2006-01-04 Jackson Harper <jackson@ximian.com>
6795 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
6796 this gives the behavoir I was looking for.
6797 * Control.cs: Special case Invoking EventHandlers, this matches MS
6798 and fixes part of bug #76326.
6800 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6802 * ThemeClearlooks.cs, FileDialog.cs:
6803 - Reflect the latest Theme class changes
6804 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
6807 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6809 * Theme.cs: Cache UI resource images and resize them if needed
6811 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6813 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
6814 is called. This fixes the crash in Nexxia when setting the font
6815 attributes in the chat. [However, RTF needs a look-over to make sure
6816 that all SelectionXXX methods handle the special case that selection
6817 is empty and therefore the change must be applied to all text starting
6818 at the cursor/selection start]
6820 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6822 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6823 XplatUIOSX.cs: Added SendMessage and PostMessage methods
6824 * X11Keyboard.cs: Switched to new way of calling PostMessage
6826 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6828 * Theme.cs: Added theme interface for images to allow the theme to
6829 control what images are used for things like FileDialog, MessageBox
6831 * MessageBox.cs: Now uses the new Theme icon/image interfaces
6833 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
6836 - Removed some dead code
6837 - Opening a recently used file does work now
6838 - Small UI enhancements
6841 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6843 * FileDialog.cs: Forgot too add __MonoCS__
6845 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6847 * FileDialog.cs: We are able to read recently used files now let's
6848 go on and write them.
6850 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
6852 * FileDialog.cs: Breathe some life into "last open"/"recently used"
6854 * MimeIcon.cs: Do a check for the top level media type also
6856 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6858 * ThemeClearlooks.cs:
6859 - Added CPDrawStringDisabled
6860 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
6861 some chars if the text doesn't fit into text_rect
6862 - DrawListViewItem: If View = View.LargeIcon center the image;
6863 rewrote the drawing of ListViewItem.Text if View =
6866 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6868 * MimeIcon.cs: Use default KDE icon theme if there is no
6869 "48x48" directory for the current icon theme, fixes #77114
6870 * Mime.cs: Disable not working and actually not used code.
6871 * ThemeWin32Classic.cs:
6872 - Replace "new SolidBrush" in GetControlBackBrush and
6873 GetControlForeBrush with ResPool.GetSolidBrush
6874 - Changed DrawListViewItem from private to protected virtual
6876 - Added form.MaximizeBox = true
6877 - Don't throw an exception if there is a broken symbolic link
6879 2005-12-23 Jackson Harper <jackson@ximian.com>
6881 * TabControl.cs: Give the panels focus, keyboard navigation is
6882 fixed so this works correctly now.
6883 - We need these key events also.
6884 * ToolBar.cs: Remove some of the poor mans double buffering.
6886 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
6888 * ComboBox.cs: The internal TextBox now returns the focus.
6890 2005-12-23 Jackson Harper <jackson@ximian.com>
6892 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
6894 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6896 * Control.cs: Removed debug code
6897 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
6900 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6902 * Control.cs: When creating the control, update the Z-order after
6903 all it's children are created, too. (Fixes nexxia not showing
6906 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6908 * Control.cs: Do not update the anchoring distances if layout is
6909 suspended, instead do it once layout is resumed
6911 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6914 - After many hours of debugging, for both Jackson and
6915 myself, it turns out that it helps to set the parent of a control
6916 if you want to actually see it onscreen. In the spirit of that
6917 discovery, we're now setting the parent of the control and
6918 it's children when the control's handle is created. This fix
6919 will make Lutz Roeder's Reflector run happily.
6920 - now just creating the handle instead of the whole control when
6921 getting a graphics context for the control.
6923 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6925 * ScrollableControl.cs: When calculating the canvas, don't consider
6926 the scrollbar widths. Instead, predict if horizontal scrollbar
6927 will affect canvas when deciding on vertical display and vice versa.
6929 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6931 * RichTextBox.cs: Set default RTF font for documents that don't
6932 have a font table (Fixes #77076)
6934 2005-12-22 Jackson Harper <jackson@ximian.com>
6936 * TextBoxBase.cs: It's difficult to do, but you can have an empty
6937 clipboard. This prevents a NullRef in that case.
6938 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
6939 clipboard. PRIMARY is for the currently selected text only. (We
6940 should implement PRIMARY at some point.
6942 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6944 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
6945 a Unicode function with a structure that was defined in Ansi way.
6948 2005-12-21 Jackson Harper <jackson@ximian.com>
6950 * StatusBar.cs: Statusbar handles its fore/back colours on it's
6951 on. Because thats how it rolls. (and this avoids it using ambient
6953 * ThemeWin32Classic.cs: Use the proper back color for filling.
6954 * Menu.cs: Use the system menu bar color for drawing menu
6955 bars. Using the window back color will bring ambient colours into
6958 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
6960 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
6961 Bitmaps were created and not disposed.
6963 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6965 * Control.cs (CreateControl): Don't do anything if the control is
6966 already created, otherwise we'd fire the OnCreated event more than
6969 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6971 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
6972 will always match. Instead return -1. Fixes #76464.
6974 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6976 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
6977 neither the beginning nor the end of the line (Fixes bug #76479)
6979 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6982 - ControlNativeWindow.ControlFromHandle(): Now handling situation
6983 where handle is invalid
6984 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
6985 instead of slower linear search
6986 * NativeWindow.cs: Don't remove the window from the hashtable until
6987 after the driver has destroyed it (since the driver might use
6988 Control.FromHandle to lookup the control object
6989 * Hwnd.cs: Added DestroyPending property to track if a window is
6990 already destroyed as far as the driver is concerned and only hasn't
6991 yet notified the control
6993 - Activate(): Check if the window is still valid before using the
6995 - Implemented DestroyChildWindow() method to mark child windows as
6996 destroyed when a window is destroyed. This prevents situations
6997 where we might call an X method based on queued events for a
6998 window that already has been destroyed but we haven't yet pulled
6999 the destroy method from the queue.
7000 - Added a call to the new DestroyChildWindow() method to the drivers
7001 DestroyWindow code. Also now marking the destroyed window itself
7004 2005-12-20 Jackson Harper <jackson@ximian.com>
7007 * StatusBarPanel.cs: Don't calculate panel sizes on draw
7008 anymore. Just do them when needed, also track the rects of panels
7009 so that we can optimize refreshing more in the future.
7011 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
7013 * ColorDialog.cs: Fixed focus drawing in small color controls
7015 2005-12-19 Jackson Harper <jackson@ximian.com>
7017 * InternalWindowManager.cs:
7018 * MdiWindowManager.cs: Cleanup some coordinate system changes so
7019 moving windows works properly.
7021 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
7024 - Removed call to InitLayout() from SetBoundsCore(); doc says
7025 it's only called when a control is added to a container
7026 - Split InitLayout logic, moved to separate UpdateDistances() method
7027 since we need to perform those calculations more often than just
7028 when adding the control to a container. (Needed to fix #77022)
7029 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7030 - Reduced the OnBindingContextChanged events count, don't send them
7031 unless the control is created, we still aren't totally matching
7032 MS, but I can't quite figure out some of their rules
7034 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7036 * ThemeClearlooks.cs: Corrected distance between ProgressBar
7039 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7041 * ThemeClearlooks.cs:
7042 - Updated ProgressBar drawing
7043 - Corrected drawing of ScrollBars and scroll buttons
7044 - Some temporary fixes for minor pixel artefacts
7046 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
7049 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7050 cause events to be sent in the same order as MS does.
7051 - Added ChangeParent() method to trigger various OnXXXChanged events
7052 that need to be fired when a parent changes (This is a reworking
7053 of the patch from r54254, with the X11 errors fixed)
7054 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7055 since on MS we get OnLayoutChanged events when calling Clear()
7056 - Changed Enabled property to consider parent state as well, if a
7057 parent is not enabled, the control will not be either
7058 - Changed Parent property to simply call Controls.Add() since that
7059 now does all the work required, this way we avoid code duplication
7060 - Threw in a few OnBindingsContextChanged calls to try and match
7061 when MS sends them. We seem to send a few too many, though.
7062 - Added call to CreateControl when adding the control to a parent.
7063 We were never calling CreateControl. Still needs some work, in
7064 some places we treat HandleCreated and ControlCreated as equal,
7066 - Removed obsolete commented out code from UpdateZOrder()
7068 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
7070 * ThemeClearlooks.cs: Updated TrackBar drawing.
7072 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7074 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7076 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
7078 * FileDialog.cs: Add the Help button and the open readonly
7079 checkbox only if needed
7081 2005-12-16 Jackson Harper <jackson@ximian.com>
7083 * Control.cs: Make sure we have an active menu before trying to
7084 process commands on it. Prevents menu-less forms from crashing
7085 when Alt is pressed.
7086 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7088 * RichTextBox.cs: Expand statement to help out gmcs and fix the
7091 2005-12-16 Jackson Harper <jackson@ximian.com>
7093 * InternalWindowManager.cs: Don't translate tool windows screen
7094 coordinates. This fixes windows 'bouncing' around when being moved.
7096 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7099 - MaxLength now treats 2^31-1 equal to unlimited length (this is
7100 not quite MS compatible, MS uses that number only for single line
7101 and 2^32-1 for multi-line, but I figure it won't hurt keeping
7103 - Now enforcing the MaxLength limit when entering characters
7104 - Added argument to internal Paste() method to track if it's called
7105 from programatically or via keyboard, since keyboard driven pastes
7106 need to enforce max-length
7107 - Added logic to Paste to only paste as many chars as MaxLength
7109 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7111 - Added Length property to return number of characters in document
7112 - Added private CharCount property which only tracks actual chars
7113 in the document (no linefeeds) and fires event when CharCount
7115 - Added tracking of character count to all methods that alter it
7116 - Added LengthChanged event to allow applications to subscribe
7117 to any changes to the document
7119 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
7122 - Removed local password_char field (moved to TextBoxBase)
7123 - Now setting the document's password var when password is
7126 - Added password_char field (needed here so MultiLine can
7128 - Added logic to MultiLine property setter to set the document's
7129 variable when password display is allowed
7130 - Removed debug code and made some debug code conditional
7132 - Added RecalculatePasswordLine() method to handle special password
7134 - Added PasswordChar property, also added related tracking vars
7135 - Draw() method now uses local text var for grabbing text to draw,
7136 this var is set to line.text unless we're doing password display,
7137 then it is set to the pre-generated all-password-chars line
7138 - Added calling RecalculatePasswordLine() method for password lines
7140 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7143 - Added Reparented property to allow tracking of Window Manager
7144 reparenting actions (which affect X/Y calculations of toplevel
7146 - Made ToString() print window handles in hex
7148 - AddConfigureNotify(): Now uses reparented state off Hwnd to
7149 determine if X/Y needs offsetting
7150 - AddConfigureNotify(): Fixed offset calculations
7151 - Now adds ReparentNotify messages into the queue
7152 - Now processes ReparentNotify messages and causes a
7153 WM_WINDOWPOSCHANGED message to be sent upstream if a window
7154 is reparented (as most likely it's X/Y coordinates are changed
7157 2005-12-14 Jackson Harper <jackson@ximian.com>
7159 * XplatUIX11.cs: Tool windows still need to respek focus.
7161 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
7163 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7164 have a working release
7166 2005-12-13 Jackson Harper <jackson@ximian.com>
7168 * Form.cs: Update styles after setting the border style regardless
7169 of whether or not the window is using a window manager.
7171 2005-12-13 Jackson Harper <jackson@ximian.com>
7173 * Form.cs: We now hook into an internal window manager instead of just an
7174 MDI subsystem, this is so we can have properly behaving tool windows.
7175 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7176 * InternalWindowManager.cs: New internal class that acts as a
7177 window manager for tool windows and as a base for mdi windows.
7178 * MdiWindowManager.cs: New class that acts as a window manager for
7181 2005-12-12 Jackson Harper <jackson@ximian.com>
7183 * Control.cs: Updates so we match behavoir for for implicit
7184 controls. Fixes explosions in MDI.
7186 2005-12-12 Jackson Harper <jackson@ximian.com>
7188 * Control.cs: Implement Invalidate (Region).
7190 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
7193 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
7194 the same events as MS does. MS fires events for each property
7195 except, for unknown reasons, Cursor, when the control is reparented.
7196 I can't seem to totally match add/remove since MS also fires some
7197 VisibleChanged events, which makes no sense. Consolidated the
7198 parenting code into a separate method so it can be called from
7199 both Add and Remove. set_Parent no longer needs any special logic
7200 as it calls the parent's add method which implicitly fires
7202 - Removed some obsolete code and debug output
7203 - Enabled state is inherited from parents, if this is enabled
7205 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7207 * Form.cs: Removed commented out code
7209 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
7212 - Added internal version of Invoke, with additional argument
7213 indicating if we're calling it from a Dispose() handler. That
7214 way we can avoid BeginInvoke throwing an exception if we're
7215 calling for an already destroyed window.
7216 - Added a dispose argument to BeginInvokeInternal, and made the
7217 check if a valid window handle chain exists conditional on
7218 it not being a dispose call
7219 - Removed code in DestroyHandle to destroy our children. Since we
7220 now handle the WM_DESTROY message we will catch all our children
7222 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7224 - Added a field to track the application context of the form.
7225 - No need to set closing variable as response to WM_CLOSE, instead
7226 we destroy the window. We also call PostQuitMessage if the form
7227 has an application context (which makes it the main app form,
7228 which, when closed terminates the app)
7230 - Dropped Exit() method, it's naming was confusing
7231 - Added PostQuitMessage() which causes GetMessage to return false
7232 once the message queue is empty
7233 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
7235 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7236 no longer a valid XplatUI method, but left it in since it's used
7237 internally. Added empty PostQuitMessage() method.
7238 * MenuAPI.cs: Replaced call to Exit() with call to
7239 PostQuitMessage, even though this is probably no longer needed.
7240 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7241 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7243 - Replaced call to XplatUI.Exit() with PostQuitMessage()
7244 - Removed old debug code that would call XplatUI for exception
7245 display, enabled standard exception handling (Still not enabled
7246 though, until NativeWindow's ExternalExceptionHandler define
7249 - Added internal method to allow control to update NativeWindow
7250 after a window has been destroyed
7251 - Added handling of already destroyed windows when calling i
7253 - Added removal of handle from list on ReleaseHandle
7255 - Dropped GetMessageResult var and related code
7256 - Added PostQuitState to field to track if PostQuitMessage has been
7258 - Dropped Exit() method
7259 - Added PostQuitMessage() method
7260 - GetMessage now will return false if PostQuitState is set and no
7261 more messages are in the queue.
7262 - Expose handler will no longer generate WM_PAINT messages if we are
7263 in PostQuitState since it's very likely any windows have already
7264 been destroyed, and since Hwnd won't get updated until we have
7265 processed the DestroyNotify we'd be causing X errors.
7267 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7269 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7270 Thanks to Mike for pointing out the err of my ways.
7272 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7274 * Control.cs(PreProcessMessage): Moved menu handling back, but
7275 after all other key handling, to match MS (who handles Menu in
7277 * Menu.cs (WndProc): Removed my brainfart
7279 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7281 * Control.cs(PreProcessMessage): Removed special menu handling
7282 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7284 2005-12-07 Mike Kestner <mkestner@novell.com>
7286 * Control.cs : special case SYSKEYUP so that we can adjust keynav
7287 state according in tracker.
7288 * Menu.cs : promote tracker field to base class and provide a tracker
7289 lookup capability. Add/Remove shortcuts dynamically if the top menu
7290 has a tracker. Unparent items that are removed from the collection.
7291 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7292 * Theme*.cs: add always_show_hotkeys field to support configurability
7293 of mnemonic display. win32 doesn't show mnemonics until Alt is
7296 2005-12-07 Jackson Harper <jackson@ximian.com>
7298 * MdiChildContext.cs: Use Control.ResetCursor.
7299 * Control.cs: ResetCursor needs to set the property so that the
7300 correct XplatUI call gets made.
7302 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7304 * Control.cs: More fixes to make our key events match MS. We
7305 were not setting the modifier state on KeyData, and we were
7306 not generating any events when Alt was pressed with a key
7307 since handling of WM_SYSxxx was missing for the OnKey methods.
7309 2005-12-07 Jackson Harper <jackson@ximian.com>
7311 * MdiChildContext.cs: reenable the sizing code.
7312 - When the mouse leaves a window reset its cursor.
7314 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7316 * ThemeClearlooks.cs: Reflect latest Hwnd changes
7318 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
7320 * Hwnd.cs: Now using the theme 3d bordersize to calculate
7321 widths of Fixed3D borders
7323 2005-12-07 Jackson Harper <jackson@ximian.com>
7325 * MdiClient.cs: Fix warnings. Earn Mike's love.
7327 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
7329 * ThemeClearlooks.cs:
7330 - Adjusted mouse over button color
7331 - Added first parts of CheckBox drawing
7332 - Added correct color for selected text background
7333 - Fixed ComboBox drawing
7334 - Added CPDrawBorder3D and CPDrawBorder
7336 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7338 * XplatUIX11.cs: Added call to XBell for AudibleAlert
7340 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7342 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7343 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7344 alert users via sound. We could add an enum arg with different
7345 types of alerts in the future
7347 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
7349 * Control.cs: Fix behaviour problems pointed out by Mike
7351 2005-12-05 Mike Kestner <mkestner@novell.com>
7353 * StatusBarPanel.cs: add Invalidate method and hook it into all the
7354 prop setters. Calls parent.Refresh for now, but could be maybe be
7355 optimized with an internal method on StatusBar at some point.
7358 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
7360 * RichTextBox.cs: Implemented get_SelectionColor
7362 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
7364 * ThemeClearlooks.cs:
7366 - Draw black button border only if button is Form.AcceptButton
7367 - Draw correct button color for pressed RadioButton if the mouse
7368 has entered the button
7369 - Updated ProgressBar drawing!
7370 - Updated CPDrawSizeGrip drawing
7371 - Updated StatusBarPanel drawing
7373 2005-12-05 Mike Kestner <mkestner@novell.com>
7375 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7376 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7378 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
7380 * ThemeClearlooks.cs: Initial check-in, activate with
7381 export MONO_THEME=clearlooks
7382 * ThemeEngine.cs: Added ThemeClearlooks
7384 2005-12-03 Mike Kestner <mkestner@novell.com>
7386 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7389 2005-12-02 Jackson Harper <jackson@ximian.com>
7391 * Form.cs: If the child form has no menu the default main menu is
7392 used as the active menu.
7394 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7396 * ListBox.cs: Check if any items exist before trying to resolve
7397 coordinates into items
7399 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7401 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7402 as the second color for the background hatch
7404 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
7406 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7407 * RichTextBox.cs: FormatText position arguments are 1-based, now making
7408 sure that what we pass to FormatText is always 1-based. Fixes #76885
7410 2005-11-29 Miguel de Icaza <miguel@novell.com>
7412 * NumericUpDown.cs (EndInit): When we are done initializing,
7413 reflect any updates on the UI.
7415 2005-12-02 Jackson Harper <jackson@ximian.com>
7417 * ImplicitHScrollBar.cs:
7418 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7419 their container controls.
7420 * TreeView.cs: Use the new implicit scrollbars.
7422 2005-12-02 Jackson Harper <jackson@ximian.com>
7424 * TreeView.cs: Make top_node internal so the TreeNodeCollections
7426 * TreeNodeCollection.cs: If we remove the topnode we need to
7427 update topnode to the next node in line.
7428 - When clearing nodes go through the same process as removing
7429 them, so they get depareneted and checked if they are top node.
7431 2005-12-01 Jackson Harper <jackson@ximian.com>
7433 * TreeView.cs: When imagelists are used the image area is
7434 selectable as well as the text.
7435 - If there are no selected nodes select the first one.
7436 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7437 so don't do it more then we need to.
7439 2005-12-01 Jackson Harper <jackson@ximian.com>
7441 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7442 that arrows can be scaled.
7444 2005-12-01 Jackson Harper <jackson@ximian.com>
7446 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7447 fail. Patch by Dieter Bremes
7449 2005-11-30 Jackson Harper <jackson@ximian.com>
7451 * Form.cs: Property is 2.0 only
7452 * PrintDialog.cs: Signature fix.
7454 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7457 - No longer artificially moves text 2 pixels down (now that we have
7458 borders this is no longer needed)
7459 - Added calcs for left, hanging and right indent
7461 2005-11-23 Mike Kestner <mkestner@novell.com>
7463 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7465 2005-11-30 Jackson Harper <jackson@ximian.com>
7467 * MdiChildContext.cs: Set the cloned menus forms, as these don't
7468 get cloned as part of CloneMenu ().
7469 * Menu.cs: Make sure the parent of the items get set correctly
7470 when they are added. And the owners are notified of the changes.
7471 * Form.cs: Create an ActiveMenu property, so that when MDI is used
7472 we can change the menu being displayed/handled by the form without
7473 changing the menu assosciated with the form.
7474 - Don't let Mdi children draw/handle menus.
7476 2005-11-30 Jackson Harper <jackson@ximian.com>
7478 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
7479 a MenuChanged event. Just to make the API a little more
7482 * MenuItem.cs: Use the new OnMenuChanged
7483 * MdiChildContext.cs: Handle menu merging.
7484 * Form.cs: Implement MergedMenu.
7486 2005-11-30 Jackson Harper <jackson@ximian.com>
7488 * Menu.cs: We were misusing Add. Add goes behind the specified
7489 index according to the docs, and does not replace the specified
7490 index. So I added an Insert method.
7492 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
7494 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
7495 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
7497 * RichTextBox.cs: Added calls to base for DnD events
7499 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
7502 - Fixed drag-selection related crash; style fixes
7503 - Implemented undo class
7504 o Implemented method to capture document state for specified
7505 range in document tree
7506 o Implemented method to restore captured document state
7507 o Implemented cursor tracking
7508 o Implemented basic undo stack
7509 - Added undo cursor tracking to methods altering cursor location
7510 - Added undo tracking to selection deletion (still missing
7511 other text-altering hookups)
7513 - Added SelectionLength property
7514 - Implemented CanPaste()
7515 - Implemented Paste()
7516 - Added missing protected methods
7517 - Fixed RTF->Document conversion; now uses font index 0 and color
7518 index 0 as the default font for the parsed text
7519 - Fixed RTF<->Document font size translation
7520 - Fixed RTF generation, now properly handles cross-tag boundaries
7521 for single line selection
7522 - No longer always appends blank line to generated RTF
7524 - Added missing attributes
7525 - Hooked up undo-related methods
7527 - Implemented Copy()
7528 - Implemented Paste()
7530 - Fixed caret mis-behaviour on backspace across line-boundaries
7532 2005-11-29 Jackson Harper <jackson@ximian.com>
7534 * MdiClient.cs: Add a method for activating mdi children. Very
7535 basic right now. I imagine someday it might need more girth.
7536 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
7537 children windows names are added to the menu item.
7538 * ThemeWin32Classic.cs: Draw the arrow if the item is an
7539 mdilist. This happens regardless of whether or not there are any
7540 mdi windows to see in the list, and according to my tests happens
7541 before the items are even added. Also happens if there isn't even
7542 an mdi client to get windows from.
7544 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
7546 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
7547 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
7549 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
7551 * DataGridTableStyle.cs:
7552 - Create always the styles for the missing columns even if they are
7553 provided by the user (not default table style)
7556 - Fixes SetDataBinding (always re-attach source)
7557 - Fixes SetNewDataSource (only clear styles if they are not for
7559 - Expands OnTableStylesCollectionChanged to handle style refresh
7562 2005-11-29 Jackson Harper <jackson@ximian.com>
7564 * FileDialog.cs: Implement missing bits, remove some dead
7566 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
7567 creation of the panel so that the options set on the dialog are
7568 seen when the panel is created.
7569 * TreeView.cs: raise a click when items are clicked.
7571 2005-11-29 Jackson Harper <jackson@ximian.com>
7573 * MdiClient.cs: Pass some signature methods through to base.
7575 2005-11-28 Jackson Harper <jackson@ximian.com>
7577 * ListView.cs: Raise the click event when items are clicked.
7579 2005-11-28 Jackson Harper <jackson@ximian.com>
7581 * MdiClient.cs: Make this algorithm even more beautiful. And fix
7584 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
7586 * ThemeNice.cs: - Removed 1 pixel bitmaps
7587 - Use SmoothingMode.AntiAlias where it makes sense
7588 (ScrollButton arrow for example)
7589 - Enhanced Button focus drawing
7590 - Fixed ComboBox drawing (no artefacts anymore, focus
7591 rectangle is back again, reduced size of ComboButton, etc.)
7592 - Fixed RadioButton focus drawing for Appearence.Button
7593 - Slight ScrollButton redesign
7594 - Some LinearGradientBrush size fixes
7595 - GroupBoxes have now rounded edges
7596 - Fixed StatusBar drawing
7598 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
7600 * ThemeNice.cs: - Remove dead code
7601 - use correct background colors for menus, etc.
7602 - Fake pixel drawing with 1 pixel bitmaps
7604 2005-11-24 Jackson Harper <jackson@ximian.com>
7606 * MdiClient.cs: Size the scrollbars when resizing the window.
7607 - Resize the maximized windows when the client is resized
7608 * Form.cs: Make the child context available
7610 2005-11-23 Jackson Harper <jackson@ximian.com>
7612 * MdiChildContext.cs: Don't size windows if they are maximized.
7614 2005-11-23 Mike Kestner <mkestner@novell.com>
7616 * ContextMenu.cs: use MenuTracker.
7617 * Control.cs: remove menu handle usage.
7618 * Form.cs: remove menu handle usage.
7619 * Hwnd.cs: remove menu handle usage.
7620 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
7621 motion and clicks to the new Tracker handlers.
7622 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
7624 * MenuAPI.cs: refactored to combine popup and menubar event handling.
7625 Killed the MENU and MENUITEM data types and associated collections
7626 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
7627 MenuTracker class that exposes the leftovers from the old MenuAPI
7628 static methods. Restructured Capture handling so that only one grab is
7629 done for the entire menu hierarchy instead of handing off grabs to
7630 submenus. Tracker now has an invisible control to Capture when active.
7631 * MenuItem.cs: add sizing accessors, kill Create
7633 * Theme.cs: remove menu handle and MENU(ITEM) usage.
7634 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
7635 MENU(ITEM). remove menu handle usage, use Menu directly.
7636 * XplatUIDriver.cs: remove menu handle usage.
7637 * XplatUIOSX.cs: remove menu handle usage.
7638 * XplatUIWin32.cs: remove menu handle usage.
7639 * XplatUIX11.cs: remove menu handle usage.
7641 2005-11-22 Jackson Harper <jackson@ximian.com>
7643 * Hwnd.cs: Don't compute the menu size for
7644 DefaultClientRectangle.
7645 - Reenable menu sizes being computed for GetClienRectangle.
7646 * Form.cs: Remove comment of trechery
7648 2005-11-22 Jackson Harper <jackson@ximian.com>
7650 * Hwnd.cs: The adjustments for the menu bar are made when it is
7651 attached to the form.
7653 2005-11-19 Jackson Harper <jackson@ximian.com>
7655 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
7656 (just like on windows).
7658 2005-11-19 Jackson Harper <jackson@ximian.com>
7660 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
7661 use real buttons anymore because they are in non client area. The
7662 one TODO here is that I need to somehow invalidate a section of
7663 the non client area.
7665 2005-11-18 Jackson Harper <jackson@ximian.com>
7667 * Control.cs: Put the enum check back in now that MDI doesnt have
7668 to use this to set border styles.
7669 * Form.cs: Only set mdi child windows borders if the handle has
7671 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
7672 this directly on to the driver.
7673 - Get the move start position before adjusting for the titlebar
7674 height, this fixes the windows "skipping" when they are first
7677 2005-11-18 Jackson Harper <jackson@ximian.com>
7679 * XplatUIX11.cs: Just compute the mdi borders separately as they
7680 don't totally match up with normal form borders.
7682 2005-11-18 Jackson Harper <jackson@ximian.com>
7684 * Control.cs: Set WS_ styles for borders, so that the driver does
7685 not have to retrieve the control instance to figure out what kind
7686 of borders it should have.
7687 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
7688 driver can know its an mdi child easily.
7689 * XplatUIX11.cs: Get the border styles and whether the window is
7690 MDI from the Styles and ExStyles params instead of having to get a
7691 control. This prevents a chicken and egg problem.
7693 2005-11-18 Jackson Harper <jackson@ximian.com>
7695 * MdiClient.cs: Fix typo so scrollbars show up correctly.
7697 2005-11-18 Jackson Harper <jackson@ximian.com>
7699 * MdiClient.cs: Calculate when to add and remove scrollbars
7701 * MdiChildContext.cs: Adjust the y position to take the titlebar
7703 - No height for FormBorderStyle.None
7705 2005-11-18 Jackson Harper <jackson@ximian.com>
7707 * Control.cs: Allow non enum values to be used for
7708 InternalBorderStyle. MDI does this to set a special border style.
7709 - New utility methods for converting points to/from client coords
7710 - Add the newly created control to the Controls collection before
7711 updating its style. This way UpdateStyle can walk the control
7712 heirarchy to find the control if needed.
7713 so I don't need to create a new Point object all the time.
7714 * Form.cs: Let MDI windows handle their border styles.
7715 - Set styles on MDI windows so the correct title style is derived.
7716 * MdiChildContext.cs: Move all the painting and window handling
7717 into the non client area.
7718 - Use correct sizing and put correct buttons on frames based on
7719 the FormBorderStyle.
7720 - Notify the mdi client about scrolling
7721 - Need to handle the buttons ourselves now, because they are all
7722 in non client areas and we can't add controls there.
7723 * MdiClient.cs: Halfway to scrolling, this implementation is
7724 somewhat broken though, we need to check to make sure other
7725 windows aren't causing scrolling before removing the bars. Also
7726 the bars need to be drawn on top, maybe I can switch implicit
7727 controls to be on top.
7728 * Hwnd.cs: caption_height and tool_caption_height are now
7729 properties of an hwnd, this way they can be set by the driver
7730 based on the type of window they are. In X11 the window manager
7731 handles the decorations so caption_height is zero unless its an
7733 - Add 3 pixel borders for MDI windows (0xFFFF).
7734 - Get rid of some code duplication, have DefaultClientRectanle
7735 just call GetClientRectangle.
7736 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
7738 - Set border styles differently for mdi windows.
7739 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
7742 2005-11-15 Mike Kestner <mkestner@novell.com>
7744 * Menu.cs: when adding an item to the collection, if item is already
7745 parented, remove it from the parent.
7747 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
7749 * X11DesktopColors.cs: Added KDE support
7751 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
7754 - Clipboard methods now can translate Rtf format
7755 - No longer removes clipboard contents whenever a new format is added
7756 to allow placing multiple formats on the clipboard
7757 * Clipboard.cs: Clipboard now supports getting a IDataObject and
7758 will place all formats contained in it onto the clipboard. Also
7759 now cleans the clipboard before placing a new object onto it
7761 - Implemented set_Rtf
7762 - Implemented set_SelectedRtf
7763 - Created InsertRTFFromStream() method to allow single code base
7764 for all properties and methods that insert RTF into document
7765 - Removed debug output
7767 - Fixed Delete(int) to fix up line numbers
7768 - Fixed ReplaceSelection to combine start and end line
7769 - Fixed serious DeleteChars bug that would leave the document tree
7771 - Improved DumpTree with several logic checks to detect broken
7773 - Removed debug lines
7774 - Fixed Caret.WordForward/WordBack moving code, now always also
7775 updates caret.tag (fixes crash when word-selecting across tag
7776 boundaries via keyboard)
7777 - Added Insert() method for inserting multiline text into documents
7778 - Fixed DeleteChars() calculation errors that would cause a broken
7779 tag chain with multiple tag lines
7780 - DeleteChars() no longer crashes on multi-tag lines if not all tags
7781 - Split() no longer moves caret if split is at caret location
7782 - ReplaceSelection() now updates the cursor and re-displays it
7783 - ReplaceSelection() now uses new Insert() method to avoid code
7785 - FormatText() can now handle formatting partial lines
7787 - Append now uses new TextControl.Insert() method (this avoids
7789 - Implemented Ctrl-X (Cut) (
7790 - Implemented Ctrl-C (Copy)
7791 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
7792 regeneration when pasting text; roundtripping Copy&Paste within
7793 edit control still fails due to some calculation bugs in GenerateRTF)
7794 - The Delete key will now remove the current selection if it is visible
7795 * TextBox.cs: Removed debug lines
7796 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
7797 driver to be initialized and can't therefore be done via a static ctor)
7799 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
7801 * TextControl.cs: Added backend code for finding char arrays and strings
7803 - Added mouse wheel scroll support
7804 - Added support for VScroll and HScroll events
7806 - Implemented all seven Find() variants
7807 - Implemented GetCharFromPosition()
7808 - Implemented GetCharIndexFromPosition()
7809 - Implemented GetLineFromIndex()
7810 - Implemented GetPositionFromCharIndex();
7811 - Implemented SaveFile for PlainText and UnicodeText
7812 - Fixed set_Font, now setting a new font applies that font to
7814 - Implemented generic Document to RTF converter
7815 - Implemented SaveFile for RichText format (still missing unicode
7816 conversion for non-ansi chars)
7817 - Implemented get_Rtf
7818 - Implemented get_SelectedRtf
7820 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
7822 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
7823 to allow any captures to be released before triggering OnClick. This
7824 way a click handler may capture the mouse without interference.
7825 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
7826 This way we send them even though X may not allow a grab (if the window
7827 isn't visible, for example)
7829 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
7831 * DataGridViewRowEventArgs.cs: DataGridView implementation
7832 * DataGridViewElement.cs: DataGridView implementation
7833 * DataGridViewComboBoxCell.cs: DataGridView implementation
7834 * DataGridViewDataErrorContexts.cs: DataGridView implementation
7835 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
7836 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
7837 * ImageLayout.cs: DataGridView implementation
7838 * DataGridViewComboBoxColumn.cs: DataGridView implementation
7839 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
7840 * DataGridViewSelectionMode.cs: DataGridView implementation
7841 * IDataGridViewEditingControl.cs: DataGridView implementation
7842 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
7843 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
7844 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
7845 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
7846 * DataGridViewColumnSortMode.cs: DataGridView implementation
7847 * DataGridView.cs: DataGridView implementation
7848 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
7849 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
7850 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
7851 * Padding.cs: DataGridView implementation
7852 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
7853 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
7854 * DataGridViewRowEventHandler.cs: DataGridView implementation
7855 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
7856 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
7857 * DataGridViewButtonCell.cs: DataGridView implementation
7858 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
7859 * DataGridViewEditMode.cs: DataGridView implementation
7860 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
7861 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
7862 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
7863 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
7864 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
7865 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
7866 * DataGridViewCellEventHandler.cs: DataGridView implementation
7867 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
7868 * DataGridViewCellStyleConverter.cs: DataGridView implementation
7869 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
7870 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
7871 * DataGridViewColumnEventArgs.cs: DataGridView implementation
7872 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
7873 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
7874 * QuestionEventArgs.cs: DataGridView implementation
7875 * IDataGridViewEditingCell.cs: DataGridView implementation
7876 * DataGridViewTriState.cs: DataGridView implementation
7877 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
7878 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
7879 * DataGridViewColumnCollection.cs: DataGridView implementation
7880 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
7881 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
7882 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
7883 * DataGridViewColumn.cs: DataGridView implementation
7884 * DataGridViewCellBorderStyle.cs: DataGridView implementation
7885 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
7886 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
7887 * DataGridViewRow.cs: DataGridView implementation
7888 * DataGridViewImageCellLayout.cs: DataGridView implementation
7889 * DataGridViewImageCell.cs: DataGridView implementation
7890 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
7891 * DataGridViewCheckBoxCell.cs: DataGridView implementation
7892 * DataGridViewHeaderCell.cs: DataGridView implementation
7893 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
7894 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
7895 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
7896 * DataGridViewTextBoxColumn.cs: DataGridView implementation
7897 * QuestionEventHandler.cs: DataGridView implementation
7898 * DataGridViewCellStyleScopes.cs: DataGridView implementation
7899 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
7900 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
7901 * DataGridViewCell.cs: DataGridView implementation
7902 * DataGridViewCellEventArgs.cs: DataGridView implementation
7903 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
7904 * DataGridViewCellStyle.cs: DataGridView implementation
7905 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
7906 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
7907 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
7908 * TextFormatFlags.cs: DataGridView implementation
7909 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
7910 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
7911 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
7912 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
7913 * DataGridViewButtonColumn.cs: DataGridView implementation
7914 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
7915 * HandledMouseEventArgs.cs: DataGridView implementation
7916 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
7917 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
7918 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
7919 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
7920 * DataGridViewRowCollection.cs: DataGridView implementation
7921 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
7922 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
7923 * DataGridViewHitTestType.cs: DataGridView implementation
7924 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
7925 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
7926 * DataGridViewColumnEventHandler.cs: DataGridView implementation
7927 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
7928 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
7929 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
7930 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
7931 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
7932 * DataGridViewContentAlignment.cs: DataGridView implementation
7933 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
7934 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
7935 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
7936 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
7937 * DataGridViewPaintParts.cs: DataGridView implementation
7938 * DataGridViewCellCollection.cs: DataGridView implementation
7939 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
7940 * DataGridViewImageColumn.cs: DataGridView implementation
7941 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
7942 * DataGridViewElementStates.cs: DataGridView implementation
7943 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
7944 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
7945 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
7946 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
7947 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
7948 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
7949 * DataGridViewRowHeaderCell.cs: DataGridView implementation
7950 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
7951 * DataGridViewTextBoxCell.cs: DataGridView implementation
7952 * DataGridViewBand.cs: DataGridView implementation
7953 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
7954 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
7955 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
7956 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
7957 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
7958 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
7959 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
7960 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
7961 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
7962 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
7963 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
7965 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
7967 * ThemeWin32Classic.cs:
7968 - Draw the outside focus rectangle around buttons
7969 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
7970 doesn't use end caps for every dash of a line anymore. This
7971 workaround ignores the forecolor.
7973 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
7975 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
7978 2005-11-07 Jackson Harper <jackson@ximian.com>
7980 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
7982 2005-11-07 Jackson Harper <jackson@ximian.com>
7984 * ScrollableControl.cs: Calculate the maximum and change vars
7985 (more) correctly so that scrollbars appear as a sensible size.
7987 2005-11-04 Jackson Harper <jackson@ximian.com>
7989 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
7991 * TreeView.cs: When the tree is sorted null out the top_node so
7992 that it is recalculated.
7993 - Use dotted lines instead of dashed lines to match MS better.
7995 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
7998 - Implements key search for items. Useful when browsing files with FileDialog
7999 - When changing view mode or when clear the items reset scrollbar positions
8001 2005-11-04 Jackson Harper <jackson@ximian.com>
8003 * CurrencyManager.cs: Implement the MetaDataChanged event, the
8004 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8005 as to what the method may do as there is no real way of creating a
8006 derived CurrencyManager and calling the method.
8008 2005-11-03 Jackson Harper <jackson@ximian.com>
8010 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8011 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8012 method which seems to just be used internally to refresh the tabs.
8014 2005-11-03 Jackson Harper <jackson@ximian.com>
8016 * TabControl.cs: Implement the remove method. Fix some broken
8019 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8021 * DateTimePicker.cs:
8022 - Added missing DateTimePickerAccessibleObject class
8023 - Added missing events
8024 - Added OnFontChanged method
8025 * Form.cs: Added missing attributes
8026 * TreeView.cs: Added missing attributes
8028 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8030 * GridItemCollection.cs: Fix signatures
8032 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8034 * XplatUI.cs: Updated build rev/date
8035 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
8036 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8037 * Application.cs: Trigger context-specific ExitThread events
8039 2005-11-03 Jackson Harper <jackson@ximian.com>
8043 * GridTableStylesCollection.cs:
8048 * MonthCalendar.cs: Signature fixes
8050 2005-11-03 Jackson Harper <jackson@ximian.com>
8052 * TreeNodeCollection.cs: Remove should not be virtual.
8053 * TreeView.cs: Implement the last of the missing methods.
8055 2005-11-03 Jackson Harper <jackson@ximian.com>
8057 * TreeNodeConverter.cs: Implement to get off my class-status back.
8059 2005-11-03 Jackson Harper <jackson@ximian.com>
8061 * TreeView.cs: Hookup the bits for drag and drop.
8062 * TreeNode.cs: Don't cache the tree_view or index anymore, now
8063 that nodes can be moved from tree to tree easily this just causes
8064 all sorts of problems.
8065 * TreeNodeCollection: Don't need to give treenodes an index and
8066 treeview anymore when they are added, these are computed on the
8067 fly. Also make sure to remove a node before its added.
8069 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
8072 - Added CaretSelection enum
8073 - Added comparison methods to Marker struct, makes selection code
8075 - Added SelectionStart and SelectionEnd as 'moveable' location for
8076 the CaretDirection enum and handler
8077 - Added selection_prev variable to track optimized invalidation for
8078 word and line selection
8079 - Added SelectionVisible property (returns true if there is a valid
8081 - Switched CaretHasFocus to only display the caret if there is no
8083 - Avoiding StringBuilder.ToString to retrieve a single char, instead
8084 using the direct character index; should be much faster
8085 - Added various conditional debug statements
8086 - Fixed invalidation calculation for selection ranges
8087 - Added ExpandSelection() method to support word and line selection
8088 - Switched SetSelectionToCaret to use new Marker compare overloads
8089 - Added central IsWordSeparator() method to determine word
8090 separators/whitespace and FindWordSeparator() to streamline common
8091 usage of IsWordSeparator()
8093 - Removed unneeded grabbed variable, it was just mirroring
8095 - No longer firing OnTextChanged event when Text setter is called,
8096 since the base will fire the event for us
8097 - Added handling of Ctrl-Up/Down selection
8098 - Added handling of Shift-Cursorkey selection
8099 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8101 - Added handling of Shift and Ctrl-Shift-Home/End selection
8102 - Removed some debug output
8103 - Added handling for single/double/tripple-click to place caret/
8104 select word/select line respectively (Fixes bug #76031)
8105 - Added support for drag expansion of word/line selection
8106 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8109 2005-11-02 Jackson Harper <jackson@ximian.com>
8111 * X11Dnd.cs: If the drag is going to and from a MWF window just
8112 copy the data instead of sending it out through the X Selection
8115 2005-11-02 Jackson Harper <jackson@ximian.com>
8118 * XplatUIX11.cs: When in a drag we don't want motion notify
8119 messages to get passed on to the other controls. This prevents
8120 mouse move messages from showing up in the drag source.
8122 2005-11-02 Jackson Harper <jackson@ximian.com>
8124 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
8125 the correct button is release to end a drag.
8126 * XplatUIX11.cs: Make the button state internal so the drag system
8127 can access it. Dragging needs to know about all button releases,
8128 not just left button.
8130 2005-11-02 Miguel de Icaza <miguel@novell.com>
8132 * Form.cs (Icon): If the icon is null, reset the icon to the
8135 * Cursor.cs: When writing the AND-mask bitmap do not include the
8136 number of colors, but hardcode those to two (black and white),
8137 fixes the loading of color cursors (Paint Dot Net).
8139 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8140 turn off autoscaling.
8142 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8144 2005-11-02 Jackson Harper <jackson@ximian.com>
8146 * X11Dnd.cs: Make sure to send a status message if the pointer
8147 enters a control that can not accept a drop, otherwise the cursor
8148 isn't updated correctly. Also tried to compress the lines of code
8151 2005-11-02 Jackson Harper <jackson@ximian.com>
8153 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8154 set actions correctly. This isn't perfect as XDND and win32 have
8155 some differences on how you allow actions. I'll clear this up by
8156 adding a path for drag from MWF to MWF windows.
8157 * XplatUIX11.cs: Hook into the dnd system.
8159 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
8161 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8162 previously shown but they are no longer need it. Very obvious when
8163 browsing files with FileDialog.
8165 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
8167 * Control.cs: We always need to call OnPaintBackground. We pretty much
8168 ignore AllPaintingInWmPaint and always do the painting there, whether
8169 it's set or not, since we always ignore the WM_ERASEBKGND message
8170 (which we don't generate on X11). This fixes #76616.
8171 * Panel.cs: Removed unneeded background painting. This happens properly
8172 in Control.cs already
8174 2005-10-31 Mike Kestner <mkestner@novell.com>
8176 * Menu.cs: Add items to collection before setting their index.
8177 * MenuItem.cs : add range checking with ArgumentException like MS.
8180 2005-10-31 Jackson Harper <jackson@ximian.com>
8182 * ListBox.cs: Invalidate if the area is visible at all not just
8183 contained in the visible rect. Fixes unselection of semi visible
8186 2005-10-31 Jackson Harper <jackson@ximian.com>
8188 * Control.cs: Consistently name the dnd methods. Make them
8189 internal so we can override them to match some MS behavoir
8191 * Win32DnD.cs: Use the new consistent names.
8193 2005-10-31 Jackson Harper <jackson@ximian.com>
8195 * TreeView.cs: Don't draw the selected node when we lose focus.
8197 2005-10-31 Jackson Harper <jackson@ximian.com>
8199 * X11Dnd.cs: We still need to reset the state even though a full
8200 reset isn't being done, otherwise status's still get sent all over
8203 2005-10-31 Jackson Harper <jackson@ximian.com>
8205 * Control.cs: Make the dnd_aware flag internal so the dnd
8206 subsystem can check it. Catch exceptions thrown in dnd handlers to
8208 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8209 * X11Dnd.cs: Handle null data in the converters. Set the XDND
8210 version when sending a XdndEnter. Use the control/hwnd dnd_aware
8211 flags to reduce the number of dnd enters/status's sent.
8213 2005-10-31 Jackson Harper <jackson@ximian.com>
8215 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8217 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
8219 * PictureBox.cs: Fixes 76512
8221 2005-10-28 Jackson Harper <jackson@ximian.com>
8223 * X11Dnd.cs: Early implementation to support winforms being a drag
8224 source for data on X11. Also restructured the converters so they
8225 can go both ways now.
8226 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8228 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
8230 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8233 2005-10-27 Jackson Harper <jackson@ximian.com>
8235 * TreeNode.cs: Implement serialization so my DnD examples will work.
8237 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
8239 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8240 TreeView.cs: Don't dispose objects that are not owned.
8242 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
8244 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8245 should retrieve the current cursor and report that, but XplatUI
8246 doesn't (yet) have an interface for that (and I'm not sure I even
8248 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8249 until any message loop processing is done (and the WM_SETCURSOR
8250 replaces the cursor to the proper one)
8252 - Fixed override behaviour, we can't set the cursor globally on X11,
8253 just for our windows.
8254 - Invalidating the System.Drawing X11 display handle when we are
8256 * Control.cs: Fix to make csc happy
8258 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
8261 - get_Text: Add last line (without trailing newline) to returned
8263 - get_TextLength: Count last line in returned length
8264 - ToString: Call Text property instead of duplicating code
8266 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
8268 * ImageList.cs: Dispose ImageAttributes objects.
8270 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8272 * ImageList.cs: Use attribute constructors with less arguments where
8275 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
8277 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8278 Use typeof instead of strings when assembly is referenced. Added
8281 2005-10-21 Jackson Harper <jackson@ximian.com>
8283 * ListView.cs: Raise a double click event. Also tried to somewhat
8284 fix when the selectedindexchanged event is raised. Its still
8287 2005-10-21 Jackson Harper <jackson@ximian.com>
8289 * TreeView.cs: New method to invalidate the plus minus area of a
8290 node without invalidating the whole node (maybe this can be used
8291 in some more places).
8292 * TreeNodeCollection.cs: When adding to an empty node we need to
8293 invalidate its plus minus area so the little block shows up.
8295 2005-10-21 Jackson Harper <jackson@ximian.com>
8297 * TreeView.cs: Make sure that when we invalidate a node the bounds
8298 are big enough to cover the selected box and the focus
8299 rectangle. Use a different colour for the lines connecting nodes
8300 so they show up with all themes.
8302 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8304 * NativeWindow.cs: Don't call anything that could call into the driver,
8305 we might be on a different thread.
8307 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8309 * Control.cs(Dispose): Since Dispose might run on a different thread,
8310 make sure that we call methods that could call into the driver via
8311 invoke, to avoid thread issues
8313 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
8315 * XplatUI.cs: Removed finalizer
8316 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8317 not allowing to be called on the finalizer thread.
8319 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
8322 - Reverted r51889 and r51891.
8323 - Added ImageListItem class that stores unmodified image items and image
8324 properties required to create list images until handle is created.
8325 - Added AddItem and moved image creation logic to AddItemInternal.
8326 - Added CreateHandle method that creates images based on unmodified items.
8327 - Added DestroyHandle that changes state to store unmodified items.
8328 - Add and AddStrip methods no more create handle.
8329 - ReduceColorDepth has no return value.
8330 - Dispose destroys handle.
8331 - Modified other methods to reflect the above changes.
8332 - Implemented key support.
8333 - Added profile 2.0 members and attributes.
8334 - Added private Reset and ShouldSerialize methods that provide the same
8335 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8336 them as they are private.
8337 - Added some more comments about implementation details.
8339 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8341 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8343 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8345 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8347 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
8349 * DataGridDrawingLogic.cs: Fixes column hit calcultation
8350 * DataGridColumnStyle.cs: Remove debug message
8352 2005-10-20 Jackson Harper <jackson@ximian.com>
8354 * TreeView.cs: We can always get input keys regardless of whether
8355 or not editing is enabled. They are used for navigation.
8357 2005-10-20 Jackson Harper <jackson@ximian.com>
8359 * TreeNode.cs: Use the viewport rect for determining if a node
8360 needs to be moved for visibility. Don't use Begin/End edit. This
8361 calls a full refresh when its done.
8362 * TreeView.cs: New SetBottom works correctly. Make the viewport
8363 rect property internal so the treenodes can see it. When clicking
8364 on a node we need to ensure that its visible because it might just
8365 be partly visible when clicked.
8367 2005-10-20 Jackson Harper <jackson@ximian.com>
8369 * TreeNodeCollection.cs: Remove debug code.
8371 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8373 * Datagrid.cs: Implements column sorting in Datagrid
8374 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8376 2005-10-20 Jackson Harper <jackson@ximian.com>
8378 * TreeNodeCollection.cs: Remove items properly. Update the correct
8379 area after removing them.
8381 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
8383 * Datagrid.cs: Should not call base.OnPaintBackground
8385 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8387 * XplatUIX11.cs (GetMessage):
8388 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8389 window instead of client window
8390 - Now properly calculates NC_xBUTTONUP message coordinates
8391 - ScreenToMenu now properly calculates it's coordinates of whole
8392 window, since menus are in the whole window, not in the client
8394 - Added WholeToScreen coordinate translation method
8396 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8398 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8399 want to return a message, loop back to the beginning of the function
8400 and grab the next real message to process instead.
8402 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
8404 * Splitter.cs: Properly set limits if no filler control is used
8406 2005-10-19 Jackson Harper <jackson@ximian.com>
8408 * ColorDialog.cs: Don't show the help button if it is not enabled
8409 instead of disabling it (this is what MS does). Don't create the
8410 panel until the dialog is run, otherwise the vars (such as
8411 ShowHelp) are not set yet.
8413 2005-10-19 Jackson Harper <jackson@ximian.com>
8415 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8416 are reduced when adding nodes.
8418 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8421 2005-10-19 Jackson Harper <jackson@ximian.com>
8423 * FolderBrowserDialog.cs: End editing our treeview so the window
8424 actually gets refreshed.
8426 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8428 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
8429 Obsoleted handling of WM_ERASEBKGND, now always draws our background
8432 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8434 * MenuAPI.cs: Returns after Hidding window
8435 * XplatUIX11.cs: Added TODO found while debugging menu issues
8437 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
8439 * XplatUIX11.cs: Do not re-map the whole window when it's size
8440 becomes non-zero unless it's supposed to be actually visible
8442 2005-10-18 Jackson Harper <jackson@ximian.com>
8444 * TreeView.cs: We don't need to keep a count anymore.
8445 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8446 use the Grow method.
8448 2005-10-18 Jackson Harper <jackson@ximian.com>
8450 * TreeNodeCollection.cs: Insert is not supported on arrays, so
8451 implement it manually here.
8453 2005-10-18 Jackson Harper <jackson@ximian.com>
8455 * ImageList.cs: Dont kill the list when the colour depth is
8456 changed, just change the colour depth of all the images.
8457 - Same goes for setting the image size. Just resize them all
8458 instead of killing the list softly.
8460 2005-10-18 Jackson Harper <jackson@ximian.com>
8462 * Control.cs: Don't invalidate empty rectangles.
8464 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8467 - Adds checked item to the Checked/Item lists (where empty before)
8468 - Do not add items to the Selected lists if they are already present
8470 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8471 - When deleting items make sure that we delete them for the Selected
8472 and Checked list also.
8474 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
8476 * Label.cs: Dispose objects no longer used
8477 * ThemeWin32Classic.cs: Dispose objects no longer used
8479 2005-10-18 Jackson Harper <jackson@ximian.com>
8481 * TabControl.cs: Don't refresh the whole control when the tabs are
8482 scrolled, we just need to refresh the tab area.
8484 2005-10-17 Jackson Harper <jackson@ximian.com>
8486 * XplatUIX11.cs: Compress code a little bit. Only calculate the
8487 after handle when we need it.
8489 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8491 * Control.cs: When the parent size changes, recalculate anchor
8492 positions. Partial fix for #76462
8494 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
8496 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
8499 2005-10-17 Jackson Harper <jackson@ximian.com>
8501 * MonthCalendar.cs: Don't create the numeric up down until our
8502 handle is created. Otherwise our handle is created in the
8503 constructor and we don't know if we are a WS_CHILD or WS_POPUP
8506 2005-10-17 Jackson Harper <jackson@ximian.com>
8508 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
8511 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8512 * TreeNode.cs : small logical fix (was using local var instead of field)
8514 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8516 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
8518 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
8520 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
8522 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
8525 - Re-implemented anchoring code. My first version was really broken.
8526 This fixes bug #76033. Unlike the previous implementation we will
8527 no longer have round errors since all numbers are calculated from
8528 scratch every time. Removed various anchor-related obsolete vars.
8529 - InitLayout no longer causes layout event firing and layout to be
8532 2005-10-16 Jackson Harper <jackson@ximian.com>
8534 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
8537 2005-10-16 Jackson Harper <jackson@ximian.com>
8539 * TabControl.cs: Remove debug code.
8541 2005-10-16 Jackson Harper <jackson@ximian.com>
8543 * XEventQueue.cs: Increase the default queue size (very simple
8544 apps needed to grow the queue).
8545 * Hwnd.cs: No finalizer so we don't need to suppress
8546 finalization. Compute the invalid area manually so a new rectangle
8547 does not newto be created.
8548 * ScrollableControl.cs: Don't set any params (otherwise visibility
8549 isn't set correctly).
8550 * MdiChildContext.cs: New constructor takes the mdi parent so it
8551 doesn't have to be computed and avoids a crash on windows. Draw
8552 the window icon properly, and allow the text to be seen.
8553 * Form.cs: Use new MdiChildContext constructor. Make sure the
8554 child context isn't null in wndproc.
8555 * TabControl.cs: Don't set focus, this is muddling keyboard
8556 behavoir. Expand the tab rows when a window size increase will
8557 allow extra tabs to be seen. Don't allow tabs smaller than the
8558 width of a window to be scrolled out of view.
8560 * TreeView.cs: Use measure string to calculate a nodes width, the
8561 width is cached and only updated when the text or the font is
8562 changed. Don't check for expand/collapse clicks on the first level
8563 nodes if root lines are disabled.
8565 2005-10-16 Ritvik Mayank <mritvik@novell.com>
8567 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
8569 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8571 * DataGridBoolColumn.cs: fixes warning
8573 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
8575 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
8576 to match more to match more precisely the MS Net behavior
8578 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8580 * Hwnd.cs: Added field to track if window is mapped
8582 - Unmap windows if they become 0-size, re-map when
8583 they are >0 again; fixes #76035
8584 - Re-set our error handler after initializing X11Desktop
8585 to override any error handlers Gtk or whatever was called
8588 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8590 * CheckedListBox.cs: Removed unused vars
8591 * ListView.cs: Fixed signatures
8592 * RichTextBox.cs: Removed unused vars
8593 * TextBoxBase.cs: Removed unused vars
8594 * XplatUIWin32.cs: Removed unused vars
8595 * XplatUIX11.cs: Removed unused vars
8596 * XplatUI.cs: Updated version and date to latest published
8598 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8600 * Cursor.cs: Added private .ctor to work around a bug in
8601 resourceset (Thanks to Geoff Norton for the help on this)
8602 * SplitterEventArgs.cs: Made fields accessible so we don't
8603 waste boatloads of objects and can reuse the same one
8605 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
8606 any captions and borders when generating screen coordinates
8607 * Splitter.cs: Reimplemented control, now fully complete, uses
8608 rubberband drawing, supports and obeys all properties, has
8611 2005-10-13 Miguel de Icaza <miguel@novell.com>
8613 * Form.cs (Form): Setup default values for autoscale and
8614 autoscale_base_size; Make these instance variables, not static
8617 (OnLoad): on the first load, adjust the size of the form.
8619 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
8621 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
8622 width argument to DrawReversibleRectangle()
8623 * XplatUIWin32.cs, XplatUIX11.cs:
8624 - Implemented width for DrawReversibleRectangle()
8625 - Added logic to DrawReversibleRectangle that recognizes a zero
8626 width or height and only draws a line in that situation
8628 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8630 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
8631 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
8632 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
8633 method (it uses our FosterParent window to get a graphics context)
8635 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
8637 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
8638 and SetWindowBackground methods
8640 - Setting proper ControlStyles
8641 - We no longer call XplatUI.SetWindowBackground and XplatUI.
8642 EraseWindowBackground, instead we draw the window background
8643 ourselves in PaintControlBackground. This behaviour is
8644 required to match MS, where, when OnPaintBackground is not
8645 called, the background is not drawn.
8646 - Removed unneeded Refresh() in set_Text
8647 * Hwnd.cs: Dropped the ErasePending support. No longer needed
8649 - Created DeriveStyles method to translate from CreateParams to
8650 FormBorderStyle and TitleStyle, also handles BorderStyle (which
8651 matches FormBorderStyle enum values)
8652 - Consolidated SetHwndStyles and CalculateWindowRect border/title
8653 style calculations into single DeriveStyles method
8654 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
8655 from redrawing the whole window on any resize or expose.
8656 - Fixed CreateWindow usage of SetWindowValuemask. Before not
8657 all styles were applied to our whole/client window appropriately
8658 - Removed EraseWindowBackground() and SetWindowBackground() methods
8659 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
8660 no longer clear/redraw the background through X
8661 - Removed handling of erase_pending bit, we have no use for it (or
8664 - Removed generation and handling of WM_ERASEBKGND message
8665 - Removed EraseWindowBackground() and SetWindowBackground() methods
8666 - Removed handling of hwnd.ErasePending flag
8668 - Removed EraseWindowBackground() and SetWindowBackground() methods
8669 - We no longer call EraseWindowBackground on PaintEventStart, we
8670 ignore the fErase flag, erasing is handled in Control in the
8672 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
8673 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
8674 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
8675 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
8676 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
8677 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
8678 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
8680 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
8682 * PropertyGrids.cs: Get sub properties
8683 * PropertyGridView.cs: Fix drawing code
8685 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8687 * ListBox.cs: Fixes 76383
8689 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8691 * DataGridTextBoxColumn.cs: Sets location and size before attachment
8692 * ThemeWin32Classic.cs: Fixes border drawing and calculations
8693 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
8696 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8698 * ComboBox.cs: Fixes border drawing
8700 2005-10-10 Miguel de Icaza <miguel@novell.com>
8702 * MimeIcon.cs: Ignore errors if the file can not be read.
8704 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
8706 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
8707 - Fixed border calculations
8708 - Fixed horizontal scrolling in single column listboxes
8709 - Fixed drawing issues
8711 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
8713 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
8714 FormBorderStyle enum
8715 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
8716 code to determine FormBorderStyles from CreateParams
8718 - Fixed bug where we'd set the wrong window styles if we were
8719 not creating an MDI window
8720 - Added call to XplatUI.SetBorderStyle when form borders are set
8721 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
8723 - Removed obsolete edge style
8724 - Switched from BorderStyle to FormBorderStyle
8726 2005-10-10 Jackson Harper <jackson@ximian.com>
8728 * Form.cs: Use the property to get the window handle instead of
8729 accessing it directly. Prevents a null reference exception.
8731 2005-10-10 Jackson Harper <jackson@ximian.com>
8733 * TreeView.cs: Don't adjust the rect given to DrawString now that
8734 our libgdiplus draws correctly.
8736 2005-10-08 Jackson Harper <jackson@ximian.com>
8738 * TreeView.cs: Don't try to find the clicked on node if there are
8739 no nodes in the tree.
8741 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8747 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8749 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
8750 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
8752 Use ResPool for brushes and dispose System.Drawing objects that
8753 are not used anymore.
8755 2005-10-07 Jackson Harper <jackson@ximian.com>
8757 * MdiChildContext.cs: Use the new borders instead of drawing them
8760 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8762 * Calling UpdateBounds after changing the window's BorderStyle
8763 since the style can change the ClientSize
8765 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8767 * Control.cs: Made PaintControlBackground virtual
8768 * Panel.cs: Overriding PaintControlBackground instead of using paint
8769 event; paint event method was interfering with 'real' users of the
8772 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8774 * ThemeWin32Classic.cs: remove border drawing since it is handled
8775 by the base control class now and was causing double border drawing.
8777 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8779 * Panel.cs: Redraw our background on paint. Not a pretty solution,
8780 but it does seem to match MS behaviour. This fixes bug #75324
8782 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8784 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
8785 somewhat hackish looking
8787 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8790 - We now accept Enter even if AcceptEnter is false, if the containing
8791 form does not have an AcceptButton configured (fixes bug #76355)
8792 - Calculations are now fixed to no longer use Width/Height, but
8793 ClientSize.Width/Height, since we now support borders (this was
8794 a result of fixing borders and therefore bug #76166)
8795 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
8796 true (fixes bug #76354)
8798 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8801 - Defaulting BorderStyle and setting it in XplatUI when our window
8803 - Added enum check to InternalBorderStyle setter
8805 - Added drawing of window borders
8806 - Now properly calculates WM decorations offset for toplevel
8807 windows (fixes bug #74763)
8809 - Implemented BorderStyles for windows (we're letting win32 draw
8811 - Fixed the signature for SetWindowLong
8812 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
8813 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
8815 * UpDownBase.cs: Remove drawing of borders, this is handled by
8816 the driver, outside the client area
8817 * ListView.cs: Removed bogus border calculations. The control should
8818 be oblivious to borders, since those are not part of the client
8820 * X11DesktopColors.cs: Commented out (currently) unneeded variables
8821 * ThemeWin32Classic.cs: Removed border calculations from ListView
8824 2005-10-06 Jackson Harper <jackson@ximian.com>
8826 * MdiChildContext.cs: Clear out the old virtual position remove
8827 all the unneeded calls to CreateGraphics.
8829 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8831 * TextControl.cs: Use proper color for highlighted text; fixes #76350
8833 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8836 - Added loading and setting of our new default icon
8837 - Only set icon if window is already created
8839 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8842 - Do not explicitly set the foreground and background colors, to
8843 allow inheriting from parents (fixes #76302)
8844 - Use Control's InternalBorderStyle property to deal with borders
8846 2005-10-06 Jackson Harper <jackson@ximian.com>
8848 * MdiChildContext.cs: Use the new xplatui function to draw a
8851 2005-10-06 Jackson Harper <jackson@ximian.com>
8853 * Form.cs: Add the parent before creating the child context cause
8854 we need the parent when setting up the child.
8856 2005-10-06 Jackson Harper <jackson@ximian.com>
8858 * FolderBrowserDialog.cs: redo the tree population code so a
8859 second thread isn't used. Should be a lot faster and more stable
8862 2005-10-05 Jackson Harper <jackson@ximian.com>
8864 * TreeView.cs: There are no expand/collapse boxes if the node has
8867 2005-10-05 Jackson Harper <jackson@ximian.com>
8869 * X11DesktopColors.cs: Get menu colours for the gtk theme.
8871 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
8873 * FileDialog.cs: Fix InitialDirectory
8875 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8878 - Fixes changing between styles
8880 - Fixes last item crashing when navigating with keyboard
8882 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8884 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
8886 2005-10-05 Jackson Harper <jackson@ximian.com>
8888 * TreeView.cs: If updating the root node do a full refresh.
8889 * TreeNode.cs: The root node should be expanded by default. Also
8890 added a utility prop to tell if we are the root node.
8891 * TreeNodeCollection.cs: Only refresh if the node we are being
8892 added to is expanded. Also added a comment on a potential
8895 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
8897 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
8898 in dispose method. Fixes #76330
8900 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
8902 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
8904 - Implements vertical and horizontal scrolling using XplatUI
8905 - Fixes keyboard navagation
8906 - Fixes EnsureVisible
8908 - Handles and draws focus properly
8911 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
8913 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
8914 Create handle. NET_2_0: Destroy handle when value is null.
8916 2005-10-03 Jackson Harper <jackson@ximian.com>
8918 * ScrollBar.cs: My last scrollbar patch was broken. This is a
8919 revert and a new patch to prevent the thumb from refreshing so
8922 2005-10-02 Jackson Harper <jackson@ximian.com>
8924 * ScrollBar.cs: Don't update position if it hasn't actually
8925 changed. This occurs when you hold down the increment/decrement
8926 buttons and the thumb gets to the max/min.
8928 2005-10-01 Jackson Harper <jackson@ximian.com>
8931 * MdiChildContext.cs:
8932 * MdiClient.cs: Implement ActiveMdiChild in Form.
8934 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
8936 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
8938 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
8940 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
8943 2005-09-30 Jackson Harper <jackson@ximian.com>
8945 * ListBox.cs: Don't do a full refresh unless some data has
8948 2005-09-30 Jackson Harper <jackson@ximian.com>
8950 * TreeView.cs: Make sure that the checkboxes size is factored in
8951 even when not visible.
8953 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8955 * FileDialog.cs: Fix Jordi's build break
8957 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
8960 - Use standard the Windows colours for the combobox as espected
8961 - Dispose objects that use resouces when no longer need them
8963 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8965 * X11DesktopColors.cs: Initial incomplete implementation
8966 * XplatUIX11.cs: Added call to initialize X11DesktopColors
8968 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8971 - Switched Theme color names to match the names defined in
8972 System.Drawing.KnownColors. Life's hard enough, no need to make
8974 - Added setters to all theme color properties so themes can set
8975 their color schemes. The setters also propagate the color changes
8976 to System.Drawing.KnownColors via reflection
8977 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
8978 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
8979 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
8980 use the new, more logical theme color names
8981 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
8983 * ThemeWin32Classic.cs:
8984 - Removed code to set the old classic Windows colors. Instead it
8985 now relies on the colors returned by System.Drawing.KnownColors
8986 which will be either modern static colors (Unix) or colors
8987 read from the user's configuration (Win32)
8988 - Updated to use the new, more logical theme color names
8989 - Switched DataGrid drawing code to use only Theme colors instead of
8990 a mix of System.Drawing.KnownColors and Theme colors
8991 - DrawFrameControl(): Removed code that fills the button area, the
8992 fill would overwrite any previous fill done by a control. This
8994 - Added DrawReversibleRectangle() stub
8995 * ScrollableControl.cs: Set visible state to false when scrollbars
8996 are removed (pdn fix)
8997 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
8998 DrawReversibleRectangle() method to allow drawing primitive
9000 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9002 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9004 * ImageList.cs: Add(Icon): Create handle.
9006 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
9009 * ThemeWin32Classic.cs:
9012 - Issues with drawing
9014 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9016 * ImageList.cs: Moved RecreateHandle back to ImageList as event
9017 source has to be the ImageList.
9019 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9021 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9023 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9025 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9027 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9029 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9031 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
9032 * GridItem.cs: Fixed TODOs
9033 * GridItemCollection.cs: Added ICollection interface
9035 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
9037 * ImageList.cs: Resize icons when needed.
9039 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
9042 - Fixes GetBounds and returns on screen rects
9044 - Fixes vertical and horzintal scrolling of items
9045 * ThemeWin32Classic.cs:
9048 2005-09-29 Raja R Harinath <harinath@gmail.com>
9050 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9052 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
9054 * ImageList.cs: Added comments about handle creation. Moved Handle,
9055 HandleCreated and OnRecreateHandle implementations to ImageCollection.
9056 Handle is created in Add methods.
9058 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9060 * DataGridDrawingLogic.cs:
9061 - Takes rows into account on Colum calculations
9062 - Returns the column when clickig
9064 - Fixes default HitTestInfo values
9065 - Fixes HitTestInfo.ToString
9066 - Fixes ResetBackColor
9068 2005-09-28 Jackson Harper <jackson@ximian.com>
9070 * MdiChildContext.cs: Obey rules for fixed sized windows (no
9071 sizing or cursor changes). Also added some temp code to draw the
9072 titlebars text (Makes dev a little easier).
9074 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9076 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9078 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
9080 * ListBox.cs: Fixes bug 76253
9082 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
9084 * ImageList.cs: Added comments about the current implementation. Added
9085 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9086 Format32bppArgb to preserve transparency and can use Graphics.FromImage
9087 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9088 with Bitmap.LockBits for better performance. Revised the whole file to
9089 match MS.NET behaviour and provide better performance. Non-public
9090 interface members are calling public members even when they throw
9091 NotSupportedException for better maintainability. Moved ColorDepth,
9092 ImageSize, ImageStream and TransparentColor implementations to
9093 ImageCollection for better performance as these properties are not used
9095 * ImageListStreamer.cs: Added a new internal constructor that takes an
9096 ImageList.ImageCollection and serializes Images based on
9097 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9098 match ImageList property name.
9100 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
9102 * ListBox.cs: Fixes IndexFromPoint for last item
9104 2005-09-27 Jackson Harper <jackson@ximian.com>
9106 * Form.cs: Set the position of new mdi children correctly.
9108 2005-09-27 Jackson Harper <jackson@ximian.com>
9110 * MdiClient.cs: New mdi children need to be added to the back of
9111 the controls collection so the zorder is set correctly. Also add a
9112 count of all the child windows that have been created.
9114 2005-09-27 Jackson Harper <jackson@ximian.com>
9116 * Form.cs (CreateParams): Setup MDI forms correctly.
9118 2005-09-27 Jackson Harper <jackson@ximian.com>
9120 * MdiChildContext.cs:
9127 * ScrollableControl.cs:
9128 * ComboBox.cs: Add implicit controls using the new implict control
9129 functionality in ControlCollection. Also try to block multiple
9130 control add in a suspend/resume layout to save some cycles.
9132 2005-09-27 Jackson Harper <jackson@ximian.com>
9134 * Control.cs: Add functionality to the controls collection to add
9135 'implicit controls' these are controls that are created by the
9136 containing control but should not be exposed to the user. Such as
9137 scrollbars in the treeview.
9138 * Form.cs: The list var of the ControlsCollection is no longer
9139 available because of the potential of implicit controls getting
9140 ignored by someone accessing the list directly.
9142 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
9144 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9145 loose it's parent. (Fixed bug introduced in r49103 when we added
9146 setting the child parent to null on Remove)
9148 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
9150 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9151 * Splitter.cs: Added missing attributes for BorderStyle property.
9152 * TextBoxBase.cs: Marked Calculate* methods internal.
9153 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9156 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
9158 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9160 2005-09-25 Jackson Harper <jackson@ximian.com>
9162 * TreeView.cs: Update the node bounds correctly regardless of
9163 whether the node is visible.
9165 2005-09-25 Jackson Harper <jackson@ximian.com>
9167 * ImageList.cs: Don't dispose the image after it is added to the
9168 image list. Only reformat images that need to be resized.
9170 2005-09-25 Jackson Harper <jackson@ximian.com>
9172 * ImageList.cs: Don't set the format when changing the image.
9174 2005-09-25 Jackson Harper <jackson@ximian.com>
9176 * TreeView.cs: We can't just assume the node has a font. Use the
9177 treeviews font if no node font is available.
9179 2005-09-25 Jackson Harper <jackson@ximian.com>
9181 * TreeView.cs: Allow the scrollbars to be reset with negative
9183 - Don't add scrollbars to negative sized windows.
9185 2005-09-23 Jackson Harper <jackson@ximian.com>
9187 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9188 old Mono.Posix. Also remove some stray code that shouldn't have
9191 2005-09-23 Jackson Harper <jackson@ximian.com>
9193 * TreeView.cs: Attempt at proper sizing of the horizontal
9194 scrollbar. Also don't resize the scrollbars unless they are
9197 2005-09-23 Jackson Harper <jackson@ximian.com>
9199 * TreeView.cs: We don't need to expand the invalid area when the
9200 selection changes, as this is all drawn in the node's bounding
9201 box. The area needs to be expanded (previous typo was contracting
9202 it) when the focus rect moves.
9204 2005-09-23 Jackson Harper <jackson@ximian.com>
9206 * TreeView.cs: Display the selection box under the correct
9207 circumstances. We were rendering white text with no selection box
9210 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
9212 * TextControl.cs(Split): Now updates selection start/end if it points
9213 into a line that's being split. Fixes a FIXME and bug #75258
9215 2005-09-23 Jackson Harper <jackson@ximian.com>
9218 * ListControl.cs: Don't use the path when retrieving binding
9219 managers from the binding context. My bat sense tells me that the
9220 path is only used on insertion.
9222 2005-09-22 Jackson Harper <jackson@ximian.com>
9224 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9226 2005-09-22 Jackson Harper <jackson@ximian.com>
9228 * Splitter.cs: There are special cursors used for splitting.
9229 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9231 2005-09-22 Jackson Harper <jackson@ximian.com>
9233 * Splitter.cs: Change the cursor appropriately when the splitter
9234 is moused over, so the user actually knows there is a splitter
9237 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9239 * Label.cs : Fix ToString method to give same output as MS.NET
9241 2005-09-22 Jackson Harper <jackson@ximian.com>
9243 * TreeView.cs: Create the scrollbars when the handle is created
9244 and add them right away, just make them invisble. Also account for
9245 the window being shrunk vertically to the point that the vert
9246 scrollbar needs to be added.
9247 - Remove some 0.5 adjustments to get around anti aliasing issues.
9249 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
9251 * MainMenu.cs: Fixes default value
9252 * MenuItem.cs: Fixes default value
9254 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
9256 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9258 2005-09-21 Jackson Harper <jackson@ximian.com>
9260 * Control.cs: Don't try to set the border style on the window if
9261 it hasn't been created. When the window is created the border
9264 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9266 * Control.cs (Update): Don't call XplatUI if we don't have a
9269 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9271 * ContainerControl.cs: Instead of throwing an exception, print
9272 a one-time warning about Validate not being implemented
9273 * XplatUIWin32.cs: Removed debug output
9275 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9277 * Control.cs: Only set XplatUI background if we expect the windowing
9278 system to handle the background. This stops controls that draw their
9279 own background from flickering
9281 * XplatUIX11.cs: Support custom visuals and colormaps for window
9282 creation. This allows, amongst other things, using MWF X11 windows
9285 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
9287 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9288 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9289 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9290 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9291 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9292 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9293 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9294 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9295 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9296 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9297 GridColumnStylesCollection.cs,
9298 IDataGridColumnStyleEditingNotificationService.cs,
9299 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9300 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9301 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
9302 TreeNodeCollection.cs, AmbientProperties.cs,
9303 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9304 DataObject.cs, ErrorProvider.cs, Splitter.cs,
9305 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9306 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9307 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9308 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9309 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9310 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9311 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9312 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9313 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9314 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9315 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9316 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9317 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9318 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9319 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9320 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9321 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9322 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9323 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9324 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9325 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9326 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9327 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9328 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9329 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9330 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9331 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9332 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9333 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9334 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9335 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9336 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9337 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9338 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9339 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9341 2005-09-21 Jackson Harper <jackson@ximian.com>
9343 * TreeNode.cs: Call Before/After Expand not Collapse when
9346 2005-09-20 Jackson Harper <jackson@ximian.com>
9348 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9350 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9354 - Fixes proper storing of subitems
9355 - Fixes not updated items
9357 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9359 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9360 things if our window handle isn't created yet. Also disabled
9361 debug for TextBoxBase
9363 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
9365 * MenuAPI.cs: Remove filtering of events to allow menu usage
9367 2005-09-20 Miguel de Icaza <miguel@novell.com>
9369 * Cursor.cs: Allow null to be passed to Cursor.Current.
9371 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
9373 * ThemeWin32Classic.cs:
9374 - Change some private methods/fields to protected virtual so that
9375 they can be accessed and overriden in derived classes
9376 - First refactoring of some methods. Derived themes now don't
9377 need to duplicate the complete code from ThemeWin32Classic
9379 - Added nice StatusBar
9380 - Derive from ThemeWin32Classic and not Theme
9381 - Removed duplicate ThemeWin32Classic code
9383 2005-09-20 Miguel de Icaza <miguel@novell.com>
9385 * Control.cs (ControlCollection.Add): If the value null is passed
9386 the control is ignored.
9390 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9392 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9393 PostQuitMessage state.
9394 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9396 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
9398 * Application.cs: Our constructor will never get called, move
9399 initialization to fields; fixes bug #75933
9401 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9404 - Allow files to be selected properly using file name
9406 - Add ability to change diretory (absolute / relative)
9407 using file name combo box.
9409 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
9412 - Fixes Multicolumn listboxes item wrong calculations
9413 - Allows to click when only one item is in the listbox
9414 - Fixes crash when no items using keyboard navigation
9416 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
9418 * ComboBox.cs: Reverted almost everything from the latest patch which
9421 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
9424 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9426 - When DropDownStyle is Simple, it does not show scrollbar
9427 to the last item of the list.
9428 - When DropDownStyle is Simple, it crashed when the list was
9429 scrolled down with the down cursor key.
9430 - Fixed a bug that when DropDownStyle is DropDownList, the
9431 selected item was not shown.
9432 - The position of the selected item was not preserved when
9433 the next dropdown happened.
9434 * ThemeWin32Classic.cs:
9435 - Items were wrapped at the right end.
9436 * CheckedListBox.cs:
9439 - Items should be fully shown.
9440 - When resizing and vertical scrollbar disappeared, the item
9441 of index 0 should be on the top of the list.
9442 - GetItemRectangle should consider the size of ver. scrollbar
9444 - SizingGrip area should not be allocated when it is not
9446 - Now it reflects MinWidth of the containing panel and
9447 fixed a crash that happens when its width becomes so small.
9449 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9451 * CheckedListBox.cs: Fixes bug 76028
9452 * ListBox.cs: Fixes bug 76028
9454 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
9456 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9457 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9459 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
9461 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9463 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9465 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
9467 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9469 * IRootGridEntry.cs: Added
9470 * PropertyGridCommands.cs: Added
9471 * PropertiesTab.cs: Added missing methods and property
9472 * PropertyGridView.cs: Made class internal
9473 * PropertyGridTextBox.cs: Made class internal
9475 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9477 * MimeIcon.cs: Try to check some other environment variables
9478 if "DESKTOP_SESSION" returns "default"
9480 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9482 * ThemeNice.cs: Corrected background colors (e.g. menus)
9483 * ColorDialog.cs: Use correct background colors for controls
9485 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
9487 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
9489 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
9491 * RichTextBox.cs: Added initial implementation
9492 * lang.cs: Removed. Was accidentally checked in long time ago
9493 * TODO: Removed. Contents were obsolete
9495 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9497 * PropertiesTab.cs : Added
9499 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
9501 * PropertyGrid.cs : Update
9502 * PropertyGridView.cs : Update
9503 * System.Windows.Forms.resx : Added images and strings
9505 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9507 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
9509 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
9511 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
9512 a busy loop right after the Ungrab the X11 display is otherwise
9515 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
9517 * ThemeWin32Classic.cs: Optimise the use of clipping
9519 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
9521 * DataGrid.cs: fixes recursion bug
9523 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
9526 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
9529 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
9531 * ThemeNice.cs: Draw nice ProgressBars
9533 2005-09-01 Miguel de Icaza <miguel@novell.com>
9535 * VScrollBar.cs: Another buglet found by Aaron's tool.
9537 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
9540 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
9543 - Added nicer menu drawing
9547 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9549 * CreateParams.cs (ToString): Made output match MS
9550 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
9551 handle is already created (to avoid forcing window creation)
9552 * XplatUIX11.cs: Set window text to caption after creating window,
9553 in case Text was set before window was created
9554 * Form.cs: Use this.Text instead of a static string as caption
9556 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9558 * NotifyIcon.cs: Don't set the window to visible; this screws
9559 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
9560 OnPaint without a bitmap)
9561 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
9562 happen very often anyway; we could add the check to the WM_PAINT
9563 event generation code
9565 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9567 * NotifyIcon.cs: Fill the icon area with a background color, to
9568 avoid 'residue' when transparent icons are drawn
9570 - Handle whole_window == client_window when destroying windows
9571 - SystrayAdd(): Set client_window to whole_window value to
9572 get mouse and other events passed to NotifyIcon
9574 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
9576 * Form.cs: Set proper default for Opacity property
9578 - ShowSystray(): Don't bother creating telling the OS
9579 about the systray item if no icon is provided
9580 - Now handles WM_NCPAINT message to deal with whole/client window
9582 - Create window as visible to not get caught by Expose optimization
9583 * Hwnd.cs: Removed debug message
9584 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
9585 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
9586 PaintEventStart/End to use new client argument
9588 - Commented out debug messages
9589 - Switched PaintEventStart/End to use new client argument
9590 * XplatUI.cs: Added client window bool to PaintEventStart()/
9591 PaintEventEnd() calls, to support drawing in non-client areas
9593 - Added client window bool to PaintEventStart()/PaintEventEnd()
9594 calls, to support drawing in non-client areas
9595 - Added conditional compile to allow using MWF BeginInvoke
9598 - Added some conditional debug output
9599 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
9600 whole/client window split
9601 - Implemented handling of client argument to PaintEventStart()/End()
9603 - Throw exception if BeginInvoke() is called and the window handle
9604 or one of the window's parent handles is not created
9605 - Added conditional compile to allow using MWF BeginInvoke on
9607 - get_Parent(): Only sets parent if handle is created. This avoids
9608 forcing window handle creation when parent is set.
9609 - Now fires Layout and Parent changed events in proper order
9610 - Switched to use Handle instead of window.Handle for Z-Order setting,
9611 the get_Parent() patch above causes us to possibly get null for 'window'
9612 - Implemented handling of client argument to PaintEventStart()/End()
9613 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
9615 - Now sends a Refresh() to all child windows when Refresh() is called
9617 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
9619 * Form.cs: Added (non-functional) Opacity property
9620 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
9622 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
9623 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
9624 use export MONO_THEME=nice to activate it.
9625 Currently supported controls:
9629 - TabControl (TabAlignment.Top only, other will follow)
9630 * ThemeEngine.cs: Add theme nice
9631 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
9634 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
9636 * Splitter.cs: Resize docked control and its neighbor.
9638 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9639 -- Making Windows with Menus layout correctly --
9640 * Form.cs : The first leg of the fix
9641 Menu setter - adjust Client Size as needed to make space for the menu
9642 SetClientSizeCore - doesn't call base version to be able to pass the
9643 menu handle to XplatUI.CalculateWindowRect
9644 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
9645 * XplatUIX11.cs: The critical second leg of the fix
9646 GetWindowPos needs to use a recalculated client_rect
9647 so that resizing the window doesn't break layout of child controls.
9648 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
9651 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
9653 * Label.cs: Now properly recalculates width and height on Font and Text
9654 changes if AutoSize is set
9656 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9657 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
9659 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
9661 * ImageList.cs: Makes ToString method compatible with MS
9663 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
9665 * MenuAPI.cs: fixes bug 75716
9667 2005-08-11 Umadevi S <sumadevi@novell.com>
9668 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
9670 2005-08-11 Umadevi S <sumadevi@novell.com>
9671 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
9673 2005-08-10 Umadevi S <sumadevi@novell.com>
9674 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
9676 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
9678 * Menu.cs: fixes bug 75700
9679 * MenuAPI.cs: fixes navigation issues
9681 2005-08-09 Umadevi S <sumadevi@novell.com>
9682 * CheckedListBox.cs - simple fix for GetItemChecked.
9684 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
9686 * ComboBox.cs: Serveral fixes
9687 * ListBox.cs: Serveral fixes
9689 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9691 * ComboBox.cs: Fixes FindString methods and GetItemHeight
9692 * ListBox.cs: Fixes FindString methods
9694 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
9696 * DataGrid.cs: fixes bugs exposed by new tests
9698 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
9700 * Mime.cs: Compile Mono assembly references only if compiling
9701 with Mono (Allows to build with VS.Net again)
9703 2005-07-28 Marek Safar <marek.safar@seznam.cz>
9705 * Control.cs (PaintControlBackground): Draw background image
9707 (CheckForIllegalCrossThreadCalls): Stubbed.
9709 * Form.cs (OnCreateControl): Center when should be centered.
9711 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
9713 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
9715 * Binding.cs: Binding to properties should be case unsensitive
9717 2005-07-18 vlindos@nucleusys.com
9719 * DataGrid.cs: fixes setmember order
9721 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
9723 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
9724 * FileDialog.cs: FileDialog is now resizable and uses the new
9727 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
9729 * DataGridTextBoxColumn.cs: default value
9730 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
9731 * GridTableStylesCollection.cs: fixes checking MappingName
9732 * DataGridDrawingLogic.cs: fixes drawing logic issues
9733 * DataSourceHelper.cs: rewritten to make compatible with more data sources
9734 * DataGrid.cs: fixes
9736 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
9738 * MimeGenerated.cs: Use case sensitive comparer for
9739 NameValueCollections
9741 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
9743 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
9744 * ThemeWin32Classic.cs: bug fixes, code refactoring
9745 * DataGridDrawingLogic.cs: bug fixes, code refactoring
9746 * DataGrid.cs: bug fixes, code refactoring
9747 * DataGridTextBox.cs: bug fixes, code refactoring
9748 * DataGridColumnStyle.cs: bug fixes, code refactoring
9749 * Theme.cs: bug fixes, code refactoring
9751 2005-07-01 Peter Bartok <pbartok@novell.com>
9753 * TextControl.cs: Quick fix for the reported crash on ColorDialog
9754 and other text box usage
9756 2005-07-01 Jackson Harper <jackson@ximian.com>
9758 * TabControl.cs: Make sure the bottom of the tab covers the pages
9761 2005-06-30 Peter Bartok <pbartok@novell.com>
9763 * Form.cs (ShowDialog): Assign owner of the dialog
9764 * TextBoxBase.cs: Always refresh caret size when deleting, caret
9765 might have been moved to a tag with different height
9767 2005-06-30 Jackson Harper <jackson@ximian.com>
9769 * Form.cs: Don't create an infinite loop when setting focus
9770 * MenuItem.cs: Don't dirty the parents if we don't have any
9772 2005-06-29 Ben Maurer <bmaurer@ximian.com>
9774 * LibSupport.cs: Rename
9776 2005-06-29 Peter Bartok <pbartok@novell.com>
9778 * TextBoxBase.cs: Re-align caret after deleting a character
9780 - DeleteChars(): Ensure that tag covers the provided position
9781 - StreamLine(): Drop reference for dropped tag
9783 2005-06-29 Peter Bartok <pbartok@novell.com>
9786 - Selections now work properly, anchoring at the initial location
9787 and properly extending in either direction (SetSelectionToCaret(),
9788 SetSelectionStart() and SetSelectionEnd())
9789 - No longer redraws the whole control on selection change, now
9790 calculates delta between previous and new selection and only
9791 invalidates/redraws that area
9792 - Fixed FindPos() math off-by-one errors
9793 - Changed DeleteChars() to verify the provided tag covers the
9794 provided position, selections may have a tag that doesn't cover
9795 the position if the selection is at a tag border
9796 - Fixed off-by-one errors in DeleteChars()
9797 - Added missing streamlining check in DeleteChars() to remove
9799 - Implemented Invalidate() method, now properly calculates exposures
9800 between two given lines/positions
9801 - Implemented SetSelection()
9802 - Obsoleted and removed FixupSelection()
9803 - Improved RecalculateDocument() logic, removing code duplication
9805 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9807 * LibSupport.cs: changes to match different input/output arguments.
9809 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9811 * LibSupport.cs: added libsupport.so init routine.
9813 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
9815 * ControlBindingsCollection.cs
9816 - Throws an exception on null datasource when adding
9817 - Checks for duplicated bindings when adding
9819 2005-06-28 Jackson Harper <jackson@ximian.com>
9821 * TreeView.cs (OnKeyDown): Support left and right properly
9822 (navigates as well as expanding and collapsing.
9823 - Add support for Multiply, this expands all the selected nodes
9827 2005-06-28 Jackson Harper <jackson@ximian.com>
9829 * TreeView.cs: Implement keyboard navigation, currently supports,
9830 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
9831 support for toggling checkboxes with the space bar.
9833 2005-06-28 Jackson Harper <jackson@ximian.com>
9835 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
9838 2005-06-28 Jackson Harper <jackson@ximian.com>
9840 * TreeView.cs: Add missing event.
9842 2005-06-27 Peter Bartok <pbartok@novell.com>
9845 - Made line ending size configurable (now allows for counting
9846 lineendings as \n or \r\n)
9847 - Added margin to viewport to keep caret visible on right side
9848 - Fixed translation routines for line/pos to documentpos to consider
9849 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
9850 - Fixed some line-endings to be unix style
9851 - Fixed Document.FormatText to perform it's calculations 1-based
9852 - Added descriptions for a few methods that might otherwise get
9854 - Added NOTE section with some basic conventions to remember at
9856 - Major fixup for RichTextBox selection drawing:
9857 * Fixed crashes when multiple tags on a single line were selected
9858 * fixed selection box drawing not overlaying text
9859 * fixed bogus offset calculation for tags not starting at index 1
9860 * Switched behaviour from using multiple Substrings of a
9861 StringBuilder.ToString() to using multiple
9862 StringBuilder.ToString(start, length) statements, hoping this is
9863 faster (kept original version commented out in the code, in case
9864 original version was faster)
9865 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
9867 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
9870 2005-06-27 Jackson Harper <jackson@ximian.com>
9872 * TabControl.cs: Move to the left and right with the arrow
9873 keys. These keys don't cycle beyond first and last like
9874 tab. Refresh all the tabs when scrolling them to the left or
9877 2005-06-27 Jackson Harper <jackson@ximian.com>
9880 - ToString: Added method
9881 - CreateParams: Remove TODO and comment
9882 - OnKeyDown: Cycle through bounds properly.
9883 - SelectedIndex: Scroll to the right or left if we need to
9884 display the newly selected tab.
9886 2005-06-23 Jackson Harper <jackson@ximian.com>
9888 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
9891 2005-06-23 Jackson Harper <jackson@ximian.com>
9893 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
9894 CTRL-SHIFT-TAB, and HOME, END are there any others?
9896 2005-06-23 Jackson Harper <jackson@ximian.com>
9898 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
9900 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9902 * DataGridTextBoxColumn.cs: fixes and enhancements
9903 * ThemeWin32Classic.cs: fixes and enhancements
9904 * DataGridBoolColumn.cs: fixes and enhancements
9905 * DataGridDrawingLogic.cs: fixes and enhancements
9906 * CurrencyManager.cs: fixes and enhancements
9907 * DataGrid.cs: fixes and enhancements
9908 * DataGridColumnStyle.cs: fixes and enhancements
9910 2005-06-22 Jackson Harper <jackson@ximian.com>
9912 * TabControl.cs: Add some missing methods that just call into the
9913 base. Make the TabPageCollection's IList interface behave in the
9914 same manner as the MS implementation.
9916 2005-06-22 Peter Bartok <pbartok@novell.com>
9918 * TextControl.cs: Added sanity check
9920 - Fixed wrapping behaviour, don't set wrap on single line controls
9921 (this fixes the breakage of colordialog introduced in an earlier
9923 - Added rudimentary support for autoscrolling right-aligned controls
9924 (still needs fixing, also, center alignment scroll is missing)
9926 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9928 * ScrollBar.cs: Fixes thumbpos on Maximum values
9930 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
9932 * PropertyGridView.cs: Pass context information to UITypeEditors
9934 2005-06-21 Peter Bartok <pbartok@novell.com>
9937 - Now calling PositionCaret with absolute space coordinates
9938 - Enabled vertical scrolling
9939 - Better tracking of scrollbar changes, tied into WidthChange
9941 - Improved cursor tracking
9942 - Removed debug output
9944 - PositionCaret coordinates are now works in absolute space, not
9946 - Improved tracking of document size
9947 - Added events for width and height changes
9949 2005-06-21 Peter Bartok <pbartok@novell.com>
9951 * Form.cs: Set focus to active control when form is activated
9953 - Added word-wrap functionality to RecalculateLine()
9954 - Added some short function descriptions for VS.Net to aid in
9955 writing dependent controls
9956 - Added Caret property, returning the current coords of the caret
9957 - Added ViewPortWidth and ViewPortHeight properties
9958 - Added Wrap property
9959 - Added CaretMoved event
9960 - Removed some old debug code
9961 - Split() can now create soft splits
9962 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
9963 - Added method to format existing text
9964 - Fixed size/alignment calculations to use viewport
9965 - RecalculateDocument now can handle changing line-numbers while
9969 - Added some wrap logic, we don't wrap if alignment is not left
9970 - Added casts for scrollbar var, base class switched types to
9971 also support RichTextBoxA
9972 - Implemented handling of scrollbar visibility flags
9975 - Switched scrollbars type to RichTextBoxScrollBars to support
9977 - Added tracking of canvas width/height
9978 - Switched scrollbars to be not selectable (to keep focus on text)
9979 - Added central CalculateDocument() method to handle all redraw
9981 - Added ReadOnly support
9982 - Added WordWrap support
9983 - Fixed handling of Enter key (we now treat it as a DialogKey)
9984 - Fixed caret positioning when h or v scroll is not zero
9985 - Fixed placing/generation of vertical scrollbar
9986 - Added CalculateScrollBars() method to allow updating scrollbar
9987 limits and visibility
9988 - Fixed handling of horizontal scroll
9989 - Added handling of vertical scroll
9990 - Implemented auto-'jump' when caret moves to close to a left or
9991 right border and there is text to be scrolled into view (currently
9992 there's the potential for a stack overflow, until a bug in
9995 2005-06-21 Geoff Norton <gnorton@customerdna.com>
9997 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
9999 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
10003 - return application/x-zerosize for files with size zero
10004 (if no extension pattern matches).
10005 - check matches collection for strings too.
10006 - return only the first mime type if the name value
10007 collection has more than one mime type.
10009 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
10011 * PropertyGrid.cs: Cleaned up some TODOs
10012 * PropertyGridView.cs: Added support for UITypeEditors
10014 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10016 * DataGrid.cs: clears cached value
10018 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
10020 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10021 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10022 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10023 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10025 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
10027 * ThemeWin32Classic.cs: fixes colour
10029 2005-06-15 Peter Bartok <pbartok@novell.com>
10031 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10032 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10033 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10034 * Control.cs: Added some MWFCategory and MWFDescription attributes
10035 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10037 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
10039 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10042 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
10044 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10045 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10046 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10047 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10048 * DataGrid.cs: default datagrid settings for Default Styles, fixes
10049 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10051 2005-06-13 Jackson Harper <jackson@ximian.com>
10053 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10054 isn't printed when the user enables dropping. (X11 does accept
10057 2005-06-13 Jackson Harper <jackson@ximian.com>
10059 * TreeView.cs: Remove some TODOS.
10061 2005-06-13 Jackson Harper <jackson@ximian.com>
10063 * Form.cs: Hook into the mdi framework.
10064 * MdiClient.cs: Use the base control collections add method so
10065 parents get setup correctly. Set the default back colour and dock
10067 * MdiChildContext.cs: New class, this bad actor handles an
10068 instance of an MDI window. Right now there is only basic
10069 support. You can drag, close, and resize windows. Minimize and
10070 Maximize are partially implemented.
10072 2005-06-13 Jackson Harper <jackson@ximian.com>
10074 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10075 freaky when both vals are negative. NOTE: There are probably other
10076 places in XplatUIX11 that this needs to be done.
10078 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
10080 * DataGrid.cs: implement missing methods, move KeyboardNavigation
10081 * DataGridColumnStyle.cs: fixes signature
10083 2005-06-12 Jackson Harper <jackson@ximian.com>
10085 * XplatUIX11.cs: Use sizing cursors similar to the ones on
10088 2005-06-11 Jackson Harper <jackson@ximian.com>
10090 * StatusBarPanel.cs: Signature cleanups. Implement
10093 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
10095 * DataGridTextBoxColumn.cs: Honors aligment
10096 * GridColumnStylesCollection.cs: Contains is case unsensitive
10097 * GridTableStylesCollection.cs: several fixes
10098 * DataGridTableStyle.cs: default column creation
10099 * DataGridDrawingLogic.cs: fixes
10100 * CurrencyManager.cs: ListName property
10101 * DataGrid.cs: multiple styles support
10102 * DataGridColumnStyle.cs: fixes
10105 2005-06-10 Peter Bartok <pbartok@novell.com>
10107 * Control.cs(Select): Moved SetFocus call to avoid potential
10108 loops if controls change the active control when getting focus
10109 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10110 the up/down buttons
10112 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
10114 * ImageListConverter.cs: Implemented
10116 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10118 * MonthCalendar.cs: Wired in NumericUpDown control for year
10120 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
10122 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10123 DoubleClick events, since they are not meant to be fired.
10125 2005-06-09 Peter Bartok <pbartok@novell.com>
10127 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10128 Jonathan's standalone controls into MWF, implemented missing
10129 events, attributes and methods; added xxxAccessible classes
10130 * AccessibleObject.cs: Made fields internal so other classes
10131 can change them if needed
10133 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
10135 * UpDownBase.cs: Complete implementation
10136 * NumericUpDown.cs: Complete implementation
10137 * DomainUpDown.cs: Complete implementation
10139 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
10141 * DataGridTextBoxColumn.cs: drawing fixes
10142 * DataGridCell.cs: fixes ToString method to match MSNet
10143 * DataGridTableStyle.cs: fixes
10144 * DataGridBoolColumn.cs: fixes, drawing
10145 * DataGridDrawingLogic.cs: fixes, new methods
10146 * DataGridTextBox.cs: Keyboard and fixes
10148 - Keyboard navigation
10150 - Row selection (single, multiple, deletion, etc)
10153 2005-06-07 Jackson Harper <jackson@ximian.com>
10155 * ThemeWin32Classic.cs: Clear the background area when drawing
10158 2005-06-06 Peter Bartok <pbartok@novell.com>
10160 * ImageListStreamer.cs: Fixed signature for GetData
10161 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10163 - Added missing ChildAccessibleObject class
10164 - Added missing OnXXXFocus overrides, switched to using those
10165 instead of the event handler
10167 - Added Parent property for ControlAccessibleObject
10170 - Added ResetBindings()
10171 * ListBindingConverter.cs: Implemented some methods
10172 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10173 * ImageList.cs: Implemented basic handle scheme, removed TODOs
10174 * ContainerControl.cs: Fixed signature, now subscribing to the
10175 ControlRemoved event instead of overriding the handler, LAMESPEC
10176 * CurrencyManager.cs: Added missing attribute
10177 * MonthCalendar.cs: Added missing properties
10179 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10181 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10183 2005-06-06 Gaurav Vaish and Ankit Jain
10185 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10186 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10188 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
10190 * Control.cs: fixes CreateParams Width / Height.
10192 2005-06-05 Peter Bartok <pbartok@novell.com>
10194 * Win32DnD.cs: Removed compilation warnings
10196 2005-06-05 Peter Bartok <pbartok@novell.com>
10198 * Control.cs (CreateParams): Since we don't know if one of the
10199 properties we use is overridden, lets make sure if we fail accessing
10200 we continue with a backup plan
10202 2005-06-05 Peter Bartok <pbartok@novell.com>
10205 - Removed debug output
10206 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10208 - Plugged resource leak
10209 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10212 2005-06-05 Peter Bartok <pbartok@novell.com>
10214 * XplatUIWin32.cs: Removed DnD code
10215 * Win32DnD.cs: Implemented drop source and drop target functionality
10217 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10219 * UpDownBase.cs: remove duplicate addition of event, enable some code
10220 that was commented out.
10221 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10222 Validate input when a key is pressed. It works fine now for every
10223 combination of Hexadecimal. Only missing some drawing love when sharing
10224 space with other controls.
10226 2005-06-04 Peter Bartok <pbartok@novell.com>
10229 - We need to pass a window for DragDrop, so enable callback events
10230 - Added DnD callback events when being a DragSource
10231 * XplatUI.cs (StartDrag): Added window handle argument
10232 * XplatUIDriver.cs (StartDrag): Added window handle argument
10233 * QueryContinueDragEventArgs: Made fields internally accessible so
10234 drivers can set them
10235 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10238 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
10240 * DataGridTextBoxColumn.cs: column text editing
10241 * DataGridTableStyle.cs: Respect columns styles created by the user
10242 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10243 * DataGridBoolColumn.cs: bool column editing
10244 * DataGrid.cs: fixes to scrolling, properties, etc
10245 * DataGridTextBox.cs: handle keyboard
10246 * DataGridColumnStyle.cs: fixes
10248 2005-06-02 Jackson Harper <jackson@ximian.com>
10250 * ImageListStreamer.cs: Somewhat broken implementation of
10251 GetObjectData. The RLE needs some work to match MS properly.
10253 2005-06-02 Jackson Harper <jackson@ximian.com>
10255 * X11Dnd.cs: Attempting to keep at least one file in MWF
10258 2005-06-02 Peter Bartok <pbartok@novell.com>
10260 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10263 2005-06-02 Peter Bartok <pbartok@novell.com>
10265 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10266 * XplatUI.cs: Added DoDragDrop() method
10267 * XplatUIDriver.cs: Added DoDragDrop() method
10269 2005-06-02 Jackson Harper <jackson@ximian.com>
10271 * Splitter.cs: Implement BorderStyle.
10273 2005-06-02 Jackson Harper <jackson@ximian.com>
10275 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10276 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10279 2005-06-02 Peter Bartok <pbartok@novell.com>
10282 - Added Data setter
10283 - Fixed broken insertion code for SetData, now also
10284 overwrites any existing entry of the same format name
10285 * Hwnd.cs: Added list of pointers that automatically gets
10286 freed when the window is disposed
10287 * XplatUI.cs: Call driver initialization method when loading
10290 - OnDragLeave takes EventArgs, not DragEventArgs
10291 - Added setting of WS_EX_ACCEPTFILES style when dropping is
10293 - Forces style update when drop state changes
10294 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10295 not perfect since we cannot (yet) call the IDataObject.GetData()
10296 method, we keep getting 0x80004005 error, dunno why)
10298 2005-06-02 Peter Bartok <pbartok@novell.com>
10300 * DragEventArgs.cs: Make fields internal so we can cache the
10301 object and re-set the fields from XplatUI
10303 2005-06-02 Jackson Harper <jackson@ximian.com>
10305 * Control.cs: Add some internal methods so the DnD subsystem can
10306 raise DnD events. Also call into the driver when AllowDrop is set.
10308 * XplatUIDriver.cs: New method for setting whether or not a window
10309 is allowed to accept drag and drop messages.
10311 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
10313 * ScrollBar.cs: Make sure that values sent in Scroll events
10314 are always between Maximum and Minimum.
10316 2005-06-01 Marek Safar <marek.safar@seznam.cz>
10318 * Menu.cs: Call MenuChanged when menuitem visibility has been
10320 * MenuItem.cs: Rebuild menu when item is (not) visible.
10321 * MainMenu.cs: MainMenu has special MenuChanged.
10322 * Theme.cs: Caption and FrameBorderSize are not fixed.
10323 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10324 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10326 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10327 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10329 2005-05-30 Jackson Harper <jackson@ximian.com>
10331 * DataFormat.cs: We can't statically initialize this stuff because
10332 it calls into the xplatui and could create a loop. So we lazy init
10335 2005-05-28 Jackson Harper <jackson@ximian.com>
10337 * Control.cs: Proper implementation of Product(Name/Version).
10339 2005-05-27 Jackson Harper <jackson@ximian.com>
10341 * DataObject.cs: Dont crash if no data is found.
10343 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10344 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10345 as per status page, guessing it should be set to true
10347 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
10349 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10350 * DataGridTableStyle.cs: set proper formatting text, def header text
10351 * ThemeWin32Classic.cs: new themable paramaters
10352 * DataGridBoolColumn.cs: paint check box, get data, fixes
10353 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10354 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10355 * DataGridColumnStyle.cs: fixes
10356 * Theme.cs: new themable paramaters
10358 2005-05-26 Peter Bartok <pbartok@novell.com>
10360 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10362 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10363 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10365 2005-05-24 Peter Bartok <pbartok@novell.com>
10367 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10368 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10369 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10370 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10371 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10372 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10373 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10374 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10375 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10376 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10377 missing attributes, etc
10378 * DataGridPreferredColumnWidthTypeConverter.cs: Added
10380 2005-05-24 Peter Bartok <pbartok@novell.com>
10382 * Help.cs: Added, implemented trivial functions, throws up MessageBox
10383 when user tries to get help
10384 * DataObject.cs, DataFormats.cs, LinkArea.cs,
10385 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10386 to suppress warnings
10387 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10388 avoid unreachable code warning
10390 2005-05-20 Peter Bartok <pbartok@novell.com>
10392 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10394 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10396 * DataGridTextBoxColumn.cs: Basic painting methods
10397 * DataGridTableStyle.cs: Set table style in the column
10398 * ThemeWin32Classic.cs: Use Theme for colors
10399 * DataGridDrawingLogic.cs: Implement more drawing
10400 * DataGrid.cs: drawing, theming, enhacements, fixes
10401 * DataGridColumnStyle.cs: fixes, drawing
10402 * Theme.cs: theming for Datagrid
10404 2005-05-20 Peter Bartok <pbartok@novell.com>
10406 * Cursor.cs: Implemented GetObjectData() method
10408 2005-05-20 Peter Bartok <pbartok@novell.com>
10410 * Cursors.cs: Added setting of cursor name
10412 - Implemented constructors
10413 - Implemented Draw and DrawStretched
10414 - Implemented Current property
10415 - Implemented == and != operators
10416 - Implemented Dispose()
10417 - Implemented ToString
10418 - Added missing attributes
10420 - Added missing reset for OverrideCursor when DoEvents is called
10421 - Fixed creation of cursor, logic was wrong
10423 - Added missing reset for OverrideCursor when DoEvents is called
10424 - Fixed creation of cursor, bit arrays were swapped
10425 * Clipboard.cs: Removed obsolete MonoTODO attribute
10427 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10429 * ComboBox.cs: fixes OnSelectedItemChanged
10430 * ControlBindingsCollection.cs: fixes item range check
10432 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
10435 - Calc preferred height properly
10436 - Implement missing properties
10438 * NumericUpDown.cs: Implement missing events
10440 2005-05-19 Jackson Harper <jackson@ximian.com>
10442 * TabControl.cs: New method that resizes the tab pages before
10443 redrawing them. This as needed as the control is double buffered
10444 and sizing will not be recalculated unless ResizeTabPages is
10446 * TabPage.cs: Set base.Text instead of Text in the constructor so
10447 that UpdateOwner does not get called. Use the new Redraw method of
10448 TabControl instead of Refresh so the sizing is recalculated.
10449 * ThemeWin32Classic.cs: Draw the text for button tabs.
10451 2005-05-19 Jackson Harper <jackson@ximian.com>
10453 * Control.cs: Paint control background images. Fix typo where
10454 PaintControlBackground was not getting called correctly.
10456 2005-05-19 Peter Bartok <pbartok@novell.com>
10458 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10459 I can investigate, apparently I broke FileDialog
10461 2005-05-19 Marek Safar <marek.safar@seznam.cz>
10463 * AxHost.cs: Some simple properties.
10464 * Control.cs: window must be accessible after ctor.
10465 * Form.cs: Added TransparencyKey property.
10466 * TextBoxBase.cs: Implemented Clear. Text property can be null.
10467 * XplatUIWin32.cs: SetBorderStyle implemented.
10469 2005-05-18 Peter Bartok <pbartok@novell.com>
10471 * DataObject.cs: Entries are not global but particular to the
10472 DataObject, now it behaves that way
10473 * XplatUIWin32.cs: Implemented Clipboard methods
10474 * Clipboard.cs: Implemented
10475 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
10476 * XplatUIOSX.cs: Updated to final clipboard prototypes
10477 * XplatUIX11.cs: Implemented Clipboard methods
10478 * XplatUIDriver.cs: Updated to final clipboard prototypes
10479 * XplatUIStructs.cs:
10480 - Added BITMAPINFOHEADER struct
10481 - Added ClipboardFormats enum
10483 - Added ClipboardStruct
10484 - Added Atom enum items for clipboard types
10485 - Fixed atom types for Selection event structures
10487 - Added internal properties and methods for drivers to enumerate
10489 - Switched initialization method to allow drivers to assign their
10490 own IDs even for the MS predefined clipboard IDs
10491 * XplatUI.cs: Updated to final clipboard interface
10493 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10494 * PropertyGridView.cs: Fixed compiler warnings.
10496 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10497 * PropertyGrid.cs: Added some event calls
10498 * PropertyGridView.cs: Change drawing code to use double buffering
10499 * PropertyGridTextBox.cs: Changed Text property name
10500 * GridItem.cs: Added Bounds property.
10501 * GridEntry.cs: Added Bounds property.
10503 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
10505 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
10506 since GetType() may not return the correct type if the object is
10509 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
10511 * TreeNodeCollection.cs: fixes get/set item ranges
10513 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10515 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
10517 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
10519 * ComboBox.cs: Fix item range comparation
10520 * ListView.cs: Fix item range comparation
10522 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10525 - Clear example panel when OnPaint is called
10526 - Better solution for displaying the example panel text
10527 - Select default indexes in the ListBoxes
10529 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10531 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
10533 2005-05-11 Peter Bartok <pbartok@novell.com>
10535 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
10536 * SelectionRangeConverter.cs: Implemented
10537 * PropertyGrid.cs: Fixed attribute value
10539 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
10540 - Added Sebastien Pouliot's CAS Stack Propagation fixes
10541 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
10542 that's common to all drivers. First methods to go there are
10543 Sebastien Pouliot's CAS Stack Propagation helper methods
10544 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
10545 Sebastien Pouliot for CAS Stack Propagation
10547 2005-05-11 Geoff Norton <gnorton@customerdna.com>
10550 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
10552 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
10554 * DataGridTextBoxColumn.cs: fixed some members
10555 * GridColumnStylesCollection.cs: indexed column is case insensitive
10556 * DataGridTableStyle.cs: fixes
10557 * ThemeWin32Classic.cs: add new theme parameter
10558 * Theme.cs: add new theme parameter
10559 * DataGridDrawingLogic.cs: Datagrid's drawing logic
10560 * DataGrid.cs: fixes, new internal properties, etc.
10561 * DataGridColumnStyle.cs: allows to set grid value
10564 2005-05-10 Peter Bartok <pbartok@novell.com>
10566 * AccessibleObject.cs:
10567 - Removed MonoTODO attribute on help, method is correct
10568 - Fixed Bounds property
10569 * AxHost.cs: Moved MonoTODO
10570 * ButtonBase.cs: Now setting AccessibleObject properties
10571 * RadioButton.cs: Setting proper AccessibleObject role
10572 * CheckBox.cs: Setting proper AccessibleObject role
10573 * ControlBindingsCollection.cs: Added properties, methods and attributes
10574 * DataFormats.cs: Fixed awkward internal API, and changed to enable
10575 userdefined DataFormats.Format items as well
10576 * ListControl.cs: Removed data_member from the public eye
10577 * OpenFileDialog.cs:
10578 - Made class sealed
10579 - Added missing attributes
10580 * SaveFileDialog.cs: Added missing attributes
10581 * ImageListStreamer.cs: Fixed code that caused warnings
10582 * LinkLabel.cs: Removed unreachable code
10583 * TreeView.cs: Fixed code that caused warnings
10584 * PropertyGridView.cs: Fixed code that caused warnings
10585 * GridColumnStylesCollection.cs: Added missing attributes
10586 * GridTableStylesCollection: Added missing attribute
10587 * PropertyManager: Added .ctor
10588 * SecurityIDType: Added
10589 * DataObject.cs: Implemented class
10590 * LinkArea.cs: Added missing attribute
10592 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
10594 * RadioButton.cs: call base method to allow to fire OnClick event
10595 * UpDownBase.cs: OnMouseUp call base method
10596 * CheckedListBox.cs: call base method before returning
10597 * TrackBar.cs: call base method before returning
10600 2005-05-10 Peter Bartok <pbartok@novell.com>
10602 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
10605 2005-05-10 Peter Bartok <pbartok@novell.com>
10607 * DataFormats.cs: Implemented
10608 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
10609 XplatUIX11.cs: Added Clipboard APIs
10610 * XplatUIWin32.cs: Implemented Clipboard APIs
10611 * FolderBrowserDialog.cs: Added missing event, attributes
10613 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
10615 * CheckBox.cs: call base method to allow to fire OnClick event
10617 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
10619 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
10621 2005-05-06 Peter Bartok <pbartok@novell.com>
10623 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
10624 * Screen.cs: Implemented
10625 * HelpNavigator.cs: Added
10626 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
10628 * HelpProvider.cs: Implemented all we can do until we have a CHM
10629 help library (which means that "What's This" does work now)
10631 2005-05-06 Jackson Harper <jackson@ximian.com>
10633 * XplatUIX11.cs: Fix waking up the main loop.
10635 2005-05-05 Peter Bartok <pbartok@novell.com>
10637 * XplatUI.cs: Updated revision
10638 * Form.cs: Removed enless loop
10639 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
10640 * Label.cs (OnPaint): Added call to base.OnPaint()
10641 * ToolTip.cs: Made ToolTipWindow reusable for other controls
10642 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
10643 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
10645 * ButtonBase.cs: Moved base.OnPaint() call to end of method
10646 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
10647 to ToolTip.ToolTipWindow for drawing and size methods; this allows
10648 reuse of ToolTipWindow by other controls
10649 * SizeGrip.cs: Moved base.OnPaint() call to end of method
10650 * XplatUIX11.cs: Now clipping drawing area (experimental)
10651 * PictureBox.cs: Moved base.OnPaint() call to end of method
10652 * Theme.cs: Fixed ToolTip abstracts to match new format
10653 * ErrorProvider.cs: Implemented
10655 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
10657 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
10661 - Implements LinkBehavior
10662 - Fixes many issues
10664 2005-05-03 Jackson Harper <jackson@ximian.com>
10666 * ListView.cs: Calculate the scrollbar positioning on resize and
10667 paint, so they get put in the correct place.
10669 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
10671 * ColorDialogs.cs: The small color panels are now handled by
10672 SmallColorControl. This fixes drawing of the focus rectangle
10673 and adds a 3D border.
10675 2005-05-03 Peter Bartok <pbartok@novell.com>
10677 * Control.cs: Modified version of Jonathan Chamber's fix for
10680 2005-05-03 Jackson Harper <jackson@ximian.com>
10682 * ListView.cs: Remove redraw variable. Control now handles whether
10683 or not a redraw needs to be done, and will only raise the paint
10684 event if redrawing is needed.
10686 2005-05-03 Jackson Harper <jackson@ximian.com>
10688 * Splitter.cs: No decorations for the splitter form. Cache the
10691 2005-05-03 Jackson Harper <jackson@ximian.com>
10693 * TreeView.cs: Use dashed lines to connect nodes. Use the
10694 ControlPaint method for drawing the focus rect instead of doing
10697 2005-05-02 Peter Bartok <pbartok@novell.com>
10699 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
10701 2005-04-29 Jackson Harper <jackson@ximian.com>
10703 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
10704 entire image buffer. Just clear the clipping rectangle.
10706 2005-04-29 Jackson Harper <jackson@ximian.com>
10708 * ThemeWin32Classic.cs: Don't draw list view items that are
10709 outside the clipping rectangle.
10711 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
10713 * ListBox.cs: added horizontal item scroll
10715 2005-04-29 Jackson Harper <jackson@ximian.com>
10717 * ThemeWin32Classic.cs: Remove some old debug code that was
10718 causing flicker with the new double buffering code.
10720 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
10722 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
10723 behave like combobox and comboboxlist (still not sure if this is
10726 2005-04-28 Jackson Harper <jackson@ximian.com>
10728 * ThemeWin32Classic.cs: Don't fill the middle of progress
10729 bars. This fills areas outside of the clip bounds that don't need
10732 2005-04-28 Jackson Harper <jackson@ximian.com>
10734 * Control.cs: Don't expose functionality to touch the image buffers.
10736 * ListView.cs: We do not need to (and no longer can) manipulate
10737 the image buffers directly. All of this is handled by Control.
10739 2005-04-28 Peter Bartok <pbartok@novell.com>
10741 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10742 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
10743 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
10745 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10748 - Adjust control's height for non-simple comboboxes (bug fix)
10750 * MenuAPI.cs: remove unused var
10751 * ScrollBar.cs: remove unsed var
10753 * ListBox.cs: unselect items when clearing
10755 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10757 * ListControl.cs: honors OnPositionChanged and default Selected Item
10758 * ListBox.cs: unselect items when clearing
10760 2005-04-27 Jackson Harper <jackson@ximian.com>
10762 * X11Keyboard.cs: Initialize a default keyboard and give a warning
10763 if a "correct" keyboard is not found. This will make us not crash,
10764 but might give some users bad keyboard layouts...seems to be the
10765 same thing rewind does.
10767 2005-04-27 Jackson Harper <jackson@ximian.com>
10769 * BindingManagerBase.cs: Attach the current/position changed
10770 handlers to their respective events.
10772 2005-04-27 Jackson Harper <jackson@ximian.com>
10774 * Control.cs: Make sure that the first WM_PAINT does a full draw,
10776 * ThemeWin32Classic.cs: Don't fill the background for picture
10777 boxes. This could overright user drawing.
10778 * ComboBox.cs: Just fill the clipping rect not the entire client
10779 rect when drawing the background. This prevents pieces of the
10780 image buffer from getting overwritten and is theoretically faster.
10782 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
10784 * ComboBox.cs: Databinding support fixes, fire missing events
10785 * ListControl.cs: implement missing methods and properties, fixes
10786 * ThemeWin32Classic.cs: Databiding support on Drawing
10787 * CheckedListBox.cs: Databinding support fixes, fire missing events
10788 * ListBox.cs: Databinding support fixes, fire missing events
10790 2005-04-25 Peter Bartok <pbartok@novell.com>
10792 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
10794 2005-04-25 Jackson Harper <jackson@ximian.com>
10796 * TreeView.cs: Use the horizontal scrollbars height not width when
10797 determining how much of the client area is available.
10799 2005-04-25 Jackson Harper <jackson@ximian.com>
10801 * Control.cs: Double buffering is handled differently now. As per
10802 the spec, the extra buffer is created in the WM_PAINT message and
10803 passed down to the control's drawing code.
10811 * PropertyGridView.cs:
10823 * DateTimePicker.cs:
10825 * TreeView.cs: Update to new double buffering system.
10826 * MonthCalendar.cs: Uncomment block, as Capture is now
10827 working. Update to new double buffering
10828 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
10829 * PaintEventArgs.cs: New internal method allows us to set the
10830 graphics object. This is used for double buffering.
10831 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
10832 rectangle. The internal paint_area var has been removed from
10833 StatusBar. The clipping rect should be used instead.
10834 * Theme.cs: Give the PictureBox drawing method a clipping rect.
10835 * TabPage.cs: The RefreshTabs method was removed, so just call the
10836 tab controls Refresh method now.
10837 * TabControl.cs: Update to new double buffering. Make sure the
10838 handle is created before sizing the tab pages, otherwise we will
10839 get stuck in a loop.
10841 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
10843 * LinkLabel.cs: Fix typo, bug #74719; patch
10844 from Borja Sanchez Zamorano
10846 2005-04-22 Jackson Harper <jackson@ximian.com>
10848 * TreeNode.cs: Implement Handle stuff.
10849 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
10851 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
10853 * DataGridTextBoxColumn.cs: call base constructors, fixes
10854 * GridColumnStylesCollection.cs: missing events, methods, and functionality
10855 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
10856 * DataGridTableStyle.cs: implements create default column styles
10857 * DataGridBoolColumn.cs: which types can handle
10858 * DataGrid.cs: missing methods, fixes, new functionality
10859 * DataGridColumnStyle.cs: fixes
10861 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
10862 * FolderBrowserDialog.cs:
10863 - Use a thread to fill the TreeView
10864 - Adjusted some sizes
10866 2005-04-19 Peter Bartok <pbartok@novell.com>
10868 * LinkLabel.cs: (Re-)create the pieces when setting the Text
10869 property. Fixes #74360.
10871 2005-04-19 Jackson Harper <jackson@ximian.com>
10873 * XEventQueue.cs: Lock when getting the lockqueue size.
10874 * PictureBox.cs: Call base OnPaint
10876 2005-04-19 Peter Bartok <pbartok@novell.com>
10878 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
10879 messages were no longer being processed (this broke BeginInvoke)
10882 2005-04-18 Jackson Harper <jackson@ximian.com>
10884 * TreeView.cs: buglet that caused node images to get drawn
10885 regardless of whether or not they were in the clipping rectangle.
10887 2005-04-18 Jackson Harper <jackson@ximian.com>
10889 * CurrencyManager.cs: There are four rules for GetItemProperties:
10890 - If the type is an array use the element type of the array
10891 - If the type is a typed list, use the type
10892 - If the list contains an Item property that is not an object, use
10894 - use the first element of the list if there are any elements in
10897 2005-04-17 Jackson Harper <jackson@ximian.oom>
10899 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
10900 click. This handles offsets for scrolling properly and reduces
10901 memory. Also fixed GetNode to not offset now that TopNode works
10903 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
10905 2005-04-17 Jackson Harper <jackson@ximian.com>
10907 * CursorConverter.cs: Initial implementation.
10909 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10911 * ListControl.cs: work towards complex data binding support on ListControl
10912 * CurrencyManager.cs: work towards complex data binding support on ListControl
10913 * ListBox.cs: work towards complex data binding support on ListControl
10916 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10918 * GridTableStylesCollection.cs: fixes name and constructor
10919 * DataGridTableStyle.cs: fixes
10920 * DataGridBoolColumn.cs: fixes names and constructors
10921 * DataGrid.cs: define methods and properties. Some init implementations
10922 * DataGridCell.cs: define methods and properties. Some init implementations
10923 * GridTablesFactory.cs: Define methods and properties
10925 2005-04-15 Geoff Norton <gnorton@customerdna.com>
10927 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
10928 graphics port changes. We still want the coordinates in global screen
10931 2005-04-14 Jackson Harper <jackson@ximian.com>
10933 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
10934 check plus minus or checkbox clicks unless those features are enabled.
10936 2005-04-14 Jackson Harper <jackson@ximian.com>
10938 * TreeView.cs: Add methods for setting the top and bottom visible
10939 nodes. TreeNode::EnsureVisible uses these methods.
10940 * TreeNode.cs: Implement EnsureVisible
10942 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
10944 * Form.cs: Pospone menu assignation if the window has not been created yet
10945 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
10948 2005-04-12 Jackson Harper <jackson@ximian.com>
10950 * TreeView.cs: Set the TopNode properly when scrolling
10951 occurs. This has the added benifit of reducing the amount of
10952 walking that needs to be done when drawing. Also removed an old
10954 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
10956 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
10958 * Timer.cs: fixes interval setting when the timer is already enabled
10960 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
10962 * FolderBrowserDialog.cs: First approach
10964 2005-04-09 Peter Bartok <pbartok@novell.com>
10966 * FolderBrowserDialog: Added
10968 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
10970 * LinkLabel.cs: move drawing code into the theme
10971 * ThemeWin32Classic.cs: drawing code and painting background bugfix
10972 * Theme.cs: define DrawLinkLabel method
10974 2005-04-05 Jackson Harper <jackson@ximian.com>
10976 * BindingContext.cs: Use weak references so these bad actors don't
10977 stay alive longer then they need to.
10979 2005-04-05 Jackson Harper <jackson@ximian.com>
10981 * ListControl.cs: Basic implementation of complex databinding.
10983 * ListBox.cs: Add calls to ListControl databinding methods.
10985 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
10988 - Don't change PopupButtonState to Normal when the
10989 PopupButton gets pressed several times.
10990 - Renamed ButtonPanel to PopupButtonPanel
10992 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
10994 * ColorDialog.cs: Use cached objects instead of creating them
10995 * LinkLabel.cs: Use cached objects instead of creating them
10996 * Splitter.cs: Use cached objects instead of creating them
10997 * FontDialog.cs: Use cached objects instead of creating them
10998 * PropertyGridView.cs: Use cached objects instead of creating them
10999 * MessageBox.cs: Use cached objects instead of creating them
11000 * FileDialog.cs: Use cached objects instead of creating them
11001 * ThemeWin32Classic.cs: Use cached objects instead of creating them
11002 * TreeView.cs: Use cached objects instead of creating them
11004 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
11006 * Control.cs: use Equals to compare the font since no == op
11007 * ScrollBar.cs: use Equals to compare the font since no == op
11009 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
11011 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11013 2005-04-01 Jackson Harper <jackson@ximian.com>
11015 * Binding.cs: Implement IsBinding.
11016 * BindingManagerBase.cs:
11017 * PropertyManager.cs:
11018 * CurrencyManager.cs: Add IsSuspended property.
11020 2005-04-01 Jackson Harper <jackson@ximian.com>
11022 * Binding.cs: Had some IsAssignableFrom calls backwards.
11024 2005-04-01 Jackson Harper <jackson@ximian.com>
11026 * Binding.cs: Handle null data members when pulling data.
11027 * PropertyManager.cs: Handle the data member being a property that
11030 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11032 * DataGridTextBoxColumn.cs: fixes signature
11033 * DataGrid.cs: calls right constructor
11035 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
11037 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11038 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11039 * GridTableStylesCollection.cs: implements GridTableStylesCollection
11040 * DataGridTableStyle.cs: implements DataGridTableStyle
11041 * DataGridBoolColumn.cs: implements DataGridBoolColumn
11042 * DataGridTextBox.cs: implements DataGridTextBox
11043 * DataGridColumnStyle.cs: implements DataGridColumnStyle
11045 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
11047 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11049 2005-03-29 Peter Bartok <pbartok@novell.com>
11052 - Properly implemented CompanyName property
11053 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11054 returns a path that includes CompanyName, ProductName and
11055 Version (fixes bug #70330)
11057 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
11059 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11062 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11064 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11066 - Added ReadOnly CheckBox
11067 - Further refactoring: moved some code from Open-/SaveFileDialog
11070 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
11072 * OpenFileDialog.cs: Fixed CheckFileExists
11074 Moved FileView and DirComboBox outside FileDialog class.
11075 They can now be used outside FileDialog
11077 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11079 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11080 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11082 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
11084 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11085 - Added missing CreatePrompt property in SaveDialog
11086 - Overall SaveDialog handling should be better now
11087 - Added non standard ShowHiddenFiles property
11088 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11089 - Added InitialDirectory and RestoreDirectory support
11091 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
11093 * FileDialog.cs: Made dirComboBox usable
11095 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
11097 * FileDialog.cs: Added Filter support (case sensitiv)
11099 2005-03-24 Jackson Harper <jackson@ximian.com>
11101 * TabControl.cs: Need a couple more pixels for the lines.
11103 2005-03-23 Jackson Harper <jackson@ximian.com>
11105 * TabControl.cs: Give the tab page focus when it is selected.
11107 2005-03-23 Jackson Harper <jackson@ximian.com>
11109 * TabControl.cs: Account for the drawing of tabs borders when
11110 invalidating. If the slider was clicked dont do click detection on
11113 2005-03-23 Jackson Harper <jackson@ximian.com>
11115 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11117 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
11119 * CategoryGridEntry.cs: Added
11120 * GridItem.cs: Added helper properties
11121 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11122 * GridEntry.cs: Updated code for collection
11123 * PropertyGrid.cs: Cleaned up some formatting
11124 * PropertyGridView.cs: Added drop down functionality for enums.
11125 * GridItemCollection.cs: Added enumerator logic
11126 * PropertyGridEntry.cs: Added
11128 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11131 - Removed unnecessary commented code
11132 - Fixed handling for entering the filename manually in the combobox
11134 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
11136 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11138 2005-03-18 Peter Bartok <pbartok@novell.com>
11140 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11141 them being touching the border
11143 2005-03-18 Peter Bartok <pbartok@novell.com>
11145 * TextControl.cs: Quick hack to center text better
11147 2005-03-18 Peter Bartok <pbartok@novell.com>
11150 - Don't throw NotImplemented exceptions, just print a notice once
11151 instead (requested by Miguel). This makes running existing SWF
11154 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11155 - Added context menu trigger on right click
11156 * Panel.cs: Trigger invalidate on resize
11158 - Removed old double-buffer drawing
11159 - Added ResizeRedraw style to force proper update of statusbar
11161 - Removed debug output
11162 * ThemeWin32Classic.cs:
11163 - Fixed drawing of status bar, now draws Text property if there
11164 are no defined panels
11166 2005-03-18 Jackson Harper <jackson@ximian.com>
11168 * ImageList.cs: When the image stream is set pull all the images
11170 * ImageListStreamer.cs: Implement reading image list streams.
11172 2005-03-18 Peter Bartok <pbartok@novell.com>
11174 * ThemeWin32Classic.cs (DrawPictureBox):
11175 - Fixed calculations for centered drawing
11176 - Fixed drawing for normal mode, not scaling the image on normal
11178 2005-03-18 Peter Bartok <pbartok@novell.com>
11180 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11183 - Made Open/Save button the accept button for FileDialog
11184 - Tied the cancel button to the IButtonControl cancel button
11185 - Save/Open now properly builds the pathname
11186 - Now handles user-entered text
11187 - Preventing crash on right-click if no item is selected
11188 - Fixed Text property, now uses contents of textbox
11189 - Fixed SelectedText property, now just returns the text part that
11190 is selected in the text box
11192 2005-03-18 Jackson Harper <jackson@ximian.com>
11194 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11195 rect, make sure to de-adjust the interior rect after drawing the
11198 2005-03-18 Peter Bartok <pbartok@novell.com>
11200 * MenuAPI.cs: Remove menu *before* executing selected action to
11201 prevent the menu from 'hanging around'
11203 2005-03-17 Geoff Norton <gnorton@customerdna.com>
11205 * XplatUIOSX.cs: Implemented WorkingArea property
11207 2005-03-17 Peter Bartok <pbartok@novell.com>
11209 * XplatUIX11.cs: Fixed menu coord calculations
11210 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11211 for calculating offsets
11213 2005-03-17 Peter Bartok <pbartok@novell.com>
11215 * Hwnd.cs: Do not consider menu presence for default client
11216 rectangle location/size
11217 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11218 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11219 translation functions
11220 * FileDialog.cs: Fixed (what I presume is a) typo
11222 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
11224 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11225 X access (avoids X-Async errors)
11227 2005-03-16 Jackson Harper <jackson@ximian.com>
11229 * TabControl.cs: Raise the SelectedIndexChanged event.
11231 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
11233 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11234 - Removed vertical ToolBar and replaced it with a custom panel
11235 (desktop and home button already work)
11236 - Added Help button (some controls get resized or relocated then)
11237 - Draw correct text depending on Open or Save.
11238 - Fixed some typos...
11240 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
11243 - Only change Maximum and Minimum when need it (bug fix)
11245 2005-03-15 Peter Bartok <pbartok@novell.com>
11247 * Form.cs: Use Handle for icon, to trigger creation if
11248 the window does not yet exist
11250 - CanSelect: Slight performance improvement
11251 - Focus(): Preventing possible recursion
11252 - Invalidate(): Removed ControlStyle based clear flag setting
11253 - WM_PAINT: fixed logic for calling OnPaintBackground
11254 - WM_ERASEBKGND: Fixed logic, added call to new driver method
11255 EraseWindowBackground if the control doesn't paint background
11257 - Moved EraseWindowBackground() method to internal methods
11258 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11259 is sent via SendMessage on BeginPaint call on Win32
11261 - Added EraseWindowBackground() method
11262 - No longer sends WM_ERASEBKGND on .Expose, but on call to
11263 PaintEventStart, which more closely matches Win32 behaviour
11264 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11265 - Fixed SetFocus() to properly deal with client and whole windows
11266 * Hwnd.cs: Added ErasePending property
11267 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11268 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11270 2005-03-12 Geoff Norton <gnorton@customerdna.com>
11273 - Fix hard loop when timers exist.
11274 - Fix bugs with middle and right click for 3 button mice.
11276 2005-03-11 Peter Bartok <pbartok@novell.com>
11279 - get_WorkingArea: Need to call X directly, GetWindowPos only
11280 returns cached data now
11281 - Added sanity check to GetWindowPos hwnd usage
11283 2005-03-11 Jackson Harper <jackson@ximian.com>
11285 * BindingManagerBase.cs: This method isn't used anymore as
11286 PullData now updates the data in the control.
11288 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
11290 * Form.cs: fixes menu drawing on X11
11291 * MenuAPI.cs: fixes menu drawing on X11
11293 2005-03-11 Peter Bartok <pbartok@novell.com>
11295 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11296 from Jonathan Gilbert; should fix bug #73606
11297 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11298 in Screen coordinates. Thanks, Jordi.
11299 * Form.cs: Added missing attribute
11301 2005-03-11 Peter Bartok <pbartok@novell.com>
11304 - Rudimentary Mdi support
11305 - Removed outdated FormParent code
11306 - Implemented lots of missing properties and methods, still missing
11307 transparency support
11308 - Added missing attributes
11309 - Implemented support for MaximumBounds
11310 - Added firing of various events
11311 * XplatUI.cs: Added SetIcon() method
11312 * XplatUIDriver.cs: Added SetIcon() abstract
11313 * XplatUIOSX.cs: Stubbed out SetIcon() method
11315 - Implemented SetIcon() support
11316 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11317 - Switched to unix line endings
11319 - Made POINT internal so for can access it as part of MINMAX
11320 - Implemented SetIcon() support
11321 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11322 native Mdi support again, might have to go managed)
11323 * Control.cs: Now fires the StyleChanged event
11324 * MdiClient.cs: Added; still mostly empty
11326 2005-03-10 Peter Bartok <pbartok@novell.com>
11328 * SaveFileDialog.cs: Added emtpy file
11330 2005-03-08 Peter Bartok <pbartok@novell.com>
11332 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11333 in turn triggers OnCreateContro) when creating a handle for the
11335 * TextControl.cs: Fixed endless loop in certain cases when
11336 replacing the current selection
11338 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
11341 - Honors NewValue changes in Scroll events allowing apps to change it
11342 - Adds First and Last Scroll events
11343 - Fixes Thumb events
11345 2005-03-07 Peter Bartok <pbartok@novell.com>
11347 * Hwnd.cs: Added DefaultClientRectangle property
11348 * XplatUI.cs: Now using the X11 driver Where() method, which provides
11349 more detailed debug information
11351 - Fixed size-change feedback loop, where we would pull an old size
11352 off the queue and mistakenly change our window's size to an
11354 - Now compressing ConfigureNotify events, to reduce looping and
11356 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11359 2005-03-07 Jackson Harper <jackson@ximian.com>
11361 * Binding.cs: Push data pushes from data -> property. Check if the
11362 property is readonly when attempting to set it.
11364 2005-03-07 Jackson Harper <jackson@ximian.com>
11366 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11367 instead of IsSubclassOf. Pulling data now sets the value on the
11369 * PropertyManager.cs:
11370 * CurrencyManager.cs: Just need to pull data when updating now,
11371 because PullData will set the value on the control.
11373 2005-03-04 Jackson Harper <jackson@ximian.com>
11375 * Binding.cs: Implement data type parsing and converting on pulled
11376 data. TODO: Are there more ways the data can be converted?
11378 2005-03-04 Jackson Harper <jackson@ximian.com>
11380 * Binding.cs: Support <Property>IsNull checks. Also bind to the
11381 controls Validating method so we can repull the data when the
11382 control loses focus.
11384 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
11387 - Fixes null string format
11390 - Adds enum type checks
11391 - Fixes redrawing and recalc need after changing some properties
11392 - Fixes on focus_item set after the event
11393 - Fixes adding columns after the control has been created
11395 * ThemeWin32Classic.cs:
11396 - Fixes CheckBox focus rectangle
11397 - Fixes ColumnHeader drawing
11400 2005-03-03 Jackson Harper <jackson@ximian.com>
11402 * Binding.cs: Bind to <Property>Changed events so we can detect
11403 when properties are changed and update the data.
11405 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
11408 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11409 - Fixes ImageList constructor with ImageList container
11410 - Fixes image scaling (wrong parameters at DrawImage)
11412 2005-02-02 Jackson Harper <jackson@ximian.com>
11414 * Binding.cs: Make property searches case-insensitive. Eliminate
11415 some duplicated code.
11417 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
11420 - Handle focus event
11421 - Fix scrollbar events
11422 - Discard highlighted item if remove it
11423 - Fixes SelectedItem with strings
11425 2005-03-01 Peter Bartok <pbartok@novell.com>
11428 - Fixed Visible property, now follows (once again) parent chain
11429 to return false if any control in the chain is visible=false
11430 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11431 - Fixed several places where is_visible instead of Visible was used
11432 - Implemented FIXME related to focus selection when setting focused
11433 control to be invisible
11435 * XplatUIWin32.cs: Now using proper method to find out if window is
11436 visible. Thanks to Jordi for pointing it out
11438 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
11440 * ComboBox.cs: show/hide scrollbar instead of creating it
11442 2005-02-27 Jackson Harper <jackson@ximian.com>
11444 * CurrencyManager.cs: Add PositionChanged stuff.
11446 2005-02-27 Peter Bartok <pbartok@novell.com>
11448 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11449 * XplatUIOSX.cs: Added GetMenuOrigin() stub
11450 * XplatUIWin32.cs: Implemented GetMenuOrigin()
11452 - Implemented GetMenuDC()
11453 - Implemented GetMenuOrigin()
11454 - Implemented ReleaseMenuDC()
11455 - Implemented generation of WM_NCPAINT message
11456 - Implemented generation and handling of WM_NCCALCSIZE message
11457 * Form.cs: Added debug helper message for Jordi's menu work
11459 - Modified ClientRect property; added setter, fixed getter to handle
11460 setting of ClientRect
11461 - Added MenuOrigin property
11463 2005-02-26 Peter Bartok <pbartok@novell.com>
11466 - Destroys the caret if a window that's being destroyed contains it
11467 - Ignores expose events coming from the X11 queue for windows that
11468 already are destroyed
11469 - Now uses the proper variable for handling DestroyNotify, before we
11470 marked the wrong window as destroyed
11471 - Improved/added some debug output
11473 2005-02-26 Peter Bartok <pbartok@novell.com>
11475 * X11Keyboard.cs: Fixes to work on 64bit systems
11477 2005-02-26 Peter Bartok <pbartok@novell.com>
11480 - Now calling OnHandleDestroyed from DestroyHandle()
11481 instead of Dispose()
11482 - Removed bogus call to controls.Remove() from DestroyHandle()
11484 2005-02-26 Peter Bartok <pbartok@novell.com>
11486 * Control.cs: Properly destroy child windows when our handle is
11489 2005-02-25 Peter Bartok <pbartok@novell.com>
11492 - Added 'DriverDebug' define to allow tracing XplatUI API calls
11493 - Alphabetized Static Methods and Subclasses
11496 - Added XException class to allow custom handling of X11 exceptions
11497 - Created custom X11 error handler, tied into XException class
11498 - Added support for MONO_XEXCEPTIONS env var to allow the user
11499 to either throw an exception on X errors or continue running
11500 after displaying the error
11501 - Added handling of DestroyNotify message
11502 - Added handler for CreateNotify message (still disabled)
11503 - Improved (tried to at least) Where method to provide file and lineno
11505 - Added XErrorHandler delegate
11506 - Added XRequest enumeration (to suppor translation of errors)
11508 2005-02-25 Jackson Harper <jackson@ximian.com>
11510 * PropertyManager.cs: Implement editing features
11511 * CurrencyManager.cs:
11512 * Binding.cs: First attempt at UpdateIsBinding
11513 * BindingManagerBase.cs: Call UpdateIsBinding before
11514 pushing/pulling data.
11516 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
11518 * MenuAPI.cs: Respect disabled items
11519 * ThemeWin32Classic.cs
11520 - Caches ImageAttributes creation for DrawImageDisabled
11521 - Fixes vertical menu line drawing
11522 - Draws disabled arrows in disable menu items
11524 2005-02-24 Peter Bartok <pbartok@novell.com>
11527 - Added UserData property to allow associating arbitrary objects
11529 - Fixed leak; now removing Hwnd references from static windows array
11531 - Fixed Graphics leak in PaintEventEnd
11532 - Removed usage of HandleData, switched over to Hwnd class
11533 * HandleData.cs: Removed, obsoleted by Hwnd.cs
11535 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11537 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
11538 * ScrollBar.cs: Fixes bug
11539 * TrackBar.cs: removes death code, clipping, mimize refreshes,
11540 keyboard navigation enhancements
11542 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
11544 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
11545 * GroupBox.cs: Add control styles
11546 * Label.cs: Add control styles
11547 * UpDownBase.cs: Add control styles
11548 * ListBox.cs: Add control styles
11549 * XplatUIWin32.cs: Fixes wrong parameter order
11552 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
11554 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
11556 2005-02-23 Jackson Harper <jackson@ximian.com>
11558 * PropertyManager.cs: Implement property binding. This doesn't
11559 seem to work yet though as (I think) there are some bugs in
11560 System.ComponentModel.PropertyDescriptor.
11561 * BindingContext.cs: Use new PropertyManager constructor.
11563 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
11565 * ProgressBar.cs: use clip region in ProgressBar
11566 * ThemeWin32Classic.cs: use clip region in ProgressBar
11568 2004-02-22 Jackson Harper <jackson@ximian.com>
11570 * BindingsCollection.cs: Remove some debug code.
11572 2005-02-22 Jackson Harper <jackson@ximian.com>
11574 * BindingContext.cs:
11575 * ControlBindingsCollection.cs:
11576 * CurrencyManager.cs:
11578 * BindingManagerBase.cs: Initial implementation
11579 * BindingsCollection.cs: Add an internal contains method that the
11580 BindingManagerBase uses to ensure bindings aren't added twice to
11582 * PropertyManager.cs: Stubbed out.
11584 * ContainerControl.cs: Hook up databinding
11586 2005-02-22 Geoff Norton <gnorton@customerdna.com>
11589 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
11590 Fixed Invalidate/Update chain.
11591 Fixed tons of other minor bugs (this is almost a complete rewrite).
11593 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
11595 * ComboBox.cs: do subcontrol creation when the control is created
11597 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11599 * Label.cs: fixes image drawing (image and imagelist)
11600 * ThemeWin32Classic.cs: cache brushes
11602 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11604 * Form.cs: Move menu drawing code to Theme class
11605 * ComboBox.cs: Move ComboBox drawing code to Theme class
11606 * MenuItem.cs: Move menu drawing code to Theme class
11607 * MenuAPI.cs: Move menu drawing code to Theme class
11608 * ThemeWin32Classic.cs: New methods
11609 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
11610 * ListBox.cs: Move Listbox drawing code to Theme class
11611 * Theme.cs: New methods
11613 2005-02-20 Peter Bartok <pbartok@novell.com>
11616 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
11617 only process mnemonics on those)
11618 - Fixed event sequence for key handling; first calling
11619 ProcessKeyEventArgs now
11621 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
11622 for processing non-character keys
11623 - Fixed WM_CHAR to generate proper event sequence before processing
11624 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
11627 2005-02-19 Peter Bartok <pbartok@novell.com>
11629 * UserControl.cs: Added TextChanged event; added attributes
11630 * SizeGrip.cs: Implemented resizing and optional display of grip
11631 * Form.cs: Fixed attribute
11632 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11633 Changed meaning of ScrollWindow bool argument; instead of the
11634 clear attribute (which will be true usually anyway), it gives the
11635 option of moving child controls as well.
11637 - Changed to match new ScrollWindow argument
11638 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
11639 now handles the implicit parent window a WM puts around us
11640 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
11642 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
11643 * TreeView.cs: Adjusted to new ScrollWindow arguments
11645 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
11647 * Form.cs: Menu integration with non-client area
11648 * MenuItem.cs: Menu integration with non-client area
11649 * MenuAPI.cs: Menu integration with non-client area
11651 2005-02-18 Peter Bartok <pbartok@novell.com>
11653 * MethodInvoker.cs: Added
11654 * MdiLayout.cs: Added
11655 * SendKeys.cs: Started implementation
11656 * ErrorIconAlignment.cs: Added
11658 2005-02-18 Peter Bartok <pbartok@novell.com>
11660 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
11661 * Form.cs: Added handling for Menu-related Non-client messages
11663 2005-02-17 Peter Bartok <pbartok@novell.com>
11665 * UpDownBase.cs: Fixed typo, compilation errors
11666 * DomainUpDown.cs: Fixed attribute value
11668 2005-02-16 Miguel de Icaza <miguel@novell.com>
11670 * UpDownBase.cs: Attach entry events.
11672 Add ForeColor property, Focused, InterceptArrowKeys (interception
11673 does not work yet).
11675 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
11678 - Redraw non client are on Setmenu
11679 - Calc proper menu starting point
11681 2005-02-17 Peter Bartok <pbartok@novell.com>
11683 * Application.cs: Fixed message_filter check
11685 2005-02-17 Peter Bartok <pbartok@novell.com>
11687 * Application.cs: Now calls registered message filters
11688 * DockStyle.cs: Fixed attribute
11689 * Form.cs: Fixed attribute
11690 * Menu.cs: Fixed attribute
11691 * ToolTip.cs: Fixed attribute
11692 * TreeNode.cs: Added missing attributes and arranged in regions
11693 * PropertyGrid.cs: Fixed signatures
11694 * TreeNodeCollection.cs: Added attributes
11695 * Splitter.cs: Added missing attributes; arranged into regions
11696 * TabPage.cs: Added missing attributes; arranged into regions
11697 * TextBoxBase.cs: Added missing attributes
11698 * TextBox.cs: Added missing attributes
11699 * ArrangeDirection.cs: Added missing attributes
11700 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
11701 * ToolBarButton.cs: Fixed attributes
11702 * AnchorStyles.cs: Fixed attribute
11703 * TrackBar.cs: Fixed attributes
11704 * TabControl.cs: Added missing attributes and arranged into regions
11705 * ToolBar.cs: Fixed attribute
11706 * StatusBar.cs: Fixed signature, organized into regions and added
11708 * StatusBarPanel.cs: Fixed attributes
11709 * ContentsResizedEventArgs.cs: Implemented
11710 * ContentsResizedEventHandler.cs: Implemented
11711 * DateBoldEventArgs.cs: Implemented
11712 * DateBoldEventHandler.cs: Implemented
11713 * UpDownEventArgs.cs: Implemented
11714 * UpDownEventHandler.cs: Implemented
11716 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
11718 * Form.cs: first Menu NC refactoring
11719 * MenuAPI.cs: first Menu NC refactoring
11721 2005-02-16 Peter Bartok <pbartok@novell.com>
11723 * ImeMode.cs: Added missing attributes
11724 * Menu.cs: Fixed attribute
11725 * GroupBox.cs: Fixed attribute
11726 * Label.cs: Fixed attribute
11727 * ColorDialog.cs (RunDialog): Removed TODO attribute
11728 * ComboBox.cs: Fixed attributes
11729 * ListControl.cs: Added missing attributes
11730 * PropertyGrid.cs: Fixed attributes
11731 * Control.cs: Fixed attributes
11732 * ListViewItem.cs: Added TypeConverter attribute
11733 * NotifyIcon.cs: Fixed attributes
11734 * ListView.cs: Fixed attributes
11735 * ButtonBase.cs: Fixed attribute
11736 * ImageList.cs: Added missing attributes
11737 * ContainerControl.cs: Fixed signature
11738 * CheckedListBox.cs: Fixed attribute; added missing attributes
11739 * Panel.cs: Fixed attributes
11740 * PropertyTabChangedEventArgs.cs: Added missing attribute
11741 * PropertyValueChangedEventArgs.cs: Added missing attribute
11742 * Binding.cs: Fixed attribute
11743 * ListViewItemConverter: Implemented ListViewSubItemConverter class
11744 * ListBox.cs: Fixed attribute; added missing attributes;
11745 * ScrollableControl.cs: Added missing attributes
11746 * PictureBox.cs: Added missing attributes; implemented missing property
11747 * DateTimePicker.cs: Added missing attributes
11748 * Theme.cs (ToolWindowCaptionHeight): Fixed type
11749 * MonthCalendar.cs: Fixed attributes
11750 * StatusBarPanel.cs: Added missing attributes
11751 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
11753 2005-02-16 Peter Bartok <pbartok@novell.com>
11755 * TextBoxBase.cs: The previous method to enforce height yet remember
11756 the requested high was less than ideal, this is an attempt to do
11758 * Control.cs: Added comment about possible problem
11759 * Copyright: Updated format
11760 * GridItemType.cs: Fixed swapped values
11762 2005-02-15 Jackson Harper <jackson@ximian.com>
11764 * BaseCollection.cs: Use property so we never access an
11765 uninitialized list. Also initialize the list in the property.
11767 2005-02-15 Peter Bartok <pbartok@novell.com>
11769 * GroupBox.cs (ProcessMnemonic): Implemented
11770 * Label.cs (ProcessMnemonic): Implemented
11771 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
11774 2005-02-15 Peter Bartok <pbartok@novell.com>
11776 * RadioButton.cs (ProcessMnemonic): Implemented
11777 * CheckBox.cs (ProcessMnemonic): Implemented
11779 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
11781 - Added internal method to allow calling ProcessMnemonic from other
11783 * ContainerControl.cs:
11784 - Started support for handling validation chain handling
11785 - Implemented ProcessMnemonic support
11786 - Added Select() call to Active, to make sure the active control
11788 * Form.cs: Setting toplevel flag for Forms (this was lost in the
11789 FormParent rewrite)
11790 * ThemeWin32Classic.cs:
11791 - DrawCheckBox(): Fixed stringformat to show hotkeys
11792 - DrawRadioButton(): Fixed stringformat to show hotkeys
11793 * CommonDialog.cs: Removed WndProc override, not needed
11795 2005-02-14 Peter Bartok <pbartok@novell.com>
11797 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
11798 missed those in the rewrite
11800 2005-02-14 Miguel de Icaza <miguel@novell.com>
11802 * NumericUpDown.cs (Increment, ToString): Add.
11803 (DecimalPlaces): implement.
11807 * UpDownBase.cs: Add the designer attributes.
11809 2005-02-13 Peter Bartok <pbartok@novell.com>
11811 * Panel.cs: Removed border_style, now in Control
11812 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
11813 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
11815 2005-02-13 Peter Bartok <pbartok@novell.com>
11817 * MouseButtons.cs: Added missing attributes
11818 * XplatUIStructs.cs: Added enumeration for title styles
11819 * LeftRightAlignment.cs: Added missing attributes
11820 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
11821 it compatible with Graphics.FromHwnd()
11822 * SelectedGridItemChangedEventArgs.cs: Fixed property type
11823 * Keys.cs: Added missing attributes
11824 * SelectionRange.cs: Added missing attributes
11825 * SelectionRangeConverter.cs: Added
11827 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
11828 ReleaseMenuDC methods
11829 - Renamed ReleaseWindow to UngrabWindow
11830 - Added proper startup notice to allow version identification
11832 - Added missing attributes
11833 - Removed FormParent concept
11834 * Label.cs: Removed border_style field, now in Control
11835 * RadioButton.cs: Now properly selects RadioButton when focus is
11837 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
11839 - Added missing attributes
11840 - Added borderstyle handling
11841 - Removed FormParent concept support
11842 - Fixed calls to XplatUI to match changed APIs
11843 - Fixed bug that would case us to use disposed Graphics objects
11844 - Removed unneeded internal methods
11845 - PerformLayout(): Fixed to handle DockStyle.Fill properly
11846 - SelectNextControl(): Fixed to properly check common parents
11847 * TextBoxBase.cs: Removed border_style field (now in Control)
11849 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
11850 fixed calculations for form size
11851 - Added support for localized strings and icons
11852 - Improved form size calculations, added border
11853 * ListView.cs: Removed border_style field (now in Control)
11854 * X11Structs.cs: Moved several structs from X11 driver here
11855 * X11Keyboard.cs: Changed debug message
11856 * Application.cs: Removed FormParent concept support
11858 - Resetting end_modal flag
11859 - Removed FormParent concept support
11860 * NativeWindow.cs: Removed FormParent concept support
11861 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
11862 Client area and Non-Client whole window to allow support for WM_NC
11864 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
11865 prevent using it until it supports Hwnd as per Geoff Norton's request
11866 * ToolBar.cs: Fixed drawing, was not doing proper drawing
11867 * PictureBox.cs: Removed border_style field, now in Control
11868 * XplatUIWin32.cs: Added new driver methods
11870 2005-02-12 Peter Bartok <pbartok@novell.com>
11872 * OpacityConverter.cs: Implemented
11873 * Hwnd.cs: Internal class to support drivers that need to emulate
11874 client area/non-client area window behaviour
11876 2005-02-11 Peter Bartok <pbartok@novell.com>
11878 * KeysConverter.cs: Implemented
11880 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
11882 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
11883 * LinkLabel: Added missing attributes
11884 * MainMenu.cs: fixes ToString
11885 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
11886 * ListBox.cs: fixes event position
11887 * TrackBar.cs: adds missing attributes and events
11889 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
11891 * MenuItem.cs: Use SystemInformation and bug fixes
11892 * MenuAPI.cs: Use SystemInformation and bug fixes
11894 2005-02-09 Jackson Harper <jackson@ximian.com>
11896 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
11897 their keystate otherwise things like VK_MENU get stuck "on".
11899 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
11901 * ListBox.cs: Fixes AddRange bug
11903 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
11906 - Add missing attributes
11907 - Add missing method
11909 * CheckedListBox.cs: Added missing attributes
11910 - Add missing attributes
11911 - Remove extra method
11913 * ComboBox.cs: Added missing attributes
11914 * VScrollBar.cs: Added missing attributes
11915 * ScrollBar.cs: Added missing attributes
11916 * ListBox.cs: Fixes signature, add missing consts
11917 * LinkArea.cs: Added missing attributes
11920 2005-02-08 Peter Bartok <pbartok@novell.com>
11922 * Menu.cs: Added missing attributes
11923 * MainMenu.cs: Added missing attributes
11924 * GroupBox.cs: Added missing attributes
11925 * Label.cs: Added missing attributes
11926 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
11928 - Added Instance and Options properties
11929 - Added missing attributes
11930 * Cursor.cs: Made Serializable
11931 * NotifyIcon: Added missing attributes
11932 * MenuItem.cs: Added missing attributes
11933 * TextBoxBase.cs: Implemented AppendText() and Select() methods
11934 * Panel.cs: Added Missing attributes
11935 * MonthCalendar.cs: Fixed CreateParams
11937 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11941 - Fixes issues with links
11942 - Adds the class attributes
11944 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11947 - Fixes button when no items available in dropdown
11948 - Fixes repainting problems
11949 - Adds the class attributes
11951 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11953 * XplatUIOSX.cs: Detect the menu bar and title bar height from
11954 the current theme. Cache these on startup.
11956 2005-02-07 Jackson Harper <jackson@ximian.com>
11958 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
11959 the scrollbar buttons when they are depressed.
11961 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11963 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
11964 Get the display size from the main displayid. We currently dont
11965 support multiple display configurations.
11967 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11969 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
11971 2005-02-07 Miguel de Icaza <miguel@novell.com>
11973 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
11975 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
11977 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
11979 2005-02-04 Jackson Harper <jackson@ximian.com>
11981 * ThemeWin32Classic.cs: Respect the clipping rect when
11982 drawing. Only fill the intersection of clips and rects so there
11983 isn't a lot of large fills.
11984 * ScrollBar.cs: Pass the correct clipping rect to the theme
11985 engine. Remove some debug code.
11987 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
11989 * DateTimePicker.cs:
11990 - Fixed crash on DateTime.Parse, use Constructor instead
11992 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
11996 - Owner draw support (MeasureItem and DrawItem)
11998 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
12001 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12002 - Fixes MenuItems.Add range
12004 - MergeMenu and Clone and CloneMenu functions
12006 2005-02-03 Jackson Harper <jackson@ximian.com>
12008 * ScrollBar.cs: Make abstract
12009 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12012 2005-02-03 Jackson Harper <jackson@ximian.com>
12014 * ScrollBar.cs: First part of my scrollbar fixups. This removes
12015 all the unneeded refreshes and uses invalidates with properly
12018 2005-02-03 Peter Bartok <pbartok@novell.com>
12020 * ComponentModel.cs: Added
12021 * IDataGridEditingService.cs: Added
12022 * Timer.cs: Added missing attributes
12023 * ToolTip.cs: Added missing attributes
12025 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12027 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12029 2005-02-03 Peter Bartok <pbartok@novell.com>
12031 * ListBox.cs: Added missing attributes
12033 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
12036 - Fixes font height after font change
12037 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12039 2005-02-02 Peter Bartok <pbartok@novell.com>
12041 * HandleData.cs: Introduced static methods to allow class
12042 to be more self-contained and track it's own HandleData objects
12043 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12044 HandleData to use new static methods
12046 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
12049 - Fixes default size and PreferredHeight
12051 - ObjectCollection.Insert implementation
12057 - ObjectCollection.Insert implementation
12058 - No selection after clean
12061 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12063 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12065 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
12068 - Caches ItemHeight calculation for OwnerDrawVariable
12069 - Handles dropdown properly
12070 - Fixes several minor bugs
12072 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12075 - Fixes 71946 and 71950
12076 - Fixes changing Multicolumn on the fly
12077 - Fixes keyboard navigation on Multicolumn listboxes
12079 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12081 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12082 crash reporter log.
12084 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12086 * XplatUIOSX.cs: Allow applications to actually exit.
12088 2005-01-31 Geoff Norton <gnorton@customerdna.com>
12090 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
12091 their parent at creation time rather than lazily later. Fixes a major
12092 regression we were experiencing.
12094 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
12096 * ThemeWin32Classic.cs: more date time picker painting fixes
12097 * DateTimePicker.cs: more monthcalendar drop down fixes
12098 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12100 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
12103 - When moving the thumb going outside the control should stop the moving
12104 - Adds the firing of missing events
12105 - Fixes no button show if Size is not specified
12106 - End / Home keys for keyboard navigation
12108 2005-01-30 Peter Bartok <pbartok@novell.com>
12110 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12111 sanity check to prevent theoretical loop
12112 * XplatUIWin32.cs (SetVisible): Removed debug output
12113 * XplatUIX11.cs (SystrayChange): Added sanity check
12114 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12115 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12116 behaviour, valid until the X11 client window rewrite is done
12117 * TextBox.cs (ctor): Setting proper default foreground and background
12120 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
12122 * Theme: Added DrawDateTimePicker to interface
12123 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12124 * DateTimePicker.cs: Created (still needs keys and painting code)
12125 * DateTimePickerFormat.cs: added
12126 * MonthCalendar.cs: fixed CreateParams for popup window mode
12128 2005-01-29 Peter Bartok <pbartok@novell.com>
12130 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12131 this should also the calculations for ligher/darker
12132 * Theme.cs: Fixed defaults for ScrollBar widths/heights
12134 2005-01-29 Peter Bartok <pbartok@novell.com>
12136 * ArrangeDirection.cs: Added
12137 * ArrangeStartingPositon.cs: Added
12138 * SystemInformation.cs: Implemented
12139 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12140 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12141 used by SystemInformation class
12142 * X11Strucs.cs: Added XSizeHints structure
12144 - Fixed CreateParams to make sure the menu window is always visible
12145 - TrackPopupMenu: Added check to make sure we don't draw the
12148 2005-01-29 Peter Bartok <pbartok@novell.com>
12150 * HandleData.cs: Added method for altering invalid area
12151 * TextBoxBase.cs: Implemented TextLength
12153 2005-01-28 Peter Bartok <pbartok@novell.com>
12155 * XplatUIX11.cs: Improvement over last patch, not sending
12156 the WM_PAINT directly anymore, instead we scroll any pending
12157 exposed areas and let the system pick out the WM_PAINT later
12159 2005-01-28 Peter Bartok <pbartok@novell.com>
12161 * SWF.csproj: Deleted, no longer used. Instead,
12162 Managed.Windows.Forms/SWF.csproj should be used
12163 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12164 directly, to avoid a potential race condition with the next
12167 2005-01-28 Peter Bartok <pbartok@novell.com>
12169 * XplatUI.cs: Made class internal
12171 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
12173 * CheckedListBox.cs:
12176 - Missing methods and events
12178 2005-01-27 Peter Bartok <pbartok@novell.com>
12180 * Application.cs (Run): Don't use form if we don't have one
12182 2005-01-27 Peter Bartok <pbartok@novell.com>
12184 * TextBoxBase.cs (get_Lines): Fixed index off by one error
12186 2005-01-27 Peter Bartok <pbartok@novell.com>
12188 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12189 * GridItem.cs: Added; Patch by Jonathan S. Chambers
12190 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12191 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12192 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12193 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12194 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12195 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12196 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12197 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12198 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12199 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12201 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12204 - Draw focus on Simple Combobox
12205 - Fixes drawing issues
12208 2005-01-27 Peter Bartok <pbartok@novell.com>
12211 - Place window in default location, instead of hardcoded 0/0
12212 - Send initial LocationChanged event
12214 - UpdateBounds after creation to find out where the WM placed us
12215 - Make sure that if the ParentForm changes location the Form
12217 * XplatUIX11.cs: XGetGeometry will not return the coords relative
12218 to the root, but to whatever the WM placed around us.
12219 Translate to root coordinates before returning toplevel
12221 * XplatUIWin32.cs: Removed debug output
12222 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12223 flag to GetWindowPos, to allow translation of coordinates on X11
12225 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
12227 * ListBox.cs: connect LostFocus Event
12229 2005-01-27 Peter Bartok <pbartok@novell.com>
12231 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12232 XplatUIX11.cs: Extended the Systray API
12233 * Form.cs: Removed debug output
12234 * Application.cs: Fixed focus assignment, always need to call
12235 XplatUI.Activate() since Form.Activate() has rules that may
12237 * NotifyIcon.cs: Should be complete now
12238 * ToolTip.cs: Worked around possible timer bug
12240 2005-01-27 Jackson Harper <jackson@ximian.com>
12243 - Only invalidate the effected tabs when the
12244 selected index changes. This reduces drawing and gets rid of some
12246 - Only refresh if the tabs need to be shifted, otherwise only
12247 invalidate the slider button.
12248 - On windows the tabs are not filled to right if the slider is
12251 2005-01-27 Jackson Harper <jackson@ximian.com>
12253 * TabControl.cs: Only refresh on mouseup if we are showing the
12254 slider. Also only invalidate the button whose state has changed.
12256 2005-01-26 Peter Bartok <pbartok@novell.com>
12258 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12259 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12260 and SystrayRemove() methods
12261 * XplatUIOSX.cs: Stubbed Systray methods
12263 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12265 - Fixed broken XChangeProperty calls (marshalling messed up things)
12266 * X11Structs.cs: Added enums and structs required for Size hinting
12267 * NotifyIcon.cs: Added & implemented
12269 2005-01-26 Jackson Harper <jackson@ximian.com>
12271 * TabControl.cs: Space vertically layed out tabs properly.
12273 2005-01-26 Peter Bartok <pbartok@novell.com>
12275 * Form.cs (CreateClientParams): Always set the location to 0,0
12276 since we're a child window.
12278 * Control.cs (SetVisibleCore): Always explicitly setting the location
12279 of a toplevel window, apparently X11 doesn't like to move windows
12280 while they're not mapped.
12282 2005-01-26 Jackson Harper <jackson@ximian.com>
12284 * TabControl.cs: Implement FillToRight size mode with vertically
12287 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12289 * ControlPaint.cs, ThemeWin32Classic.cs
12290 - Fixes DrawFocusRectangle
12292 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
12295 - MenuBar tracking only starts when item is first clicked
12296 - Fixes menu hidding for multiple subitems
12297 - Unselect item in MenuBar when item Executed
12300 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
12303 - IsInputKey for ListBox
12306 - Shift and Control item selection
12307 - Implement SelectionMode.MultiExtended
12308 - Fixes RightToLeft
12310 - IsInputKey implemented
12311 - Do not generate OnTextChangedEdit on internal txt changes
12313 2005-01-23 Peter Bartok <pbartok@novell.com>
12315 * AccessibleObject.cs: Partially implemented Select()
12316 * MonthCalendar.cs: Added missing attributes and events
12317 * Form.cs: Fixed CreateParams behaviour, now controls derived from
12318 form can properly override CreateParams.
12319 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12320 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12321 Control performs Invalidate & Update
12322 * NativeWindow (CreateHandle): Added special handling for Form
12323 and Form.FormParent classes to allow overriding of From.CreateParams
12325 - ControlNativeWindow: Renamed 'control' variable to more intuitive
12327 - ControlNativeWindow: Added Owner property
12328 - Removed usage of Refresh() on property changes, changed into
12329 Invalidate(), we need to wait until the queue is processed for
12330 updates, direct calls might cause problems if not all vars for
12331 Paint are initialized
12332 - Added call to UpdateStyles() when creating the window, to set any
12333 styles that CreateWindow might have ignored.
12334 - Added support for Form CreateParent overrides to UpdateStyles()
12335 * MessageBox.cs: Removed no longer needed FormParent override stuff,
12336 CreateParams are now properly overridable
12337 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12338 CreateParams are now properly overridable
12340 2005-01-23 Miguel de Icaza <miguel@ximian.com>
12342 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12345 Capture LostFocus and OnTextBoxChanged. The later introduces a
12346 recursive invocation that I have not figured out yet.
12348 Reset the timer when not using (it was accumulating).
12351 (OnTextBoxChanged): Set UserEdit to true here to track whether the
12352 user has made changes that require validation.
12354 Reset changing to avoid loops.
12356 2005-01-22 Miguel de Icaza <miguel@ximian.com>
12358 * NumericUpDown.cs: Display value at startup.
12360 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12363 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12364 filled in. Added some basic parsing of text.
12366 Still missing the OnXXX method overrides, and figuring out the
12367 events that must be emitted.
12369 * UpDownBase.cs: Handle UserEdit on the Text property.
12371 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
12374 - Fixes IntegralHeight
12377 2005-01-21 Jackson Harper <jackson@ximian.com>
12379 * TabControl.cs: Set the SelectedIndex property when SelectedTab
12380 is set so that the page visibility is updated and the tabs are
12383 2005-01-21 Jackson Harper <jackson@ximian.com>
12385 * TabControl.cs: Use cliping rectangle for blitting. Give the
12386 theme the clipping rect so we can do clipping while
12387 drawing. Remove some debug code.
12389 2005-01-21 Jackson Harper <jackson@ximian.com>
12391 * TabPage.cs: Add a new method so tab pages can force the tab
12392 control to recalculate the tab page sizes.
12393 * TabControl.cs: UpdateOwner needs to make the tab control recalc
12396 2005-01-20 Jackson Harper <jackson@ximian.com>
12398 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12400 2005-01-20 Jackson Harper <jackson@ximian.com>
12402 * TreeView.cs: Set the bounds for nodes properly. They were
12403 getting screwed up when checkboxes were not enabled, but images
12406 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
12409 - Owner draw support
12412 2005-01-20 Jackson Harper <jackson@ximian.com>
12414 * XplatUIStructs.cs: More misc keys
12415 * X11Keyboard.cs: Ignore some control keys.
12417 2005-01-20 Jackson Harper <jackson@ximian.com>
12419 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12420 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12422 2005-01-19 Peter Bartok <pbartok@novell.com>
12424 * Control.cs: Un-selecting the control when it is loosing focus
12426 2005-01-19 Jackson Harper <jackson@ximian.com>
12428 * TreeView.cs: Hook up to the text controls leave event so we can
12429 end editing when the users clicks outside the text box.
12431 2005-01-19 Jackson Harper <jackson@ximian.com>
12433 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12434 get set in the conversion array.
12436 2005-01-19 Peter Bartok <pbartok@novell.com>
12438 * Application.cs (ModalRun): Added a call to CreateControl to ensure
12439 focus is properly set
12441 - Added missing attributes
12442 - removed styles, those are already set in the base class
12444 - Added missing attributes
12445 - Added clip window styles
12446 * CheckBox.cs: Added missing attributes
12448 - FormParentWindow.CreateParams: Added required clip styles
12449 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12450 also filters modifier keys
12452 - Added assignment of Accept and Cancel button to enable Enter
12453 and Esc keys in MessageBox dialogs
12454 - FormParentWindow.CreateParams: Added required clip styles
12455 * RadioButton.cs: Added missing attributes
12456 * TextControl.cs: No longer draws selection if control does not
12459 - Now draws simple rectangle around test area to make it obvious
12460 there's a control. This is a hack until we properly support borders
12461 - A few simple fixes to support selections better, now erases selected
12462 text when typing, and resets selection when using movement keys
12464 2005-01-19 Miguel de Icaza <miguel@ximian.com>
12466 * UpDownBase.cs: Added some new properties.
12468 * DomainUpDown.cs: Implement a lot to get my test working.
12470 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12472 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
12474 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12476 * OSXStructs (WindowAttributes): Fixed csc complaints
12478 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12481 OSXStructs.cs: Initial refactor to move enums and consts into
12482 OSXStructs and use them in the driver for greater readability.
12484 2005-01-19 Geoff Norton <gnorton@customerdna.com>
12486 * XplatUIOSX.cs: Initial support for Standard Cursors.
12487 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
12489 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
12491 * ComboBox.cs: ability to change style when the ctrl is already
12492 created, missing methods and events, bug fixes, signature fixes
12494 2005-01-19 Peter Bartok <pbartok@novell.com>
12496 * Cursors.cs (ctor): Added ctor to fix signature
12498 2005-01-18 Peter Bartok <pbartok@novell.com>
12500 * Button.cs: Implemented DoubleClick event
12502 - Fixed keyboard handling to behave like MS, where the press of
12503 Spacebar is equivalent to a mousedown, and the key release is
12504 equivalent to mouseup. Now a spacebar push will give the same
12505 visual feedback like a mouse click.
12506 - Added missing attributes
12507 - Added ImeModeChanged event
12508 - Added support for generating DoubleClick event for derived classes
12510 - Implemented DoubleClick event
12511 - Added missing attributes
12512 * CommonDialog.cs: Added missing attribute
12513 * ContextMenu.cs: Added missing attributes
12515 - AutoChecked buttons do not allow to be unselected when clicked
12516 (otherwise we might end up with no selected buttons in a group)
12517 - Added missing attributes
12518 - Implemented DoubleClickEvent
12519 * ThreadExceptionDialog.cs: Enabled TextBox code
12521 2005-01-18 Peter Bartok <pbartok@novell.com>
12523 * Form.cs: Removed debug output
12524 * Button.cs: Added support for DoubleClick method
12526 2005-01-18 Peter Bartok <pbartok@novell.com>
12529 - Added method to parent window that allows triggering size
12530 calculations when a menu is added/removed
12531 - set_Menu: Cleaned up mess from early days of Form and Control,
12532 now properly triggers a recalc when a menu is added/removed
12533 - Added case to select form itself as focused form if no child
12535 - Added PerformLayout call when showing dialog, to ensure properly
12538 - Select(): Made internal so Form can access it
12539 - Focus(): Only call Xplat layer if required (avoids loop), and sets
12541 * Application.cs (Run): Removed hack and calls PerformLayout instead
12542 to trigger calculation when Form becomes visible
12544 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
12546 * ComboBox.cs: fixes for ownerdraw
12548 2005-01-18 Peter Bartok <pbartok@novell.com>
12551 - Sentinel is no longer static, each Document gets it's own, this
12552 avoids locking or alternatively overwrite problems when more
12553 than one text control is used simultaneously.
12554 - Switched to use Hilight and HilightText brushes for text selection
12556 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
12558 2005-01-18 Peter Bartok <pbartok@novell.com>
12561 - Hooked up the following events:
12569 o SystemColorsChanged
12570 o ParentFontChanged
12572 - Removed debug output
12573 - Added a call to the current theme's ResetDefaults when a color change
12575 * Form.cs: Now setting the proper ImeMode
12576 * Theme.cs: Defined a method to force recreation of cached resources
12577 and rereading of system defaults (ResetDefaults())
12578 * ThemeWin32Classic.cs: Added ResetDefaults() stub
12580 2005-01-17 Peter Bartok <pbartok@novell.com>
12582 * Control.cs: Added missing attributes
12584 2005-01-17 Jackson Harper <jackson@ximian.com>
12586 * TreeNode.cs: Implement editing. Add missing properties selected
12588 * TreeView.cs: Implement node editing. Also some fixes to use
12589 Invalidate (invalid area) instead of Refresh when selecting.
12591 2005-01-17 Peter Bartok <pbartok@novell.com>
12594 - Implemented InvokeGotFocus() method
12595 - Implemented InvokeLostFocus() method
12596 - Implemented InvokePaint() method
12597 - Implemented InvokePaintBackground() method
12598 - Implemented InvokeClick() method
12599 - Implemented FindForm() method
12600 - Implemented RectangleToClient() method
12601 - Implemented ClientToRectangle() method
12602 - Implemented ResetBackColor() method
12603 - Implemented ResetCursor() method
12604 - Implemented ResetFont() method
12605 - Implemented ResteForeColor() method
12606 - Implemented ResetImeMode() method
12607 - Implemented ResetLeftToRight() method
12608 - Implemented ResetText() method
12609 - Implemented Scale() methods
12610 - Implemented ScaleCore() method
12611 - Implemented Update() method
12612 - Removed unused variables
12613 - Stubbed AccessibilityNotifyClients and
12614 ControlAccessibleObject.NotifyClients() methods (dunno what to do
12616 - Now setting proper default for RightToLeft property
12617 - Fixed bug in SetClientSizeCore that would cause windows to get
12619 - Now sending Click/DoubleClick events
12620 - Now selecting controls when left mouse button is clicked on
12622 * AccessibleEvents.cs: Added
12623 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
12624 * XplatUIOSX.cs: Stubbed UpdateWindow() method
12625 * XplatUIWin32.cs: Implemented UpdateWindow() method
12626 * XplatUIX11.cs: Implemented UpdateWindow() method
12627 * Form.cs: Removed stray semicolon causing CS0162 warning
12628 * ThemeWin32Classic.cs: Fixed unused variable warnings
12629 * ScrollableControl.cs: Now calls base method for ScaleCore
12630 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
12631 style to avoid interference with internal click handler (which is
12632 different than standard Control click handling)
12634 - Now unchecks all sibling radio buttons when control is
12635 selected (Fixes #68756)
12636 - Removed internal tabstop variable, using the one inherited from
12639 2005-01-17 Jackson Harper <jackson@ximian.com>
12641 * NavigateEventArgs.cs: Fix base type.
12642 * LinkLabel.cs: Sig fix
12644 2005-01-17 Jackson Harper <jackson@ximian.com>
12646 * TreeView.cs: Only invalidate the effected nodes bounds when
12649 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12651 * XplatUIWin32.cs: fixes Win32 marshaling
12652 * XplatUIX11.cs: fixes method signature
12654 2005-01-17 Peter Bartok <pbartok@novell.com>
12656 * XplatUIX11.cs: Clean up resources when we no longer need them
12658 2005-01-17 Peter Bartok <pbartok@novell.com>
12660 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
12661 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
12662 and DestroyCursor() methods.
12663 * Cursor.cs: Partially implemented, now supports standard cursors;
12664 still contains some debug code
12665 * Cursors.cs: Implemented class
12667 - WndProc(): Added handling of WM_SETCURSOR message, setting the
12669 - Implemented Cursor property
12670 - Replaced break; with return; more straightforwar and possibly
12672 - Now properly setting the result for WM_HELP
12673 * X11Structs.cs: Added CursorFontShape enum
12674 * XplatUIStructs.cs:
12675 - Added StdCursor enum (to support DefineStdCursor() method)
12676 - Added HitTest enum (to support sending WM_SETCURSOR message)
12678 - Now sends the WM_SETCURSOR message
12679 - Implemented new cursor methods
12680 * XplatUIOSX.cs: Stubbed new cursor methods
12682 - Implemented new cursor methods
12683 - Added GetSystemMetrics function and associated enumeration
12685 2005-01-15 Peter Bartok <pbartok@novell.com>
12688 - WndProc(): Now handles EnableNotifyMessage
12689 - SelectNextControl(): Fixed bug where if no child or sibling
12690 controls exist we looped endlessly
12692 2005-01-14 Jackson Harper <jackson@ximian.com>
12694 * TreeView.cs: Recalculate the tab pages when a new one is added
12695 so that the proper bounding rects are created.
12697 2005-01-14 Jackson Harper <jackson@ximian.com>
12699 * TreeView.cs: Draw a gray box instead of a grip in the lower
12700 right hand corner when there are both horizontal and vertical
12703 2005-01-14 Jackson Harper <jackson@ximian.com>
12705 * Control.cs: When erasing backgrounds use FromHwnd instead of
12706 FromHdc when there is a NULL wparam. This occurs on the X driver.
12707 * XplatUIX11.cs: Set the wparam to NULL.
12709 2005-01-13 Jackson Harper <jackson@ximian.com>
12711 * PictureBox.cs: Implement missing methods (except ToString, need
12712 to test that on windows) and events. When visibility is changed we
12713 need to redraw the image because the buffers are killed. When size
12714 is changed refresh if the sizemode needs it.
12716 2005-01-13 Peter Bartok <pbartok@novell.com>
12718 * Control.cs (SelectNextControl): Was using wrong method to select
12721 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12723 * ComboBox.cs: fixes dropstyle
12725 2005-01-13 Peter Bartok <pbartok@novell.com>
12728 - Implemented Select() override
12729 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
12730 - Now sets keyboard focus on startup
12731 * Control.cs (SelectNextControl): Now properly handles directed=true
12733 - WndProc: Now passes tab key on to base if AcceptTabChar=false
12734 - Added (really bad) focus rectangle (mostly for testing)
12735 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
12736 to enforce redraw on focus changes
12737 * ContainerControl.cs:
12738 - Fixed detection of Shift-Tab key presses
12739 - Fixed traversal with arrow keys
12740 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
12741 gonna keep this or if it's complete yet
12743 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12745 * ComboBox.cs: missing properties, fixes
12747 2005-01-13 Peter Bartok <pbartok@novell.com>
12749 * Panel.cs (ctor): Setting Selectable window style to off
12750 * Splitter.cs (ctor): Setting Selectable window style to off
12751 * GroupBox.cs (ctor): Setting Selectable window style to off
12752 * Label.cs (ctor): Setting Selectable window style to off
12754 2005-01-12 Miguel de Icaza <miguel@ximian.com>
12756 * UpDownBase.cs (InitTimer): If the timer has been already
12757 created, enable it.
12759 Use a TextBox instead of a Label.
12761 2005-01-12 Jackson Harper <jackson@ximian.com>
12763 * TreeView.cs: Refresh the tree after sorting the nodes. Always
12764 draw the connecting node lines (when ShowLines is true).
12765 * TreeNode.cs: The nodes index can now be updated. This is used
12766 when a node collection is sorted.
12767 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
12768 insert or an existing unsorted node collection can be sorted.
12770 2005-01-12 Peter Bartok <pbartok@novell.com>
12772 * ContainerControl.cs: Implemented ProcessDialogKeys()
12774 2005-01-12 Peter Bartok <pbartok@novell.com>
12777 - Implemented SelectNextControl() method
12778 - Several focus related bug fixes
12779 - Fixed Docking calculations to match MS documentation and
12782 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
12784 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
12787 2005-01-12 Peter Bartok <pbartok@novell.com>
12790 - Fixed broken Contains() method
12791 - Implemented GetNextControl() method. Finally. This is the pre-
12792 requisite for focus handling.
12794 2005-01-12 Peter Bartok <pbartok@novell.com>
12796 * OSXStrucs.cs: Added
12798 2005-01-12 Peter Bartok <pbartok@novell.com>
12801 - Removed PeekMessageFlags
12802 - Implemented SetWindowStyle() method
12803 * XplatUIStructs.cs: Added PeekMessageFlags
12804 * X11Structs: Added missing border_width field to XWindowChanges struct
12806 - PeekMessage: Now throws exception if flags which are not yet
12807 supported are passed
12808 - Implemented SetWindowStyle() method
12809 - Fixed SetZOrder to handle AfterHwnd properly
12810 * XplatUI.cs: Added SetWindowStyle() method
12811 * XplatUIDriver.cs: Added SetWindowStyle() abstract
12813 - Implemented UpdateStyles() method
12814 - Implemented UpdateZOrder() method
12815 * XplatUIOSX.cs: Added SetWindowStyle() stub
12817 2005-01-12 Geoff Norton <gnorton@customerdna.com>
12819 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
12823 2005-01-11 Jackson Harper <jackson@ximian.com>
12825 * TreeView.cs: Still need to draw lines to siblings even if out of
12826 the current node is out of the clip.
12828 2005-01-11 Jackson Harper <jackson@ximian.com>
12830 * TreeView.cs: When setting the hbar/vbar/grip position use
12831 SetBounds so that perform layout is only called once. Also suspend
12832 and resume layout so layout is only done once for all controls.
12833 - Removed some debug fluff
12834 * SizeGrip.cs: Call base implmentation in overriding methods.
12835 - When visibility is changed the drawing buffers are killed so we
12838 2005-01-11 Jackson Harper <jackson@ximian.com>
12840 * TreeView.cs: Calculate the open node count while drawing. This
12841 saves us an entire tree traversal for every paint operation. Use
12842 a member var for the open node count so less vars are passed around.
12844 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
12846 * MonthCalendar.cs:
12847 - fixed selection to use mousemove, not mouse polling on timer
12848 * ThemeWin32Classic.cs
12849 - removed redundant unused variable "no_more_content"
12851 2005-01-11 Peter Bartok <pbartok@novell.com>
12853 * XplatUIX11.cs (DoEvents): Needs to return when no more events
12854 are pending, so it now calls PeekMessage instead of GetMessage;
12855 implemented a incomplete version of PeekMessage
12857 2005-01-11 Peter Bartok <pbartok@novell.com>
12859 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
12861 * TextBoxBase.cs: Added sending of TextChanged event
12863 2005-01-10 Jackson Harper <jackson@ximian.com>
12865 * TreeView.cs: Try not to draw outside the clipping rectangle on
12868 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
12870 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
12872 2005-01-10 Jackson Harper <jackson@ximian.com>
12875 - Implement fast scrolling. Now only the newly
12876 exposed nodes are drawn and the old image is moved using the
12877 XplatUI::ScrollWindow method.
12878 - Factor in height of nodes when calculating whether or not the
12879 node is in the clipping rect.
12881 2005-01-10 Jackson Harper <jackson@ximian.com>
12883 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
12885 2005-01-10 Peter Bartok <pbartok@novell.com>
12887 * Application.cs: Added temporary hack to resolve all our resize
12888 required issues on startup. This will get fixed properly at
12889 some point in the future
12891 2005-01-10 Jackson Harper <jackson@ximian.com>
12893 * SizeGrip.cs: New internal class that is used as a sizing
12894 grip control...hence the name.
12896 2005-01-10 Peter Bartok <pbartok@novell.com>
12898 * Control.cs: Implemented proper TabIndex handling, now assigning
12899 a tabindex when a control is added to a container
12900 * GroupBox.cs (ctor): Now sets the Container style bit, required
12901 for Control.GetNextControl()
12903 2005-01-09 Jackson Harper <jackson@ximian.com>
12905 * TextBoxBase.cs: Clear window when scrolling (fixes build).
12907 2005-01-09 Peter Bartok <pbartok@novell.com>
12909 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12910 XplatUIX11.cs: Added ability to control ScrollWindow expose and
12911 an overload for ScrollWindow to allow only scrolling a rectangle
12913 2005-01-09 Peter Bartok <pbartok@novell.com>
12916 - Implemented SetDesktopBounds method
12917 - Implemented SetDesktopLocation method
12919 2005-01-08 Jackson Harper <jackson@ximian.com>
12921 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
12922 the node count has changed, this removes to VScroll::Refresh calls
12925 2005-01-08 Geoff Norton <gnorton@customerdna.com>
12927 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
12929 2005-01-07 Jackson Harper <jackson@ximian.com>
12931 * TreeNode.cs: Just update the single node when it is
12932 checked. Don't refresh after toggling, the Expand/Collapse already
12934 * TreeView.cs: Respect clipping a little more when drawing. Try
12935 not to redraw things that don't need to be redrawn. Just hide the
12936 scrollbars when they are no longer needed instead of removing
12937 them, so they don't have to be created again and again.
12939 2005-01-07 Geoff Norton <gnorton@customerdna.com>
12941 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
12942 coordinates to window space to place the caret properly, FIXED.
12943 Implement GetWindowState & SetWindowState
12945 2005-01-06 Peter Bartok <pbartok@novell.com>
12948 - Implemented ClientSize property
12949 - Implemented DesktopBounds property
12950 - Implemented DesktopLocation property
12951 - Implemented IsRestrictedWindow property
12952 - Implemented Size property
12953 - Implemented TopLevel property
12954 - Implemented FormWindowState property
12956 - Implemented GetTopLevel() method
12957 - Implemented SetTopLevel() method
12958 * X11Structs.cs (Atom):
12959 - Added AnyPropertyType definition
12960 - Added MapState definiton and updated XWindowAttribute struct
12961 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
12962 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
12963 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
12965 - Implemented GetWindowState() and SetWindowState() methods
12966 - Fixed Win32GetWindowLong return type
12968 - Introduced central function for sending NET_WM messages
12969 - Implemented GetWindowState() and SetWindowState() methods
12970 * TextBoxBase.cs (set_Lines):
12971 - Now uses Foreground color for text added via Text property (Duh!)
12972 - Added code to remember programmatically requested size (fixes
12973 behaviour when Multiline is set after Size)
12974 - Added AutoSize logic
12976 2005-01-06 Jackson Harper <jackson@ximian.com>
12978 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
12980 2005-01-06 Jackson Harper <jackson@ximian.com>
12982 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
12983 set to less then 0.
12985 2005-01-06 Jackson Harper <jackson@ximian.com>
12987 * ScrollableControl.cs: Lazy init the scrollbars.
12989 2005-01-06 Jackson Harper <jackson@ximian.com>
12991 * Theme.cs: Speed up getting pens and solid brushes, by using
12992 their ARGB as a hash instead of tostring and not calling Contains.
12994 2005-01-06 Peter Bartok <pbartok@novell.com>
12997 - Implemented OnActivated and OnDeactivate event trigger
12998 - Implemented Activate() method
12999 - Fixed ShowDialog() to activate the form that was active before
13000 the dialog was shown
13002 - Added global active_window var that tracks the currently active
13004 - Now always grabs Property changes from the root window to always
13005 catch changes on the active window property
13006 - Added code to PropertyNotify handler to send Active/Inactive
13007 messages when state changes. This puts X11 and Win32 en par on
13008 WM_ACTIVATE notifications (except for double notifications when
13009 the user clicks away from our modal window to another one of our
13012 2005-01-05 Jackson Harper <jackson@ximian.com>
13014 * ImageList.cs: Implment ctor
13016 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13018 * XplatUIOSX.cs: Implement Activate/SetTopmost
13020 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13022 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13024 2005-01-05 Geoff Norton <gnorton@customerdna.com>
13026 * XplatUIOSX.cs: Implement GetActive/SetFocus.
13028 2005-01-05 Peter Bartok <pbartok@novell.com>
13030 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13031 XplatUIOSX.cs: Added GetActive method to return the currently
13032 active window for the application (or null, if none is active)
13034 - Implemented ActiveForm
13035 - Commented out owner assignment for modal dialogs (causes problems
13036 on Win32, since the owner will be disabled)
13037 - Reworked some Active/Focus handling (still incomplete)
13038 * CommonDialog.cs: Commented out owner assignment for modal dialogs
13039 (causes problems on Win32, since the owner will be disabled)
13040 * IWin32Window: Added ComVisible attribute
13042 2005-01-05 Peter Bartok <pbartok@novell.com>
13044 * ToolTip.cs (WndProc): Enable setting focus now that we have the
13045 required XplatUI functions.
13047 2005-01-05 Peter Bartok <pbartok@novell.com>
13049 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13050 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13051 to implement focus and activation handling; still incomplete and
13054 2005-01-04 Peter Bartok <pbartok@novell.com>
13056 * TextBoxBase.cs: Changed access level for Document property to
13057 match switch to internal for TextControl
13059 2005-01-04 Peter Bartok <pbartok@novell.com>
13061 * AccessibleObject: Added ComVisible attribute
13063 2005-01-04 Jackson Harper <jackson@ximian.com>
13065 * X11Keyboard.cs: Remove unneeded var.
13067 2005-01-04 Jackson Harper <jackson@ximian.com>
13069 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13071 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13072 ClientMessage. This makes apps exit cleanly (more often).
13074 2005-01-04 Jackson Harper <jackson@ximian.com>
13076 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13077 handling focus, return correct colors and fonts,
13078 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13079 handle selection, horizontal scrolling, and mouse interaction.
13081 2005-01-04 Peter Bartok <pbartok@novell.com>
13083 * ICommandExecutor.cs: Added
13084 * IDataGridColumnStyleEditingNotificationService.cs: Added
13085 * IFeatureSupport.cs: Added
13086 * IFileReaderService.cs: Added
13087 * IDataObject.cs: Added ComVisible attribute
13088 * AmbientProperties.cs: Added
13089 * BaseCollection.cs: Added missing attributes
13090 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13091 * BaseCollection.cs: Added missing attributes
13092 * Binding.cs: Added TypeConverter attribute
13093 * BindingContext.cs: Added DefaultEvent attribute
13094 * BindingsCollection.cs: Added DefaultEvent attribute
13095 * Button.cs: Added DefaultValue attribute
13096 * DragEventArgs.cs: Added ComVisible attribute
13097 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13098 * KeyEventArgs.cs: Added ComVisible attribute
13099 * KeyPressEventArgs.cs: Added ComVisible attribute
13100 * MouseEventArgs.cs: Added ComVisible attribute
13101 * NavigateEventArgs.cs: Added
13102 * NavigateEventHandler.cs: Added
13103 * FeatureSupport.cs: Added
13104 * OSFeature.cs: Added
13105 * Theme.cs: Added abstract Version property to support OSFeature
13106 * ThemeWin32Classic.cs: Added Version property to
13107 support OSFeature.Themes
13108 * ProgressBar.cs: Removed OnPaintBackground override, not required since
13109 the proper styles to avoid background drawing are set, also doesn't
13111 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13112 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13113 * ScrollEventArgs.cs: Added ComVisible attribute
13114 * SplitterEventArgs.cs: Added ComVisible attribute
13115 * AccessibleSelection.cs: Added Flags attribute
13116 * Appearance.cs: Added ComVisible attribute
13117 * Border3DSide.cs: Added ComVisible attribute
13118 * Border3DStyle.cs: Added ComVisible attribute
13119 * BorderStyle.cs: Added ComVisible attribute
13120 * DragAction.cs: Added ComVisible attribute
13121 * ErrorBlinkStyle.cs: Added
13122 * ScrollEventType.cs: Added ComVisible attribute
13123 * AnchorStyles.cs: Added Editor attribute
13124 * DockStyle.cs: Added Editor attribute
13125 * HorizontalAlignment.cs: Added ComVisible attribute
13126 * HelpEventArgs.cs: Added ComVisible attribute
13127 * PaintEventArgs.cs: Added IDisposable
13129 2005-01-04 Peter Bartok <pbartok@novell.com>
13131 * TextControl.cs: Switched Line, LineTag and Document classes to
13134 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13136 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13137 Simple mode, fixes, IntegralHeight, etc.
13139 2005-01-04 Peter Bartok <pbartok@novell.com>
13141 * TextBoxBase.cs: Using proper font variable now
13143 2005-01-04 Peter Bartok <pbartok@novell.com>
13145 * Form.cs (ShowDialog): Set parent to owner, if provided
13146 * GroupBox.cs: Removed unused vars
13148 - Added GetHashCode() for Document and LineTag classes
13149 - Removed unused variables
13150 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13151 to allow translation between continuous char position and line/pos
13152 * CheckBox.cs: Removed vars that are provided by base class
13153 * RadioButton.cs: Removed vars that are provided by base class, added
13154 new keyword where required
13155 * LinkLabel.cs: Added new keyword where required
13156 * Control.cs (WndProc): Removed unused variable
13158 - Finished SelectionLength property
13159 - Implemented SelectionStart property
13160 - Implemented Text property
13161 - Removed unused vars
13162 * MessageBox.cs: Added new keyword where required
13163 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13165 * MenuAPI.cs: Added new keyword where required
13166 * ButtonBase.cs: Removed vars that are provided by base class, added
13167 new keyword where required
13168 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13169 argument to double, to allow compiling with csc 2.0 (Atsushi ran
13171 * Application.cs (Run): Now triggers the ThreadExit event
13172 * CommonDialog.cs: Added new keyword where required; now properly sets
13173 parent (owner) for dialog
13174 * XplatUIX11.cs: Commented out unused vars
13175 * StatusBar.cs: Fixed signature for Text property
13176 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13178 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
13180 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13181 TrackBar.cs, MonthCalendar.cs: remove unused vars
13183 2005-01-03 Jackson Harper <jackson@ximian.com>
13185 * ThemeWin32Classic.cs:
13186 * X11Keyboard.cs: Remove unused vars.
13188 2005-01-03 Peter Bartok <pbartok@novell.com>
13191 - set_Text: Tied into TextControl
13192 - set_TextAlignment: Tied into TextControl
13194 - Added alignment properties and implemented alignment handling
13195 and drawing (still has a bug, not generating proper expose events)
13196 - Added new Line() constructor to allow passing the line alignment
13197 - Fixed selection setting, properly handling end<start now
13198 - Added aligment considerations to RecalculateDocument()
13200 - Now properly enforces control height for single line controls
13201 - Added support for CharacterCasing
13202 - Added IsInputKey override
13203 - Fixed Keys.Enter logic
13204 - Added SetBoundsCore override
13205 - Fixed mouse selection handling
13207 2005-01-03 Jackson Harper <jackson@ximian.com>
13210 - Collapse and uncheck all nodes when CheckBoxes is disabled.
13211 - Checkboxes are always aligned to the bottom of the node,
13212 regardless of item height.
13213 - Use the node bounds to draw the text so we can center it when
13214 the item height is greater then the font height.
13215 - Node::Bounds are only the text part of the node.
13216 * TreeNode.cs: New method to combine collapsing and unchecking all
13219 2005-01-02 Jackson Harper <jackson@ximian.com>
13221 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13222 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13223 tree when a check is changed. TODO: Only refresh the checked node.
13225 2004-12-30 Jackson Harper <jackson@ximian.com>
13227 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13228 * TreeNode.cs: When collapsing make sure to never collapse the
13231 2004-12-29 Jackson Harper <jackson@ximian.com>
13233 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13235 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
13237 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13239 2004-12-28 Peter Bartok <pbartok@novell.com>
13241 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13244 2004-12-28 Peter Bartok <pbartok@novell.com>
13246 * Control.cs (WndProc): Added WM_HELP handler, now generates
13247 HelpRequested event
13248 * Form.cs: Added HelpButton property and required support code
13249 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13251 2004-12-28 Peter Bartok <pbartok@novell.com>
13254 - Made DialogForm.owner variable internal
13255 - Added check to ensure owner form is set before setting
13256 owner properties in CreateParams
13258 2004-12-28 Geoff Norton <gnorton@customerdna.com>
13260 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
13261 swizzling. Implement ClientToScreen and ScreenToClient. Implement
13262 GetCursorPos. Fix major visibility issues. Rework the windowing
13263 system to support borderless/titleless windows (implements menus).
13264 Fix GetWindowPos. Implement initial background color support for
13267 2004-12-28 Peter Bartok <pbartok@novell.com>
13269 * Form.cs (get_CreateParams): Make sure we have an owner before using
13270 the owner variable. Implement proper default if no owner exists
13272 2004-12-28 Peter Bartok <pbartok@novell.com>
13274 * In preparation for making Managed.Windows.Forms the default build target
13275 for System.Windows.Forms, the following stubbed files were added.
13276 Dialogs are currently being implemented by contributors and are only
13277 short-term place holders.
13278 * ColorDialog.cs: Initial check-in (minmal stub)
13279 * DataGrid.cs: Initial check-in (minimal stub)
13280 * DataGridLineStyle.cs: Initial check-in (minimal stub)
13281 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13282 * DataGridTableStyle.cs: Initial check-in (minimal stub)
13283 * FontDialog.cs: Initial check-in (minimal stub)
13284 * FileDialog.cs: Initial check-in (minimal stub)
13285 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13286 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13287 * OpenFileDialog: Initial check-in (minimal stub)
13288 * IComponentEditorPageSite.cs: Initial check-in
13289 * Splitter.cs: Initial check-in (for Jackson)
13290 * SplitterEventArgs.cs: Initial check-in (for Jackson)
13291 * SplitterEventHandler.cs: Initial check-in (for Jackson)
13292 * TextBox.cs: Initial check-in; still needs some wiring to
13293 TextControl backend
13294 * Form.cs: Implemented ControlBox property
13295 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13296 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13297 * TextControl.cs: Added selection functionality; added todo header
13299 - Implemented Lines property
13300 - Implemented TextHeight property
13301 - Implemented SelectedText property
13302 - Implemented SelectionLength property
13303 - Implemented SelectAll method
13304 - Implemented ToString method
13305 - Removed and cleaned up some debug code
13306 - Implemented (still buggy) mouse text selection
13308 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
13310 * ComboBox.cs: Complete DropDownList implementation, fixes.
13312 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
13314 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13315 * ComboBoxStyle.cs: ComboBoxStyle enum
13316 * ComboBox.cs: Initial work on ComboBox control
13318 2004-12-21 Peter Bartok <pbartok@novell.com>
13320 * Control.cs (ctor, CreateParams): Moved setting of is_visible
13321 forward so that anything that creates a window gets the default,
13322 also no longer uses Visible property in CreateParams to avoid
13323 walking up the parent chain and possibly get the wrong visible
13324 status. Fixed IsVisible to no longer walk up to the parent.
13326 2004-12-21 Peter Bartok <pbartok@novell.com>
13328 * Form.cs (ShowDialog): Unset modality for the proper window
13330 2004-12-20 Peter Bartok <pbartok@novell.com>
13332 * CommonDialog.cs: Initial check-in
13334 2004-12-20 Peter Bartok <pbartok@novell.com>
13336 * Control.cs (Visible): Now uses the parent window instead of the
13337 client area window for the property
13340 - ShowDialog(): Now uses the proper window for modality
13341 - The default visibility state for the form parent is now false. This
13342 will prevent the user from seeing all the changes to the form and
13343 its controls before the application hits Application.Run()
13344 - Removed some stale commented out code
13347 - Added FindWindow() method to have a method to check for existence
13349 - Added ability to override default exception handling (for example
13350 when debugging with VS.Net; to do this the ExternalExceptionHandler
13352 - Removed some useless debug output
13355 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13356 not working as expected
13357 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13358 property to allow switching back to the modal window if focus is
13359 given to another one of our windows (Application Modal)
13360 - Now only sets override_redirect if we create a window
13362 - Moved EventMask selection before mapping of newly created window
13363 so we can catch the map event as well
13364 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13365 - Added various Atom related DllImports
13366 - Implemented Exit() method
13367 - .ctor() : No longer shows window if WS_VISIBLE is not defined
13368 in the CreateParams
13370 * MessageBox.cs: Now properly deals with the FormParent window by
13371 providing an override the FormParent CreateParams property to
13372 set as POPUP instead of OVERLAPPED window.
13374 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13376 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
13377 Minor code cleanup.
13379 2004-12-19 Geoff Norton <gnorton@customerdna.com>
13381 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13383 2004-12-18 Peter Bartok <pbartok@novell.com>
13385 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13386 implementing SetModal() method
13388 2004-12-18 Peter Bartok <pbartok@novell.com>
13390 * X11Structs.cs (XGCValues): Fixed type of function element
13391 * XplatUI.cs: Added ScrollWindow() method
13392 * XplatUIDriver.cs: Added ScrollWindow() abstract
13393 * XplatUIWin32.cs: Implemented ScrollWindow() method
13394 * XplatUIX11.cs: Implemented ScrollWindow() method
13395 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13397 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13399 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
13400 Some more keyboard support (INCOMPLETE)
13402 2004-12-17 Peter Bartok <pbartok@novell.com>
13405 - Added color attribute to line tags.
13406 - Added color argument to all functions dealing with tags
13407 - Added color argument support to various functions
13408 - Fixed miss-calculation of baseline/shift in certain circumstances
13410 * TextBoxBase.cs: Added new color option to test code
13412 2004-12-17 Jackson Harper <jackson@ximian.com>
13415 * MonthCalendar.cs: Signature fixes
13417 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13419 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13420 keyboard event moved it. Create a new graphics context for each paint resolves this
13422 2004-12-17 Geoff Norton <gnorton@customerdna.com>
13424 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13425 Make caret exist and go blink blink. Initial keyboard support.
13426 Fix exception handler, Add Invalidate support. Change way RefreshWindow
13429 2004-12-17 Jackson Harper <jackson@ximian.com>
13431 * XplatUIStructs.cs: Updated set of virtual keycodes.
13432 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13434 2004-12-17 Jackson Harper <jackson@ximian.com>
13436 * XplatUIX11.cs: Prune old keyboard code.
13438 2004-12-17 Jackson Harper <jackson@ximian.com>
13440 * XplatUIX11.cs: When generating mouse wparams get the modifier
13441 keys from the ModifierKeys property.
13443 2004-12-17 Jackson Harper <jackson@ximian.com>
13445 * X11Keyboard.cs: Send up/down input when generating
13446 messages. Remove some unused vars.
13448 2004-12-17 Jackson Harper <jackson@ximian.com>
13451 * TreeView.cs: get rid of warnings.
13453 2004-12-17 Jackson Harper <jackson@ximian.com>
13455 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13457 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
13459 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13460 CheckedListBox.cs: Implementation
13462 2004-12-17 Peter Bartok <pbartok@novell.com>
13464 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13466 2004-12-16 Peter Bartok <pbartok@novell.com>
13469 - InsertCharAtCaret(): Fixed start pos fixup
13470 - CaretLine_get: No longer derives the line from the tag, the tag
13471 could be stale if lines in the document have been added or deleted
13472 - RebalanceAfterDelete(): Fixed bug in balancing code
13473 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
13474 - Line.Streamline(): Now can also elminate leading empty tags
13475 - DumpTree(): Added a few more tests and prevented exception on
13477 - Added Debug section for Combining lines
13478 - Delete(): Now copies all remaining properties of a line
13481 - Left mousebutton now sets the caret (and middle button still acts
13482 as formatting tester, which must go away soon)
13483 - Added Debug section for Deleting/Combining lines
13484 - Fixed calculations for UpdateView after Combining lines
13486 2004-12-16 Peter Bartok <pbartok@novell.com>
13488 * TextControl.cs: Now properly aligns text on a baseline, using the
13489 new XplatUI.GetFontMetrics() method. Simplified several calculations
13490 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
13493 2004-12-16 Peter Bartok <pbartok@novell.com>
13495 * XplatUI.cs: Added GetFontMetrics() method
13496 * XplatUIDriver.cs: Added GetFontMetrics() abstract
13497 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
13498 into libgdiplus, our private GetFontMetrics function
13499 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
13500 * XplatUIWin32.cs: Implemented GetFontMetrics() method
13502 2004-12-16 Jackson Harper <jackson@ximain.com>
13504 * XplatUIStruct.cs: Add enum for dead keys
13505 * X11Keyboard.cs: Map and unmap dead keys.
13507 2004-12-16 Jackson Harper <jackson@ximian.com>
13509 * X11Keyboard.cs: Detect and use the num lock mask.
13511 2004-12-16 Peter Bartok <pbartok@novell.com>
13513 * Control.cs (CreateGraphics): Added check to make sure the
13514 handle of the window exists before calling Graphics.FromHwnd()
13516 2004-12-16 Peter Bartok <pbartok@novell.com>
13518 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
13519 contains a lot of code that's not supposed to be there for the
13520 real thing, but required for developing/testing the textbox
13523 2004-12-16 Peter Bartok <pbartok@novell.com>
13526 - Fixed Streamline method
13527 - Added FindTag method to Line
13528 - Added DumpTree method for debugging
13529 - Added DecrementLines() method for deleting lines
13530 - Fixed UpdateView to update the cursor to end-of-line on single-line
13532 - Added PositionCaret() method
13533 - Fixed MoveCaret(LineDown) to move into the last line, too
13534 - Added InsertChar overload
13535 - Fixed InsertChar tag offset calculations
13536 - Added DeleteChar() method
13537 - Added Combine() method for folding lines
13538 - Fixed Delete() method, no longer allocates wasted Line object and
13539 now copies all properties when swapping nodes
13540 - Delete() method now updates document line counter
13542 2004-12-15 Jackson Harper <jackson@ximian.com>
13544 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
13545 * X11Keyboard.cs: Expose the currently selected modifier keys
13546 through a property.
13548 2004-12-15 Peter Bartok <pbartok@novell.com>
13550 * TextControl.cs: Initial check-in. Still incomplete
13552 2004-12-15 Jackson Harper <jackson@ximian.com>
13555 * TreeView.cs: Fix build on csc (second time today ;-))
13557 2004-12-15 Jackson Harper <jackson@ximian.com>
13559 * TreeView.cs: Store the treenodes plus/minus box bounds when it
13560 is calculated and use this for click testing.
13561 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
13563 2004-12-15 Jackson Harper <jackson@ximian.com>
13565 * TreeView.cs: Pass the nodes image index to the image list when
13566 drawing that image.
13568 2004-12-15 Jackson Harper <jackson@ximian.com>
13570 * X11Keyboard.cs: Set messages hwnd.
13571 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
13572 post_message calls.
13574 2004-12-15 Jackson Harper <jackson@ximian.com>
13576 * X11Keyboard.cs: Fix to compile with csc.
13578 2004-12-15 Jackson Harper <jackson@ximian.com>
13580 * X11Structs.cs: Add key mask values
13581 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
13582 * X11Keyboard.cs: New file - Extrapolates and interpolates key
13583 down/up foo into WM_CHAR foo
13584 * KeyboardLayouts.cs: Common keyboard layouts
13585 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
13586 post messages into the main queue.
13588 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
13590 * Button.cs: implement ProcessMnemonic
13591 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
13593 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
13594 * ButtonBase.cs: Show HotkeyPrefix (not the &)
13596 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
13598 * MonthCalendar.cs: Implemented click-hold for next/previous month
13601 2004-12-11 Peter Bartok <pbartok@novell.com>
13604 - Added XKeyboardState (moved from XplatUIX11.cs)
13605 - Added XCreateGC related enums and structures
13606 - Added GXFunction for XSetFunction
13608 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
13610 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
13611 CaretVisible() calls
13613 * ToolTip.cs: Added code to prevent stealing focus from app windows
13615 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
13616 DestroyCaret, SetCaretPos and CaretVisible)
13619 - Added implementation for caret functions
13620 - Moved hover variables into a struct, to make it a bit easier
13621 on the eyes and to debug
13622 - Removed XKeyboardState (moved to XplatUIX11.cs)
13623 - Moved Keyboard properties into the properties region
13625 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
13626 call to get a graphics context for our control
13628 * XplatUIOSX.cs: Added empty overrides for the new caret functions
13630 * TreeView.cs: Fixed bug. No matter what color was set it would always
13631 return SystemColors.Window
13633 * XplatUIWin32.cs: Implemented caret overrides
13635 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
13637 * ListBox.cs: fire events, implement missing methods and properties,
13640 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
13642 * MonthCalendar.cs: invalidation bug fixing
13643 * ThemeWin32Classic.cs: paint fixing
13645 2004-12-09 Geoff Norton <gnorton@customerdna.com>
13647 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
13648 prepare the CGContextRef there now.
13650 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
13652 * MonthCalendar.cs:
13653 - optimisationL only invalidate areas that have changed
13654 * ThemeWin32Classic.cs:
13655 - only paint parts that intersect with clip_area
13657 2004-12-09 Peter Bartok <pbartok@novell.com>
13659 * Application.cs: Undid changes from r37004 which cause problems
13662 2004-12-09 Ravindra <rkumar@novell.com>
13664 * ToolBar.cs: Added support for displaying ContextMenu
13665 attached to a button on ToolBar.
13666 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
13669 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13671 * Label.cs: autosize works in text change and removes unnecessary
13674 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
13676 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13679 2004-12-08 Geoff Norton <gnorton@customerdna.com>
13681 * XplatUIOSX.cs: Added mouse move/click/grab support
13682 Remove some debugging WriteLines not needed anymore.
13683 Add window resizing/positioning.
13684 Fix visibility on reparenting.
13686 2004-12-08 Peter Bartok <pbartok@novell.com>
13688 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
13690 2004-12-07 Geoff Norton <gnorton@customerdna.com>
13692 * XplatUIOSX.cs: Initial checkin
13693 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
13695 2004-12-03 Ravindra <rkumar@novell.com>
13697 * ListView.cs: Added some keybindings and fixed scrolling.
13698 ScrollBars listen to ValueChanged event instead of Scroll
13699 Event. This would let us take care of all changes being
13700 done in the scrollbars' values programmatically or manually.
13701 * ListView.cs (CanMultiselect): Added a check for shift key.
13702 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
13703 * ListViewItem.cs (Clone): Fixed. We need to make a copy
13704 of ListViewSubItemCollection as well.
13706 2004-12-06 Peter Bartok <pbartok@novell.com>
13708 * Control.cs (Parent): Added check and exception to prevent
13711 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
13713 * ListBox.cs: implemented clipping, selection single and multiple,
13716 2004-12-03 Ravindra <rkumar@novell.com>
13718 * ListView.cs (ListView_KeyDown):
13719 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
13720 when CTRL key is pressed.
13721 * ListViewItem.cs (Selected): Fixed setting the property.
13723 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13725 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
13727 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
13728 MinimizeBox, ShowInTaskbar, TopMost properties.
13730 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
13731 will be implemented).
13733 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13735 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
13737 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
13740 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
13742 * TreeView.cs: BackColor is Colors.Window.
13744 2004-12-01 Jackson Harper <jackson@ximian.com>
13746 * TreeView.cs: When resizing the tree if the user is making it
13747 smaller we don't get expose events, so we need to handle adding
13748 the horizontal scrollbar in the size changed handler as well as
13749 the expose handler.
13751 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
13753 * DrawItemState.cs: fixes wrong enum values
13755 2004-12-01 Jackson Harper <jackson@ximian.com>
13757 * TreeView.cs: Resize the hbar as well as the vbar on resize.
13759 2004-12-01 Jackson Harper <jackson@ximian.com>
13761 * NodeLabelEditEventArgs.cs:
13762 * NodeLabelEditEventHandler.cs:
13763 * OpenTreeNodeEnumerator.cs:
13765 * TreeNodeCollection.cs:
13767 * TreeViewAction.cs:
13768 * TreeViewCancelEventArgs.cs:
13769 * TreeViewCancelEventHandler.cs:
13770 * TreeViewEventArgs.cs:
13771 * TreeViewEventHandler.cs: Initial implementation.
13773 2004-12-01 Ravindra <rkumar@novell.com>
13775 * ListView.cs (CalculateListView): Fixed scrolling related
13776 calculations. Also, removed some debug statements from other
13778 * ListViewItem.cs: Changed access to 'selected' instance variable
13779 from private to internal.
13780 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
13782 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
13784 * ThemeWin32Classic.cs: remove cache of brush and pens for
13785 specific controls and use the global system, fixes scrollbutton
13786 bugs (for small sizes, disabled, etc)
13788 * ScrollBar.cs: does not show the thumb for very small controls
13789 (as MS) and allow smaller buttons that the regular size
13791 2004-12-01 Miguel de Icaza <miguel@ximian.com>
13793 * UpDownBase.cs: Add abstract methods for the interface.
13794 Add new virtual methods (need to be hooked up to TextEntry when it
13796 Add override methods for most features.
13797 Computes the size, forces the height of the text entry.
13799 * NumericUpDown.cs: Put here the current testing code.
13801 * Set eol-style property on all files that do not have mixed line
13802 endings, to minimize the future problems. There are still a few
13803 files with mixed endings, and someone should choose whether they
13804 want to move it or not.
13806 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
13808 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
13811 2004-11-30 Ravindra <rkumar@novell.com>
13813 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
13814 drawing and replaced use of SystemColors by theme colors.
13815 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
13816 * ListView.cs (ListViewItemCollection.Add): Throw exception when
13817 same ListViewItem is being added more than once.
13819 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
13821 * MonthCalendar.cs:
13822 - ControlStyles love to make the control not flicker
13824 2004-11-30 Peter Bartok <pbartok@novell.com>
13826 * CharacterCasing.cs: Added
13828 2004-11-29 Peter Bartok <pbartok@novell.com>
13830 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13831 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
13832 I am removing these files as they conflict with already completed
13833 work. While it is fantastic to get contributions to MWF, I
13834 respectfully ask that everyone please coordinate their contributions
13835 through mono-winforms-list or #mono-winforms at this time. We're
13836 explicitly avoiding stubbing and don't want controls that don't have
13837 their basic functionality implemented in svn. Please also see
13838 http://www.mono-project.com/contributing/winforms.html
13841 2004-11-29 Marek Safar <marek.safar@seznam.cz>
13843 * Application.cs (ModalRun): Don't hang after exit.
13845 * Theme.cs: New TreeViewDefaultSize property.
13847 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
13848 with less hardcoded SystemColors constant.
13849 Implemented TreeViewDefaultSize.
13851 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13852 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
13855 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
13857 * MonthCalendar.cs:
13858 - Fix NextMonthDate and PrevMonthDate click moving calendar
13860 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13862 * MonthCalendar.cs:
13863 - Fix usage of ScrollChange Property when scrolling months
13865 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
13867 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
13868 - Fixes menu destroying
13869 - Support adding and removing items on already created menus
13871 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13873 * MonthCalendar.cs:
13874 - Re-worked all bolded dates handling to match win32
13875 * ThemeWin32Classic.cs:
13876 - Fixed rendering with bolded dates
13878 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
13880 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
13881 - Horizontal scroolbar
13886 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
13888 * MonthCalendar.cs:
13889 - Fix Usage of MaxSelectionCount from SelectionRange
13890 - Fixed Shift + Cursor Selection
13891 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
13892 - Fixed normal cursor selection to be compat with win32
13893 - Fixed Shift + Mouse Click selection
13895 2004-11-24 Peter Bartok <pbartok@novell.com>
13897 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
13898 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
13900 - CreatedKeyBoardMsg now updates keystate with Alt key
13901 - Added workaround for timer crash to CheckTimers, Jackson will
13902 develop a proper fix and check in later
13903 - Implemented DispatchMessage
13904 - Removed calling the native window proc from GetMessage (call
13905 now moved to DispatchMessage)
13907 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
13908 the keydata (Fixes bug #69831)
13911 - (DispatchMessage): Switched to return IntPtr
13912 - Added DllImport for SetFocus
13914 2004-11-24 Ravindra <rkumar@novell.com>
13916 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
13917 background drawing.
13918 * ListViewItem.cs: Fixed various properties, calculations
13919 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
13920 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
13921 and some internal properties. Fixed MouseDown handler and Paint
13924 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13926 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
13928 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13930 * ContainerControl.cs: correct accidental check in of local changes
13932 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13934 * ThemeWin32Classic.cs:
13935 - Fixed Drawing Last month in grid (sometimes not showing)
13936 * MonthCalendar.cs:
13937 - Fixed title width calculation bug (makeing title small)
13939 2004-11-23 Peter Bartok <pbartok@novell.com>
13942 - Added generation of WM_MOUSEHOVER event
13943 - Added missing assignment of async_method atom
13944 - Fixed WM_ERASEBKGND; now only redraws the exposed area
13946 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13948 * ThemeWin32Classic.cs:
13949 - Fixed Drawing of today circle when showtodaycircle not set
13950 - fixed drawing of first and last month in the grid (gay dates)
13951 * MonthCalendar.cs:
13952 - Fixed Drawing of today circle
13953 - Fixed drawing of grady dates
13954 - Fixed HitTest for today link when ShowToday set to false
13955 - Fixed DefaultSize to obey ShowToday
13957 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13959 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
13960 * System.Windows.Forms/Theme.cs
13961 * MonthCalendar.cs: added for MonthCalendar
13962 * SelectionRange.cs: added for MonthCalendar
13963 * Day.cs: added for MonthCalendar: added for MonthCalendar
13964 * DateRangeEventArgs.cs: added for MonthCalendar
13965 * DateRangeEventHandler.cs: added for MonthCalendar
13967 2004-11-22 Ravindra <rkumar@novell.com>
13969 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
13972 2004-11-22 Miguel de Icaza <miguel@ximian.com>
13974 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
13977 * NumericUpDown.cs: Added new implementation.
13978 * UpDownBase.cs: Added new implementation.
13980 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
13983 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
13986 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
13989 2004-11-21 Miguel de Icaza <miguel@ximian.com>
13991 * Timer.cs (Dispose): Should call the base dispose when
13994 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
13996 * ScrollBar.cs: updates thumb position when max, min or increment
13999 2004-11-21 Ravindra <rkumar@novell.com>
14001 * ListView.cs: Implemented item selection, activation and
14002 column header style. Fixed properties to do a redraw, if
14003 required. Added support for MouseHover, DoubleClick, KeyDown
14004 and KeyUp event handling and some minor fixes.
14005 * ListViewItem.cs: Fixed constructor.
14006 * ThemeWin32Classic.cs: Improved drawing for ListView.
14008 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
14010 * ThemeWin32Classic.cs: initial listbox drawing code
14011 * DrawMode.cs: new enumerator
14012 * ListControl.cs: stubbed class
14013 * ListBox.cs: initial implementation
14014 * Theme.cs: new methods definitions
14015 * SelectionMode.cs: new enumerator
14017 2004-11-17 Peter Bartok <pbartok@novell.com>
14019 * XplatUIWin32.cs: Added double-click events to the class style
14020 * Control.cs (WndProc):
14021 - Added handling of click-count to MouseDown/ MouseUp events.
14022 - Added handling of middle and right mouse buttons
14023 - Removed old debug code
14025 2004-11-17 Jackson Harper <jackson@ximian.com>
14027 * XplatUIX11.cs: Use the new Mono.Unix namespace.
14029 2004-11-17 Ravindra <rkumar@novell.com>
14031 * ListView.cs: Added event handling for MouseMove/Up/Down.
14032 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14033 * ThemeWin32Classic.cs: We need to clear the graphics context and
14034 draw column header in a proper state.
14037 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
14039 * Menu.cs: fixes signature
14041 2004-11-16 Peter Bartok <pbartok@novell.com>
14043 * XplatUIX11.cs (GetMessage): Implemented generation of
14044 double click mouse messages
14046 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
14048 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14051 2004-11-11 Peter Bartok <pbartok@novell.com>
14053 * HandleData.cs: Added Visible property
14054 * XplatUIX11.cs (IsVisible): Now uses Visible property from
14056 * XplatUIX11.cs: Removed old debug leftovers
14057 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14058 * Control.cs (WndProc): Removed old debug leftovers,
14059 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14060 needed WM_SIZE handling
14062 2004-11-11 Jackson Harper <jackson@ximian.com>
14064 * OwnerDrawPropertyBag.cs:
14065 * TreeViewImageIndexConverter.cs: Initial implementation
14067 2004-11-10 Jackson Harper <jackson@ximian.com>
14069 * ThemeWin32Classic.cs:
14070 * TabControl.cs: instead of moving tabs by the slider pos just
14071 start drawing at the tab that is offset by the slider. This way
14072 scrolling always moves by exactly one tab.
14074 2004-11-10 Jackson Harper <jackson@ximian.com>
14076 * TabControl.cs: You can only scroll left when the slider has
14077 already ben moved right.
14079 2004-11-10 Jackson Harper <jackson@ximian.com>
14081 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14084 2004-11-10 Jackson Harper <jackson@ximian.com>
14086 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14089 2004-11-09 Jackson Harper <jackson@ximian.com>
14091 * TabControl.cs (CalcXPos): New helper method so we can determine
14092 the proper place to start drawing vertical tabs.
14093 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14095 2004-11-09 Jackson Harper <jackson@ximian.com>
14097 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14098 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14099 and Bottom, left and right are illegal values for this and
14100 multiline is enabled when the alignment is set to left or right.
14101 (DrawTab): Each alignment block should draw the text itself now
14102 because Left requires special love. Also add rendering for Left
14105 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
14107 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14108 does not destroy the windows, removes debugging messages
14110 2004-11-09 jba <jba-mono@optusnet.com.au>
14112 * ThemeWin32Classic.cs
14113 (DrawButtonBase): Fix verticle text rect clipping in windows
14114 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14115 rendering and incorrect text rect clipping
14116 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14117 rendering and incorrect text rect clipping
14119 2004-11-08 Jackson Harper <jackson@ximian.com>
14121 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14122 bottom when they are bottom aligned so the bottoms of the tabs get
14124 * TabControl.cs (DropRow): Move rows up instead of down when the
14125 tab control is bottom aligned.
14127 2004-11-08 13:59 pbartok
14130 - Added handling for various window styles
14131 - Added handling for popup windows
14132 - Added SetTopmost handling
14134 2004-11-08 13:55 pbartok
14137 - Added argument to SetTopmost method
14138 - Fixed broken ClientToScreen function
14140 2004-11-08 13:53 pbartok
14142 * XplatUIStructs.cs:
14143 - Added missing WS_EX styles
14145 2004-11-08 13:53 pbartok
14147 * XplatUI.cs, XplatUIDriver.cs:
14148 - Added argument to SetTopmost
14150 2004-11-08 13:52 pbartok
14153 - Added XSetWindowAttributes structure
14154 - Improved XWindowAttributes structure
14155 - Added SetWindowValuemask enum
14156 - Added window creation arguments enum
14157 - Added gravity enum
14158 - Added Motif hints structure
14159 - Added various Motif flags and enums
14160 - Added PropertyMode enum for property functions
14162 2004-11-08 13:50 pbartok
14165 - Fixed arguments for updated SetTopmost method
14167 2004-11-08 13:49 pbartok
14170 - Fixed arguments for updated SetTopmost function
14171 - Fixed usage of PointToClient
14173 2004-11-08 13:44 pbartok
14176 - Added Clipping of children and siblings
14178 2004-11-08 13:41 pbartok
14181 - Removed SetMenuBarWindow call. We do this in Form.cs
14183 2004-11-08 13:40 jackson
14185 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14186 scrolling jimmi in the correct location with bottom aligned tabs
14188 2004-11-08 13:36 pbartok
14190 * ContainerControl.cs:
14191 - Implemented BindingContext
14192 - Implemented ParentForm
14194 2004-11-08 12:46 jackson
14196 * TabControl.cs: Put bottom rendered tabs in the right location
14198 2004-11-08 07:15 jordi
14200 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14203 2004-11-05 17:30 jackson
14205 * TabControl.cs: When selected tabs are expanded make sure they
14206 don't go beyond the edges of the tab control
14208 2004-11-05 14:57 jackson
14210 * TabControl.cs: Reset show_slider so if the control is resized to
14211 a size where it is no longer needed it's not displayed anymore
14213 2004-11-05 13:16 jackson
14215 * TabControl.cs: Make tab pages non visible when added to the
14218 2004-11-05 12:42 jackson
14220 * TabControl.cs: Implement SizeMode.FillToRight
14222 2004-11-05 12:16 jackson
14224 * Control.cs: Do not call CreateHandle if the handle is already
14227 2004-11-05 11:46 jackson
14229 * TabControl.cs: Remove superflous call to CalcTabRows
14231 2004-11-05 09:07 jackson
14233 * XplatUIX11.cs: Update for Mono.Posix changes
14235 2004-11-05 07:00 ravindra
14237 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14240 2004-11-04 22:47 jba
14242 * ThemeWin32Classic.cs:
14243 - Fix Button rendering for FlatStyle = Flat or Popup
14244 - Fix RadioButton and CheckBox rendering when Appearance = Button
14245 (normal and flatstyle).
14246 - Correct outer rectangle color when drawing focus rectangle
14247 - Adjust button bounds to be 1 px smaller when focused
14248 - Make button not draw sunken 3d border when pushed (windows compat)
14249 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14250 - Offset the text in RadioButton and Checkbox when being rendered as
14252 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14254 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14255 - Fixed disabled text rendering for normally rendered radiobuttons
14257 2004-11-04 10:26 jackson
14259 * TabControl.cs: Recalculate tab rows when resizing
14261 2004-11-04 07:47 jordi
14263 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14264 collection completion, drawing issues, missing features
14266 2004-11-04 05:03 ravindra
14269 - We need to recalculate the Thumb area when
14270 LargeChange/maximum/minimum values are changed.
14271 - We set the 'pos' in UpdatePos() method to minimum, if it's less
14272 than minimum. This is required to handle the case if large_change is
14273 more than max, and use LargeChange property instead of large_change
14275 - We return max+1 when large_change is more than max, like MS does.
14277 2004-11-04 04:29 ravindra
14279 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14280 - Changed default value signatures (prefixed all with ListView).
14281 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14283 - Fixed calculations for ListViewItem and implemented Clone()
14286 2004-11-04 04:26 ravindra
14288 * Theme.cs, ThemeWin32Classic.cs:
14289 - Changed default ListView values signatures (prefixed all with
14291 - Fixed default size values for VScrollBar and HScrollBar.
14292 - Fixed DrawListViewItem method.
14294 2004-11-04 04:05 ravindra
14296 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14298 2004-11-04 04:04 ravindra
14300 * ImageList.cs: Implemented the missing overload for Draw method.
14302 2004-11-03 19:29 jackson
14304 * TabControl.cs: Handle dropping rows on selection properly
14306 2004-11-03 11:59 jackson
14308 * TabControl.cs: remove debug code
14310 2004-11-03 11:52 jackson
14312 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14313 the scrolly widgerywoo
14315 2004-11-02 13:52 jackson
14317 * TabControl.cs: Resize the tab pages and tabs when the tab control
14320 2004-11-02 13:40 jackson
14322 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14323 selected tab to the bottom
14325 2004-11-02 13:39 jackson
14327 * TabPage.cs: Store the tab pages row
14329 2004-11-02 12:33 jordi
14331 * MenuItem.cs: fixes handle creation
14333 2004-11-02 11:42 jackson
14335 * TabControl.cs: signature fix
14337 2004-11-02 08:56 jackson
14339 * TabControl.cs: Calculate whether the tab is on an edge properly.
14340 Remove top secret debugging code
14342 2004-11-01 19:57 jackson
14344 * TabControl.cs: Add click handling, and proper sizing
14346 2004-11-01 19:47 jackson
14348 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14351 2004-11-01 19:39 jackson
14353 * TabPage.cs: add internal property to store the bounds of a tab
14356 2004-10-30 04:23 ravindra
14358 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14361 2004-10-30 04:21 ravindra
14363 * ListView.cs, ListViewItem.cs: Added support for scrolling and
14364 fixed calculations.
14366 2004-10-30 03:06 pbartok
14369 - Removed extension of DllImported libs
14371 2004-10-29 09:55 jordi
14373 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14374 navigation, itemcollection completion, menu fixes
14376 2004-10-27 22:58 pbartok
14379 - Now throws a nice error message when no X display could be opened
14381 2004-10-26 13:51 jordi
14383 * ListView.cs: removes warning
14385 2004-10-26 03:55 ravindra
14387 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14388 ThemeWin32Classic.cs: Some formatting for my last checkins.
14390 2004-10-26 03:36 ravindra
14392 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14393 control and default values.
14395 2004-10-26 03:35 ravindra
14397 * Theme.cs: Added some default values for ListView control.
14399 2004-10-26 03:33 ravindra
14401 * ToolBar.cs: ToolBar should use the user specified button size, if
14402 there is any. Added a size_specified flag for the same.
14404 2004-10-26 03:33 ravindra
14406 * ColumnHeader.cs: Added some internal members and calculations for
14409 2004-10-26 03:32 ravindra
14411 * ListViewItem.cs: Calculations for ListViewItem.
14413 2004-10-26 03:31 ravindra
14415 * ListView.cs: Added some internal members and calculations for
14418 2004-10-22 13:31 jordi
14420 * MenuAPI.cs: speedup menus drawing
14422 2004-10-22 13:16 jackson
14424 * XplatUIX11.cs: Make sure to update exposed regions when adding an
14427 2004-10-22 11:49 jackson
14431 2004-10-22 11:41 jackson
14433 * Control.cs: Check to see if the window should have its background
14434 repainted by X when drawing.
14436 2004-10-22 11:31 jackson
14438 * XplatUIX11.cs: When invalidating areas only use XClearArea if
14439 clear is true, this way we do not get flicker from X repainting the
14442 2004-10-22 11:28 jackson
14444 * XEventQueue.cs: Queue properly
14446 2004-10-21 09:38 jackson
14448 * XEventQueue.cs: Fix access modifier
14450 2004-10-21 09:36 jackson
14452 * XEventQueue.cs: Don't loose messages
14454 2004-10-21 09:22 jackson
14456 * XEventQueue.cs: Don't loose messages
14458 2004-10-20 04:15 jordi
14460 * BootMode.cs: enum need it by SystemInfo
14462 2004-10-19 21:58 pbartok
14465 - Small sanity check
14467 2004-10-19 21:56 pbartok
14470 - Added private FormParentWindow class which acts as the container
14471 for our form and as the non-client area where menus are drawn
14472 - Added/Moved required tie-ins to Jordi's menus
14473 - Fixed/Implemented the FormStartPosition functionality
14475 2004-10-19 21:52 pbartok
14478 - Removed unneeded locals
14479 - Added code to all size and location properties to understand and
14480 deal with the parent container of Form
14482 2004-10-19 21:33 pbartok
14485 - Fixed to deal with new Form subclasses for menus
14487 2004-10-19 17:48 jackson
14489 * XEventQueue.cs: commit correct version of file
14491 2004-10-19 16:50 jackson
14493 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
14495 2004-10-19 16:15 jordi
14497 * MenuAPI.cs: MenuBarCalcSize returns the height
14499 2004-10-19 08:31 pbartok
14502 - Added missing call to PreProcessMessage before calling OnXXXKey
14505 2004-10-19 00:04 ravindra
14507 * ToolTip.cs: Fixed constructor.
14509 2004-10-18 09:31 jordi
14511 * MenuAPI.cs: menuitems in menubars do not have shortcuts
14513 2004-10-18 09:26 jordi
14515 * MenuItem.cs: fixes MenuItem class signature
14517 2004-10-18 08:56 jordi
14519 * MenuAPI.cs: prevents windows from showing in the taskbar
14521 2004-10-18 00:28 ravindra
14523 * ToolTip.cs: Suppressed a warning message.
14525 2004-10-18 00:27 ravindra
14527 * Control.cs: Default value of visible property must be true.
14529 2004-10-17 23:19 pbartok
14532 - Complete implementation
14534 2004-10-17 23:19 pbartok
14537 - Added EnableWindow method
14538 - Added SetModal stub
14539 - Added generation of WM_ACTIVATE message (still needs testing)
14540 - Added SetTopMost stub
14541 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
14543 2004-10-17 23:17 pbartok
14546 - Removed VirtualKeys to XplatUIStructs
14547 - Implemented SetTopMost method
14548 - Implemented EnableWindow method
14549 - Bugfix in ScreenToClient()
14550 - Bugfixes in ClientToScreen()
14552 2004-10-17 22:51 pbartok
14554 * XplatUIStructs.cs:
14555 - Added WS_EX styles to WindowStyles enumeration
14557 2004-10-17 22:50 pbartok
14559 * XplatUI.cs, XplatUIDriver.cs:
14560 - Added method for enabling/disabling windows
14561 - Added method for setting window modality
14562 - Added method for setting topmost window
14564 2004-10-17 22:49 pbartok
14566 * ThemeWin32Classic.cs:
14567 - Added ToolTip drawing code
14569 2004-10-17 22:49 pbartok
14572 - Added ToolTip abstracts
14574 2004-10-17 22:47 pbartok
14577 - Fixed Form.ControlCollection to handle owner relations
14578 - Added Owner/OwnedForms handling
14579 - Implemented Z-Ordering for owned forms
14580 - Removed unneeded private overload of ShowDialog
14581 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
14583 - Fixed Close(), had wrong default
14584 - Added firing of OnLoad event
14585 - Added some commented out debug code for Ownership handling
14587 2004-10-17 22:16 pbartok
14590 - Fixed/implemented flat list of controls
14592 2004-10-17 22:14 pbartok
14595 - Added code to simulate modal dialogs on Win32
14597 2004-10-17 16:11 jordi
14599 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
14602 2004-10-17 13:39 jordi
14604 * MenuAPI.cs: menu drawing fixes
14606 2004-10-15 09:10 ravindra
14608 * StructFormat.cs: General Enum.
14610 2004-10-15 09:09 ravindra
14612 * SizeGripStyle.cs: Enum for Form.
14614 2004-10-15 09:08 ravindra
14616 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
14617 in Theme for ListView.
14619 2004-10-15 09:06 ravindra
14621 * ColumnHeader.cs: Flushing some formatting changes.
14623 2004-10-15 09:05 ravindra
14625 * ListViewItem.cs: Implemented GetBounds method and fixed coding
14628 2004-10-15 09:03 ravindra
14630 * ListView.cs: Implemented Paint method and fixed coding style.
14632 2004-10-15 07:34 jordi
14634 * MenuAPI.cs: fix for X11
14636 2004-10-15 07:32 ravindra
14638 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
14639 - Renamed Paint() method to Draw() for clarity. Also, moved
14640 DrawImage() to OnPaint().
14642 2004-10-15 07:25 ravindra
14644 * CheckBox.cs, RadioButton.cs:
14645 - Removed Redraw (), we get it from ButtonBase.
14646 - Implemented Paint (), to do class specific painting.
14648 2004-10-15 07:16 ravindra
14651 - Redraw () is not virtual now.
14652 - Added an internal virtual method Paint (), so that
14653 derived classes can do their painting on their own.
14654 - Modified OnPaint () to call Paint ().
14656 2004-10-15 06:43 jordi
14658 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
14659 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
14661 2004-10-15 00:30 ravindra
14664 - MessageBox on windows does not have min/max buttons.
14665 This change in CreateParams fixes this on Windows. We
14666 still need to implement this windowstyle behavior in
14669 2004-10-14 05:14 ravindra
14672 - Changed Redraw () to do a Refresh () always.
14673 - Fixed the MouseMove event handling when mouse is pressed,
14674 ie drag event handling.
14675 - Replaced the usage of ToolBarButton.Pressed property to
14676 ToolBarButton.pressed internal variable.
14678 2004-10-14 05:10 ravindra
14680 * ToolBarButton.cs:
14681 - Added an internal member 'inside' to handle mouse move
14682 with mouse pressed ie mouse drag event.
14683 - Changed 'Pressed' property to return true only when
14684 'inside' and 'pressed' are both true.
14685 - Some coding style love.
14687 2004-10-14 00:17 ravindra
14689 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
14692 2004-10-14 00:15 ravindra
14694 * ButtonBase.cs: Redraw () related improvements.
14696 2004-10-14 00:14 ravindra
14698 * MessageBox.cs: Moved InitFormSize () out of Paint method and
14699 removed unnecessary calls to Button.Show () method.
14701 2004-10-13 17:50 pbartok
14705 - Removed destroying of window until we solve the problem of X
14706 destroying the window before us on shutdown
14708 2004-10-13 16:32 pbartok
14711 - Now Redraws on MouseUp for FlatStyle Flat and Popup
14713 2004-10-13 14:18 pbartok
14716 - Added code to destroy the X window
14718 2004-10-13 14:18 pbartok
14721 - Added code to destroy a window
14723 2004-10-13 14:12 pbartok
14726 - Added the Redraw on Resize that got dropped in the last rev
14728 2004-10-13 09:06 pbartok
14730 * ThemeWin32Classic.cs:
14731 - Path from John BouAntoun:
14732 * Fix check rendering (centre correctly for normal style, offset
14733 correctly for FlatStyle).
14734 * Fix border color usage (use backcolor) for FlatStyle.Popup
14735 * Use checkbox.Capture instead of checkbox.is_pressed when
14736 rendering flatstyle states.
14738 2004-10-12 21:48 pbartok
14740 * ThemeWin32Classic.cs:
14741 - Removed all occurences of SystemColors and replaced them with the
14742 matching theme color
14744 2004-10-12 21:41 pbartok
14746 * ThemeWin32Classic.cs:
14747 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
14748 him using the function for flatstyle drawing
14749 - Changed functions to use the new version of CPDrawBorder3D
14751 2004-10-12 21:15 pbartok
14754 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
14755 match MS documentation. They need to return defined colors if the
14756 passed color matches the configured control color. Thanks to John
14757 BouAntoun for pointing this out.
14759 2004-10-12 20:57 pbartok
14762 - Fix from John BouAntoun: Raise ForeColorChanged event when text
14765 2004-10-12 20:46 pbartok
14768 - Fix from John BouAntoun: Now properly sets the Appearance property
14770 2004-10-12 20:45 pbartok
14772 * ThemeWin32Classic.cs:
14773 - Fixes from John BouAntoun: now handles forecolors and backcolors
14774 for flatstyle rendered controls much better; It also fixes normal
14775 checkbox rendering when pushed or disabled.
14777 2004-10-08 02:50 jordi
14779 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
14782 2004-10-07 08:56 jordi
14784 * ThemeWin32Classic.cs: Removes deletion of cached brushes
14786 2004-10-06 03:59 jordi
14788 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
14789 XplatUIWin32.cs: removes warnings from compilation
14791 2004-10-05 12:23 jackson
14793 * RadioButton.cs: Fix ctor
14795 2004-10-05 11:10 pbartok
14798 - Partial implementation by Benjamin Dasnois
14800 2004-10-05 10:15 jackson
14802 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
14805 2004-10-05 03:07 ravindra
14808 - Removed a private method, Draw ().
14809 - Fixed the ButtonDropDown event handling.
14810 - Fixed MouseMove event handling.
14812 2004-10-05 03:04 ravindra
14814 * ThemeWin32Classic.cs:
14815 - Added DrawListView method and ListViewDefaultSize property.
14816 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
14817 - Changed DOS style CRLF to Unix format (dos2unix).
14819 2004-10-05 03:03 ravindra
14822 - Added DrawListView method and ListViewDefaultSize property.
14824 2004-10-05 02:42 ravindra
14826 * ToolBarButton.cs: Added an internal member dd_pressed to handle
14827 clicks on DropDown arrow.
14829 2004-10-04 22:56 jackson
14831 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
14832 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
14833 Control handle the buffers, derived classes should not have to
14834 CreateBuffers themselves.
14836 2004-10-04 21:20 jackson
14838 * StatusBar.cs: The control handles resizing the buffers now.
14840 2004-10-04 21:18 jackson
14842 * Control.cs: When resizing the buffers should be invalidated. This
14843 should be handled in Control not in derived classes.
14845 2004-10-04 14:45 jackson
14849 2004-10-04 02:14 pbartok
14851 * LeftRightAlignment.cs:
14854 2004-10-04 01:09 jordi
14856 * ThemeWin32Classic.cs: fixes right button position causing right
14857 button not showing on horizontal scrollbars
14859 2004-10-02 13:12 pbartok
14862 - Simplified the Invalidate method by using an X call instead of
14863 generating the expose ourselves
14864 - Added an expose when the window background is changed
14865 - Implemented ClientToScreen method
14867 2004-10-02 13:08 pbartok
14870 - Added Win32EnableWindow method (test for implementing modal
14872 - Added ClientToScreen method and imports
14874 2004-10-02 13:07 pbartok
14876 * XplatUI.cs, XplatUIDriver.cs:
14877 - Added ClientToScreen coordinate translation method
14879 2004-10-02 13:06 pbartok
14881 * KeyPressEventArgs.cs:
14882 - Fixed access level for constructor
14884 2004-10-02 13:06 pbartok
14887 - Changed access level for the window_collection hash table
14889 2004-10-02 13:05 pbartok
14892 - Added KeyPreview property
14893 - Added Menu property (still incomplete, pending Jordi's menu work)
14894 - Implemented ProcessCmdKey
14895 - Implemented ProcessDialogKey
14896 - Implemented ProcessKeyPreview
14898 2004-10-02 13:02 pbartok
14901 - Added private method to get the Control object from the window
14903 - Implemented ContextMenu property
14904 - Implemented PointToScreen
14905 - Implemented PreProcessMessage
14906 - Implemented IsInputChar
14907 - Implemented IsInputKey
14908 - Implemented ProcessCmdKey
14909 - Completed ProcessKeyEventArgs
14910 - Fixed message loop to call the proper chain of functions on key
14912 - Implemented ProcessDialogChar
14913 - Implemented ProcessDialogKey
14914 - Implemented ProcessKeyMessage
14915 - Implemented ProcessKeyPreview
14916 - Added RaiseDragEvent stub (MS internal method)
14917 - Added RaiseKeyEvent stub (MS internal method)
14918 - Added RaiseMouseEvent stub (MS Internal method)
14919 - Added RaisePaintEvent stub (MS Internal method)
14920 - Added ResetMouseEventArgs stub (MS Internal method)
14921 - Implemented RtlTranslateAlignment
14922 - Implemented RtlTranslateContent
14923 - Implemented RtlTranslateHorizontal
14924 - Implemented RtlTranslateLeftRight
14925 - Added generation of KeyPress event
14927 2004-10-02 05:57 ravindra
14929 * ListViewItem.cs: Added attributes.
14931 2004-10-02 05:32 ravindra
14933 * ListView.cs: Added attributes.
14935 2004-10-01 11:53 jackson
14937 * Form.cs: Implement the Close method so work on MessageBox can
14940 2004-09-30 14:06 pbartok
14945 2004-09-30 11:34 jackson
14947 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
14949 2004-09-30 07:26 ravindra
14951 * ListViewItemConverter.cs: Converter for ListViewItem.
14953 2004-09-30 07:26 ravindra
14955 * SortOrder.cs: Enum for ListView control.
14957 2004-09-30 07:25 ravindra
14959 * ColumnHeader.cs: Supporting class for ListView control.
14961 2004-09-30 07:24 ravindra
14963 * ListView.cs, ListViewItem.cs: Initial implementation.
14965 2004-09-30 07:20 ravindra
14967 * ItemActivation.cs: Enum for ListView Control.
14969 2004-09-29 20:29 pbartok
14972 - Added lookup of pixel value for background color; tries to get a
14973 color 'close' to the requested color, it avoids having to create a
14974 colormap. Depending on the display this could mean the used color
14975 is slightly off the desired color. Might have to change it to a more
14976 resource intensive colormap approach, but it will work as a
14977 workaround to avoid red screens.
14979 2004-09-29 14:27 jackson
14981 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
14983 2004-09-28 12:44 pbartok
14985 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
14986 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
14987 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
14988 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
14989 TrackBar.cs, VScrollBar.cs:
14990 - Streamlined Theme interfaces:
14991 * Each DrawXXX method for a control now is passed the object for
14992 the control to be drawn in order to allow accessing any state the
14993 theme might require
14995 * ControlPaint methods for the theme now have a CP prefix to avoid
14996 name clashes with the Draw methods for controls
14998 * Every control now retrieves it's DefaultSize from the current
15001 2004-09-28 12:17 jackson
15003 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15006 2004-09-24 14:57 jackson
15008 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15009 Gives us a nice little performance boost.
15011 2004-09-24 12:02 jackson
15013 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15014 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15015 Control and supporting classes. Initial checkin
15017 2004-09-23 13:08 jackson
15019 * Form.cs: Temp build fixage
15021 2004-09-23 01:39 ravindra
15023 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15024 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15025 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15026 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15027 EventHandlers needed by ListView Control.
15029 2004-09-22 14:12 pbartok
15031 * ScrollableControl.cs:
15032 - Implemented DockPadding property
15033 - Implemented AutoScroll property
15034 - Implemented AutoScrollMargin property
15035 - Implemented AutoScrollMinSize property
15036 - Implemented AutoScrollPosition property
15037 - Implemented DisplayRectangle property (still incomplete)
15038 - Implemented CreateParams property
15039 - Implemented HScroll property
15040 - Implemented VScroll property
15041 - Implemented OnVisibleChanged property
15043 2004-09-22 14:09 pbartok
15046 - Added Form.ControllCollection class
15047 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15048 RemoveOwnedForm (still incomplete, missing on-top and common
15049 minimize/maximize behaviour)
15050 - Added StartPosition property (still incomplete, does not use when
15052 - Added ShowDialog() methods (still incomplete, missing forcing the
15055 2004-09-22 14:05 pbartok
15058 - Added message loop for modal dialogs
15060 2004-09-22 14:02 pbartok
15063 - Fixed wrong types for events
15065 2004-09-22 14:00 pbartok
15067 * Shortcut.cs, FormWindowState.cs:
15068 - Fixed wrong values
15070 2004-09-22 12:01 jackson
15072 * Control.cs: Text is never null
15074 2004-09-20 22:14 pbartok
15077 - Fixed accessibility level for Idle handler
15079 2004-09-20 18:54 jackson
15081 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15082 XplatUIX11.cs: New message loop that uses poll so we don't get a
15085 2004-09-17 10:43 pbartok
15088 - Fixed behaviour of arrow buttons. Now properly behaves like
15089 Buttons (and like Microsoft's scrollbar arrow buttons)
15091 2004-09-17 10:14 pbartok
15094 - Added missing release of keyboard/mouse capture
15096 2004-09-17 06:18 jordi
15098 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15099 Theme.cs: Very early menu support
15101 2004-09-16 17:45 pbartok
15104 - Fixed sending a window to the front
15105 - Added overload for SetWindowPos to avoid casting
15107 2004-09-16 17:44 pbartok
15110 - Added SendToBack and BringToFront methods
15112 2004-09-16 07:00 ravindra
15114 * Copyright: Added Novell URL.
15116 2004-09-16 07:00 ravindra
15118 * ToolBar.cs: Invalidate should be done before redrawing.
15120 2004-09-15 21:19 ravindra
15122 * ColumnHeaderStyle.cs: Enum for ListView Control.
15124 2004-09-15 21:18 ravindra
15126 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15129 2004-09-13 18:26 jackson
15131 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15134 2004-09-13 18:13 jackson
15136 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15137 a second thread and post messages into the main threads message
15138 queue. This makes timing much more consistent. Both win2K and XP
15139 have a minimum timer value of 15 milliseconds, so we now do this
15142 2004-09-13 15:18 pbartok
15144 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15146 - Added Z-Ordering methods
15148 2004-09-13 10:56 pbartok
15151 - Fixed #region names
15152 - Moved properties and methods into their proper #regions
15154 2004-09-13 10:51 pbartok
15157 - Added Accept and CancelButton properties
15158 - Added ProcessDialogKey() method
15160 2004-09-13 08:18 pbartok
15162 * IWindowTarget.cs:
15165 2004-09-10 21:50 pbartok
15168 - Added DoDragDrop() [incomplete]
15169 - Properly implemented 'Visible' handling
15170 - Added SetVisibleCore()
15171 - Implemented FindChildAtPoint()
15172 - Implemented GetContainerControl()
15173 - Implemented Hide()
15175 2004-09-10 19:28 pbartok
15178 - Moved methods into their appropriate #regions
15179 - Reordered methods within regions alphabetically
15181 2004-09-10 18:57 pbartok
15183 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15184 - Added method to retrieve text from window
15186 2004-09-10 18:56 pbartok
15189 - Moved some internal functions into the internal region
15190 - Implemented FontHeight
15191 - Implemented RenderRightToLeft
15192 - Implemented ResizeRedraw
15193 - Implemented ShowFocusCues
15194 - Implemented ShowKeyboardCues
15195 - Implemented FromChildHandle
15196 - Implemented FromHandle
15197 - Implemented IsMnemonic
15198 - Implemented ReflectMessage
15199 - All public and protected Static Methods are now complete
15201 2004-09-10 16:54 pbartok
15204 - Implemented remaining missing public instance properties
15205 - Alphabetized some out of order properties
15207 2004-09-10 05:51 ravindra
15209 * PictureBox.cs: Added a check for null image.
15211 2004-09-10 00:59 jordi
15213 * GroupBox.cs: remove cvs tag
15215 2004-09-09 05:25 ravindra
15217 * ToolBar.cs: Make redraw accessible from ToolBarButton.
15219 2004-09-09 05:23 ravindra
15221 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15224 2004-09-09 02:28 pbartok
15226 * ThemeWin32Classic.cs:
15227 - Improve disabled string look
15229 2004-09-09 01:15 jordi
15231 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15234 2004-09-08 23:56 ravindra
15236 * ItemBoundsPortion.cs: It's enum, not a class!
15238 2004-09-08 23:47 ravindra
15240 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15243 2004-09-08 21:13 ravindra
15245 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15248 2004-09-08 21:03 ravindra
15250 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15253 2004-09-08 21:01 ravindra
15255 * ScrollableControl.cs: Removed unreachable code.
15257 2004-09-08 06:45 jordi
15259 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15261 2004-09-08 01:00 jackson
15263 * XplatUIX11.cs: Only run the timers when updating the message
15264 queue. This effectively gives X messages a higher priority then
15265 timer messages. Timers still need love though
15267 2004-09-07 14:01 jackson
15269 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15270 this for us and the handle is no longer valid.
15272 2004-09-07 13:59 jackson
15274 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15275 loop that manages to not crash. TODO: Add poll and cleanup timers
15277 2004-09-07 11:12 jordi
15279 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15281 2004-09-07 03:40 jordi
15283 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15284 fixes, methods, multiple links
15286 2004-09-06 06:55 jordi
15288 * Control.cs: Caches ClientRectangle rectangle value
15290 2004-09-05 02:03 jordi
15292 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15295 2004-09-04 11:10 jordi
15297 * Label.cs: Refresh when font changed
15299 2004-09-02 16:24 pbartok
15302 - Added sanity check to creation of double buffer bitmap
15304 2004-09-02 16:24 pbartok
15307 - Fixed selection of text color
15308 - Fixed handling of resize event; now properly recreates double
15310 - Added missing assignment of TextAlignment
15311 - Added proper default for TextAlignment
15313 2004-09-02 14:26 pbartok
15316 - Added missing RadioButton.RadioButtonAccessibleObject class
15318 2004-09-02 14:26 pbartok
15321 - Added missing Control.ControlAccessibleObject class
15322 - Started to implement Select()ion mechanisms, still very incomplete
15324 2004-09-02 14:25 pbartok
15326 * AccessibleObject.cs:
15327 - Added missing methods
15329 2004-09-02 14:23 pbartok
15331 * AccessibleNavigation.cs, AccessibleSelection.cs:
15334 2004-09-02 10:32 jordi
15336 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15337 pool for pens, brushes, and hatchbruses
15339 2004-09-01 15:30 jackson
15341 * StatusBar.cs: Fix typo
15343 2004-09-01 14:44 pbartok
15348 2004-09-01 14:39 pbartok
15350 * Button.cs, RadioButton.cs:
15351 - Functional initial check-in
15353 2004-09-01 14:01 pbartok
15356 - Added missing default
15357 - Added missing region mark
15359 2004-09-01 09:10 jordi
15361 * Label.cs: fixes method signatures, new methods, events, fixes
15364 2004-09-01 07:19 jordi
15366 * Control.cs: Init string variables with an empty object
15368 2004-09-01 04:20 jordi
15370 * Control.cs: fires OnFontChanged event
15372 2004-08-31 20:07 pbartok
15375 - Enabled display of strings
15377 2004-08-31 20:05 pbartok
15380 - Added (partial) implementation of DialogResult; rest needs to be
15381 implemented when the modal loop code is done
15383 2004-08-31 19:55 pbartok
15386 - Fixed to match the removal of the needs_redraw concept
15388 2004-08-31 19:55 pbartok
15391 - Removed the rather odd split between 'needs redraw' and redrawing
15392 - Now handles the events that require regeneration (ambient
15393 properties and size)
15395 2004-08-31 19:41 pbartok
15398 - Added firing of BackColorChanged event
15399 - Added TopLevelControl property
15400 - Fixed handling of WM_ERASEBKGRND message
15402 2004-08-31 12:49 pbartok
15408 2004-08-31 12:48 pbartok
15411 - Finished (famous last words)
15413 2004-08-31 04:35 jordi
15415 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15416 scrolling bugs, adds new methods
15418 2004-08-30 14:42 pbartok
15421 - Implemented CheckBox drawing code
15423 2004-08-30 14:42 pbartok
15426 - Made Redraw() and CheckRedraw() virtual
15427 - Improved mouse up/down/move logic to properly track buttons
15429 2004-08-30 09:44 pbartok
15432 - Updated to fix broken build. Not complete yet.
15434 2004-08-30 09:28 pbartok
15439 2004-08-30 09:17 pbartok
15444 2004-08-27 16:12 ravindra
15446 * ToolBarButton.cs: Added TypeConverter attribute.
15448 2004-08-27 16:07 ravindra
15450 * ImageIndexConverter.cs: Implemented.
15452 2004-08-27 14:17 pbartok
15455 - Removed unneeded stack vars
15456 - First attempt to fix sizing issues when layout is suspended
15458 2004-08-25 15:35 jordi
15460 * ScrollBar.cs: more fixes to scrollbar
15462 2004-08-25 14:04 ravindra
15464 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15465 Added the missing divider code and grip for ToolBar Control.
15467 2004-08-25 13:20 pbartok
15470 - Control now properly passes the ambient background color to child
15473 2004-08-25 13:20 jordi
15475 * ScrollBar.cs: small bug fix regarding bar position
15477 2004-08-25 12:33 pbartok
15480 - Now only calls SetTimer or KillTimer if the enabled state has
15483 2004-08-25 12:33 pbartok
15486 - Fixed timer handling, now seems to work
15487 - Improved error message for window creation
15489 2004-08-25 12:32 pbartok
15492 - Fixed generation of MouseUp message
15494 2004-08-25 12:29 jordi
15496 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
15497 and fixes for progressbar
15499 2004-08-24 18:43 ravindra
15501 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
15502 in ToolBar control.
15504 2004-08-24 17:15 pbartok
15508 - Added missing events
15511 2004-08-24 17:14 pbartok
15513 * StatusBar.cs, PictureBox.cs:
15514 - Now uses Control's CreateParams
15516 2004-08-24 16:36 pbartok
15519 - Fixed background color handling
15520 - Fixed sending of enter/leave events on a grab
15522 2004-08-24 16:35 pbartok
15525 - Refined definitions for CrossingEvent
15527 2004-08-24 12:37 jordi
15529 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
15530 formmating, methods signature, and adds missing events
15532 2004-08-24 12:24 jordi
15534 * Control.cs: fire OnEnabledChanged event
15536 2004-08-24 11:17 pbartok
15539 - Implemented SetTimer() and KillTimer()
15541 2004-08-24 11:16 pbartok
15544 - Now uses Remove instead of Add to kill the timer
15546 2004-08-24 10:16 jackson
15548 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
15549 picture boxes in the theme now. Draw picture box borders and obey
15552 2004-08-24 05:49 jackson
15554 * Timer.cs: Remove top secret debugging code
15556 2004-08-24 05:34 jackson
15558 * PictureBox.cs: Temp hack to make picture boxes draw their full
15561 2004-08-24 05:29 jackson
15563 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15564 XplatUIX11.cs: Move timers to the driver level. On X they are
15565 queued by the driver and checked on idle.
15567 2004-08-24 01:07 jackson
15569 * XplatUIX11.cs: Use a queue for async messages instead of passing
15570 them as ClientMessages since that was totally broken. Also simply
15571 check for events and return an idle message if none are found. This
15572 gives us an idle handler, and prevents deadlocking when no messages
15575 2004-08-23 18:19 ravindra
15577 * XplatUIWin32.cs: Removed the unwanted destructor.
15579 2004-08-23 17:27 pbartok
15582 - Finishing touches. Works now, just needs some optimizations.
15584 2004-08-23 16:53 jordi
15586 * ScrollBar.cs: small fix
15588 2004-08-23 16:45 pbartok
15591 - Removed debug output
15594 2004-08-23 16:43 jordi
15596 * ScrollBar.cs: [no log message]
15598 2004-08-23 16:10 pbartok
15601 - Fixed handling of WM_CLOSE message
15602 - Removed debug output
15604 2004-08-23 16:09 pbartok
15607 - Added handling of Idle event
15608 - Added handling of form closing
15609 - Fixed reporting of MessageLoop property
15610 - Removed some unneeded code, should provide a bit of a speedup
15612 2004-08-23 15:22 pbartok
15615 - Added InitLayout() method
15616 - Added code to properly perform layout when Anchor or Dock property
15618 - Changed 'interpretation' of ResumeLayout. MS seems to have a
15619 LAMESPEC, tried to do it in a way that makes sense
15621 2004-08-23 14:10 jordi
15623 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
15624 properties and methods
15626 2004-08-23 13:55 pbartok
15629 - Properly fixed Jordi's last fix
15630 - Now uses Cursor's Position property instead of calling XplatUI
15633 2004-08-23 13:44 jordi
15635 * PaintEventHandler.cs: Adding missing attribute
15637 2004-08-23 13:39 pbartok
15640 - Implemented Position property
15642 2004-08-23 13:39 pbartok
15644 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15645 - Added method to move mouse cursor
15647 2004-08-23 13:39 pbartok
15650 - Fixed setting of background color
15651 - Added method to move mouse cursor
15653 2004-08-23 13:16 jordi
15655 * Control.cs: avoids null exception
15657 2004-08-22 17:46 jackson
15659 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
15662 2004-08-22 17:40 jackson
15664 * XplatUIX11.cs: Add some missing locks
15666 2004-08-22 15:10 pbartok
15668 * Control.cs, Form.cs:
15669 - Removed OverlappedWindow style from Control, instead it's default
15671 - Made form windows OverlappedWindow by default
15673 2004-08-22 13:34 jackson
15675 * ScrollBar.cs: Update the position through the Value property so
15676 the OnValueChanged event is raised.
15678 2004-08-22 12:04 pbartok
15681 - Added Cursor.cs and UserControl.cs
15683 2004-08-22 12:03 pbartok
15686 - Started implementation, not usable yet
15688 2004-08-22 12:00 pbartok
15691 - Implemented UserControl (complete)
15693 2004-08-21 19:20 ravindra
15695 * ToolBar.cs: Correcting the formatting mess of VS.NET.
15697 2004-08-21 18:49 ravindra
15699 * ToolBar.cs: Probably this completes the missing attributes in
15702 2004-08-21 18:03 ravindra
15704 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
15705 Fixed toolbar control signatures.
15707 2004-08-21 16:32 pbartok
15712 2004-08-21 16:30 pbartok
15717 2004-08-21 16:19 pbartok
15719 * Control.cs, Label.cs:
15722 2004-08-21 15:57 pbartok
15725 - Added loads of debug output for development
15726 - Fixed typo in method name
15728 2004-08-21 15:52 pbartok
15730 * ToolBarButtonClickEventArgs.cs:
15731 - Added missing base class
15733 2004-08-21 14:53 pbartok
15736 - Updated to match new GrabWindow signature
15738 2004-08-21 14:51 pbartok
15740 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15741 - Added method to get default display size
15743 2004-08-21 14:23 pbartok
15745 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15746 - Added method to query current grab state
15747 - Added argument to allow confining a grab to a window
15749 2004-08-21 14:22 pbartok
15752 - Added [Flags] attribute so that modifiers can be used in bitwise
15755 2004-08-21 14:21 pbartok
15757 * TrackBar.cs, ScrollBar.cs:
15758 - Replaced direct XplatUI calls with their Control counterpart
15760 2004-08-21 13:32 pbartok
15763 - Implemented Created property
15765 2004-08-21 13:28 pbartok
15768 - Implemented ContainsFocus
15770 2004-08-21 13:26 pbartok
15773 - Implemented CausesValidation
15775 2004-08-21 13:21 pbartok
15778 - Implemented CanFocus
15779 - Implemented CanSelect
15780 - Implemented Capture
15782 2004-08-21 12:35 pbartok
15785 - Fixed bug with Async message handling
15786 - Implemented getting the ModifierKeys
15788 2004-08-21 12:32 jackson
15790 * AsyncMethodResult.cs: Make sure we have the mutex before we
15791 release it. Fixes BeginInvoke on windows
15793 2004-08-21 11:31 pbartok
15795 * XplatUIWin32.cs, XplatUIX11.cs:
15796 - Drivers now return proper mouse state
15798 2004-08-21 10:54 jackson
15800 * Control.cs: Implement EndInvoke
15802 2004-08-21 10:48 jackson
15804 * Timer.cs: Remove unneeded finalizer
15806 2004-08-20 19:52 ravindra
15808 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
15809 in mouse event handling in the ToolBar control.
15811 2004-08-20 19:50 ravindra
15813 * ImageList.cs: Changed draw method to use the arguments passed in
15816 2004-08-20 18:58 pbartok
15818 * XplatUIStructs.cs:
15819 - Added private message for async communication
15821 2004-08-20 17:38 ravindra
15823 * Control.cs: Made RightToLeft property virtual and removed a
15826 2004-08-20 14:39 jordi
15828 * ThemeGtk.cs: use style_attach
15830 2004-08-20 14:39 pbartok
15833 - Added jackson's Async code from X11 to Win32
15835 2004-08-20 14:09 pbartok
15838 - Added all new files
15840 2004-08-20 14:09 pbartok
15843 - Added call to set window background color
15845 2004-08-20 14:03 pbartok
15847 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
15848 - Added method for setting the window background
15850 2004-08-20 14:02 pbartok
15853 - Added method for setting the background color
15854 - Added handling for erasing the window background
15856 2004-08-20 13:45 jordi
15858 * TrackBar.cs: fixes timer, new properties and methods
15860 2004-08-20 13:34 jackson
15862 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
15865 2004-08-20 13:22 jackson
15867 * Timer.cs: Timer Tick events are now handed through Controls Async
15868 mechanism so the callbacks are executed in the same thread as X
15870 2004-08-20 13:19 jackson
15872 * XplatUIDriver.cs: Expose functionality to send async messages
15875 2004-08-20 13:18 jackson
15877 * Control.cs: Implement Begininvoke
15879 2004-08-20 13:14 jackson
15881 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
15882 messages through the driver
15884 2004-08-20 13:12 jackson
15886 * XplatUIX11.cs: Lock before all X operations. Also added Async
15887 method functionality through XSendEvent
15889 2004-08-20 13:11 jackson
15891 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
15892 This will screw up on 64 bit systems)
15894 2004-08-20 13:10 jackson
15896 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
15897 Async messages through X/Win32
15899 2004-08-19 19:39 pbartok
15902 - Updated code to match new HandleData.DeviceContext type
15904 2004-08-19 19:38 pbartok
15907 - Made DeviceContext a generic object to allow usage from various
15909 - Added support for queueing Windows messages
15911 2004-08-19 19:37 pbartok
15914 - Added generation of MouseEnter, MouseLeave and MouseHover events
15915 - Added cleanup on EndPaint
15917 2004-08-19 19:17 pbartok
15920 - Added handling of WM_MOUSEHOVER
15921 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
15924 2004-08-19 18:55 jordi
15926 * ThemeGtk.cs: fixes button order
15928 2004-08-19 18:12 jordi
15930 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
15932 2004-08-19 17:09 pbartok
15935 - Added Right property
15936 - Added RightToLeft property
15938 2004-08-19 16:27 jordi
15940 * ThemeGtk.cs: experimental GTK theme support
15942 2004-08-19 16:26 jordi
15944 * ITheme.cs, Theme.cs: move themes from an interface to a class
15946 2004-08-19 16:25 jordi
15948 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
15951 2004-08-19 16:04 pbartok
15954 - Added colormap basics
15955 - Added a way to re-initialize with a different display handle
15956 - Fixed setting of the window background color
15957 - Added various X11 imports related to colors and colormaps
15959 2004-08-19 15:51 pbartok
15962 - Removed packing hints (Paolo suggested this a while back)
15963 - fixed colormap type
15964 - Added default Atom types
15965 - Added Screen and color structs and enums
15967 2004-08-19 15:39 pbartok
15970 - Added missing Draw() method
15971 - Added missing RecreateHandle event
15973 2004-08-19 15:30 pbartok
15976 - Added handling of WM_CLOSE
15978 2004-08-18 13:16 jordi
15980 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
15983 2004-08-18 09:56 jordi
15985 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
15987 2004-08-17 15:31 ravindra
15989 * SWF.csproj: Updated project.
15991 2004-08-17 15:25 pbartok
15994 - Drawing improvement; don't call UpdateBounds if we are not visible
15995 (or have been minimized)
15997 2004-08-17 15:24 pbartok
16000 - Finished IsVisible
16001 - Added Win32GetWindowPlacement
16003 2004-08-17 15:08 jackson
16005 * Panel.cs: Initial checkin of the Panel
16007 2004-08-17 14:25 pbartok
16010 - Fixed broken handling of default window sizes
16012 2004-08-17 13:29 jackson
16014 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16015 has a large startup time.
16017 2004-08-17 10:25 jackson
16019 * HandleData.cs: union areas properly
16021 2004-08-17 10:12 jackson
16023 * HandleData.cs: union areas properly
16025 2004-08-16 20:00 ravindra
16027 * ToolBar.cs, ToolBarButton.cs: Added attributes.
16029 2004-08-16 18:48 ravindra
16031 * ToolBar.cs: Added attributes.
16033 2004-08-16 17:17 ravindra
16035 * SWF.csproj: Updated project.
16037 2004-08-16 17:16 jackson
16039 * XplatUIX11.cs: Check for more expose events before sending a
16040 WM_PAINT so they can all be grouped together. This makes dragging a
16041 window across another window redraw in a sane way.
16043 2004-08-16 15:47 pbartok
16046 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16047 support OnMouseEnter/Leave()
16048 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16051 2004-08-16 15:46 pbartok
16053 * XplatUIStructs.cs, XplatUIX11.cs:
16054 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16055 OnMouseEnter/Leave()
16057 2004-08-16 15:34 jackson
16059 * XplatUIX11.cs: Group multiple expose events in HandleData, make
16060 sure messages get the message field set to WM_NULL if they are not
16063 2004-08-16 15:24 jackson
16065 * HandleData.cs: HandleData is used for storing message information
16068 2004-08-15 17:23 ravindra
16070 * ColorDepth.cs: Added attribute.
16072 2004-08-15 17:23 ravindra
16074 * SWF.csproj: Updated project for ToolBar Control.
16076 2004-08-15 17:20 ravindra
16078 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16079 control and also dos2unix format.
16081 2004-08-15 17:13 ravindra
16083 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16084 ToolBarButtonClickEventArgs.cs,
16085 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16086 ToolBarTextAlign.cs: First Implementation of ToolBar control.
16088 2004-08-15 15:31 pbartok
16091 - First (mostly) working version
16093 2004-08-13 16:15 pbartok
16096 - Fixed Anchor default
16098 2004-08-13 15:43 pbartok
16101 - Changed GetCursorPos signature
16103 2004-08-13 15:42 pbartok
16105 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16106 - Changed signature for GetCursorPos
16108 2004-08-13 15:25 pbartok
16112 - Fixed resizing/exposure handling
16114 2004-08-13 15:22 jordi
16116 * ThemeWin32Classic.cs: removes redundant code and fixes issues
16119 2004-08-13 14:55 jordi
16121 * TrackBar.cs: change from wndproc to events
16123 2004-08-13 13:00 jordi
16125 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16126 XplatUIX11.cs: implements PointToClient (ScreenToClient)
16128 2004-08-13 12:53 pbartok
16131 - Changed GetWindowPos to also provide client area size
16132 - Fixed broken prototypes for several win32 functions
16134 2004-08-13 12:53 pbartok
16136 * XplatUI.cs, XplatUIDriver.cs:
16137 - Changed GetWindowPos to also provide client area size
16139 2004-08-13 12:52 pbartok
16142 - Added generation of WM_POSCHANGED
16143 - Changed GetWindowPos to also provide client area size
16145 2004-08-13 12:52 pbartok
16148 - Added Dispose() and destructor
16149 - Fixed resizing and bounds calculation
16151 - Added memory savings for invisible windows
16153 2004-08-13 12:46 jordi
16155 * TrackBar.cs: adds timer and grap window
16157 2004-08-13 10:25 jackson
16159 * Timer.cs: SWF Timer
16161 2004-08-12 16:59 pbartok
16163 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16164 - Implemented method to get current mouse position
16166 2004-08-12 14:29 jordi
16168 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16169 enhancement, fix mouse problems, highli thumb, etc
16171 2004-08-12 13:31 pbartok
16174 - Fixed Anchoring bugs
16176 2004-08-12 13:01 jackson
16178 * StatusBar.cs: Don't forget things
16180 2004-08-12 12:54 jackson
16182 * ThemeWin32Classic.cs: Handle owner draw status bars
16184 2004-08-12 12:54 jackson
16186 * StatusBar.cs: Implement missing properties, events, and methods.
16187 Handle mouse clicking
16189 2004-08-12 10:19 jackson
16191 * StatusBarPanelClickEventArgs.cs,
16192 StatusBarPanelClickEventHandler.cs: Classes for handling status
16193 bar panel click events
16195 2004-08-12 10:10 jackson
16197 * Control.cs: Add missing properties
16199 2004-08-12 09:46 pbartok
16201 * BindingsManagerBase.cs:
16202 - Name changed to BindingManagerBase.cs
16204 2004-08-12 09:25 jordi
16206 * ScrollableControl.cs: calls ctrlbase instead of exeception
16208 2004-08-11 16:28 pbartok
16210 * InputLanguageChangingEventArgs.cs:
16211 - Never check in before compiling. Fixes the last check-in
16213 2004-08-11 16:26 pbartok
16215 * InputLanguageChangingEventArgs.cs:
16216 - More signature fixes
16218 2004-08-11 16:20 pbartok
16220 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16221 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16222 ImageListStreamer.cs, InputLanguage.cs,
16223 InputLanguageChangedEventArgs.cs,
16224 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16225 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16226 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16227 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16230 2004-08-11 16:16 pbartok
16234 - Added .Net 1.1 method
16236 2004-08-11 15:25 pbartok
16239 - Fixed BindingManagerBase.cs filename
16241 2004-08-11 15:22 pbartok
16243 * BindingManagerBase.cs:
16244 - Was checked in with wrong filename
16246 2004-08-11 14:50 pbartok
16251 2004-08-11 13:41 jordi
16253 * XplatUIWin32.cs: Fixes ClientRect
16255 2004-08-11 13:19 pbartok
16257 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16259 - We had SetWindowPos and MoveWindow to set window positions and
16260 size, removed MoveWindow. We have GetWindowPos, so it made sense to
16261 keep SetWindowPos as matching counterpart
16262 - Added some X11 sanity checking
16264 2004-08-11 12:59 pbartok
16267 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16268 (It seems that SetBounds is just a front for SetBoundsCore and
16269 SetBoundsCore updates the underlying window system and
16270 UpdateBounds is responsible for updating the variables associated
16271 with the Control and sending the events)
16272 - Major cleanup of Size handling; we now have two sizes, client_size
16273 and bounds. Bounds defines the window with decorations, client_size
16276 2004-08-11 12:55 pbartok
16278 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16279 - Added method to calculate difference between decorated window and
16282 2004-08-11 12:54 pbartok
16285 - Forcing redraw on resize
16287 2004-08-11 11:43 pbartok
16290 - Removed disposing of the actual images when the list is disposed
16292 2004-08-11 09:13 pbartok
16295 - Now properly reparents windows
16297 2004-08-11 08:37 pbartok
16302 2004-08-11 07:47 pbartok
16305 - Rewrote the collection stuff. Might not be as fast now, not
16306 keeping the number of children around and accessible directly, but
16307 it's more straightforward
16309 2004-08-11 07:44 pbartok
16311 * AccessibleObject.cs:
16312 - Fixed to match ControlCollection rewrite
16314 2004-08-11 07:43 pbartok
16317 - Added missing creation of the collection list
16319 2004-08-10 20:08 jackson
16321 * StatusBar.cs: Get the paint message from WndProc
16323 2004-08-10 19:31 jackson
16325 * ThemeWin32Classic.cs: Create Brushes as little as possible
16327 2004-08-10 19:20 jackson
16329 * UICues.cs: Add Flags attribute
16331 2004-08-10 19:19 jackson
16333 * StatusBarPanel.cs: Signature cleanup
16335 2004-08-10 19:10 jackson
16337 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16338 Initial implementation of status bar item drawing
16340 2004-08-10 17:27 jordi
16342 * TrackBar.cs: add missing methods, properties, and restructure to
16345 2004-08-10 16:24 jackson
16347 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16348 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16351 2004-08-10 13:21 jordi
16353 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16354 enhancements and standarize on win colors defaults
16356 2004-08-10 12:52 jackson
16358 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16359 ThemeWin32Classic.cs: Implement DrawItem functionality
16361 2004-08-10 12:47 jordi
16363 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16365 2004-08-10 12:32 jordi
16367 * Control.cs: throw ontextchange event
16369 2004-08-10 11:43 pbartok
16372 - Added more to the still unfinished Dock/Anchor layout code
16374 2004-08-10 11:39 pbartok
16376 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16377 - Added GetWindowPos method
16379 2004-08-10 11:36 pbartok
16382 - Implemented several methods
16384 2004-08-10 09:47 jackson
16386 * TrackBar.cs: Allow control to handle buffering
16388 2004-08-10 09:41 jackson
16390 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16392 2004-08-10 09:24 jackson
16394 * Label.cs, LinkLabel.cs: Let Control handle buffering.
16396 2004-08-10 09:09 jackson
16398 * StatusBar.cs: Let Control handle all the buffering.
16400 2004-08-10 09:08 jackson
16402 * Control.cs: Control will now handle the buffering code, so each
16403 control does not have to implement this.
16405 2004-08-10 08:34 jackson
16407 * XplatUIDriver.cs: Use default colors from the theme
16409 2004-08-09 17:12 pbartok
16412 - Fixed several bugs Ravindra pointed out
16414 2004-08-09 16:11 pbartok
16417 - Added incomplete dock layout code
16418 - Added support for mouse wheel
16420 2004-08-09 16:09 pbartok
16423 - Added handling for middle and right mousebutton
16424 - Added handling for mouse wheel
16425 - Added handling for key state and mouse state and position
16426 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16429 2004-08-09 15:40 jackson
16431 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16432 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16435 2004-08-09 15:37 jackson
16437 * StatusBar.cs: Initial implementation of StatusBar
16439 2004-08-09 15:36 jackson
16441 * ITheme.cs: Add support for drawing status bar and getting status
16444 2004-08-09 15:35 pbartok
16449 2004-08-09 15:34 jackson
16451 * ThemeWin32Classic.cs: Add support for drawing status bar and get
16452 status bar item sizes
16454 2004-08-09 15:21 jackson
16456 * ThemeWin32Classic.cs: Use known colors for default control
16459 2004-08-09 15:12 jackson
16461 * ThemeWin32Classic.cs: Make the default font static, it is static
16462 in control so this doesn't change functionality and creating fonts
16465 2004-08-09 14:56 pbartok
16468 - Added GrabMode enum
16470 2004-08-09 14:55 pbartok
16472 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16473 - Removed Run method, was only required for initial development
16475 2004-08-09 14:51 pbartok
16477 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16478 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
16481 2004-08-09 13:48 pbartok
16484 - Fixed default sizing for child windows
16486 2004-08-09 12:56 pbartok
16489 - Added generation of WM_DESTROY message
16490 - Added handling of window manager induced shutdown
16492 2004-08-09 11:31 jackson
16494 * ThemeWin32Classic.cs: New names for control properties
16496 2004-08-09 11:25 jackson
16498 * Control.cs: Use new color names
16500 2004-08-09 11:02 jackson
16502 * XplatUI.cs: Get default window properties from the theme
16504 2004-08-09 11:01 jackson
16506 * ITheme.cs: The theme engine now controls default window
16509 2004-08-09 11:00 jackson
16511 * ThemeWin32Classic.cs: Add default window color properties
16513 2004-08-09 10:17 jackson
16515 * ThemeWin32Classic.cs: Use correct default back color
16517 2004-08-09 10:05 jackson
16519 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
16522 2004-08-09 09:56 jackson
16524 * XplatUI.cs: Remove defaults, these are handled by the theme now.
16526 2004-08-09 09:54 jackson
16528 * Control.cs: Get default properties from the theme.
16530 2004-08-09 09:53 jackson
16532 * ITheme.cs: Themes now handle default control properties
16534 2004-08-09 09:53 jackson
16536 * ThemeWin32Classic.cs: Themes now handle default control
16537 properties so coloring will be consistent
16539 2004-08-08 16:54 jordi
16541 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
16543 2004-08-08 15:08 jordi
16545 * XplatUIX11.cs: fixes keyboard crash
16547 2004-08-08 13:47 jordi
16549 * Label.cs: add cvs header info
16551 2004-08-08 12:09 jackson
16553 * ThemeWin32Classic.cs: Add pen_buttonface
16555 2004-08-08 11:52 jordi
16557 * Label.cs, LinkLabel.cs: [no log message]
16559 2004-08-08 11:34 jordi
16561 * ThemeWin32Classic.cs: Use Windows Standard Colours
16563 2004-08-07 17:32 jordi
16565 * TrackBar.cs: throw exceptions of invalid enums values
16567 2004-08-07 17:31 jordi
16569 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
16572 2004-08-07 16:56 jackson
16574 * HorizontalAlignment.cs: Initial checkin
16576 2004-08-07 13:16 jordi
16578 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
16581 2004-08-07 13:05 jordi
16583 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
16584 GetSysColor defines
16586 2004-08-06 18:01 pbartok
16588 * ThemeWin32Classic.cs:
16589 - Fixed some rounding issues with float/int
16591 2004-08-06 18:00 jackson
16593 * DockStyle.cs, AnchorStyles.cs:
16595 Add flags and serializable attributes.
16597 2004-08-06 17:46 pbartok
16600 - Implemented GetParent
16602 2004-08-06 17:18 pbartok
16605 - Fixed some rounding issues with float/int
16607 2004-08-06 17:17 pbartok
16609 * X11Structs.cs, XplatUIX11.cs:
16610 - Fixed Refresh and Invalidate
16612 2004-08-06 15:30 pbartok
16614 * Control.cs, X11Structs.cs, XplatUIX11.cs:
16615 - Fixed recursive loop when resizing
16616 - Improved/fixed redrawing on expose messages
16618 2004-08-06 09:53 jordi
16620 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
16621 keyboard navigation
16623 2004-08-06 08:02 pbartok
16625 * X11Structs.cs, XplatUIX11.cs:
16626 - Fixed reparenting
16627 - Fixed window border creation
16629 2004-08-05 15:38 pbartok
16632 - Attempted fix for reparenting problems
16634 2004-08-04 15:14 pbartok
16637 - Fixed Invalidation bug (calculated wrong client area)
16638 - Added ClientSize setter
16640 2004-08-04 15:13 pbartok
16643 - Added AutoScale properties
16645 2004-08-04 15:13 pbartok
16648 - Added latest files
16650 2004-08-04 14:11 pbartok
16652 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16654 - Added Invalidate handling
16656 2004-08-03 17:09 jordi
16658 * XplatUIDriver.cs: fixes spelling mistake
16660 2004-07-27 09:53 jordi
16662 * TrackBar.cs: fixes trackbar events, def classname, methods
16665 2004-07-27 09:29 jordi
16667 * ScrollBar.cs: fixes scrollbar events
16669 2004-07-27 04:38 jordi
16671 * Control.cs: changes to be able to run winforms samples
16673 2004-07-26 11:42 jordi
16675 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
16676 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
16678 2004-07-26 05:41 jordi
16680 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
16681 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
16684 2004-07-22 09:22 jordi
16686 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
16687 check link overlapping, implement events, and fixes
16689 2004-07-21 10:28 jordi
16691 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
16693 2004-07-21 10:19 jordi
16695 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
16696 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
16697 LinkLabelLinkClickedEventArgs.cs,
16698 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
16699 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
16702 2004-07-19 13:09 jordi
16704 * Control.cs, Label.cs: label control re-written: added missing
16705 functionlity, events, and properties
16707 2004-07-19 10:49 jordi
16709 * Control.cs: fixes SetBounds logic
16711 2004-07-19 01:29 jordi
16713 * Control.cs: Call RefreshWindow only if the window has created
16715 2004-07-15 14:05 pbartok
16717 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
16718 - Implemented ImageList and ImageList.ImageCollection classes
16719 - Added ColorDepth enumeration
16720 - Updated SWF VS.Net project
16722 2004-07-15 11:06 jordi
16724 * XplatUIStructs.cs: added MsgButons enum
16726 2004-07-15 11:03 jordi
16728 * Control.cs: added basic mouse handeling events
16730 2004-07-15 03:38 jordi
16732 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
16733 Vertical TrackBar control implementation
16735 2004-07-13 09:33 jordi
16737 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
16739 2004-07-13 09:31 jordi
16741 * Control.cs, Form.cs: commit: new properties and fixes form size
16744 2004-07-09 14:13 miguel
16746 * ProgressBar.cs: Spelling
16748 2004-07-09 11:25 pbartok
16751 - Removed usage of Rectangle for drawing. Miguel pointed out it's
16754 2004-07-09 11:17 miguel
16756 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
16758 * ProgressBar.cs: Fixed spelling for `block'
16760 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
16763 Avoid using the += on rect.X, that exposed a bug in the compiler.
16765 2004-07-08 23:21 pbartok
16767 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
16768 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
16769 BaseCollection.cs, Binding.cs, BindingContext.cs,
16770 BindingMemberInfo.cs, BindingsCollection.cs,
16771 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
16772 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
16773 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
16774 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
16775 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
16776 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
16777 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
16778 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
16779 FrameStyle.cs, GiveFeedbackEventArgs.cs,
16780 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
16781 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
16782 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
16783 InputLanguageChangedEventArgs.cs,
16784 InputLanguageChangedEventHandler.cs,
16785 InputLanguageChangingEventArgs.cs,
16786 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
16787 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
16788 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
16789 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
16790 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
16791 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
16792 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
16793 QueryAccessibilityHelpEventArgs.cs,
16794 QueryAccessibilityHelpEventHandler.cs,
16795 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
16796 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
16797 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
16798 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
16799 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
16800 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
16801 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
16802 XplatUIX11.cs, lang.cs: