HEScript Function for Maximize and Minimize

Hello,

I would like to create my own button to minimize maximize and exit.
It is allready done for exit.
Can you please tell what are the HEscript codes for minimize and maximize ?

Thank-you,
Gilbert

Hi,

I can resize window using:

SetUIProp(“fview”,“Width”,“800”);
SetUIProp(“fview”,“Height”,“400”);
SetUIProp(“fview”,“Top”,“30”);
SetUIProp(“fview”,“Left”,“30”);

But the following message appear:
Fatal Error: Could not convert variant of type (Null) into type (OleStr). Please reload the page.

How can i get ride of this error and how can i resize in full screen ?

Thank-you !

Ok, it resolved for the error, i forgot to echo exo_runhescriptcom.
But i still don’t find the way to maximize fullscreen…

Full screen isn’t directly supported by HEScript because several properties of the window must be modified.

Ok, i will use javascript to get screen resolution and pass it in procedure.

Thank-you,
Gilbert

Hello Gilmichel,

How does your exit procedure and php looks like?
Mine is not working. (reload works while exitpublication not);

procedure Recargar;  //this works
begin
ReloadPage; 
end; 


 procedure cerrarPrograma;// not working
 begin  
 ExitPublication;
 end;


//cerrarPrograma.php
 <?php 
   $cerrar = exo_runhescriptcom("UserMain.cerrarPrograma");
  echo $cerrar;
  ?>


 //html
 a href="#" onclick="cerrarWindow()">cerrar</a


 //javascript
 function cerrarWindow() {
$.get("cerrarPrograma.php");
return false;
}

I’m trying to make my own buttons for exit, minimize, maximize too.

Thank you

ExitPublication has a bug in the current Beta of ExeOutput 2. It is solved in next Beta.