If the new window is non-resizable you could group all the controls together and then do a loop to set the height of the new window and move the group.. I'd recommend locking the screen so you can set the topLeft of the new window and not have it bouncing all over the screen..

on mouseUp
  put the bottomLeft of me into tBL
  add the top of this stack to item 2 of tBL
  add the left of this stack to item 1 of tBL

  set the height of stack "Untitled 2" to 0
  set the topLeft of stack "Untitled 2" to tBL
  go to stack "Untitled 2" in a new window
  repeat for 10
    lock screen
set the height of stack "Untitled 2" to (the height of stack "Untitled 2" + 10)
    set the topLeft of stack "Untitled 2" to tBL
set the bottom of group 1 of stack "Untitled 2" to (the height of stack "Untitled 2")
    unlock screen
    wait for 1 milliseconds with messages
  end repeat
  lock screen
set the height of stack "Untitled 2" to (the height of group 1 of stack "Untitled 2")
  set the topLeft of stack "Untitled 2" to tBL
set the bottom of group 1 of stack "Untitled 2" to (the height of stack "Untitled 2")
  unlock screen
end mouseUp

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to