Re: snapshot and animation capture

2016-01-29 Thread [-hh]
Hi, I've made a stack for the Raspi collection, that does the following: Creates a *resizable* rectangle frame (window shape of a non-opaque rectangle), currently set as systemWindow. You can drag that around the screen and trigger a small button on the frame. Then a screenshot of the visible

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread Roland Huettmann
Sorry - mistyped: I wanted to write: "Is it possible ?" On 29 January 2016 at 11:45, Roland Huettmann wrote: > Question: textcolor when text is selected > > It is possible to set the textcolor when the text is hilited? I could not > find a way doing this. > >

Re: LC Server Call Javascript Function?

2016-01-29 Thread Peter W A Wood
Scott > On 29 Jan 2016, at 18:30, Scott Rossi wrote: > > Can a LiveCode server script call a Javascript function? > > I want to write some text into a div in an LC server web page without > refreshing the entire page. AFAICT, generating any text from a LiveCode >

Re: LC Server Call Javascript Function?

2016-01-29 Thread Peter TB Brett
On 2016-01-29 11:30, Scott Rossi wrote: Can a LiveCode server script call a Javascript function? I want to write some text into a div in an LC server web page without refreshing the entire page. AFAICT, generating any text from a LiveCode server script will replace the contents of page, but

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread Roland Huettmann
Question: textcolor when text is selected It is possible to set the textcolor when the text is hilited? I could not find a way doing this. Roland On 29 January 2016 at 10:21, Roland Huettmann wrote: > Paul, yes, autohilite does it. ) But nevertheless, to perform

Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Roland Huettmann
Using LC 7.1 / Windows 8.1 I am trying to find a way of setting the borderwidth and bordercolor of a newly created graphic through script. It does not work. But it is possible using the Property Inspector. The following instructions fail: on mouseUp set the borderwidth of graphic "XY" to 10

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Roland Huettmann
Hello Scott Borderwidth or linesize are synonyms according to the Dictionary, and I tried all without success. I want to script the borderwidth (linesize) and it's appearance. It is a specific task drawing rectangles representing windows with frames where the "frames" are my border lines.And

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Scott Rossi
Do you really want to adjust the border property instead of the lineSize / foreColor? set the lineSize of grc "XY" to 10 set the foreColor of grc "XY" to "red" Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/29/16, 3:01 AM, "use-livecode on behalf of Roland

[OT] Blowing up your Mac laptops

2016-01-29 Thread Richmond
Please could anybody who has a Macintosh laptop read this: http://www.bbc.com/news/technology-35432682 Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

LC Server Call Javascript Function?

2016-01-29 Thread Scott Rossi
Can a LiveCode server script call a Javascript function? I want to write some text into a div in an LC server web page without refreshing the entire page. AFAICT, generating any text from a LiveCode server script will replace the contents of page, but cannot target a a specific DOM element on

Re: Explicit Variables

2016-01-29 Thread [-hh]
What about the following? on mouseUp do "local tvar=1.2" put 2*tvar end mouseUp Should NOT work. But this should work (as do recompiles?): on mouseUp do "local tvar=1.2" do "put 2*tvar" end mouseUp ___ use-livecode mailing list

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread Roland Huettmann
Paul, yes, autohilite does it. ) But nevertheless, to perform some action, I need a trigger while tabbing. I am using LC 7.1, Windows 8.1 The actual question was another one: The text is highlighted - yes - in both cases. But the single-line field rectangle is not, just the text itself. I

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread J. Landman Gay
The focusborder property will outline the currently active field with a color. If you use that, you won't have to set the field's backcolor. If you do want to script the behavior, you can use either the openfield or focusIn message as the trigger. When focus is lost, a focusOut message is sent

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Roland Huettmann
Mark is right, I tested again and it is obviously a documentation error. Tested on Windows 8.1, LC 7.1 and LC 8.0 dp 13: ShowBorder was set to true in all cases. ThreeD must be set to false in the case of buttons, etc. LineSize: Works exclusively on graphics, NOT on other objects BorderWidth

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread BNig
Hello Roland, RH wrote > Borderwidth or linesize are synonyms according to the Dictionary, and I > tried all without success. > . > But should it not work just using script? I tried "set the borderwidth of grc "x" to y" on MacOSX 10.9.5 in LC 7.1 and 8 DP13 and it did not work. However "set

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Mark Waddingham
On 2016-01-29 16:05, BNig wrote: I tried "set the borderwidth of grc "x" to y" on MacOSX 10.9.5 in LC 7.1 and 8 DP13 and it did not work. However "set the lineSize of grc "x" to y" did work. The borderWidth property specifies the width of the border around the control - whether this is

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread Roland Huettmann
Hello J. Thank you. Helpful. Especially the triggers mentioned. Unfortunately the focusborder property does not work in WIndows. In the Dictionary Window 92 is mentioned (uh...?) but it also does not work in 8.1 (and I guess in Windows 10). Of course I can set the borderwidth and bordercolor when

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Mark Waddingham
On 2016-01-29 17:33, Roland Huettmann wrote: ShowBorder was set to true in all cases. ThreeD must be set to false in the case of buttons, etc. LineSize: Works exclusively on graphics, NOT on other objects BorderWidth works on objects such as fields, buttons, etc. but NOT on graphics.

Re: snapshot and animation capture

2016-01-29 Thread Richmond
On 28/01/16 13:22, Richmond wrote: On 28/01/16 00:27, Scott Rossi wrote: I thought this might make an interesting read, so the demo stack is included in an article: Hope this works for you.

Ken Burn's Effect Library for Livecode

2016-01-29 Thread Sannyasin Brahmanathaswami
Before I launch into this from ground zero.. has anyone developed a library for Ken Burns effects for still imagery in LiveCode? Scott sent me a cool thing for zooming in and out… so then we just need to move the image along a path at the same time. typical use case is the subtle and slow

Re: Global Warming Reader App, Recruiting Collaborators

2016-01-29 Thread William Prothero
Jim: A pertinent topic. I’m a bit unsure of what the goal of the app is, though. It seems to be an index of web sites related to global warming. I could see a use for something that organizes and educates. Would this be like an expanded version of RealClimate.com? So, I’m wondering what the

Import Vector to Graphic object

2016-01-29 Thread Sannyasin Brahmanathaswami
if we want to use Animation Engine’s Morph or morphGradient, we have to target a grc object. I presume because AE can extract points from a graphic object. But if we want to use this on a PNG… it’s obviously won’t work. What image format can we use that, upon import, becomes a native LC

Global Warming Reader App, Recruiting Collaborators

2016-01-29 Thread James Little
Hi Livecoders, The U.N. COP21 Conference in Paris this past December secured a remarkable international agreement of over 190 nations to cut carbon emissions and to limit global warming to less than 2 deg C. But now the hard part begins, to ensure that individuals, corporations and nations

Re: Free Let's Encrypt SSL Certificates for On-Rev?

2016-01-29 Thread Simon Smith
You can also look at using cloudflare.com for adding https - no need to buy a security certficate. On Thu, Jan 28, 2016 at 7:04 AM, Alex Shaw wrote: > Opps, my bad. > > That requires ssh access too. > > regards > alex > > > On 28/01/2016 2:58 PM, Alex Shaw wrote: > >>

Re: Import Vector to Graphic object

2016-01-29 Thread J. Landman Gay
On 1/29/2016 4:10 PM, Sannyasin Brahmanathaswami wrote: if we want to use Animation Engine’s Morph or morphGradient, we have to target a grc object. I presume because AE can extract points from a graphic object. But if we want to use this on a PNG… it’s obviously won’t work. What image format

Re: snapshot and animation capture

2016-01-29 Thread [-hh]
Richmond, "import" of the error message relates to the rect (see the wording in the dictionary), so char 1 means the superfluous quote (as Dame jacque says). Whatever you test here, you could use 'from rect of this card' or 'from rect of img "border.png"' if you wish to have a local

Re: Global Warming Reader App, Recruiting Collaborators

2016-01-29 Thread James Little
Hi Bill, Thanks for your input. The current Global Warming Reader App consists of 2 lists of websites, organized by category (Activism, Communication, Denial, Economics, Global, Individual, National, News, Oceans, Solutions, Science, …). One list includes “All" the sites that I’ve found

Re: Explicit Variables

2016-01-29 Thread Kay C Lan
On Sat, Jan 30, 2016 at 2:52 AM, Mark Waddingham wrote: > >> Heh - no - I misread Kay's post... Whenever I see 'explicitVariables' > mentioned I tend to think of 'Strict Compilation Mode'. > But you read my mind. I also see one and think the other. Thanks all for responses,

Re: inserting Data into CustomProp array

2016-01-29 Thread Mark Wieder
On 01/29/2016 09:15 PM, Sannyasin Brahmanathaswami wrote: OK… I’m good to good, but any advice in this area is appreciated. That will do the trick. An alternate way of retrieving the data is set the custompropertyset of image to "uMyEffects" put the startsize of image set the

Re: inserting Data into CustomProp array

2016-01-29 Thread J. Landman Gay
On 1/29/2016 11:15 PM, Sannyasin Brahmanathaswami wrote: apparently this: on mouseUp put the rect of the last image into tRect set the uMyEffects["startsize"] of the last image to tRect CheckEffects end mouseUp created a custompropertyset If you want the array in a single

inserting Data into CustomProp array

2016-01-29 Thread Sannyasin Brahmanathaswami
What is the best practice for progressively adding data to a customProperty that you want to be an array? both inserting new keys into that property as well as changing values in the existing keys. In this case i want an image(s) in a stack to have a custom property containing the necessary

Re: inserting Data into CustomProp array

2016-01-29 Thread Sannyasin Brahmanathaswami
Hhmm serendipity happens I was reading through all the dict entries on customproperties and custom property sets… a bit esoteric at first. There was no explicity guide “how to create a custompropertyset” But when I went back to my image and check… apparently this: on mouseUp put the rect

ANN: FlockOBoids

2016-01-29 Thread Roger Guay
Building on Scott Rossi’s Swarm stack, I’ve managed to build my version of swarming Boids. In my FlockOBoids stack, boids are given a diverse set of initial velocity vectors, and then they are subject to 3 simple rules: First they all try to fly to the center of the flock. Second, they try to

Re: snapshot and animation capture

2016-01-29 Thread J. Landman Gay
On 1/29/2016 1:35 PM, Richmond wrote: So, I thought I'd have a bash at rolling my own, but got stuck: on mouseUp put topleft of img "border.png" & "," & the bottomright of img "border.png" into put quote & & quote into fld "guff" put fld "guff" into export

Something's up in Github...

2016-01-29 Thread Richard Gaskin
Check out the recent pull requests for LC: https://github.com/livecode/livecode/pulse Lots of appearance-related stuff -- yoohoo! Very nice to see those addressed, and so many of them! Great work, team! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop,

Re: Selecting text in single-line entry fields - small UI issue

2016-01-29 Thread Paul Hibbert
Roland, The best I can come up with is using the openField and closeField messages to set the colour of the line within the field, instead of setting the background colour of the field, this gives you a little more control over the position of the ‘highlighted' area. Something like this in a

Re: Explicit Variables

2016-01-29 Thread Mark Waddingham
On 2016-01-29 19:34, Richard Gaskin wrote: Mark Waddingham wrote: Is my understanding correct, or has the engine implementation of explicitVars changed? Heh - no - I misread Kay's post... Whenever I see 'explicitVariables' mentioned I tend to think of 'Strict Compilation Mode'. As you point

Re: snapshot and animation capture

2016-01-29 Thread Richmond
At the risk of throwing a spanner in the works I want to refer you to this: http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html "Hi all, Some weeks ago, I reported that windowShape was not working in my Lubuntu Linux setup. After looking around and testing many recipes,

Re: Explicit Variables

2016-01-29 Thread Richard Gaskin
Mark Waddingham wrote: > That should work fine. The explicitVars property is only set in > the IDE around code which compiles / sets object scripts (i.e. > In the script editor). It is false the rest of the time. Is Kay using explicitVars or the IDE's "Strict Compilation Mode"? My understanding

Re: snapshot and animation capture

2016-01-29 Thread Richard Gaskin
Richmond wrote: > At the risk of throwing a spanner in the works I want to refer you > to this: > > http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html > > "Hi all, Some weeks ago, > I reported that windowShape was not working in my Lubuntu Linux setup. > After looking around

Re: snapshot and animation capture

2016-01-29 Thread Richmond
So, I thought I'd have a bash at rolling my own, but got stuck: on mouseUp put topleft of img "border.png" & "," & the bottomright of img "border.png" into put quote & & quote into fld "guff" put fld "guff" into export snapshot from rect of stack "Super Snap" to

Re: snapshot and animation capture

2016-01-29 Thread [-hh]
Richmond wrote: > At the risk of throwing a spanner in the works I want to refer you to this: > http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html > "Hi all, Some weeks ago, > I reported that windowShape was not working in my Lubuntu Linux setup. > After looking around and

Re: Questions: Setting the borderWidth (lineSize) of a graphic through script

2016-01-29 Thread Sannyasin Brahmanathaswami
On January 29, 2016 at 8:21:41 AM, Mark Waddingham (m...@livecode.com) wrote: BorderWidth works fine on graphics here - you set the showBorder to true, and set the borderWidth. You'll get the original shape inset by the borderWidth with the border drawn around it. An