1196-1213 ActiveX control fails to release focus BUG #5212

Beta Testing for Windows Products and plugins

Moderator: Gurus

ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

1196-1213 ActiveX control fails to release focus BUG #5212

Post by ZvezdanD »

Here is a sample script which works correctly only with 3.0.6.1190 and older. Put it in the Scripts/Auto, restart MM, choose Edit / Zvezdan's Test 5 and in a new dialog:
1. type some text into dropdown list;
2. scroll down ActiveX control which is below of the mentioned dropdown list or click anywhere on it;
3. try to type something into the mentioned dropdown list again -> you cannot do this with 3.1.x.

Now, re-open dialog and try this:
4. same as 1.
5. same as 2.
6. click on the "Are you trying ..." check box;
7. try to type something into the mentioned dropdown list again -> now, you can do this.

Code: Select all

Sub OnStartUp()
    Dim mnuTest

    Set mnuTest = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    mnuTest.Caption = "Zvezdan's Test 5"
    mnuTest.OnClickFunc = "TestForm"
    mnuTest.UseScript = Script.ScriptPath
End Sub

Sub TestForm(Item)
    Dim Form, oCtrl, sTmp

    Set Form = SDB.UI.NewForm
    Form.Common.SetRect 100, 100, 360, 330
    Form.BorderStyle = 3
    Form.FormPosition = 4
    Form.Caption = "Zvezdan's Test 5"

    Set oCtrl = SDB.UI.NewDropDown(Form)
    oCtrl.Common.SetRect 20, 20, 300, 21

    Set oCtrl = SDB.UI.NewActiveX(Form, "Shell.Explorer")
    oCtrl.Common.SetRect 20, 60, 300, 150
    sTmp = "<html><head><body>For this test cycle, we're opening up our bug tracking system (read-only to begin with) to give better visibility on issue statuses and plans. A full list of changes in 3.1 appears on our changelog . We're also going to post 'internal' builds on a regular basis so that there aren't long gaps between formal Alpha & Beta builds. 'Internal' builds will include the most recent changes, but will not necessarily have been tested, giving the more adventurous among you a chance to try out the same software that the developers are using.</body></html>"
    oCtrl.SetHTMLDocument sTmp

    Set oCtrl = SDB.UI.NewCheckBox(Form)
    oCtrl.Caption = "Are you trying to encourage us from using ActiveX?"
    oCtrl.Common.SetRect 20, 230, 300, 17

    Set oCtrl = SDB.UI.NewButton(Form)
    oCtrl.Caption = "&Close"
    oCtrl.Common.SetRect 150, 260, 73, 25
    oCtrl.UseScript = Script.ScriptPath
    oCtrl.Cancel = True
    oCtrl.modalResult = 2

    Form.showModal
End Sub
mod edit: shortened title to fit bug info and add mantis link
1196-1213 Are you trying to encourage us from using ActiveX?
http://www.ventismedia.com/mantis/view.php?id=5212
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
gege
Posts: 866
Joined: Tue Sep 05, 2006 2:10 pm
Location: Brazil

Re: 1196-1213 Are you trying to encourage us from using ActiveX?

Post by gege »

I just tested it in 1213.
In fact, you don't need to click on "Are you..." check box, to be able to re-enter some text in combo box.
What happens is: after scrolling ActiveX control, only clicking on combo box text is not enough to make ActiveX loose focus*.
But, if you OPEN and CLOSE combo menu by clicking on its arrow twice, then you'll be able to re-enter text on it.

*To prove this:
1. Enter some text in combo box;
2. Click on ActiveX and scroll it down;
3. Click on combo box text AND USE MOUSE WHEEL TO SCROLL --> You'll notice ActiveX text will scroll (i.e., it still has focus!)
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: 1196-1213 Are you trying to encourage us from using ActiveX?

Post by ZvezdanD »

gege wrote:You'll notice ActiveX text will scroll (i.e., it still has focus!)
Yes, of course. I added mentioned check box just as an example. It is enough to click on any control other than a control from which you transfered focus to the ActiveX. By the way, this is not happening with the non-skinned version, only with skinned one.

One related question. Why the click on the dropdown arrow leads to loosing active state of the form in the skinned version? Just take a look on the color of the window's title text before the click on the dropdown arrow and after that - it is changing, but it should not. None Windows program has such thing, neither non-skinned MM. It seems that this is not happening with built-in dialog boxes and their dropdown lists, but only with ones from scripts. Same behavior had skinned MM2, even with some built-in dropdown lists (those from the Options dialog).
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Re: 1196-1213 Are you trying to encourage us from using ActiveX?

Post by Teknojnky »

Can confirm behavior, will open ticket.

I can understand if your frustrated with issues popping up that make things more difficult or not working correctly, but lets try to be more positive and give them the benefit of the doubt.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: 1196-1213 ActiveX control fails to release focus BUG #5212

Post by ZvezdanD »

Not resolved in 1214. :(
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply