FCMCustomWindow
Summary of Modifications
Create*
methods have an additional optional parameter for specifying a control name. Named controls can be retrieved via GetControl
.
- Cache original control objects to preserve mixin data and override control getters to return the original objects.
- Added
Each
method for iterating over controls by class name.
Functions
- Init(self)
- CreateCancelButton(self, control_name)
- CreateOkButton(self, control_name)
- CreateButton(self, x, y, control_name)
- CreateCheckbox(self, x, y, control_name)
- CreateCloseButton(self, x, y, control_name)
- CreateDataList(self, x, y, control_name)
- CreateEdit(self, x, y, control_name)
- CreateTextEditor(self, x, y, control_name)
- CreateListBox(self, x, y, control_name)
- CreatePopup(self, x, y, control_name)
- CreateSlider(self, x, y, control_name)
- CreateStatic(self, x, y, control_name)
- CreateSwitcher(self, x, y, control_name)
- CreateTree(self, x, y, control_name)
- CreateUpDown(self, x, y, control_name)
- CreateHorizontalLine(self, x, y, length, control_name)
- CreateVerticalLine(self, x, y, length, control_name)
- CreateCancelButtonAutoLocalized(self, control_name)
- CreateOkButtonAutoLocalized(self, control_name)
- CreateCloseButtonAutoLocalized(self, x, y, control_name)
- FindControl(self, control_id)
- GetControl(self, control_name)
- Each(self, class_filter)
- GetItemAt(self, index)
- GetParent(self)
- ExecuteModal(self, parent)
Init
fcmcustomwindow.Init(self)
View source
[Internal]
Input |
Type |
Description |
self |
FCMCustomWindow |
|
fcmcustomwindow.CreateCancelButton(self, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
fcmcustomwindow.CreateOkButton(self, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
fcmcustomwindow.CreateButton(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
CreateCheckbox
fcmcustomwindow.CreateCheckbox(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlCheckbox |
|
fcmcustomwindow.CreateCloseButton(self, x, y, control_name)
View source
[>= v0.56] [Override]
Override Changes:
- Added optional
control_name
parameter.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
CreateDataList
fcmcustomwindow.CreateDataList(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlDataList |
|
CreateEdit
fcmcustomwindow.CreateEdit(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlEdit |
|
CreateTextEditor
fcmcustomwindow.CreateTextEditor(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlTextEditor |
|
CreateListBox
fcmcustomwindow.CreateListBox(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlListBox |
|
fcmcustomwindow.CreatePopup(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlPopup |
|
CreateSlider
fcmcustomwindow.CreateSlider(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlSlider |
|
CreateStatic
fcmcustomwindow.CreateStatic(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlStatic |
|
CreateSwitcher
fcmcustomwindow.CreateSwitcher(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlSwitcher |
|
CreateTree
fcmcustomwindow.CreateTree(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlTree |
|
CreateUpDown
fcmcustomwindow.CreateUpDown(self, x, y, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlUpDown |
|
CreateHorizontalLine
fcmcustomwindow.CreateHorizontalLine(self, x, y, length, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
length |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlLine |
|
CreateVerticalLine
fcmcustomwindow.CreateVerticalLine(self, x, y, length, control_name)
View source
[Override]
Override Changes:
- Added optional
control_name
parameter.
- Store reference to original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
length |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlLine |
|
fcmcustomwindow.CreateCancelButtonAutoLocalized(self, control_name)
View source
Localizes the button using the key “cancel”. Transalations for English, Spanish, and German are
provided automatically. Other translations may be added here or in individual localization files
for the script
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
fcmcustomwindow.CreateOkButtonAutoLocalized(self, control_name)
View source
Localizes the button using the key “ok”. Transalations for English, Spanish, and German are
provided automatically. Other translations may be added here or in individual localization files
for the script
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
fcmcustomwindow.CreateCloseButtonAutoLocalized(self, x, y, control_name)
View source
[>= v0.56]
Localizes the button using the key “cancel”. Transalations for English, Spanish, and German are
provided automatically. Other translations may be added here or in individual localization files
for the script
Input |
Type |
Description |
self |
FCMCustomWindow |
|
x |
number |
|
y |
number |
|
control_name (optional) |
`FCString |
string` |
Return type |
Description |
FCMCtrlButton |
|
FindControl
fcmcustomwindow.FindControl(self, control_id)
View source
[PDK Port]
Finds a control based on its ID.
Port Changes:
- Returns the original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_id |
number |
|
Return type |
Description |
FCMControl | nil |
|
GetControl
fcmcustomwindow.GetControl(self, control_name)
View source
Finds a control based on its name.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
control_name |
`FCString |
string` |
Return type |
Description |
FCMControl | nil |
|
Each
fcmcustomwindow.Each(self, class_filter)
View source
An iterator for controls that can filter by class.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
class_filter (optional) |
string |
A class name, can be a parent class. See documentation mixin.is_instance_of for details on class filtering. |
Return type |
Description |
function |
An iterator function. |
GetItemAt
fcmcustomwindow.GetItemAt(self, index)
View source
[Override]
Override Changes:
- Returns the original control object.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
index |
number |
|
Return type |
Description |
FCMControl |
|
GetParent
fcmcustomwindow.GetParent(self)
View source
[PDK Port]
Returns the parent window. The parent will only be available while the window is showing.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
Return type |
Description |
FCMCustomWindow | nil |
nil if no parent |
ExecuteModal
fcmcustomwindow.ExecuteModal(self, parent)
View source
[Override]
Override Changes:
- Stores the parent window to make it available via
GetParent
.
Input |
Type |
Description |
self |
FCMCustomWindow |
|
parent |
`FCCustomWindow |
FCMCustomWindow |
Return type |
Description |
number |
|