Some controls are not yet available in the Linux framework: TreeView, TreeView Table, Bar Code and Shape controls, for example.
At runtime in Linux, if one single control is not supported in the window, none of the controls will be displayed and a WLanguage error will occur.
In this case, several possibilities exist.
The control can be deleted
It is a "minor" control (the Shape control for example, used to identify areas in the UI). You can choose to depending on the case:
- delete it,
- replace it by an image or by an "empty" static with a border.
The control can be moved
It is an important control that cannot be deleted but that can be moved into another window (a Bar Code control for example). In this case, you must:
- create a new window intended to the display of the control.
- move the control into this new window.
- add into the source window a button used to open the created window. This button must not be accessible in Linux.
The control cannot be deleted or moved
It is an important control that cannot be deleted or moved (a TreeView control or a TreeView Table table for example). In this case, the only solution consists in duplicating the window in order for each configuration to have its OWN window.
To duplicate a window:
- In the window editor, go to the "Home" tab, "General" group, expand "Save" and select "Save as".
- Give a new name to the window. A suffix can be added to the name according to the platform ("WIN_ CustomerForm_Linux" for example).
- Use a conditional target-code to call the window adapted to the runtime platform.
Caution: This solution must be used with care and only for windows that contain a few lines code and UI elements. Indeed, once the window is duplicated, all the modifications, corrections, ... must be performed twice, with the risk of forgetting some of them.