Search found 19 matches

by bamakojeff
Thu May 09, 2024 12:13 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Scaling on Mobile
Replies: 4
Views: 302

Re: Scaling on Mobile

Just for the record, I created a new stack, followed the mobileDemo code, and scaling worked perfectly. So there's something in my earlier stack that is causing the problem. I'm retiring my old "display testing "stack and starting afresh with a new "display testing" stack. :-) Thanks for your help! ...
by bamakojeff
Wed May 08, 2024 7:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Scaling on Mobile
Replies: 4
Views: 302

Re: Scaling on Mobile

Thank you Brian! Your mobileDemo is incredibly helpful. I'd never even heard of "mobileSetFullScreenRectForOrientations" before. Unfortunately my stack does not love me because setting the rect of the stack doesn't "stick" either. log "rect =" && the rect of this stack set the rect of this stack to ...
by bamakojeff
Tue May 07, 2024 7:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Scaling on Mobile
Replies: 4
Views: 302

Scaling on Mobile

I designed my app for phone size screens. The problem is that when you run the app on a 13" tablet with high resolution the interface seems really small. So I thought that an easy fix would be to allow the user to scale up the interface if they so desired. So imagine that I want to make the screen 2...
by bamakojeff
Tue May 07, 2024 6:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 308

Re: How to honor "Auto-Rotate Off" on Android

Thanks Brian. Obviously I am doing something wrong, because I am using resizeStack to handle the geometry changes when the device is rotated, and it definitely fires regardless of whether Auto-Rotation is on or off on Android. It happens in a simulator in Android Studio and it happens on my Android ...
by bamakojeff
Mon May 06, 2024 8:13 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 308

Re: How to honor "Auto-Rotate Off" on Android

Thank you gentlemen for your responses. Unfortunately, they did not solve my problem (but maybe that's me). Here's what I understand about the working of these commands. Please let me know if I have misunderstood something. @Klaus The orientationChanged message fires regardless of whether the user h...
by bamakojeff
Sat May 04, 2024 7:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 308

How to honor "Auto-Rotate Off" on Android

I've written the code for an Android app to display properly whether it's in landscape or portrait orientation. Everything works exactly as I expect except that if I go into the Android settings and turn off "Auto-Rotate", my app still rotates when the device is rotated. Does anyone know how I can q...
by bamakojeff
Wed Mar 20, 2024 10:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Native mobile field which allows highlighting and copying but not editing
Replies: 3
Views: 550

Re: Native mobile field which allows highlighting and copying but not editing

<SIGH>Thanks Richard. No, it's not critical. It just makes everything work the way anyone who uses mobile apps expects things to work. If you highlight something in your browser or your email to copy it, you don't expect a keyboard to pop up which allows you to change the text. But that's what happe...
by bamakojeff
Wed Mar 20, 2024 6:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Native mobile field which allows highlighting and copying but not editing
Replies: 3
Views: 550

Re: Native mobile field which allows highlighting and copying but not editing

I've not had any luck with this. But another way this could be accomplished without making changes to the field would be to hide the keyboard even while the field retains focus. So does any one know of a way to hide the mobile keyboard even when the field has focus? I'm hoping for something like mob...
by bamakojeff
Wed Mar 20, 2024 5:57 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: OCR?
Replies: 19
Views: 5510

Re: OCR?

Stam, I saw this thread come across the digest and didn't bother to look at the original posting data when I replied. :-)

If the project ever comes around again, I've had good luck using the open source version of Tesseract (https://github.com/tesseract-ocr/tesseract) for OCR on images.

Jeff
by bamakojeff
Mon Mar 18, 2024 1:41 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: OCR?
Replies: 19
Views: 5510

Re: OCR?

Don't know if this is helpful or not, but I built an application for a friend of mine in the publishing industry (which runs on Windows) in order to create royalty reports for individual authors from a single giant pdf which contains all the data for thousands of authors. So the Livecode app shells ...
by bamakojeff
Sun Mar 17, 2024 8:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Native mobile field which allows highlighting and copying but not editing
Replies: 3
Views: 550

Native mobile field which allows highlighting and copying but not editing

I am trying to create a native mobile field which allows the user to highlight text and then copy it, but not edit (i.e. change) the text. This is done in a Livecode field by enabled both "lockText" and "autoHilite". But I cannot find any sort of equivalent for a Native mobile multiline control. I h...
by bamakojeff
Thu Mar 14, 2024 2:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 2122

Re: background color of text with metadata

I've been coding for over 40 years, but only started using Livecode a year or so ago, and I feel like I'm in a Livecode master-class! I've been messing with this on and off for two weeks (I do have a day job that occasionally expects actual work out of me!) trying all sorts of different things, and ...
by bamakojeff
Wed Mar 13, 2024 2:40 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 2122

Re: background color of text with metadata

Craig, that's very clever. I've never thought of using the mouse position to "scan" along a line in order to know where the selection stops and then use that information for positioning the overlay. I will definitely play around with this. Even if I don't end up using it here, thank you for another ...
by bamakojeff
Wed Mar 13, 2024 12:56 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 2122

Re: background color of text with metadata

I echo Bernd's sentiments, "This bug is weird..." I think I have something that works, but then I change the font or the font size, and nothing works any more. <SIGH> I have filed a bug report, so we'll see if anything comes of that. For the moment, I'll go with changing the foreground color to high...
by bamakojeff
Tue Mar 12, 2024 2:24 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 2122

Re: background color of text with metadata

Thank you, Bernd, for creating this stack. I really appreciate all the work you put into helping me. I also looked at setting the textstyle to "link" for the the highlighting. Unfortunately a link sets the foreground color of the text, not the background color, which is what I want to make the text ...

Go to advanced search