Printer Form Font (PAR 67048)
For printer-style forms in JADE 7.1 and earlier releases, controls were given the default font Arial 10. In JADE 2016, controls added to printer-style forms are given the default font Tahoma 10, and all new printer forms or all new controls added to printer forms default to Tahoma. This default is hard-coded and cannot be changed.
From version 2018.0.02, JADE has been changed to provide you with the ability to define default property values for new controls added to a printer form in the JADE Painter.
The following new methods are available.
-
RootSchema Window class setDefaultPainterControlProperties method
-
RootSchema Form class isPrinterForm
The setDefaultPainterControlProperties method does nothing, by default. The JADE Painter calls this method on any new control created in the painter. You can re‑implement this method and set default property values to meet your requirements.
The base method is declared in the Window class so that you can re‑implement the method in the Control class in your schema to set any control properties. You can also re‑implement the method on any Control subclass, to set properties on a specific control subclass; for example, Frame.
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. This method then allows the setDefaultPainterControlProperties method re‑implementation to set properties only on a printer-style form, for example.
The following method is an example of these methods.
setDefaultPainterControlProperties();
begin
if self.form.isPrinterForm() then
self.fontName := "Arial";
endif;
end;
For more details about printer-style forms in the JADE Painter, see "
