* MainMenu.cs: In draw method without parameters call draw method with
PaintEvent, another one (just rect) adjust rectangle and we dont need it
as Rect property is already adjusted. Fixes#80694.
svn path=/trunk/mcs/; revision=76393
* MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
fixes some menu draw problem on Windows with border diferent from default
it also fixes#81403.
svn path=/trunk/mcs/; revision=76330
* MainMenu.cs: Change Draw method to take care about MenuOrigin to be
compatible with non X11 systems. Fixes#80901.
svn path=/trunk/mcs/; revision=73370
* MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
a working win32 NC invalidation mechanism, we can't invalidate
menus. [Fixes#79705]
svn path=/trunk/mcs/; revision=66833
* Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
flickering by setting a clip rectangle on the Graphics when we
need to redraw just a particular menuitem. Also, rename "OnClick"
to "OnMouseDown" to reflect what it actually is.
* Form.cs: track the OnMouseDown change.
svn path=/trunk/mcs/; revision=63623
* event
and redraw the buttons when needed. Unhook when the window is
unmaximized.
* MainMenu.cs: Add an internal Paint event, the mdi window
* manager
needs this so that it can redraw its buttons when the menu is
repainted.
* InternalWindowManager.cs:
* Form.cs: The method order has changed for
* DrawMaximizedButtons,
so that it can be a PaintEventHandler.
svn path=/trunk/mcs/; revision=61674
* 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
* MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
* ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
invisible/previously-visible items.
[Fixes#76909]
svn path=/trunk/mcs/; revision=55687
* 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
a MenuChanged event. Just to make the API a little more
consistent.
* MainMenu.cs:
* MenuItem.cs: Use the new OnMenuChanged
* MdiChildContext.cs: Handle menu merging.
* Form.cs: Implement MergedMenu.
svn path=/trunk/mcs/; revision=53673
* 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
2005-09-22 Jordi Mas i Hernandez <[email protected]>
* MenuTest.cs: Fixes some tests
* MenuItemTest.cs: New unit test
In System.Windows.Forms:
2005-09-22 Jordi Mas i Hernandez <[email protected]>
* MainMenu.cs: Fixes default value
* MenuItem.cs: Fixes default value
svn path=/trunk/mcs/; revision=50476
* Menu.cs: Call MenuChanged when menuitem visibility has been
changed.
* MenuItem.cs: Rebuild menu when item is (not) visible.
* MainMenu.cs: MainMenu has special MenuChanged.
* Theme.cs: Caption and FrameBorderSize are not fixed.
* XplatUI.cs: Added CaptionHeight,FrameBorderSize.
* XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
* XplatUIX11.cs,
* XplatUIOSX: Caption and FrameBorderSize not implemented yet.
* XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
svn path=/trunk/mcs/; revision=45284