Search found 448 matches

by kaveh1000
Sun Nov 01, 2020 1:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 10
Views: 747

Re: textChanged and rawKeyUp not working in table field

Amazing. Thanks for the explanation, Klaus. I understand now.
by kaveh1000
Sun Nov 01, 2020 1:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 10
Views: 747

Re: textChanged and rawKeyUp not working in table field

Hi Klaus

I don't understand how LiveCode is creating a new Field on the fly. I have one field with one name in the attached stack. It just seems to be a field but with a special characteristic that it has a tabbed structure. I can't see new fields created. Any hints?
by kaveh1000
Sun Nov 01, 2020 12:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 10
Views: 747

Re: textChanged and rawKeyUp not working in table field

Apologies, Richmond. I only read the first part of your reply. :-( Thank you for your detailed reply. I just want something to happen in the background as soon as the user has entered some text. For instance the hscroll might change in the table field. Or suppose I want LiveCode to beep as soon as t...
by kaveh1000
Sun Nov 01, 2020 10:50 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 10
Views: 747

Re: textChanged and rawKeyUp not working in table field

Hi

There is no point as such, but just a test to see if rawKeyUp is seen by the field. When I type into the field I do not get the dialogue box that you get in your screenshot. I can just type freely.

I looked at Message Watcher and I can see that rawKeyUp is indeed sent.
by kaveh1000
Sun Nov 01, 2020 12:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 10
Views: 747

textChanged and rawKeyUp not working in table field

Hi all

Please see attached minimal stack with a table field which has the following script:

Code: Select all

on rawkeyup
   answer "rawkeyup"
end rawkeyup

on textchanged
   answer "text changed"
end textchanged
Why is there no response when I edit the text?
by kaveh1000
Sat Oct 31, 2020 8:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 568

Re: return and "return"

Hi Craig I appreciate your questions on this and they are very good ones! I can tell you what I am doing. Please see this thread: https://forums.livecode.com/viewtopic.php?f=8&t=34799 I am using the revXML library to analyse and hopefully modify complex XML files. As an example pls search for put re...
by kaveh1000
Sat Oct 31, 2020 6:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 568

Re: return and "return"

Hi Craig I take your point about naming of fields. I always use "t", "s" and "g" for variables, but never thought of "f" for field. Regarding the "do" workaround, the problem is a big stack that I will not post here as it has a lot of irrelevant material. So I created the minimal stack to illustrate...
by kaveh1000
Sat Oct 31, 2020 1:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 568

Re: return and "return"

Hi Klaus You have solved my problem! I never used value( ) . I have now introduced a loop similar to this in my script: repeat with i = 1 to the number of items of sOptions if value(item i of sOptions) is "return" then put "return" into item i of sOptions end if if value(item i of sOptions) is "tab"...
by kaveh1000
Sat Oct 31, 2020 12:30 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 568

return and "return"

I have a stack where I have to construct a command, then execute it. A parameter in the command can be a tab or a return. But whatever I do these are treated as verbatim "return" or "tab". To illustrate it I attach a minimal stack. There is just one script, in the "Do it" button: on mouseup put fld ...
by kaveh1000
Tue Oct 27, 2020 4:56 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 3
Views: 439

Re: Interacting with a complex XML file

As usual, a one liner from Richard pointed me in the right direction at least to start. I can now examine XML files for structure, content, tree etc. I know that I can write to the XML file too using revXML. Here's a bit more detail about what I want to do. I am certain it can be done with LiveCode ...
by kaveh1000
Sun Oct 18, 2020 10:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 622

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: 622

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: 622

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: 622

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: 622

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

Go to advanced search