Re: Using font sizes other than whole numbers

2004-04-22 Thread FlexibleLearning
>>I am still struggling with the attempt to print government forms with 
RunRev
>>the same as I do with Hypercard and nine to five reports. I have noticed
>>that when you set font sizes you can set them in whole numbers only but you
>>cannot set a font size of say 6.5
>>
>>Is there a work-around for this?
>
>One thing I can think of right offhand is to use a different font that gets
>you close to the point size or wrapping you want.

An alternative approach... Delegate display and printing to html Browser with 
style sheets. I am starting to use this more and more with temp files deleted 
on close. It's cross platform, font/size etc definable, deals with page 
breaks and paper sizes etc, and with boiler-templates stored as a customProperties 
quite straightforward to implement.

0.02p

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


[ANN] revJournal articles

2004-04-22 Thread Sarah Reichelt
I have recently posted two articles to revJournal 
 which may be of interest.

The first is a tutorial showing how to use Revolution to download 
information from a web page, format it and use it as an interface to 
further web pages. The examples creates a reader for MacAddict forums, 
which was inspired by an article in a recent MacAddict magazine showing 
how to do the same thing using RealBasic.

The latest article shows how to use Script Colorization and formatting 
to detect script errors. This may be especially useful for beginners or 
recent converts from another language.

I don't usually announce such things on the list, but revJournal has 
gone a bit quiet lately, so after some encouragement from Richard 
Gaskin, I decided to try and "rev" things up a bit :-)

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Print cards with headers

2004-04-22 Thread Sarah Reichelt
I think I'd use the form "print card into ". It takes some 
twiddling but it can do almost anything. The basic idea would be:

create a stack to hold your header stuff
snip

When you have a full page, issue:
print break
which forces a page break and sends that page to a print record. Keep 
looping until all cards are done. Then issue:
close printing

which actually sends the print job to the printer.

Tedious, but powerful.

Wow - I never realized that print card into rect was so powerful! I 
have used it put only to print a single card into a single page. Now 
that I know you can use it to build up a complete report, the sky is my 
limit!
Thanks very much,
Sarah

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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Sarah Reichelt
I made a little stack that will help people here install MC command 
line engine and LibCGI on a remote server via FTP.   I am having 
problems with the MKDIR command, my lukemftpd says it does not 
understand the command. used like this:

libURLftpCommand("MKDIR stacks" )

the stack is able to upload MC engine and set the correct permission. 
It also uploads LibCGI and sets the perms, but I cannot create stacks 
folder.

If you try to upload a file to a nonexistent folder, the folder will be 
created for you automatically.

Sarah

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


Re: Ports, servers and interfaces: not possible :(

2004-04-22 Thread Dar Scott
On Thursday, April 22, 2004, at 06:47 PM, David Bovill wrote:

That is the worry amongst others I believe. filtering out the IP 
address is not going to be secure enough I fear :( So I guess it is 
not possible then?
I can't think of a way except for controlling the firewall.

Some time ago I suggested an enhancement that would allow an 'accept' 
to specify one of the computer's IP addresses to listen on.  I see no 
indication that such an enhancement is coming (I don't even remember if 
I moved it to bugzilla, when bugzilla came), but it might be that such 
a feature would allow what you want, if it would allow listening on 
127.0.0.1.

But of the real and what we have now...  I come up short.

Dar Scott

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


Re: Ports, servers and interfaces: not possible :(

2004-04-22 Thread Dar Scott
On Thursday, April 22, 2004, at 06:47 PM, David Bovill wrote:

The aim is to run rev as a daemon on a public internet server...
Then you probably have a firewall.  Block it there.

Dar Scott

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


Re: Using font sizes other than whole numbers

2004-04-22 Thread Scott Rossi
Recently, "Bill" wrote:

>>> I am still struggling with the attempt to print government forms with RunRev
>>> the same as I do with Hypercard and nine to five reports. I have noticed
>>> that when you set font sizes you can set them in whole numbers only but you
>>> cannot set a font size of say 6.5
>>> 
>>> Is there a work-around for this?
>> 
>> One thing I can think of right offhand is to use a different font that gets
>> you close to the point size or wrapping you want.
> 
> As government forms are well government forms there is not much allowance
> for different fonts nor different font sizes. They really don't take jokes
> very well either.

It's no joke.  There are umpteen variations of Helvetica and Times (two of
most government-suited fonts there are) that, depending on the weight/style,
may allow you to approximate the appearance of a half point one way or the
other.  If you have to distribute your documents and rely on what's
available on target machines, you don't have many options here.

Other than creating a custom font, I really don't know of any other
workarounds.

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: Problems with 'Launch with '

2004-04-22 Thread JonathanC
"tuviah snyder" <[EMAIL PROTECTED]> wrote on Tue, 20 Apr 2004 22:15:44 
-0400:
> >This has got to be a BUG, right?
> Yes and one that was fixed. Rev now uses launch services. Are you using 
2.2?
> 
> Tuviah

I almost missed your reply, Tuviah. It got stuck to the end of Message 1 
of use-revolution Digest, Vol 7, Issue 121.
No, I'm still using Rev 2.1. However, from what I've been reading on this 
list, I get the impression that a number of things that used to work in 
2.1 stopped working in 2.2, which is why I haven't rushed to upgrade. 

Maybe I'll download 2.2, but keep 2.1, just in case. :-)

Jonathan Cooper
Manager of Information / Website
Art Gallery of New South Wales
Sydney, Australia
http://www.artgallery.nsw.gov.au
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: remotely controlled RunRev?

2004-04-22 Thread Erik Hansen

--- Gregg <[EMAIL PROTECTED]> wrote:
> We use a KeySpan Digital Media Remote (actually
> we use their receiver
> and have a custom-built remote control). On
> Macs running OSX.
> 
> We had used the function keys as the method of
> passing the codes
> to our applications, but Apple has usurped
> enough of these that
> we moved over to using Option-keys.
<<
Includes "key maps" for PowerPoint, iTunes,
Windows Media Player, RealPlayer, WinAmp, Music
Match, QuickTime player, DVD players and other
popular applications
>>

so you can control any video on the
computer's screen or wherever else it is sent.

this is fantastic! tanks for duh tip.

maybe you don't HAVE to have Windows XP Media.
come to think of it, the XP Media remote would
be much more limited. it probably just runs
videos, while Keyspan lets you run all of your
RunRev visuals AND video. like Rodger Rabbit!

thanks again,

Erik Hansen

=
[EMAIL PROTECTED]http://www.erikhansen.org




__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Ports, servers and interfaces: not possible :(

2004-04-22 Thread David Bovill
Dar Scott wrote:

You can close down the port from the outside with a local firewall.


The aim is to run rev as a daemon on a public internet server...

Brian Yennie's suggestion is simple and clean.  It is what I do for a 
simple filter.  Well, I'd parse out the ip address instead of using 
peerAddress(), but I might be missing something; peerAddress() might 
be just as fast.

If you are worried about DoS, then you might want to also shut down 
the accept for a short period.
That is the worry amongst others I believe. filtering out the IP address 
is not going to be secure enough I fear :( So I guess it is not possible 
then?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Using font sizes other than whole numbers

2004-04-22 Thread Bill
On 4/22/04 6:18 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Recently, "Bill"  wrote:
> 
>> I am still struggling with the attempt to print government forms with RunRev
>> the same as I do with Hypercard and nine to five reports. I have noticed
>> that when you set font sizes you can set them in whole numbers only but you
>> cannot set a font size of say 6.5
>> 
>> Is there a work-around for this?
> 
> One thing I can think of right offhand is to use a different font that gets
> you close to the point size or wrapping you want.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia

As government forms are well government forms there is not much allowance
for different fonts nor different font sizes. They really don't take jokes
very well either.

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


Re: char(4) not replaceable?

2004-04-22 Thread Sannyasin Sivakatirswami
That does help, a lot... I was kind of coming to that conclusion after 
doing my home work with the Rev docs and reading all the unicode 
entries and testing a number of the onboard rev unicode functions. But 
it still didn't get me from a to b

Here's the challenge.

If the clipboard from InDesign contains a two byte character and when I 
paste it into Rev (or BBEdit for that matter) and it appears in Osaka 
as a Japanese character, I think we know we have a two byte character. 
Why it looks one way InDesign and another way in Rev ...don't know...

In order to "downsize" that two-byte character to a suitable 0-127 char 
equivalent string (In this context which is lang:English alpha:Roman, I 
want ALL text to be super dumb and pass painlessly through any and all 
future user agents in any hardware/software context) how do I do that?

e.g. our editors use some odd glyph in InDesign and our web guy is 
repurposing this for the web and he pastes it into my little web pager 
rev app, and sees wierd characters... In theory, if I knew what the two 
values were, what I usually do is, in the background, clean it first

put char(26) into tStringToReplace
replace tStringToReplace with quote in tIncomingText
so he never see anything but 1-127 from the start.

So challenge is: find any way to, programatically, identify
a) that an incoming character *is* two-byte and
b) if it is, then to know what it is and replace it with  lo-ascii 
range equivalent.

If it could be translated would it look like char(204,218)  or what? 
Then, do you cat the two?

put char(204) & char(218) into tStringToReplace
replace tStringToReplace with "Y"
 ## where this could be some two-byte character "Y" with marks above it 
of some kind

I know if I actually paste some wierd string into the script editor, 
assuming I know for sure what it's equivalent is... this does work:

replace "[paste 2-byte char here]" with "sh"

but, i won't always know what the incoming wierd character is...  Also, 
since examining every single incoming char might slow operations down 
considerably... I might just let the user fix these manually: so I need 
at least for the user to be able to select the two-byte character in a 
rev field and then have a script that will examine the selected chunk 
and do the necessary replacement. This could work for small articles in 
our magazine, but I'm about to embark on repurposing 1000 page books 
from InDesign to web so I'll like to get a better handle on this from 
inside Rev.

I already have a matrix for HTML entities that looks like this:

Ä   A
Å   A
Ç   Ch
É   E
Ñ   N
etc. (with every possible >127 character in the fonts in use)

So, if I could identify the two-byte characters I would just extend 
this...

Sannyasin Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org
On Apr 21, 2002, at 1:18 PM, Brian Yennie wrote:

Sannyasin,

I don't know if this is something you already have a handle on, but 
the first thing to know about Unicode is that each character is _two_ 
bytes instead of one, so some of this weird pasting behavior happens 
because the receiving application treats the two bytes as two 
consecutive characters.

The reason why, most likely, you think you are getting a valid ASCII 
number but not seeing a valid ASCII character is because you are 
actually testing the charToNum() of a two character string- and 
charToNum() only considers the first character.

For example, charToNum("apple") is the same as charToNum("a"), even 
though they are obviously different strings to the human eye.

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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Mark Wieder
Dave-

Thursday, April 22, 2004, 1:34:14 PM, you wrote:

DC> If you are doing a lot with FTP, you might want to read rfc 959
DC> (). It's not fun reading, but
DC> it does contain a list and description of the standard FTP commands.

Thanks for the pointer. I knew I'd seen that around somewhere.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: No experts out there :) Ports, servers and interfaces.

2004-04-22 Thread Dar Scott
On Thursday, April 22, 2004, at 04:09 PM, David Bovill wrote:

David Bovill wrote:

Been taking a look at the code Pierre (Hi...) posted for running Rev 
as a server so it can accept messages from a CGI process written in a 
language such as php

Using accept connections is there any way to restrict the connections 
to come from localhost (ie a particular interface)?

Should I use:

open socket to "127.0.0.1:732" with message "newconnect"

Rather than accept?
No.  Revolution uses the sockets model of TCP/IP passive-open which 
requires a wide open listener that spawns off connections.  This is 
done with accept.

You can close down the port from the outside with a local firewall.

Brian Yennie's suggestion is simple and clean.  It is what I do for a 
simple filter.  Well, I'd parse out the ip address instead of using 
peerAddress(), but I might be missing something; peerAddress() might be 
just as fast.

If you are worried about DoS, then you might want to also shut down the 
accept for a short period.

Dar Scott



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


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread Dar Scott
On Thursday, April 22, 2004, at 11:51 AM, Ken Ray wrote:

  put the number of items of "Ken,Tom,Dar,"

--> 3
Right you are.

I'd add that, though this can be confusing, it does have a benefit.

A delimiter at the end allows an empty list of items to be distinct 
from a list of one item that is empty.  That is, it allows empty items 
and an empty list to be represented.

If items are never empty, then the between-style will work.

If they can be, then the after-style might be better.

Revolution counts items (and lines) in a way that works for both 
situations.

Even so, a comma at the end does look silly.

Dar Scott

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


No experts out there :) Ports, servers and interfaces.

2004-04-22 Thread David Bovill
David Bovill wrote:

Been taking a look at the code Pierre (Hi...) posted for running Rev 
as a server so it can accept messages from a CGI process written in a 
language such as php

Using accept connections is there any way to restrict the connections 
to come from localhost (ie a particular interface)?

Should I use:

open socket to "127.0.0.1:732" with message "newconnect"

Rather than accept? 


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


Re: International woes

2004-04-22 Thread Christopher Mitchell
On Apr 22, 2004, at 10:22 AM, Friedrich F. Grohmann wrote:

Christopher Mitchell remarked:

Ouch, I didn't pay attention to the punctuation...
Mellel seems to get the punctuation right.  Probably helpful that it is 
written by Israelis.
Mail.app gets it right also... you can flip keyboards and if you enter 
a period and then enter another character, the period gets thrown to 
the left end of the string.


... this is
not just a revolution thing, and not just a particular font thing...
Then what is it for heaven's sake?
It depends on how the app implements text services, and I'm not 
thinking most implement it in a useful way.  Mellel's engine is, if I 
recall right from support responses, not using Apple's, but I would 
guess that Apple Mail is.  I really don't know, but it is frustrating.

chris.

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


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread J. Landman Gay
On 4/22/04 11:06 AM, Klaus Major wrote:

Hi Jaqueline,

On 4/22/04 8:53 AM, Thomas McGrath III wrote:

Is this true?


There's an exception for a one-line string with a trailing return. I.e.:

 this is line one 

Which returns "1" as the number of lines.


thank you, that explains much :-)

But then, on the other hand, this should not happen in a list field:

1
2
3
..empty line
Click line 4 (!) and "the hilitedlines of fld 1" returns 4,
but "the num of lines of fld 1" returns 3 ???
And
delete line 4 of fld 1; put the num of lines of fld 1
still returns 3 ???
Isn't this a bit incosistent?
Maybe, but I think it is due to the way list fields work. List field 
objects count carriage returns exclusively; the engine is smarter than 
that when dealing with variables and actually counts real lines.

--
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: Setting font sizes

2004-04-22 Thread Jan Schenkel
--- Bill <[EMAIL PROTECTED]> wrote:
> I am still struggling with the attempt to print
> government forms with RunRev
> the same as I do with Hypercard and nine to five
> reports. I have noticed
> that when you set font sizes you can set them in
> whole numbers only but you
> cannot set a font size of say 6.5
> 
> Is there a work-around for this?
> 

Just a weird idea : how about making everything twice
its normal size, and setting the printScale to 50 %

Hope this helped,

Jan Schenkel.

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




__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Setting font sizes

2004-04-22 Thread Scott Rossi
Recently, "Bill"  wrote:

> I am still struggling with the attempt to print government forms with RunRev
> the same as I do with Hypercard and nine to five reports. I have noticed
> that when you set font sizes you can set them in whole numbers only but you
> cannot set a font size of say 6.5
> 
> Is there a work-around for this?

One thing I can think of right offhand is to use a different font that gets
you close to the point size or wrapping you want.

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: help with ftp commands. (CGI related!)

2004-04-22 Thread Dave Cragg
At 5:22 pm -0300 22/4/04, Andre Garzia wrote:

Thank you very much! Does all FTP commands are limited to 
three letters?
Most (all??) of them are either three or four letters. I don't know 
of any with more than four, except for the SITE commands (e.g. SITE 
CHMOD) which are not strictly speaking ftp commands, but server 
specific extensions.

If you are doing a lot with FTP, you might want to read rfc 959 
(). It's not fun reading, but 
it does contain a list and description of the standard FTP commands.

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


Setting font sizes

2004-04-22 Thread Bill
I am still struggling with the attempt to print government forms with RunRev
the same as I do with Hypercard and nine to five reports. I have noticed
that when you set font sizes you can set them in whole numbers only but you
cannot set a font size of say 6.5

Is there a work-around for this?

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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Andre Garzia
On Apr 22, 2004, at 5:17 PM, Dave Cragg wrote:

The ftp command you need is "MKD" and not "MKDIR".

Cheers
Dave
Dave,

Thank you very much! Does all FTP commands are limited to three 
letters?

Cheers
Andre



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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Dave Cragg
At 3:22 pm -0300 22/4/04, Andre Garzia wrote:
Hi Folks,

I made a little stack that will help people here install MC command
line engine and LibCGI on a remote server via FTP.   I am having
problems with the MKDIR command, my lukemftpd says it does not
understand the command. used like this:
libURLftpCommand("MKDIR stacks" )

