Search found 8604 matches
- Mon Apr 15, 2024 2:17 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Bad Document Id
- Replies: 5
- Views: 145
Re: Bad Document Id
Display it where?
- Mon Apr 15, 2024 1:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Bad Document Id
- Replies: 5
- Views: 145
Re: Bad Document Id
Looks all a bit decontextualised really.
A bit more explanation might make things easier.
A bit more explanation might make things easier.
- Mon Apr 15, 2024 10:09 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
A simpler way to put borders round whatever text you want works like this: - SShot 2024-04-15 at 12.08.15.png - on mouseUp put the selectedText into SELEX replace cr with numToNativeChar(11) in SELEX delete the selectedText put SELEX after the selectedText set the borderwidth of the selectedText to ...
- Sat Apr 13, 2024 6:17 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
on mouseUp put paragraph 2 to 3 of fld "f1" into PARAS1 delete paragraph 2 to 3 of fld "f1" replace cr with numToNativeChar(11) in PARAS1 put cr & PARAS1 & cr after paragraph 1 of fld "f1" set the borderwidth of paragraph 2 of fld "f1" to 4 set the bordercolor of paragraph 2 of fld "f1" to "purple"...
- Sat Apr 13, 2024 5:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
One of the things that interests me as an English teacher is what, in LiveCode constitutes a paragraph. In English a paragraph can be represented in 2 distinct ways: 1. Each new paragraph is represented by a carriage return and an indentation (Tab key). 2 Each new paragraph is represented by a doubl...
- Sat Apr 13, 2024 8:26 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Doesn't that mean that your border will go round all the text, not just the paragraphs you want?But we have to replace all CRs typed/pasted by users, and it add complexity.
- Sat Apr 13, 2024 8:21 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Personally, after Zak's OP, I am not 'wedded', but I am 'in a relationship', as it does seem a good thing, if it is at all possible.Are you wedded to using the border-whatevers?
- Fri Apr 12, 2024 7:09 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Yup: vertical tabulation. Hex B.
Then, as I demonstrated above, NO paragraphs are understood at all.
Then, as I demonstrated above, NO paragraphs are understood at all.
- Fri Apr 12, 2024 1:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
I tried lines and it is seemingly NOT possible to put a border round selected lines. It is, however, possible to set the backGroundColor to a set of selected lines. You can do this: - SShot 2024-04-12 at 15.28.58.png - on mouseUp set the backGroundColor of paragraph 2 to 5 of field "ff" to "green" e...
- Fri Apr 12, 2024 12:24 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Sacre m . . . : I even tried this:
and got exactly the same thing.
Code: Select all
on mouseUp
select paragraph 2 to 4 of fld "ff"
set the bordercolor of the selectedChunk to "green"
set the borderwidth of the selectedChunk to 3
end mouseUp
- Fri Apr 12, 2024 12:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
I don't suppose:
- -
- -
Code: Select all
set the bordercolor of paragraph 2 of field "ff" to "green"
set the borderwidth of paragraph 2 of field "ff" to 3
set the bordercolor of paragraph 4 of field "ff" to "green"
set the borderwidth of paragraph 4 of field "ff" to 3
- Fri Apr 12, 2024 12:01 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Rats: vertical tabulation looks lovely, but LC doesn't understand the text in terms of paragraphs:
- -
Possibly you could stop looking for paragraphs and start looking for incidents of whichever paragraph demarcator you were using.
- -
Possibly you could stop looking for paragraphs and start looking for incidents of whichever paragraph demarcator you were using.
- Fri Apr 12, 2024 11:16 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Running tests:
No CR symbols.
OK: linefeeds.
Replacing Linefeeds with Paragraph Separators makes the text look exactly the same.
AND, the bordering looks the same.
No CR symbols.
OK: linefeeds.
Replacing Linefeeds with Paragraph Separators makes the text look exactly the same.
AND, the bordering looks the same.
- Fri Apr 12, 2024 11:05 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Styling paragraphs/lines?
- Replies: 34
- Views: 938
Re: Styling paragraphs/lines?
Just been messing around, and it seems that "that ugly thing": - SShot 2024-04-12 at 12.52.51.png - is because of a carriage return, CR,, and if you can find a way to "fake' the new paragraph in another way that may not be a problem. "There are many Unicode characters that cause line breaks, such as...
- Thu Apr 11, 2024 11:53 am
- Forum: Talking LiveCode
- Topic: Strange colors
- Replies: 7
- Views: 380
Re: Strange colors
Not sure if these are of any interest or use at all: https://gist.github.com/callumlocke/41b210743990f07c2d96 " convert three r,g,b integers (each 0-255) to a single decimal integer (something between 0 and ~16m)" https://www.syncfusion.com/faq/windowsforms/colors/how-do-i-convert-a-color-to-integer...