Re: Dragging from a list field

2005-08-27 Thread J. Landman Gay

Phil Davis wrote:

Another similar possibility: Can the same solution be rescaled to use a 
stack as the "selected text" object instead of a button? Then you could 
(apparently) drag text between stacks.


Yes, I think so. That's how Rev does its tool palette. The tools you 
drag from the palette are actually in stacks that follow the mouse.


It would probably be a good idea for me to implement something like 
this, because right now my drags have very little feedback outside of a 
cursor change. And as you said, one advantage of the fake stack/button 
technique is that you can actually see the content of what you're moving 
around.


--
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: Dragging from a list field

2005-08-27 Thread Trevor DeVore

On Aug 27, 2005, at 11:11 PM, J. Landman Gay wrote:
That's very similar to what I was doing, and I saw the same  
results. I found that if I pass mouseDown on the first line then it  
works okay. So I'm checking for a condition first:


on mouseDown
  if  then pass mouseDown -- allows selectionChanged to  
trigger

  -- set dragData, implement dragging here
end mouseDown

And this seems to work okay. Unfortunately it doesn't solve the  
problem of what condition to actually check for. I don't think  
there's a way to differentiate between clicking on a list and  
dragging from a list without adding a user action, so right now I'm  
checking to see if the Option key is down. If so, we're dragging.  
I'd rather be able to just tell without involving the user though.


Right.  The condition I used was a repeat loop that checks for how  
long the user has been holding down the button.  If they click on  
hold for at least 200 milliseconds then I assume they have started a  
drag.  The problem is that the repeat loop kills selectionChanged too  
(that is the bug # I posted before).


For the project I implemented this in, drag/drop from a palette is  
something that is done hundreds of times.  I didn't want to add any  
modifier keys, etc. for something being done so often so I just added  
code in mouseDown to check for a change in the selection.  That way I  
could have my repeat loop and display data on the selected item.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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


Re: Dragging from a list field

2005-08-27 Thread J. Landman Gay

Trevor DeVore wrote:

What I did in the same scenario was move the selectionChanged code to  
mouseDown.  I couldn't find another way around it.  You have to set  
dragData in mouseDown.  mouseDown is sent before selectionChanged and  
setting the dragData kills selectionChanged.


Exactly what I was seeing, but you explained it better.



I'm not sure that this is directly related to setting the dragData  
though.  It seems there are other ways to kill selectionChanged in  
mouseDown as well.  For example:


on selectionChanged
answer "selectionChanged"
pass selectionChanged
end selectionChanged

on mouseDown
answer "mouseDown"
pass mouseDown
end mouseDown

In Rev 2.6 on OS X you will never see the answer dialog for  
selectionChanged.  If you remove the answer "mouseDown" code you  will.  
A repeat loop in a mouseDown event can kill selectionChanged.   See bug 
#2930.


That's very similar to what I was doing, and I saw the same results. I 
found that if I pass mouseDown on the first line then it works okay. So 
I'm checking for a condition first:


on mouseDown
  if  then pass mouseDown -- allows selectionChanged to trigger
  -- set dragData, implement dragging here
end mouseDown

And this seems to work okay. Unfortunately it doesn't solve the problem 
of what condition to actually check for. I don't think there's a way to 
differentiate between clicking on a list and dragging from a list 
without adding a user action, so right now I'm checking to see if the 
Option key is down. If so, we're dragging. I'd rather be able to just 
tell without involving the user though.




So there are many ways to keep selectionChanged to keep from being  called.



Interesting. I'll go look at that bug. Thanks.

--
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: Dragging from a list field

2005-08-27 Thread Phil Davis

J. Landman Gay wrote:

Phil Davis wrote:
 >
 > Instead of using Rev's drap/drop features, you could fake it with a
 > button that appears at the mouseLoc when the drag begins.

Thanks Phil. I've seen this before and works well. In this case I have 
to drag between two stacks though, so a button won't work.


Oops. Sorry about the oversight. You did say that to begin with.

Another similar possibility: Can the same solution be rescaled to use a 
stack as the "selected text" object instead of a button? Then you could 
(apparently) drag text between stacks.


Phil

___
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: Dragging from a list field

2005-08-27 Thread J. Landman Gay

Wilhelm Sanke wrote:

Of the six examples offered in the samples stack try example 1 "sample 
stack with three fields" of 1. "between list fields". You would have to 
change the script of field 1 - or one of the other fields - to accept a 
right-button mouseclick to distinguish between normal list behavior and 
dragging from the list.


add "on mousedown x
  if x is 3 then"

to the field script and you could then have normal list behavior and at 
the same time dragging behavior when the other mouse button is being 
pressed.


Thanks Wilhelm. This sort of confirms what I suspected; I have to make 
the user indicate manually how the list field should behave.


I have the index/list field working, and I also have the dragging 
working. I was hoping I could get the field to know whether the user 
wants to click to select a line, or click to drag the text. I saw 
dropped or mixed messages while trying do both at the same time, so I 
guess I have to ask the user to manually indicate their intention. Your 
suggestion to use different mouse buttons would work. Or maybe the user 
could hold down a key while dragging.


Maybe I should just change the interface entirely and forget about 
making a single field act in two different ways.


--
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: Dragging from a list field

2005-08-27 Thread Trevor DeVore

On Aug 27, 2005, at 8:14 PM, J. Landman Gay wrote:


Phil Davis wrote:
>
> Instead of using Rev's drap/drop features, you could fake it with a
> button that appears at the mouseLoc when the drag begins.

Thanks Phil. I've seen this before and works well. In this case I  
have to drag between two stacks though, so a button won't work.


Actually, I have the dragging part working, it is toggling between  
two states in the list field that has me stuck.


What I did in the same scenario was move the selectionChanged code to  
mouseDown.  I couldn't find another way around it.  You have to set  
dragData in mouseDown.  mouseDown is sent before selectionChanged and  
setting the dragData kills selectionChanged.


I'm not sure that this is directly related to setting the dragData  
though.  It seems there are other ways to kill selectionChanged in  
mouseDown as well.  For example:


on selectionChanged
answer "selectionChanged"
pass selectionChanged
end selectionChanged

on mouseDown
answer "mouseDown"
pass mouseDown
end mouseDown

In Rev 2.6 on OS X you will never see the answer dialog for  
selectionChanged.  If you remove the answer "mouseDown" code you  
will.  A repeat loop in a mouseDown event can kill selectionChanged.   
See bug #2930.


So there are many ways to keep selectionChanged to keep from being  
called.


--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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


Re: Dragging from a list field

2005-08-27 Thread J. Landman Gay

Phil Davis wrote:
>
> Instead of using Rev's drap/drop features, you could fake it with a
> button that appears at the mouseLoc when the drag begins.

Thanks Phil. I've seen this before and works well. In this case I have 
to drag between two stacks though, so a button won't work.


Actually, I have the dragging part working, it is toggling between two 
states in the list field that has me stuck.


--
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: Mac Classic standalones

2005-08-27 Thread J. Landman Gay

Jeffrey Reynolds wrote:

is it kosher to take a 26 stack created with osx 26 rev authoring and 
open it in osx rev 251 authoring to do the os9 build?


Sure, it should work fine. Work on a copy, just in case.


--
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: Database Query Builder

2005-08-27 Thread Bill
That's a good question. It would be nice if the query builder didn't crash
when you search for a record that isn't there. But in order to search for a
record with the query builder you have to use "revsetSQLofQuery" and I
believe that isn't a supported command (maybe because it isn't finished) but
it is a very necessary one if you want to do functional stuff with the query
builder. 

It's much better to use the libDatabase for most things.


On 8/27/05 8:03 PM, "Scott Kane" <[EMAIL PROTECTED]> wrote:

> 
> Thanks for the info.  Has this issue with Query Builder that
> you mention been raised as a bug with Rev?

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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: CGI permissions

2005-08-27 Thread Mark Smith
Apologies - it turns out that my problem was due to the filter command 
not liking numToChar(13) as a line delimiter - which, naturally, the 
data uses.
A simple "replace numToChar(13) with numToChar(10) in tData" did the 
trick.



There does seem to be one anomaly, however. 'the date'  returns the 
date, as expected, but  'the system date' returns empty... This seems 
to hold for 'the short date' form, as well, I haven't tested others.


Neither of these things are an issue in the IDE, only in the CGI engine.

Thanks for your attention,

Mark

ps. changing the permissions of your desktop folder is not a good idea 
- weird stuff starts to happen! Repair permissions and reboot, and all 
is well, tf.




On 28 Aug 2005, at 00:43, Dave Cragg wrote:



On 28 Aug 2005, at 00:19, Mark Smith wrote:

No, this is still all on one machine (Mac Powerbook with 10.3.9). The 
files are in a folder on the desktop and the CGI is in the 
/Library/WebServer/CGI-Executables folder. I'm just pointing my 
browser at localhost.


I've tried (whilst in the IDE) importing all the data into 
customProperties in the CGI, and that works, but I can't actually get 
the CGI to sucessfully open and read any files, even if I copy them 
into the same CGI-Executables folder and set their permissions to 
755.
It can, however, get the list of files from the folder they're in, so 
I'm pretty sure my paths are fine.


You said you had set the Desktop folder to 644. I don't think that's a 
good move. However, if the files are in the CGI-Executables folder, 
and have permissions set to 755, they should be readable. Are they 
loose in the CGI-Executables, and not in a sub-folder? If they're in a 
subfolder, check the permissions on that.


How are you reading the files? Are you sure the read is failing, and 
not what you do with the data after you read it? What do you get in 
"the result" after trying to read the file? I'm guessing it's 
different in the CGI than in the IDE.


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







___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

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


Re: Database Query Builder

2005-08-27 Thread Trevor DeVore

On Aug 27, 2005, at 5:03 PM, Scott Kane wrote:


Hi Bill,

Thanks for the info.  Has this issue with Query Builder that
you mention been raised as a bug with Rev?

I'm going to take a look at "libDatabase" - but will
it work with altSQL - because I'm adament to use that
library, it's so nicely done.


Version 2 of libDatabase will work with altSQLite.  I haven't posted  
the version 2 library yet but I have it along with docs if you want  
to take a look.  Version 2 is mostly done, I just haven't had time to  
package it up and update my website.  Just email me off list and I  
can send it to you.


In a nutshell libDatabase is just a higher level abstraction library  
that sits on top of revDB or Valentina and simplifies working with  
databases.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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


Re: string format

2005-08-27 Thread Charles Hartman


On Aug 27, 2005, at 7:49 PM, Alex Tweedly wrote:

The format function is indeed very useful - but I don't think it  
can be used to solve the particular problem of adding spaces after  
a string to fill it out to a specified length.


Or at least - when I was looking at the problem the other day, one  
of the alternatives I considered was "format", but I couldn't see a  
way to use it to solve this problem :-)


It would work if the "incantation" argument of format() would accept  
a variable name, but I can't find a way to make it do that . . .


Charles

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


RE: Database Query Builder

2005-08-27 Thread Scott Kane
Hi Bill,

Thanks for the info.  Has this issue with Query Builder that
you mention been raised as a bug with Rev?

I'm going to take a look at "libDatabase" - but will
it work with altSQL - because I'm adament to use that
library, it's so nicely done.

Scott


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


Re: CGI permissions

2005-08-27 Thread Alex Tweedly

Dave Cragg wrote:



On 28 Aug 2005, at 00:19, Mark Smith wrote:

No, this is still all on one machine (Mac Powerbook with 10.3.9).  
The files are in a folder on the desktop and the CGI is in the / 
Library/WebServer/CGI-Executables folder. I'm just pointing my  
browser at localhost.


I've tried (whilst in the IDE) importing all the data into  
customProperties in the CGI, and that works, but I can't actually  
get the CGI to sucessfully open and read any files, even if I copy  
them into the same CGI-Executables folder and set their permissions  
to 755.
It can, however, get the list of files from the folder they're in,  
so I'm pretty sure my paths are fine.



You said you had set the Desktop folder to 644. I don't think that's  
a good move. However, if the files are in the CGI-Executables folder,  
and have permissions set to 755, they should be readable. Are they  
loose in the CGI-Executables, and not in a sub-folder? If they're in  
a subfolder, check the permissions on that.


I don't know if this is relevant or not, but my ISP has the following 
rule (from their user manual) ...



*CGI-BIN*
At the same directory level as httpdocs you will find your cgi-bin 
directory. You should ensure all your scripts reside within this 
directory. You may only place CGI scripts within this directory. 
Attempting to read any other file types (such as HTML files) from this 
directory will not be permitted.


so it might be worth trying it with a file outside the CGI-Executables 
directory.


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

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005
___
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: Convert ColorNames to RGB

2005-08-27 Thread Pat Trendler

Todd,

Help - Quick Reference Guides- Color Names Reference.

Also Color Converters at

http://www.flexiblelearning.com/xtalk.htm a standalone

http://www.sweattechnologies.com/rev/  You also need to look at the docs for 
this. I haven't used this one.


HTH
Pat
[EMAIL PROTECTED]


- Original Message - 
From: "Todd Geist" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, August 28, 2005 7:12 AM
Subject: Convert ColorNames to RGB



Does anybody know how to convert ColorNames to RGB values.

As much as I like Medium Goldenrod, I need the RGB value for it  :>)

Thanks!

Todd

--

Todd Geist
__
G e i s t   i n t e r a c t i v e


___
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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005




___
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: string format

2005-08-27 Thread Alex Tweedly

Marielle Lange wrote:

There was some discussion not long ago on how to add spaces such that  
a string fills a given fixed length. I discovered today that it was  
in fact possible to use the equivalent of the sprintf command found  
in c:


The format function is indeed very useful - but I don't think it can be 
used to solve the particular problem of adding spaces after a string to 
fill it out to a specified length.


Or at least - when I was looking at the problem the other day, one of 
the alternatives I considered was "format", but I couldn't see a way to 
use it to solve this problem :-) 


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005

___
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: CGI permissions

2005-08-27 Thread Dave Cragg


On 28 Aug 2005, at 00:19, Mark Smith wrote:

No, this is still all on one machine (Mac Powerbook with 10.3.9).  
The files are in a folder on the desktop and the CGI is in the / 
Library/WebServer/CGI-Executables folder. I'm just pointing my  
browser at localhost.


I've tried (whilst in the IDE) importing all the data into  
customProperties in the CGI, and that works, but I can't actually  
get the CGI to sucessfully open and read any files, even if I copy  
them into the same CGI-Executables folder and set their permissions  
to 755.
It can, however, get the list of files from the folder they're in,  
so I'm pretty sure my paths are fine.


You said you had set the Desktop folder to 644. I don't think that's  
a good move. However, if the files are in the CGI-Executables folder,  
and have permissions set to 755, they should be readable. Are they  
loose in the CGI-Executables, and not in a sub-folder? If they're in  
a subfolder, check the permissions on that.


How are you reading the files? Are you sure the read is failing, and  
not what you do with the data after you read it? What do you get in  
"the result" after trying to read the file? I'm guessing it's  
different in the CGI than in the IDE.


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: CGI permissions

2005-08-27 Thread Mark Smith
No, this is still all on one machine (Mac Powerbook with 10.3.9). The 
files are in a folder on the desktop and the CGI is in the 
/Library/WebServer/CGI-Executables folder. I'm just pointing my browser 
at localhost.


I've tried (whilst in the IDE) importing all the data into 
customProperties in the CGI, and that works, but I can't actually get 
the CGI to sucessfully open and read any files, even if I copy them 
into the same CGI-Executables folder and set their permissions to 755.
It can, however, get the list of files from the folder they're in, so 
I'm pretty sure my paths are fine.


In fact, I've just discovered that the CGI can't produce the system 
date, either. It doesn't produce an error, but 'put the system date 
into myVar' simply puts empty into myVar. Perhaps this is a broken 
engine.


I'm using the engine at this link:
http://www.runrev.com/downloads/engines/2.1.2/cgi/osx.zip
which shows up simply called "rev" and was apparently created on the 
18th April 2003.


Could this be an aberrant engine?
Anyone know of a more recent/less recent version that will work on my 
system?


Thanks,

Mark

On 27 Aug 2005, at 19:12, Dan Shafer wrote:

So the text files you're trying to read on your desktop but the CGI is 
on a (presumably remote even if in the same room and on the same 
subnet) server? Is that the architecture?


Have you tried logging into the server and copying those files from 
your desktop? That would tell you whether there's some sort of 
underlying connection issue or permissions problem.



On Aug 27, 2005, at 9:26 AM, Mark Smith wrote:

It's a stack (no UI elements) which has some template html stored in 
custom properties, tries to get the data from the files and "puts" 
the result.

It's opened from a simple text CGI.

I think the problem maybe that the the files are in a folder on my 
desktop - however, having changed the permissions for the desktop to 
644 ( was this a stupid thing to do? no-one else uses the machine), 
the problem persists. The stack works properly in the IDE, and the 
paths to the files are absolute and complete, as it were (no 
specialFolderPath, or anything).


Thanks,

Mark

On 27 Aug 2005, at 17:09, Dave Cragg wrote:




On 27 Aug 2005, at 16:58, Mark Smith wrote:


I have a Rev CGI stack that collects data from some text files, 
builds some html and returns it to the browser.
The html stuff is all working fine, but the stack is unable to read 
the necessary files to get the data...


Could some kind soul tell me what the permissions should be, both 
for the stack (which resides in the CGI-Executables folder, 
currently 755) and for the files (which live elsewhere).





644 should work for reading the files. (Anyone can read, only the 
owner can write.)


When you say a "CGI stack", do you mean a script file, or a stack 
that is opened by a script file? However, 755 should work in either 
case, unless you need to dave the stack.


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








___ Yahoo! 
Messenger - NEW crystal clear PC to PC calling worldwide with 
voicemail http://uk.messenger.yahoo.com

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

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





~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


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

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


___
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: string format

2005-08-27 Thread Marielle Lange
There was some discussion not long ago on how to add spaces such that  
a string fills a given fixed length. I discovered today that it was  
in fact possible to use the equivalent of the sprintf command found  
in c:


format(baseString[,valuesList])
format("Hello world") -- returns "Hello world"
format("Hello\nworld") -- returns "Hello" on one line, "world" on next
format("%1.3e",865.3) -- returns 8.653e+02, scientific notation
format("%o in octal\n%x in hex.",myNumber,myNumber)
format("%45d",5) -- returns "5" preceded by 45 spaces

Also look for:

String:
%[charLength]s
The corresponding value is unchanged, except that if a charLength is  
specified, if the string is shorter than the charLength, enough  
leading spaces are added to make it charLength characters long. If  
the length of the string is equal to or greater than the charLength,  
it is unchanged. For example, the incantation %3s transforms "H" to  
"  H".


Best,
Marielle



___
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


3 new stacks in the education gallery

2005-08-27 Thread Marielle Lange

3 new stacks have been added to the education gallery:
http://revolution.lexicall.org/stacks_education.php

(1) A pivot table utility by me   (under research tools)
And two stacks mentioned this week on the use-revolution list:
(2) Line Intersection by Jim Hurley   (under courseware->math)
(3) Physics stuff by Roger Guay (under courseware->physics)

The pivot table utility is a small tool to help summarize data  
according to predefined dimensions. You will find explanations at:

http://revolution.lexicall.org/paypal/pivot_table/
This is an early version and comments and feedback are appreciated.  
It would be nice to have some "drag and drop" features like in Excel,  
feel free to add this to the stack (share alike license).


Best,
Marielle

PS. Bugs have also been fixed in the trim outliers application:
http://revolution.lexicall.org/paypal/trim_outliers/. The url has  
changed slightly too, but a redirection has now been set for all of  
the old links I had given.
 
--
Marielle Lange (PhD),  Psycholinguistics, Lecturer in Psychology and  
Informatics

University of Edinburgh, UK

Homepage:  http://homepages.inf.ed.ac.uk/mlange/
Lexicall project: http://lexicall.org
Revolution-education project: http://revolution.lexicall.org

___
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: An odd error

2005-08-27 Thread Mark Wieder
Pat-

Saturday, August 27, 2005, 2:12:44 PM, you wrote:

> You have the variable name rubri twice in your list. That causes the shadow
> error.

!!! Good eye !!! I read that line twice and missed it...

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: mouseStillDown Not Allowed in Front Script?

2005-08-27 Thread Alex Tweedly

Scott Rossi wrote:


From a new, empty stack, I loaded the following into a frontscript:


on mouseStillDown
  put the millisecs
end mouseStillDown

But nothing appears in the message box when I click in the stack.  Is
mouseStillDown not trappable in a front script?  Does this handler need to
co-exist with mouseDown or something else I'm missing?
 


The docs say

  Note:  If there is no mouseStillDown handler in the target object's 
script, no mouseStillDown message is sent, even if there is a 
mouseStillDown handler in an object that's further along the message path.


so I think that may imply that you can't use it in a frontscript (maybe?).

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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005

___
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: An odd error

2005-08-27 Thread Dom
Pat Trendler <[EMAIL PROTECTED]> wrote:

> You have the variable name rubri twice in your list. That causes the shadow
> error.

You got it!

(the most obvious errors are also the most unseen ;-))

___
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: Really cool WindowShapes X-plat

2005-08-27 Thread Dick Kriesel
How about Scott Rossi's "Blowing in the Wind?"  See his post on August 16.


On 8/27/05 2:37 PM, "Todd Geist" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> Does anybody  have a REALLY cool mask I could use for a demo of window
> shapes.  I am presenting to a couple hundred FM pro users and I want to show
> custom window shapes.  I am not a graphic artist and what I do will look
> like crap. So I am hoping somebody out there can help.
> 
> Full credit and attribution to the creator of course!
> 
> Thanks
> 
> Todd
> 


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


Re: Spell Checker

2005-08-27 Thread Sivakatirswami

Jonathan:

Can you share your spell checker with us? or is this proprietary?  
(put it on line somewhere or send to me off list?)


I don't care if it is not polished in terms of the UI, as long the  
basic algorithms and scripts are accessible, I can put it to work..


basically I have a single field I am checking and would like to get

a) mis-spelled words flagged in that field
b) a suggestion list--(very basic, that segment of the alphabet would  
do... right, I know... not very smart and all the "s's" could be a  
long suggestion list, but my implementation will let them view two  
different suggestion lists, one the "common" English dict and two, a  
specialized words list... the latter will be short...


Sivakatirswami

On Aug 22, 2005, at 3:30 AM, Lynch, Jonathan wrote:


Hi Derek,

Just a suggestion for your spellchecker - because I have one I created
for work and I made this change and now it moves much much faster.

In one of the recent informal coding challenges, one of the rev users
(I'm sorry, I cannot remember who it was) came up with a cool way of
doing mass comparisons.

Basically, you can load the entire word list into an array, in which
each element of the array is named for the word, and the content of  
each

element is the word "true"

Something like this:

Repeat for each word tWord in tWordList
  Put true into tWordArray[tWord]
End repeat

Then when you go to do the comparison for a given word, you do this

If not tWordArray[tWordToCheck] then
  -- hilite the word, or whatever
End if


This was much faster than checking to see if the word was contained  
in a
list, and is nice because it is not particularly slowed down by  
having a

very large word list. You might already be using this method, so my
apologies if I am pointing out the obvious to you.

Cheers,

J


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek  
Bump

Sent: Thursday, August 18, 2005 8:46 PM
To: Sivakatirswami; How to use Revolution
Subject: Re: Spell Checker

Sivakatirswami wrote:


Derek... Please ignore my post to the list... I just now see you


bailed


on that project (or were forced to...)

But I never did get from you what you had done so far, per your memo:

Sivakatirswami



Sivaktirswami,

Let me first apologize for the time it has taken me to get back to  
you.
  My main computer's hard drive is corrupted and I spend the better  
part


of 2 days attempting to get as many files off of it as possible  
(Mostly

my iTunes Library).

I do have a back up that is recent enough to include the Spell  
Checker,
but I cannot give it out at this point.  I have not forgotten about  
you,


as well as the other Revolution Developers, and I am working to get  
the
Spell Checker finished.  It would be a valuable tool for Revolution  
that


really should have been included a long time ago in the development
package.


Derek Bump
Dreamscape Software
___
Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.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



___
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: database : insert/update/delete

2005-08-27 Thread Dave Cragg


On 27 Aug 2005, at 14:59, Revolution wrote:


Saturday, August 27, 2005 4:57:04 PM (GMT +02:00)

Hi,

want to add to the database what's in a text
field.

event from the button mouseup :

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
=-=-=-=-=

put fld "MyEdit" into MyEditVar
put "INSERT INTO mytable myfield VALUES ('" & MyEditVar & "');"  
into SQL

revExecuteSQL dbID, SQL
put the result into sqlResult
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
=-=-=-=-=


what's wrong ?


Don't include the semicolon at the end of the statement.

Also, I think myfield should be in parentheses.

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


Really cool WindowShapes X-plat

2005-08-27 Thread Todd Geist
Hello,

Does anybody  have a REALLY cool mask I could use for a demo of window
shapes.  I am presenting to a couple hundred FM pro users and I want to show
custom window shapes.  I am not a graphic artist and what I do will look
like crap. So I am hoping somebody out there can help.

Full credit and attribution to the creator of course!

Thanks

Todd


-- 

Todd Geist
__
G e i s t   i n t e r a c t i v e 


___
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: Dragging from a list field

2005-08-27 Thread Wilhelm Sanke

On Sat, 27 Aug 2005, J. Landman Gay" <[EMAIL PROTECTED]> wrote:


I have a list field that operates like an index; clicking on a line
causes the stack to display content based on the text of the line.

I also need the field to support drag and drop, so that users can create
their own lists by dragging lines from the index into a different field
in a substack.
(snip)
Does anyone have a trick for making a list
field behave in two different ways -- that is, normal line selection as
well as supporting dragging lines to another field?

-- Jacqueline Landman Gay



Hi Jacqueline,

I am not sure if this meets exactly your expectations, but you might 
have a look at my sample stack "Dragging with List Fields" on page 
"Tools and Samples for Development of my site 
 (scroll down to the bottom of the page).


Of the six examples offered in the samples stack try example 1 "sample 
stack with three fields" of 1. "between list fields". You would have to 
change the script of field 1 - or one of the other fields - to accept a 
right-button mouseclick to distinguish between normal list behavior and 
dragging from the list.


add "on mousedown x
  if x is 3 then"

to the field script and you could then have normal list behavior and at 
the same time dragging behavior when the other mouse button is being 
pressed.


Best regards,

Wilhelm


___
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: An odd error

2005-08-27 Thread Pat Trendler

Dom,

You have the variable name rubri twice in your list. That causes the shadow 
error.


Pat.
[EMAIL PROTECTED]


- Original Message - 
From: "Dom" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, August 28, 2005 4:51 AM
Subject: An odd error



I had a handler which didn't worked...
It seems that I had a local which caused the error:

   compiling at 5:26:43 PM
Typelocal: name shadows another variable or constant
Object  Totaux
Linelocal Lmontants,Lpos,Lentree,nbL,rubri,maliste,rubri,sortie
Hintrubri

The first time I see this sort of error ;-)

--
Revolutionario

___
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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005




___
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


Convert ColorNames to RGB

2005-08-27 Thread Todd Geist
Does anybody know how to convert ColorNames to RGB values.

As much as I like Medium Goldenrod, I need the RGB value for it  :>)

Thanks!

Todd

-- 

Todd Geist
__
G e i s t   i n t e r a c t i v e 


___
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 Just got Clicked

2005-08-27 Thread Todd Geist
I thought of this and I think it would work BUT.  The colors of the graph
which are set by ChartMaker use colornames, and mouseColor uses RGB.  And I

I don't know how to convert between the two.


I am going to start a new thread

Todd


On 8/27/05 10:33 AM, "Dick Kriesel" <[EMAIL PROTECTED]> wrote:

> On 8/27/05 7:46 AM, "Todd Geist" <[EMAIL PROTECTED]> wrote:
> 
>> So far I have been unable to figure out how to get a mouseClick to
>> tell what Pie Slice I am clicking on.
> 
> If the slices have different colors, function mouseColor might help.

-- 

Todd Geist
__
G e i s t   i n t e r a c t i v e 


___
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


RevoBlog lives again!

2005-08-27 Thread Dom
It is here:

http://revoblog.free.fr/2005/08/27/index.html

You can go to the home page:

http://revoblog.free.fr/

but, for an unknown reason, a clic on a link gives nothing at home (that
worked, before) -- maybe, that works for you, you are able to go to old
pages?

there is a workaround: you type "2005/" (without the quotes) after the
URL...


-- 
Revolutionario

___
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: Dragging from a list field

2005-08-27 Thread Phil Davis

I've done this in the past:

Instead of using Rev's drap/drop features, you could fake it with a 
button that appears at the mouseLoc when the drag begins.

- its label is set to the selectedText of the index field
- its rect is same as that of the selected line in the field
- it looks like you're dragging selectedText
- if dropped in an invalid target zone, it snaps back to the original 
location and disappears
- if dropped in a valid zone, it disappears and your script puts the 
text where it belongs.


This is a little bit of work, but maybe it would give you what you want.

HTH -
Phil Davis


J. Landman Gay wrote:
I have a list field that operates like an index; clicking on a line 
causes the stack to display content based on the text of the line.


I also need the field to support drag and drop, so that users can create 
their own lists by dragging lines from the index into a different field 
in a substack.


I tried setting the dragData on a mousedown in the index field, but even 
if I pass mouseDown, the index behaviors no longer function. The field 
does not recognize "mouseup" or "selectionchanged" and nothing happens. 
Actually, when I try dragging a line, the selection changes to whatever 
line the pointer is over. Does anyone have a trick for making a list 
field behave in two different ways -- that is, normal line selection as 
well as supporting dragging lines to another field?




___
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


mouseStillDown Not Allowed in Front Script?

2005-08-27 Thread Scott Rossi
>From a new, empty stack, I loaded the following into a frontscript:

 on mouseStillDown
   put the millisecs
 end mouseStillDown

But nothing appears in the message box when I click in the stack.  Is
mouseStillDown not trappable in a front script?  Does this handler need to
co-exist with mouseDown or something else I'm missing?

Thanks & 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: Mac Classic standalones

2005-08-27 Thread Jeffrey Reynolds
Thanks for the confirmations! at least im not nutz, well dont talk to 
my friends.


some more fiddling makes it look like messages like openstack and 
opencard and such are not being sent by the stack when the actions 
happen. i rigged some buttons to send those messages on cards and i 
could get a lot of my functionality working again. mouse clicks and 
mouseenter and mouseleave appear to be being sent when you are on a 
card. so if you rely on setting up a lot of things with openstack and 
opencard (or cleanup with closecard) this just wont happen when you 
make the 25 os9 build from 26 osx authoring.


is it kosher to take a 26 stack created with osx 26 rev authoring and 
open it in osx rev 251 authoring to do the os9 build? I dont think i am 
doing anything feature/call wise that is 26 specific at all in my 
scripts. these programs are kept simple on purpose to make them as 
bullet proof and error free as possible. I am doing quicktime movies, 
but only doing things that i have been doing for years in mc/rev, 
nothing fancy call wise that hasn't been there for the last 4 years or 
so.


I am in a bit of a bind here since i need to ship a product in the next 
month with an os9 build along with the osx and xp builds. the osx and 
xp are working great... Since much of this code was used in an os9 
build last year i had little worry that it was going to do anything 
strange until i tried to make the standalone, should have done this 
earlier, just got in a rush in all the production phases...


cheers,

jeff

On Aug 27, 2005, at 12:29 AM, [EMAIL PROTECTED] 
wrote:



Confirmed. I can build this application under Rev 2.5.1 for OS9 and
it works exactly as expected. If I build the same app under 2.6, it
comes up with a blank window and stares at me.

Huge problem, obviously, but glad I kept 2.5.1 around.


On Aug 26, 2005, at 2:45 PM, Dan Shafer wrote:


Hmmm. This may explain why my SmartEBooks don't work in OS9
either. I'm going to go build those standalones in Rev 2.5 and see
if they work then.

I'll report back.


On Aug 26, 2005, at 1:49 PM, Jeffrey Reynolds wrote:



hmm, well i have tried using the rev2.5 engine installed in my
rev2.6 osx authoring system (using rev to uncompress the os92.5
rev as jacque advised and installed in the engines folder) and
when i build apps with the os9 engine they appear to be pretty
much non functional. openstack scripts dont seem to work at all
and other things are not functioning. the same stack build in osx
standalone works great. this is material that was from older code,
so is not asking the 2.5 engine for the os9 to be doing anything
that should be 2.6 specific. also created a test stack from
scratch in 2.6 and have the same problem with the 2.5 ox9 standalone.

the os9 standalones build fine from osx 2.6 authoring system, they
just dont function properly after booting.

not sure what i am doing wrong...

thanks

jeff


___
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


An odd error

2005-08-27 Thread Dom
I had a handler which didn't worked...
It seems that I had a local which caused the error:

compiling at 5:26:43 PM
Typelocal: name shadows another variable or constant
Object  Totaux
Linelocal Lmontants,Lpos,Lentree,nbL,rubri,maliste,rubri,sortie
Hintrubri

The first time I see this sort of error ;-)

-- 
Revolutionario

___
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: Tuviah Snyder's Database Examples, working link please ?

2005-08-27 Thread Bill
Try this:

http://www.altuit.com/webs/altuit2/altSQLiteCover/default.htm

For the sqlite plug-in database examples stack which is very clear.

Also for MySQL you can't do better than Sarah's example stack:

http://www.troz.net/Rev/

I'm sorry but I can't find the chief of technology's example stack either --
but depending on whether you are using mySQL or SQLite the two above example
stacks are great. In fact the SQLite one is especially great because it is
like a tutorial for connecting to a SQL database too.


On 8/27/05 1:59 PM, "Revolution" <[EMAIL PROTECTED]> wrote:

> Tuviah Snyder's Database Examples

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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: CGI permissions

2005-08-27 Thread Dan Shafer
So the text files you're trying to read on your desktop but the CGI  
is on a (presumably remote even if in the same room and on the same  
subnet) server? Is that the architecture?


Have you tried logging into the server and copying those files from  
your desktop? That would tell you whether there's some sort of  
underlying connection issue or permissions problem.



On Aug 27, 2005, at 9:26 AM, Mark Smith wrote:

It's a stack (no UI elements) which has some template html stored  
in custom properties, tries to get the data from the files and  
"puts" the result.

It's opened from a simple text CGI.

I think the problem maybe that the the files are in a folder on my  
desktop - however, having changed the permissions for the desktop  
to 644 ( was this a stupid thing to do? no-one else uses the  
machine), the problem persists. The stack works properly in the  
IDE, and the paths to the files are absolute and complete, as it  
were (no specialFolderPath, or anything).


Thanks,

Mark

On 27 Aug 2005, at 17:09, Dave Cragg wrote:




On 27 Aug 2005, at 16:58, Mark Smith wrote:


I have a Rev CGI stack that collects data from some text files,  
builds some html and returns it to the browser.
The html stuff is all working fine, but the stack is unable to  
read the necessary files to get the data...


Could some kind soul tell me what the permissions should be, both  
for the stack (which resides in the CGI-Executables folder,  
currently 755) and for the files (which live elsewhere).





644 should work for reading the files. (Anyone can read, only the  
owner can write.)


When you say a "CGI stack", do you mean a script file, or a stack  
that is opened by a script file? However, 755 should work in  
either case, unless you need to dave the stack.


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








___ Yahoo!  
Messenger - NEW crystal clear PC to PC calling worldwide with  
voicemail http://uk.messenger.yahoo.com

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

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





~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


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


Re: help on open file

2005-08-27 Thread Dan Shafer

You will need to do one of two things:

1. Include the name of the app to launch the document with (including  
full path)


launch "textfile.doc" with "C:/Program Files/Microsoft/Word.exe" (or  
whatever)


OR

2. Use the system scripting language (shell command) or in the case  
of OS X AppleScript as an alternative, to do this outside the app.


There's no way for Rev to open a Word doc itself without launching Word.


On Aug 26, 2005, at 10:14 PM, Paul Salyers wrote:


Dear RunRev programmers

I have the need to open a word file from the app. I have the word  
file on my same path as my rev app. but using the suggested command  
it do not work, any reason why?


This is the programming line I'm using:

on mouseUp
launch "textfile.doc"
end mouseUp

the textfile.doc will not open from within the app.

Anyone know why?


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

___
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





~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


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


Re: database : insert/update/delete

2005-08-27 Thread Bill
The database query builder does an excellent (and a little too seamless--no
feedback) job of updating (although since the records are catched you have
to refresh to see the changes).

But I can't help you with delete and insert as you can't do either of those
with the database query builder so I am using libDatabase for that (also
works great). I remember that when I was using the direct calls some of them
were confusing and required reading the directions several times. I finally
just copied directly from the SQLite Demo stack which was a fairly easy
solution. Have you looked at that stack?

Are you looking at your data table using SQLiteManager or something like
that as if you are looking at your data with results from the database query
builder you won't see any changes until after a refresh.


On 8/27/05 9:59 AM, "Revolution" <[EMAIL PROTECTED]> wrote:

> Saturday, August 27, 2005 4:57:04 PM (GMT +02:00)
> 
> Hi,
> 
> want to add to the database what's in a text
> field.
> 
> event from the button mouseup :
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> put fld "MyEdit" into MyEditVar
> put "INSERT INTO mytable myfield VALUES ('" & MyEditVar & "');" into SQL
> revExecuteSQL dbID, SQL
> put the result into sqlResult
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> what's wrong ?
> 
> also, for the update and delete ?
> 
> have tried it, but it doesn't add to the table.
> stucked here.
> 
> 10x
> 
> Adrian C.
> 
> ___
> 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
> 
> 

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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


Tuviah Snyder's Database Examples, working link please ?

2005-08-27 Thread Revolution
Saturday, August 27, 2005 8:57:36 PM (GMT +02:00)

Hi all,

if anyone has Tuviah Snyder's Database Examples,
please upload to somewhere.

http://www.runrev.com/revolution/downloads/developerdownloads/DB%20Examples.zip

seems to be 404. ;)

I need a working link to download them.

Thank you.

regards,
Adrian C.

___
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 Just got Clicked

2005-08-27 Thread Dick Kriesel
On 8/27/05 7:46 AM, "Todd Geist" <[EMAIL PROTECTED]> wrote:

> So far I have been unable to figure out how to get a mouseClick to
> tell what Pie Slice I am clicking on.

If the slices have different colors, function mouseColor might help.

-- Dick


___
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


Dragging from a list field

2005-08-27 Thread J. Landman Gay
I have a list field that operates like an index; clicking on a line 
causes the stack to display content based on the text of the line.


I also need the field to support drag and drop, so that users can create 
their own lists by dragging lines from the index into a different field 
in a substack.


I tried setting the dragData on a mousedown in the index field, but even 
if I pass mouseDown, the index behaviors no longer function. The field 
does not recognize "mouseup" or "selectionchanged" and nothing happens. 
Actually, when I try dragging a line, the selection changes to whatever 
line the pointer is over. Does anyone have a trick for making a list 
field behave in two different ways -- that is, normal line selection as 
well as supporting dragging lines to another field?


--
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: CGI permissions

2005-08-27 Thread Mark Smith
It's a stack (no UI elements) which has some template html stored in 
custom properties, tries to get the data from the files and "puts" the 
result.

It's opened from a simple text CGI.

I think the problem maybe that the the files are in a folder on my 
desktop - however, having changed the permissions for the desktop to 
644 ( was this a stupid thing to do? no-one else uses the machine), the 
problem persists. The stack works properly in the IDE, and the paths to 
the files are absolute and complete, as it were (no specialFolderPath, 
or anything).


Thanks,

Mark

On 27 Aug 2005, at 17:09, Dave Cragg wrote:



On 27 Aug 2005, at 16:58, Mark Smith wrote:

I have a Rev CGI stack that collects data from some text files, 
builds some html and returns it to the browser.
The html stuff is all working fine, but the stack is unable to read 
the necessary files to get the data...


Could some kind soul tell me what the permissions should be, both for 
the stack (which resides in the CGI-Executables folder, currently 
755) and for the files (which live elsewhere).




644 should work for reading the files. (Anyone can read, only the 
owner can write.)


When you say a "CGI stack", do you mean a script file, or a stack that 
is opened by a script file? However, 755 should work in either case, 
unless you need to dave the stack.


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







___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

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


Re: CGI permissions

2005-08-27 Thread Dave Cragg


On 27 Aug 2005, at 16:58, Mark Smith wrote:

I have a Rev CGI stack that collects data from some text files,  
builds some html and returns it to the browser.
The html stuff is all working fine, but the stack is unable to read  
the necessary files to get the data...


Could some kind soul tell me what the permissions should be, both  
for the stack (which resides in the CGI-Executables folder,  
currently 755) and for the files (which live elsewhere).




644 should work for reading the files. (Anyone can read, only the  
owner can write.)


When you say a "CGI stack", do you mean a script file, or a stack  
that is opened by a script file? However, 755 should work in either  
case, unless you need to dave the stack.


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


CGI permissions

2005-08-27 Thread Mark Smith
I have a Rev CGI stack that collects data from some text files, builds 
some html and returns it to the browser.
The html stuff is all working fine, but the stack is unable to read the 
necessary files to get the data...


Could some kind soul tell me what the permissions should be, both for 
the stack (which resides in the CGI-Executables folder, currently 755) 
and for the files (which live elsewhere).


Thanks,

Mark



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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


Re: use-revolution Digest, Vol 23, Issue 105

2005-08-27 Thread Dave Calkins


On Aug 26, 2005, at 9:29 PM, [EMAIL PROTECTED] 
wrote:



Dave Calkins wrote:

I believe that there are a couple of text handling features that 
would greatly enhance Rev and many types of applications that we work 
with.  I know it would make a big difference to me.

A. An indent paragraph textStyle property.


See the "firstIndent" property in the docs. If that is what you mean, 
you can probably cancel the Bugzilla entry.


--
Jacqueline Landman Gay


Hi Jacqueline,

Yes I was aware of the firstindent. But it indents only  the first 
line, and is not what I was referring to. Many of the reports that I 
generate are 20 to 30 pages of mostly text mixed with a half a dozen 
graphics. These reports have a ton of information which have whole 
sections, paragraphs, that are indented like the following.


  1. The paragraphs will look
  like this. They are offset.
  like this to highlight
  and organize the information.
   A. Most simple word
   processors can do
   this quite easily and
   often reports of this
   type is much easier
   to read with this
   type offset.

This allows one to easily understand how the information is organized. 
That is why I suggested  that it should be done, on chunks, not just 
line wraps. The bugzilla is posted as an enhancement.


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: What Just got Clicked

2005-08-27 Thread Todd Geist

Ok well Now I am making progress  :>)

After ChartMaker makes my Chart, I loop through all the Fields in the Chart
Group setting the script property of each field.  This lets me pass my own
message to the Card with what was clicked

It also lets me add my own rollover effects to the fields on the pie chart.
COOL!

But Now I have one another issue.  :>(

I want to be able to do this for the slice of pie that I am clicking on, But
the pie chart is made up of a stack of graphics using "start angle and arc
angle.  So far I have been unable to figure out how to get a mouseClick to
tell what Pie Slice I am clicking on.

Does anybody have any idea's

Thanks 

Todd


Then 

On 8/26/05 10:08 PM, "Todd Geist" <[EMAIL PROTECTED]> wrote:

> Thanks Dick
> 
> I am trying another approach, but I am stuck again.
> 
> Isn't there a way to iterate through the controls in a group?
> 
> Repeat for Control in group ID ?
> 
>do some stuff
> 
> End repeat
> 
> Or some thing like that
> 
> Thanks
> 
> Todd
> 
> 
> 
> On 8/26/05 8:37 PM, "Todd Geist" <[EMAIL PROTECTED]> wrote:
> 
>> Hello,
>> 
>> I have been playing around with ChartMaker from Flexible Learning.  It is a
>> very cool little tool!

-- 

Todd Geist
__
G e i s t   i n t e r a c t i v e 


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


Re: Rev-Ed mailing list

2005-08-27 Thread Dom
Marielle Lange <[EMAIL PROTECTED]> wrote:

> About your problems. I guess that you mean you tried to fill the form
> there:
> http://lists.runrev.com/mailman/listinfo/education-revolution
> And this didn't get your registered.

I tried again 5 hours ago, with the very same email address I use for
this list; I was told I will receive an email to confirm... Nothing as
of now!

There is no spam filter on this address!

-- 
Revolutionario

___
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


database : insert/update/delete

2005-08-27 Thread Revolution
Saturday, August 27, 2005 4:57:04 PM (GMT +02:00)

Hi,

want to add to the database what's in a text
field.

event from the button mouseup :

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
put fld "MyEdit" into MyEditVar
put "INSERT INTO mytable myfield VALUES ('" & MyEditVar & "');" into SQL
revExecuteSQL dbID, SQL
put the result into sqlResult
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

what's wrong ?

also, for the update and delete ?

have tried it, but it doesn't add to the table.
stucked here.

10x

Adrian C.

___
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: Database Query Builder

2005-08-27 Thread Bill
I use the database query builder a lot but have been gradually shifting over
to "libDatabase is a database abstraction library" by Trevor DeVore which is
much better than the database query builder for everything except easily
building a card that goes through each record of a database. I highly
recommend it especially when working with sqlite. As an example, if you look
for a record using the database query builder and it is a record that does
not exist then not only will it bring your stack down sometimes you have to
reboot the system too. Also if you ever have a database query builder
connection to the database in one of your cards or substacks and it stops
working it is impossible to track it down (so you will always -- thereafter
-- get an error message "can't connect to the database" even though all the
queries that you still use are connected).

I put the sqlite database (on mac os x) in the same folder as my runtime
revolution application as that was the only place it would work (the stack
itself can be anywhere). So I don't have any path in the field that says
"Database" just the name of the database.


On 8/27/05 7:36 AM, "Scott Kane" <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> I'm using altSQLLite for the database.
> One thing I can't seem to get right
> is the path to the table (it's in
> the same path as the executable).
> The Database Query Builder only takes
> a fixed path for the location of the
> database. i.e.  "C:\MyFolder\MyApp\mytable.db"
> 
> Is there a way to overcome this?  I've read
> the doc's - for both the Database Query Builder
> and altSQL and I seem to be missing something.
> 
> Note - I've posted this here and not as a direct
> support request to Altuit because it seems to
> be more a Rev issue than an alSQL issue - but
> of course I could be wrong - that's happened before. 
> 
> Scott
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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


Database Query Builder

2005-08-27 Thread Scott Kane
Hi folks,

I'm using altSQLLite for the database.
One thing I can't seem to get right
is the path to the table (it's in
the same path as the executable).
The Database Query Builder only takes
a fixed path for the location of the
database. i.e.  "C:\MyFolder\MyApp\mytable.db"

Is there a way to overcome this?  I've read
the doc's - for both the Database Query Builder
and altSQL and I seem to be missing something.

Note - I've posted this here and not as a direct
support request to Altuit because it seems to
be more a Rev issue than an alSQL issue - but
of course I could be wrong - that's happened before. 

Scott


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


Re: Rev-Ed mailing list (wasRe: [FR] [EN] Arcade engine)

2005-08-27 Thread Marielle Lange

Hello Dom,

That's an excellent idea (to register to the education list). We need  
more of you educators there.


About your problems. I guess that you mean you tried to fill the form  
there:

http://lists.runrev.com/mailman/listinfo/education-revolution
And this didn't get your registered.

Strange. I had myself no problem to register. Best is to contact Ro  
or Heather Nagey ([EMAIL PROTECTED]) if a manual subscription is  
needed.


Marielle
 

Marielle Lange (PhD),  Psycholinguistics, Lecturer in Psychology and  
Informatics

University of Edinburgh, UK

Homepage:  http://homepages.inf.ed.ac.uk/mlange/
Lexicall project: http://lexicall.org
Revolution-education project: http://revolution.lexicall.org

___
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