-1

I need to make web-app work as windows full screen app.

In Microsoft Internet Explorer - 11 (last) for PC (Windows-7), full screen mode, with a button to close it.

.

The first task is a fullscreen mode.

I can make fullscreen easily (Thanks to another question here)

window.open ("mapage.html","","fullscreen=yes");  
window.open('','_parent','');  
window.close();

It work perfectly but only for "localhost", once I put files to the server the 'fullscreen' appears to be not fully fullscreen, but it also shows window header with /close/ and /minimize/ buttons and the /address bar/. And it reveals IE.

.

The second task is a button to close it. Luckily IE window may be closed with simple

window.close(); 

But IE asks approval and it reveals itself. I find a way to bypass it with the code from above that I use to make IE work in fullscreen. Unfortunately, I cannot use this fullscreen solution. So If there would be another, please, take to account that I would need the close button for all application.

Community
  • 1
  • 1
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191

1 Answers1

0

Ok, this is what I came up with:

Option 1

Use something to run Internet Explorer in kiosk mode.

like a .bat file

"%ProgramFiles%\Internet Explorer\iexplore.exe" -k "http://google.com/"

or Delphi (to have an .exe file):

var filename, parameters: string;
begin
  filename := '"iexplore.exe"'; 
  parameters := ' -k "http://google.com/"';
  ShellExecute(handle,'open',PAnsiChar(filename), PAnsiChar(parameters), nil , SW_MAXIMIZE);  
end;

Option 2

Use Delphi with EmbeddedWB component.

EmbeddedWB1.Navigate('http://google.com/');

One string of code and I have my own browser with or without address panel.

Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191