Search found 3867 matches

by bn
Tue May 28, 2024 10:09 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to use repeat in polygrid?
Replies: 1
Views: 37

Re: how to use repeat in polygrid?

Hi lemodizon, There is tsvData for the polygrid, you can set and get tsvData of a polygrid. The first line is the column headers. That is one way to get at your data, here it seems to be the easiest way. on mouseUp put the tsvData of widget "pgDetails" into tData set the itemDelimiter to tab repeat ...
by bn
Mon May 27, 2024 12:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to set every 10th and 25th as cut off in a month
Replies: 4
Views: 169

Re: how to set every 10th and 25th as cut off in a month

Hi Lemondizon, I changed the script to make it a bit clearer and it calculates the days to the next 10th and 25th of month from today. I assume you want both results. It should be easier now to adapt the script if needed. on mouseUp put the short date into tConvertDate put tConvertDate into fld "Cur...
by bn
Sun May 26, 2024 4:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to set every 10th and 25th as cut off in a month
Replies: 4
Views: 169

Re: how to set every 10th and 25th as cut off in a month

Hi lemodizon, this does what you want for 1 target day, modify it for 2 on mouseUp put the short date into tConvertDate put tConvertDate into fld "CurrentDate" put tConvertDate into tStart put 15 into tDayOfMonth convert tConvertDate to dateitems put tConvertDate into tFirstTargetDay if item 3 of tC...
by bn
Sun May 19, 2024 11:22 am
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 46
Views: 4446

Re: Code folding for Livecode 9.6.9 and up

Thank you Derrek,

much appreciated.

Kind regards
Bernd
by bn
Wed May 15, 2024 10:25 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 46
Views: 4446

Re: Code folding for Livecode 9.6.9 and up

Hi Bob, Thanks for the observation. I never tried to move a folded handler to another location in the script but that it unfolds is rather a feature. And in trying to reproduce this the folding indicator for the handler was "open". If you see a "closed" indicator a return anywhere should synch the i...
by bn
Wed May 15, 2024 7:26 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 46
Views: 4446

Re: Code folding for Livecode 9.6.9 and up

New and current version of Code Folding I tested Code Folding with Version 9.6.12 (RC 1) and 10.0.0 (DP 8) and the Version I post below works with both. There was no change to the code except for bug fixes. It addresses all known bugs and quirks. Usually RC versions do not change the IDE in a way t...
by bn
Sat May 11, 2024 11:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Color Scripts
Replies: 4
Views: 310

Re: Color Scripts

Hi Zax,

Thank you for this stack. I is very nicely done and comes in handy.

Kind regards
Bernd
by bn
Sat May 04, 2024 10:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 445

Re: How to honor "Auto-Rotate Off" on Android

Jeff,

mobileOrientationLocked()

should do what you want.

Kind regards
Bernd
by bn
Sat May 04, 2024 6:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 23
Views: 1609

Re: Exporting text to SVG

I just found out that you do not need the HTML stuff, just the SVG stuff. <svg width="800" height="800" xmlns="http://www.w3.org/2000/svg"> <text x="50" y="50" font-family="Arial" font-size="16"> <tspan x="50" dy="1.2em">विद्यार्थी</tspan> <tspan x="50" dy="1.2em">Attention</tspan> </text> </svg> se...
by bn
Sat May 04, 2024 6:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 23
Views: 1609

Re: Exporting text to SVG

Richmond, When you want to display your svg in LC you can use the browser: <!DOCTYPE html> <html> <head> <title>dings</title> <meta name="generator" content="BBEdit 14.6" /> </head> <body> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">...
by bn
Sat May 04, 2024 9:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 23
Views: 1609

Re: Exporting text to SVG

this is the svg

Kind regards
Bernd
by bn
Sat May 04, 2024 9:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 23
Views: 1609

Re: Exporting text to SVG

Richmond,

What happens if you

Code: Select all

put textEncode(tText, "UTF-8") into tText
?

Kind regards
Bernd
by bn
Fri May 03, 2024 6:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 23
Views: 1609

Re: Exporting text to SVG

Richmond, put <svg width="800" height="800" xmlns="http://www.w3.org/2000/svg"> into field "fHeader" Put <text x="50" y="50" font-family="Arial" font-size="16"> into field "fTextStart" Try this code on mouseUp put the script of button "b2" into tText ## or wherever you want your text to come from pu...
by bn
Fri May 03, 2024 4:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to scroll to a specific line number
Replies: 5
Views: 301

Re: How to scroll to a specific line number

Make a button and a field that holds the line number you want to scroll to. on mouseUp ## a field that holds the line number you want to scroll to put field "fLineNum" into tLineNum ## the field that holds your text put the height of field "fText" into tFieldHeight put the top of field "fText" into ...
by bn
Thu May 02, 2024 6:22 pm
Forum: Talking LiveCode
Topic: Where is stack "revNewScriptEditor"?
Replies: 7
Views: 378

Re: Where is stack "revNewScriptEditor"?

Do you have a secret list of undocumented native LC words? My favorite is "the messageMessages", but I know there are lots more. :wink: Craig, No but I made a stack that searches the .livecodescript files of the current installation of LC which comprises most of the the code for the IDE. (the few n...

Go to advanced search