#newcommand
@script JScript
function OnClick(clickData)
{
var srcTab = clickData.func.sourcetab;
var myVector = DOpus.NewVector();
var dlg = DOpus.Dlg;
dlg.title = "Test";
dlg.template = "dialog1";
dlg.Create();
dlg.Show();
for (var eItems = new Enumerator(srcTab.selected); !eItems.atEnd(); eItems.moveNext()) {
var thisItem = DOpus.FSUtil.GetItem(eItems.item());
myVector.push_back = thisItem.realpath;
DOpus.Output(thisItem.realpath);
}
while (true) {
var msg = dlg.GetMsg();
if (!msg.result) break;
if (msg.event == "drag") {
dlg.Drag(myVector, "*copy,move,link");
}
}
}
==SCRIPT RESOURCES
<resources>
<resource name="dialog1" type="dialog">
<dialog fontsize="8" height="84" lang="" width="91">
<control dragsource="yes" halign="left" height="84" name="staticDrag" title="Drag from anywhere" type="static" width="91" x="0" y="0" />
</dialog>
</resource>
</resources>