autocomplete

2003-04-01 Thread erik hansen

couldn't find a reference to "autocomplete" (in
scripting mode) which brings to mind a thread
about a complete search of the documents
involving a download or something.

is this a case where waiting for 2.0 is advised?
it would be much easier to just search from
inside Rev.

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] graphics transformations 01

2003-04-01 Thread Alejandro Tejada
Download the stack: graphics transformations 01
from:

http://ffc.virtualave.net/graphics_transformations_01.zip

This stack shows the use of matrices to scale,
rotate and skew polygon graphics. The included flip
transformation does not use matrices.

Feel free to add your own enhancements and post them
back to the list or send them directly to me for
including in a next version.

Planned enhancements:
1- Transform multiple graphics (currently only one)
2- Convert the scripts and stack to work as palette.
3- Better Interface.

Alejandro

=
Useful sites:
http://www.sonsothunder.com/devres/metacard/tips/ and /revolution/tips/
http://lists.runrev.com/pipermail/metacard/ and /use-revolution/
http://wiki.macitworks.com/revdocs
http://www.google.com/advanced_search?q=site:lists.runrev.com

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button vs. Message box scripts

2003-04-01 Thread Cubist
sez [EMAIL PROTECTED]:
>I found  that resetting the graphic loc at the end did less violence 
>to  the position of the graphic after rotation but this may be a 
>matter of  preference.
>
>Also, using round rather than trunc maintains the shape of the 
>graphic a little better. Doing 8 rotations of 45 degrees with trunc 
>does alter the shape.
   Suggestion: Rather than perform each new rotation on the graphic's current 
set of points, why not keep a running total of the accumulated angle, and 
rotate the *original* set of points *every time*? If you rotate the current 
set of points, you run the risk of accumulating roundoff error and such; if 
you always rotate the original set of points, you never have more than one 
rotation's-worth of error to worry about.
   Hope this helps...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


stackFileType Equivilent for Windows?

2003-04-01 Thread Edwin Gore
I'm wondering if there is an equiviet to StackFileType for windows that will 
automatically default the save dialogs to using a specific filetype description and 
extension.

I ask because I would prefer to use Revolutions built in detection of whether a stack 
has changed etc, but if I do that, then it always wants to save my data-stack as a 
.rev file, even if I choose a "all file types" and manually type in a different 
extenstion i get file.XXX.rev . It's irritating...

Thanks!
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Filtering with variables

2003-04-01 Thread Jeanne A. E. DeVoto
At 10:43 AM -0800 4/1/03, [EMAIL PROTECTED] wrote:
>Is there a way to filter a container with a variable?
>filter tSort with "[tSelection]*"

Try this instead:

  filter tSort with "[" & tSelection & "]*"

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Graphic>Image

2003-04-01 Thread Ken Norris
Hello,

1) How can I change a graphic into an image?

2) How can I change an image into a "skin", i.e., irregular border as the
fine edge of the image?

TIA,
Ken N.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Filtering with variables

2003-04-01 Thread bfether
Is there a way to filter a container with a variable?

I want to sort a container by the first letter of the item, based on the selection made in a tabbed button (such as the letter A).  This script won't work:

on menuPick tSelection
filter tSort with "[tSelection]*"
end menuPick


TIA...

Best regards,

.signature--
Ben C. Fetherston, Jr.


RE: Color My Word--Open Color Palette

2003-04-01 Thread Howard Bornstein
> I had discounted 
>anything that required a locked field, since the user will be editing 
>the field at the time.  Then it hit me that all I needed was your field 
>code and a little button to lock the field for them when they're ready 
>to do the formatting. 

Actually, you don't have to lock the field to get this stuff to work. I 
used that in the example just to make it clear.

Let's say you have an unlocked text field that you want to allow a user 
to format. Place some buttons next to it labeled "Bold", "Italic" 
"Plain", etc. You can also provide popups for font and font size. Your 
users simply selects any text that they want to operate on and click the 
buttons or popups.

The basic code to operate on the selected text looks like this:

on mouseup
-- italicize the selected text
  if the selection is not empty the
put the selectedchunk into sc
-- see if the text already has some style info
put the textstyle of sc into currentStyle
if currentStyle is empty then put "plain" into currentstyle
-- add italics to any existing style
put currentStyle&comma&"italic" into newStyle
set the textStyle of sc to newStyle
  end if
end mouseup

This will work fine, even if the text field is not locked.

Fonts and font sizes are a little different but not very hard. Let me 
know if you want more details.

Hope this helps.

Regards,

Howard Bornstein

D E S I G N  E Q
www.designeq.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button vs. Message box scripts;

2003-04-01 Thread Scott Rossi
Recently, "Jim Hurley"  wrote:

> Regarding revRotatePoly:  My version probably does violence to the
> language by using text as a parameter sent to a handler that expects
> only a graphic.

There are also some polygon rotation scripts in the Tangram stack available
via our stack player.  Paste the following in your message box:

   go stack url "http://www.tactilemedia.com/panel.mc";

Alternatively, you can see here:

   http://www.tactilemedia.com/download


Regards,

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

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is there a way to interrupt a stack?

2003-04-01 Thread Alex Rice
On Tuesday, April 1, 2003, at 12:29  AM, erik hansen wrote:

command + period?
BTW, what's the equivalent to command+period on Win32? I thought it was 
Conrol-C...

Thanks,

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is there a way to interrupt a stack?

2003-04-01 Thread Victor Eijkhout
command + period?
I thought that didn't work, but that was because I couldn't get one 
in between two "answer" dialogs. In the end that did it, though.

So you can not break out of an answer dialog, it seems.
--
Victor Eijkhout <[EMAIL PROTECTED]>
tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F)
http://www.cs.utk.edu/~eijkhout/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button vs. Message box scripts;

2003-04-01 Thread Jim Hurley
Jeanne,

Regarding revRotatePoly:  My version probably does violence to the 
language by using text as a parameter sent to a handler that expects 
only a graphic.

Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Button vs. Message box scripts;

2003-04-01 Thread Jim Hurley
Message: 13
Date: Sun, 30 Mar 2003 14:24:39 -0800
To: [EMAIL PROTECTED]
From: "Jeanne A. E. DeVoto" <[EMAIL PROTECTED]>
Subject: Re: Button vs. Message box scripts; P.S. Invert matrices?
Reply-To: [EMAIL PROTECTED]
At 6:54 AM -0800 3/28/03, Jim Hurley wrote:
On mouseUp
revrotatepoly graphic "MyPoly", 90
end mouseUp
return an error: "Chunk source is not a container."
The problem here is that revRotatePoly needs an expression that evaluates
to a graphic reference, not a graphic reference itself. (This is for
complicated reasons having to do with the fact that revRotatePoly is a
Transcript library routine.) This will work:
  revRotatePoly the long ID of graphic "MyPoly",90


Jeanne,

Following  your instructions I went into the RR toy box of back 
scripts to find the code for revRotatePoly. There are some strange 
things there.  I do not understand "revPoints" at all. It seems to be 
a whole new kind of source for value. But ignorance is bliss and, 
using your suggestion about using the long ID I came up with the 
following version of revRotatePoly which seems to work in buttons.

on mouseUp
  revRotatePoly2  "myGraphic",45
end mouseUp
on revRotatePoly2 pGraphic, pAngle
  lock screen -- Add this line
  put the long ID of graphic pGraphic into pGraphic --Add this line
  --put the topLeft of pGraphic into tTopLeft # Delete this line
  put revPoints(pGraphic) into tPoints
  put the loc of pGraphic into tLoc
  pr tLoc
  put sin(pAngle * (pi / 180)) into tSinAngle
  put cos(pAngle * (pi / 180)) into tCosAngle
  put (number of items of tPoints) div 2 into tNumItems
  repeat with i = 1 to tNumItems
put (item (i + (i - 1)) of tPoints) into tCurrentH -- + item 1 of 
the center
put (item (i + i) of tPoints) into tCurrentV -- + item 2 of the center

--Use "round" instead of trunc in the lines below

put round((tCosAngle * tCurrentH) - (tSinAngle * tCurrentV)) into tTempH
put round((tSinAngle * tCurrentH) + (tCosAngle * tCurrentV)) into tTempV
put tTempH + (item 1 of tPoints) into tCurrentH
put tTempV + (item 2 of tPoints) into tCurrentV
put tCurrentH,tCurrentV & comma after tFinalPoints
  end repeat
  delete last char of tFinalPoints
  set the points of pGraphic to tFinalPoints
  -- set the topLeft of  pGraphic to tTopLeft  # Delete this line
  set the loc of pGraphic to tLoc -- Add this line
  unlock screen --Add this line
end revRotatePoly2
I found  that resetting the graphic loc at the end did less violence 
to  the position of the graphic after rotation but this may be a 
matter of  preference.

Also, using round rather than trunc maintains the shape of the 
graphic a little better. Doing 8 rotations of 45 degrees with trunc 
does alter the shape.

Regards,

Jim
--
Jim Hurley
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Test or Quiz Examples

2003-04-01 Thread Ken Norris
**
> Date: Mon, 31 Mar 2003 19:08:41 -0500
> Subject: Test or Quiz Examples
> From: edutec <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> 
> Somebody kindly point me in the direction of educational/training test or
> quiz examples made with Rev. -- All the better if the quiz has summative
> data (e.g., questions answered correctly, right answer, score).
--
Here's the most comprehensive set of RR plug-in tools I've seen for
education:



But there are dozens of HC stacks that what you want, which should be a
breeze to convert as long as they don't use type II XCMD's, or you can just
adapt the scripts.

Here's a few to look at,




Here's one to help you write your own quizzes:



HTH,
Ken N.






___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Icon queries

2003-04-01 Thread Graham Samuel
On Mon, 31 Mar 2003 10:19:45 -0500 Ken Norris 
<[EMAIL PROTECTED]> wrote:
I see. You're talking about DT/folder icon families. Other than creating
images with Rev's limited capabilities, I don't see any relevence to Rev at
all for what you're talking about. As I see it, it's a Rapid Application
Development tool, not a DT icon tool. I think you're on the right track with
"Iconographer".
Ken, not to flog this interminably, but my real point is that since 
(I fully agree) Rev IS a RAD tool, I assume every developer wants to 
make it easy to get to the final result of all their efforts, which 
is a standalone that behaves like any program for the chosen 
platform, icons and all. That's why I'm looking for cookbook 
solutions. The same sorts of issues arise in relation to associating 
documents with apps, and getting apps to behave the way the OS 
expects (in the Mac, this means responding to Apple Events, for 
example). Many of these issues have already been discussed and solved 
on the list, but I just felt that the icon one had not been covered 
in a really useful way.

Graham
--
---
 Graham Samuel / The Living Fossil Co. / UK & France
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT movie address in player(2)

2003-04-01 Thread Ken Norris
**
> Date: Mon, 31 Mar 2003 15:26:19 -0600
> From: "Ronald D. Zellner" <[EMAIL PROTECTED]>
> Subject: Re: QT movie address in player(2)

>
> Another approach was to add this script to the card.  It seems to
> take care of the problem. Does this make sense?
> 
> on opencard
> put the filename of this stack into P
> --isolate & remove the file name from the path
> repeat with X = the number of characters in P down to 1
> if character X of P = "/" then
> put " " into character X of P
> exit repeat
> end if
> end repeat
> Delete the last word of P
> --substitute the movie name and set the player filename
> set the filename of Player "Player1" to P & "/MainMovie.mov"
> end opencard
--
That looks like it will work, but you can eliminate a few lines and the loop
by doing basically the same thing except you set the itemDelimiter to "/"
and get the last item.

Ken N. 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT movie address in player

2003-04-01 Thread Ken Norris
***
> Date: Mon, 31 Mar 2003 12:38:34 -0600
> From: "Ronald D. Zellner" <[EMAIL PROTECTED]>
> Subject: Re: QT movie address in player
>
>> a) Put the stack file and the movie file in the same folder, which
>> normally becomes the defaultFolder at startup of the stack.
> 
> This seems to be the heart of the problem, I'm running 1.1.1 and the
> defaultFolder does not change when I startup a stack, the
> defaultFolder remains the folder where Revolution 1.1.1 is located.
--
It doesn't matter, Ron. When you build your standalone, just put the movie
file in the same folder as the standalone file.
--
>> b) Have your stack simply call the movie file for the player by its
>> fileName. The assumption here is that the movie file is in the
>> defaultFolder.
> 
> I can change the defaultFolder and then set a relative path to the
> movie, but this is lost when I restart the stack later.  I can script
> the stack to change the defaultFolder when opening, but this will not
> work when I change the location of the files to another computer.
--
 Nope:

1) It won't get lost if you save it.
2) Once again: When you build the standalone, put it and the movie in the
same folder, and burn it onto the CD.

When you open the folder and doubleclick the standalone, your movie, being
in the same folder, will play. I just did it myself. Actually, its a live
streaming movie on top of that (the web browser is open and connected).

If I make a standalone and I take it with the movie file in the folder to my
local ISP and stick it in one of their online machines with QT on board and
it works, will that convince you?
--
> Will the 2.0 upgrade affect any of this?
--
I dunno, but I suspect not; there's nothing wrong with it like it is.
>> 
>> c) Burn the FOLDER containing the stack and the movie onto the CD.
> 
> I assume you mean to create a standalone file first?
--
Yes, that was the assumption. If the machine your sending it to doesn't have
Rev, you'll have to anyway.

But it doesn't matter. I'm watching WGBH live in a player of a stack which
is in a folder on the desktop. The QT movie file is in the same folder. I
opened the stack from inside Rev. IOW, the card player in the stack uses a
simple relative path to the streaming movie file which is in the same
folder, even though I opened the stack from inside Rev.

If I make it a standalone, I could open it without Rev. I have no doubt
whatsoever that if I copy the folder to some kind of media or upload it to
another machine that has QT and is online, I can watch it there too.
--
>> 
>> 2) If you aren't concerned about stack size (memory) you can embed the movie
>> into the stack as a videoClip object
> 
> Yes, that is a solution that doesn't require the path at all, but I'm
> not sure I want to go that way.
--
I understand. Once it's in, it's in, to use a technical phrase :+) I don't
how your stack will be deployed, but if you will have some sort of playlist,
e.g., be running different movies in the player, then having files is the
way to go.

OTOH, if it is and will remain a one-shot deal, then embedding the videoClip
will, as you say, eliminate filepath problems.

I hope this helps. I don't know how else to explain it.

Ken N.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution