Search found 12668 matches

by Klaus
Tue May 17, 2022 8:41 pm
Forum: Talking LiveCode
Topic: Need clean image
Replies: 13
Views: 128

Re: Need clean image

Hi Craig,

not sure I fullly understand your problem, but check the image property CenterRect in the dictionary.
This lets you define a region of the image which should be streched when resizing the image instead of streching the complete image.
Sounds like this could be a solution.


Best

Klaus
by Klaus
Tue May 17, 2022 8:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sqlite - sequentially accessing the first row
Replies: 6
Views: 137

Re: Sqlite - sequentially accessing the first row

Hi Glenn,

well, to access the first record, just omit -> ... & CR & "LIMIT 1 OFFSET '"&tRecordNumber&"'", which will skip the records up to tRecordnumber! 8)

Best

Klaus
by Klaus
Sat May 14, 2022 3:50 pm
Forum: Raspberry Pi
Topic: Easy math for LC users
Replies: 18
Views: 12418

Re: Easy math for LC users

Great, so now it is not neccessary anymore and both of us are quite content. :-)
by Klaus
Sat May 14, 2022 3:06 pm
Forum: Raspberry Pi
Topic: Easy math for LC users
Replies: 18
Views: 12418

Re: Easy math for LC users

I deleted it, it was spam!
Posting a completely meaningless response to a several years old thread is always spam! :D
by Klaus
Sat May 14, 2022 8:50 am
Forum: Talking LiveCode
Topic: Something to remember when scripting substacks
Replies: 13
Views: 620

Re: Something to remember when scripting substacks

OK, you are probably right: force of habit... :oops:
by Klaus
Fri May 13, 2022 11:39 am
Forum: Talking LiveCode
Topic: Something to remember when scripting substacks
Replies: 13
Views: 620

Re: Something to remember when scripting substacks

This should not be an issue for the message path otherwise, as the user (or the dev) will never send an openstack message from the substack and expect the mainstack handler to deal with it. I could agree if you replace "the user (or the dev)" with "I" (eye)! 8) I have used this feature many times i...
by Klaus
Fri May 13, 2022 10:53 am
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

If you need to modify and save these external stacks, you need to copy them to the users documents folder on first launch of your app and open them from there. Same applies to the mobile platform! On the Mac you could also use -> specialfolderpath("preferences") for this, we have write permissions t...
by Klaus
Fri May 13, 2022 8:44 am
Forum: Talking LiveCode
Topic: Something to remember when scripting substacks
Replies: 13
Views: 620

Re: Something to remember when scripting substacks

Hi Stam, @klaus: thanks for the workaround… but that doesn’t sit entirely right with me in the sense that I want stack wide stuff to be in the stack script and card-wide stuff to be in the card script, and I’d prefer to keep this separation for my own sanity! I did not mean that would be suitible fo...
by Klaus
Thu May 12, 2022 5:41 pm
Forum: Talking LiveCode
Topic: Something to remember when scripting substacks
Replies: 13
Views: 620

Re: Something to remember when scripting substacks

I always use this "trick":
I put my "pre-/openstack" handlers into the script of the first card of the mainstack!
Eliminates the need of "dummy" handlers in the substack(s).
by Klaus
Thu May 12, 2022 4:55 pm
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

Yep, as I wrote in my second posting: ... Did you add these stacks via the "Copy files" tab in the "Standalone Application Settings..."? If not, do so then you can access them in -> specialfolderpath("resources") That specialfolder (resources) also works on the IDE, there it will point to the folder...
by Klaus
Thu May 12, 2022 11:39 am
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

Hi gnor, I did not mean that CAPITALS are a problem, only that you will have to take care of that fact! :-) ... go stack (specialfolderpath("resources") & "/Calendar.livecode") ## Works on Android go stack (specialfolderpath("resources") & "/calendar.livecode") ## will not! ... And "Find and replace...
by Klaus
Thu May 12, 2022 10:18 am
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

You are welcome!

Another important hint:
Android (and iOS) are case-sensitive OS!
So:
TABLET.livecode <> Tablet.livecode
by Klaus
Thu May 12, 2022 10:02 am
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

Hi gnor, Yes, umlaut here is also the case. Thanks for ponting it out. So everyvhere in my code i have to change the navigation lines, i've got it. yes. I've beenn bitten by that in the past! :-D If i want to navigate back to the runtime stack from other stacks is it the same? No, since that stack i...
by Klaus
Thu May 12, 2022 9:15 am
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

Hi gnor, 1. "start using this stack" goes into the "openstack" handler of the stack that you will create the rúntime from. 2. Just like the desktop: ... go cd 42 of stack (specialfolderpath("resources") & "/name_of_one_of_your_other_stacks_here.livecode") ... 3. I found that Android does not like fi...
by Klaus
Wed May 11, 2022 8:46 pm
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 25
Views: 964

Re: Deploy several stacks as an application to android

Hm, since that is new to me, I just made a little test and had no problem
to open a stack in -> specialfolderpath("resources") on Android!
So no write permission neccessary!

Go to advanced search