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"
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
> 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
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
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.
> 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
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
> 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
> 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
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
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))
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 \
> 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
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
14 matches
Mail list logo