Printer-style Forms
When you create a JADE form as a printer‑style form (that is, you select the Printer option button in the Form Style group box on the New Form dialog in the JADE Painter), you are declaring that the form will be used for printing. It will affect the way the form and controls are displayed in the JADE Painter, some default property values when the form and controls are created, and it will alter the appearance of the form and some controls when used as a web form.
The form can still be created and displayed as a normal GUI form.
When a form is created as a printer-style form, it has the following effects.
-
In the JADE Painter, if the value of the borderStyle property is BorderStyle_None (0), the following controls are drawn with a light border to show the extent of the control.
-
Label
-
Frame
-
JadeRichText
-
TextBox
-
-
Default properties are changed when the form is created or when a new control is added to the form, as follows.
-
Form
-
backColor = White
-
scaleForm = true
-
mdiChild = MdiChild_NotMdi (1)
-
-
Control
-
show3D = Show3D_Not3D (1)
-
foreColor = Black
-
fontName = Tahoma
-
fontSize = 10
-
-
Frame
-
backColor = White
-
borderStyle = BorderStyle_None (0)
-
bevelInner = 0
-
bevelOuter = 0
-
boundaryWidth = 0
-
caption = ""
-
-
-
If the form is displayed or printed as a JADE Web form, the HTML generated for the form does not include a border, a style, or a caption.
-
If the form is displayed or printed as a JADE Web form, the HTML generated for a Frame, JadeDockContainer, or JadeDockBar control allows overflow if the contents do not fit inside the container.
You can use the Form class
To set default properties on controls when a control is added to a form in the JADE Painter, re-implement the Window class
setDefaultPainterControlProperties(); begin if self.form.isPrinterForm() then self.fontName := "Arial"; endif; end;
2018.0.02 (Service Pack 1) and higher