Re: problems with revdb_connect

2015-05-11 Thread Devin Asay

On May 9, 2015, at 3:50 PM, Inselfan  wrote:

> Good evening,
> 
> after a long long time, I'm back here :)
> 
> I'm still using LC 4.3.5, which is, like me a bit older but it works (like
> me) and I learned to handle the bugs there.
> 
> Since years I use 
> put revdb_connect ("mySQL","192.168.Y.XX","databasename","root",,,) into
> DB_ID 
> 
> which is doing what ist has to do. Since today I get an unexpected error: 
> 
> revdberr,invalid database type
> 
> in the programmers-version with the source code. Strange enough, it works
> with the same, but compiled code on the same computer
> 
> Does anybody has an idea, what is going on there and what I should
> control/test?
> 
> Thanks for your help and helpful ikdeas

Horst,

This may be a shot in the dark, but try “mysql” (all lower case) instead of 
“MySQL”. It shouldn’t matter, but some environments are case sensitive, not in 
the LiveCode environment, but on the server.

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Displaying Web Pages in a Field

2015-05-01 Thread Devin Asay

On May 1, 2015, at 6:41 AM, Gregory Lypny  wrote:

> Hi Devin Asay and Scott Rossi,
> 
> Thanks for responding.
> 
> Devin, what Scott says is true: for many of the files the tags continue to 
> appear in the stack’s field.
> 
> Scott, you mention a browser object. Where would I find it? I can’t find one 
> in the LiveCode’s Tools palette or under the Object menu. I’m developing a 
> desktop utility.

Gregory,

There is no icon on the tools palette you can drag onto the card. You have to 
instantiate it using a script. See the dictionary entry on revBrowserOpenCef. 
There is a script example there on how to create a browser instance.

There’s also a lesson on how to do it here:

http://lessons.runrev.com/m/2592/l/278115-create-a-browser-instance-within-your-app

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Displaying Web Pages in a Field

2015-05-01 Thread Devin Asay
Well, he did say he wanted the text files to look “something like they do in a 
browser”. That’s an easy way to at least be able to easily read the html text 
in a field. But you’re right, it’s not ideal for high-quality display.

Devin


On Apr 30, 2015, at 4:10 PM, Scott Rossi  wrote:

> Using htmlText may not render the page layout described in the HTML.
> You'd probably need to use the browser object and set the URL of the
> browser to the local file to see the page rendered correctly.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/30/15, 2:29 PM, "Devin Asay"  wrote:
> 
>> 
>> On Apr 30, 2015, at 2:31 PM, Gregory Lypny 
>> wrote:
>> 
>>> Hi everyone,
>>> 
>>> I¹m a little rusty, so please excuse the lame question. I have some
>>> text files that are downloaded web pages. How can I display them in a
>>> stack field to look something like they do in a browser, that is,
>>> without the HTML tags showing?
>> 
>> Gregory,
>> 
>> set the htmlText of fld ³myfld² to URL ³file:/path/to/file.html²
>> 
>> Devin
>> 
>> Devin Asay
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> 
>> ___
>> 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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Displaying Web Pages in a Field

2015-04-30 Thread Devin Asay

On Apr 30, 2015, at 2:31 PM, Gregory Lypny  wrote:

> Hi everyone,
> 
> I’m a little rusty, so please excuse the lame question. I have some text 
> files that are downloaded web pages. How can I display them in a stack field 
> to look something like they do in a browser, that is, without the HTML tags 
> showing?

Gregory,

  set the htmlText of fld “myfld” to URL “file:/path/to/file.html”

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Circle Progress Extension

2015-04-28 Thread Devin Asay

On Apr 27, 2015, at 11:23 AM, Trevor DeVore  wrote:

> Hi all,
> 
> The Extension Store tab in the Extensions Manager in LiveCode 8 seems a
> little sparse so I've added the first 3rd party extension to it. It is
> called "Circle Progress" and shows progress by filling in a circle.
> 
> It doesn't seem that you can update extensions yet so if you find anything
> wrong, tough :-) I've filed a bug report so hopefully that gets addressed
> soon.

So is submission of extensions to the Livecode store working now?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Plain text library stacks

2015-04-23 Thread Devin Asay
I’m curious—can these plain text stacks be used by LC Server just like a 
regular stack as a library?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Movie problems in LiveCode

2015-04-02 Thread Devin Asay

On Mar 31, 2015, at 3:14 PM, stgoldb...@aol.com wrote:

> 
> Yes, Devin, in using your script for Macintosh using LC 6.7 and higher:
> 
> set the filename of player 1 to the defaultFolder & "/media/mymovie.mov"
> 
> that appears to let the movie show after the standalone is transferred to 
> other Mac or Windows computers.
> I thank you for pointing that out. However, with that script, I am now unable 
> to see the movie in the stack prior to creating the standalone. 
> Any suggestion for that?  Thanks.
> 
> Stephen Goldberg

Stephen,

Yes, the defaultFolder is, by default, set to the folder where the LiveCode 
engine is located. That means that in standalones the defaultFolder is the 
folder where the .app bundle (on Macs) or .exe file (on Windows) is located. 
However, when working in the IDE the engine is the LiveCode application. Thus, 
in the IDE the defaultFolder is initially the folder containing the LC 
application, something like /Applications on my Mac, or C:\Program 
Files(x86)\RunRev\LiveCode on Windows. That means you need to do something 
different while working in the IDE.

In most of my projects I check the environment before setting the folder path 
for external media resources, similar to this:

  # In the script where I’m setting the filepath of the player (or image) 
object:

  set the filepath of player “myplayer” to mediaFolderPath() & 
“/media/mymovie.mov”

In the stack script I’ll include functions like this:

  function mediaFolderPath
put the environment into tEnv
if tEnv is “development” then
  return enclosingFolder()
else if tEnv is “standalone” then
  return the defaultFolder
else if tEnv is “mobile” then
  return specialFolderPath(“engine”)
end if
  end mediaFolderPath

  function enclosingFolder
set the itemDelimiter to “/“
return item 1 to -2 of the effective filename of this stack
  end enclosingFolder

There is one interesting wrinkle with setting the defaultFolder on Mac OS X 
that allows you to “hide” your media assets inside the .app bundle. If you 
choose to set the defaultFolder to enclosingFolder() in the standalone 
environment, the defaultFolder will be the ApplicationName.app/Contents/MacOS 
folder *inside* the .app bundle. If you choose NOT to set the defaultFolder in 
the standalone, it will remain, by default, the folder that encloses the .app 
bundle. Of course, if you choose to “hide” your media assets using this 
technique you must be sure to move them into the Contents/MacOS folder at build 
time. This is most easily done by using the Copy Files tab in the Standalone 
Application Settings.

(Some time ago I added a note regarding this "quirk"—I happen to think it’s a 
“feature”—of Mac OS X to the defaultFolder entry in the LC dictionary. You may 
also find that helpful.)

Regards,

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Movie problems in LiveCode

2015-03-30 Thread Devin Asay

On Mar 30, 2015, at 6:00 AM, stgoldb...@aol.com wrote:

> I do not know why we’re getting such different results. On Mac version 
> 10.9.5, using LC 7.0.3, if I write the following script in the openCard 
> handler:
> 
> on openCard
> set the filename of player 1 to “media/mymovie.mov”
> answer the filename of player 1
> end openCard
> 
> then, while the movie will show in the player, I get the absolute path as an 
> answer to the filename, rather than the relative path. This is confirmed by 
> opening up the movie player property inspector and finding the absolute path 
> in the fileName field (in my case, /Users/stephengoldberg/Desktop/Script 
> words/Media/myMovie.mov)

The behavior of player objects vis-a-vis  relative paths has definitely changed 
in 6.7 and higher, as detailed in the bug report I posted a few days back. 
(http://quality.runrev.com/show_bug.cgi?id=14435). There is apparently a fix of 
some kind due out in one of the next builds.

In the meantime, or perhaps as a best practice, it seems like instead of 
setting the players filename property to a relative path (which *should* work 
but doesn’t), you should do this:

  set the filename of player 1 to the defaultFolder & “/media/mymovie.mov”

Or use whatever full file path is appropriate:

  set the filename of player 1 to specialFolderPath(“Documents”) & 
“/media/mymovie.mov”


Interestingly, in my own development work, it turns out I always use this 
method, and like Jacque, don’t have the problem Stephen is reporting. But in my 
teaching I have often demonstrated the technique of setting the defaultFolder 
to say, the parent folder of the mainstack, and setting the filename property 
to a relative path, like Stephen does. It was as I was testing this technique 
for a recent class that I discovered the change in behavior, which broke this 
capability in 6.7.x

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: v8 and Widgets

2015-03-24 Thread Devin Asay

On Mar 24, 2015, at 10:16 AM, Bob Sneidar  wrote:

> I wasn’t able to see the webinar. Is there a link to it? Hopefully someone 
> posted it. 
> 

It’s on the LiveCode blog:

http://livecode.com/a-new-dawn/

Definitely worth a watch. It’s pretty exciting stuff.

Devin



Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Problems with movies in latest LiveCode versions

2015-03-21 Thread Devin Asay

On Mar 20, 2015, at 5:06 PM, stgoldb...@aol.com wrote:

> 
> The problem is the same regardless of whether the script mentioned below is 
> applied.  Namely, I can't get a
> player object to remember a relative path to a movie.  As soon as I try to 
> put a relative path into the player control
> LiveCode immediately changes it to an absolute path when using LiveCode 
> versions in the 6-7 series. I don't have this problem with
> the Image Area control. 
> It may help to see if other users are having the same problem.  I ask users 
> who are using LiveCode in the 6-7 series to see
> what happens if they place a player on a card and then try to put a relative 
> path to a movie into the player's property
> inspector.  Does LiveCode immediately change it to an absolute path? If other 
> users do not have this problem, 
> I'll have to look for some other problem at my end.  I have not had this 
> problem with Livecode 5.5.3.

Stephen,

I’ve noticed this, too, and reported it. See bug #14435 at 
http://quality.runrev.com/show_bug.cgi?id=14435. The last status update from 
the engineering team indicated that it is “AWAITING_BUILD”. It may help for you 
to add your comments to this bug.

I think the reason that it doesn’t crop up more may be that most people tend 
set the filepath of a player object as an absolute, rather than a relative, 
filepath. That is what I do most of the time, but on occasion I’ll just set the 
defaultFolder then set the filepath of the player to a relative path. The 
latter thing is what stopped working in 6.7 and later. 

I haven’t seen the fix come through yet, although I admit I have yet to 
download and test the latest 6.7.4 and 7.0.4 RC releases.

Regards,

Devin

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/


___
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: Interfacing with web services - advice needed

2015-03-16 Thread Devin Asay
Graham,

Here are some links to notes I use in my class for introducing students to the 
concept of web services in general and for how to access them in LiveCode. 
They’re written assuming no prior knowledge of web services. You may find 
something of interest.

Intro to Web Services Lesson Outline: 
http://livecode.byu.edu/internet/webServicesintro.php

Connecting to Web Services in LC: 
http://livecode.byu.edu/internet/webServices.php

Implementing a RESTful web service using GET—a case study: 
http://livecode.byu.edu/internet/getMethodSteps.php

Finally a couple of BRIEF intros to JSON and XML formatted data:
http://livecode.byu.edu/internet/json_intro.php
http://livecode.byu.edu/internet/intro_xml.php

HTH

Devin

On Mar 16, 2015, at 11:37 AM, Graham Samuel  wrote:

> I’ve been bothering this list about XML and arrays, for a geography project 
> I’m pursuing. I’m making progress. However, I’ve now come up against a new 
> issue which isn’t about LiveCode as such but which raises a fairly general 
> question, i.e.
> 
> I need to do a calculation (see the end of this mail if you want to know my 
> current need) - the calculation is a tricky algorithm which is in the public 
> domain and which relies on possibly large data sets which are also in the 
> public domain. I want to avoid coding the algorithm in LiveCode - or any 
> other language for that matter. 
> 
> If I wanted to do this calculation personally as a one-off, I would go to one 
> of a number of web sites that provide the calculation as a service, put in my 
> parameters and read off the result. Simple. Now I want to do the same thing 
> repetitively from within a LiveCode program. So I need a way to ’talk’ to one 
> of these web sites as if I was keying information in and reading it out - I’m 
> not expecting any special privileges like being given an more 
> machine-oriented API to work with. So the question is, how would I go about 
> coding this type of interaction? Has anyone done this recently? Are there any 
> tutorials? I must say I find it very daunting, and would love to be told 
> "it’s really quite easy”. Could be widget material, but I’m getting ahead of 
> myself.
> 
> Here’s hoping
> 
> Graham
> 
> For those who want to know, my current case involves a succession of points 
> on the Earth’s surface where I know each one's longitude and latitude: I want 
> to convert the intervals between these points to distances in metres (say). 
> This is a known problem, and AFAIK involves converting longitude and latitude 
> to UTM. Several academic and other web sites offer services. Once one has the 
> points in metres from some two-dimensional datum, it’s easy to calculate 
> distances. All the GPS-display systems do it, usually imposing the route on a 
> commercially available map and calculating how far you’ve travelled 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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Managing Sizes - Images in Mobile (was Mobile Template)

2015-03-12 Thread Devin Asay
Are you guys talking about the automatic Density Mapped Images feature that was 
introduced in 6.5? You just provide image assets at various resolutions with 
standard resolution tags appended to the filenames, and LiveCode automatically 
chooses the best resolution based on the resolution of the device.

See the tutorial at 
http://lessons.runrev.com/s/lessons/m/15262/l/156530-how-do-i-support-different-device-screen-densities.

Or am I completely missing the point of the question? (Wouldn’t be the first 
time.)

Devin


On Mar 10, 2015, at 5:06 PM, Ralph DiMola  wrote:

> I took the "ease the pain" path. I include 1 image that looks good on the
> best resolution device and then scale it down. I use the iPad Retina for my
> calculation. So if I want the image to take up say 70% of the card, I
> calculate the size so when it's taking 70% of a Retina screen it look good.
> Now when the image displays on a lower resolution device I scale it down to
> 70% of the current device size and place it where it needs to be. Now this
> has one big downfall.CPU time. If all there were was iOS then creating
> all the sizes for the Apple ecosystem would not be too bad although lots of
> work when the next gen comes out. With the veritable cornucopia of Android
> sizes I determined that it would be an impossible task to have images for
> all those resolutions. Now I did all this before there was rescaling in LC.
> Back in the day I got Jacque's "You have to roll your own rescaling" reality
> check. It's nice to see that rescaling is now in LC. I'm going to give a
> whirl soon.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Brahmanathaswami
> Sent: Tuesday, March 10, 2015 6:16 PM
> To: How to use LiveCode
> Subject: Managing Sizes - Images in Mobile (was Mobile Template)
> 
> Hmm... All this buzz about apps that scale everything for every rect, with
> CSS and HTML5 etc,
> 
> Certainly they are not placing a single instance of a rasturized image at
> 320 X 568 @ 72  and then expect that to scale up to 1024 X 768
> "automatically" and still look decent. Unless the laws of pixel physics have
> changed recently, I'm still thinking upscaled low res graphics will yield
> rancid results no matter what the framework. Am I mistaken? Even Apple's
> iBook Author software called for multiple images at different sizes...
> 
> Perhaps one path to "ease the pain" of multiple images could be
> 
> 1)  see how far you can take your design with vector objects so that scale
> relative to appearance is never an issue.
> 
> I need to test EPS more extensively and break open Adobe Illustrator's
> toolbox. Theoretically this get's us vector if you stay in vector (don't
> place jpgs)
> 
> "Importing an EPS file creates an EPS object on the current card."
> 
> should work big or small..
> 
> 2) For "single image instance" development, for raster art/photos... go the
> other direction: provide images to some larger rect at 150dpi and then when
> it scales down, it will look great  (untested).
> 
>  It seems to me the total "weight" of the app resources would be the same
> if you included 6 files at different resolutions, or just 1 image at a
> higher resolution that works for most  contexts. 7.0.3's boot time is a sad
> regression, but, once open LC's render time for a larger image into a
> smaller rect should not be a issue if the image is local  Am I daft?
> Different story of course if you are pulling from a remote server.
> 
> Is anyone else thinking/working in terms of this "single hi-res raster image
> instance" direction?
> 
> If so --  what seems to be good params for the optimal "single image
> instance" size and resolution for most devices?
> 
> Brahmanathaswami
> 
> Geoff Canyon wrote:
>>>> I'm working in 6.7.3, so (as far as I know) there's still some 
>>>> sort of  "build it at 320x568 and it will automatically scale up, 
>>>> but then you have  to provide double-size graphics, etc." thing going
> on.
>> 
>> 
>> fullscreenmode -- apparently in place since6.5.  I'm looking into it now.
>> 
>> gc
> ___
> 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: Fast-tracking LiveCode for beginners

2015-03-10 Thread Devin Asay

On Mar 10, 2015, at 10:45 AM, FlexibleLearning.com  
wrote:

> I am looking for a means to fast-track a client into the world of LiveCode
> programming.
> 
> Am considering Devin's "LiveCode University" course, and delivering it
> myself over a concentrated one week period for him in person.
> 
> Any comments or other suggestions?

I think that’s a great suggestion! ;-)

When I have students who I want to introduce to LiveCode in a hurry, especially 
those who have prior programming experience, I have them go through Units 3, 6 
and Unit 8, lessons 26 - 29. These should give a pretty thorough overview of 
LiveCode.

Regards,

Devin

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/




___
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: Rank Beginner Reference Materials

2015-02-27 Thread Devin Asay

On Feb 26, 2015, at 9:09 PM, Mike Kerner  wrote:

> It's been SO LONG since I've been a beginner in this family that I don't
> know what to recommend to someone who is starting from nothing.  We used to
> have Danny Goodman and The Waite Group's excellent resources, but those
> were for HC.  What would be a great resource to put in front of someone,
> today, to get them going in LC?

May I humbly suggest having a look at livecode.byu.edu. There is also LiveCode 
University: https://livecode.com/store/training/livecode-university/.

Devin

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/training/livecode-university/




___
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: [Datagrid] How to change an objects owner from a Datagrid to a Card

2015-02-26 Thread Devin Asay

On Feb 25, 2015, at 9:36 PM, Kay C Lan  wrote:

> My first real play with Datagrids and I have to say I'm very impressed.
> After sorting out the display and getting the first set of data into the DG
> (which all went very smoothly - much better than expected) I went to
> implement a Next and Previous buttons to move through chunks of data. To do
> this I duplicated the Next and Previous btns on a different Card and then
> using the Project Browser dragged the duplicates, one at a time, to the
> Card with the DG. Unfortunately, for reasons I can't explain, the Previous
> btn ended up on the Card, but the Next btn ended up as part of the DG.
> 
> I've now spent quite a lot of time trying to drag the Next btn out of the DG
> and onto the Card but with no success. The 'owner' is a read only property
> and there is no hint on how to scriptually achieve a change of ownership.
> 
> I'm looking at the Menu -> Object -> Ungroup Selected with fear and boding.
> Foolishly I didn't start my DG experiment with 2 fields and an image as per
> the online Lesson, but with 56 fields and some graphics in a rather complex
> split level display. Looking at the Application/Project Browser I see there
> are A LOT of objects associated with my DG that I didn't put there. So
> admitting I have no clue as to the internal workings of the DG the last
> thing I want to do is Ungroup Selected and have it all break.
> 
> Any help very much appreciated.

Kay,

Have you tried looking at the DG components in the Project Browser? It would 
allow you to see all of the internal components without ungrouping it. You 
should also be able to see the errant Next button and drag it out of the DG 
group.

HTH

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: QT and LC 5.5.5; Which LC should I update to?

2015-02-26 Thread Devin Asay

On Feb 25, 2015, at 9:11 PM, Charles Szasz  wrote:

> 
> I am currently using 5.5 to make Mac apps that do not employ QT. I am also 
> started using App Wrapper 3. I noticed that each app that I code signed for 
> the Mac I have to always to designate not to include QT as an exec.  
> 
> I received emails from Sam Rowland, the creator of App Wrapper about this 
> problem. He pointed out that the version of LC (5.5.5) has QT wired into this 
> version.  He suggested that since QT has been depreciated in OS X and depends 
> on Carbon that this will crash Mac apps. Although I have yet to have an app 
> crash on Mavericks, which I used for development, I am concerned about this 
> issue.
> 
> So here is my question:  Which LC version should I update to that is stable 
> and does not depend on Carbon? Again, I am not interested in QT or AV 
> Foundation since I do not use these in my apps.

Charles,

I’d go with the latest stable version of 6.7, since it has been more fully 
extricated from its dependence on QT. If you need unicode support go with 7.0.x

My $.02.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Unicode/keyDown

2015-02-18 Thread Devin Asay

On Feb 18, 2015, at 2:34 PM, Peter Haworth  wrote:

> Reading the bug report, it sounds like it was only fixed in 7.0 not prior
> releases..  Have you seen it work OK in releases prior to 7.0, Devin?

Whoops, yes, I missed that detail in your original post, that you were working 
in 6.6.2. To my knowledge the bug was never fixed prior to 7.x. I know that 
users were still reporting it in 5.5, for example.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Unicode/keyDown

2015-02-18 Thread Devin Asay

On Feb 18, 2015, at 2:14 PM, Peter Haworth  wrote:

> Continuing to implement unicode in an app using LC 6.6.2 and OSX 10.10.
> 
> I switched to the French keyboard to do some testing keying in French
> accented characters into text field and storing the data into an SQLite
> database.
> 
> Then I switched to the Greek keyboard.  The unicode/SQLite stuff still
> worked just fine but it appears that no keyDown message is sent when typing
> from the Greek keyboard into a text field. Tried rawKeyDown too but it
> didn't fire either
> 
> I haven't tried any other language keyboards but keyDown should happen no
> matter what keyboard is in use, shouldn't it?

Uh-oh. I hope this bug is not back…

http://quality.runrev.com/show_bug.cgi?id=3537

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Control Shift Graphic Bug Possible Cause

2015-01-29 Thread Devin Asay

On Jan 29, 2015, at 8:44 AM, Bob Sneidar  wrote:

> I’d love to tell you, unfortunately I cannot find the email they sent me 
> saying they had not heard from me in a while and were closing it. I also 
> discovered there is no way to view just the bugs I have filed. When I search 
> on my name I get No Bugs Found.
> 
Did you search on your email address? That’s how I always find mine.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Control Shift Graphic Bug Possible Cause

2015-01-28 Thread Devin Asay

On Jan 28, 2015, at 8:58 AM, Bob Sneidar  wrote:

> Hi all. 
> 
> I reported and filed a bug report about going to a card and having all the 
> controls shifted, and “holes” in the background graphic where the controls 
> should have been. I just noticed that sometimes because of the size of my 
> windows, my stack window positions will shift up to where the title bar is 
> behind the Toolbar. When this just happened I noticed the controls had all 
> shifted producing this bug. However, when I moved the window so that  the 
> title bar was no longer behind the toolbar, the window redrew correctly. 
> 
> Anyone having this graphic bug give that a try next t time it rears it’s ugly 
> head. 
> 

Bob,

What’s the bug number? It sounds similar to this one that I filed a few weeks 
ago: http://quality.runrev.com/show_bug.cgi?id=13883

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-27 Thread Devin Asay

On Jan 27, 2015, at 2:03 PM, Peter Haworth  wrote:

> Another quick question Devin.  Pre 7, you have to address the unicodeText
> property of an object to do this.
> 
> ]If I have a variable/custom property whose contents are unidecoded, how
> can I uniencode it into another variable since it has no unicodeText
> property?  Seems like I would need a hidden filed to act as an intermediary.
> 
> Maybe I just need to bite the bullet and use LC 7 for this project since it
> doesn't need to address the unicodeText property.  This for making my
> SQLiteAdmin program unicode capable.
> 

The way I ended up handling this most of the time in pre-7 was to store the 
unicode text in a custom property of the object, either as UTF-8 encoded text, 
or as HTML text. Neither of those approaches suffers from problems with 
endianness. It is true that for these approaches you often need to process the 
text through an intermediary text field.

LC 7 really is a wonder in terms of how seamless it has made using Unicode in 
the interface. It came with the slight cost of making text I/O a bit more 
complicated.

devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-27 Thread Devin Asay

On Jan 26, 2015, at 10:01 AM, Devin Asay  wrote:

> It would be great if there were a stack property we could set that would 
> specify what format outputted text would be. The default could be “native”; 
> i.e., the native encoding for the platform, but then we could set it to 
> things like “utf8” or “utf16” or “ISO”. It would essentially do the 
> textEncode/decode for us.
> 
> Is this an idea that appeals to folks here?

Of course, then I discovered that this property already exists! A global 
property called outputTextEncoding. But it is limited to output from Server. It 
would be nice to see that extended to all LC editions.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-27 Thread Devin Asay

On Jan 26, 2015, at 5:35 PM, Peter Haworth  wrote:

> Well I guess I spoke too soon :-)  When I said I had things working, I
> meant I could successfully get data from a UTF8 database and display it
> correctly.
> 
> I'm now trying to get input from field controls and get it into the
> database.  I found a lorem ipsum generator that would create text in
> various languages to I got some Russian text from it and pasted it into an
> LC field.
> 
> In my handler, I need to put the contents of the field into a variable and
> then hand it off from there to an INSERT statement. I've tried every
> combination of unicodeText, uniencode, unidecode, or none of the above to
> get the correct value into the variable but it either ends up as question
> marks or something that looks nothing like the characters in the field.
> 
> This is all with pre 7.0.  I think I'm beginning to understand why 7.0 is a
> lot better to use than pre 7.0 when heavy unicode handling is needed!
> 
> But in the meantime, how should I be handling the above situation in pre
> 7.0?
> 

Pete,

I’ve done this a lot pre-7. Here’s the relevant bit of code:

  put unidecode(the unicodeText of line 1 of fld “russStuff","utf8") into 
tRussTxt

At that point, since the text in tRussTxt is expressed in plain ASCII you can 
just INSERT it or UPDATE your database. To get it out again you reverse the 
process:

  set the unicodeText of fld “russStuff” to uniencode(tRussFldFromDB,”utf8”)

LC 7 of course simplifies this process, but you still have to 
textEncode/textDecode the text as you’re outputting/inputting it.

  put textEncode(the text of fld “russStuff”,”utf8”) into tRussTxt # prep for DB
  
  put textDecode(tRussFldFromDB,”utf8”) into fld “russStuff”  # display text 
from DB

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-26 Thread Devin Asay

On Jan 26, 2015, at 4:42 AM, Fraser Gordon  wrote:

> 
> On 26 Jan 2015, at 02:15, Peter Haworth  wrote:
> 
>> Thanks Peter.  If that's the case, I'm not seeing much in the way of a
>> coding advantage over pre 7.0.  Sounds like using textEncode/textDecode
>> instaed of uniencode/unidecode?
> 
> Assuming you have UTF-8 encoded data from a source outside LiveCode:
> 
> local tUTF8Data   — This is binary data
> local tString — This is a textual string
> put textDecode(tUTF8Data, “UTF-8”) into tString
> 
> The important difference is that uniEncode becomes textDecode - because you 
> are decoding some binary data to text. 
> 
> The big difference between 7.0 and previous versions is that Unicode text 
> works everywhere - you don’t need to use special Unicode properties or 
> commands any more.
> 
>> 
>> That does answer another question I had though which is what is needed if
>> the database is UTF-16 encoded.  Sounds like nothing needs to be done.  I
>> guess I'll have to set up some tests.
> 
> If your external data is UTF-16 you still need to textDecode it - if you 
> don’t, it will treat the data as 8-bit text and you’ll get corrupted text 
> back. This 8-bit default is necessary from a backwards compatibility point of 
> view - if we changed it to accept UTF-16 by default, anyone who gets text 
> from an external source and doesn’t textDecode it will suddenly find that 
> their stacks don’t work.
> 
> One way of looking at things is that all external interfaces (files, 
> processes, etc) return binary data and you need to do something to turn that 
> into text (textDecode) and you need to turn your text into binary data when 
> writing to them (textEncode). By using something like UTF-8 as an encoding, 
> it also avoids the problems that occur because the “native” encoding differs 
> between our platforms - it is MacRoman on OSX, CP1252 on Windows and 
> ISO-8859-1 on Linux.
> 
> Regards,
> Fraser


It would be great if there were a stack property we could set that would 
specify what format outputted text would be. The default could be “native”; 
i.e., the native encoding for the platform, but then we could set it to things 
like “utf8” or “utf16” or “ISO”. It would essentially do the textEncode/decode 
for us.

Is this an idea that appeals to folks here?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Record Audio in OS X and Windows

2015-01-20 Thread Devin Asay

On Jan 20, 2015, at 12:41 PM, JOHN PATTEN  wrote:

> Hi All,
> 
> Is the record audio feature currently broken in LiveCode (7.0.0)?
> 
> When I do this:
> 
> on mouseUp
>   set the dontuseQt to false
>   record sound file test.wav
>   answer the result
> end mouseUp
> 
> I get message “error 2 starting recording”
> 
> Thank you!

John,

This works for me in 7.0.2 RC1:

put “test.aif" into sndName

# make sure there's a name
if sndName is empty then 
  exit mouseUp
end if

set the dontUseQT to false
record sound file sndName


There have been a few audio-related bugs fixed in recent releases, so it may be 
that you’re experiencing one of those.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Project Browser... BAAAAD!

2015-01-17 Thread Devin Asay
On Jan 16, 2015, at 8:28 PM, Richard Gaskin  wrote:

> Bob Sneidar wrote:
> 
> > On Jan 16, 2015, at 15:42 , Richard Gaskin wrote:
> >
> >> I don't believe the Project Browser contains any code for saving.
> >> Are you using an auto-save plugin?
> >
> > No in fact I have gotten into the habit of using precious few
> > plugins. All I have right now besides the default plugins is
> > Datagrid Helper and TMAlign.
> 
> Well, if the Project Browser didn't save it, and you didn't save it, and your 
> plugins didn't save it, looks like we have a mystery to figure out what did.

Are you sure you didn’t inadvertently move the missing group inside another 
group? (Of course, this is going back to the original question, not the Mystery 
of the Saved Stack.)

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com


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


Re: Script to Generate Concurrent Times

2015-01-14 Thread Devin Asay

On Jan 13, 2015, at 10:21 PM, Brahmanathaswami  wrote:

> We are planning to do some webinars. I am looking for a liveCode script that 
> can read a time value on our web server and output a little array like:
> 
> Honolulu: 1:30 PM Sunday Jan 16
> San Franscisco 4:30 PM Sunday Jan 16
> Chicago 6:30 PM Sunday Jan 16
> Toronto: 6:30PM Sunday Jan 16
> New York:  7:30PM Sunday Jan 16
> Rio de Janeiro: 8:30PM Sunday Jan 16
> Perth: 7:30 AM Monday Jan 16
> Sydney: 11:30 Monday Jan 16
> 
> 
> etc.
> 
> Yes, I could probably find this as  JS/php script, but no, i don't want to do 
> that, as I'm a bit  crazy about trying to stay with LC!

Someone a few years ago showed me this; I can’t remember who.

In your .lc script do this:

put "US/Mountain" into $TZ # or whatever time zone you want to show
put shell("date") into tDTstring

Setting the $TZ variable right before called the date command returns the 
date/time the specified timezone. At least it works on the on-rev servers.

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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] I'm going to go live in a cave

2015-01-13 Thread Devin Asay
Better not let my light switches hear you say that. They might tell the garage 
door, and then things could get ugly.

Devin


On Jan 13, 2015, at 5:20 PM, Scott Rossi  wrote:

> Actually, the cell phone charger is the key logger.  The lightbulbs are web 
> cams.
> 
> Regards,
> 
> Scott Rossi 
> Creative Director 
> Tactile Media, UX/UI Design 
> 
> On Jan 13, 2015, at 4:04 PM, J. Landman Gay  wrote:
> 
>> Well then, your lightbulbs just logged that.
>> 
>> On 1/13/2015 5:58 PM, Scott Rossi wrote:
>>> Dude, it’s not cyberspace any more.  It’s the Internet of Things :-)
>>> 
>>> Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> On Jan 13, 2015, at 3:30 PM, J. Landman Gay  
>>> wrote:
>>> 
>>>> Wireless USB charger logs keystrokes:
>>>> 
>>>> <http://www.theregister.co.uk/2015/01/13/this_10_phone_charger_will_wirelessly_keylog_your_boss/>
>>>> 
>>>> Cyberspace gets more disgusting every day.
>>>> 
>>>> --
>>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> 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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Crash-a-lot just became critical

2015-01-09 Thread Devin Asay

On Jan 9, 2015, at 11:30 AM, Devin Asay  wrote:

> 
> On Jan 9, 2015, at 11:03 AM, J. Landman Gay  wrote:
> 
>> On 1/9/2015 8:02 AM, Peter M. Brigham wrote:
>>> Are people saying that in some newer versions of LC the mouseEnter
>>> message is not sent to the control being entered but rather directly
>>> to the stack?
>> 
>> No, that part behaves as it always did. Controls receive mouseEnter 
>> normally. Previous versions of the Mac engine did not send the message to 
>> the card or stack if there was no control under the mouse though. In LC 7 it 
>> does. Apparently it always did that on Linux, so the behavior was specific 
>> to the platform.
>> 
>> You can test by creating a new stack without any controls, just a blank 
>> card. Put a mouseEnter handler into the card or stack script. Move the mouse 
>> into the stack window. In LC 6.x nothing will happen. In LC 7 the handler 
>> will execute.
> 
> It looks like that change actually happened in LC 6.7. In 6.5 no mouseEnter 
> is sent if there is no control object under the mouse. Starting in 6.7 a 
> mouseEnter is sent to the card even if there is no control object under the 
> mouse. Is this possibly an effect of the switch to Cocoa?

Sorry, the second sentence in the paragraph above should say “In 6.5 *and 6.6* 
no mouseEnter is sent…”



Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Crash-a-lot just became critical

2015-01-09 Thread Devin Asay

On Jan 9, 2015, at 11:03 AM, J. Landman Gay  wrote:

> On 1/9/2015 8:02 AM, Peter M. Brigham wrote:
>> Are people saying that in some newer versions of LC the mouseEnter
>> message is not sent to the control being entered but rather directly
>> to the stack?
> 
> No, that part behaves as it always did. Controls receive mouseEnter normally. 
> Previous versions of the Mac engine did not send the message to the card or 
> stack if there was no control under the mouse though. In LC 7 it does. 
> Apparently it always did that on Linux, so the behavior was specific to the 
> platform.
> 
> You can test by creating a new stack without any controls, just a blank card. 
> Put a mouseEnter handler into the card or stack script. Move the mouse into 
> the stack window. In LC 6.x nothing will happen. In LC 7 the handler will 
> execute.

It looks like that change actually happened in LC 6.7. In 6.5 no mouseEnter is 
sent if there is no control object under the mouse. Starting in 6.7 a 
mouseEnter is sent to the card even if there is no control object under the 
mouse. Is this possibly an effect of the switch to Cocoa?

This seems like an important and disruptive change.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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 7.0.1: Move is smooth!

2015-01-09 Thread Devin Asay

On Jan 8, 2015, at 5:05 PM, Mark Talluto  wrote:

> On Jan 8, 2015, at 12:44 PM, Mark Talluto  wrote:
> 
>> Hello.  
>> 
>> Just wanted to make a public statement about the move command on 7.0.1. We 
>> made a really simple game called Dropper:  
>> http://livecloud.io/dropper-game-updated-source-and-standalone/
>> The standalone engine we used in the last update was around 6.1.3.  We just 
>> tested the same game, no code changes in 7.0.1. The ball drops really 
>> smoothly now. In previous engines, the ball dropped with a jerky like 
>> movement.
>> 
>> We will update the standalones on our site later today. You can download the 
>> source and try it on various versions of LC and see for yourself.
>> 
>> Nice work on that aspect of the engine LiveCode team!
> 
> This feels weird replying to my own email.  Had some response from this via 
> direct email and thought I would make it even easier to see the difference.  
> Here is a video for your enjoyment.
> https://www.youtube.com/watch?v=wjXHt8MqYNY

Hi Mark,

Oddly enough I can’t see a difference in the video, but I can clearly see that 
the ball motion is much smoother on my system in 6.7.x vs. 6.5.2.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-07 Thread Devin Asay

On Jan 7, 2015, at 2:58 PM, J. Landman Gay  wrote:

> On 1/7/2015 2:55 PM, Devin Asay wrote:
>> This finally allows us to position button label text on top of icon images!
> 
> Yes, but you have to wonder about the mindset of the engineer who decided 
> this was "gravity" instead of "position". I'm afraid if I use this property 
> all my icons will suddenly become very serious.

Wow, that’s heavy.

D

Devin Asay
Office of Digital Humanities
Brigham Young University


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

2015-01-07 Thread Devin Asay

On Jan 7, 2015, at 1:43 PM, Bob Sneidar  wrote:

> That IS interesting.
> 
> Bob S
> 
> 
> On Jan 5, 2015, at 16:02 , Eric Corbett 
> mailto:e...@canelasoftware.com>> wrote:
> 
> Cool new button property I discovered finally (new to me anyway).
> 
> Any way to set the iconGravity to left, the textAlign to left and have the 
> label start next to the icon without having to add spaces in front of the 
> label?
> 
> Thanks,
> 
> - Eric

How did I miss this?! I read all the release notes. 

This finally allows us to position button label text on top of icon images!

It’s like a late Christmas present! (Well, technically it was early, but I 
didn’t unwrap it until now.) :)

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: 7.0.1 Loops Sounds on a Mac (whether you want to or not)

2015-01-07 Thread Devin Asay

On Jan 7, 2015, at 9:09 AM, Ray  wrote:

> My Mac is running 10.7.1.  The script is just two lines:
> 
> on mouseUp
>   wait until the sound is done
>   play [wavFilePath]
> end mouseUp
> 
> This works for the first click but a second click and the sound loops.  This 
> only shows up on a Mac.
> 
> The documentation regarding looping is kind of confusing.  It says it 
> specifies whether a movie "or sound" loops, but looping is a property of a 
> player, something not usually used when simply playing sound file.
> 
> Ideas?

Ray, this is a known bug that has been addressed for the next release of 6.7.x 
and 7.0.x. http://quality.runrev.com/show_bug.cgi?id=14269

Regarding your handler, typically it doesn’t make sense to use ‘wait until the 
sound is done’ until after you issue the ‘play’ command. In the order you’ve 
written it, the first time the script runs there is no sound playing so ‘the 
sound’ function returns ‘done’ immediately and goes on to the next line. If you 
then invoke the mouseUp handler again BEFORE the sound is finished playing ‘the 
sound’ will return the name of the audio clip being played. The referenced bug 
then takes over and begins playing the sound in an infinite loop.

There is a form of the ‘play’ command that allows you to loop independently of 
a player object:

  play [path to audio file] looping

HTH

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: building cross-platform Windows and Mac

2015-01-05 Thread Devin Asay

On Jan 5, 2015, at 3:53 PM, william humphrey  wrote:

> I noticed that √ which is a checkmark on Mac-OS is | a pipe symbol on Windows.
> 
> Is there a font I can choose on my design that will work the same on
> Windows and Mac?
> 
> I hope I don't have to put a bunch of "check which platform and do
> this or that".  I assumed the font characters were the same and I'm
> kind of surprised.

The Unicode character for checkmark is U+2713 (decimal 10,003), so if you’re 
using LC 7 just be sure to use that code point in your field. However, even in 
pre-v.7 you can set the character as an html unicode entity:

  set the htmltext of fld 1 to "✓”

HTH

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: Code 2014 - Vote for LiveCode

2014-12-31 Thread Devin Asay
You can delete your tweet then retweet with the proper case. Whew! Too much 
rhyming in that sentence.

DNA

On Dec 31, 2014, at 6:14 AM, Richmond  wrote:

> On 31/12/14 12:37, Peter W A Wood wrote:
>> Richmond
>> 
>> Well tweeted, well almost well tweeted. You vote hasn’t been counted yet 
>> although it does appear in the list of “votes” when you click on the 
>> LiveCode circle.
>> 
>> You tweeted Livecode. Had you tweeted LiveCode or livecode you vote would 
>> have been counted. I’ve made a request for Livecode to be treated as 
>> LiveCode (by submitting a pull request on Github). If it is accepted your 
>> vote will get automatically added to the total. I am very hopeful that the 
>> request will be accepted but we will need to wait until America goes to work 
>> to find out.
> 
> Cripes: the rubicon was lost because of a lowercase letter!
> 
> Richmond.
> 
>> 
>> So that you can have a good rant about the software that counts the votes.  
>> It was written in Ruby and seems to use case-sensitive comparison.
>> 
>> Regards
>> 
>> Peter
>> http://LiveCode1001.blogspot.com <http://livecode1001.blogspot.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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Code 2014 - Vote for LiveCode

2014-12-29 Thread Devin Asay
Heh. You can tell I’m a really experienced Twitter-er. :-/

Devin

On Dec 29, 2014, at 5:33 PM, Peter W A Wood  wrote:

> Hi Devin
> 
> It’s probably because your tweets are private. We can’t see you tweets and I 
> guess neither can #Code2014.
> 
> Regards
> 
> Peter
> 
> 
>> On 30 Dec 2014, at 08:24, Devin Asay  wrote:
>> 
>> Odd that there are five tweets mentioned but the count on the chart is only 
>> 4. I see Richard, Mike, myself, Colin and Peter.
>> 
> 
> 
> ___
> 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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Code 2014 - Vote for LiveCode

2014-12-29 Thread Devin Asay
Odd that there are five tweets mentioned but the count on the chart is only 4. 
I see Richard, Mike, myself, Colin and Peter.

On Dec 29, 2014, at 5:19 PM, Mike Bonner  wrote:

> I'm there too
> 
> On Mon, Dec 29, 2014 at 5:14 PM, Devin Asay  wrote:
> 
>> Just discovered that.
>> 
>> On Dec 29, 2014, at 5:12 PM, Colin Holgate  wrote:
>> 
>>> The circles are clickable. Richard also Tweeted.
>>> 
>>> 
>>>> On Dec 29, 2014, at 7:07 PM, Devin Asay  wrote:
>>>> 
>>>> Sure enough, it’s there now. Bottom center of the chart, showing four
>> users who have reported it. Me, Colin, Peter. Who else? Shouldn’t take much
>> to move it in front of languages like Swift with 25.
>>>> 
>>>> Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Code 2014 - Vote for LiveCode

2014-12-29 Thread Devin Asay
Just discovered that.

On Dec 29, 2014, at 5:12 PM, Colin Holgate  wrote:

> The circles are clickable. Richard also Tweeted.
> 
> 
>> On Dec 29, 2014, at 7:07 PM, Devin Asay  wrote:
>> 
>> Sure enough, it’s there now. Bottom center of the chart, showing four users 
>> who have reported it. Me, Colin, Peter. Who else? Shouldn’t take much to 
>> move it in front of languages like Swift with 25.
>> 
>> Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Code 2014 - Vote for LiveCode

2014-12-29 Thread Devin Asay
Sure enough, it’s there now. Bottom center of the chart, showing four users who 
have reported it. Me, Colin, Peter. Who else? Shouldn’t take much to move it in 
front of languages like Swift with 25.

Devin


On Dec 29, 2014, at 4:51 PM, Colin Holgate  wrote:

> We’ll know soon I guess, I voted for two languages that weren’t listed yet.
> 
> 
>> On Dec 29, 2014, at 6:47 PM, Peter W A Wood  wrote:
>> 
>> Colin
>> 
>> It says the list updates every 10 minutes on the website … but from last 
>> year I suspect that there may be some manual intervention to add a language 
>> to those listed.
>> 
>> Regards
>> 
>> Peter
>> 
>> 
>>> On 30 Dec 2014, at 07:44, Colin Holgate  wrote:
>>> 
>>> Seems to be a comma separated list of the languages you’ve done. Not sure 
>>> how long the page takes to update.
>>> 

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: I Hate the New Color Picker

2014-12-08 Thread Devin Asay
Yup, it’s a Cocoa thing. Not there in 6.6.x on Yosemite. Magically appears when 
you invoke the color picker in 6.7.x.

Devin


On Dec 8, 2014, at 3:34 PM, Geoff Canyon  wrote:

> Here's mine in 6.6.2, which is the closest I have to 6.6.5. It has two
> rows, no matter how I resize it. I wonder if the international aspect is a
> factor here?
> 
> https://www.dropbox.com/s/ahqcye1nmp3jn2r/Screenshot%202014-12-08%2017.32.53.png?dl=0
> 
> On Mon, Dec 8, 2014 at 5:18 PM, Roger Guay  wrote:
> 
>> Aha, the thought plickens! I’m running Yosemite 10.10.1 and find the dot
>> appearing in LC 6.7.1 (rc2)  but NOT in LC 6.6.5 nor in 6.7.

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: BBEdit Language Module for LiveCode

2014-12-03 Thread Devin Asay

On Dec 3, 2014, at 12:39 PM, J. Landman Gay  wrote:

> Clicking the "Download ZIP" button works, thanks. I was one of the people who 
> couldn't load the original in BBEdit under Mavericks, but the last two 
> versions have worked fine for me so I think you can probably remove that 
> warning in the Read Me. Maybe. I think.
> 
> Nice to see some syntax coloring in this one, thanks for doing that. If 
> anyone knows how to fix the small folding glitches, that'd be great.

Ditto what Jacque said. This is so great to have and makes editing .lc files in 
BBEdit much nicer! 

Ben or Swami, do you know if it’s possible to add folding for repeat loops and 
if-then structures? It would sure be nice to collapse log, nested if-thens to 
get a sense of the whole handler or script flow. 

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: shared group loses buttons & scripts when changing cards

2014-11-24 Thread Devin Asay

On Nov 24, 2014, at 4:39 PM, J. Landman Gay  wrote:

> On 11/24/2014, 4:14 PM, Dr. Hawkins wrote:
>> On Mon, Nov 24, 2014 at 10:44 AM, J. Landman Gay 
>> wrote:
>> 
>>> The symptoms sound like the button(s) aren't really in a group, they are
>>> at the card level. Or alternately, there are copies of the group on
>>> different cards rather than a single group being placed on multiple cards.
>>> If either case is true, editing one will open a new editor tab (because
>>> it's a different object,) and deleting one won't delete it from other cards.
>> 
>> 
>> I'd agree with those symptoms, but that's not what is happening.  I
>> actually rebuilt this stack a few weeks ago, importing all of the cards to
>> get the group.  And when I move it, it tends to stay moved on other cards.
>> 
>> Also, if I make a change to a script, go to another card, and come back,
>> the change is gone even on that card.
>> 
>> It's kind of like there's a "noSave" on the group, so that all changes go
>> "poof!" when leaving the card.
>> 
>> 
> 
> I see. That sounds like either the card or the stack has cantModify set to 
> true.

What she said.

D

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Re; Unicode menu and script characters changing unexpectedly

2014-11-21 Thread Devin Asay

On Nov 21, 2014, at 5:08 AM, Graham Samuel  wrote:

> Just FYI, I just got this from the mother ship. I was under the impression 
> that the system property
> 
> the stackFileVersion
> 
> showed the file format (7.0 or earlier) of the currently open stack. It 
> doesn’t: all it shows is the format that any new stack will have when created 
> in the IDE. To find out what format your stack actually has, I quote Neil 
> Roger who was kindly writing to me about a stack that was puzzling me (see my 
> earlier mails with the above subject line):
> 
>> The easiest way to show this is by opening your stack in a text editor and 
>> looking 
>> at the first 8 bytes of data. In the case of your stack, it returns 
>> REVO5500. 
>> If the stack was in the 7.0 format, it would be REVO7000.
> 
> When I switched from LC 6.x series to 7.x, I assumed my ‘saves’ would save in 
> the new format. They didn’t. That explains a lot. I suppose everyone else 
> here already knows that you have to do a ‘Save As…’ to get the new format - 
> but just in case…

And don’t forget this setting in Preferences > Files and Memory: /_/ Preserve 
stack file version on stacks saved in legacy format.

DNA


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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 Server on DreamHost?

2014-11-21 Thread Devin Asay
Thanks, Scott and Richard, for working this out. Can these notes be included in 
the READ ME file/installation instructions for LC Server/Linux?

Devin


On Nov 20, 2014, at 6:48 PM, Scott Rossi  wrote:

> Thanks to the patient generosity of our fearless Community Leader Richard
> Gaskin, between us we were able to determine the combination of .htaccess
> files needed to get LCserver working on DreamHost under Ubuntu (at least
> for my situation).  As a few others have noted, the most basic setup is
> more or less like what Stephen Barncard and Andre Garcia came up with some
> time ago:
> 
> Domain [folder]
>.htaccess
>cgi-bin [folder]
> .htaccess
> drivers [folder]
> externals [folder]
> livecode-server
> 
> Domain root .htaccess file contents:
> AddHandler livecode-script .lc .irev
> Action livecode-script /cgi-bin/livecode-server
> 
> 
> cgi-bin folder .htaccess file contents:
> Options ExecCGI
> SetHandler cgi-script
> 
> (³livecode_server² can be replaced with ³livecode-community-server²)
> 
> 
> <<<<<<<<<<<<<<<
> 
> After I received some conflicting information from DreamHost tech support,
> Richard was able to determine that the second htaccess file in the cgi-bin
> folder is required to make things work (this is probably what most others
> already have in their domains).
> 
> I don¹t know what¹s needed if anything for PHP processing, but in my case
> some root level directives (mentioned below) that used to work fine under
> the old servers break certain pages of my site on the current servers, so
> some more experimenting may be needed to get that working.  But at least
> LCserver is running again.
> 
> Many thanks Richard!
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 11/18/14, 10:50 AM, "Richard Gaskin"  wrote:
> 
>> stephen barncard wrote:
>> 
>>> With all due respect - the problem here is getting livecode and php to
>>> execute together in the same domain space (where we might want some
>>> Wordpress pages AND livecode. This is my problem as well.
>> 
>> Thanks.  Somehow I missed the reference to PHP requirements in Scott's
>> message.
>> 
>>> The htaccess magic words that used to allow this with PHP 5.2 don't
>>> work any more...
>> 
>> IIRC the notice I got from DH said they've upgraded to PHP 5.3.  I don't
>> spend enough time with PHP to know what differences may affect shared
>> hosting.
>> 
>> Here's the link they provided for PHP assistance in their upgrade notice
>> from Nov 5:
>> <http://wiki.dreamhost.com/PHP.ini#Upgrading_your_site_.28if_you.27re_movi
>> ng_to_Ubuntu_from_Debian_servers.29>
>> 
>> 
>>> - some syntax has changed either with PHP, Apache, or
>>> the use of Ubuntu vs Debian.
>>> 
>>> Options +ExecCGI FollowSymLinks
>>> AddHandler livecode-script .lc .irev
>>> AddHandler php-script .php .htm .html
>>> DirectoryIndex index.irev index.lc index.php index.html
>>> Action livecode-script
>> /cgi-bin/livecode-server/livecode-community-server
>>> 
>> 
>> Is it necessary to declare special handling for PHP when declaring
>> special handling for other file types?  I'd thought PHP support was a
>> given on DH's shared hosting accounts, handled in Apache2.config at the
>> server level.
>> 
>> To double-check what I had originally understood from Scott's post
>> (looking at LC alone without PHP), I put a fresh install of LC Server v7
>> on a new DH host and after setting permissions it was up and running
>> with just two lines in .htaccess, the AddHandler and the Action defining
>> that handler.
>> 
>> Given the prevalence of PHP, I doubt DH's requirements for the upgrade
>> involve much work - they'd be overloaded with support requests if they
>> didn't give some good thought to backward compatibility with people's
>> existing configs.
>> 
>> Normally there's no conflict between any combination of CGIs mentioned
>> in .htaccess as long as they don't mix file extensions.
>> 
>> So I'll bet that once we pin this down, we'll have an "a ha!" moment in
>> which the solution is simpler than what it may seem right now.
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> __

Re: Play stop not working in LiveCode 7

2014-11-21 Thread Devin Asay

On Nov 21, 2014, at 5:20 AM, stgoldb...@aol.com wrote:

> 
> I'm using  LC 7.0.0 Community Edition build 10014 on my Mac system 10.9.5. 
> I wanted to upgrade from LC 5.5.3, on which everything worked well, to 7.0, 
> but the "play stop" code stopped working in 7..0.0.
> In addition, the following command does not work in a list field in 7.0.0:
> find whole tholder in field "code"
> which normally finds the word (holder) in field "code" on a different card.
> I then downloaded LC 6.6.5 community edition.  The commands mentioned above 
> work well in 6.6.5, but the stack I was working on is now corrupted after 
> having worked in LC 7.0.0.  Fortunately, I had a backup.
> Any suggestions would be appreciated. For the present, I'm staying with 
> 6.6.5.  Thanks.

The file format changed in LC 7, and if you save a stack in 7 then try to open 
it in an earlier version, it is reported as being corrupted. (This is a 
misleading error message that has been corrected in the latest RC of 6.7.) If 
you open the stack in 7 and do Save As… then choose to save it as “Legacy Stack 
5.5", it should open fine in earlier versions. 

HTH

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Play stop not working in LiveCode 7

2014-11-20 Thread Devin Asay

On Nov 20, 2014, at 3:14 PM, stgoldb...@aol.com wrote:

> When playing an audioclip, the command
> 
> play stop
> 
> correctly stops the audioclip from playing in LiveCode 5.5.3.  However, I 
> find the command does not work for me in Livecode 7.0.  Does anyone know why, 
> or have a suggestion for getting around this, perhaps with a different 
> command?  Thanks.
> 

Stephen,

Which version of LC 7 do you have? In one of the DPs play stop was broken. 

http://quality.runrev.com/show_bug.cgi?id=12946

If it’s not working in the latest release there may have been a regression bug 
introduced.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: BBEdit Language Module for LiveCode

2014-11-18 Thread Devin Asay

On Nov 17, 2014, at 7:15 PM, Kay C Lan  wrote:

> Hi Ben,
> 
> Yes it is fortuitous that the Livescript language has similarities to
> LiveCode. Who knows, maybe you innocent blunder and polite retreat may
> cause a few Livescripters to find out what the heck LiveCode is... and be
> pleasantly surprised that it's something they really like.

So after the confusion, is there now a separate github account set up for the 
BBEdit-LiveCode language module? I’m looking for it but can’t find it.

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: sound recording 6.7 and 7.0

2014-11-12 Thread Devin Asay

On Nov 12, 2014, at 10:12 AM, Serge Brami  wrote:

> since LC6.7 all my scripts using record sound doesnt work any more
> I work on a mac pro and yosemite
> 
> i have tried setting the dontuseqt prop to false  but it is the same 
> recording is impossible 
> if i go back to lc 6..6 everything is ok 
> 
> recording sound is a main key of my app so for me it is a big problem
> 
> any idea ?

It works for me on Mavericks with LC 6.7.1. I wonder if it is a Yosemite 
problem? Does QuickTime still come installed with Yosemite?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: ANN: MasterLibrary

2014-11-06 Thread Devin Asay

On Nov 6, 2014, at 11:54 AM, Mike Doub  wrote:

> Thanks Peter,
> 
> Good Catch.   I never even thought about password protected stacks.   As soon 
> as I figure out how to tell if a stack is protected, I will put out an update.
> 

Mike,

I ran into the same thing. I just added an IF-THEN to the get_other_stacks 
function:

if the password of stack x is empty then
if the script of stack x is empty or \
  lineoffset ("-- Library Routines Below", the script of stack 
x) <> 0 then
put x & return after thelist
end if
end if

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: ANN: MasterLibrary

2014-11-06 Thread Devin Asay

On Nov 6, 2014, at 12:31 PM, Mike Doub  wrote:

> Version 5 is now available.  It checks to see if a stack is password 
> protected and if so, it ignore it.

You beat me to it, I see. :)

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Possible bug in LC6.7 - maybe one for Mark Schonewille?

2014-10-31 Thread Devin Asay

On Oct 30, 2014, at 9:30 PM, Richard Gaskin  wrote:

> Peter Haworth wrote:
> > Late to this one but there is indeed a new property named "status"
> > which is why your script now fails.  Unfortunately, can't tell what
> > it's used for since there's no dictionary entry for it.  About to
> > file a bug report for that.
> 
> Please do - thanks.
> 
> Searching for "status" in the v7 Release Notes it seems that it's now a 
> property of the new player widget.

This kind of thing is a good argument for using a form of Hungarian Notation 
when naming variables and custom properties. I myself was just bit by this in 
LC 6.7 and 7.0. There was new property added—the editionType—which reports 
which edition, community or commercial, you are using. Unfortunately I had been 
using a property of that name for the last couple of years in a project. I went 
back and duly renamed it to [myProjectPrefix]_editionType and now the universe 
is happy again.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Naive Unicode question # 107

2014-10-28 Thread Devin Asay

On Oct 28, 2014, at 10:59 AM, Graham Samuel  wrote:

> If I had a very large keyboard capable of typing a wide range of Unicode 
> characters (characters not on the keyboard of my normal computer), could I 
> type them directly into an LC script? Would I need to be running LC7? How 
> would the display of the script look - on a Mac, on a PC? I know a few people 
> are working with Japanese, Sanskrit etc, so maybe someone has the direct 
> experience to answer this. LC7 isn't really working for me at present so it 
> would be nice to know before I start modifying my scripts to get serious 
> about Unicode.

Graham,

LC 7 is “unicode anywhere”. That means you can type unicode in the script 
editor, the message box, property inspector fields, etc., and LiveCode knows 
what to do with it.

So in a script you can use:

  put “привет” into fld “foo” # Cyrillic inside quotes

and it just works.

You can even use Unicode in variable names and object names, and it just works.

Magic.

Regards,

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: Can anybody play a midi file on LiveCode 7?

2014-10-24 Thread Devin Asay

On Oct 24, 2014, at 8:15 AM, Trevor DeVore  wrote:

> On Fri, Oct 24, 2014 at 10:14 AM, Colin Holgate  wrote:
> 
>> I see your confusion. 7.6.6 is the current version of QuickTime Player 7,
>> and 10.4 is the current version for QuickTime Player X.
>> 
>> Under the hood, QuickTime is at 7.7.3, which is what LiveCode sees.
> 
> 
> Ah. Thanks for clearing that up for me.

Now I’m confused. I thought LiveCode 7 didn’t use QT at all any more, but 
instead a custom player object that uses AVFoundation.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: use-livecode Digest, Vol 133, Issue 15

2014-10-09 Thread Devin Asay

On Oct 9, 2014, at 12:52 AM, BNig  wrote:

> Peter wrote:
> 
>> Bernd has finally got the better of my curiosity and I checked out
>> outrange.com. The homepage has this little gem: 
>> 
>> "Today, companies are facing strong competition. Only companies which
>> effectively communicate with their customers can be successful. Effective
>> communication means being able to deliver meaningful and accurate
>> information in a personalized manner for each invdividual." 
>> 
>> :-) 
> 
> 
> mwieder wrote
>> Peter-
>> 
>> That's a different Bernd.
>> 
>> -- 
>> -Mark Wieder
> 
> I would like to point out that it is NOT thisBernd :)

if thisBernd is not thatBernd then
   focus on the effective Bernd
else
   focus on nothing
end if

D

Devin Asay
Office of Digital Humanities
Brigham Young University


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


Re: getting a section cross-platform without utf

2014-09-26 Thread Devin Asay
On Sep 26, 2014, at 2:20 PM, Dr. Hawkins  wrote:

> On Fri, Sep 26, 2014 at 11:19 AM, Richmond 
> wrote:
> 
>> 
>> Put numToChar(167)
>> 
> 
> I just tried that on a mac.  I think what it gave me was a german esset,
> the double s that looks like a beta . . .
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462

Richard,

You can use htmlText. Have you tried:

  set the htmltext of fld 1 to "§”

Works for me here on 5.5.4.


Devin



Devin Asay
Office of Digital Humanities
Brigham Young University


___
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


Constraining window dimensions proportionally while resizing

2014-09-23 Thread Devin Asay
Hi all,

I just posted this question on stackoverflow. But I thought I’d ask it here 
where I think I’ll get some great answers, and hopefully a good answer can get 
posted back to stackoverflow to make the answer more widely accessible to web 
searches.

In a LiveCode project I want the end user to be able to resize a window, but I 
want the window proportions -- the ratio of the width to the height -- to 
remain the same during the resize operation. I have tried various approaches, 
but none was satisfactory, often giving erratic performance. What is the best 
way to resize a stack window and constrain it proportionally?

I feel like I may be missing something really obvious. It wouldn’t be the first 
time. 

Thanks,

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: HyperCard Basics

2014-09-18 Thread Devin Asay
Here it is again, with the actual link included. :-P

On Sep 18, 2014, at 1:03 AM, Richmond  wrote:

> Perhaps . . . if I can find the time, I'll make a merry little list of all 
> the keyboard shortcuts.


Here’s my list of LC keyboard shortcuts. Tell me if I’m missing anything, and 
I’ll add it.

http://livecode.byu.edu/helps/shortcuts.php

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: HyperCard Basics

2014-09-18 Thread Devin Asay

On Sep 18, 2014, at 1:03 AM, Richmond  wrote:

> Perhaps . . . if I can find the time, I'll make a merry little list of all 
> the keyboard shortcuts.


Here’s my list of LC keyboard shortcuts. Tell me if I’m missing anything, and 
I’ll add it.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: [ANN] modified Table Field 0_2_9

2014-09-17 Thread Devin Asay

On Sep 17, 2014, at 11:01 AM, BNig  wrote:

> Hi Devin,
> thank you for your kind words.
> If you have a feature request I am open to add functionality to
> modTableField (on or off list)

One feature of dataGrids which I didn’t notice in your table field: the ability 
to hide columns. Is that something you have in mind? Or perhaps it already does 
it, but I just didn’t notice.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: [ANN] modified Table Field 0_2_9

2014-09-17 Thread Devin Asay

On Sep 17, 2014, at 6:28 AM, BNig  wrote:

> here a version of modifiedTableField that makes use of the new LC7 RC1
> feature of text aligning columnar data. You can now right align a column.
> 
> Columns can be hidden.
> 
> Works with 6.13 up, best with 6.6.2. Obviously columnar text alignment needs
> LC7.
> 
> 
> http://www.berndniggemann.on-rev.com/modTableField/modTableField_0_2_9New.livecode
> 
> watch for linebreaks in url

This is superb, Bernd! Most of my datagrid use is for tabular data, and this 
does almost everything needed for tabular data. Thanks for this.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


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

2014-09-12 Thread Devin Asay
Works for me, too, on 7.0 RC 1 on Mavericks.

Devin

On Sep 12, 2014, at 4:55 PM, Paul Hibbert  wrote:

> Works fine for me in LC 7.0(rc1) on OS X 10.8.5 - I can drag it around too.
> 
> It's a really cool idea, thanks for sharing.
> 
> Paul
> 
> 
> On 2014-09-12, at 3:49 PM, Scott Rossi  wrote:
> 
>> Hmm.  I just tested in RC1 and the animation seems to work fine, but
>> dragging the window around the desktop is still screwed up (from past bug
>> report).
>> 
>> Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>> 
>> 
>> 
>> 
>> On 9/12/14 3:29 PM, "J. Landman Gay"  wrote:
>> 
>>> On 9/12/2014, 4:05 PM, Scott Rossi wrote:
>>>> Unlike the Lone Ranger's mask, you can animate the window's mask, just
>>>> for
>>>> fun.
>>>> 
>>>> I got inspired since I haven't done one of these in a while.  Execute
>>>> the
>>>> following your message box:
>>>> go url "http://www.tactilemedia.com/download/animated_mask.livecode";
>>>> 
>>>> Once the window loads, look for the teeny checkbox at the top of the
>>>> window to start the animation.
>>>> 
>>>> IMPORTANT: The window mask contains regions of 100% transparency, so if
>>>> you click in any of these regions, you will click through the window and
>>>> onto your desktop.  Use the "handles" provided around the outer edges of
>>>> the window to drag it around your desktop.
>>>> 
>>>> Have a fun masked Friday.
>>> 
>>> 
>>> Your stuff is so cool. Works great on 6.6.2, my eyes glazed over and I
>>> started to get hypnotized. I could hear your soothing voice murmuring,
>>> "you feel slepy...you want to give me your bank account numbers..."
>>> 
>>> Fortunately I was able to disengage and decided to try it on LC 7.0,
>>> where it does nothing. My meager fortune has been retained, but you
>>> should probably tell RR about the failure anyway.
>>> 

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Orientation Support Mobile

2014-09-08 Thread Devin Asay

On Sep 8, 2014, at 12:32 PM, J. Landman Gay  wrote:

> On 9/8/2014, 12:39 AM, Ralph DiMola wrote:
>> 2. The resizestack message is sent before the card is rendered 
>> (orientationchanged message is sent after).
> 
> I thought it was the other way around and the orientationChanged message 
> should really be called "orientationAboutToChange".

Or "preOrientationChange" to maintain consistency with the "open" messages, 
openCard-preOpenCard, etc.

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Should "dispatch" be extended for timers?

2014-08-29 Thread Devin Asay

On Aug 29, 2014, at 6:58 AM, Trevor DeVore 
 wrote:

> On Tue, Aug 26, 2014 at 10:09 PM, Richard Gaskin > wrote:
> 
>> 
>> Is there some reason I've overlooked as to why "send" allows timers but
>> "dispatch" doesn't?
> 
> 
> I don't know if there is a reason dispatch doesn't have timers, but what if
> "send" was just updated to support "with"? If "with" was present then we
> could do this:
> 
> send "someCommand" to someObject with param1, param2 in 10 milliseconds
> 
> The thing is, dispatch is useful if A) you want to know if the command was
> handled, B) you want to send a message and you don't care if it is handled
> (the engine doesn't report an error if "someCommand" isn't defined
> anywhere), or C) you want to call a command/function outside of the message
> path. I see this as a much improved version of the 'send "someCommand"'
> form of 'send'.
> 
> Given how dispatch works, I see 'send is' as being what you use if you want
> to execute some code after the current event loop has finished executing.
> The downside is that the syntax stinks. But if the syntax were updated so
> that it supported the same form as dispatch then I think it would be great.
> I imagine the engine could also improve the speed to be on par with
> dispatch as the engine would know that "someCommand" wouldn't contain any
> variables that had to be processed (e.g. "someCommand param1, param2").

+1

I've often thought 'send [command] with [params]' would be a great enhancement. 
There's always a little apprehension and confusion over whether the variable 
names in quotes in 'send [command param,param]' will be parsed properly.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Why doesn't menupick work

2014-08-21 Thread Devin Asay

On Aug 21, 2014, at 5:02 AM, revolut...@duncansoftware.on-rev.com wrote:

> On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote:
>> Why doesn't  this code work?
>> 
>> on menuPick pItemName
>>   go card pItemName
>> end menuPick
>> 
>> where the comboBox has a list of card names.
> 
>>> Set a breakpoint at the "go" line and when it pauses, see what's in 
>>> pItemName and whether there's a card with that name. You can also 
>>> temporarily add "answer the result" after the "go" statement; maybe 
>>> there's a silent error happening.
> 
> Thanks for everyone's suggestions but...
> I tried setting a breakpoint and pItemName contains the name of a card. 
> However when I tried "answer the result" the response is
> "No such card".
> When I use the message box "Put the name of card 1" it reports
> card " 1 External  Dorsal ~"
> which seems to be saying that "card" is part of the name.
> I tried various methods of adding card to the pItemName such as
> put "card" && quote & pItemName & quote into pitemName
> 
> go pItemName
> 
> or 
> 
> go card card pItemName
> 
> but these also failed and reported "No such card."
> 
> The spaces and tilde in the card name is not the problem.
> There are 75+ cards and many do not have extra spaces and tildes.
> 
> If I just type into the message box
> go card " 1 External  Dorsal ~" it goes to the card.

Two things to check:

1. In your last code example there is a space at the beginning of the card 
name. Is that accurate? Is the space actually in the name of the card, and if 
so, is the space included in the list of names in the combo box?

2. Use 'the short name' property to get just the name of the card (or whatever 
object you’re referring to), without getting the object type information.

HTH

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com


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


Re: Two quick questions:

2014-08-20 Thread Devin Asay

On Aug 20, 2014, at 2:51 AM, Devin Asay  wrote:

> 
> On Aug 19, 2014, at 11:47 PM, Paul D. DeRocco  wrote:
> 
>> 1) What's the simplest way to test if running under the LC IDE versus as a
>> standalone?
>> 
>> 2) For a Mac standalone, how do I get the full path of the .app file,
>> which is actually a directory? I'm trying to get the standalone to find a
>> custom external .bundle which is actually contained inside the .app file.
> 
> Paul,
> 
> Re #2:
> 
> In a Mac standalone the defaultFolder property will return the path to the 
> .app file. If you want the path to the executable inside the bundle, use the 
> filename of the stack and chop off the last item. I often include a function 
> like this:
> 
> function parentFolder
> get the filename of this stack 
> set the item delimiter to slash
> return item 1 to -1 of it
> end parentFolder

Of course that should be

return item 1 to -2 of it


___
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: Two quick questions:

2014-08-20 Thread Devin Asay

On Aug 19, 2014, at 11:47 PM, Paul D. DeRocco  wrote:

> 1) What's the simplest way to test if running under the LC IDE versus as a
> standalone?
> 
> 2) For a Mac standalone, how do I get the full path of the .app file,
> which is actually a directory? I'm trying to get the standalone to find a
> custom external .bundle which is actually contained inside the .app file.

Paul,

Re #2:

In a Mac standalone the defaultFolder property will return the path to the .app 
file. If you want the path to the executable inside the bundle, use the 
filename of the stack and chop off the last item. I often include a function 
like this:

function parentFolder
get the filename of this stack 
set the item delimiter to slash
return item 1 to -1 of it
end parentFolder

That works in the traditional Mac OS X environment; once we have to start using 
sandboxed apps we may be able to get that info using 
specialFolderPath(“engine”), as you can now on iOS.

HTH

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com


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


Re: the effective me?

2014-08-06 Thread Devin Asay

On Aug 6, 2014, at 8:05 PM, Mark Wieder  wrote:

> Devin-
> 
> Wednesday, August 6, 2014, 1:19:41 PM, you wrote:
> 
>> With only a little bit of metaphysical angst. :)
> 
> My brain still twists itself into knots trying to deal with "this me".
> What if I want to refer to "that me" or "the other me" or "the me next
> door" or "the me that used to be"? Obviously "this me" is different
> from "me", and that doesn't make my brain hurt any the less.
> 
> So much for the arguments about LC being "natural language" code.

It makes perfect sense to me, as illustrated by this conversation I recently 
had with myself:

me: I don’t get ‘this me’ stuff. It makes no sense.

this me: What do you mean? It’s perfectly clear.

me: Who are you?

this me: I’m the other me that lives in your head, Precious.

me: Now you’re creeping me out.

this me: False, tricksy livecodeses!

me: Go away!

this me: [crickets]

me: Ah! Finally, the world makes sense again.


:)

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com


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


Re: the effective me?

2014-08-06 Thread Devin Asay

On Aug 6, 2014, at 2:09 PM, "J. Landman Gay" 
 wrote:

> On 8/6/2014, 2:56 PM, Devin Asay wrote:
>> 
>> Struggling with who I really am,
> 
> It was "this me" and it's in there. I thought it was silly at the time, and 
> yet, it's does describe it correctly and no one could think of a better term. 
> And I had to use it yesterday and it works.

Wow! It works. I just did this in my behavior button:

before mouseDown
  set the colorOverlay of me to the colorOverlay of this me
end mouseDown

With only a little bit of metaphysical angst. :)

You're right, Jacque, weird but strangely satisfying.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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


the effective me?

2014-08-06 Thread Devin Asay
Hi folks,

Did this discussion ever get resolved? If you need to refer to properties of a 
button that holds a behavior script, is there any way to override the meaning 
of 'me'? Normally 'me' in a behavior script refers to the object that is 
executing the behavior script.

We had a long discussion a few months back about referring to parent behaviors, 
and one of the tongue-in-cheek(?) suggestions was 'the effective me'. But how 
could one refer to the button holding the behavior script? 'the real me'?

Struggling with who I really am,

Devin, just me

Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: Add a control to a group

2014-08-01 Thread Devin Asay
Thanks, Paul and Mark. As usual, there are many ways to skin that cat.

Devin


On Aug 1, 2014, at 4:41 PM, Paul Hibbert  wrote:

> Hi Devin,
> 
> Yet another approach…
> 
>   create invisible image "snapShot" in group "myGroup"
>   export snapshot from group "or_Whatever" to image "snapShot"
>   set the visible of img "snapShot" to true
> 
> Paul
> 
> On 2014-08-01, at 3:36 PM, Mark Schonewille 
>  wrote:
> 
>> Hi Devin,
>> 
>> You could export a snapshot to a variable, create an image object in the 
>> group and set the text of the image.
>> 
>> export snapshot from rect myRect to myPicture as PNG
>> create image "New Image" in grp "Your Group"
>> set the text of it to myPicture
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
>> 
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>> KvK: 50277553
>> 
>> Installer Maker for LiveCode:
>> http://qery.us/468
>> 
>> Buy my new book "Programming LiveCode for the Real Beginner" 
>> http://qery.us/3fi
>> 
>> LiveCode on Facebook:
>> https://www.facebook.com/groups/runrev/
>> 
>> On 8/2/2014 00:27, Devin Asay wrote:
>>> 
>>> On Aug 1, 2014, at 4:02 PM, Mark Schonewille 
>>> 
>>> wrote:
>>> 
>>>> Hi Devin,
>>>> 
>>>> Usually I copy them and then I delete the original:
>>>> 
>>>> copy btn id x to grp y
>>>> delete btn id x
>>>> 
>>>> Probably you could also write a script to cut the control, edit the group 
>>>> and paste the control in the group. This wouldn't require creating a copy 
>>>> and deleting the original, but it might look strange when this happens and 
>>>> if something goes wrong, you lose your control :-)
>>> 
>>> 
>>> Thanks, Mark. Right after I posted this I started experimenting with that 
>>> technique and it looks promising. I just thought there might be a more 
>>> direct way to do it.
>>> 
>>> I just found this from the list in Nabble, from Klaus:
>>> 
>>>  create button in group "foo"
>>> 
>>> But that won't work for me, because I am taking a snapshot then adding it 
>>> to the group. I think I'll use Mark's suggestion.
>>> 
>>> 
>>> Regards,
>>> 
>>> Devin
>>> 
>>> 
>>> Devin Asay
>>> Learn to code with LiveCode University
>>> http://university.livecode.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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Add a control to a group

2014-08-01 Thread Devin Asay

On Aug 1, 2014, at 4:02 PM, Mark Schonewille 
 wrote:

> Hi Devin,
> 
> Usually I copy them and then I delete the original:
> 
> copy btn id x to grp y
> delete btn id x
> 
> Probably you could also write a script to cut the control, edit the group and 
> paste the control in the group. This wouldn't require creating a copy and 
> deleting the original, but it might look strange when this happens and if 
> something goes wrong, you lose your control :-)


Thanks, Mark. Right after I posted this I started experimenting with that 
technique and it looks promising. I just thought there might be a more direct 
way to do it. 

I just found this from the list in Nabble, from Klaus:

  create button in group "foo"

But that won't work for me, because I am taking a snapshot then adding it to 
the group. I think I'll use Mark's suggestion.


Regards,

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.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


Add a control to a group

2014-08-01 Thread Devin Asay
I know I've seen this before, but I can't find it now.

You can group objects with the group command: group obj a and obj b

But how do you add an object to an existing group (through scripting not in the 
IDE)?


Devin Asay
Learn to code with LiveCode University
http://university.livecode.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


Key shortcuts in popup menus?

2014-07-31 Thread Devin Asay
Can popup menus have keyboard shortcuts in them. My experimentation says "no". 
I hope I'm wrong.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: One day left

2014-07-31 Thread Devin Asay
$395,326!!! 

What happened, did you search under your couch cushions?

:)

Devin


On Jul 31, 2014, at 9:59 AM, Kevin Miller 
 wrote:

> Most gripping.
> 
> Folks there will be a delay of a few minutes between 5PM and the very last
> pledges appearing in the stats. The manual ones take a few seconds to put
> through each. Nothing like the last minute! We should have the results in
> by 5 or 10 past I would think.
> 
> Kind regards,
> 
> Kevin
> 
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can code
> 

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: One day left

2014-07-30 Thread Devin Asay

On Jul 30, 2014, at 3:45 PM, "J. Landman Gay" 
 wrote:

> On 7/30/2014, 11:52 AM, Peter Haworth wrote:
>> I don't need HTML5 right now
>> but I am concerned that it sounds like the matching funds from this
>> campaign are needed to keep the original Kickstarter goals on track
>> according to one of Kevin's emails.
> 
> That's what I was thinking too.

Almost to 75% of the total now. Time to dig deep, folks!

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Richmond buys an iMac G5

2014-06-19 Thread Devin Asay

On Jun 19, 2014, at 12:36 AM, Richmond 
 wrote:

