Re: Player Control and focus

2016-11-18 Thread Paul Hibbert
In a quick test on Mac, you can still trap the rawKeyDown in the player control 
and respond to the result so…

on rawKeyDown pKey

if pKey = "65363" then go next card

if pKey = "65361" then go prev card

pass rawKeyDown

end rawKeyDown


…Should work.

Paul

> On Nov 18, 2016, at 6:17 PM, Peter Bogdanoff  wrote:
> 
> I’m seeing:
> 
> LC 6: click on a player control to give it focus and the keyboard spacebar 
> pauses and resumes the player.
> 
> LC 8.1.2 rc2: click on a player to give it focus and the keyboard spacebar 
> pauses and resumes the player, the left arrow key moves the playhead 
> backwards, and the right arrow key tries to move it forward.
> 
> Is there a property that turns this behavior off and on?
> 
> This behavior is a challenge when I want the spacebar to pause/resume, but 
> the arrow keys to navigate cards.
> 
> These are all standard interface conventions, but the implementation in LC 8 
> seems, well, undocumented.
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-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

Player Control and focus

2016-11-18 Thread Peter Bogdanoff
I’m seeing:

LC 6: click on a player control to give it focus and the keyboard spacebar 
pauses and resumes the player.

LC 8.1.2 rc2: click on a player to give it focus and the keyboard spacebar 
pauses and resumes the player, the left arrow key moves the playhead backwards, 
and the right arrow key tries to move it forward.

Is there a property that turns this behavior off and on?

This behavior is a challenge when I want the spacebar to pause/resume, but the 
arrow keys to navigate cards.

These are all standard interface conventions, but the implementation in LC 8 
seems, well, undocumented.

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


Bundling an External into a Windows EXE?

2016-11-18 Thread Paul Dupuis
Does anyone have any tricks to bundle an external (revZip in my case)
into the EXE built by the Standalone maker?

Once really nice thing about the OSX app bundle (a special folder the OS
treats as a bundle) is that if a use drags an app somewhere, everything
that belongs to it moves with it. Certain resources, like icons, can be
bundled into the EXE, using various Windows resource editor tools, so
that has led me to wonder if there are any tricks to folding the dll of
an external into the exe in a way that the LiveCode engine can find 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: Can the new player work with YouTube in 8.1.1?

2016-11-18 Thread Roger Eller
 For some reason, I never received the replies to my question, and it
wasn't in spam either.

Thank you Paul Hibbert, and Peter Bogdanoff for your suggestions!

~Roger

Peter Bogdanoff

 Thu, 17 Nov 2016 15:19:54 -0800


It might be the codec that YouTube is using. See:
http://video.stackexchange.com/questions/5318/how-does-youtube-encode-my-uploads-and-what-codec-should-i-use-to-upload

Peter


-

Paul Hibbert

 Thu, 17 Nov 2016 17:15:12 -0800


One way that does work with YouTube is to use a browser widget instead of the
player control, then set the URL to the “embed” link provided by YouTube, but
first, remove all of the iFrame tags and parameters, so in this case the URL
would be, https://www.youtube.com/embed/K033kBr3C6c


HTH

Paul

> On Nov 17, 2016, at 2:10 PM, Roger Eller  >> wrote:
>
> A YouTube URL doesn't seem to work as the fileName.  Is there some special
> method or format of the URL needed?
>
> on mouseUp
>
> set the fileName of player 1 to "https://www.youtube.com/watch?v=K033kBr3C6c
> 
> "
>
> end mouseUp
>
>
> ~Roger
> ___
> use-livecode mailing list
> use-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: [OT] Quartum PDF Library - How to change text color of a cell in a table?

2016-11-18 Thread Roger Eller
Thanks for your reply, Jan. I just found your reply in SPAM, lol.  Anyhow,
the team decided that black text is just fine.  :)

~Roger


On Sat, Nov 12, 2016 at 10:09 AM, Jan Schenkel 
wrote:

> Hi Roger,
>
> Sorry for the late reply - I was at the Devoxx conference this past week
> and am only now wading through my email backlog.
>
> As you found out, the qrtPDF_WriteTextTable command doesn't currently
> offer a way to influence the formatting for an individual cell.
> It was designed for single formatting, and adding a callback function to
> let you influence the formatting per cell means it will need some
> refactoring.
> After all, if you were to change not only the colour but also the font
> style or size, the calculation of the row heights becomes a lot more
> complex.
> That is not to say that the idea is too hard to pursue, but it will take
> time to get it 'right' under all circumstances.
>
> In the meantime, you can build the table with separate qrtPDF_WriteTextBox
> commands, as demonstrated in Example 4 of the script demos stack.
> If you need a hand with that, feel free to post on the Quartam forums at <
> http://forums.quartam.com> or email me directly.
>
> Best regards,
>
> Jan Schenkel.
>
> =
> Quartam Reports & PDF Library for LiveCode
> www.quartam.com
>
> =
> "As we grow older, we grow both wiser and more foolish at the same time."
> (La Rochefoucauld)
>
> 
> On Mon, 11/7/16, Roger Eller  wrote:
>
>  Subject: [OT] Quartum PDF Library - How to change text color of a cell in
> atable?
>  To: "How to use LiveCode" 
>  Date: Monday, November 7, 2016, 9:41 PM
>
>  I am using Jan Shenkel's PDF Library
>  in a project, and need to display
>  negative numbers in a table in red.
>  It seems to be possible to affect the entire table, but how
>  can I apply
>  color commands to a specific cell?
>
>  TIA,
>  ~Roger
>
>
___
use-livecode mailing list
use-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: LC 6 to 8 some strange expieriences aligning objects at resizeStack

2016-11-18 Thread Tiemo Hollmann TB
Thanks Jan, I'll have a look to it.
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Jan Schenkel
Gesendet: Freitag, 18. November 2016 10:47
An: How to use LiveCode 
Betreff: Re: LC 6 to 8 some strange expieriences aligning objects at
resizeStack

Hi Tiemo,

You can always revert to the 'emulated' look and feel by changing the theme
of the stack from "native" to "legacy".
There's no drop-down in the property inspector, so you'll have to use the
message box.

HTH,

Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."
(La Rochefoucauld)


On Thu, 11/17/16, Tiemo Hollmann TB  wrote:

 Subject: LC 6 to 8 some strange expieriences aligning objects at
resizeStack
 To: "LiveCode User Liste senden" 
 Date: Thursday, November 17, 2016, 3:34 PM
 
 Hello,
 
 I am migrating an old LC 2-6 stack to LC 8.1.1 In this stack  I resize and
arrange all objects by script when resizing the window.
 
 First experience was, that on Windows everything worked the  same as in LC
6,  all objects looked fine and aligned when resizing.
 
 On OS X 10.11 I am still fiddling around since some days to  get all
objects  aligned. The nasty thing is, that I now have lots of code,  which I
have to  differentiate between Win and Mac, where I had all the same  code
for  resizing up to now in LC 6.
 
 One of the tiny, nasty things is, that the rect of an option  button now
can  be different, as the visible rect of the button. Only at the  default
button  height of 22 both are congruent. I know, this is a new thing  of the
underlying OS X drawing routines. But since I can't test it,  I have no
idea,  what happens going back on a 10.8 system or to Sierra, are  there the
same  graphic objects, or do I have to differentiate for  10.8,10.9,..?
 
 What is more annoying is that the height of the stack isn't  anymore the
same  as the parameter newHeight of the resizeStack handler (what  it was
before on  OS X and still is on Windows). Again lots more of code
differentiation.
 
 Another weird issue is that the video appears 26 pixel lower  as the player
object is located (26 is the height of my stack menubar).
 Now I have to
 place the player object more to top by the height of the  menubar. Since I
couldn't create a recipie in a test stack for this strange  issue, I didn't
reported this as a bug. Again here I feel very unsafe if  this hard coded
workaround to place the player object more to top, as the  video has to
appear, works on all OS X platforms.
 
 Now I feel very uncomfortable with LC 8.1.1 shortly before  release.
 (Unfortunatly I discovered these resizing anomalies on OS X  pretty late in
my project) 
 
 Do you have any similar experiences? Any recommendations?
 
 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
 

___
use-livecode mailing list
use-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 6 to 8 some strange expieriences aligning objects at resizeStack

2016-11-18 Thread Jan Schenkel
Hi Tiemo,

You can always revert to the 'emulated' look and feel by changing the theme of 
the stack from "native" to "legacy".
There's no drop-down in the property inspector, so you'll have to use the 
message box.

HTH,

Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


On Thu, 11/17/16, Tiemo Hollmann TB  wrote:

 Subject: LC 6 to 8 some strange expieriences aligning objects at resizeStack
 To: "LiveCode User Liste senden" 
 Date: Thursday, November 17, 2016, 3:34 PM
 
 Hello,
 
 I am migrating an old LC 2-6 stack to LC 8.1.1 In this stack
 I resize and
 arrange all objects by script when resizing the window.
 
 First experience was, that on Windows everything worked the
 same as in LC 6,
 all objects looked fine and aligned when resizing.
 
 On OS X 10.11 I am still fiddling around since some days to
 get all objects
 aligned. The nasty thing is, that I now have lots of code,
 which I have to
 differentiate between Win and Mac, where I had all the same
 code for
 resizing up to now in LC 6.
 
 One of the tiny, nasty things is, that the rect of an option
 button now can
 be different, as the visible rect of the button. Only at the
 default button
 height of 22 both are congruent. I know, this is a new thing
 of the
 underlying OS X drawing routines. But since I can't test it,
 I have no idea,
 what happens going back on a 10.8 system or to Sierra, are
 there the same
 graphic objects, or do I have to differentiate for
 10.8,10.9,..?
 
 What is more annoying is that the height of the stack isn't
 anymore the same
 as the parameter newHeight of the resizeStack handler (what
 it was before on
 OS X and still is on Windows). Again lots more of code
 differentiation.
 
 Another weird issue is that the video appears 26 pixel lower
 as the player
 object is located (26 is the height of my stack menubar).
 Now I have to
 place the player object more to top by the height of the
 menubar. Since I
 couldn't create a recipie in a test stack for this strange
 issue, I didn't
 reported this as a bug. Again here I feel very unsafe if
 this hard coded
 workaround to place the player object more to top, as the
 video has to
 appear, works on all OS X platforms.
 
 Now I feel very uncomfortable with LC 8.1.1 shortly before
 release.
 (Unfortunatly I discovered these resizing anomalies on OS X
 pretty late in
 my project) 
 
 Do you have any similar experiences? Any recommendations?
 
 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
 

___
use-livecode mailing list
use-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: Signing an application for distribution outside the Mac App Store

2016-11-18 Thread Tiemo Hollmann TB
I don't know, if thats the issue for this error message, but as the name of
the certificate you should only use "My Company", not "Developer ID
Application: My Company"
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Richard Miller
Gesendet: Mittwoch, 16. November 2016 02:49
An: How to use LiveCode 
Betreff: Signing an application for distribution outside the Mac App Store

I am following the livecode instructions for "Signing an application for
distribution outside the Mac App Store".

When I run this in terminal:

   codesign -s "Developer ID Application: My Company" 
/Path/To/My/Application.app

 I get back this error message: "resource fork, Finder information, or
similar detritus not allowed"

I am trying to sign a LC app built in LC 8.0.0 dp16 running under OS Sierra
and XCode 8.1.

Thoughts?

Thanks,
Richard Miller

___
use-livecode mailing list
use-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