Re: Editing datagrid cells

2015-01-03 Thread Simon Knight
Hi Pete,

Unfortunately I don’t have any answers but I have a similar problem.  I am 
trying to detect a return in a specific field  on a datagrid form and so far I 
can either detect the return but not the name of the field (I just get the name 
of the field editor) or I can get the name of the field with no detection of 
the key press (because the keypress has gone to the field editor).

Lest hope one of the experts answers our questions….


Simon Knight
s...@anvic.net
Telephone : 05603 643965
Mobile : 07963 077071



> On 21 Dec 2014, at 21:22, Peter Haworth  wrote:
> 
> Got a number of questions for the datagrid experts out there, all related
> to the editing of datagrid cells.
> 
> How can I implement a contextual menu when the user right clicks on a cell
> that is being edited?  I tried using a mouseDown handler in a custom column
> handler but it doesn't seem to fire when the edit field is clicked.
> 
> Tab and escape are ways of getting out of edit mode. If escape/tab have not
> been pressed to register the edit, the underlying datagrid data won;t have
> been updated so how can I get hold of the contents of the edit field for a
> cell if the user has not pressed escape or tab?
> 
> Probably the root of the above questions but how can I get hold of the id
> of the field created by the datagrid to edit a cell?
> 
> The datagrid library isn't happy if I send an EditCelll message to a cell
> that has been customized to contain, for example, an option menu. By "not
> happy", I mean that any instructions in the handler after dispatching the
> EditCell message are skipped.  I guess I should file a QCC report for that
> but in the meantime, how can I find the first column in the selected line
> that has not been customized to contain something other than straight text?
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.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: Editing datagrid cells

2015-01-05 Thread Simon Knight
I added a custom prop to store the name of the field being edited following a 
suggestion made on the Livecode forum.  I added this line to the EditValue 
handler in the Row Behavior script : set the cFieldName of grp "DgNotes" to 
pKey  -- store this for use in the custom field editor. Code in the custom 
field editor reads the value when it processes the key presses.

Simon Knight
s...@anvic.net
Telephone : 05603 643965
Mobile : 07963 077071



> On 3 Jan 2015, at 09:07, Simon Knight  wrote:
> 
> Hi Pete,
> 
> Unfortunately I don’t have any answers but I have a similar problem.  I am 
> trying to detect a return in a specific field  on a datagrid form and so far 
> I can either detect the return but not the name of the field (I just get the 
> name of the field editor) or I can get the name of the field with no 
> detection of the key press (because the keypress has gone to the field 
> editor).
> 
> Lest hope one of the experts answers our questions….
> 
> 
> Simon Knight
> s...@anvic.net
> Telephone : 05603 643965
> Mobile : 07963 077071
> 
> 
> 
>> On 21 Dec 2014, at 21:22, Peter Haworth  wrote:
>> 
>> Got a number of questions for the datagrid experts out there, all related
>> to the editing of datagrid cells.
>> 
>> How can I implement a contextual menu when the user right clicks on a cell
>> that is being edited?  I tried using a mouseDown handler in a custom column
>> handler but it doesn't seem to fire when the edit field is clicked.
>> 
>> Tab and escape are ways of getting out of edit mode. If escape/tab have not
>> been pressed to register the edit, the underlying datagrid data won;t have
>> been updated so how can I get hold of the contents of the edit field for a
>> cell if the user has not pressed escape or tab?
>> 
>> Probably the root of the above questions but how can I get hold of the id
>> of the field created by the datagrid to edit a cell?
>> 
>> The datagrid library isn't happy if I send an EditCelll message to a cell
>> that has been customized to contain, for example, an option menu. By "not
>> happy", I mean that any instructions in the handler after dispatching the
>> EditCell message are skipped.  I guess I should file a QCC report for that
>> but in the meantime, how can I find the first column in the selected line
>> that has not been customized to contain something other than straight text?
>> 
>> Pete
>> lcSQL Software <http://www.lcsql.com>
>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.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


___
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: Keynote

2015-03-13 Thread Simon Knight

Marc,

I took a copy using screen snapz which you are welcome to although 
Livecode did say they were making the keynote available.  My copy has a 
few audio drop outs each lasting a few seconds.  It is just under 
300Mbytes : 
https://dl.dropboxusercontent.com/u/41900569/GoToMeeting%20v6.4.10ScreenSnapz001.mov


Simon

On 13/03/2015 06:35, Marc at Home wrote:

Hi,
Does anyone know if where I can get hold of the Kevin's keynote. I missed it :)

Regards,
Marc


___
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: Keynote

2015-03-13 Thread Simon Knight
I have just had a message that my drop box account has been suspended 
due to excessive activity so I guess I will have to remove the file.


Simon


On 13/03/2015 07:41, Marc at Home wrote:

Hi Simon,

Thank you very much!

Best regards,
Marc

Verstuurd vanaf mijn iPad


Op 13-mrt.-2015 om 08:34 heeft Simon Knight  het volgende 
geschreven:

Marc,

I took a copy using screen snapz which you are welcome to although Livecode did 
say they were making the keynote available.  My copy has a few audio drop outs 
each lasting a few seconds.  It is just under 300Mbytes : 
https://dl.dropboxusercontent.com/u/41900569/GoToMeeting%20v6.4.10ScreenSnapz001.mov

Simon


On 13/03/2015 06:35, Marc at Home wrote:
Hi,
Does anyone know if where I can get hold of the Kevin's keynote. I missed it :)

Regards,
Marc


___
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: Keynote

2015-03-13 Thread Simon Knight

Hi,
I will send an email to Kevin to seek permission.

Simon

On 13/03/2015 10:07, Pascal Lehner wrote:

Hi Simon

If LiveCode Ltd. (the company formerly known as RunRev) agrees I'd be happy
to host the file as a download on my SpiderOak account or maybe you can
even put it on youtube for everyone to watch?
Since I watched the keynote live yesterday I do not have a copy of your
catch it as yet.

Best wishes,
Pascal


2015-03-13 11:00 GMT+01:00 Simon Knight :


I have just had a message that my drop box account has been suspended due
to excessive activity so I guess I will have to remove the file.

Simon



On 13/03/2015 07:41, Marc at Home wrote:


Hi Simon,

Thank you very much!

Best regards,
Marc

Verstuurd vanaf mijn iPad

  Op 13-mrt.-2015 om 08:34 heeft Simon Knight  het

volgende geschreven:

Marc,

I took a copy using screen snapz which you are welcome to although
Livecode did say they were making the keynote available.  My copy has a few
audio drop outs each lasting a few seconds.  It is just under 300Mbytes :
https://dl.dropboxusercontent.com/u/41900569/GoToMeeting%
20v6.4.10ScreenSnapz001.mov

Simon

  On 13/03/2015 06:35, Marc at Home wrote:

Hi,
Does anyone know if where I can get hold of the Kevin's keynote. I
missed it :)

Regards,
Marc


___
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: Keynote

2015-03-13 Thread Simon Knight

Hi Marc,

Why half ?  The movie should have been 80 minutes long.

Simon


On 13/03/2015 12:14, Marc at Home wrote:

Ai,

Just seen half of it :(

Hope someone has another solution. Thx anyway.

Regards,
Marc

Verstuurd vanaf mijn iPad


Op 13-mrt.-2015 om 11:00 heeft Simon Knight  het volgende 
geschreven:

I have just had a message that my drop box account has been suspended due to 
excessive activity so I guess I will have to remove the file.

Simon



On 13/03/2015 07:41, Marc at Home wrote:
Hi Simon,

Thank you very much!

Best regards,
Marc

Verstuurd vanaf mijn iPad


Op 13-mrt.-2015 om 08:34 heeft Simon Knight  het volgende 
geschreven:

Marc,

I took a copy using screen snapz which you are welcome to although Livecode did 
say they were making the keynote available.  My copy has a few audio drop outs 
each lasting a few seconds.  It is just under 300Mbytes : 
https://dl.dropboxusercontent.com/u/41900569/GoToMeeting%20v6.4.10ScreenSnapz001.mov

Simon


On 13/03/2015 06:35, Marc at Home wrote:
Hi,
Does anyone know if where I can get hold of the Kevin's keynote. I missed it :)

Regards,
Marc


___
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


Please recommend a text editor

2015-04-04 Thread Simon Knight

Hi,

I have to produce some documentation and am looking for an editor (Apple 
Mac) that will support language syntax colouring.  I am experimenting 
with TextWrangler.  The complication is I want to use both Livecode and 
MS Access VBA code.


Do you have any suggestions ?

best wishes

Simon

___
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: Please recommend a text editor

2015-04-04 Thread Simon Knight

Richmond,

Many thanks - I will give textwrangler a try, I have used it as a plain 
text editor but never really dug deep: I have down loaded the 
"Revolution" add-in that you pointed me to and may have a try at 
creating my own.  The one thing I have not been able to do is to 
directly export coloured text to a word processor.  The Textwrangler 
export option remains grayed out but I can get the text by printing to 
preview and copy and paste from there.


best wishes

Simon

On 04/04/2015 10:19, Richmond wrote:

On 04/04/15 11:48, Simon Knight wrote:

Hi,

I have to produce some documentation and am looking for an editor 
(Apple Mac) that will support language syntax colouring. I am 
experimenting with TextWrangler.  The complication is I want to use 
both Livecode and MS Access VBA code.


Do you have any suggestions ?

best wishes

Simon

___


Komodo: http://sunny-tdz.com/lab-1007

Richmond.

___
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: Please recommend a text editor

2015-04-04 Thread Simon Knight
I've no objection to the built in script editor (except when it bangs 
out during debug) especially as I have just re-discovered that if I cut 
and paste from it I get coloured text.  However, I want to create a 
document that compares Livecode script with VBA code and if I do a cut 
and paste from the VBA editor I get plain text.  I now realise that I 
can put the VBA through textwrangler and into a Wp such as Bean with any 
Livecode being inserted with a straight cut and paste.


Ah! Appleworks 6.  Now it comes from a time when Apple were hungry and 
software had to work whereas today it just has to look good - but please 
don't get me started.


As to  'if I want to do script editing in VBA"- well I don't really its 
just that have to ;-)


best wishes

Simon

On 04/04/2015 12:03, Richmond wrote:

On 04/04/15 13:18, Simon Knight wrote:

Richmond,

Many thanks - I will give textwrangler a try, I have used it as a 
plain text editor but never really dug deep: I have down loaded the 
"Revolution" add-in that you pointed me to and may have a try at 
creating my own.  The one thing I have not been able to do is to 
directly export coloured text to a word processor.  The Textwrangler 
export option remains grayed out but I can get the text by printing 
to preview and copy and paste from there.


best wishes

Simon



I'm not entirely sure what your objection to the built-in script 
editor is; as a syntax coloured external editor is much the same sort 
of thing.


However, having said that, I tend to use Appleworks 6 on my G5 iMac 
running Mac OS 10.5 for editing large scripts where I need to

perform bulk search-and-replace operations.

Appleworks does not offer syntax colouring, but I use it mainly by 
doing a copy-paste of an already finished script to modify it via

search-and-replace rather than programming per se.

If you want to do script-editing like Visual Basic (i.e. one long list 
rather than lots of little lists in each object) then I suppose your 
question begins
to make sense; the only real problem is at that point you lose the 
WYSIWYG aspect that is so powerful in LiveCode.


Richmond.

___
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: Please recommend a text editor

2015-04-05 Thread Simon Knight

Richmond,

You raise some interesting and in some ways disturbing questions. Why 
are we seemingly locked into an endless cycle of replacing working 
equipment with new more expensive versions?  In early days the 
improvements were real with greater storage and improved graphics.  I 
bought my first Apple because Acorn Ltd stopped making computers and I 
could not figure out what I "needed" in a Windows PC.  Initially I was 
happy to upgrade both hardware and software as OSX improved but then 
Lion was issued and Apple entered a phase of stagnation coupled with the 
removal of features such as Rosetta.


Unlike you I have purchased a machine running MAC OS Y ("Black Hills of 
Dakota") and its quite like Mountain Lion only with blue buttons. Where 
possible I have switched off many of the "new exciting" but pointless 
features such as transparency.  The down sides have been many, most 
notable being  my new  computer will not run the older version of Apple 
Pages and the new version will not open older files, not that surprising 
perhaps but it has made me review how I store information for the long 
term.  Also, many of my home movies no longer run as the new Quicktime 
does not recognise the file formats (Its QUICKTIME you dumb piece of 
S**T!) (yes I know quicktime is a container format but why have they 
dropped old formats - have they run out of resources?).


The upshot is that I am unlikely to purchase a new Mac, especially as I 
am certain it will have been dumbed down to the level of IOS and have a 
finger painting interface included.  I suspect that I will either give 
Windows a try or take a leap into the unknown world of Linux.


I apologise for raving on and I think I did warn against getting me 
started but the bottom line is I agree with you.


best wishes

Simon

On 04/04/2015 13:47, Richmond wrote:

On 04/04/15 15:10, Simon Knight wrote:
I've no objection to the built in script editor (except when it bangs 
out during debug) especially as I have just re-discovered that if I 
cut and paste from it I get coloured text.  However, I want to create 
a document that compares Livecode script with VBA code and if I do a 
cut and paste from the VBA editor I get plain text.  I now realise 
that I can put the VBA through textwrangler and into a Wp such as 
Bean with any Livecode being inserted with a straight cut and paste.


Ah! Appleworks 6.  Now it comes from a time when Apple were hungry 
and software had to work whereas today it just has to look good - but 
please don't get me started.


Why do you think about 8 months ago I bought a second-hand G5 iMac 
when I had the money for a new Intel iMac running Mac OS Y ("Black 
Hills of Dakota")?


1. Running 10.4.11 the G5 can run Mac OS 9 - and as, a while ago, I 
invested a lot of money in 3D graphics progs. for Mac OS 9 I'd far

rather run them than pay for their successors.

2. Running 10.5.8 with 2 GB RAM it does almost all I need for 
programming.


3. AppleWorks will be my favourite office suite forever unless 
somebody produces an exact clone than runs on Linux. It may not
have a million bells and whistles, but it does offer all I need, and 
when compared with LibreOffice, Open Office, Star Office, Think Free 
Office,
MS Office, KOffice, KingSoft Office (yes, I have tried ALL of them), 
it still looks better than all of them to me - probabaly because it 
doesn't suffer

from feature bloat.

See answers to my other posting entitled "Please release me, let me 
go." and ask yourself why, although I really DID like Macintosh computers
and the Mac OS, I didn't like Steve Jobs and his heirs, and their 
non-backwards-compatibility way of thinking.


Richmond.


As to  'if I want to do script editing in VBA"- well I don't really 
its just that have to ;-)


best wishes

Simon

On 04/04/2015 12:03, Richmond wrote:

On 04/04/15 13:18, Simon Knight wrote:

Richmond,

Many thanks - I will give textwrangler a try, I have used it as a 
plain text editor but never really dug deep: I have down loaded the 
"Revolution" add-in that you pointed me to and may have a try at 
creating my own.  The one thing I have not been able to do is to 
directly export coloured text to a word processor.  The 
Textwrangler export option remains grayed out but I can get the 
text by printing to preview and copy and paste from there.


best wishes

Simon



I'm not entirely sure what your objection to the built-in script 
editor is; as a syntax coloured external editor is much the same 
sort of thing.


However, having said that, I tend to use Appleworks 6 on my G5 iMac 
running Mac OS 10.5 for editing large scripts where I need to

perform bulk search-and-replace operations.

