Klaus.
Rereading, there is an oddity, "...Just make sure the field stays active when the dialog pops up."
Such sloppy verbiage is not uncommon in life, but do you think this snippet came from a human (spam) or a "C" rated AI helper (bot)?
Craig
Search found 9301 matches
- Sat Mar 16, 2024 9:28 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
- Sat Mar 16, 2024 8:09 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
Interesting.
But if a spammer, he/she/them knew enough about LC to post an erroneous, er, post.
Odd, no?
Craig
But if a spammer, he/she/them knew enough about LC to post an erroneous, er, post.
Odd, no?
Craig
- Sat Mar 16, 2024 4:40 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
Klaus.
Pretty harsh. Poor Kabiru was only being wrong after all. Even I did that once.
Crai
Pretty harsh. Poor Kabiru was only being wrong after all. Even I did that once.
Crai
- Fri Mar 15, 2024 11:35 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
Jacque.
Yep. Clicking anywhere in a line essentially sets the cursor at that point, and that is a changed selection.
Craig
Code: Select all
on selectionChanged
delete line word 2 of the clickline of the target
end selectionChanged
Craig
- Fri Mar 15, 2024 7:00 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
The kludge, or another like it, is needed because in an unlocked field not too many common messages, like "mouseUp", are sent.
Craig
Craig
- Fri Mar 15, 2024 6:57 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
@Paolo. The field must be locked for such activity. Is it? @ Jacque. If the field is not locked, it needs a kludge. One way is to place this in the field script: on mouseWithin if the mouse is down then delete line (word 2 of the mouseLine) of the target wait until the mouse is up end if end mouseWi...
- Fri Mar 15, 2024 6:41 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
Paolo. Jacque makes a point. Never do something complicated when something simple will do. The modal dialogs "Ask" and "Answer" both offer the user a choice of actions, and do something depending on the choice the user makes or the text the user supplies. Deleting a line by hand, as Jacque points ou...
- Thu Mar 14, 2024 11:59 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Using field with "answer" dialog open
- Replies: 26
- Views: 564
Re: Using field with "answer" dialog open
Hi. Yes that is the method to delete the row, but wanting to do it with a click on the same row ? Or by searching the line by locating it through code search (or name, title...) and then delete it. As others have said, you cannot do such "simple, ordinary" tasks with a modal dialog open. You are loc...
- Thu Mar 14, 2024 2:27 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
Bernd.
Are you an Emily Dickinson fan? I am.
Craig
Are you an Emily Dickinson fan? I am.
Craig
- Thu Mar 14, 2024 1:58 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
Paul. Yipes. I must look more carefully at the dictionary. I looked for "rect", saw the list of native words that contained it, like "formattedRect", and saw that the syntax for that entry read "get the formattedRect of {card | group}". There is also one for widgets. So I never thought to look at th...
- Thu Mar 14, 2024 3:52 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
Bernd.
Nicely done. It solves the problem of metadata corrupting the backColor. But yours is a kludge as well, and I wonder how Jeff will choose...
Craig
Nicely done. It solves the problem of metadata corrupting the backColor. But yours is a kludge as well, and I wonder how Jeff will choose...
Craig
- Wed Mar 13, 2024 8:54 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
I never appreciated that the metaData of a chunk is much like a custom property of that chunk, though more limited in scope, since only strings may be assigned. Thanks to Bernd, this is an interesting new tool to consider. I am not sure how it might solve problems that ordinary custom properties do ...
- Wed Mar 13, 2024 8:29 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
Bernd. So the metadata is never set as a property to the words themselves, but rather in the "owner" of those words, that is, the line? In that case how do you pull the individual metaDatas for each word? Is the line metadata an associated list of pairs, each word in the line to a string of some sor...
- Wed Mar 13, 2024 4:17 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
Jeff.
So if there is no way out of those pesky thin white lines, can you bring yourself to put aside the "standard" method of doing this, that is, the "backColor", and trust the kluge? The reason I ask is that I do not know when, if ever, that bug will be fixed.
Craig
So if there is no way out of those pesky thin white lines, can you bring yourself to put aside the "standard" method of doing this, that is, the "backColor", and trust the kluge? The reason I ask is that I do not know when, if ever, that bug will be fixed.
Craig
- Wed Mar 13, 2024 3:42 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: background color of text with metadata
- Replies: 35
- Views: 928
Re: background color of text with metadata
The real issue is that there is no native LC property that defines the botRight of a selection. The "selectedLoc" does the topLeft. That must be done at home. But once in hand, and knowing the textHeight, filling in the blanks with pre-made colored fields or even colored polygon graphics that look l...