finenv.RegisterModelessDialog
when ShowModeless
is called.Register*
methods (apart from RegisterHandleControlEvent
) have accompanying Add*
and Remove*
methods to enable multiple handlers to be added per event.HasBeenShown
method for checking if the window has been previously shown.finenv.RetainLuaState
and modeless windows.DebugClose
option to assist with debugging (if ALT or SHIFT key is pressed when window is closed and debug mode is enabled, finenv.RetainLuaState will be set to false).FCXCtrlMeasurementUnitPopup
.MeasurementUnitChange
event.UpdateMeasurementUnit
method will have that method called upon a measurement unit change to allow them to immediately update their displayed values without needing to wait for a MeasurementUnitChange
event.fcmcustomluawindow.Init(self)
[Internal]
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
fcmcustomluawindow.RegisterHandleCommand(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleCommand in the PDK for callback signature. |
fcmcustomluawindow.AddHandleCommand(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterHandleCommand
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleCommand in the PDK for callback signature. |
fcmcustomluawindow.RemoveHandleCommand(self, callback)
[Fluid]
Removes a handler added by AddHandleCommand
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.RegisterHandleDataListCheck(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleDataListCheck in the PDK for callback signature. |
fcmcustomluawindow.AddHandleDataListCheck(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterHandleDataListCheck
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleDataListCheck in the PDK for callback signature. |
fcmcustomluawindow.RemoveHandleDataListCheck(self, callback)
[Fluid]
Removes a handler added by AddHandleDataListCheck
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.RegisterHandleDataListSelect(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleDataListSelect in the PDK for callback signature. |
fcmcustomluawindow.AddHandleDataListSelect(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterHandleDataListSelect
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleDataListSelect in the PDK for callback signature. |
fcmcustomluawindow.RemoveHandleDataListSelect(self, callback)
[Fluid]
Removes a handler added by AddHandleDataListSelect
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.RegisterHandleUpDownPressed(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleUpDownPressed in the PDK for callback signature. |
fcmcustomluawindow.AddHandleUpDownPressed(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterHandleUpDownPressed
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See FCCustomLuaWindow.HandleUpDownPressed in the PDK for callback signature. |
fcmcustomluawindow.RemoveHandleUpDownPressed(self, callback)
[Fluid]
Removes a handler added by AddHandleUpDownPressed
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.CancelButtonPressed(self)
[Callback Template] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
fcmcustomluawindow.RegisterHandleCancelButtonPressed(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See CancelButtonPressed for callback signature. |
fcmcustomluawindow.AddHandleCancelButtonPressed(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterCancelButtonPressed
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See CancelButtonPressed for callback signature. |
fcmcustomluawindow.RemoveHandleCancelButtonPressed(self, callback)
[Fluid]
Removes a handler added by AddHandleCancelButtonPressed
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.OkButtonPressed(self)
[Callback Template] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
fcmcustomluawindow.RegisterHandleOkButtonPressed(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See OkButtonPressed for callback signature. |
fcmcustomluawindow.AddHandleOkButtonPressed(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterOkButtonPressed
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See OkButtonPressed for callback signature. |
fcmcustomluawindow.RemoveHandleOkButtonPressed(self, callback)
[Fluid]
Removes a handler added by AddHandleOkButtonPressed
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.InitWindow(self)
[Callback Template] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
fcmcustomluawindow.RegisterInitWindow(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See InitWindow for callback signature. |
fcmcustomluawindow.AddInitWindow(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterInitWindow
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See InitWindow for callback signature. |
fcmcustomluawindow.RemoveInitWindow(self, callback)
[Fluid]
Removes a handler added by AddInitWindow
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.CloseWindow(self)
[Callback Template] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
fcmcustomluawindow.RegisterCloseWindow(self, callback)
[Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See CloseWindow for callback signature. |
fcmcustomluawindow.AddCloseWindow(self, callback)
[Fluid]
Adds a handler. Similar to the equivalent RegisterCloseWindow
except there is no limit to the number of handlers that can be added.
Added handlers are called in the order they are added after the registered handler, if there is one.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See CloseWindow for callback signature. |
fcmcustomluawindow.RemoveCloseWindow(self, callback)
[Fluid]
Removes a handler added by AddCloseWindow
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.QueueHandleCustom(self, callback)
[Fluid] [Internal] Adds a function to the queue which will be executed in the same context as an event handler at the next available opportunity. Once called, the callback will be removed from tbe queue (i.e. it will only be called once). For multiple calls, the callback will need to be added to the queue again. The callback will not be passed any arguments.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.RegisterHandleControlEvent(self, control, callback)
[>= v0.56] [Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
control |
FCMControl |
|
callback |
function |
See FCCustomLuaWindow.HandleControlEvent in the PDK for callback signature. |
fcmcustomluawindow.HandleTimer(self, timerid)
[Breaking Change] [Callback Template] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
timerid |
number |
fcmcustomluawindow.RegisterHandleTimer(self, callback)
[>= v0.56] [Breaking Change] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See HandleTimer for callback signature (note the change in arguments). |
fcmcustomluawindow.AddHandleTimer(self, timerid, callback)
[>= v0.56] [Fluid]
Adds a handler for a timer. Handlers added by this method will be called after the registered handler, if there is one.
If a handler is added for a timer that hasn’t been set, the timer ID will no longer be available to GetNextTimerID
and SetNextTimer
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
timerid |
number |
|
callback |
function |
See HandleTimer for callback signature. |
fcmcustomluawindow.RemoveHandleTimer(self, timerid, callback)
[>= v0.56] [Fluid]
Removes a handler added with AddHandleTimer
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
timerid |
number |
|
callback |
function |
fcmcustomluawindow.SetTimer(self, timerid, msinterval)
[>= v0.56] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCCustomLuaWindow |
|
timerid |
number |
|
msinterval |
number |
fcmcustomluawindow.GetNextTimerID(self)
[>= v0.56]
Returns the next available timer ID.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
number |
fcmcustomluawindow.SetNextTimer(self, msinterval)
[>= v0.56]
Sets a timer using the next available ID (according to GetNextTimerID
) and returns the ID.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
msinterval |
number |
Return type | Description |
---|---|
number |
The ID of the newly created timer. |
fcmcustomluawindow.SetEnableAutoRestorePosition(self, enabled)
[>= v0.60] [Fluid]
Enables/disables automatic restoration of the window’s position on subsequent openings. This is disabled by default.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
enabled |
boolean |
fcmcustomluawindow.GetEnableAutoRestorePosition(self)
[>= v0.60]
Returns whether automatic restoration of window position is enabled.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
true if enabled, false if disabled. |
fcmcustomluawindow.SetRestorePositionData(self, x, y, width, height)
[>= v0.60] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
x |
number |
|
y |
number |
|
width |
number |
|
height |
number |
fcmcustomluawindow.SetRestorePositionOnlyData(self, x, y)
[>= v0.60] [Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
x |
number |
|
y |
number |
fcmcustomluawindow.SetEnableDebugClose(self, enabled)
[Fluid]
If enabled and in debug mode, when the window is closed with either ALT or SHIFT key pressed, finenv.RetainLuaState
will be set to false
.
This is done before CloseWindow handlers are called.
This is disabled by default.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
enabled |
boolean |
fcmcustomluawindow.GetEnableDebugClose(self)
Returns the enabled state of the DebugClose
option.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
true if enabled, false if disabled. |
fcmcustomluawindow.SetRestoreControlState(self, enabled)
[Fluid]
Enables or disables the automatic restoration of control state on subsequent showings of the window. This is disabled by default.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
enabled |
boolean |
true to enable, false to disable. |
fcmcustomluawindow.GetRestoreControlState(self)
Checks if control state restoration is enabled.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
true if enabled, false if disabled. |
fcmcustomluawindow.HasBeenShown(self)
Checks if the window has been shown at least once prior, either as a modal or modeless.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
true if it has been shown, false if not |
fcmcustomluawindow.ExecuteModal(self, parent)
[Override]
Override Changes:
UseParentMeasurementUnit
setting is enabled, this window’s measurement unit is automatically changed to match the parent window.AutoRestorePosition
is enabled.Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
parent |
`FCCustomWindow | FCMCustomWindow |
Return type | Description |
---|---|
number |
fcmcustomluawindow.ShowModeless(self)
[Override]
Override Changes:
finenv.RegisterModelessDialog
.AutoRestorePosition
is enabled.Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
fcmcustomluawindow.RunModeless(self, selection_not_required, default_action_override)
[Fluid]
Runs the window as a self-contained modeless plugin, performing the following steps:
OkButtonCanClose
to trueRegisterHandleOkButtonPressed
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
selection_not_required (optional) |
boolean |
If true and showing as a modal, will skip checking if a region is selected. |
default_action_override (optional) |
`boolean | function` |
fcmcustomluawindow.GetMeasurementUnit(self)
Returns the window’s current measurement unit.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
number |
The value of one of the finale MEASUREMENTUNIT constants. |
fcmcustomluawindow.SetMeasurementUnit(self, unit)
[Fluid]
Sets the window’s current measurement unit. Millimeters are not supported.
All controls that have an UpdateMeasurementUnit
method will have that method called to allow them to immediately update their displayed measurement unit immediately without needing to wait for a MeasurementUnitChange
event.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
unit |
number |
One of the finale MEASUREMENTUNIT constants. |
fcmcustomluawindow.GetMeasurementUnitName(self)
Returns the name of the window’s current measurement unit.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
string |
fcmcustomluawindow.GetUseParentMeasurementUnit(self)
Returns a boolean indicating whether this window will use the measurement unit of its parent window when opened.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
Return type | Description |
---|---|
boolean |
fcmcustomluawindow.SetUseParentMeasurementUnit(self, enabled)
[Fluid]
Sets whether to use the parent window’s measurement unit when opening this window. Default is enabled.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
enabled |
boolean |
fcmcustomluawindow.HandleMeasurementUnitChange(self, last_unit)
[Callback Template]
Template for MeasurementUnitChange handlers.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
last_unit |
number |
The window’s previous measurement unit. |
fcmcustomluawindow.AddHandleMeasurementUnitChange(self, callback)
[Fluid]
Adds a handler for a change in the window’s measurement unit. The even will fire when:
finale.MEASUREMENTUNIT_DEFAULT
)FCXCtrlMeasurementUnitPopup
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
See HandleMeasurementUnitChange for callback signature. |
fcmcustomluawindow.RemoveHandleMeasurementUnitChange(self, callback)
[Fluid]
Removes a handler added with AddHandleMeasurementUnitChange
.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
callback |
function |
fcmcustomluawindow.CreateMeasurementEdit(self, x, y, control_name)
Creates an FCXCtrlMeasurementEdit
control.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
string |
Return type | Description |
---|---|
FCXCtrlMeasurementEdit |
fcmcustomluawindow.CreateMeasurementUnitPopup(self, x, y, control_name)
Creates a popup which allows the user to change the window’s measurement unit.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
string |
Return type | Description |
---|---|
FCXCtrlMeasurementUnitPopup |
fcmcustomluawindow.CreatePageSizePopup(self, x, y, control_name)
Creates a popup which allows the user to select a page size.
Input | Type | Description |
---|---|---|
self |
FCMCustomLuaWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
string |
Return type | Description |
---|---|
FCXCtrlPageSizePopup |