Re: Line numbers for soft-wrapped styled text?

2017-03-27 Thread hh via use-livecode
The solution of Alex T. was the first example I saw of a useful
usage of the styledText array. TMHO this is the way to go for the
future of more and more complicated styled text.

As was said elsewhere, there could be a considerable speed up if
first the visible range of lines, say numbers L1 to L2, is determined.

We had once a thread in the forum about that. The fastest method:

Compare the formattedHeight of line 1 to L of fld T to the vscroll v0
of fld T. Not by walking with L up from one, but by using a binary
search for L1 and then starting from there to find L2 by comparing to
v0+the height of fld T. This needs only a few millisecs even for large
chunks.

Then use Alex's method with the styledText array of these lines. Or,
quick and dirty, save the selectedChunk, select before each line L
in the range L1 to L1 and collect the selectedLocs and then restore
the selectedChunk.

Now draw the line numbers each into an own freshly created field or
use Alex's space below method.

p.s. Hopefully you will share your final code.


___
use-livecode mailing list
use-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: [DIRECT-L] Director Replacement Suggestions & LiveCode with 3D Plugin

2017-03-27 Thread Matt Maier via use-livecode
I'm interested in 3D in Livecode. I  have no idea what any of the other
proper nouns in the message mean.

On Mon, Mar 27, 2017 at 8:41 PM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> This, from Paradigma. What do you think? Anybody interested in 3D in
> LiveCode?
> Bill
>
> > Begin forwarded message:
> >
> > From: Lynn Fredricks 
> > Subject: Re: [DIRECT-L] Director Replacement Suggestions & LiveCode with
> 3D Plugin
> > Date: March 27, 2017 at 4:54:34 PM PDT
> > To: direc...@listserv.uark.edu
> > Reply-To: Adobe Director 
> >
> >> LiveCode has been undergoing major rewriting and upgrading
> >> during the last two years. In my work I have found it to be
> >> quite fast. It is limited in that it has no web browser
> >> plugin, no physics engine, and no 3D.
> >
> > How important is 3D to you all?
> >
> > A few years ago, one of the Paradigma Software team members did a simple
> > wrap of the Irrlict Engine for LiveCode that works on Windows and MacOS
> X.
> > We did a couple of refreshes to fix bugs but there didn't seem to be
> much of
> > a demand (in our analysis, the current user base as of then rarely uses
> > components). We had all of the Irrlict examples ported over as well. It
> > actually got a bit more traction among Xojo users.
> >
> > If we can accertain if there's enough interest for it, we could look at
> > re-releasing it and give it more love and ongoing support. I have set up
> a
> > thread on the Paradigma forum where you can weigh in if this is of
> interest.
> >
> > http://valentina-db.com/en/discussion-forums/2723-
> franklin-3d-for-director-s
> > urvivors
> >
> > Best regards,
> >
> > Lynn Fredricks
> > Paradigma Software
> > http://www.paradigmasoft.com
> >
> > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server
> >
> > ---
> > Adobe Director Mailing List (Direct-L)
> > List Administrator:  Eve M. Owens (emow...@uark.edu)
> >
> > To SUBSCRIBE or to UNSUBSCRIBE go to
> > http://listserv.uark.edu/archives/direct-l.html
> > and click on
> > "Join or leave the list (or change settings)"
> >
> > For list archives
> > http://listserv.uark.edu/archives/direct-l.html
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Fwd: [DIRECT-L] Director Replacement Suggestions & LiveCode with 3D Plugin

2017-03-27 Thread William Prothero via use-livecode
Folks:
This, from Paradigma. What do you think? Anybody interested in 3D in LiveCode?
Bill

> Begin forwarded message:
> 
> From: Lynn Fredricks 
> Subject: Re: [DIRECT-L] Director Replacement Suggestions & LiveCode with 3D 
> Plugin
> Date: March 27, 2017 at 4:54:34 PM PDT
> To: direc...@listserv.uark.edu
> Reply-To: Adobe Director 
> 
>> LiveCode has been undergoing major rewriting and upgrading 
>> during the last two years. In my work I have found it to be 
>> quite fast. It is limited in that it has no web browser 
>> plugin, no physics engine, and no 3D.
> 
> How important is 3D to you all?
> 
> A few years ago, one of the Paradigma Software team members did a simple
> wrap of the Irrlict Engine for LiveCode that works on Windows and MacOS X.
> We did a couple of refreshes to fix bugs but there didn't seem to be much of
> a demand (in our analysis, the current user base as of then rarely uses
> components). We had all of the Irrlict examples ported over as well. It
> actually got a bit more traction among Xojo users.
> 
> If we can accertain if there's enough interest for it, we could look at
> re-releasing it and give it more love and ongoing support. I have set up a
> thread on the Paradigma forum where you can weigh in if this is of interest.
> 
> http://valentina-db.com/en/discussion-forums/2723-franklin-3d-for-director-s
> urvivors
> 
> Best regards,
> 
> Lynn Fredricks
> Paradigma Software
> http://www.paradigmasoft.com
> 
> Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 
> 
> ---
> Adobe Director Mailing List (Direct-L)
> List Administrator:  Eve M. Owens (emow...@uark.edu)
> 
> To SUBSCRIBE or to UNSUBSCRIBE go to
> http://listserv.uark.edu/archives/direct-l.html
> and click on
> "Join or leave the list (or change settings)"
> 
> For list archives
> http://listserv.uark.edu/archives/direct-l.html

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


Re: Object Selection Handles

2017-03-27 Thread Craig Newman via use-livecode
A lesson should be taken from any CAD program worth its salt.


Handles are ALWAYS rectangles for objects, and always within the bounds of the 
object in question.


That said, a group might be an exception, since handles would overlie the 
controls at the extreme corners of a group, and that looks and feels wrong.


Craig Newman



-Original Message-
From: Richard Gaskin via use-livecode 
To: use-livecode 
Cc: Richard Gaskin 
Sent: Mon, Mar 27, 2017 3:39 pm
Subject: Re: Object Selection Handles

Dan Friedman wrote: > Is there a property to change the shape of the selection 
handles when > using the selection tool?  In LC 9 (and 8), they are round 
circles > that protrude outside the edge of the control.  In previous versions, 
> they were squares that remained within the rect of the control. > These large 
“dots” make it hard to do fine alignment of controls. > > I know there is a 
selectionHandleColor property, but is there > anything like a 
selectionHandleShape property?I too find the selection handles harder to work 
with.  I submitted a request for an adjustable size; I don't mind if you add a 
note there asking for shape as well (the older rectangles would be preferable 
to me as well, much less ambiguous than any anti-aliased curve 
shape):http://quality.livecode.com/show_bug.cgi?id=16375 > Also, the border of 
the selected control is dashed when selected. > Can that be removed as well?The 
new selection borders drive me crazy - I can't see the edges clearly when 
resizing, and can't see them at all when applying border treatments - request 
to make that option here:http://quality.livecode.com/show_bug.cgi?id=17057--   
Richard Gaskin  Fourth World Systems  Software Design and Development for the 
Desktop, Mobile, and the Web  
  
ambassa...@fourthworld.com
http://www.FourthWorld.com___use-livecode
 mailing listuse-livecode@lists.runrev.comPlease 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: Retroactive background behavior

2017-03-27 Thread Dr. Hawkins via use-livecode
On Mon, Mar 27, 2017 at 9:23 AM, Jim Hurley via use-livecode <
use-livecode@lists.runrev.com> wrote:

> As I recall there is a method of retroactively creating a button with
> background behavior, this is appears on all existing cards.
>

My understanding is that only a group can do that, not a button

repeat with i = 1 to the number of cards in this stack

if there is group snoozle on cd i of this stack then

else

place group snoozle onto cd i of this stack

end if


end repeat



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-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: Line numbers for soft-wrapped styled text?

2017-03-27 Thread Alex Tweedly via use-livecode

What a cool idea !

In fact, could you not simply do
   set the liststyle of line 1 to -1 of fld "mytextfield" to "decimal"
and then unset the liststyle whenever needed (e.g. when the field is 
subject to  copy, save, etc.)


-- Alex.

On 27/03/2017 20:32, Richard Gaskin via use-livecode wrote:



This morning Jim Lambert emailed me a very different solution that I 
thought would be worth sharing here.


Here he uses the engine's own metrics for calculating vertical line 
spacings, by having the number field placed below the editable text 
field, setting its width to that of the editable field + a left margin 
in which he uses the engine's support for numeric list styles to draw 
the line numbers:


on textchanged
   lock screen
   set the htmltext of fld "nums" to the htmltext of me
   set the liststyle of line 1 to -1 of fld nums to "decimal"
   set the scroll of fld "nums" to the scroll of me
end textchanged

The only downside I can see to this approach is for memory, as it 
requires copying the full styled text from the source field into the 
line number field.


Very minor drawbacks for my needs are aesthetic:  I prefer a line 
number field without trailing decimal points ("1" rather than "1." as 
LC's listStyle renders), and that line number be left-aligned by LC 
renders its list line numbers left-aligned.


But overall quite nice, and very snappy. Thanks, Jim!




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


Blowfish digest , how to create in Livecode

2017-03-27 Thread Matthias Rebbe via use-livecode
Hi,

i have a MySQL DB which uses passwords  created with php crypt function using 
blowfish

the php code looks like this for example

$salt='$2a$08$NWy7XidPPL2XEsouCG3dy’;
$digest= crypt(‘myPassword01’,$salt);

how can i do this in Livecode server? I find SHA1digest and MD5digest functions 
in the dictionary, but no blowfishDigest function.

Or isn´t that possible in LC?

Regards,
Matthias


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

Re: Is there a Macintosh equivalent to relaunch on Windows?

2017-03-27 Thread Bill Vlahos via use-livecode
Here is the code I use on Windows
on relaunch vOne, vTwo
   revGoURL "https://we 
bpage.com/search/searchresults.nl?searchtype=Case=T_Entity_PHONE=
 
blahblah"
 & vOne
end relaunch


Would the code on Macintosh be something like
on relaunch $0, $1
   revGoURL "https://we 
bpage.com/search/searchresults.nl?searchtype=Case=T_Entity_PHONE=
 
blahblah"
 & $0
end relaunch


Bill


> On Mar 27, 2017, at 2:09 PM, Mark Schonewille via use-livecode 
>  wrote:
> 
> Yes, just put $0, $1 etc.
> 
> Kind regards,
> 
> Mark Schonewille
> http://economy-x-talk.com
> https://www.facebook.com/marksch
> 
> Buy the most extensive book on the
> LiveCode language:
> http://livecodebeginner.economy-x-talk.com
> 
> Op 27-Mar-17 om 21:53 schreef Bill Vlahos via use-livecode:
>> I use relaunch on Windows standalone to accept command line arguments.
>> 
>> Is there an equivalent for a Macintosh standalone to do this?
>> 
>> Thanks,
>> Bill Vlahos
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Overlaying on video

2017-03-27 Thread hh via use-livecode
> Roger E. wrote
> Will there be a similar capability to allow objects (buttons and fields)
> to overlay a browser widget, which might also be displaying a video?
> I believe there is a need to make this possible for any situation.

As I'm currentl refershing my 'web-knowledge' I made a demo.

An overlay by a LC window. You can set its transparency and could even
use this technique to make windowshaped 'overlay-stacks' (so that you can look
through and click through the 'holes' of that stack).

Widget usage example #3
http://forums.livecode.com/viewtopic.php?p=152773#p152773

It's not perfect, you will have to add scripts, but the HTML is fully included.
Stack size (incl. browser widget and HTML+CSS+javascript) < 30 KByte.

May be this is not really what you want, but TMHO an overlay by a lot of single
objects will slow down the performance of the video dramatically.

HTH, Hermann
___
use-livecode mailing list
use-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: just some cool stuff

2017-03-27 Thread Dr. Hawkins via use-livecode
On Sun, Mar 26, 2017 at 6:15 PM, Stephen Barncard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> my gmail spam filters caught it first time.


But gmail let them both through for me . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-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: Is there a Macintosh equivalent to relaunch on Windows?

2017-03-27 Thread Mark Schonewille via use-livecode

Yes, just put $0, $1 etc.

Kind regards,

Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch

Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com

Op 27-Mar-17 om 21:53 schreef Bill Vlahos via use-livecode:

I use relaunch on Windows standalone to accept command line arguments.

Is there an equivalent for a Macintosh standalone to do this?

Thanks,
Bill Vlahos

___
use-livecode mailing list
use-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: LC & OS X 10.12.4

2017-03-27 Thread Jim Lambert via use-livecode
Klaus wrote:

> no problems with LC 8.1.3 and 9 dp6 on macOS 10.12.4!


Klaus, thanks for checking. 
Problem must be mine. I can’t launch any version of LC from 5.5.5 through 
Business 9 dp 6.
Guess I’ll start trashing preference files!

Jim Lambert


___
use-livecode mailing list
use-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 & OS X 10.12.4

2017-03-27 Thread Klaus major-k via use-livecode
Hi Jim,

> Am 27.03.2017 um 21:52 schrieb Jim Lambert via use-livecode 
> :
> 
> Anyone else unable to launch LC on mac OS X 10.12.4?

no problems with LC 8.1.3 and 9 dp6 on macOS 10.12.4!

> Jim Lambert

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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


Is there a Macintosh equivalent to relaunch on Windows?

2017-03-27 Thread Bill Vlahos via use-livecode
I use relaunch on Windows standalone to accept command line arguments.

Is there an equivalent for a Macintosh standalone to do this?

Thanks,
Bill Vlahos

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


LC & OS X 10.12.4

2017-03-27 Thread Jim Lambert via use-livecode
Anyone else unable to launch LC on mac OS X 10.12.4?

Jim Lambert

___
use-livecode mailing list
use-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: Object Selection Handles

2017-03-27 Thread Richard Gaskin via use-livecode

Dan Friedman wrote:

> Is there a property to change the shape of the selection handles when
> using the selection tool?  In LC 9 (and 8), they are round circles
> that protrude outside the edge of the control.  In previous versions,
> they were squares that remained within the rect of the control.
> These large “dots” make it hard to do fine alignment of controls.
>
> I know there is a selectionHandleColor property, but is there
> anything like a selectionHandleShape property?

I too find the selection handles harder to work with.  I submitted a 
request for an adjustable size; I don't mind if you add a note there 
asking for shape as well (the older rectangles would be preferable to me 
as well, much less ambiguous than any anti-aliased curve shape):

http://quality.livecode.com/show_bug.cgi?id=16375


> Also, the border of the selected control is dashed when selected.
> Can that be removed as well?

The new selection borders drive me crazy - I can't see the edges clearly 
when resizing, and can't see them at all when applying border treatments 
- request to make that option here:

http://quality.livecode.com/show_bug.cgi?id=17057

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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

Re: Line numbers for soft-wrapped styled text?

2017-03-27 Thread Richard Gaskin via use-livecode
When I first started down this road I went for getting max values from 
the styledText array, similar (though far less efficiently) to how Alex 
Tweedly solved this so well in his post the other day:

http://lists.runrev.com/pipermail/use-livecode/2017-March/235688.html

Great work as usual from Alex there, reasonably performant enough for 
most needs and very well crafted.


This morning Jim Lambert emailed me a very different solution that I 
thought would be worth sharing here.


Here he uses the engine's own metrics for calculating vertical line 
spacings, by having the number field placed below the editable text 
field, setting its width to that of the editable field + a left margin 
in which he uses the engine's support for numeric list styles to draw 
the line numbers:


on textchanged
   lock screen
   set the htmltext of fld "nums" to the htmltext of me
   set the liststyle of line 1 to -1 of fld nums to "decimal"
   set the scroll of fld "nums" to the scroll of me
end textchanged

The only downside I can see to this approach is for memory, as it 
requires copying the full styled text from the source field into the 
line number field.


Very minor drawbacks for my needs are aesthetic:  I prefer a line number 
field without trailing decimal points ("1" rather than "1." as LC's 
listStyle renders), and that line number be left-aligned by LC renders 
its list line numbers left-aligned.


But overall quite nice, and very snappy. Thanks, Jim!

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


Re: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-27 Thread J. Landman Gay via use-livecode

I think that's right, Apple enforces this rule.

The standalone builder will move files to a Resources folder when it 
builds the app. For backward compatibility, scripts that reference the 
engine folder are redirected to the Resources folder automatically.


On 3/27/17 1:22 PM, Bob Sneidar via use-livecode wrote:

To my understanding, it's a requirement in accordance with Apple's
sandboxing policies, if you want an executable to be able to make
changes to files inside the executable bundle. The way it's supposed
to work, no application is allowed to write or modify anything in the
old location where the actual application binary resides, but in the
new location they can.

As an administrative user I am able to copy files to both locations,
but sandboxing is not about folder permissions. It's about executable
permissions and it's baked into the OS so no one can (ostensibly)
change it.

That is my understanding at least. I've not dug in enough to know for
certain.

Bob S



On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecode
 wrote:

Hello, "Apple requires" - Is this only a "best practise" guideline
or what will happen if you don't care? I have an old application
just migrated to LC 8, where I am running an independent stack file
in that old dir("Contents/MacOS"), and it is running fine on MacOS
10.12.3 Is there any Apple link about that or are there any
informations, into which issue you can run, if you put files into
the old dir? If you integrate Valentina, they also keep one file in
that directory. Thanks for any info Tiemo



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




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


Object Selection Handles

2017-03-27 Thread Dan Friedman via use-livecode
Greetings!   Is there a property to change the shape of the selection handles 
when using the selection tool?  In LC 9 (and 8), they are round circles that 
protrude outside the edge of the control.  In previous versions, they were 
squares that remained within the rect of the control.  These large “dots” make 
it hard to do fine alignment of controls.

I know there is a selectionHandleColor property, but is there anything like a 
selectionHandleShape property?

Also, the border of the selected control is dashed when selected.  Can that be 
removed as well?

Thanks in advance,
-Dan

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

Re: Overlaying on video

2017-03-27 Thread Rick Harrison via use-livecode
Hi Ben,

The movie that didn’t work for me was:

640 × 360, AAC, H.264   as a .mov  quicktime movie.

Let me know what you learn and discover!

Thanks,

Rick

> On Mar 27, 2017, at 8:35 AM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> Hi Rick
> 
> Thanks for your reply.
> 
> > I think once a movie starts playing other LC messages don’t
> > have time to be sent. The video just takes over because
> > it’s showing each frame quickly so your eye tells you
> > it’s a movie.
> 
> I don't think that's it. I've had time codes displays running before, 
> achieved in this way, so something that normally works, doesn't. I haven't 
> worked out if this is an issue with 8.1.3 or another side effect of the 
> particular movie. Or just that working late on a small screen, I made some 
> other stupid mistake.
> 
> > One solution I had to use in the past to make a decent
> > animation was to break the movie into each frame and
> > then put each frame onto each card.
> 
> I took a similar approach for now - rather than playing the movie and then 
> catching the currenttime, I used my timer to keep setting the current time, 
> moving it on a frame at a time (in fact for now I wanted to export a 
> timelapse of the movie anyway, so was happy to jump it along half-a-second at 
> a time). But in my ideal world I'd have this working interactively, including 
> allowing the user to scrub the movie to a different time and have the data 
> graphics update as they did.
> 
> > I tried importing a Quicktime movie which had the .mov suffix into LC.
> > I put a graphic on top of the movie and when I went to play the movie
> > the movie put itself on top of the graphic.  So what to I need to do to
> > recreate your solution?
> 
> That's what I don't know yet! Obviously it's not enough that it's a .mov 
> instead of a .mp4; when I exported it, the movie also changed codec, 
> resolution, framerate... (partly because I was in a hurry so I decided to 
> work with a smaller lighter version to make progress). I'll need to try some 
> experiments with changing fewer attributes to find out which is the crucial 
> one.
> 
> What are the characteristics of the movie you tried it with, that didn't work?
> 
> Ben
> 
> 
> On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:
>> 
>> Hi Ben,
>> 
>> To try to answer the second part of your question first.
>> I think once a movie starts playing other LC messages don’t
>> have time to be sent. The video just takes over because
>> it’s showing each frame quickly so your eye tells you
>> it’s a movie.
>> 
>> One solution I had to use in the past to make a decent
>> animation was to break the movie into each frame and
>> then put each frame onto each card.  I had a short
>> movie so it ended up being 254 cards.  It was for iOS
>> so I needed to optimize for a cell phone processor.
>> Then I was able to have a graphic which appeared
>> on every card move on top of the changing cards.
>> So my animated character was able to move around
>> freely on top of a video background.  I was able to
>> adjust the timing of the loops so it looked pretty good.
>> 
>> Regarding the first part of your message:
>> I’m trying to duplicate some of your experience here.
>> 
>>> Eventually I discovered by accident that this only applies to some videos. 
>>> For now, I got the job I needed to do done by rendering the original .mp4 
>>> into a .mov with QuicktimePlayer's default settings; I haven't had time to 
>>> establish what the crucial factors are. Is this known/documented anywhere?
>> 
>> I tried importing a Quicktime movie which had the .mov suffix into LC.
>> I put a graphic on top of the movie and when I went to play the movie
>> the movie put itself on top of the graphic.  So what to I need to do to
>> recreate your solution?
>> 
>> Thanks,
>> 
>> Rick
>> 
>> 
>> 
>> 
>>> On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode 
>>>  wrote:
>>> 
>>> I'm trying to overlay some graphics on a video, and hit a couple of 
>>> problems.
>>> 
>>> The first, which drove me somewhat mad until I found an out, was that the 
>>> video was always displayed on top of other LC elements - graphics, fields. 
>>> This is using a player object; I found that the controller would be 
>>> rendered correctly layered among other objects, and indeed would obey 
>>> blending levels; and occasionally in tool mode the video frame would also; 
>>> but once I switched back to browse mode and played the video, it invariably 
>>> displayed on top of everything else, at 100% opacity. Toggling the "buffer" 
>>> property did not appear to make a difference.
>>> 
>>> Eventually I discovered by accident that this only applies to some videos. 
>>> For now, I got the job I needed to do done by rendering the original .mp4 
>>> into a .mov with QuicktimePlayer's default settings; I haven't had time to 
>>> establish what the crucial factors are. Is this known/documented anywhere?
>>> 

Re: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-27 Thread Bob Sneidar via use-livecode
To my understanding, it's a requirement in accordance with Apple's sandboxing 
policies, if you want an executable to be able to make changes to files inside 
the executable bundle. The way it's supposed to work, no application is allowed 
to write or modify anything in the old location where the actual application 
binary resides, but in the new location they can. 

As an administrative user I am able to copy files to both locations, but 
sandboxing is not about folder permissions. It's about executable permissions 
and it's baked into the OS so no one can (ostensibly) change it. 

That is my understanding at least. I've not dug in enough to know for certain. 

Bob S


> On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecode 
>  wrote:
> 
> Hello,
> "Apple requires" - Is this only a "best practise" guideline or what will 
> happen if you don't care? I have an old application just migrated to LC 8, 
> where I am running an independent stack file in that old 
> dir("Contents/MacOS"), and it is running fine on MacOS 10.12.3
> Is there any Apple link about that or are there any informations, into which 
> issue you can run, if you put files into the old dir? If you integrate 
> Valentina, they also keep one file in that directory.
> Thanks for any info
> Tiemo


___
use-livecode mailing list
use-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: Retroactive background behavior

2017-03-27 Thread Craig Newman via use-livecode
Hi.


You cannot make a button with backGround behavior, only a group. And even with 
a group, you would have to place it on all cards explicitly if you had not 
created that backGround group at the beginning. The automatic placement of a 
group on new cards has to be in place before those new cards are created.


Craig Newman



-Original Message-
From: Jim Hurley via use-livecode 
To: use-livecode 
Cc: Jim Hurley 
Sent: Mon, Mar 27, 2017 12:25 pm
Subject: Retroactive background behavior

As I recall there is a method of retroactively creating a button with 
background behavior, this is appears on all existing cards.

How is my recollection?

Jim Hurley
___
use-livecode mailing list
use-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: Line numbers for soft-wrapped styled text?

2017-03-27 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> Yeah I was thinking the same thing. textChanged triggers a handler
> that reformats the text every time. In essence, you are doing what
> a word processor would do.

The textChanged message is only sent when changes are made to the text 
of a field.  Changes to styling attributes may also affect line heights 
and wrapping (e,g, bold will increase text width, textSize will enlarge 
it overall), and those changes are beyond the scope of triggers for the 
textChanged message.


That said, I don't believe there are any messages for style changes, so 
I agree a frontScript here trapping multiple message should not be 
needed/useful.


AFAIK the only way to account for styling changes is either in the 
scripts for the UI elements that enact them (which is what I'm using 
now) or polling (which I generally try to avoid unless I have no other 
way to solve a problem).


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


AW: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-27 Thread Tiemo Hollmann TB via use-livecode
Hello,
"Apple requires" - Is this only a "best practise" guideline or what will happen 
if you don't care? I have an old application just migrated to LC 8, where I am 
running an independent stack file in that old dir("Contents/MacOS"), and it is 
running fine on MacOS 10.12.3
Is there any Apple link about that or are there any informations, into which 
issue you can run, if you put files into the old dir? If you integrate 
Valentina, they also keep one file in that directory.
Thanks for any info
Tiemo


On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote:
> is it correct when the standalone settings of an stack are set to move 
> substacks into individual stack files that under Mac OS X the 
> substacks in an compiled app (e.g. test.app) are stored
>
> in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in 
> 'test.app/Contents/MacOS/'

Yes, Apple required that change a while ago.

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

OT: SpamAssassin settings

2017-03-27 Thread Mark Wieder via use-livecode

On 03/27/2017 09:25 AM, J. Landman Gay via use-livecode wrote:

It was one of those no-salutation, no-message, no-signature emails
containing nothing but a link. My spam assassin let all four through but
I have it set to a fairly liberal level. What's yours set to? Maybe I
should change mine.


Here's what I've got (lazy default values):

Required hits: 5 (default)
Report Options: Attach Original Message as message/rfc822
Use Razor2
Use DCC
Skip RBL Checks is *unchecked* (default)
OK Locales: all locales

I may at some point change the RBL setting because I hate RBLs, but 
SpamAssassin only uses them to determine scores, so it's fairly benign, 
and so far I haven't seen any problems.


--
 Mark Wieder
 ahsoftw...@gmail.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: just some cool stuff

2017-03-27 Thread J. Landman Gay via use-livecode
It was one of those no-salutation, no-message, no-signature emails 
containing nothing but a link. My spam assassin let all four through but I 
have it set to a fairly liberal level. What's yours set to? Maybe I should 
change mine.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 27, 2017 11:03:20 AM Mark Wieder via use-livecode 
 wrote:



On 03/27/2017 06:17 AM, Bob Sneidar via use-livecode wrote:
My spam filter must have caught it because I have no idea what any of you 
are talking about.


Bob S


Same.
Sonic.net did alert me that there were four messages in my spam filter,
but their SpamAssassin did its job, and the emails never showed up in my
inbox. I have no intention of opening the emails to find out what all
the hoopla is about.

--
  Mark Wieder
  ahsoftw...@gmail.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


Retroactive background behavior

2017-03-27 Thread Jim Hurley via use-livecode
As I recall there is a method of retroactively creating a button with 
background behavior, this is appears on all existing cards.

How is my recollection?

Jim Hurley
___
use-livecode mailing list
use-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: just some cool stuff

2017-03-27 Thread Mark Wieder via use-livecode

On 03/27/2017 06:17 AM, Bob Sneidar via use-livecode wrote:

My spam filter must have caught it because I have no idea what any of you are 
talking about.

Bob S


Same.
Sonic.net did alert me that there were four messages in my spam filter, 
but their SpamAssassin did its job, and the emails never showed up in my 
inbox. I have no intention of opening the emails to find out what all 
the hoopla is about.


--
 Mark Wieder
 ahsoftw...@gmail.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: Line numbers for soft-wrapped styled text?

2017-03-27 Thread Bob Sneidar via use-livecode
Yeah I was thinking the same thing. textChanged triggers a handler that 
reformats the text every time. In essence, you are doing what a word processor 
would do. 

Bob S


> On Mar 25, 2017, at 09:07 , Mark Wieder via use-livecode 
>  wrote:
> 
> I looked into that for the glx2 script editor and gave up. Soft line wrapping 
> by itself isn't a problem, and line numbering by itself isn't a problem, but 
> there's no message generated that lets you know when wrapping is happening, 
> and no indication in the text fields that a line has been wrapped.
> 
> The only ugly solution I could think of was to iterate through each of the 
> lines of text, comparing the line length and character width with the length 
> of the field, and flagging an overflow as a wrapped line. And do this every 
> time the field got resized and text added or deleted. If you're dealing with 
> a field with mixed styles then your problems are even worse.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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: just some cool stuff

2017-03-27 Thread Bob Sneidar via use-livecode
My spam filter must have caught it because I have no idea what any of you are 
talking about. 

Bob S


> On Mar 26, 2017, at 18:15 , Stephen Barncard via use-livecode 
>  wrote:
> 
> my gmail spam filters caught it first time.
> gmail rocks.
> 
> --
> Stephen Barncard - Sebastopol Ca. USA -


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


Re: Overlaying on video

2017-03-27 Thread Roger Eller via use-livecode
Will there be a similar capability to allow objects (buttons and fields) to
overlay a browser widget, which might also be displaying a video?  I
believe there is a need to make this possible for any situation.

~Roger


On Mon, Mar 27, 2017 at 8:47 AM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> Before LC 8.1.0, one could put other objects on top of the player object,
> if alwaysBuffer==true. This has broken in LC 8.1.0+.
>
> A workaround is described in this bug report:
>
> http://quality.livecode.com/show_bug.cgi?id=19444
>
> Best,
> Panos
> --
>
> On Mon, Mar 27, 2017 at 1:35 PM, Ben Rubinstein via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi Rick
> >
> > Thanks for your reply.
> >
> > > I think once a movie starts playing other LC messages don’t
> > > have time to be sent. The video just takes over because
> > > it’s showing each frame quickly so your eye tells you
> > > it’s a movie.
> >
> > I don't think that's it. I've had time codes displays running before,
> > achieved in this way, so something that normally works, doesn't. I
> haven't
> > worked out if this is an issue with 8.1.3 or another side effect of the
> > particular movie. Or just that working late on a small screen, I made
> some
> > other stupid mistake.
> >
> > > One solution I had to use in the past to make a decent
> > > animation was to break the movie into each frame and
> > > then put each frame onto each card.
> >
> > I took a similar approach for now - rather than playing the movie and
> then
> > catching the currenttime, I used my timer to keep setting the current
> time,
> > moving it on a frame at a time (in fact for now I wanted to export a
> > timelapse of the movie anyway, so was happy to jump it along
> half-a-second
> > at a time). But in my ideal world I'd have this working interactively,
> > including allowing the user to scrub the movie to a different time and
> have
> > the data graphics update as they did.
> >
> > > I tried importing a Quicktime movie which had the .mov suffix into LC.
> > > I put a graphic on top of the movie and when I went to play the movie
> > > the movie put itself on top of the graphic.  So what to I need to do to
> > > recreate your solution?
> >
> > That's what I don't know yet! Obviously it's not enough that it's a .mov
> > instead of a .mp4; when I exported it, the movie also changed codec,
> > resolution, framerate... (partly because I was in a hurry so I decided to
> > work with a smaller lighter version to make progress). I'll need to try
> > some experiments with changing fewer attributes to find out which is the
> > crucial one.
> >
> > What are the characteristics of the movie you tried it with, that didn't
> > work?
> >
> > Ben
> >
> >
> >
> > On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:
> >
> >>
> >> Hi Ben,
> >>
> >> To try to answer the second part of your question first.
> >> I think once a movie starts playing other LC messages don’t
> >> have time to be sent. The video just takes over because
> >> it’s showing each frame quickly so your eye tells you
> >> it’s a movie.
> >>
> >> One solution I had to use in the past to make a decent
> >> animation was to break the movie into each frame and
> >> then put each frame onto each card.  I had a short
> >> movie so it ended up being 254 cards.  It was for iOS
> >> so I needed to optimize for a cell phone processor.
> >> Then I was able to have a graphic which appeared
> >> on every card move on top of the changing cards.
> >> So my animated character was able to move around
> >> freely on top of a video background.  I was able to
> >> adjust the timing of the loops so it looked pretty good.
> >>
> >> Regarding the first part of your message:
> >> I’m trying to duplicate some of your experience here.
> >>
> >> Eventually I discovered by accident that this only applies to some
> >>> videos. For now, I got the job I needed to do done by rendering the
> >>> original .mp4 into a .mov with QuicktimePlayer's default settings; I
> >>> haven't had time to establish what the crucial factors are. Is this
> >>> known/documented anywhere?
> >>>
> >>
> >> I tried importing a Quicktime movie which had the .mov suffix into LC.
> >> I put a graphic on top of the movie and when I went to play the movie
> >> the movie put itself on top of the graphic.  So what to I need to do to
> >> recreate your solution?
> >>
> >> Thanks,
> >>
> >> Rick
> >>
> >>
> >>
> >>
> >> On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> I'm trying to overlay some graphics on a video, and hit a couple of
> >>> problems.
> >>>
> >>> The first, which drove me somewhat mad until I found an out, was that
> >>> the video was always displayed on top of other LC elements - graphics,
> >>> fields. This is using a player object; I found that the controller
> would be
> >>> rendered correctly layered among other objects, and indeed would 

Re: Overlaying on video

2017-03-27 Thread Ben Rubinstein via use-livecode

Aha! Thanks, Panos.

So probably what made the difference for me wasn't the re-encoded movie, it 
was all the messing about I did in the process that at some point had the 
right effect...


Ben

On 27/03/2017 13:47, panagiotis merakos via use-livecode wrote:

Hi all,

Before LC 8.1.0, one could put other objects on top of the player object,
if alwaysBuffer==true. This has broken in LC 8.1.0+.

A workaround is described in this bug report:

http://quality.livecode.com/show_bug.cgi?id=19444

Best,
Panos
--

On Mon, Mar 27, 2017 at 1:35 PM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:


Hi Rick

Thanks for your reply.


I think once a movie starts playing other LC messages don’t
have time to be sent. The video just takes over because
it’s showing each frame quickly so your eye tells you
it’s a movie.


I don't think that's it. I've had time codes displays running before,
achieved in this way, so something that normally works, doesn't. I haven't
worked out if this is an issue with 8.1.3 or another side effect of the
particular movie. Or just that working late on a small screen, I made some
other stupid mistake.


One solution I had to use in the past to make a decent
animation was to break the movie into each frame and
then put each frame onto each card.


I took a similar approach for now - rather than playing the movie and then
catching the currenttime, I used my timer to keep setting the current time,
moving it on a frame at a time (in fact for now I wanted to export a
timelapse of the movie anyway, so was happy to jump it along half-a-second
at a time). But in my ideal world I'd have this working interactively,
including allowing the user to scrub the movie to a different time and have
the data graphics update as they did.


I tried importing a Quicktime movie which had the .mov suffix into LC.
I put a graphic on top of the movie and when I went to play the movie
the movie put itself on top of the graphic.  So what to I need to do to
recreate your solution?


That's what I don't know yet! Obviously it's not enough that it's a .mov
instead of a .mp4; when I exported it, the movie also changed codec,
resolution, framerate... (partly because I was in a hurry so I decided to
work with a smaller lighter version to make progress). I'll need to try
some experiments with changing fewer attributes to find out which is the
crucial one.

What are the characteristics of the movie you tried it with, that didn't
work?

Ben



On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:



Hi Ben,

To try to answer the second part of your question first.
I think once a movie starts playing other LC messages don’t
have time to be sent. The video just takes over because
it’s showing each frame quickly so your eye tells you
it’s a movie.

One solution I had to use in the past to make a decent
animation was to break the movie into each frame and
then put each frame onto each card.  I had a short
movie so it ended up being 254 cards.  It was for iOS
so I needed to optimize for a cell phone processor.
Then I was able to have a graphic which appeared
on every card move on top of the changing cards.
So my animated character was able to move around
freely on top of a video background.  I was able to
adjust the timing of the loops so it looked pretty good.

Regarding the first part of your message:
I’m trying to duplicate some of your experience here.

Eventually I discovered by accident that this only applies to some

videos. For now, I got the job I needed to do done by rendering the
original .mp4 into a .mov with QuicktimePlayer's default settings; I
haven't had time to establish what the crucial factors are. Is this
known/documented anywhere?



I tried importing a Quicktime movie which had the .mov suffix into LC.
I put a graphic on top of the movie and when I went to play the movie
the movie put itself on top of the graphic.  So what to I need to do to
recreate your solution?

Thanks,

Rick




On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode <

use-livecode@lists.runrev.com> wrote:

I'm trying to overlay some graphics on a video, and hit a couple of
problems.

The first, which drove me somewhat mad until I found an out, was that
the video was always displayed on top of other LC elements - graphics,
fields. This is using a player object; I found that the controller would be
rendered correctly layered among other objects, and indeed would obey
blending levels; and occasionally in tool mode the video frame would also;
but once I switched back to browse mode and played the video, it invariably
displayed on top of everything else, at 100% opacity. Toggling the "buffer"
property did not appear to make a difference.

Eventually I discovered by accident that this only applies to some
videos. For now, I got the job I needed to do done by rendering the
original .mp4 into a .mov with QuicktimePlayer's default settings; I
haven't had time to establish what the crucial factors are. Is this

Re: Overlaying on video

2017-03-27 Thread panagiotis merakos via use-livecode
Hi all,

Before LC 8.1.0, one could put other objects on top of the player object,
if alwaysBuffer==true. This has broken in LC 8.1.0+.

A workaround is described in this bug report:

http://quality.livecode.com/show_bug.cgi?id=19444

Best,
Panos
--

On Mon, Mar 27, 2017 at 1:35 PM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Rick
>
> Thanks for your reply.
>
> > I think once a movie starts playing other LC messages don’t
> > have time to be sent. The video just takes over because
> > it’s showing each frame quickly so your eye tells you
> > it’s a movie.
>
> I don't think that's it. I've had time codes displays running before,
> achieved in this way, so something that normally works, doesn't. I haven't
> worked out if this is an issue with 8.1.3 or another side effect of the
> particular movie. Or just that working late on a small screen, I made some
> other stupid mistake.
>
> > One solution I had to use in the past to make a decent
> > animation was to break the movie into each frame and
> > then put each frame onto each card.
>
> I took a similar approach for now - rather than playing the movie and then
> catching the currenttime, I used my timer to keep setting the current time,
> moving it on a frame at a time (in fact for now I wanted to export a
> timelapse of the movie anyway, so was happy to jump it along half-a-second
> at a time). But in my ideal world I'd have this working interactively,
> including allowing the user to scrub the movie to a different time and have
> the data graphics update as they did.
>
> > I tried importing a Quicktime movie which had the .mov suffix into LC.
> > I put a graphic on top of the movie and when I went to play the movie
> > the movie put itself on top of the graphic.  So what to I need to do to
> > recreate your solution?
>
> That's what I don't know yet! Obviously it's not enough that it's a .mov
> instead of a .mp4; when I exported it, the movie also changed codec,
> resolution, framerate... (partly because I was in a hurry so I decided to
> work with a smaller lighter version to make progress). I'll need to try
> some experiments with changing fewer attributes to find out which is the
> crucial one.
>
> What are the characteristics of the movie you tried it with, that didn't
> work?
>
> Ben
>
>
>
> On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:
>
>>
>> Hi Ben,
>>
>> To try to answer the second part of your question first.
>> I think once a movie starts playing other LC messages don’t
>> have time to be sent. The video just takes over because
>> it’s showing each frame quickly so your eye tells you
>> it’s a movie.
>>
>> One solution I had to use in the past to make a decent
>> animation was to break the movie into each frame and
>> then put each frame onto each card.  I had a short
>> movie so it ended up being 254 cards.  It was for iOS
>> so I needed to optimize for a cell phone processor.
>> Then I was able to have a graphic which appeared
>> on every card move on top of the changing cards.
>> So my animated character was able to move around
>> freely on top of a video background.  I was able to
>> adjust the timing of the loops so it looked pretty good.
>>
>> Regarding the first part of your message:
>> I’m trying to duplicate some of your experience here.
>>
>> Eventually I discovered by accident that this only applies to some
>>> videos. For now, I got the job I needed to do done by rendering the
>>> original .mp4 into a .mov with QuicktimePlayer's default settings; I
>>> haven't had time to establish what the crucial factors are. Is this
>>> known/documented anywhere?
>>>
>>
>> I tried importing a Quicktime movie which had the .mov suffix into LC.
>> I put a graphic on top of the movie and when I went to play the movie
>> the movie put itself on top of the graphic.  So what to I need to do to
>> recreate your solution?
>>
>> Thanks,
>>
>> Rick
>>
>>
>>
>>
>> On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
>>> I'm trying to overlay some graphics on a video, and hit a couple of
>>> problems.
>>>
>>> The first, which drove me somewhat mad until I found an out, was that
>>> the video was always displayed on top of other LC elements - graphics,
>>> fields. This is using a player object; I found that the controller would be
>>> rendered correctly layered among other objects, and indeed would obey
>>> blending levels; and occasionally in tool mode the video frame would also;
>>> but once I switched back to browse mode and played the video, it invariably
>>> displayed on top of everything else, at 100% opacity. Toggling the "buffer"
>>> property did not appear to make a difference.
>>>
>>> Eventually I discovered by accident that this only applies to some
>>> videos. For now, I got the job I needed to do done by rendering the
>>> original .mp4 into a .mov with QuicktimePlayer's default settings; I
>>> haven't had time to establish what the crucial 

Re: Overlaying on video

2017-03-27 Thread Ben Rubinstein via use-livecode

Hi Rick

Thanks for your reply.

> I think once a movie starts playing other LC messages don’t
> have time to be sent. The video just takes over because
> it’s showing each frame quickly so your eye tells you
> it’s a movie.

I don't think that's it. I've had time codes displays running before, achieved 
in this way, so something that normally works, doesn't. I haven't worked out 
if this is an issue with 8.1.3 or another side effect of the particular movie. 
Or just that working late on a small screen, I made some other stupid mistake.


> One solution I had to use in the past to make a decent
> animation was to break the movie into each frame and
> then put each frame onto each card.

I took a similar approach for now - rather than playing the movie and then 
catching the currenttime, I used my timer to keep setting the current time, 
moving it on a frame at a time (in fact for now I wanted to export a timelapse 
of the movie anyway, so was happy to jump it along half-a-second at a time). 
But in my ideal world I'd have this working interactively, including allowing 
the user to scrub the movie to a different time and have the data graphics 
update as they did.


> I tried importing a Quicktime movie which had the .mov suffix into LC.
> I put a graphic on top of the movie and when I went to play the movie
> the movie put itself on top of the graphic.  So what to I need to do to
> recreate your solution?

That's what I don't know yet! Obviously it's not enough that it's a .mov 
instead of a .mp4; when I exported it, the movie also changed codec, 
resolution, framerate... (partly because I was in a hurry so I decided to work 
with a smaller lighter version to make progress). I'll need to try some 
experiments with changing fewer attributes to find out which is the crucial one.


What are the characteristics of the movie you tried it with, that didn't work?

Ben


On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:


Hi Ben,

To try to answer the second part of your question first.
I think once a movie starts playing other LC messages don’t
have time to be sent. The video just takes over because
it’s showing each frame quickly so your eye tells you
it’s a movie.

One solution I had to use in the past to make a decent
animation was to break the movie into each frame and
then put each frame onto each card.  I had a short
movie so it ended up being 254 cards.  It was for iOS
so I needed to optimize for a cell phone processor.
Then I was able to have a graphic which appeared
on every card move on top of the changing cards.
So my animated character was able to move around
freely on top of a video background.  I was able to
adjust the timing of the loops so it looked pretty good.

Regarding the first part of your message:
I’m trying to duplicate some of your experience here.


Eventually I discovered by accident that this only applies to some videos. For 
now, I got the job I needed to do done by rendering the original .mp4 into a 
.mov with QuicktimePlayer's default settings; I haven't had time to establish 
what the crucial factors are. Is this known/documented anywhere?


I tried importing a Quicktime movie which had the .mov suffix into LC.
I put a graphic on top of the movie and when I went to play the movie
the movie put itself on top of the graphic.  So what to I need to do to
recreate your solution?

Thanks,

Rick





On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode 
 wrote:

I'm trying to overlay some graphics on a video, and hit a couple of problems.

The first, which drove me somewhat mad until I found an out, was that the video was 
always displayed on top of other LC elements - graphics, fields. This is using a player 
object; I found that the controller would be rendered correctly layered among other 
objects, and indeed would obey blending levels; and occasionally in tool mode the video 
frame would also; but once I switched back to browse mode and played the video, it 
invariably displayed on top of everything else, at 100% opacity. Toggling the 
"buffer" property did not appear to make a difference.

Eventually I discovered by accident that this only applies to some videos. For 
now, I got the job I needed to do done by rendering the original .mp4 into a 
.mov with QuicktimePlayer's default settings; I haven't had time to establish 
what the crucial factors are. Is this known/documented anywhere?

The second problem - which I also found frustrating because I'm sure I've done 
something similar before without this arising - was in triggering the updates 
to my overlay graphics. I thought that I could have a timer sending a regular 
message to my code which would check the time of the movie, and adjust graphics 
appropriately. The code worked but I only saw an update twice; when the movie 
started, and when it stopped. As far as I could tell this wasn't an issue about 
the screen not updating; but that the message genuinely wasn't sent while the 

Re: LiveCode's handling of Unicode glyphs being dependent on the underlying OS

2017-03-27 Thread Mark Waddingham via use-livecode

On 2017-03-27 13:56, Richmond via use-livecode wrote:

"UnicodeChecker is being developed using the Objective-C programming
language with the standard macOS developer tools, i.e. Xcode and the
Cocoa frameworks. The display of Unicode characters uses the default
system facilities of macOS. So there is no special handling of newer
Unicode characters: While Mac OS X 10.7.5 does not support the latest
Unicode versions when it comes to the character properties (such as
„General Category“, „Combining Class“, etc.) it will happily just
display any character that is present in a font, even if the character
was not actually defined in the very specific version of Unicode that
this version of Mac OS X supports."


Well, yes - it is just displaying the glyph completely out of context.


Now what is interesting is that LC 8.1.3 on Mac OS 10.7.5 will NOT
display characters simply as
characters, but tries to be too clever for its own good.


No - it is not being too clever. It is doing precisely what it should 
for the purposes of laying out text (and indeed what the CoreText engine 
on MacOS does - as that is what the engine uses). Pretty much everyone 
writing apps does not want to care about the (very complex) details of 
turning text into positioned glyphs, they just want a text string to be 
rendered how 'you would' expect, with regard to the codified rules which 
have been developed over a large number of years for typesetting 
language into a printed representation. Moreover, generally people want 
that done in a way which is 100% consistent with all other apps on the 
same OS (which is why using system services for such things is so 
important - Windows, for example, has a lot of behaviors built-in for 
dealing with CJK fonts which date back 1-2 decades, if an app doesn't 
support those then it won't operate in the same fashion).



As I am the developer of a program that does "all the knitting"
internally all I really would like is exactly
what this chap describes above. The fact that LiveCode seems to be
doing some of "the knitting" off
its own bat and/or leveraging OS "knitting" is what is causing me 
problems.


Quite - you have a special-case - you don't want to layout text, you 
(probably) just want to render glyphs which you specify.



I have already run the latest builds of my Devawriter on Mac OS 10.12
and Ubuntu 16.04
without these problems.  However I have several clients who run their
Macs on Mac OS 10.6.


Well, it is unlikely that anything will change with regards 10.6 with 
regards LiveCode. 8.1.x will be the last branch which will support 
anything less than 10.9.


To be fair, 10.6 is pretty much now a completely dead operating system 
for anything other than offline use. Critically, it does not and will 
never support some new SSL related transport modes, nor does it get 
Certificate Store updates. Basically, as time goes by the number of 
things a 10.6 machine will happily connect to *safely and securely* 
'over the internet' will diminish to probably zero. (I know this from 
experience - my laptop is still on 10.6 for various reasons and is just 
about unusable now as it can't be used to connect a variety of online 
services anymore - updating it to 10.11 or 10.12 is on my todo list).


In regards to your specific requirements, I had a thought on that last 
night. I think essentially what you want is a way to treat a sequence of 
codepoints in a field as a sequence of glyph indicies into the current 
font. So rather than treating the 0x1CF7 codepoint as a character, it 
would just be treated as a number to index into the glyph table of the 
(inherited) font set on its style. This could be done as a textStyle, 
although that would give you no control over positioning, the only thing 
it could do there is use the advance width / baseline in the glyph to 
position it sequentially.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-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's handling of Unicode glyphs being dependent on the underlying OS

2017-03-27 Thread Richmond via use-livecode
Here is an interesting extract from the reply I got from the maker of 
Unicode Checker:


"UnicodeChecker is being developed using the Objective-C programming 
language with the standard macOS developer tools, i.e. Xcode and the 
Cocoa frameworks. The display of Unicode characters uses the default 
system facilities of macOS. So there is no special handling of newer 
Unicode characters: While Mac OS X 10.7.5 does not support the latest 
Unicode versions when it comes to the character properties (such as 
„General Category“, „Combining Class“, etc.) it will happily just 
display any character that is present in a font, even if the character 
was not actually defined in the very specific version of Unicode that 
this version of Mac OS X supports."


Now what is interesting is that LC 8.1.3 on Mac OS 10.7.5 will NOT 
display characters simply as

characters, but tries to be too clever for its own good.

As I am the developer of a program that does "all the knitting" 
internally all I really would like is exactly
what this chap describes above. The fact that LiveCode seems to be doing 
some of "the knitting" off

its own bat and/or leveraging OS "knitting" is what is causing me problems.

I have already run the latest builds of my Devawriter on Mac OS 10.12 
and Ubuntu 16.04
without these problems.  However I have several clients who run their 
Macs on Mac OS 10.6.


Best, Richmond.

On 27/03/17 13:36, Mark Waddingham via use-livecode wrote:

On 2017-03-26 17:48, Richmond Mathewson via use-livecode wrote:

Interestingly enough this FREE program for Macintosh:

https://www.macupdate.com/app/mac/9752/unicodechecker

Very successfully displays glyphs I have built into my Devawriter.ttf
font in comformance
with the Unicode version 10 Beta specification.

This all on my supposedly outmoded system 10.7.5 plastic box.


Just an update here - my 10.11 box does happily display all three 
characters as needed in LiveCode and other apps. When I initially 
installed the devawriter font which was supplied, it must not have 
installed it properly (I think I might have had an old version 
installed). After removing 'Devawriter' completely (using Font Book) 
and then reinstalling (by double clicking the latest version) - I get 
all codepoints appearing as expected.


Warmest Regards,

Mark.




___
use-livecode mailing list
use-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's handling of Unicode glyphs being dependent on the underlying OS

2017-03-27 Thread Mark Waddingham via use-livecode

On 2017-03-26 17:48, Richmond Mathewson via use-livecode wrote:

Interestingly enough this FREE program for Macintosh:

https://www.macupdate.com/app/mac/9752/unicodechecker

Very successfully displays glyphs I have built into my Devawriter.ttf
font in comformance
with the Unicode version 10 Beta specification.

This all on my supposedly outmoded system 10.7.5 plastic box.


Just an update here - my 10.11 box does happily display all three 
characters as needed in LiveCode and other apps. When I initially 
installed the devawriter font which was supplied, it must not have 
installed it properly (I think I might have had an old version 
installed). After removing 'Devawriter' completely (using Font Book) and 
then reinstalling (by double clicking the latest version) - I get all 
codepoints appearing as expected.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


[ANN] This Week in LiveCode 76

2017-03-27 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #76 here: https://goo.gl/9qbqH8

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project.  New issues will be
released weekly on Mondays.  We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

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