I've spent quite a while doing a search for this info, but it seems to be eluding me...
I have a "splash type" substack that I need to open in a certain position, based of the current location of the mainstack. (Possibly even based on the position of a certain control in the mainstack in fact.) I cannot seem to be able to find the coordinates of the main window or specific control once it's been moved by the user.
Any tips as to where I can find this info in the documentation?
Thanks,
EZ
Controling the positioning of a substack when opened
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
put the location of stack xyz -- based on the screen
put the location of [button|field|whatever] xyz -- based on the stack/card

Also possibly of use:
Code: Select all
put the screenLoc -- center of screen
put the screenRect -- rectangle of the screen
put the rectangle of this card -- rectangle of window, based on stack eg. 0,0,519,466
put the rectangle of this stack -- same, but based on screen, eg. 168,212,687,678
topleft property
bottomleft property
topright property
bottomright property
Said all that, maybe the "movestack" message is exactly what you want?
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode