Appeon Resize PBL

PowerBuilder uses absolute layouts, which means, the controls within the window will not change its position and size when the screen size changes. This may create UI problems when a window is displayed on different screen sizes, especially on mobile screens which are much smaller than PC screens. One window that looks perfect on the tablet may be too large to display completely on the smartphone. Even for smartphones which have slightly different screen size, it is difficult to design a window that fit perfectly with all these different sizes.

Using the Resize PowerScript function or the PFC resize service may be a way out, however, it would be some work to write code to control the size and location of each individual control within the window. Considering this, Appeon extends the functionality of Resize PowerScript function and the PFC resize service to greatly simplify coding and automate most of the tasks.

The extended functions are packaged into several objects in a PBL called appeon_resize.pbl which is provided in the same folder as the Appeon Workarounds PBL under the Appeon Developer installation directory (for example, C:\Program Files\Appeon\Developer2015\appeon_workarounds125e):

  • eon_appeon_resize: this object provides you the greatest control and flexibility on the resizing of the window, controls, user objects, and font.

  • eon_cst_resize, eon_cst_resizeattrib, & eon_cst_resizecompose: these three objects are based on the PFC resize service and enhanced by Appeon to greatly reduce the complexity of coding. If you want to resize only the window and the user object container (not the controls and font), you can consider using these objects.

For more information about these object, refer to Appeon Resize PBL Reference in Workarounds & APIs Guide.