Re: What's wrong with Globals?

2007-04-03 Thread Simon HARPER
So as a newbie, would I be right in thinking that you can call any  
function from the library stack in any other stack, or must the  
library stack be the mainstack. Also you say "put 'in use' at  
startup" do you have to do this via a specific command?



Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


On 2 Apr 2007, at 23:20, Mark Smith wrote:

Well, I'm certainly not going to presume to criticise your method,  
but in the spirit of "you show me yours, I'll show you mine", what  
I tend to do is to have a stack in my apps which is put 'in use' at  
startup, and which has various getters and setters. The actual data  
it returns could be in cps, script locals, text files, databases or  
somewhere on t'internet, the calling handlers don't have to know. So:


answer gcOK() in a handler calls the gcOK() function in my library  
stack which might be


function gcOK
  return "OK?" -- literal
end gcOK

or

function cgOK
  return the okMessage of me -- cp
end gcOK

or

function gcOK
  return sOkMessage -- script local
end gcOK

or

function gcOK
  get URL (http://www.google.com/search?q=OK";
  --parse html and find what you need
  return whatYouFound
end gcOK

etc.

This approach proved very handy indeed recently, when the data  
(retrieved from the web) for one of my apps changed format, but all  
I had to do was re-write a couple of getter functions, the job was  
done, and I felt quite smug.


Script locals are quite a neat way of achieving data-hiding when  
used this way.


Best,

Mark



On 2 Apr 2007, at 23:53, Graham Samuel wrote:

Forgive me if this conversation has ended, but my internet  
connection has been in meltdown... just got back on line.


I most frequently use globals because there aren't global  
constants. I use them very largely for strings containing stuff  
like error messages or even very simple strings like "OK", so that  
I can refer to these indirectly in scripts, thus allowing me to  
switch (human) languages by redefining the globals in just one  
script of the program. I guess I could have used custom property  
sets with exactly the same effect, and with the advantage that I  
wouldn't have to initialise them during the startup of my app, but  
like many others I didn't understand these when I started, and I  
tend to re-use stuff I wrote before. I guess there isn't much  
difference between writing


  answer gcOK  -- 'gcOK' is a global with a string in it.

   and

  answer (the gcOK of stack "allTheConstantStrings") -- 'the gcOK'  
is a property of some object.


but the second statement seems to have more characters in it,  
since it involves referring to the object in which the property is  
stored. If there are a lot of such references, my scripts are  
going to get longer.


I also use globals when I have a quantity which needs to be used  
in different scripts in different stacks, i.e globally: a very  
obvious point, but I really don't see what is wrong with that. I  
do accept that I have to be disciplined about changing their  
values. I do use properties (I tend to use these for global status  
stuff like 'the soundOn of this stack'), parameter-passing and  
message-passing extensively, but to me globals feel right for  
quite a lot of things.


I shall now wait for someone to tell me why this is a really wrong- 
headed approach. I'm always willing to learn - really.


Graham



Graham Samuel / The Living Fossil Co. / UK and France

___
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: What's wrong with Globals?

2007-04-03 Thread Mark Smith
Si, the syntax is ,  which puts  the  
script of stack "someStack"  into the message path ie. available to  
all other open stacks.


The script of a mainstack of an app is already in the message path,  
so you wouldn't need to put a mainstack 'in use'.


 is probably the most common way that library stacks  
(stacks containing lots of re-usable handlers) are implemented. Many  
of us have built up collections of generally useful handlers which we  
put in a library stack, and put 'in use' (both in compiled apps, and  
in the IDE) so we don't have to re-write them for every project.


For instance, quite a few people coming to Rev from other languages  
ask here about a 'trim' function (to trim white space from the  
beginning and end of a string), which is not a built in function, but  
is very commonly wanted, so many of us will have written one like:


function trim pString
  return word 1 to -1 of pString
end trim

and rather than having to write this function for every project, you  
can put it in the script of a library stack containing many such  
useful functions, and copy that stack into each project you start,  
and put it 'in use' at startup.


It also makes it possible for people to write libraries of handlers  
that they can then share with or sell to others. RevOnline contains  
many libraries that people have decided to share, and so there is a  
great deal of extra functionality available to us that is not part of  
the regular Rev install.


Best,

Mark



On 3 Apr 2007, at 09:49, Simon HARPER wrote:

So as a newbie, would I be right in thinking that you can call any  
function from the library stack in any other stack, or must the  
library stack be the mainstack. Also you say "put 'in use' at  
startup" do you have to do this via a specific command?



Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


On 2 Apr 2007, at 23:20, Mark Smith wrote:

Well, I'm certainly not going to presume to criticise your method,  
but in the spirit of "you show me yours, I'll show you mine", what  
I tend to do is to have a stack in my apps which is put 'in use'  
at startup, and which has various getters and setters. The actual  
data it returns could be in cps, script locals, text files,  
databases or somewhere on t'internet, the calling handlers don't  
have to know. So:


answer gcOK() in a handler calls the gcOK() function in my library  
stack which might be


function gcOK
  return "OK?" -- literal
end gcOK

or

function cgOK
  return the okMessage of me -- cp
end gcOK

or

function gcOK
  return sOkMessage -- script local
end gcOK

or

function gcOK
  get URL (http://www.google.com/search?q=OK";
  --parse html and find what you need
  return whatYouFound
end gcOK

etc.

This approach proved very handy indeed recently, when the data  
(retrieved from the web) for one of my apps changed format, but  
all I had to do was re-write a couple of getter functions, the job  
was done, and I felt quite smug.


Script locals are quite a neat way of achieving data-hiding when  
used this way.


Best,

Mark



On 2 Apr 2007, at 23:53, Graham Samuel wrote:

Forgive me if this conversation has ended, but my internet  
connection has been in meltdown... just got back on line.


I most frequently use globals because there aren't global  
constants. I use them very largely for strings containing stuff  
like error messages or even very simple strings like "OK", so  
that I can refer to these indirectly in scripts, thus allowing me  
to switch (human) languages by redefining the globals in just one  
script of the program. I guess I could have used custom property  
sets with exactly the same effect, and with the advantage that I  
wouldn't have to initialise them during the startup of my app,  
but like many others I didn't understand these when I started,  
and I tend to re-use stuff I wrote before. I guess there isn't  
much difference between writing


  answer gcOK  -- 'gcOK' is a global with a string in it.

   and

  answer (the gcOK of stack "allTheConstantStrings") -- 'the  
gcOK' is a property of some object.


but the second statement seems to have more characters in it,  
since it involves referring to the object in which the property  
is stored. If there are a lot of such references, my scripts are  
going to get longer.


I also use globals when I have a quantity which needs to be used  
in different scripts in different stacks, i.e globally: a very  
obvious point, but I really don't see what is wrong with that. I  
do accept that I have to be disciplined about changing their  
values. I do use properties (I tend to use these for global  
status stuff like 'the soundOn of this stack'), parameter-passing  
and message-passing extensively, but to me globals feel right for  
quite a lot of things.


I shall now wait for someone to tell me why this is a really  
wrong-headed approach. I'm always willing to learn - really

Question (more or less) about arrays

2007-04-03 Thread jbv
Hi all,

Please test this little script :

on mouseUp
  put 0 into var[1]
  put 0 into var[2]
  if var = empty then
put 0
  else
put 1
  end if
end mouseUp

In order to check if array "var" contains any element,
the following test must be used instead :
if the keys of var = empty then

I was just wondering if you guys would find this behaviour
"normal" ? I've just lost more than 1 hour trying to debug a
script in which I need to test the content of different variables
(some arrays, some made of lines of items), and thought
(naively ?) that any array would be considered as "not empty"
as soon as it contains at least 1 key...
Obviously I was wrong, as it seems that "empty" applies only
to variables containing straight text...

I don't have any recent Rev doc at hand, only an old MC version,
and the doc doesn't say much on this topic... May be Rev docs
are more explicit...

Best,
JB

___
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: Question (more or less) about arrays

2007-04-03 Thread Mark Smith
JB, there are various requests in place at the qa center for  
enhancements to both the implementation and documentation of arrays  
in Rev (type 'array' into the search field, and you'll see them).


As it stands, Revs arrays are just different from normal variables,  
and what you've found is the normal behaviour, so maybe you might  
want to vote for a documentation update at least.


Best,

Mark

On 3 Apr 2007, at 10:47, jbv wrote:


Hi all,

Please test this little script :

on mouseUp
  put 0 into var[1]
  put 0 into var[2]
  if var = empty then
put 0
  else
put 1
  end if
end mouseUp

In order to check if array "var" contains any element,
the following test must be used instead :
if the keys of var = empty then

I was just wondering if you guys would find this behaviour
"normal" ? I've just lost more than 1 hour trying to debug a
script in which I need to test the content of different variables
(some arrays, some made of lines of items), and thought
(naively ?) that any array would be considered as "not empty"
as soon as it contains at least 1 key...
Obviously I was wrong, as it seems that "empty" applies only
to variables containing straight text...

I don't have any recent Rev doc at hand, only an old MC version,
and the doc doesn't say much on this topic... May be Rev docs
are more explicit...

Best,
JB

___
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


Export snapshot - with mouse cursor

2007-04-03 Thread John Craig
Does anyone know if it's possible to include the mouse cursor using 
'export snapshot'?


Thanks,

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


is that a bug?

2007-04-03 Thread Joel Guillod

This expression returns the expected result:

   selectedNode() is the cEditedNodeID of grp "grClassEditor"


But when exchanging the two operands the following expressions do  
always return TRUE even with ():


   the cEditedNodeID of grp "grClassEditor" is selectedNode()
   (the cEditedNodeID of grp "grClassEditor") is selectedNode()

I am absolutely sure of the values returned by both operands and make  
extensive check for this surprising result.
Same result on 2.8.0,370 and 2.7.4,291: Is this a bug? Or can anyone  
give me some ligth?


Thanks

JG

___
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: copy protection

2007-04-03 Thread Viktoras Didziulis
Exactly. Can somebody share a few tricks to make content on a CD being
unusable after being copied? Its a small niche soft (specialized
biodiversity database and an e-book). Likely there will be no attempts to
crack it, however we would like to be able to sell at least 200 copies of
the CD before illegal copies made by ordinary users start circulating around
 
 
Viktoras 
 
>Preventing content on a CD from being usable after being copied is possible
to 
>some degree. If your product fills a small niche, then you have a 
>chance with protection. It just won't be worth cracking if the app 
>does not apply to the general public or provide some notoriety of 
>some sort. 
 
 
>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


How to get a JPEG from a favicon file?

2007-04-03 Thread Eric Chatonet

Hello,

Of course this is on Win32.
I would like to display fav icons into an urls list (handling such a  
list is not the problem ;-)

I'm able to retrieve a favicon.ico file from a website.
But then how can I get an image that will be able to be displayed in  
Rev from such a file?

Any idea really welcome :-)

Best regards from Paris,

Eric Chatonet.

http://www.sosmartsoftware.com/
[EMAIL PROTECTED]/



___
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


find and replace

2007-04-03 Thread Lars Brehmer

Hi all,

I am trying to duplicate the find and replace tool in the rev IDE in  
a button script.  I have a large project in macOSX that needs a few  
dozen little tweeks when I make a Windows standalone.  I put these  
all into a button so when I make a new Windows standalone just one  
click gives me all the little changes.  The one thing I haven't  
succeeded in is a single word that appears in about 20 button and  
stack scripts. It seems that "visualEffect reval" needs to be  
"visualEffect wipe" to get the same result in Windows.  So for now I  
just do a find and replace with the "scripts" box checked, but it  
would be nice to include this in my tweek button in order to doo all  
tweeks without opening Rev. I assume it's just a question of getting  
the syntax correct for:


replace "reveal" with "wipe" in this stack and its stack files --  
using the find and replace tool with scripts checked


What should it be?

Cheers,

Lars


___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Mark Schonewille

Hi Eric,

If you're lucky, the format of the favicon file is in a well-known  
picture format, like PNG, GIF etc. You should be able to check the  
headers of the file and treat it accordingly. Just set the imagedata  
of your image object to the data of the ico file.


If you're not lucky, the file is really in ico format. It is possible  
to analyse it and eventually display it in an image object, but I  
haven't done that myself. I would be interested though...


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 3-apr-2007, om 13:33 heeft Eric Chatonet het volgende geschreven:


Hello,

Of course this is on Win32.
I would like to display fav icons into an urls list (handling such  
a list is not the problem ;-)

I'm able to retrieve a favicon.ico file from a website.
But then how can I get an image that will be able to be displayed  
in Rev from such a file?

Any idea really welcome :-)

Best regards from Paris,

Eric Chatonet.



___
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


Changing layers of Objects and Groups

2007-04-03 Thread Dave

Hi,

I'm using RunRev V 2.8.0.370 and having some problems changing layers  
of Objects and Groups. I have the following layout



GroupA
   GroupB(Inside GroupA)
 Object1OfGroupB
 Object1OfGroupB
 Object1OfGroupB
   GroupC   (Inside GroupA)
 Object1OfGroupC
 Object1OfGroupC
 Object1OfGroupC
   GroupD   (Inside GroupA)
 Object1OfGroupD
 Object1OfGroupD
 Object1OfGroupD


GroupE  (not in a Group)

I have set "relayerGroupedControls" to true via the message box.

I then try to change the later of "GroupE" so that it is "GroupA",  
but it always ends up in one of the other groups (B,C or D) not in  
GroupA.


Any ideas???

Thanks a lot
All the Best
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: exportscripts.rev

2007-04-03 Thread Jerry Daniels

AH...all becomes clear now! That's an interesting problem.

Galaxy in this case is under the impression that you may have changed  
your script and just not compiled it since Galaxy is a stateless  
editor and the Rev editor is not.


When we do a global search and replace with Galaxy Projects, we  
update the object so that Galaxy Scripts knows the string has been  
replaced and the object re-compiled.


Best,

Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Apr 3, 2007, at 12:29 AM, Kay C Lan wrote:


On 3/30/07, Jerry Daniels <[EMAIL PROTECTED]> wrote:


I'm sorry, but I CANNOT confirm that. Use the tool menu on Galaxy
Projects to find and replace a string.



I apologise Jerry, I should have been more specific, Unfortunately  
many of
my opportunities to post to the list are when I'm away from my Rev  
computer

so I'm posting from (leaking) memory.

This is with Galaxy Free 1.5.0r11, OSX 10.4.9, Rev Studio 2.8.0  
build 370.


With Galaxy Free there is no 'Projects' so I use the Rev IDE to do  
Stack
wide Find and Replace All. Although returning to the Galaxy Free  
Script
Editor shows that the script is now 'dirty', the Find and Replace  
All has
not changed anything. As soon as you 'apply' or save your stack you  
are back

to as it was before the Find and Replace All.

I can't seem to figure out how to do a stack wide Find and Replace  
All with

Galaxy Free running. The simple work around is not to have Galaxy Free
running on the few occasions I decide to do a Stack wide Find and  
Replace

All; a small price to pay for such an excellent Free product.

I hope this clarifies why I made the original post:-)
___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Eric Chatonet

Hi Mark,

Thanks for the pointer.
Unfortunately, an ico file is not recognized as an image file by Rev  
and does not seem to have any specific header :-(

I'm stuck...

Le 3 avr. 07 à 14:37, Mark Schonewille a écrit :


Hi Eric,

If you're lucky, the format of the favicon file is in a well-known  
picture format, like PNG, GIF etc. You should be able to check the  
headers of the file and treat it accordingly. Just set the  
imagedata of your image object to the data of the ico file.


If you're not lucky, the file is really in ico format. It is  
possible to analyse it and eventually display it in an image  
object, but I haven't done that myself. I would be interested  
though...


Best,

Mark



Best regards from Paris,

Eric Chatonet.

http://www.sosmartsoftware.com/
[EMAIL PROTECTED]/



___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Mark Schonewille

Hi Eric,

This means that you are dealing with an actual ico format. Sometimes,  
people use a png, jpg or gif file and change the extension into .ico,  
sometimes people know how to make a real ico file and use that.


Looking at the binary contents of an arbitrary ico file, I see that  
it contains an embedded PNG picture (I assume this could also be a  
different format). Maybe you can simple pull that out?


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 3-apr-2007, om 15:37 heeft Eric Chatonet het volgende geschreven:


Hi Mark,

Thanks for the pointer.
Unfortunately, an ico file is not recognized as an image file by  
Rev and does not seem to have any specific header :-(

I'm stuck...

Best regards from Paris,

Eric Chatonet.



___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Eric Chatonet

Mark,

Yes you are right: people often use gif, png or jpeg files for  
favicons but this can be known parsing the html code where you can  
find something like:



My problem is with '.ico' files.

Le 3 avr. 07 à 15:43, Mark Schonewille a écrit :


Hi Eric,

This means that you are dealing with an actual ico format.  
Sometimes, people use a png, jpg or gif file and change the  
extension into .ico, sometimes people know how to make a real ico  
file and use that.


Looking at the binary contents of an arbitrary ico file, I see that  
it contains an embedded PNG picture (I assume this could also be a  
different format). Maybe you can simple pull that out?


Best,

Mark


Best regards from Paris,

Eric Chatonet.

http://www.sosmartsoftware.com/
[EMAIL PROTECTED]/



___
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: Question (more or less) about arrays

2007-04-03 Thread Richard Gaskin

Mark Smith wrote:

> On 3 Apr 2007, at 10:47, jbv wrote:

>> In order to check if array "var" contains any element,
>> the following test must be used instead :
>> if the keys of var = empty then
>>
>> I was just wondering if you guys would find this behaviour
>> "normal" ?
...
> JB, there are various requests in place at the qa center for
> enhancements to both the implementation and documentation of arrays
> in Rev (type 'array' into the search field, and you'll see them).
>
> As it stands, Revs arrays are just different from normal variables,
> and what you've found is the normal behaviour, so maybe you might
> want to vote for a documentation update at least.

But here's the tough question:  if "var" contains an array, then no 
valid data can be returned by accessing it without the name of one of 
its keys.  So what should "var" return when checked directly?


--
 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: What's wrong with Globals?

2007-04-03 Thread Richard Gaskin

Mark Smith  wrote:

>  is probably the most common way that library stacks
> (stacks containing lots of re-usable handlers) are implemented. Many
> of us have built up collections of generally useful handlers which we
> put in a library stack, and put 'in use' (both in compiled apps, and
> in the IDE) so we don't have to re-write them for every project.

For more background on using libraries, frontScripts, and backScripts to 
extended the Revolution message path:






--
 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: How to get a JPEG from a favicon file?

2007-04-03 Thread Viktoras Didziulis
One way to make favicon.ico is to create 16x16 picture in old good windows 
bmp format and replace extension .bmp with .ico. Actually lots of websites
use this sort of favicon.ico file which (in this case) is just bmp... 
 
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: is that a bug?

2007-04-03 Thread Ken Ray
On Tue, 3 Apr 2007 11:29:45 +0200, Joel Guillod wrote:

> This expression returns the expected result:
> 
>selectedNode() is the cEditedNodeID of grp "grClassEditor"

Joel, what is the expected result here?

> But when exchanging the two operands the following expressions do 
> always return TRUE even with ():
> 
>the cEditedNodeID of grp "grClassEditor" is selectedNode()
>(the cEditedNodeID of grp "grClassEditor") is selectedNode()

Both of these are equivalent, AFAICT.

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: Question (more or less) about arrays

2007-04-03 Thread Viktoras Didziulis
in Perl it would return a scalar context of variable in this case it is size
of an array (e.g. number of elements) e.g. $var_size = @var 
thence one can write 
for ($i = 0; $i < @var; $i++) 
{ 
#prints all elements of array @var to STDOUT 
print $var($i); 
} 
 
Viktoras 
 
---Original Message--- 
 
From: Richard Gaskin 
Date: 03/04/2007 17:11:45 
To: How to use Revolution 
Subject: Re: Question (more or less) about arrays 
 
Mark Smith wrote: 
 
> On 3 Apr 2007, at 10:47, jbv wrote: 
 
>> In order to check if array "var" contains any element, 
>> the following test must be used instead : 
>> if the keys of var = empty then 
>> 
>> I was just wondering if you guys would find this behaviour 
>> "normal" ? 
... 
> JB, there are various requests in place at the qa center for 
> enhancements to both the implementation and documentation of arrays 
> in Rev (type 'array' into the search field, and you'll see them). 
> 
> As it stands, Revs arrays are just different from normal variables, 
> and what you've found is the normal behaviour, so maybe you might 
> want to vote for a documentation update at least. 
 
But here's the tough question: if "var" contains an array, then no 
valid data can be returned by accessing it without the name of one of 
its keys. So what should "var" return when checked directly? 
 
-- 
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
___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Jim Sims


On Apr 3, 2007, at 4:02 PM, Eric Chatonet wrote:

Yes you are right: people often use gif, png or jpeg files for  
favicons but this can be known parsing the html code where you can  
find something like:



My problem is with '.ico' files.


I thought about this issue some time ago and all I could think of was
to use altBrowser to display the ico and then export snapshot that  
area for
making the jpg.  I never actually did this as I didn't need the dang  
things

that badly  ;-)

ciao,
sims



___
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: Question (more or less) about arrays

2007-04-03 Thread jbv


Richard Gaskin a *crit :

>
> But here's the tough question:  if "var" contains an array, then no
> valid data can be returned by accessing it without the name of one of
> its keys.  So what should "var" return when checked directly?
>

One option is to return the same thing as when using "the keys of var",
IOW the list of the keys of the array...
Anyway, returning empty is probably the most disturbing option !

JB

___
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


"New Table Object" (sort of) Problem

2007-04-03 Thread Len Morgan
I'm trying to create a REAL table object (hopefully reusable), and I'm 
getting close.  What I've done is create a Header group that has 
non-functioning buttons (for right now) that goes across the top.  I 
then created a group of fields that butt up against each other and 
formatted to the same width as the header group.  This group will be one 
row of my table.  I will need as many copies of this group as there are 
rows returned from a query. 

This works fine as long as there are fewer rows returned than the size 
of the screen.  I'm copying the row group into another group that I want 
to use as a scrolled container with a scrollbar on the side so any rows 
that go "below" the area of this group should not be visible until they 
are scrolled into view (and the rows above should go away as they are 
scrolled off the top of the containing group.


The problem is that the new rows just keep on going right to the bottom 
of the screen.  How can I make a scrolled box of groups?


Thanks

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


Re: "New Table Object" (sort of) Problem

2007-04-03 Thread Ian Wood


On 3 Apr 2007, at 15:53, Len Morgan wrote:

The problem is that the new rows just keep on going right to the  
bottom of the screen.  How can I make a scrolled box of groups?


Make a group of all the 'row' groups, then set the vscroll of that  
group to true, then set the height of the group to a small enough  
amount that it no longer goes off the bottom of the stack.


If the table ends up wider than the stack you may also need to set  
the hscroll to true as well.


Ian
___
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: Lost All Audioclip playback on Intel Mac

2007-04-03 Thread www.MeltingPotBar.com
Oh, I love this list.  I thought it pretty much had to be an OS  
problem.  Thank's guys.
YOU wrote: "This happens to me every time I run Audacity. Apple has a  
Knowledge Base

article about it:

 "

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


Re: "New Table Object" (sort of) Problem

2007-04-03 Thread Devin Asay


On Apr 3, 2007, at 8:53 AM, Len Morgan wrote:

I'm trying to create a REAL table object (hopefully reusable), and  
I'm getting close.  What I've done is create a Header group that  
has non-functioning buttons (for right now) that goes across the  
top.  I then created a group of fields that butt up against each  
other and formatted to the same width as the header group.  This  
group will be one row of my table.  I will need as many copies of  
this group as there are rows returned from a query.
This works fine as long as there are fewer rows returned than the  
size of the screen.  I'm copying the row group into another group  
that I want to use as a scrolled container with a scrollbar on the  
side so any rows that go "below" the area of this group should not  
be visible until they are scrolled into view (and the rows above  
should go away as they are scrolled off the top of the containing  
group.


The problem is that the new rows just keep on going right to the  
bottom of the screen.  How can I make a scrolled box of groups?


Len,

Did you lock the size and location of the containing group? If you  
don't the group will automatically resize as you add new objects, up  
to the size of the card.



Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Question (more or less) about arrays

2007-04-03 Thread Richard Gaskin

jbv wrote:


Richard Gaskin a *crit :

But here's the tough question:  if "var" contains an array, then no
valid data can be returned by accessing it without the name of one of
its keys.  So what should "var" return when checked directly?


One option is to return the same thing as when using "the keys of var",
IOW the list of the keys of the array...


How would one distinguish between an array and a non-array which 
contains any return-delimited list?


I don't think it's a bad idea, just playing with it a bit as we try to 
hone in on what exactly we might request for this.



Anyway, returning empty is probably the most disturbing option !


I'll agree that it's less than helpful, but if we thought about it long 
enough I'm sure we could come up with something worse. :)


--
 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: Changing layers of Objects and Groups

2007-04-03 Thread Trevor DeVore

On Apr 3, 2007, at 6:25 AM, Dave wrote:


GroupA
   GroupB(Inside GroupA)
 Object1OfGroupB
 Object1OfGroupB
 Object1OfGroupB
   GroupC   (Inside GroupA)
 Object1OfGroupC
 Object1OfGroupC
 Object1OfGroupC
   GroupD   (Inside GroupA)
 Object1OfGroupD
 Object1OfGroupD
 Object1OfGroupD


GroupE  (not in a Group)

I have set "relayerGroupedControls" to true via the message box.

I then try to change the later of "GroupE" so that it is "GroupA",  
but it always ends up in one of the other groups (B,C or D) not in  
GroupA.


Any ideas???


Ahh, relayering objects in groups.  The way that groups are  
implemented in Rev (using indexes) means that you see some unexpected  
behavior when trying to move objects in and around other grouped  
objects.


There is a solution though.  If you wanted to move GroupE into GroupA  
you would set the layer of GroupE to the layer of GroupA + 1.  If you  
wanted to move GroupE to the end of GroupA (after GroupD) you would


set the layer of group "GroupE" to the layer of group "GroupA" + 1
set the layer of group "GroupD" to the layer of group "GroupA" + 1
set the layer of group "GroupC" to the layer of group "GroupA" + 1
set the layer of group "GroupB" to the layer of group "GroupA" + 1

There may be other ways of accomplishing this but I have not been  
able to find it.  The only reliable method (meaning controls don't  
become children of a group unintentionally) I've found is the above  
technique.  I would love to hear if someone has another solution though.



--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
[EMAIL PROTECTED]


___
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: How to get a JPEG from a favicon file?

2007-04-03 Thread Luis

Hiya,

Found some info milling around the net:

From: http://www.favicon.com/
'What is an ico file?
An ico file is actually a repository of bitmap like images. They are 
used because in some locations a 16x16 pixel image is desired, and 
sometimes a 32x32 image may be needed. Sometimes a 16 color image is 
desired, and sometimes a 256 color icon is desired. This repository is 
scanned for the image size/color count appropriate for the location and 
the computer's color capability. If the image is not ideal, it may be 
compressed, expanded, and/or colors may be modified producing unexpected 
results.


Isn't an ICO file just a renamed BMP?
NO. Although some people have said an ico is a BMP, this is not true. 
Think of an ICO file as a repository of BMP images. It has its own format.'


Generalised info: http://www.yourhtmlsource.com/promotion/favicon.html

And, as always: http://en.wikipedia.org/wiki/Favicon

Cheers,

Luis.


Jim Sims wrote:


On Apr 3, 2007, at 4:02 PM, Eric Chatonet wrote:

Yes you are right: people often use gif, png or jpeg files for 
favicons but this can be known parsing the html code where you can 
find something like:



My problem is with '.ico' files.


I thought about this issue some time ago and all I could think of was
to use altBrowser to display the ico and then export snapshot that area for
making the jpg.  I never actually did this as I didn't need the dang things
that badly  ;-)

ciao,
sims



___
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: Question (more or less) about arrays

2007-04-03 Thread jbv


Richard Gaskin a *crit :

> >
> > One option is to return the same thing as when using "the keys of var",
> > IOW the list of the keys of the array...
>
> How would one distinguish between an array and a non-array which
> contains any return-delimited list?

Well, actually, my problem was to detect if a var was empty or not, no
matter if it was an array or a regular variable.
At least my proposition solves my original problem.

As for your question, may be could there be a command named "the arrayNames"
that would list the variables containing arrays ?
Therefore we could use some simple test such as :
if my var is not empty and my var is among the arrayNames

I'm sure someone will come up with a better idea...

JB

___
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


Work around for Beep not working on RunRev 2.7.x+

2007-04-03 Thread Dave

Hi,

Has anyone managed to figure out a work around for the non beep bug  
present in RunRev 2.7.4 Onwards?


I've tried this on both Intel and PowerPC but can't get a beep!

Thanks a lot
All the Best
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: Question (more or less) about arrays

2007-04-03 Thread Mark Smith
Exactly. I really can't think of a better behaviour, however strange  
it is to have a large array appear empty when accessed directly.  
However, it might be a good idea to have a small list of the more  
'unintuitive' features of rev arrays in the user guide when they gvet  
around to the section on arrays. These things do catch people out.


Best,

Mark

On 3 Apr 2007, at 16:11, Richard Gaskin wrote:

But here's the tough question:  if "var" contains an array, then no  
valid data can be returned by accessing it without the name of one  
of its keys.  So what should "var" return when checked directly?


___
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: Changing layers of Objects and Groups

2007-04-03 Thread Dave


On 3 Apr 2007, at 16:21, Trevor DeVore wrote:


On Apr 3, 2007, at 6:25 AM, Dave wrote:


GroupA
   GroupB(Inside GroupA)
 Object1OfGroupB
 Object1OfGroupB
 Object1OfGroupB
   GroupC   (Inside GroupA)
 Object1OfGroupC
 Object1OfGroupC
 Object1OfGroupC
   GroupD   (Inside GroupA)
 Object1OfGroupD
 Object1OfGroupD
 Object1OfGroupD


GroupE  (not in a Group)

I have set "relayerGroupedControls" to true via the message box.

I then try to change the later of "GroupE" so that it is "GroupA",  
but it always ends up in one of the other groups (B,C or D) not in  
GroupA.


Any ideas???


Ahh, relayering objects in groups.  The way that groups are  
implemented in Rev (using indexes) means that you see some  
unexpected behavior when trying to move objects in and around other  
grouped objects.


There is a solution though.  If you wanted to move GroupE into  
GroupA you would set the layer of GroupE to the layer of GroupA +  
1.  If you wanted to move GroupE to the end of GroupA (after  
GroupD) you would


set the layer of group "GroupE" to the layer of group "GroupA" + 1
set the layer of group "GroupD" to the layer of group "GroupA" + 1
set the layer of group "GroupC" to the layer of group "GroupA" + 1
set the layer of group "GroupB" to the layer of group "GroupA" + 1

There may be other ways of accomplishing this but I have not been  
able to find it.  The only reliable method (meaning controls don't  
become children of a group unintentionally) I've found is the above  
technique.  I would love to hear if someone has another solution  
though.


Hi Trevor,

I tried that, but it doesn't work, at least in RunRev 2.8.0.370 on  
Intel Mac it doesn't. Given the following setup:


01  GroupA
02GroupB(Inside GroupA)
03   Object1OfGroupB
04   Object1OfGroupB
05   Object1OfGroupB
06 GroupC   (Inside GroupA)
07   Object1OfGroupC
08   Object1OfGroupC
09   Object1OfGroupC
10 GroupD   (Inside GroupA)
11   Object1OfGroupD
12   Object1OfGroupD
13   Object1OfGroupD


14  GroupE  (not in a Group)


If I set the later of GroupE to 1, it becomes layer 1 and GroupA  
becomes layer 2. If I set the layer of GroupE to 2, it becomes layer  
2 (inside GroupB) and all the other object layers increase by one.


I can't seem to find a way to add a group to an outer Group that just  
contains Groups. The new group is either put before the group or  
inside one of the sub-groups.


All the best
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: Question (more or less) about arrays

2007-04-03 Thread Dave


On 3 Apr 2007, at 16:52, jbv wrote:




Richard Gaskin a *crit :



One option is to return the same thing as when using "the keys of  
var",

IOW the list of the keys of the array...


How would one distinguish between an array and a non-array which
contains any return-delimited list?


Well, actually, my problem was to detect if a var was empty or not, no
matter if it was an array or a regular variable.
At least my proposition solves my original problem.

As for your question, may be could there be a command named "the  
arrayNames"

that would list the variables containing arrays ?
Therefore we could use some simple test such as :
if my var is not empty and my var is among the arrayNames

I'm sure someone will come up with a better idea...


Maybe it would be better to just add a "type" function?

e.g. Something like:

if revType(myVar) = "Array" then
.


All the Best
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: Work around for Beep not working on RunRev 2.7.x+

2007-04-03 Thread Richard Gaskin

Dave wrote:
Has anyone managed to figure out a work around for the non beep bug  
present in RunRev 2.7.4 Onwards?


I've tried this on both Intel and PowerPC but can't get a beep!


I just tested the beep command on OS X in the latest version (2.8.0, 
build 370) and it seems to work well.


--
 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: Changing layers of Objects and Groups

2007-04-03 Thread Trevor DeVore

On Apr 3, 2007, at 8:48 AM, Dave wrote:

I tried that, but it doesn't work, at least in RunRev 2.8.0.370 on  
Intel Mac it doesn't. Given the following setup:


01  GroupA
02GroupB(Inside GroupA)
03   Object1OfGroupB
04   Object1OfGroupB
05   Object1OfGroupB
06 GroupC   (Inside GroupA)
07   Object1OfGroupC
08   Object1OfGroupC
09   Object1OfGroupC
10 GroupD   (Inside GroupA)
11   Object1OfGroupD
12   Object1OfGroupD
13   Object1OfGroupD


14  GroupE  (not in a Group)


If I set the later of GroupE to 1, it becomes layer 1 and GroupA  
becomes layer 2. If I set the layer of GroupE to 2, it becomes  
layer 2 (inside GroupB) and all the other object layers increase by  
one.


Dave,

I just tried the setup you have above and it worked.  I started with  
the following:


GroupA
GroupB
Control
Control
GroupC
Control
Control
GroupD
Control
Control
GroupE
Control

I then ran this code:

set the layer of group "GroupE" to the layer of group "GroupA" + 1
set the layer of group "GroupD" to the layer of group "GroupA" + 1
set the layer of group "GroupC" to the layer of group "GroupA" + 1
set the layer of group "GroupB" to the layer of group "GroupA" + 1

and ended up with this:

GroupA
GroupB
Control
Control
GroupC
Control
Control
GroupD
Control
Control
GroupE
Control

I can send you an example stack if you wish.

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
[EMAIL PROTECTED]


___
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


Rev Prefs

2007-04-03 Thread Mark Smith
My installation of Rev Studio 2.8.0 has just dumped all my  
preferences (I haven't installed or un-installed anything), and will  
not reliably save any changes I make to them (sometimes it saves  
some, sometimes others, sometimes none, but never all, so far). I  
seem to remember having this problem a long time ago (pre 2.7), and  
the problem just cured itself, eventually. Has anyone come across  
this, and is there a known cure?


Best,

Mark
___
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: Work around for Beep not working on RunRev 2.7.x+

2007-04-03 Thread Dave

Hi,

I've just tried it again under Versions 2.6.6.152, 2.7.4.291,  
2.8.0..350 and 2.8.0.370 and it only works in 2.6.6.152,. I am using  
an Intel Mac, but last time I tried, it didn't work on PowerPC either.


Are you using Intel or PowerPC?

I've tried it by typing "beep" in the message box as well as with a  
test script with a single button that just says:


on mouseUp
beep
end mouseUp

I think someone else mentioned this problem on the list before.

Other apps beep and so does 2.6.6.152.

All the Best
Dave

On 3 Apr 2007, at 16:54, Richard Gaskin wrote:


Dave wrote:
Has anyone managed to figure out a work around for the non beep  
bug  present in RunRev 2.7.4 Onwards?

I've tried this on both Intel and PowerPC but can't get a beep!


I just tested the beep command on OS X in the latest version  
(2.8.0, build 370) and it seems to work well.


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


___
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: Changing layers of Objects and Groups

2007-04-03 Thread Dave
Yes please do send the script, I was doing this via the IDE, I'm  
guessing you are doing it in a Script?


Also is relayerGroupedControls set to true?

Thanks a lot
All the Best
Dave


On 3 Apr 2007, at 17:08, Trevor DeVore wrote:


On Apr 3, 2007, at 8:48 AM, Dave wrote:

I tried that, but it doesn't work, at least in RunRev 2.8.0.370 on  
Intel Mac it doesn't. Given the following setup:


01  GroupA
02GroupB(Inside GroupA)
03   Object1OfGroupB
04   Object1OfGroupB
05   Object1OfGroupB
06 GroupC   (Inside GroupA)
07   Object1OfGroupC
08   Object1OfGroupC
09   Object1OfGroupC
10 GroupD   (Inside GroupA)
11   Object1OfGroupD
12   Object1OfGroupD
13   Object1OfGroupD


14  GroupE  (not in a Group)


If I set the later of GroupE to 1, it becomes layer 1 and GroupA  
becomes layer 2. If I set the layer of GroupE to 2, it becomes  
layer 2 (inside GroupB) and all the other object layers increase  
by one.


Dave,

I just tried the setup you have above and it worked.  I started  
with the following:


GroupA
GroupB
Control
Control
GroupC
Control
Control
GroupD
Control
Control
GroupE
Control

I then ran this code:

set the layer of group "GroupE" to the layer of group "GroupA" + 1
set the layer of group "GroupD" to the layer of group "GroupA" + 1
set the layer of group "GroupC" to the layer of group "GroupA" + 1
set the layer of group "GroupB" to the layer of group "GroupA" + 1

and ended up with this:

GroupA
GroupB
Control
Control
GroupC
Control
Control
GroupD
Control
Control
GroupE
Control

I can send you an example stack if you wish.

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
[EMAIL PROTECTED]


___
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


Yet another Newbie Question

2007-04-03 Thread Simon HARPER

Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a  
stack - then create version 2 which adds functionality (but probably  
doesn't change the data format) how do I get the stack data from  
version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data Manager  
stack, so now I'm wondering is it 'better' to push all data to disk,  
as say xml or text, then reload it all into an array in the Data  
Manager and then step through the array and perform all other actions  
on the array - if you like - a kind of abstraction? which leads me to  
the question - is there the concept of a record structure as in c/c++  
or is it best to use a 2 dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


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


Re: "New Table Object" (sort of) Problem

2007-04-03 Thread J. Landman Gay

Len Morgan wrote:
I'm trying to create a REAL table object (hopefully reusable), and I'm 
getting close.  What I've done is create a Header group that has 
non-functioning buttons (for right now) that goes across the top.  I 
then created a group of fields that butt up against each other and 
formatted to the same width as the header group.  This group will be one 
row of my table.  I will need as many copies of this group as there are 
rows returned from a query.


I did something similar a few years ago. It does not auto-size; you have 
to know ahead of time how many rows you need. But maybe something in 
there would be useful:




--
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: Changing layers of Objects and Groups

2007-04-03 Thread Trevor DeVore

On Apr 3, 2007, at 9:17 AM, Dave wrote:

Yes please do send the script, I was doing this via the IDE, I'm  
guessing you are doing it in a Script?


I just pasted the commands into the message box.  I've added a button  
with the script in the example stack though.



Also is relayerGroupedControls set to true?


Yes.


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
[EMAIL PROTECTED]


___
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


Sarah, Sean or another time bandit - help needed on dates calcs

2007-04-03 Thread Bryan McCormick

OK,

I have persnickety date issues (thankfully just dates) which I think 
Sarah or Sean  or another time bandit may be able to help with.


Here is the issue. I have a collection of date pairs that look perfectly 
innocent, something like "8/11/2003" to "8/11/2004" for which I need to 
calculate the daysBetween.


No problem right? Sarah's handy dandy (and it is ever so minxy and cool) 
date & items stack to the rescue. Easy peasy.


In part yes since the weekNumISO I am guessing is part of the solution.

Except that the problem is I must:

A) count only weekdays between since this is a "business days" problem 
based on a five day week.


-- easy enough except when the dates span multiple years right?
-- but wait, do I or don't I need to count each instance of a Saturday 
and Sunday over each week between the dates to be totally sure?


B) I have to take account of standard US holiday closings

 -- excluding those that fell on a weekend and thus have to be 
accounted for since they were observed on different days.


C) I need to add in specific dates of the year to exclude from the 
calculation when the business itself was closed other than on holidays.


-- thankfully these at least are known and there is history for them

-- again this looks "ugly" like days themselves will need to be poked 
off the list. as an example, the week of 9/11 in NYC shut down many 
businesses for weeks so those dates need to be excluded on a case by 
case basis


As with my other problems posted to the list, all of the huff and puff 
is before I even get to the analysis part of the job. Oddly that part is 
dead easy by comparison. This date arithmetic is not so easy.


I browsed the list, thought it through, poked around some more, and 
nothing brilliant came to mind other than to ask smarter people.





PS - The archive of the mail list has many wonderful things in it but it 
seems like a treasure trove ignored. It has become in some ways so big 
it is getting hard to walk through it all and threads do not seem to 
cross year bounds so there are many, many instances where same/similar 
posts (perhaps this one even) are done over and over and over.


Has anyone thought of simply reorging this into something that could be 
made into more of a "real" how to build things with Rev product? I would 
think it would help sell the product. Just my dime (2c adjusted for 
inflation since 1970).


___
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


Revcon Las Vegas

2007-04-03 Thread Stephen Barncard

Am I the only one that is not looking forward to a Revcon in Las Vegas?
I personally don't like the glitz and the crowds (and some folks 
do...), but I also got to thinking about the really serious downside 
of living and working in casinos...


the thousands of Tobacco Smokers...  (my apologies to my smoking friends..)

Because of the hotels' tradition of crowd mitigation, we'll have to 
walk through that haze and noise of a casino several times a day just 
to get between our rooms and the conference. It's their way or the 
highway. Cheap rooms to be sure, but at what price?


On the other hand, there's FlyAway...

http://www.flyawayindoorskydiving.com/


--


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: use-revolution Digest, Vol 43, Issue 3

2007-04-03 Thread Fred moyer

 For no apparent reason, the fan on my
Powerbook will turn on. I open Activity Monitor and see that
Revolution is hogging the CPU with 40 - 70% of the CPU. I have no
pendingmessages, no throbbing default buttons, no players.

Whenever this happens I start closing stacks. Inevitably, it is when
I shut a palette that the Activity Monitor goes down to normal. Just
now it was after I closed the "Message Box" that the racing stopped.
Does anyone know about this? Is it a bug? Is there some handler
desperately trying to keep a palette frontmost that is causing the
problem? I don't have a recipe -- it is intermittent.


Seems like you found the cause:  global variables can be updated at  
any
time by any script, so the Variable Watcher posts messages to  
itself to

update periodically so it can show current values.


Sorry, but did you possibly misread what I wrote? Closing the Message  
Box (not the Variable Watcher) brought the cpu back down to normal.  
But I don't know much about the inner workings of Revolution, so  
maybe there's some connection between the Message Box and Variable  
Watcher that I don't know about.


Again, this issue is intermittent. But I've only noticed it with 2.8.  
Sometimes, closeing a palette that I created will slow it down.  
Twice, I think (not sure about this) closing the Application Browser  
slowed things down.


Anyway, has anyone else seen similar issues? I often run Activity  
Monitor while running Revolution and that's why I see these changes.  
Incidentally, the throbbing default button will consistently boost  
cpu use around 15 percentage points, a lot more than other apps with  
throbbing default buttons. (With other apps, I don't see any change  
when a throbbing default button shows up.)


Fred

___
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: Revcon Las Vegas

2007-04-03 Thread Lynn Fredricks
> Am I the only one that is not looking forward to a Revcon in 
> Las Vegas?
> I personally don't like the glitz and the crowds (and some 
> folks do...), but I also got to thinking about the really 
> serious downside of living and working in casinos...
> 
> the thousands of Tobacco Smokers...  (my apologies to my 
> smoking friends..)
> 
> Because of the hotels' tradition of crowd mitigation, we'll 
> have to walk through that haze and noise of a casino several 
> times a day just to get between our rooms and the conference. 
> It's their way or the highway. Cheap rooms to be sure, but at 
> what price?

I know what you mean Stephen. The venue we are looking at (more info coming
in the next few weeks) is VERY non strip/non downtown, yet accessible to the
strip with a short walk.

Best regards,

Lynn Fredricks
Worldwide Business Operations
Runtime Revolution Ltd
http://www.runrev.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: Work around for Beep not working on RunRev 2.7.x+

2007-04-03 Thread J. Landman Gay

Dave wrote:

Hi,

I've just tried it again under Versions 2.6.6.152, 2.7.4.291, 2.8.0..350 
and 2.8.0.370 and it only works in 2.6.6.152,. I am using an Intel Mac, 
but last time I tried, it didn't work on PowerPC either.


I've never had it fail in any version, on any OS, on any hardware -- 
except after using Audacity in OS X, as I mentioned in another thread. 
Did you check the MIDI Setup app to see if the sound output is at the 
right Hz?




--
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: copy protection

2007-04-03 Thread Mark Talluto


On Apr 3, 2007, at 2:34 AM, Viktoras Didziulis wrote:


Exactly. Can somebody share a few tricks to make content on a CD being
unusable after being copied? Its a small niche soft (specialized
biodiversity database and an e-book). Likely there will be no  
attempts to
crack it, however we would like to be able to sell at least 200  
copies of
the CD before illegal copies made by ordinary users start  
circulating around



Is the content going to be played through a Rev based application you  
developed?  If so, you could encrypt the data on the CD.  Decrypt it  
in the Rev app and play it.  The encryption options built into Rev  
are very powerful and will protect your content very well.


The only problem is if the data is video or audio.  They may take up  
too much space to import directly into your app.  You would then have  
to decrypt them to a *secret* place and play them from there.  When  
they are no longer playing you could delete them.  This is where the  
security drops in a big way.  Your protected files are naked so to  
speak for a period of time.  As you said, you audience may not be  
savvy enough to locate the files.  You could name them something very  
random.  There is a function in rev called tempName that would be  
useful in situations like this.


If the media being protected is small enough, you could come up with  
a scheme that keeps everything in memory and plays it from within  
your Rev app.  This would provide the maximum amount of protection.


The best part is that these methods would not take you very long to  
develop.



Key things to look up in the Rev dictionary:

1.  tempName for saving out decrypted data for temp use
2.  encrypt
3.  decrypt
4.  customProperties (if you decide to store protected data inside of  
a Rev stack or App)
5.  deleteFile and/or deleteFolder to get rid of the temporarily  
decrypted data
6.  specialFolderPath to find a good place to store you temp  
decrypted data



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


Re: "New Table Object" (sort of) Problem

2007-04-03 Thread Len Morgan
Well, I'm getting close!  Between locking the size and position and 
setting vScroll to true, I can now create a variable length table that 
will scroll if it get too large.


Next Problem:

How do I remove the groups when I do the next query?  Can I get a list 
of the groups that are within another group?  Something like:


repeat with g in (the groups in group "resultsGroup"
remove group g
end repeat

I realize that the repeat command isn't "legal" but I think you get the 
idea.  I KNOW I've seen a command that will give you the list of fields 
in a group (although I can't seem to find that either) but I want a list 
of groups that are contained within another group.


Thanks again  I'm getting there!

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


Re: [ANN] "Imagedata Toolkit Preview 3" released

2007-04-03 Thread Wilhelm Sanke

On Fri Mar 30, 2007, Sivakatirswami katir at hindu.org wrote:


Aloha, Wilhelm:

Well this is certainly very, very impressive.   It will be interesting
to see how this runs on my new 17 in Intel MacBook Pro...

Only one problem: My photo processing needs are rather "prosaic" as
I'm working in a production environment where I have to take
a lot of incoming Digital camera images and do a simply chore:

1) downsize for web, bicubic (now available by setting the imageQuality
setting
and I've tested and it really works, quality is tops)
2) run auto levels
3) unsharp mask to a prespecified set of values.

I would rarely, if ever use any of the "art" functions of your suite...

Right now I usie  droplets to drive Adobe's ImageReady, but I would really
love to be able to do this from inside revolution. But your interface
is a bit daunting and I'm not sure how I can extract a small subset
of functions from your tool kit to set up a lean automated work flow.

I'll look into the scripts and see if there is any way to ferret out
extraction
of specific routines... but any advice you have before I start hacking
this thing will not doubt be useful.

It certainly is encouraging that this is now even possible (I was going to
start cracking open the docs on Core Image , but not looking forward 
to it)


Sivakatirswami



There are currently 3 versions of "unsharp mask" filters to be found in 
the "Imagedata Toolkits":


A 5x5-matrix filter  in version 2 of the toolkit which I took from 
"photo.net" and ported to Revolution




and two 3x3-matrix filters in version 3 of the toolkit - with some 
changes as of today -


.

I no longer include the group with the 5x5 matrix options in version 3 
because the execution of the filter script takes about 20 seconds (2 GHz 
Windows computer) as there is not yet a suitable dll-external. I would 
be very grateful if anybody is out there who is able to blow up the 
existing 3x3-matrix external to 5x5 according to my proposals.


The two 3x3-matrix unsharp filters (toolkit 3 - newest version of April 
3) can make use of Derek Bump's "convolve.dll", which is included in the 
zip-file. Execution time for 640x480 images is about 180 milliseconds 
and somewhat longer when applied to larger pictures.
I computed the matrix values for the 3x3 filters on the basis of the 5x5 
filter above.


The quality of all 3 unsharp-mask filters is at least as good and 
certainly better than the default setting of the unsharp mask of 
Paintshop Pro, but with Paintshop you can set certain parameters whereas 
with my toolkit you must experiment with the matrix values (this is 
possible) to find other configurations (which you can then save as a 
user-defined filter).


If you want to extract the necessary scripts from the "Imagedata 
Toolkit" you need the following parts:


- convolve.dll
- button "apply Windows DLL (DB)" to launch the DLL or
- button "apply scripted version" not using the dll (execution time 
about 7 seconds) needed for MacOS and other platforms
- button "remove borders 5" to remove the black borders produced by the 
DLL (the script of this correcting button must be slightly changed as it 
is meant for a fixed image size of 640X480, but it is relatively easy to 
adapt  to "any" size).
- then of cause the scripts of buttons "unsharp mask" and "unsharp mask 
2" (hidden) that put the values into the matrix field.


For batch processing it would be advisable to combine these scripts into 
a single or two buttons and especially to remove the intermediate matrix 
field - you could place the matrix values directly into the "apply" buttons.


If you think exploring these unsharp filters is worthwhile and you would 
need any support I would be happy to provide it.


Best 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: Changing layers of Objects and Groups

2007-04-03 Thread Ken Ray
On Tue, 3 Apr 2007 16:48:42 +0100, Dave wrote:

>>> I then try to change the later of "GroupE" so that it is "GroupA", 
>>> but it always ends up in one of the other groups (B,C or D) not in 
>>> GroupA.
>>> 
>>> Any ideas???

Here's a scriptlet that specifically sets a control to be brought to 
the "front" of all other controls in a group; perhaps it would inspire 
a solution:

  http://www.sonsothunder.com/devres/revolution/tips/stk003.htm


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: Yet another Newbie Question

2007-04-03 Thread Stephen Barncard
a data stack using custom properties and property sets is one of the 
best ways to store arrays in Rev (and data in general).


You can also put data inside the data using text lists inside a 
custom property. This of course puts stricter limits on what goes 
into certain places.


key1  data  data2  data3  
key2  data  data2 data3
key3  data  data2  data3

an entire array of datasets can be punched into or retrieved from a 
stack in one line of code. Loop through the arrays in a script to 
copy over, or use the clone command.


lots of ways to accomplish the tasks.

In MacOS X the data could live a stack inside a package, just outside 
the app or a stack in a special folder that is designated in the OS. 
(see specialfolderpath in the docs)


Text files work for certain data situations like listings that need 
to be occasionally manipulated by the user, but have no structure, 
XML is searchable and structured, but bulky - large files. They both 
need to be loaded in from disk.


With custom properties, if you know generally where some of your data 
is, searching can be very fast.  Also access time is very fast, 
almost as fast as variables, because it's all held in ram.





Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a 
stack - then create version 2 which adds functionality (but probably 
doesn't change the data format) how do I get the stack data from 
version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data Manager 
stack, so now I'm wondering is it 'better' to push all data to disk, 
as say xml or text, then reload it all into an array in the Data 
Manager and then step through the array and perform all other 
actions on the array - if you like - a kind of abstraction? which 
leads me to the question - is there the concept of a record 
structure as in c/c++ or is it best to use a 2 dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper


--


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: Revcon Las Vegas

2007-04-03 Thread Richard Gaskin

Stephen Barncard wrote:

Am I the only one that is not looking forward to a Revcon in Las Vegas?
I personally don't like the glitz and the crowds...


Vegas isn't my first choice either, but it has one thing going for it -- 
  it's a short drive from Red Rock Canyon, nearly 200,000 acres of 
desert wilderness:





Mark Weider, Tariel Gogoberidze, and others have expressed an interest 
in a desert campout following the conference.


So in keeping with the tradition of making Yahoo groups for every little 
thing, I've made a new group for planning this adventure:




The group is open to anyone interested in attending.

If you love the desert and can deal with sub-freezing desert nights, 
this should be a good time.


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


dynamically adding links with textStyle, linkText, and an ask dialog

2007-04-03 Thread Curt Ford
In my project I want to let users enter text into a field, then  
highlight some text to add a link; the field contents are then saved  
to a text file to be read in later & displayed with an active link.


This works fine, attached to a button for adding a link:

on mouseUp
  set the textStyle of the selectedText to "link"
  set the linkText of the selectedText to "http://www.google.com";
  put the HTMLText of fld "source" into fld "resultHTML"  --a check  
to see how it looks

end mouseUp

But when I try to let the user enter a link with:

on mouseUp
  ask "Please enter a link:"
  put it into tLink
  set the textStyle of the selectedText to "link"
  set the linkText of the selectedText to tLink
  put the HTMLText of fld "source" into fld "resultHTML"
end mouseUp

..the link ends up following the text that was selected; so if in  
"one two three" the "two" was highlighted, the result is:


one two threefont>


Is there a way I can keep the ask dialog box from interfering with  
the selection?


Curt





Dr. Curtis Ford
Instructor of Russian and Linguistics
Dept of Languages, Literatures and Cultures
University of South Carolina

cford at sc.edu


___
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: Yet another Newbie Question

2007-04-03 Thread Richard Gaskin

Stephen Barncard wrote:
a data stack using custom properties and property sets is one of the 
best ways to store arrays in Rev (and data in general).


You can also put data inside the data using text lists inside a 
custom property. This of course puts stricter limits on what goes 
into certain places.


key1  data  data2  data3  
key2  data  data2 data3
key3  data  data2  data3

an entire array of datasets can be punched into or retrieved from a 
stack in one line of code. Loop through the arrays in a script to 
copy over, or use the clone command.


lots of ways to accomplish the tasks.


Some tips along those lines for using stacks for data storage:



--
 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: "New Table Object" (sort of) Problem

2007-04-03 Thread Devin Asay


On Apr 3, 2007, at 12:02 PM, Len Morgan wrote:

Well, I'm getting close!  Between locking the size and position and  
setting vScroll to true, I can now create a variable length table  
that will scroll if it get too large.


Next Problem:

How do I remove the groups when I do the next query?  Can I get a  
list of the groups that are within another group?  Something like:


repeat with g in (the groups in group "resultsGroup"
remove group g
end repeat

I realize that the repeat command isn't "legal" but I think you get  
the idea.  I KNOW I've seen a command that will give you the list  
of fields in a group (although I can't seem to find that either)  
but I want a list of groups that are contained within another group.


You can check the number of controls in a group. Since the name of  
the control contains the type of object it is you could do something  
like this:


repeat with i = the number of controls in group "resultsGroup" down to 1
  if the name of control i of group "resultsGroup" contains "group"  
then

remove control i of group "resultsGroup"
  end if
end repeat

I would start at the top and increment downward, since removing  
controls from the group will throw off the count if you count upward.


HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: dynamically adding links with textStyle, linkText, and an ask dialog

2007-04-03 Thread Devin Asay


On Apr 3, 2007, at 1:46 PM, Curt Ford wrote:

In my project I want to let users enter text into a field, then  
highlight some text to add a link; the field contents are then  
saved to a text file to be read in later & displayed with an active  
link.


This works fine, attached to a button for adding a link:

on mouseUp
  set the textStyle of the selectedText to "link"
  set the linkText of the selectedText to "http://www.google.com";
  put the HTMLText of fld "source" into fld "resultHTML"  --a check  
to see how it looks

end mouseUp

But when I try to let the user enter a link with:

on mouseUp
  ask "Please enter a link:"
  put it into tLink
  set the textStyle of the selectedText to "link"
  set the linkText of the selectedText to tLink
  put the HTMLText of fld "source" into fld "resultHTML"
end mouseUp

..the link ends up following the text that was selected; so if in  
"one two three" the "two" was highlighted, the result is:


one two threefont>


Is there a way I can keep the ask dialog box from interfering with  
the selection?


Curt,

The ask dialog will change the selection, so the best approach may be  
to save the selectedChunk information in a variable while you do the  
ask dialog, then restore it after the dialog is dismissed.


put the selectedChunk into tSelChunk
ask "Please enter a link:"
put it into tLink
select tSelChunk -- or whatever the precise syntax would be
-- do the rest of your business here.

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Loading Enterprise on a PC...

2007-04-03 Thread Jim Carwardine
Hi Folks... I just downloaded Enterprise to my PC Parallels window.  Then I
copied a stack to the Parallels Shared folder.  When I try and open it on
the PC side, I can see the stack sitting in the shared folder, but I can't
double click it and open it in Rev.  I can't see it if I choose File/Open
from inside Rev... Is there something I've missed?  Jim
-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns


Own Your Future Consulting,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139





___
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: Loading Enterprise on a PC...

2007-04-03 Thread Martin Baxter

Jim Carwardine wrote:

Hi Folks... I just downloaded Enterprise to my PC Parallels window.  Then I
copied a stack to the Parallels Shared folder.  When I try and open it on
the PC side, I can see the stack sitting in the shared folder, but I can't
double click it and open it in Rev.  I can't see it if I choose File/Open
from inside Rev... Is there something I've missed?  Jim


does the stack's filename end with .rev ?

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: use-revolution Digest, Vol 43, Issue 3

2007-04-03 Thread Richard Gaskin

Fred moyer wrote:

Seems like you found the cause:  global variables can be updated at  
any
time by any script, so the Variable Watcher posts messages to  
itself to

update periodically so it can show current values.


Sorry, but did you possibly misread what I wrote? Closing the Message  
Box (not the Variable Watcher) brought the cpu back down to normal.  
But I don't know much about the inner workings of Revolution, so  
maybe there's some connection between the Message Box and Variable  
Watcher that I don't know about.


Again, this issue is intermittent. But I've only noticed it with 2.8.  
Sometimes, closeing a palette that I created will slow it down.  
Twice, I think (not sure about this) closing the Application Browser  
slowed things down.


The Message Box contains panes which display pending messages, global 
vars, and more.


But I'm not sure that's the root cause now, at least not by itself. 
I've left Rev open a while in the background with the Message Box open, 
and it never uses more than about 2-5% of CPU time.


Any plugins running in your installation?

--
 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: Question (more or less) about arrays

2007-04-03 Thread Björnke von Gierke
how should an array behave in an xtalk language? In my opinion it 
should try to anticipate the use people would want of it, as well as 
behaving the same every time (consistence). With that in mind, I would 
let an array accessed trough "put myArray" return the same as when one 
would do this:

combine myArray using (the linedelimiter) and (the itemdelimiter)
put myArray
split myArray using (the linedelimiter) and (the itemdelimiter)

So an array would basically give it's content, but remain an array. 
This of course would allow to get the myCustompropertyset of an object 
the same way.


If one want's to test whether something is an array one would need to 
do the same as today, namely test whether the keys of myArray is empty.


Maybe an addition to the "is a" for arrays would be nice too? And while 
we're at it where are the "is among the keys" and "is among the 
elements" tests?


Arrays are fun to improve :)
Björnke


On 03 Apr 2007, at 17:50, Dave wrote:



On 3 Apr 2007, at 16:52, jbv wrote:




Richard Gaskin a *crit :



One option is to return the same thing as when using "the keys of 
var",

IOW the list of the keys of the array...


How would one distinguish between an array and a non-array which
contains any return-delimited list?


Well, actually, my problem was to detect if a var was empty or not, no
matter if it was an array or a regular variable.
At least my proposition solves my original problem.

As for your question, may be could there be a command named "the 
arrayNames"

that would list the variables containing arrays ?
Therefore we could use some simple test such as :
if my var is not empty and my var is among the arrayNames

I'm sure someone will come up with a better idea...


Maybe it would be better to just add a "type" function?

e.g. Something like:

if revType(myVar) = "Array" then
.


All the Best
Dave


--

official ChatRev page:
http://chatrev.bjoernke.com

Chat with other RunRev developers:
go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev";


___
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: Loading Enterprise on a PC...

2007-04-03 Thread Jim Carwardine
No it didn't... Thanks, Martin... Jim


on 4/3/07 6:13 PM, Martin Baxter wrote:

> Jim Carwardine wrote:
>> Hi Folks... I just downloaded Enterprise to my PC Parallels window.  Then I
>> copied a stack to the Parallels Shared folder.  When I try and open it on
>> the PC side, I can see the stack sitting in the shared folder, but I can't
>> double click it and open it in Rev.  I can't see it if I choose File/Open
>> from inside Rev... Is there something I've missed?  Jim
> 
> does the stack's filename end with .rev ?
> 
> 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

-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns


Own Your Future Consulting,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139





___
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: Loading Enterprise on a PC...

2007-04-03 Thread Jim Carwardine
Should have tried it first... I put the .rev on the end of my file name and
the system recognized it as a rev file but got this message when I tried to
open it both from inside rev and by double clicking on the file...

Revolution Engine for Win32 has encountered a problem
and needs to close.  We are sorry for the inconvenience.

Any ideas?  Jim


on 4/3/07 10:04 PM, Jim Carwardine wrote:

> No it didn't... Thanks, Martin... Jim
> 
> 
> on 4/3/07 6:13 PM, Martin Baxter wrote:
> 
>> Jim Carwardine wrote:
>>> Hi Folks... I just downloaded Enterprise to my PC Parallels window.  Then I
>>> copied a stack to the Parallels Shared folder.  When I try and open it on
>>> the PC side, I can see the stack sitting in the shared folder, but I can't
>>> double click it and open it in Rev.  I can't see it if I choose File/Open
>>> from inside Rev... Is there something I've missed?  Jim
>> 
>> does the stack's filename end with .rev ?
>> 
>> 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

-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns


Own Your Future Consulting,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139





___
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: Revcon Las Vegas

2007-04-03 Thread Jim Ault
I agree about the smoking hazards in the casinos.
I only go in to a casino to see a show or eat at a restaurant, which is
about 6 times a year.

There are several places that are not like the big casino and are not
smoke-filled and crowded.  My preference is to be away from the strip and at
a place that does not even have gambling, but does have competitive rates
and good service.  The Tuscany hotel comes to mind, although there is some
gaming, it is more of a get-away.

Jim Ault
Las Vegas


On 4/3/07 10:28 AM, "Stephen Barncard" <[EMAIL PROTECTED]>
wrote:

> Am I the only one that is not looking forward to a Revcon in Las Vegas?
> I personally don't like the glitz and the crowds (and some folks
> do...), but I also got to thinking about the really serious downside
> of living and working in casinos...
> 
> the thousands of Tobacco Smokers...  (my apologies to my smoking friends..)
> 
> Because of the hotels' tradition of crowd mitigation, we'll have to
> walk through that haze and noise of a casino several times a day just
> to get between our rooms and the conference. It's their way or the
> highway. Cheap rooms to be sure, but at what price?
> 
> On the other hand, there's FlyAway...
> 
> http://www.flyawayindoorskydiving.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


revPrintText/pageHeights broken in v2.8?

2007-04-03 Thread Richard Gaskin


It seems that there may be a problem with the pageHeights property in 
v2.8.  I'm still pinning down the source of the problem, but have any of 
you found that revPrintText is printing with some lines missing between 
pages?


If so, can you verify that this worked correctly in earlier versions?

Do any of your own print routines which rely on the pageHeights property 
work well in v2.8?


--
 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: Revcon Las Vegas

2007-04-03 Thread Stephen Barncard


It would be great to have lodging and conference in the same building 
somehow...get-away is good...



and good service.  The Tuscany hotel comes to mind, although there is some
gaming, it is more of a get-away.

Jim Ault
Las Vegas



--


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: Revcon Las Vegas

2007-04-03 Thread Jim Sims


On Apr 4, 2007, at 4:31 AM, Stephen Barncard wrote:

It would be great to have lodging and conference in the same  
building somehow


When planning the EuroRevCon we made this a must. The hotel usually  
likes this
as they can add items to the package but on the other hand it gave us  
bargaining
power when negotiating with all the hotels. We were able to get free  
conference
facilities and low cost buffet lunches right in the conference room.  
To plan such

an event well one must deal with many details.

These events are about meeting people and learning things - not  
traveling to/from

 hotel/conference.

ciao,
sims



___
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: find and replace

2007-04-03 Thread Jan Schenkel
--- Lars Brehmer <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I am trying to duplicate the find and replace tool
> in the rev IDE in  
> a button script.  I have a large project in macOSX
> that needs a few  
> dozen little tweeks when I make a Windows
> standalone.  I put these  
> all into a button so when I make a new Windows
> standalone just one  
> click gives me all the little changes.  The one
> thing I haven't  
> succeeded in is a single word that appears in about
> 20 button and  
> stack scripts. It seems that "visualEffect reval"
> needs to be  
> "visualEffect wipe" to get the same result in
> Windows.  So for now I  
> just do a find and replace with the "scripts" box
> checked, but it  
> would be nice to include this in my tweek button in
> order to doo all  
> tweeks without opening Rev. I assume it's just a
> question of getting  
> the syntax correct for:
> 
> replace "reveal" with "wipe" in this stack and its
> stack files --  
> using the find and replace tool with scripts checked
> 
> What should it be?
> 
> Cheers,
> 
> Lars
> 

Hi Lars,

You'd have to go through all the cards, then through
all the controls on that card, to get the script,
replace reveal with wipe, and then set the script of
the control again.

##
on mouseUp
  put the number of cards into tNumCards
  repeat with i = 1 to tNumCards
go card i
put the number of controls into tNumControls
repeat with j = 1 to tNumControls
  get the script of control j
  replace "reveal" with "wipe" in it
  set the script of control j to it
end repeat
  end repeat
  answer "Done!"
end mouseUp
##

Wouldn't it be easier if you kept the transition
separate in a custom handler that you could call from
other places?

##
on MyVisualEffect pEffect
  switch pEffect
  case "wipe"
  case "reveal"
if the platform is "MacOS" then
  visual effect wipe
else
  visual effect reveal
end if
break
  default
do ("visual effect && pEffect)
break
  end switch
end MyVisualEffect
##

That way you can centralize this sort of
platform-specific modifications.

Hope this helped,

Jan Schenkel.

Quartam Reports for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
___
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