Environment variable displayed in the debugger

2010-11-11 Thread James Hurley
I just upgraded to 4.5.1 and was surprised to find that the  
environment variables ($LOGNAME, $SHELL, $PATH etc.) still show up in  
the debugger ahead of the script variables.


I had assumed that that was something that going to be changed back to  
the practice employed in 4.0 where they were not shown.


Am I missing something? Is there a setting that will make these go  
away? For me it decrees the valuable real estate for the display of  
the script variables in the debugger. Or this this a FEATURE which I  
just don't recognize as such?


Jim Hurley

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


Re: Flipping graphic with a Key

2010-10-13 Thread James Hurley


Message: 29
Date: Wed, 13 Oct 2010 23:33:06 +0200
From: Michael Kristensen 
Subject: Re: Flipping graphic with a Key
To: use-revolution@lists.runrev.com
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi

Thanks for the reply's

I m sorry to report that neither

 flushEvents("autoKey")
 flushEvents("all")

or

Jacquelines script:

on keydown pkey
  if pkey = "f" then
doTheFlipping
send "checkKey" to me in 0
  else
pass keydown
  end if
end keydown

command checkKey
  if "102" is in keysdown() then -- 102 is the keycode for "f"
send "checkKey" to me in 250 milliseconds -- adjust timing here
  else
doTheFlipping
  end if
end checkKey


...did have any effect on stopping the repeated keyDown.


Mic


How about:

   put the pendingmessages into tPendingMsgs
   repeat for each line tLine in tPendingMsgs
  cancel item 1 of tLine
   end repeat

Jim Hurley



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


Debugger showing globals

2010-09-28 Thread James Hurley

Anyone else experiencing this?

The debugger is showing all globals in LiveCode 4.5 along with the  
local variables. (That preference is not selected.)


It doesn't happen in 4.0

Jim 
___

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


Re: What have I done?

2010-09-27 Thread James Hurley



Message: 18
Date: Mon, 27 Sep 2010 09:59:01 -0700
From: Mark Wieder 
Subject: Re: What have I done?
To: How to use Revolution 
Message-ID: <28318156578.20100927095...@ahsoftware.net>
Content-Type: text/plain; charset=us-ascii

Devin-

Monday, September 27, 2010, 9:47:13 AM, you wrote:


Luxury! I dream about having a register! All I have is the bottom
of a rusty soup tin, and I have to scratch tick marks on it with a
broken stick!


Wow! A soup tin... all I have is... aw, I forget what I have...


Does that make you forget full?

Jim

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


What have I done?

2010-09-27 Thread James Hurley

Craig and Mark,

That was the problem. I have a vague recollection  of changing that in  
the preference dialog box just to see what would happen, and then the  
phone rang. By the time I got of the phone my short term memory bank  
had been reprogrammed. I used to have about 68 K short term memory. It  
has dwindled to about 8 k.


Thanks,

Jim


P.S.

I can run preexisting scripts, I just can't make any changes. It is  
as if I have lost privileges.


Jim



Rev 4.0 is in revolt. (LiveCode is fine.)

I write in  script:

 put 3 into x

and when I try to compile I get a message "Can't create a variable  
by that name."


Or any other name for that matter.

I think I may have messed up the global variables. They are the  
same as before except for the global Each.


Formerly it had the values: "each,global" but is now they are  
"msg,global"


I can't find a way to reset it and I don't really know that that is  
the source of my problem.


Any suggestion, short of reinstalling?

Jim

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


What have I done?

2010-09-27 Thread James Hurley

P.S.

I can run preexisting scripts, I just can't make any changes. It is as  
if I have lost privileges.


Jim



Rev 4.0 is in revolt. (LiveCode is fine.)

I write in  script:

  put 3 into x

and when I try to compile I get a message "Can't create a variable  
by that name."


Or any other name for that matter.

I think I may have messed up the global variables. They are the same  
as before except for the global Each.


Formerly it had the values: "each,global" but is now they are  
"msg,global"


I can't find a way to reset it and I don't really know that that is  
the source of my problem.


Any suggestion, short of reinstalling?

Jim

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


What have I done?

2010-09-27 Thread James Hurley

Rev 4.0 is in revolt. (LiveCode is fine.)

I write in  script:

   put 3 into x

and when I try to compile I get a message "Can't create a variable by  
that name."


Or any other name for that matter.

I think I may have messed up the global variables. They are the same  
as before except for the global Each.


Formerly it had the values: "each,global" but is now they are  
"msg,global"


I can't find a way to reset it and I don't really know that that is  
the source of my problem.


Any suggestion, short of reinstalling?

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


Re: Invisible HTMLText Character?

2010-09-22 Thread James Hurley

Scott,

Here is a thought.

Try this:

Create two narrow fields. The first field consists of one line of text  
that wraps into two lines in the field. (Perhaps a bullet and you want  
to indent the wrapped portion of the line.)


Run this script:

on mouseUp
   put "" into field 2
   wait 10 tick --So you can see the changes
   put the htmltext of field 1 into tHTMLtext
   --Find out where the lines break using the formattedText
   put the formattedtext  of field 1 into tText
   --The first line is the beginning of the bullet
   --The second line is to be indented.
   put line 2 of tText  into tString
   put the offset(tString, tHTMLtext) into tNum
   --Create nonbreaking spaces
   --If you use breaking spaces they are ignored by HTML
   --at the start of a line.
   repeat 4 times --More or less
  put " " after temp
   end repeat
   put temp before char tNum in tHTMLtext
   set the htmltext of field 2 to tHTMLtext
end mouseUp

The second line (the wrapped line) will be indented by 4 nonbreaking  
spaces beyond the first line.


There may be problems if there is formatting in the wrapped line.

My apologies to and the other respondents to this thread. Sorry, I  
haven't been paying attention.


Jim Hurley

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


Re: Accessing Google Maps

2010-09-09 Thread James Hurley

-

Message: 9
Date: Wed, 8 Sep 2010 20:00:58 +0200
From: Mark Schonewille 
Subject: Re: Accessing Google Maps
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=us-ascii

Jim,

put "http://maps.google.com/maps?hl=en&client=safari&pwst=1&rls=en&q=1210+Chestnut+Ln,+Davis+Ca,+95616 
" into myUrl

launch url myUrl


Thanks Mark. That was indeed simple.

Do you have any suggestions on how I might make this cross platform?  
Works wonderfully well on the Mac, but I need the a new browser client  
for the PC, Internet Explorer?


What does this

 "http://maps.google.com/maps?hl=en&client=safari&pwst=1&rls=en&q=";

become on Windows?

Jim




On older versions of RunRev, use revGoUrl instead of launch url.

--
Best regards,

Mark Schonewille

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

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce
Create installers for Mac and Windows on *every* Rev-compatible  
platform. No additional software needed.


On 8 sep 2010, at 19:55, James Hurley wrote:

I assume this is simple. I want to select an address from a list,  
say 1210 Cheastnut Ln, Davis Ca, 95616 from which I would construct  
the address for a Google map:


http://maps.google.com/maps?hl=en&client=safari&pwst=1&rls=en&q=1210+Chestnut+Ln,+Davis+Ca,+95616


How do I then open this url in Safari?

Thanks,

Jim





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


Accessing Google Maps

2010-09-08 Thread James Hurley
I assume this is simple. I want to select an address from a list, say  
1210 Cheastnut Ln, Davis Ca, 95616 from which I would construct the  
address for a Google map:


http://maps.google.com/maps?hl=en&client=safari&pwst=1&rls=en&q=1210+Chestnut+Ln,+Davis+Ca,+95616


How do I then open this url in Safari?

Thanks,

Jim

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


Re: Converting to title case

2010-08-26 Thread James Hurley


Message: 3
Date: Wed, 25 Aug 2010 15:44:01 -0300
From: Andre Garzia 
Subject: Re: Converting to title case
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

jim,

why not this:

put fld "list" into tContent

repeat for each word tName in tContent
 replace tName with (toUpper(char 1 of tName) & toLower(char 2 to -1  
of

tName))
end repeat

This will capitalize all your names right?

--
http://www.andregarzia.com All We Do Is Code.



Andrea,

Thanks for your suggestion. An interesting alternative.

But don't forget the "container" at the end of the "replace" command.  
If the container is tContent there will be considerable overlap.


For example, if tName is say "Auburn," a city in our county, and there  
were 1,000 instances of that word (since this is an election DB there  
will be thousands of instances of each city in the county) you will be  
replacing 1000 instance of "auburn" with "Auburn" and doing so 1000  
times. That is 1,000,000 replacements--most of them of course will be  
substituting "Auburn" for "Auburn."


What one could do is build a dictionary of the DB and then replace  
each incidence of each word from the dictionary. The advantage of this  
would be that there would be no danger of overlooking a white space  
that i hadn't recognized.  But the down side is that it is VERY slow.  
I waited an hour and it hadn't finished.


On the other hand, running through each character, even through there  
are 26,631,931 of them, takes only about 40 seconds on my very slow  
Mac Mini. But I only have to do it once for each new release of the  
election DB, so I have no incentive to optimize the script. My only  
worry, as I said, was that I hadn't overlooked some white spaces  
besides tab, space, enter and return.


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


Converting to title case

2010-08-25 Thread James Hurley
I do a lot of election database work for local candidates. The DB  
comes from the county and is quite large. All the data is upper case  
which I find ugly on a campaign mailer label.


I have a stack (below) which converts a text field to Title Case   
which, for my purposes, is a capital letter after every appearance of  
a white space. I know there are some sneaky ascii codes out there that  
masquerade as white spaced. Are there some I should consider besides:

'
space
return
enter
tab

(I handle proper names like MacDonald, O'Connors separately when  
constructing label data for campaign mailers. Within RunRev I  
construct a Google search


 put "http://www.google.com/search?q="; & tLastName into tName
 get url  tName

and then parse "it" for capitalization of the name in question. A  
little slow, but it works well enough. God, I love RunRev's  
versatility.)


So any suggestions for sneaky white spaces to look out for?

JIm

on mouseUp
   put field 2 into tList
   put toLower(tList) into tList

   --Define white spaces
   put tab,return,cr,enter,space into tWhiteSpaces
   --Are these all I should look out for?
   repeat for each item tItem in tWhiteSpaces
  put true into aWhiteSpace[tItem]
   end repeat

   --Insert capital after white space
   put space into tPrevious
   repeat for each char tChar in tList
  switch
 case aWhiteSpace[tPrevious]
put toUpper(tChar)  after results
break
 default
put tChar after results
  end switch
  put tChar into tPrevious
   end repeat

   put results into field 3
end mouseUp



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


Re: ANN] Translating your Rev stacks into web apps

2010-07-12 Thread James Hurley


Message: 29
Date: Sun, 11 Jul 2010 23:38:02 -0500
From: Jerry Daniels 
Subject: [ANN] Translating your Rev stacks into web apps
To: How to Use Revolution 
Message-ID: <638131e5-5c56-4c31-b694-e3e96f5b3...@me.com>
Content-Type: text/plain; charset=us-ascii

Fellow Rev developers,

If you're like me, you have lots of stacks you've built over the  
years. Maybe you've wondered how they'd translate into standard web  
elements that could run on an iPad or desktop Chrome browser. We now  
have a tool for Revolution developers that will do this.


Rodeo Transfer lets you translate and transfer Rev UI elements to  
the web so that they're viewable on any webkit-compliant browser  
like Safari or Chrome. Transfer is fast and slick.


All those who are part of the Rodeo pre-release program will get  
Rodeo Transfer as part of their license. Any one else can download  
it from our site and watch it translate Rev objects. You do need a  
Rodeo account to see the translated objects on the web, however.


What can it transfer?

With today's release of Rodeo v1.3, Transfer can translate stacks,  
cards, buttons, fields, option menus, check boxes, radio buttons,  
images, and best of all, data grids--into good looking standard web  
elements. Graphic objects are next.


(Snip)

Thanks Jerry and Sarah. This  looks very interesting.

It would be helpful to me if you would contrast and compare Rodeo's  
web apps with Revolutions  current revlets. What are its limitations  
and advantages vis-a-vis Rev?


My questions are VERY basic. Does Rodeo require a plug-in? Does it  
translate Rev Talk into HTML or some variant thereof? (If this is a  
viable option, why didn't RunRev go that route?) When you speak of  
tables, are these Data Grids and/or the plain vanilla table fields--or  
both?


I'm sure that whatever you and Sarah are cooking up for us will be  
exciting.


Best regards,

Jim Hurley


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


Running revlets on the iPad

2010-06-30 Thread James Hurley

Sorry, but I'm a little behind the curve on this.

I know that we can't build for the iPod or iPad, but can we run  
revlets using the plug-in for Safari?


I tried on my iPad and I got a screen asking me to download the plug- 
in, but it didn't happen, i.e. the plug-in didn't download.


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


Re: Sorting lines by variable directions and types

2010-06-29 Thread James Hurley


Message: 22
Date: Sun, 27 Jun 2010 23:14:00 -0500
From: Ken Ray 
Subject: Re: Sorting lines by variable directions and types
To: Use Revolution List 
Message-ID: 
Content-Type: text/plain;   charset="US-ASCII"


Is there some slight of hand I can perform on the variables  
tDirection

and tType to make my one-liner functional, i.e.

sort lines of  tList   MagicOperator(tDirection)
MagicOperator(tType) by word 1 of each


You should be able to use "do" for this:

 do "sort lines of tList" && tDirection && tType && "by word 1 of  
each"



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


Ah, the "DO" command. I remember now hearing about it on this list in  
times long gone by.


I always felt there was always something a little mysterious and  
miraculous about it.


I think there must have been a "DO" command involved when the Sun  
stood still for Joshua.


Don't explain it to me. I need a little mystery in my  life right now.

Suffice it to say that it works. Thanks.

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


Sorting lines by variable directions and types

2010-06-27 Thread James Hurley

I have a table in which some columns are text and some are numbers

I would like to assign values to the variables tDirection and tType so  
that I could do something like:



   put "descending" into tDirection
   put "text" into tType
   put field 1 into tList
   sort lines of  tList   tDirection tType by word 1 of each

But Rev balks at the variables tDirection and tType. It wants the  
explicit words "ascending" , "descending" "text" or "numeric"


I can get around this by using multiple conditionals (If tDirection is  
"ascending" then sort lines of tList ascending..."


But this is a little cumbersome since there are 4 pairs of direction  
and type.


Is there some slight of hand I can perform on the variables tDirection  
and tType to make my one-liner functional, i.e.


sort lines of  tList   MagicOperator(tDirection)  
MagicOperator(tType) by word 1 of each



Thanks,

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


Re: Docking Stacks

2010-03-02 Thread James Hurley

A minor variation on Jacque's suggestion.

on mouseUp
   set the topleft of stack "theSecond"  to the topright of stack  
"theFirst"

end mouseUp

See "A poor man's table field" in Rev Online for an example of the  
docking of multiple fields to form a table.


Jim Hurley



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


Re: Conference-DVDs arrived--Now: "Where have all the socks gone. Long time passing."

2010-02-27 Thread James Hurley


Message: 20
Date: Sat, 27 Feb 2010 02:12:18 -0600
From: "J. Landman Gay" 
Subject: Re: Conference-DVDs arrived
To: How to use Revolution 
Message-ID: <4b88d3e2.4030...@hyperactivesw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

(Snip)

The future is bright. But I still couldn't see where socks go after  
you

put them in the dryer. I'll keep looking.

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


I have a system in with the loss of two socks never results in the  
loss of more than one pair.


But then my sense of fashion does not extend beyond considerations of  
modesty.


Jim Hurley

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


Re: Accessing the inaccessible

2010-01-09 Thread James Hurley


James Hurley wrote:

RIght now I have a collection of fields arranged in a grid--5 across
and 31 down. They were created by script and run off the bottom of  
the

screen. I would like to group them and put in a vertical scrollbar,
but I can't get at them to select those off the bottom of the screen.

Any thoughts? Is it possible to select a collection of controls by
script and then group them?


One of the great things about Rev is that if the IDE can do it you can
do it too. :)

repeat with i = 1 to the number of fields
  set the selected of fld i to true
end repeat
group

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv


Well, that was easy. Thanks Richard

Jim

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


Accessing the inaccessible

2010-01-08 Thread James Hurley
RIght now I have a collection of fields arranged in a grid--5 across  
and 31 down. They were created by script and run off the bottom of the  
screen. I would like to group them and put in a vertical scrollbar,  
but I can't get at them to select those off the bottom of the screen.


Any thoughts? Is it possible to select a collection of controls by  
script and then group them?


Jim Hurley



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


Re:Creating data grids by script

2010-01-08 Thread James Hurley

Hi Jim,
Have a look here:
http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/4488-Creating-A-Data-Grid-By-Hand





Thanks. That sort of works. The data grid created is a little strange.  
If I select it and hit the delete key, it won't delete. It can be cut  
however.


I might have found this but lesson name reads:

 Creating A Data Grid By Hand
But then the lesson begins:

 This lesson will show you how to create a data grid through  
script.


Perhaps change the "By Hand" to "By Script" ?



Thanks again,

Jim




2010/1/9 James Hurley :
I need to create new cards with data grids on them.

I tried copying a DG from one card and pasting into the newly  
create card, but the pasted DG doesn't seem to recognize the  
"dgDataControl of the mouseControl."


Is it possible to create a DG by script on a new card?

Jim Hurley

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


Creating data grids by script

2010-01-08 Thread James Hurley

I need to create new cards with data grids on them.

I tried copying a DG from one card and pasting into the newly create  
card, but the pasted DG doesn't seem to recognize the "dgDataControl  
of the mouseControl."


Is it possible to create a DG by script on a new card?

Jim Hurley



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


Re: Text anomaly

2010-01-04 Thread James Hurley


Message: 6
Date: Mon, 04 Jan 2010 09:48:50 +1100
From: Terry Judd 
Subject: Re: Text anomaly
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII

Jim - you need to escape the slash with an extra slash

E.g. 123 1//2 Main St

Terry...




Thanks Terry. I presume this anomalous behavior of "/" in setting the  
text of a popup menu must have something to do with a similar use in  
the menu bar.


I can't find a summary of this in the docs or the User Guide. Can you  
point me to it?


Thanks,

Jim Hurley

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


Text anomaly

2010-01-03 Thread James Hurley
I have a list of addresses in which some of the street number area  
fractional such as:  123 1/2 Main St.


When I put these addresses into the "text" property of a popup menu,  
everything after the division sign is omitted from the line in which  
it appears, i.e. the address above would look like "123 1"


This doesn't happen with any other aritmetic sign, multiplcation,  
addition or subtraction signs.


Is this just an anomaly with the text field in a popup or is there  
something else going on that I should worry about?


Jim Hurley


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


Text anomaly

2010-01-03 Thread James Hurley
I have a list of address (stored in a field), some of which have   
street numbers have fractional values such as 123 1/2 Main St.


When I set the "text" of a popup button to these street addresses,  
everything in a line after "/"  (division sign) is omitted.


This doesn't seem to happen with any other arithmetic sign.

It this an anomaly or is there something special I should worry about  
in setting the "text" of a popup menu.


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


Re: What cell in the data grid was clicked?

2009-12-29 Thread James Hurley


Message: 1
Date: Tue, 29 Dec 2009 11:16:18 -0500
From: Trevor DeVore 
Subject: Re: What cell in the data grid was clicked?
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Dec 28, 2009, at 11:48 PM, James Hurley wrote:


The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?


Jim,

Each row in a Data Grid form/table and each column in a Data Grid
table have custom properties that help you determine this information.
Note that you use names to reference columns rather than numbers
however. These properties include the dgLine or dgIndex and the
dgColumn.

I just updated the "How Do I Get Data Associated With a Row or
Column?" lesson in the manual to provide some more useful examples.

How Do I Get Data Associated With a Row or Column?: 
<http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-





And the text of the cell?


The lesson also shows how to get the value associated with a cell
using GetDataOfIndex. Look at the very last step in the lesson.

Regards,

--  
Trevor DeVore

Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com


Trevor,

Thanks once again. The  GetDataOfIndex  was the function I needed.

Unfortunately I am trying to learn data grids the way I learned the  
rest of RunRev, by applying the "Necessity is the mother of discovery"  
method.
There are too many bits and pieces of the data grid control for this.  
I need to exercise the discipline to go through your excellent  
tutorials. Sounds like a new year's resolution to me.


Regards,

Jim Hurley


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


What cell in the data grid was clicked?

2009-12-28 Thread James Hurley

The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?

And the text of the cell?

Thanks,

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


Re: HC convert: help with text as graphic or rotated text

2009-12-27 Thread James Hurley


Message: 2
Date: Sat, 26 Dec 2009 11:41:18 -0800
From: Scott Rossi 
Subject: Re: HC convert: help with text as graphic or rotated text
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset="US-ASCII"


Recently, James Hurley wrote:

go url "http://www.tactilemedia.com/site_files/downloads/textspinner.rev 
"



I tried to add one more element: Disembodied text, i.e. a text field
field with zero border width and opaque set to false.

Unfortunately it crashes RunRev 4.0, build 950 on my Mac running
10.5.8  every time.


Works fine here (Rev 4, OS X 10.5.8 laptop) with the source field's  
opaque

disabled and borderWidth set to zero.

As an alternative, if you don't mind creating the text image on an  
unlocked

screen, you might try importing a snapshot of the field to the card.
Comment out the portions of the script that deal with the  
templateImage

(lines 15 - 21), and use this:

 import snapshot from rect (rect of fld 1) of fld 1
 set resizeQuality of last img to best
 set loc of last img to tLoc

Remember you also need to comment out the lock screen command at the
beginning of the script since import snapshot will fail if the  
screen is

locked.

Good luck.

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design




Scott,

I went back and stepped through your handler one line at time to see  
where it failed.
Alas, it never did. And now it doesn't when running full bore in the  
IDE.

There is indeed a "Ghost in the Machine."

Sorry to put you to the extra effort. Thanks for humoring me,

Jim Hurley


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


Re: HC convert: help with text as graphic or rotated text

2009-12-26 Thread James Hurley


Message: 1
Date: Thu, 24 Dec 2009 11:18:11 -0800
From: Scott Rossi 
Subject: Re: HC convert: help with text as graphic or rotated text
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset="US-ASCII"

You can't physically rotate text, but you can create an image of  
text and
rotate that.  Here's one example of doing this.  Execute the  
following in

your Rev message box:
go url "http://www.tactilemedia.com/site_files/downloads/textspinner.rev 
"


If you want to print out the results, you could try creating your  
text at 4x
the final size and then scaling down the imported text image/s to  
25%.  Kind
of a pain to do but should give better print results.  You could do  
all the

manipulation in a hidden stack if necessary.

Hope this helps.

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design



Scott,

Thanks. This is a great utility. All the bells an whistles.

I tried to add one more element: Disembodied text, i.e. a text field  
field with zero border width and opaque set to false.


Unfortunately it crashes RunRev 4.0, build 950 on my Mac running  
10.5.8  every time.


Any thoughts?

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


Re: EASY way to add n days to a date? And a Christmas Card

2009-12-20 Thread James Hurley
Many thanks to all. I knew that Run Rev would have an easy way to add  
days to the date, and so your solutions have subtracted days of effort  
for me.


And, in the spirit of Jacque's Christmas message, I have put up a Run  
Rev Christmas card to all you generous Revolutionaries.


Merry Christmas:

go to url  "http://www.jamesphurley.on-rev.com/ChristmasCard.rev";


Feel free to add you own ornaments to the tree and recirculate.


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


EASY way to add n days to a date?

2009-12-19 Thread James Hurley
In FileMaker it is possible to add n (an integer) to a date to get a  
new date n days hence.


Is there an EASY way to do this in Rev? (I don't mean setting the  
idemdel to "/" and fussing with the day/month/year digits.)


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


Re: Move to the points of an oval?

2009-12-19 Thread James Hurley


Message: 1
Date: Fri, 18 Dec 2009 22:19:06 -0800
From: Mark Swindell 
Subject: Move to the points of an oval?
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=us-ascii

Is it possible to move an object along the points of an oval?

If not, is it possible to copy an exact oval with the curve tool  
(and move along that)?


Thanks
Mark

--


Mark,

Here is a stack I was playing around with some time ago.
It moves things (arrows, line segments, footballs) along circles,  
ellipses, and bezier lines.
Run this line in the message box:  go url "http://www.jamesphurley.on-rev.com/OffOnAtangent.rev 
"



Jim Hurley


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


Re: Saving standalone stacks

2009-12-17 Thread James Hurley

James Hurley wrote:

> What would be s much easier if I would have access to the  
satellite
> stack itself. All the data would be intact and I could easily make  
the

> changes in the IDE and send it back as a stand alone.
> There would seem to be an advantage to using StackRunner or the  
RunRev

> Player in that the satellite stack is still intact and more easily
> modified.

They all work the same way as a splash stack. When you save a  
satellite
stack with new data, it gets altered on disk, no matter what vehicle  
the
engine is attached to. There isn't a way around that, except to  
separate

the data from the stacks entirely (which is generally the recommended
approach anyway, for just these reasons.)

>
> Is there some was in the stand alone to make a clone of the  
satellite

> stack, or in some other way recreate the stack as a dot rev and
> available to the IDE?

You don't really need to. Satellite stacks are just plain rev stacks.
You can open them at any time in the IDE. They aren't part of the
standalone, they are just documents sitting in the same folder that  
the
standalone engine opens. You can grab them, open them in the IDE,  
edit,

and save them back to their permanent location. That's one of the nice
things about these files.

A standalone is just a copy of the engine with at least one stack
attached. You can't save data to that attached stack, but if the
standalone opens a separate stack file (your satellite stacks,) then
it's exactly like opening it in the IDE, only without the editing  
tools.


Jacque,

Ah, I found it. It is in the package contents. Beautiful. Just as I  
had hoped.


Thanks,

Jim


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


Re: Saving standalone substacks

2009-12-17 Thread James Hurley


Message: 26
Date: Wed, 16 Dec 2009 16:30:22 -0600
From: "J. Landman Gay" 
Subject: Re: Saving standalone substacks
To: How to use Revolution 
Message-ID: <4b295f7e.3030...@hyperactivesw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

James Hurley wrote:


Things I didn't know:

1)  I thought I would be saving to a substack.


Substacks -- the ones embedded into a main stack -- become part of the
standalone. Executables can't save data to themselves, no matter how
many stacks they are composed of. So yeah, you need separate stacks on
disk if you want to save them.


2)  I was unaware of the "shutDownRequest" handler.

Another question or two.

1)  How would  "StackRunner" differ from using my own splash screen?
2)  How would "Revolution Player" differ from using my own splash  
screen?


I don't think either of these would be much different. They are both
basically splash standalones, though Rev's player has a few more
restrictions I think. But with either of these, you'd need to put your
saving instructions into each satellite stack, or else into a  
backscript

that you insert when your first stack opens. That's because both of
these are already built standalones, so to add any scripted behavior  
you

have to use another stack to store the scripts in.

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



Jacque,

Thanks again. I put all of this to good use and it all seems to be  
working.


But I foresee one problem. I am setting up a  utility for a local  
volunteer group.


There will surely be occasion for upgrades and bug fixes down the  
road. And all of this after they have made additional data entries in  
the stand alone.
It would be possible for me to incorporate a means of extracting all  
the data entry work they have performed, make changes in the original  
satellite stack in the RunRev IDE, repopulate the fields with saved  
data and return it to them for further use.


What would be s much easier if I would have access to the  
satellite stack itself. All the data would be intact and I could  
easily make the changes in the IDE and send it back as a stand alone.
There would seem to be an advantage to using StackRunner or the RunRev  
Player in that the satellite stack is still intact and more easily  
modified.


Is there some was in the stand alone to make a clone of the satellite  
stack, or in some other way recreate the stack as a dot rev and  
available to the IDE?


Jim Hurley



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


Re: Deriving an angle from three points

2009-12-17 Thread James Hurley


Message: 12
Date: Wed, 16 Dec 2009 21:47:10 -0800
From: Mark Swindell 
Subject: Re: Deriving an angle from three points
To: How to use Revolution 
Message-ID: <3ceb9dd4-d059-43b4-8a77-2f4e86c48...@cruzio.com>
Content-Type: text/plain; charset=us-ascii

James,

Thanks for this, but starting the Turtle stack did not allow me to  
calculate the angle.  I got an error each time at "Start Turtle."   
Is there a trick to making the library accessible to other stacks?


Mark


Mark,

I think the problem might be that you may have used "Start Turtle"  
instead of "StartTurtle"


There should be no spaces. Try just copying and pasting the script  
into a button on the Turtle Graphics stack. If you use it outside of  
the Turtle Graphics stack, you will need to do a "Start Using  stack..."


Hope this helps.

Jim Hurley


On Dec 16, 2009, at 8:08 AM, James Hurley wrote:



Message: 24
Date: Tue, 15 Dec 2009 22:21:47 -0800
From: Mark Swindell 
Subject: Deriving an angle from three points
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset=us-ascii

40,116
98,186
132,118

How would one determine the angle created from three points, such  
as those above?


Thanks,
Mark



Mark,

Or even easier. Set the Turtle at the apex and get the angle of the  
other two points.



on mouseUp
 startTurtle --Initiates the turtle graphics library
 penup
 setxy 98,186 --The vertex
 put direction(40,116) into A
 put direction(132,118) into B
 put B-A into dA
 put abs(dA) & cr & abs(180 - dA)  into msg box
 choose the browse tool
end mouseUP

(Assuming your middle point is the apex of the angle you want.)

To run this you will need the TG library. Run this in the msg box

go url "http://www.jamesphurley.com/jhurleyFolder/TurtleGraphics.rev";

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

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








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


Re: Saving standalone substacks

2009-12-16 Thread James Hurley

James Hurley wrote:
Actually, I had recalled that the splash screen was the way to go.  
My question is really quite primitive. When the user quits, or just  
wants to save the substacks, what is the action plan, specifically,  
what is the code? Save.the substacks name. Is a file path  
required? Like I said, my question is quite primitive.


Jacqueline Landman Gay wrote:



Depends on what your stack does. If you've changed the  
defaultfolder, then you'll need to calculate a file path back to  
your satellite stacks I don't like the word "substacks" in this case  
because those are stacks embedded in the mainstack, and they can't  
save data. Separate stacks opened by a splash app need a different  
name.) The default location when your splash starts up is the same  
folder as the splash app is in. You can handle this several ways:
1. Reset the defaultfolder to the one where your splash exists, if  
you've changed it. Refer to satellite stacks by their relative path.


2. Calculate file paths to the satellite stacks and use those as  
stack references.


3. Set the stackfiles property of your splash so that it points to  
relative path locations for the satellite stacks. Then you can just  
refer to them by their short names and Rev can still find them. This  
is perhaps the easiest way to manage it.


However you determine the stack paths, the rest is the same. Loop  
through the names of your satellite stacks when the user requests to  
quit, and save each one. You can ask the user if they want to save  
each of them, if that fits your app better.


Assuming three stacks in the same folder as your standalone, with  
the defaultfolder set to that directory:
on shutdownRequest repeat for each item i in  
"stack1.rev,stack2.rev,stack3.rev" save stack i close stack i end  
repeat pass shutdownRequest end shutdownRequest

--

Jacqueline Landman Gay |  jacque at hyperactivesw.com HyperActive  
Software |  http://www.hyperactivesw.com


Thanks Jacque. That is VERY helpful.

Things I didn't know:

1)  I thought I would be saving to a substack.
2)  I was unaware of the "shutDownRequest" handler.

Another question or two.

1)  How would  "StackRunner" differ from using my own splash screen?
2)  How would "Revolution Player" differ from using my own splash  
screen?
3)  If I use "save" verses "save as..." can I assume that the  
satellite stack will be saved and the user will not be asked  if he or  
she wants to overwrite the existing file?



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


Re: Deriving an angle from three points

2009-12-16 Thread James Hurley


Message: 24
Date: Tue, 15 Dec 2009 22:21:47 -0800
From: Mark Swindell 
Subject: Deriving an angle from three points
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset=us-ascii

40,116
98,186
132,118

How would one determine the angle created from three points, such as  
those above?


Thanks,
Mark



Mark,

Or even easier. Set the Turtle at the apex and get the angle of the  
other two points.



on mouseUp
   startTurtle --Initiates the turtle graphics library
   penup
   setxy 98,186 --The vertex
   put direction(40,116) into A
   put direction(132,118) into B
   put B-A into dA
   put abs(dA) & cr & abs(180 - dA)  into msg box
   choose the browse tool
end mouseUP

(Assuming your middle point is the apex of the angle you want.)

To run this you will need the TG library. Run this in the msg box

go url "http://www.jamesphurley.com/jhurleyFolder/TurtleGraphics.rev";

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


Re: Deriving an angle from three points

2009-12-16 Thread James Hurley


Message: 24
Date: Tue, 15 Dec 2009 22:21:47 -0800
From: Mark Swindell 
Subject: Deriving an angle from three points
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset=us-ascii

40,116
98,186
132,118

How would one determine the angle created from three points, such as  
those above?


Thanks,
Mark



Mark,

Here is how easy this is in Turtle Graphics:

on mouseUp
   startTurtle --Initiates the turtle graphics library
   penup
   setxy 40,116
   pendown
  put direction(98,186) into tStartAngle
  setxy 98,186
  put direction(132,118) into tEndAngle
  setxy 132,118  --Not necessary, but visually satisfying
  put tEndAngle - tStartAngle into dA
  put dA & cr & 360 - da  into msg box
  choose the browse tool
end mouseUP

(Assuming your middle point is the apex of the angle you want.)

To run this you will need the TG library. Run this in the msg box

go url "http://www.jamesphurley.com/jhurleyFolder/TurtleGraphics.rev";

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


Re: Newbie Data Grid question

2009-12-16 Thread James Hurley

---

Message: 15
Date: Tue, 15 Dec 2009 18:52:52 -0800
From: Jim Ault 
Subject: Re: Newbie Data Grid question
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain;   charset=ISO-8859-1; format=flowed;  
delsp=yes

One valuable technique for understanding the DataGrid inner workings.

In Rev, choose the pointer tool, click on a data grid, then go the
inspector, choose 'custom properties' from the drop down,

and now check out the property sets.  You should see dgProps and  
dgCache

Note all the properties that have been created when the data grid was
created.
Of course you can edit the values here, but you can also change them
in script lines.

One bit of confusion for me is that there is no dgText property set
visible here.  The syntax

set the dgText [ true ] of group "DataGrid"  to tHeaders

would logically mean that there would be a custom property set  
"dgText"


Interesting if you click on dgProps "row template" you will see:
group id 1011 of card id 1010 of stack "Data Grid Templates
1260751174078"

...at least in my version of Rev 3.5

Hope this helps in your travels.

Jim Ault
Las Vegas



Jim,

Thanks for this. I tried this, hoping for the same insight you  
discovered, but I don't see anything in the custom property set.


Are you looking at the dgProps of the data grid group?

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


Re: Saving standalone substacks

2009-12-16 Thread James Hurley


Message: 23
Date: Wed, 16 Dec 2009 13:53:00 +0800
From: Kay C Lan 
Subject: Re: Saving standalone substacks
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

You might try here:

http://revjournal.com/tutorials/saving_data_in_revolution.html

HTH

On Wed, Dec 16, 2009 at 1:05 PM, James Hurley >wrote:


Is there a tutorial someplace on saving data in the standalone  
substacks?


Jim Hurley


Kay,

Thanks. As always, Sarah to the rescue.

Actually, I had recalled that the splash screen was the way to go.
My question is really quite primitive. When the user quits, or just  
wants to save the substacks, what is the action plan, specifically,  
what is the code? Save.the substacks name. Is a file path  
required? Like I said, my question is quite primitive.


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


Saving standalone substacks

2009-12-15 Thread James Hurley
Is there a tutorial someplace on saving data in the standalone  
substacks?


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


Re: Newbie Data Grid question

2009-12-15 Thread James Hurley


Message: 2
Date: Mon, 14 Dec 2009 13:19:43 -0500
From: Trevor DeVore 
Subject: Re: Newbie Data Grid question
To: How to use Revolution 
Message-ID: <2489afec-40f1-4057-88dd-e8fa53559...@mangomultimedia.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Dec 14, 2009, at 1:11 PM, James Hurley wrote:


It is heartening to see something defended by its parent. My sincere
apologies for treating your offspring in such a quick and dirty
fashion :-)


It's okay, the Data Grid likes to be beta up on once and a while :-)


As long as this is still in Beta, may I make a suggestion?
(Does anyone ever let the possibility of the answer be "no" stop them?)
I had assumed when I saw the following code in the guide:

   put field "data" into tData
   put true into pFirstLineContainsHeaders
   set the dgText [ pFirstLineContainsHeaders ] of group "DataGrid 2"  
to tData


I assumed that  the data grid would function in much the same way that  
FileMaker does when importing an Excel file, i.e. it allows one to  
assign the items in the first line of the file to field names and the  
rest of the llines to populate these fields. That would be a  
reasonable behavior of "dgText[pFirstLineContainsHeaders]" il.e. when  
the parameter is true, the column headings are taken from the first  
line of the text field and the rest go into filling the columns.


Or maybe introduce a second parameter to dgText .


Jim Hurley

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


Re: Newbie Data Grid question

2009-12-14 Thread James Hurley


Message: 27
Date: Mon, 14 Dec 2009 08:58:13 -0500
From: Trevor DeVore 
Subject: Re: Newbie Data Grid question
To: How to use Revolution 
Message-ID: <4392d851-15e4-48f7-83fb-d04224a70...@mangomultimedia.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Dec 13, 2009, at 4:10 PM, James Hurley wrote:


Yes the columns already exist.

If I set pFirstLineContainsHeaders to false, the field is populated
with data but the columns are set to Col 1, Col 2 etc.

If I then set set pFirstLineContainsHeaders to true (with the
columns already set to Col 1, Col 2, etc.) the columns remain
unchanged but the body of the text is empty.


The most likely cause is that you don't have a column labeled with
"Col 1" or "Col 2" in the first line of the data. Therefore the data
you are setting is not mapping to an existing column in the Data Grid.

Data Grid's do not behave like fields in that you can just swap text
in and out randomly. You should be defining the columns (using the
Property Inspector or by setting the dgData["columns"] property) and
then assigning data to the Data Grid that explicitly states which
column data goes into.

The reason for this is that Data Grid columns are objects in and of
themselves. They have properties that are set independently. If you
want to wipe them all out at once then you first create the columns,
set the column properties and then assign the data.

As a side note the fact that dgText automatically creates columns for
you is unfortunate in my opinion. This behavior was requested so that
someone could just set the text of the Data Grid and see instant
results. While that may be beneficial for "instant gratification" I
think it just causes more confusion then anything in the end.

The Data Grid isn't meant to be a quick and dirty means of displaying
data but rather a means of displaying data with lots of control over
the visual elements used to display that data.

--  
Trevor DeVore

Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com


Trevor (and Andre.Bisseret),

Thanks you for the very thoughtful reply(s).

It is heartening to see something defended by its parent. My sincere  
apologies for treating your offspring in such a quick and dirty  
fashion :-)
I'm sure I will appreciate the richness  of this new Run Rev object in  
time--see below.


FIrst to satisfy my quick and dirty needs, I find that the following  
works well to get data displayed in a data grid field:


on mouseUp
   put field "data" into tData --Tab delimited text
   --The first line of tData contains the column names
   put line 1 of tData into tHeaders
   replace tab with cr in tHeaders
   set dgProp["Columns"] of group "DataGrid"  to tHeaders --Thanks to  
Andre for this line.

   set the dgText [ true ] of group "DataGrid" to tData
end mouseUp

Now to reinforce your point about the richness of this more complex  
object:
In another context, I would like to be able to click on the first  
column header and have it sort the grid by the LAST word of each in  
the first column.
Is it possible to access (and modify)  the script that the column  
headers runs?


Thanks again for nursing us through the infancy of data grids.

Jim Hurley








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


Re: Newbie Data Grid question

2009-12-13 Thread James Hurley

Bonjour,


Le 13 déc. 09 à 19:53, James Hurley a écrit :

> I am just getting into data grid fields and can't find first base.
>
> I can't find anything on data grids  in the Dictionary. Is this
> coming?

You could download the manual at :
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7309-How-Do-I-Populate-a-Data-Grid-With-Data-
>
> Following the tutorial I tried the following:
>
> put field "data" into tData
> --This is a tab delimited text field with the first line being the
> column names
> put true into pFirstLineContainsHeaders

try set the pFirstLineContainsHeaders to true

> set the dgText [ pFirstLineContainsHeaders ] of group "DataGrid 2"
> to tData
>
> This does nothing.

In the chapter "How do I populate a data grid with Data ?
one found this :
"Note that if pFirstLineContainsHeaders is true then the columns must
already exist in your data grid
table in order to be displayed."
Does your columns already exist ?


Thanks Andre,

Yes the columns already exist.

If I set pFirstLineContainsHeaders to false, the field is populated  
with data but the columns are set to Col 1, Col 2 etc.


If I then set set pFirstLineContainsHeaders to true (with the columns  
already set to Col 1, Col 2, etc.) the columns remain unchanged but  
the body of the text is empty.


I did download the Manual. That is where I got this information from.  
Very perverse.



Jim Hurley



>
> But if I put False into pFirstLineContainsHeaders the field is
> filled with tData but the columns are Col 1, Col 2, etc.
>
> What am I missing?
>
HTH

Best regards from Grenoble

André

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


Newbie Data Grid question

2009-12-13 Thread James Hurley

I am just getting into data grid fields and can't find first base.

I can't find anything on data grids  in the Dictionary. Is this coming?

Following the tutorial I tried the following:

put field "data" into tData
--This is a tab delimited text field with the first line being the  
column names

 put true into pFirstLineContainsHeaders
 set the dgText [ pFirstLineContainsHeaders ] of group "DataGrid 2"  
to tData


This does nothing.

But if I put False into pFirstLineContainsHeaders the field is filled  
with tData but the columns are Col 1, Col 2, etc.


What am I missing?


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


Re: Getting url

2009-11-18 Thread James Hurley

Thanks Bill and Jim. Very helpful.

Jim Hurley



--

Message: 17
Date: Wed, 18 Nov 2009 02:05:56 -0500
From: "Bill Marriott" 
Subject: Re: Getting url
To: use-revolution@lists.runrev.com
Message-ID: 
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response

Google is detecting the "browser" you're using and formatting the  
results

differently.

The default User Agent String for Rev is something like  
"Revolution(Win32)."
Use the httpHeaders command to set one that resembles your desired  
browser.

e.g.:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

The resulting HTML code should then match.




Message: 25
Date: Wed, 18 Nov 2009 08:44:17 -0800
From: Jim Ault 
Subject: Re: Getting url
To: How to use Revolution 
Message-ID: <86465ac0-8af6-4b93-86d6-9bb148094...@yahoo.com>
Content-Type: text/plain;   charset=US-ASCII;   format=flowed;  
delsp=yes



Hey, Jim, here are some Rev code lines that do a few things with the
HTTP headers
(think of the headers as parameters that are passed to the web server
to change how it performs, just like a function in Rev)

on testHttpHeaders
  get url 
"http://www.google.com/search?q=10187%20Grinding%20Rock%20Dr%09Grass%20Valley,%20CA%2095945
 "
  put libURLLastHTTPHeaders() into revHeadersToAnalyze
  put revHeadersToAnalyze into msg -- so you can read what Rev sent
end testHttpHeaders

answer is... the following 3 lines
GET /search?q=10187%20Grinding%20Rock%20Dr%09Grass%20Valley,%20CA
%2095945 HTTP/1.1
Host: www.google.com
User-Agent: Revolution (MacOS)

Using the LiveHeaders add-on tool in Firefox 3 on Mac OSX shows the
following User-Agent header variable

   User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US;
rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 FirePHP/0.3

thus for me the Rev code would be
on testHttpHeaders
   get "User-Agent:"
   get it && "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5;"
   get it && "en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6
FirePHP/0.3"
   set the httpHeaders to IT
   get url 
"http://www.google.com/search?q=10187%20Grinding%20Rock%20Dr%09Grass%20Valley,%20CA%2095945
 "
   put IT into msg
end testHttpHeaders

Hope this helps.

Jim Ault
Las Vegas




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


Getting url

2009-11-17 Thread James Hurley

I am trying to do address verification.

For example, the county DB lists the following two address

10187 Grinding Rock Dr [tab] Grass Valley CA 95945
and also
10187 Grinding Rock Dr [tab] Grass Valley CA 95949

I want to find out (programatically) if the zip should be 95945 or 95949

So here is my dillema:

When I do a Google search for the 95945 zip code address I get a page  
that tells me that the zip code should be 95949


When I compare the source code of this page with the RunRev result  
from the following:


get url "http://www.google.com/search?q=10187%20Grinding%20Rock%20Dr%09Grass%20Valley,%20CA%2095945 
"


The value of "it" is not the same as the source code of the Google  
search page. Not even close.


What am I missing?

Jim Hurley


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


Re: RevMedia Woes

2009-10-31 Thread James Hurley


Message: 4
Date: Fri, 30 Oct 2009 23:17:48 -0500
From: "J. Landman Gay" 
Subject: Re: RevMedia Woes
To: How to use Revolution 
Message-ID: <4aebba6c.9010...@hyperactivesw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

James Hurley wrote:


The most troublesome thing about Rev animation for me is the basic
inability to move an object slowly and smoothly across the screen.

No matter what combination of number of points, type of looping  
method,

or loop timing, I always get a herky-jerky motion.

This is a problem in the the desktop and is aggravated in the RevLet.

It is noticeable on Rev's web site: http://revmedia.runrev.com/revMedia/
Notice, for example, the animation of: move image "Rev Icon" to the
points of graphic "Curve"


Odd, it's very smooth on my iMac. No jerks at all. Could it be related
to platform? Browser? CPU?

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

**



Hi Jacque,

I don't think that's it. I have three Macs:  a Mini, a PowerBook, and  
a MacBook Pro


It is the same on all three. The Rev icon stutters as it moves along  
the curve.


The same is true when the coordinate axes are moved.

On the other hand, when I run the FlightControl video (http://www.firemint.com/flightcontrol/video.html 
) on the same machines, the motion is quite smooth.


I don't mean to say that Rev is all that bad, For a lot of uses it  
would be acceptable. I mean that I have not found a way to get really  
smooth animation. There is always this stutter stepping.


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


Re: RevMedia Woes

2009-10-30 Thread James Hurley


Message: 14
Date: Fri, 30 Oct 2009 11:08:05 -0700 (PDT)
From: capellan 
Subject: Re: RevMedia Woes
To: use-revolution@lists.runrev.com
Message-ID: <26134609.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi Jim,


James Hurley wrote:


I don't know if this is related, but I have found that there is a
significant increase in speed in going from Rev IDE on Mac OS to the
revLet see discussion below.
I've been waiting for some clarification from Rev.
[snip]
go url "http://jamesphurley.on-rev.com/OnRevGraphicTimer.rev";
And on the Web, go to
http://jamesphurley.on-rev.com/OnRevTimer/test.html



In the first card, the speed i see in my browser ranges from 289
milliseconds
to 450 milliseconds. Oddly enough, there are too many variations of  
speed

among repetitions that  i dont know which of these speed is the most
reliable measure.


[Snip]


Alejandro
--


Yes, I find a great deal of variation as well.

The most troublesome thing about Rev animation for me is the basic  
inability to move an object slowly and smoothly across the screen.


No matter what combination of number of points, type of looping  
method, or loop timing, I always get a herky-jerky motion.


This is a problem in the the desktop and is aggravated in the RevLet.

It is noticeable on Rev's web site: http://revmedia.runrev.com/revMedia/
Notice, for example, the animation of: move image "Rev Icon" to the  
points of graphic "Curve"


There is an app for the iPhone called FlightControl in which a number  
of planes are moving asynchronously  across the screen. The motion is  
PERFECTLY smooth. It is a beautiful thing to watch. I wouldn't attempt  
this in Rev.  Animation has not been a priority for Rev--and rightly  
so. They have bigger fish to fry.



Jim Hurley



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


Re: RevMedia Woes

2009-10-30 Thread James Hurley

Message: 15
Date: Thu, 29 Oct 2009 12:45:51 -0700 (PDT)
From: capellan 
Subject: Re: RevMedia Woes
To: use-revolution@lists.runrev.com
Message-ID: <26119539.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Yes, Completely awesome! :D

I noticed that this revlet runs faster too:
http://capellan2000.000space.com/test03.html

Does it means that Runrev made some optimizations
or enhancements specifically oriented to screen redraw?
H, maybe this explain the absence of Palettes and
substacks in their own window...

Just a wild guess.

Alejandro


Alejandro,

I don't know if this is related, but I have found that there is a  
significant increase in speed in going from Rev IDE on Mac OS to the  
revLet see discussion below.

I've been waiting for some clarification from Rev.

Jim Hurley
--


Message: 10
Date: Wed, 9 Sep 2009 14:54:01 -0700 (PDT)
From: SparkOut 
Subject: Re: Graphic speed comparison between webLets and desktop
stacks
To: use-revolution@lists.runrev.com
Message-ID: <25373791.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii

James Hurley wrote:


On the Mac there has been a longstanding problem in using repeat  
loops
to control the movement of screen objects. It is necessary to  
insert a
forced screen refresh every time through the loop on the desktop.  
That

problem goes away on the Web. A screen refresh is no longer needed.

The stack I wrote is very busy, lots of factors to vary in order to
compare all the possibilities. If you have the courage you  can
compare these things for yourself  on the desktop using the stack:

  go url "http://jamesphurley.on-rev.com/OnRevGraphicTimer.rev";

And on the Web, go to

   http://jamesphurley.on-rev.com/OnRevTimer/test.html

The stack is a little busy. Jim Hurley

(P.S. On the third card of the stack above I added is a simulation  
of

planetary motion. The speed is fine on the desktop and the motion is
very smooth,  but it is WAY too speedy on the Web. I didn't include
any accommodation for the speed change on the Web. A good example of
the need to do so.



For comparison, I tried some examples on Windows (XP, Rev Enterprise
4.0-dp-4, Internet Explorer 8) and got identical* results on the  
desktop

stack as with the revlet.
*OK, I got the range 727, 728 or 729 milliseconds consistently when  
choosing

90 points in the circle and 7 milliseconds on the delay slider.
--
And I meant to say, the blue planet spinning round the sun was high  
speed to
the point of stroboscopic inability to see where it was at any  
given point -

both on the web revlet and the desktop stack.
--



SparkOut,

Thanks for the feedback. I knew that the Rev took a hit on the Mac  
in these kinds of applications, but I didn't realize it was this bad.


That make the PC roughly twice as fast as the Mac. Makes it  
difficult to develop cross platform.


Jim Hurley***



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


Update to DP 5 for Studio?

2009-10-28 Thread James Hurley
In checking for updates of Rev Studio I got a message that there was a  
DP 5 available.


In trying to upload it I got a message that there was no such file.  
And then an error message: Update failed; try again. And again. And  
again.


Is there a place on the Run Rev web site where I might try? I can't  
find it.


Any one know the difference between 4 and 5? Maybe I can wait.

Thanks,

Jim Hurley


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


Re: Graphic speed comparison between webLets and desktop

2009-09-11 Thread James Hurley


Message: 7
Date: Thu, 10 Sep 2009 12:53:30 -0700 (PDT)
From: BNig 
Subject: Re: Graphic speed comparison between webLets and desktop
stacks
To: use-revolution@lists.runrev.com
Message-ID: <25389915.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Jim,

one funny thing I noticed on the mac: if in your repeat loop you set  
the
wait to 0 millisecs on the slider the time goes down from 1500  
millisecs to
630 millisecs, you can replace the wait with a "unlock screen" and  
you have
again around 630 millisecs. As soon as you wait even 1 millisecond  
you go up
to 1500 again. So there is more going on on the Mac then meets the  
eye.
By contrast I did not manage to speed up the send in time handler,  
maybe

someone has an idea.

regards
Bernd




Bernd,

Good observation. You're right about a lot going on behind the scenes.  
That's what makes it frustrating.
I talked to Kevin about it some years back, when the problem with OS X  
came up. I was told that Mark Waddingham had looked into it, but that  
it was complicated and difficult to fix.

You can see one of the problems on Rev's web site: 
http://revmedia.runrev.com/revMedia/
Notice how the motion stutters when it executes the command: Move  
image "rev icon" to 60,60
(On second thought, I guess that could be an artifact of their screen  
capture software. Everything seems to bump along.)


I'm sure they have a lot on their plate right now and this is not a  
high priority issue.


Jim Hurley

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


Re: Graphic speed comparison between webLets and desktop stacks

2009-09-10 Thread James Hurley


Message: 10
Date: Wed, 9 Sep 2009 14:54:01 -0700 (PDT)
From: SparkOut 
Subject: Re: Graphic speed comparison between webLets and desktop
stacks
To: use-revolution@lists.runrev.com
Message-ID: <25373791.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii

James Hurley wrote:


On the Mac there has been a longstanding problem in using repeat  
loops
to control the movement of screen objects. It is necessary to  
insert a
forced screen refresh every time through the loop on the desktop.  
That

problem goes away on the Web. A screen refresh is no longer needed.

The stack I wrote is very busy, lots of factors to vary in order to
compare all the possibilities. If you have the courage you  can
compare these things for yourself  on the desktop using the stack:

   go url "http://jamesphurley.on-rev.com/OnRevGraphicTimer.rev";

And on the Web, go to

http://jamesphurley.on-rev.com/OnRevTimer/test.html

The stack is a little busy. Jim Hurley

(P.S. On the third card of the stack above I added is a simulation of
planetary motion. The speed is fine on the desktop and the motion is
very smooth,  but it is WAY too speedy on the Web. I didn't include
any accommodation for the speed change on the Web. A good example of
the need to do so.



For comparison, I tried some examples on Windows (XP, Rev Enterprise
4.0-dp-4, Internet Explorer 8) and got identical* results on the  
desktop

stack as with the revlet.
*OK, I got the range 727, 728 or 729 milliseconds consistently when  
choosing

90 points in the circle and 7 milliseconds on the delay slider.
--
And I meant to say, the blue planet spinning round the sun was high  
speed to
the point of stroboscopic inability to see where it was at any given  
point -

both on the web revlet and the desktop stack.
--



SparkOut,

Thanks for the feedback. I knew that the Rev took a hit on the Mac in  
these kinds of applications, but I didn't realize it was this bad.


That make the PC roughly twice as fast as the Mac. Makes it difficult  
to develop cross platform.


Jim Hurley



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


Graphic speed comparison between webLets and desktop stacks

2009-09-07 Thread James Hurley
I enjoyed  Ben Beaumont's presentation of planetary motion at the  
conference. I couldn't tell from the streaming video how smoothly the  
planets moved around the Sun. It was very bumpy on my screen, but most  
of that was surely due to the nature of streaming video. To see this  
for myself, I built a stack (see below) to compare the moving planets  
on the desktop with the webLet.  We know that the speeds will change,  
but by how much?


(By the way,  I thought it was terrific. I was really impressed by how  
bright and articulate the presenters were. Lots of really good  
information.)


In order to get some quantitative data I made a stack to simulate a  
ball (planet)  moving along a set of points on a circle--see stack and  
web site below.


In dealing with graphics (or images) moving along a set of points on a  
line there are three ways to cycle through the points:


(1)  Use a "Send message in x millisec" to cycle recursively through  
the points using x to control speed. (Asynchronous--i.e. allows for  
concurrent message sending)
(2) Use a simple repeat loop, using a "Wait x millisec" between repeat  
to control speed (Not asynchronous)
(3) Or use the Rev Move command, using the DragSpeed propterty to  
control speed. (Asynchronous)


And there are generally two methods of moving an object from one point  
to the next:


(A) Using the set location command
(B) Using the Move command.

In all of these options, the number of points on the graphic line is a  
potential variable and will affect the speed and the smoothness of the  
motion. It is the smoothness of the motion that to me is the critical  
factor, not too difficult to achieve on the desktop but much more  
difficult on the Web. I failed on the Web task. I don't know if Rev is  
still working on this. It is not a high priority issue at this time.


Here is what I found from playing with the parameters (1, 2, 3, A, B  
above) using the "OnWebGraphicTImer" stack below:


(1) Speed: The web is much faster than the desktop, as much as five  
and a half times faster if one uses "Set Loc" to cycle through the  
points. If one uses the Move command to move through the points THERE  
IS NO CHANGE in speed. I presume that Rev redefined Move to have this  
effect.


(2) Smooth motion: On the desktop, Set Loc and Send Message In TIme is  
the best way to go. The synchronous repeat loop is bumpy, as it the  
Move command. On the Web I couldn't find any combination of parameters  
and modes and number of points on the line to achieve smooth motion.


You can also see this bumpy motion on Rev's own Web site: http://revmedia.runrev.com/revMedia/ 
   Notice how the Rev icon bumps along the set of line points.


There is another problem intrinsic to the Move command: The speed  
along the points is uniform regardless of the distance between points.  
The speed along the entire path is governed by the MoveSpeed property.  
Because of this it cannot be used to deal with planetary motion (or  
simple projectile motion) since the planet should speed up as it nears  
the Sun at the focal point of the ellipse and slow down as it move  
away from the focal point. And of course a bouncing ball does not move  
with uniform speed.


Someone at the conference asked about this speed issue (slow on the  
desktop--much faster on the web) but I couldn't hear the answer, only  
that it sounded like it was Kevin who responded. I suspect it must be  
a matter of timing of the screen refresh rate. But I have no real  
understanding of what goes on behind the scenes. Can anyone fill me in  
on what Kevin said? And it still under consideration?  It is surely  
not a high priority at this early stage.


On the Mac there has been a longstanding problem in using repeat loops  
to control the movement of screen objects. It is necessary to insert a  
forced screen refresh every time through the loop on the desktop. That  
problem goes away on the Web. A screen refresh is no longer needed.


The stack I wrote is very busy, lots of factors to vary in order to  
compare all the possibilities. If you have the courage you  can  
compare these things for yourself  on the desktop using the stack:


   go url "http://jamesphurley.on-rev.com/OnRevGraphicTimer.rev";

And on the Web, go to

http://jamesphurley.on-rev.com/OnRevTimer/test.html

The stack is a little busy. Jim Hurley

(P.S. On the third card of the stack above I added is a simulation of  
planetary motion. The speed is fine on the desktop and the motion is  
very smooth,  but it is WAY too speedy on the Web. I didn't include  
any accommodation for the speed change on the Web. A good example of  
the need to do so.

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


Re: Open stack from another stack--Was "PreOpenStack in the IDE"

2009-08-31 Thread James Hurley

Jim,

Hmm... The important part of what I said is not the go or open but  
using the
stack "file name" as in *go stack "C:\MyStack.rev"* What version of  
Rev are

you using?


Jim,

I have two stacks: Test1 and Test2

I have a button in Test1 with the handler:

on mouseUp
   go stack "/Users/jimhurley/Revolution applications/test2.rev"
end mouseUp

And in the stack script of Test2 I have the handler:

on preopenstack
   beep
end preopenstack

A click on the button in Test1 does not produce a beep.

But the handler in the button:

on mouseUp
   go stack "/Users/jimhurley/Revolution applications/test2.rev"
   send "preopenstack" to stack "test2"
end mouseUp

does produce a beep--not surprisingly. But I am surprised that "go  
stack" or "open stack" do not get me a beep.


I am running RR 3.5 on a Mac.

Jim Hurley



Aloha from Hawaii,

Jim Bufalini

> -Original Message-
> From: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] On Behalf Of James Hurley
> Sent: Monday, August 31, 2009 12:05 PM
> To: use-revolution at lists.runrev.com
> Subject: Re: Open stack from another stack--Was "PreOpenStack in the
> IDE"
>
> Jim,
> It appears that neither "open stack" nor "go stack" will trigger a
> PreOpenStack message.
> I am using as a workaround an "open stack" and then sending a
> PreOpenStack message to the stack.
> Clumsy but it works.
>
> Jim Hurley
>
> > James Hurley wrote:
> >
> > > Hi Mark,
> > >
> > > Thanks. On further testing I see that you are right--generally
> > > speaking.
> > >
> > > My problem is when I attempt to open a stack from a Palette  
stack

> > > with the statement:
> > >
> > > open stack "mystack"
> > >
> > > the stack opens but the PreOpenStack handler is not executed.
> > >
> > > On the on the other hand, If I open it from Open in the FIle  
menu,

> > the
> > > PreOpenStack is executed.
> > >
> > > Is there something about opening a stack from another stack that
> > does
> > > not trigger the PreOpenStack message?
> >
> > Try using "go stack" to the stack file name on disk. This should
> > always
> > trigger a preOpenStack.
> >
> > Aloha from Hawaii,
> >
> > Jim Bufalini
> ___
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Previous message: Open stack from another stack--Was "PreOpenStack  
in the IDE"

Next message: FYI - NULLs in data to sort
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the use-revolution mailing list탰ធ쀀


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


Re: Open stack from another stack--Was "PreOpenStack in the IDE"

2009-08-31 Thread James Hurley

Jim,
It appears that neither "open stack" nor "go stack" will trigger a  
PreOpenStack message.
I am using as a workaround an "open stack" and then sending a  
PreOpenStack message to the stack.

Clumsy but it works.

Jim Hurley


James Hurley wrote:

> Hi Mark,
>
> Thanks. On further testing I see that you are right--generally
> speaking.
>
> My problem is when I attempt to open a stack from a Palette stack
> with the statement:
>
> open stack "mystack"
>
> the stack opens but the PreOpenStack handler is not executed.
>
> On the on the other hand, If I open it from Open in the FIle menu,  
the

> PreOpenStack is executed.
>
> Is there something about opening a stack from another stack that  
does

> not trigger the PreOpenStack message?

Try using "go stack" to the stack file name on disk. This should  
always

trigger a preOpenStack.

Aloha from Hawaii,

Jim Bufalini

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


Re:Open stack from another stack--Was "PreOpenStack in the IDE"

2009-08-31 Thread James Hurley

Hi Jim,

The preOpenStack message is sent. The startUp message isn't.


Hi Mark,

Thanks. On further testing I see that you are right--generally speaking.

My problem is when I attempt to open a stack from a Palette stack   
with the statement:


   open stack "mystack"

the stack opens but the PreOpenStack handler is not executed.

On the on the other hand, If I open it from Open in the FIle menu, the  
PreOpenStack is executed.


Is there something about opening a stack from another stack that does  
not trigger the PreOpenStack message?


Jim Hurley





--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Download Snapper Screen Recorder at http://snapper.economy-x-talk.com

On 31 aug 2009, at 20:17, James Hurley wrote:

> I'm pretty sure I asked this question once before, but I've
> forgotten the answer.
>
> As I recall, the PreOpenStack message is not sent if the stack is
> opened in the IDE, only when opened as a stand alone.
>
> Is there a work around, something that will be triggered when opened
> in the IDE?
>
> Jim Hurley


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


PreOpenStack in the IDE

2009-08-31 Thread James Hurley
I'm pretty sure I asked this question once before, but I've forgotten  
the answer.


As I recall, the PreOpenStack message is not sent if the stack is  
opened in the IDE, only when opened as a stand alone.


Is there a work around, something that will be triggered when opened  
in the IDE?


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


Re: Get files within dmg folder?

2009-08-18 Thread James Hurley

Is there a way for RR to access files within a DMG folder?

put the files ...

...doesn't do it.

Jim Hulrey


My mistake. "Put the files" does indeed produce the files within a  
disk image. I had set the wrong default folder.


Jim Hurley


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


Small free dictionary

2009-08-18 Thread James Hurley
The spell checking webinar reminded me of a problem I had with RR and  
word games.


The dictionary I found on the web was 120,000 words and was too big.  
Not because it was too big a file or too slow but because it had words  
that most people never heard of. For example, the anagram words for  
"wen" were "new" of course, but also "wen" which according to the  
dictionary means:


1. Pathology. a benign encysted tumor of the skin, esp. on the scalp,  
containing sebaceous matter; a sebaceous cyst.
2. British. a large, crowded city or a crowded urban district:London  
is the great wen of England.


I noticed in the webinar that the dictionary used there is only 60,000  
words, probably a better size for my needs.


Anybody know if there is a "free" dictionary of that size available  
for download?


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


Get files within dmg folder?

2009-08-18 Thread James Hurley

Is there a way for RR to access files within a DMG folder?

put the files ...

...doesn't do it.

Jim Hulrey

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


Re: Importing gMail

2009-08-17 Thread James Hurley




Message: 12
Date: Sun, 16 Aug 2009 14:33:36 -0700
From: Mark Wieder 
Subject: Re: Importing gMail
To: How to use Revolution 
Message-ID: <31177063531.20090816143...@ahsoftware.net>
Content-Type: text/plain; charset=us-ascii

Jim-

...and speaking of squaring the circle, I just came across Bradford
Hansen-Smith's work:

http://www.wholemovement.com/

--  
-Mark Wieder

mwie...@ahsoftware.net


Mark,

Amazing work. I used to be able to fold a box. You fold and fold and  
eventually blow into a little crease and voila: a Box. Doing these  
folds is hypnotic work.


Perhaps a little hyperbole? (No pun intended.) Hanse-Smith wrote:

"Everything that happens in this first is principle to all subsequent  
folding of the circle and is basic to the development of mathematics."


Even more hyperbolic for an upcoming program on PBS this week:

"NOVA tells the dramatic story of a group of pioneering mathematicians  
who developed fractals from a curiosity that few took seriously to an  
approach that is touching nearly every branch of understanding."


Jim Hurley

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


Re: Import gMail?

2009-08-14 Thread James Hurley

Jim-

Friday, August 14, 2009, 11:10:33 AM, you wrote:

> something to do with the fact that pi is a transcendental number and
> not simply an irrational number.

Reminds me of my favorite equation:

http://en.wikipedia.org/wiki/Euler%27s_identity


Mark,

Mine too. It has it all. All the fundamental numbers plus a geometric  
visualization in the complex plane.


Jim Hurley



--
-Mark Wieder
 mwieder at ahsoftware.net


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


Re: Importing gMail?

2009-08-14 Thread James Hurley


It
looks like you're trying to do a survey. Perhaps there's a better way
than simple email responses. If you have on-rev you could make a form
that collects response and allows only one vote per IP.
It could keep the tally in a simple text
file. Not idiot proof but fine for a small group. You should be  
able to do

the same thing using the plugin.

And yes, you could make a thing that gathers emails, but it would  
have to

allow 1 vote per email, and write some kind of form to work inside the
email. A lot more trouble, IMHO than making a simple web page.

-
Stephen Barncard
San Francisco
http://barncard.com
End of use-revolution Digest, Vol 71, Issue 25
**


Stephen,

You are probably right about using doing this on the  web.
I'm not concerned about duplicate "voting". This really a query about  
how people in the neighborhood are dealing with the fire insurance  
problem. I live in the Sierra Nevada foothills and as you know,  
California's rural areas burn down every summer and insurance is  
getting to be a problem.


The responses will be open ended narratives, so the reply windows  
need to scroll. I'm afraid my Web skill may not be up to the task. I  
need to work on this, particularly how to get the responses returned  
to me.


Thanks for your advice.

Jim Hurley



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


Re: Importing gMail

2009-08-14 Thread James Hurley

Recently, James Hurley wrote:

> My conviction that anything is possible
> from this list is sustained. (I've been working on squaring the
> circle. Any ideas anybody?)

What do you mean by "squaring"?  If you're trying to morph a circle  
into a

square, create the circle by starting with a roundrect graphic whose
roundradius is set to its diameter.  When the roundradius of the  
graphic is

decreased, the circle will become a square.

Maybe this isn't what you're after, but it's one version "squaring".

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


Scott,

Actually, Scott, I was trying to be funny. I get into more trouble  
that way.


Squaring the circle was a classic problem for Greek geometers. The  
problem was to use only the canonical geometrical tools (compass and  
straight edge) to construct a square with the same area as a given  
circle. It was all the rage in its day. It was the equivalent in its  
day of the present day problem to proving Fermat's last theorem.  
Except that that has recently been proven--took over a HUNDRED PAGES.


It was subsequently proven that squaring the circle is impossible. Has  
something to do with the fact that pi is a transcendental number and  
not simply an irrational number.


But I like your construction. See, I was right. Nothing is past the  
skills of the Rev list. Rev should use this in their promotional  
material for the new Rev Media. That is at least as important as the  
English-like Rev Talk. Let's give it a name: "List Talk"


Jim Hurley

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


Re: Importing gMail?

2009-08-14 Thread James Hurley
On Fri, Aug 14, 2009 at 10:15 AM, James Hurleysbcglobal.net> wrote:
> I'm thinking of sending a query (kind of an open ended survey) via  
gMail to

> members of my neighborhood association.
>
> I'm expecting a couple hundred replies. Is there some way to  
import the

> responses into Rev programatically for subsequent processing?
>
> I've come to believe that there is nothing that members of this  
list cannot

> do. Is this a bridge too far?


Hi Jim,

I was going to suggest enabling Gmail's POP access and using my POP
library to get the emails, but after checking, I see Gmail's POP uses
SSL on port 995 which my library does not do.

However you can set up Gmail to forward all emails to another address
and if you use one with standard POP access, then you can certainly
use my POP library as the basis for an email reader. You can download
the library and a sample stack from .

Cheers,
Sarah



Sarah,

That is just terrific. This will be a valuable tool for me. Thank you  
so much.


In this new Rev campaign let's not overlook the value of the  English- 
like dialog on this list--works at least for Australian and American.


However, there is something strange going on here (Mac OS 10.5.8 and  
Rev. 3.5 and 4) with your POP Library.
When I click "Check mail" your stack begins to download emails from my  
Mac Mail account (from which I have forwarded my gMails). It begins  
with: Reading message 1 of 72, and them moves on to message 2 etc.  
until it reaches message 30 when it stops reading briefly and begins  
all over again from message 1.


The only way to stop this is to close the stack. I should be able to  
debug this but I have no idea what is going on. This stuff is way over  
my head. Little help please.


Also, in looking through your scripts, I would like to be able to  
insert a conditional statement to download only email with a specific  
subject but I can't see where to inset this. Is this possible? Not  
critical; this can be done after the fact.


Thanks again. Very helpful! My conviction that anything is possible  
from this list is sustained. (I've been working on squaring the  
circle. Any ideas anybody?)


Jim Hurley

(By the way, the stack opens with the "Read emails" button disabled.  
Maybe a card script: On opencard \ set the disabled of button "Read  
emails" to false \ end opencard.)


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


Importing gMail?

2009-08-13 Thread James Hurley
I'm thinking of sending a query (kind of an open ended survey) via  
gMail to members of my neighborhood association.


I'm expecting a couple hundred replies. Is there some way to import  
the responses into Rev programatically for subsequent processing?


I've come to believe that there is nothing that members of this list  
cannot do. Is this a bridge too far?


Jim Hurley

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-30 Thread James Hurley


Message: 15
Date: Thu, 30 Jul 2009 05:38:13 -0700 (PDT)
From: capellan 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: use-revolution@lists.runrev.com
Message-ID: <24737617.p...@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi Jim,

This revlet works great inside the web browser.



What surprises me is that it runs so much faster in the browser than  
in the IDE or standalone.
Kevin says they are working on these display issues. I'm anxious to  
see how this plays out.



Now, i find suspicious that with the first shot
i was able to sink 8 balls... twice in a row. :-D



This is probably a function of the speed in the browser. The faster  
the ball comes of the cue stick the more action you will get. I also  
put up a version that allows one to slow things down a bit. It's in a  
Preference panel.


In principle, if you shoot hard enough, you can sink all the balls in  
a single shot.
Of course the cloud with this silver lining is that you will also  
scratch.


Just for the hell of it, some time ago, I included a feature which  
allows you to see how the shot will play out, i.e. it predicts the  
path of the struck ball.

Try this in your message box:

go url "http://jamesphurley.on-rev.com/NineBallForTheRiskAverse.rev";

It is a little buggy, i.e. it can't always figure out which ball you  
are aiming at.


At one time I considered programing Nine Ball to play by itself. That  
way I can start the game and go out for coffee.
It would think a bit, examine the possibilities and the geometrical  
constraints and then say "Three ball in the corner pocket" and it  
would come to pass.

Lots of geometry to work out there.
Not much fun to play, but a great time saver. (As usual, the fun is in  
the programming.)




Keep up your great work!
and thanks to Scott Rossi for
lending his gifted hands to
this revlet.


Scott has taught me how important the "Tactile Medium" is.

Jim Hurley



al
--




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


Re: New (?) display problems in RevWeb

2009-07-29 Thread James Hurley



>
(On Windows XP here)
Behaviour is the same in FF3.0.12, Google Chrome 2.0.172.37 and IE8.  
Opera
refuses to load the revWeb plugin (I think that is something to do  
with the
javascript detection routine, as I can get the samples to work in  
Opera on

the runrev page - although not the main demo).

On the moving ball card, clicking either of the buttons flashes the  
ball at
high speed across the card. Clicking the ball itself, the movement  
begins on
the left and proceeds smoothly and slowly across. IF the mouse is  
moved
(while over the revlet) during the ball movement, then the speed  
increases -
not to the "almost instant" level of clicking the button, but about  
4 times
the speed. If the mouse pointer is moved off the revlet to another  
area of

the web page, then the speed reverts to the slow steady version.
(SNIP)

Hope that's useful.




Yes, that is helpful. Thank you. So it is not a Mac problem.

I had completely forgotten about that script within the ball itself.  
It is rather convoluted (see below.)
What it does it to move the ball forward one pixel (move grc "ball"  
relative 1,0 without waiting) and then responds to a "mouseStopped"  
message to go back and repeat the "move relative" command. And so on  
for 600 repetitions. The web version has been updated:


http://jamesphurley.on-rev.com/DisplayProblem/test.html

Apparently the revlet responds to the mouseStopped message and forces  
a screen refresh, or as Jacque suggest, simply slows it down enough to  
see the change on screen, omething that does not happen with the loop  
through the setLoc commands or the mouseMove commands of the   earlier  
"rainbow" example.


I don't get any of the effects you describe in moving the mouse out of  
the window. Curious.



Jim Hurley



The Ball Script:

local tLoc,i, tStartTime

on mouseUp
  put the ticks into tStartTime
  set the loc of grc "ball" to 10,100
  put 1,0 into tLoc
  set the movespeed to 65000
  put 1 into i
  doMove
end mouseUp

on moveStopped
  if i < 600 then
add 1 to i
doMove
  else
put "Movestopped" & comma\
&& the ticks - tStartTime & " ticks" &return after field 1
put the script of me into field "script"
  end if
end moveStopped

on doMove
  move grc "ball" relative tLoc without waiting
end doMove



James Hurley wrote:

> But I find that the forced screen refresh does not work when  
running the

> revlet  in the browser.
> To see this, open the following  Web site to run the stack in your  
Web

> browser:
>
> http://jamesphurley.on-rev.com/DisplayProblem/test.html
>
> There are two cards. On the first a ball bumps along across the  
screen.

> It should run smoothly.

It seems to me that both problems aren't because of a delay, they are
because the engine is running so fast. A simple unlock of an already
unlocked screen gets skipped right over in a flash. For the first  
card,

using "move grc 'ball' to 610,10 in 3.5 seconds" works well.

> On the second card a sentence is displayed slowly one character at a
> time across a field.  Instead it jump along, several characters at  
a time.


Since unlocking the screen happens too fast to cause a delay, I used
"wait 1 millisecond with messages" instead. In the IDE that works  
fairly

well. It was still too slow for a revlet, but increasing the wait to 3
or 5 milliseconds got the right results.


Jacque,

Thanks for your feedback.
I think you are right about the speed with which the stack runs as a  
weblet. I'm not so sure about the IDE being the culprit. I saved the  
stack as a stand alone, and it runs at about the same speed as a  
standalone as it does running in the IDE. Why is there such a large  
speed increase in the revlet over that in the standalone? Very  
strange. But not unwelcome. Just need to harness this newfound speed.


And there is still the VERY slow response in the Rainbow stack--see:

http://jamesphurley.on-rev.com/Rainbow/test.html

Dragging the flashlight is lethargic and occasionally, the image  
itself breaks up.


Thanks again,

Jim Hurley



>
> These problems may be cause by the same interference problem  
between Rev

> screen refresh rate and the browsers refresh rate.

It acts like there's no interference at all. The IDE has a lot of  
extra
messaging going on, the revlet does not. Using a better "braking"  
system

fixes it. When possible, it's better to use commands that were created
specifically to control moving objects (i.e., card 1 does better with
the "move" command) and where that isn't possible a longer wait time  
is

necessary. The revlet is running full-bore without that.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software   | http://www.hyperactives

New (?) display problems in RevWeb

2009-07-28 Thread James Hurley
I'm back again, refreshing my postings on the screen refresh rate   
problems in revlets. And perhaps a clue to their origin.


Some of you are aware of the existing display problem when running Rev  
in the IDE in OS X.
If an object is moved across the screen with "set the loc"  
command, it is necessary to force a screen refresh after each repeat   
loop.
That screen refresh can be executed with an "unlock screen" or a "wait  
1 millisec."


If you run the stack "DisplayProblemsOSX.rev" (see below)  in the Rev  
IDE you can see the problem on the Mac side and how to fix it.


Run this in the message box to run the stack in the IDE:
go url "http://jamesphurley.on-rev.com/DisplayProblemsOSX.rev";



But I find that the forced screen refresh does not work when running  
the revlet  in the browser.
To see this, open the following  Web site to run the stack in your Web  
browser:


http://jamesphurley.on-rev.com/DisplayProblem/test.html

There are two cards. On the first a ball bumps along across the  
screen. It should run smoothly.
On the second card a sentence is displayed slowly one character at a  
time across a field.  Instead it jump along, several characters at a  
time.


These problems may be cause by the same interference problem between  
Rev screen refresh rate and the browsers refresh rate.

Just a guess. I have no idea what goes on behind the scenes.

I would appreciate it if someone would run the stack in Windows. Is  
this just a Mac problem? Thanks.


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


Group members

2009-07-28 Thread James Hurley

How do I get a list of all the controls within a group?
And if they are grouped radio buttons, is the a shortcut to finding  
out which is selected?


Thanks,

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


Re:[ANN] Watch a video about a whole new approach to script editing

2009-07-28 Thread James Hurley

Jerry,

Very impressive.

On a peripheral note: I am always impressed by these educational  
movies of work done with Rev.


Could you tell me what tools you used to make yours? Screen capture  
software for example?


Thanks,

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-27 Thread James Hurley
I should have reminded everyone that Scott Rossi did a graphics remake  
of the Nine Ball stack: those nice shinny balls and the wood grained  
table are his. (Well, my design of the circular black pockets  
survived. I'm so proud.)


I am astonished at how smoothly and effectively  this move to the  
webLets is going, particularly since this alpha release. Well done Rev!


I am so excited. Now I can expose myself on the Web.

So, off to get a raincoat,

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jul 26, 2009 at 1:48 AM, James Hurley> wrote:


(SNIP)




As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd  
characters.

When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah,

Your recipe for putting a stack on the web worked like a charm.  
Thanks!


Unfortunately, if Richard is right about the bumpy behavior being   
"natural by-product of running inside the browser" , it does not  
look good for porting games to a revlet.

Take a look at Nine Ball on the web:

http://jamesphurley.on-rev.com/NineBall/test.html

Not good at all.

Jim Hurley


 I restarted my computer and Voila, it is a whole new ball game. It  
runs much more smoothly--surprisingly well in fact. Don't know what  
happened with the restart.


Only problem was I have to slow it down now. It ran much too fast.  
That was best done by adding another preference.


Set the Fast/Slow speed to about 45 and the Short/Long roll to .998

The new web url is

http://jamesphurley.on-rev.com/NineBall2/test.html


Note the 2.

This resolves the Nine Ball app, but not the Rainbow app. In that app,  
the torch graphic breaks up as I drag it.


Sarah: Should I report this and where to and in what form? The  
original RunRev desktop stack?


Jim Hurley







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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jul 26, 2009 at 1:48 AM, James Hurley> wrote:


(SNIP)




As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd characters.
When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah,

Your recipe for putting a stack on the web worked like a charm. Thanks!

Unfortunately, if Richard is right about the bumpy behavior being   
"natural by-product of running inside the browser" , it does not look  
good for porting games to a revlet.

Take a look at Nine Ball on the web:

http://jamesphurley.on-rev.com/NineBall/test.html

Not good at all.

Jim Hurley





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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 5
Date: Sat, 25 Jul 2009 18:05:53 -0700
From: Richard Gaskin 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID: <4a6babf1.2030...@fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

James Hurley wrote:
Before I begin to dream about the potential of Revlet, I would like  
to

have some idea about the potential, particularly the speed in running
graphics.


I haven't tested graphics operations, and would be interested to  
hear of

any differences from those.  But FWIW, I ran RevBench in both the
browser and the IDE and could discern no significant differences in
performance.

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com


--

Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1


(Snip)






I built your image moving stack and uploaded it to
<http://troz.on-rev.com/rainbow/move.html>.
It seems to work at full speed, so it isn't the mouseMove itself, but
the amount of processing that has to happen on every mouseMove.
I tried several options: locking the screen, only drawing the lines if
the torch has moved more than a certain number of pixels, limiting the
number of redraws per second, flushing events. I even tried replacing
the torch image with a button in case redrawing the image was too
much.
I think I made it a bit better, but it's still not great, but you can
try it again at the same address.

As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd characters.
When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah and Richard,

I have uploaded an old stack of mine which is both calculational and  
graphic-display intensive, my old Nine Ball simulation:


go url "http://jamesphurley.com/NineBallWithSpin.rev";

As I suspected from both Richard's and Sarah's findings that the  
calculational parts (calculating the positions and velocities of all  
the balls and determining the new positions and velocities after
collisions) run very well in Safari. But the motion of the balls is  
very stuttered. It runs at full speed, that is it takes the same time  
to execute one "shot" but the motion of the balls is herky-jerky.



I am puzzled, Sarah, when you say that the mouseMove stack works at  
full speed and then you say that it is not great. (And you speak of  
the torch. Did you mean the winter scene of my barn?) Maybe you mean  
it runs at full speed but is bumpy? Did you find the torch image  
breaking up into two pieces as you dragged it?


I also tried "grab me" but with the  same bumpy results.

This is something that I hope can be remedied. After all, this is just  
alpha. We have the whole greek alphabet to go.


Sarah, thanks for the info on getting an app on the web. I'll work on  
it.


Jim



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


Re: Any thoughts on speed limitations of Revlet?

2009-07-25 Thread James Hurley


> P.S. The stack I tried was "RainbowTest.rev" and if you are  
interested you  can see it in action by running the line below in  
the message box. And if  you have Rev 4.0 you can create your own  
test by saving it for the web.

go url "http://www.jamesphurley.com/RainbowTest.rev";
Not only does the "mouseMove" handler run lethargically, but the  
image (a  flashlight, or up in Scotland, a torch) carrying that  
script breaks up on  the screen, i.e. the image breaks up into two  
separate parts. Odd.
I tested your stack Jim. It was very interesting as it worked at  
full speed when running in the browser but from the files on my  
desktop. When I uploaded the revlet & it's html file to my web  
server , it ran as  
described. Interestingly, the "Draw bunches" script runs fine, it  
seems to be dragging the torch around that causes the delay. This  
may be an optimization thing that will be improved as the plugin  
develops, or it may be that mouseMoves need to be handled  
differently.

Cheers, Sarah


Thanks Sarah. Your feed back was very helpful. I confess that when I  
ran the stack I posted to you I got the same results you did--and  
not the same as I obtained earlier when I ran the full stack from  
which I extracted the bit I posted.


Just to isolate the  issue of the graphic display, I tried a very  
simple stack: A single image (my barn last winter) with a MouseMove  
handler.


go url "http://www.jamesphurley.com/MoveGraphicTest.rev";

When I drag this image around the screen (running in Safari from the  
file on my desktop) I found the motion to be rather bumpy, not  
nearly as smooth as when running in desktop RunRev. It is tolerable,  
but bumpy. As you say, this may be something that needs tweaking as  
the plug in evolves.


I haven't tried uploading it to the my web server. Not sure how to  
proceed to the next step. The url in Safari looks like this:


file:///Rev%20apps%20on%20web/Untitled%201/test.html

I never have figured out what character the  %20 is a substitution  
for. Little help? How would I proceed from this Safari rendition to  
posting it to my on-rev web site for a test?


Thanks,

Jim Hurley


And a second thought. Maybe it is a Mac thing. There has been a  
longstanding display problem on the Mac in which it is necessary to  
force a screen refresh when performing a sequence of steps using  
either a "wait 0 millisec" or "unlock screen"


Jim

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-25 Thread James Hurley


> P.S. The stack I tried was "RainbowTest.rev" and if you are  
interested you  can see it in action by running the line below in  
the message box. And if  you have Rev 4.0 you can create your own  
test by saving it for the web.

 go url "http://www.jamesphurley.com/RainbowTest.rev";
 Not only does the "mouseMove" handler run lethargically, but the  
image (a  flashlight, or up in Scotland, a torch) carrying that  
script breaks up on  the screen, i.e. the image breaks up into two  
separate parts. Odd.
 I tested your stack Jim. It was very interesting as it worked at  
full speed when running in the browser but from the files on my  
desktop. When I uploaded the revlet & it's html file to my web  
server , it ran as  
described. Interestingly, the "Draw bunches" script runs fine, it  
seems to be dragging the torch around that causes the delay. This  
may be an optimization thing that will be improved as the plugin  
develops, or it may be that mouseMoves need to be handled differently.

 Cheers, Sarah


Thanks Sarah. Your feed back was very helpful. I confess that when I  
ran the stack I posted to you I got the same results you did--and not  
the same as I obtained earlier when I ran the full stack from which I  
extracted the bit I posted.


Just to isolate the  issue of the graphic display, I tried a very  
simple stack: A single image (my barn last winter) with a MouseMove  
handler.


go url "http://www.jamesphurley.com/MoveGraphicTest.rev";

When I drag this image around the screen (running in Safari from the  
file on my desktop) I found the motion to be rather bumpy, not nearly  
as smooth as when running in desktop RunRev. It is tolerable, but  
bumpy. As you say, this may be something that needs tweaking as the  
plug in evolves.


I haven't tried uploading it to the my web server. Not sure how to  
proceed to the next step. The url in Safari looks like this:


file:///Rev%20apps%20on%20web/Untitled%201/test.html

I never have figured out what character the  %20 is a substitution  
for. Little help? How would I proceed from this Safari rendition to  
posting it to my on-rev web site for a test?


Thanks,

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


Any thoughts on speed limitations of Revlet?

2009-07-24 Thread James Hurley
Before I begin to dream about the potential of Revlet, I would like to  
have some idea about the potential, particularly the speed in running  
graphics.


Just for fun I ran a small part of a stack meant to demonstrate the  
physics behind the rainbow. The stack, as  a Revlet in Safari,  is  
very slow; bordering  on the prohibitive. (Maybe that's what Clinton  
had in mind when he said before his first election that he smoked  
marijuana but he didn't inhale. He was only bordering on the  
prohibitive?)


Since the Revlet app is downloaded to one's computer, it is not  
running off of the cloud. It runs off the desktop plug in--but it is  
displayed in a web browser.


Anyone have any idea how this will limit the computational or display  
speed of Revlet? Are the speed problems primarily associated with  
display? Maybe it is too early to ask this question.


Jim Hurley

P.S. The stack I tried was "RainbowTest.rev" and if you are interested  
you can see it in action by running the line below in the message box.  
And if you have Rev 4.0 you can create your own test by saving it for  
the web.


go url "http://www.jamesphurley.com/RainbowTest.rev";

Not only does the "mouseMove" handler run lethargically, but the image  
(a flashlight, or up in Scotland, a torch) carrying that script breaks  
up on the screen, i.e. the image breaks up into two separate parts. Odd.




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


Re: Future Trends For Media Delivery - Where will RunRev Be?

2009-07-23 Thread James Hurley



--

Message: 7
Date: Thu, 23 Jul 2009 09:08:57 -0700
From: Richard Gaskin 
Subject: Re: Future Trends For Media Delivery - Where will RunRev Be?
To: How to use Revolution 
Message-ID: <4a688b19.7050...@fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed




Sivakatirswami wrote:

A bit OT here, but I like to query the group on future trends from  
time
to time just to sound the waters, ""blue sky" "what do you think  
about

it" ...



The general sense is (and it is already happening) that users want to
download a digital "product" and read it off line.


In the short term offline modes for applications will remain  
important,

since the 'net is approaching ubiquity but still some years from
actually being so.




(SNIP)


Thank you Richard. That was very informative--and entertaining.
Fortunately, for 30 years I only had to deploy to one target,  
students, and always with chalk on a blackboard.
I can see now that had I been more adept with RunRev I might have done  
a lot with graphic presentations.
In that connection I would like to have  RunRev do a webinar on how to  
construct a streaming webinar.


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


Re: Webinar questions

2009-07-14 Thread James Hurley


Message: 6
Date: Mon, 13 Jul 2009 22:35:25 +0200
From: Malte Brill 
Subject: Re: Webinar questions
To: use-revolution@lists.runrev.com
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi Jim,


FIrst, how does one implement vertical text?


The implementation was done the following way. Set up the text in
transparent buttons. Fiddle with the margins. Import snapshot from
button. Set the resizeQuality of snapshot to best. Rotate the image.
For speed reasons do all this with messages locked. Obviously, this
only works for relatively small portions of text and an engine version

=3 is recommended.


This is far from ideal, as it does not print too well. For printing
purposes a bit more work is required and I still look into that area.
I would love to see real vector text in Rev at some point. This would
be so useful.

Hope that helps,

Malte



Malte,

Thanks. Very clever. But as you say, the real solution is vector text  
built into Rev.


Jim

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


Re: Rev Player?

2009-07-13 Thread James Hurley


Message: 3
Date: Sat, 11 Jul 2009 11:00:30 -0700
From: Richard Gaskin 
Subject: Re: Rev Player?
To: How to use Revolution 
Message-ID: <4a58d33e.9060...@fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Paul Gabel wrote:

Does anyone know if Revolution Player is still being supported? All I
can find is Player 2.7.1, and my stack created in Rev 3.5 won't open
in it.


I believe RunRev still makes a Player, so there should be one  
available

for the latest engine version.

But if you're using Studio or Enterprise it's only a few minutes' work
to make your own, allowing you to tailor the user experience and
branding for your specific audience while retaining all the  
conveniences

of being able to deliver tiny stack files.


Richard,

This sound intriguing, but I wouldn't know where to begin. How about a  
hint?


Jim Hurley

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


Webinar questions

2009-07-13 Thread James Hurley

A couple of questions generated by the last Webinar.

FIrst, how does one implement vertical text?

Second, a beginner's question on movie making. What is the basic  
mechanism by which the streaming video is created? What software does  
one use to make of movie of the actions being taken (and the voice  
input) while working in the RunRev IDE?


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


Re: Convert RGB to HSV

2009-07-04 Thread James Hurley
What I have been using are the following two functions. I believe they  
originated with Monte Goulding. (With a slight addition to allow for a  
single parameter input containing the rgb values.)

They have been VERY useful. There are times when HSV is critical.
(Of course neither is useful in getting the RGB--or HSV--values from  
the color names.)


Jim Hurley

function RGBtoHSV r, g, b
   if the paramcount is 1 then
  put item 3 of r into b
  put item 2 of r into g
  put item 1 of r into r
   end if
   local maxv, minv, diff, s, rc, gc, bc, h
   set the numberFormat to "0.###"
   put r / 255 into r
   put g / 255 into g
   put b / 255 into b
   put max(r,g,b) into maxv
   put min(r,g,b) into minv
   put maxv - minv into diff
   if maxv <> 0 and diff <> 0 then
  put diff / maxv into s
  put (maxv - r) / diff into rc
  put (maxv - g) / diff into gc
  put (maxv - b) / diff into bc
  if r = maxv then put bc - gc into h
  else if g = maxv then put 2 + rc - bc into h
  else if b = maxv then put 4 + gc - rc into h
  multiply h by 60
  if h < 0 then
 add 360 to h
  end if
   else
  put 0 into s
  put 0 into h
   end if
   return round(h),round(s * 100),round(maxv * 100)
end RGBtoHSV

function HSVtoRGB h, s, v
 if the paramcount is 1 then
  put item 3 of h into v
  put item 2 of h into s
  put item 1 of h into h
   end if
  local rgb, i, f, p, q, t
  set the numberFormat to "0.###"
  divide s by 100
  divide v by 100
  if s is 0 then put v,v,v into rgb
  else
divide h by 60
put trunc(h) into i
put h - i into f
put v * (1 - s) into p
put v * (1 - s * f) into q
put v * (1 - s * (1- f)) into t
if i is 0 then put v,t,p into rgb
if i is 1 then put q,v,p into rgb
if i is 2 then put p,v,t into rgb
if i is 3 then put p,q,v into rgb
if i is 4 then put t,p,v into rgb
if i is 5 then put v,p,q into rgb
  end if
  return round(item 1 of rgb * 255), round(item 2 of rgb * 255),  
round(item 3 of rgb * 255)

end HSVtoRGB


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


Re: RGB valuesfor a color name

2009-07-04 Thread James Hurley


Message: 16
Date: Fri, 03 Jul 2009 14:05:15 -0700
From: Scott Rossi 
Subject: Re: RGB valuesfor a color name
To: Revolution Mail List 
Message-ID: 
Content-Type: text/plain;   charset="US-ASCII"

Recently, James Hurley wrote:

I'm surprise that mouseColor is the only function that returns the  
RGV

values of named colors.


This is the way I do it (requires an object).  Starting with a  
graphic, for

example:

set the backColor of grc 1 to 
set the backPixel of grc 1 to the effective backPixel of grc 1
get the backcolor of grc 1

Not sure why it works, but it does for me.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design




Scott,

Thanks for this. It is easier than using the pencolor, even if it does  
require a preexisting object.
It seem particularly appropriate that an object carrying the color  
"WhiteSmoke",  for example, should exist before being defined by its  
RGB values.


In an effort to probe the mysteries of "backpixel" and "effective  
backPixel" I included a couple of extra lines of code:


  put the backPixel of grc tName into tempBack
  put the effective backPixel of grc tName into effectiveTempBack
  set the backPixel of grc tName to the effective backPixel of  
grc tName


I discovered that tempBack and effectiveTempBack are the same and, in  
this instance,  equal to 16711680.


And so it is with all existential questions that they be mysterious:  
"In the beginning was the engine, and the engine was with Scott  
(Rainey)"


Jim Hurley 
  
___

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


Re: RGB valuesfor a color name

2009-07-03 Thread James Hurley

Thanks Richmond, Phil and Viktoras

I'm surprise that mouseColor is the only function that returns the RGV  
values of named colors.


Jim


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


RGB values for a color name

2009-07-03 Thread James Hurley
How do I translate a color name (Blue1 for example) into its RGB  
values? Programatically.


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


Re: strategies for non-horizontal text orientation

2009-06-13 Thread James Hurley


Message: 10
Date: Fri, 12 Jun 2009 17:22:36 -0700
From: Richard Gaskin 
Subject: strategies for non-horizontal text orientation
To: How to use Revolution 
Message-ID: <4a32f14c.1020...@fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I have a project which will need to present a grid layout in which the
columns are narrow but will be identified with text labels.

Ideally these would be at a 45-degree angle, so each could be clearly
associated with the column they relate to but still be reasonably
readable.  But at worst I'd accept a fully-vertical orientation.



Richard,

This is probably too much overhead for you but you can write text  
along any path using (you guess it) Turtle Graphics.


Run

go url "http://www.jamesphurley.com/TextAlongPath.rev";

in the message window and look at the last card.

If this is an option, I can clear out the unnecessary baggage, i.e.  
those TG commands not used for this particular application.


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


Re: Rotating images

2009-04-25 Thread James Hurley

Oops. I meant to say:

Nor will RR accept fractional input to points in a point list. If you  
do there will be no

error message. It just inserts a return into the list of points and
you get a gap in the line, or nothing if all the points are fractional.

And the summary should have been:

Accepts fractional input:
   Move object  from pointA to pointB
   Set angle  of image to tAngle

Does not accept fractional input:
   Move object to tPoint
   The points of a graphic list




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


Re: Rotating images

2009-04-25 Thread James Hurley

--

Message: 12
Date: Fri, 24 Apr 2009 17:49:05 -0700
From: Scott Rossi 
Subject: Re: Rotating images
To: Revolution Mail List 
Message-ID: 
Content-Type: text/plain;   charset="US-ASCII"

Recently, Randall Reetz wrote:


Can one rotate images by degree or fraction of degree?


You should be able to rotate an image simply by using:

 set the angle of img "myCoolImage" to 45

The docs say the numeric value is an integer so like most position- 
based
things in Rev you can only use whole numbers, no fractions.  Until  
Rev gets
subpixel positioning, we won't be able to accomplish fine  
positioning of

graphics and images.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design



Scott (and Randall),

I've been playing with moving images around a loop while keeping the  
image oriented along the tangent and found some strange things about  
the input that RR allows.


It turns out that RR will truncate a fractional angle for you. (See  
script below.)
It will also accept fractional input to "move image from pt1 to pt2"  
where the two points have fractional items, but will not accept a  
fractional input to "Move image to tPt" if tPt contains fractional  
items.


Nor will RR accept fractional input to setLoc but there will be no  
error message. It just interest a return into the list of points and  
you get a gap in the line, or nothing if all the points are fractional.


I put in a request many years ago asking that RR do all the truncating  
in the engine. Sooo much simpler. If that request is still active, I  
would appreciate your vote. (The trouble is that I means I have to  
keep two sets of books for the graphic points, one for calculating the  
tangent angle and one for setting the graphic points to display the  
graphic.)


So in summary:

Accepts fractional input:
   Move object  from pointA to pointB
   Set angle  of image to tAngle

Does not accept fractional input:
   Move object to tPoint
   Set the loc of object to tPoint

Script to test:

on mouseUp
   put 100/3, 200/3 into tLoc
   put 400/3,600/4 into tNewloc
   move image 1 from tLoc to tNewLoc--This works.
   --but: move image 1 to tLoc fails with the message "tLoc is not a  
point"

   --and set the loc of image 1 to tLoc also fails


   --To test "set angle" using fractional input:
   set the angle of image 1 to 0
   wait 1 tick--Necessary on the Mac to get a screen refresh
   put 10 into i
   repeat
  add .1 to i
  set the angle of image 1 to i
  put the angle of image 1  & cr after results
  if i > 30 then exit repeat
   end repeat
   put results into msg box
   --You will find only integer values in the message box
   --RR will truncate the angle input for you.
end mouseUp



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


Re:convert to scientific notation

2009-04-20 Thread James Hurley


Message: 3
Date: Mon, 20 Apr 2009 16:53:05 -0700
From: Randall Lee Reetz 
Subject: convert to scientific notation
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I can't remember how to use power function "^" to find the nth root
of a number.  To find the 2ndth root of a number we can use the "sqrt
()" function.  But to find the nth root

For instance, lets say I want to convert a number to scientific
notation (the 10th root of that number)... I used to know how to use
the power function to do this.  Anyone remember how to do it?

I tried to get the 10th root (scientific notation) of 100  (which
should = 2) by: 100^(1/10) ... but that isn't it.

Any ideas?  I feel brain dead.

Randall



Randall,

Here is the function I have always used--see Turtle Graphics

function sci tNum,sigFigures
  if tNum < 0 then
put "-" into sign
  else put empty into sign
  put abs(tNum) into tNum
  if sigFigures is empty then put 3 into sigFigures--Default  
significant figures.

  put 0 into count
  if tNum >= 1 then
repeat until tNum < 10
  divide tNum by 10
  add 1 to count
end repeat
put round((10^(sigFigures-1))*tNum)/10^(sigFigures-1) into tNum
return sign & (char 1 to sigFigures + 1 of tNum) &"*10^" & count
  end if
  if tNum < 1 then
repeat until tNum >= 1
  multiply tNum by 10
  add 1 to count
end repeat
  end if
  return sign & (char 1 to sigFigures + 1 of tNum) & "*10^-" & count
end sci

For example:

put sci(23346.445443,4)

gives 2.335*10^4

Brute force, but functional.

Jim Hurley


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


Re: Creating complex graphic objects

2009-04-04 Thread James Hurley


Message: 16
Date: Sat, 4 Apr 2009 08:19:13 -0700 (PDT)
From: Richmond Mathewson 
Subject: Creating complex graphic objects
To: use-revolution@lists.runrev.com
Message-ID: <421630.70136...@web37505.mail.mud.yahoo.com>
Content-Type: text/plain; charset=utf-8


James Hurley wrote:

"Then take the points of the circle (in the variable results) to
extract say the 10th and 14th points.
Create a new graphic using these two points and set the end arrow to
true.
Do this periodically throughout the repeat loop--every so often pick
a pair of points, create a new grc and set the end arrow to true.

Voila, a circle with arrows."

Richmond Mathewson wrote:

Wrong!

A series of overlapping graphics which give the appearance of a circle
with arrows.

Still unable to 'rotate' this 'circle'.

___


Richmond,

Since the circle is symmetric with respect to the axis of rotation,  
only the arrows need to rotate.


In the message box run:   go url "http://www.jamesphurley.com/ 
CircleWithArrow.rev"


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


Re: Creating complex graphic objects

2009-04-02 Thread James Hurley

-

Message: 8
Date: Thu, 2 Apr 2009 14:52:04 +0100
From: David Bovill 
Subject: Creating complex graphic objects
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

I've a couple of shapes that I need to create for an app that lend
themselves to the use of the graphic control - because I want them at
various sizes and also because they use "markers" on a graphic  
shape. The

problems is the complexity of tweaking the points by hand. I know of
experiments importing geometry from apps like Illustrator - but was
wandering if anyone has any examples / a library of shapes or  
techniques to

make this easier?

For instance the shapes I need are "stars" - that I can dynamically  
colour.

By roughly drawing a star and then:

set the editmode of the selectedobject to "polygon"

I can tweak the shape manually which helps a lot.

 But when it comes to more complex structures it would be good to  
draw them

in illustrator and import the geometry.

For instance - I also want to create circles with variable numbers  
of evenly
spaced marker points(iIdeally the arcs would have arrows on them to  
indicate
a clockwise flow). It would be "nice" not to have to create these  
as images
at different scales and import them from an external app - but  
AFAIK its not

really practical at the moment. Any suggestions?


P.S.

Turtle Graphics is simpler but here is another way:

Use the following script to create a circle:

on mouseUp
   set the style of the  templateGraphic to "line"
   if there is no grc "circ" then create grc "circ"
   put 100 into tR -- the radius
   put 0 into tA -- the angle
   put 100 into tNumPoints--or whatever you need for your resolution
   put round(360/tNumPoints) into da
   put the loc of this card into tLoc
   put item 1 of tLoc into x0
   put item 2 of tLoc into y0

   repeat tNumPoints
  put tR * cos(tA*pi/180) into x
  put tR*sin(tA*pi/180) into y
  put round(x0+x) & comma & round(y0+y) & cr after results
  add da to tA
   end repeat

   set the points of grc "circ" to results
end mouseUp

Then take the points of the circle (in the variable results) to  
extract say the 10th and 14th points.
Create a new graphic using these two points and set the end arrow to  
true.
Do this periodically throughout the repeat loop--every so often pick  
a pair of points, create a new grc and set the end arrow to true.


Voila, a circle with arrows.

Jim Hurley

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


Re: Creating complex graphic objects

2009-04-02 Thread James Hurley


Message: 8
Date: Thu, 2 Apr 2009 14:52:04 +0100
From: David Bovill 
Subject: Creating complex graphic objects
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

I've a couple of shapes that I need to create for an app that lend
themselves to the use of the graphic control - because I want them at
various sizes and also because they use "markers" on a graphic  
shape. The

problems is the complexity of tweaking the points by hand. I know of
experiments importing geometry from apps like Illustrator - but was
wandering if anyone has any examples / a library of shapes or  
techniques to

make this easier?

For instance the shapes I need are "stars" - that I can dynamically  
colour.

By roughly drawing a star and then:

set the editmode of the selectedobject to "polygon"

I can tweak the shape manually which helps a lot.

 But when it comes to more complex structures it would be good to  
draw them

in illustrator and import the geometry.

For instance - I also want to create circles with variable numbers  
of evenly
spaced marker points(iIdeally the arcs would have arrows on them to  
indicate
a clockwise flow). It would be "nice" not to have to create these  
as images
at different scales and import them from an external app - but  
AFAIK its not

really practical at the moment. Any suggestions?




David,

You may want to consider Turtle Graphics. (See http:// 
www.jamesphurley.com/runrev.html)


Here, for example is the script for drawing a circle with evenly  
space arrows along the perimeter:


on mouseUp
   put 90 into tNumPoints
   startTurtle

   repeat with i = 1 to tNumPoints
  forward 10
  left 360/tNumPoints
  if i mod 10 is 0 then
 drawArrow 10,15
  end if
   end repeat

   choose the browse tool
end mouseUp

on drawArrow tLength,tAngle
   right tAngle
   back tLength
   forward tLength
   left 2*tAngle
   back tLength
   forward tLength
   right tAngle
end drawArrow

You can create either an image or a vector graphic. Stars would be  
easy as well.


JIm Hurley









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


Re: Well I never!

2009-03-28 Thread James Hurley
Thanks for all the help. I'm just now lifting myself out of  the  
third layer of Russian dolls.


As Trevor shows, it is more complex than the Russian Doll model. In  
his example:



mdArray[1]["children"][1]["name"]

The benefit of the multi-dimensional array is that you can treat each
"group" as its own entity.

'put the keys of mdArray[1]' only returns the "properties" for that
"group". The output would be:

name
children

Since "children" is also a "group" I can ask for its properties as
well:

'put the keys of mdArray[1]["children"]' would output:

1



In this example the Doll gets put back inside itself, i.e. "group" 1  
is put back inside itself.


I think I'm now beginning  to understand the topology of, pardon the  
expression, go f... yourself.


Jim Hurley

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


Re: use-revolution Digest, Vol 66, Issue 47

2009-03-28 Thread James Hurley



On Mar 28, 2009, at 8:43 AM, James Hurley wrote:

On Mar 28, 2009, at 1:26 AM, Jim Ault wrote:


A simple example we all know...

I live in an array called a "house"
It contains rooms thus
house[bedroom]
house[kitchen]
---my kitchen contains a refrigerator with shelves and a freezer
house[kitchen][refrigerator][top shelf]"cheese, pickles, butter"


Wait, wait,not so fast. I get that arrays are hierarchical. But I
need to know what you mean by the line  above.

RR won't compile [top shelf], is "shelf" a parameter associated with
"top"? Or was it an abbreviation  for top_shelf or maybe  topShelf?

And what happens to the trailing "cheese,pickles, butter"? is this
now the array element assigned to house[kitchen][refrigerator][top
shelf]


As you see, I can't get started with this until I get a handle on the
notation.
You are correct that Rev won't compile
house[kitchen][refrigerator][top shelf]
but it will compile using the syntax
house["kitchen"]["refrigerator"]["top shelf"]

I left out the quotes so it would read better.

So the syntax would be
put "cheese, pickles, butter" into house["kitchen"]["refrigerator"]
["top shelf"]

Hope this helps,

Jim Ault
Las Vegas




Thanks Jim. I get it.

I do a lot of election database work for local political  candidates  
at election time.
In that case there are a fixed set of defined fields for each voter  
record.
I use RR a lot for constructing mailing labels for select political  
mailers, i.e. mail to households, or to families using first names,  
or just to individuals.
It doesn't appear that the hierarchical nature of  RR multi- 
dimensional arrays would be an advantage in these kinds of applications.


Thanks again,

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


Re: Well I never!

2009-03-28 Thread James Hurley

On Mar 28, 2009, at 1:26 AM, Jim Ault wrote:

> A simple example we all know...
>
> I live in an array called a "house"
> It contains rooms thus
> house[bedroom]
> house[kitchen]
> ---my kitchen contains a refrigerator with shelves and a freezer
> house[kitchen][refrigerator][top shelf]"cheese, pickles, butter"

Wait, wait,not so fast. I get that arrays are hierarchical. But I  
need to know what you mean by the line  above.


 RR won't compile [top shelf], is "shelf" a parameter associated  
with "top"? Or was it an abbreviation  for top_shelf or maybe  topShelf?


And what happens to the trailing "cheese,pickles, butter"? is this  
now the array element assigned to house[kitchen][refrigerator][top  
shelf]


As you see, I can't get started with this until I get a handle on the  
notation.


Jim Hurley


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


Re: Well I never!

2009-03-27 Thread James Hurley


On Mar 27, 2009, at 2:47 AM, James Hurley wrote:


Watching the web demo today I witnessed a funny thing. It looked
like this

twoDimenArray ["stuff"] ["moreStuff"]

[Snip]

And  what are the keys of aArray?





Trevor DeVore wrote:



I'm going to take a stab at an analogy comparing an array to
Revolution objects and see if that helps. If it doesn't then pretend I
never made it :-)

Think of an old array as a button. You could have one button but you
could not place a button inside another button. In the old syntax you
had one button with many properties. For example if you were storing
two records in an array, each with a "name" property, then it might
look like this:

oneDimenArray[1,"name"]
oneDimenArray[2,"name"]

With the introduction of multi-dimensional arrays you can think of an
array as a group. The nice thing about a group is that it can have its
own properties and a property can also be another group with its own
properties.

-- A "group" named "1"  that has a "name" property.
mdArray[1]["name"]

-- A "group" named "1" that has a  "name" property and another   
"children" group.

-- The children group has a group named "1" with a "name" property.
mdArray[1]["name"]
mdArray[1]["children"][1]["name"]

The benefit of the multi-dimensional array is that you can treat each
"group" as its own entity.

'put the keys of mdArray[1]' only returns the "properties" for that
"group". The output would be:

name
children

Since "children" is also a "group" I can ask for its properties as  
well:


'put the keys of mdArray[1]["children"]' would output:

1

So what is the benefit? For me it is the ability to target any of the
"groups" in the array like you would an object in Revolution. Do you
just need to delete the children "group"?

delete local mdArray[1]["children"]

Do you need to extract the children "group"?

put mdArray[1]["children"] into theOtherMDArray

For me the ability to target is what makes coding with arrays so much
simpler and efficient.

Hopefully this helps somewhat.

Regards,

--
Trevor DeVore





Trevor,

Thank you for this thoughtful (and thought provoking) response.

But you give me too much credit. I apparently haven't grasped even  
the fundaments. For example I do not understand what is expressed in:


"mdArray[1]["Children"][1]["Name"]

I have found this in the Docs:

"Array elements may contain nested or sub-elements, making them multi- 
dimensional.
This type of array is ideal for processing hierarchical data  
structures such as trees or
XML. To access a sub-element, simply declare it using an additional  
set of square

brackets.
put "ABC" into myVariable["myKeyName"][“aChildElement”] "

Which suggests a structure and notion which is quite different from  
the example you gave. Why not just mdArray["Children"]["Name"] .  
Where does the "1" do for you?


You must be sorry you started this. As you can see I am at a loss. I  
am stuck back in an era when arrays were just tensors.


And I feel it is not unfair to say that the documentation has not  
caught up with this new feature of Run Rev. But I understand. It is  
so much more fun to do stuff than explain it.


Jim Hurley




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


Well I never!

2009-03-26 Thread James Hurley
Watching the web demo today I witnessed a funny thing. It looked like  
this


twoDimenArray ["stuff"] ["moreStuff"]

I said to myself, So THIS must be the two dimensional arrays I've  
heard about.


Now silly me, I've been using

oneDimenArray[i,j]

Which I suppose now must be one dimensional arrays where the keys are  
lists of two parameters. (But it sure looks like the two dimensional  
arrays I held near and dear to my heart, low these many years.)


Little help  please:

What is the relative advantages of:

aArray ["a"] ["b"]

and

bArray ["a", "b"]

And  what are the keys of aArray?

I need to pay more  attention of what Run Rev is up to.

Jim Hurley



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


Re: ANN: Kaleidoscopes for all seasons

2009-03-16 Thread James Hurley
We (Bernd Niggermann principally) have added a few touches that  
should be passed along.


I have deleted the Paint portion since it really contributes nothing  
that cannot be done better in the Draw portion.


New features:

1) You can now pick up the mouse and (if you hold down the shift key)  
add additional figures in another areas--as often as you like. This  
allows for more interesting groupings.


2) If you child is into it, he or she can export their favorite  
artistic creations.


3) And you can animate the final product--this is a work in progress.

To see the Deluxe version run this in your message box:

go url "http://www.jamesphurley.com/KaleidoscopeDeluxe.rev";

Jim Hurley
WIth much help from Bernd Niggemann

P.S. It was built in 3.0 but most of it works in 2.9. Only the 3D  
elements will stop you.


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


  1   2   >