Hi All,
I search a way to send a message AFTER a resize stack is done.
I found a quick and a little dirty workaround
It using a local variable = true when resizing is done and a mouseenter sends a message and set the local variable to false.
Thanks for yours ideas cleaner than mine
Best regards
Jean-Marc
do something after resize stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
do something after resize stack
https://alternatic.ch
Re: do something after resize stack
on afterResize?
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: do something after resize stack
Hi Jean-Marc,
I check for the mouse being not down = then resizing ended.
put this script into the card script of a new stack with 1 card and 1 field.
Kind regards
Bernd
I check for the mouse being not down = then resizing ended.
put this script into the card script of a new stack with 1 card and 1 field.
Code: Select all
local sResizeIsGoingOn = false
on resizeStack
-- stuff you do inside resizeStack here
if not sResizeIsGoingOn then
send checkEndResize to me in 0 milliseconds
put true into sResizeIsGoingOn
put "Resizing started " & the long time into field 1
end if
end resizeStack
on checkEndResize
if not sResizeIsGoingOn then exit checkEndResize
if the mouse is down then
send checkEndResize to me in 50 milliseconds
else
put false into sResizeIsGoingOn
put cr & "Resizing ended " & the long time after field 1
-- Do your stuff for after resizing has finished here
end if
end checkEndResize
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: do something after resize stack
Hi Bernd,
Thanks again
I tested it in my context and it work fine.
Kind regards
Jean-Marc
Thanks again
I tested it in my context and it work fine.
Kind regards
Jean-Marc
https://alternatic.ch