Search found 414 matches
- Sat Jan 21, 2023 2:10 am
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 10349
Re: Replace external functions/commands with JS
In a desktop app I would suggest a hidden browser widget. It may work for HTML5 too, but I've not tried it. The page loaded in the widget would hold your JS state. You would just need to set the JS handlers that would map to LC handlers. In your async example, the callback could be a JS function if ...
- Sun Jan 01, 2023 11:45 pm
- Forum: iOS Deployment
- Topic: Haptic feedback? Visual feedback of a long touch?
- Replies: 7
- Views: 6139
Re: Haptic feedback? Visual feedback of a long touch?
Have you tried the
command?
Code: Select all
mobileVibrate
- Tue Dec 27, 2022 10:29 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Can I use a Javascript library for non-web app?
- Replies: 4
- Views: 1584
Re: Can I use a Javascript library for non-web app?
I’ll echo what SparkOut said. I’ll add that the widget can be hidden. I’ve done a test that used some JS libraries but only tested on desktop.
- Sat Dec 24, 2022 12:04 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: stretching two joined fields keeping the join stationary
- Replies: 15
- Views: 5272
Re: stretching two joined fields keeping the join stationary
A good read. Thank you for including the report link. FWIW the orientationChanged message is sent in a subset of cases where resizeStack is sent. Sometimes that narrow range is useful, but for layout resizeStack will handle more cases, including orientation change. We can view resizeStack as one-st...
- Thu Nov 03, 2022 2:21 pm
- Forum: iOS Deployment
- Topic: iPhoneSafeAreaInsets
- Replies: 32
- Views: 21605
Re: iPhoneSafeAreaInsets
One big difference that I notice is that on iOS you can draw behind the furniture (outside safe area, beside notch, under status bar) but those areas are outside the drawable rect on Android. I’ve not pulled up any Android sims with a notch though, so not as sure about them.
- Tue Oct 04, 2022 6:42 pm
- Forum: Talking LiveCode
- Topic: Using external script only stack as behaviour
- Replies: 47
- Views: 21195
Re: Using external script only stack as behaviour
The actual problem with your demo stack is that it had the behaviors listed twice in the StackFiles. Once at the root level and once in the folder. This is what prevented them from being found and mapped properly as behaviors. If you delete the entries that are not in a folder, save, quit and relaun...
- Tue Oct 04, 2022 4:38 pm
- Forum: Talking LiveCode
- Topic: Using external script only stack as behaviour
- Replies: 47
- Views: 21195
Re: Using external script only stack as behaviour
The problem is that at “preOpenStack” it is too late. Behaviors are resolved when the stack is loaded from disk before any messages are processed. References to objects within the stack require no special consideration. SOS behaviors do. In general, the engine needs to be able to locate the behavior...
- Mon Sep 19, 2022 10:43 pm
- Forum: iOS Deployment
- Topic: Standalone test on iOS 16 hardware
- Replies: 8
- Views: 4840
Re: Standalone test on iOS 16 hardware
I have been able to test an app from LC to my iOS 16 iPhone.
- Sat Sep 17, 2022 3:48 am
- Forum: Talking LiveCode
- Topic: Editing code in external editors (VSCode, Atom, BBEdit etc)?
- Replies: 16
- Views: 6699
Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?
I export all of my scripts for GitHub tracking but don’t do much of my editing outside of LC. ScriptTracker makes this easy though. It just watches the folder of scripts and updates the object script when it changes. I could edit in anything and scripts would update when saved.
- Sat Sep 03, 2022 1:19 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: DASH docset updated to LC 10 dp4 what yoy
- Replies: 37
- Views: 13854
Re: DASH docset updated to LC 10 dp4 what yoy
Stam- Very interested. A while back I worked out a mechanism for automatically importing script-only stacks as substacks but got bogged down in automatically exporting changes back to the .livecodescript files. Haven't revisted that in some time now. So if you've got something workable and generic ...
- Fri Aug 19, 2022 11:47 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Click command not working on a remote stack
- Replies: 15
- Views: 3890
Re: Click command not working on a remote stack
If you are writing a custom companion mobile app then I would change the way of going about it. Use the socket communications but actually reproduce the UI in the mobile app and just send data. Your TV app would provide the screen ID and then when the user entered data it would magically appear in t...
- Fri Jul 22, 2022 6:46 pm
- Forum: Talking LiveCode
- Topic: Why is the geometry manager still borked in 2021?!
- Replies: 93
- Views: 41537
Re: Why is the geometry manager still borked in 2021?!
True enough, but the issue should be in the unencrypted IDE LCS code so if I (or anyone else) finds the bug we can post details here for the benefit of the community. Mark’s comments are pertaining to code coming from the community version, but if code is coming from the commercial version then it s...
- Thu Jul 21, 2022 5:16 pm
- Forum: Talking LiveCode
- Topic: Why is the geometry manager still borked in 2021?!
- Replies: 93
- Views: 41537
Re: Why is the geometry manager still borked in 2021?!
In my cursory look at the new layout module I think it is more in line with how you think about layout on the web. GM suffers from not handling containers well and does not do flow/wrapping of controls. The glaring GM bug is probably within the community’s ability to suggest a fix. I’ve looked and f...
- Fri Jul 15, 2022 11:31 pm
- Forum: Internet
- Topic: Post Form Data to Browser Widget
- Replies: 15
- Views: 7787
Re: Post Form Data to Browser Widget
I’ve done something along the same conceptual lines (MS Access controlling a web site in IE). My approach was to abstract as much as possible and use simple commands to do things like setValue(pObjectRef, pObjectValue) and clickItem(pObjectRef). Should be able to do something similar where the handl...
- Fri Jun 03, 2022 12:00 pm
- Forum: Talking LiveCode
- Topic: Your computer has run out of memory - yikes!!!
- Replies: 13
- Views: 4219
Re: Your computer has run out of memory - yikes!!!
“By reference” means that instead of making a copy, that actual variable “reference” (pointer in other languages) is used. This allows changes to the variable inside the handler to be retained. The “@“ in the handler definition is what makes the variable “by reference”. See “pass by reference” in th...