1 2006-05-18 Jackson Harper <jackson@ximian.com>
3 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
6 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8 * Control.cs: Brought back our old UpdateZOrder method as a private
9 function and switched our calls from UpdateZOrder to the new one.
10 This fixes the Paint.Net canvas disappearing bug.
12 2006-05-18 Jackson Harper <jackson@ximian.com>
15 * ThemeWin32Classic.cs:
16 * InternalWindowManager.cs: Move the drawing into the theme,
17 expose everything the theme should need from the window manager.
19 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22 from the call to NativeWindow to avoid walking up the parent chain
23 further than needed (speeds up setting cursors and avoids setting
24 the wrong cursor if a parent has another cursor defined)
25 * Cursor.cs: When loading an icon as cursor, MS uses the center of
26 the icon as hotspot, not what's contained as hotspot in the icon
27 file. This fixes the perceived drawing offset seen with Paint.Net
29 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
32 - Store the calculated rectangle in Hwnd object and use it when
33 setting the client size
34 - Force Toolwindows to always be type Dock, to ensure they're on top
36 2006-05-18 Mike Kestner <mkestner@novell.com>
38 * ComboBox.cs: first pass at ComboBox rework. Layout is more
39 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
40 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
41 Substantial refactoring to remove confusing nested classes. Coding
42 standard and Get+Set->property refactorings. Shift to index based
43 highlighting in ComboListBox instead of constantly using IndexOf and
44 Items[]. Add invalidations on resize for DropDownList to fix ugliness
45 in FileDialog growth. Draw borders manually since Simple mode needs
46 to look like two independent controls. Make listbox border
47 conditional to DropDownStyle. Improved OwnerDraw support.
49 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
51 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
52 Don't set the disposed graphics to null, so we can throw the "right"
53 exception if the graphics is reused later (added a flag to avoid
54 double disposing). Some behaviours are different under 2.0 and are
55 filled under bug #78448.
57 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
59 * Control.cs: When double-buffering is enabled, we need to reset
60 our graphics context between paint calls. Otherwise, any
61 transformations and other alterations on the context will
62 become cumulative (#77734)
64 2006-05-18 Mike Kestner <mkestner@novell.com>
66 * ListView.cs: do focused item selection like MS on clicks.
67 Rework focus handling for ItemControl so LostFocus invalidates as
69 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
70 the ListView ItemControl has focus.
72 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
74 * XplatUIX11.cs: If client_window ends up being width or height zero
75 due to border settings, move it off window inside whole_window (#78433)
77 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
79 * Mime.cs: Shrink the mime file cache correctly.
81 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
83 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
85 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
87 * XplatUIX11.cs (AddExpose): More sanity checks
89 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
92 - AddExpose: Don't add expose ranges outside the size of our
94 - Cast opacity values to Int32 to avoid crashes with certain
96 - Added disabled code paths that protect against illegal cross-
97 thread painting (Developers.exe)
99 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
101 * ProgressBar.cs: Invalidate the control when it's resized
102 since block size is based on control size. (#78388)
104 2006-05-16 Miguel de Icaza <miguel@novell.com>
106 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
107 of setting the incoming argument to the "reset" value, we set the
108 this.datamember to string.empty (before we were invalidating the
113 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
115 * Form.cs: Only apply transparency settings after the form
116 is created. (Fixes #77800)
118 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
120 * ApplicationContext.cs: Grab the HandleDestroyed event so
121 we know when to fire OnMainFormClosed
123 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
125 * Application.cs: Introduced sub-class to allow tracking of
126 threads and centralized triggering of the event mess for
127 ThreadExit, AppExit, etc.. (#76156)
129 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
132 - Do not return a null icon index value for a mime subclass.
133 Instead try the main mime type class too.
134 - Seems that some newer distributions don't have a link to some
135 gnome default icons anymore. So check the default gnome dir too.
138 2006-05-16 Jackson Harper <jackson@ximian.com>
140 * MdiClient.cs: Don't paint the parent background image if we have
141 our own background image.
143 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
146 - PerformLayout: Do not shrink space filled by DockStyle.Fill
147 controls, all filled controls are supposed to overlap (#78080)
148 - UpdateZOrder is supposed to update the control's z-order in the
149 parent's z-order chain. Fixed to behave like that
150 - BringToFront: Removed obsolete code
151 - SendToBack: Simplyfied
152 - SetChildIndex: Trigger layout calculations when Z-order changes
153 since layout is done by z-order
155 2006-05-16 Chris Toshok <toshok@ximian.com>
158 * DataGrid.cs (set_AlternatingBackColor): use
159 grid_drawing.InvalidateCells instead of Refresh().
160 (set_BackColor): call grid_drawing.InvalidateCells.
161 (set_BackgroundColor): use Invalidate instead of Refresh.
163 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
164 invalidate the cell area.
166 2006-05-15 Chris Toshok <toshok@ximian.com>
169 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
170 on to DataGridPaintRow.
171 (DataGridPaintRow): take a clip argument, and only draw the cells
172 which intersect it. same with the not_usedarea.
174 * Theme.cs (DataGridPaintRow) add @clip parameter.
176 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
177 XplatUI.ScrollWindow.
180 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
181 with last column which was causing a gray swath to appear with the
182 XplatUI.ScrollWindow code.
184 2006-05-15 Chris Toshok <toshok@ximian.com>
186 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
187 use XplatUI.ScrollWindow.
188 (VerticalScrollEvent): use XplatUI.ScrollWindow.
190 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
192 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
194 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
196 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
197 file since there are no equivalent X11 cursors
199 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
201 * MonthCalendar.cs : DateTimePicker should reflect selected date
202 on mouse*up*, not mouse*down*. Fixed originally reported part of
205 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
207 * TabControl.cs : When argument index is equal or more than tab
208 count, just ignore. Fixed bug #78395.
210 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
212 * Control.cs: Dispose all child controls when control is diposed (#78394)
214 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
216 * ColorDialog.cs: Finally it is possible to select the color with
219 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
221 * PrintDialog.cs: Fix typo
223 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
225 * PrintDialog.cs: PrintDialog is not resizable
226 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
227 color. Made some ToolBar drawing methods protected virtual.
229 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
231 * PrintDialog.cs: Implementation of the PrintDialog
233 2006-05-12 Chris Toshok <toshok@ximian.com>
235 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
236 thumb, instead use MoveThumb. This has the side effect of making
237 most of the other thumb moving machinery use MoveThumb as well.
238 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
239 need to actually invalidate the rectangle where the new thumb will
241 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
242 We force an Update() after, so it's not as fast as it could be,
243 but at least there's zero flicker and no droppings.
244 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
245 (UpdateThumbPos): add another argument (dirty), which says whether
246 or not to calculate/add dirty regions which we later invalidate.
247 For cases where we know we're going to use MoveThumb, we pass
248 false for this. Otherwise, pass true.
250 2006-05-12 Jackson Harper <jackson@ximian.com>
252 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
255 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
257 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
258 and GetClipRegion methods and UserClipWontExposeParent property.
259 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
260 overriding UserClipWontExposeParent property, setting to false, since
261 Win32 handles the required expose messages to draw our clipped parent
263 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
264 PaintEventStart to set the user clip region if set.
266 - Now internally tracking the Region for the control since we need to
267 store it if the handle is not yet created and only set it when it
268 becomes created. Before setting the region forced handle creation
269 - Added code to draw the parents underneath a user-clipped region
270 * Hwnd.cs: Added UserClip property
272 2006-05-12 Chris Toshok <toshok@ximian.com>
274 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
277 (set_SmallChange): same.
278 (OnMouseUpSB): remove the call to refresh when releasing the
279 thumb. We shouldn't need it.
281 2006-05-12 Miguel de Icaza <miguel@novell.com>
283 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
284 AutoSize set to None, we do not need to relayout everything, we
285 just need to invalidate the current region.
287 (Draw): Do not draw the entire ClientArea, just redraw the
288 clip area being passed.
290 * MdiClient.cs: Make MdiClient constructor with the Form argument
293 2006-05-12 Jackson Harper <jackson@ximian.com>
295 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
296 parents background image, but strangely not their own.
297 - (DrawStatusBarPanel): Take into account horizontal alignment
298 when drawing the strings and icons.
300 2006-05-12 Mike Kestner <mkestner@novell.com>
302 * ListBox.cs: avoid invalidations for focus when the collection is
305 2006-05-12 Chris Toshok <toshok@ximian.com>
307 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
308 invalidate the entire thumb area. Call InvalidateDirty which
309 limits the redraw to the thumb itself and surrounding pixels.
311 * XplatUIX11.cs (ScrollWindow): optimize copying.
313 2006-05-12 Chris Toshok <toshok@ximian.com>
315 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
316 Figure out the positioning/layout in a single pass instead of
317 multiple recursive invocations. Speeds up the initial display of
318 the data grid. Also, make many things private that were
319 originally public but unused outside this class.
321 2006-05-11 Jackson Harper <jackson@ximian.com>
323 * MdiClient.cs: Improved layout code.
325 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
327 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
330 2006-05-11 Chris Toshok <toshok@ximian.com>
332 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
333 union of that will always be {0,0,width,height}.
335 2006-05-11 Jackson Harper <jackson@ximian.com>
337 * Form.cs: Match MS's DefaultSize for forms (they must have
338 changed the size in sp2).
340 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
342 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
344 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
346 * TextControl.cs : Fixed bug #78109. This incorrect position
347 comparison caused crash on automatic line split.
348 * TextBoxBase.cs : reduce duplicate code.
350 2006-05-10 Jackson Harper <jackson@ximian.com>
352 * MdiClient.cs: Active form is only sent to the back when using
353 the Next form functionality, when a form is clicked the current
354 active shouldn't be sent to the back.
355 - Layout the mdi windows when the container is first made visible.
356 * Form.cs: Give the MdiClient a ref to the containing form when we
359 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
361 * LinkLabel.cs : link_font could be uninitialized, so populate one
362 before actual use. Fixed bug #78340.
364 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
366 * XplatUIX11.cs : clipboard format native value is IntPtr.
369 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
372 - Instead of showing context menus directly we send WM_CONTEXTMENU,
373 which is passed up the parent chain by DefWndProc
374 - We now handle WM_CONTEXTMENU to display any menu, or pass it
375 to DefWndProc (#77956)
376 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
378 2006-05-10 Jackson Harper <jackson@ximian.com>
380 * MdiClient.cs: We need to remove the controls from the mdi
381 collection, when we close the window.
382 * MdiWindowManager.cs: Special handling of closing mdi windows.
383 * InternalWindowManager.cs: Make the close method virtual so the
384 mdi window manager can handle it specially.
386 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
389 - Recalculate grid when the data source has changed
390 - Matches styles provided by user from all data sources types
391 * DataGridTableStyle.cs: For columns that provided by the user set the
392 with the preferred value is there was unassigned.
393 * CurrencyManager.cs: throw OnItemChanged event
395 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
397 * PictureBox.cs: Don't animate until handle is created. Start animation
398 when handle is created.
400 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
402 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
404 * XEventQueue.cs: We don't need to provide the extra info
406 2006-05-10 Jackson Harper <jackson@ximian.com>
408 * MdiClient.cs: If the mdi clients parent form has a background
409 image set, we draw that background image for the mdi area's
412 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
414 * TextBoxBase.cs: Set IBeam cursor (#78347)
416 2006-05-10 Mike Kestner <mkestner@novell.com>
418 * ToolBar.cs: fix some text padding issues with ButtonSize
419 calculation. Update the default size to match MS documentation.
420 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
421 button size. Fixes #78296.
423 2006-05-10 Mike Kestner <mkestner@novell.com>
425 * ListBox.cs: use is_visible for scrollbar positioning in case the
426 control isn't on screen yet. Fix off by one with Right vs Width
427 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
429 2006-05-10 Jackson Harper <jackson@ximian.com>
431 * X11Dnd.cs: Drop to a control with another control on top of it.
432 * ToolBar.cs: Work on a copy of the buttons list, so that it can
433 be modified in click handlers. TODO: Look for similar problems in
436 2006-05-09 Jackson Harper <jackson@ximian.com>
438 * Form.cs: Window managers need the old window state when setting
440 * InternalWindowManager.cs: Allow the base mdi window manager to
441 handle more of the MDI only stuff (like maximize buttons).
442 * MdiWindowManager.cs: Fix some snafus in changing the window
443 state. Add all the menu functionality, for both popup and
445 * MdiClient.cs: When a new form is selected the currently
446 activated form is sent to the back, this matches MS.
447 - Implement a new method to activate the next mdi child window.
449 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
452 - Added new InternalCapture method to allow controls to prevent
453 the capture behaviour on the click handlers
454 - Switched to use InternalCapture
456 - Using InternalCapture to prevent mouse captures from being released
457 on mouse button release (Fixes #78100)
458 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
459 returns Form borders if a caption is present. (Fixes #78310)
461 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
463 * TreeNode.cs: Changed serialization .ctor to not require every field
464 to be present. (#78265)
465 * OwnerDrawPropertyBag.cs: Added serialization .ctor
467 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
469 * MimeIcon.cs: for is faster than foreach for strings.
471 2006-05-05 Mike Kestner <mkestner@novell.com>
473 * CheckedListBox.cs: update check handling code to not use selected.
474 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
475 behavior for visual feedback, motion response, shift/ctrl handling,
476 and properly deal with all 4 selection modes. Updates to bounds
477 handling logic. Add scroll wheel support. [Fixes #77842]
479 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
482 - Moved adding of Implicit controls into .ctor. That way, subsequent
483 creation of the controls will not cause them to think they are
484 toplevel windows (fixes #78200 header problem)
485 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
486 - Switched visibility setting of header control to use internal field
487 to avoid triggering handle creation
488 - Now checking if handle is created before causing a refresh when items
489 are added (This makes us now match handle creation time with MS)
490 * Splitter.cs: Removed loading of private splitter cursor, switched to
491 Cursors version now that that is loading the right ones
492 * Cursors.cs: Load proper splitter cursors from resources
493 * Cursor.cs: Added second method of loading resource cursors for the
494 VS.Net users amongst us
496 2006-05-05 Mike Kestner <mkestner@novell.com>
498 * ListView.cs: give header_control a minimum size based on the
501 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
503 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
504 window seems to do that with metacity, so set that type. (#78120)
506 2006-05-05 Mike Kestner <mkestner@novell.com>
508 * ListViewItem.cs: fix Details mode checkbox layout bug.
509 * ThemeWin32Classic.cs: draw a ListView column header for unused space
510 at the end of the header, if it exists. [Fixes for #78200]
512 2006-05-04 Jackson Harper <jackson@ximian.com>
514 * MdiClient.cs: Add a helper property to get the container form.
515 * MdiWindowManager.cs: We have to make sure to use the menu origin
516 when drawing the icons and buttons, this fixes maximized window
517 icons/buttons on win32.
518 * InternalWindowManager.cs: Reset the restore captions when a
519 window goes from Maximized to Minimized and vice versa. Move the
520 DrawMaximizedButtons into the MdiWindowManager source, tool
521 windows can't be maximized. NOTE: This could use a little
522 refactoring if time ever permits.
524 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
526 * TextBox.cs: Add MWFCategoryAttributes
527 * TextBoxBase.cs: Add MWFCategoryAttributes
528 * Form.cs: Add MWFCategoryAttributes
530 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
532 * Control.cs: Add MWFCategoryAttributes
533 * ScrollableControl.cs: Add MWFCategoryAttributes
535 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
537 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
538 Divider is true. Fix a little glitch in PropertyToolBar
541 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
544 - Dispose: Call base.Dispose, this causes the disposed event
545 to be fired (and probably other, more important stuff)
546 - SetVisibleCore: Set is_visible to true after creating the
547 window so that the window still gets created invisible (if
548 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
549 to generate a WM_ACTIVE message
550 * Form.cs: Call Dispose when we want to destroy the window, instead of
551 just destroying the handle (Dispose will do that for us)
553 - RootWindow also needs a queue, so we can properly process the
554 property change events from RootWindow (like Activate)
555 - Generatic synthetic WM_ACTIVE message when the active window is
558 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
560 * LinkLabel.cs: Trigger a recalc of our label dimensions when
563 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
565 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
566 for determining width and height (image might not be assigned if
567 we're drawing an imagelist)
569 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
571 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
572 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
574 * Theme.cs: No longer returns hardcoded menu height, instead calls
576 * Form.cs (OnLoad): Scaling happens before triggering Load events
579 2006-05-01 Mike Kestner <mkestner@novell.com>
581 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
583 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
585 * TextBoxBase.cs: Removed Fixme
586 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
588 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
591 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
592 the rectangle relative to the parent, considering borders. We
593 don't really want that.
594 - ScrollWindow: Fixed warning to be more understandable
595 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
596 scrollbars and scroll only the visible area
597 * RichTextBox.cs: Removed debug output
599 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
601 * NumericUpDown.cs (Text): Just use base
602 * UpDownBase.cs: Ensure txtView is created before using it
604 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
606 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
607 casting to IntPtr to avoid 64bit overflow errors
609 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
612 - AllowDrop: Don't force handle creation.
613 - CreateHandle: Added call to tell driver if we're allowed to drop
615 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
617 * FileDialog.cs: Remember the last directory not only for the
618 current instance but also for new FileDialog instances.
620 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
622 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
623 broke sending async messages
625 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
628 - ScrollWindow: Fixed method. We finally generate expose events again
629 for scrolled areas. This was causing 'garbage' when scrolling
630 textbox and other controls that used ScrollWindow
631 - Switched from using the regular queue for paint events to the MS
632 model of 'generating' paint events when the queue is empty.
633 We use the new XQueueEvent.Paint subclass to store which windows
635 - AddExpose now takes the x/y/width/height of the exposed area
636 and inserts the window into the paint queue if not already there
637 - InvalidateWholeWindow: Switched to use new AddExpose method
638 - UpdateMessageQueue: Added which queue to monitor for paint events
639 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
640 the unlikely case nothing above handles it. We reset the expose
641 pending states to get them off the queue.
642 - GetMessage: Now pulls a paint event if no other events are in the
644 - Invalidate: Switched to new AddExpose method
645 - PeekMessage: Updated to understand pending paint events
646 - UpdateWindow: Fixed logic bug. We were only updating if the window
647 didn't need updating. Also switched to sending WM_PAINT directly,
649 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
650 and random access Remove(). The random access is needed to handle
651 UpdateWindow() where a WM_PAINT is sent directly without accessing
653 * ScrollBar.cs: Added Update() calls to cause immediate updates to
654 allow for better feedback when scrolling. Scrollbars are small and
655 the immediate update should make it 'feel' more responsive without
656 slowing things down. ScrollBar still needs it's invaliate logic
657 updated to not always invalidate the whole bar on certain changes.
659 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
662 (BackColor): if the control does not support a transparent background,
663 return the default backcolor when the parent backcolor is transparent.
665 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
667 * Application.cs: Updated to new StartLoop/GetMessage API
668 * RichTextBox.cs: Provide some output on RTF parsing errors
669 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
670 new queue_id argument to GetMessage and PeekMessage to allow faster
671 handling of per-thread queues in drivers.
672 * Hwnd.cs: Added Queue tracking and property
673 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
674 * XEventQueue.cs: Added thread trackingA
675 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
677 - Implemented new per-thread queue
678 - GetMessage: Fixed return/break behaviour on several cases. We were
679 returning stale messages in some cases, instead of just processing
682 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
684 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
686 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
688 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
689 fixed off-by-one comparisons between Width/Height and Right/Bottom.
691 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
693 * PropertyGridView.cs: Fix drop down width.
695 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
697 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
698 a mess in DrawToolBar, so I removed one of them.
700 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
702 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
703 needed (clip). Otherwise we get artifacts.
705 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
707 * FixedSizeTextBox.cs: Added constructor to allow specifying which
709 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
710 and switched FixedSizeTextBox to only be fixed vertical (#78116)
711 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
712 if it matches the scale base font (avoids unneeded scaling)
714 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
716 * X11DesktopColors.cs: One gtk_init_check should be enough
718 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
720 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
723 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
726 - Generate OnTextChanged for Backspace even if we're only deleting
727 the current selection
728 - When setting the Text property, only select all text if the
729 control does not have focus when it is being set. Otherwise
730 just place the cursor at the beginning of the control
732 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
734 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
735 Added a little helper to draw PropertyGrid ToolBar with a different
736 border and a different BackColor.
737 * PropertyGrid.cs: Some background parts didn't get painted with the
738 correct background color. Added a class that helps us to draw the
739 correct border for PropertyGridView and a class that helps us to
740 draw ToolBars with a different backcolor
741 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
743 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
745 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
746 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
748 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
750 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
751 into the palette entries. Also, since we're working on a copy
752 we needed to copy the palette back onto the bitmap.
753 * Cursor.cs: Same fix as XplatUIWin32.cs.
755 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
757 * ImageListStreamer.cs: Need to read the var (or we're off)
759 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
761 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
762 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
763 TextBoxBase.cs: Unused var fixes
764 * AxHost.cs: Small 2.0 fix
765 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
766 as it seems that is what at least Metacity expects. This will make
767 icons show up on 64bit platforms. We still have some 64bit size
768 issues, though, since the startup app window size still won't match.
770 2006-04-25 Mike Kestner <mkestner@novell.com>
772 * *.cs: cleanup newly reported exception var unused warnings.
774 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
776 * ThemeWin32Classic.cs: Button image alignment now matches exactly
779 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
781 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
782 image. The image position is always the same, no matter if the
783 button is pressed or not.
785 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
787 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
788 selection and set the correct filename for SaveFileDialog.
789 Patch by Emery Conrad.
791 2006-04-24 Mike Kestner <mkestner@novell.com>
793 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
794 check for item.X outside the ClientRect instead of item.Y. Fixes
797 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
799 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
800 trust that value blindly and do some sanity check. Fixes bug #77814.
802 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
804 * ImageListStreamer.cs: save the mask as a 1bpp image.
806 2006-04-21 Mike Kestner <mkestner@novell.com>
808 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
809 pass Checked and Indeterminate to the Theme Engine. Improve
810 encapsulation with ListBox.
811 * ListBox.cs: Keep a StringFormat instead of calculating it every item
812 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
813 nested types. Move all CheckState functionality to CheckedListBox.
814 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
815 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
816 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
817 single base list. Fix scrollbar sizing and placement to mirror MS.
818 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
820 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
821 for CheckedListBox by using new DrawItemState info. Center the
822 checkboxes on the items. Use new StringFormat property.
824 2006-04-18 Jackson Harper <jackson@ximian.com>
826 * Form.cs: MdiChildren don't do default locations the same way as
827 regular forms. This prevents a crash when trying to position the
830 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
832 * PropertyGridTextBox.cs: Formatting, copyright
833 * PropertiesTab.cs: Formatting
834 * PropertyGrid.cs: Formatting
835 * PropertyGridView.cs: Formatting, fix drop down, enabled double
836 click toggling of values
838 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
840 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
841 * Control.cs (.ctor): verify_thread_handle is static, don't reset
842 every time a control is created
843 * Application.cs: Removed obsolete EnableRTLMirroring method
845 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
847 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
848 SelectedIndex to -1. Fixes bug #78121.
850 2006-04-17 Jackson Harper <jackson@ximian.com>
852 * Binding.cs: Handle null values for Current and BindingContext.
853 This occurs when binding is a little delayed.
854 * CurrencyManager.cs: return null for Current when there are no
856 - Hookup to the listchanged event on the DataView and update
857 bindings when the list is changed. This fixes late binding of
860 2006-04-17 Jackson Harper <jackson@ximian.com>
863 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
866 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
868 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
870 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
871 with the correct ButtonState
873 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
875 * XplatUIX11.cs: Improved distinguishing between window types to
876 tell the WM a type closer to what the app wants (Fixes #78107)
878 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
880 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
883 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
885 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
886 drawing code to reflect the size grip changes
888 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
890 * ImageListStreamer.cs: fix handling of the mask that follows the main
891 bitmap when deserializing and serialize it properly. The generated mask
892 should better be a 1bpp image, but I'll do that later.
894 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
896 * FileDialog.cs: Show something in the DirComboBox on *nix if the
897 path doesn't fit into some of our Current.Places
899 2006-04-13 Jackson Harper <jackson@ximian.com>
901 * ComboBox.cs: Use borders instead of drawing our own decorations,
902 try to obey correct rules for heights.
905 * ThemeClearLooks.cs:
906 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
907 this is now handled by borders.
908 - Remove unused DrawListBoxDecorationSize method.
910 2006-04-13 Mike Kestner <mkestner@novell.com>
912 * MenuAPI.cs: null guarding for the disbled click check fixes crash
915 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
917 * ThemeWin32Classic.cs:
918 - Fixed CPDrawStringDisabled
919 - Corrected drawing of disabled menu items
920 - Fixed drawing of disabled radio buttons (bug #78095)
921 - Draw check in a disabled CheckBox with color ControlDark
923 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
925 * Form.cs: Use the provided width when calculating the menu size;
926 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
927 and ClientSize.Width won't be updated yet
928 * Application.cs: Use Visible instead of Show() to make form visible,
929 this way we create the handle later and menusize is considered
931 2006-04-12 Mike Kestner <mkestner@novell.com>
933 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
936 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
938 * TextBox.cs: Implemented context menu
940 2006-04-12 Mike Kestner <mkestner@novell.com>
942 * ListView.cs: implement box selection. fixes #77838.
943 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
945 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
947 * XplatUIX11.cs: Added setting of window type when transient window
948 is created (metacity would move it otherwise)
949 * X11Structs.cs: Added WINDOW_TYPE atoms
950 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
951 background (the control is Opaque but still wants transparent
954 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
956 * Control.cs: Added OnPaintBackgroundInternal to allow controls
957 that set Opaque but don't mean it (like all ButtonBase-derived
958 controls) to still draw their background
959 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
962 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
964 * Control.cs (PaintControlBackground): Set the graphics object
965 on our PaintEvent to null to prevent it from being disposed
966 when the PaintEvent gets disposed
968 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
970 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
971 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
973 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
976 - Added transparency check to BackColor property. Transparent
977 backgrounds are only allowed if the control styles permit it
978 - Added recursive painting of parent control background and
979 foreground if a control with a transparent backcolor is drawn
980 (Thanks to Tim Ringenback for providing his 'hack' as a base
981 for this patch) Fixes #77985 and #78026.
982 - Added Opaque style check before calling OnPaintBackground, no
983 need to draw the background if the control is opaque
984 - Removed ControlAccessibleObject owner variable (inherited from
985 base, no need to define again)
986 - Added some documentation links explaining the drawing events
989 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
991 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
992 that the affected control is the located at the left border of our
993 parent (Fixes #77936)
995 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
997 * TextBoxBase.cs: When rendering disabled or readonly controls,
998 draw the background with 'Control' instead of 'Window' color as
999 long as the user hasn't specifically set a color
1001 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1003 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1004 since that won't be updated if the user types text (only if it's
1005 programatically set)
1007 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1009 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1010 layout changes do to app-triggered resizes will have the proper
1011 display rectangle for layout
1013 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
1015 * ThemeWin32Classic.cs:
1016 - Make use of the SystemBrushes and SystemPens wherever possible
1017 - Corrected some highlight colors
1018 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1020 * Theme.cs: Added Empty field to CPColor struct
1022 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
1024 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1025 is displayed when calculating the display rectangle. Thanks to Mike
1026 for teaching me the err of my ways.
1028 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
1030 * ScrollableControl.cs:
1031 - Rewrote DisplayRectangle code, now returning the proper x/y coords
1032 (instead of 0,0) and we now return the real width/height instead of
1033 just the clientrectangle, adjusted for padding. The rectangle is
1034 now cached and created by the new CalculateDisplayRectangle method.
1035 - Created new CalculateDisplayRectange method, which basically does
1036 what get_DisplayRectangle() did originally, but now using the
1037 right edge instead of DisplayRectangle to determine the size of
1039 - get_Canvas(): Fixed it to properly calculate canvas for
1040 right/bottom controls which seem to be placed to the right/bottom
1041 of any controls that have a fixed location
1042 - Removed TODO that's taken care of
1043 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1044 and SetDisplayRectLocation according to new MSDN2 docs
1045 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1046 event when that is called, this is added for compatibility
1047 - ScrollControlIntoView(): Implemented.
1048 - Switched scrollbars to be implicit, they shouldn't be selectable
1049 * ContainerControl: Now that ScrollControlIntoView is implemented, we
1050 call it when the active control is set/changed
1051 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1052 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1053 implicit_control variable (used for native Win32 message generation)
1054 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
1055 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1056 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1057 * XplatUIStructs.cs: Added ScrollBarCommands enum
1059 2006-04-10 Jackson Harper <jackson@ximian.com>
1062 * CheckedListBox.cs:
1069 * PrintPreviewControl.cs:
1075 * UpDownBase.cs: Fixup base event overrides.
1077 2006-04-06 Mike Kestner <mkestner@novell.com>
1079 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1080 all user-initiated value changes to min <= value <= max-thumbsz+1.
1081 (set_Value): check for vert/horiz when calculating new thumb position.
1082 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1084 (OnMouseMoveSB): refactor the thumb dragging code and refine
1085 invalidation logic to reduce flicker.
1086 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1087 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1088 (UpdateThumbPosition): small code readability cleanup
1090 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
1092 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1095 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
1097 * ThemeNice.cs: Use a better graphics effect when a button is pressed
1099 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
1101 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1102 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1103 This dramatically reduces the number of Pen.Dispose calls.
1104 Where possible call ResPool methods only once instead of calling it
1105 over and over again (for example for the same color).
1107 2006-04-06 Mike Kestner <mkestner@novell.com>
1109 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1110 Also remove an unused private field on the collection. Fixes #77972.
1112 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
1114 * ThemeNice.cs: Added ToolBar drawing code
1116 2006-04-06 Mike Kestner <mkestner@novell.com>
1118 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1119 I'm assuming that means we need to look up the toplevel for the
1120 provided control. Fixes the crash trace in #77911 but exposes another
1121 crash in some strange reflection usage in NDocGui.
1123 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
1125 * ThemeNice.cs: Gave it a little silver touch and added Images
1127 * FontDialog.cs: FontDialog is not resizable
1128 * FileDialg.cs: Added SizeGripStyle.Show
1130 2006-04-05 Jackson Harper <jackson@ximian.com>
1132 * KeyboardLayouts.cs: Remove warning.
1134 2006-04-05 Jackson Harper <jackson@ximian.com>
1136 * Control.cs: Enable OnPaintInternal so we can use it for drawing
1137 all of our controls instead of Paint +=.
1152 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1153 use OnPaintInternal. Remove Width/Height and Visible checks in
1154 paint handler, this is done at a higher level now.
1155 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1156 * PaintEventArgs.cs: Add a handled flag so controls that don't
1157 want anymore painting after OnPaintInternal can make sure OnPaint
1160 2006-04-05 Mike Kestner <mkestner@novell.com>
1162 * Form.cs: fix the menu WndProc hacks to respect the native enabled
1163 state of the form, so that we don't process events when Modal dialogs
1164 are up. Fixes #77922.
1166 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
1168 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1171 2006-04-05 Mike Kestner <mkestner@novell.com>
1173 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1175 2006-04-05 Mike Kestner <mkestner@novell.com>
1177 * ListView.cs (HeaderMouseMove): null guarding for the over column
1178 when setting up the drag_to_index. Fixes #78015.
1180 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
1182 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1183 in the taskbar. Transient windows seem to accomplish that.
1185 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
1188 - Re-enabled CreateParams.X/Y code for FormStartPosition
1189 - Added code for manual placement when creating the Control
1190 - Incomplete patch to treat MDI forms differently when
1191 setting the ClientSizeCore. (Still need to figure out handling
1194 - When we're explicitly setting the X/Y position of a non-Child
1195 window, let the WM know. Metacity really wants this.
1197 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1199 * ThemeNice.cs: Added CPDrawButton
1201 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1203 * ThemeNice.cs: Changed the color for focused buttons and activated
1204 the arrows for small scroll buttons.
1206 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
1208 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1209 anymore. Changed some method modifiers to protected (virtual)
1210 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1212 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1213 Updated drawing of menus, buttons and progressbars; added
1216 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1218 * ImageListStreamer.cs: implemented serialization/deserialization
1221 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
1223 * ThemeWin32Classic.cs:
1224 - Removed all the DrawFrameControl stuff; CPDrawButton,
1225 CPDrawCheckBox and CPDrawRadioButton are now handled directly
1227 - Updated and corrected the drawing code of CPDrawButton,
1228 CPDrawCheckBox and CPDrawRadioButton to better match ms
1229 - Updated theme checkbox and radiobutton code to use the CP*
1232 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1234 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1237 2006-03-31 Jackson Harper <jackson@ximian.com>
1239 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1241 * UpDownBase.cs: Don't CreateGraphics manually, use a
1242 Refresh. Ideally we would invalidate the correct areas here.
1244 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1247 - We now track the mapping state of windows. If a window (or
1248 one of it's parents) is not mapped we no longer permit
1249 WM_PAINT messages to be generated since we'd otherwise get
1250 lots of BadMatch X errors. Jackson did all the work figuring
1252 - Destroying the caret if the window it's contained in is
1253 destroyed. Can't use regular DestroyCaret method since it
1254 might fall into a drawing function (trying to remove the
1255 caret) and with that generate new BadMatch errors. Again,
1256 Jackson tracked this down.
1257 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1258 make sure we send the messages to all windows. (The old code
1259 would send the WM_DESTROY to the window, and then all child
1260 windows would be 'gone' because the WM_DESTROY handle lookup
1261 would no longer find the destroyed window)
1262 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1263 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1265 2006-03-31 Jackson Harper <jackson@ximian.com>
1267 * ScrollableControl.cs: Dont recalc if we are not visible.
1269 2006-03-31 Mike Kestner <mkestner@novell.com>
1271 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1272 the visibility branch.
1274 2006-03-31 Jackson Harper <jackson@ximian.com>
1276 * ScrollBar.cs: Cap values when incrementing/decrementing.
1278 2006-03-31 Mike Kestner <mkestner@novell.com>
1280 * MenuAPI.cs: setup menu.tracker for popup/context menus.
1281 * ToolTip.cs: guard against timer expirations with no active control.
1282 Not sure why it happened.
1284 2006-03-31 Mike Kestner <mkestner@novell.com>
1286 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1288 * ToolTip.cs: Position the tooltip based on where the cursor is at
1289 popup time, not at MouseEnter time. Add a Down state so that we don't
1290 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1291 positioning offset. Lookup DisplaySize at positioning time, since it
1292 can theoretically change during invocation.
1293 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1294 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1296 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1298 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1299 Fixes behaviour when the Text property of the box is String.Empty
1301 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
1303 * XplatUIX11.cs: Only send mouseleave for our client windows, not
1304 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1307 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1309 * FileDialog.cs: Visual enhancement for the popup buttons in
1312 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
1314 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1317 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
1319 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1320 highlighted menu items to match ms
1322 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
1324 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1326 2006-03-30 Mike Kestner <mkestner@novell.com>
1328 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1329 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1330 go active to account for HotLight to Selected transition.
1331 * MenuItem.cs: add internal Selected prop. Fill out the Status
1332 property by calculating it from item info. Add HotLight,
1333 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1335 2006-03-30 Mike Kestner <mkestner@novell.com>
1337 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1339 2006-03-29 Jackson Harper <jackson@ximian.com>
1341 * Form.cs: Implement TODO.
1343 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
1345 * PrintPreviewDialog.cs: Implemented missing methods and events; still
1346 missing proper dialog setup in the constructor
1348 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
1350 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1352 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1353 - Fixed ResetBindings and removed TODO
1354 - Added check for cross-thread calls to get_Handle()
1355 - Added Marshaller attribute for set_Font to satisfy class status
1356 * FontDialog.cs: Removed TODOs that seemed implemented
1357 * UpDownBase.cs: Removed unneeded TODO and Fixme
1358 * MessageBox.cs: Implemented support for Default button and removed TODO
1359 * FileDialog.cs: Removed obsolete TODO
1360 * DomainUpDown.cs: Removed obsolete TODO
1361 * ButtonBase.cs: Removed obsolete TODO
1362 * XplatUIWin32.cs: Removed obsolete TODO
1364 - Removed obsolete TODO
1365 - Calling CheckAcceptButton when the acceptbutton is changed to allow
1366 internal status updates
1367 - Making sure the active control is selected when the control is created
1368 * CurrencyManager.cs: Removed obsolete TODO
1370 2006-03-29 Mike Kestner <mkestner@novell.com>
1372 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1373 of PrintPreviewDialog and RichTextBox.
1375 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
1377 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1378 DarkDark, Light and LightLight colors for a specific color
1379 * ThemeWin32Classic.cs:
1380 - Use Button drawing code to draw RadioButtons and CheckBoxes with
1382 - Make use of the new ResPool helper CPColor
1383 - Draw ProgressBar and StatusBar with correct 3D borders
1385 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
1387 * ColorDialog.cs: Return selected color. Fixes bug #77940.
1389 2006-03-28 Mike Kestner <mkestner@novell.com>
1391 * ListView.cs: fix Icon layout to plan for scrollbar widths when
1392 calculating col/row counts.
1394 2006-03-28 Mike Kestner <mkestner@novell.com>
1400 switch to explicit interface method implementation for some methods
1401 corcompare identifies as inconsistent with MS.
1403 2006-03-28 Mike Kestner <mkestner@novell.com>
1407 add a few missing methods from the class status output.
1409 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
1411 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1414 2006-03-28 Mike Kestner <mkestner@novell.com>
1416 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1418 2006-03-27 Mike Kestner <mkestner@novell.com>
1420 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1421 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1423 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
1425 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1427 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1429 * ThemeWin32Classic.cs:
1430 - GroupBox: Inserted a little gap between the text and the lines
1432 - Made the code in CPDrawBorder3D more readable
1433 - Corrected the drawing location of the up and down arrows in
1436 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1438 * ControlPaint.cs: Corrected line widths in DrawBorder for
1439 ButtonBorderStyle Inset and Outset
1441 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1443 * ThemeWin32Classic.cs:
1444 - Rewrote the totally broken CPDrawBorder3D method. That was
1445 one of the main problems for the terrific ThemeWin32Classic
1447 - Updated and corrected Button drawing
1448 - Correct the dimensions of the SizeGrip to match ms ones
1449 - Removed a small drawing glitch in DrawComboBoxEditDecorations
1450 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1451 Border3DStyle.Sunken to match ms.
1453 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
1455 * ThemeWin32Classic.cs: First small part of the "de-uglify
1456 ThemeWin32Classic" effort, SizeGrip
1458 2006-03-24 Jackson Harper <jackson@ximian.com>
1460 * XplatUIX11.cs: Give a max idle time of one second, this matches
1461 MS and forces an Idle event every second when there are no other
1462 events in the queue.
1464 2006-03-24 Mike Kestner <mkestner@novell.com>
1466 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1467 * ListView.Item.cs: fix layout issues with null image lists and images
1468 smaller than checkbox size.
1469 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1470 mode like MS does. It's weird, but consistent. ;-)
1473 2006-03-24 Mike Kestner <mkestner@novell.com>
1475 * ListView.cs: Scroll wheel support for the item control. Fixes
1478 2006-03-23 Jackson Harper <jackson@ximian.com>
1480 * ScrollableControl.cs: Special case negative sized areas, not
1482 * MonthCalendar.cs: Save the rect of the clicked date so we can
1483 use it for invalidation.
1484 - Try to cut down on the number of invalidates
1485 - Invalidate the rect the mouse is over and was over when moving
1486 the mouse, so we get the focus box following the cursor.
1488 2006-03-23 Mike Kestner <mkestner@novell.com>
1490 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1491 focus rectangle drawing. Fixes #77835.
1493 2006-03-23 Mike Kestner <mkestner@novell.com>
1495 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1496 the if and else if and reverting back to the original == check on the
1499 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
1501 * FontDialog.cs: Update the example panel if the selected index of
1502 the fontListBox changes.
1504 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
1506 * FileDialog.cs: Make FileDialog remember which directory it was in
1507 last in the same execution.
1509 2006-03-22 Mike Kestner <mkestner@novell.com>
1511 * FileDialog.cs: make the DropDownMenu on the toolbar display
1512 RadioChecks since they are mutually exclusive and that's what MS does.
1514 2006-03-22 Mike Kestner <mkestner@novell.com>
1516 * Theme.cs: add Color param to CPDrawMenuGlyph.
1517 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1518 checks and radio marks and arrows are visible on highlighted items.
1519 * ControlPaint.cs: update to use new Theme signature.
1521 2006-03-22 Mike Kestner <mkestner@novell.com>
1523 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1524 is active. Fixes #77870.
1526 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
1528 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1529 to be focused/selected after startup
1531 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
1534 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1535 CustomColors and ShowHelp properties
1536 - Some internal rewrites to get better results when using the
1539 2006-03-22 Mike Kestner <mkestner@novell.com>
1541 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1542 HoverSelection. Fixes #77836.
1544 2006-03-22 Mike Kestner <mkestner@novell.com>
1546 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
1547 ToggleButtons. (De)Sensitize the Back button around a stack count of
1548 1, not 0. Update ButtonSize based on a pixel count of the win32
1549 control. Adjust the toolbar size/location for new button size.
1551 2006-03-22 Jackson Harper <jackson@ximian.com>
1553 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1555 * ScrollBar.cs: When doing increments and decrements we need to
1556 set the Value property so that ValueChanged gets raised. A
1557 possible optimization here would be to make an internal SetValue
1558 that doesn't invalidate immediately.
1559 * ToolTip.cs: Tooltips get added to their container (when
1560 supplied) so they get disposed when the container is disposed.
1561 - Don't create tooltips for String.Empty. This prevents all these
1562 little 2-3 pixel windows from showing up when running nunit-gui
1564 * Form.cs: Don't set topmost when setting the owner if the handles
1565 haven't been created yet. The topmost set will happen when the
1566 handles are created.
1568 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
1571 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1572 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
1573 visible (to allow them to recalculate their sizes)
1575 2006-03-21 Mike Kestner <mkestner@novell.com>
1577 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1578 methods. Removed a ton of redundant code. Still not really happy with
1579 the border rendering, but I think that's mainly because of the
1580 ControlDarkDark being black instead of a dark grey. Depending on how
1581 close we want to be, we might want to revisit those color choices.
1582 Among the new features added during the refactor were DropDownArrow
1583 pressed rendering, Disabled image rendering. Proper flat appearance
1584 boundary rendering. Removed the Divider and Wrapping dividers since I
1585 can't figure out any combination of themes and conditions to make the
1586 MS control draw a horizontal line on a toolbar despite what the
1587 Divider property docs indicate.
1588 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1589 conditions and incorrect layout. Updated to coding standard.
1590 * ToolBarButton.cs: refactored layout and positioning code from
1591 ToolBar to here. Invalidate wherever possible instead of forcing
1592 redraws of the whole toolbar.
1593 (Known remaining issues: explicit ButtonSize smaller than provided
1596 2006-03-21 Mike Kestner <mkestner@novell.com>
1598 * ContextMenu.cs (Show): use the position parameter instead of just
1599 showing at the MousePosition.
1601 2006-03-21 Jackson Harper <jackson@ximian.com>
1603 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1604 control handle this.
1605 * TreeNodeCollection.cs: If we are clearing the root node we need
1606 to reset top_node so calcs can still happen.
1607 * ThemeWin32Classic.cs: This is a Flags so we need to check
1610 2006-03-21 Jackson Harper <jackson@ximian.com>
1612 * DataGrid.cs: Create columns when the binding context has been
1614 * X11Structs.cs: Keysyms are uints.
1615 - Add size to fix build.
1617 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
1619 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
1621 - Added ResetMouseHover method to allow controls to retrigger
1622 hovering if they need it more than once
1623 - Implemented MouseHoverTime and MouseHoverSize properties
1624 * Timer.cs: Start() must reset the interval
1625 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1628 2006-03-21 Jackson Harper <jackson@ximian.com>
1630 * X11Keyboard.cs: improved layout detection. Move the nonchar
1631 tables into this file.
1632 * KeyboardLayouts.cs: Move the tables into resource files.
1634 2006-03-21 Mike Kestner <mkestner@novell.com>
1636 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1638 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
1640 * Mime.cs: Various speed optimizations. Looking up mime types
1641 is now 2 times faster than before
1643 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
1645 * CreateParams.cs: Added internal menu field
1647 - Switched call order for UpdateBounds; now we always call
1648 the one that also takes ClientSize, and we're calculating the
1649 client size via driver method in the others. The previous
1650 method of tracking client size by difference wasn't working
1651 for forms where even the starting client size wouldn't match
1652 the overall form size (due to borders) (Part of fix for #77729)
1653 - CreateParams(): Do not use parent.Handle unless the handle is
1654 already created. Causes havoc with Nexxia and throws off our
1655 creation of controls
1657 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1658 - Switched handling of ConfigureNotify over to new PerformNCCalc
1659 method (consolidates code)
1660 - Changed RequestNCRecalc to use new PerformNCCalc method
1661 - Added calls to RequestNCRecalc when menus and borders are changed
1662 to allow app to set NC size. (Part of fix for #77729) This matches
1663 when MS send a WM_NCRECALC on Win32 windows.
1664 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1665 (Part of fix for #77729). This matches what MS does, they also
1666 send that message when the form is made visible.
1667 - XException.GetMessage: Improved usability of X errors by including
1668 a translation of the window into Hwnd and Control class
1669 - Improved debug info for window creation, reparenting and destruction
1670 - Created helper method WindowIsMapped() [Currently not used]
1671 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1673 - CreateParams: Now setting our menu on the new internal menu field
1674 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1675 avoid calculating the same property twice
1677 - Improved usability of ToString() for debugging purposes
1678 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1679 determine the height of the menu, instead of just the font. This
1680 required to also create a graphics context and to keep a bmp
1681 around (for performance reasons)
1683 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
1685 * MenuAPI.cs: Added OnMouseUp method
1687 - Now remembering the requested client size, avoids size errors
1688 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1689 instead of base if the menu is active. This is required due to
1690 control now capturing and releasing on down/up and it would
1691 prematurely release our menu capture
1693 2006-03-17 Jackson Harper <jackson@ximian.com>
1695 * KeyboardLayouts.cs: Add the czech layouts.
1697 2006-03-16 Jackson Harper <jackson@ximian.com>
1699 * Control.cs: Use the viewport space when sizing not the controls
1700 client size, so things like ScrollableControl that effect the
1701 viewport size (when scrollbars are added) are computed correctly.
1702 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1704 - Handle creating BindingManagers for null data sources.
1705 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1706 source, otherwise when rows are added they are added to the 'fake'
1707 datasource and we will crash when trying to set the position in
1709 - Use Implicit scrollbars on the datagrid so they arent
1712 2006-03-16 Jackson Harper <jackson@ximian.com>
1715 * InternalWindowManager.cs:
1716 * MdiWindowManager.cs:
1717 * X11Keyboard.cs: I really want Mike to love me again (fix
1720 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
1723 - OnMouseDown: Switch to editing mode when clicking on the cell
1724 even if we're clicking on the cell that's currently
1726 - ProcessGridKey: Left/Right now wrap like MS.Net does
1727 - ProcessGridKey: Tab now knows to add a new row when tab is
1728 pressed in the cell of the last column of the
1730 - ProcessGridKey: Enter now adds another row if pressed in the last
1731 row and selectes the new row, same column cell
1732 - ProcessGridKey: Home/End navigate columns, not rows, like
1733 originally implemented
1734 - Broke ProcessKeyPreview code out into an extra Internal method
1735 so it can be called from the edit code
1736 * DataGridTextBox.cs (ProcessKeyMessage):
1737 - Switched to accept Tab keypresses
1738 - Added F2 handling to allow jumping to the end of the edited cell
1739 - Added logic to allow moving caret left/right inside edited cell
1740 and making the edited cell jump when the caret hits cell borders
1741 - Tab and Enter are now passed to the datagrid after being handled
1743 - Removed capture code now that Control handles it
1744 - set_SelectionStart now ensures caret is visible
1746 2006-03-16 Jackson Harper <jackson@ximian.com>
1748 * TrackBar.cs: Debackwards the increment/decrement for handling
1749 mouse clicks on the bar with vertical trackbars.
1750 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1753 2006-03-16 Mike Kestner <mkestner@novell.com>
1755 * ListView.cs: make shift/ctrl keyboard and mouse selection
1756 consistent with the MS control. Fix a bug in
1757 SelectedListViewItemCollection.Clear that was pissing me off for the
1758 better part of a day because the collection was being altered
1759 underneath us as we walked the list.
1761 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
1763 * Control.cs: Not sure how we could miss this so long, but it seems
1764 that MS.Net has Capture set all the way from before calling
1765 OnMouseDown through sending the mouse events until after
1766 OnMouseUp. This will fix DataGrid's selection being set to end
1767 at the location of the MouseUp.
1769 2006-03-15 Jackson Harper <jackson@ximian.com>
1771 * BindingContext.cs: Check the binding after its added so that it
1772 can initialize the binding managers and hookup to events.
1773 * Binding.cs: Data members seem to sometimes include rows/cols in
1774 the format Row.Column we now take this into account.
1775 - Hookup to the position changed event so we can update the
1776 control when the position has changed in the data set.
1777 * CurrencyManager.cs: Take into account the row/col naming
1778 convention when creating dataset tables.
1779 * BindingContext.cs: Using a newer better way of storing
1780 datasource/datamember pairs. Hopefully this better matches MS for
1781 looking up binding managers.
1784 2006-03-15 Jackson Harper <jackson@ximian.com>
1786 * BindingContext.cs: The currency manager needs the data member
1787 name, if the member is a data set we use the name to find the
1789 * CurrencyManager.cs: When creating the list prefer an IList over
1791 - Attempt to create a DataTable from a DataSet (TODO: might need
1792 some better error checking here, although MS doesn't seem to have much)
1793 - If we have a DataTable create a view and use it as our list.
1795 2006-03-15 Mike Kestner <mkestner@novell.com>
1797 * ListView.cs: keep a matrix of the icon mode layout to facilitate
1798 keyboard navigation. Support Up/Down/Left/Right selection correctly
1799 for all 4 View modes.
1800 * ListViewItem.cs: add internal row/col fields for icon layouts.
1802 2006-03-15 Jackson Harper <jackson@ximian.com>
1804 * TabControl.cs: Redraw the tabs when we resize so their newly
1805 calculated sizes are drawn on screen.
1806 * X11Keyboard.cs: Begginnings of XIM support. We also now support
1807 composite characters.
1808 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1809 - filter events so that composite characters can be created
1811 * X11Structs.cs: Add XIMProperties enum.
1813 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
1815 * Control.cs (BringToFront, SendToBack): Don't use window or handle
1818 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
1820 * Control.cs (PerformLayout): We don't need to consider visiblity
1821 for anchoring, only for docking. This fixes 'whacky' alignment
1822 in listbox and other controls that use implicit scrollbars after
1823 the previous PerformLayout patch
1824 * ListBox.cs: Switched to use implicit scrollbars
1826 2006-03-14 Mike Kestner <mkestner@novell.com>
1830 - chain up the "new event" overrides to base and use
1831 OnEvent to raise them. Part of fix for bug #76509.
1833 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
1835 * FileDialog.cs: Do not select an item in the parent directory
1838 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
1840 * Control.cs (PerformLayout): It would seem that we considered
1841 invisible windows for our layout. Not quite the right thing
1842 to do. Now we don't any longer, thereby fixing bug #76889.
1844 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
1846 * Control.cs (CanFocus): I goofed. A control can have focus
1847 even though it's not selectable. Made it match MS docs.
1849 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
1851 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1852 center by default (fixes #76895)
1853 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
1854 all uses of Border3DSides.All with the explicit ORd together
1855 Left|Right|Top|Bottom because I assume that nobody was aware
1856 that All also implies a center fill. Most places I checked had
1858 * ProgressBarStyle.cs: Added
1860 2006-03-13 Mike Kestner <mkestner@novell.com>
1862 * ListView.cs: fix breakage in drag shadow header positioning
1863 from Peter's csc compilation fix.
1865 2006-03-13 Mike Kestner <mkestner@novell.com>
1867 * ListView.cs: fix NRE produced by backspacing twice in a focused
1870 2006-03-13 Mike Kestner <mkestner@novell.com>
1872 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1874 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
1876 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1878 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1879 the allowed size before making programmatic size changes
1881 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
1883 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
1884 set, metacity is broken and will still use the emty sizes in
1885 the struct. (Fix for #77089)
1887 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
1889 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
1890 WindowExStyles and marked both enums as Flags
1891 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
1892 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
1893 to match WindowStyles split
1895 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
1896 - Updated to match WindowStyles split
1898 - Fixed FosterParent creation, was using ExStyle on the Style field
1899 (This should help with Popup focus issues)
1900 - Updated to match WindowStyles split
1902 2006-03-13 Jackson Harper <jackson@ximian.com>
1904 * MdiWindowManager.cs: Use the system menu height. Fixes some
1905 strange sizing issues.
1907 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
1909 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
1911 - Scroll to caret after inserting text (#77672)
1912 - Make scroll range one pixel higher, fixes off-by-one error (and
1913 makes underlines visible on the last line)
1915 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
1917 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
1918 the keyboard state from being stuck with keys in 'pressed' state when
1919 focus is switched away via keyboard
1920 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
1921 reset the keyboard if no X11 KeyUp events are expected to come
1922 * X11Structs.cs: Switched type of Visible to bool to match driver
1924 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
1927 - Switched caret to be just 1 pixel wide, matches MS and looks less
1929 - Moved caret display 1 pixel down from the top of the control
1931 - InsertCharAtCharet: Update the selection start if moving the caret
1932 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
1933 - No longer always creating the caret when the caret methods are
1934 called. Only the actual ShowCaret/HideCaret will do that now
1935 - Only setting caret visible if the owner control has focus
1936 - UpdateView: Added invalidation-shortcut logic for center and right
1937 aligned text. Previously we'd update all according to the left
1938 logic which caused drawing errors. Also fixed height of invalidated
1939 areas, now properly invalidating the whole area (was off-by-one)
1940 - owner_HandleCreated: Always generate the document when the
1941 handle is created; this ensures that
1943 - Fixed situation where caret would disappear under the right
1944 window border, also improved scrolling behaviour on left-
1946 - Fixed right-aligned textboxes to have a border to the
1947 right instead of the caret being under the right border
1949 - Switched from 'nested' to simple visible/not visible tracking
1950 for caret (part of fix for #77671)
1951 - No longer passing through translated FocusIn/FocusOut messages
1952 since we were notifying too often and the wrong windows. Instead
1953 we just notify our focussed window of receiving or loosing focus
1954 * XplatUIWin32.cs: Switched from 'nested' show/hide
1955 counting for caret to simple visible yes/no behaviour (part of
1958 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
1960 * Mime.cs: Remove debug code...
1962 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
1964 * MimeGenerated.cs: Removed
1965 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
1966 and subclasses) from /usr/(local/)share/mime and
1967 $HOME/.local/share/mime.
1969 2006-03-10 Jackson Harper <jackson@ximian.com>
1971 * MdiWindowManager.cs: Recalc the NC area when a window is
1972 maximized/restored so that the menu area is drawn on forms that
1975 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
1977 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1978 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
1979 us to force a WM_NCCALCRESIZE message being sent. This is needed
1982 2006-03-10 Jackson Harper <jackson@ximian.com>
1984 * Form.cs: We need to use the ActiveMenu when calculating menu
1986 - Fix nullref when the window manager hasn't been created yet.
1987 * Control.cs: Fix nullref when we try to bring a control to the
1988 front that has no parent.
1989 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
1991 - Add a dummy item to the maximized menu so it always has the
1992 correct height. Otherwise when there are no menus we don't get our
1996 2006-03-10 Jackson Harper <jackson@ximian.com>
1998 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2000 * Form.cs: Make the window_state internal so the window managers
2002 - When an MDI child is maximized let its window manager create the
2003 main menu (so it can add its icon).
2004 - Notify the window managers of state changes
2005 - Let the window manager paint its buttons and handle button
2006 clicks on the menu when it is maximized.
2007 * InternalWindowManager.cs: Move the prev_bounds into the mdi
2008 window manager, since tool windows don't use it, only mdi windows.
2009 - Tell the main form that we don't want it to handle NCPAINT
2010 itself to avoid extra painting.
2011 - Handle clicks on a maximized windows menu.
2012 - Handle window state changes
2013 - Handle minimize/maximize clicks correctly by setting the window state.
2014 * MdiWindowManager.cs: Add an icon menu that (the menu you get
2015 when clicking on the forms icon).
2016 - New method to create a forms maximized menu. This is its normal
2018 - Handle window state changes.
2019 - Handle sizing of maximized windows. Maximized windows are just
2020 drawn bigger then the parent visible area. All controls are still
2021 there, they are just outside the visible area (this matches windows).
2022 * MdiClient.cs: No scrollbars when a child window is maximized.
2023 - Let the children windows figure out how big they should be when
2024 sizing maximized windows.
2025 - Implement a version of ArrangeIconicWindows somewhat similar to
2026 Windows version. There are some little differences, but I don't
2027 think any app will rely on the layout of minimized mdi windows.
2029 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2031 * Padding.cs: Several fixes to allow compiling with csc 2.0
2033 2006-03-09 Jackson Harper <jackson@ximian.com>
2036 * MenuItem.cs: Cheap hack so we can add items to the list without
2037 the events being raised. This allows adding mdi items during
2038 drawing. TODO: Should probably find a better time to add the items.
2040 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2042 * ThemeWin32Classic.cs:
2043 - CheckBox_DrawText: Added logic to not wrap if not enough space
2044 is available (Fix for bug #77727)
2045 - RadioButton_DrawText: Added logic not to wrap if not enough
2046 space is available (Fix for bug #77727). Also removed some
2047 duplicate code, DrawString always drawing the regular text
2048 before hitting the if statement.
2050 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2052 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2054 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
2056 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2057 * ContainerControl.cs: Partial implementation of some 2.0 scaling
2058 methods. Moved the new 2.0 properties into alphabetical order with
2059 other properties and added MonoTODO tags
2061 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2063 * AutoScaleMode.cs: Added. Fix build.
2065 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2067 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
2068 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2069 and was requiring premature handle creation for calls from above
2070 * Form.cs, Control.cs: Removed handle arguments from calls to
2071 CalculateClientRect()
2073 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2075 * ListView.cs (HeaderMouseMove): Fix csc compilation.
2076 drag_column.column_rect is MarshalByRef and can't be used that way
2078 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2080 * AxHost.cs: Added deserialization constructor for
2081 AxHost+State (fixes 77743)
2083 2006-03-09 Mike Kestner <mkestner@novell.com>
2086 - Added column drag reordering for details view.
2087 - fixed behavior when mouse is dragged off column and
2088 AllowColumnReorder is false.
2089 * ColumnHeader.cs: clone the format too in Clone.
2090 * Theme.cs: add DrawListViewHeaderDragDetails method.
2091 * ThemeWin32Classic.cs:
2092 - impl new method for drawing drag column shadows and targets.
2093 - support column offset for details mode in DrawListViewItem.
2095 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2097 * TextControl.cs: Reset the char_count when the document is cleared
2098 (Fixes bug reported on mono-winforms mailing list)
2100 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2102 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2103 of calling base we simply process the key ourselves, since both
2104 DefWindowProc and the handled method would set m.Result.
2107 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
2109 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2110 method also moves the window; instead implemented a copy of
2111 Control.ScaleCore (Part of fix for #77456)
2113 - Created new CreateGraphicsInternal method to allow providing
2114 a graphics context when no handle is created without triggering
2115 handle creation. (Part of fix for #77456)
2116 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2118 - Switched Constructor to require TextBoxBase instead of Control (to
2119 allow uncast access to CreateGraphicsInternal)
2120 - Safeguarded use of owner.Handle property. No longer accessing it
2121 unless the handle is already created.
2122 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2123 - Now triggering a recalc when owning control becomes visible
2124 * TextBox.cs, RichTextBox.cs: Switched to use new internal
2125 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2126 premature handle creation (Part of fix for #77456)
2128 - We now only destroy our double-buffering buffers when the
2129 control is resized or disposed, but not when visibility
2130 changes. (The code even re-created them twice every time)
2131 - Now requiring a redraw of the buffer on visibility changes
2132 (fixes bug 77654 part 2)
2133 - Not passing OnParentVisibleChanged up unless the control
2135 - CanFocus: Fixed to match MS documentation
2136 - Focus: Fixed to return actual focus state and to check if
2137 setting focus is legal before setting it
2139 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
2141 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2142 when to draw focus rectangle by looking at parent focus and
2143 selected state instead. This fixes TabPages on Linux sometimes
2144 having none or multiple focus rectangles.
2145 * XplatUIX11.cs (SetFocus):
2146 - Don't set the focus if the same window already has focus
2147 - Use SendMessage instead of PostMessage (like it's Win32
2148 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2149 to match MS behaviour
2150 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2153 2006-03-07 Jackson Harper <jackson@ximian.com>
2155 * PictureBox.cs: Revert line I accidently committed last week.
2157 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
2160 - Added new IsRecreating and ParentIsRecreating properties to
2161 allow testing if RecreateHandle has been called on ourselves
2162 or one of our parents
2163 - WndProc(WM_DESTROY): If our control handle is being recreated
2164 we immediately need to create the handle when receiving the
2165 destroy, that way our child windows find a valid parent handle
2166 when they themselves are being recreated upon WM_DESTROY receipt
2167 (fix for bug #77654 part 1)
2169 - DestroyWindow: WM_DESTROY must be sent to our own window before
2170 notifying any child windows. MS documents that child windows
2171 are still valid when WM_DESTROY is received. (Control now relies on
2173 - Added some fine-grain debug options
2175 2006-03-06 Jackson Harper <jackson@ximian.com>
2177 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2178 box and base calculations off this.
2179 * MdiChildContext.cs:
2180 * MdiWindowManager.cs: Don't need to ensure scrollbars here
2183 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
2185 * Splitter.cs: In situations where the affected control is added
2186 to the parent's control list after the splitter, we would not
2187 populate affected. Now we try populating it on mousedown, if
2188 it's not already set, and force it to be re-set whenever our
2191 2006-03-03 Matt Hargett <matt@use.net>
2193 * Control.cs: implement Control.Padding
2194 * Padding.cs: -Padding.All returns -1 when constructing with the
2195 implicit default ctor
2196 -Padding.ToString() matches MS.NET
2197 * ContainerControl.cs: implement
2198 ContainerControl.AutoScaleDimensions
2199 * ListControl.cs: implement ListControl.FormattingEnabled
2200 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2202 * TabPage.cs: Implement UseVisualStyleBackColor.
2203 * PictureBox.cs: Implement PictureBox.InitialImage.
2205 2006-03-03 Mike Kestner <mkestner@novell.com>
2207 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2208 event declarations to proxy to base event.
2209 * ListViewItem.cs: update to use ItemControl.
2210 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2211 * ThemeWin32Classic.cs: update to new ListView theme API and fix
2212 column header label rendering for 0 width columns.
2214 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
2216 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2217 that causes the control to be created. Fixes #77476.
2219 2006-03-02 Jackson Harper <jackson@ximian.com>
2221 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2224 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
2226 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2227 passed in for the EventArgs (fixes #77690)
2229 2006-03-01 Jackson Harper <jackson@ximian.com>
2231 * ScrollBar.cs: Refresh afterbeing resized.
2233 2006-02-28 Mike Kestner <mkestner@novell.com>
2235 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2236 Clean up a tracker compile warning.
2237 * MenuItem.cs: add internal PerformPopup method.
2240 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2242 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2243 implicit expose) when the text is set to null
2245 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2247 * RichTextBox.cs (FlushText): When newline is true, we always
2248 need to split the line, even if no text is on it and we may
2249 never eat newlines. (Fixes #77669)
2251 2006-02-28 Mike Kestner <mkestner@novell.com>
2253 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
2254 and set Selected instead.
2255 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
2258 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
2260 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2262 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
2265 - Got rid of the panel. All controls are now directly added to
2267 - It is now possible to set a font with the Font property
2268 - MinSize and MaxSize property do now what they should
2269 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2270 - Searching and selecting a font with the font textbox works now,
2271 the same applies to the style and size textbox
2272 - Draw the correct 3D border in the example panel
2273 - Fixed a little mem leak (unused fonts didn't get disposed)
2274 - Many other internal updates/rewrites...
2277 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2280 - InsertRTFFromStream: Added 'number of characters inserted' argument
2281 - set_SelectedRTF: Now using the number of characters to calculate
2282 the new location for the selection and cursor (x/y cannot be used
2283 due to potentially already wrapped text)
2285 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2287 * TextControl.cs: Added property and implemented means to allow
2288 disabling recalculation of a document (can be used to speed up
2289 multiple inserts and is needed to make RTF inserts predictable, see
2291 * RichTextBox.cs: Using the new NoRecalc property of Document to
2292 keep x/y insert locations predictable. Also makes it faster inserting
2295 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
2297 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2298 it's easier for a child control to handle the other messages without
2299 having to duplicate the special functionality
2301 - WndProc: Removed calling base handler for WM_KEYDOWN and added
2302 code to handle processing the key ourselves, in order to get
2303 access to the result of KeyEventArgs.Handled. We now only call
2304 ProcessKey if they key hasn't been handled already. Fixes #77526.
2305 - set_Text: If null or empty string is given, just clear the
2306 document. Fixes part of #77526
2308 2006-02-27 Jackson Harper <jackson@ximian.com>
2310 * SizeGrip.cs: Paint the background color before painting the grip
2311 so things look right.
2312 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2314 2006-02-27 Mike Kestner <mkestner@novell.com>
2317 - Restructure layout and invalidation model to remove a ton of
2318 flicker from the control and speed up performance in general.
2319 - Add manual column resize, flickers like crazy, but I already have
2320 some ideas on how I'll fix that. (#76822)
2321 - Merge the three Icon-based views into a single layout method.
2322 - Move item selection interaction logic from the item since
2323 interaction with the collections is more appropriate to the view.
2324 - Deselection on non-item clicks.
2326 - Encapsulate most of the layout. Add some internal props to trigger
2327 layout. Move to a model where Items invalidate themselves instead
2328 of just invalidating the whole control every time something changes.
2329 - Invalidate on Text/Caption changes.
2330 - switch to an offset based layout model to avoid having to absolute
2331 position every element on item moves.
2332 - correct checkbox layout to conform to MS layout.
2333 * ThemeWin32Classic.cs:
2334 - refactor some column header drawing code.
2335 - fix string justification for column headers (#76821)
2336 - make SmallIcon labels top justified for compat with MS impl.
2337 * ThemeClearlooks.cs:
2338 - adjust to new ListViewItem internal checkbox bounds api.
2340 2006-02-27 Jackson Harper <jackson@ximian.com>
2342 * Control.cs: Change where implicit controls fall in the zorder.
2343 They are now on top of all children.
2344 - Synced AddImplicit code with Add
2345 - Removed unused enumerator.
2346 * SizeGrip.cs: Remove the TODO as its been TODONE.
2348 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
2350 * TextControl.cs(Insert): Combine the last lines unless the insertion
2351 string ends with \n\n, otherwise we leave one line too many (Fixes
2352 something I noticed with the testapp for #77526; the bug itself was
2353 already fixed in the previous checkin)
2355 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
2358 - SelectionColor and SelectionFont methods no longer set absolute
2359 styles. Instead, the keep font or color respectively (This
2360 resolves a long-standing FIXME in the code)
2361 - When flushing RTF text, the insert code now considers text trailing
2362 behind the insertion point (Fixes the bug where when replacing
2363 the selected text via SelectedRTF the remainder of the line behind
2364 the selection would stay on the first insertion line)
2366 - AppendText now updates the selection points after inserting text
2367 - AppendText now ensures that the last tag (sometimes 0-length) of
2368 the document is used for the style information (Fixes part of
2371 - Created new FontDefiniton class to allow describing partial style
2373 - StreamLine() now takes a lines argument, to allow it to decide
2374 whether an encountered zero-length tag is the last in the document
2375 (which must be kept to not loose the font/color contained in it,
2377 - Created Combine() and Split() methods for Marker structs, to
2378 support marker updates due to reformatted documents (soft line
2380 - Implemented Document.CaretTag setter
2381 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2382 of the last line (Not the cause, but also exposed by bug #77220)
2383 - Added LineTag argument to InsertString method, to allow callers
2384 to force a certain tag to be used (required to force use of the
2385 trailing zero-length tag of a document)
2386 - Now updating markers in Combine(), to avoid stale tag markers
2387 - Added some method descriptions to aid maintenance
2388 - Implemented new FormatText concept, allowing additive/subtractive
2389 formatting by only specifying the components that are to be
2390 changed. This was needed for resolving the RTB.SelectedColor/
2391 RTB.SelectedFont fixmes
2392 - Added Break() support method to allow breaking up linetags (used
2393 for partial formatting)
2394 - Added GenerateTextFormat() method. It is used for partial
2395 formatting and allows to generate a full font/color from given
2396 attributes and an existing tag.
2398 2006-02-26 Jackson Harper <jackson@ximian.com>
2400 * XplatUIX11.cs: Use the correct caption height.
2401 - Translate hittest coordinates to screen coords to match MS.
2402 * XplatUIWin32.cs: When we create MDI windows we need to reset
2403 some of the style flags, so we get a nice blank window, and can
2404 draw all the decorations ourselves.
2405 - Set a clipping rectangle on the non client paint event, the
2406 window manager drawing code needs one.
2407 * Form.cs: The window manager needs to know when the window state
2409 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2410 don't need to factor in border and title sizes in these
2411 methods. TODO: Remove the args and fix the call points.
2412 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2414 - Let the driver set the cursors.
2415 - Improve active window handling
2416 - Correct sizes for title bars and buttons.
2417 - Match MS drawing better
2418 * MdiWindowManager.cs: We don't need to handle border style
2419 updates specially anymore.
2420 - Check for scrollbars when windows are done moving
2421 - Handle Active properly.
2422 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2423 correctly. I am spewing the exception though, so we don't hide the
2426 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
2428 * DataGridViewRowPostPaintEventArgs.cs,
2429 DataGridViewCellPaintingEventArgs.cs,
2430 DataGridViewRowCollection.cs,
2431 DataGridViewRowPrePaintEventArgs.cs,
2432 DataGridViewCell.cs: Clear a few warnings and implement a few
2433 exceptions that should be thrown.
2435 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2437 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2438 'inheriting' our parent's (non-default) cursor. (Part of
2441 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2443 * XplatUIX11.cs: Fixed cast to make csc happy
2445 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
2447 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2448 it's for the client area (part of fix for #77479 and needed
2449 for MDI window cursor handling)
2451 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2452 the appropriate default cursors and also passing the message
2454 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2455 for non-client areas
2457 2006-02-15 Jackson Harper <jackson@ximian.com>
2459 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2460 is a real MDI window
2462 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
2464 * X11DesktopColors.cs: Instead of checking the desktop session
2465 string for "KDE" check if it starts with "KDE"
2467 2006-02-10 Jackson Harper <jackson@ximian.com>
2469 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2472 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
2474 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2477 - Got rid of the panel. All controls are now directly added to
2479 - Changed to mono coding style
2481 2006-02-10 Jackson Harper <jackson@ximian.com>
2483 * InternalWindowManager.cs: We don't need the set visibility to
2484 false hack anymore now that peter has written beautiful shutdown
2487 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
2489 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2490 where already explicitly destroyed
2492 2006-02-10 Jackson Harper <jackson@ximian.com>
2494 * MdiClient.cs: Handle the case where windows are too high or to
2495 the left and we need scrollbars.
2497 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
2499 * MimeIcon.cs: Added some icons
2502 - Got rid of the panel. All controls are now directly added to
2504 - Changed to mono coding style
2505 - On Linux "My Computer" and "My Network" will now show some
2506 more usefull information. A new class, MasterMount, gathers
2507 this information from /proc/mount. Updated MWFFileView to make
2508 use of this information
2509 - Fixed a bug that caused FileDialog to crash when
2510 ".recently_used" file had a zero size
2511 - FilterIndex does now what it should
2513 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2516 2006-02-09 Jackson Harper <jackson@ximian.com>
2518 * ComboBox.cs: Don't touch if null.
2520 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
2522 * Cursor.cs: 64bit safeness fix
2523 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2525 2006-02-09 Jackson Harper <jackson@ximian.com>
2527 * Form.cs: If a form is made into an MDI form update the styles so
2528 all the props can get set correctly.
2529 - Kill the mdi_container when we dont need it anymore.
2530 * InternalWindowManager.cs: Add missing NOT
2532 2006-02-08 Jackson Harper <jackson@ximian.com>
2534 * InternalWindowManager.cs: Respek clipping when drawing MDi
2537 2006-02-08 Jackson Harper <jackson@ximian.com>
2539 * Hwnd.cs: Add bits to track non client expose events.
2540 * XplatUIX11.cs: Track non client expose events on the hwnd. This
2541 gives us a proper invalid rect and will allow for some nice
2542 optimizations with NC client drawing
2543 - MDI windows are children windows, so move their style handling
2544 into the child window block.
2545 * InternalWindowManager.cs: Remove a state reset that was
2546 getting invoked at the wrong time. Fixes managed windows getting
2547 into a 'stuck' captured state.
2549 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
2551 * TextControl.cs (Document.ctor): Now initializing
2552 selection_anchor. Fixes #77493
2554 2006-02-07 Jackson Harper <jackson@ximian.com>
2556 * TrackBar.cs: The increment/decrements were backwards.
2558 2006-02-07 Mike Kestner <mkestner@novell.com>
2560 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2561 to the instance itself.
2563 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
2565 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2566 on ulongs and pointers, the size differs between 32bit and 64bit
2569 2006-02-07 Mike Kestner <mkestner@novell.com>
2571 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2572 for 64 bit platforms to work around a metacity bug.
2574 2006-02-07 Jackson Harper <jackson@ximian.com>
2576 * TrackBar.cs: Process the input keys we need, and hookup to
2577 KeyDown instead of using WndProc, so we get key messages.
2579 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
2581 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2583 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2584 we need to translate the XdndVersion atoms array before sending it
2586 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
2589 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2590 number of bits for the property, not the number of bytes. The
2591 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2592 but would not crash since it specified 8 bits instead of 4 bits)
2593 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2594 defined as XID -> long in the C headers)
2595 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
2596 references since those are now IntPtr to begin with
2597 - Switched all Atom.XXX 'int' casts to IntPtr casts
2598 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2599 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2600 - Added XChangeActivePointerGrab DllImport (for X11DnD)
2602 - Changed 'int' type for Atoms in XEvent structures to IntPtr
2603 - Changed atom in HoverStruct to be IntPtr
2605 - Removed local DllImports, switched code to use those from XplatUIX11
2606 - Removed/fixed casts related to the switch of Atom to be a IntPtr
2608 2006-02-06 Mike Kestner <mkestner@novell.com>
2610 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
2611 method signatures in the import region. There may still be some
2612 lingering struct marshaling issues, as I didn't drill down into those.
2615 2006-02-06 Jackson Harper <jackson@ximian.com>
2617 * ComboBox.cs: Dont manually set the top_item, this is computed
2618 when the scrollbar position is set.
2620 2006-02-06 Mike Kestner <mkestner@novell.com>
2622 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2623 startup crashes on amd64. There's other fixes needed. All pinvoke
2624 usage of Atom needs to be mapped to IntPtr for example. And there are
2625 likely other int/long issues to be addressed.
2627 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
2629 * FileDialog.cs: One more...
2631 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2633 * FileDialog.cs: Next try
2635 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2637 * FileDialog.cs: First part of fix for #77464
2639 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
2641 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2642 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2643 AcceptButton border drawing.
2645 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
2647 * Form.cs: Moved positioning of form after auto scaling is applied,
2648 otherwise it would possibly use wrong form size.
2650 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
2652 * Control.cs (RecreateHandle): No need to re-create any child
2653 controls, the child windows will get destroyed automatically by
2654 the windowing system or driver, and re-created when the handle
2655 is being accessed the first time. Fixes #77456
2656 * Form.cs: No longer setting the form to closing if the handle is
2657 being recreated. This seems like the right thing to do, don't
2658 have a bug or testcase for this, though.
2660 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
2662 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2663 controls to avoid unwanted side effects
2665 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
2668 - ScaleCore needs to scale the bounds, not the ClientSize of the
2669 control. Fixes #77416.
2670 - DefaultSize is 0,0 for control
2672 - DefaultSize is 100, 20
2673 - SetBoundsCore: Now enforcing the height, no matter if the provided
2674 height is more or less than the preferred one, as long as AutoSize
2676 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2678 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
2681 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2682 call unless both performLayout is true *and* we have a pending
2684 - ResumeLayout: MS does not completely nest Suspend and Resume,
2685 they bottom out at 0, fixed our code to match that.
2686 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2687 SetBoundsCore, we were updating even when we shouldn't. This fixes
2688 swf-anchors mis-anchoring when resizing the app fast and lots.
2689 - UpdateDistances: Now only setting the left and top distance if
2690 we have a parent and are not suspended, this is based on
2691 a suggestion by Don Edvaldson in bug #77355.
2692 - OnVisibleChanged: Fixed logic when to create the control. We may
2693 not create the control if we have no parent or if it's not visible;
2694 switched to using Visible property instead of is_visible field
2695 since the property also considers parent states. This fixes a bug
2696 when starting Paint.Net
2698 2006-02-02 Jackson Harper <jackson@ximian.com>
2700 * Form.cs: If the forms handle hasn't been created yet don't call
2701 into xplatui to make it top most, just set the topmost flag on the
2702 form in CreateParams
2703 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2705 2006-02-01 Jackson Harper <jackson@ximian.com>
2707 * ScrollableControl.cs: Refactored the Recalculate method a
2708 little, this wasn't handling all the variants of bottom and right
2709 bars needed to be added and added/removed based on their
2710 counterparts being added/removed (which changes the drawable
2711 size). Also we special case client widths and heights of 0 and
2712 don't add the scrollbar for those.
2714 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
2717 - Added method to get AbsoluteGeometry(); currently unused, but might
2718 be used in the future, if we try again to figure out toplevel
2719 coordinates with some more crappy window managers
2720 - Added FrameExtents() method to retrieve the WM set decoration size
2721 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
2722 to deal with at least KDE, FVWM and metacity (Fixes #77092)
2724 - Added whacky_wm tracking var for metacity
2725 - Added logic to have default menu height if the actual menu height
2726 has not yet been calculated (part of fix for #77426)
2727 * Form.cs: Keep track whether client size has been set and re-set
2728 it if a menu is added/removed afterwards (Fixes #77426)
2730 2006-01-31 Jackson Harper <jackson@ximian.com>
2732 * Control.cs: When a new Site is set on the component attempt to
2733 pull the AmbientProperties from it.
2735 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
2737 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2738 in the background of the owning form. Fixes #77332
2740 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
2742 * MimeIcon.cs: Fix for #77409
2744 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
2746 * XplatUIX11GTK.cs: Initial import
2748 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
2750 * FixedSizeTextBox: fixes class signature
2752 2006-01-30 Jackson Harper <jackson@ximian.com>
2754 * FixedSizeTextBox.cs: New internal class that represents a
2755 textBox that will not be scaled.
2758 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2761 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
2763 * XplatUIX11.cs: Retrieve default screen number instead of
2764 assuming 0. Attempted fix for #77318
2766 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
2769 - GetWindowPos: When a window is parented by FosterParent, use
2770 the desktop instead of FosterParent as the base to get coordinates
2771 - CreateWindow: Don't make FosterParent the parent window for Popups
2772 if we don't want a taskbar entry, Popups automatically don't get one
2773 * Hwnd.cs: Need to call remove to actually remove the key from the
2776 2006-01-30 Mike Kestner <mkestner@novell.com>
2778 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2780 2006-01-30 Jackson Harper <jackson@ximian.com>
2783 * TreeNode.cs: Raise events no matter how the treenode is
2784 checked. Patch by Don Edvalson.
2786 2006-01-30 Jackson Harper <jackson@ximian.com>
2788 * TreeNode.cs: Signature fix.
2790 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
2792 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2794 2006-01-20 Mike Kestner <mkestner@novell.com>
2796 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2797 event forwarding when menus are active.
2798 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
2799 Most of the patch is pdb's with a little rework.
2801 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
2803 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
2804 Removed GetMenuDC and ReleaseMenuDC methods; replaced
2805 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2806 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2807 * InternalWindowManager.cs: Added use of PaintEventStart/End to
2808 handling of WM_NCPAINT message, now passing the PaintEventArgs to
2809 the PaintWindowDecorations method
2810 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2811 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2812 * MenuAPI.cs: Made tracker window invisible
2814 - Removed GetMenuDC and ReleaseMenuDC methods
2815 - Implemented the client=false path for PaintEventStart and
2818 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
2820 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2821 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2824 - MaximizeBox, MinimizeBox: Recreate the handle when setting
2826 - CreateParams: Reworked the styles to match MS look'n'feel,
2827 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2828 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2830 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
2832 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
2833 window is not mapped, since otherwise every form that's being
2834 created is considered minimized, which is wrong.
2835 * Form.cs: Catching the exception and returning our internal value
2838 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
2840 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2841 SetWindowMinMax() to have means to tell the driver about the minimum,
2842 maximum and maximized state window sizes. (Part of the fix for #76485)
2844 - Implemented tracking of minimum and maximum window size, now calling
2845 new SetWindowMinMax() driver method to tell the driver (Part of the
2847 - Finished handling of WM_GETMINMAXINFO method, now setting all values
2848 (Completes fix for #76485)
2849 - Calling new SetWindowMinMax driver method when the handle for a
2850 form is created, to make sure the driver knows about it even if
2851 the values have been set before the window was created
2852 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2853 to avoid messing up our anchoring calculations (partial fix
2855 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2857 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2858 - Improved GetWindowState() to detect 'Minimized' state on Metacity
2859 (and presumably other freedesktop.org compliant WMs). Left the
2860 assumption unmapped=minimized, needed for SetVisible to work.
2861 - Now setting the window state when creating windows
2862 - Fixed SetVisible to consider/set the window state when mapping
2863 a Form. We cannot set the state before it's mapped, and we cannot
2864 use Form.WindowState once it's mapped (since it would ask the
2865 driver and get 'normal'. Therefore, we grab the state before
2866 mapping, map, and then set state.
2867 - Implmemented SetWindowMinMax method; Metacity does not seem to
2868 honor the ZoomHints, though.
2870 - Removed MINMAXINFO (moved to XplatUIStructs)
2871 - Added SetWindowMinMax stub (on Win32 the only way to set that
2872 information is in response to the WM_GETMINMAXINFO message, which
2873 is handled in Form.cs)
2874 - Added logic to SetVisible to set the proper window state when a
2875 form is made visible (fixes #75720)
2877 2006-01-26 Jackson Harper <jackson@ximian.com>
2879 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2880 same way we handle them with Invoke.
2882 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
2885 - Added tracking of window state so CreateParams can return
2886 the appropriate style
2887 - Moved setting of WS_CAPTION style in CreateParams to allow
2888 styles without caption
2889 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
2890 control if the TextBox property is accessed. Fixes #77345
2892 - get_Created: now uses is_disposed and is_created to determine
2893 return value (suggested by Jackson)
2894 - CreateHandle: No longer exits if the handle is being recreated
2895 - RecreateHandle: If the handle is not yet created call the
2896 appropriate method to create either control or handle. If the
2897 control is already created CreateHandle will simply exit instead
2898 of just creating the handle
2899 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
2900 now SendMessage WM_DESTROY directly to the control when DestroyWindow
2903 - When DestroyWindow is called, instead of waiting for the
2904 DestroyNotification from X11, we directly post it to the WndProc
2905 and immediately dispose the hwnd object.
2906 Same applies to DestroyChildWindows, and this obsoletes the
2907 expose_pending tracking. Contrary to Win32 behaviour we destroy our
2908 child windows before our own, to avoid X11 errors.
2909 - Removed the direct sending of WM_PAINT on UpdateWindow
2911 - Reworked DoEvents and GetMessage to allow access to internal queue
2912 even when trying non-blocking access to the queue. Fixes #77335.
2913 Based on a patch suggestion by Don Edvalson. The new private
2914 GetMessage can now also be used as a backend for a PeekMessage
2916 * XplatUI.cs: Improved debug output for CreateWindow
2918 2006-01-25 Jackson Harper <jackson@ximian.com>
2920 * Help.cs: Allow param to be null. Patch by Don Edvalson.
2922 2006-01-24 Jackson Harper <jackson@ximian.com>
2924 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
2925 when we have a MaxDropItems lower then the selected index.
2927 2006-01-24 Jackson Harper <jackson@ximian.com>
2929 * Control.cs: Don't allow selection of non visible controls, allow
2930 selection of controls without parents.
2932 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
2934 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
2935 * DataGridDrawingLogic.cs: Add editing row only when is necessary
2937 2006-01-23 Jackson Harper <jackson@ximian.com>
2939 * UpDownBase.cs: Make the textbox handle all the selection and
2940 tabbing. This fixes tabing to updown controls.
2942 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
2944 * TextBoxBase.cs: fixes exception thown the object was null
2946 2006-01-23 Jackson Harper <jackson@ximian.com>
2948 * ButtonBase.cs: Just use the base CreateParams. They set
2949 visibility and enabled correctly.
2952 * MonthCalendar.cs: Lets let the base set as much of the
2953 createparams as possible so we don't have duplicate code all over
2956 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
2958 * ThemeGtk.cs: Added TrackBar and some experimental code to
2959 get double buffering back
2961 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
2963 * DataGrid.cs: Allows row number set internally higher than the last
2964 when creating a new row. Restores the editing functionality.
2966 2006-01-20 Mike Kestner <mkestner@novell.com>
2968 * MimeIcon.cs: delay Image creation until the icons are accessed
2969 instead of creating 190 scaled images on GnomeHandler startup.
2971 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
2973 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
2974 first call base before processing the event. Fixes #77279
2976 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
2978 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
2979 that the stride for the GDI bitmap would match the stride of
2982 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
2984 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
2986 2006-01-19 Jackson Harper <jackson@ximian.com>
2988 * ComboBox.cs: Hookup the text controls keydown event so we get
2989 those when the text control has the focus.
2991 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
2993 * Label.cs: Now using the base events instead of defining new ones;
2994 this allows us to just call the base properties without having to
2995 duplicate all base property logic
2997 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
2999 * Label.cs: A label by default is not a tabstop (Fixes one of our
3000 failing nunit tests)
3002 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3004 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3005 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3007 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
3009 * Cursor.cs: Reimplemented creating cursor bitmaps without using
3010 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3013 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
3014 constructor creates images that can't be saved. Part of the fix
3016 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3017 - SetWindowState: Switched ShowWindow flags (part of an upcoming
3018 bug fix for handling window state in forms properly)
3020 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3022 * ThemeGtk.cs: Simplify ScrollBar drawing
3024 2006-01-18 Jackson Harper <jackson@ximian.com>
3026 * Splitter.cs: Set the default dock style for the splitter control
3029 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3031 * ThemeGtk.cs: Corrected StateType and ShadowType for
3034 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3036 * Control.cs: Make use of Theme.DoubleBufferingSupported
3038 - Added drawing for flat style buttons
3039 - Added ScrollBar drawing
3041 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
3043 * ThemeClearlooks.cs: Removed some unneeded code.
3044 * ThemeGtk.cs: First part of ThemeGtk enhancements.
3046 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
3048 * LinkLabel.cs: We need to update the hover drawing when
3049 leaving the control as well.
3051 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
3053 * DataGrid.cs: Clicking on non empty areas in the columns
3054 area was giving an exception
3056 2006-01-17 Jackson Harper <jackson@ximian.com>
3058 * ThemeWin32Classic.cs:
3059 * ListView.cs: Do not draw/clip the headers when the header style
3062 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
3064 * DataGrid.cs: Fixes 77260
3066 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
3068 * DataGrid.cs: Clicking on a column on a empty grid was giving
3071 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
3073 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3074 or any keypress will crash the grid.
3076 2006-01-17 Mike Kestner <mkestner@novell.com>
3078 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3079 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
3080 invisible/previously-visible items.
3083 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
3085 * ThemeClearlooks.cs:
3086 - Added CL_Draw_Button method; now other theme controls that are
3087 not derived from button or do not have a button can draw buttons
3089 - Updated ComboBox drawing
3090 - Beautified RadioButton drawing
3091 - Corrected drawing of bottom and left tabs
3092 - Beautified DateTimePicker and MonthCalendar
3093 - Added CPDrawButton and CPDrawRadioButton
3095 2006-01-16 Jackson Harper <jackson@ximian.com>
3097 * ComboBox.cs: Set the initial value of the scrollbar to the
3098 current index. Reduce the numbers of refreshs and IndexOfs called.
3100 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
3102 * FileDialog.cs: When the file listview is focused hitting the
3103 backspace key moves the fileview to the parent directory
3105 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3108 - Added RecreateHandle call when changing taskbar visibility to
3109 trigger reparenting in Win32 driver (Fixes #75719)
3110 - If a window has minimize or maximize buttons, it cannot have
3113 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3114 the toplevel form with FosterParent (A toolwindow not on the
3115 taskbar) (Fixes #75719)
3116 - Made FosterParent a toolwindow
3118 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3120 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3122 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3124 * ToolTip.cs: If SetToolTip is called from a control and the mouse
3125 is currently over that control, make sure that tooltip_window.Text
3128 2006-01-13 Mike Kestner <mkestner@novell.com>
3130 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3132 2006-01-13 Jackson Harper <jackson@ximian.com>
3134 * TreeView.cs: On MS GetNodeAt never actually factors in the X
3135 value passed. Also redraw the selected node when we recieve
3136 focus, so tabbing between trees works correctly.
3138 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
3140 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3141 ~/.gconf/%gconf-tree.xml, so use
3142 .gconf/desktop/gnome/interface/%gconf.xml
3144 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3146 * TextControl.cs: Draw text in gray if control is disabled
3148 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3150 * TreeView.cs: Draw the focus rectangle outside the highlight, to
3151 make sure it's always visible. Fixes #76680.
3153 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
3155 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3157 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
3159 * PageSetupDialog.cs: Added.
3160 * PrintDialog.cs: Attributes.
3161 * PrintPreviewControl.cs: Updates.
3162 * PrintPreviewDialog.cs: Updates.
3164 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3166 * Control.cs: Undid my selection check fix, since it's not needed
3168 - Now considering the presence of hscroll/vscroll when sizing
3169 vscroll/hscroll respectively. Fixed bug #77077
3170 - Added Left/Up/Down/Right to IsInputKey list to prevent
3171 ContainerControl from stealing them. This fixes what I broke
3172 with my last checkin.
3174 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3176 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3177 I finally understand how the property can be set without a setter :-)
3179 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3182 - Switched RunLoop to use static Message.Create to create a
3184 - Added PreProcessMessage call in runloop for keyboard events; this
3185 is part of the fix for #77219, I overlooked this originally in the
3186 MSDN doc for PreProcessMessage
3188 - Removed call to PreProcessMessage from handling of keyboard
3189 messages; it's supposed to be done in the message pump
3190 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3191 per MSDN documentation.
3192 - IsInputChar: All chars are input chars by default; removed the
3193 parent calling chain, MS does not document that
3194 - PreProcessMessage: If IsInputChar is true, we want to return false
3195 to allow dispatching of the message
3196 - When selecting the next control, now also check that we're not
3197 selecting ourselves again and therefore return a false positive.
3199 - Tried to match return values for IsInputKey and ProcessDialogKey
3200 to what MS returns; moved processing of our special keys outside
3201 ProcessDialogKey since MS does not seem to return true on those.
3202 - Moved code that previously was in ProcessDialogKey into new private
3203 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3204 - Reworked handling of WM_CHAR to not have to duplicate code from
3205 Control.cs anymore, instead we simply call down to base.
3207 2006-01-12 Jackson Harper <jackson@ximian.com>
3209 * ComboBox.cs: We always need to refresh the text area when
3210 EndUpdate is called. Fixes the combobox in the file dialog.
3211 * Control.cs: Don't create the creator_thread until the controls
3212 handle is created. Also in InvokeRequired we check if the
3213 creator_thread is null. This gives the effect of InvokeRequired
3214 returning true if the controls handle is not created yet, and
3217 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3220 - Added StartLoop() driver method. This is used to allow drivers to
3221 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3222 loop for a particular thread
3223 - Added EndLoop() driver method. This is called once the message
3224 pump for the thread is shut down
3225 - Added SupportsTransparency method to allow the driver to indicate
3226 opacity support for windows
3228 - Removed TODO attribute, completed AllowTransparency property
3229 - Added documented logic to Opacity
3230 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3231 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3232 versions of CompatibleTextRendering
3233 * X11Structs.cs: Added opacity atom to our atom enumeration
3234 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3235 of a form might be set before it's reparented by the WM, and we need
3236 the opacity value without calling up to Form)
3237 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
3238 SupportsTransparency() driver methods
3239 * Application.cs: Now calling StartLoop and EndLoop driver methods
3241 - Added opacity atom registration
3242 - Added StartLoop()/EndLoop() methods. They're empty right now but
3243 will need to get implemented when we switch to a per-thread queue
3244 - Implemented SupportsTransparency() method
3245 - Implemented SetWindowTransparency() method
3246 - Added support for setting the opacity value when a window is
3247 reparented (since the opacity needs to be set on the WM frame)
3248 * XplatUIOSX.cs, XplatUIWin32.cs:
3249 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3251 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
3253 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3255 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
3257 * FileDialog.cs: Added ToolTip for MWFFileView
3258 * MimeIcon.cs: Rewrote GnomeHandler.
3259 - Get currently used gnome icon theme from
3260 ($HOME)/.gconf/%gconf-tree.xml
3261 - Make use of inherited icon themes
3262 - Support SVG icon themes like Tango via librsvg
3264 2006-01-12 Miguel de Icaza <miguel@novell.com>
3266 Revert's Jackson's revert which broke 2.0 builds. Fix both
3269 * Application.cs: Move the use_compatible_text_rendering outside
3270 the NET_2_0 define. If we ever need to use the
3271 use_compatible_text_rendering on the individual controls they will
3272 access the variable from the common shared code paths.
3274 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
3277 - Added more granular debug options
3278 - Added method to print both window text and id
3279 - Switched debug output to use new Window() debug method
3280 - Added IsEnabled() driver method
3281 - Added EnableWindow() driver method
3283 - Removed end_modal; no longer needed, new loop handles termination
3284 via 'closing' variable
3285 - If form is modal, setting DialogResult will now initiate loop
3286 termination via 'closing' variable
3287 - Added support for is_enabled/WS_DISABLED to CreateParams
3288 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3290 - Removed code that's now in RunLoop from ShowDialog()
3291 - Added various documented sanity checks to ShowDialog()
3292 - Added handling of WM_DESTROY message; we set 'closing' on getting
3293 the message to indicate the message pump to terminate
3294 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3295 send by the Application.ExitThread method. (We send the message
3296 to destroy the window after all other events have been
3297 processed through the queue, instead of destroying the handle
3299 - Moved code from Close() method to WM_CLOSE handler; added logic
3300 to only send close-related events if the form is not displayed
3302 * Splitter.cs (..ctor): Fixed typo in resource name
3304 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3306 - set_Cursor: Now only setting calling into XplatUI if the handle for
3307 the control is already created; this avoids implict handle creation
3308 or crashes if it's not created
3309 - set_Enabled: Now setting the enabled state via the new driver method
3310 instead of just tracking it
3311 - CreateParams: Added logic to set WS_DISABLED based on enabled state
3312 - CreateControl: Reordered event firing and method calls to more
3313 closely fire events in the order MS does. Now setting the
3314 enabled state in the driver when creating the control.
3315 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3317 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3318 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
3319 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3321 - Added tracking of window enabled state (get_Enabled/set_Enabled)
3322 - Added EnabledHwnd property to easily allow a driver to find the
3323 handle of the first enabled window in the parent chain (this is
3324 used by drivers to pass up input events of disabled windows)
3325 * XplatUIDriver.cs: Added IsEnabled() method
3327 - Removed crude and obsolete exiting tracking variable
3328 - Removed internal ModalRun(); replaced by RunLoop()
3329 - Implemented private CloseForms() method to allow closing all
3330 windows owned by a particular (or all) threads
3331 - Exit() now properly closes all windows without forcing the message
3333 - Removed obsolete InternalExit() method
3334 - Changed Run() methods to use new RunLoop() message pump
3335 - Implemented new RunLoop() method for both modal and non-modal forms
3337 - get_CreateParams: Added setting of WS_DISABLED
3338 - Simplified ShowDialog(); now all the work is done in RunLoop(),
3339 invoked via Form.ShowDialog()
3340 * NativeWindow.cs: We don't remove the window from the collection when
3341 the handle is destroyed; there might still be messages for it in the
3342 queue (mainly the resulting WM_DESTROY); instead it will be removed
3343 when Control calls InvalidateHandle in the WM_DESTROY handler
3345 - CreateWindow: Added logic to handle the WS_DISABLED window style
3346 - EnableWindow: Implemented based on Hwnd.Enabled
3347 - GetMessage: Reset PostQuitState so the method can be called again
3348 - Implemented support for disabled windows (passing messages to the
3349 first enabled parent) in handling all input messages
3350 - Added optimizations for handling Expose events
3351 - Implemeted new driver method IsEnabled()
3352 - Now always resetting paint pending tracking vars when we start paint
3353 - Re-implemented UpdateWindow via just sending a WM_PAINT message
3354 * XplatUIOSX.cs: Added IsEnabled method stub
3355 * XplatUIWin32.cs: Implemented new IsEnabled() method
3357 2006-01-11 Jackson Harper <jackson@ximian.com>
3359 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3360 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3362 * ColorDialog.cs: Clear out the old form before adding the new
3365 2006-01-11 Jackson Harper <jackson@ximian.com>
3367 * X11Dnd.cs: Make sure to add all the text formats when adding
3368 strings to the data object.
3369 * TreeNodeCollection.cs: When adding to a sorted tree we need to
3370 do some redrawing too. Also change the UpdateNode to an
3371 UpdateBelow so the newly added node gets painted.
3373 2006-01-11 Miguel de Icaza <miguel@novell.com>
3375 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3376 LinkLabel.cs, PropertyGrid.cs: Implement the
3377 UseCompatibleTextRendering property for 2.x
3379 * Application.cs (SetCompatibleTextRenderingDefault): Add.
3381 2006-01-11 Jackson Harper <jackson@ximian.com>
3383 * TreeView.cs: Use the property for setting the selected node so
3384 the correct events get raised.
3385 * TreeNode.cs: Update the tree when the fore/back colours of a
3388 2006-01-10 Jackson Harper <jackson@ximian.com>
3390 * TreeView.cs: Allow setting SelectedNode to null.
3392 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3394 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3396 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3398 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3400 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3402 * PrintDialog.cs: Added attributes and set default property values.
3404 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3406 * PrintControllerWithStatusDialog.cs:
3407 Added PrintControllerWithStatusDialog.
3409 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3411 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
3412 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3414 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
3416 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3418 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
3420 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3421 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3423 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
3425 * MimeIcon.cs: Added internal class SVGUtil.
3427 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
3429 * FileDialog.cs: Don't crash if there are two files with the
3430 same name but different locations.
3432 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
3434 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3435 dates across multiple month grids. Used to not highlight entire
3436 month, but does now.
3438 2006-01-06 Jackson Harper <jackson@ximian.com>
3440 * MonthCalendar.cs: Removed DoEvents call to prevent a running
3441 message loop. Change timer intervals to numbers that seem more
3444 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
3446 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3447 object for location info since screen object is now implemented.
3449 2006-01-05 Jackson Harper <jackson@ximian.com>
3451 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3452 * AsyncMethodResult.cs: We no longer use a WeakReference for the
3453 AsyncMethodResult, this is because we ALWAYS want the
3454 ManualResetEvent to get set.
3455 * Control.cs: When disposing use an async invoke to call shutdown
3456 code, so that thigns don't block on the finalizer thread. Also
3457 check if we even have a message loop before trying to send
3458 messages, if we don't then don't bother sending messages.
3459 - No more weak references for async methods
3460 * XplatUIDriver.cs: No more weak references for async methods.
3462 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3464 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3465 returns two FontFamily with the same name
3467 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
3469 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
3470 drawing disabled text. Instead using the ColorGrayText color
3472 2006-01-04 Jackson Harper <jackson@ximian.com>
3474 * TreeNode.cs: redraw the node when its image index is changed.
3476 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
3478 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3479 time I checked there are no others like it.
3481 2006-01-04 Jackson Harper <jackson@ximian.com>
3483 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3484 this gives the behavoir I was looking for.
3485 * Control.cs: Special case Invoking EventHandlers, this matches MS
3486 and fixes part of bug #76326.
3488 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3490 * ThemeClearlooks.cs, FileDialog.cs:
3491 - Reflect the latest Theme class changes
3492 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
3495 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3497 * Theme.cs: Cache UI resource images and resize them if needed
3499 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3501 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3502 is called. This fixes the crash in Nexxia when setting the font
3503 attributes in the chat. [However, RTF needs a look-over to make sure
3504 that all SelectionXXX methods handle the special case that selection
3505 is empty and therefore the change must be applied to all text starting
3506 at the cursor/selection start]
3508 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3510 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3511 XplatUIOSX.cs: Added SendMessage and PostMessage methods
3512 * X11Keyboard.cs: Switched to new way of calling PostMessage
3514 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
3516 * Theme.cs: Added theme interface for images to allow the theme to
3517 control what images are used for things like FileDialog, MessageBox
3519 * MessageBox.cs: Now uses the new Theme icon/image interfaces
3521 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
3524 - Removed some dead code
3525 - Opening a recently used file does work now
3526 - Small UI enhancements
3529 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
3531 * FileDialog.cs: Forgot too add __MonoCS__
3533 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
3535 * FileDialog.cs: We are able to read recently used files now let's
3536 go on and write them.
3538 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
3540 * FileDialog.cs: Breathe some life into "last open"/"recently used"
3542 * MimeIcon.cs: Do a check for the top level media type also
3544 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
3546 * ThemeClearlooks.cs:
3547 - Added CPDrawStringDisabled
3548 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3549 some chars if the text doesn't fit into text_rect
3550 - DrawListViewItem: If View = View.LargeIcon center the image;
3551 rewrote the drawing of ListViewItem.Text if View =
3554 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
3556 * MimeIcon.cs: Use default KDE icon theme if there is no
3557 "48x48" directory for the current icon theme, fixes #77114
3558 * Mime.cs: Disable not working and actually not used code.
3559 * ThemeWin32Classic.cs:
3560 - Replace "new SolidBrush" in GetControlBackBrush and
3561 GetControlForeBrush with ResPool.GetSolidBrush
3562 - Changed DrawListViewItem from private to protected virtual
3564 - Added form.MaximizeBox = true
3565 - Don't throw an exception if there is a broken symbolic link
3567 2005-12-23 Jackson Harper <jackson@ximian.com>
3569 * TabControl.cs: Give the panels focus, keyboard navigation is
3570 fixed so this works correctly now.
3571 - We need these key events also.
3572 * ToolBar.cs: Remove some of the poor mans double buffering.
3574 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
3576 * ComboBox.cs: The internal TextBox now returns the focus.
3578 2005-12-23 Jackson Harper <jackson@ximian.com>
3580 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
3582 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3584 * Control.cs: Removed debug code
3585 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3588 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3590 * Control.cs: When creating the control, update the Z-order after
3591 all it's children are created, too. (Fixes nexxia not showing
3594 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
3596 * Control.cs: Do not update the anchoring distances if layout is
3597 suspended, instead do it once layout is resumed
3599 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3602 - After many hours of debugging, for both Jackson and
3603 myself, it turns out that it helps to set the parent of a control
3604 if you want to actually see it onscreen. In the spirit of that
3605 discovery, we're now setting the parent of the control and
3606 it's children when the control's handle is created. This fix
3607 will make Lutz Roeder's Reflector run happily.
3608 - now just creating the handle instead of the whole control when
3609 getting a graphics context for the control.
3611 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3613 * ScrollableControl.cs: When calculating the canvas, don't consider
3614 the scrollbar widths. Instead, predict if horizontal scrollbar
3615 will affect canvas when deciding on vertical display and vice versa.
3617 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
3619 * RichTextBox.cs: Set default RTF font for documents that don't
3620 have a font table (Fixes #77076)
3622 2005-12-22 Jackson Harper <jackson@ximian.com>
3624 * TextBoxBase.cs: It's difficult to do, but you can have an empty
3625 clipboard. This prevents a NullRef in that case.
3626 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3627 clipboard. PRIMARY is for the currently selected text only. (We
3628 should implement PRIMARY at some point.
3630 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3632 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3633 a Unicode function with a structure that was defined in Ansi way.
3636 2005-12-21 Jackson Harper <jackson@ximian.com>
3638 * StatusBar.cs: Statusbar handles its fore/back colours on it's
3639 on. Because thats how it rolls. (and this avoids it using ambient
3641 * ThemeWin32Classic.cs: Use the proper back color for filling.
3642 * Menu.cs: Use the system menu bar color for drawing menu
3643 bars. Using the window back color will bring ambient colours into
3646 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
3648 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3649 Bitmaps were created and not disposed.
3651 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3653 * Control.cs (CreateControl): Don't do anything if the control is
3654 already created, otherwise we'd fire the OnCreated event more than
3657 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3659 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3660 will always match. Instead return -1. Fixes #76464.
3662 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3664 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3665 neither the beginning nor the end of the line (Fixes bug #76479)
3667 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
3670 - ControlNativeWindow.ControlFromHandle(): Now handling situation
3671 where handle is invalid
3672 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3673 instead of slower linear search
3674 * NativeWindow.cs: Don't remove the window from the hashtable until
3675 after the driver has destroyed it (since the driver might use
3676 Control.FromHandle to lookup the control object
3677 * Hwnd.cs: Added DestroyPending property to track if a window is
3678 already destroyed as far as the driver is concerned and only hasn't
3679 yet notified the control
3681 - Activate(): Check if the window is still valid before using the
3683 - Implemented DestroyChildWindow() method to mark child windows as
3684 destroyed when a window is destroyed. This prevents situations
3685 where we might call an X method based on queued events for a
3686 window that already has been destroyed but we haven't yet pulled
3687 the destroy method from the queue.
3688 - Added a call to the new DestroyChildWindow() method to the drivers
3689 DestroyWindow code. Also now marking the destroyed window itself
3692 2005-12-20 Jackson Harper <jackson@ximian.com>
3695 * StatusBarPanel.cs: Don't calculate panel sizes on draw
3696 anymore. Just do them when needed, also track the rects of panels
3697 so that we can optimize refreshing more in the future.
3699 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
3701 * ColorDialog.cs: Fixed focus drawing in small color controls
3703 2005-12-19 Jackson Harper <jackson@ximian.com>
3705 * InternalWindowManager.cs:
3706 * MdiWindowManager.cs: Cleanup some coordinate system changes so
3707 moving windows works properly.
3709 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
3712 - Removed call to InitLayout() from SetBoundsCore(); doc says
3713 it's only called when a control is added to a container
3714 - Split InitLayout logic, moved to separate UpdateDistances() method
3715 since we need to perform those calculations more often than just
3716 when adding the control to a container. (Needed to fix #77022)
3717 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3718 - Reduced the OnBindingContextChanged events count, don't send them
3719 unless the control is created, we still aren't totally matching
3720 MS, but I can't quite figure out some of their rules
3722 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
3724 * ThemeClearlooks.cs: Corrected distance between ProgressBar
3727 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
3729 * ThemeClearlooks.cs:
3730 - Updated ProgressBar drawing
3731 - Corrected drawing of ScrollBars and scroll buttons
3732 - Some temporary fixes for minor pixel artefacts
3734 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
3737 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3738 cause events to be sent in the same order as MS does.
3739 - Added ChangeParent() method to trigger various OnXXXChanged events
3740 that need to be fired when a parent changes (This is a reworking
3741 of the patch from r54254, with the X11 errors fixed)
3742 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3743 since on MS we get OnLayoutChanged events when calling Clear()
3744 - Changed Enabled property to consider parent state as well, if a
3745 parent is not enabled, the control will not be either
3746 - Changed Parent property to simply call Controls.Add() since that
3747 now does all the work required, this way we avoid code duplication
3748 - Threw in a few OnBindingsContextChanged calls to try and match
3749 when MS sends them. We seem to send a few too many, though.
3750 - Added call to CreateControl when adding the control to a parent.
3751 We were never calling CreateControl. Still needs some work, in
3752 some places we treat HandleCreated and ControlCreated as equal,
3754 - Removed obsolete commented out code from UpdateZOrder()
3756 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
3758 * ThemeClearlooks.cs: Updated TrackBar drawing.
3760 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
3762 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3764 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
3766 * FileDialog.cs: Add the Help button and the open readonly
3767 checkbox only if needed
3769 2005-12-16 Jackson Harper <jackson@ximian.com>
3771 * Control.cs: Make sure we have an active menu before trying to
3772 process commands on it. Prevents menu-less forms from crashing
3773 when Alt is pressed.
3774 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3776 * RichTextBox.cs: Expand statement to help out gmcs and fix the
3779 2005-12-16 Jackson Harper <jackson@ximian.com>
3781 * InternalWindowManager.cs: Don't translate tool windows screen
3782 coordinates. This fixes windows 'bouncing' around when being moved.
3784 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
3787 - MaxLength now treats 2^31-1 equal to unlimited length (this is
3788 not quite MS compatible, MS uses that number only for single line
3789 and 2^32-1 for multi-line, but I figure it won't hurt keeping
3791 - Now enforcing the MaxLength limit when entering characters
3792 - Added argument to internal Paste() method to track if it's called
3793 from programatically or via keyboard, since keyboard driven pastes
3794 need to enforce max-length
3795 - Added logic to Paste to only paste as many chars as MaxLength
3797 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3799 - Added Length property to return number of characters in document
3800 - Added private CharCount property which only tracks actual chars
3801 in the document (no linefeeds) and fires event when CharCount
3803 - Added tracking of character count to all methods that alter it
3804 - Added LengthChanged event to allow applications to subscribe
3805 to any changes to the document
3807 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
3810 - Removed local password_char field (moved to TextBoxBase)
3811 - Now setting the document's password var when password is
3814 - Added password_char field (needed here so MultiLine can
3816 - Added logic to MultiLine property setter to set the document's
3817 variable when password display is allowed
3818 - Removed debug code and made some debug code conditional
3820 - Added RecalculatePasswordLine() method to handle special password
3822 - Added PasswordChar property, also added related tracking vars
3823 - Draw() method now uses local text var for grabbing text to draw,
3824 this var is set to line.text unless we're doing password display,
3825 then it is set to the pre-generated all-password-chars line
3826 - Added calling RecalculatePasswordLine() method for password lines
3828 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
3831 - Added Reparented property to allow tracking of Window Manager
3832 reparenting actions (which affect X/Y calculations of toplevel
3834 - Made ToString() print window handles in hex
3836 - AddConfigureNotify(): Now uses reparented state off Hwnd to
3837 determine if X/Y needs offsetting
3838 - AddConfigureNotify(): Fixed offset calculations
3839 - Now adds ReparentNotify messages into the queue
3840 - Now processes ReparentNotify messages and causes a
3841 WM_WINDOWPOSCHANGED message to be sent upstream if a window
3842 is reparented (as most likely it's X/Y coordinates are changed
3845 2005-12-14 Jackson Harper <jackson@ximian.com>
3847 * XplatUIX11.cs: Tool windows still need to respek focus.
3849 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
3851 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3852 have a working release
3854 2005-12-13 Jackson Harper <jackson@ximian.com>
3856 * Form.cs: Update styles after setting the border style regardless
3857 of whether or not the window is using a window manager.
3859 2005-12-13 Jackson Harper <jackson@ximian.com>
3861 * Form.cs: We now hook into an internal window manager instead of just an
3862 MDI subsystem, this is so we can have properly behaving tool windows.
3863 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3864 * InternalWindowManager.cs: New internal class that acts as a
3865 window manager for tool windows and as a base for mdi windows.
3866 * MdiWindowManager.cs: New class that acts as a window manager for
3869 2005-12-12 Jackson Harper <jackson@ximian.com>
3871 * Control.cs: Updates so we match behavoir for for implicit
3872 controls. Fixes explosions in MDI.
3874 2005-12-12 Jackson Harper <jackson@ximian.com>
3876 * Control.cs: Implement Invalidate (Region).
3878 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
3881 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
3882 the same events as MS does. MS fires events for each property
3883 except, for unknown reasons, Cursor, when the control is reparented.
3884 I can't seem to totally match add/remove since MS also fires some
3885 VisibleChanged events, which makes no sense. Consolidated the
3886 parenting code into a separate method so it can be called from
3887 both Add and Remove. set_Parent no longer needs any special logic
3888 as it calls the parent's add method which implicitly fires
3890 - Removed some obsolete code and debug output
3891 - Enabled state is inherited from parents, if this is enabled
3893 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
3895 * Form.cs: Removed commented out code
3897 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
3900 - Added internal version of Invoke, with additional argument
3901 indicating if we're calling it from a Dispose() handler. That
3902 way we can avoid BeginInvoke throwing an exception if we're
3903 calling for an already destroyed window.
3904 - Added a dispose argument to BeginInvokeInternal, and made the
3905 check if a valid window handle chain exists conditional on
3906 it not being a dispose call
3907 - Removed code in DestroyHandle to destroy our children. Since we
3908 now handle the WM_DESTROY message we will catch all our children
3910 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
3912 - Added a field to track the application context of the form.
3913 - No need to set closing variable as response to WM_CLOSE, instead
3914 we destroy the window. We also call PostQuitMessage if the form
3915 has an application context (which makes it the main app form,
3916 which, when closed terminates the app)
3918 - Dropped Exit() method, it's naming was confusing
3919 - Added PostQuitMessage() which causes GetMessage to return false
3920 once the message queue is empty
3921 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
3923 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
3924 no longer a valid XplatUI method, but left it in since it's used
3925 internally. Added empty PostQuitMessage() method.
3926 * MenuAPI.cs: Replaced call to Exit() with call to
3927 PostQuitMessage, even though this is probably no longer needed.
3928 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
3929 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
3931 - Replaced call to XplatUI.Exit() with PostQuitMessage()
3932 - Removed old debug code that would call XplatUI for exception
3933 display, enabled standard exception handling (Still not enabled
3934 though, until NativeWindow's ExternalExceptionHandler define
3937 - Added internal method to allow control to update NativeWindow
3938 after a window has been destroyed
3939 - Added handling of already destroyed windows when calling i
3941 - Added removal of handle from list on ReleaseHandle
3943 - Dropped GetMessageResult var and related code
3944 - Added PostQuitState to field to track if PostQuitMessage has been
3946 - Dropped Exit() method
3947 - Added PostQuitMessage() method
3948 - GetMessage now will return false if PostQuitState is set and no
3949 more messages are in the queue.
3950 - Expose handler will no longer generate WM_PAINT messages if we are
3951 in PostQuitState since it's very likely any windows have already
3952 been destroyed, and since Hwnd won't get updated until we have
3953 processed the DestroyNotify we'd be causing X errors.
3955 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
3957 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
3958 Thanks to Mike for pointing out the err of my ways.
3960 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
3962 * Control.cs(PreProcessMessage): Moved menu handling back, but
3963 after all other key handling, to match MS (who handles Menu in
3965 * Menu.cs (WndProc): Removed my brainfart
3967 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
3969 * Control.cs(PreProcessMessage): Removed special menu handling
3970 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
3972 2005-12-07 Mike Kestner <mkestner@novell.com>
3974 * Control.cs : special case SYSKEYUP so that we can adjust keynav
3975 state according in tracker.
3976 * Menu.cs : promote tracker field to base class and provide a tracker
3977 lookup capability. Add/Remove shortcuts dynamically if the top menu
3978 has a tracker. Unparent items that are removed from the collection.
3979 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
3980 * Theme*.cs: add always_show_hotkeys field to support configurability
3981 of mnemonic display. win32 doesn't show mnemonics until Alt is
3984 2005-12-07 Jackson Harper <jackson@ximian.com>
3986 * MdiChildContext.cs: Use Control.ResetCursor.
3987 * Control.cs: ResetCursor needs to set the property so that the
3988 correct XplatUI call gets made.
3990 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
3992 * Control.cs: More fixes to make our key events match MS. We
3993 were not setting the modifier state on KeyData, and we were
3994 not generating any events when Alt was pressed with a key
3995 since handling of WM_SYSxxx was missing for the OnKey methods.
3997 2005-12-07 Jackson Harper <jackson@ximian.com>
3999 * MdiChildContext.cs: reenable the sizing code.
4000 - When the mouse leaves a window reset its cursor.
4002 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
4004 * ThemeClearlooks.cs: Reflect latest Hwnd changes
4006 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
4008 * Hwnd.cs: Now using the theme 3d bordersize to calculate
4009 widths of Fixed3D borders
4011 2005-12-07 Jackson Harper <jackson@ximian.com>
4013 * MdiClient.cs: Fix warnings. Earn Mike's love.
4015 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
4017 * ThemeClearlooks.cs:
4018 - Adjusted mouse over button color
4019 - Added first parts of CheckBox drawing
4020 - Added correct color for selected text background
4021 - Fixed ComboBox drawing
4022 - Added CPDrawBorder3D and CPDrawBorder
4024 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4026 * XplatUIX11.cs: Added call to XBell for AudibleAlert
4028 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4030 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4031 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4032 alert users via sound. We could add an enum arg with different
4033 types of alerts in the future
4035 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
4037 * Control.cs: Fix behaviour problems pointed out by Mike
4039 2005-12-05 Mike Kestner <mkestner@novell.com>
4041 * StatusBarPanel.cs: add Invalidate method and hook it into all the
4042 prop setters. Calls parent.Refresh for now, but could be maybe be
4043 optimized with an internal method on StatusBar at some point.
4046 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
4048 * RichTextBox.cs: Implemented get_SelectionColor
4050 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
4052 * ThemeClearlooks.cs:
4054 - Draw black button border only if button is Form.AcceptButton
4055 - Draw correct button color for pressed RadioButton if the mouse
4056 has entered the button
4057 - Updated ProgressBar drawing!
4058 - Updated CPDrawSizeGrip drawing
4059 - Updated StatusBarPanel drawing
4061 2005-12-05 Mike Kestner <mkestner@novell.com>
4063 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4064 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4066 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
4068 * ThemeClearlooks.cs: Initial check-in, activate with
4069 export MONO_THEME=clearlooks
4070 * ThemeEngine.cs: Added ThemeClearlooks
4072 2005-12-03 Mike Kestner <mkestner@novell.com>
4074 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4077 2005-12-02 Jackson Harper <jackson@ximian.com>
4079 * Form.cs: If the child form has no menu the default main menu is
4080 used as the active menu.
4082 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4084 * ListBox.cs: Check if any items exist before trying to resolve
4085 coordinates into items
4087 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4089 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4090 as the second color for the background hatch
4092 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
4094 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4095 * RichTextBox.cs: FormatText position arguments are 1-based, now making
4096 sure that what we pass to FormatText is always 1-based. Fixes #76885
4098 2005-11-29 Miguel de Icaza <miguel@novell.com>
4100 * NumericUpDown.cs (EndInit): When we are done initializing,
4101 reflect any updates on the UI.
4103 2005-12-02 Jackson Harper <jackson@ximian.com>
4105 * ImplicitHScrollBar.cs:
4106 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4107 their container controls.
4108 * TreeView.cs: Use the new implicit scrollbars.
4110 2005-12-02 Jackson Harper <jackson@ximian.com>
4112 * TreeView.cs: Make top_node internal so the TreeNodeCollections
4114 * TreeNodeCollection.cs: If we remove the topnode we need to
4115 update topnode to the next node in line.
4116 - When clearing nodes go through the same process as removing
4117 them, so they get depareneted and checked if they are top node.
4119 2005-12-01 Jackson Harper <jackson@ximian.com>
4121 * TreeView.cs: When imagelists are used the image area is
4122 selectable as well as the text.
4123 - If there are no selected nodes select the first one.
4124 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4125 so don't do it more then we need to.
4127 2005-12-01 Jackson Harper <jackson@ximian.com>
4129 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4130 that arrows can be scaled.
4132 2005-12-01 Jackson Harper <jackson@ximian.com>
4134 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4135 fail. Patch by Dieter Bremes
4137 2005-11-30 Jackson Harper <jackson@ximian.com>
4139 * Form.cs: Property is 2.0 only
4140 * PrintDialog.cs: Signature fix.
4142 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
4145 - No longer artificially moves text 2 pixels down (now that we have
4146 borders this is no longer needed)
4147 - Added calcs for left, hanging and right indent
4149 2005-11-23 Mike Kestner <mkestner@novell.com>
4151 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4153 2005-11-30 Jackson Harper <jackson@ximian.com>
4155 * MdiChildContext.cs: Set the cloned menus forms, as these don't
4156 get cloned as part of CloneMenu ().
4157 * Menu.cs: Make sure the parent of the items get set correctly
4158 when they are added. And the owners are notified of the changes.
4159 * Form.cs: Create an ActiveMenu property, so that when MDI is used
4160 we can change the menu being displayed/handled by the form without
4161 changing the menu assosciated with the form.
4162 - Don't let Mdi children draw/handle menus.
4164 2005-11-30 Jackson Harper <jackson@ximian.com>
4166 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4167 a MenuChanged event. Just to make the API a little more
4170 * MenuItem.cs: Use the new OnMenuChanged
4171 * MdiChildContext.cs: Handle menu merging.
4172 * Form.cs: Implement MergedMenu.
4174 2005-11-30 Jackson Harper <jackson@ximian.com>
4176 * Menu.cs: We were misusing Add. Add goes behind the specified
4177 index according to the docs, and does not replace the specified
4178 index. So I added an Insert method.
4180 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
4182 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4183 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4185 * RichTextBox.cs: Added calls to base for DnD events
4187 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
4190 - Fixed drag-selection related crash; style fixes
4191 - Implemented undo class
4192 o Implemented method to capture document state for specified
4193 range in document tree
4194 o Implemented method to restore captured document state
4195 o Implemented cursor tracking
4196 o Implemented basic undo stack
4197 - Added undo cursor tracking to methods altering cursor location
4198 - Added undo tracking to selection deletion (still missing
4199 other text-altering hookups)
4201 - Added SelectionLength property
4202 - Implemented CanPaste()
4203 - Implemented Paste()
4204 - Added missing protected methods
4205 - Fixed RTF->Document conversion; now uses font index 0 and color
4206 index 0 as the default font for the parsed text
4207 - Fixed RTF<->Document font size translation
4208 - Fixed RTF generation, now properly handles cross-tag boundaries
4209 for single line selection
4210 - No longer always appends blank line to generated RTF
4212 - Added missing attributes
4213 - Hooked up undo-related methods
4215 - Implemented Copy()
4216 - Implemented Paste()
4218 - Fixed caret mis-behaviour on backspace across line-boundaries
4220 2005-11-29 Jackson Harper <jackson@ximian.com>
4222 * MdiClient.cs: Add a method for activating mdi children. Very
4223 basic right now. I imagine someday it might need more girth.
4224 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4225 children windows names are added to the menu item.
4226 * ThemeWin32Classic.cs: Draw the arrow if the item is an
4227 mdilist. This happens regardless of whether or not there are any
4228 mdi windows to see in the list, and according to my tests happens
4229 before the items are even added. Also happens if there isn't even
4230 an mdi client to get windows from.
4232 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
4234 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4235 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4237 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
4239 * DataGridTableStyle.cs:
4240 - Create always the styles for the missing columns even if they are
4241 provided by the user (not default table style)
4244 - Fixes SetDataBinding (always re-attach source)
4245 - Fixes SetNewDataSource (only clear styles if they are not for
4247 - Expands OnTableStylesCollectionChanged to handle style refresh
4250 2005-11-29 Jackson Harper <jackson@ximian.com>
4252 * FileDialog.cs: Implement missing bits, remove some dead
4254 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4255 creation of the panel so that the options set on the dialog are
4256 seen when the panel is created.
4257 * TreeView.cs: raise a click when items are clicked.
4259 2005-11-29 Jackson Harper <jackson@ximian.com>
4261 * MdiClient.cs: Pass some signature methods through to base.
4263 2005-11-28 Jackson Harper <jackson@ximian.com>
4265 * ListView.cs: Raise the click event when items are clicked.
4267 2005-11-28 Jackson Harper <jackson@ximian.com>
4269 * MdiClient.cs: Make this algorithm even more beautiful. And fix
4272 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
4274 * ThemeNice.cs: - Removed 1 pixel bitmaps
4275 - Use SmoothingMode.AntiAlias where it makes sense
4276 (ScrollButton arrow for example)
4277 - Enhanced Button focus drawing
4278 - Fixed ComboBox drawing (no artefacts anymore, focus
4279 rectangle is back again, reduced size of ComboButton, etc.)
4280 - Fixed RadioButton focus drawing for Appearence.Button
4281 - Slight ScrollButton redesign
4282 - Some LinearGradientBrush size fixes
4283 - GroupBoxes have now rounded edges
4284 - Fixed StatusBar drawing
4286 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
4288 * ThemeNice.cs: - Remove dead code
4289 - use correct background colors for menus, etc.
4290 - Fake pixel drawing with 1 pixel bitmaps
4292 2005-11-24 Jackson Harper <jackson@ximian.com>
4294 * MdiClient.cs: Size the scrollbars when resizing the window.
4295 - Resize the maximized windows when the client is resized
4296 * Form.cs: Make the child context available
4298 2005-11-23 Jackson Harper <jackson@ximian.com>
4300 * MdiChildContext.cs: Don't size windows if they are maximized.
4302 2005-11-23 Mike Kestner <mkestner@novell.com>
4304 * ContextMenu.cs: use MenuTracker.
4305 * Control.cs: remove menu handle usage.
4306 * Form.cs: remove menu handle usage.
4307 * Hwnd.cs: remove menu handle usage.
4308 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4309 motion and clicks to the new Tracker handlers.
4310 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4312 * MenuAPI.cs: refactored to combine popup and menubar event handling.
4313 Killed the MENU and MENUITEM data types and associated collections
4314 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4315 MenuTracker class that exposes the leftovers from the old MenuAPI
4316 static methods. Restructured Capture handling so that only one grab is
4317 done for the entire menu hierarchy instead of handing off grabs to
4318 submenus. Tracker now has an invisible control to Capture when active.
4319 * MenuItem.cs: add sizing accessors, kill Create
4321 * Theme.cs: remove menu handle and MENU(ITEM) usage.
4322 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4323 MENU(ITEM). remove menu handle usage, use Menu directly.
4324 * XplatUIDriver.cs: remove menu handle usage.
4325 * XplatUIOSX.cs: remove menu handle usage.
4326 * XplatUIWin32.cs: remove menu handle usage.
4327 * XplatUIX11.cs: remove menu handle usage.
4329 2005-11-22 Jackson Harper <jackson@ximian.com>
4331 * Hwnd.cs: Don't compute the menu size for
4332 DefaultClientRectangle.
4333 - Reenable menu sizes being computed for GetClienRectangle.
4334 * Form.cs: Remove comment of trechery
4336 2005-11-22 Jackson Harper <jackson@ximian.com>
4338 * Hwnd.cs: The adjustments for the menu bar are made when it is
4339 attached to the form.
4341 2005-11-19 Jackson Harper <jackson@ximian.com>
4343 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4344 (just like on windows).
4346 2005-11-19 Jackson Harper <jackson@ximian.com>
4348 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4349 use real buttons anymore because they are in non client area. The
4350 one TODO here is that I need to somehow invalidate a section of
4351 the non client area.
4353 2005-11-18 Jackson Harper <jackson@ximian.com>
4355 * Control.cs: Put the enum check back in now that MDI doesnt have
4356 to use this to set border styles.
4357 * Form.cs: Only set mdi child windows borders if the handle has
4359 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4360 this directly on to the driver.
4361 - Get the move start position before adjusting for the titlebar
4362 height, this fixes the windows "skipping" when they are first
4365 2005-11-18 Jackson Harper <jackson@ximian.com>
4367 * XplatUIX11.cs: Just compute the mdi borders separately as they
4368 don't totally match up with normal form borders.
4370 2005-11-18 Jackson Harper <jackson@ximian.com>
4372 * Control.cs: Set WS_ styles for borders, so that the driver does
4373 not have to retrieve the control instance to figure out what kind
4374 of borders it should have.
4375 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4376 driver can know its an mdi child easily.
4377 * XplatUIX11.cs: Get the border styles and whether the window is
4378 MDI from the Styles and ExStyles params instead of having to get a
4379 control. This prevents a chicken and egg problem.
4381 2005-11-18 Jackson Harper <jackson@ximian.com>
4383 * MdiClient.cs: Fix typo so scrollbars show up correctly.
4385 2005-11-18 Jackson Harper <jackson@ximian.com>
4387 * MdiClient.cs: Calculate when to add and remove scrollbars
4389 * MdiChildContext.cs: Adjust the y position to take the titlebar
4391 - No height for FormBorderStyle.None
4393 2005-11-18 Jackson Harper <jackson@ximian.com>
4395 * Control.cs: Allow non enum values to be used for
4396 InternalBorderStyle. MDI does this to set a special border style.
4397 - New utility methods for converting points to/from client coords
4398 - Add the newly created control to the Controls collection before
4399 updating its style. This way UpdateStyle can walk the control
4400 heirarchy to find the control if needed.
4401 so I don't need to create a new Point object all the time.
4402 * Form.cs: Let MDI windows handle their border styles.
4403 - Set styles on MDI windows so the correct title style is derived.
4404 * MdiChildContext.cs: Move all the painting and window handling
4405 into the non client area.
4406 - Use correct sizing and put correct buttons on frames based on
4407 the FormBorderStyle.
4408 - Notify the mdi client about scrolling
4409 - Need to handle the buttons ourselves now, because they are all
4410 in non client areas and we can't add controls there.
4411 * MdiClient.cs: Halfway to scrolling, this implementation is
4412 somewhat broken though, we need to check to make sure other
4413 windows aren't causing scrolling before removing the bars. Also
4414 the bars need to be drawn on top, maybe I can switch implicit
4415 controls to be on top.
4416 * Hwnd.cs: caption_height and tool_caption_height are now
4417 properties of an hwnd, this way they can be set by the driver
4418 based on the type of window they are. In X11 the window manager
4419 handles the decorations so caption_height is zero unless its an
4421 - Add 3 pixel borders for MDI windows (0xFFFF).
4422 - Get rid of some code duplication, have DefaultClientRectanle
4423 just call GetClientRectangle.
4424 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4426 - Set border styles differently for mdi windows.
4427 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4430 2005-11-15 Mike Kestner <mkestner@novell.com>
4432 * Menu.cs: when adding an item to the collection, if item is already
4433 parented, remove it from the parent.
4435 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
4437 * X11DesktopColors.cs: Added KDE support
4439 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
4442 - Clipboard methods now can translate Rtf format
4443 - No longer removes clipboard contents whenever a new format is added
4444 to allow placing multiple formats on the clipboard
4445 * Clipboard.cs: Clipboard now supports getting a IDataObject and
4446 will place all formats contained in it onto the clipboard. Also
4447 now cleans the clipboard before placing a new object onto it
4449 - Implemented set_Rtf
4450 - Implemented set_SelectedRtf
4451 - Created InsertRTFFromStream() method to allow single code base
4452 for all properties and methods that insert RTF into document
4453 - Removed debug output
4455 - Fixed Delete(int) to fix up line numbers
4456 - Fixed ReplaceSelection to combine start and end line
4457 - Fixed serious DeleteChars bug that would leave the document tree
4459 - Improved DumpTree with several logic checks to detect broken
4461 - Removed debug lines
4462 - Fixed Caret.WordForward/WordBack moving code, now always also
4463 updates caret.tag (fixes crash when word-selecting across tag
4464 boundaries via keyboard)
4465 - Added Insert() method for inserting multiline text into documents
4466 - Fixed DeleteChars() calculation errors that would cause a broken
4467 tag chain with multiple tag lines
4468 - DeleteChars() no longer crashes on multi-tag lines if not all tags
4469 - Split() no longer moves caret if split is at caret location
4470 - ReplaceSelection() now updates the cursor and re-displays it
4471 - ReplaceSelection() now uses new Insert() method to avoid code
4473 - FormatText() can now handle formatting partial lines
4475 - Append now uses new TextControl.Insert() method (this avoids
4477 - Implemented Ctrl-X (Cut) (
4478 - Implemented Ctrl-C (Copy)
4479 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
4480 regeneration when pasting text; roundtripping Copy&Paste within
4481 edit control still fails due to some calculation bugs in GenerateRTF)
4482 - The Delete key will now remove the current selection if it is visible
4483 * TextBox.cs: Removed debug lines
4484 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4485 driver to be initialized and can't therefore be done via a static ctor)
4487 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
4489 * TextControl.cs: Added backend code for finding char arrays and strings
4491 - Added mouse wheel scroll support
4492 - Added support for VScroll and HScroll events
4494 - Implemented all seven Find() variants
4495 - Implemented GetCharFromPosition()
4496 - Implemented GetCharIndexFromPosition()
4497 - Implemented GetLineFromIndex()
4498 - Implemented GetPositionFromCharIndex();
4499 - Implemented SaveFile for PlainText and UnicodeText
4500 - Fixed set_Font, now setting a new font applies that font to
4502 - Implemented generic Document to RTF converter
4503 - Implemented SaveFile for RichText format (still missing unicode
4504 conversion for non-ansi chars)
4505 - Implemented get_Rtf
4506 - Implemented get_SelectedRtf
4508 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
4510 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4511 to allow any captures to be released before triggering OnClick. This
4512 way a click handler may capture the mouse without interference.
4513 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4514 This way we send them even though X may not allow a grab (if the window
4515 isn't visible, for example)
4517 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
4519 * DataGridViewRowEventArgs.cs: DataGridView implementation
4520 * DataGridViewElement.cs: DataGridView implementation
4521 * DataGridViewComboBoxCell.cs: DataGridView implementation
4522 * DataGridViewDataErrorContexts.cs: DataGridView implementation
4523 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4524 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4525 * ImageLayout.cs: DataGridView implementation
4526 * DataGridViewComboBoxColumn.cs: DataGridView implementation
4527 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4528 * DataGridViewSelectionMode.cs: DataGridView implementation
4529 * IDataGridViewEditingControl.cs: DataGridView implementation
4530 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4531 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4532 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4533 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4534 * DataGridViewColumnSortMode.cs: DataGridView implementation
4535 * DataGridView.cs: DataGridView implementation
4536 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4537 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4538 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4539 * Padding.cs: DataGridView implementation
4540 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4541 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4542 * DataGridViewRowEventHandler.cs: DataGridView implementation
4543 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4544 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4545 * DataGridViewButtonCell.cs: DataGridView implementation
4546 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4547 * DataGridViewEditMode.cs: DataGridView implementation
4548 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4549 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4550 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4551 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4552 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4553 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4554 * DataGridViewCellEventHandler.cs: DataGridView implementation
4555 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4556 * DataGridViewCellStyleConverter.cs: DataGridView implementation
4557 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4558 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4559 * DataGridViewColumnEventArgs.cs: DataGridView implementation
4560 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4561 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4562 * QuestionEventArgs.cs: DataGridView implementation
4563 * IDataGridViewEditingCell.cs: DataGridView implementation
4564 * DataGridViewTriState.cs: DataGridView implementation
4565 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4566 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4567 * DataGridViewColumnCollection.cs: DataGridView implementation
4568 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4569 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4570 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4571 * DataGridViewColumn.cs: DataGridView implementation
4572 * DataGridViewCellBorderStyle.cs: DataGridView implementation
4573 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4574 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4575 * DataGridViewRow.cs: DataGridView implementation
4576 * DataGridViewImageCellLayout.cs: DataGridView implementation
4577 * DataGridViewImageCell.cs: DataGridView implementation
4578 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4579 * DataGridViewCheckBoxCell.cs: DataGridView implementation
4580 * DataGridViewHeaderCell.cs: DataGridView implementation
4581 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4582 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4583 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4584 * DataGridViewTextBoxColumn.cs: DataGridView implementation
4585 * QuestionEventHandler.cs: DataGridView implementation
4586 * DataGridViewCellStyleScopes.cs: DataGridView implementation
4587 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4588 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4589 * DataGridViewCell.cs: DataGridView implementation
4590 * DataGridViewCellEventArgs.cs: DataGridView implementation
4591 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4592 * DataGridViewCellStyle.cs: DataGridView implementation
4593 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4594 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4595 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4596 * TextFormatFlags.cs: DataGridView implementation
4597 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4598 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4599 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4600 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4601 * DataGridViewButtonColumn.cs: DataGridView implementation
4602 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4603 * HandledMouseEventArgs.cs: DataGridView implementation
4604 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4605 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4606 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4607 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4608 * DataGridViewRowCollection.cs: DataGridView implementation
4609 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4610 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4611 * DataGridViewHitTestType.cs: DataGridView implementation
4612 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4613 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4614 * DataGridViewColumnEventHandler.cs: DataGridView implementation
4615 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4616 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4617 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4618 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4619 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4620 * DataGridViewContentAlignment.cs: DataGridView implementation
4621 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4622 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4623 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4624 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4625 * DataGridViewPaintParts.cs: DataGridView implementation
4626 * DataGridViewCellCollection.cs: DataGridView implementation
4627 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4628 * DataGridViewImageColumn.cs: DataGridView implementation
4629 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4630 * DataGridViewElementStates.cs: DataGridView implementation
4631 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4632 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4633 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4634 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4635 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4636 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4637 * DataGridViewRowHeaderCell.cs: DataGridView implementation
4638 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4639 * DataGridViewTextBoxCell.cs: DataGridView implementation
4640 * DataGridViewBand.cs: DataGridView implementation
4641 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4642 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4643 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4644 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4645 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4646 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4647 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4648 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4649 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4650 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4651 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4653 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
4655 * ThemeWin32Classic.cs:
4656 - Draw the outside focus rectangle around buttons
4657 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4658 doesn't use end caps for every dash of a line anymore. This
4659 workaround ignores the forecolor.
4661 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
4663 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4666 2005-11-07 Jackson Harper <jackson@ximian.com>
4668 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4670 2005-11-07 Jackson Harper <jackson@ximian.com>
4672 * ScrollableControl.cs: Calculate the maximum and change vars
4673 (more) correctly so that scrollbars appear as a sensible size.
4675 2005-11-04 Jackson Harper <jackson@ximian.com>
4677 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4679 * TreeView.cs: When the tree is sorted null out the top_node so
4680 that it is recalculated.
4681 - Use dotted lines instead of dashed lines to match MS better.
4683 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
4686 - Implements key search for items. Useful when browsing files with FileDialog
4687 - When changing view mode or when clear the items reset scrollbar positions
4689 2005-11-04 Jackson Harper <jackson@ximian.com>
4691 * CurrencyManager.cs: Implement the MetaDataChanged event, the
4692 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4693 as to what the method may do as there is no real way of creating a
4694 derived CurrencyManager and calling the method.
4696 2005-11-03 Jackson Harper <jackson@ximian.com>
4698 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4699 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4700 method which seems to just be used internally to refresh the tabs.
4702 2005-11-03 Jackson Harper <jackson@ximian.com>
4704 * TabControl.cs: Implement the remove method. Fix some broken
4707 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
4709 * DateTimePicker.cs:
4710 - Added missing DateTimePickerAccessibleObject class
4711 - Added missing events
4712 - Added OnFontChanged method
4713 * Form.cs: Added missing attributes
4714 * TreeView.cs: Added missing attributes
4716 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
4718 * GridItemCollection.cs: Fix signatures
4720 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
4722 * XplatUI.cs: Updated build rev/date
4723 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
4724 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4725 * Application.cs: Trigger context-specific ExitThread events
4727 2005-11-03 Jackson Harper <jackson@ximian.com>
4731 * GridTableStylesCollection.cs:
4736 * MonthCalendar.cs: Signature fixes
4738 2005-11-03 Jackson Harper <jackson@ximian.com>
4740 * TreeNodeCollection.cs: Remove should not be virtual.
4741 * TreeView.cs: Implement the last of the missing methods.
4743 2005-11-03 Jackson Harper <jackson@ximian.com>
4745 * TreeNodeConverter.cs: Implement to get off my class-status back.
4747 2005-11-03 Jackson Harper <jackson@ximian.com>
4749 * TreeView.cs: Hookup the bits for drag and drop.
4750 * TreeNode.cs: Don't cache the tree_view or index anymore, now
4751 that nodes can be moved from tree to tree easily this just causes
4752 all sorts of problems.
4753 * TreeNodeCollection: Don't need to give treenodes an index and
4754 treeview anymore when they are added, these are computed on the
4755 fly. Also make sure to remove a node before its added.
4757 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
4760 - Added CaretSelection enum
4761 - Added comparison methods to Marker struct, makes selection code
4763 - Added SelectionStart and SelectionEnd as 'moveable' location for
4764 the CaretDirection enum and handler
4765 - Added selection_prev variable to track optimized invalidation for
4766 word and line selection
4767 - Added SelectionVisible property (returns true if there is a valid
4769 - Switched CaretHasFocus to only display the caret if there is no
4771 - Avoiding StringBuilder.ToString to retrieve a single char, instead
4772 using the direct character index; should be much faster
4773 - Added various conditional debug statements
4774 - Fixed invalidation calculation for selection ranges
4775 - Added ExpandSelection() method to support word and line selection
4776 - Switched SetSelectionToCaret to use new Marker compare overloads
4777 - Added central IsWordSeparator() method to determine word
4778 separators/whitespace and FindWordSeparator() to streamline common
4779 usage of IsWordSeparator()
4781 - Removed unneeded grabbed variable, it was just mirroring
4783 - No longer firing OnTextChanged event when Text setter is called,
4784 since the base will fire the event for us
4785 - Added handling of Ctrl-Up/Down selection
4786 - Added handling of Shift-Cursorkey selection
4787 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4789 - Added handling of Shift and Ctrl-Shift-Home/End selection
4790 - Removed some debug output
4791 - Added handling for single/double/tripple-click to place caret/
4792 select word/select line respectively (Fixes bug #76031)
4793 - Added support for drag expansion of word/line selection
4794 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4797 2005-11-02 Jackson Harper <jackson@ximian.com>
4799 * X11Dnd.cs: If the drag is going to and from a MWF window just
4800 copy the data instead of sending it out through the X Selection
4803 2005-11-02 Jackson Harper <jackson@ximian.com>
4806 * XplatUIX11.cs: When in a drag we don't want motion notify
4807 messages to get passed on to the other controls. This prevents
4808 mouse move messages from showing up in the drag source.
4810 2005-11-02 Jackson Harper <jackson@ximian.com>
4812 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
4813 the correct button is release to end a drag.
4814 * XplatUIX11.cs: Make the button state internal so the drag system
4815 can access it. Dragging needs to know about all button releases,
4816 not just left button.
4818 2005-11-02 Miguel de Icaza <miguel@novell.com>
4820 * Form.cs (Icon): If the icon is null, reset the icon to the
4823 * Cursor.cs: When writing the AND-mask bitmap do not include the
4824 number of colors, but hardcode those to two (black and white),
4825 fixes the loading of color cursors (Paint Dot Net).
4827 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4828 turn off autoscaling.
4830 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4832 2005-11-02 Jackson Harper <jackson@ximian.com>
4834 * X11Dnd.cs: Make sure to send a status message if the pointer
4835 enters a control that can not accept a drop, otherwise the cursor
4836 isn't updated correctly. Also tried to compress the lines of code
4839 2005-11-02 Jackson Harper <jackson@ximian.com>
4841 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4842 set actions correctly. This isn't perfect as XDND and win32 have
4843 some differences on how you allow actions. I'll clear this up by
4844 adding a path for drag from MWF to MWF windows.
4845 * XplatUIX11.cs: Hook into the dnd system.
4847 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
4849 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4850 previously shown but they are no longer need it. Very obvious when
4851 browsing files with FileDialog.
4853 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
4855 * Control.cs: We always need to call OnPaintBackground. We pretty much
4856 ignore AllPaintingInWmPaint and always do the painting there, whether
4857 it's set or not, since we always ignore the WM_ERASEBKGND message
4858 (which we don't generate on X11). This fixes #76616.
4859 * Panel.cs: Removed unneeded background painting. This happens properly
4860 in Control.cs already
4862 2005-10-31 Mike Kestner <mkestner@novell.com>
4864 * Menu.cs: Add items to collection before setting their index.
4865 * MenuItem.cs : add range checking with ArgumentException like MS.
4868 2005-10-31 Jackson Harper <jackson@ximian.com>
4870 * ListBox.cs: Invalidate if the area is visible at all not just
4871 contained in the visible rect. Fixes unselection of semi visible
4874 2005-10-31 Jackson Harper <jackson@ximian.com>
4876 * Control.cs: Consistently name the dnd methods. Make them
4877 internal so we can override them to match some MS behavoir
4879 * Win32DnD.cs: Use the new consistent names.
4881 2005-10-31 Jackson Harper <jackson@ximian.com>
4883 * TreeView.cs: Don't draw the selected node when we lose focus.
4885 2005-10-31 Jackson Harper <jackson@ximian.com>
4887 * X11Dnd.cs: We still need to reset the state even though a full
4888 reset isn't being done, otherwise status's still get sent all over
4891 2005-10-31 Jackson Harper <jackson@ximian.com>
4893 * Control.cs: Make the dnd_aware flag internal so the dnd
4894 subsystem can check it. Catch exceptions thrown in dnd handlers to
4896 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
4897 * X11Dnd.cs: Handle null data in the converters. Set the XDND
4898 version when sending a XdndEnter. Use the control/hwnd dnd_aware
4899 flags to reduce the number of dnd enters/status's sent.
4901 2005-10-31 Jackson Harper <jackson@ximian.com>
4903 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
4905 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
4907 * PictureBox.cs: Fixes 76512
4909 2005-10-28 Jackson Harper <jackson@ximian.com>
4911 * X11Dnd.cs: Early implementation to support winforms being a drag
4912 source for data on X11. Also restructured the converters so they
4913 can go both ways now.
4914 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
4916 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
4918 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
4921 2005-10-27 Jackson Harper <jackson@ximian.com>
4923 * TreeNode.cs: Implement serialization so my DnD examples will work.
4925 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
4927 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
4928 TreeView.cs: Don't dispose objects that are not owned.
4930 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
4932 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
4933 should retrieve the current cursor and report that, but XplatUI
4934 doesn't (yet) have an interface for that (and I'm not sure I even
4936 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
4937 until any message loop processing is done (and the WM_SETCURSOR
4938 replaces the cursor to the proper one)
4940 - Fixed override behaviour, we can't set the cursor globally on X11,
4941 just for our windows.
4942 - Invalidating the System.Drawing X11 display handle when we are
4944 * Control.cs: Fix to make csc happy
4946 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
4949 - get_Text: Add last line (without trailing newline) to returned
4951 - get_TextLength: Count last line in returned length
4952 - ToString: Call Text property instead of duplicating code
4954 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
4956 * ImageList.cs: Dispose ImageAttributes objects.
4958 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
4960 * ImageList.cs: Use attribute constructors with less arguments where
4963 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
4965 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
4966 Use typeof instead of strings when assembly is referenced. Added
4969 2005-10-21 Jackson Harper <jackson@ximian.com>
4971 * ListView.cs: Raise a double click event. Also tried to somewhat
4972 fix when the selectedindexchanged event is raised. Its still
4975 2005-10-21 Jackson Harper <jackson@ximian.com>
4977 * TreeView.cs: New method to invalidate the plus minus area of a
4978 node without invalidating the whole node (maybe this can be used
4979 in some more places).
4980 * TreeNodeCollection.cs: When adding to an empty node we need to
4981 invalidate its plus minus area so the little block shows up.
4983 2005-10-21 Jackson Harper <jackson@ximian.com>
4985 * TreeView.cs: Make sure that when we invalidate a node the bounds
4986 are big enough to cover the selected box and the focus
4987 rectangle. Use a different colour for the lines connecting nodes
4988 so they show up with all themes.
4990 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
4992 * NativeWindow.cs: Don't call anything that could call into the driver,
4993 we might be on a different thread.
4995 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
4997 * Control.cs(Dispose): Since Dispose might run on a different thread,
4998 make sure that we call methods that could call into the driver via
4999 invoke, to avoid thread issues
5001 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
5003 * XplatUI.cs: Removed finalizer
5004 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5005 not allowing to be called on the finalizer thread.
5007 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
5010 - Reverted r51889 and r51891.
5011 - Added ImageListItem class that stores unmodified image items and image
5012 properties required to create list images until handle is created.
5013 - Added AddItem and moved image creation logic to AddItemInternal.
5014 - Added CreateHandle method that creates images based on unmodified items.
5015 - Added DestroyHandle that changes state to store unmodified items.
5016 - Add and AddStrip methods no more create handle.
5017 - ReduceColorDepth has no return value.
5018 - Dispose destroys handle.
5019 - Modified other methods to reflect the above changes.
5020 - Implemented key support.
5021 - Added profile 2.0 members and attributes.
5022 - Added private Reset and ShouldSerialize methods that provide the same
5023 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5024 them as they are private.
5025 - Added some more comments about implementation details.
5027 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5029 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5031 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5033 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5035 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
5037 * DataGridDrawingLogic.cs: Fixes column hit calcultation
5038 * DataGridColumnStyle.cs: Remove debug message
5040 2005-10-20 Jackson Harper <jackson@ximian.com>
5042 * TreeView.cs: We can always get input keys regardless of whether
5043 or not editing is enabled. They are used for navigation.
5045 2005-10-20 Jackson Harper <jackson@ximian.com>
5047 * TreeNode.cs: Use the viewport rect for determining if a node
5048 needs to be moved for visibility. Don't use Begin/End edit. This
5049 calls a full refresh when its done.
5050 * TreeView.cs: New SetBottom works correctly. Make the viewport
5051 rect property internal so the treenodes can see it. When clicking
5052 on a node we need to ensure that its visible because it might just
5053 be partly visible when clicked.
5055 2005-10-20 Jackson Harper <jackson@ximian.com>
5057 * TreeNodeCollection.cs: Remove debug code.
5059 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
5061 * Datagrid.cs: Implements column sorting in Datagrid
5062 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5064 2005-10-20 Jackson Harper <jackson@ximian.com>
5066 * TreeNodeCollection.cs: Remove items properly. Update the correct
5067 area after removing them.
5069 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
5071 * Datagrid.cs: Should not call base.OnPaintBackground
5073 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5075 * XplatUIX11.cs (GetMessage):
5076 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5077 window instead of client window
5078 - Now properly calculates NC_xBUTTONUP message coordinates
5079 - ScreenToMenu now properly calculates it's coordinates of whole
5080 window, since menus are in the whole window, not in the client
5082 - Added WholeToScreen coordinate translation method
5084 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5086 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5087 want to return a message, loop back to the beginning of the function
5088 and grab the next real message to process instead.
5090 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
5092 * Splitter.cs: Properly set limits if no filler control is used
5094 2005-10-19 Jackson Harper <jackson@ximian.com>
5096 * ColorDialog.cs: Don't show the help button if it is not enabled
5097 instead of disabling it (this is what MS does). Don't create the
5098 panel until the dialog is run, otherwise the vars (such as
5099 ShowHelp) are not set yet.
5101 2005-10-19 Jackson Harper <jackson@ximian.com>
5103 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5104 are reduced when adding nodes.
5106 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5109 2005-10-19 Jackson Harper <jackson@ximian.com>
5111 * FolderBrowserDialog.cs: End editing our treeview so the window
5112 actually gets refreshed.
5114 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
5116 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
5117 Obsoleted handling of WM_ERASEBKGND, now always draws our background
5120 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5122 * MenuAPI.cs: Returns after Hidding window
5123 * XplatUIX11.cs: Added TODO found while debugging menu issues
5125 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
5127 * XplatUIX11.cs: Do not re-map the whole window when it's size
5128 becomes non-zero unless it's supposed to be actually visible
5130 2005-10-18 Jackson Harper <jackson@ximian.com>
5132 * TreeView.cs: We don't need to keep a count anymore.
5133 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5134 use the Grow method.
5136 2005-10-18 Jackson Harper <jackson@ximian.com>
5138 * TreeNodeCollection.cs: Insert is not supported on arrays, so
5139 implement it manually here.
5141 2005-10-18 Jackson Harper <jackson@ximian.com>
5143 * ImageList.cs: Dont kill the list when the colour depth is
5144 changed, just change the colour depth of all the images.
5145 - Same goes for setting the image size. Just resize them all
5146 instead of killing the list softly.
5148 2005-10-18 Jackson Harper <jackson@ximian.com>
5150 * Control.cs: Don't invalidate empty rectangles.
5152 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5155 - Adds checked item to the Checked/Item lists (where empty before)
5156 - Do not add items to the Selected lists if they are already present
5158 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5159 - When deleting items make sure that we delete them for the Selected
5160 and Checked list also.
5162 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
5164 * Label.cs: Dispose objects no longer used
5165 * ThemeWin32Classic.cs: Dispose objects no longer used
5167 2005-10-18 Jackson Harper <jackson@ximian.com>
5169 * TabControl.cs: Don't refresh the whole control when the tabs are
5170 scrolled, we just need to refresh the tab area.
5172 2005-10-17 Jackson Harper <jackson@ximian.com>
5174 * XplatUIX11.cs: Compress code a little bit. Only calculate the
5175 after handle when we need it.
5177 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
5179 * Control.cs: When the parent size changes, recalculate anchor
5180 positions. Partial fix for #76462
5182 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
5184 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
5187 2005-10-17 Jackson Harper <jackson@ximian.com>
5189 * MonthCalendar.cs: Don't create the numeric up down until our
5190 handle is created. Otherwise our handle is created in the
5191 constructor and we don't know if we are a WS_CHILD or WS_POPUP
5194 2005-10-17 Jackson Harper <jackson@ximian.com>
5196 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5199 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
5200 * TreeNode.cs : small logical fix (was using local var instead of field)
5202 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
5204 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5206 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
5208 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5210 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
5213 - Re-implemented anchoring code. My first version was really broken.
5214 This fixes bug #76033. Unlike the previous implementation we will
5215 no longer have round errors since all numbers are calculated from
5216 scratch every time. Removed various anchor-related obsolete vars.
5217 - InitLayout no longer causes layout event firing and layout to be
5220 2005-10-16 Jackson Harper <jackson@ximian.com>
5222 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5225 2005-10-16 Jackson Harper <jackson@ximian.com>
5227 * TabControl.cs: Remove debug code.
5229 2005-10-16 Jackson Harper <jackson@ximian.com>
5231 * XEventQueue.cs: Increase the default queue size (very simple
5232 apps needed to grow the queue).
5233 * Hwnd.cs: No finalizer so we don't need to suppress
5234 finalization. Compute the invalid area manually so a new rectangle
5235 does not newto be created.
5236 * ScrollableControl.cs: Don't set any params (otherwise visibility
5237 isn't set correctly).
5238 * MdiChildContext.cs: New constructor takes the mdi parent so it
5239 doesn't have to be computed and avoids a crash on windows. Draw
5240 the window icon properly, and allow the text to be seen.
5241 * Form.cs: Use new MdiChildContext constructor. Make sure the
5242 child context isn't null in wndproc.
5243 * TabControl.cs: Don't set focus, this is muddling keyboard
5244 behavoir. Expand the tab rows when a window size increase will
5245 allow extra tabs to be seen. Don't allow tabs smaller than the
5246 width of a window to be scrolled out of view.
5248 * TreeView.cs: Use measure string to calculate a nodes width, the
5249 width is cached and only updated when the text or the font is
5250 changed. Don't check for expand/collapse clicks on the first level
5251 nodes if root lines are disabled.
5253 2005-10-16 Ritvik Mayank <mritvik@novell.com>
5255 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5257 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
5259 * DataGridBoolColumn.cs: fixes warning
5261 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
5263 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5264 to match more to match more precisely the MS Net behavior
5266 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5268 * Hwnd.cs: Added field to track if window is mapped
5270 - Unmap windows if they become 0-size, re-map when
5271 they are >0 again; fixes #76035
5272 - Re-set our error handler after initializing X11Desktop
5273 to override any error handlers Gtk or whatever was called
5276 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5278 * CheckedListBox.cs: Removed unused vars
5279 * ListView.cs: Fixed signatures
5280 * RichTextBox.cs: Removed unused vars
5281 * TextBoxBase.cs: Removed unused vars
5282 * XplatUIWin32.cs: Removed unused vars
5283 * XplatUIX11.cs: Removed unused vars
5284 * XplatUI.cs: Updated version and date to latest published
5286 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5288 * Cursor.cs: Added private .ctor to work around a bug in
5289 resourceset (Thanks to Geoff Norton for the help on this)
5290 * SplitterEventArgs.cs: Made fields accessible so we don't
5291 waste boatloads of objects and can reuse the same one
5293 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5294 any captions and borders when generating screen coordinates
5295 * Splitter.cs: Reimplemented control, now fully complete, uses
5296 rubberband drawing, supports and obeys all properties, has
5299 2005-10-13 Miguel de Icaza <miguel@novell.com>
5301 * Form.cs (Form): Setup default values for autoscale and
5302 autoscale_base_size; Make these instance variables, not static
5305 (OnLoad): on the first load, adjust the size of the form.
5307 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
5309 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
5310 width argument to DrawReversibleRectangle()
5311 * XplatUIWin32.cs, XplatUIX11.cs:
5312 - Implemented width for DrawReversibleRectangle()
5313 - Added logic to DrawReversibleRectangle that recognizes a zero
5314 width or height and only draws a line in that situation
5316 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
5318 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5319 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5320 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5321 method (it uses our FosterParent window to get a graphics context)
5323 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
5325 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
5326 and SetWindowBackground methods
5328 - Setting proper ControlStyles
5329 - We no longer call XplatUI.SetWindowBackground and XplatUI.
5330 EraseWindowBackground, instead we draw the window background
5331 ourselves in PaintControlBackground. This behaviour is
5332 required to match MS, where, when OnPaintBackground is not
5333 called, the background is not drawn.
5334 - Removed unneeded Refresh() in set_Text
5335 * Hwnd.cs: Dropped the ErasePending support. No longer needed
5337 - Created DeriveStyles method to translate from CreateParams to
5338 FormBorderStyle and TitleStyle, also handles BorderStyle (which
5339 matches FormBorderStyle enum values)
5340 - Consolidated SetHwndStyles and CalculateWindowRect border/title
5341 style calculations into single DeriveStyles method
5342 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5343 from redrawing the whole window on any resize or expose.
5344 - Fixed CreateWindow usage of SetWindowValuemask. Before not
5345 all styles were applied to our whole/client window appropriately
5346 - Removed EraseWindowBackground() and SetWindowBackground() methods
5347 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5348 no longer clear/redraw the background through X
5349 - Removed handling of erase_pending bit, we have no use for it (or
5352 - Removed generation and handling of WM_ERASEBKGND message
5353 - Removed EraseWindowBackground() and SetWindowBackground() methods
5354 - Removed handling of hwnd.ErasePending flag
5356 - Removed EraseWindowBackground() and SetWindowBackground() methods
5357 - We no longer call EraseWindowBackground on PaintEventStart, we
5358 ignore the fErase flag, erasing is handled in Control in the
5360 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5361 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5362 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
5363 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
5364 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
5365 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5366 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5368 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
5370 * PropertyGrids.cs: Get sub properties
5371 * PropertyGridView.cs: Fix drawing code
5373 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5375 * ListBox.cs: Fixes 76383
5377 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5379 * DataGridTextBoxColumn.cs: Sets location and size before attachment
5380 * ThemeWin32Classic.cs: Fixes border drawing and calculations
5381 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5384 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5386 * ComboBox.cs: Fixes border drawing
5388 2005-10-10 Miguel de Icaza <miguel@novell.com>
5390 * MimeIcon.cs: Ignore errors if the file can not be read.
5392 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
5394 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5395 - Fixed border calculations
5396 - Fixed horizontal scrolling in single column listboxes
5397 - Fixed drawing issues
5399 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
5401 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
5402 FormBorderStyle enum
5403 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
5404 code to determine FormBorderStyles from CreateParams
5406 - Fixed bug where we'd set the wrong window styles if we were
5407 not creating an MDI window
5408 - Added call to XplatUI.SetBorderStyle when form borders are set
5409 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5411 - Removed obsolete edge style
5412 - Switched from BorderStyle to FormBorderStyle
5414 2005-10-10 Jackson Harper <jackson@ximian.com>
5416 * Form.cs: Use the property to get the window handle instead of
5417 accessing it directly. Prevents a null reference exception.
5419 2005-10-10 Jackson Harper <jackson@ximian.com>
5421 * TreeView.cs: Don't adjust the rect given to DrawString now that
5422 our libgdiplus draws correctly.
5424 2005-10-08 Jackson Harper <jackson@ximian.com>
5426 * TreeView.cs: Don't try to find the clicked on node if there are
5427 no nodes in the tree.
5429 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
5435 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
5437 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5438 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5440 Use ResPool for brushes and dispose System.Drawing objects that
5441 are not used anymore.
5443 2005-10-07 Jackson Harper <jackson@ximian.com>
5445 * MdiChildContext.cs: Use the new borders instead of drawing them
5448 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
5450 * Calling UpdateBounds after changing the window's BorderStyle
5451 since the style can change the ClientSize
5453 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5455 * Control.cs: Made PaintControlBackground virtual
5456 * Panel.cs: Overriding PaintControlBackground instead of using paint
5457 event; paint event method was interfering with 'real' users of the
5460 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
5462 * ThemeWin32Classic.cs: remove border drawing since it is handled
5463 by the base control class now and was causing double border drawing.
5465 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5467 * Panel.cs: Redraw our background on paint. Not a pretty solution,
5468 but it does seem to match MS behaviour. This fixes bug #75324
5470 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5472 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5473 somewhat hackish looking
5475 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5478 - We now accept Enter even if AcceptEnter is false, if the containing
5479 form does not have an AcceptButton configured (fixes bug #76355)
5480 - Calculations are now fixed to no longer use Width/Height, but
5481 ClientSize.Width/Height, since we now support borders (this was
5482 a result of fixing borders and therefore bug #76166)
5483 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
5484 true (fixes bug #76354)
5486 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5489 - Defaulting BorderStyle and setting it in XplatUI when our window
5491 - Added enum check to InternalBorderStyle setter
5493 - Added drawing of window borders
5494 - Now properly calculates WM decorations offset for toplevel
5495 windows (fixes bug #74763)
5497 - Implemented BorderStyles for windows (we're letting win32 draw
5499 - Fixed the signature for SetWindowLong
5500 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5501 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
5503 * UpDownBase.cs: Remove drawing of borders, this is handled by
5504 the driver, outside the client area
5505 * ListView.cs: Removed bogus border calculations. The control should
5506 be oblivious to borders, since those are not part of the client
5508 * X11DesktopColors.cs: Commented out (currently) unneeded variables
5509 * ThemeWin32Classic.cs: Removed border calculations from ListView
5512 2005-10-06 Jackson Harper <jackson@ximian.com>
5514 * MdiChildContext.cs: Clear out the old virtual position remove
5515 all the unneeded calls to CreateGraphics.
5517 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5519 * TextControl.cs: Use proper color for highlighted text; fixes #76350
5521 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5524 - Added loading and setting of our new default icon
5525 - Only set icon if window is already created
5527 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
5530 - Do not explicitly set the foreground and background colors, to
5531 allow inheriting from parents (fixes #76302)
5532 - Use Control's InternalBorderStyle property to deal with borders
5534 2005-10-06 Jackson Harper <jackson@ximian.com>
5536 * MdiChildContext.cs: Use the new xplatui function to draw a
5539 2005-10-06 Jackson Harper <jackson@ximian.com>
5541 * Form.cs: Add the parent before creating the child context cause
5542 we need the parent when setting up the child.
5544 2005-10-06 Jackson Harper <jackson@ximian.com>
5546 * FolderBrowserDialog.cs: redo the tree population code so a
5547 second thread isn't used. Should be a lot faster and more stable
5550 2005-10-05 Jackson Harper <jackson@ximian.com>
5552 * TreeView.cs: There are no expand/collapse boxes if the node has
5555 2005-10-05 Jackson Harper <jackson@ximian.com>
5557 * X11DesktopColors.cs: Get menu colours for the gtk theme.
5559 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
5561 * FileDialog.cs: Fix InitialDirectory
5563 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
5566 - Fixes changing between styles
5568 - Fixes last item crashing when navigating with keyboard
5570 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
5572 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5574 2005-10-05 Jackson Harper <jackson@ximian.com>
5576 * TreeView.cs: If updating the root node do a full refresh.
5577 * TreeNode.cs: The root node should be expanded by default. Also
5578 added a utility prop to tell if we are the root node.
5579 * TreeNodeCollection.cs: Only refresh if the node we are being
5580 added to is expanded. Also added a comment on a potential
5583 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
5585 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
5586 in dispose method. Fixes #76330
5588 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
5590 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5592 - Implements vertical and horizontal scrolling using XplatUI
5593 - Fixes keyboard navagation
5594 - Fixes EnsureVisible
5596 - Handles and draws focus properly
5599 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
5601 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5602 Create handle. NET_2_0: Destroy handle when value is null.
5604 2005-10-03 Jackson Harper <jackson@ximian.com>
5606 * ScrollBar.cs: My last scrollbar patch was broken. This is a
5607 revert and a new patch to prevent the thumb from refreshing so
5610 2005-10-02 Jackson Harper <jackson@ximian.com>
5612 * ScrollBar.cs: Don't update position if it hasn't actually
5613 changed. This occurs when you hold down the increment/decrement
5614 buttons and the thumb gets to the max/min.
5616 2005-10-01 Jackson Harper <jackson@ximian.com>
5619 * MdiChildContext.cs:
5620 * MdiClient.cs: Implement ActiveMdiChild in Form.
5622 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
5624 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5626 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
5628 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5631 2005-09-30 Jackson Harper <jackson@ximian.com>
5633 * ListBox.cs: Don't do a full refresh unless some data has
5636 2005-09-30 Jackson Harper <jackson@ximian.com>
5638 * TreeView.cs: Make sure that the checkboxes size is factored in
5639 even when not visible.
5641 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5643 * FileDialog.cs: Fix Jordi's build break
5645 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
5648 - Use standard the Windows colours for the combobox as espected
5649 - Dispose objects that use resouces when no longer need them
5651 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5653 * X11DesktopColors.cs: Initial incomplete implementation
5654 * XplatUIX11.cs: Added call to initialize X11DesktopColors
5656 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
5659 - Switched Theme color names to match the names defined in
5660 System.Drawing.KnownColors. Life's hard enough, no need to make
5662 - Added setters to all theme color properties so themes can set
5663 their color schemes. The setters also propagate the color changes
5664 to System.Drawing.KnownColors via reflection
5665 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5666 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5667 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5668 use the new, more logical theme color names
5669 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5671 * ThemeWin32Classic.cs:
5672 - Removed code to set the old classic Windows colors. Instead it
5673 now relies on the colors returned by System.Drawing.KnownColors
5674 which will be either modern static colors (Unix) or colors
5675 read from the user's configuration (Win32)
5676 - Updated to use the new, more logical theme color names
5677 - Switched DataGrid drawing code to use only Theme colors instead of
5678 a mix of System.Drawing.KnownColors and Theme colors
5679 - DrawFrameControl(): Removed code that fills the button area, the
5680 fill would overwrite any previous fill done by a control. This
5682 - Added DrawReversibleRectangle() stub
5683 * ScrollableControl.cs: Set visible state to false when scrollbars
5684 are removed (pdn fix)
5685 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
5686 DrawReversibleRectangle() method to allow drawing primitive
5688 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5690 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5692 * ImageList.cs: Add(Icon): Create handle.
5694 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
5697 * ThemeWin32Classic.cs:
5700 - Issues with drawing
5702 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5704 * ImageList.cs: Moved RecreateHandle back to ImageList as event
5705 source has to be the ImageList.
5707 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5709 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5711 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5713 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5715 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5717 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5719 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
5720 * GridItem.cs: Fixed TODOs
5721 * GridItemCollection.cs: Added ICollection interface
5723 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
5725 * ImageList.cs: Resize icons when needed.
5727 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
5730 - Fixes GetBounds and returns on screen rects
5732 - Fixes vertical and horzintal scrolling of items
5733 * ThemeWin32Classic.cs:
5736 2005-09-29 Raja R Harinath <harinath@gmail.com>
5738 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5740 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
5742 * ImageList.cs: Added comments about handle creation. Moved Handle,
5743 HandleCreated and OnRecreateHandle implementations to ImageCollection.
5744 Handle is created in Add methods.
5746 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
5748 * DataGridDrawingLogic.cs:
5749 - Takes rows into account on Colum calculations
5750 - Returns the column when clickig
5752 - Fixes default HitTestInfo values
5753 - Fixes HitTestInfo.ToString
5754 - Fixes ResetBackColor
5756 2005-09-28 Jackson Harper <jackson@ximian.com>
5758 * MdiChildContext.cs: Obey rules for fixed sized windows (no
5759 sizing or cursor changes). Also added some temp code to draw the
5760 titlebars text (Makes dev a little easier).
5762 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
5764 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5766 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
5768 * ListBox.cs: Fixes bug 76253
5770 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
5772 * ImageList.cs: Added comments about the current implementation. Added
5773 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5774 Format32bppArgb to preserve transparency and can use Graphics.FromImage
5775 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5776 with Bitmap.LockBits for better performance. Revised the whole file to
5777 match MS.NET behaviour and provide better performance. Non-public
5778 interface members are calling public members even when they throw
5779 NotSupportedException for better maintainability. Moved ColorDepth,
5780 ImageSize, ImageStream and TransparentColor implementations to
5781 ImageCollection for better performance as these properties are not used
5783 * ImageListStreamer.cs: Added a new internal constructor that takes an
5784 ImageList.ImageCollection and serializes Images based on
5785 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5786 match ImageList property name.
5788 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
5790 * ListBox.cs: Fixes IndexFromPoint for last item
5792 2005-09-27 Jackson Harper <jackson@ximian.com>
5794 * Form.cs: Set the position of new mdi children correctly.
5796 2005-09-27 Jackson Harper <jackson@ximian.com>
5798 * MdiClient.cs: New mdi children need to be added to the back of
5799 the controls collection so the zorder is set correctly. Also add a
5800 count of all the child windows that have been created.
5802 2005-09-27 Jackson Harper <jackson@ximian.com>
5804 * Form.cs (CreateParams): Setup MDI forms correctly.
5806 2005-09-27 Jackson Harper <jackson@ximian.com>
5808 * MdiChildContext.cs:
5815 * ScrollableControl.cs:
5816 * ComboBox.cs: Add implicit controls using the new implict control
5817 functionality in ControlCollection. Also try to block multiple
5818 control add in a suspend/resume layout to save some cycles.
5820 2005-09-27 Jackson Harper <jackson@ximian.com>
5822 * Control.cs: Add functionality to the controls collection to add
5823 'implicit controls' these are controls that are created by the
5824 containing control but should not be exposed to the user. Such as
5825 scrollbars in the treeview.
5826 * Form.cs: The list var of the ControlsCollection is no longer
5827 available because of the potential of implicit controls getting
5828 ignored by someone accessing the list directly.
5830 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
5832 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5833 loose it's parent. (Fixed bug introduced in r49103 when we added
5834 setting the child parent to null on Remove)
5836 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
5838 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5839 * Splitter.cs: Added missing attributes for BorderStyle property.
5840 * TextBoxBase.cs: Marked Calculate* methods internal.
5841 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5844 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
5846 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5848 2005-09-25 Jackson Harper <jackson@ximian.com>
5850 * TreeView.cs: Update the node bounds correctly regardless of
5851 whether the node is visible.
5853 2005-09-25 Jackson Harper <jackson@ximian.com>
5855 * ImageList.cs: Don't dispose the image after it is added to the
5856 image list. Only reformat images that need to be resized.
5858 2005-09-25 Jackson Harper <jackson@ximian.com>
5860 * ImageList.cs: Don't set the format when changing the image.
5862 2005-09-25 Jackson Harper <jackson@ximian.com>
5864 * TreeView.cs: We can't just assume the node has a font. Use the
5865 treeviews font if no node font is available.
5867 2005-09-25 Jackson Harper <jackson@ximian.com>
5869 * TreeView.cs: Allow the scrollbars to be reset with negative
5871 - Don't add scrollbars to negative sized windows.
5873 2005-09-23 Jackson Harper <jackson@ximian.com>
5875 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5876 old Mono.Posix. Also remove some stray code that shouldn't have
5879 2005-09-23 Jackson Harper <jackson@ximian.com>
5881 * TreeView.cs: Attempt at proper sizing of the horizontal
5882 scrollbar. Also don't resize the scrollbars unless they are
5885 2005-09-23 Jackson Harper <jackson@ximian.com>
5887 * TreeView.cs: We don't need to expand the invalid area when the
5888 selection changes, as this is all drawn in the node's bounding
5889 box. The area needs to be expanded (previous typo was contracting
5890 it) when the focus rect moves.
5892 2005-09-23 Jackson Harper <jackson@ximian.com>
5894 * TreeView.cs: Display the selection box under the correct
5895 circumstances. We were rendering white text with no selection box
5898 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
5900 * TextControl.cs(Split): Now updates selection start/end if it points
5901 into a line that's being split. Fixes a FIXME and bug #75258
5903 2005-09-23 Jackson Harper <jackson@ximian.com>
5906 * ListControl.cs: Don't use the path when retrieving binding
5907 managers from the binding context. My bat sense tells me that the
5908 path is only used on insertion.
5910 2005-09-22 Jackson Harper <jackson@ximian.com>
5912 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
5914 2005-09-22 Jackson Harper <jackson@ximian.com>
5916 * Splitter.cs: There are special cursors used for splitting.
5917 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
5919 2005-09-22 Jackson Harper <jackson@ximian.com>
5921 * Splitter.cs: Change the cursor appropriately when the splitter
5922 is moused over, so the user actually knows there is a splitter
5925 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5927 * Label.cs : Fix ToString method to give same output as MS.NET
5929 2005-09-22 Jackson Harper <jackson@ximian.com>
5931 * TreeView.cs: Create the scrollbars when the handle is created
5932 and add them right away, just make them invisble. Also account for
5933 the window being shrunk vertically to the point that the vert
5934 scrollbar needs to be added.
5935 - Remove some 0.5 adjustments to get around anti aliasing issues.
5937 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
5939 * MainMenu.cs: Fixes default value
5940 * MenuItem.cs: Fixes default value
5942 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
5944 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
5946 2005-09-21 Jackson Harper <jackson@ximian.com>
5948 * Control.cs: Don't try to set the border style on the window if
5949 it hasn't been created. When the window is created the border
5952 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
5954 * Control.cs (Update): Don't call XplatUI if we don't have a
5957 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
5959 * ContainerControl.cs: Instead of throwing an exception, print
5960 a one-time warning about Validate not being implemented
5961 * XplatUIWin32.cs: Removed debug output
5963 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
5965 * Control.cs: Only set XplatUI background if we expect the windowing
5966 system to handle the background. This stops controls that draw their
5967 own background from flickering
5969 * XplatUIX11.cs: Support custom visuals and colormaps for window
5970 creation. This allows, amongst other things, using MWF X11 windows
5973 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
5975 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
5976 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
5977 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
5978 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
5979 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
5980 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
5981 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
5982 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
5983 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
5984 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
5985 GridColumnStylesCollection.cs,
5986 IDataGridColumnStyleEditingNotificationService.cs,
5987 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
5988 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
5989 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
5990 TreeNodeCollection.cs, AmbientProperties.cs,
5991 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
5992 DataObject.cs, ErrorProvider.cs, Splitter.cs,
5993 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
5994 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
5995 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
5996 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
5997 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
5998 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
5999 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6000 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6001 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6002 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6003 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6004 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6005 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6006 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6007 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6008 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6009 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6010 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6011 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6012 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6013 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6014 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6015 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6016 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6017 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6018 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6019 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6020 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6021 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6022 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6023 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6024 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6025 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6026 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6027 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6029 2005-09-21 Jackson Harper <jackson@ximian.com>
6031 * TreeNode.cs: Call Before/After Expand not Collapse when
6034 2005-09-20 Jackson Harper <jackson@ximian.com>
6036 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6038 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
6042 - Fixes proper storing of subitems
6043 - Fixes not updated items
6045 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
6047 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6048 things if our window handle isn't created yet. Also disabled
6049 debug for TextBoxBase
6051 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
6053 * MenuAPI.cs: Remove filtering of events to allow menu usage
6055 2005-09-20 Miguel de Icaza <miguel@novell.com>
6057 * Cursor.cs: Allow null to be passed to Cursor.Current.
6059 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
6061 * ThemeWin32Classic.cs:
6062 - Change some private methods/fields to protected virtual so that
6063 they can be accessed and overriden in derived classes
6064 - First refactoring of some methods. Derived themes now don't
6065 need to duplicate the complete code from ThemeWin32Classic
6067 - Added nice StatusBar
6068 - Derive from ThemeWin32Classic and not Theme
6069 - Removed duplicate ThemeWin32Classic code
6071 2005-09-20 Miguel de Icaza <miguel@novell.com>
6073 * Control.cs (ControlCollection.Add): If the value null is passed
6074 the control is ignored.
6078 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
6080 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6081 PostQuitMessage state.
6082 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6084 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
6086 * Application.cs: Our constructor will never get called, move
6087 initialization to fields; fixes bug #75933
6089 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6092 - Allow files to be selected properly using file name
6094 - Add ability to change diretory (absolute / relative)
6095 using file name combo box.
6097 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
6100 - Fixes Multicolumn listboxes item wrong calculations
6101 - Allows to click when only one item is in the listbox
6102 - Fixes crash when no items using keyboard navigation
6104 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
6106 * ComboBox.cs: Reverted almost everything from the latest patch which
6109 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
6112 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6114 - When DropDownStyle is Simple, it does not show scrollbar
6115 to the last item of the list.
6116 - When DropDownStyle is Simple, it crashed when the list was
6117 scrolled down with the down cursor key.
6118 - Fixed a bug that when DropDownStyle is DropDownList, the
6119 selected item was not shown.
6120 - The position of the selected item was not preserved when
6121 the next dropdown happened.
6122 * ThemeWin32Classic.cs:
6123 - Items were wrapped at the right end.
6124 * CheckedListBox.cs:
6127 - Items should be fully shown.
6128 - When resizing and vertical scrollbar disappeared, the item
6129 of index 0 should be on the top of the list.
6130 - GetItemRectangle should consider the size of ver. scrollbar
6132 - SizingGrip area should not be allocated when it is not
6134 - Now it reflects MinWidth of the containing panel and
6135 fixed a crash that happens when its width becomes so small.
6137 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
6139 * CheckedListBox.cs: Fixes bug 76028
6140 * ListBox.cs: Fixes bug 76028
6142 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
6144 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6145 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6147 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
6149 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6151 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6153 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
6155 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6157 * IRootGridEntry.cs: Added
6158 * PropertyGridCommands.cs: Added
6159 * PropertiesTab.cs: Added missing methods and property
6160 * PropertyGridView.cs: Made class internal
6161 * PropertyGridTextBox.cs: Made class internal
6163 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6165 * MimeIcon.cs: Try to check some other environment variables
6166 if "DESKTOP_SESSION" returns "default"
6168 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6170 * ThemeNice.cs: Corrected background colors (e.g. menus)
6171 * ColorDialog.cs: Use correct background colors for controls
6173 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
6175 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6177 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
6179 * RichTextBox.cs: Added initial implementation
6180 * lang.cs: Removed. Was accidentally checked in long time ago
6181 * TODO: Removed. Contents were obsolete
6183 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
6185 * PropertiesTab.cs : Added
6187 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
6189 * PropertyGrid.cs : Update
6190 * PropertyGridView.cs : Update
6191 * System.Windows.Forms.resx : Added images and strings
6193 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
6195 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6197 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
6199 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6200 a busy loop right after the Ungrab the X11 display is otherwise
6203 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
6205 * ThemeWin32Classic.cs: Optimise the use of clipping
6207 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
6209 * DataGrid.cs: fixes recursion bug
6211 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
6214 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6217 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
6219 * ThemeNice.cs: Draw nice ProgressBars
6221 2005-09-01 Miguel de Icaza <miguel@novell.com>
6223 * VScrollBar.cs: Another buglet found by Aaron's tool.
6225 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6228 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
6231 - Added nicer menu drawing
6235 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6237 * CreateParams.cs (ToString): Made output match MS
6238 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
6239 handle is already created (to avoid forcing window creation)
6240 * XplatUIX11.cs: Set window text to caption after creating window,
6241 in case Text was set before window was created
6242 * Form.cs: Use this.Text instead of a static string as caption
6244 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6246 * NotifyIcon.cs: Don't set the window to visible; this screws
6247 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6248 OnPaint without a bitmap)
6249 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
6250 happen very often anyway; we could add the check to the WM_PAINT
6251 event generation code
6253 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6255 * NotifyIcon.cs: Fill the icon area with a background color, to
6256 avoid 'residue' when transparent icons are drawn
6258 - Handle whole_window == client_window when destroying windows
6259 - SystrayAdd(): Set client_window to whole_window value to
6260 get mouse and other events passed to NotifyIcon
6262 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
6264 * Form.cs: Set proper default for Opacity property
6266 - ShowSystray(): Don't bother creating telling the OS
6267 about the systray item if no icon is provided
6268 - Now handles WM_NCPAINT message to deal with whole/client window
6270 - Create window as visible to not get caught by Expose optimization
6271 * Hwnd.cs: Removed debug message
6272 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6273 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
6274 PaintEventStart/End to use new client argument
6276 - Commented out debug messages
6277 - Switched PaintEventStart/End to use new client argument
6278 * XplatUI.cs: Added client window bool to PaintEventStart()/
6279 PaintEventEnd() calls, to support drawing in non-client areas
6281 - Added client window bool to PaintEventStart()/PaintEventEnd()
6282 calls, to support drawing in non-client areas
6283 - Added conditional compile to allow using MWF BeginInvoke
6286 - Added some conditional debug output
6287 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6288 whole/client window split
6289 - Implemented handling of client argument to PaintEventStart()/End()
6291 - Throw exception if BeginInvoke() is called and the window handle
6292 or one of the window's parent handles is not created
6293 - Added conditional compile to allow using MWF BeginInvoke on
6295 - get_Parent(): Only sets parent if handle is created. This avoids
6296 forcing window handle creation when parent is set.
6297 - Now fires Layout and Parent changed events in proper order
6298 - Switched to use Handle instead of window.Handle for Z-Order setting,
6299 the get_Parent() patch above causes us to possibly get null for 'window'
6300 - Implemented handling of client argument to PaintEventStart()/End()
6301 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6303 - Now sends a Refresh() to all child windows when Refresh() is called
6305 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
6307 * Form.cs: Added (non-functional) Opacity property
6308 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6310 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
6311 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6312 use export MONO_THEME=nice to activate it.
6313 Currently supported controls:
6317 - TabControl (TabAlignment.Top only, other will follow)
6318 * ThemeEngine.cs: Add theme nice
6319 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6322 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
6324 * Splitter.cs: Resize docked control and its neighbor.
6326 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
6327 -- Making Windows with Menus layout correctly --
6328 * Form.cs : The first leg of the fix
6329 Menu setter - adjust Client Size as needed to make space for the menu
6330 SetClientSizeCore - doesn't call base version to be able to pass the
6331 menu handle to XplatUI.CalculateWindowRect
6332 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6333 * XplatUIX11.cs: The critical second leg of the fix
6334 GetWindowPos needs to use a recalculated client_rect
6335 so that resizing the window doesn't break layout of child controls.
6336 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6339 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
6341 * Label.cs: Now properly recalculates width and height on Font and Text
6342 changes if AutoSize is set
6344 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
6345 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6347 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
6349 * ImageList.cs: Makes ToString method compatible with MS
6351 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
6353 * MenuAPI.cs: fixes bug 75716
6355 2005-08-11 Umadevi S <sumadevi@novell.com>
6356 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6358 2005-08-11 Umadevi S <sumadevi@novell.com>
6359 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6361 2005-08-10 Umadevi S <sumadevi@novell.com>
6362 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6364 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
6366 * Menu.cs: fixes bug 75700
6367 * MenuAPI.cs: fixes navigation issues
6369 2005-08-09 Umadevi S <sumadevi@novell.com>
6370 * CheckedListBox.cs - simple fix for GetItemChecked.
6372 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
6374 * ComboBox.cs: Serveral fixes
6375 * ListBox.cs: Serveral fixes
6377 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
6379 * ComboBox.cs: Fixes FindString methods and GetItemHeight
6380 * ListBox.cs: Fixes FindString methods
6382 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
6384 * DataGrid.cs: fixes bugs exposed by new tests
6386 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
6388 * Mime.cs: Compile Mono assembly references only if compiling
6389 with Mono (Allows to build with VS.Net again)
6391 2005-07-28 Marek Safar <marek.safar@seznam.cz>
6393 * Control.cs (PaintControlBackground): Draw background image
6395 (CheckForIllegalCrossThreadCalls): Stubbed.
6397 * Form.cs (OnCreateControl): Center when should be centered.
6399 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6401 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
6403 * Binding.cs: Binding to properties should be case unsensitive
6405 2005-07-18 vlindos@nucleusys.com
6407 * DataGrid.cs: fixes setmember order
6409 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
6411 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6412 * FileDialog.cs: FileDialog is now resizable and uses the new
6415 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
6417 * DataGridTextBoxColumn.cs: default value
6418 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6419 * GridTableStylesCollection.cs: fixes checking MappingName
6420 * DataGridDrawingLogic.cs: fixes drawing logic issues
6421 * DataSourceHelper.cs: rewritten to make compatible with more data sources
6422 * DataGrid.cs: fixes
6424 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
6426 * MimeGenerated.cs: Use case sensitive comparer for
6427 NameValueCollections
6429 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
6431 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
6432 * ThemeWin32Classic.cs: bug fixes, code refactoring
6433 * DataGridDrawingLogic.cs: bug fixes, code refactoring
6434 * DataGrid.cs: bug fixes, code refactoring
6435 * DataGridTextBox.cs: bug fixes, code refactoring
6436 * DataGridColumnStyle.cs: bug fixes, code refactoring
6437 * Theme.cs: bug fixes, code refactoring
6439 2005-07-01 Peter Bartok <pbartok@novell.com>
6441 * TextControl.cs: Quick fix for the reported crash on ColorDialog
6442 and other text box usage
6444 2005-07-01 Jackson Harper <jackson@ximian.com>
6446 * TabControl.cs: Make sure the bottom of the tab covers the pages
6449 2005-06-30 Peter Bartok <pbartok@novell.com>
6451 * Form.cs (ShowDialog): Assign owner of the dialog
6452 * TextBoxBase.cs: Always refresh caret size when deleting, caret
6453 might have been moved to a tag with different height
6455 2005-06-30 Jackson Harper <jackson@ximian.com>
6457 * Form.cs: Don't create an infinite loop when setting focus
6458 * MenuItem.cs: Don't dirty the parents if we don't have any
6460 2005-06-29 Ben Maurer <bmaurer@ximian.com>
6462 * LibSupport.cs: Rename
6464 2005-06-29 Peter Bartok <pbartok@novell.com>
6466 * TextBoxBase.cs: Re-align caret after deleting a character
6468 - DeleteChars(): Ensure that tag covers the provided position
6469 - StreamLine(): Drop reference for dropped tag
6471 2005-06-29 Peter Bartok <pbartok@novell.com>
6474 - Selections now work properly, anchoring at the initial location
6475 and properly extending in either direction (SetSelectionToCaret(),
6476 SetSelectionStart() and SetSelectionEnd())
6477 - No longer redraws the whole control on selection change, now
6478 calculates delta between previous and new selection and only
6479 invalidates/redraws that area
6480 - Fixed FindPos() math off-by-one errors
6481 - Changed DeleteChars() to verify the provided tag covers the
6482 provided position, selections may have a tag that doesn't cover
6483 the position if the selection is at a tag border
6484 - Fixed off-by-one errors in DeleteChars()
6485 - Added missing streamlining check in DeleteChars() to remove
6487 - Implemented Invalidate() method, now properly calculates exposures
6488 between two given lines/positions
6489 - Implemented SetSelection()
6490 - Obsoleted and removed FixupSelection()
6491 - Improved RecalculateDocument() logic, removing code duplication
6493 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6495 * LibSupport.cs: changes to match different input/output arguments.
6497 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6499 * LibSupport.cs: added libsupport.so init routine.
6501 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
6503 * ControlBindingsCollection.cs
6504 - Throws an exception on null datasource when adding
6505 - Checks for duplicated bindings when adding
6507 2005-06-28 Jackson Harper <jackson@ximian.com>
6509 * TreeView.cs (OnKeyDown): Support left and right properly
6510 (navigates as well as expanding and collapsing.
6511 - Add support for Multiply, this expands all the selected nodes
6515 2005-06-28 Jackson Harper <jackson@ximian.com>
6517 * TreeView.cs: Implement keyboard navigation, currently supports,
6518 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6519 support for toggling checkboxes with the space bar.
6521 2005-06-28 Jackson Harper <jackson@ximian.com>
6523 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6526 2005-06-28 Jackson Harper <jackson@ximian.com>
6528 * TreeView.cs: Add missing event.
6530 2005-06-27 Peter Bartok <pbartok@novell.com>
6533 - Made line ending size configurable (now allows for counting
6534 lineendings as \n or \r\n)
6535 - Added margin to viewport to keep caret visible on right side
6536 - Fixed translation routines for line/pos to documentpos to consider
6537 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6538 - Fixed some line-endings to be unix style
6539 - Fixed Document.FormatText to perform it's calculations 1-based
6540 - Added descriptions for a few methods that might otherwise get
6542 - Added NOTE section with some basic conventions to remember at
6544 - Major fixup for RichTextBox selection drawing:
6545 * Fixed crashes when multiple tags on a single line were selected
6546 * fixed selection box drawing not overlaying text
6547 * fixed bogus offset calculation for tags not starting at index 1
6548 * Switched behaviour from using multiple Substrings of a
6549 StringBuilder.ToString() to using multiple
6550 StringBuilder.ToString(start, length) statements, hoping this is
6551 faster (kept original version commented out in the code, in case
6552 original version was faster)
6553 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
6555 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6558 2005-06-27 Jackson Harper <jackson@ximian.com>
6560 * TabControl.cs: Move to the left and right with the arrow
6561 keys. These keys don't cycle beyond first and last like
6562 tab. Refresh all the tabs when scrolling them to the left or
6565 2005-06-27 Jackson Harper <jackson@ximian.com>
6568 - ToString: Added method
6569 - CreateParams: Remove TODO and comment
6570 - OnKeyDown: Cycle through bounds properly.
6571 - SelectedIndex: Scroll to the right or left if we need to
6572 display the newly selected tab.
6574 2005-06-23 Jackson Harper <jackson@ximian.com>
6576 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6579 2005-06-23 Jackson Harper <jackson@ximian.com>
6581 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6582 CTRL-SHIFT-TAB, and HOME, END are there any others?
6584 2005-06-23 Jackson Harper <jackson@ximian.com>
6586 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6588 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
6590 * DataGridTextBoxColumn.cs: fixes and enhancements
6591 * ThemeWin32Classic.cs: fixes and enhancements
6592 * DataGridBoolColumn.cs: fixes and enhancements
6593 * DataGridDrawingLogic.cs: fixes and enhancements
6594 * CurrencyManager.cs: fixes and enhancements
6595 * DataGrid.cs: fixes and enhancements
6596 * DataGridColumnStyle.cs: fixes and enhancements
6598 2005-06-22 Jackson Harper <jackson@ximian.com>
6600 * TabControl.cs: Add some missing methods that just call into the
6601 base. Make the TabPageCollection's IList interface behave in the
6602 same manner as the MS implementation.
6604 2005-06-22 Peter Bartok <pbartok@novell.com>
6606 * TextControl.cs: Added sanity check
6608 - Fixed wrapping behaviour, don't set wrap on single line controls
6609 (this fixes the breakage of colordialog introduced in an earlier
6611 - Added rudimentary support for autoscrolling right-aligned controls
6612 (still needs fixing, also, center alignment scroll is missing)
6614 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
6616 * ScrollBar.cs: Fixes thumbpos on Maximum values
6618 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
6620 * PropertyGridView.cs: Pass context information to UITypeEditors
6622 2005-06-21 Peter Bartok <pbartok@novell.com>
6625 - Now calling PositionCaret with absolute space coordinates
6626 - Enabled vertical scrolling
6627 - Better tracking of scrollbar changes, tied into WidthChange
6629 - Improved cursor tracking
6630 - Removed debug output
6632 - PositionCaret coordinates are now works in absolute space, not
6634 - Improved tracking of document size
6635 - Added events for width and height changes
6637 2005-06-21 Peter Bartok <pbartok@novell.com>
6639 * Form.cs: Set focus to active control when form is activated
6641 - Added word-wrap functionality to RecalculateLine()
6642 - Added some short function descriptions for VS.Net to aid in
6643 writing dependent controls
6644 - Added Caret property, returning the current coords of the caret
6645 - Added ViewPortWidth and ViewPortHeight properties
6646 - Added Wrap property
6647 - Added CaretMoved event
6648 - Removed some old debug code
6649 - Split() can now create soft splits
6650 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6651 - Added method to format existing text
6652 - Fixed size/alignment calculations to use viewport
6653 - RecalculateDocument now can handle changing line-numbers while
6657 - Added some wrap logic, we don't wrap if alignment is not left
6658 - Added casts for scrollbar var, base class switched types to
6659 also support RichTextBoxA
6660 - Implemented handling of scrollbar visibility flags
6663 - Switched scrollbars type to RichTextBoxScrollBars to support
6665 - Added tracking of canvas width/height
6666 - Switched scrollbars to be not selectable (to keep focus on text)
6667 - Added central CalculateDocument() method to handle all redraw
6669 - Added ReadOnly support
6670 - Added WordWrap support
6671 - Fixed handling of Enter key (we now treat it as a DialogKey)
6672 - Fixed caret positioning when h or v scroll is not zero
6673 - Fixed placing/generation of vertical scrollbar
6674 - Added CalculateScrollBars() method to allow updating scrollbar
6675 limits and visibility
6676 - Fixed handling of horizontal scroll
6677 - Added handling of vertical scroll
6678 - Implemented auto-'jump' when caret moves to close to a left or
6679 right border and there is text to be scrolled into view (currently
6680 there's the potential for a stack overflow, until a bug in
6683 2005-06-21 Geoff Norton <gnorton@customerdna.com>
6685 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6687 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
6691 - return application/x-zerosize for files with size zero
6692 (if no extension pattern matches).
6693 - check matches collection for strings too.
6694 - return only the first mime type if the name value
6695 collection has more than one mime type.
6697 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
6699 * PropertyGrid.cs: Cleaned up some TODOs
6700 * PropertyGridView.cs: Added support for UITypeEditors
6702 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
6704 * DataGrid.cs: clears cached value
6706 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
6708 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6709 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6710 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6711 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6713 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
6715 * ThemeWin32Classic.cs: fixes colour
6717 2005-06-15 Peter Bartok <pbartok@novell.com>
6719 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6720 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6721 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6722 * Control.cs: Added some MWFCategory and MWFDescription attributes
6723 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6725 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
6727 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6730 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
6732 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6733 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6734 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6735 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6736 * DataGrid.cs: default datagrid settings for Default Styles, fixes
6737 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6739 2005-06-13 Jackson Harper <jackson@ximian.com>
6741 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6742 isn't printed when the user enables dropping. (X11 does accept
6745 2005-06-13 Jackson Harper <jackson@ximian.com>
6747 * TreeView.cs: Remove some TODOS.
6749 2005-06-13 Jackson Harper <jackson@ximian.com>
6751 * Form.cs: Hook into the mdi framework.
6752 * MdiClient.cs: Use the base control collections add method so
6753 parents get setup correctly. Set the default back colour and dock
6755 * MdiChildContext.cs: New class, this bad actor handles an
6756 instance of an MDI window. Right now there is only basic
6757 support. You can drag, close, and resize windows. Minimize and
6758 Maximize are partially implemented.
6760 2005-06-13 Jackson Harper <jackson@ximian.com>
6762 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6763 freaky when both vals are negative. NOTE: There are probably other
6764 places in XplatUIX11 that this needs to be done.
6766 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
6768 * DataGrid.cs: implement missing methods, move KeyboardNavigation
6769 * DataGridColumnStyle.cs: fixes signature
6771 2005-06-12 Jackson Harper <jackson@ximian.com>
6773 * XplatUIX11.cs: Use sizing cursors similar to the ones on
6776 2005-06-11 Jackson Harper <jackson@ximian.com>
6778 * StatusBarPanel.cs: Signature cleanups. Implement
6781 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
6783 * DataGridTextBoxColumn.cs: Honors aligment
6784 * GridColumnStylesCollection.cs: Contains is case unsensitive
6785 * GridTableStylesCollection.cs: several fixes
6786 * DataGridTableStyle.cs: default column creation
6787 * DataGridDrawingLogic.cs: fixes
6788 * CurrencyManager.cs: ListName property
6789 * DataGrid.cs: multiple styles support
6790 * DataGridColumnStyle.cs: fixes
6793 2005-06-10 Peter Bartok <pbartok@novell.com>
6795 * Control.cs(Select): Moved SetFocus call to avoid potential
6796 loops if controls change the active control when getting focus
6797 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6800 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
6802 * ImageListConverter.cs: Implemented
6804 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
6806 * MonthCalendar.cs: Wired in NumericUpDown control for year
6808 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
6810 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6811 DoubleClick events, since they are not meant to be fired.
6813 2005-06-09 Peter Bartok <pbartok@novell.com>
6815 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6816 Jonathan's standalone controls into MWF, implemented missing
6817 events, attributes and methods; added xxxAccessible classes
6818 * AccessibleObject.cs: Made fields internal so other classes
6819 can change them if needed
6821 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
6823 * UpDownBase.cs: Complete implementation
6824 * NumericUpDown.cs: Complete implementation
6825 * DomainUpDown.cs: Complete implementation
6827 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
6829 * DataGridTextBoxColumn.cs: drawing fixes
6830 * DataGridCell.cs: fixes ToString method to match MSNet
6831 * DataGridTableStyle.cs: fixes
6832 * DataGridBoolColumn.cs: fixes, drawing
6833 * DataGridDrawingLogic.cs: fixes, new methods
6834 * DataGridTextBox.cs: Keyboard and fixes
6836 - Keyboard navigation
6838 - Row selection (single, multiple, deletion, etc)
6841 2005-06-07 Jackson Harper <jackson@ximian.com>
6843 * ThemeWin32Classic.cs: Clear the background area when drawing
6846 2005-06-06 Peter Bartok <pbartok@novell.com>
6848 * ImageListStreamer.cs: Fixed signature for GetData
6849 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6851 - Added missing ChildAccessibleObject class
6852 - Added missing OnXXXFocus overrides, switched to using those
6853 instead of the event handler
6855 - Added Parent property for ControlAccessibleObject
6858 - Added ResetBindings()
6859 * ListBindingConverter.cs: Implemented some methods
6860 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6861 * ImageList.cs: Implemented basic handle scheme, removed TODOs
6862 * ContainerControl.cs: Fixed signature, now subscribing to the
6863 ControlRemoved event instead of overriding the handler, LAMESPEC
6864 * CurrencyManager.cs: Added missing attribute
6865 * MonthCalendar.cs: Added missing properties
6867 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
6869 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6871 2005-06-06 Gaurav Vaish and Ankit Jain
6873 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6874 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6876 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
6878 * Control.cs: fixes CreateParams Width / Height.
6880 2005-06-05 Peter Bartok <pbartok@novell.com>
6882 * Win32DnD.cs: Removed compilation warnings
6884 2005-06-05 Peter Bartok <pbartok@novell.com>
6886 * Control.cs (CreateParams): Since we don't know if one of the
6887 properties we use is overridden, lets make sure if we fail accessing
6888 we continue with a backup plan
6890 2005-06-05 Peter Bartok <pbartok@novell.com>
6893 - Removed debug output
6894 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
6896 - Plugged resource leak
6897 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
6900 2005-06-05 Peter Bartok <pbartok@novell.com>
6902 * XplatUIWin32.cs: Removed DnD code
6903 * Win32DnD.cs: Implemented drop source and drop target functionality
6905 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6907 * UpDownBase.cs: remove duplicate addition of event, enable some code
6908 that was commented out.
6909 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
6910 Validate input when a key is pressed. It works fine now for every
6911 combination of Hexadecimal. Only missing some drawing love when sharing
6912 space with other controls.
6914 2005-06-04 Peter Bartok <pbartok@novell.com>
6917 - We need to pass a window for DragDrop, so enable callback events
6918 - Added DnD callback events when being a DragSource
6919 * XplatUI.cs (StartDrag): Added window handle argument
6920 * XplatUIDriver.cs (StartDrag): Added window handle argument
6921 * QueryContinueDragEventArgs: Made fields internally accessible so
6922 drivers can set them
6923 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
6926 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
6928 * DataGridTextBoxColumn.cs: column text editing
6929 * DataGridTableStyle.cs: Respect columns styles created by the user
6930 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
6931 * DataGridBoolColumn.cs: bool column editing
6932 * DataGrid.cs: fixes to scrolling, properties, etc
6933 * DataGridTextBox.cs: handle keyboard
6934 * DataGridColumnStyle.cs: fixes
6936 2005-06-02 Jackson Harper <jackson@ximian.com>
6938 * ImageListStreamer.cs: Somewhat broken implementation of
6939 GetObjectData. The RLE needs some work to match MS properly.
6941 2005-06-02 Jackson Harper <jackson@ximian.com>
6943 * X11Dnd.cs: Attempting to keep at least one file in MWF
6946 2005-06-02 Peter Bartok <pbartok@novell.com>
6948 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
6951 2005-06-02 Peter Bartok <pbartok@novell.com>
6953 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
6954 * XplatUI.cs: Added DoDragDrop() method
6955 * XplatUIDriver.cs: Added DoDragDrop() method
6957 2005-06-02 Jackson Harper <jackson@ximian.com>
6959 * Splitter.cs: Implement BorderStyle.
6961 2005-06-02 Jackson Harper <jackson@ximian.com>
6963 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
6964 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
6967 2005-06-02 Peter Bartok <pbartok@novell.com>
6971 - Fixed broken insertion code for SetData, now also
6972 overwrites any existing entry of the same format name
6973 * Hwnd.cs: Added list of pointers that automatically gets
6974 freed when the window is disposed
6975 * XplatUI.cs: Call driver initialization method when loading
6978 - OnDragLeave takes EventArgs, not DragEventArgs
6979 - Added setting of WS_EX_ACCEPTFILES style when dropping is
6981 - Forces style update when drop state changes
6982 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
6983 not perfect since we cannot (yet) call the IDataObject.GetData()
6984 method, we keep getting 0x80004005 error, dunno why)
6986 2005-06-02 Peter Bartok <pbartok@novell.com>
6988 * DragEventArgs.cs: Make fields internal so we can cache the
6989 object and re-set the fields from XplatUI
6991 2005-06-02 Jackson Harper <jackson@ximian.com>
6993 * Control.cs: Add some internal methods so the DnD subsystem can
6994 raise DnD events. Also call into the driver when AllowDrop is set.
6996 * XplatUIDriver.cs: New method for setting whether or not a window
6997 is allowed to accept drag and drop messages.
6999 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
7001 * ScrollBar.cs: Make sure that values sent in Scroll events
7002 are always between Maximum and Minimum.
7004 2005-06-01 Marek Safar <marek.safar@seznam.cz>
7006 * Menu.cs: Call MenuChanged when menuitem visibility has been
7008 * MenuItem.cs: Rebuild menu when item is (not) visible.
7009 * MainMenu.cs: MainMenu has special MenuChanged.
7010 * Theme.cs: Caption and FrameBorderSize are not fixed.
7011 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7012 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7014 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7015 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7017 2005-05-30 Jackson Harper <jackson@ximian.com>
7019 * DataFormat.cs: We can't statically initialize this stuff because
7020 it calls into the xplatui and could create a loop. So we lazy init
7023 2005-05-28 Jackson Harper <jackson@ximian.com>
7025 * Control.cs: Proper implementation of Product(Name/Version).
7027 2005-05-27 Jackson Harper <jackson@ximian.com>
7029 * DataObject.cs: Dont crash if no data is found.
7031 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
7032 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7033 as per status page, guessing it should be set to true
7035 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
7037 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7038 * DataGridTableStyle.cs: set proper formatting text, def header text
7039 * ThemeWin32Classic.cs: new themable paramaters
7040 * DataGridBoolColumn.cs: paint check box, get data, fixes
7041 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7042 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7043 * DataGridColumnStyle.cs: fixes
7044 * Theme.cs: new themable paramaters
7046 2005-05-26 Peter Bartok <pbartok@novell.com>
7048 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7050 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7051 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7053 2005-05-24 Peter Bartok <pbartok@novell.com>
7055 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7056 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7057 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7058 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7059 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7060 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7061 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7062 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7063 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7064 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7065 missing attributes, etc
7066 * DataGridPreferredColumnWidthTypeConverter.cs: Added
7068 2005-05-24 Peter Bartok <pbartok@novell.com>
7070 * Help.cs: Added, implemented trivial functions, throws up MessageBox
7071 when user tries to get help
7072 * DataObject.cs, DataFormats.cs, LinkArea.cs,
7073 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7074 to suppress warnings
7075 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7076 avoid unreachable code warning
7078 2005-05-20 Peter Bartok <pbartok@novell.com>
7080 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7082 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7084 * DataGridTextBoxColumn.cs: Basic painting methods
7085 * DataGridTableStyle.cs: Set table style in the column
7086 * ThemeWin32Classic.cs: Use Theme for colors
7087 * DataGridDrawingLogic.cs: Implement more drawing
7088 * DataGrid.cs: drawing, theming, enhacements, fixes
7089 * DataGridColumnStyle.cs: fixes, drawing
7090 * Theme.cs: theming for Datagrid
7092 2005-05-20 Peter Bartok <pbartok@novell.com>
7094 * Cursor.cs: Implemented GetObjectData() method
7096 2005-05-20 Peter Bartok <pbartok@novell.com>
7098 * Cursors.cs: Added setting of cursor name
7100 - Implemented constructors
7101 - Implemented Draw and DrawStretched
7102 - Implemented Current property
7103 - Implemented == and != operators
7104 - Implemented Dispose()
7105 - Implemented ToString
7106 - Added missing attributes
7108 - Added missing reset for OverrideCursor when DoEvents is called
7109 - Fixed creation of cursor, logic was wrong
7111 - Added missing reset for OverrideCursor when DoEvents is called
7112 - Fixed creation of cursor, bit arrays were swapped
7113 * Clipboard.cs: Removed obsolete MonoTODO attribute
7115 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7117 * ComboBox.cs: fixes OnSelectedItemChanged
7118 * ControlBindingsCollection.cs: fixes item range check
7120 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
7123 - Calc preferred height properly
7124 - Implement missing properties
7126 * NumericUpDown.cs: Implement missing events
7128 2005-05-19 Jackson Harper <jackson@ximian.com>
7130 * TabControl.cs: New method that resizes the tab pages before
7131 redrawing them. This as needed as the control is double buffered
7132 and sizing will not be recalculated unless ResizeTabPages is
7134 * TabPage.cs: Set base.Text instead of Text in the constructor so
7135 that UpdateOwner does not get called. Use the new Redraw method of
7136 TabControl instead of Refresh so the sizing is recalculated.
7137 * ThemeWin32Classic.cs: Draw the text for button tabs.
7139 2005-05-19 Jackson Harper <jackson@ximian.com>
7141 * Control.cs: Paint control background images. Fix typo where
7142 PaintControlBackground was not getting called correctly.
7144 2005-05-19 Peter Bartok <pbartok@novell.com>
7146 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7147 I can investigate, apparently I broke FileDialog
7149 2005-05-19 Marek Safar <marek.safar@seznam.cz>
7151 * AxHost.cs: Some simple properties.
7152 * Control.cs: window must be accessible after ctor.
7153 * Form.cs: Added TransparencyKey property.
7154 * TextBoxBase.cs: Implemented Clear. Text property can be null.
7155 * XplatUIWin32.cs: SetBorderStyle implemented.
7157 2005-05-18 Peter Bartok <pbartok@novell.com>
7159 * DataObject.cs: Entries are not global but particular to the
7160 DataObject, now it behaves that way
7161 * XplatUIWin32.cs: Implemented Clipboard methods
7162 * Clipboard.cs: Implemented
7163 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7164 * XplatUIOSX.cs: Updated to final clipboard prototypes
7165 * XplatUIX11.cs: Implemented Clipboard methods
7166 * XplatUIDriver.cs: Updated to final clipboard prototypes
7167 * XplatUIStructs.cs:
7168 - Added BITMAPINFOHEADER struct
7169 - Added ClipboardFormats enum
7171 - Added ClipboardStruct
7172 - Added Atom enum items for clipboard types
7173 - Fixed atom types for Selection event structures
7175 - Added internal properties and methods for drivers to enumerate
7177 - Switched initialization method to allow drivers to assign their
7178 own IDs even for the MS predefined clipboard IDs
7179 * XplatUI.cs: Updated to final clipboard interface
7181 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7182 * PropertyGridView.cs: Fixed compiler warnings.
7184 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7185 * PropertyGrid.cs: Added some event calls
7186 * PropertyGridView.cs: Change drawing code to use double buffering
7187 * PropertyGridTextBox.cs: Changed Text property name
7188 * GridItem.cs: Added Bounds property.
7189 * GridEntry.cs: Added Bounds property.
7191 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
7193 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7194 since GetType() may not return the correct type if the object is
7197 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
7199 * TreeNodeCollection.cs: fixes get/set item ranges
7201 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
7203 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7205 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
7207 * ComboBox.cs: Fix item range comparation
7208 * ListView.cs: Fix item range comparation
7210 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
7213 - Clear example panel when OnPaint is called
7214 - Better solution for displaying the example panel text
7215 - Select default indexes in the ListBoxes
7217 2005-05-11 Geoff Norton <gnorton@customerdna.com>
7219 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
7221 2005-05-11 Peter Bartok <pbartok@novell.com>
7223 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7224 * SelectionRangeConverter.cs: Implemented
7225 * PropertyGrid.cs: Fixed attribute value
7227 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7228 - Added Sebastien Pouliot's CAS Stack Propagation fixes
7229 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7230 that's common to all drivers. First methods to go there are
7231 Sebastien Pouliot's CAS Stack Propagation helper methods
7232 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7233 Sebastien Pouliot for CAS Stack Propagation
7235 2005-05-11 Geoff Norton <gnorton@customerdna.com>
7238 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7240 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
7242 * DataGridTextBoxColumn.cs: fixed some members
7243 * GridColumnStylesCollection.cs: indexed column is case insensitive
7244 * DataGridTableStyle.cs: fixes
7245 * ThemeWin32Classic.cs: add new theme parameter
7246 * Theme.cs: add new theme parameter
7247 * DataGridDrawingLogic.cs: Datagrid's drawing logic
7248 * DataGrid.cs: fixes, new internal properties, etc.
7249 * DataGridColumnStyle.cs: allows to set grid value
7252 2005-05-10 Peter Bartok <pbartok@novell.com>
7254 * AccessibleObject.cs:
7255 - Removed MonoTODO attribute on help, method is correct
7256 - Fixed Bounds property
7257 * AxHost.cs: Moved MonoTODO
7258 * ButtonBase.cs: Now setting AccessibleObject properties
7259 * RadioButton.cs: Setting proper AccessibleObject role
7260 * CheckBox.cs: Setting proper AccessibleObject role
7261 * ControlBindingsCollection.cs: Added properties, methods and attributes
7262 * DataFormats.cs: Fixed awkward internal API, and changed to enable
7263 userdefined DataFormats.Format items as well
7264 * ListControl.cs: Removed data_member from the public eye
7265 * OpenFileDialog.cs:
7267 - Added missing attributes
7268 * SaveFileDialog.cs: Added missing attributes
7269 * ImageListStreamer.cs: Fixed code that caused warnings
7270 * LinkLabel.cs: Removed unreachable code
7271 * TreeView.cs: Fixed code that caused warnings
7272 * PropertyGridView.cs: Fixed code that caused warnings
7273 * GridColumnStylesCollection.cs: Added missing attributes
7274 * GridTableStylesCollection: Added missing attribute
7275 * PropertyManager: Added .ctor
7276 * SecurityIDType: Added
7277 * DataObject.cs: Implemented class
7278 * LinkArea.cs: Added missing attribute
7280 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
7282 * RadioButton.cs: call base method to allow to fire OnClick event
7283 * UpDownBase.cs: OnMouseUp call base method
7284 * CheckedListBox.cs: call base method before returning
7285 * TrackBar.cs: call base method before returning
7288 2005-05-10 Peter Bartok <pbartok@novell.com>
7290 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7293 2005-05-10 Peter Bartok <pbartok@novell.com>
7295 * DataFormats.cs: Implemented
7296 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7297 XplatUIX11.cs: Added Clipboard APIs
7298 * XplatUIWin32.cs: Implemented Clipboard APIs
7299 * FolderBrowserDialog.cs: Added missing event, attributes
7301 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
7303 * CheckBox.cs: call base method to allow to fire OnClick event
7305 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
7307 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7309 2005-05-06 Peter Bartok <pbartok@novell.com>
7311 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7312 * Screen.cs: Implemented
7313 * HelpNavigator.cs: Added
7314 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7316 * HelpProvider.cs: Implemented all we can do until we have a CHM
7317 help library (which means that "What's This" does work now)
7319 2005-05-06 Jackson Harper <jackson@ximian.com>
7321 * XplatUIX11.cs: Fix waking up the main loop.
7323 2005-05-05 Peter Bartok <pbartok@novell.com>
7325 * XplatUI.cs: Updated revision
7326 * Form.cs: Removed enless loop
7327 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7328 * Label.cs (OnPaint): Added call to base.OnPaint()
7329 * ToolTip.cs: Made ToolTipWindow reusable for other controls
7330 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7331 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7333 * ButtonBase.cs: Moved base.OnPaint() call to end of method
7334 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7335 to ToolTip.ToolTipWindow for drawing and size methods; this allows
7336 reuse of ToolTipWindow by other controls
7337 * SizeGrip.cs: Moved base.OnPaint() call to end of method
7338 * XplatUIX11.cs: Now clipping drawing area (experimental)
7339 * PictureBox.cs: Moved base.OnPaint() call to end of method
7340 * Theme.cs: Fixed ToolTip abstracts to match new format
7341 * ErrorProvider.cs: Implemented
7343 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
7345 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7349 - Implements LinkBehavior
7352 2005-05-03 Jackson Harper <jackson@ximian.com>
7354 * ListView.cs: Calculate the scrollbar positioning on resize and
7355 paint, so they get put in the correct place.
7357 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
7359 * ColorDialogs.cs: The small color panels are now handled by
7360 SmallColorControl. This fixes drawing of the focus rectangle
7361 and adds a 3D border.
7363 2005-05-03 Peter Bartok <pbartok@novell.com>
7365 * Control.cs: Modified version of Jonathan Chamber's fix for
7368 2005-05-03 Jackson Harper <jackson@ximian.com>
7370 * ListView.cs: Remove redraw variable. Control now handles whether
7371 or not a redraw needs to be done, and will only raise the paint
7372 event if redrawing is needed.
7374 2005-05-03 Jackson Harper <jackson@ximian.com>
7376 * Splitter.cs: No decorations for the splitter form. Cache the
7379 2005-05-03 Jackson Harper <jackson@ximian.com>
7381 * TreeView.cs: Use dashed lines to connect nodes. Use the
7382 ControlPaint method for drawing the focus rect instead of doing
7385 2005-05-02 Peter Bartok <pbartok@novell.com>
7387 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7389 2005-04-29 Jackson Harper <jackson@ximian.com>
7391 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7392 entire image buffer. Just clear the clipping rectangle.
7394 2005-04-29 Jackson Harper <jackson@ximian.com>
7396 * ThemeWin32Classic.cs: Don't draw list view items that are
7397 outside the clipping rectangle.
7399 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
7401 * ListBox.cs: added horizontal item scroll
7403 2005-04-29 Jackson Harper <jackson@ximian.com>
7405 * ThemeWin32Classic.cs: Remove some old debug code that was
7406 causing flicker with the new double buffering code.
7408 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
7410 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7411 behave like combobox and comboboxlist (still not sure if this is
7414 2005-04-28 Jackson Harper <jackson@ximian.com>
7416 * ThemeWin32Classic.cs: Don't fill the middle of progress
7417 bars. This fills areas outside of the clip bounds that don't need
7420 2005-04-28 Jackson Harper <jackson@ximian.com>
7422 * Control.cs: Don't expose functionality to touch the image buffers.
7424 * ListView.cs: We do not need to (and no longer can) manipulate
7425 the image buffers directly. All of this is handled by Control.
7427 2005-04-28 Peter Bartok <pbartok@novell.com>
7429 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7430 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7431 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7433 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
7436 - Adjust control's height for non-simple comboboxes (bug fix)
7438 * MenuAPI.cs: remove unused var
7439 * ScrollBar.cs: remove unsed var
7441 * ListBox.cs: unselect items when clearing
7443 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
7445 * ListControl.cs: honors OnPositionChanged and default Selected Item
7446 * ListBox.cs: unselect items when clearing
7448 2005-04-27 Jackson Harper <jackson@ximian.com>
7450 * X11Keyboard.cs: Initialize a default keyboard and give a warning
7451 if a "correct" keyboard is not found. This will make us not crash,
7452 but might give some users bad keyboard layouts...seems to be the
7453 same thing rewind does.
7455 2005-04-27 Jackson Harper <jackson@ximian.com>
7457 * BindingManagerBase.cs: Attach the current/position changed
7458 handlers to their respective events.
7460 2005-04-27 Jackson Harper <jackson@ximian.com>
7462 * Control.cs: Make sure that the first WM_PAINT does a full draw,
7464 * ThemeWin32Classic.cs: Don't fill the background for picture
7465 boxes. This could overright user drawing.
7466 * ComboBox.cs: Just fill the clipping rect not the entire client
7467 rect when drawing the background. This prevents pieces of the
7468 image buffer from getting overwritten and is theoretically faster.
7470 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
7472 * ComboBox.cs: Databinding support fixes, fire missing events
7473 * ListControl.cs: implement missing methods and properties, fixes
7474 * ThemeWin32Classic.cs: Databiding support on Drawing
7475 * CheckedListBox.cs: Databinding support fixes, fire missing events
7476 * ListBox.cs: Databinding support fixes, fire missing events
7478 2005-04-25 Peter Bartok <pbartok@novell.com>
7480 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7482 2005-04-25 Jackson Harper <jackson@ximian.com>
7484 * TreeView.cs: Use the horizontal scrollbars height not width when
7485 determining how much of the client area is available.
7487 2005-04-25 Jackson Harper <jackson@ximian.com>
7489 * Control.cs: Double buffering is handled differently now. As per
7490 the spec, the extra buffer is created in the WM_PAINT message and
7491 passed down to the control's drawing code.
7499 * PropertyGridView.cs:
7511 * DateTimePicker.cs:
7513 * TreeView.cs: Update to new double buffering system.
7514 * MonthCalendar.cs: Uncomment block, as Capture is now
7515 working. Update to new double buffering
7516 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7517 * PaintEventArgs.cs: New internal method allows us to set the
7518 graphics object. This is used for double buffering.
7519 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7520 rectangle. The internal paint_area var has been removed from
7521 StatusBar. The clipping rect should be used instead.
7522 * Theme.cs: Give the PictureBox drawing method a clipping rect.
7523 * TabPage.cs: The RefreshTabs method was removed, so just call the
7524 tab controls Refresh method now.
7525 * TabControl.cs: Update to new double buffering. Make sure the
7526 handle is created before sizing the tab pages, otherwise we will
7527 get stuck in a loop.
7529 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
7531 * LinkLabel.cs: Fix typo, bug #74719; patch
7532 from Borja Sanchez Zamorano
7534 2005-04-22 Jackson Harper <jackson@ximian.com>
7536 * TreeNode.cs: Implement Handle stuff.
7537 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7539 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
7541 * DataGridTextBoxColumn.cs: call base constructors, fixes
7542 * GridColumnStylesCollection.cs: missing events, methods, and functionality
7543 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7544 * DataGridTableStyle.cs: implements create default column styles
7545 * DataGridBoolColumn.cs: which types can handle
7546 * DataGrid.cs: missing methods, fixes, new functionality
7547 * DataGridColumnStyle.cs: fixes
7549 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
7550 * FolderBrowserDialog.cs:
7551 - Use a thread to fill the TreeView
7552 - Adjusted some sizes
7554 2005-04-19 Peter Bartok <pbartok@novell.com>
7556 * LinkLabel.cs: (Re-)create the pieces when setting the Text
7557 property. Fixes #74360.
7559 2005-04-19 Jackson Harper <jackson@ximian.com>
7561 * XEventQueue.cs: Lock when getting the lockqueue size.
7562 * PictureBox.cs: Call base OnPaint
7564 2005-04-19 Peter Bartok <pbartok@novell.com>
7566 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7567 messages were no longer being processed (this broke BeginInvoke)
7570 2005-04-18 Jackson Harper <jackson@ximian.com>
7572 * TreeView.cs: buglet that caused node images to get drawn
7573 regardless of whether or not they were in the clipping rectangle.
7575 2005-04-18 Jackson Harper <jackson@ximian.com>
7577 * CurrencyManager.cs: There are four rules for GetItemProperties:
7578 - If the type is an array use the element type of the array
7579 - If the type is a typed list, use the type
7580 - If the list contains an Item property that is not an object, use
7582 - use the first element of the list if there are any elements in
7585 2005-04-17 Jackson Harper <jackson@ximian.oom>
7587 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7588 click. This handles offsets for scrolling properly and reduces
7589 memory. Also fixed GetNode to not offset now that TopNode works
7591 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7593 2005-04-17 Jackson Harper <jackson@ximian.com>
7595 * CursorConverter.cs: Initial implementation.
7597 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
7599 * ListControl.cs: work towards complex data binding support on ListControl
7600 * CurrencyManager.cs: work towards complex data binding support on ListControl
7601 * ListBox.cs: work towards complex data binding support on ListControl
7604 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
7606 * GridTableStylesCollection.cs: fixes name and constructor
7607 * DataGridTableStyle.cs: fixes
7608 * DataGridBoolColumn.cs: fixes names and constructors
7609 * DataGrid.cs: define methods and properties. Some init implementations
7610 * DataGridCell.cs: define methods and properties. Some init implementations
7611 * GridTablesFactory.cs: Define methods and properties
7613 2005-04-15 Geoff Norton <gnorton@customerdna.com>
7615 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
7616 graphics port changes. We still want the coordinates in global screen
7619 2005-04-14 Jackson Harper <jackson@ximian.com>
7621 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7622 check plus minus or checkbox clicks unless those features are enabled.
7624 2005-04-14 Jackson Harper <jackson@ximian.com>
7626 * TreeView.cs: Add methods for setting the top and bottom visible
7627 nodes. TreeNode::EnsureVisible uses these methods.
7628 * TreeNode.cs: Implement EnsureVisible
7630 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
7632 * Form.cs: Pospone menu assignation if the window has not been created yet
7633 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7636 2005-04-12 Jackson Harper <jackson@ximian.com>
7638 * TreeView.cs: Set the TopNode properly when scrolling
7639 occurs. This has the added benifit of reducing the amount of
7640 walking that needs to be done when drawing. Also removed an old
7642 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7644 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
7646 * Timer.cs: fixes interval setting when the timer is already enabled
7648 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
7650 * FolderBrowserDialog.cs: First approach
7652 2005-04-09 Peter Bartok <pbartok@novell.com>
7654 * FolderBrowserDialog: Added
7656 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
7658 * LinkLabel.cs: move drawing code into the theme
7659 * ThemeWin32Classic.cs: drawing code and painting background bugfix
7660 * Theme.cs: define DrawLinkLabel method
7662 2005-04-05 Jackson Harper <jackson@ximian.com>
7664 * BindingContext.cs: Use weak references so these bad actors don't
7665 stay alive longer then they need to.
7667 2005-04-05 Jackson Harper <jackson@ximian.com>
7669 * ListControl.cs: Basic implementation of complex databinding.
7671 * ListBox.cs: Add calls to ListControl databinding methods.
7673 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
7676 - Don't change PopupButtonState to Normal when the
7677 PopupButton gets pressed several times.
7678 - Renamed ButtonPanel to PopupButtonPanel
7680 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
7682 * ColorDialog.cs: Use cached objects instead of creating them
7683 * LinkLabel.cs: Use cached objects instead of creating them
7684 * Splitter.cs: Use cached objects instead of creating them
7685 * FontDialog.cs: Use cached objects instead of creating them
7686 * PropertyGridView.cs: Use cached objects instead of creating them
7687 * MessageBox.cs: Use cached objects instead of creating them
7688 * FileDialog.cs: Use cached objects instead of creating them
7689 * ThemeWin32Classic.cs: Use cached objects instead of creating them
7690 * TreeView.cs: Use cached objects instead of creating them
7692 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
7694 * Control.cs: use Equals to compare the font since no == op
7695 * ScrollBar.cs: use Equals to compare the font since no == op
7697 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
7699 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7701 2005-04-01 Jackson Harper <jackson@ximian.com>
7703 * Binding.cs: Implement IsBinding.
7704 * BindingManagerBase.cs:
7705 * PropertyManager.cs:
7706 * CurrencyManager.cs: Add IsSuspended property.
7708 2005-04-01 Jackson Harper <jackson@ximian.com>
7710 * Binding.cs: Had some IsAssignableFrom calls backwards.
7712 2005-04-01 Jackson Harper <jackson@ximian.com>
7714 * Binding.cs: Handle null data members when pulling data.
7715 * PropertyManager.cs: Handle the data member being a property that
7718 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
7720 * DataGridTextBoxColumn.cs: fixes signature
7721 * DataGrid.cs: calls right constructor
7723 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
7725 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7726 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7727 * GridTableStylesCollection.cs: implements GridTableStylesCollection
7728 * DataGridTableStyle.cs: implements DataGridTableStyle
7729 * DataGridBoolColumn.cs: implements DataGridBoolColumn
7730 * DataGridTextBox.cs: implements DataGridTextBox
7731 * DataGridColumnStyle.cs: implements DataGridColumnStyle
7733 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
7735 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7737 2005-03-29 Peter Bartok <pbartok@novell.com>
7740 - Properly implemented CompanyName property
7741 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7742 returns a path that includes CompanyName, ProductName and
7743 Version (fixes bug #70330)
7745 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
7747 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7750 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
7752 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7754 - Added ReadOnly CheckBox
7755 - Further refactoring: moved some code from Open-/SaveFileDialog
7758 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
7760 * OpenFileDialog.cs: Fixed CheckFileExists
7762 Moved FileView and DirComboBox outside FileDialog class.
7763 They can now be used outside FileDialog
7765 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
7767 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7768 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7770 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
7772 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7773 - Added missing CreatePrompt property in SaveDialog
7774 - Overall SaveDialog handling should be better now
7775 - Added non standard ShowHiddenFiles property
7776 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7777 - Added InitialDirectory and RestoreDirectory support
7779 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
7781 * FileDialog.cs: Made dirComboBox usable
7783 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
7785 * FileDialog.cs: Added Filter support (case sensitiv)
7787 2005-03-24 Jackson Harper <jackson@ximian.com>
7789 * TabControl.cs: Need a couple more pixels for the lines.
7791 2005-03-23 Jackson Harper <jackson@ximian.com>
7793 * TabControl.cs: Give the tab page focus when it is selected.
7795 2005-03-23 Jackson Harper <jackson@ximian.com>
7797 * TabControl.cs: Account for the drawing of tabs borders when
7798 invalidating. If the slider was clicked dont do click detection on
7801 2005-03-23 Jackson Harper <jackson@ximian.com>
7803 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7805 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
7807 * CategoryGridEntry.cs: Added
7808 * GridItem.cs: Added helper properties
7809 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7810 * GridEntry.cs: Updated code for collection
7811 * PropertyGrid.cs: Cleaned up some formatting
7812 * PropertyGridView.cs: Added drop down functionality for enums.
7813 * GridItemCollection.cs: Added enumerator logic
7814 * PropertyGridEntry.cs: Added
7816 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
7819 - Removed unnecessary commented code
7820 - Fixed handling for entering the filename manually in the combobox
7822 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
7824 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7826 2005-03-18 Peter Bartok <pbartok@novell.com>
7828 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7829 them being touching the border
7831 2005-03-18 Peter Bartok <pbartok@novell.com>
7833 * TextControl.cs: Quick hack to center text better
7835 2005-03-18 Peter Bartok <pbartok@novell.com>
7838 - Don't throw NotImplemented exceptions, just print a notice once
7839 instead (requested by Miguel). This makes running existing SWF
7842 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7843 - Added context menu trigger on right click
7844 * Panel.cs: Trigger invalidate on resize
7846 - Removed old double-buffer drawing
7847 - Added ResizeRedraw style to force proper update of statusbar
7849 - Removed debug output
7850 * ThemeWin32Classic.cs:
7851 - Fixed drawing of status bar, now draws Text property if there
7852 are no defined panels
7854 2005-03-18 Jackson Harper <jackson@ximian.com>
7856 * ImageList.cs: When the image stream is set pull all the images
7858 * ImageListStreamer.cs: Implement reading image list streams.
7860 2005-03-18 Peter Bartok <pbartok@novell.com>
7862 * ThemeWin32Classic.cs (DrawPictureBox):
7863 - Fixed calculations for centered drawing
7864 - Fixed drawing for normal mode, not scaling the image on normal
7866 2005-03-18 Peter Bartok <pbartok@novell.com>
7868 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7871 - Made Open/Save button the accept button for FileDialog
7872 - Tied the cancel button to the IButtonControl cancel button
7873 - Save/Open now properly builds the pathname
7874 - Now handles user-entered text
7875 - Preventing crash on right-click if no item is selected
7876 - Fixed Text property, now uses contents of textbox
7877 - Fixed SelectedText property, now just returns the text part that
7878 is selected in the text box
7880 2005-03-18 Jackson Harper <jackson@ximian.com>
7882 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7883 rect, make sure to de-adjust the interior rect after drawing the
7886 2005-03-18 Peter Bartok <pbartok@novell.com>
7888 * MenuAPI.cs: Remove menu *before* executing selected action to
7889 prevent the menu from 'hanging around'
7891 2005-03-17 Geoff Norton <gnorton@customerdna.com>
7893 * XplatUIOSX.cs: Implemented WorkingArea property
7895 2005-03-17 Peter Bartok <pbartok@novell.com>
7897 * XplatUIX11.cs: Fixed menu coord calculations
7898 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
7899 for calculating offsets
7901 2005-03-17 Peter Bartok <pbartok@novell.com>
7903 * Hwnd.cs: Do not consider menu presence for default client
7904 rectangle location/size
7905 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7906 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
7907 translation functions
7908 * FileDialog.cs: Fixed (what I presume is a) typo
7910 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
7912 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
7913 X access (avoids X-Async errors)
7915 2005-03-16 Jackson Harper <jackson@ximian.com>
7917 * TabControl.cs: Raise the SelectedIndexChanged event.
7919 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
7921 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7922 - Removed vertical ToolBar and replaced it with a custom panel
7923 (desktop and home button already work)
7924 - Added Help button (some controls get resized or relocated then)
7925 - Draw correct text depending on Open or Save.
7926 - Fixed some typos...
7928 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
7931 - Only change Maximum and Minimum when need it (bug fix)
7933 2005-03-15 Peter Bartok <pbartok@novell.com>
7935 * Form.cs: Use Handle for icon, to trigger creation if
7936 the window does not yet exist
7938 - CanSelect: Slight performance improvement
7939 - Focus(): Preventing possible recursion
7940 - Invalidate(): Removed ControlStyle based clear flag setting
7941 - WM_PAINT: fixed logic for calling OnPaintBackground
7942 - WM_ERASEBKGND: Fixed logic, added call to new driver method
7943 EraseWindowBackground if the control doesn't paint background
7945 - Moved EraseWindowBackground() method to internal methods
7946 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
7947 is sent via SendMessage on BeginPaint call on Win32
7949 - Added EraseWindowBackground() method
7950 - No longer sends WM_ERASEBKGND on .Expose, but on call to
7951 PaintEventStart, which more closely matches Win32 behaviour
7952 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
7953 - Fixed SetFocus() to properly deal with client and whole windows
7954 * Hwnd.cs: Added ErasePending property
7955 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
7956 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
7958 2005-03-12 Geoff Norton <gnorton@customerdna.com>
7961 - Fix hard loop when timers exist.
7962 - Fix bugs with middle and right click for 3 button mice.
7964 2005-03-11 Peter Bartok <pbartok@novell.com>
7967 - get_WorkingArea: Need to call X directly, GetWindowPos only
7968 returns cached data now
7969 - Added sanity check to GetWindowPos hwnd usage
7971 2005-03-11 Jackson Harper <jackson@ximian.com>
7973 * BindingManagerBase.cs: This method isn't used anymore as
7974 PullData now updates the data in the control.
7976 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
7978 * Form.cs: fixes menu drawing on X11
7979 * MenuAPI.cs: fixes menu drawing on X11
7981 2005-03-11 Peter Bartok <pbartok@novell.com>
7983 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
7984 from Jonathan Gilbert; should fix bug #73606
7985 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
7986 in Screen coordinates. Thanks, Jordi.
7987 * Form.cs: Added missing attribute
7989 2005-03-11 Peter Bartok <pbartok@novell.com>
7992 - Rudimentary Mdi support
7993 - Removed outdated FormParent code
7994 - Implemented lots of missing properties and methods, still missing
7995 transparency support
7996 - Added missing attributes
7997 - Implemented support for MaximumBounds
7998 - Added firing of various events
7999 * XplatUI.cs: Added SetIcon() method
8000 * XplatUIDriver.cs: Added SetIcon() abstract
8001 * XplatUIOSX.cs: Stubbed out SetIcon() method
8003 - Implemented SetIcon() support
8004 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8005 - Switched to unix line endings
8007 - Made POINT internal so for can access it as part of MINMAX
8008 - Implemented SetIcon() support
8009 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8010 native Mdi support again, might have to go managed)
8011 * Control.cs: Now fires the StyleChanged event
8012 * MdiClient.cs: Added; still mostly empty
8014 2005-03-10 Peter Bartok <pbartok@novell.com>
8016 * SaveFileDialog.cs: Added emtpy file
8018 2005-03-08 Peter Bartok <pbartok@novell.com>
8020 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8021 in turn triggers OnCreateContro) when creating a handle for the
8023 * TextControl.cs: Fixed endless loop in certain cases when
8024 replacing the current selection
8026 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
8029 - Honors NewValue changes in Scroll events allowing apps to change it
8030 - Adds First and Last Scroll events
8031 - Fixes Thumb events
8033 2005-03-07 Peter Bartok <pbartok@novell.com>
8035 * Hwnd.cs: Added DefaultClientRectangle property
8036 * XplatUI.cs: Now using the X11 driver Where() method, which provides
8037 more detailed debug information
8039 - Fixed size-change feedback loop, where we would pull an old size
8040 off the queue and mistakenly change our window's size to an
8042 - Now compressing ConfigureNotify events, to reduce looping and
8044 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8047 2005-03-07 Jackson Harper <jackson@ximian.com>
8049 * Binding.cs: Push data pushes from data -> property. Check if the
8050 property is readonly when attempting to set it.
8052 2005-03-07 Jackson Harper <jackson@ximian.com>
8054 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8055 instead of IsSubclassOf. Pulling data now sets the value on the
8057 * PropertyManager.cs:
8058 * CurrencyManager.cs: Just need to pull data when updating now,
8059 because PullData will set the value on the control.
8061 2005-03-04 Jackson Harper <jackson@ximian.com>
8063 * Binding.cs: Implement data type parsing and converting on pulled
8064 data. TODO: Are there more ways the data can be converted?
8066 2005-03-04 Jackson Harper <jackson@ximian.com>
8068 * Binding.cs: Support <Property>IsNull checks. Also bind to the
8069 controls Validating method so we can repull the data when the
8070 control loses focus.
8072 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
8075 - Fixes null string format
8078 - Adds enum type checks
8079 - Fixes redrawing and recalc need after changing some properties
8080 - Fixes on focus_item set after the event
8081 - Fixes adding columns after the control has been created
8083 * ThemeWin32Classic.cs:
8084 - Fixes CheckBox focus rectangle
8085 - Fixes ColumnHeader drawing
8088 2005-03-03 Jackson Harper <jackson@ximian.com>
8090 * Binding.cs: Bind to <Property>Changed events so we can detect
8091 when properties are changed and update the data.
8093 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
8096 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8097 - Fixes ImageList constructor with ImageList container
8098 - Fixes image scaling (wrong parameters at DrawImage)
8100 2005-02-02 Jackson Harper <jackson@ximian.com>
8102 * Binding.cs: Make property searches case-insensitive. Eliminate
8103 some duplicated code.
8105 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
8108 - Handle focus event
8109 - Fix scrollbar events
8110 - Discard highlighted item if remove it
8111 - Fixes SelectedItem with strings
8113 2005-03-01 Peter Bartok <pbartok@novell.com>
8116 - Fixed Visible property, now follows (once again) parent chain
8117 to return false if any control in the chain is visible=false
8118 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8119 - Fixed several places where is_visible instead of Visible was used
8120 - Implemented FIXME related to focus selection when setting focused
8121 control to be invisible
8123 * XplatUIWin32.cs: Now using proper method to find out if window is
8124 visible. Thanks to Jordi for pointing it out
8126 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
8128 * ComboBox.cs: show/hide scrollbar instead of creating it
8130 2005-02-27 Jackson Harper <jackson@ximian.com>
8132 * CurrencyManager.cs: Add PositionChanged stuff.
8134 2005-02-27 Peter Bartok <pbartok@novell.com>
8136 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8137 * XplatUIOSX.cs: Added GetMenuOrigin() stub
8138 * XplatUIWin32.cs: Implemented GetMenuOrigin()
8140 - Implemented GetMenuDC()
8141 - Implemented GetMenuOrigin()
8142 - Implemented ReleaseMenuDC()
8143 - Implemented generation of WM_NCPAINT message
8144 - Implemented generation and handling of WM_NCCALCSIZE message
8145 * Form.cs: Added debug helper message for Jordi's menu work
8147 - Modified ClientRect property; added setter, fixed getter to handle
8148 setting of ClientRect
8149 - Added MenuOrigin property
8151 2005-02-26 Peter Bartok <pbartok@novell.com>
8154 - Destroys the caret if a window that's being destroyed contains it
8155 - Ignores expose events coming from the X11 queue for windows that
8156 already are destroyed
8157 - Now uses the proper variable for handling DestroyNotify, before we
8158 marked the wrong window as destroyed
8159 - Improved/added some debug output
8161 2005-02-26 Peter Bartok <pbartok@novell.com>
8163 * X11Keyboard.cs: Fixes to work on 64bit systems
8165 2005-02-26 Peter Bartok <pbartok@novell.com>
8168 - Now calling OnHandleDestroyed from DestroyHandle()
8169 instead of Dispose()
8170 - Removed bogus call to controls.Remove() from DestroyHandle()
8172 2005-02-26 Peter Bartok <pbartok@novell.com>
8174 * Control.cs: Properly destroy child windows when our handle is
8177 2005-02-25 Peter Bartok <pbartok@novell.com>
8180 - Added 'DriverDebug' define to allow tracing XplatUI API calls
8181 - Alphabetized Static Methods and Subclasses
8184 - Added XException class to allow custom handling of X11 exceptions
8185 - Created custom X11 error handler, tied into XException class
8186 - Added support for MONO_XEXCEPTIONS env var to allow the user
8187 to either throw an exception on X errors or continue running
8188 after displaying the error
8189 - Added handling of DestroyNotify message
8190 - Added handler for CreateNotify message (still disabled)
8191 - Improved (tried to at least) Where method to provide file and lineno
8193 - Added XErrorHandler delegate
8194 - Added XRequest enumeration (to suppor translation of errors)
8196 2005-02-25 Jackson Harper <jackson@ximian.com>
8198 * PropertyManager.cs: Implement editing features
8199 * CurrencyManager.cs:
8200 * Binding.cs: First attempt at UpdateIsBinding
8201 * BindingManagerBase.cs: Call UpdateIsBinding before
8202 pushing/pulling data.
8204 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
8206 * MenuAPI.cs: Respect disabled items
8207 * ThemeWin32Classic.cs
8208 - Caches ImageAttributes creation for DrawImageDisabled
8209 - Fixes vertical menu line drawing
8210 - Draws disabled arrows in disable menu items
8212 2005-02-24 Peter Bartok <pbartok@novell.com>
8215 - Added UserData property to allow associating arbitrary objects
8217 - Fixed leak; now removing Hwnd references from static windows array
8219 - Fixed Graphics leak in PaintEventEnd
8220 - Removed usage of HandleData, switched over to Hwnd class
8221 * HandleData.cs: Removed, obsoleted by Hwnd.cs
8223 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
8225 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8226 * ScrollBar.cs: Fixes bug
8227 * TrackBar.cs: removes death code, clipping, mimize refreshes,
8228 keyboard navigation enhancements
8230 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
8232 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8233 * GroupBox.cs: Add control styles
8234 * Label.cs: Add control styles
8235 * UpDownBase.cs: Add control styles
8236 * ListBox.cs: Add control styles
8237 * XplatUIWin32.cs: Fixes wrong parameter order
8240 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
8242 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8244 2005-02-23 Jackson Harper <jackson@ximian.com>
8246 * PropertyManager.cs: Implement property binding. This doesn't
8247 seem to work yet though as (I think) there are some bugs in
8248 System.ComponentModel.PropertyDescriptor.
8249 * BindingContext.cs: Use new PropertyManager constructor.
8251 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
8253 * ProgressBar.cs: use clip region in ProgressBar
8254 * ThemeWin32Classic.cs: use clip region in ProgressBar
8256 2004-02-22 Jackson Harper <jackson@ximian.com>
8258 * BindingsCollection.cs: Remove some debug code.
8260 2005-02-22 Jackson Harper <jackson@ximian.com>
8262 * BindingContext.cs:
8263 * ControlBindingsCollection.cs:
8264 * CurrencyManager.cs:
8266 * BindingManagerBase.cs: Initial implementation
8267 * BindingsCollection.cs: Add an internal contains method that the
8268 BindingManagerBase uses to ensure bindings aren't added twice to
8270 * PropertyManager.cs: Stubbed out.
8272 * ContainerControl.cs: Hook up databinding
8274 2005-02-22 Geoff Norton <gnorton@customerdna.com>
8277 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8278 Fixed Invalidate/Update chain.
8279 Fixed tons of other minor bugs (this is almost a complete rewrite).
8281 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
8283 * ComboBox.cs: do subcontrol creation when the control is created
8285 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8287 * Label.cs: fixes image drawing (image and imagelist)
8288 * ThemeWin32Classic.cs: cache brushes
8290 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8292 * Form.cs: Move menu drawing code to Theme class
8293 * ComboBox.cs: Move ComboBox drawing code to Theme class
8294 * MenuItem.cs: Move menu drawing code to Theme class
8295 * MenuAPI.cs: Move menu drawing code to Theme class
8296 * ThemeWin32Classic.cs: New methods
8297 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8298 * ListBox.cs: Move Listbox drawing code to Theme class
8299 * Theme.cs: New methods
8301 2005-02-20 Peter Bartok <pbartok@novell.com>
8304 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8305 only process mnemonics on those)
8306 - Fixed event sequence for key handling; first calling
8307 ProcessKeyEventArgs now
8309 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8310 for processing non-character keys
8311 - Fixed WM_CHAR to generate proper event sequence before processing
8312 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8315 2005-02-19 Peter Bartok <pbartok@novell.com>
8317 * UserControl.cs: Added TextChanged event; added attributes
8318 * SizeGrip.cs: Implemented resizing and optional display of grip
8319 * Form.cs: Fixed attribute
8320 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8321 Changed meaning of ScrollWindow bool argument; instead of the
8322 clear attribute (which will be true usually anyway), it gives the
8323 option of moving child controls as well.
8325 - Changed to match new ScrollWindow argument
8326 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8327 now handles the implicit parent window a WM puts around us
8328 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8330 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8331 * TreeView.cs: Adjusted to new ScrollWindow arguments
8333 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
8335 * Form.cs: Menu integration with non-client area
8336 * MenuItem.cs: Menu integration with non-client area
8337 * MenuAPI.cs: Menu integration with non-client area
8339 2005-02-18 Peter Bartok <pbartok@novell.com>
8341 * MethodInvoker.cs: Added
8342 * MdiLayout.cs: Added
8343 * SendKeys.cs: Started implementation
8344 * ErrorIconAlignment.cs: Added
8346 2005-02-18 Peter Bartok <pbartok@novell.com>
8348 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8349 * Form.cs: Added handling for Menu-related Non-client messages
8351 2005-02-17 Peter Bartok <pbartok@novell.com>
8353 * UpDownBase.cs: Fixed typo, compilation errors
8354 * DomainUpDown.cs: Fixed attribute value
8356 2005-02-16 Miguel de Icaza <miguel@novell.com>
8358 * UpDownBase.cs: Attach entry events.
8360 Add ForeColor property, Focused, InterceptArrowKeys (interception
8363 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
8366 - Redraw non client are on Setmenu
8367 - Calc proper menu starting point
8369 2005-02-17 Peter Bartok <pbartok@novell.com>
8371 * Application.cs: Fixed message_filter check
8373 2005-02-17 Peter Bartok <pbartok@novell.com>
8375 * Application.cs: Now calls registered message filters
8376 * DockStyle.cs: Fixed attribute
8377 * Form.cs: Fixed attribute
8378 * Menu.cs: Fixed attribute
8379 * ToolTip.cs: Fixed attribute
8380 * TreeNode.cs: Added missing attributes and arranged in regions
8381 * PropertyGrid.cs: Fixed signatures
8382 * TreeNodeCollection.cs: Added attributes
8383 * Splitter.cs: Added missing attributes; arranged into regions
8384 * TabPage.cs: Added missing attributes; arranged into regions
8385 * TextBoxBase.cs: Added missing attributes
8386 * TextBox.cs: Added missing attributes
8387 * ArrangeDirection.cs: Added missing attributes
8388 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8389 * ToolBarButton.cs: Fixed attributes
8390 * AnchorStyles.cs: Fixed attribute
8391 * TrackBar.cs: Fixed attributes
8392 * TabControl.cs: Added missing attributes and arranged into regions
8393 * ToolBar.cs: Fixed attribute
8394 * StatusBar.cs: Fixed signature, organized into regions and added
8396 * StatusBarPanel.cs: Fixed attributes
8397 * ContentsResizedEventArgs.cs: Implemented
8398 * ContentsResizedEventHandler.cs: Implemented
8399 * DateBoldEventArgs.cs: Implemented
8400 * DateBoldEventHandler.cs: Implemented
8401 * UpDownEventArgs.cs: Implemented
8402 * UpDownEventHandler.cs: Implemented
8404 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
8406 * Form.cs: first Menu NC refactoring
8407 * MenuAPI.cs: first Menu NC refactoring
8409 2005-02-16 Peter Bartok <pbartok@novell.com>
8411 * ImeMode.cs: Added missing attributes
8412 * Menu.cs: Fixed attribute
8413 * GroupBox.cs: Fixed attribute
8414 * Label.cs: Fixed attribute
8415 * ColorDialog.cs (RunDialog): Removed TODO attribute
8416 * ComboBox.cs: Fixed attributes
8417 * ListControl.cs: Added missing attributes
8418 * PropertyGrid.cs: Fixed attributes
8419 * Control.cs: Fixed attributes
8420 * ListViewItem.cs: Added TypeConverter attribute
8421 * NotifyIcon.cs: Fixed attributes
8422 * ListView.cs: Fixed attributes
8423 * ButtonBase.cs: Fixed attribute
8424 * ImageList.cs: Added missing attributes
8425 * ContainerControl.cs: Fixed signature
8426 * CheckedListBox.cs: Fixed attribute; added missing attributes
8427 * Panel.cs: Fixed attributes
8428 * PropertyTabChangedEventArgs.cs: Added missing attribute
8429 * PropertyValueChangedEventArgs.cs: Added missing attribute
8430 * Binding.cs: Fixed attribute
8431 * ListViewItemConverter: Implemented ListViewSubItemConverter class
8432 * ListBox.cs: Fixed attribute; added missing attributes;
8433 * ScrollableControl.cs: Added missing attributes
8434 * PictureBox.cs: Added missing attributes; implemented missing property
8435 * DateTimePicker.cs: Added missing attributes
8436 * Theme.cs (ToolWindowCaptionHeight): Fixed type
8437 * MonthCalendar.cs: Fixed attributes
8438 * StatusBarPanel.cs: Added missing attributes
8439 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8441 2005-02-16 Peter Bartok <pbartok@novell.com>
8443 * TextBoxBase.cs: The previous method to enforce height yet remember
8444 the requested high was less than ideal, this is an attempt to do
8446 * Control.cs: Added comment about possible problem
8447 * Copyright: Updated format
8448 * GridItemType.cs: Fixed swapped values
8450 2005-02-15 Jackson Harper <jackson@ximian.com>
8452 * BaseCollection.cs: Use property so we never access an
8453 uninitialized list. Also initialize the list in the property.
8455 2005-02-15 Peter Bartok <pbartok@novell.com>
8457 * GroupBox.cs (ProcessMnemonic): Implemented
8458 * Label.cs (ProcessMnemonic): Implemented
8459 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8462 2005-02-15 Peter Bartok <pbartok@novell.com>
8464 * RadioButton.cs (ProcessMnemonic): Implemented
8465 * CheckBox.cs (ProcessMnemonic): Implemented
8467 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8469 - Added internal method to allow calling ProcessMnemonic from other
8471 * ContainerControl.cs:
8472 - Started support for handling validation chain handling
8473 - Implemented ProcessMnemonic support
8474 - Added Select() call to Active, to make sure the active control
8476 * Form.cs: Setting toplevel flag for Forms (this was lost in the
8478 * ThemeWin32Classic.cs:
8479 - DrawCheckBox(): Fixed stringformat to show hotkeys
8480 - DrawRadioButton(): Fixed stringformat to show hotkeys
8481 * CommonDialog.cs: Removed WndProc override, not needed
8483 2005-02-14 Peter Bartok <pbartok@novell.com>
8485 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8486 missed those in the rewrite
8488 2005-02-14 Miguel de Icaza <miguel@novell.com>
8490 * NumericUpDown.cs (Increment, ToString): Add.
8491 (DecimalPlaces): implement.
8495 * UpDownBase.cs: Add the designer attributes.
8497 2005-02-13 Peter Bartok <pbartok@novell.com>
8499 * Panel.cs: Removed border_style, now in Control
8500 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8501 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8503 2005-02-13 Peter Bartok <pbartok@novell.com>
8505 * MouseButtons.cs: Added missing attributes
8506 * XplatUIStructs.cs: Added enumeration for title styles
8507 * LeftRightAlignment.cs: Added missing attributes
8508 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8509 it compatible with Graphics.FromHwnd()
8510 * SelectedGridItemChangedEventArgs.cs: Fixed property type
8511 * Keys.cs: Added missing attributes
8512 * SelectionRange.cs: Added missing attributes
8513 * SelectionRangeConverter.cs: Added
8515 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8516 ReleaseMenuDC methods
8517 - Renamed ReleaseWindow to UngrabWindow
8518 - Added proper startup notice to allow version identification
8520 - Added missing attributes
8521 - Removed FormParent concept
8522 * Label.cs: Removed border_style field, now in Control
8523 * RadioButton.cs: Now properly selects RadioButton when focus is
8525 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8527 - Added missing attributes
8528 - Added borderstyle handling
8529 - Removed FormParent concept support
8530 - Fixed calls to XplatUI to match changed APIs
8531 - Fixed bug that would case us to use disposed Graphics objects
8532 - Removed unneeded internal methods
8533 - PerformLayout(): Fixed to handle DockStyle.Fill properly
8534 - SelectNextControl(): Fixed to properly check common parents
8535 * TextBoxBase.cs: Removed border_style field (now in Control)
8537 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8538 fixed calculations for form size
8539 - Added support for localized strings and icons
8540 - Improved form size calculations, added border
8541 * ListView.cs: Removed border_style field (now in Control)
8542 * X11Structs.cs: Moved several structs from X11 driver here
8543 * X11Keyboard.cs: Changed debug message
8544 * Application.cs: Removed FormParent concept support
8546 - Resetting end_modal flag
8547 - Removed FormParent concept support
8548 * NativeWindow.cs: Removed FormParent concept support
8549 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8550 Client area and Non-Client whole window to allow support for WM_NC
8552 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8553 prevent using it until it supports Hwnd as per Geoff Norton's request
8554 * ToolBar.cs: Fixed drawing, was not doing proper drawing
8555 * PictureBox.cs: Removed border_style field, now in Control
8556 * XplatUIWin32.cs: Added new driver methods
8558 2005-02-12 Peter Bartok <pbartok@novell.com>
8560 * OpacityConverter.cs: Implemented
8561 * Hwnd.cs: Internal class to support drivers that need to emulate
8562 client area/non-client area window behaviour
8564 2005-02-11 Peter Bartok <pbartok@novell.com>
8566 * KeysConverter.cs: Implemented
8568 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
8570 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8571 * LinkLabel: Added missing attributes
8572 * MainMenu.cs: fixes ToString
8573 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8574 * ListBox.cs: fixes event position
8575 * TrackBar.cs: adds missing attributes and events
8577 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
8579 * MenuItem.cs: Use SystemInformation and bug fixes
8580 * MenuAPI.cs: Use SystemInformation and bug fixes
8582 2005-02-09 Jackson Harper <jackson@ximian.com>
8584 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8585 their keystate otherwise things like VK_MENU get stuck "on".
8587 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
8589 * ListBox.cs: Fixes AddRange bug
8591 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
8594 - Add missing attributes
8595 - Add missing method
8597 * CheckedListBox.cs: Added missing attributes
8598 - Add missing attributes
8599 - Remove extra method
8601 * ComboBox.cs: Added missing attributes
8602 * VScrollBar.cs: Added missing attributes
8603 * ScrollBar.cs: Added missing attributes
8604 * ListBox.cs: Fixes signature, add missing consts
8605 * LinkArea.cs: Added missing attributes
8608 2005-02-08 Peter Bartok <pbartok@novell.com>
8610 * Menu.cs: Added missing attributes
8611 * MainMenu.cs: Added missing attributes
8612 * GroupBox.cs: Added missing attributes
8613 * Label.cs: Added missing attributes
8614 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8616 - Added Instance and Options properties
8617 - Added missing attributes
8618 * Cursor.cs: Made Serializable
8619 * NotifyIcon: Added missing attributes
8620 * MenuItem.cs: Added missing attributes
8621 * TextBoxBase.cs: Implemented AppendText() and Select() methods
8622 * Panel.cs: Added Missing attributes
8623 * MonthCalendar.cs: Fixed CreateParams
8625 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
8629 - Fixes issues with links
8630 - Adds the class attributes
8632 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
8635 - Fixes button when no items available in dropdown
8636 - Fixes repainting problems
8637 - Adds the class attributes
8639 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8641 * XplatUIOSX.cs: Detect the menu bar and title bar height from
8642 the current theme. Cache these on startup.
8644 2005-02-07 Jackson Harper <jackson@ximian.com>
8646 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8647 the scrollbar buttons when they are depressed.
8649 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8651 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8652 Get the display size from the main displayid. We currently dont
8653 support multiple display configurations.
8655 2005-02-07 Geoff Norton <gnorton@customerdna.com>
8657 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8659 2005-02-07 Miguel de Icaza <miguel@novell.com>
8661 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8663 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
8665 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8667 2005-02-04 Jackson Harper <jackson@ximian.com>
8669 * ThemeWin32Classic.cs: Respect the clipping rect when
8670 drawing. Only fill the intersection of clips and rects so there
8671 isn't a lot of large fills.
8672 * ScrollBar.cs: Pass the correct clipping rect to the theme
8673 engine. Remove some debug code.
8675 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
8677 * DateTimePicker.cs:
8678 - Fixed crash on DateTime.Parse, use Constructor instead
8680 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
8684 - Owner draw support (MeasureItem and DrawItem)
8686 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
8689 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8690 - Fixes MenuItems.Add range
8692 - MergeMenu and Clone and CloneMenu functions
8694 2005-02-03 Jackson Harper <jackson@ximian.com>
8696 * ScrollBar.cs: Make abstract
8697 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8700 2005-02-03 Jackson Harper <jackson@ximian.com>
8702 * ScrollBar.cs: First part of my scrollbar fixups. This removes
8703 all the unneeded refreshes and uses invalidates with properly
8706 2005-02-03 Peter Bartok <pbartok@novell.com>
8708 * ComponentModel.cs: Added
8709 * IDataGridEditingService.cs: Added
8710 * Timer.cs: Added missing attributes
8711 * ToolTip.cs: Added missing attributes
8713 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8715 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8717 2005-02-03 Peter Bartok <pbartok@novell.com>
8719 * ListBox.cs: Added missing attributes
8721 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
8724 - Fixes font height after font change
8725 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8727 2005-02-02 Peter Bartok <pbartok@novell.com>
8729 * HandleData.cs: Introduced static methods to allow class
8730 to be more self-contained and track it's own HandleData objects
8731 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8732 HandleData to use new static methods
8734 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
8737 - Fixes default size and PreferredHeight
8739 - ObjectCollection.Insert implementation
8745 - ObjectCollection.Insert implementation
8746 - No selection after clean
8749 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
8751 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8753 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
8756 - Caches ItemHeight calculation for OwnerDrawVariable
8757 - Handles dropdown properly
8758 - Fixes several minor bugs
8760 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
8763 - Fixes 71946 and 71950
8764 - Fixes changing Multicolumn on the fly
8765 - Fixes keyboard navigation on Multicolumn listboxes
8767 2005-01-31 Geoff Norton <gnorton@customerdna.com>
8769 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8772 2005-01-31 Geoff Norton <gnorton@customerdna.com>
8774 * XplatUIOSX.cs: Allow applications to actually exit.
8776 2005-01-31 Geoff Norton <gnorton@customerdna.com>
8778 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
8779 their parent at creation time rather than lazily later. Fixes a major
8780 regression we were experiencing.
8782 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
8784 * ThemeWin32Classic.cs: more date time picker painting fixes
8785 * DateTimePicker.cs: more monthcalendar drop down fixes
8786 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8788 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
8791 - When moving the thumb going outside the control should stop the moving
8792 - Adds the firing of missing events
8793 - Fixes no button show if Size is not specified
8794 - End / Home keys for keyboard navigation
8796 2005-01-30 Peter Bartok <pbartok@novell.com>
8798 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8799 sanity check to prevent theoretical loop
8800 * XplatUIWin32.cs (SetVisible): Removed debug output
8801 * XplatUIX11.cs (SystrayChange): Added sanity check
8802 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8803 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8804 behaviour, valid until the X11 client window rewrite is done
8805 * TextBox.cs (ctor): Setting proper default foreground and background
8808 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
8810 * Theme: Added DrawDateTimePicker to interface
8811 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8812 * DateTimePicker.cs: Created (still needs keys and painting code)
8813 * DateTimePickerFormat.cs: added
8814 * MonthCalendar.cs: fixed CreateParams for popup window mode
8816 2005-01-29 Peter Bartok <pbartok@novell.com>
8818 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8819 this should also the calculations for ligher/darker
8820 * Theme.cs: Fixed defaults for ScrollBar widths/heights
8822 2005-01-29 Peter Bartok <pbartok@novell.com>
8824 * ArrangeDirection.cs: Added
8825 * ArrangeStartingPositon.cs: Added
8826 * SystemInformation.cs: Implemented
8827 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8828 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8829 used by SystemInformation class
8830 * X11Strucs.cs: Added XSizeHints structure
8832 - Fixed CreateParams to make sure the menu window is always visible
8833 - TrackPopupMenu: Added check to make sure we don't draw the
8836 2005-01-29 Peter Bartok <pbartok@novell.com>
8838 * HandleData.cs: Added method for altering invalid area
8839 * TextBoxBase.cs: Implemented TextLength
8841 2005-01-28 Peter Bartok <pbartok@novell.com>
8843 * XplatUIX11.cs: Improvement over last patch, not sending
8844 the WM_PAINT directly anymore, instead we scroll any pending
8845 exposed areas and let the system pick out the WM_PAINT later
8847 2005-01-28 Peter Bartok <pbartok@novell.com>
8849 * SWF.csproj: Deleted, no longer used. Instead,
8850 Managed.Windows.Forms/SWF.csproj should be used
8851 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8852 directly, to avoid a potential race condition with the next
8855 2005-01-28 Peter Bartok <pbartok@novell.com>
8857 * XplatUI.cs: Made class internal
8859 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
8861 * CheckedListBox.cs:
8864 - Missing methods and events
8866 2005-01-27 Peter Bartok <pbartok@novell.com>
8868 * Application.cs (Run): Don't use form if we don't have one
8870 2005-01-27 Peter Bartok <pbartok@novell.com>
8872 * TextBoxBase.cs (get_Lines): Fixed index off by one error
8874 2005-01-27 Peter Bartok <pbartok@novell.com>
8876 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8877 * GridItem.cs: Added; Patch by Jonathan S. Chambers
8878 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8879 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8880 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8881 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8882 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8883 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8884 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8885 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8886 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8887 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8889 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
8892 - Draw focus on Simple Combobox
8893 - Fixes drawing issues
8896 2005-01-27 Peter Bartok <pbartok@novell.com>
8899 - Place window in default location, instead of hardcoded 0/0
8900 - Send initial LocationChanged event
8902 - UpdateBounds after creation to find out where the WM placed us
8903 - Make sure that if the ParentForm changes location the Form
8905 * XplatUIX11.cs: XGetGeometry will not return the coords relative
8906 to the root, but to whatever the WM placed around us.
8907 Translate to root coordinates before returning toplevel
8909 * XplatUIWin32.cs: Removed debug output
8910 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
8911 flag to GetWindowPos, to allow translation of coordinates on X11
8913 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
8915 * ListBox.cs: connect LostFocus Event
8917 2005-01-27 Peter Bartok <pbartok@novell.com>
8919 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8920 XplatUIX11.cs: Extended the Systray API
8921 * Form.cs: Removed debug output
8922 * Application.cs: Fixed focus assignment, always need to call
8923 XplatUI.Activate() since Form.Activate() has rules that may
8925 * NotifyIcon.cs: Should be complete now
8926 * ToolTip.cs: Worked around possible timer bug
8928 2005-01-27 Jackson Harper <jackson@ximian.com>
8931 - Only invalidate the effected tabs when the
8932 selected index changes. This reduces drawing and gets rid of some
8934 - Only refresh if the tabs need to be shifted, otherwise only
8935 invalidate the slider button.
8936 - On windows the tabs are not filled to right if the slider is
8939 2005-01-27 Jackson Harper <jackson@ximian.com>
8941 * TabControl.cs: Only refresh on mouseup if we are showing the
8942 slider. Also only invalidate the button whose state has changed.
8944 2005-01-26 Peter Bartok <pbartok@novell.com>
8946 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
8947 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
8948 and SystrayRemove() methods
8949 * XplatUIOSX.cs: Stubbed Systray methods
8951 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
8953 - Fixed broken XChangeProperty calls (marshalling messed up things)
8954 * X11Structs.cs: Added enums and structs required for Size hinting
8955 * NotifyIcon.cs: Added & implemented
8957 2005-01-26 Jackson Harper <jackson@ximian.com>
8959 * TabControl.cs: Space vertically layed out tabs properly.
8961 2005-01-26 Peter Bartok <pbartok@novell.com>
8963 * Form.cs (CreateClientParams): Always set the location to 0,0
8964 since we're a child window.
8966 * Control.cs (SetVisibleCore): Always explicitly setting the location
8967 of a toplevel window, apparently X11 doesn't like to move windows
8968 while they're not mapped.
8970 2005-01-26 Jackson Harper <jackson@ximian.com>
8972 * TabControl.cs: Implement FillToRight size mode with vertically
8975 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
8977 * ControlPaint.cs, ThemeWin32Classic.cs
8978 - Fixes DrawFocusRectangle
8980 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
8983 - MenuBar tracking only starts when item is first clicked
8984 - Fixes menu hidding for multiple subitems
8985 - Unselect item in MenuBar when item Executed
8988 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
8991 - IsInputKey for ListBox
8994 - Shift and Control item selection
8995 - Implement SelectionMode.MultiExtended
8998 - IsInputKey implemented
8999 - Do not generate OnTextChangedEdit on internal txt changes
9001 2005-01-23 Peter Bartok <pbartok@novell.com>
9003 * AccessibleObject.cs: Partially implemented Select()
9004 * MonthCalendar.cs: Added missing attributes and events
9005 * Form.cs: Fixed CreateParams behaviour, now controls derived from
9006 form can properly override CreateParams.
9007 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9008 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9009 Control performs Invalidate & Update
9010 * NativeWindow (CreateHandle): Added special handling for Form
9011 and Form.FormParent classes to allow overriding of From.CreateParams
9013 - ControlNativeWindow: Renamed 'control' variable to more intuitive
9015 - ControlNativeWindow: Added Owner property
9016 - Removed usage of Refresh() on property changes, changed into
9017 Invalidate(), we need to wait until the queue is processed for
9018 updates, direct calls might cause problems if not all vars for
9019 Paint are initialized
9020 - Added call to UpdateStyles() when creating the window, to set any
9021 styles that CreateWindow might have ignored.
9022 - Added support for Form CreateParent overrides to UpdateStyles()
9023 * MessageBox.cs: Removed no longer needed FormParent override stuff,
9024 CreateParams are now properly overridable
9025 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9026 CreateParams are now properly overridable
9028 2005-01-23 Miguel de Icaza <miguel@ximian.com>
9030 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9033 Capture LostFocus and OnTextBoxChanged. The later introduces a
9034 recursive invocation that I have not figured out yet.
9036 Reset the timer when not using (it was accumulating).
9039 (OnTextBoxChanged): Set UserEdit to true here to track whether the
9040 user has made changes that require validation.
9042 Reset changing to avoid loops.
9044 2005-01-22 Miguel de Icaza <miguel@ximian.com>
9046 * NumericUpDown.cs: Display value at startup.
9048 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9051 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9052 filled in. Added some basic parsing of text.
9054 Still missing the OnXXX method overrides, and figuring out the
9055 events that must be emitted.
9057 * UpDownBase.cs: Handle UserEdit on the Text property.
9059 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
9062 - Fixes IntegralHeight
9065 2005-01-21 Jackson Harper <jackson@ximian.com>
9067 * TabControl.cs: Set the SelectedIndex property when SelectedTab
9068 is set so that the page visibility is updated and the tabs are
9071 2005-01-21 Jackson Harper <jackson@ximian.com>
9073 * TabControl.cs: Use cliping rectangle for blitting. Give the
9074 theme the clipping rect so we can do clipping while
9075 drawing. Remove some debug code.
9077 2005-01-21 Jackson Harper <jackson@ximian.com>
9079 * TabPage.cs: Add a new method so tab pages can force the tab
9080 control to recalculate the tab page sizes.
9081 * TabControl.cs: UpdateOwner needs to make the tab control recalc
9084 2005-01-20 Jackson Harper <jackson@ximian.com>
9086 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9088 2005-01-20 Jackson Harper <jackson@ximian.com>
9090 * TreeView.cs: Set the bounds for nodes properly. They were
9091 getting screwed up when checkboxes were not enabled, but images
9094 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
9097 - Owner draw support
9100 2005-01-20 Jackson Harper <jackson@ximian.com>
9102 * XplatUIStructs.cs: More misc keys
9103 * X11Keyboard.cs: Ignore some control keys.
9105 2005-01-20 Jackson Harper <jackson@ximian.com>
9107 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9108 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9110 2005-01-19 Peter Bartok <pbartok@novell.com>
9112 * Control.cs: Un-selecting the control when it is loosing focus
9114 2005-01-19 Jackson Harper <jackson@ximian.com>
9116 * TreeView.cs: Hook up to the text controls leave event so we can
9117 end editing when the users clicks outside the text box.
9119 2005-01-19 Jackson Harper <jackson@ximian.com>
9121 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9122 get set in the conversion array.
9124 2005-01-19 Peter Bartok <pbartok@novell.com>
9126 * Application.cs (ModalRun): Added a call to CreateControl to ensure
9127 focus is properly set
9129 - Added missing attributes
9130 - removed styles, those are already set in the base class
9132 - Added missing attributes
9133 - Added clip window styles
9134 * CheckBox.cs: Added missing attributes
9136 - FormParentWindow.CreateParams: Added required clip styles
9137 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9138 also filters modifier keys
9140 - Added assignment of Accept and Cancel button to enable Enter
9141 and Esc keys in MessageBox dialogs
9142 - FormParentWindow.CreateParams: Added required clip styles
9143 * RadioButton.cs: Added missing attributes
9144 * TextControl.cs: No longer draws selection if control does not
9147 - Now draws simple rectangle around test area to make it obvious
9148 there's a control. This is a hack until we properly support borders
9149 - A few simple fixes to support selections better, now erases selected
9150 text when typing, and resets selection when using movement keys
9152 2005-01-19 Miguel de Icaza <miguel@ximian.com>
9154 * UpDownBase.cs: Added some new properties.
9156 * DomainUpDown.cs: Implement a lot to get my test working.
9158 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9160 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9162 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9164 * OSXStructs (WindowAttributes): Fixed csc complaints
9166 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9169 OSXStructs.cs: Initial refactor to move enums and consts into
9170 OSXStructs and use them in the driver for greater readability.
9172 2005-01-19 Geoff Norton <gnorton@customerdna.com>
9174 * XplatUIOSX.cs: Initial support for Standard Cursors.
9175 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9177 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
9179 * ComboBox.cs: ability to change style when the ctrl is already
9180 created, missing methods and events, bug fixes, signature fixes
9182 2005-01-19 Peter Bartok <pbartok@novell.com>
9184 * Cursors.cs (ctor): Added ctor to fix signature
9186 2005-01-18 Peter Bartok <pbartok@novell.com>
9188 * Button.cs: Implemented DoubleClick event
9190 - Fixed keyboard handling to behave like MS, where the press of
9191 Spacebar is equivalent to a mousedown, and the key release is
9192 equivalent to mouseup. Now a spacebar push will give the same
9193 visual feedback like a mouse click.
9194 - Added missing attributes
9195 - Added ImeModeChanged event
9196 - Added support for generating DoubleClick event for derived classes
9198 - Implemented DoubleClick event
9199 - Added missing attributes
9200 * CommonDialog.cs: Added missing attribute
9201 * ContextMenu.cs: Added missing attributes
9203 - AutoChecked buttons do not allow to be unselected when clicked
9204 (otherwise we might end up with no selected buttons in a group)
9205 - Added missing attributes
9206 - Implemented DoubleClickEvent
9207 * ThreadExceptionDialog.cs: Enabled TextBox code
9209 2005-01-18 Peter Bartok <pbartok@novell.com>
9211 * Form.cs: Removed debug output
9212 * Button.cs: Added support for DoubleClick method
9214 2005-01-18 Peter Bartok <pbartok@novell.com>
9217 - Added method to parent window that allows triggering size
9218 calculations when a menu is added/removed
9219 - set_Menu: Cleaned up mess from early days of Form and Control,
9220 now properly triggers a recalc when a menu is added/removed
9221 - Added case to select form itself as focused form if no child
9223 - Added PerformLayout call when showing dialog, to ensure properly
9226 - Select(): Made internal so Form can access it
9227 - Focus(): Only call Xplat layer if required (avoids loop), and sets
9229 * Application.cs (Run): Removed hack and calls PerformLayout instead
9230 to trigger calculation when Form becomes visible
9232 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
9234 * ComboBox.cs: fixes for ownerdraw
9236 2005-01-18 Peter Bartok <pbartok@novell.com>
9239 - Sentinel is no longer static, each Document gets it's own, this
9240 avoids locking or alternatively overwrite problems when more
9241 than one text control is used simultaneously.
9242 - Switched to use Hilight and HilightText brushes for text selection
9244 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9246 2005-01-18 Peter Bartok <pbartok@novell.com>
9249 - Hooked up the following events:
9257 o SystemColorsChanged
9260 - Removed debug output
9261 - Added a call to the current theme's ResetDefaults when a color change
9263 * Form.cs: Now setting the proper ImeMode
9264 * Theme.cs: Defined a method to force recreation of cached resources
9265 and rereading of system defaults (ResetDefaults())
9266 * ThemeWin32Classic.cs: Added ResetDefaults() stub
9268 2005-01-17 Peter Bartok <pbartok@novell.com>
9270 * Control.cs: Added missing attributes
9272 2005-01-17 Jackson Harper <jackson@ximian.com>
9274 * TreeNode.cs: Implement editing. Add missing properties selected
9276 * TreeView.cs: Implement node editing. Also some fixes to use
9277 Invalidate (invalid area) instead of Refresh when selecting.
9279 2005-01-17 Peter Bartok <pbartok@novell.com>
9282 - Implemented InvokeGotFocus() method
9283 - Implemented InvokeLostFocus() method
9284 - Implemented InvokePaint() method
9285 - Implemented InvokePaintBackground() method
9286 - Implemented InvokeClick() method
9287 - Implemented FindForm() method
9288 - Implemented RectangleToClient() method
9289 - Implemented ClientToRectangle() method
9290 - Implemented ResetBackColor() method
9291 - Implemented ResetCursor() method
9292 - Implemented ResetFont() method
9293 - Implemented ResteForeColor() method
9294 - Implemented ResetImeMode() method
9295 - Implemented ResetLeftToRight() method
9296 - Implemented ResetText() method
9297 - Implemented Scale() methods
9298 - Implemented ScaleCore() method
9299 - Implemented Update() method
9300 - Removed unused variables
9301 - Stubbed AccessibilityNotifyClients and
9302 ControlAccessibleObject.NotifyClients() methods (dunno what to do
9304 - Now setting proper default for RightToLeft property
9305 - Fixed bug in SetClientSizeCore that would cause windows to get
9307 - Now sending Click/DoubleClick events
9308 - Now selecting controls when left mouse button is clicked on
9310 * AccessibleEvents.cs: Added
9311 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9312 * XplatUIOSX.cs: Stubbed UpdateWindow() method
9313 * XplatUIWin32.cs: Implemented UpdateWindow() method
9314 * XplatUIX11.cs: Implemented UpdateWindow() method
9315 * Form.cs: Removed stray semicolon causing CS0162 warning
9316 * ThemeWin32Classic.cs: Fixed unused variable warnings
9317 * ScrollableControl.cs: Now calls base method for ScaleCore
9318 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9319 style to avoid interference with internal click handler (which is
9320 different than standard Control click handling)
9322 - Now unchecks all sibling radio buttons when control is
9323 selected (Fixes #68756)
9324 - Removed internal tabstop variable, using the one inherited from
9327 2005-01-17 Jackson Harper <jackson@ximian.com>
9329 * NavigateEventArgs.cs: Fix base type.
9330 * LinkLabel.cs: Sig fix
9332 2005-01-17 Jackson Harper <jackson@ximian.com>
9334 * TreeView.cs: Only invalidate the effected nodes bounds when
9337 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9339 * XplatUIWin32.cs: fixes Win32 marshaling
9340 * XplatUIX11.cs: fixes method signature
9342 2005-01-17 Peter Bartok <pbartok@novell.com>
9344 * XplatUIX11.cs: Clean up resources when we no longer need them
9346 2005-01-17 Peter Bartok <pbartok@novell.com>
9348 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9349 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9350 and DestroyCursor() methods.
9351 * Cursor.cs: Partially implemented, now supports standard cursors;
9352 still contains some debug code
9353 * Cursors.cs: Implemented class
9355 - WndProc(): Added handling of WM_SETCURSOR message, setting the
9357 - Implemented Cursor property
9358 - Replaced break; with return; more straightforwar and possibly
9360 - Now properly setting the result for WM_HELP
9361 * X11Structs.cs: Added CursorFontShape enum
9362 * XplatUIStructs.cs:
9363 - Added StdCursor enum (to support DefineStdCursor() method)
9364 - Added HitTest enum (to support sending WM_SETCURSOR message)
9366 - Now sends the WM_SETCURSOR message
9367 - Implemented new cursor methods
9368 * XplatUIOSX.cs: Stubbed new cursor methods
9370 - Implemented new cursor methods
9371 - Added GetSystemMetrics function and associated enumeration
9373 2005-01-15 Peter Bartok <pbartok@novell.com>
9376 - WndProc(): Now handles EnableNotifyMessage
9377 - SelectNextControl(): Fixed bug where if no child or sibling
9378 controls exist we looped endlessly
9380 2005-01-14 Jackson Harper <jackson@ximian.com>
9382 * TreeView.cs: Recalculate the tab pages when a new one is added
9383 so that the proper bounding rects are created.
9385 2005-01-14 Jackson Harper <jackson@ximian.com>
9387 * TreeView.cs: Draw a gray box instead of a grip in the lower
9388 right hand corner when there are both horizontal and vertical
9391 2005-01-14 Jackson Harper <jackson@ximian.com>
9393 * Control.cs: When erasing backgrounds use FromHwnd instead of
9394 FromHdc when there is a NULL wparam. This occurs on the X driver.
9395 * XplatUIX11.cs: Set the wparam to NULL.
9397 2005-01-13 Jackson Harper <jackson@ximian.com>
9399 * PictureBox.cs: Implement missing methods (except ToString, need
9400 to test that on windows) and events. When visibility is changed we
9401 need to redraw the image because the buffers are killed. When size
9402 is changed refresh if the sizemode needs it.
9404 2005-01-13 Peter Bartok <pbartok@novell.com>
9406 * Control.cs (SelectNextControl): Was using wrong method to select
9409 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9411 * ComboBox.cs: fixes dropstyle
9413 2005-01-13 Peter Bartok <pbartok@novell.com>
9416 - Implemented Select() override
9417 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9418 - Now sets keyboard focus on startup
9419 * Control.cs (SelectNextControl): Now properly handles directed=true
9421 - WndProc: Now passes tab key on to base if AcceptTabChar=false
9422 - Added (really bad) focus rectangle (mostly for testing)
9423 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9424 to enforce redraw on focus changes
9425 * ContainerControl.cs:
9426 - Fixed detection of Shift-Tab key presses
9427 - Fixed traversal with arrow keys
9428 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9429 gonna keep this or if it's complete yet
9431 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
9433 * ComboBox.cs: missing properties, fixes
9435 2005-01-13 Peter Bartok <pbartok@novell.com>
9437 * Panel.cs (ctor): Setting Selectable window style to off
9438 * Splitter.cs (ctor): Setting Selectable window style to off
9439 * GroupBox.cs (ctor): Setting Selectable window style to off
9440 * Label.cs (ctor): Setting Selectable window style to off
9442 2005-01-12 Miguel de Icaza <miguel@ximian.com>
9444 * UpDownBase.cs (InitTimer): If the timer has been already
9447 Use a TextBox instead of a Label.
9449 2005-01-12 Jackson Harper <jackson@ximian.com>
9451 * TreeView.cs: Refresh the tree after sorting the nodes. Always
9452 draw the connecting node lines (when ShowLines is true).
9453 * TreeNode.cs: The nodes index can now be updated. This is used
9454 when a node collection is sorted.
9455 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9456 insert or an existing unsorted node collection can be sorted.
9458 2005-01-12 Peter Bartok <pbartok@novell.com>
9460 * ContainerControl.cs: Implemented ProcessDialogKeys()
9462 2005-01-12 Peter Bartok <pbartok@novell.com>
9465 - Implemented SelectNextControl() method
9466 - Several focus related bug fixes
9467 - Fixed Docking calculations to match MS documentation and
9470 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
9472 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9475 2005-01-12 Peter Bartok <pbartok@novell.com>
9478 - Fixed broken Contains() method
9479 - Implemented GetNextControl() method. Finally. This is the pre-
9480 requisite for focus handling.
9482 2005-01-12 Peter Bartok <pbartok@novell.com>
9484 * OSXStrucs.cs: Added
9486 2005-01-12 Peter Bartok <pbartok@novell.com>
9489 - Removed PeekMessageFlags
9490 - Implemented SetWindowStyle() method
9491 * XplatUIStructs.cs: Added PeekMessageFlags
9492 * X11Structs: Added missing border_width field to XWindowChanges struct
9494 - PeekMessage: Now throws exception if flags which are not yet
9495 supported are passed
9496 - Implemented SetWindowStyle() method
9497 - Fixed SetZOrder to handle AfterHwnd properly
9498 * XplatUI.cs: Added SetWindowStyle() method
9499 * XplatUIDriver.cs: Added SetWindowStyle() abstract
9501 - Implemented UpdateStyles() method
9502 - Implemented UpdateZOrder() method
9503 * XplatUIOSX.cs: Added SetWindowStyle() stub
9505 2005-01-12 Geoff Norton <gnorton@customerdna.com>
9507 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9511 2005-01-11 Jackson Harper <jackson@ximian.com>
9513 * TreeView.cs: Still need to draw lines to siblings even if out of
9514 the current node is out of the clip.
9516 2005-01-11 Jackson Harper <jackson@ximian.com>
9518 * TreeView.cs: When setting the hbar/vbar/grip position use
9519 SetBounds so that perform layout is only called once. Also suspend
9520 and resume layout so layout is only done once for all controls.
9521 - Removed some debug fluff
9522 * SizeGrip.cs: Call base implmentation in overriding methods.
9523 - When visibility is changed the drawing buffers are killed so we
9526 2005-01-11 Jackson Harper <jackson@ximian.com>
9528 * TreeView.cs: Calculate the open node count while drawing. This
9529 saves us an entire tree traversal for every paint operation. Use
9530 a member var for the open node count so less vars are passed around.
9532 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
9535 - fixed selection to use mousemove, not mouse polling on timer
9536 * ThemeWin32Classic.cs
9537 - removed redundant unused variable "no_more_content"
9539 2005-01-11 Peter Bartok <pbartok@novell.com>
9541 * XplatUIX11.cs (DoEvents): Needs to return when no more events
9542 are pending, so it now calls PeekMessage instead of GetMessage;
9543 implemented a incomplete version of PeekMessage
9545 2005-01-11 Peter Bartok <pbartok@novell.com>
9547 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9549 * TextBoxBase.cs: Added sending of TextChanged event
9551 2005-01-10 Jackson Harper <jackson@ximian.com>
9553 * TreeView.cs: Try not to draw outside the clipping rectangle on
9556 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
9558 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9560 2005-01-10 Jackson Harper <jackson@ximian.com>
9563 - Implement fast scrolling. Now only the newly
9564 exposed nodes are drawn and the old image is moved using the
9565 XplatUI::ScrollWindow method.
9566 - Factor in height of nodes when calculating whether or not the
9567 node is in the clipping rect.
9569 2005-01-10 Jackson Harper <jackson@ximian.com>
9571 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9573 2005-01-10 Peter Bartok <pbartok@novell.com>
9575 * Application.cs: Added temporary hack to resolve all our resize
9576 required issues on startup. This will get fixed properly at
9577 some point in the future
9579 2005-01-10 Jackson Harper <jackson@ximian.com>
9581 * SizeGrip.cs: New internal class that is used as a sizing
9582 grip control...hence the name.
9584 2005-01-10 Peter Bartok <pbartok@novell.com>
9586 * Control.cs: Implemented proper TabIndex handling, now assigning
9587 a tabindex when a control is added to a container
9588 * GroupBox.cs (ctor): Now sets the Container style bit, required
9589 for Control.GetNextControl()
9591 2005-01-09 Jackson Harper <jackson@ximian.com>
9593 * TextBoxBase.cs: Clear window when scrolling (fixes build).
9595 2005-01-09 Peter Bartok <pbartok@novell.com>
9597 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9598 XplatUIX11.cs: Added ability to control ScrollWindow expose and
9599 an overload for ScrollWindow to allow only scrolling a rectangle
9601 2005-01-09 Peter Bartok <pbartok@novell.com>
9604 - Implemented SetDesktopBounds method
9605 - Implemented SetDesktopLocation method
9607 2005-01-08 Jackson Harper <jackson@ximian.com>
9609 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9610 the node count has changed, this removes to VScroll::Refresh calls
9613 2005-01-08 Geoff Norton <gnorton@customerdna.com>
9615 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9617 2005-01-07 Jackson Harper <jackson@ximian.com>
9619 * TreeNode.cs: Just update the single node when it is
9620 checked. Don't refresh after toggling, the Expand/Collapse already
9622 * TreeView.cs: Respect clipping a little more when drawing. Try
9623 not to redraw things that don't need to be redrawn. Just hide the
9624 scrollbars when they are no longer needed instead of removing
9625 them, so they don't have to be created again and again.
9627 2005-01-07 Geoff Norton <gnorton@customerdna.com>
9629 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
9630 coordinates to window space to place the caret properly, FIXED.
9631 Implement GetWindowState & SetWindowState
9633 2005-01-06 Peter Bartok <pbartok@novell.com>
9636 - Implemented ClientSize property
9637 - Implemented DesktopBounds property
9638 - Implemented DesktopLocation property
9639 - Implemented IsRestrictedWindow property
9640 - Implemented Size property
9641 - Implemented TopLevel property
9642 - Implemented FormWindowState property
9644 - Implemented GetTopLevel() method
9645 - Implemented SetTopLevel() method
9646 * X11Structs.cs (Atom):
9647 - Added AnyPropertyType definition
9648 - Added MapState definiton and updated XWindowAttribute struct
9649 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9650 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9651 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9653 - Implemented GetWindowState() and SetWindowState() methods
9654 - Fixed Win32GetWindowLong return type
9656 - Introduced central function for sending NET_WM messages
9657 - Implemented GetWindowState() and SetWindowState() methods
9658 * TextBoxBase.cs (set_Lines):
9659 - Now uses Foreground color for text added via Text property (Duh!)
9660 - Added code to remember programmatically requested size (fixes
9661 behaviour when Multiline is set after Size)
9662 - Added AutoSize logic
9664 2005-01-06 Jackson Harper <jackson@ximian.com>
9666 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9668 2005-01-06 Jackson Harper <jackson@ximian.com>
9670 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9673 2005-01-06 Jackson Harper <jackson@ximian.com>
9675 * ScrollableControl.cs: Lazy init the scrollbars.
9677 2005-01-06 Jackson Harper <jackson@ximian.com>
9679 * Theme.cs: Speed up getting pens and solid brushes, by using
9680 their ARGB as a hash instead of tostring and not calling Contains.
9682 2005-01-06 Peter Bartok <pbartok@novell.com>
9685 - Implemented OnActivated and OnDeactivate event trigger
9686 - Implemented Activate() method
9687 - Fixed ShowDialog() to activate the form that was active before
9688 the dialog was shown
9690 - Added global active_window var that tracks the currently active
9692 - Now always grabs Property changes from the root window to always
9693 catch changes on the active window property
9694 - Added code to PropertyNotify handler to send Active/Inactive
9695 messages when state changes. This puts X11 and Win32 en par on
9696 WM_ACTIVATE notifications (except for double notifications when
9697 the user clicks away from our modal window to another one of our
9700 2005-01-05 Jackson Harper <jackson@ximian.com>
9702 * ImageList.cs: Implment ctor
9704 2005-01-05 Geoff Norton <gnorton@customerdna.com>
9706 * XplatUIOSX.cs: Implement Activate/SetTopmost
9708 2005-01-05 Geoff Norton <gnorton@customerdna.com>
9710 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9712 2005-01-05 Geoff Norton <gnorton@customerdna.com>
9714 * XplatUIOSX.cs: Implement GetActive/SetFocus.
9716 2005-01-05 Peter Bartok <pbartok@novell.com>
9718 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9719 XplatUIOSX.cs: Added GetActive method to return the currently
9720 active window for the application (or null, if none is active)
9722 - Implemented ActiveForm
9723 - Commented out owner assignment for modal dialogs (causes problems
9724 on Win32, since the owner will be disabled)
9725 - Reworked some Active/Focus handling (still incomplete)
9726 * CommonDialog.cs: Commented out owner assignment for modal dialogs
9727 (causes problems on Win32, since the owner will be disabled)
9728 * IWin32Window: Added ComVisible attribute
9730 2005-01-05 Peter Bartok <pbartok@novell.com>
9732 * ToolTip.cs (WndProc): Enable setting focus now that we have the
9733 required XplatUI functions.
9735 2005-01-05 Peter Bartok <pbartok@novell.com>
9737 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9738 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9739 to implement focus and activation handling; still incomplete and
9742 2005-01-04 Peter Bartok <pbartok@novell.com>
9744 * TextBoxBase.cs: Changed access level for Document property to
9745 match switch to internal for TextControl
9747 2005-01-04 Peter Bartok <pbartok@novell.com>
9749 * AccessibleObject: Added ComVisible attribute
9751 2005-01-04 Jackson Harper <jackson@ximian.com>
9753 * X11Keyboard.cs: Remove unneeded var.
9755 2005-01-04 Jackson Harper <jackson@ximian.com>
9757 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9759 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9760 ClientMessage. This makes apps exit cleanly (more often).
9762 2005-01-04 Jackson Harper <jackson@ximian.com>
9764 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9765 handling focus, return correct colors and fonts,
9766 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9767 handle selection, horizontal scrolling, and mouse interaction.
9769 2005-01-04 Peter Bartok <pbartok@novell.com>
9771 * ICommandExecutor.cs: Added
9772 * IDataGridColumnStyleEditingNotificationService.cs: Added
9773 * IFeatureSupport.cs: Added
9774 * IFileReaderService.cs: Added
9775 * IDataObject.cs: Added ComVisible attribute
9776 * AmbientProperties.cs: Added
9777 * BaseCollection.cs: Added missing attributes
9778 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9779 * BaseCollection.cs: Added missing attributes
9780 * Binding.cs: Added TypeConverter attribute
9781 * BindingContext.cs: Added DefaultEvent attribute
9782 * BindingsCollection.cs: Added DefaultEvent attribute
9783 * Button.cs: Added DefaultValue attribute
9784 * DragEventArgs.cs: Added ComVisible attribute
9785 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9786 * KeyEventArgs.cs: Added ComVisible attribute
9787 * KeyPressEventArgs.cs: Added ComVisible attribute
9788 * MouseEventArgs.cs: Added ComVisible attribute
9789 * NavigateEventArgs.cs: Added
9790 * NavigateEventHandler.cs: Added
9791 * FeatureSupport.cs: Added
9792 * OSFeature.cs: Added
9793 * Theme.cs: Added abstract Version property to support OSFeature
9794 * ThemeWin32Classic.cs: Added Version property to
9795 support OSFeature.Themes
9796 * ProgressBar.cs: Removed OnPaintBackground override, not required since
9797 the proper styles to avoid background drawing are set, also doesn't
9799 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9800 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9801 * ScrollEventArgs.cs: Added ComVisible attribute
9802 * SplitterEventArgs.cs: Added ComVisible attribute
9803 * AccessibleSelection.cs: Added Flags attribute
9804 * Appearance.cs: Added ComVisible attribute
9805 * Border3DSide.cs: Added ComVisible attribute
9806 * Border3DStyle.cs: Added ComVisible attribute
9807 * BorderStyle.cs: Added ComVisible attribute
9808 * DragAction.cs: Added ComVisible attribute
9809 * ErrorBlinkStyle.cs: Added
9810 * ScrollEventType.cs: Added ComVisible attribute
9811 * AnchorStyles.cs: Added Editor attribute
9812 * DockStyle.cs: Added Editor attribute
9813 * HorizontalAlignment.cs: Added ComVisible attribute
9814 * HelpEventArgs.cs: Added ComVisible attribute
9815 * PaintEventArgs.cs: Added IDisposable
9817 2005-01-04 Peter Bartok <pbartok@novell.com>
9819 * TextControl.cs: Switched Line, LineTag and Document classes to
9822 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
9824 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9825 Simple mode, fixes, IntegralHeight, etc.
9827 2005-01-04 Peter Bartok <pbartok@novell.com>
9829 * TextBoxBase.cs: Using proper font variable now
9831 2005-01-04 Peter Bartok <pbartok@novell.com>
9833 * Form.cs (ShowDialog): Set parent to owner, if provided
9834 * GroupBox.cs: Removed unused vars
9836 - Added GetHashCode() for Document and LineTag classes
9837 - Removed unused variables
9838 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9839 to allow translation between continuous char position and line/pos
9840 * CheckBox.cs: Removed vars that are provided by base class
9841 * RadioButton.cs: Removed vars that are provided by base class, added
9842 new keyword where required
9843 * LinkLabel.cs: Added new keyword where required
9844 * Control.cs (WndProc): Removed unused variable
9846 - Finished SelectionLength property
9847 - Implemented SelectionStart property
9848 - Implemented Text property
9849 - Removed unused vars
9850 * MessageBox.cs: Added new keyword where required
9851 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9853 * MenuAPI.cs: Added new keyword where required
9854 * ButtonBase.cs: Removed vars that are provided by base class, added
9855 new keyword where required
9856 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9857 argument to double, to allow compiling with csc 2.0 (Atsushi ran
9859 * Application.cs (Run): Now triggers the ThreadExit event
9860 * CommonDialog.cs: Added new keyword where required; now properly sets
9861 parent (owner) for dialog
9862 * XplatUIX11.cs: Commented out unused vars
9863 * StatusBar.cs: Fixed signature for Text property
9864 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9866 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
9868 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9869 TrackBar.cs, MonthCalendar.cs: remove unused vars
9871 2005-01-03 Jackson Harper <jackson@ximian.com>
9873 * ThemeWin32Classic.cs:
9874 * X11Keyboard.cs: Remove unused vars.
9876 2005-01-03 Peter Bartok <pbartok@novell.com>
9879 - set_Text: Tied into TextControl
9880 - set_TextAlignment: Tied into TextControl
9882 - Added alignment properties and implemented alignment handling
9883 and drawing (still has a bug, not generating proper expose events)
9884 - Added new Line() constructor to allow passing the line alignment
9885 - Fixed selection setting, properly handling end<start now
9886 - Added aligment considerations to RecalculateDocument()
9888 - Now properly enforces control height for single line controls
9889 - Added support for CharacterCasing
9890 - Added IsInputKey override
9891 - Fixed Keys.Enter logic
9892 - Added SetBoundsCore override
9893 - Fixed mouse selection handling
9895 2005-01-03 Jackson Harper <jackson@ximian.com>
9898 - Collapse and uncheck all nodes when CheckBoxes is disabled.
9899 - Checkboxes are always aligned to the bottom of the node,
9900 regardless of item height.
9901 - Use the node bounds to draw the text so we can center it when
9902 the item height is greater then the font height.
9903 - Node::Bounds are only the text part of the node.
9904 * TreeNode.cs: New method to combine collapsing and unchecking all
9907 2005-01-02 Jackson Harper <jackson@ximian.com>
9909 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
9910 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
9911 tree when a check is changed. TODO: Only refresh the checked node.
9913 2004-12-30 Jackson Harper <jackson@ximian.com>
9915 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
9916 * TreeNode.cs: When collapsing make sure to never collapse the
9919 2004-12-29 Jackson Harper <jackson@ximian.com>
9921 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
9923 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
9925 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
9927 2004-12-28 Peter Bartok <pbartok@novell.com>
9929 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
9932 2004-12-28 Peter Bartok <pbartok@novell.com>
9934 * Control.cs (WndProc): Added WM_HELP handler, now generates
9936 * Form.cs: Added HelpButton property and required support code
9937 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
9939 2004-12-28 Peter Bartok <pbartok@novell.com>
9942 - Made DialogForm.owner variable internal
9943 - Added check to ensure owner form is set before setting
9944 owner properties in CreateParams
9946 2004-12-28 Geoff Norton <gnorton@customerdna.com>
9948 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
9949 swizzling. Implement ClientToScreen and ScreenToClient. Implement
9950 GetCursorPos. Fix major visibility issues. Rework the windowing
9951 system to support borderless/titleless windows (implements menus).
9952 Fix GetWindowPos. Implement initial background color support for
9955 2004-12-28 Peter Bartok <pbartok@novell.com>
9957 * Form.cs (get_CreateParams): Make sure we have an owner before using
9958 the owner variable. Implement proper default if no owner exists
9960 2004-12-28 Peter Bartok <pbartok@novell.com>
9962 * In preparation for making Managed.Windows.Forms the default build target
9963 for System.Windows.Forms, the following stubbed files were added.
9964 Dialogs are currently being implemented by contributors and are only
9965 short-term place holders.
9966 * ColorDialog.cs: Initial check-in (minmal stub)
9967 * DataGrid.cs: Initial check-in (minimal stub)
9968 * DataGridLineStyle.cs: Initial check-in (minimal stub)
9969 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
9970 * DataGridTableStyle.cs: Initial check-in (minimal stub)
9971 * FontDialog.cs: Initial check-in (minimal stub)
9972 * FileDialog.cs: Initial check-in (minimal stub)
9973 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
9974 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
9975 * OpenFileDialog: Initial check-in (minimal stub)
9976 * IComponentEditorPageSite.cs: Initial check-in
9977 * Splitter.cs: Initial check-in (for Jackson)
9978 * SplitterEventArgs.cs: Initial check-in (for Jackson)
9979 * SplitterEventHandler.cs: Initial check-in (for Jackson)
9980 * TextBox.cs: Initial check-in; still needs some wiring to
9982 * Form.cs: Implemented ControlBox property
9983 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
9984 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
9985 * TextControl.cs: Added selection functionality; added todo header
9987 - Implemented Lines property
9988 - Implemented TextHeight property
9989 - Implemented SelectedText property
9990 - Implemented SelectionLength property
9991 - Implemented SelectAll method
9992 - Implemented ToString method
9993 - Removed and cleaned up some debug code
9994 - Implemented (still buggy) mouse text selection
9996 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
9998 * ComboBox.cs: Complete DropDownList implementation, fixes.
10000 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
10002 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10003 * ComboBoxStyle.cs: ComboBoxStyle enum
10004 * ComboBox.cs: Initial work on ComboBox control
10006 2004-12-21 Peter Bartok <pbartok@novell.com>
10008 * Control.cs (ctor, CreateParams): Moved setting of is_visible
10009 forward so that anything that creates a window gets the default,
10010 also no longer uses Visible property in CreateParams to avoid
10011 walking up the parent chain and possibly get the wrong visible
10012 status. Fixed IsVisible to no longer walk up to the parent.
10014 2004-12-21 Peter Bartok <pbartok@novell.com>
10016 * Form.cs (ShowDialog): Unset modality for the proper window
10018 2004-12-20 Peter Bartok <pbartok@novell.com>
10020 * CommonDialog.cs: Initial check-in
10022 2004-12-20 Peter Bartok <pbartok@novell.com>
10024 * Control.cs (Visible): Now uses the parent window instead of the
10025 client area window for the property
10028 - ShowDialog(): Now uses the proper window for modality
10029 - The default visibility state for the form parent is now false. This
10030 will prevent the user from seeing all the changes to the form and
10031 its controls before the application hits Application.Run()
10032 - Removed some stale commented out code
10035 - Added FindWindow() method to have a method to check for existence
10037 - Added ability to override default exception handling (for example
10038 when debugging with VS.Net; to do this the ExternalExceptionHandler
10040 - Removed some useless debug output
10043 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10044 not working as expected
10045 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10046 property to allow switching back to the modal window if focus is
10047 given to another one of our windows (Application Modal)
10048 - Now only sets override_redirect if we create a window
10050 - Moved EventMask selection before mapping of newly created window
10051 so we can catch the map event as well
10052 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10053 - Added various Atom related DllImports
10054 - Implemented Exit() method
10055 - .ctor() : No longer shows window if WS_VISIBLE is not defined
10056 in the CreateParams
10058 * MessageBox.cs: Now properly deals with the FormParent window by
10059 providing an override the FormParent CreateParams property to
10060 set as POPUP instead of OVERLAPPED window.
10062 2004-12-19 Geoff Norton <gnorton@customerdna.com>
10064 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
10065 Minor code cleanup.
10067 2004-12-19 Geoff Norton <gnorton@customerdna.com>
10069 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10071 2004-12-18 Peter Bartok <pbartok@novell.com>
10073 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10074 implementing SetModal() method
10076 2004-12-18 Peter Bartok <pbartok@novell.com>
10078 * X11Structs.cs (XGCValues): Fixed type of function element
10079 * XplatUI.cs: Added ScrollWindow() method
10080 * XplatUIDriver.cs: Added ScrollWindow() abstract
10081 * XplatUIWin32.cs: Implemented ScrollWindow() method
10082 * XplatUIX11.cs: Implemented ScrollWindow() method
10083 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10085 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10087 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
10088 Some more keyboard support (INCOMPLETE)
10090 2004-12-17 Peter Bartok <pbartok@novell.com>
10093 - Added color attribute to line tags.
10094 - Added color argument to all functions dealing with tags
10095 - Added color argument support to various functions
10096 - Fixed miss-calculation of baseline/shift in certain circumstances
10098 * TextBoxBase.cs: Added new color option to test code
10100 2004-12-17 Jackson Harper <jackson@ximian.com>
10103 * MonthCalendar.cs: Signature fixes
10105 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10107 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10108 keyboard event moved it. Create a new graphics context for each paint resolves this
10110 2004-12-17 Geoff Norton <gnorton@customerdna.com>
10112 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10113 Make caret exist and go blink blink. Initial keyboard support.
10114 Fix exception handler, Add Invalidate support. Change way RefreshWindow
10117 2004-12-17 Jackson Harper <jackson@ximian.com>
10119 * XplatUIStructs.cs: Updated set of virtual keycodes.
10120 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10122 2004-12-17 Jackson Harper <jackson@ximian.com>
10124 * XplatUIX11.cs: Prune old keyboard code.
10126 2004-12-17 Jackson Harper <jackson@ximian.com>
10128 * XplatUIX11.cs: When generating mouse wparams get the modifier
10129 keys from the ModifierKeys property.
10131 2004-12-17 Jackson Harper <jackson@ximian.com>
10133 * X11Keyboard.cs: Send up/down input when generating
10134 messages. Remove some unused vars.
10136 2004-12-17 Jackson Harper <jackson@ximian.com>
10139 * TreeView.cs: get rid of warnings.
10141 2004-12-17 Jackson Harper <jackson@ximian.com>
10143 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10145 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
10147 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10148 CheckedListBox.cs: Implementation
10150 2004-12-17 Peter Bartok <pbartok@novell.com>
10152 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10154 2004-12-16 Peter Bartok <pbartok@novell.com>
10157 - InsertCharAtCaret(): Fixed start pos fixup
10158 - CaretLine_get: No longer derives the line from the tag, the tag
10159 could be stale if lines in the document have been added or deleted
10160 - RebalanceAfterDelete(): Fixed bug in balancing code
10161 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10162 - Line.Streamline(): Now can also elminate leading empty tags
10163 - DumpTree(): Added a few more tests and prevented exception on
10165 - Added Debug section for Combining lines
10166 - Delete(): Now copies all remaining properties of a line
10169 - Left mousebutton now sets the caret (and middle button still acts
10170 as formatting tester, which must go away soon)
10171 - Added Debug section for Deleting/Combining lines
10172 - Fixed calculations for UpdateView after Combining lines
10174 2004-12-16 Peter Bartok <pbartok@novell.com>
10176 * TextControl.cs: Now properly aligns text on a baseline, using the
10177 new XplatUI.GetFontMetrics() method. Simplified several calculations
10178 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10181 2004-12-16 Peter Bartok <pbartok@novell.com>
10183 * XplatUI.cs: Added GetFontMetrics() method
10184 * XplatUIDriver.cs: Added GetFontMetrics() abstract
10185 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10186 into libgdiplus, our private GetFontMetrics function
10187 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10188 * XplatUIWin32.cs: Implemented GetFontMetrics() method
10190 2004-12-16 Jackson Harper <jackson@ximain.com>
10192 * XplatUIStruct.cs: Add enum for dead keys
10193 * X11Keyboard.cs: Map and unmap dead keys.
10195 2004-12-16 Jackson Harper <jackson@ximian.com>
10197 * X11Keyboard.cs: Detect and use the num lock mask.
10199 2004-12-16 Peter Bartok <pbartok@novell.com>
10201 * Control.cs (CreateGraphics): Added check to make sure the
10202 handle of the window exists before calling Graphics.FromHwnd()
10204 2004-12-16 Peter Bartok <pbartok@novell.com>
10206 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10207 contains a lot of code that's not supposed to be there for the
10208 real thing, but required for developing/testing the textbox
10211 2004-12-16 Peter Bartok <pbartok@novell.com>
10214 - Fixed Streamline method
10215 - Added FindTag method to Line
10216 - Added DumpTree method for debugging
10217 - Added DecrementLines() method for deleting lines
10218 - Fixed UpdateView to update the cursor to end-of-line on single-line
10220 - Added PositionCaret() method
10221 - Fixed MoveCaret(LineDown) to move into the last line, too
10222 - Added InsertChar overload
10223 - Fixed InsertChar tag offset calculations
10224 - Added DeleteChar() method
10225 - Added Combine() method for folding lines
10226 - Fixed Delete() method, no longer allocates wasted Line object and
10227 now copies all properties when swapping nodes
10228 - Delete() method now updates document line counter
10230 2004-12-15 Jackson Harper <jackson@ximian.com>
10232 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10233 * X11Keyboard.cs: Expose the currently selected modifier keys
10234 through a property.
10236 2004-12-15 Peter Bartok <pbartok@novell.com>
10238 * TextControl.cs: Initial check-in. Still incomplete
10240 2004-12-15 Jackson Harper <jackson@ximian.com>
10243 * TreeView.cs: Fix build on csc (second time today ;-))
10245 2004-12-15 Jackson Harper <jackson@ximian.com>
10247 * TreeView.cs: Store the treenodes plus/minus box bounds when it
10248 is calculated and use this for click testing.
10249 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10251 2004-12-15 Jackson Harper <jackson@ximian.com>
10253 * TreeView.cs: Pass the nodes image index to the image list when
10254 drawing that image.
10256 2004-12-15 Jackson Harper <jackson@ximian.com>
10258 * X11Keyboard.cs: Set messages hwnd.
10259 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10260 post_message calls.
10262 2004-12-15 Jackson Harper <jackson@ximian.com>
10264 * X11Keyboard.cs: Fix to compile with csc.
10266 2004-12-15 Jackson Harper <jackson@ximian.com>
10268 * X11Structs.cs: Add key mask values
10269 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10270 * X11Keyboard.cs: New file - Extrapolates and interpolates key
10271 down/up foo into WM_CHAR foo
10272 * KeyboardLayouts.cs: Common keyboard layouts
10273 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10274 post messages into the main queue.
10276 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
10278 * Button.cs: implement ProcessMnemonic
10279 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10281 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10282 * ButtonBase.cs: Show HotkeyPrefix (not the &)
10284 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
10286 * MonthCalendar.cs: Implemented click-hold for next/previous month
10289 2004-12-11 Peter Bartok <pbartok@novell.com>
10292 - Added XKeyboardState (moved from XplatUIX11.cs)
10293 - Added XCreateGC related enums and structures
10294 - Added GXFunction for XSetFunction
10296 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10298 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10299 CaretVisible() calls
10301 * ToolTip.cs: Added code to prevent stealing focus from app windows
10303 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10304 DestroyCaret, SetCaretPos and CaretVisible)
10307 - Added implementation for caret functions
10308 - Moved hover variables into a struct, to make it a bit easier
10309 on the eyes and to debug
10310 - Removed XKeyboardState (moved to XplatUIX11.cs)
10311 - Moved Keyboard properties into the properties region
10313 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10314 call to get a graphics context for our control
10316 * XplatUIOSX.cs: Added empty overrides for the new caret functions
10318 * TreeView.cs: Fixed bug. No matter what color was set it would always
10319 return SystemColors.Window
10321 * XplatUIWin32.cs: Implemented caret overrides
10323 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
10325 * ListBox.cs: fire events, implement missing methods and properties,
10328 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
10330 * MonthCalendar.cs: invalidation bug fixing
10331 * ThemeWin32Classic.cs: paint fixing
10333 2004-12-09 Geoff Norton <gnorton@customerdna.com>
10335 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10336 prepare the CGContextRef there now.
10338 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
10340 * MonthCalendar.cs:
10341 - optimisationL only invalidate areas that have changed
10342 * ThemeWin32Classic.cs:
10343 - only paint parts that intersect with clip_area
10345 2004-12-09 Peter Bartok <pbartok@novell.com>
10347 * Application.cs: Undid changes from r37004 which cause problems
10350 2004-12-09 Ravindra <rkumar@novell.com>
10352 * ToolBar.cs: Added support for displaying ContextMenu
10353 attached to a button on ToolBar.
10354 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10357 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
10359 * Label.cs: autosize works in text change and removes unnecessary
10362 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
10364 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10367 2004-12-08 Geoff Norton <gnorton@customerdna.com>
10369 * XplatUIOSX.cs: Added mouse move/click/grab support
10370 Remove some debugging WriteLines not needed anymore.
10371 Add window resizing/positioning.
10372 Fix visibility on reparenting.
10374 2004-12-08 Peter Bartok <pbartok@novell.com>
10376 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10378 2004-12-07 Geoff Norton <gnorton@customerdna.com>
10380 * XplatUIOSX.cs: Initial checkin
10381 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10383 2004-12-03 Ravindra <rkumar@novell.com>
10385 * ListView.cs: Added some keybindings and fixed scrolling.
10386 ScrollBars listen to ValueChanged event instead of Scroll
10387 Event. This would let us take care of all changes being
10388 done in the scrollbars' values programmatically or manually.
10389 * ListView.cs (CanMultiselect): Added a check for shift key.
10390 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10391 * ListViewItem.cs (Clone): Fixed. We need to make a copy
10392 of ListViewSubItemCollection as well.
10394 2004-12-06 Peter Bartok <pbartok@novell.com>
10396 * Control.cs (Parent): Added check and exception to prevent
10399 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
10401 * ListBox.cs: implemented clipping, selection single and multiple,
10404 2004-12-03 Ravindra <rkumar@novell.com>
10406 * ListView.cs (ListView_KeyDown):
10407 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10408 when CTRL key is pressed.
10409 * ListViewItem.cs (Selected): Fixed setting the property.
10411 2004-12-03 Marek Safar <marek.safar@seznam.cz>
10413 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10415 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10416 MinimizeBox, ShowInTaskbar, TopMost properties.
10418 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10419 will be implemented).
10421 2004-12-03 Marek Safar <marek.safar@seznam.cz>
10423 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10425 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10428 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10430 * TreeView.cs: BackColor is Colors.Window.
10432 2004-12-01 Jackson Harper <jackson@ximian.com>
10434 * TreeView.cs: When resizing the tree if the user is making it
10435 smaller we don't get expose events, so we need to handle adding
10436 the horizontal scrollbar in the size changed handler as well as
10437 the expose handler.
10439 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
10441 * DrawItemState.cs: fixes wrong enum values
10443 2004-12-01 Jackson Harper <jackson@ximian.com>
10445 * TreeView.cs: Resize the hbar as well as the vbar on resize.
10447 2004-12-01 Jackson Harper <jackson@ximian.com>
10449 * NodeLabelEditEventArgs.cs:
10450 * NodeLabelEditEventHandler.cs:
10451 * OpenTreeNodeEnumerator.cs:
10453 * TreeNodeCollection.cs:
10455 * TreeViewAction.cs:
10456 * TreeViewCancelEventArgs.cs:
10457 * TreeViewCancelEventHandler.cs:
10458 * TreeViewEventArgs.cs:
10459 * TreeViewEventHandler.cs: Initial implementation.
10461 2004-12-01 Ravindra <rkumar@novell.com>
10463 * ListView.cs (CalculateListView): Fixed scrolling related
10464 calculations. Also, removed some debug statements from other
10466 * ListViewItem.cs: Changed access to 'selected' instance variable
10467 from private to internal.
10468 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10470 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
10472 * ThemeWin32Classic.cs: remove cache of brush and pens for
10473 specific controls and use the global system, fixes scrollbutton
10474 bugs (for small sizes, disabled, etc)
10476 * ScrollBar.cs: does not show the thumb for very small controls
10477 (as MS) and allow smaller buttons that the regular size
10479 2004-12-01 Miguel de Icaza <miguel@ximian.com>
10481 * UpDownBase.cs: Add abstract methods for the interface.
10482 Add new virtual methods (need to be hooked up to TextEntry when it
10484 Add override methods for most features.
10485 Computes the size, forces the height of the text entry.
10487 * NumericUpDown.cs: Put here the current testing code.
10489 * Set eol-style property on all files that do not have mixed line
10490 endings, to minimize the future problems. There are still a few
10491 files with mixed endings, and someone should choose whether they
10492 want to move it or not.
10494 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
10496 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10499 2004-11-30 Ravindra <rkumar@novell.com>
10501 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10502 drawing and replaced use of SystemColors by theme colors.
10503 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10504 * ListView.cs (ListViewItemCollection.Add): Throw exception when
10505 same ListViewItem is being added more than once.
10507 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
10509 * MonthCalendar.cs:
10510 - ControlStyles love to make the control not flicker
10512 2004-11-30 Peter Bartok <pbartok@novell.com>
10514 * CharacterCasing.cs: Added
10516 2004-11-29 Peter Bartok <pbartok@novell.com>
10518 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10519 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10520 I am removing these files as they conflict with already completed
10521 work. While it is fantastic to get contributions to MWF, I
10522 respectfully ask that everyone please coordinate their contributions
10523 through mono-winforms-list or #mono-winforms at this time. We're
10524 explicitly avoiding stubbing and don't want controls that don't have
10525 their basic functionality implemented in svn. Please also see
10526 http://www.mono-project.com/contributing/winforms.html
10529 2004-11-29 Marek Safar <marek.safar@seznam.cz>
10531 * Application.cs (ModalRun): Don't hang after exit.
10533 * Theme.cs: New TreeViewDefaultSize property.
10535 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10536 with less hardcoded SystemColors constant.
10537 Implemented TreeViewDefaultSize.
10539 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10540 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10543 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
10545 * MonthCalendar.cs:
10546 - Fix NextMonthDate and PrevMonthDate click moving calendar
10548 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
10550 * MonthCalendar.cs:
10551 - Fix usage of ScrollChange Property when scrolling months
10553 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
10555 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10556 - Fixes menu destroying
10557 - Support adding and removing items on already created menus
10559 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
10561 * MonthCalendar.cs:
10562 - Re-worked all bolded dates handling to match win32
10563 * ThemeWin32Classic.cs:
10564 - Fixed rendering with bolded dates
10566 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
10568 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10569 - Horizontal scroolbar
10574 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
10576 * MonthCalendar.cs:
10577 - Fix Usage of MaxSelectionCount from SelectionRange
10578 - Fixed Shift + Cursor Selection
10579 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10580 - Fixed normal cursor selection to be compat with win32
10581 - Fixed Shift + Mouse Click selection
10583 2004-11-24 Peter Bartok <pbartok@novell.com>
10585 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10586 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10588 - CreatedKeyBoardMsg now updates keystate with Alt key
10589 - Added workaround for timer crash to CheckTimers, Jackson will
10590 develop a proper fix and check in later
10591 - Implemented DispatchMessage
10592 - Removed calling the native window proc from GetMessage (call
10593 now moved to DispatchMessage)
10595 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10596 the keydata (Fixes bug #69831)
10599 - (DispatchMessage): Switched to return IntPtr
10600 - Added DllImport for SetFocus
10602 2004-11-24 Ravindra <rkumar@novell.com>
10604 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10605 background drawing.
10606 * ListViewItem.cs: Fixed various properties, calculations
10607 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10608 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10609 and some internal properties. Fixed MouseDown handler and Paint
10612 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10614 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10616 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10618 * ContainerControl.cs: correct accidental check in of local changes
10620 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
10622 * ThemeWin32Classic.cs:
10623 - Fixed Drawing Last month in grid (sometimes not showing)
10624 * MonthCalendar.cs:
10625 - Fixed title width calculation bug (makeing title small)
10627 2004-11-23 Peter Bartok <pbartok@novell.com>
10630 - Added generation of WM_MOUSEHOVER event
10631 - Added missing assignment of async_method atom
10632 - Fixed WM_ERASEBKGND; now only redraws the exposed area
10634 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
10636 * ThemeWin32Classic.cs:
10637 - Fixed Drawing of today circle when showtodaycircle not set
10638 - fixed drawing of first and last month in the grid (gay dates)
10639 * MonthCalendar.cs:
10640 - Fixed Drawing of today circle
10641 - Fixed drawing of grady dates
10642 - Fixed HitTest for today link when ShowToday set to false
10643 - Fixed DefaultSize to obey ShowToday
10645 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
10647 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10648 * System.Windows.Forms/Theme.cs
10649 * MonthCalendar.cs: added for MonthCalendar
10650 * SelectionRange.cs: added for MonthCalendar
10651 * Day.cs: added for MonthCalendar: added for MonthCalendar
10652 * DateRangeEventArgs.cs: added for MonthCalendar
10653 * DateRangeEventHandler.cs: added for MonthCalendar
10655 2004-11-22 Ravindra <rkumar@novell.com>
10657 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10660 2004-11-22 Miguel de Icaza <miguel@ximian.com>
10662 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10665 * NumericUpDown.cs: Added new implementation.
10666 * UpDownBase.cs: Added new implementation.
10668 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10671 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10674 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10677 2004-11-21 Miguel de Icaza <miguel@ximian.com>
10679 * Timer.cs (Dispose): Should call the base dispose when
10682 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
10684 * ScrollBar.cs: updates thumb position when max, min or increment
10687 2004-11-21 Ravindra <rkumar@novell.com>
10689 * ListView.cs: Implemented item selection, activation and
10690 column header style. Fixed properties to do a redraw, if
10691 required. Added support for MouseHover, DoubleClick, KeyDown
10692 and KeyUp event handling and some minor fixes.
10693 * ListViewItem.cs: Fixed constructor.
10694 * ThemeWin32Classic.cs: Improved drawing for ListView.
10696 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
10698 * ThemeWin32Classic.cs: initial listbox drawing code
10699 * DrawMode.cs: new enumerator
10700 * ListControl.cs: stubbed class
10701 * ListBox.cs: initial implementation
10702 * Theme.cs: new methods definitions
10703 * SelectionMode.cs: new enumerator
10705 2004-11-17 Peter Bartok <pbartok@novell.com>
10707 * XplatUIWin32.cs: Added double-click events to the class style
10708 * Control.cs (WndProc):
10709 - Added handling of click-count to MouseDown/ MouseUp events.
10710 - Added handling of middle and right mouse buttons
10711 - Removed old debug code
10713 2004-11-17 Jackson Harper <jackson@ximian.com>
10715 * XplatUIX11.cs: Use the new Mono.Unix namespace.
10717 2004-11-17 Ravindra <rkumar@novell.com>
10719 * ListView.cs: Added event handling for MouseMove/Up/Down.
10720 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10721 * ThemeWin32Classic.cs: We need to clear the graphics context and
10722 draw column header in a proper state.
10725 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
10727 * Menu.cs: fixes signature
10729 2004-11-16 Peter Bartok <pbartok@novell.com>
10731 * XplatUIX11.cs (GetMessage): Implemented generation of
10732 double click mouse messages
10734 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
10736 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10739 2004-11-11 Peter Bartok <pbartok@novell.com>
10741 * HandleData.cs: Added Visible property
10742 * XplatUIX11.cs (IsVisible): Now uses Visible property from
10744 * XplatUIX11.cs: Removed old debug leftovers
10745 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10746 * Control.cs (WndProc): Removed old debug leftovers,
10747 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10748 needed WM_SIZE handling
10750 2004-11-11 Jackson Harper <jackson@ximian.com>
10752 * OwnerDrawPropertyBag.cs:
10753 * TreeViewImageIndexConverter.cs: Initial implementation
10755 2004-11-10 Jackson Harper <jackson@ximian.com>
10757 * ThemeWin32Classic.cs:
10758 * TabControl.cs: instead of moving tabs by the slider pos just
10759 start drawing at the tab that is offset by the slider. This way
10760 scrolling always moves by exactly one tab.
10762 2004-11-10 Jackson Harper <jackson@ximian.com>
10764 * TabControl.cs: You can only scroll left when the slider has
10765 already ben moved right.
10767 2004-11-10 Jackson Harper <jackson@ximian.com>
10769 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10772 2004-11-10 Jackson Harper <jackson@ximian.com>
10774 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10777 2004-11-09 Jackson Harper <jackson@ximian.com>
10779 * TabControl.cs (CalcXPos): New helper method so we can determine
10780 the proper place to start drawing vertical tabs.
10781 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10783 2004-11-09 Jackson Harper <jackson@ximian.com>
10785 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10786 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10787 and Bottom, left and right are illegal values for this and
10788 multiline is enabled when the alignment is set to left or right.
10789 (DrawTab): Each alignment block should draw the text itself now
10790 because Left requires special love. Also add rendering for Left
10793 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
10795 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10796 does not destroy the windows, removes debugging messages
10798 2004-11-09 jba <jba-mono@optusnet.com.au>
10800 * ThemeWin32Classic.cs
10801 (DrawButtonBase): Fix verticle text rect clipping in windows
10802 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10803 rendering and incorrect text rect clipping
10804 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10805 rendering and incorrect text rect clipping
10807 2004-11-08 Jackson Harper <jackson@ximian.com>
10809 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10810 bottom when they are bottom aligned so the bottoms of the tabs get
10812 * TabControl.cs (DropRow): Move rows up instead of down when the
10813 tab control is bottom aligned.
10815 2004-11-08 13:59 pbartok
10818 - Added handling for various window styles
10819 - Added handling for popup windows
10820 - Added SetTopmost handling
10822 2004-11-08 13:55 pbartok
10825 - Added argument to SetTopmost method
10826 - Fixed broken ClientToScreen function
10828 2004-11-08 13:53 pbartok
10830 * XplatUIStructs.cs:
10831 - Added missing WS_EX styles
10833 2004-11-08 13:53 pbartok
10835 * XplatUI.cs, XplatUIDriver.cs:
10836 - Added argument to SetTopmost
10838 2004-11-08 13:52 pbartok
10841 - Added XSetWindowAttributes structure
10842 - Improved XWindowAttributes structure
10843 - Added SetWindowValuemask enum
10844 - Added window creation arguments enum
10845 - Added gravity enum
10846 - Added Motif hints structure
10847 - Added various Motif flags and enums
10848 - Added PropertyMode enum for property functions
10850 2004-11-08 13:50 pbartok
10853 - Fixed arguments for updated SetTopmost method
10855 2004-11-08 13:49 pbartok
10858 - Fixed arguments for updated SetTopmost function
10859 - Fixed usage of PointToClient
10861 2004-11-08 13:44 pbartok
10864 - Added Clipping of children and siblings
10866 2004-11-08 13:41 pbartok
10869 - Removed SetMenuBarWindow call. We do this in Form.cs
10871 2004-11-08 13:40 jackson
10873 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10874 scrolling jimmi in the correct location with bottom aligned tabs
10876 2004-11-08 13:36 pbartok
10878 * ContainerControl.cs:
10879 - Implemented BindingContext
10880 - Implemented ParentForm
10882 2004-11-08 12:46 jackson
10884 * TabControl.cs: Put bottom rendered tabs in the right location
10886 2004-11-08 07:15 jordi
10888 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10891 2004-11-05 17:30 jackson
10893 * TabControl.cs: When selected tabs are expanded make sure they
10894 don't go beyond the edges of the tab control
10896 2004-11-05 14:57 jackson
10898 * TabControl.cs: Reset show_slider so if the control is resized to
10899 a size where it is no longer needed it's not displayed anymore
10901 2004-11-05 13:16 jackson
10903 * TabControl.cs: Make tab pages non visible when added to the
10906 2004-11-05 12:42 jackson
10908 * TabControl.cs: Implement SizeMode.FillToRight
10910 2004-11-05 12:16 jackson
10912 * Control.cs: Do not call CreateHandle if the handle is already
10915 2004-11-05 11:46 jackson
10917 * TabControl.cs: Remove superflous call to CalcTabRows
10919 2004-11-05 09:07 jackson
10921 * XplatUIX11.cs: Update for Mono.Posix changes
10923 2004-11-05 07:00 ravindra
10925 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
10928 2004-11-04 22:47 jba
10930 * ThemeWin32Classic.cs:
10931 - Fix Button rendering for FlatStyle = Flat or Popup
10932 - Fix RadioButton and CheckBox rendering when Appearance = Button
10933 (normal and flatstyle).
10934 - Correct outer rectangle color when drawing focus rectangle
10935 - Adjust button bounds to be 1 px smaller when focused
10936 - Make button not draw sunken 3d border when pushed (windows compat)
10937 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
10938 - Offset the text in RadioButton and Checkbox when being rendered as
10940 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
10942 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
10943 - Fixed disabled text rendering for normally rendered radiobuttons
10945 2004-11-04 10:26 jackson
10947 * TabControl.cs: Recalculate tab rows when resizing
10949 2004-11-04 07:47 jordi
10951 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
10952 collection completion, drawing issues, missing features
10954 2004-11-04 05:03 ravindra
10957 - We need to recalculate the Thumb area when
10958 LargeChange/maximum/minimum values are changed.
10959 - We set the 'pos' in UpdatePos() method to minimum, if it's less
10960 than minimum. This is required to handle the case if large_change is
10961 more than max, and use LargeChange property instead of large_change
10963 - We return max+1 when large_change is more than max, like MS does.
10965 2004-11-04 04:29 ravindra
10967 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
10968 - Changed default value signatures (prefixed all with ListView).
10969 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
10971 - Fixed calculations for ListViewItem and implemented Clone()
10974 2004-11-04 04:26 ravindra
10976 * Theme.cs, ThemeWin32Classic.cs:
10977 - Changed default ListView values signatures (prefixed all with
10979 - Fixed default size values for VScrollBar and HScrollBar.
10980 - Fixed DrawListViewItem method.
10982 2004-11-04 04:05 ravindra
10984 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
10986 2004-11-04 04:04 ravindra
10988 * ImageList.cs: Implemented the missing overload for Draw method.
10990 2004-11-03 19:29 jackson
10992 * TabControl.cs: Handle dropping rows on selection properly
10994 2004-11-03 11:59 jackson
10996 * TabControl.cs: remove debug code
10998 2004-11-03 11:52 jackson
11000 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11001 the scrolly widgerywoo
11003 2004-11-02 13:52 jackson
11005 * TabControl.cs: Resize the tab pages and tabs when the tab control
11008 2004-11-02 13:40 jackson
11010 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11011 selected tab to the bottom
11013 2004-11-02 13:39 jackson
11015 * TabPage.cs: Store the tab pages row
11017 2004-11-02 12:33 jordi
11019 * MenuItem.cs: fixes handle creation
11021 2004-11-02 11:42 jackson
11023 * TabControl.cs: signature fix
11025 2004-11-02 08:56 jackson
11027 * TabControl.cs: Calculate whether the tab is on an edge properly.
11028 Remove top secret debugging code
11030 2004-11-01 19:57 jackson
11032 * TabControl.cs: Add click handling, and proper sizing
11034 2004-11-01 19:47 jackson
11036 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11039 2004-11-01 19:39 jackson
11041 * TabPage.cs: add internal property to store the bounds of a tab
11044 2004-10-30 04:23 ravindra
11046 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11049 2004-10-30 04:21 ravindra
11051 * ListView.cs, ListViewItem.cs: Added support for scrolling and
11052 fixed calculations.
11054 2004-10-30 03:06 pbartok
11057 - Removed extension of DllImported libs
11059 2004-10-29 09:55 jordi
11061 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11062 navigation, itemcollection completion, menu fixes
11064 2004-10-27 22:58 pbartok
11067 - Now throws a nice error message when no X display could be opened
11069 2004-10-26 13:51 jordi
11071 * ListView.cs: removes warning
11073 2004-10-26 03:55 ravindra
11075 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11076 ThemeWin32Classic.cs: Some formatting for my last checkins.
11078 2004-10-26 03:36 ravindra
11080 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11081 control and default values.
11083 2004-10-26 03:35 ravindra
11085 * Theme.cs: Added some default values for ListView control.
11087 2004-10-26 03:33 ravindra
11089 * ToolBar.cs: ToolBar should use the user specified button size, if
11090 there is any. Added a size_specified flag for the same.
11092 2004-10-26 03:33 ravindra
11094 * ColumnHeader.cs: Added some internal members and calculations for
11097 2004-10-26 03:32 ravindra
11099 * ListViewItem.cs: Calculations for ListViewItem.
11101 2004-10-26 03:31 ravindra
11103 * ListView.cs: Added some internal members and calculations for
11106 2004-10-22 13:31 jordi
11108 * MenuAPI.cs: speedup menus drawing
11110 2004-10-22 13:16 jackson
11112 * XplatUIX11.cs: Make sure to update exposed regions when adding an
11115 2004-10-22 11:49 jackson
11119 2004-10-22 11:41 jackson
11121 * Control.cs: Check to see if the window should have its background
11122 repainted by X when drawing.
11124 2004-10-22 11:31 jackson
11126 * XplatUIX11.cs: When invalidating areas only use XClearArea if
11127 clear is true, this way we do not get flicker from X repainting the
11130 2004-10-22 11:28 jackson
11132 * XEventQueue.cs: Queue properly
11134 2004-10-21 09:38 jackson
11136 * XEventQueue.cs: Fix access modifier
11138 2004-10-21 09:36 jackson
11140 * XEventQueue.cs: Don't loose messages
11142 2004-10-21 09:22 jackson
11144 * XEventQueue.cs: Don't loose messages
11146 2004-10-20 04:15 jordi
11148 * BootMode.cs: enum need it by SystemInfo
11150 2004-10-19 21:58 pbartok
11153 - Small sanity check
11155 2004-10-19 21:56 pbartok
11158 - Added private FormParentWindow class which acts as the container
11159 for our form and as the non-client area where menus are drawn
11160 - Added/Moved required tie-ins to Jordi's menus
11161 - Fixed/Implemented the FormStartPosition functionality
11163 2004-10-19 21:52 pbartok
11166 - Removed unneeded locals
11167 - Added code to all size and location properties to understand and
11168 deal with the parent container of Form
11170 2004-10-19 21:33 pbartok
11173 - Fixed to deal with new Form subclasses for menus
11175 2004-10-19 17:48 jackson
11177 * XEventQueue.cs: commit correct version of file
11179 2004-10-19 16:50 jackson
11181 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11183 2004-10-19 16:15 jordi
11185 * MenuAPI.cs: MenuBarCalcSize returns the height
11187 2004-10-19 08:31 pbartok
11190 - Added missing call to PreProcessMessage before calling OnXXXKey
11193 2004-10-19 00:04 ravindra
11195 * ToolTip.cs: Fixed constructor.
11197 2004-10-18 09:31 jordi
11199 * MenuAPI.cs: menuitems in menubars do not have shortcuts
11201 2004-10-18 09:26 jordi
11203 * MenuItem.cs: fixes MenuItem class signature
11205 2004-10-18 08:56 jordi
11207 * MenuAPI.cs: prevents windows from showing in the taskbar
11209 2004-10-18 00:28 ravindra
11211 * ToolTip.cs: Suppressed a warning message.
11213 2004-10-18 00:27 ravindra
11215 * Control.cs: Default value of visible property must be true.
11217 2004-10-17 23:19 pbartok
11220 - Complete implementation
11222 2004-10-17 23:19 pbartok
11225 - Added EnableWindow method
11226 - Added SetModal stub
11227 - Added generation of WM_ACTIVATE message (still needs testing)
11228 - Added SetTopMost stub
11229 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11231 2004-10-17 23:17 pbartok
11234 - Removed VirtualKeys to XplatUIStructs
11235 - Implemented SetTopMost method
11236 - Implemented EnableWindow method
11237 - Bugfix in ScreenToClient()
11238 - Bugfixes in ClientToScreen()
11240 2004-10-17 22:51 pbartok
11242 * XplatUIStructs.cs:
11243 - Added WS_EX styles to WindowStyles enumeration
11245 2004-10-17 22:50 pbartok
11247 * XplatUI.cs, XplatUIDriver.cs:
11248 - Added method for enabling/disabling windows
11249 - Added method for setting window modality
11250 - Added method for setting topmost window
11252 2004-10-17 22:49 pbartok
11254 * ThemeWin32Classic.cs:
11255 - Added ToolTip drawing code
11257 2004-10-17 22:49 pbartok
11260 - Added ToolTip abstracts
11262 2004-10-17 22:47 pbartok
11265 - Fixed Form.ControlCollection to handle owner relations
11266 - Added Owner/OwnedForms handling
11267 - Implemented Z-Ordering for owned forms
11268 - Removed unneeded private overload of ShowDialog
11269 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11271 - Fixed Close(), had wrong default
11272 - Added firing of OnLoad event
11273 - Added some commented out debug code for Ownership handling
11275 2004-10-17 22:16 pbartok
11278 - Fixed/implemented flat list of controls
11280 2004-10-17 22:14 pbartok
11283 - Added code to simulate modal dialogs on Win32
11285 2004-10-17 16:11 jordi
11287 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11290 2004-10-17 13:39 jordi
11292 * MenuAPI.cs: menu drawing fixes
11294 2004-10-15 09:10 ravindra
11296 * StructFormat.cs: General Enum.
11298 2004-10-15 09:09 ravindra
11300 * SizeGripStyle.cs: Enum for Form.
11302 2004-10-15 09:08 ravindra
11304 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11305 in Theme for ListView.
11307 2004-10-15 09:06 ravindra
11309 * ColumnHeader.cs: Flushing some formatting changes.
11311 2004-10-15 09:05 ravindra
11313 * ListViewItem.cs: Implemented GetBounds method and fixed coding
11316 2004-10-15 09:03 ravindra
11318 * ListView.cs: Implemented Paint method and fixed coding style.
11320 2004-10-15 07:34 jordi
11322 * MenuAPI.cs: fix for X11
11324 2004-10-15 07:32 ravindra
11326 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11327 - Renamed Paint() method to Draw() for clarity. Also, moved
11328 DrawImage() to OnPaint().
11330 2004-10-15 07:25 ravindra
11332 * CheckBox.cs, RadioButton.cs:
11333 - Removed Redraw (), we get it from ButtonBase.
11334 - Implemented Paint (), to do class specific painting.
11336 2004-10-15 07:16 ravindra
11339 - Redraw () is not virtual now.
11340 - Added an internal virtual method Paint (), so that
11341 derived classes can do their painting on their own.
11342 - Modified OnPaint () to call Paint ().
11344 2004-10-15 06:43 jordi
11346 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11347 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11349 2004-10-15 00:30 ravindra
11352 - MessageBox on windows does not have min/max buttons.
11353 This change in CreateParams fixes this on Windows. We
11354 still need to implement this windowstyle behavior in
11357 2004-10-14 05:14 ravindra
11360 - Changed Redraw () to do a Refresh () always.
11361 - Fixed the MouseMove event handling when mouse is pressed,
11362 ie drag event handling.
11363 - Replaced the usage of ToolBarButton.Pressed property to
11364 ToolBarButton.pressed internal variable.
11366 2004-10-14 05:10 ravindra
11368 * ToolBarButton.cs:
11369 - Added an internal member 'inside' to handle mouse move
11370 with mouse pressed ie mouse drag event.
11371 - Changed 'Pressed' property to return true only when
11372 'inside' and 'pressed' are both true.
11373 - Some coding style love.
11375 2004-10-14 00:17 ravindra
11377 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11380 2004-10-14 00:15 ravindra
11382 * ButtonBase.cs: Redraw () related improvements.
11384 2004-10-14 00:14 ravindra
11386 * MessageBox.cs: Moved InitFormSize () out of Paint method and
11387 removed unnecessary calls to Button.Show () method.
11389 2004-10-13 17:50 pbartok
11393 - Removed destroying of window until we solve the problem of X
11394 destroying the window before us on shutdown
11396 2004-10-13 16:32 pbartok
11399 - Now Redraws on MouseUp for FlatStyle Flat and Popup
11401 2004-10-13 14:18 pbartok
11404 - Added code to destroy the X window
11406 2004-10-13 14:18 pbartok
11409 - Added code to destroy a window
11411 2004-10-13 14:12 pbartok
11414 - Added the Redraw on Resize that got dropped in the last rev
11416 2004-10-13 09:06 pbartok
11418 * ThemeWin32Classic.cs:
11419 - Path from John BouAntoun:
11420 * Fix check rendering (centre correctly for normal style, offset
11421 correctly for FlatStyle).
11422 * Fix border color usage (use backcolor) for FlatStyle.Popup
11423 * Use checkbox.Capture instead of checkbox.is_pressed when
11424 rendering flatstyle states.
11426 2004-10-12 21:48 pbartok
11428 * ThemeWin32Classic.cs:
11429 - Removed all occurences of SystemColors and replaced them with the
11430 matching theme color
11432 2004-10-12 21:41 pbartok
11434 * ThemeWin32Classic.cs:
11435 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11436 him using the function for flatstyle drawing
11437 - Changed functions to use the new version of CPDrawBorder3D
11439 2004-10-12 21:15 pbartok
11442 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11443 match MS documentation. They need to return defined colors if the
11444 passed color matches the configured control color. Thanks to John
11445 BouAntoun for pointing this out.
11447 2004-10-12 20:57 pbartok
11450 - Fix from John BouAntoun: Raise ForeColorChanged event when text
11453 2004-10-12 20:46 pbartok
11456 - Fix from John BouAntoun: Now properly sets the Appearance property
11458 2004-10-12 20:45 pbartok
11460 * ThemeWin32Classic.cs:
11461 - Fixes from John BouAntoun: now handles forecolors and backcolors
11462 for flatstyle rendered controls much better; It also fixes normal
11463 checkbox rendering when pushed or disabled.
11465 2004-10-08 02:50 jordi
11467 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11470 2004-10-07 08:56 jordi
11472 * ThemeWin32Classic.cs: Removes deletion of cached brushes
11474 2004-10-06 03:59 jordi
11476 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11477 XplatUIWin32.cs: removes warnings from compilation
11479 2004-10-05 12:23 jackson
11481 * RadioButton.cs: Fix ctor
11483 2004-10-05 11:10 pbartok
11486 - Partial implementation by Benjamin Dasnois
11488 2004-10-05 10:15 jackson
11490 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11493 2004-10-05 03:07 ravindra
11496 - Removed a private method, Draw ().
11497 - Fixed the ButtonDropDown event handling.
11498 - Fixed MouseMove event handling.
11500 2004-10-05 03:04 ravindra
11502 * ThemeWin32Classic.cs:
11503 - Added DrawListView method and ListViewDefaultSize property.
11504 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11505 - Changed DOS style CRLF to Unix format (dos2unix).
11507 2004-10-05 03:03 ravindra
11510 - Added DrawListView method and ListViewDefaultSize property.
11512 2004-10-05 02:42 ravindra
11514 * ToolBarButton.cs: Added an internal member dd_pressed to handle
11515 clicks on DropDown arrow.
11517 2004-10-04 22:56 jackson
11519 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11520 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11521 Control handle the buffers, derived classes should not have to
11522 CreateBuffers themselves.
11524 2004-10-04 21:20 jackson
11526 * StatusBar.cs: The control handles resizing the buffers now.
11528 2004-10-04 21:18 jackson
11530 * Control.cs: When resizing the buffers should be invalidated. This
11531 should be handled in Control not in derived classes.
11533 2004-10-04 14:45 jackson
11537 2004-10-04 02:14 pbartok
11539 * LeftRightAlignment.cs:
11542 2004-10-04 01:09 jordi
11544 * ThemeWin32Classic.cs: fixes right button position causing right
11545 button not showing on horizontal scrollbars
11547 2004-10-02 13:12 pbartok
11550 - Simplified the Invalidate method by using an X call instead of
11551 generating the expose ourselves
11552 - Added an expose when the window background is changed
11553 - Implemented ClientToScreen method
11555 2004-10-02 13:08 pbartok
11558 - Added Win32EnableWindow method (test for implementing modal
11560 - Added ClientToScreen method and imports
11562 2004-10-02 13:07 pbartok
11564 * XplatUI.cs, XplatUIDriver.cs:
11565 - Added ClientToScreen coordinate translation method
11567 2004-10-02 13:06 pbartok
11569 * KeyPressEventArgs.cs:
11570 - Fixed access level for constructor
11572 2004-10-02 13:06 pbartok
11575 - Changed access level for the window_collection hash table
11577 2004-10-02 13:05 pbartok
11580 - Added KeyPreview property
11581 - Added Menu property (still incomplete, pending Jordi's menu work)
11582 - Implemented ProcessCmdKey
11583 - Implemented ProcessDialogKey
11584 - Implemented ProcessKeyPreview
11586 2004-10-02 13:02 pbartok
11589 - Added private method to get the Control object from the window
11591 - Implemented ContextMenu property
11592 - Implemented PointToScreen
11593 - Implemented PreProcessMessage
11594 - Implemented IsInputChar
11595 - Implemented IsInputKey
11596 - Implemented ProcessCmdKey
11597 - Completed ProcessKeyEventArgs
11598 - Fixed message loop to call the proper chain of functions on key
11600 - Implemented ProcessDialogChar
11601 - Implemented ProcessDialogKey
11602 - Implemented ProcessKeyMessage
11603 - Implemented ProcessKeyPreview
11604 - Added RaiseDragEvent stub (MS internal method)
11605 - Added RaiseKeyEvent stub (MS internal method)
11606 - Added RaiseMouseEvent stub (MS Internal method)
11607 - Added RaisePaintEvent stub (MS Internal method)
11608 - Added ResetMouseEventArgs stub (MS Internal method)
11609 - Implemented RtlTranslateAlignment
11610 - Implemented RtlTranslateContent
11611 - Implemented RtlTranslateHorizontal
11612 - Implemented RtlTranslateLeftRight
11613 - Added generation of KeyPress event
11615 2004-10-02 05:57 ravindra
11617 * ListViewItem.cs: Added attributes.
11619 2004-10-02 05:32 ravindra
11621 * ListView.cs: Added attributes.
11623 2004-10-01 11:53 jackson
11625 * Form.cs: Implement the Close method so work on MessageBox can
11628 2004-09-30 14:06 pbartok
11633 2004-09-30 11:34 jackson
11635 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11637 2004-09-30 07:26 ravindra
11639 * ListViewItemConverter.cs: Converter for ListViewItem.
11641 2004-09-30 07:26 ravindra
11643 * SortOrder.cs: Enum for ListView control.
11645 2004-09-30 07:25 ravindra
11647 * ColumnHeader.cs: Supporting class for ListView control.
11649 2004-09-30 07:24 ravindra
11651 * ListView.cs, ListViewItem.cs: Initial implementation.
11653 2004-09-30 07:20 ravindra
11655 * ItemActivation.cs: Enum for ListView Control.
11657 2004-09-29 20:29 pbartok
11660 - Added lookup of pixel value for background color; tries to get a
11661 color 'close' to the requested color, it avoids having to create a
11662 colormap. Depending on the display this could mean the used color
11663 is slightly off the desired color. Might have to change it to a more
11664 resource intensive colormap approach, but it will work as a
11665 workaround to avoid red screens.
11667 2004-09-29 14:27 jackson
11669 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11671 2004-09-28 12:44 pbartok
11673 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11674 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11675 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11676 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11677 TrackBar.cs, VScrollBar.cs:
11678 - Streamlined Theme interfaces:
11679 * Each DrawXXX method for a control now is passed the object for
11680 the control to be drawn in order to allow accessing any state the
11681 theme might require
11683 * ControlPaint methods for the theme now have a CP prefix to avoid
11684 name clashes with the Draw methods for controls
11686 * Every control now retrieves it's DefaultSize from the current
11689 2004-09-28 12:17 jackson
11691 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11694 2004-09-24 14:57 jackson
11696 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11697 Gives us a nice little performance boost.
11699 2004-09-24 12:02 jackson
11701 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11702 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11703 Control and supporting classes. Initial checkin
11705 2004-09-23 13:08 jackson
11707 * Form.cs: Temp build fixage
11709 2004-09-23 01:39 ravindra
11711 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11712 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11713 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11714 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11715 EventHandlers needed by ListView Control.
11717 2004-09-22 14:12 pbartok
11719 * ScrollableControl.cs:
11720 - Implemented DockPadding property
11721 - Implemented AutoScroll property
11722 - Implemented AutoScrollMargin property
11723 - Implemented AutoScrollMinSize property
11724 - Implemented AutoScrollPosition property
11725 - Implemented DisplayRectangle property (still incomplete)
11726 - Implemented CreateParams property
11727 - Implemented HScroll property
11728 - Implemented VScroll property
11729 - Implemented OnVisibleChanged property
11731 2004-09-22 14:09 pbartok
11734 - Added Form.ControllCollection class
11735 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11736 RemoveOwnedForm (still incomplete, missing on-top and common
11737 minimize/maximize behaviour)
11738 - Added StartPosition property (still incomplete, does not use when
11740 - Added ShowDialog() methods (still incomplete, missing forcing the
11743 2004-09-22 14:05 pbartok
11746 - Added message loop for modal dialogs
11748 2004-09-22 14:02 pbartok
11751 - Fixed wrong types for events
11753 2004-09-22 14:00 pbartok
11755 * Shortcut.cs, FormWindowState.cs:
11756 - Fixed wrong values
11758 2004-09-22 12:01 jackson
11760 * Control.cs: Text is never null
11762 2004-09-20 22:14 pbartok
11765 - Fixed accessibility level for Idle handler
11767 2004-09-20 18:54 jackson
11769 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11770 XplatUIX11.cs: New message loop that uses poll so we don't get a
11773 2004-09-17 10:43 pbartok
11776 - Fixed behaviour of arrow buttons. Now properly behaves like
11777 Buttons (and like Microsoft's scrollbar arrow buttons)
11779 2004-09-17 10:14 pbartok
11782 - Added missing release of keyboard/mouse capture
11784 2004-09-17 06:18 jordi
11786 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11787 Theme.cs: Very early menu support
11789 2004-09-16 17:45 pbartok
11792 - Fixed sending a window to the front
11793 - Added overload for SetWindowPos to avoid casting
11795 2004-09-16 17:44 pbartok
11798 - Added SendToBack and BringToFront methods
11800 2004-09-16 07:00 ravindra
11802 * Copyright: Added Novell URL.
11804 2004-09-16 07:00 ravindra
11806 * ToolBar.cs: Invalidate should be done before redrawing.
11808 2004-09-15 21:19 ravindra
11810 * ColumnHeaderStyle.cs: Enum for ListView Control.
11812 2004-09-15 21:18 ravindra
11814 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11817 2004-09-13 18:26 jackson
11819 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11822 2004-09-13 18:13 jackson
11824 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11825 a second thread and post messages into the main threads message
11826 queue. This makes timing much more consistent. Both win2K and XP
11827 have a minimum timer value of 15 milliseconds, so we now do this
11830 2004-09-13 15:18 pbartok
11832 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11834 - Added Z-Ordering methods
11836 2004-09-13 10:56 pbartok
11839 - Fixed #region names
11840 - Moved properties and methods into their proper #regions
11842 2004-09-13 10:51 pbartok
11845 - Added Accept and CancelButton properties
11846 - Added ProcessDialogKey() method
11848 2004-09-13 08:18 pbartok
11850 * IWindowTarget.cs:
11853 2004-09-10 21:50 pbartok
11856 - Added DoDragDrop() [incomplete]
11857 - Properly implemented 'Visible' handling
11858 - Added SetVisibleCore()
11859 - Implemented FindChildAtPoint()
11860 - Implemented GetContainerControl()
11861 - Implemented Hide()
11863 2004-09-10 19:28 pbartok
11866 - Moved methods into their appropriate #regions
11867 - Reordered methods within regions alphabetically
11869 2004-09-10 18:57 pbartok
11871 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11872 - Added method to retrieve text from window
11874 2004-09-10 18:56 pbartok
11877 - Moved some internal functions into the internal region
11878 - Implemented FontHeight
11879 - Implemented RenderRightToLeft
11880 - Implemented ResizeRedraw
11881 - Implemented ShowFocusCues
11882 - Implemented ShowKeyboardCues
11883 - Implemented FromChildHandle
11884 - Implemented FromHandle
11885 - Implemented IsMnemonic
11886 - Implemented ReflectMessage
11887 - All public and protected Static Methods are now complete
11889 2004-09-10 16:54 pbartok
11892 - Implemented remaining missing public instance properties
11893 - Alphabetized some out of order properties
11895 2004-09-10 05:51 ravindra
11897 * PictureBox.cs: Added a check for null image.
11899 2004-09-10 00:59 jordi
11901 * GroupBox.cs: remove cvs tag
11903 2004-09-09 05:25 ravindra
11905 * ToolBar.cs: Make redraw accessible from ToolBarButton.
11907 2004-09-09 05:23 ravindra
11909 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
11912 2004-09-09 02:28 pbartok
11914 * ThemeWin32Classic.cs:
11915 - Improve disabled string look
11917 2004-09-09 01:15 jordi
11919 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
11922 2004-09-08 23:56 ravindra
11924 * ItemBoundsPortion.cs: It's enum, not a class!
11926 2004-09-08 23:47 ravindra
11928 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
11931 2004-09-08 21:13 ravindra
11933 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
11936 2004-09-08 21:03 ravindra
11938 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
11941 2004-09-08 21:01 ravindra
11943 * ScrollableControl.cs: Removed unreachable code.
11945 2004-09-08 06:45 jordi
11947 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
11949 2004-09-08 01:00 jackson
11951 * XplatUIX11.cs: Only run the timers when updating the message
11952 queue. This effectively gives X messages a higher priority then
11953 timer messages. Timers still need love though
11955 2004-09-07 14:01 jackson
11957 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
11958 this for us and the handle is no longer valid.
11960 2004-09-07 13:59 jackson
11962 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
11963 loop that manages to not crash. TODO: Add poll and cleanup timers
11965 2004-09-07 11:12 jordi
11967 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
11969 2004-09-07 03:40 jordi
11971 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
11972 fixes, methods, multiple links
11974 2004-09-06 06:55 jordi
11976 * Control.cs: Caches ClientRectangle rectangle value
11978 2004-09-05 02:03 jordi
11980 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
11983 2004-09-04 11:10 jordi
11985 * Label.cs: Refresh when font changed
11987 2004-09-02 16:24 pbartok
11990 - Added sanity check to creation of double buffer bitmap
11992 2004-09-02 16:24 pbartok
11995 - Fixed selection of text color
11996 - Fixed handling of resize event; now properly recreates double
11998 - Added missing assignment of TextAlignment
11999 - Added proper default for TextAlignment
12001 2004-09-02 14:26 pbartok
12004 - Added missing RadioButton.RadioButtonAccessibleObject class
12006 2004-09-02 14:26 pbartok
12009 - Added missing Control.ControlAccessibleObject class
12010 - Started to implement Select()ion mechanisms, still very incomplete
12012 2004-09-02 14:25 pbartok
12014 * AccessibleObject.cs:
12015 - Added missing methods
12017 2004-09-02 14:23 pbartok
12019 * AccessibleNavigation.cs, AccessibleSelection.cs:
12022 2004-09-02 10:32 jordi
12024 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12025 pool for pens, brushes, and hatchbruses
12027 2004-09-01 15:30 jackson
12029 * StatusBar.cs: Fix typo
12031 2004-09-01 14:44 pbartok
12036 2004-09-01 14:39 pbartok
12038 * Button.cs, RadioButton.cs:
12039 - Functional initial check-in
12041 2004-09-01 14:01 pbartok
12044 - Added missing default
12045 - Added missing region mark
12047 2004-09-01 09:10 jordi
12049 * Label.cs: fixes method signatures, new methods, events, fixes
12052 2004-09-01 07:19 jordi
12054 * Control.cs: Init string variables with an empty object
12056 2004-09-01 04:20 jordi
12058 * Control.cs: fires OnFontChanged event
12060 2004-08-31 20:07 pbartok
12063 - Enabled display of strings
12065 2004-08-31 20:05 pbartok
12068 - Added (partial) implementation of DialogResult; rest needs to be
12069 implemented when the modal loop code is done
12071 2004-08-31 19:55 pbartok
12074 - Fixed to match the removal of the needs_redraw concept
12076 2004-08-31 19:55 pbartok
12079 - Removed the rather odd split between 'needs redraw' and redrawing
12080 - Now handles the events that require regeneration (ambient
12081 properties and size)
12083 2004-08-31 19:41 pbartok
12086 - Added firing of BackColorChanged event
12087 - Added TopLevelControl property
12088 - Fixed handling of WM_ERASEBKGRND message
12090 2004-08-31 12:49 pbartok
12096 2004-08-31 12:48 pbartok
12099 - Finished (famous last words)
12101 2004-08-31 04:35 jordi
12103 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12104 scrolling bugs, adds new methods
12106 2004-08-30 14:42 pbartok
12109 - Implemented CheckBox drawing code
12111 2004-08-30 14:42 pbartok
12114 - Made Redraw() and CheckRedraw() virtual
12115 - Improved mouse up/down/move logic to properly track buttons
12117 2004-08-30 09:44 pbartok
12120 - Updated to fix broken build. Not complete yet.
12122 2004-08-30 09:28 pbartok
12127 2004-08-30 09:17 pbartok
12132 2004-08-27 16:12 ravindra
12134 * ToolBarButton.cs: Added TypeConverter attribute.
12136 2004-08-27 16:07 ravindra
12138 * ImageIndexConverter.cs: Implemented.
12140 2004-08-27 14:17 pbartok
12143 - Removed unneeded stack vars
12144 - First attempt to fix sizing issues when layout is suspended
12146 2004-08-25 15:35 jordi
12148 * ScrollBar.cs: more fixes to scrollbar
12150 2004-08-25 14:04 ravindra
12152 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12153 Added the missing divider code and grip for ToolBar Control.
12155 2004-08-25 13:20 pbartok
12158 - Control now properly passes the ambient background color to child
12161 2004-08-25 13:20 jordi
12163 * ScrollBar.cs: small bug fix regarding bar position
12165 2004-08-25 12:33 pbartok
12168 - Now only calls SetTimer or KillTimer if the enabled state has
12171 2004-08-25 12:33 pbartok
12174 - Fixed timer handling, now seems to work
12175 - Improved error message for window creation
12177 2004-08-25 12:32 pbartok
12180 - Fixed generation of MouseUp message
12182 2004-08-25 12:29 jordi
12184 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12185 and fixes for progressbar
12187 2004-08-24 18:43 ravindra
12189 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12190 in ToolBar control.
12192 2004-08-24 17:15 pbartok
12196 - Added missing events
12199 2004-08-24 17:14 pbartok
12201 * StatusBar.cs, PictureBox.cs:
12202 - Now uses Control's CreateParams
12204 2004-08-24 16:36 pbartok
12207 - Fixed background color handling
12208 - Fixed sending of enter/leave events on a grab
12210 2004-08-24 16:35 pbartok
12213 - Refined definitions for CrossingEvent
12215 2004-08-24 12:37 jordi
12217 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12218 formmating, methods signature, and adds missing events
12220 2004-08-24 12:24 jordi
12222 * Control.cs: fire OnEnabledChanged event
12224 2004-08-24 11:17 pbartok
12227 - Implemented SetTimer() and KillTimer()
12229 2004-08-24 11:16 pbartok
12232 - Now uses Remove instead of Add to kill the timer
12234 2004-08-24 10:16 jackson
12236 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12237 picture boxes in the theme now. Draw picture box borders and obey
12240 2004-08-24 05:49 jackson
12242 * Timer.cs: Remove top secret debugging code
12244 2004-08-24 05:34 jackson
12246 * PictureBox.cs: Temp hack to make picture boxes draw their full
12249 2004-08-24 05:29 jackson
12251 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12252 XplatUIX11.cs: Move timers to the driver level. On X they are
12253 queued by the driver and checked on idle.
12255 2004-08-24 01:07 jackson
12257 * XplatUIX11.cs: Use a queue for async messages instead of passing
12258 them as ClientMessages since that was totally broken. Also simply
12259 check for events and return an idle message if none are found. This
12260 gives us an idle handler, and prevents deadlocking when no messages
12263 2004-08-23 18:19 ravindra
12265 * XplatUIWin32.cs: Removed the unwanted destructor.
12267 2004-08-23 17:27 pbartok
12270 - Finishing touches. Works now, just needs some optimizations.
12272 2004-08-23 16:53 jordi
12274 * ScrollBar.cs: small fix
12276 2004-08-23 16:45 pbartok
12279 - Removed debug output
12282 2004-08-23 16:43 jordi
12284 * ScrollBar.cs: [no log message]
12286 2004-08-23 16:10 pbartok
12289 - Fixed handling of WM_CLOSE message
12290 - Removed debug output
12292 2004-08-23 16:09 pbartok
12295 - Added handling of Idle event
12296 - Added handling of form closing
12297 - Fixed reporting of MessageLoop property
12298 - Removed some unneeded code, should provide a bit of a speedup
12300 2004-08-23 15:22 pbartok
12303 - Added InitLayout() method
12304 - Added code to properly perform layout when Anchor or Dock property
12306 - Changed 'interpretation' of ResumeLayout. MS seems to have a
12307 LAMESPEC, tried to do it in a way that makes sense
12309 2004-08-23 14:10 jordi
12311 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12312 properties and methods
12314 2004-08-23 13:55 pbartok
12317 - Properly fixed Jordi's last fix
12318 - Now uses Cursor's Position property instead of calling XplatUI
12321 2004-08-23 13:44 jordi
12323 * PaintEventHandler.cs: Adding missing attribute
12325 2004-08-23 13:39 pbartok
12328 - Implemented Position property
12330 2004-08-23 13:39 pbartok
12332 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12333 - Added method to move mouse cursor
12335 2004-08-23 13:39 pbartok
12338 - Fixed setting of background color
12339 - Added method to move mouse cursor
12341 2004-08-23 13:16 jordi
12343 * Control.cs: avoids null exception
12345 2004-08-22 17:46 jackson
12347 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12350 2004-08-22 17:40 jackson
12352 * XplatUIX11.cs: Add some missing locks
12354 2004-08-22 15:10 pbartok
12356 * Control.cs, Form.cs:
12357 - Removed OverlappedWindow style from Control, instead it's default
12359 - Made form windows OverlappedWindow by default
12361 2004-08-22 13:34 jackson
12363 * ScrollBar.cs: Update the position through the Value property so
12364 the OnValueChanged event is raised.
12366 2004-08-22 12:04 pbartok
12369 - Added Cursor.cs and UserControl.cs
12371 2004-08-22 12:03 pbartok
12374 - Started implementation, not usable yet
12376 2004-08-22 12:00 pbartok
12379 - Implemented UserControl (complete)
12381 2004-08-21 19:20 ravindra
12383 * ToolBar.cs: Correcting the formatting mess of VS.NET.
12385 2004-08-21 18:49 ravindra
12387 * ToolBar.cs: Probably this completes the missing attributes in
12390 2004-08-21 18:03 ravindra
12392 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12393 Fixed toolbar control signatures.
12395 2004-08-21 16:32 pbartok
12400 2004-08-21 16:30 pbartok
12405 2004-08-21 16:19 pbartok
12407 * Control.cs, Label.cs:
12410 2004-08-21 15:57 pbartok
12413 - Added loads of debug output for development
12414 - Fixed typo in method name
12416 2004-08-21 15:52 pbartok
12418 * ToolBarButtonClickEventArgs.cs:
12419 - Added missing base class
12421 2004-08-21 14:53 pbartok
12424 - Updated to match new GrabWindow signature
12426 2004-08-21 14:51 pbartok
12428 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12429 - Added method to get default display size
12431 2004-08-21 14:23 pbartok
12433 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12434 - Added method to query current grab state
12435 - Added argument to allow confining a grab to a window
12437 2004-08-21 14:22 pbartok
12440 - Added [Flags] attribute so that modifiers can be used in bitwise
12443 2004-08-21 14:21 pbartok
12445 * TrackBar.cs, ScrollBar.cs:
12446 - Replaced direct XplatUI calls with their Control counterpart
12448 2004-08-21 13:32 pbartok
12451 - Implemented Created property
12453 2004-08-21 13:28 pbartok
12456 - Implemented ContainsFocus
12458 2004-08-21 13:26 pbartok
12461 - Implemented CausesValidation
12463 2004-08-21 13:21 pbartok
12466 - Implemented CanFocus
12467 - Implemented CanSelect
12468 - Implemented Capture
12470 2004-08-21 12:35 pbartok
12473 - Fixed bug with Async message handling
12474 - Implemented getting the ModifierKeys
12476 2004-08-21 12:32 jackson
12478 * AsyncMethodResult.cs: Make sure we have the mutex before we
12479 release it. Fixes BeginInvoke on windows
12481 2004-08-21 11:31 pbartok
12483 * XplatUIWin32.cs, XplatUIX11.cs:
12484 - Drivers now return proper mouse state
12486 2004-08-21 10:54 jackson
12488 * Control.cs: Implement EndInvoke
12490 2004-08-21 10:48 jackson
12492 * Timer.cs: Remove unneeded finalizer
12494 2004-08-20 19:52 ravindra
12496 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12497 in mouse event handling in the ToolBar control.
12499 2004-08-20 19:50 ravindra
12501 * ImageList.cs: Changed draw method to use the arguments passed in
12504 2004-08-20 18:58 pbartok
12506 * XplatUIStructs.cs:
12507 - Added private message for async communication
12509 2004-08-20 17:38 ravindra
12511 * Control.cs: Made RightToLeft property virtual and removed a
12514 2004-08-20 14:39 jordi
12516 * ThemeGtk.cs: use style_attach
12518 2004-08-20 14:39 pbartok
12521 - Added jackson's Async code from X11 to Win32
12523 2004-08-20 14:09 pbartok
12526 - Added all new files
12528 2004-08-20 14:09 pbartok
12531 - Added call to set window background color
12533 2004-08-20 14:03 pbartok
12535 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12536 - Added method for setting the window background
12538 2004-08-20 14:02 pbartok
12541 - Added method for setting the background color
12542 - Added handling for erasing the window background
12544 2004-08-20 13:45 jordi
12546 * TrackBar.cs: fixes timer, new properties and methods
12548 2004-08-20 13:34 jackson
12550 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12553 2004-08-20 13:22 jackson
12555 * Timer.cs: Timer Tick events are now handed through Controls Async
12556 mechanism so the callbacks are executed in the same thread as X
12558 2004-08-20 13:19 jackson
12560 * XplatUIDriver.cs: Expose functionality to send async messages
12563 2004-08-20 13:18 jackson
12565 * Control.cs: Implement Begininvoke
12567 2004-08-20 13:14 jackson
12569 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12570 messages through the driver
12572 2004-08-20 13:12 jackson
12574 * XplatUIX11.cs: Lock before all X operations. Also added Async
12575 method functionality through XSendEvent
12577 2004-08-20 13:11 jackson
12579 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12580 This will screw up on 64 bit systems)
12582 2004-08-20 13:10 jackson
12584 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12585 Async messages through X/Win32
12587 2004-08-19 19:39 pbartok
12590 - Updated code to match new HandleData.DeviceContext type
12592 2004-08-19 19:38 pbartok
12595 - Made DeviceContext a generic object to allow usage from various
12597 - Added support for queueing Windows messages
12599 2004-08-19 19:37 pbartok
12602 - Added generation of MouseEnter, MouseLeave and MouseHover events
12603 - Added cleanup on EndPaint
12605 2004-08-19 19:17 pbartok
12608 - Added handling of WM_MOUSEHOVER
12609 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12612 2004-08-19 18:55 jordi
12614 * ThemeGtk.cs: fixes button order
12616 2004-08-19 18:12 jordi
12618 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12620 2004-08-19 17:09 pbartok
12623 - Added Right property
12624 - Added RightToLeft property
12626 2004-08-19 16:27 jordi
12628 * ThemeGtk.cs: experimental GTK theme support
12630 2004-08-19 16:26 jordi
12632 * ITheme.cs, Theme.cs: move themes from an interface to a class
12634 2004-08-19 16:25 jordi
12636 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12639 2004-08-19 16:04 pbartok
12642 - Added colormap basics
12643 - Added a way to re-initialize with a different display handle
12644 - Fixed setting of the window background color
12645 - Added various X11 imports related to colors and colormaps
12647 2004-08-19 15:51 pbartok
12650 - Removed packing hints (Paolo suggested this a while back)
12651 - fixed colormap type
12652 - Added default Atom types
12653 - Added Screen and color structs and enums
12655 2004-08-19 15:39 pbartok
12658 - Added missing Draw() method
12659 - Added missing RecreateHandle event
12661 2004-08-19 15:30 pbartok
12664 - Added handling of WM_CLOSE
12666 2004-08-18 13:16 jordi
12668 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12671 2004-08-18 09:56 jordi
12673 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12675 2004-08-17 15:31 ravindra
12677 * SWF.csproj: Updated project.
12679 2004-08-17 15:25 pbartok
12682 - Drawing improvement; don't call UpdateBounds if we are not visible
12683 (or have been minimized)
12685 2004-08-17 15:24 pbartok
12688 - Finished IsVisible
12689 - Added Win32GetWindowPlacement
12691 2004-08-17 15:08 jackson
12693 * Panel.cs: Initial checkin of the Panel
12695 2004-08-17 14:25 pbartok
12698 - Fixed broken handling of default window sizes
12700 2004-08-17 13:29 jackson
12702 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12703 has a large startup time.
12705 2004-08-17 10:25 jackson
12707 * HandleData.cs: union areas properly
12709 2004-08-17 10:12 jackson
12711 * HandleData.cs: union areas properly
12713 2004-08-16 20:00 ravindra
12715 * ToolBar.cs, ToolBarButton.cs: Added attributes.
12717 2004-08-16 18:48 ravindra
12719 * ToolBar.cs: Added attributes.
12721 2004-08-16 17:17 ravindra
12723 * SWF.csproj: Updated project.
12725 2004-08-16 17:16 jackson
12727 * XplatUIX11.cs: Check for more expose events before sending a
12728 WM_PAINT so they can all be grouped together. This makes dragging a
12729 window across another window redraw in a sane way.
12731 2004-08-16 15:47 pbartok
12734 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12735 support OnMouseEnter/Leave()
12736 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12739 2004-08-16 15:46 pbartok
12741 * XplatUIStructs.cs, XplatUIX11.cs:
12742 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12743 OnMouseEnter/Leave()
12745 2004-08-16 15:34 jackson
12747 * XplatUIX11.cs: Group multiple expose events in HandleData, make
12748 sure messages get the message field set to WM_NULL if they are not
12751 2004-08-16 15:24 jackson
12753 * HandleData.cs: HandleData is used for storing message information
12756 2004-08-15 17:23 ravindra
12758 * ColorDepth.cs: Added attribute.
12760 2004-08-15 17:23 ravindra
12762 * SWF.csproj: Updated project for ToolBar Control.
12764 2004-08-15 17:20 ravindra
12766 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12767 control and also dos2unix format.
12769 2004-08-15 17:13 ravindra
12771 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12772 ToolBarButtonClickEventArgs.cs,
12773 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12774 ToolBarTextAlign.cs: First Implementation of ToolBar control.
12776 2004-08-15 15:31 pbartok
12779 - First (mostly) working version
12781 2004-08-13 16:15 pbartok
12784 - Fixed Anchor default
12786 2004-08-13 15:43 pbartok
12789 - Changed GetCursorPos signature
12791 2004-08-13 15:42 pbartok
12793 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12794 - Changed signature for GetCursorPos
12796 2004-08-13 15:25 pbartok
12800 - Fixed resizing/exposure handling
12802 2004-08-13 15:22 jordi
12804 * ThemeWin32Classic.cs: removes redundant code and fixes issues
12807 2004-08-13 14:55 jordi
12809 * TrackBar.cs: change from wndproc to events
12811 2004-08-13 13:00 jordi
12813 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12814 XplatUIX11.cs: implements PointToClient (ScreenToClient)
12816 2004-08-13 12:53 pbartok
12819 - Changed GetWindowPos to also provide client area size
12820 - Fixed broken prototypes for several win32 functions
12822 2004-08-13 12:53 pbartok
12824 * XplatUI.cs, XplatUIDriver.cs:
12825 - Changed GetWindowPos to also provide client area size
12827 2004-08-13 12:52 pbartok
12830 - Added generation of WM_POSCHANGED
12831 - Changed GetWindowPos to also provide client area size
12833 2004-08-13 12:52 pbartok
12836 - Added Dispose() and destructor
12837 - Fixed resizing and bounds calculation
12839 - Added memory savings for invisible windows
12841 2004-08-13 12:46 jordi
12843 * TrackBar.cs: adds timer and grap window
12845 2004-08-13 10:25 jackson
12847 * Timer.cs: SWF Timer
12849 2004-08-12 16:59 pbartok
12851 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12852 - Implemented method to get current mouse position
12854 2004-08-12 14:29 jordi
12856 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12857 enhancement, fix mouse problems, highli thumb, etc
12859 2004-08-12 13:31 pbartok
12862 - Fixed Anchoring bugs
12864 2004-08-12 13:01 jackson
12866 * StatusBar.cs: Don't forget things
12868 2004-08-12 12:54 jackson
12870 * ThemeWin32Classic.cs: Handle owner draw status bars
12872 2004-08-12 12:54 jackson
12874 * StatusBar.cs: Implement missing properties, events, and methods.
12875 Handle mouse clicking
12877 2004-08-12 10:19 jackson
12879 * StatusBarPanelClickEventArgs.cs,
12880 StatusBarPanelClickEventHandler.cs: Classes for handling status
12881 bar panel click events
12883 2004-08-12 10:10 jackson
12885 * Control.cs: Add missing properties
12887 2004-08-12 09:46 pbartok
12889 * BindingsManagerBase.cs:
12890 - Name changed to BindingManagerBase.cs
12892 2004-08-12 09:25 jordi
12894 * ScrollableControl.cs: calls ctrlbase instead of exeception
12896 2004-08-11 16:28 pbartok
12898 * InputLanguageChangingEventArgs.cs:
12899 - Never check in before compiling. Fixes the last check-in
12901 2004-08-11 16:26 pbartok
12903 * InputLanguageChangingEventArgs.cs:
12904 - More signature fixes
12906 2004-08-11 16:20 pbartok
12908 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
12909 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
12910 ImageListStreamer.cs, InputLanguage.cs,
12911 InputLanguageChangedEventArgs.cs,
12912 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
12913 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
12914 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
12915 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12918 2004-08-11 16:16 pbartok
12922 - Added .Net 1.1 method
12924 2004-08-11 15:25 pbartok
12927 - Fixed BindingManagerBase.cs filename
12929 2004-08-11 15:22 pbartok
12931 * BindingManagerBase.cs:
12932 - Was checked in with wrong filename
12934 2004-08-11 14:50 pbartok
12939 2004-08-11 13:41 jordi
12941 * XplatUIWin32.cs: Fixes ClientRect
12943 2004-08-11 13:19 pbartok
12945 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12947 - We had SetWindowPos and MoveWindow to set window positions and
12948 size, removed MoveWindow. We have GetWindowPos, so it made sense to
12949 keep SetWindowPos as matching counterpart
12950 - Added some X11 sanity checking
12952 2004-08-11 12:59 pbartok
12955 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
12956 (It seems that SetBounds is just a front for SetBoundsCore and
12957 SetBoundsCore updates the underlying window system and
12958 UpdateBounds is responsible for updating the variables associated
12959 with the Control and sending the events)
12960 - Major cleanup of Size handling; we now have two sizes, client_size
12961 and bounds. Bounds defines the window with decorations, client_size
12964 2004-08-11 12:55 pbartok
12966 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12967 - Added method to calculate difference between decorated window and
12970 2004-08-11 12:54 pbartok
12973 - Forcing redraw on resize
12975 2004-08-11 11:43 pbartok
12978 - Removed disposing of the actual images when the list is disposed
12980 2004-08-11 09:13 pbartok
12983 - Now properly reparents windows
12985 2004-08-11 08:37 pbartok
12990 2004-08-11 07:47 pbartok
12993 - Rewrote the collection stuff. Might not be as fast now, not
12994 keeping the number of children around and accessible directly, but
12995 it's more straightforward
12997 2004-08-11 07:44 pbartok
12999 * AccessibleObject.cs:
13000 - Fixed to match ControlCollection rewrite
13002 2004-08-11 07:43 pbartok
13005 - Added missing creation of the collection list
13007 2004-08-10 20:08 jackson
13009 * StatusBar.cs: Get the paint message from WndProc
13011 2004-08-10 19:31 jackson
13013 * ThemeWin32Classic.cs: Create Brushes as little as possible
13015 2004-08-10 19:20 jackson
13017 * UICues.cs: Add Flags attribute
13019 2004-08-10 19:19 jackson
13021 * StatusBarPanel.cs: Signature cleanup
13023 2004-08-10 19:10 jackson
13025 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13026 Initial implementation of status bar item drawing
13028 2004-08-10 17:27 jordi
13030 * TrackBar.cs: add missing methods, properties, and restructure to
13033 2004-08-10 16:24 jackson
13035 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13036 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13039 2004-08-10 13:21 jordi
13041 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13042 enhancements and standarize on win colors defaults
13044 2004-08-10 12:52 jackson
13046 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13047 ThemeWin32Classic.cs: Implement DrawItem functionality
13049 2004-08-10 12:47 jordi
13051 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13053 2004-08-10 12:32 jordi
13055 * Control.cs: throw ontextchange event
13057 2004-08-10 11:43 pbartok
13060 - Added more to the still unfinished Dock/Anchor layout code
13062 2004-08-10 11:39 pbartok
13064 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13065 - Added GetWindowPos method
13067 2004-08-10 11:36 pbartok
13070 - Implemented several methods
13072 2004-08-10 09:47 jackson
13074 * TrackBar.cs: Allow control to handle buffering
13076 2004-08-10 09:41 jackson
13078 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13080 2004-08-10 09:24 jackson
13082 * Label.cs, LinkLabel.cs: Let Control handle buffering.
13084 2004-08-10 09:09 jackson
13086 * StatusBar.cs: Let Control handle all the buffering.
13088 2004-08-10 09:08 jackson
13090 * Control.cs: Control will now handle the buffering code, so each
13091 control does not have to implement this.
13093 2004-08-10 08:34 jackson
13095 * XplatUIDriver.cs: Use default colors from the theme
13097 2004-08-09 17:12 pbartok
13100 - Fixed several bugs Ravindra pointed out
13102 2004-08-09 16:11 pbartok
13105 - Added incomplete dock layout code
13106 - Added support for mouse wheel
13108 2004-08-09 16:09 pbartok
13111 - Added handling for middle and right mousebutton
13112 - Added handling for mouse wheel
13113 - Added handling for key state and mouse state and position
13114 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13117 2004-08-09 15:40 jackson
13119 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13120 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13123 2004-08-09 15:37 jackson
13125 * StatusBar.cs: Initial implementation of StatusBar
13127 2004-08-09 15:36 jackson
13129 * ITheme.cs: Add support for drawing status bar and getting status
13132 2004-08-09 15:35 pbartok
13137 2004-08-09 15:34 jackson
13139 * ThemeWin32Classic.cs: Add support for drawing status bar and get
13140 status bar item sizes
13142 2004-08-09 15:21 jackson
13144 * ThemeWin32Classic.cs: Use known colors for default control
13147 2004-08-09 15:12 jackson
13149 * ThemeWin32Classic.cs: Make the default font static, it is static
13150 in control so this doesn't change functionality and creating fonts
13153 2004-08-09 14:56 pbartok
13156 - Added GrabMode enum
13158 2004-08-09 14:55 pbartok
13160 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13161 - Removed Run method, was only required for initial development
13163 2004-08-09 14:51 pbartok
13165 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13166 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13169 2004-08-09 13:48 pbartok
13172 - Fixed default sizing for child windows
13174 2004-08-09 12:56 pbartok
13177 - Added generation of WM_DESTROY message
13178 - Added handling of window manager induced shutdown
13180 2004-08-09 11:31 jackson
13182 * ThemeWin32Classic.cs: New names for control properties
13184 2004-08-09 11:25 jackson
13186 * Control.cs: Use new color names
13188 2004-08-09 11:02 jackson
13190 * XplatUI.cs: Get default window properties from the theme
13192 2004-08-09 11:01 jackson
13194 * ITheme.cs: The theme engine now controls default window
13197 2004-08-09 11:00 jackson
13199 * ThemeWin32Classic.cs: Add default window color properties
13201 2004-08-09 10:17 jackson
13203 * ThemeWin32Classic.cs: Use correct default back color
13205 2004-08-09 10:05 jackson
13207 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13210 2004-08-09 09:56 jackson
13212 * XplatUI.cs: Remove defaults, these are handled by the theme now.
13214 2004-08-09 09:54 jackson
13216 * Control.cs: Get default properties from the theme.
13218 2004-08-09 09:53 jackson
13220 * ITheme.cs: Themes now handle default control properties
13222 2004-08-09 09:53 jackson
13224 * ThemeWin32Classic.cs: Themes now handle default control
13225 properties so coloring will be consistent
13227 2004-08-08 16:54 jordi
13229 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13231 2004-08-08 15:08 jordi
13233 * XplatUIX11.cs: fixes keyboard crash
13235 2004-08-08 13:47 jordi
13237 * Label.cs: add cvs header info
13239 2004-08-08 12:09 jackson
13241 * ThemeWin32Classic.cs: Add pen_buttonface
13243 2004-08-08 11:52 jordi
13245 * Label.cs, LinkLabel.cs: [no log message]
13247 2004-08-08 11:34 jordi
13249 * ThemeWin32Classic.cs: Use Windows Standard Colours
13251 2004-08-07 17:32 jordi
13253 * TrackBar.cs: throw exceptions of invalid enums values
13255 2004-08-07 17:31 jordi
13257 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13260 2004-08-07 16:56 jackson
13262 * HorizontalAlignment.cs: Initial checkin
13264 2004-08-07 13:16 jordi
13266 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13269 2004-08-07 13:05 jordi
13271 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13272 GetSysColor defines
13274 2004-08-06 18:01 pbartok
13276 * ThemeWin32Classic.cs:
13277 - Fixed some rounding issues with float/int
13279 2004-08-06 18:00 jackson
13281 * DockStyle.cs, AnchorStyles.cs:
13283 Add flags and serializable attributes.
13285 2004-08-06 17:46 pbartok
13288 - Implemented GetParent
13290 2004-08-06 17:18 pbartok
13293 - Fixed some rounding issues with float/int
13295 2004-08-06 17:17 pbartok
13297 * X11Structs.cs, XplatUIX11.cs:
13298 - Fixed Refresh and Invalidate
13300 2004-08-06 15:30 pbartok
13302 * Control.cs, X11Structs.cs, XplatUIX11.cs:
13303 - Fixed recursive loop when resizing
13304 - Improved/fixed redrawing on expose messages
13306 2004-08-06 09:53 jordi
13308 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13309 keyboard navigation
13311 2004-08-06 08:02 pbartok
13313 * X11Structs.cs, XplatUIX11.cs:
13314 - Fixed reparenting
13315 - Fixed window border creation
13317 2004-08-05 15:38 pbartok
13320 - Attempted fix for reparenting problems
13322 2004-08-04 15:14 pbartok
13325 - Fixed Invalidation bug (calculated wrong client area)
13326 - Added ClientSize setter
13328 2004-08-04 15:13 pbartok
13331 - Added AutoScale properties
13333 2004-08-04 15:13 pbartok
13336 - Added latest files
13338 2004-08-04 14:11 pbartok
13340 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13342 - Added Invalidate handling
13344 2004-08-03 17:09 jordi
13346 * XplatUIDriver.cs: fixes spelling mistake
13348 2004-07-27 09:53 jordi
13350 * TrackBar.cs: fixes trackbar events, def classname, methods
13353 2004-07-27 09:29 jordi
13355 * ScrollBar.cs: fixes scrollbar events
13357 2004-07-27 04:38 jordi
13359 * Control.cs: changes to be able to run winforms samples
13361 2004-07-26 11:42 jordi
13363 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13364 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13366 2004-07-26 05:41 jordi
13368 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13369 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13372 2004-07-22 09:22 jordi
13374 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13375 check link overlapping, implement events, and fixes
13377 2004-07-21 10:28 jordi
13379 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13381 2004-07-21 10:19 jordi
13383 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13384 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13385 LinkLabelLinkClickedEventArgs.cs,
13386 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13387 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13390 2004-07-19 13:09 jordi
13392 * Control.cs, Label.cs: label control re-written: added missing
13393 functionlity, events, and properties
13395 2004-07-19 10:49 jordi
13397 * Control.cs: fixes SetBounds logic
13399 2004-07-19 01:29 jordi
13401 * Control.cs: Call RefreshWindow only if the window has created
13403 2004-07-15 14:05 pbartok
13405 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13406 - Implemented ImageList and ImageList.ImageCollection classes
13407 - Added ColorDepth enumeration
13408 - Updated SWF VS.Net project
13410 2004-07-15 11:06 jordi
13412 * XplatUIStructs.cs: added MsgButons enum
13414 2004-07-15 11:03 jordi
13416 * Control.cs: added basic mouse handeling events
13418 2004-07-15 03:38 jordi
13420 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13421 Vertical TrackBar control implementation
13423 2004-07-13 09:33 jordi
13425 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13427 2004-07-13 09:31 jordi
13429 * Control.cs, Form.cs: commit: new properties and fixes form size
13432 2004-07-09 14:13 miguel
13434 * ProgressBar.cs: Spelling
13436 2004-07-09 11:25 pbartok
13439 - Removed usage of Rectangle for drawing. Miguel pointed out it's
13442 2004-07-09 11:17 miguel
13444 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
13446 * ProgressBar.cs: Fixed spelling for `block'
13448 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13451 Avoid using the += on rect.X, that exposed a bug in the compiler.
13453 2004-07-08 23:21 pbartok
13455 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13456 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13457 BaseCollection.cs, Binding.cs, BindingContext.cs,
13458 BindingMemberInfo.cs, BindingsCollection.cs,
13459 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13460 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13461 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13462 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13463 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13464 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13465 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13466 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13467 FrameStyle.cs, GiveFeedbackEventArgs.cs,
13468 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13469 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13470 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13471 InputLanguageChangedEventArgs.cs,
13472 InputLanguageChangedEventHandler.cs,
13473 InputLanguageChangingEventArgs.cs,
13474 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13475 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13476 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13477 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13478 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13479 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13480 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13481 QueryAccessibilityHelpEventArgs.cs,
13482 QueryAccessibilityHelpEventHandler.cs,
13483 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13484 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13485 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13486 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13487 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13488 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13489 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13490 XplatUIX11.cs, lang.cs: