a) How do I make a titlebar visible? If I do get a titlebar does it also have a closebox to quit the app? When I compiled this stack, I discovered there was no Quit/Exit! Do I have to explicitly write a Quit handler?
b) I thought I'd try to make it draggable by adding an object with the following code; it tries to work, but the window jumps rapidly back and forth, as though another msg was trying to put it back where it was while this script is moving it. Ideas for a better way?
Code: Select all
on mouseDown
-- store the window location
put the location of this stack into L -- x,y
put item 1 of L into locH
put item 2 of L into locV
-- store the mouse location
put the mouseH into mH
put the mouseV into mV
repeat while the mouse is Down -- add delta mouseloc to window loc
put locH + (the mouseH - mH) into item 1 of newStackLoc
put locV + (the mouseV - mV) into item 2 of newStackLoc
set the location of this stack to newStackLoc
put newStackLoc
end repeat
end mouseDown