how to detect that Stack dimension is changed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
how to detect that Stack dimension is changed
Hi,
I don't know how can I detect that Stack dimension are changed? For change of Stack dimension didn't work statement "mouseStillDown". Statement "resizeStack" didn't work also. Statement "resizeStack" works but if I use "geometry manager" for any items in stack, so "geometry manager" didn't work.
I don't know how to detect that stack's dimension was changed. There is any statement for change stack's dimensions, that can I use as "mouseStillDown" for fields, buttons and others items in stack?
I thank for help.
with regards
Oldrich
I don't know how can I detect that Stack dimension are changed? For change of Stack dimension didn't work statement "mouseStillDown". Statement "resizeStack" didn't work also. Statement "resizeStack" works but if I use "geometry manager" for any items in stack, so "geometry manager" didn't work.
I don't know how to detect that stack's dimension was changed. There is any statement for change stack's dimensions, that can I use as "mouseStillDown" for fields, buttons and others items in stack?
I thank for help.
with regards
Oldrich
Re: how to detect that Stack dimension is changed
Sure, put this in the stacks script -
Code: Select all
local tmpStartSize
on openStack
put the rect of this stack into tmpStartSize
end openStack
on resizeStack
put the rect of this stack into tmpNewSize
if the rect of me <> tmpStartSize then answer "Your stack size has changed..." & return & "The new size is " & tmpNewSize
end resizeStack
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: how to detect that Stack dimension is changed
If you are going to want this in mouseStillDown routines
you will have to put bogs' code into a global and not a local.
you will have to put bogs' code into a global and not a local.
Re: how to detect that Stack dimension is changed
...or even a custom property, which is where I probably should have located it to begin with
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: how to detect that Stack dimension is changed
At the risk of seeming stupid (err, surely not?), I wonder what the utility of
detecting stack resizes within mouseStillDown routines actually is.
I am trying to think of a situation where
(with the obvious exception of a mouseDown on a resize handle of a stack window)
a stack might resize while an end-user has a mouse pointer depressed over a button or a field.
detecting stack resizes within mouseStillDown routines actually is.
I am trying to think of a situation where
(with the obvious exception of a mouseDown on a resize handle of a stack window)
a stack might resize while an end-user has a mouse pointer depressed over a button or a field.
Re: how to detect that Stack dimension is changed
For the sake of argument, let us say you set the resize option of the stack to 'false', but, you want to provide a way for someone to be able to resize it as part of using the program (and I am pretty sure that is exactly the situation in this pane of the P.I.). It is a feature I use a *lot* in my dev process to prevent me from "accidently" resizing the stack when I have everything perfect on it (it has happened a few times too often)richmond62 wrote: ↑Mon Jan 21, 2019 9:17 pmI wonder what the utility of
detecting stack resizes within mouseStillDown routines actually is.