[JW Lua] FCUI::ActivateDocumentWindow() -> Activate plugin window missing

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Aug 15 21:28:31 CEST 2017


Jan,

It seems like you need __FCUserWindow::Activate() hooked up in JW Lua 
scripts. All add that.

However, I think I'll also add an automatic refocus to the Finale 
selection dialog calls (as in your video), so you don't have to add that 
line of code on every such instance. The Cocoa version of Finale has 
severe issues with these kind of things (from a user standpoint), so 
it's nice to have it automatically working in the scripts without 
additional coding.


Best regards,

Jari Williamsson


On 2017-08-15 18:28, Jan Angermüller wrote:
> 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)
> 
> 
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> 






More information about the JWLua mailing list