[TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Andre Garzia
Folks,

Today, more precisely at 3:03 AM, the SFTP external worked for the first
time and transfered its first file. It was a simple text file called
test.txt whose content was simply YES, but hey, it worked.

The SFTP external is based on libCURL and libSSH2. Right now I managed to
build it only for Mac OS X with x86 processors but I think I am able to
build it for PPC and Linux as well. Windows might be a little tricky since I
am out of a windows machine right now.

The main issue was that the libcurl version that is bundled with Mac OS X
has no SFTP support, so I had to build my own from source and that had
dependencies such as libssh2 and others. After some effort, I could finally
build everything and managed to convince XCode to link statically with them
(XCode kept trying to link with Mac OS X bundled curl library). So after
linking for the first time, it managed to transfer a single text file over
SFTP connection. Right now it is a blocking call till I figure out how to do
callbacks.

There is a silly movie proving it here:
http://dl.dropbox.com/u/1340110/XcodeSnapz002.mov
or if you want to view it over the web: http://www.vimeo.com/24707584 (it is
waiting in line to be converted right now)

There is still a lot of work to do before releasing this external but we're
now much closer to SFTP support in LiveCode.

This external will be commercial and will probably cost about USD 99 to
cover my costs of developing and the amount of tea I am drinking to calm me
down after working with gdb...

:-D

Now, who among you all is felling like a guinea pig and want to join the
beta tester group? Initial beta will launch for Mac OS X and then Linux,
after that I will worry about Windows.

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


Logical Expressions

2011-06-06 Thread Van Brollini
What is the best way to do multiple logical comparisons and get them to work?

For example

  if ((gUSL = pos_vrange) AND (gUSL = neg_vrange))  then
   get TRUE
   put it into tTester[x][rng_check]
else
   get FALSE
   put it into tTester[x][rng_check]
end if
 
This does NOT work, while below does work.  I need to get the top one to work

  if ((gUSL = pos_vrange) )  then
   get TRUE
   put it into tTester[x][rng_check]
else
   get FALSE
   put it into tTester[x][rng_check]
end if

Thanks in advance,
Van
 

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


RE: Logical Expressions

2011-06-06 Thread John Dixon

  
Does this work for you... shedding the outer brackets ?
 if (gUSL = pos_vrange) AND (gUSL = neg_vrange) then



 What is the best way to do multiple logical comparisons and get them to work?
 
 For example
 
   if ((gUSL = pos_vrange) AND (gUSL = neg_vrange))  then
get TRUE
put it into tTester[x][rng_check]
 else
get FALSE
put it into tTester[x][rng_check]
 end if
  
 This does NOT work, while below does work.  I need to get the top one to work
 
   if ((gUSL = pos_vrange) )  then
get TRUE
put it into tTester[x][rng_check]
 else
get FALSE
put it into tTester[x][rng_check]
 end if
 
 Thanks in advance,
 Van
  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Logical Expressions

2011-06-06 Thread Van Brollini
stupid mistake. was not referencing cell. pos_range should be 
tTester[x][pos_range]
works right now.
thanks.

- Start Original Message -
Sent: Mon, 6 Jun 2011 08:21:18 +0100
From: John Dixon dixo...@hotmail.co.uk
To: use-livecode@lists.runrev.com
Subject: RE: Logical Expressions

 
   
 Does this work for you... shedding the outer brackets ?
  if (gUSL = pos_vrange) AND (gUSL = neg_vrange) then
 
 
 
  What is the best way to do multiple logical comparisons and get them to 
  work?
  
  For example
  
if ((gUSL = pos_vrange) AND (gUSL = neg_vrange))  then
 get TRUE
 put it into tTester[x][rng_check]
  else
 get FALSE
 put it into tTester[x][rng_check]
  end if
   
  This does NOT work, while below does work.  I need to get the top one to 
  work
  
if ((gUSL = pos_vrange) )  then
 get TRUE
 put it into tTester[x][rng_check]
  else
 get FALSE
 put it into tTester[x][rng_check]
  end if
  
  Thanks in advance,
  Van
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 

- End Original Message -

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


Re: Logical Expressions

2011-06-06 Thread Dick Kriesel
Now that you've made your code work, you can consider making it shorter and 
faster.

LiveCode supports the syntax:
put boolean expression into container

For example,
put gUSL = pos_vrange and gUSL = neg_vrange into Tester[x][rng_check]

-- Dick



On Jun 6, 2011, at 12:37 AM, Van Brollini wrote:

 stupid mistake. was not referencing cell. pos_range should be 
 tTester[x][pos_range]
 works right now.
 thanks.
 
 - Start Original Message -
 Sent: Mon, 6 Jun 2011 08:21:18 +0100
 From: John Dixon dixo...@hotmail.co.uk
 To: use-livecode@lists.runrev.com
 Subject: RE: Logical Expressions
 
 
 
 Does this work for you... shedding the outer brackets ?
 if (gUSL = pos_vrange) AND (gUSL = neg_vrange) then
 
 
 
 What is the best way to do multiple logical comparisons and get them to 
 work?
 
 For example
 
  if ((gUSL = pos_vrange) AND (gUSL = neg_vrange))  then
   get TRUE
   put it into tTester[x][rng_check]
else
   get FALSE
   put it into tTester[x][rng_check]
end if
 
 This does NOT work, while below does work.  I need to get the top one to 
 work
 
  if ((gUSL = pos_vrange) )  then
   get TRUE
   put it into tTester[x][rng_check]
else
   get FALSE
   put it into tTester[x][rng_check]
end if
 
 Thanks in advance,
 Van

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 - End Original Message -
 
 ___
 use-livecode mailing list
 use-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: SubStacks and message path

2011-06-06 Thread Keith Clarke
...thanks Robert but 'do login()' was working just fine until I moved it from a 
login 'card' in the mainstack into into a login substack. 

And it does again now, since I have taken Jaque's advice to use groups with 
switched visibility (and background images that simulate popping a substack 
with a fancy window shape) instead of unnecessary substacks!

I think I'm gradually learning how to avoid the bits of LiveCode that I don't 
understand enough to be able to control! ;-)
Best,
Keith.. 
 
On 5 Jun 2011, at 17:00, Robert Brenstein wrote:

 I think that your problem with original scenerio was not with path but that 
 'do login()' was a wrong construct, if login was a function. It should 
 probably have been something like 'get login()'.
 
 Robert


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


Re: Logical Expressions

2011-06-06 Thread Van Brollini
thanks, didi not know that
Van

- Start Original Message -
Sent: Mon, 6 Jun 2011 01:39:45 -0700
From: Dick Kriesel dick.krie...@mail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Subject: Re: Logical Expressions

 Now that you've made your code work, you can consider making it shorter and 
 faster.
 
 LiveCode supports the syntax:
 put boolean expression into container
 
 For example,
 put gUSL = pos_vrange and gUSL = neg_vrange into Tester[x][rng_check]
 
 -- Dick
 
 
 
 

___
use-livecode mailing list
use-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 to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Hi,

I just don't know if I don't see the obvious, or if this is the only way to
go.

I have a switch structure, which looks in a shot form like this:

Switch myVar

case foo1

myFunction 1

case foo2

myFunction 2

etc.

 

very regular 1 to 1, 2 to 2. Is there a way, with do. or something like
that, to shorten it up to one single case with a variable?

Thanks

Tiemo

 

 

 

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


RE: how to shorten a case structure?

2011-06-06 Thread John Dixon

on mouseUp
   put foo  random(3) into myVar
   put (last char of myVar) into whichOne
   
   switch whichOne
  case whichOne
 put myFunction  whichOne
 break
 
   end switch
end mouseUp

Maybe ?


 From: toolb...@kestner.de
 To: use-livecode@lists.runrev.com
 Subject: how to shorten a case structure?
 Date: Mon, 6 Jun 2011 14:14:12 +0200
 
 Hi,
 
 I just don't know if I don't see the obvious, or if this is the only way to
 go.
 
 I have a switch structure, which looks in a shot form like this:
 
 Switch myVar
 
 case foo1
 
 myFunction 1
 
 case foo2
 
 myFunction 2
 
 etc.
 
  
 
 very regular 1 to 1, 2 to 2. Is there a way, with do. or something like
 that, to shorten it up to one single case with a variable?
 
 Thanks
 
 Tiemo
 
  
 
  
 
  
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: how to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Is it really that easy? As I thought - the obvious...
Thanks
Tiemo

 -Ursprüngliche Nachricht-
 Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] Im Auftrag von John Dixon
 Gesendet: Montag, 6. Juni 2011 14:22
 An: use-livecode@lists.runrev.com
 Betreff: RE: how to shorten a case structure?
 
 
 on mouseUp
put foo  random(3) into myVar
put (last char of myVar) into whichOne
 
switch whichOne
   case whichOne
  put myFunction  whichOne
  break
 
end switch
 end mouseUp
 
 Maybe ?
 
 
  From: toolb...@kestner.de
  To: use-livecode@lists.runrev.com
  Subject: how to shorten a case structure?
  Date: Mon, 6 Jun 2011 14:14:12 +0200
 
  Hi,
 
  I just don't know if I don't see the obvious, or if this is the only way
to
  go.
 
  I have a switch structure, which looks in a shot form like this:
 
  Switch myVar
 
  case foo1
 
  myFunction 1
 
  case foo2
 
  myFunction 2
 
  etc.
 
 
 
  very regular 1 to 1, 2 to 2. Is there a way, with do. or something
like
  that, to shorten it up to one single case with a variable?
 
  Thanks
 
  Tiemo
 
 
 
 
 
 
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
subscription
 preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: how to shorten a case structure?

2011-06-06 Thread Mark Schonewille
Hi,

I think the point is that you wouldn't need the switch anymore:

on bar x
  do (foo  x)
end bar

--
Best regards,

Mark Schonewille

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

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 6 jun 2011, at 14:21, John Dixon wrote:

 
 on mouseUp
   put foo  random(3) into myVar
   put (last char of myVar) into whichOne
 
   switch whichOne
  case whichOne
 put myFunction  whichOne
 break
 
   end switch
 end mouseUp
 
 Maybe ?
 


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


AW: how to shorten a case structure?

2011-06-06 Thread Tiemo Hollmann TB
Hi Mark,
you are right in this case, but actually my switch structure has a couple of
different cases, each with a counter.
Thanks
Tiemo

 -Ursprüngliche Nachricht-
 Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] Im Auftrag von Mark Schonewille
 Gesendet: Montag, 6. Juni 2011 14:57
 An: How to use LiveCode
 Betreff: Re: how to shorten a case structure?
 
 Hi,
 
 I think the point is that you wouldn't need the switch anymore:
 
 on bar x
   do (foo  x)
 end bar
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 New: Download the Installer Maker Plugin 1.6 for LiveCode here
 http://qery.us/ce
 
 On 6 jun 2011, at 14:21, John Dixon wrote:
 
 
  on mouseUp
put foo  random(3) into myVar
put (last char of myVar) into whichOne
 
switch whichOne
   case whichOne
  put myFunction  whichOne
  break
 
end switch
  end mouseUp
 
  Maybe ?
 
 
 
 ___
 use-livecode mailing list
 use-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


Option Menus

2011-06-06 Thread Todd Geist
Hello,

I have another simple question. In HTML for example, when I set up an Option
menu I can set both the Name and the Value of the each of the options in the
list.  This give me a way to display one thing to the use but reference a
different value on selection of that item.

In Live Code I can only set one value, not two.

This seems to me to be a rather common requirement. If I am asking users to
select something in the menu, I want to show them something Nice but
actually use a unique ID of some sort when they select it. So I am curious
if the community has arrived at a common way of solving this common problem.

Thanks

Todd



Todd Geist
--
geist interactive http://www.geistinteractive.com
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: How do you build the tabs like in the script editor

2011-06-06 Thread Richard Gaskin

Good to see you here, Mark:


It's a while since I've been on the list but anyway, how would I go about
building the same tab interface (multiple document interface) as the LC
script editor?

As the user wants to open a document, they would have the choice of
overwriting the existing open document, or opening the document on a new
tab. The tab would have a close button on it just like LC's. Each opened
document would belong to one tab.

