[Scilab-users] Functions to retrieve system configulation on Mac OS

Calixte Denizet calixte.denizet at scilab-enterprises.com
Mon May 11 10:03:01 CEST 2015


Hi jaipur,

i) you could use get function: 
http://help.scilab.org/docs/5.5.2/en_US/root_properties.html
ii) you can use Java to retrieve more complete info:

function y = getScreensSize()
   jimport("java.awt.GraphicsEnvironment");
   ge = jinvoke(GraphicsEnvironment,"getLocalGraphicsEnvironment");
   gs = ge.getScreenDevices(jvoid);
   y = zeros(gs.length, 2);
   for i = 1:gs.length
     dm = gs(i).getDisplayMode(jvoid);
     y(i,1) = dm.getWidth(jvoid);
     y(i,2) = dm.getHeight(jvoid);
   end
endfunction

With this function you can get the dimensions of all the connected screens.

Regards

Calixte

On 10/05/2015 08:19, jaipur wrote:
> There are functions to retrieve the specified system metric or system
> configuration setting as "getsystemmetrics" for Windows only in Windows
> tools.
> Is there alternative functions for Mac OS?
> Especially, I'd like to get screen size of the connected display to write my
> function to draw graph of proper size for all displays.
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Functions-to-retrieve-system-configulation-on-Mac-OS-tp4032222.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-- 
Calixte Denizet
Software Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
http://www.scilab-enterprises.com




More information about the users mailing list