Search found 2585 matches
- Thu May 09, 2024 7:05 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
My comments about the message path are a paraphrase from the documentation: A before handler allows developers to produce behavior scripts which can handle messages sent to a control without having any effect on the message path, unlike front and back scripts. So, yes, the message does travel a sli...
- Thu May 09, 2024 4:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
Thanks Brian - I'll respond to your nice example later, once I've had a chance to test something. I hope you don't mind me quizzing you on this, because to my mind it still doesn't make sense... and I'd like it to ;) 'before' and 'after' don't change the message path. They are additional messages th...
- Thu May 09, 2024 3:23 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I've modified the chart to hopefully approach accuracy... sadly can't experiment to confirm for a few weeks, but do point out any errors...
- Thu May 09, 2024 9:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I like the idea. I actually threw a stack together last night to test/verify flow. That side route should be “not in” but before/after still will get called. If you pass in the object, then both “on” handlers will fire before the “after” one will. If you pass in the behavior, then the “after” will ...
- Wed May 08, 2024 5:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I like the idea. I actually threw a stack together last night to test/verify flow. That side route should be “not in” but before/after still will get called. If you pass in the object, then both “on” handlers will fire before the “after” one will. If you pass in the behavior, then the “after” will ...
- Wed May 08, 2024 1:21 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Scaling on Mobile
- Replies: 4
- Views: 210
Re: Scaling on Mobile
Thanks for the share Brian!
On an unrelated note, I see GitHub views your code as 100% HTML, which is mildly aggravating...
When will LC push for their language to be recognised as such on GitHub?!?!?!
On an unrelated note, I see GitHub views your code as 100% HTML, which is mildly aggravating...
When will LC push for their language to be recognised as such on GitHub?!?!?!
- Wed May 08, 2024 1:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Custom Properties and nested arrays
- Replies: 6
- Views: 199
Re: Custom Properties and nested arrays
Generally I'm not sure you can use the custom props as an array as is and have found I have to put them into their own array.
This should work:
S.
This should work:
Code: Select all
Put the animals of this stack into tArray
answer tArray["dogs"]["rufus"]
- Wed May 08, 2024 11:06 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
Well arguably, StartUp is still an event, so not sure that merits its own header - can't list every single event generated in LC! I presume StartUp bypasses the frontScripts, as it's sent to card 1, but not sure... The 3 annotated events here are special inasmuch as they can bypass the default path....
- Wed May 08, 2024 9:31 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I like having them in the muted color like your last one. I think an info box at the bottom with some of the caveats that should be considered would work. Behaviors support the before/after control structures which allows developers to produce behavior scripts which can handle messages sent to a co...
- Wed May 08, 2024 7:48 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
As a solution to that last point, I’ll change the “from other stacks” to “from other message paths”. Hopefully this will reduce confusion?
As to the former, given that I would like this as visual as possible, I think I’ll ad a small inset graph showing before/default/after, that may work better…
As to the former, given that I would like this as visual as possible, I think I’ll ad a small inset graph showing before/default/after, that may work better…
- Wed May 08, 2024 7:17 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I like having them in the muted color like your last one. I think an info box at the bottom with some of the caveats that should be considered would work. Behaviors support the before/after control structures which allows developers to produce behavior scripts which can handle messages sent to a co...
- Wed May 08, 2024 12:46 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 33
- Views: 1020
Re: OpenCard to control?
I’m not sure you can really represent behaviors cleanly like that. They don’t sit where they are drawn completely. In addition to catching messages that are not present in the object you can also have “before” and “after” handlers that fire before/after the handler in the object. Thanks Brian, The ...
- Tue May 07, 2024 7:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Unusual Refresh Problems with Mac standalone
- Replies: 21
- Views: 1726
- Tue May 07, 2024 7:29 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Script Widget does not work as expected - solved
- Replies: 6
- Views: 334
Re: Script Widget does not work as expected
To my surprise, when I attempted to add a "mouseUp handler script" to the Script Widget in the stack, it failed to trigger :?: What do you mean by this? Do you mean adding a handler to the built widget's script window? Or inside the scriptOnlyStack that builds the widget? If it's the former, you pr...
- Tue May 07, 2024 7:11 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to honor "Auto-Rotate Off" on Android
- Replies: 9
- Views: 276
Re: How to honor "Auto-Rotate Off" on Android
Jeff, it doesn't seem to be your code - the 6 year old bug you link has clearly been assessed as a bug affecting android (and not iPhone) and is exactly what you're describing, if I understood your issue correctly. Perhaps post a question in the bug report? Richard has done so previously to no avail...