Search found 3846 matches

by bn
Sun Mar 24, 2024 9:38 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2727

Re: Code folding for Livecode 9.6.9 and up

Stam,

I should add that for command-U to work the script field has to have focus. Click anywhere in the field.
What also could help is to go to another tab and go back to the script tab where "Code Folding has eaten your homework"

Kind regards
Bernd
by bn
Sun Mar 24, 2024 9:19 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2727

Re: Code folding for Livecode 9.6.9 and up

Hi Stam, Could you try "unfold All" either from the "Edit Menu" or via command-U. Other than that try to close the tab and reopen it. I am not surprised that this happens since I never tested this and it should be taken care of. I am just wondering if any text is lost which should not happen. I am c...
by bn
Sat Mar 23, 2024 10:51 pm
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 41
Views: 2727

Re: Code folding for Livecode 9.6.9 and up

The more I use this the more it seems so essential as to be insane this isn't part of the standard IDE right now... One feature I always liked in the glx2 script editor was the ability to organise handlers of a script into 'folders' - but frankly Bernd's solution can organise code in a similar way,...
by bn
Fri Mar 22, 2024 8:13 pm
Forum: Made With LiveCode
Topic: AppLauncher - MacOS files launcher
Replies: 21
Views: 1112

Re: AppLauncher - MacOS files launcher

Klaus wrote:
Fri Mar 22, 2024 8:12 pm
I think the shortcut is added by the operating system, no matter if we leave it out in our LC menu or not.
It is a macOS standard in the end.
I beg to differ. Try the stack and see the command-Q does not close the standalone.

Kind regards
Bernd
by bn
Fri Mar 22, 2024 5:32 pm
Forum: Made With LiveCode
Topic: AppLauncher - MacOS files launcher
Replies: 21
Views: 1112

Re: AppLauncher - MacOS files launcher

Zax,

I probably misunderstood what was asked.

Kind regards
Bernd
by bn
Fri Mar 22, 2024 4:59 pm
Forum: Made With LiveCode
Topic: AppLauncher - MacOS files launcher
Replies: 21
Views: 1112

Re: AppLauncher - MacOS files launcher

I'm still unable to disable Cmd-Q Apple menu shortcut. Hi Zax, I tried to make a minimal standalone with the command-Q shortcut disabled. I selected "Disabled" in Menu Builder for the File Menu setDisabled.jpg Before compiling I set via "Menu Builder" (that seems to do the trick) setAsStackMenubar....
by bn
Thu Mar 14, 2024 7:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Bernd. Are you an Emily Dickinson fan? I am. Craig Actually I was intrigued by the text you chose and looked it up. Then I found the whole poem and liked it very much. So I was not an Emily Dickinson fan (only heard her name before) but now I like this poem and her name means something to me. Thank...
by bn
Thu Mar 14, 2024 7:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Jeff,

I think your solution is straightforward and easy to maintain.
Glad you solved the problem.

Kind regards
Bernd
by bn
Thu Mar 14, 2024 7:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Missing Fonts
Replies: 37
Views: 2054

Re: Missing Fonts

Gary,

I am glad you found a solution. Very interesting story.

Kind regards
Bernd
by bn
Thu Mar 14, 2024 2:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Bernd, you previous solution is clearly superior - this kludge is fine but scrolling and multiple highlights are an issue... if having to scroll multiple highlights this would quickly escalate into a slow-grinding nightmare! I quite like what you did with your previous solution... goes to show ther...
by bn
Thu Mar 14, 2024 1:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Nicely done. It solves the problem of metadata corrupting the backColor. But yours is a kludge as well, and I wonder how Jeff will choose... :wink: Craig, Speaking of kludge: Here is a version of your stack that hilites more than one line, makes extensive use of formattedRect, creates a graphic tha...
by bn
Wed Mar 13, 2024 10:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Missing Fonts
Replies: 37
Views: 2054

Re: Missing Fonts

set the textfont of fld "fFont" to "Quicksand Light" You can not just set the name of a font except if you are sure there is a font that is named like that. Only the pulldown menu of the Font section of a newly opened Properties Inspector would have the right name. Sparkout posted a link to a Quali...
by bn
Wed Mar 13, 2024 9:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Missing Fonts
Replies: 37
Views: 2054

Re: Missing Fonts

Gary, on mouseup answer file "Select a Font..." put it into tFont start using font file tFont set the textfont of fld "fFont" to tFont ## does not work ########## end mouseup as you can see in the properties inspector the last line of your code tries to set the font of the field to the path to the f...
by bn
Wed Mar 13, 2024 8:56 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Bernd. So the metadata is never set as a property to the words themselves, but rather in the "owner" of those words, that is, the line? In that case how do you pull the individual metaDatas for each word? Is the line metadata an associated list of pairs, each word in the line to a string of some so...
by bn
Wed Mar 13, 2024 5:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: background color of text with metadata
Replies: 35
Views: 1408

Re: background color of text with metadata

Jeff, I made another attempt at being able to set the backgroundColor of words in a text and provide metadata for each word. For me this works. I store the metadata of words in the metadata of line 1 of the field. Have a look at the demo stack and see if it fits your needs. There is a little more in...

Go to advanced search