[JW Lua] FCUI::ActivateDocumentWindow() -> Activate plugin window missing
Jan Angermüller
jan at angermueller.com
Tue Aug 15 18:28:54 CEST 2017
Jari,
thanks again for the many bug fixes!
I am currently checking all the things you added and I noticed that you
added
FCUI::ActivateDocumentWindow()
Could you also please add the opposite:
FCUI::ActivatePluginWindow()
This can fix the bug that the plugin windows loses focus when another
sub dialog is opened and closed (from mail 2016-11-03).
See the test script below and/or watch the behaviour in this short
screencam video:
https://www.youtube.com/watch?v=m4CNodP_UdM .
I have only tested this on Windows.
Best,
Jan
local str=finale.FCString()
str.LuaString="Test"
local dialog = finale.FCCustomLuaWindow()
dialog:SetTitle(str)
local button = dialog:CreateButton(0, 0)
str.LuaString = "Select"
button:SetText(str)
local function mycommandhandler(thecontrol)
if thecontrol:GetControlID() ==button:GetControlID() then
local myIDResult
myIDResult= finenv.UI():DisplayArticulationDialog(0)
end
end
dialog:RegisterHandleCommand(mycommandhandler)
dialog:CreateOkButton()
dialog:CreateCancelButton()
dialog:ExecuteModal(nil)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20170815/b03d28df/attachment.htm>
More information about the JWLua
mailing list