Clone and "it"

2004-01-29 Thread Yves COPPE
Hi list

Something strange with "clone" command :

Mainstack A with 2 subtacks "B" and "C"

In stack "C" , a card named "Movies"
and a btn with the script :
clone player "xxx" of grp "yyy" of cd "movies" of stack "C"
answer the id of it
the answered id is good, it' s the ID of the new created (cloned) player

now in stack "B"
the same script :
clone player "xxx" of grp "yyy" of cd "movies" of stack "C"
answer the id of it
the answer is "0" don't understand...

Can anyone help me ...

thank you.



Amicalement.

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


RE: Opening a Rev app from a browser?

2004-01-29 Thread Chipp Walters
Doug,

Check out www.buttongadget.com and download the free trial. Then go to the
buttonsets web page and click on any picture of a button. By just clicking
on the picture, your browser will download a special stack file and launch
buttongadget and load the stack file into it.

Is that what you're looking for? If it is, I think I posted previously the
code to do this (only XP for now -- don't know how to do this on Mac)

-Chipp


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


Re: ANN: Silly Client Demo. (was Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 1:32 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> While we were exchanging this emails, I coded an example. It's called
> silly client.
> 
> It's available at http://public.soapdog.org/  it's a file called
> sillyclient.zip
> 
> it's a simple client. You can log into
> http://home.soapdog.org:8081/sandbox
> 
> this will show a link to check if remote user is running the client.
> pretty cool, it took me 10 minutes to do, it open no socket on server,
> and client got a vey low memory and cpu requirements.
> 
> :D
> 
> Cheers

Very cool! The first time I tried I got a "timed out" message, but the
second time I got a "welcome" confirmation back with my name.

But does this depend on a rev stack running on the server side?

doug

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


Re: ANN: Silly Client Demo. (was Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 1:32 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jan 30, 2004, at 1:47 AM, Doug Lerner wrote:
> 
>> Interesting idea - but this won't help either, for several reasons:
>> 
>> (1) The user can actually use this client to connect to any of many
>> different servers. So we have no way of guaranteeing that the user is
>> logged
>> in the particular server with the link ahead of time.
>> 
> 
> Sorry, I didn't understand this argument. You need not guarantee that
> he is logged. CGI check it's IP at runtime. There's no assumption,
> ever. Each server will check for client... or a cgi might check for all
> server, it's pretty simple.

Right - but if the client is logged into Server A and click on a link for
Server B, your scheme wouldn't work, would it?

Besides, if the user is logged ANYWAY, they wouldn't need this.

> 
> 
> 
>> (2) We wouldn't want to tie up potentially thousands of sockets by
>> having
>> everybody online all the time.
>> 
> 
> No socket is open on server. Client app is actually listening in a very
> passive way, only when user click the link, server open socket and send
> for it's data, so user is online only when he is trully trying to be
> online. That way, sockets are open on client, server plays client
> before playing server, it's better seen than explained.

I see. So your idea is to keep the Client open and listening, but... how can
it be listening without opening up a socket?

> 
> While we were exchanging this emails, I coded an example. It's called
> silly client.
> 
> It's available at http://public.soapdog.org/  it's a file called
> sillyclient.zip
> 
> it's a simple client. You can log into
> http://home.soapdog.org:8081/sandbox
> 
> this will show a link to check if remote user is running the client.
> pretty cool, it took me 10 minutes to do, it open no socket on server,
> and client got a vey low memory and cpu requirements.

I'll take a look at it!

Obrigado!

doug

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


ANN: Silly Client Demo. (was Re: Opening a Rev app from a browser?

2004-01-29 Thread Andre Garzia
On Jan 30, 2004, at 1:47 AM, Doug Lerner wrote:

Interesting idea - but this won't help either, for several reasons:

(1) The user can actually use this client to connect to any of many
different servers. So we have no way of guaranteeing that the user is 
logged
in the particular server with the link ahead of time.

Sorry, I didn't understand this argument. You need not guarantee that 
he is logged. CGI check it's IP at runtime. There's no assumption, 
ever. Each server will check for client... or a cgi might check for all 
server, it's pretty simple.



(2) We wouldn't want to tie up potentially thousands of sockets by 
having
everybody online all the time.

No socket is open on server. Client app is actually listening in a very 
passive way, only when user click the link, server open socket and send 
for it's data, so user is online only when he is trully trying to be 
online. That way, sockets are open on client, server plays client 
before playing server, it's better seen than explained.

While we were exchanging this emails, I coded an example. It's called 
silly client.

It's available at http://public.soapdog.org/  it's a file called 
sillyclient.zip

it's a simple client. You can log into 
http://home.soapdog.org:8081/sandbox

this will show a link to check if remote user is running the client. 
pretty cool, it took me 10 minutes to do, it open no socket on server, 
and client got a vey low memory and cpu requirements.

:D

Cheers





doug

--
Andre Alves Garzia - Soap Dog Studios - BRAZIL
http://studios.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 12:37 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jan 30, 2004, at 1:21 AM, Doug Lerner wrote:
> 
>>> But if the scenario you want it to client click a link to an
>>> executable
>>> program, and that program to be downloaded and run on client computer,
>>> then it's very big risk.
>> 
>> No -I wouldn't do that. This would be a trusted app that a user has
>> previously, and intentionally, downloaded and set up.
>> 
> 
> Still trying... :D
> 
> what if you put your app on startup (user should be aware of that),
> your app could be launched on startup and sit invisible on the
> background waiting for the server, that's easy for windows and macos,
> on unixes there are some user priviledges stuff, but putting it on
> .profile might work I think. Your app could launch invisible waiting
> for server, if it does not clog the CPU and use Little memory, it can
> sit idle doing nothing but wait for a connection. Since we're talking
> about trusted apps, your users will not complain about this behaviour,
> they'll understant that's easier than launching client every time. You
> can make a mainStack with two substacks, one is the little invisible
> stack that will do nothing but wait mothership call, the other is the
> app itself that will load only when needed, if you make them as
> "standalone" rev files (.rev) then your app will use even less memory
> for it will only load the Real client when needed. On the startup it
> will just launch a minimalist app that will listem to server calls and
> launch client on request. This will get the behaviour you want, for all
> plataforms and yet is plain easy to do. Couple lines in Rev.

Interesting idea - but this won't help either, for several reasons:

(1) The user can actually use this client to connect to any of many
different servers. So we have no way of guaranteeing that the user is logged
in the particular server with the link ahead of time.

(2) We wouldn't want to tie up potentially thousands of sockets by having
everybody online all the time.

doug

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


Re: Opening a Rev app from a browser?

2004-01-29 Thread Andre Garzia
On Jan 30, 2004, at 1:21 AM, Doug Lerner wrote:

But if the scenario you want it to client click a link to an 
executable
program, and that program to be downloaded and run on client computer,
then it's very big risk.
No -I wouldn't do that. This would be a trusted app that a user has
previously, and intentionally, downloaded and set up.
Still trying... :D

what if you put your app on startup (user should be aware of that), 
your app could be launched on startup and sit invisible on the 
background waiting for the server, that's easy for windows and macos, 
on unixes there are some user priviledges stuff, but putting it on 
.profile might work I think. Your app could launch invisible waiting 
for server, if it does not clog the CPU and use Little memory, it can 
sit idle doing nothing but wait for a connection. Since we're talking 
about trusted apps, your users will not complain about this behaviour, 
they'll understant that's easier than launching client every time. You 
can make a mainStack with two substacks, one is the little invisible 
stack that will do nothing but wait mothership call, the other is the 
app itself that will load only when needed, if you make them as 
"standalone" rev files (.rev) then your app will use even less memory 
for it will only load the Real client when needed. On the startup it 
will just launch a minimalist app that will listem to server calls and 
launch client on request. This will get the behaviour you want, for all 
plataforms and yet is plain easy to do. Couple lines in Rev.

Cheers

--
Andre Alves Garzia - Soap Dog Studios - BRAZIL
http://studios.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 12:12 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jan 30, 2004, at 12:57 AM, Doug Lerner wrote:
> 
>> 
>> I see. Thanks for the explanation. I don't need to run any rev apps
>> server
>> side. In fact, I would prefer not to. :)
>> 
>> But I do need to click a link and start a local "client" for
>> interaction
>> with the server.
>> 
>> doug
> 
> Doug,
> 
> remember when AudioGalaxy was online and they used a combination of
> custom client and web pages?

No. Never heard of them.

> I am not here for making notes about
> piracy, copyrights and how you can screw one's life and starve artists,
> and so on, let's talk about their tech, you launched their page, and by
> that page it controlled a program running on client-side.

Right. Sounds good. :)

> 
> I just thought of it now, you can do the same with revHTTPd as long as
> the client-side app is running before the interaction begins, don't
> know what kind of interaction you want, if you want to launch an app,
> that's difficult it's like running any EXE from remote, users hate it
> and it's dangerous. But if you want your server to interact with a
> running app in the client thats easy.

If the client-side app is running beforehand there is no problem already
since all the interaction is in the client. I was hoping to just provide an
alternative way for the user to open the client by clicking on a web link,
and have the client start up, with the user all logged in.

> 
> Set up the client side app to listem in a default port, don't know ie:
> 8084. When user log onto web page, you've got their IP, make your cgi
> try to connect to client-side app on default port and zap, interaction
> is done. That's really easy, I can set a small demo in couple minutes
> if you need an incentive! :D
> 
> But if the scenario you want it to client click a link to an executable
> program, and that program to be downloaded and run on client computer,
> then it's very big risk.

No -I wouldn't do that. This would be a trusted app that a user has
previously, and intentionally, downloaded and set up.

>  Almost all browsers will not allow this
> behaviour or shout you not to do it. If you'll offer a download page of
> your client side app, and launch that app then start interaction life
> is easy. Remember satelite of audio galaxy, it was a very smart
> behaviour, their client standed still waiting for server to connect,
> that connection was initiated when user opened their web page, with a
> client running and their IP, everything is possible, you can even put
> login procedures away and acquire all info from client side app.
> 
> don't know if I am clear with this text, I am a native portuguese
> speaking person, also don't know what you're trying to do, but this
> "solution" might be used. I can code a little login demo, an simple
> client, when you open server page, the cgi on the page will look for a
> running client on client side and acquire login data. Would this help
> you?

Your English is perfectly fine. I didn't even know I was talking with a
non-native speaker until you mentioned it!

But what I am trying to do seems a bit different. The information you
provided is very useful in general though.

Thanks!

doug

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


hehehhe revHTTPd error due to miss configuration.

2004-01-29 Thread Andre Garzia
Hi folks,

sorry for all those who tried accessing revHTTPd home page thru 
http://home.soapdog.org:8081/  It's was listenning on 8084... now the 
problem is solved... you can try to access it again, I am very silly, I 
forgot to put it back to 8081... bad programmers go to hell

Cheers
--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to detect a selected image or graphic

2004-01-29 Thread Doug Lerner
It's weird. While watching the Message Watcher and selecting a graphic the
only message reported is mouseMove. Not mouseDown or mouseUp.

Why would that be?

doug

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


Re: Opening a Rev app from a browser?

2004-01-29 Thread Andre Garzia
On Jan 30, 2004, at 12:57 AM, Doug Lerner wrote:

I see. Thanks for the explanation. I don't need to run any rev apps 
server
side. In fact, I would prefer not to. :)

But I do need to click a link and start a local "client" for 
interaction
with the server.

doug
Doug,

remember when AudioGalaxy was online and they used a combination of 
custom client and web pages? I am not here for making notes about 
piracy, copyrights and how you can screw one's life and starve artists, 
and so on, let's talk about their tech, you launched their page, and by 
that page it controlled a program running on client-side.

I just thought of it now, you can do the same with revHTTPd as long as 
the client-side app is running before the interaction begins, don't 
know what kind of interaction you want, if you want to launch an app, 
that's difficult it's like running any EXE from remote, users hate it 
and it's dangerous. But if you want your server to interact with a 
running app in the client thats easy.

Set up the client side app to listem in a default port, don't know ie: 
8084. When user log onto web page, you've got their IP, make your cgi 
try to connect to client-side app on default port and zap, interaction 
is done. That's really easy, I can set a small demo in couple minutes 
if you need an incentive! :D

But if the scenario you want it to client click a link to an executable 
program, and that program to be downloaded and run on client computer, 
then it's very big risk. Almost all browsers will not allow this 
behaviour or shout you not to do it. If you'll offer a download page of 
your client side app, and launch that app then start interaction life 
is easy. Remember satelite of audio galaxy, it was a very smart 
behaviour, their client standed still waiting for server to connect, 
that connection was initiated when user opened their web page, with a 
client running and their IP, everything is possible, you can even put 
login procedures away and acquire all info from client side app.

don't know if I am clear with this text, I am a native portuguese 
speaking person, also don't know what you're trying to do, but this 
"solution" might be used. I can code a little login demo, an simple 
client, when you open server page, the cgi on the page will look for a 
running client on client side and acquire login data. Would this help 
you?

Cheers
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Filtering with more than 4 types (OSX) - AppleScript Question

2004-01-29 Thread Sarah Reichelt
Thanks, Sarah.

The result of the "do tScript as Applescript" can be empty, but also 
"execution
error" (if you click on the cancel button for instance).
So, I believe the test :
	if tFile is empty then return empty-- no file chosen

should be
	if (tFile is empty) or (tFile is "execution error") then return empty 
   -- no
file chosen

Regards,
Jan
Thanks for the addition Jan, I hadn't actually tested that bit :-)
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Filtering with more than 4 types (OSX) - AppleScript

2004-01-29 Thread Sarah Reichelt
Yes, I noticed this myself when testing. It seems to include any QT 
filetypes.

On 29 Jan 2004, at 6:23 pm, Éric Chatonet wrote:

Your script for filtering with more than 4 types (OSX) with 
AppleScript (Vol 4, Issue 189) works fine :-)
Many thanks.
When "MooV" is among the filters, then all types recognized by 
QuickTime are displayed : moovies, images and sounds as well!
I do regret this!
Due to system and QT?

Rev 2.1.2
OS 10.3.2
QT 6.5
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


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


How to detect an image or graphic deletion?

2004-01-29 Thread Doug Lerner
When I move an image or graphic, the moveControl message is sent. Similarly,
when resizing, the resizeControl message is sent.

But when I delete an image or graphic it looks like just rawKeyDown and
backSpaceKey messages are sent.

Isn't there something like a deleteControl message?

Do I just need to write a backSpaceKey handler and check and see if the
target or the selected or whatever was an image or graphic?

doug

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


Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 11:35 AM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jan 30, 2004, at 12:25 AM, Doug Lerner wrote:
> 
>> I'm not sure. What is a revHTTPd server? I have my own server that I
>> would
>> like to do this via.
>> 
>> doug
> 
> 
> revHTTPd is an embedable (hell my english is horrible sometimes)
> server, it's a frontscript (a button), you put it on a stack, and then
> it is able to serve itself and it's substacs like they were web apps.
> You can try my home revHTTPd server and learn more about it at
> http://home.soapdog.org:8081/  (it's my home machine here in Brazil
> under a 256k cable with a stupid paranoic ISP)
> 
> with this server you can drive a Rev app in the server or interact with
> it, all the pages at my home server are actually substacks running, and
> you pass parameters to them with no fuss. But for a browser to launch a
> Rev app locally (at the client-side) it would be tought, it's like
> running a exe from remote, very dangerous stuff.

I see. Thanks for the explanation. I don't need to run any rev apps server
side. In fact, I would prefer not to. :)

But I do need to click a link and start a local "client" for interaction
with the server.

doug

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


Re: Opening a Rev app from a browser?

2004-01-29 Thread Andre Garzia
On Jan 30, 2004, at 12:25 AM, Doug Lerner wrote:

I'm not sure. What is a revHTTPd server? I have my own server that I 
would
like to do this via.

doug


revHTTPd is an embedable (hell my english is horrible sometimes) 
server, it's a frontscript (a button), you put it on a stack, and then 
it is able to serve itself and it's substacs like they were web apps. 
You can try my home revHTTPd server and learn more about it at 
http://home.soapdog.org:8081/  (it's my home machine here in Brazil 
under a 256k cable with a stupid paranoic ISP)

with this server you can drive a Rev app in the server or interact with 
it, all the pages at my home server are actually substacks running, and 
you pass parameters to them with no fuss. But for a browser to launch a 
Rev app locally (at the client-side) it would be tought, it's like 
running a exe from remote, very dangerous stuff.

Cheers

PS: Hope you like the server :D

--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a Rev app from a browser?

2004-01-29 Thread Doug Lerner
On 1/30/04 11:09 AM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jan 29, 2004, at 12:48 AM, Doug Lerner wrote:
> 
>> Any good hints out there about:
>> 
>> 1. Opening a Rev app from a browser (including cross-platform
>> issues)...
>> 
>> 2. Passing parameters from a browser link to a Rev app when opening...
>> 
>> Thanks,
>> 
>> doug
> 
> doug,
> 
> I've created a framework called revHTTPd it can do handy things with
> URLs... provide you left your revHTTPd server running you can access
> stacks by using normal URLs like for example
> http://localhost:8081/myStack/myHandler and it will execute a send
> "myHandler" to myStack... you can even pass paramenters like
> http://localhost:8081/myStack/myHanlder?name=andre&age=23   it this
> parameters will be available for the stack.
> 
> Does this suits your scenario?
> 
> Cheers
> Andre

I'm not sure. What is a revHTTPd server? I have my own server that I would
like to do this via.

doug

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


RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
Funny it works fine from here. Try again?

-Chipp

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Trevor
> DeVore
> Sent: Thursday, January 29, 2004 6:21 PM
> To: How to use Revolution
> Subject: Re: multiple instances of standalone under Windows
> 
> 
> On Jan 29, 2004, at 4:01 PM, Chipp Walters wrote:
> 
> > What about just looking for your app in the openProcesses list called 
> > from
> > the freeware command line utility:
> >
> > http://www.sysinternals.com/ntw2k/freeware/pslist.shtml
> >
> > If your app is there, then shut yourself down.
> >
> > Seems easy enough, unless I'm missing something.
> 
> I get a File not found error with that URL.
> 
> 
> -- 
> Trevor DeVore
> Blue Mango Multimedia
> [EMAIL PROTECTED]
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

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


Re: self-destructing files

2004-01-29 Thread Andre Garzia
On Jan 29, 2004, at 2:53 AM, michael wrote:

Has anyone ever tried making an executable self-delete after x opens 
or x time or using any other parameters?
once I did one that would self destruct on a given date. it worked. 
just moved it self to the trash.


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

--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Handy Handler #5: Pack / Unpack

2004-01-29 Thread Andre Garzia
On Jan 29, 2004, at 1:22 AM, Chipp Walters wrote:

Richard,

Just a thank-you for a great, well-written article on GPGE (Gaskin's 
Pretty
Good Encryption;-)

One of the great things about your articles, is there's always 
something of
interest for every level of RR developer!

best,

Chipp


Yes Chipp, very well said! I am just embeding GPGE in my revHTTPd 
framework! Now I'll reach the moderated secutrity milestone!

Cheers on Richard!

Andre


--
Andre Alves Garzia - Soap Dog Studios - BRAZIL
http://studios.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a Rev app from a browser?

2004-01-29 Thread Andre Garzia
On Jan 29, 2004, at 12:48 AM, Doug Lerner wrote:

Any good hints out there about:

1. Opening a Rev app from a browser (including cross-platform 
issues)...

2. Passing parameters from a browser link to a Rev app when opening...

Thanks,

doug
doug,

I've created a framework called revHTTPd it can do handy things with 
URLs... provide you left your revHTTPd server running you can access 
stacks by using normal URLs like for example 
http://localhost:8081/myStack/myHandler and it will execute a send 
"myHandler" to myStack... you can even pass paramenters like 
http://localhost:8081/myStack/myHanlder?name=andre&age=23   it this 
parameters will be available for the stack.

Does this suits your scenario?

Cheers
Andre



--
Andre Alves Garzia - Soap Dog Studios - BRAZIL
http://studios.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Non-blocking way to open MS Word files?

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 05:57 PM, Scott Rossi wrote:

Two things you might try are 1) try "open process ..." instead of the 
shell
command, if possible,
try 'with neither'

Dar Scott

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


FlashMX and Runtime Revolution

2004-01-29 Thread Young Paik
I'm new to the list and new to Runtime Revolution.  Wondering if anyone can 
point me in the right direction regarding FlashMX and Runtime Revolution 
integration (I'm interested in knowing how to "put" Flash into a stack and 
interact with cards).  Thanks.

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


Re: Points in a circular area

2004-01-29 Thread Jim Hurley
Message: 2
Date: Thu, 29 Jan 2004 15:26:38 -0800 (PST)
From: Alejandro Tejada <[EMAIL PROTECTED]>
Subject: Re: Points in a circular area
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
on Thu, 29 Jan 2004
Dar Scott wrote:
 Some years ago I designed a model and library for
 working with abstractions of drawings and
 paintings in a functional (that is f()
 manner) way.
 In that model the plane could be partitioned by a
 line or by a circle and other shapes. 
 A pie shape is the union (ANDing) of two line
 partitions and a circle partition.

 For this particular case, it might be easier for you
 to arctan2 points relative to the center to see
 if they are in the right angle range and
 then check the distance to see if that is small
 enough.
If i interpret right your recommendations,
it's similar to the procedure that Jim Hurley
is suggesting to use. Now, i'll code a solution
and post the script for speed enhancements. ;-)
 In rendering (or creating point lists) I am trying
 to use interval arithmetic and am putting that off
 until some performance changes in Revolution. 
 This method allows tests to work on
 whole zones of pixels in one calculation.
This sounds useful. Could externals helps for
these tasks?
 The line tests will be faster than the arctan2
 tests for this method, because of the ignorance
 involved in interval arithmetic. 
I've read that assembler code is faster than c code.

 In the mean time you might try testing each pixel (I
 assume you mean pixels) in the bounding rect
 of the circle of which the arc is part.
Let's see how much time does this calculation takes.


Al,

Just for an estimate of the time needed for the trial and error 
method, I ran the following handler:

on mouseUp
  put 30 into tAngle
  put 100 into R
  put "" into results
  put the sec into startTime
  startTurtle
  repeat with x = 0 to R
repeat with y = 0 to R
  put raCor(x,y) into ra
  --Test to see if the point x,y is in the wedge.
  if item 1 of ra < R and item 2 of ra < tAngle then put x,y & 
return after results
end repeat
  end repeat
  put results into field 1
  put the sec - starttime
  beep
end mouseUp

It determines all integer coordinates inside a circular wedge of 
radius R (100) and arc tAngle (30 degrees). There are 2,666 points 
and it takes a little over a second to compute.

(The function raCor(x,y) returns the radial coordinates (radius and 
angle) corresponding to the rectangular coordinates x,y.)

Hope this gives you some idea on times.

Jim

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


Re: Non-blocking way to open MS Word files?

2004-01-29 Thread Scott Rossi
Recently, "Dave Beck"  wrote:

> I'm writing a Windows app with Rev and need a way to open files with MS Word
> from a script in my app. I've been using the shell command with the
> parameter as the long path name of the file to launch Word and open the
> file. This which works well except that it is blocking, meaning that my Rev
> stack does not respond to mouse clicks etc. until the user quits the MS Word
> instance that was launched from my script!
> 
> Does anybody know a way around this??

This seems odd.  I personally haven't seen this happen (maybe it's an issue
with shell) but that doesn't say much.

Two things you might try are 1) try "open process ..." instead of the shell
command, if possible, or 2) create a mini Rev "launcher" app whose sole
purpose is to launch your Word docs and then exit.  It shouldn't matter if
the mini app is affected by the shell lockup since the mini app is separate
from your app stack.

Regards,

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

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


Re: [OT] PC-ing A Mac

2004-01-29 Thread Mark Brownell
It's hard to take this seriously. It has to be a joke.

"January 28

How I PC'd an Apple G5 If you've had problems getting through to the 
site, this article is why. This has become the most read article in our 
history. If you haven't already, see what the fuss is about."

It's so lame that it's created its own denial of service attack. This 
is about as cool as dangling your kids over the rail three stories up.

On Thursday, January 29, 2004, at 04:34  PM, Stephen Quinn Barncard 
wrote:

The spoiled brat should be painfully spanked on the buttocks for that 
travesty. And he complains about his lack of SATA and a good video 
card. What a moron.


A painfully amusing read:

  http://www.overclockers.com/tips1133/index.asp

At least the leftover parts might be used for something.

Regards,

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


Re: server load with Rev "net" apps

2004-01-29 Thread Pierre Sahores
Hi All,

Le 29 janv. 04, à 22:12, Alex Rice a écrit :

On Jan 29, 2004, at 1:07 PM, J. Landman Gay wrote:
As I understand it, yes, a separate instance will open with each hit. 
I think Pierre Sahores figured out a way to keep the engine running 
so this wouldn't happen, but I don't know how he did it.
True and if some one need more explainations, i can explain how to run 
MC/Rev backgrounder (console or X11 modes under Linux, graphical mode 
under Panther) applications servers binded, one side, to Apache trough 
a PHP-based sockets listener and, second side, to PostgreSQL trough 
shell calls to psql. I'm running such apps since years (08/2000) with 
great benefits in both terms of processor's idle rate (mostly over 90%) 
and concurrent accesses requests serving (one of those servers handle 
an average of 40/60 connections/second 12/24 hours).
It is just the nature of CGI programming in general. AFAIK Rev is no 
different than other languages like Perl, Python, TCL, etc. in this 
respect.

Solution 1- Switch to an ISP than has more leniency for heavily used 
CGI apps.

Solution 2- Stop using the CGI interface and switch to an application 
server environment, which generally run in persistently in memory. 
This would mean throwing out Rev and rewriting in another language.
Sorry Alex, you are mistaking in about solution 2 : the MC/Rev engine 
is able to do lots more than the documentation describe, in about 
TCP/IP n-tier apps. I did never use it in cgi-mode (because there are 
some fine Apache modules availables for that - perl, php, python,.. - 
and because i needed, at the begining, a solution to serve flat-files 
databases over the web without having to reload the files at each cgi 
call) but as i'm, on the other hand, handling 
JBoss+Tomcat+EJB2+PostgreSQL solutions (Ecole pratique des Hautes 
Etudes - Sorbonne, cases studies only) i can assure that the best of 
the java world is not in the java's engines, but in the multilayers 
design and dev tools (Eclipe and its great debugger, the EJB's 
paradigm, UML,XML, object-relational databases mapping,...).
A modified CGI environment might be able to run Rev scripts, but most 
ISPs don't offer such services as FastCGI or PCGI.

modified CGI environment: FastCGI, PCGI
apache DSOs: PHP, Perl, Python, Ruby, etc.
application servers: ASP (.NET?), Java Servlets, Coldfusion, ZOPE.
As Apache on the webservers market or PostgreSQL on the ACID compliant 
ORDBMS one, JBoss seems to be on the right way to eat WebLogic and 
Websphere...
Hope this helps,

--
Alex Rice | Mindlube Software | http://mindlube.com
Hope this can help ;-)

Best Regards, Pierre Sahores

100, rue de Paris
F - 77140 Nemours
[EMAIL PROTECTED]

GSM:   +33 6 03 95 77 70
Pro:   +33 1 41 60 52 68
Dom:   +33 1 64 45 05 33
Fax:   +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours
[EMAIL PROTECTED]

GSM:   +33 6 03 95 77 70
Pro:   +33 1 41 60 52 68
Dom:   +33 1 64 45 05 33
Fax:   +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Non-blocking way to open MS Word files?

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 05:36 PM, Dave Beck wrote:

Does anybody know a way around this??
Does 'launch' work on Windows?

Dar Scott

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


Re: multiple instances of standalone under Windows

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 02:19 PM, Dar Scott wrote:

Does anyone have a way to check if another instance of a standalone is
already running, and if so close the one that was just opened?
Try 'accept' on some obscure port.  If it fails, assume that another 
app is running.  (Immediately close any connections in the call back, 
should any be made.)  I'd try UDP first.  If you need to listen to a 
port anyway, you are set.
Though this is a little weird, it is multi-platform.

Dar


Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Non-blocking way to open MS Word files?

2004-01-29 Thread Dave Beck

Hey,

I sent this message to the list a while back but never got a response. I'm
hoping this time I'll fair better. I still haven't been able to come up with
a solution on my own.

I'm writing a Windows app with Rev and need a way to open files with MS Word
from a script in my app. I've been using the shell command with the
parameter as the long path name of the file to launch Word and open the
file. This which works well except that it is blocking, meaning that my Rev
stack does not respond to mouse clicks etc. until the user quits the MS Word
instance that was launched from my script!

Does anybody know a way around this??

Any help would be greatly appreciated.

Thanks in advance,
Dave

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


Re: [OT] PC-ing A Mac

2004-01-29 Thread Stephen Quinn Barncard
The spoiled brat should be painfully spanked on the buttocks for that 
travesty. And he complains about his lack of SATA and a good video 
card. What a moron.


A painfully amusing read:

  http://www.overclockers.com/tips1133/index.asp

At least the leftover parts might be used for something.

Regards,

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


Re: Points in a circular area

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 04:26 PM, Alejandro Tejada wrote:

I've read that assembler code is faster than c code.
For me:
For small special cases this is true.
Other times, I find the compiler is smarter than I.
I usually create better methods when tinkering in high level languages, 
so I usually create there anyway.

Someday I'll get back to working on the interval arithmetic rendering.

One problem I have is not being able to handle qualifications which (I 
think) I need to make fat lines about arbitrary mathematical curves.  I 
know it can be done, since GraphEq does it.  I think I just need to add 
a dimension for each variable that is not x and y, but unlike images 
which have limited sized and limited pixel size, these are unlimited 
and I'm not sure how to partition those.

This is all on the back burner.

Dar Scott

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


Re: server load with Rev "net" apps

2004-01-29 Thread Alex Rice
On Jan 29, 2002, at 4:36 PM, Brian Yennie wrote:

Pierre's method works well - I've even used it in a commercial app. 
Check the archives for PHP / sockets.

Essentially what you need to do is write a PHP (or Perl would work) 
script which talks over sockets to a running MetaCard app. The 
MetaCard app takes requests and writes them back to the PHP calling 
script, and keeps on running waiting for the next request- a MetaCard 
application server if you will.

Since PHP is usually installed as a server module (rather than CGI), 
this method will most likely use much less memory. Even generally 
speaking, the PHP engine may have less of a footprint than the 
Metacard CGI.
Just want to point out that if the ISP is balking at heavy CGI usage it 
is unlikely they are going to allow a long running server/daemon 
process.

I think you would be requiring a dedicated server or dedicated "virtual 
root" server at least to do that kind of setup as you and Pierre 
describe.

--
Alex Rice | Mindlube Software | http://mindlube.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: multiple instances of standalone under Windows

2004-01-29 Thread Trevor DeVore
On Jan 29, 2004, at 4:01 PM, Chipp Walters wrote:

What about just looking for your app in the openProcesses list called 
from
the freeware command line utility:

http://www.sysinternals.com/ntw2k/freeware/pslist.shtml

If your app is there, then shut yourself down.

Seems easy enough, unless I'm missing something.
I get a File not found error with that URL.

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


Re: Porting PrintReport (was: Re: Windowscript)

2004-01-29 Thread Stephen Quinn Barncard
I don't know about the Report stack mentioned, but Printreport wasn't 
a collection of WYSIWYG tools, it was a programming language that 
allowed complete control of what gets printed on the page through 
graphic primitives and also allowed as complete an access to the 
mysterious apple print drivers to the point where you could exchange 
a printer configuration with the system. But it was up to the user 
how to manage it.

It was all based on text contained in the data sent to the printer 
through the XCMD. See below for a code dump generated for use by 
Printreport - Backslashes are the escape character, obviously. Tabs 
stops are handled as well as line circle and rectangle primitives and 
some insertion of pict format images. Later when color inkjets 
appeared, I was pleased to find out that the spec included basic 
color... although only through a placed graphic.

I thought that there was a later version; one that included color for text.



This is good. Two actual users of Printreport that
could answer this question:
How different is PrintReport from the stack named
"Report" that you could download from
tools.metacard.com stack?
Thanks in advance.

al

An example of Printreport code is shown below...
First is a statement of margins, then CT = tab stops, stops at 0,30 
and 85 mm, then a region is created then text is drawn inside it, 
etc, etc.

Pretty screwy, but you could do almost anything with it. I have the 
manual around somewhere.

\LM0in;TM0in;RM0in;BM0in\ \CT;ST0m;ST30m;ST85m\
\sr31p,33p,303p,337p\\pp1;BX\\C+\\FNTimes\\FS14\\PL;BO\20031221 
STARCROSSED\FNVerdana\\FS9\\PL\
VERSION \FS16\\PL;BO\5\FS9\\PL\ SEQUENCE
12/21/2003

1.  Born Too Late   02:59
2.  SUV 03:31
3.  Got to Get the Boy Back 04:19
4.  Star-Crossed03:11
5.  Living in the World 03:39
6.  Hungry Heart of Love03:21
7.  Backwards   05:04
8.  Sanguine03:55
9.  Moment to Moment04:00
10. Meltdown03:28
11. Born Too Late (Reprise) 00:45
	Total Time:	38:40\XX\\sr0p,-1p,340p,340p;pp2;fr\
\GFG4_BARNCARDIA_PB:Users:sbarncar:Documents:   Most Important Data 
Files:development:sqb HC apps:TC Lable System:Logo PICTS:Civil 
Defense_300dpiCOL.pict;pp3;CX131p,271p,205p,337p\
\sr31p,373p,303p,677p\\pp1;BX\\C+\\FNTimes\\FS14\\PL;BO\20031221 
STARCROSSED\FNVerdana\\FS9\\PL\
VERSION \FS16\\PL;BO\5\FS9\\PL\ SEQUENCE
12/21/2003

1.  Born Too Late   02:59
2.  SUV 03:31
3.  Got to Get the Boy Back 04:19
4.  Star-Crossed03:11
5.  Living in the World 03:39
6.  Hungry Heart of Love03:21
7.  Backwards   05:04
8.  Sanguine03:55
9.  Moment to Moment04:00
10. Meltdown03:28
11. Born Too Late (Reprise) 00:45
	Total Time:	38:40\XX\\sr0p,339p,340p,680p;pp2;fr\
\GFG4_BARNCARDIA_PB:Users:sbarncar:Documents:   Most Important Data 
Files:development:sqb HC apps:TC Lable System:Logo PICTS:Civil 
Defense_300dpiCOL.pict;pp3;CX131p,611p,205p,677p\\LM1inch;TM.5inch;FNGeneva;FS9\
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: A Positioning Mystery

2004-01-29 Thread Graham Samuel
On Thu, 29 Jan 2004 13:06:55 -0700, Rob Cozens <[EMAIL PROTECTED]> wrote:

I'm sure you already know that
setting the lockloc of the grp to true keeps the group from resizing on the
card.
I do now, Chipp; but it would never have occurred to me there was an
issue to deal with until I learned group location depends, in part,
on which controls are visible.
Actually I found out recently that setting the lockLoc isn't the 
whole story. It is possible to get strange things to happen to groups 
even if the lockLoc is set, apparently if any part of the group has 
had its shape altered by script since it was initially grouped. One 
way to do this is to edit an unrelated group on the same card. This 
is IMO a bug, but one too obscure to add to Bugzilla, at least in the 
medium term.

Graham

--
---
 Graham Samuel / The Living Fossil Co. / UK & France
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: server load with Rev "net" apps

2004-01-29 Thread Brian Yennie
Pierre's method works well - I've even used it in a commercial app. 
Check the archives for PHP / sockets.

Essentially what you need to do is write a PHP (or Perl would work) 
script which talks over sockets to a running MetaCard app. The MetaCard 
app takes requests and writes them back to the PHP calling script, and 
keeps on running waiting for the next request- a MetaCard application 
server if you will.

Since PHP is usually installed as a server module (rather than CGI), 
this method will most likely use much less memory. Even generally 
speaking, the PHP engine may have less of a footprint than the Metacard 
CGI.

- Brian

As I understand it, yes, a separate instance will open with each hit. 
I think Pierre Sahores figured out a way to keep the engine running so 
this wouldn't happen, but I don't know how he did it.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
On 1/30/04 4:55 AM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote:

> On 1/29/04 6:47 AM, Doug Lerner wrote:
> 
>> I get "Chunk: can't find object" errors if I try:
>> 
>> set the textStyle of word 1 of the last line of field "chatField" to bold
>> 
>> But since you said yours worked I tried:
>> 
>> set the textStyle of word 1 of line 4 of field "chatField" to bold
>> 
>> and that did work.
>> 
>> So it seems there is a Rev parsing bug involving "the last line" in my first
>> attempt.
> 
> Don't think so, because that also works fine for me here. You might want
> to make sure that the last line of your field doesn't contain invisible
> or non-printing characters (such as option-space or tabs). When bolded,
> those won't show up.

No, nothing like that there. That particular "last line" variation simply
does not work for me. However, I *can*

put word 1 of the last line of field "chatField"

and see the first word.

That's why it seems like a parsing error for the

set the textStyle of word 1 of the last line of field "chatField" to bold

variation.

doug

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


Re: Points in a circular area

2004-01-29 Thread Alejandro Tejada
on Thu, 29 Jan 2004 
Dar Scott wrote:

> Some years ago I designed a model and library for
> working with abstractions of drawings and 
> paintings in a functional (that is f() 
> manner) way.
> 
> In that model the plane could be partitioned by a
> line or by a circle and other shapes.  
> A pie shape is the union (ANDing) of two line 
> partitions and a circle partition.

> For this particular case, it might be easier for you
> to arctan2 points relative to the center to see 
> if they are in the right angle range and 
> then check the distance to see if that is small
> enough.

If i interpret right your recommendations,
it's similar to the procedure that Jim Hurley
is suggesting to use. Now, i'll code a solution
and post the script for speed enhancements. ;-)

> In rendering (or creating point lists) I am trying
> to use interval arithmetic and am putting that off 
> until some performance changes in Revolution.  
> This method allows tests to work on
> whole zones of pixels in one calculation. 

This sounds useful. Could externals helps for
these tasks? 

> The line tests will be faster than the arctan2 
> tests for this method, because of the ignorance
> involved in interval arithmetic.  

I've read that assembler code is faster than c code.

> In the mean time you might try testing each pixel (I
> assume you mean pixels) in the bounding rect 
> of the circle of which the arc is part.

Let's see how much time does this calculation takes.

> I worry about whether coordinates are between pixels
> or in the middle, but I might be the only one here 
> that does.

The integer math of the screen coordinates are 
just a convenient representation of the 
"real" floating point precision of 
graphics and pixels.

Thanks a lot for your ideas, Dar!

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] PC-ing A Mac

2004-01-29 Thread Scott Rossi
A painfully amusing read:

  http://www.overclockers.com/tips1133/index.asp

At least the leftover parts might be used for something.

Regards,

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

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


RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
What about just looking for your app in the openProcesses list called from
the freeware command line utility:

http://www.sysinternals.com/ntw2k/freeware/pslist.shtml

If your app is there, then shut yourself down.

Seems easy enough, unless I'm missing something.

-Chipp


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Trevor
> DeVore
> Sent: Thursday, January 29, 2004 4:04 PM
> To: How to use Revolution
> Subject: Re: multiple instances of standalone under Windows
>
>
> On Jan 29, 2004, at 2:26 PM, Richard Gaskin wrote:
>
> > Trevor DeVore wrote:
> >
> >> On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote:
> >>>
> >>> Polling a directory for a file, while suboptimal, is pretty fast and
> >>> would
> >>> seem to get the job done, no?
> >>
> >> Could you run into problems if your app crashed and wasn't able to
> >> clean up after itself?  The next time your app launched the file would
> >> still be there and your app would shut itself down.
> >
> > I had thathappen with a CGI.  I changed it so the file contains a
> > timestamp;
> > if more than 10 seconds old it deletes it and moves on.
> >
> > With desktop apps its more complicated, since the length of a session
> > is
> > less predictable.
> >
> > Could a local UDP or TCP call be used for that instead?
>
> It seems like this would be the best method available right now.
>
>
> --
> Trevor DeVore
> Blue Mango Multimedia
> [EMAIL PROTECTED]
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>


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


Re: Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
I didn't try that variation, but good to keep in mind. Thanks, Jan.

doug

On 1/29/04 11:05 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

> --- Doug Lerner <[EMAIL PROTECTED]> wrote:
>> [snip]
>> 
>> I guess the workaround is either to use htmlText
>> like I ended up doing or
>> finding the number of lines first, as in:
>> 
>> put the number of lines of field "chatField" into
>> nLines
>> set the textStyle of word 1 of line nLines of field
>> "chatField" to bold
>> 
>> doug
>> 
> 
> Hi Doug,
> 
> Have you tried the alternative syntax for "last line",
> which is to count back ?
> set the textstyle of word 1 to 2 of line -1 \
> of field "chatField" to bold
> 
> Hope this works,
> 
> Jan Schenkel.
> 
> =
> "As we grow older, we grow both wiser and more foolish at the same time."  (La
> Rochefoucauld)
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: multiple instances of standalone under Windows

2004-01-29 Thread Richard Gaskin
Trevor DeVore wrote:

> On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote:
> 
>> Chipp Walters wrote:
>> 
>>> We've had some discussions on this list before, and the short answer
>>> is "not
>>> easily." You can do things like write a file when you open and delete
>>> it
>>> when you close --then check to see if it is there when it launches
>>> again,
>>> but this has obvious problems.
>> 
>> Polling a directory for a file, while suboptimal, is pretty fast and
>> would
>> seem to get the job done, no?
> 
> Could you run into problems if your app crashed and wasn't able to
> clean up after itself?  The next time your app launched the file would
> still be there and your app would shut itself down.

I had thathappen with a CGI.  I changed it so the file contains a timestamp;
if more than 10 seconds old it deletes it and moves on.

With desktop apps its more complicated, since the length of a session is
less predictable.

Could a local UDP or TCP call be used for that instead?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

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


Re: multiple instances of standalone under Windows

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 01:45 PM, Chris Sheffield wrote:

Does anyone have a way to check if another instance of a standalone is
already running, and if so close the one that was just opened?
Try 'accept' on some obscure port.  If it fails, assume that another 
app is running.  (Immediately close any connections in the call back, 
should any be made.)  I'd try UDP first.  If you need to listen to a 
port anyway, you are set.

You could try creating and deleting a folder.  This will work faster 
than a file, I think.  If you need some temp files, anyway, put this 
where you put your temp files and put your temp files in there.  You 
may need to work out the rare case of two programs trying to run at the 
same time.

There is probably some shell command you can use.  That may work well, 
since you only need one platform.  This also needs to address the 
problems of two starting at the same time.

If you feel comfortable with two not starting at the same time, then 
you don't have to worry about that.

The openProcesses() function applies to processes opened with 'open 
process'.

Dar Scott


Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Re: Scroll Bar Problem

2004-01-29 Thread Rob Cozens
Hi Glen,

I have 10 lines being continually placed "into" a field every second.

When I use the horizontal scroll bar it does not stay in the 
position I set it to...on every update it starts back in its default 
state (to the far left).

Is there a way I can have it stay where ever I place it while the 
field is being updated?
on update
  local theXLines
  lock screen
  get the hScroll of field [the target field]
  put theXLines into field [the target field]
  set the hScroll of field [the target field] to it
  unlock screen
  send "update" in 1 second
end update

Also, is there a quick way to sum the second word for the field?

function getSum
  put 0 into theTotal
  repeat for each line targetLine of field [the target field]
add word 2 of targetLine to theTotal
  end repeat
  return theTotal
end getSum
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: A Positioning Mystery