Appleworks does not offer syntax colouring, but I use it mainly by 
doing a copy-paste of an already finished script to modify it via

search-and-replace rather than programming per se.

If you want to

Re: Please recommend a text editor

2015-04-06 Thread Simon Knight

WILCO!

ordered from ABE books for 67p

On 05/04/2015 16:12, Richard Gaskin wrote:

Simon Knight wrote:


You raise some interesting and in some ways disturbing questions. Why
are we seemingly locked into an endless cycle of replacing working
equipment with new more expensive versions?


Read Victor Papanek's "Design for the Real World".




___
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: [OT] What the *&^#$!#$ Just Happened - SPAM

2015-06-17 Thread Simon Knight

 try Russia

On 08/06/2015 17:00, dunb...@aol.com wrote:

Where can I find these Russian women?


Craig



-Original Message-
From: Richard Gaskin 
To: use-livecode 
Sent: Mon, Jun 8, 2015 10:47 am
Subject: Re: [OT] What the *&^#$!#$ Just Happened - SPAM


Kay C Lan wrote:

  > I use this email account almost exclusively for this Use
List now;
  > so I haven't recently given it to anyone, company or whatever.

  > Up until yesterday I usually received 1 or 2 false SPAMS a day;
  >
typically from Dunbarx's AOL account or some other legitamate Use
  > List user
with an AOL account.
  >
  > Up until yesterday I usually receved a single
actual SPAM every
  > couple of months.
  >
  > Today I accessed this account
and I had over 50!!! That's more than
  > the TOTAL email SPAM I've ever
received on this account.

This is a public list where the archives are
publicly
available:


Every
resource publicly available is easily spiderable.

I think all you're seeing
is what seems to me a recent uptick in the
aggressiveness of certain
spammer-controlled botnets.  I've been seeing
a lot more spam myself lately,
mostly for junk stock tips and bots
claiming to be Russian women who want to
marry an American.

There is no cure.  Spam consumes so much of our Internet
that an
estimated 5-10% of legitimate email never arrives at its destination

because all systems are bogged down trying to stay on top of spam.

Windows
still has about 90% of the computing market, and most botnets
are run on
unsuspecting end-users' machines.  The rest are often
installed on Web servers
that didn't stay on top of the updates for
their CMS frameworks.  When we
combine millions of compromised servers
with tens of millions of compromised
desktop machines, the botnets can
only win.

Sorry, don't have a "glass half
full" for this one.




___
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


Livecode and UTF8

2015-07-28 Thread Simon Knight

Hi,

I have an app that works with old fashioned text i.e. characters with a 
code value of less than 128.  Recently I enabled cut and paste and the 
app gets confused it text is pasted in with character values > 127.  I 
have done the obvious and an filtering out all characters with an Ascii 
value of >127 but in the longer term I want to convert a few high bit 
characters to a low bit versions e.g. smart quotes to dumb quotes.


Some of the text that gets pasted from my email client is in UTF8. I 
have done some web research and now know a little about UTF8.  I have 
written a routine that captures any UTF8 code patterns and passes the 
UTF string to a routine for conversion.


A UTF8 string may be between one and four bytes long and every byte has 
a value greater than 127.  I wish to extract the UTF character value and 
use the value to do the conversion.  My question is: does livecode have 
any method of converting  a UTF8 character string to either a UTF16 
string or to the numeric value of the character which I believe is the 
same if leading zeros are ignored?  For instance a smart open quote 
appears in my data as a series of three bytes : [E2-hex,80-hex,9C-hex] 
the numeric value of the character is encoded within the bits of the 
three bytes and will take some bit shifting to extract : the UTF8 string 
decodes to 201C-hex or 8220 base 10.


At present I am working with Livecode 6.7 and have read about and tried 
the uniEncode and uniDecode functions.  The description of these 
functions does not make any sense to me as they seem to be about adding 
or removing every other byte which can't work with UTF8.


I have tried various versions of the following button code attempting to 
get a result of 8220 base 10:


on mouseUp
 put numToChar(226) into tString -- E2 hex
 put numToChar(128) after tString -- 80 hex
 put numToChar(156) after tString -- 9C hex

 Set the UseUniCode to true

 put "source string :" &  tstring

 put uniDecode(tString,"UTF8") into tResult

 put CharToNum(tResult) into tNumberResult  -- seeking value 8220 
in base 10


end mouseUp

So do I have to knuckle down and start bit shifting?

thanks for reading
Simon

___
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


Anyone any experience with Livecode under Ventura?

2022-12-22 Thread Simon Knight via use-livecode
Well I've had issues with Ventura and how Livecode requests permission for 
access to Contacts and Calendar data.  Unfortunately I don't have Ventura so 
all this is second hand but hints that there are issues with how the Privacy 
Pane works.  For example a stack running in the IDE and using a library that 
requires access to Calendar fails to request permission yet the compiled 
application does.
___
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: Anyone any experience with Livecode under Ventura?

2022-12-22 Thread Simon Knight via use-livecode
Richmond62 is using : ProductName: macOS, ProductVersion: 13.2, 
ProductVersionExtra: (a)
Stam is using : ProductName: macOS, ProductVersion: 13.0.1, BuildVersion: 22A400

Details from a log file that Richmond62 and Stam reported in the Forum thread.  
If I understand what Richmond has written in the thread Livecode was listed in 
the Privacy Pane and was enabled but my library reported "denied".  Stam's 
Livecode is not listed and never requests access.

I'm going the thread here : 
https://forums.livecode.com/viewtopic.php?f=9&t=37540&start=30

> On 22 Dec 2022, at 17:00, use-livecode-requ...@lists.runrev.com wrote:
> 
> What version LC? There was a version that was exhibiting this behavior, but 
> it was fixed. This may be a regression.

___
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: Anyone any experience with Livecode under Ventura?

2022-12-24 Thread Simon Knight via use-livecode
Hi Matthias,

Thank you for your offer. 

I've conducted some more testing and it seems that the issue I am seeing may 
not be isolated to just Ventura.  Unfortunately not having a copy makes it 
difficult to report on what is occuring, so I will just describe what I see in 
Livecode 9.6.8 running on Big Sur.

Before starting I remove Livecode from both Contacts and Calendar in the 
Privacy Pane using two calls to tccutils.  With the library file installed and 
my stack file open in livecode I make the request for Calendar data.  The 
system should present two dialog boxes requesting permission to access first 
Contacts then Calendar.  When run in the IDE only one gets presented followed 
by a second stating that access to Calendar data is denied.  This should mean 
that Livecode is listed in the Privacy Pane but it is not.  This issue may be 
slightly different to what was being reported to me about Ventura.

I have raised a rambling bug report 
https://quality.livecode.com/show_bug.cgi?id=24054 
 and all the files are 
attached to this report.  For tests in the IDE I suggest the version of the 
stack dated 24th dec 2022 and version 1.1.54 of the library.  The built 
versions use a slightly earlier version of the stack file but the differences 
are minor.

Link to the form thread : https://forums.livecode.com/viewtopic.php?f=9&t=37540 
  beware that the URLs 
to Dropbox do work but Dropbox mangles the zips.  It is better to get the files 
via the bug report.

Simon




___
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: Livecode Future

2024-07-24 Thread Simon Knight via use-livecode
One feature of the present commercial licensing is that I decide the terms and 
conditions that apply to any application I build.   What happens under the new 
licensing if I build an application either for sale or for a client and then 
some time in the future the application is duplicated, distributed and used 
without my permission or even knowledge?  Does RunRev chase me, the purchaser 
or both of us for breach of their license conditions?

best wishes

Simon


___
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: Livecode Future

2024-07-25 Thread Simon Knight via use-livecode
Hi Jeff,

When I was working my use cases would have run into similar issues as you 
describe.  Most of my applications were short lived and were used by either 
defence contractors or the military themselves.  If I had ever tried to supply 
any application that "phoned home" I would have been asked to leave and never 
darken their door again.  

I suspect that if I used Livecode Create today I would end up having to prove 
that it was not contacting any remote servers so much so that I doubt that even 
being accepted as a "special case" by RunRev would cut it with the military 
security services.

Even if the application were allowed then the licensing is complex, for example 
I was once paid to support the Ten Tors race by designing and writing a 
database front end to a PostGre database of competitors which was designed to 
track team members during the two day event.  The event is run by the UK Army 
and the competitors are all teenagers i.e. children. 

The event is managed from an army camp on Dartmoor where there is no internet.  
The database front end was installed on something like fifteen computers 
situated in departments dotted around the camp such as transport and the 
medical centre.  Each department had personal accessing the database as and 
when they needed to.These people were working shifts over the time of the 
event.  Each department tended to use a single login so I have no idea how the 
number of users could be tracked.   Also the security and privacy issues were 
massive and there is no way that software that contacted or attempted to 
contact the cloud would have be allowed.  

While I'm sure Livecode will say contact us and we will sort something out, the 
fact is that having to do so just adds additional levels of complexity, 
friction and cost.  I have read and reread the licensing terms along with the 
updated FAQs but I still have no idea how the example above would have been 
charged if written in LC Create today.  For example my application used a 
database library, written in Livecode Script and licensed from Andrea Garcia.  
Does the use of third party libraries cause additional licensing issues?

Like you I think now is time to find other hobbies; the Proxxon range of mini 
tools are interesting and don't have the same licensing issues.

best wishes

Simon

> On 24 Jul 2024, at 21:04, Jeff Reynolds via use-livecode 
>  wrote:
> 
> I’ve used Livecode since the early days of MetaCard, primarily creating 
> educational software, educational multimedia cds included with kids books and 
> a ton of museum exhibits. For me the new create system and licensing looks 
> pretty untenable, but I realize I’m the odd duck.
> 
> The bulk of my time on these projects was actually content design and 
> presentation as well as interface design and functionality. Programming time 
> in live code was a small fraction of the build costs so savings for me for a 
> more rapid development environment is minimal and would bring in minimal, if 
> any increased profits. I’m not churning out an app a week, these are much 
> more robust content driven programs where dealing with the nuances of content 
> presentation is the 800lb gorilla and requires lots of small program tweaks 
> as that design is refined during development to get it just right. Each 
> interface is custom and art rich so auto interface builds adds no savings, 
> probably only hassles keeping it out of things.
> 
> Being educational also means super slim margins all around. Asking a royalty 
> payment for just the software system licensing would be a no go with authors 
> and publishers. If they did, they would say ok we just take that out of your 
> end then and that would wipe out any profits for me as it would not really 
> add anything much to my productivity.
> 
> I have no idea of how this new license would work for my exhibit programs as 
> well. Some are presentation systems that are used by a varying number of 
> presenters at the institutions, some employees, some volunteers (is a 
> volunteer a seat?). On the floor the app is used by tens of thousands of 
> visitors. I also usually write a bunch of small apps for myself, the client, 
> and the production team to help manage content development and organization 
> on the project as well as migrate and format the content to go into the 
> presentation/exhibit app. These apps are used very sporadically and sometimes 
> by a number of people, sometimes only a few. All these organizations are 
> usually paid admission, but are non profits.
> 
> Most of my really hard core programming I doubt would be helped by the new 
> system as that is usually controlling all sorts of devices thru different 
> interfaces and talking to other computer systems to coordinate a show. The 
> drivers and programming for this is usually a total dive into obscure command 
> protocols and interfaces these devices have but are seldom used outside of 
> with turnkey control equipment. I doubt Create

Re: I seem to have missed something

2024-07-26 Thread Simon Knight via use-livecode
James, I think it means :

> On 26 Jul 2024, at 07:53, James Hale via use-livecode 
>  wrote:
> 
> OR does a “seat” mean anyone using the app created by LC?

___
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: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Simon Knight via use-livecode
Hi,
Does the built application icon look as it should?'
Are the laptops all using the same chip set e.g. powerpc, intel or Arm?
Are the build settings correct?
Can you view package contents?

S

> On 13 Aug 2024, at 13:32, Alex Morrison via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I’m a LiveCode licensee with a Mac runtime license trying to make a desktop 
> app that I can distribute to a few other people. 
> 
> I’ve adjusted all the obvious settings and made an app. The resulting app 
> works fine on my own laptop, no problem. 
> 
> But when I send it to another laptop it won’t launch. The system throws a 
> dialog which says: 
> 
> ‘The application "my app" can’t be opened.’ 
> 
> Have tried right-click ‘Open’ and it’s no better. Same dialog. 
> 
> Taking the same LiveCode stack and making what feels like it should be an 
> identical app with the same settings on my colleague Ben’s LiveCode system 
> (he’s also a LiveCode licensee with a Mac runtime license), the app works 
> fine on a different laptop. Right-click ‘Open’ works as it should. 
> 
> I’m a bit baffled. Any suggestions? 
> 
> all best
> 
> Alex
> 
> P.S. Just to say how grateful I am to Kevin and the mighty LiveCode team for 
> such a great product over so many years. Thank you. Thank you. 
> 
> —
> 
> cogapp
> 
> building a better online world
> 
> Alex Morrison
> Founder/Director
> (he/him)
> 
> cogapp.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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-26 Thread Simon Knight via use-livecode
Hi, as someone who came to Livecode attracted by the hook that it could be used 
by Subject Matter Experts (SMEs) I try and follow these threads but please take 
care with the use of abbreviations / acronyms.  Some I’ve worked out others 
I’ve no idea : OSS open source S?, SOS ??? or generally  morse code dot dot 
dot dash dash dash dot dot dot “Save Our Souls”  however it doesn’t read well 
below ;-) 

My concern with external editors is based on my use of the tRev editor in the 
past, which while having some nice features often lost the edits I made.  I 
have no idea how it communicated with the IDE.

I agree with your comments re GIT.  As a one man band it seems like over kill 
in my situation.  So I am creating an AutoSave plugin that makes a backup every 
few minutes if the scripts have been modified (it has no knowledge of changes 
to the UI).  It also produces a simple log file that describes the delta 
between backups.  I am happy to share if it is of any interest.

best wishes

Skids

Simon Knight
s...@anvic.net
Telephone : 01427 325911
Mobile : 07963 077071
Skype : jtidsskids



> On 26 Feb 2017, at 01:05, Mike Kerner via use-livecode 
>  wrote:
> 
> I don't think SOS is the main future.  I think it gives us another option.
> Long before someone learns that technique, they should have the traditional
> method down, cold, and understand why they would use one or the other.  SOS
> definitely make working on the IDE easier, and they make complicated
> projects easier, but I wouldn't even think of teaching someone who isn't
> already a LC expert about doing it this way.
> 
> The one thing to remember about the SOS technique is that Git isn't the
> only option.  Git is hard core, and it is hard.  I still don't like it, but
> I am trying to tolerate it.  If you're using any cloud syncing tool that
> can keep track of versions (Office365, Gsuite, and Dropbox come to mind),
> you have simple version control/rollbacks/archiving/etc.
> ___
> 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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-27 Thread Simon Knight via use-livecode
Thanks for the decode - I did wonder why the forerunner of the CIA was being 
talked about ;-)

OSS - Office of Strategic Services

Simon

Simon Knight
s...@anvic.net
Telephone : 01427 325911
Mobile : 07963 077071
Skype : jtidsskids





