Re: PreOpenStack confusion

2002-02-06 Thread Dave Cragg

At 2:16 pm +1100 6/2/02, Michael J. Lew wrote:
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!

Something like this in the stack script:

local lcStarted

on preOpenStack
  if the owner of the target is me then
if not lcStarted
  myCleanUp ##your stuff here
  put true into lcStarted
end if
  end if
end preOpenStack

The target of a preOpenStack handler is the card, so you need to 
compare its owner with the stack in question.

Cheers
Dave Cragg
(Revolution -- It's got the power)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



insertion point

2002-02-06 Thread Pierre Delain


When I click into some of my unlocked fields to edit text, the insertion
point (I mean the vertical bar used to select text) does not appear,
although text is editable. This happens for some of my fields, not all of
them (I don't understand why, since they are exactly the same).
How can I have it back?

Thanks

Pierre 

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



Re: Matchchunk problem?

2002-02-06 Thread Dave Cragg

At 9:41 pm +1100 6/2/02, David Vaughan wrote:
The following script:
   put frog frog  into avar
   put 1 into x
   put 1 into y
   get matchchunk(avar,F*g,x,y)
   put it   x  y

returns true...so what happened to the chunk values expected
in x and y ?
What I was REALLY trying to test was whether it would return in x
and y 1 4 or 1 9, but now I would love to know why I get neither
(matchtext fails similarly). What have I done wrong?


This regex stuff needs a twisted mind to master. :)

Two problems with the script:

1. The regular expression F*g is trying to match any number of F's 
, including none followed by a g. This means if there is a g 
anywhere in the text, it will match and thus return true.

I think you want F.*g (F followed by any number of characters 
followed by g)

2.  To get values returned in the variables, you need to enclose the 
relevant part of the regex in parentheses.

on mouseUp
   put frog frog  into avar
   put 1 into x
   put 1 into y
   get matchchunk(avar,(F.*g),x,y)
   put it   x  y
end mouseUp

It returns true 1 9

Cheers

Dave Cragg
(Revolution --It's got the power)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re:preOpenstack cleaning

2002-02-06 Thread Mark Mitchell
[EMAIL PROTECTED] writes:
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!

I would set a custom property of the stack and then set it back on closeStack (or 
shutdown...
depending on how you want it to function)
thus:
On preOpenstack
if the CustomProperties of me is "dirty" then
do the cleaning stuff
set the customProperties of me to "clean"
end if
end preOpenStack

on closeStack
--or shutdown
if the customProperties of me is "clean" then
set the customProperties of me to "dirty"
end closeStack

I've done similar things like this before. Hope it works for you..
kanpai!
mark in Japan

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


Warning about Metacard Carbon

2002-02-06 Thread cowhead

If you use Mac Classic Rev or metacard to create a stack, and then save
it as a metacard stack.be careful!  If you are running classic OS
and both carbon and classic metacard engines are on the system, and you
click directly on the stack, it will open it in metacard Carbon (when it
should be classic) and doing so can wipe the stack clean.  All controls
and scripts simply disappear.  So, of course back up everything, and
make sure that metacard carbon is either not available or that you open
classic stacks only via classic metacards open stack menu.

Got all that?!

mark mitchell
japan

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



Preopenstack confusion

2002-02-06 Thread Michael J. Lew

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



Re: Rotatable fields?

2002-02-06 Thread Roger . E . Eller


Terry,

 Is it possible to rotate a field, so the text is easier to read for
people
 who have their screen upside-down? Just kiddin' about that last part. But
 can it be done? Or should this be a feature request on the
 improve-revolution list?

 Terry

I don't have a clue if this can be done or not (probably not), but I too
have
needed this type of functionality in my apps. My workaround was to do this
in a paint program, and import an image. However, this is no good if the
text needs to change. Feature Request Absolutely!

~Roger Eller [EMAIL PROTECTED]


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



Re: Preopenstack

2002-02-06 Thread John Cuccio

The startup or shutdown handler should do this. They are not sent in the Rev
developement. Only Standalone. When working on a project in developement I
just have to type startup or shutdown in message box to see if everything is
OK.


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



Re: Preopenstack confusion

2002-02-06 Thread Rob Cozens

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?

Hi Michael,

As others have already posted, you can set a global flag, field variable,
or custom property to indicate whether the stack was previously opened
during the session.  Obviously, if you go for options 2 or 3, you have the
problem of when and how to reset the field or property value: you can't
reset it on closeStack.  Since your desire is to monitor stack status
throughout the session, a global will work best because it is reset
automatically when the runtime engine quits.

There is another option:  lock messages before returning to the stack and
script any needed preOpen/OpenStack functions into the script that returns
to the stack.


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: Irregular Shaped Windows and Transparency

2002-02-06 Thread Scott Rossi


On Wednesday, February 6, 2002, at 02:15  AM, Matt Denton wrote:

 I'm trying to find out if there is a relatively easy way to simulate or 
 create irregularly shaped windows with transparency, similar to Audion 
 on the Mac.  I'm hoping there is a way to do it across most common 
 platforms: Mac OS9, PC and again under OSX, I haven't seen it under 
 Windows.

Easy is a relative term.

Custom window shapes can be done in MC/REV on OS9 (Odo WDEF) and Windows 
(RunRev external collection) but apparently there is not yet any way to 
handle this on OSX.

Regards,

Scott Rossi
Creative Director, Tactile Media
[EMAIL PROTECTED]
http://www.tactilemedia.com

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



Re: Irregular Shaped Windows and Transparency

2002-02-06 Thread Troy Rollins

Scott Rossi  wrote:

 Custom window shapes can be done in MC/REV on OS9 (Odo WDEF) and Windows
 (RunRev external collection) but apparently there is not yet any way to
 handle this on OSX.

Interesting. Do you know if this supports levels of transparency or just one
bit masks?
-- 
Troy
RPSystems
www.rpsystems.net

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



Re: Irregular Shaped Windows and Transparency

2002-02-06 Thread Scott Rossi


On Wednesday, February 6, 2002, at 10:20  AM, Troy Rollins wrote:

 Custom window shapes can be done in MC/REV on OS9 (Odo WDEF) and 
 Windows
 (RunRev external collection) but apparently there is not yet any way to
 handle this on OSX.

 Interesting. Do you know if this supports levels of transparency or 
 just one
 bit masks?

Until OSX (and possibly XP), no system has ever supported higher than 1 
bit masking, as far as I know.  Even Audion on OS9 used a hack of 
clipping portions of the desktop within the player window and then 
placing a shadow graphic on the clipped region to make it appear as if 
the player cast dropshadows with variable translucency (8 bits).  But it 
still used a one bit mask.  So the answer to your question is, one bit 
masks only for pre OSX and XP systems.  We'll have to wait and see what 
is possible on OSX and XP.

Regards,

Scott Rossi
Creative Director, Tactile Media
[EMAIL PROTECTED]
http://www.tactilemedia.com

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



popUp btn

2002-02-06 Thread yves COPPE

Hello


I have a popUp btn. I've created a group for this btn with background 
behavior set to true.

I have many cards in the stack and the popUp is on each card.
The user chooses an item in one card and another one in another card.
So when the menu is changed on one card, he is also changed in all the cds
I'd like the choosen item would be specific for each card and thus 
may be different from one cd to another.

How can I proceed ??

-- 
Greetings.

Yves COPPE

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



Re: Preopenstack confusion

2002-02-06 Thread Michael J. Lew

Thanks for the responses to my query. I have used a combination of 
several of the suggestions: a global holding the has_been_cleaned 
flag (because it will automatically expire at the end of a session) 
and empty preOpenStack handlers in the substacks (because my father 
always liked belt-and-braces approaches).

Sorry for the double posting. I sent the first to a miss-typed 
address and didn't expect it to get there.

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



Hierarchical menus

2002-02-06 Thread Tim

One simple question: How do you create sub-items in Hierarchical button
menus. I've tried return and tab, but tab tabs out of the field. What's the
secret?
-- 
Tim

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



Re: Matchchunk problem?

2002-02-06 Thread David Vaughan

Dave

Thanks for that. The regex part is no problem. Not immediately finding 
the form of it I assumed it was primitive DOS-like stuff (I should have 
read your sign-off line!) but the bit about enclosing it in parentheses 
to capture the values was the crucial part I missed. Thanks again.

David

On Thursday, February 7, 2002, at 12:05 , Dave Cragg wrote:

 At 9:41 pm +1100 6/2/02, David Vaughan wrote:
 The following script:
   put frog frog  into avar
   put 1 into x
   put 1 into y
   get matchchunk(avar,F*g,x,y)
   put it   x  y

 returns true...so what happened to the chunk values expected
 in x and y ?
 What I was REALLY trying to test was whether it would return in x
 and y 1 4 or 1 9, but now I would love to know why I get neither
 (matchtext fails similarly). What have I done wrong?


 This regex stuff needs a twisted mind to master. :)

 Two problems with the script:

 1. The regular expression F*g is trying to match any number of F's , 
 including none followed by a g. This means if there is a g 
 anywhere in the text, it will match and thus return true.

 I think you want F.*g (F followed by any number of characters 
 followed by g)

 2.  To get values returned in the variables, you need to enclose the 
 relevant part of the regex in parentheses.

 on mouseUp
   put frog frog  into avar
   put 1 into x
   put 1 into y
   get matchchunk(avar,(F.*g),x,y)
   put it   x  y
 end mouseUp

 It returns true 1 9

 Cheers

 Dave Cragg
 (Revolution --It's got the power)
 ___
 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: Employee Database Tutorial broken on OS X?

2002-02-06 Thread Jeanne A. E. DeVoto

At 7:47 PM -0800 2/5/2002, Terry Vogelaar wrote:
Neighter does it work on Mac OS classic 9.2.2 here.

Confirmed this bug in the Employee Database. It will be fixed in the next beta.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: Employee Database Tutorial broken on OS X?

2002-02-06 Thread Jeanne A. E. DeVoto

At 12:17 AM -0800 2/5/2002, Dan Shafer wrote:
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.

It looks like there was a problem with the geometry management in that
stack - the button is supposed to be to the right of the name and job title
fields, but instead it was getting moved over when the template stack was
cloned. Oops.

Second, there's no place for pictures.

The button is where the pictures go.

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.

This was a bug in the import script. (It wasn't actually deleting the
records from the stack, just from the list.)

Thanks for the reports. These should be fixed in 1.1.1b2.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: Using other languages (Java, Perl, Python, etc) in Rev

2002-02-06 Thread Jeanne A. E. DeVoto

At 4:46 PM -0800 2/5/2002, Jim Witte wrote:
   Is there any way to extend the scripting architecture of Revolution to
support completely different languages than Transcript, specifically
bytecode languages like Java, Perl (at least P6 based on Parrot), and
maybe Python (I'm not sure if it's bytecode based)?

You can run scripts in other languages (using shell or launch). And on
Macs, Revolution supports OSA, so you can run scripts written in any OSA
language (AppleScript, Frontier, Perl, Javascript, there may be others)
from within your application without starting up an interpreter.

However, if you're asking whether there's a way to plug in other languages
so they can use Rev's built-in commands, directly manipulate objects, and
so on, no, there isn't.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: Hierarchical menus

2002-02-06 Thread Jeanne A. E. DeVoto

At 4:10 PM -0800 2/6/2002, Tim wrote:
One simple question: How do you create sub-items in Hierarchical button
menus. I've tried return and tab, but tab tabs out of the field. What's the
secret?

It looks like this is a limitation in the Properties palette - I'll check
on it and put in a bug report, but meanwhile, you were right that tab is
what you want. As a workaround, you can use something like this in the
message box:

  put tab before line 2 of button My Menu

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: Rotatable fields?

2002-02-06 Thread Howard Bornstein

I also recently had a need for this. I wanted to rotate a button 90 
degrees and have the label rotate with it. Unfortunately, it doesn't work.

This would be a very useful feature (fields too, obviously) but currently 
it appears the only thing you can rotate is an image object. As was 
mentioned before, this will work but it makes it a lot of work to update 
the text (or background color).

Please put this on the feature request list!

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



Looks like HyperCard

2002-02-06 Thread Dave Meilstrup

Hi. I'm new to Revolution and I created a simple stack that has the
Appearance Manager look in the editor, but when I run it by itself
(double-click on it when Rev is not open) or when I compile it as a
standalone, it looks like a HyperCard stack (white background, no modern
buttons, etc.). The funny thing is this did not happen initially whith
another stack I made, or at least I don't think it did. What am I missing?

Dave Meilstrup

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



Re: Looks like HyperCard

2002-02-06 Thread Troy Rollins

Dave Meilstrup  wrote:

 Hi. I'm new to Revolution and I created a simple stack that has the
 Appearance Manager look in the editor, but when I run it by itself
 (double-click on it when Rev is not open) or when I compile it as a
 standalone, it looks like a HyperCard stack (white background, no modern
 buttons, etc.). The funny thing is this did not happen initially whith
 another stack I made, or at least I don't think it did. What am I missing?

This has come up several times in this group. The gist is this -
double-clicking a stack opens it, sans the Rev UI. Open the stack in Rev, or
create a stand-alone, and all is well. Basically, double-clicking a stack
which is not a stand-alone, opens it in Rev in some strange way that no one
actually wants to do.  ;)
-- 
Troy
RPSystems
www.rpsystems.net

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



Re: Looks like HyperCard

2002-02-06 Thread Jeanne A. E. DeVoto

At 8:56 PM -0800 2/6/2002, Troy Rollins wrote:
This has come up several times in this group. The gist is this -
double-clicking a stack opens it, sans the Rev UI. Open the stack in Rev, or
create a stand-alone, and all is well. Basically, double-clicking a stack
which is not a stand-alone, opens it in Rev in some strange way that no one
actually wants to do.  ;)

Well, that's not exactly true. ;-)

It's a useful mode for testing before you build your actual
standalone...but it's pretty much the same thing you get with Suspend
Revolution UI in the Development menu.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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