forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


FULL SCREEN not MAXIMIZED (need to remove tool bar actually)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sun Feb 10, 2008 7:11 pm    Post subject: FULL SCREEN not MAXIMIZED (need to remove tool bar actually) Reply with quote

Hi
I'm still trying to find a way to get FULL SCREEN not to
be confused with MAXIMIZED WINDOW.

< Mostly Concerning IE 5 or 6 >
Could just remove the toolbar probably(like an .HTA view)
.HTA is not switchable as far as the toolbar.
Speaking of .HTA I know its not posible but I would also like to be able to
use a VDS EXE with regular HTML buttons locally only.
I've tried Java etc.. but I dont like the RUN/OPEN confirm DIALOG.
<button style="valign:center; align:center; cursor: pointer; width:70; height:28"
onClick="window.location='VDSprog.exe'" style="color: red">Load VDS program</button>


I've been stuck with using:
WINDOW SEND,targetWINDOW,@alt(@KEY(f11))
The above is a workable but flimzy way to do it.

I found this info at a webpage:
It’s actually quite easy to do it in Cocoa…. by subclassing NSWindow (playing a bit with its initWithContentRect:styleMask:backing:defer: method); no need to “hide” the menu bar, just set the window’s level to something higher than NSMainMenuWindowLevel. This is actually how most 3rd party apps are implementing the FSM. Look for example at VLC: when you’re in FSM hit Shift+Command+F11 to actually slow down the Exposé effect and find out that the full screen view is nothing more than a “normal” window.

I would like an API or DLL function to do this if posible.
Thanks for reading Cool
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Feb 10, 2008 10:29 pm    Post subject: Re: FULL SCREEN not MAXIMIZED (need to remove tool bar actua Reply with quote

vtol wrote:
I found this info at a webpage:
It’s actually quite easy to do it in Cocoa…. by subclassing NSWindow (playing a bit with its initWithContentRect:styleMask:backing:defer: method); no need to “hide” the menu bar, just set the window’s level to something higher than NSMainMenuWindowLevel. This is actually how most 3rd party apps are implementing the FSM. Look for example at VLC: when you’re in FSM hit Shift+Command+F11 to actually slow down the Exposé effect and find out that the full screen view is nothing more than a “normal” window.


Your info from that web page is for Mac OS and not windows.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Mon Feb 11, 2008 7:10 am    Post subject: Reply with quote

Are you trying to hide the Windows Taskbar?

Create your application and set the form to the width and height of the desktop. Also set your form with an ONTOP style.

You can use the dll vdssave which has a hidetaskbar command to hide the windows taskbar.
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Feb 11, 2008 6:31 pm    Post subject: Reply with quote

PGWARE wrote:
Are you trying to hide the Windows Taskbar?

Create your application and set the form to the width and height of the desktop. Also set your form with an ONTOP style.

You can use the dll vdssave which has a hidetaskbar command to hide the windows taskbar.


The same can be done with the taskbar hide and taskbar show commands Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Feb 11, 2008 9:43 pm    Post subject: Reply with quote

Wish there was money in misleading people, I would be rich Very Happy

Naa
I need to remove the top bar that contains the FILE EDIT VIEW etc..
what ever it is called, not sure.
But this is not for my VDS program, I'm trying to do it to IE frame window(IE5 or6 window).
My wanted outcome is same result as hitting F11 (Full Screen) in explorer.

FULL SCREEN = remove a ? bar + maximize... Twisted Evil
but the maximize part I can handle...

I appologize for being so misleading.
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Feb 11, 2008 10:55 pm    Post subject: Reply with quote

Vtol,
Here is a link to some JavaScript

http://javascriptkit.com/script/cut125.shtml

You can also take a look at this link which is the MSDN page for the Window Object's Open method. They have an example that shows how to open a browser window without the menu, toolbar, or address field.

http://msdn2.microsoft.com/en-us/library/ms536651.aspx

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 12, 2008 1:21 am    Post subject: Reply with quote

I've allready tried all those, which created the Active Content Warning, which I have trouble enabling and disabling by way of REG.

If I TIC the setting in Advanced Internet Settings everything works perfect.
But if I do it in REG manually, nothing happens.
Its like when I TIC it in the Advanced Internet Settings, it changes more than 1 setting in REG or knows how to handle it better.

Below is the REG that should disable the warning 0:
REGISTRY WRITE,HCU,Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN,iexplore.exe,0,DWORD

RAW form:
HKCU \ Software \ Microsoft \ Internet Explorer \ Main \ FeatureControl \ FEATURE_LOCALMACHINE_LOCKDOWN

Below is example test:
Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function openindex()
      {
OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>TEST</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=blue>")
OpenWindow.document.write("<h1>Hello!</h1>")
OpenWindow.document.write("This text will appear in the window!")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")

OpenWindow.document.close()
self.name="main"
     }
</SCRIPT>
</head>
<body>
</body>
</html>


Also tried the MARK of the:
<!-- saved from url=(0018)http://www.vtol.us -->

But until I can handle the REG switching, Good Java is useless here Sad
Back to top
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Feb 12, 2008 4:50 am    Post subject: Reply with quote

Vtol,

In your javascript example, you <body> tag should look like::
Code:
<body onload="openindex();">


This will call your openindex() function when the document is loaded into
the browser. Javascript, if I'm not mistaken, is not allowed to open any
windows if there isn't a browser window opened already that is associated
with the calling process.

The above goes in your standalone <body> tag, not in the OpenWindow.document.write("<BODY>...") code Smile

One other thing, to simply open a browser window without all the junk,
just specify the width and height attributes in the .open() function.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Feb 12, 2008 2:56 pm    Post subject: Reply with quote

Bill,
He is working with HTA and I think the rules are a little different for those. I have not worked with HTA in a long time so my memory is a bit fuzzy.

vtol,
Is it the first browser window or a pop up window that you are trying to show full screen? Sorry forgot to ask that yesterday.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Feb 12, 2008 4:25 pm    Post subject: Reply with quote

vtol,
I don't know if this will help but you can launch IE with the -k command line parameter which will put IE in kiosk mode when it is opened.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 12, 2008 5:23 pm    Post subject: Reply with quote

Sorry, I guess I'm trying to accomplish several things in this post.

HTML not HTA (sorry I confuse things)

For now I would just like to open 1 window(test.html) in its own window and be able to remove the toolbar or menu bar.

In other words just be able to control 1 page, not 2 windows.

Is below even close to what I want above?
Code:
<!-- saved from url=(0018)http://www.vtol.us -->
<html>
<head>
<title>TEST</title>
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('TEST.html', 'newwindow', config='height=500,
width=700, toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no')
-->
</SCRIPT>
</head>

<body onload="openindex();">

</body>
</html>


I tried below, did not do anything, guess I'm a numbskull Embarassed
Code:
<!-- saved from url=(0018)http://www.vtol.us -->
<html>
<head>
<title>TEST</title>
<SCRIPT LANGUAGE="JavaScript">
function openindex("height=250;width=250;toolbar=no")
</SCRIPT>

</head>

<body>

</body>
</html>


hmm below is too much removed or too full screen:
iexplore -k "C:\work folder\test.html"

I guess what I really want is just to remove the toolbar or the menu bar.
I want it to look like .HTA but be .HTM or HTML (I'm so greedy Cool )
Back to top
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Feb 12, 2008 7:55 pm    Post subject: Reply with quote

Try this out Vtol. Only catch is that you will get prompted to confirm
closing the window that first opened when you clicked on the html file.

Code:

<html>
<head>
  <title>Test Document</title>
  <script language="javascript">
    function winOpen()
    {
     
      var newWin = window.open("","TestJSWnd","width=500, height=500");
      newWin.document.write("<center><h1>Hello There!!!</h1></center>");
      newWin.document.write("<br><br><center>This is your new browser window</center>");
      top.close(true);
      return;
    }
  </script>
</head>
<body onload="winOpen()">
<center><p>Some content for this test</p></center>
</body>
</html>

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 12, 2008 8:22 pm    Post subject: Reply with quote

Thats like the one that I had the other day, but I cant figure how to get rid of that nag warning Laughing

Heres another one I got to work, maybe it can be modified:
Code:
<html>
<head>
<script>
function showPopup() {
    window.open('test.html',null,"width=600,height=400,toolbar=no");
     return false;
}

window.onload = function () {
   document.getElementById('popupLink').onclick = showPopup;

</script>
</head>

<body>

<a id="popupLink" href="test.html" target="_self">hmmm!</a>

</body>
</html>


If VDS6 Browser was up to date on Flash, I would not be having to mess with this Java crap Wink
Newer .SWF flash files are laggy in the VDS6 Browser...
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 12, 2008 8:42 pm    Post subject: Reply with quote

Hey this works pritty good but why does it garble the border?
Code:
<html>
<head>
</head>
<body onLoad="window.open('test.html', '', 'toolbar=no, scrollbars=auto'); window.opener=null; window.close(); return false;">
</body>
</html>
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 12, 2008 9:19 pm    Post subject: Reply with quote

I tinkered some more and I think this will work for now:

Code:
<html>
<head>
<script type="text/javascript">
window.onload = function() {
   window.moveTo(220, 150);
   window.resizeTo(width=700,Height=500);
}
</script>
</head>
<body bgcolor="silver">
<font color=white><font size="5"><B><I>Weeeeeee</B></B></font>
</body>
<script tyle="text/javascript">
if (document.body.clientHeight!= 500)
{
window.open(document.location,"","menubar=no,toolbar=no,status=no,scrollbars=no,height=500,width=700");
window.opener = "me";
window.close();
}
</script>
</html>


I forgot to say I messed around with the VDSDLL START which helps:
dll start,max,open,%%target
Maybe I missed something in the advanced SHELL attributes, never saw a toolbar attribute.

Thanks for all your alls help and anyother future help Mr. Green
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group