* MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
when <alt> key is pressed.
svn path=/trunk/mcs/; revision=76389
- Remove unneeded parameters in UpdateCursor.
- Fix UpdateCursor to check if menu is active.
- Call UpdateCursor when menu deactivate my click.
[Fixes remaining issues from #80410]
2007-04-04 Everaldo Canuto <[email protected]>
svn path=/trunk/mcs/; revision=75377
* Control.cs: GetRealChildAtPoint method added, it make an
recursive child control search for the point.
* Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
menu.
* MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
svn path=/trunk/mcs/; revision=75376
* MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
processed.
* Form.cs: When active tracker mouse down is not processed, send event
back to control inside mouse position. [Fixes#81227]
svn path=/trunk/mcs/; revision=75170
* MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
cursor for child controls. In ShowWindow and HideWindow now call SetCursor
every time. Fixes#81410.
svn path=/trunk/mcs/; revision=74794
* XplatUIWin32.cs: The no_activate stuff was forcing us to create a
Handle before we were supposed to. Now checks ActivateOnShow property
in Control.
* Control.cs: Add internal ActivateOnShow property.
* ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
for ActivateOnShow.
* Hwnd.cs Remove no longer needed no_activate field.
svn path=/trunk/mcs/; revision=73921
* MenuAPI.cs: hotkey_active internal field added, it is required because
we need to know when hotkeys must be draw, before this change a keystate
Navigating was used but we can have menu in navigating state without
hotkeys. Fixes#80694.
* ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
svn path=/trunk/mcs/; revision=72400
* MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
also remove ProcessArrowKey and put the code inside ProcessKeys.
svn path=/trunk/mcs/; revision=71772
- Down submenu positin in three pixels.
- Closes sub menu when mouse leaves from menu. Fixes#80402.
2007-01-02 Everaldo Canuto <[email protected]>
svn path=/trunk/mcs/; revision=70337
* MenuAPI.cs: When hides menu set Wnd to null, it prevents
FindSubItemByCoord to found itens that is not active, also an
cheking added to FindSubItemByCoord to search for items only
in visible popup windows. Fixes#80274.
svn path=/trunk/mcs/; revision=69988
* MenuAPI.cs: Closes menu when right click out side of popup
it fix problem in ContextMenu and MainMenu. Fixes#80252.
svn path=/trunk/mcs/; revision=69468
* MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
was used because we must set cursor without trigger ChangeCursor event
and without change Cursor control property. Fixes#79963.
svn path=/trunk/mcs/; revision=69433
* MenuAPI.cs:
- Changes to fix behavior in Menu control, some reported in #80097
and other detected during behavior refactory like a select event
problems.
- Remove unneded "if's" conditions.
- Created an internal to flag when popup is active in control, we need
it because in .NET you can have menu active but without popup active
when you active menu using popup without visible items.
- Mimic win32 behavior for Select and Popup events.
- Dont open popup menu when you dont have visible subitems.
- Do nothing when click on disabled menu item.
- Some small changes to follow the coding style guidelines.
- Unselect menu only when another control gives focus. Fixes#80097.
- Remove unused code.
* MenuItem.cs: internal VisibleItems method to check if menu
theres visible subitems, it will be usefull to fix some
behavior in Menu control.
svn path=/trunk/mcs/; revision=68933
[Fixes 79433]
* Hwnd.cs: Add a flag to show a window, but not activate it, to
keep popup window types from stealing focus from the main form
on Windows.
* XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
* MenuAPI.cs: Set above flag to true.
svn path=/trunk/mcs/; revision=67949
* MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
button on various spots (including outside the menu) works closer
to MS, and doesn't crash. Fixes#79343.
svn path=/trunk/mcs/; revision=65255
* 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
* MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
than WM_SYSKEY, don't throw if get something unexpected (#78507)
svn path=/trunk/mcs/; revision=61179
* MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
prefer submenus to the top menu for item lookup, to avoid popping down
top-row items.
svn path=/trunk/mcs/; revision=61000
* Application.cs: Updated to new StartLoop/GetMessage API
* RichTextBox.cs: Provide some output on RTF parsing errors
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
new queue_id argument to GetMessage and PeekMessage to allow faster
handling of per-thread queues in drivers.
* Hwnd.cs: Added Queue tracking and property
* MenuAPI.cs: Updated to new StartLoop/GetMessage API
* XEventQueue.cs: Added thread trackingA
* PropertyGridView.cs: Updated to new StartLoop/GetMessage API
* XplatUIX11.cs:
- Implemented new per-thread queue
- GetMessage: Fixed return/break behaviour on several cases. We were
returning stale messages in some cases, instead of just processing
the next message
svn path=/trunk/mcs/; revision=60063
all of our controls instead of Paint +=.
* ListBox.cs:
* ListView.cs:
* MenuAPI.cs:
* MessageBox.cs:
* NotifyIcon.cs:
* ProgressBar.cs:
* ScrollBar.cs:
* Splitter.cs:
* StatusBar.cs:
* TabControl.cs:
* TextBoxBase.cs:
* ToolBar.cs:
* TrackBar.cs:
* UpDownBase.cs:
* ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
use OnPaintInternal. Remove Width/Height and Visible checks in
paint handler, this is done at a higher level now.
* GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
* PaintEventArgs.cs: Add a handled flag so controls that don't
want anymore painting after OnPaintInternal can make sure
OnPaint
isn't called.
svn path=/trunk/mcs/; revision=59104
* MenuAPI.cs: setup menu.tracker for popup/context menus.
* ToolTip.cs: guard against timer expirations with no active control.
Not sure why it happened.
svn path=/trunk/mcs/; revision=58856
* Menu.cs (SelectedItem): use new MenuItem.Selected prop.
* MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
go active to account for HotLight to Selected transition.
* MenuItem.cs: add internal Selected prop. Fill out the Status
property by calculating it from item info. Add HotLight,
NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
svn path=/trunk/mcs/; revision=58790