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

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 1196-1213 ActiveX control fails to release focus BUG #5212

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

by Teknojnky » Sun Jan 18, 2009 5:20 pm

Well, ticket is still open... :o

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

by ZvezdanD » Sun Jan 18, 2009 5:19 pm

Not resolved in 1214. :(

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

by Teknojnky » Fri Jan 16, 2009 3:45 pm

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.

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

by ZvezdanD » Fri Jan 16, 2009 9:37 am

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

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

by gege » Fri Jan 16, 2009 9:11 am

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

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

by ZvezdanD » Fri Jan 16, 2009 2:45 am

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

Top