2004-01-29 Thread Rob Cozens
I'm sure you already know that
setting the lockloc of the grp to true keeps the group from resizing on the
card.
I do now, Chipp; but it would never have occurred to me there was an 
issue to deal with until I learned group location depends, in part, 
on which controls are visible.

Thanks,
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A Positioning Mystery

2004-01-29 Thread Rob Cozens
If you have geometry on for any of the items in the group, I highly 
recommend you turn them off and do the resizing yourself.
Thanks for the suggestion, Frank.

As a matter of fact, I do script resizeStack handlers rather than use the GM.
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: multiple instances of standalone under Windows

2004-01-29 Thread Trevor DeVore
On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote:

Chipp Walters wrote:

We've had some discussions on this list before, and the short answer 
is "not
easily." You can do things like write a file when you open and delete 
it
when you close --then check to see if it is there when it launches 
again,
but this has obvious problems.
Polling a directory for a file, while suboptimal, is pretty fast and 
would
seem to get the job done, no?
Could you run into problems if your app crashed and wasn't able to 
clean up after itself?  The next time your app launched the file would 
still be there and your app would shut itself down.

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


Re: server load with Rev "net" apps

2004-01-29 Thread Alex Rice
On Jan 29, 2004, at 1:07 PM, J. Landman Gay wrote:
As I understand it, yes, a separate instance will open with each hit. 
I think Pierre Sahores figured out a way to keep the engine running so 
this wouldn't happen, but I don't know how he did it.
It is just the nature of CGI programming in general. AFAIK Rev is no 
different than other languages like Perl, Python, TCL, etc. in this 
respect.

Solution 1- Switch to an ISP than has more leniency for heavily used 
CGI apps.

Solution 2- Stop using the CGI interface and switch to an application 
server environment, which generally run in persistently in memory. This 
would mean throwing out Rev and rewriting in another language.

A modified CGI environment might be able to run Rev scripts, but most 
ISPs don't offer such services as FastCGI or PCGI.

modified CGI environment: FastCGI, PCGI
apache DSOs: PHP, Perl, Python, Ruby, etc.
application servers: ASP (.NET?), Java Servlets, Coldfusion, ZOPE.
Hope this helps,

--
Alex Rice | Mindlube Software | http://mindlube.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: multiple instances of standalone under Windows

2004-01-29 Thread Richard Gaskin
Chipp Walters wrote:

> We've had some discussions on this list before, and the short answer is "not
> easily." You can do things like write a file when you open and delete it
> when you close --then check to see if it is there when it launches again,
> but this has obvious problems.

Polling a directory for a file, while suboptimal, is pretty fast and would
seem to get the job done, no?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

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


RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
Hi Chris,

Not sure if this will help, but you might check out:

http://www.sysinternals.com/ntw2k/utilities.shtml

there are a number of process utilities there.

We've had some discussions on this list before, and the short answer is "not
easily." You can do things like write a file when you open and delete it
when you close --then check to see if it is there when it launches again,
but this has obvious problems.

Another idea was some sort of intra-application communication. Embed a small
server on your app and ping to see if it's around when it opens -- if true,
then you know somehthings there --still a headache.

Good luck,

best,

Chipp

> Does anyone have a way to check if another instance of a standalone is
> already running, and if so close the one that was just opened?  I have an
> application running under Windows and need to keep the user from opening
> multiple instances of it.  Is there a way to do this?
>
> I've tried using 'if there is a process "ProcessName"', but that doesn't
> seem to be working.  Maybe I'm just using it incorrectly?  Any ideas would
> be appreciated.
>
> Chris Sheffield
> Software Development
> Read Naturally


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


Re: A Positioning Mystery

2004-01-29 Thread Richard Gaskin
Frank Leahy wrote:

> If you have geometry on for any of the items in the group, I highly
> recommend you turn them off and do the resizing yourself.  It won't
> take much code to write it yourself, and you won't have any funny
> side-effects. 

A handy handler for assisting resizing, allowing you one line per object:

on ObjRect pObj
  local r,i
  put the rect of pObj into r
  repeat with i = 2 to 5
get param(i)
if it is not empty then put it into item (i-1) of r
  end repeat
  set the rect of pObj to r
end ObjRect


on resizeStack x,y
  ObjRect the long id of fld 1, "","",x-200,y-20
  ObjRect the long id of fld 2, the left of fld 1,"",x-20,y-20
  pass resizeStack
end resizeStack


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

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


RE: A Positioning Mystery

2004-01-29 Thread Chipp Walters
Rob,

Sorry for coming into this a bit late. And I'm sure you already know that
setting the lockloc of the grp to true keeps the group from resizing on the
card.

If I'm way off base regarding the problem, sorry ;-)

best,

Chipp


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


multiple instances of standalone under Windows

2004-01-29 Thread Chris Sheffield
Does anyone have a way to check if another instance of a standalone is
already running, and if so close the one that was just opened?  I have an
application running under Windows and need to keep the user from opening
multiple instances of it.  Is there a way to do this?

I've tried using 'if there is a process "ProcessName"', but that doesn't
seem to be working.  Maybe I'm just using it incorrectly?  Any ideas would
be appreciated.

Chris Sheffield
Software Development
Read Naturally

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
 

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


Re: A Positioning Mystery

2004-01-29 Thread Frank Leahy
Rob,

When you move an object in a group, the bounding rect of the group will 
change, which is what may be affecting you.

If you have geometry on for any of the items in the group, I highly 
recommend you turn them off and do the resizing yourself.  It won't 
take much code to write it yourself, and you won't have any funny 
side-effects.  Go through each item and make sure the geometry is off 
by clicking both the "scale selected object" and "position selected 
object" buttons, and then go back and it again, because I've seen them 
stay on even when you set them off.

I did this, and I've been happier ever since.  Personally I don't trust 
the geometry at all, unless it's position by, or a line that's scaling 
horizontally.  For groups, forget it.

Good luck,

-- Frank



On Thursday, January 29, 2004, at 07:54  PM, 
[EMAIL PROTECTED] wrote:

But if I am correct, it seems to me this is an issue of Revolution
features that work fine individually but start stepping on each
other's toes when applied together.
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Scroll Bar Problem

2004-01-29 Thread Bojsza
I have 10 lines being continually placed "into" a field every second.

When I use the horizontal scroll bar it does not stay in the position I 
set it to...on every update it starts back in its default state (to the 
far left).

Is there a way I can have it stay where ever I place it while the field 
is being updated?

Also, is there a quick way to sum the second word for the field?

thanks,

Glen

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


Re: server load with Rev "net" apps

2004-01-29 Thread J. Landman Gay
On 1/28/04 5:29 PM, Richard K. Herz wrote:

I have Rev apps on clients communicating with Rev/MC (last MC engine) CGI
scripts on a Linux/Apache server at an ISP.  The ISP is complaining that the
scripts are causing high CPU usage.  Question:  does a separate instance of
the Rev/MC engine open whenever a new post comes in?  If so, is there an
alternative CGI option that can handle high hit rates?
As I understand it, yes, a separate instance will open with each hit. I 
think Pierre Sahores figured out a way to keep the engine running so 
this wouldn't happen, but I don't know how he did it.

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread J. Landman Gay
On 1/29/04 6:47 AM, Doug Lerner wrote:

I get "Chunk: can't find object" errors if I try:

set the textStyle of word 1 of the last line of field "chatField" to bold

But since you said yours worked I tried:

set the textStyle of word 1 of line 4 of field "chatField" to bold

and that did work.

So it seems there is a Rev parsing bug involving "the last line" in my first
attempt.
Don't think so, because that also works fine for me here. You might want 
to make sure that the last line of your field doesn't contain invisible 
or non-printing characters (such as option-space or tabs). When bolded, 
those won't show up.

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


Re: Windowscript

2004-01-29 Thread Rob Cozens
But Compilit! - Whoa, Tom Pittman, what a genius...maybe he could 
make a cross platform XCMD generator that runs Transcript...


Tom is out the loop. He's realy bitter about Apple and HC. He even 
offered CompileIt! to the hyperCard team but they snubbed him.The 
last time I talked with him, he said that he was finished with all 
xTalks.
My recollection from AHUG gossip was when Tom went to write a PPC 
version of CompileIt!, he asked Apple for specific information he 
need and/or guarantees that the internal PPC architecture would not 
change, and whatever he needed was not given to him.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread J. Landman Gay
On 1/29/04 6:15 AM, Doug Lerner wrote:

It seems you just can't set the textStyle of a single word of a line. 
It works fine here.

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


RE: Some strange Rev parsing problem?

2004-01-29 Thread MisterX
sorry for my ranting, im having parsing problems!

Fixing things over and over for new problems is not fun.
Im currently stalled in bringing a lot of new tools for
Rev and while these pose no problem to develop and debug in MC,
RR is not as fun.

And while the GUI is definitely nicer in Rev, it's tempting to
develop on the nicer platform. Im just not getting the part where
the development part of a development system prevents clean
development. My roulette game went easy, the stupid browser was
2 times harder, buggier due to the debugger, the variable watcher
the replacetext, etc... Go figure!

;)

Note: FruityLoops is the king (like HC) of music making,
its GUI is 99% perfect and it's a pleasure to abuse...

But their patch panel channel IDE is so crappy -
but it's a beauty http://www.flstudio.com -
sorry couldn't find a picture of the channel dashboard
editor but hit the plug-ins link and you'll get the picture
of the "objects"!

I got 33 controls to create for my uc-33 (www.evolution.co.uk),
Assigning a control from the box is as simple as moving the
control on the box you need assigned! But you can't select
more than one control at a time, you can't copy-paste or cmd-d
clone, align, etc... it's a horror! But it's sweet once made!!!

If RR did midi like fruity, it could be the one and
only vst plug-in to have ;)

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, January 29, 2004 16:39
> To: How to use Revolution
> Subject: Re: Some strange Rev parsing problem?
>
>
> On 29/01/2004 14:08:52 use-revolution-bounces wrote:
> >>set the textstyle of word 2 of line 7 of fld "source" to "bold"
> >>
> >>works great... Although... the definition of a word is buggy...
> >>
> >>  Name="description" is apparently one word...
> >
> >and don't forget that all text inside double-quotes is treated as a
> >single word.
>
> Even if that's the case, an equal sign is not really a wordy character...
> Neither is a quote as far as any dictionary is concerned.
>
> This means that you have to control the parse of any word just in case
> which is a big overhead even for a word count function - RR will get it
> wrong again...
>
> I've complained about this to Scott long ago...
>
> I can't remember how HC handled it but when you call a word a word
> and a line a line, the least you can do is respect the language's usage...
>
> For logic and user's sanity sake we dont need a new revolution in
> language...
>
> And the same goes with HTMLtext display...
> I'll just say that what is not ignored (a  tag for example) affects
> the rest of
> the display (links wont display after a ) and you have to dance on
> your
> head stripping the tags and/or their parameters to get HTMLText
> to display
> normally...
>
> A new definition for the word 1g"n0r=3 I guess... ;)
>
>
>
> Visit us at http://www.clearstream.com
>
> IMPORTANT MESSAGE
>
> Internet 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
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: A Positioning Mystery