the stack is able to upload MC engine and set the correct
permission. It also uploads LibCGI and sets the perms, but I cannot
create stacks folder.
The ftp command you need is "MKD" and not "MKDIR".

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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Jim
On Apr 22, 2004, at 1:22 PM, Andre Garzia wrote:

the stack is able to upload MC engine and set the correct permission. 
It also uploads LibCGI and sets the perms, but I cannot create stacks 
folder.

I would suggest logging in with Fetch (or maybe another FTP client), 
and open the "Show Transcript" window.

In that program, manually create a folder and see what commands are 
being sent to and from Fetch in the transcript window. Assuming it 
allows Fetch to create a new folder, you should have your syntax. Look 
for any other commands sent just before the MKDIR line.

Jim

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


Re: help with ftp commands. (CGI related!)

2004-04-22 Thread Andre Garzia
On Apr 22, 2004, at 3:30 PM, Mark Wieder wrote:

Just a guess, but try lowercase "mkdir".
thanks mark, but that was my first guess too...

cheers
andre

--
-Mark Wieder
--
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: help with ftp commands. (CGI related!)

2004-04-22 Thread Mark Wieder
Andre-

Thursday, April 22, 2004, 11:22:32 AM, you wrote:

AG> I made a little stack that will help people here install MC command
AG> line engine and LibCGI on a remote server via FTP.   I am having 
AG> problems with the MKDIR command, my lukemftpd says it does not 
AG> understand the command. used like this:

AG> libURLftpCommand("MKDIR stacks" )

Just a guess, but try lowercase "mkdir".

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


help with ftp commands. (CGI related!)

2004-04-22 Thread Andre Garzia
Hi Folks,

I made a little stack that will help people here install MC command 
line engine and LibCGI on a remote server via FTP.   I am having 
problems with the MKDIR command, my lukemftpd says it does not 
understand the command. used like this:

libURLftpCommand("MKDIR stacks" )

the stack is able to upload MC engine and set the correct permission. 
It also uploads LibCGI and sets the perms, but I cannot create stacks 
folder.

The stack is also able to create a .cgi file for any rev stack and 
upload both and set the permissions I call it CGI-Tool stack, it 
will be release as soon as I am able to create folders right.

some photos available from http://www.soapdog.org/blog

Cheers
Andre
--
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: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread Ken Ray
>> The line count will always be the number of return characters + 1, as
>> it is assumed that there is data both before and after a return 
>> character .
>
> On 4/22/04 8:53 AM, Thomas McGrath III wrote:
> 
> > Is this true?
> 
> There's an exception for a one-line string with a trailing 
> return. I.e.:
> 
>   this is line one 
> 
> Which returns "1" as the number of lines.

Sorry, Tom, that's not true. If you end a string with a delimiter, you get
the same number of lines (or items if you use ",") as if you hadn't included
the delimiter.

Example:

  put the number of lines of ("Hello"&cr&"Goodbye"&cr)

--> 2

  put the number of items of "Ken,Tom,Dar,"

--> 3

HTH,

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



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


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Klaus Major
Hi David,

Hi,

I have done some more digging and it seems that this is the case:

The "Stack" (Dialog) I am talking about is actually a Sub-Stack. If I 
make it a main stack then it works!

So, my question now is, how can I make this work on a sub-stack? I 
don't care if the Main Stack
and all it's sub-stacks are saved, but if the cancel button is 
pressed, I just want the controls in the
model to be set to the vales they had when the modal was opened.
Hmmm, actually that SHOULD be the case, if the "destroystack" of that 
stack is true...
Is it?

Thanks again
Dave
Regards

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


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread Klaus Major
Hi Jaqueline,

On 4/22/04 8:53 AM, Thomas McGrath III wrote:

Is this true?
There's an exception for a one-line string with a trailing return. 
I.e.:

 this is line one 

Which returns "1" as the number of lines.
thank you, that explains much :-)

But then, on the other hand, this should not happen in a list field:

1
2
3
..empty line
Click line 4 (!) and "the hilitedlines of fld 1" returns 4,
but "the num of lines of fld 1" returns 3 ???
And
delete line 4 of fld 1; put the num of lines of fld 1
still returns 3 ???
Isn't this a bit incosistent?

Regards

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


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread J. Landman Gay
On 4/22/04 8:53 AM, Thomas McGrath III wrote:

Is this true?
There's an exception for a one-line string with a trailing return. I.e.:

 this is line one 

Which returns "1" as the number of lines.


i did not know that. I didn't even think about that before.

This might explain some behaviors I have experienced before. HHmmm

Tom

On Apr 22, 2004, at 8:30 AM, Mark Smith wrote:

The line count will always be the number of return characters + 1, as 
it is assumed that there is data both before and after a return 
character .


Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




--
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: International woes

2004-04-22 Thread Friedrich F. Grohmann
Christopher Mitchell remarked:

>Mellel is, indeed, first class for Hebrew.  I am still unsure why it is 
>so difficult to include a right to left functionality, even if by a 
>simple script, to get the letters AND words AND punctuation to come in 
>the right order.

Ouch, I didn't pay attention to the punctuation... 

>... this is 
>not just a revolution thing, and not just a particular font thing...

Then what is it for heaven's sake? 

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


Re: How do I Create a Custom Property, part 19,214,651.5 B23

2004-04-22 Thread Klaus Major
Hi Mark,

Dave, if we see the return character as a divider or separator rather 
than a terminator,
it all makes a bit more sense, I think. The line count will always be 
the number of return
characters + 1, as it is assumed that there is data both before and 
after a return character .
put "1" & CR & "2" & CR & "3" into fld 1

-> 3 lines, but only 2 CRs...

But how comes, what i explained yesterday?

This is in fld 1 (the result of your script)

line1
line2
line3
...an empty line 4!!!
But the linecount returns 3?!

Now, if i:
"set the yadda of this cd to fld 1"
i have a customproperty "yadda" with
4 (FOUR) lines and the last one is empty, just like the field...
But if i:
"set the customkeys of this cd to fld 1"
i will end with 3 "THREE" customkeys and NOT with an empty one as I 
really exspected!!!
...
Another test in that field, now set to listbehaviour!

I can select the empty line 4!

put the num of lines of fld 1 -> 3

DRUMM ROL:

delete line 4 of fld 1

Now i cannot select the empty line 4 anymore, since it is GONE!!!???

Can anyone please give a clue about this inconsistency (is it?)
This is still puzzling me :-)



Regards

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


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread Thomas McGrath III
Is this true?

i did not know that. I didn't even think about that before.

This might explain some behaviors I have experienced before. HHmmm

Tom

On Apr 22, 2004, at 8:30 AM, Mark Smith wrote:

The line count will always be the number of return characters + 1, as 
it is assumed that there is data both before and after a return 
character .
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Thomas McGrath III
David,

To do this from a substack you need to be more specific.

Try:

on mouseUp
save stack "MainStackNameHere"
close stack "MainStackNameHere"
end mouseUp
I do these 'important' things with full names and full path names etc.

That should do it for you.

Tom

On Apr 22, 2004, at 7:08 AM, David Burgun wrote:

In the Script for the OK button I have the following:

on mouseUp
save this stack
close this stack
end mouseUp

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: remotely controlled RunRev?

2004-04-22 Thread Gregg
We use a KeySpan Digital Media Remote (actually we use their receiver
and have a custom-built remote control). On Macs running OSX.

We had used the function keys as the method of passing the codes
to our applications, but Apple has usurped enough of these that
we moved over to using Option-keys.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Klaus Major
Hi David,

Hi,

I know I could save the setting somewhere and restore them when Cancel 
is pressed, but isn't there another way?
I have many hundreds of controls in a large number of dialog boxes and 
to save them all manually will be a lot of work.
Could I save the whole (sub-)stacks/cards at a time and restore them 
when Cancel is pressed?
Any tips on doing this would be greatly appreciated!
There have been several hints on this in the original thread...

OK, you don't see your stack as something that could be called 
"preferences" and thus
you did not like my first proposal... (To store any prefs-info in the 
"prefs"-folder of the user...)

Actually one could call that stack a "document" and the ideal would 
probably be, to ask the user
where he wants to save it, right?!

But to do this you suggested to clone that (main?) stack to be able to 
save it, since it is part
of your standalone, which can cause trouble, too...

Someone suggested to make that stack NOT part of the standalone, so you 
could save that stack...
But looks like you did not like this idea either...

Here is another suggestion that will work fine with the "prefs-folder" 
function, mentioned in one of my earlier posts...

The concept:

Put the stack that you want to save into a customproperty of your 
"splash-screen"-stack or whatever
stack you build your standalone from!
NO problems compared to "clone stack xyz" ;-)

Then on startup you can check if there is that special file in the 
prefs-folder...

If yes, open that stack :-)

If no, "put the myUserStack of this stack into url("binfile:" & 
prefsfolder()...") and THEN open that stack :-)

Works fine, noone will ever know, everyone is happy, bring your kids :-D
I never had problems with it!
It also eliminates the possible problem that you don't have 
write-permissions in the application folder
on some platforms, if not logged in as admin!

OK, and here is how to do it...

1. To import your stack into a customproperty called myUserStack:

set the myUserStack of stack xyz to 
url("binfile:Path/to/your/stack.rev")

Save stack xyz and that's it...

2. To check, if the file exists, and spit out the customproperty if not:

on xyz
   if there is NOT a file (prefs_folder() & "name_of_file_here") then
 put the myUserStack of stack xyz intoto url("binfile:" & 
prefsfolder() & "name_of_file_here")
  end if
  go stack (prefs_folder() & "name_of_file_here")
end xyz

Et voila, done :-)

Once the stack is open, you can refer to it by its real name and not 
the filename anymore...

And then when needed you can simply:

save stack "real name of the stack here"

Does that sound a bit more useful to you?

It's not so much the leanring curve that's getting me down!
It's the lack of any concrete answers to things that I know are 
possible.
Sometimes there are nothing but "choices", more or less satisfying... 
;-)
But no "ready to use" solutions...

I've been led down so many blind all allies it's untrue!
Hey, the sun is shining (at least here in germany), so put a smile on 
your face :-)

When i dived into SuperCard/MetaCard/Revolution a couple of years ago, 
i did not have
internet access at all, so i couldn't participate in this extremely 
nice and helpful list!

So take it easy ;-)

Thanks a lot
Dave
Regards

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


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Björnke von Gierke
On Donnerstag, Apr 22, 2004, at 13:08 Europe/Zurich, David Burgun wrote:

...
Is this supposed to happen? Is this a bug in the RunRev (v2.2 running 
MacOS Classic and X) App?  I've played around with the destroyStack 
and destroyWindow properties, they don't seem to do anything.

As far as I can tell, I've done everything that people on this list 
have suggested I do in order to get this to work, and it just plain 
doesn't and now I don't know where else to turn...

If someone could please just explain how to do this simple operation 
I'd would be eternally grateful!
A stack retains its values when:
1. It is not closed
2. It is closed and saved
As you do not save, the stack must actually not be closed!
And you found the reason for that already. A substack remains in memory 
even when it is closed, as long as the main stack is not closed. Same 
goes the other way around. Thus to not save your changes you must close 
(using the destroystack property) all stacks in the same stack file.

More on this in these Documentation entries:
About... main stacks, substacks, and the organization of stack files
About windows palettes, and dialog boxes
mainStack property
openStacks function
revLoadedStacks function
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I Create a Custom Property, part 19,214,651

2004-04-22 Thread Mark Smith
Dave, if we see the return character as a divider or separator rather 
than a terminator, it all makes a bit more sense, I think. The line 
count will always be the number of return characters + 1, as it is 
assumed that there is data both before and after a return character .

Remember, a  return delimited list in Rev is just one string, not many, 
and I don't know how Rev terminates a string, if at all, but as users, 
we don't have to deal with that.

Cheers,

Mark

On Wednesday, April 21, 2004, at 09:00  pm, 
[EMAIL PROTECTED] wrote:

Well it does make it a bit clearer as to the intention of the CR, but
figure this one! If you have (one) line that does not contain a CR at
the end, then the line count is returned as 1!
If you have a return followed by a line of data that does not have a
CR at the end, then the line count is returned as 2!
So your definition above is not quite true! It looks like what is
counted is CRs + an implied CR is there isn't one at the end of the
last line.
Cheers
Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Robert Brenstein
Hi,

I know I could save the setting somewhere and restore them when 
Cancel is pressed, but isn't there another way?

I have many hundreds of controls in a large number of dialog boxes 
and to save them all manually will be a lot of work.

Could I save the whole (sub-)stacks/cards at a time and restore them 
when Cancel is pressed?

Any tips on doing this would be greatly appreciated!

It's not so much the leanring curve that's getting me down! It's the 
lack of any concrete answers to things that I know are possible. 
I've been led down so many blind all allies it's untrue!

Thanks a lot
Dave
Your logic fails on the following: saving a stack, saves its state to 
disk, so when you open it in another session, the 'new' version is 
used. However, within a current run, whether you save it or not, the 
current status is in memory. Closing the stack does not change 
anything. Its last state remains in memory ready for subsequent use.

It follows that 'cancel' does not magically revert to the state 
before user toggled some checkboxes (as it is in a case of C program 
that call a dialog from DLOG resource). You either need to reset 
things on 'cancel' or preserve new settings on 'save'. I see no way 
around it. Take your peek which is better.

Now, you do not to save them ALL manually. This is what scripting is 
for. You simply loop through your controls and save their state 
programmatically.

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


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread David Burgun
Hi,

I know I could save the setting somewhere and restore them when 
Cancel is pressed, but isn't there another way?

I have many hundreds of controls in a large number of dialog boxes 
and to save them all manually will be a lot of work.

Could I save the whole (sub-)stacks/cards at a time and restore them 
when Cancel is pressed?

Any tips on doing this would be greatly appreciated!

It's not so much the leanring curve that's getting me down! It's the 
lack of any concrete answers to things that I know are possible. I've 
been led down so many blind all allies it's untrue!

Thanks a lot
Dave

you could save that setting into a global or custom prop of the stack
to be recalled on preopenstack...
To prevent some annoying messages - like save stack - try the lockmessages

set the lockmessages to true -- only works in the current handler maybe...

Remember that switching from one language to another always brings
back that learning curve... ;)
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Marian Petrides
uh, make that:

go to stack "ExternalStack.rev"

On Apr 22, 2004, at 7:32 AM, Marian Petrides wrote:

go to stacke ExternalStack.rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread Marian Petrides
Dave

I think this does what you wanted.  I created a Standalone stack (Test 
4 Dave)  with a single button on it whose mouseUp script says simply:

go to stacke ExternalStack.rev

Then I created another stack NOT standalone entitled ExternalStack.rev  
   On Cd 1 of this second stack, I have a check box and two buttons OK 
and Cancel. Those two buttons have the scripts provided in your 
question.

I start by running the standalone( Test 4 Dave) and clicking on the 
button to take me to ExternalStack.rev   In ExternalStack,  When I 
click on the check box then cancel, then rerun Test 4 Dave the check 
box is NOT selected.  On the other hand, if I select the checkbox, then 
hit OK, the stack also quits but when I rerun it as above, the check 
box is selected.

Does this solve your problem?

BTW in a private email, I just sent you the stacks in question (didn't 
want to burden RunRev server), so you can try them out for yourself. 
Hope this helps.

Marian

On Apr 22, 2004, at 7:08 AM, David Burgun wrote:

Hi,

I have done some more digging and it seems that this is the case:

The "Stack" (Dialog) I am talking about is actually a Sub-Stack. If I 
make it a main stack then it works!

So, my question now is, how can I make this work on a sub-stack? I 
don't care if the Main Stack and all it's sub-stacks are saved, but if 
the cancel button is pressed, I just want the controls in the model to 
be set to the vales they had when the modal was opened.

Thanks again
Dave
Hi,

Could some PLEASE just explain this to me! All I want to do is to 
close a stack and sometimes save what the user has done in the GUI and 
other times not, for instance if they Press "OK" then I want to save 
and close the stack, if they press "Cancel" then I want to close the 
Stack but not save it.

This is what I have in a simple modal dialog:

One Checkbox.
One OK Button
One Cancel Button.
In the Script for the OK button I have the following:

on mouseUp
save this stack
close this stack
end mouseUp
In the Script for the Cancel button I have the following:

on mouseUp
close this stack
end mouseUp
I run the app under the IDE and call up the dialog, the checkbox is 
initally off so I set it on and press the cancel button. I then call 
up the dialog again and... The Checkbox is ON Even though 
I have not issued a save stack command!!

Is this supposed to happen? Is this a bug in the RunRev (v2.2 running 
MacOS Classic and X) App?  I've played around with the destroyStack 
and destroyWindow properties, they don't seem to do anything.

As far as I can tell, I've done everything that people on this list 
have suggested I do in order to get this to work, and it just plain 
doesn't and now I don't know where else to turn...

If someone could please just explain how to do this simple operation 
I'd would be eternally grateful!

I need the solution to work while running under the IDE and as a 
standalone (this is a separate Stack, so it CAN be saved to, I am not 
trying to save to a Standalone Stack).



One other thing, on the same subject. How do I stop the IDE putting up 
the "This stack has not been saved" dialog? It seems that *sometimes* 
the stack hasn't been saved (usually when I issue a close from the IDE 
while in "Browse" mode). I am guessing that if I ever get the above 
save/close to work that this will be my next problem, but maybe not.

Anyway, I'm am totally worn out by all this, a sample stack that does 
these very simple things is really needed IMO. As it is, RunRev is 
great but it's taking far too much time to do these simple things. I 
could have coded the whole window in C/C++ by now and had complete 
control over whether or not the data was saved or not. RunRev is 
supposed to be a productivity tool, which it is potentially, but if 
there is no documentation and no samples to work from then it won't be 
adopted very quickly or at all.

Sorry to sound negative and I'll most likely soon recover from it, but 
right now it just seems like an uphill struggle.

Thanks for all your help and advice
Dave


___
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: More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread xbury . cs
you could save that setting into a global or custom prop of the stack
to be recalled on preopenstack...

To prevent some annoying messages - like save stack - try the lockmessages

set the lockmessages to true -- only works in the current handler maybe... 


Remember that switching from one language to another always brings
back that learning curve... ;)
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465




David Burgun <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
22.04.2004 13:08
Please respond to How to use Revolution

 
To: How to use Revolution <[EMAIL PROTECTED]>
cc: 
Subject:More-Save Stack Woes - Could someone PLEASE explain this...

.


Hi,

I have done some more digging and it seems that this is the case:

The "Stack" (Dialog) I am talking about is actually a Sub-Stack. If I 
make it a main stack then it works!

So, my question now is, how can I make this work on a sub-stack? I 
don't care if the Main Stack and all it's sub-stacks are saved, but 
if the cancel button is pressed, I just want the controls in the 
model to be set to the vales they had when the modal was opened.

Thanks again
Dave

Hi,

Could some PLEASE just explain this to me! All I want to do is to 
close a stack and sometimes save what the user has done in the GUI 
and other times not, for instance if they Press "OK" then I want to 
save and close the stack, if they press "Cancel" then I want to close 
the Stack but not save it.

This is what I have in a simple modal dialog:

One Checkbox.
One OK Button
One Cancel Button.

In the Script for the OK button I have the following:

on mouseUp
save this stack
close this stack
end mouseUp

In the Script for the Cancel button I have the following:

on mouseUp
close this stack
end mouseUp

I run the app under the IDE and call up the dialog, the checkbox is 
initally off so I set it on and press the cancel button. I then call 
up the dialog again and... The Checkbox is ON Even though 
I have not issued a save stack command!!

Is this supposed to happen? Is this a bug in the RunRev (v2.2 running 
MacOS Classic and X) App?  I've played around with the destroyStack 
and destroyWindow properties, they don't seem to do anything.

As far as I can tell, I've done everything that people on this list 
have suggested I do in order to get this to work, and it just plain 
doesn't and now I don't know where else to turn...

If someone could please just explain how to do this simple operation 
I'd would be eternally grateful!

I need the solution to work while running under the IDE and as a 
standalone (this is a separate Stack, so it CAN be saved to, I am not 
trying to save to a Standalone Stack).



One other thing, on the same subject. How do I stop the IDE putting 
up the "This stack has not been saved" dialog? It seems that 
*sometimes* the stack hasn't been saved (usually when I issue a close 
from the IDE while in "Browse" mode). I am guessing that if I ever 
get the above save/close to work that this will be my next problem, 
but maybe not.

Anyway, I'm am totally worn out by all this, a sample stack that does 
these very simple things is really needed IMO. As it is, RunRev is 
great but it's taking far too much time to do these simple things. I 
could have coded the whole window in C/C++ by now and had complete 
control over whether or not the data was saved or not. RunRev is 
supposed to be a productivity tool, which it is potentially, but if 
there is no documentation and no samples to work from then it won't 
be adopted very quickly or at all.

Sorry to sound negative and I'll most likely soon recover from it, 
but right now it just seems like an uphill 
struggle.

Thanks for all your help and advice
Dave



___
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





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
__

More-Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread David Burgun
Hi,

I have done some more digging and it seems that this is the case:

The "Stack" (Dialog) I am talking about is actually a Sub-Stack. If I 
make it a main stack then it works!

So, my question now is, how can I make this work on a sub-stack? I 
don't care if the Main Stack and all it's sub-stacks are saved, but 
if the cancel button is pressed, I just want the controls in the 
model to be set to the vales they had when the modal was opened.

Thanks again
Dave
Hi,

Could some PLEASE just explain this to me! All I want to do is to 
close a stack and sometimes save what the user has done in the GUI 
and other times not, for instance if they Press "OK" then I want to 
save and close the stack, if they press "Cancel" then I want to close 
the Stack but not save it.

This is what I have in a simple modal dialog:

One Checkbox.
One OK Button
One Cancel Button.
In the Script for the OK button I have the following:

on mouseUp
save this stack
close this stack
end mouseUp
In the Script for the Cancel button I have the following:

on mouseUp
close this stack
end mouseUp
I run the app under the IDE and call up the dialog, the checkbox is 
initally off so I set it on and press the cancel button. I then call 
up the dialog again and... The Checkbox is ON Even though 
I have not issued a save stack command!!

Is this supposed to happen? Is this a bug in the RunRev (v2.2 running 
MacOS Classic and X) App?  I've played around with the destroyStack 
and destroyWindow properties, they don't seem to do anything.

As far as I can tell, I've done everything that people on this list 
have suggested I do in order to get this to work, and it just plain 
doesn't and now I don't know where else to turn...

If someone could please just explain how to do this simple operation 
I'd would be eternally grateful!

I need the solution to work while running under the IDE and as a 
standalone (this is a separate Stack, so it CAN be saved to, I am not 
trying to save to a Standalone Stack).



One other thing, on the same subject. How do I stop the IDE putting 
up the "This stack has not been saved" dialog? It seems that 
*sometimes* the stack hasn't been saved (usually when I issue a close 
from the IDE while in "Browse" mode). I am guessing that if I ever 
get the above save/close to work that this will be my next problem, 
but maybe not.

Anyway, I'm am totally worn out by all this, a sample stack that does 
these very simple things is really needed IMO. As it is, RunRev is 
great but it's taking far too much time to do these simple things. I 
could have coded the whole window in C/C++ by now and had complete 
control over whether or not the data was saved or not. RunRev is 
supposed to be a productivity tool, which it is potentially, but if 
there is no documentation and no samples to work from then it won't 
be adopted very quickly or at all.

Sorry to sound negative and I'll most likely soon recover from it, 
but right now it just seems like an uphill 
struggle.

Thanks for all your help and advice
Dave


___
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


Save Stack Woes - Could someone PLEASE explain this...

2004-04-22 Thread David Burgun
Hi,

Could some PLEASE just explain this to me! All I want to do is to 
close a stack and sometimes save what the user has done in the GUI 
and other times not, for instance if they Press "OK" then I want to 
save and close the stack, if they press "Cancel" then I want to close 
the Stack but not save it.

This is what I have in a simple modal dialog:

One Checkbox.
One OK Button
One Cancel Button.
In the Script for the OK button I have the following:

on mouseUp
save this stack
close this stack
end mouseUp
In the Script for the Cancel button I have the following:

on mouseUp
close this stack
end mouseUp
I run the app under the IDE and call up the dialog, the checkbox is 
initally off so I set it on and press the cancel button. I then call 
up the dialog again and... The Checkbox is ON Even though 
I have not issued a save stack command!!

Is this supposed to happen? Is this a bug in the RunRev (v2.2 running 
MacOS Classic and X) App?  I've played around with the destroyStack 
and destroyWindow properties, they don't seem to do anything.

As far as I can tell, I've done everything that people on this list 
have suggested I do in order to get this to work, and it just plain 
doesn't and now I don't know where else to turn...

If someone could please just explain how to do this simple operation 
I'd would be eternally grateful!

I need the solution to work while running under the IDE and as a 
standalone (this is a separate Stack, so it CAN be saved to, I am not 
trying to save to a Standalone Stack).



One other thing, on the same subject. How do I stop the IDE putting 
up the "This stack has not been saved" dialog? It seems that 
*sometimes* the stack hasn't been saved (usually when I issue a close 
from the IDE while in "Browse" mode). I am guessing that if I ever 
get the above save/close to work that this will be my next problem, 
but maybe not.

Anyway, I'm am totally worn out by all this, a sample stack that does 
these very simple things is really needed IMO. As it is, RunRev is 
great but it's taking far too much time to do these simple things. I 
could have coded the whole window in C/C++ by now and had complete 
control over whether or not the data was saved or not. RunRev is 
supposed to be a productivity tool, which it is potentially, but if 
there is no documentation and no samples to work from then it won't 
be adopted very quickly or at all.

Sorry to sound negative and I'll most likely soon recover from it, 
but right now it just seems like an uphill 
struggle.

Thanks for all your help and advice
Dave


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


Re: Revolution as CGI in OS X

2004-04-22 Thread Terry Vogelaar
J. Landman Gay heeft op donderdag, 22 apr 2004 om 07:11 
(Europe/Amsterdam) het volgende geschreven:

On 4/21/04 6:57 PM, Thomas McGrath III wrote:

THanks J.
But even this below is a bit beyond my understanding at this time. i 
THINK i know about what you are saying here but I could also be way 
off in my understanding as well. I am a novice.
Grab the file I mentioned and I think it will all come clear. 
Basically what I was saying is that you need to copy the Rev engine to 
the server. For most operating systems, you can just use a copy of the 
regular Rev application. On OS X though you need a special version of 
the Rev engine. That engine is called the "Darwin" version and it can 
be downloaded from the RR site (there is a URL in my notes.) The 
Darwin engine isn't normally used for anything other than running CGIs 
on OS X.

There is a "cgi" folder on most servers which is used to hold CGI 
scripts. My notes suggest copying the engine to that folder, though 
technically it doesn't have to go there. If you are just starting out 
though, it's easier to keep it there.

My notes do assume that you know a bit about how CGIs work in general, 
so a little Googling on the subject might help if you've never done 
this stuff before.

The first time you get it working, the "cool factor" is palpable.
Jacque,
I must say that your files helped me a lot, both in using RunRev as CGI 
and in using my MacOSX system as a test server to develop my CGIs. I 
may add some notes for the command-line phobics like me.

Firstly I thought I had to install Apache first before I could setup my 
mac as test server. But it was much simpler: I just had to turn it on 
in the system prefs. Maybe quite obvious, but I missed it.

Secondly you wrote that setting permissions is done better in the 
terminal than in the info panels. I found an alternative way: using an 
FTP program like Transmit. I just used "127.0.0.1" (the IP-number that 
means 'this computer') as server name, with my normal OSX name and 
password. That way I could browse to the files and set the permissions 
like I would on a remote server, without using the terminal. I know 
'terminal' doesn't mean 'lethal' for computer users, but it still makes 
me feel uncomfortable :-)

Everyone who ever successfully installed a Perl CGI on a remote server, 
should be able to understand everything you wrote.

Terry

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


Re: remotely controlled RunRev?

2004-04-22 Thread sims
has anyone used a handheld remote
to control RunRev programs?
=
[EMAIL PROTECTED]http://www.erikhansen.org
Not sure what you want to do but the following might be of use if
you have  a Mac, Bluetooth, and a Bluetooth mobile phone:
http://homepage.mac.com/jonassalling/Shareware/Clicker/

note the applescripts on page: 
http://homepage.mac.com/jonassalling/Shareware/Clicker/scripts20/index.html

hth

sims

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