<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Robert,<br>
<br>
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).<br>
GetUseCustomChar is available, but not the property.<br>
However UseCustomFont is available both as property and method.<br>
<br>
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.<br>
<br>
Jan<br>
<div class="moz-forward-container"><br>
<br>
-------- Weitergeleitete Nachricht --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Betreff:
</th>
<td>[JW Lua] Four more JW Lua bugs</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Datum: </th>
<td>Thu, 3 Nov 2016 14:27:30 +0100</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Von: </th>
<td>Jan Angermüller <a class="moz-txt-link-rfc2396E" href="mailto:jan@angermueller.com"><jan@angermueller.com></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Antwort
an: </th>
<td>The JW Lua script plug-in. <a class="moz-txt-link-rfc2396E" href="mailto:jwlua@jwmusic.nu"><jwlua@jwmusic.nu></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">An: </th>
<td>The JW Lua script plug-in. <a class="moz-txt-link-rfc2396E" href="mailto:jwlua@jwmusic.nu"><jwlua@jwmusic.nu></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi Jari,<br>
<br>
I don't know how I should submit more bugs ?<br>
Again separate mails ? Or add them to my PDF and upload it again ?<br>
Below are four bugs of which bug 2 has been mentioned before in
older mails, but never been fixed.<br>
I would priorizite the first bug as "High Priority" and the other
three as "Nice to have"-bug fixes.<br>
<br>
Best,<br>
Jan<br>
<br>
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), <b>the focus gets lost</b>. 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.<br>
Maybe a<b> :SetFocus() </b>function is needed - if this is not
performed automatically.<br>
I have only tested it on Windows/Finale 2014.5.<br>
<br>
Test code: (Run the code, click on the Select button and then
close the Articulation dialog -> focus is not on the plugin
anymore)<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>
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>
<br>
2.) If I write <b>0 (EVPU) to
FCDistancePrefs.AccidentalMultiSpace</b>, it appears as 8 (EVPU)
in the Finale document options "Space Between Accidentals on Note"
field. <br>
Any other value I write appears correctly, i.e. -1 -> -1, 1
-> 1, 2-> 2 etc. <br>
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. <br>
The same goes for or FCDistancePrefs.AccidentalNoteSpace. (see
mails 2016-04-22 and 2016-04-23)<br>
<br>
local distprefs=finale.FCDistancePrefs() <br>
distprefs:LoadFirst() <br>
distprefs.AccidentalMultiSpace=0 <br>
distprefs:Save() <br>
<br>
3.) <b>FCAccidentalMod.UseCustomChar is not available only
...:GetUseCustomChar()</b><br>
On the other hand UseCustomFont is available both as property and
method.<br>
<br>
4.) <b>FCNoteheadMod.UseCustomChar is not available only
:GetUseCustomChar()</b><br>
On the other hand UseCustomFont is available both as property and
method.<br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>