View Full Version : Anything like defaultTop and defaultLeft??
09-14-2006, 05:19 PM
Does anyone know if there is any function that store the default top and default left coordinates of any element?? I mean that if any object has been moved dynamically from 8,8 to 300,300 by pressing a button and there is another button named "set to default" then how can I send the element back to 8,8?? Is there anything functions like defaultTop and defaultLeft?? Any help would be greatly appreciated.
Store the top and left before you move it.
09-14-2006, 05:25 PM
I am already using a drag and drop.
09-14-2006, 05:37 PM
Any help would be greatly appreciated.
Attaching my happy creativity: use what you like- PD :)
09-14-2006, 05:48 PM
ItsMeOnly: You've attached the script(Thank you for that) but you did not tell me how or what to use.
09-14-2006, 06:22 PM
there are moveWin functions, resize*, minimize, and maximize that can solve your problems. I'm building set of associative arrays that are being updated with dimensions as the actions are taken, with a little of rewriting, you could use it for "setting default" (check minimize and maximize :: (maximized = 0)) and "restoring default" check (maximize :: (maximized = 1)) position (AND dimensions!)
09-14-2006, 06:28 PM
ItsMeOnly: May be you didn't get my point but my query has nothing to do with window object.
09-14-2006, 06:44 PM
a "window" here is nothing but "any object (that) has been moved dynamically"
you're given a set of functions to move it, store its position and dimensions, even track size of child elements if they would overflow after its size would have changed
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.