Re: FTP and cross platform issues...

2006-03-23 Thread Dave Cragg

Hi Mark

On 23 Mar 2006, at 00:56, Mark Schonewille wrote:


If you'd like to do a test, I'm working on an FTP client. Contact  
me off-list if you would like to give it a try.


I noticed the above on the list. I wondered if you were planning on  
using the current libUrl routines in your ftp client. The reason I'm  
asking is that I was planning to produce a separate FTP library that  
would duplicate most of  the existing  FTP stuff in libUrl, but also  
add some further features. If this is something that you might be  
interested in, or might help your client app, please let me know,  
especially if you had any requests for additional FTP features not  
currently in libUrl.


Although I've started on the new library (barely), I can't put a  
definite time on its completion right now. But I would like to get  
something completed over the next few weeks.


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


Re: FTP and cross platform issues...

2006-03-23 Thread Dave Cragg
Sorry. My previous post was meant to go directly to Mark. Please  
forget you read it. :-) So you won't be disappointed when nothing  
appears.


I should probably  learn how to use e-mail before messing around with  
libraries.


Dave


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


Re: When closed, does a substack whose destroyStack is true remains in memory ?

2006-03-23 Thread André . Bisseret


Thank you very much Ken for your answers ; I am taking them into 
account immediately :-)


André

Le Wednesday, 22 Mar 2006, à 23:42 Europe/Paris, Ken Ray a écrit :


On 3/22/06 6:32 AM, "André.Bisseret" <[EMAIL PROTECTED]> wrote:


Hi !

As far as a substack is concerned,
from the Doc (on save, close, destroyStack…)
I understand that :
even if its destroyStack property is set to true,
If I save and close this substack while the main stack remains opened,
then this substack remains in memory.


Yes, this is true - actually when you loaded the mainstack, all of its
substacks get loaded into memory automatically and can't be purged 
until the

mainstack itself is closed.


P.S. : by the way, is it a means to check if a closed stack (or
substack) is still in memory ?


Well, as I mentioned above, closed substacks are still in memory if the
mainstack is, so you could check for the mainstack in "the windows" or 
in

"the stacks" to see if it is in memory.

You can also use "the mainstacks" to get a list of stacks that are in
memory.


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




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


Re: FTP and cross platform issues...

2006-03-23 Thread Mark Schonewille

Hi,

Why would you want to use active FTP especially for testing 
purposes? IMHO passive FTP is simpler.


Best,

Mark


John-



libURLSetFTPMode "passive"



If you're testing things you might want to set both the server and the
client NOT to use passive mode, and make sure there aren't any
firewalls or routers in the way that might block ports 20 and 21.

Also, if you've got the internal firewall running on the XP box (you
shouldn't) then turn it off.



--

Consultant and Software Engineer
mailto:[EMAIL PROTECTED]
http://www.economy-x-talk.com

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.


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


Re: Syntax Highlighting Routine - Need help

2006-03-23 Thread Arthur Urban
I'm presuming you have massive speed issues? Well, even if you don't, I 
was thinking that maybe it would be best if you called SubHighlight in 
your rawKeyUp handler only for specific key presses like the spacebar or 
return key. That way you are colorizing only after complete words and 
lines have been entered. Just a thought, I don't know how exhaustive you 
need the user feedback to be. :)


Garrett Hylltun wrote:

Rev 2.6.1

Greetings,

I made a routine for checking a FIELD from start to end for html tags, 
then to change their color.  Worked great!  That is with a small html 
file of maybe 4000 characters.  But then I ran a html file that was 
about 28000 characters, and found my routine was not so good after all.


the FIELD handlers;

on rawKeyUp
  SubHighlight
end rawKeyUp

on backspaceKey
  SubHighlight
end backspaceKey

might not be best, but I don't know if there's any other way to keep 
track of the contents of the FIELD, except to check on keyup events.


Here's the sub;

on SubHighlight
  lock screen
  put number of characters of field "fHtmlEditor" into varTotal
  set the textstyle of char 1 to varTotal of field 1 to plain
  put 1 into varCounter
  put 1 into varStartChunk
  put 1 into varEndChunk
  repeat until varStartChunk >= varTotal or varGetOut is 1
put varCounter into field "fStatusBar"
put char varEndChunk to varEndChunk of field 1 into varTemp
put empty into varTagType
if varTemp is "<" then
  put varEndChunk + 3 into varTemp
  put char varEndChunk to varTemp of field 1 into varTemp
  if varTemp is "

Re: FTP and cross platform issues...

2006-03-23 Thread Chipp Walters

Hi John,

What version of Rev are you using? If you're on 2.7 and having trouble 
with FTP uploads, I suggest you contact Dave Cragg and get his 2.7 
libURL patch and try it again. I've had some problems with libURL on 2.7 
and FTP and Dave sent me a patch which fixed it.


best,

Chipp

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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi,

As far as I know (I have asked this question on this list before) and  
according to the documentation, "me" always refers to the object that  
the script is running in.


Are you suggesting I change "me" to "long name of x" just to see if  
it makes a difference or in general?


If you mean in general, then this will mean that a lot of the  
reusability of code that is so good in RunRev will vanish and make  
developing Apps MUCH slower. In fact if I have to do this then I  
would seriously consider not using RunRev anymore.


I have lots of fields that all refer to "me", to change them now  
would take forever and result in a lot of hand-tweaking every time I  
want to re-use a Group.


Here is the problem again, described in simpler terms:

1  StackMain:Card1:ObjectA:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectX:MessageX (via send)
3  StackMain:Card2:ObjectX:MessageX - Put "MessageX" into me and then  
Calls Function StackUtil:PutMessage("MessageY")
4  StackUtil:PutMessage- Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

5  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

In this case the "put" statement at step 5 does NOT put "MessageY"  
into  StackMain:Card2:ObjectY (the object is unchanged), but the  
"put" at step 3 works ok.


However, this does work:

1  StackMain:Card2:ObjectX:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageY")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

3  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

What could be going wrong here? Is it that I am mixing functions and  
handlers?


How can I test to see if the context is the problem?

Any ideas on how to get this working would be greatly appreciated.

Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 02:22, Mark Smith wrote:


Is it a context problem?

It might be worth trying to replace
put "MessageY" into me
with
put "MessageY" into 

I've always thought that 'me' always referred to the control whose  
script it appears in, but that's an assumption, not  necessarily a  
fact...


Mark

On 22 Mar 2006, at 19:14, David Burgun wrote:


Hi,

function ListenForMessages theMessageID,theHanlderLocation

Adds to an Array (stored in a GlobalProperty of StackUtil) as so:

MessageArray[theMessageID] =  theHanlderLocation

If theMessageID is already in the Array and the Location is not  
already in the data part of the array, then it is appended, so the  
array looks like this:


   Key  Data
"MessageX"  ObjectX of Card 2 of Stack "StackMain",ObjectY  
of Card 2 of Stack ""StackMain"


and is called like so:

ListenForMessages("MessageX",the long name of me)


function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a "send" statement) the handler with the name  
theMessageID at the location(s) specified in the data part of the  
array.


As I said the Message handling functions seem to work fine in  
general, but not when PutMessage() is called from within a message  
handler OR when called from a different card that the one that  
called the initial message. Not sure which!


Thanks a lot
All the Best
Dave

On 22 Mar 2006, at 19:02, Mark Smith wrote:


What do these functions do?

Mark

On 22 Mar 2006, at 18:51, David Burgun wrote:


PutMessage()
ListenForMessages()


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

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


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

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


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

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


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


somewhat OT : Rev cgi & Safari

2006-03-23 Thread jbv
Hi list,

I'm using Rev cgi and have a problem debugging a script :
it's a (rather) complex subscription page to a website, with
a sophisticated form and javascript functions, and on the server
side a cgi with a mySQL connection.
Everything works fine except for 1 version of Safari. The agent
information for that version is :
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr-fr) AppleWebKit/312.8
(KHTML, like Gecko) Safari/312.6

in short, some elements of the HTML form are skipped when the
user clicks the submit button...
And to make things even more difficult (to reproduce and correct
the bug, or find a workaround), this seems to happen only
sporadically; i mean that using that specific version of Safari
doesn't systematically lead to the bug...
so I guess it must be a combination of the form structure, the
javascript code and the data entered in the form...
the tricky thing being that when forms elements are skipped, I
have no idea of what were the data entered by users...

I'm not sure what question I should ask now, coz it's hard to
make any diagnosis without careful checking the whole code...

But does anyone have a clue of which version of Safari it is ?

And could anyone provide some good advice about a methodology
to reproduce and track down the problem ?

Thanks,
JB

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


Re: MVC in Rev?

2006-03-23 Thread thierry

Hi Richard ,


may be you would find *interesting* this article based on
a variant of the MVC model.

http://atomicobject.com/media/files/PresenterFirst.pdf

HTH,
thierry



I've been reworking my framework and its data management engine to 
explore ways it can shorten my development time even more.  Since MVC 
is the buzzword du jour, I've been looking into ways of implementing 
MVC in Rev.


[...]
 Richard Gaskin
 Managing Editor, revJournal


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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Update:

I just changed the code so that instead of:

put "MessageY" into me

It now reads:

put "MessageY" into field "FieldY" of group "Y" of card 2 of stack "/ 
Documents/Test/StackMain.rev"


And now the "put" statement works as expected!!!

Can anyone shed some light on this?

I really need to refer to the object without hardcoding it's name  
into the Script, I thought that was what "me" was for?


Is this a bug? If so is there a workaround??

Thanks a lot
All the Best
Dave

Hi,

As far as I know (I have asked this question on this list before) and  
according to the documentation, "me" always refers to the object that  
the script is running in.


Are you suggesting I change "me" to "long name of x" just to see if  
it makes a difference or in general?


If you mean in general, then this will mean that a lot of the  
reusability of code that is so good in RunRev will vanish and make  
developing Apps MUCH slower. In fact if I have to do this then I  
would seriously consider not using RunRev anymore.


I have lots of fields that all refer to "me", to change them now  
would take forever and result in a lot of hand-tweaking every time I  
want to re-use a Group.


Here is the problem again, described in simpler terms:

1  StackMain:Card1:ObjectA:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectX:MessageX (via send)
3  StackMain:Card2:ObjectX:MessageX - Put "MessageX" into me and then  
Calls Function StackUtil:PutMessage("MessageY")
4  StackUtil:PutMessage- Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

5  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

In this case the "put" statement at step 5 does NOT put "MessageY"  
into  StackMain:Card2:ObjectY (the object is unchanged), but the  
"put" at step 3 works ok.


However, this does work:

1  StackMain:Card2:ObjectX:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageY")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

3  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

What could be going wrong here? Is it that I am mixing functions and  
handlers?


How can I test to see if the context is the problem?

Any ideas on how to get this working would be greatly appreciated.

Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 02:22, Mark Smith wrote:


Is it a context problem?

It might be worth trying to replace
put "MessageY" into me
with
put "MessageY" into 

I've always thought that 'me' always referred to the control whose  
script it appears in, but that's an assumption, not  necessarily a  
fact...


Mark

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


Re: Get a handler from a script

2006-03-23 Thread David Burgun


On 22 Mar 2006, at 13:55, Wouter wrote:


Hi David,


On 22 Mar 2006, at 12:53, David Burgun wrote:


Hi,

Nice Script!

There is just one thing I don't understand?

What are the:

get  "/*" & i

Statements for?



/* this is a comment
as is this */function whatever
return "something"
end whatever

This is to force the tokenizing.
The script is parsed line by line.
The first line of the block comment will be eliminated by token 1  
to - 1 of  i
But the first token of  the  second line of the block comment will  
be the first word --> "as"
By adding a "/*" in front of that line the first token will be  
"function"




Thanks a lot!

All the Best
Dave

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


Re: somewhat OT : Rev cgi & Safari

2006-03-23 Thread Martin Baxter

jbv wrote:

Hi list,

I'm using Rev cgi and have a problem debugging a script :
it's a (rather) complex subscription page to a website, with
a sophisticated form and javascript functions, and on the server
side a cgi with a mySQL connection.
Everything works fine except for 1 version of Safari. The agent
information for that version is :
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr-fr) AppleWebKit/312.8
(KHTML, like Gecko) Safari/312.6

in short, some elements of the HTML form are skipped when the
user clicks the submit button...
And to make things even more difficult (to reproduce and correct
the bug, or find a workaround), this seems to happen only
sporadically; i mean that using that specific version of Safari
doesn't systematically lead to the bug...
so I guess it must be a combination of the form structure, the
javascript code and the data entered in the form...
the tricky thing being that when forms elements are skipped, I
have no idea of what were the data entered by users...

I'm not sure what question I should ask now, coz it's hard to
make any diagnosis without careful checking the whole code...

But does anyone have a clue of which version of Safari it is ?

And could anyone provide some good advice about a methodology
to reproduce and track down the problem ?

Thanks,
JB


Don't know about safari versions.
Are you styling the form elements with css at all? I have known this to 
cause serious browser-specific issues in the past.
Are the names of your form elements robust - all safe characters - if 
they are somehow getting encoded by the browser your cgi might not 
recognise them? (A Very Long shot I know, but...)

What kinds of elements go missing? Any pattern?

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


Re: somewhat OT : Rev cgi & Safari

2006-03-23 Thread jbv


>
>
> Don't know about safari versions.
> Are you styling the form elements with css at all? I have known this to
> cause serious browser-specific issues in the past.
> Are the names of your form elements robust - all safe characters - if
> they are somehow getting encoded by the browser your cgi might not
> recognise them? (A Very Long shot I know, but...)
> What kinds of elements go missing? Any pattern?

Martin,

Thanks for your reply...

yes, I use css with all form elements and those that get
skipped are mainly  elements with "onchange"
js code...
basically, the form I use is made of 2 parts :
1- a bunch of text fields, check boxes, radio buttons and
menus, all visible and used to enter data
2- a serie of hidden elements which are the true 
uploaded by clicking on the submit btn - those hidden
elements gather all the data entered by users and are filled
by js functions according to what users select, type and check.

This works fine on IE Mac OS9 & OSX and Win XP, as well
as Firefox Win & Mac OSX and Safari 2.
The previously described problem arises only SOMETIMES on
a previous version of Safari...

JB

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


Re: Weirdness Passing Messages

