Search found 438 matches

by kaveh1000
Sun Oct 18, 2020 10:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 231

Re: Detecting change to FormattedText

Thank you both. Always learn a lot here. I used "=" and it is not giving me the result intended so will do more testing. And will think about the HTMLText too...
by kaveh1000
Sun Oct 18, 2020 9:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 231

Re: Detecting change to FormattedText

Hi Jacqueline

As a follow-up, how do you compare two arrays? I tried

Code: Select all

if the properties of array_one is the properties of array_two...
but it is showing them not to be the same although they should be. I have a mental block with arrays. Any hints appreciated!
by kaveh1000
Sun Oct 18, 2020 6:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 231

Re: Detecting change to FormattedText

Thank you Jacqueline. This is excellent. I had no idea about "the properties". I can see it creates an array. It's fast as you say, so no problem about checking with every arrow key or key press. :-)
by kaveh1000
Sun Oct 18, 2020 9:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 231

Re: Detecting change to FormattedText

Not sure I understand Richard. Let me describe the use case: The user will be interacting with the field (with locked text) using the mouse and/or arrow keys. I need to know which line they clicked on, counting from the top in FormattedText, as well as the length of the lines. There is a lot of inte...
by kaveh1000
Sun Oct 18, 2020 9:04 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 231

Detecting change to FormattedText

Hi folks I have a field with a large volume of text. I am doing some moving around for which I need the current value of FormattedText, as I need to know where the soft line breaks are, and the number of lines after line breaking. If the text itself changes, I can use on TextChanged (update value of...
by kaveh1000
Sun Oct 18, 2020 8:47 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 2
Views: 130

Re: Interacting with a complex XML file

Hi Richard

Thanks for this pointer. Reason for my silence is I need to do a lot of homework now, probably using revXML. :-)

Kaveh
by kaveh1000
Mon Oct 12, 2020 1:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 2
Views: 130

Interacting with a complex XML file

Hi folks Been a while since I have been on the forum but still here!! I deal with quite complex and "rich" source XML files that are the contents of book chapters. My knowledge of XML and particularly the XML in question is very limited (but I have colleagues who can help if needed). I need to enter...
by kaveh1000
Wed Apr 22, 2020 12:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Why Script-only stacks?
Replies: 90
Views: 6893

Re: Why Script-only stacks?

I am also very interested in your solution. I use several SoS's and I want them automatically encrypted when I build a standalone. Pls see this thread:

https://forums.livecode.com/viewtopic.p ... 22#p188122
by kaveh1000
Sat Apr 11, 2020 6:17 pm
Forum: Talking LiveCode
Topic: Standalone not working with script only stack
Replies: 13
Views: 2696

Re: Standalone not working with script only stack

Thanks. I tried that, i.e. without your suggestion of removing the standalone property, but still not encrypted...
by kaveh1000
Fri Apr 10, 2020 6:25 pm
Forum: Talking LiveCode
Topic: Standalone not working with script only stack
Replies: 13
Views: 2696

Re: Standalone not working with script only stack

Hi all I tried to run this stack again, in order to get an encrypted stack. I am uploading the latest version. The stack script of the main file is: on preopenstack put specialFolderPath("resources") into tLibraryPath put tLibraryPath & "/" & "ScriptOnlyStack.livecodescript" into tPath open stack tP...
by kaveh1000
Fri Apr 10, 2020 2:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Why Script-only stacks?
Replies: 90
Views: 6893

Re: Why Script-only stacks?

Hi Richmond

The big drawback for me with working in 3rd party editors is that I cannot immediately save and run the code as I can when I am in the LiveCode IDE. It is rare that I write more then a couple of lines before rerunning. How do you deal with that?

Kaveh
by kaveh1000
Fri Apr 10, 2020 2:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Why Script-only stacks?
Replies: 90
Views: 6893

Re: Why Script-only stacks?

Regarding encryption, according to a great idea by Jacque, it should be possible to encrypt automatically at the point of making a standalone. But when I tried it it did not work. Please thread here: https://forums.livecode.com/viewtopic.php?f=9&t=33678&p=189835#p189835 Any ideas on that thread welc...
by kaveh1000
Sun Apr 05, 2020 10:26 pm
Forum: Talking LiveCode
Topic: Standalone not working with script only stack
Replies: 13
Views: 2696

Re: Standalone not working with script only stack

No. Thanks for asking. Really need a solution to this. Any help or hints appreciated.

Kaveh
by kaveh1000
Fri Mar 20, 2020 12:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Script only Stacks
Replies: 22
Views: 4057

Re: Script only Stacks

I am successfully using multiple script only stacks read in by a main stack. My problem at the moment is encrypting the SOS's in standalone. This is something I still have to work out. If this is of interest to you, then please see this thread: http://forums.livecode.com/viewtopic.php?f=9&t=33678&e=...
by kaveh1000
Mon Mar 09, 2020 9:48 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building styledText or htmlText from scratch to colorize text
Replies: 4
Views: 2097

Re: Building styledText or htmlText from scratch to colorize text

Thanks for this Bernd. A few comments, hoping not to derail the thread! I can see that the times for htmltext and styledText are both roughly proportional to the length of the original text, and that htmlText is a bit faster. I remember a sample stack that was uploaded some 18 months ago (perhaps in...

Go to advanced search