Search found 3316 matches

by bn
Mon Mar 09, 2020 4:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building styledText or htmlText from scratch to colorize text
Replies: 4
Views: 1248

Re: Building styledText or htmlText from scratch to colorize text

I am using htmlText, but the practical problem I find is that I need to color across several lines, so text contains returns. For html I need to close tags before return and open for next line. It just complicates the process. Additionally, i often have nested colors. Again I have to do all kinds o...
by bn
Sun Mar 08, 2020 5:01 pm
Forum: Multimedia
Topic: export snapshot from colorized Text
Replies: 16
Views: 1897

Re: export snapshot from colorized Text

Hi Orthomaker, I posted a sample stack how to colorize the backgroundColor of parts of words using styledText or htmlText. You might want to have a look at http://forums.livecode.com/viewtopic.php?f=8&t=33764 The aim is to do colorization faster for longer texts. Since I do not know how you decide w...
by bn
Sun Mar 08, 2020 4:57 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building styledText or htmlText from scratch to colorize text
Replies: 4
Views: 1248

Building styledText or htmlText from scratch to colorize text

Hi all, In this thread http://forums.livecode.com/viewtopic.php?f=10&t=33737 Orthomaker colorizes syllables of words according to the french rules of pronunciation. He mentions that colorizing can be slow. I attempted to do the colorization conditionally (using pseudo conditions) using styledText fr...
by bn
Fri Mar 06, 2020 10:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: ask file command issue
Replies: 12
Views: 1012

Re: ask file command issue

Hi Richard, when you use "ask file " all files are greyed out because the user can not choose from the files because you will be saving a file, only folders are not greyed out for the user to change the destination of the file. You provide a title for the window with a prompt what to do and a name f...
by bn
Thu Mar 05, 2020 10:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling list field handling
Replies: 11
Views: 767

Re: Scrolling list field handling

Hi Glenn, when you set the scroll to 0, i.e. the top of the content is showing and then you scroll down to see what was the bottom part to show at the top of the field. The scroll is then the height of the field. That is why you have to subtract the height of the field from the formattedHeight of th...
by bn
Thu Mar 05, 2020 4:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling list field handling
Replies: 11
Views: 767

Re: Scrolling list field handling

Maybe on scrollbarDrag pValue local tMaxScroll put the formattedHeight of me - the height of me into tMaxScroll if pValue >= tMaxScroll then ## get the action out of handler scrollbarDrag by sending in time ## otherwise nasty things can happen, e.g. crash send "doAnswer" to me in 0 milliseconds end ...
by bn
Wed Mar 04, 2020 1:37 pm
Forum: Talking LiveCode
Topic: counting occurrences
Replies: 13
Views: 3297

Re: counting occurrences

Dear Bernd, Many thanks for this post. I'm a newbie to LC and it has solved a problem re counting occurences that I've been trying to do for weeks! Although your code works beautifully, and I can apply it to my problem (counting occurences of words in a list), I'm unable to understand the logic of ...
by bn
Fri Feb 28, 2020 2:31 am
Forum: Windows
Topic: Converting specific TAG File Format (Sage Accounting) to CSV or XML
Replies: 9
Views: 2064

Re: Converting specific TAG File Format (Sage Accounting) to CSV or XML

Hi Pascal,

try the attached stack. It should get you started. It should be easy to add other categories if needed. See the code and the comments.

I had to convert commas into colons because the text portions contain commas.


Kind regards
Bernd
by bn
Wed Feb 26, 2020 8:00 pm
Forum: Multimedia
Topic: Player Object and AlwaysBuffer on = massive delays in script execution
Replies: 24
Views: 1247

Re: Player Object and AlwaysBuffer on = massive delays in script execution

Hi Oliver, I expanded my test stack and added a substack "u1" that floats at the bottom of the player since I set its mode to "palette". It moves with the stack (see card script on moveStack) Stack "u1" has a button to set it to "topLevel" for developing. Otherwise it is difficult to get at a palett...
by bn
Wed Feb 26, 2020 12:30 am
Forum: Multimedia
Topic: Player Object and AlwaysBuffer on = massive delays in script execution
Replies: 24
Views: 1247

Re: Player Object and AlwaysBuffer on = massive delays in script execution

In any case, I fiddled around a bit more and things got more curious. Here is what I tried: I have a stack with just a player object. AlwaysBuffer is OFF. I created a second stack, placed it on top of the first stack, set the blendlevel to 50, so I have a composite image. On this second stack I put...
by bn
Tue Feb 25, 2020 5:27 pm
Forum: Multimedia
Topic: Player Object and AlwaysBuffer on = massive delays in script execution
Replies: 24
Views: 1247

Re: Player Object and AlwaysBuffer on = massive delays in script execution

Still, my concern is valid, please use my stack with a FullHD video and you will see how massive the script execution is delayed. This is worrysome, I use livecode to make different kind of interactive video installations, for that I need reliable and precise timed execution of code in relation to ...
by bn
Tue Feb 25, 2020 1:03 am
Forum: Multimedia
Topic: Player Object and AlwaysBuffer on = massive delays in script execution
Replies: 24
Views: 1247

Re: Player Object and AlwaysBuffer on = massive delays in script execution

Hi Oliver, have you considered using callbacks? I tested your stack and using 100 milliseconds intervals and adapting the "firing" time (taking into account the elapsed time) it kind of worked. But it worked a lot better using callbacks. In the stak I set the callbacks to fire every second and put t...
by bn
Thu Feb 20, 2020 11:12 am
Forum: Off-Topic
Topic: 404 page lulz
Replies: 3
Views: 571

Re: 404 page lulz

very funny.

I like Behavioural economics and Speculative bubble best

Kind regards
Bernd
by bn
Sat Feb 15, 2020 2:19 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1864

Re: How do I deal with Code Blocks?

Hi Simon,

it works well after I granted access to "Calendar" in System Preferences -> Security -> Privacy -> Calendar

It turns out that I lead a dull live, hardly any events...

Kind regards
Bernd
by bn
Sat Feb 15, 2020 1:44 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1864

Re: How do I deal with Code Blocks?

forgot to add:
have a look at Hermann's examples of it here

viewtopic.php?f=93&t=28225

Kind regard
Bernd

Go to advanced search