<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
thanks again for the many bug fixes!<br>
<br>
I am currently checking all the things you added and I noticed that
you added<br>
FCUI::ActivateDocumentWindow() <br>
<br>
Could you also please add the opposite:<br>
FCUI::ActivatePluginWindow() <br>
This can fix the bug that the plugin windows loses focus when
another sub dialog is opened and closed (from mail 2016-11-03).<br>
See the test script below and/or watch the behaviour in this short
screencam video: <br>
<a class="moz-txt-link-freetext" href="https://www.youtube.com/watch?v=m4CNodP_UdM">https://www.youtube.com/watch?v=m4CNodP_UdM</a> .<br>
I have only tested this on Windows. <br>
<br>
Best,<br>
Jan<br>
<br>
local str=finale.FCString()<br>
str.LuaString="Test"<br>
local dialog = finale.FCCustomLuaWindow()<br>
dialog:SetTitle(str)<br>
local button = dialog:CreateButton(0, 0)<br>
str.LuaString = "Select"<br>
button:SetText(str)<br>
<br>
local function mycommandhandler(thecontrol)<br>
if thecontrol:GetControlID() ==button:GetControlID() then<br>
local myIDResult<br>
myIDResult= finenv.UI():DisplayArticulationDialog(0)<br>
end<br>
end<br>
dialog:RegisterHandleCommand(mycommandhandler)<br>
dialog:CreateOkButton()<br>
dialog:CreateCancelButton()<br>
dialog:ExecuteModal(nil) <br>
</body>
</html>