Search found 3825 matches
- Thu Mar 14, 2024 7:37 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 Actually I was intrigued by the text you chose and looked it up. Then I found the whole poem and liked it very much. So I was not an Emily Dickinson fan (only heard her name before) but now I like this poem and her name means something to me. Thank...
- Thu Mar 14, 2024 7:33 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,
I think your solution is straightforward and easy to maintain.
Glad you solved the problem.
Kind regards
Bernd
I think your solution is straightforward and easy to maintain.
Glad you solved the problem.
Kind regards
Bernd
- Thu Mar 14, 2024 7:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Missing Fonts
- Replies: 37
- Views: 1325
Re: Missing Fonts
Gary,
I am glad you found a solution. Very interesting story.
Kind regards
Bernd
I am glad you found a solution. Very interesting story.
Kind regards
Bernd
- Thu Mar 14, 2024 2:12 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, you previous solution is clearly superior - this kludge is fine but scrolling and multiple highlights are an issue... if having to scroll multiple highlights this would quickly escalate into a slow-grinding nightmare! I quite like what you did with your previous solution... goes to show ther...
- Thu Mar 14, 2024 1:28 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
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... :wink: Craig, Speaking of kludge: Here is a version of your stack that hilites more than one line, makes extensive use of formattedRect, creates a graphic tha...
- Wed Mar 13, 2024 10:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Missing Fonts
- Replies: 37
- Views: 1325
Re: Missing Fonts
set the textfont of fld "fFont" to "Quicksand Light" You can not just set the name of a font except if you are sure there is a font that is named like that. Only the pulldown menu of the Font section of a newly opened Properties Inspector would have the right name. Sparkout posted a link to a Quali...
- Wed Mar 13, 2024 9:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Missing Fonts
- Replies: 37
- Views: 1325
Re: Missing Fonts
Gary, on mouseup answer file "Select a Font..." put it into tFont start using font file tFont set the textfont of fld "fFont" to tFont ## does not work ########## end mouseup as you can see in the properties inspector the last line of your code tries to set the font of the field to the path to the f...
- Wed Mar 13, 2024 8:56 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 so...
- Wed Mar 13, 2024 5:52 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, I made another attempt at being able to set the backgroundColor of words in a text and provide metadata for each word. For me this works. I store the metadata of words in the metadata of line 1 of the field. Have a look at the demo stack and see if it fits your needs. There is a little more in...
- Tue Mar 12, 2024 10:52 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, see edit below One way to work around the backgroundColor problem with metadata is to use linkText as a property of the word. You just set the linkText of a word and you could handle it just like metaData. As far as I can see there is no functional difference. You do NOT set the textStyle to "...
- Tue Mar 12, 2024 3:25 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,
I probably got carried away by how to process metadata/linkText upon user action.
But I am sure you will find a solution for your interface without the backgroundColor.
Kind regards
Bernd
I probably got carried away by how to process metadata/linkText upon user action.
But I am sure you will find a solution for your interface without the backgroundColor.
Kind regards
Bernd
- Tue Mar 12, 2024 1:00 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
Hi Jeff, here is a stack that shows what I mean. The card script has the logic to process clicks. Button "cleanFieldTXT" resets the field. Button "setWordsToLinked" sets up links and linkText Button "setMetadatafldTXT" sets metadata of the words Set up the text using the buttons and click on any lin...
- Tue Mar 12, 2024 12:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Missing Fonts
- Replies: 37
- Views: 1325
Re: Missing Fonts
Gary,
I am running out of ideas and have the impression that it is Windows specific.
Maybe someone using Windows could chime in.
Kind regards
Bernd
I am running out of ideas and have the impression that it is Windows specific.
Maybe someone using Windows could chime in.
Kind regards
Bernd
- Tue Mar 12, 2024 12:23 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
Richmond,
try:
Kind regards
Bernd
try:
Code: Select all
on mouseUp
repeat with i = 1 to the number of words of field "ff"
set the metadata of word i of field "ff" to i
end repeat
end mouseUp
Bernd
- Tue Mar 12, 2024 11:57 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
Richmond,
That looks very nice.
Now set the metadata of some of the words and see if the colors are still contiguous.
Kind regards
Bernd
That looks very nice.
Now set the metadata of some of the words and see if the colors are still contiguous.
Kind regards
Bernd