delphi - How to get screen size in Firemonkey FM3? -
how screen dimensions firemonkey fm³ ? following code:
var size: tpointf; begin size := fmx.platform.ifmxscreenservice.getscreensize; ... end;
results in compiler error:
[dcc32 error] unit1.pas(46): e2018 record, object or class type required
how should use ifmxscreenservice
interface screen size ?
try :
var screensize: tsize; begin screensize := screen.size; caption := inttostr(screensize.width) + '*' + inttostr(screensize.height); end;
Comments
Post a Comment