Re: OT: ConcertWare Font

2019-04-08 Thread Ron Metzker via use-livecode
BR,

Here you go. You can get the font here for free.
https://sightcreations.wordpress.com/2014/06/02/25-years-the-unsung-music-symbols-font/
 


Best Regards
Ron

> On Apr 8, 2019, at 3:30 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Way off topic, but we have some old mac users here, many into music.
> 
> I am looking for a music notation font called ConcertWare.
> 
> A music/midi program circa 2000 made by Chad Mitchell, Great Wave Software, 
> later owned by Jump! Software.   Then went out of business,
> 
> I have some old eps document that you the ConcertWare Fonts.
> 
> 
> BR
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT: ConcertWare Font

2019-04-08 Thread Sannyasin Brahmanathaswami via use-livecode
Way off topic, but we have some old mac users here, many into music.

I am looking for a music notation font called ConcertWare.

A music/midi program circa 2000 made by Chad Mitchell, Great Wave Software, 
later owned by Jump! Software.   Then went out of business,

I have some old eps document that you the ConcertWare Fonts.


BR

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser selections

2019-04-08 Thread J. Landman Gay via use-livecode
Actually, I need to hilite a portion of the text in the browser rather 
than just get the whole content. Are you doing that?


Eventually I may need to get the user's drag-selection too, but not yet.


On 4/8/19 12:22 PM, JJS via use-livecode wrote:

you can use this:

*put*thehtmlTextofwidget"browser"intotT


i use this now for an api which redirects to a php file which echoes a 
line of text (as normally it would use the URL scheme, but this does not 
work with the widget)


this way i could use the  browser widget and stay in the app(mobile) 
instead of using a external browser and retunring to the app afterwards 
which is an ugly thing and leaves the url open in an extenal browser.


if the text in the browser is my text then it moves on(and i'm checking 
like 10 times)


It works great!


Op 7-4-2019 om 21:34 schreef J. Landman Gay via use-livecode:
Is there a way to get/set selected text in a browser widget? I 
couldn't find anything.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Browser selections

2019-04-08 Thread J. Landman Gay via use-livecode
Thanks. I don't know JavaScript so it's a little over my head, but I'll 
try it.


On 4/8/19 6:22 AM, hh via use-livecode wrote:

(Getting the selection of a browser widget: Aee my previous post).

Setting the selection of a browser widget:

Assume you have an element click me in your webpage.
Then the following selects char 1 to 4 of the link text (= "clic").

on mouseUp
   put "var node = document.getElementById('jlg1').firstChild;" & \
 "var range = document.createRange();" & \
 "range.setStart(node, 0); range.setEnd(node, 3);" & \
 "var selection = window.getSelection();" & \
 "selection.removeAllRanges(); selection.addRange(range);" into js
   do js in widget "Browser"
end mouseUp

Note that setStart and setEnd are zero-based in counting chars.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser selections

2019-04-08 Thread JJS via use-livecode

you can use this:

*put*thehtmlTextofwidget"browser"intotT


i use this now for an api which redirects to a php file which echoes a 
line of text (as normally it would use the URL scheme, but this does not 
work with the widget)


this way i could use the  browser widget and stay in the app(mobile) 
instead of using a external browser and retunring to the app afterwards 
which is an ugly thing and leaves the url open in an extenal browser.


if the text in the browser is my text then it moves on(and i'm checking 
like 10 times)


It works great!


Op 7-4-2019 om 21:34 schreef J. Landman Gay via use-livecode:
Is there a way to get/set selected text in a browser widget? I 
couldn't find anything.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

LC 9.0.4 rc2 no longer hangs with modal dialogs!

2019-04-08 Thread Bob Sneidar via use-livecode
Thanks to the LC dev team, building an app no longer hangs when a modal dialog 
is opened. While a minor nuisance, this did get a little annoying at times. 

Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Mark Waddingham via use-livecode

On 2019-04-08 18:27, Ralph DiMola via use-livecode wrote:
No tabstops using the styledText property either. This is the one I 
would

have expected to include the tab stops/widths.


Both styledText and htmlText representations do include the tabStops 
(and tabAlign) settings - however both those formats (by default) only 
encode the field content (e.g. paragraph styles, character styles and 
text).


If you want the properties inherited into the field content (i.e. from 
all ancestor objects, including the field itself) then you can use the 
'effective' adjective.


In contrast, rtfText is always generated as if 'effective' is specified 
(as you can't encode the notion of inheritance of property values in 
RTF) - however, as has been noticed, it does not support the tabStops 
nor tabAlign properties).


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
This is a bit more useful. Pass the long id of the field object:

function fieldToHTMLTable pFieldID
   if not there is a field pFieldID then return "ERROR: Field object does not 
exist!"
   put the htmltext of pFieldID into ht
   put the effective textSize of pFieldID into fs
   put the tabstops of pFieldID into tStops
   put the width of pFieldID into fw
   put empty into tabbs
   -- we need tabstops relative, not absolute
   put item 1 of tStops into tabbs[1]
   repeat with i=2 to the num of items of tStops
  put item i of tStops - item (i-1) of tStops into tabbs[i]
   end repeat
   set itemdel to ("&" & "#9;");
   set linedel to ""
   replace "" with empty in ht
   put ""into s0
   repeat for each line L in ht
  put empty into s
  repeat with i=1 to the num of items of L
 put item i of L into II
 put "" & "" after s
  end repeat
  if s is not empty then put cr&""&"" after s0
   end repeat
   put "" & cr & \
 "" & \
 s0 & cr & "" into htm
   return htm
end fieldToHTMLTable

Bob S

> On Apr 8, 2019, at 09:07 , hh via use-livecode 
>  wrote:
> 
> -- Converts a simple table field with tabstops to a html 
> http://lists.runrev.com/pipermail/use-livecode/2019-March/253271.html


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Ralph DiMola via use-livecode
No tabstops using the styledText property either. This is the one I would
have expected to include the tab stops/widths.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richard Gaskin via use-livecode
Sent: Monday, April 08, 2019 11:56 AM
To: use-livecode@lists.runrev.com
Cc: Richard Gaskin
Subject: Re: Saving a tab formatted field to a file and retaining its
formatting

Robert J. Earp wrote:

 > Dear all, we have a field that is formatted nicely with tabs and want  >
to save that as a file, retaining the tab formatting.  The saved file  >
format ideally should be .rtf but we may be able to use other formats  >
such as .pdf  >  > Anybody got any ideas how to do this ?

Short answer: Not directly just yet, but with RTF being a text format you
could write a function to add column widths to RTF on export.


Longer answer:

Exporting the contents of a field does not export the properties of a 
field object itself.  But with the enhancements of v5.4 we now have MANY 
more paragraph-level properties.

So we would expect that setting the tabStops (or the newer tabWidths, 
sometimes a more useful alternative) of each line within the field would 
produce rtFText that includes those column specifiers.

But alas, I just tried it and it does not.

If someone has time to catalog those RTF features that LC now supports 
with fields but does not include in rtfText it may be helpful to file an 
enhancement request to bring rtfText current with the full range of 
relevant text properties.

RtfText is not designed to be able to reproduce an LC field with 
complete fidelity (that's htmlText's role), but should include all 
attributes common to both LC and RTF, and AFAIK did cover almost all of 
them until v5.4 introduced all the new paragraph and inline styling 
properties.

For now, a workaround would be to write a function that walks through 
the rows and columns of a field, including column width specifiers as 
you go.   Tedious, but doable.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Robert J. Earp via use-livecode
Thanks for the reply Paul.  Yes, tried that but there are problems.  It saves a 
.rtf file but when you open that in MSWord (OS X or Windows) the tabs are 
changed to underscores.  If you open the file in OS X TextEdit it does have 
tabs but the position/spacing is not retained.  I’ve created a sample/test 
stack if anybody wants to play ;-)

Our project is supposed to create a formatted file that external to the LC 
project, gets assembled with other documents/files to make a presentable 
report.  The other docs/files are .rtf (created in MSWord or Pages or TextEdit) 
and an .eps file.  The final report will be a .pdf and Acrobat is likely what 
will get used to manually assemble the final report.

To quote my valued colleague (RogerG) on this problem, and who has spent 
inordinate hours trying to find a solution, tabs have turned out to be tricky 
little devils in LC !!

best, Bob... 

> From: Paul Dupuis mailto:p...@researchware.com>>
> To: use-livecode@lists.runrev.com 
> Subject: Re: Saving a tab formatted field to a file and retaining its
>   formatting
> Message-ID:  >
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> I take it your have tried:
> 
> put the rtfText of field "X" into URL 
> ("file:"("desktop")&"savedfield.rtf")
> 
> And then reading it back to a new field with:
> 
> set the rtfText of field "Y" to URL 
> ("file:"("desktop")&"savedfield.rtf")
> 
> and the tab spacing is not preserved?
> 
> 
> 
> On 4/7/2019 7:57 PM, Robert J. Earp via use-livecode wrote:
>> Dear all, we have a field that is formatted nicely with tabs and want to 
>> save that as a file, retaining the tab formatting.  The saved file format 
>> ideally should be .rtf but we may be able to use other formats such as .pdf
>> 
>> Anybody got any ideas how to do this ?
>> 
>> Thanks in advance for your suggestions.
>> 
>> best, Bob?
>> 
>> Bob Earp - White Rock, BC, Canada
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread hh via use-livecode
-- Converts a simple table field with tabstops to a html 
http://lists.runrev.com/pipermail/use-livecode/2019-March/253271.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Richard Gaskin via use-livecode

Robert J. Earp wrote:

> Dear all, we have a field that is formatted nicely with tabs and want
> to save that as a file, retaining the tab formatting.  The saved file
> format ideally should be .rtf but we may be able to use other formats
> such as .pdf
>
> Anybody got any ideas how to do this ?

Short answer: Not directly just yet, but with RTF being a text format 
you could write a function to add column widths to RTF on export.



Longer answer:

Exporting the contents of a field does not export the properties of a 
field object itself.  But with the enhancements of v5.4 we now have MANY 
more paragraph-level properties.


So we would expect that setting the tabStops (or the newer tabWidths, 
sometimes a more useful alternative) of each line within the field would 
produce rtFText that includes those column specifiers.


But alas, I just tried it and it does not.

If someone has time to catalog those RTF features that LC now supports 
with fields but does not include in rtfText it may be helpful to file an 
enhancement request to bring rtfText current with the full range of 
relevant text properties.


RtfText is not designed to be able to reproduce an LC field with 
complete fidelity (that's htmlText's role), but should include all 
attributes common to both LC and RTF, and AFAIK did cover almost all of 
them until v5.4 introduced all the new paragraph and inline styling 
properties.


For now, a workaround would be to write a function that walks through 
the rows and columns of a field, including column width specifiers as 
you go.   Tedious, but doable.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
I just tested with htmltext. Tab stops are NOT preserved. 

Bob S


> On Apr 8, 2019, at 07:55 , Paul Dupuis via use-livecode 
>  wrote:
> 
> On 4/7/2019 9:00 PM, Paul Dupuis via use-livecode wrote:
>> I take it your have tried:
>> 
>> put the rtfText of field "X" into URL 
>> ("file:"("desktop")&"savedfield.rtf")
>> 
>> And then reading it back to a new field with:
>> 
>> set the rtfText of field "Y" to URL 
>> ("file:"("desktop")&"savedfield.rtf")
>> 
>> and the tab spacing is not preserved?
>> 
> 
> If the rtfText does nto preserve the tabstops, the htmlText should preserve 
> the tabstops. See the dictionary entry for the htmlText property of a field.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
Because the tab stops are not part of the data of any formatted text 
properties. You can test this by creating a table field, setting the tab stops 
to whatever you want, typing some information, setting the clipBoardData 
["rtftext"] to the rtftext of the table field, then pasting into a word 
document as formatted text. Word retains it's own tab stops, because none of 
the tab stops set in the table field are in the rtf text copied to the 
clipboard. 

Bob S


> On Apr 8, 2019, at 06:25 , dunbarxx via use-livecode 
>  wrote:
> 
> Hi.
> 
> I am always missing something. Why is there an issue retaining tabs in a
> body of ordinary text?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Paul Dupuis via use-livecode

On 4/7/2019 9:00 PM, Paul Dupuis via use-livecode wrote:

I take it your have tried:

put the rtfText of field "X" into URL 
("file:"("desktop")&"savedfield.rtf")


And then reading it back to a new field with:

set the rtfText of field "Y" to URL 
("file:"("desktop")&"savedfield.rtf")


and the tab spacing is not preserved?



If the rtfText does nto preserve the tabstops, the htmlText should 
preserve the tabstops. See the dictionary entry for the htmlText 
property of a field.


If neither the rtfText property of a field, nor the htmlText property of 
a field preserve the tabstops (again, not sure about rtfText, but the 
Dictionary implies htmlText does), you can use


