Search found 449 matches
- Thu Apr 06, 2023 3:30 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Regex to remove multiple return characters
- Replies: 20
- Views: 7861
Regex to remove multiple return characters
Hi, I have fields with multiple empty lines (return characters) preceding the actual text. I would like to use the replacetext function to remove them. as in put "^\r" into rt Put replacetext(Fld "f1",rt,"") into Fld "f1 I have tried a few different expressions in rt but the most I can accomplish af...
Re: Gift 2
nice, thanks Richmond
- Mon Apr 03, 2023 1:09 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Adding your own icons to the Navigation and Header bar widgets
- Replies: 11
- Views: 4153
Re: Adding your own icons to the Navigation and Header bar widgets
Ah yes, I played with that stack too.
It took me a while to realise what to do with the .lson file.
But then I figured with only 4 icons wanted it was just as easy to add them as I did.
If I need more it is simpler than creating a new library.
It took me a while to realise what to do with the .lson file.
But then I figured with only 4 icons wanted it was just as easy to add them as I did.
If I need more it is simpler than creating a new library.
- Sun Apr 02, 2023 7:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Adding your own icons to the Navigation and Header bar widgets
- Replies: 11
- Views: 4153
Re: Adding your own icons to the Navigation and Header bar widgets
Sorry Richmond I have no clue as to the meaning of your stack. As for your post Jacque I am intrigued as to how you imported your SVGs into the header bar widget. I thought it could only accept icons (as stored in a library). Importing an SVG as a control produces an image object, which certainly be...
- Sat Apr 01, 2023 3:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Adding your own icons to the Navigation and Header bar widgets
- Replies: 11
- Views: 4153
Re: Adding your own icons to the Navigation and Header bar widgets
Hi stam, drawingSvgCompile is for for building the binary string representing the SVG file. The "Icon SVG Library" has commands for adding icons but they all go to the "custom" library. I don't think there is a merge library command, although if there is it could be dangerous to use. You would need ...
- Sat Apr 01, 2023 5:30 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Adding your own icons to the Navigation and Header bar widgets
- Replies: 11
- Views: 4153
Adding your own icons to the Navigation and Header bar widgets
Currently rewriting an app that use a bit of geometry scripts to handle different screen sizes and orientations. I thought I would try out the Responsive Layout with that navigation bar widget to handle moving my controls around. Worked quite well except the icons available in the IDE were not suita...
- Fri Mar 31, 2023 11:24 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: add to icon family?
- Replies: 5
- Views: 2548
Re: add to icon family?
Got it, thanks to Panos.
Well this solution adds it to the stack so it can be used.
Mentioned in this lesson: https://livecode.com/polylist-widget-in-the-spotlight/
In the comments.
Needs to be in opencard.
Well this solution adds it to the stack so it can be used.
Mentioned in this lesson: https://livecode.com/polylist-widget-in-the-spotlight/
In the comments.
Needs to be in opencard.
- Fri Mar 31, 2023 3:09 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: add to icon family?
- Replies: 5
- Views: 2548
Re: add to icon family?
I read the dictionary entry for this but cannot understand how to use it, as far as I can gather it adds to the families available in the IDE only
- Wed Mar 29, 2023 5:50 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: add to icon family?
- Replies: 5
- Views: 2548
add to icon family?
Hi all, Is it possible to add an svg icon to the icon family so that it gets included in a standalone? I have made/modified some icons and used the tools on revshare to create a family which I can use in the IDE to populate the header and navigation bar widgets. However they aren't included when I b...
- Wed Mar 22, 2023 2:06 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: filter array
- Replies: 10
- Views: 5204
Re: filter array
Brilliant.
Thanks Bernd
Thanks Bernd
- Wed Mar 22, 2023 3:21 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: filter array
- Replies: 10
- Views: 5204
Re: filter array
You would think so, wouldn't you. I tried with my dataset but found directly addressing the 2nd dimension directly was 30 - 50% slower! Three runs with my current handler 996,970, 1560 msecs Three runs with suggested: 2701 2998, 2960 msecs It surprised me. I guess accessing the second dim like that ...
- Mon Mar 20, 2023 1:31 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: filter array
- Replies: 10
- Views: 5204
Re: filter array
Not to be deterred I copied the dimension I waa interested into a 1 dim array (same key) and yes the filter worked as expected. I then wondered if tis was still faster than using a repeat and if "contains" structure to get the list of keys so I compared the two/ if thesearch is not empty then repeat...
- Mon Mar 20, 2023 12:16 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: filter array
- Replies: 10
- Views: 5204
Re: filter array
“ if the array is just one dimension.”
Doh!
Doh!
- Sun Mar 19, 2023 2:57 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: filter array
- Replies: 10
- Views: 5204
filter array
I have an indexed array of text segments. I would like to find those elements of the array that contains a specific word. I thought FILTER would do this. I tested out using filter with the following code: on dosearch local thesearch, sctext --present answer dlog for search ask "Please enter the word...
- Sun Mar 05, 2023 2:43 am
- Forum: Off-Topic
- Topic: Sub-to-srt now adjusts intervals
- Replies: 0
- Views: 14476
Sub-to-srt now adjusts intervals
Hi, I have just added a feature to the sub-to-srt stack that will adjust the length of a individual subtitle to be no more than 3 words per second. I have quite a few old DVDs which I am in the process of digitising but which have no subtitles. There are also no subtitles on the web. I discovered Ma...