July 26, 200619 yr Is there a way to control the location and size of a field on a layout in a script? I would prefer not to use a plug in, but I am open to it if it will get the job done. I have 8.5 adv. Thanks Edited July 26, 200619 yr by Guest
July 26, 200619 yr Then what exactly is the use for a functions such as: GetLayoutObjectAttribute("MyField","bounds") ? ? ?
July 26, 200619 yr This free tutorial MAY have your answer: http://www.filemakermagazine.com/modules.php?op=modload&name=News&file=article&sid=625&mode=thread&order=0&thold=0
July 27, 200619 yr Look at the online help for GetLayoutObjectAttribute and you'll see there's more to it than just the position and size of the object: container data type; URL of the web viewer; which object has focus; etc. The size/position info doesn't seem quite so useful. I can imagine possibly testing for the position and width of a given object and then resizing the window based on that. AFAIK scripts don't work at all in layout mode, they will always put you back in Browse by default, or Find or Preview if the script specifies that. Since moving objects around requires Layout mode, this would be a big departure for scripting. I don't think we'll see this ability any time soon.
July 28, 200619 yr The size and location of a field cannot be controlled dynamically. The GetLayoutObjectAttribute() function is a way of finding out where a layout object is, its size etc. Not for controlling the object.
Create an account or sign in to comment