Re: ios custom URL scheme

2015-11-13 Thread J. Landman Gay

On 11/13/2015 4:27 PM, John Dixon wrote:

Would it be possible to send a text message to a phone that contains
a custom URL that could be used to launch an app on the device ?


I hope not. That sounds a little like what the Stagefright virus does on 
Android phones.


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


[OT] For you Arduino fans

2015-11-20 Thread J. Landman Gay

Here's something you can do with your Arduino:



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


Re: [OT] For you Arduino fans

2015-11-20 Thread J. Landman Gay

True, but don't tell me you don't want one. ;)

On 11/20/2015 2:17 PM, Monte Goulding wrote:

Some folks have wy too much time on their hands ;-)


On 21 Nov 2015, at 7:14 am, J. Landman Gay  wrote:

Here's something you can do with your Arduino:

<https://www.youtube.com/watch?v=pQ2dI_B_Ycg>


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


Re: Keeping a fixed aspect ratio while resizing a stack

2015-11-20 Thread J. Landman Gay

On 11/20/2015 4:56 PM, Scott Rossi wrote:

Try this (in your message box):

go url"http://tactilemedia.com/download/constrained.livecode";


Nice. Is there anything at all you haven't figured out yet?

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


Re: [OT] For you Arduino fans

2015-11-21 Thread J. Landman Gay

On 11/21/2015 6:30 PM, Dr. Hawkins wrote:

On Fri, Nov 20, 2015 at 12:27 PM, Monte Goulding  wrote:


Only because I could control it with mergBLE ;-)



"Belligerent Lifelike Evil"  ?


Binary Little Elves.

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


Re: revStacks hitting my openField handler in library

2015-11-21 Thread J. Landman Gay

On 11/21/2015 8:55 PM, Dr. Hawkins wrote:

All in all, though, about 12 hours to work around the staggering deficiency
of the IDE.


No deficiency. You put a script into the main message path and the IDE 
happened to get some messages before your library did. All messages pass 
through all the libraries unless another script earlier in the hierarchy 
stops it.


Libraries have a layering order dependent on the order in which they 
were inserted. Since the IDE is already set up before your stack's 
library is inserted, the IDE libraries will catch messages before your 
library sees them. The order can change when/if another library is 
inserted or removed. If you were to remove all the IDE library scripts, 
insert yours, and then re-insert the IDE ones, yours would have caught 
the messages first. But since you can't rely on the layering order of 
any particular library, it's safer to just avoid common message handlers 
whenever possible, or test to make sure the message is one you want to 
handle.


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


Re: Error code parser?

2015-11-23 Thread J. Landman Gay

On 11/23/2015 3:34 PM, Mark Wieder wrote:

On 11/23/2015 12:00 PM, Paul Hibbert wrote:

Jacque’s stack may help too…

http://livecodeshare.runrev.com/stack/712/LiveCode-Error-Lookup


Thanks, Paul. I remember Jaque had a stack but couldn't remember where.



Just to give credit where it's due, Richard Gaskin wrote a lot of the 
lookup stack too, we co-authored it.


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

Re: One Rect For All specificaiton

2015-11-25 Thread J. Landman Gay
Actually, I think what he's looking for will be in "showAll" mode. The 
specs he/we need are:


1. Ideal stack size for the actual stack file
2. Ideal screen ratio
3. The "target" area where controls should be located and still be 
visible on any device
4. The "margin" area to consider on larger screens so that background 
images can be sized to cover the whole screen.


I wish I could see your example pages, they'd be very useful, but they 
require Flash and I don't have that installed any more. Several browsers 
either disallow it entirely or turn it off by default, and I've stopped 
updating it. :(



On 11/25/2015 6:33 AM, Colin Holgate wrote:

What you’re describing is one variation of solving the problem, and
in LiveCode that is what the different full screen modes do. The one
you’re showing is the noborder variation, only you’re using it in a
way where you are dictating the standard width.

Look at these links I’ve posted before, and resize your browser
window in a range of 4:3 to 16:9, you can see what happens to the
content in each case.

The two types I use the most are showall and noborder.

http://colin.scienceninja.com/topleftnoscale.html
http://colin.scienceninja.com/showall.html
http://colin.scienceninja.com/noscale.html
http://colin.scienceninja.com/noborder.html
http://colin.scienceninja.com/exactfit.html



On Nov 24, 2015, at 11:19 PM, Brahmanathaswami 
wrote:

I want to kick off a discussion on target rects for design work.

We may have a small team of animators and illustrators start work
on some projects that would eventually find their way into a mobile
app. For these "modules" I would lock it to landscape.

For "Agile animation development" (= shorten time from script to
end product, go live, time cycle) I don't want, at least initially
to have this team be burdened with having to create multiple
versions of anything.

So I need to give them a spec for, what we typically call in the
printing word "trim size " and "Live Matter safety margins"

These would equate to the area that is left after a physical book
is "chopped out" and then another limit which is "by design" for
elements inside that area... 1/4" being a typical minimum for any
type object...

with devices, "trim size" equates with "screen size" So here is
what I've dreamed up so far. but we also have a third property of
the spec in this world: full background rect, trim size when same
data is display on 16 X 9  and then the live matter margins.

1) they design in 4 X 3  (if doing comics on paper, then they work
on pad/canvas that is e.g. 12" wide 9" tall (4x3)... -- i.e. the
background art has to fill that entire space.

2) Safety zone/matter (as we way in printing biz...) must fit in
the 16 X 9 rect *inside* that background -- key characters and
important visual elements must all fit inside 16 X 9... so that
there is "dead space" above and below (but filled with imagery like
trees or landscape, textures etc.)

3) Live matter zone/margins then ( how far away things should be
from the edge of the screen) then is  I believe in Googles'
material design spec 40 pixels..for actual objects, text field
"voice balloons" in comics, buttons, info boxes etc... away from
the edge the 16 X 9 rect...

if I Open InDesign and ask for a digital publishing document the
default is for iPad.. with 36 margins

building on that we ge

a) full canvas:  1024p x 768p b) safety zone size:  1024 x 576
(letterboxed top and bottom) c) LIve matter zone: 952p x 504p

flip for portrait

see:

http://wiki.hindu.org/screenshots/SafetySizeGuide.pdf
http://wiki.hindu.org/screenshots/SafetySizeGuide.jpg


Comments on this thinking  Has anyone already worked this out?



___ 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




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

Re: Death of the Application Browser

2015-11-25 Thread J. Landman Gay
It needs to come back. I can't work without it. Project browser is not an 
acceptable replacement for the kind of stacks I work with. 

On November 25, 2015 8:19:05 PM CST, Colin Holgate  
wrote:
>Maybe it was there in DP9. Seems not to be there in DP10.
>
>
>> On Nov 25, 2015, at 9:10 PM, Mark Wieder 
>wrote:
>> 
>> On 11/25/2015 01:38 PM, Richmond wrote:
>>> On 25/11/15 22:54, Ali Lloyd wrote:
 It was put into the plugins menu in DP 9. Apologies for the lack of
 release
 note to that effect.
 
 
>>> Then why does it not show up menu/development/plugins  ???
>> 
>> Nor in /opt/livecode/livecodecommunity-8.0.0-dp-10.x86_64/Plugins
>> Looks like it's just gone.
>> 
>> -- 
>> 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

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


Re: Setting the color of a field's border

2015-11-25 Thread J. Landman Gay
It's always been like that. Three-d objects need at least 3 pixels to draw the 
effect. If you turn off Three-d the color will show up at any border width. 

On November 25, 2015 6:30:23 PM CST, Peter Haworth  wrote:
>I've been trying to set the border around a field to something other
>than
>its default by setting its topColor and bottomColor but didn't see the
>color show up.  By chance, I set the borderWidth to 3 instead of the
>default 2 and the color showed up.  Setting the borderWidth back to 2
>made
>the color disappear again.
>
>Is this expected behavior?  

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


Re: Death of the Application Browser

2015-11-26 Thread J. Landman Gay

On 11/26/2015 1:04 PM, Monte Goulding wrote:

What I don't really understand is why people aren't offering
suggestions on how to improve the project browser so it will work for
them. To my mind the simple solution would be to have multiple layout
modes (tree, list, column) and the ability to detach chunks of the
hierarchy into a separate window by double clicking or dragging. That
would open up a world of possibilities for copying and moving objects
around.


Something like that would work for me. The list had a long discussion 
about this before and I'm sure the team read it. It mainly comes down to 
those of us who work with very large stacks (mine contain hundreds or 
thousands of objects over 50 or more cards per stack.) The best way to 
work with stacks like this is to have a column view like Finder offers 
where you can see breadcrumbs that display the relationship of objects 
to their owners.


In my case, every stack is a clone of a master stack with only text and 
some objects replaced. That means that cards have no names (only IDs) 
and most objects are named identically across all the stacks. It isn't 
possible to identify where you are in the Project Browser because the 
containing group, card, or stack has scrolled out of view.


Another issue is the visual clutter, which I find very difficult to work 
with. I'd like to see the plainest kind of text list possible. I have 
already turned off thumbnails because outside of the clutter, they slow 
down the browser unacceptably when it is trying to update that many 
objects repeatedly. Even so, it is still too slow to work with. The App 
Browser updates instantly because it is pure text.


If the Project Browser could respond faster and offer column view so I 
know which object belongs to which card and stack I could possibly work 
with it.


If the team would like an example to work with, they have already signed 
the NDA for my big project and it shows these issues clearly. If they no 
longer have the stacks, I'd be very happy to resend them.


(Finally, I hope I didn't show any claws, though I admit that removing 
the App Browser would force me to remain in LC 7 indefinitely and I had 
a moment of despair.)


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


Java version

2015-11-27 Thread J. Landman Gay
A while back I installed Java 8 so I could build for Android and then 
found out I needed version 6, so used the link on Apple's web site to 
install that. Now I'm getting update notices for a new version of Java 
8. Does that mean I still have both installed? Will an update wipe out 
version 6?


So far I've ignored the update notices. I don't need Java except for 
Android builds.


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


Re: Java version

2015-11-28 Thread J. Landman Gay
Thanks, but the link in the post there times out so I can't get to it. Could 
you give a brief synopsis? My main confusion is whether I have two versions 
installed (and can therfore uninstall 8 entirely) or whether it's version 6 
that's triggering the update warning. 


On November 28, 2015 5:49:39 AM CST, Dave Kilroy  
wrote:
>Yes that java warning is annoying - see this thread on the forum
>http://forums.livecode.com/viewtopic.php?f=53&t=25951
>
>
>
>-
>"The difference between genius and stupidity is; genius has its
>limits." - Albert Einstein
>--
>View this message in context:
>http://runtime-revolution.278305.n4.nabble.com/Java-version-tp4699156p4699157.html
>Sent from the Revolution - User mailing list archive at Nabble.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

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


Re: Death of the Application Browser

2015-11-30 Thread J. Landman Gay

On 11/29/2015 12:50 AM, Brahmanathaswami wrote:

Jacque: can you detail your requirements that make it a must for your
stacks to use the AP?


1. Horizontal/column view so it is easy to drill down from stack to card 
to object, and see their relationships to everything else. Basically I 
want Finder column view.

2. I need to see card numbers and object layer numbers.
3. I need to see IDs for all cards and objects.
4. I need the ability to open the property inspector for an unselected 
object for quick reference, without changing the current selection or 
location.


I'll probably think of other things. The main problem for me is the 
amount of scrolling necessary to locate things, the inability to see 
where I'm at in the object hierarchy, and the way the PB forces unwanted 
navigation.


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


Re: Death of the Application Browser

2015-11-30 Thread J. Landman Gay

On 11/30/2015 4:29 PM, Monte Goulding wrote:

