Jump to content
Server Maintenance This Week. ×

Function to return Layout width (NOT window width)


James Gill

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

Recommended Posts

Is there a function that I can use that will return the width of a specified Layout and NOT the current window width?  I'm running into layout sizing issues and want to create a way to resize a window but only if the destination layout is larger than the layout that I am coming from.  I'd like to avoid having to Resize the window to get the Layout width.

Link to comment
Share on other sites

Hey James,

Create an invisible box or line on your layout, stretch horizontally the width of your layout, then name the object "width_box". Mae sure it is butted up to left edge and the right anchor  is not checked (not to stretch with window change)

Now you can use:

GetLayoutObjectAttribute ( "width_box" ; "width" )

to grab the actual width of the layout.

Does that work? If not, more details.

Edited by dwdata
  • Like 1
Link to comment
Share on other sites

This topic is 3190 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.