Re: Lists in Transcript

2005-05-23 Thread Dom
Andre Garzia <[EMAIL PROTECTED]> wrote:

> function list
>local tList
>repeat with x = 1 to paramcount()
>  put param(x) & cr after tList
>end repeat
>delete char -1 of tList
>return tList
> end list
> 
> on demoList pPrefix, pList
>repeat with x = 1 to the number of lines in pList
>  put pPrefix && line x of pList & cr after tBuffer
>end repeat
>put tBuffer
> end demoList

compiling at 8:12:03 AM
TypeChunk: can't create a variable with that name
(explicitVariables?)
Object  card id 1002
Lineput pPrefix && line x of pList & cr after tBuffer
HinttBuffer

The same error when I place all the scripts in a button...

-- 
Revolutionario

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Ruslan Zasukhin
On 5/24/05 1:38 AM, "Robert Brenstein" <[EMAIL PROTECTED]> wrote:

>> Sending of many parameters is not equivalent
>> 
>> Because if you have list
>>
>> v = [v1, v2, ... ]
>> 
>> This is an object, like array you have.
>> You can use it many times, you can modify it and so on.
>> 
> 
> Ruslan, I don't know much Lingo but I think any variable in
> Transcript can be used as a list similar function-wise to linear
> lists in Lingo. There is just not explicit notation for it. In a way,
> Transcript vars are more flexible as any variable can hold either a
> single value or a list and we can define the list delimiter character.

 
> Lingo
> 
> v = [3, 4, 1] --> 3, 4, 1
> v.add(2) --> 3, 4, 1, 2
> put (v.count) --> 4
> getPos(v,4) --> 2
> v.sort --> 1, 2, 3, 4
> 
> Transcript
> 
> put "3, 4, 1" into v --> 3, 4, 1
> put ", 2" after v  --> 3, 4, 1, 2
> put the number of items of v --> 4
> itemOffset(4,v) --> 2
> sort items of v --> 1, 2, 3, 4
> 
> Or are you talking about something else?

But this is pure work with strings, Robert.

Well, I think Revolutioners are used to work with strings.
Just for me as C++ developer this looks too overhead.

But I see now that Transcript have many special commands to work with
strings as with lists. And coma is default delimiter as I see.

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Scripting Conferences - stack available

2005-05-23 Thread J. Landman Gay
The stack for our next scripting conference, "Controls", is now 
available for download at:




Our author, Klaus Major, has provided an extensive explanation of 
Revolution's various controls and how to use them. There is a lot of 
information here, replete with examples and working scripts, all in 
Klaus' inimitable style.


For more information on these free scripting conferences, their dates 
and times, and how to sign on, see the above web page.


We'll look for you there!

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: go stack url

2005-05-23 Thread Jan Schenkel
--- Ross Hansen <[EMAIL PROTECTED]> wrote:
> Hello, I am new to revolution and from the
> discussion archive, i saw that it's possible to run
> revolution stack on remote server by typing go stack
> url http://www.myserver.com/stack/test.rev into the
> message box.  that's what i did, but  the reply in
> the message box was "no such card".  Is there
> anything more i need to know or do other than just
> uploading the test.rev stack to the stack directory
> of myserver.com and then typing in the go stack url
> into the message box?  Please help.   I am using the
> trial version of revolution 2.5.1 on winXP.  Thank
> you.
>  
> Ross Hansen
> 

Hi Ross,

Have you tried putting quotes around the URL ?
--
go stack url "http://www.myserver.com/stack/test.rev";
--

Hope this helped,

Jan Schenkel.

Quartam - Tools for Revolution


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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


go stack url

2005-05-23 Thread Ross Hansen
Hello, I am new to revolution and from the discussion archive, i saw that it's 
possible to run revolution stack on remote server by typing go stack url 
http://www.myserver.com/stack/test.rev into the message box.  that's what i 
did, but  the reply in the message box was "no such card".  Is there anything 
more i need to know or do other than just uploading the test.rev stack to the 
stack directory of myserver.com and then typing in the go stack url into the 
message box?  Please help.   I am using the trial version of revolution 2.5.1 
on winXP.  Thank you.
 
Ross Hansen


-
Do You Yahoo!?
 Yahoo! Small Business - Try our new Resources site!
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


TAOO's latest screenshot

2005-05-23 Thread MisterX
Hi everyone,
 
I just posted a new screenshot of TAOO... Despite the anomalies and it being
a PC screenshot, im sure you'll find it appetizing...
 
http://www.monsieurx.com/modules.php?name=News

&file=article&sid=186
 
Any questions? 
 
cheers
Xavier
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Andre Garzia


On May 23, 2005, at 11:04 PM, Mark Wieder wrote:


I'm astounded to find that "list" isn't a reserved word...

meanwhile, that's a very cute function. I may have to steal it (and
rename it, of course... I'm way too scared to call something list).


imagine me, when I pushed apply and it worked? I though maybe I can 
redefine "add" and "put" too :D


steal it, if you make a better one, share! :D in doubt call it lst or 
cons (if you're nostalgic of old parenthesis jungle)


cheers
andre


--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Mark Wieder
Richard-

Monday, May 23, 2005, 12:35:45 PM, you wrote:

RG> Several years ago I predicted here that Apple will migrate to a 
RG> two-button mouse, and that it would be in Apple's interest to stop
RG> relying on phone-distracted Motorola and move to chip-dedicated Intel.

So... any idea when the Cubs will win the series?

-- 
-Mark Wieder
 [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Mark Wieder
Andre-

Monday, May 23, 2005, 2:45:06 PM, you wrote:

AG> I have a silly function here that uses a paramcount() loop and put the
AG> param()s into a CR delim list. this function is called list(), when I
AG> need to pass a list to a function, I make that function work with a
AG> param pList that will be a cr delim chunk and call it by nesting 
AG> functions like this example, it's a silly func, but I like it (put this
AG> inside a button):

AG> on mouseUp
AG>demolist "Item:", list("a", "b", "c", "d", "e")
AG> end mouseUp

AG> function list
AG>local tList
AG>repeat with x = 1 to paramcount()
AG>  put param(x) & cr after tList
AG>end repeat
AG>delete char -1 of tList
AG>return tList
AG> end list

I'm astounded to find that "list" isn't a reserved word...

meanwhile, that's a very cute function. I may have to steal it (and
rename it, of course... I'm way too scared to call something list).

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Could this list be a forum/bulletin board?

2005-05-23 Thread Howard Bornstein
On 5/23/05, Dan Shafer <[EMAIL PROTECTED]> wrote:
> Howard.
> 
> I thought I was the only one experiencing this problem. I've posted
> messages on two or three OS X message boards and haven't had a single
> reaction or response.
> 
> Threads seem to collect unrelated messages more or less at random.

Yes exactly. And it's not fixed in Tiger.

> 
> But it's still better for me than the old way.

Not for me. Fortunately, GoogleMail works great for this.

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: A good book on Applescript?

2005-05-23 Thread Alan Golub
AppleScript: The Missing Manual is actually quite good. It was written by a
high school senior, which initially put me off, but the author made me
regret that reluctance. This book holds up well with other in the MM series
from Pogue/O'Reilly. It is clear, definitely for the beginner, and gives an
excellent foundation for the fledgling AS developer. It's also available on
Amazon for under $20, which makes it a bargain to boot!  ;)

For the record, I also took a look at AppleScript: A Comprehensive Guide to
Scripting and Automation on Mac OS X by Hanaan Rosenthal. This one was
definitely geared to the more experienced developer, and wasted no time
getting to some pretty sophisticated scripting. In the end, it was too much
too soon for me, and I shelved it for the Missing Manual book. I haven't
regretted it, and may come back to the Rosenthal book after working my way
through the MM.

Best of luck finding what works for you.

Alan Golub


On 5/23/05 4:42 PM, "Kurt Kaufman" <[EMAIL PROTECTED]> wrote:

> Try "Applescript, a Definitive Guide" by Matt Neuburg (O'Reilly, 2004).
>   Many of the older available AS books are geared towards Applescript as
> it functions in Mac OS 9.
> 
> I know that there are at least 2 other recent Applescript books, but I
> have not seen them yet:
> "AppleScript: The Missing Manual"  by Adam Goldstein
> "AppleScript 1-2-3" by Sal Soghoian
> 
> HTH, Kurt
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Robert Brenstein

Sending of many parameters is not equivalent

Because if you have list
   
v = [v1, v2, ... ]


This is an object, like array you have.
You can use it many times, you can modify it and so on.



Ruslan, I don't know much Lingo but I think any variable in 
Transcript can be used as a list similar function-wise to linear 
lists in Lingo. There is just not explicit notation for it. In a way, 
Transcript vars are more flexible as any variable can hold either a 
single value or a list and we can define the list delimiter character.


Lingo

v = [3, 4, 1] --> 3, 4, 1
v.add(2) --> 3, 4, 1, 2
put (v.count) --> 4
getPos(v,4) --> 2
v.sort --> 1, 2, 3, 4

Transcript

put "3, 4, 1" into v --> 3, 4, 1
put ", 2" after v  --> 3, 4, 1, 2
put the number of items of v --> 4
itemOffset(4,v) --> 2
sort items of v --> 1, 2, 3, 4

Or are you talking about something else?

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Brian Yennie

Ruslan, All,


I wonder, is it good idea add to Transcript lists as they exists
In Macromedia Director, WebSiphon, ...

func( var1, [v1, v2, "ffsdg", 4.52]  )


This makes me think a similar thing. For the example above, it has been 
suggested:


func( var1, "v1, v2, ffsdg, 4.52")

This almost does the same as a list, because you can easily say 
something like:


function func pVal, pList
   put item 1 of pList into x ## 'v1'
   put item 3 of pList into x ## 'ffsdg'
end func

This is what Rev programmers are used to using- "items".

However, there are two things I wish we could do:

1) Create multi-dimensional values / arrays. We have single key, 
associative arrays. They are handy no doubt, but limited. In the 
example of lists, embedded lists can only be "faked" using strings and 
tricky formatting.


2) Embed variable values in strings. For example, in PHP I can say:

$animal = 'dog';
$color = 'black';
$message = "My $animal is $color and costs \$5"; ## "My dog is black 
and costs $5"


In Transcript, I am forced to ALWAYS use concatenation operators, and a 
lot of "&" and "&&" can get pretty messy.

For example:

put (var1&comma&var2&comma&"some text"&comma&"4.52") into myValues

Would be a lot easier if I could say something natively like:

put "dog" into animal
put "black" into color
put "My @animal is @color and his email is @[EMAIL PROTECTED]" into 
myValues

## "My dog is black and his email is [EMAIL PROTECTED]"

For a language where text chunking syntax is unparalleled, it sure is a 
pain to concatenate. Heck, the above could probably be implemented 
using some sort of pre-processor on the script editor. Another thing 
which I would like to see - if there was a standard API for 
preprocessing scripts prior to compilation, then the language could 
actually be extended outside of the engine by 3rd parties. For example, 
the above syntax for concatenating could be supported by a preprocessor 
which simply (pseudo-code):


FOR EACH string literal
REPLACE @xxx with ("&xxx&")
REPLACE "\@" with "@"

There is a format() function, but come on, a function call? New users 
or converts are unlikely to find it or understand why it's not native.




Very compact form of notation.

And IMHO fit into ideology of Revolution.


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "convert" questions

2005-05-23 Thread Bill
I did it a second time after quiting and restarting RunRev and this time it
made the Okb file and also a blank error message window came up.


On 5/23/05 10:55 AM, "Trevor DeVore" <[EMAIL PROTECTED]> wrote:

>>> Is it possible to send variables between RR and a SWF file?
>>> 
>> 
>> Sorry, no idea.
> 
> Yes you can.  Since SWF is playing through QuickTime you can use my
> EnhancedQT external at
>  to
> process FSCommand events.
> 
> The beta version of the external supports FSCommand processing.  Your
> player object will receive a message whenever a FSCommand is sent
> from your SWF movie.  As Klaus mentioned, only version <= 5 though.
> 
>>> Has anybody used LiveStage to produce animations for import into RR?
>>> 
>> 
>> Livestage output MOV files, but not all interactivity will be
>> accesible within Rev...
>> 
>> Any comments, Trevor? ;-)
> 
> I incorporate LiveStage content all of the time.  I've used it for
> incorporating Axel 3D content, interactive movies that use intermovie
> communication, etc.  If you use the external I mentioned above you
> can also communicate between QuickTime movies and Revolution using
> Movie Variables and QTLists.  You can also simulate mouse clicks on
> sprites.
> 

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Andre Garzia


On May 23, 2005, at 6:56 PM, Ruslan Zasukhin wrote:



This is an object, like array you have.
You can use it many times, you can modify it and so on.



Yes, you're of course right. One can modify the list() function and 
also create other helper functions so that he could add a list like 
datatype. I used to do this kind of thing out of lisp nostalgic 
feeling. if you put the result of list() into a chunk, you have a 
"object" and you can modify it...


not to mix this list() function with a real list rev implementation. I 
built this list() cantrip because "i am a lazy coder" sometimes, I 
usually am not in the mood to write all the lines needed to put a given 
number of items in a cr delim list, so that list() got two objectives:


	(a) make me write less. I usually say I hate coding, so I only write 
the lines I really need. :D
	(b) make my code more readable, it's easy to understand what's going 
on in the program when you see list("blue", "red", "yellow").


This function does not add any "new feature" or paradigm to Rev, it's 
simply a time saver. Now if you want a true list object, you can use 
chunks, then implement all the basic ops like add, remove, count and 
stuff. Having nice datatypes and using them wiselly is the real time 
saver.


Cheers
andre



--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Dar Scott


On May 23, 2005, at 3:56 PM, Ruslan Zasukhin wrote:


Sending of many parameters is not equivalent

Because if you have list

v = [v1, v2, ... ]

This is an object, like array you have.
You can use it many times, you can modify it and so on.


It is not equivalent.  But it is an option in designing the interface 
to func().


The natural aggregations in Transcript are words, items, lines and 
arrays.  I build up my own, but those are what folks would expect, so 
unless your aggregate is opaque, you might want to use these if you 
can.


Words and items build nicely:

   func( var1, (v1 && v2 && "ffsdg" && 4.52) )
   func( var1, (v1, v2, "ffsdg", 4.52) )

Or, using Andre's list for lines:

   func( var1, list(v1, v2, "ffsdg", 4.52)

Or your custom aggregation:

   func( var1, rz(v1, v2, "ffsdg", 4.52) )

However, you can always expand the function so that if there are extra 
parameters (or the first doesn't look like your aggregate), then the 
building is automatic:


   func( var1, v1, v2, "ffsdg", 4.52)

In this case, use paramCount() and param() to pick up args 2 up and 
build something.


Even for words and items you still might want to use a function because 
numberFormat is applied in the creation of words, items and (as it 
stands) lines in the above examples.  For example, Andre's list example 
can be enhanced to include a big numberFormat or other formatting so 
info is not lost for numbers.  Number info is not lost in array 
elements.


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
A sponsor of RevCon West '05
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Dar Scott


On May 23, 2005, at 3:45 PM, Andre Garzia wrote:

I have a silly function here that uses a paramcount() loop and put the 
param()s into a CR delim list.


Excellent example of paramCount() and param()!

Anybody know which is faster ?

  delete char -1 of t
  return t

or

  return char 1 to -2 of t

I think the first is slightly clearer, especially since the delete line 
conceptually goes with the loop before it.


Dar


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Ruslan Zasukhin
On 5/24/05 12:05 AM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

>>> I wonder, is it good idea add to Transcript lists as they exists
>>> In Macromedia Director, WebSiphon, ...
>>> 
>>> func( var1, [v1, v2, "ffsdg", 4.52]  )
> 
> don't know if this qualify as a solution but you can always pass an
> arbitrary number of parameters to a function then use paramCount() and
> Param() to work with them... every function of mine that needs list
> like params end up with one of these.
> 
> PS: also using arbitrary params (with care) is very revolution-esque

Sending of many parameters is not equivalent

Because if you have list

v = [v1, v2, ... ]

This is an object, like array you have.
You can use it many times, you can modify it and so on.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Andre Garzia


On May 23, 2005, at 6:23 PM, Dar Scott wrote:

As you might infer from Andre's comment, you would want to avoid 
params() in most cases.  This particular case might be the exception.


Also, to build a comma'd list to be a parameter, put parentheses 
around it.


Dar


I have a silly function here that uses a paramcount() loop and put the 
param()s into a CR delim list. this function is called list(), when I 
need to pass a list to a function, I make that function work with a 
param pList that will be a cr delim chunk and call it by nesting 
functions like this example, it's a silly func, but I like it (put this 
inside a button):


on mouseUp
  demolist "Item:", list("a", "b", "c", "d", "e")
end mouseUp

function list
  local tList
  repeat with x = 1 to paramcount()
put param(x) & cr after tList
  end repeat
  delete char -1 of tList
  return tList
end list

on demoList pPrefix, pList
  repeat with x = 1 to the number of lines in pList
put pPrefix && line x of pList & cr after tBuffer
  end repeat
  put tBuffer
end demoList

on cheers
andre
end cheers




--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Dar Scott


On May 23, 2005, at 3:05 PM, Andre Garzia wrote:

don't know if this qualify as a solution but you can always pass an 
arbitrary number of parameters to a function then use paramCount() and 
Param() to work with them...


As you might infer from Andre's comment, you would want to avoid 
params() in most cases.  This particular case might be the exception.


Also, to build a comma'd list to be a parameter, put parentheses around 
it.


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Basic "Answer" question. How does it work?

2005-05-23 Thread Dar Scott


On May 23, 2005, at 2:19 PM, Chipp Walters wrote:


answer "Remove the file?" with "No" or "Yes"
if it is "No" then exit to top


Also, take out the 'else'.

dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
A sponsor of RevCon West '05
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Dar Scott


On May 23, 2005, at 2:18 PM, Richard Gaskin wrote:



But, except for some of us who tinker at a very low level, I don't 
see how using Intel chips affects multi-platform consistency.


I would imagine some externals could then be compiled only for x86, no?


I would think not.  Even if the the intel chips include the CPU.  I 
don't know if Linux applications can use Windows DLLs, even if they do 
not make system calls.  In general they would not.  The ABI could very 
well be very different for OS X using an x86 processor.  Even then, I 
expect the cut over would be at 64-bit processors and Intel encourages 
a very different calling convention for those.


Maybe the byte-order for some things like "wide characters" will be the 
same, but that may do little more than create a snobishness of the 
"right order".


Maybe PC emulators will then run faster on OS X.  (And maybe mac 
emulators)


There might be a few free bsd x86 utilities that take less work to 
modify for OS X under those circumstances.  Maybe.


OK.  How about this:  Some externals with a strong processor dependent 
part such as assembler would port with only the wrapper being OS 
dependent.


Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Andre Garzia


On May 23, 2005, at 5:59 PM, Ken Ray wrote:




Hi All,

I wonder, is it good idea add to Transcript lists as they exists
In Macromedia Director, WebSiphon, ...

func( var1, [v1, v2, "ffsdg", 4.52]  )


don't know if this qualify as a solution but you can always pass an 
arbitrary number of parameters to a function then use paramCount() and 
Param() to work with them... every function of mine that needs list 
like params end up with one of these.


PS: also using arbitrary params (with care) is very revolution-esque

Andre

--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lists in Transcript

2005-05-23 Thread Ken Ray
On 5/23/05 3:46 PM, "Ruslan Zasukhin" <[EMAIL PROTECTED]> wrote:

> Hi All,
> 
> I wonder, is it good idea add to Transcript lists as they exists
> In Macromedia Director, WebSiphon, ...
> 
> func( var1, [v1, v2, "ffsdg", 4.52]  )

Couldn't this be done as:

func( var1, "v1, v2, ffsdg, 4.52")

and then just parse the second parameter, getting "item" whatever of what
you need?

> Very compact form of notation.
> 
> And IMHO fit into ideology of Revolution.

We've had discussions here about that, and some of us agree that some kind
of array notation would be a good addition to Rev; although most of our
talks were centered on multi-dimensional arrays, it could still be useful to
pass a list (or a list of lists).

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Eric Chatonet

Hi Klaus, Dave and others :-)

For cross-platform GUI dedicated to seniors I created many times  
custom transparent buttons with 3 icons: normal, armed and hilited,  
and a field that overlaps the button to display text (with a big font).
I grouped the button and set proper handlers in the group script to  
trap the mouse events.
In addition, some automatic font adjustments using profiles made the  
cross-platform job.

Requires some work but works perfectly...

Just my two cents.

PS. As for wanting a "standard" button with an icon and text in the  
middle overlapping the icon, I never saw any button of this kind in  
any app following the guide lines on any platform ;-)

But may be I don't understand correctly. re ;-)

Best regards from Paris,

Eric Chatonet.

Le 23 mai 05 à 21:57, Klaus Major a écrit :


Hi Dave,



...
I had a similar problem with your script as Klaus.
In my case, the icon's image size and the button size are the same.
This is what I've found so far...

On Windows (XP), if you keep the difference between the topMargin  
and the bottomMargin the same as the textSize, the icon will  
appear properly. And the value of the bottomMargin can be used to  
position the text. So for example, with a button sized 100 x 30,  
and a textSize of 14, setting margins to 0,20,0,6 is about right.  
On the same button, but with a textSize set at 12, margins of  
0,19,0,7 work well. The font used and the textHeight don't seem to  
matter.
But on OS X, it seems the difference between the topMargin and  
bottomMargin has to be 2 pixels more than the textSize (but I  
think this difference may vary for different textSizes). For  
example, with the same button and icon (100 x 30), with the  
textSize at 14, margins of 0,22,0,6 works. With a textSize of 12,  
margins of 0,20,0,6 work.




thanks for the hints, will surely try this out!



So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Lists in Transcript

2005-05-23 Thread Ruslan Zasukhin
Hi All,

I wonder, is it good idea add to Transcript lists as they exists
In Macromedia Director, WebSiphon, ...

func( var1, [v1, v2, "ffsdg", 4.52]  )


Very compact form of notation.

And IMHO fit into ideology of Revolution.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


OT: A good book on Applescript?

2005-05-23 Thread Kurt Kaufman
Try "Applescript, a Definitive Guide" by Matt Neuburg (O'Reilly, 2004). 
 Many of the older available AS books are geared towards Applescript as 
it functions in Mac OS 9.


I know that there are at least 2 other recent Applescript books, but I 
have not seen them yet:

"AppleScript: The Missing Manual"  by Adam Goldstein
"AppleScript 1-2-3" by Sal Soghoian

HTH, Kurt

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Basic "Answer" question. How does it work?

2005-05-23 Thread Bob Hartley

At 21:19 23/05/2005, you wrote:

Hi Chipp


answer "Remove the file?" with "No" or "Yes"
if it is "No" then exit to top



I tried No and Yes and lots of things (I didn't add to the original mail 
for brevity) BUT I didnae put the commas around it. :-)


Adding them done the trick.THese past three or four days have taught me a lot.

Thanks
Bob



Bob Hartley wrote:

  answer "Are you sure your want to overwrite the data? This cannot be 
undone." with "Yes" or "No"

  if it is empty then exit to top

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Hell freezes over, pigs fly

2005-05-23 Thread Kurt Kaufman



A Two-Button Apple Mouse


Many people, including myself, have been using a 2-button/scroll-wheel 
equipped mouse (albeit not an Apple-branded one, obviously) for years, 
so I guess Apple decided they'd like to tap into that market


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Jan Schenkel
--- Scott Rossi <[EMAIL PROTECTED]> wrote:
> Recently, Ken Ray  wrote:
>  
> > If at first you don't succeed...
> 
> ...destroy all evidence that you tried.
> 

Now you have me pondering how I can use this knowledge
in time for the evaluation talk tomorrow afternoon ;-)

Jan Schenkel.

Quartam - Tools for Revolution


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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Basic "Answer" question. How does it work?

2005-05-23 Thread Judy Perry
Did you try

if it is "No"?

Judy

On Mon, 23 May 2005, Bob Hartley wrote:

> Hi All
>
> I want to have the user prompted with a dialogue box to make sure they are
> really wanting to overwrite a file.
>
> I have created an answer script (a standard one) but I dont know how to get
> it to do something.
>
> I have
>
> on mouseUp
>answer "Are you sure your want to overwrite the data? This cannot be
> undone." with "Yes" or "No"
>if it is empty then exit to top
>-- now this line above is the bit I have wrong I'm sure
>-- I tried if it is no then exit to top
>else
>repeat with thisRecord = 1 to the number of cards
>  put field "field1" of card thisRecord & comma \\
>  & field "field2" of card thisRecord & comma \\
>  & field "field3" of card thisRecord & comma \\
>  & field "field4" of card thisRecord & comma \\
>  & field "field5" of card thisRecord & comma \\
>  & field "field6" of card thisRecord & return after dataToExport
>end repeat
>put dataToExport into URL ("file:c:\Armbase\Components\Armbase.txt")
>end if
>
> end mouseup
>
> Any help appreciated
>
> All the best
> Bob
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Basic "Answer" question. How does it work?

2005-05-23 Thread Chipp Walters

answer "Remove the file?" with "No" or "Yes"
if it is "No" then exit to top

Bob Hartley wrote:

  answer "Are you sure your want to overwrite the data? This cannot be 
undone." with "Yes" or "No"

  if it is empty then exit to top

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Richard Gaskin

Dar Scott wrote:


On May 23, 2005, at 1:35 PM, Richard Gaskin wrote:


A Two-Button Apple Mouse


The proof will of course be in the pudding, but things bode well for 
greater multi-platform consistency for us developers


Well, for two button mouse that may mean simplifying the right-click 
detail description: "...right-click-X (control-X on OS X systems without 
a two-button mouse)..."


But, except for some of us who tinker at a very low level, I don't see 
how using Intel chips affects multi-platform consistency.


I would imagine some externals could then be compiled only for x86, no?

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Dar Scott


On May 23, 2005, at 1:35 PM, Richard Gaskin wrote:


A Two-Button Apple Mouse


The proof will of course be in the pudding, but things bode well for 
greater multi-platform consistency for us developers


Well, for two button mouse that may mean simplifying the right-click 
detail description: "...right-click-X (control-X on OS X systems 
without a two-button mouse)..."


But, except for some of us who tinker at a very low level, I don't see 
how using Intel chips affects multi-platform consistency.


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
A pig's gotta fly. --  Porco Rosso
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Bob Hartley

At 20:49 23/05/2005, you wrote:



PS: ... Actually I like ppc and am fond of ARM and hate x86 but I
am a romantic fool :D


Well see the A9home running RISC OS
see articles at drobe
http://www.drobe.co.uk/

cheers
bob



cheers
andre



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Basic "Answer" question. How does it work?

2005-05-23 Thread Bob Hartley

Hi All

I want to have the user prompted with a dialogue box to make sure they are 
really wanting to overwrite a file.


I have created an answer script (a standard one) but I dont know how to get 
it to do something.


I have

on mouseUp
  answer "Are you sure your want to overwrite the data? This cannot be 
undone." with "Yes" or "No"

  if it is empty then exit to top
  -- now this line above is the bit I have wrong I'm sure
  -- I tried if it is no then exit to top
  else
  repeat with thisRecord = 1 to the number of cards
put field "field1" of card thisRecord & comma \\
& field "field2" of card thisRecord & comma \\
& field "field3" of card thisRecord & comma \\
& field "field4" of card thisRecord & comma \\
& field "field5" of card thisRecord & comma \\
& field "field6" of card thisRecord & return after dataToExport
  end repeat
  put dataToExport into URL ("file:c:\Armbase\Components\Armbase.txt")
  end if

end mouseup

Any help appreciated

All the best
Bob


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Dave,


...
I had a similar problem with your script as Klaus.
In my case, the icon's image size and the button size are the same.
This is what I've found so far...

On Windows (XP), if you keep the difference between the topMargin  
and the bottomMargin the same as the textSize, the icon will appear  
properly. And the value of the bottomMargin can be used to position  
the text. So for example, with a button sized 100 x 30, and a  
textSize of 14, setting margins to 0,20,0,6 is about right. On the  
same button, but with a textSize set at 12, margins of 0,19,0,7  
work well. The font used and the textHeight don't seem to matter.
But on OS X, it seems the difference between the topMargin and  
bottomMargin has to be 2 pixels more than the textSize (but I think  
this difference may vary for different textSizes). For example,  
with the same button and icon (100 x 30), with the textSize at 14,  
margins of 0,22,0,6 works. With a textSize of 12, margins of  
0,20,0,6 work.


thanks for the hints, will surely try this out!


Cheers for now

Dave


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Thanks for all the help

2005-05-23 Thread Bob Hartley

At 20:21 23/05/2005, you wrote:


Bob,



Hi Andre


Nice thing you're like programming, most people suffer from Traumas from 
the early days, I for one got nightmares dreaming of C pointers pointing 
to pointers that point to non existent memory areas...  One thing you 
should consider is buying Dan Shaffers Revolution: Software at the speed 
of thought book, it's a wonderfull introduction to Rev. also if you happen 
to live in the US, you might want to join the RevConWest conference, 
there'll be introductory tracks full of knowledge and surprises!


cheers
andre


Well I have Dans Book and believe it or not I have just been skimming it 
for an answer to my "answer" question about to be posted. :-)
I actually live 40 miles from RUNREV HQ in Scotland. They are in Edimburgh 
and I'm in Glasgow (originally from loch lomond).


I also have one of dans chapters in the book part 2.

Anyway off to ask another Q? in anothe thread.

Cheers
Bob 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Hell freezes over, pigs fly

2005-05-23 Thread Andre Garzia

Richard,

I don't think apple will move to x86 at this stage, I do think they are  
partening with intel for other chips that are not the CPU, like  
wireless chips and stuff like that. The Altivec thingy is not present  
on x86 chips right? so we would loose lots of number crunching  
features... it would be wise to partner with intel for their chips but  
not for changing CPU architecture...


PS: ... Actually I like ppc and am fond of ARM and hate x86 but I  
am a romantic fool :D


cheers
andre

On May 23, 2005, at 4:35 PM, Richard Gaskin wrote:

Several years ago I predicted here that Apple will migrate to a  
two-button mouse, and that it would be in Apple's interest to stop  
relying on phone-distracted Motorola and move to chip-dedicated Intel.


Today:

Apple to Use Intel Chips?



Intel Inside Apple?


Wall Street Journal: Apple to use Intel?



And recently:

A Two-Button Apple Mouse




The proof will of course be in the pudding, but things bode well for  
greater multi-platform consistency for us developers


--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Hell freezes over, pigs fly

2005-05-23 Thread Richard Gaskin
Several years ago I predicted here that Apple will migrate to a 
two-button mouse, and that it would be in Apple's interest to stop 
relying on phone-distracted Motorola and move to chip-dedicated Intel.


Today:

Apple to Use Intel Chips?


Intel Inside Apple?


Wall Street Journal: Apple to use Intel?



And recently:

A Two-Button Apple Mouse




The proof will of course be in the pudding, but things bode well for 
greater multi-platform consistency for us developers


--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Thanks for all the help

2005-05-23 Thread Andre Garzia

Bob,

Nice thing you're like programming, most people suffer from Traumas 
from the early days, I for one got nightmares dreaming of C pointers 
pointing to pointers that point to non existent memory areas...  One 
thing you should consider is buying Dan Shaffers Revolution: Software 
at the speed of thought book, it's a wonderfull introduction to Rev. 
also if you happen to live in the US, you might want to join the 
RevConWest conference, there'll be introductory tracks full of 
knowledge and surprises!


cheers
andre

On May 23, 2005, at 3:09 PM, Bob Hartley wrote:


Hi All.

I just wanted to say thanks to all on the list for helping me over the 
time getting into programming.
I have only been doing it sporadically but now have spent sometime 
getting into the finer points of the runrev method.


I know that if I tried to learn anything else with syntax like .. 
!"£$^%&*()>42 I would have not started.


However,
on mouseup
got to next card
end mouseup

Makes the intro to app design a lot easier. Now with the encouragment 
and Patience of the list I'm getting a lot more independent.



I'd just like to say thank you all for all the help.

Cheers
Bob


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


textFont wierdness

2005-05-23 Thread Brad Borch

Thanks to Jacqueline Landman Gay,

I'm impressed with RR tech support. I almost fell over after reading a 
criticism about RR's documentation on versiontracker. If you've ever 
used Director, you know what a nightmare that documentation is. RR's 
documentation is a dream by comparison. But I digress


/ 1) Every time I open RR, the labels and fields in the property inspector 
/>/ (revPropertyPalette 1 stack) are in a non-English typeface. I have to 
/>/ type in 'set the textFont of stack "revPropertyPalette 1" to "Lucida 
/>/ Grande"' and execute from the message box every time I start up. I've 
/>/ reinstalled RR from the .dmg file several times.

/
For others: Brad and I are working on this in the tech support queue, 
and I have passed on the remarks from this list that implicate an OS 9 
font, but if any of you have any other ideas, please let us know.


There were three fonts, interestingly all dingbat fonts, that were 
causing the trouble: DavysDings2, DavysDings3, and Dingies. As a test I 
rebuilt Dingies with a different FOND and it worked ok.

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: words in Transcript

2005-05-23 Thread Richard Gaskin

Melitón Cardona Torres wrote:

You have the following in field X:

Then I met her and she told me "How are you?, my dear friend"

9 words in Transcript, 14 in real life

This means, among others, that

put "you" is among the words of fld X yields ... false

Sorry to insist; I know that word in Transcript designates a 
space-delimited or quoted string as part of a chunk expression, but this 
goes against syntaxis and causes many inconvenients


This is well known, but is not Rev's decision.  The definition of a 
"word" as implemented in Rev's HyperTalk dialect, Transcript, was 
defined by Apple many years ago.


I haven't heard Apple's rationale on that, and it would be interesting 
to know what they were thinking.


But in the here and now this convention was established more than 15 
years ago by a company far bigger than RunRev, and at this late stage it 
would cause widespread serious compatibiliy issues to change it.


If you feel strongly about this you can request a rationale and provide 
additional feedback to Apple at:




--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Thanks for all the help

2005-05-23 Thread Bob Hartley

Hi All.

I just wanted to say thanks to all on the list for helping me over the time 
getting into programming.
I have only been doing it sporadically but now have spent sometime getting 
into the finer points of the runrev method.


I know that if I tried to learn anything else with syntax like .. 
!"£$^%&*()>42 I would have not started.


However,
on mouseup
got to next card
end mouseup

Makes the intro to app design a lot easier. Now with the encouragment and 
Patience of the list I'm getting a lot more independent.



I'd just like to say thank you all for all the help.

Cheers
Bob


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Scott Rossi
Recently, Ken Ray  wrote:
 
> If at first you don't succeed...

...destroy all evidence that you tried.


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Dave Cragg


On 23 May 2005, at 18:41, Ken Ray wrote:


On 5/23/05 12:34 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:




sorry, it doesn't
Half the text appears on top of the icon...



*Half* the text? May I ask what font/size/style you're using and  
what the

image is? Is it something in Rev?



But the script looks quite impressive ;-)



Thanks. :-)

If at first you don't succeed...


I had a similar problem with your script as Klaus.

In my case, the icon's image size and the button size are the same.

This is what I've found so far...

On Windows (XP), if you keep the difference between the topMargin and  
the bottomMargin the same as the textSize, the icon will appear  
properly. And the value of the bottomMargin can be used to position  
the text. So for example, with a button sized 100 x 30, and a  
textSize of 14, setting margins to 0,20,0,6 is about right. On the  
same button, but with a textSize set at 12, margins of 0,19,0,7 work  
well. The font used and the textHeight don't seem to matter.


But on OS X, it seems the difference between the topMargin and  
bottomMargin has to be 2 pixels more than the textSize (but I think  
this difference may vary for different textSizes). For example, with  
the same button and icon (100 x 30), with the textSize at 14, margins  
of 0,22,0,6 works. With a textSize of 12, margins of 0,20,0,6 work.


Cheers for now

Dave


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Ken,


On 5/23/05 12:34 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

sorry, it doesn't
Half the text appears on top of the icon...

*Half* the text?


Sorry, i meant that the text lies half on the top of my image...


May I ask what font/size/style you're using and what the
image is? Is it something in Rev?


No, a small custom image, but it was on the same card as the button/ 
script,

so getting the formattedheight etc... was succesful in any case...


But the script looks quite impressive ;-)

Thanks. :-)


You're welcome.


If at first you don't succeed...


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Ken Ray
On 5/23/05 12:34 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:


> sorry, it doesn't
> Half the text appears on top of the icon...

*Half* the text? May I ask what font/size/style you're using and what the
image is? Is it something in Rev?
 
> But the script looks quite impressive ;-)

Thanks. :-)

If at first you don't succeed...


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Ken,


On 5/23/05 12:02 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:


...

This is only possible, if at all, on ONE platform*** only ONE
(static) label and with lots of testing...
*** The slight font differences!

Ah ha! OK, Klaus, I think I've hit on the magic equation... test it  
and see

if it works for you:

on mouseUp
  CenterIt (long id of btn 2),4
end mouseUp

on CenterIt pBtnID,pMargin
  put the height of pBtnID into tHt
  put the textHeight of pBtnID into tTxHt
  put the icon of pBtnID into tIconID
  put the formattedHeight of img id tIconID into tFmtHt
  put round((tHt - tTxHt)/2) into tBotMargin
  put tBotMargin + tFmtHt into tTopMargin
  set the margins of pBtnID to
pMargin,tTopMargin-pMargin,pMargin,tBotMargin+pMargin
end CenterIt


The only "hard part" here is that you need to factor in the  
formattedHeight
of the icon's image - and if you don't know where it is, you can't  
get it's
formattedHeight. For the purposes of the code above, it is assumed  
that the

icon is on the same card (hidden), but you can adapt to suit.

Jeanne had the right suggestion - be able to get the "long name" or  
"long

id" of an image used as an icon so you can know where it is located.
Consider voting for Bug 521
(http://support.runrev.com/bugdatabase/show_bug.cgi?id=521).

Let me know how it works for you,


sorry, it doesn't
Half the text appears on top of the icon...

But the script looks quite impressive ;-)


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Ken Ray
On 5/23/05 12:02 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:
>> But do you mean sure that it now appears in front of the image, or
>> sure that it used to appear behind the image? Anyway, I'm sure of
>> both, just not sure when the change occurred.
>>> That's what i know, fiddling with the margins property, but never
>>> with satisfying results...
>> One way is to have the text left-aligned, set the top, right and
>> bottom margins to 0, and then increase the left margin until you're
>> happy. But this isn't so good when you want to dynamically change
>> the label. So I was hoping to keep the label center-aligned, and
>> adjust top and bottom margins.
>> But finding the right settings is difficult.
> 
> This is only possible, if at all, on ONE platform*** only ONE
> (static) label and with lots of testing...
> *** The slight font differences!

Ah ha! OK, Klaus, I think I've hit on the magic equation... test it and see
if it works for you:

on mouseUp
  CenterIt (long id of btn 2),4
end mouseUp

on CenterIt pBtnID,pMargin
  put the height of pBtnID into tHt
  put the textHeight of pBtnID into tTxHt
  put the icon of pBtnID into tIconID
  put the formattedHeight of img id tIconID into tFmtHt
  put round((tHt - tTxHt)/2) into tBotMargin
  put tBotMargin + tFmtHt into tTopMargin
  set the margins of pBtnID to
pMargin,tTopMargin-pMargin,pMargin,tBotMargin+pMargin
end CenterIt


The only "hard part" here is that you need to factor in the formattedHeight
of the icon's image - and if you don't know where it is, you can't get it's
formattedHeight. For the purposes of the code above, it is assumed that the
icon is on the same card (hidden), but you can adapt to suit.

Jeanne had the right suggestion - be able to get the "long name" or "long
id" of an image used as an icon so you can know where it is located.
Consider voting for Bug 521
(http://support.runrev.com/bugdatabase/show_bug.cgi?id=521).

Let me know how it works for you,


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: textFont wierdness

2005-05-23 Thread J. Landman Gay

On 5/23/05 11:32 AM, Brad Borch wrote:

I've got a couple of strange textFont problems, not sure if they're 
related.


Probably not.



1) Every time I open RR, the labels and fields in the property inspector 
(revPropertyPalette 1 stack) are in a non-English typeface. I have to 
type in 'set the textFont of stack "revPropertyPalette 1" to "Lucida 
Grande"' and execute from the message box every time I start up. I've 
reinstalled RR from the .dmg file several times.


For others: Brad and I are working on this in the tech support queue, 
and I have passed on the remarks from this list that implicate an OS 9 
font, but if any of you have any other ideas, please let us know.


Brad: reinstalling Rev won't help, so you can skip that part. The issue 
is most likely that a font somewhere in your system is interfering with 
the normal system font. (I sent you email from the tech support queue 
this morning; see that.) Tracking down the font that is responsible 
should fix it.




2) I have a button that sets the fontText of a field:

on menuPick theFont
 set the textFont of fld "Word_Greek" to theFont
 put theFont && the textFont of fld "Word_Greek"
end menuPick

according to the message, the textFont has been updated, but the field 
remains unchanged.


This generally happens when the the text in the field has been selected 
and its font changed. The individual character assignments override the 
general field font. To fix it, select all the text in the field and set 
its font to "use owner's font".




Also, I have a handler in the stack script with this code:

 if this card is the first card then


Should be: if the number of this cd = 1



I know this is pretty basic stuff--I think I'm so used to the 
convolutions of languages like PERL that I'm missing the obvious. 
Hopefully I'll be up to speed pretty shortly... thanks for your patience 
with a new "convert."


Brad
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution






--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Dave


On 23 May 2005, at 17:10, Klaus Major wrote:
Hi Klaus

Hi
I just noticed that a button's label can now appear in front of  
the button's icon.
Previously, it would get hidden behind the image. (When was this  
fixed/changed?)

are you yure?

You bet. :)


OK :-)

But do you mean sure that it now appears in front of the image, or  
sure that it used to appear behind the image? Anyway, I'm sure of  
both, just not sure when the change occurred.
That's what i know, fiddling with the margins property, but never  
with satisfying results...
One way is to have the text left-aligned, set the top, right and  
bottom margins to 0, and then increase the left margin until you're  
happy. But this isn't so good when you want to dynamically change  
the label. So I was hoping to keep the label center-aligned, and  
adjust top and bottom margins.

But finding the right settings is difficult.


This is only possible, if at all, on ONE platform*** only ONE  
(static) label and with lots of testing...

*** The slight font differences!

I get the text centered on the button, but part of the icon  
disappears. Get the icon positioned, and the text shifts. It's like  
one of those comedy routines when the guy closes one drawer and  
another drawer opens. (Perhaps I should remove the red nose before  
I do this.)

http://support.runrev.com/bugdatabase/show_bug.cgi?id=1032
Interesting! I found Bugzilla #819, where Tuv mentioned fixing it  
for 2.2, although the bug is still marked  "assigned".


Hmmm...

Right, 819 is almost identical to 1032 except the strange, kind of  
"off topic" comments of Mr. Miller.
Maybe another misunderstanding, although i think you cannot  
misunderstand that problem!



Cheers
Dave


Sayonara Cragg-san :-)

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Ken,


On 5/23/05 11:10 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

Hi Dave,

Hi
I just noticed that a button's label can now appear in front of the
button's icon.
Previously, it would get hidden behind the image. (When was this
fixed/changed?)

are you yure?
How do you do this?
Actually, I think there's a miscommunication - when you have a  
button with
an icon, the label is normally centered at the bottom of the  
button. If,
however, your icon is very large, or you resize the button so the  
text and
image overlap, you'll see that the text is indeed in front of the  
image.


Ah, i see...

However - this does NOT solve the original problem of trying to get  
a label

vertically centered in a button... something that BZ 1032 addresses,


NOT ;-)


and which is not (AFAIK) possible in the current version of Rev.

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Dave Cragg


On 23 May 2005, at 17:10, Klaus Major wrote:




Hi Klaus


Hi

I just noticed that a button's label can now appear in front of  
the button's icon.
Previously, it would get hidden behind the image. (When was this  
fixed/changed?)




are you yure?


You bet. :)

But do you mean sure that it now appears in front of the image, or  
sure that it used to appear behind the image? Anyway, I'm sure of  
both, just not sure when the change occurred.




That's what i know, fiddling with the margins property, but never  
with satisfying results...


One way is to have the text left-aligned, set the top, right and  
bottom margins to 0, and then increase the left margin until you're  
happy. But this isn't so good when you want to dynamically change the  
label. So I was hoping to keep the label center-aligned, and adjust  
top and bottom margins.


But finding the right settings is difficult. I get the text centered  
on the button, but part of the icon disappears. Get the icon  
positioned, and the text shifts. It's like one of those comedy  
routines when the guy closes one drawer and another drawer opens.  
(Perhaps I should remove the red nose before I do this.)




http://support.runrev.com/bugdatabase/show_bug.cgi?id=1032


Interesting! I found Bugzilla #819, where Tuv mentioned fixing it for  
2.2, although the bug is still marked  "assigned".


Cheers
Dave
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Ken Ray
On 5/23/05 11:10 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

> Hi Dave,
> 
>> Hi
>> 
>> I just noticed that a button's label can now appear in front of the
>> button's icon.
>> Previously, it would get hidden behind the image. (When was this
>> fixed/changed?)
> 
> are you yure?
> 
> How do you do this?

Actually, I think there's a miscommunication - when you have a button with
an icon, the label is normally centered at the bottom of the button. If,
however, your icon is very large, or you resize the button so the text and
image overlap, you'll see that the text is indeed in front of the image.

However - this does NOT solve the original problem of trying to get a label
vertically centered in a button... something that BZ 1032 addresses, and
which is not (AFAIK) possible in the current version of Rev.

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


textFont wierdness

2005-05-23 Thread Brad Borch

I've got a couple of strange textFont problems, not sure if they're related.

1) Every time I open RR, the labels and fields in the property inspector 
(revPropertyPalette 1 stack) are in a non-English typeface. I have to 
type in 'set the textFont of stack "revPropertyPalette 1" to "Lucida 
Grande"' and execute from the message box every time I start up. I've 
reinstalled RR from the .dmg file several times.


2) I have a button that sets the fontText of a field:

on menuPick theFont
 set the textFont of fld "Word_Greek" to theFont
 put theFont && the textFont of fld "Word_Greek"
end menuPick

according to the message, the textFont has been updated, but the field 
remains unchanged.


Also, I have a handler in the stack script with this code:

 if this card is the first card then

I know this is pretty basic stuff--I think I'm so used to the 
convolutions of languages like PERL that I'm missing the obvious. 
Hopefully I'll be up to speed pretty shortly... thanks for your patience 
with a new "convert."


Brad
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: words in Transcript

2005-05-23 Thread =?ISO-8859-1?Q?Melit=F3n_Cardona_Torres?=

You have the following in field X:

Then I met her and she told me "How are you?, my dear friend"

9 words in Transcript, 14 in real life

This means, among others, that

put "you" is among the words of fld X yields ... false

Sorry to insist; I know that word in Transcript designates a 
space-delimited or quoted string as part of a chunk expression, but 
this goes against syntaxis and causes many inconvenients


Greetings,

Ton




___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button text on icon image

2005-05-23 Thread Klaus Major

Hi Dave,


Hi

I just noticed that a button's label can now appear in front of the  
button's icon.
Previously, it would get hidden behind the image. (When was this  
fixed/changed?)


are you yure?

How do you do this?
However, I'm having trouble with the button margin settings to make  
the label appear centered
on the icon. Has anyone worked out a magic formula for the margin  
settings?


That's what i know, fiddling with the margins property, but never  
with satisfying results...


I am still waiting for an explanation of Mr. Miller, see bugzilla  
entry 1032, which is marked as
FIXED and RESOLVED which is NOT TRUE! My good education prohibits  
further comments.


http://support.runrev.com/bugdatabase/show_bug.cgi?id=1032


Cheers
Dave


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Could this list be a forum/bulletin board?

2005-05-23 Thread Dan Shafer

Howard.

I thought I was the only one experiencing this problem. I've posted  
messages on two or three OS X message boards and haven't had a single  
reaction or response.


Threads seem to collect unrelated messages more or less at random.

But it's still better for me than the old way.

On May 23, 2005, at 4:45 AM, Howard Bornstein wrote:


I used to do that but I really don't like the way Mail does threading.
It never really works on my Mac.




~~
Dan Shafer, Co-Chair
RevConWest '05
June 17-18, 2005, Monterey, California
http://www.altuit.com/webs/altuit/RevConWest

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Button text on icon image

2005-05-23 Thread Dave Cragg

Hi

I just noticed that a button's label can now appear in front of the  
button's icon. Previously, it would get hidden behind the image.  
(When was this fixed/changed?)


However, I'm having trouble with the button margin settings to make  
the label appear centered on the icon. Has anyone worked out a magic  
formula for the margin settings?


Cheers
Dave
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "convert" questions

2005-05-23 Thread Trevor DeVore

Is it possible to send variables between RR and a SWF file?



Sorry, no idea.


Yes you can.  Since SWF is playing through QuickTime you can use my  
EnhancedQT external at
 to  
process FSCommand events.


The beta version of the external supports FSCommand processing.  Your  
player object will receive a message whenever a FSCommand is sent  
from your SWF movie.  As Klaus mentioned, only version <= 5 though.



Has anybody used LiveStage to produce animations for import into RR?



Livestage output MOV files, but not all interactivity will be  
accesible within Rev...


Any comments, Trevor? ;-)


I incorporate LiveStage content all of the time.  I've used it for  
incorporating Axel 3D content, interactive movies that use intermovie  
communication, etc.  If you use the external I mentioned above you  
can also communicate between QuickTime movies and Revolution using  
Movie Variables and QTLists.  You can also simulate mouse clicks on  
sprites.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Plugin for formatting text?

2005-05-23 Thread Glen Bojsza
Hello everyone,

I was thinking that someone may have already mentioned or done this
already. I was looking for a plugin that would make text formatting
easier and would also include the ability to easily set links on
selected text.

Or is there another way that I am missing?

BTW: I am glad to here that RevCon West is going to be so well
attended. I am not in a postion to attend this year but I am planning
to make it next year. So, all the best to those who are planning to
make it.

thanks
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "convert" questions

2005-05-23 Thread Klaus Major

Hi Brad,


Hi,

I'm a new user but not new to card-based scripting (Hypercard in  
'87). I'm a professional multimedia developer with numerous  
interactive CDs authored in Director. I can't stand Director (and  
Macromedia's attitude in general) so I'm planning to do my next  
project in RR. I've got a few questions:


a very wise decision :-)

1) I want to populate a pulldown menu with choices from the user's  
font menu. I'm sure there's a one-line command to do this (that's  
what I love about RR) but I can't find it.


"the fontnames" :-)

on preopencard
  put the fontnames into btn "my font menu"
end preopencard

2) I'd like to be able to include pre-build animations in my  
program. RR supports Flash swf through QuickTime, but I've had  
limited success. Has anyone documented the limitations on this  
capability?


QT only supports SWF files made with Flash >= version 5.
And only half-heartedly :-/


Is it possible to send variables between RR and a SWF file?


Sorry, no idea.

Do plain-vanilla (no movie clips) timeline-based animations play  
reliably in RR?


Test, test, test!

3) If SWF animations don't work, is there another way to  
incorporate vector-based animation built in another program?


I would recommend to use Chipp's wonderful "altBrowser" external,  
which lets you display a
internet browser window on your card, which can play ALL SWF files  
then :-)


Check this url:
http://www.altuit.com/webs/altuit2/altBrowserCover/default.htm


Has anybody used LiveStage to produce animations for import into RR?


Livestage output MOV files, but not all interactivity will be  
accesible within Rev...


Any comments, Trevor? ;-)

4) Does RR or any 3rd party plug-in enable font embedding?  
Alternatively, how difficult is it to include a freeware Unicode  
font through an RR installer?


If just copying the font to the correct folder on the users HD will  
be enough, then it is not difficult :-)


I'm looking forward to developing in RR, as it's just so much  
easier to work with than anything else I've used. TIA for your help.


Brad


Hope that helps...


Best from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tiger weirdness revisited

2005-05-23 Thread Klaus Major

Hi all,


Howdy again!
I have made some progress in understanding the weirdness in Tiger  
with stacks using
windowShape.  Maybe someone can use what I've found to actually  
figure this one out.
Some of you may recall this from about 2 days after Tiger was  
released.

Certain windowShapes don't display properly on machines running Tiger.
Klaus, Gordy and Sarah have
...
Otherwise Tiger has been an absolute dream for everything I do ;-)

Cheers again!


This strangeness can be seen in Bugzilla number: 2829


Lars


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tiger weirdness revisited

2005-05-23 Thread Bill
I can't use tiger until I completely re-write all my HyperCard stuff in Rev
as Tiger breaks HyperCard and especially nine-to-five reports. Apparently
Tiger doesn't like classic either.

Did the tiger update to 4.1 solve any of your tiger weirdness issues?


On 5/23/05 9:56 AM, "Lars Brehmer" <[EMAIL PROTECTED]> wrote:

> Howdy again!
> 
> I have made some progress in understanding the weirdness in Tiger
> with stacks using windowShape.  Maybe someone can use what I've found
> to actually figure this one out.
> 
> Some of you may recall this from about 2 days after Tiger was
> released.  Certain windowShapes don't display properly on machines
> running Tiger.  Klaus, Gordy and Sarah have confirmed this and Gordy
> came up with a workaround that was a good start. I've been fooling
> around with this again for the last 2 days and made an interesting
> discovery that might help one of you real pros get to the bottom of
> this.
> 
> To recap the problem.  Stacks using a windowShape that has a sort of
> semi-circular protrusion on the bottom get a weird shadow when using
> rev or my standalone running Tiger.  Also a windowShape that is
> nothing more than a rectangle with slightly rounded corners had a
> different strange appearance, but only in some cases.
> 
> As Klaus knows, I experimented for hours and found that the rectangle
> with rounded corners displays fine in Tiger, but ONLY if the width of
> the stack is 698 pixels of less (!!?!??!)  Now, I'm no pro, but I
> think I know enough consider  this to be bizarre!  What can the
> significance of 698 pixels possibly be?  Also, Gordy found a
> workaround that I am using - before I had the different window
> background images in a separate stack with all my graphics for button
> icons, etc, and in the stack backgrounds a button with the image as
> its icon, and the windowShape set to the image ID.  These images were
> in most cases png24's with transparency, created in Photoshop
> elements.  Klaus pointed out that windowshape in rev theoretically
> only supports 2 bit masks, so I recreated the exact shapes with black
> gif's, but these didn't work either.  Gordy found that if you have
> both the gif and the png in the stack background and set the shape to
> the gif, it works (almost).
> 
> Here's the interesting catch/clue.  I copied my standalone to my
> other machine running Panther - everything fine.  I did a clean
> install of Tiger, copied the app over again and the strangeness was
> back.  Then I installed Runrev  on the machine, restarted and copied
> the app over again and the problem was gone.  So for now the question
> is what is it about Runrev and Tiger that effects a standalone made
> with Runrev even when Runrev is not running?  The first clue to this
> "intertwining" between Rev and Tiger came when I noticed at one point
> that if I booted my machine and opened my standalone, the weirdness
> was there, but if after booting I opend the Stack in the standalone
> package in Rev first, then closed rev and opened the standalone the
> weirdnes was gone! I mean shouldn't a standalone be able to "stand
> alone?"  I certainly can't expect somebody who has Tiger and wants to
> use my app to buy Rev just to get it to display properly, right?
> There is something about the relationship between Rev and Tiger that
> is different from between Rev and Panther and I hope one of you out
> there might just say Ah Hah! Elementary! It's...
> 
> When I first posted this (before lots of experimentation and with
> fewer concrete clues) only Sarah, Gordy and Klaus responded (big
> thanks again!).  By now I hope a lot more of you are using Tiger and
> maybe found some other little problems and found solutions that might
> have some bearing on this one :-)
> 
> And one other oddity in Tiger.  When my standalone launches, certain
> stacks  and substacks are opened invisibly while the splash screen is
> visible, and then shown when the splash screen disappears.  This
> always caused some flicker, even using lockScreen,  until I followed
> a suggestion from the list to open the stacks
> "offscreen" (-5000,-5000) and then set the location to somewhere
> onscreen. Worked like a charm with a tiny Tiger-related problem.  The
> first time I lauch my standalone after booting the machine, those
> stacks appear onscreen in the upper left corner and then switch to
> their end locations.  On subsequent launches they show up flicker
> free at their proper locations.  Any ideas on this one?
> 
> Otherwise Tiger has been an absolute dream for everything I do ;-)
> 
> Cheers again!
> 
> Lars
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^

"convert" questions

2005-05-23 Thread Brad Borch

Hi,

I'm a new user but not new to card-based scripting (Hypercard in '87). 
I'm a professional multimedia developer with numerous interactive CDs 
authored in Director. I can't stand Director (and Macromedia's attitude 
in general) so I'm planning to do my next project in RR. I've got a few 
questions:


1) I want to populate a pulldown menu with choices from the user's font 
menu. I'm sure there's a one-line command to do this (that's what I love 
about RR) but I can't find it.


2) I'd like to be able to include pre-build animations in my program. RR 
supports Flash swf through QuickTime, but I've had limited success. Has 
anyone documented the limitations on this capability? Is it possible to 
send variables between RR and a SWF file? Do plain-vanilla (no movie 
clips) timeline-based animations play reliably in RR?


3) If SWF animations don't work, is there another way to incorporate 
vector-based animation built in another program? Has anybody used 
LiveStage to produce animations for import into RR?


4) Does RR or any 3rd party plug-in enable font embedding? 
Alternatively, how difficult is it to include a freeware Unicode font 
through an RR installer?


I'm looking forward to developing in RR, as it's just so much easier to 
work with than anything else I've used. TIA for your help.


Brad
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Tiger weirdness revisited

2005-05-23 Thread Lars Brehmer

Howdy again!

I have made some progress in understanding the weirdness in Tiger  
with stacks using windowShape.  Maybe someone can use what I've found  
to actually figure this one out.


Some of you may recall this from about 2 days after Tiger was  
released.  Certain windowShapes don't display properly on machines  
running Tiger.  Klaus, Gordy and Sarah have confirmed this and Gordy  
came up with a workaround that was a good start. I've been fooling  
around with this again for the last 2 days and made an interesting  
discovery that might help one of you real pros get to the bottom of  
this.


To recap the problem.  Stacks using a windowShape that has a sort of  
semi-circular protrusion on the bottom get a weird shadow when using  
rev or my standalone running Tiger.  Also a windowShape that is  
nothing more than a rectangle with slightly rounded corners had a  
different strange appearance, but only in some cases.


As Klaus knows, I experimented for hours and found that the rectangle  
with rounded corners displays fine in Tiger, but ONLY if the width of  
the stack is 698 pixels of less (!!?!??!)  Now, I'm no pro, but I  
think I know enough consider  this to be bizarre!  What can the  
significance of 698 pixels possibly be?  Also, Gordy found a  
workaround that I am using - before I had the different window  
background images in a separate stack with all my graphics for button  
icons, etc, and in the stack backgrounds a button with the image as  
its icon, and the windowShape set to the image ID.  These images were  
in most cases png24's with transparency, created in Photoshop  
elements.  Klaus pointed out that windowshape in rev theoretically  
only supports 2 bit masks, so I recreated the exact shapes with black  
gif's, but these didn't work either.  Gordy found that if you have  
both the gif and the png in the stack background and set the shape to  
the gif, it works (almost).


Here's the interesting catch/clue.  I copied my standalone to my  
other machine running Panther - everything fine.  I did a clean  
install of Tiger, copied the app over again and the strangeness was  
back.  Then I installed Runrev  on the machine, restarted and copied  
the app over again and the problem was gone.  So for now the question  
is what is it about Runrev and Tiger that effects a standalone made  
with Runrev even when Runrev is not running?  The first clue to this  
"intertwining" between Rev and Tiger came when I noticed at one point  
that if I booted my machine and opened my standalone, the weirdness  
was there, but if after booting I opend the Stack in the standalone  
package in Rev first, then closed rev and opened the standalone the  
weirdnes was gone! I mean shouldn't a standalone be able to "stand  
alone?"  I certainly can't expect somebody who has Tiger and wants to  
use my app to buy Rev just to get it to display properly, right?  
There is something about the relationship between Rev and Tiger that  
is different from between Rev and Panther and I hope one of you out  
there might just say Ah Hah! Elementary! It's...


When I first posted this (before lots of experimentation and with  
fewer concrete clues) only Sarah, Gordy and Klaus responded (big  
thanks again!).  By now I hope a lot more of you are using Tiger and  
maybe found some other little problems and found solutions that might  
have some bearing on this one :-)


And one other oddity in Tiger.  When my standalone launches, certain  
stacks  and substacks are opened invisibly while the splash screen is  
visible, and then shown when the splash screen disappears.  This  
always caused some flicker, even using lockScreen,  until I followed  
a suggestion from the list to open the stacks  
"offscreen" (-5000,-5000) and then set the location to somewhere  
onscreen. Worked like a charm with a tiny Tiger-related problem.  The  
first time I lauch my standalone after booting the machine, those  
stacks appear onscreen in the upper left corner and then switch to  
their end locations.  On subsequent launches they show up flicker  
free at their proper locations.  Any ideas on this one?


Otherwise Tiger has been an absolute dream for everything I do ;-)

Cheers again!

Lars
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Speed of XML vs SQLite

2005-05-23 Thread xbury . cs
Thanks, confirms my worries...

Any tests between stack/card access and xml access for queries?

cheers
Xavier

On 23.05.2005 15:44:14 use-revolution-bounces wrote:
>Hi,
>
>For what it is worth, have a look at this:
>
>http://www.15seconds.com/issue/010410.htm
>(don't forget the first part)
>
>and at Mark Brownell's handlers and techniques as an option for rev's
>functions.
>
>Greetings,
>Wouter
>
>On 23 May 2005, at 14:57, Levi Kendall wrote:
>
>> Hi all,
>>
>>I'm considering using XML for building a database but my concern is
>> that for data retrieval it might become very slow as more and more
>> data is added.  Would using functions such as revXMLMatchingNode be as
>> slow as doing a full text search of the xml or would it be at least
>> comparable to performing a lookup in an actual database?  Another
>> speed concern would be finding a node with multiple matching
>> attributes.  Is this a good idea or would I be better off using
>> something like SQLite?
>>
>> Thanks,
>> Levi
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>___
>use-revolution mailing list
>use-revolution@lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution


-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Speed of XML vs SQLite

2005-05-23 Thread Wouter

Hi,

For what it is worth, have a look at this:

http://www.15seconds.com/issue/010410.htm
(don't forget the first part)

and at Mark Brownell's handlers and techniques as an option for rev's  
functions.


Greetings,
Wouter

On 23 May 2005, at 14:57, Levi Kendall wrote:


Hi all,

   I'm considering using XML for building a database but my concern is
that for data retrieval it might become very slow as more and more
data is added.  Would using functions such as revXMLMatchingNode be as
slow as doing a full text search of the xml or would it be at least
comparable to performing a lookup in an actual database?  Another
speed concern would be finding a node with multiple matching
attributes.  Is this a good idea or would I be better off using
something like SQLite?

Thanks,
Levi
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: easy question? & Tiger weirdness revisited

2005-05-23 Thread Eric Chatonet

Hi Lars,

You could try:

mark cds where the reMake of this cd

Best regards from Paris,

Eric Chatonet.

Le 23 mai 05 à 14:41, Lars Brehmer a écrit :


I have what I hope is an easy question that has me stumped.

I took the discussion last week about why custom properties are so  
fast to heart and made some major changes to an enormous stack of  
mine to drastically reduce the file size and make it run much  
faster.  I'm not a coder, just a rev user that profits immensly  
from reading the posts on this list, so my original project has  
been rebuilt countless times as I learn better ways to do things.   
For example as a result of the custom props speed discussion, I  
made a the simple change of putting several buttons in the  
background and using the preopenCard handler to look at a custom  
propery to determine whether a button should be visible.  Before, I  
had up to 4 superfluous identical buttons on thousands of cards,  
which bloated the file size and make it crawl at a snail's pace in  
the IDE.  The thing I haven"t solved is re-marking certain unmarked  
cards without having an extra object on those cards.  It used to be:


mark cds by finding "blahblah" in fld "reMark"

I want to get rid of the superfluous fields and text, so far no  
luck.  I have tried several things like


unmark this cd
set the reMake of this cd to true

When I want to mark the cards again, I tried

mark cds where the reMake is true

- this just don't work - I have tried everything I could think of  
from the docs using "by" and "where" but I must be missing  
something here.  As you can see, my coding skills are practically  
non-existent.  I am convinced that this should be really easy, and  
being the absolute poster child for creating pretty good apps with  
the help of all you re-listers out there, I gotta ask: what am I  
missing here?






So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Speed of XML vs SQLite

2005-05-23 Thread Levi Kendall
Hi all,

   I'm considering using XML for building a database but my concern is
that for data retrieval it might become very slow as more and more
data is added.  Would using functions such as revXMLMatchingNode be as
slow as doing a full text search of the xml or would it be at least
comparable to performing a lookup in an actual database?  Another
speed concern would be finding a node with multiple matching
attributes.  Is this a good idea or would I be better off using
something like SQLite?

Thanks,
Levi
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


easy question? & Tiger weirdness revisited

2005-05-23 Thread Lars Brehmer

Howdy all!

I have what I hope is an easy question that has me stumped.

I took the discussion last week about why custom properties are so  
fast to heart and made some major changes to an enormous stack of  
mine to drastically reduce the file size and make it run much  
faster.  I'm not a coder, just a rev user that profits immensly from  
reading the posts on this list, so my original project has been  
rebuilt countless times as I learn better ways to do things.  For  
example as a result of the custom props speed discussion, I made a  
the simple change of putting several buttons in the background and  
using the preopenCard handler to look at a custom propery to  
determine whether a button should be visible.  Before, I had up to 4  
superfluous identical buttons on thousands of cards, which bloated  
the file size and make it crawl at a snail's pace in the IDE.  The  
thing I haven"t solved is re-marking certain unmarked cards without  
having an extra object on those cards.  It used to be:


mark cds by finding "blahblah" in fld "reMark"

I want to get rid of the superfluous fields and text, so far no  
luck.  I have tried several things like


unmark this cd
set the reMake of this cd to true

When I want to mark the cards again, I tried

mark cds where the reMake is true

- this just don't work - I have tried everything I could think of  
from the docs using "by" and "where" but I must be missing something  
here.  As you can see, my coding skills are practically non- 
existent.  I am convinced that this should be really easy, and being  
the absolute poster child for creating pretty good apps with the help  
of all you re-listers out there, I gotta ask: what am I missing here?


Cheers

Lars




___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Could this list be a forum/bulletin board?

2005-05-23 Thread Howard Bornstein
On 5/21/05, Dennis Brown <[EMAIL PROTECTED]> wrote:
> I finally figured out how to manage this barrage of emails in my in-
> box from this list.  I just have my mail.app program send them all to
> a "RevList" mail box that I read with threads on.  Now I can find the
> other emails I get in my in-box.
> 
> I don't know why I did not think of this before.  I guess it is
> because this is the first list I have signed up for.
> 

I used to do that but I really don't like the way Mail does threading.
It never really works on my Mac. Instead, I have Mail automatically
redirect all the Rev mail to my Google mail account. Gmail handles
threading much better and it has the built-in google search to help
find things. I've currently got 67MB of rev mail and it's taking up a
whopping 3% of the 2 gigs Google mail gives you!

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: A good book on Applescript?

2005-05-23 Thread =?ISO-8859-1?Q?Serge_S=E9gu?=


Le 23 mai 05, à 09:36, graham samuel a écrit :

[...]  I guess I should try 'AppleScript for dummies' too. I'd be 
interested to hear how you get on.


When I started to study AppleScript (1998) , it is the first  book 
which I found.

Regards
Serge
--
http://wirinum.free.fr


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


How have the resizing window cursor.

2005-05-23 Thread Damien Girard

Hi all,

Under revolution, I am making a stack with a windowshape, and with my 
resizing engine,
so I have maked a graphic, when you click on the graphic, you can resize 
the window. But,
for the user, I need a resizing cursor. But runrev haven't got all icon 
of Microsoft Windows, so
I didn't see any built-in cursor that can help me. So I want to know if 
there are any method for
have all windows cursor (and who follow the system cursor theme). 
Because resizing a stack with

an arrow, aren't pretty.

Thanks.

Damien Girard
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: A good book on Applescript?

2005-05-23 Thread sims

On Sun, 22 May 2005 14:31:33 +0100, Mark Smith <[EMAIL PROTECTED]> wrote:


Can anyone recommend a good book on Applescript?


I have foundhttp://macscripter.net/to be very helpful.

ciao,
sims
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: A good book on Applescript?

2005-05-23 Thread graham samuel
On Sun, 22 May 2005 14:31:33 +0100, Mark Smith <[EMAIL PROTECTED]> 
wrote:


Can anyone recommend a good book on Applescript?

Despite 10years+ experience with xTalks, I still find Applescript
utterly impenetrable - Apples' own documentation manages to be so
verbose and yet so abstract as to make the often-complained about
(sometimes by me) Rev docs look brilliant. In particular, reading the
dictionaries of applications, I feel like a 13th century peasant
attempting to understand a technical description of a particle
accelerator...


I can't help, only sympathise, since I feel exactly the same. I've got 
'AppleScript in a Nutshell' but it isn't (and doesn't claim to be) an 
introduction. There seems to me something strangely arbitrary about 
AppleScript, so that it's hard to build up an understanding by logical 
inference from what you know already. And the first thing I tried to do 
(iterating through a group of files to carry out a conversion) seemed 
amazingly difficult - well, to me - and I got stuck and abandoned it. I 
guess I should try 'AppleScript for dummies' too. I'd be interested to 
hear how you get on.


Graham


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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution