[Pas2js] TJSScreen missing definition

warleyalex warleyalex at yahoo.com.br
Tue Oct 30 22:34:51 CET 2018


window.screen.height/width is missing!

Instead of

  TJSScreen = class external name 'Screen' (TJSObject);

I had defined this:

  TJSScreen = class external name 'screen' (TJSObject)
  private
    FavailHeight: Integer;
    FavailWidth: Integer;
    FcolorDepth: Integer;
    Fheight: Integer;
    Fwidth: Integer;
  public
  { Properties declarations }
    property availHeight: Integer read FavailHeight;
    property availWidth: Integer read FavailWidth;
    property colorDepth: Integer read FcolorDepth;
    property height: Integer read Fheight;
    property width: Integer read Fwidth;
  end;     



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list