Commit Graph
52 Commits
Author SHA1 Message Date
Mike Kestner 77e45b94f0 2006-03-28 Mike Kestner <[email protected]>
* MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.

svn path=/trunk/mcs/; revision=58657
2006-03-28 16:02:44 +00:00
Mike Kestner 025d4aa701 2006-03-28 Mike Kestner <[email protected]>
* MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.

svn path=/trunk/mcs/; revision=58656
2006-03-28 15:38:24 +00:00
Mike Kestner 70840b51eb 2006-03-22 Mike Kestner <[email protected]>
* MenuAPI.cs: only process Enter and arrow keypresses if the tracker
	is active. Fixes #77870.

svn path=/trunk/mcs/; revision=58316
2006-03-22 20:31:45 +00:00
Peter Dennis Bartok a6c20b4317 2006-03-17 Peter Dennis Bartok <[email protected]>
* 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
2006-03-17 19:39:59 +00:00
Peter Dennis Bartok 629fa88117 2006-03-13 Peter Dennis Bartok <[email protected]>
* 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
2006-03-13 20:48:49 +00:00
Jackson Harper a5f6157174 flush
svn path=/trunk/mcs/; revision=57794
2006-03-10 20:57:09 +00:00
Jackson Harper 16f40af01a * MenuAPI.cs: Make this available elsewhere. I need it in some
* MDI stuff.


svn path=/trunk/mcs/; revision=57793
2006-03-10 20:43:56 +00:00
Mike Kestner 1f0c4b9ab7 2006-02-28 Mike Kestner <[email protected]>
* MenuAPI.cs: Call PerformPopup internal method to emit Popup.
	Clean up a tracker compile warning.
	* MenuItem.cs: add internal PerformPopup method.
	[Fixes #77457]

svn path=/trunk/mcs/; revision=57468
2006-03-01 16:39:12 +00:00
Mike Kestner 129dde3b7c 2006-01-30 Mike Kestner <[email protected]>
* MenuAPI.cs: adjust MainMenu item popup location to y=0.

svn path=/trunk/mcs/; revision=56277
2006-01-30 19:55:00 +00:00
Mike Kestner e0f073cddd 2006-01-20 Mike Kestner <[email protected]>
* 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
2006-01-27 22:27:52 +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
Peter Dennis Bartok 40d310dd2b 2005-12-08 Peter Dennis Bartok <[email protected]>
* 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
2005-12-09 01:17:53 +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
Mike Kestner ca3050a6a4 2005-12-03 Mike Kestner <[email protected]>
* MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
	[Fixes #76897]

svn path=/trunk/mcs/; revision=53886
2005-12-03 15:16:59 +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
Jordi Mas i Hernandez 1179f7a4e8 2005-10-18 Jordi Mas i Hernandez <[email protected]>
* MenuAPI.cs: Returns after Hidding window
	* XplatUIX11.cs: Added TODO found while debugging menu issues


svn path=/trunk/mcs/; revision=51910
2005-10-19 13:34:18 +00:00
Peter Dennis Bartok ac9ff05072 2005-09-20 Peter Dennis Bartok <[email protected]>
* MenuAPI.cs: Remove filtering of events to allow menu usage


svn path=/trunk/mcs/; revision=50343
2005-09-20 23:20:56 +00:00
Peter Dennis Bartok 0b4e77980a 2005-09-19 Peter Dennis Bartok <[email protected]>
* MenuAPI.cs: Replaced Application.Run() with a loop that tracks
	  PostQuitMessage state.
	* XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg


svn path=/trunk/mcs/; revision=50272
2005-09-20 03:19:34 +00:00
Jordi Mas i Hernandez 587cf9eeba 2005-08-18 Jordi Mas i Hernandez <[email protected]>
* MenuAPI.cs: fixes bug 75716


svn path=/trunk/mcs/; revision=48494
2005-08-18 12:11:39 +00:00
Jordi Mas i Hernandez 5e7f0df6fb 2005-08-07 Jordi Mas i Hernandez <[email protected]>
* Menu.cs: fixes bug 75700
	* MenuAPI.cs: fixes navigation issues


svn path=/trunk/mcs/; revision=48166
2005-08-09 13:57:16 +00:00
Jordi Mas i Hernandez c8a9a80bfb * Combobox:
- Adjust control's height for non-simple comboboxes (bug fix)
		- Remove dead code
	* MenuAPI.cs: remove unused var
	* ScrollBar.cs: remove unsed var
		 
	* ListBox.cs: unselect items when clearing

2005-04-28  Jordi Mas i Hernandez <[email protected]>


svn path=/trunk/mcs/; revision=43727
2005-04-28 15:28:32 +00:00
Jackson Harper cf1296f0be * Control.cs: Double buffering is handled differently now. As per
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
2005-04-25 18:33:05 +00:00
Peter Dennis Bartok d305ee9a95 2005-03-18 Peter Bartok <[email protected]>
* MenuAPI.cs: Remove menu *before* executing selected action to
	  prevent the menu from 'hanging around'
	  

svn path=/trunk/mcs/; revision=41997
2005-03-18 16:45:31 +00:00
Peter Dennis Bartok 5b11eb4c40 * XplatUIX11.cs: Fixed menu coord calculations
* MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
	  for calculating offsets

2005-03-17  Peter Bartok  <[email protected]>


svn path=/trunk/mcs/; revision=41970
2005-03-18 00:40:21 +00:00
Jordi Mas i Hernandez e79030b7c0 2005-03-11 Jordi Mas i Hernandez <[email protected]>
* Form.cs: fixes menu drawing on X11
	* MenuAPI.cs:  fixes menu drawing on X11


svn path=/trunk/mcs/; revision=41723
2005-03-11 21:20:14 +00:00
Jordi Mas i Hernandez f6d16ef1ab 2005-02-25 Jordi Mas i Hernandez <[email protected]>
* 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
2005-02-25 14:24:34 +00:00
Jordi Mas i Hernandez 4237d5e68a 2005-02-19 Jordi Mas i Hernandez <[email protected]>
* 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
2005-02-21 09:36:18 +00:00
Jordi Mas i Hernandez 6167baab0a 2005-02-19 Jordi Mas i Hernandez <[email protected]>
* 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
2005-02-19 21:33:54 +00:00
Jordi Mas i Hernandez 4546c964ce 2005-02-16 Jordi Mas i Hernandez <[email protected]>
* Form.cs: first Menu NC refactoring
	* MenuAPI.cs: first Menu NC refactoring
	

svn path=/trunk/mcs/; revision=40766
2005-02-16 19:08:26 +00:00
Jordi Mas i Hernandez e16828dd9a 2005-02-10 Jordi Mas i Hernandez <[email protected]>
* MenuItem.cs: Use SystemInformation and bug fixes	
	* MenuAPI.cs: Use SystemInformation and bug fixes


svn path=/trunk/mcs/; revision=40375
2005-02-10 08:32:03 +00:00
Jordi Mas i Hernandez b4a904dc6c * MenuItem.cs:
* MenuAPI.cs:
		- Owner draw support (MeasureItem and DrawItem)

2005-02-04  Jordi Mas i Hernandez <[email protected]>
	

svn path=/trunk/mcs/; revision=40157
2005-02-04 22:01:14 +00:00
Peter Dennis Bartok c69e15d7c6 - Implemented SystemInformation class
- Fixed menu visibility on Win32
- Preventing Popup menus from popping up partially offscreen

svn path=/trunk/mcs/; revision=39769
2005-01-30 01:06:00 +00:00
Jordi Mas i Hernandez 691e04b27b menu fixes: tracking, bug 71495, etc
svn path=/trunk/mcs/; revision=39582
2005-01-26 14:20:24 +00:00
Peter Dennis Bartok 7acc92699c - Added new keyword where required
- 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
2005-01-04 07:16:45 +00:00
Jordi Mas i Hernandez ace52ead67 remove unused vars
svn path=/trunk/mcs/; revision=38302
2005-01-04 05:51:41 +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 8f7dce2010 fixes dispose of non-used resouces
svn path=/trunk/mcs/; revision=35970
2004-11-10 12:06:56 +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 a353edce48 - Added Clipping of children and siblings
svn path=/trunk/mcs/; revision=35845
2004-11-08 20:44:00 +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 3c56044180 speedup menus drawing
svn path=/trunk/mcs/; revision=35263
2004-10-22 19:31:46 +00:00
Jordi Mas i Hernandez 6715f99d72 MenuBarCalcSize returns the height
svn path=/trunk/mcs/; revision=35148
2004-10-19 22:15:12 +00:00
Jordi Mas i Hernandez e636b1b393 menuitems in menubars do not have shortcuts
svn path=/trunk/mcs/; revision=35084
2004-10-18 15:31:32 +00:00
Jordi Mas i Hernandez 9768e2af8a prevents windows from showing in the taskbar
svn path=/trunk/mcs/; revision=35082
2004-10-18 14:56:14 +00:00
Jordi Mas i Hernandez c2b0904bc5 menu drawing fixes
svn path=/trunk/mcs/; revision=35064
2004-10-17 19:39:18 +00:00
Jordi Mas i Hernandez 5caf0bde3f fix for X11
svn path=/trunk/mcs/; revision=35028
2004-10-15 13:34:46 +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