Thanks Jacque, this is a good list.


I deleted a long commentary before I hit Send. :)





2. I need to see card numbers and object layer numbers.


Would it be sufficient to have something like . 
instead of just ? Perhaps there might be a way in preferences
to specify an object descriptor to use??? This would be a fairly
lightweight change I think. Trying to add proper columns would be
much more work.


Number-name would work, though it isn't as easy to read as a column. But 
I'd be okay with it. Not sure what you mean by "object descriptor" though.





3. I need to see IDs for all cards and objects.


Do you need to see IDs all the time or just sometimes?


Just sometimes, but I usually leave IDs in view anyway. The tooltips in 
the AB make me crazy so I turn off tooltips (and I don't want them in LC 
8 either, but they're better than nothing.) I keep the ID column visible 
in the App Browser instead.



What do you
need them for? the tooltip gives you the long ID in LC 8. Would it be
helpful to have a Copy Object Reference > Short ID … Long Name in the
contextual menu? What about drag and drop object references to the
script editor or drag an image off the browser and drop on a button
and it sets the icon and IDs into the property inspector? All fairly
easy fixes but you need to detail what you are using the ID for to
see if they resolve the issue.


I do need IDs for icons, so either the "copy short ID" or drag/drop you 
suggest would be great -- as long as clicking on the image to drag it 
didn't change the selection. But IDs are imperative when I get an error 
message like this:


  Hint: field id 12345 of card id 2069 of stack...

This is common in mobile apps, and when it shows up it's almost 
impossible to find the object if you can't scan a list for IDs. In the 
App Browser you can display the IDs in their own column, and then sort 
the controls by ID. It only takes seconds to find the object that way. 
When I'm working on mobile apps I always have the ID column in the App 
Browser showing.


Which reminds me, someone mentioned the ability to sort by various 
criteria and this example is one of those times I need that. I work a 
lot on other people's stacks and you'd be surprised how many people 
never name the controls.





4. I need the ability to open the property inspector for an
unselected object for quick reference, without changing the current
selection or location.


Yes! Me too. Perhaps a preference whether clicking on the flipper of
a group selects the object and actions from the contextual menu
shouldn’t select the object. You should need to click on the name to
select the object and open the stack. I expect this isn’t all that
tricky a change either.


Agreed. Left-clicking the name should change the target object that will 
be acted on. Double-clicking a name should both change the target and 
additionally navigate to it in the stack. Right-clicking should present 
the contextual menu and leave the original target intact.


And a feature request: It would be nice to be able to copy or cut an 
object from elsewhere and paste it into the current card you're looking 
at, without needing to first change your location to go get that object.


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

Re: Death of the Application Browser

2015-12-01 Thread J. Landman Gay

On 12/1/2015 3:53 AM, Monte Goulding wrote:

>  But IDs are imperative when I get an error message like this:
>
>  Hint: field id 12345 of card id 2069 of stack…

Failing a proper mobile debugger some way to scroll to an object reference in 
the project browser would work for this. It probably would require a menu and a 
dialog to enter the object reference.


That would be more fiddly than just looking at a column of IDs.

So far the things we've talked about are work-arounds for the lack of a 
column view. The best solution would be to enhance the AB and include it 
as an alternate layout in the PB. It doesn't need much updating if the 
only goal is to make it "pretty".


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

Re: Death of the Application Browser

2015-12-01 Thread J. Landman Gay

On 12/1/2015 12:53 AM, Geoff Canyon wrote:

Navigator doesn't do the Finder column view exactly


That's the blocker for me, not just in Navigator but in all the 
alternate control browsers I've looked at (four so far.) All the 
alternatives are well written and feature-rich, but they are all use 
either separate lists, or very long lists with indentations to indicate 
owners and groups. With any more than a few controls, the indentations 
scroll off the window and you've lost your reference point.


The alternatives all appear to be very good tools for someone who works 
only on their own stacks with a limited number of controls. In that 
case, you already know the layout and structure, and it's fine to 
isolate things into independent lists and groups, or indented lists 
which won't be so long that they require a lot of scrolling or the 
additional overhead of repeated filtering. (And don't get me started on 
the PB filtering. There is no documentation in the user guide, and I 
can't remember the secret syntax that even lets me isolate a control 
type. In the AB you can just click on a header to do that.)


But a lot of my work involves short sprints with stacks that other 
people have written, where I don't know the layout or the organization. 
Controls often have no names and use haphazard layouts. I need an 
overview that doesn't require a lot of clicking around and doesn't 
require me to memorize what objects are on what card before I can 
navigate accurately. In that situation, isolated lists of things don't 
work, you always have to know where you are on the map. I need to jump 
from one place to another repeatedly, and the easiest way to do that is 
with a hierarchical breadcrumb display.


My ideal control browser would be based on the paned column view of the 
App Browser with some of the additional features of the PB added. I wish 
the AB had been enhanced rather than rewritten as an infinite list of 
awkwardly accessible controls that displays less information in a larger 
footprint.


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


Re: Death of the Application Browser

2015-12-01 Thread J. Landman Gay

You will be everyone's hero. I can't wait. :)

On 12/1/2015 2:51 PM, Scott Rossi wrote:

I'm waiting for an LC release that has the AB available as a plugin and to
look into doing exactly what you suggest.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 12/1/15, 11:49 AM, "use-livecode on behalf of J. Landman Gay"
 wrote:


On 12/1/2015 3:53 AM, Monte Goulding wrote:

  But IDs are imperative when I get an error message like this:

  Hint: field id 12345 of card id 2069 of stackŠ

Failing a proper mobile debugger some way to scroll to an object
reference in the project browser would work for this. It probably would
require a menu and a dialog to enter the object reference.


That would be more fiddly than just looking at a column of IDs.

So far the things we've talked about are work-arounds for the lack of a
column view. The best solution would be to enhance the AB and include it
as an alternate layout in the PB. It doesn't need much updating if the
only goal is to make it "pretty".

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




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

Re: Death of the Application Browser

2015-12-01 Thread J. Landman Gay

On 12/1/2015 4:37 PM, Geoff Canyon wrote:

I'm not sure I understand. If you have two buttons that you want to work
with, and the buttons are each three groups deep on separate cards in
separate stacks, then if you were looking at button "a" and wanted to look
at button "b" wouldn't a column view require you to:

1. Click on the stack containing button "b"
2. Click on the card in the stack containing button "b"
3. Click on the group on the card in the stack containing button "b"
4. Click on the group within that group on the card in the stack containing
button "b"
5. Click on button "b" to do whatever with it.

...and then rinse and repeat each time you want to switch


Groups are always expanded in the AB and substacks are always in the 
stack list, so you're never more than 3 clicks away from anything. (You 
can collapse the substacks, but I don't.) That's the advantage of a 
column layout.


You're right that two Navigators would eliminate the back and forth, 
though at the expense of screen space and a lot of manual manipulation. 
Imagine 25 Navigators, and the need to manually add a new one for each 
additional stack you open (and remove the old ones you don't need any 
more.) There are hundreds of stacks in this particular system, though I 
rarely open more than a couple dozen at a time. But those swap in and 
out of memory as I open and close various parts of the collection. An 
auto-updating text list is easier to work with.


I'm guessing my needs are unique, and also that the rest of the list is 
getting tired of us by now, so I'll taper off. Unless LC eliminates the 
AB entirely I'm okay. This discussion began because I thought they had, 
and I'm glad I was wrong.


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


Re: [OT] Free Game for iOS and Android

2015-12-02 Thread J. Landman Gay
I fell into MV and couldn't come out for days. It's the first really original 
game idea I've seen in years, and beautifully done. 

On December 2, 2015 10:02:00 AM CST, Scott Rossi  wrote:
>The mobile puzzle game Monument Valley by ustwo is currently available
>for
>free on both iOS and Android via Amazon Undergound. Described as more
>more
>of an experience than a game, this title is a beautiful example of
>visual
>design, mechanics, and sound design.  Even at full price I encourage
>people to purchase -- enjoy a memorable game experience and support
>some
>deserving developers.
>
>https://itunes.apple.com/us/app/monument-valley/id728293409?mt=8
>
>
>http://www.amazon.com/gp/product/B015OQVN8C?qid=1449032090
>
>
>LiveCode has no involvement with Monument Valley, and I'm not
>affiliated
>with ustwo, I'm just an enthusiast of the game.

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


Re: Death of the Application Browser

2015-12-02 Thread J. Landman Gay

Well, in the interests of learning then:

On 12/2/2015 12:01 AM, Geoff Canyon wrote:

I see a list of stacks/cards on the left. So there could be
substantial scrolling to get to the stack/card you're looking for, right?


Yes, sometimes. But not as much as in the Project Browser because stacks 
and cards aren't included in the same list with controls, and because I 
can sort things in different ways to bring items of interest into a 
logical order. If I need to scroll, I always know where I'm at.



Then the list on the right is a straightforward list of everything on the
card: groups and controls. This is the same as Navigator, but much bulkier
and without the ability to have multiple copies open at once. Is it even
filterable/searchable?


Bulky: probably in the eye of the beholder. I prefer the spacing in the 
AB because my eyes aren't great and I find small, tightly packed text 
very hard to read. (Navigator is a problem for me in that respect, btw.) 
A related issue affects me in the PB: too much visual clutter, which 
again makes it difficult for me to locate things quickly. Suggestion for 
users like me: remove the showLines and increase the textheight in all 
the lists.


The AB isn't searchable, but if I want that I use the Search dialog in 
the main menu. I rarely need it. Filtering is also unavailable, but it 
must be useful because it's included in the PB too. If I could get it to 
work I might be able to assess its value, but so far I'm naive about it.



Screen space: Navigator collapses down to just its titlebar (and moves up
out of the way)with a double-click, and all can be collapsed at once (while
avoiding overlapping).


That's a nice touch. It adds to the number of clicks and manipulation 
necessary though for more than one navigator, and unfortunately, 
re-expanding a navigator covers up the others. I spent a little time 
yesterday seeing if I could simulate a list of stacks by lining up 
several navigators but it isn't very workable. Try opening 10+ 
navigators to see what I mean. I think it would work well for just a few 
instances though.



Each Navigator can be re-targeted, so the only reason to close one is if
you don't need that many open anymore. Navigator auto-updates if you choose.


Okay, good to know. As Hermann mentioned, he had to learn its 
capabilities by reading our discussion. That's a problem I have with 
Navigator too. Its actions can be obscure to the uninitiated and the 
documentation is hard to use because it covers up what it's explaining. 
There are some other usability issues that could benefit from a rework 
to make Navigator easier for new users to understand.




And finally, bookmarks and saved sets are definitely your friend here.
Although saved sets don't play well with the new ability to have multiple
Navigators open at once :-/ I'm going to have to look at that.


I may find a use for those some day, it sounds cool, though I don't 
generally work with the same set of controls repeatedly. When would you 
use those?


I have two primary useage cases for the AB: seeing an overview of an 
unfamiliar stack and how its parts fit together (and navigating it,) and 
quickly accessing an object's Property Inspector or script (even when it 
isn't the selected object.) I use the AB in many other ways too, of 
course, but those are the two things I do the most. It's 3 clicks max to 
get to any object, and then a right-click to open the inspector or the 
script.


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


Re: Death of the Application Browser

2015-12-02 Thread J. Landman Gay

On 12/2/2015 3:45 PM, Geoff Canyon wrote:

>I spent a little time yesterday seeing if I could simulate a list of
>stacks by lining up several navigators but it isn't very workable.


​I must still not be understanding this use case. Navigator has a list of
stacks in the stack menu. The trade-off of course is two clicks with the
menu in exchange for one click but having to give up screen real estate
constantly displaying the ​list. Is that it, or am I missing something
else? At this point I feel like I'm Steve Jobs telling you you're holding
the iPhone wrong ;-)


It's an obscure usage case, I admit. In my big project, all but two 
stacks are clones of a template stack. Each stack has a unique 
identifiable name. Cards are named by a coding system that doesn't 
provide a clear identifier (though I'm starting to remember some of the 
codes now.) About half the cards in any given stack have controls 
identical to the parallel cards in other stacks, including the same 
names and IDs. And since the stacks are clones, most of the cards also 
have IDs identical to the other stacks.


In this situation it is impossible to know where you are unless you can 
always see the stack name. So I was trying to get the same view in 
Navigator that I get in AB where the stack I'm in is always clearly 
visible. In Navigator, once I leave the stack list, I could be anywhere. 
It's true that when I select a stack I know where I am immediately after 
that, but if I work for a while and then go back to Navigator, I've 
likely forgotten which stack it's displaying. The names of the controls 
don't help me, and the card names are all IDs. So then I have to go back 
to the main stack list and renavigate to where I was before, just to 
identify what the stack was.


And to make things more interesting, I usually have a whole bunch of 
cloned stacks open at the same time. It all comes back to breadcrumbs 
for me.


BTW, I found the stack list, which has to be accessed via a popdown 
menu, but I can't find how to disply its card list.


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

Re: Death of the Application Browser

2015-12-02 Thread J. Landman Gay

On 12/2/2015 4:38 PM, Peter Haworth wrote:

Interesting discussion and just emphasizes how different folks have
different needs for the IDE.


I was wondering when you'd jump in. :) To be fair, I have only looked at 
your screen shots on the web site (they're very small on my screen, btw, 
so not easily deciphered.) I saw it was a vertical list and didn't 
pursue it. I should grab the trial.


One problem with all the various control browsers is that they all have 
a learning curve and my time is very short. If I have to study and 
memorize in order to use a stack, I probably won't. That's a generic 
statement, unrelated to lcStackBrowser -- I haven't actually tried it 
yet so I can't say. Your feature list sounds good, though my needs are 
pretty basic and the duplication of existing IDE features wouldn't be 
important to me.


It could be important to other people, of course -- but I've got 15 
years of LC habits behind me and I'm comfortable with it.


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


An idea for the project browser

2015-12-02 Thread J. Landman Gay
I'm sticking with the App Browser until it kicks the bucket (and I hope 
that's never.) But here's one idea that might help me use the PB more often:


Put a breadcrumb trail at the top, just above the scrolling list. It 
would always give the path to the selected object:


  stack "myStack"/card "thisCard"/group "myGroup"/button "Click Me"

Then I know where I am when the identifying header scrolls off the top. 
Clicking on any part of the breadcrumb trail would scroll the list to 
display that control (just scroll; no further action.) Double-clicking 
any part of the trail would not only scroll there, but select the 
object, update the breadcrumbs, and navigate to the control in the stack 
itself.


Then add the ability to use the contextual menu on any control under the 
mouse, without actually selecting the object. I.e., point to a field and 
right-click to open its inspector or its script, or copy it, delete it, etc.


This would have these benefits:

1. I always know where I am in the map
2. I can navigate quickly to any part of the trail without scrolling
3. I can act on objects that aren't selected without leaving the current 
card

4. I can click on the last control in the trail to scroll back where I was

This doesn't show me the whole stack structure in the way the AB does, 
but it would solve some of the other limitations.


Comments welcome, I haven't throught through all the implications yet.

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


Re: [OT] Free Game for iOS and Android

2015-12-03 Thread J. Landman Gay

On 12/3/2015 11:46 AM, Peter M. Brigham wrote:

It's the only game I play besides Jaques' JQ Boggle.


Wow. That's an upper. I'm having one of those terrible, rotten, no good, 
awful days where everything goes wrong -- and then you said that.


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


Re: Step through libURL

2015-12-10 Thread J. Landman Gay
It can also be changed in the variable pane of the message box if you want a UI 
for it. 

On December 10, 2015 10:46:07 AM CST, Mark Wieder  
wrote:
>On 12/10/2015 03:08 AM, Ali Lloyd wrote:
>> Hi Dan,
>> The global gRevDevelopment controls whether breakpoints trigger in
>scripts
>> in stacks with rev-prefixed names.
>> If you do
>> put true into gRevDevelopment
>> in the message box, the breakpoints should trigger.
>
>And just to be clear, in the messagebox type
>
>global gRevDevelopment;put true into gRevDevelopment

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


Re: tracking down freeze based on timing, maybe?

2015-12-13 Thread J. Landman Gay

On 12/13/2015 11:23 AM, Matt Maier wrote:

Any suggestions for tracking down what's causing the freeze? It's not
happening inside of the handlers I wrote. Instead it's happening after all
of my handlers are finished, and then only if I click the button as fast as
possible instead of slowly down-up.


In general I've noticed freezes are due to infinite loops or message 
pileups. Try putting a flushEvents("mouseUp") or flushEvents("all") at 
the end of the sequence to remove extraneous clicks and see if that 
prevents the problem.


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


Re: Happy LC Holidays

2015-12-13 Thread J. Landman Gay

On 12/13/2015 8:36 PM, Scott Rossi wrote:

An update to an old stack, and best wishes for a happy holiday season.

http://tactilemedia.com/blog/2015/12/14/snowmaking-in-livecode/


Very clever use of graphic objects, and gorgeous work as always. I don't 
miss the wind, we get enough of that in Minnesota as it is. :)


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


Re: tracking down freeze based on timing, maybe?

2015-12-14 Thread J. Landman Gay

On 12/13/2015 10:00 PM, Matt Maier wrote:

It starts with a mouseMove handler, which is where it returns after stuff
has happened.

One of several options is followed by a freeze. I setup a little handler to
log the seconds every x milliseconds after that. Nothing is happening a
split second after the script returns to the mouseMove handler. It's like
whatever's hanging up the application is outside of all the stuff I wrote,
so I'm not sure how to dig into it.


Mousemove is sent a whole lot and messages may be piling up in the queue 
while LC tries to catch up. Try removing the mouseMove trigger and start 
your handlers some other way. If that fixes the problem, then that's 
where to focus.


Typically we add a "busy flag" to handlers so they don't try to do 
anything until the flag is cleared and it's okay to proceed.


local sBusy

on mouseMove
 if sBusy = true then exit mouseMove -- we're busy; don't do anything
 bigHandler -- if we get this far, it's okay to do work
end mouseMove

on bigHandler
 -- do stuff
 put false into sBusy -- clear the flag
end bigHandler

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


Re: Animations on iOS

2015-12-14 Thread J. Landman Gay

On 12/14/2015 1:23 PM, Ben Rubinstein wrote:

2) making it into a GIF on the card, which works quite nicely except
that there's an enormous delay going to the card, presumably as the
animation is buffered.

Pros: can be exactly the size I want; plays quite smoothly

Cons: I've not managed to play this from an external file, and if it's
embedded on the card there's an unacceptable delay.


You could try the "prepare image" command to load the gif ahead of time. 
It works well for me, but I haven't ever tried it with gifs.


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


Sending email with enclosures on Android

2015-12-14 Thread J. Landman Gay
Is anyone able to include multiple enclosures in an email on Android 
using file references? I'm getting zero byte enclosures. It works if I 
send all the text as a "data" type but then on some phones the email 
client crashes (I suspect memory issues.)


I'm hoping if I change to referenced files it will work better, but I'm 
not having any success. Does anyone have an example handler that 
successfully uses referenced files?


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


Re: Improving the LiveCode release notes

2015-12-15 Thread J. Landman Gay
The current release notes are already available in the IDE (at least through 
v7,) but I think what's being asked for is the ability to search all previous 
notes. I've had the same problem, where I remember a new feature or syntax has 
been introduced but I can't recall the name to look up in the dictionary or 
which release introduced it. 

This may be too large a scope for inclusion in the IDE but it would be nice to 
have a website or somewhere with an inclusive search. Richard has collected all 
the release notes at LiveCode Journal but that still requires opening each file 
and searching it separately. 

On December 15, 2015 3:20:17 AM CST, Peter TB Brett  
wrote:
>On 14/12/2015 18:31, David Bovill wrote:
>> For me Release notes should be available in a searchable format in
>the IDE.
>> I get pretty tired of digging through pdf's to find core information?
>
>We can definitely put them in the IDE somehow.  The changes I'm working
>
>on also make it easier to do that!
>
>I've added a feature request here:
>
>http://quality.livecode.com/show_bug.cgi?id=16604
>
>Peter

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


Re: Script Indenting?

2015-12-15 Thread J. Landman Gay
She's bck.. 

Cool. :-)

On December 15, 2015 11:10:19 AM CST, Mark Wieder  
wrote:
>Jeanne! Haven't heard from you in ages!

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


Re: Improving the LiveCode release notes

2015-12-15 Thread J. Landman Gay
On December 15, 2015 11:33:31 AM CST, Peter Haworth  wrote:
>
>Going back to the search issue, I'd be willing to spend some time
>creating
>a database and an LC app to query, sort and extract.  Creating the DB
>and
>the app won't be difficult, populating the db will be the hard part
>since I
>think everything is in pdf format.
That would be great. Maybe the team could give you the original documents 
before they were made into PDFs? 
-- 
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


Re: Improving the LiveCode release notes

2015-12-15 Thread J. Landman Gay
On December 15, 2015 11:16:31 AM CST, Mark Wieder  
wrote:
>On 12/15/2015 01:00 AM, Peter TB Brett wrote:
>
>>> How about alphabetizing the Dictionary Additions and Dictionary
>Changes
>>> lists?
>>
>> Good plan.
>>
>> How useful are those sections?  Does anyone actually rely on them for
>> anything?
>
>Well, *I* do, but maybe it's just me. 
I read them too just to check the progess, so there's at least two of us. 
-- 
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


Re: Improving the LiveCode release notes

2015-12-15 Thread J. Landman Gay
On December 15, 2015 12:48:20 PM CST, Peter TB Brett  
wrote:
>
>All of the inputs for the release notes are in the git repositories.  
>There's also a LiveCode Script stack that does all the processing, 
>starting from Markdown snippets, and ending up with the final Markdown,
>
>HTML and PDF release note documents.
>
>Ideally, the information about in which release each piece of LiveCode 
>Script syntax was last updated should actually just be in the
>dictionary 
>entry itself and should be searchable through the dictionary interface.

Most of the entries do show the initial release date in the dictionary but the 
problem is that we often can't recall what term to look up. A searchable 
database of all release notes would solve that, since we could enter a more 
generic string to search on. 

I also find that the release notes, at least earlier ones, contain more 
extensive explanations of new syntax and changes than the short synopsis 
provided in the dictionary. That's very helpful. 
-- 
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


Re: Animations on iOS

2015-12-15 Thread J. Landman Gay

On 12/15/2015 12:54 PM, Ben Rubinstein wrote:

Loading the GIF from an external file might be better but I couldn't
make this work on mobile - should it be possible? Do I want a relative
path or an absolute one?


I've never had to do it with a gif, but I'd think the process would be 
the same as any other image file. In the stack script:


put specialFolderPath("Resources") & slash &  into tPath
set the filename of img x to tPath

Put the gif file into the same folder with your stack so it will work on 
the desktop as well as on mobile. SpecialFolderPath("Resources") points 
to the current stack folder on desktop. In a standalone, it points to a 
Resources folder that the standalone builder creates automatically for 
copied files.


In standalone settings -> copy files pane, add the gif file.

See if that works.

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


Re: Animations on iOS

2015-12-15 Thread J. Landman Gay

