- Open your AL project folder in Visual Studio Code.
- The first thing we need to do is create the control add-in AL object. In the Explorer, create a new file named Television Control AddIn.al and enter in the following code in the Editor tab:
controladdin TelevisionControlAddIn{ RequestedHeight = 75; MinimumHeight = 75; MaximumHeight = 75; RequestedWidth = 300; MinimumWidth = 300; MaximumWidth = 300; VerticalStretch = true; VerticalShrink = true; HorizontalStretch = true; HorizontalShrink = true; StartupScript = 'ControlAddIn/startup.js'; Scripts = 'ControlAddIn/controlAddIn.js'; StyleSheets = 'ControlAddIn/style.css'; procedure SetTelevisionShow(TelevisionShow: JsonObject); event ControlReady();}
You can use the tcontroladdin ...