Search found 39 matches
- Fri Nov 13, 2020 11:09 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
It is - actually. A ‘put the target’ message I put into the mouseUp handler in the closed stack to intercept it shows that the target was button “Yes” if that was pressed, or button “No” if that was pressed, so that shows conclusively it was coming from the Answer box.
- Fri Nov 13, 2020 12:57 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
I don’t think any further detective work is required. If an answer box is displayed, then when either button is pressed, it sends a mouseUp message which filters through to a ‘closed’ stack. If that stack contains a mouseUp handler, then the code in that handler will be actioned. No mystery, that’s ...
- Thu Nov 12, 2020 11:59 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
Sorry to contradict you, but I know what I found. In the script with the the ‘answer’ command, I placed a ‘put it’ directly after the answer command, but it locked up without showing ‘it’, so I know it never got there. Then I found that if I disabled the mouseUp message from the ‘data’ stack, i.e. s...
- Thu Nov 12, 2020 10:16 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
I haven’t even investigated frontscripts yet. The data stack seems to have a life of its own whether its open or not.
- Thu Nov 12, 2020 8:04 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
I have a stack separate from the main stack but I associate it by ‘start using’ on startup. It contains configuration data and drawings which are displayed as an overlay palette on the main stack. This data stack has a mouseUp script so that users can click on the drawings to perform certain actions...
- Thu Nov 12, 2020 5:48 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
Found it! The 'answer' box buttons were triggering 'mouseUp' code in an associated (but 'closed') stack, which was interfering with the main stack.
- Thu Nov 12, 2020 3:18 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
answer tempText with messg[126] or messg[127] tempText contains the prompt and the other two contain "Yes" and "No" I have also tried literal strings as in: answer "Hello" with "Yes" or "No" Exactly the same problem results This line of code is identical to the one elsewhere which does work. The one...
- Thu Nov 12, 2020 12:29 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
That is correct. I also tried adding ‘put it’ directly after the Answer line to display ‘it’, but it locks up and never gets there. If I comment out the Answer line and add ‘get “Yes” ‘, everything works (except the Answer box of course).
- Wed Nov 11, 2020 10:14 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
Just what I would expect with a forced No answer, bypassing the action. The ‘No’ button is the default, and simply freezes everything. If I click ‘Yes’, the button turns blue but still locks up. This is something obscure - I’ve been coding for over 30 years and tried all the tricks I can think of to...
- Wed Nov 11, 2020 8:53 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Re: Answer function
I commented out the Answer line and forced a ‘Yes’ and everything worked fine, so I know the rest of the code is good.
- Wed Nov 11, 2020 7:30 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Answer function
- Replies: 82
- Views: 34325
Answer function
I need the user to confirm an action, so I am using the ‘Answer’ command with ‘Yes’ and ‘No’ buttons. The Answer box appears with the correct text and buttons but when I click on either button the system freezes. I can move stacks around but everything within them is dead and I have to force quit (M...
- Thu Oct 29, 2020 7:12 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Serial comms delay
- Replies: 0
- Views: 12340
Serial comms delay
I need to use serial communication in my project. (Working on iMac). I have a usb serial adapter which I have got working - BUT - there is a consistent 250ms delay on receiving bytes. I am sending 3 bytes and receiving 2 or sending 3 and receiving 12, but the same delay is always there. This is when...
- Wed Oct 21, 2020 12:53 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Groups and sub-groups
- Replies: 14
- Views: 6155
Re: Groups and sub-groups
It doesn't matter. If you double click and wait, the selected object just sits and waits to be acted on, if you keep double clicking quickly, you get down through the group and sub groups until you've broken into the final sub group. Further double clicks have no effect. A click outside the main gro...
- Tue Oct 20, 2020 10:49 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Groups and sub-groups
- Replies: 14
- Views: 6155
Re: Groups and sub-groups
Richard, it depends where you click. A single click just selects the main group. If you double click on a nested group, that group is selected. If you double click again on that nested group you select a component of that nested group and so on. So the selected object is the last object double click...
- Tue Oct 20, 2020 8:37 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Groups and sub-groups
- Replies: 14
- Views: 6155
Re: Groups and sub-groups
Thanks jaque, ok for scripts , but not so for visual editing as the rest of the group disappears, so we don’t know where we are