Re: Typesetting Fields

2018-04-24 Thread Paul Hibbert via use-livecode

> Where does livecode.wikia.comcome from?

I believe it was started by MaxV2, I think he hangs around in the forums mainly 
under the handle MaxV. He’s done a great job with the Wikia.

Paul





___
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: Getting Orientation Enforced on Phone

2018-04-24 Thread Sannyasin Brahmanathaswami via use-livecode
Eureka! Montes been busy, but keeping quiet

https://quality.livecode.com/show_bug.cgi?id=19465

BR: just completed test.

I tried "go letting"  to stack

   mobileSetAllowedOrientations "portrait,portrait upside down,landscape 
left,landscape right"
just before closing in and opening the next stack.  

No go an Android.



___
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: Typesetting Fields

2018-04-24 Thread Sannyasin Brahmanathaswami via use-livecode
http://livecode.wikia.com/wiki/StyledText 


Paul



Paul, that helps!

It does matter the name of array… (could be anything) a long  it conforms to 
styled text that 

set the styleText of fld "playlist to tPlayListTextArray.

that property can actually use.

wow! I wonder how far we can take this, in terms of "runs" containing thing 
like the images source of a character.  I guess I can find out quickly.

BR

Where does livecode.wikia.comcome from?



___
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: macOS "Recovered files"

2018-04-24 Thread Matthias Rebbe via use-livecode
I´ve filed a bug now Bug 21233 


Matthias

> Am 24.04.2018 um 21:23 schrieb Richard Gaskin via use-livecode 
> >:
> 
> Matthias Rebbe wrote:
> 
> > At https://support.apple.com/kb/PH25506?viewlocale=en_US=en_US 
> >  >
> > there is a description about recovered files/folders in trash.
> >  According to Apples description this happens when an app quits
> > unexpectedly and is not able to delete the temp files before it
> > quits. After a restart of the Mac these files are appearing in trash.
> ...
> > So it seems, LC 9 GM does not delete the temp files correctly before
> > quitting or maybe is quitting to fast or whatever and Mac OS X
> > recovers those files after a restart.
> >
> > That seems to be a bug, doesn´t it?
> 
> I would say so.  "Recovery" implies an error condition, and the spec 
> explicitly suggests an app's responsibility to clean up its tmp files.
> 
> If you file a bug report please note the URL or bug ID here so interested 
> readers can follow along.  Thanks.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com 
> http://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

Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

___
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: Typesetting Fields

2018-04-24 Thread Paul Hibbert via use-livecode
Another useful reference that may help…

http://livecode.wikia.com/wiki/StyledText 


Paul

> On Apr 24, 2018, at 12:29 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> 
> What I would do is set some text in a field to some different styles, then 
> get the styledText of the field and examine the array. 
> 
>Bob S
> 
> That is also my plan. 
> 
> ___
> 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: Typesetting Fields

2018-04-24 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:
> richard wrote
>
> You may find the styledText array helpful.
>
> =
>
> Wow that looks missing, though the dictionary could help with
> examples…I gonna need an expresso and to some time  to figure out
> how that works!
>
> set the styledText of field to styledArray
>
> Maybe if someone had some example of what to put into
>
> styledArray
>
> I got lost when started talking about "the other" arrays:
>
> Are these arrays inside the styledArray text?

They are.  A great explanation of those (and all the new stuff added in 
The Great Field Enhancement Work of Version 5.5) are here, starting on 
p12 (discussion specific to the styledText property is on p15):


https://downloads.livecode.com/livecode/5_5_1/LiveCodeNotes-5_5_1.pdf

A couple years ago I had a discussion with Peter Brett about how that 
info critical to making good use of the new field properties could be 
moved into the User Guide.  I had the impression that was underway at 
the time, but I just checked the User Guide for v9 and the string 
"styledText" doesn't appear to be there.


Too bad; hopefully added soon.  The styledText array gives us all the 
full-fidelity info we love with htmlText, but in the super-efficient 
form of an associative array.


--
 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: Typesetting Fields

2018-04-24 Thread Sannyasin Brahmanathaswami via use-livecode

What I would do is set some text in a field to some different styles, then get 
the styledText of the field and examine the array. 

Bob S

That is also my plan. 

___
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: macOS "Recovered files"

2018-04-24 Thread Richard Gaskin via use-livecode

Matthias Rebbe wrote:

> At https://support.apple.com/kb/PH25506?viewlocale=en_US=en_US >
> there is a description about recovered files/folders in trash.
>  According to Apples description this happens when an app quits
> unexpectedly and is not able to delete the temp files before it
> quits. After a restart of the Mac these files are appearing in trash.
...
> So it seems, LC 9 GM does not delete the temp files correctly before
> quitting or maybe is quitting to fast or whatever and Mac OS X
> recovers those files after a restart.
>
> That seems to be a bug, doesn´t it?

I would say so.  "Recovery" implies an error condition, and the spec 
explicitly suggests an app's responsibility to clean up its tmp files.


If you file a bug report please note the URL or bug ID here so 
interested readers can follow along.  Thanks.


--
 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: macOS "Recovered files"

2018-04-24 Thread Bob Sneidar via use-livecode

> On Apr 24, 2018, at 10:21 , Mark Wieder via use-livecode 
>  wrote:
> 
> On linux they're in /tmp, which seems a reasonable place, although I'm pretty 
> sure I never signed in as "dummy".
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com

That might be the new Artificial Intelligence built into the latest operating 
systems. To them we meat based life forms are complete idiots, and our (soon to 
be) AI overlords are not shy about expressing themselves. So far, all civility 
filters just disable themselves. 

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: macOS "Recovered files"

2018-04-24 Thread Mark Wieder via use-livecode

On 04/24/2018 09:58 AM, Matthias Rebbe via use-livecode wrote:

Hi Klaus,

i´ve checked here and see the same folders Recovered files(#1……10) with the 
same content you are describing.
In my case there was also a .csv file in that folders. The .csv was  created 
with LC and was stored in temp folder originally.

I´ve then checked the temp folder and see also those files, but not the 
“Recovered files..” folders.


On linux they're in /tmp, which seems a reasonable place, although I'm 
pretty sure I never signed in as "dummy".


--
 Mark Wieder
 ahsoftw...@gmail.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: macOS "Recovered files"

2018-04-24 Thread Matthias Rebbe via use-livecode
Hi Klaus,

i´ve checked here and see the same folders Recovered files(#1……10) with the 
same content you are describing. 
In my case there was also a .csv file in that folders. The .csv was  created 
with LC and was stored in temp folder originally.

I´ve then checked the temp folder and see also those files, but not the 
“Recovered files..” folders. 

At https://support.apple.com/kb/PH25506?viewlocale=en_US=en_US 


there is a description about recovered files/folders in trash.  According to 
Apples description this happens when an app quits unexpectedly and is not able 
to delete the temp files before it quits. After a restart of the Mac these 
files are appearing in trash.

I´ve tried here now several times and reproduce it with the following steps

1. Start LC 
2. Quit LC
3. Restart Mac
4. A new “Recovered Files #…” folder is in trash.

So it seems, LC 9 GM does not delete the temp files correctly before quitting 
or maybe is quitting to fast or whatever and Mac OS X recovers those files 
after a restart.

That seems to be a bug, doesn´t it?

Matthias









> Am 24.04.2018 um 17:47 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> since upgrading to macOS 10.13.4 and/or Livecode 9 Stable (not sure really)
> I ALWAYS find some (LC) "Recovered files" after a restart of my Mac in my 
> trash.
> 
> There are (every time):
> 1. livecode-emscripten-builds -> Empty folder
> 
> 2. com.livecode.dummy.lci
> 3. manifest.xml
> 4. module.lcm
> 
> 5. tmp.1029.iLrbYMLs -> a temp file with content:
> module com.livecode.dummy
> end module
> 
> Is this anything I need to worry about?
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Typesetting Fields

2018-04-24 Thread Bob Sneidar via use-livecode
What I would do is set some text in a field to some different styles, then get 
the styledText of the field and examine the array. 

Bob S


> On Apr 24, 2018, at 07:33 , Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Wow that looks missing, though the dictionary could help with examples…I 
> gonna need an expresso and to some time  to figure out how that works!
> 
> set the styledText of field to styledArray
> 
> Maybe if someone had some example of what to put into 
> 
> styledArray
> 
> I got lost when started talking about "the other" arrays:
> 
> Are these arrays inside the styledArray 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

macOS "Recovered files"

2018-04-24 Thread Klaus major-k via use-livecode
Hi friends,

since upgrading to macOS 10.13.4 and/or Livecode 9 Stable (not sure really)
I ALWAYS find some (LC) "Recovered files" after a restart of my Mac in my trash.

There are (every time):
1. livecode-emscripten-builds -> Empty folder

2. com.livecode.dummy.lci
3. manifest.xml
4. module.lcm

5. tmp.1029.iLrbYMLs -> a temp file with content:
module com.livecode.dummy
end module

Is this anything I need to worry about?


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-24 Thread Randy Hengst via use-livecode
That makes sense. Thanks for t hat clarification, Craig.

randy


> On Apr 24, 2018, at 7:51 AM, dunbarx via use-livecode 
>  wrote:
> 
> I wrote:
> 
> "Randy. 
> 
> There must be something different in our setups. All I did was write a 
> rawkeyUp handler to return the value of my mouse's right-click. Either you 
> get a different value with that action, or something in your machine is 
> intercepting that "message" before LC does. 
> 
> This was a while ago, so I had forgotten. (No "oops" emoticon in the
> use-list) I have a configurable mouse, and set the right-click to simulate
> "F4". Jacque uses, I think, something like "Cmd-Tab", which is similar to
> how we used to toggle tools in HC. I did something like that for a while,
> until I changed to using my mouse.
> 
> 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

___
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


Android assistance / information?

2018-04-24 Thread Douglas Ruisaard via use-livecode

Anyone is this community as versed in Android as Monte Goulding is in iOS?  One 
of the beauties of LC is its cross-platform ability.  The app I've written in 
iOS ports just fine to Android .. at least the user-interactive and data 
processing parts do.  .. without changing one line of code (and it's a complex 
app) ... how slick is that??? Obviously, there is a lack of an equivalent 
Android BLE function for communicating to my Arduino which I have working 
splendidly in iOS.  So... I'm looking for information / assistance on how to 
implement a "hardwired" connection from an Arduino to an Android device  
(currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a 
newer model, newer OS, that's do-able.

I'm hoping (?against hope?) that all I need is the "device name" for the USB 
port on the Android and the rest I can handle using the "open device" serial 
handles in LC.  I understand that one reason that LC may have and still is 
avoiding the Android BLE topic is due to the varieties and variations within 
the numerous version of the Android OS's.  For me, I just need to be able to 
demonstrate a mobile device (iOS or Android) being able to communicate with an 
Arduino app via a USB hardwire connection.  I REALLY don't care which OS it is 
and if I have to use iOS for BLE and Android for USB... that's just fine!

Any help would be greatly appreciated!!

Cheers
Doug


___
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: Typesetting Fields

2018-04-24 Thread Sannyasin Brahmanathaswami via use-livecode
I wonder if the dictionary need helps. Are there paragraph marks missing this 
example?

=

For example, take the following content consisting of two paragraphs:

Centered Hello World

Left-aligned Hello unicodeString

This would transpire as the following array:
1 =
style = { textAlign = center }
runs =
1 = { text = Centered  }
2 =
style = { textStyle = bold }
text = Hello
3 = { text =  World }
2 =
runs =
1 = { text = Left-aligned  }
2 =
style = { textColor = 255,0,0 }
text = Hello
3 = { unicodeText = unicodeString }

[ For brevity, single element arrays are represented using { ... }
notation ]

___
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: Typesetting Fields

2018-04-24 Thread Sannyasin Brahmanathaswami via use-livecode
richard wrote

You may find the styledText array helpful.

=

Wow that looks missing, though the dictionary could help with examples…I gonna 
need an expresso and to some time  to figure out how that works!

set the styledText of field to styledArray

Maybe if someone had some example of what to put into 

styledArray

I got lost when started talking about "the other" arrays:

Are these arrays inside the styledArray text?

===

1) It is a fully faithful representation (set the styledText of field
to the styledText of field results in no change to the field). 2) It
is array-based.

The styledText property returns a numerically-indexed array of
paragraphs, each index representing each paragraph in the field in
order:tStyledTextArray[1] = 
...
tStyledTextArray[] =  

Each paragraph array has up to two keys:

tParagraphArray["style"] =  tParagraphArray["runs"] = 

___
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: Android assistance / information?

2018-04-24 Thread Erik Beugelaar via use-livecode
Because LiveCode 9 now supports Java FFI, maybe you can find the source code in 
Java how to do this and then implement it?
Just an idea.

Goodluck,
Erik 

On 19/04/18 18:00, "use-livecode on behalf of Douglas Ruisaard via 
use-livecode"  wrote:

Anyone is this community as versed in Android as Monte Goulding is in iOS?  
One of the beauties of LC is its cross-platform ability.  The app I've written 
in iOS ports just fine to Android .. at least the user-interactive and data 
processing parts do.  .. without changing one line of code (and it's a complex 
app) ... how slick is that??? Obviously, there is a lack of an equivalent 
Android BLE function for communicating to my Arduino which I have working 
splendidly in iOS.  So... I'm looking for information / assistance on how to 
implement a "hardwired" connection from an Arduino to an Android device  
(currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a 
newer model, newer OS, that's do-able.

 

I'm hoping (?against hope?) that all I need is the "device name" for the 
USB port on the Android and the rest I can handle using the "open device" 
serial handles in LC.  I understand that one reason that LC may have and still 
is avoiding the Android BLE topic is due to the varieties and variations within 
the numerous version of the Android OS's.  For me, I just need to be able to 
demonstrate a mobile device (iOS or Android) being able to communicate with an 
Arduino app via a USB hardwire connection.  I REALLY don't care which OS it is 
and if I have to use iOS for BLE and Android for USB... that's just fine!

 

Any help would be greatly appreciated!!

 

Cheers

Doug

___
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: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-24 Thread dunbarx via use-livecode
I wrote:

"Randy. 

There must be something different in our setups. All I did was write a 
rawkeyUp handler to return the value of my mouse's right-click. Either you 
get a different value with that action, or something in your machine is 
intercepting that "message" before LC does. 

This was a while ago, so I had forgotten. (No "oops" emoticon in the
use-list) I have a configurable mouse, and set the right-click to simulate
"F4". Jacque uses, I think, something like "Cmd-Tab", which is similar to
how we used to toggle tools in HC. I did something like that for a while,
until I changed to using my mouse.

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: Typesetting Fields

2018-04-24 Thread ambassador--- via use-livecode
You may find the styledText array helpful.
Richard GaskinFourth World Systems
___
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