Re: Cannot use Message Box

2011-05-08 Thread Pete
Well I guess that's the point.  We shouldn't be clearing globals that don'e
belong to LC so why on earth is LC even trying to look at system globals
that don;t belong to it?

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




On Sat, May 7, 2011 at 7:27 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 5/7/11 7:46 PM, Pete wrote:

 I didn't get the error message but  I'm sure the cause was the same.

 I'm thinking maybe this should be reported as a bug.  It's puzzling why LC
 should be chasing down global variables it doesn't care about and not
 being
 prepared to deal with slashes I guess is a side effect of that.  Plus
 there's lots of variables that have slashes in them.


 Those are system globals, and LiveCode allows you to use any of them. You
 can create your own too, actually. LiveCode does not discriminate, it just
 displays whatever the OS gives it. The variables will be different from one
 OS and machine to another. It isn't so much that LiveCode doesn't need those
 globals; LiveCode presents them in case you or your scripts want to use
 them.

 It may be a bug though that LiveCode doesn't deal correctly with system
 globals containing slashes. That part could be reported.

 You can clear system globals from LiveCode by simply putting empty into
 them, like any other variable; i.e. put empty into $#. You shouldn't need
 to restart the IDE if you do that. But since they are system globals,
 changing them may affect other apps that use them so go carefully.

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


XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Hi folks,
I need to start learning about how best to convert XML files to arrays.
There seems to be quite a lot of content around on this subject, so I'd really 
appreciate any pointers for where best to start my research.
What is the state of the art regarding tools and techniques - and are there any 
stacks or tutorials that have helped others with this?
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: Russian (UTF-8) in LC 4.6

2011-05-08 Thread Curt Ford
Hello Slava,

One of my projects worked pretty well with Russian, but it involved mostly 
typing in Russian, saving to a file as HTMLText, and later reading in that 
HTMLText for display in fields. The one place that involved manipulating the 
strings directly ('exploding' the words to display individual letters 
separately) was kind of a pain, especially in expressions that included a space 
or any punctuation. You can get a sense of what I was able to do at 

http://www.sonasoftware.com/vocab/

I hope the real Unicode support comes before too long - this issue is one of 
the main reasons I've started working in ObjectiveC for some projects.

Just in case you haven't seen it, Devin Asay has a nice summary at 

http://www.runrev.com/developers/lessons-and-tutorials/tutorials/unicode-in-revolution/

best

Curt






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


Re: XML to array - what are the options?

2011-05-08 Thread Jim Ault

On May 8, 2011, at 3:03 AM, Keith Clarke wrote:


Hi folks,
I need to start learning about how best to convert XML files to  
arrays.
There seems to be quite a lot of content around on this subject, so  
I'd really appreciate any pointers for where best to start my  
research.
What is the state of the art regarding tools and techniques - and  
are there any stacks or tutorials that have helped others with this?


A good start...
http://www.sonsothunder.com/home/home.htm#xmllib211

by Ken Ray
has an XML library that is state of the art.
I spoke with Ken last week at the conference and he said that his lib  
was not faster than the Rev XML, but had some better features.


The few times I did any work with parsing XML boiled down to text  
chunking rather than using an XML lib.



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: Cannot use Message Box

2011-05-08 Thread Mark Talluto
There is a bug in LC that is revealed when Google Chrome gets an update.  It 
make a $variable dirty.  If you restart your computer the issue will go away.  
Mark Waddingham is aware of the issue.  

-Mark
Canela Software

On May 7, 2011, at 4:45 PM, Pete p...@mollysrevenge.com wrote:

 Hi Phil,
 I'm thinking my problem was the same as yours.  If I right-clicked a control
 then selected the Edit Script option, the cursor changed to a watch and no
 script editor window was displayed.  Repeated the same thing and I got a
 script editor window.  I could edit scripts OK but if I clicked the
 Variables tab, the variables displayed briefly then disappeared again.
 
 I use Google Chrome as my main browser so I'll bet it was the same problem.
 Out of interest, do you know what the variable name was?
 
 Pete
 Molly's Revenge http://www.mollysrevenge.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Russian (UTF-8) in LC 4.6

2011-05-08 Thread Slava Paperno (Bridge)
Hi Curt! It was good to hear from a colleague.

I'd known about your Sona cards, but I forgot (or never knew) that they were
done in LiveCode. But I went through the Web site and was quite impressed.
The site is well done, too. (I used it in Chrome, and everything looked
great.) Good job!

Thanks also for the reference to Devin Asay's article. It told me almost
everything I needed to know about Russian in LC 4.6. I do understand (and
sympathize with) the LC developers as they struggle with these issues and
introduce workarounds and fixes. It'll be quite a burden for them to keep
the system backward compatible as they move towards full and natural support
for Unicode.

As you probably know, I use the custom fonts we designed to show accented
vowels in all Russian texts in my software publications. Conversion from
accented text to unaccented text, from accented lower case to accented upper
case vowels, translating keystrokes to offer the Student keyboard layout,
normalizing strings for dictionary lookups and sorting, etc. is part of just
about every step in programming and using my publications. Variables,
arrays, property lists, and various loops are used everywhere. So when I saw
Devin's two-long-lines script that's needed just to assign a Russian word to
a field, and read about accessing a Russian character as a two-character
sequence, and also shipping them around as HTML entities, I had to scratch
my head.

I'll stay around this list and learn what I can about LiveCode this summer.

Gratefully,

Slava

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of Curt Ford
 Sent: Sunday, May 08, 2011 6:56 AM
 To: use-livecode@lists.runrev.com
 Subject: Re: Russian (UTF-8) in LC 4.6
 
 Hello Slava,
 
 One of my projects worked pretty well with Russian, but it involved
 mostly typing in Russian, saving to a file as HTMLText, and later
 reading in that HTMLText for display in fields. The one place that
 involved manipulating the strings directly ('exploding' the words to
 display individual letters separately) was kind of a pain, especially
 in expressions that included a space or any punctuation. You can get a
 sense of what I was able to do at
 
 http://www.sonasoftware.com/vocab/
 
 I hope the real Unicode support comes before too long - this issue is
 one of the main reasons I've started working in ObjectiveC for some
 projects.
 
 Just in case you haven't seen it, Devin Asay has a nice summary at
 
 http://www.runrev.com/developers/lessons-and-
 tutorials/tutorials/unicode-in-revolution/
 
 best
 
 Curt


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


Re: XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Jim. 
Thanks for the response. 

Apologies - my question should have been more specific - about concepts, 
techniques and examples of applying arrays to manipulating XML data, rather 
than tools.   

