1 2006-07-11 Jackson Harper <jackson@ximian.com>
3 * Control.cs: When hiding a control only select the next control
4 if the current control was focused.
5 - Don't handle enter/leave when setting/killing focus, this is
6 done by the container control.
7 - Remove is_selected, it's not needed anymore.
8 - Add utility methods for selecting a child control, and for
9 firing the Enter/Leave events.
10 * ContainerControl.cs: When a control is activated fire the
12 - Don't wrap when processing the tab key, so that focus can be
13 moved outside of the container.
15 2006-07-11 Jackson Harper <jackson@ximian.com>
17 * ComboBox.cs: Remove some debug code that was blinding me.
18 * UpDownBase.cs: These controls actually aren't implicit, they are
21 2006-07-10 Chris Toshok <toshok@ximian.com>
23 * DataGridTableStyle.cs: just check if the property type is bool.
24 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25 Don't use CanRenderType.
27 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
28 if our text == NullText. Remove CanRenderType.
30 * DataGridBoolColumn.cs: nuke CanRenderType.
32 * DataGrid.cs: reenable some code to end the current edit inside
33 of set_CurrentCell. This fixes the other 1.1.16 regression.
34 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
35 Also, remove the visible_row_count arg from CalcRowHeaders, since
36 we don't need to worry about the actual height of the area.
38 2006-07-10 Chris Toshok <toshok@ximian.com>
40 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
43 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
44 the real sense of the IsInEditOrNavigateMode property (true =
45 navigate, false = edit). Also, update OnKeyPress to reflect this.
47 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
48 column style exists, we still need to set its property descriptor
49 to match up with our list manager.
51 2006-07-10 Chris Toshok <toshok@ximian.com>
53 * ThemeWin32Classic.cs: implement the new row/header painting
54 approach. The parent row painting will likely go away and
55 replaced with label controls, but the rest seems to work ok (and
58 * Theme.cs: change the way we draw datagrid rows. we don't draw
59 the row headers as a block now. Instead we draw them in the
60 normal draw-row loop. Add some calls for drawing parent rows and
63 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
64 a default table style. Set the defaults from ThemeEngine.Current,
65 not SystemColors. Fix lots of misc issues with property setters.
67 * DataGrid.cs: move loads of style information out of this class
68 as it's being duplicated with DataGridTableStyle. keep track of a
69 special DataGridTableStyle for the properties we used to mirror
70 here. Switch all the style properties to access this table style
71 instead of instance fields of this class. Also add a internal
72 class to represent parent rows (more needs to be stored here, like
73 the selection state from the parent table, as well as the
74 expansion state.) Also, for datasources with relations, do the
75 right thing for collapse/expand, and add support for the
76 navigation/parent row buttons.
78 Lastly, fix the crash in the 1.1.16 build.
80 * GridTableStylesCollection.cs: make the explicit interface
81 implementations call the class's methods as opposed to duplicating
84 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
85 0 so the text doesn't jump around when we move the cursor.
87 2006-07-10 Jackson Harper <jackson@ximian.com>
90 * ListBox.cs: Match MS's ToString (this makes debugging focus
91 stuff infinitely easier).
93 2006-07-10 Jackson Harper <jackson@ximian.com>
95 * Control.cs (SelectNextControl): When checking the control's
96 parent use this instead of ctrl.parent so that null can be passed
97 to SelectNextControl. (I have unit tests for this).
100 2006-07-10 Chris Toshok <toshok@ximian.com>
102 * CurrencyManager.cs: correct one regression, the removal of the
103 finalType field. Also, add a MonoTODO on CanAddRows, implement
104 Refresh() correctly, and fix some event emission in
107 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
109 * FileDialog.cs: Don't use brackets for new folders if they exist
110 under *nix. Instead use -(number of existing folders +1).
112 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
115 - Fixed really nasty bug #78771
116 - Don't block the whole GUI when reading directories with a lot of
117 entries. Use an other thread instead and call BeginInvoke to
118 update the ListView in MWFFileView
120 2006-07-07 Chris Toshok <toshok@ximian.com>
122 * Control.cs (Dispose): release any Capture when disposing.
124 2006-07-07 Chris Toshok <toshok@ximian.com>
126 * LinkLabel.cs (Select): if we chain up to the parent, set
127 focused_index to -1 so we'll search for the first available link
128 the next time the user tabs into us. Also, if the direction is
129 backward and focused_index == -1, start the search from the last
132 2006-07-07 Chris Toshok <toshok@ximian.com>
134 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
135 is beyond the end of the text, don't do anything.
136 (CreateLinkPieces): set our ControlStyles.Selectable based on
137 whether or not we have any links.
138 (Link.Invalidate): use a loop instead of foreach.
139 (Link.set_Start): null out owner.sorted_links so it'll be
140 recreated by CreateLinkPieces.
142 2006-07-06 Chris Toshok <toshok@ximian.com>
144 * LinkLabel.cs: revert the SetStyle change.
146 2006-07-06 Chris Toshok <toshok@ximian.com>
148 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
149 (OnEnableChanged): s/Refresh/Invalidate
150 (OnGotFocus): if we have a focused index already, refocus it (so
151 if we mouse out/in to the window it'll focus the right link).
152 (OnKeyDown): move the tab handling out of here.
153 (OnLostFocus): don't set focused_index to -1, so we can refocus it
155 (OnMouseDown): don't Capture here - Control handles it. Also,
156 focus the active link.
157 (OnMouseUp): don't deal with Capture.
158 (OnPaintBackgroundInternal): remove.
159 (OnTextAlignChanged): CreateLinkPieces before calling the
161 (OnTextChanged): call CreateLinkPieces before calling superclass's
163 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
165 (Select): implement this, moving the selection between different
166 links, and call parent.SelectNextControl if we don't have another
167 link to focus in the given direction.
168 (CreateLinkPieces): call Invalidate instead of Refresh.
170 2006-07-06 Chris Toshok <toshok@ximian.com>
172 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
173 new LinkLabel internals.
175 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
176 over pieces looking for active/focused/etc links. also, deal with
177 runs of text (and links) with embedded \n's in them, and use
178 MeasureCharacterRanges instead of MeasureString to figure out the
179 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
182 2006-07-04 Jackson Harper <jackson@ximian.com>
184 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
185 XKB or key auto repeat, do it manually. Without key auto repeat,
186 when a key is held down we get key press, key release, key press,
187 key release, ... with auto repeat we get key press, key press, key
188 press ..., and then a release when the key is actually released.
190 2006-07-03 Jackson Harper <jackson@ximian.com>
193 * ThemeWin32Classic.cs: Tabs do not obey normal background color
194 rules, they are always control color regardless of the background
197 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
199 * FileDialog.cs: Added internal class MWFConfig.
200 Removed Registry support and replaced it with support for the new
201 MWFConfig class. See MWFConfig comments for more information.
203 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
205 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
206 rectangle. Added some patches from eno from bug #78490 and fixed
207 the arrow position for small up and down CPDrawScrollButtons.
209 2006-06-30 Jackson Harper <jackson@ximian.com>
211 * InternalWindowManager.cs: Remove some debug code.
212 * Form.cs: When an MdiParent is set to null, the window is
213 "detatched" and becomes a normal window.
214 * MdiClient.cs: Don't bring the new child form to the front until
215 it is activated (setting it as active does this), this makes the
216 previously active forms titlebar get redrawn as inactive.
218 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
220 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
223 2006-06-29 Mike Kestner <mkestner@novell.com>
225 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
226 arrow in keynav state. Fixes #78682.
228 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
230 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
233 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
235 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
236 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
237 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
238 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
239 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
240 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
241 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
242 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
243 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
244 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
245 enumerations (FlagsAttribute, SerializableAttribute, added/removed
248 2006-06-28 Mike Kestner <mkestner@novell.com>
250 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
252 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
255 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
256 item lines from other area (It also makes BackColor consistent and
257 compatible with .NET). Fixed bug #78564.
259 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
261 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
262 Patch from Eno for #78555.
264 2006-06-27 Chris Toshok <toshok@ximian.com>
266 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
268 * DataGridColumnStyle.cs: same.
270 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
272 * DataGridDrawingLogic.cs: nuke.
274 2006-06-27 Chris Toshok <toshok@ximian.com>
276 * DataGridTableStyle.cs: clean up the constructors, and build the
277 list of child relations for this table. I have no idea if this is
278 where we should be doing it (it probably isn't), but since we're
279 already iterating over the properties..
281 * DataGrid.cs: add row resizing. for now we add a DataGridRow
282 struct and array for keeping track of row information, similar to
283 what's shown in a hack on
284 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
286 * Theme.cs: be consistent about the naming of DataGrid methods,
287 prefering ColumnWidths and RowHeights over columnsWidths and
290 * ThemeWin32Classic.cs: same, and also add support for variable
291 sized rows (and the +/- expansion icons for related rows).
293 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
295 * TextBoxBase.cs: Applied Eno's patch from #78660
297 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
299 * Form.cs (ScaleCore): We don't want to scale our form if it's
300 state is minimized or maximized, but we still need to scale our
301 child windows. Also, added try/finally block to ensure layout
302 gets reset (Fixes #78697)
304 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
306 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
308 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
310 * Form.cs: Fixed c+p error and added check to resize form if minimum
311 size is bigger than current size (Fixes #78709)
313 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
315 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
317 2006-06-26 Mike Kestner <mkestner@novell.com>
319 * ComboBox.cs: only do Keypress handling in the combo when there
320 are items in the collection. Fixes #78710.
322 2006-06-26 Chris Toshok <toshok@ximian.com>
324 * Binding.cs: make this work bi-directionally. also, clear up
325 other mixups between Push/Pull Data (e.g. we're supposed to pull
326 data when validating).
328 * BindingManagerBase.cs: trim some fully qualified collection
331 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
333 2006-06-23 Chris Toshok <toshok@ximian.com>
335 * PropertyManager.cs: It appears (according to the unit tests)
336 that PropertyManager doesn't use
337 PropertyDescriptor.AddValueChanged to track propery value changes
338 in its datasource, but uses the same scheme as Binding, where it
339 looks for a <Property>Changed event and binds to it.
341 Also, according to the docs, IsSuspended always returns false for
342 a property manager with a non-null datasource.
344 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
346 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
347 need to update the actual DialogResult. (Fixes #78613)
349 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
351 * Form.cs (ShowDialog): Release any captures before running the
352 new message pump (fixes #78680)
354 2006-06-22 Mike Kestner <mkestner@novell.com>
356 * ListView.cs: Layout column widths properly in details mode even
357 if HeaderStyle.None is set. Fixes #78691.
359 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
361 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
363 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
365 * Control.cs (ContainsFocus): Using new driver method to get focused
366 window, instead of trying to use internal tracking var, which can
367 recursion issues (Fixes #78685)
368 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
369 XplatUIWin32.cs: Added GetFocus method to return focused window
371 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
373 * ColorDialog.cs: when the mouse button is pressed inside the color
374 matrix, don't let the cursor move out of it until the button is
375 released, which is the behavior on windows. Changed 'colours' by
376 'colors' to use the same word consistently.
378 2006-06-21 Chris Toshok <toshok@ximian.com>
380 * DataGrid.cs: add in some basic navigation stuff (navigating to a
381 child relation and back, using a stack). Also, remove
382 GetDataSource and the code that calls it - it's not needed. Also,
383 track CurrencyManager.ListName's removal.
385 2006-06-21 Chris Toshok <toshok@ximian.com>
387 * CurrencyManager.cs: push some of the original type checking from
388 BindingContext.CreateBindingManager to here, and remove some of
389 the finalType stuff. Need more tests to make sure I've got the
390 ListName part right, and we might need more in SetDataSource.
392 * PropertyManager.cs: add a ctor that takes just the datasource,
393 and no property name. Make SetDataSource work with a null
394 property_name, and make Current return the data_source if the
395 property descriptor is null. this makes 'string foo = "hi";
396 BindingContext[foo].Current' return "hi" as it should.
398 * RelatedCurrencyManager.cs: make this code more generic - there's
399 no reason the parent manager has to be CurrencyManager, and
400 there's no reason to pass the DataRelation. It suffices to use a
401 BindingManagerBase and PropetyDescriptor.
403 * RelatedPropertyManager.cs: make a similar change here.
405 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
406 flower I knew it could be.
408 2006-06-20 Chris Toshok <toshok@ximian.com>
410 * PropertyManager.cs: the PropertyChangedHandler is invoked when
411 data in the source has changed and we need to update the control,
412 so s/PullData/PushData.
414 * CurrencyManager.cs: Refresh is meant to update the control from
415 data in the datasource. So, s/PullData/PushData.
417 * BindingContext.cs: add more ugliness (we weren't handling the
418 case where data_source = DataTable and data_member = column_name).
420 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
421 from the perspective of the datasource. PullData pulls from the
422 control, PushData pushes to the control.
424 2006-06-20 Chris Toshok <toshok@ximian.com>
426 * BindingContext.cs: rewrite the CreateBindingManager code to
427 handle navigation paths more or less properly. This could
428 definitely stand some more work, in particular to push the
429 recursion up to the toplevel. But that relies on fixes in other
430 places (System.Data comes to mind).
432 Also, move to a flat hashtable (and encode the twolevel nature of
433 the dictionary into the hash key). This lets us implement the
434 IEnumerable.GetEnumerator method.
436 * RelatedCurrencyManager.cs: new class. Update our view based on
437 our relation and our parent CurrencyManager's position.
439 * CurrencyManager.cs: split out some logic from the ctor into
440 SetView, so it can be called from the new RelatedCurrencyManager
443 * RelatedPropertyManager.cs: new class. Update our datasource
444 based on the position of our parent CurrencyManager.
446 * PropertyManager.cs: split out some logic from the ctor into
447 SetDataSource, so it can be called from the new RelatedDataSource
448 subclass. Also, make the Current getter return the value
449 of the PropertyDescriptor, not the data_source.
451 * Binding.cs: no need to duplicate the string splitting code here.
453 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
456 - set_Enabled: OnEnabledChanged is not called if the inherited state
457 of the control is not altered, even though we might be changing the
458 internal state of the control (#78458)
459 - set_Enabled: (Re)Moved the enabling/disabling of the window to
460 OnEnabledChanged, to allow easy altering of any child window state
461 - OnEnabledChanged: Added code to enable/disable driver window state
462 - OnParentEnabledChanged: Instead of firing the event, call
463 OnEnabledChanged, which will fire the event and also a) set driver
464 window state and pass the enabled state to any grandchildren (#78458)
466 2006-06-19 Jackson Harper <jackson@ximian.com>
468 * InternalWindowManager.cs: We don't set the cursor explicitly
469 thats done via the response to NCHITTESTs.
470 - Don't need to adjust for titlebar heights anymore, the
471 coordinates are coming in the correct coordinates now (see peters
475 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
477 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
478 being translated relative to whole window, instead of client window.
479 That caused broken offsets on mouseclick (and caused gas for our
480 InternalWindowManager)
482 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
485 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
486 - Undo(): Added replay of cursor move on DeleteChars action; added
487 calling Undo() again if a recorded cursor move is invalid (to
488 ensure that some action is performed on Undo)
489 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
491 2006-06-16 Jackson Harper <jackson@ximian.com>
493 * MdiClient.cs: Instead of just sizing maximized windows when
494 there is a resize we also have to adjust the Y of minimized
495 windows, so they stay pinned to the bottom of the mdi container.
496 - Eliminate separate tracking of the active control, we can just
497 get this from the controls collection.
498 - Paint the decorations for the newly activated titlebar so we get
500 * InternalWindowManager.cs:
501 * ThemeWin32Classic.cs: Minimized windows get all three buttons
502 even if they are a tool window.
504 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
506 * TextControl.cs (Undo): Handle non-existent cursor locations in the
507 undo buffer, these can happen when text was deleted and the cursor
508 was recorded first. Since we will also have a recorded cursor
509 after the delete this is not an issue. (Fixes #78651)
511 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
513 * AccessibleObject.cs: Remove dependence on Control.is_selected;
514 instead properly track control states internally (allows us to
515 remove is_selected from Control)
517 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
519 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
520 whose width is not a multiple of 8.
522 2006-06-13 Jackson Harper <jackson@ximian.com>
524 * MdiClient.cs: Only maximize the next child if the current one
527 2006-06-13 Chris Toshok <toshok@ximian.com>
529 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
530 modified. Also, guard against grid or grid_drawing being null in
533 * DataGrid.cs: Reformat tons of getters/setters. In the
534 DataMember setter, just call SetNewDataSource instead of
535 duplicating some of its functionality. In SetNewDataSource, don't
536 check ListManager for null, since the property getter creates the
539 * DataGridTableStyle.cs: don't set TableStyle or call
540 SetDataGridInternal on the column here, it's done in
541 GridColumnStylesCollection.Add.
543 * GridColumnStylesCollection.cs: fix all the explicit interface
544 implementations to just call our methods. Nuke AddInternal() and
545 move the body of it to Add(). Also, add a call to
546 column.SetDataGridInternal to Add().
548 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
549 base()+duplicate code. Also, use the Format property instead of
550 format to generate an Invalidate ala MS. Lastly, create the
551 textbox here, unconditionally.
552 (set_Format): call Invalidate.
553 (get_TextBox): no need to call EnsureTextBox.
554 (Commit): remove the message box.
555 (Edit) remove the call to EnsureTextBox.
556 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
557 (EnterNullValue): no need to check textbox for null.
558 (HideEditBox): no need to check textbox for null.
559 (SetDataGridInColumn): add the textbox to the grid's controls.
560 (EnsureTextBox): nuke.
562 2006-06-13 Jackson Harper <jackson@ximian.com>
564 * MdiWindowManager.cs: Hook up to the maximized menus paint event
565 and redraw the buttons when needed. Unhook when the window is
567 * MainMenu.cs: Add an internal Paint event, the mdi window manager
568 needs this so that it can redraw its buttons when the menu is
570 * InternalWindowManager.cs:
571 * Form.cs: The method order has changed for DrawMaximizedButtons,
572 so that it can be a PaintEventHandler.
574 2006-06-13 Jackson Harper <jackson@ximian.com>
576 * MdiClient.cs: When we close a maximized mdi window, the next mdi
577 window is activated and maximized, even if it wasn't before.
578 - When a new window is activated repaint the decorations of the
579 old one, so that it no longer has the Active "look" (the blue
581 * InternalWindowManager.cs: Open up CreateButtons to base classes
582 so they can recreate the buttons on state changes.
583 - If a window is maximized give it all three buttons
584 * MdiWindowManager.cs: Create the titlebar buttons when the state
585 is changed, this is needed because a toolwindow will not have all
586 three buttons until it is maximized.
588 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
590 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
593 2006-06-12 Jackson Harper <jackson@ximian.com>
595 * KeysConverter.cs: Make sure we handle the Ctrl special case
598 2006-06-12 Jackson Harper <jackson@ximian.com>
600 * Theme.cs: Add a method to get the size of a managed window
602 * InternalWindowManager.cs: Remove the ButtonSize property, this
603 should be retrieved from the theme.
604 * MdiWindowManager.cs: Get the button size from the theme
605 * ThemeWin32Classic.cs: Make the method to get the managed window
606 titlebar button size public.
607 - Handle the different button sizes of maximized toolwindows
608 (should match any maximized window).
609 - Get the titlebar height from the theme, not the WM (which gets
612 2006-06-12 Jackson Harper <jackson@ximian.com>
614 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
615 event down to the mdi window manager.
616 - Expose some extra stuff to base classes
617 - Make sure to end the Capture on an NC Mouse up, so that we can
618 get double clicks properly, and the sizing doens't stick.
619 - When doing PointToClient contain it in the workable desktop
620 area, this prevents windows from changing size when the cursor is
621 pulled outside of the working area while sizing.
622 * MdiWindowManager.cs: When we get a double click maximize the
624 - Reset the cursor after handling mode changes.
626 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
628 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
629 current desktop, instead of just assuming a 0, 0 origin. This
630 is needed for our internal window manager, to know the top
631 margin of the desktop
633 2006-06-12 Chris Toshok <toshok@ximian.com>
635 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
636 we need this to get rid of the selected background in the bool
638 (CancelEditing): move the ConcedeFocus call to above the Abort
639 call. Also, set is_changing to false and invalidate the row
640 header if we were changing before.
641 (ProcessKeyPreviewInternal): remove, since noone outside this
642 class calls it anymore. Roll the code into ProcessKeyPreview.
643 (EndEdit): remove the internal version.
644 (InvalidateCurrentRowHeader): make private.
646 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
647 Keys.Escape handling (and with it the last call to
648 DataGrid.EndEdit from outside the class.)
651 2006-06-12 Chris Toshok <toshok@ximian.com>
653 * DataGridTextBox.cs (.ctor): isedit defaults to false.
654 (OnKeyPress): set isedit to true.
655 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
656 already handled by the grid.
658 * DataGrid.cs (set_CurrentCell): more work here. it's still not
660 (set_DataSource): SetDataSource always returns true, so stop
661 putting it in an if statement.
662 (EndEdit): get rid of some {}'s
663 (ProcessGridKey): return true in case Keys.Escape.
664 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
665 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
666 PositionChanged, stopped connecting to CurrentChanged.
667 (GetDataSource): simplify this a bunch.
668 (SetDataSource): change return type from bool to void.
669 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
670 to this, and make sure we don't set ListManager.Position inside
672 (OnListManagerItemChanged): if we're passed an actual index,
675 * CurrencyManager.cs (set_Position): don't call PullData here.
677 2006-06-09 Jackson Harper <jackson@ximian.com>
679 * TreeNode.cs: Recalculate the visible order before doing the
680 Expand/Collapse Below calls, because those calls generate an
682 - Reduce calls to the TreeView property, which is mildly expensive
683 by using a local var.
684 * Form.cs: Layout the MDI child windows when creating the parent
686 - Don't use the internal constructor anymore
687 * MdiClient.cs: use the parent form width/height (if available)
688 when laying out the child windows, we do this because the
689 mdiclient isn't docked yet when the initial layout is done.
690 - Don't need an internal constructor anymore.
692 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
694 * FileDialog.cs: handle access errors when trying to create a folder
695 or changing to a directory. No need to initialize out parameters.
697 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
699 * FileDialog.cs: Append a number when creating a new folder if the
700 folder already exists (use parenthesis instead of square brackets)
702 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
705 - Disabled registry support for windows and added better registry
706 error checking for other systems (need to investigate why it
707 works perfectly on my system)
708 - If a folder already exist show an error MessageBox instead of
709 trying to create an indexed name.
710 - Fixed a non intentional typo.
712 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
714 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
716 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
718 * FileDialog.cs: When creating a new folder don't crash if the
719 folder already exists.
721 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
723 * FileDialog.cs: Allmost a complete rewrite.
724 - added a "virtual" file system that handles the differences
725 between unix and windows file systems (especially the directory
726 structure). Moved most of the directory and file handling code
728 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
729 UnixFileSystem and FSEntry.
730 - Recently used folder/directory, size, location and used file names
731 (file name ComboBox) are now stored in the registry and get read
732 before the dialog shows up (fixes part 6 of bug #78446).
733 - Creation of new folders/directories is now possible (context menu
734 or ToolBar). Added TextEntryDialog for this that fills in the gap
735 until ListView.LabelEdit works.
736 - Fixed cursor handling (bug #78527) and focus handling for
738 - Various "Search in" ComboBox enhancements. The content of the
739 dropdown listbox now almost matches ms.
740 - Changed the behaviour when the user switches to SpecialFolder
741 Recent to show the ListView in View.Details.
742 - Beside using the ToolBar to change the View property of the
743 file ListView it is now possible to use the context menu too.
745 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
747 * ComboBox.cs: Don't create a new ObjectCollection when an item
748 gets inserted. Just insert the item in the existing object_items
751 2006-06-08 Jackson Harper <jackson@ximian.com>
753 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
754 that the treeview and root node checks are done also, this fixes a
755 regression i caused in the unit tests.
757 2006-06-07 Wade Berrier <wberrier@novell.com>
759 * RichTextBox.cs: More ISO8859-1 -> unicode
761 2006-06-07 Mike Kestner <mkestner@novell.com>
763 * ComboBox.cs : use items to hold highlight/selection so that
764 collection insertions don't require synchronization.
766 2006-06-07 Jackson Harper <jackson@ximian.com>
768 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
769 routine. We now always keep the sized edge at the cursor instead
770 of computing movement and adjusting rects. There is one buglet
771 with this method though when the cursor is moved over area that
772 the window can not expand too (such as the toolbars on the desktop).
774 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
776 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
777 here. Fixes crash on startup in AlbumSurfer.
779 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
781 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
784 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
786 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
787 statement to avoid calling XNextEvent which will block if another thread
788 took the event that we were expecting. Fixes bug #78605.
790 2006-06-07 Mike Kestner <mkestner@novell.com>
792 * ListView.cs : isolated checkbox clicking from the selection logic.
793 Toggle check state on item doubleclicks. Really fixes #78454 part2.
795 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
797 * Form.cs: Check that the value passed to Form.DialogResult
798 is a valid enum value.
800 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
802 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
803 Computer'. Clicking it in the network view goes to 'My Computer'.
804 Added CIFS filesystem type. Display the mount point of filesystems.
805 Avoid duplicate mount points (happens for me with CIFS);
807 2006-06-06 Jackson Harper <jackson@ximian.com>
809 * InternalWindowManager.cs: Draw the maximized windows buttons
812 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
814 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
815 all other dialogs. Fixes bug #78585.
817 2006-06-06 Mike Kestner <mkestner@novell.com>
819 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
820 Only invalidate checkbox on checkstate changes to avoid flicker.
821 * ListBox.cs : avoid unselect/select when clicking selected item.
822 avoid reselection flicker for already multiselected items.
825 2006-06-06 Jackson Harper <jackson@ximian.com>
827 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
828 the parent form so that the menu is removed if needed.
830 2006-06-06 Mike Kestner <mkestner@novell.com>
832 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
833 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
835 2006-06-06 Mike Kestner <mkestner@novell.com>
837 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
840 2006-06-06 Jackson Harper <jackson@ximian.com>
842 * Control.cs: Use the property (instead of the field) to get the
843 default cursor so it is instantiated correctly.
844 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
845 resizes so we need to manually repaint the window decorations here.
846 - Set the titlebar button locations as soon as they are created,
847 otherwise they are not set correctly on win32.
849 2006-06-06 Chris Toshok <toshok@ximian.com>
851 * CurrencyManager.cs (set_Position): call PullData before
853 (AddNew): after calling IBindingList.AddNew, update our
854 listposition, and call OnCurrentChanged/OnPositionChanged (without
856 (OnCurrentChanged): remove the call to PullData from here.
857 (OnItemChanged): remove the call to PushData from here.
858 (OnPositionChanged): change the test from == null to != null to
859 match the other methods.
860 (ListChangedHandler): the grossest part of the patch. Implement
861 this such that it passes the unit tests in CurrencyManagerTest and
862 the output more or less matches that of MS's implementation.
864 2006-06-06 Mike Kestner <mkestner@novell.com>
866 * ListView.cs : only update check state on single click.
867 * ThemeWin32Classic.cs : fix focus drawing for details view without
868 fullrowselect. Fixes #78454.
869 * XplatUIX11.cs : fix for double click emission.
871 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
873 * PropertyGridView.cs : Applied Atsushi's patch to fix
874 font dialog bug (#78197).
876 2006-06-05 Jackson Harper <jackson@ximian.com>
878 * TreeNode.cs: Compute the next node for expanding/collapsing
879 correctly. We now factor in nodes without a NextNode
880 correctly. (Fixes somes cases in nunit-gui).
881 * InternalWindowManager.cs: Set the bounds when updating the
882 virtual position of a tool window.
884 2006-06-05 Chris Toshok <toshok@ximian.com>
886 * DataGrid.cs: rename cached_currencymgr to list_manager.
887 (set_CurrentCell): move SetCurrentCell code here, and clean it up
889 (CurrentRow, CurrentColumn): single accessors so we can make the
890 cursor movement code a lot easier to understand.
891 (CurrentRowIndex): implement this in terms of CurrentRow.
892 (BeginEdit): clean this up a bit.
893 (CancelEditing): sort out the is_editing/is_changing/is_adding
895 (EndEdit): minor changes.
896 (OnKeyDown): add a comment about a (most likely) unnecessary
898 (OnMouseDown): cancel editing when we click on a row header. And
899 use the CurrentRow setter, not CurrentCell.
900 (ProcessDialogKey): directly call ProcessGridKey.
901 (UpdateSelectionAfterCursorMove): factor out this common block of
902 code (it's used everywhere that we move the cursor by updating row
904 (ProcessGridKey): pretty substantial overhaul. Use the
905 CurrentRow/CurrentColumn properties to make the code a lot more
906 readable. Only use the CurrentCell property when we have to
907 modify both row and column at once. Tab behavior is still broken,
908 and Delete is untested.
909 (Select): if we have no selected rows, set selection_start to
911 (EditCurrentCell): rename EditCell this. It was only ever invoked
912 with CurrentCell as the arg, so drop the arg and rename it.
914 * DataGridColumnStyle.cs: clean up the constructors a little, and
915 drop CommonConstructor().
917 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
918 actually get notified when the user hits it.
919 (ProcessKeyMessage): *substantially* simplify this method.
920 There's no reason (that I can see) for the textbox to be making
921 calls into the datagrid at all. Remove all of them but the ones
922 for Enter handling. those will take some more work.
924 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
926 (HideEditBox): if we have an active textbox, render it invisible
927 without causing a re-layout of the datagrid.
929 2006-06-05 Mike Kestner <mkestner@novell.com>
931 * ListView.cs : fix NRE crasher when focuseditem is cleared by
932 collection changes by resetting it to Items[0]. Fixes #78587.
934 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
936 * MessageBox.cs: if the height of the text is larger than the icon_size,
937 use that. Fixes bug #78575.
939 2006-06-05 Jackson Harper <jackson@ximian.com>
941 * TreeView.cs: Fix line drawing when scrolling. To do this each
942 node is basically responsible for drawing its entire horizontal
943 area. When drawing a node it draws its parent node lines if
945 - Adjust the clip area to the viewport rectangle
946 - Fix Left/Right key handling to match MS. (It expand/collapses
947 and moves to parents/first child but does not move selection to
949 - Fix SetTop to work with new bound calculation code
950 - When scrollbars are no longer needed we need to reset scrolling
951 vars and recalculate the visible order so the redraw is correct
952 * TreeNode.cs: We can't expand/collapse nodes with no children.
954 2006-06-03 John Luke <john.luke@gmail.com>
956 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
957 so the colors work without dev packages
959 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
962 - Select: Implemented to just use activate. Seems to match MS
963 behaviour closest. Documented to only do actual control walking
964 based on it's parameters if in a container control so I moved
966 - Removed selection check logic from our internal Select() method
967 * ContainerControl.cs:
968 - Select: Moved selection logic from Control here, since MS documents
969 that containers obey the bool arguments. No longer calling base
971 2006-06-02 Jackson Harper <jackson@ximian.com>
973 * TreeView.cs: If the selected node isn't changed when we get
974 focus update the previously selected node so that we see the
977 2006-06-02 Mike Kestner <mkestner@novell.com>
979 * ComboBox.cs: restructure grab and general mouse event handling.
980 Make the composite control raise mouse events like it was a single
981 control for leaves/enters/motion/up/down events. fix dropdown list
982 coordinate mangling and refactor it into the scrollbar subclass to
983 reduce code duplication. Fixes #78282 #78361 and #78457.
985 2006-06-02 Mike Kestner <mkestner@novell.com>
987 * ScrollBar.cs: remove Capture setting/clearing, as it happens
988 automatically in the Control.WndProc.
990 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
992 * FileDialog.cs: fix crash when running SharpChess, which sets the
993 FilterIndex to 2 with only one Filter.
995 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
997 * ToolBar.cs: add SizeSpecified property.
998 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
999 try to figure out our real size, otherwise fallback to what the
1002 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
1004 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
1005 * Control.cs (WndProc): MS always calls the DefWndProc to pass
1008 2006-06-01 Mike Kestner <mkestner@novell.com>
1010 * ListView.cs: revamp the focus management in ListView. It still
1011 causes churn of LostFocus/GotFocus emissions on clicks, but it's
1012 better than not handling focus at all. Will revisit when pdb feels
1013 the general focus handling is solid. Fixes #78526.
1015 2006-06-01 Jackson Harper <jackson@ximian.com>
1017 * TreeView.cs: Set the default border style in the constructor.
1018 - Move painting to use OnPaintInternal instead of capturing
1019 WM_PAINT, this is the correct way of doing things
1020 - UpdateBelow shouldn't invalidate the scrollbar area
1021 - Cap the top on update below in case the node was above the top
1022 of the viewport rectangle.
1023 - ExpandBelow and Collapse below need to obey Begin/End Update.
1024 * TreeNode.cs: Make is_expanded internal so the treenode
1025 collection can change it without firing the whole event chain.
1026 * TreeNodeCollection.cs: When clearing all the child nodes make
1027 sure to recalc the visible order.
1028 - Improve algo for remove the top node
1030 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
1032 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
1033 SendMessage directly calling window procedures, which in turn might
1036 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
1038 * Control.cs: Don't handle WM_SETFOCUS if the same window already
1039 has focus (works around X11 sending a FocusIn after our SetFocus)
1040 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
1042 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
1044 * Mime.cs: Fix for the NET_2_0 build.
1045 NameValueCollection needs StringComparer now.
1047 2006-05-31 Chris Toshok <toshok@ximian.com>
1049 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
1050 return (via an out parameter) the starting X of the column.
1051 (UpdateVisibleColumn): track change to FromPixelToColumn.
1052 (HitTest): add a ColumnResize case here.
1053 (DrawResizeLine): new function, probably poorly named.
1055 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
1056 only need to keep one reference.
1057 (set_ListManager): same.
1058 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
1059 Also, add support for HitTestType.ColumnResize.
1060 (OnMouseMove): add column resize behavior here, and change the
1061 cursor to the correct one as we move around the datagrid.
1062 (OnMouseUp): terminate the column resize if we're resizing.
1063 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
1064 for the current cell.
1065 (ConnectListManagerEvents): use cached_currencymgr.
1066 (DisconnectListManagerEvents): fill this in, using
1068 (SetCurrentCell): remove cached_currencymgr_events handling.
1069 (SetDataMember): only call DisconnectListManagerEvents if
1070 cached_currencymgr is != null.
1071 (SetDataSource): same.
1072 (OnListManagerCurrentChanged): cached_currencymgr_events ->
1075 2006-05-31 Jackson Harper <jackson@ximian.com>
1077 * BindingManagerBase.cs: Remove somedebug code that creeped into
1079 * TreeNode.cs: We get the indent level dynamically right now, so
1080 don't track it as a member.
1081 * TreeNodeCollection.cs: Make sure all nodes added to the list
1082 have parents, treeviews/topnodes setup properly.
1083 - Don't attempt to track indent level.
1085 2006-05-30 Jackson Harper <jackson@ximian.com>
1087 * BindingContext.cs: Create the currency manager tables here.
1088 This allows us to more easily create null tables (when bad data
1089 members are used), and more easily create related currency
1091 * CurrencyManager.cs: All the table creation stuff is done by the
1092 binding context now.
1093 - Current should throw an exception if listposition is -1.
1094 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
1097 2006-05-30 Mike Kestner <mkestner@novell.com>
1099 * ListView.cs: allow reexpansion of zero-width column headers.
1102 2006-05-28 Chris Toshok <toshok@ximian.com>
1104 * CurrencyManager.cs (get_Current): after the late binding
1105 listposition = -1 fix, we need to guard against it here and return
1106 null, otherwise we raise an exception (which is swallowed
1107 elsewhere, and breaks datagrid databinding.)
1109 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
1111 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
1112 than WM_SYSKEY, don't throw if get something unexpected (#78507)
1114 2006-05-26 Jackson Harper <jackson@ximian.com>
1117 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
1118 values, it's faster and it's all we care about (we don't care if
1119 the names aren't equal).
1120 * KeyboardLayouts.cs: Eliminate some dead code.
1122 * X11Keyboard.cs: Lazy init keyboard detection.
1123 - Cleanup access modifiers a little.
1125 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
1127 * XplatUIX11.cs: Once again, attempting to get layout just right.
1129 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
1131 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
1132 the sizes of each link section, that will result in sizes that
1133 match DrawString's layout (Fixes #78391)
1135 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
1137 * FileDialog.cs: If AddExtension property is true autocomplete the
1138 extensions in SaveFileDialog correctly. Fixes bug #78453.
1139 Set MyNetwork and MyComputer to "C:\" for windows. This should
1140 fix part 8 of bug #78446 for now.
1142 2006-05-26 Chris Toshok <toshok@ximian.com>
1144 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
1145 invalidate the current row header if we need to, but presumably
1146 we'll invalidate the row corrsponding to the bounds or
1148 (GridHScrolled): switch back to this method, as it's part of the
1150 (GridVScrolled): same.
1151 (OnMouseWheel): hack up something that more or less works. Call
1152 GridHScrolled/GridVScrolled directly, instead of duplicating much
1154 (EnsureCellVisibility): reinstate a bunch of this code, since we
1155 can't just set the scrollbar Value and expect to do all the work
1156 in the ValueChanged handler. Also, Call Update() after scrolling
1157 in one direction so the other XplatX11.ScrollWindow call has the
1158 proper stuff in the proper places.
1159 (EditCell): set is_editing to true before calling .Edit.
1161 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
1162 don't bother comparing first.
1163 (OnKeyPress): call grid.ColumnStartedEditing before calling
1164 base.OnKeyPress. this will set is_changing and invalidate the row
1165 header if necessary.
1166 (ProcessKeyMessage): for WM_CHAR messages, call
1167 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
1170 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
1171 it's done in the DataGrid.
1172 (NextState): call grid.ColumnStartedEditing, which takes care of
1173 invalidating the row header (and setting is_changing).
1175 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
1176 here. it's done in the DataGrid.
1178 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1180 * Control.cs: allow changing the cursor when the mouse position is
1181 out of bounds but Capture is set.
1182 * LinkLabel.cs: handle the case when the mouse button is pressed on the
1183 linklabel but released somewhere else.
1185 2006-05-25 Jackson Harper <jackson@ximian.com>
1187 * TreeView.cs: When we get focus if there is no selected node make
1189 - Remove some uneeded setup code from Draw.
1190 * TreeNodeCollection.cs: If the tree doesn't have a top node when
1191 a new node is inserted make the new node the top.
1193 * Timer.cs: Use Utc time so that no local time zone stuff needs to
1194 be used (should be faster).
1196 2006-05-25 Chris Toshok <toshok@ximian.com>
1198 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
1199 problem with the last commit.
1201 2006-05-25 Chris Toshok <toshok@ximian.com>
1203 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
1204 need the invalidate call here, while scrolling right-to-left via
1205 the left arrow key (i.e. moving the editing cell while scrolling).
1207 * DataGrid.cs (.ctor): remove the initialization of
1208 ctrl_pressed/shift_pressed. We no longer track them using key
1209 up/down handlers, but by using Control.ModifierKeys. Also, switch
1210 to using ValueChanged handlers on the scrollbars instead of
1211 Scrolled event handlers. This simplifies a bunch of the scrolling
1213 (GridHValueChanged): rename from GridHScrolled, and change it to
1214 work with the new event args.
1215 (GridVValueChanged): same.
1216 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
1217 (OnMouseWheel): actually scroll the datagrid. Don't change the
1219 (ProcessGridKey): correct all the keyboard navigation stuff I
1220 could find. Ctrl up/down/left/right/home/end work now.
1221 (EnsureCellVisibility): correct method name spelling. Also,
1222 simplify this a touch by not explicitly calling the
1223 ScrollToRow/ScrollToColumnInPixels methods. We just set the
1225 (OnKeyUpDG): no need for this method now.
1227 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1229 * LinkLabel.cs: display the OverrideCursor when hovering the label.
1232 2006-05-25 Chris Toshok <toshok@ximian.com>
1234 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
1237 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
1239 * Application.cs: Moved setting of is_modal and closing to before
1240 we create the control, to allow the event handlers called as a
1241 result of creation affect closing. Also removed Gonzalo's previous
1242 change to setting DialogResult, the behaviour has been moved to
1245 - ShowDialog(): Removed explicit creation of the form, let RunLoop
1247 - ShowDialog(): If no dialog result is set, we need to return Cancel
1248 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
1249 the close is cancelled
1251 2006-05-25 Jackson Harper <jackson@ximian.com>
1253 * StatusBar.cs: We only need to update the sizes of the other
1254 panels when we have auto size contents. Also we are only updating
1255 the contents of the panel, not the borders, so compensate for the
1256 border width (TODO: get this width from the theme somehow).
1257 * TreeView.cs: Scrollable is true by default
1258 - Use invalidate instead of refresh where needed
1259 - Factor the scrollable value into scrollbar updating
1260 - Update the scrollbars if the Scrollable property is altered
1261 - Update the selected node if its ImageIndex is changed
1262 - Handle null nodes in UpdateNode (mainly so we don't have to
1263 check if selected is null when updating it
1264 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
1265 are factored into the visible count
1266 - Use VisibleCount for clarity in the code
1267 - When the font is changed we need to recurse through all the
1268 nodes and invalidate their sizes
1270 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1272 * Application.cs: set the DialogResult to fixed when the main form is
1273 hidden or destroyed while being modal.
1275 2006-05-25 Miguel de Icaza <miguel@novell.com>
1277 * Theme.cs: Use Tangoified messagebox icons.
1279 (GetSizedResourceImage): Also cope with width = 0 and do not
1280 trigger a warning in that case (0 means "give me your icon from
1281 the resouce, no special size needed).
1283 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
1285 * Application.cs: Leave runloop if the the main modal form is
1286 hidden (fixes #78484)
1288 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
1290 * BindingContext.cs : reject null datasource in Contains() and
1292 * CurrencyManager.cs : check data_member validity when data_source
1293 is dataset. When it is late binding, the initial position is -1.
1295 2006-05-24 Jackson Harper <jackson@ximian.com>
1297 * TreeNodeCollection.cs: Dont't recalculate the visible order on
1298 inserted nodes that aren't visible. This changes the
1299 max_visible_order which confuses scrollbar settings.
1300 - Use the enumerator to get the prev node instead of duplicating
1302 * TreeView.cs: Use new method for setting scrollbar values
1303 - Don't set the bounds every time the scrollbar is updated
1304 - When updating below the root node use an invalidate instead of a
1305 refresh to prevent the child controls (scrollbars) from being
1306 refreshed. (UpdateBelow still needs to be reworked anyways).
1307 - Reenable SetBottom now that visible orders are set correctly,
1308 added some debug code incase we ever get bad values there again.
1309 - Set the scrollbar max to 2 less then the max value, this
1310 compensates for the max value being one above the node count, and
1311 for scrollbars adding one extra "notch".
1312 - When drawing image nodes if there is an imagelist we draw the
1313 first image in the list if the supplied image index is out of the
1314 image list's bounds.
1316 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
1318 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
1319 we receive a size change from the WM (Fixes #78503)
1321 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
1323 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
1324 rectangle (Fixes #78501)
1326 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
1329 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
1331 - Fixed MouseMove to no longer switch pressed state unless the left
1332 mouse button is pressed. Atsushi provided the original patch (#78485)
1334 2006-05-24 Jackson Harper <jackson@ximian.com>
1336 * ScrollBar.cs: New internal methods that allow us to change a
1337 couple values on the scrollbar (the most common case is maximum
1338 and large change) without getting multiple invalidates.
1340 2006-05-24 Chris Toshok <toshok@ximian.com>
1342 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
1343 (Edit): save off the original state in oldState, and set
1344 grid.is_editing to true.
1345 (OnKeyDown): abort editing if escape is pressed. also, call
1346 NextState if space is pressed.
1347 (OnMouseDown): call NextState.
1348 (NextState): factor out shared code from OnKeyDown and OnMouseDown
1349 here. Also, only invalidate the row header once (on the initial
1350 is_changing switch) to save on redraws.
1352 2006-05-24 Chris Toshok <toshok@ximian.com>
1354 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
1355 if the value in the cell is different than it was before. This
1356 keeps us from triggering a layout when we move around a datarid
1357 with a highlighted cell.
1358 (Edit): suspend layout when creating/positining the text box, and
1359 resume passing false so we don't ever actually re-layout.
1360 (ReleaseHostedControl): same.
1361 (EnsureTextBox): reformat slightly, and set WordWrap to false.
1363 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
1364 control-key sequences should go to the datagrid - remove that
1365 lock. Also, modify the conditions under which we move between
1366 cells when moving the cursor within a cell, and remove the "this"
1367 and "base" from field accesses. We weren't even consistent, given
1368 they all were in the base class.
1370 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
1372 * Binding.cs : (.ctor)
1373 An obvious NRE fix for BindingTest.CtorNullTest().
1375 2006-05-23 Chris Toshok <toshok@ximian.com>
1377 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1378 them between lines. This fixes some quirks editing cells in the
1381 2006-05-23 Jackson Harper <jackson@ximian.com>
1383 * TreeView.cs: Use begin/end update when doing expand/collapse all
1384 so that we don't get flicker on the scrollbar.
1386 2006-05-23 Jackson Harper <jackson@ximian.com>
1388 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
1389 treenode calculations to be independant of the painting code. To
1390 do this nodes track a visible order which is calculated by the
1392 - Call new methods for expanding/collapsing nodes. These methods
1393 use scrollwindow so we don't have to update everything below the
1395 * TreeView.cs: Refactored drawing and scrolling code. We don't
1396 need to update nodes when drawing anymore or calculate scrollbar
1398 - Added new methods for expanding/collapsing nodes. These methods
1399 use ScrollWindow so as to not have to redraw all the nodes below.
1400 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1401 we add/remove nodes or sort.
1402 - Handle removing the selected and the top node properly.
1404 2006-05-23 Chris Toshok <toshok@ximian.com>
1406 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1407 maybe this should actually happen in the datagrid code?
1408 (EndEdit): no need to invalidate anything, given that
1409 ReleaseHostedControl causes the datagrid to relayout, which
1410 invalidates everything anyway.
1412 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1414 (set_SelectionBackColor): call InvalidateSelection instead of
1416 (set_SelectionForeColor): same.
1417 (BeginEdit): Flesh this out a bit.
1418 (CancelEditing): only do any of this if we're editing/adding.
1420 (OnMouseDown): there's no need to cancel editing here, it's done
1422 (SetCurrentCell): only invalidate the current row header if it's a
1423 different row than the new one.
1424 (ShiftSelection): fix this to work like MS does.
1425 (ResetSelection): factor out the invalidation of selected_rows to
1426 InvalidateSelection.
1427 (SetDataSource): cancel any editing that's going on.
1429 * DataGridColumnStyle.cs
1430 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1431 call the non-interface version.
1433 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1434 header rectangle with the clip rectangle so we don't redraw the
1435 entire header for just a small area. Gets rid of the last flicker
1436 when horizontally scrolling.
1437 (DataGridPaintRow): same.
1439 2006-05-23 Mike Kestner <mkestner@novell.com>
1441 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1442 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
1443 poorly placed checkbox on the MS control. Fixes Alex's unfiled
1444 Critical bug report.
1446 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
1448 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1449 and this fixes #78493
1451 2006-05-23 Miguel de Icaza <miguel@novell.com>
1453 * Theme.cs (GetSizedResourceImage): Scale images if the proper
1456 * FileDialog.cs: Do not change the background for the side bar as
1457 it wont work nicely with the theme, and also reduces the artifacts
1458 in rendering the icons (which I want to fix too).
1460 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1461 resources, not resgen resources.
1463 (PlatformDefaultHandler): Pull images using the new API.
1465 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
1467 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1468 a reference to the hwnd and will not remove it unless there are
1469 no pending exposures (fixes #78341)
1470 * XplatUI.cs: Improved debug
1472 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
1474 * MenuAPI.cs : don't handle OnClick event when it was not the left
1475 button. Fixed bug #78487.
1477 2006-05-23 Mike Kestner <mkestner@novell.com>
1479 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1480 prefer submenus to the top menu for item lookup, to avoid popping down
1483 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
1485 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1486 Graphics.FillRectangle as the visual results are really bad (even
1487 on win). We now draw perfect arrows (and perfect shadows when the
1488 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1489 Pen.DashPattern to draw the dots of each line.
1491 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
1493 * FileDialog.cs: Update the filename combobox when navigating through
1494 the ListView with the cursor keys. Fixes part 7 of bug #78446.
1496 2006-05-22 Mike Kestner <mkestner@novell.com>
1498 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1501 2006-05-22 Mike Kestner <mkestner@novell.com>
1503 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1504 requests. Fix a misspelled parameter and a copy paste exception error
1507 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
1509 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1510 to get the same width/height (5/13) on X11 as the default font has on
1511 win32. This means that our DefaultFont emSize is smaller than the
1512 the MS SWF equivalent (even thought the width/height stays the same)
1514 2006-05-20 Jackson Harper <jackson@ximian.com>
1517 * MdiWindowManager.cs:
1518 * InternalWindowManager.cs: Make sure to use the border width from
1521 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
1523 * PrintDialog.cs: Implements printer details
1525 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
1527 * FileDialog.cs: Added focus handling for PopupButtonPanel.
1528 Fixes part 1 and 2 of bug #78446
1530 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
1532 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1533 instead of sticking to the first ever calculated value
1535 2006-05-19 Mike Kestner <mkestner@novell.com>
1537 * ComboBox.cs: fix mouse motion selection to use MousePosition and
1538 PointToClient, since Capture is set. Fixes #78344.
1540 2006-05-19 Mike Kestner <mkestner@novell.com>
1542 * ListView.cs: match MS behavior in Details view where items are not
1543 drawn if Columns.Count == 0.
1544 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1545 Use a separate pen to draw the check, since changing the width affects
1546 the box as well. Fixes #78454.
1548 2006-05-18 Miguel de Icaza <miguel@novell.com>
1550 * ListView.cs: ArgumentOutOfRangeException, single versions of the
1551 exception should throw the name of the invalid argument.
1553 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1554 there are no files listed.
1556 2006-05-18 Jackson Harper <jackson@ximian.com>
1558 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1561 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
1563 * Control.cs: Brought back our old UpdateZOrder method as a private
1564 function and switched our calls from UpdateZOrder to the new one.
1565 This fixes the Paint.Net canvas disappearing bug.
1567 2006-05-18 Jackson Harper <jackson@ximian.com>
1570 * ThemeWin32Classic.cs:
1571 * InternalWindowManager.cs: Move the drawing into the theme,
1572 expose everything the theme should need from the window manager.
1574 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
1576 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
1577 from the call to NativeWindow to avoid walking up the parent chain
1578 further than needed (speeds up setting cursors and avoids setting
1579 the wrong cursor if a parent has another cursor defined)
1580 * Cursor.cs: When loading an icon as cursor, MS uses the center of
1581 the icon as hotspot, not what's contained as hotspot in the icon
1582 file. This fixes the perceived drawing offset seen with Paint.Net
1584 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
1587 - Store the calculated rectangle in Hwnd object and use it when
1588 setting the client size
1589 - Force Toolwindows to always be type Dock, to ensure they're on top
1591 2006-05-18 Mike Kestner <mkestner@novell.com>
1593 * ComboBox.cs: first pass at ComboBox rework. Layout is more
1594 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
1595 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
1596 Substantial refactoring to remove confusing nested classes. Coding
1597 standard and Get+Set->property refactorings. Shift to index based
1598 highlighting in ComboListBox instead of constantly using IndexOf and
1599 Items[]. Add invalidations on resize for DropDownList to fix ugliness
1600 in FileDialog growth. Draw borders manually since Simple mode needs
1601 to look like two independent controls. Make listbox border
1602 conditional to DropDownStyle. Improved OwnerDraw support.
1604 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
1606 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
1607 Don't set the disposed graphics to null, so we can throw the "right"
1608 exception if the graphics is reused later (added a flag to avoid
1609 double disposing). Some behaviours are different under 2.0 and are
1610 filled under bug #78448.
1612 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
1614 * Control.cs: When double-buffering is enabled, we need to reset
1615 our graphics context between paint calls. Otherwise, any
1616 transformations and other alterations on the context will
1617 become cumulative (#77734)
1619 2006-05-18 Mike Kestner <mkestner@novell.com>
1621 * ListView.cs: do focused item selection like MS on clicks.
1622 Rework focus handling for ItemControl so LostFocus invalidates as
1624 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1625 the ListView ItemControl has focus.
1627 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
1629 * XplatUIX11.cs: If client_window ends up being width or height zero
1630 due to border settings, move it off window inside whole_window (#78433)
1632 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
1634 * Mime.cs: Shrink the mime file cache correctly.
1636 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
1638 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1640 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1642 * XplatUIX11.cs (AddExpose): More sanity checks
1644 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1647 - AddExpose: Don't add expose ranges outside the size of our
1649 - Cast opacity values to Int32 to avoid crashes with certain
1651 - Added disabled code paths that protect against illegal cross-
1652 thread painting (Developers.exe)
1654 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1656 * ProgressBar.cs: Invalidate the control when it's resized
1657 since block size is based on control size. (#78388)
1659 2006-05-16 Miguel de Icaza <miguel@novell.com>
1661 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1662 of setting the incoming argument to the "reset" value, we set the
1663 this.datamember to string.empty (before we were invalidating the
1668 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1670 * Form.cs: Only apply transparency settings after the form
1671 is created. (Fixes #77800)
1673 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1675 * ApplicationContext.cs: Grab the HandleDestroyed event so
1676 we know when to fire OnMainFormClosed
1678 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1680 * Application.cs: Introduced sub-class to allow tracking of
1681 threads and centralized triggering of the event mess for
1682 ThreadExit, AppExit, etc.. (#76156)
1684 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
1687 - Do not return a null icon index value for a mime subclass.
1688 Instead try the main mime type class too.
1689 - Seems that some newer distributions don't have a link to some
1690 gnome default icons anymore. So check the default gnome dir too.
1693 2006-05-16 Jackson Harper <jackson@ximian.com>
1695 * MdiClient.cs: Don't paint the parent background image if we have
1696 our own background image.
1698 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
1701 - PerformLayout: Do not shrink space filled by DockStyle.Fill
1702 controls, all filled controls are supposed to overlap (#78080)
1703 - UpdateZOrder is supposed to update the control's z-order in the
1704 parent's z-order chain. Fixed to behave like that
1705 - BringToFront: Removed obsolete code
1706 - SendToBack: Simplyfied
1707 - SetChildIndex: Trigger layout calculations when Z-order changes
1708 since layout is done by z-order
1710 2006-05-16 Chris Toshok <toshok@ximian.com>
1712 [ fixes bug #78410 ]
1713 * DataGrid.cs (set_AlternatingBackColor): use
1714 grid_drawing.InvalidateCells instead of Refresh().
1715 (set_BackColor): call grid_drawing.InvalidateCells.
1716 (set_BackgroundColor): use Invalidate instead of Refresh.
1718 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1719 invalidate the cell area.
1721 2006-05-15 Chris Toshok <toshok@ximian.com>
1723 [ fixes bug #78011 ]
1724 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1725 on to DataGridPaintRow.
1726 (DataGridPaintRow): take a clip argument, and only draw the cells
1727 which intersect it. same with the not_usedarea.
1729 * Theme.cs (DataGridPaintRow) add @clip parameter.
1731 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1732 XplatUI.ScrollWindow.
1733 (ScrollToRow): same.
1735 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1736 with last column which was causing a gray swath to appear with the
1737 XplatUI.ScrollWindow code.
1739 2006-05-15 Chris Toshok <toshok@ximian.com>
1741 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1742 use XplatUI.ScrollWindow.
1743 (VerticalScrollEvent): use XplatUI.ScrollWindow.
1745 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
1747 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1749 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
1751 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1752 file since there are no equivalent X11 cursors
1754 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
1756 * MonthCalendar.cs : DateTimePicker should reflect selected date
1757 on mouse*up*, not mouse*down*. Fixed originally reported part of
1760 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
1762 * TabControl.cs : When argument index is equal or more than tab
1763 count, just ignore. Fixed bug #78395.
1765 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
1767 * Control.cs: Dispose all child controls when control is diposed (#78394)
1769 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
1771 * ColorDialog.cs: Finally it is possible to select the color with
1774 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
1776 * PrintDialog.cs: Fix typo
1778 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
1780 * PrintDialog.cs: PrintDialog is not resizable
1781 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1782 color. Made some ToolBar drawing methods protected virtual.
1784 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
1786 * PrintDialog.cs: Implementation of the PrintDialog
1788 2006-05-12 Chris Toshok <toshok@ximian.com>
1790 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1791 thumb, instead use MoveThumb. This has the side effect of making
1792 most of the other thumb moving machinery use MoveThumb as well.
1793 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1794 need to actually invalidate the rectangle where the new thumb will
1796 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1797 We force an Update() after, so it's not as fast as it could be,
1798 but at least there's zero flicker and no droppings.
1799 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1800 (UpdateThumbPos): add another argument (dirty), which says whether
1801 or not to calculate/add dirty regions which we later invalidate.
1802 For cases where we know we're going to use MoveThumb, we pass
1803 false for this. Otherwise, pass true.
1805 2006-05-12 Jackson Harper <jackson@ximian.com>
1807 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1810 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
1812 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1813 and GetClipRegion methods and UserClipWontExposeParent property.
1814 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1815 overriding UserClipWontExposeParent property, setting to false, since
1816 Win32 handles the required expose messages to draw our clipped parent
1818 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1819 PaintEventStart to set the user clip region if set.
1821 - Now internally tracking the Region for the control since we need to
1822 store it if the handle is not yet created and only set it when it
1823 becomes created. Before setting the region forced handle creation
1824 - Added code to draw the parents underneath a user-clipped region
1825 * Hwnd.cs: Added UserClip property
1827 2006-05-12 Chris Toshok <toshok@ximian.com>
1829 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1830 (set_Maximum): same.
1831 (set_Minimum): same.
1832 (set_SmallChange): same.
1833 (OnMouseUpSB): remove the call to refresh when releasing the
1834 thumb. We shouldn't need it.
1836 2006-05-12 Miguel de Icaza <miguel@novell.com>
1838 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1839 AutoSize set to None, we do not need to relayout everything, we
1840 just need to invalidate the current region.
1842 (Draw): Do not draw the entire ClientArea, just redraw the
1843 clip area being passed.
1845 * MdiClient.cs: Make MdiClient constructor with the Form argument
1848 2006-05-12 Jackson Harper <jackson@ximian.com>
1850 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1851 parents background image, but strangely not their own.
1852 - (DrawStatusBarPanel): Take into account horizontal alignment
1853 when drawing the strings and icons.
1855 2006-05-12 Mike Kestner <mkestner@novell.com>
1857 * ListBox.cs: avoid invalidations for focus when the collection is
1860 2006-05-12 Chris Toshok <toshok@ximian.com>
1862 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1863 invalidate the entire thumb area. Call InvalidateDirty which
1864 limits the redraw to the thumb itself and surrounding pixels.
1866 * XplatUIX11.cs (ScrollWindow): optimize copying.
1868 2006-05-12 Chris Toshok <toshok@ximian.com>
1870 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1871 Figure out the positioning/layout in a single pass instead of
1872 multiple recursive invocations. Speeds up the initial display of
1873 the data grid. Also, make many things private that were
1874 originally public but unused outside this class.
1876 2006-05-11 Jackson Harper <jackson@ximian.com>
1878 * MdiClient.cs: Improved layout code.
1880 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
1882 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1885 2006-05-11 Chris Toshok <toshok@ximian.com>
1887 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1888 union of that will always be {0,0,width,height}.
1890 2006-05-11 Jackson Harper <jackson@ximian.com>
1892 * Form.cs: Match MS's DefaultSize for forms (they must have
1893 changed the size in sp2).
1895 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
1897 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1899 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
1901 * TextControl.cs : Fixed bug #78109. This incorrect position
1902 comparison caused crash on automatic line split.
1903 * TextBoxBase.cs : reduce duplicate code.
1905 2006-05-10 Jackson Harper <jackson@ximian.com>
1907 * MdiClient.cs: Active form is only sent to the back when using
1908 the Next form functionality, when a form is clicked the current
1909 active shouldn't be sent to the back.
1910 - Layout the mdi windows when the container is first made visible.
1911 * Form.cs: Give the MdiClient a ref to the containing form when we
1914 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
1916 * LinkLabel.cs : link_font could be uninitialized, so populate one
1917 before actual use. Fixed bug #78340.
1919 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
1921 * XplatUIX11.cs : clipboard format native value is IntPtr.
1924 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
1927 - Instead of showing context menus directly we send WM_CONTEXTMENU,
1928 which is passed up the parent chain by DefWndProc
1929 - We now handle WM_CONTEXTMENU to display any menu, or pass it
1930 to DefWndProc (#77956)
1931 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1933 2006-05-10 Jackson Harper <jackson@ximian.com>
1935 * MdiClient.cs: We need to remove the controls from the mdi
1936 collection, when we close the window.
1937 * MdiWindowManager.cs: Special handling of closing mdi windows.
1938 * InternalWindowManager.cs: Make the close method virtual so the
1939 mdi window manager can handle it specially.
1941 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
1944 - Recalculate grid when the data source has changed
1945 - Matches styles provided by user from all data sources types
1946 * DataGridTableStyle.cs: For columns that provided by the user set the
1947 with the preferred value is there was unassigned.
1948 * CurrencyManager.cs: throw OnItemChanged event
1950 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
1952 * PictureBox.cs: Don't animate until handle is created. Start animation
1953 when handle is created.
1955 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
1957 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1959 * XEventQueue.cs: We don't need to provide the extra info
1961 2006-05-10 Jackson Harper <jackson@ximian.com>
1963 * MdiClient.cs: If the mdi clients parent form has a background
1964 image set, we draw that background image for the mdi area's
1967 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
1969 * TextBoxBase.cs: Set IBeam cursor (#78347)
1971 2006-05-10 Mike Kestner <mkestner@novell.com>
1973 * ToolBar.cs: fix some text padding issues with ButtonSize
1974 calculation. Update the default size to match MS documentation.
1975 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1976 button size. Fixes #78296.
1978 2006-05-10 Mike Kestner <mkestner@novell.com>
1980 * ListBox.cs: use is_visible for scrollbar positioning in case the
1981 control isn't on screen yet. Fix off by one with Right vs Width
1982 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1984 2006-05-10 Jackson Harper <jackson@ximian.com>
1986 * X11Dnd.cs: Drop to a control with another control on top of it.
1987 * ToolBar.cs: Work on a copy of the buttons list, so that it can
1988 be modified in click handlers. TODO: Look for similar problems in
1991 2006-05-09 Jackson Harper <jackson@ximian.com>
1993 * Form.cs: Window managers need the old window state when setting
1995 * InternalWindowManager.cs: Allow the base mdi window manager to
1996 handle more of the MDI only stuff (like maximize buttons).
1997 * MdiWindowManager.cs: Fix some snafus in changing the window
1998 state. Add all the menu functionality, for both popup and
2000 * MdiClient.cs: When a new form is selected the currently
2001 activated form is sent to the back, this matches MS.
2002 - Implement a new method to activate the next mdi child window.
2004 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
2007 - Added new InternalCapture method to allow controls to prevent
2008 the capture behaviour on the click handlers
2009 - Switched to use InternalCapture
2011 - Using InternalCapture to prevent mouse captures from being released
2012 on mouse button release (Fixes #78100)
2013 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
2014 returns Form borders if a caption is present. (Fixes #78310)
2016 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
2018 * TreeNode.cs: Changed serialization .ctor to not require every field
2019 to be present. (#78265)
2020 * OwnerDrawPropertyBag.cs: Added serialization .ctor
2022 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
2024 * MimeIcon.cs: for is faster than foreach for strings.
2026 2006-05-05 Mike Kestner <mkestner@novell.com>
2028 * CheckedListBox.cs: update check handling code to not use selected.
2029 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
2030 behavior for visual feedback, motion response, shift/ctrl handling,
2031 and properly deal with all 4 selection modes. Updates to bounds
2032 handling logic. Add scroll wheel support. [Fixes #77842]
2034 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
2037 - Moved adding of Implicit controls into .ctor. That way, subsequent
2038 creation of the controls will not cause them to think they are
2039 toplevel windows (fixes #78200 header problem)
2040 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
2041 - Switched visibility setting of header control to use internal field
2042 to avoid triggering handle creation
2043 - Now checking if handle is created before causing a refresh when items
2044 are added (This makes us now match handle creation time with MS)
2045 * Splitter.cs: Removed loading of private splitter cursor, switched to
2046 Cursors version now that that is loading the right ones
2047 * Cursors.cs: Load proper splitter cursors from resources
2048 * Cursor.cs: Added second method of loading resource cursors for the
2049 VS.Net users amongst us
2051 2006-05-05 Mike Kestner <mkestner@novell.com>
2053 * ListView.cs: give header_control a minimum size based on the
2056 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
2058 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
2059 window seems to do that with metacity, so set that type. (#78120)
2061 2006-05-05 Mike Kestner <mkestner@novell.com>
2063 * ListViewItem.cs: fix Details mode checkbox layout bug.
2064 * ThemeWin32Classic.cs: draw a ListView column header for unused space
2065 at the end of the header, if it exists. [Fixes for #78200]
2067 2006-05-04 Jackson Harper <jackson@ximian.com>
2069 * MdiClient.cs: Add a helper property to get the container form.
2070 * MdiWindowManager.cs: We have to make sure to use the menu origin
2071 when drawing the icons and buttons, this fixes maximized window
2072 icons/buttons on win32.
2073 * InternalWindowManager.cs: Reset the restore captions when a
2074 window goes from Maximized to Minimized and vice versa. Move the
2075 DrawMaximizedButtons into the MdiWindowManager source, tool
2076 windows can't be maximized. NOTE: This could use a little
2077 refactoring if time ever permits.
2079 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
2081 * TextBox.cs: Add MWFCategoryAttributes
2082 * TextBoxBase.cs: Add MWFCategoryAttributes
2083 * Form.cs: Add MWFCategoryAttributes
2085 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
2087 * Control.cs: Add MWFCategoryAttributes
2088 * ScrollableControl.cs: Add MWFCategoryAttributes
2090 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
2092 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
2093 Divider is true. Fix a little glitch in PropertyToolBar
2096 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
2099 - Dispose: Call base.Dispose, this causes the disposed event
2100 to be fired (and probably other, more important stuff)
2101 - SetVisibleCore: Set is_visible to true after creating the
2102 window so that the window still gets created invisible (if
2103 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
2104 to generate a WM_ACTIVE message
2105 * Form.cs: Call Dispose when we want to destroy the window, instead of
2106 just destroying the handle (Dispose will do that for us)
2108 - RootWindow also needs a queue, so we can properly process the
2109 property change events from RootWindow (like Activate)
2110 - Generatic synthetic WM_ACTIVE message when the active window is
2113 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
2115 * LinkLabel.cs: Trigger a recalc of our label dimensions when
2118 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
2120 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
2121 for determining width and height (image might not be assigned if
2122 we're drawing an imagelist)
2124 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
2126 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
2127 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
2129 * Theme.cs: No longer returns hardcoded menu height, instead calls
2131 * Form.cs (OnLoad): Scaling happens before triggering Load events
2134 2006-05-01 Mike Kestner <mkestner@novell.com>
2136 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
2138 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
2140 * TextBoxBase.cs: Removed Fixme
2141 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
2143 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
2146 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
2147 the rectangle relative to the parent, considering borders. We
2148 don't really want that.
2149 - ScrollWindow: Fixed warning to be more understandable
2150 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
2151 scrollbars and scroll only the visible area
2152 * RichTextBox.cs: Removed debug output
2154 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
2156 * NumericUpDown.cs (Text): Just use base
2157 * UpDownBase.cs: Ensure txtView is created before using it
2159 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
2161 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
2162 casting to IntPtr to avoid 64bit overflow errors
2164 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
2167 - AllowDrop: Don't force handle creation.
2168 - CreateHandle: Added call to tell driver if we're allowed to drop
2170 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
2172 * FileDialog.cs: Remember the last directory not only for the
2173 current instance but also for new FileDialog instances.
2175 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
2177 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
2178 broke sending async messages
2180 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
2183 - ScrollWindow: Fixed method. We finally generate expose events again
2184 for scrolled areas. This was causing 'garbage' when scrolling
2185 textbox and other controls that used ScrollWindow
2186 - Switched from using the regular queue for paint events to the MS
2187 model of 'generating' paint events when the queue is empty.
2188 We use the new XQueueEvent.Paint subclass to store which windows
2190 - AddExpose now takes the x/y/width/height of the exposed area
2191 and inserts the window into the paint queue if not already there
2192 - InvalidateWholeWindow: Switched to use new AddExpose method
2193 - UpdateMessageQueue: Added which queue to monitor for paint events
2194 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
2195 the unlikely case nothing above handles it. We reset the expose
2196 pending states to get them off the queue.
2197 - GetMessage: Now pulls a paint event if no other events are in the
2199 - Invalidate: Switched to new AddExpose method
2200 - PeekMessage: Updated to understand pending paint events
2201 - UpdateWindow: Fixed logic bug. We were only updating if the window
2202 didn't need updating. Also switched to sending WM_PAINT directly,
2204 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
2205 and random access Remove(). The random access is needed to handle
2206 UpdateWindow() where a WM_PAINT is sent directly without accessing
2208 * ScrollBar.cs: Added Update() calls to cause immediate updates to
2209 allow for better feedback when scrolling. Scrollbars are small and
2210 the immediate update should make it 'feel' more responsive without
2211 slowing things down. ScrollBar still needs it's invaliate logic
2212 updated to not always invalidate the whole bar on certain changes.
2214 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 (BackColor): if the control does not support a transparent background,
2218 return the default backcolor when the parent backcolor is transparent.
2220 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
2222 * Application.cs: Updated to new StartLoop/GetMessage API
2223 * RichTextBox.cs: Provide some output on RTF parsing errors
2224 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
2225 new queue_id argument to GetMessage and PeekMessage to allow faster
2226 handling of per-thread queues in drivers.
2227 * Hwnd.cs: Added Queue tracking and property
2228 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
2229 * XEventQueue.cs: Added thread trackingA
2230 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
2232 - Implemented new per-thread queue
2233 - GetMessage: Fixed return/break behaviour on several cases. We were
2234 returning stale messages in some cases, instead of just processing
2237 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
2239 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2241 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
2243 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
2244 fixed off-by-one comparisons between Width/Height and Right/Bottom.
2246 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
2248 * PropertyGridView.cs: Fix drop down width.
2250 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
2252 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
2253 a mess in DrawToolBar, so I removed one of them.
2255 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
2257 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
2258 needed (clip). Otherwise we get artifacts.
2260 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
2262 * FixedSizeTextBox.cs: Added constructor to allow specifying which
2264 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
2265 and switched FixedSizeTextBox to only be fixed vertical (#78116)
2266 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
2267 if it matches the scale base font (avoids unneeded scaling)
2269 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
2271 * X11DesktopColors.cs: One gtk_init_check should be enough
2273 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
2275 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
2278 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
2281 - Generate OnTextChanged for Backspace even if we're only deleting
2282 the current selection
2283 - When setting the Text property, only select all text if the
2284 control does not have focus when it is being set. Otherwise
2285 just place the cursor at the beginning of the control
2287 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
2289 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
2290 Added a little helper to draw PropertyGrid ToolBar with a different
2291 border and a different BackColor.
2292 * PropertyGrid.cs: Some background parts didn't get painted with the
2293 correct background color. Added a class that helps us to draw the
2294 correct border for PropertyGridView and a class that helps us to
2295 draw ToolBars with a different backcolor
2296 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
2298 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
2300 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
2301 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
2303 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
2305 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
2306 into the palette entries. Also, since we're working on a copy
2307 we needed to copy the palette back onto the bitmap.
2308 * Cursor.cs: Same fix as XplatUIWin32.cs.
2310 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
2312 * ImageListStreamer.cs: Need to read the var (or we're off)
2314 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
2316 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
2317 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
2318 TextBoxBase.cs: Unused var fixes
2319 * AxHost.cs: Small 2.0 fix
2320 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
2321 as it seems that is what at least Metacity expects. This will make
2322 icons show up on 64bit platforms. We still have some 64bit size
2323 issues, though, since the startup app window size still won't match.
2325 2006-04-25 Mike Kestner <mkestner@novell.com>
2327 * *.cs: cleanup newly reported exception var unused warnings.
2329 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
2331 * ThemeWin32Classic.cs: Button image alignment now matches exactly
2334 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
2336 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
2337 image. The image position is always the same, no matter if the
2338 button is pressed or not.
2340 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
2342 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
2343 selection and set the correct filename for SaveFileDialog.
2344 Patch by Emery Conrad.
2346 2006-04-24 Mike Kestner <mkestner@novell.com>
2348 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
2349 check for item.X outside the ClientRect instead of item.Y. Fixes
2352 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2354 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
2355 trust that value blindly and do some sanity check. Fixes bug #77814.
2357 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2359 * ImageListStreamer.cs: save the mask as a 1bpp image.
2361 2006-04-21 Mike Kestner <mkestner@novell.com>
2363 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
2364 pass Checked and Indeterminate to the Theme Engine. Improve
2365 encapsulation with ListBox.
2366 * ListBox.cs: Keep a StringFormat instead of calculating it every item
2367 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
2368 nested types. Move all CheckState functionality to CheckedListBox.
2369 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
2370 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
2371 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2372 single base list. Fix scrollbar sizing and placement to mirror MS.
2373 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2375 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2376 for CheckedListBox by using new DrawItemState info. Center the
2377 checkboxes on the items. Use new StringFormat property.
2379 2006-04-18 Jackson Harper <jackson@ximian.com>
2381 * Form.cs: MdiChildren don't do default locations the same way as
2382 regular forms. This prevents a crash when trying to position the
2385 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
2387 * PropertyGridTextBox.cs: Formatting, copyright
2388 * PropertiesTab.cs: Formatting
2389 * PropertyGrid.cs: Formatting
2390 * PropertyGridView.cs: Formatting, fix drop down, enabled double
2391 click toggling of values
2393 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
2395 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2396 * Control.cs (.ctor): verify_thread_handle is static, don't reset
2397 every time a control is created
2398 * Application.cs: Removed obsolete EnableRTLMirroring method
2400 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
2402 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2403 SelectedIndex to -1. Fixes bug #78121.
2405 2006-04-17 Jackson Harper <jackson@ximian.com>
2407 * Binding.cs: Handle null values for Current and BindingContext.
2408 This occurs when binding is a little delayed.
2409 * CurrencyManager.cs: return null for Current when there are no
2411 - Hookup to the listchanged event on the DataView and update
2412 bindings when the list is changed. This fixes late binding of
2415 2006-04-17 Jackson Harper <jackson@ximian.com>
2418 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2421 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
2423 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2425 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2426 with the correct ButtonState
2428 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
2430 * XplatUIX11.cs: Improved distinguishing between window types to
2431 tell the WM a type closer to what the app wants (Fixes #78107)
2433 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
2435 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2438 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
2440 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2441 drawing code to reflect the size grip changes
2443 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2445 * ImageListStreamer.cs: fix handling of the mask that follows the main
2446 bitmap when deserializing and serialize it properly. The generated mask
2447 should better be a 1bpp image, but I'll do that later.
2449 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
2451 * FileDialog.cs: Show something in the DirComboBox on *nix if the
2452 path doesn't fit into some of our Current.Places
2454 2006-04-13 Jackson Harper <jackson@ximian.com>
2456 * ComboBox.cs: Use borders instead of drawing our own decorations,
2457 try to obey correct rules for heights.
2460 * ThemeClearLooks.cs:
2461 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2462 this is now handled by borders.
2463 - Remove unused DrawListBoxDecorationSize method.
2465 2006-04-13 Mike Kestner <mkestner@novell.com>
2467 * MenuAPI.cs: null guarding for the disbled click check fixes crash
2470 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
2472 * ThemeWin32Classic.cs:
2473 - Fixed CPDrawStringDisabled
2474 - Corrected drawing of disabled menu items
2475 - Fixed drawing of disabled radio buttons (bug #78095)
2476 - Draw check in a disabled CheckBox with color ControlDark
2478 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2480 * Form.cs: Use the provided width when calculating the menu size;
2481 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2482 and ClientSize.Width won't be updated yet
2483 * Application.cs: Use Visible instead of Show() to make form visible,
2484 this way we create the handle later and menusize is considered
2486 2006-04-12 Mike Kestner <mkestner@novell.com>
2488 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2491 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2493 * TextBox.cs: Implemented context menu
2495 2006-04-12 Mike Kestner <mkestner@novell.com>
2497 * ListView.cs: implement box selection. fixes #77838.
2498 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2500 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2502 * XplatUIX11.cs: Added setting of window type when transient window
2503 is created (metacity would move it otherwise)
2504 * X11Structs.cs: Added WINDOW_TYPE atoms
2505 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2506 background (the control is Opaque but still wants transparent
2509 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2511 * Control.cs: Added OnPaintBackgroundInternal to allow controls
2512 that set Opaque but don't mean it (like all ButtonBase-derived
2513 controls) to still draw their background
2514 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2517 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2519 * Control.cs (PaintControlBackground): Set the graphics object
2520 on our PaintEvent to null to prevent it from being disposed
2521 when the PaintEvent gets disposed
2523 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
2525 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2526 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2528 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
2531 - Added transparency check to BackColor property. Transparent
2532 backgrounds are only allowed if the control styles permit it
2533 - Added recursive painting of parent control background and
2534 foreground if a control with a transparent backcolor is drawn
2535 (Thanks to Tim Ringenback for providing his 'hack' as a base
2536 for this patch) Fixes #77985 and #78026.
2537 - Added Opaque style check before calling OnPaintBackground, no
2538 need to draw the background if the control is opaque
2539 - Removed ControlAccessibleObject owner variable (inherited from
2540 base, no need to define again)
2541 - Added some documentation links explaining the drawing events
2544 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
2546 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2547 that the affected control is the located at the left border of our
2548 parent (Fixes #77936)
2550 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
2552 * TextBoxBase.cs: When rendering disabled or readonly controls,
2553 draw the background with 'Control' instead of 'Window' color as
2554 long as the user hasn't specifically set a color
2556 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
2558 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2559 since that won't be updated if the user types text (only if it's
2560 programatically set)
2562 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
2564 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2565 layout changes do to app-triggered resizes will have the proper
2566 display rectangle for layout
2568 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
2570 * ThemeWin32Classic.cs:
2571 - Make use of the SystemBrushes and SystemPens wherever possible
2572 - Corrected some highlight colors
2573 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2575 * Theme.cs: Added Empty field to CPColor struct
2577 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
2579 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2580 is displayed when calculating the display rectangle. Thanks to Mike
2581 for teaching me the err of my ways.
2583 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
2585 * ScrollableControl.cs:
2586 - Rewrote DisplayRectangle code, now returning the proper x/y coords
2587 (instead of 0,0) and we now return the real width/height instead of
2588 just the clientrectangle, adjusted for padding. The rectangle is
2589 now cached and created by the new CalculateDisplayRectangle method.
2590 - Created new CalculateDisplayRectange method, which basically does
2591 what get_DisplayRectangle() did originally, but now using the
2592 right edge instead of DisplayRectangle to determine the size of
2594 - get_Canvas(): Fixed it to properly calculate canvas for
2595 right/bottom controls which seem to be placed to the right/bottom
2596 of any controls that have a fixed location
2597 - Removed TODO that's taken care of
2598 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2599 and SetDisplayRectLocation according to new MSDN2 docs
2600 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2601 event when that is called, this is added for compatibility
2602 - ScrollControlIntoView(): Implemented.
2603 - Switched scrollbars to be implicit, they shouldn't be selectable
2604 * ContainerControl: Now that ScrollControlIntoView is implemented, we
2605 call it when the active control is set/changed
2606 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2607 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2608 implicit_control variable (used for native Win32 message generation)
2609 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
2610 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2611 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2612 * XplatUIStructs.cs: Added ScrollBarCommands enum
2614 2006-04-10 Jackson Harper <jackson@ximian.com>
2617 * CheckedListBox.cs:
2624 * PrintPreviewControl.cs:
2630 * UpDownBase.cs: Fixup base event overrides.
2632 2006-04-06 Mike Kestner <mkestner@novell.com>
2634 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2635 all user-initiated value changes to min <= value <= max-thumbsz+1.
2636 (set_Value): check for vert/horiz when calculating new thumb position.
2637 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2639 (OnMouseMoveSB): refactor the thumb dragging code and refine
2640 invalidation logic to reduce flicker.
2641 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2642 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2643 (UpdateThumbPosition): small code readability cleanup
2645 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
2647 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2650 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
2652 * ThemeNice.cs: Use a better graphics effect when a button is pressed
2654 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
2656 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2657 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2658 This dramatically reduces the number of Pen.Dispose calls.
2659 Where possible call ResPool methods only once instead of calling it
2660 over and over again (for example for the same color).
2662 2006-04-06 Mike Kestner <mkestner@novell.com>
2664 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2665 Also remove an unused private field on the collection. Fixes #77972.
2667 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
2669 * ThemeNice.cs: Added ToolBar drawing code
2671 2006-04-06 Mike Kestner <mkestner@novell.com>
2673 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2674 I'm assuming that means we need to look up the toplevel for the
2675 provided control. Fixes the crash trace in #77911 but exposes another
2676 crash in some strange reflection usage in NDocGui.
2678 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
2680 * ThemeNice.cs: Gave it a little silver touch and added Images
2682 * FontDialog.cs: FontDialog is not resizable
2683 * FileDialg.cs: Added SizeGripStyle.Show
2685 2006-04-05 Jackson Harper <jackson@ximian.com>
2687 * KeyboardLayouts.cs: Remove warning.
2689 2006-04-05 Jackson Harper <jackson@ximian.com>
2691 * Control.cs: Enable OnPaintInternal so we can use it for drawing
2692 all of our controls instead of Paint +=.
2707 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2708 use OnPaintInternal. Remove Width/Height and Visible checks in
2709 paint handler, this is done at a higher level now.
2710 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2711 * PaintEventArgs.cs: Add a handled flag so controls that don't
2712 want anymore painting after OnPaintInternal can make sure OnPaint
2715 2006-04-05 Mike Kestner <mkestner@novell.com>
2717 * Form.cs: fix the menu WndProc hacks to respect the native enabled
2718 state of the form, so that we don't process events when Modal dialogs
2719 are up. Fixes #77922.
2721 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
2723 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2726 2006-04-05 Mike Kestner <mkestner@novell.com>
2728 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2730 2006-04-05 Mike Kestner <mkestner@novell.com>
2732 * ListView.cs (HeaderMouseMove): null guarding for the over column
2733 when setting up the drag_to_index. Fixes #78015.
2735 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
2737 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2738 in the taskbar. Transient windows seem to accomplish that.
2740 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
2743 - Re-enabled CreateParams.X/Y code for FormStartPosition
2744 - Added code for manual placement when creating the Control
2745 - Incomplete patch to treat MDI forms differently when
2746 setting the ClientSizeCore. (Still need to figure out handling
2749 - When we're explicitly setting the X/Y position of a non-Child
2750 window, let the WM know. Metacity really wants this.
2752 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
2754 * ThemeNice.cs: Added CPDrawButton
2756 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
2758 * ThemeNice.cs: Changed the color for focused buttons and activated
2759 the arrows for small scroll buttons.
2761 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
2763 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2764 anymore. Changed some method modifiers to protected (virtual)
2765 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2767 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2768 Updated drawing of menus, buttons and progressbars; added
2771 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2773 * ImageListStreamer.cs: implemented serialization/deserialization
2776 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
2778 * ThemeWin32Classic.cs:
2779 - Removed all the DrawFrameControl stuff; CPDrawButton,
2780 CPDrawCheckBox and CPDrawRadioButton are now handled directly
2782 - Updated and corrected the drawing code of CPDrawButton,
2783 CPDrawCheckBox and CPDrawRadioButton to better match ms
2784 - Updated theme checkbox and radiobutton code to use the CP*
2787 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
2789 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2792 2006-03-31 Jackson Harper <jackson@ximian.com>
2794 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2796 * UpDownBase.cs: Don't CreateGraphics manually, use a
2797 Refresh. Ideally we would invalidate the correct areas here.
2799 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
2802 - We now track the mapping state of windows. If a window (or
2803 one of it's parents) is not mapped we no longer permit
2804 WM_PAINT messages to be generated since we'd otherwise get
2805 lots of BadMatch X errors. Jackson did all the work figuring
2807 - Destroying the caret if the window it's contained in is
2808 destroyed. Can't use regular DestroyCaret method since it
2809 might fall into a drawing function (trying to remove the
2810 caret) and with that generate new BadMatch errors. Again,
2811 Jackson tracked this down.
2812 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2813 make sure we send the messages to all windows. (The old code
2814 would send the WM_DESTROY to the window, and then all child
2815 windows would be 'gone' because the WM_DESTROY handle lookup
2816 would no longer find the destroyed window)
2817 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2818 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2820 2006-03-31 Jackson Harper <jackson@ximian.com>
2822 * ScrollableControl.cs: Dont recalc if we are not visible.
2824 2006-03-31 Mike Kestner <mkestner@novell.com>
2826 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2827 the visibility branch.
2829 2006-03-31 Jackson Harper <jackson@ximian.com>
2831 * ScrollBar.cs: Cap values when incrementing/decrementing.
2833 2006-03-31 Mike Kestner <mkestner@novell.com>
2835 * MenuAPI.cs: setup menu.tracker for popup/context menus.
2836 * ToolTip.cs: guard against timer expirations with no active control.
2837 Not sure why it happened.
2839 2006-03-31 Mike Kestner <mkestner@novell.com>
2841 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2843 * ToolTip.cs: Position the tooltip based on where the cursor is at
2844 popup time, not at MouseEnter time. Add a Down state so that we don't
2845 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2846 positioning offset. Lookup DisplaySize at positioning time, since it
2847 can theoretically change during invocation.
2848 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2849 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2851 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
2853 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2854 Fixes behaviour when the Text property of the box is String.Empty
2856 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
2858 * XplatUIX11.cs: Only send mouseleave for our client windows, not
2859 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2862 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
2864 * FileDialog.cs: Visual enhancement for the popup buttons in
2867 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
2869 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2872 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
2874 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2875 highlighted menu items to match ms
2877 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
2879 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2881 2006-03-30 Mike Kestner <mkestner@novell.com>
2883 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2884 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2885 go active to account for HotLight to Selected transition.
2886 * MenuItem.cs: add internal Selected prop. Fill out the Status
2887 property by calculating it from item info. Add HotLight,
2888 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2890 2006-03-30 Mike Kestner <mkestner@novell.com>
2892 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2894 2006-03-29 Jackson Harper <jackson@ximian.com>
2896 * Form.cs: Implement TODO.
2898 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
2900 * PrintPreviewDialog.cs: Implemented missing methods and events; still
2901 missing proper dialog setup in the constructor
2903 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
2905 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2907 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2908 - Fixed ResetBindings and removed TODO
2909 - Added check for cross-thread calls to get_Handle()
2910 - Added Marshaller attribute for set_Font to satisfy class status
2911 * FontDialog.cs: Removed TODOs that seemed implemented
2912 * UpDownBase.cs: Removed unneeded TODO and Fixme
2913 * MessageBox.cs: Implemented support for Default button and removed TODO
2914 * FileDialog.cs: Removed obsolete TODO
2915 * DomainUpDown.cs: Removed obsolete TODO
2916 * ButtonBase.cs: Removed obsolete TODO
2917 * XplatUIWin32.cs: Removed obsolete TODO
2919 - Removed obsolete TODO
2920 - Calling CheckAcceptButton when the acceptbutton is changed to allow
2921 internal status updates
2922 - Making sure the active control is selected when the control is created
2923 * CurrencyManager.cs: Removed obsolete TODO
2925 2006-03-29 Mike Kestner <mkestner@novell.com>
2927 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2928 of PrintPreviewDialog and RichTextBox.
2930 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
2932 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2933 DarkDark, Light and LightLight colors for a specific color
2934 * ThemeWin32Classic.cs:
2935 - Use Button drawing code to draw RadioButtons and CheckBoxes with
2937 - Make use of the new ResPool helper CPColor
2938 - Draw ProgressBar and StatusBar with correct 3D borders
2940 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
2942 * ColorDialog.cs: Return selected color. Fixes bug #77940.
2944 2006-03-28 Mike Kestner <mkestner@novell.com>
2946 * ListView.cs: fix Icon layout to plan for scrollbar widths when
2947 calculating col/row counts.
2949 2006-03-28 Mike Kestner <mkestner@novell.com>
2955 switch to explicit interface method implementation for some methods
2956 corcompare identifies as inconsistent with MS.
2958 2006-03-28 Mike Kestner <mkestner@novell.com>
2962 add a few missing methods from the class status output.
2964 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
2966 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2969 2006-03-28 Mike Kestner <mkestner@novell.com>
2971 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2973 2006-03-27 Mike Kestner <mkestner@novell.com>
2975 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2976 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2978 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
2980 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2982 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
2984 * ThemeWin32Classic.cs:
2985 - GroupBox: Inserted a little gap between the text and the lines
2987 - Made the code in CPDrawBorder3D more readable
2988 - Corrected the drawing location of the up and down arrows in
2991 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
2993 * ControlPaint.cs: Corrected line widths in DrawBorder for
2994 ButtonBorderStyle Inset and Outset
2996 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
2998 * ThemeWin32Classic.cs:
2999 - Rewrote the totally broken CPDrawBorder3D method. That was
3000 one of the main problems for the terrific ThemeWin32Classic
3002 - Updated and corrected Button drawing
3003 - Correct the dimensions of the SizeGrip to match ms ones
3004 - Removed a small drawing glitch in DrawComboBoxEditDecorations
3005 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
3006 Border3DStyle.Sunken to match ms.
3008 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
3010 * ThemeWin32Classic.cs: First small part of the "de-uglify
3011 ThemeWin32Classic" effort, SizeGrip
3013 2006-03-24 Jackson Harper <jackson@ximian.com>
3015 * XplatUIX11.cs: Give a max idle time of one second, this matches
3016 MS and forces an Idle event every second when there are no other
3017 events in the queue.
3019 2006-03-24 Mike Kestner <mkestner@novell.com>
3021 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
3022 * ListView.Item.cs: fix layout issues with null image lists and images
3023 smaller than checkbox size.
3024 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
3025 mode like MS does. It's weird, but consistent. ;-)
3028 2006-03-24 Mike Kestner <mkestner@novell.com>
3030 * ListView.cs: Scroll wheel support for the item control. Fixes
3033 2006-03-23 Jackson Harper <jackson@ximian.com>
3035 * ScrollableControl.cs: Special case negative sized areas, not
3037 * MonthCalendar.cs: Save the rect of the clicked date so we can
3038 use it for invalidation.
3039 - Try to cut down on the number of invalidates
3040 - Invalidate the rect the mouse is over and was over when moving
3041 the mouse, so we get the focus box following the cursor.
3043 2006-03-23 Mike Kestner <mkestner@novell.com>
3045 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
3046 focus rectangle drawing. Fixes #77835.
3048 2006-03-23 Mike Kestner <mkestner@novell.com>
3050 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
3051 the if and else if and reverting back to the original == check on the
3054 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
3056 * FontDialog.cs: Update the example panel if the selected index of
3057 the fontListBox changes.
3059 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
3061 * FileDialog.cs: Make FileDialog remember which directory it was in
3062 last in the same execution.
3064 2006-03-22 Mike Kestner <mkestner@novell.com>
3066 * FileDialog.cs: make the DropDownMenu on the toolbar display
3067 RadioChecks since they are mutually exclusive and that's what MS does.
3069 2006-03-22 Mike Kestner <mkestner@novell.com>
3071 * Theme.cs: add Color param to CPDrawMenuGlyph.
3072 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
3073 checks and radio marks and arrows are visible on highlighted items.
3074 * ControlPaint.cs: update to use new Theme signature.
3076 2006-03-22 Mike Kestner <mkestner@novell.com>
3078 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
3079 is active. Fixes #77870.
3081 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
3083 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
3084 to be focused/selected after startup
3086 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
3089 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
3090 CustomColors and ShowHelp properties
3091 - Some internal rewrites to get better results when using the
3094 2006-03-22 Mike Kestner <mkestner@novell.com>
3096 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
3097 HoverSelection. Fixes #77836.
3099 2006-03-22 Mike Kestner <mkestner@novell.com>
3101 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
3102 ToggleButtons. (De)Sensitize the Back button around a stack count of
3103 1, not 0. Update ButtonSize based on a pixel count of the win32
3104 control. Adjust the toolbar size/location for new button size.
3106 2006-03-22 Jackson Harper <jackson@ximian.com>
3108 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
3110 * ScrollBar.cs: When doing increments and decrements we need to
3111 set the Value property so that ValueChanged gets raised. A
3112 possible optimization here would be to make an internal SetValue
3113 that doesn't invalidate immediately.
3114 * ToolTip.cs: Tooltips get added to their container (when
3115 supplied) so they get disposed when the container is disposed.
3116 - Don't create tooltips for String.Empty. This prevents all these
3117 little 2-3 pixel windows from showing up when running nunit-gui
3119 * Form.cs: Don't set topmost when setting the owner if the handles
3120 haven't been created yet. The topmost set will happen when the
3121 handles are created.
3123 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
3126 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
3127 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
3128 visible (to allow them to recalculate their sizes)
3130 2006-03-21 Mike Kestner <mkestner@novell.com>
3132 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
3133 methods. Removed a ton of redundant code. Still not really happy with
3134 the border rendering, but I think that's mainly because of the
3135 ControlDarkDark being black instead of a dark grey. Depending on how
3136 close we want to be, we might want to revisit those color choices.
3137 Among the new features added during the refactor were DropDownArrow
3138 pressed rendering, Disabled image rendering. Proper flat appearance
3139 boundary rendering. Removed the Divider and Wrapping dividers since I
3140 can't figure out any combination of themes and conditions to make the
3141 MS control draw a horizontal line on a toolbar despite what the
3142 Divider property docs indicate.
3143 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
3144 conditions and incorrect layout. Updated to coding standard.
3145 * ToolBarButton.cs: refactored layout and positioning code from
3146 ToolBar to here. Invalidate wherever possible instead of forcing
3147 redraws of the whole toolbar.
3148 (Known remaining issues: explicit ButtonSize smaller than provided
3151 2006-03-21 Mike Kestner <mkestner@novell.com>
3153 * ContextMenu.cs (Show): use the position parameter instead of just
3154 showing at the MousePosition.
3156 2006-03-21 Jackson Harper <jackson@ximian.com>
3158 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
3159 control handle this.
3160 * TreeNodeCollection.cs: If we are clearing the root node we need
3161 to reset top_node so calcs can still happen.
3162 * ThemeWin32Classic.cs: This is a Flags so we need to check
3165 2006-03-21 Jackson Harper <jackson@ximian.com>
3167 * DataGrid.cs: Create columns when the binding context has been
3169 * X11Structs.cs: Keysyms are uints.
3170 - Add size to fix build.
3172 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
3174 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3176 - Added ResetMouseHover method to allow controls to retrigger
3177 hovering if they need it more than once
3178 - Implemented MouseHoverTime and MouseHoverSize properties
3179 * Timer.cs: Start() must reset the interval
3180 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
3183 2006-03-21 Jackson Harper <jackson@ximian.com>
3185 * X11Keyboard.cs: improved layout detection. Move the nonchar
3186 tables into this file.
3187 * KeyboardLayouts.cs: Move the tables into resource files.
3189 2006-03-21 Mike Kestner <mkestner@novell.com>
3191 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
3193 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
3195 * Mime.cs: Various speed optimizations. Looking up mime types
3196 is now 2 times faster than before
3198 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
3200 * CreateParams.cs: Added internal menu field
3202 - Switched call order for UpdateBounds; now we always call
3203 the one that also takes ClientSize, and we're calculating the
3204 client size via driver method in the others. The previous
3205 method of tracking client size by difference wasn't working
3206 for forms where even the starting client size wouldn't match
3207 the overall form size (due to borders) (Part of fix for #77729)
3208 - CreateParams(): Do not use parent.Handle unless the handle is
3209 already created. Causes havoc with Nexxia and throws off our
3210 creation of controls
3212 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
3213 - Switched handling of ConfigureNotify over to new PerformNCCalc
3214 method (consolidates code)
3215 - Changed RequestNCRecalc to use new PerformNCCalc method
3216 - Added calls to RequestNCRecalc when menus and borders are changed
3217 to allow app to set NC size. (Part of fix for #77729) This matches
3218 when MS send a WM_NCRECALC on Win32 windows.
3219 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
3220 (Part of fix for #77729). This matches what MS does, they also
3221 send that message when the form is made visible.
3222 - XException.GetMessage: Improved usability of X errors by including
3223 a translation of the window into Hwnd and Control class
3224 - Improved debug info for window creation, reparenting and destruction
3225 - Created helper method WindowIsMapped() [Currently not used]
3226 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
3228 - CreateParams: Now setting our menu on the new internal menu field
3229 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
3230 avoid calculating the same property twice
3232 - Improved usability of ToString() for debugging purposes
3233 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
3234 determine the height of the menu, instead of just the font. This
3235 required to also create a graphics context and to keep a bmp
3236 around (for performance reasons)
3238 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
3240 * MenuAPI.cs: Added OnMouseUp method
3242 - Now remembering the requested client size, avoids size errors
3243 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
3244 instead of base if the menu is active. This is required due to
3245 control now capturing and releasing on down/up and it would
3246 prematurely release our menu capture
3248 2006-03-17 Jackson Harper <jackson@ximian.com>
3250 * KeyboardLayouts.cs: Add the czech layouts.
3252 2006-03-16 Jackson Harper <jackson@ximian.com>
3254 * Control.cs: Use the viewport space when sizing not the controls
3255 client size, so things like ScrollableControl that effect the
3256 viewport size (when scrollbars are added) are computed correctly.
3257 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
3259 - Handle creating BindingManagers for null data sources.
3260 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
3261 source, otherwise when rows are added they are added to the 'fake'
3262 datasource and we will crash when trying to set the position in
3264 - Use Implicit scrollbars on the datagrid so they arent
3267 2006-03-16 Jackson Harper <jackson@ximian.com>
3270 * InternalWindowManager.cs:
3271 * MdiWindowManager.cs:
3272 * X11Keyboard.cs: I really want Mike to love me again (fix
3275 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
3278 - OnMouseDown: Switch to editing mode when clicking on the cell
3279 even if we're clicking on the cell that's currently
3281 - ProcessGridKey: Left/Right now wrap like MS.Net does
3282 - ProcessGridKey: Tab now knows to add a new row when tab is
3283 pressed in the cell of the last column of the
3285 - ProcessGridKey: Enter now adds another row if pressed in the last
3286 row and selectes the new row, same column cell
3287 - ProcessGridKey: Home/End navigate columns, not rows, like
3288 originally implemented
3289 - Broke ProcessKeyPreview code out into an extra Internal method
3290 so it can be called from the edit code
3291 * DataGridTextBox.cs (ProcessKeyMessage):
3292 - Switched to accept Tab keypresses
3293 - Added F2 handling to allow jumping to the end of the edited cell
3294 - Added logic to allow moving caret left/right inside edited cell
3295 and making the edited cell jump when the caret hits cell borders
3296 - Tab and Enter are now passed to the datagrid after being handled
3298 - Removed capture code now that Control handles it
3299 - set_SelectionStart now ensures caret is visible
3301 2006-03-16 Jackson Harper <jackson@ximian.com>
3303 * TrackBar.cs: Debackwards the increment/decrement for handling
3304 mouse clicks on the bar with vertical trackbars.
3305 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
3308 2006-03-16 Mike Kestner <mkestner@novell.com>
3310 * ListView.cs: make shift/ctrl keyboard and mouse selection
3311 consistent with the MS control. Fix a bug in
3312 SelectedListViewItemCollection.Clear that was pissing me off for the
3313 better part of a day because the collection was being altered
3314 underneath us as we walked the list.
3316 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
3318 * Control.cs: Not sure how we could miss this so long, but it seems
3319 that MS.Net has Capture set all the way from before calling
3320 OnMouseDown through sending the mouse events until after
3321 OnMouseUp. This will fix DataGrid's selection being set to end
3322 at the location of the MouseUp.
3324 2006-03-15 Jackson Harper <jackson@ximian.com>
3326 * BindingContext.cs: Check the binding after its added so that it
3327 can initialize the binding managers and hookup to events.
3328 * Binding.cs: Data members seem to sometimes include rows/cols in
3329 the format Row.Column we now take this into account.
3330 - Hookup to the position changed event so we can update the
3331 control when the position has changed in the data set.
3332 * CurrencyManager.cs: Take into account the row/col naming
3333 convention when creating dataset tables.
3334 * BindingContext.cs: Using a newer better way of storing
3335 datasource/datamember pairs. Hopefully this better matches MS for
3336 looking up binding managers.
3339 2006-03-15 Jackson Harper <jackson@ximian.com>
3341 * BindingContext.cs: The currency manager needs the data member
3342 name, if the member is a data set we use the name to find the
3344 * CurrencyManager.cs: When creating the list prefer an IList over
3346 - Attempt to create a DataTable from a DataSet (TODO: might need
3347 some better error checking here, although MS doesn't seem to have much)
3348 - If we have a DataTable create a view and use it as our list.
3350 2006-03-15 Mike Kestner <mkestner@novell.com>
3352 * ListView.cs: keep a matrix of the icon mode layout to facilitate
3353 keyboard navigation. Support Up/Down/Left/Right selection correctly
3354 for all 4 View modes.
3355 * ListViewItem.cs: add internal row/col fields for icon layouts.
3357 2006-03-15 Jackson Harper <jackson@ximian.com>
3359 * TabControl.cs: Redraw the tabs when we resize so their newly
3360 calculated sizes are drawn on screen.
3361 * X11Keyboard.cs: Begginnings of XIM support. We also now support
3362 composite characters.
3363 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
3364 - filter events so that composite characters can be created
3366 * X11Structs.cs: Add XIMProperties enum.
3368 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
3370 * Control.cs (BringToFront, SendToBack): Don't use window or handle
3373 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
3375 * Control.cs (PerformLayout): We don't need to consider visiblity
3376 for anchoring, only for docking. This fixes 'whacky' alignment
3377 in listbox and other controls that use implicit scrollbars after
3378 the previous PerformLayout patch
3379 * ListBox.cs: Switched to use implicit scrollbars
3381 2006-03-14 Mike Kestner <mkestner@novell.com>
3385 - chain up the "new event" overrides to base and use
3386 OnEvent to raise them. Part of fix for bug #76509.
3388 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
3390 * FileDialog.cs: Do not select an item in the parent directory
3393 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
3395 * Control.cs (PerformLayout): It would seem that we considered
3396 invisible windows for our layout. Not quite the right thing
3397 to do. Now we don't any longer, thereby fixing bug #76889.
3399 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
3401 * Control.cs (CanFocus): I goofed. A control can have focus
3402 even though it's not selectable. Made it match MS docs.
3404 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
3406 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3407 center by default (fixes #76895)
3408 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
3409 all uses of Border3DSides.All with the explicit ORd together
3410 Left|Right|Top|Bottom because I assume that nobody was aware
3411 that All also implies a center fill. Most places I checked had
3413 * ProgressBarStyle.cs: Added
3415 2006-03-13 Mike Kestner <mkestner@novell.com>
3417 * ListView.cs: fix breakage in drag shadow header positioning
3418 from Peter's csc compilation fix.
3420 2006-03-13 Mike Kestner <mkestner@novell.com>
3422 * ListView.cs: fix NRE produced by backspacing twice in a focused
3425 2006-03-13 Mike Kestner <mkestner@novell.com>
3427 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3429 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
3431 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3433 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3434 the allowed size before making programmatic size changes
3436 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
3438 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
3439 set, metacity is broken and will still use the emty sizes in
3440 the struct. (Fix for #77089)
3442 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
3444 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
3445 WindowExStyles and marked both enums as Flags
3446 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3447 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3448 to match WindowStyles split
3450 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3451 - Updated to match WindowStyles split
3453 - Fixed FosterParent creation, was using ExStyle on the Style field
3454 (This should help with Popup focus issues)
3455 - Updated to match WindowStyles split
3457 2006-03-13 Jackson Harper <jackson@ximian.com>
3459 * MdiWindowManager.cs: Use the system menu height. Fixes some
3460 strange sizing issues.
3462 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
3464 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3466 - Scroll to caret after inserting text (#77672)
3467 - Make scroll range one pixel higher, fixes off-by-one error (and
3468 makes underlines visible on the last line)
3470 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
3472 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3473 the keyboard state from being stuck with keys in 'pressed' state when
3474 focus is switched away via keyboard
3475 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3476 reset the keyboard if no X11 KeyUp events are expected to come
3477 * X11Structs.cs: Switched type of Visible to bool to match driver
3479 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
3482 - Switched caret to be just 1 pixel wide, matches MS and looks less
3484 - Moved caret display 1 pixel down from the top of the control
3486 - InsertCharAtCharet: Update the selection start if moving the caret
3487 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3488 - No longer always creating the caret when the caret methods are
3489 called. Only the actual ShowCaret/HideCaret will do that now
3490 - Only setting caret visible if the owner control has focus
3491 - UpdateView: Added invalidation-shortcut logic for center and right
3492 aligned text. Previously we'd update all according to the left
3493 logic which caused drawing errors. Also fixed height of invalidated
3494 areas, now properly invalidating the whole area (was off-by-one)
3495 - owner_HandleCreated: Always generate the document when the
3496 handle is created; this ensures that
3498 - Fixed situation where caret would disappear under the right
3499 window border, also improved scrolling behaviour on left-
3501 - Fixed right-aligned textboxes to have a border to the
3502 right instead of the caret being under the right border
3504 - Switched from 'nested' to simple visible/not visible tracking
3505 for caret (part of fix for #77671)
3506 - No longer passing through translated FocusIn/FocusOut messages
3507 since we were notifying too often and the wrong windows. Instead
3508 we just notify our focussed window of receiving or loosing focus
3509 * XplatUIWin32.cs: Switched from 'nested' show/hide
3510 counting for caret to simple visible yes/no behaviour (part of
3513 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
3515 * Mime.cs: Remove debug code...
3517 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
3519 * MimeGenerated.cs: Removed
3520 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3521 and subclasses) from /usr/(local/)share/mime and
3522 $HOME/.local/share/mime.
3524 2006-03-10 Jackson Harper <jackson@ximian.com>
3526 * MdiWindowManager.cs: Recalc the NC area when a window is
3527 maximized/restored so that the menu area is drawn on forms that
3530 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
3532 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3533 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3534 us to force a WM_NCCALCRESIZE message being sent. This is needed
3537 2006-03-10 Jackson Harper <jackson@ximian.com>
3539 * Form.cs: We need to use the ActiveMenu when calculating menu
3541 - Fix nullref when the window manager hasn't been created yet.
3542 * Control.cs: Fix nullref when we try to bring a control to the
3543 front that has no parent.
3544 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3546 - Add a dummy item to the maximized menu so it always has the
3547 correct height. Otherwise when there are no menus we don't get our
3551 2006-03-10 Jackson Harper <jackson@ximian.com>
3553 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3555 * Form.cs: Make the window_state internal so the window managers
3557 - When an MDI child is maximized let its window manager create the
3558 main menu (so it can add its icon).
3559 - Notify the window managers of state changes
3560 - Let the window manager paint its buttons and handle button
3561 clicks on the menu when it is maximized.
3562 * InternalWindowManager.cs: Move the prev_bounds into the mdi
3563 window manager, since tool windows don't use it, only mdi windows.
3564 - Tell the main form that we don't want it to handle NCPAINT
3565 itself to avoid extra painting.
3566 - Handle clicks on a maximized windows menu.
3567 - Handle window state changes
3568 - Handle minimize/maximize clicks correctly by setting the window state.
3569 * MdiWindowManager.cs: Add an icon menu that (the menu you get
3570 when clicking on the forms icon).
3571 - New method to create a forms maximized menu. This is its normal
3573 - Handle window state changes.
3574 - Handle sizing of maximized windows. Maximized windows are just
3575 drawn bigger then the parent visible area. All controls are still
3576 there, they are just outside the visible area (this matches windows).
3577 * MdiClient.cs: No scrollbars when a child window is maximized.
3578 - Let the children windows figure out how big they should be when
3579 sizing maximized windows.
3580 - Implement a version of ArrangeIconicWindows somewhat similar to
3581 Windows version. There are some little differences, but I don't
3582 think any app will rely on the layout of minimized mdi windows.
3584 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
3586 * Padding.cs: Several fixes to allow compiling with csc 2.0
3588 2006-03-09 Jackson Harper <jackson@ximian.com>
3591 * MenuItem.cs: Cheap hack so we can add items to the list without
3592 the events being raised. This allows adding mdi items during
3593 drawing. TODO: Should probably find a better time to add the items.
3595 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
3597 * ThemeWin32Classic.cs:
3598 - CheckBox_DrawText: Added logic to not wrap if not enough space
3599 is available (Fix for bug #77727)
3600 - RadioButton_DrawText: Added logic not to wrap if not enough
3601 space is available (Fix for bug #77727). Also removed some
3602 duplicate code, DrawString always drawing the regular text
3603 before hitting the if statement.
3605 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
3607 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3609 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
3611 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3612 * ContainerControl.cs: Partial implementation of some 2.0 scaling
3613 methods. Moved the new 2.0 properties into alphabetical order with
3614 other properties and added MonoTODO tags
3616 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3618 * AutoScaleMode.cs: Added. Fix build.
3620 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3622 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3623 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3624 and was requiring premature handle creation for calls from above
3625 * Form.cs, Control.cs: Removed handle arguments from calls to
3626 CalculateClientRect()
3628 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3630 * ListView.cs (HeaderMouseMove): Fix csc compilation.
3631 drag_column.column_rect is MarshalByRef and can't be used that way
3633 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3635 * AxHost.cs: Added deserialization constructor for
3636 AxHost+State (fixes 77743)
3638 2006-03-09 Mike Kestner <mkestner@novell.com>
3641 - Added column drag reordering for details view.
3642 - fixed behavior when mouse is dragged off column and
3643 AllowColumnReorder is false.
3644 * ColumnHeader.cs: clone the format too in Clone.
3645 * Theme.cs: add DrawListViewHeaderDragDetails method.
3646 * ThemeWin32Classic.cs:
3647 - impl new method for drawing drag column shadows and targets.
3648 - support column offset for details mode in DrawListViewItem.
3650 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3652 * TextControl.cs: Reset the char_count when the document is cleared
3653 (Fixes bug reported on mono-winforms mailing list)
3655 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3657 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3658 of calling base we simply process the key ourselves, since both
3659 DefWindowProc and the handled method would set m.Result.
3662 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
3664 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3665 method also moves the window; instead implemented a copy of
3666 Control.ScaleCore (Part of fix for #77456)
3668 - Created new CreateGraphicsInternal method to allow providing
3669 a graphics context when no handle is created without triggering
3670 handle creation. (Part of fix for #77456)
3671 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3673 - Switched Constructor to require TextBoxBase instead of Control (to
3674 allow uncast access to CreateGraphicsInternal)
3675 - Safeguarded use of owner.Handle property. No longer accessing it
3676 unless the handle is already created.
3677 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3678 - Now triggering a recalc when owning control becomes visible
3679 * TextBox.cs, RichTextBox.cs: Switched to use new internal
3680 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3681 premature handle creation (Part of fix for #77456)
3683 - We now only destroy our double-buffering buffers when the
3684 control is resized or disposed, but not when visibility
3685 changes. (The code even re-created them twice every time)
3686 - Now requiring a redraw of the buffer on visibility changes
3687 (fixes bug 77654 part 2)
3688 - Not passing OnParentVisibleChanged up unless the control
3690 - CanFocus: Fixed to match MS documentation
3691 - Focus: Fixed to return actual focus state and to check if
3692 setting focus is legal before setting it
3694 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
3696 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3697 when to draw focus rectangle by looking at parent focus and
3698 selected state instead. This fixes TabPages on Linux sometimes
3699 having none or multiple focus rectangles.
3700 * XplatUIX11.cs (SetFocus):
3701 - Don't set the focus if the same window already has focus
3702 - Use SendMessage instead of PostMessage (like it's Win32
3703 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3704 to match MS behaviour
3705 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3708 2006-03-07 Jackson Harper <jackson@ximian.com>
3710 * PictureBox.cs: Revert line I accidently committed last week.
3712 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
3715 - Added new IsRecreating and ParentIsRecreating properties to
3716 allow testing if RecreateHandle has been called on ourselves
3717 or one of our parents
3718 - WndProc(WM_DESTROY): If our control handle is being recreated
3719 we immediately need to create the handle when receiving the
3720 destroy, that way our child windows find a valid parent handle
3721 when they themselves are being recreated upon WM_DESTROY receipt
3722 (fix for bug #77654 part 1)
3724 - DestroyWindow: WM_DESTROY must be sent to our own window before
3725 notifying any child windows. MS documents that child windows
3726 are still valid when WM_DESTROY is received. (Control now relies on
3728 - Added some fine-grain debug options
3730 2006-03-06 Jackson Harper <jackson@ximian.com>
3732 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3733 box and base calculations off this.
3734 * MdiChildContext.cs:
3735 * MdiWindowManager.cs: Don't need to ensure scrollbars here
3738 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
3740 * Splitter.cs: In situations where the affected control is added
3741 to the parent's control list after the splitter, we would not
3742 populate affected. Now we try populating it on mousedown, if
3743 it's not already set, and force it to be re-set whenever our
3746 2006-03-03 Matt Hargett <matt@use.net>
3748 * Control.cs: implement Control.Padding
3749 * Padding.cs: -Padding.All returns -1 when constructing with the
3750 implicit default ctor
3751 -Padding.ToString() matches MS.NET
3752 * ContainerControl.cs: implement
3753 ContainerControl.AutoScaleDimensions
3754 * ListControl.cs: implement ListControl.FormattingEnabled
3755 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3757 * TabPage.cs: Implement UseVisualStyleBackColor.
3758 * PictureBox.cs: Implement PictureBox.InitialImage.
3760 2006-03-03 Mike Kestner <mkestner@novell.com>
3762 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3763 event declarations to proxy to base event.
3764 * ListViewItem.cs: update to use ItemControl.
3765 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3766 * ThemeWin32Classic.cs: update to new ListView theme API and fix
3767 column header label rendering for 0 width columns.
3769 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
3771 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3772 that causes the control to be created. Fixes #77476.
3774 2006-03-02 Jackson Harper <jackson@ximian.com>
3776 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3779 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
3781 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3782 passed in for the EventArgs (fixes #77690)
3784 2006-03-01 Jackson Harper <jackson@ximian.com>
3786 * ScrollBar.cs: Refresh afterbeing resized.
3788 2006-02-28 Mike Kestner <mkestner@novell.com>
3790 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3791 Clean up a tracker compile warning.
3792 * MenuItem.cs: add internal PerformPopup method.
3795 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
3797 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3798 implicit expose) when the text is set to null
3800 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
3802 * RichTextBox.cs (FlushText): When newline is true, we always
3803 need to split the line, even if no text is on it and we may
3804 never eat newlines. (Fixes #77669)
3806 2006-02-28 Mike Kestner <mkestner@novell.com>
3808 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
3809 and set Selected instead.
3810 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
3813 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
3815 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3817 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
3820 - Got rid of the panel. All controls are now directly added to
3822 - It is now possible to set a font with the Font property
3823 - MinSize and MaxSize property do now what they should
3824 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3825 - Searching and selecting a font with the font textbox works now,
3826 the same applies to the style and size textbox
3827 - Draw the correct 3D border in the example panel
3828 - Fixed a little mem leak (unused fonts didn't get disposed)
3829 - Many other internal updates/rewrites...
3832 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
3835 - InsertRTFFromStream: Added 'number of characters inserted' argument
3836 - set_SelectedRTF: Now using the number of characters to calculate
3837 the new location for the selection and cursor (x/y cannot be used
3838 due to potentially already wrapped text)
3840 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
3842 * TextControl.cs: Added property and implemented means to allow
3843 disabling recalculation of a document (can be used to speed up
3844 multiple inserts and is needed to make RTF inserts predictable, see
3846 * RichTextBox.cs: Using the new NoRecalc property of Document to
3847 keep x/y insert locations predictable. Also makes it faster inserting
3850 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
3852 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3853 it's easier for a child control to handle the other messages without
3854 having to duplicate the special functionality
3856 - WndProc: Removed calling base handler for WM_KEYDOWN and added
3857 code to handle processing the key ourselves, in order to get
3858 access to the result of KeyEventArgs.Handled. We now only call
3859 ProcessKey if they key hasn't been handled already. Fixes #77526.
3860 - set_Text: If null or empty string is given, just clear the
3861 document. Fixes part of #77526
3863 2006-02-27 Jackson Harper <jackson@ximian.com>
3865 * SizeGrip.cs: Paint the background color before painting the grip
3866 so things look right.
3867 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3869 2006-02-27 Mike Kestner <mkestner@novell.com>
3872 - Restructure layout and invalidation model to remove a ton of
3873 flicker from the control and speed up performance in general.
3874 - Add manual column resize, flickers like crazy, but I already have
3875 some ideas on how I'll fix that. (#76822)
3876 - Merge the three Icon-based views into a single layout method.
3877 - Move item selection interaction logic from the item since
3878 interaction with the collections is more appropriate to the view.
3879 - Deselection on non-item clicks.
3881 - Encapsulate most of the layout. Add some internal props to trigger
3882 layout. Move to a model where Items invalidate themselves instead
3883 of just invalidating the whole control every time something changes.
3884 - Invalidate on Text/Caption changes.
3885 - switch to an offset based layout model to avoid having to absolute
3886 position every element on item moves.
3887 - correct checkbox layout to conform to MS layout.
3888 * ThemeWin32Classic.cs:
3889 - refactor some column header drawing code.
3890 - fix string justification for column headers (#76821)
3891 - make SmallIcon labels top justified for compat with MS impl.
3892 * ThemeClearlooks.cs:
3893 - adjust to new ListViewItem internal checkbox bounds api.
3895 2006-02-27 Jackson Harper <jackson@ximian.com>
3897 * Control.cs: Change where implicit controls fall in the zorder.
3898 They are now on top of all children.
3899 - Synced AddImplicit code with Add
3900 - Removed unused enumerator.
3901 * SizeGrip.cs: Remove the TODO as its been TODONE.
3903 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
3905 * TextControl.cs(Insert): Combine the last lines unless the insertion
3906 string ends with \n\n, otherwise we leave one line too many (Fixes
3907 something I noticed with the testapp for #77526; the bug itself was
3908 already fixed in the previous checkin)
3910 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
3913 - SelectionColor and SelectionFont methods no longer set absolute
3914 styles. Instead, the keep font or color respectively (This
3915 resolves a long-standing FIXME in the code)
3916 - When flushing RTF text, the insert code now considers text trailing
3917 behind the insertion point (Fixes the bug where when replacing
3918 the selected text via SelectedRTF the remainder of the line behind
3919 the selection would stay on the first insertion line)
3921 - AppendText now updates the selection points after inserting text
3922 - AppendText now ensures that the last tag (sometimes 0-length) of
3923 the document is used for the style information (Fixes part of
3926 - Created new FontDefiniton class to allow describing partial style
3928 - StreamLine() now takes a lines argument, to allow it to decide
3929 whether an encountered zero-length tag is the last in the document
3930 (which must be kept to not loose the font/color contained in it,
3932 - Created Combine() and Split() methods for Marker structs, to
3933 support marker updates due to reformatted documents (soft line
3935 - Implemented Document.CaretTag setter
3936 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3937 of the last line (Not the cause, but also exposed by bug #77220)
3938 - Added LineTag argument to InsertString method, to allow callers
3939 to force a certain tag to be used (required to force use of the
3940 trailing zero-length tag of a document)
3941 - Now updating markers in Combine(), to avoid stale tag markers
3942 - Added some method descriptions to aid maintenance
3943 - Implemented new FormatText concept, allowing additive/subtractive
3944 formatting by only specifying the components that are to be
3945 changed. This was needed for resolving the RTB.SelectedColor/
3946 RTB.SelectedFont fixmes
3947 - Added Break() support method to allow breaking up linetags (used
3948 for partial formatting)
3949 - Added GenerateTextFormat() method. It is used for partial
3950 formatting and allows to generate a full font/color from given
3951 attributes and an existing tag.
3953 2006-02-26 Jackson Harper <jackson@ximian.com>
3955 * XplatUIX11.cs: Use the correct caption height.
3956 - Translate hittest coordinates to screen coords to match MS.
3957 * XplatUIWin32.cs: When we create MDI windows we need to reset
3958 some of the style flags, so we get a nice blank window, and can
3959 draw all the decorations ourselves.
3960 - Set a clipping rectangle on the non client paint event, the
3961 window manager drawing code needs one.
3962 * Form.cs: The window manager needs to know when the window state
3964 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3965 don't need to factor in border and title sizes in these
3966 methods. TODO: Remove the args and fix the call points.
3967 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3969 - Let the driver set the cursors.
3970 - Improve active window handling
3971 - Correct sizes for title bars and buttons.
3972 - Match MS drawing better
3973 * MdiWindowManager.cs: We don't need to handle border style
3974 updates specially anymore.
3975 - Check for scrollbars when windows are done moving
3976 - Handle Active properly.
3977 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3978 correctly. I am spewing the exception though, so we don't hide the
3981 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
3983 * DataGridViewRowPostPaintEventArgs.cs,
3984 DataGridViewCellPaintingEventArgs.cs,
3985 DataGridViewRowCollection.cs,
3986 DataGridViewRowPrePaintEventArgs.cs,
3987 DataGridViewCell.cs: Clear a few warnings and implement a few
3988 exceptions that should be thrown.
3990 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
3992 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3993 'inheriting' our parent's (non-default) cursor. (Part of
3996 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
3998 * XplatUIX11.cs: Fixed cast to make csc happy
4000 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
4002 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
4003 it's for the client area (part of fix for #77479 and needed
4004 for MDI window cursor handling)
4006 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
4007 the appropriate default cursors and also passing the message
4009 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
4010 for non-client areas
4012 2006-02-15 Jackson Harper <jackson@ximian.com>
4014 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
4015 is a real MDI window
4017 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
4019 * X11DesktopColors.cs: Instead of checking the desktop session
4020 string for "KDE" check if it starts with "KDE"
4022 2006-02-10 Jackson Harper <jackson@ximian.com>
4024 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
4027 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
4029 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
4032 - Got rid of the panel. All controls are now directly added to
4034 - Changed to mono coding style
4036 2006-02-10 Jackson Harper <jackson@ximian.com>
4038 * InternalWindowManager.cs: We don't need the set visibility to
4039 false hack anymore now that peter has written beautiful shutdown
4042 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
4044 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
4045 where already explicitly destroyed
4047 2006-02-10 Jackson Harper <jackson@ximian.com>
4049 * MdiClient.cs: Handle the case where windows are too high or to
4050 the left and we need scrollbars.
4052 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
4054 * MimeIcon.cs: Added some icons
4057 - Got rid of the panel. All controls are now directly added to
4059 - Changed to mono coding style
4060 - On Linux "My Computer" and "My Network" will now show some
4061 more usefull information. A new class, MasterMount, gathers
4062 this information from /proc/mount. Updated MWFFileView to make
4063 use of this information
4064 - Fixed a bug that caused FileDialog to crash when
4065 ".recently_used" file had a zero size
4066 - FilterIndex does now what it should
4068 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
4071 2006-02-09 Jackson Harper <jackson@ximian.com>
4073 * ComboBox.cs: Don't touch if null.
4075 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
4077 * Cursor.cs: 64bit safeness fix
4078 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
4080 2006-02-09 Jackson Harper <jackson@ximian.com>
4082 * Form.cs: If a form is made into an MDI form update the styles so
4083 all the props can get set correctly.
4084 - Kill the mdi_container when we dont need it anymore.
4085 * InternalWindowManager.cs: Add missing NOT
4087 2006-02-08 Jackson Harper <jackson@ximian.com>
4089 * InternalWindowManager.cs: Respek clipping when drawing MDi
4092 2006-02-08 Jackson Harper <jackson@ximian.com>
4094 * Hwnd.cs: Add bits to track non client expose events.
4095 * XplatUIX11.cs: Track non client expose events on the hwnd. This
4096 gives us a proper invalid rect and will allow for some nice
4097 optimizations with NC client drawing
4098 - MDI windows are children windows, so move their style handling
4099 into the child window block.
4100 * InternalWindowManager.cs: Remove a state reset that was
4101 getting invoked at the wrong time. Fixes managed windows getting
4102 into a 'stuck' captured state.
4104 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
4106 * TextControl.cs (Document.ctor): Now initializing
4107 selection_anchor. Fixes #77493
4109 2006-02-07 Jackson Harper <jackson@ximian.com>
4111 * TrackBar.cs: The increment/decrements were backwards.
4113 2006-02-07 Mike Kestner <mkestner@novell.com>
4115 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
4116 to the instance itself.
4118 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
4120 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
4121 on ulongs and pointers, the size differs between 32bit and 64bit
4124 2006-02-07 Mike Kestner <mkestner@novell.com>
4126 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
4127 for 64 bit platforms to work around a metacity bug.
4129 2006-02-07 Jackson Harper <jackson@ximian.com>
4131 * TrackBar.cs: Process the input keys we need, and hookup to
4132 KeyDown instead of using WndProc, so we get key messages.
4134 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
4136 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
4138 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
4139 we need to translate the XdndVersion atoms array before sending it
4141 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
4144 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
4145 number of bits for the property, not the number of bytes. The
4146 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
4147 but would not crash since it specified 8 bits instead of 4 bits)
4148 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
4149 defined as XID -> long in the C headers)
4150 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
4151 references since those are now IntPtr to begin with
4152 - Switched all Atom.XXX 'int' casts to IntPtr casts
4153 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
4154 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
4155 - Added XChangeActivePointerGrab DllImport (for X11DnD)
4157 - Changed 'int' type for Atoms in XEvent structures to IntPtr
4158 - Changed atom in HoverStruct to be IntPtr
4160 - Removed local DllImports, switched code to use those from XplatUIX11
4161 - Removed/fixed casts related to the switch of Atom to be a IntPtr
4163 2006-02-06 Mike Kestner <mkestner@novell.com>
4165 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
4166 method signatures in the import region. There may still be some
4167 lingering struct marshaling issues, as I didn't drill down into those.
4170 2006-02-06 Jackson Harper <jackson@ximian.com>
4172 * ComboBox.cs: Dont manually set the top_item, this is computed
4173 when the scrollbar position is set.
4175 2006-02-06 Mike Kestner <mkestner@novell.com>
4177 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
4178 startup crashes on amd64. There's other fixes needed. All pinvoke
4179 usage of Atom needs to be mapped to IntPtr for example. And there are
4180 likely other int/long issues to be addressed.
4182 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
4184 * FileDialog.cs: One more...
4186 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
4188 * FileDialog.cs: Next try
4190 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
4192 * FileDialog.cs: First part of fix for #77464
4194 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
4196 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
4197 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
4198 AcceptButton border drawing.
4200 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
4202 * Form.cs: Moved positioning of form after auto scaling is applied,
4203 otherwise it would possibly use wrong form size.
4205 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
4207 * Control.cs (RecreateHandle): No need to re-create any child
4208 controls, the child windows will get destroyed automatically by
4209 the windowing system or driver, and re-created when the handle
4210 is being accessed the first time. Fixes #77456
4211 * Form.cs: No longer setting the form to closing if the handle is
4212 being recreated. This seems like the right thing to do, don't
4213 have a bug or testcase for this, though.
4215 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
4217 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
4218 controls to avoid unwanted side effects
4220 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
4223 - ScaleCore needs to scale the bounds, not the ClientSize of the
4224 control. Fixes #77416.
4225 - DefaultSize is 0,0 for control
4227 - DefaultSize is 100, 20
4228 - SetBoundsCore: Now enforcing the height, no matter if the provided
4229 height is more or less than the preferred one, as long as AutoSize
4231 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
4233 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
4236 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
4237 call unless both performLayout is true *and* we have a pending
4239 - ResumeLayout: MS does not completely nest Suspend and Resume,
4240 they bottom out at 0, fixed our code to match that.
4241 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
4242 SetBoundsCore, we were updating even when we shouldn't. This fixes
4243 swf-anchors mis-anchoring when resizing the app fast and lots.
4244 - UpdateDistances: Now only setting the left and top distance if
4245 we have a parent and are not suspended, this is based on
4246 a suggestion by Don Edvaldson in bug #77355.
4247 - OnVisibleChanged: Fixed logic when to create the control. We may
4248 not create the control if we have no parent or if it's not visible;
4249 switched to using Visible property instead of is_visible field
4250 since the property also considers parent states. This fixes a bug
4251 when starting Paint.Net
4253 2006-02-02 Jackson Harper <jackson@ximian.com>
4255 * Form.cs: If the forms handle hasn't been created yet don't call
4256 into xplatui to make it top most, just set the topmost flag on the
4257 form in CreateParams
4258 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
4260 2006-02-01 Jackson Harper <jackson@ximian.com>
4262 * ScrollableControl.cs: Refactored the Recalculate method a
4263 little, this wasn't handling all the variants of bottom and right
4264 bars needed to be added and added/removed based on their
4265 counterparts being added/removed (which changes the drawable
4266 size). Also we special case client widths and heights of 0 and
4267 don't add the scrollbar for those.
4269 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
4272 - Added method to get AbsoluteGeometry(); currently unused, but might
4273 be used in the future, if we try again to figure out toplevel
4274 coordinates with some more crappy window managers
4275 - Added FrameExtents() method to retrieve the WM set decoration size
4276 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
4277 to deal with at least KDE, FVWM and metacity (Fixes #77092)
4279 - Added whacky_wm tracking var for metacity
4280 - Added logic to have default menu height if the actual menu height
4281 has not yet been calculated (part of fix for #77426)
4282 * Form.cs: Keep track whether client size has been set and re-set
4283 it if a menu is added/removed afterwards (Fixes #77426)
4285 2006-01-31 Jackson Harper <jackson@ximian.com>
4287 * Control.cs: When a new Site is set on the component attempt to
4288 pull the AmbientProperties from it.
4290 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
4292 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
4293 in the background of the owning form. Fixes #77332
4295 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
4297 * MimeIcon.cs: Fix for #77409
4299 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
4301 * XplatUIX11GTK.cs: Initial import
4303 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
4305 * FixedSizeTextBox: fixes class signature
4307 2006-01-30 Jackson Harper <jackson@ximian.com>
4309 * FixedSizeTextBox.cs: New internal class that represents a
4310 textBox that will not be scaled.
4313 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
4316 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
4318 * XplatUIX11.cs: Retrieve default screen number instead of
4319 assuming 0. Attempted fix for #77318
4321 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
4324 - GetWindowPos: When a window is parented by FosterParent, use
4325 the desktop instead of FosterParent as the base to get coordinates
4326 - CreateWindow: Don't make FosterParent the parent window for Popups
4327 if we don't want a taskbar entry, Popups automatically don't get one
4328 * Hwnd.cs: Need to call remove to actually remove the key from the
4331 2006-01-30 Mike Kestner <mkestner@novell.com>
4333 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
4335 2006-01-30 Jackson Harper <jackson@ximian.com>
4338 * TreeNode.cs: Raise events no matter how the treenode is
4339 checked. Patch by Don Edvalson.
4341 2006-01-30 Jackson Harper <jackson@ximian.com>
4343 * TreeNode.cs: Signature fix.
4345 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
4347 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
4349 2006-01-20 Mike Kestner <mkestner@novell.com>
4351 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
4352 event forwarding when menus are active.
4353 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
4354 Most of the patch is pdb's with a little rework.
4356 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
4358 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
4359 Removed GetMenuDC and ReleaseMenuDC methods; replaced
4360 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
4361 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
4362 * InternalWindowManager.cs: Added use of PaintEventStart/End to
4363 handling of WM_NCPAINT message, now passing the PaintEventArgs to
4364 the PaintWindowDecorations method
4365 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
4366 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
4367 * MenuAPI.cs: Made tracker window invisible
4369 - Removed GetMenuDC and ReleaseMenuDC methods
4370 - Implemented the client=false path for PaintEventStart and
4373 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
4375 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4376 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4379 - MaximizeBox, MinimizeBox: Recreate the handle when setting
4381 - CreateParams: Reworked the styles to match MS look'n'feel,
4382 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4383 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4385 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
4387 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
4388 window is not mapped, since otherwise every form that's being
4389 created is considered minimized, which is wrong.
4390 * Form.cs: Catching the exception and returning our internal value
4393 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
4395 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4396 SetWindowMinMax() to have means to tell the driver about the minimum,
4397 maximum and maximized state window sizes. (Part of the fix for #76485)
4399 - Implemented tracking of minimum and maximum window size, now calling
4400 new SetWindowMinMax() driver method to tell the driver (Part of the
4402 - Finished handling of WM_GETMINMAXINFO method, now setting all values
4403 (Completes fix for #76485)
4404 - Calling new SetWindowMinMax driver method when the handle for a
4405 form is created, to make sure the driver knows about it even if
4406 the values have been set before the window was created
4407 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4408 to avoid messing up our anchoring calculations (partial fix
4410 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4412 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4413 - Improved GetWindowState() to detect 'Minimized' state on Metacity
4414 (and presumably other freedesktop.org compliant WMs). Left the
4415 assumption unmapped=minimized, needed for SetVisible to work.
4416 - Now setting the window state when creating windows
4417 - Fixed SetVisible to consider/set the window state when mapping
4418 a Form. We cannot set the state before it's mapped, and we cannot
4419 use Form.WindowState once it's mapped (since it would ask the
4420 driver and get 'normal'. Therefore, we grab the state before
4421 mapping, map, and then set state.
4422 - Implmemented SetWindowMinMax method; Metacity does not seem to
4423 honor the ZoomHints, though.
4425 - Removed MINMAXINFO (moved to XplatUIStructs)
4426 - Added SetWindowMinMax stub (on Win32 the only way to set that
4427 information is in response to the WM_GETMINMAXINFO message, which
4428 is handled in Form.cs)
4429 - Added logic to SetVisible to set the proper window state when a
4430 form is made visible (fixes #75720)
4432 2006-01-26 Jackson Harper <jackson@ximian.com>
4434 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4435 same way we handle them with Invoke.
4437 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
4440 - Added tracking of window state so CreateParams can return
4441 the appropriate style
4442 - Moved setting of WS_CAPTION style in CreateParams to allow
4443 styles without caption
4444 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
4445 control if the TextBox property is accessed. Fixes #77345
4447 - get_Created: now uses is_disposed and is_created to determine
4448 return value (suggested by Jackson)
4449 - CreateHandle: No longer exits if the handle is being recreated
4450 - RecreateHandle: If the handle is not yet created call the
4451 appropriate method to create either control or handle. If the
4452 control is already created CreateHandle will simply exit instead
4453 of just creating the handle
4454 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4455 now SendMessage WM_DESTROY directly to the control when DestroyWindow
4458 - When DestroyWindow is called, instead of waiting for the
4459 DestroyNotification from X11, we directly post it to the WndProc
4460 and immediately dispose the hwnd object.
4461 Same applies to DestroyChildWindows, and this obsoletes the
4462 expose_pending tracking. Contrary to Win32 behaviour we destroy our
4463 child windows before our own, to avoid X11 errors.
4464 - Removed the direct sending of WM_PAINT on UpdateWindow
4466 - Reworked DoEvents and GetMessage to allow access to internal queue
4467 even when trying non-blocking access to the queue. Fixes #77335.
4468 Based on a patch suggestion by Don Edvalson. The new private
4469 GetMessage can now also be used as a backend for a PeekMessage
4471 * XplatUI.cs: Improved debug output for CreateWindow
4473 2006-01-25 Jackson Harper <jackson@ximian.com>
4475 * Help.cs: Allow param to be null. Patch by Don Edvalson.
4477 2006-01-24 Jackson Harper <jackson@ximian.com>
4479 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4480 when we have a MaxDropItems lower then the selected index.
4482 2006-01-24 Jackson Harper <jackson@ximian.com>
4484 * Control.cs: Don't allow selection of non visible controls, allow
4485 selection of controls without parents.
4487 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
4489 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4490 * DataGridDrawingLogic.cs: Add editing row only when is necessary
4492 2006-01-23 Jackson Harper <jackson@ximian.com>
4494 * UpDownBase.cs: Make the textbox handle all the selection and
4495 tabbing. This fixes tabing to updown controls.
4497 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
4499 * TextBoxBase.cs: fixes exception thown the object was null
4501 2006-01-23 Jackson Harper <jackson@ximian.com>
4503 * ButtonBase.cs: Just use the base CreateParams. They set
4504 visibility and enabled correctly.
4507 * MonthCalendar.cs: Lets let the base set as much of the
4508 createparams as possible so we don't have duplicate code all over
4511 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
4513 * ThemeGtk.cs: Added TrackBar and some experimental code to
4514 get double buffering back
4516 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
4518 * DataGrid.cs: Allows row number set internally higher than the last
4519 when creating a new row. Restores the editing functionality.
4521 2006-01-20 Mike Kestner <mkestner@novell.com>
4523 * MimeIcon.cs: delay Image creation until the icons are accessed
4524 instead of creating 190 scaled images on GnomeHandler startup.
4526 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
4528 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4529 first call base before processing the event. Fixes #77279
4531 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
4533 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4534 that the stride for the GDI bitmap would match the stride of
4537 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
4539 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4541 2006-01-19 Jackson Harper <jackson@ximian.com>
4543 * ComboBox.cs: Hookup the text controls keydown event so we get
4544 those when the text control has the focus.
4546 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
4548 * Label.cs: Now using the base events instead of defining new ones;
4549 this allows us to just call the base properties without having to
4550 duplicate all base property logic
4552 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
4554 * Label.cs: A label by default is not a tabstop (Fixes one of our
4555 failing nunit tests)
4557 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
4559 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4560 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4562 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
4564 * Cursor.cs: Reimplemented creating cursor bitmaps without using
4565 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4568 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
4569 constructor creates images that can't be saved. Part of the fix
4571 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4572 - SetWindowState: Switched ShowWindow flags (part of an upcoming
4573 bug fix for handling window state in forms properly)
4575 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
4577 * ThemeGtk.cs: Simplify ScrollBar drawing
4579 2006-01-18 Jackson Harper <jackson@ximian.com>
4581 * Splitter.cs: Set the default dock style for the splitter control
4584 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
4586 * ThemeGtk.cs: Corrected StateType and ShadowType for
4589 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
4591 * Control.cs: Make use of Theme.DoubleBufferingSupported
4593 - Added drawing for flat style buttons
4594 - Added ScrollBar drawing
4596 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
4598 * ThemeClearlooks.cs: Removed some unneeded code.
4599 * ThemeGtk.cs: First part of ThemeGtk enhancements.
4601 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
4603 * LinkLabel.cs: We need to update the hover drawing when
4604 leaving the control as well.
4606 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
4608 * DataGrid.cs: Clicking on non empty areas in the columns
4609 area was giving an exception
4611 2006-01-17 Jackson Harper <jackson@ximian.com>
4613 * ThemeWin32Classic.cs:
4614 * ListView.cs: Do not draw/clip the headers when the header style
4617 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
4619 * DataGrid.cs: Fixes 77260
4621 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
4623 * DataGrid.cs: Clicking on a column on a empty grid was giving
4626 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
4628 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4629 or any keypress will crash the grid.
4631 2006-01-17 Mike Kestner <mkestner@novell.com>
4633 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4634 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
4635 invisible/previously-visible items.
4638 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
4640 * ThemeClearlooks.cs:
4641 - Added CL_Draw_Button method; now other theme controls that are
4642 not derived from button or do not have a button can draw buttons
4644 - Updated ComboBox drawing
4645 - Beautified RadioButton drawing
4646 - Corrected drawing of bottom and left tabs
4647 - Beautified DateTimePicker and MonthCalendar
4648 - Added CPDrawButton and CPDrawRadioButton
4650 2006-01-16 Jackson Harper <jackson@ximian.com>
4652 * ComboBox.cs: Set the initial value of the scrollbar to the
4653 current index. Reduce the numbers of refreshs and IndexOfs called.
4655 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
4657 * FileDialog.cs: When the file listview is focused hitting the
4658 backspace key moves the fileview to the parent directory
4660 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
4663 - Added RecreateHandle call when changing taskbar visibility to
4664 trigger reparenting in Win32 driver (Fixes #75719)
4665 - If a window has minimize or maximize buttons, it cannot have
4668 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4669 the toplevel form with FosterParent (A toolwindow not on the
4670 taskbar) (Fixes #75719)
4671 - Made FosterParent a toolwindow
4673 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
4675 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4677 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
4679 * ToolTip.cs: If SetToolTip is called from a control and the mouse
4680 is currently over that control, make sure that tooltip_window.Text
4683 2006-01-13 Mike Kestner <mkestner@novell.com>
4685 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4687 2006-01-13 Jackson Harper <jackson@ximian.com>
4689 * TreeView.cs: On MS GetNodeAt never actually factors in the X
4690 value passed. Also redraw the selected node when we recieve
4691 focus, so tabbing between trees works correctly.
4693 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
4695 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4696 ~/.gconf/%gconf-tree.xml, so use
4697 .gconf/desktop/gnome/interface/%gconf.xml
4699 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
4701 * TextControl.cs: Draw text in gray if control is disabled
4703 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
4705 * TreeView.cs: Draw the focus rectangle outside the highlight, to
4706 make sure it's always visible. Fixes #76680.
4708 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
4710 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4712 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
4714 * PageSetupDialog.cs: Added.
4715 * PrintDialog.cs: Attributes.
4716 * PrintPreviewControl.cs: Updates.
4717 * PrintPreviewDialog.cs: Updates.
4719 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
4721 * Control.cs: Undid my selection check fix, since it's not needed
4723 - Now considering the presence of hscroll/vscroll when sizing
4724 vscroll/hscroll respectively. Fixed bug #77077
4725 - Added Left/Up/Down/Right to IsInputKey list to prevent
4726 ContainerControl from stealing them. This fixes what I broke
4727 with my last checkin.
4729 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
4731 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4732 I finally understand how the property can be set without a setter :-)
4734 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
4737 - Switched RunLoop to use static Message.Create to create a
4739 - Added PreProcessMessage call in runloop for keyboard events; this
4740 is part of the fix for #77219, I overlooked this originally in the
4741 MSDN doc for PreProcessMessage
4743 - Removed call to PreProcessMessage from handling of keyboard
4744 messages; it's supposed to be done in the message pump
4745 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4746 per MSDN documentation.
4747 - IsInputChar: All chars are input chars by default; removed the
4748 parent calling chain, MS does not document that
4749 - PreProcessMessage: If IsInputChar is true, we want to return false
4750 to allow dispatching of the message
4751 - When selecting the next control, now also check that we're not
4752 selecting ourselves again and therefore return a false positive.
4754 - Tried to match return values for IsInputKey and ProcessDialogKey
4755 to what MS returns; moved processing of our special keys outside
4756 ProcessDialogKey since MS does not seem to return true on those.
4757 - Moved code that previously was in ProcessDialogKey into new private
4758 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4759 - Reworked handling of WM_CHAR to not have to duplicate code from
4760 Control.cs anymore, instead we simply call down to base.
4762 2006-01-12 Jackson Harper <jackson@ximian.com>
4764 * ComboBox.cs: We always need to refresh the text area when
4765 EndUpdate is called. Fixes the combobox in the file dialog.
4766 * Control.cs: Don't create the creator_thread until the controls
4767 handle is created. Also in InvokeRequired we check if the
4768 creator_thread is null. This gives the effect of InvokeRequired
4769 returning true if the controls handle is not created yet, and
4772 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
4775 - Added StartLoop() driver method. This is used to allow drivers to
4776 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4777 loop for a particular thread
4778 - Added EndLoop() driver method. This is called once the message
4779 pump for the thread is shut down
4780 - Added SupportsTransparency method to allow the driver to indicate
4781 opacity support for windows
4783 - Removed TODO attribute, completed AllowTransparency property
4784 - Added documented logic to Opacity
4785 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4786 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4787 versions of CompatibleTextRendering
4788 * X11Structs.cs: Added opacity atom to our atom enumeration
4789 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4790 of a form might be set before it's reparented by the WM, and we need
4791 the opacity value without calling up to Form)
4792 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
4793 SupportsTransparency() driver methods
4794 * Application.cs: Now calling StartLoop and EndLoop driver methods
4796 - Added opacity atom registration
4797 - Added StartLoop()/EndLoop() methods. They're empty right now but
4798 will need to get implemented when we switch to a per-thread queue
4799 - Implemented SupportsTransparency() method
4800 - Implemented SetWindowTransparency() method
4801 - Added support for setting the opacity value when a window is
4802 reparented (since the opacity needs to be set on the WM frame)
4803 * XplatUIOSX.cs, XplatUIWin32.cs:
4804 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4806 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
4808 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4810 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
4812 * FileDialog.cs: Added ToolTip for MWFFileView
4813 * MimeIcon.cs: Rewrote GnomeHandler.
4814 - Get currently used gnome icon theme from
4815 ($HOME)/.gconf/%gconf-tree.xml
4816 - Make use of inherited icon themes
4817 - Support SVG icon themes like Tango via librsvg
4819 2006-01-12 Miguel de Icaza <miguel@novell.com>
4821 Revert's Jackson's revert which broke 2.0 builds. Fix both
4824 * Application.cs: Move the use_compatible_text_rendering outside
4825 the NET_2_0 define. If we ever need to use the
4826 use_compatible_text_rendering on the individual controls they will
4827 access the variable from the common shared code paths.
4829 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
4832 - Added more granular debug options
4833 - Added method to print both window text and id
4834 - Switched debug output to use new Window() debug method
4835 - Added IsEnabled() driver method
4836 - Added EnableWindow() driver method
4838 - Removed end_modal; no longer needed, new loop handles termination
4839 via 'closing' variable
4840 - If form is modal, setting DialogResult will now initiate loop
4841 termination via 'closing' variable
4842 - Added support for is_enabled/WS_DISABLED to CreateParams
4843 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4845 - Removed code that's now in RunLoop from ShowDialog()
4846 - Added various documented sanity checks to ShowDialog()
4847 - Added handling of WM_DESTROY message; we set 'closing' on getting
4848 the message to indicate the message pump to terminate
4849 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4850 send by the Application.ExitThread method. (We send the message
4851 to destroy the window after all other events have been
4852 processed through the queue, instead of destroying the handle
4854 - Moved code from Close() method to WM_CLOSE handler; added logic
4855 to only send close-related events if the form is not displayed
4857 * Splitter.cs (..ctor): Fixed typo in resource name
4859 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4861 - set_Cursor: Now only setting calling into XplatUI if the handle for
4862 the control is already created; this avoids implict handle creation
4863 or crashes if it's not created
4864 - set_Enabled: Now setting the enabled state via the new driver method
4865 instead of just tracking it
4866 - CreateParams: Added logic to set WS_DISABLED based on enabled state
4867 - CreateControl: Reordered event firing and method calls to more
4868 closely fire events in the order MS does. Now setting the
4869 enabled state in the driver when creating the control.
4870 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4872 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4873 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
4874 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4876 - Added tracking of window enabled state (get_Enabled/set_Enabled)
4877 - Added EnabledHwnd property to easily allow a driver to find the
4878 handle of the first enabled window in the parent chain (this is
4879 used by drivers to pass up input events of disabled windows)
4880 * XplatUIDriver.cs: Added IsEnabled() method
4882 - Removed crude and obsolete exiting tracking variable
4883 - Removed internal ModalRun(); replaced by RunLoop()
4884 - Implemented private CloseForms() method to allow closing all
4885 windows owned by a particular (or all) threads
4886 - Exit() now properly closes all windows without forcing the message
4888 - Removed obsolete InternalExit() method
4889 - Changed Run() methods to use new RunLoop() message pump
4890 - Implemented new RunLoop() method for both modal and non-modal forms
4892 - get_CreateParams: Added setting of WS_DISABLED
4893 - Simplified ShowDialog(); now all the work is done in RunLoop(),
4894 invoked via Form.ShowDialog()
4895 * NativeWindow.cs: We don't remove the window from the collection when
4896 the handle is destroyed; there might still be messages for it in the
4897 queue (mainly the resulting WM_DESTROY); instead it will be removed
4898 when Control calls InvalidateHandle in the WM_DESTROY handler
4900 - CreateWindow: Added logic to handle the WS_DISABLED window style
4901 - EnableWindow: Implemented based on Hwnd.Enabled
4902 - GetMessage: Reset PostQuitState so the method can be called again
4903 - Implemented support for disabled windows (passing messages to the
4904 first enabled parent) in handling all input messages
4905 - Added optimizations for handling Expose events
4906 - Implemeted new driver method IsEnabled()
4907 - Now always resetting paint pending tracking vars when we start paint
4908 - Re-implemented UpdateWindow via just sending a WM_PAINT message
4909 * XplatUIOSX.cs: Added IsEnabled method stub
4910 * XplatUIWin32.cs: Implemented new IsEnabled() method
4912 2006-01-11 Jackson Harper <jackson@ximian.com>
4914 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4915 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4917 * ColorDialog.cs: Clear out the old form before adding the new
4920 2006-01-11 Jackson Harper <jackson@ximian.com>
4922 * X11Dnd.cs: Make sure to add all the text formats when adding
4923 strings to the data object.
4924 * TreeNodeCollection.cs: When adding to a sorted tree we need to
4925 do some redrawing too. Also change the UpdateNode to an
4926 UpdateBelow so the newly added node gets painted.
4928 2006-01-11 Miguel de Icaza <miguel@novell.com>
4930 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4931 LinkLabel.cs, PropertyGrid.cs: Implement the
4932 UseCompatibleTextRendering property for 2.x
4934 * Application.cs (SetCompatibleTextRenderingDefault): Add.
4936 2006-01-11 Jackson Harper <jackson@ximian.com>
4938 * TreeView.cs: Use the property for setting the selected node so
4939 the correct events get raised.
4940 * TreeNode.cs: Update the tree when the fore/back colours of a
4943 2006-01-10 Jackson Harper <jackson@ximian.com>
4945 * TreeView.cs: Allow setting SelectedNode to null.
4947 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4949 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4951 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4953 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4955 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4957 * PrintDialog.cs: Added attributes and set default property values.
4959 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4961 * PrintControllerWithStatusDialog.cs:
4962 Added PrintControllerWithStatusDialog.
4964 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4966 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
4967 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4969 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
4971 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4973 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
4975 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4976 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4978 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
4980 * MimeIcon.cs: Added internal class SVGUtil.
4982 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
4984 * FileDialog.cs: Don't crash if there are two files with the
4985 same name but different locations.
4987 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
4989 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4990 dates across multiple month grids. Used to not highlight entire
4991 month, but does now.
4993 2006-01-06 Jackson Harper <jackson@ximian.com>
4995 * MonthCalendar.cs: Removed DoEvents call to prevent a running
4996 message loop. Change timer intervals to numbers that seem more
4999 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
5001 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
5002 object for location info since screen object is now implemented.
5004 2006-01-05 Jackson Harper <jackson@ximian.com>
5006 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
5007 * AsyncMethodResult.cs: We no longer use a WeakReference for the
5008 AsyncMethodResult, this is because we ALWAYS want the
5009 ManualResetEvent to get set.
5010 * Control.cs: When disposing use an async invoke to call shutdown
5011 code, so that thigns don't block on the finalizer thread. Also
5012 check if we even have a message loop before trying to send
5013 messages, if we don't then don't bother sending messages.
5014 - No more weak references for async methods
5015 * XplatUIDriver.cs: No more weak references for async methods.
5017 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
5019 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
5020 returns two FontFamily with the same name
5022 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
5024 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
5025 drawing disabled text. Instead using the ColorGrayText color
5027 2006-01-04 Jackson Harper <jackson@ximian.com>
5029 * TreeNode.cs: redraw the node when its image index is changed.
5031 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
5033 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
5034 time I checked there are no others like it.
5036 2006-01-04 Jackson Harper <jackson@ximian.com>
5038 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
5039 this gives the behavoir I was looking for.
5040 * Control.cs: Special case Invoking EventHandlers, this matches MS
5041 and fixes part of bug #76326.
5043 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
5045 * ThemeClearlooks.cs, FileDialog.cs:
5046 - Reflect the latest Theme class changes
5047 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
5050 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
5052 * Theme.cs: Cache UI resource images and resize them if needed
5054 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
5056 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
5057 is called. This fixes the crash in Nexxia when setting the font
5058 attributes in the chat. [However, RTF needs a look-over to make sure
5059 that all SelectionXXX methods handle the special case that selection
5060 is empty and therefore the change must be applied to all text starting
5061 at the cursor/selection start]
5063 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
5065 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5066 XplatUIOSX.cs: Added SendMessage and PostMessage methods
5067 * X11Keyboard.cs: Switched to new way of calling PostMessage
5069 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
5071 * Theme.cs: Added theme interface for images to allow the theme to
5072 control what images are used for things like FileDialog, MessageBox
5074 * MessageBox.cs: Now uses the new Theme icon/image interfaces
5076 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
5079 - Removed some dead code
5080 - Opening a recently used file does work now
5081 - Small UI enhancements
5084 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
5086 * FileDialog.cs: Forgot too add __MonoCS__
5088 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
5090 * FileDialog.cs: We are able to read recently used files now let's
5091 go on and write them.
5093 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
5095 * FileDialog.cs: Breathe some life into "last open"/"recently used"
5097 * MimeIcon.cs: Do a check for the top level media type also
5099 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
5101 * ThemeClearlooks.cs:
5102 - Added CPDrawStringDisabled
5103 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
5104 some chars if the text doesn't fit into text_rect
5105 - DrawListViewItem: If View = View.LargeIcon center the image;
5106 rewrote the drawing of ListViewItem.Text if View =
5109 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
5111 * MimeIcon.cs: Use default KDE icon theme if there is no
5112 "48x48" directory for the current icon theme, fixes #77114
5113 * Mime.cs: Disable not working and actually not used code.
5114 * ThemeWin32Classic.cs:
5115 - Replace "new SolidBrush" in GetControlBackBrush and
5116 GetControlForeBrush with ResPool.GetSolidBrush
5117 - Changed DrawListViewItem from private to protected virtual
5119 - Added form.MaximizeBox = true
5120 - Don't throw an exception if there is a broken symbolic link
5122 2005-12-23 Jackson Harper <jackson@ximian.com>
5124 * TabControl.cs: Give the panels focus, keyboard navigation is
5125 fixed so this works correctly now.
5126 - We need these key events also.
5127 * ToolBar.cs: Remove some of the poor mans double buffering.
5129 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
5131 * ComboBox.cs: The internal TextBox now returns the focus.
5133 2005-12-23 Jackson Harper <jackson@ximian.com>
5135 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
5137 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
5139 * Control.cs: Removed debug code
5140 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
5143 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
5145 * Control.cs: When creating the control, update the Z-order after
5146 all it's children are created, too. (Fixes nexxia not showing
5149 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
5151 * Control.cs: Do not update the anchoring distances if layout is
5152 suspended, instead do it once layout is resumed
5154 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
5157 - After many hours of debugging, for both Jackson and
5158 myself, it turns out that it helps to set the parent of a control
5159 if you want to actually see it onscreen. In the spirit of that
5160 discovery, we're now setting the parent of the control and
5161 it's children when the control's handle is created. This fix
5162 will make Lutz Roeder's Reflector run happily.
5163 - now just creating the handle instead of the whole control when
5164 getting a graphics context for the control.
5166 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
5168 * ScrollableControl.cs: When calculating the canvas, don't consider
5169 the scrollbar widths. Instead, predict if horizontal scrollbar
5170 will affect canvas when deciding on vertical display and vice versa.
5172 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
5174 * RichTextBox.cs: Set default RTF font for documents that don't
5175 have a font table (Fixes #77076)
5177 2005-12-22 Jackson Harper <jackson@ximian.com>
5179 * TextBoxBase.cs: It's difficult to do, but you can have an empty
5180 clipboard. This prevents a NullRef in that case.
5181 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
5182 clipboard. PRIMARY is for the currently selected text only. (We
5183 should implement PRIMARY at some point.
5185 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
5187 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
5188 a Unicode function with a structure that was defined in Ansi way.
5191 2005-12-21 Jackson Harper <jackson@ximian.com>
5193 * StatusBar.cs: Statusbar handles its fore/back colours on it's
5194 on. Because thats how it rolls. (and this avoids it using ambient
5196 * ThemeWin32Classic.cs: Use the proper back color for filling.
5197 * Menu.cs: Use the system menu bar color for drawing menu
5198 bars. Using the window back color will bring ambient colours into
5201 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
5203 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
5204 Bitmaps were created and not disposed.
5206 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
5208 * Control.cs (CreateControl): Don't do anything if the control is
5209 already created, otherwise we'd fire the OnCreated event more than
5212 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
5214 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
5215 will always match. Instead return -1. Fixes #76464.
5217 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
5219 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
5220 neither the beginning nor the end of the line (Fixes bug #76479)
5222 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
5225 - ControlNativeWindow.ControlFromHandle(): Now handling situation
5226 where handle is invalid
5227 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
5228 instead of slower linear search
5229 * NativeWindow.cs: Don't remove the window from the hashtable until
5230 after the driver has destroyed it (since the driver might use
5231 Control.FromHandle to lookup the control object
5232 * Hwnd.cs: Added DestroyPending property to track if a window is
5233 already destroyed as far as the driver is concerned and only hasn't
5234 yet notified the control
5236 - Activate(): Check if the window is still valid before using the
5238 - Implemented DestroyChildWindow() method to mark child windows as
5239 destroyed when a window is destroyed. This prevents situations
5240 where we might call an X method based on queued events for a
5241 window that already has been destroyed but we haven't yet pulled
5242 the destroy method from the queue.
5243 - Added a call to the new DestroyChildWindow() method to the drivers
5244 DestroyWindow code. Also now marking the destroyed window itself
5247 2005-12-20 Jackson Harper <jackson@ximian.com>
5250 * StatusBarPanel.cs: Don't calculate panel sizes on draw
5251 anymore. Just do them when needed, also track the rects of panels
5252 so that we can optimize refreshing more in the future.
5254 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
5256 * ColorDialog.cs: Fixed focus drawing in small color controls
5258 2005-12-19 Jackson Harper <jackson@ximian.com>
5260 * InternalWindowManager.cs:
5261 * MdiWindowManager.cs: Cleanup some coordinate system changes so
5262 moving windows works properly.
5264 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
5267 - Removed call to InitLayout() from SetBoundsCore(); doc says
5268 it's only called when a control is added to a container
5269 - Split InitLayout logic, moved to separate UpdateDistances() method
5270 since we need to perform those calculations more often than just
5271 when adding the control to a container. (Needed to fix #77022)
5272 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
5273 - Reduced the OnBindingContextChanged events count, don't send them
5274 unless the control is created, we still aren't totally matching
5275 MS, but I can't quite figure out some of their rules
5277 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
5279 * ThemeClearlooks.cs: Corrected distance between ProgressBar
5282 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
5284 * ThemeClearlooks.cs:
5285 - Updated ProgressBar drawing
5286 - Corrected drawing of ScrollBars and scroll buttons
5287 - Some temporary fixes for minor pixel artefacts
5289 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
5292 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
5293 cause events to be sent in the same order as MS does.
5294 - Added ChangeParent() method to trigger various OnXXXChanged events
5295 that need to be fired when a parent changes (This is a reworking
5296 of the patch from r54254, with the X11 errors fixed)
5297 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
5298 since on MS we get OnLayoutChanged events when calling Clear()
5299 - Changed Enabled property to consider parent state as well, if a
5300 parent is not enabled, the control will not be either
5301 - Changed Parent property to simply call Controls.Add() since that
5302 now does all the work required, this way we avoid code duplication
5303 - Threw in a few OnBindingsContextChanged calls to try and match
5304 when MS sends them. We seem to send a few too many, though.
5305 - Added call to CreateControl when adding the control to a parent.
5306 We were never calling CreateControl. Still needs some work, in
5307 some places we treat HandleCreated and ControlCreated as equal,
5309 - Removed obsolete commented out code from UpdateZOrder()
5311 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
5313 * ThemeClearlooks.cs: Updated TrackBar drawing.
5315 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
5317 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
5319 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
5321 * FileDialog.cs: Add the Help button and the open readonly
5322 checkbox only if needed
5324 2005-12-16 Jackson Harper <jackson@ximian.com>
5326 * Control.cs: Make sure we have an active menu before trying to
5327 process commands on it. Prevents menu-less forms from crashing
5328 when Alt is pressed.
5329 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
5331 * RichTextBox.cs: Expand statement to help out gmcs and fix the
5334 2005-12-16 Jackson Harper <jackson@ximian.com>
5336 * InternalWindowManager.cs: Don't translate tool windows screen
5337 coordinates. This fixes windows 'bouncing' around when being moved.
5339 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
5342 - MaxLength now treats 2^31-1 equal to unlimited length (this is
5343 not quite MS compatible, MS uses that number only for single line
5344 and 2^32-1 for multi-line, but I figure it won't hurt keeping
5346 - Now enforcing the MaxLength limit when entering characters
5347 - Added argument to internal Paste() method to track if it's called
5348 from programatically or via keyboard, since keyboard driven pastes
5349 need to enforce max-length
5350 - Added logic to Paste to only paste as many chars as MaxLength
5352 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
5354 - Added Length property to return number of characters in document
5355 - Added private CharCount property which only tracks actual chars
5356 in the document (no linefeeds) and fires event when CharCount
5358 - Added tracking of character count to all methods that alter it
5359 - Added LengthChanged event to allow applications to subscribe
5360 to any changes to the document
5362 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
5365 - Removed local password_char field (moved to TextBoxBase)
5366 - Now setting the document's password var when password is
5369 - Added password_char field (needed here so MultiLine can
5371 - Added logic to MultiLine property setter to set the document's
5372 variable when password display is allowed
5373 - Removed debug code and made some debug code conditional
5375 - Added RecalculatePasswordLine() method to handle special password
5377 - Added PasswordChar property, also added related tracking vars
5378 - Draw() method now uses local text var for grabbing text to draw,
5379 this var is set to line.text unless we're doing password display,
5380 then it is set to the pre-generated all-password-chars line
5381 - Added calling RecalculatePasswordLine() method for password lines
5383 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
5386 - Added Reparented property to allow tracking of Window Manager
5387 reparenting actions (which affect X/Y calculations of toplevel
5389 - Made ToString() print window handles in hex
5391 - AddConfigureNotify(): Now uses reparented state off Hwnd to
5392 determine if X/Y needs offsetting
5393 - AddConfigureNotify(): Fixed offset calculations
5394 - Now adds ReparentNotify messages into the queue
5395 - Now processes ReparentNotify messages and causes a
5396 WM_WINDOWPOSCHANGED message to be sent upstream if a window
5397 is reparented (as most likely it's X/Y coordinates are changed
5400 2005-12-14 Jackson Harper <jackson@ximian.com>
5402 * XplatUIX11.cs: Tool windows still need to respek focus.
5404 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
5406 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5407 have a working release
5409 2005-12-13 Jackson Harper <jackson@ximian.com>
5411 * Form.cs: Update styles after setting the border style regardless
5412 of whether or not the window is using a window manager.
5414 2005-12-13 Jackson Harper <jackson@ximian.com>
5416 * Form.cs: We now hook into an internal window manager instead of just an
5417 MDI subsystem, this is so we can have properly behaving tool windows.
5418 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5419 * InternalWindowManager.cs: New internal class that acts as a
5420 window manager for tool windows and as a base for mdi windows.
5421 * MdiWindowManager.cs: New class that acts as a window manager for
5424 2005-12-12 Jackson Harper <jackson@ximian.com>
5426 * Control.cs: Updates so we match behavoir for for implicit
5427 controls. Fixes explosions in MDI.
5429 2005-12-12 Jackson Harper <jackson@ximian.com>
5431 * Control.cs: Implement Invalidate (Region).
5433 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
5436 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
5437 the same events as MS does. MS fires events for each property
5438 except, for unknown reasons, Cursor, when the control is reparented.
5439 I can't seem to totally match add/remove since MS also fires some
5440 VisibleChanged events, which makes no sense. Consolidated the
5441 parenting code into a separate method so it can be called from
5442 both Add and Remove. set_Parent no longer needs any special logic
5443 as it calls the parent's add method which implicitly fires
5445 - Removed some obsolete code and debug output
5446 - Enabled state is inherited from parents, if this is enabled
5448 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
5450 * Form.cs: Removed commented out code
5452 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
5455 - Added internal version of Invoke, with additional argument
5456 indicating if we're calling it from a Dispose() handler. That
5457 way we can avoid BeginInvoke throwing an exception if we're
5458 calling for an already destroyed window.
5459 - Added a dispose argument to BeginInvokeInternal, and made the
5460 check if a valid window handle chain exists conditional on
5461 it not being a dispose call
5462 - Removed code in DestroyHandle to destroy our children. Since we
5463 now handle the WM_DESTROY message we will catch all our children
5465 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5467 - Added a field to track the application context of the form.
5468 - No need to set closing variable as response to WM_CLOSE, instead
5469 we destroy the window. We also call PostQuitMessage if the form
5470 has an application context (which makes it the main app form,
5471 which, when closed terminates the app)
5473 - Dropped Exit() method, it's naming was confusing
5474 - Added PostQuitMessage() which causes GetMessage to return false
5475 once the message queue is empty
5476 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
5478 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5479 no longer a valid XplatUI method, but left it in since it's used
5480 internally. Added empty PostQuitMessage() method.
5481 * MenuAPI.cs: Replaced call to Exit() with call to
5482 PostQuitMessage, even though this is probably no longer needed.
5483 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5484 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5486 - Replaced call to XplatUI.Exit() with PostQuitMessage()
5487 - Removed old debug code that would call XplatUI for exception
5488 display, enabled standard exception handling (Still not enabled
5489 though, until NativeWindow's ExternalExceptionHandler define
5492 - Added internal method to allow control to update NativeWindow
5493 after a window has been destroyed
5494 - Added handling of already destroyed windows when calling i
5496 - Added removal of handle from list on ReleaseHandle
5498 - Dropped GetMessageResult var and related code
5499 - Added PostQuitState to field to track if PostQuitMessage has been
5501 - Dropped Exit() method
5502 - Added PostQuitMessage() method
5503 - GetMessage now will return false if PostQuitState is set and no
5504 more messages are in the queue.
5505 - Expose handler will no longer generate WM_PAINT messages if we are
5506 in PostQuitState since it's very likely any windows have already
5507 been destroyed, and since Hwnd won't get updated until we have
5508 processed the DestroyNotify we'd be causing X errors.
5510 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
5512 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5513 Thanks to Mike for pointing out the err of my ways.
5515 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
5517 * Control.cs(PreProcessMessage): Moved menu handling back, but
5518 after all other key handling, to match MS (who handles Menu in
5520 * Menu.cs (WndProc): Removed my brainfart
5522 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
5524 * Control.cs(PreProcessMessage): Removed special menu handling
5525 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5527 2005-12-07 Mike Kestner <mkestner@novell.com>
5529 * Control.cs : special case SYSKEYUP so that we can adjust keynav
5530 state according in tracker.
5531 * Menu.cs : promote tracker field to base class and provide a tracker
5532 lookup capability. Add/Remove shortcuts dynamically if the top menu
5533 has a tracker. Unparent items that are removed from the collection.
5534 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5535 * Theme*.cs: add always_show_hotkeys field to support configurability
5536 of mnemonic display. win32 doesn't show mnemonics until Alt is
5539 2005-12-07 Jackson Harper <jackson@ximian.com>
5541 * MdiChildContext.cs: Use Control.ResetCursor.
5542 * Control.cs: ResetCursor needs to set the property so that the
5543 correct XplatUI call gets made.
5545 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
5547 * Control.cs: More fixes to make our key events match MS. We
5548 were not setting the modifier state on KeyData, and we were
5549 not generating any events when Alt was pressed with a key
5550 since handling of WM_SYSxxx was missing for the OnKey methods.
5552 2005-12-07 Jackson Harper <jackson@ximian.com>
5554 * MdiChildContext.cs: reenable the sizing code.
5555 - When the mouse leaves a window reset its cursor.
5557 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
5559 * ThemeClearlooks.cs: Reflect latest Hwnd changes
5561 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
5563 * Hwnd.cs: Now using the theme 3d bordersize to calculate
5564 widths of Fixed3D borders
5566 2005-12-07 Jackson Harper <jackson@ximian.com>
5568 * MdiClient.cs: Fix warnings. Earn Mike's love.
5570 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
5572 * ThemeClearlooks.cs:
5573 - Adjusted mouse over button color
5574 - Added first parts of CheckBox drawing
5575 - Added correct color for selected text background
5576 - Fixed ComboBox drawing
5577 - Added CPDrawBorder3D and CPDrawBorder
5579 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
5581 * XplatUIX11.cs: Added call to XBell for AudibleAlert
5583 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
5585 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5586 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5587 alert users via sound. We could add an enum arg with different
5588 types of alerts in the future
5590 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
5592 * Control.cs: Fix behaviour problems pointed out by Mike
5594 2005-12-05 Mike Kestner <mkestner@novell.com>
5596 * StatusBarPanel.cs: add Invalidate method and hook it into all the
5597 prop setters. Calls parent.Refresh for now, but could be maybe be
5598 optimized with an internal method on StatusBar at some point.
5601 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
5603 * RichTextBox.cs: Implemented get_SelectionColor
5605 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
5607 * ThemeClearlooks.cs:
5609 - Draw black button border only if button is Form.AcceptButton
5610 - Draw correct button color for pressed RadioButton if the mouse
5611 has entered the button
5612 - Updated ProgressBar drawing!
5613 - Updated CPDrawSizeGrip drawing
5614 - Updated StatusBarPanel drawing
5616 2005-12-05 Mike Kestner <mkestner@novell.com>
5618 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5619 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5621 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
5623 * ThemeClearlooks.cs: Initial check-in, activate with
5624 export MONO_THEME=clearlooks
5625 * ThemeEngine.cs: Added ThemeClearlooks
5627 2005-12-03 Mike Kestner <mkestner@novell.com>
5629 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5632 2005-12-02 Jackson Harper <jackson@ximian.com>
5634 * Form.cs: If the child form has no menu the default main menu is
5635 used as the active menu.
5637 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
5639 * ListBox.cs: Check if any items exist before trying to resolve
5640 coordinates into items
5642 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
5644 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5645 as the second color for the background hatch
5647 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
5649 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5650 * RichTextBox.cs: FormatText position arguments are 1-based, now making
5651 sure that what we pass to FormatText is always 1-based. Fixes #76885
5653 2005-11-29 Miguel de Icaza <miguel@novell.com>
5655 * NumericUpDown.cs (EndInit): When we are done initializing,
5656 reflect any updates on the UI.
5658 2005-12-02 Jackson Harper <jackson@ximian.com>
5660 * ImplicitHScrollBar.cs:
5661 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5662 their container controls.
5663 * TreeView.cs: Use the new implicit scrollbars.
5665 2005-12-02 Jackson Harper <jackson@ximian.com>
5667 * TreeView.cs: Make top_node internal so the TreeNodeCollections
5669 * TreeNodeCollection.cs: If we remove the topnode we need to
5670 update topnode to the next node in line.
5671 - When clearing nodes go through the same process as removing
5672 them, so they get depareneted and checked if they are top node.
5674 2005-12-01 Jackson Harper <jackson@ximian.com>
5676 * TreeView.cs: When imagelists are used the image area is
5677 selectable as well as the text.
5678 - If there are no selected nodes select the first one.
5679 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5680 so don't do it more then we need to.
5682 2005-12-01 Jackson Harper <jackson@ximian.com>
5684 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5685 that arrows can be scaled.
5687 2005-12-01 Jackson Harper <jackson@ximian.com>
5689 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5690 fail. Patch by Dieter Bremes
5692 2005-11-30 Jackson Harper <jackson@ximian.com>
5694 * Form.cs: Property is 2.0 only
5695 * PrintDialog.cs: Signature fix.
5697 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
5700 - No longer artificially moves text 2 pixels down (now that we have
5701 borders this is no longer needed)
5702 - Added calcs for left, hanging and right indent
5704 2005-11-23 Mike Kestner <mkestner@novell.com>
5706 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5708 2005-11-30 Jackson Harper <jackson@ximian.com>
5710 * MdiChildContext.cs: Set the cloned menus forms, as these don't
5711 get cloned as part of CloneMenu ().
5712 * Menu.cs: Make sure the parent of the items get set correctly
5713 when they are added. And the owners are notified of the changes.
5714 * Form.cs: Create an ActiveMenu property, so that when MDI is used
5715 we can change the menu being displayed/handled by the form without
5716 changing the menu assosciated with the form.
5717 - Don't let Mdi children draw/handle menus.
5719 2005-11-30 Jackson Harper <jackson@ximian.com>
5721 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5722 a MenuChanged event. Just to make the API a little more
5725 * MenuItem.cs: Use the new OnMenuChanged
5726 * MdiChildContext.cs: Handle menu merging.
5727 * Form.cs: Implement MergedMenu.
5729 2005-11-30 Jackson Harper <jackson@ximian.com>
5731 * Menu.cs: We were misusing Add. Add goes behind the specified
5732 index according to the docs, and does not replace the specified
5733 index. So I added an Insert method.
5735 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
5737 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5738 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5740 * RichTextBox.cs: Added calls to base for DnD events
5742 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
5745 - Fixed drag-selection related crash; style fixes
5746 - Implemented undo class
5747 o Implemented method to capture document state for specified
5748 range in document tree
5749 o Implemented method to restore captured document state
5750 o Implemented cursor tracking
5751 o Implemented basic undo stack
5752 - Added undo cursor tracking to methods altering cursor location
5753 - Added undo tracking to selection deletion (still missing
5754 other text-altering hookups)
5756 - Added SelectionLength property
5757 - Implemented CanPaste()
5758 - Implemented Paste()
5759 - Added missing protected methods
5760 - Fixed RTF->Document conversion; now uses font index 0 and color
5761 index 0 as the default font for the parsed text
5762 - Fixed RTF<->Document font size translation
5763 - Fixed RTF generation, now properly handles cross-tag boundaries
5764 for single line selection
5765 - No longer always appends blank line to generated RTF
5767 - Added missing attributes
5768 - Hooked up undo-related methods
5770 - Implemented Copy()
5771 - Implemented Paste()
5773 - Fixed caret mis-behaviour on backspace across line-boundaries
5775 2005-11-29 Jackson Harper <jackson@ximian.com>
5777 * MdiClient.cs: Add a method for activating mdi children. Very
5778 basic right now. I imagine someday it might need more girth.
5779 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5780 children windows names are added to the menu item.
5781 * ThemeWin32Classic.cs: Draw the arrow if the item is an
5782 mdilist. This happens regardless of whether or not there are any
5783 mdi windows to see in the list, and according to my tests happens
5784 before the items are even added. Also happens if there isn't even
5785 an mdi client to get windows from.
5787 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
5789 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5790 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5792 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
5794 * DataGridTableStyle.cs:
5795 - Create always the styles for the missing columns even if they are
5796 provided by the user (not default table style)
5799 - Fixes SetDataBinding (always re-attach source)
5800 - Fixes SetNewDataSource (only clear styles if they are not for
5802 - Expands OnTableStylesCollectionChanged to handle style refresh
5805 2005-11-29 Jackson Harper <jackson@ximian.com>
5807 * FileDialog.cs: Implement missing bits, remove some dead
5809 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5810 creation of the panel so that the options set on the dialog are
5811 seen when the panel is created.
5812 * TreeView.cs: raise a click when items are clicked.
5814 2005-11-29 Jackson Harper <jackson@ximian.com>
5816 * MdiClient.cs: Pass some signature methods through to base.
5818 2005-11-28 Jackson Harper <jackson@ximian.com>
5820 * ListView.cs: Raise the click event when items are clicked.
5822 2005-11-28 Jackson Harper <jackson@ximian.com>
5824 * MdiClient.cs: Make this algorithm even more beautiful. And fix
5827 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
5829 * ThemeNice.cs: - Removed 1 pixel bitmaps
5830 - Use SmoothingMode.AntiAlias where it makes sense
5831 (ScrollButton arrow for example)
5832 - Enhanced Button focus drawing
5833 - Fixed ComboBox drawing (no artefacts anymore, focus
5834 rectangle is back again, reduced size of ComboButton, etc.)
5835 - Fixed RadioButton focus drawing for Appearence.Button
5836 - Slight ScrollButton redesign
5837 - Some LinearGradientBrush size fixes
5838 - GroupBoxes have now rounded edges
5839 - Fixed StatusBar drawing
5841 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
5843 * ThemeNice.cs: - Remove dead code
5844 - use correct background colors for menus, etc.
5845 - Fake pixel drawing with 1 pixel bitmaps
5847 2005-11-24 Jackson Harper <jackson@ximian.com>
5849 * MdiClient.cs: Size the scrollbars when resizing the window.
5850 - Resize the maximized windows when the client is resized
5851 * Form.cs: Make the child context available
5853 2005-11-23 Jackson Harper <jackson@ximian.com>
5855 * MdiChildContext.cs: Don't size windows if they are maximized.
5857 2005-11-23 Mike Kestner <mkestner@novell.com>
5859 * ContextMenu.cs: use MenuTracker.
5860 * Control.cs: remove menu handle usage.
5861 * Form.cs: remove menu handle usage.
5862 * Hwnd.cs: remove menu handle usage.
5863 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5864 motion and clicks to the new Tracker handlers.
5865 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5867 * MenuAPI.cs: refactored to combine popup and menubar event handling.
5868 Killed the MENU and MENUITEM data types and associated collections
5869 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5870 MenuTracker class that exposes the leftovers from the old MenuAPI
5871 static methods. Restructured Capture handling so that only one grab is
5872 done for the entire menu hierarchy instead of handing off grabs to
5873 submenus. Tracker now has an invisible control to Capture when active.
5874 * MenuItem.cs: add sizing accessors, kill Create
5876 * Theme.cs: remove menu handle and MENU(ITEM) usage.
5877 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5878 MENU(ITEM). remove menu handle usage, use Menu directly.
5879 * XplatUIDriver.cs: remove menu handle usage.
5880 * XplatUIOSX.cs: remove menu handle usage.
5881 * XplatUIWin32.cs: remove menu handle usage.
5882 * XplatUIX11.cs: remove menu handle usage.
5884 2005-11-22 Jackson Harper <jackson@ximian.com>
5886 * Hwnd.cs: Don't compute the menu size for
5887 DefaultClientRectangle.
5888 - Reenable menu sizes being computed for GetClienRectangle.
5889 * Form.cs: Remove comment of trechery
5891 2005-11-22 Jackson Harper <jackson@ximian.com>
5893 * Hwnd.cs: The adjustments for the menu bar are made when it is
5894 attached to the form.
5896 2005-11-19 Jackson Harper <jackson@ximian.com>
5898 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5899 (just like on windows).
5901 2005-11-19 Jackson Harper <jackson@ximian.com>
5903 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5904 use real buttons anymore because they are in non client area. The
5905 one TODO here is that I need to somehow invalidate a section of
5906 the non client area.
5908 2005-11-18 Jackson Harper <jackson@ximian.com>
5910 * Control.cs: Put the enum check back in now that MDI doesnt have
5911 to use this to set border styles.
5912 * Form.cs: Only set mdi child windows borders if the handle has
5914 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5915 this directly on to the driver.
5916 - Get the move start position before adjusting for the titlebar
5917 height, this fixes the windows "skipping" when they are first
5920 2005-11-18 Jackson Harper <jackson@ximian.com>
5922 * XplatUIX11.cs: Just compute the mdi borders separately as they
5923 don't totally match up with normal form borders.
5925 2005-11-18 Jackson Harper <jackson@ximian.com>
5927 * Control.cs: Set WS_ styles for borders, so that the driver does
5928 not have to retrieve the control instance to figure out what kind
5929 of borders it should have.
5930 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5931 driver can know its an mdi child easily.
5932 * XplatUIX11.cs: Get the border styles and whether the window is
5933 MDI from the Styles and ExStyles params instead of having to get a
5934 control. This prevents a chicken and egg problem.
5936 2005-11-18 Jackson Harper <jackson@ximian.com>
5938 * MdiClient.cs: Fix typo so scrollbars show up correctly.
5940 2005-11-18 Jackson Harper <jackson@ximian.com>
5942 * MdiClient.cs: Calculate when to add and remove scrollbars
5944 * MdiChildContext.cs: Adjust the y position to take the titlebar
5946 - No height for FormBorderStyle.None
5948 2005-11-18 Jackson Harper <jackson@ximian.com>
5950 * Control.cs: Allow non enum values to be used for
5951 InternalBorderStyle. MDI does this to set a special border style.
5952 - New utility methods for converting points to/from client coords
5953 - Add the newly created control to the Controls collection before
5954 updating its style. This way UpdateStyle can walk the control
5955 heirarchy to find the control if needed.
5956 so I don't need to create a new Point object all the time.
5957 * Form.cs: Let MDI windows handle their border styles.
5958 - Set styles on MDI windows so the correct title style is derived.
5959 * MdiChildContext.cs: Move all the painting and window handling
5960 into the non client area.
5961 - Use correct sizing and put correct buttons on frames based on
5962 the FormBorderStyle.
5963 - Notify the mdi client about scrolling
5964 - Need to handle the buttons ourselves now, because they are all
5965 in non client areas and we can't add controls there.
5966 * MdiClient.cs: Halfway to scrolling, this implementation is
5967 somewhat broken though, we need to check to make sure other
5968 windows aren't causing scrolling before removing the bars. Also
5969 the bars need to be drawn on top, maybe I can switch implicit
5970 controls to be on top.
5971 * Hwnd.cs: caption_height and tool_caption_height are now
5972 properties of an hwnd, this way they can be set by the driver
5973 based on the type of window they are. In X11 the window manager
5974 handles the decorations so caption_height is zero unless its an
5976 - Add 3 pixel borders for MDI windows (0xFFFF).
5977 - Get rid of some code duplication, have DefaultClientRectanle
5978 just call GetClientRectangle.
5979 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5981 - Set border styles differently for mdi windows.
5982 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5985 2005-11-15 Mike Kestner <mkestner@novell.com>
5987 * Menu.cs: when adding an item to the collection, if item is already
5988 parented, remove it from the parent.
5990 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
5992 * X11DesktopColors.cs: Added KDE support
5994 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
5997 - Clipboard methods now can translate Rtf format
5998 - No longer removes clipboard contents whenever a new format is added
5999 to allow placing multiple formats on the clipboard
6000 * Clipboard.cs: Clipboard now supports getting a IDataObject and
6001 will place all formats contained in it onto the clipboard. Also
6002 now cleans the clipboard before placing a new object onto it
6004 - Implemented set_Rtf
6005 - Implemented set_SelectedRtf
6006 - Created InsertRTFFromStream() method to allow single code base
6007 for all properties and methods that insert RTF into document
6008 - Removed debug output
6010 - Fixed Delete(int) to fix up line numbers
6011 - Fixed ReplaceSelection to combine start and end line
6012 - Fixed serious DeleteChars bug that would leave the document tree
6014 - Improved DumpTree with several logic checks to detect broken
6016 - Removed debug lines
6017 - Fixed Caret.WordForward/WordBack moving code, now always also
6018 updates caret.tag (fixes crash when word-selecting across tag
6019 boundaries via keyboard)
6020 - Added Insert() method for inserting multiline text into documents
6021 - Fixed DeleteChars() calculation errors that would cause a broken
6022 tag chain with multiple tag lines
6023 - DeleteChars() no longer crashes on multi-tag lines if not all tags
6024 - Split() no longer moves caret if split is at caret location
6025 - ReplaceSelection() now updates the cursor and re-displays it
6026 - ReplaceSelection() now uses new Insert() method to avoid code
6028 - FormatText() can now handle formatting partial lines
6030 - Append now uses new TextControl.Insert() method (this avoids
6032 - Implemented Ctrl-X (Cut) (
6033 - Implemented Ctrl-C (Copy)
6034 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
6035 regeneration when pasting text; roundtripping Copy&Paste within
6036 edit control still fails due to some calculation bugs in GenerateRTF)
6037 - The Delete key will now remove the current selection if it is visible
6038 * TextBox.cs: Removed debug lines
6039 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
6040 driver to be initialized and can't therefore be done via a static ctor)
6042 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
6044 * TextControl.cs: Added backend code for finding char arrays and strings
6046 - Added mouse wheel scroll support
6047 - Added support for VScroll and HScroll events
6049 - Implemented all seven Find() variants
6050 - Implemented GetCharFromPosition()
6051 - Implemented GetCharIndexFromPosition()
6052 - Implemented GetLineFromIndex()
6053 - Implemented GetPositionFromCharIndex();
6054 - Implemented SaveFile for PlainText and UnicodeText
6055 - Fixed set_Font, now setting a new font applies that font to
6057 - Implemented generic Document to RTF converter
6058 - Implemented SaveFile for RichText format (still missing unicode
6059 conversion for non-ansi chars)
6060 - Implemented get_Rtf
6061 - Implemented get_SelectedRtf
6063 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
6065 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
6066 to allow any captures to be released before triggering OnClick. This
6067 way a click handler may capture the mouse without interference.
6068 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
6069 This way we send them even though X may not allow a grab (if the window
6070 isn't visible, for example)
6072 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
6074 * DataGridViewRowEventArgs.cs: DataGridView implementation
6075 * DataGridViewElement.cs: DataGridView implementation
6076 * DataGridViewComboBoxCell.cs: DataGridView implementation
6077 * DataGridViewDataErrorContexts.cs: DataGridView implementation
6078 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
6079 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
6080 * ImageLayout.cs: DataGridView implementation
6081 * DataGridViewComboBoxColumn.cs: DataGridView implementation
6082 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
6083 * DataGridViewSelectionMode.cs: DataGridView implementation
6084 * IDataGridViewEditingControl.cs: DataGridView implementation
6085 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
6086 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
6087 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
6088 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
6089 * DataGridViewColumnSortMode.cs: DataGridView implementation
6090 * DataGridView.cs: DataGridView implementation
6091 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
6092 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
6093 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
6094 * Padding.cs: DataGridView implementation
6095 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
6096 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
6097 * DataGridViewRowEventHandler.cs: DataGridView implementation
6098 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
6099 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
6100 * DataGridViewButtonCell.cs: DataGridView implementation
6101 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
6102 * DataGridViewEditMode.cs: DataGridView implementation
6103 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
6104 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
6105 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
6106 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
6107 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
6108 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
6109 * DataGridViewCellEventHandler.cs: DataGridView implementation
6110 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
6111 * DataGridViewCellStyleConverter.cs: DataGridView implementation
6112 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
6113 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
6114 * DataGridViewColumnEventArgs.cs: DataGridView implementation
6115 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
6116 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
6117 * QuestionEventArgs.cs: DataGridView implementation
6118 * IDataGridViewEditingCell.cs: DataGridView implementation
6119 * DataGridViewTriState.cs: DataGridView implementation
6120 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
6121 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
6122 * DataGridViewColumnCollection.cs: DataGridView implementation
6123 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
6124 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
6125 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
6126 * DataGridViewColumn.cs: DataGridView implementation
6127 * DataGridViewCellBorderStyle.cs: DataGridView implementation
6128 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
6129 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
6130 * DataGridViewRow.cs: DataGridView implementation
6131 * DataGridViewImageCellLayout.cs: DataGridView implementation
6132 * DataGridViewImageCell.cs: DataGridView implementation
6133 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
6134 * DataGridViewCheckBoxCell.cs: DataGridView implementation
6135 * DataGridViewHeaderCell.cs: DataGridView implementation
6136 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
6137 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
6138 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
6139 * DataGridViewTextBoxColumn.cs: DataGridView implementation
6140 * QuestionEventHandler.cs: DataGridView implementation
6141 * DataGridViewCellStyleScopes.cs: DataGridView implementation
6142 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
6143 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
6144 * DataGridViewCell.cs: DataGridView implementation
6145 * DataGridViewCellEventArgs.cs: DataGridView implementation
6146 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
6147 * DataGridViewCellStyle.cs: DataGridView implementation
6148 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
6149 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
6150 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
6151 * TextFormatFlags.cs: DataGridView implementation
6152 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
6153 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
6154 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
6155 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
6156 * DataGridViewButtonColumn.cs: DataGridView implementation
6157 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
6158 * HandledMouseEventArgs.cs: DataGridView implementation
6159 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
6160 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
6161 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
6162 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
6163 * DataGridViewRowCollection.cs: DataGridView implementation
6164 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
6165 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
6166 * DataGridViewHitTestType.cs: DataGridView implementation
6167 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
6168 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
6169 * DataGridViewColumnEventHandler.cs: DataGridView implementation
6170 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
6171 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
6172 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
6173 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
6174 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
6175 * DataGridViewContentAlignment.cs: DataGridView implementation
6176 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
6177 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
6178 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
6179 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
6180 * DataGridViewPaintParts.cs: DataGridView implementation
6181 * DataGridViewCellCollection.cs: DataGridView implementation
6182 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
6183 * DataGridViewImageColumn.cs: DataGridView implementation
6184 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
6185 * DataGridViewElementStates.cs: DataGridView implementation
6186 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
6187 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
6188 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
6189 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
6190 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
6191 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
6192 * DataGridViewRowHeaderCell.cs: DataGridView implementation
6193 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
6194 * DataGridViewTextBoxCell.cs: DataGridView implementation
6195 * DataGridViewBand.cs: DataGridView implementation
6196 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
6197 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
6198 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
6199 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
6200 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
6201 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
6202 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
6203 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
6204 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
6205 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
6206 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
6208 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
6210 * ThemeWin32Classic.cs:
6211 - Draw the outside focus rectangle around buttons
6212 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
6213 doesn't use end caps for every dash of a line anymore. This
6214 workaround ignores the forecolor.
6216 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
6218 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
6221 2005-11-07 Jackson Harper <jackson@ximian.com>
6223 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
6225 2005-11-07 Jackson Harper <jackson@ximian.com>
6227 * ScrollableControl.cs: Calculate the maximum and change vars
6228 (more) correctly so that scrollbars appear as a sensible size.
6230 2005-11-04 Jackson Harper <jackson@ximian.com>
6232 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
6234 * TreeView.cs: When the tree is sorted null out the top_node so
6235 that it is recalculated.
6236 - Use dotted lines instead of dashed lines to match MS better.
6238 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
6241 - Implements key search for items. Useful when browsing files with FileDialog
6242 - When changing view mode or when clear the items reset scrollbar positions
6244 2005-11-04 Jackson Harper <jackson@ximian.com>
6246 * CurrencyManager.cs: Implement the MetaDataChanged event, the
6247 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
6248 as to what the method may do as there is no real way of creating a
6249 derived CurrencyManager and calling the method.
6251 2005-11-03 Jackson Harper <jackson@ximian.com>
6253 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
6254 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
6255 method which seems to just be used internally to refresh the tabs.
6257 2005-11-03 Jackson Harper <jackson@ximian.com>
6259 * TabControl.cs: Implement the remove method. Fix some broken
6262 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
6264 * DateTimePicker.cs:
6265 - Added missing DateTimePickerAccessibleObject class
6266 - Added missing events
6267 - Added OnFontChanged method
6268 * Form.cs: Added missing attributes
6269 * TreeView.cs: Added missing attributes
6271 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
6273 * GridItemCollection.cs: Fix signatures
6275 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
6277 * XplatUI.cs: Updated build rev/date
6278 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
6279 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
6280 * Application.cs: Trigger context-specific ExitThread events
6282 2005-11-03 Jackson Harper <jackson@ximian.com>
6286 * GridTableStylesCollection.cs:
6291 * MonthCalendar.cs: Signature fixes
6293 2005-11-03 Jackson Harper <jackson@ximian.com>
6295 * TreeNodeCollection.cs: Remove should not be virtual.
6296 * TreeView.cs: Implement the last of the missing methods.
6298 2005-11-03 Jackson Harper <jackson@ximian.com>
6300 * TreeNodeConverter.cs: Implement to get off my class-status back.
6302 2005-11-03 Jackson Harper <jackson@ximian.com>
6304 * TreeView.cs: Hookup the bits for drag and drop.
6305 * TreeNode.cs: Don't cache the tree_view or index anymore, now
6306 that nodes can be moved from tree to tree easily this just causes
6307 all sorts of problems.
6308 * TreeNodeCollection: Don't need to give treenodes an index and
6309 treeview anymore when they are added, these are computed on the
6310 fly. Also make sure to remove a node before its added.
6312 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
6315 - Added CaretSelection enum
6316 - Added comparison methods to Marker struct, makes selection code
6318 - Added SelectionStart and SelectionEnd as 'moveable' location for
6319 the CaretDirection enum and handler
6320 - Added selection_prev variable to track optimized invalidation for
6321 word and line selection
6322 - Added SelectionVisible property (returns true if there is a valid
6324 - Switched CaretHasFocus to only display the caret if there is no
6326 - Avoiding StringBuilder.ToString to retrieve a single char, instead
6327 using the direct character index; should be much faster
6328 - Added various conditional debug statements
6329 - Fixed invalidation calculation for selection ranges
6330 - Added ExpandSelection() method to support word and line selection
6331 - Switched SetSelectionToCaret to use new Marker compare overloads
6332 - Added central IsWordSeparator() method to determine word
6333 separators/whitespace and FindWordSeparator() to streamline common
6334 usage of IsWordSeparator()
6336 - Removed unneeded grabbed variable, it was just mirroring
6338 - No longer firing OnTextChanged event when Text setter is called,
6339 since the base will fire the event for us
6340 - Added handling of Ctrl-Up/Down selection
6341 - Added handling of Shift-Cursorkey selection
6342 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
6344 - Added handling of Shift and Ctrl-Shift-Home/End selection
6345 - Removed some debug output
6346 - Added handling for single/double/tripple-click to place caret/
6347 select word/select line respectively (Fixes bug #76031)
6348 - Added support for drag expansion of word/line selection
6349 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
6352 2005-11-02 Jackson Harper <jackson@ximian.com>
6354 * X11Dnd.cs: If the drag is going to and from a MWF window just
6355 copy the data instead of sending it out through the X Selection
6358 2005-11-02 Jackson Harper <jackson@ximian.com>
6361 * XplatUIX11.cs: When in a drag we don't want motion notify
6362 messages to get passed on to the other controls. This prevents
6363 mouse move messages from showing up in the drag source.
6365 2005-11-02 Jackson Harper <jackson@ximian.com>
6367 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
6368 the correct button is release to end a drag.
6369 * XplatUIX11.cs: Make the button state internal so the drag system
6370 can access it. Dragging needs to know about all button releases,
6371 not just left button.
6373 2005-11-02 Miguel de Icaza <miguel@novell.com>
6375 * Form.cs (Icon): If the icon is null, reset the icon to the
6378 * Cursor.cs: When writing the AND-mask bitmap do not include the
6379 number of colors, but hardcode those to two (black and white),
6380 fixes the loading of color cursors (Paint Dot Net).
6382 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6383 turn off autoscaling.
6385 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6387 2005-11-02 Jackson Harper <jackson@ximian.com>
6389 * X11Dnd.cs: Make sure to send a status message if the pointer
6390 enters a control that can not accept a drop, otherwise the cursor
6391 isn't updated correctly. Also tried to compress the lines of code
6394 2005-11-02 Jackson Harper <jackson@ximian.com>
6396 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6397 set actions correctly. This isn't perfect as XDND and win32 have
6398 some differences on how you allow actions. I'll clear this up by
6399 adding a path for drag from MWF to MWF windows.
6400 * XplatUIX11.cs: Hook into the dnd system.
6402 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
6404 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6405 previously shown but they are no longer need it. Very obvious when
6406 browsing files with FileDialog.
6408 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
6410 * Control.cs: We always need to call OnPaintBackground. We pretty much
6411 ignore AllPaintingInWmPaint and always do the painting there, whether
6412 it's set or not, since we always ignore the WM_ERASEBKGND message
6413 (which we don't generate on X11). This fixes #76616.
6414 * Panel.cs: Removed unneeded background painting. This happens properly
6415 in Control.cs already
6417 2005-10-31 Mike Kestner <mkestner@novell.com>
6419 * Menu.cs: Add items to collection before setting their index.
6420 * MenuItem.cs : add range checking with ArgumentException like MS.
6423 2005-10-31 Jackson Harper <jackson@ximian.com>
6425 * ListBox.cs: Invalidate if the area is visible at all not just
6426 contained in the visible rect. Fixes unselection of semi visible
6429 2005-10-31 Jackson Harper <jackson@ximian.com>
6431 * Control.cs: Consistently name the dnd methods. Make them
6432 internal so we can override them to match some MS behavoir
6434 * Win32DnD.cs: Use the new consistent names.
6436 2005-10-31 Jackson Harper <jackson@ximian.com>
6438 * TreeView.cs: Don't draw the selected node when we lose focus.
6440 2005-10-31 Jackson Harper <jackson@ximian.com>
6442 * X11Dnd.cs: We still need to reset the state even though a full
6443 reset isn't being done, otherwise status's still get sent all over
6446 2005-10-31 Jackson Harper <jackson@ximian.com>
6448 * Control.cs: Make the dnd_aware flag internal so the dnd
6449 subsystem can check it. Catch exceptions thrown in dnd handlers to
6451 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6452 * X11Dnd.cs: Handle null data in the converters. Set the XDND
6453 version when sending a XdndEnter. Use the control/hwnd dnd_aware
6454 flags to reduce the number of dnd enters/status's sent.
6456 2005-10-31 Jackson Harper <jackson@ximian.com>
6458 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6460 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
6462 * PictureBox.cs: Fixes 76512
6464 2005-10-28 Jackson Harper <jackson@ximian.com>
6466 * X11Dnd.cs: Early implementation to support winforms being a drag
6467 source for data on X11. Also restructured the converters so they
6468 can go both ways now.
6469 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6471 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
6473 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6476 2005-10-27 Jackson Harper <jackson@ximian.com>
6478 * TreeNode.cs: Implement serialization so my DnD examples will work.
6480 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
6482 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6483 TreeView.cs: Don't dispose objects that are not owned.
6485 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
6487 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6488 should retrieve the current cursor and report that, but XplatUI
6489 doesn't (yet) have an interface for that (and I'm not sure I even
6491 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6492 until any message loop processing is done (and the WM_SETCURSOR
6493 replaces the cursor to the proper one)
6495 - Fixed override behaviour, we can't set the cursor globally on X11,
6496 just for our windows.
6497 - Invalidating the System.Drawing X11 display handle when we are
6499 * Control.cs: Fix to make csc happy
6501 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
6504 - get_Text: Add last line (without trailing newline) to returned
6506 - get_TextLength: Count last line in returned length
6507 - ToString: Call Text property instead of duplicating code
6509 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
6511 * ImageList.cs: Dispose ImageAttributes objects.
6513 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
6515 * ImageList.cs: Use attribute constructors with less arguments where
6518 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
6520 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6521 Use typeof instead of strings when assembly is referenced. Added
6524 2005-10-21 Jackson Harper <jackson@ximian.com>
6526 * ListView.cs: Raise a double click event. Also tried to somewhat
6527 fix when the selectedindexchanged event is raised. Its still
6530 2005-10-21 Jackson Harper <jackson@ximian.com>
6532 * TreeView.cs: New method to invalidate the plus minus area of a
6533 node without invalidating the whole node (maybe this can be used
6534 in some more places).
6535 * TreeNodeCollection.cs: When adding to an empty node we need to
6536 invalidate its plus minus area so the little block shows up.
6538 2005-10-21 Jackson Harper <jackson@ximian.com>
6540 * TreeView.cs: Make sure that when we invalidate a node the bounds
6541 are big enough to cover the selected box and the focus
6542 rectangle. Use a different colour for the lines connecting nodes
6543 so they show up with all themes.
6545 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
6547 * NativeWindow.cs: Don't call anything that could call into the driver,
6548 we might be on a different thread.
6550 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
6552 * Control.cs(Dispose): Since Dispose might run on a different thread,
6553 make sure that we call methods that could call into the driver via
6554 invoke, to avoid thread issues
6556 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
6558 * XplatUI.cs: Removed finalizer
6559 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6560 not allowing to be called on the finalizer thread.
6562 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
6565 - Reverted r51889 and r51891.
6566 - Added ImageListItem class that stores unmodified image items and image
6567 properties required to create list images until handle is created.
6568 - Added AddItem and moved image creation logic to AddItemInternal.
6569 - Added CreateHandle method that creates images based on unmodified items.
6570 - Added DestroyHandle that changes state to store unmodified items.
6571 - Add and AddStrip methods no more create handle.
6572 - ReduceColorDepth has no return value.
6573 - Dispose destroys handle.
6574 - Modified other methods to reflect the above changes.
6575 - Implemented key support.
6576 - Added profile 2.0 members and attributes.
6577 - Added private Reset and ShouldSerialize methods that provide the same
6578 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6579 them as they are private.
6580 - Added some more comments about implementation details.
6582 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
6584 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6586 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
6588 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6590 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
6592 * DataGridDrawingLogic.cs: Fixes column hit calcultation
6593 * DataGridColumnStyle.cs: Remove debug message
6595 2005-10-20 Jackson Harper <jackson@ximian.com>
6597 * TreeView.cs: We can always get input keys regardless of whether
6598 or not editing is enabled. They are used for navigation.
6600 2005-10-20 Jackson Harper <jackson@ximian.com>
6602 * TreeNode.cs: Use the viewport rect for determining if a node
6603 needs to be moved for visibility. Don't use Begin/End edit. This
6604 calls a full refresh when its done.
6605 * TreeView.cs: New SetBottom works correctly. Make the viewport
6606 rect property internal so the treenodes can see it. When clicking
6607 on a node we need to ensure that its visible because it might just
6608 be partly visible when clicked.
6610 2005-10-20 Jackson Harper <jackson@ximian.com>
6612 * TreeNodeCollection.cs: Remove debug code.
6614 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
6616 * Datagrid.cs: Implements column sorting in Datagrid
6617 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6619 2005-10-20 Jackson Harper <jackson@ximian.com>
6621 * TreeNodeCollection.cs: Remove items properly. Update the correct
6622 area after removing them.
6624 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
6626 * Datagrid.cs: Should not call base.OnPaintBackground
6628 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
6630 * XplatUIX11.cs (GetMessage):
6631 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6632 window instead of client window
6633 - Now properly calculates NC_xBUTTONUP message coordinates
6634 - ScreenToMenu now properly calculates it's coordinates of whole
6635 window, since menus are in the whole window, not in the client
6637 - Added WholeToScreen coordinate translation method
6639 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
6641 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6642 want to return a message, loop back to the beginning of the function
6643 and grab the next real message to process instead.
6645 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
6647 * Splitter.cs: Properly set limits if no filler control is used
6649 2005-10-19 Jackson Harper <jackson@ximian.com>
6651 * ColorDialog.cs: Don't show the help button if it is not enabled
6652 instead of disabling it (this is what MS does). Don't create the
6653 panel until the dialog is run, otherwise the vars (such as
6654 ShowHelp) are not set yet.
6656 2005-10-19 Jackson Harper <jackson@ximian.com>
6658 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6659 are reduced when adding nodes.
6661 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6664 2005-10-19 Jackson Harper <jackson@ximian.com>
6666 * FolderBrowserDialog.cs: End editing our treeview so the window
6667 actually gets refreshed.
6669 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
6671 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
6672 Obsoleted handling of WM_ERASEBKGND, now always draws our background
6675 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
6677 * MenuAPI.cs: Returns after Hidding window
6678 * XplatUIX11.cs: Added TODO found while debugging menu issues
6680 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
6682 * XplatUIX11.cs: Do not re-map the whole window when it's size
6683 becomes non-zero unless it's supposed to be actually visible
6685 2005-10-18 Jackson Harper <jackson@ximian.com>
6687 * TreeView.cs: We don't need to keep a count anymore.
6688 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6689 use the Grow method.
6691 2005-10-18 Jackson Harper <jackson@ximian.com>
6693 * TreeNodeCollection.cs: Insert is not supported on arrays, so
6694 implement it manually here.
6696 2005-10-18 Jackson Harper <jackson@ximian.com>
6698 * ImageList.cs: Dont kill the list when the colour depth is
6699 changed, just change the colour depth of all the images.
6700 - Same goes for setting the image size. Just resize them all
6701 instead of killing the list softly.
6703 2005-10-18 Jackson Harper <jackson@ximian.com>
6705 * Control.cs: Don't invalidate empty rectangles.
6707 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
6710 - Adds checked item to the Checked/Item lists (where empty before)
6711 - Do not add items to the Selected lists if they are already present
6713 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6714 - When deleting items make sure that we delete them for the Selected
6715 and Checked list also.
6717 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
6719 * Label.cs: Dispose objects no longer used
6720 * ThemeWin32Classic.cs: Dispose objects no longer used
6722 2005-10-18 Jackson Harper <jackson@ximian.com>
6724 * TabControl.cs: Don't refresh the whole control when the tabs are
6725 scrolled, we just need to refresh the tab area.
6727 2005-10-17 Jackson Harper <jackson@ximian.com>
6729 * XplatUIX11.cs: Compress code a little bit. Only calculate the
6730 after handle when we need it.
6732 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
6734 * Control.cs: When the parent size changes, recalculate anchor
6735 positions. Partial fix for #76462
6737 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
6739 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
6742 2005-10-17 Jackson Harper <jackson@ximian.com>
6744 * MonthCalendar.cs: Don't create the numeric up down until our
6745 handle is created. Otherwise our handle is created in the
6746 constructor and we don't know if we are a WS_CHILD or WS_POPUP
6749 2005-10-17 Jackson Harper <jackson@ximian.com>
6751 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6754 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
6755 * TreeNode.cs : small logical fix (was using local var instead of field)
6757 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
6759 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6761 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
6763 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6765 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
6768 - Re-implemented anchoring code. My first version was really broken.
6769 This fixes bug #76033. Unlike the previous implementation we will
6770 no longer have round errors since all numbers are calculated from
6771 scratch every time. Removed various anchor-related obsolete vars.
6772 - InitLayout no longer causes layout event firing and layout to be
6775 2005-10-16 Jackson Harper <jackson@ximian.com>
6777 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6780 2005-10-16 Jackson Harper <jackson@ximian.com>
6782 * TabControl.cs: Remove debug code.
6784 2005-10-16 Jackson Harper <jackson@ximian.com>
6786 * XEventQueue.cs: Increase the default queue size (very simple
6787 apps needed to grow the queue).
6788 * Hwnd.cs: No finalizer so we don't need to suppress
6789 finalization. Compute the invalid area manually so a new rectangle
6790 does not newto be created.
6791 * ScrollableControl.cs: Don't set any params (otherwise visibility
6792 isn't set correctly).
6793 * MdiChildContext.cs: New constructor takes the mdi parent so it
6794 doesn't have to be computed and avoids a crash on windows. Draw
6795 the window icon properly, and allow the text to be seen.
6796 * Form.cs: Use new MdiChildContext constructor. Make sure the
6797 child context isn't null in wndproc.
6798 * TabControl.cs: Don't set focus, this is muddling keyboard
6799 behavoir. Expand the tab rows when a window size increase will
6800 allow extra tabs to be seen. Don't allow tabs smaller than the
6801 width of a window to be scrolled out of view.
6803 * TreeView.cs: Use measure string to calculate a nodes width, the
6804 width is cached and only updated when the text or the font is
6805 changed. Don't check for expand/collapse clicks on the first level
6806 nodes if root lines are disabled.
6808 2005-10-16 Ritvik Mayank <mritvik@novell.com>
6810 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6812 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
6814 * DataGridBoolColumn.cs: fixes warning
6816 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
6818 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6819 to match more to match more precisely the MS Net behavior
6821 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
6823 * Hwnd.cs: Added field to track if window is mapped
6825 - Unmap windows if they become 0-size, re-map when
6826 they are >0 again; fixes #76035
6827 - Re-set our error handler after initializing X11Desktop
6828 to override any error handlers Gtk or whatever was called
6831 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
6833 * CheckedListBox.cs: Removed unused vars
6834 * ListView.cs: Fixed signatures
6835 * RichTextBox.cs: Removed unused vars
6836 * TextBoxBase.cs: Removed unused vars
6837 * XplatUIWin32.cs: Removed unused vars
6838 * XplatUIX11.cs: Removed unused vars
6839 * XplatUI.cs: Updated version and date to latest published
6841 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
6843 * Cursor.cs: Added private .ctor to work around a bug in
6844 resourceset (Thanks to Geoff Norton for the help on this)
6845 * SplitterEventArgs.cs: Made fields accessible so we don't
6846 waste boatloads of objects and can reuse the same one
6848 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6849 any captions and borders when generating screen coordinates
6850 * Splitter.cs: Reimplemented control, now fully complete, uses
6851 rubberband drawing, supports and obeys all properties, has
6854 2005-10-13 Miguel de Icaza <miguel@novell.com>
6856 * Form.cs (Form): Setup default values for autoscale and
6857 autoscale_base_size; Make these instance variables, not static
6860 (OnLoad): on the first load, adjust the size of the form.
6862 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
6864 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
6865 width argument to DrawReversibleRectangle()
6866 * XplatUIWin32.cs, XplatUIX11.cs:
6867 - Implemented width for DrawReversibleRectangle()
6868 - Added logic to DrawReversibleRectangle that recognizes a zero
6869 width or height and only draws a line in that situation
6871 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
6873 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6874 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6875 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6876 method (it uses our FosterParent window to get a graphics context)
6878 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
6880 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
6881 and SetWindowBackground methods
6883 - Setting proper ControlStyles
6884 - We no longer call XplatUI.SetWindowBackground and XplatUI.
6885 EraseWindowBackground, instead we draw the window background
6886 ourselves in PaintControlBackground. This behaviour is
6887 required to match MS, where, when OnPaintBackground is not
6888 called, the background is not drawn.
6889 - Removed unneeded Refresh() in set_Text
6890 * Hwnd.cs: Dropped the ErasePending support. No longer needed
6892 - Created DeriveStyles method to translate from CreateParams to
6893 FormBorderStyle and TitleStyle, also handles BorderStyle (which
6894 matches FormBorderStyle enum values)
6895 - Consolidated SetHwndStyles and CalculateWindowRect border/title
6896 style calculations into single DeriveStyles method
6897 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6898 from redrawing the whole window on any resize or expose.
6899 - Fixed CreateWindow usage of SetWindowValuemask. Before not
6900 all styles were applied to our whole/client window appropriately
6901 - Removed EraseWindowBackground() and SetWindowBackground() methods
6902 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6903 no longer clear/redraw the background through X
6904 - Removed handling of erase_pending bit, we have no use for it (or
6907 - Removed generation and handling of WM_ERASEBKGND message
6908 - Removed EraseWindowBackground() and SetWindowBackground() methods
6909 - Removed handling of hwnd.ErasePending flag
6911 - Removed EraseWindowBackground() and SetWindowBackground() methods
6912 - We no longer call EraseWindowBackground on PaintEventStart, we
6913 ignore the fErase flag, erasing is handled in Control in the
6915 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6916 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6917 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
6918 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
6919 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
6920 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6921 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6923 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
6925 * PropertyGrids.cs: Get sub properties
6926 * PropertyGridView.cs: Fix drawing code
6928 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
6930 * ListBox.cs: Fixes 76383
6932 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
6934 * DataGridTextBoxColumn.cs: Sets location and size before attachment
6935 * ThemeWin32Classic.cs: Fixes border drawing and calculations
6936 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6939 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
6941 * ComboBox.cs: Fixes border drawing
6943 2005-10-10 Miguel de Icaza <miguel@novell.com>
6945 * MimeIcon.cs: Ignore errors if the file can not be read.
6947 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
6949 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6950 - Fixed border calculations
6951 - Fixed horizontal scrolling in single column listboxes
6952 - Fixed drawing issues
6954 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
6956 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
6957 FormBorderStyle enum
6958 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
6959 code to determine FormBorderStyles from CreateParams
6961 - Fixed bug where we'd set the wrong window styles if we were
6962 not creating an MDI window
6963 - Added call to XplatUI.SetBorderStyle when form borders are set
6964 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6966 - Removed obsolete edge style
6967 - Switched from BorderStyle to FormBorderStyle
6969 2005-10-10 Jackson Harper <jackson@ximian.com>
6971 * Form.cs: Use the property to get the window handle instead of
6972 accessing it directly. Prevents a null reference exception.
6974 2005-10-10 Jackson Harper <jackson@ximian.com>
6976 * TreeView.cs: Don't adjust the rect given to DrawString now that
6977 our libgdiplus draws correctly.
6979 2005-10-08 Jackson Harper <jackson@ximian.com>
6981 * TreeView.cs: Don't try to find the clicked on node if there are
6982 no nodes in the tree.
6984 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
6990 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
6992 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6993 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6995 Use ResPool for brushes and dispose System.Drawing objects that
6996 are not used anymore.
6998 2005-10-07 Jackson Harper <jackson@ximian.com>
7000 * MdiChildContext.cs: Use the new borders instead of drawing them
7003 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
7005 * Calling UpdateBounds after changing the window's BorderStyle
7006 since the style can change the ClientSize
7008 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7010 * Control.cs: Made PaintControlBackground virtual
7011 * Panel.cs: Overriding PaintControlBackground instead of using paint
7012 event; paint event method was interfering with 'real' users of the
7015 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
7017 * ThemeWin32Classic.cs: remove border drawing since it is handled
7018 by the base control class now and was causing double border drawing.
7020 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7022 * Panel.cs: Redraw our background on paint. Not a pretty solution,
7023 but it does seem to match MS behaviour. This fixes bug #75324
7025 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7027 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
7028 somewhat hackish looking
7030 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7033 - We now accept Enter even if AcceptEnter is false, if the containing
7034 form does not have an AcceptButton configured (fixes bug #76355)
7035 - Calculations are now fixed to no longer use Width/Height, but
7036 ClientSize.Width/Height, since we now support borders (this was
7037 a result of fixing borders and therefore bug #76166)
7038 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
7039 true (fixes bug #76354)
7041 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7044 - Defaulting BorderStyle and setting it in XplatUI when our window
7046 - Added enum check to InternalBorderStyle setter
7048 - Added drawing of window borders
7049 - Now properly calculates WM decorations offset for toplevel
7050 windows (fixes bug #74763)
7052 - Implemented BorderStyles for windows (we're letting win32 draw
7054 - Fixed the signature for SetWindowLong
7055 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
7056 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
7058 * UpDownBase.cs: Remove drawing of borders, this is handled by
7059 the driver, outside the client area
7060 * ListView.cs: Removed bogus border calculations. The control should
7061 be oblivious to borders, since those are not part of the client
7063 * X11DesktopColors.cs: Commented out (currently) unneeded variables
7064 * ThemeWin32Classic.cs: Removed border calculations from ListView
7067 2005-10-06 Jackson Harper <jackson@ximian.com>
7069 * MdiChildContext.cs: Clear out the old virtual position remove
7070 all the unneeded calls to CreateGraphics.
7072 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7074 * TextControl.cs: Use proper color for highlighted text; fixes #76350
7076 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7079 - Added loading and setting of our new default icon
7080 - Only set icon if window is already created
7082 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
7085 - Do not explicitly set the foreground and background colors, to
7086 allow inheriting from parents (fixes #76302)
7087 - Use Control's InternalBorderStyle property to deal with borders
7089 2005-10-06 Jackson Harper <jackson@ximian.com>
7091 * MdiChildContext.cs: Use the new xplatui function to draw a
7094 2005-10-06 Jackson Harper <jackson@ximian.com>
7096 * Form.cs: Add the parent before creating the child context cause
7097 we need the parent when setting up the child.
7099 2005-10-06 Jackson Harper <jackson@ximian.com>
7101 * FolderBrowserDialog.cs: redo the tree population code so a
7102 second thread isn't used. Should be a lot faster and more stable
7105 2005-10-05 Jackson Harper <jackson@ximian.com>
7107 * TreeView.cs: There are no expand/collapse boxes if the node has
7110 2005-10-05 Jackson Harper <jackson@ximian.com>
7112 * X11DesktopColors.cs: Get menu colours for the gtk theme.
7114 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
7116 * FileDialog.cs: Fix InitialDirectory
7118 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
7121 - Fixes changing between styles
7123 - Fixes last item crashing when navigating with keyboard
7125 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
7127 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
7129 2005-10-05 Jackson Harper <jackson@ximian.com>
7131 * TreeView.cs: If updating the root node do a full refresh.
7132 * TreeNode.cs: The root node should be expanded by default. Also
7133 added a utility prop to tell if we are the root node.
7134 * TreeNodeCollection.cs: Only refresh if the node we are being
7135 added to is expanded. Also added a comment on a potential
7138 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
7140 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
7141 in dispose method. Fixes #76330
7143 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
7145 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
7147 - Implements vertical and horizontal scrolling using XplatUI
7148 - Fixes keyboard navagation
7149 - Fixes EnsureVisible
7151 - Handles and draws focus properly
7154 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
7156 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
7157 Create handle. NET_2_0: Destroy handle when value is null.
7159 2005-10-03 Jackson Harper <jackson@ximian.com>
7161 * ScrollBar.cs: My last scrollbar patch was broken. This is a
7162 revert and a new patch to prevent the thumb from refreshing so
7165 2005-10-02 Jackson Harper <jackson@ximian.com>
7167 * ScrollBar.cs: Don't update position if it hasn't actually
7168 changed. This occurs when you hold down the increment/decrement
7169 buttons and the thumb gets to the max/min.
7171 2005-10-01 Jackson Harper <jackson@ximian.com>
7174 * MdiChildContext.cs:
7175 * MdiClient.cs: Implement ActiveMdiChild in Form.
7177 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
7179 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
7181 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
7183 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
7186 2005-09-30 Jackson Harper <jackson@ximian.com>
7188 * ListBox.cs: Don't do a full refresh unless some data has
7191 2005-09-30 Jackson Harper <jackson@ximian.com>
7193 * TreeView.cs: Make sure that the checkboxes size is factored in
7194 even when not visible.
7196 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
7198 * FileDialog.cs: Fix Jordi's build break
7200 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
7203 - Use standard the Windows colours for the combobox as espected
7204 - Dispose objects that use resouces when no longer need them
7206 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
7208 * X11DesktopColors.cs: Initial incomplete implementation
7209 * XplatUIX11.cs: Added call to initialize X11DesktopColors
7211 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
7214 - Switched Theme color names to match the names defined in
7215 System.Drawing.KnownColors. Life's hard enough, no need to make
7217 - Added setters to all theme color properties so themes can set
7218 their color schemes. The setters also propagate the color changes
7219 to System.Drawing.KnownColors via reflection
7220 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
7221 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
7222 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
7223 use the new, more logical theme color names
7224 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
7226 * ThemeWin32Classic.cs:
7227 - Removed code to set the old classic Windows colors. Instead it
7228 now relies on the colors returned by System.Drawing.KnownColors
7229 which will be either modern static colors (Unix) or colors
7230 read from the user's configuration (Win32)
7231 - Updated to use the new, more logical theme color names
7232 - Switched DataGrid drawing code to use only Theme colors instead of
7233 a mix of System.Drawing.KnownColors and Theme colors
7234 - DrawFrameControl(): Removed code that fills the button area, the
7235 fill would overwrite any previous fill done by a control. This
7237 - Added DrawReversibleRectangle() stub
7238 * ScrollableControl.cs: Set visible state to false when scrollbars
7239 are removed (pdn fix)
7240 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
7241 DrawReversibleRectangle() method to allow drawing primitive
7243 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
7245 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7247 * ImageList.cs: Add(Icon): Create handle.
7249 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
7252 * ThemeWin32Classic.cs:
7255 - Issues with drawing
7257 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7259 * ImageList.cs: Moved RecreateHandle back to ImageList as event
7260 source has to be the ImageList.
7262 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7264 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
7266 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7268 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
7270 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7272 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
7274 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
7275 * GridItem.cs: Fixed TODOs
7276 * GridItemCollection.cs: Added ICollection interface
7278 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
7280 * ImageList.cs: Resize icons when needed.
7282 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
7285 - Fixes GetBounds and returns on screen rects
7287 - Fixes vertical and horzintal scrolling of items
7288 * ThemeWin32Classic.cs:
7291 2005-09-29 Raja R Harinath <harinath@gmail.com>
7293 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
7295 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
7297 * ImageList.cs: Added comments about handle creation. Moved Handle,
7298 HandleCreated and OnRecreateHandle implementations to ImageCollection.
7299 Handle is created in Add methods.
7301 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
7303 * DataGridDrawingLogic.cs:
7304 - Takes rows into account on Colum calculations
7305 - Returns the column when clickig
7307 - Fixes default HitTestInfo values
7308 - Fixes HitTestInfo.ToString
7309 - Fixes ResetBackColor
7311 2005-09-28 Jackson Harper <jackson@ximian.com>
7313 * MdiChildContext.cs: Obey rules for fixed sized windows (no
7314 sizing or cursor changes). Also added some temp code to draw the
7315 titlebars text (Makes dev a little easier).
7317 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
7319 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
7321 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
7323 * ListBox.cs: Fixes bug 76253
7325 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
7327 * ImageList.cs: Added comments about the current implementation. Added
7328 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
7329 Format32bppArgb to preserve transparency and can use Graphics.FromImage
7330 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
7331 with Bitmap.LockBits for better performance. Revised the whole file to
7332 match MS.NET behaviour and provide better performance. Non-public
7333 interface members are calling public members even when they throw
7334 NotSupportedException for better maintainability. Moved ColorDepth,
7335 ImageSize, ImageStream and TransparentColor implementations to
7336 ImageCollection for better performance as these properties are not used
7338 * ImageListStreamer.cs: Added a new internal constructor that takes an
7339 ImageList.ImageCollection and serializes Images based on
7340 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
7341 match ImageList property name.
7343 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
7345 * ListBox.cs: Fixes IndexFromPoint for last item
7347 2005-09-27 Jackson Harper <jackson@ximian.com>
7349 * Form.cs: Set the position of new mdi children correctly.
7351 2005-09-27 Jackson Harper <jackson@ximian.com>
7353 * MdiClient.cs: New mdi children need to be added to the back of
7354 the controls collection so the zorder is set correctly. Also add a
7355 count of all the child windows that have been created.
7357 2005-09-27 Jackson Harper <jackson@ximian.com>
7359 * Form.cs (CreateParams): Setup MDI forms correctly.
7361 2005-09-27 Jackson Harper <jackson@ximian.com>
7363 * MdiChildContext.cs:
7370 * ScrollableControl.cs:
7371 * ComboBox.cs: Add implicit controls using the new implict control
7372 functionality in ControlCollection. Also try to block multiple
7373 control add in a suspend/resume layout to save some cycles.
7375 2005-09-27 Jackson Harper <jackson@ximian.com>
7377 * Control.cs: Add functionality to the controls collection to add
7378 'implicit controls' these are controls that are created by the
7379 containing control but should not be exposed to the user. Such as
7380 scrollbars in the treeview.
7381 * Form.cs: The list var of the ControlsCollection is no longer
7382 available because of the potential of implicit controls getting
7383 ignored by someone accessing the list directly.
7385 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
7387 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7388 loose it's parent. (Fixed bug introduced in r49103 when we added
7389 setting the child parent to null on Remove)
7391 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
7393 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7394 * Splitter.cs: Added missing attributes for BorderStyle property.
7395 * TextBoxBase.cs: Marked Calculate* methods internal.
7396 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7399 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
7401 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7403 2005-09-25 Jackson Harper <jackson@ximian.com>
7405 * TreeView.cs: Update the node bounds correctly regardless of
7406 whether the node is visible.
7408 2005-09-25 Jackson Harper <jackson@ximian.com>
7410 * ImageList.cs: Don't dispose the image after it is added to the
7411 image list. Only reformat images that need to be resized.
7413 2005-09-25 Jackson Harper <jackson@ximian.com>
7415 * ImageList.cs: Don't set the format when changing the image.
7417 2005-09-25 Jackson Harper <jackson@ximian.com>
7419 * TreeView.cs: We can't just assume the node has a font. Use the
7420 treeviews font if no node font is available.
7422 2005-09-25 Jackson Harper <jackson@ximian.com>
7424 * TreeView.cs: Allow the scrollbars to be reset with negative
7426 - Don't add scrollbars to negative sized windows.
7428 2005-09-23 Jackson Harper <jackson@ximian.com>
7430 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7431 old Mono.Posix. Also remove some stray code that shouldn't have
7434 2005-09-23 Jackson Harper <jackson@ximian.com>
7436 * TreeView.cs: Attempt at proper sizing of the horizontal
7437 scrollbar. Also don't resize the scrollbars unless they are
7440 2005-09-23 Jackson Harper <jackson@ximian.com>
7442 * TreeView.cs: We don't need to expand the invalid area when the
7443 selection changes, as this is all drawn in the node's bounding
7444 box. The area needs to be expanded (previous typo was contracting
7445 it) when the focus rect moves.
7447 2005-09-23 Jackson Harper <jackson@ximian.com>
7449 * TreeView.cs: Display the selection box under the correct
7450 circumstances. We were rendering white text with no selection box
7453 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
7455 * TextControl.cs(Split): Now updates selection start/end if it points
7456 into a line that's being split. Fixes a FIXME and bug #75258
7458 2005-09-23 Jackson Harper <jackson@ximian.com>
7461 * ListControl.cs: Don't use the path when retrieving binding
7462 managers from the binding context. My bat sense tells me that the
7463 path is only used on insertion.
7465 2005-09-22 Jackson Harper <jackson@ximian.com>
7467 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7469 2005-09-22 Jackson Harper <jackson@ximian.com>
7471 * Splitter.cs: There are special cursors used for splitting.
7472 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7474 2005-09-22 Jackson Harper <jackson@ximian.com>
7476 * Splitter.cs: Change the cursor appropriately when the splitter
7477 is moused over, so the user actually knows there is a splitter
7480 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7482 * Label.cs : Fix ToString method to give same output as MS.NET
7484 2005-09-22 Jackson Harper <jackson@ximian.com>
7486 * TreeView.cs: Create the scrollbars when the handle is created
7487 and add them right away, just make them invisble. Also account for
7488 the window being shrunk vertically to the point that the vert
7489 scrollbar needs to be added.
7490 - Remove some 0.5 adjustments to get around anti aliasing issues.
7492 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
7494 * MainMenu.cs: Fixes default value
7495 * MenuItem.cs: Fixes default value
7497 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
7499 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7501 2005-09-21 Jackson Harper <jackson@ximian.com>
7503 * Control.cs: Don't try to set the border style on the window if
7504 it hasn't been created. When the window is created the border
7507 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
7509 * Control.cs (Update): Don't call XplatUI if we don't have a
7512 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
7514 * ContainerControl.cs: Instead of throwing an exception, print
7515 a one-time warning about Validate not being implemented
7516 * XplatUIWin32.cs: Removed debug output
7518 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
7520 * Control.cs: Only set XplatUI background if we expect the windowing
7521 system to handle the background. This stops controls that draw their
7522 own background from flickering
7524 * XplatUIX11.cs: Support custom visuals and colormaps for window
7525 creation. This allows, amongst other things, using MWF X11 windows
7528 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
7530 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7531 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7532 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7533 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7534 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7535 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7536 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7537 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7538 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7539 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7540 GridColumnStylesCollection.cs,
7541 IDataGridColumnStyleEditingNotificationService.cs,
7542 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7543 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7544 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
7545 TreeNodeCollection.cs, AmbientProperties.cs,
7546 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7547 DataObject.cs, ErrorProvider.cs, Splitter.cs,
7548 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7549 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7550 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7551 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7552 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7553 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7554 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7555 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7556 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7557 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7558 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7559 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7560 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7561 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7562 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7563 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7564 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7565 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7566 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7567 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7568 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7569 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7570 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7571 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7572 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7573 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7574 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7575 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7576 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7577 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7578 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7579 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7580 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7581 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7582 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7584 2005-09-21 Jackson Harper <jackson@ximian.com>
7586 * TreeNode.cs: Call Before/After Expand not Collapse when
7589 2005-09-20 Jackson Harper <jackson@ximian.com>
7591 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7593 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
7597 - Fixes proper storing of subitems
7598 - Fixes not updated items
7600 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
7602 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7603 things if our window handle isn't created yet. Also disabled
7604 debug for TextBoxBase
7606 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
7608 * MenuAPI.cs: Remove filtering of events to allow menu usage
7610 2005-09-20 Miguel de Icaza <miguel@novell.com>
7612 * Cursor.cs: Allow null to be passed to Cursor.Current.
7614 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
7616 * ThemeWin32Classic.cs:
7617 - Change some private methods/fields to protected virtual so that
7618 they can be accessed and overriden in derived classes
7619 - First refactoring of some methods. Derived themes now don't
7620 need to duplicate the complete code from ThemeWin32Classic
7622 - Added nice StatusBar
7623 - Derive from ThemeWin32Classic and not Theme
7624 - Removed duplicate ThemeWin32Classic code
7626 2005-09-20 Miguel de Icaza <miguel@novell.com>
7628 * Control.cs (ControlCollection.Add): If the value null is passed
7629 the control is ignored.
7633 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
7635 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7636 PostQuitMessage state.
7637 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7639 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
7641 * Application.cs: Our constructor will never get called, move
7642 initialization to fields; fixes bug #75933
7644 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7647 - Allow files to be selected properly using file name
7649 - Add ability to change diretory (absolute / relative)
7650 using file name combo box.
7652 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
7655 - Fixes Multicolumn listboxes item wrong calculations
7656 - Allows to click when only one item is in the listbox
7657 - Fixes crash when no items using keyboard navigation
7659 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
7661 * ComboBox.cs: Reverted almost everything from the latest patch which
7664 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
7667 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7669 - When DropDownStyle is Simple, it does not show scrollbar
7670 to the last item of the list.
7671 - When DropDownStyle is Simple, it crashed when the list was
7672 scrolled down with the down cursor key.
7673 - Fixed a bug that when DropDownStyle is DropDownList, the
7674 selected item was not shown.
7675 - The position of the selected item was not preserved when
7676 the next dropdown happened.
7677 * ThemeWin32Classic.cs:
7678 - Items were wrapped at the right end.
7679 * CheckedListBox.cs:
7682 - Items should be fully shown.
7683 - When resizing and vertical scrollbar disappeared, the item
7684 of index 0 should be on the top of the list.
7685 - GetItemRectangle should consider the size of ver. scrollbar
7687 - SizingGrip area should not be allocated when it is not
7689 - Now it reflects MinWidth of the containing panel and
7690 fixed a crash that happens when its width becomes so small.
7692 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
7694 * CheckedListBox.cs: Fixes bug 76028
7695 * ListBox.cs: Fixes bug 76028
7697 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
7699 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7700 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7702 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
7704 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7706 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
7708 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
7710 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
7712 * IRootGridEntry.cs: Added
7713 * PropertyGridCommands.cs: Added
7714 * PropertiesTab.cs: Added missing methods and property
7715 * PropertyGridView.cs: Made class internal
7716 * PropertyGridTextBox.cs: Made class internal
7718 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
7720 * MimeIcon.cs: Try to check some other environment variables
7721 if "DESKTOP_SESSION" returns "default"
7723 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
7725 * ThemeNice.cs: Corrected background colors (e.g. menus)
7726 * ColorDialog.cs: Use correct background colors for controls
7728 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
7730 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7732 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
7734 * RichTextBox.cs: Added initial implementation
7735 * lang.cs: Removed. Was accidentally checked in long time ago
7736 * TODO: Removed. Contents were obsolete
7738 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
7740 * PropertiesTab.cs : Added
7742 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
7744 * PropertyGrid.cs : Update
7745 * PropertyGridView.cs : Update
7746 * System.Windows.Forms.resx : Added images and strings
7748 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
7750 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7752 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
7754 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7755 a busy loop right after the Ungrab the X11 display is otherwise
7758 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
7760 * ThemeWin32Classic.cs: Optimise the use of clipping
7762 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
7764 * DataGrid.cs: fixes recursion bug
7766 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
7769 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7772 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
7774 * ThemeNice.cs: Draw nice ProgressBars
7776 2005-09-01 Miguel de Icaza <miguel@novell.com>
7778 * VScrollBar.cs: Another buglet found by Aaron's tool.
7780 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7783 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
7786 - Added nicer menu drawing
7790 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
7792 * CreateParams.cs (ToString): Made output match MS
7793 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
7794 handle is already created (to avoid forcing window creation)
7795 * XplatUIX11.cs: Set window text to caption after creating window,
7796 in case Text was set before window was created
7797 * Form.cs: Use this.Text instead of a static string as caption
7799 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
7801 * NotifyIcon.cs: Don't set the window to visible; this screws
7802 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7803 OnPaint without a bitmap)
7804 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
7805 happen very often anyway; we could add the check to the WM_PAINT
7806 event generation code
7808 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
7810 * NotifyIcon.cs: Fill the icon area with a background color, to
7811 avoid 'residue' when transparent icons are drawn
7813 - Handle whole_window == client_window when destroying windows
7814 - SystrayAdd(): Set client_window to whole_window value to
7815 get mouse and other events passed to NotifyIcon
7817 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
7819 * Form.cs: Set proper default for Opacity property
7821 - ShowSystray(): Don't bother creating telling the OS
7822 about the systray item if no icon is provided
7823 - Now handles WM_NCPAINT message to deal with whole/client window
7825 - Create window as visible to not get caught by Expose optimization
7826 * Hwnd.cs: Removed debug message
7827 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7828 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
7829 PaintEventStart/End to use new client argument
7831 - Commented out debug messages
7832 - Switched PaintEventStart/End to use new client argument
7833 * XplatUI.cs: Added client window bool to PaintEventStart()/
7834 PaintEventEnd() calls, to support drawing in non-client areas
7836 - Added client window bool to PaintEventStart()/PaintEventEnd()
7837 calls, to support drawing in non-client areas
7838 - Added conditional compile to allow using MWF BeginInvoke
7841 - Added some conditional debug output
7842 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7843 whole/client window split
7844 - Implemented handling of client argument to PaintEventStart()/End()
7846 - Throw exception if BeginInvoke() is called and the window handle
7847 or one of the window's parent handles is not created
7848 - Added conditional compile to allow using MWF BeginInvoke on
7850 - get_Parent(): Only sets parent if handle is created. This avoids
7851 forcing window handle creation when parent is set.
7852 - Now fires Layout and Parent changed events in proper order
7853 - Switched to use Handle instead of window.Handle for Z-Order setting,
7854 the get_Parent() patch above causes us to possibly get null for 'window'
7855 - Implemented handling of client argument to PaintEventStart()/End()
7856 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7858 - Now sends a Refresh() to all child windows when Refresh() is called
7860 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
7862 * Form.cs: Added (non-functional) Opacity property
7863 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7865 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
7866 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7867 use export MONO_THEME=nice to activate it.
7868 Currently supported controls:
7872 - TabControl (TabAlignment.Top only, other will follow)
7873 * ThemeEngine.cs: Add theme nice
7874 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7877 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
7879 * Splitter.cs: Resize docked control and its neighbor.
7881 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
7882 -- Making Windows with Menus layout correctly --
7883 * Form.cs : The first leg of the fix
7884 Menu setter - adjust Client Size as needed to make space for the menu
7885 SetClientSizeCore - doesn't call base version to be able to pass the
7886 menu handle to XplatUI.CalculateWindowRect
7887 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7888 * XplatUIX11.cs: The critical second leg of the fix
7889 GetWindowPos needs to use a recalculated client_rect
7890 so that resizing the window doesn't break layout of child controls.
7891 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7894 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
7896 * Label.cs: Now properly recalculates width and height on Font and Text
7897 changes if AutoSize is set
7899 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
7900 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7902 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
7904 * ImageList.cs: Makes ToString method compatible with MS
7906 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
7908 * MenuAPI.cs: fixes bug 75716
7910 2005-08-11 Umadevi S <sumadevi@novell.com>
7911 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7913 2005-08-11 Umadevi S <sumadevi@novell.com>
7914 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7916 2005-08-10 Umadevi S <sumadevi@novell.com>
7917 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7919 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
7921 * Menu.cs: fixes bug 75700
7922 * MenuAPI.cs: fixes navigation issues
7924 2005-08-09 Umadevi S <sumadevi@novell.com>
7925 * CheckedListBox.cs - simple fix for GetItemChecked.
7927 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
7929 * ComboBox.cs: Serveral fixes
7930 * ListBox.cs: Serveral fixes
7932 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
7934 * ComboBox.cs: Fixes FindString methods and GetItemHeight
7935 * ListBox.cs: Fixes FindString methods
7937 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
7939 * DataGrid.cs: fixes bugs exposed by new tests
7941 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
7943 * Mime.cs: Compile Mono assembly references only if compiling
7944 with Mono (Allows to build with VS.Net again)
7946 2005-07-28 Marek Safar <marek.safar@seznam.cz>
7948 * Control.cs (PaintControlBackground): Draw background image
7950 (CheckForIllegalCrossThreadCalls): Stubbed.
7952 * Form.cs (OnCreateControl): Center when should be centered.
7954 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7956 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
7958 * Binding.cs: Binding to properties should be case unsensitive
7960 2005-07-18 vlindos@nucleusys.com
7962 * DataGrid.cs: fixes setmember order
7964 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
7966 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7967 * FileDialog.cs: FileDialog is now resizable and uses the new
7970 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
7972 * DataGridTextBoxColumn.cs: default value
7973 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7974 * GridTableStylesCollection.cs: fixes checking MappingName
7975 * DataGridDrawingLogic.cs: fixes drawing logic issues
7976 * DataSourceHelper.cs: rewritten to make compatible with more data sources
7977 * DataGrid.cs: fixes
7979 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
7981 * MimeGenerated.cs: Use case sensitive comparer for
7982 NameValueCollections
7984 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
7986 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
7987 * ThemeWin32Classic.cs: bug fixes, code refactoring
7988 * DataGridDrawingLogic.cs: bug fixes, code refactoring
7989 * DataGrid.cs: bug fixes, code refactoring
7990 * DataGridTextBox.cs: bug fixes, code refactoring
7991 * DataGridColumnStyle.cs: bug fixes, code refactoring
7992 * Theme.cs: bug fixes, code refactoring
7994 2005-07-01 Peter Bartok <pbartok@novell.com>
7996 * TextControl.cs: Quick fix for the reported crash on ColorDialog
7997 and other text box usage
7999 2005-07-01 Jackson Harper <jackson@ximian.com>
8001 * TabControl.cs: Make sure the bottom of the tab covers the pages
8004 2005-06-30 Peter Bartok <pbartok@novell.com>
8006 * Form.cs (ShowDialog): Assign owner of the dialog
8007 * TextBoxBase.cs: Always refresh caret size when deleting, caret
8008 might have been moved to a tag with different height
8010 2005-06-30 Jackson Harper <jackson@ximian.com>
8012 * Form.cs: Don't create an infinite loop when setting focus
8013 * MenuItem.cs: Don't dirty the parents if we don't have any
8015 2005-06-29 Ben Maurer <bmaurer@ximian.com>
8017 * LibSupport.cs: Rename
8019 2005-06-29 Peter Bartok <pbartok@novell.com>
8021 * TextBoxBase.cs: Re-align caret after deleting a character
8023 - DeleteChars(): Ensure that tag covers the provided position
8024 - StreamLine(): Drop reference for dropped tag
8026 2005-06-29 Peter Bartok <pbartok@novell.com>
8029 - Selections now work properly, anchoring at the initial location
8030 and properly extending in either direction (SetSelectionToCaret(),
8031 SetSelectionStart() and SetSelectionEnd())
8032 - No longer redraws the whole control on selection change, now
8033 calculates delta between previous and new selection and only
8034 invalidates/redraws that area
8035 - Fixed FindPos() math off-by-one errors
8036 - Changed DeleteChars() to verify the provided tag covers the
8037 provided position, selections may have a tag that doesn't cover
8038 the position if the selection is at a tag border
8039 - Fixed off-by-one errors in DeleteChars()
8040 - Added missing streamlining check in DeleteChars() to remove
8042 - Implemented Invalidate() method, now properly calculates exposures
8043 between two given lines/positions
8044 - Implemented SetSelection()
8045 - Obsoleted and removed FixupSelection()
8046 - Improved RecalculateDocument() logic, removing code duplication
8048 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8050 * LibSupport.cs: changes to match different input/output arguments.
8052 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8054 * LibSupport.cs: added libsupport.so init routine.
8056 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
8058 * ControlBindingsCollection.cs
8059 - Throws an exception on null datasource when adding
8060 - Checks for duplicated bindings when adding
8062 2005-06-28 Jackson Harper <jackson@ximian.com>
8064 * TreeView.cs (OnKeyDown): Support left and right properly
8065 (navigates as well as expanding and collapsing.
8066 - Add support for Multiply, this expands all the selected nodes
8070 2005-06-28 Jackson Harper <jackson@ximian.com>
8072 * TreeView.cs: Implement keyboard navigation, currently supports,
8073 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
8074 support for toggling checkboxes with the space bar.
8076 2005-06-28 Jackson Harper <jackson@ximian.com>
8078 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
8081 2005-06-28 Jackson Harper <jackson@ximian.com>
8083 * TreeView.cs: Add missing event.
8085 2005-06-27 Peter Bartok <pbartok@novell.com>
8088 - Made line ending size configurable (now allows for counting
8089 lineendings as \n or \r\n)
8090 - Added margin to viewport to keep caret visible on right side
8091 - Fixed translation routines for line/pos to documentpos to consider
8092 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
8093 - Fixed some line-endings to be unix style
8094 - Fixed Document.FormatText to perform it's calculations 1-based
8095 - Added descriptions for a few methods that might otherwise get
8097 - Added NOTE section with some basic conventions to remember at
8099 - Major fixup for RichTextBox selection drawing:
8100 * Fixed crashes when multiple tags on a single line were selected
8101 * fixed selection box drawing not overlaying text
8102 * fixed bogus offset calculation for tags not starting at index 1
8103 * Switched behaviour from using multiple Substrings of a
8104 StringBuilder.ToString() to using multiple
8105 StringBuilder.ToString(start, length) statements, hoping this is
8106 faster (kept original version commented out in the code, in case
8107 original version was faster)
8108 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
8110 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
8113 2005-06-27 Jackson Harper <jackson@ximian.com>
8115 * TabControl.cs: Move to the left and right with the arrow
8116 keys. These keys don't cycle beyond first and last like
8117 tab. Refresh all the tabs when scrolling them to the left or
8120 2005-06-27 Jackson Harper <jackson@ximian.com>
8123 - ToString: Added method
8124 - CreateParams: Remove TODO and comment
8125 - OnKeyDown: Cycle through bounds properly.
8126 - SelectedIndex: Scroll to the right or left if we need to
8127 display the newly selected tab.
8129 2005-06-23 Jackson Harper <jackson@ximian.com>
8131 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
8134 2005-06-23 Jackson Harper <jackson@ximian.com>
8136 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
8137 CTRL-SHIFT-TAB, and HOME, END are there any others?
8139 2005-06-23 Jackson Harper <jackson@ximian.com>
8141 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
8143 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
8145 * DataGridTextBoxColumn.cs: fixes and enhancements
8146 * ThemeWin32Classic.cs: fixes and enhancements
8147 * DataGridBoolColumn.cs: fixes and enhancements
8148 * DataGridDrawingLogic.cs: fixes and enhancements
8149 * CurrencyManager.cs: fixes and enhancements
8150 * DataGrid.cs: fixes and enhancements
8151 * DataGridColumnStyle.cs: fixes and enhancements
8153 2005-06-22 Jackson Harper <jackson@ximian.com>
8155 * TabControl.cs: Add some missing methods that just call into the
8156 base. Make the TabPageCollection's IList interface behave in the
8157 same manner as the MS implementation.
8159 2005-06-22 Peter Bartok <pbartok@novell.com>
8161 * TextControl.cs: Added sanity check
8163 - Fixed wrapping behaviour, don't set wrap on single line controls
8164 (this fixes the breakage of colordialog introduced in an earlier
8166 - Added rudimentary support for autoscrolling right-aligned controls
8167 (still needs fixing, also, center alignment scroll is missing)
8169 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
8171 * ScrollBar.cs: Fixes thumbpos on Maximum values
8173 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
8175 * PropertyGridView.cs: Pass context information to UITypeEditors
8177 2005-06-21 Peter Bartok <pbartok@novell.com>
8180 - Now calling PositionCaret with absolute space coordinates
8181 - Enabled vertical scrolling
8182 - Better tracking of scrollbar changes, tied into WidthChange
8184 - Improved cursor tracking
8185 - Removed debug output
8187 - PositionCaret coordinates are now works in absolute space, not
8189 - Improved tracking of document size
8190 - Added events for width and height changes
8192 2005-06-21 Peter Bartok <pbartok@novell.com>
8194 * Form.cs: Set focus to active control when form is activated
8196 - Added word-wrap functionality to RecalculateLine()
8197 - Added some short function descriptions for VS.Net to aid in
8198 writing dependent controls
8199 - Added Caret property, returning the current coords of the caret
8200 - Added ViewPortWidth and ViewPortHeight properties
8201 - Added Wrap property
8202 - Added CaretMoved event
8203 - Removed some old debug code
8204 - Split() can now create soft splits
8205 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
8206 - Added method to format existing text
8207 - Fixed size/alignment calculations to use viewport
8208 - RecalculateDocument now can handle changing line-numbers while
8212 - Added some wrap logic, we don't wrap if alignment is not left
8213 - Added casts for scrollbar var, base class switched types to
8214 also support RichTextBoxA
8215 - Implemented handling of scrollbar visibility flags
8218 - Switched scrollbars type to RichTextBoxScrollBars to support
8220 - Added tracking of canvas width/height
8221 - Switched scrollbars to be not selectable (to keep focus on text)
8222 - Added central CalculateDocument() method to handle all redraw
8224 - Added ReadOnly support
8225 - Added WordWrap support
8226 - Fixed handling of Enter key (we now treat it as a DialogKey)
8227 - Fixed caret positioning when h or v scroll is not zero
8228 - Fixed placing/generation of vertical scrollbar
8229 - Added CalculateScrollBars() method to allow updating scrollbar
8230 limits and visibility
8231 - Fixed handling of horizontal scroll
8232 - Added handling of vertical scroll
8233 - Implemented auto-'jump' when caret moves to close to a left or
8234 right border and there is text to be scrolled into view (currently
8235 there's the potential for a stack overflow, until a bug in
8238 2005-06-21 Geoff Norton <gnorton@customerdna.com>
8240 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
8242 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
8246 - return application/x-zerosize for files with size zero
8247 (if no extension pattern matches).
8248 - check matches collection for strings too.
8249 - return only the first mime type if the name value
8250 collection has more than one mime type.
8252 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
8254 * PropertyGrid.cs: Cleaned up some TODOs
8255 * PropertyGridView.cs: Added support for UITypeEditors
8257 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
8259 * DataGrid.cs: clears cached value
8261 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
8263 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
8264 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
8265 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
8266 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
8268 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
8270 * ThemeWin32Classic.cs: fixes colour
8272 2005-06-15 Peter Bartok <pbartok@novell.com>
8274 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
8275 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
8276 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
8277 * Control.cs: Added some MWFCategory and MWFDescription attributes
8278 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
8280 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
8282 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
8285 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
8287 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
8288 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
8289 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
8290 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
8291 * DataGrid.cs: default datagrid settings for Default Styles, fixes
8292 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
8294 2005-06-13 Jackson Harper <jackson@ximian.com>
8296 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
8297 isn't printed when the user enables dropping. (X11 does accept
8300 2005-06-13 Jackson Harper <jackson@ximian.com>
8302 * TreeView.cs: Remove some TODOS.
8304 2005-06-13 Jackson Harper <jackson@ximian.com>
8306 * Form.cs: Hook into the mdi framework.
8307 * MdiClient.cs: Use the base control collections add method so
8308 parents get setup correctly. Set the default back colour and dock
8310 * MdiChildContext.cs: New class, this bad actor handles an
8311 instance of an MDI window. Right now there is only basic
8312 support. You can drag, close, and resize windows. Minimize and
8313 Maximize are partially implemented.
8315 2005-06-13 Jackson Harper <jackson@ximian.com>
8317 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
8318 freaky when both vals are negative. NOTE: There are probably other
8319 places in XplatUIX11 that this needs to be done.
8321 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
8323 * DataGrid.cs: implement missing methods, move KeyboardNavigation
8324 * DataGridColumnStyle.cs: fixes signature
8326 2005-06-12 Jackson Harper <jackson@ximian.com>
8328 * XplatUIX11.cs: Use sizing cursors similar to the ones on
8331 2005-06-11 Jackson Harper <jackson@ximian.com>
8333 * StatusBarPanel.cs: Signature cleanups. Implement
8336 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
8338 * DataGridTextBoxColumn.cs: Honors aligment
8339 * GridColumnStylesCollection.cs: Contains is case unsensitive
8340 * GridTableStylesCollection.cs: several fixes
8341 * DataGridTableStyle.cs: default column creation
8342 * DataGridDrawingLogic.cs: fixes
8343 * CurrencyManager.cs: ListName property
8344 * DataGrid.cs: multiple styles support
8345 * DataGridColumnStyle.cs: fixes
8348 2005-06-10 Peter Bartok <pbartok@novell.com>
8350 * Control.cs(Select): Moved SetFocus call to avoid potential
8351 loops if controls change the active control when getting focus
8352 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
8355 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
8357 * ImageListConverter.cs: Implemented
8359 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
8361 * MonthCalendar.cs: Wired in NumericUpDown control for year
8363 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
8365 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
8366 DoubleClick events, since they are not meant to be fired.
8368 2005-06-09 Peter Bartok <pbartok@novell.com>
8370 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8371 Jonathan's standalone controls into MWF, implemented missing
8372 events, attributes and methods; added xxxAccessible classes
8373 * AccessibleObject.cs: Made fields internal so other classes
8374 can change them if needed
8376 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
8378 * UpDownBase.cs: Complete implementation
8379 * NumericUpDown.cs: Complete implementation
8380 * DomainUpDown.cs: Complete implementation
8382 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
8384 * DataGridTextBoxColumn.cs: drawing fixes
8385 * DataGridCell.cs: fixes ToString method to match MSNet
8386 * DataGridTableStyle.cs: fixes
8387 * DataGridBoolColumn.cs: fixes, drawing
8388 * DataGridDrawingLogic.cs: fixes, new methods
8389 * DataGridTextBox.cs: Keyboard and fixes
8391 - Keyboard navigation
8393 - Row selection (single, multiple, deletion, etc)
8396 2005-06-07 Jackson Harper <jackson@ximian.com>
8398 * ThemeWin32Classic.cs: Clear the background area when drawing
8401 2005-06-06 Peter Bartok <pbartok@novell.com>
8403 * ImageListStreamer.cs: Fixed signature for GetData
8404 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8406 - Added missing ChildAccessibleObject class
8407 - Added missing OnXXXFocus overrides, switched to using those
8408 instead of the event handler
8410 - Added Parent property for ControlAccessibleObject
8413 - Added ResetBindings()
8414 * ListBindingConverter.cs: Implemented some methods
8415 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8416 * ImageList.cs: Implemented basic handle scheme, removed TODOs
8417 * ContainerControl.cs: Fixed signature, now subscribing to the
8418 ControlRemoved event instead of overriding the handler, LAMESPEC
8419 * CurrencyManager.cs: Added missing attribute
8420 * MonthCalendar.cs: Added missing properties
8422 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
8424 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8426 2005-06-06 Gaurav Vaish and Ankit Jain
8428 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8429 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8431 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
8433 * Control.cs: fixes CreateParams Width / Height.
8435 2005-06-05 Peter Bartok <pbartok@novell.com>
8437 * Win32DnD.cs: Removed compilation warnings
8439 2005-06-05 Peter Bartok <pbartok@novell.com>
8441 * Control.cs (CreateParams): Since we don't know if one of the
8442 properties we use is overridden, lets make sure if we fail accessing
8443 we continue with a backup plan
8445 2005-06-05 Peter Bartok <pbartok@novell.com>
8448 - Removed debug output
8449 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8451 - Plugged resource leak
8452 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8455 2005-06-05 Peter Bartok <pbartok@novell.com>
8457 * XplatUIWin32.cs: Removed DnD code
8458 * Win32DnD.cs: Implemented drop source and drop target functionality
8460 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8462 * UpDownBase.cs: remove duplicate addition of event, enable some code
8463 that was commented out.
8464 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8465 Validate input when a key is pressed. It works fine now for every
8466 combination of Hexadecimal. Only missing some drawing love when sharing
8467 space with other controls.
8469 2005-06-04 Peter Bartok <pbartok@novell.com>
8472 - We need to pass a window for DragDrop, so enable callback events
8473 - Added DnD callback events when being a DragSource
8474 * XplatUI.cs (StartDrag): Added window handle argument
8475 * XplatUIDriver.cs (StartDrag): Added window handle argument
8476 * QueryContinueDragEventArgs: Made fields internally accessible so
8477 drivers can set them
8478 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8481 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
8483 * DataGridTextBoxColumn.cs: column text editing
8484 * DataGridTableStyle.cs: Respect columns styles created by the user
8485 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8486 * DataGridBoolColumn.cs: bool column editing
8487 * DataGrid.cs: fixes to scrolling, properties, etc
8488 * DataGridTextBox.cs: handle keyboard
8489 * DataGridColumnStyle.cs: fixes
8491 2005-06-02 Jackson Harper <jackson@ximian.com>
8493 * ImageListStreamer.cs: Somewhat broken implementation of
8494 GetObjectData. The RLE needs some work to match MS properly.
8496 2005-06-02 Jackson Harper <jackson@ximian.com>
8498 * X11Dnd.cs: Attempting to keep at least one file in MWF
8501 2005-06-02 Peter Bartok <pbartok@novell.com>
8503 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8506 2005-06-02 Peter Bartok <pbartok@novell.com>
8508 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8509 * XplatUI.cs: Added DoDragDrop() method
8510 * XplatUIDriver.cs: Added DoDragDrop() method
8512 2005-06-02 Jackson Harper <jackson@ximian.com>
8514 * Splitter.cs: Implement BorderStyle.
8516 2005-06-02 Jackson Harper <jackson@ximian.com>
8518 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8519 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8522 2005-06-02 Peter Bartok <pbartok@novell.com>
8526 - Fixed broken insertion code for SetData, now also
8527 overwrites any existing entry of the same format name
8528 * Hwnd.cs: Added list of pointers that automatically gets
8529 freed when the window is disposed
8530 * XplatUI.cs: Call driver initialization method when loading
8533 - OnDragLeave takes EventArgs, not DragEventArgs
8534 - Added setting of WS_EX_ACCEPTFILES style when dropping is
8536 - Forces style update when drop state changes
8537 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8538 not perfect since we cannot (yet) call the IDataObject.GetData()
8539 method, we keep getting 0x80004005 error, dunno why)
8541 2005-06-02 Peter Bartok <pbartok@novell.com>
8543 * DragEventArgs.cs: Make fields internal so we can cache the
8544 object and re-set the fields from XplatUI
8546 2005-06-02 Jackson Harper <jackson@ximian.com>
8548 * Control.cs: Add some internal methods so the DnD subsystem can
8549 raise DnD events. Also call into the driver when AllowDrop is set.
8551 * XplatUIDriver.cs: New method for setting whether or not a window
8552 is allowed to accept drag and drop messages.
8554 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
8556 * ScrollBar.cs: Make sure that values sent in Scroll events
8557 are always between Maximum and Minimum.
8559 2005-06-01 Marek Safar <marek.safar@seznam.cz>
8561 * Menu.cs: Call MenuChanged when menuitem visibility has been
8563 * MenuItem.cs: Rebuild menu when item is (not) visible.
8564 * MainMenu.cs: MainMenu has special MenuChanged.
8565 * Theme.cs: Caption and FrameBorderSize are not fixed.
8566 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8567 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8569 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8570 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8572 2005-05-30 Jackson Harper <jackson@ximian.com>
8574 * DataFormat.cs: We can't statically initialize this stuff because
8575 it calls into the xplatui and could create a loop. So we lazy init
8578 2005-05-28 Jackson Harper <jackson@ximian.com>
8580 * Control.cs: Proper implementation of Product(Name/Version).
8582 2005-05-27 Jackson Harper <jackson@ximian.com>
8584 * DataObject.cs: Dont crash if no data is found.
8586 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8587 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8588 as per status page, guessing it should be set to true
8590 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
8592 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8593 * DataGridTableStyle.cs: set proper formatting text, def header text
8594 * ThemeWin32Classic.cs: new themable paramaters
8595 * DataGridBoolColumn.cs: paint check box, get data, fixes
8596 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8597 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8598 * DataGridColumnStyle.cs: fixes
8599 * Theme.cs: new themable paramaters
8601 2005-05-26 Peter Bartok <pbartok@novell.com>
8603 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8605 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8606 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8608 2005-05-24 Peter Bartok <pbartok@novell.com>
8610 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8611 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8612 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8613 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8614 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8615 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8616 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8617 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8618 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8619 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8620 missing attributes, etc
8621 * DataGridPreferredColumnWidthTypeConverter.cs: Added
8623 2005-05-24 Peter Bartok <pbartok@novell.com>
8625 * Help.cs: Added, implemented trivial functions, throws up MessageBox
8626 when user tries to get help
8627 * DataObject.cs, DataFormats.cs, LinkArea.cs,
8628 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8629 to suppress warnings
8630 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8631 avoid unreachable code warning
8633 2005-05-20 Peter Bartok <pbartok@novell.com>
8635 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8637 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
8639 * DataGridTextBoxColumn.cs: Basic painting methods
8640 * DataGridTableStyle.cs: Set table style in the column
8641 * ThemeWin32Classic.cs: Use Theme for colors
8642 * DataGridDrawingLogic.cs: Implement more drawing
8643 * DataGrid.cs: drawing, theming, enhacements, fixes
8644 * DataGridColumnStyle.cs: fixes, drawing
8645 * Theme.cs: theming for Datagrid
8647 2005-05-20 Peter Bartok <pbartok@novell.com>
8649 * Cursor.cs: Implemented GetObjectData() method
8651 2005-05-20 Peter Bartok <pbartok@novell.com>
8653 * Cursors.cs: Added setting of cursor name
8655 - Implemented constructors
8656 - Implemented Draw and DrawStretched
8657 - Implemented Current property
8658 - Implemented == and != operators
8659 - Implemented Dispose()
8660 - Implemented ToString
8661 - Added missing attributes
8663 - Added missing reset for OverrideCursor when DoEvents is called
8664 - Fixed creation of cursor, logic was wrong
8666 - Added missing reset for OverrideCursor when DoEvents is called
8667 - Fixed creation of cursor, bit arrays were swapped
8668 * Clipboard.cs: Removed obsolete MonoTODO attribute
8670 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
8672 * ComboBox.cs: fixes OnSelectedItemChanged
8673 * ControlBindingsCollection.cs: fixes item range check
8675 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
8678 - Calc preferred height properly
8679 - Implement missing properties
8681 * NumericUpDown.cs: Implement missing events
8683 2005-05-19 Jackson Harper <jackson@ximian.com>
8685 * TabControl.cs: New method that resizes the tab pages before
8686 redrawing them. This as needed as the control is double buffered
8687 and sizing will not be recalculated unless ResizeTabPages is
8689 * TabPage.cs: Set base.Text instead of Text in the constructor so
8690 that UpdateOwner does not get called. Use the new Redraw method of
8691 TabControl instead of Refresh so the sizing is recalculated.
8692 * ThemeWin32Classic.cs: Draw the text for button tabs.
8694 2005-05-19 Jackson Harper <jackson@ximian.com>
8696 * Control.cs: Paint control background images. Fix typo where
8697 PaintControlBackground was not getting called correctly.
8699 2005-05-19 Peter Bartok <pbartok@novell.com>
8701 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8702 I can investigate, apparently I broke FileDialog
8704 2005-05-19 Marek Safar <marek.safar@seznam.cz>
8706 * AxHost.cs: Some simple properties.
8707 * Control.cs: window must be accessible after ctor.
8708 * Form.cs: Added TransparencyKey property.
8709 * TextBoxBase.cs: Implemented Clear. Text property can be null.
8710 * XplatUIWin32.cs: SetBorderStyle implemented.
8712 2005-05-18 Peter Bartok <pbartok@novell.com>
8714 * DataObject.cs: Entries are not global but particular to the
8715 DataObject, now it behaves that way
8716 * XplatUIWin32.cs: Implemented Clipboard methods
8717 * Clipboard.cs: Implemented
8718 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8719 * XplatUIOSX.cs: Updated to final clipboard prototypes
8720 * XplatUIX11.cs: Implemented Clipboard methods
8721 * XplatUIDriver.cs: Updated to final clipboard prototypes
8722 * XplatUIStructs.cs:
8723 - Added BITMAPINFOHEADER struct
8724 - Added ClipboardFormats enum
8726 - Added ClipboardStruct
8727 - Added Atom enum items for clipboard types
8728 - Fixed atom types for Selection event structures
8730 - Added internal properties and methods for drivers to enumerate
8732 - Switched initialization method to allow drivers to assign their
8733 own IDs even for the MS predefined clipboard IDs
8734 * XplatUI.cs: Updated to final clipboard interface
8736 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8737 * PropertyGridView.cs: Fixed compiler warnings.
8739 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8740 * PropertyGrid.cs: Added some event calls
8741 * PropertyGridView.cs: Change drawing code to use double buffering
8742 * PropertyGridTextBox.cs: Changed Text property name
8743 * GridItem.cs: Added Bounds property.
8744 * GridEntry.cs: Added Bounds property.
8746 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
8748 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8749 since GetType() may not return the correct type if the object is
8752 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
8754 * TreeNodeCollection.cs: fixes get/set item ranges
8756 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
8758 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8760 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
8762 * ComboBox.cs: Fix item range comparation
8763 * ListView.cs: Fix item range comparation
8765 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
8768 - Clear example panel when OnPaint is called
8769 - Better solution for displaying the example panel text
8770 - Select default indexes in the ListBoxes
8772 2005-05-11 Geoff Norton <gnorton@customerdna.com>
8774 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
8776 2005-05-11 Peter Bartok <pbartok@novell.com>
8778 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8779 * SelectionRangeConverter.cs: Implemented
8780 * PropertyGrid.cs: Fixed attribute value
8782 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8783 - Added Sebastien Pouliot's CAS Stack Propagation fixes
8784 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8785 that's common to all drivers. First methods to go there are
8786 Sebastien Pouliot's CAS Stack Propagation helper methods
8787 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8788 Sebastien Pouliot for CAS Stack Propagation
8790 2005-05-11 Geoff Norton <gnorton@customerdna.com>
8793 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8795 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
8797 * DataGridTextBoxColumn.cs: fixed some members
8798 * GridColumnStylesCollection.cs: indexed column is case insensitive
8799 * DataGridTableStyle.cs: fixes
8800 * ThemeWin32Classic.cs: add new theme parameter
8801 * Theme.cs: add new theme parameter
8802 * DataGridDrawingLogic.cs: Datagrid's drawing logic
8803 * DataGrid.cs: fixes, new internal properties, etc.
8804 * DataGridColumnStyle.cs: allows to set grid value
8807 2005-05-10 Peter Bartok <pbartok@novell.com>
8809 * AccessibleObject.cs:
8810 - Removed MonoTODO attribute on help, method is correct
8811 - Fixed Bounds property
8812 * AxHost.cs: Moved MonoTODO
8813 * ButtonBase.cs: Now setting AccessibleObject properties
8814 * RadioButton.cs: Setting proper AccessibleObject role
8815 * CheckBox.cs: Setting proper AccessibleObject role
8816 * ControlBindingsCollection.cs: Added properties, methods and attributes
8817 * DataFormats.cs: Fixed awkward internal API, and changed to enable
8818 userdefined DataFormats.Format items as well
8819 * ListControl.cs: Removed data_member from the public eye
8820 * OpenFileDialog.cs:
8822 - Added missing attributes
8823 * SaveFileDialog.cs: Added missing attributes
8824 * ImageListStreamer.cs: Fixed code that caused warnings
8825 * LinkLabel.cs: Removed unreachable code
8826 * TreeView.cs: Fixed code that caused warnings
8827 * PropertyGridView.cs: Fixed code that caused warnings
8828 * GridColumnStylesCollection.cs: Added missing attributes
8829 * GridTableStylesCollection: Added missing attribute
8830 * PropertyManager: Added .ctor
8831 * SecurityIDType: Added
8832 * DataObject.cs: Implemented class
8833 * LinkArea.cs: Added missing attribute
8835 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
8837 * RadioButton.cs: call base method to allow to fire OnClick event
8838 * UpDownBase.cs: OnMouseUp call base method
8839 * CheckedListBox.cs: call base method before returning
8840 * TrackBar.cs: call base method before returning
8843 2005-05-10 Peter Bartok <pbartok@novell.com>
8845 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8848 2005-05-10 Peter Bartok <pbartok@novell.com>
8850 * DataFormats.cs: Implemented
8851 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8852 XplatUIX11.cs: Added Clipboard APIs
8853 * XplatUIWin32.cs: Implemented Clipboard APIs
8854 * FolderBrowserDialog.cs: Added missing event, attributes
8856 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
8858 * CheckBox.cs: call base method to allow to fire OnClick event
8860 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
8862 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8864 2005-05-06 Peter Bartok <pbartok@novell.com>
8866 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8867 * Screen.cs: Implemented
8868 * HelpNavigator.cs: Added
8869 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8871 * HelpProvider.cs: Implemented all we can do until we have a CHM
8872 help library (which means that "What's This" does work now)
8874 2005-05-06 Jackson Harper <jackson@ximian.com>
8876 * XplatUIX11.cs: Fix waking up the main loop.
8878 2005-05-05 Peter Bartok <pbartok@novell.com>
8880 * XplatUI.cs: Updated revision
8881 * Form.cs: Removed enless loop
8882 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8883 * Label.cs (OnPaint): Added call to base.OnPaint()
8884 * ToolTip.cs: Made ToolTipWindow reusable for other controls
8885 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8886 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8888 * ButtonBase.cs: Moved base.OnPaint() call to end of method
8889 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8890 to ToolTip.ToolTipWindow for drawing and size methods; this allows
8891 reuse of ToolTipWindow by other controls
8892 * SizeGrip.cs: Moved base.OnPaint() call to end of method
8893 * XplatUIX11.cs: Now clipping drawing area (experimental)
8894 * PictureBox.cs: Moved base.OnPaint() call to end of method
8895 * Theme.cs: Fixed ToolTip abstracts to match new format
8896 * ErrorProvider.cs: Implemented
8898 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
8900 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8904 - Implements LinkBehavior
8907 2005-05-03 Jackson Harper <jackson@ximian.com>
8909 * ListView.cs: Calculate the scrollbar positioning on resize and
8910 paint, so they get put in the correct place.
8912 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
8914 * ColorDialogs.cs: The small color panels are now handled by
8915 SmallColorControl. This fixes drawing of the focus rectangle
8916 and adds a 3D border.
8918 2005-05-03 Peter Bartok <pbartok@novell.com>
8920 * Control.cs: Modified version of Jonathan Chamber's fix for
8923 2005-05-03 Jackson Harper <jackson@ximian.com>
8925 * ListView.cs: Remove redraw variable. Control now handles whether
8926 or not a redraw needs to be done, and will only raise the paint
8927 event if redrawing is needed.
8929 2005-05-03 Jackson Harper <jackson@ximian.com>
8931 * Splitter.cs: No decorations for the splitter form. Cache the
8934 2005-05-03 Jackson Harper <jackson@ximian.com>
8936 * TreeView.cs: Use dashed lines to connect nodes. Use the
8937 ControlPaint method for drawing the focus rect instead of doing
8940 2005-05-02 Peter Bartok <pbartok@novell.com>
8942 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8944 2005-04-29 Jackson Harper <jackson@ximian.com>
8946 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8947 entire image buffer. Just clear the clipping rectangle.
8949 2005-04-29 Jackson Harper <jackson@ximian.com>
8951 * ThemeWin32Classic.cs: Don't draw list view items that are
8952 outside the clipping rectangle.
8954 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
8956 * ListBox.cs: added horizontal item scroll
8958 2005-04-29 Jackson Harper <jackson@ximian.com>
8960 * ThemeWin32Classic.cs: Remove some old debug code that was
8961 causing flicker with the new double buffering code.
8963 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
8965 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8966 behave like combobox and comboboxlist (still not sure if this is
8969 2005-04-28 Jackson Harper <jackson@ximian.com>
8971 * ThemeWin32Classic.cs: Don't fill the middle of progress
8972 bars. This fills areas outside of the clip bounds that don't need
8975 2005-04-28 Jackson Harper <jackson@ximian.com>
8977 * Control.cs: Don't expose functionality to touch the image buffers.
8979 * ListView.cs: We do not need to (and no longer can) manipulate
8980 the image buffers directly. All of this is handled by Control.
8982 2005-04-28 Peter Bartok <pbartok@novell.com>
8984 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8985 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8986 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8988 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
8991 - Adjust control's height for non-simple comboboxes (bug fix)
8993 * MenuAPI.cs: remove unused var
8994 * ScrollBar.cs: remove unsed var
8996 * ListBox.cs: unselect items when clearing
8998 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
9000 * ListControl.cs: honors OnPositionChanged and default Selected Item
9001 * ListBox.cs: unselect items when clearing
9003 2005-04-27 Jackson Harper <jackson@ximian.com>
9005 * X11Keyboard.cs: Initialize a default keyboard and give a warning
9006 if a "correct" keyboard is not found. This will make us not crash,
9007 but might give some users bad keyboard layouts...seems to be the
9008 same thing rewind does.
9010 2005-04-27 Jackson Harper <jackson@ximian.com>
9012 * BindingManagerBase.cs: Attach the current/position changed
9013 handlers to their respective events.
9015 2005-04-27 Jackson Harper <jackson@ximian.com>
9017 * Control.cs: Make sure that the first WM_PAINT does a full draw,
9019 * ThemeWin32Classic.cs: Don't fill the background for picture
9020 boxes. This could overright user drawing.
9021 * ComboBox.cs: Just fill the clipping rect not the entire client
9022 rect when drawing the background. This prevents pieces of the
9023 image buffer from getting overwritten and is theoretically faster.
9025 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
9027 * ComboBox.cs: Databinding support fixes, fire missing events
9028 * ListControl.cs: implement missing methods and properties, fixes
9029 * ThemeWin32Classic.cs: Databiding support on Drawing
9030 * CheckedListBox.cs: Databinding support fixes, fire missing events
9031 * ListBox.cs: Databinding support fixes, fire missing events
9033 2005-04-25 Peter Bartok <pbartok@novell.com>
9035 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
9037 2005-04-25 Jackson Harper <jackson@ximian.com>
9039 * TreeView.cs: Use the horizontal scrollbars height not width when
9040 determining how much of the client area is available.
9042 2005-04-25 Jackson Harper <jackson@ximian.com>
9044 * Control.cs: Double buffering is handled differently now. As per
9045 the spec, the extra buffer is created in the WM_PAINT message and
9046 passed down to the control's drawing code.
9054 * PropertyGridView.cs:
9066 * DateTimePicker.cs:
9068 * TreeView.cs: Update to new double buffering system.
9069 * MonthCalendar.cs: Uncomment block, as Capture is now
9070 working. Update to new double buffering
9071 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
9072 * PaintEventArgs.cs: New internal method allows us to set the
9073 graphics object. This is used for double buffering.
9074 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
9075 rectangle. The internal paint_area var has been removed from
9076 StatusBar. The clipping rect should be used instead.
9077 * Theme.cs: Give the PictureBox drawing method a clipping rect.
9078 * TabPage.cs: The RefreshTabs method was removed, so just call the
9079 tab controls Refresh method now.
9080 * TabControl.cs: Update to new double buffering. Make sure the
9081 handle is created before sizing the tab pages, otherwise we will
9082 get stuck in a loop.
9084 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
9086 * LinkLabel.cs: Fix typo, bug #74719; patch
9087 from Borja Sanchez Zamorano
9089 2005-04-22 Jackson Harper <jackson@ximian.com>
9091 * TreeNode.cs: Implement Handle stuff.
9092 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
9094 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
9096 * DataGridTextBoxColumn.cs: call base constructors, fixes
9097 * GridColumnStylesCollection.cs: missing events, methods, and functionality
9098 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
9099 * DataGridTableStyle.cs: implements create default column styles
9100 * DataGridBoolColumn.cs: which types can handle
9101 * DataGrid.cs: missing methods, fixes, new functionality
9102 * DataGridColumnStyle.cs: fixes
9104 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
9105 * FolderBrowserDialog.cs:
9106 - Use a thread to fill the TreeView
9107 - Adjusted some sizes
9109 2005-04-19 Peter Bartok <pbartok@novell.com>
9111 * LinkLabel.cs: (Re-)create the pieces when setting the Text
9112 property. Fixes #74360.
9114 2005-04-19 Jackson Harper <jackson@ximian.com>
9116 * XEventQueue.cs: Lock when getting the lockqueue size.
9117 * PictureBox.cs: Call base OnPaint
9119 2005-04-19 Peter Bartok <pbartok@novell.com>
9121 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
9122 messages were no longer being processed (this broke BeginInvoke)
9125 2005-04-18 Jackson Harper <jackson@ximian.com>
9127 * TreeView.cs: buglet that caused node images to get drawn
9128 regardless of whether or not they were in the clipping rectangle.
9130 2005-04-18 Jackson Harper <jackson@ximian.com>
9132 * CurrencyManager.cs: There are four rules for GetItemProperties:
9133 - If the type is an array use the element type of the array
9134 - If the type is a typed list, use the type
9135 - If the list contains an Item property that is not an object, use
9137 - use the first element of the list if there are any elements in
9140 2005-04-17 Jackson Harper <jackson@ximian.oom>
9142 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
9143 click. This handles offsets for scrolling properly and reduces
9144 memory. Also fixed GetNode to not offset now that TopNode works
9146 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
9148 2005-04-17 Jackson Harper <jackson@ximian.com>
9150 * CursorConverter.cs: Initial implementation.
9152 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
9154 * ListControl.cs: work towards complex data binding support on ListControl
9155 * CurrencyManager.cs: work towards complex data binding support on ListControl
9156 * ListBox.cs: work towards complex data binding support on ListControl
9159 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
9161 * GridTableStylesCollection.cs: fixes name and constructor
9162 * DataGridTableStyle.cs: fixes
9163 * DataGridBoolColumn.cs: fixes names and constructors
9164 * DataGrid.cs: define methods and properties. Some init implementations
9165 * DataGridCell.cs: define methods and properties. Some init implementations
9166 * GridTablesFactory.cs: Define methods and properties
9168 2005-04-15 Geoff Norton <gnorton@customerdna.com>
9170 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
9171 graphics port changes. We still want the coordinates in global screen
9174 2005-04-14 Jackson Harper <jackson@ximian.com>
9176 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
9177 check plus minus or checkbox clicks unless those features are enabled.
9179 2005-04-14 Jackson Harper <jackson@ximian.com>
9181 * TreeView.cs: Add methods for setting the top and bottom visible
9182 nodes. TreeNode::EnsureVisible uses these methods.
9183 * TreeNode.cs: Implement EnsureVisible
9185 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
9187 * Form.cs: Pospone menu assignation if the window has not been created yet
9188 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
9191 2005-04-12 Jackson Harper <jackson@ximian.com>
9193 * TreeView.cs: Set the TopNode properly when scrolling
9194 occurs. This has the added benifit of reducing the amount of
9195 walking that needs to be done when drawing. Also removed an old
9197 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
9199 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
9201 * Timer.cs: fixes interval setting when the timer is already enabled
9203 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
9205 * FolderBrowserDialog.cs: First approach
9207 2005-04-09 Peter Bartok <pbartok@novell.com>
9209 * FolderBrowserDialog: Added
9211 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
9213 * LinkLabel.cs: move drawing code into the theme
9214 * ThemeWin32Classic.cs: drawing code and painting background bugfix
9215 * Theme.cs: define DrawLinkLabel method
9217 2005-04-05 Jackson Harper <jackson@ximian.com>
9219 * BindingContext.cs: Use weak references so these bad actors don't
9220 stay alive longer then they need to.
9222 2005-04-05 Jackson Harper <jackson@ximian.com>
9224 * ListControl.cs: Basic implementation of complex databinding.
9226 * ListBox.cs: Add calls to ListControl databinding methods.
9228 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
9231 - Don't change PopupButtonState to Normal when the
9232 PopupButton gets pressed several times.
9233 - Renamed ButtonPanel to PopupButtonPanel
9235 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
9237 * ColorDialog.cs: Use cached objects instead of creating them
9238 * LinkLabel.cs: Use cached objects instead of creating them
9239 * Splitter.cs: Use cached objects instead of creating them
9240 * FontDialog.cs: Use cached objects instead of creating them
9241 * PropertyGridView.cs: Use cached objects instead of creating them
9242 * MessageBox.cs: Use cached objects instead of creating them
9243 * FileDialog.cs: Use cached objects instead of creating them
9244 * ThemeWin32Classic.cs: Use cached objects instead of creating them
9245 * TreeView.cs: Use cached objects instead of creating them
9247 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
9249 * Control.cs: use Equals to compare the font since no == op
9250 * ScrollBar.cs: use Equals to compare the font since no == op
9252 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
9254 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
9256 2005-04-01 Jackson Harper <jackson@ximian.com>
9258 * Binding.cs: Implement IsBinding.
9259 * BindingManagerBase.cs:
9260 * PropertyManager.cs:
9261 * CurrencyManager.cs: Add IsSuspended property.
9263 2005-04-01 Jackson Harper <jackson@ximian.com>
9265 * Binding.cs: Had some IsAssignableFrom calls backwards.
9267 2005-04-01 Jackson Harper <jackson@ximian.com>
9269 * Binding.cs: Handle null data members when pulling data.
9270 * PropertyManager.cs: Handle the data member being a property that
9273 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
9275 * DataGridTextBoxColumn.cs: fixes signature
9276 * DataGrid.cs: calls right constructor
9278 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
9280 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
9281 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
9282 * GridTableStylesCollection.cs: implements GridTableStylesCollection
9283 * DataGridTableStyle.cs: implements DataGridTableStyle
9284 * DataGridBoolColumn.cs: implements DataGridBoolColumn
9285 * DataGridTextBox.cs: implements DataGridTextBox
9286 * DataGridColumnStyle.cs: implements DataGridColumnStyle
9288 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
9290 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
9292 2005-03-29 Peter Bartok <pbartok@novell.com>
9295 - Properly implemented CompanyName property
9296 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
9297 returns a path that includes CompanyName, ProductName and
9298 Version (fixes bug #70330)
9300 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
9302 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
9305 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
9307 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
9309 - Added ReadOnly CheckBox
9310 - Further refactoring: moved some code from Open-/SaveFileDialog
9313 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
9315 * OpenFileDialog.cs: Fixed CheckFileExists
9317 Moved FileView and DirComboBox outside FileDialog class.
9318 They can now be used outside FileDialog
9320 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
9322 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
9323 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
9325 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
9327 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9328 - Added missing CreatePrompt property in SaveDialog
9329 - Overall SaveDialog handling should be better now
9330 - Added non standard ShowHiddenFiles property
9331 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
9332 - Added InitialDirectory and RestoreDirectory support
9334 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
9336 * FileDialog.cs: Made dirComboBox usable
9338 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
9340 * FileDialog.cs: Added Filter support (case sensitiv)
9342 2005-03-24 Jackson Harper <jackson@ximian.com>
9344 * TabControl.cs: Need a couple more pixels for the lines.
9346 2005-03-23 Jackson Harper <jackson@ximian.com>
9348 * TabControl.cs: Give the tab page focus when it is selected.
9350 2005-03-23 Jackson Harper <jackson@ximian.com>
9352 * TabControl.cs: Account for the drawing of tabs borders when
9353 invalidating. If the slider was clicked dont do click detection on
9356 2005-03-23 Jackson Harper <jackson@ximian.com>
9358 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
9360 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
9362 * CategoryGridEntry.cs: Added
9363 * GridItem.cs: Added helper properties
9364 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
9365 * GridEntry.cs: Updated code for collection
9366 * PropertyGrid.cs: Cleaned up some formatting
9367 * PropertyGridView.cs: Added drop down functionality for enums.
9368 * GridItemCollection.cs: Added enumerator logic
9369 * PropertyGridEntry.cs: Added
9371 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
9374 - Removed unnecessary commented code
9375 - Fixed handling for entering the filename manually in the combobox
9377 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
9379 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9381 2005-03-18 Peter Bartok <pbartok@novell.com>
9383 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9384 them being touching the border
9386 2005-03-18 Peter Bartok <pbartok@novell.com>
9388 * TextControl.cs: Quick hack to center text better
9390 2005-03-18 Peter Bartok <pbartok@novell.com>
9393 - Don't throw NotImplemented exceptions, just print a notice once
9394 instead (requested by Miguel). This makes running existing SWF
9397 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9398 - Added context menu trigger on right click
9399 * Panel.cs: Trigger invalidate on resize
9401 - Removed old double-buffer drawing
9402 - Added ResizeRedraw style to force proper update of statusbar
9404 - Removed debug output
9405 * ThemeWin32Classic.cs:
9406 - Fixed drawing of status bar, now draws Text property if there
9407 are no defined panels
9409 2005-03-18 Jackson Harper <jackson@ximian.com>
9411 * ImageList.cs: When the image stream is set pull all the images
9413 * ImageListStreamer.cs: Implement reading image list streams.
9415 2005-03-18 Peter Bartok <pbartok@novell.com>
9417 * ThemeWin32Classic.cs (DrawPictureBox):
9418 - Fixed calculations for centered drawing
9419 - Fixed drawing for normal mode, not scaling the image on normal
9421 2005-03-18 Peter Bartok <pbartok@novell.com>
9423 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9426 - Made Open/Save button the accept button for FileDialog
9427 - Tied the cancel button to the IButtonControl cancel button
9428 - Save/Open now properly builds the pathname
9429 - Now handles user-entered text
9430 - Preventing crash on right-click if no item is selected
9431 - Fixed Text property, now uses contents of textbox
9432 - Fixed SelectedText property, now just returns the text part that
9433 is selected in the text box
9435 2005-03-18 Jackson Harper <jackson@ximian.com>
9437 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9438 rect, make sure to de-adjust the interior rect after drawing the
9441 2005-03-18 Peter Bartok <pbartok@novell.com>
9443 * MenuAPI.cs: Remove menu *before* executing selected action to
9444 prevent the menu from 'hanging around'
9446 2005-03-17 Geoff Norton <gnorton@customerdna.com>
9448 * XplatUIOSX.cs: Implemented WorkingArea property
9450 2005-03-17 Peter Bartok <pbartok@novell.com>
9452 * XplatUIX11.cs: Fixed menu coord calculations
9453 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9454 for calculating offsets
9456 2005-03-17 Peter Bartok <pbartok@novell.com>
9458 * Hwnd.cs: Do not consider menu presence for default client
9459 rectangle location/size
9460 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9461 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9462 translation functions
9463 * FileDialog.cs: Fixed (what I presume is a) typo
9465 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
9467 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9468 X access (avoids X-Async errors)
9470 2005-03-16 Jackson Harper <jackson@ximian.com>
9472 * TabControl.cs: Raise the SelectedIndexChanged event.
9474 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
9476 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9477 - Removed vertical ToolBar and replaced it with a custom panel
9478 (desktop and home button already work)
9479 - Added Help button (some controls get resized or relocated then)
9480 - Draw correct text depending on Open or Save.
9481 - Fixed some typos...
9483 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
9486 - Only change Maximum and Minimum when need it (bug fix)
9488 2005-03-15 Peter Bartok <pbartok@novell.com>
9490 * Form.cs: Use Handle for icon, to trigger creation if
9491 the window does not yet exist
9493 - CanSelect: Slight performance improvement
9494 - Focus(): Preventing possible recursion
9495 - Invalidate(): Removed ControlStyle based clear flag setting
9496 - WM_PAINT: fixed logic for calling OnPaintBackground
9497 - WM_ERASEBKGND: Fixed logic, added call to new driver method
9498 EraseWindowBackground if the control doesn't paint background
9500 - Moved EraseWindowBackground() method to internal methods
9501 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9502 is sent via SendMessage on BeginPaint call on Win32
9504 - Added EraseWindowBackground() method
9505 - No longer sends WM_ERASEBKGND on .Expose, but on call to
9506 PaintEventStart, which more closely matches Win32 behaviour
9507 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9508 - Fixed SetFocus() to properly deal with client and whole windows
9509 * Hwnd.cs: Added ErasePending property
9510 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9511 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9513 2005-03-12 Geoff Norton <gnorton@customerdna.com>
9516 - Fix hard loop when timers exist.
9517 - Fix bugs with middle and right click for 3 button mice.
9519 2005-03-11 Peter Bartok <pbartok@novell.com>
9522 - get_WorkingArea: Need to call X directly, GetWindowPos only
9523 returns cached data now
9524 - Added sanity check to GetWindowPos hwnd usage
9526 2005-03-11 Jackson Harper <jackson@ximian.com>
9528 * BindingManagerBase.cs: This method isn't used anymore as
9529 PullData now updates the data in the control.
9531 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
9533 * Form.cs: fixes menu drawing on X11
9534 * MenuAPI.cs: fixes menu drawing on X11
9536 2005-03-11 Peter Bartok <pbartok@novell.com>
9538 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9539 from Jonathan Gilbert; should fix bug #73606
9540 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9541 in Screen coordinates. Thanks, Jordi.
9542 * Form.cs: Added missing attribute
9544 2005-03-11 Peter Bartok <pbartok@novell.com>
9547 - Rudimentary Mdi support
9548 - Removed outdated FormParent code
9549 - Implemented lots of missing properties and methods, still missing
9550 transparency support
9551 - Added missing attributes
9552 - Implemented support for MaximumBounds
9553 - Added firing of various events
9554 * XplatUI.cs: Added SetIcon() method
9555 * XplatUIDriver.cs: Added SetIcon() abstract
9556 * XplatUIOSX.cs: Stubbed out SetIcon() method
9558 - Implemented SetIcon() support
9559 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9560 - Switched to unix line endings
9562 - Made POINT internal so for can access it as part of MINMAX
9563 - Implemented SetIcon() support
9564 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9565 native Mdi support again, might have to go managed)
9566 * Control.cs: Now fires the StyleChanged event
9567 * MdiClient.cs: Added; still mostly empty
9569 2005-03-10 Peter Bartok <pbartok@novell.com>
9571 * SaveFileDialog.cs: Added emtpy file
9573 2005-03-08 Peter Bartok <pbartok@novell.com>
9575 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9576 in turn triggers OnCreateContro) when creating a handle for the
9578 * TextControl.cs: Fixed endless loop in certain cases when
9579 replacing the current selection
9581 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
9584 - Honors NewValue changes in Scroll events allowing apps to change it
9585 - Adds First and Last Scroll events
9586 - Fixes Thumb events
9588 2005-03-07 Peter Bartok <pbartok@novell.com>
9590 * Hwnd.cs: Added DefaultClientRectangle property
9591 * XplatUI.cs: Now using the X11 driver Where() method, which provides
9592 more detailed debug information
9594 - Fixed size-change feedback loop, where we would pull an old size
9595 off the queue and mistakenly change our window's size to an
9597 - Now compressing ConfigureNotify events, to reduce looping and
9599 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9602 2005-03-07 Jackson Harper <jackson@ximian.com>
9604 * Binding.cs: Push data pushes from data -> property. Check if the
9605 property is readonly when attempting to set it.
9607 2005-03-07 Jackson Harper <jackson@ximian.com>
9609 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9610 instead of IsSubclassOf. Pulling data now sets the value on the
9612 * PropertyManager.cs:
9613 * CurrencyManager.cs: Just need to pull data when updating now,
9614 because PullData will set the value on the control.
9616 2005-03-04 Jackson Harper <jackson@ximian.com>
9618 * Binding.cs: Implement data type parsing and converting on pulled
9619 data. TODO: Are there more ways the data can be converted?
9621 2005-03-04 Jackson Harper <jackson@ximian.com>
9623 * Binding.cs: Support <Property>IsNull checks. Also bind to the
9624 controls Validating method so we can repull the data when the
9625 control loses focus.
9627 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
9630 - Fixes null string format
9633 - Adds enum type checks
9634 - Fixes redrawing and recalc need after changing some properties
9635 - Fixes on focus_item set after the event
9636 - Fixes adding columns after the control has been created
9638 * ThemeWin32Classic.cs:
9639 - Fixes CheckBox focus rectangle
9640 - Fixes ColumnHeader drawing
9643 2005-03-03 Jackson Harper <jackson@ximian.com>
9645 * Binding.cs: Bind to <Property>Changed events so we can detect
9646 when properties are changed and update the data.
9648 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
9651 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9652 - Fixes ImageList constructor with ImageList container
9653 - Fixes image scaling (wrong parameters at DrawImage)
9655 2005-02-02 Jackson Harper <jackson@ximian.com>
9657 * Binding.cs: Make property searches case-insensitive. Eliminate
9658 some duplicated code.
9660 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
9663 - Handle focus event
9664 - Fix scrollbar events
9665 - Discard highlighted item if remove it
9666 - Fixes SelectedItem with strings
9668 2005-03-01 Peter Bartok <pbartok@novell.com>
9671 - Fixed Visible property, now follows (once again) parent chain
9672 to return false if any control in the chain is visible=false
9673 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9674 - Fixed several places where is_visible instead of Visible was used
9675 - Implemented FIXME related to focus selection when setting focused
9676 control to be invisible
9678 * XplatUIWin32.cs: Now using proper method to find out if window is
9679 visible. Thanks to Jordi for pointing it out
9681 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
9683 * ComboBox.cs: show/hide scrollbar instead of creating it
9685 2005-02-27 Jackson Harper <jackson@ximian.com>
9687 * CurrencyManager.cs: Add PositionChanged stuff.
9689 2005-02-27 Peter Bartok <pbartok@novell.com>
9691 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9692 * XplatUIOSX.cs: Added GetMenuOrigin() stub
9693 * XplatUIWin32.cs: Implemented GetMenuOrigin()
9695 - Implemented GetMenuDC()
9696 - Implemented GetMenuOrigin()
9697 - Implemented ReleaseMenuDC()
9698 - Implemented generation of WM_NCPAINT message
9699 - Implemented generation and handling of WM_NCCALCSIZE message
9700 * Form.cs: Added debug helper message for Jordi's menu work
9702 - Modified ClientRect property; added setter, fixed getter to handle
9703 setting of ClientRect
9704 - Added MenuOrigin property
9706 2005-02-26 Peter Bartok <pbartok@novell.com>
9709 - Destroys the caret if a window that's being destroyed contains it
9710 - Ignores expose events coming from the X11 queue for windows that
9711 already are destroyed
9712 - Now uses the proper variable for handling DestroyNotify, before we
9713 marked the wrong window as destroyed
9714 - Improved/added some debug output
9716 2005-02-26 Peter Bartok <pbartok@novell.com>
9718 * X11Keyboard.cs: Fixes to work on 64bit systems
9720 2005-02-26 Peter Bartok <pbartok@novell.com>
9723 - Now calling OnHandleDestroyed from DestroyHandle()
9724 instead of Dispose()
9725 - Removed bogus call to controls.Remove() from DestroyHandle()
9727 2005-02-26 Peter Bartok <pbartok@novell.com>
9729 * Control.cs: Properly destroy child windows when our handle is
9732 2005-02-25 Peter Bartok <pbartok@novell.com>
9735 - Added 'DriverDebug' define to allow tracing XplatUI API calls
9736 - Alphabetized Static Methods and Subclasses
9739 - Added XException class to allow custom handling of X11 exceptions
9740 - Created custom X11 error handler, tied into XException class
9741 - Added support for MONO_XEXCEPTIONS env var to allow the user
9742 to either throw an exception on X errors or continue running
9743 after displaying the error
9744 - Added handling of DestroyNotify message
9745 - Added handler for CreateNotify message (still disabled)
9746 - Improved (tried to at least) Where method to provide file and lineno
9748 - Added XErrorHandler delegate
9749 - Added XRequest enumeration (to suppor translation of errors)
9751 2005-02-25 Jackson Harper <jackson@ximian.com>
9753 * PropertyManager.cs: Implement editing features
9754 * CurrencyManager.cs:
9755 * Binding.cs: First attempt at UpdateIsBinding
9756 * BindingManagerBase.cs: Call UpdateIsBinding before
9757 pushing/pulling data.
9759 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
9761 * MenuAPI.cs: Respect disabled items
9762 * ThemeWin32Classic.cs
9763 - Caches ImageAttributes creation for DrawImageDisabled
9764 - Fixes vertical menu line drawing
9765 - Draws disabled arrows in disable menu items
9767 2005-02-24 Peter Bartok <pbartok@novell.com>
9770 - Added UserData property to allow associating arbitrary objects
9772 - Fixed leak; now removing Hwnd references from static windows array
9774 - Fixed Graphics leak in PaintEventEnd
9775 - Removed usage of HandleData, switched over to Hwnd class
9776 * HandleData.cs: Removed, obsoleted by Hwnd.cs
9778 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
9780 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9781 * ScrollBar.cs: Fixes bug
9782 * TrackBar.cs: removes death code, clipping, mimize refreshes,
9783 keyboard navigation enhancements
9785 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
9787 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9788 * GroupBox.cs: Add control styles
9789 * Label.cs: Add control styles
9790 * UpDownBase.cs: Add control styles
9791 * ListBox.cs: Add control styles
9792 * XplatUIWin32.cs: Fixes wrong parameter order
9795 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
9797 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9799 2005-02-23 Jackson Harper <jackson@ximian.com>
9801 * PropertyManager.cs: Implement property binding. This doesn't
9802 seem to work yet though as (I think) there are some bugs in
9803 System.ComponentModel.PropertyDescriptor.
9804 * BindingContext.cs: Use new PropertyManager constructor.
9806 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
9808 * ProgressBar.cs: use clip region in ProgressBar
9809 * ThemeWin32Classic.cs: use clip region in ProgressBar
9811 2004-02-22 Jackson Harper <jackson@ximian.com>
9813 * BindingsCollection.cs: Remove some debug code.
9815 2005-02-22 Jackson Harper <jackson@ximian.com>
9817 * BindingContext.cs:
9818 * ControlBindingsCollection.cs:
9819 * CurrencyManager.cs:
9821 * BindingManagerBase.cs: Initial implementation
9822 * BindingsCollection.cs: Add an internal contains method that the
9823 BindingManagerBase uses to ensure bindings aren't added twice to
9825 * PropertyManager.cs: Stubbed out.
9827 * ContainerControl.cs: Hook up databinding
9829 2005-02-22 Geoff Norton <gnorton@customerdna.com>
9832 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9833 Fixed Invalidate/Update chain.
9834 Fixed tons of other minor bugs (this is almost a complete rewrite).
9836 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
9838 * ComboBox.cs: do subcontrol creation when the control is created
9840 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
9842 * Label.cs: fixes image drawing (image and imagelist)
9843 * ThemeWin32Classic.cs: cache brushes
9845 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
9847 * Form.cs: Move menu drawing code to Theme class
9848 * ComboBox.cs: Move ComboBox drawing code to Theme class
9849 * MenuItem.cs: Move menu drawing code to Theme class
9850 * MenuAPI.cs: Move menu drawing code to Theme class
9851 * ThemeWin32Classic.cs: New methods
9852 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9853 * ListBox.cs: Move Listbox drawing code to Theme class
9854 * Theme.cs: New methods
9856 2005-02-20 Peter Bartok <pbartok@novell.com>
9859 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9860 only process mnemonics on those)
9861 - Fixed event sequence for key handling; first calling
9862 ProcessKeyEventArgs now
9864 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9865 for processing non-character keys
9866 - Fixed WM_CHAR to generate proper event sequence before processing
9867 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9870 2005-02-19 Peter Bartok <pbartok@novell.com>
9872 * UserControl.cs: Added TextChanged event; added attributes
9873 * SizeGrip.cs: Implemented resizing and optional display of grip
9874 * Form.cs: Fixed attribute
9875 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9876 Changed meaning of ScrollWindow bool argument; instead of the
9877 clear attribute (which will be true usually anyway), it gives the
9878 option of moving child controls as well.
9880 - Changed to match new ScrollWindow argument
9881 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9882 now handles the implicit parent window a WM puts around us
9883 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9885 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9886 * TreeView.cs: Adjusted to new ScrollWindow arguments
9888 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
9890 * Form.cs: Menu integration with non-client area
9891 * MenuItem.cs: Menu integration with non-client area
9892 * MenuAPI.cs: Menu integration with non-client area
9894 2005-02-18 Peter Bartok <pbartok@novell.com>
9896 * MethodInvoker.cs: Added
9897 * MdiLayout.cs: Added
9898 * SendKeys.cs: Started implementation
9899 * ErrorIconAlignment.cs: Added
9901 2005-02-18 Peter Bartok <pbartok@novell.com>
9903 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9904 * Form.cs: Added handling for Menu-related Non-client messages
9906 2005-02-17 Peter Bartok <pbartok@novell.com>
9908 * UpDownBase.cs: Fixed typo, compilation errors
9909 * DomainUpDown.cs: Fixed attribute value
9911 2005-02-16 Miguel de Icaza <miguel@novell.com>
9913 * UpDownBase.cs: Attach entry events.
9915 Add ForeColor property, Focused, InterceptArrowKeys (interception
9918 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
9921 - Redraw non client are on Setmenu
9922 - Calc proper menu starting point
9924 2005-02-17 Peter Bartok <pbartok@novell.com>
9926 * Application.cs: Fixed message_filter check
9928 2005-02-17 Peter Bartok <pbartok@novell.com>
9930 * Application.cs: Now calls registered message filters
9931 * DockStyle.cs: Fixed attribute
9932 * Form.cs: Fixed attribute
9933 * Menu.cs: Fixed attribute
9934 * ToolTip.cs: Fixed attribute
9935 * TreeNode.cs: Added missing attributes and arranged in regions
9936 * PropertyGrid.cs: Fixed signatures
9937 * TreeNodeCollection.cs: Added attributes
9938 * Splitter.cs: Added missing attributes; arranged into regions
9939 * TabPage.cs: Added missing attributes; arranged into regions
9940 * TextBoxBase.cs: Added missing attributes
9941 * TextBox.cs: Added missing attributes
9942 * ArrangeDirection.cs: Added missing attributes
9943 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9944 * ToolBarButton.cs: Fixed attributes
9945 * AnchorStyles.cs: Fixed attribute
9946 * TrackBar.cs: Fixed attributes
9947 * TabControl.cs: Added missing attributes and arranged into regions
9948 * ToolBar.cs: Fixed attribute
9949 * StatusBar.cs: Fixed signature, organized into regions and added
9951 * StatusBarPanel.cs: Fixed attributes
9952 * ContentsResizedEventArgs.cs: Implemented
9953 * ContentsResizedEventHandler.cs: Implemented
9954 * DateBoldEventArgs.cs: Implemented
9955 * DateBoldEventHandler.cs: Implemented
9956 * UpDownEventArgs.cs: Implemented
9957 * UpDownEventHandler.cs: Implemented
9959 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
9961 * Form.cs: first Menu NC refactoring
9962 * MenuAPI.cs: first Menu NC refactoring
9964 2005-02-16 Peter Bartok <pbartok@novell.com>
9966 * ImeMode.cs: Added missing attributes
9967 * Menu.cs: Fixed attribute
9968 * GroupBox.cs: Fixed attribute
9969 * Label.cs: Fixed attribute
9970 * ColorDialog.cs (RunDialog): Removed TODO attribute
9971 * ComboBox.cs: Fixed attributes
9972 * ListControl.cs: Added missing attributes
9973 * PropertyGrid.cs: Fixed attributes
9974 * Control.cs: Fixed attributes
9975 * ListViewItem.cs: Added TypeConverter attribute
9976 * NotifyIcon.cs: Fixed attributes
9977 * ListView.cs: Fixed attributes
9978 * ButtonBase.cs: Fixed attribute
9979 * ImageList.cs: Added missing attributes
9980 * ContainerControl.cs: Fixed signature
9981 * CheckedListBox.cs: Fixed attribute; added missing attributes
9982 * Panel.cs: Fixed attributes
9983 * PropertyTabChangedEventArgs.cs: Added missing attribute
9984 * PropertyValueChangedEventArgs.cs: Added missing attribute
9985 * Binding.cs: Fixed attribute
9986 * ListViewItemConverter: Implemented ListViewSubItemConverter class
9987 * ListBox.cs: Fixed attribute; added missing attributes;
9988 * ScrollableControl.cs: Added missing attributes
9989 * PictureBox.cs: Added missing attributes; implemented missing property
9990 * DateTimePicker.cs: Added missing attributes
9991 * Theme.cs (ToolWindowCaptionHeight): Fixed type
9992 * MonthCalendar.cs: Fixed attributes
9993 * StatusBarPanel.cs: Added missing attributes
9994 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9996 2005-02-16 Peter Bartok <pbartok@novell.com>
9998 * TextBoxBase.cs: The previous method to enforce height yet remember
9999 the requested high was less than ideal, this is an attempt to do
10001 * Control.cs: Added comment about possible problem
10002 * Copyright: Updated format
10003 * GridItemType.cs: Fixed swapped values
10005 2005-02-15 Jackson Harper <jackson@ximian.com>
10007 * BaseCollection.cs: Use property so we never access an
10008 uninitialized list. Also initialize the list in the property.
10010 2005-02-15 Peter Bartok <pbartok@novell.com>
10012 * GroupBox.cs (ProcessMnemonic): Implemented
10013 * Label.cs (ProcessMnemonic): Implemented
10014 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
10017 2005-02-15 Peter Bartok <pbartok@novell.com>
10019 * RadioButton.cs (ProcessMnemonic): Implemented
10020 * CheckBox.cs (ProcessMnemonic): Implemented
10022 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
10024 - Added internal method to allow calling ProcessMnemonic from other
10026 * ContainerControl.cs:
10027 - Started support for handling validation chain handling
10028 - Implemented ProcessMnemonic support
10029 - Added Select() call to Active, to make sure the active control
10031 * Form.cs: Setting toplevel flag for Forms (this was lost in the
10032 FormParent rewrite)
10033 * ThemeWin32Classic.cs:
10034 - DrawCheckBox(): Fixed stringformat to show hotkeys
10035 - DrawRadioButton(): Fixed stringformat to show hotkeys
10036 * CommonDialog.cs: Removed WndProc override, not needed
10038 2005-02-14 Peter Bartok <pbartok@novell.com>
10040 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
10041 missed those in the rewrite
10043 2005-02-14 Miguel de Icaza <miguel@novell.com>
10045 * NumericUpDown.cs (Increment, ToString): Add.
10046 (DecimalPlaces): implement.
10050 * UpDownBase.cs: Add the designer attributes.
10052 2005-02-13 Peter Bartok <pbartok@novell.com>
10054 * Panel.cs: Removed border_style, now in Control
10055 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
10056 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
10058 2005-02-13 Peter Bartok <pbartok@novell.com>
10060 * MouseButtons.cs: Added missing attributes
10061 * XplatUIStructs.cs: Added enumeration for title styles
10062 * LeftRightAlignment.cs: Added missing attributes
10063 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
10064 it compatible with Graphics.FromHwnd()
10065 * SelectedGridItemChangedEventArgs.cs: Fixed property type
10066 * Keys.cs: Added missing attributes
10067 * SelectionRange.cs: Added missing attributes
10068 * SelectionRangeConverter.cs: Added
10070 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
10071 ReleaseMenuDC methods
10072 - Renamed ReleaseWindow to UngrabWindow
10073 - Added proper startup notice to allow version identification
10075 - Added missing attributes
10076 - Removed FormParent concept
10077 * Label.cs: Removed border_style field, now in Control
10078 * RadioButton.cs: Now properly selects RadioButton when focus is
10080 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
10082 - Added missing attributes
10083 - Added borderstyle handling
10084 - Removed FormParent concept support
10085 - Fixed calls to XplatUI to match changed APIs
10086 - Fixed bug that would case us to use disposed Graphics objects
10087 - Removed unneeded internal methods
10088 - PerformLayout(): Fixed to handle DockStyle.Fill properly
10089 - SelectNextControl(): Fixed to properly check common parents
10090 * TextBoxBase.cs: Removed border_style field (now in Control)
10092 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
10093 fixed calculations for form size
10094 - Added support for localized strings and icons
10095 - Improved form size calculations, added border
10096 * ListView.cs: Removed border_style field (now in Control)
10097 * X11Structs.cs: Moved several structs from X11 driver here
10098 * X11Keyboard.cs: Changed debug message
10099 * Application.cs: Removed FormParent concept support
10101 - Resetting end_modal flag
10102 - Removed FormParent concept support
10103 * NativeWindow.cs: Removed FormParent concept support
10104 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
10105 Client area and Non-Client whole window to allow support for WM_NC
10107 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
10108 prevent using it until it supports Hwnd as per Geoff Norton's request
10109 * ToolBar.cs: Fixed drawing, was not doing proper drawing
10110 * PictureBox.cs: Removed border_style field, now in Control
10111 * XplatUIWin32.cs: Added new driver methods
10113 2005-02-12 Peter Bartok <pbartok@novell.com>
10115 * OpacityConverter.cs: Implemented
10116 * Hwnd.cs: Internal class to support drivers that need to emulate
10117 client area/non-client area window behaviour
10119 2005-02-11 Peter Bartok <pbartok@novell.com>
10121 * KeysConverter.cs: Implemented
10123 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
10125 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
10126 * LinkLabel: Added missing attributes
10127 * MainMenu.cs: fixes ToString
10128 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
10129 * ListBox.cs: fixes event position
10130 * TrackBar.cs: adds missing attributes and events
10132 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
10134 * MenuItem.cs: Use SystemInformation and bug fixes
10135 * MenuAPI.cs: Use SystemInformation and bug fixes
10137 2005-02-09 Jackson Harper <jackson@ximian.com>
10139 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
10140 their keystate otherwise things like VK_MENU get stuck "on".
10142 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
10144 * ListBox.cs: Fixes AddRange bug
10146 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
10149 - Add missing attributes
10150 - Add missing method
10152 * CheckedListBox.cs: Added missing attributes
10153 - Add missing attributes
10154 - Remove extra method
10156 * ComboBox.cs: Added missing attributes
10157 * VScrollBar.cs: Added missing attributes
10158 * ScrollBar.cs: Added missing attributes
10159 * ListBox.cs: Fixes signature, add missing consts
10160 * LinkArea.cs: Added missing attributes
10163 2005-02-08 Peter Bartok <pbartok@novell.com>
10165 * Menu.cs: Added missing attributes
10166 * MainMenu.cs: Added missing attributes
10167 * GroupBox.cs: Added missing attributes
10168 * Label.cs: Added missing attributes
10169 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
10171 - Added Instance and Options properties
10172 - Added missing attributes
10173 * Cursor.cs: Made Serializable
10174 * NotifyIcon: Added missing attributes
10175 * MenuItem.cs: Added missing attributes
10176 * TextBoxBase.cs: Implemented AppendText() and Select() methods
10177 * Panel.cs: Added Missing attributes
10178 * MonthCalendar.cs: Fixed CreateParams
10180 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
10184 - Fixes issues with links
10185 - Adds the class attributes
10187 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
10190 - Fixes button when no items available in dropdown
10191 - Fixes repainting problems
10192 - Adds the class attributes
10194 2005-02-07 Geoff Norton <gnorton@customerdna.com>
10196 * XplatUIOSX.cs: Detect the menu bar and title bar height from
10197 the current theme. Cache these on startup.
10199 2005-02-07 Jackson Harper <jackson@ximian.com>
10201 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
10202 the scrollbar buttons when they are depressed.
10204 2005-02-07 Geoff Norton <gnorton@customerdna.com>
10206 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
10207 Get the display size from the main displayid. We currently dont
10208 support multiple display configurations.
10210 2005-02-07 Geoff Norton <gnorton@customerdna.com>
10212 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
10214 2005-02-07 Miguel de Icaza <miguel@novell.com>
10216 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
10218 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
10220 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
10222 2005-02-04 Jackson Harper <jackson@ximian.com>
10224 * ThemeWin32Classic.cs: Respect the clipping rect when
10225 drawing. Only fill the intersection of clips and rects so there
10226 isn't a lot of large fills.
10227 * ScrollBar.cs: Pass the correct clipping rect to the theme
10228 engine. Remove some debug code.
10230 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
10232 * DateTimePicker.cs:
10233 - Fixed crash on DateTime.Parse, use Constructor instead
10235 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
10239 - Owner draw support (MeasureItem and DrawItem)
10241 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
10244 - Implements FindMergePosition and MergeMenu functions (very poor documented)
10245 - Fixes MenuItems.Add range
10247 - MergeMenu and Clone and CloneMenu functions
10249 2005-02-03 Jackson Harper <jackson@ximian.com>
10251 * ScrollBar.cs: Make abstract
10252 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
10255 2005-02-03 Jackson Harper <jackson@ximian.com>
10257 * ScrollBar.cs: First part of my scrollbar fixups. This removes
10258 all the unneeded refreshes and uses invalidates with properly
10261 2005-02-03 Peter Bartok <pbartok@novell.com>
10263 * ComponentModel.cs: Added
10264 * IDataGridEditingService.cs: Added
10265 * Timer.cs: Added missing attributes
10266 * ToolTip.cs: Added missing attributes
10268 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
10270 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
10272 2005-02-03 Peter Bartok <pbartok@novell.com>
10274 * ListBox.cs: Added missing attributes
10276 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
10279 - Fixes font height after font change
10280 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
10282 2005-02-02 Peter Bartok <pbartok@novell.com>
10284 * HandleData.cs: Introduced static methods to allow class
10285 to be more self-contained and track it's own HandleData objects
10286 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
10287 HandleData to use new static methods
10289 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
10292 - Fixes default size and PreferredHeight
10294 - ObjectCollection.Insert implementation
10300 - ObjectCollection.Insert implementation
10301 - No selection after clean
10304 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
10306 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
10308 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
10311 - Caches ItemHeight calculation for OwnerDrawVariable
10312 - Handles dropdown properly
10313 - Fixes several minor bugs
10315 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
10318 - Fixes 71946 and 71950
10319 - Fixes changing Multicolumn on the fly
10320 - Fixes keyboard navigation on Multicolumn listboxes
10322 2005-01-31 Geoff Norton <gnorton@customerdna.com>
10324 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
10325 crash reporter log.
10327 2005-01-31 Geoff Norton <gnorton@customerdna.com>
10329 * XplatUIOSX.cs: Allow applications to actually exit.
10331 2005-01-31 Geoff Norton <gnorton@customerdna.com>
10333 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
10334 their parent at creation time rather than lazily later. Fixes a major
10335 regression we were experiencing.
10337 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
10339 * ThemeWin32Classic.cs: more date time picker painting fixes
10340 * DateTimePicker.cs: more monthcalendar drop down fixes
10341 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
10343 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
10346 - When moving the thumb going outside the control should stop the moving
10347 - Adds the firing of missing events
10348 - Fixes no button show if Size is not specified
10349 - End / Home keys for keyboard navigation
10351 2005-01-30 Peter Bartok <pbartok@novell.com>
10353 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
10354 sanity check to prevent theoretical loop
10355 * XplatUIWin32.cs (SetVisible): Removed debug output
10356 * XplatUIX11.cs (SystrayChange): Added sanity check
10357 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
10358 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
10359 behaviour, valid until the X11 client window rewrite is done
10360 * TextBox.cs (ctor): Setting proper default foreground and background
10363 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
10365 * Theme: Added DrawDateTimePicker to interface
10366 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
10367 * DateTimePicker.cs: Created (still needs keys and painting code)
10368 * DateTimePickerFormat.cs: added
10369 * MonthCalendar.cs: fixed CreateParams for popup window mode
10371 2005-01-29 Peter Bartok <pbartok@novell.com>
10373 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10374 this should also the calculations for ligher/darker
10375 * Theme.cs: Fixed defaults for ScrollBar widths/heights
10377 2005-01-29 Peter Bartok <pbartok@novell.com>
10379 * ArrangeDirection.cs: Added
10380 * ArrangeStartingPositon.cs: Added
10381 * SystemInformation.cs: Implemented
10382 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10383 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10384 used by SystemInformation class
10385 * X11Strucs.cs: Added XSizeHints structure
10387 - Fixed CreateParams to make sure the menu window is always visible
10388 - TrackPopupMenu: Added check to make sure we don't draw the
10391 2005-01-29 Peter Bartok <pbartok@novell.com>
10393 * HandleData.cs: Added method for altering invalid area
10394 * TextBoxBase.cs: Implemented TextLength
10396 2005-01-28 Peter Bartok <pbartok@novell.com>
10398 * XplatUIX11.cs: Improvement over last patch, not sending
10399 the WM_PAINT directly anymore, instead we scroll any pending
10400 exposed areas and let the system pick out the WM_PAINT later
10402 2005-01-28 Peter Bartok <pbartok@novell.com>
10404 * SWF.csproj: Deleted, no longer used. Instead,
10405 Managed.Windows.Forms/SWF.csproj should be used
10406 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10407 directly, to avoid a potential race condition with the next
10410 2005-01-28 Peter Bartok <pbartok@novell.com>
10412 * XplatUI.cs: Made class internal
10414 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
10416 * CheckedListBox.cs:
10419 - Missing methods and events
10421 2005-01-27 Peter Bartok <pbartok@novell.com>
10423 * Application.cs (Run): Don't use form if we don't have one
10425 2005-01-27 Peter Bartok <pbartok@novell.com>
10427 * TextBoxBase.cs (get_Lines): Fixed index off by one error
10429 2005-01-27 Peter Bartok <pbartok@novell.com>
10431 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10432 * GridItem.cs: Added; Patch by Jonathan S. Chambers
10433 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10434 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10435 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10436 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10437 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10438 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10439 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10440 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10441 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10442 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10444 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
10447 - Draw focus on Simple Combobox
10448 - Fixes drawing issues
10451 2005-01-27 Peter Bartok <pbartok@novell.com>
10454 - Place window in default location, instead of hardcoded 0/0
10455 - Send initial LocationChanged event
10457 - UpdateBounds after creation to find out where the WM placed us
10458 - Make sure that if the ParentForm changes location the Form
10460 * XplatUIX11.cs: XGetGeometry will not return the coords relative
10461 to the root, but to whatever the WM placed around us.
10462 Translate to root coordinates before returning toplevel
10464 * XplatUIWin32.cs: Removed debug output
10465 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10466 flag to GetWindowPos, to allow translation of coordinates on X11
10468 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
10470 * ListBox.cs: connect LostFocus Event
10472 2005-01-27 Peter Bartok <pbartok@novell.com>
10474 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10475 XplatUIX11.cs: Extended the Systray API
10476 * Form.cs: Removed debug output
10477 * Application.cs: Fixed focus assignment, always need to call
10478 XplatUI.Activate() since Form.Activate() has rules that may
10480 * NotifyIcon.cs: Should be complete now
10481 * ToolTip.cs: Worked around possible timer bug
10483 2005-01-27 Jackson Harper <jackson@ximian.com>
10486 - Only invalidate the effected tabs when the
10487 selected index changes. This reduces drawing and gets rid of some
10489 - Only refresh if the tabs need to be shifted, otherwise only
10490 invalidate the slider button.
10491 - On windows the tabs are not filled to right if the slider is
10494 2005-01-27 Jackson Harper <jackson@ximian.com>
10496 * TabControl.cs: Only refresh on mouseup if we are showing the
10497 slider. Also only invalidate the button whose state has changed.
10499 2005-01-26 Peter Bartok <pbartok@novell.com>
10501 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10502 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10503 and SystrayRemove() methods
10504 * XplatUIOSX.cs: Stubbed Systray methods
10506 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10508 - Fixed broken XChangeProperty calls (marshalling messed up things)
10509 * X11Structs.cs: Added enums and structs required for Size hinting
10510 * NotifyIcon.cs: Added & implemented
10512 2005-01-26 Jackson Harper <jackson@ximian.com>
10514 * TabControl.cs: Space vertically layed out tabs properly.
10516 2005-01-26 Peter Bartok <pbartok@novell.com>
10518 * Form.cs (CreateClientParams): Always set the location to 0,0
10519 since we're a child window.
10521 * Control.cs (SetVisibleCore): Always explicitly setting the location
10522 of a toplevel window, apparently X11 doesn't like to move windows
10523 while they're not mapped.
10525 2005-01-26 Jackson Harper <jackson@ximian.com>
10527 * TabControl.cs: Implement FillToRight size mode with vertically
10530 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
10532 * ControlPaint.cs, ThemeWin32Classic.cs
10533 - Fixes DrawFocusRectangle
10535 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
10538 - MenuBar tracking only starts when item is first clicked
10539 - Fixes menu hidding for multiple subitems
10540 - Unselect item in MenuBar when item Executed
10543 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
10546 - IsInputKey for ListBox
10549 - Shift and Control item selection
10550 - Implement SelectionMode.MultiExtended
10551 - Fixes RightToLeft
10553 - IsInputKey implemented
10554 - Do not generate OnTextChangedEdit on internal txt changes
10556 2005-01-23 Peter Bartok <pbartok@novell.com>
10558 * AccessibleObject.cs: Partially implemented Select()
10559 * MonthCalendar.cs: Added missing attributes and events
10560 * Form.cs: Fixed CreateParams behaviour, now controls derived from
10561 form can properly override CreateParams.
10562 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10563 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10564 Control performs Invalidate & Update
10565 * NativeWindow (CreateHandle): Added special handling for Form
10566 and Form.FormParent classes to allow overriding of From.CreateParams
10568 - ControlNativeWindow: Renamed 'control' variable to more intuitive
10570 - ControlNativeWindow: Added Owner property
10571 - Removed usage of Refresh() on property changes, changed into
10572 Invalidate(), we need to wait until the queue is processed for
10573 updates, direct calls might cause problems if not all vars for
10574 Paint are initialized
10575 - Added call to UpdateStyles() when creating the window, to set any
10576 styles that CreateWindow might have ignored.
10577 - Added support for Form CreateParent overrides to UpdateStyles()
10578 * MessageBox.cs: Removed no longer needed FormParent override stuff,
10579 CreateParams are now properly overridable
10580 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10581 CreateParams are now properly overridable
10583 2005-01-23 Miguel de Icaza <miguel@ximian.com>
10585 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10588 Capture LostFocus and OnTextBoxChanged. The later introduces a
10589 recursive invocation that I have not figured out yet.
10591 Reset the timer when not using (it was accumulating).
10594 (OnTextBoxChanged): Set UserEdit to true here to track whether the
10595 user has made changes that require validation.
10597 Reset changing to avoid loops.
10599 2005-01-22 Miguel de Icaza <miguel@ximian.com>
10601 * NumericUpDown.cs: Display value at startup.
10603 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10606 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10607 filled in. Added some basic parsing of text.
10609 Still missing the OnXXX method overrides, and figuring out the
10610 events that must be emitted.
10612 * UpDownBase.cs: Handle UserEdit on the Text property.
10614 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
10617 - Fixes IntegralHeight
10620 2005-01-21 Jackson Harper <jackson@ximian.com>
10622 * TabControl.cs: Set the SelectedIndex property when SelectedTab
10623 is set so that the page visibility is updated and the tabs are
10626 2005-01-21 Jackson Harper <jackson@ximian.com>
10628 * TabControl.cs: Use cliping rectangle for blitting. Give the
10629 theme the clipping rect so we can do clipping while
10630 drawing. Remove some debug code.
10632 2005-01-21 Jackson Harper <jackson@ximian.com>
10634 * TabPage.cs: Add a new method so tab pages can force the tab
10635 control to recalculate the tab page sizes.
10636 * TabControl.cs: UpdateOwner needs to make the tab control recalc
10639 2005-01-20 Jackson Harper <jackson@ximian.com>
10641 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10643 2005-01-20 Jackson Harper <jackson@ximian.com>
10645 * TreeView.cs: Set the bounds for nodes properly. They were
10646 getting screwed up when checkboxes were not enabled, but images
10649 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
10652 - Owner draw support
10655 2005-01-20 Jackson Harper <jackson@ximian.com>
10657 * XplatUIStructs.cs: More misc keys
10658 * X11Keyboard.cs: Ignore some control keys.
10660 2005-01-20 Jackson Harper <jackson@ximian.com>
10662 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10663 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10665 2005-01-19 Peter Bartok <pbartok@novell.com>
10667 * Control.cs: Un-selecting the control when it is loosing focus
10669 2005-01-19 Jackson Harper <jackson@ximian.com>
10671 * TreeView.cs: Hook up to the text controls leave event so we can
10672 end editing when the users clicks outside the text box.
10674 2005-01-19 Jackson Harper <jackson@ximian.com>
10676 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10677 get set in the conversion array.
10679 2005-01-19 Peter Bartok <pbartok@novell.com>
10681 * Application.cs (ModalRun): Added a call to CreateControl to ensure
10682 focus is properly set
10684 - Added missing attributes
10685 - removed styles, those are already set in the base class
10687 - Added missing attributes
10688 - Added clip window styles
10689 * CheckBox.cs: Added missing attributes
10691 - FormParentWindow.CreateParams: Added required clip styles
10692 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10693 also filters modifier keys
10695 - Added assignment of Accept and Cancel button to enable Enter
10696 and Esc keys in MessageBox dialogs
10697 - FormParentWindow.CreateParams: Added required clip styles
10698 * RadioButton.cs: Added missing attributes
10699 * TextControl.cs: No longer draws selection if control does not
10702 - Now draws simple rectangle around test area to make it obvious
10703 there's a control. This is a hack until we properly support borders
10704 - A few simple fixes to support selections better, now erases selected
10705 text when typing, and resets selection when using movement keys
10707 2005-01-19 Miguel de Icaza <miguel@ximian.com>
10709 * UpDownBase.cs: Added some new properties.
10711 * DomainUpDown.cs: Implement a lot to get my test working.
10713 2005-01-19 Geoff Norton <gnorton@customerdna.com>
10715 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10717 2005-01-19 Geoff Norton <gnorton@customerdna.com>
10719 * OSXStructs (WindowAttributes): Fixed csc complaints
10721 2005-01-19 Geoff Norton <gnorton@customerdna.com>
10724 OSXStructs.cs: Initial refactor to move enums and consts into
10725 OSXStructs and use them in the driver for greater readability.
10727 2005-01-19 Geoff Norton <gnorton@customerdna.com>
10729 * XplatUIOSX.cs: Initial support for Standard Cursors.
10730 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10732 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
10734 * ComboBox.cs: ability to change style when the ctrl is already
10735 created, missing methods and events, bug fixes, signature fixes
10737 2005-01-19 Peter Bartok <pbartok@novell.com>
10739 * Cursors.cs (ctor): Added ctor to fix signature
10741 2005-01-18 Peter Bartok <pbartok@novell.com>
10743 * Button.cs: Implemented DoubleClick event
10745 - Fixed keyboard handling to behave like MS, where the press of
10746 Spacebar is equivalent to a mousedown, and the key release is
10747 equivalent to mouseup. Now a spacebar push will give the same
10748 visual feedback like a mouse click.
10749 - Added missing attributes
10750 - Added ImeModeChanged event
10751 - Added support for generating DoubleClick event for derived classes
10753 - Implemented DoubleClick event
10754 - Added missing attributes
10755 * CommonDialog.cs: Added missing attribute
10756 * ContextMenu.cs: Added missing attributes
10758 - AutoChecked buttons do not allow to be unselected when clicked
10759 (otherwise we might end up with no selected buttons in a group)
10760 - Added missing attributes
10761 - Implemented DoubleClickEvent
10762 * ThreadExceptionDialog.cs: Enabled TextBox code
10764 2005-01-18 Peter Bartok <pbartok@novell.com>
10766 * Form.cs: Removed debug output
10767 * Button.cs: Added support for DoubleClick method
10769 2005-01-18 Peter Bartok <pbartok@novell.com>
10772 - Added method to parent window that allows triggering size
10773 calculations when a menu is added/removed
10774 - set_Menu: Cleaned up mess from early days of Form and Control,
10775 now properly triggers a recalc when a menu is added/removed
10776 - Added case to select form itself as focused form if no child
10778 - Added PerformLayout call when showing dialog, to ensure properly
10781 - Select(): Made internal so Form can access it
10782 - Focus(): Only call Xplat layer if required (avoids loop), and sets
10784 * Application.cs (Run): Removed hack and calls PerformLayout instead
10785 to trigger calculation when Form becomes visible
10787 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
10789 * ComboBox.cs: fixes for ownerdraw
10791 2005-01-18 Peter Bartok <pbartok@novell.com>
10794 - Sentinel is no longer static, each Document gets it's own, this
10795 avoids locking or alternatively overwrite problems when more
10796 than one text control is used simultaneously.
10797 - Switched to use Hilight and HilightText brushes for text selection
10799 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10801 2005-01-18 Peter Bartok <pbartok@novell.com>
10804 - Hooked up the following events:
10812 o SystemColorsChanged
10813 o ParentFontChanged
10815 - Removed debug output
10816 - Added a call to the current theme's ResetDefaults when a color change
10818 * Form.cs: Now setting the proper ImeMode
10819 * Theme.cs: Defined a method to force recreation of cached resources
10820 and rereading of system defaults (ResetDefaults())
10821 * ThemeWin32Classic.cs: Added ResetDefaults() stub
10823 2005-01-17 Peter Bartok <pbartok@novell.com>
10825 * Control.cs: Added missing attributes
10827 2005-01-17 Jackson Harper <jackson@ximian.com>
10829 * TreeNode.cs: Implement editing. Add missing properties selected
10831 * TreeView.cs: Implement node editing. Also some fixes to use
10832 Invalidate (invalid area) instead of Refresh when selecting.
10834 2005-01-17 Peter Bartok <pbartok@novell.com>
10837 - Implemented InvokeGotFocus() method
10838 - Implemented InvokeLostFocus() method
10839 - Implemented InvokePaint() method
10840 - Implemented InvokePaintBackground() method
10841 - Implemented InvokeClick() method
10842 - Implemented FindForm() method
10843 - Implemented RectangleToClient() method
10844 - Implemented ClientToRectangle() method
10845 - Implemented ResetBackColor() method
10846 - Implemented ResetCursor() method
10847 - Implemented ResetFont() method
10848 - Implemented ResteForeColor() method
10849 - Implemented ResetImeMode() method
10850 - Implemented ResetLeftToRight() method
10851 - Implemented ResetText() method
10852 - Implemented Scale() methods
10853 - Implemented ScaleCore() method
10854 - Implemented Update() method
10855 - Removed unused variables
10856 - Stubbed AccessibilityNotifyClients and
10857 ControlAccessibleObject.NotifyClients() methods (dunno what to do
10859 - Now setting proper default for RightToLeft property
10860 - Fixed bug in SetClientSizeCore that would cause windows to get
10862 - Now sending Click/DoubleClick events
10863 - Now selecting controls when left mouse button is clicked on
10865 * AccessibleEvents.cs: Added
10866 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10867 * XplatUIOSX.cs: Stubbed UpdateWindow() method
10868 * XplatUIWin32.cs: Implemented UpdateWindow() method
10869 * XplatUIX11.cs: Implemented UpdateWindow() method
10870 * Form.cs: Removed stray semicolon causing CS0162 warning
10871 * ThemeWin32Classic.cs: Fixed unused variable warnings
10872 * ScrollableControl.cs: Now calls base method for ScaleCore
10873 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10874 style to avoid interference with internal click handler (which is
10875 different than standard Control click handling)
10877 - Now unchecks all sibling radio buttons when control is
10878 selected (Fixes #68756)
10879 - Removed internal tabstop variable, using the one inherited from
10882 2005-01-17 Jackson Harper <jackson@ximian.com>
10884 * NavigateEventArgs.cs: Fix base type.
10885 * LinkLabel.cs: Sig fix
10887 2005-01-17 Jackson Harper <jackson@ximian.com>
10889 * TreeView.cs: Only invalidate the effected nodes bounds when
10892 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
10894 * XplatUIWin32.cs: fixes Win32 marshaling
10895 * XplatUIX11.cs: fixes method signature
10897 2005-01-17 Peter Bartok <pbartok@novell.com>
10899 * XplatUIX11.cs: Clean up resources when we no longer need them
10901 2005-01-17 Peter Bartok <pbartok@novell.com>
10903 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10904 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10905 and DestroyCursor() methods.
10906 * Cursor.cs: Partially implemented, now supports standard cursors;
10907 still contains some debug code
10908 * Cursors.cs: Implemented class
10910 - WndProc(): Added handling of WM_SETCURSOR message, setting the
10912 - Implemented Cursor property
10913 - Replaced break; with return; more straightforwar and possibly
10915 - Now properly setting the result for WM_HELP
10916 * X11Structs.cs: Added CursorFontShape enum
10917 * XplatUIStructs.cs:
10918 - Added StdCursor enum (to support DefineStdCursor() method)
10919 - Added HitTest enum (to support sending WM_SETCURSOR message)
10921 - Now sends the WM_SETCURSOR message
10922 - Implemented new cursor methods
10923 * XplatUIOSX.cs: Stubbed new cursor methods
10925 - Implemented new cursor methods
10926 - Added GetSystemMetrics function and associated enumeration
10928 2005-01-15 Peter Bartok <pbartok@novell.com>
10931 - WndProc(): Now handles EnableNotifyMessage
10932 - SelectNextControl(): Fixed bug where if no child or sibling
10933 controls exist we looped endlessly
10935 2005-01-14 Jackson Harper <jackson@ximian.com>
10937 * TreeView.cs: Recalculate the tab pages when a new one is added
10938 so that the proper bounding rects are created.
10940 2005-01-14 Jackson Harper <jackson@ximian.com>
10942 * TreeView.cs: Draw a gray box instead of a grip in the lower
10943 right hand corner when there are both horizontal and vertical
10946 2005-01-14 Jackson Harper <jackson@ximian.com>
10948 * Control.cs: When erasing backgrounds use FromHwnd instead of
10949 FromHdc when there is a NULL wparam. This occurs on the X driver.
10950 * XplatUIX11.cs: Set the wparam to NULL.
10952 2005-01-13 Jackson Harper <jackson@ximian.com>
10954 * PictureBox.cs: Implement missing methods (except ToString, need
10955 to test that on windows) and events. When visibility is changed we
10956 need to redraw the image because the buffers are killed. When size
10957 is changed refresh if the sizemode needs it.
10959 2005-01-13 Peter Bartok <pbartok@novell.com>
10961 * Control.cs (SelectNextControl): Was using wrong method to select
10964 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
10966 * ComboBox.cs: fixes dropstyle
10968 2005-01-13 Peter Bartok <pbartok@novell.com>
10971 - Implemented Select() override
10972 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10973 - Now sets keyboard focus on startup
10974 * Control.cs (SelectNextControl): Now properly handles directed=true
10976 - WndProc: Now passes tab key on to base if AcceptTabChar=false
10977 - Added (really bad) focus rectangle (mostly for testing)
10978 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10979 to enforce redraw on focus changes
10980 * ContainerControl.cs:
10981 - Fixed detection of Shift-Tab key presses
10982 - Fixed traversal with arrow keys
10983 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10984 gonna keep this or if it's complete yet
10986 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
10988 * ComboBox.cs: missing properties, fixes
10990 2005-01-13 Peter Bartok <pbartok@novell.com>
10992 * Panel.cs (ctor): Setting Selectable window style to off
10993 * Splitter.cs (ctor): Setting Selectable window style to off
10994 * GroupBox.cs (ctor): Setting Selectable window style to off
10995 * Label.cs (ctor): Setting Selectable window style to off
10997 2005-01-12 Miguel de Icaza <miguel@ximian.com>
10999 * UpDownBase.cs (InitTimer): If the timer has been already
11000 created, enable it.
11002 Use a TextBox instead of a Label.
11004 2005-01-12 Jackson Harper <jackson@ximian.com>
11006 * TreeView.cs: Refresh the tree after sorting the nodes. Always
11007 draw the connecting node lines (when ShowLines is true).
11008 * TreeNode.cs: The nodes index can now be updated. This is used
11009 when a node collection is sorted.
11010 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
11011 insert or an existing unsorted node collection can be sorted.
11013 2005-01-12 Peter Bartok <pbartok@novell.com>
11015 * ContainerControl.cs: Implemented ProcessDialogKeys()
11017 2005-01-12 Peter Bartok <pbartok@novell.com>
11020 - Implemented SelectNextControl() method
11021 - Several focus related bug fixes
11022 - Fixed Docking calculations to match MS documentation and
11025 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
11027 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
11030 2005-01-12 Peter Bartok <pbartok@novell.com>
11033 - Fixed broken Contains() method
11034 - Implemented GetNextControl() method. Finally. This is the pre-
11035 requisite for focus handling.
11037 2005-01-12 Peter Bartok <pbartok@novell.com>
11039 * OSXStrucs.cs: Added
11041 2005-01-12 Peter Bartok <pbartok@novell.com>
11044 - Removed PeekMessageFlags
11045 - Implemented SetWindowStyle() method
11046 * XplatUIStructs.cs: Added PeekMessageFlags
11047 * X11Structs: Added missing border_width field to XWindowChanges struct
11049 - PeekMessage: Now throws exception if flags which are not yet
11050 supported are passed
11051 - Implemented SetWindowStyle() method
11052 - Fixed SetZOrder to handle AfterHwnd properly
11053 * XplatUI.cs: Added SetWindowStyle() method
11054 * XplatUIDriver.cs: Added SetWindowStyle() abstract
11056 - Implemented UpdateStyles() method
11057 - Implemented UpdateZOrder() method
11058 * XplatUIOSX.cs: Added SetWindowStyle() stub
11060 2005-01-12 Geoff Norton <gnorton@customerdna.com>
11062 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
11066 2005-01-11 Jackson Harper <jackson@ximian.com>
11068 * TreeView.cs: Still need to draw lines to siblings even if out of
11069 the current node is out of the clip.
11071 2005-01-11 Jackson Harper <jackson@ximian.com>
11073 * TreeView.cs: When setting the hbar/vbar/grip position use
11074 SetBounds so that perform layout is only called once. Also suspend
11075 and resume layout so layout is only done once for all controls.
11076 - Removed some debug fluff
11077 * SizeGrip.cs: Call base implmentation in overriding methods.
11078 - When visibility is changed the drawing buffers are killed so we
11081 2005-01-11 Jackson Harper <jackson@ximian.com>
11083 * TreeView.cs: Calculate the open node count while drawing. This
11084 saves us an entire tree traversal for every paint operation. Use
11085 a member var for the open node count so less vars are passed around.
11087 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
11089 * MonthCalendar.cs:
11090 - fixed selection to use mousemove, not mouse polling on timer
11091 * ThemeWin32Classic.cs
11092 - removed redundant unused variable "no_more_content"
11094 2005-01-11 Peter Bartok <pbartok@novell.com>
11096 * XplatUIX11.cs (DoEvents): Needs to return when no more events
11097 are pending, so it now calls PeekMessage instead of GetMessage;
11098 implemented a incomplete version of PeekMessage
11100 2005-01-11 Peter Bartok <pbartok@novell.com>
11102 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
11104 * TextBoxBase.cs: Added sending of TextChanged event
11106 2005-01-10 Jackson Harper <jackson@ximian.com>
11108 * TreeView.cs: Try not to draw outside the clipping rectangle on
11111 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
11113 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
11115 2005-01-10 Jackson Harper <jackson@ximian.com>
11118 - Implement fast scrolling. Now only the newly
11119 exposed nodes are drawn and the old image is moved using the
11120 XplatUI::ScrollWindow method.
11121 - Factor in height of nodes when calculating whether or not the
11122 node is in the clipping rect.
11124 2005-01-10 Jackson Harper <jackson@ximian.com>
11126 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
11128 2005-01-10 Peter Bartok <pbartok@novell.com>
11130 * Application.cs: Added temporary hack to resolve all our resize
11131 required issues on startup. This will get fixed properly at
11132 some point in the future
11134 2005-01-10 Jackson Harper <jackson@ximian.com>
11136 * SizeGrip.cs: New internal class that is used as a sizing
11137 grip control...hence the name.
11139 2005-01-10 Peter Bartok <pbartok@novell.com>
11141 * Control.cs: Implemented proper TabIndex handling, now assigning
11142 a tabindex when a control is added to a container
11143 * GroupBox.cs (ctor): Now sets the Container style bit, required
11144 for Control.GetNextControl()
11146 2005-01-09 Jackson Harper <jackson@ximian.com>
11148 * TextBoxBase.cs: Clear window when scrolling (fixes build).
11150 2005-01-09 Peter Bartok <pbartok@novell.com>
11152 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11153 XplatUIX11.cs: Added ability to control ScrollWindow expose and
11154 an overload for ScrollWindow to allow only scrolling a rectangle
11156 2005-01-09 Peter Bartok <pbartok@novell.com>
11159 - Implemented SetDesktopBounds method
11160 - Implemented SetDesktopLocation method
11162 2005-01-08 Jackson Harper <jackson@ximian.com>
11164 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
11165 the node count has changed, this removes to VScroll::Refresh calls
11168 2005-01-08 Geoff Norton <gnorton@customerdna.com>
11170 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
11172 2005-01-07 Jackson Harper <jackson@ximian.com>
11174 * TreeNode.cs: Just update the single node when it is
11175 checked. Don't refresh after toggling, the Expand/Collapse already
11177 * TreeView.cs: Respect clipping a little more when drawing. Try
11178 not to redraw things that don't need to be redrawn. Just hide the
11179 scrollbars when they are no longer needed instead of removing
11180 them, so they don't have to be created again and again.
11182 2005-01-07 Geoff Norton <gnorton@customerdna.com>
11184 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
11185 coordinates to window space to place the caret properly, FIXED.
11186 Implement GetWindowState & SetWindowState
11188 2005-01-06 Peter Bartok <pbartok@novell.com>
11191 - Implemented ClientSize property
11192 - Implemented DesktopBounds property
11193 - Implemented DesktopLocation property
11194 - Implemented IsRestrictedWindow property
11195 - Implemented Size property
11196 - Implemented TopLevel property
11197 - Implemented FormWindowState property
11199 - Implemented GetTopLevel() method
11200 - Implemented SetTopLevel() method
11201 * X11Structs.cs (Atom):
11202 - Added AnyPropertyType definition
11203 - Added MapState definiton and updated XWindowAttribute struct
11204 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
11205 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
11206 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
11208 - Implemented GetWindowState() and SetWindowState() methods
11209 - Fixed Win32GetWindowLong return type
11211 - Introduced central function for sending NET_WM messages
11212 - Implemented GetWindowState() and SetWindowState() methods
11213 * TextBoxBase.cs (set_Lines):
11214 - Now uses Foreground color for text added via Text property (Duh!)
11215 - Added code to remember programmatically requested size (fixes
11216 behaviour when Multiline is set after Size)
11217 - Added AutoSize logic
11219 2005-01-06 Jackson Harper <jackson@ximian.com>
11221 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
11223 2005-01-06 Jackson Harper <jackson@ximian.com>
11225 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
11226 set to less then 0.
11228 2005-01-06 Jackson Harper <jackson@ximian.com>
11230 * ScrollableControl.cs: Lazy init the scrollbars.
11232 2005-01-06 Jackson Harper <jackson@ximian.com>
11234 * Theme.cs: Speed up getting pens and solid brushes, by using
11235 their ARGB as a hash instead of tostring and not calling Contains.
11237 2005-01-06 Peter Bartok <pbartok@novell.com>
11240 - Implemented OnActivated and OnDeactivate event trigger
11241 - Implemented Activate() method
11242 - Fixed ShowDialog() to activate the form that was active before
11243 the dialog was shown
11245 - Added global active_window var that tracks the currently active
11247 - Now always grabs Property changes from the root window to always
11248 catch changes on the active window property
11249 - Added code to PropertyNotify handler to send Active/Inactive
11250 messages when state changes. This puts X11 and Win32 en par on
11251 WM_ACTIVATE notifications (except for double notifications when
11252 the user clicks away from our modal window to another one of our
11255 2005-01-05 Jackson Harper <jackson@ximian.com>
11257 * ImageList.cs: Implment ctor
11259 2005-01-05 Geoff Norton <gnorton@customerdna.com>
11261 * XplatUIOSX.cs: Implement Activate/SetTopmost
11263 2005-01-05 Geoff Norton <gnorton@customerdna.com>
11265 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
11267 2005-01-05 Geoff Norton <gnorton@customerdna.com>
11269 * XplatUIOSX.cs: Implement GetActive/SetFocus.
11271 2005-01-05 Peter Bartok <pbartok@novell.com>
11273 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
11274 XplatUIOSX.cs: Added GetActive method to return the currently
11275 active window for the application (or null, if none is active)
11277 - Implemented ActiveForm
11278 - Commented out owner assignment for modal dialogs (causes problems
11279 on Win32, since the owner will be disabled)
11280 - Reworked some Active/Focus handling (still incomplete)
11281 * CommonDialog.cs: Commented out owner assignment for modal dialogs
11282 (causes problems on Win32, since the owner will be disabled)
11283 * IWin32Window: Added ComVisible attribute
11285 2005-01-05 Peter Bartok <pbartok@novell.com>
11287 * ToolTip.cs (WndProc): Enable setting focus now that we have the
11288 required XplatUI functions.
11290 2005-01-05 Peter Bartok <pbartok@novell.com>
11292 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
11293 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
11294 to implement focus and activation handling; still incomplete and
11297 2005-01-04 Peter Bartok <pbartok@novell.com>
11299 * TextBoxBase.cs: Changed access level for Document property to
11300 match switch to internal for TextControl
11302 2005-01-04 Peter Bartok <pbartok@novell.com>
11304 * AccessibleObject: Added ComVisible attribute
11306 2005-01-04 Jackson Harper <jackson@ximian.com>
11308 * X11Keyboard.cs: Remove unneeded var.
11310 2005-01-04 Jackson Harper <jackson@ximian.com>
11312 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
11314 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
11315 ClientMessage. This makes apps exit cleanly (more often).
11317 2005-01-04 Jackson Harper <jackson@ximian.com>
11319 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
11320 handling focus, return correct colors and fonts,
11321 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
11322 handle selection, horizontal scrolling, and mouse interaction.
11324 2005-01-04 Peter Bartok <pbartok@novell.com>
11326 * ICommandExecutor.cs: Added
11327 * IDataGridColumnStyleEditingNotificationService.cs: Added
11328 * IFeatureSupport.cs: Added
11329 * IFileReaderService.cs: Added
11330 * IDataObject.cs: Added ComVisible attribute
11331 * AmbientProperties.cs: Added
11332 * BaseCollection.cs: Added missing attributes
11333 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
11334 * BaseCollection.cs: Added missing attributes
11335 * Binding.cs: Added TypeConverter attribute
11336 * BindingContext.cs: Added DefaultEvent attribute
11337 * BindingsCollection.cs: Added DefaultEvent attribute
11338 * Button.cs: Added DefaultValue attribute
11339 * DragEventArgs.cs: Added ComVisible attribute
11340 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
11341 * KeyEventArgs.cs: Added ComVisible attribute
11342 * KeyPressEventArgs.cs: Added ComVisible attribute
11343 * MouseEventArgs.cs: Added ComVisible attribute
11344 * NavigateEventArgs.cs: Added
11345 * NavigateEventHandler.cs: Added
11346 * FeatureSupport.cs: Added
11347 * OSFeature.cs: Added
11348 * Theme.cs: Added abstract Version property to support OSFeature
11349 * ThemeWin32Classic.cs: Added Version property to
11350 support OSFeature.Themes
11351 * ProgressBar.cs: Removed OnPaintBackground override, not required since
11352 the proper styles to avoid background drawing are set, also doesn't
11354 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
11355 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
11356 * ScrollEventArgs.cs: Added ComVisible attribute
11357 * SplitterEventArgs.cs: Added ComVisible attribute
11358 * AccessibleSelection.cs: Added Flags attribute
11359 * Appearance.cs: Added ComVisible attribute
11360 * Border3DSide.cs: Added ComVisible attribute
11361 * Border3DStyle.cs: Added ComVisible attribute
11362 * BorderStyle.cs: Added ComVisible attribute
11363 * DragAction.cs: Added ComVisible attribute
11364 * ErrorBlinkStyle.cs: Added
11365 * ScrollEventType.cs: Added ComVisible attribute
11366 * AnchorStyles.cs: Added Editor attribute
11367 * DockStyle.cs: Added Editor attribute
11368 * HorizontalAlignment.cs: Added ComVisible attribute
11369 * HelpEventArgs.cs: Added ComVisible attribute
11370 * PaintEventArgs.cs: Added IDisposable
11372 2005-01-04 Peter Bartok <pbartok@novell.com>
11374 * TextControl.cs: Switched Line, LineTag and Document classes to
11377 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
11379 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11380 Simple mode, fixes, IntegralHeight, etc.
11382 2005-01-04 Peter Bartok <pbartok@novell.com>
11384 * TextBoxBase.cs: Using proper font variable now
11386 2005-01-04 Peter Bartok <pbartok@novell.com>
11388 * Form.cs (ShowDialog): Set parent to owner, if provided
11389 * GroupBox.cs: Removed unused vars
11391 - Added GetHashCode() for Document and LineTag classes
11392 - Removed unused variables
11393 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11394 to allow translation between continuous char position and line/pos
11395 * CheckBox.cs: Removed vars that are provided by base class
11396 * RadioButton.cs: Removed vars that are provided by base class, added
11397 new keyword where required
11398 * LinkLabel.cs: Added new keyword where required
11399 * Control.cs (WndProc): Removed unused variable
11401 - Finished SelectionLength property
11402 - Implemented SelectionStart property
11403 - Implemented Text property
11404 - Removed unused vars
11405 * MessageBox.cs: Added new keyword where required
11406 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11408 * MenuAPI.cs: Added new keyword where required
11409 * ButtonBase.cs: Removed vars that are provided by base class, added
11410 new keyword where required
11411 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11412 argument to double, to allow compiling with csc 2.0 (Atsushi ran
11414 * Application.cs (Run): Now triggers the ThreadExit event
11415 * CommonDialog.cs: Added new keyword where required; now properly sets
11416 parent (owner) for dialog
11417 * XplatUIX11.cs: Commented out unused vars
11418 * StatusBar.cs: Fixed signature for Text property
11419 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11421 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
11423 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11424 TrackBar.cs, MonthCalendar.cs: remove unused vars
11426 2005-01-03 Jackson Harper <jackson@ximian.com>
11428 * ThemeWin32Classic.cs:
11429 * X11Keyboard.cs: Remove unused vars.
11431 2005-01-03 Peter Bartok <pbartok@novell.com>
11434 - set_Text: Tied into TextControl
11435 - set_TextAlignment: Tied into TextControl
11437 - Added alignment properties and implemented alignment handling
11438 and drawing (still has a bug, not generating proper expose events)
11439 - Added new Line() constructor to allow passing the line alignment
11440 - Fixed selection setting, properly handling end<start now
11441 - Added aligment considerations to RecalculateDocument()
11443 - Now properly enforces control height for single line controls
11444 - Added support for CharacterCasing
11445 - Added IsInputKey override
11446 - Fixed Keys.Enter logic
11447 - Added SetBoundsCore override
11448 - Fixed mouse selection handling
11450 2005-01-03 Jackson Harper <jackson@ximian.com>
11453 - Collapse and uncheck all nodes when CheckBoxes is disabled.
11454 - Checkboxes are always aligned to the bottom of the node,
11455 regardless of item height.
11456 - Use the node bounds to draw the text so we can center it when
11457 the item height is greater then the font height.
11458 - Node::Bounds are only the text part of the node.
11459 * TreeNode.cs: New method to combine collapsing and unchecking all
11462 2005-01-02 Jackson Harper <jackson@ximian.com>
11464 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11465 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11466 tree when a check is changed. TODO: Only refresh the checked node.
11468 2004-12-30 Jackson Harper <jackson@ximian.com>
11470 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11471 * TreeNode.cs: When collapsing make sure to never collapse the
11474 2004-12-29 Jackson Harper <jackson@ximian.com>
11476 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11478 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
11480 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11482 2004-12-28 Peter Bartok <pbartok@novell.com>
11484 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11487 2004-12-28 Peter Bartok <pbartok@novell.com>
11489 * Control.cs (WndProc): Added WM_HELP handler, now generates
11490 HelpRequested event
11491 * Form.cs: Added HelpButton property and required support code
11492 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11494 2004-12-28 Peter Bartok <pbartok@novell.com>
11497 - Made DialogForm.owner variable internal
11498 - Added check to ensure owner form is set before setting
11499 owner properties in CreateParams
11501 2004-12-28 Geoff Norton <gnorton@customerdna.com>
11503 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
11504 swizzling. Implement ClientToScreen and ScreenToClient. Implement
11505 GetCursorPos. Fix major visibility issues. Rework the windowing
11506 system to support borderless/titleless windows (implements menus).
11507 Fix GetWindowPos. Implement initial background color support for
11510 2004-12-28 Peter Bartok <pbartok@novell.com>
11512 * Form.cs (get_CreateParams): Make sure we have an owner before using
11513 the owner variable. Implement proper default if no owner exists
11515 2004-12-28 Peter Bartok <pbartok@novell.com>
11517 * In preparation for making Managed.Windows.Forms the default build target
11518 for System.Windows.Forms, the following stubbed files were added.
11519 Dialogs are currently being implemented by contributors and are only
11520 short-term place holders.
11521 * ColorDialog.cs: Initial check-in (minmal stub)
11522 * DataGrid.cs: Initial check-in (minimal stub)
11523 * DataGridLineStyle.cs: Initial check-in (minimal stub)
11524 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11525 * DataGridTableStyle.cs: Initial check-in (minimal stub)
11526 * FontDialog.cs: Initial check-in (minimal stub)
11527 * FileDialog.cs: Initial check-in (minimal stub)
11528 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11529 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11530 * OpenFileDialog: Initial check-in (minimal stub)
11531 * IComponentEditorPageSite.cs: Initial check-in
11532 * Splitter.cs: Initial check-in (for Jackson)
11533 * SplitterEventArgs.cs: Initial check-in (for Jackson)
11534 * SplitterEventHandler.cs: Initial check-in (for Jackson)
11535 * TextBox.cs: Initial check-in; still needs some wiring to
11536 TextControl backend
11537 * Form.cs: Implemented ControlBox property
11538 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11539 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11540 * TextControl.cs: Added selection functionality; added todo header
11542 - Implemented Lines property
11543 - Implemented TextHeight property
11544 - Implemented SelectedText property
11545 - Implemented SelectionLength property
11546 - Implemented SelectAll method
11547 - Implemented ToString method
11548 - Removed and cleaned up some debug code
11549 - Implemented (still buggy) mouse text selection
11551 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
11553 * ComboBox.cs: Complete DropDownList implementation, fixes.
11555 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
11557 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11558 * ComboBoxStyle.cs: ComboBoxStyle enum
11559 * ComboBox.cs: Initial work on ComboBox control
11561 2004-12-21 Peter Bartok <pbartok@novell.com>
11563 * Control.cs (ctor, CreateParams): Moved setting of is_visible
11564 forward so that anything that creates a window gets the default,
11565 also no longer uses Visible property in CreateParams to avoid
11566 walking up the parent chain and possibly get the wrong visible
11567 status. Fixed IsVisible to no longer walk up to the parent.
11569 2004-12-21 Peter Bartok <pbartok@novell.com>
11571 * Form.cs (ShowDialog): Unset modality for the proper window
11573 2004-12-20 Peter Bartok <pbartok@novell.com>
11575 * CommonDialog.cs: Initial check-in
11577 2004-12-20 Peter Bartok <pbartok@novell.com>
11579 * Control.cs (Visible): Now uses the parent window instead of the
11580 client area window for the property
11583 - ShowDialog(): Now uses the proper window for modality
11584 - The default visibility state for the form parent is now false. This
11585 will prevent the user from seeing all the changes to the form and
11586 its controls before the application hits Application.Run()
11587 - Removed some stale commented out code
11590 - Added FindWindow() method to have a method to check for existence
11592 - Added ability to override default exception handling (for example
11593 when debugging with VS.Net; to do this the ExternalExceptionHandler
11595 - Removed some useless debug output
11598 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11599 not working as expected
11600 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11601 property to allow switching back to the modal window if focus is
11602 given to another one of our windows (Application Modal)
11603 - Now only sets override_redirect if we create a window
11605 - Moved EventMask selection before mapping of newly created window
11606 so we can catch the map event as well
11607 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11608 - Added various Atom related DllImports
11609 - Implemented Exit() method
11610 - .ctor() : No longer shows window if WS_VISIBLE is not defined
11611 in the CreateParams
11613 * MessageBox.cs: Now properly deals with the FormParent window by
11614 providing an override the FormParent CreateParams property to
11615 set as POPUP instead of OVERLAPPED window.
11617 2004-12-19 Geoff Norton <gnorton@customerdna.com>
11619 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
11620 Minor code cleanup.
11622 2004-12-19 Geoff Norton <gnorton@customerdna.com>
11624 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11626 2004-12-18 Peter Bartok <pbartok@novell.com>
11628 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11629 implementing SetModal() method
11631 2004-12-18 Peter Bartok <pbartok@novell.com>
11633 * X11Structs.cs (XGCValues): Fixed type of function element
11634 * XplatUI.cs: Added ScrollWindow() method
11635 * XplatUIDriver.cs: Added ScrollWindow() abstract
11636 * XplatUIWin32.cs: Implemented ScrollWindow() method
11637 * XplatUIX11.cs: Implemented ScrollWindow() method
11638 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11640 2004-12-17 Geoff Norton <gnorton@customerdna.com>
11642 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
11643 Some more keyboard support (INCOMPLETE)
11645 2004-12-17 Peter Bartok <pbartok@novell.com>
11648 - Added color attribute to line tags.
11649 - Added color argument to all functions dealing with tags
11650 - Added color argument support to various functions
11651 - Fixed miss-calculation of baseline/shift in certain circumstances
11653 * TextBoxBase.cs: Added new color option to test code
11655 2004-12-17 Jackson Harper <jackson@ximian.com>
11658 * MonthCalendar.cs: Signature fixes
11660 2004-12-17 Geoff Norton <gnorton@customerdna.com>
11662 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11663 keyboard event moved it. Create a new graphics context for each paint resolves this
11665 2004-12-17 Geoff Norton <gnorton@customerdna.com>
11667 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11668 Make caret exist and go blink blink. Initial keyboard support.
11669 Fix exception handler, Add Invalidate support. Change way RefreshWindow
11672 2004-12-17 Jackson Harper <jackson@ximian.com>
11674 * XplatUIStructs.cs: Updated set of virtual keycodes.
11675 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11677 2004-12-17 Jackson Harper <jackson@ximian.com>
11679 * XplatUIX11.cs: Prune old keyboard code.
11681 2004-12-17 Jackson Harper <jackson@ximian.com>
11683 * XplatUIX11.cs: When generating mouse wparams get the modifier
11684 keys from the ModifierKeys property.
11686 2004-12-17 Jackson Harper <jackson@ximian.com>
11688 * X11Keyboard.cs: Send up/down input when generating
11689 messages. Remove some unused vars.
11691 2004-12-17 Jackson Harper <jackson@ximian.com>
11694 * TreeView.cs: get rid of warnings.
11696 2004-12-17 Jackson Harper <jackson@ximian.com>
11698 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11700 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
11702 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11703 CheckedListBox.cs: Implementation
11705 2004-12-17 Peter Bartok <pbartok@novell.com>
11707 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11709 2004-12-16 Peter Bartok <pbartok@novell.com>
11712 - InsertCharAtCaret(): Fixed start pos fixup
11713 - CaretLine_get: No longer derives the line from the tag, the tag
11714 could be stale if lines in the document have been added or deleted
11715 - RebalanceAfterDelete(): Fixed bug in balancing code
11716 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11717 - Line.Streamline(): Now can also elminate leading empty tags
11718 - DumpTree(): Added a few more tests and prevented exception on
11720 - Added Debug section for Combining lines
11721 - Delete(): Now copies all remaining properties of a line
11724 - Left mousebutton now sets the caret (and middle button still acts
11725 as formatting tester, which must go away soon)
11726 - Added Debug section for Deleting/Combining lines
11727 - Fixed calculations for UpdateView after Combining lines
11729 2004-12-16 Peter Bartok <pbartok@novell.com>
11731 * TextControl.cs: Now properly aligns text on a baseline, using the
11732 new XplatUI.GetFontMetrics() method. Simplified several calculations
11733 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11736 2004-12-16 Peter Bartok <pbartok@novell.com>
11738 * XplatUI.cs: Added GetFontMetrics() method
11739 * XplatUIDriver.cs: Added GetFontMetrics() abstract
11740 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11741 into libgdiplus, our private GetFontMetrics function
11742 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11743 * XplatUIWin32.cs: Implemented GetFontMetrics() method
11745 2004-12-16 Jackson Harper <jackson@ximain.com>
11747 * XplatUIStruct.cs: Add enum for dead keys
11748 * X11Keyboard.cs: Map and unmap dead keys.
11750 2004-12-16 Jackson Harper <jackson@ximian.com>
11752 * X11Keyboard.cs: Detect and use the num lock mask.
11754 2004-12-16 Peter Bartok <pbartok@novell.com>
11756 * Control.cs (CreateGraphics): Added check to make sure the
11757 handle of the window exists before calling Graphics.FromHwnd()
11759 2004-12-16 Peter Bartok <pbartok@novell.com>
11761 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11762 contains a lot of code that's not supposed to be there for the
11763 real thing, but required for developing/testing the textbox
11766 2004-12-16 Peter Bartok <pbartok@novell.com>
11769 - Fixed Streamline method
11770 - Added FindTag method to Line
11771 - Added DumpTree method for debugging
11772 - Added DecrementLines() method for deleting lines
11773 - Fixed UpdateView to update the cursor to end-of-line on single-line
11775 - Added PositionCaret() method
11776 - Fixed MoveCaret(LineDown) to move into the last line, too
11777 - Added InsertChar overload
11778 - Fixed InsertChar tag offset calculations
11779 - Added DeleteChar() method
11780 - Added Combine() method for folding lines
11781 - Fixed Delete() method, no longer allocates wasted Line object and
11782 now copies all properties when swapping nodes
11783 - Delete() method now updates document line counter
11785 2004-12-15 Jackson Harper <jackson@ximian.com>
11787 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11788 * X11Keyboard.cs: Expose the currently selected modifier keys
11789 through a property.
11791 2004-12-15 Peter Bartok <pbartok@novell.com>
11793 * TextControl.cs: Initial check-in. Still incomplete
11795 2004-12-15 Jackson Harper <jackson@ximian.com>
11798 * TreeView.cs: Fix build on csc (second time today ;-))
11800 2004-12-15 Jackson Harper <jackson@ximian.com>
11802 * TreeView.cs: Store the treenodes plus/minus box bounds when it
11803 is calculated and use this for click testing.
11804 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11806 2004-12-15 Jackson Harper <jackson@ximian.com>
11808 * TreeView.cs: Pass the nodes image index to the image list when
11809 drawing that image.
11811 2004-12-15 Jackson Harper <jackson@ximian.com>
11813 * X11Keyboard.cs: Set messages hwnd.
11814 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11815 post_message calls.
11817 2004-12-15 Jackson Harper <jackson@ximian.com>
11819 * X11Keyboard.cs: Fix to compile with csc.
11821 2004-12-15 Jackson Harper <jackson@ximian.com>
11823 * X11Structs.cs: Add key mask values
11824 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11825 * X11Keyboard.cs: New file - Extrapolates and interpolates key
11826 down/up foo into WM_CHAR foo
11827 * KeyboardLayouts.cs: Common keyboard layouts
11828 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11829 post messages into the main queue.
11831 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
11833 * Button.cs: implement ProcessMnemonic
11834 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11836 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11837 * ButtonBase.cs: Show HotkeyPrefix (not the &)
11839 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
11841 * MonthCalendar.cs: Implemented click-hold for next/previous month
11844 2004-12-11 Peter Bartok <pbartok@novell.com>
11847 - Added XKeyboardState (moved from XplatUIX11.cs)
11848 - Added XCreateGC related enums and structures
11849 - Added GXFunction for XSetFunction
11851 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11853 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11854 CaretVisible() calls
11856 * ToolTip.cs: Added code to prevent stealing focus from app windows
11858 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11859 DestroyCaret, SetCaretPos and CaretVisible)
11862 - Added implementation for caret functions
11863 - Moved hover variables into a struct, to make it a bit easier
11864 on the eyes and to debug
11865 - Removed XKeyboardState (moved to XplatUIX11.cs)
11866 - Moved Keyboard properties into the properties region
11868 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11869 call to get a graphics context for our control
11871 * XplatUIOSX.cs: Added empty overrides for the new caret functions
11873 * TreeView.cs: Fixed bug. No matter what color was set it would always
11874 return SystemColors.Window
11876 * XplatUIWin32.cs: Implemented caret overrides
11878 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
11880 * ListBox.cs: fire events, implement missing methods and properties,
11883 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
11885 * MonthCalendar.cs: invalidation bug fixing
11886 * ThemeWin32Classic.cs: paint fixing
11888 2004-12-09 Geoff Norton <gnorton@customerdna.com>
11890 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11891 prepare the CGContextRef there now.
11893 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
11895 * MonthCalendar.cs:
11896 - optimisationL only invalidate areas that have changed
11897 * ThemeWin32Classic.cs:
11898 - only paint parts that intersect with clip_area
11900 2004-12-09 Peter Bartok <pbartok@novell.com>
11902 * Application.cs: Undid changes from r37004 which cause problems
11905 2004-12-09 Ravindra <rkumar@novell.com>
11907 * ToolBar.cs: Added support for displaying ContextMenu
11908 attached to a button on ToolBar.
11909 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11912 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
11914 * Label.cs: autosize works in text change and removes unnecessary
11917 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
11919 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11922 2004-12-08 Geoff Norton <gnorton@customerdna.com>
11924 * XplatUIOSX.cs: Added mouse move/click/grab support
11925 Remove some debugging WriteLines not needed anymore.
11926 Add window resizing/positioning.
11927 Fix visibility on reparenting.
11929 2004-12-08 Peter Bartok <pbartok@novell.com>
11931 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11933 2004-12-07 Geoff Norton <gnorton@customerdna.com>
11935 * XplatUIOSX.cs: Initial checkin
11936 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11938 2004-12-03 Ravindra <rkumar@novell.com>
11940 * ListView.cs: Added some keybindings and fixed scrolling.
11941 ScrollBars listen to ValueChanged event instead of Scroll
11942 Event. This would let us take care of all changes being
11943 done in the scrollbars' values programmatically or manually.
11944 * ListView.cs (CanMultiselect): Added a check for shift key.
11945 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11946 * ListViewItem.cs (Clone): Fixed. We need to make a copy
11947 of ListViewSubItemCollection as well.
11949 2004-12-06 Peter Bartok <pbartok@novell.com>
11951 * Control.cs (Parent): Added check and exception to prevent
11954 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
11956 * ListBox.cs: implemented clipping, selection single and multiple,
11959 2004-12-03 Ravindra <rkumar@novell.com>
11961 * ListView.cs (ListView_KeyDown):
11962 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11963 when CTRL key is pressed.
11964 * ListViewItem.cs (Selected): Fixed setting the property.
11966 2004-12-03 Marek Safar <marek.safar@seznam.cz>
11968 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11970 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11971 MinimizeBox, ShowInTaskbar, TopMost properties.
11973 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11974 will be implemented).
11976 2004-12-03 Marek Safar <marek.safar@seznam.cz>
11978 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11980 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11983 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11985 * TreeView.cs: BackColor is Colors.Window.
11987 2004-12-01 Jackson Harper <jackson@ximian.com>
11989 * TreeView.cs: When resizing the tree if the user is making it
11990 smaller we don't get expose events, so we need to handle adding
11991 the horizontal scrollbar in the size changed handler as well as
11992 the expose handler.
11994 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
11996 * DrawItemState.cs: fixes wrong enum values
11998 2004-12-01 Jackson Harper <jackson@ximian.com>
12000 * TreeView.cs: Resize the hbar as well as the vbar on resize.
12002 2004-12-01 Jackson Harper <jackson@ximian.com>
12004 * NodeLabelEditEventArgs.cs:
12005 * NodeLabelEditEventHandler.cs:
12006 * OpenTreeNodeEnumerator.cs:
12008 * TreeNodeCollection.cs:
12010 * TreeViewAction.cs:
12011 * TreeViewCancelEventArgs.cs:
12012 * TreeViewCancelEventHandler.cs:
12013 * TreeViewEventArgs.cs:
12014 * TreeViewEventHandler.cs: Initial implementation.
12016 2004-12-01 Ravindra <rkumar@novell.com>
12018 * ListView.cs (CalculateListView): Fixed scrolling related
12019 calculations. Also, removed some debug statements from other
12021 * ListViewItem.cs: Changed access to 'selected' instance variable
12022 from private to internal.
12023 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
12025 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
12027 * ThemeWin32Classic.cs: remove cache of brush and pens for
12028 specific controls and use the global system, fixes scrollbutton
12029 bugs (for small sizes, disabled, etc)
12031 * ScrollBar.cs: does not show the thumb for very small controls
12032 (as MS) and allow smaller buttons that the regular size
12034 2004-12-01 Miguel de Icaza <miguel@ximian.com>
12036 * UpDownBase.cs: Add abstract methods for the interface.
12037 Add new virtual methods (need to be hooked up to TextEntry when it
12039 Add override methods for most features.
12040 Computes the size, forces the height of the text entry.
12042 * NumericUpDown.cs: Put here the current testing code.
12044 * Set eol-style property on all files that do not have mixed line
12045 endings, to minimize the future problems. There are still a few
12046 files with mixed endings, and someone should choose whether they
12047 want to move it or not.
12049 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
12051 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
12054 2004-11-30 Ravindra <rkumar@novell.com>
12056 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
12057 drawing and replaced use of SystemColors by theme colors.
12058 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
12059 * ListView.cs (ListViewItemCollection.Add): Throw exception when
12060 same ListViewItem is being added more than once.
12062 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
12064 * MonthCalendar.cs:
12065 - ControlStyles love to make the control not flicker
12067 2004-11-30 Peter Bartok <pbartok@novell.com>
12069 * CharacterCasing.cs: Added
12071 2004-11-29 Peter Bartok <pbartok@novell.com>
12073 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12074 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
12075 I am removing these files as they conflict with already completed
12076 work. While it is fantastic to get contributions to MWF, I
12077 respectfully ask that everyone please coordinate their contributions
12078 through mono-winforms-list or #mono-winforms at this time. We're
12079 explicitly avoiding stubbing and don't want controls that don't have
12080 their basic functionality implemented in svn. Please also see
12081 http://www.mono-project.com/contributing/winforms.html
12084 2004-11-29 Marek Safar <marek.safar@seznam.cz>
12086 * Application.cs (ModalRun): Don't hang after exit.
12088 * Theme.cs: New TreeViewDefaultSize property.
12090 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
12091 with less hardcoded SystemColors constant.
12092 Implemented TreeViewDefaultSize.
12094 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12095 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
12098 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
12100 * MonthCalendar.cs:
12101 - Fix NextMonthDate and PrevMonthDate click moving calendar
12103 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
12105 * MonthCalendar.cs:
12106 - Fix usage of ScrollChange Property when scrolling months
12108 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
12110 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
12111 - Fixes menu destroying
12112 - Support adding and removing items on already created menus
12114 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
12116 * MonthCalendar.cs:
12117 - Re-worked all bolded dates handling to match win32
12118 * ThemeWin32Classic.cs:
12119 - Fixed rendering with bolded dates
12121 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
12123 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
12124 - Horizontal scroolbar
12129 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
12131 * MonthCalendar.cs:
12132 - Fix Usage of MaxSelectionCount from SelectionRange
12133 - Fixed Shift + Cursor Selection
12134 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
12135 - Fixed normal cursor selection to be compat with win32
12136 - Fixed Shift + Mouse Click selection
12138 2004-11-24 Peter Bartok <pbartok@novell.com>
12140 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
12141 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
12143 - CreatedKeyBoardMsg now updates keystate with Alt key
12144 - Added workaround for timer crash to CheckTimers, Jackson will
12145 develop a proper fix and check in later
12146 - Implemented DispatchMessage
12147 - Removed calling the native window proc from GetMessage (call
12148 now moved to DispatchMessage)
12150 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
12151 the keydata (Fixes bug #69831)
12154 - (DispatchMessage): Switched to return IntPtr
12155 - Added DllImport for SetFocus
12157 2004-11-24 Ravindra <rkumar@novell.com>
12159 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
12160 background drawing.
12161 * ListViewItem.cs: Fixed various properties, calculations
12162 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
12163 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
12164 and some internal properties. Fixed MouseDown handler and Paint
12167 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
12169 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
12171 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
12173 * ContainerControl.cs: correct accidental check in of local changes
12175 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
12177 * ThemeWin32Classic.cs:
12178 - Fixed Drawing Last month in grid (sometimes not showing)
12179 * MonthCalendar.cs:
12180 - Fixed title width calculation bug (makeing title small)
12182 2004-11-23 Peter Bartok <pbartok@novell.com>
12185 - Added generation of WM_MOUSEHOVER event
12186 - Added missing assignment of async_method atom
12187 - Fixed WM_ERASEBKGND; now only redraws the exposed area
12189 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
12191 * ThemeWin32Classic.cs:
12192 - Fixed Drawing of today circle when showtodaycircle not set
12193 - fixed drawing of first and last month in the grid (gay dates)
12194 * MonthCalendar.cs:
12195 - Fixed Drawing of today circle
12196 - Fixed drawing of grady dates
12197 - Fixed HitTest for today link when ShowToday set to false
12198 - Fixed DefaultSize to obey ShowToday
12200 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
12202 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
12203 * System.Windows.Forms/Theme.cs
12204 * MonthCalendar.cs: added for MonthCalendar
12205 * SelectionRange.cs: added for MonthCalendar
12206 * Day.cs: added for MonthCalendar: added for MonthCalendar
12207 * DateRangeEventArgs.cs: added for MonthCalendar
12208 * DateRangeEventHandler.cs: added for MonthCalendar
12210 2004-11-22 Ravindra <rkumar@novell.com>
12212 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
12215 2004-11-22 Miguel de Icaza <miguel@ximian.com>
12217 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
12220 * NumericUpDown.cs: Added new implementation.
12221 * UpDownBase.cs: Added new implementation.
12223 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
12226 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
12229 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
12232 2004-11-21 Miguel de Icaza <miguel@ximian.com>
12234 * Timer.cs (Dispose): Should call the base dispose when
12237 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
12239 * ScrollBar.cs: updates thumb position when max, min or increment
12242 2004-11-21 Ravindra <rkumar@novell.com>
12244 * ListView.cs: Implemented item selection, activation and
12245 column header style. Fixed properties to do a redraw, if
12246 required. Added support for MouseHover, DoubleClick, KeyDown
12247 and KeyUp event handling and some minor fixes.
12248 * ListViewItem.cs: Fixed constructor.
12249 * ThemeWin32Classic.cs: Improved drawing for ListView.
12251 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
12253 * ThemeWin32Classic.cs: initial listbox drawing code
12254 * DrawMode.cs: new enumerator
12255 * ListControl.cs: stubbed class
12256 * ListBox.cs: initial implementation
12257 * Theme.cs: new methods definitions
12258 * SelectionMode.cs: new enumerator
12260 2004-11-17 Peter Bartok <pbartok@novell.com>
12262 * XplatUIWin32.cs: Added double-click events to the class style
12263 * Control.cs (WndProc):
12264 - Added handling of click-count to MouseDown/ MouseUp events.
12265 - Added handling of middle and right mouse buttons
12266 - Removed old debug code
12268 2004-11-17 Jackson Harper <jackson@ximian.com>
12270 * XplatUIX11.cs: Use the new Mono.Unix namespace.
12272 2004-11-17 Ravindra <rkumar@novell.com>
12274 * ListView.cs: Added event handling for MouseMove/Up/Down.
12275 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
12276 * ThemeWin32Classic.cs: We need to clear the graphics context and
12277 draw column header in a proper state.
12280 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
12282 * Menu.cs: fixes signature
12284 2004-11-16 Peter Bartok <pbartok@novell.com>
12286 * XplatUIX11.cs (GetMessage): Implemented generation of
12287 double click mouse messages
12289 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
12291 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
12294 2004-11-11 Peter Bartok <pbartok@novell.com>
12296 * HandleData.cs: Added Visible property
12297 * XplatUIX11.cs (IsVisible): Now uses Visible property from
12299 * XplatUIX11.cs: Removed old debug leftovers
12300 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
12301 * Control.cs (WndProc): Removed old debug leftovers,
12302 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
12303 needed WM_SIZE handling
12305 2004-11-11 Jackson Harper <jackson@ximian.com>
12307 * OwnerDrawPropertyBag.cs:
12308 * TreeViewImageIndexConverter.cs: Initial implementation
12310 2004-11-10 Jackson Harper <jackson@ximian.com>
12312 * ThemeWin32Classic.cs:
12313 * TabControl.cs: instead of moving tabs by the slider pos just
12314 start drawing at the tab that is offset by the slider. This way
12315 scrolling always moves by exactly one tab.
12317 2004-11-10 Jackson Harper <jackson@ximian.com>
12319 * TabControl.cs: You can only scroll left when the slider has
12320 already ben moved right.
12322 2004-11-10 Jackson Harper <jackson@ximian.com>
12324 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
12327 2004-11-10 Jackson Harper <jackson@ximian.com>
12329 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
12332 2004-11-09 Jackson Harper <jackson@ximian.com>
12334 * TabControl.cs (CalcXPos): New helper method so we can determine
12335 the proper place to start drawing vertical tabs.
12336 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
12338 2004-11-09 Jackson Harper <jackson@ximian.com>
12340 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
12341 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
12342 and Bottom, left and right are illegal values for this and
12343 multiline is enabled when the alignment is set to left or right.
12344 (DrawTab): Each alignment block should draw the text itself now
12345 because Left requires special love. Also add rendering for Left
12348 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
12350 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
12351 does not destroy the windows, removes debugging messages
12353 2004-11-09 jba <jba-mono@optusnet.com.au>
12355 * ThemeWin32Classic.cs
12356 (DrawButtonBase): Fix verticle text rect clipping in windows
12357 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12358 rendering and incorrect text rect clipping
12359 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12360 rendering and incorrect text rect clipping
12362 2004-11-08 Jackson Harper <jackson@ximian.com>
12364 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
12365 bottom when they are bottom aligned so the bottoms of the tabs get
12367 * TabControl.cs (DropRow): Move rows up instead of down when the
12368 tab control is bottom aligned.
12370 2004-11-08 13:59 pbartok
12373 - Added handling for various window styles
12374 - Added handling for popup windows
12375 - Added SetTopmost handling
12377 2004-11-08 13:55 pbartok
12380 - Added argument to SetTopmost method
12381 - Fixed broken ClientToScreen function
12383 2004-11-08 13:53 pbartok
12385 * XplatUIStructs.cs:
12386 - Added missing WS_EX styles
12388 2004-11-08 13:53 pbartok
12390 * XplatUI.cs, XplatUIDriver.cs:
12391 - Added argument to SetTopmost
12393 2004-11-08 13:52 pbartok
12396 - Added XSetWindowAttributes structure
12397 - Improved XWindowAttributes structure
12398 - Added SetWindowValuemask enum
12399 - Added window creation arguments enum
12400 - Added gravity enum
12401 - Added Motif hints structure
12402 - Added various Motif flags and enums
12403 - Added PropertyMode enum for property functions
12405 2004-11-08 13:50 pbartok
12408 - Fixed arguments for updated SetTopmost method
12410 2004-11-08 13:49 pbartok
12413 - Fixed arguments for updated SetTopmost function
12414 - Fixed usage of PointToClient
12416 2004-11-08 13:44 pbartok
12419 - Added Clipping of children and siblings
12421 2004-11-08 13:41 pbartok
12424 - Removed SetMenuBarWindow call. We do this in Form.cs
12426 2004-11-08 13:40 jackson
12428 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12429 scrolling jimmi in the correct location with bottom aligned tabs
12431 2004-11-08 13:36 pbartok
12433 * ContainerControl.cs:
12434 - Implemented BindingContext
12435 - Implemented ParentForm
12437 2004-11-08 12:46 jackson
12439 * TabControl.cs: Put bottom rendered tabs in the right location
12441 2004-11-08 07:15 jordi
12443 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12446 2004-11-05 17:30 jackson
12448 * TabControl.cs: When selected tabs are expanded make sure they
12449 don't go beyond the edges of the tab control
12451 2004-11-05 14:57 jackson
12453 * TabControl.cs: Reset show_slider so if the control is resized to
12454 a size where it is no longer needed it's not displayed anymore
12456 2004-11-05 13:16 jackson
12458 * TabControl.cs: Make tab pages non visible when added to the
12461 2004-11-05 12:42 jackson
12463 * TabControl.cs: Implement SizeMode.FillToRight
12465 2004-11-05 12:16 jackson
12467 * Control.cs: Do not call CreateHandle if the handle is already
12470 2004-11-05 11:46 jackson
12472 * TabControl.cs: Remove superflous call to CalcTabRows
12474 2004-11-05 09:07 jackson
12476 * XplatUIX11.cs: Update for Mono.Posix changes
12478 2004-11-05 07:00 ravindra
12480 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12483 2004-11-04 22:47 jba
12485 * ThemeWin32Classic.cs:
12486 - Fix Button rendering for FlatStyle = Flat or Popup
12487 - Fix RadioButton and CheckBox rendering when Appearance = Button
12488 (normal and flatstyle).
12489 - Correct outer rectangle color when drawing focus rectangle
12490 - Adjust button bounds to be 1 px smaller when focused
12491 - Make button not draw sunken 3d border when pushed (windows compat)
12492 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12493 - Offset the text in RadioButton and Checkbox when being rendered as
12495 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12497 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12498 - Fixed disabled text rendering for normally rendered radiobuttons
12500 2004-11-04 10:26 jackson
12502 * TabControl.cs: Recalculate tab rows when resizing
12504 2004-11-04 07:47 jordi
12506 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12507 collection completion, drawing issues, missing features
12509 2004-11-04 05:03 ravindra
12512 - We need to recalculate the Thumb area when
12513 LargeChange/maximum/minimum values are changed.
12514 - We set the 'pos' in UpdatePos() method to minimum, if it's less
12515 than minimum. This is required to handle the case if large_change is
12516 more than max, and use LargeChange property instead of large_change
12518 - We return max+1 when large_change is more than max, like MS does.
12520 2004-11-04 04:29 ravindra
12522 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12523 - Changed default value signatures (prefixed all with ListView).
12524 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12526 - Fixed calculations for ListViewItem and implemented Clone()
12529 2004-11-04 04:26 ravindra
12531 * Theme.cs, ThemeWin32Classic.cs:
12532 - Changed default ListView values signatures (prefixed all with
12534 - Fixed default size values for VScrollBar and HScrollBar.
12535 - Fixed DrawListViewItem method.
12537 2004-11-04 04:05 ravindra
12539 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12541 2004-11-04 04:04 ravindra
12543 * ImageList.cs: Implemented the missing overload for Draw method.
12545 2004-11-03 19:29 jackson
12547 * TabControl.cs: Handle dropping rows on selection properly
12549 2004-11-03 11:59 jackson
12551 * TabControl.cs: remove debug code
12553 2004-11-03 11:52 jackson
12555 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12556 the scrolly widgerywoo
12558 2004-11-02 13:52 jackson
12560 * TabControl.cs: Resize the tab pages and tabs when the tab control
12563 2004-11-02 13:40 jackson
12565 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12566 selected tab to the bottom
12568 2004-11-02 13:39 jackson
12570 * TabPage.cs: Store the tab pages row
12572 2004-11-02 12:33 jordi
12574 * MenuItem.cs: fixes handle creation
12576 2004-11-02 11:42 jackson
12578 * TabControl.cs: signature fix
12580 2004-11-02 08:56 jackson
12582 * TabControl.cs: Calculate whether the tab is on an edge properly.
12583 Remove top secret debugging code
12585 2004-11-01 19:57 jackson
12587 * TabControl.cs: Add click handling, and proper sizing
12589 2004-11-01 19:47 jackson
12591 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12594 2004-11-01 19:39 jackson
12596 * TabPage.cs: add internal property to store the bounds of a tab
12599 2004-10-30 04:23 ravindra
12601 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12604 2004-10-30 04:21 ravindra
12606 * ListView.cs, ListViewItem.cs: Added support for scrolling and
12607 fixed calculations.
12609 2004-10-30 03:06 pbartok
12612 - Removed extension of DllImported libs
12614 2004-10-29 09:55 jordi
12616 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12617 navigation, itemcollection completion, menu fixes
12619 2004-10-27 22:58 pbartok
12622 - Now throws a nice error message when no X display could be opened
12624 2004-10-26 13:51 jordi
12626 * ListView.cs: removes warning
12628 2004-10-26 03:55 ravindra
12630 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12631 ThemeWin32Classic.cs: Some formatting for my last checkins.
12633 2004-10-26 03:36 ravindra
12635 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12636 control and default values.
12638 2004-10-26 03:35 ravindra
12640 * Theme.cs: Added some default values for ListView control.
12642 2004-10-26 03:33 ravindra
12644 * ToolBar.cs: ToolBar should use the user specified button size, if
12645 there is any. Added a size_specified flag for the same.
12647 2004-10-26 03:33 ravindra
12649 * ColumnHeader.cs: Added some internal members and calculations for
12652 2004-10-26 03:32 ravindra
12654 * ListViewItem.cs: Calculations for ListViewItem.
12656 2004-10-26 03:31 ravindra
12658 * ListView.cs: Added some internal members and calculations for
12661 2004-10-22 13:31 jordi
12663 * MenuAPI.cs: speedup menus drawing
12665 2004-10-22 13:16 jackson
12667 * XplatUIX11.cs: Make sure to update exposed regions when adding an
12670 2004-10-22 11:49 jackson
12674 2004-10-22 11:41 jackson
12676 * Control.cs: Check to see if the window should have its background
12677 repainted by X when drawing.
12679 2004-10-22 11:31 jackson
12681 * XplatUIX11.cs: When invalidating areas only use XClearArea if
12682 clear is true, this way we do not get flicker from X repainting the
12685 2004-10-22 11:28 jackson
12687 * XEventQueue.cs: Queue properly
12689 2004-10-21 09:38 jackson
12691 * XEventQueue.cs: Fix access modifier
12693 2004-10-21 09:36 jackson
12695 * XEventQueue.cs: Don't loose messages
12697 2004-10-21 09:22 jackson
12699 * XEventQueue.cs: Don't loose messages
12701 2004-10-20 04:15 jordi
12703 * BootMode.cs: enum need it by SystemInfo
12705 2004-10-19 21:58 pbartok
12708 - Small sanity check
12710 2004-10-19 21:56 pbartok
12713 - Added private FormParentWindow class which acts as the container
12714 for our form and as the non-client area where menus are drawn
12715 - Added/Moved required tie-ins to Jordi's menus
12716 - Fixed/Implemented the FormStartPosition functionality
12718 2004-10-19 21:52 pbartok
12721 - Removed unneeded locals
12722 - Added code to all size and location properties to understand and
12723 deal with the parent container of Form
12725 2004-10-19 21:33 pbartok
12728 - Fixed to deal with new Form subclasses for menus
12730 2004-10-19 17:48 jackson
12732 * XEventQueue.cs: commit correct version of file
12734 2004-10-19 16:50 jackson
12736 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12738 2004-10-19 16:15 jordi
12740 * MenuAPI.cs: MenuBarCalcSize returns the height
12742 2004-10-19 08:31 pbartok
12745 - Added missing call to PreProcessMessage before calling OnXXXKey
12748 2004-10-19 00:04 ravindra
12750 * ToolTip.cs: Fixed constructor.
12752 2004-10-18 09:31 jordi
12754 * MenuAPI.cs: menuitems in menubars do not have shortcuts
12756 2004-10-18 09:26 jordi
12758 * MenuItem.cs: fixes MenuItem class signature
12760 2004-10-18 08:56 jordi
12762 * MenuAPI.cs: prevents windows from showing in the taskbar
12764 2004-10-18 00:28 ravindra
12766 * ToolTip.cs: Suppressed a warning message.
12768 2004-10-18 00:27 ravindra
12770 * Control.cs: Default value of visible property must be true.
12772 2004-10-17 23:19 pbartok
12775 - Complete implementation
12777 2004-10-17 23:19 pbartok
12780 - Added EnableWindow method
12781 - Added SetModal stub
12782 - Added generation of WM_ACTIVATE message (still needs testing)
12783 - Added SetTopMost stub
12784 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12786 2004-10-17 23:17 pbartok
12789 - Removed VirtualKeys to XplatUIStructs
12790 - Implemented SetTopMost method
12791 - Implemented EnableWindow method
12792 - Bugfix in ScreenToClient()
12793 - Bugfixes in ClientToScreen()
12795 2004-10-17 22:51 pbartok
12797 * XplatUIStructs.cs:
12798 - Added WS_EX styles to WindowStyles enumeration
12800 2004-10-17 22:50 pbartok
12802 * XplatUI.cs, XplatUIDriver.cs:
12803 - Added method for enabling/disabling windows
12804 - Added method for setting window modality
12805 - Added method for setting topmost window
12807 2004-10-17 22:49 pbartok
12809 * ThemeWin32Classic.cs:
12810 - Added ToolTip drawing code
12812 2004-10-17 22:49 pbartok
12815 - Added ToolTip abstracts
12817 2004-10-17 22:47 pbartok
12820 - Fixed Form.ControlCollection to handle owner relations
12821 - Added Owner/OwnedForms handling
12822 - Implemented Z-Ordering for owned forms
12823 - Removed unneeded private overload of ShowDialog
12824 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12826 - Fixed Close(), had wrong default
12827 - Added firing of OnLoad event
12828 - Added some commented out debug code for Ownership handling
12830 2004-10-17 22:16 pbartok
12833 - Fixed/implemented flat list of controls
12835 2004-10-17 22:14 pbartok
12838 - Added code to simulate modal dialogs on Win32
12840 2004-10-17 16:11 jordi
12842 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12845 2004-10-17 13:39 jordi
12847 * MenuAPI.cs: menu drawing fixes
12849 2004-10-15 09:10 ravindra
12851 * StructFormat.cs: General Enum.
12853 2004-10-15 09:09 ravindra
12855 * SizeGripStyle.cs: Enum for Form.
12857 2004-10-15 09:08 ravindra
12859 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12860 in Theme for ListView.
12862 2004-10-15 09:06 ravindra
12864 * ColumnHeader.cs: Flushing some formatting changes.
12866 2004-10-15 09:05 ravindra
12868 * ListViewItem.cs: Implemented GetBounds method and fixed coding
12871 2004-10-15 09:03 ravindra
12873 * ListView.cs: Implemented Paint method and fixed coding style.
12875 2004-10-15 07:34 jordi
12877 * MenuAPI.cs: fix for X11
12879 2004-10-15 07:32 ravindra
12881 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12882 - Renamed Paint() method to Draw() for clarity. Also, moved
12883 DrawImage() to OnPaint().
12885 2004-10-15 07:25 ravindra
12887 * CheckBox.cs, RadioButton.cs:
12888 - Removed Redraw (), we get it from ButtonBase.
12889 - Implemented Paint (), to do class specific painting.
12891 2004-10-15 07:16 ravindra
12894 - Redraw () is not virtual now.
12895 - Added an internal virtual method Paint (), so that
12896 derived classes can do their painting on their own.
12897 - Modified OnPaint () to call Paint ().
12899 2004-10-15 06:43 jordi
12901 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12902 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12904 2004-10-15 00:30 ravindra
12907 - MessageBox on windows does not have min/max buttons.
12908 This change in CreateParams fixes this on Windows. We
12909 still need to implement this windowstyle behavior in
12912 2004-10-14 05:14 ravindra
12915 - Changed Redraw () to do a Refresh () always.
12916 - Fixed the MouseMove event handling when mouse is pressed,
12917 ie drag event handling.
12918 - Replaced the usage of ToolBarButton.Pressed property to
12919 ToolBarButton.pressed internal variable.
12921 2004-10-14 05:10 ravindra
12923 * ToolBarButton.cs:
12924 - Added an internal member 'inside' to handle mouse move
12925 with mouse pressed ie mouse drag event.
12926 - Changed 'Pressed' property to return true only when
12927 'inside' and 'pressed' are both true.
12928 - Some coding style love.
12930 2004-10-14 00:17 ravindra
12932 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12935 2004-10-14 00:15 ravindra
12937 * ButtonBase.cs: Redraw () related improvements.
12939 2004-10-14 00:14 ravindra
12941 * MessageBox.cs: Moved InitFormSize () out of Paint method and
12942 removed unnecessary calls to Button.Show () method.
12944 2004-10-13 17:50 pbartok
12948 - Removed destroying of window until we solve the problem of X
12949 destroying the window before us on shutdown
12951 2004-10-13 16:32 pbartok
12954 - Now Redraws on MouseUp for FlatStyle Flat and Popup
12956 2004-10-13 14:18 pbartok
12959 - Added code to destroy the X window
12961 2004-10-13 14:18 pbartok
12964 - Added code to destroy a window
12966 2004-10-13 14:12 pbartok
12969 - Added the Redraw on Resize that got dropped in the last rev
12971 2004-10-13 09:06 pbartok
12973 * ThemeWin32Classic.cs:
12974 - Path from John BouAntoun:
12975 * Fix check rendering (centre correctly for normal style, offset
12976 correctly for FlatStyle).
12977 * Fix border color usage (use backcolor) for FlatStyle.Popup
12978 * Use checkbox.Capture instead of checkbox.is_pressed when
12979 rendering flatstyle states.
12981 2004-10-12 21:48 pbartok
12983 * ThemeWin32Classic.cs:
12984 - Removed all occurences of SystemColors and replaced them with the
12985 matching theme color
12987 2004-10-12 21:41 pbartok
12989 * ThemeWin32Classic.cs:
12990 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12991 him using the function for flatstyle drawing
12992 - Changed functions to use the new version of CPDrawBorder3D
12994 2004-10-12 21:15 pbartok
12997 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12998 match MS documentation. They need to return defined colors if the
12999 passed color matches the configured control color. Thanks to John
13000 BouAntoun for pointing this out.
13002 2004-10-12 20:57 pbartok
13005 - Fix from John BouAntoun: Raise ForeColorChanged event when text
13008 2004-10-12 20:46 pbartok
13011 - Fix from John BouAntoun: Now properly sets the Appearance property
13013 2004-10-12 20:45 pbartok
13015 * ThemeWin32Classic.cs:
13016 - Fixes from John BouAntoun: now handles forecolors and backcolors
13017 for flatstyle rendered controls much better; It also fixes normal
13018 checkbox rendering when pushed or disabled.
13020 2004-10-08 02:50 jordi
13022 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
13025 2004-10-07 08:56 jordi
13027 * ThemeWin32Classic.cs: Removes deletion of cached brushes
13029 2004-10-06 03:59 jordi
13031 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
13032 XplatUIWin32.cs: removes warnings from compilation
13034 2004-10-05 12:23 jackson
13036 * RadioButton.cs: Fix ctor
13038 2004-10-05 11:10 pbartok
13041 - Partial implementation by Benjamin Dasnois
13043 2004-10-05 10:15 jackson
13045 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
13048 2004-10-05 03:07 ravindra
13051 - Removed a private method, Draw ().
13052 - Fixed the ButtonDropDown event handling.
13053 - Fixed MouseMove event handling.
13055 2004-10-05 03:04 ravindra
13057 * ThemeWin32Classic.cs:
13058 - Added DrawListView method and ListViewDefaultSize property.
13059 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
13060 - Changed DOS style CRLF to Unix format (dos2unix).
13062 2004-10-05 03:03 ravindra
13065 - Added DrawListView method and ListViewDefaultSize property.
13067 2004-10-05 02:42 ravindra
13069 * ToolBarButton.cs: Added an internal member dd_pressed to handle
13070 clicks on DropDown arrow.
13072 2004-10-04 22:56 jackson
13074 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
13075 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
13076 Control handle the buffers, derived classes should not have to
13077 CreateBuffers themselves.
13079 2004-10-04 21:20 jackson
13081 * StatusBar.cs: The control handles resizing the buffers now.
13083 2004-10-04 21:18 jackson
13085 * Control.cs: When resizing the buffers should be invalidated. This
13086 should be handled in Control not in derived classes.
13088 2004-10-04 14:45 jackson
13092 2004-10-04 02:14 pbartok
13094 * LeftRightAlignment.cs:
13097 2004-10-04 01:09 jordi
13099 * ThemeWin32Classic.cs: fixes right button position causing right
13100 button not showing on horizontal scrollbars
13102 2004-10-02 13:12 pbartok
13105 - Simplified the Invalidate method by using an X call instead of
13106 generating the expose ourselves
13107 - Added an expose when the window background is changed
13108 - Implemented ClientToScreen method
13110 2004-10-02 13:08 pbartok
13113 - Added Win32EnableWindow method (test for implementing modal
13115 - Added ClientToScreen method and imports
13117 2004-10-02 13:07 pbartok
13119 * XplatUI.cs, XplatUIDriver.cs:
13120 - Added ClientToScreen coordinate translation method
13122 2004-10-02 13:06 pbartok
13124 * KeyPressEventArgs.cs:
13125 - Fixed access level for constructor
13127 2004-10-02 13:06 pbartok
13130 - Changed access level for the window_collection hash table
13132 2004-10-02 13:05 pbartok
13135 - Added KeyPreview property
13136 - Added Menu property (still incomplete, pending Jordi's menu work)
13137 - Implemented ProcessCmdKey
13138 - Implemented ProcessDialogKey
13139 - Implemented ProcessKeyPreview
13141 2004-10-02 13:02 pbartok
13144 - Added private method to get the Control object from the window
13146 - Implemented ContextMenu property
13147 - Implemented PointToScreen
13148 - Implemented PreProcessMessage
13149 - Implemented IsInputChar
13150 - Implemented IsInputKey
13151 - Implemented ProcessCmdKey
13152 - Completed ProcessKeyEventArgs
13153 - Fixed message loop to call the proper chain of functions on key
13155 - Implemented ProcessDialogChar
13156 - Implemented ProcessDialogKey
13157 - Implemented ProcessKeyMessage
13158 - Implemented ProcessKeyPreview
13159 - Added RaiseDragEvent stub (MS internal method)
13160 - Added RaiseKeyEvent stub (MS internal method)
13161 - Added RaiseMouseEvent stub (MS Internal method)
13162 - Added RaisePaintEvent stub (MS Internal method)
13163 - Added ResetMouseEventArgs stub (MS Internal method)
13164 - Implemented RtlTranslateAlignment
13165 - Implemented RtlTranslateContent
13166 - Implemented RtlTranslateHorizontal
13167 - Implemented RtlTranslateLeftRight
13168 - Added generation of KeyPress event
13170 2004-10-02 05:57 ravindra
13172 * ListViewItem.cs: Added attributes.
13174 2004-10-02 05:32 ravindra
13176 * ListView.cs: Added attributes.
13178 2004-10-01 11:53 jackson
13180 * Form.cs: Implement the Close method so work on MessageBox can
13183 2004-09-30 14:06 pbartok
13188 2004-09-30 11:34 jackson
13190 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
13192 2004-09-30 07:26 ravindra
13194 * ListViewItemConverter.cs: Converter for ListViewItem.
13196 2004-09-30 07:26 ravindra
13198 * SortOrder.cs: Enum for ListView control.
13200 2004-09-30 07:25 ravindra
13202 * ColumnHeader.cs: Supporting class for ListView control.
13204 2004-09-30 07:24 ravindra
13206 * ListView.cs, ListViewItem.cs: Initial implementation.
13208 2004-09-30 07:20 ravindra
13210 * ItemActivation.cs: Enum for ListView Control.
13212 2004-09-29 20:29 pbartok
13215 - Added lookup of pixel value for background color; tries to get a
13216 color 'close' to the requested color, it avoids having to create a
13217 colormap. Depending on the display this could mean the used color
13218 is slightly off the desired color. Might have to change it to a more
13219 resource intensive colormap approach, but it will work as a
13220 workaround to avoid red screens.
13222 2004-09-29 14:27 jackson
13224 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
13226 2004-09-28 12:44 pbartok
13228 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
13229 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
13230 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
13231 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
13232 TrackBar.cs, VScrollBar.cs:
13233 - Streamlined Theme interfaces:
13234 * Each DrawXXX method for a control now is passed the object for
13235 the control to be drawn in order to allow accessing any state the
13236 theme might require
13238 * ControlPaint methods for the theme now have a CP prefix to avoid
13239 name clashes with the Draw methods for controls
13241 * Every control now retrieves it's DefaultSize from the current
13244 2004-09-28 12:17 jackson
13246 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
13249 2004-09-24 14:57 jackson
13251 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
13252 Gives us a nice little performance boost.
13254 2004-09-24 12:02 jackson
13256 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
13257 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
13258 Control and supporting classes. Initial checkin
13260 2004-09-23 13:08 jackson
13262 * Form.cs: Temp build fixage
13264 2004-09-23 01:39 ravindra
13266 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
13267 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
13268 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
13269 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
13270 EventHandlers needed by ListView Control.
13272 2004-09-22 14:12 pbartok
13274 * ScrollableControl.cs:
13275 - Implemented DockPadding property
13276 - Implemented AutoScroll property
13277 - Implemented AutoScrollMargin property
13278 - Implemented AutoScrollMinSize property
13279 - Implemented AutoScrollPosition property
13280 - Implemented DisplayRectangle property (still incomplete)
13281 - Implemented CreateParams property
13282 - Implemented HScroll property
13283 - Implemented VScroll property
13284 - Implemented OnVisibleChanged property
13286 2004-09-22 14:09 pbartok
13289 - Added Form.ControllCollection class
13290 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
13291 RemoveOwnedForm (still incomplete, missing on-top and common
13292 minimize/maximize behaviour)
13293 - Added StartPosition property (still incomplete, does not use when
13295 - Added ShowDialog() methods (still incomplete, missing forcing the
13298 2004-09-22 14:05 pbartok
13301 - Added message loop for modal dialogs
13303 2004-09-22 14:02 pbartok
13306 - Fixed wrong types for events
13308 2004-09-22 14:00 pbartok
13310 * Shortcut.cs, FormWindowState.cs:
13311 - Fixed wrong values
13313 2004-09-22 12:01 jackson
13315 * Control.cs: Text is never null
13317 2004-09-20 22:14 pbartok
13320 - Fixed accessibility level for Idle handler
13322 2004-09-20 18:54 jackson
13324 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13325 XplatUIX11.cs: New message loop that uses poll so we don't get a
13328 2004-09-17 10:43 pbartok
13331 - Fixed behaviour of arrow buttons. Now properly behaves like
13332 Buttons (and like Microsoft's scrollbar arrow buttons)
13334 2004-09-17 10:14 pbartok
13337 - Added missing release of keyboard/mouse capture
13339 2004-09-17 06:18 jordi
13341 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
13342 Theme.cs: Very early menu support
13344 2004-09-16 17:45 pbartok
13347 - Fixed sending a window to the front
13348 - Added overload for SetWindowPos to avoid casting
13350 2004-09-16 17:44 pbartok
13353 - Added SendToBack and BringToFront methods
13355 2004-09-16 07:00 ravindra
13357 * Copyright: Added Novell URL.
13359 2004-09-16 07:00 ravindra
13361 * ToolBar.cs: Invalidate should be done before redrawing.
13363 2004-09-15 21:19 ravindra
13365 * ColumnHeaderStyle.cs: Enum for ListView Control.
13367 2004-09-15 21:18 ravindra
13369 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13372 2004-09-13 18:26 jackson
13374 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13377 2004-09-13 18:13 jackson
13379 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13380 a second thread and post messages into the main threads message
13381 queue. This makes timing much more consistent. Both win2K and XP
13382 have a minimum timer value of 15 milliseconds, so we now do this
13385 2004-09-13 15:18 pbartok
13387 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13389 - Added Z-Ordering methods
13391 2004-09-13 10:56 pbartok
13394 - Fixed #region names
13395 - Moved properties and methods into their proper #regions
13397 2004-09-13 10:51 pbartok
13400 - Added Accept and CancelButton properties
13401 - Added ProcessDialogKey() method
13403 2004-09-13 08:18 pbartok
13405 * IWindowTarget.cs:
13408 2004-09-10 21:50 pbartok
13411 - Added DoDragDrop() [incomplete]
13412 - Properly implemented 'Visible' handling
13413 - Added SetVisibleCore()
13414 - Implemented FindChildAtPoint()
13415 - Implemented GetContainerControl()
13416 - Implemented Hide()
13418 2004-09-10 19:28 pbartok
13421 - Moved methods into their appropriate #regions
13422 - Reordered methods within regions alphabetically
13424 2004-09-10 18:57 pbartok
13426 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13427 - Added method to retrieve text from window
13429 2004-09-10 18:56 pbartok
13432 - Moved some internal functions into the internal region
13433 - Implemented FontHeight
13434 - Implemented RenderRightToLeft
13435 - Implemented ResizeRedraw
13436 - Implemented ShowFocusCues
13437 - Implemented ShowKeyboardCues
13438 - Implemented FromChildHandle
13439 - Implemented FromHandle
13440 - Implemented IsMnemonic
13441 - Implemented ReflectMessage
13442 - All public and protected Static Methods are now complete
13444 2004-09-10 16:54 pbartok
13447 - Implemented remaining missing public instance properties
13448 - Alphabetized some out of order properties
13450 2004-09-10 05:51 ravindra
13452 * PictureBox.cs: Added a check for null image.
13454 2004-09-10 00:59 jordi
13456 * GroupBox.cs: remove cvs tag
13458 2004-09-09 05:25 ravindra
13460 * ToolBar.cs: Make redraw accessible from ToolBarButton.
13462 2004-09-09 05:23 ravindra
13464 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13467 2004-09-09 02:28 pbartok
13469 * ThemeWin32Classic.cs:
13470 - Improve disabled string look
13472 2004-09-09 01:15 jordi
13474 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13477 2004-09-08 23:56 ravindra
13479 * ItemBoundsPortion.cs: It's enum, not a class!
13481 2004-09-08 23:47 ravindra
13483 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13486 2004-09-08 21:13 ravindra
13488 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13491 2004-09-08 21:03 ravindra
13493 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13496 2004-09-08 21:01 ravindra
13498 * ScrollableControl.cs: Removed unreachable code.
13500 2004-09-08 06:45 jordi
13502 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13504 2004-09-08 01:00 jackson
13506 * XplatUIX11.cs: Only run the timers when updating the message
13507 queue. This effectively gives X messages a higher priority then
13508 timer messages. Timers still need love though
13510 2004-09-07 14:01 jackson
13512 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13513 this for us and the handle is no longer valid.
13515 2004-09-07 13:59 jackson
13517 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13518 loop that manages to not crash. TODO: Add poll and cleanup timers
13520 2004-09-07 11:12 jordi
13522 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13524 2004-09-07 03:40 jordi
13526 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13527 fixes, methods, multiple links
13529 2004-09-06 06:55 jordi
13531 * Control.cs: Caches ClientRectangle rectangle value
13533 2004-09-05 02:03 jordi
13535 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13538 2004-09-04 11:10 jordi
13540 * Label.cs: Refresh when font changed
13542 2004-09-02 16:24 pbartok
13545 - Added sanity check to creation of double buffer bitmap
13547 2004-09-02 16:24 pbartok
13550 - Fixed selection of text color
13551 - Fixed handling of resize event; now properly recreates double
13553 - Added missing assignment of TextAlignment
13554 - Added proper default for TextAlignment
13556 2004-09-02 14:26 pbartok
13559 - Added missing RadioButton.RadioButtonAccessibleObject class
13561 2004-09-02 14:26 pbartok
13564 - Added missing Control.ControlAccessibleObject class
13565 - Started to implement Select()ion mechanisms, still very incomplete
13567 2004-09-02 14:25 pbartok
13569 * AccessibleObject.cs:
13570 - Added missing methods
13572 2004-09-02 14:23 pbartok
13574 * AccessibleNavigation.cs, AccessibleSelection.cs:
13577 2004-09-02 10:32 jordi
13579 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13580 pool for pens, brushes, and hatchbruses
13582 2004-09-01 15:30 jackson
13584 * StatusBar.cs: Fix typo
13586 2004-09-01 14:44 pbartok
13591 2004-09-01 14:39 pbartok
13593 * Button.cs, RadioButton.cs:
13594 - Functional initial check-in
13596 2004-09-01 14:01 pbartok
13599 - Added missing default
13600 - Added missing region mark
13602 2004-09-01 09:10 jordi
13604 * Label.cs: fixes method signatures, new methods, events, fixes
13607 2004-09-01 07:19 jordi
13609 * Control.cs: Init string variables with an empty object
13611 2004-09-01 04:20 jordi
13613 * Control.cs: fires OnFontChanged event
13615 2004-08-31 20:07 pbartok
13618 - Enabled display of strings
13620 2004-08-31 20:05 pbartok
13623 - Added (partial) implementation of DialogResult; rest needs to be
13624 implemented when the modal loop code is done
13626 2004-08-31 19:55 pbartok
13629 - Fixed to match the removal of the needs_redraw concept
13631 2004-08-31 19:55 pbartok
13634 - Removed the rather odd split between 'needs redraw' and redrawing
13635 - Now handles the events that require regeneration (ambient
13636 properties and size)
13638 2004-08-31 19:41 pbartok
13641 - Added firing of BackColorChanged event
13642 - Added TopLevelControl property
13643 - Fixed handling of WM_ERASEBKGRND message
13645 2004-08-31 12:49 pbartok
13651 2004-08-31 12:48 pbartok
13654 - Finished (famous last words)
13656 2004-08-31 04:35 jordi
13658 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13659 scrolling bugs, adds new methods
13661 2004-08-30 14:42 pbartok
13664 - Implemented CheckBox drawing code
13666 2004-08-30 14:42 pbartok
13669 - Made Redraw() and CheckRedraw() virtual
13670 - Improved mouse up/down/move logic to properly track buttons
13672 2004-08-30 09:44 pbartok
13675 - Updated to fix broken build. Not complete yet.
13677 2004-08-30 09:28 pbartok
13682 2004-08-30 09:17 pbartok
13687 2004-08-27 16:12 ravindra
13689 * ToolBarButton.cs: Added TypeConverter attribute.
13691 2004-08-27 16:07 ravindra
13693 * ImageIndexConverter.cs: Implemented.
13695 2004-08-27 14:17 pbartok
13698 - Removed unneeded stack vars
13699 - First attempt to fix sizing issues when layout is suspended
13701 2004-08-25 15:35 jordi
13703 * ScrollBar.cs: more fixes to scrollbar
13705 2004-08-25 14:04 ravindra
13707 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13708 Added the missing divider code and grip for ToolBar Control.
13710 2004-08-25 13:20 pbartok
13713 - Control now properly passes the ambient background color to child
13716 2004-08-25 13:20 jordi
13718 * ScrollBar.cs: small bug fix regarding bar position
13720 2004-08-25 12:33 pbartok
13723 - Now only calls SetTimer or KillTimer if the enabled state has
13726 2004-08-25 12:33 pbartok
13729 - Fixed timer handling, now seems to work
13730 - Improved error message for window creation
13732 2004-08-25 12:32 pbartok
13735 - Fixed generation of MouseUp message
13737 2004-08-25 12:29 jordi
13739 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13740 and fixes for progressbar
13742 2004-08-24 18:43 ravindra
13744 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13745 in ToolBar control.
13747 2004-08-24 17:15 pbartok
13751 - Added missing events
13754 2004-08-24 17:14 pbartok
13756 * StatusBar.cs, PictureBox.cs:
13757 - Now uses Control's CreateParams
13759 2004-08-24 16:36 pbartok
13762 - Fixed background color handling
13763 - Fixed sending of enter/leave events on a grab
13765 2004-08-24 16:35 pbartok
13768 - Refined definitions for CrossingEvent
13770 2004-08-24 12:37 jordi
13772 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13773 formmating, methods signature, and adds missing events
13775 2004-08-24 12:24 jordi
13777 * Control.cs: fire OnEnabledChanged event
13779 2004-08-24 11:17 pbartok
13782 - Implemented SetTimer() and KillTimer()
13784 2004-08-24 11:16 pbartok
13787 - Now uses Remove instead of Add to kill the timer
13789 2004-08-24 10:16 jackson
13791 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13792 picture boxes in the theme now. Draw picture box borders and obey
13795 2004-08-24 05:49 jackson
13797 * Timer.cs: Remove top secret debugging code
13799 2004-08-24 05:34 jackson
13801 * PictureBox.cs: Temp hack to make picture boxes draw their full
13804 2004-08-24 05:29 jackson
13806 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13807 XplatUIX11.cs: Move timers to the driver level. On X they are
13808 queued by the driver and checked on idle.
13810 2004-08-24 01:07 jackson
13812 * XplatUIX11.cs: Use a queue for async messages instead of passing
13813 them as ClientMessages since that was totally broken. Also simply
13814 check for events and return an idle message if none are found. This
13815 gives us an idle handler, and prevents deadlocking when no messages
13818 2004-08-23 18:19 ravindra
13820 * XplatUIWin32.cs: Removed the unwanted destructor.
13822 2004-08-23 17:27 pbartok
13825 - Finishing touches. Works now, just needs some optimizations.
13827 2004-08-23 16:53 jordi
13829 * ScrollBar.cs: small fix
13831 2004-08-23 16:45 pbartok
13834 - Removed debug output
13837 2004-08-23 16:43 jordi
13839 * ScrollBar.cs: [no log message]
13841 2004-08-23 16:10 pbartok
13844 - Fixed handling of WM_CLOSE message
13845 - Removed debug output
13847 2004-08-23 16:09 pbartok
13850 - Added handling of Idle event
13851 - Added handling of form closing
13852 - Fixed reporting of MessageLoop property
13853 - Removed some unneeded code, should provide a bit of a speedup
13855 2004-08-23 15:22 pbartok
13858 - Added InitLayout() method
13859 - Added code to properly perform layout when Anchor or Dock property
13861 - Changed 'interpretation' of ResumeLayout. MS seems to have a
13862 LAMESPEC, tried to do it in a way that makes sense
13864 2004-08-23 14:10 jordi
13866 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13867 properties and methods
13869 2004-08-23 13:55 pbartok
13872 - Properly fixed Jordi's last fix
13873 - Now uses Cursor's Position property instead of calling XplatUI
13876 2004-08-23 13:44 jordi
13878 * PaintEventHandler.cs: Adding missing attribute
13880 2004-08-23 13:39 pbartok
13883 - Implemented Position property
13885 2004-08-23 13:39 pbartok
13887 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13888 - Added method to move mouse cursor
13890 2004-08-23 13:39 pbartok
13893 - Fixed setting of background color
13894 - Added method to move mouse cursor
13896 2004-08-23 13:16 jordi
13898 * Control.cs: avoids null exception
13900 2004-08-22 17:46 jackson
13902 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13905 2004-08-22 17:40 jackson
13907 * XplatUIX11.cs: Add some missing locks
13909 2004-08-22 15:10 pbartok
13911 * Control.cs, Form.cs:
13912 - Removed OverlappedWindow style from Control, instead it's default
13914 - Made form windows OverlappedWindow by default
13916 2004-08-22 13:34 jackson
13918 * ScrollBar.cs: Update the position through the Value property so
13919 the OnValueChanged event is raised.
13921 2004-08-22 12:04 pbartok
13924 - Added Cursor.cs and UserControl.cs
13926 2004-08-22 12:03 pbartok
13929 - Started implementation, not usable yet
13931 2004-08-22 12:00 pbartok
13934 - Implemented UserControl (complete)
13936 2004-08-21 19:20 ravindra
13938 * ToolBar.cs: Correcting the formatting mess of VS.NET.
13940 2004-08-21 18:49 ravindra
13942 * ToolBar.cs: Probably this completes the missing attributes in
13945 2004-08-21 18:03 ravindra
13947 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13948 Fixed toolbar control signatures.
13950 2004-08-21 16:32 pbartok
13955 2004-08-21 16:30 pbartok
13960 2004-08-21 16:19 pbartok
13962 * Control.cs, Label.cs:
13965 2004-08-21 15:57 pbartok
13968 - Added loads of debug output for development
13969 - Fixed typo in method name
13971 2004-08-21 15:52 pbartok
13973 * ToolBarButtonClickEventArgs.cs:
13974 - Added missing base class
13976 2004-08-21 14:53 pbartok
13979 - Updated to match new GrabWindow signature
13981 2004-08-21 14:51 pbartok
13983 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13984 - Added method to get default display size
13986 2004-08-21 14:23 pbartok
13988 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13989 - Added method to query current grab state
13990 - Added argument to allow confining a grab to a window
13992 2004-08-21 14:22 pbartok
13995 - Added [Flags] attribute so that modifiers can be used in bitwise
13998 2004-08-21 14:21 pbartok
14000 * TrackBar.cs, ScrollBar.cs:
14001 - Replaced direct XplatUI calls with their Control counterpart
14003 2004-08-21 13:32 pbartok
14006 - Implemented Created property
14008 2004-08-21 13:28 pbartok
14011 - Implemented ContainsFocus
14013 2004-08-21 13:26 pbartok
14016 - Implemented CausesValidation
14018 2004-08-21 13:21 pbartok
14021 - Implemented CanFocus
14022 - Implemented CanSelect
14023 - Implemented Capture
14025 2004-08-21 12:35 pbartok
14028 - Fixed bug with Async message handling
14029 - Implemented getting the ModifierKeys
14031 2004-08-21 12:32 jackson
14033 * AsyncMethodResult.cs: Make sure we have the mutex before we
14034 release it. Fixes BeginInvoke on windows
14036 2004-08-21 11:31 pbartok
14038 * XplatUIWin32.cs, XplatUIX11.cs:
14039 - Drivers now return proper mouse state
14041 2004-08-21 10:54 jackson
14043 * Control.cs: Implement EndInvoke
14045 2004-08-21 10:48 jackson
14047 * Timer.cs: Remove unneeded finalizer
14049 2004-08-20 19:52 ravindra
14051 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
14052 in mouse event handling in the ToolBar control.
14054 2004-08-20 19:50 ravindra
14056 * ImageList.cs: Changed draw method to use the arguments passed in
14059 2004-08-20 18:58 pbartok
14061 * XplatUIStructs.cs:
14062 - Added private message for async communication
14064 2004-08-20 17:38 ravindra
14066 * Control.cs: Made RightToLeft property virtual and removed a
14069 2004-08-20 14:39 jordi
14071 * ThemeGtk.cs: use style_attach
14073 2004-08-20 14:39 pbartok
14076 - Added jackson's Async code from X11 to Win32
14078 2004-08-20 14:09 pbartok
14081 - Added all new files
14083 2004-08-20 14:09 pbartok
14086 - Added call to set window background color
14088 2004-08-20 14:03 pbartok
14090 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14091 - Added method for setting the window background
14093 2004-08-20 14:02 pbartok
14096 - Added method for setting the background color
14097 - Added handling for erasing the window background
14099 2004-08-20 13:45 jordi
14101 * TrackBar.cs: fixes timer, new properties and methods
14103 2004-08-20 13:34 jackson
14105 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
14108 2004-08-20 13:22 jackson
14110 * Timer.cs: Timer Tick events are now handed through Controls Async
14111 mechanism so the callbacks are executed in the same thread as X
14113 2004-08-20 13:19 jackson
14115 * XplatUIDriver.cs: Expose functionality to send async messages
14118 2004-08-20 13:18 jackson
14120 * Control.cs: Implement Begininvoke
14122 2004-08-20 13:14 jackson
14124 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
14125 messages through the driver
14127 2004-08-20 13:12 jackson
14129 * XplatUIX11.cs: Lock before all X operations. Also added Async
14130 method functionality through XSendEvent
14132 2004-08-20 13:11 jackson
14134 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
14135 This will screw up on 64 bit systems)
14137 2004-08-20 13:10 jackson
14139 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
14140 Async messages through X/Win32
14142 2004-08-19 19:39 pbartok
14145 - Updated code to match new HandleData.DeviceContext type
14147 2004-08-19 19:38 pbartok
14150 - Made DeviceContext a generic object to allow usage from various
14152 - Added support for queueing Windows messages
14154 2004-08-19 19:37 pbartok
14157 - Added generation of MouseEnter, MouseLeave and MouseHover events
14158 - Added cleanup on EndPaint
14160 2004-08-19 19:17 pbartok
14163 - Added handling of WM_MOUSEHOVER
14164 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
14167 2004-08-19 18:55 jordi
14169 * ThemeGtk.cs: fixes button order
14171 2004-08-19 18:12 jordi
14173 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
14175 2004-08-19 17:09 pbartok
14178 - Added Right property
14179 - Added RightToLeft property
14181 2004-08-19 16:27 jordi
14183 * ThemeGtk.cs: experimental GTK theme support
14185 2004-08-19 16:26 jordi
14187 * ITheme.cs, Theme.cs: move themes from an interface to a class
14189 2004-08-19 16:25 jordi
14191 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
14194 2004-08-19 16:04 pbartok
14197 - Added colormap basics
14198 - Added a way to re-initialize with a different display handle
14199 - Fixed setting of the window background color
14200 - Added various X11 imports related to colors and colormaps
14202 2004-08-19 15:51 pbartok
14205 - Removed packing hints (Paolo suggested this a while back)
14206 - fixed colormap type
14207 - Added default Atom types
14208 - Added Screen and color structs and enums
14210 2004-08-19 15:39 pbartok
14213 - Added missing Draw() method
14214 - Added missing RecreateHandle event
14216 2004-08-19 15:30 pbartok
14219 - Added handling of WM_CLOSE
14221 2004-08-18 13:16 jordi
14223 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
14226 2004-08-18 09:56 jordi
14228 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
14230 2004-08-17 15:31 ravindra
14232 * SWF.csproj: Updated project.
14234 2004-08-17 15:25 pbartok
14237 - Drawing improvement; don't call UpdateBounds if we are not visible
14238 (or have been minimized)
14240 2004-08-17 15:24 pbartok
14243 - Finished IsVisible
14244 - Added Win32GetWindowPlacement
14246 2004-08-17 15:08 jackson
14248 * Panel.cs: Initial checkin of the Panel
14250 2004-08-17 14:25 pbartok
14253 - Fixed broken handling of default window sizes
14255 2004-08-17 13:29 jackson
14257 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
14258 has a large startup time.
14260 2004-08-17 10:25 jackson
14262 * HandleData.cs: union areas properly
14264 2004-08-17 10:12 jackson
14266 * HandleData.cs: union areas properly
14268 2004-08-16 20:00 ravindra
14270 * ToolBar.cs, ToolBarButton.cs: Added attributes.
14272 2004-08-16 18:48 ravindra
14274 * ToolBar.cs: Added attributes.
14276 2004-08-16 17:17 ravindra
14278 * SWF.csproj: Updated project.
14280 2004-08-16 17:16 jackson
14282 * XplatUIX11.cs: Check for more expose events before sending a
14283 WM_PAINT so they can all be grouped together. This makes dragging a
14284 window across another window redraw in a sane way.
14286 2004-08-16 15:47 pbartok
14289 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
14290 support OnMouseEnter/Leave()
14291 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
14294 2004-08-16 15:46 pbartok
14296 * XplatUIStructs.cs, XplatUIX11.cs:
14297 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
14298 OnMouseEnter/Leave()
14300 2004-08-16 15:34 jackson
14302 * XplatUIX11.cs: Group multiple expose events in HandleData, make
14303 sure messages get the message field set to WM_NULL if they are not
14306 2004-08-16 15:24 jackson
14308 * HandleData.cs: HandleData is used for storing message information
14311 2004-08-15 17:23 ravindra
14313 * ColorDepth.cs: Added attribute.
14315 2004-08-15 17:23 ravindra
14317 * SWF.csproj: Updated project for ToolBar Control.
14319 2004-08-15 17:20 ravindra
14321 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
14322 control and also dos2unix format.
14324 2004-08-15 17:13 ravindra
14326 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
14327 ToolBarButtonClickEventArgs.cs,
14328 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
14329 ToolBarTextAlign.cs: First Implementation of ToolBar control.
14331 2004-08-15 15:31 pbartok
14334 - First (mostly) working version
14336 2004-08-13 16:15 pbartok
14339 - Fixed Anchor default
14341 2004-08-13 15:43 pbartok
14344 - Changed GetCursorPos signature
14346 2004-08-13 15:42 pbartok
14348 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14349 - Changed signature for GetCursorPos
14351 2004-08-13 15:25 pbartok
14355 - Fixed resizing/exposure handling
14357 2004-08-13 15:22 jordi
14359 * ThemeWin32Classic.cs: removes redundant code and fixes issues
14362 2004-08-13 14:55 jordi
14364 * TrackBar.cs: change from wndproc to events
14366 2004-08-13 13:00 jordi
14368 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14369 XplatUIX11.cs: implements PointToClient (ScreenToClient)
14371 2004-08-13 12:53 pbartok
14374 - Changed GetWindowPos to also provide client area size
14375 - Fixed broken prototypes for several win32 functions
14377 2004-08-13 12:53 pbartok
14379 * XplatUI.cs, XplatUIDriver.cs:
14380 - Changed GetWindowPos to also provide client area size
14382 2004-08-13 12:52 pbartok
14385 - Added generation of WM_POSCHANGED
14386 - Changed GetWindowPos to also provide client area size
14388 2004-08-13 12:52 pbartok
14391 - Added Dispose() and destructor
14392 - Fixed resizing and bounds calculation
14394 - Added memory savings for invisible windows
14396 2004-08-13 12:46 jordi
14398 * TrackBar.cs: adds timer and grap window
14400 2004-08-13 10:25 jackson
14402 * Timer.cs: SWF Timer
14404 2004-08-12 16:59 pbartok
14406 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14407 - Implemented method to get current mouse position
14409 2004-08-12 14:29 jordi
14411 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14412 enhancement, fix mouse problems, highli thumb, etc
14414 2004-08-12 13:31 pbartok
14417 - Fixed Anchoring bugs
14419 2004-08-12 13:01 jackson
14421 * StatusBar.cs: Don't forget things
14423 2004-08-12 12:54 jackson
14425 * ThemeWin32Classic.cs: Handle owner draw status bars
14427 2004-08-12 12:54 jackson
14429 * StatusBar.cs: Implement missing properties, events, and methods.
14430 Handle mouse clicking
14432 2004-08-12 10:19 jackson
14434 * StatusBarPanelClickEventArgs.cs,
14435 StatusBarPanelClickEventHandler.cs: Classes for handling status
14436 bar panel click events
14438 2004-08-12 10:10 jackson
14440 * Control.cs: Add missing properties
14442 2004-08-12 09:46 pbartok
14444 * BindingsManagerBase.cs:
14445 - Name changed to BindingManagerBase.cs
14447 2004-08-12 09:25 jordi
14449 * ScrollableControl.cs: calls ctrlbase instead of exeception
14451 2004-08-11 16:28 pbartok
14453 * InputLanguageChangingEventArgs.cs:
14454 - Never check in before compiling. Fixes the last check-in
14456 2004-08-11 16:26 pbartok
14458 * InputLanguageChangingEventArgs.cs:
14459 - More signature fixes
14461 2004-08-11 16:20 pbartok
14463 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14464 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14465 ImageListStreamer.cs, InputLanguage.cs,
14466 InputLanguageChangedEventArgs.cs,
14467 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14468 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14469 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14470 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14473 2004-08-11 16:16 pbartok
14477 - Added .Net 1.1 method
14479 2004-08-11 15:25 pbartok
14482 - Fixed BindingManagerBase.cs filename
14484 2004-08-11 15:22 pbartok
14486 * BindingManagerBase.cs:
14487 - Was checked in with wrong filename
14489 2004-08-11 14:50 pbartok
14494 2004-08-11 13:41 jordi
14496 * XplatUIWin32.cs: Fixes ClientRect
14498 2004-08-11 13:19 pbartok
14500 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14502 - We had SetWindowPos and MoveWindow to set window positions and
14503 size, removed MoveWindow. We have GetWindowPos, so it made sense to
14504 keep SetWindowPos as matching counterpart
14505 - Added some X11 sanity checking
14507 2004-08-11 12:59 pbartok
14510 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14511 (It seems that SetBounds is just a front for SetBoundsCore and
14512 SetBoundsCore updates the underlying window system and
14513 UpdateBounds is responsible for updating the variables associated
14514 with the Control and sending the events)
14515 - Major cleanup of Size handling; we now have two sizes, client_size
14516 and bounds. Bounds defines the window with decorations, client_size
14519 2004-08-11 12:55 pbartok
14521 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14522 - Added method to calculate difference between decorated window and
14525 2004-08-11 12:54 pbartok
14528 - Forcing redraw on resize
14530 2004-08-11 11:43 pbartok
14533 - Removed disposing of the actual images when the list is disposed
14535 2004-08-11 09:13 pbartok
14538 - Now properly reparents windows
14540 2004-08-11 08:37 pbartok
14545 2004-08-11 07:47 pbartok
14548 - Rewrote the collection stuff. Might not be as fast now, not
14549 keeping the number of children around and accessible directly, but
14550 it's more straightforward
14552 2004-08-11 07:44 pbartok
14554 * AccessibleObject.cs:
14555 - Fixed to match ControlCollection rewrite
14557 2004-08-11 07:43 pbartok
14560 - Added missing creation of the collection list
14562 2004-08-10 20:08 jackson
14564 * StatusBar.cs: Get the paint message from WndProc
14566 2004-08-10 19:31 jackson
14568 * ThemeWin32Classic.cs: Create Brushes as little as possible
14570 2004-08-10 19:20 jackson
14572 * UICues.cs: Add Flags attribute
14574 2004-08-10 19:19 jackson
14576 * StatusBarPanel.cs: Signature cleanup
14578 2004-08-10 19:10 jackson
14580 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14581 Initial implementation of status bar item drawing
14583 2004-08-10 17:27 jordi
14585 * TrackBar.cs: add missing methods, properties, and restructure to
14588 2004-08-10 16:24 jackson
14590 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14591 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14594 2004-08-10 13:21 jordi
14596 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14597 enhancements and standarize on win colors defaults
14599 2004-08-10 12:52 jackson
14601 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14602 ThemeWin32Classic.cs: Implement DrawItem functionality
14604 2004-08-10 12:47 jordi
14606 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14608 2004-08-10 12:32 jordi
14610 * Control.cs: throw ontextchange event
14612 2004-08-10 11:43 pbartok
14615 - Added more to the still unfinished Dock/Anchor layout code
14617 2004-08-10 11:39 pbartok
14619 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14620 - Added GetWindowPos method
14622 2004-08-10 11:36 pbartok
14625 - Implemented several methods
14627 2004-08-10 09:47 jackson
14629 * TrackBar.cs: Allow control to handle buffering
14631 2004-08-10 09:41 jackson
14633 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14635 2004-08-10 09:24 jackson
14637 * Label.cs, LinkLabel.cs: Let Control handle buffering.
14639 2004-08-10 09:09 jackson
14641 * StatusBar.cs: Let Control handle all the buffering.
14643 2004-08-10 09:08 jackson
14645 * Control.cs: Control will now handle the buffering code, so each
14646 control does not have to implement this.
14648 2004-08-10 08:34 jackson
14650 * XplatUIDriver.cs: Use default colors from the theme
14652 2004-08-09 17:12 pbartok
14655 - Fixed several bugs Ravindra pointed out
14657 2004-08-09 16:11 pbartok
14660 - Added incomplete dock layout code
14661 - Added support for mouse wheel
14663 2004-08-09 16:09 pbartok
14666 - Added handling for middle and right mousebutton
14667 - Added handling for mouse wheel
14668 - Added handling for key state and mouse state and position
14669 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14672 2004-08-09 15:40 jackson
14674 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14675 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14678 2004-08-09 15:37 jackson
14680 * StatusBar.cs: Initial implementation of StatusBar
14682 2004-08-09 15:36 jackson
14684 * ITheme.cs: Add support for drawing status bar and getting status
14687 2004-08-09 15:35 pbartok
14692 2004-08-09 15:34 jackson
14694 * ThemeWin32Classic.cs: Add support for drawing status bar and get
14695 status bar item sizes
14697 2004-08-09 15:21 jackson
14699 * ThemeWin32Classic.cs: Use known colors for default control
14702 2004-08-09 15:12 jackson
14704 * ThemeWin32Classic.cs: Make the default font static, it is static
14705 in control so this doesn't change functionality and creating fonts
14708 2004-08-09 14:56 pbartok
14711 - Added GrabMode enum
14713 2004-08-09 14:55 pbartok
14715 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14716 - Removed Run method, was only required for initial development
14718 2004-08-09 14:51 pbartok
14720 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14721 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14724 2004-08-09 13:48 pbartok
14727 - Fixed default sizing for child windows
14729 2004-08-09 12:56 pbartok
14732 - Added generation of WM_DESTROY message
14733 - Added handling of window manager induced shutdown
14735 2004-08-09 11:31 jackson
14737 * ThemeWin32Classic.cs: New names for control properties
14739 2004-08-09 11:25 jackson
14741 * Control.cs: Use new color names
14743 2004-08-09 11:02 jackson
14745 * XplatUI.cs: Get default window properties from the theme
14747 2004-08-09 11:01 jackson
14749 * ITheme.cs: The theme engine now controls default window
14752 2004-08-09 11:00 jackson
14754 * ThemeWin32Classic.cs: Add default window color properties
14756 2004-08-09 10:17 jackson
14758 * ThemeWin32Classic.cs: Use correct default back color
14760 2004-08-09 10:05 jackson
14762 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14765 2004-08-09 09:56 jackson
14767 * XplatUI.cs: Remove defaults, these are handled by the theme now.
14769 2004-08-09 09:54 jackson
14771 * Control.cs: Get default properties from the theme.
14773 2004-08-09 09:53 jackson
14775 * ITheme.cs: Themes now handle default control properties
14777 2004-08-09 09:53 jackson
14779 * ThemeWin32Classic.cs: Themes now handle default control
14780 properties so coloring will be consistent
14782 2004-08-08 16:54 jordi
14784 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14786 2004-08-08 15:08 jordi
14788 * XplatUIX11.cs: fixes keyboard crash
14790 2004-08-08 13:47 jordi
14792 * Label.cs: add cvs header info
14794 2004-08-08 12:09 jackson
14796 * ThemeWin32Classic.cs: Add pen_buttonface
14798 2004-08-08 11:52 jordi
14800 * Label.cs, LinkLabel.cs: [no log message]
14802 2004-08-08 11:34 jordi
14804 * ThemeWin32Classic.cs: Use Windows Standard Colours
14806 2004-08-07 17:32 jordi
14808 * TrackBar.cs: throw exceptions of invalid enums values
14810 2004-08-07 17:31 jordi
14812 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14815 2004-08-07 16:56 jackson
14817 * HorizontalAlignment.cs: Initial checkin
14819 2004-08-07 13:16 jordi
14821 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14824 2004-08-07 13:05 jordi
14826 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14827 GetSysColor defines
14829 2004-08-06 18:01 pbartok
14831 * ThemeWin32Classic.cs:
14832 - Fixed some rounding issues with float/int
14834 2004-08-06 18:00 jackson
14836 * DockStyle.cs, AnchorStyles.cs:
14838 Add flags and serializable attributes.
14840 2004-08-06 17:46 pbartok
14843 - Implemented GetParent
14845 2004-08-06 17:18 pbartok
14848 - Fixed some rounding issues with float/int
14850 2004-08-06 17:17 pbartok
14852 * X11Structs.cs, XplatUIX11.cs:
14853 - Fixed Refresh and Invalidate
14855 2004-08-06 15:30 pbartok
14857 * Control.cs, X11Structs.cs, XplatUIX11.cs:
14858 - Fixed recursive loop when resizing
14859 - Improved/fixed redrawing on expose messages
14861 2004-08-06 09:53 jordi
14863 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14864 keyboard navigation
14866 2004-08-06 08:02 pbartok
14868 * X11Structs.cs, XplatUIX11.cs:
14869 - Fixed reparenting
14870 - Fixed window border creation
14872 2004-08-05 15:38 pbartok
14875 - Attempted fix for reparenting problems
14877 2004-08-04 15:14 pbartok
14880 - Fixed Invalidation bug (calculated wrong client area)
14881 - Added ClientSize setter
14883 2004-08-04 15:13 pbartok
14886 - Added AutoScale properties
14888 2004-08-04 15:13 pbartok
14891 - Added latest files
14893 2004-08-04 14:11 pbartok
14895 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14897 - Added Invalidate handling
14899 2004-08-03 17:09 jordi
14901 * XplatUIDriver.cs: fixes spelling mistake
14903 2004-07-27 09:53 jordi
14905 * TrackBar.cs: fixes trackbar events, def classname, methods
14908 2004-07-27 09:29 jordi
14910 * ScrollBar.cs: fixes scrollbar events
14912 2004-07-27 04:38 jordi
14914 * Control.cs: changes to be able to run winforms samples
14916 2004-07-26 11:42 jordi
14918 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14919 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14921 2004-07-26 05:41 jordi
14923 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14924 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14927 2004-07-22 09:22 jordi
14929 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14930 check link overlapping, implement events, and fixes
14932 2004-07-21 10:28 jordi
14934 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14936 2004-07-21 10:19 jordi
14938 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14939 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14940 LinkLabelLinkClickedEventArgs.cs,
14941 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14942 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14945 2004-07-19 13:09 jordi
14947 * Control.cs, Label.cs: label control re-written: added missing
14948 functionlity, events, and properties
14950 2004-07-19 10:49 jordi
14952 * Control.cs: fixes SetBounds logic
14954 2004-07-19 01:29 jordi
14956 * Control.cs: Call RefreshWindow only if the window has created
14958 2004-07-15 14:05 pbartok
14960 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14961 - Implemented ImageList and ImageList.ImageCollection classes
14962 - Added ColorDepth enumeration
14963 - Updated SWF VS.Net project
14965 2004-07-15 11:06 jordi
14967 * XplatUIStructs.cs: added MsgButons enum
14969 2004-07-15 11:03 jordi
14971 * Control.cs: added basic mouse handeling events
14973 2004-07-15 03:38 jordi
14975 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14976 Vertical TrackBar control implementation
14978 2004-07-13 09:33 jordi
14980 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14982 2004-07-13 09:31 jordi
14984 * Control.cs, Form.cs: commit: new properties and fixes form size
14987 2004-07-09 14:13 miguel
14989 * ProgressBar.cs: Spelling
14991 2004-07-09 11:25 pbartok
14994 - Removed usage of Rectangle for drawing. Miguel pointed out it's
14997 2004-07-09 11:17 miguel
14999 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
15001 * ProgressBar.cs: Fixed spelling for `block'
15003 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
15006 Avoid using the += on rect.X, that exposed a bug in the compiler.
15008 2004-07-08 23:21 pbartok
15010 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
15011 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
15012 BaseCollection.cs, Binding.cs, BindingContext.cs,
15013 BindingMemberInfo.cs, BindingsCollection.cs,
15014 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
15015 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
15016 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
15017 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
15018 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
15019 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
15020 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
15021 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
15022 FrameStyle.cs, GiveFeedbackEventArgs.cs,
15023 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
15024 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
15025 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
15026 InputLanguageChangedEventArgs.cs,
15027 InputLanguageChangedEventHandler.cs,
15028 InputLanguageChangingEventArgs.cs,
15029 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
15030 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
15031 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
15032 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
15033 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
15034 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
15035 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
15036 QueryAccessibilityHelpEventArgs.cs,
15037 QueryAccessibilityHelpEventHandler.cs,
15038 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
15039 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
15040 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
15041 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
15042 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
15043 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
15044 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
15045 XplatUIX11.cs, lang.cs: