Background

2002-11-24 Thread Adrian L'Armand
I must have missed something but how does one put buttons and fields in the
background so that they appear on every card. I am coming from HyperCard
where it was very easy.
Adrian

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



matrixMultiplication of imageData

2002-11-24 Thread Peter Lundh
Hi all-

I know it's Sunday, but I urgently need some help with the matrixMultiply
command. I have an image in RGB format whose data resides in imageData. I
have the following matrix computation to perform:

|16 |   | 65.481  128.553   24.966|   |R|
|128| + |-37.797  -74.203  112.000| * |G|
|128|   |112.000  -93.786  -18.214|   |B|

I then need to put the result into a new image

Grateful for any advice, or help.

-Peter
-- 
Peter Lundh von Leithner
E: [EMAIL PROTECTED]
Derby
UK

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



Re: Background

2002-11-24 Thread Terry Vogelaar
 I must have missed something but how does one put buttons and fields in the
 background so that they appear on every card. I am coming from HyperCard
 where it was very easy.

It still is easy, but it is different. Just group the objects that form a
'background'. Groups replace the HC background. You only have to turn the
'backgroundBehaviour' on in the props palette.

This approach is much more flexible, because you can place multiple groups
on one card.

In the docs: Learning Revolution-For new developers-Experienced HC/SC
developers section About... Revolution for HC developers paragraph
Backgrounds and groups explains it all.

Terry

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



RE: Background

2002-11-24 Thread Gary Rathbone
Take a look at 
http://www.xworlds.com/metacard/metaclass.htm

Although its Metacard based the principal is the same. Lesson 6 deals
with Groups and Backgrounds. 

Or take a look at
http://www.runrev.com/revolution/developers/articles/tipoftheweek/5.html
Which is aimed mainly at developers coming from HyperCard - thanks to
Sarah Reichelt.

Regards

Gary Rathbone BSc MBCS
Chartered Information Systems Practitioner


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Adrian
L'Armand
Sent: 24 November 2002 12:45
To: [EMAIL PROTECTED]
Subject: Background


I must have missed something but how does one put buttons and fields in
the background so that they appear on every card. I am coming from
HyperCard where it was very easy. Adrian

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


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



rev UI: properties/scripts floating windows

2002-11-24 Thread Oliver Hardt
hello:  is there a way to stop the script/properties windows from 
floating in the UI?  if not, i would like to suggest this as a future 
feature of RR.  thanks.  olli.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Controls of Stack

2002-11-24 Thread Rob Cozens
You are certainly welcome, Monte.

I think translatability is relatively easy to achieve in Transcript, 
and yet a feature that would help differentiate Revolution apps from 
those created on other platforms.  Certainly user translatability 
can't be attained using C or other platforms that require pre-runtime 
library/resource linking.

I will make time available to assist anyone working on translatable 
RunRev apps.

If you have any questions, a need to see the translation handlers in 
Serendipity Library.rev (which is password protected), or have any 
suggestions how I might improve my approach to translatability, 
please let me know.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.

from The Triple Foole by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Background

2002-11-24 Thread Mark Swindell
on 11/24/02 5:19 AM, Gary Rathbone at [EMAIL PROTECTED] wrote:

 Take a look at 
 http://www.xworlds.com/metacard/metaclass.htm
 
 Although its Metacard based the principal is the same. Lesson 6 deals
 with Groups and Backgrounds.

Thanks for pointing this out.  What a great resource. Talk about your basic
clean, clear, concise and thorough.  Does the Revolution site link to this
resource anywhere? 
 
 Or take a look at
 http://www.runrev.com/revolution/developers/articles/tipoftheweek/5.html
 Which is aimed mainly at developers coming from HyperCard - thanks to
 Sarah Reichelt.

Definitely.  As a former HyperCard/SuperCard user, I found this article to
be of enormous help to me when I was confused as to the group v background
metaphor.  Also very clear and well written.

Mark

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



Re: Http or https - shell MacOSX

2002-11-24 Thread sean nicholas harper
How do you run a shell command in macosx with runtime? This is very useful
functionality for me, but the manual says you can't do it, which seems
silly.

Sean

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



Re: Http or https - shell MacOSX

2002-11-24 Thread Jan Schenkel
--- sean nicholas harper [EMAIL PROTECTED]
wrote:
 How do you run a shell command in macosx with
 runtime? This is very useful
 functionality for me, but the manual says you can't
 do it, which seems
 silly.
 
 Sean
 

Hi Sean,

This will be addressed in version 2.0 ; for now, you
can use a work-around via AppleScript. Here's a link
that explains this and other things:

http://www.sonsothunder.com/devres/revolution/revolution.htm
Scroll to the 'MacOS X' section and click on the link.

Hope this helped,

Jan Schenkel.

PS: Here's perhaps a useful link to search the
use-revolution mailing list archives
http://www.google.com/advanced_search?q=site:lists.runrev.com

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

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Controls of Stack

2002-11-24 Thread Geoff Canyon
Hi All

Does everyone know that repeat with x=1 to the number of controls of stack y
only enumerates the controls on the current card? Bit of a bugger..eh?

How does one parse all the controls of a stack ensuring that those in a
background only get parsed once unless they are fields with the sharedText
set to false... etc

FYI... I'm trying to develop the basis for a language engine when it wasn't
a requirement for the first version of the program. In the short term I want
to generate a list of objects with visible text. Then I'll search scripts
for ask and answer dialogs and any other hard coded text.

When I have all that I'll create stack file with a custom property set that
can be parsed to set everything for a particular language. Then I'll learn
to translate to ... ;-)

Cheers

Monte

It's been a long time, and the code is likely a plate of spaghetti, but the mcRipper 
stack I wrote does exactly this sort of parse all the controls loop:

http://www.inspiredlogic.com/mc/ripper.html
-- 

regards,

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



Printing a portion of a card

2002-11-24 Thread Sarah
Hi All,

I have a problem with printing the bottom portion of a card. It prints 
the correct bit of the card but I can't get it to start at the top left 
of the paper, it always prints down the page as if leaving room for the 
non-printed section of the card.

Here is my setup:

The card is 723 pixels wide x 560 high.
The page setup is for A4 paper in landscape mode.
This gives a printPaperSize of 841,595 (with the default printMargins)

I want to print the card from 4,157 to 719,554.
Here is the command I am using:
	print this card from 4,157 to 719,554 into 72,72,697,451

Surely this should make the printout start 1 inch from the top and 1 
inch from the left of the paper. It looks like it starts 1 inch from 
the left but about 3 inches from the top.

If anyone has any suggestions I would be most grateful. I use Mac OS X 
10.2.2, Rev 1.1.1

Thanks,
Sarah

P.S. In the docs, the into page rect is specified as being top, left, 
bottom, right. I assume this is an error and the standard L,T,R,B is 
still being used.


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


Re: Printing a portion of a card

2002-11-24 Thread Richard Gaskin
Sarah wrote:

 I have a problem with printing the bottom portion of a card. It prints
 the correct bit of the card but I can't get it to start at the top left
 of the paper, it always prints down the page as if leaving room for the
 non-printed section of the card.
 
 Here is my setup:
 
 The card is 723 pixels wide x 560 high.
 The page setup is for A4 paper in landscape mode.
 This gives a printPaperSize of 841,595 (with the default printMargins)
 
 I want to print the card from 4,157 to 719,554.
 Here is the command I am using:
 print this card from 4,157 to 719,554 into 72,72,697,451
 
 Surely this should make the printout start 1 inch from the top and 1
 inch from the left of the paper. It looks like it starts 1 inch from
 the left but about 3 inches from the top.
 
 If anyone has any suggestions I would be most grateful. I use Mac OS X
 10.2.2, Rev 1.1.1

You may need to adjust the printmargins global property.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Development vs Standalone

2002-11-24 Thread Robert Presender
Hi,
I assume that I am doing something wrong.  Will appreciate help.

Using OS 10.2.2/rev 1.1.1r2(OSx)/Emac also OS 9.2.2/rev 1.1.1r2(OS)/PB 
G3

My project works OK in the development stage but when I do a Build, the 
standalone doesn't execute properly.

The standalone opens with the Splash, etc but doesn't  want to execute 
some custom btns both menu and other types on substacks.

 All my substacks appear in the Data folder of the standalone.

 It seems that some btn menus  don't activate their applicable handlers 
in the Main stack when in Build but do  so when in development.

Selected build options are as follows:
Basic .. Create folder for substacks, Mac OSX, auto download.

Stacks .. Current stack file, copy default font and color, remove Rev 
UI ..., move substacks into indiv files, auto apply stackFiles info to 
mainStack

Resources.. ask,answer,cursors, icon lib

MacOS option .. only creatpr signature.

TIA
Regards ... Bob

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


RE: Development vs Standalone

2002-11-24 Thread Monte Goulding

   All my substacks appear in the Data folder of the standalone.

This is the problem. You have three choices:
 - switch off the move substacks into the data folder option when you build
(means you can't save data in them)
 - alter your design so you have a standalone splash screen that opens the
mainstack.
 - alter your design so that code that you have placed in the mainstack but
you wish to call from the substacks is moved into a library stack. (this is
what I would do because you will probably find that you can create a generic
library that you cna use in other apps).

Cheers

Monte

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



Re: Photo Processor/Manager

2002-11-24 Thread Ken Ray
 1) GET RECT OF IMAGE IN ADVANCE:
 Can we get the rect of an image on disk, or the imagedata in variable
 before display?  I can't find any imagedata properties as such.  I
 need to retain the 2048 X 1536 pixel aspect ratio and data in the
 imagedata of high res images coming in off camera, but constrain that
 to a smaller size for display. So that the image will actually fit
 reasonably in a stack window area of about 4 X 5 inches maximum. Also
 one won't know in advance the orientation which could be vertical or
 horizontal.  If we can get the rect before display we can then script
 the image object size accordingly, lock it and then assign the file ref
 to it before display. Of course I could display it first, get the rect
 and then do it... but the idea is to make this as fast as possible.

You can use an offscreen image object that is invisible and whose lockLoc
property is false. Import the image and then get its width and height... OR
you can use an image object whose lockLoc property is TRUE, and then get the
'formattedWidth' and 'formattedHeight' of the image (which will return its
original width and height).

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

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



Re: Why doesn't this work, please?

2002-11-24 Thread Sarah
As Bill says, this is a bug in the IDE. A workaround is to use:
	send choose browse tool to me in 5 ticks

This seems to work MOST of the time.

Sarah

On Saturday, November 23, 2002, at 02:12  pm, Roger Guay wrote:


Hi folks,

I'm using the following script to clone an invisible button Video 
and renaming the clones.  And, despite my attempts to choose browse 
tool the selector tool comes up every time this script is executed:

On mouseDown
  global Vn
  add 1 to Vn
  clone button video
  set the name of last card button to VVn
  set the visible of last card button to true
  choose Browse Tool
end mouseDown

on mouseleave
  choose Browse Tool
end mouseleave


Can anyone help?

Thanks, Roger

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



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



Re: Printing a portion of a card

2002-11-24 Thread Sarah
Thanks for the idea Richard, but I already tried setting the 
printMargins.
Perhaps I should try setting the top margin to a negative number :-)

Sarah

On Monday, November 25, 2002, at 11:06  am, Richard Gaskin wrote:

Sarah wrote:


I have a problem with printing the bottom portion of a card. It prints
the correct bit of the card but I can't get it to start at the top 
left
of the paper, it always prints down the page as if leaving room for 
the
non-printed section of the card.

Here is my setup:

The card is 723 pixels wide x 560 high.
The page setup is for A4 paper in landscape mode.
This gives a printPaperSize of 841,595 (with the default printMargins)

I want to print the card from 4,157 to 719,554.
Here is the command I am using:
print this card from 4,157 to 719,554 into 72,72,697,451

Surely this should make the printout start 1 inch from the top and 1
inch from the left of the paper. It looks like it starts 1 inch from
the left but about 3 inches from the top.

If anyone has any suggestions I would be most grateful. I use Mac OS X
10.2.2, Rev 1.1.1

You may need to adjust the printmargins global property.

--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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




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



Re: Development vs Standalone

2002-11-24 Thread Sarah
Is the splash screen the main stack or do you have another stack which 
contains all the general handlers but which got bumped down the 
hierarchy when you inserted the splash stack? That's what happened to 
me once when using the splash screen approach. The solution was to have 
an extra line in your splash screen openStack handler:
start using The stack with all my scripts

When you do a build like this, my preference is to say No data folder 
as well as using Move substacks...
If you do this, you will find your application folder includes the 
clickable app as well as a folder called
My App.rev_components. I find this works better than creating a data 
folder which has this components folder as a sub-folder of it.

Sarah


On Monday, November 25, 2002, at 12:00  pm, Robert Presender wrote:

Hi,
I assume that I am doing something wrong.  Will appreciate help.

Using OS 10.2.2/rev 1.1.1r2(OSx)/Emac also OS 9.2.2/rev 1.1.1r2(OS)/PB 
G3

My project works OK in the development stage but when I do a Build, 
the standalone doesn't execute properly.

The standalone opens with the Splash, etc but doesn't  want to execute 
some custom btns both menu and other types on substacks.

 All my substacks appear in the Data folder of the standalone.

 It seems that some btn menus  don't activate their applicable 
handlers in the Main stack when in Build but do  so when in 
development.

Selected build options are as follows:
Basic .. Create folder for substacks, Mac OSX, auto download.

Stacks .. Current stack file, copy default font and color, remove Rev 
UI ..., move substacks into indiv files, auto apply stackFiles info to 
mainStack

Resources.. ask,answer,cursors, icon lib

MacOS option .. only creatpr signature.

TIA
Regards ... Bob

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



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



Extract ImageSource URL from a char in a field?

2002-11-24 Thread Sannyasin Sivakatirswami
Is it possible to extract the file name of the image which was used to 
set the imageSource of a character in a field?

eg.

set the imagesource of char 1 of fld browser to (binfile:  
gCurrentFoldergCurrentImage)

Works fine. I get the image in the field but later  can we get the 
actual file reference out?  I would like to some how extract from char 
1 that it was

/myhardDrive/photos/redFlower.jpg

 which now appears in the place of character 1 in the field.

Possible? or has char 1 now become a simple pixel object embedded in 
the stack with no relation/record whatsoever of its source?

Sannyasin Sivakatirswami

Himalayan Academy Publications
[EMAIL PROTECTED]

www.HimalayanAcademy.com, www.HinduismToday.com
www.Gurudeva.org, www.Hindu.org

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


Re: Printing a portion of a card

2002-11-24 Thread J. Landman Gay
Sarah [EMAIL PROTECTED] wrote:


I want to print the card from 4,157 to 719,554.
Here is the command I am using:
	print this card from 4,157 to 719,554 into 72,72,697,451

Surely this should make the printout start 1 inch from the top and 1 
inch from the left of the paper. It looks like it starts 1 inch from 
the left but about 3 inches from the top.

Looking at the numbers, it looks like Rev is adding together the card 
coordinates and the print rect, so you are getting 76 pixels from the 
left and 229 pixels from the top, which is about one inch and three inches.

What happens if you do this instead:

set the printmargins to 72,72,697,451
print this card from 4,157 to 719,554

Untested, but worth a try.

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

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