Re: Stripping styling from the clipboard...

2018-06-23 Thread J. Landman Gay via use-livecode
It happens when a colorized handler is copied directly from the script 
editor and pasted into a list response. The list only understands plain 
text, and styled text confuses it. I'm not sure if it happens on all 
platforms but we've seen it before in other posts.


Brian's plaintext handler would come in handy here.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 23, 2018 9:25:34 PM Tom Glod via use-livecode 
 wrote:



sorry Paul...my bad.

Richmond. why does your code paste that way





___
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: Stripping styling from the clipboard...

2018-06-23 Thread Tom Glod via use-livecode
sorry Paul...my bad.

Richmond. why does your code paste that way?

On Sat, Jun 23, 2018 at 7:59 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The code below with no spaces between the works is Richmonds
>
> On 6/23/2018 5:58 PM, Tom Glod via use-livecode wrote:
> > Paul...may I ask you why your code pasting is the way it is ?...is there
> > some kind of practical reason for it being that way?...sure is harder to
> > read that way.
> >
> > On Sat, Jun 23, 2018 at 5:55 PM, Paul Dupuis via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Okay, I missed that in the entry. That explains why the pasteKey message
> >> wasn't working.
> >>
> >> I am all set now. Thank you.
> >>
> >>
> >> On 6/23/2018 5:15 PM, Tore Nilsen via use-livecode wrote:
> >>> >From the dictionary:
> >>>
> >>> The LiveCode development environment traps the pasteKey message <>,
> >> unless "Suspend LiveCode UI" is turned on in the Development menu. This
> >> means that the pasteKeymessage <> is not received by a stack <> if it's
> >> running in the development environment <>.
> >>> So if you are trying to do this in the IDE, then that may be the reason
> >> it will not work.
> >>> Best regards
> >>> Tore Nilsen
> >>>
>  23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode <
> >> use-livecode@lists.runrev.com>:
>  Hey, Wow, it's the Richmond school of shovels and primitive stuff at
> >> its worst.
>  If I have a field that conatins some styled text (let's call it
> "ff1"),
> >> and I want to shift it
>  with its styling removed into another field (let's call it "ff2") then
> >> this does the trick in a button:
>  onmouseUp
>  gettheplainTextoffld "ff1"
>  putit intofld "ff2"
>  endmouseUp
> 
>  and that, oddly enough, might not be a bad place to get started.
> 
>  ALTHOUGH (ouch) this does NOT work:
> 
>  onpasteKey
>    gettheplainTextoftheclipboardData
>    putit intofld "ff2"
>  endpasteKey
> 
>  and this does not work:
> 
>  onpasteKey
>   puttheclipboardDataintofld "ff1"
>   send"mouseUp" tobtn "Button"
>  endpasteKey
> 
>  which would seem to suggest pasteKey is NOT trapping the paste signal
> >> at all.
>  Richmond.
> 
> 
>  On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
> > Using LC9, I want to add a "paste without formatting" (as seen in may
> > browser edit menus) command and I can't see to figure out how to do
> it.
> >
> > My most recent attempt of many still pastes formatted text (with
> > underlining, bolding, italics, fonts, colors, etc. in place)
> >
> > *on*pasteKey *-- remove formatting*
> > *if* theclipboardData["text"] isnotempty*then*
> > *set*thetextofthetemplateFieldtoclipboardData["text"]
> > *set*theclipboardDatatoempty
> > *set*theclipboardData["text"] totheplaintextofthetemplateField
> > *end* *if*
> > *paste*
> > *end*pasteKey
> >
> > Maybe I just haven't had enough Caffeine yet?
> >
> >
> > ___
> > 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
> >>> ___
> >>> 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
> >>
> > ___
> > 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
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

LC 9 Dictionary, Linux

2018-06-23 Thread Warren Samples via use-livecode

Hello,

I don't recall off the top of my head what the current remaining issue 
is with the dictionary under Linux. I know there have been a couple or 
three that have been reported by different people on different distros. 
The workaround to open the dictionary in a browser is working pretty 
well, but could use at least one enhancement if it can be managed. 
Currently if I have my default browser open on some desktop other than 
the one LiveCode is on, the dictionary opens in a new tab on the other 
desktop. Could the command used be finessed to force it to open a new 
window? This 'should' open naturally on the current desktop. Another 
possible solution would be a preference option to set a browser for the 
dictionary. That would allow one to use a browser other than the default 
browser and avoid this (minor) inconvenience.


Warren

___
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: Stripping styling from the clipboard...

2018-06-23 Thread Paul Dupuis via use-livecode
The code below with no spaces between the works is Richmonds

On 6/23/2018 5:58 PM, Tom Glod via use-livecode wrote:
> Paul...may I ask you why your code pasting is the way it is ?...is there
> some kind of practical reason for it being that way?...sure is harder to
> read that way.
>
> On Sat, Jun 23, 2018 at 5:55 PM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Okay, I missed that in the entry. That explains why the pasteKey message
>> wasn't working.
>>
>> I am all set now. Thank you.
>>
>>
>> On 6/23/2018 5:15 PM, Tore Nilsen via use-livecode wrote:
>>> >From the dictionary:
>>>
>>> The LiveCode development environment traps the pasteKey message <>,
>> unless "Suspend LiveCode UI" is turned on in the Development menu. This
>> means that the pasteKeymessage <> is not received by a stack <> if it's
>> running in the development environment <>.
>>> So if you are trying to do this in the IDE, then that may be the reason
>> it will not work.
>>> Best regards
>>> Tore Nilsen
>>>
 23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode <
>> use-livecode@lists.runrev.com>:
 Hey, Wow, it's the Richmond school of shovels and primitive stuff at
>> its worst.
 If I have a field that conatins some styled text (let's call it "ff1"),
>> and I want to shift it
 with its styling removed into another field (let's call it "ff2") then
>> this does the trick in a button:
 onmouseUp
 gettheplainTextoffld "ff1"
 putit intofld "ff2"
 endmouseUp

 and that, oddly enough, might not be a bad place to get started.

 ALTHOUGH (ouch) this does NOT work:

 onpasteKey
   gettheplainTextoftheclipboardData
   putit intofld "ff2"
 endpasteKey

 and this does not work:

 onpasteKey
  puttheclipboardDataintofld "ff1"
  send"mouseUp" tobtn "Button"
 endpasteKey

 which would seem to suggest pasteKey is NOT trapping the paste signal
>> at all.
 Richmond.


 On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
> Using LC9, I want to add a "paste without formatting" (as seen in may
> browser edit menus) command and I can't see to figure out how to do it.
>
> My most recent attempt of many still pastes formatted text (with
> underlining, bolding, italics, fonts, colors, etc. in place)
>
> *on*pasteKey *-- remove formatting*
> *if* theclipboardData["text"] isnotempty*then*
> *set*thetextofthetemplateFieldtoclipboardData["text"]
> *set*theclipboardDatatoempty
> *set*theclipboardData["text"] totheplaintextofthetemplateField
> *end* *if*
> *paste*
> *end*pasteKey
>
> Maybe I just haven't had enough Caffeine yet?
>
>
> ___
> 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
>>> ___
>>> 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
>>
> ___
> 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: Stripping styling from the clipboard...

2018-06-23 Thread James At The Hale via use-livecode
>From the dictionary...

> The LiveCode development environment traps the pasteKey message, unless 
> "Suspend LiveCode UI" is turned on in the Development menu. This means that 
> the pasteKey message is not received by a stack if it's running in the 
> development environment.


Could this be why pastekey does not seem to work?

James
___
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: Open source iOS and Android

2018-06-23 Thread Tom Glod via use-livecode
I contacted Colin to see if it was him who has allowed his book to be
downloaded for free. it was not.  He doesn't mind, but says the
publisher might.  here is a link.

https://www.packtpub.com/application-development/livecode-mobile-development-beginners-guide-second-edition



On Sat, Jun 23, 2018 at 4:13 PM, Tom Glod  wrote:

> Hi Linda  I hope this can help you on your journey of learning
> livecode mobile development.
>
> http://www.allitebooks.in/livecode-mobile-development-beginners-guide/
>
>
>
> On Sat, Jun 23, 2018 at 2:37 PM, Randy Hengst via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hi Linda,
>>
>> To best of my knowledge, you can’t use the Community version to build
>> apps for iOS. So, the source code isn’t automatically available from
>> developers… but, within the IDE of LiveCode, select the Sample Stacks… all
>> sorts of options there with code available for viewing.
>>
>> be well,
>> randy hengst
>>
>> > On Jun 22, 2018, at 8:50 PM, Linda Miller, DVM via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > It is my understanding that apps created with the Community version of
>> LiveCode are open source.  If so, how to you know what apps on the apps
>> stores (Apple and Google) are created with LiveCode and how do you request
>> a copy of the source code?  I have never published a LC app and am still in
>> the learning stages.  I would like to know how I can actually have a look
>> at other people's source code for learning purposes.
>> >
>> > Linda
>> >
>> > ___
>> > 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
>>
>
>
___
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: Stripping styling from the clipboard...

2018-06-23 Thread Tom Glod via use-livecode
Paul...may I ask you why your code pasting is the way it is ?...is there
some kind of practical reason for it being that way?...sure is harder to
read that way.

On Sat, Jun 23, 2018 at 5:55 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Okay, I missed that in the entry. That explains why the pasteKey message
> wasn't working.
>
> I am all set now. Thank you.
>
>
> On 6/23/2018 5:15 PM, Tore Nilsen via use-livecode wrote:
> > >From the dictionary:
> >
> > The LiveCode development environment traps the pasteKey message <>,
> unless "Suspend LiveCode UI" is turned on in the Development menu. This
> means that the pasteKeymessage <> is not received by a stack <> if it's
> running in the development environment <>.
> >
> > So if you are trying to do this in the IDE, then that may be the reason
> it will not work.
> >
> > Best regards
> > Tore Nilsen
> >
> >> 23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> Hey, Wow, it's the Richmond school of shovels and primitive stuff at
> its worst.
> >>
> >> If I have a field that conatins some styled text (let's call it "ff1"),
> and I want to shift it
> >> with its styling removed into another field (let's call it "ff2") then
> this does the trick in a button:
> >>
> >> onmouseUp
> >> gettheplainTextoffld "ff1"
> >> putit intofld "ff2"
> >> endmouseUp
> >>
> >> and that, oddly enough, might not be a bad place to get started.
> >>
> >> ALTHOUGH (ouch) this does NOT work:
> >>
> >> onpasteKey
> >>   gettheplainTextoftheclipboardData
> >>   putit intofld "ff2"
> >> endpasteKey
> >>
> >> and this does not work:
> >>
> >> onpasteKey
> >>  puttheclipboardDataintofld "ff1"
> >>  send"mouseUp" tobtn "Button"
> >> endpasteKey
> >>
> >> which would seem to suggest pasteKey is NOT trapping the paste signal
> at all.
> >>
> >> Richmond.
> >>
> >>
> >> On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
> >>> Using LC9, I want to add a "paste without formatting" (as seen in may
> >>> browser edit menus) command and I can't see to figure out how to do it.
> >>>
> >>> My most recent attempt of many still pastes formatted text (with
> >>> underlining, bolding, italics, fonts, colors, etc. in place)
> >>>
> >>> *on*pasteKey *-- remove formatting*
> >>> *if* theclipboardData["text"] isnotempty*then*
> >>> *set*thetextofthetemplateFieldtoclipboardData["text"]
> >>> *set*theclipboardDatatoempty
> >>> *set*theclipboardData["text"] totheplaintextofthetemplateField
> >>> *end* *if*
> >>> *paste*
> >>> *end*pasteKey
> >>>
> >>> Maybe I just haven't had enough Caffeine yet?
> >>>
> >>>
> >>> ___
> >>> 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
> > ___
> > 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
>
___
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: Stripping styling from the clipboard...

2018-06-23 Thread Paul Dupuis via use-livecode
Okay, I missed that in the entry. That explains why the pasteKey message
wasn't working.

I am all set now. Thank you.


On 6/23/2018 5:15 PM, Tore Nilsen via use-livecode wrote:
> >From the dictionary:
>
> The LiveCode development environment traps the pasteKey message <>, unless 
> "Suspend LiveCode UI" is turned on in the Development menu. This means that 
> the pasteKeymessage <> is not received by a stack <> if it's running in the 
> development environment <>.
>
> So if you are trying to do this in the IDE, then that may be the reason it 
> will not work.
>
> Best regards
> Tore Nilsen 
>
>> 23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode 
>> :
>>
>> Hey, Wow, it's the Richmond school of shovels and primitive stuff at its 
>> worst.
>>
>> If I have a field that conatins some styled text (let's call it "ff1"), and 
>> I want to shift it
>> with its styling removed into another field (let's call it "ff2") then this 
>> does the trick in a button:
>>
>> onmouseUp
>> gettheplainTextoffld "ff1"
>> putit intofld "ff2"
>> endmouseUp
>>
>> and that, oddly enough, might not be a bad place to get started.
>>
>> ALTHOUGH (ouch) this does NOT work:
>>
>> onpasteKey
>>   gettheplainTextoftheclipboardData
>>   putit intofld "ff2"
>> endpasteKey
>>
>> and this does not work:
>>
>> onpasteKey
>>  puttheclipboardDataintofld "ff1"
>>  send"mouseUp" tobtn "Button"
>> endpasteKey
>>
>> which would seem to suggest pasteKey is NOT trapping the paste signal at all.
>>
>> Richmond.
>>
>>
>> On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
>>> Using LC9, I want to add a "paste without formatting" (as seen in may
>>> browser edit menus) command and I can't see to figure out how to do it.
>>>
>>> My most recent attempt of many still pastes formatted text (with
>>> underlining, bolding, italics, fonts, colors, etc. in place)
>>>
>>> *on*pasteKey *-- remove formatting*
>>> *if* theclipboardData["text"] isnotempty*then*
>>> *set*thetextofthetemplateFieldtoclipboardData["text"]
>>> *set*theclipboardDatatoempty
>>> *set*theclipboardData["text"] totheplaintextofthetemplateField
>>> *end* *if*
>>> *paste*
>>> *end*pasteKey
>>>
>>> Maybe I just haven't had enough Caffeine yet?
>>>
>>>
>>> ___
>>> 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
> ___
> 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: Stripping styling from the clipboard...

2018-06-23 Thread Brian Milby via use-livecode
Nice catch Tore.

My original code was addressing a different couple of problems. The first was 
that when you attempted to populate the clipboard with plain text that LC would 
also put an HTML version on that would cause issues with paste in other apps. 
The second is designed to adjust the HTML that is put onto the clipboard to 
make it render better in other apps as rich text.

I didn’t initially realize that you were attempting to clean a clipboard 
originating outside of LC. You may want to put the keys of the raw clipboard 
and see if the system is placing something on there that you could use. Many 
apps will place several formats on the clipboard so that destination apps can 
choose the best version to use.

Thanks,
Brian
On Jun 23, 2018, 5:15 PM -0400, Tore Nilsen via use-livecode 
, wrote:
> From the dictionary:
>
> The LiveCode development environment traps the pasteKey message <>, unless 
> "Suspend LiveCode UI" is turned on in the Development menu. This means that 
> the pasteKeymessage <> is not received by a stack <> if it's running in the 
> development environment <>.
>
> So if you are trying to do this in the IDE, then that may be the reason it 
> will not work.
>
> Best regards
> Tore Nilsen
>
> > 23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode 
> > :
> >
> > Hey, Wow, it's the Richmond school of shovels and primitive stuff at its 
> > worst.
> >
> > If I have a field that conatins some styled text (let's call it "ff1"), and 
> > I want to shift it
> > with its styling removed into another field (let's call it "ff2") then this 
> > does the trick in a button:
> >
> > onmouseUp
> > gettheplainTextoffld "ff1"
> > putit intofld "ff2"
> > endmouseUp
> >
> > and that, oddly enough, might not be a bad place to get started.
> >
> > ALTHOUGH (ouch) this does NOT work:
> >
> > onpasteKey
> > gettheplainTextoftheclipboardData
> > putit intofld "ff2"
> > endpasteKey
> >
> > and this does not work:
> >
> > onpasteKey
> > puttheclipboardDataintofld "ff1"
> > send"mouseUp" tobtn "Button"
> > endpasteKey
> >
> > which would seem to suggest pasteKey is NOT trapping the paste signal at 
> > all.
> >
> > Richmond.
> >
> >
> > On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
> > > Using LC9, I want to add a "paste without formatting" (as seen in may
> > > browser edit menus) command and I can't see to figure out how to do it.
> > >
> > > My most recent attempt of many still pastes formatted text (with
> > > underlining, bolding, italics, fonts, colors, etc. in place)
> > >
> > > *on*pasteKey *-- remove formatting*
> > > *if* theclipboardData["text"] isnotempty*then*
> > > *set*thetextofthetemplateFieldtoclipboardData["text"]
> > > *set*theclipboardDatatoempty
> > > *set*theclipboardData["text"] totheplaintextofthetemplateField
> > > *end* *if*
> > > *paste*
> > > *end*pasteKey
> > >
> > > Maybe I just haven't had enough Caffeine yet?
> > >
> > >
> > > ___
> > > 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
>
> ___
> 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: Stripping styling from the clipboard...

2018-06-23 Thread Tore Nilsen via use-livecode
>From the dictionary:

The LiveCode development environment traps the pasteKey message <>, unless 
"Suspend LiveCode UI" is turned on in the Development menu. This means that the 
pasteKeymessage <> is not received by a stack <> if it's running in the 
development environment <>.

So if you are trying to do this in the IDE, then that may be the reason it will 
not work.

Best regards
Tore Nilsen 

> 23. jun. 2018 kl. 22:32 skrev Richmond Mathewson via use-livecode 
> :
> 
> Hey, Wow, it's the Richmond school of shovels and primitive stuff at its 
> worst.
> 
> If I have a field that conatins some styled text (let's call it "ff1"), and I 
> want to shift it
> with its styling removed into another field (let's call it "ff2") then this 
> does the trick in a button:
> 
> onmouseUp
> gettheplainTextoffld "ff1"
> putit intofld "ff2"
> endmouseUp
> 
> and that, oddly enough, might not be a bad place to get started.
> 
> ALTHOUGH (ouch) this does NOT work:
> 
> onpasteKey
>   gettheplainTextoftheclipboardData
>   putit intofld "ff2"
> endpasteKey
> 
> and this does not work:
> 
> onpasteKey
>  puttheclipboardDataintofld "ff1"
>  send"mouseUp" tobtn "Button"
> endpasteKey
> 
> which would seem to suggest pasteKey is NOT trapping the paste signal at all.
> 
> Richmond.
> 
> 
> On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:
>> Using LC9, I want to add a "paste without formatting" (as seen in may
>> browser edit menus) command and I can't see to figure out how to do it.
>> 
>> My most recent attempt of many still pastes formatted text (with
>> underlining, bolding, italics, fonts, colors, etc. in place)
>> 
>> *on*pasteKey *-- remove formatting*
>> *if* theclipboardData["text"] isnotempty*then*
>> *set*thetextofthetemplateFieldtoclipboardData["text"]
>> *set*theclipboardDatatoempty
>> *set*theclipboardData["text"] totheplaintextofthetemplateField
>> *end* *if*
>> *paste*
>> *end*pasteKey
>> 
>> Maybe I just haven't had enough Caffeine yet?
>> 
>> 
>> ___
>> 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

___
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: Stripping styling from the clipboard...

2018-06-23 Thread Richmond Mathewson via use-livecode

Strike that last remark.

BUT: that script expects one to press the CONTROL key on the Mac
rather than the COMMAND key one usually uses to PASTE,
so how that can be achieved on a Windows or a Linux machine I just don't 
know.


Richmond.

On 23/6/2018 11:39 pm, Richmond Mathewson wrote:

Oh: and just to make things even odder than usual, it only works when
the fild "ff1" does NOT have focus (i.e. the cursor is NOT in the field).

Richmond.

On 23/6/2018 11:38 pm, Richmond Mathewson wrote:

However, I, at least, am experiencing great joy just at present as this:

oncontrolKeyDown KEE
   ifKEE is "V" then
 puttheclipboardDataintofld "ff1"
   else
  passcontrolKeyDown
   endif
endcontrolKeyDown

popped UNSTYLED text into fld "ff1"
on MacOS 10.7.5 LiveCode 8.1.10

Your mileage may vary: but it's sure worth a try!

Richmond.


On 23/6/2018 11:07 pm, Paul Dupuis via use-livecode wrote:

Thank you for this.

However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.

In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
script

on pasteKey
   makeClipboardPlainText
   paste
end pasteKey

on makeClipboardPlainText
local tClip, tRawType
   
if the platform is "MacOS" then

   put "public.utf8-plain-text" into tRawType   -- OSX
else if the platform is "Linux" then
   put "text/plain;charset=utf-8" into tRawType -- Linux
else if the platform contains "Win" then
   put "CF_UNICODETEXT" into tRawType -- Windows
end if
   
lock the clipBoard

put the rawClipboardData[tRawType] into tClip
set the rawClipboardData to empty
set the rawClipboardData[tRawType] to tClip
unlock the clipBoard
end makeClipboardPlainText

And set a break point on the call to makeClipboardPlainText instruction.
I then switch to another applications with styled text, select the text
copy it to the clipboard, return for LC with the insertion point in the
field and press Control-V.

RESULT: the breakpoint is never triggered and styled text is pasted into
the field.

If I just have a pasteKey handler with a beep (or anything else) as the
sole instruction, the same result, the breakpoint is never triggered.
The pasteKey message appears broken under both Windows and OSX (tested
under 10.9.5) in LC9.0.0? Can anyone confirm this bug?


On 6/23/2018 1:23 PM, Brian Milby wrote:

_https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript_

Check out this handler. I can answer questions about it this evening
if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
, wrote:

Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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






___
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: Stripping styling from the clipboard...

2018-06-23 Thread Richmond Mathewson via use-livecode

Oh: and just to make things even odder than usual, it only works when
the fild "ff1" does NOT have focus (i.e. the cursor is NOT in the field).

Richmond.

On 23/6/2018 11:38 pm, Richmond Mathewson wrote:

However, I, at least, am experiencing great joy just at present as this:

oncontrolKeyDown KEE
   ifKEE is "V" then
 puttheclipboardDataintofld "ff1"
   else
  passcontrolKeyDown
   endif
endcontrolKeyDown

popped UNSTYLED text into fld "ff1"
on MacOS 10.7.5 LiveCode 8.1.10

Your mileage may vary: but it's sure worth a try!

Richmond.


On 23/6/2018 11:07 pm, Paul Dupuis via use-livecode wrote:

Thank you for this.

However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.

In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
script

on pasteKey
   makeClipboardPlainText
   paste
end pasteKey

on makeClipboardPlainText
local tClip, tRawType
   
if the platform is "MacOS" then

   put "public.utf8-plain-text" into tRawType   -- OSX
else if the platform is "Linux" then
   put "text/plain;charset=utf-8" into tRawType -- Linux
else if the platform contains "Win" then
   put "CF_UNICODETEXT" into tRawType -- Windows
end if
   
lock the clipBoard

put the rawClipboardData[tRawType] into tClip
set the rawClipboardData to empty
set the rawClipboardData[tRawType] to tClip
unlock the clipBoard
end makeClipboardPlainText

And set a break point on the call to makeClipboardPlainText instruction.
I then switch to another applications with styled text, select the text
copy it to the clipboard, return for LC with the insertion point in the
field and press Control-V.

RESULT: the breakpoint is never triggered and styled text is pasted into
the field.

If I just have a pasteKey handler with a beep (or anything else) as the
sole instruction, the same result, the breakpoint is never triggered.
The pasteKey message appears broken under both Windows and OSX (tested
under 10.9.5) in LC9.0.0? Can anyone confirm this bug?


On 6/23/2018 1:23 PM, Brian Milby wrote:

_https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript_

Check out this handler. I can answer questions about it this evening
if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
, wrote:

Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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




___
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: Stripping styling from the clipboard...

2018-06-23 Thread Richmond Mathewson via use-livecode

However, I, at least, am experiencing great joy just at present as this:

oncontrolKeyDown KEE
   ifKEE is "V" then
 puttheclipboardDataintofld "ff1"
   else
  passcontrolKeyDown
   endif
endcontrolKeyDown

popped UNSTYLED text into fld "ff1"
on MacOS 10.7.5 LiveCode 8.1.10

Your mileage may vary: but it's sure worth a try!

Richmond.


On 23/6/2018 11:07 pm, Paul Dupuis via use-livecode wrote:

Thank you for this.

However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.

In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
script

on pasteKey
   makeClipboardPlainText
   paste
end pasteKey

on makeClipboardPlainText
local tClip, tRawType
   
if the platform is "MacOS" then

   put "public.utf8-plain-text" into tRawType   -- OSX
else if the platform is "Linux" then
   put "text/plain;charset=utf-8" into tRawType -- Linux
else if the platform contains "Win" then
   put "CF_UNICODETEXT" into tRawType -- Windows
end if
   
lock the clipBoard

put the rawClipboardData[tRawType] into tClip
set the rawClipboardData to empty
set the rawClipboardData[tRawType] to tClip
unlock the clipBoard
end makeClipboardPlainText

And set a break point on the call to makeClipboardPlainText instruction.
I then switch to another applications with styled text, select the text
copy it to the clipboard, return for LC with the insertion point in the
field and press Control-V.

RESULT: the breakpoint is never triggered and styled text is pasted into
the field.

If I just have a pasteKey handler with a beep (or anything else) as the
sole instruction, the same result, the breakpoint is never triggered.
The pasteKey message appears broken under both Windows and OSX (tested
under 10.9.5) in LC9.0.0? Can anyone confirm this bug?


On 6/23/2018 1:23 PM, Brian Milby wrote:

_https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript_

Check out this handler. I can answer questions about it this evening
if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
, wrote:

Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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


___
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: Stripping styling from the clipboard...

2018-06-23 Thread Richmond Mathewson via use-livecode

Indeed: over "here" on MacOS 10.7.5 Livecode 8.1.10 the pasteKey command
seems to be non-functional.

Richmond.

On 23/6/2018 11:07 pm, Paul Dupuis via use-livecode wrote:

Thank you for this.

However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.

In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
script

on pasteKey
   makeClipboardPlainText
   paste
end pasteKey

on makeClipboardPlainText
local tClip, tRawType
   
if the platform is "MacOS" then

   put "public.utf8-plain-text" into tRawType   -- OSX
else if the platform is "Linux" then
   put "text/plain;charset=utf-8" into tRawType -- Linux
else if the platform contains "Win" then
   put "CF_UNICODETEXT" into tRawType -- Windows
end if
   
lock the clipBoard

put the rawClipboardData[tRawType] into tClip
set the rawClipboardData to empty
set the rawClipboardData[tRawType] to tClip
unlock the clipBoard
end makeClipboardPlainText

And set a break point on the call to makeClipboardPlainText instruction.
I then switch to another applications with styled text, select the text
copy it to the clipboard, return for LC with the insertion point in the
field and press Control-V.

RESULT: the breakpoint is never triggered and styled text is pasted into
the field.

If I just have a pasteKey handler with a beep (or anything else) as the
sole instruction, the same result, the breakpoint is never triggered.
The pasteKey message appears broken under both Windows and OSX (tested
under 10.9.5) in LC9.0.0? Can anyone confirm this bug?


On 6/23/2018 1:23 PM, Brian Milby wrote:

_https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript_

Check out this handler. I can answer questions about it this evening
if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
, wrote:

Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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


___
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: Stripping styling from the clipboard...

2018-06-23 Thread Richmond Mathewson via use-livecode
Hey, Wow, it's the Richmond school of shovels and primitive stuff at its 
worst.


If I have a field that conatins some styled text (let's call it "ff1"), 
and I want to shift it
with its styling removed into another field (let's call it "ff2") then 
this does the trick in a button:


onmouseUp
gettheplainTextoffld "ff1"
putit intofld "ff2"
endmouseUp

and that, oddly enough, might not be a bad place to get started.

ALTHOUGH (ouch) this does NOT work:

onpasteKey
   gettheplainTextoftheclipboardData
   putit intofld "ff2"
endpasteKey

and this does not work:

onpasteKey
  puttheclipboardDataintofld "ff1"
  send"mouseUp" tobtn "Button"
endpasteKey

which would seem to suggest pasteKey is NOT trapping the paste signal at 
all.


Richmond.


On 23/6/2018 5:15 pm, Paul Dupuis via use-livecode wrote:

Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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: Open source iOS and Android

2018-06-23 Thread Tom Glod via use-livecode
Hi Linda  I hope this can help you on your journey of learning livecode
mobile development.

http://www.allitebooks.in/livecode-mobile-development-beginners-guide/



On Sat, Jun 23, 2018 at 2:37 PM, Randy Hengst via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Linda,
>
> To best of my knowledge, you can’t use the Community version to build apps
> for iOS. So, the source code isn’t automatically available from developers…
> but, within the IDE of LiveCode, select the Sample Stacks… all sorts of
> options there with code available for viewing.
>
> be well,
> randy hengst
>
> > On Jun 22, 2018, at 8:50 PM, Linda Miller, DVM via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > It is my understanding that apps created with the Community version of
> LiveCode are open source.  If so, how to you know what apps on the apps
> stores (Apple and Google) are created with LiveCode and how do you request
> a copy of the source code?  I have never published a LC app and am still in
> the learning stages.  I would like to know how I can actually have a look
> at other people's source code for learning purposes.
> >
> > Linda
> >
> > ___
> > 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
>
___
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: Stripping styling from the clipboard...

2018-06-23 Thread Paul Dupuis via use-livecode
Thank you for this.

However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.

In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
script

on pasteKey
  makeClipboardPlainText
  paste
end pasteKey

on makeClipboardPlainText
   local tClip, tRawType
  
   if the platform is "MacOS" then
  put "public.utf8-plain-text" into tRawType   -- OSX
   else if the platform is "Linux" then
  put "text/plain;charset=utf-8" into tRawType -- Linux
   else if the platform contains "Win" then
  put "CF_UNICODETEXT" into tRawType -- Windows
   end if
  
   lock the clipBoard
   put the rawClipboardData[tRawType] into tClip
   set the rawClipboardData to empty
   set the rawClipboardData[tRawType] to tClip
   unlock the clipBoard
end makeClipboardPlainText

And set a break point on the call to makeClipboardPlainText instruction.
I then switch to another applications with styled text, select the text
copy it to the clipboard, return for LC with the insertion point in the
field and press Control-V.

RESULT: the breakpoint is never triggered and styled text is pasted into
the field.

If I just have a pasteKey handler with a beep (or anything else) as the
sole instruction, the same result, the breakpoint is never triggered.
The pasteKey message appears broken under both Windows and OSX (tested
under 10.9.5) in LC9.0.0? Can anyone confirm this bug?


On 6/23/2018 1:23 PM, Brian Milby wrote:
> _https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript_
>
> Check out this handler. I can answer questions about it this evening
> if needed.
> On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
> , wrote:
>> Using LC9, I want to add a "paste without formatting" (as seen in may
>> browser edit menus) command and I can't see to figure out how to do it.
>>
>> My most recent attempt of many still pastes formatted text (with
>> underlining, bolding, italics, fonts, colors, etc. in place)
>>
>> *on*pasteKey *-- remove formatting*
>> *if* theclipboardData["text"] isnotempty*then*
>> *set*thetextofthetemplateFieldtoclipboardData["text"]
>> *set*theclipboardDatatoempty
>> *set*theclipboardData["text"] totheplaintextofthetemplateField
>> *end* *if*
>> *paste*
>> *end*pasteKey
>>
>> Maybe I just haven't had enough Caffeine yet?
>>
>>
>> ___
>> 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: Open source iOS and Android

2018-06-23 Thread Randy Hengst via use-livecode
Hi Linda,

To best of my knowledge, you can’t use the Community version to build apps for 
iOS. So, the source code isn’t automatically available from developers… but, 
within the IDE of LiveCode, select the Sample Stacks… all sorts of options 
there with code available for viewing.

be well,
randy hengst

> On Jun 22, 2018, at 8:50 PM, Linda Miller, DVM via use-livecode 
>  wrote:
> 
> It is my understanding that apps created with the Community version of 
> LiveCode are open source.  If so, how to you know what apps on the apps 
> stores (Apple and Google) are created with LiveCode and how do you request a 
> copy of the source code?  I have never published a LC app and am still in the 
> learning stages.  I would like to know how I can actually have a look at 
> other people's source code for learning purposes.
> 
> Linda
> 
> ___
> 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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread Colin Holgate via use-livecode
I’m working on an update to an Adobe AIR app, and one thing for me to have to 
figure out is that on iPhone 7 some graphics are being cut off. The screens are 
fine on other phones that are the same screen size. Which suggests there may be 
something about iPhone 7 that is odd, that is nothing to do with 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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread Sannyasin Brahmanathaswami via use-livecode
Now that we know "Zoomed Mode" has an effect...

The card rect "source of authority" in all case uses the screenRect 

1) Oddly, with Zoomed Mode set, it gave the right reading 0,0,414,736

And it set up in portraitUI correctly!

2) Caveat though: passing that rect to these handlers  
(in a function that results sPortraitRect and sLandscapeRect)

Results on "mis-drawings" the widget "body" (a browser) on landscape.

mobileSetFullScreenRectForOrientations "portrait,portrait upside 
down",sPortraitRect
mobileSetFullScreenRectForOrientations "landscape left,landscape 
right",sLandscapeRect

---
I believe I have "exhausted" all that I can do with this. I'll turn over to 
Scotland, there are too many "gotchas" which we hope we have exposed for them.

I back to building new content.

Brahmanathaswami
 

 J. Landman Gay 

Do you get the same results if you get the rect of the card?

___
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 Widget Layer on mobile

2018-06-23 Thread Dan Friedman via use-livecode
Brian,

I think that’s true for Native Controls, but I’m seeing different results for 
the bowser widget.  I find that if I put the bowser widget in a group, it draws 
within the group’s bounds like other controls.  What I’m experiencing is that 
on Mobile (at least iOS), it’s acting like a standard native control, not like 
it does on desktop.

-Dan

> I may not be stating it in the right terms, but native controls are above 
> everything else in their own layer.


>> I am working on a mobile app where I have a bowser widget in a group that is 
>> scrollable. It scrolls just fine (frankly, smoother that I thought it 
>> would!). However, there is a problem when the widget gets scrolled past the 
>> bounds of the group’s rect. On my mac, it’s working correctly, but on a real 
>> device (and the simulator), the bowser widget is being shown even outside 
>> the rect of the group – like it’s not in the group.
>>
>> Here’s a screen shot of what I’m talking about: 
>> http://www.clearvisiontech.com/temp/sampleImage.jpg
>>
>> Any thoughts or advise are appreciated!
>>
>> -Dan
___
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: How to get the dimensions of an image with LC server ?

2018-06-23 Thread jbv via use-livecode
Hi Alex,
Indeed it works.
Thank you very much.

On Sat, June 23, 2018 7:08 pm, Alex Tweedly via use-livecode wrote:
> Short answer - just the same as with LC :-)
>
>
> It wasn't there in the initial versions of LC, but for quite a ong time
> now the standard image functions have worked. Here's a quick (tested - on
> on-rev/sage) demo with an image I happened to have:
>
> 
>
> import paint from file "images/ardenstur.jpg" put the name of the last
> image into t set the name of t to "Im1"
>
> put the name of img "Im1"  put the width of img "Im1" & cr
>
> and it works as you'd expect.
>
> Alex.
>
>
>
> On 23/06/2018 17:30, jbv via use-livecode wrote:
>
>> Hi list,
>> IS there a way to get the dimensions (width & height) of an img
>> (jpeg or png) with livecode server ? The image is located somewhere
>> on the same server.
>>
>> Thanks in advance,
>> jbv
>>
>>
>> ___
>> 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
>
>



___
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: Stripping styling from the clipboard...

2018-06-23 Thread Brian Milby via use-livecode
https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript

Check out this handler. I can answer questions about it this evening if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode 
, wrote:
> Using LC9, I want to add a "paste without formatting" (as seen in may
> browser edit menus) command and I can't see to figure out how to do it.
>
> My most recent attempt of many still pastes formatted text (with
> underlining, bolding, italics, fonts, colors, etc. in place)
>
> *on*pasteKey *-- remove formatting*
> *if* theclipboardData["text"] isnotempty*then*
> *set*thetextofthetemplateFieldtoclipboardData["text"]
> *set*theclipboardDatatoempty
> *set*theclipboardData["text"] totheplaintextofthetemplateField
> *end* *if*
> *paste*
> *end*pasteKey
>
> Maybe I just haven't had enough Caffeine yet?
>
>
> ___
> 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: How to get the dimensions of an image with LC server ?

2018-06-23 Thread Alex Tweedly via use-livecode

Short answer - just the same as with LC :-)

It wasn't there in the initial versions of LC, but for quite a ong time 
now the standard image functions have worked. Here's a quick (tested - 
on on-rev/sage) demo with an image I happened to have:



Hi list,
IS there a way to get the dimensions (width & height) of an img
(jpeg or png) with livecode server ? The image is located somewhere
on the same server.

Thanks in advance,
jbv


___
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


How to get the dimensions of an image with LC server ?

2018-06-23 Thread jbv via use-livecode
Hi list,
IS there a way to get the dimensions (width & height) of an img
(jpeg or png) with livecode server ? The image is located somewhere
on the same server.

Thanks in advance,
jbv


___
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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread Sannyasin Brahmanathaswami via use-livecode
I enter a new handler into stack script

on resizestack pNewWidth, pNewHeight, pOldWidth, pOldHeight
put pNewWidth  &&  pNewHeight  && pOldWidth &&  pOldHeight into it
answer it with "OK"
 end resizestack

1) on switch on portrait to landscape (turn sideways) I get a resizeStack 
answer.
2) on switch on landscape back to portrait (turn phone upright)
   -- I get the same information as before (wrong...) tNewWidth is 736 when is 
should now to 414.
  -- just adding the resize hander break the screen redraw! 

 Working version:

Go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r3.livecode;

  Not working:

go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r4.livecode;

so, this goes back in @Jacque comments a few days ago...and it is not only on 
Android, 

" This is what I have:

on resizeStack x,y
   ANSWER X & Y
   setupUI x,y
end resizeStack

The answer dialog appeared once on my first test (with no x,y values)
and all test builds after that never showed an answer dialog at all. The
setupUI handler also has an answer dialog for testing and I haven't seen
it even once.
"
 It not only does show the correct rect, it breaks (on iOS) the screen 
redraw


BR wrote

I wonder it you were to use resize handler, could you do with even less 
code? OR would the resize handler report the actual Zoomed In rect?   Have to 
test

___
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

Stripping styling from the clipboard...

2018-06-23 Thread Paul Dupuis via use-livecode
Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.

My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)

*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey

Maybe I just haven't had enough Caffeine yet?


___
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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread Sannyasin Brahmanathaswami via use-livecode
OK there are lot issues at the QA center relating to landscape

I added the test stack to

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

so that you can test on the latest build (await release, 9.1)

I don't want to have 9.1 come out only to find it does not work.

BR

Hi Brahmanathaswami,

I think I have found the culprit.

___
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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread Sannyasin Brahmanathaswami via use-livecode
Geesh! (He bangs his head on the desk...ha!)  that fixed it!

I don't when I turn on Zoom mode... possibly last year! And it has been 
carrying that setting forward through all updates. It actually does a "reset" 
on the phone to change to "standard mode"

I suppose it good that you found this, finally. 

But does it not lead to an "enhancement" request?

Something like:

=
On iOS, if the use has the mode set as  "Zoomed Mode" then return the 
screenRect at the "zoom mode" size.
=

??

Otherwise we cannot build a "responsive" interface.  

But, my goal is met. I will turn the stack in as a test  for Android to try to 
get in working the say way before you send out 9.1

Somehow I scripted this, first time ever in less than 100 lines without using a 
single resize handler or messing with the GM?  Thanks to 

mobileSetFullScreenRectForOrientations "portrait,portrait upside 
down",sPortraitRect
mobileSetFullScreenRectForOrientations "landscape left,landscape 
right",sLandscapeRect

and, if in work on Android, I deprecate nearly 1400 lines for code that is 
"impenetrable" for the human mind (created by someone who DID get it to work on 
Android, only God knows how...) 

I wonder it you were to use resize handler, could you do with even less code? 
OR would the resize handler report the actual Zoomed In rect?   Have to test 

Current iteration is here "

Go url stack "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r3.livecode;

BR


On 6/22/18, 11:44 PM, "use-livecode on behalf of panagiotis merakos via 
use-livecode"  wrote:

Hi Brahmanathaswami,

I think I have found the culprit. I don’t have a Plus device to check, but
the differences you see between the iPhone 7 Plus device and simulator is
probably because you have enabled the "Zoomed Mode" in the device.

If you have "Zoomed Mode" enabled in the iPhone 6+/7+/8+ device, it reports
the screenrect of iPhone 6/7/8 (this is how Zoomed Mode works)

1. Launch the iOS Settings app.
2. Scroll down and select Display & Brightness.
3. Select the View option under the Display Zoom section.
4. If you have "Zoomed mode", change this to "Standard mode".
5. Test again and you should now see the expected screenrect (0,0,414,736)

Does that fix the problem?

Best,
Panos

___
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: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-23 Thread panagiotis merakos via use-livecode
Hi Brahmanathaswami,

I think I have found the culprit. I don’t have a Plus device to check, but
the differences you see between the iPhone 7 Plus device and simulator is
probably because you have enabled the "Zoomed Mode" in the device.

If you have "Zoomed Mode" enabled in the iPhone 6+/7+/8+ device, it reports
the screenrect of iPhone 6/7/8 (this is how Zoomed Mode works)

1. Launch the iOS Settings app.
2. Scroll down and select Display & Brightness.
3. Select the View option under the Display Zoom section.
4. If you have "Zoomed mode", change this to "Standard mode".
5. Test again and you should now see the expected screenrect (0,0,414,736)

Does that fix the problem?

Best,
Panos
—

On Sat, Jun 23, 2018 at 4:36 AM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Do you get the same results if you get the rect of the card?
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On June 22, 2018 9:25:43 PM Sannyasin Brahmanathaswami via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> Never mind.. I had to run (since I did a fresh install of Xcode)
>>
>> sudo xcode-select -s  /Applications/Xcode.app
>>
>> But now my Simulator works!  So we back the screenRect problem
>>
>> Wow... one step close to the gremlin (hehe)
>>
>> And, as Panos says it has nothing to do with 11.4 ... its deeper that than
>>
>> 1) set the fullScreenMode of this stack to "showAll"
>>-- Simulator I get a screenrect of 0,0,414,736
>> -- Build test/target to actually phone 7 plus ...
>> answer screenRect returns 0,0,375,667
>>
>> 2) With exactFit
>> -- Simulator I get a screenrect of 0,0,1242,2208
>> -- but on the actual phone it get
>>0,0,1125,2001...which is a factor 3x(0,0,375,667)
>>
>> So the difference is  (obviously):
>>
>> Scotland does not have an iPhone 7Plus, they were using a Simulator
>> But here, using the actual device, it report a screenrect different then
>> the actual device.
>>
>> Hmmm. Is it  LiveCode problem, or an Apple/Xcode problem?
>>
>> Perhaps it should file a bug... How many other devices are not
>> registering their actual screenRect? Can be a "disaster" for attempts at
>> responsive design.
>>
>> BR
>>
>>
>> ?On 6/22/18, 3:38 PM, "use-livecode on behalf of Sannyasin
>> Brahmanathaswami via use-livecode" > on behalf of use-livecode@lists.runrev.com> wrote:
>>
>>That would go good news. But
>>
>>LC 8.1.10
>>Xcode 9.3
>>Build for iPod,IPhone,iPad.  8.0 or later
>>
>>(can you make the error dialog box so we can copy it to the clipboard?)
>>
>>
>>
>> ___
>> 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
>
___
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