SteveMyres Posted December 12, 2010 Share Posted December 12, 2010 I'd prefer to be able to specify and animate an objects size and position, well, exactly that way, IOW Left, Top, Width, Height, or L-B-W-H, rather than L-T-R-B. Is there a way to do that? Link to comment Share on other sites More sharing options...
AzeoTech Posted December 13, 2010 Share Posted December 13, 2010 Sure, create your own function to do it. It'd be pretty simple. Just have it take the name of the component and the four desired coords, then do the math and use execute() with the passed in name. Link to comment Share on other sites More sharing options...
SteveMyres Posted December 13, 2010 Author Share Posted December 13, 2010 Not really the same thing, at least in the simplest implementation of your recommendation. You'd still have to KNOW, and therefore think about, the values of the properties you don't want to change. My point in specifying those properties is that it seems to me they define the object along the axes you're most likely to want to change independently. Move it but keep the same size, leave the left or bottom anchored but change the size, etc. So your change becomes more "object oriented" in the sense that you don't have to calculate and offset the effect on other properties you don't care about. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 13, 2010 Share Posted December 13, 2010 There is a MoveBy() function of the control, otherwise you could design your own function to work the way you want. There are two trains of thought here: there are languages that offer lots and lots of functions that largely do the same thing (php is kind of like this), or there are languages that offer all the basic functions, and advanced functions for things that would be hard to do yourself (or slow in many cases for DAQFactory, like the search() function). We went the second route because truthfully, if you have lots and lots of functions, you can never remember what they are, and they still never do exactly what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.