Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-05 Thread Geoff Canyon via use-livecode
On Sun, Nov 4, 2018 at 7:42 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Simply add 1 to the last offset pointer. If after the first iteration you > return 1, then set the charsToSkip to 2 instead of offset + > len(searchString) if you take my meaning. > > Bob S >

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-05 Thread Geoff Canyon via use-livecode
On Sun, Nov 4, 2018 at 7:11 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > > If you're looking for 'romeo' in pText, would you set pOverlaps to true > or to false? I'd set it to false, there's no way for "romeo" to overlap. But even if I were looking for "radar",

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-05 Thread Geoff Canyon via use-livecode
I've updated my GitHub to the following, which adopts Brian's "starts with" (I can't count how many times I've had to re-remember that "starts with" is faster than comparing to char 1 through ) and added minor optimizations to the wrapping-up code. gc function allOffsets D,S,pCase,pNoOverlaps

Re: How to update a css file when using the Browser widget

2018-11-05 Thread James Hale via use-livecode
hh wrote: > Say you have the font-size declaration in the css for body. > > Then script, for example: > do "document.body.style.fontSize = '110%';" in widget "Browser" Brilliant! Thank you so much Hermann. Putting the script in a button worked like a charm Putting it in the handler that loads

[ANN] This Week in LiveCode 153

2018-11-05 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #153 here: https://goo.gl/T9FBCV This is a weekly newsletter about LiveCode, focussing on what's been going on in and around

Is this right? ColumnBehavior

2018-11-05 Thread Bob Sneidar via use-livecode
In the script of the behavior for columns in the datagrid library, I see this: on ResetData -- Sent when column data is being emptied because the control is no longer being used to display data set the text me to empty end ResetData Shouldn't that be "the text OF me"?? Will that even

Re: Sorting datagrid column with a tricj?

2018-11-05 Thread Bob Sneidar via use-livecode
Hi Trevor. Just a heads up, I followed those instructions in the lesson to the letter. It broke my datagrid. It would no longer populate and I could not select a row by clicking on it. It may have to do with the new dg behavior heirarchy. I could see that someone else was having difficulty

Re: Sorting datagrid column with a tricj?

2018-11-05 Thread Trevor DeVore via use-livecode
On Mon, Nov 5, 2018 at 11:03 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Trevor. > > Just a heads up, I followed those instructions in the lesson to the > letter. It broke my datagrid. It would no longer populate and I could not > select a row by clicking on it. >

Re: Sorting datagrid column with a tricj?

2018-11-05 Thread Bob Sneidar via use-livecode
Hi Trevor. Actually I came up with a fairly elegant solution which is quite simple. In the column behavior script I added some code: on FillInData pData -- This message is sent when the Data Grid needs to populate -- this template with the column data. pData is the value to be displayed.

Re: Sorting datagrid column with a tricj?

2018-11-05 Thread Bob Sneidar via use-livecode
I think at some point the way this needs to work is to send fillInData message to the script of the datagrid. Most LC devs see the datagrid as a complex magical black box kind of object, and are reticent to pull it apart or copy bits of it to other places to get it to do something different.

Re: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community

2018-11-05 Thread Trevor DeVore via use-livecode
On Thu, Oct 11, 2018 at 10:40 AM Trevor DeVore wrote: > I'm aware of the following limitations and bugs around Hi-DPI support on > Windows: > > 1. The `screenPixelScales` reports the pixelScale of the primary monitor > for all attached monitors. For example, if you have a Windows 10 computer >