Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Minimum window size

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,41769
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Minimum window size
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Minimum window size - 1/6/2007 6:38:47 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Greetings fellows,

I'm working on a new project and it requires that the window doesn't go under a certain size (e.g. 300px by 300px) but remains resizable. Any ideas on how this could be done? I've been playing around with <body onresize="blah"> but this doesn;t always work, according to microsoft:

quote:

"Windows blocks these functions by using a script when the mouse button is down. If the mouse button is down, Windows considers the operation to be a drag operation and blocks any move or resize functions. "


Some of the computers I've tested on seem to work, others don't and throw an error.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch
 
 
Post #: 1
 
 RE: Minimum window size - 1/6/2007 7:42:32 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
im not sure about restricting the size, but you could use the onresize() event to check for it...

reference:
http://www.w3schools.com/jsref/jsref_onresize.asp

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to TNO)
 
 
Post #: 2
 
 RE: Minimum window size - 1/6/2007 8:07:58 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Thanks but I figured out what the problem was. I was using showModalDialog and I didn't realize that it used its own set of attributes: dialogWidth & dialogHeight

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to kirrilian)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Minimum window size Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts