ddinisco Posted March 11, 2018 Posted March 11, 2018 I am trying to position a new card window on the right edge of the window that it is being opened from. My calc for the FromLeft card setting is (Get (WindowLeft) + Get(WindowWidth). This only works (no gap between windows) when the originating window is all the way to the left of the screen. The more the originating window gets from the left of the screen the larger the gap between the two windows. I have also tried hardcoding the second value Get(WindowLeft) + 80 and it produces the same results. Not sure why this is not working.
Ocean West Posted March 11, 2018 Posted March 11, 2018 Try setting $width $left and $top as variables at the top of the script before you open the card then in the card use $left + $width by the time the card is open your getting the values from the card itself not the parent window.
ddinisco Posted March 11, 2018 Author Posted March 11, 2018 Sorry forgot to mention that I tried that too. Still does not work.
ddinisco Posted March 12, 2018 Author Posted March 12, 2018 Yep that works. So does FromLeft mean from left of window? I thought it meant from screen left. Thanks for the help.
Ocean West Posted March 12, 2018 Posted March 12, 2018 Left is from edge of window measured from left edge of screen. Your adding to it the width of the current window + any margin.
Recommended Posts
This topic is 2448 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 accountSign in
Already have an account? Sign in here.
Sign In Now