Search found 3850 matches

by bn
Wed Apr 24, 2024 3:14 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 26
Views: 495

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...
by bn
Wed Apr 24, 2024 11:34 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 26
Views: 495

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 ...
by bn
Mon Apr 22, 2024 6:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: My masterpiece vanished.
Replies: 11
Views: 352

Re: My masterpiece vanished.

Just tested, I can confirm that this is a bug, macOS 14.4.1, LC 9.6.11 Please report it here: https://quality.livecode.com There is a related bug report in QCC https://quality.livecode.com/show_bug.cgi?id=24034 I you first place an image object on the card and then use the paint tools to paint into...
by bn
Wed Apr 17, 2024 8:01 pm
Forum: Talking LiveCode
Topic: PolyGrid Direct Cell Editing?
Replies: 16
Views: 11165

Re: PolyGrid Direct Cell Editing?

Lance, I updated my modifications to the script of widget "myPolyGrid" taking account of the font used in widget "myPolyGrid" and also fine-tuned the placement of the topMargin to fit better in a wider range of rowHeight and textSize combinations of the widget. Here is the updated script on cellClic...
by bn
Tue Apr 16, 2024 4:42 pm
Forum: Talking LiveCode
Topic: PolyGrid Direct Cell Editing?
Replies: 16
Views: 11165

Re: PolyGrid Direct Cell Editing?

Hi Lance, Thank you for posting this. It solves a major problem with the PolyGrid. I took the liberty to extend your code: 1. I wanted to see the current text of the cell of the polyGrid in field "UserEdit" since often one just wants to correct a typo etc. 2. I wanted the text in field "UserEdit" to...
by bn
Mon Apr 15, 2024 9:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 1960

Re: Styling paragraphs/lines?

Waiting for Zax, cleaned up an issue with horizontal scrolling with one or more long lines of unwrapped text. Still not perfect as regards the vertical scrollbar. Craig, add on ScrollbarDrag lock screen put the uStartLine of field "overlay" into tStartLinle put the uEndLine of field "overlay" into ...
by bn
Mon Apr 15, 2024 6:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 1960

Re: Styling paragraphs/lines?

Craig, You could also add send "scrollbarDrag" to field "fText" to the end of the mouseUp handler of field "Make Overlay 4" Also if the don't wrap of the field is set then adding to the script of field "fText" if the vScrollbar of field "fText" then subtract the scrollbarWidth of field "fText" from ...
by bn
Mon Apr 15, 2024 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 1960

Re: Styling paragraphs/lines?

Craig,

that looks nice and all your script needs is a "select empty" after getting the formattedRect.

Kind regards
Bernd
by bn
Mon Apr 15, 2024 3:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Bad Document Id
Replies: 5
Views: 226

Re: Bad Document Id

Hi LXs98, if you want to construct your xml from code inside the script try this: on mouseUp put "<ResultInfo>" & \ "<ErrorNumber>0</ErrorNumber>" & \ "<Result>Success</Result>" & \ "<Message>The codes for your meeting have been emailed to John along with some instructions</Message>" & \ "</ResultIn...
by bn
Mon Apr 15, 2024 2:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 1960

Re: Styling paragraphs/lines?

Hi Zax, I used Dunbarx stack and modified it a bit. I used the field "overlay" to mark text. I made it scrollable (see script of main field) also you can put the overlay field in front of main field or behind the main field (obviously not when the main field is opaque. If the overlay is in front of ...
by bn
Fri Mar 29, 2024 3:56 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2896

Re: Code folding for Livecode 9.6.9 and up

Hi Stam,

Thank you for reporting, I am currently looking into the first issue you reported and will look into the second issue you found.
For the first issue I might have a solution that needs more testing.

Kind regards
Bernd
by bn
Mon Mar 25, 2024 3:07 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2896

Re: Code folding for Livecode 9.6.9 and up

Hi Stam,
Thanks for testing and confirming that it works.
I will probably upload the new version soon,

Kind regards
Bernd
by bn
Mon Mar 25, 2024 12:39 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2896

Re: Code folding for Livecode 9.6.9 and up

Stam,

I have sent you the current version of code folding to your .mac address. It should fix the problem. Could you try that version?

Kind regards
Bernd
by bn
Mon Mar 25, 2024 11:29 am
Forum: Talking LiveCode
Topic: Communicate with AI via tsNetGetSync (Solved)
Replies: 13
Views: 647

Re: Communicate with AI via tsNetGetSync (Solved)

Paul,

I downloaded your stack from dropBox and downloaded the Ollama version for Mac.

Unfortunately I am currently involved in another project and can not test nor adapt your stack for Mac.

I will wait until maybe someone figures it out.

Kind regards
Bernd
by bn
Mon Mar 25, 2024 11:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rename an Icon?
Replies: 37
Views: 1452

Re: Rename an Icon?

Hi Pugalug, I have imported as control some image files and saved them to a separate card in my stack. I want to use these images as button icons. I am making a spinner game and the id of the images keeps changing You could name your images like "horse1", "horse2" etc. and then set the icon of butto...

Go to advanced search