Re: Snapshot includes cursor?

2014-06-01 Thread Paul Hibbert
Bill,

It's not working that way here on OSX 10.8.5 with LC 6.6.1, sometimes I wish I 
could capture the cursor, so I can understand it being frustrating if it 
appears when not required.

You could try hiding the cursor instead of moving it…

set the cursor to none -- Hides the cursor
import snapshot from rect tRect
set the cursor to arrow -- Restores the cursor

Paul

On 2014-06-01, at 7:38 PM, William Prothero  wrote:

> Is snapshot supposed to include capturing the cursor? I’m in LC 6.6 and all 
> of a sudden, I noticed that snapshot was capturing the cursor image. Bummer! 
> I’m getting really frustrated with the snapshot oddities. I did a workaround 
> by moving the cursor out of the capture rectangle, then moving it back after 
> the capture. I had to use the wait command to get it to work. I tried this 
> with LC 6.7 dp4 and it has the same behavior.
> 
> Anyway, is this the way it’s supposed to work?
> Bill
> 
> William A. Prothero, Ph.D.
> University of California, Santa Barbara Dept. of Earth Sciences (Emeritus)
> Santa Barbara, CA. 93105
> http://es.earthednet.org/
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: ScreenRect bug or not

2014-06-03 Thread Paul Hibbert
My test agree with Richard's and confirms this as a bug in LC6.7(DP4), seems OK 
in other versions so it may be something to do with the Cocoa implementation, 
adding an extra line gets round the problem until it's fixed…

   set the effective rect of this stack to the working screenRect
   set the loc of this stack to (item 1 of the screenLoc),(item 2 of the 
screenLoc + 20) -- Temp fix for LC6.7(DP4) bug

Tested on Mac OS X 10.8.5

Paul

On 2014-06-03, at 12:11 PM, "J. Landman Gay"  wrote:

> On 6/3/2014, 1:51 PM, Terence Heaford wrote:
>> set the effective rect of this stack to the working screenrect
>> 
>> I don’t, the traffic lights are still hidden beneath the Mac Menubar.
> 
> 
> That's even better than the method I just posted. Odd it isn't working for 
> you, it works here. The title bar is snugged up against the bottom of the Mac 
> system menu.
> 
> -- 
> 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


Re: field losing formatting on copying

2014-06-05 Thread Paul Hibbert
It's not the margins that are changing on the copy, but the 'textHeight' 
property is, it changes from 12 to 14.

Not sure why it should do that though.

Paul

On 2014-06-05, at 11:39 AM, Dr. Hawkins  wrote:

> On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth  wrote:
> 
>> OK, misunderstood.  However, the label field also shows up with margins of
>> 0,2,0,0 on my end.
>> 
> 
> So it does . . . but look at it--the text in the original fits in the
> field, while the text in the copy doesn't.
> 
> There is *something* different about these two fields . . .  and not
> everything does this on copy, but the fields that do are consistent about
> it.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: field losing formatting on copying

2014-06-05 Thread Paul Hibbert
Just tried another test. I renamed the appropriate fields to begin with "Case" 
and tried this script in the "Do it" button…

on mouseUp
   if exists(grp "J_1" of this cd) then
  delete grp "J_1" of this cd
   end if
   copy grp "J_1" of cd 1 of stack "rawForms" to this cd
   set the topleft of it to 1,1
   
   setTextHeight
end mouseUp

command setTextHeight
   repeat with i = 1 to the number of fields on card "r_controls"
  if the short name of field i begins with "Case" then \
 set the textHeight of fld i to 12
   end repeat
end setTextHeight

…And it seems to work OK just resetting the textHeight.

I know this doesn't answer why the problem occurs, but it does workaround it. I 
tried setting the textHeight & textSize of the stack "mcp", card "r_controls", 
the templateField and the templateGroup, all had no effect on the copied group.

I don't have LC5.5.4 installed, but I used LC5.5.5 (on Mac OS X 10.8.5), I 
expect it would be the same.

Paul


On 2014-06-05, at 2:45 PM, Peter Haworth  wrote:

> Good catch. The textsize also changes from 9 to 11 (actually the effective
> textsize).
> 
> I think I see why this is happening and Dar touched on it in an earlier
> post.  The label field and its owning groups have a blank textsize in the
> rawforms stack but the rawforms stack has its textsize set to 9.  The mcp
> stack on the other hand has an empty textsize so it defaults to 11which
> also causes the textheight to change.
> 
> Set the text size of the mcp stack to 9 and all should work fine.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Thu, Jun 5, 2014 at 12:52 PM, Paul Hibbert  wrote:
> 
>> It's not the margins that are changing on the copy, but the 'textHeight'
>> property is, it changes from 12 to 14.
>> 
>> Not sure why it should do that though.
>> 
>> Paul
>> 
>> On 2014-06-05, at 11:39 AM, Dr. Hawkins  wrote:
>> 
>>> On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth  wrote:
>>> 
>>>> OK, misunderstood.  However, the label field also shows up with margins
>> of
>>>> 0,2,0,0 on my end.
>>>> 
>>> 
>>> So it does . . . but look at it--the text in the original fits in the
>>> field, while the text in the copy doesn't.
>>> 
>>> There is *something* different about these two fields . . .  and not
>>> everything does this on copy, but the fields that do are consistent about
>>> it.
>>> 
>>> 
>>> --
>>> Dr. Richard E. Hawkins, Esq.
>>> (702) 508-8462
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: field losing formatting on copying

2014-06-06 Thread Paul Hibbert
Just tried that on a fresh download and you are right, although doing that also 
changed the appearance of the "Do it" button, so on a fresh copy again, I just 
[ set the textSize of group "J_1" of card 1 of stack "rawForms" to 9 ] and that 
works, now I see where the problem lies…

…In the  stack "rawForms", the text "size" is applied directly to the raw text, 
so the group and it's contents are using the "effective textSize" as (Pete) 
pointed out.

The Stack "mcp" doesn't have a textSize set, so because the copied group and 
it's contents are using the effective textSize they revert to the settings of 
the stack they are being copied into, in this case there are no settings so it 
just reverts to the LC defaults.

The difference appears after the copy because the textHeight is now the default 
14. The textHeight being relative to the textSize applied to the field and not 
to it's raw contents.

In this case the textHeight is being "lost" with the copy process, it is set to 
12 on the original field, but because there is no textSize set for the field it 
doesn't stick.

Changing the original fields by removing the size applied to the raw text (i.e. 
use owners size) and applying the correct textSize to the fields also resolves 
the problem.

Paul

On 2014-06-06, at 8:38 AM, Peter Haworth  wrote:

> On Thu, Jun 5, 2014 at 5:58 PM, Paul Hibbert  wrote:
> 
>> I know this doesn't answer why the problem occurs, but it does workaround
>> it. I tried setting the textHeight & textSize of the stack "mcp", card
>> "r_controls", the templateField and the templateGroup, all had no effect on
>> the copied group.
>> 
>> I don't have LC5.5.4 installed, but I used LC5.5.5 (on Mac OS X 10.8.5), I
>> expect it would be the same.
>> 
> 
> Setting the textsize of the mcp stack to 9 fixes the problem for me.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: field losing formatting on copying

2014-06-06 Thread Paul Hibbert
The textStyle isn't a problem, it's the size that's causing the problem, so you 
could try this it works in the test stack…

(Do it Button script)

on mouseUp
   if exists(grp "J_1" of this cd) then
  delete grp "J_1" of this cd
   end if
   copy grp "J_1" of cd 1 of stack "rawForms" to this cd
   set the topleft of it to 1,1

   resetTextHeight(J_1)

end mouseUp

command resetTextHeight pGrp
   repeat with i = 1 to the number of fields in grp pGrp
  if the short name of fld i = "Label Field" then
 set the textSize of fld i to textSize of  word 1 of fld i
 set the textSize of word 1 to -1 of fld i to empty
  end if
   end repeat
end resetTextHeight

Paul

On 2014-06-06, at 11:51 AM, Dr. Hawkins  wrote:

> On Fri, Jun 6, 2014 at 10:04 AM, Paul Hibbert  wrote:
> 
>> Changing the original fields by removing the size applied to the raw text
>> (i.e. use owners size) and applying the correct textSize to the fields also
>> resolves the problem.
> 
> 
> Ooohhh!
> 
> I'll try that on offending fields tomorrow.
> 
> The reason it's applied to the text is that these were done by cut & paste
> from the official pdfs, to retain font selection, etc.
> 
> so when looping through the fields,
> 
> if the short name of fld i = "Label Field" then
> set the textStyle of fld i to textStyle of the text of fld i
> set the textStyle of the text fld i to empty
> end if
> 
> 
> ???
> 
> Setting the attributes of the card or stack won't work, as there will be
> multiple sizes & typefaces on a given piece of output.
> 
> But anyway, this still leaves the issue in the engine that when a field
> copies, the attributes of its contents are not . . . and this is in
> prettymuch every version of 5.5.x and 6.x. (The most recent I have before
> that are HyperCard 2.0 and SuperCard 1.5, so . . . :)
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: please help!!

2014-06-07 Thread Paul Hibbert
Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC 
versions, but I'm also on a Mac, however, at least it proves the script sample 
is fine.

Just a thought, could the label of button "?" also have a space or return char 
in the name?

Maybe try swapping the "=" for "contains"

e.g. if the label of button thisButton contains "?" then

Paul


On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote:

> Thank you Randy, but that's not the case here.
> After I got your email, I triple checked.  It's something else going on.
> 
> - Original Message - From: "Randy Hengst" 
> To: "How to use LiveCode" 
> Sent: Saturday, June 07, 2014 9:21 PM
> Subject: Re: please help!!
> 
> 
>> When I've had similar problems I had multiple buttons with the same name.
>> 
>> 
>>> On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:
>>> 
>>> I am using 6.1.1 (rc 4) on XP
>>> 
>>> I have spent HOURS trying to do something that seems fairly simple.
>>> 
>>> I have a column of buttons labeled "tile11", "tile12", etc
>>> 
>>> After I label the buttons, they are all alpha-numeric characters except for 
>>> one being labeled "?"
>>> 
>>> Then I call up the following command:
>>> 
>>> on doOpaque
>>> 
>>> put 0 into x
>>> 
>>> repeat rowNum times
>>> 
>>> put x + 1 into x
>>> 
>>> put ("tile1" & x) into thisButton
>>> 
>>> if the label of button thisButton = "?" then
>>> 
>>> set the opaque of button thisButton to true
>>> 
>>> else
>>> 
>>> set the opaque of button thisButton to false
>>> 
>>> end if
>>> 
>>> end repeat
>>> 
>>> end doOpaque
>>> 
>>> 
>>> 
>>> If I debug and step through it, it always seems to work.  However if I just 
>>> run it, it invariably sets the opaque of the "?" button to false and some 
>>> other button (NOT "?") to true.
>>> 
>>> I'm really going crazy with this and would appreciate it if anyone knows 
>>> why this is happening.
>>> 
>>> Thanks in advance, Larry
>>> ___
>>> use-livecode mailing list
>>> use-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


Re: Printing Cards to PDF

2014-06-24 Thread Paul Hibbert
Nakia,

I tried your script on cards with and without images, I didn't experience any 
problems at all.

Tested with LC 6.6.2 on Mac using OS X 10.8.5 and on Win 7

I can send you my test stack if it's any use.

Paul

On 2014-06-24, at 2:41 AM, Nakia Brewer  wrote:

> H card 2 has some images.
> Think this is where the issue lies.
> 
> If I print card 1 twice (which has no images) it works as expected...
> 
> 
> 
> Sent from my iPhone
> 
>> On 24 Jun 2014, at 7:31 pm, "Nakia Brewer"  
>> wrote:
>> 
>> FWIW I changed the loop to just print card 2 twice and am still seeing the 
>> error.
>> 
>> It seems some sort of automatic scaling is happening after the first print 
>> or perhaps after the first print break...
>> 
>> Sent from my iPhone
>> 
>>> On 24 Jun 2014, at 6:57 pm, "Nakia Brewer"  
>>> wrote:
>>> 
>>> Hi,
>>> 
>>> I have a mobile App (iOS) that prints 2 template cards from a sub stack to 
>>> a 2 page pdf file.
>>> This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have 
>>> tried a few variants of 6.6.2).
>>> 
>>> When I say 'fail' I mean that the first card seems to print at half size 
>>> (in top LH Quadrant) but the second card prints perfectly.
>>> (Happy to send someone the generated PDF).
>>> 
>>> I'm thinking it may be something to do with the res independence stuff 
>>> added in LC 6 but am not sure
>>> (Weird that card 2 prints correct when its the same size etc as card 1)
>>> 
>>> I appreciate any ideas
>>> 
>>> anyway code below.
>>> 
>>> put ("Print" & return & "Print2") into tCardsToPrint
>>> -- Lock screen so user doesn't see card change
>>> lock screen
>>> open stack "Printing"
>>> open printing to pdf tFilePath
>>> if the result is "Cancel" then exit saveInspection
>>> repeat with x = 1 to the number of lines of tCardsToPrint
>>>   print card (line x of tCardsToPrint) of stack "Printing" into 
>>> 110,50,500,700
>>>   print break
>>> end repeat
>>> close printing
>>> close stack "Printing"
>>> send resetForm to me in 0 milliseconds
>>> send buildPendingTasks to this stack in 0 milliseconds
>>> COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
>>> contain confidential proprietary or privileged information. If you are not 
>>> the intended recipient, you are strictly prohibited from using, 
>>> reproducing, disclosing or distributing the information contained in this 
>>> email without authorisation from WesTrac. If you have received this message 
>>> in error please contact WesTrac on +61 8 9377 9444. We do not accept 
>>> liability in connection with computer virus, data corruption, delay, 
>>> interruption, unauthorised access or unauthorised amendment. We reserve the 
>>> right to monitor all e-mail communications.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
>> contain confidential proprietary or privileged information. If you are not 
>> the intended recipient, you are strictly prohibited from using, reproducing, 
>> disclosing or distributing the information contained in this email without 
>> authorisation from WesTrac. If you have received this message in error 
>> please contact WesTrac on +61 8 9377 9444. We do not accept liability in 
>> connection with computer virus, data corruption, delay, interruption, 
>> unauthorised access or unauthorised amendment. We reserve the right to 
>> monitor all e-mail communications.
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
> contain confidential proprietary or privileged information. If you are not 
> the intended recipient, you are strictly prohibited from using, reproducing, 
> disclosing or distributing the information contained in this email without 
> authorisation from WesTrac. If you have received this message in error please 
> contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
> with computer virus, data corruption, delay, interruption, unauthorised 
> access or unauthorised amendment. We reserve the right to monitor all e-mail 
> communications.
> 
> ___
> use-livecode mailing list
> use-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, un

Re: popUp a button with itself on modified mouseDown?

2014-06-30 Thread Paul Hibbert
If your script is in a PopUp Menu button then it's probably just getting 
confused trying to pop up itself!

Maybe try something like this in a PopUp Menu ensuring that the 
"menuMouseButton" prop is set to "1"…

local sModKey

on mouseDown
   --ShiftKey check
   if the shiftKey is down then
  put "Shift Key and" into sModKey
   else
  put "Just" into sModKey
   end if
end mouseDown

on mouseUp pBtn
   if pBtn = 3 then answer sModKey && the short name of me
end mouseUp

on menuPick pItemName
 answer sModKey && pItemName
end menuPick

HTH

Paul

On 2014-06-30, at 8:48 AM, Dr. Hawkins  wrote:

> I'm trying to get a button to normally be a boring old popup, but allow
> other things to be chosen by it.
> 
> The "natural" way would seem to to change it on mousenter if the specified
> modifier key is down, or if the second button is clicked.
> 
> I get the change to happen trivially, but if I'm doing it from a mouseDown,
> I can't get it to display itself.  I'm trying things like,
> 
> on mouseDown bt
>   if bt=3 then
>  popup  button the short name of the target
>   end if
>   pass mouseDown
> end mouseDown
> 
> But I'm not finding a magic combnation
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

2014-07-03 Thread Paul Hibbert
On 2014-07-03, at 12:44 PM, Richmond  wrote:

