Re: Frustration: put after URL...

2006-02-20 Thread Dave Cragg


On 20 Feb 2006, at 23:51, Thomas McCarthy wrote:


Yes, I was looking for efficiency as well as privacy (not to  
mention simplicity!). I didn't want to do this via getting a cgi;  
as I understand it, those calls can be read. (is this still true if  
one does it through rev and not with the user's browser?)


I'm not quite sure what you mean by "read". But in terms of data  
going over the wire, ftp is just as readable as http/cgi. If you mean  
that the workings of a cgi form can be easily read by looking at the  
html source, then this is easily hidden in a Rev stack.




However, if there is a question of some users' system settings  
blocking this, as Bruce said, then I will rework it into a cgi  
call. There are some other parts of the program that use  
'put...after url' for updating records, so I'll rework those as well.


I've had a couple of reports of ftp troubles with 2.7. There is a  
small change in the libUrl version distributed with 2.7 that affects  
ftp transfers (designed to get around a problem a few users had  
reported with previous versions). However, I'm waiting for "log  
reports" to see if the problems and the change are connected in any  
way. If you could get the transaction data for the bad ftp calls  
(libUrlSetLogField), I'll take a look .


Cheers
Dave
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Set menubar property ??

2006-02-20 Thread Ken Apthorpe

Re menubars on Mac OSX, Rev. pdf manual (p 205) says "Next, you set the
menubar property of your stack to the name of the group." 
But it doesn't say how to do this.   

There isn't a menubar property in the stack Properties inspector.  The
Dictionary provides a script:

set the menubar of this stack to "Menus"

So, do I put this script in:
(a) a script for the main stack, via script editor?
(b) in the Messagebox?
(c) in the Properties inspector as a Custom property?
(d) elsewhere?

Ken

--
View this message in context: 
http://www.nabble.com/Set-menubar-property--t1160196.html#a3045020
Sent from the Revolution - User forum at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Ken Apthorpe

Tch tch, I don't think anyone really tried.  It's quite easy if you know a
bit of pidgin from Papua New Guinea.

mixmastabilongjeezuscrise

mixmasta = mixmaster, a 1950's brand of electric beater for eggs, cream,
cakes etc.  
bilong = belongs to
jeezuscrise = Jesus Christ

So, it's something coming down from heaven that looks (from below) like a
big eggbeater. 
A helicopter.

wanpelasquashimallbuggerup

wanpela = one fellow (me, that they are shouting at)
squashim = squash you (me, anyone)
allbuggerup = severe injury or death

So, they are saying there's a helicopter coming down on top of me and I'd
better scoot or I'm going to be squashed like a bug.

See, it's all there, english-like, and just like Transcript you just have to
know the language and syntax ...;-)

Whoops. Nambawanmeri bilongKen is calling, gotta go

Ken

--
View this message in context: 
http://www.nabble.com/Parameters-WAS%3A-Main-menu-puzzle--t1147023.html#a3044965
Sent from the Revolution - User forum at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SMTP Proxy in Rev?

2006-02-20 Thread Gordon Tillman

Howdy Dan,

On Feb 20, 2006, at 18:05, Dan Shafer wrote:


I have a colleague who wants to build what amounts to an SMTP proxy
that sits between a standard email client, listens on the proper port
for output, pre-processes email, and then sends it out to a
pre-defined SMTP server. Minimal UI.



I imagine this would not be difficult to do so long as you are able  
to specify to your client that they configure their email program to  
"talk" to your SMTP proxy application.   For example, if your proxy  
app is running on the same client computer as the one running the  
email program they would want to update their email prefs to use  
something like "localhost" as the address of the SMTP server.  That  
way your Rev app would just have to listen to port 25 and be able to  
speak SMTP (which is a very simple protocol).


One consideration - on any Unix-based system (including OSX), your  
process must have root privileges to bind to any port under (I think)  
1024...


--gordy
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev 2.7 Bug (Crash)

2006-02-20 Thread Jan Schenkel
--- "Brian K. Maher" <[EMAIL PROTECTED]> wrote:
> Hi Folks,
> 
> I was testing a SQL locking issue and found that the
> revDataFromQuery function will cause Rev to crash if
> the query fails due to a locked record.  My ODBC
> connection specifies "repeatable read" as the
> default isolation level in the ODBC DSN
> configuration.  The code is as follows:
> 
> on mouseUp
>   put revOpenDatabase("ODBC","S2K",,"xyz","xyz")
> into vDB
>   
>   try
> put revDataFromQuery(,,vDB,"SELECT * FROM
> PUB.Customer") into vResult
> answer (line 1 of vResult)
>   catch vError
> answer vError
>   end try
>   
>   revCloseDatabase vDB
>   
>   answer "Done"
> end mouseUp
> 
> Cheers, Brian
> 

Hi Brian,

If I might venture to guess, you're using ODBC to
connect your Revolution stack to a Progress database.
While I haven't seen Rev crash with it, I do know that
using ODBC on Progress can cause lock-table overflow,
affecting your Progress4GL applications.

The company I work for has been using Progress for 12
years but always used Progress4GL, and warn users
against the use of ODBC on their operational database.

Our theory is that the ODBC driver is probably
translating the sql query into a for each using
share-lock or even exclusive-lock instead of no-lock
-- unless you set the isolation level to 'Read
Uncommitted'

Which in turn brings up the fascinating subject of
Dirty, Repeatable, and Phantom Reads -- but let's not
get carried away ;-)

Best regards,

Jan Schenkel.

Quartam Reports 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
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Judy Perry
You should see what it gives me when I feed it medieval french.

Does Babelfish do Klingon?  I know it doesn't do medieval french...

Judy

On Mon, 20 Feb 2006, J. Landman Gay wrote:

> >>>What are they telling you?
> >
> >
> >>shoodnaswaronlis. aneniway, prameterzdonhakwotz.
> >
> >
> > Yahnesclamathingstu. Gon confuzikompila, no?
> >
>
> Nahdifits endadahstrin, dontink.
>
> (I just ran all this through babelfish. It comes back the same as it
> went in.)

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Judy Perry
I'm trusting C3PO could translate this??  (yup, you guessed it: kiddies
are just  now new devotees to the Jedi religion...)

Judy

On Mon, 20 Feb 2006, Mark Wieder wrote:

> > shoodnaswaronlis. aneniway, prameterzdonhakwotz.
>
> Yahnesclamathingstu. Gon confuzikompila, no?
>

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Judy Perry
I'm feeling the odd, irresistable  urge to fire up PowerPoint...

blech  :-(

;-P

Judy

On Mon, 20 Feb 2006, J. Landman Gay wrote:

> > on alertStranger "mixmastabilongjeezuscrise!"
> > beep
> > put "wanpelasquashimallbuggerup!" into field "Stupid"
> > end alertStranger
> >
> > What are they telling you?
>
> shoodnaswaronlis. aneniway, prameterzdonhakwotz.
>
> --
> Jacqueline Landman Gay | [EMAIL PROTECTED]
> HyperActive Software   | http://www.hyperactivesw.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread John Vokey

Stephen and Trevor,

  This is a long-standing complaint of mine about custom properties  
in MC/RR (please see the archives), which has usually received at  
best irrelevant responses, if any at all (the most common response).   
IMHO, for consistency, *all* custom properties should be quoted (when  
the literal is meant), or taken as the value of the unquoted term  
when not.  So,


put "mary" into fred
set the fred of this stack to x
-- means set the property "mary" of this stack to the value of x
-- and works just this way in MC/RR, which is as it should be.
-- But only
-- if fred does not already exist as a custom property.
-- However, I now ask you what would you predict should happen if
-- 1. fred already exists as a custom property and fred (the variable)
--has the value ``mary''? (i.e., add this line before the other two:
--set the fred of this stack to "fred"
-- 2. fred already exists as a custom property, but fred (the variable)
--does not exist?  Exists, but is empty?  Exists, but evaluates  
to "Jane"?

-- Try them: you may (should) be surprised.

The only other consistent alternative, so that unquoted property  
names behave consistently, is to deny the use of variables as  
property names in custom property statements, as function and  
procedure names are currently handled---not an option I would  
support, btw.



On 20-Feb-06, at 7:09 PM, [EMAIL PROTECTED] wrote:


Stephen,

You can reliably use reserved words with array notation as long as
you have quotes around the key (I've never tried without quotes
actually).

I use code like this all of the time:

set the uAutoEvents["MouseUp"] of myObject to "DoSomething"

Perhaps it is the lack of quotes that is causing problems?

--
Trevor DeVore


--
Please avoid sending me Word or PowerPoint attachments.
See 

-Dr. John R. Vokey



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread J. Landman Gay
Aha! I can reproduce both of these. Now I see what you mean. You and 
Trevor are talking about two different things.


Trevor is naming new property sets uniquely. The keys of these custom 
property sets can be anything, but the actual name of the set itself 
cannot be a reserved word. That's what you are trying to do in recipe 
#2. The name of a custom property in the default set also cannot be a 
reserved word. That's your recipe #1.


It isn't a bug, it's just how things work. When you say:

  the name of btn 1

the engine cannot know whether you mean a custom property called "name" 
or the built-in property -- and it is right to forbid that duplication. 
Recipe #2 is an extension of the same thing, though I confess not to 
know the exact details why. But it makes sense to me on a generic level.



Stephen Barncard wrote:

At 19:27 -0600 2/20/06, J. Landman Gay wrote:


I just did this:

set the cList["name"] of this stack to "testName"
put the cList["name"] of this stack

And got the expected result. Did I do the test right?




J. did you check to see if the stack name changed?

This does it every time in the Inspector:

recipe 1:
select an object
create new property set for the object
name it "name" (or any other object regular property  without quotes of 
course) in the entry box.

hit enter

and you get a dialog:
"a custom property set cannot be a property name"

recipe 2:
select an object
create new property for the object
name it "name*" (without quotes of course) in the entry box.
hit enter

and you will see the new property in the property list
but it's a lie... because the data is. THE NAME OF THE OBJECT!!!
and no dialogdoes that mean it's a bug?

this is MacOS Tiger 10.4.4   REV ENTERPRISE 2.7   Powerbook G4 1.33 GHZ





--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Trevor DeVore

On Feb 20, 2006, at 7:45 PM, J. Landman Gay wrote:


Trevor DeVore wrote:

On Feb 20, 2006, at 5:27 PM, J. Landman Gay wrote:


Regardless of the above, you couldn't say a truer thing.  
Reserved  words shouldn't be used for variable names.

Jacque,
I'm going to respectfully disagree on this one in that I haven't   
found any problems with using reserved words as keys of custom   
property sets.  Here is why -


It's okay, I agree there isn't any problem with your approach. I  
stand by the generic statement though, because so much of my  
business is converting HyperCard stacks to Revolution and I  
constantly run into things like this:


Alright then, I will respectfully agree with you :-)


--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Stephen Barncard

At 19:27 -0600 2/20/06, J. Landman Gay wrote:

I just did this:

set the cList["name"] of this stack to "testName"
put the cList["name"] of this stack

And got the expected result. Did I do the test right?



J. did you check to see if the stack name changed?

This does it every time in the Inspector:

recipe 1:
select an object
create new property set for the object
name it "name" (or any other object regular property  without quotes 
of course) in the entry box.

hit enter

and you get a dialog:
"a custom property set cannot be a property name"

recipe 2:
select an object
create new property for the object
name it "name*" (without quotes of course) in the entry box.
hit enter

and you will see the new property in the property list
but it's a lie... because the data is. THE NAME OF THE OBJECT!!!
and no dialogdoes that mean it's a bug?

this is MacOS Tiger 10.4.4   REV ENTERPRISE 2.7   Powerbook G4 1.33 GHZ


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread J. Landman Gay

Mark Wieder wrote:

Jacque-



on alertStranger "mixmastabilongjeezuscrise!"
beep
put "wanpelasquashimallbuggerup!" into field "Stupid"
end alertStranger

What are they telling you?




shoodnaswaronlis. aneniway, prameterzdonhakwotz.



Yahnesclamathingstu. Gon confuzikompila, no?



Nahdifits endadahstrin, dontink.

(I just ran all this through babelfish. It comes back the same as it 
went in.)


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spell checking in Rev apps?

2006-02-20 Thread Garrett Hylltun


On Feb 20, 2006, at 6:50 PM, Scott Morrow wrote:


Garrett,
This topic has kept my interest for some time.
Jean-Baptiste LE STANG has written an AppleScript extension  <   
http://www.lestang.org/ >


Excellent, thanks a bunch Scott.  I have a couple of projects that I  
would love to have spell checking and a thesaurus ability in Rev.


Also, have you, or anyone else ever researched a rhyming  
dictionary?   There's a console one available for Linux to which I  
built a GUI front end for in another language.  I do believe the  
source is available to it, but it's in a language I know nothing  
about.  It might also hold some info that might help you in your  
efforts.  Here's the link to the freshmeat.net page of it:


http://freshmeat.net/projects/rhymingdictionary/

-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Mark Wieder
Jacque-

>> on alertStranger "mixmastabilongjeezuscrise!"
>> beep
>> put "wanpelasquashimallbuggerup!" into field "Stupid"
>> end alertStranger
>> 
>> What are they telling you?

> shoodnaswaronlis. aneniway, prameterzdonhakwotz.

Yahnesclamathingstu. Gon confuzikompila, no?

-- 
 -Mark Wieder
  [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread J. Landman Gay

Trevor DeVore wrote:

On Feb 20, 2006, at 5:27 PM, J. Landman Gay wrote:



Regardless of the above, you couldn't say a truer thing. Reserved  
words shouldn't be used for variable names.



Jacque,

I'm going to respectfully disagree on this one in that I haven't  found 
any problems with using reserved words as keys of custom  property 
sets.  Here is why -


It's okay, I agree there isn't any problem with your approach. I stand 
by the generic statement though, because so much of my business is 
converting HyperCard stacks to Revolution and I constantly run into 
things like this:


  put fld "name" into name
  put fld "date" into date

which throws compiler errors all over the place. So as a general rule I 
always say that avoiding reserved words as variable names is just a 
generally good idea.


You are just one of those people who know enough that they can break the 
rules. ;)


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Mark Wieder
Charles-

Monday, February 20, 2006, 5:27:41 PM, you wrote:

Hah! back atcha...

A friend from California was heading down to Lafayette, Louisiana to
attend school. He drove into town and stopped at a gas station to ask
the attendant for directions and it was a full 60 seconds into the
answer before he realized that the guy was speaking English... Gotta
love that Cajun patois..



-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Trevor DeVore

On Feb 20, 2006, at 5:27 PM, J. Landman Gay wrote:


Regardless of the above, you couldn't say a truer thing. Reserved  
words shouldn't be used for variable names.


Jacque,

I'm going to respectfully disagree on this one in that I haven't  
found any problems with using reserved words as keys of custom  
property sets.  Here is why -


I use custom properties quite a bit in order to link objects to  
libraries.  At first I did everything like this:


set the uLibPrefix["uName"] of myObject to "something"

But then I realized that
1) It is less readable to me then uLibPrefix["Name"] and
2) It doesn't matter because I am always using array notation with  
custom property sets.  In all of my tests it appears that using array  
notation protects you from naming problems.


So I anything custom property that is in the default (empty) set is  
prefixed with a "u" while any custom property residing in a custom  
property set has no prefix and is always referenced through array  
notation.  I also prefix any custom property sets with "u".


The fact that array notation protects you from naming collisions is  
great because it means you can easily transfer arrays to custom  
property sets and back to arrays without having to worry about the  
key values.  I use this feature in my standard data storage library  
and it works really well.  So unless Rev comes out and says that in  
the future using reserved words in array notation will cause my app  
to implode I find it a very useful approach.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spell checking in Rev apps?

2006-02-20 Thread Scott Morrow

Garrett,
This topic has kept my interest for some time.
Jean-Baptiste LE STANG has written an AppleScript extension  <   
http://www.lestang.org/ >  that allows a link to Apple's OSX spell  
checking engine.  It can be used with Revolution to create a spell  
checker.  Obviously it requires OSX (version 10.3 or better,  
actually) and so will not provide the general solution that the  
others (and myself) are looking for.
 I have placed an example solution in the RevOnline User Space under  
username "Scott"  - or from the message box:


 go URL "http://elementarysoftware.com/rev_demos/spellcheck_demo.rev";

I continue working towards a more generalized solution... an attempt  
at which I have just recently included in a Beta application.  My  
biggest difficulties have been with speed (checking more than 2 pages  
of text becomes poky) and with returning good phonetic suggestions.


For word banks I am using:
Spell Checking Oriented Word Lists (SCOWL)
by Kevin Atkinson
http://wordlist.sourceforge.net/

For returning phonetic suggestions I am using a variation of Double  
Metaphone, based on Lawrence Phillips algorithm.


If I ever come up with something solid I'll be sure and notify the  
list.   :  )

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Feb 20, 2006, at 1:55 PM, Garrett Hylltun wrote:

Greetings,

Has anyone ever found a way to add spell checking ability into  
resulting rev apps?


Thanks,
-Garrett

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Trevor DeVore

On Feb 20, 2006, at 5:15 PM, Stephen Barncard wrote:


Stephen,

Let me see if I understand correctly.  Are you saying you can't do  
something like this:


set the uMyPropSet["name"] of this stack to "my value"


yes! did you try this??

reserved words, maybe, but duplicate properties names -- nope.
Is this a bug or just the way it is?


Yes, this works fine on my end.  I type it in the message box and  
then opened the Rev property inspector and the property with the  
correct value was there.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Standalone Runtimes for Classic Mac and Unix/Linux?

2006-02-20 Thread Robert J . Lawrence
First,  I would like to thank RunRev for 2.7.  I really like many of  
the improvements over 2.6.x.


Unfortunately, I have found something missing that existed in the  
earlier release.  I no longer have the ability to build Linux or Mac  
Classic standalones.  Does anyone know when this feature will be  
available in the 2.7 releases?


Thanks,

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread J. Landman Gay

Ken Apthorpe wrote:

I second what Mark says about these sorts of explanations, particularly the
"Assume nothing" and inclusion of (complete) example scripts for new users.


I found my old notes (from the HyperCard list, but Rev is the same.) It 
has a simple example. If I get time, I will combine this with my earlier 
response and put it on my web site with my other essays.



My favorite analogy is that parameters are baskets. This fits in well 
with the HyperCard concept that variables are "containers". Parameters 
are just another variable container that catch and hold whatever values 
are sent to them. Suppose we have a function called addNumbers like this:


function addNumbers num1,num2
put num1 + num2 into theTotal
return theTotal
end addNumbers

The parameters "num1" and "num2" are like baskets that hold whatever 
values the original handler sends. In this case, they each will contain 
a number. The special word "return" tells the function to send the 
variable "theTotal" back to the handler that asked for the information. 
So, this function takes two numbers that are passed to it in the 
parameters, adds them together, and sends back a total. Parameter 
"baskets" are always filled in first-to-last order; whatever number 
arrives first will be placed into the "num1" basket, and whatever number 
arrives second will be placed into "num2". It is important that the 
order of the values sent are the same as those expected by the receiving 
parameters.


Now we can write a handler that uses this function this way:

on myHandler
   put 16 into theFirstNumber
   put 4 into theSecondNumber
   put addNumbers(theFirstNumber,theSecondNumber) into myTotal
end myHandler

This handler will send "16" and "4" to our custom function "addNumbers". 
The addNumbers function will catch these two numbers in its parameters. 
Since 16 was sent first, it will be received first and placed into the 
"num1" basket. The second number, 4, will be placed into the "num2" 
basket. The function uses these parameters just as though a script had 
issued statements such as "put 4 into num2"; the parameter variables are 
automatically filled with the sent values. The function can use these 
variables just like any other local variable. This function will add 
them together and send back "20". The script "myHandler" will receive 
that 20 and put it into the variable "myTotal".


You can have as many parameters as you need. A general rule of thumb is 
that passing parameters is prefereable to using globals, except where 
many different handlers need to access a value repeatedly. In that case, 
a global may be a better solution because it is faster and more 
universally available. However, in the above example, it would be silly 
to make num1 and num2 into globals; their values will be different each 
time the function is called, and it is trivial to pass the values to the 
function as needed.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread J. Landman Gay

Ken Apthorpe wrote:


You are having a dream.  You are in a different country, and there's a group
of locals around you all talking to each other.  It's an english-like
language, you catch individual words but they string them together in a very
strange way.  You stand there gawking and trying to understand.  Suddenly
they all start jumping up and down and waving their arms around and
jabbering at you. Then they all start running away like crazy. You stand
there trying to figure out what they were saying.  It sounds something like

on alertStranger "mixmastabilongjeezuscrise!"
beep
put "wanpelasquashimallbuggerup!" into field "Stupid"
end alertStranger

What are they telling you?


shoodnaswaronlis. aneniway, prameterzdonhakwotz.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Start using script

2006-02-20 Thread kee nethery


On Feb 20, 2006, at 1:19 PM, Hershel Fisch wrote:

Hi all, when I want to use the start using script I have to use it  
in every

sub stack or the main stack will do it?


I had a start using in the startup script and it seemed to never get  
called. So I added a small script in front of the code that needs the  
start using stack that asked which stacks were in the start using  
queue, and if it was not listed, it ran the start using script to put  
it there. Kind of a just in time start using. That works fine and it  
has the advantage of being right where I use it.


For example:

global theStacksInUse

 if "revSOAP" is not in theStacksInUse then
start using "revSOAP"
get the stacksInUse
put it into theStacksInUse
end if

Kee Nethery
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Charles Hartman


On Feb 20, 2006, at 8:02 PM, Ken Apthorpe wrote:

You are having a dream.  You are in a different country, and  
there's a group

of locals around you all talking to each other.  It's an english-like
language, you catch individual words but they string them together  
in a very
strange way.  You stand there gawking and trying to understand.   
Suddenly

they all start jumping up and down and waving their arms around and
jabbering at you. Then they all start running away like crazy. You  
stand
there trying to figure out what they were saying.  It sounds  
something like


Hah! I recognize that! from a number of experiences, but one of them  
was this (trust me, there's a point, sort of):


I'm a writer at a *very* distinguished (if sparsely populated)  
writers' colony, in
the Castle of H--, not far from E--, in the country of S--. (This is  
a dozen years
ago.) I'm walking down the back stairs of the castle and come to a  
landing
behind the kitchen, where the staff of the castle are sitting around  
and talking.
I think they must be talking E-- (or G-- as it's otherwise known).  
But when I
pause for a few seconds to savor the sound, which is lovely, I  
realize with a
shock that there's a liberal sprinkling of English words, and then  
that they are
in fact speaking English, not with the accent they normally use in  
speaking to
American and English visitors but with the accent they use among   
themselves.


A dream I miss, by the way, and treasure in retrospect. Must be why I  
fool around in Transcript . . . Anyway it might account for a lot . . .


Charles

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread J. Landman Gay

Stephen Barncard wrote:

Trevor -

I've seen references that the brackets are enough to serve as quotes - 
it works either way for me. That's not the problem.


Quotes or no quotes - I've found one can't save a custom property with a 
name of an existing regular PROPERTY in the same object without problems 
-- unless of course the quotes appear in the name...


custom props with names like name, title, tabstops, html ,etc. will 
cause trouble in various ways -


Try it - won't work in the properties inspector or from script. It will 
seem to have been entered, but reading back the prop name will display 
the regular property rather than your custom one...or just nothing.


I just did this:

set the cList["name"] of this stack to "testName"
put the cList["name"] of this stack

And got the expected result. Did I do the test right?

Not knowing this has caused hours of weirdness, because there is no 
error reporting on custom prop activity.


Reserved words aren't part of the properties system, but I've become 
suspicious of using them. Another reason to use standard naming 
conventions I guess.


Regardless of the above, you couldn't say a truer thing. Reserved words 
shouldn't be used for variable names.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Richard Gaskin

Ken Apthorpe wrote:

I second what Mark says about these sorts of explanations, particularly the
"Assume nothing" and inclusion of (complete) example scripts for new users.

Thanks to the forum I now have a (partially) working menu, thanks to these
posts I understand parameters more clearly.  Transcript may be english-like,
but it's a different language and has to be learned, so we need plenty of
examples and analogies like the restaurant.  Here's another.

You are having a dream.  You are in a different country, and there's a group
of locals around you all talking to each other.  It's an english-like
language, you catch individual words but they string them together in a very
strange way.  You stand there gawking and trying to understand.  Suddenly
they all start jumping up and down and waving their arms around and
jabbering at you. Then they all start running away like crazy. You stand
there trying to figure out what they were saying.  It sounds something like

on alertStranger "mixmastabilongjeezuscrise!"
beep
put "wanpelasquashimallbuggerup!" into field "Stupid"
end alertStranger

What are they telling you?


They are telling you:

Once we dreamt we were butterflies,
and woke to find ourselves men.
But now we wonder:
Are we men who dreamt we were butterflies,
or butterflies dreaming we are men?

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Stephen Barncard


Stephen,

Let me see if I understand correctly.  Are you saying you can't do 
something like this:


set the uMyPropSet["name"] of this stack to "my value"


yes! did you try this??

reserved words, maybe, but duplicate properties names -- nope.
Is this a bug or just the way it is?




?

I use rev reserved words all of the time using array notation and 
have never had problems.  Am I not understanding something?


--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread Ken Apthorpe

I second what Mark says about these sorts of explanations, particularly the
"Assume nothing" and inclusion of (complete) example scripts for new users.

Thanks to the forum I now have a (partially) working menu, thanks to these
posts I understand parameters more clearly.  Transcript may be english-like,
but it's a different language and has to be learned, so we need plenty of
examples and analogies like the restaurant.  Here's another.

You are having a dream.  You are in a different country, and there's a group
of locals around you all talking to each other.  It's an english-like
language, you catch individual words but they string them together in a very
strange way.  You stand there gawking and trying to understand.  Suddenly
they all start jumping up and down and waving their arms around and
jabbering at you. Then they all start running away like crazy. You stand
there trying to figure out what they were saying.  It sounds something like

on alertStranger "mixmastabilongjeezuscrise!"
beep
put "wanpelasquashimallbuggerup!" into field "Stupid"
end alertStranger

What are they telling you?

Ken
--
View this message in context: 
http://www.nabble.com/Parameters-WAS%3A-Main-menu-puzzle--t1147023.html#a3042129
Sent from the Revolution - User forum at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


SMTP Proxy in Rev?

2006-02-20 Thread Dan Shafer
I have a colleague who wants to build what amounts to an SMTP proxy
that sits between a standard email client, listens on the proper port
for output, pre-processes email, and then sends it out to a
pre-defined SMTP server. Minimal UI.

It's not clear if this project is feasible, and if so whether it's
easy, medium or hard to see how to do.

Any thoughts? (Right now, he's been using Java to build this and the
project is hopelessly off schedule and over budget. I've been bragging
about Rev. He wants me to put my money where my mouth is.)

--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
>From http://www.shafermediastore.com/tech_main.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Frustration: put after URL...

2006-02-20 Thread Thomas McCarthy

Thanks Dave and Bruce for the info...

This (below) was very interesting;

>(By the way, the engine makes two calls to the url to do this. First
it retrieves the entire url from the server, then writes back the
retrieved data with the new data appended. So this may not offer the
efficiency you expected.)

Yes, I was looking for efficiency as well as privacy (not to mention 
simplicity!). I didn't want to do this via getting a cgi; as I understand it, 
those calls can be read. (is this still true if one does it through rev and not 
with the user's browser?)

However, if there is a question of some users' system settings blocking this, 
as Bruce said, then I will rework it into a cgi call. There are some other 
parts of the program that use 'put...after url' for updating records, so I'll 
rework those as well.

very useful info. Thanks.
tm

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Trevor DeVore

On Feb 20, 2006, at 2:15 PM, Stephen Barncard wrote:

I've seen references that the brackets are enough to serve as  
quotes - it works either way for me. That's not the problem.


Quotes or no quotes - I've found one can't save a custom property  
with a name of an existing regular PROPERTY in the same object  
without problems -- unless of course the quotes appear in the name...


custom props with names like name, title, tabstops, html ,etc. will  
cause trouble in various ways -


Try it - won't work in the properties inspector or from script. It  
will seem to have been entered, but reading back the prop name will  
display the regular property rather than your custom one...or just  
nothing.


Not knowing this has caused hours of weirdness, because there is no  
error reporting on custom prop activity.


Reserved words aren't part of the properties system, but I've  
become suspicious of using them. Another reason to use standard  
naming conventions I guess.


Stephen,

Let me see if I understand correctly.  Are you saying you can't do  
something like this:


set the uMyPropSet["name"] of this stack to "my value"

?

I use rev reserved words all of the time using array notation and  
have never had problems.  Am I not understanding something?


--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Stephen Barncard

Trevor -

I've seen references that the brackets are enough to serve as quotes 
- it works either way for me. That's not the problem.


Quotes or no quotes - I've found one can't save a custom property 
with a name of an existing regular PROPERTY in the same object 
without problems -- unless of course the quotes appear in the name...


custom props with names like name, title, tabstops, html ,etc. will 
cause trouble in various ways -


Try it - won't work in the properties inspector or from script. It 
will seem to have been entered, but reading back the prop name will 
display the regular property rather than your custom one...or just 
nothing.


Not knowing this has caused hours of weirdness, because there is no 
error reporting on custom prop activity.


Reserved words aren't part of the properties system, but I've become 
suspicious of using them. Another reason to use standard naming 
conventions I guess.


sqb




Stephen,

You can reliably use reserved words with array notation as long as 
you have quotes around the key (I've never tried without quotes 
actually).


I use code like this all of the time:

set the uAutoEvents["MouseUp"] of myObject to "DoSomething"

Perhaps it is the lack of quotes that is causing problems?

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]



--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is duration (not delay) of the toolTip adjustable

2006-02-20 Thread Thomas McGrath III

André,

I tried your script and it works reasonably well. I'm not sure how  
much better you could make it without creating your own tooltip windows.


GTH

Tom

On Feb 20, 2006, at 2:46 PM, André.Bisseret wrote:


---
---In the script of the field :
Remind you : the field contains titles of texts (not wrapped  
lines) ; some lines are too long to be entirely visible. To avoid  
the use of the horizontal scrollBar (I maintained it anyway) the  
user can maintain the mouseDown on a line, must have enough time to  
read the all line in the toolTip or, at any time during the toolTip  
display, s(he) must be able to stop displaying the toolTip.

--
on mouseDown
  set the toolTipDelay to 150
  seeToolTip
  wait 5 seconds with messages
  set the toolTipDelay to 1
  seeToolTip
end mouseDown

on seeToolTip
  put word 2 of the mouseLine into tLine
set the tooltip of me to empty
set the toolTip of me to line tLine of me
end seeToolTip

on mouseUp
  set the toolTip of me to empty
  set the toolTipDelay to 500
  exit to top
end mouseUp
--


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Start using script

2006-02-20 Thread Eric Chatonet

Hi Hershel,

Mainly, three ways of doing:

1. Start using stack < Stack descriptor>: put the script of stack <  
Stack descriptor> into the message path. Used with libraries.
2. Insert script of  into front/back: put a  
specific script into the message path to receive the messages sent to  
any other objects in any stack before/after these objects receive the  
messages. Mainly used with special handlers that have to trigger  
system events.
3. Go invisible to stack < Stack descriptor>: the stack is loaded  
into memory as would be a stack in use AND all its resources (images  
for instance) are available too.


Note that the third way may be obtained by using other commands:
send "MyStuff" to stack < Stack descriptor>: loads this stack in  
memory if it is not present.
call "MyStuff" of < Control descriptor> loads the corresponding stack  
in memory if it is not present.


See all corresponding entries in the docs for more information :-)
BTW, for all these ways of doing, stack or substack does not matter ;-)

Le 20 févr. 06 à 22:19, Hershel Fisch a écrit :

Hi all, when I want to use the start using script I have to use it  
in every

sub stack or the main stack will do it?


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Spell checking in Rev apps?

2006-02-20 Thread Garrett Hylltun

Rev 2.6.1

Greetings,

Has anyone ever found a way to add spell checking ability into  
resulting rev apps?


Thanks,
-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Trevor DeVore

On Feb 20, 2006, at 1:02 PM, Stephen Barncard wrote:

I've been working a lot with Custom Properties lately and have come  
across an undocumented system condition that's taken a while for me  
to find out aboutso I'll pass it along.


I say 'condition' because I think this is normal behavior for the  
custom property system. But it's a GOTCHA for sure.


The rule is:

One can't name a custom property with the same name as any regular  
property of an object.


One should not probably name any object with any system reserved  
words, even if it might work sometimes


when you try to name a property like this:

set the AnyPropName[name] of this stack to "anytext"

it won't work  or will provide unpredictable results. When one  
tries to read it, one just gets the name of the stack, and  
sometimes stacks get renamed, etc... Bad stuff happens..


So this might happen if one has a user naming properties directly.

If one has custom property naming directly open to users, one  
should run a check on the entry compared against the properties()  
of that object.


Stephen,

You can reliably use reserved words with array notation as long as  
you have quotes around the key (I've never tried without quotes  
actually).


I use code like this all of the time:

set the uAutoEvents["MouseUp"] of myObject to "DoSomething"

Perhaps it is the lack of quotes that is causing problems?

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spam:Re: Index for Revolution PDF Document

2006-02-20 Thread Dennis Brown

Judy,

Inquiring minds want to know:  what were the results of the ACM test?

Dennis

On Feb 20, 2006, at 1:27 PM, Judy Perry wrote:

This reminds me of an ACM article I'm having the students read this  
week
(It's something like 'Text vs Hypertext: Which is easier to use to  
find

information' or some such thing).

It involved two groups with reference material on Sherlockiana -- one
group had all the info in a Hypercard stack and the other had the same
material in a book/encyclopedic reference format.

The test subjects were given a list of questions and timed as they  
found

the answers.

It would be interesting to repeat it with my students -- one group  
using

the built-in docs and the other using Dave's indexed PDF...

(considering the idea...  anybody got any good questions?)

Judy

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Start using script

2006-02-20 Thread Hershel Fisch
Hi all, when I want to use the start using script I have to use it in every
sub stack or the main stack will do it?
Thank's Hershel

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[Tip] Propeties & sets & List of 'reserved words' and gotchas

2006-02-20 Thread Stephen Barncard
I've been working a lot with Custom Properties lately and have come 
across an undocumented system condition that's taken a while for me 
to find out aboutso I'll pass it along.


I say 'condition' because I think this is normal behavior for the 
custom property system. But it's a GOTCHA for sure.


The rule is:

One can't name a custom property with the same name as any regular 
property of an object.


One should not probably name any object with any system reserved 
words, even if it might work sometimes


when you try to name a property like this:

set the AnyPropName[name] of this stack to "anytext"

it won't work  or will provide unpredictable results. When one tries 
to read it, one just gets the name of the stack, and sometimes stacks 
get renamed, etc... Bad stuff happens..


So this might happen if one has a user naming properties directly.

If one has custom property naming directly open to users, one should 
run a check on the entry compared against the properties() of that 
object.


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Garrett Hylltun


On Feb 20, 2006, at 8:24 AM, James Spencer wrote:


On Feb 20, 2006, at 10:10 AM, Richard Gaskin wrote:

As already said, Rev does not provide such facilities so this is  
getting off-topic but the info here is not really correct.  While  
it is true that there is no Apple sanctioned API for


Does using a program that adds a menu icon on the top right violate  
our license with Apple?


If yes, then people releasing such programs should warn their users.   
Like in the Windows world, if you change out some of your system dll  
files in order to allow you to use some new gui themes, most of the  
people who distribute the hacked dll files warn you that using the  
hacked dll files will violate your license with MS.


-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mac Menu Bar - Add an icon?

2006-02-20 Thread Garrett Hylltun


On Feb 20, 2006, at 12:42 PM, Garrett Hylltun wrote:


Rev 2.6.1

Greetings,

The Dock Icon thread got me thinking...  Is it possible in Rev to  
add a menu icon entry in the Mac Menu Bar up top?


Disregard this question as someone else asked it also in the "System  
Menus" thread.


-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Mac Menu Bar - Add an icon?

2006-02-20 Thread Garrett Hylltun

Rev 2.6.1

Greetings,

The Dock Icon thread got me thinking...  Is it possible in Rev to add  
a menu icon entry in the Mac Menu Bar up top?


I'm not actually working any project that needs that, but was just  
curious, as it might be cool for some later projects.


Thanks,
-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: about win32 folder names with spaces...

2006-02-20 Thread Jan Schenkel
--- Andre Garzia <[EMAIL PROTECTED]> wrote:
> Folks,
> 
> please someone fill my lack of knowledge of windows
> platform. Do I  
> need to escape spaces in folder names in windows
> like using "\ " in  
> MacOS X?
> 
> Cheers
> andre
> 

Hi Andre,

Why exactly do you need this for? For shell commands
it should suffice to put quotes around the path, or
use the 'shortFilePath' function.

Hope this helped,

Jan Schenkel.

Quartam Reports 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
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


about win32 folder names with spaces...

2006-02-20 Thread Andre Garzia

Folks,

please someone fill my lack of knowledge of windows platform. Do I  
need to escape spaces in folder names in windows like using "\ " in  
MacOS X?


Cheers
andre
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Stephen Barncard

I think Richard meant "for those of us in the inventive software business..."

Who wants to be a lemming - Give me the esoteric, the unusual the 
serendipitous that no one else is doing!



If the only software worth developing etc
Then
  You had better tell all those open source donkeys at Linux, 
FreeBSD, Mozilla, the GIMP, KDE, GNOME, Audacity, Apache, Xorg et 
al, to stop what they are doing and donate their free time to your 
projects.

End if

Regards Stomfi



--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "unShared" Custom props for new cards?

2006-02-20 Thread Stephen Barncard

templateCard property???

Summary:
Used with the set command to set the properties of newly created cards.


sqb



So, the question is... is there some way to set up some kind of  
custom prop set, such that when you do "create card"  the new card 
will have  those custom props generated  automatically, but which 
are empty and  unique to that card? I realize the work around would 
be to write a script to adds the custom props to  all the existing 
cards and then trap the create card handler in the future and cause 
it to do a "clone card" instead and then clean out all the data in 
the fields  and custom props of the newly cloned card... this would 
emulate a kind of "background custom property set" that is 
"unshared" but the same across all cards.


but before I go ahead with this... I was just wondering if I missed 
a feature on the vast ocean of Rev's syntax that might allow for 
setting up such an "unshared" background custom property set whcih 
becomes, like,  part of the placed background that is auto added to 
new cards.??


TIA
Sivakatirswami


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: crashes while using script editor in 2.7

2006-02-20 Thread Stephen Barncard

WHAT?
Are you accusing RunRev of Mac Bias? ha ha

I really doubt that they only test in emulators...that's 
ridiculous... they have real PC's in Scotland!



Hi Dave

I have experienced crashes when selected text with a double click in
a plain field. im trying to isolate the bug too...

As I've said lots of times before: Rev should be confined to use windows
instead of just giving is a test ride in a pc emulator to see the reason we
windows users complain so much and why so many windows users don't go beyond
testing the demo...

cheers
Xavier


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is duration (not delay) of the toolTip adjustable

2006-02-20 Thread André . Bisseret


Le Monday, 20 Feb 2006, à 17:09 Europe/Paris, Thomas McGrath III a 
écrit :



André,

Would you care to share your script? Thanks.

Tom


It's my pleasure, Tom
---
---In the script of the field :
Remind you : the field contains titles of texts (not wrapped lines) ; 
some lines are too long to be entirely visible. To avoid the use of the 
horizontal scrollBar (I maintained it anyway) the user can maintain the 
mouseDown on a line, must have enough time to read the all line in the 
toolTip or, at any time during the toolTip display, s(he) must be able 
to stop displaying the toolTip.

--
on mouseDown
  set the toolTipDelay to 150
  seeToolTip
  wait 5 seconds with messages
  set the toolTipDelay to 1
  seeToolTip
end mouseDown

on seeToolTip
  put word 2 of the mouseLine into tLine
set the tooltip of me to empty
set the toolTip of me to line tLine of me
end seeToolTip

on mouseUp
  set the toolTip of me to empty
  set the toolTipDelay to 500
  exit to top
end mouseUp
--
Any idea to improve it welcomed :-)
Thanks again for your help (I learned much with your stacks).

