User Tools

Site Tools


jwlua:customwindow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
jwlua:customwindow [2015/11/30 11:52]
jariw
jwlua:customwindow [2015/11/30 12:32]
jariw
Line 1: Line 1:
-To create fully-feature dialog user interfaces in JW Lua, use the FCCustomWindow or FCCustomLuaWindow classes. (FCCustomLuaWindow is a subclass of FCCustomWindow that adds Lua callback functionality.)+To create fully-feature dialog user interfaces in JW Lua, use the [[http://​www.finaletips.nu/​frameworkref/​class_f_c_custom_window.html|FCCustomWindow]] or [[http://​www.finaletips.nu/​frameworkref/​class_f_c_custom_lua_window.html|FCCustomLuaWindow]] classes. (FCCustomLuaWindow is a subclass of FCCustomWindow that adds Lua callback functionality.)
  
-<code lua allcojntrols.lua>​local str = finale.FCString()+The dialogs are device independent and uses points as measurement (top-left as the origin). Dialog margins and Ok/Cancel button placement conform to the UI design guidelines for the platform the script runs on. 
 + 
 +The following script adds all available types of controls to a dialog. 
 + 
 +**Windows output:** 
 + 
 +{{:​wiki:​jwlua:​allcontrols-windows.jpg}} 
 + 
 +**Mac output:** 
 + 
 +{{:​wiki:​jwlua:​allcontrols-mac.png?​544|}} 
 + 
 +<code lua allcontrols.lua>​local str = finale.FCString()
  
 str.LuaString = "JW Lua Control Demo" str.LuaString = "JW Lua Control Demo"
Line 73: Line 85:
 dialog:​CreateCancelButton() dialog:​CreateCancelButton()
  
-dialog:​ExecuteModal(nil)</​code>​ +-- Display dialog box: 
 +if dialog:​ExecuteModal(nil) ​== 1 then 
 +   -- Ok button was pressed 
 +end</​code>​
  
  
jwlua/customwindow.txt · Last modified: 2015/11/30 12:32 by jariw