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 


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


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: 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  . I did a google 
search for more information and found this page : 
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: 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

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

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

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


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


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 Intermediate 
Talking LiveCode 
 <>RevBrowser Now displays PDFs 
with Adobe Clutter 
“ and may be found here:

https://forums.livecode.com/viewtopic.php?f=9=31998=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 




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


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

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

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 
> <use-livecode@lists.runrev.com> 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: 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
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 
> <use-livecode@lists.runrev.com> 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-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