Diff Вы: nobody
Вход

Differences From Artifact [c042ef6b03]:

To Artifact [fce7a22872]:


19
20
21
22
23
24
25









26
27
28
29
30
31
32
..
40
41
42
43
44
45
46

47
48
49

function onDoModal(dlgInfo)
{
    if(dlgInfo.caption == "Выбор главы")
    {
        if(dlgInfo.stage == openModalWnd)
        {









            var vt = dlgInfo.form.getControl("tblTopics").value
            if(vt.Count() > 3)
            {
                var choices = []
                for(var rows = new Enumerator(vt); !rows.atEnd(); rows.moveNext())
                    choices.push(rows.item().Get(0))
                var rect = api.GetWindowRect(api.GetParentWindow(api.GetParentWindow(dlgInfo.form.getControl(-1).hwnd)))  // -1 - это сама форма
................................................................................
                        if(choices[k] == choice)
                            break
                        sk += "{DOWN}"
                    }
                    new ActiveXObject("WScript.Shell").SendKeys(sk + "~")
                }
            }

        }
    }
}







>
>
>
>
>
>
>
>
>







 







>



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
..
49
50
51
52
53
54
55
56
57
58
59

function onDoModal(dlgInfo)
{
    if(dlgInfo.caption == "Выбор главы")
    {
        if(dlgInfo.stage == openModalWnd)
        {
            var ds = dlgInfo.form.getControl("tblTopics").dataSource
            Message("DataSourceType=" + ds.type)
            Message("hasCellAppearance=" + ds.hasCellAppearance)
            
            for(var rowID = ds.getRow(0, grtFirstChild); rowID; rowID = ds.getRow(rowID, grtNext))
            {
                Message(ds.getCellValue(rowID, 0))
            }
            /*
            var vt = dlgInfo.form.getControl("tblTopics").value
            if(vt.Count() > 3)
            {
                var choices = []
                for(var rows = new Enumerator(vt); !rows.atEnd(); rows.moveNext())
                    choices.push(rows.item().Get(0))
                var rect = api.GetWindowRect(api.GetParentWindow(api.GetParentWindow(dlgInfo.form.getControl(-1).hwnd)))  // -1 - это сама форма
................................................................................
                        if(choices[k] == choice)
                            break
                        sk += "{DOWN}"
                    }
                    new ActiveXObject("WScript.Shell").SendKeys(sk + "~")
                }
            }
            */
        }
    }
}