External Collection for Windows

2002-02-05 Thread Shao Sean

I noticed on the website that there is an external collection for MacOS and
MacOSX.. is there something like that available for Windows?

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



Re: Employee Database Tutorial "broken" on OS X?

2002-02-05 Thread Terry Vogelaar

>> First, there is a mongo button covering up the majority of the data
>> entry fields. I can't for the life of me figure out what it is or why
>> it's there but it sure makes the stack ugly and almost unusable.
> 
> This is the image button, click on it to select an image. The image is
> meant to appear on or over the button, but this doesn't seem to always
> work in the OS X version either.

Neighter does it work on Mac OS classic 9.2.2 here.

Terry


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



Re: PreOpenStack confusion

2002-02-05 Thread Sarah Reichelt

I don't know how to stop it happening when you return to the stack, but the
way I stop it happening when opening other stacks is to give the other
stacks empty handlers of the same name.

If the substacks have in their scripts:
on preOpenStack
end preOpenStack

with no "pass", then they won't try & run your main stacks preOpenStack
handler.

I hope someone else has a neat solution to problem (ii).

Cheers,
Sarah

> How do I set a clean-up operation to work when a stack is first
> opened, but not when I change to another stack such as a substack or
> even the documentation? My attempt using a preopenstack handler in
> the stack that I want to clean triggers whenever I open ANY stack,
> and of course fails because the false-triggering stack doesn't have
> the objects referred to in the clean-up routine.
> 
> I want to (i) trigger the handler when the user first starts a
> particular stack, (ii) not have it operate when that stack is
> returned to from a different stack in a session, and (iii) only have
> it operate on the appropriate stack. These sound easy, but I can't
> see  a way to do it without conditionals testing the name of the
> stack and a global holding information regarding whether the clean-up
> has been run already. Surely it is easier than that!
> 
> Regards,
> 
> -- 
> Michael J. Lew
> 
> Senior Lecturer
> Department of Pharmacology
> The University of Melbourne
> Parkville 3010
> Victoria
> Australia
> 
> Phone +613 8344 8304
> 
> **
> New email address: [EMAIL PROTECTED]
> **
> ___
> 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



Getting a card's position in a group

2002-02-05 Thread Devin Asay

Hi all,

I can easily go to a specific card relative to its position in a group:

   go card 3 of group "myGroup"

Is there a simple way to return a card's position in the group?

   similar to: get the number of this card  -- returns the card's 
ordinal position in the stack

   but what I want is:  get the number of this card in group "myGroup"
   so that it returns the ordinal position within the group.

The information must exist somewhere because I can go to a specific 
card within the group.  But how to access it when I'm alread on that 
card?

Devin
-- 
Devin Asay
Humanities Research Center
Brigham Young University
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Icons

2002-02-05 Thread yves COPPE

Hello,

I work on Mac
I've a resedit file full of cicn.
I go to Rev and choose the development menu -> image library
I click "new Libray" and give a name : My Icons"
How can I import my cicn into my newly created library for use in stacks ?

Thanks.
-- 
Greetings.

Yves COPPE

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



Re: Text encoding

2002-02-05 Thread Kevin Miller

On 4/2/02 2:42 pm, Tim <[EMAIL PROTECTED]> wrote:

> I'm sorry, I should have been more clear. My problem lies in displaying non
> english text the same way on both platforms using Rev. So far the only thing
> that works is RTF and Unicode (neither of which I fear is supported by rev).
> Are there any solutions that you can recommend?

At present unicode isn't support, but support for this stuff is planned.  In
the mean time, search the list archives for a discussion on this issue and
if you still can't resolve it please send me a copy of the stack, with
screen shots of Mac and Windows and instructions.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

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



Re: Mac menubar question

2002-02-05 Thread Kevin Miller

On 4/2/02 2:41 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> A group of buttons can be used as a Mac menubar, but
> there are some differences in behavior between how those
> menus work and how the buttons work if they are used
> directly, e.g., displayed in a palette.  It appears that
> I cannot change the contents of a Mac menubar menu "on
> mousedown," while I can do that if the button itself is
> pressed from a palette.

You do get a mouseDown message sent to the group containing the buttons
though.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

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



Re: defaultstack problem

2002-02-05 Thread Rob Cozens

>> Rev keeps creating the new card after the first one.

Moi:>I believe if you go to the last card of stack2 (locking the screen if
necessary) before sending the
>create command, you will find your new card and it's data in the right
>place every time.

 John...

There is a third option:  If you don't want to have to go to stack2 to
create the new record, change your script to

> send "create card" to stack "stack2"
> Put info into field 1 of card 2 -- New card will always be card 2 so long
>as you don't establish a current card position in stack2


Rob Cozens
CCW, Serendipity Software Company

"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: Get the filesize?

2002-02-05 Thread Kevin Miller

On 5/2/02 7:48 am, Chipp Walters <[EMAIL PROTECTED]> wrote:

> Anyone know how to get the size of a file? thx.

Check out the long files in 1.1.1B1.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

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



Re: Put data on the clipboard?

2002-02-05 Thread Kevin Miller

On 4/2/02 9:13 pm, David Vaughan <[EMAIL PROTECTED]> wrote:

> I agree. That was my problem.
> I still find it odd that I have to create a hidden field (better than
> off-screen, as Doug Ivers noted) as a roundabout to make this work but I
> guess it would not be a high priority change if we requested the feature.
> Also, having to write at least three lines of code (put variable into
> field; select text of field; copy) where one will do is pretty weak. The
> same thing happens for paste.

You could write a custom function to do this in one line.  This is already
on the feature request list and I'll add your vote.

Thanks,

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

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



Re: defaultstack problem

2002-02-05 Thread Rob Cozens

>> Rev keeps creating the new card after the first one.

Moi:>I believe if you go to the last card of stack2 (locking the screen if
necessary) before sending the
>create command, you will find your new card and it's data in the right
>place every time.

 John...

As an aside, since you have to establish a current position in the db stack
before adding a new record anyway, you can build your db stack in "record
key" or some logical format by creating each new card between the two cards
where it would be ordered.  For example, my db stacks create records in
order by record type and key.  Having filed the records in order
originally, one can then support relative (ie: previous record, next
record) access as well as keyed access.

Rob Cozens
CCW, Serendipity Software Company

"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: defaultstack problem

2002-02-05 Thread Rob Cozens

>> Rev keeps creating the new card after the first one.

Hi John,

The create command places the new card after the current card, not the card
that receives the command.

I believe if you go to the last card of stack2 (locking the screen if
necessary) before sending the create command, you will find your new card
and it's data in the right place every time.

Rob Cozens
CCW, Serendipity Software Company

"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: RealBasic is real basic

2002-02-05 Thread Rob Cozens

Revolution is the ONLY environment that is closest to the promise of 'write once, run anywhere'.

John, et al:

For history's sake, let me point out that there actually once was a "write once run anywhere environment": the UCSD-p operating system & UCSD PASCAL.  It ran on a wide range of computers from Dec minicomputers to Radio Shack TRS-80s in the 1970s.  

Like RR, it was a runtime (ie: interpreted) environment; unlike RR it included its own O/S (which eliminates many cross-platform issues such as different sizes of text).  Like RR it included a (reasonably good for the time) debugger and the ability to resolve routine libraries at runtime (ie: 'start using" in Transcript syntax).

Several days ago someone suggested there might be a slight performance hit running a RunRev stack created on a Mac on a Windows box because the Intel and Motorola CPU chips read each word in reverse order.  In 1986 I spent two frantic weeks trying to find the cause of a dramatic (40-60%) performance degredation of our corporate computer (a multi-user Motorola 68xxx CPU).  It turned out that the last O/S upgrade sent me had been created for an Intel 808x!  Everything worked just fine; but the operating system was wasting an enormous amount of time reversing the byte sex of every word it read.

Watching UCSD-p System lose out to MS/DOS when the IBM PCs originally were introduced, I learned first hand that a technically and functionally superior product can fail

a. when competing against an inferior product backed by big advertising $, or

b. when corporate management doesn't understand the product or the market.

In this case Microsoft offered MS/DOS for $40 while Softech Microsystems charged over $400 for the IBM PC implementation of the p-System.

In my book of computer history, Softech's IBM PC pricing strategy and Apple Executives' inability to "get" what HyperCard was all about rank right up there with Xerox's unappreciation of the PARC GUI.
Rob Cozens, CCW

"Where but America can the person who lost the popular vote become President without a coup?" 

Re: REALbasic (was Re: Pocket PC)

2002-02-05 Thread Kevin Miller

On 4/2/02 9:13 pm, Lorin Rivers <[EMAIL PROTECTED]> wrote:

> It's not all my intent to hijack the Rev lists and turn this into a
> discussion of the relative merits of REALbasic versus any other tool.

Indeed, this is not the place.

>> There is an article on our web site that looks at the differences between
>> Rev and REALBasic - if you don't have time to read it all you can check out
>> the summary towards the end.  This shows amongst other things the number of
>> hours needed to develop a simple sample app in Rev or RB.
> 
> I don't believe the article in question is particularly current about
> REALbasic's capabilities.

The article is as current about REALBasic as it is about Revolution - both
products have been revised somewhat since it was written.  For example, on
the Revolution side, the database features - a key part of Revolution - were
not even shipping when the article was written.  No doubt there will be a
revision of the article at some point to cover the new features in both.

But the main points of the article were not about individual features, and
thus are not out of date.  The main point is that Revolution is simply a
more productive environment to work in.  You write less code, can then
execute it live immediately, and can edit and debug on all platforms.  Of
course if there is a particular feature that one or other product has that
the other doesn't and no external is available that will determine your
choice.  Otherwise, Revolution offers a lot more productivity on more
platforms.  And contrary to popular belief, Revolution is a compiled
language, which has similar performance to REALBasic.  Sure there are some
areas one or other as faster, but they are in the same ballpark.

> Please also check out the numerous
> independent reviews of REALbasic.

The fact that REALBasic has been shipping longer does mean that there are
currently more reviews of it available.  However, Revolution is also making
its way steadily into the mainstream press, and our first independent
review, by the UK's leading Mac magazine, gave it a five out of five rating
and called it the "Holy grail of cross-platform software development".  A
good start...

Kind regards,

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

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



RealBasic is real basic

2002-02-05 Thread JohnRule
Revolution is runtime (i.e. compile on the fly)...RealBasic is , well, real basic. 

  Programmers have been trapped in the paradigm of 'code/compile/test' for so long that they look at me as if I am from Mars when I mention the term 'runtime'. They don't believe me when I tell them that they can skip the 'compile' stage, and just test. AppleScript may do this, but that is 'Apple' on an 'Apple' platform only (yawn). Revolution is the ONLY environment that is closest to the promise of 'write once, run anywhere'. After trying Codewarrior Professional, and going through the Sun Java certification course to become intimate with Java, I can truly attest to this...everything else is 'real basic' at this point (and really counter-productive IMHO).

  Now all we need is Windows CE support...then we can take over the world. They didn't call it 'Revolution' for nothing!

;-)


JR


In a message dated 2/5/02 3:51:36 AM Atlantic Standard Time, Lorin Rivers
 writes:


REALbasic's Windows support improves with every release. We rarely 
get complaints about it any more.

>The fact is that REALBasic cannot edit or debug a Windows application on
>Windows.  To develop a Windows application, you must build it on the Mac, go
>over to Windows, test it, then come back to the Mac to make changes.

If changes are required, that's true.



Encrypt/decrypt

2002-02-05 Thread David Vaughan

I thought I recalled seeing mention of encryption within Rev in a 
previous thread but a content search of the messages I have saved found 
nothing. How can you encrypt and decrypt data within Rev? Is there an 
intrinsic function (which I have not yet found) or do I resort to 
Applescript? This is no longer a stopper for what I am doing but I would 
like to know the answer.

thanks
David

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



Re: Does Applescript work?

2002-02-05 Thread Ken Norris (dialup)

on 2/4/02 3:15 PM, Sarah Reichelt at [EMAIL PROTECTED] wrote:

> In HyperCard, you could set the language of a particular script to
> AppleScript. In Rev, you don't have this option so the AppleScript has to be
> stored somewhere else or assembled and then used with a "do as AppleScript".
> 
> Edit the script in an AppleScript editor first and then copy it into a field
> or property (I like Jeanne's suggestion - I keep forgetting to use
> properties). All I am saying is that it is better not to try something like:
> 
> put "tell application " & quote & "Finder" & quote & return in theScript
> put "return the processes" & return after theScript
> put "end tell" & return after newScript
> do theScript as AppleScript
> 
> This works for a short script but makes debugging very hard. It's much
> easier if you can see the final script at any stage.
--
OK. That makes sense, now. I actually thought Rev was scriptable with AS for
Mac-only. Silly me. That's why I asked.

Ken N.


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



Buffer on X vs. Classic

2002-02-05 Thread cowhead

I think this has already been discussed, but at the time I didn't quite
follow or pay attention.  Anyway,  I have this situation:

1.  a player is playing a quicktime movie (actually a GIF) with looping
2.  I move the player around while it is playing (using move relative)

In Mac classic, with the alwaysBuffer of the stack and player set to
true, the movement looks nice and smooth (although I think the player
pauses briefly during the move).

In contrast, with mac OSX, you must set the alwaysBuffer of the player
to false, or it disappears, at least briefly, during the move, giving a
choppy, blinky appearance.  With alwaysBuffer() set to false, the move
looks good as it does on classic. BUT:

3.  with always buffer set to false, a playing or paused player cannot
appear behind a field, even if the layer of the field is way over that
of the player.  I think this is true on both platforms.

So, why does the "alwaysBuffer" of a player work oppositely under X and
classic?  Bug?

thanks,
mark in Japan
(ps.  all results used latest test versions of Rev.)

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



Re: Get the filesize?

2002-02-05 Thread Shao Sean

> This looks like the ticket, Shao. Thx!
not a prob.. hope someone else finds it useful too ^_^

> I thought there might be an easier way.
mm.. there might be.. anyone? maybe the code can be cleaned up, speed up,
etc..? i know that i do a few checks to see if the file really does exist,
but that's okay.. doesn't seem to be slow at all..

> BTW, I think I'll insert a put the defaultFolder into oldDefaultFolder
> before changing it, that way I can restore it at the end.
store the original default folder before calling this function and then
restore it after calling it.. or use this modified code..


-- Start code --
function getFileSize pFullFilePath
  # Declare the variables
  local vFilePath, vFileName, vDirectoryListing, vDirectoryListingLine,
vOriginalDirectory -- CHANGE: added the vOriginalDirectory variable

  # Store the current default directory
  put the defaultFolder into vOriginalDirectory  -- CHANGE: added this line

  # Split the file's path and name
  set the itemDelimiter to "/"
  put the last item of pFullFilePath into vFileName
  put pFullFilePath into vFilePath
  delete last item of vFilePath
  set the itemDelimiter to comma

  # Change the directory
  set the defaultFolder to vFilePath

  # Get the directory listing
  put the detailed files into vDirectoryListing

  # Find our file and return the file size
  if (vFileName is among the items of vDirectoryListing) then
repeat for each line vDirectoryListingLine in vDirectoryListing
  if (item 1 of vDirectoryListingLine = vFileName) then
set the defaultFolder to vOriginalDirectory  -- CHANGE: added this
line
if (the platform is "MacOS") then
  return item 2 of vDirectoryListingLine + item 3 of
vDirectoryListingLine
else
  return item 2 of vDirectoryListingLine
end if
  end if
end repeat
  else
return -1
  end if
end getFileSize
-- End Code --



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



RE: Get the filesize?

2002-02-05 Thread Chipp Walters

I'm on a PC...

This looks like the ticket, Shao. Thx! I thought there might be an easier
way. BTW, I think I'll insert a put the defaultFolder into oldDefaultFolder
before changing it, that way I can restore it at the end.

best,

Chipp

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shao Sean
Sent: Tuesday, February 05, 2002 2:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Get the filesize?


returns -1 if it can't find the file.. you can change this to suit your
needs

-- Start code --
function getFileSize pFullFilePath
  # Declare the variables
  local vFilePath, vFileName, vDirectoryListing, vDirectoryListingLine

  # Split the file's path and name
  set the itemDelimiter to "/"
  put the last item of pFullFilePath into vFileName
  put pFullFilePath into vFilePath
  delete last item of vFilePath
  set the itemDelimiter to comma

  # Change the directory
  set the defaultFolder to vFilePath

  # Get the directory listing
  put the detailed files into vDirectoryListing

  # Find our file and return the file size
  if (vFileName is among the items of vDirectoryListing) then
repeat for each line vDirectoryListingLine in vDirectoryListing
  if (item 1 of vDirectoryListingLine = vFileName) then
if (the platform is "MacOS") then
  return item 2 of vDirectoryListingLine + item 3 of
vDirectoryListingLine
else
  return item 2 of vDirectoryListingLine
end if
  end if
end repeat
  else
return -1
  end if
end getFileSize
-- End Code --

___
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: Get the filesize?

2002-02-05 Thread Ian Summerfield
Title: Re: Get the filesize?



AppleScript if it’s a Mac.  Which platform?

On 5/2/02 7:48 am, "Chipp Walters" <[EMAIL PROTECTED]> scribed:

Anyone know how to get the size of a file? thx.
 
-Chipp









Bug in Creating Distribution

2002-02-05 Thread Dan Shafer

Creating a distribution for OS X in OS X. As the standalone gets 
created and a confirm dialog shows up, I get an error:

  * There was an Execution Error at 11:44:09 PM
Error description:  Handler: can't find handler
Revolution User Interface Error: Object: card id 1051 of stack 
"/Diskourse/Applications/Revolution 1.1 OS 
X/components/tools/revapplicationoverview.rev"



Value: setApplSize

The app gets created so it appears no harm is done, but I'm 
wondering. I've actually seen a few error dialogs since I started 
this simple exploration stuff using principally tutorials. Does this 
indicate usual problems with an uprev or what?
-- 
Dan Shafer, Personal Creativity Trainer and Consultant
Trained Hartman Value Profile Analyst
http://www.danshafer.com/valueprofile.html
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Get the filesize?

2002-02-05 Thread Shao Sean

returns -1 if it can't find the file.. you can change this to suit your
needs

-- Start code --
function getFileSize pFullFilePath
  # Declare the variables
  local vFilePath, vFileName, vDirectoryListing, vDirectoryListingLine

  # Split the file's path and name
  set the itemDelimiter to "/"
  put the last item of pFullFilePath into vFileName
  put pFullFilePath into vFilePath
  delete last item of vFilePath
  set the itemDelimiter to comma

  # Change the directory
  set the defaultFolder to vFilePath

  # Get the directory listing
  put the detailed files into vDirectoryListing

  # Find our file and return the file size
  if (vFileName is among the items of vDirectoryListing) then
repeat for each line vDirectoryListingLine in vDirectoryListing
  if (item 1 of vDirectoryListingLine = vFileName) then
if (the platform is "MacOS") then
  return item 2 of vDirectoryListingLine + item 3 of
vDirectoryListingLine
else
  return item 2 of vDirectoryListingLine
end if
  end if
end repeat
  else
return -1
  end if
end getFileSize
-- End Code --

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



Employee Database Tutorial "broken" on OS X?

2002-02-05 Thread Dan Shafer

Just finishing up going through the Rev tutorials preparatory to 
starting to really dive into this beast and I encounter a problem.

When I bring up the "Independent Study" tutorial stack which is the 
Employee Database example, a couple of weirdnesses develop.

First, there is a mongo button covering up the majority of the data 
entry fields. I can't for the life of me figure out what it is or why 
it's there but it sure makes the stack ugly and almost unusable.

Second, there's no place for pictures.

Third, the tutorial says we can use the images in the sub-folder in 
the tutorials folder using the "picture feature" but I'm darned if I 
can find that feature anywhere on the menu bars in the app.

Finally, if I have a few new employees defined and then I import from 
a text file, it clobbers all but the first employee I've added 
without so much as a by-your-leave or a confirmation dialog.

So is this stuff OS X-peculiar or have others seen this stuff?
-- 
Dan Shafer, Personal Creativity Trainer and Consultant
Trained Hartman Value Profile Analyst
http://www.danshafer.com/valueprofile.html
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution