Search found 3863 matches
- Wed May 15, 2024 10:25 pm
- Forum: Talking LiveCode
- Topic: Code folding for Livecode 9.6.9 and up
- Replies: 44
- Views: 3813
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...
- Wed May 15, 2024 7:26 pm
- Forum: Talking LiveCode
- Topic: Code folding for Livecode 9.6.9 and up
- Replies: 44
- Views: 3813
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...
- Sat May 11, 2024 11:13 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Color Scripts
- Replies: 4
- Views: 217
Re: Color Scripts
Hi Zax,
Thank you for this stack. I is very nicely done and comes in handy.
Kind regards
Bernd
Thank you for this stack. I is very nicely done and comes in handy.
Kind regards
Bernd
- 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: 316
Re: How to honor "Auto-Rotate Off" on Android
Jeff,
mobileOrientationLocked()
should do what you want.
Kind regards
Bernd
mobileOrientationLocked()
should do what you want.
Kind regards
Bernd
- Sat May 04, 2024 6:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1337
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...
- Sat May 04, 2024 6:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1337
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">...
- Sat May 04, 2024 9:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1337
Re: Exporting text to SVG
this is the svg
Kind regards
Bernd
Kind regards
Bernd
- Sat May 04, 2024 9:42 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1337
Re: Exporting text to SVG
Richmond,
What happens if you
?
Kind regards
Bernd
What happens if you
Code: Select all
put textEncode(tText, "UTF-8") into tText
Kind regards
Bernd
- Fri May 03, 2024 6:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1337
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...
- 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: 218
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 ...
- Thu May 02, 2024 6:22 pm
- Forum: Talking LiveCode
- Topic: Where is stack "revNewScriptEditor"?
- Replies: 7
- Views: 274
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...
- Thu May 02, 2024 4:38 pm
- Forum: Talking LiveCode
- Topic: Where is stack "revNewScriptEditor"?
- Replies: 7
- Views: 274
Re: Where is stack "revNewScriptEditor"?
Craig,
If an actual editor is created within "revNewScriptEditor" these functions are helpful.
The topMostEditor:
All currently open Editors
Kind regards
Bernd
If an actual editor is created within "revNewScriptEditor" these functions are helpful.
The topMostEditor:
Code: Select all
put revTopMostScriptEditor()
Code: Select all
put revListScriptEditors()
Bernd
- Thu Apr 25, 2024 6:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Palettising a main stack.
- Replies: 9
- Views: 459
Re: Palettising a main stack.
try:richmond62 wrote: ↑Thu Apr 25, 2024 4:41 pmI should like a main stack to appear as a palette, but this in the stack script does nothing:Code: Select all
on openStack palette me end openStack
Code: Select all
on openStack
palette this stack
end openStack
Bernd
- Wed Apr 24, 2024 3:14 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 1600
Re: Force the script editor to update?
@ Bernd : awesome script! Though, don't you think this script would be better by modifying lines 39 to 44 with: repeat for each line anEntry in tTabList if first word of anEntry is "stack" then put anEntry & cr after tCleanStackList else put "stack " & item 2 to -1 of anEntry & cr after tCleanStack...
- Wed Apr 24, 2024 11:34 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 1600
Re: Force the script editor to update?
Hi Zax, here is a heavily commented script that does what I think is what you want: remove tabs from the script editor if the stack is closed. ## the script editor tabs are named using the rugged id of the objects ## Menu Window of LC lists the available stacks as the short names of the stacks ## a ...