Opaque stack resizer
BNig
niggemann at uni-wh.de
Sat Jun 12 19:47:07 EDT 2010
Simon,
you might want to try "revChangeWindowSize" instead of setting the rect. I
have the impression that it is a bit smoother and maybe a tad faster then
setting the rect.
I have put this into a button, could be a graphic or image also
--------------
local sResize, sXDiff, sYDiff
on mousedown
put true into sResize
put the clickloc into tClick
put the width of this card - item 1 of tClick into sXDiff
put the height of this card - item 2 of tClick into sYDiff
end mousedown
on mouseMove x,y
if sResize then
put x + sXDiff into tNewX
put y + sYDiff into tNewY
revChangeWindowSize tNewX, tNewY
lock screen
set the right of me to the width of this card
set the bottom of me to the height of this card
unlock screen
end if
end mouseMove
on mouseUp
put false into sResize
end mouseUp
on mouseRelease
put false into sResize
end mouseRelease
-------------------
unfortunately still slow.
regards
Bernd
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Opaque-stack-resizer-tp2252468p2253105.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list