Page 1 of 1 1
Topic Options
#86178 - 2002-06-18 07:25 PM $ie.resizeable = 0 not working?
Anonymous
Unregistered


Hello,

I'm trying to use a function to create an IE window that is not resizeable, but its not working... Has anyone got this to work?

Thanks,
AA

code:
 
$Window = IECreateWindow("This Damn Thing",300,300,640,480)




Function IECreateWindow($title,$left,$top,$width,$height, optional $html)
$ie = createobject("internetexplorer.application")
$ie.resizeable = 0
$ie.addressbar = 0
$ie.menubar = 0
$ie.toolbar = 0
$ie.statusbar = 0
$ie.top = $top
$ie.left = $left
$ie.width = $width
$ie.height = $height
$ie.navigate("about:blank")
while $ie.busy and $ie.readystate <> 4 and @error = 0 loop
$ie.document.body.scroll = no
if $html
$ie.document.write('$html')
else
$ie.document.write('<title>$title</title>')
endif
$ie.document.body.bgcolor = "threedface"
$ie.document.body.border = "1px solid #cccccc"
$IECreateWindow = $ie
$ie.Visible = 1
while setfocus("$title") <> 0 loop
EndFunction


Top
#86179 - 2002-06-18 07:42 PM Re: $ie.resizeable = 0 not working?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
To quote NetSuper...

by adding:
$ie.fullscreen = 1

before:

$ie.menubar = 0

will set the fullscreen property but the width and height coming after will restrict it back to those parameters. It will then be the size you want with no borders.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#86180 - 2002-06-18 07:56 PM Re: $ie.resizeable = 0 not working?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did it!

I added after title the body start tag!
it does not permit even move when i put it like:
code:
Function IECreateWindow($title,$left,$top,$width,$height, optional $html)
$ie = createobject("internetexplorer.application")
$ie.addressbar = 0
$ie.menubar = 0
$ie.toolbar = 0
$ie.statusbar = 0
$ie.top = $top
$ie.left = $left
$ie.width = $width
$ie.height = $height
$ie.navigate("about:blank")
while $ie.busy and $ie.readystate <> 4 and @error = 0 loop
$ie.document.body.scroll = no
if $html
$ie.document.write('$html')
else
$ie.document.write('<title>$title</title><body>')
endif
$ie.document.body.bgcolor = "threedface"
$ie.document.body.border = "1px solid #cccccc"
$ie.document.body.onclick = "$$ie.left=$left $$ie.top=$top $$ie.width=$width $$ie.height=$height return"
$IECreateWindow = $ie
$ie.Visible = 1
while $ie.visible $=execute("$$ie.doevents=1") loop
EndFunction

try it out...

cheers,
_________________________
!

download KiXnet

Top
#86181 - 2002-06-18 07:59 PM Re: $ie.resizeable = 0 not working?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh,
It probably would be nice to access something on the window. then the line should be
$ie.document.body.onresize = "$$ie.left=$left $$ie.top=$top $$ie.width=$width $$ie.height=$height return"
instead of onclick!
_________________________
!

download KiXnet

Top
#86182 - 2002-06-18 08:24 PM Re: $ie.resizeable = 0 not working?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Jooel,
Did you try out your code. I did and it doesn't work for me.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#86183 - 2002-06-18 08:38 PM Re: $ie.resizeable = 0 not working?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Lan, this got me the first time too. Check your spelling ...

$ie.resizable = 0

-Shawn

Top
#86184 - 2002-06-18 08:41 PM Re: $ie.resizeable = 0 not working?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh, there are allways ppl who can tell...

did not even think about it, just thought it would not work and left it out.
_________________________
!

download KiXnet

Top
#86185 - 2002-06-18 10:05 PM Re: $ie.resizeable = 0 not working?
Anonymous
Unregistered


Doh! I just need a spell checker for notepad and I'll be all set. :-) Thanks shawn.

Regards,

AA

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 472 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.056 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org