Search found 416 matches

by bwmilby
Fri Apr 07, 2023 11:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Carriage Return
Replies: 9
Views: 6484

Re: Carriage Return

Very correct. Internally, RETURN, LINEFEED, LF, and CR are synonyms that all evaluate to ASCII 10. It does not really matter when within LiveCode though (text in fields). When you import text into LC, the line delimiter is changed to 10 and that is what LC uses. When you save text, the value is chan...
by bwmilby
Mon Apr 03, 2023 4:11 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Adding your own icons to the Navigation and Header bar widgets
Replies: 11
Views: 4980

Re: Adding your own icons to the Navigation and Header bar widgets

Probably my tool: https://github.com/bwmilby/SvgIconTool LSON is just a serialized LiveCode array. I used it mainly as an easy way to facilitate exporting the data as a single file for each family. For an actual project, I would probably use a custom property in the main stack to store the data as s...
by bwmilby
Sat Jan 21, 2023 2:10 am
Forum: HTML5
Topic: Replace external functions/commands with JS
Replies: 17
Views: 10454

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 ...
by bwmilby
Sun Jan 01, 2023 11:45 pm
Forum: iOS Deployment
Topic: Haptic feedback? Visual feedback of a long touch?
Replies: 7
Views: 6187

Re: Haptic feedback? Visual feedback of a long touch?

Have you tried the

Code: Select all

mobileVibrate
command?
by bwmilby
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: 1591

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.
by bwmilby
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: 5312

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...
by bwmilby
Thu Nov 03, 2022 2:21 pm
Forum: iOS Deployment
Topic: iPhoneSafeAreaInsets
Replies: 32
Views: 21647

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.
by bwmilby
Tue Oct 04, 2022 6:42 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 47
Views: 21227

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...
by bwmilby
Tue Oct 04, 2022 4:38 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 47
Views: 21227

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...
by bwmilby
Mon Sep 19, 2022 10:43 pm
Forum: iOS Deployment
Topic: Standalone test on iOS 16 hardware
Replies: 8
Views: 4881

Re: Standalone test on iOS 16 hardware

I have been able to test an app from LC to my iOS 16 iPhone.
by bwmilby
Sat Sep 17, 2022 3:48 am
Forum: Talking LiveCode
Topic: Editing code in external editors (VSCode, Atom, BBEdit etc)?
Replies: 16
Views: 6731

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.
by bwmilby
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: 13909

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 ...
by bwmilby
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: 3894

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...
by bwmilby
Fri Jul 22, 2022 6:46 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 41641

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...
by bwmilby
Thu Jul 21, 2022 5:16 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 41641

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...

Go to advanced search