> On 26 Feb 2017, at 13:40, Mike Kerner via use-livecode 
>  wrote:
> 
> Abbreviations that come up in this thread:
> LC - livecode
> SE - script editor
> IDE - Integrated Development Environment
> OSS - open source software
> SOS - script-only stack
> 
> 
> On Sun, Feb 26, 2017 at 8:24 AM, Simon Knight via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi, as someone who came to Livecode attracted by the hook that it could be
>> used by Subject Matter Experts (SMEs) I try and follow these threads but
>> please take care with the use of abbreviations / acronyms.  Some I’ve
>> worked out others I’ve no idea : OSS open source S?, SOS ??? or
>> generally  morse code dot dot dot dash dash dash dot dot dot “Save Our
>> Souls”  however it doesn’t read well below ;-)
>> 
>> My concern with external editors is based on my use of the tRev editor in
>> the past, which while having some nice features often lost the edits I
>> made.  I have no idea how it communicated with the IDE.
>> 
>> I agree with your comments re GIT.  As a one man band it seems like over
>> kill in my situation.  So I am creating an AutoSave plugin that makes a
>> backup every few minutes if the scripts have been modified (it has no
>> knowledge of changes to the UI).  It also produces a simple log file that
>> describes the delta between backups.  I am happy to share if it is of any
>> interest.
>> 
>> best wishes
>> 
>> Skids
>> 
>> Simon Knight
>> s...@anvic.net
>> Telephone : 01427 325911
>> Mobile : 07963 077071
>> Skype : jtidsskids
>> 
>> 
>> 
>>> On 26 Feb 2017, at 01:05, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I don't think SOS is the main future.  I think it gives us another
>> option.
>>> Long before someone learns that technique, they should have the
>> traditional
>>> method down, cold, and understand why they would use one or the other.
>> SOS
>>> definitely make working on the IDE easier, and they make complicated
>>> projects easier, but I wouldn't even think of teaching someone who isn't
>>> already a LC expert about doing it this way.
>>> 
>>> The one thing to remember about the SOS technique is that Git isn't the
>>> only option.  Git is hard core, and it is hard.  I still don't like it,
>> but
>>> I am trying to tolerate it.  If you're using any cloud syncing tool that
>>> can keep track of versions (Office365, Gsuite, and Dropbox come to mind),
>>> you have simple version control/rollbacks/archiving/etc.
>>> ___
>>> 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
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> 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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-27 Thread Simon Knight via use-livecode
I’m curious how do the likes of Swift, C# store details of their GUI ?

As to display of PDF what is it you want to do that can’t be achieved using the 
browser ?

best wishes
Simon

Simon Knight
s...@anvic.net
Telephone : 01427 325911
Mobile : 07963 077071
Skype : jtidsskids