2006-03-23 Thread Mark Smith
I just set up a slightly simpler version of what you've described,  
and got exactly the same results. I then inserted 'go cd 2 of stack  
"stackMain" into then putMessage handler, just before the 'send to'  
line, and it works as desired,

so it's definitely a context problem. Checking the docs:
-
If the currently executing handler is in the script of the object  
that received the original message, then me is the same as the object  
whose name is returned by the target function. For example, suppose a  
button script contains a mouseDown handler. The value of the target  
function within that mouseDown handler is the same as the name of me:  
the name of the button.


However, if the mouseDown handler is in the card's script instead of  
the button's, me is not the same as the object specified by the  
target. In this case, me is the card, but the target function returns  
the button's name, because the button is the object that first  
received the mouseDown message.



which to my slightly foggy mind suggests that when explicitly 'send'  
ing a message to an object from another object (overiding the message  
path) it might be necessary to use 'the target' rather than 'me'..


so now I've substituted "the target" for "me" in the objects script,  
and the problem seems to be solved. Does that work for you?


Mark

On 23 Mar 2006, at 11:21, David Burgun wrote:


Update:

I just changed the code so that instead of:

put "MessageY" into me

It now reads:

put "MessageY" into field "FieldY" of group "Y" of card 2 of stack  
"/Documents/Test/StackMain.rev"


And now the "put" statement works as expected!!!

Can anyone shed some light on this?

I really need to refer to the object without hardcoding it's name  
into the Script, I thought that was what "me" was for?


Is this a bug? If so is there a workaround??

Thanks a lot
All the Best
Dave

Hi,

As far as I know (I have asked this question on this list before)  
and according to the documentation, "me" always refers to the  
object that the script is running in.


Are you suggesting I change "me" to "long name of x" just to see if  
it makes a difference or in general?


If you mean in general, then this will mean that a lot of the  
reusability of code that is so good in RunRev will vanish and make  
developing Apps MUCH slower. In fact if I have to do this then I  
would seriously consider not using RunRev anymore.


I have lots of fields that all refer to "me", to change them now  
would take forever and result in a lot of hand-tweaking every time  
I want to re-use a Group.


Here is the problem again, described in simpler terms:

1  StackMain:Card1:ObjectA:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectX:MessageX (via send)
3  StackMain:Card2:ObjectX:MessageX - Put "MessageX" into me and  
then Calls Function StackUtil:PutMessage("MessageY")
4  StackUtil:PutMessage- Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

5  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

In this case the "put" statement at step 5 does NOT put "MessageY"  
into  StackMain:Card2:ObjectY (the object is unchanged), but the  
"put" at step 3 works ok.


However, this does work:

1  StackMain:Card2:ObjectX:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageY")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

3  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

What could be going wrong here? Is it that I am mixing functions  
and handlers?


How can I test to see if the context is the problem?

Any ideas on how to get this working would be greatly appreciated.

Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 02:22, Mark Smith wrote:


Is it a context problem?

It might be worth trying to replace
put "MessageY" into me
with
put "MessageY" into 

I've always thought that 'me' always referred to the control whose  
script it appears in, but that's an assumption, not  necessarily a  
fact...


Mark

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

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


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


Re: somewhat OT : Rev cgi & Safari

2006-03-23 Thread Todd Higgins

Hi jbv,



On Mar 23, 2006, at 6:18 AM, jbv wrote:


Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr-fr) AppleWebKit/312.8
(KHTML, like Gecko) Safari/312.6


Based on the user agent information that is  Safari 1.3.2 running on  
Mac OS  X 10.3.9 with the latest security update installed.  You can  
find a chart that details all of the useragent string versions here:


http://developer.apple.com/internet/safari/uamatrix.html

When troubleshooting Safari and webkit issues I recommend this site:

 http://webkit.opendarwin.org/


Regards,

Todd

--
Todd Higgins
[EMAIL PROTECTED]



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


URL 'file:' format

2006-03-23 Thread Graham Samuel
It seems it's dumb question week for me - many of you will wonder how  
I've gone on with RR development for years and not known the answer  
to this one... anyway:


I only work with local text files in my current app, and I've never  
had to use the 'URL' form. However I think it would be convenient to  
do an update of a file using this form, since I want to be able to  
read the contents of a file and then replace the entire contents. The  
'open for update' and 'write to file' commands don't seem to to make  
this very convenient, but of course I may be misreading the docs...  
so I decide to use the form:


 get URL someFileDesignation

... do stuff to 'it'...

put it into URL someFileDesignation

which seems from the docs to be an OK thing to do.

Anyway I tried to create 'someFileDesignation' as

 "file:/C:/MyFirstDirectory/MySecondDirectory/Mydoc.text"

where everything after the "file:/" is a known valid file path (it's  
Windows XP, but of course RR internal format) and this can be proved  
by opening the file in text editor. I've tried putting 0, 1 and 2 '/'  
characters after "file:" but I always get "can't open file". The docs  
are not explicit on this point, and I've run out of guesses. What is  
the format supposed to be? And should I open the file first (I assume  
not, as this isn't mentioned in the docs).


Sorry if everyone else knows the answer, but there it is...

Graham


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

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


Re: Weirdness Passing Messages

2006-03-23 Thread Mark Smith
Scratch that - sorry, I'd left the 'go cd' line in...taking it out,   
using 'the target' also fails.


So, to narrow down the problem,

I made a mainstack - stack "mp" with 2 cards. On card 2 there is a  
field "f1" with the script


on showMessage tm
  beep
  put tm into me
end show message

I then made a substack - stack "mps", with a button, whose script is

on mouseUp
  put "hello" into tm
  send "showMessage tm" to fld "f1" of cd 2 of stack "mp"
end mouseUp

Now, if cd 2 of stack "mp" is the current cd of stack "mp", on  
clicking the button in stack "mps", I hear a beep, and the word  
'hello' appears in fld "f1". So far so good.


However, if cd 1 is the current card of stack "mp", on clicking the  
button in stack "mps", I hear a beep. I then go to cd 2 of stack  
"mp", and fld "f1" is empty...


Inserting "put tm" into the showMessage handler in fld "f1", I click,  
and "hello" appears in the message box, so the parameter is certainly  
getting there. Then inserting "put the target" into the showMessage  
handler, I click, and "field "f1"" appears in the message box, but  
still fld "f1" is empty.


I'm baffled.

Mark


On 23 Mar 2006, at 11:56, Mark Smith wrote:

I just set up a slightly simpler version of what you've described,  
and got exactly the same results. I then inserted 'go cd 2 of stack  
"stackMain" into then putMessage handler, just before the 'send to'  
line, and it works as desired,

so it's definitely a context problem. Checking the docs:
-
If the currently executing handler is in the script of the object  
that received the original message, then me is the same as the  
object whose name is returned by the target function. For example,  
suppose a button script contains a mouseDown handler. The value of  
the target function within that mouseDown handler is the same as  
the name of me: the name of the button.


However, if the mouseDown handler is in the card's script instead  
of the button's, me is not the same as the object specified by the  
target. In this case, me is the card, but the target function  
returns the button's name, because the button is the object that  
first received the mouseDown message.



which to my slightly foggy mind suggests that when explicitly  
'send' ing a message to an object from another object (overiding  
the message path) it might be necessary to use 'the target' rather  
than 'me'..


so now I've substituted "the target" for "me" in the objects  
script, and the problem seems to be solved. Does that work for you?


Mark

On 23 Mar 2006, at 11:21, David Burgun wrote:


Update:

I just changed the code so that instead of:

put "MessageY" into me

It now reads:

put "MessageY" into field "FieldY" of group "Y" of card 2 of stack  
"/Documents/Test/StackMain.rev"


And now the "put" statement works as expected!!!

Can anyone shed some light on this?

I really need to refer to the object without hardcoding it's name  
into the Script, I thought that was what "me" was for?


Is this a bug? If so is there a workaround??

Thanks a lot
All the Best
Dave

Hi,

As far as I know (I have asked this question on this list before)  
and according to the documentation, "me" always refers to the  
object that the script is running in.


Are you suggesting I change "me" to "long name of x" just to see  
if it makes a difference or in general?


If you mean in general, then this will mean that a lot of the  
reusability of code that is so good in RunRev will vanish and make  
developing Apps MUCH slower. In fact if I have to do this then I  
would seriously consider not using RunRev anymore.


I have lots of fields that all refer to "me", to change them now  
would take forever and result in a lot of hand-tweaking every time  
I want to re-use a Group.


Here is the problem again, described in simpler terms:

1  StackMain:Card1:ObjectA:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls  
Handler StackMain:Card2:ObjectX:MessageX (via send)
3  StackMain:Card2:ObjectX:MessageX - Put "MessageX" into me and  
then Calls Function StackUtil:PutMessage("MessageY")
4  StackUtil:PutMessage- Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

5  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

In this case the "put" statement at step 5 does NOT put "MessageY"  
into  StackMain:Card2:ObjectY (the object is unchanged), but the  
"put" at step 3 works ok.


However, this does work:

1  StackMain:Card2:ObjectX:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageY")
2  StackUtil:PutMessage - Calls  
Handler StackMain:Card2:ObjectY:MessageY (via send)

3  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

What could be going wrong here? Is it that I am mixing functions  
and handlers?


How can I test to see if the context is the problem?

Any ideas on how to get this working would be greatly appreciat

Re: MVC in Rev?

2006-03-23 Thread Graham Samuel

On Wed, 22 Mar 2006 20:17:20 EST, [EMAIL PROTECTED] wrote:

to my fellow ludites also not familiar with that particular  
acronym ...


http://en.wikipedia.org/wiki/Model-view-controller

Looks like great fun! I can't wait to buy one.


Thanks for the much-needed enlightenment.

I may not be a luddite but I guess I'm a troglodyte - anyway a lot  
goes on in the world that I don't see. My real question is, does  
Gaskin ever sleep?


Graham



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

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


Re: Weirdness Passing Messages

2006-03-23 Thread Mark Smith

Finally,

on showMessage tm
  beep
  do "put tm into " & the long name of me
end show message

Seems to work.

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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi Mark,

I looked at the information you pasted below too, don't worry! It's  
the document that is "foggy" not you! I've read and re-read it over  
and over again and I am not 100% sure of what is "supposed" to happen  
either!


I change the "me" to "the target" and it still doesn't work!

One thing I did was to add the following to ObjectY:MessageY:

put the long name of me & cr & the long name of the target

To dump the names to the the message box, they are Identical so it's  
not surprising it doesn't work either!


I also played with this:

 put the long name of me into myLongName
 put "MessageY" into myLongName

However, this just assigns "MessageY" to myLongName!

Do you know how I can force it to use the contents of myLongName as a  
field reference?


Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 12:23, Mark Smith wrote:

Scratch that - sorry, I'd left the 'go cd' line in...taking it  
out,  using 'the target' also fails.


So, to narrow down the problem,

I made a mainstack - stack "mp" with 2 cards. On card 2 there is a  
field "f1" with the script


on showMessage tm
  beep
  put tm into me
end show message

I then made a substack - stack "mps", with a button, whose script is

on mouseUp
  put "hello" into tm
  send "showMessage tm" to fld "f1" of cd 2 of stack "mp"
end mouseUp

Now, if cd 2 of stack "mp" is the current cd of stack "mp", on  
clicking the button in stack "mps", I hear a beep, and the word  
'hello' appears in fld "f1". So far so good.


However, if cd 1 is the current card of stack "mp", on clicking the  
button in stack "mps", I hear a beep. I then go to cd 2 of stack  
"mp", and fld "f1" is empty...


Inserting "put tm" into the showMessage handler in fld "f1", I  
click, and "hello" appears in the message box, so the parameter is  
certainly getting there. Then inserting "put the target" into the  
showMessage handler, I click, and "field "f1"" appears in the  
message box, but still fld "f1" is empty.


I'm baffled.

Mark


On 23 Mar 2006, at 11:56, Mark Smith wrote:

I just set up a slightly simpler version of what you've described,  
and got exactly the same results. I then inserted 'go cd 2 of  
stack "stackMain" into then putMessage handler, just before the  
'send to' line, and it works as desired,

so it's definitely a context problem. Checking the docs:
-
If the currently executing handler is in the script of the object  
that received the original message, then me is the same as the  
object whose name is returned by the target function. For example,  
suppose a button script contains a mouseDown handler. The value of  
the target function within that mouseDown handler is the same as  
the name of me: the name of the button.


However, if the mouseDown handler is in the card's script instead  
of the button's, me is not the same as the object specified by the  
target. In this case, me is the card, but the target function  
returns the button's name, because the button is the object that  
first received the mouseDown message.



which to my slightly foggy mind suggests that when explicitly  
'send' ing a message to an object from another object (overiding  
the message path) it might be necessary to use 'the target' rather  
than 'me'..


so now I've substituted "the target" for "me" in the objects  
script, and the problem seems to be solved. Does that work for you?


Mark


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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi Mark,

Great Minds think alike

I was just experimenting with that too - see my previous post! Thanks  
for letting me know how to make it evaluate the string as an object  
reference. I tried it and it works!


However, this has left me with a VERY unsafe feeling about the usage  
of "me", it obviously doesn't work as published 100%. The thing that  
really gets me if "me" is the correct object (which it obviously is)  
how can a "put "X" into me" not work?


All the Best
Dave

On 23 Mar 2006, at 12:31, Mark Smith wrote:


Finally,

on showMessage tm
  beep
  do "put tm into " & the long name of me
end show message

Seems to work.

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

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


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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Opps!

Meant to ask:

What version of RunRev are you using and what platform??

Thanks again
Dave


Hi Mark,

Great Minds think alike

I was just experimenting with that too - see my previous post! Thanks  
for letting me know how to make it evaluate the string as an object  
reference. I tried it and it works!


However, this has left me with a VERY unsafe feeling about the usage  
of "me", it obviously doesn't work as published 100%. The thing that  
really gets me if "me" is the correct object (which it obviously is)  
how can a "put "X" into me" not work?


All the Best
Dave

On 23 Mar 2006, at 12:31, Mark Smith wrote:


Finally,

on showMessage tm
  beep
  do "put tm into " & the long name of me
end show message

Seems to work.

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

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


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

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


Re: URL 'file:' format

2006-03-23 Thread Klaus Major

Hi Graham,

It seems it's dumb question week for me - many of you will wonder  
how I've gone on with RR development for years and not known the  
answer to this one... anyway:


I only work with local text files in my current app, and I've never  
had to use the 'URL' form. However I think it would be convenient  
to do an update of a file using this form, since I want to be able  
to read the contents of a file and then replace the entire  
contents. The 'open for update' and 'write to file' commands don't  
seem to to make this very convenient, but of course I may be  
misreading the docs... so I decide to use the form:


 get URL someFileDesignation

... do stuff to 'it'...

put it into URL someFileDesignation

which seems from the docs to be an OK thing to do.

Anyway I tried to create 'someFileDesignation' as

 "file:/C:/MyFirstDirectory/MySecondDirectory/Mydoc.text"

where everything after the "file:/" is a known valid file path  
(it's Windows XP, but of course RR internal format) and this can be  
proved by opening the file in text editor. I've tried putting 0, 1  
and 2 '/' characters after "file:" but I always get "can't open  
file". The docs are not explicit on this point, and I've run out of  
guesses. What is the format supposed to be? And should I open the  
file first (I assume not, as this isn't mentioned in the docs).


Sorry if everyone else knows the answer, but there it is...


just tested here on my PC and this works (here).
NO slash after "file:", at least on windows!:

...
put "file:C:/YourFirstDirectory/YourSecondDirectory/Mine not your  
doc.text" into someFileDesignation

put url someFileDesignation into fld 1
...
## changed some text and then:
put fld 1 into url someFileDesignation
...

No problems...

You HAVE write permission there, do you? ;-)


Graham


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


Regards

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

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


Re: Weirdness Passing Messages

2006-03-23 Thread Mark Smith

Mac OS 10.4.5, Rev 2.7

I'm also a little concerned about the reliable use of 'me'. I think  
this hasn't been an issue for me before, because I very rarely have  
more than 1 card in a stack, but it's good to have discovered this.
I also would have thought that 'put x into me' would work anytime  
'me' is a correct reference, but clearly not...


Best,

Mark
On 23 Mar 2006, at 12:41, David Burgun wrote:


Opps!

Meant to ask:

What version of RunRev are you using and what platform??

Thanks again
Dave


Hi Mark,

Great Minds think alike

I was just experimenting with that too - see my previous post!  
Thanks for letting me know how to make it evaluate the string as an  
object reference. I tried it and it works!


However, this has left me with a VERY unsafe feeling about the  
usage of "me", it obviously doesn't work as published 100%. The  
thing that really gets me if "me" is the correct object (which it  
obviously is) how can a "put "X" into me" not work?


All the Best
Dave

On 23 Mar 2006, at 12:31, Mark Smith wrote:


Finally,

on showMessage tm
  beep
  do "put tm into " & the long name of me
end show message

Seems to work.

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

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


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

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

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


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


Re: When closed, does a substack whose destroyStack is true remains in memory ?

2006-03-23 Thread Richard Gaskin

Ken Ray wrote:

Well, as I mentioned above, closed substacks are still in memory if the
mainstack is, so you could check for the mainstack in "the windows" or in
"the stacks" to see if it is in memory.


Maybe.

The windows function is documented only to return a list of open stacks. 
 The stacks function would seem to be the better one for testing if 
closed stacks are in memory, but it appears to behave anomalously and 
may not be reliable at this time.


Try this:

1. Make a new mainstack named "AAA"; save it
2. Make a substack in that stack file named "BBB"; save it
3. Get "the stacks"
RESULT: two entries for the filename to "AAA" are in the list,
as we would expect.

4. Set the destroyStack of "AAA" to true
5. Close "AAA"
6. Get "the stacks"
RESULT: the filename of "AAA" is in the list once, since BBB is still 
open; so far so good


7. Close "BBB";
   because BBB has its destroyStack to false it should
   still be in memory, but -
8. get "the stacks"
RESULT: the filename of "AAA" is not in the list

:\

If the description for destroyStack is correct, "BBB" should still be in 
memory even if it's not open:


If the destroyStack is false, closing a stack's window
leaves it in memory.

For the stacks function, the dictionary says:

The list includes any open Revolution windows (such as
the message box and menu bar). It also includes stacks
that have been opened during the current session and
then closed, unless the stack's destroyStack property
is set to true.

If I change the order so that the mainstack "AAA" has its destroyStack 
set to false and the substack "BBB" has its destroyStack set to true, I 
get the same result -- no entry in "the stacks" even though "AAA" is 
(according to the docs) still in memory.


What am I missing?  In my head this doesn't add up.

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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi Mark,

I was hoping that you were going to say Version 2.6.6 (which I am  
using), I was going to try it in version 2.7 and was hoping to would  
be fixed! I'm using MacOS 10.4.5 too.


Can anyone check if this works on a different platform? I only have a  
Mac.


Is this a Bug? If so it a *REALLY* fundamental one! The only way I  
can thing to get around this problem 100% is to add a function:


function PutDataIntoMe theLongName,theData
  do "put theData into " & theLongName
end PutDataIntoMe

and use this anytime I want to put data into "me". However, will I  
need a getter too? Also what about this:


enable me
disable me

or

set the visible of me to true

Will these work? Or do I need similar functions to do all this??? The  
reason I mention it is that I just tried:


set the text me of to "ObjectY"

And it doesn't work either???

This has causing me to reevaluate if RunRev is the correct tool to  
use. If something as Fundamental as this doesn't work, what else  
doesn't work?


All the Best
Dave

On 23 Mar 2006, at 12:51, Mark Smith wrote:


Mac OS 10.4.5, Rev 2.7

I'm also a little concerned about the reliable use of 'me'. I think  
this hasn't been an issue for me before, because I very rarely have  
more than 1 card in a stack, but it's good to have discovered this.
I also would have thought that 'put x into me' would work anytime  
'me' is a correct reference, but clearly not...


Best,
Mark


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


Re: Keeping windows together on Windows XP

2006-03-23 Thread Graham Samuel
Thanks Jim - that's news to me! Maybe I can add it to the  
instructions for my app... but as Ken points out, we have the problem  
on OSX too.


Graham

On Wed, 22 Mar 2006 18:40:06 -0800,  Jim Ault <[EMAIL PROTECTED]>

Actually, I use the F10 key... tap it twice and Expose will show/ 
bring to

the front all the windows in the frontmost app.

Also, tab-switching by ( cmd-tab, cmd-shift-tab ) which will show  
the tab

display, then bring you back the the left-most app.





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

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


Re: Message Box ?

2006-03-23 Thread David Burgun

Hi,

Are you typing openFIle as one word?

It is two separate words - open file and close file etc.

All the Best
Dave

On 22 Mar 2006, at 23:25, thulme wrote:




set the defaultFolder to /Users/myusername/Desktop/



Then try it again. Chances are it will work this time. If this
doesn't fix it, try switching to the multi-line message box and  
enter:



openFile "myfile.txt"
put the result



Then hit the enter key. If there is an error 'the result' should
contain information about the error.


Verified I have permissions (Win XP) and entered the two line above in
multiline.

I get:  Message execution error:
 Error description: Handler: can't find handler

If I enter closeFile command i get result of : "file not open"

--
View this message in context: http://www.nabble.com/Message-Box-- 
t1327177.html#a3543393

Sent from the Revolution - User forum at Nabble.com.

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

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


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


Re: URL 'file:' format

2006-03-23 Thread Richard Gaskin

Graham wrote:


Anyway I tried to create 'someFileDesignation' as

  "file:/C:/MyFirstDirectory/MySecondDirectory/Mydoc.text"

where everything after the "file:/" is a known valid file path


Remove the "/" after "file:" and you're good.  Win paths begin with the 
drive letter only, without the preceeding "/".



Elsewhere Graham wrote:

I may not be a luddite but I guess I'm a troglodyte 


As "The Living Fossil" wouldn't that make you a trilobyte?


- anyway a lot goes on in the world that I don't see.
My real question is, does Gaskin ever sleep?


Only as much as Thomas Jefferson: a few hours at night and a couple in 
the afternoon.  It seems to work well for me in nearly everything except 
my spellling.  :)


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


Re: somewhat OT : Rev cgi & Safari

2006-03-23 Thread Martin Baxter

jbv wrote:




Don't know about safari versions.
Are you styling the form elements with css at all? I have known this to
cause serious browser-specific issues in the past.
Are the names of your form elements robust - all safe characters - if
they are somehow getting encoded by the browser your cgi might not
recognise them? (A Very Long shot I know, but...)
What kinds of elements go missing? Any pattern?


Martin,

Thanks for your reply...

yes, I use css with all form elements and those that get
skipped are mainly  elements with "onchange"
js code...


That's a scenario where I have seen issues. I've seen some browsers get 
really confused by css styled select elements. One thing I have seen 
personally (actually in ie macOS 9 IIRC but not in any recent browsers) 
is confusion over the actual position of the select element, - e.g. it 
gets activated when clicking in adjacent whitespace, but not on the 
element itself. If possible I would simply remove styling from these and 
see if that affects what happens.


I have also seen browsers freeze when a select element is changed. This 
sort of thing might be a javascript issue, but could also conceivably be 
related to css if some bad code in the browser itself is making 
assumptions about the select element having been drawn directly by the 
OS. A javascript error need not freeze the browser of course, it could 
easily "fail silently" from the users perspective. The value change 
presumably then wouldn't be applied to your hidden elements. Since you 
are reliant on javascript, and that is notorious for browser related 
issues, it is quite possible there are some js bugs in the particular 
safari version. So I would have a close look at the relevant onchange 
routines to ensure they are as robust as possible, make few or ideally 
no environmental assumptions etc.


Martin Baxter


basically, the form I use is made of 2 parts :
1- a bunch of text fields, check boxes, radio buttons and
menus, all visible and used to enter data
2- a serie of hidden elements which are the true 
uploaded by clicking on the submit btn - those hidden
elements gather all the data entered by users and are filled
by js functions according to what users select, type and check.

This works fine on IE Mac OS9 & OSX and Win XP, as well
as Firefox Win & Mac OSX and Safari 2.
The previously described problem arises only SOMETIMES on
a previous version of Safari...

JB

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



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


Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi All,

I have a problem that first I thought was something that I was doing  
wrong but now I'm not sure and would like confirmation of how the  
Context mechanism works in RunRev.


I have the following setup:
1  StackMain:Card1:ObjectA:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectX:MessageX (via send)
3  StackMain:Card2:ObjectX:MessageX - Put "MessageX" into me and then  
Calls Function StackUtil:PutMessage("MessageY")
4  StackUtil:PutMessage- Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

5  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

In this case the "put" statement at step 5 does NOT put "MessageY"  
into  StackMain:Card2:ObjectY (the object is unchanged), but the  
"put" at step 3 works ok.


If I change the code at Step 5 to read:
put "MessageY" into field "FieldY" of group "Y" of card 2 of stack "/ 
Documents/Test/StackMain.rev" (e.g. the hard coded name of the object).


or

local myData
put "MessageY" into myData
do "put myData into " & the long name of me

Then the put statement works ok.

This also works ok:
1  StackMain:Card2:ObjectX:mouseUp   - Calls Function  
StackUtil:PutMessage("MessageY")
2  StackUtil:PutMessage - Calls Handler  
StackMain:Card2:ObjectY:MessageY (via send)

3  StackMain:Card2:ObjectY:MessageY - Put "MessageY" into me

I have also tried the following with no luck:

set the text of me to "ObjectY"

What could be going wrong here?
Is it that I am mixing functions and handlers?
How can I test to see if the context is the problem?
I really need to refer to the object without hardcoding it's name  
into the Script, I thought that was what "me" was for?

Is this a bug? If so is there a workaround??
Can anyone shed some light on this? Any ideas on how to get this  
working would be greatly appreciated.


Mark Smith (many thanks Mark) verified that he has the same problem  
but is using the same platform, could someone try this on Windows or  
Unix? This appears to happen on RunRev 2.6.6 and 2.7. This has made  
be REALLY worried about the usage of "me" and in using RunRev in  
general. I can't believe that something as fundamental as the usage  
of "me" doesn't work 100% of the time. I don't have previous versions  
of RunRev in order to check if it *ever* worked.


Thanks a lot
All the Best
Dave

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


Re: Weirdness Passing Messages

2006-03-23 Thread Mark Smith
On the other hand, given the function below, it might be more  
efficient for the calling handler to do the work, since it already  
knows the the long name and has the data. I mean that if a handler is  
going to send a message to a control, along with some data, it can  
certainly perform whatever actions are required, itself.



function PutDataIntoMe theLongName,theData
  do "put theData into " & theLongName
end PutDataIntoMe



In your original example:

function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a "send" statement) the handler with the name theMessageID  
at the location(s) specified in the data part of the array.


Since putMessage knows the location, and has the data, it can do the  
work itself, avoiding any context issues altogether.


There may be other issues I don't know about, of course, but I'm sure  
you see what I mean.


Mark


On 23 Mar 2006, at 13:03, David Burgun wrote:


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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi Mark,

The problem is that this is a General Message passing handler. The  
code I sent you was vastly simplified to demonstrate the problem, in  
reality it's a lot more difficult. This is how it should work:


ListenForMessage is called by lots of objects.
PutMessage sends to all Listening objects.

It is up to the object to use the data it's sent in a manner that  
only the Message Handler of the object can determine. For instance in  
the case in question the real code looks like this:


--
--  Script for ObjectY
--
on MessageName theMessageData
-- theMessageData = CustomProperty "|" RecordKey
  set itemDelimiter to "|"
  put item 1 of theMessageValue into myArrayName
  put item 2 of theMessageValue into myRecordKey
  set itemDelimiter to ","
  put customProperties[myArrayName] of this stack into myArray
  put  myArray[myRecordKey] into myDataRecord
  put item 1 of myDataRecord into me   --*
end MessageName

--
--  Script for ObjectZ
--
on MessageName theMessage,theMessageData
-- theMessageData = CustomProperty "|" RecordKey
  set itemDelimiter to "|"
  put item 1 of theMessageValue into myArrayName
  put item 2 of theMessageValue into myRecordKey
  set itemDelimiter to ","
  put customProperties[myArrayName] of this stack into myArray
  put  myArray[myRecordKey] into myDataRecord
  put item 5 of myDataRecord into me  --*
end MessageName

If the following is executed:

get PutMessage("MessageName","cpStackArray")

(It sends to ALL listening Objects, the object decides if it should  
do something or not and what to do if so)


The lines marked  are differ in this example.  
In the case of the Real App, there are 15 fields like this, for  
instance one field is an email address. In this case the Handler  
checks to make sure it is a valid email address, and if not sets the  
text color to Red.


I am using this for all kinds of different messages with all kinds of  
different data being passed. Only the receiving object "knows" what  
to do with the data.


Thanks a Lot
All the Best
Dave

On 23 Mar 2006, at 13:56, Mark Smith wrote:

On the other hand, given the function below, it might be more  
efficient for the calling handler to do the work, since it already  
knows the the long name and has the data. I mean that if a handler  
is going to send a message to a control, along with some data, it  
can certainly perform whatever actions are required, itself.



function PutDataIntoMe theLongName,theData
  do "put theData into " & theLongName
end PutDataIntoMe



In your original example:
function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a "send" statement) the handler with the name  
theMessageID at the location(s) specified in the data part of the  
array.


Since putMessage knows the location, and has the data, it can do  
the work itself, avoiding any context issues altogether.


There may be other issues I don't know about, of course, but I'm  
sure you see what I mean.


Mark


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


Re:Weirdness Passing Messages

2006-03-23 Thread Richard Gaskin

David Burgun understandably panicked:
Is this a Bug? If so it a *REALLY* fundamental one! The only way I  
can thing to get around this problem 100% is to add a function:


function PutDataIntoMe theLongName,theData
   do "put theData into " & theLongName
end PutDataIntoMe

and use this anytime I want to put data into "me". However, will I  
need a getter too? 


Many posts expressing much concern and anguish over this.  I understand. 
 I've been there myself, and later learned to lead others through these 
dark woods.  Indeed, madness is to be found here, but beneath the 
madness is a grain of solid ground, and with a little background and 
much practice you'll understand the Zen of "me" to the point that it'll 
become second nature, and you will have long forgetten how much pain and 
confusion it once caused you -- until the next person encounters it and 
you hear their screams. ;)


Let's see if we can shed some light on a dark token:


There is a long-standing ambiguity in xTalks which has resulted in 
confusion and hair-pulling back to HyperCard 1.0:


In most cases, referencing a property of an object returns its value, 
and referencing the object itself returns a reference to itself (such as 
a long ID).


So you would expect that to get the text of a field you would say:

   get the text of me

...and to get its long ID you would say:

   get me

But alas it isn't so.

In order to support the convenience of saying "get field 1" as a way of 
obtaining its contents instead of "get the text of field 1", the 
language has become littered with ambiguity in other contexts as well, 
such as "me".


This prioritizing of convenience over clarity shows up all over the 
place, with things like "me" sometimes referencing to the object and at 
other times referring to its contents.


Check this out:

1. Make a field
2. Set its name to "Test"
3. Type "This is a test" into it
4. Set its lockText to true
5. Put this script in it:

 on mouseUp
 put the target &cr& the long id of the target &cr \
   & me &cr& the long ID of me
 end mouseUp

You'll get a result that looks like this:

 field "Test"
 field id 1003 of card id 1002 of stack "mystack.mc"
 This is a test.
 field id 1003 of card id 1002 of stack "mystack.mc"

It's interesting to note that line 1, the target, contains only the name 
of the object, not the long ID.  If you had two or more objects with the 
same name then using "the target" would fail, no?


Only sometimes.

If you use "the target" while the current script is running, then even 
though the engine tells you "the target" is only the name it behaves as 
though it's using the long ID, only working on the true target.


But if instead you obtain "the target" and store that value for later 
use, if you have two or more objects with the same name you may only be 
able to refer to the lowest-numbered one.   In such a case you'll want 
to get "the long id of the target" instead.



The folks at RunRev Ltd. could remove this ambiguity by requiring 
everyone to access the text property of an object to get its contents, 
leaving things like "me" and "target" for unambiguous object references 
only.


But given HyperTalk's long history, even though it may be a bad habit 
it's a long-established one, and folks would storm the castle walls with 
pitchforks and torches.  I expect to be flamed as a heretic for even 
questioning this.  :)


So for consistency with ambiguities introduced decades ago in HyperCard, 
RunRev has us living in a world of "sometimes", where sometimes a token 
does one thing and sometimes something else.


Given the mental gymnastics I've seen folks go through with this since I 
first started teach xTalks back in '88, I believe that a *formal* study 
of this would show that unambiguously asking people to access properties 
for contents would actually be easier to learn than the current 
ambiguous rules of "sometimes".  But we are where we are, and it's too 
late to turn back now so we just need to find coping mechanisms for it.


In your case, as noted above we find that asking for the long ID of 
either the target or me returns something more akin to what we might expect.


I haven't recreated your setup here, but it I'll be that incorporating 
"the long ID of me" will help.  The one consistency in all of this is 
that no matter what madness either "the target" or "me" produce by 
themselves, when used in conjunction with "the long ID of" you get an 
unambiguous, usable reference.


Let us know if it doesn't solve it for you and we can explore this further.

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

Re: Message Box ?

2006-03-23 Thread Devin Asay


On Mar 22, 2006, at 4:10 PM, Devin Asay wrote:





Then try it again. Chances are it will work this time. If this  
doesn't fix it, try switching to the multi-line message box and enter:


openFile "myfile.txt"


^^^
open file "myfile.txt"   ## oops!


put the result


Sorry for the confusion.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Keeping windows together on Windows XP

2006-03-23 Thread Rob Cozens


Graham,

What I would like is to take charge of the whole front of the screen 
while my app is active - is this possible?


Would setting a backdrop accomplish what you want?

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

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


Re: Automated testing

2006-03-23 Thread Rob Cozens


Richard, et al:


Do any of you do automated testing?  If so, what do you test and how?



The SDB Test Client stack that ships with Serendipity Library has an 
automated testing mode, where SDB database commands are called at 
random and a log of the last 25 calls and their results is maintained.  
Before releasing a major change to SDB, I run automated testing in 
single user mode for 24 hours, server & one client for 24 hours, and 
then server and multiple clients for at least another 24 hours.


I have mentioned before that automated testing led me to a bug that 
would have been very hard to find otherwise:


Command A could be called all day with no problem
	Command B could be called all day with no problem -- so long has 
Command A had not been called.
	Once Command A was called, the next time Command B was called the 
system crashed.


Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi Richard,

Thanks for helping. I read your post but I am not sure that this  
applies in this case, mainly because I don't understand too much  
about the internals of RunRev!


If you read my post "Terrible RunRev Bug? - Was Weirdness Passing  
Messages" it gives a fuller description of the problem, I will  
outline the basics here and hopefully you will be able to tell me if  
the cause is due to what you describe below or if it's something  
different.


In this case, in the handler in question, "the target" = "me" (they  
are identical), also:


put "ObjectX" into me
set the text of me to "ObjectX"

Both do not work.

The only thing I have found that does work is this:

do "put myData into " & the long name of me

From what you say below, I can understand why put x into me *may*  
not work, but not why:


set the text of me to x

doesn't work either?

Also, why in the case where the handler is called from one place it  
works but if called from within another Handler  it doesn't!


Thanks a lot
All the Best
Dave


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


White Flash

2006-03-23 Thread Chris Carroll-Davis

Hello all

Does anyone know a cunning way to prevent a window briefly painting  
white when changing the window decorations??


I'm allowing user to toggle between a "full screen mode" (kiosk-type  
-  with black backdrop, hidden menubar and plain centred window) and  
a "standard" (draggable, minimizeable) window mode.   On OSX, at  
least, (not checked Windows yet) the stack briefly flashes white when  
setting the decorations which is a bit distracting.  Locking/ 
unlocking screen around the "Set decorations..." line doesn't help.


I suspect I'll have to live with it ('cos it's a "system thing") -  
but I do seem to remember in my SC days (heretic! heretic!) there was  
an xcmd called "no flash" or "don'tPaintWhite" or similar.


???

Chris


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


Re: White Flash

2006-03-23 Thread Jonathan Lynch
Can you move the stack off screen, set the decorations, then lock screen,
then move the stack back on screen, and then unlock the screen?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Very Very Very Basic Question!!!!!

2006-03-23 Thread David Burgun

Hi,

Should the following lines work 100% of the time, regardless of how  
or where the message handler is called?


on MessageHandler
local myData

set the text of the long name of me to  "X"
put the text of the long name of me into myData
end MessageHandler

Thanks a lot
All the Best
Dave


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


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread J. Landman Gay

David Burgun wrote:

Hi All,

I have a problem that first I thought was something that I was doing  
wrong but now I'm not sure and would like confirmation of how the  
Context mechanism works in RunRev.


I am almost certain you have not found a "terrible bug" but instead may 
be experiencing a misunderstanding of the message hierarchy and the 
contexts in whch it works.


The deal is, a lot of us are very busy and don't have time to recreate 
your stack or do the experiment to diagnose what the problem is. Your 
description, while extensive, is written in a way that I find difficult 
to follow in a brief reading, so I haven't done much more than skim your 
messages to get a generic idea of what's happening.


It would be very easy to find the problem if you could set up a test 
stack and upload it somewhere. Then I will download it, and maybe others 
will too, and I'll probably be able to pinpoint the problem in a few 
minutes.


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


Pixel Question

2006-03-23 Thread Bob Warren

Dear All,

Suppose I have 2 cards in a stack and I am moving the mouse over the top 
card (naturally). I want to know what colour is under the mouse pointer 
in a corresponding position on the 2nd card which is hidden underneath.


I have tried, but so far without success. Any ideas anyone?

Bob

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


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi,

The problem in a nutshell is that:

put "x" into me

or

set the text of me to "x"

Does not work 100% of the time. Mark Smith has reproduced the same  
problem.


The following seems to work:

set the text of the long name of me to "x"

or

local myData
put "x" into myData
do "put myData into " & the long name of me

Seems to work ok. But before I trawl thru loads of objects in loads  
of stacks replacing.


put  into me with set the text of the long name of me to  



and (presumably?)

put me into myData with put the text of the long name of me into myData

It would be nice to know if this would 100% solve the problem  
regardless of where the handler is called from.


Any ideas?

Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 16:31, J. Landman Gay wrote:


David Burgun wrote:

Hi All,
I have a problem that first I thought was something that I was  
doing  wrong but now I'm not sure and would like confirmation of  
how the  Context mechanism works in RunRev.


I am almost certain you have not found a "terrible bug" but instead  
may be experiencing a misunderstanding of the message hierarchy and  
the contexts in whch it works.


The deal is, a lot of us are very busy and don't have time to  
recreate your stack or do the experiment to diagnose what the  
problem is. Your description, while extensive, is written in a way  
that I find difficult to follow in a brief reading, so I haven't  
done much more than skim your messages to get a generic idea of  
what's happening.


It would be very easy to find the problem if you could set up a  
test stack and upload it somewhere. Then I will download it, and  
maybe others will too, and I'll probably be able to pinpoint the  
problem in a few minutes.


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

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


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


Re: Very Very Very Basic Question!!!!!

2006-03-23 Thread Devin Asay


On Mar 23, 2006, at 9:24 AM, David Burgun wrote:


Hi,

Should the following lines work 100% of the time, regardless of how  
or where the message handler is called?


on MessageHandler
local myData

set the text of the long name of me to  "X"
put the text of the long name of me into myData
end MessageHandler


In this script 'the long name of me' is just like saying 'me'. It  
should work in any object that can contain text; i.e., fields and  
buttons. This should do the same thing:


set the text of me to "X"
put the text of me into myData

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Pixel Question

2006-03-23 Thread Richard Gaskin

Bob Warren wrote:
Suppose I have 2 cards in a stack and I am moving the mouse over the top 
card (naturally). I want to know what colour is under the mouse pointer 
in a corresponding position on the 2nd card which is hidden underneath.


get the mouseColor

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


Re: Very Very Very Basic Question!!!!!

2006-03-23 Thread David Burgun

Hi,

You'd think so, wouldn't you???!!! If *only* that really were the  
case! If that were so I wouldn't have just wasted the best part  
of 2 days pulling my hair out!


If you'd like to know more read the topic "Re:Weirdness Passing  
Messages" especially the post from Richard Gaskin. Also read  
"Terrible RunRev Bug? - Was Weirdness Passing Messages".


put  into me does NOT work 100% of the time.

I have found something that *appears* to work, but I would like to  
know if it is 100% guaranteed to work before I change gods knows how  
many scripts to use: set the text of the long name of me to  "X".


I just don't want to do this work and then find out it only works  
"sometimes" as is the case with put  into me!


All the Best
Dave

On 23 Mar 2006, at 16:40, Devin Asay wrote:



On Mar 23, 2006, at 9:24 AM, David Burgun wrote:


Hi,

Should the following lines work 100% of the time, regardless of  
how or where the message handler is called?


on MessageHandler
local myData

set the text of the long name of me to  "X"
put the text of the long name of me into myData
end MessageHandler


In this script 'the long name of me' is just like saying 'me'. It  
should work in any object that can contain text; i.e., fields and  
buttons. This should do the same thing:


set the text of me to "X"
put the text of me into myData

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

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



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


Re: Automated testing

2006-03-23 Thread Richard Gaskin

Rob Cozens wrote:
Richard, et al: 

Do any of you do automated testing?  If so, what do you test and how?


The SDB Test Client stack that ships with Serendipity Library has an 
automated testing mode, where SDB database commands are called at 
random and a log of the last 25 calls and their results is maintained.  
Before releasing a major change to SDB, I run automated testing in 
single user mode for 24 hours, server & one client for 24 hours, and 
then server and multiple clients for at least another 24 hours.


Cool stuff.  At Mark Wieder's suggestion I've also been looking at 
Eggplant, which is driven by SenseTalk, an xTalk originally developed 
for NeXT.


Interesting possibilities

I have mentioned before that automated testing led me to a bug that 
would have been very hard to find otherwise:


Command A could be called all day with no problem
	Command B could be called all day with no problem -- so long has 
Command A had not been called.
	Once Command A was called, the next time Command B was called the 
system crashed.


The SDB system or the operating system?

If the latter do you have a recipe posted at Bugzilla?
I try to stay up on crashes so I can avoid them.

I was at a Microsoft Developer Seminar once and the VB product manager 
said something very respectable:


"When working in VB if you have a script error that's your issue, but 
anytime you have a crash that's our issue.  It shouldn't be possible in 
a high-level tool to crash the OS, and we prioritize those issues highly."


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


Paragraph Level Text Formatting

2006-03-23 Thread Levi Kendall
Hello again,

Has anyone out there done paragraph level formatting in Rev by some other
method to get around this severe limitation in the software?  I know I've
already asked about this a while back, but I'm curious if anyone has made
any significant progress on having a "useable" workaround.  I'm trying to
figure out if I can use Rev for a couple of major commercial products but
this lack of a basic feature is cripling my ability to use Rev since I need
basic word processing abilities.  Thanks.

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


Re: Pixel Question

2006-03-23 Thread Klaus Major

Hi Bob and Richard,


Bob Warren wrote:
Suppose I have 2 cards in a stack and I am moving the mouse over  
the top card (naturally). I want to know what colour is under the  
mouse pointer in a corresponding position on the 2nd card which is  
hidden underneath.


sorry this is not possible right out of the box.
"the mousecolor" will only for the "actual" pixel under the cursor.


Richard G. wrote:
get the mouseColor


maybe a whiff of sleep wouldn't hurt... ;-)


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


Regards

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

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


Re: Very Very Very Basic Question!!!!!

2006-03-23 Thread Richard Gaskin

David Burgun wrote:
Should the following lines work 100% of the time, regardless of how  
or where the message handler is called?


on MessageHandler
  local myData

  set the text of the long name of me to  "X"
  put the text of the long name of me into myData
end MessageHandler


Works here like this:

Stack "A" is a mainstack, and stack "B" is a substack of "A".  "B" has 
two cards, the second card has a field with the script above in it. 
Stack "A" has a button with this script:


on mouseUp
  send "MessageHandler" to fld "x" of cd 2 of stack "b"
end mouseUp

If I go to cd 1 of stack "B" and then click the button in stack "A", 
when I go back to cd 2 of stack "B" I get "X" in the field.


Interestingly, if I change the script in the field to this:

   set the text of me to  "X"

...it fails.

I then reverted the script to the form that works, went to card 1 of 
"B", saved "B", then closed it, and then clicked the button in stack "A" 
again -- opening "B" again and looking at cd 2 showed "X" in the 
field.  This may be useful since it confirms that you can trigger 
messages and alter properties in stacks that aren't officially open, as 
long as their destroyStack property is false.


So the rule is that as long as you coerce object references derived from 
"me" to the long ID you'll be fine.  In other cases "me" will work as 
expected, but for the reasons outlined in my earlier lengthy post not 
always (thanks, HyperCard team).


As for the second line, since myData is declared locally what do you 
want to do with it?  It's scope suggests that nothing is done with it, 
since it's declared inside the handler and the handler doesn't do 
anything with it before it exits.


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


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread Ken Ray
On 3/23/06 7:55 AM, "David Burgun" <[EMAIL PROTECTED]> wrote:

> Hi All,
> 
> I have a problem that first I thought was something that I was doing
> wrong but now I'm not sure and would like confirmation of how the
> Context mechanism works in RunRev.
> 
> I have the following setup:
> 1  StackMain:Card1:ObjectA:mouseUp   - Calls Function
> StackUtil:PutMessage("MessageX")
> 2  StackUtil:PutMessage - Calls Handler
> StackMain:Card2:ObjectX:MessageX (via send)

I think this is the problem in a nutshell, David. I've used a number of
other xTalks, and most of them won't allow you to send or trigger messages
in cards other than the one that's currently displayed. They generally have
you lock the screen, go to the card in question, execute the handler, then
return to the card you started from, then unlock the screen.

The fact that Rev allows you to do this is quite honestly a surprise to me.
Personally, I'd recommend moving the function you want to call to something
more accessible, like a stack, library, or backscript.


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

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


Re: When closed, does a substack whose destroyStack is true remains in memory ?

2006-03-23 Thread Ken Ray
On 3/23/06 7:03 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> Ken Ray wrote:
>> Well, as I mentioned above, closed substacks are still in memory if the
>> mainstack is, so you could check for the mainstack in "the windows" or in
>> "the stacks" to see if it is in memory.
> 
> Maybe.
> 
> The windows function is documented only to return a list of open stacks.
>   The stacks function would seem to be the better one for testing if
> closed stacks are in memory, but it appears to behave anomalously and
> may not be reliable at this time.
> 
> Try this:
> 
> 1. Make a new mainstack named "AAA"; save it
> 2. Make a substack in that stack file named "BBB"; save it
> 3. Get "the stacks"
> RESULT: two entries for the filename to "AAA" are in the list,
> as we would expect.
> 
> 4. Set the destroyStack of "AAA" to true
> 5. Close "AAA"
> 6. Get "the stacks"
> RESULT: the filename of "AAA" is in the list once, since BBB is still
> open; so far so good

Wow... really? I would have thought that BBB would close to since its
mainstack closed. But whaddya know! :-)

> What am I missing?  In my head this doesn't add up.

What does "the mainstacks" say? I've found that this seems to truly show
what's in memory (or at least, the mainstacks that are in memory)...


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

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


What is whichMenu?

2006-03-23 Thread Dr. Robert E. Ball
When using the browser pointer, I go to the menubar of my OS X stack, click
on a menu item, e.g. File, and then click on one of the dropdown items in
the menu, e.g. Save in the File menu. In the message watcher, I get

MouseDown  -- I clicked on File
cREVGetsUpdate
MenuPick   -- I clicked on Save
whichMenu

when it works properly. However, on another stack it doesn't work. I only
get

mouseDown
cREVGetsUpdate
menuPick


No whichMenu. ???  I don't know where to look to find out where the problem
is located. I searched the PDF manual and Googoled whichMenu. No luck. Does
anyone know where whichMenu is described?

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


Re: White Flash

2006-03-23 Thread Chris Carroll-Davis

Jonathan -

No.

Good suggestion, but it seems that if the window is visible on the  
screen (whether screen is locked or not) you get the flash.  :-(


And now tried it on Windows - which gives it's own flavour of flash.

I think I'm right in saying that "lock screen" only works within the  
window bounds anyway, so locking the screen then moving the window  
wouldn't visually "freeze" the window anyway.


Pants!

Chris




On 23 Mar 2006, at 16:17, Jonathan Lynch wrote:

Can you move the stack off screen, set the decorations, then lock  
screen,

then move the stack back on screen, and then unlock the screen?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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



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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Ken Ray
On 3/23/06 11:00 AM, "Levi Kendall" <[EMAIL PROTECTED]> wrote:

> Hello again,
> 
> Has anyone out there done paragraph level formatting in Rev by some other
> method to get around this severe limitation in the software?  I know I've
> already asked about this a while back, but I'm curious if anyone has made
> any significant progress on having a "useable" workaround.  I'm trying to
> figure out if I can use Rev for a couple of major commercial products but
> this lack of a basic feature is cripling my ability to use Rev since I need
> basic word processing abilities.  Thanks.

The only approach that would work would be to create individual fields for
each paragraph behind the scenes and group them together in a group to make
them appear as if they're all in the same field.

A lot of work, and no one has done it AFAIK. I think we're all just waiting
for paragraph-level formatting from RunRev...

;-)

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

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


Re: Automated testing

2006-03-23 Thread Rob Cozens

Richard,

I have mentioned before that automated testing led me to a bug that 
would have been very hard to find otherwise:

Command A could be called all day with no problem
	Command B could be called all day with no problem -- so long has 
Command A had not been called.
	Once Command A was called, the next time Command B was called the 
system crashed.


The SDB system or the operating system?



SDB database calls, so there was no one to complain to but moi.   I don 
't know how long it would have taken to figure this out in interactive 
testing.


Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)


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


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi,

The following form, *seems* to work with the multi-stack setup I have:

set the text of the long name of me to "x"

Thanks a lot
All the Best
Dave

On 23 Mar 2006, at 17:13, Ken Ray wrote:


On 3/23/06 7:55 AM, "David Burgun" <[EMAIL PROTECTED]> wrote:


Hi All,

I have a problem that first I thought was something that I was doing
wrong but now I'm not sure and would like confirmation of how the
Context mechanism works in RunRev.

I have the following setup:
1  StackMain:Card1:ObjectA:mouseUp   - Calls Function
StackUtil:PutMessage("MessageX")
2  StackUtil:PutMessage - Calls Handler
StackMain:Card2:ObjectX:MessageX (via send)


I think this is the problem in a nutshell, David. I've used a  
number of
other xTalks, and most of them won't allow you to send or trigger  
messages
in cards other than the one that's currently displayed. They  
generally have
you lock the screen, go to the card in question, execute the  
handler, then

return to the card you started from, then unlock the screen.

The fact that Rev allows you to do this is quite honestly a  
surprise to me.
Personally, I'd recommend moving the function you want to call to  
something

more accessible, like a stack, library, or backscript.


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


Re: White Flash

2006-03-23 Thread Mark Schonewille
What about showing a palette window with a prompt "please 
wait..." then setting the loc of the window behind it to 
off-screen, changing its decorations, showing it behind the 
window with the prompt, and hiding the palette window? Probably, 
it would look best if you removed the title bar from the palette.


Mark

Chris Carroll-Davis wrote:

Hello all

Does anyone know a cunning way to prevent a window briefly painting  
white when changing the window decorations??


I'm allowing user to toggle between a "full screen mode" (kiosk-type  -  
with black backdrop, hidden menubar and plain centred window) and  a 
"standard" (draggable, minimizeable) window mode.   On OSX, at  least, 
(not checked Windows yet) the stack briefly flashes white when  setting 
the decorations which is a bit distracting.  Locking/ unlocking screen 
around the "Set decorations..." line doesn't help.


I suspect I'll have to live with it ('cos it's a "system thing") -  but 
I do seem to remember in my SC days (heretic! heretic!) there was  an 
xcmd called "no flash" or "don'tPaintWhite" or similar.


???

Chris


--

Consultant and Software Engineer
mailto:[EMAIL PROTECTED]
http://www.economy-x-talk.com

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.


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


Re: FTP and cross platform issues...

2006-03-23 Thread Mark Schonewille

Dave,

Thanks for your mail, I'll reply off-list.

Best,

Mark

Dave Cragg wrote:
Sorry. My previous post was meant to go directly to Mark. Please  forget 
you read it. :-) So you won't be disappointed when nothing  appears.


I should probably  learn how to use e-mail before messing around with  
libraries.


Dave


--

Consultant and Software Engineer
mailto:[EMAIL PROTECTED]
http://www.economy-x-talk.com

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.


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


Re: Very Very Very Basic Question!!!!!

2006-03-23 Thread David Burgun

Hi,

As for the second line, since myData is declared locally what do  
you want to do with it?  It's scope suggests that nothing is done  
with it, since it's declared inside the handler and the handler  
doesn't do anything with it before it exits.


It was just an example, in the real stack I am doing real things with  
the data, see my posts in "	Re: Weirdness Passing Messages"



Interestingly, if I change the script in the field to this:

   set the text of me to  "X"


Bingo! Should this work? Is this a bug? I can see (just) that:

put "X"  into me

may not work, but not the "set the text of me" form?

I am about to change it (all over the place) to use:

set the text of the long name of me to "X"

As this *seems* solid.

One more question: Is it better to use "the long id of me" or "the  
long name of me" ???


Thanks a lot, I really do appreciate you taking the time to look at  
this.


All the Best
Dave

It was just an
On 23 Mar 2006, at 17:12, Richard Gaskin wrote:


David Burgun wrote:
Should the following lines work 100% of the time, regardless of  
how  or where the message handler is called?

on MessageHandler
  local myData
  set the text of the long name of me to  "X"
  put the text of the long name of me into myData
end MessageHandler


Works here like this:

Stack "A" is a mainstack, and stack "B" is a substack of "A".  "B"  
has two cards, the second card has a field with the script above in  
it. Stack "A" has a button with this script:


on mouseUp
  send "MessageHandler" to fld "x" of cd 2 of stack "b"
end mouseUp

If I go to cd 1 of stack "B" and then click the button in stack  
"A", when I go back to cd 2 of stack "B" I get "X" in the field.


Interestingly, if I change the script in the field to this:

   set the text of me to  "X"

...it fails.

I then reverted the script to the form that works, went to card 1  
of "B", saved "B", then closed it, and then clicked the button in  
stack "A" again -- opening "B" again and looking at cd 2 showed  
"X" in the field.  This may be useful since it confirms that  
you can trigger messages and alter properties in stacks that aren't  
officially open, as long as their destroyStack property is false.


So the rule is that as long as you coerce object references derived  
from "me" to the long ID you'll be fine.  In other cases "me" will  
work as expected, but for the reasons outlined in my earlier  
lengthy post not always (thanks, HyperCard team).


As for the second line, since myData is declared locally what do  
you want to do with it?  It's scope suggests that nothing is done  
with it, since it's declared inside the handler and the handler  
doesn't do anything with it before it exits.


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

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


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


Re: Weirdness Passing Messages

2006-03-23 Thread Richard Gaskin

David Burgun wrote:
 From what you say below, I can understand why put x into me *may*  
not work, but not why:


set the text of me to x

doesn't work either?


Others may disagree, but I consider that a bug and have filed a report 
on it:




If Transcript is to be learnable we must at least expect property 
settings to be consistent.


The "set" command must act like the "set" command, and "me" should 
resolve to the object reference when used in conjunction with "set".


In this case, even if it's an inherited HyperTalk behavior I believe it 
should be updated to be consistent.  The future holds more newcomers 
than old HyperTalkers, and I see no benefit to sacrificing a much larger 
future to adhere to a bad practice used by very few people (if it all) 
in the past.


And there may be no conflict at all in honoring "set" consistently -- 
how did HyperCard handle such cases?



Also, why in the case where the handler is called from one place it  
works but if called from within another Handler  it doesn't!


This seems related to the ambiguity of "me": sometimes it refers to the 
object, sometimes to the object's contents.


I'm not sure if this particular case is a bug or an inherited HyperTalk 
"feature" -- maybe Jacque knows?


If this is not how HyperTalk works I would encourage you to create a bug 
report for that one as well.


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


Re: White Flash

2006-03-23 Thread Jonathan Lynch
Also, what about making the stack invisible, then changing the decorations,
then making it visible again?

You can get even fancier, by creating a new stack whose rect is the screen
rect, containing an image of the screen, then change your stack underneath,
then delete the cover stack.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pixel Question

2006-03-23 Thread Richard Gaskin

Klaus Major wrote:

Bob Warren wrote:
Suppose I have 2 cards in a stack and I am moving the mouse over  
the top card (naturally). I want to know what colour is under the  
mouse pointer in a corresponding position on the 2nd card which is  
hidden underneath.


sorry this is not possible right out of the box.
"the mousecolor" will only for the "actual" pixel under the cursor.


Richard G. wrote:
get the mouseColor


maybe a whiff of sleep wouldn't hurt... ;-)


Yes indeed, I missed" hidden underneath".

The mouseColor works off the screen buffer, so while it works reliably 
for all windows, even the desktop or anything else on screen, it won't 
work on things that can't be seen.


I'll see if I can work out a nap later :)
--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keeping windows together on Windows XP

2006-03-23 Thread Graham Samuel

On  Thu, 23 Mar 2006 07:30:31 -0800, Rob Cozens <[EMAIL PROTECTED]> wrote:


Graham,



What I would like is to take charge of the whole front of the screen
while my app is active - is this possible?



Would setting a backdrop accomplish what you want?


Well, maybe, but when I tried this I ran into a problem on Windows  
where the backdrop turned into an independent process and had to be  
closed with ctrl-alt-delete. I may have been doing something wrong,  
but rather than investigate it I went back to my homegrown backdrop  
which fills all the screen apart from the toolbar/dock area (that's  
what I've been asked to do, not cover the whole screen kiosk-style)  
and always pushes my other stacks to the front every time it gets a  
chance... I will look at backdrop some more.


Thanks for replying

Graham



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

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


Re: Very Very Very Basic Question!!!!!

2006-03-23 Thread Richard Gaskin

David Burgun wrote:

One more question: Is it better to use "the long id of me" or "the  
long name of me" ???


While the purist will say that a good developer never has two objects 
with the same name, I doubt many of us are so pure. :)


When there are two controls on a card with the same name, or two cards 
in a stack with the same name, the object with the lowest ordinal number 
will be returned, which may or may not be the one you were after.


Long IDs are known to be unique* so they're recommended for absolute 
object references.


Thanks a lot, I really do appreciate you taking the time to look at  
this.


Many years ago (before the Web was invented, in the mid-80s) I got a lot 
of help from other programmers via BBSes and such. Then I discovered 
NNTP and a whole new world of help opened up.  Then AOL's HyperCard 
forum opened and Jacque saved my bacon there many a time.


I've had a lot of help over the years from others online.  Just paying 
it forward


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


* While built-in IDs are always unique to a stack, it's possible to 
confuse things if you use the altID property.  That's too lengthy a 
subject to get into here, but as long as you don't use it then long IDs 
will be a trustworthy friend for a lifetime.

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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun

Hi,

Thank you sooo much, you have no idea of how it felt to be  
trying to sort this out. I really don't know much about the internals  
of RunRev to have a clue as to where to start looking sometimes!


The one thing that REALLY hacks me off is that there is no mention of  
this at all in the documentation that I can find:


From the 2.6.6 dictionary:

me keyword

Platform support:
Introduced in version 1.0

Equivalent to the object that contains the currently running handler.

set the borderWidth of me to it
put the short ID of me into savedID
put me into myVariable -- puts contents, if me is a container
put me into myVariable -- puts name, if me is not a container

See also: it keyword, target function, target keyword, text property

Description
Use the me keyword within a handler to determine which object's  
script is executing.


Comments:
The me keyword is a reference to the object whose script contains the  
current handler.


If the currently executing handler is in the script of the object  
that received the original message, then me is the same as the object  
whose name is returned by the target function. For example, suppose a  
button script contains a mouseDown handler. The value of the target  
function within that mouseDown handler is the same as the name of me:  
the name of the button.


However, if the mouseDown handler is in the card's script instead of  
the button's, me is not the same as the object specified by the  
target. In this case, me is the card, but the target function returns  
the button's name, because the button is the object that first  
received the mouseDown message.


The me keyword can be used anywhere an object reference is used.

---
How hard would it have been to add something like:

the form put  into me may not always work depending on  
context. To be safe use the following form:


set the text of the long name of me to 

If you would like it to work 100% of the time.

I also checked the PDF file that came with 2.7, no mention of that  
there either!


All I can say is "thanks for nothing RunRev, you just cost me 2 days  
of hair pulling"


Thanks again
All the Best
Dave


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


Re: Pixel Question

2006-03-23 Thread jbv


Hi Bob,

> Dear All,
>
> Suppose I have 2 cards in a stack and I am moving the mouse over the top
> card (naturally). I want to know what colour is under the mouse pointer
> in a corresponding position on the 2nd card which is hidden underneath.
>
> I have tried, but so far without success. Any ideas anyone?
>

Here's something I would try (I don't have the time right now though) :
- make a screenshot of the card underneath so that in can be imported
inside an image object (hidden if necessary)
- get the mouse location (x,y coordinates)
- then compute the pixel value of the image using the imagedata property

HTH,
JB

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


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread Scott Rossi
Recently, David Burgun wrote:

> The problem in a nutshell is that:
> 
> put "x" into me
> 
> or
> 
> set the text of me to "x"
> 
> Does not work 100% of the time. Mark Smith has reproduced the same
> problem.
> ...
> It would be nice to know if this would 100% solve the problem
> regardless of where the handler is called from.


Richard Gaskin already suggested a solution:  use the long ID as opposed to
the long name.

If you create two buttons, both of the same name, they have the same long
name reference:

 answer long name of btn 1 & cr & long name of btn 2


If you use the long ID, they will have unique references:

 answer long ID of btn 1 & cr & long ID of btn 2

Regards,

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

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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Jonathan Lynch
What is meant by paragraph-level formatting?

Specifically, what things can one not do?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Terrible RunRev Bug? - Was Weirdness Passing Messages

2006-03-23 Thread David Burgun


On 23 Mar 2006, at 17:52, Scott Rossi wrote:


Recently, David Burgun wrote:


The problem in a nutshell is that:

put "x" into me

or

set the text of me to "x"

Does not work 100% of the time. Mark Smith has reproduced the same
problem.
...
It would be nice to know if this would 100% solve the problem
regardless of where the handler is called from.



Richard Gaskin already suggested a solution:  use the long ID as  
opposed to

the long name.

If you create two buttons, both of the same name, they have the  
same long

name reference:

 answer long name of btn 1 & cr & long name of btn 2


If you use the long ID, they will have unique references:

 answer long ID of btn 1 & cr & long ID of btn 2

Regards,


Thanks Scott, all my names are unique, but I will use the long id  
form since it is safer.


Thanks a lot
All the Best


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


Re: White Flash

2006-03-23 Thread Chris Carroll-Davis
Ah!  Now Jonathan, this would definitely work!  Great lateral  
thinking.  If I get time, I will have a go at this and let you know  
the results.


Chris

You can get even fancier, by creating a new stack whose rect is the  
screen
rect, containing an image of the screen, then change your stack  
underneath,

then delete the cover stack.





On 23 Mar 2006, at 17:32, Jonathan Lynch wrote:

Also, what about making the stack invisible, then changing the  
decorations,

then making it visible again?

You can get even fancier, by creating a new stack whose rect is the  
screen
rect, containing an image of the screen, then change your stack  
underneath,

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

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



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


Re: Weirdness Passing Messages

2006-03-23 Thread Richard Gaskin

David Burgun wrote:
Thank you sooo much, you have no idea of how it felt to be  
trying to sort this out. I really don't know much about the internals  
of RunRev to have a clue as to where to start looking sometimes!


That's what this list is for.  Every language has its "gotchas" (Mikey 
was once cataloging the ones for Transcript -- Mikey, still got that URL 
active?).


I remember working with THINK C years ago and finding myself frustrated 
that none of the C examples in Bond's book on externals would compile 
correctly.  "Surely it's me," I thought, and figured I'd learn more 
later and move on to writing other things.


Later I was using Code Warrior and woke up one day to find that Apple 
had changed most of their headers, requiring me (and every other 
developer) to make extensive revisions to our code.


Later on I was talking about my bad luck with C (one of the reasons I 
fell in love all over again with xTalk was the tedium of C) with Mark 
Lucas, perhaps the best C Mac programmer I know, and he said, "Dude, I 
could have saved you a lot of time with Bonds -- none of those examples 
have worked with any compiler for years." :)


Always a new gotcha to discover


The one thing that REALLY hacks me off is that there is no mention of  
this at all in the documentation that I can find:

...
All I can say is "thanks for nothing RunRev, you just cost me 2 days  
of hair pulling"


FWIW you can extend those thanks to Dan Winkler, the designer of the 
"mother tongue", HyperTalk.  A lot of xTalk's most annoying ambiguities 
come from a desire to prioritize flexibility over consistency.


The "sometimes" rules introduced with regard to field references (and 
later extended to any object that can work as a container, such as 
buttons and in Rev images too) comes from HyperTalk.


I agree that there's always room for more thorough discussion in the 
docs, but there are so many combinations one can employ these tokens in 
that I don't think it's humanly possible to document them all.


Your case, frustrating as it's been for you, isn't one I've come across 
before since I started with xTalks in '87.


Now that might be only because I fell into a habit of using long IDs 
early on, and whenever I don't get what I'm looking for in the first try 
I'll use some form of long ID instead and it works so I don't think 
about it beyond that.


That said, the ambiguities with "me" and "target" come up often enough 
that they do warrant special attention in the docs, and I just submitted 
an enhancement request so this doesn't fall off the radar:




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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Stephen Barncard

Paragraph Level Text Formatting :

Each paragraph can be left center right or justified alignment. This 
can't be done in rev. The whole field is justified one way.


Also there are other text features found in MS Word that aren't found 
in the current text engine, I just can't recall. But justification is 
the big one.



What is meant by paragraph-level formatting?

Specifically, what things can one not do?


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


Re: Weirdness Passing Messages

2006-03-23 Thread David Burgun


On 23 Mar 2006, at 18:26, Richard Gaskin wrote:


David Burgun wrote:
Thank you sooo much, you have no idea of how it felt to  
be  trying to sort this out. I really don't know much about the  
internals  of RunRev to have a clue as to where to start looking  
sometimes!


That's what this list is for.  Every language has its  
"gotchas" (Mikey was once cataloging the ones for Transcript --  
Mikey, still got that URL active?).


I remember working with THINK C years ago and finding myself  
frustrated that none of the C examples in Bond's book on externals  
would compile correctly.  "Surely it's me," I thought, and figured  
I'd learn more later and move on to writing other things.


Later I was using Code Warrior and woke up one day to find that  
Apple had changed most of their headers, requiring me (and every  
other developer) to make extensive revisions to our code.


Later on I was talking about my bad luck with C (one of the reasons  
I fell in love all over again with xTalk was the tedium of C) with  
Mark Lucas, perhaps the best C Mac programmer I know, and he said,  
"Dude, I could have saved you a lot of time with Bonds -- none of  
those examples have worked with any compiler for years." :)


Always a new gotcha to discover


Yep! I've been thru something like this too, the difference here that  
springs to mind is that the book you are talking about was written by  
a third party, whereas the problem here is with the makers of the  
product.


The thing is that there are loads of example stacks and examples in  
the documentation that use the form:


put  into me

IMO, they should *all* be changed so that they work 100% of the time  
or at least a footnote given stating that it will only work *some* of  
the time!


I'm in the process of changing all my scripts now! I just realized  
that a bug I had in a completely different stack was due to this. I  
worked around the problem another way (using the "openCard" handler  
to re-initialize the objects in question).


Just so I understand this:

in some circumstances; put  into me

Result in the object contents being used instead of the reference to  
the object? If this is true, then if the field just happened to  
contain "button 1", would:


put "X" into me

result in the contents of button 1 being changed?

Thanks a lot
Dave





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


Re: Keeping windows together on Windows XP

2006-03-23 Thread Richard Gaskin

Graham Samuel wrote:

On Wed, 22 Mar 2006 18:40:06 -0800,  Jim Ault 
Actually, I use the F10 key... tap it twice and Expose will show/ 
bring to

the front all the windows in the frontmost app.

Also, tab-switching by ( cmd-tab, cmd-shift-tab ) which will show  
the tab

display, then bring you back the the left-most app.

Thanks Jim - that's news to me! Maybe I can add it to the  
instructions for my app... but as Ken points out, we have the problem  
on OSX too.


There's a completely different approach which may or may not work with 
your app specifically, but maybe worth considering:


Unlike Mac Classic, OS X has interleaved windows like Windows and Linux. 
 In the past we could spread the views into the user's data across 
multiple windows, and on Mac at least we knew those windows would stay 
together in their own layer.  But now the Mac is like the rest of the 
world, suggesting new ways of thinking.


Last year at RevCon West I discussed how one of the projects I'm working 
on (HyperRESEARCH) is migrating from a multi-window interface to a 
single window that uses multiple resizable panels.


This seems consistent with Apple's direction as well:  for most of the 
Mac's history, video editing apps have had one window for previewing the 
video, another for the timeline, and another for clips.  In iMovie, 
these are all in one window, done in adjustable panes.


We see multi-pane UIs everywhere now, in Outlook (where they've been for 
years), Thunderbird, iPhoto, Adobe Lightroom, and more.  Seems I come 
across a new one every week.


In addition to saying goodbye to window interleaving issues, there are 
many other benefits.  For starters, you only need to move one control to 
resize two panes, while you'd have to adjust two separate windows to get 
the same view (and be oh so careful about how you adjust them if you 
don't want them overlapping).  It also makes a cleaner presentation if 
your app supports multiple documents, since each document is in its own 
self-contained window.  And it makes like easier for users who want your 
app to dominate their screen:  they just click one Maximize button 
rather than tinker around with adjusting window rects.


So this year at RevCon West I'll show the result of our conversion of 
the HyperRESEARH UI, and share some code to help create and manage 
multi-pane interfaces (among other things).


Being "stuck" in the beautiful French countryside I would understand if 
you don't make it to RevCon West, but fear not -- I can bring it to Euro 
RevCon in Malta this November and we'll go over it then, and if I get a 
toolkit together before then I can pass it along in the meantime.


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


Re: Syntax Highlighting Routine - Need help

2006-03-23 Thread Garrett Hylltun

Arthur Urban wrote:
I'm presuming you have massive speed issues? Well, even if you don't, I 
was thinking that maybe it would be best if you called SubHighlight in 
your rawKeyUp handler only for specific key presses like the spacebar or 
return key. That way you are colorizing only after complete words and 
lines have been entered. Just a thought, I don't know how exhaustive you 
need the user feedback to be. :)


Arthur,

Thanks a bunch for responding.  Just reading your response made me think 
(that, and some sleep finally).  While what you suggest sounds great, my 
routine would still make the program suffer, and that's because I'm 
checking the entire document.  Instead, I should only check a chunk 
range that is around where the user is typing, and not the entire document.


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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Jonathan Lynch
Ah, I have a stack that solves this problem.

It creates series of fields where the formatted text flows through them,
allowing you to wrap around images and the like.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: White Flash

2006-03-23 Thread Chris Carroll-Davis

Jonathan -

Couldn't resist giving it a go... It works - perfectly!   Except...  
it's a bit slow.   :-(Even on my G5 dual proc it takes about 2-3  
seconds.


In this case, I'll have to decide if the visual improvement is worth  
the speed penalty.  But this may well be a useful technique for  
future projects - it could "hide" a multitude of sins!


C


On 23 Mar 2006, at 18:21, Chris Carroll-Davis wrote:

Ah!  Now Jonathan, this would definitely work!  Great lateral  
thinking.  If I get time, I will have a go at this and let you know  
the results.


Chris

You can get even fancier, by creating a new stack whose rect is  
the screen
rect, containing an image of the screen, then change your stack  
underneath,

then delete the cover stack.





On 23 Mar 2006, at 17:32, Jonathan Lynch wrote:

Also, what about making the stack invisible, then changing the  
decorations,

then making it visible again?

You can get even fancier, by creating a new stack whose rect is  
the screen
rect, containing an image of the screen, then change your stack  
underneath,

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

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



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

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



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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Ken Ray
On 3/23/06 12:57 PM, "Jonathan Lynch" <[EMAIL PROTECTED]> wrote:

> Ah, I have a stack that solves this problem.
> 
> It creates series of fields where the formatted text flows through them,
> allowing you to wrap around images and the like.

If it's not proprietary, could you publish this to RevOnline or RevNet? That
would be a great example for people who might need it...


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

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


Re: White Flash

2006-03-23 Thread Scott Rossi
Recently, Chris Carroll-Davis wrote:

> Does anyone know a cunning way to prevent a window briefly painting
> white when changing the window decorations??

A few things you can try:

1) Set the bottomRight of the window offscreen (like -1000,-1000), do your
changes, and then move the window back to where you want it.  Note that
there is an intermittent bug in window positioning that requires you to
position the window to at least two offscreen locations to make sure the
position "sticks".  I usually do something like this:
 set bottomRight of stack 1 to -1000,-1000
 set bottomRight of stack 1 to -1,-1
 set bottomRight of stack 1 to -1000,-1000
Goofy, yes, but it gets around the positioning problem.

2)  If you're using Rev 2.7, try setting the blendLevel of stack itself to
100, do your changes, and then set the blendLevel back to 0.

3) If you're using Rev 2.6 and your stack is Mac-only, you can use Trevor
DeVore's Window external to do a combination of 1 and 2 -- position the
stack offscreen, make changes, set the alpha value of the stack to
transparent, move the stack back, then set the alpha value to opaque.


> I do seem to remember in my SC days (heretic! heretic!) there was
> an xcmd called "no flash" or "don'tPaintWhite" or similar.

I believe this might be the same external that Mark Hanrek wrote while
working with me on RadWindow, the first custom window shape external for SC.
We found the "white flash" annoying and he graciously wrote the WFE (White
Flash Eliminator) external to get around the problem.

Those were fun times.

Regards,

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

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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Cubist
In a message dated 3/23/06 10:27:32 AM, "Jonathan Lynch" 
<[EMAIL PROTECTED]> writes:
>What is meant by paragraph-level formatting?
   The ability to have stuff like margins and first-indent value, vary by 
paragraph. At present, that stuff varies *by FIELD*, not *by PARAGRAPH*; that 
is, 
you can't have one paragraph in a field using different marginas than the 
rest of the paragraph.
   The obvious solution is for RunRev to upgrade Rev's text-handling 
capabilities. Failing that, the next most obvious solution is to put each 
paragraph 
into a field of its own, adjusting margins & etc independently, and group all 
of 
said paragraphs. The former solution is critically dependent on RunRev 
deciding that this problem is high-enough priority to be worth working on; the 
latter solution is *really* messy if you want to be able to handle *input*ting 
text 
like a word processor, as opposed to just *display*ing text...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: What is whichMenu?

2006-03-23 Thread Devin Asay


On Mar 23, 2006, at 10:15 AM, Dr. Robert E. Ball wrote:

When using the browser pointer, I go to the menubar of my OS X  
stack, click
on a menu item, e.g. File, and then click on one of the dropdown  
items in

the menu, e.g. Save in the File menu. In the message watcher, I get

MouseDown  -- I clicked on File
cREVGetsUpdate
MenuPick   -- I clicked on Save
whichMenu

when it works properly. However, on another stack it doesn't work.  
I only

get

mouseDown
cREVGetsUpdate
menuPick


No whichMenu. ???  I don't know where to look to find out where the  
problem
is located. I searched the PDF manual and Googoled whichMenu. No  
luck. Does

anyone know where whichMenu is described?


It looks like a passed parameter variable is showing up in the  
message watcher. When you write a menuPick handler you normally want  
to include a parameter variable after the handler name, like this:


on menuPick whichMenu
  switch whichMenu
case "Open"
  # do open stuff
  break
case "Quit"
  # do quit stuff
  break
  end switch
end menuPick

The parameter variable holds the name of the menu item that was  
chosen. It can be any valid variable name, but many rev programmers  
use the convention in which parameter variables begin with p, eg.  
pWhich or pTheThingTheyChoseOnTheMenu. You really need to capture  
this passed argument in order to make the menu behave the way you  
want. If it's not captured in a variable then the menuPick handler  
likely will not work.


HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Weirdness Passing Messages

2006-03-23 Thread Richard Gaskin

David Burgun wrote:
Later on I was talking about my bad luck with C (one of the reasons  
I fell in love all over again with xTalk was the tedium of C) with  
Mark Lucas, perhaps the best C Mac programmer I know, and he said,  
"Dude, I could have saved you a lot of time with Bonds -- none of  
those examples have worked with any compiler for years." :)


Always a new gotcha to discover


Yep! I've been thru something like this too, the difference here that  
springs to mind is that the book you are talking about was written by  
a third party, whereas the problem here is with the makers of the  
product.


You've never programmed with the CarbonLib API, have you? ;)

Bugs, including errors and ommissions in documentation, are not unique 
to Rev.  In fact, offhand I can't think of any programming language or 
operating system API that doesn't have a great many such issues.


The thing is that there are loads of example stacks and examples in  
the documentation that use the form:


put  into me

IMO, they should *all* be changed so that they work 100% of the time  
or at least a footnote given stating that it will only work *some* of  
the time!


Code that works works.

What you've discovered is a fairly rare usage in which other people's 
code doesn't work in your specific setup.


I agree it's a bug, but it doesn't mean that other code doesn't work in 
the context it was written for.




I'm in the process of changing all my scripts now!


"All" may be more work than is necessary.  Things that aren't broken 
probably don't need fixing.



Just so I understand this:

in some circumstances; put  into me

Result in the object contents being used instead of the reference to  
the object? If this is true, then if the field just happened to  
contain "button 1", would:


put "X" into me

result in the contents of button 1 being changed?


Interesting question -- what happened when you tried it?

I tested it here and neither the button nor the field changed.

It seems your specific circumstance simply exposed a bug in which using 
"me" in a field on a card that isn't opened behaves as expected in all 
respects except actually putting the data into the field.


The ambiguity with "me" and other forms of field references relates more 
to getting data than putting.  With regard to putting our tests in this 
discussion reveal it's less of an ambiguity and more of a simple bug.


Interestingly, if you change your field script to read:

on MessageHandler
  set the text of me to  "xx"
  answer me
end MessageHandler

...the answer dialog displays "xxx", even though when you later 
go to that card the field's actual contents appears unchanged.


Tuviah (the former lead engineer) once explained to me that there's a 
lot of work done with initializing fields on open cards that the engine 
doesn't do on unopened cards.   Once in a while this works to your 
advantage:  if you use a field on an unopened card to strip out html to 
obtain the text only, like this:


  set the htmlText of fld 1 of card MyUnopenedCard
  get the text of fld 1 of card MyUnopenedCard

it's many times faster than doing the same operation on a field on 
an opened card.


But as you've found, there's also a bug there:  fields on unopened cards 
apparently don't get their text set correctly if the "set" command is 
used in the field and the field is the target of a "send" command used 
to trigger this.


That's a lot of very specific conditions which must be met for this 
error to be evident, which is probably why it hasn't been reported before.


If the button script sets the text directly, without relying on "send", 
the text is updated as expected:


put "xx" into fld 1 of cd 2 of stack "b"

So yes, there's a bug.  But it's such a very specific bug that it's not 
likely to affect many people, and there are two simple workarounds for it:


a) use "the long id of me" instead of simply "me"

b) set the data from the original button script directly rather
   than using "send"

Just the same, for the sake of completeness I've filed a bug report for you:


Given the highly specific nature of the bug and that there are at least 
two ways to avoid it, I've marked its Severity rating as "Minor".


Please review the bug report to get a feel for the level of specificity 
which helps the team resolve them, and please post there any other 
reproducible bugs, with recipes, you may find.


Yes, there are no doubt more bugs waiting to be discovered, perhaps some 
less obscure than this one.


HyperCard is often cited by its fans as being "bug free", but a team 
member reports that it shipped with more than 500 known bugs (and an 
knowable number of bugs that hadn't been discovered in testing).


Rev is a much more complex program than HyperCard.  We can expect the 
bugs-per-thousand-lines-of-code to be at least on par, and it may 
actually be lower.

Re: White Flash

2006-03-23 Thread Chris Carroll-Davis

Scott -

Thanks for the tips.  The real problem is that I want the stack  
visible on screen the whole time!  So Jonathan's crafty trick of  
using a screen grab to fake the window's existence on screen was very  
cunning.


You are right about the external - I remember now.  Back in those  
prehistoric days, the white flash lasted a lot longer than it does  
today.  That external saved my bacon on a number of projects!


Think I'm going to just have to live with this one.

All the best,

Chris


On 23 Mar 2006, at 19:11, Scott Rossi wrote:


Recently, Chris Carroll-Davis wrote:


Does anyone know a cunning way to prevent a window briefly painting
white when changing the window decorations??


A few things you can try:

1) Set the bottomRight of the window offscreen (like -1000,-1000),  
do your
changes, and then move the window back to where you want it.  Note  
that
there is an intermittent bug in window positioning that requires  
you to
position the window to at least two offscreen locations to make  
sure the

position "sticks".  I usually do something like this:
 set bottomRight of stack 1 to -1000,-1000
 set bottomRight of stack 1 to -1,-1
 set bottomRight of stack 1 to -1000,-1000
Goofy, yes, but it gets around the positioning problem.

2)  If you're using Rev 2.7, try setting the blendLevel of stack  
itself to

100, do your changes, and then set the blendLevel back to 0.

3) If you're using Rev 2.6 and your stack is Mac-only, you can use  
Trevor
DeVore's Window external to do a combination of 1 and 2 -- position  
the

stack offscreen, make changes, set the alpha value of the stack to
transparent, move the stack back, then set the alpha value to opaque.



I do seem to remember in my SC days (heretic! heretic!) there was
an xcmd called "no flash" or "don'tPaintWhite" or similar.


I believe this might be the same external that Mark Hanrek wrote while
working with me on RadWindow, the first custom window shape  
external for SC.
We found the "white flash" annoying and he graciously wrote the WFE  
(White

Flash Eliminator) external to get around the problem.

Those were fun times.

Regards,

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

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

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



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


Re: Ftp and cross platform issues...

2006-03-23 Thread John Patten

Thanks to all who replied!

Originally, I was running Rev 2.7 on the XP box. So I went and tried it with 
2.6. Still no luck.

I took a look at the WindowsXP firewall settings and it was turned on. Turning 
off the built in WindowsXP Firewall allowed the ftp stack to work 
(Ftper)properly. Problem indentified!


I went in and looked at the firewall exceptions and Revolution, Revolution 2.6, 
and Revolution Engine for Win32 were all programs that were checked as 
exceptions in the Windows firewall settings.

In terms of active and passive ftp, the WindowsXP box was set for "Use Passive 
FTP" in the WinXP Advanced Internet configuration panel. I didn't think this 
could be an issue, since it worked when I disabled the Windows firewall. Not 
sure how I would check the OSX Server ftp service to verify if it was running 
in passive or active mode. Maybe something from the cmd line..?

My new question is what Firewall exception needs to be entered in the built in 
WindowsXP Firewall software to make the FTP stack work, without having to turn 
the built in Windows Firewall completly off?

Thank you!

John Patten
SUSD




---
Message: 21 
Date: Thu, 23 Mar 2006 04:30:21 -0600 
From: Chipp Walters <[EMAIL PROTECTED]> 
Subject: Re: FTP and cross platform issues... 
To: How to use Revolution  
Message-ID: <[EMAIL PROTECTED]> 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed 

Hi John, 

What version of Rev are you using? If you're on 2.7 and having trouble 
with FTP uploads, I suggest you contact Dave Cragg and get his 2.7 
libURL patch and try it again. I've had some problems with libURL on 2.7 
and FTP and Dave sent me a patch which fixed it. 

best, 

Chipp 



-- 


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


Re: Paragraph Level Text Formatting

2006-03-23 Thread Jonathan Lynch
My faerie tale generator stack (still incomplete) handles inputting text
that allows formatted text to flow between fields in a series. The fields
can be shaped however you wish.

I sent it to Ken to check out. If he thinks it worthy, I will post it online
whereever he suggests.


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


Re: Making the move...

2006-03-23 Thread Sivakatirswami
at www.himalayanacademy.com and www.hinduismtoday.com we use *only*  
rev cgi's... and REvo remote clients


But, I have also installed PMwiki which uses PHP.

mod_php is presumably "up  and running" all the time, but the rev  
engine is being loaded on each instance of a cgi being called.  
Nevertheless I can assure you, the Rev CGI "beat the pants off PHP"  
And we have some fairly complex CGI's in Rev, complex in the sense  
that they read templates from disk, replace place holder strings in  
the templates and send the web page back out. It really sparkles...  
while PMwiki, fast relative to other database based wikis, is  
sluggish compared to my Rev CGI's.