On 12/15/2015 6:25 PM, Ralph DiMola wrote:

I also have to set it's visible to false on Android when leaving the spin
ball card because the gif appears on the next card spinning quite nicely.
You also see the background of the previous card thru the transparency of
the objects bounding box (ball is round control is a rectangle) It's not on
the next card. I have to put a QCC report in on this one.


It may be related to a broader redraw issue:



It isn't just gifs.

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


Re: Release 6.7.8 / 7.1.1

2015-12-16 Thread J. Landman Gay

On 12/16/2015 6:27 PM, Brahmanathaswami wrote:

I'm locked out also, was hoping to build a new standalone today... for
iOS... but getting the same error.

  I suspect regressing to an earlier version of LC is not going to work.


You can keep any number of XCode apps around and add different versions 
to the list in LC prefs. That way you should be able to build with an 
older version of LC. If you no longer have a copy of a previous XCode, 
you can download one from the developer portal.


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


Re: Strange bevavious

2015-12-19 Thread J. Landman Gay
It looks like a Gatekeeper problem. What happens if you "Allow apps 
downloaded from Anywhere"?


On 12/19/2015 12:51 PM, [-hh] wrote:

Hi all,

the sleeping-disk effect is true here, I can win 1-2 seconds of 3-5 seconds at 
start of dialog. But this is with ALL apps, not only LC. And it is for the 
first part of the dialog only, before creating the list.

The following is logged from the second part of an "open-stack"-dialog, after 
selecting a stack filename.

MacOS 10.11.2

LC 8.0.0-dp11
[Begin of selecting a file in dialog's list, Apple's wheel of death starts]
19/12/15 18:56:22,977 LiveCode-Indy[993]: 
GetDYLDEntryPointWithImage(/System/Library/PrivateFrameworks/CacheDelete.framework/CacheDelete,CacheDeleteCopyPurgeableSpaceWithInfo)
 failed.
19/12/15 18:57:13,613 tccd[400]: Unable to verify code signing identity of 
com.runrev.livecode:  code failed to satisfy specified code requirement(s)
[End of dialog]

LC 7.1.1
[Begin of selecting a file in dialog's list, Apple's wheel of death starts]
19/12/15 18:43:06,644 LiveCode-Community[975]: 
GetDYLDEntryPointWithImage(/System/Library/PrivateFrameworks/CacheDelete.framework/CacheDelete,CacheDeleteCopyPurgeableSpaceWithInfo)
 failed.
119/12/15 18:43:36,868 tccd[400]: Unable to verify code signing identity of 
com.runrev.livecode:  code failed to satisfy specified code requirement(s)
[End of dialog]

LC 6.7.8
[Begin of selecting a file in dialog's list, Apple's wheel of death starts]
19/12/15 19:40:49,669 LiveCode-Community[1059]: 
GetDYLDEntryPointWithImage(/System/Library/PrivateFrameworks/CacheDelete.framework/CacheDelete,CacheDeleteCopyPurgeableSpaceWithInfo)
 failed.
19/12/15 19:41:14,513 tccd[400]: Unable to verify code signing identity of 
com.runrev.livecode:  code failed to satisfy specified code requirement(s)
19/12/15 19:41:14,518 tccd[400]: SecTaskLoadEntitlements failed error=22
[End of dialog]

What to do? I have no disk problems, no, never noticed one. And this problem is 
with *every first* open/save-dialog of any LC version I use (6.7.8 is a bit 
faster than 7.1.1 and 8.0).

(Added to bug report #16612.)
___
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


Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread J. Landman Gay
I suspect the scroll wheel is sending multiple rawKeyDown messages per scroll 
unless you are able to be very precise when you do it. 


On December 24, 2015 2:17:36 PM CST, Ray  wrote:
>Peter - thanks for the idea.  I've tried it along with a few variations
>
>on it but unfortunately to no avail.  I can see it getting trapped but 
>for some reason my script editor window always jumps about 5 or 6 lines
>
>when I scroll one notch using the mouse wheel.  Any ideas?  I'm 
>experimenting with a script window of about 3000 lines.
>
>On 12/24/2015 1:08 PM, Peter M. Brigham wrote:
>> Try this (untested). Put the following into a frontscript. Watch for
>email-induced linebreaks.
>>
>> on rawkeydown n
>> if not (the name of the selectedfield contains
>"revNewScriptEditor") then pass rawkeydown
>> if the optionkey is down then pass rawkeydown
>> --  use optionkey to return to usual scrolling, for scanning
>through long scripts
>> put the long id of the selectedfield into sFld
>> put the textheight of sFld into txtHt
>> put the scroll of sFld into oldScr
>> switch n
>>case "65308" -- up
>>   set the scroll of sFld to oldScr + txtHt
>>   break
>>case "65309" -- down
>>   set the scroll of sFld to oldScr - txtHt
>>   break
>>default
>>   pass rawkeydown
>> end switch
>> end rawkeydown
>>
>> -- Peter
>>
>> Peter M. Brigham
>> pmb...@gmail.com
>> http://home.comcast.net/~pmbrig
>>
>> On Dec 24, 2015, at 11:59 AM, Ray wrote:
>>
>>> Seasons Greetings on Christmas Eve!
>>>
>>> Does anybody know how to scroll just one line per mouse-wheel
>movement through the script editor window?
>>>
>>> I typically view several thousand lines at a time.  Each push of the
>little scroll wheel on my mouse produces an abrupt 'jerk' of 10 or 15
>lines.  It's really hard on the eyes by the end of the day.
>>>
>>> Ideally scrolling would be totally smooth without even jerking one
>line at a time, but one line at a time is better than a random group at
>a time causing me to re-orient myself.
>>>
>>> Many thanks!
>>>
>>> ___
>>> 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

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


Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread J. Landman Gay

We've been here before:


I'm fond of that post.

On 12/24/2015 4:41 PM, Jerry Jensen wrote:

+1
My eyesight is not great and this is a continuing problem for me, even with 
non-large scripts and editor window.
.Jerry


On Dec 24, 2015, at 8:59 AM, Ray  wrote:

Seasons Greetings on Christmas Eve!

Does anybody know how to scroll just one line per mouse-wheel movement through 
the script editor window?

I typically view several thousand lines at a time.  Each push of the little 
scroll wheel on my mouse produces an abrupt 'jerk' of 10 or 15 lines.  It's 
really hard on the eyes by the end of the day.

Ideally scrolling would be totally smooth without even jerking one line at a 
time, but one line at a time is better than a random group at a time causing me 
to re-orient myself.

Many thanks!




___
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


Re: Question about "that thing you key in that's not a user name when you're logging in"

2015-12-29 Thread J. Landman Gay

On 12/29/2015 6:33 PM, Peter Haworth wrote:

I know there is an "ask thing" command that will replace the thing with
black dots as it is being typed in but is there some way to do that using a
regular field?


Here is my favorite approach:



After I read Bill Marriott's solution, I adopted it forever after. It 
requires almost no work at all and takes advantage of LC's built-in text 
handling. Very easy.


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


Re: Question about "that thing you key in that's not a user name when you're logging in"

2015-12-29 Thread J. Landman Gay
Actually, one benefit of this solution is that if you don't lock the screen, 
each character does show briefly all by itself. That's how I usually let it 
work. 

On December 29, 2015 9:54:15 PM CST, Peter Haworth  wrote:
>That's the one I went with. I might adapt it to show each character
>briefly
>before hiding it and/or provide an option to show it in plain text.
>
>On Tue, Dec 29, 2015, 7:19 PM J. Landman Gay 
>wrote:
>
>> On 12/29/2015 6:33 PM, Peter Haworth wrote:
>> > I know there is an "ask thing" command that will replace the thing
>with
>> > black dots as it is being typed in but is there some way to do that
>> using a
>> > regular field?
>>
>> Here is my favorite approach:
>>
>> <
>>
>http://runtime-revolution.278305.n4.nabble.com/custom-password-dialogue-tp290635p290644.html
>> >
>>
>> After I read Bill Marriott's solution, I adopted it forever after. It
>> requires almost no work at all and takes advantage of LC's built-in
>text
>> handling. Very easy.
>>
>> --
>> 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

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


Re: Question about "that thing you key in that's not a user name when you're logging in"

2015-12-30 Thread J. Landman Gay

On 12/30/2015 5:18 AM, Richmond wrote:

one thing that is very odd is 'mcEncrypt';

firstly because it maybe the only thing in LiveCode that
betrays LiveCode's ancestry in MetaCard,


It was part of the original MC 1.0 and was used only internally to 
encrypt the entry from an ask dialog. The encrypted form was returned to 
the script. There was no way to obtain the original unencrypted text entry.



and

secondly because the Documentation (7.1) tells us
nothing beyond that it is 'Reserved for internal use'.

That 'Reserved' is all jolly well and good, but made
me feel a bit strange having read the entry for

"ask p_assword" [there's another way of getting round things, even if,
for Americans,
it might seem a bit 'fruity']

where it says:

'get mcEncrypt(it)'


At some point the dialog behavior changed and the engine now returns 
only the raw text. It is now necessary for the script rather than the 
engine to handle the encryption if that's desired. When the behavior 
changed, mcEncrypt was made public and put into the dictionary.


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


Re: Animation in LiveCode

2016-01-04 Thread J. Landman Gay

On 1/4/2016 2:20 PM, Colin Holgate wrote:

You should certainly get Flash Pro on your list of tools to use. It
can export perfect frame rate H.264, and also image sequences or
animated GIFs.


Another option is Graphic Converter, which will also export an image 
sequence to gif. You can set the time/rate between frames.


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


Re: [On-Rev Tio] could someone test the index.html files in her/his account on Tio?

2016-01-04 Thread J. Landman Gay

On 1/4/2016 6:01 PM, Robert Mann wrote:

Details :: all my index files on my on-rev account on too were changed on
TUESDAY 29th December at 09:02


I'm on Tio and my files are okay. But I heard other people have had the 
same problem as you did. I don't use any php at all, I wonder if the 
affected accounts did.


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


Re: Beyond POSIX time

2016-01-08 Thread J. Landman Gay

On 1/8/2016 4:53 PM, Richard Gaskin wrote:

Try this:

on mouseUp
   put "1/1/69" into t
   convert t to secs
   convert t to short date
   put t
end mouseUp

Is there yet a convenient way to handle conversion of dates prior to
1/1/70?



I get 1/1/69. I get the same thing if I specify the year exactly: 
1/1/1969. Mac OS X Yosemite. What do you get?


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


Re: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread J. Landman Gay
Couldn't you just get the globalLoc of the field and set the stack to that, or 
an offset of it? 

On January 9, 2016 6:37:52 PM CST, "Dr. Hawkins"  wrote:
>
>
>Anyway, in this case, I'm popping up a stack over a field with the list
>of valid choices (I needed more than the built in popups).  I just want
>them to stay on the screen . . .

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


Re: Getting Finder results into LiveCode

2016-01-11 Thread J. Landman Gay
I'd use Spotlight more too if it would show the file path to each of duplicate 
copies of a file. Cmd-F does that if you have the path info at the bottom of 
the window turned on in Finder. I often have a master copy and a duplicate in a 
shared dropbox folder, as well as multiple historical copies in labelled 
folders, and I need to know which copy I'm about to open. 

Cmd-F in Finder gives you a list of all copies with all the usual details 
(size,  date, etc.) so I use that more often. It sounds like that's what 
Francis needs too. 

BTW, a quick way to copy (most of) the file path to the clipboard is to Get 
Info on it and copy the path from the there. You do need to add the short name 
at the end so it isn't perfect. I've installed a contextual menu addition that 
copies the path. 

None of this actually answers the question though. I don't think there's a way 
to get a found file list in LC without the help of an Applescript or by doing a 
complete directory walk. 

On January 11, 2016 8:11:43 AM CST, Kay C Lan  wrote:
>On Mon, Jan 11, 2016 at 7:51 PM, Francis Nugent Dixon
>
>wrote:
>
>>
>> I use “cmd F” to find documents on my computer
>> (never got round to using Spotlight).
>>
>
>Absolutely love Spotlight, use it hundreds of time a day and it saves
>me an
>incalculable amount of time and effort. 
-- 
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

Windows 10 system version

2016-01-11 Thread J. Landman Gay

Could someone on Windows 10 tell me what the systemVersion returns? Thanks.

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


Re: Windows 10 system version

2016-01-11 Thread J. Landman Gay

On 1/11/2016 5:23 PM, Paul Dupuis wrote:

On 1/11/2016 5:33 PM, J. Landman Gay wrote:

Could someone on Windows 10 tell me what the systemVersion returns?
Thanks.


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

This has only been fixed in 6.7.8 (and related higher 7.x and 8.x releases)


Thanks, that explains why my version check was failing.

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


Re: Windows 10 system version

2016-01-11 Thread J. Landman Gay
Given the bug that Paul Dupuis mentioned, "NT 6.2" isn't correct. What 
version of LC did you use?


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

On 1/11/2016 4:41 PM, Peter Haworth wrote:

NT 6.2

On Mon, Jan 11, 2016 at 2:34 PM J. Landman Gay 
wrote:


Could someone on Windows 10 tell me what the systemVersion returns? Thanks.

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




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


Re: Windows 10 system version

2016-01-11 Thread J. Landman Gay

On 1/11/2016 5:48 PM, Colin Holgate wrote:

Just went through some sort of big Windows 10 update, and the
systemVersion is showing NT 10.0 for me.


That's more what I'd expect. Thanks.

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


Re: Getting Finder results into LiveCode

2016-01-11 Thread J. Landman Gay

On 1/11/2016 10:37 PM, Kay C Lan wrote:

Unfortunately it involves using the mouse but if you press the Option + cmd
keys whilst mousing over any Spotlight result Quicklook should pop-up and
at the bottom is the file path - which may be truncated depending on how
many folders deep it is buried.


Good to know, thanks. It seems that only the Cmd key is necessary to 
show a path, at least in Yosemite, and the target line has to be 
selected. Long paths are truncated, but probably good enough to identify 
the item.



I think Labels are now called Tags


Sorry, I was linguistically sloppy, though the info you gave is a useful 
addedum. I didn't really mean "tags", I meant labelled (i.e.: named) 
folders. Every build I do is in a named folder with all build files 
inside, including the LiveCode source stack. I end up with dozens of 
source stacks with the same names.


If you haven't done a Finder search lately, try this:

Open any Finder window. If you know the general location of the files 
you want, open the window at that folder; the search will start at the 
current window's location and drill down from there. Type Cmd-F. Enter a 
search term in the find box. The default is to search file names and 
content, but you can change it to only match file names in the dropdown 
that appears under the search term.


Above the results list that appears, you can filter by any of dozens of 
filters. Common ones are already in the dropdown menu, but if you choose 
"Other" you can add more filters by selecting them. If you use certain 
filters frequently you can add them to the default menu by ticking their 
checkbox.


You'll get a list of exactly what you're looking for, and all file 
attributes normally displayed in your Finder view are immediately available.



if you write a Spotlight plugin for your Back to the Future stack we'll all
be able to do a Spotlight search for the Stacks we are going to create
'next week'. :-)


Now that I can certainly do. I will have done it, in fact.

Now we both have new ways to find things.

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


Getting the clicktext from a browser control

2016-01-12 Thread J. Landman Gay
How are people dealing with the inability to know when a user clicks a 
link in a (desktop) browser object? The only message I get reliably is 
"browserNavigateComplete". What if I want to know what's clicked before 
that?


BrowserClick only works on Windows, so I can't use that. 
BrowserBeforeNavigate doesn't always get sent.


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


Re: Getting the clicktext from a browser control

2016-01-13 Thread J. Landman Gay

On 1/13/2016 7:39 AM, Colin Holgate wrote:

The times that BrowserBeforeNavigate doesn’t get sent, is a
BrowserBeforeNavigateFrame sent instead?


There are no frames, so no. The browserBeforeNavigate only gets sent 
when the URL changes, and the links in the page do not always change 
URLs, (they are basically reference IDs, mainly footnotes) so that's why.


If the footnote is contained in the existing browser content then the 
link navigates but I can't find out about it until after the navigation 
completes. If the link points to another set of content that isn't 
loaded yet, nothing happens and I still don't find out about it until 
browserNavigateComplete is sent. I want to know what link was clicked so 
I can handle it regardless of the intended link destination. I don't see 
any way to do that.


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

Windows 10 file paths

2016-01-14 Thread J. Landman Gay
I need to ensure the user has not deleted the revSecurity.dll file. This 
works on Windows 7 and under:


put "revsecurity.dll" into tWinFile
put the filename of this stack into tFilepath
set the itemdel to slash
put tWinFile into last item of tFilepath
put there is a file tFilepath into tExists

It fails on Windows 10, which can't find the file. If the user manually 
opens the app folder, the file is there. Anyone know why?


Should I be using specialFolderPath("engine") or maybe the new 
specialFolderPath("resources")?


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


Re: Windows 10 file paths

2016-01-14 Thread J. Landman Gay

On 1/14/2016 2:39 PM, Dave Kilroy wrote:

I haven't messed with LC apps and Win10 yet (but my old LC apps still work on
it) - but what you describe reminds me strongly of virtualisation headaches
when Vista came out
http://newsletters.livecode.com/march/issue21/newsletter3.php  - if nothing
has changed in your app, could there be something different either in the
user's settings in Win10 or how Win10 is managing apps?


Something must have changed, since the original code works fine in 
Windows 7 and Vista. Virtualisation was already in place in those versions.


The only other thing I can think of is that the user is trying to run 
the app from inside the zip file. I'm not sure what error we'd get if 
that were the case, I need to check.


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


Re: Windows 10 file paths

2016-01-14 Thread J. Landman Gay
The file is in the build and Win 7 can find it. Win 10 can't. It isn't 
that the file doesn't exist, it's that Win 10 can't see it.


On 1/14/2016 3:15 PM, Roger Eller wrote:

I don't know when it started, but even in Win7 I have had to include it in
the copy files pane for quite a while.  It seems like it started around LC
6.5 to 6.6 builds.


On Thu, Jan 14, 2016 at 3:48 PM, J. Landman Gay 
wrote:


I need to ensure the user has not deleted the revSecurity.dll file. This
works on Windows 7 and under:

 put "revsecurity.dll" into tWinFile
 put the filename of this stack into tFilepath
 set the itemdel to slash
 put tWinFile into last item of tFilepath
 put there is a file tFilepath into tExists

It fails on Windows 10, which can't find the file. If the user manually
opens the app folder, the file is there. Anyone know why?

Should I be using specialFolderPath("engine") or maybe the new
specialFolderPath("resources")?

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




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


Re: Getting textShift To Shift Down?

2016-01-14 Thread J. Landman Gay

On 1/14/2016 4:27 PM, Scott Rossi wrote:

Anyone have any insight on getting textShift to shift text downward?

I need to vertically align blocks text on a line that use different fonts.
  Whether I select a block of text, or all the text around the selection,
things shift up, but never down.


A positive value should push it down. It seems to sort of work in a 
quick test in LC 7.1.1, but the text next to it gets pushed up so that 
the down-shifted character stays on the baseline and everything else 
rises above it. Turning off fixedLineHeight helps a little.


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


Re: Windows 10 file paths

2016-01-14 Thread J. Landman Gay

On 1/14/2016 4:55 PM, tbodine wrote:

Is the dll code signed? Perhaps higher security settings are blocking its
installation or use for that reason.


I don't know, it's got whatever LC assigns to it when it saves a standalone.

The file is there, the user can see it in the folder. The script just 
checks for its existence but doesn't try to use it for anything.


New data has come in since I first wrote: there are lots of Windows 10 
users who have no problem with it, so it is something related to 
specific machines. We have 3 instances of the problem out of maybe a 
couple hundred Windows 10 users.


Additional info: one user who had the failure is able to run without any 
problems if he copies the app folder to a thumb drive and runs it from 
there. So a permissions issue does seem to be relevant...but why would 
LC report the file doesn't even exist? Does "there is a file" on Windows 
return "false" if the user doesn't have permission to access the file?


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


Re: Windows 10 file paths

2016-01-14 Thread J. Landman Gay

On 1/14/2016 7:04 PM, Mark Wieder wrote:

On 01/14/2016 04:07 PM, J. Landman Gay wrote:


Does "there is a file" on Windows
return "false" if the user doesn't have permission to access the file?


I would hope so.
Do you get anything interesting by running "attrib"?



I'm not sure how to test that, since it all works fine for everyone 
except those 3 people, and they aren't users we can actually ask to test 
for us.


But I did some searches and found several indirect references to the 
same problem in other languages (C#, php, java) and their "exists" 
functions also return false if the user doesn't have permission to 
access the file. I have to assume that's what's happening here too, it's 
the only explanation.


We've asked one user to move the app folder to the Documents folder, so 
we'll see how that goes. We think at least some of the affected users 
may be running on public computers, which are likely restricting 
permissions (which is why the app works on their thumb drives I guess.)


The surprising bit to me was that "there is a file" can return false, 
even if it's right there in front of you. I'd have thought that it would 
always return true, whether or not you could run it.


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


Re: Windows 10 file paths

2016-01-14 Thread J. Landman Gay

On 1/14/2016 7:04 PM, Mark Wieder wrote:

On 01/14/2016 04:07 PM, J. Landman Gay wrote:


Does "there is a file" on Windows
return "false" if the user doesn't have permission to access the file?


I would hope so.


Okay, just to finish this up, I found the definitive answer in the 
Microsoft docs:


"File.Exists Method (String)
Type: System.Boolean

true if the caller has the required permissions and path contains the 
name of an existing file; otherwise, false. This method also returns 
false if path is null, an invalid path, or a zero-length string. If the 
caller does not have sufficient permissions to read the specified file, 
no exception is thrown and the method returns false regardless of the 
existence of path."


Gah.

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


Re: Getting textShift To Shift Down?

2016-01-14 Thread J. Landman Gay

On 1/14/2016 10:05 PM, Scott Rossi wrote:

The reality is, one should be able to designate a chunk of text and
move it up or down any distance, independently of the surrounding
text. Currently you can't do that.


It might be time for a bug report. What you expect seems pretty 
realistic to me.


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


Re: Windows 10 file paths

2016-01-15 Thread J. Landman Gay
Good info, thanks for that. My client didn't want an installer (they 
used to use one but for this app they wanted a plain zip file.) It's 
useful to know that the dll isn't signed though, for future reference.


We did ask one affected person to move the app folder to their Documents 
folder and all was well. This person was using a university-issued 
computer that likely enforced some stricter permissions. Putting the app 
on the Desktop failed, putting it in Documents was okay.


Don't ask me, I just work here.


On 1/15/2016 8:21 PM, tbodine wrote:

Followup on the code signing hunch:

We know in the Apple world a lack of code signing can get an app banished by
Apple's Gatekeeper. So perhaps a Windows machine with high security
requirements also blocks exes or dlls that are not signed.

It looks to me like RunRev does not code sign the dlls used for Windows
standalone builds. In a spot check of the externals in my LC 7.1.1
commercial installation on Windows 7, I see several external dlls there are
not code signed by RunRev. (I did not check them all.) Dlls in my
standalones are also not signed until I do that myself.

Innosetup has the capability of calling your code signing tool and signing
the dlls and executable as part of its installer compiling process. Using
that, my dlls get code signed painlessly.


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


Re: [On-Rev] TIO: again all index files were overwritten

2016-01-18 Thread J. Landman Gay

On 1/18/2016 12:51 PM, Jim Lambert wrote:

Matthias,

It is not just your account. I can confirm that the TIO index files
have been overwritten on my account too.


Odd. I'm on Tio and my index files are fine, just as they were the last 
time this happened. It sounds like there's some kind of malware that 
only targets web pages that contain something that mine don't. My pages 
are fairly inert with nothing but a few links and no interactive scripts.


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


Re: Forcing an android app to quit when the 'home' button is clicked?

2016-01-18 Thread J. Landman Gay

On 1/18/2016 8:54 PM, Terry Judd wrote:

Yeh - the back and menu keys trigger messages but not the home key. It
hadn¹t occurred to me to try suspendStack - I¹ll give that a whirl.


I don't think any messages are sent at all when the Home key is pressed. 
Ralph may be thinking of the "shutdown" message which is sent when you 
issue the "quit" command, but that doesn't happen when the Home key is 
pressed because the app doesn't quit, it keeps running in the background 
until Android needs the memory.


The app should save its state on every significant change because you 
never know when the OS will shut it down.


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

Re: One Rect For All specificaiton

2016-01-24 Thread J. Landman Gay

On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote:

Your safe zone is  (I hope I am finally declaring this correctly)

1) for a “root" 16 X 9 stack: the full width + 75% of the  vertical
height that will render on a 4 X 3 device — ergo artists must supply
you with  4 X 3 artwork with significant content in the middle 75%
vertical space. i.e. 12.5 % bleed top and bottom 2) for a “root” 4 x
4 3tack: the full height + 75% of the  width height that will render
on a 4 X 3 device — ergo artists must supply you with  16 X 9 artwork
with significant content in the middle 75% horizontal space i.e. 12.5
% bleed left and right.


I wonder how that will translate to Android. I found these aspect ratios 
, listed from most 
common to least:


16:9
5:3
4:3
16:10
3:2

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

Re: [BUG] write to file

2016-01-25 Thread J. Landman Gay
I'm not the team, but logic tells me that opening a file for append will always 
be faster and more efficient because the URL syntax works as a container, like 
a field or a variable. Every time you reference a URL, the entirety is read 
into RAM. I've always used "open for append" for that reason unless the file is 
known to be very small. 

On January 25, 2016 9:49:57 AM CST, Richard Gaskin 
>my hunch is that using "open...for append" would be 
>slightly more efficient than "write...after", since the former takes 
>advantage of system calls optimized for logging.
>
>However, in your case you're using the URL syntax rather than 
>open/write/close, which leads me to a question for the dev team or 
>anyone who's had the opportunity to look at the relevant part of the 
>engine source:
>
>When using the statement above, is the engine clever enough to use an 
>append operation for that, or does it seek to the end of the file
>before 
>writing?

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


Re: One Rect For All specificaiton

2016-01-25 Thread J. Landman Gay
I've moved a 16:9 stack to Android and the problem with right/left edges wasn't 
minor. There was a significant gap at the edges that made toolbars and images 
appear to be hanging in space. 

I think the general rule to use 75% of the internal area for the content will 
probably translate to Android fine, but if there are background images, 
toolbars, or other objects that need to cover the entire visible area then they 
need to be much wider and/or taller than the dimensions of an iPhone to be 
usable on the wide variety of Android devices. 

On January 25, 2016 4:09:55 AM CST, Colin Holgate  
wrote:
>The 4:3 to 16:9 is a range, it’s not that it only takes care of those
>two cases. If you use a 4:3 card and have 16:9 content, on a 16:10
>device, you’ll see most of the 16:9 content.
>
>There are cases where a device might exceed 16:9. For example, a 16:9
>device that is showing some sort of temporary bar along the top. In
>such a case you might end up with a small amount of border on the far
>left and right of your content. Not something I would worry about too
>much!
>
>About letter boxing as a solution, that’s probably ok in the Android
>world, but if for example you solve your iOS needs by letting a 4:3
>card have borders on a 16:9 device, Apple would reject the app.
>
>
>> On Jan 24, 2016, at 11:40 PM, J. Landman Gay
> wrote:
>> 
>> On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote:
>>> Your safe zone is  (I hope I am finally declaring this correctly)
>>> 
>>> 1) for a “root" 16 X 9 stack: the full width + 75% of the  vertical
>>> height that will render on a 4 X 3 device — ergo artists must supply
>>> you with  4 X 3 artwork with significant content in the middle 75%
>>> vertical space. i.e. 12.5 % bleed top and bottom 2) for a “root” 4 x
>>> 4 3tack: the full height + 75% of the  width height that will render
>>> on a 4 X 3 device — ergo artists must supply you with  16 X 9
>artwork
>>> with significant content in the middle 75% horizontal space i.e.
>12.5
>>> % bleed left and right.
>> 
>> I wonder how that will translate to Android. I found these aspect
>ratios <http://hwstats.unity3d.com/mobile/display.html>, listed from
>most common to least:
>> 
>> 16:9
>> 5:3
>> 4:3
>> 16:10
>> 3:2
>> 
>> -- 
>> 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

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

Re: [BUG] write to file

2016-01-25 Thread J. Landman Gay

On 1/24/2016 9:46 PM, Kay C Lan wrote:

The Dictionary says that if I open a file for 'update', then 'read from
file' to a specific position that when I 'write to file' it will occur at
the position I've read to but that's not what I'm seeing in 6.6.5GM, 7.1.1
rc4 and 8.0 dp13 - OS X 10.9.5. In the msg box:

set the defaultFolder to specialFolderPath("documents")
put "trash this file.txt" into tFileName
put "This is a test." into URL ("file:" & specialFolderPath("documents") &
"/" & tFileName)
open file tFileName for update
read from file tFileName for 2 words
put it into tResult
write "open/read/write/close" to file tFileName
close file tFileName
put URL  ("file:" & specialFolderPath("documents") & "/" & tFileName) into
msg
put cr & tResult after msg

I was expecting:
This is open/read/write/close

What I'm getting:
This is a test.open/read/write/close

The 'read' portion is clearly working correctly so there is something wrong
with 'write' but I'm surprised that this hasn't broken people's code left
right and centre so what am I doing wrong? How do I get LC to write from
where I've read to?


If you specify the position it seems to work:

 write "open/read/write/close" to file tFileName at 8

If you're tracking the file content, you could also use "seek" to move 
the current pointer position.


In either case, there does seem to be something wrong with "write".

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


Re: One Rect For All specificaiton

2016-01-25 Thread J. Landman Gay

On 1/25/2016 2:59 PM, Colin Holgate wrote:

With showAll, I wouldn’t even use code. Have the tools centered in
one direction and aligned to the edges in the other direction. If you
want tools to hug a corner, then it gets more complicated.


For the stack in question, the toolbar needed to stretch across the 
entire width (portrait) and the background image needed to fill the 
width of the screen.


How we solved it:

Design the stack at 16:9 with the toolbar at the bottom. Make the 
toolbar and image wider than the iPhone6 screen will display and center 
them horizontally. Use "showAll".


On Android and iPad, the toolbar is automatically repositioned at the 
bottom of the screen. The extra width of the image and toolbar groups 
show on wider devices. No code is required to adjust anything as long as 
the content region is within the visible part of the original screen ratio.


So basically, set everything up for one of the largest screen dimensions 
you will support (in our case, height,) let the LC engine move the 
controls to fit whatever device is in use, and have oversized objects 
that will still be visible if the opposite screen dimension is larger 
than the one you designed for.


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

Re: One Rect For All specificaiton

2016-01-26 Thread J. Landman Gay

On 1/26/2016 12:00 PM, Sannyasin Brahmanathaswami wrote:


As for 3:2… that’s a new one on me… got any real number pixel

> dimensions for that one?

There's a chart here: 




So I think we really need to be sure the screenRect function is
getting accurately reported on all devices… It certainly is not in
the iOS simulator running from xCode.  Theoretically

put the effective screenRect into tRect set the bottom of grp
“baseControls” to item 4 of tRect

should work. Can anyone else test this on varioius devices and report
back? My Nexus 5 is 16 x9 so I can’t see/text any other scenario
here.


It's working as expected. By default, LC reports the screenrect as 
logical points rather than pixels, unless you set the 
iPhoneUseDeviceResolution to true. The dictionary says that setting only 
works on iOS though, not on Android, where pixel mapping always occurs. 
Since it's not cross-platform I avoid it.




@ Jacqueline & Roger: Are either of you using the screenRect for any
positioning methods on your Android apps?


Not since fullscreenMode was implemented. But (I think) "the width of 
this cd" or "the bottom of this cd" can work instead of absolute pixels, 
since the engine will calculate where those are relative to the current 
display.


We could really use a good tutorial about all this. It confuses 
everybody except Colin... Let's make him write it. :)


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

Temp folder on public computers

2016-01-26 Thread J. Landman Gay
I need to write a temporary file on computers that may be locked down, 
such as those in a computer lab or library. Can I be fairly certain that 
the temporary folder permissions will always allow access?


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


Re: Temp folder on public computers

2016-01-26 Thread J. Landman Gay

On 1/26/2016 7:29 PM, Richard Gaskin wrote:

J. Landman Gay wrote:

 > I need to write a temporary file on computers that may be locked
 > down, such as those in a computer lab or library. Can I be fairly
 > certain that the temporary folder permissions will always allow
 > access?

Even if it were, on well-designed systems the temp folder will be
cleared on boot; on less well designed systems it'll be cleared under
circumstances your program may not be able to predict; in all cases the
data has no assurance of survival between sessions.


That's fine, it only needs to be there temporarily while the app runs. 
The app can test to see if the file exists if it needs it again, and 
recopy it.



Any chance they can tell you what they want?

Or use a network store?


I need to put html stored in a custom property into a browser object. 
Since using a variable isn't possible, I need to write the property to 
disk and then load it.


A URL from the server would work too, and I'll do that if we need to, 
but I wanted to explore the idea of using the temp folder instead so I 
can store the html data in the stack. But the temporary folder has to be 
reliably accessible to do that.


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


Searching revBrowser content

2016-01-26 Thread J. Landman Gay
The docs say I should be able to select text in a browser control by 
setting the "selected" property. Repeatedly doing that should iterate 
through all matches. I can't get it to select anything even once. Is 
anyone else able to execute this successfully:


 revBrowserSet sBrowserId, "selected", pString

The dictionary says it's a command but when I run it in the message box 
it says there's an error in the function. I assume that's because the 
engine treats it as a function internally. When I run it inside a 
handler in the script, no errors.


I tried this (the script local sBrowserID has the correct value):

on doFind pString
  revBrowserSet sBrowserId, "selected", pString --> nothing selected
  get the result --> always empty
  -- check to see what we have:
  put revBrowserGet(sBrowserId, "selected") into tSel --> always empty
end doFind

Does this work for anyone? I'm using the CEF browser because the plain 
old revBrowser won't load the file; it doesn't error but it shows no 
content, it's completely empty.


LC 7.1.1, Mac OS X Yosemite

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


Re: Getting the long name(or ID) of a control

2016-01-26 Thread J. Landman Gay

On 1/27/2016 12:15 AM, Scott Rossi wrote:

I think it was Jacque who pointed
out a while back that quoting control names results in slightly faster
execution, since the engine doesn't need to determine if your word is a
variable or an object name.


I don't know if it was me, but it's true and in some cases it's more 
than just slightly faster. I was hired to help speed up a stack that ran 
painfully slow, and saw that there were unquoted literals everywhere. 
Basically, none were quoted at all (it was an old HC stack and people 
had bad habits back then.) I told him to first add all the quotes and 
send it back to me, and then I'd look at it again.


He wrote back and said he didn't need me any more, the stack ran as fast 
as blazes and was completely fixed. You'd probably never notice a few 
unquoted literals, but if they're everywhere it makes a difference.

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


Re: One Rect For All specificaiton

2016-01-26 Thread J. Landman Gay

On 1/26/2016 10:07 PM, Sannyasin Brahmanathaswami wrote:

@ Jaqueline… If you run a 16:9 —  1200 X 675 stack on an iPad. the card rect is 
still reported as 675 high even though the screen is 728 high

set the bottom of grp “bottomNav”  to item 4 of (the rect of this card)

  will float the group at 675, 53 pixels above the bottom edge (iPad height is  
728)

  if you could test using this kind of method instead.

on preopenstack
  put the effective stackRect into tBaseRect
  set the bottom of grp “bottomToolBar” to item 4 of tBaseRect
end preopenstack

and see if that  sticks the control to the bottom edge of varying size/ratio 
android devices. That would be an interesting test.


I'm wrapped up in something else right now but I'll try to remember to 
test when I'm done. My original thought was to avoid use of "the rect" 
entirely and use relative positions instead, like "the right" or "the 
bottom", on the assumption the engine would know what to do. The rect is 
pixel-specific, where relative positions aren't (I think.) For example:


set the bottom of grp "bottomToolBar" to the bottom of this cd

Worth a try anyway. If I remember right, I used "the right of this cd" 
in Gurudeva and it worked on any screen. We didn't have to deal with 
tops and bottoms though, it was the width that varied.


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

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 
as well as either closefield or exitfield, which you can use to reset the field 
appearance. 

I've had to work around the disappearing selection text on Windows before (it 
doesn't happen on Mac) and found that for black text, the best background color 
is a pale shade. I think I used a very light yellow. 

On January 29, 2016 3:21:29 AM CST, Roland Huettmann 
 wrote:
>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 would like to have the visual effect showing a fully highlighted
>field
>(not the text itself) where the text is visible and selected - and
>ideally
>the color showing is set apart more than just 1 pixel from the border
>of
>the field boundaries.
>
>This simply looks better than a chunk of text being selected.
>
>This can somehow be done tabbing into the field and then setting the
>backgroundcolor of field.
>
>But setting the backgroundcolor to the hilitecolor will make the text
>chunk
>disappear.
>
>Example:
>
>// The text chunk only appears when tabbing out or deselecting it.
>Setting
>the hilitecolor to empty does not make a difference. //
>
>on tabkey
>   set the hilitecolor of field "Test1" to blue
>   set the backgroundcolor of field "Test1" to the hilitecolor of field
>"Test1"
>   select the text of field "Test1" // The text DISAPPEARS
>end tabkey
>
>One way of achieving the desired effect is with a trick:
>
>Set the actual field to be transparent. Put a graphic or another
>control
>(field..) behind. Selecting the text of the transparent field will
>change
>the color of the control behind it and the visual effect will be as
>desired
>if the hilitecolor is set to the same color as the backgroundcolor in
>the
>control behind.
>
>But of course - this is not something I would like to do for all my
>fields.
>)
>
>Roland
>
>
>
>
>
>
>
>On 28 January 2016 at 22:26, Paul Hibbert  wrote:
>
>> On Jan 28, 2016, at 4:07 AM, Roland Huettmann
>
>> wrote:
>> >
>> > Maybe I am missing something, but I need to script this with "on
>> > tabkey"-event handlers, "on textchanged" handlers, " on deletekey"
>> handlers
>> > and go with "select the text of..." or "select line 1 of...".
>Otherwise
>> the
>> > cursor is always placed behind the text - and I do not want that
>except
>> for
>> > multi-line fields. Could there not be a built-in attribute how
>selection
>> > should occur?
>>
>> Check the autoTab property in the inspector, or if you want to set it
>by
>> script…
>>
>> set the autoTab of field “myField" to true
>>
>> I’m not seeing any issue with text changing colour when selected, but
>you
>> didn’t say which version of Livecode or which platform you are seeing
>this
>> on, this info may help track down the problem.
>>
>> Paul
>> ___
>> 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

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

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 snapshot from rect  of stack "Super Snap" to file
".png" as PNG
end mouseUp

the thing gets stuck on the "export snapshot" line . . . cannot think
why . . .

image "snapBTN.png": execution error at line 5 (import: error in
expression), char 1

that stuff about "char 1" makes NO sense at all.


I think in general it means the line won't compile at all, there's no 
specific place it errors.


By adding quotes to the variable, you are specifying a string rather 
than a rect. Omit the quotes from the field.


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


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 can we use that, upon import, becomes a native LC
graphic?


Can you use an opaque graphic and set its backgroundPattern to the image ID?

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

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 custom property rather than in its own 
property set, first create the array and then store it:


  put the rect of the last image into tArray["startsize"]
  set the uEffects of the last image to tArray

To get things back out:

  put the uEffects of this cd into tArray
  put tArray["startsize"]

Property sets work too, so it's mostly a matter of personal preference.

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


Re: How to create a hyperlink within a text field?

2016-02-03 Thread J. Landman Gay

A little trick:

Create or import a transparent 1x1 pixel image. Hide it. Make each line 
in the table of contents into linked text. The html of each line looks 
like this:


Chapter one

In the body text of the field, place a marker character before the 
chapter heading. I'm using "#", like this:


#Chapter One

Then set the imagesource of char 1 of the line to the ID of the 
transparent image. You won't be able to see the first character after 
that but the text is still there. The htmltext of that line looks like this:


Chapter One

The line will be slightly indented by one pixel, but it shouldn't be 
noticeable. If you center the heading, it is imperceptible.


In the field script:

on linkclicked pURL
  put "#" before pURL
  put lineoffset(pURL, the formattedtext of me) into tLineNum
  set the scroll of me to the effective textheight of me * (tLineNum-1)
end linkclicked

If you choose a marker character that doesn't exist in the body text, 
lineoffset will always return the correct line.


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


Re: AW: How to create a hyperlink within a text field?

2016-02-04 Thread J. Landman Gay

On 2/4/2016 4:22 AM, BNig wrote:

I like Jaques solution too because it is unequivocal because of the hash.

But Tiemo allows the user to change the width of the field, see his
crossposting to the forum
http://forums.livecode.com/viewtopic.php?f=9&t=26468

That is where Jaque's solution can fail because of wrapping.


The formattedtext returns the correct metrics for me even when the field 
size is changed and the text re-wraps. Do you get different results?


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


Re: LC8 Save command

2016-02-06 Thread J. Landman Gay
That's what I do. If you use "open file" instead of URL syntax you can read 
just the first few bytes without loading the whole stack into RAM and it's 
very quick.



On February 6, 2016 12:02:32 PM Peter Haworth  wrote:


I'm happy to use the "with format" option, just trying to figure out how
the get the stack file's format if it is to be saved in that format. I did
find a stackfileversion cprop in the cREVGeneral cprop set of some stacks
but it was empty.  There are other stacks where it is not present at all. I
guess I will have to open the stack file and read the first few characters
as detailed.


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


Re: Black icons in LC 8 DP 14

2016-02-08 Thread J. Landman Gay

On 2/8/2016 1:01 PM, Devin Asay wrote:

RECOMMENDATION: At the very minimum, I would like to see the bolded
icon label restored, and ideally another visual cue added to really
shout to the user, “Hey, you’re in a special mode now! Pay attention
because things will work a little differently until you turn this
mode off.” Trust me, new users really benefit from this kind of
redundant visual cueing.


Well said. Add me to the want list.

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

Keyboard shortcuts in LC 8

2016-02-08 Thread J. Landman Gay
What happened to the keyboard accessibility? No contextual menus, no way 
to option-cmd-click an object to open the script. No keyboard shortcuts 
to open card or stack scripts. I rely on those constantly.


I am trying LC 8 again after an initial trial several versions ago where 
it wasn't useable. I'm not having much luck this time around either. 
Fifteen years of muscle memory now fails.


How do you get the app browser to open again? I thought they put that back.

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


Re: Keyboard shortcuts in LC 8

2016-02-08 Thread J. Landman Gay

On 2/8/2016 4:27 PM, Mark Wieder wrote:

On 02/08/2016 02:12 PM, J. Landman Gay wrote:

What happened to the keyboard accessibility? No contextual menus, no way
to option-cmd-click an object to open the script. No keyboard shortcuts
to open card or stack scripts. I rely on those constantly.


Yeah, that one caught me too. Delete your preference file to get the
contextual menus and stuff back again. The upgrade path from earlier
versions really needs more thought before this is ready for prime time.


Didn't work.




How do you get the app browser to open again? I thought they put that
back.


It's been demoted to the plugins menu now.



I don't see it in there.

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


Re: Keyboard shortcuts in LC 8

2016-02-08 Thread J. Landman Gay

On 2/8/2016 4:27 PM, Mark Wieder wrote:


Yeah, that one caught me too. Delete your preference file to get the
contextual menus and stuff back again. The upgrade path from earlier
versions really needs more thought before this is ready for prime time.


Didn't work.




How do you get the app browser to open again? I thought they put that
back.


It's been demoted to the plugins menu now.



I don't see it in there.



Never mind, it did work. There was an incompatibility in one of my 
plugins that aborted the startup sequence. Once I fixed that, things 
went back to normal. I found the app browser too.


Thanks.

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


Re: Default font for new objects

2016-02-10 Thread J. Landman Gay
What LC version and OS? It sounds like a font conflict to me, maybe that 
font has the same id as the system font?


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



On February 10, 2016 9:38:44 AM Jim Beckmann  wrote:

Unknowingly, and unwantingly, the default displayed font for newly created 
objects names\labels, in old as well as new stacks, is some form of 
Wingding.  How do I set the default font back to Helvetica, or something, 
for newly created objects?  Thanks.

___
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: When is a GIF Finished Playing?

2016-02-10 Thread J. Landman Gay
I had to manage gif playback manually once. It worked well to just set 
the currentframe repeatedly, ignoring auto-playback entirely. That way 
you can keep track of how many cycles you've done and you can control 
the speed of playback by changing the "send in time" frequency. You 
always know what frame you're on because the script sets it.


I didn't bother to load individual images, just setting the currentframe 
worked okay.


On 2/10/2016 4:00 PM, Scott Rossi wrote:

Nope, you just have to "know"  :-)

-HH makes a good point that I forgot about: if you control the playback
yourself, setting the GIF's currentFrame every so many millisecs, you'll
always know which frame you're on in the GIF.  This will work for most
GIFs, but can mess up playback of GIFs that use varying frame delays since
timing will differ from how the GIF was originally authored.



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


Re: No audio playback on iOS devices

2016-02-11 Thread J. Landman Gay
Does it work if you use specialFolderPath("resources") instead of "engine"? 
Apple changed the rules for bundle structure and LC tries to redirect older 
paths to the resources folder, but maybe that's not working in this case.




On February 11, 2016 11:20:52 AM Devin Asay  wrote:.


I ran a check on open card: answer there is a file tFilePath # where 
tFilePath contains the full path to the file I’m trying to play. The file 
path is based on specialFolderPath(“engine”)

This check returns “true”.

I verified that the asset files are being copied to the app bundle.

It still plays fine on the simulator and on an Android device.

Has anything changed in terms of what kinds of files can be played on iOS 
devices?



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

Re: Replacing Stacks in Memory

2016-02-16 Thread J. Landman Gay

I use the "revert"  command. It basically just means "reload from disk" .

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



On February 16, 2016 12:14:15 PM Michael Doub  wrote:


I am building a launcher app the loads stacks from DropBox.
I am using

go URL tURL where the tURL is the stack to load using the correct
DropBox format.

This works great for the first load.  However, if I update the stack in
DropBox and try to reload tURL, it does not purge the existing stack and
load the new one.

Is there a way to force a reload?

Regards,
Mike


___
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: mergExt Acquisition

2016-02-18 Thread J. Landman Gay

On 2/18/2016 6:35 PM, Clarence P Martin wrote:

I hope the MergExt will include all systems, ie. Android also?


The announcement says they will aim for that. I'm waiting with 
anticipation, since all my mobile apps so far have been cross platform, 
which has prevented me from using almost all of Monte's externals.


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


Re: Programmatically determine the average greyscale

2016-02-18 Thread J. Landman Gay

On 2/18/2016 5:05 PM, Sannyasin Brahmanathaswami wrote:

But if I use white type on top of the image and the sky appears there
in the top left area of the image is a light color, then we have a
problem with contrast/readability.

Is there a way to get the "average" grayscale value of a small area
of a photo?


I'm not sure about getting an average, but someone posted the following 
handler here a while ago. I'm sorry I can't give credit, I should have 
saved that.


Determine whether to show white or black text against a colored background:

function calcLuminance pRGB
  -- wikipedia: Y = 0.2126 R + 0.7152 G + 0.0722 B
  put item 1 of pRGB * 0.2126 into tR
  put item 2 of pRGB * 0.7152 into tG
  put item 3 of pRGB * 0.0722 into tB
  if sum(tR,tG,tB) > 125 then return "black"
  else return "white"
end calcLuminance

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


Re: Programmatically determine the average greyscale

2016-02-18 Thread J. Landman Gay

On 2/18/2016 8:44 PM, Sannyasin Brahmanathaswami wrote:

Thanks that could be useful... BTW where to you store this kind of snippet


In an old HC stack I made 20 years ago that I've converted to LC. It's 
not fit for public consumption but it has all my stuff in it so I keep 
using it.



how do you get the color a specific pixel in an image?


I have three examples. The first one is mine, based on a suggestion from 
Scott Raney. The other two are more sophisticated because they use math...


Jacque's:

on getPixelColor pPt -- pass local stack-based pt
  put the screenmouseloc into tOldLoc
  put (item 1 of pPt) + (the left of this stack) into tloc
  put (item 2 of pPt) + (the top of this stack) into item 2 of tloc
  set the screenmouseloc to tloc
  put the mousecolor into tColor
  set the screenmouseloc to tOldLoc
  return tColor
end getPixelColor

It happens so fast you never see the cursor move.

--

Unknown author:

function readPixelColor pVal
   put globalLoc(pVal) into pVal
   put item 1 of pVal + 1 into item 3 of pVal
   put item 2 of pVal + 1 into item 4 of pVal
   export snapshot from rect pVal to templateImage
   get the imageData of templateImage
   reset templateImage
   return byteToNum(char 2 of it) & "," & byteToNum(char 3 of it) & "," 
& byteToNum(char 4 of it)

end readPixelColor

---
Scott Rossi:

local theImageData

function getPixelColor pImage,pX,pY
   if theImageData is empty then put the imageData of pImage into
theImageData
   put width of pImage into W
   put ((pY-1)*W)*4+pX*4 into lastChar
   put charToNum(char lastChar of theImageData) into B
   put charToNum(char lastChar-1 of theImageData) into G
   put charToNum(char lastChar-2 of theImageData) into R
   return R,G,B
end getPixelColor


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


Re: standalone loading script-only stacks

2016-02-18 Thread J. Landman Gay

On 2/18/2016 10:58 PM, Matt Maier wrote:

The log works just fine in the IDE, but it doesn't start in the
standalone...at least not right away. If I start poking at the controls the
log might spontaneously start working for some reason.


The quickModeSetup handler has no "end" statement so it may not be 
compiling correctly. I'm guessing that poking other controls may call 
devLog (which does have the right structure) so that's why it works 
later. I'm not sure why it would work in the IDE though, I'd have 
thought it wouldn't.


The setupAsOf3FEB2016 handler also has no "end" statement.



The real problem here is that the rest of this startup process is supposed
to create a bunch of graph objects, but they're not appearing in the
standalone.


The preOpenStack handler is using the path to the mainstack as the basis 
for determining where the other stacks are located:




   set the defaultStack to "HowstrBeta"
   set the itemDelimiter to "/"
   get the effective fileName of this stack
   set the defaultFolder to item 1 to -2 of it


Replace these four lines with:

   set the defaultfolder to specialFolderPath("resources")

Depending on the OS, standalone resources are copied to different 
locations outside the mainstack folder, and the original handler won't 
find them. You can always get their location with 
specialFolderPath("resources") which will always point to the right 
place. In the IDE, specialFolderPath("resources") points to the folder 
that contains the mainstack, which makes things easy; store the stacks 
in the same folder with the mainstack as you do now, and use 
specialFolderPath to find the stacks during both development and in a 
standalone.


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


Re: Programmatically determine the average greyscale

2016-02-20 Thread J. Landman Gay
I like that idea. You can do the same thing in one go by applying a shadow 
graphic effect to text in a transparent field.

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



On February 20, 2016 5:27:09 PM Tim Selander  wrote:


Would it be better to do what we do in the video world? Put a
black edge on the "Realm of Knowledge" text. Any video editor can
do that, but you can fake a reasonable fascimile put using the
text twice, in layers. Top layer is the text in white. Bottom
layer in black. Shift the black text down and to the right a
couple of pixels. Puts a black edge on the bottom-right of the
white text. Improves readability. You can even blur the black
text a bit to make the effect a bit more subtle.

Tim Selander
Tokyo, Japan

On 2/20/16, 11:32, Sannyasin Brahmanathaswami wrote:


HH You are right of course. one pixel was an expediency and certainly does 
not cover all cases. In fact it is a rather weak algorithm as you can see here:


https://www.evernote.com/l/ABHZ6MzemNNJY6SXFJ3HTMb7afCnCElhYfE

the text field crosses a blown out highlight (white hair) over to a dark 
background.


in a case like this a midtone is usually all one can decide on. in this case

220,220,220

at

200,200,200

we start to hit the same level as the background. in this particular photo:

https://www.evernote.com/l/ABFY-T8OCqNDYK4QOed3qr0G6GfqZUXWjEo

For this particular context I'm actually happy with the "homeKey" field 
being subdued.


but in other cases one wants a stronger presence

https://www.evernote.com/l/ABE267idXlBHrY4Xs4ND27ziH1UjmGtU-eY

Musings:

A random algorithm also does not help us out either.

In this "FlipBoard" model/copy-cat (which is what I'm aiming for in V1) 
image will be dynamically replaced on every return to the same card, not 
only per session, but even if the user just leaves the card and returns.


"Only God will know for sure" what the luminance of the background will be 
under the field, because I'll be dynamically adding more and more images in 
the category over time... if we want to get really "manic" (your term ha!) 
we could write an analyzer to scan every pixel across the whole area 
underneath the field. but I worry this will take up so much CPU time, 
especially on Android that it will delay rendering the card.


In print we often decide to put a background frame behind the type and 
change the opacity of the area to give some weight to the background, but 
on these small mobile spaces, that just adds more noise to the design


I may settle finally on 200,200,200 for all and forget the attempt to 
analyze the background... though it was a very useful exercise and I have 
other context where I can and will use this new "skill"


FlipBoard uses white and I guess they must have a staff of 50 people who 
curate every image and crop to make sure there is dark matter underneat 
their type...


"not gonna happen here"

BR

On February 19, 2016 at 11:05:52 AM, [-hh] 
(h...@livecode.org(mailto:h...@livecode.org)) wrote:



BR,

you do estimate the luminance of a 120x175 = 21000 px region
on base of the evaluation of ONE single deterministic pixel?

Accepted, of course, but then it may be better, from a
probabilistic point of view, not to take "the" pixel (40,40)
but *any* randomly chosen pixel of that region.

You could do for that:

set randomseed to (char -8 to -1 of the millisecs)
put 19+random(120) into pX ; put 19+random(175) into pY

___
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: Programmatically determine the average greyscale

2016-02-20 Thread J. Landman Gay

Should have known you'd answer first.  :-)

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



On February 20, 2016 5:38:30 PM Scott Rossi  wrote:


A good suggestion.  You can achieve the same effect in LC without
duplicate objects by adding a dropshadow effect to the text that has a
size of 0, an angle of 45, and a distance of 2 or 3 (maybe higher,
depending on the size of the text).

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/20/16, 3:25 PM, "use-livecode on behalf of Tim Selander"
 wrote:


Would it be better to do what we do in the video world? Put a
black edge on the "Realm of Knowledge" text. Any video editor can
do that, but you can fake a reasonable fascimile put using the
text twice, in layers. Top layer is the text in white. Bottom
layer in black. Shift the black text down and to the right a
couple of pixels. Puts a black edge on the bottom-right of the
white text. Improves readability. You can even blur the black
text a bit to make the effect a bit more subtle.

Tim Selander
Tokyo, Japan

On 2/20/16, 11:32, Sannyasin Brahmanathaswami wrote:


HH You are right of course. one pixel was an expediency and certainly
does not cover all cases. In fact it is a rather weak algorithm as you
can see here:

https://www.evernote.com/l/ABHZ6MzemNNJY6SXFJ3HTMb7afCnCElhYfE

the text field crosses a blown out highlight (white hair) over to a
dark background.

in a case like this a midtone is usually all one can decide on. in this
case

220,220,220

at

200,200,200

we start to hit the same level as the background. in this particular
photo:

https://www.evernote.com/l/ABFY-T8OCqNDYK4QOed3qr0G6GfqZUXWjEo

For this particular context I'm actually happy with the "homeKey" field
being subdued.

but in other cases one wants a stronger presence

https://www.evernote.com/l/ABE267idXlBHrY4Xs4ND27ziH1UjmGtU-eY

Musings:

A random algorithm also does not help us out either.

In this "FlipBoard" model/copy-cat (which is what I'm aiming for in V1)
image will be dynamically replaced on every return to the same card, not
only per session, but even if the user just leaves the card and returns.

"Only God will know for sure" what the luminance of the background will
be under the field, because I'll be dynamically adding more and more
images in the category over time... if we want to get really "manic"
(your term ha!) we could write an analyzer to scan every pixel across
the whole area underneath the field. but I worry this will take up so
much CPU time, especially on Android that it will delay rendering the
card.

In print we often decide to put a background frame behind the type and
change the opacity of the area to give some weight to the background,
but on these small mobile spaces, that just adds more noise to the design

I may settle finally on 200,200,200 for all and forget the attempt to
analyze the background... though it was a very useful exercise and I
have other context where I can and will use this new "skill"

FlipBoard uses white and I guess they must have a staff of 50 people
who curate every image and crop to make sure there is dark matter
underneat their type...

"not gonna happen here"

BR

On February 19, 2016 at 11:05:52 AM, [-hh]
(h...@livecode.org(mailto:h...@livecode.org)) wrote:


BR,

you do estimate the luminance of a 120x175 = 21000 px region
on base of the evaluation of ONE single deterministic pixel?

Accepted, of course, but then it may be better, from a
probabilistic point of view, not to take "the" pixel (40,40)
but *any* randomly chosen pixel of that region.

You could do for that:

set randomseed to (char -8 to -1 of the millisecs)
put 19+random(120) into pX ; put 19+random(175) into pY

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



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




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

http://lists.runrev.com/mailman/listinfo/use-livecode




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


  1   2   3   4   5   6   7   8   9   10   >