put the arralEncode(the styledText of field "X") into URL 
("binfile:"("desktop")&"savedfield.bin")


And then reading it back to a new field with:

put URL 
("binfile:"("desktop")&"savedfield.bin")into 
tFieldData

set the styledText of field "Y" to arrayDecode(tFieldData)

But this later approach does not produce an RTF or HTML file that can be 
opened in other software tools like Microsoft Word


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
I am usually very good at describing problems.

I am not so good at describing solutions.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Confirm Bug in Button - iconGravity and margins

2019-04-08 Thread Sannyasin Brahmanathaswami via use-livecode
Strange, re-booted my Mac and Livecode... 

Set iconGravity is btn "hello" to top now works..

BR 

 Paul Hibbert 

Not seeing this behaviour here on Mac.

Paul

macOS Mojave 10.14.4

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Roger Guay via use-livecode
That is a very clear explanation of what I think the problem is.

Roger

> On Apr 8, 2019, at 7:03 AM, dunbarxx via use-livecode 
>  wrote:
> 
> But that is a property of a field, not of text, and I do not think such
> information can be similarly "transmitted", regardless of how that text is
> formatted.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
Aha. TabStops.

Unless I am missing something, is it that the data in a tabStop formatted
field is to be copied somehow, so that if loaded into a brand new field, the
tabStops property is also "loaded" into that field?


But that is a property of a field, not of text, and I do not think such
information can be similarly "transmitted", regardless of how that text is
formatted.

I could be wrong.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Brian Milby via use-livecode
I don’t think it is the tab character but rather the tab stops that are the 
problem.

Brian
On Apr 8, 2019, 9:26 AM -0400, dunbarxx via use-livecode 
, wrote:
> Hi.
>
> I am always missing something. Why is there an issue retaining tabs in a
> body of ordinary text?
>
> I have a table field with "A" & tab & "B" & tab & "C" in it. If I write that
> text into a file on my desktop and then load it back into the second line of
> that field:
>
> on mouseUp
> get fld 1
>
> open file "/users/craignewman/desktop/xxx" for text write
> write it to file "/users/craignewman/desktop/xxx"
> close file "/users/craignewman/desktop/xxx"
>
> open file "/users/craignewman/desktop/xxx" for read
> read from file "/users/craignewman/desktop/xxx" until EOF
> close file "/users/craignewman/desktop/xxx"
>
> put it into line 2 of fld 1
> end mouseUp
>
> The identical text is now in line 2, all tabs intact. No rtf stuff needed.
>
> I am always missing something.
>
> Craig Newman
>
>
>
> --
> Sent from: 
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
Hi.

I am always missing something. Why is there an issue retaining tabs in a
body of ordinary text?

I have a table field with "A" & tab & "B" & tab & "C" in it. If I write that
text into a file on my desktop and then load it back into the second line of
that field:

on mouseUp
   get fld 1
   
   open file  "/users/craignewman/desktop/xxx" for text write
   write it to file  "/users/craignewman/desktop/xxx"
   close file "/users/craignewman/desktop/xxx"
   
   open file  "/users/craignewman/desktop/xxx" for read
   read from file  "/users/craignewman/desktop/xxx" until EOF
   close file  "/users/craignewman/desktop/xxx"
   
   put it into line 2 of fld 1
end mouseUp

The identical text is now in line 2, all tabs intact. No rtf stuff needed.

I am always missing something.

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser selections

2019-04-08 Thread hh via use-livecode
(Getting the selection of a browser widget: Aee my previous post).

Setting the selection of a browser widget:

Assume you have an element click me in your webpage.
Then the following selects char 1 to 4 of the link text (= "clic").

on mouseUp
  put "var node = document.getElementById('jlg1').firstChild;" & \
"var range = document.createRange();" & \
"range.setStart(node, 0); range.setEnd(node, 3);" & \
"var selection = window.getSelection();" & \
"selection.removeAllRanges(); selection.addRange(range);" into js
  do js in widget "Browser"
end mouseUp

Note that setStart and setEnd are zero-based in counting chars.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser selections

2019-04-08 Thread hh via use-livecode
> Is there a way to get/set selected text in a browser widget?
> I couldn't find anything.

Why is the LC Builder forum not among your search places?

With LC Script: No.
With JavaScript. Yes.
http://forums.livecode.com/viewtopic.php?p=174936#p174936

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode