I have a stack that uses the windowshape property so it no longer has the title
bar. What is the handler I should use to allow the user to drag the stack
around? I have a background image that the user could click and drag for moving
the window.
Thanks,
Bill Vlahos
Hi..
Would this help you...
on mouseDown
-- place the window into the MacOS X dock
if the optionKey is "down" then
set the iconic of this stack to true
exit mouseDown
end if
-- find the position of the window and the mouse
put (item 1 of the loc of this stack) - (item 1 of gl
Hey Bill,
I use the following - probably gleaned from Scott Rossi. Put it in the
stack or card script:
local allowDrag
on mouseEnter
put "" into allowDrag
end mouseEnter
on mouseDown
if word 1 of the target = "card" then put mouseLoc() into allowDrag
end mouseDown
on mouseMove X,Y
Bill,
here's mine...
on mouseDown
if "button" is not in the name of the target then grabWindow
else pass mouseDown
end mouseDown
on grabWindow
if the platform is "MacOS" and (the decorations of the \
defaultStack contains "title" or the decorations of the \
Hi Marty,
The problem with your solution is that there is a lag between the window
location and the mouseLoc.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
New:
Mark,
As Richard Gaskin would say, "It works a treat."
Thank you,
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life
information with you, accessible, and secure.
On Jun 2, 2011, at 1:22 PM, Mark Schonewille wrote:
> Bill,
>
> here's mine