Best regards from Grenoble
André



On Feb 20, 2006, at 9:45 AM, André.Bisseret wrote:


Hi Martin and Tom,

Le Monday, 20 Feb 2006, à 13:29 Europe/Paris, Martin Blackman a écrit 
:



Why not have your own 'tooltip' field that you show for as long as
required. Set its layer so it is above the other field(s), update its
contents and move it to the mouseloc or nearby before showing it. 
Then

hide it when ready eg, send 'disappear' to field "theTooltip" in 1
second . (The disappear handler being : hide me)
You are right ! I thought to this solution and I was keeping it in 
reserve, in case of no success with the tooltip !
I kept trying the tooltip solution, because, In my current case, (or 
if my current case then :-))), using the tooltip has an advantage 
that has not a normal field : it possibly overshoots the (right) edge 
of the window.


Currently, after studying the Tom' stacks,  I scripted a tooltip 
solution  that consists (in summary) in calling twice the tooltip,  
waiting 5 sec between the two ; and,just before the second call, I 
reduce the tooltipdelay to the minimum (1) (resuming the default 
value on mouseUp); thus, there is a very short interruption between 
the two presentations, actually nearly unnoticeable.


Thanks a lot for your attention to my problem

Best regards from Grenoble
André




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


poll results and new poll

2006-02-20 Thread Josh Mellicker

Custom Properties is the winner!

___

When I need access to a value throughout a stack:

* I will usually use a custom property: 50% (11)
* about 50%/50%: 27% (6)
* I will usually use a global variable: 23% (5)

Total Votes : 22


with some really good comments as well:

http://revcoders.org/global-variables-vs-custom-properties/

___


Now, a new poll, on how you access remote databases with Revolution:


http://revcoders.org/database-access/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Mark Wieder
Judy-

Monday, February 20, 2006, 10:16:02 AM, you wrote:

>> It's kind of like getting past the hurdle of writing your first
>> function. And why you would want to do that in the first place.

> Yeah, my programming binky is still firmly clenched between my teeth on
> this one @;-)

 Pretty much my same rules apply here: if I have a section of code
that I have to put in two places, it's fair game to be made into a
function. And if I have to put it in three places, I don't even have
to think about whether to do it. That way if you have to make a change
to the code you only have to make the change in one place.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Alex Tweedly

Judy Perry wrote:


Like using case statements and pwhich's where a simple if-then series will
do.  ;-)

 

I know we can easily re-write the Original Poster's script with a simple 
if-then series.


But if you can rewrite it without a 'pWhich' (or an equivalent 
'theItem', or 'pBasket', or ) I'll be most impressed.


Yeah, I know we could do

  if param(1) = "Quit" then

  end if

but that hardly counts as simpler ;-)

--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Judy Perry
Yep.  The politics of higher ed (at least at my own campus) are
mind-boggling.

One of the arguments clusters around the notion that all bachelor's
degrees should require roughly the same number of units/credit hours in
the subject, regardless of how complex or  not the subject is.  Anything
else wouldn't be "fair" to the students in higher unit-loaded majors.

Not surprisingly, Computer Science is one of those higher unit-loaded
degree programs.  And so we feel the pressure to cut courses.

And then there's the issue of FTE turf:  the History department has
managed to engineer that all graduating students, regardless of major,
must take a minimum of FOUR courses in history.

And, finally, there's apparently some legal argument that we can't call it
a bachelor's degree program if it takes demonstrably longer than 4 years
to complete (current average is 6 years).

Judy


On Mon, 20 Feb 2006, Richard Gaskin wrote:

> Frightening.  So the students learn to type in C++ but not understand
> what they're typing?
>
> I'll bet the same administrators go to conferences with furrowed brows
> and much hand-wringing trying to determine the cause of America's
> intellectual decline, never understanding their own role in the process

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Dock icon - data update

2006-02-20 Thread J. Landman Gay

Karen wrote:


On 20 Feb 2006, at 01:07, Jacqueline Landman Gay wrote:


Yes, you should be able to do it. Revolution has a global property
called the "icon" which, if set, specifies the icon that is  displayed in
the OS X dock. You could write a script that takes a snapshot of a  small
image containing the text you want to show, and then set the icon  to the
id of that image. If you do this repeatedly using a "send in "
structure, the icon would update dynamically.



Thanks very much for the answer Jacque.  I'm guessing that I would  also 
need to be able to combine the graphic of my existing icon with  the 
snapshot of the text that I wanted to show.  I'll need to try any  
figure out how to do that now - I've not done much with graphics in  Rev 
previously.


Right, you'll need to overlay the text onto an existing copy of your 
icon. However, that text is going to be awfully small; I wonder how 
useful it will be.


There used to be another problem as well -- the Finder did not update 
the dock icon automatically. Even though you have changed it, the Finder 
ignores the change  until the next time it updates its display. I 
imagine there is some kind of shell command that can force Finder to 
update -- or maybe that's changed in later versions of OS X. I haven't 
tried the technique in a very long time, so a lot of my info is 
theoretical only. You'll have to do some experiementing, I"m afraid.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Chooser Widgets Develpment Policy [WAS: Quick Linux Question]

2006-02-20 Thread Bob Warren

Thanks very much for the useful info, Stomfi!

For new Linux users, Stomfi is a VERY distinguished Linux educator. You 
can find a wealth of top information written by him at


http://www.novell.com/coolsolutions/author/1211.html

However, with regard to the distribution of Linux/Mac versions of my 
File/Picture Chooser widgets, even if I think I know how to make the 
widgets work in other flavours of Linux or Mac, the fact that I am 
unable to test them personally goes against my grain a little. At this 
point I need to think very carefully about how best to come up with a 
decent policy in regard to this situation. If anybody has any 
interesting ideas about the subject, I would be very grateful to hear them.


What I MIGHT do is the following. At the moment, I only have conditions 
to test the widgets (or any software for that matter) in Windows and 
Ubuntu Linux. Responsibility for the reliability of the widgets in 
Windows and Ubuntu Linux would remain entirely my own. However, if I 
released the source stacks for the Linux version, other interested 
parties could make the (probably small) adaptions necessary for 
functioning in other Linuxes and Mac.


What I need your advice on is what conditions (if any) you think I 
should attach to the above procedure. As I have said before, I have no 
commercial ambitions with regard to these chooser widgets. On the other 
hand, I would like to receive whatever recognition I deserve for the 
months of effort behind their production. A situation I would like to 
avoid is where 1 week after releasing the source code I find that 
somebody is selling a pair of "super widgets" at "only" $500, with 
absolutely no mention of yours truly or howsoft.com, and in fact the 
only contribution they really made to the development was the alteration 
of a few lines of coding.


But I have perhaps now answered my own question. I should release the 
source stacks under the condition that if any part of the coding is used 
or adapted by 3rd parties (for profit or not), it must be 1) 
acknowledged; 2) outside the responsibility of myself or howsoft.com 
(which is a non-commercial site). Of course, this is impossible to 
enforce, but anyone disobeying the conditions would at least be doing 
something illegal. And of course there would be a didactic spinoff (a 
thing close to my teacher's heart), if not to teach anybody anything 
(which I do not have the RR experience to do yet), at least to show 
people the kinds of mistakes or inefficiencies that relative beginners 
are capable of!


What would YOU do in my shoes? Please don't hesitate to chime in on this 
issue - ALL of you.


Best regards,
Bob



---
Stomfi wrote:

>Re your Linux stuff

>The Linux syntax to  mount any media whether  in fstab or  not is

>mount devicename mountpoint

>see the  man page for option  flags

>to mount a floppy at /media/floppy one could write
>in Linux shell code

>#Make sure mount point exists
>mkdir /media /media/floppy
>#may have to give it read/write permission
>chmod +rw /media/floppy
>#mount the media
>mount /dev/fd0 /media/floppy

>and to check it got mounted

>mount | grep floppy

>Of course the mount point doesn't have to be where fstab says it is,
>it could be any where you can set read/write permissions
>like $HOME/media/floppy.

>Better to check it is mounted first because many of the newer
>versions of Linux automount the floppy and other removable media
>like windows does. A bit of a security hole, but like all things
>Windoze,  "Ease of Use" is more important than system security.
>This also means that you don't have to "umount /media/floppy" to
>unmount it as this happens automagically as well.

>Re your keys problem, your Linux window manager may have set this
>key to something else. RunRev does work better in GNOME which is GTK
>based, but KDE is also popular as many Windows indoctrinated users
>like it.

>Then like all things Linux there is the choice of all the rest of
>the window managers. Its a bit like a deaf blind person having lots
>of wives or husbands. You are never quite sure what to say until
>they bite your ear. But I like it.

>Kind regards
>Stomfi

--
Bob Warren wrote:

>> Dear Mark,
>>
>> I have asked the following simple Linux question on-List, but I have not
>> received any kind of answer. It suddenly occurs to me that you might be
>> the most qualified person to give me the answer I am seeking.
>>
>> As you may have seen recently, I have produced a pair of standalone
>> file/picture chooser widgets for Windows (see
>> http://www.howsoft.com/runrev/stacks.htm). I am now working on the Linux
>> version. The trouble is that I do not have extra computers available to
>> install versions of Linux other than the one I am using (Ubuntu Hoary
>> Hedgehog: the floppy doesn't work at all in Breezy Badger!), so I am not
>> in a position where I can easily di

Re: Spam:Re: Index for Revolution PDF Document

2006-02-20 Thread Judy Perry
This reminds me of an ACM article I'm having the students read this week
(It's something like 'Text vs Hypertext: Which is easier to use to find
information' or some such thing).

It involved two groups with reference material on Sherlockiana -- one
group had all the info in a Hypercard stack and the other had the same
material in a book/encyclopedic reference format.

The test subjects were given a list of questions and timed as they found
the answers.

It would be interesting to repeat it with my students -- one group using
the built-in docs and the other using Dave's indexed PDF...

(considering the idea...  anybody got any good questions?)

Judy

On Mon, 20 Feb 2006, David Burgun wrote:

> It depends on if you are "using" the document or just proof reading
> it. If you are using it, then it makes finding things really easy.
> All you do it enter a word or phrase like "mouseStack" and it will
> return a list of all the occurrences with a rating bar similar to
> spotlight. Then you just double click the line you want to see and it
> instantly pops up in the PDF file.
>
> I'm "using" the document and have found it makes finding things much
> easier/quicker.
>
> Cheers
> Dave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Judy Perry
Well, of course.  However, the larger looming point is that instead of
using PowerPoint because it's the right tool for the job, they choose it
as a runner-up to the thing that is the right tool, some crucial parts of
which are utterly incomprehensible out of the box.

Like using case statements and pwhich's where a simple if-then series will
do.  ;-)

Judy

On Sun, 19 Feb 2006, Richard Gaskin wrote:

> If PowerPoint will do what they need with less work, they'd be a fool
> not to.
>
> Rev is a software development tool. The only software worth developing
> is the stuff that doesn't exist yet.  If what you need already exists
> it's almost always cheaper to just buy it than make it yourself.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Judy Perry
Mark,

On Sun, 19 Feb 2006, Mark Wieder wrote:

> > Case-Switch statements are preferred by "real" programmers.
>
> Not so. I've put forth the situations in which I would normally use
> switch statements, but I do use if/then statements (and even elses) a
> whole lot. I even nest them.

Fair enough!
>
> It's kind of like getting past the hurdle of writing your first
> function. And why you would want to do that in the first place.

Yeah, my programming binky is still firmly clenched between my teeth on
this one @;-)

> But, yes, I'm in agreement that first you teach the if/thens - they're
> the basis of programming. And why HTML isn't a programming language.
> Once someone's mastered basic conditionals then you can start working
> other things in (elses and elseifs and switches and such).

Funny (or not) side story: probably about 10 years back I was volunteering
heavily for our local MESA (Math, Engineering, Science Achievement)
Program (minority, er, underpriviledged, er, underrepresented.. or
whatever's the current term, junior & senior high school students).  The
program (funded out of the University of California President's Office and
corporate sponsors) has a big semi-stateswide competition each year in
various areas such as egg-toss, making various mechanical thingies,
crystal growing, etc.  The local director or her assistant was wanting to
submit an activity for something Computer Science-related and, came upon
the idea of a webpage-creation contest.  Only, it wasn't to be hand-coded
in HTML.

Instead, it would be a competition in using FrontPage.

It took alot of lobbying to get them to abandon the FrontPage part of it,
so heavily entrenched was the notion that webpages are akin to magic and
thus the art of making one -- even a very simple one -- was too difficult
for high school students.

Judy

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Richard Gaskin

Mark Waddingham wrote:
It may be worth noting that there is no sanctioned API for that, as 
Apple considers those menus to be exclusively for their own use:


Reserved for use by Apple, the right side of the menu bar
may contain items that provide feedback on and access to
certain hardware or network settings.
 



Third-party programs which make such menus for themselves do so by 
violating Apple's design mandate and effectively "hacking" the system.


I think the term 'hacking' used in this context is a little strong.


Since we now live in a world where clicking a "Cancel" button has been 
characterized as "hacking", it seemed a fair enough usage here. ;)


But seriously, I'm just old enough to have different connotations for 
"hacking".  Back in the olden days it wasn't always a bad thing, 
referring instead to any earnest poking around under the hood to get 
unusual results, rather like hacking brush out of the way so more 
interesting plants can flourish.


In regards to dock menus then - yes - useful things those and its nice 
how they correlate (to some extent) with task-bar icons with menus on 
Windows...


I just submitted a request for a new iconMenu stack property, with 
accompanying iconMenuPick message:





--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Mark Swindell

Rob,

I agree wholeheartedly with you on this.  Switch statements are not  
hard to comprehend once you've got some mental velcro to hang them  
onto, some preexisting knowledge to connect to.  They are imposing  
when you don't have that.


Two conditions need to be met for most programming newbies to get it:
1. If then else construct is learned and understood
2. Switch is _taught_ through referencing the if then else concept,  
and the new parallel switch syntax and its value are introduced


The problem with most of this for newbies is they are not being  
_taught_ much of anything, but rather having to figure it out on  
their own by scrubbing the docs, which takes them out of the learning/ 
solving  mode and into the foraging/frustration mode.


Mark



On Feb 20, 2006, at 8:13 AM, Rob Cozens wrote:


Judy, et al:


If-Thens are readily comprehensible by non/novice-programmers.



And by extension, switch statements are not. [?]

When I gave you this point in an earlier post, I was really  
conceding that the syntax of a switch statement does not flow in  
the same English-like fashion of "ifs" in xTalk.


Maybe I've been at it too long to see the forest for the trees; but  
I truly don't see what is so hard to comprehend about the switch  
concept.  One identifies  a switch value and specifies different  
logic paths to follow depending on the value of the switch.


on menuPick thePick
switch thePick
case "Cut"
...
break
case "Copy"
...
break
case "Paste"
...
break
[etc.]
default
answer warning quote&thePick"e&&"is not 
supported!"
end switch
end menuPick

It can be explained in terms of if/then/else--which you find easily  
comprehended--; so when it's explained in that context it should be  
readily understoodno?


Again, I'll grant you that there is more to switches than that  
simple example shows; but the basic concept is not that difficult  
to understand or explain (to me; but I have to defer to your  
classroom experience, as unintuitive as it is to moi).


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
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Mikey
I've now been programming in a pile of different languages, including
various assembly lanuages, and several "dead" ones for just about 30
years.  However compact and quick-to-write B, C, and their derivatives
are, they are unbelievably difficult to read, which prompted one
speaker at a VAX programming conference session on languages some 20
years ago to remark that C was a "Write-Only" language.

I really like xtalk because it is so conversational, so it's very
simple to write and very simple to read.  By contrast, I just recently
picked up a customer that has several million lines of COBOL, and
despite the fact that COBOL is probably the easiest to read
business-logic language that has ever been, I find it very difficult
to plod through, especially when (as is the case with this client),
there is almost no documentation, and there are almost no version
notes.

All of that said, I HATE the new-fangled way that SWITCH works in more
modern languages.  Back in "the day", CASE was used for multi-state
conditionals, and after each condition was handled the construct would
break.  I would have rather had a dontbreak than a break, just for
that reason.  I am much more frequently writing code that would be
more in the if elseif elseif endif type of setup than the commonality
that SWITCH is designed to handle by default.
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: crashes while using script editor in 2.7

2006-02-20 Thread Steve Paris
I have also experienced crashes in the script editor on Windows XP Pro. 
Used to happen back in 2.5.x as well (on W2K), but 2.6.1 was wonderfully 
stable.


Waiting in eager anticipation of 2.7.1

Steve Paris


Dave Beck wrote:


Hi,

I downloaded 2.7 last week and have been having an awful problem with
consistent crashes while using the script editor. It happens sometimes when
I try to copy a portion of text, sometimes when I am selecting, sometime
when I am just changing the positions of the cursor. I don't think I've
closed Rev normally one time in the last week - it has always crashed before
I get the chance. This never happened until I upgraded to 2.7.

Is anybody else experiencing this issue? I am on Windows XP Pro.

 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Standalones won't launch

2006-02-20 Thread Thomas McGrath III

Dave,

I would check that your libraries are included in your build. One of  
the preferences for a build has a button to include libraries, if  
they are not present it can create a problem. That is why a simple  
stack works, it doesn't include anything from the libraries. The  
player usually took care of these.


HTH

Tom



On Feb 20, 2006, at 11:28 AM, Peter T. Evensen wrote:

Do you have any quits in your application?  Could you be  
encountering some error on preOpenStack that is causing you to exit?


So the icon just bounces in the dock on OS X and then disappears?

It would be hard to say without knowing more about your stack.

Could you be using something that you didn't include in the  
standalone?  Are you using profiles?
Is "Search for required inclusion when saving the standalone  
application" selected? or is "Select inclusions for the standalone  
application" selected?


Do you use external stack files (i.e., stacks that aren't  
substacks, but are in separate files from the stack you are  
building into a standalone)?  If so, and you have the "search for  
required..." option checked, it might not be finding a required  
inclusion.  You can add external stacks to the standalone in the  
Stacks pane.  I belive that will include them in the search for  
required inclusions.


Do you use any external files that your application is looking for  
and will quit if it doesn't find them?  You can add them to the  
CopyFiles pane (or copy them manually).


The defaultfolder is the folder containing the runtime.  Are you  
expecting that?  In the development environment, the defaultfolder  
is Revolution folder, by default.


At 10:15 AM 2/20/2006, you wrote:

I recently purchased an update to Studio so that I could make my
applications into standalones.  I have three apps, one for solving
Sudoku puzzles, one for translating English sentences into Latin and
one for drilling the 14 tenses of Italian verbs.  All three of these
apps work perfectly in the development mode, created under Revolution
Dreamcard 2.6.  My standalone apps are supposedly created for PC and
Mac OSX and I can find the files. When I click on their ICons to
launch them on my Imac, the names of the apps flash for a fraction of
a second in the Menu bar and then disappear leaving me looking at the
finder window.  They don't stay launched.  I then experimented by
making a silly simple application that had one button and one field.
The button was scripted to beep however many times were entered into
the field.  It worked both in development and when converted to a
standalone it launched, stayed open and worked perfectly.  So what am
I doing wrong when making my serious apps into standalones?  Please
help me so that I did not spend $200.00 for a useless upgrade.   
Thanks,


Dave Mendriski
[EMAIL PROTECTED]



Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Mark Waddingham
It may be worth noting that there is no sanctioned API for that, as  
Apple considers those menus to be exclusively for their own use:


Reserved for use by Apple, the right side of the menu bar
may contain items that provide feedback on and access to
certain hardware or network settings.



Third-party programs which make such menus for themselves do so by  
violating Apple's design mandate and effectively "hacking" the system.


I think the term 'hacking' used in this context is a little strong.  
Apple have noted that the use of these status items (and the relevant  
APIs) is reserved - but then point out why: they are the first things  
that get 'hidden' when the applications menus are too long to fit on  
a user's screen.


Indeed, if one looks at the status bar items Apple itself installs,  
they are all 'for convenience' - either they display non-critical  
information, or their behaviours are available through other means.  
Reading between the lines, I'm guessing they don't mind too much if  
third-parties install them too, its just they don't want to see a  
whole army of utilities that rely on them exclusively.


In regards to dock menus then - yes - useful things those and its  
nice how they correlate (to some extent) with task-bar icons with  
menus on Windows...


Warmest Regards,

Mark.

--
 Mark Waddingham ~ [EMAIL PROTECTED] ~ http://www.runrev.com
   Runtime Revolution ~ User-Centric Development Tools


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Standalones won't launch

2006-02-20 Thread Peter T. Evensen
Do you have any quits in your application?  Could you be encountering some 
error on preOpenStack that is causing you to exit?


So the icon just bounces in the dock on OS X and then disappears?

It would be hard to say without knowing more about your stack.

Could you be using something that you didn't include in the 
standalone?  Are you using profiles?
Is "Search for required inclusion when saving the standalone application" 
selected? or is "Select inclusions for the standalone application" selected?


Do you use external stack files (i.e., stacks that aren't substacks, but 
are in separate files from the stack you are building into a 
standalone)?  If so, and you have the "search for required..." option 
checked, it might not be finding a required inclusion.  You can add 
external stacks to the standalone in the Stacks pane.  I belive that will 
include them in the search for required inclusions.


Do you use any external files that your application is looking for and will 
quit if it doesn't find them?  You can add them to the CopyFiles pane (or 
copy them manually).


The defaultfolder is the folder containing the runtime.  Are you expecting 
that?  In the development environment, the defaultfolder is Revolution 
folder, by default.


At 10:15 AM 2/20/2006, you wrote:

I recently purchased an update to Studio so that I could make my
applications into standalones.  I have three apps, one for solving
Sudoku puzzles, one for translating English sentences into Latin and
one for drilling the 14 tenses of Italian verbs.  All three of these
apps work perfectly in the development mode, created under Revolution
Dreamcard 2.6.  My standalone apps are supposedly created for PC and
Mac OSX and I can find the files. When I click on their ICons to
launch them on my Imac, the names of the apps flash for a fraction of
a second in the Menu bar and then disappear leaving me looking at the
finder window.  They don't stay launched.  I then experimented by
making a silly simple application that had one button and one field.
The button was scripted to beep however many times were entered into
the field.  It worked both in development and when converted to a
standalone it launched, stayed open and worked perfectly.  So what am
I doing wrong when making my serious apps into standalones?  Please
help me so that I did not spend $200.00 for a useless upgrade.  Thanks,

Dave Mendriski
[EMAIL PROTECTED]



Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread James Spencer

On Feb 20, 2006, at 10:10 AM, Richard Gaskin wrote:

As already said, Rev does not provide such facilities so this is  
getting off-topic but the info here is not really correct.  While  
it is true that there is no Apple sanctioned API for specifically  
"Menu Bar Extras" as referred to in the HIG material quoted above,  
Cocoa does provide an Apple sanctioned public API for the creation  
of "Status Items" (NSStatusItem).  These are sort of weaker Menu  
Bar Extras (weaker in that the underlying application needs to be  
running for them to appear and you can't reorder them like you can  
Extras) but they are there regardless of which app is in front and  
they have the advantage that they can't bring the system down  
either.  While a public API, Apple still discourages their use  
unless there is no alternative (say a Dock menu), ostensibly to  
save menu bar real estate.  (I think it's also to avoid creating  
the nightmare of a Windows system tray.)
The point is that not every third party program that is putting up  
one of these menus is "hacking" the system.  I don't like these  
things so I don't have many up there but I note that Kensington's  
MouseWorks uses status items, not menu bar extras.  The only way I  
could tell (short of looking at what processes are running) was to  
try to Cmd-drag the icon.


Thanks for the clarification, James.

As long as Apple's backtracked from their original position, maybe  
a Bugzilla request is in order?


It's hard to know how far Apple has backtracked: I get the sense that  
there is some internal differences.  The HIG quote you gave is still  
very much valid showing a last update date of 2006-02-07 obviously  
long after NSStatusItem was made available (I think in OS X 10.1).


Not that I think Rev should be artificially limited so as to act as a  
"big brother" in complying with good practices, I'm not convinced  
that this deserves a bugzilla request; IMHO even Status Items should  
be limited to hardware based stuff, system level programming that,  
again IMHO, Rev is not really suited for.  Now dock menus on the  
other hand


James P. Spencer
Rochester, MN

[EMAIL PROTECTED]

"Badges??  We don't need no stinkin badges!"

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Standalones won't launch

2006-02-20 Thread David Mendriski
I recently purchased an update to Studio so that I could make my  
applications into standalones.  I have three apps, one for solving  
Sudoku puzzles, one for translating English sentences into Latin and  
one for drilling the 14 tenses of Italian verbs.  All three of these  
apps work perfectly in the development mode, created under Revolution  
Dreamcard 2.6.  My standalone apps are supposedly created for PC and  
Mac OSX and I can find the files. When I click on their ICons to  
launch them on my Imac, the names of the apps flash for a fraction of  
a second in the Menu bar and then disappear leaving me looking at the  
finder window.  They don't stay launched.  I then experimented by  
making a silly simple application that had one button and one field.   
The button was scripted to beep however many times were entered into  
the field.  It worked both in development and when converted to a  
standalone it launched, stayed open and worked perfectly.  So what am  
I doing wrong when making my serious apps into standalones?  Please  
help me so that I did not spend $200.00 for a useless upgrade.  Thanks,


Dave Mendriski
[EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Rob Cozens

Judy, et al:


If-Thens are readily comprehensible by non/novice-programmers.



And by extension, switch statements are not. [?]

When I gave you this point in an earlier post, I was really conceding 
that the syntax of a switch statement does not flow in the same 
English-like fashion of "ifs" in xTalk.


Maybe I've been at it too long to see the forest for the trees; but I 
truly don't see what is so hard to comprehend about the switch concept. 
 One identifies  a switch value and specifies different logic paths to 
follow depending on the value of the switch.


on menuPick thePick
switch thePick
case "Cut"
...
break
case "Copy"
...
break
case "Paste"
...
break
[etc.]
default
answer warning quote&thePick"e&&"is not 
supported!"
end switch
end menuPick

It can be explained in terms of if/then/else--which you find easily 
comprehended--; so when it's explained in that context it should be 
readily understoodno?


Again, I'll grant you that there is more to switches than that simple 
example shows; but the basic concept is not that difficult to 
understand or explain (to me; but I have to defer to your classroom 
experience, as unintuitive as it is to moi).


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
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Richard Gaskin

James Spencer wrote:


On Feb 20, 2006, at 9:22 AM, Richard Gaskin wrote:


Klaus Major wrote:

Buongiorno Paul,
Someone knows if the new Rev. 1.7 give some new chance to create a 
system

menu on Mac Os X (the menus visible by all applications, as
MenuCalendarClock, MenuMeters, iKey, etc.)?

sorry, I'm afraid that is not possible with Rev :-/


It may be worth noting that there is no sanctioned API for that, as 
Apple considers those menus to be exclusively for their own use:


Reserved for use by Apple, the right side of the menu bar
may contain items that provide feedback on and access to
certain hardware or network settings.
 

Third-party programs which make such menus for themselves do so by 
violating Apple's design mandate and effectively "hacking" the system.


As already said, Rev does not provide such facilities so this is getting 
off-topic but the info here is not really correct.  While it is true 
that there is no Apple sanctioned API for specifically "Menu Bar Extras" 
as referred to in the HIG material quoted above, Cocoa does provide an 
Apple sanctioned public API for the creation of "Status Items" 
(NSStatusItem).  These are sort of weaker Menu Bar Extras (weaker in 
that the underlying application needs to be running for them to appear 
and you can't reorder them like you can Extras) but they are there 
regardless of which app is in front and they have the advantage that 
they can't bring the system down either.  While a public API, Apple 
still discourages their use unless there is no alternative (say a Dock 
menu), ostensibly to save menu bar real estate.  (I think it's also to 
avoid creating the nightmare of a Windows system tray.)


The point is that not every third party program that is putting up one 
of these menus is "hacking" the system.  I don't like these things so I 
don't have many up there but I note that Kensington's MouseWorks uses 
status items, not menu bar extras.  The only way I could tell (short of 
looking at what processes are running) was to try to Cmd-drag the icon.


Thanks for the clarification, James.

As long as Apple's backtracked from their original position, maybe a 
Bugzilla request is in order?


It might also be good to have Dock menus as well -- is there a BZ 
request for that?


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is duration (not delay) of the toolTip adjustable

2006-02-20 Thread Thomas McGrath III

André,

Would you care to share your script? Thanks.

Tom

On Feb 20, 2006, at 9:45 AM, André.Bisseret wrote:


Hi Martin and Tom,

Le Monday, 20 Feb 2006, à 13:29 Europe/Paris, Martin Blackman a  
écrit :



Why not have your own 'tooltip' field that you show for as long as
required. Set its layer so it is above the other field(s), update its
contents and move it to the mouseloc or nearby before showing it.  
Then

hide it when ready eg, send 'disappear' to field "theTooltip" in 1
second . (The disappear handler being : hide me)
You are right ! I thought to this solution and I was keeping it in  
reserve, in case of no success with the tooltip !
I kept trying the tooltip solution, because, In my current case,  
(or if my current case then :-))), using the tooltip has an  
advantage that has not a normal field : it possibly overshoots the  
(right) edge of the window.


Currently, after studying the Tom' stacks,  I scripted a tooltip  
solution  that consists (in summary) in calling twice the tooltip,   
waiting 5 sec between the two ; and,just before the second call, I  
reduce the tooltipdelay to the minimum (1) (resuming the default  
value on mouseUp); thus, there is a very short interruption between  
the two presentations, actually nearly unnoticeable.


Thanks a lot for your attention to my problem

Best regards from Grenoble
André





On 20/02/06, André. Bisseret <[EMAIL PROTECTED]> wrote:

Hi Tom,
Thank you for your "Longer toolTip" stack. I would very much get
durations like those of button 2 or even button 3, that work very  
nicely


But, in my case I can't, I am afraid ! I must manage lines of  
text in a
field ; I can't use "on mouseEnter" ; I must use "mouseDown"  
because I

need to get the text of the line on which the cursor is located, and
this, ONLY starting from an intended action  from the user.

I tried diverse solutions inspired by your button 3 script, but  
without

any success (Could be I miss some way)

As Éric told me, the best I obtained was flickering tooltips :-((

Anyway thanks a lot Tom ; I keep your solution in memory

Bests regards from Grenoble
André


Le Saturday, 18 Feb 2006, à 20:11 Europe/Paris, Thomas McGrath III a
écrit :


Hello,

I have uploaded a sample stack to my user space that will display a
tooltip for a longer period of time than the standard tooltips  
using
standard tooltips. It also shows how to display a multiple  
tooltip but

that part does not always work for some reason.

User space: mcgrath3
Stack: Longer Tooltips in Revolution


HTH

Tom

Any ides why the second button only shows the second tooltip
occasionally


On Feb 18, 2006, at 12:13 PM, Eric Chatonet wrote:


Re Bonjour André,

Afraid there is no way to master the duration for which a  
tooltip is

displayed.
The only thing you can do is to re-display the tooltip  
repeatedly...

But flickering would probably appear...
Not a very good answer :-(

Le 18 févr. 06 à 18:05, André.Bisseret a écrit :


Hello,
The app. I am developing is a set of texts, one on each card.
On a special card, accessible from the homeCard, there is a field
that displays the list of all the titles of the texts.
Of course, this field has a vertical scrollBar but also an
horizontal one, because some titles are  longer than the width of
the field.
I am not very happy about this horizontal scrollBar, from an
ergonomical point of view.
So I will keep it, but I would like to add a redundant way to
reading the ends of the longs titles.
Thanks to Tutorials Picker 2.0, that I « picked » on the site So
Smart Software of Éric Chatonet,  I discovered «  How to create
contextual toolTips on-the-fly ».
Reading this tutorial, I got the idea of using « toolTips ».

Below is the handlers I wrote in the script of the TitlesField :

local tLine

on mouseDown
  put word 2 of the mouseLine into tLine
  set the tooltip of me to empty
  set the toolTip of me to line tLine of me
end mouseDown

on mouseUp
  set the toolTip of me to empty
end mouseUp
 ---
I put this « mouseUp handler » because the toolTip stays there  
for a

certain time that is constant before disappearing.
I want to avoid constraining the user to wait for all this time.
That works well but, on the other hand, this constant duration is
sometimes a bit too short to read comfortably the longs titles in
the toolTip.
There is my problem : Is there a possibility to set the  
duration of

toolTip display ? In fact I would need to get it longer.
I searched diverse ressources (with « Ressources Picker », of
course) but I did not find any answer to this question.

Thanks in advance for any idea,

Best regards from Grenoble
André


Best Regards from Paris,
Eric Chatonet
-- 



http://www.sosmartsoftware.com/ 
[EMAIL PROTECTED]/



___
use-revolution mailing list
use-revoluti

Re: System menus

2006-02-20 Thread Paul Claude
As always, I think freedom is beautiful; and it would be also beautiful to
have the "possibility" of using the full potential of a programming language
brilliant as Revolution.

On other hands, "hacking" the system may be a way to increase its power; I
don't think Apple really feel hurt by this, considering that all the
applications I mentioned before are advertised by Apple itself on Apple's
official site. Take a look at:

http://guide.apple.com/action.lasso?-database=macosguide&-layout=cgi_detail&;
-response=/ussearch/detail.html&prodkey=66163&-search

you will find a beautiful Apple's page dedicated to the "hackers" of
MenuCalendarClock.

If a new program is useful and good, Macintosh users are satisfied and Apple
is happy too (in spite of the menubar has been violated...).

on 20-02-2006 16:22, Richard Gaskin at [EMAIL PROTECTED] wrote:

> It may be worth noting that there is no sanctioned API for that, as
> Apple considers those menus to be exclusively for their own use:
> 
>  Reserved for use by Apple, the right side of the menu bar
>  may contain items that provide feedback on and access to
>  certain hardware or network settings.
>  lines/XHIGMenus/chapter_16_section_4.html>
> 
> 
> Third-party programs which make such menus for themselves do so by
> violating Apple's design mandate and effectively "hacking" the system.
> 
> --
>   Richard Gaskin
>   Managing Editor, revJournal


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread James Spencer


On Feb 20, 2006, at 9:22 AM, Richard Gaskin wrote:


Klaus Major wrote:

Buongiorno Paul,
Someone knows if the new Rev. 1.7 give some new chance to create  
a system

menu on Mac Os X (the menus visible by all applications, as
MenuCalendarClock, MenuMeters, iKey, etc.)?

sorry, I'm afraid that is not possible with Rev :-/


It may be worth noting that there is no sanctioned API for that, as  
Apple considers those menus to be exclusively for their own use:


Reserved for use by Apple, the right side of the menu bar
may contain items that provide feedback on and access to
certain hardware or network settings.




Third-party programs which make such menus for themselves do so by  
violating Apple's design mandate and effectively "hacking" the system.


As already said, Rev does not provide such facilities so this is  
getting off-topic but the info here is not really correct.  While it  
is true that there is no Apple sanctioned API for specifically "Menu  
Bar Extras" as referred to in the HIG material quoted above, Cocoa  
does provide an Apple sanctioned public API for the creation of  
"Status Items" (NSStatusItem).  These are sort of weaker Menu Bar  
Extras (weaker in that the underlying application needs to be running  
for them to appear and you can't reorder them like you can Extras)  
but they are there regardless of which app is in front and they have  
the advantage that they can't bring the system down either.  While a  
public API, Apple still discourages their use unless there is no  
alternative (say a Dock menu), ostensibly to save menu bar real  
estate.  (I think it's also to avoid creating the nightmare of a  
Windows system tray.)


The point is that not every third party program that is putting up  
one of these menus is "hacking" the system.  I don't like these  
things so I don't have many up there but I note that Kensington's  
MouseWorks uses status items, not menu bar extras.  The only way I  
could tell (short of looking at what processes are running) was to  
try to Cmd-drag the icon.


Spence

James P. Spencer
Rochester, MN

[EMAIL PROTECTED]

"Badges??  We don't need no stinkin badges!"

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML files don't display properly

2006-02-20 Thread Thomas McGrath III

Francis,

When you view the word exported html files in your browser try  
resizing the window really small and see if it messes up the lines.  
If so then that is because Word set them as dynamic resizing. I have  
had that happen. In your Rev field then the lines are wrong because  
the field is a different size.


Is that the case?

Tom


On Feb 20, 2006, at 6:14 AM, Francis Nugent Dixon wrote:


Hi from Paris (it's not raining, but winter is dragging on !)

I wanted to display my Song Lyrics in a stack, but Word files are
"no go", so I did a batch convert on my Word folder (VINC is very
useful !), and got perfect HTML files (24 point titles, bold text  
where
I want it, spacing OK, etc.). When I double-click these files and  
display

them with Explorer, they look fine (So far, so good !).

I then display the lyrics in my stack :

set the htmlText of field "MyLyricsField" to URL ("file:" &  
GVLyricsFile)


where GVLyricsFile is a valid full path file name

What is displayed is unpredictable. All the lines are there, bold  
text is OK,
etc. I understand that I may lose some of the characteristics,  
because of the
properties of the field that I display in (24 point headers become  
12 point, etc.)

but what bugs me most is the line spacing. Sometimes the lines are OK,
sometimes they are all squeezed up, and are totally unreadable !

What is doing this ? Can I remove the problem with scripting, or does
it reside in the original Word or HTML files ?

Thanks for any help.

Francis

"Nothing should ever be done for the first time ... "
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Frustration: put after URL...

2006-02-20 Thread Bruce A. Pokras

On 20 Feb 2006, at 13:20, Thomas McCarthy wrote:



Testing out my PayPal thing and running into a few walls:

My brand new Windows XP (home edition) is not allowing my stack to 
put some text into my remote file server.


 put  cr & theText after URL 
"ftp://username:[EMAIL PROTECTED]/revproject/reg/key_log.txt"


This has worked on every other computer, even on the same network.. 
Could there be some XP setting I need to...uhm, set?


First, I didn't even know you could use "put  after url" with an 
ftp URL. But sure enough, it works.


(By the way, the engine makes two calls to the url to do this. First 
it retrieves the entire url from the server, then writes back the 
retrieved data with the new data appended. So this may not offer the 
efficiency you expected.)


That said, I just tested this on 2.7 on Win XP, and it works fine here.

Do you get any error messages?

Cheers
Dave



Tom,

There are issues with privleges when using Win XP.  Lower level 
privleges will block certain calls. Are you trying this while logged 
in with admin privleges?


Regards,

Bruce Pokras
[EMAIL PROTECTED]
Blazing Dawn Software
www.blazingdawn.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Richard Gaskin

Klaus Major wrote:

Buongiorno Paul,


Someone knows if the new Rev. 1.7 give some new chance to create a system
menu on Mac Os X (the menus visible by all applications, as
MenuCalendarClock, MenuMeters, iKey, etc.)?


sorry, I'm afraid that is not possible with Rev :-/


It may be worth noting that there is no sanctioned API for that, as 
Apple considers those menus to be exclusively for their own use:


Reserved for use by Apple, the right side of the menu bar
may contain items that provide feedback on and access to
certain hardware or network settings.



Third-party programs which make such menus for themselves do so by 
violating Apple's design mandate and effectively "hacking" the system.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is duration (not delay) of the toolTip adjustable

2006-02-20 Thread André . Bisseret

Hi Martin and Tom,

Le Monday, 20 Feb 2006, à 13:29 Europe/Paris, Martin Blackman a écrit :


Why not have your own 'tooltip' field that you show for as long as
required. Set its layer so it is above the other field(s), update its
contents and move it to the mouseloc or nearby before showing it. Then
hide it when ready eg, send 'disappear' to field "theTooltip" in 1
second . (The disappear handler being : hide me)
You are right ! I thought to this solution and I was keeping it in  
reserve, in case of no success with the tooltip !
I kept trying the tooltip solution, because, In my current case, (or if  
my current case then :-))), using the tooltip has an advantage that has  
not a normal field : it possibly overshoots the (right) edge of the  
window.


Currently, after studying the Tom' stacks,  I scripted a tooltip  
solution  that consists (in summary) in calling twice the tooltip,   
waiting 5 sec between the two ; and,just before the second call, I  
reduce the tooltipdelay to the minimum (1) (resuming the default value  
on mouseUp); thus, there is a very short interruption between the two  
presentations, actually nearly unnoticeable.


Thanks a lot for your attention to my problem

Best regards from Grenoble
André





On 20/02/06, André. Bisseret <[EMAIL PROTECTED]> wrote:

Hi Tom,
Thank you for your "Longer toolTip" stack. I would very much get
durations like those of button 2 or even button 3, that work very  
nicely


But, in my case I can't, I am afraid ! I must manage lines of text in  
a

field ; I can't use "on mouseEnter" ; I must use "mouseDown" because I
need to get the text of the line on which the cursor is located, and
this, ONLY starting from an intended action  from the user.

I tried diverse solutions inspired by your button 3 script, but  
without

any success (Could be I miss some way)

As Éric told me, the best I obtained was flickering tooltips :-((

Anyway thanks a lot Tom ; I keep your solution in memory

Bests regards from Grenoble
André


Le Saturday, 18 Feb 2006, à 20:11 Europe/Paris, Thomas McGrath III a
écrit :


Hello,

I have uploaded a sample stack to my user space that will display a
tooltip for a longer period of time than the standard tooltips using
standard tooltips. It also shows how to display a multiple tooltip  
but

that part does not always work for some reason.

User space: mcgrath3
Stack: Longer Tooltips in Revolution


HTH

Tom

Any ides why the second button only shows the second tooltip
occasionally


On Feb 18, 2006, at 12:13 PM, Eric Chatonet wrote:


Re Bonjour André,

Afraid there is no way to master the duration for which a tooltip is
displayed.
The only thing you can do is to re-display the tooltip repeatedly...
But flickering would probably appear...
Not a very good answer :-(

Le 18 févr. 06 à 18:05, André.Bisseret a écrit :


Hello,
The app. I am developing is a set of texts, one on each card.
On a special card, accessible from the homeCard, there is a field
that displays the list of all the titles of the texts.
Of course, this field has a vertical scrollBar but also an
horizontal one, because some titles are  longer than the width of
the field.
I am not very happy about this horizontal scrollBar, from an
ergonomical point of view.
So I will keep it, but I would like to add a redundant way to
reading the ends of the longs titles.
Thanks to Tutorials Picker 2.0, that I « picked » on the site So
Smart Software of Éric Chatonet,  I discovered «  How to create
contextual toolTips on-the-fly ».
Reading this tutorial, I got the idea of using « toolTips ».

Below is the handlers I wrote in the script of the TitlesField :

local tLine

on mouseDown
  put word 2 of the mouseLine into tLine
  set the tooltip of me to empty
  set the toolTip of me to line tLine of me
end mouseDown

on mouseUp
  set the toolTip of me to empty
end mouseUp
 ---
I put this « mouseUp handler » because the toolTip stays there for  
a

certain time that is constant before disappearing.
I want to avoid constraining the user to wait for all this time.
That works well but, on the other hand, this constant duration is
sometimes a bit too short to read comfortably the longs titles in
the toolTip.
There is my problem : Is there a possibility to set the duration of
toolTip display ? In fact I would need to get it longer.
I searched diverse ressources (with « Ressources Picker », of
course) but I did not find any answer to this question.

Thanks in advance for any idea,

Best regards from Grenoble
André


Best Regards from Paris,
Eric Chatonet
 
--


http://www.sosmartsoftware.com/ 
[EMAIL PROTECTED]/



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.c

Re: Frustration: put after URL...

2006-02-20 Thread Dave Cragg


On 20 Feb 2006, at 13:20, Thomas McCarthy wrote:



Testing out my PayPal thing and running into a few walls:

My brand new Windows XP (home edition) is not allowing my stack to  
put some text into my remote file server.


 put  cr & theText after URL "ftp://username:[EMAIL PROTECTED]/ 
revproject/reg/key_log.txt"


This has worked on every other computer, even on the same network..  
Could there be some XP setting I need to...uhm, set?


First, I didn't even know you could use "put  after url" with an  
ftp URL. But sure enough, it works.


(By the way, the engine makes two calls to the url to do this. First  
it retrieves the entire url from the server, then writes back the  
retrieved data with the new data appended. So this may not offer the  
efficiency you expected.)


That said, I just tested this on 2.7 on Win XP, and it works fine here.

Do you get any error messages?

Cheers
Dave



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Jerry Muelver

Richard Gaskin wrote:
Rev is a software development tool. The only software worth developing 
is the stuff that doesn't exist yet.  If what you need already exists 
it's almost always cheaper to just buy it than make it yourself.
That's a perfect encapsulation of what drives me to programming. In 
fact, my next project is an apt illustration of the axiom. I'm writing a 
system status monitor that will put up a message telling you when the 
system is shut down, so you won't accidentally do any computing with the 
computer turned off. I'm having some problems with displaying the 
message at the moment, but I expect that I'll solve the issue with the 
new capabilities of Rev 2.7 when it becomes available on Linux.


 Jerry Muelver
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System menus

2006-02-20 Thread Klaus Major

Buongiorno Paul,

Someone knows if the new Rev. 1.7 give some new chance to create a  
system

menu on Mac Os X (the menus visible by all applications, as
MenuCalendarClock, MenuMeters, iKey, etc.)?


sorry, I'm afraid that is not possible with Rev :-/


Regards

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


System menus

2006-02-20 Thread Paul Consolo
Someone knows if the new Rev. 1.7 give some new chance to create a system
menu on Mac Os X (the menus visible by all applications, as
MenuCalendarClock, MenuMeters, iKey, etc.)? 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Frustration: put after URL...

2006-02-20 Thread Thomas McCarthy

Testing out my PayPal thing and running into a few walls:

My brand new Windows XP (home edition) is not allowing my stack to put some 
text into my remote file server.

 put  cr & theText after URL "ftp://username:[EMAIL 
PROTECTED]/revproject/reg/key_log.txt"

This has worked on every other computer, even on the same network.. Could there 
be some XP setting I need to...uhm, set?

this is running in rev 2.7, by the wayhmmm. could that be it? the other 
machines I tested it on were running 2.6.interesting

tm

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is duration (not delay) of the toolTip adjustable

2006-02-20 Thread Martin Blackman
Why not have your own 'tooltip' field that you show for as long as
required. Set its layer so it is above the other field(s), update its
contents and move it to the mouseloc or nearby before showing it. Then
hide it when ready eg, send 'disappear' to field "theTooltip" in 1
second . (The disappear handler being : hide me)


On 20/02/06, André. Bisseret <[EMAIL PROTECTED]> wrote:
> Hi Tom,
> Thank you for your "Longer toolTip" stack. I would very much get
> durations like those of button 2 or even button 3, that work very nicely
>
> But, in my case I can't, I am afraid ! I must manage lines of text in a
> field ; I can't use "on mouseEnter" ; I must use "mouseDown" because I
> need to get the text of the line on which the cursor is located, and
> this, ONLY starting from an intended action  from the user.
>
> I tried diverse solutions inspired by your button 3 script, but without
> any success (Could be I miss some way)
>
> As Éric told me, the best I obtained was flickering tooltips :-((
>
> Anyway thanks a lot Tom ; I keep your solution in memory
>
> Bests regards from Grenoble
> André
>
>
> Le Saturday, 18 Feb 2006, à 20:11 Europe/Paris, Thomas McGrath III a
> écrit :
>
> > Hello,
> >
> > I have uploaded a sample stack to my user space that will display a
> > tooltip for a longer period of time than the standard tooltips using
> > standard tooltips. It also shows how to display a multiple tooltip but
> > that part does not always work for some reason.
> >
> > User space: mcgrath3
> > Stack: Longer Tooltips in Revolution
> >
> >
> > HTH
> >
> > Tom
> >
> > Any ides why the second button only shows the second tooltip
> > occasionally
> >
> >
> > On Feb 18, 2006, at 12:13 PM, Eric Chatonet wrote:
> >
> >> Re Bonjour André,
> >>
> >> Afraid there is no way to master the duration for which a tooltip is
> >> displayed.
> >> The only thing you can do is to re-display the tooltip repeatedly...
> >> But flickering would probably appear...
> >> Not a very good answer :-(
> >>
> >> Le 18 févr. 06 à 18:05, André.Bisseret a écrit :
> >>
> >>> Hello,
> >>> The app. I am developing is a set of texts, one on each card.
> >>> On a special card, accessible from the homeCard, there is a field
> >>> that displays the list of all the titles of the texts.
> >>> Of course, this field has a vertical scrollBar but also an
> >>> horizontal one, because some titles are  longer than the width of
> >>> the field.
> >>> I am not very happy about this horizontal scrollBar, from an
> >>> ergonomical point of view.
> >>> So I will keep it, but I would like to add a redundant way to
> >>> reading the ends of the longs titles.
> >>> Thanks to Tutorials Picker 2.0, that I « picked » on the site So
> >>> Smart Software of Éric Chatonet,  I discovered «  How to create
> >>> contextual toolTips on-the-fly ».
> >>> Reading this tutorial, I got the idea of using « toolTips ».
> >>>
> >>> Below is the handlers I wrote in the script of the TitlesField :
> >>> 
> >>> local tLine
> >>>
> >>> on mouseDown
> >>>   put word 2 of the mouseLine into tLine
> >>>   set the tooltip of me to empty
> >>>   set the toolTip of me to line tLine of me
> >>> end mouseDown
> >>> 
> >>> on mouseUp
> >>>   set the toolTip of me to empty
> >>> end mouseUp
> >>>  ---
> >>> I put this « mouseUp handler » because the toolTip stays there for a
> >>> certain time that is constant before disappearing.
> >>> I want to avoid constraining the user to wait for all this time.
> >>> That works well but, on the other hand, this constant duration is
> >>> sometimes a bit too short to read comfortably the longs titles in
> >>> the toolTip.
> >>> There is my problem : Is there a possibility to set the duration of
> >>> toolTip display ? In fact I would need to get it longer.
> >>> I searched diverse ressources (with « Ressources Picker », of
> >>> course) but I did not find any answer to this question.
> >>>
> >>> Thanks in advance for any idea,
> >>>
> >>> Best regards from Grenoble
> >>> André
> >>
> >> Best Regards from Paris,
> >> Eric Chatonet
> >> --
> >> 
> >> http://www.sosmartsoftware.com/[EMAIL PROTECTED]/
> >>
> >>
> >> ___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> > Thomas J McGrath III
> > [EMAIL PROTECTED]
> >
> > Lazy River Software™ - http://www.lazyriversoftware.com
> >
> > Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html
> >
> > Meeting Wear™ - http://www.cafepress.com/meetingwear
> >
> > Semantic Compaction Systems - http://www.minspeak.com
> >
> > SCIconics, LLC - http://www.sciconics.com/sciindex.html
> >
> >
> >
> >
> >
> >
> >
> > ___

Re: Invoke your background stack by a key combination

2006-02-20 Thread Paul Claude
Hi Malte,

Thank you very much, it works perfectly.

Greetings

Paul Claude


on 20-02-2006 11:50, Malte Brill at [EMAIL PROTECTED] wrote:

> Hi Paul,
> 
> I would write a keyboard listener script. This might get you started:
> 
> A stack with a field and a button:
> 
> In the buttons script:
> 
> on mouseUp
>if the flag of me is empty then set the flag of me to false
>set the flag of me to not the flag of me
>if the flag of me then
>  put empty into fld "myField"
>  startlisten
>end if
> end mouseUp
> 
> on startlisten
>if the keysDown is not empty then
>  put the keysdown&cr after fld 1
>end if
>if the flag of me then send "startlisten" to me in 50 millisecs
> end startlisten
> 
> This will also work if the stack is in background.
> 
> Hope that helps,
> 
> Malte
> 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Richard Gaskin

Judy Perry wrote:
> ...we used to use Pascal as our intro to programming course
> language because it was developed as a teaching language.
> Now we use C++ -- why?  Because we think it's a better teaching
> tool of basic programming concepts?  No.  Because we've somehow
> been convinced that in a 100-level, intro to programming course,
> it is more important to teach the students a "real" programming
> language rather than choose a language that is best
> suited to teaching programming concepts _in general_.

Frightening.  So the students learn to type in C++ but not understand 
what they're typing?


I'll bet the same administrators go to conferences with furrowed brows 
and much hand-wringing trying to determine the cause of America's 
intellectual decline, never understanding their own role in the process


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Switch versus if/then/else ( was: Main menu puzzle, Klaus)

2006-02-20 Thread Graham Samuel
On Sun, 19 Feb 2006 14:27:07 -0800, Geoff Canyon  
<[EMAIL PROTECTED]> wrote:


On Feb 19, 2006, at 11:41 AM, Graham Samuel wrote:



Just to add a tiny footnote to this: Judy, how would you tackle a
situation where a user (or a handler) can put in say a number from
1 to 50, and each of those numbers requires the program to carry
out a different action? It wouldn't really be feasible to have a
depth of 50 if-then-elses, so if you want to stick to a simple
sequential model, either you'd have to use a switch (case)
statement, or alternatively a structure like a handler 'myHandler'
containing 50 statements like:

if my parameter = 33 then
 doMyThirtyThirdThing
 exit myHandler
end if



Just to beat on the horse some more, given the above problem
statement, I would likely store the names of the fifty handlers in a
custom property, and do the following:

do (line myParameter of the uHandlerList of this cd)


In the first draft of my mail quoted above, I was going to mention  
this and the general idea of lookup lists and/or some kind of array  
approach (finite-state automata, yet!) but I realised that this was  
so far from the original spirit of the conversation that I deleted  
it. In fact as Judy says:


And, again, in the spirit of the original postings of the thread,  
I'd say

this:

If-Thens are readily comprehensible by non/novice-programmers.

Case-Switch statements are preferred by "real" programmers.

Real Programmers can take a look at any given set of if-thens and
internally posit the corresponding, perhaps superior, case-switch
statement(s).

But it doesn't work the other way around.


I see the justice of what Judy is saying - I must rate as a Real  
Programmer by now, so I can't quite get the feel of the puzzlement  
felt by non/novice-programmers, but I take it on trust: and I should  
remind myself that my head often spins when I try to understand some  
concept which is totally normal to people who have followed only  
slightly different paths of geekiness than mine - for example the  
idea of an Object Request Broker used to be something I was forced to  
talk about but which I never understood. My mind kind of floated  
around the subject with nowhere to make anchor. Maybe case statements  
are like that for novices.


Good luck to all those who teach in this field.

Graham


 
---

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


HTML files don't display properly

2006-02-20 Thread Francis Nugent Dixon

Hi from Paris (it's not raining, but winter is dragging on !)

I wanted to display my Song Lyrics in a stack, but Word files are
"no go", so I did a batch convert on my Word folder (VINC is very
useful !), and got perfect HTML files (24 point titles, bold text where
I want it, spacing OK, etc.). When I double-click these files and 
display

them with Explorer, they look fine (So far, so good !).

I then display the lyrics in my stack :

set the htmlText of field "MyLyricsField" to URL ("file:" & 
GVLyricsFile)


where GVLyricsFile is a valid full path file name

What is displayed is unpredictable. All the lines are there, bold text 
is OK,
etc. I understand that I may lose some of the characteristics, because 
of the
properties of the field that I display in (24 point headers become 12 
point, etc.)

but what bugs me most is the line spacing. Sometimes the lines are OK,
sometimes they are all squeezed up, and are totally unreadable !

What is doing this ? Can I remove the problem with scripting, or does
it reside in the original Word or HTML files ?

Thanks for any help.

Francis

"Nothing should ever be done for the first time ... "
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Dock icon - data update

2006-02-20 Thread Klaus Major

Hi Scott,


Recently, Klaus Major wrote:

Revolution has a global property
called the "icon" which, if set, specifies the icon that is
displayed in the OS X dock.

and what is the correct syntax for this?

I believe it's:
  set the icon of this stack to 1005


thanks, that was it! :-)


Regards,

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


Best

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Invoke your background stack by a key combination

2006-02-20 Thread Malte Brill

Hi Paul,

I would write a keyboard listener script. This might get you started:

A stack with a field and a button:

In the buttons script:

on mouseUp
  if the flag of me is empty then set the flag of me to false
  set the flag of me to not the flag of me
  if the flag of me then
put empty into fld "myField"
startlisten
  end if
end mouseUp

on startlisten
  if the keysDown is not empty then
put the keysdown&cr after fld 1
  end if
  if the flag of me then send "startlisten" to me in 50 millisecs
end startlisten

This will also work if the stack is in background.

Hope that helps,

Malte


--
ArcadeEngine - prepare to WOW your audience within minutes
http://www.runrev.com/section/revselect/arcadeengine
http://www.derbrill.com/arcadeengine/forum 
___

use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "unShared" Custom props for new cards?

2006-02-20 Thread Mark Smith
Does it help to know that CPs are like handler-local variables in one  
respect, in that you can create them simply by putting values into  
them, without any initialising step eg:


put thisTamilSong into the uTamilSong of this cd

and then, if  a CP doesn't yet exist, getting it's value will return  
empty eg:


get the uTamilSong of this cd
if it is not empty then put it into fld "songText"

Exporting to XML should be simple, too

repeat with n = 1 to the number of cds in this stack
  repeat for each line L in the customKeys of cd n of this stack
addToYourXMLfile the customProperties[L] of cd n of this stack
  end repeat
end repeat

where addToYourXMLfile is whatever handler does the XML work.

Mark


On 20 Feb 2006, at 10:00, Sivakatirswami wrote:

I'm keeping a set of songs, about 70 in a small data base, each one  
has it's own card, and has several versions in r fields, Original  
Tamil, English transliteration, literal translation, prose  
translation, Lyrical Song version.


Now, I'm wanting to keep some other versions as well, but it's  
cumbersome to show these.. right now I have five fields  set up has  
a horizontal series in a group with a horizontal scroll bar... Only  
two fields can be viewed at at time.. and I have a "hoist" feature  
which moves one field to the front position... it's all a bit  
"wonky" (?) but it works.  These get exported to XML files and then  
imported into Indesign for printing...I'm realizing that if I "take  
the plunge" to storing data in custom properties that suddenly a  
lot  of the display issues are simplified. just present the  
different versions data in the custom props into "generic" the two  
visible display fields. This allows for extensibility with adding  
and programming for, more fields in the UI.


But if one adds a set of  custom properties for the various  
versions, it has to be done for each card. If you set a custom  
property to a background field that holds different text on  
different card, the custom property persists... i.e. it is a  
"shared" custom property for that field for all the cards. if I  
edit the  text of that  prop, it  is  also edited for the same  
field on all the cards. edit the custom prop "uTestText" of fld  
"English"  on card 1 and your edits appear in the "uTestText" of  
fld "English" on cards 2 through 70...even though the fld content  
of fld "English" is different on all the cards. This makes perfect  
sense of course.


So, the question is... is there some way to set up some kind of   
custom prop set, such that when you do "create card"  the new card  
will have  those custom props generated  automatically, but which  
are empty and  unique to that card? I realize the work around would  
be to write a script to adds the custom props to  all the existing  
cards and then trap the create card handler in the future and cause  
it to do a "clone card" instead and then clean out all the data in  
the fields  and custom props of the newly cloned card... this would  
emulate a kind of "background custom property set" that is  
"unshared" but the same across all cards.


but before I go ahead with this... I was just wondering if I missed  
a feature on the vast ocean of Rev's syntax that might allow for  
setting up such an "unshared" background custom property set whcih  
becomes, like,  part of the placed background that is auto added to  
new cards.??


TIA
Sivakatirswami


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Dock icon - data update

2006-02-20 Thread Scott Rossi
Recently, Klaus Major wrote:

>>> Revolution has a global property
>>> called the "icon" which, if set, specifies the icon that is
>>> displayed in
>>> the OS X dock.
 
> and what is the correct syntax for this?

I believe it's:

  set the icon of this stack to 1005

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
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Dock icon - data update

2006-02-20 Thread Klaus Major

Hi Mark and Jaque,


Jacque-


Yes, you should be able to do it. Revolution has a global property
called the "icon" which, if set, specifies the icon that is  
displayed in
the OS X dock. You could write a script that takes a snapshot of a  
small
image containing the text you want to show, and then set the icon  
to the

id of that image. If you do this repeatedly using a "send in "
structure, the icon would update dynamically.


!!!


and what is the correct syntax for this?

OS X, Rev 2.7, small image (32*32) with ID 1005,
which is on the card with the button!

I tried:

on mouseup
  set the icon to 1005
end mouseup

Error:
Type Can't find object
Object Button
Line set the icon to 1005
Hint 1005

on mouseup
  set icon to 1005
end mouseup

Error:
Type Can't find object
Object Button
Line set icon to 1005
Hint 1005

Next guess, since the docs state this is a global variable:

on mouseup
  global icon
  set icon to 1005
end mouseup

Error:
Type global: not a valid variable name
Object Button
Line global icon
Hint icon


Am I missing something obvious?
Does this only work in standalones
and not in the Rev IDE?

Any hints are very appreciated :-)



-Mark Wieder
  [EMAIL PROTECTED]


Regards

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Wow! It's starting to click now!

2006-02-20 Thread Robert Brenstein

At 7:04 PM -0800 2/18/2006, Scott Rossi wrote:

Why is it not possible to substitute 1 and 0 for true and false?  Is this
possible and I've just never seen it?  Has no one ever needed this option?


It goes back to the way xTalks handle values. True and false are 
strings, not numbers (the constant true has value "true", and 
likewise for false). This is how boolean values are reported 
throughout the language, as the strings "true" or "false".


I suppose xTalks could special-case equalities by making the string 
"true" equal the string "1", and "false" equal "0", but it would be 
kind of opaque to scripters, I think. (Handy, but hard to 
understand.)

--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com



I guess that using explicit strings for true/false can have to do 
with HyperTalk, the mother tongue of xTalks, being developed when 
Pascal was the standard programming langauge. Personally, I find the 
C concept of equating any non-zero number to true somewhat silly 
albeit practical in that terse language.


Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spam:Re: Index for Revolution PDF Document

2006-02-20 Thread David Burgun
It depends on if you are "using" the document or just proof reading  
it. If you are using it, then it makes finding things really easy.  
All you do it enter a word or phrase like "mouseStack" and it will  
return a list of all the occurrences with a rating bar similar to  
spotlight. Then you just double click the line you want to see and it  
instantly pops up in the PDF file.


I'm "using" the document and have found it makes finding things much  
easier/quicker.


Cheers
Dave

On 17 Feb 2006, at 19:40, Peter T. Evensen wrote:

Since the user's guide isn't final, I don't think the index would  
be that useful.  I would assume they'd generate one when the  
document is finalized.


At 01:27 PM 2/17/2006, you wrote:

David Burgun wrote:

Hi,
Since I have the full version of Acrobat, I can create indexes  
and  have created one for the RunRev PDF. I am not sure if I am  
allowed to
distribute this, but if I am, I would be happy to send it anyone  
that

wants it!


Actually, I think you should send it to RR. :)


Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


"unShared" Custom props for new cards?

2006-02-20 Thread Sivakatirswami
I'm keeping a set of songs, about 70 in a small data base, each one  
has it's own card, and has several versions in r fields, Original  
Tamil, English transliteration, literal translation, prose  
translation, Lyrical Song version.


Now, I'm wanting to keep some other versions as well, but it's  
cumbersome to show these.. right now I have five fields  set up has a  
horizontal series in a group with a horizontal scroll bar... Only two  
fields can be viewed at at time.. and I have a "hoist" feature which  
moves one field to the front position... it's all a bit "wonky" (?)  
but it works.  These get exported to XML files and then imported into  
Indesign for printing...I'm realizing that if I "take the plunge" to  
storing data in custom properties that suddenly a lot  of the display  
issues are simplified. just present the different versions data in  
the custom props into "generic" the two visible display fields. This  
allows for extensibility with adding and programming for, more fields  
in the UI.


But if one adds a set of  custom properties for the various versions,  
it has to be done for each card. If you set a custom property to a  
background field that holds different text on different card, the  
custom property persists... i.e. it is a "shared" custom property for  
that field for all the cards. if I edit the  text of that  prop, it   
is  also edited for the same field on all the cards. edit the custom  
prop "uTestText" of fld "English"  on card 1 and your edits appear in  
the "uTestText" of fld "English" on cards 2 through 70...even though  
the fld content of fld "English" is different on all the cards. This  
makes perfect sense of course.


So, the question is... is there some way to set up some kind of   
custom prop set, such that when you do "create card"  the new card  
will have  those custom props generated  automatically, but which are  
empty and  unique to that card? I realize the work around would be to  
write a script to adds the custom props to  all the existing cards  
and then trap the create card handler in the future and cause it to  
do a "clone card" instead and then clean out all the data in the  
fields  and custom props of the newly cloned card... this would  
emulate a kind of "background custom property set" that is "unshared"  
but the same across all cards.


but before I go ahead with this... I was just wondering if I missed a  
feature on the vast ocean of Rev's syntax that might allow for  
setting up such an "unshared" background custom property set whcih  
becomes, like,  part of the placed background that is auto added to  
new cards.??


TIA
Sivakatirswami


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Invoke your background stack by a key combination

2006-02-20 Thread Paul Consolo
It's possible that a Rev stack may intercept a key combination when the
stack itself is in background?

As example: I'm working in my favourite word processor and I need to press
command-function-6 to let my Rev stack come in front. 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Dock icon - data update

2006-02-20 Thread Karen


On 20 Feb 2006, at 01:07, Jacqueline Landman Gay wrote:


Yes, you should be able to do it. Revolution has a global property
called the "icon" which, if set, specifies the icon that is  
displayed in
the OS X dock. You could write a script that takes a snapshot of a  
small
image containing the text you want to show, and then set the icon  
to the

id of that image. If you do this repeatedly using a "send in "
structure, the icon would update dynamically.


Thanks very much for the answer Jacque.  I'm guessing that I would  
also need to be able to combine the graphic of my existing icon with  
the snapshot of the text that I wanted to show.  I'll need to try any  
figure out how to do that now - I've not done much with graphics in  
Rev previously.


Karen
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Parameters [WAS: Main menu puzzle]

2006-02-20 Thread FlexibleLearning
>I just ate a hugh meal for my daughters  birthday party and really  
>can't deal with more food functions  right now.

I am well known for my culinary expertise but did not realise  how far it 
extended, Tom!

/H  

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: 2.7 Consensus

2006-02-20 Thread Scott Kane
Hi all,

Thanks for your feedback.  I've decided to complet my
current project in the previous release and a another
new project in 5.7

Cheers

Scott


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution