[JW Lua] RegisterHandleUpDownPressed

Chris marcel.denio at gmail.com
Sat Dec 19 15:12:45 CET 2015


Jari

RegisterHandleUpDownPressed is not working.
What I forgot ?

------------------------------
local function createUpDown(dialog,x,y,minValue,maxValue,defautValue)
    -- FCCtrlEdit
     local ce = dialog:CreateEdit(x,y)
     ce:SetWidth(15)
     ce:SetHeight(15)

     -- FCCtrlUpDown
     local upDown = dialog:CreateUpDown(x + 15,y)
     upDown:ConnectIntegerEdit(ce,minValue,maxValue)
     upDown:SetValue(defautValue)

     return ce,upDown
end

local function callbackUpDown(ctrl,delta)
     print("delta :",delta)
end

local cw = finale.FCCustomLuaWindow()
cw:CreateOkButton()
cw:CreateCancelButton()
local ce,upDown = createUpDown(cw,0,0,1,10,1)

cw:RegisterHandleUpDownPressed(callbackUpDown)

local ret = cw:ExecuteModal(nil)
------------------------------


Best regards

Chris




More information about the JWLua mailing list