Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Thank you. Did not know about that. It works, but seems for a specific char or chars. I have tried: on mouseup lock screen repeat with i = 1 to the number of chars of fld "text" if char i of fld "text" is return then set the imagesource of char i of fld "text" to "myreturn"

LC Wildcard filter citation source?

2018-12-08 Thread David V Glasgow via use-livecode
Hello folks, I am writing an academic paper on an analysis of internet predator messages undertaken using an LC app. A few of the filtered terms I used incorporated wildcards (I avoided regular expressions). I need to reference a published source for the implementation of wildcards within

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > On the live conversion, you are adding a unicode character before > a space, say. That means two characters and therefore two character > widths. Is there a way of making spaces zero width, or the new characters > overlapping the space etc? Ideally I want the text widths of lines

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
On Sat, 8 Dec 2018 at 16:00, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > You could moreover add the following to the field's script. > > on rawkeyup k > switch k > case 65288 -- backspace > put word 4 of the selectedChunk into cx > if char cx of me is among the

Re: remove empty lines in DG

2018-12-08 Thread JJS via use-livecode
Thanks Bob i will check out your suggestion. Jerry Op 8-12-2018 om 01:18 schreef Bob Sneidar via use-livecode: This can happen if there are keys in the data that are not numbered. Try getting the dgData of the datagrid and examining the array in the debugger. That should show you your keys.

Re: Setting hidden of lines very slow

2018-12-08 Thread Jim Lambert via use-livecode
> So I am looking to hide any line that contains no textcolor anywhere. You might save into a variable the HTMLTEXT of all the lines that contain the textcolor. Also save the HTMLTEXT of the whole field into another variable. Then in a blink of an eye you can instantly switch between the entire

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Hi Hermann There is a also a zero width character. :-) that is 200B. So using a monospace font all chars line up. And even more interesting, when I press the backspace key, it generally treats the composite pair as one character, so jumps back over both with one backspace!! On Sat, 8 Dec 2018

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > What I am looking for is a native replacement of a return, say, > with a visible characters wherever it appears. You have to replace return with if you wish to preserve the line breaks. Similarly • have you to replace space with if you wish to preserve the word breaks, • have

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > I need the user to edit as normal and with normal functionality but see the > normally > invisible characters. So seems I would need a native solution. :-( This works for me (TMHO, this demonstrates the beauty of LC). Script your field with the following. on rawkeyDown k

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Thank you for spending the time on this. Like all your posts it is an education! Great idea to convert just a visible part of text! I am going to study well and work on this. On the live conversion, you are adding a unicode character before a space, say. That means two characters and therefore

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
You could moreover add the following to the field's script. on rawkeyup k switch k case 65288 -- backspace put word 4 of the selectedChunk into cx if char cx of me is among the items of \ (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7))

Re: Map url in Browser Widget

2018-12-08 Thread hh via use-livecode
The examples of my last post show a marker but ignore the initial zoom. The following shows the marker and also respects the zoom (1-19). (Tested on desktop only). on mouseUp put 8 into z put 45.829321 into la put -109.904418 into lo set url of widget "browser" to \

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > There is a also a zero width character. :-) that is 200B. > So using a monospace font all chars line up. This works if and only if your field has dontWrap true, else your line will not (soft-)break at the new "spaces" between the words. But then (if dontWrap is true) you don't

Dynamically Set the height of DataGrid

2018-12-08 Thread Sannyasin Brahmanathaswami via use-livecode
I am slowly getting into datagrids. Doing my homework at lessons.livecode.com. I can't find a reference for doing the following: How to you get a datagrid with 2 to 12 rows to "dynamically" resize itself depend on how many rows it has? And, if has more then 12, don't resize and turn vertical