Re: .irev code editor?

2011-10-25 Thread glpunzi
I don't know if we will buy on-rev subscription. Seems very expensive compared 
to other hostings offers AFAIK.

Probably could be interesting a plugin for vim, or build an editor from LC as 
an experiment I will retake this when needed.

Thanks.

Enviado desde mi dispositivo BlackBerry® de Orange.

-Original Message-
From: stephen barncard 
Sender: use-livecode-boun...@lists.runrev.com
Date: Mon, 24 Oct 2011 14:04:58 
To: How to use LiveCode
Reply-To: How to use LiveCode 
Subject: Re: .irev code editor?

Notepad ?? blech.

There is an On-Rev editor stack available to those that subscribe to the
On-Rev service, which includes a nice debugging feature. This stack is not
made available to use who bought the Livecode server executable for our own
choice of web hosts however, but you said you got On-Rev in a package.

A quick web search located several Windows-based editors, like this one:

http://www.sublimetext.com/

Make sure that the "Syntax Highlighting" is customizable. Then you can
either find a plugin or make your own that will make your Livecode text
indent and colorize like you want (including 'chalkboard' ).

On the mac side there is a plethora of great text editors that will 'just
work' , including Textmate  (using a good language
plugin written by Ralf Bitter, creator of RevIgniter, available at the
RevIgniter website.)

There is also Coda  on the mac, and there
is a SubEthaEdit
plugin  that I hacked
from a Director plugin that should do the code highlighting, but it needs
some work and a keyword update. Scroll down to "Runtime Revolution"

All of the editors on the Mac have a feature where you can click on a chosen
document in your favorite FTP program, launch your favorite editor for that
file type with that document, edit that document and SAVE it back to the
server. A real short round trip, much faster than the "comparing files with
a local shadow file and upload" method.

I don't know if that feature is available on Windows.

On 24 October 2011 12:50, Giuseppe  wrote:

> Hi all,
>
> I'm looking all the documentation to be ready once we buy LiveCode
> Complete, but theres something I can't find.
>
> There aren't any "specialized" editor to edit Livecode .irev files for
> server? (out of on-rev)
>
> We have to "die" in notepad++ or something similar?
>
> Regards.
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-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] John McCarthy has Died...

2011-10-25 Thread René Micout
Goodbye John...
For you it is omega pruning...
:-(

Le 25 oct. 2011 à 01:32, Andre Garzia a écrit :

> Folks,
> 
> All my heroes are dieing. Steve Jobs and Dennis Ritchie passed away, now
> John McCarthy has passed away as well... ARGH
> 
> (GOODBYE '(JOHN MCCARTHY))
> 
> :-(
> 
> -- 
> 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: Duplicate Control IDs

2011-10-25 Thread Claudi Cornaz
Hi Pete,

This has happened to me several times, with a couple of different stacks.
I put it already twice on this list. Last time was in november 2010.
 
I found a routine in the IDE with a comment about the engine returning a id of 
zero sometimes. 
I found the script it in the button "revIDE" of the revLibrary stack and it's 
called "addObject" 

private command addObject pObject, pObeyDontSearch, @rList, pScriptsOnly
  if word 1 of the name of pObject is among the words of "card group field" and 
pObeyDontSearch and the dontSearch of pObject then
 return "dontSearch set on object"
  end if

  local tId
  put the long id of pObject into tId
  if word 3 of tId is 0 then
 # Due to an engine bug, some objects can have IDs of zero. For now, we 
ignore this...
 --breakpoint
  end if


Unfortunatly I haven't been able to isolate the bug in a repeatable simple way.

Because of this bug I changed my programming habbits when cloning or copying 
controls to a grp.
First I get the number of controls in the grp. Then I do the copying and then 
reference the new control by number to set it's name so I can reference the 
control afterwards by long name like:
.  
put the number of controls of grp "" into tCount
copy control "yyy" to grp "xxx"
set the name of control tCount of grp "xxx" to "myNewControl"

This way even if the conrol has a id of zero I can refence the control by long 
name.
It's a drag and defenitly should not happen. It has happened to me, and bite 
me, with versions of runrev 3.x and upwards.

The nasty bit I noticed was that using the it variable (which holds the long id 
of the newly created control) 
after the copying didn't produce a error when it contained the long id of a 
control with a id of zero.
It just screwed things up.

I sure hope, now somebody else got the same problem, this get's finaly solved.

All the best
   Claudi


On 24 okt 2011, at 19:45, Pete wrote:

> I have run into a weird situation that ends up with duplicate control IDs on
> a card which I thought couldn't happen.
> 
> The scenario is that I copy a group containing two field controls from one
> stack to a group in another stack.  After copying, the two field controls
> both have an ID of zero!  Needless to say, this plays havoc with anything I
> do that tries to access the fields.
> 
> I have worked around the problem by creating a new group, then copying the
> two fields individually from the source group to the new one and that works
> fine.
> 
> Anyone ever come across this before?
> 
> 
> Pete
> Molly's Revenge 
> ___
> use-livecode mailing list
> use-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] John McCarthy has Died...

2011-10-25 Thread Andre Garzia
On Tue, Oct 25, 2011 at 6:57 AM, René Micout wrote:

> Goodbye John...
> For you it is omega pruning...
> :-(
>

Can we say it is a closure



>
> Le 25 oct. 2011 à 01:32, Andre Garzia a écrit :
>
> > Folks,
> >
> > All my heroes are dieing. Steve Jobs and Dennis Ritchie passed away, now
> > John McCarthy has passed away as well... ARGH
> >
> > (GOODBYE '(JOHN MCCARTHY))
> >
> > :-(
> >
> > --
> > 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
>



-- 
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: Runrev site still not 100%

2011-10-25 Thread Roger Eller
On Tue, Oct 25, 2011 at 12:17 AM, J. Landman Gay wrote:

> On 10/24/11 5:43 PM, David C. wrote:
>
>  I verified that the plugin seems to work using 64 bit Firefox&  Safari
>> 5.1.1 (7534.51.22) for Windows.
>> Does NOT work in Chrome (not supposed to yet I think).
>> Did NOT work using I.E. in either 32 or 64 bit mode.
>>
>
> Doesn't seem to work in 64-bit Firefox on Mac, or in Mac Safari. It does
> work if I restart Firefox in 32-bit mode. Safari doesn't offer me that
> option.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com


Show Safari in Finder.  Get info.  Check the 32-bit mode checkbox.  It
should be there at least in Snow Leopard, and Lion.

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


Re: Duplicate Control IDs

2011-10-25 Thread Trevor DeVore
On Mon, Oct 24, 2011 at 1:45 PM, Pete  wrote:

> I have run into a weird situation that ends up with duplicate control IDs
> on
> a card which I thought couldn't happen.
>
> The scenario is that I copy a group containing two field controls from one
> stack to a group in another stack.  After copying, the two field controls
> both have an ID of zero!  Needless to say, this plays havoc with anything I
> do that tries to access the fields.
>

Are you using 4.6.4? Release notes in 4.6.4 say the following bug was fixed:

"Copying group to non-current card causes new group's controls to have id of
0 until that card is opened"

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Confused again - JUST upgraded to 5.0 and now this . . .

2011-10-25 Thread Bob Sneidar
Yeah that threw me too, but since I have a license that goes into 2014, I 
realized it was a faux pas. I never click the Buy button if I already bought 
something. 

Bob


On Oct 24, 2011, at 7:10 PM, Admin wrote:

> 
> 
> Here we go. 
> 
> It seems Runrev wants more of my money. 
> 
> I upgraded
> to 5.0 and they offered me a very good deal, so I took it. 
> 
> However,
> now (1 day later) I get a message (from some kind of small app loaded
> into my startup) saying that my version of LiveCode 5.0 is obsolete (it
> literally said that) and would I like to upgrade to 5.0.1xxx??? 
> 
> I
> click the link and they sent me to the developer's program purchase page
> - for $199 per year. Not a huge sum of money but like many of you, money
> is getting harder and harder to come by. 
> 
> Not to sound stupid or
> ungrateful, but does this mean I will not be able to get updates until a
> stable release umpteen months from now while people who spend $200 get
> minute by minute updates? 
> 
> Sheesh. A fool and his money soon do part.
> 
> 
> Mike 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Runrev site still not 100%

2011-10-25 Thread J. Landman Gay

On 10/25/11 6:44 AM, Roger Eller wrote:



Show Safari in Finder.  Get info.  Check the 32-bit mode checkbox.  It
should be there at least in Snow Leopard, and Lion.


Right, I thought of that after I posted. Haven't had time to check if it 
works though.


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


Working with tab data and utf-8

2011-10-25 Thread Giuseppe

Hi all,

I'm having a little problem I don't understand.

With this code
   put "SELECT * from empresas WHERE nif = '" & pID & "'" into theSQL
   put revDataFromQuery(tab, cr, sDatabaseID, theSQL) into theData

I get this in a variable theData

2123456789Empresa 2Empresa 2Dirección 2Mucia
Murcia30001España868987654868987654


now, I need the second value. How can I get it?

I tried with
   set the text of field "cif" of group "controles empresa" to the 
second column of theData


But I get a syntax Error.

Another problem I have is with ¿utf8?

In database, the fifth column with "Dirección 2" in database is 
"Dirección 2"


Regards.

___
use-livecode mailing list
use-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: Runrev site still not 100%

2011-10-25 Thread Mike Felker
I'm on the PC. 

Mike

Sent from my iPad

On Oct 25, 2011, at 12:32 PM, "J. Landman Gay"  wrote:

> On 10/25/11 6:44 AM, Roger Eller wrote:
> 
>> 
>> Show Safari in Finder.  Get info.  Check the 32-bit mode checkbox.  It
>> should be there at least in Snow Leopard, and Lion.
> 
> Right, I thought of that after I posted. Haven't had time to check if it 
> works though.
> 
> -- 
> 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: Working with tab data and utf-8

2011-10-25 Thread Klaus on-rev
Buonasera Giuseppe,

Am 25.10.2011 um 18:37 schrieb Giuseppe:

> Hi all,
> 
> I'm having a little problem I don't understand.
> 
> With this code
>   put "SELECT * from empresas WHERE nif = '" & pID & "'" into theSQL
>   put revDataFromQuery(tab, cr, sDatabaseID, theSQL) into theData
> I get this in a variable theData
> 2123456789Empresa 2Empresa 2Dirección 2MuciaMurcia   
>  30001España868987654868987654
> now, I need the second value. How can I get it?
...
set itemdel to TAB
put item 2 of theData into YouFavouriteVariable ## :-)
...

> I tried with
>   set the text of field "cif" of group "controles empresa" to the second 
> column of theData
> But I get a syntax Error.
> Another problem I have is with ¿utf8?
> In database, the fifth column with "Dirección 2" in database is "Dirección 2"

Sorry, no idea about UTF stuff...

> Regards.

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: Working with tab data and utf-8

2011-10-25 Thread Devin Asay

On Oct 25, 2011, at 10:37 AM, Giuseppe wrote:

> Hi all,
> 
> I'm having a little problem I don't understand.
> 
> With this code
>   put "SELECT * from empresas WHERE nif = '" & pID & "'" into theSQL
>   put revDataFromQuery(tab, cr, sDatabaseID, theSQL) into theData
> 
> I get this in a variable theData
> 
> 2123456789Empresa 2Empresa 2Dirección 2MuciaMurcia   
>  30001España868987654868987654
> 
> now, I need the second value. How can I get it?

set the itemDelimiter to tab
put item 2 of theData into fld "cif"

> I tried with
>   set the text of field "cif" of group "controles empresa" to the second 
> column of theData
> 
> But I get a syntax Error.
> 
> Another problem I have is with ¿utf8?
> 
> In database, the fifth column with "Dirección 2" in database is "Dirección 2"

You have to encode it as unicode:

set the unicodeText of fld "myFld" to uniencode(item 5 of theData,"UTF8")


Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
use-livecode mailing list
use-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: Working with tab data and utf-8

2011-10-25 Thread Mark Schonewille
Hi Giuseppe,

For plain text, you can use:

set the itemDel to tab
put item 2 of theData into field "cif" of group "controles empresa"

I'm not sure that the UTF8 returned by MySQL is read correctly by LiveCode. If 
LiveCode reads it correctly, you can do:

set the unicodeText of fld "cif" of grp "controles empresa" to \
uniEncode(item 2 of theData,"UTF8")

but if it isn't then you might need to make sure that MySQL returns plain text, 
by changing the encoding of your entire database.

--
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/16r Start selling Color Converter 
today. 20% commission!

On 25 okt 2011, at 18:37, Giuseppe wrote:

> Hi all,
> 
> I'm having a little problem I don't understand.
> 
> With this code
>   put "SELECT * from empresas WHERE nif = '" & pID & "'" into theSQL
>   put revDataFromQuery(tab, cr, sDatabaseID, theSQL) into theData
> 
> I get this in a variable theData
> 
> 2123456789Empresa 2Empresa 2Dirección 2MuciaMurcia   
>  30001España868987654868987654
> 
> now, I need the second value. How can I get it?
> 
> I tried with
>   set the text of field "cif" of group "controles empresa" to the second 
> column of theData
> 
> But I get a syntax Error.
> 
> Another problem I have is with ¿utf8?
> 
> In database, the fifth column with "Dirección 2" in database is "Dirección 2"
> 
> Regards.


___
use-livecode mailing list
use-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: Working with tab data and utf-8

2011-10-25 Thread Bob Sneidar
There have been quite a bit of posts in the past about storing data in 
non-english languages that use extended character sets. One solution is to 
store the HTMLtext of a field, and set the contents of a field to the results 
from a query. Not sure if that will work for you. Another is to use a character 
set encoding in your SQL tables that will accommodate the language you are 
storing. I do not have a lot of experience in the matter, but I will bet that a 
search of the list archives will turn up you solution pretty quickly. 

Bob


On Oct 25, 2011, at 9:37 AM, Giuseppe wrote:

> Hi all,
> 
> I'm having a little problem I don't understand.
> 
> With this code
>   put "SELECT * from empresas WHERE nif = '" & pID & "'" into theSQL
>   put revDataFromQuery(tab, cr, sDatabaseID, theSQL) into theData
> 
> I get this in a variable theData
> 
> 2123456789Empresa 2Empresa 2Dirección 2MuciaMurcia   
>  30001España868987654868987654
> 
> now, I need the second value. How can I get it?
> 
> I tried with
>   set the text of field "cif" of group "controles empresa" to the second 
> column of theData
> 
> But I get a syntax Error.
> 
> Another problem I have is with ¿utf8?
> 
> In database, the fifth column with "Dirección 2" in database is "Dirección 2"
> 
> Regards.
> 
> ___
> use-livecode mailing list
> use-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


Limiting field entry to plain text

2011-10-25 Thread John Brozycki
Hi all,

I have an input field that accepts URLs.  If a user copies a URL from an email 
or a website and pastes it, it is pasted in HTML format.  I only want the field 
to be plain text.  I can set the font and size, but it seems like fields always 
exist with (plain)text and htmltext states and LiveCode automatically accepts 
htmltext when it's entered.  Is there a setting to make a field ONLY plaintext, 
even if a user copies and pastes a URL from an email or browser?

My current workaround is to trap the paste function for the field, then paste 
and convert it, which happens instantaneously from a user standpoint:

on pasteKey
   paste
   set the htmltext of field "URLField" to the text of field "URLField"
end pasteKey

So, this works, but I was wondering if there is a way to limit a field to only 
plaintext so I wouldn't have to do this.  Any recommendations appreciated.

Thanks,
John
___
use-livecode mailing list
use-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] Interesting Read On Tech In Classrooms vs None

2011-10-25 Thread Jeff Reynolds
having run a high school computer lab and taught multimedia there its  
really true that they are oversold and underused. it takes a lot of  
creativity and flexibility to find when and where you get a hight bang  
for the buck to use computers in the classroom, otherwise you are just  
spending a lot of time and money that yields negative learning  
returns... i do fear taking the other extreme can be just as  
problematic.


its the content, stupid was my old motto. folks get wrapped up in to  
the tech use/process and forget that its sposta be about the learning  
unless you are in a specialized tech class. for some things you can do  
some wonderfully engaging things with computers and tech in the  
classroom, but its really limited in its scope and requires resources,  
planning, and experience to do it for a positive educational gain. was  
actually a hard concept to get across to some teachers and made some  
battles, but the shining examples eventually won them over to doing  
more planning and limits on how/when the computers were used. others  
hated all technology and it took a time and work to show them some  
places where it could really help.


its like most things the simple rules of, everything in moderation;  
right tool, right task; there is no magic bullet /there is no free  
lunch; tend to be such good guides.


so much of this stuff gets jammed into education by powers above. in  
the late 90s i gave a presentation to the heads of all the bay bells  
about interactive multimedia education. they were all hot with the  
roll out of interactive services via their new systems they thought  
that they could make millions by delivering/selling educational  
materials via tv/computer. i showed them really cool things we had  
done that were very successful, and they were really drooling, but i  
left the last third of the talk to interactively discuss with them the  
other shoe(s) to drop. first these were in very specific, cherry  
picked places where technology really worked great and that was not  
true of the vast majority of things to be taught/exhibited, then the  
cost to develop content to this cool interactive level (jaws dropped).  
then finally i had them estimate how much they spent on educational  
materials themselves (id say most of these guys were in the 7-8 figure  
range of income) and it was pretty pathetically small. i then  
contrasted ok you make over a million dollars a year what do you think  
someone making $40k will spend. big silence. i told them these were  
not a deal breakers, but just moderators and that they needed to  
choose wisely where and when technology should be inserted into  
education to be successful. it was interesting chatting with them over  
the rest of the weekend event as many admitted they were ready to just  
try and jam this down the tubes w/o ever thinking about these things.  
was an eye opener for me at how things were done at that level too...


cheers

jeff

On Oct 25, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com  
wrote:



This book is about 10 years old but is still a sobering read:

Larry Cuban
Oversold and Underused: Computers in the Classroom

https://docs.google.com/viewer?url=http://www.hull.ac.uk/php/edskas/Cuban%2520article%2520-%2520oversold.pdf&pli=1

I think I also recently read that some Maine school district that
decided to buy an iPad for every one of its KINDERGARTENERS is the  
same

that previously bought iBooks for an older grade despite no evidence
showing that the iBooks improved student performance.

Judy


___
use-livecode mailing list
use-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: Limiting field entry to plain text

2011-10-25 Thread Terry Judd

On 26/10/2011, at 05:51 AM, John Brozycki wrote:

Hi all,

I have an input field that accepts URLs.  If a user copies a URL from an email 
or a website and pastes it, it is pasted in HTML format.  I only want the field 
to be plain text.  I can set the font and size, but it seems like fields always 
exist with (plain)text and htmltext states and LiveCode automatically accepts 
htmltext when it's entered.  Is there a setting to make a field ONLY plaintext, 
even if a user copies and pastes a URL from an email or browser?

My current workaround is to trap the paste function for the field, then paste 
and convert it, which happens instantaneously from a user standpoint:

on pasteKey
  paste
  set the htmltext of field "URLField" to the text of field "URLField"
end pasteKey

So, this works, but I was wondering if there is a way to limit a field to only 
plaintext so I wouldn't have to do this.  Any recommendations appreciated.

Much of a muchness, but you could try clearing the clipboardData["html"] before 
you paste in your pasteKey handler. That way you should just be pasting plain 
text.

Terry...


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


Export and Import SQLite data from LC Project?

2011-10-25 Thread John Patten
Hi All…

Is it possible to export data from SQLite database, save it as a file, and then 
import it back into the same database?

I'm looking for a way to allow users of a LC project to save out their data in 
the SQLite database and then sneaker-net it on another machine using the same 
LC application and import into that app's SQLite database. 

Is there some SQLite statement that creates a query that I then can have LC 
save out as a file, and then do the reverse, and import it and run the query on 
the second machine?

Thank you!

John Patten
SUSD
___
use-livecode mailing list
use-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: Export and Import SQLite data from LC Project?

2011-10-25 Thread Mark Schonewille
Hi John,

Can't you transfer the entire database file? If not, you can just do a dump and 
import the resulting file or do a query and save the data to a text file, which 
you import the usual way.

--
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/16r Start selling Color Converter 
today. 20% commission!

On 25 okt 2011, at 21:27, John Patten wrote:

> Hi All…
> 
> Is it possible to export data from SQLite database, save it as a file, and 
> then import it back into the same database?
> 
> I'm looking for a way to allow users of a LC project to save out their data 
> in the SQLite database and then sneaker-net it on another machine using the 
> same LC application and import into that app's SQLite database. 
> 
> Is there some SQLite statement that creates a query that I then can have LC 
> save out as a file, and then do the reverse, and import it and run the query 
> on the second machine?
> 
> Thank you!
> 
> John Patten
> SUSD


___
use-livecode mailing list
use-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] Interesting Read On Tech In Classrooms vs None

2011-10-25 Thread John Patten
The NY Times has a whole series of articles on just this topic, "Grading the 
Digital School' , 
http://www.nytimes.com/2011/09/04/technology/technology-in-schools-faces-questions-on-value.html?pagewanted=all
  This latest one on Waldorf schools falls along these lines. 

This has been a pretty active discussion in the social neighborhoods I inhabit. 
 There are all kinds of pro and con conversations and links, for example,on the 
Waldorf schools like this one being passed around:  
http://www.waldorfcritics.org/active/articles/Staudenmaier.html  

Lots of people blogging about it…which in my opinion is a good thing, 
conversation, discussion, awareness, appreciation, opposition,  etc. etc.  

Cheers!

John Patten
SUSD


On Oct 24, 2011, at 11:58 PM, Scott Morrow wrote:

> Thanks for the link.  I'm always surprised the media doesn't talk this up 
> more.
> 
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   http://elementarysoftware.com/
> email sc...@elementarysoftware.com
> office 1-800-615-0867
> --
> 
> 
> 
> On Oct 24, 2011, at 7:09 AM, Scott Rossi wrote:
> 
>> "Some education experts say that the push to equip classrooms with computers
>> is unwarranted because studies do not clearly show that this leads to better
>> test scores or other measurable gains."
>> 
>> http://www.nytimes.com/2011/10/23/technology/at-waldorf-school-in-silicon-va
>> lley-technology-can-wait.html
>> 
>> 
>> Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX Design
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Limiting field entry to plain text

2011-10-25 Thread Klaus on-rev
Hi John,

Am 25.10.2011 um 21:05 schrieb Terry Judd:

> On 26/10/2011, at 05:51 AM, John Brozycki wrote:
> 
> Hi all,
> 
> I have an input field that accepts URLs.  If a user copies a URL from an 
> email or a website and pastes it, it is pasted in HTML format.  I only want 
> the field to be plain text.  I can set the font and size, but it seems like 
> fields always exist with (plain)text and htmltext states and LiveCode 
> automatically accepts htmltext when it's entered.  Is there a setting to make 
> a field ONLY plaintext, even if a user copies and pastes a URL from an email 
> or browser?
> My current workaround is to trap the paste function for the field, then paste 
> and convert it, which happens instantaneously from a user standpoint:
> 
> on pasteKey
>  paste
>  set the htmltext of field "URLField" to the text of field "URLField"
> end pasteKey

try this:
on pasteKey
 put the clipboarddata["text"] into fld "URLField"
end pasteKey

Check "clipboarddata" in the dictionary.

> So, this works, but I was wondering if there is a way to limit a field to 
> only plaintext so I wouldn't have to do this.  Any recommendations 
> appreciated.
> Much of a muchness, but you could try clearing the clipboardData["html"] 
> before you paste in your pasteKey handler. That way you should just be 
> pasting plain text.
> Terry...
> 
> Thanks,
> John

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


iOS External Speaker

2011-10-25 Thread Todd Geist
Hello,

I have a simple iOS built with LC 5.  The sound works on with the Headset
but not the external speakers.  Is there a trick to that?

Thanks

Todd

-- 
Todd Geist
geist interactive
(805) 419-9382
___
use-livecode mailing list
use-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: iOS External Speaker

2011-10-25 Thread Mark Schonewille
Ehm remove the headset? :-)

--
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/16r Start selling Color Converter 
today. 20% commission!

On 25 okt 2011, at 21:52, Todd Geist wrote:

> Hello,
> 
> I have a simple iOS built with LC 5.  The sound works on with the Headset
> but not the external speakers.  Is there a trick to that?
> 
> Thanks
> 
> Todd


___
use-livecode mailing list
use-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: Duplicate Control IDs

2011-10-25 Thread Pete
OK, so I guess it's not a simple as I thought.  I can find no trace of 4.6.4
in the Release Notes accessed from the LC help menu or on the runrev web
site.

Pete
Molly's Revenge 




On Tue, Oct 25, 2011 at 4:56 AM, Trevor DeVore wrote:

> On Mon, Oct 24, 2011 at 1:45 PM, Pete  wrote:
>
> > I have run into a weird situation that ends up with duplicate control IDs
> > on
> > a card which I thought couldn't happen.
> >
> > The scenario is that I copy a group containing two field controls from
> one
> > stack to a group in another stack.  After copying, the two field controls
> > both have an ID of zero!  Needless to say, this plays havoc with anything
> I
> > do that tries to access the fields.
> >
>
> Are you using 4.6.4? Release notes in 4.6.4 say the following bug was
> fixed:
>
> "Copying group to non-current card causes new group's controls to have id
> of
> 0 until that card is opened"
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> www.bluemangolearning.com-www.screensteps.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: iOS External Speaker

2011-10-25 Thread Todd Geist
:-)

That does not help

Todd

On Tue, Oct 25, 2011 at 1:01 PM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Ehm remove the headset? :-)
>
> --
> 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/16r Start selling Color
> Converter today. 20% commission!
>
> On 25 okt 2011, at 21:52, Todd Geist wrote:
>
> > Hello,
> >
> > I have a simple iOS built with LC 5.  The sound works on with the Headset
> > but not the external speakers.  Is there a trick to that?
> >
> > Thanks
> >
> > Todd
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Todd Geist
geist interactive
(805) 419-9382
___
use-livecode mailing list
use-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: Export and Import SQLite data from LC Project?

2011-10-25 Thread Pete
I don't think there's a built in way to do this in LC, you'd have to write
some code.

Alternatively, if you have sqlite3 on your computer, you could run it from
LC and pass it the necessary commands to dump and restore the db.  To dump
the data, You'd need to send it a .mode command with a mode of insert ( to
create SQL Insert statements), then a .dump command.  To add it back, use
the sqlite3 .read command.  Run sqlite3 and enter .help for more specific
info.

All that assumes the table you are loading data into doesn't already have
the dumped data in it.

Pete
Molly's Revenge 




On Tue, Oct 25, 2011 at 12:27 PM, John Patten  wrote:

> Hi All…
>
> Is it possible to export data from SQLite database, save it as a file, and
> then import it back into the same database?
>
> I'm looking for a way to allow users of a LC project to save out their data
> in the SQLite database and then sneaker-net it on another machine using the
> same LC application and import into that app's SQLite database.
>
> Is there some SQLite statement that creates a query that I then can have LC
> save out as a file, and then do the reverse, and import it and run the query
> on the second machine?
>
> Thank you!
>
> John Patten
> SUSD
> ___
> use-livecode mailing list
> use-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: Export and Import SQLite data from LC Project?

2011-10-25 Thread Warren Samples

On 10/25/2011 02:34 PM, Mark Schonewille wrote:

Hi John,

Can't you transfer the entire database file? If not, you can just do a dump and 
import the resulting file or do a query and save the data to a text file, which 
you import the usual way.

--
Best regards,

Mark Schonewille




Mark is correct. This is from the "Distinctive Features" page provided 
by SQLite:


"Single Database File
 An SQLite database is a single ordinary disk file that can be located 
anywhere in the directory hierarchy. If SQLite can read the disk file 
then it can read anything in the database. If the disk file and its 
directory are writable, then SQLite can change anything in the database. 
Database files can easily be copied onto a USB memory stick or emailed 
for sharing.


Stable Cross-Platform Database File
 The SQLite file format is cross-platform. A database file written on 
one machine can be copied to and used on a different machine with a 
different architecture. Big-endian or little-endian, 32-bit or 64-bit 
does not matter. All machines use the same file format. Furthermore, the 
developers have pledged to keep the file format stable and backwards 
compatible, so newer versions of SQLite can read and write older 
database files."


You don't need to do anything other than copy the database file.

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


An application using sqlite running in a Citrix environment

2011-10-25 Thread Jonathan Lynch
Hi Everyone,

I have a peculiar problem. I have an application that is approved to run in
a Citrix environment. (all windows stuff) The application uses an sqlite
database. It works fine when I run it from my desktop at work. But, if I run
it through the Citrix environment, the database components do not run at
all. Near as I can tell, the problem is that unapproved .dll files are
blocked, the same way that unapproved .exe files are blocked.

As it takes several months to get applications approved, I was hoping to
find a way to use the commands from the database external without actually
having an external .dll file.

Is that possible? I know that an external file could be stored as a custom
prop, then saved to a file when used, but that won't work in this situation.
Somehow, I need to actually internalize an external. Does anyone have any
suggestions for that?

Thanks,

Jonathan



-- 
Do all things with love
___
use-livecode mailing list
use-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: Limiting field entry to plain text

2011-10-25 Thread John Brozycki
Thanks, Terry and Klaus for responding.  I used Klaus' recommendation.

Sure enough, there WAS a better way!

On Oct 25, 2011, at 3:46 PM, Klaus on-rev wrote:

> Hi John,
> 
> Am 25.10.2011 um 21:05 schrieb Terry Judd:
> 
>> On 26/10/2011, at 05:51 AM, John Brozycki wrote:
>> 
>> Hi all,
>> 
>> I have an input field that accepts URLs.  If a user copies a URL from an 
>> email or a website and pastes it, it is pasted in HTML format.  I only want 
>> the field to be plain text.  I can set the font and size, but it seems like 
>> fields always exist with (plain)text and htmltext states and LiveCode 
>> automatically accepts htmltext when it's entered.  Is there a setting to 
>> make a field ONLY plaintext, even if a user copies and pastes a URL from an 
>> email or browser?
>> My current workaround is to trap the paste function for the field, then 
>> paste and convert it, which happens instantaneously from a user standpoint:
>> 
>> on pasteKey
>> paste
>> set the htmltext of field "URLField" to the text of field "URLField"
>> end pasteKey
> 
> try this:
> on pasteKey
> put the clipboarddata["text"] into fld "URLField"
> end pasteKey
> 
> Check "clipboarddata" in the dictionary.
> 
>> So, this works, but I was wondering if there is a way to limit a field to 
>> only plaintext so I wouldn't have to do this.  Any recommendations 
>> appreciated.
>> Much of a muchness, but you could try clearing the clipboardData["html"] 
>> before you paste in your pasteKey handler. That way you should just be 
>> pasting plain text.
>> Terry...
>> 
>> Thanks,
>> John
> 
> 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


___
use-livecode mailing list
use-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: An application using sqlite running in a Citrix environment

2011-10-25 Thread Bob Sneidar
Fire the entire IT staff and replace them with people who will respond to 
everyone's needs in a timely manner? Months for approval?? Really??? That is 
brutal. 

Bob


On Oct 25, 2011, at 1:44 PM, Jonathan Lynch wrote:

> Hi Everyone,
> 
> I have a peculiar problem. I have an application that is approved to run in
> a Citrix environment. (all windows stuff) The application uses an sqlite
> database. It works fine when I run it from my desktop at work. But, if I run
> it through the Citrix environment, the database components do not run at
> all. Near as I can tell, the problem is that unapproved .dll files are
> blocked, the same way that unapproved .exe files are blocked.
> 
> As it takes several months to get applications approved, I was hoping to
> find a way to use the commands from the database external without actually
> having an external .dll file.
> 
> Is that possible? I know that an external file could be stored as a custom
> prop, then saved to a file when used, but that won't work in this situation.
> Somehow, I need to actually internalize an external. Does anyone have any
> suggestions for that?
> 
> Thanks,
> 
> Jonathan
> 
> 
> 
> -- 
> Do all things with love
> ___
> use-livecode mailing list
> use-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: Limiting field entry to plain text

2011-10-25 Thread Peter M. Brigham, MD
On Oct 25, 2011, at 3:05 PM, Terry Judd wrote:

> 
> On 26/10/2011, at 05:51 AM, John Brozycki wrote:
> 
>> Hi all,
>> 
>> I have an input field that accepts URLs.  If a user copies a URL from an 
>> email or a website and pastes it, it is pasted in HTML format.  I only want 
>> the field to be plain text.  I can set the font and size, but it seems like 
>> fields always exist with (plain)text and htmltext states and LiveCode 
>> automatically accepts htmltext when it's entered.  Is there a setting to 
>> make a field ONLY plaintext, even if a user copies and pastes a URL from an 
>> email or browser?
>> 
>> My current workaround is to trap the paste function for the field, then 
>> paste and convert it, which happens instantaneously from a user standpoint:
>> 
>> on pasteKey
>>  paste
>>  set the htmltext of field "URLField" to the text of field "URLField"
>> end pasteKey
>> 
>> So, this works, but I was wondering if there is a way to limit a field to 
>> only plaintext so I wouldn't have to do this.  Any recommendations 
>> appreciated.
> 
> Much of a muchness, but you could try clearing the clipboardData["html"] 
> before you paste in your pasteKey handler. That way you should just be 
> pasting plain text.

As a fallback you can add this (untested)

on closefield
   put the text of me into me
end closefield

which would do the trick when the user leaves the field. I'm not sure but I 
think the paste operation doesn't actually trigger the engine to mark the field 
as dirty (bug?), so closefield may not be triggered, so you might have to put 
the same command into an exitfield handler. I recall scripting something 
somewhere to make sure a field is marked as dirty after a paste but I don't 
have it handy

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
use-livecode mailing list
use-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: An application using sqlite running in a Citrix environment

2011-10-25 Thread Jonathan Lynch
Government, security, all of that.

The situation is more difficult than I have described, actually.

However, I set up the approved executable file to essentially be a player,
so that I can add and change stacks as needed. As long as I stick within
certain confinements, that seems to be ok.

I usually use file management techniques, rather than databases, so I have
not had to deal with this .dll issue before.




On Tue, Oct 25, 2011 at 4:50 PM, Bob Sneidar  wrote:

> Fire the entire IT staff and replace them with people who will respond to
> everyone's needs in a timely manner? Months for approval?? Really??? That is
> brutal.
>
> Bob
>
>
> On Oct 25, 2011, at 1:44 PM, Jonathan Lynch wrote:
>
> > Hi Everyone,
> >
> > I have a peculiar problem. I have an application that is approved to run
> in
> > a Citrix environment. (all windows stuff) The application uses an sqlite
> > database. It works fine when I run it from my desktop at work. But, if I
> run
> > it through the Citrix environment, the database components do not run at
> > all. Near as I can tell, the problem is that unapproved .dll files are
> > blocked, the same way that unapproved .exe files are blocked.
> >
> > As it takes several months to get applications approved, I was hoping to
> > find a way to use the commands from the database external without
> actually
> > having an external .dll file.
> >
> > Is that possible? I know that an external file could be stored as a
> custom
> > prop, then saved to a file when used, but that won't work in this
> situation.
> > Somehow, I need to actually internalize an external. Does anyone have any
> > suggestions for that?
> >
> > Thanks,
> >
> > Jonathan
> >
> >
> >
> > --
> > Do all things with love
> > ___
> > use-livecode mailing list
> > use-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
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: .irev code editor?

2011-10-25 Thread Pete
Thanks Ken.  Is there something I have to configure in TextMate to see
colorisation, etc?  Not seeing any of that stuff right now.

I've tried it with both .livecode and .rev file suffixes.

Thanks,
Pete
Molly's Revenge 




On Mon, Oct 24, 2011 at 9:54 PM, Ken Ray  wrote:

>
> On Oct 24, 2011, at 5:02 PM, Pete wrote:
>
> > Stephen,
> > Is there a regular LC plugin for TextMate as opposed to rev igniter?
>
> Go to the bottom of the page:
>
> http://www.sonsothunder.com/devres/livecode/downloads/stsMLXEditor.htm
>
> and click on the download icon in the left column of the table - it's old,
> but it should manage most of the language (when I get a chance I'll update
> it).
>
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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: An application using sqlite running in a Citrix environment

2011-10-25 Thread Bob Sneidar
Like I said fire the entire IT staff. NO WAIT! FIRE ALL THE STAFF!! LOL!!!

Bob


On Oct 25, 2011, at 1:54 PM, Jonathan Lynch wrote:

> Government, security, all of 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


When has a field changed?

2011-10-25 Thread James Hurley
I have a text field (unlocked) that the user can edit, but  I want to know when 
and to deal with the changes.

Here is what I have come up with, something of a kludge. Is there a cleaner way?

on mouseEnter --Enter the field
   set the textChange of me to false
end mouseEnter

on rawkeydown tKey
   if the textChange of me is true then
  pass rawKeyDown
   else
  set the textChange of me to true
  pass rawKeyDown
   end if
end rawKeyDown

on mouseLeave
   if the textChange of me is false then 
  exit mouseLeave
   else
  send "mouseUP" to button "ProcessChanges" --This is where the change is 
dealt with.
   end if
end mouseLeave


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: An application using sqlite running in a Citrix environment

2011-10-25 Thread Jonathan Lynch
well, okay...

but, any suggestions on using the database without using the dlls?

On Tue, Oct 25, 2011 at 5:19 PM, Bob Sneidar  wrote:

> Like I said fire the entire IT staff. NO WAIT! FIRE ALL THE STAFF!! LOL!!!
>
> Bob
>
>
> On Oct 25, 2011, at 1:54 PM, Jonathan Lynch wrote:
>
> > Government, security, all of 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
>



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


Re: When has a field changed?

2011-10-25 Thread Joe Lewis Wilkins
Sorry to say Jim, but I had the same "problem" on my hands last year and ended 
up doing pretty much as you have done, but I never asked the list for help, so 
I'll be interested in seeing where this leads. (smile)

Joe Wilkins
Architect

On Oct 25, 2011, at 2:21 PM, James Hurley wrote:

> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> 
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
>   set the textChange of me to false
> end mouseEnter
> 
> on rawkeydown tKey
>   if the textChange of me is true then
>  pass rawKeyDown
>   else
>  set the textChange of me to true
>  pass rawKeyDown
>   end if
> end rawKeyDown
> 
> on mouseLeave
>   if the textChange of me is false then 
>  exit mouseLeave
>   else
>  send "mouseUP" to button "ProcessChanges" --This is where the change is 
> dealt with.
>   end if
> end mouseLeave
> 
> 
> 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: When has a field changed?

2011-10-25 Thread Bob Sneidar
yes. on closeField. However be aware that clicking a button before tabbing out 
of the field will NOT send a closeField to an edited field. Someone sent me a 
workaround for that, but I cannot find it right now. I am sure it is in the 
archives. Note that exitField is sent when a field loses focus, whether any 
edits were made or not. CloseField only gets sent when the field has been 
edited. 

I will say that validations on leaving a field can be dicey. Let's say a field 
contains the value "Bears". Later you create a validation that only allows a 
subset of dog breeds, and you validate upon exit whether or not anything has 
changed. Empty is not a valid entry. You will end up locking your user into the 
field and the only way out is to enter a random dog breed that may not apply, 
but is the only way out. 

I would only use what I call mid-validations (as opposed to pre-validations to 
precheck and format data before putting it into a field or post-validations to 
pre-check or format data before writing it to a database) to do things like 
phone number formatting, zip code formatting, upper and title case formatting 
etc. Nothing that will halt the user and demand he do something different. Just 
my 2¢

Bob


On Oct 25, 2011, at 2:21 PM, James Hurley wrote:

> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> 
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
>   set the textChange of me to false
> end mouseEnter
> 
> on rawkeydown tKey
>   if the textChange of me is true then
>  pass rawKeyDown
>   else
>  set the textChange of me to true
>  pass rawKeyDown
>   end if
> end rawKeyDown
> 
> on mouseLeave
>   if the textChange of me is false then 
>  exit mouseLeave
>   else
>  send "mouseUP" to button "ProcessChanges" --This is where the change is 
> dealt with.
>   end if
> end mouseLeave
> 
> 
> 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] Interesting Read On Tech In Classrooms vs None

2011-10-25 Thread Judy Perry

Hi Jeff,

I agree completely.  In 1998 computer scientist Elliot Solloway observed 
that "...by and large, schools use only software that comes already 
installed on the machine (a word processor, a spreadsheet, a drawing 
program)... computers are being used as typewriters.  Its heartbreaking."


Computers are just the latest incarnation of new technology as a magic 
bullet.  In 1922 Thomas Alva Edison -- not normally thought of as an 
imbecile -- wrote this about the motion picture:


"I believe that the motion picture is destined to revolutionise our 
educational system and that in a few years it will supplant largely, if 
not entirely, the use of textbooks. I should say that we get about two 
percent efficiency out of schoolbooks as they are written today.  The 
education of the future, as I see it, will be conducted through the medium 
of the motion picture where it should be possible to obtain one hundred 
percent efficiency."


That obviously didn't happen.  Neither did "universities of the airwaves" 
with radio and except for a very few exceptional examples like Sesame 
Street and The Electric Company, neither did television.  And neither will 
computers, and for all the same reasons.


It's not that computers are of zero value in the classroom; it's that 
teachers by and large are computer-phobic and not taught to use anything 
other than the web and M$ office and maybe, just maybe, front page. 
Sometimes HyperStudio but from what I've heard from people who graduated 
with their teaching credential from my institution, the HS class was 
taught by somebody who didn't know anything about it.


My kids have been in US public schools for 6 years.  Every year I've asked 
the kids about computer usage (little to none), asked whether they even 
were functional (frequently not) and checked them out myself to see that 
there's basically NOTHING installed and working.


I wrote a little multiplication bingo game to help  my kids learn their 
multiplication tables and gave a license to each of their two teachers. 
Neither one could figure out how to install it/use it.


Sigh.

I have college students who don't understand the concept of FILE FORMATS 
or that they can't overwrite files that they still need to have; who can't 
figure out what they named their file or where they saved it.  Who can't 
login to a system where their login and password are first initial last 
name.


I kid you not.

:(((

Judy

 On Tue, 25 Oct 2011, Jeff 
Reynolds wrote:


having run a high school computer lab and taught multimedia there its really 
true that they are oversold and underused. it takes a lot of creativity and 
flexibility to find when and where you get a hight bang for the buck to use 
computers in the classroom, otherwise you are just spending a lot of time and 
money that yields negative learning returns... i do fear taking the other 
extreme can be just as problematic.


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


Re: When has a field changed?

2011-10-25 Thread Klaus on-rev
Hi James,

Am 25.10.2011 um 23:21 schrieb James Hurley:

> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
> ...
> end mouseLeave

Maybe catching the fields "closefield" message could do what you need?

>From the docs:
"closefield"
Sent to a field when the focus is being removed from that field and the field's 
content has changed.

> Jim Hurley

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: When has a field changed?

2011-10-25 Thread John Dixon

'closeField' is your friend here... 
Dixie

> Subject: When has a field changed?
> From: jhurley0...@sbcglobal.net
> Date: Tue, 25 Oct 2011 14:21:56 -0700
> To: use-livecode@lists.runrev.com
> 
> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> 
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
>set the textChange of me to false
> end mouseEnter
> 
> on rawkeydown tKey
>if the textChange of me is true then
>   pass rawKeyDown
>else
>   set the textChange of me to true
>   pass rawKeyDown
>end if
> end rawKeyDown
> 
> on mouseLeave
>if the textChange of me is false then 
>   exit mouseLeave
>else
>   send "mouseUP" to button "ProcessChanges" --This is where the change is 
> dealt with.
>end if
> end mouseLeave
> 
> 
> 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: When has a field changed?

2011-10-25 Thread John Dixon

look at 'closeField' in the dictionary...
Dixie

> Subject: When has a field changed?
> From: jhurley0...@sbcglobal.net
> Date: Tue, 25 Oct 2011 14:21:56 -0700
> To: use-livecode@lists.runrev.com
> 
> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> 
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
>set the textChange of me to false
> end mouseEnter
> 
> on rawkeydown tKey
>if the textChange of me is true then
>   pass rawKeyDown
>else
>   set the textChange of me to true
>   pass rawKeyDown
>end if
> end rawKeyDown
> 
> on mouseLeave
>if the textChange of me is false then 
>   exit mouseLeave
>else
>   send "mouseUP" to button "ProcessChanges" --This is where the change is 
> dealt with.
>end if
> end mouseLeave
> 
> 
> 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


Confused again

2011-10-25 Thread Timothy Miller
I keep getting this message, too. I don't know what to think. I never 
subscribed to the developers' program. Don't know what it is. (Well... I think 
it's some kind of a program for developers, but that's just a guess.)

I am a registered owner of 5.0 for the Mac desktop. That's all I need or want.

Apparently, I should get the maintenance upgrade to 5.0.1. I have no idea when 
I last paid for an upgrade, or how much I paid.

I can't figure out how to get the maintenance upgrade, or how much I am 
expected to pay for it.

This is the second time I've asked. Jacque replied briefly before, trying to be 
helpful, but the mystery lingers on. She seemed to suggest that the upgrade to 
5.0.1 is for developers only, but that doesn't sound right.

Please advise.

Tim Miller


On Oct 24, 2011, at 7:10 PM, Admin wrote:

> I get a message (from some kind of small app loaded
> into my startup) saying that my version of LiveCode 5.0 is obsolete (it
> literally said that) and would I like to upgrade to 5.0.1xxx??? 
> 
> I click the link and they sent me to the developer's program purchase page
> - for $199 per year. Not a huge sum of money but like many of you, money
> is getting harder and harder to come by. 

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


How would I get livecode to intercept data and then send it

2011-10-25 Thread Mike Felker
What I want to to is integrate two script systems.  One is open source and the 
other is encrypted but has an API.  You can send certain fields of data.  I am 
hoping username and password is send-able. 

How can I use live code to send the login info from one script (plexum) to a 
live code middleware and then have that live code program instantly send it to 
the second script (opencart) .  This has to be done without user interaction. 

Can this be done?  How?

Thanks in advance. 

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


Re: An application using sqlite running in a Citrix environment

2011-10-25 Thread Pete
Hi Jonathan,
I guess I'm a little confused by this.  I thought the sqlite library was
built in to LC not a separate dll file.  I'm mainly a Mac user though so
perhaps I'm missing something.
Pete
Molly's Revenge 




On Tue, Oct 25, 2011 at 2:32 PM, Jonathan Lynch wrote:

> well, okay...
>
> but, any suggestions on using the database without using the dlls?
>
> On Tue, Oct 25, 2011 at 5:19 PM, Bob Sneidar  wrote:
>
> > Like I said fire the entire IT staff. NO WAIT! FIRE ALL THE STAFF!!
> LOL!!!
> >
> > Bob
> >
> >
> > On Oct 25, 2011, at 1:54 PM, Jonathan Lynch wrote:
> >
> > > Government, security, all of 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
> >
>
>
>
> --
> Do all things with love
> ___
> use-livecode mailing list
> use-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] Interesting Read On Tech In Classrooms vs None

2011-10-25 Thread Bob Sneidar
Judy you are describing my workplace! I guess the problem persists into the 
workplace as well. If school children were taught how to solve problems instead 
of memorize answers, I think we would find that when confronted with 
technology, they as adults would have the skills to incorporate the technology 
into whatever it is they needed to do. As is, unless they can find it on 
Google, they give up trying. Some don't even know to use Google! 

We seem to have transformed from a nation of problem solvers to one of 
automatons. Maybe I am being pessimistic, but I work with people everyday who 
want the best hardware and software, and then end up producing unadulterated 
garbage with it. Web sites that should never see the light of day, video clips 
posted to the web that I would be embarrassed to have my name attached to for 
fear my reputation would be irrevocably ruined, step by step lists of how to do 
something on a sticky note that reveal the person knows absolutely nothing 
about what it is they are doing, users that get stuck at the logon screen 
because their password doesn't work and cannot fathom that the user name has 
changed, or why that would make a difference (I just enter my password every 
day, that is all I know!) I could go on. 

I say, define and support mission critical technology, scrap technology for 
other positions, replace the people who cannot cope. It's the only way back 
from the brink. Ye Old Curmudgeon has spoken. 

Bob


On Oct 25, 2011, at 2:41 PM, Judy Perry wrote:

> Sigh.
> 
> I have college students who don't understand the concept of FILE FORMATS or 
> that they can't overwrite files that they still need to have; who can't 
> figure out what they named their file or where they saved it.  Who can't 
> login to a system where their login and password are first initial last name.
> 
> I kid you not.
> 
> :(((
> 
> Judy


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

2011-10-25 Thread Warren Samples

On 10/25/2011 05:44 PM, Timothy Miller wrote:

She seemed to suggest that the upgrade to 5.0.1 is for developers only, but 
that doesn't sound right.

Please advise.

Tim Miller



Any upgrades you are entitled to will be available from the Store at 
runrev.com. Select that link and sign in. 5.0 seems to be the latest 
publicly available version. There is a 5.0.1 developer preview which is 
a pre-release version available only to those who have paid the 
additional money to be involved in the Developer Program. I don't get 
any messages regarding an update when I open 5.0 under Linux. (I am a 
member of the Developer Program as a result of the prior licensing 
model.) I wonder if this is a bug.


If you have a question regarding what future updates you may be entitled 
to, ask RunRev support directly. They are the only people who have 
access to your records and who can provide you a definitive answer.


Regards,

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: Confused again

2011-10-25 Thread Bob Sneidar
Tim, don't worry about it. I am sure maintenance upgrades are included in your 
agreement, and until they come out with one for non-developers, you can just 
ignore that dialog. I think it is probably a mistake and you were never 
intended to see it. 

If you want to know what the latest version you can use is, go to your 
runrev.com account at http://www.runrev.com/store/account/login and click the 
My Products link in the My Account pane in the upper right. On the next page, 
towards the lower left there will be a popup menu with the version you can 
download. If it's the same as what you have you are golden. 

Bob


On Oct 25, 2011, at 3:44 PM, Timothy Miller wrote:

> I keep getting this message, too. I don't know what to think. I never 
> subscribed to the developers' program. Don't know what it is. (Well... I 
> think it's some kind of a program for developers, but that's just a guess.)
> 
> I am a registered owner of 5.0 for the Mac desktop. That's all I need or want.
> 
> Apparently, I should get the maintenance upgrade to 5.0.1. I have no idea 
> when I last paid for an upgrade, or how much I paid.
> 
> I can't figure out how to get the maintenance upgrade, or how much I am 
> expected to pay for it.
> 
> This is the second time I've asked. Jacque replied briefly before, trying to 
> be helpful, but the mystery lingers on. She seemed to suggest that the 
> upgrade to 5.0.1 is for developers only, but that doesn't sound right.
> 
> Please advise.
> 
> Tim Miller
> 
> 
> On Oct 24, 2011, at 7:10 PM, Admin wrote:
> 
>> I get a message (from some kind of small app loaded
>> into my startup) saying that my version of LiveCode 5.0 is obsolete (it
>> literally said that) and would I like to upgrade to 5.0.1xxx??? 
>> 
>> I click the link and they sent me to the developer's program purchase page
>> - for $199 per year. Not a huge sum of money but like many of you, money
>> is getting harder and harder to come by. 
> 
> ___
> use-livecode mailing list
> use-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: How would I get livecode to intercept data and then send it

2011-10-25 Thread Mark Schonewille
Hi Mike,

There are so many ways to do this! You could open a socket and send the data, 
or save the data in a file and make LiveCode read that, or open a LiveCode 
executable with a few parameters from the command line, or perhaps even set the 
clipboard and make LiveCode read that, or write an external that reads specific 
bytes memory, or... or... or... maybe you should be a little more specific and 
tell us what you want to achieve? Also, why wouldn't you be able to send data 
directly from plexum to opencart?

--
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/16r Start selling Color Converter 
today. 20% commission!

On 26 okt 2011, at 00:47, Mike Felker wrote:

> What I want to to is integrate two script systems.  One is open source and 
> the other is encrypted but has an API.  You can send certain fields of data.  
> I am hoping username and password is send-able. 
> 
> How can I use live code to send the login info from one script (plexum) to a 
> live code middleware and then have that live code program instantly send it 
> to the second script (opencart) .  This has to be done without user 
> interaction. 
> 
> Can this be done?  How?
> 
> Thanks in advance. 
> 
> Mike
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: iOS External Speaker

2011-10-25 Thread Mark Schonewille
Sorry, Todd, I really have no clue. Could this be a hardware problem or a 
LiveCode bug? This is one of the things that should "just work".

--
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/16r Start selling Color Converter 
today. 20% commission!

On 25 okt 2011, at 22:08, Todd Geist wrote:

> :-)
> 
> That does not help
> 
> Todd


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


RE: When has a field changed?

2011-10-25 Thread James Hurley
Thanks all for the info about the effect of closeField. 

I have assumed that it was called only when a field is closed.

As you point out  it is also called when the field loses focus.

It appears that that will happen when one clicks in another field or on the 
card, BUT not when one immediately clicks on another button.

That would be a problem in my application. The user could change the field and 
then immediately click a button, a button that will not see the effect of the 
chance in the field.

My tortured script at least sends the "change" message as soon as the mouse 
leave the field.

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


Re: When has a field changed?

2011-10-25 Thread Mark Schonewille
James,

// this is a field script, providing
// a safe way to check if a field has changed
local lHash
local lHasChanged

on openField
  put md5Digest(the text of me) into lHash
  pass openField
end openField

on closeField
  checkHash
  pass closeField
end closeField

// depending on the purpose of your field
// you may or may not want to include ths handler
on exitField
  checkHash
  pass exitField
end exitField

// alter this handler as needed
private command checkHash
  put md5Digest(the text of me) into myHash
  put (myHash is not lHash) into lHasChanged
  if lHasChanged then
send "mouseUp" to btn ProcessChanges
  end if
end checkHash

getProp changed theCurret
  if theCurrent is true then
return (md5Digest(the text of me)) is lHash
  else
return (lHasChanged is true)
  end if
end changed

--
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/16r Start selling Color Converter 
today. 20% commission!

On 25 okt 2011, at 23:21, James Hurley wrote:

> I have a text field (unlocked) that the user can edit, but  I want to know 
> when and to deal with the changes.
> 
> Here is what I have come up with, something of a kludge. Is there a cleaner 
> way?
> 
> on mouseEnter --Enter the field
>   set the textChange of me to false
> end mouseEnter
> 
> on rawkeydown tKey
>   if the textChange of me is true then
>  pass rawKeyDown
>   else
>  set the textChange of me to true
>  pass rawKeyDown
>   end if
> end rawKeyDown
> 
> on mouseLeave
>   if the textChange of me is false then 
>  exit mouseLeave
>   else
>  send "mouseUP" to button "ProcessChanges" --This is where the change is 
> dealt with.
>   end if
> end mouseLeave
> 
> 
> 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: When has a field changed?

2011-10-25 Thread Mark Schonewille
Hi James,

In addition to my previous field script, for your button:

on mouseUp
  if the changed of fld "Whatever" is true then
// continue
  end if
end mouseUp

--
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/16r Start selling Color Converter 
today. 20% commission!

On 26 okt 2011, at 01:24, James Hurley wrote:

> Thanks all for the info about the effect of closeField. 
> 
> I have assumed that it was called only when a field is closed.
> 
> As you point out  it is also called when the field loses focus.
> 
> It appears that that will happen when one clicks in another field or on the 
> card, BUT not when one immediately clicks on another button.
> 
> That would be a problem in my application. The user could change the field 
> and then immediately click a button, a button that will not see the effect of 
> the chance in the field.
> 
> My tortured script at least sends the "change" message as soon as the mouse 
> leave the field.
> 
> Jim



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


Re: When has a field changed?

2011-10-25 Thread James Hurley
Mark,

Well there's another RR command (md5hash)  I was unaware of.

I worry about the size of the field text that it would be hashing. It would be 
book length.

I don't have that much in there at present, so I can't test it, but that is the 
ultimate goal.

Jim


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



Re: Confused again

2011-10-25 Thread J. Landman Gay

On 10/25/11 6:10 PM, Warren Samples wrote:

I don't get
any messages regarding an update when I open 5.0 under Linux. (I am a
member of the Developer Program as a result of the prior licensing
model.) I wonder if this is a bug.


I'm wondering the same thing, because 5.0 has just reintroduced 
auto-update notifications. It's new code and there may be a glitch.




If you have a question regarding what future updates you may be entitled
to, ask RunRev support directly. They are the only people who have
access to your records and who can provide you a definitive answer.


Anyone affected should definitely take this advice. Not only is the 
notice misleading, but the team needs to know there's a problem.


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

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


Re: When has a field changed?

2011-10-25 Thread J. Landman Gay

On 10/25/11 6:48 PM, James Hurley wrote:

I worry about the size of the field text that it would be hashing. It
would be book length.

I don't have that much in there at present, so I can't test it, but
that is the ultimate goal.


I'd just use closefield myself. The bug with the buttons was a problem 
for a long time, but I thought it was fixed. It's been a while, but last 
time I checked I was getting appropriate closefield messages. If you 
find that you aren't, turn off traversalOn on your button and it should 
bypass the bug.


Trapping closefield is way easier than all that scripting.

--
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: When has a field changed?

2011-10-25 Thread Terry Judd
In the button script you could put "select empty" in the first line. That 
should cause the field's closeField handler to fire before the rest of the 
button script.

Terry...


On 26/10/2011, at 10:48 AM, James Hurley wrote:

Mark,

Well there's another RR command (md5hash)  I was unaware of.

I worry about the size of the field text that it would be hashing. It would be 
book length.

I don't have that much in there at present, so I can't test it, but that is the 
ultimate goal.

Jim


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


Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne



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


Re: When has a field changed?

2011-10-25 Thread Pete
James,
The button click/closeField problem happens because, on OS X anyway, the
filed doesn;t lose focus when you click on the button (you'll see the cursor
is still in it).  Put "focus on nothing" at the top of your button's
mouseDown handler.  That removes focus from the field thus causing the
closeField event to happen if the content changed, or exitField if nothing
changed.

Not sure if this has been mentioned in this thread but you don't get a
closeField if you change a field's contents by script, which may or may not
be a problem depending on your application.  The workaround is to send
closeField to the field in your script.

Hope that helps,

Pete
Molly's Revenge 




On Tue, Oct 25, 2011 at 4:24 PM, James Hurley wrote:

> Thanks all for the info about the effect of closeField.
>
> I have assumed that it was called only when a field is closed.
>
> As you point out  it is also called when the field loses focus.
>
> It appears that that will happen when one clicks in another field or on the
> card, BUT not when one immediately clicks on another button.
>
> That would be a problem in my application. The user could change the field
> and then immediately click a button, a button that will not see the effect
> of the chance in the field.
>
> My tortured script at least sends the "change" message as soon as the mouse
> leave the field.
>
> Jim
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: When has a field changed?

2011-10-25 Thread Bob Sneidar
Actually, the workaround I was thinking of trapped mouseUp in the card or stack 
handler, then used the command focus on nothing. This will force the loss of 
focus by the field thereby forcing a closeField to be sent to the field that 
lost the focus. 

This way you can use closeField in fields, and still trap for those mouseups. 
Just be sure to pass mouseUp in all of your button handlers and you are good to 
go!

Bob


On Oct 25, 2011, at 4:24 PM, James Hurley wrote:

> Thanks all for the info about the effect of closeField. 
> 
> I have assumed that it was called only when a field is closed.
> 
> As you point out  it is also called when the field loses focus.
> 
> It appears that that will happen when one clicks in another field or on the 
> card, BUT not when one immediately clicks on another button.
> 
> That would be a problem in my application. The user could change the field 
> and then immediately click a button, a button that will not see the effect of 
> the chance in the field.
> 
> My tortured script at least sends the "change" message as soon as the mouse 
> leave the field.
> 
> Jim
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: When has a field changed?

2011-10-25 Thread Keith (Gulf Breeze Ortho Lab)

Hi All,

Was following this thread and tried the instructions (see below),  just for 
the fun of it, and it worked fine. I set a "bogus" field so that it was not 
visible, then simply set the focus to this hidden field upon mouseUp. Works 
like a charm and activates the closeField of the desired field...


Cheers,

- Boo

-Original Message- 
From: Bob Sneidar

Sent: Tuesday, October 25, 2011 7:08 PM
To: How to use LiveCode
Subject: Re: When has a field changed?

Actually, the workaround I was thinking of trapped mouseUp in the card or 
stack handler, then used the command focus on nothing. This will force the 
loss of focus by the field thereby forcing a closeField to be sent to the 
field that lost the focus.


This way you can use closeField in fields, and still trap for those 
mouseups. Just be sure to pass mouseUp in all of your button handlers and 
you are good to go!


Bob


On Oct 25, 2011, at 4:24 PM, James Hurley wrote:


Thanks all for the info about the effect of closeField.

I have assumed that it was called only when a field is closed.

As you point out  it is also called when the field loses focus.

It appears that that will happen when one clicks in another field or on 
the card, BUT not when one immediately clicks on another button.


That would be a problem in my application. The user could change the field 
and then immediately click a button, a button that will not see the effect 
of the chance in the field.


My tortured script at least sends the "change" message as soon as the 
mouse leave the field.


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

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



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


Empty fields and controls after testing

2011-10-25 Thread Admin
  

One thing that truly bugs the hell out of me with Live Code is that
when I am done designing/programming and want to test it, the data is
now a part of the program. 

What I mean is, say you have and edit box
and you go to test the program and type stuff in the edit box then go
back to edit mode, the text is still there. Same

goes for captions and
other stuff - any changes made in test mode sticks. 

Is there a way to
test a program and when you go back to edit mode, it initializes
everything so that all controls are blank. 

As it stands now, I have to
write a custom button that when pressed, wipes all fields/controls and
puts them back to their empty original state. It's a pain in the
ass.

No other language I program in does this.

Any thoughts?

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


Re: Empty fields and controls after testing

2011-10-25 Thread Pete
You pretty much have to do it yourself.  I usually do it in preOPenCard
rather than have a button bu that depends on your application.
Pete
Molly's Revenge 




On Tue, Oct 25, 2011 at 5:39 PM, Admin  wrote:

>
>
> One thing that truly bugs the hell out of me with Live Code is that
> when I am done designing/programming and want to test it, the data is
> now a part of the program.
>
> What I mean is, say you have and edit box
> and you go to test the program and type stuff in the edit box then go
> back to edit mode, the text is still there. Same
>
> goes for captions and
> other stuff - any changes made in test mode sticks.
>
> Is there a way to
> test a program and when you go back to edit mode, it initializes
> everything so that all controls are blank.
>
> As it stands now, I have to
> write a custom button that when pressed, wipes all fields/controls and
> puts them back to their empty original state. It's a pain in the
> ass.
>
> No other language I program in does this.
>
> Any thoughts?
>
> Mike
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Empty fields and controls after testing

2011-10-25 Thread Joe Lewis Wilkins
Mike,

I think your approach to creating something in LC is faulty. The vast majority 
of the time you're going to want any coding you've done within controls to 
"stick" as you say. You mention Edit Mode. I never even leave testing mode. I 
suppose you "may" want to do that from time to time; but, basically, you create 
"controls" and write handlers in them (stacks and cards and buttons and fields) 
and test them immediately. That was the HC way of doing things and I still do 
that with LC. Or am I the one who is out in left field?

Joe Wilkins
Architect

On Oct 25, 2011, at 5:39 PM, Admin wrote:

> 
> 
> One thing that truly bugs the hell out of me with Live Code is that
> when I am done designing/programming and want to test it, the data is
> now a part of the program. 
> 
> What I mean is, say you have and edit box
> and you go to test the program and type stuff in the edit box then go
> back to edit mode, the text is still there. Same
> 
> goes for captions and
> other stuff - any changes made in test mode sticks. 
> 
> Is there a way to
> test a program and when you go back to edit mode, it initializes
> everything so that all controls are blank. 
> 
> As it stands now, I have to
> write a custom button that when pressed, wipes all fields/controls and
> puts them back to their empty original state. It's a pain in the
> ass.
> 
> No other language I program in does this.
> 
> Any thoughts?
> 
> 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


[OT] Box.net free 50Gb for iOS 5 users

2011-10-25 Thread Chipp Walters
Hey guys. You don't want to miss this free lifetime giveaway. Box.net recently 
closed on a huge round of financing, and they are now, for a limited time, 
allowing anyone with an iPhone or iPad and iOS5 to download their free Box.net 
app from the Appstore and register for a free 50Gb of online storage!

The free app pretty much sucks, but the the storage is very real. You can set 
up GoodReader and other desktop clients (not Box.net desktop client as they 
will charge you for it) and access your 50Gbs however you like. Also, if you 
don't have an iPhone or iPad, a friend can sign you up. Plus, you can sign 
yourself up for as many email addresses as you like. I've set myself up with 3 
accounts and 150Gb of free data storage. I plan on using GoodSync to back up to 
Box.net all my important files. One note, you cannot upload a file larger than 
100Mb, which shouldn't be too big an issue for me.

You can use the free version http://www.gladinet.com/ to also see all your 
cloud storage devices as folders on our desktop.

Hope this works for some of you!

Chipp Walters
CEO, Shafer Walters Group, Inc
___
use-livecode mailing list
use-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: .irev code editor?

2011-10-25 Thread Ken Ray

On Oct 25, 2011, at 4:10 PM, Pete wrote:

> Thanks Ken.  Is there something I have to configure in TextMate to see
> colorisation, etc?  Not seeing any of that stuff right now.
> 
> I've tried it with both .livecode and .rev file suffixes.

I'll check the extension it's associated with, but you should be able to pick 
it from the popup menu in the bottom left area (where it normally says "Plain 
Text"). It's pretty old, so it may say "Revolution" or "Transcript" instead of 
"LiveCode".

Ken

> 
> Thanks,
> Pete
> Molly's Revenge 
> 
> 
> 
> 
> On Mon, Oct 24, 2011 at 9:54 PM, Ken Ray  wrote:
> 
>> 
>> On Oct 24, 2011, at 5:02 PM, Pete wrote:
>> 
>>> Stephen,
>>> Is there a regular LC plugin for TextMate as opposed to rev igniter?
>> 
>> Go to the bottom of the page:
>> 
>> http://www.sonsothunder.com/devres/livecode/downloads/stsMLXEditor.htm
>> 
>> and click on the download icon in the left column of the table - it's old,
>> but it should manage most of the language (when I get a chance I'll update
>> it).
>> 
>> 
>> Ken Ray
>> Sons of Thunder Software, Inc.
>> Email: k...@sonsothunder.com
>> Web Site: http://www.sonsothunder.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

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: When has a field changed?

2011-10-25 Thread Ken Ray

On Oct 25, 2011, at 7:30 PM, Keith (Gulf Breeze Ortho Lab) wrote:

> Hi All,
> 
> Was following this thread and tried the instructions (see below),  just for 
> the fun of it, and it worked fine. I set a "bogus" field so that it was not 
> visible, then simply set the focus to this hidden field upon mouseUp. Works 
> like a charm and activates the closeField of the desired field…

This is the same as issuing "select empty" or "focus on " - in 
both cases it forces the closeField (or exitFIeld message if the field hasn't 
changed) to the target field. However it's still not bulletproof, however, 
because you can paste text from the clipboard into a field and then click out 
of it and the field does NOT receive a closeField; it receives and exitField 
instead. So Mark's approach that he posted (with or without the MD5 hash) is 
probably the best: grab either the field contents or an MD5digest of the 
contents on open field, and then check the same thing on closeField AND 
exitField to let you know if something's changed. 

Also note that even THAT is not bulletproof (since if you have messages locked 
during any of this you may/may not get the messages you're looking for), but 
it's about as close as you can get. 

:D


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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


Particle Physics

2011-10-25 Thread Todd Geist
Can animation engine or any other LiveCode add on handle particles physics,
like smoke and flames.  I am aware of Franklin 3D, but that seems like it
takes over your whole screen.  I just want to create some effects

Is that beyond what LiveCode can do?

Thanks

Todd

-- 
Todd Geist
geist interactive
(805) 419-9382
___
use-livecode mailing list
use-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] John McCarthy has Died...

2011-10-25 Thread Alejandro Tejada
This month was filled of mournful days! :-((

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-John-McCarthy-has-Died-tp3934987p3938998.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: What is Apple doing with QuickTime?

2011-10-25 Thread Alejandro Tejada
Just to refresh your memory about
the multimedia capabilities of
Quicktime, visit this page and
watch the 100 mini movies:

http://www.qtbridge.com/SourisShow.html

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-Apple-doing-with-QuickTime-tp3934290p3939003.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: .irev code editor?

2011-10-25 Thread Andre Garzia
On Tue, Oct 25, 2011 at 7:10 PM, Pete  wrote:

> Thanks Ken.  Is there something I have to configure in TextMate to see
> colorisation, etc?  Not seeing any of that stuff right now.
>
> I've tried it with both .livecode and .rev file suffixes.
>

try .lc and .irev the other extensions are for stacks and not for text
scripts



>
> Thanks,
> Pete
> Molly's Revenge 
>
>
>
>
> On Mon, Oct 24, 2011 at 9:54 PM, Ken Ray  wrote:
>
> >
> > On Oct 24, 2011, at 5:02 PM, Pete wrote:
> >
> > > Stephen,
> > > Is there a regular LC plugin for TextMate as opposed to rev igniter?
> >
> > Go to the bottom of the page:
> >
> > http://www.sonsothunder.com/devres/livecode/downloads/stsMLXEditor.htm
> >
> > and click on the download icon in the left column of the table - it's
> old,
> > but it should manage most of the language (when I get a chance I'll
> update
> > it).
> >
> >
> > Ken Ray
> > Sons of Thunder Software, Inc.
> > Email: k...@sonsothunder.com
> > Web Site: http://www.sonsothunder.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
>



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


drawing with a finger in iOS

2011-10-25 Thread Andre Garzia
Hello Folks,

I know the paint tools are not supported in iOS but did anyone here
succeeded in making some paintbrush of sorts for iOS?

My idea is just to place a "signature area" in an application and capture
the user signature there (I just bought an iPad stylus and want to play with
it and LiveCode). Any clue? I don't think touchMove gives us enough points
to make the drawing, does it?

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: Duplicate Control IDs

2011-10-25 Thread Trevor DeVore
On Tue, Oct 25, 2011 at 4:06 PM, Pete  wrote:

> OK, so I guess it's not a simple as I thought.  I can find no trace of
> 4.6.4
> in the Release Notes accessed from the LC help menu or on the runrev web
> site.


You can download 4.6.4 (assuming it is available to you through the license
you purchased) from the store. RunRev has a lesson that shows how to locate
downloads.

http://lessons.runrev.com/s/lessons/m/4072/l/20004-How-do-I-download-and-activate-LiveCode-

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: drawing with a finger in iOS

2011-10-25 Thread Joe Lewis Wilkins
Andre,

There must be some way, since the iPad2 TV Commercial shows some children doing 
just that with their fingers. It's numbers so that maybe has something to do 
with it, but they are crude. Still possibly fonts, so text, though.

Joe Wilkins
Architect 

On Oct 25, 2011, at 8:00 PM, Andre Garzia wrote:

> Hello Folks,
> 
> I know the paint tools are not supported in iOS but did anyone here
> succeeded in making some paintbrush of sorts for iOS?
> 
> My idea is just to place a "signature area" in an application and capture
> the user signature there (I just bought an iPad stylus and want to play with
> it and LiveCode). Any clue? I don't think touchMove gives us enough points
> to make the drawing, does it?
> 
> 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


___
use-livecode mailing list
use-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: drawing with a finger in iOS

2011-10-25 Thread Todd Geist
Hi Andre,

I can probably do this with the revBrowser. I made a signature pad that
works with FileMaker using the its built browser.

It should work on the Mac and iOS. I am not sure about windows. Does the
ReBrowser plugin use IE on windows?  If so it might be a little trickier

What do you think?

Todd

On Tue, Oct 25, 2011 at 8:00 PM, Andre Garzia  wrote:

> Hello Folks,
>
> I know the paint tools are not supported in iOS but did anyone here
> succeeded in making some paintbrush of sorts for iOS?
>
> My idea is just to place a "signature area" in an application and capture
> the user signature there (I just bought an iPad stylus and want to play
> with
> it and LiveCode). Any clue? I don't think touchMove gives us enough points
> to make the drawing, does it?
>
> 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
>



-- 
Todd Geist
geist interactive
(805) 419-9382
___
use-livecode mailing list
use-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: drawing with a finger in iOS

2011-10-25 Thread Colin Holgate
It probably does. John Craig's app Spell With Kyle seems to manage to do what 
you want:

http://youtu.be/pmXzE9TVBaQ


On Oct 25, 2011, at 11:00 PM, Andre Garzia wrote:

> Any clue? I don't think touchMove gives us enough points
> to make the drawing, does it?

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


Re: drawing with a finger in iOS

2011-10-25 Thread David Glass
During the Summer Academy Elanor created a stack for Android that used 
the polygon tool to capture a signature.


Since iOS has led the way as far as features are concerned it's possible 
it would work there as well.


I think the stack is hiding behind a Summer Academy login so I'll send 
you the zip privately.


On 10/25/2011 8:00 PM, Andre Garzia wrote:

Hello Folks,

I know the paint tools are not supported in iOS but did anyone here
succeeded in making some paintbrush of sorts for iOS?

My idea is just to place a "signature area" in an application and capture
the user signature there (I just bought an iPad stylus and want to play with
it and LiveCode). Any clue? I don't think touchMove gives us enough points
to make the drawing, does it?

Cheers
andre



--
David Glass - Gray Matter Computing
graymattercomputing.com
Help Desk: http://www.graymattercomputing.com/helpdesk
559-303-4915

___
use-livecode mailing list
use-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: drawing with a finger in iOS

2011-10-25 Thread Terry Judd
I just tried a desktop drawing tool I built a while back that uses curve style 
graphics to draw 'freehand' lines on my iPhone (3GS) and it seems to be work 
OK. Perhaps a little bit blocky but I'm sure it could be improved on.

Terry...

On 26/10/2011, at 02:00 PM, Andre Garzia wrote:

Hello Folks,

I know the paint tools are not supported in iOS but did anyone here
succeeded in making some paintbrush of sorts for iOS?

My idea is just to place a "signature area" in an application and capture
the user signature there (I just bought an iPad stylus and want to play with
it and LiveCode). Any clue? I don't think touchMove gives us enough points
to make the drawing, does it?

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


Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne



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


Re: When has a field changed?

2011-10-25 Thread James Hurley
Thanks all. Problem solved. 

The closeField is triggered only when the field is changed and the focus is 
changed to something outside the field.

The only problem is when the next selection is a button (on the Mac at least) 
the focus remains in the field.

The work around, as several pointed out, is either  "select empty" or "focus on 
nothing" in the button scripts. (A bit of a nuisance.)

It appears to make no difference whether the traversalOn is true or false for 
the button, which seems a bit odd.

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: When has a field changed?

2011-10-25 Thread J. Landman Gay

On 10/25/11 11:24 PM, James Hurley wrote:


It appears to make no difference whether the traversalOn is true or
false for the button, which seems a bit odd.


Yeah. I misspoke. It's auto-hilite that matters. But then you have to 
write your own hiliting handlers, so the focus solution is much better.


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

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


Re: [OT] Box.net free 50Gb for iOS 5 users

2011-10-25 Thread Terry Judd
Thanks Chipp!

Terry...

On 26/10/2011, at 12:10 PM, Chipp Walters wrote:

Hey guys. You don't want to miss this free lifetime giveaway. 
Box.net recently closed on a huge round of financing, and they 
are now, for a limited time, allowing anyone with an iPhone or iPad and iOS5 to 
download their free Box.net app from the Appstore and register 
for a free 50Gb of online storage!

The free app pretty much sucks, but the the storage is very real. You can set 
up GoodReader and other desktop clients (not Box.net desktop 
client as they will charge you for it) and access your 50Gbs however you like. 
Also, if you don't have an iPhone or iPad, a friend can sign you up. Plus, you 
can sign yourself up for as many email addresses as you like. I've set myself 
up with 3 accounts and 150Gb of free data storage. I plan on using GoodSync to 
back up to Box.net all my important files. One note, you cannot 
upload a file larger than 100Mb, which shouldn't be too big an issue for me.

You can use the free version http://www.gladinet.com/ to also see all your 
cloud storage devices as folders on our desktop.

Hope this works for some of you!

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


Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne



___
use-livecode mailing list
use-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: Empty fields and controls after testing

2011-10-25 Thread J. Landman Gay

On 10/25/11 7:39 PM, Admin wrote:


Is there a way to
test a program and when you go back to edit mode, it initializes
everything so that all controls are blank.

As it stands now, I have to
write a custom button that when pressed, wipes all fields/controls and
puts them back to their empty original state. It's a pain in the
ass.

No other language I program in does this.


That's the trade-off in a language that doesn't require a compile/run 
cycle. Everything is live.


Like a lot of us, I have an initialization handler in most of my stacks. 
It's usually called in preOpenStack or preOpenCard. I make it a separate 
handler so I can also call it from the message box whenever I need to.


Another (riskier) way to handle it is to use the "revert" command in the 
message box. The Revert menu item in the File menu is similar, but adds 
a verification dialog for safety. I'm pretty used to doing this so I 
usually just type it.


Make sure that you've saved the stack in the state you want before you 
start testing, because everything you've done since the last save gets 
wiped out when the stack reverts. Keep good backups if you use this 
method. Don't use it if you have any doubts.


About that initialization handler: I learned the hard way to always 
include one. It's a long story, but I embarrassed myself. I also usually 
have a development handler that strips out all test data before building 
an app.


That's a long way of saying, I know what you mean. But for me the ease 
of development offsets the small responsibility of making sure I don't 
leave any tracks. It also helps to only have clients who think your test 
data is amusing.


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

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


Re: [OT] Box.net free 50Gb for iOS 5 users

2011-10-25 Thread J. Landman Gay

On 10/25/11 8:10 PM, Chipp Walters wrote:

Hey guys. You don't want to miss this free lifetime giveaway. Box.net
recently closed on a huge round of financing, and they are now, for a
limited time, allowing anyone with an iPhone or iPad and iOS5 to
download their free Box.net app from the Appstore and register for a
free 50Gb of online storage!

The free app pretty much sucks, but the the storage is very real. You
can set up GoodReader and other desktop clients (not Box.net desktop
client as they will charge you for it) and access your 50Gbs however
you like. Also, if you don't have an iPhone or iPad, a friend can
sign you up. Plus, you can sign yourself up for as many email
addresses as you like. I've set myself up with 3 accounts and 150Gb
of free data storage. I plan on using GoodSync to back up to Box.net
all my important files. One note, you cannot upload a file larger
than 100Mb, which shouldn't be too big an issue for me.

You can use the free version http://www.gladinet.com/ to also see all
your cloud storage devices as folders on our desktop.


Do you know of anything like that for Mac? The gladinet product is 
Windows-only.


I was going to jump on this box.net offer, but I don't see an easy way 
to access my stored files. It looks like only certain types of documents 
are available through their web interface and there is no file synch 
available unless you pay a monthly fee...right? So Mac, Linux, and 
Android people can't get their files back down?


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

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


Re: drawing with a finger in iOS

2011-10-25 Thread Gerry
John has posted his code somewhere...perhaps the forums...?

On Wed, Oct 26, 2011 at 2:44 PM, Colin Holgate  wrote:

> It probably does. John Craig's app Spell With Kyle seems to manage to do
> what you want:
>
>
___
use-livecode mailing list
use-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: An application using sqlite running in a Citrix environment

2011-10-25 Thread Malte Brill
Hi Pete,

I am afraid sqLite handling is part of the database externals, so you will have 
to bite the sour apple and get those approved. I know that dealing with 
government institution can be a pain (been there, still am), however I learned 
if you talk to the right people usually you get what you need. In case the 
service provider declines to approve the dlls (which are part of your 
application), just tell the user of your software with the highest rank in the 
institution that shall use your software to take care of that. They pay the 
service providers huge amounts of money to make things work. They should get 
what they need. Worked two times for me with government software here in 
germany.

All the best,

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: Particle Physics

2011-10-25 Thread Malte Brill
Hi Todd,

I am afraid animationEngine can not help you (yet) here. One of the major 
problems is that particle emitters like smoe would require many many objects 
being animated at the same time to look somewhat realistic. I have not fully 
tested the limits with the new rendering capabilities of liveCode 5. Might work 
nowadays. liveCode engines before 5 I am seriously doubtful. Once I got a 
couple of free hours, I will try to look more into what could be done with 
liveCode 5, but for now, no particles in animationEngine.

All the best,

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