> Now I had a choice of things to say at that moment:
> 
> 1. "Because I'm a slob who didn't think about that problem." [possibly the 
> only reasons I didn't use this
> one was that it was a bit early in the morning for honesty, and, as a 
> Bulgarian learning English she
> doesn't know the word 'slob']
> 
> 2. "Because I didn't think you would go beyond 'third'"
> 
> Neither of which are frankly satisfactory.

But isn't a teacher's default answer; "Because you need to learn to walk before 
you can run."?

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


Re: Conflicting paths

2014-07-10 Thread Paul Hibbert
Richmond,

Maybe you could use Bernd's stack to trace an oval image.

   Link from a previous post…

   http://forums.runrev.com/phpBB2/viewtopic.php?t=19040&p=96086#p96086

Paul


On 2014-07-10, at 10:43 AM, Richmond  wrote:

> I have a wobbly hand: or wobbly enough that I cannot draw
> an oval graphic to use as a path in a stack that doesn't look
> horrible.
> 
> Does anybody have any tips on how to make an oval path with points
> 
> [that means, before you all rush to point something out, that
> the oval object is no use at all]
> 
> that doesn't look like it has been drawn by a middle-aged dipsomaniac?
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-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: Printing Error OSX RELEASE LiveCode 6.7 DP5

2014-07-24 Thread Paul Hibbert
Terence,

I can confirm this, it's the same in LC 7.0 (dp7) too.

One other problem I noticed is that the page orientation doesn't work in LC 6.7 
or LC 7.0

I added a field to check the printRotated status.

This script works fine in LC 6.6.2, but not in LC 6.7 or LC 7.0

on mouseUp
   put the printRotated into fld 1
 answer page setup as sheet
 if the result = "cancel" then
exit mouseUp
 end if
   put cr & the printRotated after fld 1
 answer printer as sheet
 if the result = "cancel" then
exit mouseUp
 end if
 print this card
end mouseUp

Are you going to report this as a bug?

Paul


On 2014-07-24, at 12:16 AM, Terence Heaford  wrote:

> When I open the print dialogue box in release 6.6.2 and print preview it 
> works, albeit very slowly, as previously reported.
> 
> In 6.7 DP5 the speed of print generation has improved but when I print 
> preview via the system dialogue box it opens the printer instead of opening 
> the preview app.
> 
> Can someone else confirm this please.
> 
> 
> Here is the script I use:
> 
> on mouseUp
>  answer page setup as sheet
>  if the result = "cancel" then
> exit mouseUp
>  end if
>  answer printer as sheet
>  if the result = "cancel" then
> exit mouseUp
>  end if
>  send "printChart" to group "generalChart"
> end mouseUp
> 
> 
> “printChart” basically calculates tPrintRect then "print card from topLeft of 
> me to bottomRight of me into tPrintRect”
> 
> 
> All the best
> 
> Terry
> ___
> use-livecode mailing list
> use-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: Import PDF page as paint?

2014-07-28 Thread Paul Hibbert
You can import a PDF into LC by using a player control instead of an image 
control.

I'm working on a small app that imports Jpegs, Gifs, PNGs, Tiffs, PSDs EPSs & 
PDFs and all work just fine, just use an image control for the first three, or 
a player control for the remaining four. Take a snapshot of the player control 
then pass it back to an image control to continue working with it.

I'm sure you'll have some fun when you start playing with this, it really beats 
using PhotoShop or Gimp when you just need a quick image edit/resize or to add 
watermarks etc., and it's so much more satisfying. Just don't try loading any 
really big image with it!

Paul


On 2014-07-28, at 10:52 PM, Richmond  wrote:

> As GIMP (open Source) can import a page of a PDF document as an image
> might that capability not be built into Livecode in due course?
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-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: Import PDF page as paint?

2014-07-28 Thread Paul Hibbert
Forgot to mention that this does currently rely on QuickTime, I have run into a 
few problems with the latest DPs of LC 6.7 & 7.0 - need a bit more time testing 
them.

Paul

On 2014-07-28, at 11:11 PM, Paul Hibbert  wrote:

> You can import a PDF into LC by using a player control instead of an image 
> control.
> 
> I'm working on a small app that imports Jpegs, Gifs, PNGs, Tiffs, PSDs EPSs & 
> PDFs and all work just fine, just use an image control for the first three, 
> or a player control for the remaining four. Take a snapshot of the player 
> control then pass it back to an image control to continue working with it.
> 
> I'm sure you'll have some fun when you start playing with this, it really 
> beats using PhotoShop or Gimp when you just need a quick image edit/resize or 
> to add watermarks etc., and it's so much more satisfying. Just don't try 
> loading any really big image with it!
> 
> Paul
> 
> 
> On 2014-07-28, at 10:52 PM, Richmond  wrote:
> 
>> As GIMP (open Source) can import a page of a PDF document as an image
>> might that capability not be built into Livecode in due course?
>> 
>> Richmond.
>> 
>> ___
>> use-livecode mailing list
>> use-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: Add a control to a group

2014-08-01 Thread Paul Hibbert
Hi Devin,

Yet another approach…

   create invisible image "snapShot" in group "myGroup"
   export snapshot from group "or_Whatever" to image "snapShot"
   set the visible of img "snapShot" to true

Paul

On 2014-08-01, at 3:36 PM, Mark Schonewille  
wrote:

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


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


Re: OpenControl

2014-08-04 Thread Paul Hibbert
Jacque stated; "The group needs to be self-contained with no additional 
scripting anywhere else in the stack."

But by putting a "preOpenCard" (or openCard) handler in the *Group's script* 
does mean that the group is still self contained. I was curious, so I tried a 
quick experiment and this does appear to work. Not too sure if it would solve 
Jacque's problem, but may be worth a try, looking at the manual I'd expect this 
just to work for user events, system events bypass controls and groups.

Thanks to HH for suggesting it, I've learnt something new, I always expected 
preOpenCard or openCard handlers just go in card or stack scripts, I never 
considered using them in a group or a control to be valid.

Paul


On 2014-08-04, at 10:37 AM, Peter Haworth  wrote:

> On Mon, Aug 4, 2014 at 6:11 AM, hh  wrote:
> 
>> Do all changes in a preOpenCard handler in the group's script.
> 
> 
> I believe the original post stated that no openxxx or preopenxxx handlers
> could be used.
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> ___
> use-livecode mailing list
> use-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: mouseUp question

2014-08-06 Thread Paul Hibbert
Larry,

One way to do this is to pass the result of each mouse handler to a command 
e.g.:

local sMouseClicks

on mouseUp
   put 1 into sMouseClicks
   mouseAction
end mouseUp

on mouseDoubleUp
   put 2 into sMouseClicks
   mouseAction
end mouseDoubleUp

command mouseAction
   if sMouseClicks = 2 then
  put "Mouse Double Up"
   else
  put "Mouse Up"
   end if
end mouseAction

There may be better ways but this works well enough for me.

Paul


On 2014-08-06, at 9:11 PM, la...@significantplanet.org wrote:

> In a field I have two scripts - one for mouseUp and another one for 
> mouseDoubleUp
> 
> When the user clicks a line in the field (mouseUp) it plays the .wav file 
> they click on
> 
> When the user double clicks it copies the .wav file to another field.
> 
> The problem is that LC runs BOTH scripts when the user dbl clicks.
> There is the small delay of time after the first click and before the second 
> click.
> 
> How do I get LC to ignore mouseUp when the user dbl clicks??
> 
> TIA
> Larry
> ___
> use-livecode mailing list
> use-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: mouseUp question

2014-08-06 Thread Paul Hibbert
Just realised that won't work in this case! It will play the file and copy it.

Paul

On 2014-08-06, at 9:30 PM, Paul Hibbert  wrote:

> Larry,
> 
> One way to do this is to pass the result of each mouse handler to a command 
> e.g.:
> 
> local sMouseClicks
> 
> on mouseUp
>   put 1 into sMouseClicks
>   mouseAction
> end mouseUp
> 
> on mouseDoubleUp
>   put 2 into sMouseClicks
>   mouseAction
> end mouseDoubleUp
> 
> command mouseAction
>   if sMouseClicks = 2 then
>  put "Mouse Double Up"
>   else
>  put "Mouse Up"
>   end if
> end mouseAction
> 
> There may be better ways but this works well enough for me.
> 
> Paul
> 
> 
> On 2014-08-06, at 9:11 PM, la...@significantplanet.org wrote:
> 
>> In a field I have two scripts - one for mouseUp and another one for 
>> mouseDoubleUp
>> 
>> When the user clicks a line in the field (mouseUp) it plays the .wav file 
>> they click on
>> 
>> When the user double clicks it copies the .wav file to another field.
>> 
>> The problem is that LC runs BOTH scripts when the user dbl clicks.
>> There is the small delay of time after the first click and before the second 
>> click.
>> 
>> How do I get LC to ignore mouseUp when the user dbl clicks??
>> 
>> TIA
>> Larry
>> ___
>> use-livecode mailing list
>> use-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: sorting

2014-08-09 Thread Paul Hibbert
Larry,

If I understand right, just change the direction of the second sort to put the 
beginners first, this worked for my test:

on mouseUp
   sort lines of fld "sortField" by word 2 of each
   sort lines of fld "sortField" descending by word 1 of each
end mouseUp

Paul

On 2014-08-09, at 4:56 AM, la...@significantplanet.org wrote:

> Hello Alex,
> OK, in my previous email I gave some hypothetical data.
> In my app I actually have a field where the first word is either Advanced or 
> Beginner
> The 2nd word is a number ranging from 2 to 25, showing how many items.
> There are some other words after those, but I'm not concerned about them.
> 
> As lines are added to the field, they are in jumbled order.
> What I want is this on the sort: (All the Beginners in numeric order, 
> followed by all the Advanced in numeric order)
> Beginner 1
> Beginner 2
> Beginner 3 (etc.)
> Advanced 1
> Advanced 2
> Advanced 3 (etc.)
> 
> Thanks,
> Larry
> 
> 
> - Original Message - From: "Alex Tweedly" 
> To: 
> Sent: Saturday, August 09, 2014 3:51 AM
> Subject: Re: sorting
> 
> 
> Larry,
> can you be more explicit about how it doesn't work ?
> 
> Actually, can you explain better what you want to do ? You said you want
> to sort by the 2nd and then the 3rd word - but gave an example that
> appeared to show sorting by 2nd and 1st - and not even have a 3rd word
> in any line.
> 
> So how about a slightly less terse description, and an example showing
> both "before" and "after" and hopefully we can get you to where you want
> 
> 
> -- Alex.
> 
> 
> On 09/08/2014 09:14, la...@significantplanet.org wrote:
>> Sorry, that doesn't work
>> 
>> - Original Message - From: "Björnke von Gierke" 
>> To: "How to use LiveCode" 
>> Sent: Saturday, August 09, 2014 12:58 AM
>> Subject: Re: sorting
>> 
>> 
>>> sort theList by word 2 of each
>>> sort theList by word 1 of each
>>> 
>>> sort order is retained in-between commands, that's why it works.
>>> 
>>> On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote:
>>> 
 I have a field I want to sort.
 Each line has 4 words.
 I want to sort by the first word (ascending) and then do a 2nd sort by the 
 3rd word without changing the order of the first word.
 
 Example:
 
 apple  box
 apple  pie
 apple  zoo
 baby  blue
 baby  rattle
 baby  zoo
 etc.
 
 TIA
 Larry
 ___
 use-livecode mailing list
 use-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 
> 
> ___
> use-livecode mailing list
> use-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: sorting - THANK YOU PAUL!!

2014-08-09 Thread Paul Hibbert
You're more than welcome.

I often see the problems posted here as challenges, some I have no chance with 
(they are way over my head), some I learn from other's answers, some I get 
totally wrong. Occasionally I see what I think may be a solution, but I usually 
have to do a test first to be sure I understand and don't make too much of a 
fool of myself in public - sometimes get that wrong too! Most are already 
answered by the time I've worked out a reply, but I still learn.

Anyway, I'm always pleased to help if I can as are most of the others on this 
list, it's a great place to learn more about the intricacies of developing with 
LiveCode.

Paul

On 2014-08-09, at 9:33 AM, la...@significantplanet.org wrote:

> Hi Paul,
> After trying MANY suggestions and my own trial and ERRORS, you finally 
> provided me with a solution that actually works.
> I very much appreciate that you actually tested it.
> I have the feeling that many times in this list well-meaning people post 
> "solutions" that they have not tested and therefore often do not work.
> Thanks again,
> Larry
> 
> - Original Message - From: "Paul Hibbert" 
> To: "How to use LiveCode" 
> Sent: Saturday, August 09, 2014 9:57 AM
> Subject: Re: sorting
> 
> 
> Larry,
> 
> If I understand right, just change the direction of the second sort to put 
> the beginners first, this worked for my test:
> 
> on mouseUp
>  sort lines of fld "sortField" by word 2 of each
>  sort lines of fld "sortField" descending by word 1 of each
> end mouseUp
> 
> Paul
> 
> On 2014-08-09, at 4:56 AM, la...@significantplanet.org wrote:
> 
>> Hello Alex,
>> OK, in my previous email I gave some hypothetical data.
>> In my app I actually have a field where the first word is either Advanced or 
>> Beginner
>> The 2nd word is a number ranging from 2 to 25, showing how many items.
>> There are some other words after those, but I'm not concerned about them.
>> 
>> As lines are added to the field, they are in jumbled order.
>> What I want is this on the sort: (All the Beginners in numeric order, 
>> followed by all the Advanced in numeric order)
>> Beginner 1
>> Beginner 2
>> Beginner 3 (etc.)
>> Advanced 1
>> Advanced 2
>> Advanced 3 (etc.)
>> 
>> Thanks,
>> Larry
>> 
>> 
>> - Original Message - From: "Alex Tweedly" 
>> To: 
>> Sent: Saturday, August 09, 2014 3:51 AM
>> Subject: Re: sorting
>> 
>> 
>> Larry,
>> can you be more explicit about how it doesn't work ?
>> 
>> Actually, can you explain better what you want to do ? You said you want
>> to sort by the 2nd and then the 3rd word - but gave an example that
>> appeared to show sorting by 2nd and 1st - and not even have a 3rd word
>> in any line.
>> 
>> So how about a slightly less terse description, and an example showing
>> both "before" and "after" and hopefully we can get you to where you want
>> 
>> 
>> -- Alex.
>> 
>> 
>> On 09/08/2014 09:14, la...@significantplanet.org wrote:
>>> Sorry, that doesn't work
>>> 
>>> - Original Message - From: "Björnke von Gierke" 
>>> To: "How to use LiveCode" 
>>> Sent: Saturday, August 09, 2014 12:58 AM
>>> Subject: Re: sorting
>>> 
>>> 
>>>> sort theList by word 2 of each
>>>> sort theList by word 1 of each
>>>> 
>>>> sort order is retained in-between commands, that's why it works.
>>>> 
>>>> On 09 Aug 2014, at 08:24, la...@significantplanet.org wrote:
>>>> 
>>>>> I have a field I want to sort.
>>>>> Each line has 4 words.
>>>>> I want to sort by the first word (ascending) and then do a 2nd sort by 
>>>>> the 3rd word without changing the order of the first word.
>>>>> 
>>>>> Example:
>>>>> 
>>>>> apple  box
>>>>> apple  pie
>>>>> apple  zoo
>>>>> baby  blue
>>>>> baby  rattle
>>>>> baby  zoo
>>>>> etc.
>>>>> 
>>>>> TIA
>>>>> Larry
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com

Re: sorting - THANK YOU PAUL!!

2014-08-09 Thread Paul Hibbert
Sorry, I did miss the "numeric" sort, it worked with a short example, but using 
Colin's test script, this also works:

on mouseUp
   sort lines of fld "sortField" numeric by word 2 of each
   sort lines of fld "sortField" descending by word 1 of each
end mouseUp

Paul

On 2014-08-09, at 9:51 AM, Colin Holgate  wrote:

> I tried Craig’s approach, but with the correct syntax, not the condensed 
> example he gave. I put your example list into field 1, and had this script in 
> a button:
> 
> on mouseUp
>   put fld 1 into fld 2
>   sort fld 2 by word 1 of each & word 2 of each
> end mouseUp
> 
> I then scrambled (manually) the lines of field 1. That consistently gives 
> back the list in the sorted order you showed.
> 
> Next I tried this script:
> 
> on mouseUp
>   repeat with a = 1 to 100
>  put item random(2) of "advanced,beginner" && random(100) into line a of 
> fld 1
>   end repeat
>   put fld 1 into fld 2
>   sort fld 2 by word 1 of each & word 2 of each
> end mouseUp
> 
> Field 1 had a random list of advanced and beginner entries, with a level too, 
> and after clicking the button field 2 showed the list as sorted.
> 
> Now, it’s an alpha sort not a numeric sort, and Paul’s approach, which was 
> the same as Björnke’s, also fails in that way.
> 
> So, Craig’s suggestion was good, just not with the syntax expanded.
> ___
> use-livecode mailing list
> use-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: Convert a scrolling field to PDF

2014-08-09 Thread Paul Hibbert
This should start the ball rolling…

on mouseUp
   answer page setup as sheet
   if the result is "cancel" then exit mouseUp
   
   ask file "Save as PDF…" with "listPDF.pdf" as sheet
   if the result is "cancel" then exit mouseUp
   put it into tPath
   
   open printing to pdf tPath
   revPrintField the name of field "sortField"
   close printing
end mouseUp

Paul

On 2014-08-09, at 9:01 PM, Charles Szasz  wrote:

> I have a scrolling that I use for printing in my app.  How do you save a 
> scrolling field as a PDF?  Or is this possible?
> 
> Sent from my iPad
> ___
> use-livecode mailing list
> use-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: Helping newcomers anticipate that standalones can't save to themselves

2014-08-15 Thread Paul Hibbert
>From my own point of view, I struggled trying to understand some of the basic 
>principles of using LC (Revolution as it was then), until I finally picked 
>apart some sample stacks such as the calculator etc., then a few things 
>started to fall in to place.

After that I looked for stacks that had a similar use or techniques to the 
project I wanted to build (I still do to an extent), to find ideas and learn 
about how LC works in ways that I maybe don't know or understand.

My biggest frustration at the time was the disjointed documentation and lack of 
structured tutorials, many people have also made the same comments over the 
years. I feel the tutorials especially have improved and the documentation is 
improving slowly.

Thinking back to when I discovered that I needed an anchor window (or "splash" 
screen), again I had to do more research to find out what was needed until I 
eventually understood the reasons and principles behind this process. Maybe 
this could be addressed with a good, well structured "My First Application" 
tutorial that ships with each new user download, or a package that's easily 
visible and readily available for new users to download. Currently there is 
just a free mobile template that tries to entice users to download the 
community version.

I'm sure there are enough teachers and ex-teachers on this list that could 
maybe help with this. A well structured tutorial can help to guide the new user 
with the right techniques from the start. 

Moving forward from the anchor window (or "splash" screen), I also feel a 
series of basic project templates (or starting points) could be useful, not as 
complex as the GLX framework, but something that already has an anchor window, 
preferences, menu bar and a few basic (commented) scripts for printing, saving 
etc.

Obviously these templates would be different for desktop, mobile or tablet, but 
starting from a template rather than a single empty stack would eventually help 
to guide the new user towards a better understanding of the techniques needed 
for each platform.

Paul


On 2014-08-15, at 7:13 AM, Richard Gaskin  wrote:

> One of the most frequent frustrations new users have with LiveCode is the 
> moment they realize the standalone they've built can't save changes to its 
> stacks.
> 
> Often this happens very late in the process, just after building the 
> standalone to test out the work they've been doing, and suddenly everything 
> that worked so well in the IDE stops working, with no readily discernible 
> cause.
> 
> So they come into the forums or this list, and folks mention everything from 
> refactoring their work to use an anchor window (or "splash" screen) pattern, 
> or completely rewrite everything to use an external text file or database or 
> what have you.
> 
> The LiveCode User Guide's section on building standalones includes a bold 
> purple callout box explaining this (p 299), but it's a testament to the 
> usability of LiveCode that apparently a great many people can use it 
> productively for many weeks without ever cracking the User Guide.
> 
> Clearly something more is needed.  What should that be?
> 
> Putting a note in the Standalone Builder might help, but if they've gotten 
> that far it's too late, they probably have to start rewriting things.
> 
> How can we help users anticipate IN ADVANCE that no OS will allow their 
> executable to write to itself, so they can write useful things from the very 
> start?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Why doesn't menupick work

2014-08-20 Thread Paul Hibbert
Works fine for me in LC 5.5.5, LC 6.6.2 & LC 7.0(dp10) on Mac OS X 10.8.5 and 
in LC 6.6.2 on Windows 7.

Do you see any kind of error?

Paul

On 2014-08-20, at 6:08 PM, revolut...@duncansoftware.on-rev.com wrote:

> Why doesn't  this code work?
> 
> on menuPick pItemName
>   go card pItemName
> end menuPick
> 
> where the comboBox has a list of card names.
> ___
> use-livecode mailing list
> use-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: ._!

2014-08-26 Thread Paul Hibbert
Richard,

It seems turning off the '._*' file creation could cause problems with the 
Apple Finder and some MS Office apps.

After a quick search I found an old entry on Mac OS X Hints (MacWorld forum) 
that states "using the 'mv' and 'cp' commands (in Terminal) will move or copy 
files without the ._ files.", so maybe you could use a shell command to do the 
copying.

I just tried a quick test and although I'm not seeing any '._*' files, I 
noticed that using the 'cp' command doesn't copy the '.DS_Store' file so it may 
be worth a try to see if avoids copying the '._*' files too.

Article link:- http://hints.macworld.com/article.php?story=20020217094739452

Paul


On 2014-08-26, at 2:40 PM, Richard Gaskin  wrote:

> When copying files from a Mac to a volume formatted with NTFS or other 
> Windows-compatible format, for each Mac file it also creates a second file 
> with the same name but with "._" prepended to it.
> 
> E.g., this:
> 
>   MyFile1.txt
>   MyFile2.txt
> 
> ...becomes:
> 
>   ._MyFile1.txt
>   ._MyFile2.txt
>   MyFile1.txt
>   MyFile2.txt
> 
> This is course annoying, and worse, for many people I run into it's also 
> confusing as well.
> 
> Strangely, the otherwise-usability-conscious Apple has provided no 
> Preferences setting in the Finder for this sad behavior.
> 
> Anyone here know if there's some command-line option we can set to tell the 
> Mac to stop doing that?
> 
> I used to write scripts to remove them after the fact, but it would be much 
> simpler/saner to just turn that off altogether.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Congrats LC 7.0! You finally broke my DB!

2014-09-09 Thread Paul Hibbert
Mark,

Please bear in mind that LC 7.0 is not in final release yet, so it shouldn't 
really be used in production, it should only be used for testing right now. 
There are prominent warnings in the release notes.

If you do find a bug such as this then RR needs to know about it, so reporting 
it using http://quality.runrev.com will give them the opportunity to fix the 
issue before final release. That helps everyone in the end.

All you can hope for by posting it to the list is that someone may have a 
workaround that will help you and you may stop others falling into the same 
trap.

Pleased to hear you didn't lose all your hard work!

Paul


On 2014-09-09, at 1:44 PM, Mark Mitchell  wrote:

> First of all, LC is an absolutely amazing product.  It's actually so amazing 
> that I don't want to tell anyone about it, as I can make my computer dance 
> and sing, and everyone thinks I am a programming wiz... 
> 
> However, my basic data base app has been running my small company for about 
> 14 years?  I think it started with the free meta-card, which was limited to 
> just 10 lines of code, so you had to keep passing your code from hidden 
> object to object, in order to keep it free... anyone remember those days?  It 
> was like NASA controlling Voyager!  Then, this app went through paid 
> metacard, Revolution Beta, paid Revolution, all versions of Livecode and 
> FINALLY LC 7.0 managed to break it...
> 
> I don't want to seem like a whiner; I HAVE paid hundreds of dollars for 
> various incarnations and complicated licenses of this, ever since I was a 
> beta tester.  (And I never received a stuffed animal!)
> 
> But this DB app has run on, quite literally, more than 20 different computers 
> and various operating systems.  It has managed my company and allowed me to 
> raise more than 7 cats.
> 
> The DB used 'color coding' of the lines, so the color of the lines is vital 
> information.  LC 7.0 erases all the previous 13 year of coloring on the 
> entire fields and reverts them to plain text.. thus dumping 13 years of 
> essential information.
> 
> All is OK, for the time being, I have trashed LC 7.0 and restored all stacks 
> (which worked fine with LC 6.6 but will not open with LC 7.0).  
> 
> I have tested on multiple machines, and it has failed, yet it still works 
> fine on LC 6.6.  Is this not a bug?  I have a feeling it is tied to the 
> revamped unicode which LC 7.0 has promised, but which I have not yet had a 
> chance to test.
> 
> I have narrowed down the offending code to this:
> 
> global planDate,linNum
> put "absolutely anything" into line linNum of card field "plan"
> --
> It gets 'put' alright, but card field "plan" loses all previous formatting.  
> Big, big bug if it changes folks' stacks forever!
> 
> I've tried putting a global or a non-variable, and I get the same result.
> I would say I am doing something stupid, but I didn't DO anything, except 
> upgrade to 7.0
> 
> (edit: in a previous post, I included an extraneous 'the' as I was testing to 
> see if the type of variable mattered.  Anyway, the 'the' doesn't matter.  You 
> still lose formatting without it.)
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: WindowShape

2014-09-12 Thread Paul Hibbert
Works fine for me in LC 7.0(rc1) on OS X 10.8.5 - I can drag it around too.

It's a really cool idea, thanks for sharing.

Paul


On 2014-09-12, at 3:49 PM, Scott Rossi  wrote:

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


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


Re: WindowShape

2014-09-12 Thread Paul Hibbert
Crashed here too. So I opened the Activity Monitor, launched LC again, opened 
the stack and activated the animation, then watched the memory usage just grow 
and grow until it stopped at 3.39GB, then eventually it crashed.

Paul


On 2014-09-12, at 4:09 PM, Scott Rossi  wrote:

> After letting the thing run for about a minute, the window disappeared on
> its own (and eventually LC crashed, though not sure that's related).
> 
> Off to the bug report page. . .
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 9/12/14 3:54 PM, "J. Landman Gay"  wrote:
> 
>> Odd. I tried it twice and the animation never ran. The windowshape
>> showed up okay, though as you said, the window wouldn't drag. When I
>> clicked the checkbox it got a checkmark but nothing happened.
>> 
>> On 9/12/2014, 5:49 PM, Scott Rossi wrote:
>>> Hmm.  I just tested in RC1 and the animation seems to work fine, but
>>> dragging the window around the desktop is still screwed up (from past
>>> bug
>>> report).
>>> 
>>> Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> 
>>> 
>>> On 9/12/14 3:29 PM, "J. Landman Gay"  wrote:
>>> 
 On 9/12/2014, 4:05 PM, Scott Rossi wrote:
> Unlike the Lone Ranger's mask, you can animate the window's mask, just
> for
> fun.
> 
> I got inspired since I haven't done one of these in a while.  Execute
> the
> following your message box:
> go url "http://www.tactilemedia.com/download/animated_mask.livecode";
> 
> Once the window loads, look for the teeny checkbox at the top of the
> window to start the animation.
> 
> IMPORTANT: The window mask contains regions of 100% transparency, so
> if
> you click in any of these regions, you will click through the window
> and
> onto your desktop.  Use the "handles" provided around the outer edges
> of
> the window to drag it around your desktop.
> 
> Have a fun masked Friday.
 
 
 Your stuff is so cool. Works great on 6.6.2, my eyes glazed over and I
 started to get hypnotized. I could hear your soothing voice murmuring,
 "you feel slepy...you want to give me your bank account numbers..."
 
 Fortunately I was able to disengage and decided to try it on LC 7.0,
 where it does nothing. My meager fortune has been retained, but you
 should probably tell RR about the failure anyway.
 
 --
 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
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: player question

2014-09-12 Thread Paul Hibbert
Try adding the line:

set the playSelection of player myPlayer to true

Paul


On 2014-09-12, at 4:56 PM,  wrote:

> I have the following lines of code below:
> I put a number such as 10 into field myStart and then execute the code.
> The player still starts playing at the very beginning of the song.
> ?
> TIA
> Larry
> 
> put field myStart * the timeScale of player myPlayer into tStart
> 
> set the startTime of player myPlayer to tStart
> 
> start player myPlayer
> ___
> use-livecode mailing list
> use-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: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Paul Hibbert
Bob,

Cut, copy, paste & clear are available as commands in LC, so maybe simplifying 
your Edit menu a little may help, for example…

--The following menuPick handler was generated by the Menu Builder (& 
simplified a little).
on menuPick pWhich
   switch pWhich
  case "Preferences"
 --Insert script for Preferences menu item here
 break
  default
 do pWhich
   end switch
end menuPick

…It works for what you are describing as far as I can see, although it's not 
perfect.

Tested in LC 5.5.5 + 6.6.2 & 7.0(rc1) on Mac OS X 10.9.3

Cutting, or pasting within a field then tabbing out does trigger a closeField 
message, but "Copy" doesn't, possibly because the field didn't change even 
though the field still closed on tab, it does trigger an exitField.

However, "Clear" doesn't trigger a closeField message for some odd reason, but 
it does trigger an exitField, that seems a little inconsistent to me, because 
the contents of the field did change before exiting in much the same way that 
"cut" changes the field, I realise the "Cleared" text doesn't go onto the 
clipboard, but the effect on the field is the same.

So as far as I can see, "Clear" is the only case you would need to add a script 
for the lack of "closeField".

If anybody else sees the inconsistency with the "Clear" command as a bug, I 
would be happy to make a sample stack and report it, I'd just like to be sure 
I'm seeing it right before I do.

Paul


On Sep 13, 2014, at 5:55 PM, Bob Sneidar  wrote:

> First, if I cut or paste something in a field then tab out, closeField is not 
> triggered.

___
use-livecode mailing list
use-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: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Paul Hibbert
And you are correct Kay, in checking the target against the clipboard, after a 
busy day photographing dolphins I came back and tried another test.

My original suggestion was too simple in that if the clipboardData contained an 
image it would paste the image over the top of everything on the card even 
though the target was a text field.

My apologies for any confusion, I should have checked a few more options before 
posting instead of focussing too much on testing with text.

Paul


On Sep 14, 2014, at 9:19 PM, Kay C Lan  wrote:

> Except Paul is right, on OS X the clear command in a custom built menu
> does not invoke a closeField message which it does if using the IDE's
> clear command. This does seem to be a bug.
> 
> On Mon, Sep 15, 2014 at 12:15 PM, J. Landman Gay
>  wrote:
>> On 9/14/2014, 9:41 PM, Kay C Lan wrote:
>>> 
>>> Now use the Menu Builder to create an OS X Menu for you, tick the box
>>> to Set as stack Menu Bar, have it auto build the script for you, and
>>> then open if for Edit and fill it as you would for Copy, Paste, and
>>> Clear. It should look something like this:
>>> 
>>> --The following menuPick handler was generated by the Menu Builder.
>>> on menuPick pWhich
>>>--breakpoint
>>>switch pWhich
>>>   case "Cut"
>>>  --Insert script for Cut menu item here
>>>  break
>>>   case "Copy"
>>>  set the clipboardData["Text"] to the selectedText of the
>>> focusedObject
>>>  break
>>>   case "Paste"
>>>  put clipboardData["text"] into the focusedObject
>>>  break
>>>   case "Clear"
>>>  put empty into the focusedObject
>>>  break
>>>   case "Preferences"
>>>  --Insert script for Preferences menu item here
>>>  break
>>>end switch
>>> end menuPick
>>> 
>>> Do exactly the same as you did before. After you Paste and Tab or
>>> Clear and Tab LC will NOT Beep.
>> 
>> 
>> I think the magic message you're looking for is just to use the standard LC
>> commands that are available. When I create a menu like this it works as
>> expected:
>> 
>> --The following menuPick handler was generated by the Menu Builder.
>> on menuPick pWhich
>>  switch pWhich
>>case "Cut"
>>  cut
>>  break
>>case "Copy"
>>  copy
>>  break
>>case "Paste"
>>  paste
>>  break
>>case "Clear"
>>  clear
>>  break
>>case "Preferences"
>>  --Insert script for Preferences menu item here
>>  break
>>  end switch
>> end menuPick
>> 
>> 
>> --
>> 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


___
use-livecode mailing list
use-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: Listing & Filtering files

2014-09-16 Thread Paul Hibbert
http://lessons.runrev.com/m/4071/l/17080-files-and-folders-part-2

The link is in the top right corner of part 1. :-)

Paul

On Sep 16, 2014, at 9:30 PM, JB  wrote:

> It says this is PART 1.
> 
> Does anyone know where Part 2 is?
> 
> John Balgenorth
> 
> 
> 
> On Sep 16, 2014, at 9:25 PM, JB  wrote:
> 
>> You want some of the best ways to list and filter files?
>> Here it is from the experts with a stack download to help.
>> 
>> http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1
>> 
>> John Balgenorth
>> 
>> ___
>> use-livecode mailing list
>> use-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: Listing & Filtering files

2014-09-17 Thread Paul Hibbert
John,

It maybe useful for you to inform RR that their site is difficult for you to 
navigate successfully, I'm sure you're not the only one who struggles with the 
light colours, but your personal experience should help them make informed 
decisions in future.

I know there were several complaints about the light green text on the LC site 
when they first started using them, and they did darken the green slightly. I 
think it was Richard Gaskin that pointed out that light green is not a good 
choice for people with colour blindness.

I know it is possible to use a local css file to change the link colours, so I 
tried this wondering if it may help, but it seems that because of the way the 
LC lessons are formatted, the css changes don't have any effect on this site, 
at least in Safari. You can use Firefox however, and it does allow you to 
change the link colours in preferences, not too sure about IE though.

HTH

Paul

On Sep 16, 2014, at 9:59 PM, JB  wrote:

> Thanks for the info on the link for part 2.
> I am color blind on reds and greens and
> after you pointing it out I see it.  Before
> that it kind of disappears and makes it
> easy to miss.
> 
> John Balgenorth
> 
> 
> On Sep 16, 2014, at 9:54 PM, Paul Hibbert  wrote:
> 
>> http://lessons.runrev.com/m/4071/l/17080-files-and-folders-part-2
>> 
>> The link is in the top right corner of part 1. :-)
>> 
>> Paul
>> 
>> On Sep 16, 2014, at 9:30 PM, JB  wrote:
>> 
>>> It says this is PART 1.
>>> 
>>> Does anyone know where Part 2 is?
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> 
>>> On Sep 16, 2014, at 9:25 PM, JB  wrote:
>>> 
>>>> You want some of the best ways to list and filter files?
>>>> Here it is from the experts with a stack download to help.
>>>> 
>>>> http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1
>>>> 
>>>> John Balgenorth
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-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


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

2014-09-17 Thread Paul Hibbert
You almost wrote it in your email!

   set the endValue of Scrollbar "myProgressScrollbar" to myValue

If you look at the very first item in the LiveCode Preferences, you'll see that 
you can change the "Property Labels" to show the "Name of the LiveCode 
Property" instead of the "Description of the option".

This helps a lot when looking for property names, they are all right there in 
the inspector, but it's an easy step to overlook.

HTH

Paul

On Sep 17, 2014, at 10:03 PM, JB  wrote:

> How do I set the end value of a progress
> bar by code instead of the inspector?
> 
> John Balgenorth
> 
> ___
> use-livecode mailing list
> use-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: Selecting a Stack

2014-09-20 Thread Paul Hibbert
John,

I noticed that the ask and answer dialogues both issue a 'suspendStack' message 
to the card, but there is no 'resumeStack' message when the dialogue is 
dismissed, maybe that is confusing listMagic. Going to the messageBox and back 
to the card does issue a 'suspendStack' and 'resumeStack' message.

You could try adding a 'resumeStack' command after the ask or answer command, 
something like:

on mouseUp
   answer "Hello World!" with "Cancel" or "Hello LiveCode!"
   resumeStack
end mouseUp

This seemed to work in the simple test I did, but I don't have listMagic and 
I'm not sure if this is the best way to address the problem, it's just a 
suggestion.

Paul


On Sep 20, 2014, at 7:25 AM, JB  wrote:

> I juste tried it with the ask command and it
> did not work properly.  Maybe the message
> box and files dialog become the editable
> window and when they close the card is
> the editable window while the answer and
> ask commands do not become editable
> windows and the messages are not sent
> properly.  Either that or the message box
> is passing a message the others are not
> could be what is happening.
> 
> I can make it work so it is not a big problem
> for me.
> 
> John Balgenorth
> 
> 
> On Sep 20, 2014, at 7:01 AM, JB  wrote:
> 
>> Hi Jacque,
>> 
>> Thanks for the info.
>> 
>> I tried it and it does not work.  The Dictionary says
>> if the stack is already in a editable window it does
>> not send the messages.
>> 
>> The problem is with ListMagic lines not refreshing
>> properly.  They will refresh from the message box
>> and back and from a dialog like getting a file but
>> not from a answer message.
>> 
>> It seems the message box is sending some kind of
>> pass message that the answer command does not
>> send but I do not no what the message box passes.
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 20, 2014, at 6:49 AM, J. Landman Gay  wrote:
>> 
>>> See the toplevel command in the dictionary.  
>>> 
>>> On September 20, 2014 7:52:52 AM CDT, JB  wrote:
 When I click on the message box it becomes the active
 window and then if I click on the card in my stack that is
 currently displayed it becomes the active window.
 
 When I use the answer command it becomes the active
 window but after closing the answer window my card is
 not the active window.  If I click on the finder and then
 on the card it becomes the active window again.
 
 How do I select the stack from a script so it becomes the
 active window.  I guess this would be used in selecting a
 stack that is already opened and then selecting another
 stack that is also opened.
 
 John Balgenorth
 
 ___
 use-livecode mailing list
 use-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
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: replaceText() not working as expected for multiple lines

2014-09-20 Thread Paul Hibbert
The explanation of ^ that I found states, "The ^ (circumflex or caret) outside 
square brackets means look only at the beginning of the target string.", so the 
way I see it, if it's only looking at the beginning it's not going to repeat 
through the rest of the lines, so you could use a repeat loop (tested and it 
works) or just don't use the ^.

If I put…

/Users/hawk/bk_clients/blue aardvark/blue_aardvark001.dhbk
/Users/hawk/bk_clients/pink panther/pink_panther_001.dhbk
/Users/hawk/bk_clients/super chicken/super_chicken005.dhbk
/Users/hawk/bk_clients/test5/test5001.dhbk

…into a variable tVar and use…

   put replaceText(tVar,"/Users/hawk/bk_clients/",empty) into tVarOut

…then tVarOut contains:

blue aardvark/blue_aardvark001.dhbk
pink panther/pink_panther_001.dhbk
super chicken/super_chicken005.dhbk
test5/test5001.dhbk

or simply…

   replace "/Users/hawk/bk_clients/" with empty in tVar

…then tVar contains:

blue aardvark/blue_aardvark001.dhbk
pink panther/pink_panther_001.dhbk
super chicken/super_chicken005.dhbk
test5/test5001.dhbk

I know replaceText can use regex, but as far as I can see in this case you are 
just removing a specific string…

…Or am I missing some point again?

Paul

On Sep 20, 2014, at 1:05 PM, Dr. Hawkins  wrote:

> I have a variable with:
> 
> /Users/hawk/bk_clients/blue aardvark/blue_aardvark001.dhbk
> /Users/hawk/bk_clients/pink panther/pink_panther_001.dhbk
> /Users/hawk/bk_clients/super chicken/super_chicken005.dhbk
> /Users/hawk/bk_clients/test5/test5001.dhbk
> 
> which was obtained with a shell command and ls on OSX
> 
> Using replaceText() to replace ^/Users/hawk/bk_clients/ with empty, I get
> 
> blue aardvark/blue_aardvark001.dhbk
> /Users/hawk/bk_clients/pink panther/pink_panther_001.dhbk
> /Users/hawk/bk_clients/super chicken/super_chicken005.dhbk
> /Users/hawk/bk_clients/test5/test5001.dhbk
> 
> That is, the ^ is only being applied to the variable as a whole, rather
> than to each line.
> 
> Does this have to do with how livecode and OSX delimit lines?
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

2014-09-22 Thread Paul Hibbert
Larry,

Try:

on mouseUp
   answer file "?"
   put "binfile:" & it into tFile
   put the length of URL tFile / 1000 & "KB" into fld "myResultField"
end mouseUp

Paul

On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote:

> Hello,
> 
> I know I can use:
> put the files into field "Current Files"
> 
> to get the size of a file (in bytes), but is there any way to use "answer 
> file" or some other way to get the size of just one specific file?
> 
> 
> 
> Thanks,
> 
> Larry
> ___
> use-livecode mailing list
> use-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: file size

2014-09-22 Thread Paul Hibbert
Mike,

That's just what I thought, but it doesn't agree with the actual file size 
shown in the finder, dividing by 1000 does agree with the finder.

It appears this depends on whether the system uses Binary or Decimal 
calculations, it seems Apple use Decimal.

Paul

On Sep 22, 2014, at 5:28 PM, miked...@gmail.com wrote:

> ‎To be technically correct divide by 1024.  
> 
> Mike
> 
>   Original Message  
> From: la...@significantplanet.org
> Sent: Monday, September 22, 2014 8:21 PM
> To: How to use LiveCode
> Reply To: How to use LiveCode
> Subject: Re: file size
> 
> Thanks Paul and Alex and Richard,
> 
> I ended up using Paul's code:
> on mouseUp
> answer file "?"
> put "binfile:" & it into tFile
> put the length of URL tFile / 1000 & "KB" into fld "myResultField"
> end mouseUp
> 
> It works just great!
> Larry
> 
> - Original Message - 
> From: "Paul Hibbert" 
> To: "How to use LiveCode" 
> Sent: Monday, September 22, 2014 4:50 PM
> Subject: Re: file size
> 
> 
>> Larry,
>> 
>> Try:
>> 
>> on mouseUp
>> answer file "?"
>> put "binfile:" & it into tFile
>> put the length of URL tFile / 1000 & "KB" into fld "myResultField"
>> end mouseUp
>> 
>> Paul
>> 
>> On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote:
>> 
>>> Hello,
>>> 
>>> I know I can use:
>>> put the files into field "Current Files"
>>> 
>>> to get the size of a file (in bytes), but is there any way to use "answer 
>>> file" or some other way to get the size of just one specific file?
>>> 
>>> 
>>> 
>>> Thanks,
>>> 
>>> Larry
>>> ___
>>> use-livecode mailing list
>>> use-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


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

2014-09-24 Thread Paul Hibbert
John,

If you open the Development > Message Watcher you will see several 
'ResizeStack' and 'MoveStack' messages are sent by the card when you click the 
button, maybe you can use these.

Paul

On Sep 23, 2014, at 10:29 PM, JB  wrote:

> Is there a way to catch when a Mac user clicks
> the button at the top left of window to expand
> and shrink the current window?
> 
> John Balgenorth
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [OT] Grendel

2014-09-24 Thread Paul Hibbert
Congratulations, the site looks good, but one thing you need to be aware of is 
that the three "Buy Now" buttons near the bottom of the page are missing, I'm 
just seeing white box outlines with question marks in them.

Paul

On Sep 24, 2014, at 10:40 AM, Richmond  wrote:

> http://andregarzia.on-rev.com/richmond/LANGTOOLS.html
> 
> Proud to announce the first release of my GRENDEL [currently a FREE version 
> as the Anglo-Saxon interface is the only one that has been implemented]: 
> available of Windows [XP, Vista, 7], Macintosh [PPC and Intel], and Linux.
> 
> Developed with LiveCode.
> 
> Richmond.
> 
> 
> ___
> use-livecode mailing list
> use-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: MacUpdate doesn't like Grendel

2014-09-24 Thread Paul Hibbert
I just downloaded and tried LC 4.5.3 that's as far back as I can go. I created 
a small test stack and compiled a standalone and it worked just fine, but then 
it was built using LC 4.5.3 running on OS X 10.9.5, not sure if that would make 
a difference.

I tried downloading your Grendel app and it refuses to launch on my iMac 
running OS X 10.9.5, didn't see any error though, it just dies silently, it 
doesn't even get as far as showing it's icon in the dock.

Paul


On Sep 24, 2014, at 12:06 PM, Richmond  wrote:

> Am I right in thinking a standalone compiled with LiveCode 4.5 for MacIntel 
> will NOT run
> on Mac OS 10.9?


___
use-livecode mailing list
use-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: MacUpdate doesn't like Grendel

2014-09-24 Thread Paul Hibbert
Just tested on Mac OS X 10.8.5 and Grendel works fine so it is a Mavericks 
issue.

Paul

On Sep 24, 2014, at 3:30 PM, Paul Hibbert  wrote:

> I just downloaded and tried LC 4.5.3 that's as far back as I can go. I 
> created a small test stack and compiled a standalone and it worked just fine, 
> but then it was built using LC 4.5.3 running on OS X 10.9.5, not sure if that 
> would make a difference.
> 
> I tried downloading your Grendel app and it refuses to launch on my iMac 
> running OS X 10.9.5, didn't see any error though, it just dies silently, it 
> doesn't even get as far as showing it's icon in the dock.
> 
> Paul
> 
> 
> On Sep 24, 2014, at 12:06 PM, Richmond  wrote:
> 
>> Am I right in thinking a standalone compiled with LiveCode 4.5 for MacIntel 
>> will NOT run
>> on Mac OS 10.9?
> 
> 
> ___
> use-livecode mailing list
> use-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: Keeping a group of controls "active" while using edit tool

2014-09-26 Thread Paul Hibbert
Not sure if it's what you are looking for, but if these tool panels are on 
separate stacks or substacks you could try:

palette stack "myToolPanel" --For the (sub)stack to become a palette

and

topLevel stack "myToolPanel" --to revert back to an editable (sub)stack

Paul

On Sep 26, 2014, at 2:49 PM, Dr. Hawkins  wrote:

> I recall some fields I had years ago that stayed "live" with the edit tool,
> much to my dismay.
> 
> I now have an editing tool panel on couple of my stacks for controls to
> choose and center the group I'm using or want to use.
> 
> These are stacks the user will never see, but it would be nice for m own
> convenience.  I thought of storing the tool type on mouseEnter, setting to
> browse, and restory on mouseLeave, but those don't get sent without the
> browse toool.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: sort question for today

2014-09-29 Thread Paul Hibbert
Larry,

This should work…

   put line 7 to -1 of fld myStats into tLinesToSort
   sort lines of tLinesToSort by word 2 of each
   put tLinesToSort into line 7 to -1 of fld myStats

You can only sort all Lines or Items of a container, so if you need to sort 
specific lines or items, you must put them into a separate container to do the 
sort, then replace them.

Paul

On Sep 28, 2014, at 8:35 PM, la...@significantplanet.org wrote:

> Hello,
> 
> I am trying to sort lines 7 through the last line of a field.
> 
> This doesn't work:
> sort lines (7 to last) of field myStats by word 2 of each
> 
> Does anyone know the code that will work?
> 
> Thanks, Larry
> ___
> use-livecode mailing list
> use-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: Trying to get the color at an xy location

2014-10-07 Thread Paul Hibbert
Bill,

Some solutions were posted a while ago for this, I made a copy of one that uses 
the templateImage so I'm not taking any credit, but here's the script:

on mouseUp
   put readPixelColor(pLoc) into fld "Colour"  -- Where pLoc is a local 
coordinate e.g. "200,200"
end mouseUp

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

and another way posted by Jacque:

on getPixelColor pPt
   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 the mouse never moves. Based on a suggestion by Dr Raney.

HTH

Paul

On Oct 7, 2014, at 11:50 AM, William Prothero  wrote:

> Folks:
> I’m trying to the the color under an xy location on my stack. I did it once 
> by sripting a move of the mouse to that location and using mouseColor to get 
> the odor. I’ve forgotten how I did it and can’t get it to work.
> 
> I’m on Mac OSX, 10.9.5 and livecode 7.0 rc2.
> 
> Anybody remember the command for setting the mouseLoc in script?
> Tnx,
> Bill
> 
> William A. Prothero
> http://es.earthednet.org/
> 
> ___
> use-livecode mailing list
> use-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: Using The iOS 8 Simulator

2014-10-07 Thread Paul Hibbert
Jim,

I am using the same setup as you, my iMac is a bit old though, it's a 2009 3.06 
Ghz Intel Core 2 Duo. I found that launching the simulator first helps me a 
lot, I've now added it to the dock next to the ever changing LC dock icon.

When I launch the simulator I wait for the home screen to show then check the 
Hardware > Device menu is correct before choosing "test" in LC then everything 
seems to work OK, if I just rely on hitting "test" in LC without launching the 
simulator first it usually just times out after several messages.

I notice that even launching the simulator on it's own takes for ever so once 
it's running I'll leave it open in the background for more testing if I think I 
need it.

If you want me to try any tests, just ask.

Paul


On Oct 7, 2014, at 7:58 PM, Jim sims  wrote:

> Mike, are you using the same setup as I am (osx, Xcode, LC)?
> 
> Any clues/suggestions?
> 
> sims
> 
> On Wednesday, October 8, 2014, Mike Kerner 
> wrote:
> 
>> It's working ok for me.
>> 
>> On Tue, Oct 7, 2014 at 10:46 PM, Jim sims > > wrote:
>> 
>>> Doesn't fix it here.
>>> 
>>> OS X 10.9.5, LC 6.6.4 RC2, xcode 6.0.1
>>> selected Test Target in LC
>>> 
>>> Device shows up in xcode
>>> In xcode > Window > Devices iPad & iPod Touch show up plus a list of
>>> Simulators display
>>> 
>>> Tested Simulator from LC and get a crash
>>> 
>>> "Unable to start simulator: 634.0.0, no
>>> toolset
>>> 573,175,1,reviPhoneSetSimulatorSDK
>>> 
>>> On Wednesday, October 8, 2014, Chris Sheffield > >
>>> wrote:
>>> 
 Terry,
 
 Go download 6.6.4 RC 2 from downloads.livecode.com. It's supposed to
>> fix
 the simulator issues. It was announced earlier today.
 
 
 
> On Oct 7, 2014, at 8:35 PM, TERRY HASS > 
 > wrote:
> 
> Hi list,
> 
> OSX 10.9.5
> Xcode 6.0.1
> Livecode 6.6.4 RC1
> 
> For the life of me, I haven't been able to simulate a stack (which
>>> works
 perfectly in Xcode 5.1.1 and iOS 7 and below) in Xcode 6.0.1 and iOS 8.
 Even though I start the simulator with iOS 8 selected, the simulator
>>> comes
 up trying to work with iOS 7 and it's a no go from the start. I have
>> been
 banging my head against my iMac but that doesn't help much either.
> 
> ANY help, suggestion or guidance to get Livecode and Xcode to play
>> nice
 together would be greatly appreciated.
> 
> Thanks,
> Terry
> 
> 
> 
> ___
> use-livecode mailing list
> use-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
 
>>> 
>>> 
>>> --
>>> Sent from my iPodo - it makes weird spelling sometimes :-P
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> 
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> Sent from my iPodo - it makes weird spelling sometimes :-P
> ___
> use-livecode mailing list
> use-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: Getting a list of object properties + Dictionary question

2014-10-10 Thread Paul Hibbert
Bob,

I think you are missing the point of…

> 1. Select the object in left-hand column.

Look at the far left column, the top most word in this column is "All", go down 
to the "Object" section and click on one object, say "Field" or "Button" then 
follow point 2 in Jacque's instruction. I'm sure the light will come on!

Paul -- also in BC


On Oct 10, 2014, at 8:56 AM, Earp Robert J.  wrote:

> They say you learn something new every day Jacque, and in my case/age I think 
> that is because I forget something also!!  The list is a great place to get 
> brain cells talking to each other again, and many thanks for your frequent 
> contributions.
> 
> I'm using LC 6.6.3 on Mavericks and the Dictionary doesn't work as you 
> suggest, it just sorts the contents of the dictionary columns by Type, which 
> does put all the type "properties" together, but not all of the properties 
> for a given object.  
> 
> Klaus's suggestion (put the properties of btn "foo" into tP;put the keys of 
> tP) seems to be the easiest way of getting a list of an objects properties.
> 
> However, whilst fiddling with the preferences for the documentation, I 
> noticed that there was not one entry under the Notes column, plus there was 
> no "btn" synonym for "button" which made me wonder what others were missing, 
> plus the User Contributed Notes seemed very sparse.
> 
> I'm not sure if I stuck it in the correct place, but I have submitted a User 
> Contributed Note in "button" saying "btn" is a synonym of "button", and 
> another in "properties" giving Klaus's suggestion to get a list of an objects 
> properties.  We'll see what happens ;-)
> 
> best, Bob...
> 
> Bob Earp - White Rock, British Columbia
> 
> 
>> You can see all the properties of any object in the dictionary:
>> 
>> 1. Select the object in left-hand column.
>> 2. Click the "Type" header in the keyword list. That sorts the list by 
>> type, and all the properties will be displayed together.
>> 
>> As an aside, if you want to see information that isn't already shown, 
>> look in Preferences in the Documentation pane. You can set the types of 
>> information you want to display in the dictionary. There are more 
>> choices than just the defaults.
> 
> ___
> use-livecode mailing list
> use-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


on-rev Client

2014-10-13 Thread Paul Hibbert
> http://newsletters.livecode.com/august/issue177/newsletter2.html

It was reported in the newsletter 177 that the On-Rev Client was working again, 
I tested it at the time and managed to log on successfully, but now I can't, 
has anybody else had similar problems?

I can logon to the cPanel OK, so I know my username and password are correct, 
but the On-Rev Client tells me they are wrong.

I know there's a lot of opposition to this software and it has been a 
frustrating experience using it then not being able to for so long. I did find 
it useful at times so I was pleased to see it back again, but has it crapped 
out again so soon?

I'll file a bug report if it's not just me that's having problems.

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


Re: on-rev Client

2014-10-14 Thread Paul Hibbert
Thanks for the responses, I have sent a report to b...@on-rev.com and will 
report back if I get a response, if anybody else wishes to email them too maybe 
that would help them to understand that this is something we would like fixing.

I think it would be useful if this could be added to the Quality Centre, but 
there are currently no options for On-Rev.

Paul

On Oct 14, 2014, at 6:40 AM, Rick Harrison  wrote:

> Hi Paul & Matthias,
> 
> I can’t get the Secure WebDisk or the On-Rev Client to work on the tio server.
> I am able to login to my account with the c-panel however.  This has been a
> problem for me for a couple of months now, and I had submitted a ticket which
> Dave Williams answered with another question.  I answered his question
> (this was around Sept. 30th) and I still haven’t heard back from him.
> 
> Please keep me informed if you make any progress on this.
> 
> Thanks,
> 
> Rick
> 
> On Oct 14, 2014, at 3:23 AM, Matthias Rebbe | M-R-D 
>  wrote:
> 
>> Hi,
>> 
>> 
>> I have here 3 accounts. They run on Pancake, Tio and Jasmine.
>> It works with my Pancake account, but not with the other ones.
>> 
>> Matthias
>> Am 14.10.2014 um 09:08 schrieb Ralf Bitter :
>> 
>>> Same here.
>>> 
>>> Ralf
>>> 
>>> 
>>> On 14.10.2014, at 06:49, Paul Hibbert  wrote:
>>> 
>>>>> http://newsletters.livecode.com/august/issue177/newsletter2.html
>>>> 
>>>> It was reported in the newsletter 177 that the On-Rev Client was working 
>>>> again, I tested it at the time and managed to log on successfully, but now 
>>>> I can't, has anybody else had similar problems?
>>>> 
>>>> I can logon to the cPanel OK, so I know my username and password are 
>>>> correct, but the On-Rev Client tells me they are wrong.
>>>> 
>>>> I know there's a lot of opposition to this software and it has been a 
>>>> frustrating experience using it then not being able to for so long. I did 
>>>> find it useful at times so I was pleased to see it back again, but has it 
>>>> crapped out again so soon?
>>>> 
>>>> I'll file a bug report if it's not just me that's having problems.
>>>> 
>>>> 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
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: LiveCode 6.6.4

2014-10-16 Thread Paul Hibbert
Ralph,

I've re-opened bug 13590 [ http://quality.runrev.com/show_bug.cgi?id=13590 ] to 
try to get this location services issue resolved. Please feel free to add more 
to it if you have any comments or if you feel I've missed anything.

Paul

On Oct 16, 2014, at 1:24 PM, Ralph DiMola  wrote:

> Mike,
> 
> Yes they do seem slower. It gets worse though. If you cancel the dialog and
> allow your app to continue the keyboard is invisible for both LC and native
> input fields. Bug report==> http://quality.runrev.com/show_bug.cgi?id=13699
> 
> I could check the permissions and kick the user out until they set it to
> "Always" but my customers want to know why "While Using the App" is not
> allowed like the Apple/Google Mapping apps. They consider this a help desk
> disaster.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Mike Kerner
> Sent: Thursday, October 16, 2014 3:44 PM
> To: How to use LiveCode
> Subject: Re: LiveCode 6.6.4
> 
> Do your apps seem slower in this version, anybody, or is that just an ios8
> thing?
> 
> Some of my screen transitions in this version seem downright pokey.
> 
> On Thu, Oct 16, 2014 at 1:39 PM, Ralph DiMola 
> wrote:
> 
>> +1 for the Mother ship on the rapid 6.6.4 fixes.
>> 
>> I have one thing I can't understand.
>> 
>> When the Privacy==>Location Services for my app is set to "While Using 
>> the App" A dialog pops up every time the app is launched with this dialog:
>> 
>> Background location is not enabled
>> To use background location you must turn on 'Always' in the Location 
>> Services Settings.
>> With "Cancel" and "Settings" buttons
>> 
>> If one chooses Cancel the location sensor requests in the app still 
>> work as expected. This dialog will confuse users as it appears every 
>> time the app is launched. How could I disable this dialog? Is this a 
>> bug or am I missing something? Anyone else see this?
>> 
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> --
> On the first day, God created the heavens and the Earth On the second day,
> God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: What is the command to hide and show development tools

2014-10-20 Thread Paul Hibbert
In the menu bar go to: Development > Suspend Development Tools

Paul

On Oct 19, 2014, at 11:34 PM, Brahmanathaswami  wrote:

> I like to run sometimes in the IDE, but still be able to hide everything for 
> presentation mode...
> 
> hide menubar doesn't hide the development tools... I could have sworn it did 
> in earlier versions... lng ago.
> 
> What am I missing?
> 
> Swasti Astu, Be Well!
> Brahmanathaswami
> 
> Kauai's Hindu Monastery
> www.HimalayanAcademy.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


Re: on-rev Client

2014-10-24 Thread Paul Hibbert
I'm pleased to see that the On-Rev Client is working yet again, at least on 
Diesel, hopefully for much longer this time.

A huge thanks to David Williams for working on this during what must be such a 
busy time at RR.

Now if I can only figure out why sendmail doesn't appear to be working…

Paul


On Oct 14, 2014, at 10:11 AM, Paul Hibbert  wrote:

> Thanks for the responses, I have sent a report to b...@on-rev.com and will 
> report back if I get a response, if anybody else wishes to email them too 
> maybe that would help them to understand that this is something we would like 
> fixing.
> 
> I think it would be useful if this could be added to the Quality Centre, but 
> there are currently no options for On-Rev.
> 
> Paul
> 
> On Oct 14, 2014, at 6:40 AM, Rick Harrison  wrote:
> 
>> Hi Paul & Matthias,
>> 
>> I can’t get the Secure WebDisk or the On-Rev Client to work on the tio 
>> server.
>> I am able to login to my account with the c-panel however.  This has been a
>> problem for me for a couple of months now, and I had submitted a ticket which
>> Dave Williams answered with another question.  I answered his question
>> (this was around Sept. 30th) and I still haven’t heard back from him.
>> 
>> Please keep me informed if you make any progress on this.
>> 
>> Thanks,
>> 
>> Rick
>> 
>> On Oct 14, 2014, at 3:23 AM, Matthias Rebbe | M-R-D 
>>  wrote:
>> 
>>> Hi,
>>> 
>>> 
>>> I have here 3 accounts. They run on Pancake, Tio and Jasmine.
>>> It works with my Pancake account, but not with the other ones.
>>> 
>>> Matthias
>>> Am 14.10.2014 um 09:08 schrieb Ralf Bitter :
>>> 
>>>> Same here.
>>>> 
>>>> Ralf
>>>> 
>>>> 
>>>> On 14.10.2014, at 06:49, Paul Hibbert  wrote:
>>>> 
>>>>>> http://newsletters.livecode.com/august/issue177/newsletter2.html
>>>>> 
>>>>> It was reported in the newsletter 177 that the On-Rev Client was working 
>>>>> again, I tested it at the time and managed to log on successfully, but 
>>>>> now I can't, has anybody else had similar problems?
>>>>> 
>>>>> I can logon to the cPanel OK, so I know my username and password are 
>>>>> correct, but the On-Rev Client tells me they are wrong.
>>>>> 
>>>>> I know there's a lot of opposition to this software and it has been a 
>>>>> frustrating experience using it then not being able to for so long. I did 
>>>>> find it useful at times so I was pleased to see it back again, but has it 
>>>>> crapped out again so soon?
>>>>> 
>>>>> I'll file a bug report if it's not just me that's having problems.
>>>>> 
>>>>> 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
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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


sendmail through On-Rev server

2014-10-24 Thread Paul Hibbert
After several hours of frustration, searching and trying, then more searching 
and trying I've finally come to the conclusion that sendmail is not working on 
Diesel.

I have already tried the LiveCode lesson, the files from splash21 and troz.net 
along with an amended version from the forums. I did have this working fine a 
couple of years ago, so I resurrected some old files and tried them, still no 
joy.

After the last couple of attempts I finally saw this error:
/usr/sbin/sendmail: error while loading shared libraries: libselinux.so.1: 
failed to map segment from shared object: Cannot allocate memory

I'm pretty sure I can't do anything to fix a memory allocation error, so the 
ball is back in RR's court, hopefully DW can figure this out if he ever gets 
some spare time, I have informed RR, but I know the On-Rev servers are not high 
on their priority list, so I don't expect a quick fix.

So, in the meantime, does anybody else have any useful tricks for sending an 
email from a server? Preferably ones that don't use sendmail or the Linux mail 
command (that doesn't work also).

TIA

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


Re: sendmail through On-Rev server

2014-10-25 Thread Paul Hibbert
Thank you Mike, Andrew and Peter,

I did end up going with a suggestion from Peter Wood using Rebol, with some 
help from Peter I now have a working option.

Paul

On Oct 25, 2014, at 7:05 AM, Mike Bonner  wrote:

> I used sendmail on diesel a couple weeks ago. It was SLOW, but it worked.
> (I set up a stack here to post 61 sets of email data to an on-rev script,
> one at a time, with small delay between, and the server would hit sendmail
> to send em out.)  Kinda sounds like diesel either has a hardware problem,
> or something isn't releasing memory. If you tried a bunch of times
> previously, and the shell call to sendmail hung its possible that there are
> a bunch of zombie processes that have consumed the available memory.
> (might set a small script that runs ps to see whats running from your
> account, though don't remember off the top of my head what switches to
> pass.. THink -ef might work)
> 
> On Fri, Oct 24, 2014 at 11:22 PM, Andrew Kluthe  wrote:
> 
>> Postmarkapp.com, someone on here has a lib for it. But I don't remember
>> who.
>> On Oct 24, 2014 11:00 PM, "Paul Hibbert"  wrote:
>> 
>>> After several hours of frustration, searching and trying, then more
>>> searching and trying I've finally come to the conclusion that sendmail is
>>> not working on Diesel.
>>> 
>>> I have already tried the LiveCode lesson, the files from splash21 and
>>> troz.net along with an amended version from the forums. I did have this
>>> working fine a couple of years ago, so I resurrected some old files and
>>> tried them, still no joy.
>>> 
>>> After the last couple of attempts I finally saw this error:
>>> /usr/sbin/sendmail: error while loading shared libraries:
>> libselinux.so.1:
>>> failed to map segment from shared object: Cannot allocate memory
>>> 
>>> I'm pretty sure I can't do anything to fix a memory allocation error, so
>>> the ball is back in RR's court, hopefully DW can figure this out if he
>> ever
>>> gets some spare time, I have informed RR, but I know the On-Rev servers
>> are
>>> not high on their priority list, so I don't expect a quick fix.
>>> 
>>> So, in the meantime, does anybody else have any useful tricks for sending
>>> an email from a server? Preferably ones that don't use sendmail or the
>>> Linux mail command (that doesn't work also).
>>> 
>>> TIA
>>> 
>>> 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
>> 
> ___
> use-livecode mailing list
> use-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: sendmail through On-Rev server

2014-10-26 Thread Paul Hibbert
Thanks Christer,

That's the script I was trying on Diesel, but sadly with no joy.

Paul

On Oct 26, 2014, at 1:20 AM, Pyyhtiä Christer  wrote:

> The following script works well - on Tio.  Used it yesterday with no 
> problems.  Response was immediate.
> 
> I got it from someone at RR.
> 
> rgds christer
> --
> 
> -- mail 
> --
> -- Emails the given message to the recipients specified.
> -- Each address passed can have a name attached in the form "name ".
> -- Addresses can be passed as comma separated lists.
> -- Attachements can be added by passing an array (interger indexed or 
> otherwise).
> -- with each attachment itself being an array.
> --
> -- pTo- The addresses to send the message to
> -- pSub- The message subject
> -- pMsg- The message body
> -- pFrom- The address of the message sender
> -- pCc- Any cc addresses
> -- pBcc- Any Bcc addresses
> -- pHtml- Boolean, if the message is to be sent as html
> -- pAtts- Array of all attachments to send, each attachment of the 
> form:
> --* name: the name of the attachment
> --* path: the absolute path to the attachment
> --* type: the mime type of the attachment, defaults to 
> --application/octet-stream
> --
> on mail pTo, pSub, pMsg, pFrom, pCc, pBcc, pHtml, pAtts
>local tMsg
>-- build the message header, adding the from, to and subject details
>-- we also put any cc addresses in here, but not bcc (bcc addresses hidden)
>put shellEscape(pTo) into pTo
>   -- put (pSub) into pSub
> 
>put "From:" && pFrom & return & "To:" && pTo & return & "Subject:" && pSub 
> & return into tMsg
>if pCc is not empty then put "Cc:" && pCc & return after tMsg
>-- if there are any attachments, we must send this email as multipart
>-- with the message body and each attachment forming a part
>-- we do this by specifying the message as multipart and generating a 
> unique boundary
>if pAtts is an array then
>local tBoundary
>put "boundary" & the seconds into tBoundary
>put "MIME-Version: 1.0" & return & "Content-Type: multipart/mixed; 
> boundary=" & \
>wrapQ(tBoundary) & return & "--" & tBoundary & return after tMsg
>end if
> 
>-- add the actual message body, setting the content type appropriatly
>if pHtml is true then
>put "Content-Type: text/html;" & return & return after tMsg
>else
>put "Content-Type: text/plain;" & return & return after tMsg
>end if
>put pMsg & return after tMsg
> 
>-- add each attachment as a new part of the message, sepearting using 
>-- the generated boundary
>if pAtts is an array then
>put "--" & tBoundary & return after tMsg
>repeat for each element tAtt in pAtts
>if there is a file tAtt["path"] then
>if tAtt["type"] is empty then
>get "application/octet-stream"
>else
>get tAtt["type"]
>end if
>put "Content-Type:" && it & "; name=" & wrapQ(tAtt["name"]) & 
> ";" & \
>return & "Content-Transfer-Encoding: base64;" & return & 
> return & \
>base64Encode(URL ("binfile:" & tAtt["path"])) & return & "--" 
> & \
>tBoundary & return after tMsg
>end if
>end repeat
>end if
> 
>-- send the mail by piping the message we have just built to the sendmail 
> command
>-- we must also send a copy of the message to the bcc addresses
>get shell("echo" && wrapQ(tMsg) && "| /usr/sbin/sendmail" && 
> wrapQ(shellEscape(pTo)) && "-f" && wrapQ(shellEscape(pFrom)))
>if pBcc is not empty then
>get shell("echo" && wrapQ(tMsg) && "| /usr/sbin/sendmail" && 
> wrapQ(shellEscape(pBcc)) && "-f" && wrapQ(shellEscape(pFrom)))
>end if
> end mail
> 
> ---
> ___
> use-livecode mailing list
> use-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: On-Rev Client

2014-10-26 Thread Paul Hibbert
Kenji,

RR are working on restoring the On-Rev client, some servers are working, but 
not all just yet.

You could report it to supp...@on-rev.com

Paul


On Oct 26, 2014, at 7:51 AM, Kenji Kojima  wrote:

> On-Rev client cannot connect to tio on-rev server on Yosemite.
> It happens only on Yosemite (MacOS X 10.10).
> 
> Is it only me?
> --
> Kenji Kojima / 小島健治
> http://www.kenjikojima.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

Re: Open with 6.7 vs. 7.0

2014-10-27 Thread Paul Hibbert
Tim,

The simplest way I have found is to move the LiveCode 7.0.app to a different 
hard drive and remove any copy from the system hard drive, then it will no 
longer be the default LC app, but will still be useable.

Not sure if this is the best way, but it's working for me right now, maybe 
somebody else has a better idea.

If you don't have an external drive available, you can use Disk Utility to 
create a Disk Image and just eject it when not required.

Paul


On Oct 27, 2014, at 8:59 PM, Timothy Miller  
wrote:

> I opened one stack one time with version 7.0. Now, Finder: Get Info: "Open 
> with" has been changed to version 7.0 for all my archived stacks. I'm not 
> ready to make that change.
> 
> I've tried switching a folder full of stacks back to Finder: Get Info: Open 
> With version 6.7, then tried the "Change All" button. It doesn't work.
> 
> I'm assuming this works as intended, and there's a good reason for it. In any 
> case, I don't want to have that conversation.
> 
> I have dozens of archived folders, each containing a dozen or more stacks. 
> How do I change them all back to 
> "Open with" version 6.7?
> 
> Tim Miller
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: sendmail through On-Rev server

2014-11-20 Thread Paul Hibbert
Ralph,

I did get this working again, I've just re-checked and it is still working fine 
on Diesel. The one thing that made the biggest difference was changing the 
.irev file name extension to .lc as David Williams suggested.

My version is modified a bit from the original, but I'd be happy to send you 
the .lc files if it will help.

Paul

On Nov 19, 2014, at 9:35 PM, Ralph DiMola  wrote:

> Has anyone got this script to work on diesel? The server script just seems
> to crash. No statements after the mail are executed. The return data is
> empty from the web service.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Paul Hibbert
> Sent: Sunday, October 26, 2014 12:14 PM
> To: How to use LiveCode
> Subject: Re: sendmail through On-Rev server
> 
> Thanks Christer,
> 
> That's the script I was trying on Diesel, but sadly with no joy.
> 
> Paul
> 
> On Oct 26, 2014, at 1:20 AM, Pyyhtiä Christer  wrote:
> 
>> The following script works well - on Tio.  Used it yesterday with no
> problems.  Response was immediate.
>> 
>> I got it from someone at RR.
>> 
>> rgds christer
>> --
>> 
>> -- mail 
>> --
>> -- Emails the given message to the recipients specified.
>> -- Each address passed can have a name attached in the form "name
> ".
>> -- Addresses can be passed as comma separated lists.
>> -- Attachements can be added by passing an array (interger indexed or
> otherwise).
>> -- with each attachment itself being an array.
>> --
>> -- pTo- The addresses to send the message to
>> -- pSub- The message subject
>> -- pMsg- The message body
>> -- pFrom- The address of the message sender
>> -- pCc- Any cc addresses
>> -- pBcc- Any Bcc addresses
>> -- pHtml- Boolean, if the message is to be sent as html
>> -- pAtts- Array of all attachments to send, each attachment of the
> form:
>> --* name: the name of the attachment
>> --* path: the absolute path to the attachment
>> --* type: the mime type of the attachment, defaults to
> 
>> --application/octet-stream
>> --
>> on mail pTo, pSub, pMsg, pFrom, pCc, pBcc, pHtml, pAtts
>>  local tMsg
>>  -- build the message header, adding the from, to and subject details
>>  -- we also put any cc addresses in here, but not bcc (bcc addresses
> hidden)
>>  put shellEscape(pTo) into pTo
>> -- put (pSub) into pSub
>> 
>>  put "From:" && pFrom & return & "To:" && pTo & return & "Subject:" &&
> pSub & return into tMsg
>>  if pCc is not empty then put "Cc:" && pCc & return after tMsg
>>  -- if there are any attachments, we must send this email as multipart
>>  -- with the message body and each attachment forming a part
>>  -- we do this by specifying the message as multipart and generating a
> unique boundary
>>  if pAtts is an array then
>>  local tBoundary
>>  put "boundary" & the seconds into tBoundary
>>  put "MIME-Version: 1.0" & return & "Content-Type: multipart/mixed;
> boundary=" & \
>>  wrapQ(tBoundary) & return & "--" & tBoundary & return after tMsg
>>  end if
>> 
>>  -- add the actual message body, setting the content type appropriatly
>>  if pHtml is true then
>>  put "Content-Type: text/html;" & return & return after tMsg
>>  else
>>  put "Content-Type: text/plain;" & return & return after tMsg
>>  end if
>>  put pMsg & return after tMsg
>> 
>>  -- add each attachment as a new part of the message, sepearting using 
>>  -- the generated boundary
>>  if pAtts is an array then
>>  put "--" & tBoundary & return after tMsg
>>  repeat for each element tAtt in pAtts
>>  if there is a file tAtt["path"] then
>>  if tAtt["type"] is empty then
>>  get "application/octet-stream"
>>  else
>>  get tAtt["type"]
>>  end if
>>  put "Content-Type:" && it & "; name=" & wrapQ(tAtt["name"])
> & ";" & \
>>  return &

Re: Printing cuts off all fields at 12 characters.

2014-11-21 Thread Paul Hibbert
Richard,

I have just tested your code exactly as shown in LC 5.5.5, LC 6.7 and LC 
7.0.1(rc2) on Mac OS X 10.9.5 and in LC 6.6.2 on Windows 7 - all versions work 
fine, I added another field to the test stack and that shows up fine too.

You didn't state which OS or LC version you are using, but my conclusion would 
be that the problem lies elsewhere, have you tried different page setups or 
print drivers?

Not too sure what else to suggest, but I can verify your code works OK.

Paul

On Nov 21, 2014, at 3:00 PM, Richard Maring  wrote:

> I've exhausted all the information I can find online so I'm hoping some has
> run into this before and can help me with it.
> 
> I am trying to create a printout in my stack.
> 
> I created a new card, put one label in the center and put "this is my test
> print" into it's content.
> 
> I then created a button and put the following script from LiveCode Sample
> Scripts: "Printing All the Fields on a Card"
> 
> on mouseUp
>   printAllFields
> end mouseUp
> 
> 
>   on printAllFields
>local tField, tCollectedFields
>repeat with tField = 1 to the number of fields
>## collect data in the tCollectedFields variable
>put "" & the short name of field tField \
>& colon & "" \
>& the htmlText of field tField after tCollectedFields
>end repeat
>answer tCollectedFields
>## print the variable
>revShowPrintDialog false, true
>revPrintText tCollectedFields
> end printAllFields
> 
> 
> The "answer tCollectedFields" shows all of the text.
> 
> I hit the "button" to print and I get a dialog box, choose my printer and
> it prints ouit the following:
> 
> Label
> this is my t
> 
> No matter what I have tried it will only print the first 12 characters of
> any field or label.
> 
> I added images to the card and did another script to print the card itself,
> and the images printed, the text was formatted and in the right place, but
> only the first portion of the text prints, the rest is cutoff.
> 
> Any help would be greatly appreciated.
> 
> Thanks
> 
> 
> Richard Maring
> ___
> use-livecode mailing list
> use-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: Sockets

2014-12-22 Thread Paul Hibbert
Eric,

I see the same problem too on LC 7.0.1 (Build 1023) under Yosemite, works fine 
in LC 6.7.1 & LC 6.6.5 as far as I can tell.

Paul

> On Dec 22, 2014, at 8:02 PM, Mike Bonner  wrote:
> 
> Yep, i'm seeing this on 7.0.0 too. The other versions I have (various 6xxx
> versions) work correction, though I haven't tried the most recent 6 stable.
> If I can get 7.0.1 to install I'll try it there also.
> 
> On Mon, Dec 22, 2014 at 6:35 PM, Peter W A Wood 
> wrote:
>> 
>> Hello Eric
>> 
>> I ran a very simple test using LiveCode 7.0.1 on OS X Yosemite and didn’t
>> see the issue. It was a very simple test though.
>> 
>> My test had three buttons: open, list, close and one field: Report.
>> 
>> The three button scripts were:
>> 
>>   open - open socket to "127.0.0.1:80"
>> 
>>   close - close socket "127.0.0.1:80"
>> 
>>   list - put the openSockets into Field "Report"
>> 
>> It worked as expected.
>> 
>> Regards
>> 
>> Peter
>> 
>>> On 23 Dec 2014, at 09:04, Eric Corbett  wrote:
>>> 
>>> Hello all,
>>> 
>>> I’m using LiveCode 7.0.1.
>>> 
>>> I have a port open and when I get the openSockets list, the port has an
>> extra character on the end like an ‘å’ or a double quote. I check to see if
>> the port is in the openSocket list so I don’t try to accept connections
>> again, but if I have wholeMatches set to true, it’s not returning true.
>>> 
>>> Can anyone confirm this before I submit a bug report?
>>> 
>>> Thanks,
>>> 
>>> - Eric
>>> ___
>>> use-livecode mailing list
>>> use-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

Re: Hangs and graphics issue after 6.6.1

2015-01-02 Thread Paul Hibbert
Hi Camm,

This would be very useful to report at http://quality.runrev.com

If you have a stack or multiple stacks with a recipe that can demonstrate the 
problem and you can upload them with the report I'm sure RR will be onto it 
very quickly.

If you only have a stack(s) that you don't wish to share publicly, you can set 
the report then email the stack(s) to qual...@runrev.com they will fully 
respect your privacy.

If you have any problems posting the report, then get in touch with 
supp...@runrev.com and they will help you.

I'm sure this will be your best route to resolving this problem, and it may 
help others in the future too and will make LiveCode stronger in the process.

Regards,

Paul
 
> On Jan 2, 2015, at 5:47 AM, Camm  wrote:
> 
> Hi ,
> 
> The last standalone I built was using 6.6.0 , that was very stable for my
> application (Windows 7).
> Tested also on 6.6.1 Build (4005) and still ok
> 
> But now I have found that from 6.6.2 to 7 random hangs and poor rendering of
> graphics (Tactile Media Gauges) on Full screen Mode.
> Read from driver xxx until empty is a problem and will hang on occasion.
> 
> Is it best to stick with 6.6.1 ?
> 
> Regards
> Camm
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Camm
> Sent: 30 December 2014 16:59
> To: use-livecode@lists.runrev.com
> Subject: Problem with read from driver until empty in 7.01
> 
> Hi ,
> 
> 
> 
> I use "read from driver xxx until empty" 
> 
> 
> 
> To empty read buffer when using serial comms.
> 
> 
> 
> In 6.7 this works fine but in 7.01 causes random hangs if used.
> 
> 
> 
> 
> 
> Regards
> 
> Camm
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> -
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14
> 
> -
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14
> -
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14
> -
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14
> 
> 
> ___
> use-livecode mailing list
> use-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: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset")

2015-01-03 Thread Paul Hibbert
I'm with Jacque & Doc on this too.

I rarely use the Project Browser because I have had problems with the IDE 
slowing down way too much, also using the Message Watcher with the Project 
Browser open is a nightmare.

The Application Browser usually updates when you modify a control, but the 
Project Browser doesn't and there's no Refresh button. The contextual Refresh 
doesn't seem to help.

I like the Alignment tools and especially the Behaviour badges in the PB and 
would love to see something like that in the AB, but that's about the only 
thing I have found it useful for, sorry RR!

If some of the more useful features of the PB could be made available in the AB 
that would be awesome.

Paul

> On Jan 3, 2015, at 7:33 AM, Dr. Hawkins  wrote:
> 
> On Fri, Jan 2, 2015 at 7:00 PM, Richard Gaskin 
> wrote:
> 
>> Can you recall offhand what sorts of tasks take you more steps in the
>> Project Browser?
>> 
> 
> What Jacque wrote.
> 
> All I have to add to that is the extra click just to open the list of
> substacks.  And then, as she mentions, the extra scrolling to get to
> controls.
> 
> I still see it as a solution in search of  a problem.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Hangs and graphics issue after 6.6.1

2015-01-03 Thread Paul Hibbert
> 
> On Jan 3, 2015, at 4:47 AM, Camm  wrote:
> 
> I will compile something to put to RR.

That will be useful, thank you.

> Is it possible the empty used in the FullScreenMode is conflicting with the
> read from driver until empty ??

I really don't think so, but there are a few different options you could try…

read from driver "xyz" until EOF

or

read from driver "xyz" until end

or just

read from driver "xyz"

Although I doubt there will be any difference.

One point, I've just noticed in your original post that you quoted your script 
as…
   "read from driver xxx until empty"
…You don't show any quotes around the driver name xxx, if this is the case the 
engine may be treating the driver name as a variable and just seeing it as an 
empty value.

I think others have noted that this is one area where the later versions of 
LiveCode are less forgiving than earlier versions, so if this is the case 
adding quotes around the driver name may help.

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

Re: Geometry Manager

2015-01-07 Thread Paul Hibbert
Pete,

You can turn off messages, or temporarily add an empty resizeStack handler to 
the top of the stack script.

on resizeStack
  -- do nothing!
end resizeStack

Paul

> On Jan 7, 2015, at 5:39 PM, Peter Haworth  wrote:
> 
> I'm working on someone else's stack that uses GM.  Is there some way to
> disable it so I can resize the stack without all the controls on it
> resizing? Other than removing all the GM settings for all the controls.
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> ___
> use-livecode mailing list
> use-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: Fields Have Labels

2015-01-11 Thread Paul Hibbert
I totally agree that the field "label" could be very useful, especially if it 
was paired with a "gravity" property similar to "iconGravity".

Paul


> On Jan 11, 2015, at 12:39 PM, stephen barncard 
>  wrote:
> 
> On Sun, Jan 11, 2015 at 11:43 AM,  wrote:
> 
>> It would be useful if LiveCode fields did have a built-in label property
> 
> 
> Absolutely! How many times have developers made a series of fields for data
> entry and immediately have to make a corresponding series of labels, even
> for test stacks?  Filemaker has done this automatically since day one.
> 
> sqb
> 
> *--*
> *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [OT] Print to PDF

2015-01-12 Thread Paul Hibbert
Maybe this could help…

http://www.howtogeek.com/150891/how-to-print-to-pdf-in-windows-4-tips-and-tricks/

Paul

> On Jan 12, 2015, at 3:53 PM, Kay C Lan  wrote:
> 
> This is not LC related but as you are the largest group of varied OS users
> I thought I'd ask. I've just discovered that the very basic OS feature of
> being able to 'Print to PDF' may not be available on all OSs. On OS X it's
> a feature I use daily.
> 
> Particularly in your web browser, if you choose Print, do you have an
> option to save to some kind of single file (pdf,doc,...) rather than send
> to a physical printer. Please advise the OS, web browser, the kind of file
> you can create and where that option is hidden.
> 
> [This relates to some very elder gentlemen who I'm trying to help access
> some online pages, and then be able to save these pages to view whilst
> offline. The 3 web browsers I have all have the ability to Save as but
> the result is a folder full of media and a bunch of html files and if one
> or the other is moved then the document breaks. The structure takes up more
> space and it's also harder to clean up as it's more than just one file to
> Trash. To me, Print to PDF produces a much cleaner smaller document for
> storing, viewing offline and deleting. I was hoping to help them with a
> similar single file solution.]
> 
> Thanks in advance
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: [OT] Print to PDF

2015-01-13 Thread Paul Hibbert
No sign of any way to Print To PDF with FF or IE on Win 7 (running under 
Parallels).

A quick check on Google and it seems this is still the case with Win 8, it 
looks like the only option is Chrome or third party software, unless somebody 
else knows different.

Paul

> On Jan 13, 2015, at 4:41 PM, Kay C Lan  wrote:
> 
> Gentlemen,
> 
> thank you very much, that is good news.
> 
> Anyone out there with Windows and Firefox and can confirm it has the 'Print
> to file' with the option to select pdf. The article Paul linked indicates
> Chrome is as Peter mentions for Debian, but doesn't mention Firefox; or IE.
> ___
> use-livecode mailing list
> use-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: Possible insanity, or is it LC 7.0.1?

2015-01-14 Thread Paul Hibbert
You're not going totally crazy, unless I am too.

This fails here in LC7.0.1 on Mac OS X 10.10.1…

on mouseUp
  put 1.884956 into tVar
  put value(tVar + 0)
end mouseUp

…With the following error;
button "A": execution error at line 3 (value: error executing expression) near 
"1.884956", char 1

But this works…

on mouseUp
  put 1.884955 into tVar
  add 0.01 to tVar
  put value(tVar + 0)
end mouseUp

…And this works;

on mouseUp
  local tVar = "1.884956"
  put value(tVar + 0)
end mouseUp

Then if you use Try/Catch, they all fail in LC7.0.1, but work in LC5.5.5!

Paul. :-/


> On Jan 14, 2015, at 3:06 PM, Graham Samuel  wrote:
> 
> Thanks to those who replied. So, I am going crazy! I suppose it is something 
> very particular about my setup. I did find one other way to show the anomaly, 
> which was to put
> 
> put 1.884956 into it; put value(it+0)
> 
> this gives me the error
> "Message execution error:
> Error description: value: error executing expression
> Hint: 1.884956"
> But of course YMMV. I am quite happy to be told it’s my fault, but the fact 
> is that this is just an abstraction of something that has arisen in the 
> middle of a loop that produces a table of values based on input parameters 
> which are all very similar: the loop suddenly hits an error only on this 
> particular value. It has worked in earlier versions of LC, but now I’m wedded 
> to Unicode, it’s got to work with LC 7.
> 
> If I ever get an explanation, I’ll tell the list about it.
> 
> Cheers
> 
> Graham
>> On 14 Jan 2015, at 23:48, Roger Guay  wrote:
>> 
>> Graham,
>> 
>> I get true in both cases, same setup.
>> 
>> Roger
>> 
>>> On Jan 14, 2015, at 1:03 PM, Graham Samuel  wrote:
>>> 
>>> Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box
>>> 
>>> put (1.884955 is a number)
>>> 
>>> I get true, as expected, but if I put
>>> 
>>> put (1.884956 is a number)
>>> 
>>> I get 
>>> 
>>> Script compile error:
>>> Error description: Expression: unquoted literal
>>> 
>>> This result was derived from some complex code so I originally thought that 
>>> the character string could have been corrupt with invisible characters,  
>>> but I retyped the numbers myself. This seems so mad that I need someone to 
>>> confirm it, even though I find it completely repeatable. I tried it on LC 
>>> 6.7 (which just happens to be on my machine) and I got true as expected.
>>> 
>>> Someone tell me I am not crazy.
>>> 
>>> TIA
>>> 
>>> Graham
>>> ___
>>> use-livecode mailing list
>>> use-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

Re: screen math, stacks, fields, and effective screenRect

2015-01-17 Thread Paul Hibbert
It depends if your stack has a Stack Menu or not, try…

  put (the top of this stack) - (the effective top of this stack) -- With no 
Stack Menu =22 with a Stack Menu = 0

Paul


> On Jan 17, 2015, at 5:40 PM, Dr. Hawkins  wrote:
> 
> On Sat, Jan 17, 2015 at 4:17 PM, Scott Rossi  wrote:
> 
>> The difference you're seeing is likely due to the height of the stack
>> including its titlebar versus the height of the card region only of the
>> stack.
>> 
>> You might try seeing the entries in the dictionary for localLoc and
>> globalLoc, used for converting global positions to local, and vice versa.
>> 
> 
> Those are definitely what I needed.
> 
> But I'm still baffled by things like the effective top being a smaller
> number (higher on the screen) than the top.
> 
> 
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: 7.0.2 RC1 Crashes and Corrupts Stack Files

2015-01-23 Thread Paul Hibbert
Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to step 3, 
then LC crashed!

Have you filed a bug report yet?

If you have I can add to it, if not I'll file one and you can add to it.

Paul

> On Jan 23, 2015, at 4:29 PM, Ray  wrote:
> 
> On my Windows 8.1 system I do the following:
> 
>   1)  create a new main stack
>   2)  drag a player object onto it
>   3)  remove the default fileName (source)
>   4)  save the stack file
> 
> At this point I get "Livecode has stopped working".  With no other options I 
> close the program and find my entire stack file has been corrupted and will 
> not re-open.
> 
> Anybody know anything about this?
> 
> ___
> use-livecode mailing list
> use-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: 7.0.2 RC1 Crashes and Corrupts Stack Files

2015-01-23 Thread Paul Hibbert
Ray,

I tried this a couple of times and realised that it is definitely a serious bug 
so I decided to report it, hope you don't mind, the number is 
http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add to it.

Regards

Paul


> On Jan 23, 2015, at 9:09 PM, Paul Hibbert  wrote:
> 
> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to step 3, 
> then LC crashed!
> 
> Have you filed a bug report yet?
> 
> If you have I can add to it, if not I'll file one and you can add to it.
> 
> Paul
> 
>> On Jan 23, 2015, at 4:29 PM, Ray  wrote:
>> 
>> On my Windows 8.1 system I do the following:
>> 
>>  1)  create a new main stack
>>  2)  drag a player object onto it
>>  3)  remove the default fileName (source)
>>  4)  save the stack file
>> 
>> At this point I get "Livecode has stopped working".  With no other options I 
>> close the program and find my entire stack file has been corrupted and will 
>> not re-open.
>> 
>> Anybody know anything about this?
>> 
>> ___
>> use-livecode mailing list
>> use-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: extracting the thumbnail from digital photos?

2015-01-28 Thread Paul Hibbert
Thank you Alejandro for posting this. I've tried it on OS X and found it works 
well.

I've also tried it with the JPEGS straight from a Nikon camera and it works 
with them too, and it works on PSD files that are saved with a thumbnail image.

Regards,

Paul

> On Jan 26, 2015, at 3:59 PM, Alejandro Tejada  wrote:
> 
> Hi,
> 
> This script works in LiveCode 7.0.1
> under Windows:
> 
> (Notice that I am using byte instead of char
> as recommended in release notes and,
> unlike Ubuntu, I have to set the casesensitive
> to true to make it work)
> 
> First, download this 8 MB image that contains
> two thumbnails (320x240 and 160x120):
> (this link should be in a single line)
> 
> http://216.18.212.226/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.JPG
> 
> Create a stack and put this script
> in a button:
> 
> on mouseUp
>  local temp
>  answer file "Select JPEG image with EXIF thumbnail data"
>  put it into temp
>  open file temp for binary read
>  read from file temp for 10
>  put it into temp1
>  close file temp
> 
>  put numtobyte(255) & numtobyte(216) into tStart
>  -- in Hexadecimal: FFD8 = SOI(Start of jpeg image)
>  put numtobyte(255) & numtobyte(217) into tEnd
>  -- in Hexadecimal: FFD9 = EOI(End of jpeg image)
> 
>  delete byte 1 to 2 of temp1
>  -- delete JPEG SOI (Start of jpeg image)
>  if byte -2 to -1 of temp1 = tEnd then delete byte -2 to -1 of temp1
>  -- delete JPEG EOI(End of jpeg image)
> 
>  set the casesensitive to true
> 
> 
> repeat until offset(tEnd,temp1) = 0
> 
> -- repeat until offset(tStart,temp1) = 0
> 
>  put offset(tStart,temp1) into tThumbstart
>  put offset(tEnd,temp1) into tThumbEnd
> 
>  put byte tThumbstart to (tThumbEnd + 1) of temp1 into tJPGThumb
> 
>  delete byte 1 to (tThumbEnd + 1) of temp1
> 
>  if tJPGThumb is not empty
>  then
> create img
> set the text of it to tJPGThumb
>  else
> answer "No JPEG Thumbnails in this image"
>  end if
> 
>  end repeat
> end mouseUp
> 
> Al
> ___
> use-livecode mailing list
> use-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: SlideView - Help Needed for 2 Major Issues

2013-09-23 Thread Paul Hibbert
Ender,

By using the message watcher I noticed a mouseLeave message being sent when 
swiping on the block.png image, so adding…

on mouseLeave
   if sSlideGrab is not empty then mouseUp
end mouseLeave

…to the script of group "thePanel" seems to help some issues.

Paul


On 2013-09-23, at 7:48 PM, Ender Nafi Elekcioglu wrote:

> Hi folks,
> 
> I've prepared a simple stack to utilize a common behaviour in mobile apps.
> 
> It's a SlideView project, seen in many mainstream apps; swiping from the edge 
> reveals a pane beneath.
> iOS 7 brought another use for it, though, swiping from left to go back 
> previous page.
> Thus, its importance got just bigger.
> 
> There are two major issues and I couldn't solve them.
> I asked LiveCode support, unfortunately they're too busy to dive in my code.
> 
> I have one urgent and a couple of non-urgent projects awaiting this feature.
> So, I'd be glad if any of you might help.
> 
> I tried to explain the bugs below but a video is worth thousand words ;-)
> Here is a short screencast: http://www.youtube.com/watch?v=lNASXMjzFLo
> And here is the stack: http://tinyurl.com/pkuus9a
> Screenshots: 
> http://forums.runrev.com/viewtopic.php?f=49&t=16981&sid=c9d742c8027879e891d6956ccdd96f79
> 
> Bug 1:
> If the user starts swipe by touching the background picture or button, it 
> works.
> But if the user starts swipe by touching a front control,
> then it sticks to finger and requires a secondary click to work.
> 
> 
> Bug 2:
> The controls of bottom panels interfere the swipe gesture and blocks it.
> 
> Try swiping at different vertical start positions, you'll see the weird 
> behaviours.
> Sometimes, it doesn't reveal;
> sometimes, it reveals and automatically goes to another page;
> sometimes, it reveals and hides automatically a couple of times;
> sometimes, it just sticks to finger and requires another click to let it go.
> 
> I put an if-clause to prevent it; but it seems not working:
> on mouseDown
>if the short name of the target is not in 
> "thePageNav,theSettings,thePageNav1,thePageNav2,thePageNav3" then
> 
> It's line 106 in the script of group "thePanel".
> 
> 
> Bug 3:
> If front controls are grouped {a sub-group in group "thePageContent"}, slide 
> behaviour doesn't work at all.
> It just doesn't response.
> But I couldn't replicate this issue in the screencast.
> 
> 
> Any help or insight much appreciated.
> Thank you.
> 
> 
> ~ Ender Nafi
> ~… together, we're smarter …~
> ___
> use-livecode mailing list
> use-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: Strange standard button issues

2013-10-05 Thread Paul Hibbert
I use the Graphic Effects regularly and never really noticed that!

Just tried it and was surprised to see what you mean, I guess I have always 
just clicked on the name and it worked as I expected, but yes the checkboxes 
and names can be out of sync and that could be really confusing.

So clicking the name gives access to the controls for that effect and toggles 
the effect (and checkbox) on & off, whereas clicking the checkbox only turns 
the effect on or off and doesn't show the relevant controls.

I'm not too sure it's a bug, I think there is some logic to the way it works if 
you understand it, but it's just not too obvious, think of the checkbox like 
the eye button on a Photoshop layer, it lets you turn the layer on or off 
without editing that layer.

Maybe if each name appeared more like a button or layer (aka Photoshop), even 
if they were just separated with a line it would maybe make more sense.

I think I never questioned it because of using PS a lot, I probably used the 
same logic without realising it.

Paul


On 2013-10-05, at 8:32 PM, J. Landman Gay wrote:

> On 10/5/13 10:01 PM, Kay C Lan wrote:
>> On Sun, Oct 6, 2013 at 8:46 AM, Peter Haworth  wrote:
>> 
>>> On Sat, Oct 5, 2013 at 5:12 PM, J. Landman Gay >>> wrote:
>>> 
>>> Gave that a whirl but no difference.  The only one that gives access to the
>>> settings is dropshadow.
> 
> Oh, and also, it is possible to tick a checkbox without actually selecting 
> the name of the effect. Things only work if both the checkbox is ticked and 
> the name itself is hilited. So sometimes you need to click both.
> 
> That's the bug, actually. The name hilite and the checkbox should be in synch.
> 
> Not all settings are applicable to all effects. When some of them enable but 
> others don't, it means the dimmed ones aren't applicable.
> 
> -- 
> 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


Re: Trapping for mouseDown on the desktop on a Mac

2013-10-13 Thread Paul Hibbert
Ken,

I don't think you even need to go into a polling mode, as soon as user drags an 
item onto a stack it triggers a 'dragMove' message so trapping that should work 
on both platforms.

Tried a few tests with a small stack and tackling the problem from a different 
angle seems to do the trick on OSX and Win7.

Ray, the test stack is here, hope it helps… 
https://www.dropbox.com/s/hddd6qx0vmilsot/Drag%20and%20Drop%20text.livecode - 
no restrictions on use!

Paul

On 2013-10-13, at 9:48 AM, Ken Ray wrote:

> How about going into a polling mode, checking the dragData["files"] every 
> second or so... it should start out empty, but as soon as the user starts to 
> drag a file from the desktop, it should have something in it.
> 
> Just a thought,
> 
> Ken Ray
> Sons of Thunder Software
> 
>> On Oct 12, 2013, at 11:25 AM, Ray  wrote:
>> 
>> Phil - thanks for the suggestion but I just tried it and no-can-do. For some 
>> reason, and this is a Mac-only behavior, when I mouseDown on the desktop I 
>> can't see any messages at all which are sent to Livecode.  The suspend 
>> message is sent if I mouseDown on another stack, but not on a file on the 
>> desktop or the desktop itself.
>> 
>> Let me know if anything else comes to mind.
>> 
>> Thanks,
>> 
>> Ray
>> 
>>> On 10/12/2013 10:51 AM, Phil Davis wrote:
>>> Have you tried using 'suspend' instead of 'mouseDown' and 'suspendStack'? 
>>> Should work the same on both platforms (famous last words!).
>>> 
>>> Phil
>>> 
>>> 
 On 10/12/13 6:31 AM, Ray wrote:
 On Windows the instant there is a 'mouseDown' on the desktop the current 
 stack window goes inactive, thus triggering the suspendStack message.  I 
 use this to create a field which then accepts dragDrops.  However, this is 
 different on a Mac.  The current stack window on a Mac waits until the 
 mouse comes up on a desktop click, thus defeating my scheme which creates 
 the field to accept a dragDrop as soon as the mouse goes down on the 
 desktop.
 
 Any ideas anybody on how to trap for a mouse down on the desktop on a Mac?
 
 Many thanks,
 
 Ray
 LinkIt! Software
 
 ___
 use-livecode mailing list
 use-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


Re: Bringing a substack to the front

2013-10-14 Thread Paul Hibbert
Have you looked at "Go"? It has a few parameters that may help in what you are 
looking for.

Paul

On 2013-10-14, at 9:59 AM, Dr. Hawkins wrote:

> On Mon, Oct 14, 2013 at 9:49 AM, Roger Eller 
> wrote:
> 
>> lock screen
>> 
>> set the systemWindow stack "MyTopStack" to true
>> 
>> set the systemWindow stack "MyTopStack" to false -- do this if the stack
>> shouldn't stay on top
>> 
>> unlock screen
>> 
> 
> Wow.  This does exactly what I needed.
> 
> The side effects seem like overkill, but that's life :)
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Paul Hibbert
Ray,

You don't need any dummy controls, I just adapted this stack from a previous 
one where I found that it is slightly quicker to use a hidden control and make 
it visible, rather than create a new one, although the speed improvements were 
noted with image objects not field objects, I just found it reduced the chance 
of errors if the user reacted quickly.

In this example the only control you may need is a behaviour button, but even 
that isn't necessary if you prefer to store the script elsewhere and apply it 
as you create the new field, I just think a behaviour is cleaner and simpler 
for debugging etc.

>From my tests (and reading the dictionary), I found that the receiving control 
>will need a script to deal with the 'dragDrop' message, I couldn't make this 
>work with the 'dragDrop' handler at the card or stack level. The 'dragMove' is 
>the important trigger in this case, that will need to be on the receiving card 
>or stack, but the behaviour button can reside on a different card or stack, 
>e.g. a library stack.

Paul

P.S. I've been called much worse names than Phil (With no disrespect to Phil). 
:-)

On 2013-10-14, at 12:19 PM, Ray wrote:

> Phil,
> 
> Many thanks for including this stack!  I'm in New York right now (out of town 
> for me) but I'm anxious to get back home in a few days where I can experiment 
> with this on my Mac.  Interesting how you've put the scripts in the card 
> script but still need the field present to catch the message.  What I'd like 
> to see is a stack with absolutely no objects in it receive the dragDrop 
> message somewhere, either in the card script or the stack script.   But 
> evidently we need to put 'dummy' controls like a field or an image on the 
> card to trap for this message.  Please correct me if I'm wrong.
> 
> Thanks,
> 
> Ray
> 
> On 10/13/2013 2:55 PM, Paul Hibbert wrote:
>> Ken,
>> 
>> I don't think you even need to go into a polling mode, as soon as user drags 
>> an item onto a stack it triggers a 'dragMove' message so trapping that 
>> should work on both platforms.
>> 
>> Tried a few tests with a small stack and tackling the problem from a 
>> different angle seems to do the trick on OSX and Win7.
>> 
>> Ray, the test stack is here, hope it helps… 
>> https://www.dropbox.com/s/hddd6qx0vmilsot/Drag%20and%20Drop%20text.livecode 
>> - no restrictions on use!
>> 
>> Paul
>> 
>> On 2013-10-13, at 9:48 AM, Ken Ray wrote:
>> 
>>> How about going into a polling mode, checking the dragData["files"] every 
>>> second or so... it should start out empty, but as soon as the user starts 
>>> to drag a file from the desktop, it should have something in it.
>>> 
>>> Just a thought,
>>> 
>>> Ken Ray
>>> Sons of Thunder Software
>>> 
>>>> On Oct 12, 2013, at 11:25 AM, Ray  wrote:
>>>> 
>>>> Phil - thanks for the suggestion but I just tried it and no-can-do. For 
>>>> some reason, and this is a Mac-only behavior, when I mouseDown on the 
>>>> desktop I can't see any messages at all which are sent to Livecode.  The 
>>>> suspend message is sent if I mouseDown on another stack, but not on a file 
>>>> on the desktop or the desktop itself.
>>>> 
>>>> Let me know if anything else comes to mind.
>>>> 
>>>> Thanks,
>>>> 
>>>> Ray
>>>> 
>>>>> On 10/12/2013 10:51 AM, Phil Davis wrote:
>>>>> Have you tried using 'suspend' instead of 'mouseDown' and 'suspendStack'? 
>>>>> Should work the same on both platforms (famous last words!).
>>>>> 
>>>>> Phil
>>>>> 
>>>>> 
>>>>>> On 10/12/13 6:31 AM, Ray wrote:
>>>>>> On Windows the instant there is a 'mouseDown' on the desktop the current 
>>>>>> stack window goes inactive, thus triggering the suspendStack message.  I 
>>>>>> use this to create a field which then accepts dragDrops.  However, this 
>>>>>> is different on a Mac.  The current stack window on a Mac waits until 
>>>>>> the mouse comes up on a desktop click, thus defeating my scheme which 
>>>>>> creates the field to accept a dragDrop as soon as the mouse goes down on 
>>>>>> the desktop.
>>>>>> 
>>>>>> Any ideas anybody on how to trap for a mouse down on the desktop on a 
>>>>>> Mac?
>

Re: Mouse Color not Working

2014-01-16 Thread Paul Hibbert
The GM release is available here along with rc1 & 2…

http://downloads.livecode.com/livecode/6_5_1/

Paul

On 2014-01-16, at 1:41 PM, Ray  wrote:

> I've just downloaded and tried Richmond's test stack.  I can verify that 
> mouseColor does NOT work using 6.5.0.
> 
> Klaus, looking forward to the fix.  Thanks.
> 
> I'd like to try 6.5.1 as Scott Rossi suggested but as I click on Help and 
> choose Check for Updates I'm informed there are none, so I assume 6.5.1 is a 
> beta release.  How do I get those?
> 
> Thanks,
> 
> Ray
> 
> On 1/16/2014 4:28 PM, Richmond wrote:
>> On 16/01/14 22:53, Ray wrote:
>>> Does anybody know if there's a problem with getting the mouseColor in 
>>> 6.5.0?  I'm using Windows 8.1 and all I get is 0,0,0 regardless as to 
>>> whether I'm on my laptop which only uses one monitor, or my desktop which 
>>> uses two.
>>> 
>>> ___
>> 
>> I have just uploaded a test stack: 
>> http://forums.runrev.com/viewtopic.php?f=5&t=18796
>> 
>> and can report that mouseColor works with 6.5.1 on UbuntuStudio Linux 13.10
>> 
>> Please consider downloading the stack, running it on whatever operating 
>> system you work with
>> and reporting back.
>> 
>> Richmond.
>> 
>> ___
>> use-livecode mailing list
>> use-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: Mouse Color not Working

2014-01-16 Thread Paul Hibbert
Ray,

This 'workaround' may work for you until the next release…

on mouseDown
   put mouseColourWorkAround (the mouseLoc) into tColour
   answer tColour -- Or do whatever you need with tColour
end mouseDown

function mouseColourWorkAround pLoc
   lock screen
   import snapShot from rect ( item 1 of pLoc & "," & item 2 of pLoc & "," & \
   item 1 of pLoc + 1 & "," & item 2 of pLoc + 1) of this card
   put the imageData of the last image into tData
   delete the last image
put charToNum (char 2 of tData)  & "," & \
 charToNum (char 3 of tData)  & "," & \
 charToNum (char 4 of tData)  into tValue
   unlock screen
   return tValue
end mouseColourWorkAround

Works fine for me in a mouseDown, but maybe a little OTT for a mouseMove.

Paul


On 2014-01-16, at 1:49 PM, Ray  wrote:

> Thanks Paul
> 
> On 1/16/2014 4:44 PM, Paul Hibbert wrote:
>> The GM release is available here along with rc1 & 2…
>> 
>> http://downloads.livecode.com/livecode/6_5_1/
>> 
>> Paul
>> 
>> On 2014-01-16, at 1:41 PM, Ray  wrote:
>> 
>>> I've just downloaded and tried Richmond's test stack.  I can verify that 
>>> mouseColor does NOT work using 6.5.0.
>>> 
>>> Klaus, looking forward to the fix.  Thanks.
>>> 
>>> I'd like to try 6.5.1 as Scott Rossi suggested but as I click on Help and 
>>> choose Check for Updates I'm informed there are none, so I assume 6.5.1 is 
>>> a beta release.  How do I get those?
>>> 
>>> Thanks,
>>> 
>>> Ray
>>> 
>>> On 1/16/2014 4:28 PM, Richmond wrote:
>>>> On 16/01/14 22:53, Ray wrote:
>>>>> Does anybody know if there's a problem with getting the mouseColor in 
>>>>> 6.5.0?  I'm using Windows 8.1 and all I get is 0,0,0 regardless as to 
>>>>> whether I'm on my laptop which only uses one monitor, or my desktop which 
>>>>> uses two.
>>>>> 
>>>>> ___
>>>> I have just uploaded a test stack: 
>>>> http://forums.runrev.com/viewtopic.php?f=5&t=18796
>>>> 
>>>> and can report that mouseColor works with 6.5.1 on UbuntuStudio Linux 13.10
>>>> 
>>>> Please consider downloading the stack, running it on whatever operating 
>>>> system you work with
>>>> and reporting back.
>>>> 
>>>> Richmond.
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-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


___
use-livecode mailing list
use-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: Mouse Color not Working

2014-01-16 Thread Paul Hibbert
Does it return the expected result?

On OS X 10.8.5 the colours are not right, try creating a graphic with a fill of 
255,0,0 then see what the mouseColor returns when you move over it. I found 
that changing the screen profile in system preferences has an effect on 
mouseColor too.

Using a 'non-native' pixelScale can also break mouseColor.

RR are aware of these bugs.

Paul


On 2014-01-16, at 5:50 PM, John Dixon  wrote:

> mouseColor is working on OSX mavericks running LC 6.5.0 & 6.5.1
> 
> in the card script :-
> 
> on mouseMove
>   put mouseColor() into fld 1
> end mouseMove
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Snapshot of screen

2014-01-18 Thread Paul Hibbert
This is a known bug in LC 6.5.1 and should be fixed soon, the bug report is [ 
http://quality.runrev.com/show_bug.cgi?id=11654 ].

There is an odd workaround, just set the focus to any field before issuing the 
'import snapShot' command and it should work as you expect without pressing 
enter.

If you don't have any fields available on the card, just use something like…

on mouseUp
   create invisible field "tempField" --WORKAROUND *remove after LC6.5.1 update
   focus on field "tempField" --*
   import snapshot
   delete field "tempField" --*
end mouseUp

Paul

On 2014-01-18, at 3:29 PM, John Dixon  wrote:

> Thanks Peter...:-)
> 
> That is what I was not doing... pressing the return key... I agree it is a 
> little disconcerting to have the stack disappear...:-)
> 
>> Subject: Re: Snapshot of screen
>> From: peterwaw...@gmail.com
>> Date: Sun, 19 Jan 2014 07:21:14 +0800
>> To: use-livecode@lists.runrev.com
>> 
>> Have you tried pressing the return (or enter) key after dragging out the 
>> rectangle? That worked for me with 6.5.1 OS X 7.
>> 
>> Though once you've dragged out the rectangle, it just disappears. This is a 
>> little odd as it gives the impression that the area of the screen has not 
>> been selected. It is re-inforced by the fact that the cross-hair cursor is 
>> still displayed, though you can't select a new area of the screening by 
>> dragging a new rectangle.
>> 
>> Peter
>> http://LiveCode1001.blogspot.com
>> 
>> 
>> On 19 Jan 2014, at 06:37, John Dixon wrote:
>> 
>>> When in the IDE
>>> Go to the 'File' menu
>>> 'Import Control' > 'Snaphot of Screen'
>>> 
>>> Drag out a rectangle
>>> Does the screenshot get placed on the card ?
>>> 
>>> I am using 6.5.1 OSX9... and it does not seem to work unless I type 'cmd - 
>>> period' and then the screenshot appears...
>>> 
>>> Can someone confirm that this seems to be flaky, or am I going about it the 
>>> wrong way ?
>>> 
>>> Dixie
>>>   
>>> ___
>>> use-livecode mailing list
>>> use-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


Re: Is there a way to stop execution>?

2014-01-19 Thread Paul Hibbert
In the IDE sometimes cmd-y will stop a script, always worth a try before a 
force quit.

Paul

On 2014-01-19, at 3:15 PM, Earthednet-wp  wrote:

> Thanks, Stephen. I did notice that some of the toolbar menus worked, tho, so 
> I could save the file anyway before I nuked it.
> Bill
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Jan 19, 2014, at 2:20 PM, stephen barncard 
>>  wrote:
>> 
>> On Sun, Jan 19, 2014 at 12:50 PM, proth...@earthednet.org <
>> proth...@earthednet.org> wrote:
>> 
>>> Is there some way, or is force quitting the only way to get out of the
>>> loop?
>>> Bill
>>> 
>> 
>> probably not. One still has to use the 'nuclear option'
>> 
>> If theres' a chance that could happen, then put something like this inside
>> the loop:
>> 
>> 
>> if the mouse is "down" then exit to top
>> 
>> cmd period hasn't worked in a long time.
>> 
>> *--*
>> *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
>> ___
>> use-livecode mailing list
>> use-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: [OT] MIA

2014-01-20 Thread Paul Hibbert
So sorry to hear your sad news, sincere condolences.

Paul

On 2014-01-20, at 12:12 PM, Monte Goulding  wrote:

> Hi Folks
> 
> I'm going to be off the reservation for a little while. For those that knew 
> we had a baby due in a couple of weeks we lost her yesterday and I just need 
> to focus on family for a while. If my friends here notice anyone getting 
> upset about lack of communication from me/mergExt on the forums etc could you 
> please let people know I'll be back when life settles down a bit.
> 
> Thanks
> 
> Monte
> 
> 
> -- 
> M E R Goulding
> Software development services
> 
> mergExt - There's an external for that!
> ___
> use-livecode mailing list
> use-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: Mac Mavericks, Xcode, iOS Development and LC

2014-01-24 Thread Paul Hibbert
Hi Graham,

I am using Xcode 5.0.2 on Mac OS X 10.8.5 with LC 6.5.x and can deploy to iPad 
and iPhone on iOS 7.0.4 with no problems.

HTH

Paul

On 2014-01-24, at 8:45 AM, Graham Samuel  wrote:

> This is not really OT, I think. I have not tried any iOS development in the 
> last few months, but I'm hoping to start up again soon. Is it true that if 
> you want to develop for iOS 7, you need a version of Xcode that won't run on 
> pre-Mavericks versions of OSX? I thought I saw some words from Apple that 
> suggested this, but I can't find them now.
> 
> TIA for any clarification.
> 
> Graham
> ___
> use-livecode mailing list
> use-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: Inaccuracies using the Within keyword

2014-01-27 Thread Paul Hibbert
Ray,

I can confirm that your findings are correct.

I tried setting the margins to zero, but that made no difference, I also turned 
off antialiasing, still no difference.

Paul


On 2014-01-27, at 8:26 AM, Ray  wrote:

> I've created a triangle (shape of an Egyptian pyramid) with the Freehand 
> Polygon tool, made it opaque, filled it black and put the following script in 
> the stack:
> 
> on mouseMove
>   if within(grc "Polygon",the mouseLoc ) then
>  put ""&the mouseLoc&" - IN"
>   else put ""&the mouseLoc&" - OUT"
> end mouseMove
> 
> As I move the mouse in and out of the black area of the polygon Livecode 
> senses that it is IN the polygon about 5 pixels before it is; that is if I'm 
> hovering the tip of the arrow cursor around either the left or right side of 
> my pyramid.  Hover around the base and it's dead on.  I wonder why?
> 
> Does anybody have a minute to confirm this?
> 
> Thanks!
> 
> Ray Horsley
> LinkIt!
> 
> ___
> use-livecode mailing list
> use-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: Resize Stack Differences on Mac and Windows

2014-01-29 Thread Paul Hibbert
I suspect this is a platform issue that RR can't easily overcome, the 
dictionary states;

On Mac OS X systems…
…The stack's original width and height are passed only with the first 
resizeStack message sent during a resize operation.

So I'd guess the Mac OS is blocking the operation during the resize.

Paul


On 2014-01-29, at 8:29 AM, Ray  wrote:

> I'm not sure how many versions back this goes but apparently the following 
> script works differently on a Mac and Windows with 6.5.2:
> 
>   on resizeStack
>  put the ticks
>   end resizeStack
> 
> On Windows the message is sent continually as long as the mouse is down and 
> I'm resizing the stack.  On a Mac the resizeStack message is sent just once 
> when I let the mouse up after resizing the stack.
> 
> Does anybody have any experience with this anomaly?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [OT] PopClip for Mac - a very useful utility

2014-02-07 Thread Paul Hibbert
Me too! Make sure you check out the extensions, especially Swap & Paste=, I use 
them all the time.

Paul


On 2014-02-06, at 11:57 PM, René Micout  wrote:

> Yes ! I love it !
> 
> Le 7 févr. 2014 à 07:04, James Hale  a écrit :
> 
>> I must admit I really enjoy trying out new utilities and apps on my Mac.
>> Recently I came across this little gem PopClip.
>> It basically replicates the pop up menu seen in iOS when any text is 
>> selected.
>> Select some text and there it is, ready to ignore or click on one of its 
>> options.
>> 
>> I mention it here as I have recently returned to LC and have found how 
>> useful it is while editing scripts.
>> 
>> Anyway you can check it out here: http://pilotmoon.com/popclip/
>> Or go to the Mac App Store. At $4.99 it is pretty cheap.
>> 
>> James
>> ___
>> use-livecode mailing list
>> use-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: Stupid simple version control using dropbox

2014-02-08 Thread Paul Hibbert
Howard,

You need a Business account or a Pro account with add ons for version history.

https://www.dropbox.com/business/pricing

Paul

On 2014-02-07, at 12:36 PM, Howard Bornstein  wrote:

> However, I don't see the stack versioning you describe in any of my stack
> files on Dropbox. Is there something specific one needs to do in order to
> invoke this characteristic of Dropbox?


___
use-livecode mailing list
use-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: Stupid simple version control using dropbox

2014-02-08 Thread Paul Hibbert
Mark,

Thank you for sharing that, I looked all over for this when I heard about it, 
but when I saw the add on in the price structure I stopped looking. 

I guess Dropbox has one thing in common with LiveCode then - occasionally 
lacking in documentation!

Thanks again,

Paul

On 2014-02-08, at 4:57 PM, Mark Wieder  wrote:

> Paul, Howard-
> 
> Saturday, February 8, 2014, 3:07:28 PM, you wrote:
> 
>> You need a Business account or a Pro account with add ons for version 
>> history.
> 
> Not necessary.
> 
>> On 2014-02-07, at 12:36 PM, Howard Bornstein  wrote:
> 
>>> However, I don't see the stack versioning you describe in any of my stack
>>> files on Dropbox. Is there something specific one needs to do in order to
>>> invoke this characteristic of Dropbox?
> 
> (the description below is for linux, I assume other OSs are similar)
> 
> Right-click on the Dropbox icon in the tray
> Select Launch Dropbox website
> Find the file you're interested in
> Right-click the file for the contextual menu
> Select Previous versions
> From the list that appears, select one checkbox
>  (ignore the fact that the checkbox looks like a radio button)
> Click the Restore button
> 
> -- 
> -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


Re: Script local variables

2014-02-22 Thread Paul Hibbert
Hi Bill,

Sometimes there are other considerations as to when to use variables or custom 
properties, I didn't suggest custom props here because I understand that they 
may still be visible in the IDE in password protected stacks, as these 
variables were important to the integrity of the app it didn't make sense in 
this case.

I may be wrong on this, but it did crop up in a discussion a while ago and so 
far I haven't taken it far enough to test it, it's just one of those odd things 
that stuck in my memory. Could be a worthwhile exercise though. Has anyone 
tested this?

Paul

On 2014-02-22, at 8:04 AM, Earthednet-wp  wrote:

> Mats' posting on encryption difficulties got me thinking about local 
> variables. Are they supposed to persist after the script is done executing, 
> so that the next time a handler within that script is called, they can be 
> expected to hold previously set values? I notice that they don't. Or would 
> this be a task for custom properties?
> Bill
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Feb 22, 2014, at 2:54 AM, Peter W A Wood  wrote:
>> 
>> Many thanks to Roger Eller, Jan Schenkel, Bill Vlahos and Paul Hibbert (off 
>> list) for helping me identify and workaround the issues I encountered.
>> 
>> Paul pointed out three things: I didn't the use "the text of Field ..."; how 
>> to overcome not being able to copy text from a field in an OS X standalone; 
>> and the final problem that was related to script local variables.
>> 
>> Using "the text of Field ..." instead of "Field ..." helped to more 
>> accurately copy and paste data. (I ended up displaying the encrypted data in 
>> Hex anyway.) 
>> 
>> I had found that I couldn't copy from a Field in an OS X standalone. Paul 
>> provide a script with group handlers to get around the problem. I have 
>> submitted a bug report which has been accepted - 
>> http://quality.runrev.com/show_bug.cgi?id=11830
>> 
>> At this stage, I was still getting inconsistent results when encrypting data 
>> in the IDE or a standalone. Then Paul noticed how I was initialising the 
>> encryption parameters, namely the script local variables tPassword, tSalt, 
>> tIV:
>> 
>>   openStack
>> put "" into Field "Encrypted"
>> put "12345678123456781234567812345678" into tPassword
>> put "12345678123456781234567812345678" into tSalt
>> put "12345678123456781234567812345678" into tIV
>>   end openStack
>> 
>>   on encryptMSG
>> ...
>>   end encryptMSG
>> 
>>   on decryptMSG
>> ...
>>   end decryptMSG
>> 
>> He changed this to re-setting the three script local fields each time they 
>> were used:
>> 
>>   on openStack
>> put "" into Field "Encrypted"
>>   end openStack
>> 
>>   command setPassCodes
>> put "12345678123456781234567812345678" into tPassword
>> put "12345678123456781234567812345678" into tSalt
>> put "12345678123456781234567812345678" into tIV
>>   end setPassCodes
>> 
>>   on encryptMSG
>> setPassCodes
>> ...
>>   end encryptMSG
>> 
>>   on decryptMSG
>> setPassCodes
>> ...
>>   end decryptMSG
>> 
>> After making this change, I now get identical results when encrypting data 
>> with the stack in the IDE or as a standalone.
>> 
>> I have also entered a bug report for this - 
>> http://quality.runrev.com/show_bug.cgi?id=11832 - I feel there is a bug but 
>> not in the encrypt/decrypt functions, it's in the handling of script local 
>> variables.
>> 
>> Once again, thanks for all the help.
>> 
>> Kind regards
>> Peter
>> http://LiveCode1001.blogspot.com
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-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: Script local variables

2014-02-22 Thread Paul Hibbert
That was part of the problem, the value wasn't being retained, maybe for 
different reasons.

The original stack script set the variable values on openStack, then a button 
script called the stack script handlers to do the encryption, this is where I 
saw the possibility for the dis-connection, because portions of the stack 
script were being accessed at separate times.

Another way to achieve the same result in this case would be to declare the 
script variables with values in the stack script.

e.g.:

local tPassword = "12345678123456781234567812345678"
local tSalt = "12345678123456781234567812345678"
local tIV = "12345678123456781234567812345678"

Often there are many different ways to achieve the same goal, the best way 
isn't always the most obvious at the time, but that's the beauty of this type 
of list.

Paul

On 2014-02-22, at 9:53 AM, André Bisseret  wrote:

> Bonjour,
> 
> From liveCode Dictionnary:
> "The value of a local variable is retained only while the handler is running. 
> When the handler exits, the value of the local variable is lost.
> 
> The value of a script local variable is retained between handlers,"
> 
> For more information have a look at "local" in the dictionnary
> 
> Best regards
> 
> André
> 
> 
> Le 22 févr. 2014 à 17:04, Earthednet-wp a écrit :
> 
>> Mats' posting on encryption difficulties got me thinking about local 
>> variables. Are they supposed to persist after the script is done executing, 
>> so that the next time a handler within that script is called, they can be 
>> expected to hold previously set values? I notice that they don't. Or would 
>> this be a task for custom properties?
>> Bill
>> 
>> William Prothero
>> http://es.earthednet.org
>> 
>>> On Feb 22, 2014, at 2:54 AM, Peter W A Wood  wrote:
>>> 
>>> Many thanks to Roger Eller, Jan Schenkel, Bill Vlahos and Paul Hibbert (off 
>>> list) for helping me identify and workaround the issues I encountered.
>>> 
>>> Paul pointed out three things: I didn't the use "the text of Field ..."; 
>>> how to overcome not being able to copy text from a field in an OS X 
>>> standalone; and the final problem that was related to script local 
>>> variables.
>>> 
>>> Using "the text of Field ..." instead of "Field ..." helped to more 
>>> accurately copy and paste data. (I ended up displaying the encrypted data 
>>> in Hex anyway.) 
>>> 
>>> I had found that I couldn't copy from a Field in an OS X standalone. Paul 
>>> provide a script with group handlers to get around the problem. I have 
>>> submitted a bug report which has been accepted - 
>>> http://quality.runrev.com/show_bug.cgi?id=11830
>>> 
>>> At this stage, I was still getting inconsistent results when encrypting 
>>> data in the IDE or a standalone. Then Paul noticed how I was initialising 
>>> the encryption parameters, namely the script local variables tPassword, 
>>> tSalt, tIV:
>>> 
>>>  openStack
>>>put "" into Field "Encrypted"
>>>put "12345678123456781234567812345678" into tPassword
>>>put "12345678123456781234567812345678" into tSalt
>>>put "12345678123456781234567812345678" into tIV
>>>  end openStack
>>> 
>>>  on encryptMSG
>>>...
>>>  end encryptMSG
>>> 
>>>  on decryptMSG
>>>...
>>>  end decryptMSG
>>> 
>>> He changed this to re-setting the three script local fields each time they 
>>> were used:
>>> 
>>>  on openStack
>>>put "" into Field "Encrypted"
>>>  end openStack
>>> 
>>>  command setPassCodes
>>>put "12345678123456781234567812345678" into tPassword
>>>put "12345678123456781234567812345678" into tSalt
>>>put "12345678123456781234567812345678" into tIV
>>>  end setPassCodes
>>> 
>>>  on encryptMSG
>>>setPassCodes
>>>...
>>>  end encryptMSG
>>> 
>>>  on decryptMSG
>>>setPassCodes
>>>...
>>>  end decryptMSG
>>> 
>>> After making this change, I now get identical results when encrypting data 
>>> with the stack in the IDE or as a standalone.
>>> 
>>> I have also entered a bug report for this - 
>>> http://quality.

Re: Support for Mac OSX 10.5

2014-02-25 Thread Paul Hibbert
I would be happy to see LC move on and drop support for Mac OS X 10.5 in 
future, especially if they still supply LC6.6, I don't see any good reason hold 
up so many other developers and their clients for the few that don't want to 
move on.

If RR continue to supply LC6.6 with support for Mac OS X 10.5 then I don't see 
where the issue is. If a dev want's to support older versions to keep his/her 
clients happy, then they are the ones that need to put in the extra effort and 
charge accordingly, not the rest of us that don't want or need it.

As far as schools are concerned, I taught Photoshop in schools for 7 years and 
they refused to upgrade from PS Elements 2 with their reasoning based purely on 
cost, even at education prices, so I'm sure most of them will be happy to run 
LC 6.6 until such time as they can upgrade their ageing equipment, it must 
happen eventually. If they can't/won't run newer hardware how can they expect 
to run the most up-to-date software, especially when they will be getting if 
free?

I haven't seen any demand for PPC/Universal support, even though I did offer it 
to my clients, nobody ever requested it. That puts demand "according to my 
experience" at below 0.05%.

Looking forward to a faster, leaner and more modern LiveCode.

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


Re: Why is everybody better than me?

2014-02-27 Thread Paul Hibbert
Hi Mats,

Another useful tip (depending on your preferred email client), is to highlight 
the phrase/sentence/paragraph/etc. that you want to quote before hitting the 
Reply button, the highlighted text should be included in your reply (see below).

I'm using Apple Mail, I've tried other software, but always end up coming back 
to Mail.

Paul

On 2014-02-27, at 4:36 AM, Mats Wilstrand  wrote:

> You all seem to have no problem getting the message you're
> answering included in your answer.


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

2014-03-09 Thread Paul Hibbert
Terry,

Just a thought, if you ask on the forum thread maybe you will get response from 
RunRevMark, he's the one doing the programming so he's in the best position to 
answer your questions, and he did start that thread.

Paul

 
On 2014-03-09, at 10:07 AM, Terence Heaford  wrote:

> Yes, I have read that but it does not say very much at all and certainly does 
> not discuss native vs emulated controls.
> 
> 
> All the best
> 
> Terry
> 
> 
> On 9 Mar 2014, at 16:36, Martin Koob  wrote:
> 
>> http://forums.runrev.com/phpBB2/viewtopic.php?f=66&t=18504
> 
> ___
> use-livecode mailing list
> use-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: Cursor image

2014-03-10 Thread Paul Hibbert
No need for GIMP in this case…

   export snapshot from img "myCursorImg" to tImg as PNG
   set the blendLevel of img "myCursorImg" to 0
   put tImg into img "myCursorImg"

Also you could store the text of the original image in a custom prop to reset 
it if necessary.

Paul 

On 2014-03-10, at 11:38 AM, Richmond  wrote:

> On 10/03/14 18:34, Peter Haworth wrote:
>> I'm setting the cursor to the ID of an image that has its blendlevel set to
>> 60 but the image appears as if its blendlevel were 0.  I'm guessing there
>> are some limitations on how an image is displayed when used as a cursor?
>> 
>> Pete
>> 
> 
> Of course one of the ways to get around this would be to save your cursor 
> image as a PNG image with GIMP
> with the transparency set to  level you want.
> 
> Then import it into Livecode and use it as before.
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-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: Change to the label property in 6.7

2014-03-29 Thread Paul Hibbert
Pete,

It looks like this is OK as far as I can see. I just ran a quick test:

1 x Option Menu (Default settings)
   Script:
on menuPick
   put the menuHistory of me into fld 3
end menuPick

1 x Button "Test"
   Script:
on mouseDown
   put the menuHistory of btn 1 into fld 1
end mouseDown

on mouseUp
   set the label of btn 1 to "Test"
   put the menuHistory of btn 1 into fld 2
end mouseUp

3 x Field

The result in all 3 fields was the same after pressing the "Test" button, 
whichever option was chosen last using the optionMenu was the reported 
menuHistory.

The result was identical to LC 6.6

HTH

Paul


On 2014-03-29, at 12:36 PM, Peter Haworth  wrote:

> I've been looking into my stacks to see how they will be affected by the
> change to the way the label property of an option menu works in 6.7.
> 
> As long as it will still be possible to set the label of an option menu to
> a value that is not in its text, all should be well.
> 
> Unfortunately, I can't even run 6.7 on my computer (OSX 10.7.4) as it dies
> a silent death before I can even open a stack (QCC bug report entered). Can
> anyone confirm that the above is still possible and, if so, what value ends
> up in the menuHistory?
> 
> This change also reminds me that I've always wondered why setting the
> hilitedline of a scrolling list field does not trigger a selectionChanged
> message.  It seems analogous to setting the menuHistory of an option menu
> triggering a menuPick message.
> 
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> ___
> use-livecode mailing list
> use-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: Change to the label property in 6.7

2014-03-30 Thread Paul Hibbert
Pete,

Sorry I didn't reply sooner, I was called away just after trying this.


On 2014-03-29, at 3:12 PM, Peter Haworth  wrote:

> Thanks Paul.  I'm a little concerned about what happens in your mouseUp
> handler if I'm understanding it correctly.  If "Test" doesn't exist in the
> button, I would have expected the menuHistory to be zero or empty or
> something to indicate that the label doesn't exist in the text of the
> button.

"Test" didn't exist in the menu button text, and no matter what I tried, I 
never saw 'empty' or 'zero' in the menuHistory. As far as I can see the 
menuHistory is always a positive integer.

> Also a bit puzzled by the last sentence since setting the label in 6.6
> shouldn't change the menuHistory, although maybe that's related to my first
> concern.

Maybe I didn't quite understand the original problem, but from the tests I've 
done so far, setting the label of an option menu doesn't affect the menuHistory 
in any way, also it doesn't trigger a menuPick message like setting the 
menuHistory does.

Tested on Mac OS X 10.8.5 with LC 5.5.5 through to LC 7.0 (dp1) - All behaved 
exactly the same.

HTH

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


Re: Change to the label property in 6.7

2014-03-30 Thread Paul Hibbert

On 2014-03-30, at 12:08 PM, Peter Haworth  wrote:

> Thanks for the follow up Paul.  In 6.7, setting the label of an option menu
> is supposed to set the menuHistory to the related value while not
> generating a menuPick.  In previous version, setting the label had no
> effect on the menuHistory.

Ah, now I see, yes that does work, provided you set it to a label that does 
exist in the text of the Option Menu. However, if you set the label to 
something that doesn't exist in the text of the option menu then it has no 
effect on the menuHistory, it doesn’t set it to empty or zero, it just retains 
the previous value.

The only other change I can see is that in LC 7.0 (dp1) setting the menuHistory 
to empty doesn't throw an error as it does in lower versions, it just sets the 
menuHistory to 1.

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


Re: how to sort lines with a $ amount

2014-03-31 Thread Paul Hibbert
If the $amount is always the last column in the field…

   set the itemDel to "$"
   sort lines of fld "myField" ascending numeric by item 2 of each

Paul

On 2014-03-31, at 7:03 PM, la...@significantplanet.org wrote:

> I have a field with a date, name, number and finally a dollar amount such as 
> $10 - in each line of the field.
> 
> I can sort the lines of the field just fine on word 1 (date),  word 2 (name) 
> and word 3 (number)
> 
> But when I try to sort on word 4, I don't know how to get it to come out 
> right because the $ in front makes it a string and not a number.
> 
> So I get something like this:
> $11.00
> $120.00
> $47.00
> 
> When what I want is:
> $11.00
> $47.00
> $120.00
> 
> Thanks in advance for any enlightenment!
> Larry
> ___
> use-livecode mailing list
> use-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: Counting the number of checkboxes...

2014-04-20 Thread Paul Hibbert
Charles,

Here's another option.

My immediate thought was that this could be a use for an "after mouseUp" 
handler in a behaviour button, so I tried this…

## Checkbox Behaviour Button Script
## This just loops through the controls on two cards and counts any highlighted 
checkbox
after mouseUp
   put 0 into tTotal -- Reset the counter

   repeat with x = 1 to the number of controls on card "Card_A"
  if the style of control x of card "Card_A" = "checkbox" and \
the hilite of control x of card "Card_A" then add 1 to tTotal
   end repeat

   repeat with x = 1 to the number of controls on card "Card_B"
  if the style of control x of card "Card_B" = "checkbox" and \
the hilite of control x of card "Card_B" then add 1 to tTotal
   end repeat

   put tTotal into fld "countField" of card "Card_A"
   -- OR maybe store in a custom property untill needed
end mouseUp

…and it does work OK. In this case the count will always be up-to-date with 
each checkbox change even if the user changes his/her mind and un-checks a 
previously checked control.

It does mean applying the behaviour to all 28 checkboxes though, but you can do 
that easily with a repeat script in the multiline message box.

I'm sure there are many other ideas out there.

Paul

On 2014-04-20, at 9:18 AM, Charles Szasz  wrote:

> I have 28 checkboxes on two cards. I need to count the total number of 
> checkboxes checked by the user. I have throughout the archives and could not 
> find an example of how to do this.   Anybody have a suggestion on how to 
> script this?
> 
> Charles Szasz
> csz...@mac.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


  1   2   3   4   5   >