Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - objExplorer

Reply
 
Old 08-27-2009   #1 (permalink)
James


 
 

objExplorer

Are there any other attributes for objExplorer other than...

objExplorer.ToolBar = 0
objExplorer.MenuBar = 0
objExplorer.StatusBar = 0
objExplorer.Resizable = 0
objExplorer.Width = 370
objExplorer.Height = 301
'objExplorer.Left = 0
'objExplorer.Top = 0
objExplorer.Visible = 1

I am looking to: Get rid of the scroll bar completely. Get rid of the
minimize/maximize/exit buttons in the top right. Get rig of any white space
surrounding my image file that I am displaying, which I would guess would be
a padding type issue and to center the window in the middle of the users
screen no matter what size or resolution they are running. I have done some
searching, but the above is all I could find. If anyone send me a direct
link that has more or if you have your own code that shows this I would be
greatly appreciated.

James



My System SpecsSystem Spec
Old 08-27-2009   #2 (permalink)
Tom Lavedas


 
 

Re: objExplorer

On Aug 27, 1:59*pm, "James" <donotemai...@xxxxxx> wrote:
Quote:

> Are there any other attributes for objExplorer other than...
>
> objExplorer.ToolBar = 0
> objExplorer.MenuBar = 0
> objExplorer.StatusBar = 0
> objExplorer.Resizable = 0
> objExplorer.Width = 370
> objExplorer.Height = 301
> 'objExplorer.Left = 0
> 'objExplorer.Top = 0
> objExplorer.Visible = 1
>
> I am looking to: *Get rid of the scroll bar completely. Get rid of the
> minimize/maximize/exit buttons in the top right. *Get rig of any white space
> surrounding my image file that I am displaying, which I would guess wouldbe
> a padding type issue and to center the window in the middle of the users
> screen no matter what size or resolution they are running. *I have donesome
> searching, but the above is all I could find. *If anyone send me a direct
> link that has more or if you have your own code that shows this I would be
> greatly appreciated.
>
> James
The Internet Explorer title bar and min/max/close buttons are all off
limits in IE7+.

The other parameters are NOT part of the browser's properties, but
rather part of the document contained within the browser's window.
They can be removed using DHTML code or by applying the proper
property to the loaded page. If that page is 'about:blank', to remove
the scroll bar, try adding this line ...

set oIE = createobject("InternetExplorer.Application")
oIE.document.body.scroll = "no"

To add it to the <BODY> tag use ...

<body scroll=no>

Padding is ...

oIE.document.body.style.padding = 0

To remove the title bar requires either the FULLSCREEN=True statement
(IE before 7) and then use a statement like

document.parentwindow.RESIZE newx,newy

or switch to an HTA, which can be configured without that stuff.

On line documentation for the DOM (document object model) for DHTML is
at:
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
_____________________
Tom Lavedas
My System SpecsSystem Spec
Old 08-27-2009   #3 (permalink)
James


 
 

Re: objExplorer

Thanks Tom

"Tom Lavedas" <tglbatch@xxxxxx> wrote in message
news:9176b225-6881-4239-854d-bd9f5ce8272d@xxxxxx
On Aug 27, 1:59 pm, "James" <donotemai...@xxxxxx> wrote:
Quote:

> Are there any other attributes for objExplorer other than...
>
> objExplorer.ToolBar = 0
> objExplorer.MenuBar = 0
> objExplorer.StatusBar = 0
> objExplorer.Resizable = 0
> objExplorer.Width = 370
> objExplorer.Height = 301
> 'objExplorer.Left = 0
> 'objExplorer.Top = 0
> objExplorer.Visible = 1
>
> I am looking to: Get rid of the scroll bar completely. Get rid of the
> minimize/maximize/exit buttons in the top right. Get rig of any white
> space
> surrounding my image file that I am displaying, which I would guess would
> be
> a padding type issue and to center the window in the middle of the users
> screen no matter what size or resolution they are running. I have done
> some
> searching, but the above is all I could find. If anyone send me a direct
> link that has more or if you have your own code that shows this I would be
> greatly appreciated.
>
> James
The Internet Explorer title bar and min/max/close buttons are all off
limits in IE7+.

The other parameters are NOT part of the browser's properties, but
rather part of the document contained within the browser's window.
They can be removed using DHTML code or by applying the proper
property to the loaded page. If that page is 'about:blank', to remove
the scroll bar, try adding this line ...

set oIE = createobject("InternetExplorer.Application")
oIE.document.body.scroll = "no"

To add it to the <BODY> tag use ...

<body scroll=no>

Padding is ...

oIE.document.body.style.padding = 0

To remove the title bar requires either the FULLSCREEN=True statement
(IE before 7) and then use a statement like

document.parentwindow.RESIZE newx,newy

or switch to an HTA, which can be configured without that stuff.

On line documentation for the DOM (document object model) for DHTML is
at:
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
_____________________
Tom Lavedas


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
objExplorer window VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46