2004-01-29 Thread Rob Cozens
The rect (and therefore the loc) of a group changes every time the 
visible property of a group control with part of its rect outside 
that of any other group control is changed.
Eureka!

If I ...

lock screen
show [a control whose rect encompasses all other controls in the group]
set the loc of [the group]
hide [a control whose rect encompasses all other controls in the group]
[rest of resize statements]
unlock screen
all is well.

However, I'm pretty sure the animation played a part too, as the 
animated image (after animation) has the same rect as the button 
shown & hidden above; so I'm classifying this as a double mystery:

1. The animation caused a change in the position of the animated 
image relative to the other controls in the same group.

2. When the animated image was removed from the group, the second bug bit.

...solved [or explained: I see the workaround and group locs changing 
with control visibility changes as "Mickey Mouse"] with a little help 
from my friends.   :{`)
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Windowscript

2004-01-29 Thread Ray G. Miller


From: Stephen Quinn Barncard <[EMAIL PROTECTED]>
 


But Compilit! - Whoa, Tom Pittman, what a genius...maybe he could 
make a cross platform XCMD generator that runs Transcript...

 

Tom is out the loop. He's realy bitter about Apple and HC. He even offered CompileIt! to the hyperCard team but they snubbed him.The last time I talked with him, he said that he was finished with all xTalks.  



Ray G. Miller
__
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:[EMAIL PROTECTED]
(V) 510.530.1971
(F) 510.482.3491


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


Re: A Positioning Mystery

2004-01-29 Thread Rob Cozens
2. A resizeStack handler which changes the loc of the group, but 
does not address any controls in the group.
Clue 2:

The rect (and therefore the loc) of a group changes every time the 
visible property of a group control with part of its rect outside 
that of any other group control is changed.

In other words:

Open a stack with grouped controls in the Application Browser.

Click on a group name in the AB, and check its rect & loc.

Change the visibility of a group control whose left, top, right, or 
bottom coordinate lies outside the bounds of all other group controls

Click on a group name in the AB, and check its rect & loc...they WILL 
have changed.

I understand the justification of this...as far as mouse events are 
concerned, the mouse should be considered outside the group when 
outside its visible controls; however, until one understands what's 
going on, it seems counterintuitive that changing the visibility of a 
control should change the loc of the group of which it is a part.

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A Positioning Mystery

2004-01-29 Thread Jan Schenkel
--- Rob Cozens <[EMAIL PROTECTED]> wrote:
> I've about exhausted all ideas of how to figure out
> what is going on 
> here...anyone want to be detective of the day?
> 
> Actually, I just discovered a clue while writing
> this...
> 
> Scenario:
> 
> 1. A group on one card of a resizeable stack,
> consisting of several 
> images, buttons with icons, and a field. Clue: One
> of the images is 
> moved by an animation.
> 
> 2. A resizeStack handler which changes the loc of
> the group, but does 
> not address any controls in the group.
> 
> 3.  A closeStack handler that resizes the stack to
> it's original size.
> 
> Mystery:  Each time I open and close the stack, the
> position of the 
> animated image changes relative to the other
> controls in the group.
> 
> My guess now is that the animation, which changes
> the size and 
> position of the image, changes the relative
> positioning of the image 
> in relation to other grouped controls as well.
> 
> Should be easy enough to test by removing the image
> from the group 
> and positioning the group relative to the image...so
> I will.
> 
> But if I am correct, it seems to me this is an issue
> of Revolution 
> features that work fine individually but start
> stepping on each 
> other's toes when applied together.
> 
> Rob Cozens
> 

Hi Rob,

Whie I'm not planning on playing detective inside the
Animation Builder, the one thing that crosse my mind
is : of those items are grouped, when you move one
around there's a pretty good chance that you're moving
them in positions that force the group to scroll,
causing the coordinates to change.
I would just not group any of the animated controls.

Jan Schenkel.

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

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RevNet fixed

2004-01-29 Thread Richard Gaskin
Thanks to asistance from libURL meister Dave Cragg, RevNet is back in full
operation.  There's nothing you need to update - the changes were handled in
the downloaded RevNet stack.

Just choose Development->Plugins->GoRevNet as always, and you should be good
to go.

If you experience any issues with RevNet please drop me an email and let me
know.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

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


Re: Points in a circular area

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 12:36 AM, Alejandro Tejada wrote:

I'm working with geometric stuff now, and before
reinvent the wheel, i feel compeled to ask:
Do you have a function that returns all
the points or coordinates within an arc of
a circle?
Some years ago I designed a model and library for working with 
abstractions of drawings and paintings in a functional (that is f() 
manner) way.

In that model the plane could be partitioned by a line or by a circle 
and other shapes.  A pie shape is the union (ANDing) of two line 
partitions and a circle partition.

For this particular case, it might be easier for you to arctan2 points 
relative to the center to see if they are in the right angle range and 
then check the distance to see if that is small enough.

In rendering (or creating point lists) I am trying to use interval 
arithmetic and am putting that off until some performance changes in 
Revolution.  This method allows tests to work on whole zones of pixels 
in one calculation.  The line tests will be faster than the arctan2 
tests for this method, because of the ignorance involved in interval 
arithmetic.  Those who have never heard of interval arithmetic can 
safely skip this paragraph.

In the mean time you might try testing each pixel (I assume you mean 
pixels) in the bounding rect of the circle of which the arc is part.

I worry about whether coordinates are between pixels or in the middle, 
but I might be the only one here that does.

Dar Scott

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


A Positioning Mystery

2004-01-29 Thread Rob Cozens
I've about exhausted all ideas of how to figure out what is going on 
here...anyone want to be detective of the day?

Actually, I just discovered a clue while writing this...

Scenario:

1. A group on one card of a resizeable stack, consisting of several 
images, buttons with icons, and a field. Clue: One of the images is 
moved by an animation.

2. A resizeStack handler which changes the loc of the group, but does 
not address any controls in the group.

3.  A closeStack handler that resizes the stack to it's original size.

Mystery:  Each time I open and close the stack, the position of the 
animated image changes relative to the other controls in the group.

My guess now is that the animation, which changes the size and 
position of the image, changes the relative positioning of the image 
in relation to other grouped controls as well.

Should be easy enough to test by removing the image from the group 
and positioning the group relative to the image...so I will.

But if I am correct, it seems to me this is an issue of Revolution 
features that work fine individually but start stepping on each 
other's toes when applied together.

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a stack *behind* another stack? (take 2)

2004-01-29 Thread Scott Rossi
> How would I specify that the newly opened stack is behind another stack?

I'm not sure what the desired outcome was in this case, but here is a small
example demonstrating the opening of one stack behind another (uses a
palette stack as the main stack).  In your message box type:

 go url "http://www.tactilemedia.com/download/slider.rev";

The "drawer" stack should always open and remain behind the main stack, but
a palette style foreground stack may not be appropriate for the original
problem.

Regards,

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

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread Rob Cozens
I can't remember how HC handled it but when you call a word a word
Buzz!

Sorry, X-Man:

HyperCard Script Language Guide (p120):

"Words are composed of any characters, including punctuation, 
delimited by spaces and return characters..."

In HyperTalk,

on testWord wordNumber
get quote&"All My Children""e&&"is a soap opera."
put word wordNumber of it
end testWord
puts (quote&"All My Children""e) when wordNumber is 1 and "is" 
when wordNumber is 2.

You knew that!
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread xbury . cs
On 29/01/2004 14:08:52 use-revolution-bounces wrote:
>>set the textstyle of word 2 of line 7 of fld "source" to "bold"
>>
>>works great... Although... the definition of a word is buggy...
>>
>>  Name="description" is apparently one word...
>
>and don't forget that all text inside double-quotes is treated as a
>single word.

Even if that's the case, an equal sign is not really a wordy character...
Neither is a quote as far as any dictionary is concerned.

This means that you have to control the parse of any word just in case 
which is a big overhead even for a word count function - RR will get it
wrong again...

I've complained about this to Scott long ago... 

I can't remember how HC handled it but when you call a word a word
and a line a line, the least you can do is respect the language's usage...

For logic and user's sanity sake we dont need a new revolution in 
language...

And the same goes with HTMLtext display... 
I'll just say that what is not ignored (a  tag for example) affects 
the rest of 
the display (links wont display after a ) and you have to dance on 
your 
head stripping the tags and/or their parameters to get HTMLText to display 
normally... 

A new definition for the word 1g"n0r=3 I guess... ;)



Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Positioning Animations in a Resizeable Stack

2004-01-29 Thread Rob Cozens
Hi All,

Simple question:

How does one change the position of an animation so the animation is 
always centered in the window regardless of the current window size?

TIA,

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bug votation

2004-01-29 Thread Dom
Robert Brenstein <[EMAIL PROTECTED]> wrote:

> Oh, so you already have an account. Then after you connect to 
> bugzilla and log in, you should be able to vote. If you want to see 
> your current votes, there is a link in your private area on the 
> bottom.

Thanks, I found it :-)

-- 
Digital photos (nature, garden) : http://cooldomi.free.fr/
Scripting : http://domiscript.free.fr/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread Jan Schenkel
--- Doug Lerner <[EMAIL PROTECTED]> wrote:
> [snip]
> 
> I guess the workaround is either to use htmlText
> like I ended up doing or
> finding the number of lines first, as in:
> 
> put the number of lines of field "chatField" into
> nLines
> set the textStyle of word 1 of line nLines of field
> "chatField" to bold
> 
> doug
> 

Hi Doug,

Have you tried the alternative syntax for "last line",
which is to count back ?
  set the textstyle of word 1 to 2 of line -1 \
  of field "chatField" to bold

Hope this works,

Jan Schenkel.

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

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread Cubist
sez [EMAIL PROTECTED]
>So it seems there is a Rev parsing bug involving "the last line" in my
>first attempt.
>
>I guess the workaround is either to use htmlText like I ended up doing
>or finding the number of lines first, as in:
>
>put the number of lines of field "chatField" into nLines
>set the textStyle of word 1 of line nLines of field "chatField" to bold
   Or you could do that in one command (mind the line-wrap!):

  set the textStyle of word 1 of line (the number of lines of field 
"chatField") of field "chatField" to bold

   The two-line version is clearly preferable if you *also* do *other* things 
with the last line of the field; otherwise, which way to go is a matter of 
taste.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Points in a circular area

2004-01-29 Thread Jim Hurley
Message: 2
Date: Wed, 28 Jan 2004 23:36:28 -0800 (PST)
From: Alejandro Tejada <[EMAIL PROTECTED]>
Subject: Points in a circular area
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Hi Developers,

I'm working with geometric stuff now, and before
reinvent the wheel, i feel compeled to ask:
Do you have a function that returns all
the points or coordinates within an arc of
a circle?
Notice for a rectangular area this is
fairly easy, but an area with the shape of an
slice is another thing. Imagine how to get all the
points within a larger version of this arc shape >.
Ideas or suggestions are welcome!

Thanks in advance.

al


Al,

I presume you mean all integer coordinates within the arc. And the 
arc is a slice of pie?

This is crude, but possibly viable.

A little Turtle Graphics (with radial coordinates) might help--of course :-)

If the arc is a piece of pie: Use polar coordinates. Set the origin 
at the apex of the arc.  Test for all x-y integer coordinates within 
a square of side R (radius of the arc)  for their radial coordinates. 
Accept those for which r is less than R and theta is between the arc 
angles.

Is this clear without a figure?

Jim

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread Phil Jimmieson
set the textstyle of word 2 of line 7 of fld "source" to "bold"

works great... Although... the definition of a word is buggy...

 Name="description" is apparently one word...
and don't forget that all text inside double-quotes is treated as a 
single word.

--
Phil Jimmieson  [EMAIL PROTECTED]  (UK) 0151 794 3689  (Mobile) 07976 983164
Computer Science Dept., Liverpool University, Chadwick Building, Peach Street
Liverpool L69 7ZF  http://www.csc.liv.ac.uk/~phil/
  I used to sit on a special medical board... ...but now I use this ointment.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
It was definitely not empty.

I could do:

put word 1 of the last line of field "chatField"

into the message box and see it.

doug


On 1/29/04 9:54 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> Make sure the last line is not empty (IOWs, the last char of the field is
> a return character...)
> 
> On 29/01/2004 13:47:14 use-revolution-bounces wrote:
>> I get "Chunk: can't find object" errors if I try:
>> 
>> set the textStyle of word 1 of the last line of field "chatField" to bold
>> 
>> But since you said yours worked I tried:
>> 
>> set the textStyle of word 1 of line 4 of field "chatField" to bold
>> 
>> and that did work.
>> 
>> So it seems there is a Rev parsing bug involving "the last line" in my
> first
>> attempt.
>> 
>> I guess the workaround is either to use htmlText like I ended up doing or
>> finding the number of lines first, as in:
>> 
>> put the number of lines of field "chatField" into nLines
>> set the textStyle of word 1 of line nLines of field "chatField" to bold
>> 
>> doug
>> 
>> 
>> On 1/29/04 9:29 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>> wrote:
>> 
>>> set the textstyle of word 2 of line 7 of fld "source" to "bold"
>>> 
>>> works great... Although... the definition of a word is buggy...
>>> 
>>> Name="description" is apparently one word...
>>> 
>>> Q: So how do you define a word in RR?
>>> 
>>> A: A new revolution!
>>> 
>>> 
>>> 
>>> On 29/01/2004 13:15:47 use-revolution-bounces wrote:
 It seems you just can't set the textStyle of a single word of a line.
> But
>>> I
 was able to accomplish what I needed by using HTML and setting the
>>> htmlText
 of the whole line instead.
 
 doug
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>>> 
>>> Visit us at http://www.clearstream.com
>>> 
>>> IMPORTANT MESSAGE
>>> 
>>> Internet 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
>>> [EMAIL PROTECTED]
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> ___
>> use-revolution mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread FlexibleLearning
>It seems you just can't set the textStyle of a single word of a line. But I 
was
>able to accomplish what I needed by using HTML and setting the htmlText
>of the whole line instead.
>
>doug

Sounds like a bug to me. It has always been possible to do this before. If 
mc2.5.1 can do it, so should rev 2.1.

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread xbury . cs
Make sure the last line is not empty (IOWs, the last char of the field is 
a return character...)

On 29/01/2004 13:47:14 use-revolution-bounces wrote:
>I get "Chunk: can't find object" errors if I try:
>
>set the textStyle of word 1 of the last line of field "chatField" to bold
>
>But since you said yours worked I tried:
>
>set the textStyle of word 1 of line 4 of field "chatField" to bold
>
>and that did work.
>
>So it seems there is a Rev parsing bug involving "the last line" in my 
first
>attempt.
>
>I guess the workaround is either to use htmlText like I ended up doing or
>finding the number of lines first, as in:
>
>put the number of lines of field "chatField" into nLines
>set the textStyle of word 1 of line nLines of field "chatField" to bold
>
>doug
>
>
>On 1/29/04 9:29 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>wrote:
>
>> set the textstyle of word 2 of line 7 of fld "source" to "bold"
>>
>> works great... Although... the definition of a word is buggy...
>>
>> Name="description" is apparently one word...
>>
>> Q: So how do you define a word in RR?
>>
>> A: A new revolution!
>>
>>
>>
>> On 29/01/2004 13:15:47 use-revolution-bounces wrote:
>>> It seems you just can't set the textStyle of a single word of a line. 
But
>> I
>>> was able to accomplish what I needed by using HTML and setting the
>> htmlText
>>> of the whole line instead.
>>>
>>> doug
>>>
>>> ___
>>> use-revolution mailing list
>>> [EMAIL PROTECTED]
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>> Visit us at http://www.clearstream.com
>>
>> IMPORTANT MESSAGE
>>
>> Internet 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
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>___
>use-revolution mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
I get "Chunk: can't find object" errors if I try:

set the textStyle of word 1 of the last line of field "chatField" to bold

But since you said yours worked I tried:

set the textStyle of word 1 of line 4 of field "chatField" to bold

and that did work.

So it seems there is a Rev parsing bug involving "the last line" in my first
attempt.

I guess the workaround is either to use htmlText like I ended up doing or
finding the number of lines first, as in:

put the number of lines of field "chatField" into nLines
set the textStyle of word 1 of line nLines of field "chatField" to bold

doug


On 1/29/04 9:29 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> set the textstyle of word 2 of line 7 of fld "source" to "bold"
> 
> works great... Although... the definition of a word is buggy...
> 
> Name="description" is apparently one word...
> 
> Q: So how do you define a word in RR?
> 
> A: A new revolution!
> 
> 
> 
> On 29/01/2004 13:15:47 use-revolution-bounces wrote:
>> It seems you just can't set the textStyle of a single word of a line. But
> I
>> was able to accomplish what I needed by using HTML and setting the
> htmlText
>> of the whole line instead.
>> 
>> doug
>> 
>> ___
>> use-revolution mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> Visit us at http://www.clearstream.com
> 
> IMPORTANT MESSAGE
> 
> Internet 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
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Porting PrintReport (was: Re: Windowscript)

2004-01-29 Thread Yves COPPE
Hi list,

i was a registred user of Printreport with HC

i found it fantastic and it would be so nice to find it again in Rev...

I cross my fingers...

Greetings.

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread xbury . cs
set the textstyle of word 2 of line 7 of fld "source" to "bold"

works great... Although... the definition of a word is buggy...

 Name="description" is apparently one word... 

Q: So how do you define a word in RR? 

A: A new revolution!



On 29/01/2004 13:15:47 use-revolution-bounces wrote:
>It seems you just can't set the textStyle of a single word of a line. But 
I
>was able to accomplish what I needed by using HTML and setting the 
htmlText
>of the whole line instead.
>
>doug
>
>___
>use-revolution mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/use-revolution


Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using Valentina databases

2004-01-29 Thread Robert Brenstein
Duane, You will probably have more questions about Valentina than 
Revolution for your projects, so I would recommended joining the 
Valentina support list. I know from discussions on that list that a 
number of people produced various dictionaries with Valentina 
(although not with Rev), so just searching the list archives may turn 
out something useful.

Robert

On 29/01/2004, at 12:57 PM, duane poncy wrote:

I want to explore using a Valentina database for a dictionary project,
but I can find no documentation on using Valentina with Revolution.
Does anyone know where I can find some resource materials?  Thanks.
Duane Poncy

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


Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
It seems you just can't set the textStyle of a single word of a line. But I
was able to accomplish what I needed by using HTML and setting the htmlText
of the whole line instead.

doug

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


Porting PrintReport (was: Re: Windowscript)

2004-01-29 Thread Graham Samuel
On Wed, 28 Jan 2004 12:37:12 -0800, Stephen Quinn Barncard
I'd be happier if he'd bring Printreport to the OSX world, otherwise
I'd still be using his XCMDs... actually for some stacks to difficult
to convert right now, I do and use it every day in Classic.
Even better would be to develop a library for Rev, then everybody
would be happy.
It got to the point that Hypercard was an ideal interface and glue;
but the XCMDs did most of the work.  I would often have over 50 in a
project and still have thousands of them on a CD. Too bad they can't
run in X. It's still PPC code resource - but calls the old APIs...
damn..
But Compilit! - Whoa, Tom Pittman, what a genius...maybe he could
make a cross platform XCMD generator that runs Transcript...
From what I remember of PrintReport, (I used it with SuperCard a few 
years ago now), pretty well all of the functionality could be 
repeated in Transcript, thus making it truly cross-platform. It would 
also be possible to produce a less hard-to-use interface, IMO - I 
would not personally consider trying to reproduce the interface 
itself, which is more in the style of a special language executed by 
a home-grown interpreter rather than a set of functions and 
parameters. I guess the interpreter could be written on top of the 
Transcript version for compatibility reasons, but I very much doubt 
if there would be enough customers to make it worthwhile

A limitation in the Transcript version if written today would be a 
pesky problem that has long worried me - RunRev doesn't give the 
scripter access to printer parameters, particularly the maximum 
printable area on a page; this means that it's impossible to produce 
a sensible routine for handling margins in any kind of reporting or 
printout function. When last I grumbled about this I didn't get much 
support from other listers, but it seems to me an essential function, 
and one which it must be feasible to provide for at least the Mac and 
PC platforms, judging by the various apps out there that exploit this 
information (MS Word for PC and LemkeSoft's Graphic Converter for Mac 
are two that I usually mention).

Others have pointed out that this would probably not be a commercial 
success even as shareware, but I think it may be worth further study 
- no doubt the devil is in the details, and I still have my 
PrintReport manual. I will see if I can look at this more closely and 
tell the list what I've found in a few weeks from now. Unless 
someone's done all this already?

Graham
--
---
 Graham Samuel / The Living Fossil Co. / UK & France
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
Bracketing doesn't help. I've narrowed it down to an even simpler example:

set the textStyle of word 1 of the last line of field "chatField" to bold

does not work even though

set the textStyle of the last line of field "chatField" to bold

does work.

I think setting a single word chunk's textStyle was supposed to work...

doug 

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


Re: Filtering with more than 4 types (OSX)

2004-01-29 Thread Robert Brenstein
Since the issue of filtering has been discussed 
lately and it is pending to be fixed/improved, 
someone (Eric?) should amend the discussion of 
bug 605 to include support for more than 4 types 
(and also vote for this bug). The fact that the 
default OS procs support only 4 should not limit 
us. After all, in most other development 
environments, one simply writes own filterproc. 
We would not want that such silly restrictions 
stopped users from using Revolution, wouldn't we? 
Rev may need to write a custom proc to support 
types and extensions anyway.

Robert


Hi dreamer,

Just for information, if I remember well, MacOS 
limits the filtering up to 4 types.
A custom proc filter is needed to filter more than 4 types.

But sorry, I don't know how to do simply in Rev.
The only idea I have is to write an external 
that will call the MacOS file selector with a 
custom file proc according to your need.

Regards.
Thierry.
Le Wednesday, 28 Jan 2004, à 10:22 Europe/Paris, Éric Chatonet a écrit :

Bonjour à tous les Reveurs,

OSX 10.3
Rev 2.1.2
I want to display a dialog allowing the user to 
choose only pictures i.e BMP,MooV, JPEG, PNG, 
GIF and TIFF (cross platform app).
Only the four first types are considered:

answer file tPrompt with filter 
"MooVJPEGPNGfGIFfTIFFBMP " -- filters correctly 
MooV,JPEG,PNG and GIF while TIFF and BMP files 
are disabled
answer file tPrompt with filter 
"PNGfGIFfTIFFBMP MooVJPEG" -- filters correctly 
PNG, GIF, TIF and BMP while MooV and JPEG files 
are disabled

Any idea to by-pass this apparent limitation?

Mille mercis par avance !

Eric Chatonet

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


Re: Checklist for getting an app ready for distribution?

2004-01-29 Thread xbury . cs
I use the explicit variables in MC which find probably 80% of all 
bugs due to misnamed variables, send messages not formated
correctly... Again, this is a great feature I praise for solid scripts...

Check every menu feature from left to right... Or from feature priority
down... Up to you...

Then I give my stack to my mom and she'll do the weirdest things a user 
can
do trying to figure it out and show me about another 50% of errors or 
unclear
features ;))

Another way is to write down the feature list before doing the stack and 
then
checking each one after... Keep a log and check continually. Most 
important
is to recheck after the stack is finished to make sure any last mod doesnt 
affect
previously working scripts... This is lengthier but it's very solid...

On 29/01/2004 11:00:19 use-revolution-bounces wrote:
>Hi,
>
>Does anyone have a handy list of things they do before they get a
>product ready for distribution?  Or maybe even a little stack that
>checks a bunch of stuff automatically?  For example, check that fields
>don't have a font and font size set by mistake.  That the stack has a
>font and font size set.  Get a list of which items have colors set
>(could have been set mistakenly for example).  Those types of little
>things as well as any bigger things one should be aware of (such as
>cross-platform issues).
>
>Thanks in advance,
>-- Frank
>
>___
>use-revolution mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/use-revolution


Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some strange Rev parsing problem?

2004-01-29 Thread jbv


Doug,

> Rev can't seem to find the object referred to in this statement:
>
> set the textStyle of word 1 to 2 of the last line of field "chatField" of
> stack "chat550" to bold
>
> But just:
>
> word 1 to 2 of the last line of field "chatField" of stack "chat550"
>
> displays just fine.
>
> Did the complexity of the statement create some sort of ambiguity that
> confused the parser?

I don't know if it's relevant, but several times I've had the
same problem with long expressions, and solved it by putting
parts of the expression into brackets, for instance :

set the textStyle of (word 1 to 2 of the last line of field "chatField" of
stack "chat550") to bold

Another problem might be that "word 1 to 2" can't be used when
setting props, only for retrieving data (get word 1 to 2 of...).
In your example, I would rather use :

repeat with i=1 to 2
   set the textStyle of word i of the last line of field "chatField" of \
   stack "chat550" to bold
end repeat

JB

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


Re: Some strange Rev parsing problem?

2004-01-29 Thread xbury . cs
try to put some parenthesis on your reference to the field 
or use the ID of the field for a more direct reference...

I haven't had trouble with this before...

On 29/01/2004 10:58:13 use-revolution-bounces wrote:
>Rev can't seem to find the object referred to in this statement:
>
>set the textStyle of word 1 to 2 of the last line of field "chatField" of
>stack "chat550" to bold
>
>But just:
>
>word 1 to 2 of the last line of field "chatField" of stack "chat550"
>
>displays just fine.
>
>Did the complexity of the statement create some sort of ambiguity that
>confused the parser?
>
>doug
>
>___
>use-revolution mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/use-revolution


Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Checklist for getting an app ready for distribution?

2004-01-29 Thread Frank Leahy
Hi,

Does anyone have a handy list of things they do before they get a 
product ready for distribution?  Or maybe even a little stack that 
checks a bunch of stuff automatically?  For example, check that fields 
don't have a font and font size set by mistake.  That the stack has a 
font and font size set.  Get a list of which items have colors set 
(could have been set mistakenly for example).  Those types of little 
things as well as any bigger things one should be aware of (such as 
cross-platform issues).

Thanks in advance,
-- Frank
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Some strange Rev parsing problem?

2004-01-29 Thread Doug Lerner
Rev can't seem to find the object referred to in this statement:

set the textStyle of word 1 to 2 of the last line of field "chatField" of
stack "chat550" to bold

But just:

word 1 to 2 of the last line of field "chatField" of stack "chat550"

displays just fine.

Did the complexity of the statement create some sort of ambiguity that
confused the parser?

doug

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


Re: XMLlib does not parse

2004-01-29 Thread Dave Cragg
At 2:55 pm +0100 28/1/04, Björnke von Gierke wrote:
I am new to XML and try to use rev to read a PAD file. I have a
problem where the revCreateXMLTree function does generate this error:
xmlerr, can't parse xml
Unsupported encoding windows-1252
however every xml I looked at had that encoding, so it seems to be
quite often used, why then does rev not know it?
I don't think Rev's xml parser is the only one 
that doesn't handle Windows-1252 encoding. But 
you're right that it should support it.

As a temporary workaround (until support is 
addded) you could try changing the encoding to 
ISO-8859-1 before using revCreateXMLTree. The two 
encodings are not identical, but they might be 
close enough for many uses.

For example (assuming the xml data is in the tXML variable):

  replace "Windows-1252" with "ISO-8859-1" in tXML
  get revCreateXMLTree(tXML,false,true,false)
Note that this is a crude example for 
illustration. Apart from the encodings not being 
identical (Windows-1252 has additional characters 
to ISO-8859-1), the above script assumes that the 
text being replaced only occurs at the top of the 
xml data. A more "robust" replace function is 
probably necessary for serious application.

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


Re: Find screen pixel color without screenMouseLoc

2004-01-29 Thread Ops
Got it working, thank you Sir.  My desktop icons flicker and it is quite 
slow...I have read in the archives about icons "winking" out...this is 
happening to me too.  I'll have to evaluate the impact on my app, but 
thank you for the answer Dar!!

Dar Scott wrote:

On Wednesday, January 28, 2004, at 05:56 PM, Ops wrote:

I've searched, and cannot find an answer to this question.  Can I find 
the color of a particular pixel of a (windows) screen without having 
to change the screenMouseLoc (and then using mouseColor).  Doing it 
that way is annoying and confusing to my users when the pointer moves 
"for no reason" (according to their perception)..


export the screen to an invisible image (or to a variable and then to 
image).  Get the imageData.  Get the pixel.

Dar Scott

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

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


Re: Filtering with more than 4 types (OSX) - AppleScript Question

2004-01-29 Thread Jan Decroos
Barry Levine wrote:
>> Jan,
>>
>> Would you mind providing the exact line(s) of Transcript one would use 
>> to accomplish that AppleScript task?
>>
>> TIA,
>> Barry


Sarah Reichelt wrote:
>Try this: (watch out for line wraps)
>
>on mouseUp
>   put "MooV,JPEG,PNGf,GIFf,TIFF,BMP" into tFilters
>   put "Select a Quicktime file:" into tPrompt
>
>   put getFilePath(tFilters, tPrompt) into tFile
>   answer tFile
>end mouseUp
>
>
>function getFilePath pFilters, pPrompt
>   -- change comma-delimited list of filters to AppleScript list
>   -- force each file type to 4 characters
>   put "{" into tASfilters
>   repeat for each item i in pFilters
> put quote & char 1 to 4 of (i & "") & quote & comma after 
>tASfilters
>   end repeat
>   put "}" into last char of tASfilters
>
>   -- do the AppleScript which calls the file selector
>   put "choose file with prompt " & quote & pPrompt & quote & \
>  " of type " & tASfilters into tScript
>   do tScript as AppleScript
>   put the result into tFile
>   if tFile is empty then return empty-- no file chosen
>
>   -- format from Mac file path to Rev file path
>   delete word 1 of tFile-- get rid of the word alias
>   replace quote with "" in tFile-- get rid of the quotes
>   put revUnixFromMacPath(tFile) into tFile
>   return tFile
>end getFilePath
>
>Cheers,
>Sarah

Thanks, Sarah.

The result of the "do tScript as Applescript" can be empty, but also "execution
error" (if you click on the cancel button for instance).
So, I believe the test :
if tFile is empty then return empty-- no file chosen
>
should be
if (tFile is empty) or (tFile is "execution error") then return empty-- no
file chosen

Regards,
Jan
>
>

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


Re: Filtering with more than 4 types (OSX) - AppleScript

2004-01-29 Thread Éric Chatonet
Your script for filtering with more than 4 types (OSX) with AppleScript 
(Vol 4, Issue 189) works fine :-)
Many thanks.
When "MooV" is among the filters, then all types recognized by 
QuickTime are displayed : moovies, images and sounds as well!
I do regret this!
Due to system and QT?

Rev 2.1.2
OS 10.3.2
QT 6.5
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev fails to recognize Chinese

2004-01-29 Thread ron barber
Hi Fritz

On Jan 29, 2004, at 12:25 AM, Friedrich F. Grohmann wrote:
The thing is that a new problem raises its head -the original text
contains one actually quite common character (yang3, "to rear") which 
not
only disappears in fld "newText" but leads to a line break. What is
happening here?
I do not know specifically what is happening in these cases but there 
is a known issue with some Japanese characters that lead to a similar 
result. You can search bugzilla for "japanese" and "unicode" to find 
out more about this and related bugs. The best thing to do is report it 
in bugzilla and include a sample file for Tuviah to look at. He is good 
about fixing when there is a sample included.

Ron

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


Re: Points in a circular area

2004-01-29 Thread xbury . cs
something like algebra 101...

x1= r * cos(x)
 and
 y1=r * sin(y)?

OFF THE TOP OF MY HEAD... Could be that r = d

r = radius and x y are the coordinates on the axis
and x1 y1 are the points in the arc...

;) a su servicio!

-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465




Alejandro Tejada <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
29/01/04 08:36
Please respond to How to use Revolution

 
To: [EMAIL PROTECTED]
cc: 
Subject:Points in a circular area

.


Hi Developers,

I'm working with geometric stuff now, and before 
reinvent the wheel, i feel compeled to ask: 

Do you have a function that returns all
the points or coordinates within an arc of
a circle? 

Notice for a rectangular area this is
fairly easy, but an area with the shape of an
slice is another thing. Imagine how to get all the
points within a larger version of this arc shape >.

Ideas or suggestions are welcome!

Thanks in advance.

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Points in a circular area

2004-01-29 Thread Alejandro Tejada
Hi Developers,

I'm working with geometric stuff now, and before 
reinvent the wheel, i feel compeled to ask: 

Do you have a function that returns all
the points or coordinates within an arc of
a circle? 

Notice for a rectangular area this is
fairly easy, but an area with the shape of an
slice is another thing. Imagine how to get all the
points within a larger version of this arc shape >.

Ideas or suggestions are welcome!

Thanks in advance.

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


  1   2   >