View Issue Details

IDProjectCategoryView StatusLast Update
0004171MMW v4Otherpublic2008-11-26 11:31
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilitysometimes
Status feedbackResolutionreopened 
Product Version3.0 
Summary0004171: Party mode password dialog pops up behind Main Panel sometimes
DescriptionI'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
TagsNo tags attached.
Fixed in build

Relationships

related to 0003703 closedpetr MediaMonkey focus problem: pressing cancel in modal dialogs minimizes to taskbar 
related to 0001958 assignedjiri The Application sometimes stay topmost after switching from party mode fullscreen back 

Activities

jiri

2007-12-17 17:59

administrator   ~0012608

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.

peke

2007-12-20 20:55

developer   ~0012666

Last edited: 2007-12-20 20:57

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))

jiri

2007-12-21 13:38

administrator   ~0012694

Decreasing priority to review later, when 3.0 is out.

peke

2008-11-26 11:31

developer   ~0015139

Last edited: 2008-11-26 11:32

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?