Commit Graph
30 Commits
Author SHA1 Message Date
Everaldo Canuto 9df46157a9 2007-04-27 Everaldo Canuto <[email protected]>
* 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
2007-04-27 16:52:08 +00:00
Everaldo Canuto c812e415f9 2007-04-26 Everaldo Canuto <[email protected]>
* 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
2007-04-26 15:13:36 +00:00
Everaldo Canuto 77cb7ca4c9 2007-02-23 Everaldo Canuto <[email protected]>
* 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
2007-02-23 15:50:50 +00:00
Chris Toshok b7a17162b6 make another pass at corcompare, mostly attributes on classes/properties/events/etc
svn path=/trunk/mcs/; revision=70171
2006-12-28 17:36:24 +00:00
Jonathan Pobst d814c13a0b 2006-12-15 Jonathan Pobst <[email protected]>
* MainMenu.cs: Add the new 2.0 constructor to help out people
	using the MainMenu in VS2005.

svn path=/trunk/mcs/; revision=69538
2006-12-15 18:15:45 +00:00
Chris Toshok b1a4fee9a2 2006-12-05 Chris Toshok <[email protected]>
* TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
	MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
	System.ComponentModel.EventHandlerList work.


svn path=/trunk/mcs/; revision=69057
2006-12-05 17:33:34 +00:00
Mike Kestner 6f2f53a8bd 2006-10-20 Mike Kestner <[email protected]>
* 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
2006-10-20 15:51:02 +00:00
Chris Toshok 2896727721 2006-09-28 Chris Toshok <[email protected]>
* MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
	menu code really needs going over.


svn path=/trunk/mcs/; revision=66012
2006-09-28 04:08:00 +00:00
Chris Toshok cc91707964 2006-08-10 Chris Toshok <[email protected]>
* 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
2006-08-10 20:18:24 +00:00
Jackson Harper 3ebd8bd618 * MdiWindowManager.cs: Hook up to the maximized menus paint
* 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
2006-06-13 18:42:08 +00:00
Mike Kestner e8e9aaeb78 2006-03-28 Mike Kestner <[email protected]>
* MainMenu.cs: 
	* Menu.cs:
	add a few missing methods from the class status output.

svn path=/trunk/mcs/; revision=58670
2006-03-28 19:04:33 +00:00
Peter Dennis Bartok a94a8d2aca 2006-01-26 Peter Dennis Bartok <[email protected]>
* 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
2006-01-27 04:57:12 +00:00
Mike Kestner 21e1c5188f 2006-01-17 Mike Kestner <[email protected]>
* 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
2006-01-17 17:49:31 +00:00
Mike Kestner bc5e2bd9c1 2005-12-07 Mike Kestner <[email protected]>
* 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
2005-12-07 22:44:34 +00:00
Jackson Harper 2e3eb00e69 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
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
2005-11-30 10:21:22 +00:00
Mike Kestner f5c03a8afd 2005-11-23 Mike Kestner <[email protected]>
* 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-11-23 19:25:43 +00:00
Jackson Harper 7ef6120c3a * Menu.cs:
* MainMenu.cs:
	* GrigTableStylesCollection.cs:
	* Timer.cs:
	* TabPage.cs:
	* HelpProvider.cs:
	* StatusBar.cs:
	* MonthCalendar.cs: Signature fixes


svn path=/trunk/mcs/; revision=52544
2005-11-03 23:40:08 +00:00
Jordi Mas i Hernandez b45078b131 In Test/System.Windows.Forms:
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
2005-09-22 13:30:51 +00:00
Marek Safar 5697c6b471 2005-06-01 Marek Safar <[email protected]>
* 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
2005-06-01 07:34:35 +00:00
Jordi Mas i Hernandez ec0d92848d 2005-02-11 Jordi Mas i Hernandez <[email protected]>
* Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
	* LinkLabel: Added missing attributes
	* MainMenu.cs: fixes ToString
	* MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
	* ListBox.cs: fixes event position
	* TrackBar.cs: adds missing attributes and events 	 
	

svn path=/trunk/mcs/; revision=40472
2005-02-11 13:49:57 +00:00
Peter Dennis Bartok f63e9d117b - Oops
svn path=/trunk/mcs/; revision=40321
2005-02-09 02:49:13 +00:00
Jordi Mas i Hernandez 1406205e82 fixes menu destruction and recreating menus with changed items
svn path=/trunk/mcs/; revision=36626
2004-11-26 11:28:52 +00:00
Jordi Mas i Hernandez 61471b144d tracker should be for tracking session
svn path=/trunk/mcs/; revision=36052
2004-11-12 11:04:39 +00:00
Jordi Mas i Hernandez 2b9908512f fixes menu navigation, fixes popups, etc
svn path=/trunk/mcs/; revision=35895
2004-11-09 15:47:20 +00:00
Peter Dennis Bartok cad451c7ba - Removed SetMenuBarWindow call. We do this in Form.cs
svn path=/trunk/mcs/; revision=35843
2004-11-08 20:41:26 +00:00
Jordi Mas i Hernandez 7f63ddfb20 collection completion, drawing issues, missing features
svn path=/trunk/mcs/; revision=35644
2004-11-04 14:47:58 +00:00
Jordi Mas i Hernandez 9e0e159392 Menu key navigation, itemcollection completion, menu fixes
svn path=/trunk/mcs/; revision=35464
2004-10-29 15:55:26 +00:00
Jordi Mas i Hernandez 494d6d4e80 menu work, mainmenu, subitems, etc
svn path=/trunk/mcs/; revision=35024
2004-10-15 12:43:19 +00:00
Jordi Mas i Hernandez 9f0c2e91a8 more menu work
svn path=/trunk/mcs/; revision=34799
2004-10-08 08:50:29 +00:00
Jordi Mas i Hernandez bbde67052b Very early menu support
svn path=/trunk/mcs/; revision=34003
2004-09-17 12:19:16 +00:00