something like:
Code: Select all
set the resizable of group 1 to true
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
set the resizable of group 1 to true
Code: Select all
local lSeiteZumSchieben
on mouseMove pNewMouseH, pNewMouseV
if the mouseH < left of me + 5 then
set defaultcursor to 31
put 1 into lSeiteZumSchieben
else if the mouseH > right of me - 5 then
set defaultcursor to 31
put 3 into lSeiteZumSchieben
else if the mouseV < top of me + 5 then
set defaultcursor to 30
put 2 into lSeiteZumSchieben
else if the mouseV > bottom of me - 5 then
set defaultcursor to 30
put 4 into lSeiteZumSchieben
end if
end mouseMove
on mouseLeave
set the defaultcursor to arrow
put empty into lSeiteZumSchieben
end mouseLeave
on mouseDown pButtonNumber
if lSeiteZumSchieben is not empty then
repeat until the mouse is up
put the rect of me into TNewRect
if lSeiteZumSchieben = 1 or lSeiteZumSchieben = 3 then
put the MouseH into item lSeiteZumSchieben of tNewRect
end if
if lSeiteZumSchieben = 2 or lSeiteZumSchieben = 4 then
put the MouseV into item lSeiteZumSchieben of tNewRect
end if
if mouseH() > 1 and mouseH() < the width of Stack "Feldgroesse" and \
mouseV() > 1 and mouseV() < the height of Stack "Feldgroesse" then
set the rect of me to tNewRect
anpassen
end if
end repeat
end if
end mouseDown
on anpassen
put the rect of me into tRect
add 5 to item 1 of tRect
add 5 to item 2 of tRect
subtract 5 from item 3 of tRect
subtract 5 from item 4 of tRect
set the rect of field 1 to tRect
end anpassen