FYI: but that is not enough (smile)  we are going to set up a new web  
server in a couple of days, with a dual XEON processor at servePath  
with a 100mbps VPN socket to the switch (where our box is the *only*  
box on the Class C network before the router) and Andre will be  
figuring out how to install Fast_CGI behind Revolution on the new  
box...We can't wait to see how this thing will blaze! We will keep  
you all posted.


I don't know any other language at all but Revolution... so all this  
talk about ajax and stuff is way over my head... maybe that's an  
advantage ifI you already have a Lear Jet, why do you need to know  
how to run a bi-prop?


Hindu Press International is daily generated from the managing  
editor's, work station on, this Rev app builds the daily web pages,  
posts RSS feeds, send out email to the mailing list. I have a remote  
app deployed where voluteers can access the web server, download  
sound files, they do their work, the application uploads transcripts,  
opens the XML file in their browser, sends me and email... I mean  
*why* on earth do you even *want* to use an app inside a browser.  If  
you *need* to access the web, which is not a bad thing.. then just  
send the to the browser to do what browsers do: display HTML: a  
librarian for static resources and leave it there.


We use parsed web page templates (heavy use of SSI's) on all our  
sites and with  you can do  
some very interesting things. For example, at  
www.himalayanacademy.com the side bar links for any web pages on in  
any area on the web site are dynamically chosen based on the location  
of the web page. It's very cool and utterly simple, because it means  
that our web editors can take one template, use it for any web page  
in any location and he will get the local area navigation  
automatically installed depending on where the web page is placed.


www.himalayanacademy.com/taka/  see the little "archive" iFrame, down  
on the right side of the page. This is another very interesting use  
of Rev...where the CGI installs an interactive "calendar" object (so  
to speak) into the iFrame, dynamically.  it's basically an embedded  
object... and if it were "JAVA" who know where you could go with it.


my point here is similar to Wally's: I'm not a developer, in any  
given day we have a *lot* of other things happening. Somehow with  
Rev, I can build all this in house and RAD stuff without breaking  
your head on small coding issues for days and days. If my manager  
editor comes to me with a small feature request for the Hindu Press  
International app  I built... With transcript it always seems like  
it's a rare day when you cannot solve a problem or figure out how to  
get something done in less than ten minutes... and then keep moving  
forward. meanwhile, every time I open the PHP config files for the   
web wiki, I start to get a headache right away  (smile)... I mean...  
I *can* figure it out...but, it's just like one has to keep groking  
that code all, while  with transcript, you just think and do it.


If Anyone wants  to see our CGI's I would be happy to put them  
somewhere. Because I am not a developer, they could be  easy for  
newbies to re-use. I see a lot of different places not where this  
kind of offering could be posted and one doesn't know which is best.


And last but not least, to affirm Richard's observations with real  
life testimony (I think I posted some of this once before)


 While only useful in a subset of scenarios, it offers many  
benefits, esp. for intranets where employers are losing billions in  
lost productivity by providing open web access to their employees  
when all they really need is access to specific company- and vendor- 
specific resources.


*confirmed!*: This week we see another case of the trend.."Away from  
browsers"  We have a xerox Printer copier proofing machine  here and  
Xerox used to deploy a browser based, UI, that users on the LAN would  
open in IE or Firefox (didn't  work in Safari) to *see* the  
printer across the LAN, the printer is using a truncated linux OS on  
the FIERY.. well that thing was so buggy and broken...


Well guess what? Their reps came by this week to tell us. "Our  
engineers at Xerox abandoned the web based Java UI and we have built  
this cool ne

Re: White Flash

2006-03-23 Thread Jonathan Lynch
Does this have to be done by setting the decorations?

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


Re: Making the move...

2006-03-23 Thread Marty Knapp

Sivakatirswami wrote:


If Anyone wants  to see our CGI's I would be happy to put them 
somewhere. Because I am not a developer, they could be  easy for 
newbies to re-use. I see a lot of different places not where this kind 
of offering could be posted and one doesn't know which is best.
Thanks for sharing what's happening with you - very inspiring. 
Personally, I would love to take a look at what you've put together. I'm 
just in the middle of Jacque's great cgi tutorial and am eager to learn 
all I can about Rev CGIs. I've recently applied for a couple of web 
developer jobs (one at out local university) but a downfall for me is 
that I don't program in Perl or PHP, and can't seem to get motivated to 
do so. It would be great to see Rev become more well know for this 
dimension of its vast capabilities.


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


Re: Pixel Question

2006-03-23 Thread Scott Rossi
Recently, Bob Warren wrote:

> Suppose I have 2 cards in a stack and I am moving the mouse over the top
> card (naturally). I want to know what colour is under the mouse pointer
> in a corresponding position on the 2nd card which is hidden underneath.

I believe this function will retrieve the pixel color of a pixel in any
image using the X,Y position of the pixel as measured from the topleft of
the image.  Pass the long ID of the image and the X,Y coordinates as
follows:

on mouseUp
  answer retrievePixelColor(long id of myImage,5,5)
end mouseUp


function retrievePixelColor pObj,X,Y
  put imageData of pObj into tData
  put ((Y-1) * width of pObj * 4) + ((X-1)*4) into P
  repeat with N = 2 to 4
put charToNum(char (P+N) of tData) & "," after tColor
  end repeat
  delete last char of tColor
  return tColor
end retrievePixelColor


Let me know if this works for you.

Regards,

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

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


Re: Pixel Question

2006-03-23 Thread Bob Warren

JB wrote:

>Hi Bob,


>> Dear All,
>>
>> Suppose I have 2 cards in a stack and I am moving the mouse over the top
>> card (naturally). I want to know what colour is under the mouse pointer
>> in a corresponding position on the 2nd card which is hidden underneath.
>>
>> I have tried, but so far without success. Any ideas anyone?
>>


>Here's something I would try (I don't have the time right now though) :
>- make a screenshot of the card underneath so that in can be imported
>inside an image object (hidden if necessary)
>- get the mouse location (x,y coordinates)
>- then compute the pixel value of the image using the imagedata >property

>HTH,
>JB

-
Thanks JB!

I have little doubt that the method would work, even without trying it.
I also thought of using imagedata, but I was hoping for a less 
cumbersome solution. It's the "compute" bit that might take up a bit of 
CP time, especially if some mad hatter like me makes the mouse go 
whizzing around the screen! But I see no other alternative at the 
moment, and after all, the proof of the pudding is in the eating, so 
I'll give it a try in practice.


Thanks again, and also to Richard and (wide-awake) Klaus!

Regards to all,
Bob


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


Paragraph Level Text Formatting :

2006-03-23 Thread Dave Calkins 1


This one element severely hampers many different types of applications 
that need these typical and basic text editing features.


bugzilla # 2194

http://support.runrev.com/bugdatabase/show_bug.cgi?id=2194




Paragraph Level Text Formatting :

Each paragraph can be left center right or justified alignment. This
can't be done in rev. The whole field is justified one way.

Also there are other text features found in MS Word that aren't found
in the current text engine, I just can't recall. But justification is
the big one.


What is meant by paragraph-level formatting?

Specifically, what things can one not do?

Dave Calkins

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


Re: Weirdness Passing Messages

2006-03-23 Thread J. Landman Gay

David Burgun wrote:


Just so I understand this:

in some circumstances; put  into me

Result in the object contents being used instead of the reference to  
the object? If this is true, then if the field just happened to  contain 
"button 1", would:


put "X" into me

result in the contents of button 1 being changed?


The answer seems to be in the documentation you quoted in another note:


put me into myVariable -- puts contents, if me is a container
put me into myVariable -- puts name, if me is not a container 


If it is a container, you get the contents. If it is not a container, 
you get the object name.


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


Re: Pixel Question

2006-03-23 Thread jbv

great job Scott.

BTW I didn't know that chartonum also worked on binary data...

JB

> Recently, Bob Warren wrote:
>
> > Suppose I have 2 cards in a stack and I am moving the mouse over the top
> > card (naturally). I want to know what colour is under the mouse pointer
> > in a corresponding position on the 2nd card which is hidden underneath.
>
> I believe this function will retrieve the pixel color of a pixel in any
> image using the X,Y position of the pixel as measured from the topleft of
> the image.  Pass the long ID of the image and the X,Y coordinates as
> follows:
>
> on mouseUp
>   answer retrievePixelColor(long id of myImage,5,5)
> end mouseUp
>
> function retrievePixelColor pObj,X,Y
>   put imageData of pObj into tData
>   put ((Y-1) * width of pObj * 4) + ((X-1)*4) into P
>   repeat with N = 2 to 4
> put charToNum(char (P+N) of tData) & "," after tColor
>   end repeat
>   delete last char of tColor
>   return tColor
> end retrievePixelColor
>
> Let me know if this works for you.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> -
> E: [EMAIL PROTECTED]
> W: http://www.tactilemedia.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--



_
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.


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


Re: Pixel Question

2006-03-23 Thread Scott Rossi
Recently, jbv wrote:

>> I believe this function will retrieve the pixel color of a pixel in any
>> image using the X,Y position of the pixel as measured from the topleft of
>> the image.

> great job Scott.

Thanks.  As long as it works.  Most of the thanks go to Ken Ray for the way
cool info about imageData/alphaData on his site.  I'm not a math guy (Jim
Hurley will vouch for that) but after a little head banging I've been able
to grasp the concept.  Sort of.

Regards,

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

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


RE: standalone crashing

2006-03-23 Thread Dave Beck

Thanks Jacqueline.

I looked at that Microsoft Send Error Log dialog and could not find any way
to extract the error logs. Any I missing something? Even Copy and Paste
didn't seem to work. Is there an easy way to save the log to a file?

Also, the stack contains a lot of proprietary technology that I would not
want to release to whoever is on the other end of bugzilla, so I would
definitely not feel comfortable posting a copy of this particular stack.
Where is the bugzilla site so I can at least start a case for this problem?

Thanks,

David

>> PS. I'm happy to have my clients collect the error logs if it would help.

>It always helps, and sometimes is the only clue as to what the problem 
>is. Most of us have found 2.6.1 to be extremely stable, so if you are 
>seeing problems, there is likely a reason specific to that particular 
>stack. Please do bugzilla it, attach a copy of your stack (not the 
>standalone), and every time you get a new log, attach it to the bug 
>report. Crashing problems get top priority.

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


Copy Image to Clipboard broke in 2.7?

2006-03-23 Thread Chipp Walters
I just finished created a charting program, which uses the great new 
anti-aliasing in Rev 2.7.


But, now it turns out copying an image to the clipboard is broke as far 
as I can tell.


Anyone have success doing it on a PC? I've tried on various PC's the 
folowing.


copy image "fred"

doesn't work. Try copying and image and then pasting it into MSPaint or 
anywhere else other than Rev.


Then there's:

set the clipboardData["image"] to image "fred"

Still no go.

and the good old standby, which has worked since the Rev 1.0:

on copyToClip pImage
  set the paintCompression to "png"
  lock messages
  lock screen
  choose select tool
  drag from topleft of image pImage to botright of image pImage
  copy
  unlock messages
  unlock screen
  choose browse tool
end copyToClip

(btw, I've tried setting the paintCompression to all other values).

doesn't work either. I have to say, I really like the new features, but 
I'm routing for an update soon!


best,

Chipp


--
--
Chipp Walters
www.altuit.com

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


Re: Weirdness Passing Messages

2006-03-23 Thread J. Landman Gay

Richard Gaskin wrote:

David Burgun wrote:

 From what you say below, I can understand why put x into me *may*  
not work, but not why:


set the text of me to x

doesn't work either?



Others may disagree, but I consider that a bug and have filed a report 
on it:





I agree, there's a problem here. I have now looked at a sample stack 
that David sent me in email.




If Transcript is to be learnable we must at least expect property 
settings to be consistent.


The "set" command must act like the "set" command, and "me" should 
resolve to the object reference when used in conjunction with "set".


I don't think the problem is with "set". I think it is with the 
interpretation of "me".




In this case, even if it's an inherited HyperTalk behavior I believe it 
should be updated to be consistent.  The future holds more newcomers 
than old HyperTalkers, and I see no benefit to sacrificing a much larger 
future to adhere to a bad practice used by very few people (if it all) 
in the past.


There is no problem with HC compatibility; HC acts differently than Rev 
here.




And there may be no conflict at all in honoring "set" consistently -- 
how did HyperCard handle such cases?


In HyperCard, you can't use "set the text of" so "set" isn't an issue. 
However, when I made a duplicate stack in HC, and changed the commands 
to "put xxx into me" (for compatibility) HC worked fine. So the problem 
is only in Rev.





Also, why in the case where the handler is called from one place it  
works but if called from within another Handler  it doesn't!


It isn't clear to me yet, but I suspect it's the way "me" is 
interpreted. "Me" is the object (or contents) of the currently running 
handler, but since the sample stack does a lot of "sends", I believe the 
engine isn't successfully tracking which object is "me". It appears to 
think only the original handler's object is "me", which in a way is true 
because the first object's handler really *is* still running. When you 
specify the long name instead of "me" then the object reference is more 
specific and it works.


This may be due to the fact that, as Richard mentioned, fields on remote 
cards are not initialized; I'm not sure. If that's true, then in this 
case there is no "me" except for the originating object on card 1.


This isn't to say it shouldn't be fixed, only that I can see how it 
would get mucked up. The way the sample scripts are written is fairly 
convoluted; I would never have thought to do the job this way. I suspect 
that is why this problem has never been reported in all these years, 
since as Richard mentioned, it really takes a very specific setup to 
reproduce this problem.


A much better approach would be to move all the handlers into the stack 
script and take advantage of the natural message hierarchy, rather than 
relying on all those "sends".





This seems related to the ambiguity of "me": sometimes it refers to the 
object, sometimes to the object's contents.


I'm not sure if this particular case is a bug or an inherited HyperTalk 
"feature" -- maybe Jacque knows?


It is not how HC works. HC does what you'd expect.

If this is not how HyperTalk works I would encourage you to create a bug 
report for that one as well.




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


Custom radio buttons

2006-03-23 Thread Peter T. Evensen
It is me, or are custom radio buttons (using icons) backwards in Revolution 
2.6 & 2.7?  If I set the icon to anything, the icon appears on the right 
with the label on the left, which is the reverse of what it should be.  If 
I text align to the right, the icon goes on the left with the text right 
aligned on the right, which looks really weird.


Is this a bug?

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


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


  1   2   >