Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

How can I control the location and size of a field on a layout with a script?


This topic is 6694 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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 by Guest
Posted

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

Posted

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.

Posted

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.

This topic is 6694 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.