* MenuAPI.cs: Added OnMouseUp method
* Form.cs:
- Now remembering the requested client size, avoids size errors
- WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
instead of base if the menu is active. This is required due to
control now capturing and releasing on down/up and it would
prematurely release our menu capture
svn path=/trunk/mcs/; revision=58122
* XplatUIStructs.cs: Split WindowStyles into WindowStyles and
WindowExStyles and marked both enums as Flags
* Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
to match WindowStyles split
* XplatUIX11.cs:
- SetWMStyles: Added cehck to not apply WM attributes to Child windows
- Updated to match WindowStyles split
* XplatUIWin32.cs:
- Fixed FosterParent creation, was using ExStyle on the Style field
(This should help with Popup focus issues)
- Updated to match WindowStyles split
svn path=/trunk/mcs/; revision=57903
* Form.cs: Add ActiveTracker property to do Captures and perform mouse
event forwarding when menus are active.
* MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
svn path=/trunk/mcs/; revision=56195
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
Removed GetMenuDC and ReleaseMenuDC methods; replaced
by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
* Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
* InternalWindowManager.cs: Added use of PaintEventStart/End to
handling of WM_NCPAINT message, now passing the PaintEventArgs to
the PaintWindowDecorations method
* MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
* MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
* MenuAPI.cs: Made tracker window invisible
* XplatUIWin32.cs:
- Removed GetMenuDC and ReleaseMenuDC methods
- Implemented the client=false path for PaintEventStart and
PaintEventEnd
svn path=/trunk/mcs/; revision=56147
* Control.cs:
- Added internal version of Invoke, with additional argument
indicating if we're calling it from a Dispose() handler. That
way we can avoid BeginInvoke throwing an exception if we're
calling for an already destroyed window.
- Added a dispose argument to BeginInvokeInternal, and made the
check if a valid window handle chain exists conditional on
it not being a dispose call
- Removed code in DestroyHandle to destroy our children. Since we
now handle the WM_DESTROY message we will catch all our children
being destroyed.
- Now calling OnHandleDestroyed from our new WM_DESTROY handler
* Form.cs:
- Added a field to track the application context of the form.
- No need to set closing variable as response to WM_CLOSE, instead
we destroy the window. We also call PostQuitMessage if the form
has an application context (which makes it the main app form,
which, when closed terminates the app)
* XplatUI.cs:
- Dropped Exit() method, it's naming was confusing
- Added PostQuitMessage() which causes GetMessage to return false
once the message queue is empty
* XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
PostQuitMessage()
* XplatUIOSX.cs: Switched signature for Exit method since Exit() is
no longer a valid XplatUI method, but left it in since it's used
internally. Added empty PostQuitMessage() method.
* MenuAPI.cs: Replaced call to Exit() with call to
PostQuitMessage, even though this is probably no longer needed.
* Hwnd.cs: Added 'pretty' ToString() to support debugging.
* X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
* Application.cs:
- Replaced call to XplatUI.Exit() with PostQuitMessage()
- Removed old debug code that would call XplatUI for exception
display, enabled standard exception handling (Still not enabled
though, until NativeWindow's ExternalExceptionHandler define
is removed
* NativeWindow.cs:
- Added internal method to allow control to update NativeWindow
after a window has been destroyed
- Added handling of already destroyed windows when calling i
DestroyWindow
- Added removal of handle from list on ReleaseHandle
* XplatUIX11.cs:
- Dropped GetMessageResult var and related code
- Added PostQuitState to field to track if PostQuitMessage has been
called
- Dropped Exit() method
- Added PostQuitMessage() method
- GetMessage now will return false if PostQuitState is set and no
more messages are in the queue.
- Expose handler will no longer generate WM_PAINT messages if we are
in PostQuitState since it's very likely any windows have already
been destroyed, and since Hwnd won't get updated until we have
processed the DestroyNotify we'd be causing X errors.
svn path=/trunk/mcs/; revision=54138
* Control.cs : special case SYSKEYUP so that we can adjust keynav
state according in tracker.
* Menu.cs : promote tracker field to base class and provide a tracker
lookup capability. Add/Remove shortcuts dynamically if the top menu
has a tracker. Unparent items that are removed from the collection.
* MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
* Theme*.cs: add always_show_hotkeys field to support configurability
of mnemonic display. win32 doesn't show mnemonics until Alt is
pressed.
svn path=/trunk/mcs/; revision=54077
* ContextMenu.cs: use MenuTracker.
* Control.cs: remove menu handle usage.
* Form.cs: remove menu handle usage.
* Hwnd.cs: remove menu handle usage.
* MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
motion and clicks to the new Tracker handlers.
* Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
and handle usage.
* MenuAPI.cs: refactored to combine popup and menubar event handling.
Killed the MENU and MENUITEM data types and associated collections
since we now keep the info on Menu and MenuItem. Expanded TRACKER into
MenuTracker class that exposes the leftovers from the old MenuAPI
static methods. Restructured Capture handling so that only one grab is
done for the entire menu hierarchy instead of handing off grabs to
submenus. Tracker now has an invisible control to Capture when active.
* MenuItem.cs: add sizing accessors, kill Create
and handle usage.
* Theme.cs: remove menu handle and MENU(ITEM) usage.
* ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
MENU(ITEM). remove menu handle usage, use Menu directly.
* XplatUIDriver.cs: remove menu handle usage.
* XplatUIOSX.cs: remove menu handle usage.
* XplatUIWin32.cs: remove menu handle usage.
* XplatUIX11.cs: remove menu handle usage.
[Fixes#76621 and #76648]
svn path=/trunk/mcs/; revision=53403
the spec, the extra buffer is created in the WM_PAINT message and
passed down to the control's drawing code.
* GroupBox.cs:
* Label.cs:
* CheckBox.cs:
* ProgressBar.cs:
* RadioButton.cs:
* ColorDialog.cs:
* ComboBox.cs:
* PropertyGridView.cs:
* UpDownBase.cs:
* MessageBox.cs:
* MenuAPI.cs:
* ListView.cs:
* ButtonBase.cs:
* SizeGrip.cs:
* ScrollBar.cs:
* ListBox.cs:
* TrackBar.cs:
* ToolBar.cs:
* PictureBox.cs:
* DateTimePicker.cs:
* StatusBar.cs:
* TreeView.cs: Update to new double buffering system.
* MonthCalendar.cs: Uncomment block, as Capture is now
working. Update to new double buffering
* LinkLabel.cs: Lazy init the link collection. Update to new double buffering
* PaintEventArgs.cs: New internal method allows us to set the
graphics object. This is used for double buffering.
* ThemeWin32Classic.cs: Give the picture box drawing code a clip
rectangle. The internal paint_area var has been removed from
StatusBar. The clipping rect should be used instead.
* Theme.cs: Give the PictureBox drawing method a clipping rect.
* TabPage.cs: The RefreshTabs method was removed, so just call the
tab controls Refresh method now.
* TabControl.cs: Update to new double buffering. Make sure the
handle is created before sizing the tab pages, otherwise we will
get stuck in a loop.
svn path=/trunk/mcs/; revision=43557
* MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
for calculating offsets
2005-03-17 Peter Bartok <[email protected]>
svn path=/trunk/mcs/; revision=41970
* MenuAPI.cs: Respect disabled items
* ThemeWin32Classic.cs
- Caches ImageAttributes creation for DrawImageDisabled
- Fixes vertical menu line drawing
- Draws disabled arrows in disable menu items
svn path=/trunk/mcs/; revision=41199
* Form.cs: Move menu drawing code to Theme class
* ComboBox.cs: Move ComboBox drawing code to Theme class
* MenuItem.cs: Move menu drawing code to Theme class
* MenuAPI.cs: Move menu drawing code to Theme class
* ThemeWin32Classic.cs: New methods
* CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
* ListBox.cs: Move Listbox drawing code to Theme class
* Theme.cs: New methods
svn path=/trunk/mcs/; revision=40974
* Form.cs: Menu integration with non-client area
* MenuItem.cs: Menu integration with non-client area
* MenuAPI.cs: Menu integration with non-client area
svn path=/trunk/mcs/; revision=40914
* MenuAPI.cs:
- Owner draw support (MeasureItem and DrawItem)
2005-02-04 Jordi Mas i Hernandez <[email protected]>
svn path=/trunk/mcs/; revision=40157
- Removed unused vars
- Added required overrides for TextControl
- Finished Text property implementation for Text control
- Finished Selection implementation for Text Control
svn path=/trunk/mcs/; revision=38303