Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Dynamic Font Size  (Read 16407 times)
Asnidzal M.
Posts: 28


« on: April 04, 2014, 12:06:52 pm »

Hi,

Is it possible to control font size in one 4rp, just using any OO build-in class for GRW(using coding in 4gl) ?
Alex G.
Four Js
Posts: 155


« Reply #1 on: April 04, 2014, 12:34:44 pm »

Hi,
>Is it possible to control font size in one 4rp, just using any OO build-in class for GRW(using coding in 4gl)
i am not sure that I correctly understand the question.
In case that you want to change the font size of a report based on the value of 4GL variable then this is straightforward since the "Font Size" property can be set by a RTL expression and populated from 4GL variables like any other property.
Example:
In the 4GL report we introduce and ship a "fontSize" variable as follows:
REPORT myreport(fontSize,..)
..
DEFINE fontSize INTEGER
FORMAT
ON EVERY ROW
    PRINT fontSize, ...
END REPORT

In the report design on the page root we set the RTL expression "fontSize" for the property "Font Size".
Since "Font Size" is inherited, all object in the report that do not override the default value will use that value.
In addition to that you can have object further down the document tree use a derived "Font Size" value by specifying an expression like "110%" or "80%".
Regards,
Alex
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines