[JW Lua] UseCustomChar property missing in FCAccidentalMod / FCNoteheadMod
Robert Patterson
robert at robertgpatterson.com
Fri Jun 10 13:33:54 CEST 2022
I added the (read-only) properties on both a while ago.
On Fri, Jun 10, 2022 at 4:55 AM Jan Angermüller <jan at angermueller.com>
wrote:
> Robert,
>
> I just ran again into the old issue of the missing property UseCustomChar
> in FCAccidentalMod / FCNoteheadMod (see 3. and 4. in the old mail from the
> Lua mailing list below).
> GetUseCustomChar is available, but not the property.
> However UseCustomFont is available both as property and method.
>
> I haven't checked it in RGP Lua. But as I didn't find the keyword
> UseCustomChar in any of your recent emails, I assume the issue is still in.
>
> Jan
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: [JW Lua] Four more JW Lua bugs
> Datum: Thu, 3 Nov 2016 14:27:30 +0100
> Von: Jan Angermüller <jan at angermueller.com> <jan at angermueller.com>
> Antwort an: The JW Lua script plug-in. <jwlua at jwmusic.nu>
> <jwlua at jwmusic.nu>
> An: The JW Lua script plug-in. <jwlua at jwmusic.nu> <jwlua at jwmusic.nu>
>
> Hi Jari,
>
> I don't know how I should submit more bugs ?
> Again separate mails ? Or add them to my PDF and upload it again ?
> Below are four bugs of which bug 2 has been mentioned before in older
> mails, but never been fixed.
> I would priorizite the first bug as "High Priority" and the other three as
> "Nice to have"-bug fixes.
>
> Best,
> Jan
>
> 1.) If I open a sub dialog (e.g. articulation, expression, ...) from my
> main dialog and then want to return to my main dialog (by clicking ok or
> cancel), *the focus gets lost*. Neither Finale nor my main dialog are
> active anymore (the focus isn't visible at all!) and I need to use the
> mouse and click on the plugin dialog to make it active again. Thus it's
> impossible to automate the plugin for example via macros.
> Maybe a* :SetFocus() *function is needed - if this is not performed
> automatically.
> I have only tested it on Windows/Finale 2014.5.
>
> Test code: (Run the code, click on the Select button and then close the
> Articulation dialog -> focus is not on the plugin anymore)
> 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)
>
> 2.) If I write *0 (EVPU) to FCDistancePrefs.AccidentalMultiSpace*, it
> appears as 8 (EVPU) in the Finale document options "Space Between
> Accidentals on Note" field.
> Any other value I write appears correctly, i.e. -1 -> -1, 1 -> 1, 2-> 2
> etc.
> When I read the value from within JW Lua after having written it, it
> returns correctly as 0, but still shows 8 in the dialog. Test script below.
> The same goes for or FCDistancePrefs.AccidentalNoteSpace. (see mails
> 2016-04-22 and 2016-04-23)
>
> local distprefs=finale.FCDistancePrefs()
> distprefs:LoadFirst()
> distprefs.AccidentalMultiSpace=0
> distprefs:Save()
>
> 3.) *FCAccidentalMod.UseCustomChar is not available only
> ...:GetUseCustomChar()*
> On the other hand UseCustomFont is available both as property and method.
>
> 4.) *FCNoteheadMod.UseCustomChar is not available only
> :GetUseCustomChar()*
> On the other hand UseCustomFont is available both as property and method.
>
>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220610/c622f57e/attachment.htm>
More information about the JWLua
mailing list