They user could potentially open as many documents as they want. As the
number of opened tabs exceeds the stack width, two new navigation tabs would
have to display at the far right. This would allow the user to bring into
view those tabs further out to the right, and the other of the 2 navigation
buttons would allow the user to view those tabs to the left.

Anyone done such a thing?


I believe at least one of Jerry's script editors uses horizontal tabs, 
but they're a lot of work to implement.


For myself, all the work required to support variable widths, 
drag-reordering, scrolling the set, etc. provides negative ROI since the 
result takes up precious vertical real estate in a world where most 
monitors are widescreen - vertical space comes at a premium, while 
horizontal space is often underutilized.


With all the horizontal space available on modern displays I'm beginning 
to see a migration to vertical tabs among newer apps, esp. those focused 
on text editing since that task really benefits from maximizing 
available vertical space for the user's content.  The next version of my 
own script editor will be using vertical tabs for that reason.


Extra bonus points that vertical tabs are much easier to implement in LC 
than horizontal ones, so not only do you save significant space for your 
user's content but you save a lot of time that can be spent on features 
as well.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

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


Re: Option Menus

2011-06-06 Thread Richard Gaskin

Todd Geist wrote:


I have another simple question. In HTML for example, when I set up an Option
menu I can set both the Name and the Value of the each of the options in the
list.  This give me a way to display one thing to the use but reference a
different value on selection of that item.

In Live Code I can only set one value, not two.

This seems to me to be a rather common requirement. If I am asking users to
select something in the menu, I want to show them something Nice but
actually use a unique ID of some sort when they select it. So I am curious
if the community has arrived at a common way of solving this common problem.


In LC most objects have a label property which is distinct from the 
object's name, so for those it's easy to do what you're looking for.


But in LC menu items aren't objects per se, but merely strings in the 
text property of menu buttons, so a different method is needed to 
provide a similar benefit there.


In LC 3.0 or 3.5, RunRev introduced a menu tag option for menu items - 
here's the only documentation I can find on this very useful feature:


---

Menu-item tagging
~

The menu item specification has been extended to allow a tag to be 
specified. It is now of the form:

  label [ '/' [ accelerator ] [ '|' tag ] ]
Note that the tag is optional as is the accelerator however, if you 
want an item with a tag but without the accelerator you need:

  label '/' '|' tag

The tag must only be composed of characters from the ASCII character set.

If a menu item has a tag then it is the tag string that is passed to 
menuPick rather than the label. This is useful for localization of 
menu items as you don't need to change the menuPick handler for each 
language supported.


The following tags should be used to label the standard edit menu items 
to enable them to be controlled by the system dialogs on Mac OS X (e.g. 
answer file, ask file etc.):

  undo, redo, cut, copy, paste, clear, select all, preferences

Note: You should not mix the use of tags and no tags in Unicode menus. 
Doing so will cause empty values for all unicode items without tags.




I was able to turn those up in the Engine Change Log for v3.5, but I see 
no mention of this feature in the menuPick entry in the Dictionary, so I 
submitted a request to have them added:

http://quality.runrev.com/show_bug.cgi?id=9571


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 ambassa...@fourthworld.com   http://www.FourthWorld.com

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


Re: Option Menus

2011-06-06 Thread Ken Ray
 I have another simple question. In HTML for example, when I set up an Option
 menu I can set both the Name and the Value of the each of the options in the
 list.  This give me a way to display one thing to the use but reference a
 different value on selection of that item.
 
 In Live Code I can only set one value, not two.
 
 This seems to me to be a rather common requirement. If I am asking users to
 select something in the menu, I want to show them something Nice but
 actually use a unique ID of some sort when they select it. So I am curious
 if the community has arrived at a common way of solving this common problem.

It's a shame you need to use Option menus, because the pulldown/popup form
has been extended to allow for abritrary tagging (as of 4.0 I believe). It's
the form:

itemName/acceleratorKey|tag

and if you don't want to show and acceleratorKey, you just omit it. So if
you were using a popup menu for example, you could put this into the button:

Apple/|red
Orange/|orange
Lemon/|yellow

and the user would only see choices for Apple, Orange, and Lemon, but
if they picked Apple, you would get red coming into your menupick
handler instead of Apple.


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


Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Malte Brill
Hi all,

I need to call a WSDL from within liveCode, ideally from a Revolution CGI. Did 
anyone of you do such a thing already? If so, mind to share a recipe? As far as 
I know there are soap calls involved. I would not want to switch that to php if 
that can be avoided.

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: how to shorten a case structure?

2011-06-06 Thread Nonsanity
switch myVar
case foo1
case foo2
myFunction (last char of myVar)
break
...

If that's what you mean?


 ~ Chris Innanen
 ~ Nonsanity


On Mon, Jun 6, 2011 at 8:14 AM, Tiemo Hollmann TB toolb...@kestner.dewrote:

 Hi,

 I just don't know if I don't see the obvious, or if this is the only way to
 go.

 I have a switch structure, which looks in a shot form like this:

 Switch myVar

 case foo1

 myFunction 1

 case foo2

 myFunction 2

 etc.



 very regular 1 to 1, 2 to 2. Is there a way, with do. or something like
 that, to shorten it up to one single case with a variable?

 Thanks

 Tiemo







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

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


Re: Cyrillic input

2011-06-06 Thread Malte Brill
Hi all,

thanks to Mark Waddingham, I was able to get a few things sorted regarding 
password and numbers only fields.

Short recap: The only keyboard message that appears to fire with cyrillic 
keyboards is rawKeyUp. I am currently working on a little field library that I 
will be making available shortly if anyone is interested.

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: Cyrillic input

2011-06-06 Thread Slava Paperno
Yes, please. S.

 On Behalf Of Malte Brill
 Sent: Monday, June 06, 2011 10:32 AM
 To: use-livecode@lists.runrev.com
 Subject: Re: Cyrillic input
... 
 Short recap: The only keyboard message that appears to fire with cyrillic
 keyboards is rawKeyUp. I am currently working on a little field library
that I will
 be making available shortly if anyone is interested.



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


Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Hi folks,
I'm downloading a zip file via a web service call - the file is embedded as a 
long string within the ...resultzipFile node of the XML file, accompanied 
by a set of nodes that name the (xml text) files that I should find within the 
zipped payload. 

So, I save this string out to to disk with...

put revXMLNodeContents(tTree, tResultNode  /zipFile/) into URL 
file:package.zip

This creates a zip file on disk OK, but when when I open the archive, instead 
of a list of files, I get a .cpgz file - and attempting to open this causes 
some weird recursion. (I get the same result if I use the URL 'binfile' prefix.)

What am I doing wrong here - am I using the correct syntax or failing to 
encode/decode for the zip file definition string?
Best,
Keith..



 

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


RE: Option Menus

2011-06-06 Thread Slava Paperno
I use a custom property for this purpose. For example, when I use it as a
navigation menu to go to a card that the user selects from an Options
control, my cards have their real names and also each card has a custom
property called DisplayName. Then I use this in the Options control (where
pItemName is the parameter that the control gets when selected)

  repeat with i = 1 to the number of cards in this stack
  if the DisplayName of card i of this stack is pItemName then
 set the menuHistory of me to i
 go to card (short name of card i)
 exit repeat
  end if
   end repeat

Instead of custom properties you can use an array.

I am sure there are smarter ways to do what you want as well, but this
works. 

Slava

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of Ken Ray
 Sent: Monday, June 06, 2011 10:08 AM
 To: How to use LiveCode
 Subject: Re: Option Menus
 
  I have another simple question. In HTML for example, when I set up an
  Option menu I can set both the Name and the Value of the each of the
  options in the list.  This give me a way to display one thing to the
  use but reference a different value on selection of that item.
 
  In Live Code I can only set one value, not two.
 
  This seems to me to be a rather common requirement. If I am asking
  users to select something in the menu, I want to show them something
  Nice but actually use a unique ID of some sort when they select it. So
  I am curious if the community has arrived at a common way of solving
this
 common problem.
 
 It's a shame you need to use Option menus, because the pulldown/popup form
 has been extended to allow for abritrary tagging (as of 4.0 I believe).
It's the
 form:
 
 itemName/acceleratorKey|tag
 
 and if you don't want to show and acceleratorKey, you just omit it. So
if you
 were using a popup menu for example, you could put this into the button:
 
 Apple/|red
 Orange/|orange
 Lemon/|yellow
 
 and the user would only see choices for Apple, Orange, and Lemon,
but if
 they picked Apple, you would get red coming into your menupick handler
 instead of Apple.
 
 
 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: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Mark Schonewille
Hi Keith,

Your zip file is corrupt. First of all, replace file: with binfile:.

It is possible that the revXML external can't cope with binary data. In that 
case, your zip file will stay corrupt and you'll have to retrieve the data 
manually.

--
Best regards,

Mark Schonewille

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

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 6 jun 2011, at 17:03, Keith Clarke wrote:

 Hi folks,
 I'm downloading a zip file via a web service call - the file is embedded as a 
 long string within the ...resultzipFile node of the XML file, accompanied 
 by a set of nodes that name the (xml text) files that I should find within 
 the zipped payload. 
 
 So, I save this string out to to disk with...
 
 put revXMLNodeContents(tTree, tResultNode  /zipFile/) into URL 
 file:package.zip
 
 This creates a zip file on disk OK, but when when I open the archive, instead 
 of a list of files, I get a .cpgz file - and attempting to open this causes 
 some weird recursion. (I get the same result if I use the URL 'binfile' 
 prefix.)
 
 What am I doing wrong here - am I using the correct syntax or failing to 
 encode/decode for the zip file definition string?
 Best,
 Keith..


___
use-livecode mailing list
use-livecode@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 do you build the tabs like in the script editor

2011-06-06 Thread J. Landman Gay

On 6/6/11 8:20 AM, Richard Gaskin wrote:

Good to see you here, Mark:


It's a while since I've been on the list but anyway, how would I go about
building the same tab interface (multiple document interface) as the LC
script editor?

As the user wants to open a document, they would have the choice of
overwriting the existing open document, or opening the document on a new
tab. The tab would have a close button on it just like LC's. Each opened
document would belong to one tab.

They user could potentially open as many documents as they want. As the
number of opened tabs exceeds the stack width, two new navigation tabs
would
have to display at the far right. This would allow the user to bring into
view those tabs further out to the right, and the other of the 2
navigation
buttons would allow the user to view those tabs to the left.

Anyone done such a thing?


I believe at least one of Jerry's script editors uses horizontal tabs,
but they're a lot of work to implement.


I think the OP means horizontal tabs, since that's what the LiveCode 
editor uses.


That's as simple as setting up a tab button where each tab opens either 
the correct card, or shows the correct group.


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


SMIL and QuickTime

2011-06-06 Thread Klaus on-rev
Hi friends,

anyone ever worked with SMIL and QuickTIme?

I have a strange problem :-/
This SMIL script literally stopped working over night???!!!

smil xmlns:qt=http://www.apple.com/quicktime/resources/smilextensions; 
qt:autoplay=true qt:time-slider=true/
head
layout
root-layout width=720 height=576 
background-color=#454545 /
region id=xx left=0 top=0 width=720 
height=576 fit=meet/
region id=video left=0 top=0 width=100% 
height=100% fit=meet /
/layout
/head
body
seq
video src=file:///Ablage/DVDs/MP4 etc/Centurion.mp4 
region=video clip-begin=npt=01:59 clip-end=npt=02:10/
video src=file:///Ablage/DVDs/MP4 etc/Aufforderung 
zum Tanz.mp4 region=video clip-begin=smpte=00:00:59:00 
clip-end=npt=02:01/
/seq
/body
/smil

I could open it in QuickTIme player (7.xx!) and in a player object in LiveCode
and both of these video sequences were played the way I wrote in the SMIILE 
file.

But then some weeks ago it just stopped working!
QT Player opens the file but I do not see any video.
Using a SMIL file with audio-only files works however!?

Any hints or ideas?

OS X 10.6.7, LiveCode 4.6.1
Latest QuickTime version of course


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: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-06 Thread J. Landman Gay

On 6/5/11 5:00 PM, Roger Eller wrote:


Have you heard anything on how the iOS/Android alignment is coming along at
RunRev?


Not really. The only info I have is that the team is swamped and working 
like mad. Presumably they are focusing mainly on all the bugs that 
affect *me*, but I'm not sure. :)



No such luck.  Both portrait orientations and their menus are still opposite
of what they should be.  My Android version is 2.3.3 and the Kernel version
is 2.6.32.39, in-case that info is useful.


I'm on 2.2 so I only get two working orientations, but they both display 
correctly. If yours don't, I'd say that's a bug. Upside down is a unique 
approach, but probably not what users expect. ;)


QCC time, I think.

--
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: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay

On 6/5/11 12:19 AM, Slava Paperno wrote:

I have a list field (MyListField) with a rawKeyDown handler that tells me
which line is the hilitedLine after every key press.

on rawKeyDown parKey
   put return  the hilitedLine of me after msg
   pass rawKeyDown parKey
end of rawKeyDown


Probably a typo, but end of rawkeydown throws a compiler error. Also, 
when passing a message, you don't need to include the parameter(s), 
those go along automatically. pass rawKeyDown is enough, though I see 
it doesn't seem to matter if it's there; likely the engine is ignoring it.




When I press the Up Arrow and Down Arrow keys, I see in the message box that
the hilitedLine is changing as expected, but the actual highlight in the
field is not moving: the top line always remains highlighted.

The listBehavior property is true.

This weird behavior starts when I use this command:

focus on field MyListField


I just tested this and it's behaving okay for me. The focus command 
doesn't make any difference, the hilite changes normally when arrow keys 
are pressed. Your field has autohilite set to true, right? Do you have 
any arrowKey handlers that might be blocking the arrow keys?


--
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: [TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Bob Sneidar
I'll test it for you. Give me some guidelines if you will. I have a large 
complex Multi-OS network, with managed switches that support SFTP. 

Bob


On Jun 5, 2011, at 11:16 PM, Andre Garzia wrote:

 Folks,
 
 Today, more precisely at 3:03 AM, the SFTP external worked for the first
 time and transfered its first file. It was a simple text file called
 test.txt whose content was simply YES, but hey, it worked.
 
 The SFTP external is based on libCURL and libSSH2. Right now I managed to
 build it only for Mac OS X with x86 processors but I think I am able to
 build it for PPC and Linux as well. Windows might be a little tricky since I
 am out of a windows machine right now.
 
 The main issue was that the libcurl version that is bundled with Mac OS X
 has no SFTP support, so I had to build my own from source and that had
 dependencies such as libssh2 and others. After some effort, I could finally
 build everything and managed to convince XCode to link statically with them
 (XCode kept trying to link with Mac OS X bundled curl library). So after
 linking for the first time, it managed to transfer a single text file over
 SFTP connection. Right now it is a blocking call till I figure out how to do
 callbacks.
 
 There is a silly movie proving it here:
 http://dl.dropbox.com/u/1340110/XcodeSnapz002.mov
 or if you want to view it over the web: http://www.vimeo.com/24707584 (it is
 waiting in line to be converted right now)
 
 There is still a lot of work to do before releasing this external but we're
 now much closer to SFTP support in LiveCode.
 
 This external will be commercial and will probably cost about USD 99 to
 cover my costs of developing and the amount of tea I am drinking to calm me
 down after working with gdb...
 
 :-D
 
 Now, who among you all is felling like a guinea pig and want to join the
 beta tester group? Initial beta will launch for Mac OS X and then Linux,
 after that I will worry about Windows.
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 use-livecode mailing list
 use-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: [TEASER] It is Alive! SFTP support in LiveCode

2011-06-06 Thread Pamela Crossley
Hallelujah, André, lots of us are waiting for your magic. Carry on!


On Jun 6, 2011, at 2:16 AM, Andre Garzia wrote:

Folks,

Today, more precisely at 3:03 AM, the SFTP external worked for the first
time and transfered its first file. It was a simple text file called
test.txt whose content was simply YES, but hey, it worked.


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


RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
Jacqueline,

You're responding to email script with obvious goofs, sorry--but a little
later I posted a link to a working demo that shows the problem:
http://russian.cornell.edu/FocusProblem_Slava.zip

My tests are in Windows 7, but someone on the list confirmed that the demo
fails the same way on his Mac. Does it fail for you?

Thanks for thinking about this,

Slava

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of J. Landman Gay
 Sent: Monday, June 06, 2011 12:26 PM
 To: How to use LiveCode
 Subject: Re: the hilitedLine of list field isn't highlighted
 
 On 6/5/11 12:19 AM, Slava Paperno wrote:
  I have a list field (MyListField) with a rawKeyDown handler that
 tells me
  which line is the hilitedLine after every key press.
 
  on rawKeyDown parKey
 put return  the hilitedLine of me after msg
 pass rawKeyDown parKey
  end of rawKeyDown
 
 Probably a typo, but end of rawkeydown throws a compiler error. Also,
 when passing a message, you don't need to include the parameter(s),
 those go along automatically. pass rawKeyDown is enough, though I see
 it doesn't seem to matter if it's there; likely the engine is ignoring
 it.
 
 
  When I press the Up Arrow and Down Arrow keys, I see in the message
 box that
  the hilitedLine is changing as expected, but the actual highlight in
 the
  field is not moving: the top line always remains highlighted.
 
  The listBehavior property is true.
 
  This weird behavior starts when I use this command:
 
  focus on field MyListField
 
 I just tested this and it's behaving okay for me. The focus command
 doesn't make any difference, the hilite changes normally when arrow
 keys
 are pressed. Your field has autohilite set to true, right? Do you
 have
 any arrowKey handlers that might be blocking the arrow keys?
 
 --
 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: Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Keith Clarke
Hi Malte,
My understanding is that although a WSDL is just a type of text file - as in 
'definition.wsdl.xml' - the mechanism needed to retrieve it will be driven by 
the target web service and the approach the developer has adopted for SOAP 
and/or REST access. The target web service should have documentation, a WSDL 
file you can download and study and maybe an API that defines what you can 
access and how. That will define what how your app or CGI server code needs to 
behave as its client. 

Some web services will accept a GET call, some require a POST call with method 
and soap headers that conform to an API standard and some won't allow a 
scripted download at all, instead requiring a user login (so any scripted 
client app would have to emulate a user's login and admin 'control-panel' 
navigation actions).

If you can get away with using a GET or POST mechanism, you can decide on 
whether to use libraries such as lib_SOAP or, if the web service provider has 
example text files for the SOAP calls and you can do as I did:
1. Drop example call xml text files into custom properties to act as SOAP call 
templates
2. Replace 'placeholder' strings in the templates with real, call-specific data 
strings 
3. Simply POST or GET the edited file to the server's URL

You may have to mess around with SOAP and/or HTTP headers. I find SOAP client 
very useful to fine-tune example SOAP calls (and test them) before copying them 
into a custom property template http://ditchnet.org/xmlrpc/  This tool has a 
nice feature in that if you can download the target WSDL, you can open this in 
SOAP Client and play around with the various calls defined in the API. Oh, and 
if there's no WSDL download in the API, you'll soon know!

HTH
Best,
Keith..

On 6 Jun 2011, at 15:21, Malte Brill wrote:

 Hi all,
 
 I need to call a WSDL from within liveCode, ideally from a Revolution CGI. 
 Did anyone of you do such a thing already? If so, mind to share a recipe? As 
 far as I know there are soap calls involved. I would not want to switch that 
 to php if that can be avoided.
 
 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: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay

On 6/6/11 12:23 PM, Slava Paperno wrote:

Jacqueline,

You're responding to email script with obvious goofs, sorry--but a little
later I posted a link to a working demo that shows the problem:
http://russian.cornell.edu/FocusProblem_Slava.zip

My tests are in Windows 7, but someone on the list confirmed that the demo
fails the same way on his Mac. Does it fail for you?


Yes, your example fails (Mac). I suspect that focus isn't actually 
activating the field. This works:


on mouseup
  focus on fld listfield
  select line (the hilitedline of fld listfield) of fld listfield
end mouseup

Selecting text does activate the field. It sounds like a bug with the 
focus command.


--
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: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Thanks for the response Mark, the tip on binfile and the possible limitations 
of revXML. 
This particular XML file isn't too complex. So, although I have the STSXML 
libary available, I'll first try extracting the zip file node string as a text 
chunk.
Best,
Keith..
 
On 6 Jun 2011, at 16:22, Mark Schonewille wrote:

 Hi Keith,
 
 Your zip file is corrupt. First of all, replace file: with binfile:.
 
 It is possible that the revXML external can't cope with binary data. In that 
 case, your zip file will stay corrupt and you'll have to retrieve the data 
 manually.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce
 
 On 6 jun 2011, at 17:03, Keith Clarke wrote:
 
 Hi folks,
 I'm downloading a zip file via a web service call - the file is embedded as 
 a long string within the ...resultzipFile node of the XML file, 
 accompanied by a set of nodes that name the (xml text) files that I should 
 find within the zipped payload. 
 
 So, I save this string out to to disk with...
 
 put revXMLNodeContents(tTree, tResultNode  /zipFile/) into URL 
 file:package.zip
 
 This creates a zip file on disk OK, but when when I open the archive, 
 instead of a list of files, I get a .cpgz file - and attempting to open this 
 causes some weird recursion. (I get the same result if I use the URL 
 'binfile' prefix.)
 
 What am I doing wrong here - am I using the correct syntax or failing to 
 encode/decode for the zip file definition string?
 Best,
 Keith..


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


RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
Yep, that's another great fix for the problem. Thanks, Jacqueline. S.

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of J. Landman Gay
 Sent: Monday, June 06, 2011 1:40 PM
 To: How to use LiveCode
 Subject: Re: the hilitedLine of list field isn't highlighted
 
 On 6/6/11 12:23 PM, Slava Paperno wrote:
  Jacqueline,
 
  You're responding to email script with obvious goofs, sorry--but a
 little
  later I posted a link to a working demo that shows the problem:
  http://russian.cornell.edu/FocusProblem_Slava.zip
 
  My tests are in Windows 7, but someone on the list confirmed that the
 demo
  fails the same way on his Mac. Does it fail for you?
 
 Yes, your example fails (Mac). I suspect that focus isn't actually
 activating the field. This works:
 
 on mouseup
focus on fld listfield
select line (the hilitedline of fld listfield) of fld listfield
 end mouseup
 
 Selecting text does activate the field. It sounds like a bug with the
 focus command.
 
 --
 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: Saving downloaded zip file: cpgz file type

2011-06-06 Thread Keith Clarke
Sorted - I dropped the string into TextWrangler and saved it with the same 
result, so it wasn't revXML failing to handle binary data.
A deeper dig into the web service documentation found that zip file string is 
base64encoded.
So, a quick decode before the save to URL binfile:... and all is well.
Best,
Keith..   

On 6 Jun 2011, at 18:44, Keith Clarke wrote:

 Thanks for the response Mark, the tip on binfile and the possible limitations 
 of revXML. 
 This particular XML file isn't too complex. So, although I have the STSXML 
 libary available, I'll first try extracting the zip file node string as a 
 text chunk.
 Best,
 Keith..
 
 On 6 Jun 2011, at 16:22, Mark Schonewille wrote:
 
 Hi Keith,
 
 Your zip file is corrupt. First of all, replace file: with binfile:.
 
 It is possible that the revXML external can't cope with binary data. In that 
 case, your zip file will stay corrupt and you'll have to retrieve the data 
 manually.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce
 
 On 6 jun 2011, at 17:03, Keith Clarke wrote:
 
 Hi folks,
 I'm downloading a zip file via a web service call - the file is embedded as 
 a long string within the ...resultzipFile node of the XML file, 
 accompanied by a set of nodes that name the (xml text) files that I should 
 find within the zipped payload. 
 
 So, I save this string out to to disk with...
 
 put revXMLNodeContents(tTree, tResultNode  /zipFile/) into URL 
 file:package.zip
 
 This creates a zip file on disk OK, but when when I open the archive, 
 instead of a list of files, I get a .cpgz file - and attempting to open 
 this causes some weird recursion. (I get the same result if I use the URL 
 'binfile' prefix.)
 
 What am I doing wrong here - am I using the correct syntax or failing to 
 encode/decode for the zip file definition string?
 Best,
 Keith..
 


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


Re: My first Livecode iOS App with Externals (SQLite)

2011-06-06 Thread Andy Henshaw
Im not sure if the iOS store is the same,  but what happens on the Mac App 
Store is after an update is released any reviews for the old version get pushed 
back to a second tab and a note says something like 'there are no reviews yet 
for this version'.  You can still click on the tab to show the old reviews, 
they dont vanish completely.

What also happens is,  say for example you have 10 ratings,  average 4*,  the 
new version retains this 10 review  4* rating on the front screen, until you 
get 5 more.  Once you have another 5 ratings (they dont have to be reviews,  a 
* click will do) the front screen shows you have 5 reviews and shows the 
average rating of those 5 so you can have an app with 50 reviews and a 5* 
rating drop down to 5 and a 3* review overnight if the update is not received 
well.  If you go into the description and click on the old reviews you get a 
full total (15 ratings + average).

Now just to add one more scenario,  when you update again,  the new version 
will show the 'no reviews for this version' message,  but the counter on the 
front screen and the average will be set to all reviews again,  so in this 
example 15 ratings and 4*.

So,  if you put out an update and someone writes a silly review,  another 
update will push that to the second screen and include it in your 'all time' 
average,  but if you have a really good set of reviews and ratings for the 
current version it is quite scary to put out a new release as all that 
disappears and you are at real risk of a silly review taking all the limelight.

Its made worse by different countries having quite different take up rates.  
Ive found it doesnt take long to get 5 reviews in the States,  but it can take 
much longer in Canada or the UK and an update hides all the reviews so most 
users will not see them!

Hope all that makes sense!

Andy


On 6 Jun 2011, at 19:21, Darren Jones wrote:

 Maybe i'm mistaken, but i'm pretty sure when I updated an app last week, in 
 the 
 changelog the developer had written Please leave more reviews as they 
 disappear 
 after update
 
 I've tried Googling it, but can't find anything.
 
 Then reviews are unusable. That cannot be the case. How could any app that 
 has 
 been updated ever have reviews?
 


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


Google Chrome and the Illusive Web Plugin

2011-06-06 Thread AcidJazz
I cross posted at runrev beginners forum, but thought folks here might be
interested to know that Google Chrome is now more popular than Safari, and
is actually approaching Firefox as the #2 browser world-wide.  It's not
there yet, but a quick inspection of the the figure below (taken from an
article on CNET last week) shows that Chrome keeps getting more popular, and
Firefox is getting less so.  Why am I posting this?Just airing my
ongoing frustration that the one browser that the web plugin never works on
is Google Chrome.   Will it ever work?Does anyone have any inside
information?   I have survived so far by asking people to download an
executable file (which admittedly sometimes has advantages over the plugin),
but there are times when the plugin is the solution.  I wish the good folks
at runrev would either fix it, or admit that they're never going to fix it.  
The runrev website says that in October (of 2010) they expect to start beta
testing a new version.  Is this happening?   I love LiveCode, but I wish
they would, to use an American expression, either fish or cut bait.

Cheers,
- Mark

http://runtime-revolution.278305.n4.nabble.com/file/n3577696/browser-share-2011-06-01.png
 


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Google-Chrome-and-the-Illusive-Web-Plugin-tp3577696p3577696.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: Google Chrome and the Illusive Web Plugin

2011-06-06 Thread Pierre Sahores
Hi Mark,

Chrome, is in the last weeks tests i did since Java applets are now supported 
on both OS X and Win platforms, more stable than Safari, faster and more 
ergonomic than Firefox. Would be useful (and if yes, urgent !) to get the 
plugin able to run on the Chrome platform...

Best,
--
Pierre Sahores

Le 6 juin 2011 à 20:49, AcidJazz a écrit :

 I cross posted at runrev beginners forum, but thought folks here might be
 interested to know that Google Chrome is now more popular than Safari, and
 is actually approaching Firefox as the #2 browser world-wide.  It's not
 there yet, but a quick inspection of the the figure below (taken from an
 article on CNET last week) shows that Chrome keeps getting more popular, and
 Firefox is getting less so.  Why am I posting this?Just airing my
 ongoing frustration that the one browser that the web plugin never works on
 is Google Chrome.   Will it ever work?Does anyone have any inside
 information?   I have survived so far by asking people to download an
 executable file (which admittedly sometimes has advantages over the plugin),
 but there are times when the plugin is the solution.  I wish the good folks
 at runrev would either fix it, or admit that they're never going to fix it.  
 The runrev website says that in October (of 2010) they expect to start beta
 testing a new version.  Is this happening?   I love LiveCode, but I wish
 they would, to use an American expression, either fish or cut bait.
 
 Cheers,
 - Mark
 
 http://runtime-revolution.278305.n4.nabble.com/file/n3577696/browser-share-2011-06-01.png
  
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Google-Chrome-and-the-Illusive-Web-Plugin-tp3577696p3577696.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
 



___
use-livecode mailing list
use-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 do you build the tabs like in the script editor

2011-06-06 Thread Mark Stuart
on Mon Jun 6 10:59:46 CDT 2011, J. Landman Gay wrote:
I think the OP means horizontal tabs, since that's what the LiveCode
editor uses.

That's as simple as setting up a tab button where each tab opens either 
the correct card, or shows the correct group.

Hi Jaqueline and Richard,
Thanx for the replies.
The tabs will be dynamically added and removed with a close button on
each tab. The document content on each tab is not editable, viewable
only.
So it seems like the tab object is not really a tab object in LC, but
rather a grouped object of buttons: one for the tab and one for the
Close image button.

I think I'll have to have a go at building this.
Does anyone have any more ideas on this?

Regards,
Mark Stuart

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


Re: Google Chrome and the Illusive Web Plugin

2011-06-06 Thread AcidJazz
Pierre,

So you are one of the beta testers?   That's great news.   I'm looking
forward to a more complete Chrome (and Live) experience.

Thanks! 
  Mark

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Google-Chrome-and-the-Illusive-Web-Plugin-tp3577696p3577940.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: How do you build the tabs like in the script editor

2011-06-06 Thread Bob Sneidar
It's actually more like a menu. One of the caveats (at least in the past, they 
may have fixed it) is that like some types of menus, picking the same thing as 
you picked last time does not generate the menuPick command, so you have to 
fudge it. 

Bob


On Jun 6, 2011, at 1:00 PM, Mark Stuart wrote:

 So it seems like the tab object is not really a tab object in LC, but
 rather a grouped object of buttons: one for the tab and one for the
 Close image button.


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


Re: iCloud Document Sync

2011-06-06 Thread Andy Henshaw
If it works as well as Dropbox,  and supports Windows as well as Mac it will be 
great.

Never got to grips with externals,  is there a guide somewhere as to how to get 
started.

Andy

On 6 Jun 2011, at 22:35, Andre Garzia wrote:

 thats what externals are for!
 
 On Mon, Jun 6, 2011 at 6:31 PM, Todd Geist t...@geistinteractive.comwrote:
 
 hhhmmm.
 
 I wonder if we will be able to use iCloud document Sync to keep Live Code
 apps in sync across multiple devices?
 
 Looks to me like if your data is in a document (or stack) and you keep that
 document in iCloud, then all your devices get the latest document.  I
 wonder
 if a sqlite db file will work?
 
 Todd
 
 
 Todd Geist
 --
 geist interactive http://www.geistinteractive.com
 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
 
 
 
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 use-livecode mailing list
 use-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 do you build the tabs like in the script editor

2011-06-06 Thread Jim Ault



On Jun 6, 2011, at 3:05 PM, Bob Sneidar wrote:

It's actually more like a menu. One of the caveats (at least in the  
past, they may have fixed it) is that like some types of menus,  
picking the same thing as you picked last time does not generate the  
menuPick command, so you have to fudge it.



This is true.
It is like clicking the same radio button in a group.
If the user makes the same choice in a menu, since there is no change,  
should the menupick report it?


If you want that, then take steps to manage the menuhistory, like

--- simple test for menu buttons and tab buttons

on menuPick pItemName
   ;put   pItemName  the ticks
end menuPick
on mousedown
   ;put down  \
  line (the menuhistory of me) of the text of me \
   the ticks
end mousedown

local  xLastUserChoiceForThisMenu
on mousedown
   ;put down  line (the menuhistory of me) of the text of me
   -- you can store the text of the last user action
   put (the menuhistory of me) into xLastUserChoiceForThisMenu
  --now you can compare each user repeat of a tab click
end mousedown
---
Hope this helps.

Jim Ault
Las Vegas



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


Re: [mobile:Android] mobileSetAllowedOrientations gives error

2011-06-06 Thread Roger Eller
On Mon, Jun 6, 2011 at 12:17 PM, J. Landman Gay wrote:

 On 6/5/11 5:00 PM, Roger Eller wrote:

  Have you heard anything on how the iOS/Android alignment is coming along
 at
 RunRev?


 Not really. The only info I have is that the team is swamped and working
 like mad. Presumably they are focusing mainly on all the bugs that affect
 *me*, but I'm not sure. :)


Lucky you!  ;-)



  No such luck.  Both portrait orientations and their menus are still
 opposite
 of what they should be.  My Android version is 2.3.3 and the Kernel
 version
 is 2.6.32.39, in-case that info is useful.


 I'm on 2.2 so I only get two working orientations, but they both display
 correctly. If yours don't, I'd say that's a bug. Upside down is a unique
 approach, but probably not what users expect. ;)


I noticed the Androide release note saying that 2.3 is required 'due to a
limitation of the OS'.  I have to call bs on this statement because other
apps on a 2.2 device can rotate fully.



 QCC time, I think.


It was previously reported on May 13, 2011, and flagged as 'Fixed' on June
1, 2011.
http://quality.runrev.com/show_bug.cgi?id=9540

I added my comment that it is STILL upside-down, but the QCC record is still
closed.



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


˜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: How do you build the tabs like in the script editor

2011-06-06 Thread Mark Wieder
Pete-

Monday, June 6, 2011, 3:31:02 PM, you wrote:

 It's still that way in 4.6.0.  Also note that the menuPick message for
 tabbed menus includes a parameter containing the previous tab selection as
 well as the one just clicked.  Wish they'd done that for ALL types of menu
 buttons.

Wait a minute. *You're* the one who complained that if the menuHistory
of option buttons changed to match the other buttons you'd have to
rewrite a bunch of code. Make up your mind. I'll go reopen the bug
report.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


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


Re: Calling a WSDL from liveCode (standalone) or Classic rev CGI?

2011-06-06 Thread Mark Wieder
Malte-

Monday, June 6, 2011, 7:21:33 AM, you wrote:

 I need to call a WSDL from within liveCode, ideally from a
 Revolution CGI. Did anyone of you do such a thing already? If so,
 mind to share a recipe? As far as I know there are soap calls
 involved. I would not want to switch that to php if that can be
 avoided.

You might be able to use my libSOAP library on revOnline. It's
probably just a syntax thing, but you don't call a WSDL - the WSDL
is the document that describes how you consume the web services.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


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


Re: How do you build the tabs like in the script editor

2011-06-06 Thread Peter Brigham MD
On Jun 6, 2011, at 6:49 PM, Jim Ault wrote:

 It is like clicking the same radio button in a group.
 If the user makes the same choice in a menu, since there is no change, should 
 the menupick report it?

If a tree falls in the forest and nobody is there to hear it, does it make a 
sound?

Or, If a man speaks in a forest and there is no woman around to hear him, is he 
still wrong?

-- 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: How do you build the tabs like in the script editor

2011-06-06 Thread Pete
Touche!  However changing menuPick to supply the previous selection for all
menu buttons wouldn't anybody's code one iota until they decided to make use
of that extra info.
Pete
Molly's Revenge http://www.mollysrevenge.com




On Mon, Jun 6, 2011 at 5:36 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Pete-

 Monday, June 6, 2011, 3:31:02 PM, you wrote:

  It's still that way in 4.6.0.  Also note that the menuPick message for
  tabbed menus includes a parameter containing the previous tab selection
 as
  well as the one just clicked.  Wish they'd done that for ALL types of
 menu
  buttons.

 Wait a minute. *You're* the one who complained that if the menuHistory
 of option buttons changed to match the other buttons you'd have to
 rewrite a bunch of code. Make up your mind. I'll go reopen the bug
 report.

 --
 -Mark Wieder
  mwie...@ahsoftware.net


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


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