If the painter was invoked by FORM DEFINE, then all form field, menu and menu item objects can be added. If the form does not already exist (i.e. there is no definition data for it in the Zim Data Dictionary) the paint window contains no form fields. If the form does exist, the painter loads and displays the form's form fields within the paint window. For a form to exist, it must own at least one form field. In FORM DEFINE, the form itself is not visible. The form is implicitly considered to be the client area of the window. Hence resizing the window also resizes the form.
If an association had previously been established between the form and a particular window, then that window is loaded as the paint window. If the association includes a reference to a particular menu, then that menu is also loaded and displayed within the paint window.
Related Information