I have been beating my head against the wall on this one for too long!
I would like to mimic how a card window opens with a dialogue window.
It needs to center in the Parent Window and resize to the default Layout size.
Thank u in advance
It won't mimic it exactly.
Search threads on how to center a window.
For the window size, I usually pop open the window as a modal window, allowing resizing.
I then put a couple of formula in the data view for window height and window width.
I adjust the modal window, refresh the data viewer, and note the dimensions.
Then I go back into the script to where it opens the new window, put in those dimensions for width and height, and use the formulas for Left and Top to center the window. You can also use Resize, adjust to fit. But if it's a list view window, you'll have to consider scroll bars showing/not showing, and rely on a fixed window height.
Is there a reason why you don't want to use a Card window?
Do you mean something like this
Retrieving data ...