iOS print external problem

2012-01-11 Thread gwendalwood
Has anyone else found that the iOs HardCopy external has a problem dealing with 
two-sided printing? When two or more pages are printed from my iPad 2, it 
always prints two-sided to a two-sided capable printer even when the option is 
turned off in the pop-up dialog. Who is the author of the external or who could 
I contact for followup?

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


Re: standalone not quitting on Win7

2012-01-11 Thread Pierre Sahores
Did you try ?

on closeStack
wait 1
  quit
end closeStack

Best,


Le 11 janv. 2012 à 03:04, Nicolas Cueto a écrit :

 on closeStack
   quit
 end closeStack
 
 
 Any ideas?   Thanks.
 
 --
 Nicolas Cueto

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com




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


Re: Regular expression to find the date

2012-01-11 Thread paolo mazza
Thank you all.
You are the wizards of Regular Expressions!

Both of these solutions work great.
However, to me,  a perfect solution would be a combination of the two,

A Regular Expression that accept

05/01/2011
05-01-2011
05.01.2011
...

and also

11/9/2011
5/10/2011
...

as a date.

Thank you very much. All the best

Paolo Mazza

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


Re: standalone not quitting on Win7

2012-01-11 Thread Mark Schonewille
Happy new year to you too, Nico-san!

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 11 jan 2012, at 04:05, Nicolas Cueto wrote:
snip
 
 
 P.S. Akemashite omedeto gozaimasu. Kotoshi mo yoroshiku onegaishimasu!
 
 [The Japanese New Year's greeting, which must be stated the very first
 moment one happens to re-meet in January someone not only whom,
 because of their kindness or service in the previous year, one feels
 happily grateful towards, but also whom, in the months or even years
 to come, one realizes may again be obliged upon for help.]
 --
 Nicolas Cueto


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


Re: standalone not quitting on Win7

2012-01-11 Thread Mark Schonewille
Hi,

The wait command blocks all other handlers and hence has no effect. Maybe you 
mean wait 1 with messages, but I don't think it matters. You can ignore the 
wait command. Also, I wouldn't put the quit command in the closeStack handler 
but in the closeStackRequest handler because the closeStack handler can't 
prevent a stack from closing but the closeStackRequest handler can.

I wrote my script specifically because a simple quit command wouldn't do. 
Windows standalones tend to remain in memory if an external or database driver 
is still running or if a window wasn't closed and there are versions of 
Revolution (and maybe LiveCode but I wouldn't know because I always use my 
script) that crash if the quit command is executed while a backdrop is active.

Usually, I don't run my script inside a closeStack(Request) handler. I have a 
separate handler for it, which I call from the quit menu item on Windows and 
from the shutdownRequest handler on Mac OS X.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 11 jan 2012, at 09:22, Pierre Sahores wrote:

 Did you try ?
 
 on closeStack
 wait 1
  quit
 end closeStack
 
 Best,
 
 
 Le 11 janv. 2012 à 03:04, Nicolas Cueto a écrit :
 
 on closeStack
  quit
 end closeStack
 
 
 Any ideas?   Thanks.
 
 --
 Nicolas Cueto



___
use-livecode mailing list
use-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: Regular expression to find the date

2012-01-11 Thread Thierry Douez
Hi Paolo,

Both of these solutions work great.
 However, to me,  a perfect solution would be a combination of the two,

 A Regular Expression that accept

 05/01/2011
 05-01-2011
 05.01.2011
 ...
 and also

 11/9/2011
 5/10/2011
 ...
 as a date.


If you need an optional '0' for one digit day and month, add
a question mark after the 0 in the Regexp, like this :

   put
((0?[1-9]|[12][0-9]|3[01])[-/.](0?[1-9]|1[012])[-/.]((19|20)\d\d))  into
myRegEx


HTH,

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


[ANN] Installer Maker 1.7.2

2012-01-11 Thread Mark Schonewille
Hello,

I made a small update to the Installer Maker Plugin. The new version is 1.7.2 
and fixes two annoying bugs. This update is free for all owners of a valid 
license for 1.7.1. Go to http://qery.us/za to get it.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!


___
use-livecode mailing list
use-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: [ANN] mergZXing - iOS Barcode Reader External

2012-01-11 Thread Bob Sneidar
Good job and good luck to you!

Bob


On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote:

 Hi All
 
 Today I have released mergZXing my iOS Barcode Reader External for sale via 
 my website http://goulding.ws/mergzxing for US$49.
 
 The external will also be available on the LiveCode marketplace ASAP. 
 
 mergZXing currently supports reading barcodes in these formats:
 
 UPC-A and UPC-E
 EAN-8 and EAN-13
 Code 39
 Code 128
 QR Code
 ITF
 Data Matrix
 As an added bonus I have also included mergAnswerColor which is a modal color 
 picker external for iOS. 
 
 --
 Kind Regards,
 
 Monte Goulding
 M E R Goulding - Software Development Services
 ___
 use-livecode mailing list
 use-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 down?

2012-01-11 Thread Bob Sneidar
I am trying to connect to On-Rev SQL database, and failing. Anyone else having 
problems?

Bob



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

2012-01-11 Thread Mike Bonner
My sites are working (odin) and I can log in to odins cpanel ok but there
was some weirdness.  Went to https://odin.on-rev.com:2083/login/ box pops
up asking for username and password. Wouldn't let me log in. Failed
miserably. Tried alternate passwords on the offchance I mis-remember.
 Nope. Hit cancel, box goes away, says I failed  due to invalid username.
Yet on the screen it shows the same username and a password box (web entry
now, not popup auth box). Try my password. Poof, in.

Anyone know what is up with this? The box that pops up appears to be a
standard dialog that appears for network resource login credentials. Same
box pops up for access to game academy materials.

On Wed, Jan 11, 2012 at 9:40 AM, Bob Sneidar b...@twft.com wrote:

 I am trying to connect to On-Rev SQL database, and failing. Anyone else
 having problems?

 Bob



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

2012-01-11 Thread Ralph DiMola
I am having no problem connecting to my on-rev MySQL database.

Ralph DiMola
IT Director
Evergreen Information Services
Phone: 518-636-3998 Ex:11
Cell: 518-796-9332

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar
Sent: Wednesday, January 11, 2012 11:41 AM
To: How to use LiveCode
Subject: On-Rev down?

I am trying to connect to On-Rev SQL database, and failing. Anyone else
having problems?

Bob



___
use-livecode mailing list
use-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: Stack to read offline the LiveCode Forum

2012-01-11 Thread Alejandro Tejada
Hi Mark,


Mark Stuart-2 wrote
 
 Alejandro wrote:

 Does exists a LiveCode stack to read offline
 all the LiveCode forum postings?
 
 
 Alejandro, if you go to this link, I mentioned that I had an application
 that reads the mail list.
 Currently, it doesn't have the offline feature, but if folk are
 interested in that, I would add it.
 
 http://lists.runrev.com/pipermail/use-livecode/2011-September/162079.html
 
 If you can't download the application, let me know and I'll email it
 directly to you.
 

Many thanks for the link. Actually, I am looking for a stack that could
display the forum. Ideally, a single stack should display both, the forum
and the mail list.

Have a nice day!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Stack-to-read-offline-the-LiveCode-Forum-tp4270704p4286084.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


RE: On-Rev down?

2012-01-11 Thread Ralph DiMola
I am having no problem connecting to the control panel either.

Ralph DiMola
IT Director
Evergreen Information Services
Phone: 518-636-3998 Ex:11
Cell: 518-796-9332

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar
Sent: Wednesday, January 11, 2012 11:41 AM
To: How to use LiveCode
Subject: On-Rev down?

I am trying to connect to On-Rev SQL database, and failing. Anyone else
having problems?

Bob



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

2012-01-11 Thread Pierre Sahores
loki is OK for me.

Le 11 janv. 2012 à 17:40, Bob Sneidar a écrit :

 I am trying to connect to On-Rev SQL database, and failing. Anyone else 
 having problems?
 
 Bob
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com




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


Re: On-Rev down?

2012-01-11 Thread Bob Sneidar
NVM it is something on this end. Still troubleshooting...

Bob


On Jan 11, 2012, at 8:52 AM, Mike Bonner wrote:

 My sites are working (odin) and I can log in to odins cpanel ok but there
 was some weirdness.  Went to https://odin.on-rev.com:2083/login/ box pops
 up asking for username and password. Wouldn't let me log in. Failed
 miserably. Tried alternate passwords on the offchance I mis-remember.
 Nope. Hit cancel, box goes away, says I failed  due to invalid username.
 Yet on the screen it shows the same username and a password box (web entry
 now, not popup auth box). Try my password. Poof, in.
 
 Anyone know what is up with this? The box that pops up appears to be a
 standard dialog that appears for network resource login credentials. Same
 box pops up for access to game academy materials.
 
 On Wed, Jan 11, 2012 at 9:40 AM, Bob Sneidar b...@twft.com wrote:
 
 I am trying to connect to On-Rev SQL database, and failing. Anyone else
 having problems?
 
 Bob
 
 
 
 ___
 use-livecode mailing list
 use-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 Password protection of RR server?

2012-01-11 Thread Jim Hurley
Mark,

I finally got my password for cPanel  from Heather and  I plunged into password 
protecting a web page.

Or so I thought. I assumed that a web address was a directory and I thought I 
was protecting a web page but turned out locking up much more.

There is still one folder jamesphurley.com/District3 that I am locked out of. 
Is there a way in cPanel to unprotect a page? (It would be helpful to include 
this kind of info in the help link. Not any time soon, I afraid. I suspect that 
RR is bitten off more than they are able to chew at the moment. Witness the 
downtime on Rev OnLine User Samples.)

Also, the page I use for my neighborhood association is lvrmna.on-rev.comAt 
one point everyone in the neighborhood was locked out of that site due to a 
password protection I didn't realize I was making. Very embarrassing. A little 
knowledge is a dangerous thing. 

I recall in the beginning that my deal with RR was a web presence with the url 
jamesphurley.on-rev.com (I own a domain name jamesphurley.com) which they were 
able to shorten for me to jamesphurley.com. Is this just an alias for 
jamesphurley.on-rev.com? Is it possible through cPanel to shorten 
lvrmna.on-rev.com to simply lvrmna.com?

I hate this stuff. I have no idea what's going on under the hood.

Thanks,

Jim Hurley

 Mark,
 
 Thank you going into the details. They will be helpful when Heather returns 
 information about my user name and password..
 
 It has been months since I have used cPanel.
 
 Wish me luck.
 
 Jim Hurley
 
 
 
 Message: 24
 Date: Tue, 27 Dec 2011 17:04:59 -0800
 From: Mark Wieder mwie...@ahsoftware.net
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: As Matthias said, log on to on-rev's cPanel, then scroll down the 
 page
 to the Security section and click on Password Protect Directories.
 You'll probably want to click on the public_html icon (not the text)
 to open it and then navigate your way down to the folder you want to
 protect.
 
 When you finally find the right one, click on its text (not its icon),
 then place a check in the checkbox to verify that you want to protect
 it and (optionally) set a name for the directory. Then enter a
 username and password (both are necessary to unlock the directory) and
 click Add/modify authorized user. You're done unless you want to add
 more user/password pairs.
 
 -- 
 -Mark Wieder
 mwie...@ahsoftware.net
 Message-ID: 65943378687.20111227170...@ahsoftware.net
 Content-Type: text/plain; charset=us-ascii
 
 Jim-
 
 Tuesday, December 27, 2011, 11:03:52 AM, you wrote:
 
 I would like to password protect a page. Is there anything about
 the RR server that affects how that should be done?
 
 As Matthias said, log on to on-rev's cPanel, then scroll down the page
 to the Security section and click on Password Protect Directories.
 You'll probably want to click on the public_html icon (not the text)
 to open it and then navigate your way down to the folder you want to
 protect.
 
 When you finally find the right one, click on its text (not its icon),
 then place a check in the checkbox to verify that you want to protect
 it and (optionally) set a name for the directory. Then enter a
 username and password (both are necessary to unlock the directory) and
 click Add/modify authorized user. You're done unless you want to add
 more user/password pairs.
 
 -- 
 -Mark Wieder
 mwie...@ahsoftware.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


Re: OT Password protection of RR server?

2012-01-11 Thread Mark Schonewille
Hi Jim,

The easy way to unprotect a page is to log in with FTP and remove the 
httpaccess file from the directory.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 11 jan 2012, at 19:36, Jim Hurley wrote:

 Mark,
 
 I finally got my password for cPanel  from Heather and  I plunged into 
 password protecting a web page.
 
 Or so I thought. I assumed that a web address was a directory and I thought I 
 was protecting a web page but turned out locking up much more.
 
 There is still one folder jamesphurley.com/District3 that I am locked out of. 
 Is there a way in cPanel to unprotect a page? (It would be helpful to include 
 this kind of info in the help link. Not any time soon, I afraid. I suspect 
 that RR is bitten off more than they are able to chew at the moment. Witness 
 the downtime on Rev OnLine User Samples.)
 
 Also, the page I use for my neighborhood association is lvrmna.on-rev.com
 At one point everyone in the neighborhood was locked out of that site due to 
 a password protection I didn't realize I was making. Very embarrassing. A 
 little knowledge is a dangerous thing. 
 
 I recall in the beginning that my deal with RR was a web presence with the 
 url jamesphurley.on-rev.com (I own a domain name jamesphurley.com) which they 
 were able to shorten for me to jamesphurley.com. Is this just an alias for 
 jamesphurley.on-rev.com? Is it possible through cPanel to shorten 
 lvrmna.on-rev.com to simply lvrmna.com?
 
 I hate this stuff. I have no idea what's going on under the hood.
 
 Thanks,
 
 Jim Hurley


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


Oops

2012-01-11 Thread Jim Hurley
Oops. 

That last message of mine was intended for Mark, not the entire list.

Jim Hurley

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


Re: Oops

2012-01-11 Thread Mike Bonner
oops, sorry for replying then :)

On Wed, Jan 11, 2012 at 11:46 AM, Jim Hurley jhurley0...@sbcglobal.netwrote:

 Oops.

 That last message of mine was intended for Mark, not the entire list.

 Jim Hurley

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

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


Re: OT Password protection of RR server?

2012-01-11 Thread Jim Hurley
Mark,

Thanks Mark. I did as you suggested without results. I am trying to unprotect 
the url:

jamesphurley.com/District3

but I still get this message:

To view this page, you must log in to area “District3” on 
jamesphurley.com:80.

I have no idea what the :80 suffix means.

District3 is a folder in my directory.

Jim


 
 
 Hi Jim,
 
 The easy way to unprotect a page is to log in with FTP and remove the 
 httpaccess file from the directory.
 
 --
 Best regards,
 
 Mark Schonewille
 
 

___
use-livecode mailing list
use-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 Password protection of RR server?

2012-01-11 Thread Mike Bonner
:80 just indicates that its the default http port.

On Wed, Jan 11, 2012 at 12:11 PM, Jim Hurley jhurley0...@sbcglobal.netwrote:

 Mark,

 Thanks Mark. I did as you suggested without results. I am trying to
 unprotect the url:

jamesphurley.com/District3

 but I still get this message:

To view this page, you must log in to area “District3” on
 jamesphurley.com:80.

 I have no idea what the :80 suffix means.

 District3 is a folder in my directory.

 Jim


 
 
  Hi Jim,
 
  The easy way to unprotect a page is to log in with FTP and remove the
 httpaccess file from the directory.
 
  --
  Best regards,
 
  Mark Schonewille
 
 

 ___
 use-livecode mailing list
 use-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 Password protection of RR server?

2012-01-11 Thread Jim Hurley
P.S.

Below the message (To view this page etc.) are the fields in which to enter a 
username and password.

Jim


 Mark,
 
 Thanks Mark. I did as you suggested without results. I am trying to unprotect 
 the url:
 
jamesphurley.com/District3
 
 but I still get this message:
 
To view this page, you must log in to area “District3” on 
 jamesphurley.com:80.
 
 I have no idea what the :80 suffix means.
 
 District3 is a folder in my directory.
 
 Jim
 
 
 
 
 Hi Jim,
 
 The easy way to unprotect a page is to log in with FTP and remove the 
 httpaccess file from the directory.
 
 --
 Best regards,
 
 Mark Schonewille
 
 

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


Group Question

2012-01-11 Thread Warren Kuhl
I want to add an object to a group (which is in another group).  I am
trying to do this from the message box.  What is the syntax of this?
Isn't it something like:

In the example below, group 1 is in group 2.

set the group of image Imagexxx to group group1  of  group2 group 2

I thought I did this before, but I keep getting a error - token is not
a property.

Appreciate any help!
Warren

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

2012-01-11 Thread Klaus on-rev
Hi Warren,

Am 11.01.2012 um 20:15 schrieb Warren Kuhl:

 I want to add an object to a group (which is in another group).  I am
 trying to do this from the message box.  What is the syntax of this?
 Isn't it something like:
 
 In the example below, group 1 is in group 2.
 
 set the group of image Imagexxx to group group1  of  group2 group 2
 
 I thought I did this before, but I keep getting a error - token is not
 a property.

group is not a property but a container!

You can:
...
copy img nice one of grp gruppo uno to grp gruppo due
...
create img in grp the one without any image yet
...
etc.

 Appreciate any help!
 Warren

Best

Klaus

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


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


Re: Group Question

2012-01-11 Thread Bob Sneidar
Don't you mean:

set the group of image Imagexxx to group group1  of  group group 2

Also the names of the groups are not consistent. Typo? I do not think you have 
to use of group Group 2. 

Bob

On Jan 11, 2012, at 11:15 AM, Warren Kuhl wrote:

 I want to add an object to a group (which is in another group).  I am
 trying to do this from the message box.  What is the syntax of this?
 Isn't it something like:
 
 In the example below, group 1 is in group 2.
 
 set the group of image Imagexxx to group group1  of  group2 group 2
 
 I thought I did this before, but I keep getting a error - token is not
 a property.
 
 Appreciate any help!
 Warren
 
 ___
 use-livecode mailing list
 use-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: [ANN] mergZXing - iOS Barcode Reader External

2012-01-11 Thread Andre Garzia
Just purchased it! will use 2D barcodes to label everything here.. now,
if this cat stand still for couple minutes, I can tag him too

Monte, thanks for the external!

On Wed, Jan 11, 2012 at 2:30 PM, Bob Sneidar b...@twft.com wrote:

 Good job and good luck to you!

 Bob


 On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote:

  Hi All
 
  Today I have released mergZXing my iOS Barcode Reader External for sale
 via my website http://goulding.ws/mergzxing for US$49.
 
  The external will also be available on the LiveCode marketplace ASAP.
 
  mergZXing currently supports reading barcodes in these formats:
 
  UPC-A and UPC-E
  EAN-8 and EAN-13
  Code 39
  Code 128
  QR Code
  ITF
  Data Matrix
  As an added bonus I have also included mergAnswerColor which is a modal
 color picker external for iOS.
 
  --
  Kind Regards,
 
  Monte Goulding
  M E R Goulding - Software Development Services
  ___
  use-livecode mailing list
  use-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




-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-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: Group Question

2012-01-11 Thread Bob Sneidar
I got the propertynames and pasted them into a text editor. I then searched for 
group and none of the things I found sound like they are properties you can 
set to add an object to a group. 

Bob


On Jan 11, 2012, at 11:15 AM, Warren Kuhl wrote:

 I want to add an object to a group (which is in another group).  I am
 trying to do this from the message box.  What is the syntax of this?
 Isn't it something like:
 
 In the example below, group 1 is in group 2.
 
 set the group of image Imagexxx to group group1  of  group2 group 2
 
 I thought I did this before, but I keep getting a error - token is not
 a property.
 
 Appreciate any help!
 Warren
 
 ___
 use-livecode mailing list
 use-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: [ANN] mergZXing - iOS Barcode Reader External

2012-01-11 Thread Bob Sneidar
Taze him. That's what I do with my cat. Not to get him to stand still, just for 
entertainment. ;-) 

KIDDING! I'M KIDDING!

Bob


On Jan 11, 2012, at 11:40 AM, Andre Garzia wrote:

 Just purchased it! will use 2D barcodes to label everything here.. now,
 if this cat stand still for couple minutes, I can tag him too
 
 Monte, thanks for the external!
 
 On Wed, Jan 11, 2012 at 2:30 PM, Bob Sneidar b...@twft.com wrote:
 
 Good job and good luck to you!
 
 Bob
 
 
 On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote:
 
 Hi All
 
 Today I have released mergZXing my iOS Barcode Reader External for sale
 via my website http://goulding.ws/mergzxing for US$49.
 
 The external will also be available on the LiveCode marketplace ASAP.
 
 mergZXing currently supports reading barcodes in these formats:
 
 UPC-A and UPC-E
 EAN-8 and EAN-13
 Code 39
 Code 128
 QR Code
 ITF
 Data Matrix
 As an added bonus I have also included mergAnswerColor which is a modal
 color picker external for iOS.
 
 --
 Kind Regards,
 
 Monte Goulding
 M E R Goulding - Software Development Services
 ___
 use-livecode mailing list
 use-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
 
 
 
 
 -- 
 http://www.andregarzia.com -- All We Do Is Code.
 http://fon.nu -- minimalist url shortening service.
 ___
 use-livecode mailing list
 use-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: color picker in IOS

2012-01-11 Thread Howard Bornstein
Hi Monte,

Congratulations on the release of mergzxing. I wish you success with it. :-)

The image for the color-picker external seems to show that it takes up the
entire iphone screen. Is there any way to specify a resize on it to take a
lesser portion of the screen?

I am currently rolling my own but wondered if you had thought of cutting
the color picker loose from mergzxing and offering it separately.

On Tue, Jan 10, 2012 at 9:30 PM, Monte Goulding mo...@sweattechnologies.com
 wrote:

 Hi Howard

 I've written an external for iOS. It's a bonus when you buy mergZXing my
 iOS barcode reader external. See http://goulding.ws/merzxing

 Cheers

 Monte

 On 11/01/2012, at 7:43 AM, Howard Bornstein wrote:

  How are people handling the need to present a color picker under IOS?
  AFAICT this option is not available through the IOS SDK.
 
  --
  Regards,
 
  Howard Bornstein
  ---
  www.designeq.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




-- 
Regards,

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


Re: Find nearest color in an RGB list

2012-01-11 Thread Nonsanity
Yeay! One always worries about code written IN the email... :)

 ~ Nonsanity


On Tue, Jan 10, 2012 at 3:31 PM, Michael Doub m...@doub.com wrote:

 This works like a charm!

 Thanks,
   Mike



 On 2012-01-10, at 3:03 PM, Nonsanity wrote:

  Both look like good suggestions for getting the closest color a human
 would
  think is a match, but both involve converting Livecode's native RGB to
  another format. I may be wrong, but I don't think those conversions are
  available built-in. I'm sure functions have been written to do this many
  times, but it's not trivial to do from scratch. If you can get one, then
  the following code will still work - It'll just work better. (Replace the
  r, g, b variable names with the appropriate letters for clarity.)
 
  Depending on your use case, you may not need to be that human-accurate,
 in
  which case you can do the same calculation in RGB space. The square root
  calculation in your two solutions is a way to get the distance between
 any
  two points in three dimensional space. All three color formats have three
  values, so they can all be pictured as a cube of space with colors as
  points within that space. Your starting color is in there too, and you
 just
  have to check the distance from it to all the other color points, and
  return the shortest.
 
  I'm typing this in a mail program, so it is untested...
 
  function Distance3D( x1, y1, z1, x2, y2, z2 )
 return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) )
  end Distance3D
 
  function GetClosestColor( r, g, b )
 put 9 into ClosestDist
 put r , g , b into ClosestColor
 repeat for each line c of gColorList
 get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c )
 if it  ClosestDist then
 put it into ClosestDist
 put c into ClosestColor
 end if
 end repeat
 return ClosestColor
  end GetClosestColor
 
 
  You'd have your colors in gColorList like this:
 32,32,128
 255,255,255
 0,0,0
 128,128,256
 (etc)
 
 
  ~ Chris Innanen
  ~ Nonsanity
 
 
 
  On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub m...@doub.com wrote:
 
  I have a list of RGB colors that represent different color samples.   I
  need to create a function that will return the closest perceived RGB
 entry
  in the list when supplied a single RGB value.  Is anyone aware of a
 library
  or some sample code that would help with this task?
 
  From searching I found the follow two suggestions for solving this
  problem.  Neither are not intuitively obvious to the casual
  observer...namely me. ;-)
 
 
  1) Convert RGB to  CIE Lab color space, then compute the distance in
 that
  space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2).  Colors with the
  lowest deltaE are the most perceptually similar to each other.
 
  2) Convert to RGB to HSL and consider an HSL color value a vector and
  define a weighted modulus function for the vector like this:
  modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1);  where a,b,c are weights
 you
  should decide based on your visual definition of what creates a bigger
  difference in perceived color - a 1% change in Hue or a 1% change in
  Saturation.  I would suggest you use a = b = 0.5 and c = 1 Finally, find
  out the range your modulus would take and define similar colors to be
 those
  which have their moduli very close to each other (say 5%)
 
  Regards,
   Mike
 
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


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

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


[OT] Going bananas with The Desktop Experience

2012-01-11 Thread Richmond
After the debacle of Ubuntu and its Unity desktop, the equally hot 
huffing and puffing about GNOME 3,
and so on, I see that quite a few Linux people are jumping on the 
desktop environment bandwagon:


http://unity.ubuntu.com/

http://www.gnome.org/gnome-3/

http://asturix.com/2012/01/asturix-4-released/

http://mashable.com/2010/05/02/google-bumptop/

http://wiki.sugarlabs.org/go/Welcome_to_the_Sugar_Labs_wiki

I suppose, that sooner or later, our friends over at Redmond and the 
Apple Campus will decide to jump

aboard too...

How, if at all, will this impact on how we deliver Livecode standalones 
to the punters?


Richmond Mathewson.

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


[ANN] animationEngine 5 Manuel en français

2012-01-11 Thread Malte Brill
Bonjour à tous les utilisateurs français d'animationEngine!
Heureusement René Micout traduit le manuel en français. Le lien est ici: 
http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore René! S'il 
vous plaît excuser mon mauvais français. Je n'ai Google translate prises pour 
aider. J'espère que ce message a un sens. :-)

Cordialement,

Malte
___
use-livecode mailing list
use-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: [ANN] animationEngine 5 Manuel en français

2012-01-11 Thread Malte Brill
Updated link:

http://derbrill.de/animationEngine/animationEngine_5_Manuel.pdf

Malte

 Bonjour à tous les utilisateurs français d'animationEngine!
 Heureusement René Micout traduit le manuel en français. Le lien est ici: 
 http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore René! 
 S'il vous plaît excuser mon mauvais français. Je n'ai Google translate prises 
 pour aider. J'espère que ce message a un sens. :-)
 
 Cordialement,
 
 Malte
___
use-livecode mailing list
use-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: color picker in IOS

2012-01-11 Thread Monte Goulding

On 12/01/2012, at 7:28 AM, Howard Bornstein wrote:

 Hi Monte,
 
 Congratulations on the release of mergzxing. I wish you success with it. :-)
 
 The image for the color-picker external seems to show that it takes up the
 entire iphone screen. Is there any way to specify a resize on it to take a
 lesser portion of the screen?
 
 I am currently rolling my own but wondered if you had thought of cutting
 the color picker loose from mergzxing and offering it separately.
 

I think given it is a feature that it's not that hard to roll your own with 
then if you need any custom UI it's simpler to go that way. I've put it up as a 
separate purchase for US$9.95 at http://goulding.ws/merganswercolor

Cheers

Monte

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


[ANN] mergZXing 1.0.1 - iOS barcode reader external and mergAnswerColor

2012-01-11 Thread Monte Goulding
Hi Everyone

Just a small documentation bug. People that have already purchased should have 
received a notification already. I have also included mergBanner an iAd 
external (which won't be sold separately) to show the banner at the bottom of 
the screen as a bonus when purchasing mergZXing. mergAnswerColor is now being 
sold separately for US$9.95 in addition to being a bonus when purchasing 
mergZXing.

Early bird pricing is still US$49 until further notice.

--
Cheers

Monte Goulding
M E R Goulding - Software Development Services
___
use-livecode mailing list
use-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: [ANN] animationEngine 5 Manuel en français

2012-01-11 Thread René Micout
Hello Malte,
I think French readers of this list understand also English !
But if the French message is not strictly correct, it is understandable !
;-)
René

Le 11 janv. 2012 à 23:07, Malte Brill a écrit :

 Bonjour à tous les utilisateurs français d'animationEngine!
 Heureusement René Micout traduit le manuel en français. Le lien est ici: 
 http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore René! 
 S'il vous plaît excuser mon mauvais français. Je n'ai Google translate prises 
 pour aider. J'espère que ce message a un sens. :-)
 
 Cordialement,
 
 Malte
 ___
 use-livecode mailing list
 use-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


Menu Builder

2012-01-11 Thread Pete
After a gap of many months since last using the Menu Builder, I'm back to
trying it again with not very auspicious results.

In the first screen, I click the New button and on the next screen, give
the menu a name and leave the give the menubar a name and uncheck the box
move objects down to accommodate menu bar  (I want the menu to be in the
OS X menu bar).

As soon as I click OK, all the controls on the open stack move up, some of
them to be underneath the window title bar.  Uhhh, I asked for them not to
be moved down, not to be moved up!

Last time I used the menu builder, I had major problems - every time I
opened the stack, it's height increased by the height of the menu -
incrementally.  Never did get to the bottom of that, ended up setting the
stack height by script to work around it.

Is there another way to create OS X menu bar menus without using the menu
builder?


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


Re: Menu Builder

2012-01-11 Thread Pete
HI Mark,
I guess it's a case of once bitten, twice shy.  As mentioned, I had weird
problems trying to use it last time around and now I can't get past the
first screen without a problem so I just don't trust it.

I didn't uncheck the box, it was already unchecked.  I also tried checking
it, which resulted in all my controls being moved down, which I don't want
either.

I'm building menus that will be displayed in the OS X menu bar, not within
my stacks, so there is no need to move controls anywhere.

If there's a way to create these menus manually by creating a group, I'm
more than happy to do that to avoid the bugginess.  IS ther a write up on
that anywhere?

Pete

On Wed, Jan 11, 2012 at 4:57 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Pete,

 Why do you want a different way? The menu builder still is the easiest way
 to create a menu, even if it is unintuitive and buggy. Next time, just
 don't uncheck that checkbox :-)

 Surely, you can create a group, set the menubar of the stack to the name
 of that group and set the editmenus of your stack to true or false and
 adjust the locations of all other objects manually.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 Become our partner in sales http://qery.us/1bq Start selling Color
 Converter today. 20% commission!

 On 12 jan 2012, at 01:51, Pete wrote:

  After a gap of many months since last using the Menu Builder, I'm back to
  trying it again with not very auspicious results.
 
  In the first screen, I click the New button and on the next screen, give
  the menu a name and leave the give the menubar a name and uncheck the box
  move objects down to accommodate menu bar  (I want the menu to be in
 the
  OS X menu bar).
 
  As soon as I click OK, all the controls on the open stack move up, some
 of
  them to be underneath the window title bar.  Uhhh, I asked for them not
 to
  be moved down, not to be moved up!
 
  Last time I used the menu builder, I had major problems - every time I
  opened the stack, it's height increased by the height of the menu -
  incrementally.  Never did get to the bottom of that, ended up setting the
  stack height by script to work around it.
 
  Is there another way to create OS X menu bar menus without using the menu
  builder?
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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


SQL Date Formatting

2012-01-11 Thread Bob Sneidar
Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the 
dates as real dates, but mySQL formats them as -mm-dd. Livecode does no 
such thing and nothing I know how to do can get Livecode to work with dates in 
this format AS dates. 

It's no good for my present purposes to work with other formats. I query SQL 
and then drop the data into a datagrid with no custom formatting, and that is 
just the way it has to be. What I need is to tell Livecode to sue SLQ date 
formatting. I have no real hope, but if someone knows of a way to do that, I 
would appreciate it. 

I think what is really needed is a feature request for one more date format for 
the convert command: convert myDate to sqlDate. sigh

Bob
___
use-livecode mailing list
use-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: Menu Builder

2012-01-11 Thread Mark Schonewille
Hi Pete,

If I keep that darn checkbox unchecked and do check the checkbox Set as stack 
Menu bar, then all is fine and the controls don't move up or down (actually 
they do move down by the same amount of pixels the card moves up).

I don't know about a tutorial or something, but I rarely look at tutorials. 
There really isn't more to it than what I wrote in my previous e-mail, except 
that you need to make the group first and set its loc to 0,0 and then set the 
menubar of the stack and the editmenus. You also need to tweak the horizontal 
position and the text font and style to resemble the Windows menubar.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 12 jan 2012, at 02:18, Pete wrote:

 HI Mark,
 I guess it's a case of once bitten, twice shy.  As mentioned, I had weird
 problems trying to use it last time around and now I can't get past the
 first screen without a problem so I just don't trust it.
 
 I didn't uncheck the box, it was already unchecked.  I also tried checking
 it, which resulted in all my controls being moved down, which I don't want
 either.
 
 I'm building menus that will be displayed in the OS X menu bar, not within
 my stacks, so there is no need to move controls anywhere.
 
 If there's a way to create these menus manually by creating a group, I'm
 more than happy to do that to avoid the bugginess.  IS ther a write up on
 that anywhere?
 
 Pete


___
use-livecode mailing list
use-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: SQL Date Formatting

2012-01-11 Thread Mike Bonner
Can't try it but I believe you can do something like

select field1, field2, DATE_FORMAT(yourdatefield,%m/%d/%Y from 

On Wed, Jan 11, 2012 at 6:20 PM, Bob Sneidar b...@twft.com wrote:

 Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store
 the dates as real dates, but mySQL formats them as -mm-dd. Livecode
 does no such thing and nothing I know how to do can get Livecode to work
 with dates in this format AS dates.

 It's no good for my present purposes to work with other formats. I query
 SQL and then drop the data into a datagrid with no custom formatting, and
 that is just the way it has to be. What I need is to tell Livecode to sue
 SLQ date formatting. I have no real hope, but if someone knows of a way to
 do that, I would appreciate it.

 I think what is really needed is a feature request for one more date
 format for the convert command: convert myDate to sqlDate. sigh

 Bob
 ___
 use-livecode mailing list
 use-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: Menu Builder

2012-01-11 Thread Pete
Yes I just discovered that.  If that checkbox had been on the same screen
as the move controls checkbox, life would have been much simpler!  So I'm
now on the right track I think, but looks like I need to adjust some code
which resizes windows in some circumstances.
Pete

On Wed, Jan 11, 2012 at 5:28 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 If I keep that darn checkbox unchecked and do check the checkbox Set as
 stack Menu bar, then all is fine and the controls don't move up or down
 (actually they do move down by the same amount of pixels the card moves up).




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


Re: SQL Date Formatting

2012-01-11 Thread Warren Samples

On 01/11/2012 07:20 PM, Bob Sneidar wrote:

Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the 
dates as real dates, but mySQL formats them as -mm-dd. Livecode does no 
such thing and nothing I know how to do can get Livecode to work with dates in 
this format AS dates.

It's no good for my present purposes to work with other formats. I query SQL 
and then drop the data into a datagrid with no custom formatting, and that is 
just the way it has to be. What I need is to tell Livecode to sue SLQ date 
formatting. I have no real hope, but if someone knows of a way to do that, I 
would appreciate it.

I think what is really needed is a feature request for one more date format for the 
convert command: convert myDate to sqlDate.sigh

Bob


Is the problem getting them from Livecode to mySQL or what mySQL returns 
from select?


Can you set the date format in your select statement?

http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format

Warren

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


[ANN] Alpha Twitter Support

2012-01-11 Thread Andre Garzia
Folks,

I know this has been delayed forever but the time is upon us to have
Twitter-enabled apps. During the last conference, I demoed a very
simple twitter library but did not share it because it relied on some
command line tools that were only available on Mac OS X. It took me a
while to find the time and solution to create a cross-platform library
but I think I've made it.

It was my wish to polish, test and document it before releasing
anything but I know some people here need this stuff, so if you are
not afraid of bugs and diving into badly designed code, hop to
http://hg.andregarzia.com/livecode-socialsuite and download a fresh
copy of the repository. There will be three new files in it:

lib.aag.outh.livecode - a simple OAuth 1.0 library. Just enough to work.
lib.aag.twitter.livecode - a VERY ALPHA library for twitter. There is
enough code there to update the user status.
SimpleTweet.livecode - a simple example that posts to the user status.

I need to test this library. I also need to document it and make it
easier to use but that may take some time and I don't want to delay it
anymore. To use this library you will need to register at
http://dev.twitter.com to get your consumer key and secret. You will
need to know OAuth and Twitter API to use this library. I will make it
easier shortly but right now it is a very low level library (but hey,
it works!)

I only tested on the desktop but it should work with mobile too. This
library is different than the facebook library. The fb library has
some revBrowser/iphoneControl code in it to present the authorization
screens. The current OAuth and Twitter combination of libraries has no
such thing. You need to build your own browser window and pass the id
to the library. I may or may not implement automatic browser creation
but I thought it was best to release now than to wait for me to
implement everything.

Twitter API can answer in JSON and XML formats. You can use Mark Smith
libJSON or my libJSON (Marks library is better) or you can use XML and
be happy.

The OAuth library is FOSS under the terms of the BSD license, so you
can do whatever you want with it.

The Twitter library is dual licensed. It can be used under the terms
of GPLv2 or you can donate to me to have a commercial license to close
your source. More details at my page
http://andregarzia.com/page/socialsuite


So be happy with your tweets. The next library being implemented is
Dropbox, check this teaser: http://fon.nu/lc-dropbox

Cheers
andre

--
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
use-livecode mailing list
use-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: SQL Date Formatting

2012-01-11 Thread stephen barncard
Really, this is no big deal. You can either convert at the Livecode end, or
if you don't need to sort by seconds, you could just make the date field as
a plain text field.  Also consider storing time as seconds in the database,
which is sortable.

The second handler I found useful too.

function convertSQLTime pSQLtime
  -- converts from below format to seconds
  -- and DATEITEMS
  -- if date is bogus then this returns empty
  -- 2005-10-28 01:07:04
  -- * the year
  --  * the month number
  --  * the day of the month
  --  * the hour in 24-hour time
  --  * the minute
  --  * the second

  get word 1 of pSQLTime
  set the itemDelimiter to -
  put item 1 of it  comma\
   item 2 of it  comma\
   item 3 of it  comma\
  after tOut
  get word 2 of pSQLTime
  set the itemDelimiter to :
  put (item 1 of it)  comma\
   (item 2 of it)  comma\
   (item 3 of it)  comma\
   (5)\
  after tOut
  convert tOut to seconds
  set the itemDelimiter to comma

  return tOut
end convertSQLTime

function PHPDateTimeName pOtherTime,pNums
   -- get unique number string - put -1 into pNums
   -- pNums can be a number that can be the char position to start
truncation
   -- if pNums is empty then the PHP/sql formatted date is returned
   if pOtherTime is empty then put the long time into pOtherTime
   set the numberFormat to 00
   convert pOtherTime to dateitems -- 2005,10,9,17,50,43,1
   if pNums is not empty
   then
  get \
(item 1 of pOtherTime)+0  (item 2 of
pOtherTime)+0  (item 3 of pOtherTime)+0  \
(item 4 of pOtherTime)+0  (item 5 of
pOtherTime)+0  (item 6 of pOtherTime)+0
   else
  get \
(item 1 of pOtherTime)+0  -  (item 2 of
pOtherTime)+0  -  (item 3 of pOtherTime)+0  \
(item 4 of pOtherTime)+0  :  (item 5 of
pOtherTime)+0  :  (item 6 of pOtherTime)+0
   end if
   if pNums is a number then delete character pNums to -1 of it
   return it
end PHPDateTimeName



On 11 January 2012 17:20, Bob Sneidar b...@twft.com wrote:

 Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store
 the dates as real dates, but mySQL formats them as -mm-dd. Livecode
 does no such thing and nothing I know how to do can get Livecode to work
 with dates in this format AS dates.



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-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: SQL Date Formatting

2012-01-11 Thread Bob Sneidar
h... I get it. have SQL change the way IT looks at dates. Well that would 
work. Instead though I decided to bite the bullet and write two functions to 
convert to and from standard mySQL date format. Thanks for the info though I 
will probably use that elsewhere. 

Bob


On Jan 11, 2012, at 5:50 PM, Mike Bonner wrote:

 Can't try it but I believe you can do something like
 
 select field1, field2, DATE_FORMAT(yourdatefield,%m/%d/%Y from 
 
 On Wed, Jan 11, 2012 at 6:20 PM, Bob Sneidar b...@twft.com wrote:
 
 Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store
 the dates as real dates, but mySQL formats them as -mm-dd. Livecode
 does no such thing and nothing I know how to do can get Livecode to work
 with dates in this format AS dates.
 
 It's no good for my present purposes to work with other formats. I query
 SQL and then drop the data into a datagrid with no custom formatting, and
 that is just the way it has to be. What I need is to tell Livecode to sue
 SLQ date formatting. I have no real hope, but if someone knows of a way to
 do that, I would appreciate it.
 
 I think what is really needed is a feature request for one more date
 format for the convert command: convert myDate to sqlDate. sigh
 
 Bob
 ___
 use-livecode mailing list
 use-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: SQL Date Formatting

2012-01-11 Thread Bob Sneidar
I could massage the sql date format in my select statement, but I am trying to 
keep my select statements as simple as I can, so I have 2 functions that 
convert to and from the standard sql date format. 

Bob


On Jan 11, 2012, at 5:55 PM, Warren Samples wrote:

 On 01/11/2012 07:20 PM, Bob Sneidar wrote:
 Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the 
 dates as real dates, but mySQL formats them as -mm-dd. Livecode does no 
 such thing and nothing I know how to do can get Livecode to work with dates 
 in this format AS dates.
 
 It's no good for my present purposes to work with other formats. I query SQL 
 and then drop the data into a datagrid with no custom formatting, and that 
 is just the way it has to be. What I need is to tell Livecode to sue SLQ 
 date formatting. I have no real hope, but if someone knows of a way to do 
 that, I would appreciate it.
 
 I think what is really needed is a feature request for one more date format 
 for the convert command: convert myDate to sqlDate.sigh
 
 Bob
 
 Is the problem getting them from Livecode to mySQL or what mySQL returns from 
 select?
 
 Can you set the date format in your select statement?
 
 http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format
 
 Warren
 
 ___
 use-livecode mailing list
 use-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: SQL Date Formatting

2012-01-11 Thread Pete
Hi Bob,
I guess it depends on what you mean by real dates  SQL date fields are
pretty specific as to their format, that's why you give them a type of DATE
or DATETIME.  It's just a case of adjusting your SELECT statement to use
the functions that SQL provides to return the date in whatever format you
want.


In SQLite, SELECT strftime(DateField,'%m/%d/%Y') returns the date in US
format.

In mySQL, SELECT DATE_FORMAT(DateField,'%m/%d/%Y)

Or you can select the field as is and convert it in LC:

set the itemdelimiter to /
put item 2 of myDate  /  item 3 of myDate  /  item 1 of myDate


Pete

On Wed, Jan 11, 2012 at 5:20 PM, Bob Sneidar b...@twft.com wrote:

 Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store
 the dates as real dates, but mySQL formats them as -mm-dd. Livecode
 does no such thing and nothing I know how to do can get Livecode to work
 with dates in this format AS dates.

 It's no good for my present purposes to work with other formats. I query
 SQL and then drop the data into a datagrid with no custom formatting, and
 that is just the way it has to be. What I need is to tell Livecode to sue
 SLQ date formatting. I have no real hope, but if someone knows of a way to
 do that, I would appreciate it.

 I think what is really needed is a feature request for one more date
 format for the convert command: convert myDate to sqlDate. sigh

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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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


Date intersection revisited

2012-01-11 Thread Bob Sneidar
Hi all. A while ago someone asked how to phrase a query for date intersections. 
I have been struggling all day to come up with what is probably very simple 
logic for date intersections. For instance, I need to find all the reserved 
rooms whose dates fall within the selected dates of a new reservation. 

I came up with a way to do that. It's a bit more complicated than using the SQL 
between function because BETWEEN is inclusive, and if you think about it, it's 
fine if a new reservation falls on the departure day of an existing one. 

So given that startdate and enddate are SQL columns in a reservation database, 
and the literal dates are the new reservation start and end dates, I give you  
this where clause:

(startdate = 2012-1-11 AND startdate  2012-1-14) OR (enddate  
2012-1-11 AND enddate = 2012-1-14)

This in effect allows new reservations to begin on the day another ends, or end 
on the day another begins. I don't know why this kind of logic comes so hard 
for me sometimes. I have to draw pictures to sort it out. At any rate, if I can 
prevent someone else from having to go through the mental hoops I did, then I 
feel I have contributed. 

Bob


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

2012-01-11 Thread Pete
Well, I guess back to square 1.  What seemed to work (don't move controls,
set as Stack menubar) now results in controls being moved up again.
Pete

On Wed, Jan 11, 2012 at 5:53 PM, Pete p...@mollysrevenge.com wrote:

 Yes I just discovered that.  If that checkbox had been on the same screen
 as the move controls checkbox, life would have been much simpler!  So I'm
 now on the right track I think, but looks like I need to adjust some code
 which resizes windows in some circumstances.
  Pete


 On Wed, Jan 11, 2012 at 5:28 PM, Mark Schonewille 
 m.schonewi...@economy-x-talk.com wrote:

 If I keep that darn checkbox unchecked and do check the checkbox Set as
 stack Menu bar, then all is fine and the controls don't move up or down
 (actually they do move down by the same amount of pixels the card moves up).




 --
 Pete
 Molly's Revenge http://www.mollysrevenge.com





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


Re: Menu Builder

2012-01-11 Thread Bob Sneidar
What you can do is create a new stack, build your menu there, copy the text of 
the button it creates, then build on the fly when you open your stack. I think. 
I'm a little fuzzy about that. :-)

Bob


On Jan 11, 2012, at 4:51 PM, Pete wrote:

 After a gap of many months since last using the Menu Builder, I'm back to
 trying it again with not very auspicious results.
 
 In the first screen, I click the New button and on the next screen, give
 the menu a name and leave the give the menubar a name and uncheck the box
 move objects down to accommodate menu bar  (I want the menu to be in the
 OS X menu bar).
 
 As soon as I click OK, all the controls on the open stack move up, some of
 them to be underneath the window title bar.  Uhhh, I asked for them not to
 be moved down, not to be moved up!
 
 Last time I used the menu builder, I had major problems - every time I
 opened the stack, it's height increased by the height of the menu -
 incrementally.  Never did get to the bottom of that, ended up setting the
 stack height by script to work around it.
 
 Is there another way to create OS X menu bar menus without using the menu
 builder?
 
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Date intersection revisited

2012-01-11 Thread Pete
You can do this with sql functions too Bob.  The sqlite date function has a
modifier parameter, eg date(2011-1-11,'+ 1 DAY).  MYSQL has the DATE_ADD
and DATE_SUB functions which do the same thing.
Pete

On Wed, Jan 11, 2012 at 6:55 PM, Bob Sneidar b...@twft.com wrote:

 Hi all. A while ago someone asked how to phrase a query for date
 intersections. I have been struggling all day to come up with what is
 probably very simple logic for date intersections. For instance, I need to
 find all the reserved rooms whose dates fall within the selected dates of a
 new reservation.

 I came up with a way to do that. It's a bit more complicated than using
 the SQL between function because BETWEEN is inclusive, and if you think
 about it, it's fine if a new reservation falls on the departure day of an
 existing one.

 So given that startdate and enddate are SQL columns in a reservation
 database, and the literal dates are the new reservation start and end
 dates, I give you  this where clause:

 (startdate = 2012-1-11 AND startdate  2012-1-14) OR (enddate 
 2012-1-11 AND enddate = 2012-1-14)

 This in effect allows new reservations to begin on the day another ends,
 or end on the day another begins. I don't know why this kind of logic comes
 so hard for me sometimes. I have to draw pictures to sort it out. At any
 rate, if I can prevent someone else from having to go through the mental
 hoops I did, then I feel I have contributed.

 Bob


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




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


Re: Menu Builder

2012-01-11 Thread J. Landman Gay

On 1/11/12 6:51 PM, Pete wrote:


In the first screen, I click the New button and on the next screen, give
the menu a name and leave the give the menubar a name and uncheck the box
move objects down to accommodate menu bar  (I want the menu to be in the
OS X menu bar).

As soon as I click OK, all the controls on the open stack move up, some of
them to be underneath the window title bar.  Uhhh, I asked for them not to
be moved down, not to be moved up!

Last time I used the menu builder, I had major problems - every time I
opened the stack, it's height increased by the height of the menu -
incrementally.  Never did get to the bottom of that, ended up setting the
stack height by script to work around it.

Is there another way to create OS X menu bar menus without using the menu
builder?


I find the Menu Builder to be the easiest way to build menus and I use 
it all the time. I don't find it buggy at all, I think of it as one of 
the most convenient features LiveCode offers. But you do need to 
understand how it works, or it will *appear* buggy. What you describe is 
exactly what is supposed to happen.


There's info on how LiveCode menus work here: 
http://www.hyperactivesw.com/mctutorial/rraboutMenus.html


What that mainly says is: to accomodate both Windows (where menus are on 
the card) and Mac (where menus are in the system menu bar,) LiveCode 
places your menu group at the top of the card and leaves it there on a 
Windows machine, or scrolls the card up and out of the way on a Mac. 
That places the top 26 pixels or so offscreen and out of sight on a Mac. 
It's a little like setting the scroll of the card to 26; the card top 
has moved up and out of the window bounds.


When adding a new menu, you want blank space at the top of the card to 
allow room for the menu group. If you didn't create your menus first, 
you may have other objects already in the way. If so, they need to move 
down to accomodate the new group. If that's the case, you do want to 
check the box that moves everything down. If you've left room for the 
group already, skip that checkbox. It's a one-time relocation and very 
convenient when you decide in the middle of a project that you need a 
menubar on a screen where there are already objects in the way. I used 
to use a custom script for that until the Menu Builder came along.


Whether or not you move your objects down, if the stack has the menu 
group assigned, the card will scroll upward on a Mac. All your objects 
will appear to move up when it does that. They haven't really moved; 
their locations are still the same. But now that the top of the card has 
moved out of view, the objects have moved along with it and appear to 
have changed positions. It's visual only.


Menu builder is convenient, not only because it can create menus 
quickly, but because it can enter all those tedious switch/case scripts 
automatically. All I have to do after that is go in and fill in the 
working parts. It also lays out menu items in the right order so that 
Preferences and Help manage to show up in the right places cross-platform.


You can toggle the scroll on and off on a Mac by toggling preview as 
menu bar. This just sets the editmenus property of the stack to true, 
which unscrolls the card. (I often just type the command into the 
message box.) Unscrolling the card brings the menu group into view, 
showing it as it will look on Windows, and making it easy to select and 
edit button scripts or lay out other objects. When I'm done, I set the 
editmenus to false again and the menu bar scrolls back up out of the way 
and appears in the system menu.


Tip: if you add a menu group late in development and need to move 
objects down to accomodate it, some objects may get pushed off the 
bottom of the card. You'll need to increase the stack height to adjust 
for the new locations.


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

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


Re: Menu Builder

2012-01-11 Thread J. Landman Gay


As soon as I click OK, all the controls on the open stack move up, some of
them to be underneath the window title bar.  Uhhh, I asked for them not to
be moved down, not to be moved up!


Oh, forgot: you've probably designed your card with space at the top 
that you want to preserve. If so, then you do want to check the move 
everything down checkbox, so that when the card scrolls back up your 
objects will appear to be in the same relative positions as you 
originally had them. Make your stack 26 pixels taller to accomodate the 
new object locations.


There's another trick if you don't want to use the menu builder. You can 
create a menu group and just hide it. It will still show in the system 
menu if the group is assigned as the stack's menu bar, but the scroll 
won't happen if the group is hidden. You'd need to script a command on 
openstack that checks the platform and shows the group if you plan to 
run the stack on Windows.


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

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


Re: Menu Builder

2012-01-11 Thread Joe Lewis Wilkins
Jacqi,

Your explanation should appear on the Menu Builder Dialog from a Help Button 
thereon. It would save a lot of newbies gobs of hair follicles. I don't recall 
how many hours I've wasted coming to terms with these issues; in some instances 
scraping a project and starting all over again. Of course that happens from 
time to time anyway; and it's usually a good thing. (smile)

Joe Wilkins

On Jan 11, 2012, at 8:17 PM, J. Landman Gay wrote:

 On 1/11/12 6:51 PM, Pete wrote:
 
 In the first screen, I click the New button and on the next screen, give
 the menu a name and leave the give the menubar a name and uncheck the box
 move objects down to accommodate menu bar  (I want the menu to be in the
 OS X menu bar).
 
 As soon as I click OK, all the controls on the open stack move up, some of
 them to be underneath the window title bar.  Uhhh, I asked for them not to
 be moved down, not to be moved up!
 
 Last time I used the menu builder, I had major problems - every time I
 opened the stack, it's height increased by the height of the menu -
 incrementally.  Never did get to the bottom of that, ended up setting the
 stack height by script to work around it.
 
 Is there another way to create OS X menu bar menus without using the menu
 builder?
 
 I find the Menu Builder to be the easiest way to build menus and I use it all 
 the time. I don't find it buggy at all, I think of it as one of the most 
 convenient features LiveCode offers. But you do need to understand how it 
 works, or it will *appear* buggy. What you describe is exactly what is 
 supposed to happen.
 
 There's info on how LiveCode menus work here: 
 http://www.hyperactivesw.com/mctutorial/rraboutMenus.html
 
 What that mainly says is: to accomodate both Windows (where menus are on the 
 card) and Mac (where menus are in the system menu bar,) LiveCode places your 
 menu group at the top of the card and leaves it there on a Windows machine, 
 or scrolls the card up and out of the way on a Mac. That places the top 26 
 pixels or so offscreen and out of sight on a Mac. It's a little like setting 
 the scroll of the card to 26; the card top has moved up and out of the window 
 bounds.
 
 When adding a new menu, you want blank space at the top of the card to allow 
 room for the menu group. If you didn't create your menus first, you may have 
 other objects already in the way. If so, they need to move down to accomodate 
 the new group. If that's the case, you do want to check the box that moves 
 everything down. If you've left room for the group already, skip that 
 checkbox. It's a one-time relocation and very convenient when you decide in 
 the middle of a project that you need a menubar on a screen where there are 
 already objects in the way. I used to use a custom script for that until the 
 Menu Builder came along.
 
 Whether or not you move your objects down, if the stack has the menu group 
 assigned, the card will scroll upward on a Mac. All your objects will appear 
 to move up when it does that. They haven't really moved; their locations are 
 still the same. But now that the top of the card has moved out of view, the 
 objects have moved along with it and appear to have changed positions. It's 
 visual only.
 
 Menu builder is convenient, not only because it can create menus quickly, but 
 because it can enter all those tedious switch/case scripts automatically. All 
 I have to do after that is go in and fill in the working parts. It also lays 
 out menu items in the right order so that Preferences and Help manage to show 
 up in the right places cross-platform.
 
 You can toggle the scroll on and off on a Mac by toggling preview as menu 
 bar. This just sets the editmenus property of the stack to true, which 
 unscrolls the card. (I often just type the command into the message box.) 
 Unscrolling the card brings the menu group into view, showing it as it will 
 look on Windows, and making it easy to select and edit button scripts or lay 
 out other objects. When I'm done, I set the editmenus to false again and the 
 menu bar scrolls back up out of the way and appears in the system menu.
 
 Tip: if you add a menu group late in development and need to move objects 
 down to accomodate it, some objects may get pushed off the bottom of the 
 card. You'll need to increase the stack height to adjust for the new 
 locations.
 
 -- 
 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:

Re: Menu Builder

2012-01-11 Thread J. Landman Gay

On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote:

Jacqi,

Your explanation should appear on the Menu Builder Dialog from a
Help Button thereon. It would save a lot of newbies gobs of hair
follicles.


Thanks. I thought it was in the User Guide but I just looked and 
couldn't find much. Once you get it, everything falls into place. But 
you're right there needs to be something more specific in the docs about 
the overall idea.


There's a whole scripting conference stack just about menus too:
http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/

Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to 
link to that in my other post.


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

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


Re: Menu Builder

2012-01-11 Thread Pete
Thanks Jacque.  Things appear to be working now but I have no idea what
combination of things I did to make it happen, and I hate that.

Your explanation and the links helped explain it all.  As Joe said, if only
this was in the User Guide, there'd be a lot less nervousness about using
the menu builder.  I'll go back to Mark's original comment in this thread -
maybe it's not buggy once you understand it but it's definitely
unintuitive.

I have one remaining issue to deal with and that has to do with some window
resizing I do which now will have to take account of the menu group,
probably differently on Windows than on OS X.  Fortunately, the code to do
the resizing is all in one handler so once I figure out whether to add the
26 pixels or subtract them, all should be OK.

Pete


On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote:

 Jacqi,

 Your explanation should appear on the Menu Builder Dialog from a
 Help Button thereon. It would save a lot of newbies gobs of hair
 follicles.


 Thanks. I thought it was in the User Guide but I just looked and couldn't
 find much. Once you get it, everything falls into place. But you're right
 there needs to be something more specific in the docs about the overall
 idea.

 There's a whole scripting conference stack just about menus too:
 http://www.runrev.com/**developers/lessons-and-**
 tutorials/tutorials/online-**scripting-conferences/http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/
 

 Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link
 to that in my other post.


 --
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




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


Re: Menu Builder

2012-01-11 Thread Joe Lewis Wilkins
All of these suggestions are well and good; but, on my most recent project, I 
bi-passed the entire problem by creating my own menus on the cards for both the 
Mac and Windows versions of a much larger size so that I don't have to deal 
with the minuscule fonts normally used for Windows apps. This way they appear 
in 18 pt. Arial for both versions - and I can read them. It was a lot of work, 
but with my poor vision it was well worth it, and those I've shown it to agree 
with me. Personally, I'll never do things any other way now that I've gone this 
route. Anyone who would like a screen shot off-line just let me know. I haven't 
kept up with the web development, so I've yet to learn how to upload stuff so 
that others may download it.

Joe Wilkins

On Jan 11, 2012, at 9:06 PM, J. Landman Gay wrote:

 On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote:
 Jacqi,
 
 Your explanation should appear on the Menu Builder Dialog from a
 Help Button thereon. It would save a lot of newbies gobs of hair
 follicles.
 
 Thanks. I thought it was in the User Guide but I just looked and couldn't 
 find much. Once you get it, everything falls into place. But you're right 
 there needs to be something more specific in the docs about the overall idea.
 
 There's a whole scripting conference stack just about menus too:
 http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/
 
 Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link to 
 that in my other post.
 
 -- 
 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: Menu Builder

2012-01-11 Thread Pete
OK, now on to the next step.  Menus working fine, all scripted.

Now I want to add a menu item to the File menu in certain circumstances.  I
coded a mouseDown handler in the button named File in my menu group to do
this.  It gets the text of the menu, adds the text for the new menu item to
the end and puts it back into the menu's text property. New text never
appears.  Set a breakpoint at the start of the handler so I can check my
logic, even inserted a breakpoint command.  Never breaks.  The menuPick is
right there in the same script and it works fine so why doesn't mouseDown
get handled?

On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote:

 Jacqi,

 Your explanation should appear on the Menu Builder Dialog from a
 Help Button thereon. It would save a lot of newbies gobs of hair
 follicles.


 Thanks. I thought it was in the User Guide but I just looked and couldn't
 find much. Once you get it, everything falls into place. But you're right
 there needs to be something more specific in the docs about the overall
 idea.

 There's a whole scripting conference stack just about menus too:
 http://www.runrev.com/**developers/lessons-and-**
 tutorials/tutorials/online-**scripting-conferences/http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/
 

 Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link
 to that in my other post.


 --
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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