> On 26 Feb 2017, at 21:06, Richard Gaskin via use-livecode 
>  wrote:
> 
> Dr. Hawkins wrote:
> 
> > More commonly, until and unless livecode can save such that such
> > standard tools or comparable can be applied, multi-person development
> > will remain a fantasy and/or novelty.
> 
> And yet here we are, using an IDE written in LiveCode by a team comprised of 
> dozens of company and community developers working together on a single code 
> base.
> 
> 
> > I've come to accept that the next major rewrite of my software is
> > going to have to be in something else (Swift?) so that I can add
> > developers, as well as the inability to actually put a pdf or eps
> > on a card (just a bitmap of it won't do); livecode just doesn't
> > seem to me doing towards such a direction.
> 
> The Business Edition has already gone that direction:
> https://livecode.com/products/livecode-platform/pdf-viewer/
> 
> Probably at least an order of magnitude cheaper to upgrade to Business than 
> to rewrite the whole thing in Swift from scratch.  And with LC you get a 
> cross-platform solution, while even if you did find a GUI framework for Swift 
> for Windows you'd likely be writing a lot of forked code for each platform.
> 
> -- 
> 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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-27 Thread Simon Knight via use-livecode
Hi, it was the comment by Dr. Hawkins : "as well
as the inability to actually put a pdf or eps on a card (just a bitmap of
it won't do); livecode just doesn't seem to me doing towards such a
direction.

Sorry for causing confusion.




> On 27 Feb 2017, at 16:10, Mike Kerner via use-livecode 
>  wrote:
> 
> I don't understand the last question, on PDF's
> 
> On Mon, Feb 27, 2017 at 4:47 AM, Simon Knight via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I’m curious how do the likes of Swift, C# store details of their GUI ?
>> 
>> As to display of PDF what is it you want to do that can’t be achieved
>> using the browser ?
>> 
>> best wishes
>> Simon
>> 
>> Simon Knight
>> s...@anvic.net
>> Telephone : 01427 325911
>> Mobile : 07963 077071
>> Skype : jtidsskids
>> 
>> 
>> 
>> 
>> 
>>> On 26 Feb 2017, at 21:06, Richard Gaskin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Dr. Hawkins wrote:
>>> 
>>>> More commonly, until and unless livecode can save such that such
>>>> standard tools or comparable can be applied, multi-person development
>>>> will remain a fantasy and/or novelty.
>>> 
>>> And yet here we are, using an IDE written in LiveCode by a team
>> comprised of dozens of company and community developers working together on
>> a single code base.
>>> 
>>> 
>>>> I've come to accept that the next major rewrite of my software is
>>>> going to have to be in something else (Swift?) so that I can add
>>>> developers, as well as the inability to actually put a pdf or eps
>>>> on a card (just a bitmap of it won't do); livecode just doesn't
>>>> seem to me doing towards such a direction.
>>> 
>>> The Business Edition has already gone that direction:
>>> https://livecode.com/products/livecode-platform/pdf-viewer/
>>> 
>>> Probably at least an order of magnitude cheaper to upgrade to Business
>> than to rewrite the whole thing in Swift from scratch.  And with LC you get
>> a cross-platform solution, while even if you did find a GUI framework for
>> Swift for Windows you'd likely be writing a lot of forked code for each
>> platform.
>>> 
>>> --
>>> 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
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> 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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread Simon Knight via use-livecode
Hi

First I am not sure why your code replaces spaces with underscores in tFile.

Next I have an application that displays lists of filenames in a folder.  The 
user clicks on a filename and it is displayed in a browser object on the card.  
In order to get this to work I had to convert the displayed and selected file 
name to one that the OS actually uses at a lower level by using these lines of 
code:

put GetSourcefolder() & "/" & tFilename into tMyFilePath

replace " " with "%20" in tMyFilePath

replace "|" with "%7C" in tMyFilePath


I make no claims that the problem is restricted to these two characters but 
this might be a starting point.  Also different OS’s have different rules on 
the characters used in file names, so you need to account for the OS the server 
is running and google for character substitutions used in file names.

Skids


> On 28 Feb 2017, at 08:23, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i need to upload files with non-ascii characters in the filename and this has 
> to work on Win and Mac OS X.
> 
> My script works fine when uploading files with ascii filenames, but as soon 
> as i select a file with non-ascii characters in its filename i get an error
> 
> What do i have to do with the filenames/filepath (target and source) before 
> doing the upload?
> 
> My script looks like this:
> 
> answer tFile "select file..."
> if it is empty then exit to top
> put it into tFilePath
> replace backslash with slash in tFilePath
> set the itemdelimiter to slash
> put item -1 of tFilePath into tFile
> replace " " with "_" in tFile
> put "ftp://username:passw...@ftpserver.com/ 
> "& tFile into tURL
> liburlftpupload tFilePath,tURL
> 
> I´ve tried to urlencode tDatei.
> 
> 
> I am pretty sure there is something more.
> 
> Regards,
> 
> Matthias 
> ___
> 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

Storing Images for use by Custom Controls

2018-07-24 Thread Simon Knight via use-livecode
Is there an elegant method of storing images for use by a custom control?  I 
have tried adding the images to the custom control group but the buttons in 
copies of the first group refer back to the first group so there is no 
advantage when compared to storing the images on a card or in a folder.

best wishes

Simon K.
___
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: Storing Images for use by Custom Controls

2018-07-24 Thread Simon Knight via use-livecode
Hi Scott,

Thank you for your replies.  I apologise for my question, I should have been 
clearer.  However, I have copied your response to my “hints and tips” document 
for reference in the future as it seems like a useful workflow to know.

To clarify my question; I have created a simple custom control that uses two 
list fields and some buttons.  I will probably want to use the control in the 
future so I am seeking a method of saving the control ready to be used in the 
future.  At the moment the png images, I use to "skin" the buttons, are stored 
on a card on a sub-stack named assets.  I do this because I am following some 
advice that Trevor Devore gave in a video some years ago and I know no better.  

The problem with this storage solution is that my custom control has components 
stored in different locations and they may well become separated sometime in 
the future.
Initially, I searched the Livecode forum and found a thread where the prospect 
of better encapsulation of custom controls was discussed and Mark W. wrote that 
he was thinking  about it.  This was a few years ago when version 6 was current 
and I wondered if any features have been added to Livecode to enable fully 
encapsulated custom controls to be written.  I realise that one answer might be 
“write a widget” but I don’t really want to take time learning a new language 
and process in an attempt to recreate a control that I already have.

I had not thought of using a customProp to store images and in truth I did not 
know it was an option so I will do some research and see what I can learn.

Thanks again and best wishes

Simon
> On 24 Jul 2018, at 23:36, scott--- via use-livecode 
>  wrote:
> 
> Hello Simon,
> I see I probably misunderstood what you were trying to do. With a custom 
> control I might be tempted to store the images in a customProp if I wanted 
> multiple resolutions to travel with the group object. Then do something like 
> setting the imageData of the image.
> —
> Scott
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   http://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth     1-800-615-0867
> 
>> On Jul 24, 2018, at 8:44 AM, Simon Knight via use-livecode 
>>  wrote:
>> 
>> Is there an elegant method of storing images for use by a custom control?  I 
>> have tried adding the images to the custom control group but the buttons in 
>> copies of the first group refer back to the first group so there is no 
>> advantage when compared to storing the images on a card or in a folder.
>> 
>> best wishes
>> 
>> Simon K.
>> ___
>> 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: Storing Images for use by Custom Controls

2018-07-25 Thread Simon Knight via use-livecode
Well I tried using custom props but did not get very far with them.  My 
solution is to add the image files to the group and hide them behind other 
controls.  I have added the attached handler that sets the button icons to the 
values of the images in the group.  The handler should be called when the 
original control is duplicated but.  

I used the array to ensure that the handler only finds images that are part of 
the group:

on newgroup
   -- set the icons for the buttons
  
   --build an array of refs to images in the group
   repeat with x=1 to the number of images of me
  put the ID of image x into tID
  put the short name of image x into tName
  put tID into ImageA[tName]
   end repeat
   
   --now set the icons
   set the icon of button "add" of me to ImageA["imgPlus"]
   set the icon of button "SortA" of me to ImageA["imgSort"]
   set the icon of button "Delete" of me to ImageA["imgBin"]
   
   set the icon of button "SortB" of me to ImageA["imgSort"]
   set the icon of button "Remove" of me to ImageA["imgLeftArrow"]
   set the icon of button "Use" of me to ImageA["imgLeftArrow"]   
end newgroup
> On 24 Jul 2018, at 23:36, scott--- via use-livecode 
>  wrote:
> 
> Hello Simon,
> I see I probably misunderstood what you were trying to do. With a custom 
> control I might be tempted to store the images in a customProp if I wanted 
> multiple resolutions to travel with the group object. Then do something like 
> setting the imageData of the image.
> —
> Scott
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   http://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth 1-800-615-0867
> 
>> On Jul 24, 2018, at 8:44 AM, Simon Knight via use-livecode 
>>  wrote:
>> 
>> Is there an elegant method of storing images for use by a custom control?  I 
>> have tried adding the images to the custom control group but the buttons in 
>> copies of the first group refer back to the first group so there is no 
>> advantage when compared to storing the images on a card or in a folder.
>> 
>> best wishes
>> 
>> Simon K.
>> ___
>> 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: Storing Images for use by Custom Controls

2018-07-25 Thread Simon Knight via use-livecode
Hi Bernd,

Unfortunately when I tried your code the copies referred back to the original.

best wishes

Simon
> On 25 Jul 2018, at 13:22, BNig via use-livecode 
>  wrote:
> 
> Hi Simon,
> 
> I think the easiest way would be to copy the images your custom control uses
> to the custom controls. 
> then add this code to the group (it is for one button "bOne" and two images
> "greenRound" and "redQMark"
> 
> on newGroup
>   resolve image "redQMark" relative to button "bOne" of me
>   if it is not empty then 
>  set the hilitedIcon of button "bOne" to the short id of it
>   end if
>   resolve image "greenRound" relative to button "bOne" of me
>   if it is not empty then 
>  set the icon of button "bOne" to the short id of it
>   end if
> end newGroup
> 
> "NewGroup" is a message that the custom control gets when you paste it.
> That way the custom control is self contained and when you paste it into a
> new stack it will assign the ids of the images to your buttons.
> 
> Kind regards
> Bernd
> 
> That way they are contained in your custom control and the custom control
> can be self contained, i.e. can be reused in a different stack.
> 
> 
> Simon Knight via use-livecode wrote
>> Hi Scott,
>> 
>> Thank you for your replies.  I apologise for my question, I should have
>> been clearer.  However, I have copied your response to my “hints and tips”
>> document for reference in the future as it seems like a useful workflow to
>> know.
>> 
>> To clarify my question; I have created a simple custom control that uses
>> two list fields and some buttons.  I will probably want to use the control
>> in the future so I am seeking a method of saving the control ready to be
>> used in the future.  At the moment the png images, I use to "skin" the
>> buttons, are stored on a card on a sub-stack named assets.  I do this
>> because I am following some advice that Trevor Devore gave in a video some
>> years ago and I know no better.  
>> 
>> The problem with this storage solution is that my custom control has
>> components stored in different locations and they may well become
>> separated sometime in the future.
>> Initially, I searched the Livecode forum and found a thread where the
>> prospect of better encapsulation of custom controls was discussed and Mark
>> W. wrote that he was thinking  about it.  This was a few years ago when
>> version 6 was current and I wondered if any features have been added to
>> Livecode to enable fully encapsulated custom controls to be written.  I
>> realise that one answer might be “write a widget” but I don’t really want
>> to take time learning a new language and process in an attempt to recreate
>> a control that I already have.
>> 
>> I had not thought of using a customProp to store images and in truth I did
>> not know it was an option so I will do some research and see what I can
>> learn.
>> 
>> Thanks again and best wishes
>> 
>> Simon
> 
> 
> 
> 
> 
> --
> 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: Storing Images for use by Custom Controls

2018-07-26 Thread Simon Knight via use-livecode
Bob,

The reason I went for the array rather than a naming convention such as you 
suggest is because I have no idea how Livecode resolves the names.  I have an 
impression that it looks at the stack and works its way up through the images 
in ID order.  The upshot is that a button in a copy of the first group may well 
be using images from other groups.

I tried all sorts of syntax along the lines of image “ImgPlusButton” of this 
group but any attempts to specify the location were rejected.  My code 
associates the local image of the required name that is within the group 
container with its ID number which is allocated when the group is created.  I 
believe that the stack wide naming/ID list is also where Bernd’s code fails; 
images are indeed found but there is no guarantee that they are the images that 
are members of the group or as in one of my tests even on the same stack.

best wishes

Simon

> On 25 Jul 2018, at 22:47, Bob Sneidar via use-livecode 
>  wrote:
> 
> About saving images: I learned a long time ago, both with graphics and 
> publications development, as well as software development, to have copies of 
> resources in a subfolder of a main project folder. This has a couple 
> advantages: First of all, graphics applications can often auto-resolve 
> references if you do that. Second, in case you want to skin your app, you can 
> keep sets of graphics in other folders, then do a simple folder rename kabuke 
> dance and voila! You just reskinned your app! 
> 
> As far as the technique of grouping buttons with their image objects (I hide 
> my image objects and put them behind the button they belong to) and then 
> grouping all the control groups as one, this is a great method, and allows 
> you to programmatically dynamically update the controls as needed. 
> 
> Finally, as I mentioned, naming the images and buttons so that knowing the 
> button name makes the image name predictable eliminates the need to store 
> everything in an array for access later, although I'm sure that is a workable 
> solution as well. 
> 
> I have no problem having multiple copies of an image in my application, at 
> least for MacOS and Windows apps. They shouldn't take up too much space if 
> designed right, and the convenience of keeping the images with the buttons 
> that need them ensures my forms will ALWAYS display correctly. 
> 
> Bob S
> 
> 
>> On Jul 25, 2018, at 13:20 , Simon Knight via use-livecode 
>>  wrote:
>> 
>>>> The problem with this storage solution is that my custom control has
>>>> components stored in different locations and they may well become
>>>> separated sometime in the future.
>>>> Initially, I searched the Livecode forum and found a thread where the
>>>> prospect of better encapsulation of custom controls was discussed and Mark
>>>> W. wrote that he was thinking  about it.  This was a few years ago when
>>>> version 6 was current and I wondered if any features have been added to
>>>> Livecode to enable fully encapsulated custom controls to be written.  I
>>>> realise that one answer might be “write a widget” but I don’t really want
>>>> to take time learning a new language and process in an attempt to recreate
>>>> a control that I already have.
> 
> ___
> 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: Storing Images for use by Custom Controls

2018-07-26 Thread Simon Knight via use-livecode
Hi Stephen,

Why lose the quotes, the texts are literals and not variables.

Simon

> On 25 Jul 2018, at 21:41, Stephen Barncard via use-livecode 
>  wrote:
> 
> ose the quotes inside the brackets??
> 
> sqb
> 
> --
> Stephen Barncard - Sebastopol Ca. USA -

___
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.02 Problems when displaying local PDF in stack

2019-01-05 Thread Simon Knight via use-livecode
Hi all,

Not sure if this is the done thing but I have started a thread on the forum 
describing how an Application I have written to rename PDFs is now failing in 
LC 9.02.  it has the title of "
Board index <https://forums.livecode.com/index.php>Intermediate 
<https://forums.livecode.com/viewforum.php?f=39>Talking LiveCode 
<https://forums.livecode.com/viewforum.php?f=9> <>RevBrowser Now displays PDFs 
with Adobe Clutter <https://forums.livecode.com/viewtopic.php?f=9&t=31998>
“ and may be found here:

https://forums.livecode.com/viewtopic.php?f=9&t=31998&p=175028#p175028 
<https://forums.livecode.com/viewtopic.php?f=9&t=31998&p=175028#p175028>

I have also raised a bug report and wonder if anyone has seen similar

https://quality.livecode.com/show_bug.cgi?id=21776 
<https://quality.livecode.com/show_bug.cgi?id=21776>



Simon Knight





___
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: LC 9.02 Problems when displaying local PDF in stack

2019-01-06 Thread Simon Knight via use-livecode
Hi Tore,

I have spent a couple of hours hunting down Adobe Reader related  files 
scattered about in my computers Library folder and others but to no avail.  I 
suspect that the root cause is the newish Adobe Acrobat Reader DC which I 
briefly tried while attempting to solve an unrelated problem with a PDF file.  
This was the app that was inserting its self into my apps revBrowser control,  
I have removed Acrobat Reader DC and downloaded the Adobe cleaner app but my 
instance of revBrowser still requests that I locate Adobe Acrobat and fails to 
display the local PDF file.  I have also experimented with the Browser widget 
and get the same result when running LC 9.02.

So it seems that having removed Adobe Acrobat Reader DC that my code is unable 
to display PDFs in either a RevBrowser or a Browser Widget when running in 
LC9.02.  I also suspect there is a subtle buffering problem when running the 
same code in LC 8 and earlier as the app stops displaying PDFs after a source 
file is moved; I am still experimenting to see if I can determine exactly what 
is causing the problem.
 
Regards
Simon Knight


___
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: LC 9.02 Problems when displaying local PDF in stack

2019-01-06 Thread Simon Knight via use-livecode
Excellent advice Tore - many thanks.

I reinstalled Adobe Acrobat Reader DC and confirmed that my app PDFreader was 
now displaying PDFs when run in LC 9.02 and that a second selection of a PDF 
caused the Adobe related menus and button bar to be displayed i.e. back to my 
starting point.

Next I ran the Adobe Cleaner App which I downloaded from the Adobe web site.  
Thus ran and reported that the Reader had been removed.  I checked the log file 
and it contained a very long list of files so this removal app is necessary.

Then I ran my app PDFrename and confirmed that it could display PDFs and 
continue to do so once the PDFs are renamed and moved all without any Adobe 
clutter.  All this works but the display of PDFs is slower without Adobe Reader 
installed and slower than with earlier versions of LC.  Unfortunately this 
slowness now occurs in the older versions so may be OS related.  It could be 
that in the past I had an older version of Adobe Reader installed that did not 
force menus to be displayed and ran faster than the native OS.

So this is a problem partially solved.  The true problem is that we can produce 
applications that use the revBrowser control which may have a UI that varies 
significantly depending on what the end user has installed on his computer.  I 
think this is undesirable.

Thanks again,
best wishes
Simon Knight


___
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: Refactoring is your friend / moving from 6.x to 9.x

2019-01-06 Thread Simon Knight via use-livecode

This thread seems to have diverted away from Malte’s original post.

For Malte and others I have found that the revBrowser control is slower to 
render PDFs and may insert unwanted menus and button thanks to Adobe in version 
9.02.
See  >

One question why does this thread refer to RQCC ?

best wishes

Simon





> On 30 Dec 2018, at 19:33, Malte Pfaff-Brill via use-livecode 
>  wrote:
> 
> Did anybody of you happen to refactor old code and if so, do you have any 
> observations you might want to share?
> 
> Cheers,
> 
> Malte

___
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: Refactoring is your friend / moving from 6.x to 9.x

2019-01-06 Thread Simon Knight via use-livecode
Richard,

Your are correct but Malte did ask ask about general refactoring (i think)  so 
I just mentioned my latest problem / finding.  As to the PDF “feature” itsself 
I think its now up to Edinburgh to decide what to do; I doubt that they 
intended to have Adobe menus and button bars popping up in their RevBrowser.

As to what members of this list can do the answer is to keep offering friendly 
help!  

best wishes

Simon Knight





> On 6 Jan 2019, at 17:27, Richard Gaskin via use-livecode 
>  wrote:
> 
> I didn't see Malte's mention of PDF in the post that began this thread, but 
> topic drift is a natural part of conversation so no worries.

___
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: Refactoring is your friend / moving from 6.x to 9.x

2019-01-07 Thread Simon Knight via use-livecode

> On 7 Jan 2019, at 08:16, Kay C Lan via use-livecode 
>  wrote:
> 
> And a spookily well timed questions; it's as if the late great Bill
> Marriot hearkens from the grave.  Bill was responsible for the focus
> that took a very flakey Revolution, create the RQCC and develop what
> is clearly a much more effective process for reporting, processing,
> tracking and ultimately eliminating Bugs.  For those who were there
> before Bill can attest, the Team these days does an extraordinary job
> of Bug reduction.  Not perfect but a lot lot better than before the
> RQCC.

I don’t think that I am acting as a relay from the other side… 

but I do agree that the team does an extraordinary job of bug reduction while 
adding features and keeping on top of all the changes to the list of OS’s that 
livecode runs on.

Simon Knight

___
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: Refactoring is your friend / moving from 6.x to 9.x

2019-01-08 Thread Simon Knight via use-livecode



> On 7 Jan 2019, at 17:00, Richard Gaskin via use-livecode 
>  wrote:
> 
> Perhaps the biggest flaw I've seen with v9 is the bug report tracking: the 
> Release Notes only include a subset of all issues addressed since work began 
> on it two years ago.  My understanding from conversations with team members 
> is that v9 may well have the largest number of resolved bugs of any release, 
> an amazing feat considering the scope of new features and feature 
> refinements, including huge strides forward with many aspects of performance.

I suspect that this is a fact of life especially in small teams.  My limited 
experience is that people who write code generally hate writing paperwork as 
they want to get on and complete the next task and not create documentation 
about the last.  Not forgetting that a lot of the paperwork generated by the 
big players is just shelf ware and no use to anyone except the manager who 
demanded it.

best wishes

Simon
___
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


Livecode Dictionary

2019-01-18 Thread Simon Knight via use-livecode
Hi all,

I have just read about two “issues” and both would be resolved or at least 
helped with a more detailed dictionary entry.  Now in the dim distant past the 
RunRev dictionary use to allow humble users to add comments and examples which 
I for one found useful.  Does anyone know why this useful feature was removed?  
Security ?



Simon Knight





___
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

Format text data records for processing in Livecode

2019-02-26 Thread Simon Knight via use-livecode
Hi,

I have written an Applescript that reads the headers and contents of selected 
emails in Apple Mail.  I am trying to decide to simplest method of importing 
this data into Livecode to allow it to be sorted and formatted etc.  Each email 
is a record with a number of fields the largest field is the contents of the 
email and this may contain quotes, tabs and other characters.  I aim to do the 
minimum in Applecript so I don’t wish to process the data but I can use any 
output format that I devise.

A record contains the following fields : DateSent; From; To; Subject and Content


Any ideas on a simple methodology of how to format the data so that it is 
simple to process using Livecode’s chunk expressions?

best wishes

Simon

___
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: Format text data records for processing in Livecode

2019-02-26 Thread Simon Knight via use-livecode

Some interesting ideas although I’m not sure why a changing separator is 
useful.  I generally attempt to stick with TSV but it won’t work in this case 
unless I parse the data to remove the tabs from the text, however I may well 
try this.  At the moment I’m trying to use a simple tagging system.  The 
AppleScript that creates the data looks like this:

-- build the data in a useful form to be read by Livecode
set tNewRec to "" & return
set tNewRec to tNewRec & "" & "Sent : " & tDateSent & 
"" & return
set tNewRec to tNewRec & "" & "From : " & tSender & 
"" & return
set tNewRec to tNewRec & "" & "To : " & tAddresseeList & 
"" & return
set tNewRec to tNewRec & "" & "Subject : " & tSubject & 
"" & return
set tNewRec to tNewRec & "" & "Content : " & tContent & 
"" & return
set tNewRec to tNewRec & "" & return

The final version will probably not add the closing tags as they seem 
unnecessary.  I have two routines that extract the fields and put them into an 
array, these make use of itemdelimiter.  It all works but the leading REC and 
FLD tags have to be ignored otherwise blank records and fields are processed.  
I think that replacing tabs and line returns in the source data and then saving 
as TSV will be simpler.

best wishes

Simon





___
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: Ken Burns Effects - acceleratedRendering

2019-06-01 Thread Simon Knight via use-livecode
I have only just resubscribed to the mailing list so may have missed some 
conversations on this subject, so I apologise for hijacking this thread.  

I am interested in this new to me layer mode of “container” being discussed 
here.  I see that it is also mentioned in “This week in Livecode” : Issue 
#179 here: http://bit.ly/2W8LU5x <http://bit.ly/2W8LU5x> . I did a google 
search for more information and found this page : 
https://livecode.com/container-layer-mode-examples/ 
<https://livecode.com/container-layer-mode-examples/>  which google reports as 
from 2017 but that may be in error.

I wonder if the web page I found refer to the same mode as is being discussed 
in this thread and are the details on the page correct?

best wishes 
Simon Knight





> On 31 May 2019, at 03:17, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Monte Goulding wrote:
> 
>At some point in the future we may support applying transformations to 
> dynamic layerMode objects (changing size and perhaps location) which would 
> mean Ken Burn effect would be done by the GPU. I suspect that’s a fair way 
> off and would definitely involve some serious Mark time ;-)
> 
> BR: that answers the question. So I'll need to learn on new language (html5) 
> and run it in a browser. :-(
> 
> 
> 
> ___
> 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: A question about openCard

2019-06-03 Thread Simon Knight via use-livecode
"Is there some simple way that an openCard handler can branch based on what 
card it is coming from?"

My solution would be to give each card a customprop named say “uCalledBy".  
Then when the app changes cards I set this prop e.g.

Set the uCalledBy of Card 42 to “HitchHikers”
Go to Card 42

Then in Card 42 ’s  opencard or anywhere else 

If the uCalledBy of me is “HitchHikers” then
   answer “Where is your towel?”
end if



Simon

___
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: $1,000 Bounty For LiveCode Bug 20240

2019-06-19 Thread Simon Knight via use-livecode
I had a look to see if I could reproduce this bug, I could not but I found 
another :

May be related to "Bug 20240 - Selecting Text With A Click and Drag of the 
Mouse in the Script Editor Does Not Always Select a Contiguous Block of Text"

I have just tried to reproduce the bug reported in report 20240 and failed.  
However, I found a problem that is repeatable and may be related:

https://quality.livecode.com/show_bug.cgi?id=22195 
<https://quality.livecode.com/show_bug.cgi?id=22195>

1.  Select a block of text in the IDE.
2.  Drag down to new location and drop : the text is moved.
3.  Go to edit menu and click 'undo' :  the dragged text is deleted - ouch!

I would expect the undo command to restore the text to its original location.

I am unclear as to the status of 20240 as it is marked as resolved yet there is 
discussion about it on the groups along with a bounty.


It may help the investigation into 20240,

Simon

Simon Knight
s...@anvic.net
Telephone : 01427 325911
Mobile : 07963 077071
Skype : jtidsskids





> On 18 Jun 2019, at 16:47, dsc--- via use-livecode 
>  wrote:
> 
> Whoops. That is a couple years old. I need to get my coffee.
> 
> 
>> On Jun 18, 2019, at 9:41 AM, Dar Scott Consulting via use-livecode 
>>  wrote:
>> 
>> A hint for bounty hunters:
>> It seems to me I have seen this outside of LiveCode. Perhaps the bug is a 
>> common one.
>> I'm on a Mac.
>> 
>> I don't trust my memory; YMMD.
>> 
>> 
>> 
>>> On Aug 14, 2017, at 5:38 PM, RunRevPlanet via use-livecode 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> Over at LiveCode Quality Control Centre (QCC) there is a Bug 20240 has been 
>>> a
>>> problem for me lately. 
>>> 
>>> I understand that a significant effort has been put into finding a fix over 
>>> the
>>> past years, but without success. The problem behaviour has been reported 
>>> before,
>>> my report is simply the latest one. And since it cannot be reproduced on 
>>> demand
>>> it is a tough one to solve.
>>> 
>>> There is a video of it at QCC at that shows what happens, if you have not 
>>> come
>>> across it yourself.
>>> 
>>> To encourage more eyes to look at the code, I have put up a bounty of 
>>> $1,000AUD
>>> to the individual who resolves the problem with a fix.
>>> 
>>> More details are in the bug report here:
>>> 
>>> http://quality.livecode.com/show_bug.cgi?id=20240
>>> 
>>> If you have any questions about the bug, or the bounty, I can answer them 
>>> here.
>>> 
>>> Note it is only Australian dollars, but depending on the exchange rate, or 
>>> where
>>> you live that might be a bonus?
>>> 
>>> Good luck! And I really hope to be able to reward someone with this money!
>>> --
>>> Scott McDonald
>>> http://thelivecodelab.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
>> 
> 
> 
> ___
> 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