setDefaultPainterControlProperties

setDefaultPainterControlProperties() userHook, updating;

The setDefaultPainterControlProperties method of the Window class is called by the JADE Painter whenever a new control is created.

You can re‑implement this method on the Control class or a Control subclass, to set any user default properties you require.

The Form class isPrinterForm method returns whether the form was declared as a printer form on the New Form dialog in the JADE Painter; that is, the Printer option button was selected in the Form Style group box. The isPrinterForm method then allows the setDefaultPainterControlProperties method re‑implementation to set properties only on a printer-style form, for example.

The following is an example of the re‑implementation of the setDefaultPainterControlProperties method.

setDefaultPainterControlProperties();
begin
    if self.form.isPrinterForm() then
        self.fontName := "Arial";
    endif;
end;

2018.0.02 (Service Pack 1) and higher