Ken Burns (was Re: Ripple)

2007-06-13 Thread Ben Rubinstein

Fractionally off-topic, but:

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

Your votes solicited!

- Ben

___
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: Asynchronous upload via post?

2007-06-13 Thread Dave Cragg


On 12 Jun 2007, at 17:11, David Bovill wrote:

You can load a url and you can do asynch ftp upload - but how about  
if you
want to send a large amount of data to a remote location without  
using ftp?
Can you do an "asynch post"? I guess you could do an asynch ftp  
upload and

then a quick sychronous post on completion - any thoughts?


If by "asynch" you mean keeping your application alive and running  
while the posts take place, it should be possible. The posts would  
occur sequentially, but your application should still be responsive  
during the transfers. Although "post" is described as "blocking" it  
only blocks the script it is called in. Other scripts can run at the  
same time.


The approach taken would depend on your circumstances, but the idea  
is to set up some "out of synch" psuedo thread to handle the posts.  
The simplest way to do this might be using a "send ... in time"  
message. You can use liburlSetStatusCallback to display progress if  
needed.


Rough idea (untested):

local postUrlQ
local asynchPostRunning = false

on someHandler
 ---code
 -- code
  asynchPost someUrl, someData
-- code
-- code
end someHandler

on asynchPost purl, pData
  put pUrl & return after postUrlQ
  if not asynchPostRunning then
send asynchPostHandler to me in 0 milliseconds
  end if
end asynchPost pUrl

on asynchPostHandler
  if not asynchPostRunning AND the number of lines of postUrlQ > 0 then
put line 1 of postUrlQ into tUrl
delete line 1 of tUrl
put true into asynchPostRunning
post pData to url pUrl
put it into tRetData
put the result into tRes
if tRes <> empty then
## error handling
## maybe send a callback message
else
   ## success routine, do something with tData
   ## maybe send callback
end if
put false into asynchPostRunning
if the number of lines of postUrlQ > 0 then
   send asynchPostHandler to me in 0 milliseconds
   end if
  end if
end asynchPostHandler


___
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


strange posting problems

2007-06-13 Thread d

hi all,
this is very strange; I can post a test message to the list but my  
actual question doesn't seem to get trough anymore.

they're all posted from the same account so that's not the problem.
but maybe this one doesn't get trough either

eddie d

___
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


AW: strange posting problems

2007-06-13 Thread Tiemo Hollmann TB
Do you use perhaps two different email accounts? You can post to this list
only with the registered email account.
Tiemo

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von d
Gesendet: Mittwoch, 13. Juni 2007 11:01
An: How to use Revolution
Betreff: strange posting problems

hi all,
this is very strange; I can post a test message to the list but my  
actual question doesn't seem to get trough anymore.
they're all posted from the same account so that's not the problem.
but maybe this one doesn't get trough either

eddie d

___
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: OT: The iMac is... dead.

2007-06-13 Thread Martin Baxter

Shao Sean wrote:
Actually I had the same problem with an original iMac as well.. There's 
a small button on the motherboard that you need to press to reset it and 
then it should be good to go. :-)


That's likely to be it. Derek's iMac is an original iMac, and this
procedure (reset cuda chip) is a likely fix (assuming the keyboard is 
OK). Later models are a bit different though, the battery is also involved.


Martin Baxter


___
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: AW: strange posting problems

2007-06-13 Thread d

hi tiemo,
no, same accounts but I do use 2 different computers (and mail apps).  
that doesn't seem to matter though because the first test-mail was  
from one and this mail is from the other and they obviously got through.


Do you use perhaps two different email accounts? You can post to  
this list

only with the registered email account.
Tiemo


hi all,
this is very strange; I can post a test message to the list but my
actual question doesn't seem to get trough anymore.
they're all posted from the same account so that's not the problem.
but maybe this one doesn't get trough either

eddie d



___
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: strange posting problems

2007-06-13 Thread Viktoras Didziulis
Hi Eddie, 
 
there is also size limit for posts (just can't remember the right number)
and it should be text-only (no html) message, no attachments. 
 
Viktoras 
___
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: Asynchronous upload via post?

2007-06-13 Thread Andre Garzia

Dave,

thanks for the tip! I use a similar approach for queueing downloads, it
didn´t occur to me that I could do the same thing with POST calls.

I noticed that the load command will queue connections to the same server
automatically, is this correct or am I dreaming?

Again, thanks for the hard work with LibURL! :-)

Cheers
andre


On 6/13/07, Dave Cragg <[EMAIL PROTECTED]> wrote:



On 12 Jun 2007, at 17:11, David Bovill wrote:

> You can load a url and you can do asynch ftp upload - but how about
> if you
> want to send a large amount of data to a remote location without
> using ftp?
> Can you do an "asynch post"? I guess you could do an asynch ftp
> upload and
> then a quick sychronous post on completion - any thoughts?

If by "asynch" you mean keeping your application alive and running
while the posts take place, it should be possible. The posts would
occur sequentially, but your application should still be responsive
during the transfers. Although "post" is described as "blocking" it
only blocks the script it is called in. Other scripts can run at the
same time.

The approach taken would depend on your circumstances, but the idea
is to set up some "out of synch" psuedo thread to handle the posts.
The simplest way to do this might be using a "send ... in time"
message. You can use liburlSetStatusCallback to display progress if
needed.

Rough idea (untested):

local postUrlQ
local asynchPostRunning = false

on someHandler
---code
-- code
  asynchPost someUrl, someData
-- code
-- code
end someHandler

on asynchPost purl, pData
  put pUrl & return after postUrlQ
  if not asynchPostRunning then
send asynchPostHandler to me in 0 milliseconds
  end if
end asynchPost pUrl

on asynchPostHandler
  if not asynchPostRunning AND the number of lines of postUrlQ > 0 then
put line 1 of postUrlQ into tUrl
delete line 1 of tUrl
put true into asynchPostRunning
post pData to url pUrl
put it into tRetData
put the result into tRes
if tRes <> empty then
## error handling
## maybe send a callback message
else
   ## success routine, do something with tData
   ## maybe send callback
end if
put false into asynchPostRunning
if the number of lines of postUrlQ > 0 then
   send asynchPostHandler to me in 0 milliseconds
   end if
  end if
end asynchPostHandler


___
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


using time of day (was newbie videoplayer questions)

2007-06-13 Thread d

ok, I'' try again, see if it gets to the list.
 time is running out for me since I have an exhibition on saturday  
where I wanted to use this.


I have been playing around with the time script I got from klaus and  
others

First I tried it with cards and one stack instead of several substacks
I put the time script on every card because it has to check what the  
time on opening each card.
and it works great until the time crosses the 12:00, 18:00, 00:00 line 
( the time of change-over to the morning, afternoon or evening  
part) ; then it starts to flip through all the cards and I can't stop  
it without quitting.
when using substacks it works because the stack closes before  
anything bad can happen but I do notice a quick flip-through-the  
cards at the same moments in time as with the cards version.

here's the script I am using. any ideas?

best regards
eddie d

  set the backgroundColor of this card to "black"
on opencard  --sthecorrectstackaccordingtothecurrentdaytime

   set the twelvehourtime to false
   put the time into tTime
set the itemdelimiter to ":"
put item 1 of tTime into tHour

if tHour >= 0 AND tHour < 12 then
 go card "morgen_1"
end if

if tHour >= 12 AND tHour < 18 then
go card "middag_2"
- end if

if tHour >= 18 AND tHour < 24 then
go card "avond_1"
end if
end opencard


on mouseUp
  start player "tardes"
end mouseUp

on playStopped
  go card "middag_2"
end playStopped


___
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: strange posting problems

2007-06-13 Thread d
I think that last part is the answer, I think eudora posted the  
script I pasted in the message as rtf and not plain text.



thanks
eddie


Hi Eddie,

there is also size limit for posts (just can't remember the right  
number)

and it should be text-only (no html) message, no attachments.

Viktoras
___



___
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: Ken Burns (was Re: Ripple)

2007-06-13 Thread David Bovill

Voted - for - when I eventually found that tiny little voting link.
___
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: Asynchronous upload via post?

2007-06-13 Thread David Bovill

Yes - thanks Dave!

NB - I'd still like to be able to manually add something to the url cache?
Scenario is that my app mainly used load after which things are go from the
cache, but sometimes for priority reasons I just fetch a url without load.
If afterwards I could set the cache to include this new data then I would
not have to do complex track keeping or reload the url?

Was thinking of looking at the code, and figuring where the cache stuff is -
pointers or sugestions?
___
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: Asynchronous upload via post?

2007-06-13 Thread Dave Cragg


On 13 Jun 2007, at 11:46, Andre Garzia wrote:

I noticed that the load command will queue connections to the same  
server

automatically, is this correct or am I dreaming?


Hi Andre. Yes, that's right. (You may be dreaming too, but about  
other things I hope.)


Strictly speaking, ftp load requests are queued separately for each  
account (username-server), but in most cases it amounts to the same  
thing.


Cheers
Dave


___
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: Asynchronous upload via post?

2007-06-13 Thread Dave Cragg


On 13 Jun 2007, at 13:06, David Bovill wrote:


Yes - thanks Dave!

NB - I'd still like to be able to manually add something to the url  
cache?
Scenario is that my app mainly used load after which things are go  
from the
cache, but sometimes for priority reasons I just fetch a url  
without load.
If afterwards I could set the cache to include this new data then I  
would

not have to do complex track keeping or reload the url?

Was thinking of looking at the code, and figuring where the cache  
stuff is -

pointers or sugestions?


My suggestion would be to set up your own cache system instead. It's  
not too difficult. Use a customPropertySet or script local array to  
store the data, and use the url as the key. Then you just need three  
handlers/functions:


getFromCache 
storeToCache 
deleteFromCache 

Then just use get/post URL, or if you use load, after putting the  
data in your own cache, unload the url.


But if you want to tamper with libUrl, and understand the danger that  
if you get too familiar you may be asked to take it over, and accept  
the usual "at your own risk" warning, and understand that your  
changes may not work in future updates and that you may turn into a  
frog...


... you could probably add a handler to liburl that would need to  
touch 2 script local variables. These are laLoadedUrls and  
laUrlLoadStatus. These are both arrays, and the keys are the relevant  
url itself. Put the data to be cached into laLoadedUrls[yourURL] and  
set laUrlLoadStatus[yourUrl] to "cached".


Kerro kerro
Dave





___
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


abort scripts

2007-06-13 Thread runrev260805
Hi,

i have some questions again.

How can i stop the execution of a script. e.g. I want to stop executing a 
script, which is already started by mouseup event.


Another thing is: I have a very large mouseup script, I want to destroy the 
stack, when a special condition takes place. But the script continues. I have 
set "the destroystack property to true".
Found out, that this behaviour is normal, because the "close" statement is in 
the same event handler. But how can i solve this. Do i have to send a message 
to another obejct, which contains the "close" statement?

I need to delete files in a folder. The names of the files vary. I thought i 
could use wildcards to delete, but that doesn´t work. Do i have to read the 
content of the folder, put this in a container/var and then delete within a 
repeat loop? Or how can i do this?


Regards,

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


Where's Bill?

2007-06-13 Thread Luis
I'm surprised he hasn't been around to interject during/after the  
recent 'Future of Rev'/OSS postings.


Cheers,

Luis.


___
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


OT: The iMac is... Not Dead!

2007-06-13 Thread Derek Bump
Pushing the CUDA reset button did the trick!

My thanks to Shao Sean for the solution, and to Martin Baxter, Rick
Harrison (I will replace the battery just to be safe), Devin Asay, and
Scott Rossi for all of your help and suggestions.


Derek Bump
Dreamscape Software


Compress photos easily with JPEGCompress
www.dreamscapesoftware.com




Shao Sean wrote:
> Actually I had the same problem with an original iMac as well.. There's
> a small button on the motherboard that you need to press to reset it and
> then it should be good to go. :-)
> ___
> 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: abort scripts

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 15:02:53 +, [EMAIL PROTECTED] wrote:

> Hi,
> 
> i have some questions again.
> 
> How can i stop the execution of a script. e.g. I want to stop 
> executing a script, which is already started by mouseup event.

Type Command-period (Mac) or Control-period (Windows). 

> Another thing is: I have a very large mouseup script, I want to 
> destroy the stack, when a special condition takes place. But the 
> script continues. I have set "the destroystack property to true".
> Found out, that this behaviour is normal, because the "close" 
> statement is in the same event handler. But how can i solve this. Do 
> i have to send a message to another obejct, which contains the 
> "close" statement?

If you're trying to close and remove the stack that's current running 
the mouseUP script, you *should* be able to just say "close this stack" 
in the script of your mouseUp handler and it should work. However if it 
doesn't, send a custom command to the same object ("me") in a short 
time (like 100 milliseconds), and then immediate do an "exit to top", 
which will get you out of the mouseUp handler you're in. Something like 
this:

on mouseUp
  -- do a bunch of stuff
  -- if the condition is met (I'm imagining the 'tCondition' variable 
starts off
  -- false and when the condition is met it gets set to true
  if tCondition is true then
send "closeMe" to me in 100 milliseconds
exit to top
  end if
  -- more stuff that could happen if the condition wasn't met
end mouseUp

on closeMe
  close this stack
end closeMe

> I need to delete files in a folder. The names of the files vary. I 
> thought i could use wildcards to delete, but that doesn´t work. Do i 
> have to read the content of the folder, put this in a container/var 
> and then delete within a repeat loop? Or how can i do this?

Yes, that's the best way (switch the defaultFolder to the folder you 
want to delete files from, put "the files" into a variable, switch your 
defaultFolder back to where it was, then loop through the list of files 
in the variable identifying the one(s) you want to delete, then delete 
them).


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: abort scripts

2007-06-13 Thread Jim Ault
On 6/13/07 8:02 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> i have some questions again.
> 
> How can i stop the execution of a script. e.g. I want to stop executing a
> script, which is already started by mouseup event.
how do you mean?  Manually, or programatically?

I  use (during debugging/design)
if the optionkey is down then breakpoint  --then click abort
or
if the optionkey is down then exit to top  --then click abort

in your case, one technique that could work is

send "closeme" to this stack in 1 second
exit to top  --ends all handlers

> 
> 
> Another thing is: I have a very large mouseup script, I want to destroy the
> stack, when a special condition takes place. But the script continues. I have
> set "the destroystack property to true".
> Found out, that this behaviour is normal, because the "close" statement is in
> the same event handler. But how can i solve this. Do i have to send a message
> to another obejct, which contains the "close" statement?
You need to tell us what you think 'destroystack' means to you.  It probably
means something different to Rev.  (be specific, if possible)
> 
> I need to delete files in a folder. The names of the files vary. I thought i
> could use wildcards to delete, but that doesn´t work. Do i have to read the
> content of the folder, put this in a container/var and then delete within a
> repeat loop? Or how can i do this?

set the defaultfolder to theFolderIwant
put the files into fileList
filter fileList with "*temp*.*"
repeat for each line LNN in fileList
   delete file LNN
end repeat
put the files into remainingList
answer remainingList

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


Where's Luis?

2007-06-13 Thread David Bovill

Hey Luis where abouts in real space would  anachreon be?

If its near London, it would be good to meet over Guinness in London.
Any other London based people out there?
___
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: Asynchronous upload via post?

2007-06-13 Thread J. Landman Gay

Dave Cragg wrote:


Although "post" is described as "blocking" it only blocks the 
script it is called in. Other scripts can run at the same time.


Is this true of "put url" also? I want everything to stop in my script 
until it's done.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Image Printer

2007-06-13 Thread Richmond Mathewson
Went a bit further (see new version of PICPRINT at
RevOnline):

1. imports the image of your choice and sends it to
the printer.

2. you don't see this.

3. Had a problem using fields to print iamges as flds
were cutting heads off: now fld is resized to cope
with this.

4. Messes around with alignment.

Love, Richmond



A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___ 
Inbox full of unwanted email? Get leading protection and 1GB storage with All 
New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
___
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: Where's Luis?

2007-06-13 Thread Luis

I'm in central London.
It'd be water for me...

Cheers,

Luis.


On 13 Jun 2007, at 16:18, David Bovill wrote:


Hey Luis where abouts in real space would  anachreon be?

If its near London, it would be good to meet over Guinness in London.
Any other London based people out there?
___
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


Object Library missing in 2.8.1

2007-06-13 Thread Ton Kuypers
I've seen this one coming by a few times, but I can't seem to find it  
anymore...


Where do I have to put the standard object library  
(revdefaultlibrary.rev) so it shows up in he object browser in the  
2.8.1 IDE?
It is now located in /Users/XXX/Documents/My Revolution Enterprise/ 
Object Libraries...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



___
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: Object Library missing in 2.8.1

2007-06-13 Thread Ton Kuypers

Never mind, found it...
The correct location is /Users/XXX/Documents/My Revolution Enterprise/ 
Resources/Object Libraries/...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 13-jun-07, at 18:10, Ton Kuypers wrote:

I've seen this one coming by a few times, but I can't seem to find  
it anymore...


Where do I have to put the standard object library  
(revdefaultlibrary.rev) so it shows up in he object browser in the  
2.8.1 IDE?
It is now located in /Users/XXX/Documents/My Revolution Enterprise/ 
Object Libraries...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



___
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: Delimiting thousandths..converting 12345678 to 12, 345, 678 for example

2007-06-13 Thread FlexibleLearning
 
 
I will add arbitrary and optional currency (£ $ YEN etc) and alternative  
decimal (some countries use "." for the thousands and "," for the decimal) with 
 
0.00 numberFormatting...


 

on mouseUp
put formatThousands(fld 1,"LAT",". ",",")
end mouseUp
 
function formatThousands pNum,pCurrency,pSeparator,pDecimal
--|  Syntax: formatThousands pNum[,pCurrency[,pSeparator[,pDecimal]]]
  if pNum is not a number then return "ERR: Not a number"
if char 1 of pNum = "-" then
put "-" into  prefix
put char 2 to -1 of pNum into pNum
end  if
if pSeparator="" then put "," into pSeparator
if  pDecimal="" then put "." into pDecimal
set the numberFormat to  "0.00"
add 0 to pNum
set the itemDel to "."
put  item 2 of pNum into holdDec
put item 1 of pNum into pNum
repeat with x = length(pNum)-3 to 3 step -3
put pSeparator  before char x+1 of pNum
end repeat
return (pCurrency  && prefix & pNum & pDecimal & holdDec)
end  formatThousands
 
/H
 



   
___
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


OT strange tech support calls

2007-06-13 Thread Shari
In a recent thread, I commented about the tech support issues that 
come up, where some users do not understand very basic concepts.  And 
how I wouldn't want to add to it by having to put out multiple 
versions for one platform.


Today's never-before-encountered tech support issue:

His platform:  Mac OSX 10.4.9

His problem:  He couldn't find a menu item in my software.  He 
claimed that the menu itself did not exist, that there was absolutely 
no menu of any kind, whatsoever.


After several go-rounds, I requested a screenshot of his full 
computer screen while running my software.  He sent a screenshot of 
the program's window only.  Of course on a Mac, this wouldn't show 
the menubar.  After requesting again a full screenshot, we found the 
problem.


The menu existed.  But he was expecting it to be in the window 
itself, rather than at the top of the computer screen.  Even though 
several of my emails to him told him to look at the top of his 
screen, he failed to understand until I asked for a screenshot.  Then 
he figured it out, and apologize profusely.


Am not sure if he is a Windoze to Mac switcher, or simply a computer newbie.

My users range from his level of expertise to highly technical folks. 
But I try to keep the software understandable for all levels of 
usability.


:-)
Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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


Making DLL for Revolution ...

2007-06-13 Thread Jean-Pierre

I have make a beautiful program ...
with externals functions in C++
it work fine ...

but some people don't have a Mac ...

Can anyone help me to translate external from Mac to PC ? (from  
bundle to DLL)


Where can I find first step to do it ?

I have an old PC with Window 98 SE and Dev-Cpp running on it to do  
this job ...


Thanks ...



___
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: OT strange tech support calls

2007-06-13 Thread Richard Gaskin

Shari wrote:
His problem:  He couldn't find a menu item in my software.  He 
claimed that the menu itself did not exist, that there was absolutely 
no menu of any kind, whatsoever.


After several go-rounds, I requested a screenshot of his full 
computer screen while running my software.  He sent a screenshot of 
the program's window only.  Of course on a Mac, this wouldn't show 
the menubar.  After requesting again a full screenshot, we found the 
problem.


The menu existed.  But he was expecting it to be in the window 
itself, rather than at the top of the computer screen.  Even though 
several of my emails to him told him to look at the top of his 
screen, he failed to understand until I asked for a screenshot.  Then 
he figured it out, and apologize profusely.


Am not sure if he is a Windoze to Mac switcher, or simply a computer newbie.


I'll go out on a limb just as I did several years ago when I suggested 
Apple would eventually adopt Intel processors and two-button mouse 
functionality:


Somewhere between OS XI and OS XII it seems likely Apple will move the 
menu bar to the tops of windows.


Sure, this seems heretical right now, but the usability studies showing 
the benefit of the current menu placement were done with the Mac display 
was 512x342, and Fitts' Law suggests that as displays get larger the 
benefit of the "backstop effect" of the monitor bounds diminishes with 
distance to the target.


If any of you have links to current usability research on menu bar 
placement I'd be very interested to read it.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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: OT strange tech support calls

2007-06-13 Thread Chipp Walters

On 6/13/07, Richard Gaskin <[EMAIL PROTECTED]> wrote:



I'll go out on a limb just as I did several years ago when I suggested
Apple would eventually adopt Intel processors and two-button mouse
functionality:

Somewhere between OS XI and OS XII it seems likely Apple will move the
menu bar to the tops of windows.



Yep, I agree. With those HUGE and MULTIPLE displays, it is actually more
difficult to mouse to the top of the main display. Perhaps we'll see more
ribbon-like menus for the Mac.
___
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: Asynchronous upload via post?

2007-06-13 Thread Dave Cragg


On 13 Jun 2007, at 16:31, J. Landman Gay wrote:


Dave Cragg wrote:
Although "post" is described as "blocking" it only blocks the  
script it is called in. Other scripts can run at the same time.


Is this true of "put url" also? I want everything to stop in my  
script until it's done.


It's the same for all "blocking" calls. It will stop the script it's  
called in. That's why I favor the term "script blocking". But while  
that script blocks, other scripts may run, for example, by a user  
clicking a button.


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


Image Tile Cutter

2007-06-13 Thread David Bovill

Has anyone made an image tile cutter - ie a program that chops a big
image into several regular tiles? If not how would you go about such a
thing - I guess it would be using the image data if you were to do it
properly?
___
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: Asynchronous upload via post?

2007-06-13 Thread Stephen Barncard
Dave, Jacque, please explain more... if one wants more 'threads' one 
needs separate scripts?


I kinda know this works but I need to define it...

so if one trys to do a blocking thing, say, in the bg script, then 
any handler in that script is halted?


but if one does a "send in x"  a command to an object, say button or 
field or whatever from the same bg script, the script in the btn 
executes and/or blocks while the bg script continues?


What would be the best repository for such "little" scripts? Hidden 
buttons? Backscripts?


is there a way to pull a script from a custom prop and 'do' it 
(within scriptlimits of course) in a runtime? I couldn't get this to 
work.






On 13 Jun 2007, at 16:31, J. Landman Gay wrote:


Dave Cragg wrote:
Although "post" is described as "blocking" it only blocks the 
script it is called in. Other scripts can run at the same time.


Is this true of "put url" also? I want everything to stop in my 
script until it's done.


It's the same for all "blocking" calls. It will stop the script it's 
called in. That's why I favor the term "script blocking". But while 
that script blocks, other scripts may run, for example, by a user 
clicking a button.


Dave


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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


revMessageBoxRedirect

2007-06-13 Thread David Bovill

This is a currently unsupported feature which looks quite useful:

the revMessageBoxRedirect

~

This global property allows you to configure what happens when the value
of the 'msg' pseudo-variable changes.

When set to empty, the old behaviour will be used.

When set to the long id of a field, the old behaviour is replicated but
instead of 'msg' being put into field 1 of card 1 of stack "Message Box", it
is put into the target field. (Note that this form will also cause the
field's stack to be modeless'ed and raised).

When set to the long id of a non-field object, the specified object will
receive a 'msgChanged' message meaning that you have complete control over
what to do with the updated value of 'msg'.

NB. This property is only available in the IDE engine.




However if I:

set the revMessageBoxRedirect to the long id of this stack


A "msgChanged" is sent to the stack but without any parameters so I don't
know what the message was? Any ideas?
___
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: Delimiting thousandths..converting 12345678 to 12, 345, 678 for example

2007-06-13 Thread Jim Ault
Hello, Hugh,

In my last script, I did accommodate the comma/period alternative by using
"itemDel" to form the result string, therefore the default itemDel for Rev
would be comma thus if pSeparator was "." just use the default of "," for
the decimal separator.

 if pSeparator is "," then set the itemDel to "."
 --  should be the only line required
--since, the itemDel is comma by default at the start of the function
-

As far as "0.00", the user may not want the decimals changed to that format.
We do statistics work, and often want only  0 or 1 decimal and no
reformatting of the decimals by a function.  If there is no decimal in pNum,
it returns no decimal.  This would be true of inventory reports, number of
skiers injured in the Alps each year, Rev programmers I have met in person,
the number of drivers that go fast on the autobahn.

...which means my prev function should have one line corrected:
if holdDec is not empty then put holdDec into item 2 of it
--if there is none, don't add the trailing decimal point.


If this is indeed a currency function, then I guess this is the spot where
you would have to define the function precisely, such as pNum must be a
number, instead of a number string to which we are adding commas.

(eg.  $3456.78  or -$3456.78  or $3456.78 - )

By capturing the leading and trailing characters verbatim, this should
accommodate 
--any currency symbol passed as part of the string pNum
--negative symbol format as trailing
--any number of chars after the decimal
but you are correct in that my version would not insert a currency symbol or
format "0.00"

Of course, this is why universal functions are difficult to write.  A tool
for many purposes may become less and less convenient.

Jim Ault
Las Vegas

On 6/13/07 9:59 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

>  
>  
> I will add arbitrary and optional currency (£ $ YEN etc) and alternative
> decimal (some countries use "." for the thousands and "," for the decimal)
> with  
> 0.00 numberFormatting...
> 
> 
>  
> 
> on mouseUp
> put formatThousands(fld 1,"LAT",". ",",")
> end mouseUp
>  
> function formatThousands pNum,pCurrency,pSeparator,pDecimal
> --|  Syntax: formatThousands pNum[,pCurrency[,pSeparator[,pDecimal]]]
>   if pNum is not a number then return "ERR: Not a number"
> if char 1 of pNum = "-" then
> put "-" into  prefix
> put char 2 to -1 of pNum into pNum
> end  if
> if pSeparator="" then put "," into pSeparator
> if  pDecimal="" then put "." into pDecimal
> set the numberFormat to  "0.00"
> add 0 to pNum
> set the itemDel to "."
> put  item 2 of pNum into holdDec
> put item 1 of pNum into pNum
> repeat with x = length(pNum)-3 to 3 step -3
> put pSeparator  before char x+1 of pNum
> end repeat
> return (pCurrency  && prefix & pNum & pDecimal & holdDec)
> end  formatThousands
>  
> /H
>  
> 
> 
> 
>
> ___
> 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-2: abort scripts

2007-06-13 Thread runrev260805
Thanks Jim,
thanks Kray,

that did it.

Let´s assume i have a stack with 4 buttons. 1 Button just quits the app. How 
could i close(destroy) the stack, if one handler of one of the 3 other buttons 
is active and i don´t know which button was pressed. 

Should i include something like "put the name of me into btnName" in the 
mouseup handler of this 3 buttons?  I could then check the global var btnName 
and i know which button was pressed. Or does Revolution has an internal 
function for that.

Matthias



___
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: Image Tile Cutter

2007-06-13 Thread Stephen Barncard
a simple way I would think would be to create an invisible or 
offscreen stack to the full size of the image (up to 4000x4000 I 
think), set the filename of the image to the big file, create a grid,


and use

export snapshot [from rect[angle] rectangle] [of object] to {file 
filePath |container} [as format] [with mask maskFile]


Examples:
export snapshot to file "Test.ppm"
export snapshot from rect "0,0,200,200" to file "Nav.jpg" as JPEG

export snapshot to pictVariable as GIF  (this could be saved as as 
custom property, or the picVariable could be an array, each square 
saved in an element which comprises the whole graphic. then could be 
saved as a custom property set, ready to go)


hmmm...

gotcha's? I don't know.. seems like it would work.

sqb



Has anyone made an image tile cutter - ie a program that chops a big
image into several regular tiles? If not how would you go about such a
thing - I guess it would be using the image data if you were to do it
properly?
___
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



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
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: revMessageBoxRedirect

2007-06-13 Thread Stephen Barncard

get the updated value of "msg" ?


"When set to the long id of a non-field object, the specified object will
receive a 'msgChanged' message meaning that you have complete control over
what to do with the updated value of 'msg'."





However if I:

set the revMessageBoxRedirect to the long id of this stack


A "msgChanged" is sent to the stack but without any parameters so I don't
know what the message was? Any ideas?


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
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


Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Gregory Lypny

Hello everyone,

I've noticed that non-list fields without scroll bars still scroll up  
and down when I move the scroll ball on my Mighty Mouse.  They even  
move a little when there is only one line of data in the field and  
only one line visible.


Is there any way to stop this?  A client can inadvertently move the  
contents of a field out of sight without knowing it, and not know how  
to get it back.


Regards,

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


min() function anomalies

2007-06-13 Thread Shari
This may not affect any of you, but I discovered a change that has 
sent me scurrying thru a lot of hoops wondering why my code was 
broken.


The original Metacard handled the min() function as Hypercard once 
did.  But later versions handle it differently.  If your program was 
originally written in Hypercard or Metacard and ported to Revolution, 
you might be affected by this.


The min() function returns different results depending on the engine version:

min(1,2,3,4,)   # note the extra comma

Hypercard 2.4.1 = 1
Metacard 2.4.3 = 1
MC/Rev 2.7.4 = 0
MC/Rev 2.8.1 = 0

I do not know if Rev would consider this a bug, or a "feature".  Does 
anybody know?


max(1,2,3,4,) produces 4, as one would expect.

Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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


Export Snapshot (was Re: Image Tile Cutter)

2007-06-13 Thread David Bovill

My experience of export snapshot is that the results are a little dependent
on something to do with the users machine - I am not sure if I am just
thinking here - but the tests I did seemed to indicate that there were
subtle changes in colour or rather the contrast of the image - can anyone
elaborate?

On 13/06/07, Stephen Barncard <[EMAIL PROTECTED]> wrote:


a simple way I would think would be to create an invisible or
offscreen stack to the full size of the image (up to 4000x4000 I
think), set the filename of the image to the big file, create a grid,

and use

export snapshot [from rect[angle] rectangle] [of object] to {file
filePath |container} [as format] [with mask maskFile]

Examples:
export snapshot to file "Test.ppm"
export snapshot from rect "0,0,200,200" to file "Nav.jpg" as JPEG

export snapshot to pictVariable as GIF  (this could be saved as as
custom property, or the picVariable could be an array, each square
saved in an element which comprises the whole graphic. then could be
saved as a custom property set, ready to go)

hmmm...

gotcha's? I don't know.. seems like it would work.

sqb


>Has anyone made an image tile cutter - ie a program that chops a big
>image into several regular tiles? If not how would you go about such a
>thing - I guess it would be using the image data if you were to do it
>properly?
>___
>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


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
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: min() function anomalies

2007-06-13 Thread Joe Lewis Wilkins
But Shari, the last comma provides zero as the last item. Not very  
useful and potentially hazardous, I agree.


Joe  Wilkins

On Jun 13, 2007, at 12:46 PM, Shari wrote:

This may not affect any of you, but I discovered a change that has  
sent me scurrying thru a lot of hoops wondering why my code was  
broken.


The original Metacard handled the min() function as Hypercard once  
did.  But later versions handle it differently.  If your program  
was originally written in Hypercard or Metacard and ported to  
Revolution, you might be affected by this.


The min() function returns different results depending on the  
engine version:


min(1,2,3,4,)   # note the extra comma

Hypercard 2.4.1 = 1
Metacard 2.4.3 = 1
MC/Rev 2.7.4 = 0
MC/Rev 2.8.1 = 0

I do not know if Rev would consider this a bug, or a "feature".   
Does anybody know?


max(1,2,3,4,) produces 4, as one would expect.

Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com

___
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: Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Scott Rossi
Recently, Gregory Lypny wrote:

> I've noticed that non-list fields without scroll bars still scroll up
> and down when I move the scroll ball on my Mighty Mouse.  They even
> move a little when there is only one line of data in the field and
> only one line visible.
> 
> Is there any way to stop this?  A client can inadvertently move the
> contents of a field out of sight without knowing it, and not know how
> to get it back.

If the field is editable at all times, then I don't believe there is any to
prevent scrolling.

If you can employ a "locked state" to the field, one way would be to overlay
a graphic with a noop ink applied to it above the field so that no mouse
events reach the field.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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: min() function anomalies

2007-06-13 Thread Jim Ault
You always have to be wary of trailing delimiters.

the number of lines, items
min(), max(), sum()

Look for the empty "last" item/line you want to keep, if needed.
put item 1 to -1 of dataList into dataList  --drops the last delim

Not sure if it is a bug or feature, but is an issue in some cases.

Jim Ault
Las Vegas


On 6/13/07 12:46 PM, "Shari" <[EMAIL PROTECTED]> wrote:

> This may not affect any of you, but I discovered a change that has
> sent me scurrying thru a lot of hoops wondering why my code was
> broken.
> 
> The original Metacard handled the min() function as Hypercard once
> did.  But later versions handle it differently.  If your program was
> originally written in Hypercard or Metacard and ported to Revolution,
> you might be affected by this.
> 
> The min() function returns different results depending on the engine version:
> 
> min(1,2,3,4,)   # note the extra comma
> 
> Hypercard 2.4.1 = 1
> Metacard 2.4.3 = 1
> MC/Rev 2.7.4 = 0
> MC/Rev 2.8.1 = 0
> 
> I do not know if Rev would consider this a bug, or a "feature".  Does
> anybody know?
> 
> max(1,2,3,4,) produces 4, as one would expect.
> 
> Shari


___
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


Where do I put my universal Externals and Plugins?

2007-06-13 Thread Derek Bump
On Windows, the "My Revolution Studio" folder is located in the My
Documents folder.  Where is this folder on Mac OS X?


Derek Bump
Dreamscape Software


Compress photos easily with JPEGCompress
www.dreamscapesoftware.com


___
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: min() function anomalies

2007-06-13 Thread Shari
But Shari, the last comma provides zero as the last item. Not very 
useful and potentially hazardous, I agree.


Joe  Wilkins


What bothers me is that almost any repeat loop that builds a variable 
will have a trailing comma, so I would expect the engine to ignore 
it, as was done in the past.  (Key point - that in the past this was 
handled differently.)


global myVariable
repeat x
  put someNumber or someOtherThing & comma after myVariable
end repeat

I use this type of handler frequently.  Whether it be numbers or 
words doesn't matter.  Yes, it can be worked around, by deleting the 
trailing comma at some point.


If you have a number of handlers that add to the variable at 
different times, this gets more ticky.


What bothers me more is that somewhere along the way, it was * 
changed *.  This is a very fundamental change.  I do not know if the 
change occurred before the MC/Rev merger or after.  But either way, I 
wouldn't have expected it.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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


Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Michael Binder

Gregory Lypny wrote:

Is there any way to stop this?  A client can inadvertently move the
contents of a field out of sight without knowing it, and not know how
to get it back.


Scott Rossi wrote:

If the field is editable at all times, then I don't believe
there is any to prevent scrolling.


Hi Gregory,
As far as I know, Scott is correct.  The next best thing is to
put a mouseup and a mouseleave handler in the field and put
'set the vscroll of me to 0' in each of those handlers.  Your
clients will still be able to scroll the field, but they will
not be able to leave it in a state of scroll.

--Michael Binder

___
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: OT: The iMac is... Not Dead!

2007-06-13 Thread Mark Talluto


On Jun 13, 2007, at 8:12 AM, Derek Bump wrote:


Pushing the CUDA reset button did the trick!


Glad this worked out for you.  It is worth noting that pressing the  
CUDA switch causes a big drain on the battery.  I think you can only  
press it a few times before necessitating replacement of the battery.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

___
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


Image Tile Cutter

2007-06-13 Thread Richmond Mathewson
Got stuck with this:

export snapshot from rect "0,0,WIDD5,HITE5" of img "Z"
to  file "1.jpg" as JPEG

wonder why?

sincerely, Richmond



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
___
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: min() function anomalies

2007-06-13 Thread Joe Lewis Wilkins
I am inclined to think it was an accidental change; hence a bug,  
since whenever I've written anything that had the potential of  
generating a trailing delimiter, I checked for it, and deleted it  
before proceeding. With Rev, this was just overlooked; something  
fairly easy to do - IMHO.


Joe Wilkins

On Jun 13, 2007, at 1:23 PM, Shari wrote:


< snip >
What bothers me more is that somewhere along the way, it was *  
changed *.  This is a very fundamental change.  I do not know if  
the change occurred before the MC/Rev merger or after.  But either  
way, I wouldn't have expected it.


Shari

___
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: Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Richard Gaskin

Gregory Lypny wrote:
I've noticed that non-list fields without scroll bars still scroll up  
and down when I move the scroll ball on my Mighty Mouse.  They even  
move a little when there is only one line of data in the field and  
only one line visible.


Is there any way to stop this?  A client can inadvertently move the  
contents of a field out of sight without knowing it, and not know how  
to get it back.


Normally any field whose contents extend beyond the visible bounds of 
the object will be scrolled in response to a mouse scroll wheel.


The rawKeyDown message is sent when the scroll wheel is used, so you can 
trap the appropriate values (65308 is "scroll down" and 65309 is "scroll 
up") to prevent scrolling:


on rawKeyDown k
  if k is not in "65308,65309" then pass rawKeyDown
end rawKeyDown

But maybe even simpler would be to remove the empty lines from the 
bottom of the field text.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
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: min() function anomalies

2007-06-13 Thread Richard Gaskin

Shari wrote:
What bothers me more is that somewhere along the way, it was * 
changed *.  This is a very fundamental change.  I do not know if the 
change occurred before the MC/Rev merger or after.  But either way, I 
wouldn't have expected it.


I agree that any change to a token's behavior should be documented.  If 
it changed during RunRev's tenure, it should be noted in their 
Dictionary entry for the min token.


I do see one change there noted as introduced in v1.1, but that's for 
something else.  I don't see any mention of this change in their docs.


Shari, I'd suggest submitting this as a documentation request to BZ.  It 
may be minor, but it's still worth addressing to keep people well 
informed, esp. those who've used earlier versions or are have HyperCard 
experience.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
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: Image Tile Cutter

2007-06-13 Thread Wilhelm Sanke


On Wed Jun 13, 2007, David Bovill david at openpartnership.net wrote:


Has anyone made an image tile cutter - ie a program that chops a big
image into several regular tiles? If not how would you go about such a
thing - I guess it would be using the image data if you were to do it
properly?




Check out my old stack "Picturepuzzle", where among the scripts you find 
one of many possible ways to cut a picture into tiles. Stack is from 
2003 and produced with Metacard 2.5, but should possibly run with newer 
versions (did not test that), but in any case you can read the scripts.




Regards,

Wilhelm Sanke


___
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: Image Tile Cutter

2007-06-13 Thread Scott Rossi
Recently, David Bovill wrote:

> Has anyone made an image tile cutter - ie a program that chops a big
> image into several regular tiles? If not how would you go about such a
> thing - I guess it would be using the image data if you were to do it
> properly?

I just remembered an old stack I did a while ago that takes an image and
creates tiles out of it using a cropping method, as opposed to a
screencapture or imageData method.  It was intended to test out an idea for
a transition effect of displaying an image made up out of tiles, but perhaps
it's one way to get you started.

In your message box:

  go url "http://www.tactilemedia.com/download/tilizer.rev";

Click the big button at the top; the other two are for the effect.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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: Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Stephen Barncard
also the Mighty mouse scroll wheel only affects vertical scrollbars. 
Horizontal do not work as they do in other apps.






Hello everyone,

I've noticed that non-list fields without scroll bars still scroll 
up and down when I move the scroll ball on my Mighty Mouse.  They 
even move a little when there is only one line of data in the field 
and only one line visible.


Is there any way to stop this?  A client can inadvertently move the 
contents of a field out of sight without knowing it, and not know 
how to get it back.


Regards,

Gregory


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: Re-2: abort scripts

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 19:01:37 +, [EMAIL PROTECTED] wrote:

> Thanks Jim,
> thanks Kray,
> 
> that did it.
> 
> Let´s assume i have a stack with 4 buttons. 1 Button just quits the 
> app. How could i close(destroy) the stack, if one handler of one of 
> the 3 other buttons is active and i don´t know which button was 
> pressed. 
> 
> Should i include something like "put the name of me into btnName" in 
> the mouseup handler of this 3 buttons?  I could then check the global 
> var btnName and i know which button was pressed. Or does Revolution 
> has an internal function for that.

No, you're right on how to handle that. Normally "the target" would 
tell you the last button pressed, but as soon as you click the button 
that closes the app, the target changes to that button instead.

I'm assuming that the code in the other three buttons are asynchronous 
in some way so that you actually *can* click the fourth button while 
another button's script is running?

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 15:23:40 -0500, Derek Bump wrote:

> On Windows, the "My Revolution Studio" folder is located in the My
> Documents folder.  Where is this folder on Mac OS X?

  ~/Documents

or 

  /Users//Documents

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: Image Tile Cutter

2007-06-13 Thread David Bovill

Thanks Wilhelm always a pleasure to read your German scripts :) Its a great
puzzle but I don't think there are scripts to create tiles from an image - I
guess you made them by hand?
___
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: min() function anomalies

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 16:23:24 -0400, Shari wrote:

>> But Shari, the last comma provides zero as the last item. Not very 
>> useful and potentially hazardous, I agree.
>> 
>> Joe  Wilkins
> 
> What bothers me is that almost any repeat loop that builds a variable 
> will have a trailing comma, so I would expect the engine to ignore 
> it, as was done in the past.  (Key point - that in the past this was 
> handled differently.)
> 
> global myVariable
> repeat x
>   put someNumber or someOtherThing & comma after myVariable
> end repeat
> 
> I use this type of handler frequently.  Whether it be numbers or 
> words doesn't matter.  Yes, it can be worked around, by deleting the 
> trailing comma at some point.

Yes, I've gotten in the habit of deleting it immediately:

   global myVariable
   repeat x
 put someNumber or someOtherThing & comma after myVariable
   end repeat
   delete char -1 of myVariable

In fact, I even have a separate handler to save me from having to type 
"delete char -1 of " all the time; it's called KLC (kill last 
character):

on KLC @pWhat
  delete char -1 of pWhat
end KLC

That way, I can do:

  KLC myVariable

 and immediately following this command, myVariable has been trimmed 
appropriately.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: Image Tile Cutter

2007-06-13 Thread David Bovill

Great Scotts! You've done it again :)
___
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-3: abort scripts

2007-06-13 Thread runrev260805
Hi,

Maybe someone knows.

I have a stack with one card. The card contains 4 Buttons. 3 Buttons start 
routines, which take about 5 minutes each to finish. Clicking on the fourth 
button shall abort the running sript of the button, which was pressed.

Thought, i could solve this with 'send "exit to top" to button btnToStop', 
where btnToStop contains the button name. But this does not work.

How can i achieve this?

Regards,

Matthias


___
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: min() function anomalies

2007-06-13 Thread Shari
Shari, I'd suggest submitting this as a documentation request to BZ. 
It may be minor, but it's still worth addressing to keep people well 
informed, esp. those who've used earlier versions or are have 
HyperCard experience.


I will report it.

I wouldn't call it minor however, as anyone who is porting an 
existing project from either Hypercard or the original Metacard 
wouldn't expect such a change, nor would they be likely to look up 
this function in the docs.


When my code broke, even when I narrowed it down to the one line that 
included min(), I did not assume the min() function was the culprit. 
I assumed that something else in that line of code was in error, 
perhaps a misplaced "(" or some other variable with a wrong value. 
It was a bugger to track down.


As I often see folks coming onto the list asking about porting stacks 
from HC or MC into Rev, this could affect all such folks, and 
wherever the documentation or tutorials exist that walk folks thru 
the change, this notation should exist.


For original Metacard pre-merger stacks, those folks probably 
wouldn't even read a tutorial.  They would expect it to just "work" 
as I did.


Off to BZ.

Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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-4: abort scripts

2007-06-13 Thread runrev260805
Hi,

> I'm assuming that the code in the other three buttons are asynchronous 
> in some way so that you actually *can* click the fourth button while 
> another button's script is running?

Yes, clicking the fourth button works.

Regards,

Matthias


___
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: min() function anomalies

2007-06-13 Thread Brian Yennie
Just for fun, an alternate method which never leaves trailing commas  
and respects the itemDelimiter:


on AddItem @pVar, pItem
if (pVar is not empty) then put the itemDelimiter after pVar
put pItem after pVar
end AddItem


On Wed, 13 Jun 2007 16:23:24 -0400, Shari wrote:


But Shari, the last comma provides zero as the last item. Not very
useful and potentially hazardous, I agree.

Joe  Wilkins


What bothers me is that almost any repeat loop that builds a variable
will have a trailing comma, so I would expect the engine to ignore
it, as was done in the past.  (Key point - that in the past this was
handled differently.)

global myVariable
repeat x
  put someNumber or someOtherThing & comma after myVariable
end repeat

I use this type of handler frequently.  Whether it be numbers or
words doesn't matter.  Yes, it can be worked around, by deleting the
trailing comma at some point.


Yes, I've gotten in the habit of deleting it immediately:

   global myVariable
   repeat x
 put someNumber or someOtherThing & comma after myVariable
   end repeat
   delete char -1 of myVariable

In fact, I even have a separate handler to save me from having to type
"delete char -1 of " all the time; it's called KLC (kill last
character):

on KLC @pWhat
  delete char -1 of pWhat
end KLC

That way, I can do:

  KLC myVariable

 and immediately following this command, myVariable has been trimmed
appropriately.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: Re-3: abort scripts

2007-06-13 Thread Scott Rossi
Recently, [EMAIL PROTECTED] wrote:

> I have a stack with one card. The card contains 4 Buttons. 3 Buttons start
> routines, which take about 5 minutes each to finish. Clicking on the fourth
> button shall abort the running sript of the button, which was pressed.
> 
> Thought, i could solve this with 'send "exit to top" to button btnToStop',
> where btnToStop contains the button name. But this does not work.
> 
> How can i achieve this?

Assuming your routine is a loop of some kind, you could do it by setting a
custom property of the card, similar to this:

[routine button scripts]
 on mouseUp
   set the allowProcessing of this cd to true
  doMyRoutine
 end mouseUp

 on doMyRoutine
if not the allowProcessing of this cd then exit to top
-- do myStuff
send "doMyRoutine" to me in 5 millisecs
 end doMyRoutine



[cancel button script]
 on mouseUp
   set the allowProcessing of this cd to false
 end mouseUp



Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread william humphrey

Why is there an extra copy of the plugins folder in the Revolution
application folder? It is so much better to have everything in the new
"My Revolution Studio" folder as that way when you upgrade it is all
still there.

On 6/13/07, Ken Ray <[EMAIL PROTECTED]> wrote:

On Wed, 13 Jun 2007 15:23:40 -0500, Derek Bump wrote:

> On Windows, the "My Revolution Studio" folder is located in the My
> Documents folder.  Where is this folder on Mac OS X?

  ~/Documents

or

  /Users//Documents

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: min() function anomalies

2007-06-13 Thread J. Landman Gay

Shari wrote:

When my code broke, even when I narrowed it down to the one line that 
included min(), I did not assume the min() function was the culprit. I 
assumed that something else in that line of code was in error, perhaps a 
misplaced "(" or some other variable with a wrong value. It was a bugger 
to track down.


Just for the record, the "number of" function works properly as it did 
in HC and MC: the number of items in "1,2,3,4," is 4. So it looks like 
the problem is only in the math functions.


However, look at this:

  put min(1,2,3,4,) --> 0
  put min("1,2,3,4,") --> 1

Maybe all you have to do is add quotation marks.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Asynchronous upload via post?

2007-06-13 Thread Dave Cragg


On 13 Jun 2007, at 19:52, Stephen Barncard wrote:
so if one trys to do a blocking thing, say, in the bg script, then  
any handler in that script is halted?


Sorry. I was unclear. Only the *handler* the blocking call was made  
in blocks.


The following may illustrate how blocking calls in libUrl work (needs  
button and field). Normally "send .. in 0 milliseconds" will only  
invoke the called handler after the currently running handler has  
completed. But it will get invoked earlier if there is a "wait ...  
with messages" or equivalent somewhere in the running handler.


local sHold

on mouseUp
  put false into sHold
  put empty into field 1
   handlerA
end mouseUp

on handlerA
  send handlerB to me in 0 milliseconds
   put "A1" & return after field 1
   ### next line is equivalent to a libUrl blocking call
  handlerC
  ## this handler blocks here
  ## but handlerB will run
  put "A2" & return after field 1
end handlerA

on handlerB
  put "B" & return after field 1
  put true into sHold
end handlerB

on handlerC
  wait while sHold is false with messages
end handlerC



Cheers
Dave
___
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: min() function anomalies

2007-06-13 Thread Shari

Just for fun, an alternate method which never leaves trailing commas


I must be weird in my coding or something :-)

In another project, I have a variable that is constantly changing.

I chose to add to the variable with "put something & comma after 
myVariable" rather than putting the comma first, as putting the comma 
first creates the empty place at the beginning.


Either way, the comma becomes an issue.

If I add to the variable and immediately delete the trailing comma, 
the very next handler that runs will have to check for the comma 
anyway, and add it back in when it adds to the end of the variable. 
The variable is constantly being updated, both added to and deleted 
from.


Am I the only one who has variables with commas that constantly change?

The issue also exists with trailing returns... "put something & 
return after myVariable".  But if the variable is in constant flux, 
with things being added to or deleted from, then checking for the 
comma or return becomes an issue.


Case in point, Blackjack Gold keeping track of the chips.  Chips are 
coming and going literally with every single handler.  And one 
variable keeps track of all available chips (chip objects that are 
available for use, that aren't being used in the player's chip stacks 
or bet stacks).  This variable is updated constantly, every time a 
player loses a bet, colors up or down, or every time the dealer needs 
to pay out the winners.  It always uses the first chip, deletes it, 
and adds chips to the end of the variable.  Sometimes it needs to get 
more chips if it runs out of objects, creating new chip objects and 
adding them to the end of the variable.  So it constantly creates the 
trailing comma.  But if I delete it, it must constantly check to put 
it back in if it adds chips to the end of the variable, which is 
every time the dealer wins, which of course happens a lot :-)


This doesn't have anything specifically to do with the min() 
function, but the whole issue of trailing commas wreaking havoc.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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: min() function anomalies

2007-06-13 Thread Scott Rossi
Recently, Shari wrote:

> Am I the only one who has variables with commas that constantly change?

Speaking for myself, I think it's a better coding practice to avoid trailing
anything in a variable, because I wouldn't know whether the empty last item
was intentional or not.  To take your script for an example, I simply add a
line after the repeat whenever I build a list:

 repeat x
   put someNumber or someOtherThing & comma after myVariable
 end repeat
 delete last char of myVariable

I do this for any list: words, lines, etc. For me, having a delimiter at the
end of a list would be problematic.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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


A computer Languages History

2007-06-13 Thread Alejandro Tejada
Hi all,

Browsing the internet, i found
this webpage:
http://www.levenez.com/lang/history.html

A computer Languages History (Preview)

I noticed that SmallTalk it`s included
in this graph, so where would Hypertalk,
SuperTalk,MetaTalk and Revolution could
be included?

Thanks in advance.

alejandro

Visit my site:
http://www.geocities.com/capellan2000/


  
___
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
___
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: min() function anomalies

2007-06-13 Thread Jim Ault
On 6/13/07 4:07 PM, "Scott Rossi" <[EMAIL PROTECTED]> wrote:

> Recently, Shari wrote:
> 
>> Am I the only one who has variables with commas that constantly change?
> 
> Speaking for myself, I think it's a better coding practice to avoid trailing
> anything in a variable, because I wouldn't know whether the empty last item
> was intentional or not.  To take your script for an example, I simply add a
> line after the repeat whenever I build a list:
> 
>  repeat x
>put someNumber or someOtherThing & comma after myVariable
>  end repeat
>  delete last char of myVariable
> 
> I do this for any list: words, lines, etc. For me, having a delimiter at the
> end of a list would be problematic.

I agree, Scott.
The only exceptions I found so far are tables and data lists that I gather
from web pages.  I need to keep a place holder so that sorting and counting
are always uniform, even if the web author decides that empty is good
enough.

This boils down to discipline and proper coding for the situation.  That
said, having code that works, then later versions of Rev spoil this in ways
you cannot predict or test, is very disconcerting.

Wasn't there something about 'cancel' and 'empty' after certain dialogs that
changed awhile back?

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


Re: min() function anomalies

2007-06-13 Thread Brian Yennie
Not weird at all - I think 90% of the people here (myself included)  
have usually just solved the problem by deleting the trailing comma.  
However, I can see how having multiple handlers which append data  
could confuse the issue - since non-empty lists will need the comma  
put back on before proceeding.


Although I don't exactly remember why, some odd circumstance led me  
to the habit of actually adding commas *before* items, but only if  
the content is not empty (thus my last post).


It's actually amazing how things that seem so straightforward can be  
stressed under the right circumstance.


In case it feels more logical, I suppose it could also be written:

put comma&tItem after tList
if (char 1 of tList is comma) then delete char 1 of tList

Deleting "leading" commas seems to leave your data more portable and  
predictable, however you implement it...



Just for fun, an alternate method which never leaves trailing commas


I must be weird in my coding or something :-)

In another project, I have a variable that is constantly changing.

I chose to add to the variable with "put something & comma after  
myVariable" rather than putting the comma first, as putting the  
comma first creates the empty place at the beginning.


Either way, the comma becomes an issue.

If I add to the variable and immediately delete the trailing comma,  
the very next handler that runs will have to check for the comma  
anyway, and add it back in when it adds to the end of the variable.  
The variable is constantly being updated, both added to and deleted  
from.


Am I the only one who has variables with commas that constantly  
change?

___
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: min() function anomalies

2007-06-13 Thread J. Landman Gay

Brian Yennie wrote:
Just for fun, an alternate method which never leaves trailing commas and 
respects the itemDelimiter:


on AddItem @pVar, pItem
if (pVar is not empty) then put the itemDelimiter after pVar
put pItem after pVar
end AddItem


And then there's the ever so easy to use:

 put pItem into item (the number of items in pVar) + 1 of pVar

which hardly anyone uses because it's such a pain to type. But I've 
started using it again lately because if you do it that way, you don't 
have to worry about leading, trailing, or any other kinds of delimiters. 
The engine handles it all and it just works.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Can I Stop Non-List Fields From Scrolling?

2007-06-13 Thread Gregory Lypny
Thank you, everyone who responded, for your advice.  It's all good  
stuff, and I'll have to start compiling a Tips file for all your  
insights.


I stumbled upon a fix, and that is to fix the line height to be  
fairly snug around the text.  For my particular fields, a 16-point  
line height for Lucida Grande 12-point works.  No more scrolling.   
(Incidentally, the default line height for a brand new text field in  
Lucida Grande 12-point is 16 points.)  Mine are all one-line, non- 
editable label fields with no space padding before or after the text,  
but they were created by duplicating other text fields that have 18- 
point line heights, and I think that extra height was the problem.


Thanks once again,

Regards,

Gregory

___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 18:03:02 -0400, william humphrey wrote:

> Why is there an extra copy of the plugins folder in the Revolution
> application folder? It is so much better to have everything in the new
> "My Revolution Studio" folder as that way when you upgrade it is all
> still there.

Don't know - maybe it's for the IDE?


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Björnke von Gierke
You can pry the documents folder from my cold dead hands! If rev 
installs any folder there i might need to look for another RAD tool, 
seriously.


On 14 Jun 2007, at 00:03, william humphrey wrote:


Why is there an extra copy of the plugins folder in the Revolution
application folder? It is so much better to have everything in the new
"My Revolution Studio" folder as that way when you upgrade it is all
still there.

On 6/13/07, Ken Ray <[EMAIL PROTECTED]> wrote:

On Wed, 13 Jun 2007 15:23:40 -0500, Derek Bump wrote:

> On Windows, the "My Revolution Studio" folder is located in the My
> Documents folder.  Where is this folder on Mac OS X?

  ~/Documents

or

  /Users//Documents

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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



___
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: min() function anomalies

2007-06-13 Thread Shari

The engine handles it all and it just works.



Precisely my point.  You mean it works today...

Mine worked yesterday, but today it broke :-)

What if the number of items of "1,2,3,4," unexpectedly changed from 4 
to 5.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Derek Bump
Ken Ray wrote:
> On Wed, 13 Jun 2007 18:03:02 -0400, william humphrey wrote:
> 
>> Why is there an extra copy of the plugins folder in the Revolution
>> application folder? It is so much better to have everything in the new
>> "My Revolution Studio" folder as that way when you upgrade it is all
>> still there.
> 
> Don't know - maybe it's for the IDE?


I'm a little confused here.  Is the "My Revolution Studio" folder
something that only exists for the Windows version of Revolution?

I did create the folder in my documents folder, which I still feel
should at least be an option in the installer (since it doesn't
automatically create the folder anyways).  And it does work, at least I
think it does... I'll see in the morning.


The concept itself is very good, but still needs a little fine tuning.
The better way to go would be to have a "My Revolution" folder, just in
case the developer has Studio and a beta installed, or in case they
upgrade to Enterprise and all of a suddon nothing works (which is always
a bad idea no matter how simple the fix).


Derek Bump
Dreamscape Software


Compress photos easily with JPEGCompress
www.dreamscapesoftware.com



___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Sarah Reichelt

On 6/14/07, Björnke von Gierke <[EMAIL PROTECTED]> wrote:

You can pry the documents folder from my cold dead hands! If rev
installs any folder there i might need to look for another RAD tool,
seriously.


It doesn't install one, but in my opinion it should. Any third-party
plugins, libraries etc should go in the "My Revolution ." folder
in your Documents folder so they are accessible when you upgrade.
Don't you remember the constant annoyance of having to manually copy
all your plugins to a new folder whenever Rev was updated? It drove me
crazy, so I am delighted with this feature, although I wish they
hadn't used the "My" :-)

I suppose they could have used the Application Support folder, but in
this case, Documents seems a better fit to me, since it is to contain
files that we have added manually, not any files that Rev puts there
automatically. Rev does not require any of these files and does not
insist that the folder be created, so if you don't like this method,
there is nothing making you use it :-)

The plugins supplied by RunRev (& presumably supported by them) are
stored in the Plugins folder in the actual Rev application folder e.g.
2.8.1-gm-1. These are always supplied with a new install, so there is
no problem about keeping them in place or up-to-date. Your own plugins
are different and so are stored differently.

And Björnke: "Please don't go - the drones need you..." - a Toy Story
quote frequently used by my children...

Cheers,
Sarah
___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Ken Ray
On Wed, 13 Jun 2007 21:32:26 -0500, Derek Bump wrote:

> Ken Ray wrote:
>> On Wed, 13 Jun 2007 18:03:02 -0400, william humphrey wrote:
>> 
>>> Why is there an extra copy of the plugins folder in the Revolution
>>> application folder? It is so much better to have everything in the new
>>> "My Revolution Studio" folder as that way when you upgrade it is all
>>> still there.
>> 
>> Don't know - maybe it's for the IDE?
> 
> 
> I'm a little confused here.  Is the "My Revolution Studio" folder
> something that only exists for the Windows version of Revolution?

No, it is for all versions of Rev, and is intended as a place to put 
third party plugins so they will appear in the Rev IDE. The reason for 
this is that if you actually put the third party plugins into the 
plugins folder next to the Rev app, when they send out an upgrade, 
you'd have to move them from the "old" Rev to the new one. Having a 
folder outside of the Rev app area allows you to not have to go through 
this rigamarole, but Rev doesn't create this folder for you - you have 
to do it yourself based on the version of Rev you own; in your case 
it's "My Revolution Studio"; in my case it's "My Revolution Enterprise".


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
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: min() function anomalies

2007-06-13 Thread Jim Ault
I use the following if the trailing delimiter is significant:

 put pItem into item (the number of items in (pVar & null)) of pVar

... of course, you could use any non-delimiter char to do this since all you
want is to make Rev think there is a char in the last "item"

Jim Ault
Las Vegas

On 6/13/07 4:58 PM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote:

> Brian Yennie wrote:
>> Just for fun, an alternate method which never leaves trailing commas and
>> respects the itemDelimiter:
>> 
>> on AddItem @pVar, pItem
>> if (pVar is not empty) then put the itemDelimiter after pVar
>> put pItem after pVar
>> end AddItem
> 
> And then there's the ever so easy to use:
> 
>   put pItem into item (the number of items in pVar) + 1 of pVar
> 
> which hardly anyone uses because it's such a pain to type. But I've
> started using it again lately because if you do it that way, you don't
> have to worry about leading, trailing, or any other kinds of delimiters.
> The engine handles it all and it just works.


___
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: min() function anomalies

2007-06-13 Thread J. Landman Gay

Jim Ault wrote:

I use the following if the trailing delimiter is significant:

 put pItem into item (the number of items in (pVar & null)) of pVar

... of course, you could use any non-delimiter char to do this since all you
want is to make Rev think there is a char in the last "item"


But in Shari's case, there isn't any item after the last comma so she 
doesn't want to force Rev to think so. When treated as a string, Rev 
knows that a trailing comma doesn't count when itemizing lists.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Where do I put my universal Externals and Plugins?

2007-06-13 Thread Scott Rossi
> Why is there an extra copy of the plugins folder in the Revolution
> application folder?

This is a folder that's always been installed, before the universal folder
in Documents ever existed.  It's local to the version, so any plugins placed
there won't appear when running other versions.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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: Delimiting thousandths..converting 12345678 to 12, 345, 678 for example

2007-06-13 Thread FlexibleLearning
 
 
Hi Jim

> Of course, this is why  universal functions are difficult to write.  A tool
> for many  purposes may become less and less convenient.

You are, of  course, quite right. The usability of a function should be 
proportionate to  the required functionality. A currency formatter is not 
necessarily the same as  a thousands separator.I got carried away.
 
:-)
 
/H








   
___
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: Delimiting thousandths..converting 12345678 to 12, 345, 678 for example

2007-06-13 Thread Jim Ault

On 6/13/07 11:07 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:  
>  
> Hi Jim
> 
>> Of course, this is why  universal functions are difficult to write.  A tool
>> for many  purposes may become less and less convenient.
> 
> You are, of  course, quite right. The usability of a function should be
> proportionate to  the required functionality. A currency formatter is not
> necessarily the same as  a thousands separator.I got carried away.
Getting carried away is a good thing, especially when osmething like
Scripter's Scrapbook becomes such solid and expansive program.

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