<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
some versions ago you fixed the different scaling/positioning bug
for dialogs on MacOS/Windows.<br>
Today I noticed that the bug fix seem to only affect the
scaling/positioning when creating the dialog.<br>
If the dialog is changed on the fly afterwards, the values are still
scaled differently (on Windows! Haven't tested MacOS).<br>
<br>
Below is the test script which shows different positions when using
CreateButton(x,y) compared to SetLeft(x) / SetTop(y).<br>
Clicking on the "select" button should use the same position as
before, but it changes.<br>
This is how the script looks in action: <a target="_blank"
href="https://youtu.be/gprmtghPbAs">https://youtu.be/gprmtghPbAs</a><br>
<br>
It is relevant when I have a dialog with a "standard" and an
"extended" version which use slightly different positions.<br>
<br>
Jan<br>
<br>
local str=finale.FCString()<br>
str.LuaString="Test"<br>
local dialog = finale.FCCustomLuaWindow()<br>
dialog:SetTitle(str)<br>
<br>
local static1= dialog:CreateStatic(0,0)<br>
str.LuaString = "Test:"<br>
static1:SetWidth(120)<br>
static1:SetText(str)<br>
<br>
local button = dialog:CreateButton(50, 50)<br>
str.LuaString = "Select"<br>
button:SetText(str)<br>
button:SetWidth(100)<br>
<br>
local function mycommandhandler(thecontrol)<br>
if thecontrol:GetControlID() ==button:GetControlID() then<br>
button:SetLeft(50)<br>
button:SetTop(50)<br>
end<br>
end<br>
dialog:RegisterHandleCommand(mycommandhandler)<br>
dialog:CreateCancelButton()<br>
dialog:ExecuteModal(nil) <br>
</body>
</html>