What happen the stack handlers "Open" and "PreOpen"?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: What happen the stack handlers "Open" and "PreOpen"?
I dunno, sure looks like it works here (LC 9.5 on nix). Open this, set the break point on the handler, then run the handler (green arrow on top of the debugger).
If your feeling super lazy, don't bother setting the breakpoint, I made sure you will either see a result or get a message when it runs
If your feeling super lazy, don't bother setting the breakpoint, I made sure you will either see a result or get a message when it runs
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: What happen the stack handlers "Open" and "PreOpen"?
The problem isn't that the messages aren't firing. The OP describes the issue as the message names not appearing in the list of relevant messages in the left column of the Script Editor.
More details in the report:
https://quality.livecode.com/show_bug.cgi?id=22747
More details in the report:
https://quality.livecode.com/show_bug.cgi?id=22747
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What happen the stack handlers "Open" and "PreOpen"?
Indeed.
- -
9.6.0 rc-2 Community
MacOS 10.15
openStack and
preOpenStack both 'there'.
- -
9.6.0 rc-2 Community
MacOS 10.15
openStack and
preOpenStack both 'there'.
Re: What happen the stack handlers "Open" and "PreOpen"?
If that was directed at my post, I wasn't posting in response to the OP's post, but Richmond's, which said -FourthWorld wrote: ↑Tue May 26, 2020 5:43 pmThe problem isn't that the messages aren't firing. The OP describes the issue as the message names not appearing in the list of relevant messages in the left column of the Script Editor.
Now, since I'm pretty sure just removing them from the 'prepared' left column didn't completely debilitate them, and as that stack (should* ) show they do in fact work, maybe Richmond will post a stack showing them *not* working, which truly would be bug report material, heh.richmond62 wrote: ↑Tue May 26, 2020 10:30 amThey just don't work, while preOpen and open in a card do.
Err . . . possibly the LiveCode 'thang' has become so complicated that loading
it into the memory means there is some sort of problem with doing stuff before the stack is displayed on screen.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: What happen the stack handlers "Open" and "PreOpen"?
Richmond, are you looking at the list of handlers that appears when editing a card script, or a stack script? Both this OP and the report note that the openStack and preOpenStack messages are absent from the list when editing a stack script, as confirmed in the report by Panos.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What happen the stack handlers "Open" and "PreOpen"?
OK: you got me there: looking in cardScript.
Indeed: no sign in the stackScript.
And, Yes: never seen this before:
- But "there it is" in the Documentation:
- -
It does appear rather more restricted than openStack or preOpenStack.
Indeed: no sign in the stackScript.
And, Yes: never seen this before:
- But "there it is" in the Documentation:
- -
It does appear rather more restricted than openStack or preOpenStack.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What happen the stack handlers "Open" and "PreOpen"?
Mind you; to be fair, startup is 'there' in the LC 8.1.10 Documentation.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What happen the stack handlers "Open" and "PreOpen"?
Code: Select all
on preOpenStack
put "preOpenStack fired" into fld "ff"
end preOpenStack
on openStack
put "openStack fired" into fld "gg"
end openStack
- Attachments
-
- preOpen.livecode.zip
- Here's the stack.
- (959 Bytes) Downloaded 119 times