> 75 Euros, currently running Mac OS 10.5.8 and smoking; may later partition 
> and install Xubuntu
> on the second bit - especially if the chaps down in the engine room do what 
> they said they would do
> with the Livecode source code.
> 
> Could somebody tell me which is the last version of Livecode
> that will work on Mac PPC?
> 
> Could there be some sort of overt sign to that affect on the downloads page.

In the release notes for LC 6.6.2 it says OS X 10.5.8 for Intel and PPC is 
supported. I believe 10.5 and PPC support had to be dropped in LC 6.7 in order 
to do the Cocoa conversion.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Learning about server

2014-06-11 Thread Devin Asay
Great site, Simon! I've bookmarked that link for when I talk to my classes 
about LC Server. So far I've only got a *very* cursory set of introductory 
notes that I've used in classes and workshops. 

http://livecode.byu.edu/internet/lc_servercripting.php
http://livecode.byu.edu/internet/lc_server_notes.php

In addition to your notes on installing Server, I also remember that Keith 
Clarke posted some instructions a couple of years back for installing it on OS 
X and OS X Server. Unfortunately, his links seem to be dead.

On Feb 16, 2011, at 3:08 PM, Keith Clarke  
wrote:

> Hi folks,
> I promised to publish some notes on the above - new to blogging as well as 
> LiveCode and OSX server, so I hope they help a bit:
> • OSX Server vs Regular OSX considerations: 
> http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-vs-osx.html
> • Configuring OSX Server for revServer: 
> http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-snow-leopard.html
> • RevServer and OSX Server Custom sites: 
> http://blog.clarityforsuccess.com/2011/02/configure-osx-server-custom-site-for.html
> Best,
> Keith..

Anybody have live links to this? You still out there Keith?

I'd love to see more how-to materials for LC Server. I would definitely buy a 
book if it came to be.

Devin


On Jun 10, 2014, at 1:49 PM, Simon Smith  wrote:

> Thanks, much appreciated.
> 
> Only put it live a few minutes ago, there is no time like the present and
> if I don't do it now - then I probably never will. It is also a great
> motivation to work on it and try to complete everything that is missing.
> 
> Simon
> 
> 
> On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin 
> wrote:
> 
>> Simon Smith wrote:
>> 
>> Writing a book would be a mammoth task - and I for one, would not be
>>> certain just how large a target market there would be, so they would truly
>>> be a labour of love :)
>>> 
>> 
>> It would indeed.  I've known enough people in the book business that I
>> stay with software. :)
>> 
>> 
>> But for now - this is something I have been dabbling with,
>>> http://activethought.net/livecode-server/ its far from complete and
>>> hopefully not to many errors and spelling mistakes. It is probably a bit
>>> on
>>> the simple side - but if it helps one person, then I would be happy.
>>> 
>> 
>> Nice, Simon!  I hadn't come across that before - well done.
>> 
>> I just sent that URL to Heather to forward to the Web team so it can be
>> added to the Resources page at LiveCode.com.  Hopefully we'll see it linked
>> there soon - good resource, thanks for putting that together.
>> 
>> 

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Wikipedia "UUID"

2014-06-02 Thread Devin Asay

On Jun 2, 2014, at 7:13 PM, Roger Eller  wrote:

> I added "LiveCode", but had no supporting information to include.

A little farther down the list on that page there is an entry for 
Revolution/RunRev:
"The libUUID library[35] A library that generates UUIDs of type 1 (time based), 
type 3 (name-based) and type 4 (random-based). Version 1.0. by Mark Smith. OSL 
3.0”

The link in the footnote is broken, however. If anyone has a working link these 
two entries could probably be consolidated and the link updated.

Devin

> On Jun 2, 2014 6:36 PM, "Richard Gaskin" 
> wrote:
> 
>> Anyone here have time to add LiveCode to the "Implementations" section?:
>> 
>> <http://en.wikipedia.org/wiki/Universally_unique_identifier#
>> Implementations>
>> 

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com


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


Re: RELEASE: LiveCode 6.6.2-rc-4

2014-05-29 Thread Devin Asay
Mike,

It sounds like the same bug that Trevor reported earlier in the thread.

Devin

Sent from my iPhone

> On May 29, 2014, at 6:47 PM, "Mike Kerner"  wrote:
> 
> Anyone else seeing that the line number area in the script editor is too
> narrow?  I can only see up to 99.  After that, just tens and ones show.
> 
> Bug 12568
> 
> 
> On Thu, May 29, 2014 at 2:01 PM, Trevor DeVore 
> wrote:
> 
>> The issue here is that the formattedWidth for fields is returning an
>> incorrect value in 6.6.2 rc-5.
>> 
>> http://quality.runrev.com/show_bug.cgi?id=12563
>> 
>> --
>> Trevor DeVore
>> Blue Mango Learning Systems
>> www.screensteps.com-www.clarify-it.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
> 
> 
> 
> -- 
> 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: RELEASE: LiveCode 6.6.2-rc-4

2014-05-29 Thread Devin Asay
On May 29, 2014, at 9:03 AM, Chris Sheffield 
 wrote:

> Anyone else seeing goofy display issues in the Project Browser in RC5? Fields 
> look like they’re on top of each other or cut off in some cases. Seems to 
> function normally otherwise. If others are experiencing it, I’ll file a 
> report. If not, I’ll troubleshoot some more and figure out what’s going on. 
> Didn’t see this issue with RC 4, however.

Chris,

Yep, I'm seeing something similar. Labels of fields are overlapping the values 
the fields, and the blue round rects that display the number of script lines 
seem "squished".

See https://www.dropbox.com/s/jhse1089855uzyr/ProjBrowserAnomalies.png

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Handler is being ignored: Why?

2014-05-23 Thread Devin Asay
Paul,

Could it be that the ids of the controls in your backscripts stacks are not 
resolving properly? This causes problems with behaviors that are stored in 
other stacks. See http://quality.runrev.com/show_bug.cgi?id=8993

Devin


On May 23, 2014, at 1:09 PM, Paul Dupuis 
 wrote:

> I have a command "thisCommand" that calles a 2nd command "thatCommand"
> which is in a btn script inserted as a backscript. So
> 
> on startup
>  -- some stuff
>  insert script of btn "thatCommandButton" of stack "myBackscripts" into
> back
>  -- some more stuff
> end startup
> 
> btn "thatCommandButton" contains
> 
> on thatCommand pArg1, pArg2
>  -- some stuff
>  answer pArg1 && pArg2
> end thatCommand
> 
> and finally my main script
> 
> on thisCommand
>  -- do a bunch of stuff
>  thatCommand arg1, arg2
>  -- more stuff
> end thisCommand
> 
> The symptom I am running into is that "thisCommand" never calls
> "thatCommand" I can set a breakpoint in the debugger and step line by
> line. When it gets to "thatCommand arg1, arg2" it steps right over it
> (like it was a singel statement rathet than a handler that it should
> step into) instead of INTO it and the command is never invoked. That
> seems to imply that it recognizes that the handler "thatCommand" is
> defined but is not executing it. I have checked to make sure that
> lockMessages is false. I have put the backScripts into msg to verify
> that the script is present in the backscripts. If I replace thatCommand
> with a fake handler name, LC throw a proper handler "not found error"
> 
> Does the order backscripts are inserted matter? thisCommand is actually
> also in a backscript that is inserted BEFORE the script containing
> "thatCommand"?
> 
> _______
> 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

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Image cache question

2014-05-22 Thread Devin Asay

On May 22, 2014, at 2:26 AM, Phil Jimmieson 
 wrote:

> Hi Devin,
> if you have more than one reference to the same image, then you'd presumably 
> have to set all of their filenames to something else, then the old image 
> would be removed from the cache, but yes - what I'm doing is just setting the 
> filename of the image to empty and then back to the filename of the (now 
> modified) image on disk and LiveCode loads that newly modified image into its 
> image cache and displays it. I agree that the documentation should say 
> something about this - I had no idea that was how this worked and spent a 
> while looking for something that would flush the cache etc. etc. before 
> posting here and getting the very helpful response from Ben.

I've added a note to the dictionary about removing an image from the cache. It 
is submitted "pending approval". Anyone at RunRev monitoring this nowadays?

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Making the content of LC Server Scripts Safe

2014-05-22 Thread Devin Asay

On May 21, 2014, at 10:31 PM, Nakia Brewer 
 wrote:

> Afternoon all,
> 
> As I venture down the road of learning what the wonders of LC Server scripts 
> can do I find myself wondering how safe are the content of these scripts.
> Being completely new to Web and Server development it's probably a silly 
> question but for example:
> 
> I have a LC Server script that is called from a mobile testing app that 
> records the devices location into a MySQL Database using $_GET params.
> In the LC Server Script file resides all my connection details for my 
> database etc.
> 
> So, what stops someone from accidentally stumbling across that URL and 
> getting the content of that file?
> 
> Or am I completely not understanding?
> 
> Sorry in advance :)

As John said .lc files are parsed by the server and only the output is visible 
to the browser. But I'm like you, when storing things like MySQL login 
credentials I'm nervous about saving them in plain text, even in a .lc file. So 
I take the extra step of storing the credentials in an encrypted form in a file 
separate from the .lc script that calls it. Then I have the .lc script read in 
and decrypt the login credentials before logging in to the MySQL server. It may 
be overkill and one extra step, but most hackers go for the low-hanging fruit. 
I figure this makes it harder, so the bad guys will just move on to other 
targets.

My $.02.

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Writing to Mum in Glagolitic script

2014-05-21 Thread Devin Asay

On May 21, 2014, at 11:31 AM, Richmond 
 wrote:

