View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004171 | MMW v4 | Other | public | 2007-12-17 17:40 | 2008-11-26 11:31 |
Reporter | rusty | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | sometimes |
Status | feedback | Resolution | reopened | ||
Product Version | 3.0 | ||||
Summary | 0004171: Party mode password dialog pops up behind Main Panel sometimes | ||||
Description | I'm not sure what causes this, but is it possible to make MM force the password dialog to appear in front (sometimes focus is lost)? http://www.mediamonkey.com/forum/viewtopic.php?t=23560 | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
|
It's hard to say what could have caused it. Since similar problems of dialog hidden behind the main window are reported ocassionaly, we can try to somehow modify the related code for the next version. |
|
For Example if I execute External Script that shows MM Modal message Box while Options are opened Parent is TMainForm and not Options Form and options gets hidden Most easily reproduced by clicking on Configure on our new Last.Fm Scrobbler. Maybe this is similar to Party Mode Modal parents are not set correctly. i can't reproduce it always it happened me only once for password. External Script Example: Dim SDB, res Set SDB = CreateObject("SongsDB.SDBApplication") res = SDB.MessageBox( SDB.Localize("Select tracks to be exported, please."), mtError, Array(mbOk)) |
|
Decreasing priority to review later, when 3.0 is out. |
|
I have done some debugging today and came to this findings that in case of scripts and any part that makes Modal Windows that are not explicitly created from modal window like Options Parent is always set to HWND := Findwindow('TFMainWindow','MediaMonkey'); or HWND := Findwindow('TFMainWindow.UnicodeClass','MediaMonkey'); for non-skinned MM instead of MM Topmost MM Modal Window. Easy Steps to reproduce using configure of Last.Fm Scrobbler: 1. Tools -> Options -> Player -> General Plugins -> Last.fm Scrobbler -> Configure 2. Pressing OK Will loose focus on Options Panel And put Main Form as Focused one Note: Using WinApi Find Window can be easily determined that Parent window is Main not Options Form. As MM is multi threading Maybe it would be wise that on each Focus change On Top/Modal Window saves one global variable letting rest of MM that its window HWND is used for parent setting in creating Modal Windows? |