RE: Win32 standalone

2005-03-01 Thread Roger Amar
I hope you got wonderful dreams with pink elephants ;)
Now I have to find *what* goes wrong in Valentina...
Tell me good luck !!
Cheers,
Roger;

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de MisterX
Envoyé : mardi 1 mars 2005 03:19
À : 'How to use Revolution'
Objet : RE: Win32 standalone

sorry I was sleeping ;))

Sounds like you found the error!
I dont have valentina unfortunately...


Good going!
Xavier

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
> Brenstein
> Sent: Monday, February 28, 2005 23:29
> To: How to use Revolution
> Subject: RE: Win32 standalone
> 
> >Hi Robert,
> >
> >Happy to hear of you there.
> >The standalone crashes on Windows only. Disabling Valentina
> calls stop
> >crashing.
> >Are there external and library also in the Windows version ???
> >I just replied Xavier.
> >What is your idea ?
> >Roger;
> >
> 
> If disabling Valentina calls stops crashing, the problem is not likely 
> on the Rev side. Yes, of course, there is Valentina stuff on Windows 
> as well and it sounds like something goes awry when initing valentina.
> 
> Robert
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-03-01 Thread Robert Brenstein
I hope you got wonderful dreams with pink elephants ;)
Now I have to find *what* goes wrong in Valentina...
Tell me good luck !!
Cheers,
Roger;
Sorry, Roger. It seems I dosed off as well. I did not really mean 
what I said. I meant the problem is not with your normal scripts but 
most likely in interaction with valentina, like having a wrong dll 
version or wrong external property setting or else. You need to 
compare to your ide (working) environment and see what is different. 
You can sprinkle the answer dialogs to display various settings to 
narrow it down.

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-03-01 Thread xbury . cs
Roger

Actually, it wasn't pink elephants but jumping snowboards in a half pipe!
Something I'll enjoy tomorow before finishing the features of HotKeyN2O 
plugin

Good luck skwishing the bugs!
Xavier

On 01.03.2005 09:18:49 use-revolution-bounces wrote:
>I hope you got wonderful dreams with pink elephants ;)
>Now I have to find *what* goes wrong in Valentina...
>Tell me good luck !!
>Cheers,
>Roger;
>
>-Message d'origine-
>De : [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] De la part de MisterX
>Envoyé : mardi 1 mars 2005 03:19
>À : 'How to use Revolution'
>Objet : RE: Win32 standalone
>
>sorry I was sleeping ;))
>
>Sounds like you found the error!
>I dont have valentina unfortunately...
>
>
>Good going!
>Xavier
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Robert
>> Brenstein
>> Sent: Monday, February 28, 2005 23:29
>> To: How to use Revolution
>> Subject: RE: Win32 standalone
>>
>> >Hi Robert,
>> >
>> >Happy to hear of you there.
>> >The standalone crashes on Windows only. Disabling Valentina
>> calls stop
>> >crashing.
>> >Are there external and library also in the Windows version ???
>> >I just replied Xavier.
>> >What is your idea ?
>> >Roger;
>> >
>>
>> If disabling Valentina calls stops crashing, the problem is not likely
>> on the Rev side. Yes, of course, there is Valentina stuff on Windows
>> as well and it sounds like something goes awry when initing valentina.
>>
>> Robert
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>___
>use-revolution mailing list
>use-revolution@lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
>___
>use-revolution mailing list
>use-revolution@lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution


-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: revCreateXMLTreeFromFile

2005-03-01 Thread Mike Doub
Thanks Sarah, that got me past another hurdle. 

I am trying to use the handler feature to restore data and it seems that
while the data is being parsed the revStartXMLData handler is called
multiple times for each data element.  It seems like it is called for every
return. (When I saved the data, I replaced "><" with (">" & return "<"))

This behaviour was not documented but it is easy to work around.

Regards,
   Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sarah Reichelt
Sent: Tuesday, March 01, 2005 2:33 AM
To: How to use Revolution
Subject: Re: revCreateXMLTreeFromFile

Hi Mike,

Have you looked at my XML demo stack? It's on my web site at 

I found that with Mac OS 9, revCreateXMLTreeFromFile didn't work, so I 
include an alternative method which is to read the file into memory and 
use revCreateXMLTree instead.

However judging by your error message, you are trying to call 
revCreateXMLTreeFromFile as if it is a handler, when it is actually a 
function. Remember that with functions, the parameters must be in 
brackets, but you must also give them somewhere to put the result.
e.g.   put revCreateXMLTreeFromFile(tFileName, false, true, false) into 
tDocID

Cheers,
Sarah

On 01/03/2005, at 5:19 PM, Mike Doub wrote:

> I am trying to use revCreateXMLTreeFromFile, but I keep getting the 
> error
> message that the handler is not found.  Can anyone provide me with some
> incite on this?
>
> Where is the XML Library stack so I can poke around and see if it 
> really
> exists?
>
> Thanks,
>Mike

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Dumb questions about POST

2005-03-01 Thread jbv
Hi list,

Once data has been submitted to a server via a
POST command, is it always necessary to wait
for the answer in the it variable before continuing
the script ?
I know it is safer to do so (in case anything goes
wrong), but when the task done by the cgi script
(I'm using Rev cgi) is always the same (update of
data) and is 100% bug free, and if it doesn't really
matter if anything goes wrong, simply because a
similar post will be sent a few seconds later ?
In such a case, could I skip to check the it variable
and just go on with the rest of the script ?

And BTW, what does happen to the value returned
by the server ? Does it remain in the it variable until
its content is replaced by some further line of script ?

And last but not least : does every cgi script need to
return a value ?

Thanks,
JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: CGI access to PostGreSQL

2005-03-01 Thread Mark Waddingham
Hello Sivakatirswami :o)

Looking at your script, then you need to do
  revSetDatabaseDriverPath "/usr/local/lib/revolution"
As it is the *folder* containing the drivers that needs to be
referenced. Also you have to ensure that dbPostgresql.so has appropriate
execute permissions set otherwise it's likely to complain :o)

However, I recall you saying that you had tried this already, so I have
a feeling that there might be another issue...

In order to connect to a Postgres database, the database driver needs to
be able to load a version of the client library 'libpq'. Unfortunately,
the major version number of the libpq shared library increased between
Postgres 7.2 and Postgres 7.3 - and the Linux version of the database
drivers link against libpq.so.2.

As far as I know (although I could be eating my hat on this one) there
should be no problems with using libpq.so.2 to connect to a >= 7.3
Postgres database - it's just that they haven't included it in the stock
7.3 distribution.

To verify if this is the case in your situation do the following from
the command-prompt:
  - cd /usr/local/lib/revolution
  - ldd dbPostgresql.so

This will give you a list of the shared-libraries the driver expects to
find - and will indicate if it cannot find one.

If you get a line something like:
  libpq.so.2 => not found
Then this is the problem described above, and you'll need to dig out a
libpq.so.2 from a pre-7.3 distribution of Postgres and install it in an
appropriate place and all should (hopefully) be well...

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
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a sample "Pyramid" game

2005-03-01 Thread Karen
Alex,

Other than the fact that I'm not very good at card games - this seems to
work well on Mac OS X.  The only problem I had was the selection of pairs to
match (or the King), it seems to need clicking twice sometimes.  I'm not
sure if this is  a bug on the Mac...

It looks really good - the cards are very nicely done.

Karen


On 1/3/05 12:38 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Message: 11
> Date: Mon, 28 Feb 2005 22:24:01 +
> From: Alex Tweedly <[EMAIL PROTECTED]>
> Subject: ANN: PlCard library and a smaple "Pyramid" game
> To: How to use Revolution 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> 
> PlCard is a library designed to support building card games (or Playing
> Card games, since "card" is so confusing in the context of Rev).
> 
> It contains images for the cards themselves, and a number of functions
> and handlers to manipulate them.
> 
> This is an ALPHA release (i.e. I haven't written the documentation yet
> :-)   It's also only been tested on Windows (2000 and XP); I'd be
> particularly interested to hear whether and how it works on Mac or Unix.
> 
> I haven't figured out the best way to handle libraries and applications
> in the context of RevOnline, so for now I have simply bundled the
> library into the sample game; later it will probably be available
> separately.
> 
> It's on RevOnline under Games / Pyramid   or under username
> "alextweedly" / Pyramid
> 
> In theory, the game is obvious and self-explanatory . let me know if
> it's not, or let me know of any problems.  The basic rules for Pyramid
> can be found in almost any collection of Patience games - for example
> http://www.semicolon.com/Solitaire/Rules/PyramidRules.html
> 
> It's very simple - partly because I haven't yet decided whether to make
> scoring, high scores, player names, etc. part of the PlCard library or a
> separate one - so for now you just play without anything more in the way
> of a score than a simple running total.
> 
> Thanks
> -- Alex.
> 
> -- 
> Alex Tweedly   http://www.tweedly.net


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-03-01 Thread Mark Waddingham
>From what I recall of PHP's implementation of session globals it's
actually really simple - indeed a Transcript library could be written to
do something similar.

When a session is initiated, depending on variables that are set, PHP
creates a unique session identifier and either passes this as a cookie,
a GET variable, or POST variable. Then, on termination of the script, it
writes the values of all the session variables to a file keyed by the
session identifier. Upon loading of the script, if a session identifier
is present in some form as described above, it looks up the session,
does a few security checks and then loads the variables from the
appropriate file.

Obviously, this is quite a terse overview, and some general house-
keeping is needed but the idea is simple enough :o)

Warmest regards,

Mark.

On Mon, 2005-02-28 at 06:59 +0100, Terry Vogelaar wrote:
> In my case, I know several other languages to be used for CGI-alike 
> things. I have done things in ASP, PHP, Perl and some less known 
> languages, but none of them make enough sense to compete with Rev CGIs 
> since I discovered that.
> 
> About session globals, there are a lot of techniques to workaround 
> this. Cookies can be used, although I have to investigate how. I often 
> use hidden inputs in HTML-forms and encoded parameters in URLs (like: 
> form.cgi?stack=test&cmd=todo&login=terry&pass=secret)
> 
> Terry
> 
> Op 27-feb-05 om 20:11 heeft Sivakatirswami het volgende geschreven:
> 
> > Confirmed... we have *only* revolution for *all* CGIs on on all our 
> > domains. reason? I don't know any other language. I have yet to find 
> > something I can't do... though PHP's session globals would be nice.
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-03-01 Thread Roger Amar
Hi Robert,

> You can sprinkle the answer dialogs to display various settings to narrow it 
> down.

It is exactly what I did.
The startup handler finishes normally and then the error dialog displays.
If I put a "Exit to top" just before the "End startup", the application windows 
displays, but errors occur when I attempt to do something.

I go back to the salt mine !

Cheers,

Roger;






 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Robert Brenstein
Envoyé : mardi 1 mars 2005 09:28
À : How to use Revolution
Objet : RE: Win32 standalone

>I hope you got wonderful dreams with pink elephants ;) Now I have to 
>find *what* goes wrong in Valentina...
>Tell me good luck !!
>Cheers,
>Roger;

Sorry, Roger. It seems I dosed off as well. I did not really mean what I said. 
I meant the problem is not with your normal scripts but most likely in 
interaction with valentina, like having a wrong dll version or wrong external 
property setting or else. You need to compare to your ide (working) environment 
and see what is different. 
You can sprinkle the answer dialogs to display various settings to narrow it 
down.

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-03-01 Thread Rob Meijer
Frank and everybody
Thank you very much. I have read the topics, but being a recrute on the 
revolutionary field,
it still is too difficult fior me. Moreover RevDoc has a lack of good and 
practical examples,
so I have to find my way with trial and error.

Nevertheless I have 2 questions.
I builded a stack and a substack. The substack "frontpage" is larger than 
the mainstack:
I call the stack that opens "the mainstack". Right? The mainstack is called 
"pages".
On the frontpage there is a field "content", registering the name of each 
page, everytime
the frontpage is entered.The "frontpage" has a larger size than the cards 
in "pages".

To execute the registering of the pages, there is a handler called 
"fillfield" in the stackscript.
Because this handler has to become active when entering the frontpage, I 
put "send fillfield"
in the cardscript of "frontpage" with on opencard:
This handler does not react when entering the Frontpage.

The only way to get the handler active is to put "send fillfield" in a 
navigationbutton of the
pages.

How to call a handler in a substack?
Question 2.
In the stackscript I wrote:
function content
  return "field" &"e&content"e&& "of stack" &"e&frontpage"e
end content
returning: field "content" of stack "frontpage"
The number of lines in field  "content" = 89
but: put the number of lines of content()  puts 1
but: put the number of lines of field "content" of stack "frontpage"   puts 89
What did I do wrong with the function function.
Thanks
Rob
--

At 14:44 28/2/2005, Frank D. Engel, Jr. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rev allows you to work with multiple open stacks, and with stacks which 
are not even open.

The stack currently visible to the user does not have to be the one that 
your script is currently working with.  Rev has the concept of a 
"defaultStack", which is the stack your script works with when you do not 
otherwise specify a stack, and some actions only work on the 
defaultStack.  You can choose a defaultStack just by setting the 
defaultStack property to the name of the stack you want to work with:

set the defaultStack to "my data stack"
If you want to remember the current defaultStack in order to return to it 
after doing whatever you are trying to do:

put the defaultStack into oldDefault
set the defaultStack to "my data stack"
<...do stuff...>
set the defaultStack to oldDefault
Thus you can do anything with any of the other stacks that you can do with 
the main stack(s).  There is no concept of a main stack for an 
"application" or any such thing (Rev does not think of things on an 
Application or Program level, only on a stack level), so all main stacks 
are treated equal, and there are only somewhat minor differences for 
substacks (additional stacks stored in the same file as a single main 
stack; the script of the main stack is late in the message path of each of 
its substacks).

Under the "Topics" area of the Rev docs, look at "Main stacks, substacks, 
and the organization of a stack file" for more info.  Also see the 
defaultStack property (look in the dictionary for this one).

Note that only an open stack can be a defaultStack, but that a stack need 
not be visible to be open.

You can open a stack from another file without showing it on the screen, 
check the docs for the "go" (or "open") command in the dictionary section 
of the Rev docs for more info.

On Feb 27, 2005, at 5:06 AM, Rob Meijer wrote:
Hi Mark
At 08:24 27/2/2005, Mark Wieder wrote:
If I understand what you're trying to do here, the following will
create a new card at the end of substack "addressdata":
push card -- called from mainstack
go to last card of stack "addressdata"
create card "whatever"
pop card -- return to mainstack
what a funny way to use push and pop.
In TB this means quite something else.
After te card "whatever" is created, can I
use global variables from the main stack
and can I pop all data from the mainstack
into the various fields on that whateverCard?

RM> You may use a viewer to show a (part of) a page,
RM> where you want to see special data: f.i. one user
RM> wanted to see what product was the most lucrative,
RM> so he opens a viewer, showing a part of a page
RM> where that list was placed:
So your page data is larger than the displayable card screen space?
There's been some discussion on this list lately about this, but
personally I prefer to create a different card for each view, populate
the card with info from the source data card, then display the view
card for the user. The lock screen command is very handy for this:
I can give a viewer each dimension I want and I can
place it everywhere on the screen: a childviewer stays in the window,
a popupviewer has no limitationson the screen.
lock screen
go to card "Cost Analysis"   --why not going directly to card whichProduct
put field "unit cost" of card whichProduct into field "unit cost"
---what card "unit cost" is this, samestack?
put field "widgets" of card whichProduct into f

This and That (OT)

2005-03-01 Thread Mathewson
1.In Bulgaria all the ISPs shut off most of the ports so
that 
it is (supposedly) only possible to access the internet via
a PC using Microsoft Windows.

Having said that, and being the type of person I am, I am
sending this e-mail from a very humble PIII 733 MHz running
LINSPIRE 4.5 (i.e. LINDOWS).

2. RR is unknown here.

3. In the autumn I hope to use RR or MC to teach basic
programming concepts at a small tourism college here.

Sorry if that is all way off topic, but I thought somebody
might find it interesting.

Richmond

__
See Mathewson's software at:

http://members.maclaunch.com/richmond/default.html
___
---
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-03-01 Thread Klaus Major
Hi Rob,
Frank and everybody
Thank you very much. I have read the topics, but being a recrute on 
the revolutionary field,
it still is too difficult fior me. Moreover RevDoc has a lack of good 
and practical examples,
so I have to find my way with trial and error.

Nevertheless I have 2 questions.
I builded a stack and a substack. The substack "frontpage" is larger 
than the mainstack:
I call the stack that opens "the mainstack". Right? The mainstack is 
called "pages".
On the frontpage there is a field "content", registering the name of 
each page, everytime
the frontpage is entered.The "frontpage" has a larger size than the 
cards in "pages".

To execute the registering of the pages, there is a handler called 
"fillfield" in the stackscript.
Because this handler has to become active when entering the frontpage, 
I put "send fillfield"
in the cardscript of "frontpage" with on opencard:
This handler does not react when entering the Frontpage.

The only way to get the handler active is to put "send fillfield" in a 
navigationbutton of the
pages.

How to call a handler in a substack?
Question 2.
In the stackscript I wrote:
function content
  return "field" &"e&content"e&& "of stack" 
&"e&frontpage"e
end content
returning: field "content" of stack "frontpage"

The number of lines in field  "content" = 89
but: put the number of lines of content()  puts 1
but: put the number of lines of field "content" of stack "frontpage"   
puts 89

What did I do wrong with the function function.
do you sometimes have the feeling of "dejà vu"? ;-)
Thanks
Rob
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie Here

2005-03-01 Thread Michael
Thanks for the quick reply. I would like to add the executables inside
the application and run the exe's from within RR. So I don't have to
drop them into a folder on the PC and cause any version problems. Or I
could drop the files to the PC in a temp dir then remove the files
during exit. I see the "copy files" under standalone application
settings is this the appropriate place to include files for the app ?
Not sure of the function with the copy files option ? Thanks Michael  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray
Sent: Monday, February 28, 2005 8:45 PM
To: Use Revolution List
Subject: Re: Newbie Here

On 2/28/05 8:19 PM, "Michael" <[EMAIL PROTECTED]> wrote:

> Hello
> I have just begun a project that requires a utility which performs a
> bunch of tasks on a network PC to help with our deployments. What I
need
> to do is include a couple executables and run these from inside the
app.
> One executable registers a pc to the network which in turn produces a
> location of the object. Now I can obtain the information with running
> the exe outside but what I can't get is how to run the executable from
> inside RR. Is this even possible ?

Absolutely! Look at "launch" and "open process" in the Transcript
Dictionary. 

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: This and That (OT)

2005-03-01 Thread James Cass
On Feb 28, 2005, at 12:50 PM, Mathewson wrote:
1.In Bulgaria all the ISPs shut off most of the ports so
that it is (supposedly) only possible to access the internet via
a PC using Microsoft Windows.
And they think that's more secure?!
2. RR is unknown here.
You can be Bulgaria's RR Pioneer!  They may even build a bronze statue 
of you in the middle of town!

3. In the autumn I hope to use RR or MC to teach basic
programming concepts at a small tourism college here.
That sounds really cool.  Good luck!
I hope you have a Safe and Prosperous time in Bulgaria!!
-James
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread Mark Swindell
Eric,
Do you know of any resources dealing with recorded audio implemention 
(not midi)?  Midi could provide a great solution for certain stacks, 
but I'm in need of some recorded audio knowledge.
Thanks,
Mark

On Feb 28, 2005, at 10:30 PM, Erik Hansen wrote:
--- Dan Shafer <[EMAIL PROTECTED]> wrote:
I've been doing a bit with sound lately
and there are a couple of serious experts
on this list. Maybe we can put something
together.
MIDI in Revolution
WINDOWS:
http://flexiblelearning.com/xtalk.htm -- mci
http://www.hyperactivesw.com/shakobox.html
MAC:
http://www.hyperactivesw.com/shakobox.html>
http://homepage.mac.com/udi/
Kurt Kaufman's SMF stack bundled with RunRev
Erik Hansen
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread xbury . cs
Mark,

Could you be more specifc?

recorded audio knowledge (in FruityLoop talk) means anything!

Purpose? Usage? Requirements? 
Space or bandwidth limits, user audio level...

Just wondering what you want to hear (pun intended!)

Xavier

On 01.03.2005 14:48:31 use-revolution-bounces wrote:
>Eric,
>Do you know of any resources dealing with recorded audio implemention
>(not midi)?  Midi could provide a great solution for certain stacks,
>but I'm in need of some recorded audio knowledge.
>Thanks,
>Mark
>
>On Feb 28, 2005, at 10:30 PM, Erik Hansen wrote:
>
>> --- Dan Shafer <[EMAIL PROTECTED]> wrote:
>>
>>> I've been doing a bit with sound lately
>>> and there are a couple of serious experts
>>> on this list. Maybe we can put something
>>> together.
>>
>> MIDI in Revolution
>>
>> WINDOWS:
>>
>> http://flexiblelearning.com/xtalk.htm -- mci
>> http://www.hyperactivesw.com/shakobox.html
>>
>> MAC:
>>
>> http://www.hyperactivesw.com/shakobox.html>
>> http://homepage.mac.com/udi/
>> Kurt Kaufman's SMF stack bundled with RunRev
>>
>> Erik Hansen
>
>___
>use-revolution mailing list
>use-revolution@lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution


-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


opencard message

2005-03-01 Thread Klaus Major
Hi friends,
short question:
The docs say, that "opencard" will be executed everytime you GO (!!!) 
to that card.

OK, when navigating from card to card in the same stack it does work,
but when coming from another stack it doesn't!
Example:
Card 1 of stack "A":
on opencard
  beep
end opencard
When i go to card 1 from card 2 of the same stack it beeps.
It also works when i open that stack...
But in a (one and only) substack "B" of that stack "A" i have a button:
on mouseup
  go cd 1 of stack "A"
  ###GO, see above!!!
end mouseup
It does NOT beep...
No other handlers involved!
Am i overlooking something obvious?
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-03-01 Thread Robert Brenstein
Hi Robert,
 You can sprinkle the answer dialogs to display various settings to 
narrow it down.
It is exactly what I did.
The startup handler finishes normally and then the error dialog displays.
If I put a "Exit to top" just before the "End startup", the 
application windows displays, but errors occur when I attempt to do 
something.

I go back to the salt mine !
Cheers,
Roger;
You should display the value of the external property and the version 
of valentina (this should work before calling init). Also default 
directory and anything else that may affect operation and be 
different between ide and standalone.

The problem may also be in other handlers called automatically when 
launching (at least preOpenStack, preOpenCard, suspendStack, focusIn, 
openStack, openCard, mouseEnter, focusOut, resumeStack, focusIn, but 
even more are possible).

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: opencard message

2005-03-01 Thread Robert Brenstein
It does NOT beep...
No other handlers involved!
Am i overlooking something obvious?
Regards
Klaus Major
No, Klaus. That is how it is. When switching stacks, suspendStack and 
resumeStack are sent. OpenCard is not sent because the card is not 
really being opened (it is already open). You can also trap FocusIn, 
if it suits you better as this one is sent always.

Robert Brenstein
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread Mark Swindell
Xavier,
Here's a set of wonderings I posted a couple of days ago directed to 
Dan Shafer.   My current specific project involves a narrated eBook 
where text hiliting (line level) would essentially follow the recorded 
voice.  There would be multiple fields on any given card that would 
require real audio to be read in support of them.

Thanks,
Mark
Questions that I have would involve:
Audio formats:
What's the best for working with Rev under different circumstances?  
MP3, MP4, AIFF (huge files), M4B, etc.   What are the trade offs in 
terms of fidelity, file size, ease of manipulation, compatibility.

Benefits/drawbacks of the different formats:
X-platform issues, standards that can succeed across them?  Example: 
Books on tape use the m4b format which apparently includes striping of 
some sort which allows a user to resume listening at a place he left 
off.  It may not to be compatible with Rev; at least when I tried to 
import such a file into a stack it was howlie garbage.

Audio/text synchronization:
How can I synchronize a longer audio file with real-time text hiliting 
features?  Example: I want to have the narration/reading (real 
recorded voice, not text-to-speech) of a book playing while 
corresponding text is hilited on screen.  Not word by word, 
necessarily, but at least paragraph by paragraph. How might the audio 
drive the hilite feature in a text field (and vice versa)?  Can audio 
files somehow be tagged so as to trigger corresponding text events, 
call handlers that would import new text, scroll fields, etc.  Or 
would this have to occur in reverse.  It would be nice if audio could 
have markers that would be linked to text lines and trigger handlers.  
But that may be fanstasy.

Playback of multiple streams:  Can more than one audio event play back 
at once?  Music synched with voiceover located in different files?

Audio File Storage/retrieval/loading:
How would one anticipate and pre-load audio audio files so that there 
is seamless playback from file to file?  Where are the files kept, and 
how can they be queued so that the user hears no gaps or clicks, etc.?

Memory requirements:
How much memory needs to be allocated to achieve a seamless 
integration of on screen visuals and supplemental audio?  How would 
this happen?

These are just some ideas that pop up off the top of my head.  The m4b 
format seems like it might have great benefits if Rev knew how to read 
the files and somehow access the markers via script.

All this said, I am fully aware of  being 99% ignorant of any of this, 
and that's why I need help and education.

On Mar 1, 2005, at 6:20 AM, [EMAIL PROTECTED] wrote:

Mark,
Could you be more specifc?
recorded audio knowledge (in FruityLoop talk) means anything!
Purpose? Usage? Requirements?
Space or bandwidth limits, user audio level...
Just wondering what you want to hear (pun intended!)
Xavier
On 01.03.2005 14:48:31 use-revolution-bounces wrote:
Eric,
Do you know of any resources dealing with recorded audio implemention
(not midi)?  Midi could provide a great solution for certain stacks,
but I'm in need of some recorded audio knowledge.
Thanks,
Mark
On Feb 28, 2005, at 10:30 PM, Erik Hansen wrote:
--- Dan Shafer <[EMAIL PROTECTED]> wrote:
I've been doing a bit with sound lately
and there are a couple of serious experts
on this list. Maybe we can put something
together.
MIDI in Revolution
WINDOWS:
http://flexiblelearning.com/xtalk.htm -- mci
http://www.hyperactivesw.com/shakobox.html
MAC:
http://www.hyperactivesw.com/shakobox.html>
http://homepage.mac.com/udi/
Kurt Kaufman's SMF stack bundled with RunRev
Erik Hansen
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: opencard message

2005-03-01 Thread Klaus Major
Hi Robert,
It does NOT beep...
No other handlers involved!
Am i overlooking something obvious?
Regards
Klaus Major
No, Klaus. That is how it is. When switching stacks, suspendStack and 
resumeStack are sent.
OpenCard is not sent because the card is not really being opened (it 
is already open).
Ah! That's why :-)
You can also trap FocusIn, if it suits you better as this one is sent 
always.
Thank you very much, will try this one...
Robert Brenstein
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread Klaus Major
Hi Mark,
i will try to answer some of you questions, too, if you don't mind...
Xavier,
Here's a set of wonderings I posted a couple of days ago directed to 
Dan Shafer.   My current specific project involves a narrated eBook 
where text hiliting (line level) would essentially follow the recorded 
voice.  There would be multiple fields on any given card that would 
require real audio to be read in support of them.

Thanks,
Mark
Questions that I have would involve:
Audio formats:
What's the best for working with Rev under different circumstances?  
MP3, MP4, AIFF (huge files), M4B, etc.   What are the trade offs in 
terms of fidelity, file size, ease of manipulation, compatibility.
I guess that QuickTime may NOT be possible?
Think so...
Benefits/drawbacks of the different formats:
X-platform issues, standards that can succeed across them?  Example: 
Books on tape use the m4b format which apparently includes striping 
of some sort which allows a user to resume listening at a place he 
left off.  It may not to be compatible with Rev; at least when I 
tried to import such a file into a stack it was howlie garbage.
For spoken words the AU fileformat may be a good choice.
Quality is acceptable, so is the filesize AND it is crossplatform 
WITHOUT QuickTime...

Audio/text synchronization:
How can I synchronize a longer audio file with real-time text 
hiliting features?  Example: I want to have the narration/reading 
(real recorded voice, not text-to-speech) of a book playing while 
corresponding text is hilited on screen.  Not word by word, 
necessarily, but at least paragraph by paragraph. How might the audio 
drive the hilite feature in a text field (and vice versa)?  Can audio 
files somehow be tagged so as to trigger corresponding text events, 
call handlers that would import new text, scroll fields, etc.  Or 
would this have to occur in reverse.  It would be nice if audio could 
have markers that would be linked to text lines and trigger handlers. 
 But that may be fanstasy.
I would suggest to set and use "callbacks"...
"Callbacks" can trigger actions/handler and will do what you want.
Short explanation of "callbacks":
They are special properties of player objects where you define a time 
and the player will
trigger a handler at that time...

I have a littel stack at Rev-online "Fun with callbacks" that will get 
you started...

Playback of multiple streams:  Can more than one audio event play 
back at once?
Music synched with voiceover located in different files?
Don't know about Unix/Linux, but with players you can have differnt 
sounds playing at the same time
on windows without QuickTime...

No problem on a Mac anyway ;-)
Audio File Storage/retrieval/loading:
How would one anticipate and pre-load audio audio files so that there 
is seamless playback from file to file?  Where are the files kept, 
and how can they be queued so that the user hears no gaps or clicks, 
etc.?
Hmmm, any logical folder management will do.
There is "prepare" command, that will "pre-load" audioclips , but that 
will only work with the
"play ac xyz" command...

With QuickTime you could create a SMIL-file (XML-like text file that 
tells QT to play files in a row...)
and play that single file (that may contains the reference to many 
other files. I am about to release
a little SMIL-lib in the next time :-)

Memory requirements:
How much memory needs to be allocated to achieve a seamless 
integration of on screen visuals and supplemental audio?  How would 
this happen?
Sorry, no idea...
Hope that helps a bit :-)
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] There.com

2005-03-01 Thread James . Cass
If you haven't heard of "There.com" 
(http://www.there.com/whatIsThere.html), you are missing out on an amazing 
experience.  "There" is a 3D, online virtual community with live humans 
behind their avatars.  You can try it for free (no credit card required) 
for 3 days.  Unfortunately it's only available for Windows.  On the Mac 
side is a similar place called "Second Life" but it doesn't hold a candle 
to "There".  If we were to get enough Revolutionaries in "There" we could 
have virtual get togethers and talk about Rev stuff or anything else. I've 
met people from Taiwan, Australia, the UK, etc.  If you go in "There", 
look me up and I'll show you around.  My avatar is "Cassj".  You can check 
out video clips and screenshots here: 
http://www.there.com/whatIsThere.html

-James
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Addressing images

2005-03-01 Thread Jim Hurley
I've discovered I don't know the first thing about addressing images.
Suppose I have created two images, "myFIrstImage" and "mySecondImage."
The rect of each is set to the screenRect
How do I select the image which the next drag command applies to, that is
choose the pencil tool
drag from 100,100 to 200,200
If this were a graphic, I could address the graphic by name, that is
Set the points of graphic "myGraphic" to 
Or suppose I have an imported jpg and a blank image "myBlankImage", 
how do I direct the drag command to "myBlankImage" and not to the jpg?

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-03-01 Thread J. Landman Gay
On 3/1/05 12:29 AM, Rob Meijer wrote:
I made some changes: the mainstack now is "Frontpage", the substack="pages"
The script  of the mainstack contains "fillfield" . The opencardhandler
is in the cardscript. Yet it does not work for me.
The only way to get fillfield executed is to put it in the 
navigationbutton of "pages"
like: on mouseUp; go card "index" of stack "frontpage";fillfield;end 
mouseup.
When you say "substack" do you mean a real substack, or just a second 
file on disk? A real substack is part of the same file and will share 
the script of the main stack. A separate stack on disk does not do that.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread MisterX

MP3 looks like, eh, sounds like your best choice. 

But not to be short on words, here's the story on it...

Unless the spoken text in WAV form is not too big to fit in your
distribution media go with WAV. Much easier... Can Macs play wav without QT
though?

Wavs have the advantage of playing everywhere (presumedly in RunRev) without
QT being installed. But it does take more space (X10) than mp3s - but that
depends on the sound quality you need too (more details below). WAVs are
recommended for samples in music making - mp3s have more quality loss and
take more processing... But mp3s can have better quality for less space -
better for a sample library which is usually 100's of GBs...

MP3 bitrates from 96 and up to 192kbps should be fine for voice (except
lyric voices like opera or bel canto... those would require 192-320 or
more...). 

22Khz should be fine for voice with even "mono-encoded stereo" if possible
(to be tested if Revsupported - test everything!). But 11KHz is also half
the file size and can also work fine as far as quality requirements -
telephones give you 5.5KHz and it's not too shabby. 

You do not need 24 bit encoding either (except for Lyric...), stick to 8
(1/3rd the size) or 16 (usually the default - 2/3rd the size of a 24 bit
file size). 8 bit, 5.5KHz, 96bps would be lots lots smaller than 48 KHz, 32
bit 96KHz stereo, but it would be ugly to hear... A good compromize is
22KHz/16bit/128bps

Just for the trivia:
KHz is the number of samples per 60th of a second (a hertz)X1000. 

KHz to quality translation is this: Phone: 5.5, LP: 11-22 (no DACs - Digital
to Audio Converters), CD or DVD: 44KHz, DAT or Record to disk=48-96KHz.
Crystal amplifiers= infinite quality (at the same KHz) ;)

Lowering KHz is ok to save space, but dont go up with lowered quality sound
file - is not going to improve the quality - if anything it will sound lots
worse - it's not hard to manipulate sound 

MP3 Variable bit rate encoding should be of great use here as well... Make
sure you use it - up to 50% gains on some sounds - more processing intensive
decoding though...

MP3s are compatible everywhere - and mp4 may not be supported by older QT
clients. Forget AIFF, BPM, AU, etc... Antiquated and usually incompatible
somewhere down the food chain...

WAVs can be used on a system that doesnt have QuickTime... That's why I
mentioned it. Also there's a small incompatibility for some wavs with low
bit rate encoding but the bugzilla could be fixed soon. Just watch it when
recording the voice files to the final format - make sure it's playable in
RunRev before commiting to a format. 

A superb sound cutting (for rapping) software is built-in FruityLoops
(flstudio.com, PC only (build with Delphi!) 32bit 96KHz sound
editing/slicing/tracking/sampling/live perf/recording studio included - eh,
I missed a couple features surely - yes, mp3 or wav easy exports). They have
a standalone tool called BeatSlicer (but no longuer available ;() which is
now built in 5.0. It allows you to assign any midi keyboard key to part of
the "auto-cutted" speech - and it cuts to the beat! You can change the beat
slicing anyway you want it too ;) 

This could be another way of layering the text for your fields - But I guess
you're not doing a rap history stack ;) Just idea sprouting... (Watch my
next mail about external request). 

Nonetheless, I mentioned Fruity because, it's cheap, made in belgium (best
possible quality built in our minds [usually]), it could help you do all
sorts of sound file arrangments (like Premiere for video but much more
possibilities with it - time squeezing without pitch shifts is now in FL5.0
- just that is great for fitting something in a short or longuer time frame
- for example.) There's also a built in wav editor... And even a bitmap to
sound generator if you wanted to know what your face sounds like ;) You can
also put in sound in one channel so beeps sound in the other, have fade-ins,
mixes, background music, etc... It also has a cool GUI and IDE for making
your own sound control panels! So it's the definite cousin of RunRev for
music production or sound development and production! 

Alas it only runs on PCs and no scripting it AFAIK...

But it has excellent speech generation from simple text files and vocoder
possibilities!!!

More wacky audio info
http://www.math.niu.edu/~rusin/papers/uses-math/music/

PsychoAcoustics is interesting...
The higher the KHz, the lower the sound will be to your hears...
Remember that! 

Converting a sound from 22KHz to 11KHz usually makes it sound twice
as slow! (change the pitch one octave up to fix)

Made with fruityLoops by tutti yours fruity

KountFuMaster - Rev game samples - More sound effects to come (still waiting
for a second comment from anyone - maybe I just should scrap it and no one
has the balls to tell me ;)

http://www.monsieurx.com/modules.php?name=Downloads&d_op=getit&lid=73 

- MP3s in beta testing - made purely with Fruityloops - takes a while to get
used to it 

Re: 2 questions

2005-03-01 Thread Rob Meijer
At 16:08 1/3/2005, J. Landman Gay wrote:
When you say "substack" do you mean a real substack, or just a second file 
on disk? A real substack is part of the same file and will share the 
script of the main stack. A separate stack on disk does not do that.
yes, a real substack
Rob
[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


PullDown Menu feature missing ?

2005-03-01 Thread MisterX
I have this pull down menu that is not used as a puldown menu
because the option menu that it should be doesn't allow me to
disable menu items (is this a bugzilla already?).

but the Pulldown menu doesn't pull down a menu that is the width
of the menu (it's more the formatted width of the text!!! )

Carambas! What do I bugzilla where now?

Is there a way to make disabled items in an options menu?

Is there a way to change the pulldown's menu's menu-width?

I'hatit to hava nother two searchs and nu bugz todo today!

gone undo that! ;)
Xav


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: PullDown Menu feature missing ?

2005-03-01 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
disable line 3 of button "Options" of group "My Menu Bar"
On Mar 1, 2005, at 11:44 AM, MisterX wrote:
Is there a way to make disabled items in an options menu?
- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCJJuk7aqtWrR9cZoRAns3AJ9P8pY0/UcEevDInw+vz0BwRx7uPACfcVz4
RLw7CjXs3tAtT1bVrwNecS4=
=wj1i
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: PullDown Menu feature missing ?

2005-03-01 Thread MisterX
No SH1gAr!

Nope. that give you "(menuitem" instead of a greyed menuitem as in pulldown
menus.

"Options" [style] menu was meant... sorry, brain nitrous buffer blow off...

Cheerios
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Frank D. Engel, Jr.
> Sent: Tuesday, March 01, 2005 17:43
> To: How to use Revolution
> Subject: Re: PullDown Menu feature missing ?
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> disable line 3 of button "Options" of group "My Menu Bar"
> 
> On Mar 1, 2005, at 11:44 AM, MisterX wrote:
> 
> > Is there a way to make disabled items in an options menu?
> 
> - ---
> Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
> 
> $ ln -s /usr/share/kjvbible /usr/manual
> $ true | cat /usr/manual | grep "John 3:16"
> John 3:16 For God so loved the world, that he gave his only 
> begotten Son, that whosoever believeth in him should not 
> perish, but have everlasting life.
> $
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFCJJuk7aqtWrR9cZoRAns3AJ9P8pY0/UcEevDInw+vz0BwRx7uPACfcVz4
> RLw7CjXs3tAtT1bVrwNecS4=
> =wj1i
> -END PGP SIGNATURE-
> 
> 
> 
> ___
> $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 
> 10 Personalized POP and Web E-mail Accounts, and much more.
> Signup at www.doteasy.com
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using stacks as a database for very large data sets

2005-03-01 Thread Rob Cozens
Hi Bruce,
From my conversation with Jonathan:
>>
Saving a large stack can be time consuming - especially across a
network.
One alternative is a client-server setup.
The entire stack is in RAM on the server side; but client stacks only deal 
with one record at a time.

Thus the stack is always saved locally at the server, never over the network.
If it were possible to use a single stack as a huge
database, it would be very convenient.
I've worked with 44K-record, 43MB, database stacks in 
SDB.  

>> Maybe for Rev 3.0 they will work out such a thing
>
> If they don't, I have--if you're ready to go client/sererver
<<

Well, that sounds like the right approach. Brief summary?
Serendipity Database--Binary (SDB) is a hierarchical database scripted 
entirely in Transcript.  It is implemented as a library stack containing 
database & general handlers, icon images, dialog substacks, and a generic 
database template substack.  SDB ships with a reference stack & back-end 
database, several tutorial/test stacks, a developers' plugin stack, and 
template stacks for creating SDB Utilities & SDB Server standalone 
applications.  SDB single- and multi-user syntax are identical, and 
database front end stacks/standalones can switch between the two modes 
during runtime.  When operating in client/server mode SDB uses the 
Revolution IPC Group's Lib_IPC & Lib_STAMP TCP/IP handlers for 
inter-program communication.  SDB supports explicit locking at the database 
& record level and an optional "auto lock" mode where each user's 
currently-selected record is locked until the user logs off or changes 
current database position.  SDB is 100% open source, modifiable, and 
royalty-free.

When data must be shared among several users, a client/server approach 
eliminates the need for application logic to avoid data collision: only the 
server app has access to the database stack, and it responds to client 
requests on a FIFO basis.  In a Transcript environment, this also has the 
advantage that the entire database stack only resides in RAM and client 
applications only buffer one record at a time.

Performance with large databases is directly dependent on server RAM and 
clock speed.  SDB's binary index searching is able to retrieve one record 
out of 44,000 (43 MB) in < 1 second on a midline G4 iMac.  Times to 
load/save a large database will show the same correlation with hardware 
speed and capacity,

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
http://lists.runrev.com/mailman/listinfo/use-revolution


Addressing images

2005-03-01 Thread Jim Hurley
(Somehow this message was garbled in the previous  post. I just sent 
it to myself, and it seems OK.  Trying again.)

I've discovered I don't know the first thing about addressing images.
Suppose I have created two images, "myFIrstImage" and "mySecondImage."
The rect of each is set to the screenRect
How do I select the image which the next drag command applies to, that is
choose the pencil tool
drag from 100,100 to 200,200
If this were a graphic, I could address the graphic by name, that is
Set the points of graphic "myGraphic" to 
Or suppose I have an imported jpg and a blank image "myBlankImage", 
how do I direct the drag command to "myBlankImage" and not to the jpg?

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread R. Hillen
Hello Xavier,
May I give a little correction:
The value of  "KHz" gives (the number of samples per second)/1000,
as
Hertz (Hz) means the number of samples per second and
1 KHz means 1000 Samples per second.
Richard.
Message: 6
Date: Tue, 1 Mar 2005 17:18:23 +0100
From: "MisterX" <[EMAIL PROTECTED]>
Subject: RE: audio -- some MIDI / Quicktime resources in Revolution
To: "'How to use Revolution'" 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="us-ascii"
...

Just for the trivia:
KHz is the number of samples per 60th of a second (a hertz)X1000.
...
Cheerios
Xavier
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie Here

2005-03-01 Thread Mark Wieder
Michael-

Tuesday, March 1, 2005, 3:39:53 AM, you wrote:

M> Thanks for the quick reply. I would like to add the executables inside
M> the application and run the exe's from within RR. So I don't have to
M> drop them into a folder on the PC and cause any version problems. Or I
M> could drop the files to the PC in a temp dir then remove the files
M> during exit. I see the "copy files" under standalone application
M> settings is this the appropriate place to include files for the app ?
M> Not sure of the function with the copy files option ? Thanks Michael

I'm not convinced that's a good idea (you're bound to run into
permissions problems and other such Windows annoyances), but if you
have to follow through with it, you might consider storing the binary
executables in custom properties and unleashing them when necessary.

set the exeFile of button "RunMe" to url "binfile:c:/myFile.exe"

put the exeFile of button "RunMe" into url "binfile://pequod/x/z.exe"

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: audio -- some MIDI / Quicktime resources in Revolution

2005-03-01 Thread MisterX

oops, blu the revsuspension on that one! ;) 

cheers for the correction! I relearned something today! ;)

Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> R. Hillen
> Sent: Tuesday, March 01, 2005 18:10
> To: use-revolution@lists.runrev.com
> Subject: Re: audio -- some MIDI / Quicktime resources in Revolution
> 
> Hello Xavier,
> 
> May I give a little correction:
> 
> The value of  "KHz" gives (the number of samples per second)/1000,
> 
> as
> Hertz (Hz) means the number of samples per second and
> 1 KHz means 1000 Samples per second.
> 
> Richard.
> 
> > Message: 6
> > Date: Tue, 1 Mar 2005 17:18:23 +0100
> > From: "MisterX" <[EMAIL PROTECTED]>
> > Subject: RE: audio -- some MIDI / Quicktime resources in Revolution
> > To: "'How to use Revolution'" 
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain;   charset="us-ascii"
> >
> > ...
> 
> > Just for the trivia:
> > KHz is the number of samples per 60th of a second (a hertz)X1000.
> >
> > ...
> > Cheerios
> > Xavier
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Addressing images

2005-03-01 Thread MisterX
set the traversal of the control to false...

For fields you have the textlock and the autohilite too

Depends what you want to lock... Disabled is not always my
favorite "look" result...

Have the card script record your clicks because that's where 
you draw. To do that, trap the mousedown and record the mouseloc
at different events or in a 

-- beginners but the natural way
repeat while the mouse is down
  do the drawloop thing
end repeat
-- intermediate but more efficient - but debatable

use a clicklock mechanism with timed send events to redraw the
graphics or paint lines...

But the beginners method is quite easy and works most of the time
for simplicity and perenity's sake.

A better approach is to group your drawings or graphics so you 
draw them into a "graphic" group. Then it's better to put the
scripts that detect dragging in the group whose locklocation is
better set to true.

Last but not least... using a picture as the background for a 
group or the cursor solves lots of interactive GUI issues!

filter the revdocs with "cursor"

Maybe there's already a solution out there in RevLogo?

Cheers
Xavier
--
http://monsieurx.com - nitrous flavored plug-ins for Rev'ing your apps
faster!


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jim Hurley
> Sent: Tuesday, March 01, 2005 18:06
> To: use-revolution@lists.runrev.com
> Subject: Addressing images
> 
> (Somehow this message was garbled in the previous  post. I 
> just sent it to myself, and it seems OK.  Trying again.)
> 
> I've discovered I don't know the first thing about addressing images.
> 
> Suppose I have created two images, "myFIrstImage" and "mySecondImage."
> 
> The rect of each is set to the screenRect
> 
> How do I select the image which the next drag command applies 
> to, that is
> 
> choose the pencil tool
> drag from 100,100 to 200,200
> 
> If this were a graphic, I could address the graphic by name, that is
> 
> Set the points of graphic "myGraphic" to 
> 
> Or suppose I have an imported jpg and a blank image 
> "myBlankImage", how do I direct the drag command to 
> "myBlankImage" and not to the jpg?
> 
> Jim
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: UDP sockets - again

2005-03-01 Thread Mark Wieder
Alex, Dar-

Monday, February 28, 2005, 8:23:05 AM, you wrote:

AT> The documentation for UDP sockets is pretty sparse (or indeed, totally
AT> missing, and trying to use the existing docs is near impossible, because
AT> the differences between TCP and UDP sockets are quite significant).
AT> Dar Scott provided me with lots of help a while ago - you may find more
AT> useful info in the email archives (around September).

Thanks so much for collecting all this udp information in one place. I
normally tend to shy away from using udp, but there are areas where
you really need it (working with existing protocols for other apps,
etc.). Using udp can also bring up firewall issues.

I think of it this way: udp is packet-oriented while tcp is
stream-oriented. Udp gives you speed and low overhead but packets
aren't guaranteed to arrive. Tcp guarantees that the packets arrive at
the destination and arrive in order, but the message can be broken up
into an arbitrary number of packets (Elvi shasle ftt hebuil ding).

With udp the entire message (if it arrives) is in a single packet.
With tcp you have to parse the incoming stream to determine where the
information ends.

-- 
-Mark Wieder
 [EMAIL PROTECTED]




___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Guide to MySql

2005-03-01 Thread David J . Lamp
Is there a comprehensive tutorial available for integrating the usage 
of MySql with RR. I have looked around and have not been able to find 
any lead by example information.  The automatic functions work fine but 
do not meet my needs.

David
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: PullDown Menu feature missing ?

2005-03-01 Thread Ken Ray
On 3/1/05 10:44 AM, "MisterX" <[EMAIL PROTECTED]> wrote:

> I have this pull down menu that is not used as a puldown menu
> because the option menu that it should be doesn't allow me to
> disable menu items (is this a bugzilla already?).

Actually this is only in Windows... on Mac you can disable items in an
option menu.
 
> but the Pulldown menu doesn't pull down a menu that is the width
> of the menu (it's more the formatted width of the text!!! )

True. This is because the pulldown menu style is used for the standard menus
in a menubar.
 
> Is there a way to make disabled items in an options menu?

Not in WIndows; I'd recommend removing the item that should be disabled from
the list so it's not displayed, and then re-adding it when it becomes
available. OR, live with using a pulldown menu.
 
> Is there a way to change the pulldown's menu's menu-width?

Not that I'm aware of.


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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-03-01 Thread Alex Tweedly
J. Landman Gay wrote:
Even if you use an image's short name as an icon reference, the engine 
will try to resolve that into an image ID number. Under the hood, only 
ID numbers can be assigned as icons. So I'm guessing your image IDs 
duplicate some of those in the Rev IDE. Since it is possible to assign 
an ID to an image (they are the only controls that allow this, and it 
is for this exact reason) just assign a different ID to the images 
that conflict.
I tested this out by simply changing it in the Inspector - and of course 
it worked (thanks again).
But for the real solution, I wanted to reset the image IDs under program 
control (so the app can tell my library what values it is allowed to use 
to avoid conflicts). I wrote a simple function to do this -

function PlCardInitialize pStartID
  local tID
  put pStartID into tID
  if tID is empty then put 234000 into tID  -- memorable number in 
"reserved for app" range
  repeat with i = 1 to the number of controls in stack "Playing Cards"
if word 1 of the name of control i of stack "Playing Cards" = 
"image" then
  add 1 to tID
  set the ID of control i of stack "Playing Cards" to tID
end if
  end repeat
  return tID+1
end PlCardInitialize

and called this from the "openstack" of my app.  This worked (I'm sure) 
when I first tried it . but when I close down and re-opened the 
stack, I get an error

executing at 9:13:45 PM
TypeImage: image must be open to set id
ObjectPlaying Cards
Lineset the ID of control i of stack "Playing Cards" to tID
Hint234001
What exactly does "image must be open" mean ?
I tried delaying the call to PlCardInitialize until after the image has 
been referenced (i.e. specified as the icon for a button), and indeed 
until after it has been displayed - and still get the same error.

When I first tried it, I probably had the library stack open - but can't 
think of anything that I would have been doing to the images themselves. 

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

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 01/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: CGI access to PostGreSQL

2005-03-01 Thread Sivakatirswami
OK, your instructions are clear..
 thanks for the ever cheerful and thorough responses...
will work on this and get back to you.
Aloha from Hawaii
Sivakatirswami
On Feb 28, 2005, at 11:20 PM, Mark Waddingham wrote:
Hello Sivakatirswami :o)
Looking at your script, then you need to do
  revSetDatabaseDriverPath "/usr/local/lib/revolution"
As it is the *folder* containing the drivers that needs to be
referenced. Also you have to ensure that dbPostgresql.so has 
appropriate
execute permissions set otherwise it's likely to complain :o)

However, I recall you saying that you had tried this already, so I have
a feeling that there might be another issue...
In order to connect to a Postgres database, the database driver needs 
to
be able to load a version of the client library 'libpq'. Unfortunately,
the major version number of the libpq shared library increased between
Postgres 7.2 and Postgres 7.3 - and the Linux version of the database
drivers link against libpq.so.2.

As far as I know (although I could be eating my hat on this one) there
should be no problems with using libpq.so.2 to connect to a >= 7.3
Postgres database - it's just that they haven't included it in the 
stock
7.3 distribution.

To verify if this is the case in your situation do the following from
the command-prompt:
  - cd /usr/local/lib/revolution
  - ldd dbPostgresql.so
This will give you a list of the shared-libraries the driver expects to
find - and will indicate if it cannot find one.
If you get a line something like:
  libpq.so.2 => not found
Then this is the problem described above, and you'll need to dig out a
libpq.so.2 from a pre-7.3 distribution of Postgres and install it in an
appropriate place and all should (hopefully) be well...
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
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: PullDown Menu feature missing ?

2005-03-01 Thread MisterX

> > Is there a way to make disabled items in an options menu?
> 
> Not in WIndows; I'd recommend removing the item that should 
> be disabled from the list so it's not displayed, and then 
> re-adding it when it becomes available. OR, live with using a 
> pulldown menu.

So I had opted! Plus trouble making it work! ;)

Merci buckets!
Xavier


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


alwaysBuffer vs. screenNoPixMaps

2005-03-01 Thread Phil Davis
Has anyone experimented with the 'alwaysBuffer' object property and the 
'screenNoPixMaps' global property enough to learn anything about them 
beyond the docs say?

It appears to me that 'alwaysBuffer' relates to RE-drawing screen 
elements rather than the initial drawing of same, but I also see this 
little statement in the 'alwaysBuffer' page of the docs (with MY EMPHASIS):
 start 
When moving objects are displayed on the screen, flicker may result, 
since the objects are being redrawn as they move. You can avoid this 
problem by judicious use of the alwaysBuffer property, which creates an 
offscreen memory area IN WHICH OBJECTS ARE INITIALLY DRAWN. The visible 
display is updated from this buffer area, eliminating flicker.
 end 

My goal is to eliminate all flicker during the display (the initial 
screen draw) of a custom modal dialog during my app startup process.

My question:
Is there any initial-flicker-prevention benefit to setting the 
'alwaysBuffer' of a dialog stack to true? Or is it really all dependent 
on the 'screenNoPixMaps' property?

TIA -
Phil Davis
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Checkbox/field related question

2005-03-01 Thread Silver, Jason
Thanks Ken and Mark!  I'm not using any HTML text in the fields...just
plain text.  So, I guess that means I'll be using imageSource for my
checkboxFilled.png and checkboxEmpty.png.  I'll just have to watch out
for when the select button is pressed:

on ButtonPress theButton
  switch (theButton)
  case selectKey
-- checked or unchecked graphic as the first character on the
hilited line?
-- replace graphic with the other one
break
end ButtonPress

When using imageSource, how can I get Revolution to return the name of
the control that was used for that particular image?

-Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Wieder
Sent: Saturday, February 26, 2005 11:51 AM
To: How to use Revolution
Subject: Re: Checkbox/field related question

Jason-

KR> Personally, my suggestion would be to use a list field with two 
KR> separate images, one rectangle with a check mark, and one rectangle 
KR> without. That

That would be my approach, too. Assuming that you're already setting the
image by setting the html content of the line, then all you need to do
is change the imageSource and set the htmlText again.

function Available strWhat
  return "" & strWhat
end Available

function Unavailable strWhat
  return "" & strWhat end
Unavailable

set the htmlText of line whichLine of field "myField" to \
  Available(the hilitedText of field "myField")

--
-Mark Wieder
 [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing images

2005-03-01 Thread Chipp Walters
Jim,
Not sure if this is what you want..
choose the pencil tool
select image "myBlankImage"
drag from topleft of image "myBlankImage" to botright of image 
"myBlankImage"

hope this helps.
-Chipp
Jim Hurley wrote:
(Somehow this message was garbled in the previous  post. I just sent it 
to myself, and it seems OK.  Trying again.)

I've discovered I don't know the first thing about addressing images.
Suppose I have created two images, "myFIrstImage" and "mySecondImage."
The rect of each is set to the screenRect
How do I select the image which the next drag command applies to, that is
choose the pencil tool
drag from 100,100 to 200,200
If this were a graphic, I could address the graphic by name, that is
Set the points of graphic "myGraphic" to 
Or suppose I have an imported jpg and a blank image "myBlankImage", how 
do I direct the drag command to "myBlankImage" and not to the jpg?

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Checkbox/field related question

2005-03-01 Thread Lynch, Jonathan
I am chiming in late on this - so I might be confused...

But if you are looking to have a checkbox in a field that switches back
and forth when checked - I have a field that does this. The following
script goes in the field:

On mouseup
   put word 2 of mousecharchunk() into aaa
put character aaa of me into B
if chartonum(B) = 254 then 
  put numtochar(168) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
else if chartonum(B) = 168 then 
  put numtochar(254) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
end if
end mouseup

just make sure the field has the checkbox character in it to start out
with: *

I know - that probably looks like a bullet point - but if you change
it's font to wingdings, it will look like a checkbox.

If this is covering old ground for you, my apologies.





___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-03-01 Thread Cubist
sez [EMAIL PROTECTED]:
>How to call a handler in a substack?
   "Send" is the keyword you want. As in:

  send "HandlerName" to substack "Fred" of stack "George"

   The thing to keep in mind with "send" is that you're sending a message (a 
string, that being "HandlerName" in my example), and you have to specifically 
identify *where you're sending it TO*. If you wanted to call a handler in a 
particular card of a substack, you'd send the message to (card "Harry" of 
substack "Fred" of stack "George"); if your intended target is a handler in a 
specific button of a particular card, you'd send to  (button "Zelda" of card 
"Harry" 
of substack "Fred" of stack "George"); and so on, and so forth. Rev's 
built-in "long name" function will tell you *exactly* how you should refer to a 
button/card/whatever so that "send" will *always* know where to go.

>In the stackscript I wrote:
>function content
>   return "field" &"e&content"e&& "of stack" &"e&frontpage"e
>end content
>returning: field "content" of stack "frontpage"
>
>The number of lines in field  "content" = 89
>but: put the number of lines of content()  puts 1
>but: put the number of lines of field "content" of stack "frontpage"  
>puts 89
>
>What did I do wrong with the function function.
   Nothing, really. In your "content" function, you're building a string and 
returning that string, and there is only one line in that returned string. 
Yes, the string you built is a valid field-name -- but Rev didn't realize that 
you want the contents of the field that's named by your string, because you 
didn't *tell* it so! Try this instead:

  return (field "content" of stack "frontpage")

   Hope this helps...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Checkbox/field related question

2005-03-01 Thread Silver, Jason
Hi Jonathan,

Thanks for your script!  I think I see where you're going with it
(though the second line is still a little confusing; I'm still grasping
when to use "me" and/or "target").  

What I'm doing instead is using graphics for checkboxes.  So, in my if
statement, I'm checking as follows:

  if the imageSource of char 1 of line currentLine of field "List Items"
is "Checkbox Empty"  then
set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Filled"
  else if the imageSource of char 1 of line currentLine of field "List
Items" is "Checkbox Filled" then
set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Empty"
  end if

I wasn't able to think of this solution before looking at your script.
Thank you for shedding light; this list always does!

-Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lynch,
Jonathan
Sent: Tuesday, March 01, 2005 12:05 PM
To: How to use Revolution
Subject: RE: Checkbox/field related question

I am chiming in late on this - so I might be confused...

But if you are looking to have a checkbox in a field that switches back
and forth when checked - I have a field that does this. The following
script goes in the field:

On mouseup
   put word 2 of mousecharchunk() into aaa
put character aaa of me into B
if chartonum(B) = 254 then 
  put numtochar(168) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
else if chartonum(B) = 168 then 
  put numtochar(254) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
end if
end mouseup

just make sure the field has the checkbox character in it to start out
with: *

I know - that probably looks like a bullet point - but if you change
it's font to wingdings, it will look like a checkbox.

If this is covering old ground for you, my apologies.





___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Checkbox/field related question

2005-03-01 Thread Klaus Major
Hi Jason,
Hi Jonathan,
Thanks for your script!  I think I see where you're going with it
(though the second line is still a little confusing; I'm still grasping
when to use "me" and/or "target").
What I'm doing instead is using graphics for checkboxes.  So, in my if
statement, I'm checking as follows:
  if the imageSource of char 1 of line currentLine of field "List 
Items"
is "Checkbox Empty"  then
set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Filled"
  else if the imageSource of char 1 of line currentLine of field "List
Items" is "Checkbox Filled" then
	set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Empty"
  end if
since there are only 2 options with checkboxes, you can even shorten 
your script a bit ;-)

  if the imageSource of char 1 of line currentLine of field "List 
Items" = "Checkbox Empty"  then
set the imageSource of char 1 of line currentLine of field "List 
Items" to "Checkbox Filled"
  else
	set the imageSource of char 1 of line currentLine of field "List 
Items" to "Checkbox Empty"
  end if

Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Checkbox/field related question

2005-03-01 Thread Lynch, Jonathan
"Me" refers to the object in which the handler is running. It is useful,
because often times you will have a script that needs to work in a
number of different fields (like a spellcheck script). If you had to
change each script to refer to the name of the object itself, it would
get cumbersome.

For example, suppose you had 50 fields named "List Field 1", "List Field
2", etc... if you used "me" in your script rather than "field "List
Items"", you could just copy the script into each field. (actually, you
can do it even easier by calling the script, but that is another issue)

Another suggestion - the script as you have it written here only works
if the character with the image source is on character 1 of line
currentline - this limitation is not necessary:

On mouseup
   put word 2 of mousecharchunk() into aaa
if the imageSource of character aaa of me is "Checkbox Empty" then 
  set the imageSource of character aaa of me to "Checkbox Filled"
else if the imageSource of character aaa of me is "Checkbox Filled"
then 
set the imageSource of character aaa of me to "Checkbox Empty"
end if
end mouseup


If the phrase "word 2 of the mousecharchunk()" is confusing, the docs
explain it pretty well. For this purpose, mousecharchunk() returns a
phrase containing the starting and ending characters. Word 2 of that
phrase will be the character you just clicked on.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Silver,
Jason
Sent: Tuesday, March 01, 2005 3:33 PM
To: How to use Revolution
Subject: RE: Checkbox/field related question

Hi Jonathan,

Thanks for your script!  I think I see where you're going with it
(though the second line is still a little confusing; I'm still grasping
when to use "me" and/or "target").  

What I'm doing instead is using graphics for checkboxes.  So, in my if
statement, I'm checking as follows:

  if the imageSource of char 1 of line currentLine of field "List Items"
is "Checkbox Empty"  then
set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Filled"
  else if the imageSource of char 1 of line currentLine of field "List
Items" is "Checkbox Filled" then
set the imageSource of char 1 of line currentLine of field "List
Items" to "Checkbox Empty"
  end if

I wasn't able to think of this solution before looking at your script.
Thank you for shedding light; this list always does!

-Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lynch,
Jonathan
Sent: Tuesday, March 01, 2005 12:05 PM
To: How to use Revolution
Subject: RE: Checkbox/field related question

I am chiming in late on this - so I might be confused...

But if you are looking to have a checkbox in a field that switches back
and forth when checked - I have a field that does this. The following
script goes in the field:

On mouseup
   put word 2 of mousecharchunk() into aaa
put character aaa of me into B
if chartonum(B) = 254 then 
  put numtochar(168) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
else if chartonum(B) = 168 then 
  put numtochar(254) into character aaa of me
  set the textfont of character aaa of me to "wingdings"
  set the textsize of character aaa of me to 16
end if
end mouseup

just make sure the field has the checkbox character in it to start out
with: *

I know - that probably looks like a bullet point - but if you change
it's font to wingdings, it will look like a checkbox.

If this is covering old ground for you, my apologies.





___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: PullDown Menu feature missing ?

2005-03-01 Thread Lynch, Jonathan
I often simulate pull-down menus with groups containing the various
items I want on them.

A group of this sort could contain a field listing the choices. If a
line in that field is not enabled, it's font color could be set to gray.

When someone clicks on that field, you can test to see if the font color
of the text they clicked is gray before acting on that choice.

Groups of this sort can allow for all sorts of really complicated
pulldown-style menus. You simulate the pulldown by having a button that
turns the visible of the group to "true" when pressed. I also set the
script of the button to place the group right underneath it - that way,
if I move the button around, the group will always appear where it is
supposed to appear when the button is pressed, and I do not have to
think about relocating the group as well.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MisterX
Sent: Tuesday, March 01, 2005 11:44 AM
To: [EMAIL PROTECTED]; 'How to use Revolution'
Subject: PullDown Menu feature missing ?

I have this pull down menu that is not used as a puldown menu
because the option menu that it should be doesn't allow me to
disable menu items (is this a bugzilla already?).

but the Pulldown menu doesn't pull down a menu that is the width
of the menu (it's more the formatted width of the text!!! )

Carambas! What do I bugzilla where now?

Is there a way to make disabled items in an options menu?

Is there a way to change the pulldown's menu's menu-width?

I'hatit to hava nother two searchs and nu bugz todo today!

gone undo that! ;)
Xav


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Mail Card

2005-03-01 Thread Paul Salyers
Dear ReuRev Programmers,
Is it possible to create a "Mail Form": From:, Subject:, & Body and send 
the email using the users default pop3 email setting?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
Http://ps1.SoftSeven.org  

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: PullDown Menu feature missing ?

2005-03-01 Thread Mark Wieder
Ken-

Tuesday, March 1, 2005, 10:52:46 AM, you wrote:

>> I have this pull down menu that is not used as a puldown menu
>> because the option menu that it should be doesn't allow me to
>> disable menu items (is this a bugzilla already?).

KR> Actually this is only in Windows... on Mac you can disable items in an
KR> option menu.

Placing a left-parenthesis char before the text disables it. This
works for me on both platforms (and is a *great* feature - in VB you
have to subclass the ComboBox, make it an owner-draw control, and trap
and handle the wm_paint message yourself).

>From the docs:
"How do I enable or disable a menu item?"

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Checkbox/field related question

2005-03-01 Thread Mark Wieder
Jason-

Tuesday, March 1, 2005, 11:52:18 AM, you wrote:

SJ> When using imageSource, how can I get Revolution to return the name of
SJ> the control that was used for that particular image?

Even though you're not explicitly using htmlText, see what turns up
when you try

put the htmlText of the hilitedLine

-- 
-Mark Wieder
 [EMAIL PROTECTED]



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mail Card

2005-03-01 Thread Sarah Reichelt
Check out the revMail command.
Sarah
On 02/03/2005, at 7:12 AM, Paul Salyers wrote:
Dear ReuRev Programmers,
Is it possible to create a "Mail Form": From:, Subject:, & Body and 
send the email using the users default pop3 email setting?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
Http://ps1.SoftSeven.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Guide to MySql

2005-03-01 Thread Sarah Reichelt
Hi David,
I wouldn't call it comprehensive or even very up-to-date, but there is 
a stack on my web site called MySQLtests.rev which shows how to use the 
Rev database commands to interact with a MySQL database.

Cheers,
Sarah

On 02/03/2005, at 4:13 AM, David J.Lamp wrote:
Is there a comprehensive tutorial available for integrating the usage 
of MySql with RR. I have looked around and have not been able to find 
any lead by example information.  The automatic functions work fine 
but do not meet my needs.

David
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a dumb question

2005-03-01 Thread Malte Brill
Hi Mark,
as the others already said the animation builder has been abandoned. If 
you are looking for an easy way to create cool and smooth animation you 
might want to take a look at libRMC.

You find it either in revonline in my user space (malte) or here:
http://www.derbrill.de/librmc/libRMC.rev.zip
A demo:
http://www.derbrill.de/librmc/libRMCDemo.rev.zip
PDF Docs:
http://www.derbrill.de/librmc/docs.pdf
Regards,
Malte
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mail Card

2005-03-01 Thread Paul Salyers
At 03:49 PM 3/1/2005, you wrote:
Check out the revMail command.
Sarah
On 02/03/2005, at 7:12 AM, Paul Salyers wrote:
Dear ReuRev Programmers,
Is it possible to create a "Mail Form": From:, Subject:, & Body and send 
the email using the users default pop3 email setting?

That brings up the users default mail client. I was wanting to make a card 
to put in a program where the user could send a "form" like email. Can Rev 
do this?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
Http://ps1.SoftSeven.org  

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mail Card

2005-03-01 Thread Sarah Reichelt
Yes, check out my POP library. It doesn't know the user's default POP3 
settings, they have to be typed in, but depending on your system, there 
are probably ways to extract it from preferences or registry settings. 
If you search the list archives, this has been discussed quite 
recently, I think.

Cheers,
Sarah
http://www.troz.net/Rev/
On 02/03/2005, at 7:58 AM, Paul Salyers wrote:
At 03:49 PM 3/1/2005, you wrote:
Check out the revMail command.
Sarah
On 02/03/2005, at 7:12 AM, Paul Salyers wrote:
Dear ReuRev Programmers,
Is it possible to create a "Mail Form": From:, Subject:, & Body and 
send the email using the users default pop3 email setting?

That brings up the users default mail client. I was wanting to make a 
card to put in a program where the user could send a "form" like 
email. Can Rev do this?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
Http://ps1.SoftSeven.org

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: opencard message

2005-03-01 Thread Dan Shafer
Well, this seems to me like unexpected and illogical behavior. 
Implication is that openStack isn't sent when I switch stacks, either. 
If the stack is already open, that makes some sense. But unless the 
stack is open TO the card being addressed by the go command, shouldn't 
openCard still be sent?

Dan
On Mar 1, 2005, at 6:43 AM, Robert Brenstein wrote:
It does NOT beep...
No other handlers involved!
Am i overlooking something obvious?
Regards
Klaus Major
No, Klaus. That is how it is. When switching stacks, suspendStack and 
resumeStack are sent. OpenCard is not sent because the card is not 
really being opened (it is already open). You can also trap FocusIn, 
if it suits you better as this one is sent always.

Robert Brenstein
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a sample "Pyramid" game

2005-03-01 Thread Dan Shafer
I had similar problems with clicks not always being picked up but I 
liked a lot about this.

Dan
On Mar 1, 2005, at 1:23 AM, Karen wrote:
Alex,
Other than the fact that I'm not very good at card games - this seems 
to
work well on Mac OS X.  The only problem I had was the selection of 
pairs to
match (or the King), it seems to need clicking twice sometimes.  I'm 
not
sure if this is  a bug on the Mac...

It looks really good - the cards are very nicely done.
Karen
On 1/3/05 12:38 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
Message: 11
Date: Mon, 28 Feb 2005 22:24:01 +
From: Alex Tweedly <[EMAIL PROTECTED]>
Subject: ANN: PlCard library and a smaple "Pyramid" game
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
PlCard is a library designed to support building card games (or 
Playing
Card games, since "card" is so confusing in the context of Rev).

It contains images for the cards themselves, and a number of functions
and handlers to manipulate them.
This is an ALPHA release (i.e. I haven't written the documentation yet
:-)   It's also only been tested on Windows (2000 and XP); I'd be
particularly interested to hear whether and how it works on Mac or 
Unix.

I haven't figured out the best way to handle libraries and 
applications
in the context of RevOnline, so for now I have simply bundled the
library into the sample game; later it will probably be available
separately.

It's on RevOnline under Games / Pyramid   or under username
"alextweedly" / Pyramid
In theory, the game is obvious and self-explanatory . let me know 
if
it's not, or let me know of any problems.  The basic rules for Pyramid
can be found in almost any collection of Patience games - for example
http://www.semicolon.com/Solitaire/Rules/PyramidRules.html

It's very simple - partly because I haven't yet decided whether to 
make
scoring, high scores, player names, etc. part of the PlCard library 
or a
separate one - so for now you just play without anything more in the 
way
of a score than a simple running total.

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Guide to MySql

2005-03-01 Thread Dan Shafer
Given the way RR works with MySQL, if you just want to move beyond the 
built-in functions, any good MySQL tutorial should help you with other 
actions you want to perform.

There are a BUNCH of such tutorials. Check out 
http://dev.mysql.com/doc/ .

Dan
On Mar 1, 2005, at 10:12 AM, David J.Lamp wrote:
Is there a comprehensive tutorial available for integrating the usage 
of MySql with RR. I have looked around and have not been able to find 
any lead by example information.  The automatic functions work fine 
but do not meet my needs.

David
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mail Card

2005-03-01 Thread Dan Shafer
The built-in revMail command may help if you don't need things like 
HTML formatting and attachments. If you do, then check out Shao Sean's 
most excellet libSMTP and libEmail (http://www.shaosean.tk).

Dan
On Mar 1, 2005, at 1:12 PM, Paul Salyers wrote:
Dear ReuRev Programmers,
Is it possible to create a "Mail Form": From:, Subject:, & Body and 
send the email using the users default pop3 email setting?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
Http://ps1.SoftSeven.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-03-01 Thread J. Landman Gay
On 2/28/05 3:24 PM, Alex Tweedly wrote:
>
> What exactly does "image must be open" mean ?
Loaded into memory, which usually means "visible".
>
> I tried delaying the call to PlCardInitialize until after the image has
> been referenced (i.e. specified as the icon for a button), and indeed
> until after it has been displayed - and still get the same error.
That should have done it. Maybe try a "send in " message that 
resets the ID after the image is on screen? Maybe try setting the 
alwaysBuffer of the image to true?

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a sample "Pyramid" game

2005-03-01 Thread Alex Tweedly
Karen wrote:
Other than the fact that I'm not very good at card games - this seems to
work well on Mac OS X.  The only problem I had was the selection of 
pairs to
match (or the King), it seems to need clicking twice sometimes.  I'm not
sure if this is  a bug on the Mac...

and Dan Shafer wrote:
I had similar problems with clicks not always being picked up but I 
liked a lot about this.
Nope - just a simple bug on all platforms (I hope). Because cards turned 
up form the Stockpile onto the Heap are "preselected" to make it easier 
to select the matching pair, any King turned up that way is also 
pre-selected. So the first click is taken up in de-selecting it, 
requiring a second click to select and remove it.  Fixed in next 
version, which should also have better scoring, and be an even better 
time-waster :-)

If it happens with cards other than Kings on the Heap, please let me know.
Karen also said:
It looks really good - the cards are very nicely done.
I can't take credit for that - I found them on the web, courtesy of 
Google. License says "Feel free to use for personal or professional 
purposes";  when there is documentation and an "about" page, they'll 
give credit to the author, John Fitzgibbon ( www.jfitz.com/cards )

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

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 01/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a smaple "Pyramid" game

2005-03-01 Thread Alex Tweedly
Sarah Reichelt wrote:
Severe time waster alert :-) At first I thought the game was broken, 
but then I managed to win one, so all was well...

This is great Alex, and it ran and looked fine under Mac OS X although 
the shuffling & dealing animations were a bit slow.

Hmmm - I *need* to buy a Mac Mini to check that out. Don't I ? :-)
The only problem I had was when I opened the library stack to have a 
look and it drew the empty pyramid in the library stack, then gave a 
script error because it couldn't find some object.

Yes, I see that problem too, thanks. I have a theory about it, but it 
doesn't quite convince me .

The library stack is - for my development purposes - a separate stack, 
in a separate file. Since that would cause problems for RevOnline (and 
to a lesser extent for Dreamcard Player), I moved the library stack into 
the main file (as a sub-stack) to do the release. I think that when you 
open the library stack, RR is sending an "openstack" - the library stack 
has no such handler but because it is now a proper sub-stack, the 
application's "opencard" handler is in the path, so it is being run 
instead.  ?!

Is that what would happen ?
If so - what's the standard technique to deal with it ?  
 An empty "openstack" handler ?
 And should there, therefore, also be empty "preopenstack", "opencard", 
etc. handlers in any library stack, least it become a sub-stack and 
subsequent;y cause a problem like this ?

--
Alex Tweedly   http://www.tweedly.net
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 01/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a smaple "Pyramid" game

2005-03-01 Thread Sarah Reichelt
 I think that when you open the library stack, RR is sending an 
"openstack" - the library stack has no such handler but because it is 
now a proper sub-stack, the application's "opencard" handler is in the 
path, so it is being run instead.  ?!

Is that what would happen ?
If so - what's the standard technique to deal with it ?   An empty 
"openstack" handler ?
 And should there, therefore, also be empty "preopenstack", 
"opencard", etc. handlers in any library stack, least it become a 
sub-stack and subsequent;y cause a problem like this ?

I have a standard set of dummy handlers that I routinely paste into 
each substack's stack script to avoid this problem: preOpenStack, 
openStack, closeStack and the same for the card messages.

Also, if possible I put initialization handlers like this in the card 
scripts rather than the stack scripts. This works fine for single card 
stacks, but not if there are multiple cards.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: PlCard library and a sample "Pyramid" game

2005-03-01 Thread Dan Shafer
On Mar 1, 2005, at 2:38 PM, Alex Tweedly wrote:
If it happens with cards other than Kings on the Heap, please let me 
know.

It does. It was intermittent for me but definitely occurred on various 
combinations of cards.

Dan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-03-01 Thread Roger Amar
(This message is also posted on the Valentina list)

I cannot find solution to resolve this problem.
The Valentina version, the defaultFolder and the externals are exactly like 
those of the project, as it was appearing in an answer dialog I inserted in the 
startup script.
I removed handlers called automatically like mouseEnter, etc.
I noticed that every time I want to put one of my 2 cursors into a global 
variable, it crashes.
Ruslan said that I can have several cursors alive and switch them via a global 
variable. 
When I remove this switching, the standalone opens but naturally, I can do 
nothing because I have no valid cursor ref.
On another hand I cannot remove this switching process which is the basis of 
all my work.
I changed the name of the global variable CursorRef because I was thinking that 
it could be a reserved word in Win32.
I tried to load all the libraries in the standalone settings.
I replaced the Valentina dll by an old one...
I cannot figure out while this project compiles to a Mac standalone and works 
perfectly.
Thanks to all of you for your kind help.
I cannot drop myself from the 20th stage since there are no stages here !

Roger;


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Robert Brenstein
Envoyé : mardi 1 mars 2005 15:34
À : How to use Revolution
Objet : RE: Win32 standalone

>Hi Robert,
>
>>  You can sprinkle the answer dialogs to display various settings to 
>>narrow it down.
>
>It is exactly what I did.
>The startup handler finishes normally and then the error dialog displays.
>If I put a "Exit to top" just before the "End startup", the application 
>windows displays, but errors occur when I attempt to do something.
>
>I go back to the salt mine !
>
>Cheers,
>
>Roger;

You should display the value of the external property and the version of 
valentina (this should work before calling init). Also default directory and 
anything else that may affect operation and be different between ide and 
standalone.

The problem may also be in other handlers called automatically when launching 
(at least preOpenStack, preOpenCard, suspendStack, focusIn, openStack, 
openCard, mouseEnter, focusOut, resumeStack, focusIn, but even more are 
possible).

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Pause resume script

2005-03-01 Thread Hershel Fisch
Hi, is there a way to pause resume a script meaning while a script is in
process to be paused by another script and when it finishes the first
continues ?
Hershel

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pause resume script

2005-03-01 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
As in, the first script tells the second to start and waits for it to 
finish?

Sure, just use the "send" notation without specifying a time, or if the 
needed handler is already in the message path of the first script, 
simply use its name:

on firstHandler
  -- do stuff first
  secondHandler
  -- this executes AFTER secondHandler finishes
end firstHandler
on secondHandler
  -- this stuff executes before firstHandler continues
end secondHandler
Is that what you meant?
(if the second is not in the normal message path, or to skip steps in 
the message path, you might need to do an explicit send:

send "secondHandler" to field "My Field" of card "My Card" of stack "My 
Stack"

)
On Mar 1, 2005, at 7:20 PM, Hershel Fisch wrote:
Hi, is there a way to pause resume a script meaning while a script is 
in
process to be paused by another script and when it finishes the first
continues ?
Hershel

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCJQki7aqtWrR9cZoRAiDaAJ4hvJJT+yUsixSddxc12gCYMilFLACghvr/
e4QaX18EFARwHnr6v+d7XxU=
=29vL
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pause resume script

2005-03-01 Thread Hershel Fisch
> 
> Is that what you meant?
No. I meant to interrupt a script in the middle of running from an outside
script.
Thanks, Hershel
> 
> (if the second is not in the normal message path, or to skip steps in
> the message path, you might need to do an explicit send:
> 
> send "secondHandler" to field "My Field" of card "My Card" of stack "My
> Stack"
> 
> )
> 
> On Mar 1, 2005, at 7:20 PM, Hershel Fisch wrote:
> 
>> Hi, is there a way to pause resume a script meaning while a script is
>> in
>> process to be paused by another script and when it finishes the first
>> continues ?
>> Hershel
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
> - ---
> Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
> 
> $ ln -s /usr/share/kjvbible /usr/manual
> $ true | cat /usr/manual | grep "John 3:16"
> John 3:16 For God so loved the world, that he gave his only begotten
> Son, that whosoever believeth in him should not perish, but have
> everlasting life.
> $
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFCJQki7aqtWrR9cZoRAiDaAJ4hvJJT+yUsixSddxc12gCYMilFLACghvr/
> e4QaX18EFARwHnr6v+d7XxU=
> =29vL
> -END PGP SIGNATURE-
> 
> 
> 
> ___
> $0 Web Hosting with up to 120MB web space, 1000 MB Transfer
> 10 Personalized POP and Web E-mail Accounts, and much more.
> Signup at www.doteasy.com
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Mortgage calc.

2005-03-01 Thread Hershel Fisch
Hi all I'm trying to write a mortgage function and I can't get right.
Some how the annuity function doesn't do it the way I understand it should.
Any help is appreciated.
Hershel

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pause resume script

2005-03-01 Thread Trevor DeVore
On Mar 1, 2005, at 4:20 PM, Hershel Fisch wrote:
Hi, is there a way to pause resume a script meaning while a script is 
in
process to be paused by another script and when it finishes the first
continues ?
If script 1 is the main script which can be paused by script 2 then you 
could do something like this:

local sScript1MsgID = 0
local sData   = "My Data to be processed"
on script1
-- PROCESS CHUNK OF DATA
--> PROCESS NEXT CHUNK OF DATA
send "script1" to me in 0 seconds
put result() into sScript1MsgID
end script1
on script2
if sScript1MsgID > 0 then cancel sScript1MsgID
--> DO WHATEVER I NEED TO
--> GET SCRIPT1 GOING AGAIN
script1
end script2
Script1 just does the data processing in small chunks.  At any time 
script2 can cancel the current call to script1 which stops it from 
executing the next time around.  It then does whatever it needs to and 
then restarts script1.  Would this work in your case?

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addressing images

2005-03-01 Thread Jim Hurley
Message: 16
Date: Tue, 01 Mar 2005 14:02:12 -0600
From: Chipp Walters <[EMAIL PROTECTED]>
Subject: Re: Addressing images
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Jim,
Not sure if this is what you want..
choose the pencil tool
select image "myBlankImage"
drag from topleft of image "myBlankImage" to botright of image
"myBlankImage"
hope this helps.
-Chipp
Mr. X,
You probably read more into my question than I had in mind. Thanks anyhow.
Chipp,
Yes, that was exactly what I wanted. Thanks.
It seems odd though. One doesn't select the image when using the 
paint tools in the IDE, or select a graphic when addressing the 
graphic programmatically. No matter. It works just fine--just have to 
lock and unlock  the screen and choose the browse tool after drawing.

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pause resume script

2005-03-01 Thread Hershel Fisch
On 3/1/05 7:49 PM, "Trevor DeVore" <[EMAIL PROTECTED]> wrote:

I'll give it a shot.
Thanks, Hershel
> On Mar 1, 2005, at 4:20 PM, Hershel Fisch wrote:
> 
>> Hi, is there a way to pause resume a script meaning while a script is
>> in
>> process to be paused by another script and when it finishes the first
>> continues ?
> 
> If script 1 is the main script which can be paused by script 2 then you
> could do something like this:
> 
> local sScript1MsgID = 0
> local sData   = "My Data to be processed"
> 
> on script1
> -- PROCESS CHUNK OF DATA
> 
> --> PROCESS NEXT CHUNK OF DATA
> send "script1" to me in 0 seconds
> put result() into sScript1MsgID
> end script1
> 
> on script2
> if sScript1MsgID > 0 then cancel sScript1MsgID
> 
> --> DO WHATEVER I NEED TO
> 
> --> GET SCRIPT1 GOING AGAIN
> script1
> end script2
> 
> 
> Script1 just does the data processing in small chunks.  At any time
> script2 can cancel the current call to script1 which stops it from
> executing the next time around.  It then does whatever it needs to and
> then restarts script1.  Would this work in your case?
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pause resume script

2005-03-01 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
How would the second script begin executing in order to even attempt 
interrupting the first script?

Rev is single-threaded (at least from a scripter's perspective), so you 
can't exactly expect the second handler to be running in order to 
accomplish whatever you are trying to do.

If you expect the handler to be triggered by a specific message, you 
might try something like wait for messages; try this for example:

wait for 0 seconds with messages
at various "safe" points in the first script, to give the second a 
chance to run.

On Mar 1, 2005, at 7:44 PM, Hershel Fisch wrote:
Is that what you meant?
No. I meant to interrupt a script in the middle of running from an 
outside
script.
Thanks, Hershel
- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCJRAf7aqtWrR9cZoRAt0nAJ9PD6UhQ4Li8RU/5LHeCuAuW88vnACeOi5k
QsePm9v4j9zmiIi9HeJX1iI=
=LRTG
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: UDP sockets - again

2005-03-01 Thread Alex Tweedly
Mark Wieder wrote:
I normally tend to shy away from using udp, but there are areas where
you really need it (working with existing protocols for other apps,
etc.). Using udp can also bring up firewall issues.
I think of it this way: udp is packet-oriented while tcp is
stream-oriented. Udp gives you speed and low overhead but packets
aren't guaranteed to arrive. Tcp guarantees that the packets arrive at
the destination and arrive in order, but the message can be broken up
into an arbitrary number of packets (Elvi shasle ftt hebuil ding).
With udp the entire message (if it arrives) is in a single packet.
With tcp you have to parse the incoming stream to determine where the
information ends.
There are a few other circumstances where you might want to choose UDP 
rather than TCP, apart from the speed and low overhead cases.

1. Data is time-sensitive (or delay-, or jitter-sensitive), but not 
loss-sensitive

Obvious example is streaming audio or video, particularly in real-time 
or conversational mode. Most audio codecs are designed to be robust in 
the face of packet loss (e.g. audio samples spread over adjacent 
packets), but delays (which would be enforced by TCP NAKs and 
retransmits) are audible (visible) to the users.  The most common 
example of this today is VOIP, and that mostly uses RTP over UDP, rather 
than over TCP; however, the commercial streaming audio formats are often 
run over TCP (with bigger buffering to handle TCP-induced delays) 
because of firewall problems.

2. High bandwidth high latency networks.
If you need to deliver large files over high-latency networks such as 
satellite, the effects of the very high round-trip times can be 
dramatic, preventing TCP connections from using the full bandwidth in 
many cases. It may be easier to use UDP in conjunction with a delayed 
re-transmit mechanism (if you can ensure that the received data isn't 
used until the retransmit happens later), or with FEC (Forward Error 
Correction) to allow complete data reception even when some packets are 
lost.

3. Multicast or Broadcast.
TCP can't be used in either multicast or broadcast cases - but UDP can. 
In most cases where you have multiple receivers, it's clear that TCP is 
the wrong "style" of transport, and UDP is more natural.

If you really wanted something like TCP but sending to multiple 
receivers, I'd reckon you want to use PGM rather than rolling your own 
in UDP (but as a co-author of PGM, I'm biased :-)

(And unfortunately, Rev doesn't support either multicast or PGM).
(Actually, I think Rev doesn't fully handle broadcast - I can get it to 
send to a local-broadcast address and they are received by other devices 
- but I can't get Rev to receive them ... will experiment some more with 
that later)

4. Low frequency (or very low frequency) packet exchange.
For example, if you want to send one packet of info every hour (or every 
day), then you wouldn't want to keep a TCP connection open (in many 
cases, you couldn't keep the connection open because of transient 
problems), and wouldn't want the overhead of opening a TCP connection, 
sending one packet, and closing the connection again. (Maybe this is 
just a special case of the low-overhead advantage - but is different in 
that a single, persistent TCP connection isn't a viable option at all).

5,6,7 . There are others, but we're starting to get into the 
esoteric cases now.

In general, my advice would be - always use TCP except when you can't.
--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 01/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Passing UTF-8 through variables

2005-03-01 Thread Frank Leahy
Sivakatirswami,
The difference is likely due to the fact that when you save as 
Unix-Unicode-UTF-8 BBEdit saves a unicode BOM file header.

You owe it to yourself to read http://en.wikipedia.org/wiki/Unicode and 
http://www.joelonsoftware.com/articles/Unicode.html

-- Frank
Web Photos Pro: Software for Photo Bloggers and Other Photo Power Users
See us on the web at http://www.webphotospro.com/
On Mar 1, 2005, at 12:38 AM, [EMAIL PROTECTED] 
wrote:

Date: Mon, 28 Feb 2005 09:59:13 -1000
From: Sivakatirswami <[EMAIL PROTECTED]>
Subject: Re: Passing UTF-8 through variables
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Well, it turns out there is nothing wrong with the original file at
all... duh! I tried the "old fashioned way" selected/copied the raw
text from BBEdit, pasted into a text box in InDesign, select all text
and change to MinionD. Yahoo!   it works... all these "diacriticals"
are just 8-bit chars in the high ascii range (128-255) for font
MinionD...  ergo, nothing wrong with the file at all.
But, the way of saving the file in BBEdit is crucial:  we set the file
type in BBEdit to save as
Unix- Unicode- UTF-8
Then the import into InDesign with XML tags mapped to character styles
worked fine. The problem seems to have been that the file was being
saved in BBEdit as a MacIntosh file. If we set it to
mac-unicode-iso-8859-1   bbedit would give an unmappable char msg. If
we set it to save as mac-not-unicode-iso-8859-1... all problems in
BBEdit woudl go away, but it would not import the characters correctly
as xml in Indesign. Only Unix- Unicode- UTF-8 worked in both
environments.
Frankly I feel like a doctor talking about "eczema" for which he knows
not the cause or the cure, but pretends to his patient have some great
knowledge via the use of fancy labels for observable phenomena.  When
in fact the only thing he *really* knows is "You have a skin problem."
"Right, I knew that before I came to see you..."
In this case we are one step further... we know not the cause but we
did find a cure, though the mode of operation of that is still unknown,
but all we really know is "its an encoding thing.." (smile)
Dar, your tips did put me onto it though, thanks.
Sivakatirswami
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re : scale w/ ticks and snap-to

2005-03-01 Thread Richard Gaskin
Éric Chatonet wrote:
I proposed a little script to manage a scrollbar with snap-to behavior 
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much 
complicated.
The following code is enough to do the job:

on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
The behavior seems to work the same here for me with a script containing 
only:

on mouseUp
  set the thumbPos of me to the thumbpos of me
end mouseUp
Since the thumbpos is an integer, it does the post-drag snap-to.  I had 
hoped to find a snap-as-you-go behavior, and I've gotten close but it's 
still a tad jerky (if only we had a preScrollBarDrag message ).

But here's where things get freaky - try this at home:
1. Make a new mainstack
2. Drop a scale onto it
3. Set these properties:
 startValue: 1
 endValue:   5
 pageInc:1
 lineInc:0
 thumbsize:  1
Freak-o-rama:  I see a slider with 4 (count 'em, four!) tick marks. 
With a scale of 1 to 5, I would expect 5.

Ultra-freak-o-rama:  Éric's has the same properties set just like mine, 
but his has 5 (count 'em, five!) tick marks.

Works the same in Rev and MC.
The mystery deepens: I can copy Éric's, change the endValue to 6, and 
get 6 tick marks.  But if I change the endValue to 4 I get 3 tick marks.

How comes such to be?  :\
You can examine both scrollbars here:
  go url "http://fourthworld.net/scroll_bar_test.mc";
Paul Looney, Ken Ray, and I have scratched our heads over this today.
Mystified?
Scroll down for spoiler:










It turns out that while Eric's first handler doesn't affect behavior, it 
does affect appearance.  This bit:

 on scrollbarDrag pPos
  set the pageInc of me to the endValue of me/(the endValue of me +1)
 end scrollbarDrag
...apparently takes care of a bug in the engine.  As soon as you scroll 
it you get the tick marks appearing as you would expect.  Apparently 
this continues to work even with that handler disabled until the next 
time the pageInc or thumbSize is set.

I could't find a Bugzilla report for this, so I just filed one:

Freaky, but at least there's a workaround.
Thanks, Éric.
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie Here

2005-03-01 Thread Michael
Mark
I see how this works, but how do I run it ? as the url ?
Thanks for your help.
Michale

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Wieder
Sent: Tuesday, March 01, 2005 11:15 AM
To: How to use Revolution
Subject: Re: Newbie Here

Michael-

Tuesday, March 1, 2005, 3:39:53 AM, you wrote:

M> Thanks for the quick reply. I would like to add the executables
inside
M> the application and run the exe's from within RR. So I don't have to
M> drop them into a folder on the PC and cause any version problems. Or
I
M> could drop the files to the PC in a temp dir then remove the files
M> during exit. I see the "copy files" under standalone application
M> settings is this the appropriate place to include files for the app ?
M> Not sure of the function with the copy files option ? Thanks Michael

I'm not convinced that's a good idea (you're bound to run into
permissions problems and other such Windows annoyances), but if you
have to follow through with it, you might consider storing the binary
executables in custom properties and unleashing them when necessary.

set the exeFile of button "RunMe" to url "binfile:c:/myFile.exe"

put the exeFile of button "RunMe" into url "binfile://pequod/x/z.exe"

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Revolutionaries in New Zealand?

2005-03-01 Thread SimPLsol
 I live in beautiful San Dimas, California - which is ideally suited for 
monthly trips to the So. Cal. Rev. Dev. Meeting. It is a wonderful meeting, 
but perhaps a bit distant for dwellers in the South Pacific.
 This month my wife and I are spending the Easter Holiday in Mt. 
Maunganui on the Bay of Plenty - with two visits to Auckland. Would love to 
meet any 
southern hemisphere revolutionaries and discuss the state of things. 
 Do note: I do not, in any way, represent Revolution - the mother ship. I 
have no authority, special influence or insider knowledge; I represent only 
myself.
Sincerely,
Paul Looney
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revolutionaries in New Zealand?

2005-03-01 Thread Monte Goulding
Howdy Paul
I'm in Adelaide, South Australia so it's a bit of a walk from where you will 
be but Rodney Tamblyn is in NZ.

Cheers
--
Monte Goulding
Sweat Technologies
InstallGadget - How to create an installer in 10 seconds
Download now from: http://www.sweattechnologies.com/InstallGadget
- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 02, 2005 2:18 PM
Subject: Revolutionaries in New Zealand?


I live in beautiful San Dimas, California - which is ideally suited 
for
monthly trips to the So. Cal. Rev. Dev. Meeting. It is a wonderful 
meeting,
but perhaps a bit distant for dwellers in the South Pacific.
This month my wife and I are spending the Easter Holiday in Mt.
Maunganui on the Bay of Plenty - with two visits to Auckland. Would love 
to meet any
southern hemisphere revolutionaries and discuss the state of things.
Do note: I do not, in any way, represent Revolution - the mother ship. 
I
have no authority, special influence or insider knowledge; I represent 
only
myself.
Sincerely,
Paul Looney
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Passing UTF-8 through variables

2005-03-01 Thread Dar Scott
On Mar 1, 2005, at 6:20 PM, Frank Leahy wrote:
The difference is likely due to the fact that when you save as 
Unix-Unicode-UTF-8 BBEdit saves a unicode BOM file header.
The BOM for UTF8, of course, cannot serve as a BOM since there is only 
one order for single bytes.  It works as a (usually redundant) clue as 
to file type.

dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution