7.4 Custom widgets
7.4.1 Defining custom widgets
Description
User-specific display elements are configured in the dialog using a custom widget.
Software option
In order to use custom widgets in dialog boxes, you require the following additional
software option:
"SINUMERIK Integrate Run MyHMI /3GL" (6FC5800-0AP60-0YB0)
Programming
Definition: DEF
(name)
Syntax: (W///"","
(library name)
.
(class name)
"/////
a
,
b
,
c
,
d
);
Description: W Defining custom widgets
Parameters:
Name Custom widget name, freely selectable
Library name Can be freely selected, name of the dll (Windows) or
(Linux) library file
Class name Freely selectable, name of the class function from the
previously named library
a, b, c, d Position and size of the configuration
Example
A custom widget is defined in the dialog configuration in the following way:
DEF Cus = (W///"","slestestcustomwidget.SlEsTestCustomWidget"/////
20,20,250,100);
7.4.2 Structure of the custom widget library
Description
Essentially, the custom widget library contains a defined class. The name of this class must
be specified in the dialog configuration in addition to the library names. Starting from library
names, "Run MyScreens" accesses a dll file with the same name, e.g.:
slestestcustomwidget.dll
Graphic and logic elements
7.4 Custom widgets
SINUMERIK Integrate Run MyScreens (BE2)
206 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1