Search found 3848 matches

by bn
Sun Mar 10, 2024 12:11 am
Forum: Talking LiveCode
Topic: Reading and writing text to / from a file
Replies: 26
Views: 1325

Re: Reading and writing text to / from a file

Would be interesting how that compares speed wise to the 'dumb' route: on mouseUp local tFile, tData answer file "choose file to read" if it is empty then exit mouseUp put it into tFile put line -200 to -1 of tFile into tData // ... process tData end mouseUp I'm guessing there won't be much differe...
by bn
Sat Mar 09, 2024 9:53 pm
Forum: Talking LiveCode
Topic: Reading and writing text to / from a file
Replies: 26
Views: 1325

Re: Reading and writing text to / from a file

Bruce, Since you insist you could try this: on mouseUp ## 25 chars per row ## lets use 30 chars to be sure put 200 * 30 into tCharsNeeded ## the number of lines you want from the end of the file put 200 into tNumLinesNeeded answer file "choose file to read" if it is empty then exit mouseUp put it in...
by bn
Thu Mar 07, 2024 8:10 pm
Forum: Games
Topic: Vector Graphics Experiments
Replies: 17
Views: 1351

Re: Vector Graphics Experiments

Mike, If you want to 'embellish' your line graphic here is a change to your createALine handler: command createALine pObject if there is not a graphic "Line" and gIsDragging then create graphic "Line" set the endArrow of the last graphic to true set the dashes of the last graphic to 4 ## change for ...
by bn
Thu Mar 07, 2024 9:48 am
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2856

Re: Code folding for Livecode 9.6.9 and up

THANKS Bernd. This is a great feature for the script editor. I love it ! Only had on instance where the script editor crashed (closed) when I copy/pasted a folded command. Not a big deal.. :) Thank you Richard, Though I have not tested copying folded commands extensively I am surprised that it did ...
by bn
Wed Mar 06, 2024 9:25 am
Forum: Games
Topic: Vector Graphics Experiments
Replies: 17
Views: 1351

Re: Vector Graphics Experiments

The attached stack demos a working strategy for creating connecting lines, maintaining the connection while objects are moved, but disconnecting the lines has me temporarily stumped. Any ideas? Hi Mike, the short answer is to change the code in the template script regarding deleting graphic "line" ...
by bn
Mon Mar 04, 2024 8:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: tsneterr: (35) SSL peer handshake failed
Replies: 7
Views: 680

Re: tsneterr: (35) SSL peer handshake failed

Hi Greg,

I tried your stack in the IDE on MacOS Monterey (12.7.2) using LC 9.6.11 Mac the processor is "arm64"

It showed JSON, no error. Something about "My awesome workspace"

I just clicked a couple of times and it was always the same.

Kinder Regards
Bernd
by bn
Mon Mar 04, 2024 7:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Click and/or drag ?
Replies: 58
Views: 3123

Re: Click and/or drag ?

Thank you Stam,

This is a wonderful example of publish and subscribe.
BTW LC IDE uses a similar mechanism all over the place.

Kind regards
Bernd
by bn
Sun Mar 03, 2024 9:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Click and/or drag ?
Replies: 58
Views: 3123

Re: Click and/or drag ?

If you use Klaus' stack "drip_drop4" then in the behvior script try on mouseDown export snapshot from me to img "dragimage" as png set the dragdata["text"] to the name of me put item 1 of the mouseLoc - the left of me into tHoriz put item 2 of the mouseLoc - the top of me into tVert set the dragImag...
by bn
Sun Mar 03, 2024 5:52 pm
Forum: Games
Topic: Vector Graphics Experiments
Replies: 17
Views: 1351

Re: Vector Graphics Experiments

Hi Mike, this is an example again with your 14 LED card. But the resize code of group LED14 is cleaned up and I hope a bit more precise. KInd regards Bernd There was a bug in the previous uploaded cleaned up stack that crashed LC (I inverted the start and end value of a scrollbar) which manifested i...
by bn
Fri Mar 01, 2024 7:21 pm
Forum: Games
Topic: Vector Graphics Experiments
Replies: 17
Views: 1351

Re: Vector Graphics Experiments

Thanks Mike, great stuff! The thorny issue of re-sizing may be quite a bit of work, especially with the 14 segment version... This has to be an important feature I guess. You'd need to maintain the aspect ratio and resize/reposition individual graphics in the resizeControl handler. Thank you Mike f...
by bn
Tue Feb 27, 2024 6:09 pm
Forum: Games
Topic: Vector Graphics Experiments
Replies: 17
Views: 1351

Re: Vector Graphics Experiments

Hi Mike, there is a small glitch in button "glow toggle" of card "14...". It refers to group "LED" instead of "LED14". Throws an error when turning glow off. Another small glitch: The line size of the graphics of group "LED14" is 12. But so is the height/width of the graphics. That cuts some of the ...
by bn
Thu Feb 22, 2024 2:57 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2856

Re: Code folding for Livecode 9.6.9 and up

As before this version has been tested with version 9.6.9 up to 10.0.0 DP-7 Thank you Bernd -- is it safe to use this where the previous permanent fix was applied or should this be applied to a pristine IDE? I think you might want to apply it to a fresh installation of your version. Just to not tak...
by bn
Thu Feb 22, 2024 2:23 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2856

Re: Code folding for Livecode 9.6.9 and up

New version of Code Folding Since I did not hear of further possible bugs I upload a new version of Code Folding stack. It has in addition to Stam's report two more bug fixes. The stack now has the option to make the temporary changes to the IDE permanent via a button The stack now also has the opt...
by bn
Tue Feb 20, 2024 10:09 am
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2856

Re: Code folding for Livecode 9.6.9 and up

Stam, Bernd, just wanted to thank you again -- this has made working on long scripts of hundreds of lines a breeze! I thank you for feedback and all the others that tried Code Folding. I actually found two more small bugs (beside the one you found) and am working on making the installation process a...
by bn
Wed Feb 14, 2024 1:32 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2856

Re: Code folding for Livecode 9.6.9 and up

Patch for shortcuts problems Hi Bernd, One possible side effect I discovered after making this permanent: On Mac the shortcuts cmd-shift-C for card script and cmd-shift-S for stack script have stopped working... Hi Stam, Thank you for spotting the shortcut problem. Here is a stack that lets you fix...

Go to advanced search