Notwithstanding that, it's good to know that Ken's library is the state of the 
art, as I been using the paid-for v2.1, with its excellent workshop tool 
(alongside Mark Wider's libSOAP library) to interrogate various web services 
and gain a basic understanding of XML data files I want to target. 

With these, I now have found some potentially interesting XML data that I want 
to process. So, I'm trying to learn how I might apply arrays to this data, in 
the following specific scenarios:

1. Display data, from a specific node in a single XML file, a set number of 
node layers, in rTree as a 'node outline' or 'flattened' into a data grid.

2. Create a new 'related' data set from two XML files with common nodes. If the 
source data was in database tables, CSV files or spreadsheets, I'd be in my 
comfort zone and know what to do. I understand outlines and can see how I could 
combine XML files manually - and so could probably build-up some 
text-manipulation scripts from scratch. But there must be a simpler, 
higher-level, repeatable and more efficient way of doing this.

Any ideas gratefully received.
Best,
Keith.. 
 
On 8 May 2011, at 14:58, Jim Ault wrote:

 On May 8, 2011, at 3:03 AM, Keith Clarke wrote:
 
 Hi folks,
 I need to start learning about how best to convert XML files to arrays.
 There seems to be quite a lot of content around on this subject, so I'd 
 really appreciate any pointers for where best to start my research.
 What is the state of the art regarding tools and techniques - and are there 
 any stacks or tutorials that have helped others with this?
 
 A good start...
 http://www.sonsothunder.com/home/home.htm#xmllib211
 
 by Ken Ray
 has an XML library that is state of the art.
 I spoke with Ken last week at the conference and he said that his lib was not 
 faster than the Rev XML, but had some better features.
 
 The few times I did any work with parsing XML boiled down to text chunking 
 rather than using an XML lib.
 
 
 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: XML to array - what are the options?

2011-05-08 Thread stephen barncard
Search the archives - Trevor has released his xml-to-array and array-to-xml
routines to this list. They were short enough to paste into an email.

On 8 May 2011 09:00, Keith Clarke keith.cla...@clarkeandclarke.co.ukwrote:

 Jim.
 Thanks for the response.

 Apologies - my question should have been more specific - about concepts,
 techniques and examples of applying arrays to manipulating XML data, rather
 than tools.

 Notwithstanding that, it's good to know that Ken's library is the state of
 the art, as I been using the paid-for v2.1, with its excellent workshop tool
 (alongside Mark Wider's libSOAP library) to interrogate various web services
 and gain a basic understanding of XML data files I want to target.

 With these, I now have found some potentially interesting XML data that I
 want to process. So, I'm trying to learn how I might apply arrays to this
 data, in the following specific scenarios:

 1. Display data, from a specific node in a single XML file, a set number of
 node layers, in rTree as a 'node outline' or 'flattened' into a data grid.

 2. Create a new 'related' data set from two XML files with common nodes. If
 the source data was in database tables, CSV files or spreadsheets, I'd be in
 my comfort zone and know what to do. I understand outlines and can see how I
 could combine XML files manually - and so could probably build-up some
 text-manipulation scripts from scratch. But there must be a simpler,
 higher-level, repeatable and more efficient way of doing this.

 Any ideas gratefully received.
 Best,
 Keith..

 On 8 May 2011, at 14:58, Jim Ault wrote:

  On May 8, 2011, at 3:03 AM, Keith Clarke wrote:
 
  Hi folks,
  I need to start learning about how best to convert XML files to arrays.
  There seems to be quite a lot of content around on this subject, so I'd
 really appreciate any pointers for where best to start my research.
  What is the state of the art regarding tools and techniques - and are
 there any stacks or tutorials that have helped others with this?
 
  A good start...
  http://www.sonsothunder.com/home/home.htm#xmllib211
 
  by Ken Ray
  has an XML library that is state of the art.
  I spoke with Ken last week at the conference and he said that his lib was
 not faster than the Rev XML, but had some better features.
 
  The few times I did any work with parsing XML boiled down to text
 chunking rather than using an XML lib.
 
 
  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




-- 



Stephen Barncard
San Francisco Ca. USA

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


Re: Cannot use Message Box

2011-05-08 Thread paul foraker
In my case, I continue to have the problem (cannot execute from Message Box)
after restarting the computer, and launching LiveCode without having
launched Chrome. (I wonder if Chrome is doing something without having been
launched.)

So, I used fast user switching, switched to another user and launched
LiveCode for the first time, registered, and it works! The Message Box is
functional.

I'll try the deleting bad globals idea in the original user space.

Much gratitude for the support here. This is a terrific community.

-- Paul

On Sun, May 8, 2011 at 7:52 AM, Mark Talluto use...@canelasoftware.comwrote:

 There is a bug in LC that is revealed when Google Chrome gets an update.
  It make a $variable dirty.  If you restart your computer the issue will go
 away.  Mark Waddingham is aware of the issue.

 -Mark
 Canela Software

 On May 7, 2011, at 4:45 PM, Pete p...@mollysrevenge.com wrote:

  Hi Phil,
  I'm thinking my problem was the same as yours.  If I right-clicked a
 control
  then selected the Edit Script option, the cursor changed to a watch and
 no
  script editor window was displayed.  Repeated the same thing and I got a
  script editor window.  I could edit scripts OK but if I clicked the
  Variables tab, the variables displayed briefly then disappeared again.
 
  I use Google Chrome as my main browser so I'll bet it was the same
 problem.
  Out of interest, do you know what the variable name was?
 
  Pete
  Molly's Revenge http://www.mollysrevenge.com
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 

White Feather Software
www.whitefeather.com
Cell: 408-391-1480
Skype: pwforaker
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Cannot use Message Box

2011-05-08 Thread paul foraker
I too am thinking this Message Box problem is somehow related to problems
with the Script Editor.

When I open a script, I cannot display the variables. When I click on the
Variables tab, I get

$Apple_PubSub_Socket_Render

displaying for a brief moment and then whichever tab was selected previously
gets reselected.

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


Re: XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Thanks Stephen, 
A mutli-dimensional array primer and worked-example stack working on XML file 
data - just what I needed! 

It turned out to be a newsletter item from 2008 - only linked from the old 
revolution use list. 
Unfortunately, those links are broken and/or there is a problem with the 
newsletter archive page - which is currently rendering in a strange way 
http://www.runrev.com/developers/resources/newsletters/ ?!?

So, here's a direct link for the next seeker of array/XML enlightenment who 
passes this way... http://runrev.com/newsletter/july/issue53/newsletter1.php 
Best,
Keith..

On 8 May 2011, at 17:41, stephen barncard wrote:

 Search the archives - Trevor has released his xml-to-array and array-to-xml
 routines to this list. They were short enough to paste into an email.
 
 On 8 May 2011 09:00, Keith Clarke keith.cla...@clarkeandclarke.co.ukwrote:
 
 Jim.
 Thanks for the response.
 
 Apologies - my question should have been more specific - about concepts,
 techniques and examples of applying arrays to manipulating XML data, rather
 than tools.
 
 Notwithstanding that, it's good to know that Ken's library is the state of
 the art, as I been using the paid-for v2.1, with its excellent workshop tool
 (alongside Mark Wider's libSOAP library) to interrogate various web services
 and gain a basic understanding of XML data files I want to target.
 
 With these, I now have found some potentially interesting XML data that I
 want to process. So, I'm trying to learn how I might apply arrays to this
 data, in the following specific scenarios:
 
 1. Display data, from a specific node in a single XML file, a set number of
 node layers, in rTree as a 'node outline' or 'flattened' into a data grid.
 
 2. Create a new 'related' data set from two XML files with common nodes. If
 the source data was in database tables, CSV files or spreadsheets, I'd be in
 my comfort zone and know what to do. I understand outlines and can see how I
 could combine XML files manually - and so could probably build-up some
 text-manipulation scripts from scratch. But there must be a simpler,
 higher-level, repeatable and more efficient way of doing this.
 
 Any ideas gratefully received.
 Best,
 Keith..
 
 On 8 May 2011, at 14:58, Jim Ault wrote:
 
 On May 8, 2011, at 3:03 AM, Keith Clarke wrote:
 
 Hi folks,
 I need to start learning about how best to convert XML files to arrays.
 There seems to be quite a lot of content around on this subject, so I'd
 really appreciate any pointers for where best to start my research.
 What is the state of the art regarding tools and techniques - and are
 there any stacks or tutorials that have helped others with this?
 
 A good start...
 http://www.sonsothunder.com/home/home.htm#xmllib211
 
 by Ken Ray
 has an XML library that is state of the art.
 I spoke with Ken last week at the conference and he said that his lib was
 not faster than the Rev XML, but had some better features.
 
 The few times I did any work with parsing XML boiled down to text
 chunking rather than using an XML lib.
 
 
 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
 
 
 
 
 -- 
 
 
 
 Stephen Barncard
 San Francisco Ca. USA
 
 more about sqb  http://www.google.com/profiles/sbarncar
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


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


[ANN] revIgniter v1.3.18b

2011-05-08 Thread Ralf Bitter

revIgniter v1.3.18b has been released.

Since the announcement of version 1.3.10b in September 2010
I kept silent to avoid augmented noise on this list.
Now I thought it may be time again and appropriate to remind
those interested in revIgniter that the framework is still alive and
continually improved.

So, here are the news:

revIgniter version 1.3.18b includes modifications of the Captcha
library, the Formvalidation library and the sitelinks plugin.
This means that the Captcha library now provides two flavors
of captchas, the rigRequiredR form validation rule accounts
for prefilled form fields, there are three new form validation
rules and the sitelinks plugin now additionally enables you to
use images instead of text for your navigation links.
Furthermore there are two bug fixes. Model file names are
no longer restricted to lowercase letters. Email message IDs
are now generated correctly.

Info and download as always at: http://www.revigniter.com/


Ralf

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


Re: [ANN] revIgniter v1.3.18b

2011-05-08 Thread Andre Garzia
I just want once again to say my appreciations, kudos and positive things
about Ralf and RevIgniter.

This framework is YEARS beyond any other web application framework built for
LiveCode and yes, I am counting my own frameworks in here. RevIgniter is
such a pleasure to use that makes delivering web application with RevServer
a fun endeavour. Not only it is fun to use but it is also robust and well
designed, actually, the active record design is so good that I wish it would
work on the desktop.

If anyone here is using RevServer to build web applications, you can't do
anything more positive for your own productivity than checking this out.

Ralf, thanks again for the hard work, this library rocks!

On Sun, May 8, 2011 at 12:14 PM, Ralf Bitter ra...@dimensionb.de wrote:


 revIgniter v1.3.18b has been released.

 Since the announcement of version 1.3.10b in September 2010
 I kept silent to avoid augmented noise on this list.
 Now I thought it may be time again and appropriate to remind
 those interested in revIgniter that the framework is still alive and
 continually improved.

 So, here are the news:

 revIgniter version 1.3.18b includes modifications of the Captcha
 library, the Formvalidation library and the sitelinks plugin.
 This means that the Captcha library now provides two flavors
 of captchas, the rigRequiredR form validation rule accounts
 for prefilled form fields, there are three new form validation
 rules and the sitelinks plugin now additionally enables you to
 use images instead of text for your navigation links.
 Furthermore there are two bug fixes. Model file names are
 no longer restricted to lowercase letters. Email message IDs
 are now generated correctly.

 Info and download as always at: http://www.revigniter.com/


 Ralf

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


Re: Convert Packet decimals comp-3 and comp-6

2011-05-08 Thread Peter W A Wood
Hi Josep

 The file come from a PC-MSDOS with a old ACUCOBOL-GT application, it's the
 customer file data, I have the File Definition with the structure of record.

Then the test will be ASCII encoded so you don't need to worry about having to 
convert the text;

 It's a one-off conversion but I have many files to convert.
 
 So my plan was read the file as chunks of bytes, and for each record (divide
 the lenght of the file by the lenght of a record) get the chars for each
 field. Making a conversion for the comp-3 and comp-6 data.

That sounds feasible. One thing that you may need to watch out for is that the 
records may have been padded by COBOL when written. For example, a PIC9(5) 
COMP-3 file could possibly be padded with one byte so that it takes a multiple 
of either 2 or 4 bytes.

Regards

Peter



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


Mouse clicks and cursor change lost after certain actions

2011-05-08 Thread David Glass
That subject is pretty bad, but I don't know how else to describe the 
issue. :oops:


I have a multi-paned interface with one horizontal splitter, and one 
vertical splitter. The code for the horizontal splitter looks like this:


-
on mouseenter
   if the tool is browse tool then
  lock cursor
  set the cursor to 64
   end if

end mouseenter

on mouseleave
   if the tool is browse tool then
  unlock cursor
   end if

end mouseleave

on mousemove
   if the tool is browse tool then
  repeat until the mouse is up
 if item 2 of the mouseloc  196 and item 2 of the mouseloc 
 584 then
set the loc of me to item 1 of the loc of me, item 2 of 
the mouseloc

--rect = left, top, right, bottom
--adjust the stuff above the splitter
set the rect of group DataGrid 2 to the left of group 
DataGrid 2, the top of group DataGrid 2, the right of group 
DataGrid 2, the top of me

--adjust the stuff below the splitter
set the rect of group DataGrid 3 to the left of group 
DataGrid 3, the bottom of me, the right of group DataGrid 3, the 
bottom of group DataGrid 3

 end if

  end repeat
   end if

end mousemove

---

This works as expected, and the code for the vertical splitter is the 
same (with obvious changes for resizing the vertical instead of the 
horizontal).


The problem is that after doing any resizing -- so the stuff in 
'mousemove' has finished, and the cursor has been unlocked (mouseleave) 
-- the mouse stops behaving:


1. the cursor will not change if I move the mouse into the splitter 
control (mouseenter)
1.1 clicking anywhere in the card/window 'wakes' the cursor up, and the 
mouseenter code will then fire when appropriate.


2. the first click is swallowed by...something. I haven't figured out 
where it goes. It doesn't matter where I click, the click doesn't seem 
to register.
2.1. I can click on the Edit button, and I am not released from Browse 
mode until I click the Edit button a second time.
2.2. If I try to click on the code editor hiding behind the active card, 
it does not come to the front until I click it again.


Interestingly, if I ignore that the cursor hasn't visibly changed, and 
drag the splitter around, it does move (and the cursor changes when the 
splitter first starts to move), and then when I release the mouse button 
the cursor behaves properly so I can immediately put the cursor in the 
splitter and the cursor changes. Until I do it again, and then I'm back 
to the behavior above. So it almost works out to 'every other time it's 
right.' :?


This description isn't much better than the subject, but I'm not sure 
how else to describe the behavior I'm seeing.


--
David Glass - Gray Matter Computing
graymattercomputing.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: Mouse clicks and cursor change lost after certain actions

2011-05-08 Thread Terry Judd
Hi David - Maybe something to do with using a repeat loop within the
mouseMove handler. Here's a script for a split pane (horizonal split)
display out of a stack of mine that does something similar (ignore the
internal details of the mouseDown handler) and uses a flag to track the
status of the mouse rather than a repeat loop.

HTH,

Terry...


local pDown, pYoffset

on mouseEnter
   lock cursor
   set the cursor to 8113
end mouseEnter

on mouseLeave
   put false into pDown
   unlock cursor
end mouseLeave

on mouseDown
   put true into pDown
   put the mouseV -(the top of me) into pYoffset
end mouseDown

on mouseUp
   put false into pDown
end mouseUp

on mouseRelease
   put false into pDown
end mouseRelease

on mouseMove x,y
   if pDown then
  lock screen
  set the top of me to min(540,max(y-pYoffset,203))
  set the top of grp messageDetails to the bottom of me -2
  put the rect of fld message into tRect
  put 701 into item 4 of tRect
  set the rect of fld message to tRect
  put the rect of grp announcements_DG into tRect
  put the top of me +1 into item 4 of tRect
  set the rect of grp announcements_DG to tRect
  unlock screen
   end if
end mouseMove



On 09/05/2011 02:37 PM, David Glass dgl...@graymattercomputing.com
wrote:

 That subject is pretty bad, but I don't know how else to describe the
 issue. :oops:
 
 I have a multi-paned interface with one horizontal splitter, and one
 vertical splitter. The code for the horizontal splitter looks like this:
 
 -
  on mouseenter
 if the tool is browse tool then
lock cursor
set the cursor to 64
 end if
 
  end mouseenter
 
  on mouseleave
 if the tool is browse tool then
unlock cursor
 end if
 
  end mouseleave
 
  on mousemove
 if the tool is browse tool then
repeat until the mouse is up
   if item 2 of the mouseloc  196 and item 2 of the mouseloc
  584 then
  set the loc of me to item 1 of the loc of me, item 2 of
 the mouseloc
  --rect = left, top, right, bottom
  --adjust the stuff above the splitter
  set the rect of group DataGrid 2 to the left of group
 DataGrid 2, the top of group DataGrid 2, the right of group
 DataGrid 2, the top of me
  --adjust the stuff below the splitter
  set the rect of group DataGrid 3 to the left of group
 DataGrid 3, the bottom of me, the right of group DataGrid 3, the
 bottom of group DataGrid 3
   end if
 
end repeat
 end if
 
  end mousemove
 
 ---
 
 This works as expected, and the code for the vertical splitter is the
 same (with obvious changes for resizing the vertical instead of the
 horizontal).
 
 The problem is that after doing any resizing -- so the stuff in
 'mousemove' has finished, and the cursor has been unlocked (mouseleave)
 -- the mouse stops behaving:
 
 1. the cursor will not change if I move the mouse into the splitter
 control (mouseenter)
 1.1 clicking anywhere in the card/window 'wakes' the cursor up, and the
 mouseenter code will then fire when appropriate.
 
 2. the first click is swallowed by...something. I haven't figured out
 where it goes. It doesn't matter where I click, the click doesn't seem
 to register.
 2.1. I can click on the Edit button, and I am not released from Browse
 mode until I click the Edit button a second time.
 2.2. If I try to click on the code editor hiding behind the active card,
 it does not come to the front until I click it again.
 
 Interestingly, if I ignore that the cursor hasn't visibly changed, and
 drag the splitter around, it does move (and the cursor changes when the
 splitter first starts to move), and then when I release the mouse button
 the cursor behaves properly so I can immediately put the cursor in the
 splitter and the cursor changes. Until I do it again, and then I'm back
 to the behavior above. So it almost works out to 'every other time it's
 right.' :?
 
 This description isn't much better than the subject, but I'm not sure
 how else to describe the behavior I'm seeing.

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
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: command line examples

2011-05-08 Thread Peter W A Wood
Hello Todd

On 6 May 2011, at 22:52, Todd Geist wrote:

 Hello,
 
 I had nice long chat with Richard Gaskin yesterday. Amongst the myriad of
 topics we discussed was how to build simple apps that could be started from
 the command line and run silently in the back ground.  I have been trying to
 do a little R and D on this idea, but I am stymied by the fact that I can't
 even get an app to launch via the command line.  I have searched the docs
 and searched on line, and It seems as though this can be done. But I can't
 find any really documentation on it, or any examples.
 
 I have an standalone called served.app  What is the terminal command that
 will launch it?  Are there special messages sent to the stack when it is
 launched this way?  What are the options that can be passed?  I have heard a
 rumor that there is  an option -ui, but I have not as yet seen proof of
 it's existence.
 
 Does anyone have any examples or articles on how this is done?

Once you have created the standalone, you need to do the following:

1. Select served.app in the finder.
2. Right-click and select Show Package Contents
3. You will find a file called served that finder describes as a Unix 
executable.
4. Copy the file to the folder from which you want to run it.
5. Open terminal
6. Change to the folder (in 4 above).
7. ./served -ui 

I found out how to do this from a post on the RunRev Forums from R.Robert

Hope this is what you were looking for.

Regards

Peter


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


Re: Mouse clicks and cursor change lost after certain actions

2011-05-08 Thread David Glass

That was it!  Weird.

Thanks!

On 05/08/2011 9:51 PM, Terry Judd wrote:

 Maybe something to do with using a repeat loop within the
mouseMove handler.


--
David Glass - Gray Matter Computing
graymattercomputing.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: Mouse clicks and cursor change lost after certain actions

2011-05-08 Thread J. Landman Gay

On 5/8/11 11:37 PM, David Glass wrote:

That subject is pretty bad, but I don't know how else to describe the
issue. :oops:

I have a multi-paned interface with one horizontal splitter, and one
vertical splitter. The code for the horizontal splitter looks like this:

-
on mouseenter
if the tool is browse tool then
lock cursor
set the cursor to 64
end if

end mouseenter

on mouseleave
if the tool is browse tool then
unlock cursor
end if

end mouseleave

on mousemove
if the tool is browse tool then
repeat until the mouse is up
if item 2 of the mouseloc  196 and item 2 of the mouseloc  584 then
set the loc of me to item 1 of the loc of me, item 2 of the mouseloc
--rect = left, top, right, bottom
--adjust the stuff above the splitter
set the rect of group DataGrid 2 to the left of group DataGrid 2,
the top of group DataGrid 2, the right of group DataGrid 2, the top
of me
--adjust the stuff below the splitter
set the rect of group DataGrid 3 to the left of group DataGrid 3,
the bottom of me, the right of group DataGrid 3, the bottom of group
DataGrid 3
end if

end repeat
end if

end mousemove

---

This works as expected, and the code for the vertical splitter is the
same (with obvious changes for resizing the vertical instead of the
horizontal).

The problem is that after doing any resizing -- so the stuff in
'mousemove' has finished, and the cursor has been unlocked (mouseleave)
-- the mouse stops behaving:


Terry showed a better way to do this. I think he was right about the 
problem. MouseMove is sent continually and should be used instead of a 
repeat loop; combining the two is probably setting up some kind of 
message queue that needs to clear before anything else happens. A repeat 
loop locks out all messages until it finishes, and after that the queued 
messages are handled. The best way to manage things is to use mousemove 
to do all your resizing; it is sent repeatedly so you don't need any 
loops. And in between each mousemove message the engine has a chance to 
do housekeeping and cleans up the queue.


BTW, you don't need to check the tool. The scripts won't run unless 
the tool is the browse tool; otherwise you're in edit mode.


I have a web page discussing issues with checking the state of the mouse 
in a repeat loop, which should be avoided whenever possible:


http://www.hyperactivesw.com/polling.html


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