> On 21/05/14 18:19, Devin Asay wrote:
>> Have you tried out the prerelease of LiveCode 7? I'm really curious how your 
>> projects will work with it. My understanding is that all of the arcane, 
>> language-specific glyph munging rules are handled transparently (or will 
>> be). I've fiddled with it a bit with Cyrillic, and one of my students and I 
>> experimented with Arabic. The results with Cyrillic were perfect (although 
>> just typing Russian has never been problematic in LC, moving text around and 
>> looking at chunks of text required lots of hoop-jumping. Arabic and other 
>> RTLS still have some problems, but they're light years ahead of what we've 
>> had before.
>> 
>> These are things we ought to hammer on during the Global Jam Richard 
>> announced last week. LC 7 I think will be a huge step forward for those of 
>> us who use Unicode.
> 
> Devin,
> 
> No, I haven't for 2 reasons:
> 
[snip]

> However; "just for fun" (which, in my books at least, is the best reason to 
> do this sort of thing<0, if
> I can find the time this coming weekend, I will try with my PISMO programs, 
> and then, if that works,
> at a lter date with my Devawriter.
> 
> However; as I understand things the problems associated with languages that 
> do not write in a
> straightforward RTL or LTR way will not be sorted out; my Devawriter will 
> still need all its
> sub-routines to arrange letters:
> 
> Consider the Sanskrit word "Karma"; I type in k - a - r - m - a and the 
> output has to be:
> 
> 'kamra' (which is read and pronounced 'karma').
> 
> Similarly with the word "hindi": I type h - i - n - d - i and the output has 
> to do this:
> 
> i - h - i - (nd)  where '(nd)' is a "funny letter" (conjunct consonant) 
> formed when a 'n' knocks up
> against an 'h'.
> 
> I have not found the Unicode system in versions of RR/LC from 2 to 6.7  a 
> source of difficulty;
> in fact, far from it, they have been a source of great joy as I have been 
> able to successfully
> been able to carry my Sanskrit thing "off".
> ---
> 
> "glyph munging rules" (what a whacked-out phrase; lovely) may be there; but 
> certainly not for
> Sanskrit unless one uses exactly the half-cocked halant system that others 
> use that does not
> do the writing system any favours; and certainly not for a writing system 
> that has to access thousands of additional characters in the Personal Private 
> Use areas of the Unicode system that are specific to
> my specialist fonts.
> 
> ---

Interesting. So it sounds like nobody handles Sanskrit properly. Now, knowing 
next to nothing about Devanagari (the point of Devawriter, right?) I threw 
together a stack in LC 7 DP3 and chose my Devanagari - QWERTY keyboard. Sure 
enough, it types in characters I don't recognize, but I don't see any 
transformations happening in the way you describe. I've probably completely 
missed the point, but I'm interested in what works and what's lacking in LC's 
unicode implementation. Or maybe it's unicode itself that's lacking, if no 
other applications get it right either. 

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Image cache question

2014-05-21 Thread Devin Asay
On May 21, 2014, at 8:08 AM, Phil Jimmieson  wrote:

> Hi Ben,
> thanks. That works perfectly. No complicated commands or anything.
> 
> On 21 May 2014, at 15:01, Benjamin Beaumont  wrote:
> 
>> Hi Phil,
>> 
>> This was discussed by the team at the time. There is no special handling
>> for the changing of images currently referenced by the cache. I spoke to
>> one of the engineers and he suggested unsetting the reference to the image
>> as the cache will release images that no longer have a reference. Reseting
>> the filename will cause the image the be recached in it's new form.
> 

Phil, Ben,

Do you mean all you have to do is set the filename property of the image to 
empty, then set it to the external file reference again? The dictionary ought 
to be updated, or a note added, to alert users on how to do this.

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: Writing to Mum in Glagolitic script

2014-05-21 Thread Devin Asay

On May 21, 2014, at 1:06 AM, Richmond 
 wrote:

> On 21/05/14 05:24, Alejandro Tejada wrote:
>> Hi Richmond,
>> 
>> Could you create any kind of custom text editor
> 
> Yes: my PISMO program is just a (much simplified) version of
> my Devawriter program using a different writing set.
> 
> The main difference lies in the fact that both Cyrillic and Glagolitic (the 
> writing systems used in
> my PISMO program) are written from left-to-right in a straight-forward way.
> 
> Devanagari (like many Indian writing systems) is written from left-to-right, 
> but there is a problem
> to do with the positioning of a post-vocalic R, a short I (which is written 
> before a consonant that
> it is sounded after, and the fact that a consonantal cluster aggregates into 
> a new written form called
> a 'conjunct consonant'. So Devawriter contains something in the order of 
> 5,000 rules to make
> sure that when end-users tap in individual glyphs (the Devanagari script is 
> an abugida, not an
> alphabet) the 'magic' happens [mind you, programming the thing didn't feel 
> very magical at
> times].

Richmond,

Have you tried out the prerelease of LiveCode 7? I'm really curious how your 
projects will work with it. My understanding is that all of the arcane, 
language-specific glyph munging rules are handled transparently (or will be). 
I've fiddled with it a bit with Cyrillic, and one of my students and I 
experimented with Arabic. The results with Cyrillic were perfect (although just 
typing Russian has never been problematic in LC, moving text around and looking 
at chunks of text required lots of hoop-jumping. Arabic and other RTLS still 
have some problems, but they're light years ahead of what we've had before. 

These are things we ought to hammer on during the Global Jam Richard announced 
last week. LC 7 I think will be a huge step forward for those of us who use 
Unicode.

Regards,

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: UPDATE: Make stack close itself

2014-05-21 Thread Devin Asay

On May 20, 2014, at 11:15 PM, "J. Landman Gay" 
 wrote:

> On 5/20/2014, 9:41 PM, Bob Sneidar wrote:
>> NVM my NVM. I passed all the closeStack messages as well as the
>> closeStackRequest messages. Stack still will not close.
> 
> If you are trying to not just close the stack but also remove it from memory, 
> I hit a similar problem with a series of converted HC stacks I'm working on. 
> Several stacks are open at once and some simply will not delete. I thought it 
> was due to the HC conversion but maybe it's a new bug. I'm doing this in LC 
> 6.6.1.
> 
> I've tried these things, none of which remove the stack from RAM:
> 
> In the message box: close this stack -- closes but doesn't delete
> In the message box: delete this stack
> Choose "Close and remove from memory" in the File menu
> Right-click the stack in the app browser and choose "close and remove from 
> memory"
> 
> Sometimes some of the set will remove themselves but one in particular never 
> will. Sometimes if I issue "delete this stack" repeatedly in the message box 
> (3 or 4 times) it finally does go away. Sometimes I have to quit LC.
> 
> Not only that, but I'm getting odd responses from LC where it thinks there 
> are two (or more) copies in RAM. I only opened one. But if I choose "go to 
> definition" in the script editor, it asks me which stack it should find the 
> definition in and offers two identical script paths. Sometimes I'll edit a 
> script and apply, and the editor tells me I've changed the script elsewhere 
> and which copy do I want to save?
> 
> Confounded. Since hardly anyone converts HC stacks any more, I thought it was 
> just something to do with that and I'd live with it. But maybe it's related 
> to your issue. You don't happen to have 2 copies of the stack open, do you? 
> What version of LC are you running?

Jacque and Bob,

I've noticed that sometimes if I'm using library stacks the stack can't be 
removed from memory. Could that be the case here?

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: setProp handlers

2014-05-20 Thread Devin Asay

On May 20, 2014, at 3:56 AM, Mark Schonewille 
 wrote:

> Hi Devin,
> 
> The properties inspector seems to lock messages before setting properties. 
> This also applies to e.g. setting the width and height of a control. If it 
> didn't do this, the properties inspector would probably become unusable 
> because we'd have to switch message on and off all the time and when we'd 
> forget to do that, we might mess up our interface or worse. It is probably a 
> very good thing that the properties inspector doesn't trigger setProp and 
> getProp handlers.


Thanks, Mark and Kay. That confirms what I had suspected.

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.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


setProp handlers

2014-05-19 Thread Devin Asay
Shouldn't a setProp handler be triggered if you set the custom property in the 
property inspector rather than in a script? It doesn't seem to be doing that 
for me. LC 6.6.2 RC 3.

The dictionary doesn't have anything to say about this issue.

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com



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


Re: IDE oddities (was Re: Error Messages Are Evil)

2014-05-16 Thread Devin Asay

On May 16, 2014, at 11:14 AM, Charles E Buchwald 
 wrote:

> I don't use the Menu Builder much, but I use the Geometry Manager on a 
> regular basis, and I've found it to be reliable.
> I only wish I could use it on mobile. Because I can't, I've written a lot of 
> my own geometry management scripts.
> In general, the better feature parity we have across all platforms, the 
> better. Not just to be friendlier to newbies, but for everyone.
> - Charles

It's reliable for me as long as my card layout is fairly simple. The more 
complicated the layout becomes, the harder it is to get the geometry manager to 
adjust the layout to what you want on resizeStack. So the problem may be more 
one of robustness and scalability than outright bugginess.

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: IDE oddities (was Re: Error Messages Are Evil)

2014-05-16 Thread Devin Asay

On May 16, 2014, at 10:16 AM, Dave Kilroy 
 wrote:

> Hi Devin
> 
> Sorry to be vague, didn't think I needed to say how unreliable it the menu
> tool is - it has bitten me in the past and plenty of others too. What
> usually happens is that you set up your menus and then when you reopen the
> stack half of the entries will have vanished, or some will be disabled and
> others not. It doesn't happen every time but often enough that I don't trust
> it at all and I build menus by script now as I'm so fed up with it. Similar
> to the Geometry Manager in that if it did what it was supposed in a reliable
> fashion it would be fine (if limited) - the fact is that it and the Menu
> Builder are not to be relied on (imo obviously)


Wow, I had no idea some folks were having problems like this with the Menu 
Builder. I have always found it solid and reliable. (My experience with the Geo 
Manager, however, has been similar to yours.) So really, this is a case not so 
much of an interface design problem, but of a component that doesn't always 
work as advertised. It might not belong on my list then, but definitely worth 
taking a look at at a utility that needs troubleshooting.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: IDE oddities (was Re: Error Messages Are Evil)

2014-05-16 Thread Devin Asay

On May 16, 2014, at 9:12 AM, Dave Kilroy 
 wrote:

> I don't know whether the Menu Builder falls into the 'IDE oddity' category
> but it sure it a liability!
> 
Dave,

Anything specific, or do you just find it confusing in general?

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: Fade effect for a Field

2014-05-16 Thread Devin Asay
On May 16, 2014, at 6:49 AM, Pascal Lehner 
 wrote:

> Hi all,
> Thanks for the quick answers. I will give them a try.
> I just found another solution that seems even smaller but less configurable.
> 
> hide field id 1012 with dissolve
> 
> show field id 1012 with dissolve
> 
> Here:
> https://sites.google.com/a/pgcps.org/livecode/home/disappearing-objects
> 
> Now I just need to set it up in a way that it doesn't stop the rest of the
> work that is being done in the background

Pascal,

I have done this a lot, this works well:

command fadeInMsg pText
   lock screen for visual effect
   put pText into fld "mymessage"
   show fld "mymessage"
   unlock screen with visual effect dissolve very fast
end fadeInMsg

command fadeOutMsg
   lock screen for visual effect
   hide fld "mymessage"
   unlock screen with visual effect dissolve very fast
end fadeOutMsg

Then call it like this:

   fadeInMsg "Useful information here."
   send "fadeOutMsg" to me in 1000 milliseconds

Easy, neat, and non-blocking.

HTH

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: cumbersome pt and rect operations

2014-05-15 Thread Devin Asay

On May 15, 2014, at 2:28 PM, William Prothero 
 wrote:

> Folks:
> I’m doing a lot of moving objects around on the screen. I find that it’s 
> super cumbersome and generates a load of code. It would be really nice if 
> there could be more compact operations.
> 
> For example:
> put pt1 + pt2 into sumofPts
> 2,3 + 5,6 would result in 7,9
> 
> or 
> put rect1 + pt1 into aRect
> 2,4,6,9 + 3,4 would result in 5,8,9,13
> 
> This would make it much easier to do these move operations. 
> 
> I know these can be done with simple functions but …..
> Perhaps I’m missing something in the docs, and there’s a much easier way to 
> do this.

Bill, 

I don't know exactly what you want to do, but you can do a relative move by 
just specifying the X and Y increments that you want to add to the current 
location.

  move button "foo" relative 5,6 in 1 millisecond

If you want instantaneous move you could try a 0 value for the time. 

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: IDE oddities (was Re: Error Messages Are Evil)

2014-05-15 Thread Devin Asay

On May 15, 2014, at 10:00 AM, "J. Landman Gay" 
 wrote:

> There's a small view of two overlapping images at the bottom of the inspector 
> that shows what the ink will do.  

Well, I'll be d**ned. How many times have I looked at that, and it never 
registered until now. What a funny thing the human brain is. Well maybe just my 
brain.

> The names of the inks are the same as the ones that Photoshop and many other 
> image processing programs use, so that's a tough call.  Specialists might 
> complain if they are changed.  

Right. I don't get then in PS either. :) Maybe this is an area that's just 
gonna require a body to go through a tutorial.


Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




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


Re: IDE oddities (was Re: Error Messages Are Evil)

2014-05-15 Thread Devin Asay

On May 15, 2014, at 9:57 AM, Charles E Buchwald  wrote:

> Mike, this is the part that I don't get about open source... yet. I guess we 
> don't have the community structures to handle it.
> 
> I mean, I've made that (free) plugin to handle this specific problem. 
> "lcMover" moves stacks/windows around, whether they are off-screen or not. I 
> even added an option recently to specifically move off-screen stacks back 
> on-screen. (Not posted quite yet... on the way.)
> Isn't the whole open source idea that I could contribute some code for that 
> to the IDE? Preferably without having to write it in C++?
> 
> Since GitHub doesn't work for this, will we eventually have designated 
> community members to shepherd the integration of code or features like this? 
> That is, a community mechanism for addressing "IDE oddities"?

In light of my effort to compile this list, I'm interested in the answer to 
this question as well. My understanding is that the IDE is not yet part of the 
GitHub… thingy, but will be soon. Richard?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: IDE oddities (was Re: Error Messages Are Evil)

2014-05-15 Thread Devin Asay

On May 15, 2014, at 9:16 AM, Mike Kerner 
 wrote:

> Whoops!  Wait, a second, here's another:
> The "locked" of the properties palette for each object is separate and
> persistent.  This is really great when you are working with a component or
> object that is installed by another developer, and want to look at two of
> the developer's objects side-by-side and make one like the other, but
> really awful when you don't, because you're stuck with it.  You're not in
> charge of your setup, the component developer is, and if you have to fix
> something in that component, you are in for a lot of extra clicks and
> palette issues.

I'm not sure I'm following you on this one, Mike. Are you talking about the 
lock icon that locks the property palette to the currently selected object? 
What do you mean by persistent? Can't you just click the lock icon to de-link 
it from the object? Or are you referring to another "locked" property?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: IDE oddities (was Re: Error Messages Are Evil)

2014-05-15 Thread Devin Asay

On May 15, 2014, at 9:12 AM, Richard Gaskin 
 wrote:

> Devin Asay wrote:
>> Thanks for the responses folks. Keep them coming, and I'll post a summary.
> 
> It may be helpful if you'd post your summary to the IDE Contributors Forum:
> <http://forums.runrev.com/viewforum.php?f=67>
> 
> 
>> Here's another one of mine:
>> 
>> Names of blendLevel inks: Whaaa? What do those things even mean?
> 
> Most of those names come from the bit-wise operations they use, or some 
> similar historic origin.
> 
> While it might be nice to try to craft English-like names for them, that's a 
> daunting task - "XOR" is "XOR" in every language, and geeky as it is I can't 
> think of any other way to describe it that isn't nearly a sentence long. :)

Yes, I agree that sometimes concepts are too complex to describe in a short, 
neat label. But in the interface, perhaps the menu could show the effect of the 
ink visually, or maybe there could be a help button that would pop up a list 
explaining the inks in simple language.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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: IDE oddities (was Re: Error Messages Are Evil)

2014-05-15 Thread Devin Asay
Thanks for the responses folks. Keep them coming, and I'll post a summary.

Here's another one of mine:

Names of blendLevel inks: Whaaa? What do those things even mean?

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
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


<    1   2   3   4   5   6   7   >