1 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * LinkLabel.cs: display the OverrideCursor when hovering the label.
6 2006-05-25 Chris Toshok <toshok@ximian.com>
8 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
11 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
13 * Application.cs: Moved setting of is_modal and closing to before
14 we create the control, to allow the event handlers called as a
15 result of creation affect closing. Also removed Gonzalo's previous
16 change to setting DialogResult, the behaviour has been moved to
19 - ShowDialog(): Removed explicit creation of the form, let RunLoop
21 - ShowDialog(): If no dialog result is set, we need to return Cancel
22 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23 the close is cancelled
25 2006-05-25 Jackson Harper <jackson@ximian.com>
27 * StatusBar.cs: We only need to update the sizes of the other
28 panels when we have auto size contents. Also we are only updating
29 the contents of the panel, not the borders, so compensate for the
30 border width (TODO: get this width from the theme somehow).
31 * TreeView.cs: Scrollable is true by default
32 - Use invalidate instead of refresh where needed
33 - Factor the scrollable value into scrollbar updating
34 - Update the scrollbars if the Scrollable property is altered
35 - Update the selected node if its ImageIndex is changed
36 - Handle null nodes in UpdateNode (mainly so we don't have to
37 check if selected is null when updating it
38 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
39 are factored into the visible count
40 - Use VisibleCount for clarity in the code
41 - When the font is changed we need to recurse through all the
42 nodes and invalidate their sizes
44 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
46 * Application.cs: set the DialogResult to fixed when the main form is
47 hidden or destroyed while being modal.
49 2006-05-25 Miguel de Icaza <miguel@novell.com>
51 * Theme.cs: Use Tangoified messagebox icons.
53 (GetSizedResourceImage): Also cope with width = 0 and do not
54 trigger a warning in that case (0 means "give me your icon from
55 the resouce, no special size needed).
57 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
59 * Application.cs: Leave runloop if the the main modal form is
62 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
64 * BindingContext.cs : reject null datasource in Contains() and
66 * CurrencyManager.cs : check data_member validity when data_source
67 is dataset. When it is late binding, the initial position is -1.
69 2006-05-24 Jackson Harper <jackson@ximian.com>
71 * TreeNodeCollection.cs: Dont't recalculate the visible order on
72 inserted nodes that aren't visible. This changes the
73 max_visible_order which confuses scrollbar settings.
74 - Use the enumerator to get the prev node instead of duplicating
76 * TreeView.cs: Use new method for setting scrollbar values
77 - Don't set the bounds every time the scrollbar is updated
78 - When updating below the root node use an invalidate instead of a
79 refresh to prevent the child controls (scrollbars) from being
80 refreshed. (UpdateBelow still needs to be reworked anyways).
81 - Reenable SetBottom now that visible orders are set correctly,
82 added some debug code incase we ever get bad values there again.
83 - Set the scrollbar max to 2 less then the max value, this
84 compensates for the max value being one above the node count, and
85 for scrollbars adding one extra "notch".
86 - When drawing image nodes if there is an imagelist we draw the
87 first image in the list if the supplied image index is out of the
90 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
92 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
93 we receive a size change from the WM (Fixes #78503)
95 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
97 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
98 rectangle (Fixes #78501)
100 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
103 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
105 - Fixed MouseMove to no longer switch pressed state unless the left
106 mouse button is pressed. Atsushi provided the original patch (#78485)
108 2006-05-24 Jackson Harper <jackson@ximian.com>
110 * ScrollBar.cs: New internal methods that allow us to change a
111 couple values on the scrollbar (the most common case is maximum
112 and large change) without getting multiple invalidates.
114 2006-05-24 Chris Toshok <toshok@ximian.com>
116 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
117 (Edit): save off the original state in oldState, and set
118 grid.is_editing to true.
119 (OnKeyDown): abort editing if escape is pressed. also, call
120 NextState if space is pressed.
121 (OnMouseDown): call NextState.
122 (NextState): factor out shared code from OnKeyDown and OnMouseDown
123 here. Also, only invalidate the row header once (on the initial
124 is_changing switch) to save on redraws.
126 2006-05-24 Chris Toshok <toshok@ximian.com>
128 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
129 if the value in the cell is different than it was before. This
130 keeps us from triggering a layout when we move around a datarid
131 with a highlighted cell.
132 (Edit): suspend layout when creating/positining the text box, and
133 resume passing false so we don't ever actually re-layout.
134 (ReleaseHostedControl): same.
135 (EnsureTextBox): reformat slightly, and set WordWrap to false.
137 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
138 control-key sequences should go to the datagrid - remove that
139 lock. Also, modify the conditions under which we move between
140 cells when moving the cursor within a cell, and remove the "this"
141 and "base" from field accesses. We weren't even consistent, given
142 they all were in the base class.
144 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
146 * Binding.cs : (.ctor)
147 An obvious NRE fix for BindingTest.CtorNullTest().
149 2006-05-23 Chris Toshok <toshok@ximian.com>
151 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
152 them between lines. This fixes some quirks editing cells in the
155 2006-05-23 Jackson Harper <jackson@ximian.com>
157 * TreeView.cs: Use begin/end update when doing expand/collapse all
158 so that we don't get flicker on the scrollbar.
160 2006-05-23 Jackson Harper <jackson@ximian.com>
162 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
163 treenode calculations to be independant of the painting code. To
164 do this nodes track a visible order which is calculated by the
166 - Call new methods for expanding/collapsing nodes. These methods
167 use scrollwindow so we don't have to update everything below the
169 * TreeView.cs: Refactored drawing and scrolling code. We don't
170 need to update nodes when drawing anymore or calculate scrollbar
172 - Added new methods for expanding/collapsing nodes. These methods
173 use ScrollWindow so as to not have to redraw all the nodes below.
174 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
175 we add/remove nodes or sort.
176 - Handle removing the selected and the top node properly.
178 2006-05-23 Chris Toshok <toshok@ximian.com>
180 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
181 maybe this should actually happen in the datagrid code?
182 (EndEdit): no need to invalidate anything, given that
183 ReleaseHostedControl causes the datagrid to relayout, which
184 invalidates everything anyway.
186 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
188 (set_SelectionBackColor): call InvalidateSelection instead of
190 (set_SelectionForeColor): same.
191 (BeginEdit): Flesh this out a bit.
192 (CancelEditing): only do any of this if we're editing/adding.
194 (OnMouseDown): there's no need to cancel editing here, it's done
196 (SetCurrentCell): only invalidate the current row header if it's a
197 different row than the new one.
198 (ShiftSelection): fix this to work like MS does.
199 (ResetSelection): factor out the invalidation of selected_rows to
201 (SetDataSource): cancel any editing that's going on.
203 * DataGridColumnStyle.cs
204 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
205 call the non-interface version.
207 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
208 header rectangle with the clip rectangle so we don't redraw the
209 entire header for just a small area. Gets rid of the last flicker
210 when horizontally scrolling.
211 (DataGridPaintRow): same.
213 2006-05-23 Mike Kestner <mkestner@novell.com>
215 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
216 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
217 poorly placed checkbox on the MS control. Fixes Alex's unfiled
220 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
222 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
223 and this fixes #78493
225 2006-05-23 Miguel de Icaza <miguel@novell.com>
227 * Theme.cs (GetSizedResourceImage): Scale images if the proper
230 * FileDialog.cs: Do not change the background for the side bar as
231 it wont work nicely with the theme, and also reduces the artifacts
232 in rendering the icons (which I want to fix too).
234 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
235 resources, not resgen resources.
237 (PlatformDefaultHandler): Pull images using the new API.
239 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
241 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
242 a reference to the hwnd and will not remove it unless there are
243 no pending exposures (fixes #78341)
244 * XplatUI.cs: Improved debug
246 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
248 * MenuAPI.cs : don't handle OnClick event when it was not the left
249 button. Fixed bug #78487.
251 2006-05-23 Mike Kestner <mkestner@novell.com>
253 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
254 prefer submenus to the top menu for item lookup, to avoid popping down
257 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
259 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
260 Graphics.FillRectangle as the visual results are really bad (even
261 on win). We now draw perfect arrows (and perfect shadows when the
262 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
263 Pen.DashPattern to draw the dots of each line.
265 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
267 * FileDialog.cs: Update the filename combobox when navigating through
268 the ListView with the cursor keys. Fixes part 7 of bug #78446.
270 2006-05-22 Mike Kestner <mkestner@novell.com>
272 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
275 2006-05-22 Mike Kestner <mkestner@novell.com>
277 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
278 requests. Fix a misspelled parameter and a copy paste exception error
281 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
283 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
284 to get the same width/height (5/13) on X11 as the default font has on
285 win32. This means that our DefaultFont emSize is smaller than the
286 the MS SWF equivalent (even thought the width/height stays the same)
288 2006-05-20 Jackson Harper <jackson@ximian.com>
291 * MdiWindowManager.cs:
292 * InternalWindowManager.cs: Make sure to use the border width from
295 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
297 * PrintDialog.cs: Implements printer details
299 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
301 * FileDialog.cs: Added focus handling for PopupButtonPanel.
302 Fixes part 1 and 2 of bug #78446
304 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
306 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
307 instead of sticking to the first ever calculated value
309 2006-05-19 Mike Kestner <mkestner@novell.com>
311 * ComboBox.cs: fix mouse motion selection to use MousePosition and
312 PointToClient, since Capture is set. Fixes #78344.
314 2006-05-19 Mike Kestner <mkestner@novell.com>
316 * ListView.cs: match MS behavior in Details view where items are not
317 drawn if Columns.Count == 0.
318 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
319 Use a separate pen to draw the check, since changing the width affects
320 the box as well. Fixes #78454.
322 2006-05-18 Miguel de Icaza <miguel@novell.com>
324 * ListView.cs: ArgumentOutOfRangeException, single versions of the
325 exception should throw the name of the invalid argument.
327 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
328 there are no files listed.
330 2006-05-18 Jackson Harper <jackson@ximian.com>
332 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
335 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
337 * Control.cs: Brought back our old UpdateZOrder method as a private
338 function and switched our calls from UpdateZOrder to the new one.
339 This fixes the Paint.Net canvas disappearing bug.
341 2006-05-18 Jackson Harper <jackson@ximian.com>
344 * ThemeWin32Classic.cs:
345 * InternalWindowManager.cs: Move the drawing into the theme,
346 expose everything the theme should need from the window manager.
348 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
350 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
351 from the call to NativeWindow to avoid walking up the parent chain
352 further than needed (speeds up setting cursors and avoids setting
353 the wrong cursor if a parent has another cursor defined)
354 * Cursor.cs: When loading an icon as cursor, MS uses the center of
355 the icon as hotspot, not what's contained as hotspot in the icon
356 file. This fixes the perceived drawing offset seen with Paint.Net
358 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
361 - Store the calculated rectangle in Hwnd object and use it when
362 setting the client size
363 - Force Toolwindows to always be type Dock, to ensure they're on top
365 2006-05-18 Mike Kestner <mkestner@novell.com>
367 * ComboBox.cs: first pass at ComboBox rework. Layout is more
368 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
369 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
370 Substantial refactoring to remove confusing nested classes. Coding
371 standard and Get+Set->property refactorings. Shift to index based
372 highlighting in ComboListBox instead of constantly using IndexOf and
373 Items[]. Add invalidations on resize for DropDownList to fix ugliness
374 in FileDialog growth. Draw borders manually since Simple mode needs
375 to look like two independent controls. Make listbox border
376 conditional to DropDownStyle. Improved OwnerDraw support.
378 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
380 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
381 Don't set the disposed graphics to null, so we can throw the "right"
382 exception if the graphics is reused later (added a flag to avoid
383 double disposing). Some behaviours are different under 2.0 and are
384 filled under bug #78448.
386 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
388 * Control.cs: When double-buffering is enabled, we need to reset
389 our graphics context between paint calls. Otherwise, any
390 transformations and other alterations on the context will
391 become cumulative (#77734)
393 2006-05-18 Mike Kestner <mkestner@novell.com>
395 * ListView.cs: do focused item selection like MS on clicks.
396 Rework focus handling for ItemControl so LostFocus invalidates as
398 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
399 the ListView ItemControl has focus.
401 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
403 * XplatUIX11.cs: If client_window ends up being width or height zero
404 due to border settings, move it off window inside whole_window (#78433)
406 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
408 * Mime.cs: Shrink the mime file cache correctly.
410 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
412 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
414 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
416 * XplatUIX11.cs (AddExpose): More sanity checks
418 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
421 - AddExpose: Don't add expose ranges outside the size of our
423 - Cast opacity values to Int32 to avoid crashes with certain
425 - Added disabled code paths that protect against illegal cross-
426 thread painting (Developers.exe)
428 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
430 * ProgressBar.cs: Invalidate the control when it's resized
431 since block size is based on control size. (#78388)
433 2006-05-16 Miguel de Icaza <miguel@novell.com>
435 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
436 of setting the incoming argument to the "reset" value, we set the
437 this.datamember to string.empty (before we were invalidating the
442 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
444 * Form.cs: Only apply transparency settings after the form
445 is created. (Fixes #77800)
447 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
449 * ApplicationContext.cs: Grab the HandleDestroyed event so
450 we know when to fire OnMainFormClosed
452 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
454 * Application.cs: Introduced sub-class to allow tracking of
455 threads and centralized triggering of the event mess for
456 ThreadExit, AppExit, etc.. (#76156)
458 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
461 - Do not return a null icon index value for a mime subclass.
462 Instead try the main mime type class too.
463 - Seems that some newer distributions don't have a link to some
464 gnome default icons anymore. So check the default gnome dir too.
467 2006-05-16 Jackson Harper <jackson@ximian.com>
469 * MdiClient.cs: Don't paint the parent background image if we have
470 our own background image.
472 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
475 - PerformLayout: Do not shrink space filled by DockStyle.Fill
476 controls, all filled controls are supposed to overlap (#78080)
477 - UpdateZOrder is supposed to update the control's z-order in the
478 parent's z-order chain. Fixed to behave like that
479 - BringToFront: Removed obsolete code
480 - SendToBack: Simplyfied
481 - SetChildIndex: Trigger layout calculations when Z-order changes
482 since layout is done by z-order
484 2006-05-16 Chris Toshok <toshok@ximian.com>
487 * DataGrid.cs (set_AlternatingBackColor): use
488 grid_drawing.InvalidateCells instead of Refresh().
489 (set_BackColor): call grid_drawing.InvalidateCells.
490 (set_BackgroundColor): use Invalidate instead of Refresh.
492 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
493 invalidate the cell area.
495 2006-05-15 Chris Toshok <toshok@ximian.com>
498 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
499 on to DataGridPaintRow.
500 (DataGridPaintRow): take a clip argument, and only draw the cells
501 which intersect it. same with the not_usedarea.
503 * Theme.cs (DataGridPaintRow) add @clip parameter.
505 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
506 XplatUI.ScrollWindow.
509 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
510 with last column which was causing a gray swath to appear with the
511 XplatUI.ScrollWindow code.
513 2006-05-15 Chris Toshok <toshok@ximian.com>
515 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
516 use XplatUI.ScrollWindow.
517 (VerticalScrollEvent): use XplatUI.ScrollWindow.
519 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
521 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
523 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
525 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
526 file since there are no equivalent X11 cursors
528 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
530 * MonthCalendar.cs : DateTimePicker should reflect selected date
531 on mouse*up*, not mouse*down*. Fixed originally reported part of
534 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
536 * TabControl.cs : When argument index is equal or more than tab
537 count, just ignore. Fixed bug #78395.
539 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
541 * Control.cs: Dispose all child controls when control is diposed (#78394)
543 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
545 * ColorDialog.cs: Finally it is possible to select the color with
548 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
550 * PrintDialog.cs: Fix typo
552 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
554 * PrintDialog.cs: PrintDialog is not resizable
555 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
556 color. Made some ToolBar drawing methods protected virtual.
558 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
560 * PrintDialog.cs: Implementation of the PrintDialog
562 2006-05-12 Chris Toshok <toshok@ximian.com>
564 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
565 thumb, instead use MoveThumb. This has the side effect of making
566 most of the other thumb moving machinery use MoveThumb as well.
567 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
568 need to actually invalidate the rectangle where the new thumb will
570 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
571 We force an Update() after, so it's not as fast as it could be,
572 but at least there's zero flicker and no droppings.
573 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
574 (UpdateThumbPos): add another argument (dirty), which says whether
575 or not to calculate/add dirty regions which we later invalidate.
576 For cases where we know we're going to use MoveThumb, we pass
577 false for this. Otherwise, pass true.
579 2006-05-12 Jackson Harper <jackson@ximian.com>
581 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
584 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
586 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
587 and GetClipRegion methods and UserClipWontExposeParent property.
588 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
589 overriding UserClipWontExposeParent property, setting to false, since
590 Win32 handles the required expose messages to draw our clipped parent
592 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
593 PaintEventStart to set the user clip region if set.
595 - Now internally tracking the Region for the control since we need to
596 store it if the handle is not yet created and only set it when it
597 becomes created. Before setting the region forced handle creation
598 - Added code to draw the parents underneath a user-clipped region
599 * Hwnd.cs: Added UserClip property
601 2006-05-12 Chris Toshok <toshok@ximian.com>
603 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
606 (set_SmallChange): same.
607 (OnMouseUpSB): remove the call to refresh when releasing the
608 thumb. We shouldn't need it.
610 2006-05-12 Miguel de Icaza <miguel@novell.com>
612 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
613 AutoSize set to None, we do not need to relayout everything, we
614 just need to invalidate the current region.
616 (Draw): Do not draw the entire ClientArea, just redraw the
617 clip area being passed.
619 * MdiClient.cs: Make MdiClient constructor with the Form argument
622 2006-05-12 Jackson Harper <jackson@ximian.com>
624 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
625 parents background image, but strangely not their own.
626 - (DrawStatusBarPanel): Take into account horizontal alignment
627 when drawing the strings and icons.
629 2006-05-12 Mike Kestner <mkestner@novell.com>
631 * ListBox.cs: avoid invalidations for focus when the collection is
634 2006-05-12 Chris Toshok <toshok@ximian.com>
636 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
637 invalidate the entire thumb area. Call InvalidateDirty which
638 limits the redraw to the thumb itself and surrounding pixels.
640 * XplatUIX11.cs (ScrollWindow): optimize copying.
642 2006-05-12 Chris Toshok <toshok@ximian.com>
644 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
645 Figure out the positioning/layout in a single pass instead of
646 multiple recursive invocations. Speeds up the initial display of
647 the data grid. Also, make many things private that were
648 originally public but unused outside this class.
650 2006-05-11 Jackson Harper <jackson@ximian.com>
652 * MdiClient.cs: Improved layout code.
654 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
656 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
659 2006-05-11 Chris Toshok <toshok@ximian.com>
661 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
662 union of that will always be {0,0,width,height}.
664 2006-05-11 Jackson Harper <jackson@ximian.com>
666 * Form.cs: Match MS's DefaultSize for forms (they must have
667 changed the size in sp2).
669 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
671 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
673 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
675 * TextControl.cs : Fixed bug #78109. This incorrect position
676 comparison caused crash on automatic line split.
677 * TextBoxBase.cs : reduce duplicate code.
679 2006-05-10 Jackson Harper <jackson@ximian.com>
681 * MdiClient.cs: Active form is only sent to the back when using
682 the Next form functionality, when a form is clicked the current
683 active shouldn't be sent to the back.
684 - Layout the mdi windows when the container is first made visible.
685 * Form.cs: Give the MdiClient a ref to the containing form when we
688 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
690 * LinkLabel.cs : link_font could be uninitialized, so populate one
691 before actual use. Fixed bug #78340.
693 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
695 * XplatUIX11.cs : clipboard format native value is IntPtr.
698 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
701 - Instead of showing context menus directly we send WM_CONTEXTMENU,
702 which is passed up the parent chain by DefWndProc
703 - We now handle WM_CONTEXTMENU to display any menu, or pass it
704 to DefWndProc (#77956)
705 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
707 2006-05-10 Jackson Harper <jackson@ximian.com>
709 * MdiClient.cs: We need to remove the controls from the mdi
710 collection, when we close the window.
711 * MdiWindowManager.cs: Special handling of closing mdi windows.
712 * InternalWindowManager.cs: Make the close method virtual so the
713 mdi window manager can handle it specially.
715 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
718 - Recalculate grid when the data source has changed
719 - Matches styles provided by user from all data sources types
720 * DataGridTableStyle.cs: For columns that provided by the user set the
721 with the preferred value is there was unassigned.
722 * CurrencyManager.cs: throw OnItemChanged event
724 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
726 * PictureBox.cs: Don't animate until handle is created. Start animation
727 when handle is created.
729 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
731 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
733 * XEventQueue.cs: We don't need to provide the extra info
735 2006-05-10 Jackson Harper <jackson@ximian.com>
737 * MdiClient.cs: If the mdi clients parent form has a background
738 image set, we draw that background image for the mdi area's
741 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
743 * TextBoxBase.cs: Set IBeam cursor (#78347)
745 2006-05-10 Mike Kestner <mkestner@novell.com>
747 * ToolBar.cs: fix some text padding issues with ButtonSize
748 calculation. Update the default size to match MS documentation.
749 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
750 button size. Fixes #78296.
752 2006-05-10 Mike Kestner <mkestner@novell.com>
754 * ListBox.cs: use is_visible for scrollbar positioning in case the
755 control isn't on screen yet. Fix off by one with Right vs Width
756 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
758 2006-05-10 Jackson Harper <jackson@ximian.com>
760 * X11Dnd.cs: Drop to a control with another control on top of it.
761 * ToolBar.cs: Work on a copy of the buttons list, so that it can
762 be modified in click handlers. TODO: Look for similar problems in
765 2006-05-09 Jackson Harper <jackson@ximian.com>
767 * Form.cs: Window managers need the old window state when setting
769 * InternalWindowManager.cs: Allow the base mdi window manager to
770 handle more of the MDI only stuff (like maximize buttons).
771 * MdiWindowManager.cs: Fix some snafus in changing the window
772 state. Add all the menu functionality, for both popup and
774 * MdiClient.cs: When a new form is selected the currently
775 activated form is sent to the back, this matches MS.
776 - Implement a new method to activate the next mdi child window.
778 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
781 - Added new InternalCapture method to allow controls to prevent
782 the capture behaviour on the click handlers
783 - Switched to use InternalCapture
785 - Using InternalCapture to prevent mouse captures from being released
786 on mouse button release (Fixes #78100)
787 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
788 returns Form borders if a caption is present. (Fixes #78310)
790 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
792 * TreeNode.cs: Changed serialization .ctor to not require every field
793 to be present. (#78265)
794 * OwnerDrawPropertyBag.cs: Added serialization .ctor
796 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
798 * MimeIcon.cs: for is faster than foreach for strings.
800 2006-05-05 Mike Kestner <mkestner@novell.com>
802 * CheckedListBox.cs: update check handling code to not use selected.
803 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
804 behavior for visual feedback, motion response, shift/ctrl handling,
805 and properly deal with all 4 selection modes. Updates to bounds
806 handling logic. Add scroll wheel support. [Fixes #77842]
808 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
811 - Moved adding of Implicit controls into .ctor. That way, subsequent
812 creation of the controls will not cause them to think they are
813 toplevel windows (fixes #78200 header problem)
814 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
815 - Switched visibility setting of header control to use internal field
816 to avoid triggering handle creation
817 - Now checking if handle is created before causing a refresh when items
818 are added (This makes us now match handle creation time with MS)
819 * Splitter.cs: Removed loading of private splitter cursor, switched to
820 Cursors version now that that is loading the right ones
821 * Cursors.cs: Load proper splitter cursors from resources
822 * Cursor.cs: Added second method of loading resource cursors for the
823 VS.Net users amongst us
825 2006-05-05 Mike Kestner <mkestner@novell.com>
827 * ListView.cs: give header_control a minimum size based on the
830 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
832 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
833 window seems to do that with metacity, so set that type. (#78120)
835 2006-05-05 Mike Kestner <mkestner@novell.com>
837 * ListViewItem.cs: fix Details mode checkbox layout bug.
838 * ThemeWin32Classic.cs: draw a ListView column header for unused space
839 at the end of the header, if it exists. [Fixes for #78200]
841 2006-05-04 Jackson Harper <jackson@ximian.com>
843 * MdiClient.cs: Add a helper property to get the container form.
844 * MdiWindowManager.cs: We have to make sure to use the menu origin
845 when drawing the icons and buttons, this fixes maximized window
846 icons/buttons on win32.
847 * InternalWindowManager.cs: Reset the restore captions when a
848 window goes from Maximized to Minimized and vice versa. Move the
849 DrawMaximizedButtons into the MdiWindowManager source, tool
850 windows can't be maximized. NOTE: This could use a little
851 refactoring if time ever permits.
853 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
855 * TextBox.cs: Add MWFCategoryAttributes
856 * TextBoxBase.cs: Add MWFCategoryAttributes
857 * Form.cs: Add MWFCategoryAttributes
859 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
861 * Control.cs: Add MWFCategoryAttributes
862 * ScrollableControl.cs: Add MWFCategoryAttributes
864 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
866 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
867 Divider is true. Fix a little glitch in PropertyToolBar
870 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
873 - Dispose: Call base.Dispose, this causes the disposed event
874 to be fired (and probably other, more important stuff)
875 - SetVisibleCore: Set is_visible to true after creating the
876 window so that the window still gets created invisible (if
877 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
878 to generate a WM_ACTIVE message
879 * Form.cs: Call Dispose when we want to destroy the window, instead of
880 just destroying the handle (Dispose will do that for us)
882 - RootWindow also needs a queue, so we can properly process the
883 property change events from RootWindow (like Activate)
884 - Generatic synthetic WM_ACTIVE message when the active window is
887 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
889 * LinkLabel.cs: Trigger a recalc of our label dimensions when
892 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
894 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
895 for determining width and height (image might not be assigned if
896 we're drawing an imagelist)
898 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
900 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
901 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
903 * Theme.cs: No longer returns hardcoded menu height, instead calls
905 * Form.cs (OnLoad): Scaling happens before triggering Load events
908 2006-05-01 Mike Kestner <mkestner@novell.com>
910 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
912 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
914 * TextBoxBase.cs: Removed Fixme
915 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
917 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
920 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
921 the rectangle relative to the parent, considering borders. We
922 don't really want that.
923 - ScrollWindow: Fixed warning to be more understandable
924 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
925 scrollbars and scroll only the visible area
926 * RichTextBox.cs: Removed debug output
928 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
930 * NumericUpDown.cs (Text): Just use base
931 * UpDownBase.cs: Ensure txtView is created before using it
933 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
935 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
936 casting to IntPtr to avoid 64bit overflow errors
938 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
941 - AllowDrop: Don't force handle creation.
942 - CreateHandle: Added call to tell driver if we're allowed to drop
944 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
946 * FileDialog.cs: Remember the last directory not only for the
947 current instance but also for new FileDialog instances.
949 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
951 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
952 broke sending async messages
954 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
957 - ScrollWindow: Fixed method. We finally generate expose events again
958 for scrolled areas. This was causing 'garbage' when scrolling
959 textbox and other controls that used ScrollWindow
960 - Switched from using the regular queue for paint events to the MS
961 model of 'generating' paint events when the queue is empty.
962 We use the new XQueueEvent.Paint subclass to store which windows
964 - AddExpose now takes the x/y/width/height of the exposed area
965 and inserts the window into the paint queue if not already there
966 - InvalidateWholeWindow: Switched to use new AddExpose method
967 - UpdateMessageQueue: Added which queue to monitor for paint events
968 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
969 the unlikely case nothing above handles it. We reset the expose
970 pending states to get them off the queue.
971 - GetMessage: Now pulls a paint event if no other events are in the
973 - Invalidate: Switched to new AddExpose method
974 - PeekMessage: Updated to understand pending paint events
975 - UpdateWindow: Fixed logic bug. We were only updating if the window
976 didn't need updating. Also switched to sending WM_PAINT directly,
978 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
979 and random access Remove(). The random access is needed to handle
980 UpdateWindow() where a WM_PAINT is sent directly without accessing
982 * ScrollBar.cs: Added Update() calls to cause immediate updates to
983 allow for better feedback when scrolling. Scrollbars are small and
984 the immediate update should make it 'feel' more responsive without
985 slowing things down. ScrollBar still needs it's invaliate logic
986 updated to not always invalidate the whole bar on certain changes.
988 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
991 (BackColor): if the control does not support a transparent background,
992 return the default backcolor when the parent backcolor is transparent.
994 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
996 * Application.cs: Updated to new StartLoop/GetMessage API
997 * RichTextBox.cs: Provide some output on RTF parsing errors
998 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
999 new queue_id argument to GetMessage and PeekMessage to allow faster
1000 handling of per-thread queues in drivers.
1001 * Hwnd.cs: Added Queue tracking and property
1002 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1003 * XEventQueue.cs: Added thread trackingA
1004 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1006 - Implemented new per-thread queue
1007 - GetMessage: Fixed return/break behaviour on several cases. We were
1008 returning stale messages in some cases, instead of just processing
1011 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
1013 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1015 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
1017 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1018 fixed off-by-one comparisons between Width/Height and Right/Bottom.
1020 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
1022 * PropertyGridView.cs: Fix drop down width.
1024 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
1026 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1027 a mess in DrawToolBar, so I removed one of them.
1029 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
1031 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1032 needed (clip). Otherwise we get artifacts.
1034 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
1036 * FixedSizeTextBox.cs: Added constructor to allow specifying which
1038 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1039 and switched FixedSizeTextBox to only be fixed vertical (#78116)
1040 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1041 if it matches the scale base font (avoids unneeded scaling)
1043 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
1045 * X11DesktopColors.cs: One gtk_init_check should be enough
1047 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
1049 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1052 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
1055 - Generate OnTextChanged for Backspace even if we're only deleting
1056 the current selection
1057 - When setting the Text property, only select all text if the
1058 control does not have focus when it is being set. Otherwise
1059 just place the cursor at the beginning of the control
1061 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
1063 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1064 Added a little helper to draw PropertyGrid ToolBar with a different
1065 border and a different BackColor.
1066 * PropertyGrid.cs: Some background parts didn't get painted with the
1067 correct background color. Added a class that helps us to draw the
1068 correct border for PropertyGridView and a class that helps us to
1069 draw ToolBars with a different backcolor
1070 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1072 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
1074 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1075 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1077 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
1079 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1080 into the palette entries. Also, since we're working on a copy
1081 we needed to copy the palette back onto the bitmap.
1082 * Cursor.cs: Same fix as XplatUIWin32.cs.
1084 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
1086 * ImageListStreamer.cs: Need to read the var (or we're off)
1088 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
1090 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
1091 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1092 TextBoxBase.cs: Unused var fixes
1093 * AxHost.cs: Small 2.0 fix
1094 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
1095 as it seems that is what at least Metacity expects. This will make
1096 icons show up on 64bit platforms. We still have some 64bit size
1097 issues, though, since the startup app window size still won't match.
1099 2006-04-25 Mike Kestner <mkestner@novell.com>
1101 * *.cs: cleanup newly reported exception var unused warnings.
1103 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
1105 * ThemeWin32Classic.cs: Button image alignment now matches exactly
1108 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
1110 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1111 image. The image position is always the same, no matter if the
1112 button is pressed or not.
1114 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
1116 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1117 selection and set the correct filename for SaveFileDialog.
1118 Patch by Emery Conrad.
1120 2006-04-24 Mike Kestner <mkestner@novell.com>
1122 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1123 check for item.X outside the ClientRect instead of item.Y. Fixes
1126 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1128 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1129 trust that value blindly and do some sanity check. Fixes bug #77814.
1131 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1133 * ImageListStreamer.cs: save the mask as a 1bpp image.
1135 2006-04-21 Mike Kestner <mkestner@novell.com>
1137 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1138 pass Checked and Indeterminate to the Theme Engine. Improve
1139 encapsulation with ListBox.
1140 * ListBox.cs: Keep a StringFormat instead of calculating it every item
1141 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1142 nested types. Move all CheckState functionality to CheckedListBox.
1143 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
1144 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
1145 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1146 single base list. Fix scrollbar sizing and placement to mirror MS.
1147 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1149 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1150 for CheckedListBox by using new DrawItemState info. Center the
1151 checkboxes on the items. Use new StringFormat property.
1153 2006-04-18 Jackson Harper <jackson@ximian.com>
1155 * Form.cs: MdiChildren don't do default locations the same way as
1156 regular forms. This prevents a crash when trying to position the
1159 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
1161 * PropertyGridTextBox.cs: Formatting, copyright
1162 * PropertiesTab.cs: Formatting
1163 * PropertyGrid.cs: Formatting
1164 * PropertyGridView.cs: Formatting, fix drop down, enabled double
1165 click toggling of values
1167 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
1169 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1170 * Control.cs (.ctor): verify_thread_handle is static, don't reset
1171 every time a control is created
1172 * Application.cs: Removed obsolete EnableRTLMirroring method
1174 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
1176 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1177 SelectedIndex to -1. Fixes bug #78121.
1179 2006-04-17 Jackson Harper <jackson@ximian.com>
1181 * Binding.cs: Handle null values for Current and BindingContext.
1182 This occurs when binding is a little delayed.
1183 * CurrencyManager.cs: return null for Current when there are no
1185 - Hookup to the listchanged event on the DataView and update
1186 bindings when the list is changed. This fixes late binding of
1189 2006-04-17 Jackson Harper <jackson@ximian.com>
1192 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1195 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
1197 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1199 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1200 with the correct ButtonState
1202 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
1204 * XplatUIX11.cs: Improved distinguishing between window types to
1205 tell the WM a type closer to what the app wants (Fixes #78107)
1207 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
1209 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1212 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
1214 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1215 drawing code to reflect the size grip changes
1217 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1219 * ImageListStreamer.cs: fix handling of the mask that follows the main
1220 bitmap when deserializing and serialize it properly. The generated mask
1221 should better be a 1bpp image, but I'll do that later.
1223 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
1225 * FileDialog.cs: Show something in the DirComboBox on *nix if the
1226 path doesn't fit into some of our Current.Places
1228 2006-04-13 Jackson Harper <jackson@ximian.com>
1230 * ComboBox.cs: Use borders instead of drawing our own decorations,
1231 try to obey correct rules for heights.
1234 * ThemeClearLooks.cs:
1235 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1236 this is now handled by borders.
1237 - Remove unused DrawListBoxDecorationSize method.
1239 2006-04-13 Mike Kestner <mkestner@novell.com>
1241 * MenuAPI.cs: null guarding for the disbled click check fixes crash
1244 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
1246 * ThemeWin32Classic.cs:
1247 - Fixed CPDrawStringDisabled
1248 - Corrected drawing of disabled menu items
1249 - Fixed drawing of disabled radio buttons (bug #78095)
1250 - Draw check in a disabled CheckBox with color ControlDark
1252 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1254 * Form.cs: Use the provided width when calculating the menu size;
1255 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1256 and ClientSize.Width won't be updated yet
1257 * Application.cs: Use Visible instead of Show() to make form visible,
1258 this way we create the handle later and menusize is considered
1260 2006-04-12 Mike Kestner <mkestner@novell.com>
1262 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1265 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1267 * TextBox.cs: Implemented context menu
1269 2006-04-12 Mike Kestner <mkestner@novell.com>
1271 * ListView.cs: implement box selection. fixes #77838.
1272 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1274 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1276 * XplatUIX11.cs: Added setting of window type when transient window
1277 is created (metacity would move it otherwise)
1278 * X11Structs.cs: Added WINDOW_TYPE atoms
1279 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1280 background (the control is Opaque but still wants transparent
1283 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1285 * Control.cs: Added OnPaintBackgroundInternal to allow controls
1286 that set Opaque but don't mean it (like all ButtonBase-derived
1287 controls) to still draw their background
1288 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1291 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1293 * Control.cs (PaintControlBackground): Set the graphics object
1294 on our PaintEvent to null to prevent it from being disposed
1295 when the PaintEvent gets disposed
1297 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
1299 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1300 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1302 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
1305 - Added transparency check to BackColor property. Transparent
1306 backgrounds are only allowed if the control styles permit it
1307 - Added recursive painting of parent control background and
1308 foreground if a control with a transparent backcolor is drawn
1309 (Thanks to Tim Ringenback for providing his 'hack' as a base
1310 for this patch) Fixes #77985 and #78026.
1311 - Added Opaque style check before calling OnPaintBackground, no
1312 need to draw the background if the control is opaque
1313 - Removed ControlAccessibleObject owner variable (inherited from
1314 base, no need to define again)
1315 - Added some documentation links explaining the drawing events
1318 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1320 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1321 that the affected control is the located at the left border of our
1322 parent (Fixes #77936)
1324 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1326 * TextBoxBase.cs: When rendering disabled or readonly controls,
1327 draw the background with 'Control' instead of 'Window' color as
1328 long as the user hasn't specifically set a color
1330 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1332 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1333 since that won't be updated if the user types text (only if it's
1334 programatically set)
1336 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1338 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1339 layout changes do to app-triggered resizes will have the proper
1340 display rectangle for layout
1342 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
1344 * ThemeWin32Classic.cs:
1345 - Make use of the SystemBrushes and SystemPens wherever possible
1346 - Corrected some highlight colors
1347 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1349 * Theme.cs: Added Empty field to CPColor struct
1351 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1353 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1354 is displayed when calculating the display rectangle. Thanks to Mike
1355 for teaching me the err of my ways.
1357 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
1359 * ScrollableControl.cs:
1360 - Rewrote DisplayRectangle code, now returning the proper x/y coords
1361 (instead of 0,0) and we now return the real width/height instead of
1362 just the clientrectangle, adjusted for padding. The rectangle is
1363 now cached and created by the new CalculateDisplayRectangle method.
1364 - Created new CalculateDisplayRectange method, which basically does
1365 what get_DisplayRectangle() did originally, but now using the
1366 right edge instead of DisplayRectangle to determine the size of
1368 - get_Canvas(): Fixed it to properly calculate canvas for
1369 right/bottom controls which seem to be placed to the right/bottom
1370 of any controls that have a fixed location
1371 - Removed TODO that's taken care of
1372 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1373 and SetDisplayRectLocation according to new MSDN2 docs
1374 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1375 event when that is called, this is added for compatibility
1376 - ScrollControlIntoView(): Implemented.
1377 - Switched scrollbars to be implicit, they shouldn't be selectable
1378 * ContainerControl: Now that ScrollControlIntoView is implemented, we
1379 call it when the active control is set/changed
1380 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1381 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1382 implicit_control variable (used for native Win32 message generation)
1383 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
1384 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1385 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1386 * XplatUIStructs.cs: Added ScrollBarCommands enum
1388 2006-04-10 Jackson Harper <jackson@ximian.com>
1391 * CheckedListBox.cs:
1398 * PrintPreviewControl.cs:
1404 * UpDownBase.cs: Fixup base event overrides.
1406 2006-04-06 Mike Kestner <mkestner@novell.com>
1408 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1409 all user-initiated value changes to min <= value <= max-thumbsz+1.
1410 (set_Value): check for vert/horiz when calculating new thumb position.
1411 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1413 (OnMouseMoveSB): refactor the thumb dragging code and refine
1414 invalidation logic to reduce flicker.
1415 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1416 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1417 (UpdateThumbPosition): small code readability cleanup
1419 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
1421 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1424 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
1426 * ThemeNice.cs: Use a better graphics effect when a button is pressed
1428 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
1430 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1431 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1432 This dramatically reduces the number of Pen.Dispose calls.
1433 Where possible call ResPool methods only once instead of calling it
1434 over and over again (for example for the same color).
1436 2006-04-06 Mike Kestner <mkestner@novell.com>
1438 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1439 Also remove an unused private field on the collection. Fixes #77972.
1441 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
1443 * ThemeNice.cs: Added ToolBar drawing code
1445 2006-04-06 Mike Kestner <mkestner@novell.com>
1447 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1448 I'm assuming that means we need to look up the toplevel for the
1449 provided control. Fixes the crash trace in #77911 but exposes another
1450 crash in some strange reflection usage in NDocGui.
1452 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
1454 * ThemeNice.cs: Gave it a little silver touch and added Images
1456 * FontDialog.cs: FontDialog is not resizable
1457 * FileDialg.cs: Added SizeGripStyle.Show
1459 2006-04-05 Jackson Harper <jackson@ximian.com>
1461 * KeyboardLayouts.cs: Remove warning.
1463 2006-04-05 Jackson Harper <jackson@ximian.com>
1465 * Control.cs: Enable OnPaintInternal so we can use it for drawing
1466 all of our controls instead of Paint +=.
1481 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1482 use OnPaintInternal. Remove Width/Height and Visible checks in
1483 paint handler, this is done at a higher level now.
1484 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1485 * PaintEventArgs.cs: Add a handled flag so controls that don't
1486 want anymore painting after OnPaintInternal can make sure OnPaint
1489 2006-04-05 Mike Kestner <mkestner@novell.com>
1491 * Form.cs: fix the menu WndProc hacks to respect the native enabled
1492 state of the form, so that we don't process events when Modal dialogs
1493 are up. Fixes #77922.
1495 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
1497 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1500 2006-04-05 Mike Kestner <mkestner@novell.com>
1502 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1504 2006-04-05 Mike Kestner <mkestner@novell.com>
1506 * ListView.cs (HeaderMouseMove): null guarding for the over column
1507 when setting up the drag_to_index. Fixes #78015.
1509 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
1511 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1512 in the taskbar. Transient windows seem to accomplish that.
1514 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
1517 - Re-enabled CreateParams.X/Y code for FormStartPosition
1518 - Added code for manual placement when creating the Control
1519 - Incomplete patch to treat MDI forms differently when
1520 setting the ClientSizeCore. (Still need to figure out handling
1523 - When we're explicitly setting the X/Y position of a non-Child
1524 window, let the WM know. Metacity really wants this.
1526 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1528 * ThemeNice.cs: Added CPDrawButton
1530 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1532 * ThemeNice.cs: Changed the color for focused buttons and activated
1533 the arrows for small scroll buttons.
1535 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1537 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1538 anymore. Changed some method modifiers to protected (virtual)
1539 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1541 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1542 Updated drawing of menus, buttons and progressbars; added
1545 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1547 * ImageListStreamer.cs: implemented serialization/deserialization
1550 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
1552 * ThemeWin32Classic.cs:
1553 - Removed all the DrawFrameControl stuff; CPDrawButton,
1554 CPDrawCheckBox and CPDrawRadioButton are now handled directly
1556 - Updated and corrected the drawing code of CPDrawButton,
1557 CPDrawCheckBox and CPDrawRadioButton to better match ms
1558 - Updated theme checkbox and radiobutton code to use the CP*
1561 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1563 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1566 2006-03-31 Jackson Harper <jackson@ximian.com>
1568 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1570 * UpDownBase.cs: Don't CreateGraphics manually, use a
1571 Refresh. Ideally we would invalidate the correct areas here.
1573 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1576 - We now track the mapping state of windows. If a window (or
1577 one of it's parents) is not mapped we no longer permit
1578 WM_PAINT messages to be generated since we'd otherwise get
1579 lots of BadMatch X errors. Jackson did all the work figuring
1581 - Destroying the caret if the window it's contained in is
1582 destroyed. Can't use regular DestroyCaret method since it
1583 might fall into a drawing function (trying to remove the
1584 caret) and with that generate new BadMatch errors. Again,
1585 Jackson tracked this down.
1586 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1587 make sure we send the messages to all windows. (The old code
1588 would send the WM_DESTROY to the window, and then all child
1589 windows would be 'gone' because the WM_DESTROY handle lookup
1590 would no longer find the destroyed window)
1591 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1592 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1594 2006-03-31 Jackson Harper <jackson@ximian.com>
1596 * ScrollableControl.cs: Dont recalc if we are not visible.
1598 2006-03-31 Mike Kestner <mkestner@novell.com>
1600 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1601 the visibility branch.
1603 2006-03-31 Jackson Harper <jackson@ximian.com>
1605 * ScrollBar.cs: Cap values when incrementing/decrementing.
1607 2006-03-31 Mike Kestner <mkestner@novell.com>
1609 * MenuAPI.cs: setup menu.tracker for popup/context menus.
1610 * ToolTip.cs: guard against timer expirations with no active control.
1611 Not sure why it happened.
1613 2006-03-31 Mike Kestner <mkestner@novell.com>
1615 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1617 * ToolTip.cs: Position the tooltip based on where the cursor is at
1618 popup time, not at MouseEnter time. Add a Down state so that we don't
1619 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1620 positioning offset. Lookup DisplaySize at positioning time, since it
1621 can theoretically change during invocation.
1622 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1623 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1625 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1627 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1628 Fixes behaviour when the Text property of the box is String.Empty
1630 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1632 * XplatUIX11.cs: Only send mouseleave for our client windows, not
1633 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1636 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1638 * FileDialog.cs: Visual enhancement for the popup buttons in
1641 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1643 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1646 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
1648 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1649 highlighted menu items to match ms
1651 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
1653 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1655 2006-03-30 Mike Kestner <mkestner@novell.com>
1657 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1658 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1659 go active to account for HotLight to Selected transition.
1660 * MenuItem.cs: add internal Selected prop. Fill out the Status
1661 property by calculating it from item info. Add HotLight,
1662 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1664 2006-03-30 Mike Kestner <mkestner@novell.com>
1666 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1668 2006-03-29 Jackson Harper <jackson@ximian.com>
1670 * Form.cs: Implement TODO.
1672 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
1674 * PrintPreviewDialog.cs: Implemented missing methods and events; still
1675 missing proper dialog setup in the constructor
1677 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
1679 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1681 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1682 - Fixed ResetBindings and removed TODO
1683 - Added check for cross-thread calls to get_Handle()
1684 - Added Marshaller attribute for set_Font to satisfy class status
1685 * FontDialog.cs: Removed TODOs that seemed implemented
1686 * UpDownBase.cs: Removed unneeded TODO and Fixme
1687 * MessageBox.cs: Implemented support for Default button and removed TODO
1688 * FileDialog.cs: Removed obsolete TODO
1689 * DomainUpDown.cs: Removed obsolete TODO
1690 * ButtonBase.cs: Removed obsolete TODO
1691 * XplatUIWin32.cs: Removed obsolete TODO
1693 - Removed obsolete TODO
1694 - Calling CheckAcceptButton when the acceptbutton is changed to allow
1695 internal status updates
1696 - Making sure the active control is selected when the control is created
1697 * CurrencyManager.cs: Removed obsolete TODO
1699 2006-03-29 Mike Kestner <mkestner@novell.com>
1701 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1702 of PrintPreviewDialog and RichTextBox.
1704 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
1706 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1707 DarkDark, Light and LightLight colors for a specific color
1708 * ThemeWin32Classic.cs:
1709 - Use Button drawing code to draw RadioButtons and CheckBoxes with
1711 - Make use of the new ResPool helper CPColor
1712 - Draw ProgressBar and StatusBar with correct 3D borders
1714 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
1716 * ColorDialog.cs: Return selected color. Fixes bug #77940.
1718 2006-03-28 Mike Kestner <mkestner@novell.com>
1720 * ListView.cs: fix Icon layout to plan for scrollbar widths when
1721 calculating col/row counts.
1723 2006-03-28 Mike Kestner <mkestner@novell.com>
1729 switch to explicit interface method implementation for some methods
1730 corcompare identifies as inconsistent with MS.
1732 2006-03-28 Mike Kestner <mkestner@novell.com>
1736 add a few missing methods from the class status output.
1738 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
1740 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1743 2006-03-28 Mike Kestner <mkestner@novell.com>
1745 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1747 2006-03-27 Mike Kestner <mkestner@novell.com>
1749 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1750 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1752 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
1754 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1756 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1758 * ThemeWin32Classic.cs:
1759 - GroupBox: Inserted a little gap between the text and the lines
1761 - Made the code in CPDrawBorder3D more readable
1762 - Corrected the drawing location of the up and down arrows in
1765 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1767 * ControlPaint.cs: Corrected line widths in DrawBorder for
1768 ButtonBorderStyle Inset and Outset
1770 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1772 * ThemeWin32Classic.cs:
1773 - Rewrote the totally broken CPDrawBorder3D method. That was
1774 one of the main problems for the terrific ThemeWin32Classic
1776 - Updated and corrected Button drawing
1777 - Correct the dimensions of the SizeGrip to match ms ones
1778 - Removed a small drawing glitch in DrawComboBoxEditDecorations
1779 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1780 Border3DStyle.Sunken to match ms.
1782 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1784 * ThemeWin32Classic.cs: First small part of the "de-uglify
1785 ThemeWin32Classic" effort, SizeGrip
1787 2006-03-24 Jackson Harper <jackson@ximian.com>
1789 * XplatUIX11.cs: Give a max idle time of one second, this matches
1790 MS and forces an Idle event every second when there are no other
1791 events in the queue.
1793 2006-03-24 Mike Kestner <mkestner@novell.com>
1795 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1796 * ListView.Item.cs: fix layout issues with null image lists and images
1797 smaller than checkbox size.
1798 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1799 mode like MS does. It's weird, but consistent. ;-)
1802 2006-03-24 Mike Kestner <mkestner@novell.com>
1804 * ListView.cs: Scroll wheel support for the item control. Fixes
1807 2006-03-23 Jackson Harper <jackson@ximian.com>
1809 * ScrollableControl.cs: Special case negative sized areas, not
1811 * MonthCalendar.cs: Save the rect of the clicked date so we can
1812 use it for invalidation.
1813 - Try to cut down on the number of invalidates
1814 - Invalidate the rect the mouse is over and was over when moving
1815 the mouse, so we get the focus box following the cursor.
1817 2006-03-23 Mike Kestner <mkestner@novell.com>
1819 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1820 focus rectangle drawing. Fixes #77835.
1822 2006-03-23 Mike Kestner <mkestner@novell.com>
1824 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1825 the if and else if and reverting back to the original == check on the
1828 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
1830 * FontDialog.cs: Update the example panel if the selected index of
1831 the fontListBox changes.
1833 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
1835 * FileDialog.cs: Make FileDialog remember which directory it was in
1836 last in the same execution.
1838 2006-03-22 Mike Kestner <mkestner@novell.com>
1840 * FileDialog.cs: make the DropDownMenu on the toolbar display
1841 RadioChecks since they are mutually exclusive and that's what MS does.
1843 2006-03-22 Mike Kestner <mkestner@novell.com>
1845 * Theme.cs: add Color param to CPDrawMenuGlyph.
1846 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1847 checks and radio marks and arrows are visible on highlighted items.
1848 * ControlPaint.cs: update to use new Theme signature.
1850 2006-03-22 Mike Kestner <mkestner@novell.com>
1852 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1853 is active. Fixes #77870.
1855 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
1857 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1858 to be focused/selected after startup
1860 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
1863 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1864 CustomColors and ShowHelp properties
1865 - Some internal rewrites to get better results when using the
1868 2006-03-22 Mike Kestner <mkestner@novell.com>
1870 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1871 HoverSelection. Fixes #77836.
1873 2006-03-22 Mike Kestner <mkestner@novell.com>
1875 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
1876 ToggleButtons. (De)Sensitize the Back button around a stack count of
1877 1, not 0. Update ButtonSize based on a pixel count of the win32
1878 control. Adjust the toolbar size/location for new button size.
1880 2006-03-22 Jackson Harper <jackson@ximian.com>
1882 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1884 * ScrollBar.cs: When doing increments and decrements we need to
1885 set the Value property so that ValueChanged gets raised. A
1886 possible optimization here would be to make an internal SetValue
1887 that doesn't invalidate immediately.
1888 * ToolTip.cs: Tooltips get added to their container (when
1889 supplied) so they get disposed when the container is disposed.
1890 - Don't create tooltips for String.Empty. This prevents all these
1891 little 2-3 pixel windows from showing up when running nunit-gui
1893 * Form.cs: Don't set topmost when setting the owner if the handles
1894 haven't been created yet. The topmost set will happen when the
1895 handles are created.
1897 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
1900 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1901 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
1902 visible (to allow them to recalculate their sizes)
1904 2006-03-21 Mike Kestner <mkestner@novell.com>
1906 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1907 methods. Removed a ton of redundant code. Still not really happy with
1908 the border rendering, but I think that's mainly because of the
1909 ControlDarkDark being black instead of a dark grey. Depending on how
1910 close we want to be, we might want to revisit those color choices.
1911 Among the new features added during the refactor were DropDownArrow
1912 pressed rendering, Disabled image rendering. Proper flat appearance
1913 boundary rendering. Removed the Divider and Wrapping dividers since I
1914 can't figure out any combination of themes and conditions to make the
1915 MS control draw a horizontal line on a toolbar despite what the
1916 Divider property docs indicate.
1917 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1918 conditions and incorrect layout. Updated to coding standard.
1919 * ToolBarButton.cs: refactored layout and positioning code from
1920 ToolBar to here. Invalidate wherever possible instead of forcing
1921 redraws of the whole toolbar.
1922 (Known remaining issues: explicit ButtonSize smaller than provided
1925 2006-03-21 Mike Kestner <mkestner@novell.com>
1927 * ContextMenu.cs (Show): use the position parameter instead of just
1928 showing at the MousePosition.
1930 2006-03-21 Jackson Harper <jackson@ximian.com>
1932 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1933 control handle this.
1934 * TreeNodeCollection.cs: If we are clearing the root node we need
1935 to reset top_node so calcs can still happen.
1936 * ThemeWin32Classic.cs: This is a Flags so we need to check
1939 2006-03-21 Jackson Harper <jackson@ximian.com>
1941 * DataGrid.cs: Create columns when the binding context has been
1943 * X11Structs.cs: Keysyms are uints.
1944 - Add size to fix build.
1946 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
1948 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
1950 - Added ResetMouseHover method to allow controls to retrigger
1951 hovering if they need it more than once
1952 - Implemented MouseHoverTime and MouseHoverSize properties
1953 * Timer.cs: Start() must reset the interval
1954 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1957 2006-03-21 Jackson Harper <jackson@ximian.com>
1959 * X11Keyboard.cs: improved layout detection. Move the nonchar
1960 tables into this file.
1961 * KeyboardLayouts.cs: Move the tables into resource files.
1963 2006-03-21 Mike Kestner <mkestner@novell.com>
1965 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1967 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
1969 * Mime.cs: Various speed optimizations. Looking up mime types
1970 is now 2 times faster than before
1972 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
1974 * CreateParams.cs: Added internal menu field
1976 - Switched call order for UpdateBounds; now we always call
1977 the one that also takes ClientSize, and we're calculating the
1978 client size via driver method in the others. The previous
1979 method of tracking client size by difference wasn't working
1980 for forms where even the starting client size wouldn't match
1981 the overall form size (due to borders) (Part of fix for #77729)
1982 - CreateParams(): Do not use parent.Handle unless the handle is
1983 already created. Causes havoc with Nexxia and throws off our
1984 creation of controls
1986 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1987 - Switched handling of ConfigureNotify over to new PerformNCCalc
1988 method (consolidates code)
1989 - Changed RequestNCRecalc to use new PerformNCCalc method
1990 - Added calls to RequestNCRecalc when menus and borders are changed
1991 to allow app to set NC size. (Part of fix for #77729) This matches
1992 when MS send a WM_NCRECALC on Win32 windows.
1993 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1994 (Part of fix for #77729). This matches what MS does, they also
1995 send that message when the form is made visible.
1996 - XException.GetMessage: Improved usability of X errors by including
1997 a translation of the window into Hwnd and Control class
1998 - Improved debug info for window creation, reparenting and destruction
1999 - Created helper method WindowIsMapped() [Currently not used]
2000 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2002 - CreateParams: Now setting our menu on the new internal menu field
2003 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2004 avoid calculating the same property twice
2006 - Improved usability of ToString() for debugging purposes
2007 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2008 determine the height of the menu, instead of just the font. This
2009 required to also create a graphics context and to keep a bmp
2010 around (for performance reasons)
2012 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
2014 * MenuAPI.cs: Added OnMouseUp method
2016 - Now remembering the requested client size, avoids size errors
2017 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2018 instead of base if the menu is active. This is required due to
2019 control now capturing and releasing on down/up and it would
2020 prematurely release our menu capture
2022 2006-03-17 Jackson Harper <jackson@ximian.com>
2024 * KeyboardLayouts.cs: Add the czech layouts.
2026 2006-03-16 Jackson Harper <jackson@ximian.com>
2028 * Control.cs: Use the viewport space when sizing not the controls
2029 client size, so things like ScrollableControl that effect the
2030 viewport size (when scrollbars are added) are computed correctly.
2031 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2033 - Handle creating BindingManagers for null data sources.
2034 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2035 source, otherwise when rows are added they are added to the 'fake'
2036 datasource and we will crash when trying to set the position in
2038 - Use Implicit scrollbars on the datagrid so they arent
2041 2006-03-16 Jackson Harper <jackson@ximian.com>
2044 * InternalWindowManager.cs:
2045 * MdiWindowManager.cs:
2046 * X11Keyboard.cs: I really want Mike to love me again (fix
2049 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
2052 - OnMouseDown: Switch to editing mode when clicking on the cell
2053 even if we're clicking on the cell that's currently
2055 - ProcessGridKey: Left/Right now wrap like MS.Net does
2056 - ProcessGridKey: Tab now knows to add a new row when tab is
2057 pressed in the cell of the last column of the
2059 - ProcessGridKey: Enter now adds another row if pressed in the last
2060 row and selectes the new row, same column cell
2061 - ProcessGridKey: Home/End navigate columns, not rows, like
2062 originally implemented
2063 - Broke ProcessKeyPreview code out into an extra Internal method
2064 so it can be called from the edit code
2065 * DataGridTextBox.cs (ProcessKeyMessage):
2066 - Switched to accept Tab keypresses
2067 - Added F2 handling to allow jumping to the end of the edited cell
2068 - Added logic to allow moving caret left/right inside edited cell
2069 and making the edited cell jump when the caret hits cell borders
2070 - Tab and Enter are now passed to the datagrid after being handled
2072 - Removed capture code now that Control handles it
2073 - set_SelectionStart now ensures caret is visible
2075 2006-03-16 Jackson Harper <jackson@ximian.com>
2077 * TrackBar.cs: Debackwards the increment/decrement for handling
2078 mouse clicks on the bar with vertical trackbars.
2079 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2082 2006-03-16 Mike Kestner <mkestner@novell.com>
2084 * ListView.cs: make shift/ctrl keyboard and mouse selection
2085 consistent with the MS control. Fix a bug in
2086 SelectedListViewItemCollection.Clear that was pissing me off for the
2087 better part of a day because the collection was being altered
2088 underneath us as we walked the list.
2090 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
2092 * Control.cs: Not sure how we could miss this so long, but it seems
2093 that MS.Net has Capture set all the way from before calling
2094 OnMouseDown through sending the mouse events until after
2095 OnMouseUp. This will fix DataGrid's selection being set to end
2096 at the location of the MouseUp.
2098 2006-03-15 Jackson Harper <jackson@ximian.com>
2100 * BindingContext.cs: Check the binding after its added so that it
2101 can initialize the binding managers and hookup to events.
2102 * Binding.cs: Data members seem to sometimes include rows/cols in
2103 the format Row.Column we now take this into account.
2104 - Hookup to the position changed event so we can update the
2105 control when the position has changed in the data set.
2106 * CurrencyManager.cs: Take into account the row/col naming
2107 convention when creating dataset tables.
2108 * BindingContext.cs: Using a newer better way of storing
2109 datasource/datamember pairs. Hopefully this better matches MS for
2110 looking up binding managers.
2113 2006-03-15 Jackson Harper <jackson@ximian.com>
2115 * BindingContext.cs: The currency manager needs the data member
2116 name, if the member is a data set we use the name to find the
2118 * CurrencyManager.cs: When creating the list prefer an IList over
2120 - Attempt to create a DataTable from a DataSet (TODO: might need
2121 some better error checking here, although MS doesn't seem to have much)
2122 - If we have a DataTable create a view and use it as our list.
2124 2006-03-15 Mike Kestner <mkestner@novell.com>
2126 * ListView.cs: keep a matrix of the icon mode layout to facilitate
2127 keyboard navigation. Support Up/Down/Left/Right selection correctly
2128 for all 4 View modes.
2129 * ListViewItem.cs: add internal row/col fields for icon layouts.
2131 2006-03-15 Jackson Harper <jackson@ximian.com>
2133 * TabControl.cs: Redraw the tabs when we resize so their newly
2134 calculated sizes are drawn on screen.
2135 * X11Keyboard.cs: Begginnings of XIM support. We also now support
2136 composite characters.
2137 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2138 - filter events so that composite characters can be created
2140 * X11Structs.cs: Add XIMProperties enum.
2142 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
2144 * Control.cs (BringToFront, SendToBack): Don't use window or handle
2147 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
2149 * Control.cs (PerformLayout): We don't need to consider visiblity
2150 for anchoring, only for docking. This fixes 'whacky' alignment
2151 in listbox and other controls that use implicit scrollbars after
2152 the previous PerformLayout patch
2153 * ListBox.cs: Switched to use implicit scrollbars
2155 2006-03-14 Mike Kestner <mkestner@novell.com>
2159 - chain up the "new event" overrides to base and use
2160 OnEvent to raise them. Part of fix for bug #76509.
2162 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
2164 * FileDialog.cs: Do not select an item in the parent directory
2167 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
2169 * Control.cs (PerformLayout): It would seem that we considered
2170 invisible windows for our layout. Not quite the right thing
2171 to do. Now we don't any longer, thereby fixing bug #76889.
2173 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
2175 * Control.cs (CanFocus): I goofed. A control can have focus
2176 even though it's not selectable. Made it match MS docs.
2178 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
2180 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2181 center by default (fixes #76895)
2182 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
2183 all uses of Border3DSides.All with the explicit ORd together
2184 Left|Right|Top|Bottom because I assume that nobody was aware
2185 that All also implies a center fill. Most places I checked had
2187 * ProgressBarStyle.cs: Added
2189 2006-03-13 Mike Kestner <mkestner@novell.com>
2191 * ListView.cs: fix breakage in drag shadow header positioning
2192 from Peter's csc compilation fix.
2194 2006-03-13 Mike Kestner <mkestner@novell.com>
2196 * ListView.cs: fix NRE produced by backspacing twice in a focused
2199 2006-03-13 Mike Kestner <mkestner@novell.com>
2201 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2203 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
2205 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2207 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2208 the allowed size before making programmatic size changes
2210 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
2212 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
2213 set, metacity is broken and will still use the emty sizes in
2214 the struct. (Fix for #77089)
2216 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
2218 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
2219 WindowExStyles and marked both enums as Flags
2220 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2221 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2222 to match WindowStyles split
2224 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2225 - Updated to match WindowStyles split
2227 - Fixed FosterParent creation, was using ExStyle on the Style field
2228 (This should help with Popup focus issues)
2229 - Updated to match WindowStyles split
2231 2006-03-13 Jackson Harper <jackson@ximian.com>
2233 * MdiWindowManager.cs: Use the system menu height. Fixes some
2234 strange sizing issues.
2236 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
2238 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2240 - Scroll to caret after inserting text (#77672)
2241 - Make scroll range one pixel higher, fixes off-by-one error (and
2242 makes underlines visible on the last line)
2244 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
2246 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2247 the keyboard state from being stuck with keys in 'pressed' state when
2248 focus is switched away via keyboard
2249 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2250 reset the keyboard if no X11 KeyUp events are expected to come
2251 * X11Structs.cs: Switched type of Visible to bool to match driver
2253 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
2256 - Switched caret to be just 1 pixel wide, matches MS and looks less
2258 - Moved caret display 1 pixel down from the top of the control
2260 - InsertCharAtCharet: Update the selection start if moving the caret
2261 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2262 - No longer always creating the caret when the caret methods are
2263 called. Only the actual ShowCaret/HideCaret will do that now
2264 - Only setting caret visible if the owner control has focus
2265 - UpdateView: Added invalidation-shortcut logic for center and right
2266 aligned text. Previously we'd update all according to the left
2267 logic which caused drawing errors. Also fixed height of invalidated
2268 areas, now properly invalidating the whole area (was off-by-one)
2269 - owner_HandleCreated: Always generate the document when the
2270 handle is created; this ensures that
2272 - Fixed situation where caret would disappear under the right
2273 window border, also improved scrolling behaviour on left-
2275 - Fixed right-aligned textboxes to have a border to the
2276 right instead of the caret being under the right border
2278 - Switched from 'nested' to simple visible/not visible tracking
2279 for caret (part of fix for #77671)
2280 - No longer passing through translated FocusIn/FocusOut messages
2281 since we were notifying too often and the wrong windows. Instead
2282 we just notify our focussed window of receiving or loosing focus
2283 * XplatUIWin32.cs: Switched from 'nested' show/hide
2284 counting for caret to simple visible yes/no behaviour (part of
2287 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
2289 * Mime.cs: Remove debug code...
2291 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
2293 * MimeGenerated.cs: Removed
2294 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2295 and subclasses) from /usr/(local/)share/mime and
2296 $HOME/.local/share/mime.
2298 2006-03-10 Jackson Harper <jackson@ximian.com>
2300 * MdiWindowManager.cs: Recalc the NC area when a window is
2301 maximized/restored so that the menu area is drawn on forms that
2304 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2306 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2307 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2308 us to force a WM_NCCALCRESIZE message being sent. This is needed
2311 2006-03-10 Jackson Harper <jackson@ximian.com>
2313 * Form.cs: We need to use the ActiveMenu when calculating menu
2315 - Fix nullref when the window manager hasn't been created yet.
2316 * Control.cs: Fix nullref when we try to bring a control to the
2317 front that has no parent.
2318 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2320 - Add a dummy item to the maximized menu so it always has the
2321 correct height. Otherwise when there are no menus we don't get our
2325 2006-03-10 Jackson Harper <jackson@ximian.com>
2327 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2329 * Form.cs: Make the window_state internal so the window managers
2331 - When an MDI child is maximized let its window manager create the
2332 main menu (so it can add its icon).
2333 - Notify the window managers of state changes
2334 - Let the window manager paint its buttons and handle button
2335 clicks on the menu when it is maximized.
2336 * InternalWindowManager.cs: Move the prev_bounds into the mdi
2337 window manager, since tool windows don't use it, only mdi windows.
2338 - Tell the main form that we don't want it to handle NCPAINT
2339 itself to avoid extra painting.
2340 - Handle clicks on a maximized windows menu.
2341 - Handle window state changes
2342 - Handle minimize/maximize clicks correctly by setting the window state.
2343 * MdiWindowManager.cs: Add an icon menu that (the menu you get
2344 when clicking on the forms icon).
2345 - New method to create a forms maximized menu. This is its normal
2347 - Handle window state changes.
2348 - Handle sizing of maximized windows. Maximized windows are just
2349 drawn bigger then the parent visible area. All controls are still
2350 there, they are just outside the visible area (this matches windows).
2351 * MdiClient.cs: No scrollbars when a child window is maximized.
2352 - Let the children windows figure out how big they should be when
2353 sizing maximized windows.
2354 - Implement a version of ArrangeIconicWindows somewhat similar to
2355 Windows version. There are some little differences, but I don't
2356 think any app will rely on the layout of minimized mdi windows.
2358 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2360 * Padding.cs: Several fixes to allow compiling with csc 2.0
2362 2006-03-09 Jackson Harper <jackson@ximian.com>
2365 * MenuItem.cs: Cheap hack so we can add items to the list without
2366 the events being raised. This allows adding mdi items during
2367 drawing. TODO: Should probably find a better time to add the items.
2369 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2371 * ThemeWin32Classic.cs:
2372 - CheckBox_DrawText: Added logic to not wrap if not enough space
2373 is available (Fix for bug #77727)
2374 - RadioButton_DrawText: Added logic not to wrap if not enough
2375 space is available (Fix for bug #77727). Also removed some
2376 duplicate code, DrawString always drawing the regular text
2377 before hitting the if statement.
2379 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2381 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2383 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2385 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2386 * ContainerControl.cs: Partial implementation of some 2.0 scaling
2387 methods. Moved the new 2.0 properties into alphabetical order with
2388 other properties and added MonoTODO tags
2390 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2392 * AutoScaleMode.cs: Added. Fix build.
2394 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2396 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
2397 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2398 and was requiring premature handle creation for calls from above
2399 * Form.cs, Control.cs: Removed handle arguments from calls to
2400 CalculateClientRect()
2402 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2404 * ListView.cs (HeaderMouseMove): Fix csc compilation.
2405 drag_column.column_rect is MarshalByRef and can't be used that way
2407 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2409 * AxHost.cs: Added deserialization constructor for
2410 AxHost+State (fixes 77743)
2412 2006-03-09 Mike Kestner <mkestner@novell.com>
2415 - Added column drag reordering for details view.
2416 - fixed behavior when mouse is dragged off column and
2417 AllowColumnReorder is false.
2418 * ColumnHeader.cs: clone the format too in Clone.
2419 * Theme.cs: add DrawListViewHeaderDragDetails method.
2420 * ThemeWin32Classic.cs:
2421 - impl new method for drawing drag column shadows and targets.
2422 - support column offset for details mode in DrawListViewItem.
2424 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2426 * TextControl.cs: Reset the char_count when the document is cleared
2427 (Fixes bug reported on mono-winforms mailing list)
2429 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2431 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2432 of calling base we simply process the key ourselves, since both
2433 DefWindowProc and the handled method would set m.Result.
2436 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2438 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2439 method also moves the window; instead implemented a copy of
2440 Control.ScaleCore (Part of fix for #77456)
2442 - Created new CreateGraphicsInternal method to allow providing
2443 a graphics context when no handle is created without triggering
2444 handle creation. (Part of fix for #77456)
2445 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2447 - Switched Constructor to require TextBoxBase instead of Control (to
2448 allow uncast access to CreateGraphicsInternal)
2449 - Safeguarded use of owner.Handle property. No longer accessing it
2450 unless the handle is already created.
2451 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2452 - Now triggering a recalc when owning control becomes visible
2453 * TextBox.cs, RichTextBox.cs: Switched to use new internal
2454 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2455 premature handle creation (Part of fix for #77456)
2457 - We now only destroy our double-buffering buffers when the
2458 control is resized or disposed, but not when visibility
2459 changes. (The code even re-created them twice every time)
2460 - Now requiring a redraw of the buffer on visibility changes
2461 (fixes bug 77654 part 2)
2462 - Not passing OnParentVisibleChanged up unless the control
2464 - CanFocus: Fixed to match MS documentation
2465 - Focus: Fixed to return actual focus state and to check if
2466 setting focus is legal before setting it
2468 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
2470 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2471 when to draw focus rectangle by looking at parent focus and
2472 selected state instead. This fixes TabPages on Linux sometimes
2473 having none or multiple focus rectangles.
2474 * XplatUIX11.cs (SetFocus):
2475 - Don't set the focus if the same window already has focus
2476 - Use SendMessage instead of PostMessage (like it's Win32
2477 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2478 to match MS behaviour
2479 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2482 2006-03-07 Jackson Harper <jackson@ximian.com>
2484 * PictureBox.cs: Revert line I accidently committed last week.
2486 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
2489 - Added new IsRecreating and ParentIsRecreating properties to
2490 allow testing if RecreateHandle has been called on ourselves
2491 or one of our parents
2492 - WndProc(WM_DESTROY): If our control handle is being recreated
2493 we immediately need to create the handle when receiving the
2494 destroy, that way our child windows find a valid parent handle
2495 when they themselves are being recreated upon WM_DESTROY receipt
2496 (fix for bug #77654 part 1)
2498 - DestroyWindow: WM_DESTROY must be sent to our own window before
2499 notifying any child windows. MS documents that child windows
2500 are still valid when WM_DESTROY is received. (Control now relies on
2502 - Added some fine-grain debug options
2504 2006-03-06 Jackson Harper <jackson@ximian.com>
2506 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2507 box and base calculations off this.
2508 * MdiChildContext.cs:
2509 * MdiWindowManager.cs: Don't need to ensure scrollbars here
2512 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
2514 * Splitter.cs: In situations where the affected control is added
2515 to the parent's control list after the splitter, we would not
2516 populate affected. Now we try populating it on mousedown, if
2517 it's not already set, and force it to be re-set whenever our
2520 2006-03-03 Matt Hargett <matt@use.net>
2522 * Control.cs: implement Control.Padding
2523 * Padding.cs: -Padding.All returns -1 when constructing with the
2524 implicit default ctor
2525 -Padding.ToString() matches MS.NET
2526 * ContainerControl.cs: implement
2527 ContainerControl.AutoScaleDimensions
2528 * ListControl.cs: implement ListControl.FormattingEnabled
2529 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2531 * TabPage.cs: Implement UseVisualStyleBackColor.
2532 * PictureBox.cs: Implement PictureBox.InitialImage.
2534 2006-03-03 Mike Kestner <mkestner@novell.com>
2536 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2537 event declarations to proxy to base event.
2538 * ListViewItem.cs: update to use ItemControl.
2539 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2540 * ThemeWin32Classic.cs: update to new ListView theme API and fix
2541 column header label rendering for 0 width columns.
2543 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
2545 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2546 that causes the control to be created. Fixes #77476.
2548 2006-03-02 Jackson Harper <jackson@ximian.com>
2550 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2553 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
2555 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2556 passed in for the EventArgs (fixes #77690)
2558 2006-03-01 Jackson Harper <jackson@ximian.com>
2560 * ScrollBar.cs: Refresh afterbeing resized.
2562 2006-02-28 Mike Kestner <mkestner@novell.com>
2564 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2565 Clean up a tracker compile warning.
2566 * MenuItem.cs: add internal PerformPopup method.
2569 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2571 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2572 implicit expose) when the text is set to null
2574 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2576 * RichTextBox.cs (FlushText): When newline is true, we always
2577 need to split the line, even if no text is on it and we may
2578 never eat newlines. (Fixes #77669)
2580 2006-02-28 Mike Kestner <mkestner@novell.com>
2582 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
2583 and set Selected instead.
2584 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
2587 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2589 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2591 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
2594 - Got rid of the panel. All controls are now directly added to
2596 - It is now possible to set a font with the Font property
2597 - MinSize and MaxSize property do now what they should
2598 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2599 - Searching and selecting a font with the font textbox works now,
2600 the same applies to the style and size textbox
2601 - Draw the correct 3D border in the example panel
2602 - Fixed a little mem leak (unused fonts didn't get disposed)
2603 - Many other internal updates/rewrites...
2606 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2609 - InsertRTFFromStream: Added 'number of characters inserted' argument
2610 - set_SelectedRTF: Now using the number of characters to calculate
2611 the new location for the selection and cursor (x/y cannot be used
2612 due to potentially already wrapped text)
2614 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2616 * TextControl.cs: Added property and implemented means to allow
2617 disabling recalculation of a document (can be used to speed up
2618 multiple inserts and is needed to make RTF inserts predictable, see
2620 * RichTextBox.cs: Using the new NoRecalc property of Document to
2621 keep x/y insert locations predictable. Also makes it faster inserting
2624 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2626 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2627 it's easier for a child control to handle the other messages without
2628 having to duplicate the special functionality
2630 - WndProc: Removed calling base handler for WM_KEYDOWN and added
2631 code to handle processing the key ourselves, in order to get
2632 access to the result of KeyEventArgs.Handled. We now only call
2633 ProcessKey if they key hasn't been handled already. Fixes #77526.
2634 - set_Text: If null or empty string is given, just clear the
2635 document. Fixes part of #77526
2637 2006-02-27 Jackson Harper <jackson@ximian.com>
2639 * SizeGrip.cs: Paint the background color before painting the grip
2640 so things look right.
2641 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2643 2006-02-27 Mike Kestner <mkestner@novell.com>
2646 - Restructure layout and invalidation model to remove a ton of
2647 flicker from the control and speed up performance in general.
2648 - Add manual column resize, flickers like crazy, but I already have
2649 some ideas on how I'll fix that. (#76822)
2650 - Merge the three Icon-based views into a single layout method.
2651 - Move item selection interaction logic from the item since
2652 interaction with the collections is more appropriate to the view.
2653 - Deselection on non-item clicks.
2655 - Encapsulate most of the layout. Add some internal props to trigger
2656 layout. Move to a model where Items invalidate themselves instead
2657 of just invalidating the whole control every time something changes.
2658 - Invalidate on Text/Caption changes.
2659 - switch to an offset based layout model to avoid having to absolute
2660 position every element on item moves.
2661 - correct checkbox layout to conform to MS layout.
2662 * ThemeWin32Classic.cs:
2663 - refactor some column header drawing code.
2664 - fix string justification for column headers (#76821)
2665 - make SmallIcon labels top justified for compat with MS impl.
2666 * ThemeClearlooks.cs:
2667 - adjust to new ListViewItem internal checkbox bounds api.
2669 2006-02-27 Jackson Harper <jackson@ximian.com>
2671 * Control.cs: Change where implicit controls fall in the zorder.
2672 They are now on top of all children.
2673 - Synced AddImplicit code with Add
2674 - Removed unused enumerator.
2675 * SizeGrip.cs: Remove the TODO as its been TODONE.
2677 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
2679 * TextControl.cs(Insert): Combine the last lines unless the insertion
2680 string ends with \n\n, otherwise we leave one line too many (Fixes
2681 something I noticed with the testapp for #77526; the bug itself was
2682 already fixed in the previous checkin)
2684 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
2687 - SelectionColor and SelectionFont methods no longer set absolute
2688 styles. Instead, the keep font or color respectively (This
2689 resolves a long-standing FIXME in the code)
2690 - When flushing RTF text, the insert code now considers text trailing
2691 behind the insertion point (Fixes the bug where when replacing
2692 the selected text via SelectedRTF the remainder of the line behind
2693 the selection would stay on the first insertion line)
2695 - AppendText now updates the selection points after inserting text
2696 - AppendText now ensures that the last tag (sometimes 0-length) of
2697 the document is used for the style information (Fixes part of
2700 - Created new FontDefiniton class to allow describing partial style
2702 - StreamLine() now takes a lines argument, to allow it to decide
2703 whether an encountered zero-length tag is the last in the document
2704 (which must be kept to not loose the font/color contained in it,
2706 - Created Combine() and Split() methods for Marker structs, to
2707 support marker updates due to reformatted documents (soft line
2709 - Implemented Document.CaretTag setter
2710 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2711 of the last line (Not the cause, but also exposed by bug #77220)
2712 - Added LineTag argument to InsertString method, to allow callers
2713 to force a certain tag to be used (required to force use of the
2714 trailing zero-length tag of a document)
2715 - Now updating markers in Combine(), to avoid stale tag markers
2716 - Added some method descriptions to aid maintenance
2717 - Implemented new FormatText concept, allowing additive/subtractive
2718 formatting by only specifying the components that are to be
2719 changed. This was needed for resolving the RTB.SelectedColor/
2720 RTB.SelectedFont fixmes
2721 - Added Break() support method to allow breaking up linetags (used
2722 for partial formatting)
2723 - Added GenerateTextFormat() method. It is used for partial
2724 formatting and allows to generate a full font/color from given
2725 attributes and an existing tag.
2727 2006-02-26 Jackson Harper <jackson@ximian.com>
2729 * XplatUIX11.cs: Use the correct caption height.
2730 - Translate hittest coordinates to screen coords to match MS.
2731 * XplatUIWin32.cs: When we create MDI windows we need to reset
2732 some of the style flags, so we get a nice blank window, and can
2733 draw all the decorations ourselves.
2734 - Set a clipping rectangle on the non client paint event, the
2735 window manager drawing code needs one.
2736 * Form.cs: The window manager needs to know when the window state
2738 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2739 don't need to factor in border and title sizes in these
2740 methods. TODO: Remove the args and fix the call points.
2741 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2743 - Let the driver set the cursors.
2744 - Improve active window handling
2745 - Correct sizes for title bars and buttons.
2746 - Match MS drawing better
2747 * MdiWindowManager.cs: We don't need to handle border style
2748 updates specially anymore.
2749 - Check for scrollbars when windows are done moving
2750 - Handle Active properly.
2751 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2752 correctly. I am spewing the exception though, so we don't hide the
2755 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
2757 * DataGridViewRowPostPaintEventArgs.cs,
2758 DataGridViewCellPaintingEventArgs.cs,
2759 DataGridViewRowCollection.cs,
2760 DataGridViewRowPrePaintEventArgs.cs,
2761 DataGridViewCell.cs: Clear a few warnings and implement a few
2762 exceptions that should be thrown.
2764 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2766 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2767 'inheriting' our parent's (non-default) cursor. (Part of
2770 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2772 * XplatUIX11.cs: Fixed cast to make csc happy
2774 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2776 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2777 it's for the client area (part of fix for #77479 and needed
2778 for MDI window cursor handling)
2780 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2781 the appropriate default cursors and also passing the message
2783 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2784 for non-client areas
2786 2006-02-15 Jackson Harper <jackson@ximian.com>
2788 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2789 is a real MDI window
2791 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
2793 * X11DesktopColors.cs: Instead of checking the desktop session
2794 string for "KDE" check if it starts with "KDE"
2796 2006-02-10 Jackson Harper <jackson@ximian.com>
2798 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2801 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
2803 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2806 - Got rid of the panel. All controls are now directly added to
2808 - Changed to mono coding style
2810 2006-02-10 Jackson Harper <jackson@ximian.com>
2812 * InternalWindowManager.cs: We don't need the set visibility to
2813 false hack anymore now that peter has written beautiful shutdown
2816 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
2818 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2819 where already explicitly destroyed
2821 2006-02-10 Jackson Harper <jackson@ximian.com>
2823 * MdiClient.cs: Handle the case where windows are too high or to
2824 the left and we need scrollbars.
2826 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
2828 * MimeIcon.cs: Added some icons
2831 - Got rid of the panel. All controls are now directly added to
2833 - Changed to mono coding style
2834 - On Linux "My Computer" and "My Network" will now show some
2835 more usefull information. A new class, MasterMount, gathers
2836 this information from /proc/mount. Updated MWFFileView to make
2837 use of this information
2838 - Fixed a bug that caused FileDialog to crash when
2839 ".recently_used" file had a zero size
2840 - FilterIndex does now what it should
2842 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2845 2006-02-09 Jackson Harper <jackson@ximian.com>
2847 * ComboBox.cs: Don't touch if null.
2849 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
2851 * Cursor.cs: 64bit safeness fix
2852 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2854 2006-02-09 Jackson Harper <jackson@ximian.com>
2856 * Form.cs: If a form is made into an MDI form update the styles so
2857 all the props can get set correctly.
2858 - Kill the mdi_container when we dont need it anymore.
2859 * InternalWindowManager.cs: Add missing NOT
2861 2006-02-08 Jackson Harper <jackson@ximian.com>
2863 * InternalWindowManager.cs: Respek clipping when drawing MDi
2866 2006-02-08 Jackson Harper <jackson@ximian.com>
2868 * Hwnd.cs: Add bits to track non client expose events.
2869 * XplatUIX11.cs: Track non client expose events on the hwnd. This
2870 gives us a proper invalid rect and will allow for some nice
2871 optimizations with NC client drawing
2872 - MDI windows are children windows, so move their style handling
2873 into the child window block.
2874 * InternalWindowManager.cs: Remove a state reset that was
2875 getting invoked at the wrong time. Fixes managed windows getting
2876 into a 'stuck' captured state.
2878 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
2880 * TextControl.cs (Document.ctor): Now initializing
2881 selection_anchor. Fixes #77493
2883 2006-02-07 Jackson Harper <jackson@ximian.com>
2885 * TrackBar.cs: The increment/decrements were backwards.
2887 2006-02-07 Mike Kestner <mkestner@novell.com>
2889 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2890 to the instance itself.
2892 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
2894 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2895 on ulongs and pointers, the size differs between 32bit and 64bit
2898 2006-02-07 Mike Kestner <mkestner@novell.com>
2900 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2901 for 64 bit platforms to work around a metacity bug.
2903 2006-02-07 Jackson Harper <jackson@ximian.com>
2905 * TrackBar.cs: Process the input keys we need, and hookup to
2906 KeyDown instead of using WndProc, so we get key messages.
2908 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
2910 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2912 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2913 we need to translate the XdndVersion atoms array before sending it
2915 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
2918 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2919 number of bits for the property, not the number of bytes. The
2920 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2921 but would not crash since it specified 8 bits instead of 4 bits)
2922 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2923 defined as XID -> long in the C headers)
2924 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
2925 references since those are now IntPtr to begin with
2926 - Switched all Atom.XXX 'int' casts to IntPtr casts
2927 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2928 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2929 - Added XChangeActivePointerGrab DllImport (for X11DnD)
2931 - Changed 'int' type for Atoms in XEvent structures to IntPtr
2932 - Changed atom in HoverStruct to be IntPtr
2934 - Removed local DllImports, switched code to use those from XplatUIX11
2935 - Removed/fixed casts related to the switch of Atom to be a IntPtr
2937 2006-02-06 Mike Kestner <mkestner@novell.com>
2939 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
2940 method signatures in the import region. There may still be some
2941 lingering struct marshaling issues, as I didn't drill down into those.
2944 2006-02-06 Jackson Harper <jackson@ximian.com>
2946 * ComboBox.cs: Dont manually set the top_item, this is computed
2947 when the scrollbar position is set.
2949 2006-02-06 Mike Kestner <mkestner@novell.com>
2951 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2952 startup crashes on amd64. There's other fixes needed. All pinvoke
2953 usage of Atom needs to be mapped to IntPtr for example. And there are
2954 likely other int/long issues to be addressed.
2956 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
2958 * FileDialog.cs: One more...
2960 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2962 * FileDialog.cs: Next try
2964 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2966 * FileDialog.cs: First part of fix for #77464
2968 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2970 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2971 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2972 AcceptButton border drawing.
2974 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
2976 * Form.cs: Moved positioning of form after auto scaling is applied,
2977 otherwise it would possibly use wrong form size.
2979 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
2981 * Control.cs (RecreateHandle): No need to re-create any child
2982 controls, the child windows will get destroyed automatically by
2983 the windowing system or driver, and re-created when the handle
2984 is being accessed the first time. Fixes #77456
2985 * Form.cs: No longer setting the form to closing if the handle is
2986 being recreated. This seems like the right thing to do, don't
2987 have a bug or testcase for this, though.
2989 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
2991 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2992 controls to avoid unwanted side effects
2994 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
2997 - ScaleCore needs to scale the bounds, not the ClientSize of the
2998 control. Fixes #77416.
2999 - DefaultSize is 0,0 for control
3001 - DefaultSize is 100, 20
3002 - SetBoundsCore: Now enforcing the height, no matter if the provided
3003 height is more or less than the preferred one, as long as AutoSize
3005 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3007 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
3010 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3011 call unless both performLayout is true *and* we have a pending
3013 - ResumeLayout: MS does not completely nest Suspend and Resume,
3014 they bottom out at 0, fixed our code to match that.
3015 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3016 SetBoundsCore, we were updating even when we shouldn't. This fixes
3017 swf-anchors mis-anchoring when resizing the app fast and lots.
3018 - UpdateDistances: Now only setting the left and top distance if
3019 we have a parent and are not suspended, this is based on
3020 a suggestion by Don Edvaldson in bug #77355.
3021 - OnVisibleChanged: Fixed logic when to create the control. We may
3022 not create the control if we have no parent or if it's not visible;
3023 switched to using Visible property instead of is_visible field
3024 since the property also considers parent states. This fixes a bug
3025 when starting Paint.Net
3027 2006-02-02 Jackson Harper <jackson@ximian.com>
3029 * Form.cs: If the forms handle hasn't been created yet don't call
3030 into xplatui to make it top most, just set the topmost flag on the
3031 form in CreateParams
3032 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3034 2006-02-01 Jackson Harper <jackson@ximian.com>
3036 * ScrollableControl.cs: Refactored the Recalculate method a
3037 little, this wasn't handling all the variants of bottom and right
3038 bars needed to be added and added/removed based on their
3039 counterparts being added/removed (which changes the drawable
3040 size). Also we special case client widths and heights of 0 and
3041 don't add the scrollbar for those.
3043 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
3046 - Added method to get AbsoluteGeometry(); currently unused, but might
3047 be used in the future, if we try again to figure out toplevel
3048 coordinates with some more crappy window managers
3049 - Added FrameExtents() method to retrieve the WM set decoration size
3050 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
3051 to deal with at least KDE, FVWM and metacity (Fixes #77092)
3053 - Added whacky_wm tracking var for metacity
3054 - Added logic to have default menu height if the actual menu height
3055 has not yet been calculated (part of fix for #77426)
3056 * Form.cs: Keep track whether client size has been set and re-set
3057 it if a menu is added/removed afterwards (Fixes #77426)
3059 2006-01-31 Jackson Harper <jackson@ximian.com>
3061 * Control.cs: When a new Site is set on the component attempt to
3062 pull the AmbientProperties from it.
3064 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
3066 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3067 in the background of the owning form. Fixes #77332
3069 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
3071 * MimeIcon.cs: Fix for #77409
3073 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
3075 * XplatUIX11GTK.cs: Initial import
3077 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
3079 * FixedSizeTextBox: fixes class signature
3081 2006-01-30 Jackson Harper <jackson@ximian.com>
3083 * FixedSizeTextBox.cs: New internal class that represents a
3084 textBox that will not be scaled.
3087 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3090 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
3092 * XplatUIX11.cs: Retrieve default screen number instead of
3093 assuming 0. Attempted fix for #77318
3095 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
3098 - GetWindowPos: When a window is parented by FosterParent, use
3099 the desktop instead of FosterParent as the base to get coordinates
3100 - CreateWindow: Don't make FosterParent the parent window for Popups
3101 if we don't want a taskbar entry, Popups automatically don't get one
3102 * Hwnd.cs: Need to call remove to actually remove the key from the
3105 2006-01-30 Mike Kestner <mkestner@novell.com>
3107 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3109 2006-01-30 Jackson Harper <jackson@ximian.com>
3112 * TreeNode.cs: Raise events no matter how the treenode is
3113 checked. Patch by Don Edvalson.
3115 2006-01-30 Jackson Harper <jackson@ximian.com>
3117 * TreeNode.cs: Signature fix.
3119 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
3121 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3123 2006-01-20 Mike Kestner <mkestner@novell.com>
3125 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3126 event forwarding when menus are active.
3127 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
3128 Most of the patch is pdb's with a little rework.
3130 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
3132 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
3133 Removed GetMenuDC and ReleaseMenuDC methods; replaced
3134 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3135 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3136 * InternalWindowManager.cs: Added use of PaintEventStart/End to
3137 handling of WM_NCPAINT message, now passing the PaintEventArgs to
3138 the PaintWindowDecorations method
3139 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3140 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3141 * MenuAPI.cs: Made tracker window invisible
3143 - Removed GetMenuDC and ReleaseMenuDC methods
3144 - Implemented the client=false path for PaintEventStart and
3147 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
3149 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3150 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3153 - MaximizeBox, MinimizeBox: Recreate the handle when setting
3155 - CreateParams: Reworked the styles to match MS look'n'feel,
3156 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3157 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3159 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
3161 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
3162 window is not mapped, since otherwise every form that's being
3163 created is considered minimized, which is wrong.
3164 * Form.cs: Catching the exception and returning our internal value
3167 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
3169 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3170 SetWindowMinMax() to have means to tell the driver about the minimum,
3171 maximum and maximized state window sizes. (Part of the fix for #76485)
3173 - Implemented tracking of minimum and maximum window size, now calling
3174 new SetWindowMinMax() driver method to tell the driver (Part of the
3176 - Finished handling of WM_GETMINMAXINFO method, now setting all values
3177 (Completes fix for #76485)
3178 - Calling new SetWindowMinMax driver method when the handle for a
3179 form is created, to make sure the driver knows about it even if
3180 the values have been set before the window was created
3181 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3182 to avoid messing up our anchoring calculations (partial fix
3184 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3186 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3187 - Improved GetWindowState() to detect 'Minimized' state on Metacity
3188 (and presumably other freedesktop.org compliant WMs). Left the
3189 assumption unmapped=minimized, needed for SetVisible to work.
3190 - Now setting the window state when creating windows
3191 - Fixed SetVisible to consider/set the window state when mapping
3192 a Form. We cannot set the state before it's mapped, and we cannot
3193 use Form.WindowState once it's mapped (since it would ask the
3194 driver and get 'normal'. Therefore, we grab the state before
3195 mapping, map, and then set state.
3196 - Implmemented SetWindowMinMax method; Metacity does not seem to
3197 honor the ZoomHints, though.
3199 - Removed MINMAXINFO (moved to XplatUIStructs)
3200 - Added SetWindowMinMax stub (on Win32 the only way to set that
3201 information is in response to the WM_GETMINMAXINFO message, which
3202 is handled in Form.cs)
3203 - Added logic to SetVisible to set the proper window state when a
3204 form is made visible (fixes #75720)
3206 2006-01-26 Jackson Harper <jackson@ximian.com>
3208 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3209 same way we handle them with Invoke.
3211 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
3214 - Added tracking of window state so CreateParams can return
3215 the appropriate style
3216 - Moved setting of WS_CAPTION style in CreateParams to allow
3217 styles without caption
3218 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
3219 control if the TextBox property is accessed. Fixes #77345
3221 - get_Created: now uses is_disposed and is_created to determine
3222 return value (suggested by Jackson)
3223 - CreateHandle: No longer exits if the handle is being recreated
3224 - RecreateHandle: If the handle is not yet created call the
3225 appropriate method to create either control or handle. If the
3226 control is already created CreateHandle will simply exit instead
3227 of just creating the handle
3228 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3229 now SendMessage WM_DESTROY directly to the control when DestroyWindow
3232 - When DestroyWindow is called, instead of waiting for the
3233 DestroyNotification from X11, we directly post it to the WndProc
3234 and immediately dispose the hwnd object.
3235 Same applies to DestroyChildWindows, and this obsoletes the
3236 expose_pending tracking. Contrary to Win32 behaviour we destroy our
3237 child windows before our own, to avoid X11 errors.
3238 - Removed the direct sending of WM_PAINT on UpdateWindow
3240 - Reworked DoEvents and GetMessage to allow access to internal queue
3241 even when trying non-blocking access to the queue. Fixes #77335.
3242 Based on a patch suggestion by Don Edvalson. The new private
3243 GetMessage can now also be used as a backend for a PeekMessage
3245 * XplatUI.cs: Improved debug output for CreateWindow
3247 2006-01-25 Jackson Harper <jackson@ximian.com>
3249 * Help.cs: Allow param to be null. Patch by Don Edvalson.
3251 2006-01-24 Jackson Harper <jackson@ximian.com>
3253 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3254 when we have a MaxDropItems lower then the selected index.
3256 2006-01-24 Jackson Harper <jackson@ximian.com>
3258 * Control.cs: Don't allow selection of non visible controls, allow
3259 selection of controls without parents.
3261 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
3263 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3264 * DataGridDrawingLogic.cs: Add editing row only when is necessary
3266 2006-01-23 Jackson Harper <jackson@ximian.com>
3268 * UpDownBase.cs: Make the textbox handle all the selection and
3269 tabbing. This fixes tabing to updown controls.
3271 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
3273 * TextBoxBase.cs: fixes exception thown the object was null
3275 2006-01-23 Jackson Harper <jackson@ximian.com>
3277 * ButtonBase.cs: Just use the base CreateParams. They set
3278 visibility and enabled correctly.
3281 * MonthCalendar.cs: Lets let the base set as much of the
3282 createparams as possible so we don't have duplicate code all over
3285 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
3287 * ThemeGtk.cs: Added TrackBar and some experimental code to
3288 get double buffering back
3290 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
3292 * DataGrid.cs: Allows row number set internally higher than the last
3293 when creating a new row. Restores the editing functionality.
3295 2006-01-20 Mike Kestner <mkestner@novell.com>
3297 * MimeIcon.cs: delay Image creation until the icons are accessed
3298 instead of creating 190 scaled images on GnomeHandler startup.
3300 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
3302 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3303 first call base before processing the event. Fixes #77279
3305 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
3307 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3308 that the stride for the GDI bitmap would match the stride of
3311 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
3313 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3315 2006-01-19 Jackson Harper <jackson@ximian.com>
3317 * ComboBox.cs: Hookup the text controls keydown event so we get
3318 those when the text control has the focus.
3320 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3322 * Label.cs: Now using the base events instead of defining new ones;
3323 this allows us to just call the base properties without having to
3324 duplicate all base property logic
3326 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3328 * Label.cs: A label by default is not a tabstop (Fixes one of our
3329 failing nunit tests)
3331 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3333 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3334 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3336 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3338 * Cursor.cs: Reimplemented creating cursor bitmaps without using
3339 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3342 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
3343 constructor creates images that can't be saved. Part of the fix
3345 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3346 - SetWindowState: Switched ShowWindow flags (part of an upcoming
3347 bug fix for handling window state in forms properly)
3349 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3351 * ThemeGtk.cs: Simplify ScrollBar drawing
3353 2006-01-18 Jackson Harper <jackson@ximian.com>
3355 * Splitter.cs: Set the default dock style for the splitter control
3358 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3360 * ThemeGtk.cs: Corrected StateType and ShadowType for
3363 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3365 * Control.cs: Make use of Theme.DoubleBufferingSupported
3367 - Added drawing for flat style buttons
3368 - Added ScrollBar drawing
3370 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3372 * ThemeClearlooks.cs: Removed some unneeded code.
3373 * ThemeGtk.cs: First part of ThemeGtk enhancements.
3375 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
3377 * LinkLabel.cs: We need to update the hover drawing when
3378 leaving the control as well.
3380 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
3382 * DataGrid.cs: Clicking on non empty areas in the columns
3383 area was giving an exception
3385 2006-01-17 Jackson Harper <jackson@ximian.com>
3387 * ThemeWin32Classic.cs:
3388 * ListView.cs: Do not draw/clip the headers when the header style
3391 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
3393 * DataGrid.cs: Fixes 77260
3395 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
3397 * DataGrid.cs: Clicking on a column on a empty grid was giving
3400 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
3402 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3403 or any keypress will crash the grid.
3405 2006-01-17 Mike Kestner <mkestner@novell.com>
3407 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3408 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
3409 invisible/previously-visible items.
3412 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
3414 * ThemeClearlooks.cs:
3415 - Added CL_Draw_Button method; now other theme controls that are
3416 not derived from button or do not have a button can draw buttons
3418 - Updated ComboBox drawing
3419 - Beautified RadioButton drawing
3420 - Corrected drawing of bottom and left tabs
3421 - Beautified DateTimePicker and MonthCalendar
3422 - Added CPDrawButton and CPDrawRadioButton
3424 2006-01-16 Jackson Harper <jackson@ximian.com>
3426 * ComboBox.cs: Set the initial value of the scrollbar to the
3427 current index. Reduce the numbers of refreshs and IndexOfs called.
3429 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
3431 * FileDialog.cs: When the file listview is focused hitting the
3432 backspace key moves the fileview to the parent directory
3434 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3437 - Added RecreateHandle call when changing taskbar visibility to
3438 trigger reparenting in Win32 driver (Fixes #75719)
3439 - If a window has minimize or maximize buttons, it cannot have
3442 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3443 the toplevel form with FosterParent (A toolwindow not on the
3444 taskbar) (Fixes #75719)
3445 - Made FosterParent a toolwindow
3447 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3449 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3451 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3453 * ToolTip.cs: If SetToolTip is called from a control and the mouse
3454 is currently over that control, make sure that tooltip_window.Text
3457 2006-01-13 Mike Kestner <mkestner@novell.com>
3459 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3461 2006-01-13 Jackson Harper <jackson@ximian.com>
3463 * TreeView.cs: On MS GetNodeAt never actually factors in the X
3464 value passed. Also redraw the selected node when we recieve
3465 focus, so tabbing between trees works correctly.
3467 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3469 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3470 ~/.gconf/%gconf-tree.xml, so use
3471 .gconf/desktop/gnome/interface/%gconf.xml
3473 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3475 * TextControl.cs: Draw text in gray if control is disabled
3477 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3479 * TreeView.cs: Draw the focus rectangle outside the highlight, to
3480 make sure it's always visible. Fixes #76680.
3482 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3484 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3486 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
3488 * PageSetupDialog.cs: Added.
3489 * PrintDialog.cs: Attributes.
3490 * PrintPreviewControl.cs: Updates.
3491 * PrintPreviewDialog.cs: Updates.
3493 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3495 * Control.cs: Undid my selection check fix, since it's not needed
3497 - Now considering the presence of hscroll/vscroll when sizing
3498 vscroll/hscroll respectively. Fixed bug #77077
3499 - Added Left/Up/Down/Right to IsInputKey list to prevent
3500 ContainerControl from stealing them. This fixes what I broke
3501 with my last checkin.
3503 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3505 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3506 I finally understand how the property can be set without a setter :-)
3508 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3511 - Switched RunLoop to use static Message.Create to create a
3513 - Added PreProcessMessage call in runloop for keyboard events; this
3514 is part of the fix for #77219, I overlooked this originally in the
3515 MSDN doc for PreProcessMessage
3517 - Removed call to PreProcessMessage from handling of keyboard
3518 messages; it's supposed to be done in the message pump
3519 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3520 per MSDN documentation.
3521 - IsInputChar: All chars are input chars by default; removed the
3522 parent calling chain, MS does not document that
3523 - PreProcessMessage: If IsInputChar is true, we want to return false
3524 to allow dispatching of the message
3525 - When selecting the next control, now also check that we're not
3526 selecting ourselves again and therefore return a false positive.
3528 - Tried to match return values for IsInputKey and ProcessDialogKey
3529 to what MS returns; moved processing of our special keys outside
3530 ProcessDialogKey since MS does not seem to return true on those.
3531 - Moved code that previously was in ProcessDialogKey into new private
3532 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3533 - Reworked handling of WM_CHAR to not have to duplicate code from
3534 Control.cs anymore, instead we simply call down to base.
3536 2006-01-12 Jackson Harper <jackson@ximian.com>
3538 * ComboBox.cs: We always need to refresh the text area when
3539 EndUpdate is called. Fixes the combobox in the file dialog.
3540 * Control.cs: Don't create the creator_thread until the controls
3541 handle is created. Also in InvokeRequired we check if the
3542 creator_thread is null. This gives the effect of InvokeRequired
3543 returning true if the controls handle is not created yet, and
3546 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3549 - Added StartLoop() driver method. This is used to allow drivers to
3550 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3551 loop for a particular thread
3552 - Added EndLoop() driver method. This is called once the message
3553 pump for the thread is shut down
3554 - Added SupportsTransparency method to allow the driver to indicate
3555 opacity support for windows
3557 - Removed TODO attribute, completed AllowTransparency property
3558 - Added documented logic to Opacity
3559 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3560 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3561 versions of CompatibleTextRendering
3562 * X11Structs.cs: Added opacity atom to our atom enumeration
3563 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3564 of a form might be set before it's reparented by the WM, and we need
3565 the opacity value without calling up to Form)
3566 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
3567 SupportsTransparency() driver methods
3568 * Application.cs: Now calling StartLoop and EndLoop driver methods
3570 - Added opacity atom registration
3571 - Added StartLoop()/EndLoop() methods. They're empty right now but
3572 will need to get implemented when we switch to a per-thread queue
3573 - Implemented SupportsTransparency() method
3574 - Implemented SetWindowTransparency() method
3575 - Added support for setting the opacity value when a window is
3576 reparented (since the opacity needs to be set on the WM frame)
3577 * XplatUIOSX.cs, XplatUIWin32.cs:
3578 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3580 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
3582 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3584 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
3586 * FileDialog.cs: Added ToolTip for MWFFileView
3587 * MimeIcon.cs: Rewrote GnomeHandler.
3588 - Get currently used gnome icon theme from
3589 ($HOME)/.gconf/%gconf-tree.xml
3590 - Make use of inherited icon themes
3591 - Support SVG icon themes like Tango via librsvg
3593 2006-01-12 Miguel de Icaza <miguel@novell.com>
3595 Revert's Jackson's revert which broke 2.0 builds. Fix both
3598 * Application.cs: Move the use_compatible_text_rendering outside
3599 the NET_2_0 define. If we ever need to use the
3600 use_compatible_text_rendering on the individual controls they will
3601 access the variable from the common shared code paths.
3603 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3606 - Added more granular debug options
3607 - Added method to print both window text and id
3608 - Switched debug output to use new Window() debug method
3609 - Added IsEnabled() driver method
3610 - Added EnableWindow() driver method
3612 - Removed end_modal; no longer needed, new loop handles termination
3613 via 'closing' variable
3614 - If form is modal, setting DialogResult will now initiate loop
3615 termination via 'closing' variable
3616 - Added support for is_enabled/WS_DISABLED to CreateParams
3617 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3619 - Removed code that's now in RunLoop from ShowDialog()
3620 - Added various documented sanity checks to ShowDialog()
3621 - Added handling of WM_DESTROY message; we set 'closing' on getting
3622 the message to indicate the message pump to terminate
3623 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3624 send by the Application.ExitThread method. (We send the message
3625 to destroy the window after all other events have been
3626 processed through the queue, instead of destroying the handle
3628 - Moved code from Close() method to WM_CLOSE handler; added logic
3629 to only send close-related events if the form is not displayed
3631 * Splitter.cs (..ctor): Fixed typo in resource name
3633 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3635 - set_Cursor: Now only setting calling into XplatUI if the handle for
3636 the control is already created; this avoids implict handle creation
3637 or crashes if it's not created
3638 - set_Enabled: Now setting the enabled state via the new driver method
3639 instead of just tracking it
3640 - CreateParams: Added logic to set WS_DISABLED based on enabled state
3641 - CreateControl: Reordered event firing and method calls to more
3642 closely fire events in the order MS does. Now setting the
3643 enabled state in the driver when creating the control.
3644 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3646 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3647 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
3648 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3650 - Added tracking of window enabled state (get_Enabled/set_Enabled)
3651 - Added EnabledHwnd property to easily allow a driver to find the
3652 handle of the first enabled window in the parent chain (this is
3653 used by drivers to pass up input events of disabled windows)
3654 * XplatUIDriver.cs: Added IsEnabled() method
3656 - Removed crude and obsolete exiting tracking variable
3657 - Removed internal ModalRun(); replaced by RunLoop()
3658 - Implemented private CloseForms() method to allow closing all
3659 windows owned by a particular (or all) threads
3660 - Exit() now properly closes all windows without forcing the message
3662 - Removed obsolete InternalExit() method
3663 - Changed Run() methods to use new RunLoop() message pump
3664 - Implemented new RunLoop() method for both modal and non-modal forms
3666 - get_CreateParams: Added setting of WS_DISABLED
3667 - Simplified ShowDialog(); now all the work is done in RunLoop(),
3668 invoked via Form.ShowDialog()
3669 * NativeWindow.cs: We don't remove the window from the collection when
3670 the handle is destroyed; there might still be messages for it in the
3671 queue (mainly the resulting WM_DESTROY); instead it will be removed
3672 when Control calls InvalidateHandle in the WM_DESTROY handler
3674 - CreateWindow: Added logic to handle the WS_DISABLED window style
3675 - EnableWindow: Implemented based on Hwnd.Enabled
3676 - GetMessage: Reset PostQuitState so the method can be called again
3677 - Implemented support for disabled windows (passing messages to the
3678 first enabled parent) in handling all input messages
3679 - Added optimizations for handling Expose events
3680 - Implemeted new driver method IsEnabled()
3681 - Now always resetting paint pending tracking vars when we start paint
3682 - Re-implemented UpdateWindow via just sending a WM_PAINT message
3683 * XplatUIOSX.cs: Added IsEnabled method stub
3684 * XplatUIWin32.cs: Implemented new IsEnabled() method
3686 2006-01-11 Jackson Harper <jackson@ximian.com>
3688 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3689 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3691 * ColorDialog.cs: Clear out the old form before adding the new
3694 2006-01-11 Jackson Harper <jackson@ximian.com>
3696 * X11Dnd.cs: Make sure to add all the text formats when adding
3697 strings to the data object.
3698 * TreeNodeCollection.cs: When adding to a sorted tree we need to
3699 do some redrawing too. Also change the UpdateNode to an
3700 UpdateBelow so the newly added node gets painted.
3702 2006-01-11 Miguel de Icaza <miguel@novell.com>
3704 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3705 LinkLabel.cs, PropertyGrid.cs: Implement the
3706 UseCompatibleTextRendering property for 2.x
3708 * Application.cs (SetCompatibleTextRenderingDefault): Add.
3710 2006-01-11 Jackson Harper <jackson@ximian.com>
3712 * TreeView.cs: Use the property for setting the selected node so
3713 the correct events get raised.
3714 * TreeNode.cs: Update the tree when the fore/back colours of a
3717 2006-01-10 Jackson Harper <jackson@ximian.com>
3719 * TreeView.cs: Allow setting SelectedNode to null.
3721 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3723 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3725 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3727 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3729 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3731 * PrintDialog.cs: Added attributes and set default property values.
3733 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3735 * PrintControllerWithStatusDialog.cs:
3736 Added PrintControllerWithStatusDialog.
3738 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3740 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
3741 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3743 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3745 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3747 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
3749 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3750 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3752 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
3754 * MimeIcon.cs: Added internal class SVGUtil.
3756 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
3758 * FileDialog.cs: Don't crash if there are two files with the
3759 same name but different locations.
3761 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
3763 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3764 dates across multiple month grids. Used to not highlight entire
3765 month, but does now.
3767 2006-01-06 Jackson Harper <jackson@ximian.com>
3769 * MonthCalendar.cs: Removed DoEvents call to prevent a running
3770 message loop. Change timer intervals to numbers that seem more
3773 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
3775 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3776 object for location info since screen object is now implemented.
3778 2006-01-05 Jackson Harper <jackson@ximian.com>
3780 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3781 * AsyncMethodResult.cs: We no longer use a WeakReference for the
3782 AsyncMethodResult, this is because we ALWAYS want the
3783 ManualResetEvent to get set.
3784 * Control.cs: When disposing use an async invoke to call shutdown
3785 code, so that thigns don't block on the finalizer thread. Also
3786 check if we even have a message loop before trying to send
3787 messages, if we don't then don't bother sending messages.
3788 - No more weak references for async methods
3789 * XplatUIDriver.cs: No more weak references for async methods.
3791 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3793 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3794 returns two FontFamily with the same name
3796 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
3798 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
3799 drawing disabled text. Instead using the ColorGrayText color
3801 2006-01-04 Jackson Harper <jackson@ximian.com>
3803 * TreeNode.cs: redraw the node when its image index is changed.
3805 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
3807 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3808 time I checked there are no others like it.
3810 2006-01-04 Jackson Harper <jackson@ximian.com>
3812 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3813 this gives the behavoir I was looking for.
3814 * Control.cs: Special case Invoking EventHandlers, this matches MS
3815 and fixes part of bug #76326.
3817 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3819 * ThemeClearlooks.cs, FileDialog.cs:
3820 - Reflect the latest Theme class changes
3821 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
3824 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3826 * Theme.cs: Cache UI resource images and resize them if needed
3828 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3830 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3831 is called. This fixes the crash in Nexxia when setting the font
3832 attributes in the chat. [However, RTF needs a look-over to make sure
3833 that all SelectionXXX methods handle the special case that selection
3834 is empty and therefore the change must be applied to all text starting
3835 at the cursor/selection start]
3837 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3839 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3840 XplatUIOSX.cs: Added SendMessage and PostMessage methods
3841 * X11Keyboard.cs: Switched to new way of calling PostMessage
3843 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3845 * Theme.cs: Added theme interface for images to allow the theme to
3846 control what images are used for things like FileDialog, MessageBox
3848 * MessageBox.cs: Now uses the new Theme icon/image interfaces
3850 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
3853 - Removed some dead code
3854 - Opening a recently used file does work now
3855 - Small UI enhancements
3858 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
3860 * FileDialog.cs: Forgot too add __MonoCS__
3862 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
3864 * FileDialog.cs: We are able to read recently used files now let's
3865 go on and write them.
3867 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
3869 * FileDialog.cs: Breathe some life into "last open"/"recently used"
3871 * MimeIcon.cs: Do a check for the top level media type also
3873 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
3875 * ThemeClearlooks.cs:
3876 - Added CPDrawStringDisabled
3877 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3878 some chars if the text doesn't fit into text_rect
3879 - DrawListViewItem: If View = View.LargeIcon center the image;
3880 rewrote the drawing of ListViewItem.Text if View =
3883 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
3885 * MimeIcon.cs: Use default KDE icon theme if there is no
3886 "48x48" directory for the current icon theme, fixes #77114
3887 * Mime.cs: Disable not working and actually not used code.
3888 * ThemeWin32Classic.cs:
3889 - Replace "new SolidBrush" in GetControlBackBrush and
3890 GetControlForeBrush with ResPool.GetSolidBrush
3891 - Changed DrawListViewItem from private to protected virtual
3893 - Added form.MaximizeBox = true
3894 - Don't throw an exception if there is a broken symbolic link
3896 2005-12-23 Jackson Harper <jackson@ximian.com>
3898 * TabControl.cs: Give the panels focus, keyboard navigation is
3899 fixed so this works correctly now.
3900 - We need these key events also.
3901 * ToolBar.cs: Remove some of the poor mans double buffering.
3903 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
3905 * ComboBox.cs: The internal TextBox now returns the focus.
3907 2005-12-23 Jackson Harper <jackson@ximian.com>
3909 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
3911 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3913 * Control.cs: Removed debug code
3914 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3917 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3919 * Control.cs: When creating the control, update the Z-order after
3920 all it's children are created, too. (Fixes nexxia not showing
3923 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3925 * Control.cs: Do not update the anchoring distances if layout is
3926 suspended, instead do it once layout is resumed
3928 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3931 - After many hours of debugging, for both Jackson and
3932 myself, it turns out that it helps to set the parent of a control
3933 if you want to actually see it onscreen. In the spirit of that
3934 discovery, we're now setting the parent of the control and
3935 it's children when the control's handle is created. This fix
3936 will make Lutz Roeder's Reflector run happily.
3937 - now just creating the handle instead of the whole control when
3938 getting a graphics context for the control.
3940 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3942 * ScrollableControl.cs: When calculating the canvas, don't consider
3943 the scrollbar widths. Instead, predict if horizontal scrollbar
3944 will affect canvas when deciding on vertical display and vice versa.
3946 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3948 * RichTextBox.cs: Set default RTF font for documents that don't
3949 have a font table (Fixes #77076)
3951 2005-12-22 Jackson Harper <jackson@ximian.com>
3953 * TextBoxBase.cs: It's difficult to do, but you can have an empty
3954 clipboard. This prevents a NullRef in that case.
3955 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3956 clipboard. PRIMARY is for the currently selected text only. (We
3957 should implement PRIMARY at some point.
3959 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3961 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3962 a Unicode function with a structure that was defined in Ansi way.
3965 2005-12-21 Jackson Harper <jackson@ximian.com>
3967 * StatusBar.cs: Statusbar handles its fore/back colours on it's
3968 on. Because thats how it rolls. (and this avoids it using ambient
3970 * ThemeWin32Classic.cs: Use the proper back color for filling.
3971 * Menu.cs: Use the system menu bar color for drawing menu
3972 bars. Using the window back color will bring ambient colours into
3975 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
3977 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3978 Bitmaps were created and not disposed.
3980 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3982 * Control.cs (CreateControl): Don't do anything if the control is
3983 already created, otherwise we'd fire the OnCreated event more than
3986 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3988 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3989 will always match. Instead return -1. Fixes #76464.
3991 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3993 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3994 neither the beginning nor the end of the line (Fixes bug #76479)
3996 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3999 - ControlNativeWindow.ControlFromHandle(): Now handling situation
4000 where handle is invalid
4001 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4002 instead of slower linear search
4003 * NativeWindow.cs: Don't remove the window from the hashtable until
4004 after the driver has destroyed it (since the driver might use
4005 Control.FromHandle to lookup the control object
4006 * Hwnd.cs: Added DestroyPending property to track if a window is
4007 already destroyed as far as the driver is concerned and only hasn't
4008 yet notified the control
4010 - Activate(): Check if the window is still valid before using the
4012 - Implemented DestroyChildWindow() method to mark child windows as
4013 destroyed when a window is destroyed. This prevents situations
4014 where we might call an X method based on queued events for a
4015 window that already has been destroyed but we haven't yet pulled
4016 the destroy method from the queue.
4017 - Added a call to the new DestroyChildWindow() method to the drivers
4018 DestroyWindow code. Also now marking the destroyed window itself
4021 2005-12-20 Jackson Harper <jackson@ximian.com>
4024 * StatusBarPanel.cs: Don't calculate panel sizes on draw
4025 anymore. Just do them when needed, also track the rects of panels
4026 so that we can optimize refreshing more in the future.
4028 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
4030 * ColorDialog.cs: Fixed focus drawing in small color controls
4032 2005-12-19 Jackson Harper <jackson@ximian.com>
4034 * InternalWindowManager.cs:
4035 * MdiWindowManager.cs: Cleanup some coordinate system changes so
4036 moving windows works properly.
4038 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
4041 - Removed call to InitLayout() from SetBoundsCore(); doc says
4042 it's only called when a control is added to a container
4043 - Split InitLayout logic, moved to separate UpdateDistances() method
4044 since we need to perform those calculations more often than just
4045 when adding the control to a container. (Needed to fix #77022)
4046 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4047 - Reduced the OnBindingContextChanged events count, don't send them
4048 unless the control is created, we still aren't totally matching
4049 MS, but I can't quite figure out some of their rules
4051 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
4053 * ThemeClearlooks.cs: Corrected distance between ProgressBar
4056 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
4058 * ThemeClearlooks.cs:
4059 - Updated ProgressBar drawing
4060 - Corrected drawing of ScrollBars and scroll buttons
4061 - Some temporary fixes for minor pixel artefacts
4063 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
4066 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4067 cause events to be sent in the same order as MS does.
4068 - Added ChangeParent() method to trigger various OnXXXChanged events
4069 that need to be fired when a parent changes (This is a reworking
4070 of the patch from r54254, with the X11 errors fixed)
4071 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4072 since on MS we get OnLayoutChanged events when calling Clear()
4073 - Changed Enabled property to consider parent state as well, if a
4074 parent is not enabled, the control will not be either
4075 - Changed Parent property to simply call Controls.Add() since that
4076 now does all the work required, this way we avoid code duplication
4077 - Threw in a few OnBindingsContextChanged calls to try and match
4078 when MS sends them. We seem to send a few too many, though.
4079 - Added call to CreateControl when adding the control to a parent.
4080 We were never calling CreateControl. Still needs some work, in
4081 some places we treat HandleCreated and ControlCreated as equal,
4083 - Removed obsolete commented out code from UpdateZOrder()
4085 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
4087 * ThemeClearlooks.cs: Updated TrackBar drawing.
4089 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
4091 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4093 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
4095 * FileDialog.cs: Add the Help button and the open readonly
4096 checkbox only if needed
4098 2005-12-16 Jackson Harper <jackson@ximian.com>
4100 * Control.cs: Make sure we have an active menu before trying to
4101 process commands on it. Prevents menu-less forms from crashing
4102 when Alt is pressed.
4103 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4105 * RichTextBox.cs: Expand statement to help out gmcs and fix the
4108 2005-12-16 Jackson Harper <jackson@ximian.com>
4110 * InternalWindowManager.cs: Don't translate tool windows screen
4111 coordinates. This fixes windows 'bouncing' around when being moved.
4113 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
4116 - MaxLength now treats 2^31-1 equal to unlimited length (this is
4117 not quite MS compatible, MS uses that number only for single line
4118 and 2^32-1 for multi-line, but I figure it won't hurt keeping
4120 - Now enforcing the MaxLength limit when entering characters
4121 - Added argument to internal Paste() method to track if it's called
4122 from programatically or via keyboard, since keyboard driven pastes
4123 need to enforce max-length
4124 - Added logic to Paste to only paste as many chars as MaxLength
4126 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4128 - Added Length property to return number of characters in document
4129 - Added private CharCount property which only tracks actual chars
4130 in the document (no linefeeds) and fires event when CharCount
4132 - Added tracking of character count to all methods that alter it
4133 - Added LengthChanged event to allow applications to subscribe
4134 to any changes to the document
4136 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
4139 - Removed local password_char field (moved to TextBoxBase)
4140 - Now setting the document's password var when password is
4143 - Added password_char field (needed here so MultiLine can
4145 - Added logic to MultiLine property setter to set the document's
4146 variable when password display is allowed
4147 - Removed debug code and made some debug code conditional
4149 - Added RecalculatePasswordLine() method to handle special password
4151 - Added PasswordChar property, also added related tracking vars
4152 - Draw() method now uses local text var for grabbing text to draw,
4153 this var is set to line.text unless we're doing password display,
4154 then it is set to the pre-generated all-password-chars line
4155 - Added calling RecalculatePasswordLine() method for password lines
4157 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
4160 - Added Reparented property to allow tracking of Window Manager
4161 reparenting actions (which affect X/Y calculations of toplevel
4163 - Made ToString() print window handles in hex
4165 - AddConfigureNotify(): Now uses reparented state off Hwnd to
4166 determine if X/Y needs offsetting
4167 - AddConfigureNotify(): Fixed offset calculations
4168 - Now adds ReparentNotify messages into the queue
4169 - Now processes ReparentNotify messages and causes a
4170 WM_WINDOWPOSCHANGED message to be sent upstream if a window
4171 is reparented (as most likely it's X/Y coordinates are changed
4174 2005-12-14 Jackson Harper <jackson@ximian.com>
4176 * XplatUIX11.cs: Tool windows still need to respek focus.
4178 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
4180 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4181 have a working release
4183 2005-12-13 Jackson Harper <jackson@ximian.com>
4185 * Form.cs: Update styles after setting the border style regardless
4186 of whether or not the window is using a window manager.
4188 2005-12-13 Jackson Harper <jackson@ximian.com>
4190 * Form.cs: We now hook into an internal window manager instead of just an
4191 MDI subsystem, this is so we can have properly behaving tool windows.
4192 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4193 * InternalWindowManager.cs: New internal class that acts as a
4194 window manager for tool windows and as a base for mdi windows.
4195 * MdiWindowManager.cs: New class that acts as a window manager for
4198 2005-12-12 Jackson Harper <jackson@ximian.com>
4200 * Control.cs: Updates so we match behavoir for for implicit
4201 controls. Fixes explosions in MDI.
4203 2005-12-12 Jackson Harper <jackson@ximian.com>
4205 * Control.cs: Implement Invalidate (Region).
4207 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
4210 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
4211 the same events as MS does. MS fires events for each property
4212 except, for unknown reasons, Cursor, when the control is reparented.
4213 I can't seem to totally match add/remove since MS also fires some
4214 VisibleChanged events, which makes no sense. Consolidated the
4215 parenting code into a separate method so it can be called from
4216 both Add and Remove. set_Parent no longer needs any special logic
4217 as it calls the parent's add method which implicitly fires
4219 - Removed some obsolete code and debug output
4220 - Enabled state is inherited from parents, if this is enabled
4222 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
4224 * Form.cs: Removed commented out code
4226 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
4229 - Added internal version of Invoke, with additional argument
4230 indicating if we're calling it from a Dispose() handler. That
4231 way we can avoid BeginInvoke throwing an exception if we're
4232 calling for an already destroyed window.
4233 - Added a dispose argument to BeginInvokeInternal, and made the
4234 check if a valid window handle chain exists conditional on
4235 it not being a dispose call
4236 - Removed code in DestroyHandle to destroy our children. Since we
4237 now handle the WM_DESTROY message we will catch all our children
4239 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4241 - Added a field to track the application context of the form.
4242 - No need to set closing variable as response to WM_CLOSE, instead
4243 we destroy the window. We also call PostQuitMessage if the form
4244 has an application context (which makes it the main app form,
4245 which, when closed terminates the app)
4247 - Dropped Exit() method, it's naming was confusing
4248 - Added PostQuitMessage() which causes GetMessage to return false
4249 once the message queue is empty
4250 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
4252 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4253 no longer a valid XplatUI method, but left it in since it's used
4254 internally. Added empty PostQuitMessage() method.
4255 * MenuAPI.cs: Replaced call to Exit() with call to
4256 PostQuitMessage, even though this is probably no longer needed.
4257 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4258 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4260 - Replaced call to XplatUI.Exit() with PostQuitMessage()
4261 - Removed old debug code that would call XplatUI for exception
4262 display, enabled standard exception handling (Still not enabled
4263 though, until NativeWindow's ExternalExceptionHandler define
4266 - Added internal method to allow control to update NativeWindow
4267 after a window has been destroyed
4268 - Added handling of already destroyed windows when calling i
4270 - Added removal of handle from list on ReleaseHandle
4272 - Dropped GetMessageResult var and related code
4273 - Added PostQuitState to field to track if PostQuitMessage has been
4275 - Dropped Exit() method
4276 - Added PostQuitMessage() method
4277 - GetMessage now will return false if PostQuitState is set and no
4278 more messages are in the queue.
4279 - Expose handler will no longer generate WM_PAINT messages if we are
4280 in PostQuitState since it's very likely any windows have already
4281 been destroyed, and since Hwnd won't get updated until we have
4282 processed the DestroyNotify we'd be causing X errors.
4284 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4286 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4287 Thanks to Mike for pointing out the err of my ways.
4289 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4291 * Control.cs(PreProcessMessage): Moved menu handling back, but
4292 after all other key handling, to match MS (who handles Menu in
4294 * Menu.cs (WndProc): Removed my brainfart
4296 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4298 * Control.cs(PreProcessMessage): Removed special menu handling
4299 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4301 2005-12-07 Mike Kestner <mkestner@novell.com>
4303 * Control.cs : special case SYSKEYUP so that we can adjust keynav
4304 state according in tracker.
4305 * Menu.cs : promote tracker field to base class and provide a tracker
4306 lookup capability. Add/Remove shortcuts dynamically if the top menu
4307 has a tracker. Unparent items that are removed from the collection.
4308 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4309 * Theme*.cs: add always_show_hotkeys field to support configurability
4310 of mnemonic display. win32 doesn't show mnemonics until Alt is
4313 2005-12-07 Jackson Harper <jackson@ximian.com>
4315 * MdiChildContext.cs: Use Control.ResetCursor.
4316 * Control.cs: ResetCursor needs to set the property so that the
4317 correct XplatUI call gets made.
4319 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4321 * Control.cs: More fixes to make our key events match MS. We
4322 were not setting the modifier state on KeyData, and we were
4323 not generating any events when Alt was pressed with a key
4324 since handling of WM_SYSxxx was missing for the OnKey methods.
4326 2005-12-07 Jackson Harper <jackson@ximian.com>
4328 * MdiChildContext.cs: reenable the sizing code.
4329 - When the mouse leaves a window reset its cursor.
4331 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
4333 * ThemeClearlooks.cs: Reflect latest Hwnd changes
4335 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4337 * Hwnd.cs: Now using the theme 3d bordersize to calculate
4338 widths of Fixed3D borders
4340 2005-12-07 Jackson Harper <jackson@ximian.com>
4342 * MdiClient.cs: Fix warnings. Earn Mike's love.
4344 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
4346 * ThemeClearlooks.cs:
4347 - Adjusted mouse over button color
4348 - Added first parts of CheckBox drawing
4349 - Added correct color for selected text background
4350 - Fixed ComboBox drawing
4351 - Added CPDrawBorder3D and CPDrawBorder
4353 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4355 * XplatUIX11.cs: Added call to XBell for AudibleAlert
4357 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4359 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4360 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4361 alert users via sound. We could add an enum arg with different
4362 types of alerts in the future
4364 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4366 * Control.cs: Fix behaviour problems pointed out by Mike
4368 2005-12-05 Mike Kestner <mkestner@novell.com>
4370 * StatusBarPanel.cs: add Invalidate method and hook it into all the
4371 prop setters. Calls parent.Refresh for now, but could be maybe be
4372 optimized with an internal method on StatusBar at some point.
4375 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
4377 * RichTextBox.cs: Implemented get_SelectionColor
4379 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
4381 * ThemeClearlooks.cs:
4383 - Draw black button border only if button is Form.AcceptButton
4384 - Draw correct button color for pressed RadioButton if the mouse
4385 has entered the button
4386 - Updated ProgressBar drawing!
4387 - Updated CPDrawSizeGrip drawing
4388 - Updated StatusBarPanel drawing
4390 2005-12-05 Mike Kestner <mkestner@novell.com>
4392 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4393 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4395 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
4397 * ThemeClearlooks.cs: Initial check-in, activate with
4398 export MONO_THEME=clearlooks
4399 * ThemeEngine.cs: Added ThemeClearlooks
4401 2005-12-03 Mike Kestner <mkestner@novell.com>
4403 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4406 2005-12-02 Jackson Harper <jackson@ximian.com>
4408 * Form.cs: If the child form has no menu the default main menu is
4409 used as the active menu.
4411 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4413 * ListBox.cs: Check if any items exist before trying to resolve
4414 coordinates into items
4416 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4418 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4419 as the second color for the background hatch
4421 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4423 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4424 * RichTextBox.cs: FormatText position arguments are 1-based, now making
4425 sure that what we pass to FormatText is always 1-based. Fixes #76885
4427 2005-11-29 Miguel de Icaza <miguel@novell.com>
4429 * NumericUpDown.cs (EndInit): When we are done initializing,
4430 reflect any updates on the UI.
4432 2005-12-02 Jackson Harper <jackson@ximian.com>
4434 * ImplicitHScrollBar.cs:
4435 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4436 their container controls.
4437 * TreeView.cs: Use the new implicit scrollbars.
4439 2005-12-02 Jackson Harper <jackson@ximian.com>
4441 * TreeView.cs: Make top_node internal so the TreeNodeCollections
4443 * TreeNodeCollection.cs: If we remove the topnode we need to
4444 update topnode to the next node in line.
4445 - When clearing nodes go through the same process as removing
4446 them, so they get depareneted and checked if they are top node.
4448 2005-12-01 Jackson Harper <jackson@ximian.com>
4450 * TreeView.cs: When imagelists are used the image area is
4451 selectable as well as the text.
4452 - If there are no selected nodes select the first one.
4453 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4454 so don't do it more then we need to.
4456 2005-12-01 Jackson Harper <jackson@ximian.com>
4458 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4459 that arrows can be scaled.
4461 2005-12-01 Jackson Harper <jackson@ximian.com>
4463 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4464 fail. Patch by Dieter Bremes
4466 2005-11-30 Jackson Harper <jackson@ximian.com>
4468 * Form.cs: Property is 2.0 only
4469 * PrintDialog.cs: Signature fix.
4471 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
4474 - No longer artificially moves text 2 pixels down (now that we have
4475 borders this is no longer needed)
4476 - Added calcs for left, hanging and right indent
4478 2005-11-23 Mike Kestner <mkestner@novell.com>
4480 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4482 2005-11-30 Jackson Harper <jackson@ximian.com>
4484 * MdiChildContext.cs: Set the cloned menus forms, as these don't
4485 get cloned as part of CloneMenu ().
4486 * Menu.cs: Make sure the parent of the items get set correctly
4487 when they are added. And the owners are notified of the changes.
4488 * Form.cs: Create an ActiveMenu property, so that when MDI is used
4489 we can change the menu being displayed/handled by the form without
4490 changing the menu assosciated with the form.
4491 - Don't let Mdi children draw/handle menus.
4493 2005-11-30 Jackson Harper <jackson@ximian.com>
4495 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4496 a MenuChanged event. Just to make the API a little more
4499 * MenuItem.cs: Use the new OnMenuChanged
4500 * MdiChildContext.cs: Handle menu merging.
4501 * Form.cs: Implement MergedMenu.
4503 2005-11-30 Jackson Harper <jackson@ximian.com>
4505 * Menu.cs: We were misusing Add. Add goes behind the specified
4506 index according to the docs, and does not replace the specified
4507 index. So I added an Insert method.
4509 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
4511 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4512 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4514 * RichTextBox.cs: Added calls to base for DnD events
4516 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
4519 - Fixed drag-selection related crash; style fixes
4520 - Implemented undo class
4521 o Implemented method to capture document state for specified
4522 range in document tree
4523 o Implemented method to restore captured document state
4524 o Implemented cursor tracking
4525 o Implemented basic undo stack
4526 - Added undo cursor tracking to methods altering cursor location
4527 - Added undo tracking to selection deletion (still missing
4528 other text-altering hookups)
4530 - Added SelectionLength property
4531 - Implemented CanPaste()
4532 - Implemented Paste()
4533 - Added missing protected methods
4534 - Fixed RTF->Document conversion; now uses font index 0 and color
4535 index 0 as the default font for the parsed text
4536 - Fixed RTF<->Document font size translation
4537 - Fixed RTF generation, now properly handles cross-tag boundaries
4538 for single line selection
4539 - No longer always appends blank line to generated RTF
4541 - Added missing attributes
4542 - Hooked up undo-related methods
4544 - Implemented Copy()
4545 - Implemented Paste()
4547 - Fixed caret mis-behaviour on backspace across line-boundaries
4549 2005-11-29 Jackson Harper <jackson@ximian.com>
4551 * MdiClient.cs: Add a method for activating mdi children. Very
4552 basic right now. I imagine someday it might need more girth.
4553 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4554 children windows names are added to the menu item.
4555 * ThemeWin32Classic.cs: Draw the arrow if the item is an
4556 mdilist. This happens regardless of whether or not there are any
4557 mdi windows to see in the list, and according to my tests happens
4558 before the items are even added. Also happens if there isn't even
4559 an mdi client to get windows from.
4561 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
4563 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4564 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4566 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
4568 * DataGridTableStyle.cs:
4569 - Create always the styles for the missing columns even if they are
4570 provided by the user (not default table style)
4573 - Fixes SetDataBinding (always re-attach source)
4574 - Fixes SetNewDataSource (only clear styles if they are not for
4576 - Expands OnTableStylesCollectionChanged to handle style refresh
4579 2005-11-29 Jackson Harper <jackson@ximian.com>
4581 * FileDialog.cs: Implement missing bits, remove some dead
4583 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4584 creation of the panel so that the options set on the dialog are
4585 seen when the panel is created.
4586 * TreeView.cs: raise a click when items are clicked.
4588 2005-11-29 Jackson Harper <jackson@ximian.com>
4590 * MdiClient.cs: Pass some signature methods through to base.
4592 2005-11-28 Jackson Harper <jackson@ximian.com>
4594 * ListView.cs: Raise the click event when items are clicked.
4596 2005-11-28 Jackson Harper <jackson@ximian.com>
4598 * MdiClient.cs: Make this algorithm even more beautiful. And fix
4601 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
4603 * ThemeNice.cs: - Removed 1 pixel bitmaps
4604 - Use SmoothingMode.AntiAlias where it makes sense
4605 (ScrollButton arrow for example)
4606 - Enhanced Button focus drawing
4607 - Fixed ComboBox drawing (no artefacts anymore, focus
4608 rectangle is back again, reduced size of ComboButton, etc.)
4609 - Fixed RadioButton focus drawing for Appearence.Button
4610 - Slight ScrollButton redesign
4611 - Some LinearGradientBrush size fixes
4612 - GroupBoxes have now rounded edges
4613 - Fixed StatusBar drawing
4615 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
4617 * ThemeNice.cs: - Remove dead code
4618 - use correct background colors for menus, etc.
4619 - Fake pixel drawing with 1 pixel bitmaps
4621 2005-11-24 Jackson Harper <jackson@ximian.com>
4623 * MdiClient.cs: Size the scrollbars when resizing the window.
4624 - Resize the maximized windows when the client is resized
4625 * Form.cs: Make the child context available
4627 2005-11-23 Jackson Harper <jackson@ximian.com>
4629 * MdiChildContext.cs: Don't size windows if they are maximized.
4631 2005-11-23 Mike Kestner <mkestner@novell.com>
4633 * ContextMenu.cs: use MenuTracker.
4634 * Control.cs: remove menu handle usage.
4635 * Form.cs: remove menu handle usage.
4636 * Hwnd.cs: remove menu handle usage.
4637 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4638 motion and clicks to the new Tracker handlers.
4639 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4641 * MenuAPI.cs: refactored to combine popup and menubar event handling.
4642 Killed the MENU and MENUITEM data types and associated collections
4643 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4644 MenuTracker class that exposes the leftovers from the old MenuAPI
4645 static methods. Restructured Capture handling so that only one grab is
4646 done for the entire menu hierarchy instead of handing off grabs to
4647 submenus. Tracker now has an invisible control to Capture when active.
4648 * MenuItem.cs: add sizing accessors, kill Create
4650 * Theme.cs: remove menu handle and MENU(ITEM) usage.
4651 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4652 MENU(ITEM). remove menu handle usage, use Menu directly.
4653 * XplatUIDriver.cs: remove menu handle usage.
4654 * XplatUIOSX.cs: remove menu handle usage.
4655 * XplatUIWin32.cs: remove menu handle usage.
4656 * XplatUIX11.cs: remove menu handle usage.
4658 2005-11-22 Jackson Harper <jackson@ximian.com>
4660 * Hwnd.cs: Don't compute the menu size for
4661 DefaultClientRectangle.
4662 - Reenable menu sizes being computed for GetClienRectangle.
4663 * Form.cs: Remove comment of trechery
4665 2005-11-22 Jackson Harper <jackson@ximian.com>
4667 * Hwnd.cs: The adjustments for the menu bar are made when it is
4668 attached to the form.
4670 2005-11-19 Jackson Harper <jackson@ximian.com>
4672 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4673 (just like on windows).
4675 2005-11-19 Jackson Harper <jackson@ximian.com>
4677 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4678 use real buttons anymore because they are in non client area. The
4679 one TODO here is that I need to somehow invalidate a section of
4680 the non client area.
4682 2005-11-18 Jackson Harper <jackson@ximian.com>
4684 * Control.cs: Put the enum check back in now that MDI doesnt have
4685 to use this to set border styles.
4686 * Form.cs: Only set mdi child windows borders if the handle has
4688 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4689 this directly on to the driver.
4690 - Get the move start position before adjusting for the titlebar
4691 height, this fixes the windows "skipping" when they are first
4694 2005-11-18 Jackson Harper <jackson@ximian.com>
4696 * XplatUIX11.cs: Just compute the mdi borders separately as they
4697 don't totally match up with normal form borders.
4699 2005-11-18 Jackson Harper <jackson@ximian.com>
4701 * Control.cs: Set WS_ styles for borders, so that the driver does
4702 not have to retrieve the control instance to figure out what kind
4703 of borders it should have.
4704 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4705 driver can know its an mdi child easily.
4706 * XplatUIX11.cs: Get the border styles and whether the window is
4707 MDI from the Styles and ExStyles params instead of having to get a
4708 control. This prevents a chicken and egg problem.
4710 2005-11-18 Jackson Harper <jackson@ximian.com>
4712 * MdiClient.cs: Fix typo so scrollbars show up correctly.
4714 2005-11-18 Jackson Harper <jackson@ximian.com>
4716 * MdiClient.cs: Calculate when to add and remove scrollbars
4718 * MdiChildContext.cs: Adjust the y position to take the titlebar
4720 - No height for FormBorderStyle.None
4722 2005-11-18 Jackson Harper <jackson@ximian.com>
4724 * Control.cs: Allow non enum values to be used for
4725 InternalBorderStyle. MDI does this to set a special border style.
4726 - New utility methods for converting points to/from client coords
4727 - Add the newly created control to the Controls collection before
4728 updating its style. This way UpdateStyle can walk the control
4729 heirarchy to find the control if needed.
4730 so I don't need to create a new Point object all the time.
4731 * Form.cs: Let MDI windows handle their border styles.
4732 - Set styles on MDI windows so the correct title style is derived.
4733 * MdiChildContext.cs: Move all the painting and window handling
4734 into the non client area.
4735 - Use correct sizing and put correct buttons on frames based on
4736 the FormBorderStyle.
4737 - Notify the mdi client about scrolling
4738 - Need to handle the buttons ourselves now, because they are all
4739 in non client areas and we can't add controls there.
4740 * MdiClient.cs: Halfway to scrolling, this implementation is
4741 somewhat broken though, we need to check to make sure other
4742 windows aren't causing scrolling before removing the bars. Also
4743 the bars need to be drawn on top, maybe I can switch implicit
4744 controls to be on top.
4745 * Hwnd.cs: caption_height and tool_caption_height are now
4746 properties of an hwnd, this way they can be set by the driver
4747 based on the type of window they are. In X11 the window manager
4748 handles the decorations so caption_height is zero unless its an
4750 - Add 3 pixel borders for MDI windows (0xFFFF).
4751 - Get rid of some code duplication, have DefaultClientRectanle
4752 just call GetClientRectangle.
4753 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4755 - Set border styles differently for mdi windows.
4756 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4759 2005-11-15 Mike Kestner <mkestner@novell.com>
4761 * Menu.cs: when adding an item to the collection, if item is already
4762 parented, remove it from the parent.
4764 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
4766 * X11DesktopColors.cs: Added KDE support
4768 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
4771 - Clipboard methods now can translate Rtf format
4772 - No longer removes clipboard contents whenever a new format is added
4773 to allow placing multiple formats on the clipboard
4774 * Clipboard.cs: Clipboard now supports getting a IDataObject and
4775 will place all formats contained in it onto the clipboard. Also
4776 now cleans the clipboard before placing a new object onto it
4778 - Implemented set_Rtf
4779 - Implemented set_SelectedRtf
4780 - Created InsertRTFFromStream() method to allow single code base
4781 for all properties and methods that insert RTF into document
4782 - Removed debug output
4784 - Fixed Delete(int) to fix up line numbers
4785 - Fixed ReplaceSelection to combine start and end line
4786 - Fixed serious DeleteChars bug that would leave the document tree
4788 - Improved DumpTree with several logic checks to detect broken
4790 - Removed debug lines
4791 - Fixed Caret.WordForward/WordBack moving code, now always also
4792 updates caret.tag (fixes crash when word-selecting across tag
4793 boundaries via keyboard)
4794 - Added Insert() method for inserting multiline text into documents
4795 - Fixed DeleteChars() calculation errors that would cause a broken
4796 tag chain with multiple tag lines
4797 - DeleteChars() no longer crashes on multi-tag lines if not all tags
4798 - Split() no longer moves caret if split is at caret location
4799 - ReplaceSelection() now updates the cursor and re-displays it
4800 - ReplaceSelection() now uses new Insert() method to avoid code
4802 - FormatText() can now handle formatting partial lines
4804 - Append now uses new TextControl.Insert() method (this avoids
4806 - Implemented Ctrl-X (Cut) (
4807 - Implemented Ctrl-C (Copy)
4808 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
4809 regeneration when pasting text; roundtripping Copy&Paste within
4810 edit control still fails due to some calculation bugs in GenerateRTF)
4811 - The Delete key will now remove the current selection if it is visible
4812 * TextBox.cs: Removed debug lines
4813 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4814 driver to be initialized and can't therefore be done via a static ctor)
4816 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
4818 * TextControl.cs: Added backend code for finding char arrays and strings
4820 - Added mouse wheel scroll support
4821 - Added support for VScroll and HScroll events
4823 - Implemented all seven Find() variants
4824 - Implemented GetCharFromPosition()
4825 - Implemented GetCharIndexFromPosition()
4826 - Implemented GetLineFromIndex()
4827 - Implemented GetPositionFromCharIndex();
4828 - Implemented SaveFile for PlainText and UnicodeText
4829 - Fixed set_Font, now setting a new font applies that font to
4831 - Implemented generic Document to RTF converter
4832 - Implemented SaveFile for RichText format (still missing unicode
4833 conversion for non-ansi chars)
4834 - Implemented get_Rtf
4835 - Implemented get_SelectedRtf
4837 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
4839 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4840 to allow any captures to be released before triggering OnClick. This
4841 way a click handler may capture the mouse without interference.
4842 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4843 This way we send them even though X may not allow a grab (if the window
4844 isn't visible, for example)
4846 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
4848 * DataGridViewRowEventArgs.cs: DataGridView implementation
4849 * DataGridViewElement.cs: DataGridView implementation
4850 * DataGridViewComboBoxCell.cs: DataGridView implementation
4851 * DataGridViewDataErrorContexts.cs: DataGridView implementation
4852 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4853 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4854 * ImageLayout.cs: DataGridView implementation
4855 * DataGridViewComboBoxColumn.cs: DataGridView implementation
4856 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4857 * DataGridViewSelectionMode.cs: DataGridView implementation
4858 * IDataGridViewEditingControl.cs: DataGridView implementation
4859 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4860 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4861 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4862 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4863 * DataGridViewColumnSortMode.cs: DataGridView implementation
4864 * DataGridView.cs: DataGridView implementation
4865 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4866 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4867 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4868 * Padding.cs: DataGridView implementation
4869 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4870 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4871 * DataGridViewRowEventHandler.cs: DataGridView implementation
4872 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4873 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4874 * DataGridViewButtonCell.cs: DataGridView implementation
4875 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4876 * DataGridViewEditMode.cs: DataGridView implementation
4877 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4878 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4879 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4880 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4881 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4882 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4883 * DataGridViewCellEventHandler.cs: DataGridView implementation
4884 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4885 * DataGridViewCellStyleConverter.cs: DataGridView implementation
4886 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4887 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4888 * DataGridViewColumnEventArgs.cs: DataGridView implementation
4889 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4890 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4891 * QuestionEventArgs.cs: DataGridView implementation
4892 * IDataGridViewEditingCell.cs: DataGridView implementation
4893 * DataGridViewTriState.cs: DataGridView implementation
4894 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4895 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4896 * DataGridViewColumnCollection.cs: DataGridView implementation
4897 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4898 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4899 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4900 * DataGridViewColumn.cs: DataGridView implementation
4901 * DataGridViewCellBorderStyle.cs: DataGridView implementation
4902 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4903 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4904 * DataGridViewRow.cs: DataGridView implementation
4905 * DataGridViewImageCellLayout.cs: DataGridView implementation
4906 * DataGridViewImageCell.cs: DataGridView implementation
4907 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4908 * DataGridViewCheckBoxCell.cs: DataGridView implementation
4909 * DataGridViewHeaderCell.cs: DataGridView implementation
4910 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4911 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4912 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4913 * DataGridViewTextBoxColumn.cs: DataGridView implementation
4914 * QuestionEventHandler.cs: DataGridView implementation
4915 * DataGridViewCellStyleScopes.cs: DataGridView implementation
4916 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4917 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4918 * DataGridViewCell.cs: DataGridView implementation
4919 * DataGridViewCellEventArgs.cs: DataGridView implementation
4920 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4921 * DataGridViewCellStyle.cs: DataGridView implementation
4922 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4923 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4924 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4925 * TextFormatFlags.cs: DataGridView implementation
4926 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4927 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4928 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4929 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4930 * DataGridViewButtonColumn.cs: DataGridView implementation
4931 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4932 * HandledMouseEventArgs.cs: DataGridView implementation
4933 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4934 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4935 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4936 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4937 * DataGridViewRowCollection.cs: DataGridView implementation
4938 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4939 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4940 * DataGridViewHitTestType.cs: DataGridView implementation
4941 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4942 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4943 * DataGridViewColumnEventHandler.cs: DataGridView implementation
4944 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4945 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4946 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4947 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4948 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4949 * DataGridViewContentAlignment.cs: DataGridView implementation
4950 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4951 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4952 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4953 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4954 * DataGridViewPaintParts.cs: DataGridView implementation
4955 * DataGridViewCellCollection.cs: DataGridView implementation
4956 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4957 * DataGridViewImageColumn.cs: DataGridView implementation
4958 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4959 * DataGridViewElementStates.cs: DataGridView implementation
4960 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4961 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4962 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4963 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4964 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4965 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4966 * DataGridViewRowHeaderCell.cs: DataGridView implementation
4967 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4968 * DataGridViewTextBoxCell.cs: DataGridView implementation
4969 * DataGridViewBand.cs: DataGridView implementation
4970 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4971 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4972 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4973 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4974 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4975 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4976 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4977 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4978 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4979 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4980 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4982 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
4984 * ThemeWin32Classic.cs:
4985 - Draw the outside focus rectangle around buttons
4986 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4987 doesn't use end caps for every dash of a line anymore. This
4988 workaround ignores the forecolor.
4990 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
4992 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4995 2005-11-07 Jackson Harper <jackson@ximian.com>
4997 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4999 2005-11-07 Jackson Harper <jackson@ximian.com>
5001 * ScrollableControl.cs: Calculate the maximum and change vars
5002 (more) correctly so that scrollbars appear as a sensible size.
5004 2005-11-04 Jackson Harper <jackson@ximian.com>
5006 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5008 * TreeView.cs: When the tree is sorted null out the top_node so
5009 that it is recalculated.
5010 - Use dotted lines instead of dashed lines to match MS better.
5012 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
5015 - Implements key search for items. Useful when browsing files with FileDialog
5016 - When changing view mode or when clear the items reset scrollbar positions
5018 2005-11-04 Jackson Harper <jackson@ximian.com>
5020 * CurrencyManager.cs: Implement the MetaDataChanged event, the
5021 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5022 as to what the method may do as there is no real way of creating a
5023 derived CurrencyManager and calling the method.
5025 2005-11-03 Jackson Harper <jackson@ximian.com>
5027 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5028 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5029 method which seems to just be used internally to refresh the tabs.
5031 2005-11-03 Jackson Harper <jackson@ximian.com>
5033 * TabControl.cs: Implement the remove method. Fix some broken
5036 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
5038 * DateTimePicker.cs:
5039 - Added missing DateTimePickerAccessibleObject class
5040 - Added missing events
5041 - Added OnFontChanged method
5042 * Form.cs: Added missing attributes
5043 * TreeView.cs: Added missing attributes
5045 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
5047 * GridItemCollection.cs: Fix signatures
5049 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
5051 * XplatUI.cs: Updated build rev/date
5052 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
5053 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5054 * Application.cs: Trigger context-specific ExitThread events
5056 2005-11-03 Jackson Harper <jackson@ximian.com>
5060 * GridTableStylesCollection.cs:
5065 * MonthCalendar.cs: Signature fixes
5067 2005-11-03 Jackson Harper <jackson@ximian.com>
5069 * TreeNodeCollection.cs: Remove should not be virtual.
5070 * TreeView.cs: Implement the last of the missing methods.
5072 2005-11-03 Jackson Harper <jackson@ximian.com>
5074 * TreeNodeConverter.cs: Implement to get off my class-status back.
5076 2005-11-03 Jackson Harper <jackson@ximian.com>
5078 * TreeView.cs: Hookup the bits for drag and drop.
5079 * TreeNode.cs: Don't cache the tree_view or index anymore, now
5080 that nodes can be moved from tree to tree easily this just causes
5081 all sorts of problems.
5082 * TreeNodeCollection: Don't need to give treenodes an index and
5083 treeview anymore when they are added, these are computed on the
5084 fly. Also make sure to remove a node before its added.
5086 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
5089 - Added CaretSelection enum
5090 - Added comparison methods to Marker struct, makes selection code
5092 - Added SelectionStart and SelectionEnd as 'moveable' location for
5093 the CaretDirection enum and handler
5094 - Added selection_prev variable to track optimized invalidation for
5095 word and line selection
5096 - Added SelectionVisible property (returns true if there is a valid
5098 - Switched CaretHasFocus to only display the caret if there is no
5100 - Avoiding StringBuilder.ToString to retrieve a single char, instead
5101 using the direct character index; should be much faster
5102 - Added various conditional debug statements
5103 - Fixed invalidation calculation for selection ranges
5104 - Added ExpandSelection() method to support word and line selection
5105 - Switched SetSelectionToCaret to use new Marker compare overloads
5106 - Added central IsWordSeparator() method to determine word
5107 separators/whitespace and FindWordSeparator() to streamline common
5108 usage of IsWordSeparator()
5110 - Removed unneeded grabbed variable, it was just mirroring
5112 - No longer firing OnTextChanged event when Text setter is called,
5113 since the base will fire the event for us
5114 - Added handling of Ctrl-Up/Down selection
5115 - Added handling of Shift-Cursorkey selection
5116 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5118 - Added handling of Shift and Ctrl-Shift-Home/End selection
5119 - Removed some debug output
5120 - Added handling for single/double/tripple-click to place caret/
5121 select word/select line respectively (Fixes bug #76031)
5122 - Added support for drag expansion of word/line selection
5123 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5126 2005-11-02 Jackson Harper <jackson@ximian.com>
5128 * X11Dnd.cs: If the drag is going to and from a MWF window just
5129 copy the data instead of sending it out through the X Selection
5132 2005-11-02 Jackson Harper <jackson@ximian.com>
5135 * XplatUIX11.cs: When in a drag we don't want motion notify
5136 messages to get passed on to the other controls. This prevents
5137 mouse move messages from showing up in the drag source.
5139 2005-11-02 Jackson Harper <jackson@ximian.com>
5141 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
5142 the correct button is release to end a drag.
5143 * XplatUIX11.cs: Make the button state internal so the drag system
5144 can access it. Dragging needs to know about all button releases,
5145 not just left button.
5147 2005-11-02 Miguel de Icaza <miguel@novell.com>
5149 * Form.cs (Icon): If the icon is null, reset the icon to the
5152 * Cursor.cs: When writing the AND-mask bitmap do not include the
5153 number of colors, but hardcode those to two (black and white),
5154 fixes the loading of color cursors (Paint Dot Net).
5156 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5157 turn off autoscaling.
5159 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5161 2005-11-02 Jackson Harper <jackson@ximian.com>
5163 * X11Dnd.cs: Make sure to send a status message if the pointer
5164 enters a control that can not accept a drop, otherwise the cursor
5165 isn't updated correctly. Also tried to compress the lines of code
5168 2005-11-02 Jackson Harper <jackson@ximian.com>
5170 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5171 set actions correctly. This isn't perfect as XDND and win32 have
5172 some differences on how you allow actions. I'll clear this up by
5173 adding a path for drag from MWF to MWF windows.
5174 * XplatUIX11.cs: Hook into the dnd system.
5176 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
5178 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5179 previously shown but they are no longer need it. Very obvious when
5180 browsing files with FileDialog.
5182 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
5184 * Control.cs: We always need to call OnPaintBackground. We pretty much
5185 ignore AllPaintingInWmPaint and always do the painting there, whether
5186 it's set or not, since we always ignore the WM_ERASEBKGND message
5187 (which we don't generate on X11). This fixes #76616.
5188 * Panel.cs: Removed unneeded background painting. This happens properly
5189 in Control.cs already
5191 2005-10-31 Mike Kestner <mkestner@novell.com>
5193 * Menu.cs: Add items to collection before setting their index.
5194 * MenuItem.cs : add range checking with ArgumentException like MS.
5197 2005-10-31 Jackson Harper <jackson@ximian.com>
5199 * ListBox.cs: Invalidate if the area is visible at all not just
5200 contained in the visible rect. Fixes unselection of semi visible
5203 2005-10-31 Jackson Harper <jackson@ximian.com>
5205 * Control.cs: Consistently name the dnd methods. Make them
5206 internal so we can override them to match some MS behavoir
5208 * Win32DnD.cs: Use the new consistent names.
5210 2005-10-31 Jackson Harper <jackson@ximian.com>
5212 * TreeView.cs: Don't draw the selected node when we lose focus.
5214 2005-10-31 Jackson Harper <jackson@ximian.com>
5216 * X11Dnd.cs: We still need to reset the state even though a full
5217 reset isn't being done, otherwise status's still get sent all over
5220 2005-10-31 Jackson Harper <jackson@ximian.com>
5222 * Control.cs: Make the dnd_aware flag internal so the dnd
5223 subsystem can check it. Catch exceptions thrown in dnd handlers to
5225 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5226 * X11Dnd.cs: Handle null data in the converters. Set the XDND
5227 version when sending a XdndEnter. Use the control/hwnd dnd_aware
5228 flags to reduce the number of dnd enters/status's sent.
5230 2005-10-31 Jackson Harper <jackson@ximian.com>
5232 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5234 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
5236 * PictureBox.cs: Fixes 76512
5238 2005-10-28 Jackson Harper <jackson@ximian.com>
5240 * X11Dnd.cs: Early implementation to support winforms being a drag
5241 source for data on X11. Also restructured the converters so they
5242 can go both ways now.
5243 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5245 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
5247 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5250 2005-10-27 Jackson Harper <jackson@ximian.com>
5252 * TreeNode.cs: Implement serialization so my DnD examples will work.
5254 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
5256 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5257 TreeView.cs: Don't dispose objects that are not owned.
5259 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
5261 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5262 should retrieve the current cursor and report that, but XplatUI
5263 doesn't (yet) have an interface for that (and I'm not sure I even
5265 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5266 until any message loop processing is done (and the WM_SETCURSOR
5267 replaces the cursor to the proper one)
5269 - Fixed override behaviour, we can't set the cursor globally on X11,
5270 just for our windows.
5271 - Invalidating the System.Drawing X11 display handle when we are
5273 * Control.cs: Fix to make csc happy
5275 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
5278 - get_Text: Add last line (without trailing newline) to returned
5280 - get_TextLength: Count last line in returned length
5281 - ToString: Call Text property instead of duplicating code
5283 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
5285 * ImageList.cs: Dispose ImageAttributes objects.
5287 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
5289 * ImageList.cs: Use attribute constructors with less arguments where
5292 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
5294 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5295 Use typeof instead of strings when assembly is referenced. Added
5298 2005-10-21 Jackson Harper <jackson@ximian.com>
5300 * ListView.cs: Raise a double click event. Also tried to somewhat
5301 fix when the selectedindexchanged event is raised. Its still
5304 2005-10-21 Jackson Harper <jackson@ximian.com>
5306 * TreeView.cs: New method to invalidate the plus minus area of a
5307 node without invalidating the whole node (maybe this can be used
5308 in some more places).
5309 * TreeNodeCollection.cs: When adding to an empty node we need to
5310 invalidate its plus minus area so the little block shows up.
5312 2005-10-21 Jackson Harper <jackson@ximian.com>
5314 * TreeView.cs: Make sure that when we invalidate a node the bounds
5315 are big enough to cover the selected box and the focus
5316 rectangle. Use a different colour for the lines connecting nodes
5317 so they show up with all themes.
5319 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
5321 * NativeWindow.cs: Don't call anything that could call into the driver,
5322 we might be on a different thread.
5324 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
5326 * Control.cs(Dispose): Since Dispose might run on a different thread,
5327 make sure that we call methods that could call into the driver via
5328 invoke, to avoid thread issues
5330 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
5332 * XplatUI.cs: Removed finalizer
5333 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5334 not allowing to be called on the finalizer thread.
5336 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
5339 - Reverted r51889 and r51891.
5340 - Added ImageListItem class that stores unmodified image items and image
5341 properties required to create list images until handle is created.
5342 - Added AddItem and moved image creation logic to AddItemInternal.
5343 - Added CreateHandle method that creates images based on unmodified items.
5344 - Added DestroyHandle that changes state to store unmodified items.
5345 - Add and AddStrip methods no more create handle.
5346 - ReduceColorDepth has no return value.
5347 - Dispose destroys handle.
5348 - Modified other methods to reflect the above changes.
5349 - Implemented key support.
5350 - Added profile 2.0 members and attributes.
5351 - Added private Reset and ShouldSerialize methods that provide the same
5352 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5353 them as they are private.
5354 - Added some more comments about implementation details.
5356 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5358 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5360 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5362 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5364 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5366 * DataGridDrawingLogic.cs: Fixes column hit calcultation
5367 * DataGridColumnStyle.cs: Remove debug message
5369 2005-10-20 Jackson Harper <jackson@ximian.com>
5371 * TreeView.cs: We can always get input keys regardless of whether
5372 or not editing is enabled. They are used for navigation.
5374 2005-10-20 Jackson Harper <jackson@ximian.com>
5376 * TreeNode.cs: Use the viewport rect for determining if a node
5377 needs to be moved for visibility. Don't use Begin/End edit. This
5378 calls a full refresh when its done.
5379 * TreeView.cs: New SetBottom works correctly. Make the viewport
5380 rect property internal so the treenodes can see it. When clicking
5381 on a node we need to ensure that its visible because it might just
5382 be partly visible when clicked.
5384 2005-10-20 Jackson Harper <jackson@ximian.com>
5386 * TreeNodeCollection.cs: Remove debug code.
5388 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
5390 * Datagrid.cs: Implements column sorting in Datagrid
5391 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5393 2005-10-20 Jackson Harper <jackson@ximian.com>
5395 * TreeNodeCollection.cs: Remove items properly. Update the correct
5396 area after removing them.
5398 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
5400 * Datagrid.cs: Should not call base.OnPaintBackground
5402 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5404 * XplatUIX11.cs (GetMessage):
5405 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5406 window instead of client window
5407 - Now properly calculates NC_xBUTTONUP message coordinates
5408 - ScreenToMenu now properly calculates it's coordinates of whole
5409 window, since menus are in the whole window, not in the client
5411 - Added WholeToScreen coordinate translation method
5413 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5415 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5416 want to return a message, loop back to the beginning of the function
5417 and grab the next real message to process instead.
5419 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5421 * Splitter.cs: Properly set limits if no filler control is used
5423 2005-10-19 Jackson Harper <jackson@ximian.com>
5425 * ColorDialog.cs: Don't show the help button if it is not enabled
5426 instead of disabling it (this is what MS does). Don't create the
5427 panel until the dialog is run, otherwise the vars (such as
5428 ShowHelp) are not set yet.
5430 2005-10-19 Jackson Harper <jackson@ximian.com>
5432 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5433 are reduced when adding nodes.
5435 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5438 2005-10-19 Jackson Harper <jackson@ximian.com>
5440 * FolderBrowserDialog.cs: End editing our treeview so the window
5441 actually gets refreshed.
5443 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
5445 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
5446 Obsoleted handling of WM_ERASEBKGND, now always draws our background
5449 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5451 * MenuAPI.cs: Returns after Hidding window
5452 * XplatUIX11.cs: Added TODO found while debugging menu issues
5454 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
5456 * XplatUIX11.cs: Do not re-map the whole window when it's size
5457 becomes non-zero unless it's supposed to be actually visible
5459 2005-10-18 Jackson Harper <jackson@ximian.com>
5461 * TreeView.cs: We don't need to keep a count anymore.
5462 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5463 use the Grow method.
5465 2005-10-18 Jackson Harper <jackson@ximian.com>
5467 * TreeNodeCollection.cs: Insert is not supported on arrays, so
5468 implement it manually here.
5470 2005-10-18 Jackson Harper <jackson@ximian.com>
5472 * ImageList.cs: Dont kill the list when the colour depth is
5473 changed, just change the colour depth of all the images.
5474 - Same goes for setting the image size. Just resize them all
5475 instead of killing the list softly.
5477 2005-10-18 Jackson Harper <jackson@ximian.com>
5479 * Control.cs: Don't invalidate empty rectangles.
5481 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5484 - Adds checked item to the Checked/Item lists (where empty before)
5485 - Do not add items to the Selected lists if they are already present
5487 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5488 - When deleting items make sure that we delete them for the Selected
5489 and Checked list also.
5491 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5493 * Label.cs: Dispose objects no longer used
5494 * ThemeWin32Classic.cs: Dispose objects no longer used
5496 2005-10-18 Jackson Harper <jackson@ximian.com>
5498 * TabControl.cs: Don't refresh the whole control when the tabs are
5499 scrolled, we just need to refresh the tab area.
5501 2005-10-17 Jackson Harper <jackson@ximian.com>
5503 * XplatUIX11.cs: Compress code a little bit. Only calculate the
5504 after handle when we need it.
5506 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
5508 * Control.cs: When the parent size changes, recalculate anchor
5509 positions. Partial fix for #76462
5511 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
5513 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
5516 2005-10-17 Jackson Harper <jackson@ximian.com>
5518 * MonthCalendar.cs: Don't create the numeric up down until our
5519 handle is created. Otherwise our handle is created in the
5520 constructor and we don't know if we are a WS_CHILD or WS_POPUP
5523 2005-10-17 Jackson Harper <jackson@ximian.com>
5525 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5528 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
5529 * TreeNode.cs : small logical fix (was using local var instead of field)
5531 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
5533 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5535 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
5537 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5539 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
5542 - Re-implemented anchoring code. My first version was really broken.
5543 This fixes bug #76033. Unlike the previous implementation we will
5544 no longer have round errors since all numbers are calculated from
5545 scratch every time. Removed various anchor-related obsolete vars.
5546 - InitLayout no longer causes layout event firing and layout to be
5549 2005-10-16 Jackson Harper <jackson@ximian.com>
5551 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5554 2005-10-16 Jackson Harper <jackson@ximian.com>
5556 * TabControl.cs: Remove debug code.
5558 2005-10-16 Jackson Harper <jackson@ximian.com>
5560 * XEventQueue.cs: Increase the default queue size (very simple
5561 apps needed to grow the queue).
5562 * Hwnd.cs: No finalizer so we don't need to suppress
5563 finalization. Compute the invalid area manually so a new rectangle
5564 does not newto be created.
5565 * ScrollableControl.cs: Don't set any params (otherwise visibility
5566 isn't set correctly).
5567 * MdiChildContext.cs: New constructor takes the mdi parent so it
5568 doesn't have to be computed and avoids a crash on windows. Draw
5569 the window icon properly, and allow the text to be seen.
5570 * Form.cs: Use new MdiChildContext constructor. Make sure the
5571 child context isn't null in wndproc.
5572 * TabControl.cs: Don't set focus, this is muddling keyboard
5573 behavoir. Expand the tab rows when a window size increase will
5574 allow extra tabs to be seen. Don't allow tabs smaller than the
5575 width of a window to be scrolled out of view.
5577 * TreeView.cs: Use measure string to calculate a nodes width, the
5578 width is cached and only updated when the text or the font is
5579 changed. Don't check for expand/collapse clicks on the first level
5580 nodes if root lines are disabled.
5582 2005-10-16 Ritvik Mayank <mritvik@novell.com>
5584 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5586 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
5588 * DataGridBoolColumn.cs: fixes warning
5590 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
5592 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5593 to match more to match more precisely the MS Net behavior
5595 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5597 * Hwnd.cs: Added field to track if window is mapped
5599 - Unmap windows if they become 0-size, re-map when
5600 they are >0 again; fixes #76035
5601 - Re-set our error handler after initializing X11Desktop
5602 to override any error handlers Gtk or whatever was called
5605 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5607 * CheckedListBox.cs: Removed unused vars
5608 * ListView.cs: Fixed signatures
5609 * RichTextBox.cs: Removed unused vars
5610 * TextBoxBase.cs: Removed unused vars
5611 * XplatUIWin32.cs: Removed unused vars
5612 * XplatUIX11.cs: Removed unused vars
5613 * XplatUI.cs: Updated version and date to latest published
5615 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5617 * Cursor.cs: Added private .ctor to work around a bug in
5618 resourceset (Thanks to Geoff Norton for the help on this)
5619 * SplitterEventArgs.cs: Made fields accessible so we don't
5620 waste boatloads of objects and can reuse the same one
5622 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5623 any captions and borders when generating screen coordinates
5624 * Splitter.cs: Reimplemented control, now fully complete, uses
5625 rubberband drawing, supports and obeys all properties, has
5628 2005-10-13 Miguel de Icaza <miguel@novell.com>
5630 * Form.cs (Form): Setup default values for autoscale and
5631 autoscale_base_size; Make these instance variables, not static
5634 (OnLoad): on the first load, adjust the size of the form.
5636 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5638 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
5639 width argument to DrawReversibleRectangle()
5640 * XplatUIWin32.cs, XplatUIX11.cs:
5641 - Implemented width for DrawReversibleRectangle()
5642 - Added logic to DrawReversibleRectangle that recognizes a zero
5643 width or height and only draws a line in that situation
5645 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
5647 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5648 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5649 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5650 method (it uses our FosterParent window to get a graphics context)
5652 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
5654 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
5655 and SetWindowBackground methods
5657 - Setting proper ControlStyles
5658 - We no longer call XplatUI.SetWindowBackground and XplatUI.
5659 EraseWindowBackground, instead we draw the window background
5660 ourselves in PaintControlBackground. This behaviour is
5661 required to match MS, where, when OnPaintBackground is not
5662 called, the background is not drawn.
5663 - Removed unneeded Refresh() in set_Text
5664 * Hwnd.cs: Dropped the ErasePending support. No longer needed
5666 - Created DeriveStyles method to translate from CreateParams to
5667 FormBorderStyle and TitleStyle, also handles BorderStyle (which
5668 matches FormBorderStyle enum values)
5669 - Consolidated SetHwndStyles and CalculateWindowRect border/title
5670 style calculations into single DeriveStyles method
5671 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5672 from redrawing the whole window on any resize or expose.
5673 - Fixed CreateWindow usage of SetWindowValuemask. Before not
5674 all styles were applied to our whole/client window appropriately
5675 - Removed EraseWindowBackground() and SetWindowBackground() methods
5676 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5677 no longer clear/redraw the background through X
5678 - Removed handling of erase_pending bit, we have no use for it (or
5681 - Removed generation and handling of WM_ERASEBKGND message
5682 - Removed EraseWindowBackground() and SetWindowBackground() methods
5683 - Removed handling of hwnd.ErasePending flag
5685 - Removed EraseWindowBackground() and SetWindowBackground() methods
5686 - We no longer call EraseWindowBackground on PaintEventStart, we
5687 ignore the fErase flag, erasing is handled in Control in the
5689 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5690 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5691 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
5692 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
5693 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
5694 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5695 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5697 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
5699 * PropertyGrids.cs: Get sub properties
5700 * PropertyGridView.cs: Fix drawing code
5702 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5704 * ListBox.cs: Fixes 76383
5706 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5708 * DataGridTextBoxColumn.cs: Sets location and size before attachment
5709 * ThemeWin32Classic.cs: Fixes border drawing and calculations
5710 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5713 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5715 * ComboBox.cs: Fixes border drawing
5717 2005-10-10 Miguel de Icaza <miguel@novell.com>
5719 * MimeIcon.cs: Ignore errors if the file can not be read.
5721 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5723 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5724 - Fixed border calculations
5725 - Fixed horizontal scrolling in single column listboxes
5726 - Fixed drawing issues
5728 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
5730 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
5731 FormBorderStyle enum
5732 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
5733 code to determine FormBorderStyles from CreateParams
5735 - Fixed bug where we'd set the wrong window styles if we were
5736 not creating an MDI window
5737 - Added call to XplatUI.SetBorderStyle when form borders are set
5738 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5740 - Removed obsolete edge style
5741 - Switched from BorderStyle to FormBorderStyle
5743 2005-10-10 Jackson Harper <jackson@ximian.com>
5745 * Form.cs: Use the property to get the window handle instead of
5746 accessing it directly. Prevents a null reference exception.
5748 2005-10-10 Jackson Harper <jackson@ximian.com>
5750 * TreeView.cs: Don't adjust the rect given to DrawString now that
5751 our libgdiplus draws correctly.
5753 2005-10-08 Jackson Harper <jackson@ximian.com>
5755 * TreeView.cs: Don't try to find the clicked on node if there are
5756 no nodes in the tree.
5758 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
5764 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
5766 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5767 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5769 Use ResPool for brushes and dispose System.Drawing objects that
5770 are not used anymore.
5772 2005-10-07 Jackson Harper <jackson@ximian.com>
5774 * MdiChildContext.cs: Use the new borders instead of drawing them
5777 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
5779 * Calling UpdateBounds after changing the window's BorderStyle
5780 since the style can change the ClientSize
5782 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5784 * Control.cs: Made PaintControlBackground virtual
5785 * Panel.cs: Overriding PaintControlBackground instead of using paint
5786 event; paint event method was interfering with 'real' users of the
5789 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
5791 * ThemeWin32Classic.cs: remove border drawing since it is handled
5792 by the base control class now and was causing double border drawing.
5794 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5796 * Panel.cs: Redraw our background on paint. Not a pretty solution,
5797 but it does seem to match MS behaviour. This fixes bug #75324
5799 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5801 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5802 somewhat hackish looking
5804 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5807 - We now accept Enter even if AcceptEnter is false, if the containing
5808 form does not have an AcceptButton configured (fixes bug #76355)
5809 - Calculations are now fixed to no longer use Width/Height, but
5810 ClientSize.Width/Height, since we now support borders (this was
5811 a result of fixing borders and therefore bug #76166)
5812 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
5813 true (fixes bug #76354)
5815 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5818 - Defaulting BorderStyle and setting it in XplatUI when our window
5820 - Added enum check to InternalBorderStyle setter
5822 - Added drawing of window borders
5823 - Now properly calculates WM decorations offset for toplevel
5824 windows (fixes bug #74763)
5826 - Implemented BorderStyles for windows (we're letting win32 draw
5828 - Fixed the signature for SetWindowLong
5829 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5830 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
5832 * UpDownBase.cs: Remove drawing of borders, this is handled by
5833 the driver, outside the client area
5834 * ListView.cs: Removed bogus border calculations. The control should
5835 be oblivious to borders, since those are not part of the client
5837 * X11DesktopColors.cs: Commented out (currently) unneeded variables
5838 * ThemeWin32Classic.cs: Removed border calculations from ListView
5841 2005-10-06 Jackson Harper <jackson@ximian.com>
5843 * MdiChildContext.cs: Clear out the old virtual position remove
5844 all the unneeded calls to CreateGraphics.
5846 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5848 * TextControl.cs: Use proper color for highlighted text; fixes #76350
5850 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5853 - Added loading and setting of our new default icon
5854 - Only set icon if window is already created
5856 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5859 - Do not explicitly set the foreground and background colors, to
5860 allow inheriting from parents (fixes #76302)
5861 - Use Control's InternalBorderStyle property to deal with borders
5863 2005-10-06 Jackson Harper <jackson@ximian.com>
5865 * MdiChildContext.cs: Use the new xplatui function to draw a
5868 2005-10-06 Jackson Harper <jackson@ximian.com>
5870 * Form.cs: Add the parent before creating the child context cause
5871 we need the parent when setting up the child.
5873 2005-10-06 Jackson Harper <jackson@ximian.com>
5875 * FolderBrowserDialog.cs: redo the tree population code so a
5876 second thread isn't used. Should be a lot faster and more stable
5879 2005-10-05 Jackson Harper <jackson@ximian.com>
5881 * TreeView.cs: There are no expand/collapse boxes if the node has
5884 2005-10-05 Jackson Harper <jackson@ximian.com>
5886 * X11DesktopColors.cs: Get menu colours for the gtk theme.
5888 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
5890 * FileDialog.cs: Fix InitialDirectory
5892 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
5895 - Fixes changing between styles
5897 - Fixes last item crashing when navigating with keyboard
5899 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
5901 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5903 2005-10-05 Jackson Harper <jackson@ximian.com>
5905 * TreeView.cs: If updating the root node do a full refresh.
5906 * TreeNode.cs: The root node should be expanded by default. Also
5907 added a utility prop to tell if we are the root node.
5908 * TreeNodeCollection.cs: Only refresh if the node we are being
5909 added to is expanded. Also added a comment on a potential
5912 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
5914 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
5915 in dispose method. Fixes #76330
5917 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
5919 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5921 - Implements vertical and horizontal scrolling using XplatUI
5922 - Fixes keyboard navagation
5923 - Fixes EnsureVisible
5925 - Handles and draws focus properly
5928 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
5930 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5931 Create handle. NET_2_0: Destroy handle when value is null.
5933 2005-10-03 Jackson Harper <jackson@ximian.com>
5935 * ScrollBar.cs: My last scrollbar patch was broken. This is a
5936 revert and a new patch to prevent the thumb from refreshing so
5939 2005-10-02 Jackson Harper <jackson@ximian.com>
5941 * ScrollBar.cs: Don't update position if it hasn't actually
5942 changed. This occurs when you hold down the increment/decrement
5943 buttons and the thumb gets to the max/min.
5945 2005-10-01 Jackson Harper <jackson@ximian.com>
5948 * MdiChildContext.cs:
5949 * MdiClient.cs: Implement ActiveMdiChild in Form.
5951 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
5953 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5955 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
5957 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5960 2005-09-30 Jackson Harper <jackson@ximian.com>
5962 * ListBox.cs: Don't do a full refresh unless some data has
5965 2005-09-30 Jackson Harper <jackson@ximian.com>
5967 * TreeView.cs: Make sure that the checkboxes size is factored in
5968 even when not visible.
5970 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5972 * FileDialog.cs: Fix Jordi's build break
5974 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
5977 - Use standard the Windows colours for the combobox as espected
5978 - Dispose objects that use resouces when no longer need them
5980 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5982 * X11DesktopColors.cs: Initial incomplete implementation
5983 * XplatUIX11.cs: Added call to initialize X11DesktopColors
5985 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5988 - Switched Theme color names to match the names defined in
5989 System.Drawing.KnownColors. Life's hard enough, no need to make
5991 - Added setters to all theme color properties so themes can set
5992 their color schemes. The setters also propagate the color changes
5993 to System.Drawing.KnownColors via reflection
5994 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5995 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5996 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5997 use the new, more logical theme color names
5998 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6000 * ThemeWin32Classic.cs:
6001 - Removed code to set the old classic Windows colors. Instead it
6002 now relies on the colors returned by System.Drawing.KnownColors
6003 which will be either modern static colors (Unix) or colors
6004 read from the user's configuration (Win32)
6005 - Updated to use the new, more logical theme color names
6006 - Switched DataGrid drawing code to use only Theme colors instead of
6007 a mix of System.Drawing.KnownColors and Theme colors
6008 - DrawFrameControl(): Removed code that fills the button area, the
6009 fill would overwrite any previous fill done by a control. This
6011 - Added DrawReversibleRectangle() stub
6012 * ScrollableControl.cs: Set visible state to false when scrollbars
6013 are removed (pdn fix)
6014 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
6015 DrawReversibleRectangle() method to allow drawing primitive
6017 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6019 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6021 * ImageList.cs: Add(Icon): Create handle.
6023 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
6026 * ThemeWin32Classic.cs:
6029 - Issues with drawing
6031 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6033 * ImageList.cs: Moved RecreateHandle back to ImageList as event
6034 source has to be the ImageList.
6036 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6038 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6040 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6042 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6044 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6046 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6048 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
6049 * GridItem.cs: Fixed TODOs
6050 * GridItemCollection.cs: Added ICollection interface
6052 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
6054 * ImageList.cs: Resize icons when needed.
6056 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
6059 - Fixes GetBounds and returns on screen rects
6061 - Fixes vertical and horzintal scrolling of items
6062 * ThemeWin32Classic.cs:
6065 2005-09-29 Raja R Harinath <harinath@gmail.com>
6067 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6069 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
6071 * ImageList.cs: Added comments about handle creation. Moved Handle,
6072 HandleCreated and OnRecreateHandle implementations to ImageCollection.
6073 Handle is created in Add methods.
6075 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
6077 * DataGridDrawingLogic.cs:
6078 - Takes rows into account on Colum calculations
6079 - Returns the column when clickig
6081 - Fixes default HitTestInfo values
6082 - Fixes HitTestInfo.ToString
6083 - Fixes ResetBackColor
6085 2005-09-28 Jackson Harper <jackson@ximian.com>
6087 * MdiChildContext.cs: Obey rules for fixed sized windows (no
6088 sizing or cursor changes). Also added some temp code to draw the
6089 titlebars text (Makes dev a little easier).
6091 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
6093 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6095 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
6097 * ListBox.cs: Fixes bug 76253
6099 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
6101 * ImageList.cs: Added comments about the current implementation. Added
6102 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6103 Format32bppArgb to preserve transparency and can use Graphics.FromImage
6104 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6105 with Bitmap.LockBits for better performance. Revised the whole file to
6106 match MS.NET behaviour and provide better performance. Non-public
6107 interface members are calling public members even when they throw
6108 NotSupportedException for better maintainability. Moved ColorDepth,
6109 ImageSize, ImageStream and TransparentColor implementations to
6110 ImageCollection for better performance as these properties are not used
6112 * ImageListStreamer.cs: Added a new internal constructor that takes an
6113 ImageList.ImageCollection and serializes Images based on
6114 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6115 match ImageList property name.
6117 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
6119 * ListBox.cs: Fixes IndexFromPoint for last item
6121 2005-09-27 Jackson Harper <jackson@ximian.com>
6123 * Form.cs: Set the position of new mdi children correctly.
6125 2005-09-27 Jackson Harper <jackson@ximian.com>
6127 * MdiClient.cs: New mdi children need to be added to the back of
6128 the controls collection so the zorder is set correctly. Also add a
6129 count of all the child windows that have been created.
6131 2005-09-27 Jackson Harper <jackson@ximian.com>
6133 * Form.cs (CreateParams): Setup MDI forms correctly.
6135 2005-09-27 Jackson Harper <jackson@ximian.com>
6137 * MdiChildContext.cs:
6144 * ScrollableControl.cs:
6145 * ComboBox.cs: Add implicit controls using the new implict control
6146 functionality in ControlCollection. Also try to block multiple
6147 control add in a suspend/resume layout to save some cycles.
6149 2005-09-27 Jackson Harper <jackson@ximian.com>
6151 * Control.cs: Add functionality to the controls collection to add
6152 'implicit controls' these are controls that are created by the
6153 containing control but should not be exposed to the user. Such as
6154 scrollbars in the treeview.
6155 * Form.cs: The list var of the ControlsCollection is no longer
6156 available because of the potential of implicit controls getting
6157 ignored by someone accessing the list directly.
6159 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
6161 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6162 loose it's parent. (Fixed bug introduced in r49103 when we added
6163 setting the child parent to null on Remove)
6165 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
6167 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6168 * Splitter.cs: Added missing attributes for BorderStyle property.
6169 * TextBoxBase.cs: Marked Calculate* methods internal.
6170 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6173 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
6175 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6177 2005-09-25 Jackson Harper <jackson@ximian.com>
6179 * TreeView.cs: Update the node bounds correctly regardless of
6180 whether the node is visible.
6182 2005-09-25 Jackson Harper <jackson@ximian.com>
6184 * ImageList.cs: Don't dispose the image after it is added to the
6185 image list. Only reformat images that need to be resized.
6187 2005-09-25 Jackson Harper <jackson@ximian.com>
6189 * ImageList.cs: Don't set the format when changing the image.
6191 2005-09-25 Jackson Harper <jackson@ximian.com>
6193 * TreeView.cs: We can't just assume the node has a font. Use the
6194 treeviews font if no node font is available.
6196 2005-09-25 Jackson Harper <jackson@ximian.com>
6198 * TreeView.cs: Allow the scrollbars to be reset with negative
6200 - Don't add scrollbars to negative sized windows.
6202 2005-09-23 Jackson Harper <jackson@ximian.com>
6204 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6205 old Mono.Posix. Also remove some stray code that shouldn't have
6208 2005-09-23 Jackson Harper <jackson@ximian.com>
6210 * TreeView.cs: Attempt at proper sizing of the horizontal
6211 scrollbar. Also don't resize the scrollbars unless they are
6214 2005-09-23 Jackson Harper <jackson@ximian.com>
6216 * TreeView.cs: We don't need to expand the invalid area when the
6217 selection changes, as this is all drawn in the node's bounding
6218 box. The area needs to be expanded (previous typo was contracting
6219 it) when the focus rect moves.
6221 2005-09-23 Jackson Harper <jackson@ximian.com>
6223 * TreeView.cs: Display the selection box under the correct
6224 circumstances. We were rendering white text with no selection box
6227 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
6229 * TextControl.cs(Split): Now updates selection start/end if it points
6230 into a line that's being split. Fixes a FIXME and bug #75258
6232 2005-09-23 Jackson Harper <jackson@ximian.com>
6235 * ListControl.cs: Don't use the path when retrieving binding
6236 managers from the binding context. My bat sense tells me that the
6237 path is only used on insertion.
6239 2005-09-22 Jackson Harper <jackson@ximian.com>
6241 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6243 2005-09-22 Jackson Harper <jackson@ximian.com>
6245 * Splitter.cs: There are special cursors used for splitting.
6246 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6248 2005-09-22 Jackson Harper <jackson@ximian.com>
6250 * Splitter.cs: Change the cursor appropriately when the splitter
6251 is moused over, so the user actually knows there is a splitter
6254 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6256 * Label.cs : Fix ToString method to give same output as MS.NET
6258 2005-09-22 Jackson Harper <jackson@ximian.com>
6260 * TreeView.cs: Create the scrollbars when the handle is created
6261 and add them right away, just make them invisble. Also account for
6262 the window being shrunk vertically to the point that the vert
6263 scrollbar needs to be added.
6264 - Remove some 0.5 adjustments to get around anti aliasing issues.
6266 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
6268 * MainMenu.cs: Fixes default value
6269 * MenuItem.cs: Fixes default value
6271 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
6273 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6275 2005-09-21 Jackson Harper <jackson@ximian.com>
6277 * Control.cs: Don't try to set the border style on the window if
6278 it hasn't been created. When the window is created the border
6281 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
6283 * Control.cs (Update): Don't call XplatUI if we don't have a
6286 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
6288 * ContainerControl.cs: Instead of throwing an exception, print
6289 a one-time warning about Validate not being implemented
6290 * XplatUIWin32.cs: Removed debug output
6292 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
6294 * Control.cs: Only set XplatUI background if we expect the windowing
6295 system to handle the background. This stops controls that draw their
6296 own background from flickering
6298 * XplatUIX11.cs: Support custom visuals and colormaps for window
6299 creation. This allows, amongst other things, using MWF X11 windows
6302 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
6304 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6305 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6306 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6307 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6308 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6309 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6310 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6311 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6312 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6313 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6314 GridColumnStylesCollection.cs,
6315 IDataGridColumnStyleEditingNotificationService.cs,
6316 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6317 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6318 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
6319 TreeNodeCollection.cs, AmbientProperties.cs,
6320 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6321 DataObject.cs, ErrorProvider.cs, Splitter.cs,
6322 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6323 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6324 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6325 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6326 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6327 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6328 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6329 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6330 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6331 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6332 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6333 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6334 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6335 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6336 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6337 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6338 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6339 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6340 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6341 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6342 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6343 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6344 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6345 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6346 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6347 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6348 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6349 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6350 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6351 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6352 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6353 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6354 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6355 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6356 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6358 2005-09-21 Jackson Harper <jackson@ximian.com>
6360 * TreeNode.cs: Call Before/After Expand not Collapse when
6363 2005-09-20 Jackson Harper <jackson@ximian.com>
6365 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6367 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
6371 - Fixes proper storing of subitems
6372 - Fixes not updated items
6374 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
6376 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6377 things if our window handle isn't created yet. Also disabled
6378 debug for TextBoxBase
6380 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
6382 * MenuAPI.cs: Remove filtering of events to allow menu usage
6384 2005-09-20 Miguel de Icaza <miguel@novell.com>
6386 * Cursor.cs: Allow null to be passed to Cursor.Current.
6388 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
6390 * ThemeWin32Classic.cs:
6391 - Change some private methods/fields to protected virtual so that
6392 they can be accessed and overriden in derived classes
6393 - First refactoring of some methods. Derived themes now don't
6394 need to duplicate the complete code from ThemeWin32Classic
6396 - Added nice StatusBar
6397 - Derive from ThemeWin32Classic and not Theme
6398 - Removed duplicate ThemeWin32Classic code
6400 2005-09-20 Miguel de Icaza <miguel@novell.com>
6402 * Control.cs (ControlCollection.Add): If the value null is passed
6403 the control is ignored.
6407 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
6409 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6410 PostQuitMessage state.
6411 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6413 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
6415 * Application.cs: Our constructor will never get called, move
6416 initialization to fields; fixes bug #75933
6418 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6421 - Allow files to be selected properly using file name
6423 - Add ability to change diretory (absolute / relative)
6424 using file name combo box.
6426 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
6429 - Fixes Multicolumn listboxes item wrong calculations
6430 - Allows to click when only one item is in the listbox
6431 - Fixes crash when no items using keyboard navigation
6433 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
6435 * ComboBox.cs: Reverted almost everything from the latest patch which
6438 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
6441 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6443 - When DropDownStyle is Simple, it does not show scrollbar
6444 to the last item of the list.
6445 - When DropDownStyle is Simple, it crashed when the list was
6446 scrolled down with the down cursor key.
6447 - Fixed a bug that when DropDownStyle is DropDownList, the
6448 selected item was not shown.
6449 - The position of the selected item was not preserved when
6450 the next dropdown happened.
6451 * ThemeWin32Classic.cs:
6452 - Items were wrapped at the right end.
6453 * CheckedListBox.cs:
6456 - Items should be fully shown.
6457 - When resizing and vertical scrollbar disappeared, the item
6458 of index 0 should be on the top of the list.
6459 - GetItemRectangle should consider the size of ver. scrollbar
6461 - SizingGrip area should not be allocated when it is not
6463 - Now it reflects MinWidth of the containing panel and
6464 fixed a crash that happens when its width becomes so small.
6466 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
6468 * CheckedListBox.cs: Fixes bug 76028
6469 * ListBox.cs: Fixes bug 76028
6471 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
6473 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6474 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6476 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
6478 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6480 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6482 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
6484 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6486 * IRootGridEntry.cs: Added
6487 * PropertyGridCommands.cs: Added
6488 * PropertiesTab.cs: Added missing methods and property
6489 * PropertyGridView.cs: Made class internal
6490 * PropertyGridTextBox.cs: Made class internal
6492 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6494 * MimeIcon.cs: Try to check some other environment variables
6495 if "DESKTOP_SESSION" returns "default"
6497 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6499 * ThemeNice.cs: Corrected background colors (e.g. menus)
6500 * ColorDialog.cs: Use correct background colors for controls
6502 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6504 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6506 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
6508 * RichTextBox.cs: Added initial implementation
6509 * lang.cs: Removed. Was accidentally checked in long time ago
6510 * TODO: Removed. Contents were obsolete
6512 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
6514 * PropertiesTab.cs : Added
6516 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
6518 * PropertyGrid.cs : Update
6519 * PropertyGridView.cs : Update
6520 * System.Windows.Forms.resx : Added images and strings
6522 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
6524 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6526 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
6528 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6529 a busy loop right after the Ungrab the X11 display is otherwise
6532 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
6534 * ThemeWin32Classic.cs: Optimise the use of clipping
6536 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
6538 * DataGrid.cs: fixes recursion bug
6540 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
6543 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6546 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
6548 * ThemeNice.cs: Draw nice ProgressBars
6550 2005-09-01 Miguel de Icaza <miguel@novell.com>
6552 * VScrollBar.cs: Another buglet found by Aaron's tool.
6554 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6557 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
6560 - Added nicer menu drawing
6564 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6566 * CreateParams.cs (ToString): Made output match MS
6567 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
6568 handle is already created (to avoid forcing window creation)
6569 * XplatUIX11.cs: Set window text to caption after creating window,
6570 in case Text was set before window was created
6571 * Form.cs: Use this.Text instead of a static string as caption
6573 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6575 * NotifyIcon.cs: Don't set the window to visible; this screws
6576 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6577 OnPaint without a bitmap)
6578 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
6579 happen very often anyway; we could add the check to the WM_PAINT
6580 event generation code
6582 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6584 * NotifyIcon.cs: Fill the icon area with a background color, to
6585 avoid 'residue' when transparent icons are drawn
6587 - Handle whole_window == client_window when destroying windows
6588 - SystrayAdd(): Set client_window to whole_window value to
6589 get mouse and other events passed to NotifyIcon
6591 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6593 * Form.cs: Set proper default for Opacity property
6595 - ShowSystray(): Don't bother creating telling the OS
6596 about the systray item if no icon is provided
6597 - Now handles WM_NCPAINT message to deal with whole/client window
6599 - Create window as visible to not get caught by Expose optimization
6600 * Hwnd.cs: Removed debug message
6601 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6602 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
6603 PaintEventStart/End to use new client argument
6605 - Commented out debug messages
6606 - Switched PaintEventStart/End to use new client argument
6607 * XplatUI.cs: Added client window bool to PaintEventStart()/
6608 PaintEventEnd() calls, to support drawing in non-client areas
6610 - Added client window bool to PaintEventStart()/PaintEventEnd()
6611 calls, to support drawing in non-client areas
6612 - Added conditional compile to allow using MWF BeginInvoke
6615 - Added some conditional debug output
6616 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6617 whole/client window split
6618 - Implemented handling of client argument to PaintEventStart()/End()
6620 - Throw exception if BeginInvoke() is called and the window handle
6621 or one of the window's parent handles is not created
6622 - Added conditional compile to allow using MWF BeginInvoke on
6624 - get_Parent(): Only sets parent if handle is created. This avoids
6625 forcing window handle creation when parent is set.
6626 - Now fires Layout and Parent changed events in proper order
6627 - Switched to use Handle instead of window.Handle for Z-Order setting,
6628 the get_Parent() patch above causes us to possibly get null for 'window'
6629 - Implemented handling of client argument to PaintEventStart()/End()
6630 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6632 - Now sends a Refresh() to all child windows when Refresh() is called
6634 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
6636 * Form.cs: Added (non-functional) Opacity property
6637 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6639 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
6640 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6641 use export MONO_THEME=nice to activate it.
6642 Currently supported controls:
6646 - TabControl (TabAlignment.Top only, other will follow)
6647 * ThemeEngine.cs: Add theme nice
6648 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6651 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
6653 * Splitter.cs: Resize docked control and its neighbor.
6655 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
6656 -- Making Windows with Menus layout correctly --
6657 * Form.cs : The first leg of the fix
6658 Menu setter - adjust Client Size as needed to make space for the menu
6659 SetClientSizeCore - doesn't call base version to be able to pass the
6660 menu handle to XplatUI.CalculateWindowRect
6661 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6662 * XplatUIX11.cs: The critical second leg of the fix
6663 GetWindowPos needs to use a recalculated client_rect
6664 so that resizing the window doesn't break layout of child controls.
6665 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6668 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
6670 * Label.cs: Now properly recalculates width and height on Font and Text
6671 changes if AutoSize is set
6673 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
6674 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6676 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
6678 * ImageList.cs: Makes ToString method compatible with MS
6680 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
6682 * MenuAPI.cs: fixes bug 75716
6684 2005-08-11 Umadevi S <sumadevi@novell.com>
6685 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6687 2005-08-11 Umadevi S <sumadevi@novell.com>
6688 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6690 2005-08-10 Umadevi S <sumadevi@novell.com>
6691 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6693 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
6695 * Menu.cs: fixes bug 75700
6696 * MenuAPI.cs: fixes navigation issues
6698 2005-08-09 Umadevi S <sumadevi@novell.com>
6699 * CheckedListBox.cs - simple fix for GetItemChecked.
6701 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
6703 * ComboBox.cs: Serveral fixes
6704 * ListBox.cs: Serveral fixes
6706 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
6708 * ComboBox.cs: Fixes FindString methods and GetItemHeight
6709 * ListBox.cs: Fixes FindString methods
6711 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
6713 * DataGrid.cs: fixes bugs exposed by new tests
6715 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
6717 * Mime.cs: Compile Mono assembly references only if compiling
6718 with Mono (Allows to build with VS.Net again)
6720 2005-07-28 Marek Safar <marek.safar@seznam.cz>
6722 * Control.cs (PaintControlBackground): Draw background image
6724 (CheckForIllegalCrossThreadCalls): Stubbed.
6726 * Form.cs (OnCreateControl): Center when should be centered.
6728 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6730 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
6732 * Binding.cs: Binding to properties should be case unsensitive
6734 2005-07-18 vlindos@nucleusys.com
6736 * DataGrid.cs: fixes setmember order
6738 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
6740 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6741 * FileDialog.cs: FileDialog is now resizable and uses the new
6744 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
6746 * DataGridTextBoxColumn.cs: default value
6747 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6748 * GridTableStylesCollection.cs: fixes checking MappingName
6749 * DataGridDrawingLogic.cs: fixes drawing logic issues
6750 * DataSourceHelper.cs: rewritten to make compatible with more data sources
6751 * DataGrid.cs: fixes
6753 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
6755 * MimeGenerated.cs: Use case sensitive comparer for
6756 NameValueCollections
6758 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
6760 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
6761 * ThemeWin32Classic.cs: bug fixes, code refactoring
6762 * DataGridDrawingLogic.cs: bug fixes, code refactoring
6763 * DataGrid.cs: bug fixes, code refactoring
6764 * DataGridTextBox.cs: bug fixes, code refactoring
6765 * DataGridColumnStyle.cs: bug fixes, code refactoring
6766 * Theme.cs: bug fixes, code refactoring
6768 2005-07-01 Peter Bartok <pbartok@novell.com>
6770 * TextControl.cs: Quick fix for the reported crash on ColorDialog
6771 and other text box usage
6773 2005-07-01 Jackson Harper <jackson@ximian.com>
6775 * TabControl.cs: Make sure the bottom of the tab covers the pages
6778 2005-06-30 Peter Bartok <pbartok@novell.com>
6780 * Form.cs (ShowDialog): Assign owner of the dialog
6781 * TextBoxBase.cs: Always refresh caret size when deleting, caret
6782 might have been moved to a tag with different height
6784 2005-06-30 Jackson Harper <jackson@ximian.com>
6786 * Form.cs: Don't create an infinite loop when setting focus
6787 * MenuItem.cs: Don't dirty the parents if we don't have any
6789 2005-06-29 Ben Maurer <bmaurer@ximian.com>
6791 * LibSupport.cs: Rename
6793 2005-06-29 Peter Bartok <pbartok@novell.com>
6795 * TextBoxBase.cs: Re-align caret after deleting a character
6797 - DeleteChars(): Ensure that tag covers the provided position
6798 - StreamLine(): Drop reference for dropped tag
6800 2005-06-29 Peter Bartok <pbartok@novell.com>
6803 - Selections now work properly, anchoring at the initial location
6804 and properly extending in either direction (SetSelectionToCaret(),
6805 SetSelectionStart() and SetSelectionEnd())
6806 - No longer redraws the whole control on selection change, now
6807 calculates delta between previous and new selection and only
6808 invalidates/redraws that area
6809 - Fixed FindPos() math off-by-one errors
6810 - Changed DeleteChars() to verify the provided tag covers the
6811 provided position, selections may have a tag that doesn't cover
6812 the position if the selection is at a tag border
6813 - Fixed off-by-one errors in DeleteChars()
6814 - Added missing streamlining check in DeleteChars() to remove
6816 - Implemented Invalidate() method, now properly calculates exposures
6817 between two given lines/positions
6818 - Implemented SetSelection()
6819 - Obsoleted and removed FixupSelection()
6820 - Improved RecalculateDocument() logic, removing code duplication
6822 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6824 * LibSupport.cs: changes to match different input/output arguments.
6826 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6828 * LibSupport.cs: added libsupport.so init routine.
6830 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
6832 * ControlBindingsCollection.cs
6833 - Throws an exception on null datasource when adding
6834 - Checks for duplicated bindings when adding
6836 2005-06-28 Jackson Harper <jackson@ximian.com>
6838 * TreeView.cs (OnKeyDown): Support left and right properly
6839 (navigates as well as expanding and collapsing.
6840 - Add support for Multiply, this expands all the selected nodes
6844 2005-06-28 Jackson Harper <jackson@ximian.com>
6846 * TreeView.cs: Implement keyboard navigation, currently supports,
6847 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6848 support for toggling checkboxes with the space bar.
6850 2005-06-28 Jackson Harper <jackson@ximian.com>
6852 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6855 2005-06-28 Jackson Harper <jackson@ximian.com>
6857 * TreeView.cs: Add missing event.
6859 2005-06-27 Peter Bartok <pbartok@novell.com>
6862 - Made line ending size configurable (now allows for counting
6863 lineendings as \n or \r\n)
6864 - Added margin to viewport to keep caret visible on right side
6865 - Fixed translation routines for line/pos to documentpos to consider
6866 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6867 - Fixed some line-endings to be unix style
6868 - Fixed Document.FormatText to perform it's calculations 1-based
6869 - Added descriptions for a few methods that might otherwise get
6871 - Added NOTE section with some basic conventions to remember at
6873 - Major fixup for RichTextBox selection drawing:
6874 * Fixed crashes when multiple tags on a single line were selected
6875 * fixed selection box drawing not overlaying text
6876 * fixed bogus offset calculation for tags not starting at index 1
6877 * Switched behaviour from using multiple Substrings of a
6878 StringBuilder.ToString() to using multiple
6879 StringBuilder.ToString(start, length) statements, hoping this is
6880 faster (kept original version commented out in the code, in case
6881 original version was faster)
6882 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
6884 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6887 2005-06-27 Jackson Harper <jackson@ximian.com>
6889 * TabControl.cs: Move to the left and right with the arrow
6890 keys. These keys don't cycle beyond first and last like
6891 tab. Refresh all the tabs when scrolling them to the left or
6894 2005-06-27 Jackson Harper <jackson@ximian.com>
6897 - ToString: Added method
6898 - CreateParams: Remove TODO and comment
6899 - OnKeyDown: Cycle through bounds properly.
6900 - SelectedIndex: Scroll to the right or left if we need to
6901 display the newly selected tab.
6903 2005-06-23 Jackson Harper <jackson@ximian.com>
6905 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6908 2005-06-23 Jackson Harper <jackson@ximian.com>
6910 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6911 CTRL-SHIFT-TAB, and HOME, END are there any others?
6913 2005-06-23 Jackson Harper <jackson@ximian.com>
6915 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6917 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
6919 * DataGridTextBoxColumn.cs: fixes and enhancements
6920 * ThemeWin32Classic.cs: fixes and enhancements
6921 * DataGridBoolColumn.cs: fixes and enhancements
6922 * DataGridDrawingLogic.cs: fixes and enhancements
6923 * CurrencyManager.cs: fixes and enhancements
6924 * DataGrid.cs: fixes and enhancements
6925 * DataGridColumnStyle.cs: fixes and enhancements
6927 2005-06-22 Jackson Harper <jackson@ximian.com>
6929 * TabControl.cs: Add some missing methods that just call into the
6930 base. Make the TabPageCollection's IList interface behave in the
6931 same manner as the MS implementation.
6933 2005-06-22 Peter Bartok <pbartok@novell.com>
6935 * TextControl.cs: Added sanity check
6937 - Fixed wrapping behaviour, don't set wrap on single line controls
6938 (this fixes the breakage of colordialog introduced in an earlier
6940 - Added rudimentary support for autoscrolling right-aligned controls
6941 (still needs fixing, also, center alignment scroll is missing)
6943 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
6945 * ScrollBar.cs: Fixes thumbpos on Maximum values
6947 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
6949 * PropertyGridView.cs: Pass context information to UITypeEditors
6951 2005-06-21 Peter Bartok <pbartok@novell.com>
6954 - Now calling PositionCaret with absolute space coordinates
6955 - Enabled vertical scrolling
6956 - Better tracking of scrollbar changes, tied into WidthChange
6958 - Improved cursor tracking
6959 - Removed debug output
6961 - PositionCaret coordinates are now works in absolute space, not
6963 - Improved tracking of document size
6964 - Added events for width and height changes
6966 2005-06-21 Peter Bartok <pbartok@novell.com>
6968 * Form.cs: Set focus to active control when form is activated
6970 - Added word-wrap functionality to RecalculateLine()
6971 - Added some short function descriptions for VS.Net to aid in
6972 writing dependent controls
6973 - Added Caret property, returning the current coords of the caret
6974 - Added ViewPortWidth and ViewPortHeight properties
6975 - Added Wrap property
6976 - Added CaretMoved event
6977 - Removed some old debug code
6978 - Split() can now create soft splits
6979 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6980 - Added method to format existing text
6981 - Fixed size/alignment calculations to use viewport
6982 - RecalculateDocument now can handle changing line-numbers while
6986 - Added some wrap logic, we don't wrap if alignment is not left
6987 - Added casts for scrollbar var, base class switched types to
6988 also support RichTextBoxA
6989 - Implemented handling of scrollbar visibility flags
6992 - Switched scrollbars type to RichTextBoxScrollBars to support
6994 - Added tracking of canvas width/height
6995 - Switched scrollbars to be not selectable (to keep focus on text)
6996 - Added central CalculateDocument() method to handle all redraw
6998 - Added ReadOnly support
6999 - Added WordWrap support
7000 - Fixed handling of Enter key (we now treat it as a DialogKey)
7001 - Fixed caret positioning when h or v scroll is not zero
7002 - Fixed placing/generation of vertical scrollbar
7003 - Added CalculateScrollBars() method to allow updating scrollbar
7004 limits and visibility
7005 - Fixed handling of horizontal scroll
7006 - Added handling of vertical scroll
7007 - Implemented auto-'jump' when caret moves to close to a left or
7008 right border and there is text to be scrolled into view (currently
7009 there's the potential for a stack overflow, until a bug in
7012 2005-06-21 Geoff Norton <gnorton@customerdna.com>
7014 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7016 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
7020 - return application/x-zerosize for files with size zero
7021 (if no extension pattern matches).
7022 - check matches collection for strings too.
7023 - return only the first mime type if the name value
7024 collection has more than one mime type.
7026 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
7028 * PropertyGrid.cs: Cleaned up some TODOs
7029 * PropertyGridView.cs: Added support for UITypeEditors
7031 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
7033 * DataGrid.cs: clears cached value
7035 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
7037 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7038 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7039 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7040 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7042 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
7044 * ThemeWin32Classic.cs: fixes colour
7046 2005-06-15 Peter Bartok <pbartok@novell.com>
7048 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7049 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7050 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7051 * Control.cs: Added some MWFCategory and MWFDescription attributes
7052 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7054 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
7056 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7059 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
7061 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7062 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7063 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7064 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7065 * DataGrid.cs: default datagrid settings for Default Styles, fixes
7066 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7068 2005-06-13 Jackson Harper <jackson@ximian.com>
7070 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7071 isn't printed when the user enables dropping. (X11 does accept
7074 2005-06-13 Jackson Harper <jackson@ximian.com>
7076 * TreeView.cs: Remove some TODOS.
7078 2005-06-13 Jackson Harper <jackson@ximian.com>
7080 * Form.cs: Hook into the mdi framework.
7081 * MdiClient.cs: Use the base control collections add method so
7082 parents get setup correctly. Set the default back colour and dock
7084 * MdiChildContext.cs: New class, this bad actor handles an
7085 instance of an MDI window. Right now there is only basic
7086 support. You can drag, close, and resize windows. Minimize and
7087 Maximize are partially implemented.
7089 2005-06-13 Jackson Harper <jackson@ximian.com>
7091 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7092 freaky when both vals are negative. NOTE: There are probably other
7093 places in XplatUIX11 that this needs to be done.
7095 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
7097 * DataGrid.cs: implement missing methods, move KeyboardNavigation
7098 * DataGridColumnStyle.cs: fixes signature
7100 2005-06-12 Jackson Harper <jackson@ximian.com>
7102 * XplatUIX11.cs: Use sizing cursors similar to the ones on
7105 2005-06-11 Jackson Harper <jackson@ximian.com>
7107 * StatusBarPanel.cs: Signature cleanups. Implement
7110 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
7112 * DataGridTextBoxColumn.cs: Honors aligment
7113 * GridColumnStylesCollection.cs: Contains is case unsensitive
7114 * GridTableStylesCollection.cs: several fixes
7115 * DataGridTableStyle.cs: default column creation
7116 * DataGridDrawingLogic.cs: fixes
7117 * CurrencyManager.cs: ListName property
7118 * DataGrid.cs: multiple styles support
7119 * DataGridColumnStyle.cs: fixes
7122 2005-06-10 Peter Bartok <pbartok@novell.com>
7124 * Control.cs(Select): Moved SetFocus call to avoid potential
7125 loops if controls change the active control when getting focus
7126 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7129 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
7131 * ImageListConverter.cs: Implemented
7133 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
7135 * MonthCalendar.cs: Wired in NumericUpDown control for year
7137 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
7139 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7140 DoubleClick events, since they are not meant to be fired.
7142 2005-06-09 Peter Bartok <pbartok@novell.com>
7144 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7145 Jonathan's standalone controls into MWF, implemented missing
7146 events, attributes and methods; added xxxAccessible classes
7147 * AccessibleObject.cs: Made fields internal so other classes
7148 can change them if needed
7150 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
7152 * UpDownBase.cs: Complete implementation
7153 * NumericUpDown.cs: Complete implementation
7154 * DomainUpDown.cs: Complete implementation
7156 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
7158 * DataGridTextBoxColumn.cs: drawing fixes
7159 * DataGridCell.cs: fixes ToString method to match MSNet
7160 * DataGridTableStyle.cs: fixes
7161 * DataGridBoolColumn.cs: fixes, drawing
7162 * DataGridDrawingLogic.cs: fixes, new methods
7163 * DataGridTextBox.cs: Keyboard and fixes
7165 - Keyboard navigation
7167 - Row selection (single, multiple, deletion, etc)
7170 2005-06-07 Jackson Harper <jackson@ximian.com>
7172 * ThemeWin32Classic.cs: Clear the background area when drawing
7175 2005-06-06 Peter Bartok <pbartok@novell.com>
7177 * ImageListStreamer.cs: Fixed signature for GetData
7178 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7180 - Added missing ChildAccessibleObject class
7181 - Added missing OnXXXFocus overrides, switched to using those
7182 instead of the event handler
7184 - Added Parent property for ControlAccessibleObject
7187 - Added ResetBindings()
7188 * ListBindingConverter.cs: Implemented some methods
7189 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7190 * ImageList.cs: Implemented basic handle scheme, removed TODOs
7191 * ContainerControl.cs: Fixed signature, now subscribing to the
7192 ControlRemoved event instead of overriding the handler, LAMESPEC
7193 * CurrencyManager.cs: Added missing attribute
7194 * MonthCalendar.cs: Added missing properties
7196 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
7198 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7200 2005-06-06 Gaurav Vaish and Ankit Jain
7202 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7203 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7205 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
7207 * Control.cs: fixes CreateParams Width / Height.
7209 2005-06-05 Peter Bartok <pbartok@novell.com>
7211 * Win32DnD.cs: Removed compilation warnings
7213 2005-06-05 Peter Bartok <pbartok@novell.com>
7215 * Control.cs (CreateParams): Since we don't know if one of the
7216 properties we use is overridden, lets make sure if we fail accessing
7217 we continue with a backup plan
7219 2005-06-05 Peter Bartok <pbartok@novell.com>
7222 - Removed debug output
7223 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7225 - Plugged resource leak
7226 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7229 2005-06-05 Peter Bartok <pbartok@novell.com>
7231 * XplatUIWin32.cs: Removed DnD code
7232 * Win32DnD.cs: Implemented drop source and drop target functionality
7234 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7236 * UpDownBase.cs: remove duplicate addition of event, enable some code
7237 that was commented out.
7238 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7239 Validate input when a key is pressed. It works fine now for every
7240 combination of Hexadecimal. Only missing some drawing love when sharing
7241 space with other controls.
7243 2005-06-04 Peter Bartok <pbartok@novell.com>
7246 - We need to pass a window for DragDrop, so enable callback events
7247 - Added DnD callback events when being a DragSource
7248 * XplatUI.cs (StartDrag): Added window handle argument
7249 * XplatUIDriver.cs (StartDrag): Added window handle argument
7250 * QueryContinueDragEventArgs: Made fields internally accessible so
7251 drivers can set them
7252 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7255 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
7257 * DataGridTextBoxColumn.cs: column text editing
7258 * DataGridTableStyle.cs: Respect columns styles created by the user
7259 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7260 * DataGridBoolColumn.cs: bool column editing
7261 * DataGrid.cs: fixes to scrolling, properties, etc
7262 * DataGridTextBox.cs: handle keyboard
7263 * DataGridColumnStyle.cs: fixes
7265 2005-06-02 Jackson Harper <jackson@ximian.com>
7267 * ImageListStreamer.cs: Somewhat broken implementation of
7268 GetObjectData. The RLE needs some work to match MS properly.
7270 2005-06-02 Jackson Harper <jackson@ximian.com>
7272 * X11Dnd.cs: Attempting to keep at least one file in MWF
7275 2005-06-02 Peter Bartok <pbartok@novell.com>
7277 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7280 2005-06-02 Peter Bartok <pbartok@novell.com>
7282 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7283 * XplatUI.cs: Added DoDragDrop() method
7284 * XplatUIDriver.cs: Added DoDragDrop() method
7286 2005-06-02 Jackson Harper <jackson@ximian.com>
7288 * Splitter.cs: Implement BorderStyle.
7290 2005-06-02 Jackson Harper <jackson@ximian.com>
7292 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7293 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7296 2005-06-02 Peter Bartok <pbartok@novell.com>
7300 - Fixed broken insertion code for SetData, now also
7301 overwrites any existing entry of the same format name
7302 * Hwnd.cs: Added list of pointers that automatically gets
7303 freed when the window is disposed
7304 * XplatUI.cs: Call driver initialization method when loading
7307 - OnDragLeave takes EventArgs, not DragEventArgs
7308 - Added setting of WS_EX_ACCEPTFILES style when dropping is
7310 - Forces style update when drop state changes
7311 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7312 not perfect since we cannot (yet) call the IDataObject.GetData()
7313 method, we keep getting 0x80004005 error, dunno why)
7315 2005-06-02 Peter Bartok <pbartok@novell.com>
7317 * DragEventArgs.cs: Make fields internal so we can cache the
7318 object and re-set the fields from XplatUI
7320 2005-06-02 Jackson Harper <jackson@ximian.com>
7322 * Control.cs: Add some internal methods so the DnD subsystem can
7323 raise DnD events. Also call into the driver when AllowDrop is set.
7325 * XplatUIDriver.cs: New method for setting whether or not a window
7326 is allowed to accept drag and drop messages.
7328 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
7330 * ScrollBar.cs: Make sure that values sent in Scroll events
7331 are always between Maximum and Minimum.
7333 2005-06-01 Marek Safar <marek.safar@seznam.cz>
7335 * Menu.cs: Call MenuChanged when menuitem visibility has been
7337 * MenuItem.cs: Rebuild menu when item is (not) visible.
7338 * MainMenu.cs: MainMenu has special MenuChanged.
7339 * Theme.cs: Caption and FrameBorderSize are not fixed.
7340 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7341 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7343 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7344 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7346 2005-05-30 Jackson Harper <jackson@ximian.com>
7348 * DataFormat.cs: We can't statically initialize this stuff because
7349 it calls into the xplatui and could create a loop. So we lazy init
7352 2005-05-28 Jackson Harper <jackson@ximian.com>
7354 * Control.cs: Proper implementation of Product(Name/Version).
7356 2005-05-27 Jackson Harper <jackson@ximian.com>
7358 * DataObject.cs: Dont crash if no data is found.
7360 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
7361 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7362 as per status page, guessing it should be set to true
7364 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
7366 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7367 * DataGridTableStyle.cs: set proper formatting text, def header text
7368 * ThemeWin32Classic.cs: new themable paramaters
7369 * DataGridBoolColumn.cs: paint check box, get data, fixes
7370 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7371 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7372 * DataGridColumnStyle.cs: fixes
7373 * Theme.cs: new themable paramaters
7375 2005-05-26 Peter Bartok <pbartok@novell.com>
7377 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7379 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7380 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7382 2005-05-24 Peter Bartok <pbartok@novell.com>
7384 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7385 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7386 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7387 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7388 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7389 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7390 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7391 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7392 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7393 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7394 missing attributes, etc
7395 * DataGridPreferredColumnWidthTypeConverter.cs: Added
7397 2005-05-24 Peter Bartok <pbartok@novell.com>
7399 * Help.cs: Added, implemented trivial functions, throws up MessageBox
7400 when user tries to get help
7401 * DataObject.cs, DataFormats.cs, LinkArea.cs,
7402 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7403 to suppress warnings
7404 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7405 avoid unreachable code warning
7407 2005-05-20 Peter Bartok <pbartok@novell.com>
7409 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7411 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7413 * DataGridTextBoxColumn.cs: Basic painting methods
7414 * DataGridTableStyle.cs: Set table style in the column
7415 * ThemeWin32Classic.cs: Use Theme for colors
7416 * DataGridDrawingLogic.cs: Implement more drawing
7417 * DataGrid.cs: drawing, theming, enhacements, fixes
7418 * DataGridColumnStyle.cs: fixes, drawing
7419 * Theme.cs: theming for Datagrid
7421 2005-05-20 Peter Bartok <pbartok@novell.com>
7423 * Cursor.cs: Implemented GetObjectData() method
7425 2005-05-20 Peter Bartok <pbartok@novell.com>
7427 * Cursors.cs: Added setting of cursor name
7429 - Implemented constructors
7430 - Implemented Draw and DrawStretched
7431 - Implemented Current property
7432 - Implemented == and != operators
7433 - Implemented Dispose()
7434 - Implemented ToString
7435 - Added missing attributes
7437 - Added missing reset for OverrideCursor when DoEvents is called
7438 - Fixed creation of cursor, logic was wrong
7440 - Added missing reset for OverrideCursor when DoEvents is called
7441 - Fixed creation of cursor, bit arrays were swapped
7442 * Clipboard.cs: Removed obsolete MonoTODO attribute
7444 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7446 * ComboBox.cs: fixes OnSelectedItemChanged
7447 * ControlBindingsCollection.cs: fixes item range check
7449 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7452 - Calc preferred height properly
7453 - Implement missing properties
7455 * NumericUpDown.cs: Implement missing events
7457 2005-05-19 Jackson Harper <jackson@ximian.com>
7459 * TabControl.cs: New method that resizes the tab pages before
7460 redrawing them. This as needed as the control is double buffered
7461 and sizing will not be recalculated unless ResizeTabPages is
7463 * TabPage.cs: Set base.Text instead of Text in the constructor so
7464 that UpdateOwner does not get called. Use the new Redraw method of
7465 TabControl instead of Refresh so the sizing is recalculated.
7466 * ThemeWin32Classic.cs: Draw the text for button tabs.
7468 2005-05-19 Jackson Harper <jackson@ximian.com>
7470 * Control.cs: Paint control background images. Fix typo where
7471 PaintControlBackground was not getting called correctly.
7473 2005-05-19 Peter Bartok <pbartok@novell.com>
7475 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7476 I can investigate, apparently I broke FileDialog
7478 2005-05-19 Marek Safar <marek.safar@seznam.cz>
7480 * AxHost.cs: Some simple properties.
7481 * Control.cs: window must be accessible after ctor.
7482 * Form.cs: Added TransparencyKey property.
7483 * TextBoxBase.cs: Implemented Clear. Text property can be null.
7484 * XplatUIWin32.cs: SetBorderStyle implemented.
7486 2005-05-18 Peter Bartok <pbartok@novell.com>
7488 * DataObject.cs: Entries are not global but particular to the
7489 DataObject, now it behaves that way
7490 * XplatUIWin32.cs: Implemented Clipboard methods
7491 * Clipboard.cs: Implemented
7492 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7493 * XplatUIOSX.cs: Updated to final clipboard prototypes
7494 * XplatUIX11.cs: Implemented Clipboard methods
7495 * XplatUIDriver.cs: Updated to final clipboard prototypes
7496 * XplatUIStructs.cs:
7497 - Added BITMAPINFOHEADER struct
7498 - Added ClipboardFormats enum
7500 - Added ClipboardStruct
7501 - Added Atom enum items for clipboard types
7502 - Fixed atom types for Selection event structures
7504 - Added internal properties and methods for drivers to enumerate
7506 - Switched initialization method to allow drivers to assign their
7507 own IDs even for the MS predefined clipboard IDs
7508 * XplatUI.cs: Updated to final clipboard interface
7510 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7511 * PropertyGridView.cs: Fixed compiler warnings.
7513 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7514 * PropertyGrid.cs: Added some event calls
7515 * PropertyGridView.cs: Change drawing code to use double buffering
7516 * PropertyGridTextBox.cs: Changed Text property name
7517 * GridItem.cs: Added Bounds property.
7518 * GridEntry.cs: Added Bounds property.
7520 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
7522 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7523 since GetType() may not return the correct type if the object is
7526 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
7528 * TreeNodeCollection.cs: fixes get/set item ranges
7530 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
7532 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7534 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
7536 * ComboBox.cs: Fix item range comparation
7537 * ListView.cs: Fix item range comparation
7539 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
7542 - Clear example panel when OnPaint is called
7543 - Better solution for displaying the example panel text
7544 - Select default indexes in the ListBoxes
7546 2005-05-11 Geoff Norton <gnorton@customerdna.com>
7548 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
7550 2005-05-11 Peter Bartok <pbartok@novell.com>
7552 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7553 * SelectionRangeConverter.cs: Implemented
7554 * PropertyGrid.cs: Fixed attribute value
7556 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7557 - Added Sebastien Pouliot's CAS Stack Propagation fixes
7558 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7559 that's common to all drivers. First methods to go there are
7560 Sebastien Pouliot's CAS Stack Propagation helper methods
7561 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7562 Sebastien Pouliot for CAS Stack Propagation
7564 2005-05-11 Geoff Norton <gnorton@customerdna.com>
7567 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7569 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
7571 * DataGridTextBoxColumn.cs: fixed some members
7572 * GridColumnStylesCollection.cs: indexed column is case insensitive
7573 * DataGridTableStyle.cs: fixes
7574 * ThemeWin32Classic.cs: add new theme parameter
7575 * Theme.cs: add new theme parameter
7576 * DataGridDrawingLogic.cs: Datagrid's drawing logic
7577 * DataGrid.cs: fixes, new internal properties, etc.
7578 * DataGridColumnStyle.cs: allows to set grid value
7581 2005-05-10 Peter Bartok <pbartok@novell.com>
7583 * AccessibleObject.cs:
7584 - Removed MonoTODO attribute on help, method is correct
7585 - Fixed Bounds property
7586 * AxHost.cs: Moved MonoTODO
7587 * ButtonBase.cs: Now setting AccessibleObject properties
7588 * RadioButton.cs: Setting proper AccessibleObject role
7589 * CheckBox.cs: Setting proper AccessibleObject role
7590 * ControlBindingsCollection.cs: Added properties, methods and attributes
7591 * DataFormats.cs: Fixed awkward internal API, and changed to enable
7592 userdefined DataFormats.Format items as well
7593 * ListControl.cs: Removed data_member from the public eye
7594 * OpenFileDialog.cs:
7596 - Added missing attributes
7597 * SaveFileDialog.cs: Added missing attributes
7598 * ImageListStreamer.cs: Fixed code that caused warnings
7599 * LinkLabel.cs: Removed unreachable code
7600 * TreeView.cs: Fixed code that caused warnings
7601 * PropertyGridView.cs: Fixed code that caused warnings
7602 * GridColumnStylesCollection.cs: Added missing attributes
7603 * GridTableStylesCollection: Added missing attribute
7604 * PropertyManager: Added .ctor
7605 * SecurityIDType: Added
7606 * DataObject.cs: Implemented class
7607 * LinkArea.cs: Added missing attribute
7609 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
7611 * RadioButton.cs: call base method to allow to fire OnClick event
7612 * UpDownBase.cs: OnMouseUp call base method
7613 * CheckedListBox.cs: call base method before returning
7614 * TrackBar.cs: call base method before returning
7617 2005-05-10 Peter Bartok <pbartok@novell.com>
7619 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7622 2005-05-10 Peter Bartok <pbartok@novell.com>
7624 * DataFormats.cs: Implemented
7625 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7626 XplatUIX11.cs: Added Clipboard APIs
7627 * XplatUIWin32.cs: Implemented Clipboard APIs
7628 * FolderBrowserDialog.cs: Added missing event, attributes
7630 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
7632 * CheckBox.cs: call base method to allow to fire OnClick event
7634 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
7636 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7638 2005-05-06 Peter Bartok <pbartok@novell.com>
7640 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7641 * Screen.cs: Implemented
7642 * HelpNavigator.cs: Added
7643 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7645 * HelpProvider.cs: Implemented all we can do until we have a CHM
7646 help library (which means that "What's This" does work now)
7648 2005-05-06 Jackson Harper <jackson@ximian.com>
7650 * XplatUIX11.cs: Fix waking up the main loop.
7652 2005-05-05 Peter Bartok <pbartok@novell.com>
7654 * XplatUI.cs: Updated revision
7655 * Form.cs: Removed enless loop
7656 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7657 * Label.cs (OnPaint): Added call to base.OnPaint()
7658 * ToolTip.cs: Made ToolTipWindow reusable for other controls
7659 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7660 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7662 * ButtonBase.cs: Moved base.OnPaint() call to end of method
7663 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7664 to ToolTip.ToolTipWindow for drawing and size methods; this allows
7665 reuse of ToolTipWindow by other controls
7666 * SizeGrip.cs: Moved base.OnPaint() call to end of method
7667 * XplatUIX11.cs: Now clipping drawing area (experimental)
7668 * PictureBox.cs: Moved base.OnPaint() call to end of method
7669 * Theme.cs: Fixed ToolTip abstracts to match new format
7670 * ErrorProvider.cs: Implemented
7672 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
7674 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7678 - Implements LinkBehavior
7681 2005-05-03 Jackson Harper <jackson@ximian.com>
7683 * ListView.cs: Calculate the scrollbar positioning on resize and
7684 paint, so they get put in the correct place.
7686 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
7688 * ColorDialogs.cs: The small color panels are now handled by
7689 SmallColorControl. This fixes drawing of the focus rectangle
7690 and adds a 3D border.
7692 2005-05-03 Peter Bartok <pbartok@novell.com>
7694 * Control.cs: Modified version of Jonathan Chamber's fix for
7697 2005-05-03 Jackson Harper <jackson@ximian.com>
7699 * ListView.cs: Remove redraw variable. Control now handles whether
7700 or not a redraw needs to be done, and will only raise the paint
7701 event if redrawing is needed.
7703 2005-05-03 Jackson Harper <jackson@ximian.com>
7705 * Splitter.cs: No decorations for the splitter form. Cache the
7708 2005-05-03 Jackson Harper <jackson@ximian.com>
7710 * TreeView.cs: Use dashed lines to connect nodes. Use the
7711 ControlPaint method for drawing the focus rect instead of doing
7714 2005-05-02 Peter Bartok <pbartok@novell.com>
7716 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7718 2005-04-29 Jackson Harper <jackson@ximian.com>
7720 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7721 entire image buffer. Just clear the clipping rectangle.
7723 2005-04-29 Jackson Harper <jackson@ximian.com>
7725 * ThemeWin32Classic.cs: Don't draw list view items that are
7726 outside the clipping rectangle.
7728 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
7730 * ListBox.cs: added horizontal item scroll
7732 2005-04-29 Jackson Harper <jackson@ximian.com>
7734 * ThemeWin32Classic.cs: Remove some old debug code that was
7735 causing flicker with the new double buffering code.
7737 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
7739 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7740 behave like combobox and comboboxlist (still not sure if this is
7743 2005-04-28 Jackson Harper <jackson@ximian.com>
7745 * ThemeWin32Classic.cs: Don't fill the middle of progress
7746 bars. This fills areas outside of the clip bounds that don't need
7749 2005-04-28 Jackson Harper <jackson@ximian.com>
7751 * Control.cs: Don't expose functionality to touch the image buffers.
7753 * ListView.cs: We do not need to (and no longer can) manipulate
7754 the image buffers directly. All of this is handled by Control.
7756 2005-04-28 Peter Bartok <pbartok@novell.com>
7758 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7759 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7760 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7762 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
7765 - Adjust control's height for non-simple comboboxes (bug fix)
7767 * MenuAPI.cs: remove unused var
7768 * ScrollBar.cs: remove unsed var
7770 * ListBox.cs: unselect items when clearing
7772 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
7774 * ListControl.cs: honors OnPositionChanged and default Selected Item
7775 * ListBox.cs: unselect items when clearing
7777 2005-04-27 Jackson Harper <jackson@ximian.com>
7779 * X11Keyboard.cs: Initialize a default keyboard and give a warning
7780 if a "correct" keyboard is not found. This will make us not crash,
7781 but might give some users bad keyboard layouts...seems to be the
7782 same thing rewind does.
7784 2005-04-27 Jackson Harper <jackson@ximian.com>
7786 * BindingManagerBase.cs: Attach the current/position changed
7787 handlers to their respective events.
7789 2005-04-27 Jackson Harper <jackson@ximian.com>
7791 * Control.cs: Make sure that the first WM_PAINT does a full draw,
7793 * ThemeWin32Classic.cs: Don't fill the background for picture
7794 boxes. This could overright user drawing.
7795 * ComboBox.cs: Just fill the clipping rect not the entire client
7796 rect when drawing the background. This prevents pieces of the
7797 image buffer from getting overwritten and is theoretically faster.
7799 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
7801 * ComboBox.cs: Databinding support fixes, fire missing events
7802 * ListControl.cs: implement missing methods and properties, fixes
7803 * ThemeWin32Classic.cs: Databiding support on Drawing
7804 * CheckedListBox.cs: Databinding support fixes, fire missing events
7805 * ListBox.cs: Databinding support fixes, fire missing events
7807 2005-04-25 Peter Bartok <pbartok@novell.com>
7809 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7811 2005-04-25 Jackson Harper <jackson@ximian.com>
7813 * TreeView.cs: Use the horizontal scrollbars height not width when
7814 determining how much of the client area is available.
7816 2005-04-25 Jackson Harper <jackson@ximian.com>
7818 * Control.cs: Double buffering is handled differently now. As per
7819 the spec, the extra buffer is created in the WM_PAINT message and
7820 passed down to the control's drawing code.
7828 * PropertyGridView.cs:
7840 * DateTimePicker.cs:
7842 * TreeView.cs: Update to new double buffering system.
7843 * MonthCalendar.cs: Uncomment block, as Capture is now
7844 working. Update to new double buffering
7845 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7846 * PaintEventArgs.cs: New internal method allows us to set the
7847 graphics object. This is used for double buffering.
7848 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7849 rectangle. The internal paint_area var has been removed from
7850 StatusBar. The clipping rect should be used instead.
7851 * Theme.cs: Give the PictureBox drawing method a clipping rect.
7852 * TabPage.cs: The RefreshTabs method was removed, so just call the
7853 tab controls Refresh method now.
7854 * TabControl.cs: Update to new double buffering. Make sure the
7855 handle is created before sizing the tab pages, otherwise we will
7856 get stuck in a loop.
7858 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
7860 * LinkLabel.cs: Fix typo, bug #74719; patch
7861 from Borja Sanchez Zamorano
7863 2005-04-22 Jackson Harper <jackson@ximian.com>
7865 * TreeNode.cs: Implement Handle stuff.
7866 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7868 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
7870 * DataGridTextBoxColumn.cs: call base constructors, fixes
7871 * GridColumnStylesCollection.cs: missing events, methods, and functionality
7872 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7873 * DataGridTableStyle.cs: implements create default column styles
7874 * DataGridBoolColumn.cs: which types can handle
7875 * DataGrid.cs: missing methods, fixes, new functionality
7876 * DataGridColumnStyle.cs: fixes
7878 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
7879 * FolderBrowserDialog.cs:
7880 - Use a thread to fill the TreeView
7881 - Adjusted some sizes
7883 2005-04-19 Peter Bartok <pbartok@novell.com>
7885 * LinkLabel.cs: (Re-)create the pieces when setting the Text
7886 property. Fixes #74360.
7888 2005-04-19 Jackson Harper <jackson@ximian.com>
7890 * XEventQueue.cs: Lock when getting the lockqueue size.
7891 * PictureBox.cs: Call base OnPaint
7893 2005-04-19 Peter Bartok <pbartok@novell.com>
7895 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7896 messages were no longer being processed (this broke BeginInvoke)
7899 2005-04-18 Jackson Harper <jackson@ximian.com>
7901 * TreeView.cs: buglet that caused node images to get drawn
7902 regardless of whether or not they were in the clipping rectangle.
7904 2005-04-18 Jackson Harper <jackson@ximian.com>
7906 * CurrencyManager.cs: There are four rules for GetItemProperties:
7907 - If the type is an array use the element type of the array
7908 - If the type is a typed list, use the type
7909 - If the list contains an Item property that is not an object, use
7911 - use the first element of the list if there are any elements in
7914 2005-04-17 Jackson Harper <jackson@ximian.oom>
7916 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7917 click. This handles offsets for scrolling properly and reduces
7918 memory. Also fixed GetNode to not offset now that TopNode works
7920 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7922 2005-04-17 Jackson Harper <jackson@ximian.com>
7924 * CursorConverter.cs: Initial implementation.
7926 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
7928 * ListControl.cs: work towards complex data binding support on ListControl
7929 * CurrencyManager.cs: work towards complex data binding support on ListControl
7930 * ListBox.cs: work towards complex data binding support on ListControl
7933 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
7935 * GridTableStylesCollection.cs: fixes name and constructor
7936 * DataGridTableStyle.cs: fixes
7937 * DataGridBoolColumn.cs: fixes names and constructors
7938 * DataGrid.cs: define methods and properties. Some init implementations
7939 * DataGridCell.cs: define methods and properties. Some init implementations
7940 * GridTablesFactory.cs: Define methods and properties
7942 2005-04-15 Geoff Norton <gnorton@customerdna.com>
7944 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
7945 graphics port changes. We still want the coordinates in global screen
7948 2005-04-14 Jackson Harper <jackson@ximian.com>
7950 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7951 check plus minus or checkbox clicks unless those features are enabled.
7953 2005-04-14 Jackson Harper <jackson@ximian.com>
7955 * TreeView.cs: Add methods for setting the top and bottom visible
7956 nodes. TreeNode::EnsureVisible uses these methods.
7957 * TreeNode.cs: Implement EnsureVisible
7959 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
7961 * Form.cs: Pospone menu assignation if the window has not been created yet
7962 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7965 2005-04-12 Jackson Harper <jackson@ximian.com>
7967 * TreeView.cs: Set the TopNode properly when scrolling
7968 occurs. This has the added benifit of reducing the amount of
7969 walking that needs to be done when drawing. Also removed an old
7971 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7973 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
7975 * Timer.cs: fixes interval setting when the timer is already enabled
7977 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
7979 * FolderBrowserDialog.cs: First approach
7981 2005-04-09 Peter Bartok <pbartok@novell.com>
7983 * FolderBrowserDialog: Added
7985 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
7987 * LinkLabel.cs: move drawing code into the theme
7988 * ThemeWin32Classic.cs: drawing code and painting background bugfix
7989 * Theme.cs: define DrawLinkLabel method
7991 2005-04-05 Jackson Harper <jackson@ximian.com>
7993 * BindingContext.cs: Use weak references so these bad actors don't
7994 stay alive longer then they need to.
7996 2005-04-05 Jackson Harper <jackson@ximian.com>
7998 * ListControl.cs: Basic implementation of complex databinding.
8000 * ListBox.cs: Add calls to ListControl databinding methods.
8002 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
8005 - Don't change PopupButtonState to Normal when the
8006 PopupButton gets pressed several times.
8007 - Renamed ButtonPanel to PopupButtonPanel
8009 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
8011 * ColorDialog.cs: Use cached objects instead of creating them
8012 * LinkLabel.cs: Use cached objects instead of creating them
8013 * Splitter.cs: Use cached objects instead of creating them
8014 * FontDialog.cs: Use cached objects instead of creating them
8015 * PropertyGridView.cs: Use cached objects instead of creating them
8016 * MessageBox.cs: Use cached objects instead of creating them
8017 * FileDialog.cs: Use cached objects instead of creating them
8018 * ThemeWin32Classic.cs: Use cached objects instead of creating them
8019 * TreeView.cs: Use cached objects instead of creating them
8021 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
8023 * Control.cs: use Equals to compare the font since no == op
8024 * ScrollBar.cs: use Equals to compare the font since no == op
8026 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
8028 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8030 2005-04-01 Jackson Harper <jackson@ximian.com>
8032 * Binding.cs: Implement IsBinding.
8033 * BindingManagerBase.cs:
8034 * PropertyManager.cs:
8035 * CurrencyManager.cs: Add IsSuspended property.
8037 2005-04-01 Jackson Harper <jackson@ximian.com>
8039 * Binding.cs: Had some IsAssignableFrom calls backwards.
8041 2005-04-01 Jackson Harper <jackson@ximian.com>
8043 * Binding.cs: Handle null data members when pulling data.
8044 * PropertyManager.cs: Handle the data member being a property that
8047 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
8049 * DataGridTextBoxColumn.cs: fixes signature
8050 * DataGrid.cs: calls right constructor
8052 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
8054 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8055 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8056 * GridTableStylesCollection.cs: implements GridTableStylesCollection
8057 * DataGridTableStyle.cs: implements DataGridTableStyle
8058 * DataGridBoolColumn.cs: implements DataGridBoolColumn
8059 * DataGridTextBox.cs: implements DataGridTextBox
8060 * DataGridColumnStyle.cs: implements DataGridColumnStyle
8062 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
8064 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8066 2005-03-29 Peter Bartok <pbartok@novell.com>
8069 - Properly implemented CompanyName property
8070 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8071 returns a path that includes CompanyName, ProductName and
8072 Version (fixes bug #70330)
8074 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
8076 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8079 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
8081 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8083 - Added ReadOnly CheckBox
8084 - Further refactoring: moved some code from Open-/SaveFileDialog
8087 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
8089 * OpenFileDialog.cs: Fixed CheckFileExists
8091 Moved FileView and DirComboBox outside FileDialog class.
8092 They can now be used outside FileDialog
8094 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
8096 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8097 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8099 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
8101 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8102 - Added missing CreatePrompt property in SaveDialog
8103 - Overall SaveDialog handling should be better now
8104 - Added non standard ShowHiddenFiles property
8105 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8106 - Added InitialDirectory and RestoreDirectory support
8108 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
8110 * FileDialog.cs: Made dirComboBox usable
8112 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
8114 * FileDialog.cs: Added Filter support (case sensitiv)
8116 2005-03-24 Jackson Harper <jackson@ximian.com>
8118 * TabControl.cs: Need a couple more pixels for the lines.
8120 2005-03-23 Jackson Harper <jackson@ximian.com>
8122 * TabControl.cs: Give the tab page focus when it is selected.
8124 2005-03-23 Jackson Harper <jackson@ximian.com>
8126 * TabControl.cs: Account for the drawing of tabs borders when
8127 invalidating. If the slider was clicked dont do click detection on
8130 2005-03-23 Jackson Harper <jackson@ximian.com>
8132 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8134 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
8136 * CategoryGridEntry.cs: Added
8137 * GridItem.cs: Added helper properties
8138 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8139 * GridEntry.cs: Updated code for collection
8140 * PropertyGrid.cs: Cleaned up some formatting
8141 * PropertyGridView.cs: Added drop down functionality for enums.
8142 * GridItemCollection.cs: Added enumerator logic
8143 * PropertyGridEntry.cs: Added
8145 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
8148 - Removed unnecessary commented code
8149 - Fixed handling for entering the filename manually in the combobox
8151 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
8153 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8155 2005-03-18 Peter Bartok <pbartok@novell.com>
8157 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8158 them being touching the border
8160 2005-03-18 Peter Bartok <pbartok@novell.com>
8162 * TextControl.cs: Quick hack to center text better
8164 2005-03-18 Peter Bartok <pbartok@novell.com>
8167 - Don't throw NotImplemented exceptions, just print a notice once
8168 instead (requested by Miguel). This makes running existing SWF
8171 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8172 - Added context menu trigger on right click
8173 * Panel.cs: Trigger invalidate on resize
8175 - Removed old double-buffer drawing
8176 - Added ResizeRedraw style to force proper update of statusbar
8178 - Removed debug output
8179 * ThemeWin32Classic.cs:
8180 - Fixed drawing of status bar, now draws Text property if there
8181 are no defined panels
8183 2005-03-18 Jackson Harper <jackson@ximian.com>
8185 * ImageList.cs: When the image stream is set pull all the images
8187 * ImageListStreamer.cs: Implement reading image list streams.
8189 2005-03-18 Peter Bartok <pbartok@novell.com>
8191 * ThemeWin32Classic.cs (DrawPictureBox):
8192 - Fixed calculations for centered drawing
8193 - Fixed drawing for normal mode, not scaling the image on normal
8195 2005-03-18 Peter Bartok <pbartok@novell.com>
8197 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8200 - Made Open/Save button the accept button for FileDialog
8201 - Tied the cancel button to the IButtonControl cancel button
8202 - Save/Open now properly builds the pathname
8203 - Now handles user-entered text
8204 - Preventing crash on right-click if no item is selected
8205 - Fixed Text property, now uses contents of textbox
8206 - Fixed SelectedText property, now just returns the text part that
8207 is selected in the text box
8209 2005-03-18 Jackson Harper <jackson@ximian.com>
8211 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8212 rect, make sure to de-adjust the interior rect after drawing the
8215 2005-03-18 Peter Bartok <pbartok@novell.com>
8217 * MenuAPI.cs: Remove menu *before* executing selected action to
8218 prevent the menu from 'hanging around'
8220 2005-03-17 Geoff Norton <gnorton@customerdna.com>
8222 * XplatUIOSX.cs: Implemented WorkingArea property
8224 2005-03-17 Peter Bartok <pbartok@novell.com>
8226 * XplatUIX11.cs: Fixed menu coord calculations
8227 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8228 for calculating offsets
8230 2005-03-17 Peter Bartok <pbartok@novell.com>
8232 * Hwnd.cs: Do not consider menu presence for default client
8233 rectangle location/size
8234 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8235 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8236 translation functions
8237 * FileDialog.cs: Fixed (what I presume is a) typo
8239 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
8241 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8242 X access (avoids X-Async errors)
8244 2005-03-16 Jackson Harper <jackson@ximian.com>
8246 * TabControl.cs: Raise the SelectedIndexChanged event.
8248 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
8250 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8251 - Removed vertical ToolBar and replaced it with a custom panel
8252 (desktop and home button already work)
8253 - Added Help button (some controls get resized or relocated then)
8254 - Draw correct text depending on Open or Save.
8255 - Fixed some typos...
8257 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
8260 - Only change Maximum and Minimum when need it (bug fix)
8262 2005-03-15 Peter Bartok <pbartok@novell.com>
8264 * Form.cs: Use Handle for icon, to trigger creation if
8265 the window does not yet exist
8267 - CanSelect: Slight performance improvement
8268 - Focus(): Preventing possible recursion
8269 - Invalidate(): Removed ControlStyle based clear flag setting
8270 - WM_PAINT: fixed logic for calling OnPaintBackground
8271 - WM_ERASEBKGND: Fixed logic, added call to new driver method
8272 EraseWindowBackground if the control doesn't paint background
8274 - Moved EraseWindowBackground() method to internal methods
8275 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8276 is sent via SendMessage on BeginPaint call on Win32
8278 - Added EraseWindowBackground() method
8279 - No longer sends WM_ERASEBKGND on .Expose, but on call to
8280 PaintEventStart, which more closely matches Win32 behaviour
8281 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8282 - Fixed SetFocus() to properly deal with client and whole windows
8283 * Hwnd.cs: Added ErasePending property
8284 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8285 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8287 2005-03-12 Geoff Norton <gnorton@customerdna.com>
8290 - Fix hard loop when timers exist.
8291 - Fix bugs with middle and right click for 3 button mice.
8293 2005-03-11 Peter Bartok <pbartok@novell.com>
8296 - get_WorkingArea: Need to call X directly, GetWindowPos only
8297 returns cached data now
8298 - Added sanity check to GetWindowPos hwnd usage
8300 2005-03-11 Jackson Harper <jackson@ximian.com>
8302 * BindingManagerBase.cs: This method isn't used anymore as
8303 PullData now updates the data in the control.
8305 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
8307 * Form.cs: fixes menu drawing on X11
8308 * MenuAPI.cs: fixes menu drawing on X11
8310 2005-03-11 Peter Bartok <pbartok@novell.com>
8312 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8313 from Jonathan Gilbert; should fix bug #73606
8314 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8315 in Screen coordinates. Thanks, Jordi.
8316 * Form.cs: Added missing attribute
8318 2005-03-11 Peter Bartok <pbartok@novell.com>
8321 - Rudimentary Mdi support
8322 - Removed outdated FormParent code
8323 - Implemented lots of missing properties and methods, still missing
8324 transparency support
8325 - Added missing attributes
8326 - Implemented support for MaximumBounds
8327 - Added firing of various events
8328 * XplatUI.cs: Added SetIcon() method
8329 * XplatUIDriver.cs: Added SetIcon() abstract
8330 * XplatUIOSX.cs: Stubbed out SetIcon() method
8332 - Implemented SetIcon() support
8333 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8334 - Switched to unix line endings
8336 - Made POINT internal so for can access it as part of MINMAX
8337 - Implemented SetIcon() support
8338 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8339 native Mdi support again, might have to go managed)
8340 * Control.cs: Now fires the StyleChanged event
8341 * MdiClient.cs: Added; still mostly empty
8343 2005-03-10 Peter Bartok <pbartok@novell.com>
8345 * SaveFileDialog.cs: Added emtpy file
8347 2005-03-08 Peter Bartok <pbartok@novell.com>
8349 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8350 in turn triggers OnCreateContro) when creating a handle for the
8352 * TextControl.cs: Fixed endless loop in certain cases when
8353 replacing the current selection
8355 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
8358 - Honors NewValue changes in Scroll events allowing apps to change it
8359 - Adds First and Last Scroll events
8360 - Fixes Thumb events
8362 2005-03-07 Peter Bartok <pbartok@novell.com>
8364 * Hwnd.cs: Added DefaultClientRectangle property
8365 * XplatUI.cs: Now using the X11 driver Where() method, which provides
8366 more detailed debug information
8368 - Fixed size-change feedback loop, where we would pull an old size
8369 off the queue and mistakenly change our window's size to an
8371 - Now compressing ConfigureNotify events, to reduce looping and
8373 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8376 2005-03-07 Jackson Harper <jackson@ximian.com>
8378 * Binding.cs: Push data pushes from data -> property. Check if the
8379 property is readonly when attempting to set it.
8381 2005-03-07 Jackson Harper <jackson@ximian.com>
8383 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8384 instead of IsSubclassOf. Pulling data now sets the value on the
8386 * PropertyManager.cs:
8387 * CurrencyManager.cs: Just need to pull data when updating now,
8388 because PullData will set the value on the control.
8390 2005-03-04 Jackson Harper <jackson@ximian.com>
8392 * Binding.cs: Implement data type parsing and converting on pulled
8393 data. TODO: Are there more ways the data can be converted?
8395 2005-03-04 Jackson Harper <jackson@ximian.com>
8397 * Binding.cs: Support <Property>IsNull checks. Also bind to the
8398 controls Validating method so we can repull the data when the
8399 control loses focus.
8401 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
8404 - Fixes null string format
8407 - Adds enum type checks
8408 - Fixes redrawing and recalc need after changing some properties
8409 - Fixes on focus_item set after the event
8410 - Fixes adding columns after the control has been created
8412 * ThemeWin32Classic.cs:
8413 - Fixes CheckBox focus rectangle
8414 - Fixes ColumnHeader drawing
8417 2005-03-03 Jackson Harper <jackson@ximian.com>
8419 * Binding.cs: Bind to <Property>Changed events so we can detect
8420 when properties are changed and update the data.
8422 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
8425 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8426 - Fixes ImageList constructor with ImageList container
8427 - Fixes image scaling (wrong parameters at DrawImage)
8429 2005-02-02 Jackson Harper <jackson@ximian.com>
8431 * Binding.cs: Make property searches case-insensitive. Eliminate
8432 some duplicated code.
8434 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
8437 - Handle focus event
8438 - Fix scrollbar events
8439 - Discard highlighted item if remove it
8440 - Fixes SelectedItem with strings
8442 2005-03-01 Peter Bartok <pbartok@novell.com>
8445 - Fixed Visible property, now follows (once again) parent chain
8446 to return false if any control in the chain is visible=false
8447 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8448 - Fixed several places where is_visible instead of Visible was used
8449 - Implemented FIXME related to focus selection when setting focused
8450 control to be invisible
8452 * XplatUIWin32.cs: Now using proper method to find out if window is
8453 visible. Thanks to Jordi for pointing it out
8455 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
8457 * ComboBox.cs: show/hide scrollbar instead of creating it
8459 2005-02-27 Jackson Harper <jackson@ximian.com>
8461 * CurrencyManager.cs: Add PositionChanged stuff.
8463 2005-02-27 Peter Bartok <pbartok@novell.com>
8465 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8466 * XplatUIOSX.cs: Added GetMenuOrigin() stub
8467 * XplatUIWin32.cs: Implemented GetMenuOrigin()
8469 - Implemented GetMenuDC()
8470 - Implemented GetMenuOrigin()
8471 - Implemented ReleaseMenuDC()
8472 - Implemented generation of WM_NCPAINT message
8473 - Implemented generation and handling of WM_NCCALCSIZE message
8474 * Form.cs: Added debug helper message for Jordi's menu work
8476 - Modified ClientRect property; added setter, fixed getter to handle
8477 setting of ClientRect
8478 - Added MenuOrigin property
8480 2005-02-26 Peter Bartok <pbartok@novell.com>
8483 - Destroys the caret if a window that's being destroyed contains it
8484 - Ignores expose events coming from the X11 queue for windows that
8485 already are destroyed
8486 - Now uses the proper variable for handling DestroyNotify, before we
8487 marked the wrong window as destroyed
8488 - Improved/added some debug output
8490 2005-02-26 Peter Bartok <pbartok@novell.com>
8492 * X11Keyboard.cs: Fixes to work on 64bit systems
8494 2005-02-26 Peter Bartok <pbartok@novell.com>
8497 - Now calling OnHandleDestroyed from DestroyHandle()
8498 instead of Dispose()
8499 - Removed bogus call to controls.Remove() from DestroyHandle()
8501 2005-02-26 Peter Bartok <pbartok@novell.com>
8503 * Control.cs: Properly destroy child windows when our handle is
8506 2005-02-25 Peter Bartok <pbartok@novell.com>
8509 - Added 'DriverDebug' define to allow tracing XplatUI API calls
8510 - Alphabetized Static Methods and Subclasses
8513 - Added XException class to allow custom handling of X11 exceptions
8514 - Created custom X11 error handler, tied into XException class
8515 - Added support for MONO_XEXCEPTIONS env var to allow the user
8516 to either throw an exception on X errors or continue running
8517 after displaying the error
8518 - Added handling of DestroyNotify message
8519 - Added handler for CreateNotify message (still disabled)
8520 - Improved (tried to at least) Where method to provide file and lineno
8522 - Added XErrorHandler delegate
8523 - Added XRequest enumeration (to suppor translation of errors)
8525 2005-02-25 Jackson Harper <jackson@ximian.com>
8527 * PropertyManager.cs: Implement editing features
8528 * CurrencyManager.cs:
8529 * Binding.cs: First attempt at UpdateIsBinding
8530 * BindingManagerBase.cs: Call UpdateIsBinding before
8531 pushing/pulling data.
8533 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
8535 * MenuAPI.cs: Respect disabled items
8536 * ThemeWin32Classic.cs
8537 - Caches ImageAttributes creation for DrawImageDisabled
8538 - Fixes vertical menu line drawing
8539 - Draws disabled arrows in disable menu items
8541 2005-02-24 Peter Bartok <pbartok@novell.com>
8544 - Added UserData property to allow associating arbitrary objects
8546 - Fixed leak; now removing Hwnd references from static windows array
8548 - Fixed Graphics leak in PaintEventEnd
8549 - Removed usage of HandleData, switched over to Hwnd class
8550 * HandleData.cs: Removed, obsoleted by Hwnd.cs
8552 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
8554 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8555 * ScrollBar.cs: Fixes bug
8556 * TrackBar.cs: removes death code, clipping, mimize refreshes,
8557 keyboard navigation enhancements
8559 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
8561 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8562 * GroupBox.cs: Add control styles
8563 * Label.cs: Add control styles
8564 * UpDownBase.cs: Add control styles
8565 * ListBox.cs: Add control styles
8566 * XplatUIWin32.cs: Fixes wrong parameter order
8569 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
8571 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8573 2005-02-23 Jackson Harper <jackson@ximian.com>
8575 * PropertyManager.cs: Implement property binding. This doesn't
8576 seem to work yet though as (I think) there are some bugs in
8577 System.ComponentModel.PropertyDescriptor.
8578 * BindingContext.cs: Use new PropertyManager constructor.
8580 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
8582 * ProgressBar.cs: use clip region in ProgressBar
8583 * ThemeWin32Classic.cs: use clip region in ProgressBar
8585 2004-02-22 Jackson Harper <jackson@ximian.com>
8587 * BindingsCollection.cs: Remove some debug code.
8589 2005-02-22 Jackson Harper <jackson@ximian.com>
8591 * BindingContext.cs:
8592 * ControlBindingsCollection.cs:
8593 * CurrencyManager.cs:
8595 * BindingManagerBase.cs: Initial implementation
8596 * BindingsCollection.cs: Add an internal contains method that the
8597 BindingManagerBase uses to ensure bindings aren't added twice to
8599 * PropertyManager.cs: Stubbed out.
8601 * ContainerControl.cs: Hook up databinding
8603 2005-02-22 Geoff Norton <gnorton@customerdna.com>
8606 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8607 Fixed Invalidate/Update chain.
8608 Fixed tons of other minor bugs (this is almost a complete rewrite).
8610 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
8612 * ComboBox.cs: do subcontrol creation when the control is created
8614 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8616 * Label.cs: fixes image drawing (image and imagelist)
8617 * ThemeWin32Classic.cs: cache brushes
8619 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8621 * Form.cs: Move menu drawing code to Theme class
8622 * ComboBox.cs: Move ComboBox drawing code to Theme class
8623 * MenuItem.cs: Move menu drawing code to Theme class
8624 * MenuAPI.cs: Move menu drawing code to Theme class
8625 * ThemeWin32Classic.cs: New methods
8626 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8627 * ListBox.cs: Move Listbox drawing code to Theme class
8628 * Theme.cs: New methods
8630 2005-02-20 Peter Bartok <pbartok@novell.com>
8633 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8634 only process mnemonics on those)
8635 - Fixed event sequence for key handling; first calling
8636 ProcessKeyEventArgs now
8638 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8639 for processing non-character keys
8640 - Fixed WM_CHAR to generate proper event sequence before processing
8641 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8644 2005-02-19 Peter Bartok <pbartok@novell.com>
8646 * UserControl.cs: Added TextChanged event; added attributes
8647 * SizeGrip.cs: Implemented resizing and optional display of grip
8648 * Form.cs: Fixed attribute
8649 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8650 Changed meaning of ScrollWindow bool argument; instead of the
8651 clear attribute (which will be true usually anyway), it gives the
8652 option of moving child controls as well.
8654 - Changed to match new ScrollWindow argument
8655 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8656 now handles the implicit parent window a WM puts around us
8657 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8659 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8660 * TreeView.cs: Adjusted to new ScrollWindow arguments
8662 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8664 * Form.cs: Menu integration with non-client area
8665 * MenuItem.cs: Menu integration with non-client area
8666 * MenuAPI.cs: Menu integration with non-client area
8668 2005-02-18 Peter Bartok <pbartok@novell.com>
8670 * MethodInvoker.cs: Added
8671 * MdiLayout.cs: Added
8672 * SendKeys.cs: Started implementation
8673 * ErrorIconAlignment.cs: Added
8675 2005-02-18 Peter Bartok <pbartok@novell.com>
8677 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8678 * Form.cs: Added handling for Menu-related Non-client messages
8680 2005-02-17 Peter Bartok <pbartok@novell.com>
8682 * UpDownBase.cs: Fixed typo, compilation errors
8683 * DomainUpDown.cs: Fixed attribute value
8685 2005-02-16 Miguel de Icaza <miguel@novell.com>
8687 * UpDownBase.cs: Attach entry events.
8689 Add ForeColor property, Focused, InterceptArrowKeys (interception
8692 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
8695 - Redraw non client are on Setmenu
8696 - Calc proper menu starting point
8698 2005-02-17 Peter Bartok <pbartok@novell.com>
8700 * Application.cs: Fixed message_filter check
8702 2005-02-17 Peter Bartok <pbartok@novell.com>
8704 * Application.cs: Now calls registered message filters
8705 * DockStyle.cs: Fixed attribute
8706 * Form.cs: Fixed attribute
8707 * Menu.cs: Fixed attribute
8708 * ToolTip.cs: Fixed attribute
8709 * TreeNode.cs: Added missing attributes and arranged in regions
8710 * PropertyGrid.cs: Fixed signatures
8711 * TreeNodeCollection.cs: Added attributes
8712 * Splitter.cs: Added missing attributes; arranged into regions
8713 * TabPage.cs: Added missing attributes; arranged into regions
8714 * TextBoxBase.cs: Added missing attributes
8715 * TextBox.cs: Added missing attributes
8716 * ArrangeDirection.cs: Added missing attributes
8717 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8718 * ToolBarButton.cs: Fixed attributes
8719 * AnchorStyles.cs: Fixed attribute
8720 * TrackBar.cs: Fixed attributes
8721 * TabControl.cs: Added missing attributes and arranged into regions
8722 * ToolBar.cs: Fixed attribute
8723 * StatusBar.cs: Fixed signature, organized into regions and added
8725 * StatusBarPanel.cs: Fixed attributes
8726 * ContentsResizedEventArgs.cs: Implemented
8727 * ContentsResizedEventHandler.cs: Implemented
8728 * DateBoldEventArgs.cs: Implemented
8729 * DateBoldEventHandler.cs: Implemented
8730 * UpDownEventArgs.cs: Implemented
8731 * UpDownEventHandler.cs: Implemented
8733 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
8735 * Form.cs: first Menu NC refactoring
8736 * MenuAPI.cs: first Menu NC refactoring
8738 2005-02-16 Peter Bartok <pbartok@novell.com>
8740 * ImeMode.cs: Added missing attributes
8741 * Menu.cs: Fixed attribute
8742 * GroupBox.cs: Fixed attribute
8743 * Label.cs: Fixed attribute
8744 * ColorDialog.cs (RunDialog): Removed TODO attribute
8745 * ComboBox.cs: Fixed attributes
8746 * ListControl.cs: Added missing attributes
8747 * PropertyGrid.cs: Fixed attributes
8748 * Control.cs: Fixed attributes
8749 * ListViewItem.cs: Added TypeConverter attribute
8750 * NotifyIcon.cs: Fixed attributes
8751 * ListView.cs: Fixed attributes
8752 * ButtonBase.cs: Fixed attribute
8753 * ImageList.cs: Added missing attributes
8754 * ContainerControl.cs: Fixed signature
8755 * CheckedListBox.cs: Fixed attribute; added missing attributes
8756 * Panel.cs: Fixed attributes
8757 * PropertyTabChangedEventArgs.cs: Added missing attribute
8758 * PropertyValueChangedEventArgs.cs: Added missing attribute
8759 * Binding.cs: Fixed attribute
8760 * ListViewItemConverter: Implemented ListViewSubItemConverter class
8761 * ListBox.cs: Fixed attribute; added missing attributes;
8762 * ScrollableControl.cs: Added missing attributes
8763 * PictureBox.cs: Added missing attributes; implemented missing property
8764 * DateTimePicker.cs: Added missing attributes
8765 * Theme.cs (ToolWindowCaptionHeight): Fixed type
8766 * MonthCalendar.cs: Fixed attributes
8767 * StatusBarPanel.cs: Added missing attributes
8768 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8770 2005-02-16 Peter Bartok <pbartok@novell.com>
8772 * TextBoxBase.cs: The previous method to enforce height yet remember
8773 the requested high was less than ideal, this is an attempt to do
8775 * Control.cs: Added comment about possible problem
8776 * Copyright: Updated format
8777 * GridItemType.cs: Fixed swapped values
8779 2005-02-15 Jackson Harper <jackson@ximian.com>
8781 * BaseCollection.cs: Use property so we never access an
8782 uninitialized list. Also initialize the list in the property.
8784 2005-02-15 Peter Bartok <pbartok@novell.com>
8786 * GroupBox.cs (ProcessMnemonic): Implemented
8787 * Label.cs (ProcessMnemonic): Implemented
8788 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8791 2005-02-15 Peter Bartok <pbartok@novell.com>
8793 * RadioButton.cs (ProcessMnemonic): Implemented
8794 * CheckBox.cs (ProcessMnemonic): Implemented
8796 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8798 - Added internal method to allow calling ProcessMnemonic from other
8800 * ContainerControl.cs:
8801 - Started support for handling validation chain handling
8802 - Implemented ProcessMnemonic support
8803 - Added Select() call to Active, to make sure the active control
8805 * Form.cs: Setting toplevel flag for Forms (this was lost in the
8807 * ThemeWin32Classic.cs:
8808 - DrawCheckBox(): Fixed stringformat to show hotkeys
8809 - DrawRadioButton(): Fixed stringformat to show hotkeys
8810 * CommonDialog.cs: Removed WndProc override, not needed
8812 2005-02-14 Peter Bartok <pbartok@novell.com>
8814 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8815 missed those in the rewrite
8817 2005-02-14 Miguel de Icaza <miguel@novell.com>
8819 * NumericUpDown.cs (Increment, ToString): Add.
8820 (DecimalPlaces): implement.
8824 * UpDownBase.cs: Add the designer attributes.
8826 2005-02-13 Peter Bartok <pbartok@novell.com>
8828 * Panel.cs: Removed border_style, now in Control
8829 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8830 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8832 2005-02-13 Peter Bartok <pbartok@novell.com>
8834 * MouseButtons.cs: Added missing attributes
8835 * XplatUIStructs.cs: Added enumeration for title styles
8836 * LeftRightAlignment.cs: Added missing attributes
8837 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8838 it compatible with Graphics.FromHwnd()
8839 * SelectedGridItemChangedEventArgs.cs: Fixed property type
8840 * Keys.cs: Added missing attributes
8841 * SelectionRange.cs: Added missing attributes
8842 * SelectionRangeConverter.cs: Added
8844 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8845 ReleaseMenuDC methods
8846 - Renamed ReleaseWindow to UngrabWindow
8847 - Added proper startup notice to allow version identification
8849 - Added missing attributes
8850 - Removed FormParent concept
8851 * Label.cs: Removed border_style field, now in Control
8852 * RadioButton.cs: Now properly selects RadioButton when focus is
8854 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8856 - Added missing attributes
8857 - Added borderstyle handling
8858 - Removed FormParent concept support
8859 - Fixed calls to XplatUI to match changed APIs
8860 - Fixed bug that would case us to use disposed Graphics objects
8861 - Removed unneeded internal methods
8862 - PerformLayout(): Fixed to handle DockStyle.Fill properly
8863 - SelectNextControl(): Fixed to properly check common parents
8864 * TextBoxBase.cs: Removed border_style field (now in Control)
8866 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8867 fixed calculations for form size
8868 - Added support for localized strings and icons
8869 - Improved form size calculations, added border
8870 * ListView.cs: Removed border_style field (now in Control)
8871 * X11Structs.cs: Moved several structs from X11 driver here
8872 * X11Keyboard.cs: Changed debug message
8873 * Application.cs: Removed FormParent concept support
8875 - Resetting end_modal flag
8876 - Removed FormParent concept support
8877 * NativeWindow.cs: Removed FormParent concept support
8878 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8879 Client area and Non-Client whole window to allow support for WM_NC
8881 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8882 prevent using it until it supports Hwnd as per Geoff Norton's request
8883 * ToolBar.cs: Fixed drawing, was not doing proper drawing
8884 * PictureBox.cs: Removed border_style field, now in Control
8885 * XplatUIWin32.cs: Added new driver methods
8887 2005-02-12 Peter Bartok <pbartok@novell.com>
8889 * OpacityConverter.cs: Implemented
8890 * Hwnd.cs: Internal class to support drivers that need to emulate
8891 client area/non-client area window behaviour
8893 2005-02-11 Peter Bartok <pbartok@novell.com>
8895 * KeysConverter.cs: Implemented
8897 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
8899 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8900 * LinkLabel: Added missing attributes
8901 * MainMenu.cs: fixes ToString
8902 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8903 * ListBox.cs: fixes event position
8904 * TrackBar.cs: adds missing attributes and events
8906 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
8908 * MenuItem.cs: Use SystemInformation and bug fixes
8909 * MenuAPI.cs: Use SystemInformation and bug fixes
8911 2005-02-09 Jackson Harper <jackson@ximian.com>
8913 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8914 their keystate otherwise things like VK_MENU get stuck "on".
8916 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
8918 * ListBox.cs: Fixes AddRange bug
8920 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
8923 - Add missing attributes
8924 - Add missing method
8926 * CheckedListBox.cs: Added missing attributes
8927 - Add missing attributes
8928 - Remove extra method
8930 * ComboBox.cs: Added missing attributes
8931 * VScrollBar.cs: Added missing attributes
8932 * ScrollBar.cs: Added missing attributes
8933 * ListBox.cs: Fixes signature, add missing consts
8934 * LinkArea.cs: Added missing attributes
8937 2005-02-08 Peter Bartok <pbartok@novell.com>
8939 * Menu.cs: Added missing attributes
8940 * MainMenu.cs: Added missing attributes
8941 * GroupBox.cs: Added missing attributes
8942 * Label.cs: Added missing attributes
8943 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8945 - Added Instance and Options properties
8946 - Added missing attributes
8947 * Cursor.cs: Made Serializable
8948 * NotifyIcon: Added missing attributes
8949 * MenuItem.cs: Added missing attributes
8950 * TextBoxBase.cs: Implemented AppendText() and Select() methods
8951 * Panel.cs: Added Missing attributes
8952 * MonthCalendar.cs: Fixed CreateParams
8954 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
8958 - Fixes issues with links
8959 - Adds the class attributes
8961 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
8964 - Fixes button when no items available in dropdown
8965 - Fixes repainting problems
8966 - Adds the class attributes
8968 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8970 * XplatUIOSX.cs: Detect the menu bar and title bar height from
8971 the current theme. Cache these on startup.
8973 2005-02-07 Jackson Harper <jackson@ximian.com>
8975 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8976 the scrollbar buttons when they are depressed.
8978 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8980 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8981 Get the display size from the main displayid. We currently dont
8982 support multiple display configurations.
8984 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8986 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8988 2005-02-07 Miguel de Icaza <miguel@novell.com>
8990 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8992 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
8994 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8996 2005-02-04 Jackson Harper <jackson@ximian.com>
8998 * ThemeWin32Classic.cs: Respect the clipping rect when
8999 drawing. Only fill the intersection of clips and rects so there
9000 isn't a lot of large fills.
9001 * ScrollBar.cs: Pass the correct clipping rect to the theme
9002 engine. Remove some debug code.
9004 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
9006 * DateTimePicker.cs:
9007 - Fixed crash on DateTime.Parse, use Constructor instead
9009 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
9013 - Owner draw support (MeasureItem and DrawItem)
9015 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
9018 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9019 - Fixes MenuItems.Add range
9021 - MergeMenu and Clone and CloneMenu functions
9023 2005-02-03 Jackson Harper <jackson@ximian.com>
9025 * ScrollBar.cs: Make abstract
9026 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9029 2005-02-03 Jackson Harper <jackson@ximian.com>
9031 * ScrollBar.cs: First part of my scrollbar fixups. This removes
9032 all the unneeded refreshes and uses invalidates with properly
9035 2005-02-03 Peter Bartok <pbartok@novell.com>
9037 * ComponentModel.cs: Added
9038 * IDataGridEditingService.cs: Added
9039 * Timer.cs: Added missing attributes
9040 * ToolTip.cs: Added missing attributes
9042 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
9044 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9046 2005-02-03 Peter Bartok <pbartok@novell.com>
9048 * ListBox.cs: Added missing attributes
9050 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
9053 - Fixes font height after font change
9054 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9056 2005-02-02 Peter Bartok <pbartok@novell.com>
9058 * HandleData.cs: Introduced static methods to allow class
9059 to be more self-contained and track it's own HandleData objects
9060 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9061 HandleData to use new static methods
9063 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
9066 - Fixes default size and PreferredHeight
9068 - ObjectCollection.Insert implementation
9074 - ObjectCollection.Insert implementation
9075 - No selection after clean
9078 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
9080 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9082 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
9085 - Caches ItemHeight calculation for OwnerDrawVariable
9086 - Handles dropdown properly
9087 - Fixes several minor bugs
9089 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
9092 - Fixes 71946 and 71950
9093 - Fixes changing Multicolumn on the fly
9094 - Fixes keyboard navigation on Multicolumn listboxes
9096 2005-01-31 Geoff Norton <gnorton@customerdna.com>
9098 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9101 2005-01-31 Geoff Norton <gnorton@customerdna.com>
9103 * XplatUIOSX.cs: Allow applications to actually exit.
9105 2005-01-31 Geoff Norton <gnorton@customerdna.com>
9107 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
9108 their parent at creation time rather than lazily later. Fixes a major
9109 regression we were experiencing.
9111 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
9113 * ThemeWin32Classic.cs: more date time picker painting fixes
9114 * DateTimePicker.cs: more monthcalendar drop down fixes
9115 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9117 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
9120 - When moving the thumb going outside the control should stop the moving
9121 - Adds the firing of missing events
9122 - Fixes no button show if Size is not specified
9123 - End / Home keys for keyboard navigation
9125 2005-01-30 Peter Bartok <pbartok@novell.com>
9127 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9128 sanity check to prevent theoretical loop
9129 * XplatUIWin32.cs (SetVisible): Removed debug output
9130 * XplatUIX11.cs (SystrayChange): Added sanity check
9131 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9132 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9133 behaviour, valid until the X11 client window rewrite is done
9134 * TextBox.cs (ctor): Setting proper default foreground and background
9137 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
9139 * Theme: Added DrawDateTimePicker to interface
9140 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9141 * DateTimePicker.cs: Created (still needs keys and painting code)
9142 * DateTimePickerFormat.cs: added
9143 * MonthCalendar.cs: fixed CreateParams for popup window mode
9145 2005-01-29 Peter Bartok <pbartok@novell.com>
9147 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9148 this should also the calculations for ligher/darker
9149 * Theme.cs: Fixed defaults for ScrollBar widths/heights
9151 2005-01-29 Peter Bartok <pbartok@novell.com>
9153 * ArrangeDirection.cs: Added
9154 * ArrangeStartingPositon.cs: Added
9155 * SystemInformation.cs: Implemented
9156 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9157 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9158 used by SystemInformation class
9159 * X11Strucs.cs: Added XSizeHints structure
9161 - Fixed CreateParams to make sure the menu window is always visible
9162 - TrackPopupMenu: Added check to make sure we don't draw the
9165 2005-01-29 Peter Bartok <pbartok@novell.com>
9167 * HandleData.cs: Added method for altering invalid area
9168 * TextBoxBase.cs: Implemented TextLength
9170 2005-01-28 Peter Bartok <pbartok@novell.com>
9172 * XplatUIX11.cs: Improvement over last patch, not sending
9173 the WM_PAINT directly anymore, instead we scroll any pending
9174 exposed areas and let the system pick out the WM_PAINT later
9176 2005-01-28 Peter Bartok <pbartok@novell.com>
9178 * SWF.csproj: Deleted, no longer used. Instead,
9179 Managed.Windows.Forms/SWF.csproj should be used
9180 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9181 directly, to avoid a potential race condition with the next
9184 2005-01-28 Peter Bartok <pbartok@novell.com>
9186 * XplatUI.cs: Made class internal
9188 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
9190 * CheckedListBox.cs:
9193 - Missing methods and events
9195 2005-01-27 Peter Bartok <pbartok@novell.com>
9197 * Application.cs (Run): Don't use form if we don't have one
9199 2005-01-27 Peter Bartok <pbartok@novell.com>
9201 * TextBoxBase.cs (get_Lines): Fixed index off by one error
9203 2005-01-27 Peter Bartok <pbartok@novell.com>
9205 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9206 * GridItem.cs: Added; Patch by Jonathan S. Chambers
9207 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9208 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9209 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9210 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9211 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9212 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9213 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9214 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9215 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9216 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9218 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
9221 - Draw focus on Simple Combobox
9222 - Fixes drawing issues
9225 2005-01-27 Peter Bartok <pbartok@novell.com>
9228 - Place window in default location, instead of hardcoded 0/0
9229 - Send initial LocationChanged event
9231 - UpdateBounds after creation to find out where the WM placed us
9232 - Make sure that if the ParentForm changes location the Form
9234 * XplatUIX11.cs: XGetGeometry will not return the coords relative
9235 to the root, but to whatever the WM placed around us.
9236 Translate to root coordinates before returning toplevel
9238 * XplatUIWin32.cs: Removed debug output
9239 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9240 flag to GetWindowPos, to allow translation of coordinates on X11
9242 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
9244 * ListBox.cs: connect LostFocus Event
9246 2005-01-27 Peter Bartok <pbartok@novell.com>
9248 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9249 XplatUIX11.cs: Extended the Systray API
9250 * Form.cs: Removed debug output
9251 * Application.cs: Fixed focus assignment, always need to call
9252 XplatUI.Activate() since Form.Activate() has rules that may
9254 * NotifyIcon.cs: Should be complete now
9255 * ToolTip.cs: Worked around possible timer bug
9257 2005-01-27 Jackson Harper <jackson@ximian.com>
9260 - Only invalidate the effected tabs when the
9261 selected index changes. This reduces drawing and gets rid of some
9263 - Only refresh if the tabs need to be shifted, otherwise only
9264 invalidate the slider button.
9265 - On windows the tabs are not filled to right if the slider is
9268 2005-01-27 Jackson Harper <jackson@ximian.com>
9270 * TabControl.cs: Only refresh on mouseup if we are showing the
9271 slider. Also only invalidate the button whose state has changed.
9273 2005-01-26 Peter Bartok <pbartok@novell.com>
9275 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9276 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9277 and SystrayRemove() methods
9278 * XplatUIOSX.cs: Stubbed Systray methods
9280 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9282 - Fixed broken XChangeProperty calls (marshalling messed up things)
9283 * X11Structs.cs: Added enums and structs required for Size hinting
9284 * NotifyIcon.cs: Added & implemented
9286 2005-01-26 Jackson Harper <jackson@ximian.com>
9288 * TabControl.cs: Space vertically layed out tabs properly.
9290 2005-01-26 Peter Bartok <pbartok@novell.com>
9292 * Form.cs (CreateClientParams): Always set the location to 0,0
9293 since we're a child window.
9295 * Control.cs (SetVisibleCore): Always explicitly setting the location
9296 of a toplevel window, apparently X11 doesn't like to move windows
9297 while they're not mapped.
9299 2005-01-26 Jackson Harper <jackson@ximian.com>
9301 * TabControl.cs: Implement FillToRight size mode with vertically
9304 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
9306 * ControlPaint.cs, ThemeWin32Classic.cs
9307 - Fixes DrawFocusRectangle
9309 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
9312 - MenuBar tracking only starts when item is first clicked
9313 - Fixes menu hidding for multiple subitems
9314 - Unselect item in MenuBar when item Executed
9317 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
9320 - IsInputKey for ListBox
9323 - Shift and Control item selection
9324 - Implement SelectionMode.MultiExtended
9327 - IsInputKey implemented
9328 - Do not generate OnTextChangedEdit on internal txt changes
9330 2005-01-23 Peter Bartok <pbartok@novell.com>
9332 * AccessibleObject.cs: Partially implemented Select()
9333 * MonthCalendar.cs: Added missing attributes and events
9334 * Form.cs: Fixed CreateParams behaviour, now controls derived from
9335 form can properly override CreateParams.
9336 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9337 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9338 Control performs Invalidate & Update
9339 * NativeWindow (CreateHandle): Added special handling for Form
9340 and Form.FormParent classes to allow overriding of From.CreateParams
9342 - ControlNativeWindow: Renamed 'control' variable to more intuitive
9344 - ControlNativeWindow: Added Owner property
9345 - Removed usage of Refresh() on property changes, changed into
9346 Invalidate(), we need to wait until the queue is processed for
9347 updates, direct calls might cause problems if not all vars for
9348 Paint are initialized
9349 - Added call to UpdateStyles() when creating the window, to set any
9350 styles that CreateWindow might have ignored.
9351 - Added support for Form CreateParent overrides to UpdateStyles()
9352 * MessageBox.cs: Removed no longer needed FormParent override stuff,
9353 CreateParams are now properly overridable
9354 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9355 CreateParams are now properly overridable
9357 2005-01-23 Miguel de Icaza <miguel@ximian.com>
9359 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9362 Capture LostFocus and OnTextBoxChanged. The later introduces a
9363 recursive invocation that I have not figured out yet.
9365 Reset the timer when not using (it was accumulating).
9368 (OnTextBoxChanged): Set UserEdit to true here to track whether the
9369 user has made changes that require validation.
9371 Reset changing to avoid loops.
9373 2005-01-22 Miguel de Icaza <miguel@ximian.com>
9375 * NumericUpDown.cs: Display value at startup.
9377 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9380 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9381 filled in. Added some basic parsing of text.
9383 Still missing the OnXXX method overrides, and figuring out the
9384 events that must be emitted.
9386 * UpDownBase.cs: Handle UserEdit on the Text property.
9388 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
9391 - Fixes IntegralHeight
9394 2005-01-21 Jackson Harper <jackson@ximian.com>
9396 * TabControl.cs: Set the SelectedIndex property when SelectedTab
9397 is set so that the page visibility is updated and the tabs are
9400 2005-01-21 Jackson Harper <jackson@ximian.com>
9402 * TabControl.cs: Use cliping rectangle for blitting. Give the
9403 theme the clipping rect so we can do clipping while
9404 drawing. Remove some debug code.
9406 2005-01-21 Jackson Harper <jackson@ximian.com>
9408 * TabPage.cs: Add a new method so tab pages can force the tab
9409 control to recalculate the tab page sizes.
9410 * TabControl.cs: UpdateOwner needs to make the tab control recalc
9413 2005-01-20 Jackson Harper <jackson@ximian.com>
9415 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9417 2005-01-20 Jackson Harper <jackson@ximian.com>
9419 * TreeView.cs: Set the bounds for nodes properly. They were
9420 getting screwed up when checkboxes were not enabled, but images
9423 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
9426 - Owner draw support
9429 2005-01-20 Jackson Harper <jackson@ximian.com>
9431 * XplatUIStructs.cs: More misc keys
9432 * X11Keyboard.cs: Ignore some control keys.
9434 2005-01-20 Jackson Harper <jackson@ximian.com>
9436 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9437 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9439 2005-01-19 Peter Bartok <pbartok@novell.com>
9441 * Control.cs: Un-selecting the control when it is loosing focus
9443 2005-01-19 Jackson Harper <jackson@ximian.com>
9445 * TreeView.cs: Hook up to the text controls leave event so we can
9446 end editing when the users clicks outside the text box.
9448 2005-01-19 Jackson Harper <jackson@ximian.com>
9450 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9451 get set in the conversion array.
9453 2005-01-19 Peter Bartok <pbartok@novell.com>
9455 * Application.cs (ModalRun): Added a call to CreateControl to ensure
9456 focus is properly set
9458 - Added missing attributes
9459 - removed styles, those are already set in the base class
9461 - Added missing attributes
9462 - Added clip window styles
9463 * CheckBox.cs: Added missing attributes
9465 - FormParentWindow.CreateParams: Added required clip styles
9466 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9467 also filters modifier keys
9469 - Added assignment of Accept and Cancel button to enable Enter
9470 and Esc keys in MessageBox dialogs
9471 - FormParentWindow.CreateParams: Added required clip styles
9472 * RadioButton.cs: Added missing attributes
9473 * TextControl.cs: No longer draws selection if control does not
9476 - Now draws simple rectangle around test area to make it obvious
9477 there's a control. This is a hack until we properly support borders
9478 - A few simple fixes to support selections better, now erases selected
9479 text when typing, and resets selection when using movement keys
9481 2005-01-19 Miguel de Icaza <miguel@ximian.com>
9483 * UpDownBase.cs: Added some new properties.
9485 * DomainUpDown.cs: Implement a lot to get my test working.
9487 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9489 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9491 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9493 * OSXStructs (WindowAttributes): Fixed csc complaints
9495 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9498 OSXStructs.cs: Initial refactor to move enums and consts into
9499 OSXStructs and use them in the driver for greater readability.
9501 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9503 * XplatUIOSX.cs: Initial support for Standard Cursors.
9504 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9506 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
9508 * ComboBox.cs: ability to change style when the ctrl is already
9509 created, missing methods and events, bug fixes, signature fixes
9511 2005-01-19 Peter Bartok <pbartok@novell.com>
9513 * Cursors.cs (ctor): Added ctor to fix signature
9515 2005-01-18 Peter Bartok <pbartok@novell.com>
9517 * Button.cs: Implemented DoubleClick event
9519 - Fixed keyboard handling to behave like MS, where the press of
9520 Spacebar is equivalent to a mousedown, and the key release is
9521 equivalent to mouseup. Now a spacebar push will give the same
9522 visual feedback like a mouse click.
9523 - Added missing attributes
9524 - Added ImeModeChanged event
9525 - Added support for generating DoubleClick event for derived classes
9527 - Implemented DoubleClick event
9528 - Added missing attributes
9529 * CommonDialog.cs: Added missing attribute
9530 * ContextMenu.cs: Added missing attributes
9532 - AutoChecked buttons do not allow to be unselected when clicked
9533 (otherwise we might end up with no selected buttons in a group)
9534 - Added missing attributes
9535 - Implemented DoubleClickEvent
9536 * ThreadExceptionDialog.cs: Enabled TextBox code
9538 2005-01-18 Peter Bartok <pbartok@novell.com>
9540 * Form.cs: Removed debug output
9541 * Button.cs: Added support for DoubleClick method
9543 2005-01-18 Peter Bartok <pbartok@novell.com>
9546 - Added method to parent window that allows triggering size
9547 calculations when a menu is added/removed
9548 - set_Menu: Cleaned up mess from early days of Form and Control,
9549 now properly triggers a recalc when a menu is added/removed
9550 - Added case to select form itself as focused form if no child
9552 - Added PerformLayout call when showing dialog, to ensure properly
9555 - Select(): Made internal so Form can access it
9556 - Focus(): Only call Xplat layer if required (avoids loop), and sets
9558 * Application.cs (Run): Removed hack and calls PerformLayout instead
9559 to trigger calculation when Form becomes visible
9561 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
9563 * ComboBox.cs: fixes for ownerdraw
9565 2005-01-18 Peter Bartok <pbartok@novell.com>
9568 - Sentinel is no longer static, each Document gets it's own, this
9569 avoids locking or alternatively overwrite problems when more
9570 than one text control is used simultaneously.
9571 - Switched to use Hilight and HilightText brushes for text selection
9573 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9575 2005-01-18 Peter Bartok <pbartok@novell.com>
9578 - Hooked up the following events:
9586 o SystemColorsChanged
9589 - Removed debug output
9590 - Added a call to the current theme's ResetDefaults when a color change
9592 * Form.cs: Now setting the proper ImeMode
9593 * Theme.cs: Defined a method to force recreation of cached resources
9594 and rereading of system defaults (ResetDefaults())
9595 * ThemeWin32Classic.cs: Added ResetDefaults() stub
9597 2005-01-17 Peter Bartok <pbartok@novell.com>
9599 * Control.cs: Added missing attributes
9601 2005-01-17 Jackson Harper <jackson@ximian.com>
9603 * TreeNode.cs: Implement editing. Add missing properties selected
9605 * TreeView.cs: Implement node editing. Also some fixes to use
9606 Invalidate (invalid area) instead of Refresh when selecting.
9608 2005-01-17 Peter Bartok <pbartok@novell.com>
9611 - Implemented InvokeGotFocus() method
9612 - Implemented InvokeLostFocus() method
9613 - Implemented InvokePaint() method
9614 - Implemented InvokePaintBackground() method
9615 - Implemented InvokeClick() method
9616 - Implemented FindForm() method
9617 - Implemented RectangleToClient() method
9618 - Implemented ClientToRectangle() method
9619 - Implemented ResetBackColor() method
9620 - Implemented ResetCursor() method
9621 - Implemented ResetFont() method
9622 - Implemented ResteForeColor() method
9623 - Implemented ResetImeMode() method
9624 - Implemented ResetLeftToRight() method
9625 - Implemented ResetText() method
9626 - Implemented Scale() methods
9627 - Implemented ScaleCore() method
9628 - Implemented Update() method
9629 - Removed unused variables
9630 - Stubbed AccessibilityNotifyClients and
9631 ControlAccessibleObject.NotifyClients() methods (dunno what to do
9633 - Now setting proper default for RightToLeft property
9634 - Fixed bug in SetClientSizeCore that would cause windows to get
9636 - Now sending Click/DoubleClick events
9637 - Now selecting controls when left mouse button is clicked on
9639 * AccessibleEvents.cs: Added
9640 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9641 * XplatUIOSX.cs: Stubbed UpdateWindow() method
9642 * XplatUIWin32.cs: Implemented UpdateWindow() method
9643 * XplatUIX11.cs: Implemented UpdateWindow() method
9644 * Form.cs: Removed stray semicolon causing CS0162 warning
9645 * ThemeWin32Classic.cs: Fixed unused variable warnings
9646 * ScrollableControl.cs: Now calls base method for ScaleCore
9647 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9648 style to avoid interference with internal click handler (which is
9649 different than standard Control click handling)
9651 - Now unchecks all sibling radio buttons when control is
9652 selected (Fixes #68756)
9653 - Removed internal tabstop variable, using the one inherited from
9656 2005-01-17 Jackson Harper <jackson@ximian.com>
9658 * NavigateEventArgs.cs: Fix base type.
9659 * LinkLabel.cs: Sig fix
9661 2005-01-17 Jackson Harper <jackson@ximian.com>
9663 * TreeView.cs: Only invalidate the effected nodes bounds when
9666 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9668 * XplatUIWin32.cs: fixes Win32 marshaling
9669 * XplatUIX11.cs: fixes method signature
9671 2005-01-17 Peter Bartok <pbartok@novell.com>
9673 * XplatUIX11.cs: Clean up resources when we no longer need them
9675 2005-01-17 Peter Bartok <pbartok@novell.com>
9677 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9678 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9679 and DestroyCursor() methods.
9680 * Cursor.cs: Partially implemented, now supports standard cursors;
9681 still contains some debug code
9682 * Cursors.cs: Implemented class
9684 - WndProc(): Added handling of WM_SETCURSOR message, setting the
9686 - Implemented Cursor property
9687 - Replaced break; with return; more straightforwar and possibly
9689 - Now properly setting the result for WM_HELP
9690 * X11Structs.cs: Added CursorFontShape enum
9691 * XplatUIStructs.cs:
9692 - Added StdCursor enum (to support DefineStdCursor() method)
9693 - Added HitTest enum (to support sending WM_SETCURSOR message)
9695 - Now sends the WM_SETCURSOR message
9696 - Implemented new cursor methods
9697 * XplatUIOSX.cs: Stubbed new cursor methods
9699 - Implemented new cursor methods
9700 - Added GetSystemMetrics function and associated enumeration
9702 2005-01-15 Peter Bartok <pbartok@novell.com>
9705 - WndProc(): Now handles EnableNotifyMessage
9706 - SelectNextControl(): Fixed bug where if no child or sibling
9707 controls exist we looped endlessly
9709 2005-01-14 Jackson Harper <jackson@ximian.com>
9711 * TreeView.cs: Recalculate the tab pages when a new one is added
9712 so that the proper bounding rects are created.
9714 2005-01-14 Jackson Harper <jackson@ximian.com>
9716 * TreeView.cs: Draw a gray box instead of a grip in the lower
9717 right hand corner when there are both horizontal and vertical
9720 2005-01-14 Jackson Harper <jackson@ximian.com>
9722 * Control.cs: When erasing backgrounds use FromHwnd instead of
9723 FromHdc when there is a NULL wparam. This occurs on the X driver.
9724 * XplatUIX11.cs: Set the wparam to NULL.
9726 2005-01-13 Jackson Harper <jackson@ximian.com>
9728 * PictureBox.cs: Implement missing methods (except ToString, need
9729 to test that on windows) and events. When visibility is changed we
9730 need to redraw the image because the buffers are killed. When size
9731 is changed refresh if the sizemode needs it.
9733 2005-01-13 Peter Bartok <pbartok@novell.com>
9735 * Control.cs (SelectNextControl): Was using wrong method to select
9738 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9740 * ComboBox.cs: fixes dropstyle
9742 2005-01-13 Peter Bartok <pbartok@novell.com>
9745 - Implemented Select() override
9746 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9747 - Now sets keyboard focus on startup
9748 * Control.cs (SelectNextControl): Now properly handles directed=true
9750 - WndProc: Now passes tab key on to base if AcceptTabChar=false
9751 - Added (really bad) focus rectangle (mostly for testing)
9752 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9753 to enforce redraw on focus changes
9754 * ContainerControl.cs:
9755 - Fixed detection of Shift-Tab key presses
9756 - Fixed traversal with arrow keys
9757 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9758 gonna keep this or if it's complete yet
9760 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9762 * ComboBox.cs: missing properties, fixes
9764 2005-01-13 Peter Bartok <pbartok@novell.com>
9766 * Panel.cs (ctor): Setting Selectable window style to off
9767 * Splitter.cs (ctor): Setting Selectable window style to off
9768 * GroupBox.cs (ctor): Setting Selectable window style to off
9769 * Label.cs (ctor): Setting Selectable window style to off
9771 2005-01-12 Miguel de Icaza <miguel@ximian.com>
9773 * UpDownBase.cs (InitTimer): If the timer has been already
9776 Use a TextBox instead of a Label.
9778 2005-01-12 Jackson Harper <jackson@ximian.com>
9780 * TreeView.cs: Refresh the tree after sorting the nodes. Always
9781 draw the connecting node lines (when ShowLines is true).
9782 * TreeNode.cs: The nodes index can now be updated. This is used
9783 when a node collection is sorted.
9784 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9785 insert or an existing unsorted node collection can be sorted.
9787 2005-01-12 Peter Bartok <pbartok@novell.com>
9789 * ContainerControl.cs: Implemented ProcessDialogKeys()
9791 2005-01-12 Peter Bartok <pbartok@novell.com>
9794 - Implemented SelectNextControl() method
9795 - Several focus related bug fixes
9796 - Fixed Docking calculations to match MS documentation and
9799 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
9801 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9804 2005-01-12 Peter Bartok <pbartok@novell.com>
9807 - Fixed broken Contains() method
9808 - Implemented GetNextControl() method. Finally. This is the pre-
9809 requisite for focus handling.
9811 2005-01-12 Peter Bartok <pbartok@novell.com>
9813 * OSXStrucs.cs: Added
9815 2005-01-12 Peter Bartok <pbartok@novell.com>
9818 - Removed PeekMessageFlags
9819 - Implemented SetWindowStyle() method
9820 * XplatUIStructs.cs: Added PeekMessageFlags
9821 * X11Structs: Added missing border_width field to XWindowChanges struct
9823 - PeekMessage: Now throws exception if flags which are not yet
9824 supported are passed
9825 - Implemented SetWindowStyle() method
9826 - Fixed SetZOrder to handle AfterHwnd properly
9827 * XplatUI.cs: Added SetWindowStyle() method
9828 * XplatUIDriver.cs: Added SetWindowStyle() abstract
9830 - Implemented UpdateStyles() method
9831 - Implemented UpdateZOrder() method
9832 * XplatUIOSX.cs: Added SetWindowStyle() stub
9834 2005-01-12 Geoff Norton <gnorton@customerdna.com>
9836 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9840 2005-01-11 Jackson Harper <jackson@ximian.com>
9842 * TreeView.cs: Still need to draw lines to siblings even if out of
9843 the current node is out of the clip.
9845 2005-01-11 Jackson Harper <jackson@ximian.com>
9847 * TreeView.cs: When setting the hbar/vbar/grip position use
9848 SetBounds so that perform layout is only called once. Also suspend
9849 and resume layout so layout is only done once for all controls.
9850 - Removed some debug fluff
9851 * SizeGrip.cs: Call base implmentation in overriding methods.
9852 - When visibility is changed the drawing buffers are killed so we
9855 2005-01-11 Jackson Harper <jackson@ximian.com>
9857 * TreeView.cs: Calculate the open node count while drawing. This
9858 saves us an entire tree traversal for every paint operation. Use
9859 a member var for the open node count so less vars are passed around.
9861 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
9864 - fixed selection to use mousemove, not mouse polling on timer
9865 * ThemeWin32Classic.cs
9866 - removed redundant unused variable "no_more_content"
9868 2005-01-11 Peter Bartok <pbartok@novell.com>
9870 * XplatUIX11.cs (DoEvents): Needs to return when no more events
9871 are pending, so it now calls PeekMessage instead of GetMessage;
9872 implemented a incomplete version of PeekMessage
9874 2005-01-11 Peter Bartok <pbartok@novell.com>
9876 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9878 * TextBoxBase.cs: Added sending of TextChanged event
9880 2005-01-10 Jackson Harper <jackson@ximian.com>
9882 * TreeView.cs: Try not to draw outside the clipping rectangle on
9885 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
9887 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9889 2005-01-10 Jackson Harper <jackson@ximian.com>
9892 - Implement fast scrolling. Now only the newly
9893 exposed nodes are drawn and the old image is moved using the
9894 XplatUI::ScrollWindow method.
9895 - Factor in height of nodes when calculating whether or not the
9896 node is in the clipping rect.
9898 2005-01-10 Jackson Harper <jackson@ximian.com>
9900 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9902 2005-01-10 Peter Bartok <pbartok@novell.com>
9904 * Application.cs: Added temporary hack to resolve all our resize
9905 required issues on startup. This will get fixed properly at
9906 some point in the future
9908 2005-01-10 Jackson Harper <jackson@ximian.com>
9910 * SizeGrip.cs: New internal class that is used as a sizing
9911 grip control...hence the name.
9913 2005-01-10 Peter Bartok <pbartok@novell.com>
9915 * Control.cs: Implemented proper TabIndex handling, now assigning
9916 a tabindex when a control is added to a container
9917 * GroupBox.cs (ctor): Now sets the Container style bit, required
9918 for Control.GetNextControl()
9920 2005-01-09 Jackson Harper <jackson@ximian.com>
9922 * TextBoxBase.cs: Clear window when scrolling (fixes build).
9924 2005-01-09 Peter Bartok <pbartok@novell.com>
9926 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9927 XplatUIX11.cs: Added ability to control ScrollWindow expose and
9928 an overload for ScrollWindow to allow only scrolling a rectangle
9930 2005-01-09 Peter Bartok <pbartok@novell.com>
9933 - Implemented SetDesktopBounds method
9934 - Implemented SetDesktopLocation method
9936 2005-01-08 Jackson Harper <jackson@ximian.com>
9938 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9939 the node count has changed, this removes to VScroll::Refresh calls
9942 2005-01-08 Geoff Norton <gnorton@customerdna.com>
9944 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9946 2005-01-07 Jackson Harper <jackson@ximian.com>
9948 * TreeNode.cs: Just update the single node when it is
9949 checked. Don't refresh after toggling, the Expand/Collapse already
9951 * TreeView.cs: Respect clipping a little more when drawing. Try
9952 not to redraw things that don't need to be redrawn. Just hide the
9953 scrollbars when they are no longer needed instead of removing
9954 them, so they don't have to be created again and again.
9956 2005-01-07 Geoff Norton <gnorton@customerdna.com>
9958 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
9959 coordinates to window space to place the caret properly, FIXED.
9960 Implement GetWindowState & SetWindowState
9962 2005-01-06 Peter Bartok <pbartok@novell.com>
9965 - Implemented ClientSize property
9966 - Implemented DesktopBounds property
9967 - Implemented DesktopLocation property
9968 - Implemented IsRestrictedWindow property
9969 - Implemented Size property
9970 - Implemented TopLevel property
9971 - Implemented FormWindowState property
9973 - Implemented GetTopLevel() method
9974 - Implemented SetTopLevel() method
9975 * X11Structs.cs (Atom):
9976 - Added AnyPropertyType definition
9977 - Added MapState definiton and updated XWindowAttribute struct
9978 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9979 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9980 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9982 - Implemented GetWindowState() and SetWindowState() methods
9983 - Fixed Win32GetWindowLong return type
9985 - Introduced central function for sending NET_WM messages
9986 - Implemented GetWindowState() and SetWindowState() methods
9987 * TextBoxBase.cs (set_Lines):
9988 - Now uses Foreground color for text added via Text property (Duh!)
9989 - Added code to remember programmatically requested size (fixes
9990 behaviour when Multiline is set after Size)
9991 - Added AutoSize logic
9993 2005-01-06 Jackson Harper <jackson@ximian.com>
9995 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9997 2005-01-06 Jackson Harper <jackson@ximian.com>
9999 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10000 set to less then 0.
10002 2005-01-06 Jackson Harper <jackson@ximian.com>
10004 * ScrollableControl.cs: Lazy init the scrollbars.
10006 2005-01-06 Jackson Harper <jackson@ximian.com>
10008 * Theme.cs: Speed up getting pens and solid brushes, by using
10009 their ARGB as a hash instead of tostring and not calling Contains.
10011 2005-01-06 Peter Bartok <pbartok@novell.com>
10014 - Implemented OnActivated and OnDeactivate event trigger
10015 - Implemented Activate() method
10016 - Fixed ShowDialog() to activate the form that was active before
10017 the dialog was shown
10019 - Added global active_window var that tracks the currently active
10021 - Now always grabs Property changes from the root window to always
10022 catch changes on the active window property
10023 - Added code to PropertyNotify handler to send Active/Inactive
10024 messages when state changes. This puts X11 and Win32 en par on
10025 WM_ACTIVATE notifications (except for double notifications when
10026 the user clicks away from our modal window to another one of our
10029 2005-01-05 Jackson Harper <jackson@ximian.com>
10031 * ImageList.cs: Implment ctor
10033 2005-01-05 Geoff Norton <gnorton@customerdna.com>
10035 * XplatUIOSX.cs: Implement Activate/SetTopmost
10037 2005-01-05 Geoff Norton <gnorton@customerdna.com>
10039 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10041 2005-01-05 Geoff Norton <gnorton@customerdna.com>
10043 * XplatUIOSX.cs: Implement GetActive/SetFocus.
10045 2005-01-05 Peter Bartok <pbartok@novell.com>
10047 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10048 XplatUIOSX.cs: Added GetActive method to return the currently
10049 active window for the application (or null, if none is active)
10051 - Implemented ActiveForm
10052 - Commented out owner assignment for modal dialogs (causes problems
10053 on Win32, since the owner will be disabled)
10054 - Reworked some Active/Focus handling (still incomplete)
10055 * CommonDialog.cs: Commented out owner assignment for modal dialogs
10056 (causes problems on Win32, since the owner will be disabled)
10057 * IWin32Window: Added ComVisible attribute
10059 2005-01-05 Peter Bartok <pbartok@novell.com>
10061 * ToolTip.cs (WndProc): Enable setting focus now that we have the
10062 required XplatUI functions.
10064 2005-01-05 Peter Bartok <pbartok@novell.com>
10066 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10067 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10068 to implement focus and activation handling; still incomplete and
10071 2005-01-04 Peter Bartok <pbartok@novell.com>
10073 * TextBoxBase.cs: Changed access level for Document property to
10074 match switch to internal for TextControl
10076 2005-01-04 Peter Bartok <pbartok@novell.com>
10078 * AccessibleObject: Added ComVisible attribute
10080 2005-01-04 Jackson Harper <jackson@ximian.com>
10082 * X11Keyboard.cs: Remove unneeded var.
10084 2005-01-04 Jackson Harper <jackson@ximian.com>
10086 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10088 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10089 ClientMessage. This makes apps exit cleanly (more often).
10091 2005-01-04 Jackson Harper <jackson@ximian.com>
10093 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10094 handling focus, return correct colors and fonts,
10095 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10096 handle selection, horizontal scrolling, and mouse interaction.
10098 2005-01-04 Peter Bartok <pbartok@novell.com>
10100 * ICommandExecutor.cs: Added
10101 * IDataGridColumnStyleEditingNotificationService.cs: Added
10102 * IFeatureSupport.cs: Added
10103 * IFileReaderService.cs: Added
10104 * IDataObject.cs: Added ComVisible attribute
10105 * AmbientProperties.cs: Added
10106 * BaseCollection.cs: Added missing attributes
10107 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10108 * BaseCollection.cs: Added missing attributes
10109 * Binding.cs: Added TypeConverter attribute
10110 * BindingContext.cs: Added DefaultEvent attribute
10111 * BindingsCollection.cs: Added DefaultEvent attribute
10112 * Button.cs: Added DefaultValue attribute
10113 * DragEventArgs.cs: Added ComVisible attribute
10114 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10115 * KeyEventArgs.cs: Added ComVisible attribute
10116 * KeyPressEventArgs.cs: Added ComVisible attribute
10117 * MouseEventArgs.cs: Added ComVisible attribute
10118 * NavigateEventArgs.cs: Added
10119 * NavigateEventHandler.cs: Added
10120 * FeatureSupport.cs: Added
10121 * OSFeature.cs: Added
10122 * Theme.cs: Added abstract Version property to support OSFeature
10123 * ThemeWin32Classic.cs: Added Version property to
10124 support OSFeature.Themes
10125 * ProgressBar.cs: Removed OnPaintBackground override, not required since
10126 the proper styles to avoid background drawing are set, also doesn't
10128 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10129 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10130 * ScrollEventArgs.cs: Added ComVisible attribute
10131 * SplitterEventArgs.cs: Added ComVisible attribute
10132 * AccessibleSelection.cs: Added Flags attribute
10133 * Appearance.cs: Added ComVisible attribute
10134 * Border3DSide.cs: Added ComVisible attribute
10135 * Border3DStyle.cs: Added ComVisible attribute
10136 * BorderStyle.cs: Added ComVisible attribute
10137 * DragAction.cs: Added ComVisible attribute
10138 * ErrorBlinkStyle.cs: Added
10139 * ScrollEventType.cs: Added ComVisible attribute
10140 * AnchorStyles.cs: Added Editor attribute
10141 * DockStyle.cs: Added Editor attribute
10142 * HorizontalAlignment.cs: Added ComVisible attribute
10143 * HelpEventArgs.cs: Added ComVisible attribute
10144 * PaintEventArgs.cs: Added IDisposable
10146 2005-01-04 Peter Bartok <pbartok@novell.com>
10148 * TextControl.cs: Switched Line, LineTag and Document classes to
10151 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
10153 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10154 Simple mode, fixes, IntegralHeight, etc.
10156 2005-01-04 Peter Bartok <pbartok@novell.com>
10158 * TextBoxBase.cs: Using proper font variable now
10160 2005-01-04 Peter Bartok <pbartok@novell.com>
10162 * Form.cs (ShowDialog): Set parent to owner, if provided
10163 * GroupBox.cs: Removed unused vars
10165 - Added GetHashCode() for Document and LineTag classes
10166 - Removed unused variables
10167 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10168 to allow translation between continuous char position and line/pos
10169 * CheckBox.cs: Removed vars that are provided by base class
10170 * RadioButton.cs: Removed vars that are provided by base class, added
10171 new keyword where required
10172 * LinkLabel.cs: Added new keyword where required
10173 * Control.cs (WndProc): Removed unused variable
10175 - Finished SelectionLength property
10176 - Implemented SelectionStart property
10177 - Implemented Text property
10178 - Removed unused vars
10179 * MessageBox.cs: Added new keyword where required
10180 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10182 * MenuAPI.cs: Added new keyword where required
10183 * ButtonBase.cs: Removed vars that are provided by base class, added
10184 new keyword where required
10185 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10186 argument to double, to allow compiling with csc 2.0 (Atsushi ran
10188 * Application.cs (Run): Now triggers the ThreadExit event
10189 * CommonDialog.cs: Added new keyword where required; now properly sets
10190 parent (owner) for dialog
10191 * XplatUIX11.cs: Commented out unused vars
10192 * StatusBar.cs: Fixed signature for Text property
10193 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10195 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
10197 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10198 TrackBar.cs, MonthCalendar.cs: remove unused vars
10200 2005-01-03 Jackson Harper <jackson@ximian.com>
10202 * ThemeWin32Classic.cs:
10203 * X11Keyboard.cs: Remove unused vars.
10205 2005-01-03 Peter Bartok <pbartok@novell.com>
10208 - set_Text: Tied into TextControl
10209 - set_TextAlignment: Tied into TextControl
10211 - Added alignment properties and implemented alignment handling
10212 and drawing (still has a bug, not generating proper expose events)
10213 - Added new Line() constructor to allow passing the line alignment
10214 - Fixed selection setting, properly handling end<start now
10215 - Added aligment considerations to RecalculateDocument()
10217 - Now properly enforces control height for single line controls
10218 - Added support for CharacterCasing
10219 - Added IsInputKey override
10220 - Fixed Keys.Enter logic
10221 - Added SetBoundsCore override
10222 - Fixed mouse selection handling
10224 2005-01-03 Jackson Harper <jackson@ximian.com>
10227 - Collapse and uncheck all nodes when CheckBoxes is disabled.
10228 - Checkboxes are always aligned to the bottom of the node,
10229 regardless of item height.
10230 - Use the node bounds to draw the text so we can center it when
10231 the item height is greater then the font height.
10232 - Node::Bounds are only the text part of the node.
10233 * TreeNode.cs: New method to combine collapsing and unchecking all
10236 2005-01-02 Jackson Harper <jackson@ximian.com>
10238 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10239 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10240 tree when a check is changed. TODO: Only refresh the checked node.
10242 2004-12-30 Jackson Harper <jackson@ximian.com>
10244 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10245 * TreeNode.cs: When collapsing make sure to never collapse the
10248 2004-12-29 Jackson Harper <jackson@ximian.com>
10250 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10252 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
10254 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10256 2004-12-28 Peter Bartok <pbartok@novell.com>
10258 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10261 2004-12-28 Peter Bartok <pbartok@novell.com>
10263 * Control.cs (WndProc): Added WM_HELP handler, now generates
10264 HelpRequested event
10265 * Form.cs: Added HelpButton property and required support code
10266 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10268 2004-12-28 Peter Bartok <pbartok@novell.com>
10271 - Made DialogForm.owner variable internal
10272 - Added check to ensure owner form is set before setting
10273 owner properties in CreateParams
10275 2004-12-28 Geoff Norton <gnorton@customerdna.com>
10277 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
10278 swizzling. Implement ClientToScreen and ScreenToClient. Implement
10279 GetCursorPos. Fix major visibility issues. Rework the windowing
10280 system to support borderless/titleless windows (implements menus).
10281 Fix GetWindowPos. Implement initial background color support for
10284 2004-12-28 Peter Bartok <pbartok@novell.com>
10286 * Form.cs (get_CreateParams): Make sure we have an owner before using
10287 the owner variable. Implement proper default if no owner exists
10289 2004-12-28 Peter Bartok <pbartok@novell.com>
10291 * In preparation for making Managed.Windows.Forms the default build target
10292 for System.Windows.Forms, the following stubbed files were added.
10293 Dialogs are currently being implemented by contributors and are only
10294 short-term place holders.
10295 * ColorDialog.cs: Initial check-in (minmal stub)
10296 * DataGrid.cs: Initial check-in (minimal stub)
10297 * DataGridLineStyle.cs: Initial check-in (minimal stub)
10298 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10299 * DataGridTableStyle.cs: Initial check-in (minimal stub)
10300 * FontDialog.cs: Initial check-in (minimal stub)
10301 * FileDialog.cs: Initial check-in (minimal stub)
10302 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10303 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10304 * OpenFileDialog: Initial check-in (minimal stub)
10305 * IComponentEditorPageSite.cs: Initial check-in
10306 * Splitter.cs: Initial check-in (for Jackson)
10307 * SplitterEventArgs.cs: Initial check-in (for Jackson)
10308 * SplitterEventHandler.cs: Initial check-in (for Jackson)
10309 * TextBox.cs: Initial check-in; still needs some wiring to
10310 TextControl backend
10311 * Form.cs: Implemented ControlBox property
10312 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10313 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10314 * TextControl.cs: Added selection functionality; added todo header
10316 - Implemented Lines property
10317 - Implemented TextHeight property
10318 - Implemented SelectedText property
10319 - Implemented SelectionLength property
10320 - Implemented SelectAll method
10321 - Implemented ToString method
10322 - Removed and cleaned up some debug code
10323 - Implemented (still buggy) mouse text selection
10325 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
10327 * ComboBox.cs: Complete DropDownList implementation, fixes.
10329 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
10331 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10332 * ComboBoxStyle.cs: ComboBoxStyle enum
10333 * ComboBox.cs: Initial work on ComboBox control
10335 2004-12-21 Peter Bartok <pbartok@novell.com>
10337 * Control.cs (ctor, CreateParams): Moved setting of is_visible
10338 forward so that anything that creates a window gets the default,
10339 also no longer uses Visible property in CreateParams to avoid
10340 walking up the parent chain and possibly get the wrong visible
10341 status. Fixed IsVisible to no longer walk up to the parent.
10343 2004-12-21 Peter Bartok <pbartok@novell.com>
10345 * Form.cs (ShowDialog): Unset modality for the proper window
10347 2004-12-20 Peter Bartok <pbartok@novell.com>
10349 * CommonDialog.cs: Initial check-in
10351 2004-12-20 Peter Bartok <pbartok@novell.com>
10353 * Control.cs (Visible): Now uses the parent window instead of the
10354 client area window for the property
10357 - ShowDialog(): Now uses the proper window for modality
10358 - The default visibility state for the form parent is now false. This
10359 will prevent the user from seeing all the changes to the form and
10360 its controls before the application hits Application.Run()
10361 - Removed some stale commented out code
10364 - Added FindWindow() method to have a method to check for existence
10366 - Added ability to override default exception handling (for example
10367 when debugging with VS.Net; to do this the ExternalExceptionHandler
10369 - Removed some useless debug output
10372 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10373 not working as expected
10374 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10375 property to allow switching back to the modal window if focus is
10376 given to another one of our windows (Application Modal)
10377 - Now only sets override_redirect if we create a window
10379 - Moved EventMask selection before mapping of newly created window
10380 so we can catch the map event as well
10381 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10382 - Added various Atom related DllImports
10383 - Implemented Exit() method
10384 - .ctor() : No longer shows window if WS_VISIBLE is not defined
10385 in the CreateParams
10387 * MessageBox.cs: Now properly deals with the FormParent window by
10388 providing an override the FormParent CreateParams property to
10389 set as POPUP instead of OVERLAPPED window.
10391 2004-12-19 Geoff Norton <gnorton@customerdna.com>
10393 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
10394 Minor code cleanup.
10396 2004-12-19 Geoff Norton <gnorton@customerdna.com>
10398 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10400 2004-12-18 Peter Bartok <pbartok@novell.com>
10402 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10403 implementing SetModal() method
10405 2004-12-18 Peter Bartok <pbartok@novell.com>
10407 * X11Structs.cs (XGCValues): Fixed type of function element
10408 * XplatUI.cs: Added ScrollWindow() method
10409 * XplatUIDriver.cs: Added ScrollWindow() abstract
10410 * XplatUIWin32.cs: Implemented ScrollWindow() method
10411 * XplatUIX11.cs: Implemented ScrollWindow() method
10412 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10414 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10416 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
10417 Some more keyboard support (INCOMPLETE)
10419 2004-12-17 Peter Bartok <pbartok@novell.com>
10422 - Added color attribute to line tags.
10423 - Added color argument to all functions dealing with tags
10424 - Added color argument support to various functions
10425 - Fixed miss-calculation of baseline/shift in certain circumstances
10427 * TextBoxBase.cs: Added new color option to test code
10429 2004-12-17 Jackson Harper <jackson@ximian.com>
10432 * MonthCalendar.cs: Signature fixes
10434 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10436 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10437 keyboard event moved it. Create a new graphics context for each paint resolves this
10439 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10441 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10442 Make caret exist and go blink blink. Initial keyboard support.
10443 Fix exception handler, Add Invalidate support. Change way RefreshWindow
10446 2004-12-17 Jackson Harper <jackson@ximian.com>
10448 * XplatUIStructs.cs: Updated set of virtual keycodes.
10449 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10451 2004-12-17 Jackson Harper <jackson@ximian.com>
10453 * XplatUIX11.cs: Prune old keyboard code.
10455 2004-12-17 Jackson Harper <jackson@ximian.com>
10457 * XplatUIX11.cs: When generating mouse wparams get the modifier
10458 keys from the ModifierKeys property.
10460 2004-12-17 Jackson Harper <jackson@ximian.com>
10462 * X11Keyboard.cs: Send up/down input when generating
10463 messages. Remove some unused vars.
10465 2004-12-17 Jackson Harper <jackson@ximian.com>
10468 * TreeView.cs: get rid of warnings.
10470 2004-12-17 Jackson Harper <jackson@ximian.com>
10472 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10474 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
10476 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10477 CheckedListBox.cs: Implementation
10479 2004-12-17 Peter Bartok <pbartok@novell.com>
10481 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10483 2004-12-16 Peter Bartok <pbartok@novell.com>
10486 - InsertCharAtCaret(): Fixed start pos fixup
10487 - CaretLine_get: No longer derives the line from the tag, the tag
10488 could be stale if lines in the document have been added or deleted
10489 - RebalanceAfterDelete(): Fixed bug in balancing code
10490 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10491 - Line.Streamline(): Now can also elminate leading empty tags
10492 - DumpTree(): Added a few more tests and prevented exception on
10494 - Added Debug section for Combining lines
10495 - Delete(): Now copies all remaining properties of a line
10498 - Left mousebutton now sets the caret (and middle button still acts
10499 as formatting tester, which must go away soon)
10500 - Added Debug section for Deleting/Combining lines
10501 - Fixed calculations for UpdateView after Combining lines
10503 2004-12-16 Peter Bartok <pbartok@novell.com>
10505 * TextControl.cs: Now properly aligns text on a baseline, using the
10506 new XplatUI.GetFontMetrics() method. Simplified several calculations
10507 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10510 2004-12-16 Peter Bartok <pbartok@novell.com>
10512 * XplatUI.cs: Added GetFontMetrics() method
10513 * XplatUIDriver.cs: Added GetFontMetrics() abstract
10514 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10515 into libgdiplus, our private GetFontMetrics function
10516 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10517 * XplatUIWin32.cs: Implemented GetFontMetrics() method
10519 2004-12-16 Jackson Harper <jackson@ximain.com>
10521 * XplatUIStruct.cs: Add enum for dead keys
10522 * X11Keyboard.cs: Map and unmap dead keys.
10524 2004-12-16 Jackson Harper <jackson@ximian.com>
10526 * X11Keyboard.cs: Detect and use the num lock mask.
10528 2004-12-16 Peter Bartok <pbartok@novell.com>
10530 * Control.cs (CreateGraphics): Added check to make sure the
10531 handle of the window exists before calling Graphics.FromHwnd()
10533 2004-12-16 Peter Bartok <pbartok@novell.com>
10535 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10536 contains a lot of code that's not supposed to be there for the
10537 real thing, but required for developing/testing the textbox
10540 2004-12-16 Peter Bartok <pbartok@novell.com>
10543 - Fixed Streamline method
10544 - Added FindTag method to Line
10545 - Added DumpTree method for debugging
10546 - Added DecrementLines() method for deleting lines
10547 - Fixed UpdateView to update the cursor to end-of-line on single-line
10549 - Added PositionCaret() method
10550 - Fixed MoveCaret(LineDown) to move into the last line, too
10551 - Added InsertChar overload
10552 - Fixed InsertChar tag offset calculations
10553 - Added DeleteChar() method
10554 - Added Combine() method for folding lines
10555 - Fixed Delete() method, no longer allocates wasted Line object and
10556 now copies all properties when swapping nodes
10557 - Delete() method now updates document line counter
10559 2004-12-15 Jackson Harper <jackson@ximian.com>
10561 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10562 * X11Keyboard.cs: Expose the currently selected modifier keys
10563 through a property.
10565 2004-12-15 Peter Bartok <pbartok@novell.com>
10567 * TextControl.cs: Initial check-in. Still incomplete
10569 2004-12-15 Jackson Harper <jackson@ximian.com>
10572 * TreeView.cs: Fix build on csc (second time today ;-))
10574 2004-12-15 Jackson Harper <jackson@ximian.com>
10576 * TreeView.cs: Store the treenodes plus/minus box bounds when it
10577 is calculated and use this for click testing.
10578 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10580 2004-12-15 Jackson Harper <jackson@ximian.com>
10582 * TreeView.cs: Pass the nodes image index to the image list when
10583 drawing that image.
10585 2004-12-15 Jackson Harper <jackson@ximian.com>
10587 * X11Keyboard.cs: Set messages hwnd.
10588 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10589 post_message calls.
10591 2004-12-15 Jackson Harper <jackson@ximian.com>
10593 * X11Keyboard.cs: Fix to compile with csc.
10595 2004-12-15 Jackson Harper <jackson@ximian.com>
10597 * X11Structs.cs: Add key mask values
10598 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10599 * X11Keyboard.cs: New file - Extrapolates and interpolates key
10600 down/up foo into WM_CHAR foo
10601 * KeyboardLayouts.cs: Common keyboard layouts
10602 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10603 post messages into the main queue.
10605 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
10607 * Button.cs: implement ProcessMnemonic
10608 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10610 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10611 * ButtonBase.cs: Show HotkeyPrefix (not the &)
10613 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
10615 * MonthCalendar.cs: Implemented click-hold for next/previous month
10618 2004-12-11 Peter Bartok <pbartok@novell.com>
10621 - Added XKeyboardState (moved from XplatUIX11.cs)
10622 - Added XCreateGC related enums and structures
10623 - Added GXFunction for XSetFunction
10625 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10627 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10628 CaretVisible() calls
10630 * ToolTip.cs: Added code to prevent stealing focus from app windows
10632 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10633 DestroyCaret, SetCaretPos and CaretVisible)
10636 - Added implementation for caret functions
10637 - Moved hover variables into a struct, to make it a bit easier
10638 on the eyes and to debug
10639 - Removed XKeyboardState (moved to XplatUIX11.cs)
10640 - Moved Keyboard properties into the properties region
10642 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10643 call to get a graphics context for our control
10645 * XplatUIOSX.cs: Added empty overrides for the new caret functions
10647 * TreeView.cs: Fixed bug. No matter what color was set it would always
10648 return SystemColors.Window
10650 * XplatUIWin32.cs: Implemented caret overrides
10652 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
10654 * ListBox.cs: fire events, implement missing methods and properties,
10657 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
10659 * MonthCalendar.cs: invalidation bug fixing
10660 * ThemeWin32Classic.cs: paint fixing
10662 2004-12-09 Geoff Norton <gnorton@customerdna.com>
10664 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10665 prepare the CGContextRef there now.
10667 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
10669 * MonthCalendar.cs:
10670 - optimisationL only invalidate areas that have changed
10671 * ThemeWin32Classic.cs:
10672 - only paint parts that intersect with clip_area
10674 2004-12-09 Peter Bartok <pbartok@novell.com>
10676 * Application.cs: Undid changes from r37004 which cause problems
10679 2004-12-09 Ravindra <rkumar@novell.com>
10681 * ToolBar.cs: Added support for displaying ContextMenu
10682 attached to a button on ToolBar.
10683 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10686 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
10688 * Label.cs: autosize works in text change and removes unnecessary
10691 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
10693 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10696 2004-12-08 Geoff Norton <gnorton@customerdna.com>
10698 * XplatUIOSX.cs: Added mouse move/click/grab support
10699 Remove some debugging WriteLines not needed anymore.
10700 Add window resizing/positioning.
10701 Fix visibility on reparenting.
10703 2004-12-08 Peter Bartok <pbartok@novell.com>
10705 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10707 2004-12-07 Geoff Norton <gnorton@customerdna.com>
10709 * XplatUIOSX.cs: Initial checkin
10710 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10712 2004-12-03 Ravindra <rkumar@novell.com>
10714 * ListView.cs: Added some keybindings and fixed scrolling.
10715 ScrollBars listen to ValueChanged event instead of Scroll
10716 Event. This would let us take care of all changes being
10717 done in the scrollbars' values programmatically or manually.
10718 * ListView.cs (CanMultiselect): Added a check for shift key.
10719 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10720 * ListViewItem.cs (Clone): Fixed. We need to make a copy
10721 of ListViewSubItemCollection as well.
10723 2004-12-06 Peter Bartok <pbartok@novell.com>
10725 * Control.cs (Parent): Added check and exception to prevent
10728 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
10730 * ListBox.cs: implemented clipping, selection single and multiple,
10733 2004-12-03 Ravindra <rkumar@novell.com>
10735 * ListView.cs (ListView_KeyDown):
10736 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10737 when CTRL key is pressed.
10738 * ListViewItem.cs (Selected): Fixed setting the property.
10740 2004-12-03 Marek Safar <marek.safar@seznam.cz>
10742 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10744 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10745 MinimizeBox, ShowInTaskbar, TopMost properties.
10747 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10748 will be implemented).
10750 2004-12-03 Marek Safar <marek.safar@seznam.cz>
10752 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10754 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10757 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10759 * TreeView.cs: BackColor is Colors.Window.
10761 2004-12-01 Jackson Harper <jackson@ximian.com>
10763 * TreeView.cs: When resizing the tree if the user is making it
10764 smaller we don't get expose events, so we need to handle adding
10765 the horizontal scrollbar in the size changed handler as well as
10766 the expose handler.
10768 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
10770 * DrawItemState.cs: fixes wrong enum values
10772 2004-12-01 Jackson Harper <jackson@ximian.com>
10774 * TreeView.cs: Resize the hbar as well as the vbar on resize.
10776 2004-12-01 Jackson Harper <jackson@ximian.com>
10778 * NodeLabelEditEventArgs.cs:
10779 * NodeLabelEditEventHandler.cs:
10780 * OpenTreeNodeEnumerator.cs:
10782 * TreeNodeCollection.cs:
10784 * TreeViewAction.cs:
10785 * TreeViewCancelEventArgs.cs:
10786 * TreeViewCancelEventHandler.cs:
10787 * TreeViewEventArgs.cs:
10788 * TreeViewEventHandler.cs: Initial implementation.
10790 2004-12-01 Ravindra <rkumar@novell.com>
10792 * ListView.cs (CalculateListView): Fixed scrolling related
10793 calculations. Also, removed some debug statements from other
10795 * ListViewItem.cs: Changed access to 'selected' instance variable
10796 from private to internal.
10797 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10799 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
10801 * ThemeWin32Classic.cs: remove cache of brush and pens for
10802 specific controls and use the global system, fixes scrollbutton
10803 bugs (for small sizes, disabled, etc)
10805 * ScrollBar.cs: does not show the thumb for very small controls
10806 (as MS) and allow smaller buttons that the regular size
10808 2004-12-01 Miguel de Icaza <miguel@ximian.com>
10810 * UpDownBase.cs: Add abstract methods for the interface.
10811 Add new virtual methods (need to be hooked up to TextEntry when it
10813 Add override methods for most features.
10814 Computes the size, forces the height of the text entry.
10816 * NumericUpDown.cs: Put here the current testing code.
10818 * Set eol-style property on all files that do not have mixed line
10819 endings, to minimize the future problems. There are still a few
10820 files with mixed endings, and someone should choose whether they
10821 want to move it or not.
10823 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
10825 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10828 2004-11-30 Ravindra <rkumar@novell.com>
10830 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10831 drawing and replaced use of SystemColors by theme colors.
10832 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10833 * ListView.cs (ListViewItemCollection.Add): Throw exception when
10834 same ListViewItem is being added more than once.
10836 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
10838 * MonthCalendar.cs:
10839 - ControlStyles love to make the control not flicker
10841 2004-11-30 Peter Bartok <pbartok@novell.com>
10843 * CharacterCasing.cs: Added
10845 2004-11-29 Peter Bartok <pbartok@novell.com>
10847 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10848 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10849 I am removing these files as they conflict with already completed
10850 work. While it is fantastic to get contributions to MWF, I
10851 respectfully ask that everyone please coordinate their contributions
10852 through mono-winforms-list or #mono-winforms at this time. We're
10853 explicitly avoiding stubbing and don't want controls that don't have
10854 their basic functionality implemented in svn. Please also see
10855 http://www.mono-project.com/contributing/winforms.html
10858 2004-11-29 Marek Safar <marek.safar@seznam.cz>
10860 * Application.cs (ModalRun): Don't hang after exit.
10862 * Theme.cs: New TreeViewDefaultSize property.
10864 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10865 with less hardcoded SystemColors constant.
10866 Implemented TreeViewDefaultSize.
10868 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10869 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10872 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
10874 * MonthCalendar.cs:
10875 - Fix NextMonthDate and PrevMonthDate click moving calendar
10877 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
10879 * MonthCalendar.cs:
10880 - Fix usage of ScrollChange Property when scrolling months
10882 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
10884 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10885 - Fixes menu destroying
10886 - Support adding and removing items on already created menus
10888 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
10890 * MonthCalendar.cs:
10891 - Re-worked all bolded dates handling to match win32
10892 * ThemeWin32Classic.cs:
10893 - Fixed rendering with bolded dates
10895 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
10897 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10898 - Horizontal scroolbar
10903 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
10905 * MonthCalendar.cs:
10906 - Fix Usage of MaxSelectionCount from SelectionRange
10907 - Fixed Shift + Cursor Selection
10908 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10909 - Fixed normal cursor selection to be compat with win32
10910 - Fixed Shift + Mouse Click selection
10912 2004-11-24 Peter Bartok <pbartok@novell.com>
10914 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10915 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10917 - CreatedKeyBoardMsg now updates keystate with Alt key
10918 - Added workaround for timer crash to CheckTimers, Jackson will
10919 develop a proper fix and check in later
10920 - Implemented DispatchMessage
10921 - Removed calling the native window proc from GetMessage (call
10922 now moved to DispatchMessage)
10924 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10925 the keydata (Fixes bug #69831)
10928 - (DispatchMessage): Switched to return IntPtr
10929 - Added DllImport for SetFocus
10931 2004-11-24 Ravindra <rkumar@novell.com>
10933 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10934 background drawing.
10935 * ListViewItem.cs: Fixed various properties, calculations
10936 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10937 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10938 and some internal properties. Fixed MouseDown handler and Paint
10941 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10943 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10945 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10947 * ContainerControl.cs: correct accidental check in of local changes
10949 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10951 * ThemeWin32Classic.cs:
10952 - Fixed Drawing Last month in grid (sometimes not showing)
10953 * MonthCalendar.cs:
10954 - Fixed title width calculation bug (makeing title small)
10956 2004-11-23 Peter Bartok <pbartok@novell.com>
10959 - Added generation of WM_MOUSEHOVER event
10960 - Added missing assignment of async_method atom
10961 - Fixed WM_ERASEBKGND; now only redraws the exposed area
10963 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
10965 * ThemeWin32Classic.cs:
10966 - Fixed Drawing of today circle when showtodaycircle not set
10967 - fixed drawing of first and last month in the grid (gay dates)
10968 * MonthCalendar.cs:
10969 - Fixed Drawing of today circle
10970 - Fixed drawing of grady dates
10971 - Fixed HitTest for today link when ShowToday set to false
10972 - Fixed DefaultSize to obey ShowToday
10974 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
10976 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10977 * System.Windows.Forms/Theme.cs
10978 * MonthCalendar.cs: added for MonthCalendar
10979 * SelectionRange.cs: added for MonthCalendar
10980 * Day.cs: added for MonthCalendar: added for MonthCalendar
10981 * DateRangeEventArgs.cs: added for MonthCalendar
10982 * DateRangeEventHandler.cs: added for MonthCalendar
10984 2004-11-22 Ravindra <rkumar@novell.com>
10986 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10989 2004-11-22 Miguel de Icaza <miguel@ximian.com>
10991 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10994 * NumericUpDown.cs: Added new implementation.
10995 * UpDownBase.cs: Added new implementation.
10997 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11000 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11003 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11006 2004-11-21 Miguel de Icaza <miguel@ximian.com>
11008 * Timer.cs (Dispose): Should call the base dispose when
11011 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
11013 * ScrollBar.cs: updates thumb position when max, min or increment
11016 2004-11-21 Ravindra <rkumar@novell.com>
11018 * ListView.cs: Implemented item selection, activation and
11019 column header style. Fixed properties to do a redraw, if
11020 required. Added support for MouseHover, DoubleClick, KeyDown
11021 and KeyUp event handling and some minor fixes.
11022 * ListViewItem.cs: Fixed constructor.
11023 * ThemeWin32Classic.cs: Improved drawing for ListView.
11025 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
11027 * ThemeWin32Classic.cs: initial listbox drawing code
11028 * DrawMode.cs: new enumerator
11029 * ListControl.cs: stubbed class
11030 * ListBox.cs: initial implementation
11031 * Theme.cs: new methods definitions
11032 * SelectionMode.cs: new enumerator
11034 2004-11-17 Peter Bartok <pbartok@novell.com>
11036 * XplatUIWin32.cs: Added double-click events to the class style
11037 * Control.cs (WndProc):
11038 - Added handling of click-count to MouseDown/ MouseUp events.
11039 - Added handling of middle and right mouse buttons
11040 - Removed old debug code
11042 2004-11-17 Jackson Harper <jackson@ximian.com>
11044 * XplatUIX11.cs: Use the new Mono.Unix namespace.
11046 2004-11-17 Ravindra <rkumar@novell.com>
11048 * ListView.cs: Added event handling for MouseMove/Up/Down.
11049 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11050 * ThemeWin32Classic.cs: We need to clear the graphics context and
11051 draw column header in a proper state.
11054 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
11056 * Menu.cs: fixes signature
11058 2004-11-16 Peter Bartok <pbartok@novell.com>
11060 * XplatUIX11.cs (GetMessage): Implemented generation of
11061 double click mouse messages
11063 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
11065 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11068 2004-11-11 Peter Bartok <pbartok@novell.com>
11070 * HandleData.cs: Added Visible property
11071 * XplatUIX11.cs (IsVisible): Now uses Visible property from
11073 * XplatUIX11.cs: Removed old debug leftovers
11074 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11075 * Control.cs (WndProc): Removed old debug leftovers,
11076 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11077 needed WM_SIZE handling
11079 2004-11-11 Jackson Harper <jackson@ximian.com>
11081 * OwnerDrawPropertyBag.cs:
11082 * TreeViewImageIndexConverter.cs: Initial implementation
11084 2004-11-10 Jackson Harper <jackson@ximian.com>
11086 * ThemeWin32Classic.cs:
11087 * TabControl.cs: instead of moving tabs by the slider pos just
11088 start drawing at the tab that is offset by the slider. This way
11089 scrolling always moves by exactly one tab.
11091 2004-11-10 Jackson Harper <jackson@ximian.com>
11093 * TabControl.cs: You can only scroll left when the slider has
11094 already ben moved right.
11096 2004-11-10 Jackson Harper <jackson@ximian.com>
11098 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11101 2004-11-10 Jackson Harper <jackson@ximian.com>
11103 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11106 2004-11-09 Jackson Harper <jackson@ximian.com>
11108 * TabControl.cs (CalcXPos): New helper method so we can determine
11109 the proper place to start drawing vertical tabs.
11110 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11112 2004-11-09 Jackson Harper <jackson@ximian.com>
11114 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11115 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11116 and Bottom, left and right are illegal values for this and
11117 multiline is enabled when the alignment is set to left or right.
11118 (DrawTab): Each alignment block should draw the text itself now
11119 because Left requires special love. Also add rendering for Left
11122 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
11124 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11125 does not destroy the windows, removes debugging messages
11127 2004-11-09 jba <jba-mono@optusnet.com.au>
11129 * ThemeWin32Classic.cs
11130 (DrawButtonBase): Fix verticle text rect clipping in windows
11131 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11132 rendering and incorrect text rect clipping
11133 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11134 rendering and incorrect text rect clipping
11136 2004-11-08 Jackson Harper <jackson@ximian.com>
11138 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11139 bottom when they are bottom aligned so the bottoms of the tabs get
11141 * TabControl.cs (DropRow): Move rows up instead of down when the
11142 tab control is bottom aligned.
11144 2004-11-08 13:59 pbartok
11147 - Added handling for various window styles
11148 - Added handling for popup windows
11149 - Added SetTopmost handling
11151 2004-11-08 13:55 pbartok
11154 - Added argument to SetTopmost method
11155 - Fixed broken ClientToScreen function
11157 2004-11-08 13:53 pbartok
11159 * XplatUIStructs.cs:
11160 - Added missing WS_EX styles
11162 2004-11-08 13:53 pbartok
11164 * XplatUI.cs, XplatUIDriver.cs:
11165 - Added argument to SetTopmost
11167 2004-11-08 13:52 pbartok
11170 - Added XSetWindowAttributes structure
11171 - Improved XWindowAttributes structure
11172 - Added SetWindowValuemask enum
11173 - Added window creation arguments enum
11174 - Added gravity enum
11175 - Added Motif hints structure
11176 - Added various Motif flags and enums
11177 - Added PropertyMode enum for property functions
11179 2004-11-08 13:50 pbartok
11182 - Fixed arguments for updated SetTopmost method
11184 2004-11-08 13:49 pbartok
11187 - Fixed arguments for updated SetTopmost function
11188 - Fixed usage of PointToClient
11190 2004-11-08 13:44 pbartok
11193 - Added Clipping of children and siblings
11195 2004-11-08 13:41 pbartok
11198 - Removed SetMenuBarWindow call. We do this in Form.cs
11200 2004-11-08 13:40 jackson
11202 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11203 scrolling jimmi in the correct location with bottom aligned tabs
11205 2004-11-08 13:36 pbartok
11207 * ContainerControl.cs:
11208 - Implemented BindingContext
11209 - Implemented ParentForm
11211 2004-11-08 12:46 jackson
11213 * TabControl.cs: Put bottom rendered tabs in the right location
11215 2004-11-08 07:15 jordi
11217 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11220 2004-11-05 17:30 jackson
11222 * TabControl.cs: When selected tabs are expanded make sure they
11223 don't go beyond the edges of the tab control
11225 2004-11-05 14:57 jackson
11227 * TabControl.cs: Reset show_slider so if the control is resized to
11228 a size where it is no longer needed it's not displayed anymore
11230 2004-11-05 13:16 jackson
11232 * TabControl.cs: Make tab pages non visible when added to the
11235 2004-11-05 12:42 jackson
11237 * TabControl.cs: Implement SizeMode.FillToRight
11239 2004-11-05 12:16 jackson
11241 * Control.cs: Do not call CreateHandle if the handle is already
11244 2004-11-05 11:46 jackson
11246 * TabControl.cs: Remove superflous call to CalcTabRows
11248 2004-11-05 09:07 jackson
11250 * XplatUIX11.cs: Update for Mono.Posix changes
11252 2004-11-05 07:00 ravindra
11254 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11257 2004-11-04 22:47 jba
11259 * ThemeWin32Classic.cs:
11260 - Fix Button rendering for FlatStyle = Flat or Popup
11261 - Fix RadioButton and CheckBox rendering when Appearance = Button
11262 (normal and flatstyle).
11263 - Correct outer rectangle color when drawing focus rectangle
11264 - Adjust button bounds to be 1 px smaller when focused
11265 - Make button not draw sunken 3d border when pushed (windows compat)
11266 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11267 - Offset the text in RadioButton and Checkbox when being rendered as
11269 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11271 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11272 - Fixed disabled text rendering for normally rendered radiobuttons
11274 2004-11-04 10:26 jackson
11276 * TabControl.cs: Recalculate tab rows when resizing
11278 2004-11-04 07:47 jordi
11280 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11281 collection completion, drawing issues, missing features
11283 2004-11-04 05:03 ravindra
11286 - We need to recalculate the Thumb area when
11287 LargeChange/maximum/minimum values are changed.
11288 - We set the 'pos' in UpdatePos() method to minimum, if it's less
11289 than minimum. This is required to handle the case if large_change is
11290 more than max, and use LargeChange property instead of large_change
11292 - We return max+1 when large_change is more than max, like MS does.
11294 2004-11-04 04:29 ravindra
11296 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11297 - Changed default value signatures (prefixed all with ListView).
11298 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11300 - Fixed calculations for ListViewItem and implemented Clone()
11303 2004-11-04 04:26 ravindra
11305 * Theme.cs, ThemeWin32Classic.cs:
11306 - Changed default ListView values signatures (prefixed all with
11308 - Fixed default size values for VScrollBar and HScrollBar.
11309 - Fixed DrawListViewItem method.
11311 2004-11-04 04:05 ravindra
11313 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11315 2004-11-04 04:04 ravindra
11317 * ImageList.cs: Implemented the missing overload for Draw method.
11319 2004-11-03 19:29 jackson
11321 * TabControl.cs: Handle dropping rows on selection properly
11323 2004-11-03 11:59 jackson
11325 * TabControl.cs: remove debug code
11327 2004-11-03 11:52 jackson
11329 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11330 the scrolly widgerywoo
11332 2004-11-02 13:52 jackson
11334 * TabControl.cs: Resize the tab pages and tabs when the tab control
11337 2004-11-02 13:40 jackson
11339 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11340 selected tab to the bottom
11342 2004-11-02 13:39 jackson
11344 * TabPage.cs: Store the tab pages row
11346 2004-11-02 12:33 jordi
11348 * MenuItem.cs: fixes handle creation
11350 2004-11-02 11:42 jackson
11352 * TabControl.cs: signature fix
11354 2004-11-02 08:56 jackson
11356 * TabControl.cs: Calculate whether the tab is on an edge properly.
11357 Remove top secret debugging code
11359 2004-11-01 19:57 jackson
11361 * TabControl.cs: Add click handling, and proper sizing
11363 2004-11-01 19:47 jackson
11365 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11368 2004-11-01 19:39 jackson
11370 * TabPage.cs: add internal property to store the bounds of a tab
11373 2004-10-30 04:23 ravindra
11375 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11378 2004-10-30 04:21 ravindra
11380 * ListView.cs, ListViewItem.cs: Added support for scrolling and
11381 fixed calculations.
11383 2004-10-30 03:06 pbartok
11386 - Removed extension of DllImported libs
11388 2004-10-29 09:55 jordi
11390 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11391 navigation, itemcollection completion, menu fixes
11393 2004-10-27 22:58 pbartok
11396 - Now throws a nice error message when no X display could be opened
11398 2004-10-26 13:51 jordi
11400 * ListView.cs: removes warning
11402 2004-10-26 03:55 ravindra
11404 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11405 ThemeWin32Classic.cs: Some formatting for my last checkins.
11407 2004-10-26 03:36 ravindra
11409 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11410 control and default values.
11412 2004-10-26 03:35 ravindra
11414 * Theme.cs: Added some default values for ListView control.
11416 2004-10-26 03:33 ravindra
11418 * ToolBar.cs: ToolBar should use the user specified button size, if
11419 there is any. Added a size_specified flag for the same.
11421 2004-10-26 03:33 ravindra
11423 * ColumnHeader.cs: Added some internal members and calculations for
11426 2004-10-26 03:32 ravindra
11428 * ListViewItem.cs: Calculations for ListViewItem.
11430 2004-10-26 03:31 ravindra
11432 * ListView.cs: Added some internal members and calculations for
11435 2004-10-22 13:31 jordi
11437 * MenuAPI.cs: speedup menus drawing
11439 2004-10-22 13:16 jackson
11441 * XplatUIX11.cs: Make sure to update exposed regions when adding an
11444 2004-10-22 11:49 jackson
11448 2004-10-22 11:41 jackson
11450 * Control.cs: Check to see if the window should have its background
11451 repainted by X when drawing.
11453 2004-10-22 11:31 jackson
11455 * XplatUIX11.cs: When invalidating areas only use XClearArea if
11456 clear is true, this way we do not get flicker from X repainting the
11459 2004-10-22 11:28 jackson
11461 * XEventQueue.cs: Queue properly
11463 2004-10-21 09:38 jackson
11465 * XEventQueue.cs: Fix access modifier
11467 2004-10-21 09:36 jackson
11469 * XEventQueue.cs: Don't loose messages
11471 2004-10-21 09:22 jackson
11473 * XEventQueue.cs: Don't loose messages
11475 2004-10-20 04:15 jordi
11477 * BootMode.cs: enum need it by SystemInfo
11479 2004-10-19 21:58 pbartok
11482 - Small sanity check
11484 2004-10-19 21:56 pbartok
11487 - Added private FormParentWindow class which acts as the container
11488 for our form and as the non-client area where menus are drawn
11489 - Added/Moved required tie-ins to Jordi's menus
11490 - Fixed/Implemented the FormStartPosition functionality
11492 2004-10-19 21:52 pbartok
11495 - Removed unneeded locals
11496 - Added code to all size and location properties to understand and
11497 deal with the parent container of Form
11499 2004-10-19 21:33 pbartok
11502 - Fixed to deal with new Form subclasses for menus
11504 2004-10-19 17:48 jackson
11506 * XEventQueue.cs: commit correct version of file
11508 2004-10-19 16:50 jackson
11510 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11512 2004-10-19 16:15 jordi
11514 * MenuAPI.cs: MenuBarCalcSize returns the height
11516 2004-10-19 08:31 pbartok
11519 - Added missing call to PreProcessMessage before calling OnXXXKey
11522 2004-10-19 00:04 ravindra
11524 * ToolTip.cs: Fixed constructor.
11526 2004-10-18 09:31 jordi
11528 * MenuAPI.cs: menuitems in menubars do not have shortcuts
11530 2004-10-18 09:26 jordi
11532 * MenuItem.cs: fixes MenuItem class signature
11534 2004-10-18 08:56 jordi
11536 * MenuAPI.cs: prevents windows from showing in the taskbar
11538 2004-10-18 00:28 ravindra
11540 * ToolTip.cs: Suppressed a warning message.
11542 2004-10-18 00:27 ravindra
11544 * Control.cs: Default value of visible property must be true.
11546 2004-10-17 23:19 pbartok
11549 - Complete implementation
11551 2004-10-17 23:19 pbartok
11554 - Added EnableWindow method
11555 - Added SetModal stub
11556 - Added generation of WM_ACTIVATE message (still needs testing)
11557 - Added SetTopMost stub
11558 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11560 2004-10-17 23:17 pbartok
11563 - Removed VirtualKeys to XplatUIStructs
11564 - Implemented SetTopMost method
11565 - Implemented EnableWindow method
11566 - Bugfix in ScreenToClient()
11567 - Bugfixes in ClientToScreen()
11569 2004-10-17 22:51 pbartok
11571 * XplatUIStructs.cs:
11572 - Added WS_EX styles to WindowStyles enumeration
11574 2004-10-17 22:50 pbartok
11576 * XplatUI.cs, XplatUIDriver.cs:
11577 - Added method for enabling/disabling windows
11578 - Added method for setting window modality
11579 - Added method for setting topmost window
11581 2004-10-17 22:49 pbartok
11583 * ThemeWin32Classic.cs:
11584 - Added ToolTip drawing code
11586 2004-10-17 22:49 pbartok
11589 - Added ToolTip abstracts
11591 2004-10-17 22:47 pbartok
11594 - Fixed Form.ControlCollection to handle owner relations
11595 - Added Owner/OwnedForms handling
11596 - Implemented Z-Ordering for owned forms
11597 - Removed unneeded private overload of ShowDialog
11598 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11600 - Fixed Close(), had wrong default
11601 - Added firing of OnLoad event
11602 - Added some commented out debug code for Ownership handling
11604 2004-10-17 22:16 pbartok
11607 - Fixed/implemented flat list of controls
11609 2004-10-17 22:14 pbartok
11612 - Added code to simulate modal dialogs on Win32
11614 2004-10-17 16:11 jordi
11616 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11619 2004-10-17 13:39 jordi
11621 * MenuAPI.cs: menu drawing fixes
11623 2004-10-15 09:10 ravindra
11625 * StructFormat.cs: General Enum.
11627 2004-10-15 09:09 ravindra
11629 * SizeGripStyle.cs: Enum for Form.
11631 2004-10-15 09:08 ravindra
11633 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11634 in Theme for ListView.
11636 2004-10-15 09:06 ravindra
11638 * ColumnHeader.cs: Flushing some formatting changes.
11640 2004-10-15 09:05 ravindra
11642 * ListViewItem.cs: Implemented GetBounds method and fixed coding
11645 2004-10-15 09:03 ravindra
11647 * ListView.cs: Implemented Paint method and fixed coding style.
11649 2004-10-15 07:34 jordi
11651 * MenuAPI.cs: fix for X11
11653 2004-10-15 07:32 ravindra
11655 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11656 - Renamed Paint() method to Draw() for clarity. Also, moved
11657 DrawImage() to OnPaint().
11659 2004-10-15 07:25 ravindra
11661 * CheckBox.cs, RadioButton.cs:
11662 - Removed Redraw (), we get it from ButtonBase.
11663 - Implemented Paint (), to do class specific painting.
11665 2004-10-15 07:16 ravindra
11668 - Redraw () is not virtual now.
11669 - Added an internal virtual method Paint (), so that
11670 derived classes can do their painting on their own.
11671 - Modified OnPaint () to call Paint ().
11673 2004-10-15 06:43 jordi
11675 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11676 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11678 2004-10-15 00:30 ravindra
11681 - MessageBox on windows does not have min/max buttons.
11682 This change in CreateParams fixes this on Windows. We
11683 still need to implement this windowstyle behavior in
11686 2004-10-14 05:14 ravindra
11689 - Changed Redraw () to do a Refresh () always.
11690 - Fixed the MouseMove event handling when mouse is pressed,
11691 ie drag event handling.
11692 - Replaced the usage of ToolBarButton.Pressed property to
11693 ToolBarButton.pressed internal variable.
11695 2004-10-14 05:10 ravindra
11697 * ToolBarButton.cs:
11698 - Added an internal member 'inside' to handle mouse move
11699 with mouse pressed ie mouse drag event.
11700 - Changed 'Pressed' property to return true only when
11701 'inside' and 'pressed' are both true.
11702 - Some coding style love.
11704 2004-10-14 00:17 ravindra
11706 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11709 2004-10-14 00:15 ravindra
11711 * ButtonBase.cs: Redraw () related improvements.
11713 2004-10-14 00:14 ravindra
11715 * MessageBox.cs: Moved InitFormSize () out of Paint method and
11716 removed unnecessary calls to Button.Show () method.
11718 2004-10-13 17:50 pbartok
11722 - Removed destroying of window until we solve the problem of X
11723 destroying the window before us on shutdown
11725 2004-10-13 16:32 pbartok
11728 - Now Redraws on MouseUp for FlatStyle Flat and Popup
11730 2004-10-13 14:18 pbartok
11733 - Added code to destroy the X window
11735 2004-10-13 14:18 pbartok
11738 - Added code to destroy a window
11740 2004-10-13 14:12 pbartok
11743 - Added the Redraw on Resize that got dropped in the last rev
11745 2004-10-13 09:06 pbartok
11747 * ThemeWin32Classic.cs:
11748 - Path from John BouAntoun:
11749 * Fix check rendering (centre correctly for normal style, offset
11750 correctly for FlatStyle).
11751 * Fix border color usage (use backcolor) for FlatStyle.Popup
11752 * Use checkbox.Capture instead of checkbox.is_pressed when
11753 rendering flatstyle states.
11755 2004-10-12 21:48 pbartok
11757 * ThemeWin32Classic.cs:
11758 - Removed all occurences of SystemColors and replaced them with the
11759 matching theme color
11761 2004-10-12 21:41 pbartok
11763 * ThemeWin32Classic.cs:
11764 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11765 him using the function for flatstyle drawing
11766 - Changed functions to use the new version of CPDrawBorder3D
11768 2004-10-12 21:15 pbartok
11771 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11772 match MS documentation. They need to return defined colors if the
11773 passed color matches the configured control color. Thanks to John
11774 BouAntoun for pointing this out.
11776 2004-10-12 20:57 pbartok
11779 - Fix from John BouAntoun: Raise ForeColorChanged event when text
11782 2004-10-12 20:46 pbartok
11785 - Fix from John BouAntoun: Now properly sets the Appearance property
11787 2004-10-12 20:45 pbartok
11789 * ThemeWin32Classic.cs:
11790 - Fixes from John BouAntoun: now handles forecolors and backcolors
11791 for flatstyle rendered controls much better; It also fixes normal
11792 checkbox rendering when pushed or disabled.
11794 2004-10-08 02:50 jordi
11796 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11799 2004-10-07 08:56 jordi
11801 * ThemeWin32Classic.cs: Removes deletion of cached brushes
11803 2004-10-06 03:59 jordi
11805 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11806 XplatUIWin32.cs: removes warnings from compilation
11808 2004-10-05 12:23 jackson
11810 * RadioButton.cs: Fix ctor
11812 2004-10-05 11:10 pbartok
11815 - Partial implementation by Benjamin Dasnois
11817 2004-10-05 10:15 jackson
11819 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11822 2004-10-05 03:07 ravindra
11825 - Removed a private method, Draw ().
11826 - Fixed the ButtonDropDown event handling.
11827 - Fixed MouseMove event handling.
11829 2004-10-05 03:04 ravindra
11831 * ThemeWin32Classic.cs:
11832 - Added DrawListView method and ListViewDefaultSize property.
11833 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11834 - Changed DOS style CRLF to Unix format (dos2unix).
11836 2004-10-05 03:03 ravindra
11839 - Added DrawListView method and ListViewDefaultSize property.
11841 2004-10-05 02:42 ravindra
11843 * ToolBarButton.cs: Added an internal member dd_pressed to handle
11844 clicks on DropDown arrow.
11846 2004-10-04 22:56 jackson
11848 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11849 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11850 Control handle the buffers, derived classes should not have to
11851 CreateBuffers themselves.
11853 2004-10-04 21:20 jackson
11855 * StatusBar.cs: The control handles resizing the buffers now.
11857 2004-10-04 21:18 jackson
11859 * Control.cs: When resizing the buffers should be invalidated. This
11860 should be handled in Control not in derived classes.
11862 2004-10-04 14:45 jackson
11866 2004-10-04 02:14 pbartok
11868 * LeftRightAlignment.cs:
11871 2004-10-04 01:09 jordi
11873 * ThemeWin32Classic.cs: fixes right button position causing right
11874 button not showing on horizontal scrollbars
11876 2004-10-02 13:12 pbartok
11879 - Simplified the Invalidate method by using an X call instead of
11880 generating the expose ourselves
11881 - Added an expose when the window background is changed
11882 - Implemented ClientToScreen method
11884 2004-10-02 13:08 pbartok
11887 - Added Win32EnableWindow method (test for implementing modal
11889 - Added ClientToScreen method and imports
11891 2004-10-02 13:07 pbartok
11893 * XplatUI.cs, XplatUIDriver.cs:
11894 - Added ClientToScreen coordinate translation method
11896 2004-10-02 13:06 pbartok
11898 * KeyPressEventArgs.cs:
11899 - Fixed access level for constructor
11901 2004-10-02 13:06 pbartok
11904 - Changed access level for the window_collection hash table
11906 2004-10-02 13:05 pbartok
11909 - Added KeyPreview property
11910 - Added Menu property (still incomplete, pending Jordi's menu work)
11911 - Implemented ProcessCmdKey
11912 - Implemented ProcessDialogKey
11913 - Implemented ProcessKeyPreview
11915 2004-10-02 13:02 pbartok
11918 - Added private method to get the Control object from the window
11920 - Implemented ContextMenu property
11921 - Implemented PointToScreen
11922 - Implemented PreProcessMessage
11923 - Implemented IsInputChar
11924 - Implemented IsInputKey
11925 - Implemented ProcessCmdKey
11926 - Completed ProcessKeyEventArgs
11927 - Fixed message loop to call the proper chain of functions on key
11929 - Implemented ProcessDialogChar
11930 - Implemented ProcessDialogKey
11931 - Implemented ProcessKeyMessage
11932 - Implemented ProcessKeyPreview
11933 - Added RaiseDragEvent stub (MS internal method)
11934 - Added RaiseKeyEvent stub (MS internal method)
11935 - Added RaiseMouseEvent stub (MS Internal method)
11936 - Added RaisePaintEvent stub (MS Internal method)
11937 - Added ResetMouseEventArgs stub (MS Internal method)
11938 - Implemented RtlTranslateAlignment
11939 - Implemented RtlTranslateContent
11940 - Implemented RtlTranslateHorizontal
11941 - Implemented RtlTranslateLeftRight
11942 - Added generation of KeyPress event
11944 2004-10-02 05:57 ravindra
11946 * ListViewItem.cs: Added attributes.
11948 2004-10-02 05:32 ravindra
11950 * ListView.cs: Added attributes.
11952 2004-10-01 11:53 jackson
11954 * Form.cs: Implement the Close method so work on MessageBox can
11957 2004-09-30 14:06 pbartok
11962 2004-09-30 11:34 jackson
11964 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11966 2004-09-30 07:26 ravindra
11968 * ListViewItemConverter.cs: Converter for ListViewItem.
11970 2004-09-30 07:26 ravindra
11972 * SortOrder.cs: Enum for ListView control.
11974 2004-09-30 07:25 ravindra
11976 * ColumnHeader.cs: Supporting class for ListView control.
11978 2004-09-30 07:24 ravindra
11980 * ListView.cs, ListViewItem.cs: Initial implementation.
11982 2004-09-30 07:20 ravindra
11984 * ItemActivation.cs: Enum for ListView Control.
11986 2004-09-29 20:29 pbartok
11989 - Added lookup of pixel value for background color; tries to get a
11990 color 'close' to the requested color, it avoids having to create a
11991 colormap. Depending on the display this could mean the used color
11992 is slightly off the desired color. Might have to change it to a more
11993 resource intensive colormap approach, but it will work as a
11994 workaround to avoid red screens.
11996 2004-09-29 14:27 jackson
11998 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12000 2004-09-28 12:44 pbartok
12002 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12003 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12004 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12005 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12006 TrackBar.cs, VScrollBar.cs:
12007 - Streamlined Theme interfaces:
12008 * Each DrawXXX method for a control now is passed the object for
12009 the control to be drawn in order to allow accessing any state the
12010 theme might require
12012 * ControlPaint methods for the theme now have a CP prefix to avoid
12013 name clashes with the Draw methods for controls
12015 * Every control now retrieves it's DefaultSize from the current
12018 2004-09-28 12:17 jackson
12020 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12023 2004-09-24 14:57 jackson
12025 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12026 Gives us a nice little performance boost.
12028 2004-09-24 12:02 jackson
12030 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12031 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12032 Control and supporting classes. Initial checkin
12034 2004-09-23 13:08 jackson
12036 * Form.cs: Temp build fixage
12038 2004-09-23 01:39 ravindra
12040 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12041 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12042 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12043 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12044 EventHandlers needed by ListView Control.
12046 2004-09-22 14:12 pbartok
12048 * ScrollableControl.cs:
12049 - Implemented DockPadding property
12050 - Implemented AutoScroll property
12051 - Implemented AutoScrollMargin property
12052 - Implemented AutoScrollMinSize property
12053 - Implemented AutoScrollPosition property
12054 - Implemented DisplayRectangle property (still incomplete)
12055 - Implemented CreateParams property
12056 - Implemented HScroll property
12057 - Implemented VScroll property
12058 - Implemented OnVisibleChanged property
12060 2004-09-22 14:09 pbartok
12063 - Added Form.ControllCollection class
12064 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12065 RemoveOwnedForm (still incomplete, missing on-top and common
12066 minimize/maximize behaviour)
12067 - Added StartPosition property (still incomplete, does not use when
12069 - Added ShowDialog() methods (still incomplete, missing forcing the
12072 2004-09-22 14:05 pbartok
12075 - Added message loop for modal dialogs
12077 2004-09-22 14:02 pbartok
12080 - Fixed wrong types for events
12082 2004-09-22 14:00 pbartok
12084 * Shortcut.cs, FormWindowState.cs:
12085 - Fixed wrong values
12087 2004-09-22 12:01 jackson
12089 * Control.cs: Text is never null
12091 2004-09-20 22:14 pbartok
12094 - Fixed accessibility level for Idle handler
12096 2004-09-20 18:54 jackson
12098 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12099 XplatUIX11.cs: New message loop that uses poll so we don't get a
12102 2004-09-17 10:43 pbartok
12105 - Fixed behaviour of arrow buttons. Now properly behaves like
12106 Buttons (and like Microsoft's scrollbar arrow buttons)
12108 2004-09-17 10:14 pbartok
12111 - Added missing release of keyboard/mouse capture
12113 2004-09-17 06:18 jordi
12115 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12116 Theme.cs: Very early menu support
12118 2004-09-16 17:45 pbartok
12121 - Fixed sending a window to the front
12122 - Added overload for SetWindowPos to avoid casting
12124 2004-09-16 17:44 pbartok
12127 - Added SendToBack and BringToFront methods
12129 2004-09-16 07:00 ravindra
12131 * Copyright: Added Novell URL.
12133 2004-09-16 07:00 ravindra
12135 * ToolBar.cs: Invalidate should be done before redrawing.
12137 2004-09-15 21:19 ravindra
12139 * ColumnHeaderStyle.cs: Enum for ListView Control.
12141 2004-09-15 21:18 ravindra
12143 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12146 2004-09-13 18:26 jackson
12148 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12151 2004-09-13 18:13 jackson
12153 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12154 a second thread and post messages into the main threads message
12155 queue. This makes timing much more consistent. Both win2K and XP
12156 have a minimum timer value of 15 milliseconds, so we now do this
12159 2004-09-13 15:18 pbartok
12161 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12163 - Added Z-Ordering methods
12165 2004-09-13 10:56 pbartok
12168 - Fixed #region names
12169 - Moved properties and methods into their proper #regions
12171 2004-09-13 10:51 pbartok
12174 - Added Accept and CancelButton properties
12175 - Added ProcessDialogKey() method
12177 2004-09-13 08:18 pbartok
12179 * IWindowTarget.cs:
12182 2004-09-10 21:50 pbartok
12185 - Added DoDragDrop() [incomplete]
12186 - Properly implemented 'Visible' handling
12187 - Added SetVisibleCore()
12188 - Implemented FindChildAtPoint()
12189 - Implemented GetContainerControl()
12190 - Implemented Hide()
12192 2004-09-10 19:28 pbartok
12195 - Moved methods into their appropriate #regions
12196 - Reordered methods within regions alphabetically
12198 2004-09-10 18:57 pbartok
12200 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12201 - Added method to retrieve text from window
12203 2004-09-10 18:56 pbartok
12206 - Moved some internal functions into the internal region
12207 - Implemented FontHeight
12208 - Implemented RenderRightToLeft
12209 - Implemented ResizeRedraw
12210 - Implemented ShowFocusCues
12211 - Implemented ShowKeyboardCues
12212 - Implemented FromChildHandle
12213 - Implemented FromHandle
12214 - Implemented IsMnemonic
12215 - Implemented ReflectMessage
12216 - All public and protected Static Methods are now complete
12218 2004-09-10 16:54 pbartok
12221 - Implemented remaining missing public instance properties
12222 - Alphabetized some out of order properties
12224 2004-09-10 05:51 ravindra
12226 * PictureBox.cs: Added a check for null image.
12228 2004-09-10 00:59 jordi
12230 * GroupBox.cs: remove cvs tag
12232 2004-09-09 05:25 ravindra
12234 * ToolBar.cs: Make redraw accessible from ToolBarButton.
12236 2004-09-09 05:23 ravindra
12238 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12241 2004-09-09 02:28 pbartok
12243 * ThemeWin32Classic.cs:
12244 - Improve disabled string look
12246 2004-09-09 01:15 jordi
12248 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12251 2004-09-08 23:56 ravindra
12253 * ItemBoundsPortion.cs: It's enum, not a class!
12255 2004-09-08 23:47 ravindra
12257 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12260 2004-09-08 21:13 ravindra
12262 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12265 2004-09-08 21:03 ravindra
12267 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12270 2004-09-08 21:01 ravindra
12272 * ScrollableControl.cs: Removed unreachable code.
12274 2004-09-08 06:45 jordi
12276 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12278 2004-09-08 01:00 jackson
12280 * XplatUIX11.cs: Only run the timers when updating the message
12281 queue. This effectively gives X messages a higher priority then
12282 timer messages. Timers still need love though
12284 2004-09-07 14:01 jackson
12286 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12287 this for us and the handle is no longer valid.
12289 2004-09-07 13:59 jackson
12291 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12292 loop that manages to not crash. TODO: Add poll and cleanup timers
12294 2004-09-07 11:12 jordi
12296 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12298 2004-09-07 03:40 jordi
12300 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12301 fixes, methods, multiple links
12303 2004-09-06 06:55 jordi
12305 * Control.cs: Caches ClientRectangle rectangle value
12307 2004-09-05 02:03 jordi
12309 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12312 2004-09-04 11:10 jordi
12314 * Label.cs: Refresh when font changed
12316 2004-09-02 16:24 pbartok
12319 - Added sanity check to creation of double buffer bitmap
12321 2004-09-02 16:24 pbartok
12324 - Fixed selection of text color
12325 - Fixed handling of resize event; now properly recreates double
12327 - Added missing assignment of TextAlignment
12328 - Added proper default for TextAlignment
12330 2004-09-02 14:26 pbartok
12333 - Added missing RadioButton.RadioButtonAccessibleObject class
12335 2004-09-02 14:26 pbartok
12338 - Added missing Control.ControlAccessibleObject class
12339 - Started to implement Select()ion mechanisms, still very incomplete
12341 2004-09-02 14:25 pbartok
12343 * AccessibleObject.cs:
12344 - Added missing methods
12346 2004-09-02 14:23 pbartok
12348 * AccessibleNavigation.cs, AccessibleSelection.cs:
12351 2004-09-02 10:32 jordi
12353 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12354 pool for pens, brushes, and hatchbruses
12356 2004-09-01 15:30 jackson
12358 * StatusBar.cs: Fix typo
12360 2004-09-01 14:44 pbartok
12365 2004-09-01 14:39 pbartok
12367 * Button.cs, RadioButton.cs:
12368 - Functional initial check-in
12370 2004-09-01 14:01 pbartok
12373 - Added missing default
12374 - Added missing region mark
12376 2004-09-01 09:10 jordi
12378 * Label.cs: fixes method signatures, new methods, events, fixes
12381 2004-09-01 07:19 jordi
12383 * Control.cs: Init string variables with an empty object
12385 2004-09-01 04:20 jordi
12387 * Control.cs: fires OnFontChanged event
12389 2004-08-31 20:07 pbartok
12392 - Enabled display of strings
12394 2004-08-31 20:05 pbartok
12397 - Added (partial) implementation of DialogResult; rest needs to be
12398 implemented when the modal loop code is done
12400 2004-08-31 19:55 pbartok
12403 - Fixed to match the removal of the needs_redraw concept
12405 2004-08-31 19:55 pbartok
12408 - Removed the rather odd split between 'needs redraw' and redrawing
12409 - Now handles the events that require regeneration (ambient
12410 properties and size)
12412 2004-08-31 19:41 pbartok
12415 - Added firing of BackColorChanged event
12416 - Added TopLevelControl property
12417 - Fixed handling of WM_ERASEBKGRND message
12419 2004-08-31 12:49 pbartok
12425 2004-08-31 12:48 pbartok
12428 - Finished (famous last words)
12430 2004-08-31 04:35 jordi
12432 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12433 scrolling bugs, adds new methods
12435 2004-08-30 14:42 pbartok
12438 - Implemented CheckBox drawing code
12440 2004-08-30 14:42 pbartok
12443 - Made Redraw() and CheckRedraw() virtual
12444 - Improved mouse up/down/move logic to properly track buttons
12446 2004-08-30 09:44 pbartok
12449 - Updated to fix broken build. Not complete yet.
12451 2004-08-30 09:28 pbartok
12456 2004-08-30 09:17 pbartok
12461 2004-08-27 16:12 ravindra
12463 * ToolBarButton.cs: Added TypeConverter attribute.
12465 2004-08-27 16:07 ravindra
12467 * ImageIndexConverter.cs: Implemented.
12469 2004-08-27 14:17 pbartok
12472 - Removed unneeded stack vars
12473 - First attempt to fix sizing issues when layout is suspended
12475 2004-08-25 15:35 jordi
12477 * ScrollBar.cs: more fixes to scrollbar
12479 2004-08-25 14:04 ravindra
12481 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12482 Added the missing divider code and grip for ToolBar Control.
12484 2004-08-25 13:20 pbartok
12487 - Control now properly passes the ambient background color to child
12490 2004-08-25 13:20 jordi
12492 * ScrollBar.cs: small bug fix regarding bar position
12494 2004-08-25 12:33 pbartok
12497 - Now only calls SetTimer or KillTimer if the enabled state has
12500 2004-08-25 12:33 pbartok
12503 - Fixed timer handling, now seems to work
12504 - Improved error message for window creation
12506 2004-08-25 12:32 pbartok
12509 - Fixed generation of MouseUp message
12511 2004-08-25 12:29 jordi
12513 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12514 and fixes for progressbar
12516 2004-08-24 18:43 ravindra
12518 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12519 in ToolBar control.
12521 2004-08-24 17:15 pbartok
12525 - Added missing events
12528 2004-08-24 17:14 pbartok
12530 * StatusBar.cs, PictureBox.cs:
12531 - Now uses Control's CreateParams
12533 2004-08-24 16:36 pbartok
12536 - Fixed background color handling
12537 - Fixed sending of enter/leave events on a grab
12539 2004-08-24 16:35 pbartok
12542 - Refined definitions for CrossingEvent
12544 2004-08-24 12:37 jordi
12546 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12547 formmating, methods signature, and adds missing events
12549 2004-08-24 12:24 jordi
12551 * Control.cs: fire OnEnabledChanged event
12553 2004-08-24 11:17 pbartok
12556 - Implemented SetTimer() and KillTimer()
12558 2004-08-24 11:16 pbartok
12561 - Now uses Remove instead of Add to kill the timer
12563 2004-08-24 10:16 jackson
12565 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12566 picture boxes in the theme now. Draw picture box borders and obey
12569 2004-08-24 05:49 jackson
12571 * Timer.cs: Remove top secret debugging code
12573 2004-08-24 05:34 jackson
12575 * PictureBox.cs: Temp hack to make picture boxes draw their full
12578 2004-08-24 05:29 jackson
12580 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12581 XplatUIX11.cs: Move timers to the driver level. On X they are
12582 queued by the driver and checked on idle.
12584 2004-08-24 01:07 jackson
12586 * XplatUIX11.cs: Use a queue for async messages instead of passing
12587 them as ClientMessages since that was totally broken. Also simply
12588 check for events and return an idle message if none are found. This
12589 gives us an idle handler, and prevents deadlocking when no messages
12592 2004-08-23 18:19 ravindra
12594 * XplatUIWin32.cs: Removed the unwanted destructor.
12596 2004-08-23 17:27 pbartok
12599 - Finishing touches. Works now, just needs some optimizations.
12601 2004-08-23 16:53 jordi
12603 * ScrollBar.cs: small fix
12605 2004-08-23 16:45 pbartok
12608 - Removed debug output
12611 2004-08-23 16:43 jordi
12613 * ScrollBar.cs: [no log message]
12615 2004-08-23 16:10 pbartok
12618 - Fixed handling of WM_CLOSE message
12619 - Removed debug output
12621 2004-08-23 16:09 pbartok
12624 - Added handling of Idle event
12625 - Added handling of form closing
12626 - Fixed reporting of MessageLoop property
12627 - Removed some unneeded code, should provide a bit of a speedup
12629 2004-08-23 15:22 pbartok
12632 - Added InitLayout() method
12633 - Added code to properly perform layout when Anchor or Dock property
12635 - Changed 'interpretation' of ResumeLayout. MS seems to have a
12636 LAMESPEC, tried to do it in a way that makes sense
12638 2004-08-23 14:10 jordi
12640 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12641 properties and methods
12643 2004-08-23 13:55 pbartok
12646 - Properly fixed Jordi's last fix
12647 - Now uses Cursor's Position property instead of calling XplatUI
12650 2004-08-23 13:44 jordi
12652 * PaintEventHandler.cs: Adding missing attribute
12654 2004-08-23 13:39 pbartok
12657 - Implemented Position property
12659 2004-08-23 13:39 pbartok
12661 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12662 - Added method to move mouse cursor
12664 2004-08-23 13:39 pbartok
12667 - Fixed setting of background color
12668 - Added method to move mouse cursor
12670 2004-08-23 13:16 jordi
12672 * Control.cs: avoids null exception
12674 2004-08-22 17:46 jackson
12676 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12679 2004-08-22 17:40 jackson
12681 * XplatUIX11.cs: Add some missing locks
12683 2004-08-22 15:10 pbartok
12685 * Control.cs, Form.cs:
12686 - Removed OverlappedWindow style from Control, instead it's default
12688 - Made form windows OverlappedWindow by default
12690 2004-08-22 13:34 jackson
12692 * ScrollBar.cs: Update the position through the Value property so
12693 the OnValueChanged event is raised.
12695 2004-08-22 12:04 pbartok
12698 - Added Cursor.cs and UserControl.cs
12700 2004-08-22 12:03 pbartok
12703 - Started implementation, not usable yet
12705 2004-08-22 12:00 pbartok
12708 - Implemented UserControl (complete)
12710 2004-08-21 19:20 ravindra
12712 * ToolBar.cs: Correcting the formatting mess of VS.NET.
12714 2004-08-21 18:49 ravindra
12716 * ToolBar.cs: Probably this completes the missing attributes in
12719 2004-08-21 18:03 ravindra
12721 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12722 Fixed toolbar control signatures.
12724 2004-08-21 16:32 pbartok
12729 2004-08-21 16:30 pbartok
12734 2004-08-21 16:19 pbartok
12736 * Control.cs, Label.cs:
12739 2004-08-21 15:57 pbartok
12742 - Added loads of debug output for development
12743 - Fixed typo in method name
12745 2004-08-21 15:52 pbartok
12747 * ToolBarButtonClickEventArgs.cs:
12748 - Added missing base class
12750 2004-08-21 14:53 pbartok
12753 - Updated to match new GrabWindow signature
12755 2004-08-21 14:51 pbartok
12757 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12758 - Added method to get default display size
12760 2004-08-21 14:23 pbartok
12762 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12763 - Added method to query current grab state
12764 - Added argument to allow confining a grab to a window
12766 2004-08-21 14:22 pbartok
12769 - Added [Flags] attribute so that modifiers can be used in bitwise
12772 2004-08-21 14:21 pbartok
12774 * TrackBar.cs, ScrollBar.cs:
12775 - Replaced direct XplatUI calls with their Control counterpart
12777 2004-08-21 13:32 pbartok
12780 - Implemented Created property
12782 2004-08-21 13:28 pbartok
12785 - Implemented ContainsFocus
12787 2004-08-21 13:26 pbartok
12790 - Implemented CausesValidation
12792 2004-08-21 13:21 pbartok
12795 - Implemented CanFocus
12796 - Implemented CanSelect
12797 - Implemented Capture
12799 2004-08-21 12:35 pbartok
12802 - Fixed bug with Async message handling
12803 - Implemented getting the ModifierKeys
12805 2004-08-21 12:32 jackson
12807 * AsyncMethodResult.cs: Make sure we have the mutex before we
12808 release it. Fixes BeginInvoke on windows
12810 2004-08-21 11:31 pbartok
12812 * XplatUIWin32.cs, XplatUIX11.cs:
12813 - Drivers now return proper mouse state
12815 2004-08-21 10:54 jackson
12817 * Control.cs: Implement EndInvoke
12819 2004-08-21 10:48 jackson
12821 * Timer.cs: Remove unneeded finalizer
12823 2004-08-20 19:52 ravindra
12825 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12826 in mouse event handling in the ToolBar control.
12828 2004-08-20 19:50 ravindra
12830 * ImageList.cs: Changed draw method to use the arguments passed in
12833 2004-08-20 18:58 pbartok
12835 * XplatUIStructs.cs:
12836 - Added private message for async communication
12838 2004-08-20 17:38 ravindra
12840 * Control.cs: Made RightToLeft property virtual and removed a
12843 2004-08-20 14:39 jordi
12845 * ThemeGtk.cs: use style_attach
12847 2004-08-20 14:39 pbartok
12850 - Added jackson's Async code from X11 to Win32
12852 2004-08-20 14:09 pbartok
12855 - Added all new files
12857 2004-08-20 14:09 pbartok
12860 - Added call to set window background color
12862 2004-08-20 14:03 pbartok
12864 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12865 - Added method for setting the window background
12867 2004-08-20 14:02 pbartok
12870 - Added method for setting the background color
12871 - Added handling for erasing the window background
12873 2004-08-20 13:45 jordi
12875 * TrackBar.cs: fixes timer, new properties and methods
12877 2004-08-20 13:34 jackson
12879 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12882 2004-08-20 13:22 jackson
12884 * Timer.cs: Timer Tick events are now handed through Controls Async
12885 mechanism so the callbacks are executed in the same thread as X
12887 2004-08-20 13:19 jackson
12889 * XplatUIDriver.cs: Expose functionality to send async messages
12892 2004-08-20 13:18 jackson
12894 * Control.cs: Implement Begininvoke
12896 2004-08-20 13:14 jackson
12898 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12899 messages through the driver
12901 2004-08-20 13:12 jackson
12903 * XplatUIX11.cs: Lock before all X operations. Also added Async
12904 method functionality through XSendEvent
12906 2004-08-20 13:11 jackson
12908 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12909 This will screw up on 64 bit systems)
12911 2004-08-20 13:10 jackson
12913 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12914 Async messages through X/Win32
12916 2004-08-19 19:39 pbartok
12919 - Updated code to match new HandleData.DeviceContext type
12921 2004-08-19 19:38 pbartok
12924 - Made DeviceContext a generic object to allow usage from various
12926 - Added support for queueing Windows messages
12928 2004-08-19 19:37 pbartok
12931 - Added generation of MouseEnter, MouseLeave and MouseHover events
12932 - Added cleanup on EndPaint
12934 2004-08-19 19:17 pbartok
12937 - Added handling of WM_MOUSEHOVER
12938 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12941 2004-08-19 18:55 jordi
12943 * ThemeGtk.cs: fixes button order
12945 2004-08-19 18:12 jordi
12947 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12949 2004-08-19 17:09 pbartok
12952 - Added Right property
12953 - Added RightToLeft property
12955 2004-08-19 16:27 jordi
12957 * ThemeGtk.cs: experimental GTK theme support
12959 2004-08-19 16:26 jordi
12961 * ITheme.cs, Theme.cs: move themes from an interface to a class
12963 2004-08-19 16:25 jordi
12965 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12968 2004-08-19 16:04 pbartok
12971 - Added colormap basics
12972 - Added a way to re-initialize with a different display handle
12973 - Fixed setting of the window background color
12974 - Added various X11 imports related to colors and colormaps
12976 2004-08-19 15:51 pbartok
12979 - Removed packing hints (Paolo suggested this a while back)
12980 - fixed colormap type
12981 - Added default Atom types
12982 - Added Screen and color structs and enums
12984 2004-08-19 15:39 pbartok
12987 - Added missing Draw() method
12988 - Added missing RecreateHandle event
12990 2004-08-19 15:30 pbartok
12993 - Added handling of WM_CLOSE
12995 2004-08-18 13:16 jordi
12997 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13000 2004-08-18 09:56 jordi
13002 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13004 2004-08-17 15:31 ravindra
13006 * SWF.csproj: Updated project.
13008 2004-08-17 15:25 pbartok
13011 - Drawing improvement; don't call UpdateBounds if we are not visible
13012 (or have been minimized)
13014 2004-08-17 15:24 pbartok
13017 - Finished IsVisible
13018 - Added Win32GetWindowPlacement
13020 2004-08-17 15:08 jackson
13022 * Panel.cs: Initial checkin of the Panel
13024 2004-08-17 14:25 pbartok
13027 - Fixed broken handling of default window sizes
13029 2004-08-17 13:29 jackson
13031 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13032 has a large startup time.
13034 2004-08-17 10:25 jackson
13036 * HandleData.cs: union areas properly
13038 2004-08-17 10:12 jackson
13040 * HandleData.cs: union areas properly
13042 2004-08-16 20:00 ravindra
13044 * ToolBar.cs, ToolBarButton.cs: Added attributes.
13046 2004-08-16 18:48 ravindra
13048 * ToolBar.cs: Added attributes.
13050 2004-08-16 17:17 ravindra
13052 * SWF.csproj: Updated project.
13054 2004-08-16 17:16 jackson
13056 * XplatUIX11.cs: Check for more expose events before sending a
13057 WM_PAINT so they can all be grouped together. This makes dragging a
13058 window across another window redraw in a sane way.
13060 2004-08-16 15:47 pbartok
13063 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13064 support OnMouseEnter/Leave()
13065 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13068 2004-08-16 15:46 pbartok
13070 * XplatUIStructs.cs, XplatUIX11.cs:
13071 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13072 OnMouseEnter/Leave()
13074 2004-08-16 15:34 jackson
13076 * XplatUIX11.cs: Group multiple expose events in HandleData, make
13077 sure messages get the message field set to WM_NULL if they are not
13080 2004-08-16 15:24 jackson
13082 * HandleData.cs: HandleData is used for storing message information
13085 2004-08-15 17:23 ravindra
13087 * ColorDepth.cs: Added attribute.
13089 2004-08-15 17:23 ravindra
13091 * SWF.csproj: Updated project for ToolBar Control.
13093 2004-08-15 17:20 ravindra
13095 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13096 control and also dos2unix format.
13098 2004-08-15 17:13 ravindra
13100 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13101 ToolBarButtonClickEventArgs.cs,
13102 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13103 ToolBarTextAlign.cs: First Implementation of ToolBar control.
13105 2004-08-15 15:31 pbartok
13108 - First (mostly) working version
13110 2004-08-13 16:15 pbartok
13113 - Fixed Anchor default
13115 2004-08-13 15:43 pbartok
13118 - Changed GetCursorPos signature
13120 2004-08-13 15:42 pbartok
13122 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13123 - Changed signature for GetCursorPos
13125 2004-08-13 15:25 pbartok
13129 - Fixed resizing/exposure handling
13131 2004-08-13 15:22 jordi
13133 * ThemeWin32Classic.cs: removes redundant code and fixes issues
13136 2004-08-13 14:55 jordi
13138 * TrackBar.cs: change from wndproc to events
13140 2004-08-13 13:00 jordi
13142 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13143 XplatUIX11.cs: implements PointToClient (ScreenToClient)
13145 2004-08-13 12:53 pbartok
13148 - Changed GetWindowPos to also provide client area size
13149 - Fixed broken prototypes for several win32 functions
13151 2004-08-13 12:53 pbartok
13153 * XplatUI.cs, XplatUIDriver.cs:
13154 - Changed GetWindowPos to also provide client area size
13156 2004-08-13 12:52 pbartok
13159 - Added generation of WM_POSCHANGED
13160 - Changed GetWindowPos to also provide client area size
13162 2004-08-13 12:52 pbartok
13165 - Added Dispose() and destructor
13166 - Fixed resizing and bounds calculation
13168 - Added memory savings for invisible windows
13170 2004-08-13 12:46 jordi
13172 * TrackBar.cs: adds timer and grap window
13174 2004-08-13 10:25 jackson
13176 * Timer.cs: SWF Timer
13178 2004-08-12 16:59 pbartok
13180 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13181 - Implemented method to get current mouse position
13183 2004-08-12 14:29 jordi
13185 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13186 enhancement, fix mouse problems, highli thumb, etc
13188 2004-08-12 13:31 pbartok
13191 - Fixed Anchoring bugs
13193 2004-08-12 13:01 jackson
13195 * StatusBar.cs: Don't forget things
13197 2004-08-12 12:54 jackson
13199 * ThemeWin32Classic.cs: Handle owner draw status bars
13201 2004-08-12 12:54 jackson
13203 * StatusBar.cs: Implement missing properties, events, and methods.
13204 Handle mouse clicking
13206 2004-08-12 10:19 jackson
13208 * StatusBarPanelClickEventArgs.cs,
13209 StatusBarPanelClickEventHandler.cs: Classes for handling status
13210 bar panel click events
13212 2004-08-12 10:10 jackson
13214 * Control.cs: Add missing properties
13216 2004-08-12 09:46 pbartok
13218 * BindingsManagerBase.cs:
13219 - Name changed to BindingManagerBase.cs
13221 2004-08-12 09:25 jordi
13223 * ScrollableControl.cs: calls ctrlbase instead of exeception
13225 2004-08-11 16:28 pbartok
13227 * InputLanguageChangingEventArgs.cs:
13228 - Never check in before compiling. Fixes the last check-in
13230 2004-08-11 16:26 pbartok
13232 * InputLanguageChangingEventArgs.cs:
13233 - More signature fixes
13235 2004-08-11 16:20 pbartok
13237 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13238 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13239 ImageListStreamer.cs, InputLanguage.cs,
13240 InputLanguageChangedEventArgs.cs,
13241 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13242 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13243 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13244 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13247 2004-08-11 16:16 pbartok
13251 - Added .Net 1.1 method
13253 2004-08-11 15:25 pbartok
13256 - Fixed BindingManagerBase.cs filename
13258 2004-08-11 15:22 pbartok
13260 * BindingManagerBase.cs:
13261 - Was checked in with wrong filename
13263 2004-08-11 14:50 pbartok
13268 2004-08-11 13:41 jordi
13270 * XplatUIWin32.cs: Fixes ClientRect
13272 2004-08-11 13:19 pbartok
13274 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13276 - We had SetWindowPos and MoveWindow to set window positions and
13277 size, removed MoveWindow. We have GetWindowPos, so it made sense to
13278 keep SetWindowPos as matching counterpart
13279 - Added some X11 sanity checking
13281 2004-08-11 12:59 pbartok
13284 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13285 (It seems that SetBounds is just a front for SetBoundsCore and
13286 SetBoundsCore updates the underlying window system and
13287 UpdateBounds is responsible for updating the variables associated
13288 with the Control and sending the events)
13289 - Major cleanup of Size handling; we now have two sizes, client_size
13290 and bounds. Bounds defines the window with decorations, client_size
13293 2004-08-11 12:55 pbartok
13295 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13296 - Added method to calculate difference between decorated window and
13299 2004-08-11 12:54 pbartok
13302 - Forcing redraw on resize
13304 2004-08-11 11:43 pbartok
13307 - Removed disposing of the actual images when the list is disposed
13309 2004-08-11 09:13 pbartok
13312 - Now properly reparents windows
13314 2004-08-11 08:37 pbartok
13319 2004-08-11 07:47 pbartok
13322 - Rewrote the collection stuff. Might not be as fast now, not
13323 keeping the number of children around and accessible directly, but
13324 it's more straightforward
13326 2004-08-11 07:44 pbartok
13328 * AccessibleObject.cs:
13329 - Fixed to match ControlCollection rewrite
13331 2004-08-11 07:43 pbartok
13334 - Added missing creation of the collection list
13336 2004-08-10 20:08 jackson
13338 * StatusBar.cs: Get the paint message from WndProc
13340 2004-08-10 19:31 jackson
13342 * ThemeWin32Classic.cs: Create Brushes as little as possible
13344 2004-08-10 19:20 jackson
13346 * UICues.cs: Add Flags attribute
13348 2004-08-10 19:19 jackson
13350 * StatusBarPanel.cs: Signature cleanup
13352 2004-08-10 19:10 jackson
13354 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13355 Initial implementation of status bar item drawing
13357 2004-08-10 17:27 jordi
13359 * TrackBar.cs: add missing methods, properties, and restructure to
13362 2004-08-10 16:24 jackson
13364 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13365 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13368 2004-08-10 13:21 jordi
13370 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13371 enhancements and standarize on win colors defaults
13373 2004-08-10 12:52 jackson
13375 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13376 ThemeWin32Classic.cs: Implement DrawItem functionality
13378 2004-08-10 12:47 jordi
13380 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13382 2004-08-10 12:32 jordi
13384 * Control.cs: throw ontextchange event
13386 2004-08-10 11:43 pbartok
13389 - Added more to the still unfinished Dock/Anchor layout code
13391 2004-08-10 11:39 pbartok
13393 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13394 - Added GetWindowPos method
13396 2004-08-10 11:36 pbartok
13399 - Implemented several methods
13401 2004-08-10 09:47 jackson
13403 * TrackBar.cs: Allow control to handle buffering
13405 2004-08-10 09:41 jackson
13407 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13409 2004-08-10 09:24 jackson
13411 * Label.cs, LinkLabel.cs: Let Control handle buffering.
13413 2004-08-10 09:09 jackson
13415 * StatusBar.cs: Let Control handle all the buffering.
13417 2004-08-10 09:08 jackson
13419 * Control.cs: Control will now handle the buffering code, so each
13420 control does not have to implement this.
13422 2004-08-10 08:34 jackson
13424 * XplatUIDriver.cs: Use default colors from the theme
13426 2004-08-09 17:12 pbartok
13429 - Fixed several bugs Ravindra pointed out
13431 2004-08-09 16:11 pbartok
13434 - Added incomplete dock layout code
13435 - Added support for mouse wheel
13437 2004-08-09 16:09 pbartok
13440 - Added handling for middle and right mousebutton
13441 - Added handling for mouse wheel
13442 - Added handling for key state and mouse state and position
13443 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13446 2004-08-09 15:40 jackson
13448 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13449 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13452 2004-08-09 15:37 jackson
13454 * StatusBar.cs: Initial implementation of StatusBar
13456 2004-08-09 15:36 jackson
13458 * ITheme.cs: Add support for drawing status bar and getting status
13461 2004-08-09 15:35 pbartok
13466 2004-08-09 15:34 jackson
13468 * ThemeWin32Classic.cs: Add support for drawing status bar and get
13469 status bar item sizes
13471 2004-08-09 15:21 jackson
13473 * ThemeWin32Classic.cs: Use known colors for default control
13476 2004-08-09 15:12 jackson
13478 * ThemeWin32Classic.cs: Make the default font static, it is static
13479 in control so this doesn't change functionality and creating fonts
13482 2004-08-09 14:56 pbartok
13485 - Added GrabMode enum
13487 2004-08-09 14:55 pbartok
13489 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13490 - Removed Run method, was only required for initial development
13492 2004-08-09 14:51 pbartok
13494 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13495 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13498 2004-08-09 13:48 pbartok
13501 - Fixed default sizing for child windows
13503 2004-08-09 12:56 pbartok
13506 - Added generation of WM_DESTROY message
13507 - Added handling of window manager induced shutdown
13509 2004-08-09 11:31 jackson
13511 * ThemeWin32Classic.cs: New names for control properties
13513 2004-08-09 11:25 jackson
13515 * Control.cs: Use new color names
13517 2004-08-09 11:02 jackson
13519 * XplatUI.cs: Get default window properties from the theme
13521 2004-08-09 11:01 jackson
13523 * ITheme.cs: The theme engine now controls default window
13526 2004-08-09 11:00 jackson
13528 * ThemeWin32Classic.cs: Add default window color properties
13530 2004-08-09 10:17 jackson
13532 * ThemeWin32Classic.cs: Use correct default back color
13534 2004-08-09 10:05 jackson
13536 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13539 2004-08-09 09:56 jackson
13541 * XplatUI.cs: Remove defaults, these are handled by the theme now.
13543 2004-08-09 09:54 jackson
13545 * Control.cs: Get default properties from the theme.
13547 2004-08-09 09:53 jackson
13549 * ITheme.cs: Themes now handle default control properties
13551 2004-08-09 09:53 jackson
13553 * ThemeWin32Classic.cs: Themes now handle default control
13554 properties so coloring will be consistent
13556 2004-08-08 16:54 jordi
13558 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13560 2004-08-08 15:08 jordi
13562 * XplatUIX11.cs: fixes keyboard crash
13564 2004-08-08 13:47 jordi
13566 * Label.cs: add cvs header info
13568 2004-08-08 12:09 jackson
13570 * ThemeWin32Classic.cs: Add pen_buttonface
13572 2004-08-08 11:52 jordi
13574 * Label.cs, LinkLabel.cs: [no log message]
13576 2004-08-08 11:34 jordi
13578 * ThemeWin32Classic.cs: Use Windows Standard Colours
13580 2004-08-07 17:32 jordi
13582 * TrackBar.cs: throw exceptions of invalid enums values
13584 2004-08-07 17:31 jordi
13586 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13589 2004-08-07 16:56 jackson
13591 * HorizontalAlignment.cs: Initial checkin
13593 2004-08-07 13:16 jordi
13595 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13598 2004-08-07 13:05 jordi
13600 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13601 GetSysColor defines
13603 2004-08-06 18:01 pbartok
13605 * ThemeWin32Classic.cs:
13606 - Fixed some rounding issues with float/int
13608 2004-08-06 18:00 jackson
13610 * DockStyle.cs, AnchorStyles.cs:
13612 Add flags and serializable attributes.
13614 2004-08-06 17:46 pbartok
13617 - Implemented GetParent
13619 2004-08-06 17:18 pbartok
13622 - Fixed some rounding issues with float/int
13624 2004-08-06 17:17 pbartok
13626 * X11Structs.cs, XplatUIX11.cs:
13627 - Fixed Refresh and Invalidate
13629 2004-08-06 15:30 pbartok
13631 * Control.cs, X11Structs.cs, XplatUIX11.cs:
13632 - Fixed recursive loop when resizing
13633 - Improved/fixed redrawing on expose messages
13635 2004-08-06 09:53 jordi
13637 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13638 keyboard navigation
13640 2004-08-06 08:02 pbartok
13642 * X11Structs.cs, XplatUIX11.cs:
13643 - Fixed reparenting
13644 - Fixed window border creation
13646 2004-08-05 15:38 pbartok
13649 - Attempted fix for reparenting problems
13651 2004-08-04 15:14 pbartok
13654 - Fixed Invalidation bug (calculated wrong client area)
13655 - Added ClientSize setter
13657 2004-08-04 15:13 pbartok
13660 - Added AutoScale properties
13662 2004-08-04 15:13 pbartok
13665 - Added latest files
13667 2004-08-04 14:11 pbartok
13669 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13671 - Added Invalidate handling
13673 2004-08-03 17:09 jordi
13675 * XplatUIDriver.cs: fixes spelling mistake
13677 2004-07-27 09:53 jordi
13679 * TrackBar.cs: fixes trackbar events, def classname, methods
13682 2004-07-27 09:29 jordi
13684 * ScrollBar.cs: fixes scrollbar events
13686 2004-07-27 04:38 jordi
13688 * Control.cs: changes to be able to run winforms samples
13690 2004-07-26 11:42 jordi
13692 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13693 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13695 2004-07-26 05:41 jordi
13697 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13698 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13701 2004-07-22 09:22 jordi
13703 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13704 check link overlapping, implement events, and fixes
13706 2004-07-21 10:28 jordi
13708 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13710 2004-07-21 10:19 jordi
13712 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13713 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13714 LinkLabelLinkClickedEventArgs.cs,
13715 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13716 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13719 2004-07-19 13:09 jordi
13721 * Control.cs, Label.cs: label control re-written: added missing
13722 functionlity, events, and properties
13724 2004-07-19 10:49 jordi
13726 * Control.cs: fixes SetBounds logic
13728 2004-07-19 01:29 jordi
13730 * Control.cs: Call RefreshWindow only if the window has created
13732 2004-07-15 14:05 pbartok
13734 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13735 - Implemented ImageList and ImageList.ImageCollection classes
13736 - Added ColorDepth enumeration
13737 - Updated SWF VS.Net project
13739 2004-07-15 11:06 jordi
13741 * XplatUIStructs.cs: added MsgButons enum
13743 2004-07-15 11:03 jordi
13745 * Control.cs: added basic mouse handeling events
13747 2004-07-15 03:38 jordi
13749 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13750 Vertical TrackBar control implementation
13752 2004-07-13 09:33 jordi
13754 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13756 2004-07-13 09:31 jordi
13758 * Control.cs, Form.cs: commit: new properties and fixes form size
13761 2004-07-09 14:13 miguel
13763 * ProgressBar.cs: Spelling
13765 2004-07-09 11:25 pbartok
13768 - Removed usage of Rectangle for drawing. Miguel pointed out it's
13771 2004-07-09 11:17 miguel
13773 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
13775 * ProgressBar.cs: Fixed spelling for `block'
13777 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13780 Avoid using the += on rect.X, that exposed a bug in the compiler.
13782 2004-07-08 23:21 pbartok
13784 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13785 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13786 BaseCollection.cs, Binding.cs, BindingContext.cs,
13787 BindingMemberInfo.cs, BindingsCollection.cs,
13788 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13789 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13790 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13791 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13792 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13793 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13794 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13795 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13796 FrameStyle.cs, GiveFeedbackEventArgs.cs,
13797 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13798 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13799 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13800 InputLanguageChangedEventArgs.cs,
13801 InputLanguageChangedEventHandler.cs,
13802 InputLanguageChangingEventArgs.cs,
13803 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13804 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13805 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13806 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13807 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13808 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13809 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13810 QueryAccessibilityHelpEventArgs.cs,
13811 QueryAccessibilityHelpEventHandler.cs,
13812 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13813 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13814 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13815 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13816 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13817 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13818 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13819 XplatUIX11.cs, lang.cs: