Re: Dragging from a list field

2005-08-28 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 condition 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-28 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 condition 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-28 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: string format

2005-08-28 Thread Marielle Lange

Alex,

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 :-)


I had forgotten the spaces were to be put after the string, rather  
than before. I reckon the example you provided was really making  
excellent used of xTalk (nice lesson, thanks).


What you can do with sprintf (sorry, format in xtalk) combined with  
regular expressions is quite powerful though:


put format(%14s,A) into aDataCell
get matchtext(aDataCell, ( *)(.*), tspaces, tstr)
put _  tstr  tspaces  _
(_ only added to make the trailing spaces visible)

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


Re: Mac Classic standalones

2005-08-28 Thread Jeffrey Reynolds
Thanks Jacqueline, Ill give it a whirl! Makes sense since the thing is 
using the rev 2.5 engine for the classic build, but just wanted to 
check before working that direction and finding there was some caveat i 
was missing.


cheers,

jeff

On Aug 28, 2005, at 1:55 AM, [EMAIL PROTECTED] 
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: Spell Checker

2005-08-28 Thread Yves COPPE


Le 27 août 05 à 23:48, Sivakatirswami a écrit :


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...





Hi Jonathan,

I'm also very interested in Spell checker.

Working on Mac OS X, I found very a pity that Revolution doesn't  
support the cocoa services system of mac OS X
So I'd like to build my own. I'm a French (language) user and have a  
big file of french words.

I'd like to use this file as base of Spell Checking.

Can you show us how you proceed ?

Thank you?


Greetings.

Yves COPPE
[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-28 Thread Eric Chatonet

Hi Jacque,

Sorry, I'm coming a bit late...
I have done such a thing in a project where the user can drag and  
drop images, movies, sounds and texts from a palette that displays  
their images in order to build a multimedia document. So between two  
stacks.
I had a specific stack for this purpose displaying an image created  
on-the-fly by taking a snapshot.
This tiny stack was shown at mouseDown, covering exactly the actual  
image in the palette and then the user could drag it where he/she  
wanted.
A pending message told me where the mouseUp occurred and I acted  
accordingly.
I used this method since I wanted the stack to move smoothly to its  
starting position if it was not in a right place and this feature  
made the job much more tricky :-)
As far as I remember, a lot of code, some focus and cross-platform  
issues and so on, but a fine result :-)


Best Regards from Paris,

Eric Chatonet.

PS. If you are interested in more details, write me off list.

Le 27 août 05 à 18:42, J. Landman Gay a écrit :

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?



So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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-28 Thread Eric Chatonet

Hi Todd,

About colours convert functions you could have a look at this post:  
http://lists.runrev.com/pipermail/use-revolution/2005-May/058259.html

The list of the color names/RGB values are here:
Part1: http://article.gmane.org/gmane.comp.ide.revolution.user/58156/ 
match=color+names+chatonet
Part2: http://article.gmane.org/gmane.comp.ide.revolution.user/58157/ 
match=color+names+chatonet


In addition, you might be interested in the Color Picker plugin that  
provides all you need to manage colours with Rev.

Available for free from my website: http://www.sosmartsoftware.com/

Best Regards from Paris,

Eric Chatonet.

Le 27 août 05 à 23:12, Todd Geist a écrit :


Does anybody know how to convert ColorNames to RGB values.
As much as I like Medium Goldenrod, I need the RGB value for it  :)



So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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-28 Thread Robert Brenstein

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 
http://www.sanke.org/MetaMedia (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



Jacque, have you tried using mouseStillDown to distinguish between a 
simple, quick click (index function) and 'holding-click' (to drag)? 
You could even change the cursor for user to know when the mode 
changed.


Robert
___
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-28 Thread Alex Tweedly

Charles Hartman wrote:



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 . . .


You can't do  format(%myVard, otherVar).

But you can do
 put %  myVar  d into temp
 format(temp, otherVar)

Does that help ?

P.S. I still don't see how that let's you solve the initial problem here 
:-) :-)


--
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


libdatabase : connection problem

2005-08-28 Thread Revolution
Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)

event from button :

  local tDbA = 
  local i = 0
  local tDataA = 

put mysql into tDbA[Type]
if dbaddress is empty then put 127.0.0.1 into dbaddress
put fld dbaddress into tDbA[Host]
put bb into tDbA[Name]
put fld dbuser into tDbA[Username]
put fld dbpassword into tDbA[Password]


libDB_RegisterDatabase BBDataBase, tDbA
libDB_Connect BBDataBase

 if libDB_GetDBConnectionID(BBDataBase) is an integer then
  put status : connected into fld statuslabel
 else
  put status : NOT connected into fld statuslabel
 end if



what's wrong ?

it doesn't connect ?

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


Dragging across stacks (was: Dragging from a list field)

2005-08-28 Thread Marielle Lange

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.


Jacqueline,

Thanks for this discussion on drag and drop. The suggestion to have a  
look at the script behind the tools palette just provided me a  
solution I needed. The  possibility to drag and drop objects form a  
catalogue stack to another stack.


The script works very nicely, dragging groups rather than UI  
elements. But it is made 95% of the script written by the revolution  
team.


Before I share it, what is the status of the code behind the  
revolution UI element? Free to reuse and adapt? What mention should I  
had at the top of the script to acknowledge the origin of it?


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


Re: string format

2005-08-28 Thread Charles Hartman


On Aug 28, 2005, at 5:01 AM, Alex Tweedly wrote:

. . . the particular problem of adding spaces after  a string to  
fill it out to a specified length.


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 . . .


You can't do  format(%myVard, otherVar).

But you can do
 put %  myVar  d into temp
 format(temp, otherVar)


I'm not sure you can. This in the message box

put string into s; put %  (20 - length(s))  dinto tTmp;  
put format(tTmp, s)


produces

   -1879024420

(with a total length of 14), though 'put tTmp' produces '%14' as  
expected. Did I miss something?


Anyway, the solution in this direction that I was thinking of is  
presumably too baroque to be useful -- something like


put   into s
put %  20 - length(s)  d into tTailFmt
put myString  format(tTailFmt, s)

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: Spell Checker

2005-08-28 Thread MisterX
guys,

im working on one... palette based. checks your selection, and can use
different dictionaries.

wont be the most efficient at first...
My dictionary is ready, it's the process to check off-stack text
interactively which is kind a tricky to do...

I'll try to be quick...

cheers
Xavier 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Yves COPPE
 Sent: Sunday, August 28, 2005 09:58
 To: How to use Revolution
 Subject: Re: Spell Checker
 
 
 Le 27 août 05 à 23:48, Sivakatirswami a écrit :
 
  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...
 
 
 
 Hi Jonathan,
 
 I'm also very interested in Spell checker.
 
 Working on Mac OS X, I found very a pity that Revolution 
 doesn't support the cocoa services system of mac OS X So I'd 
 like to build my own. I'm a French (language) user and have a 
 big file of french words.
 I'd like to use this file as base of Spell Checking.
 
 Can you show us how you proceed ?
 
 Thank you?
 
 
 Greetings.
 
 Yves COPPE
 [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
 

___
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-28 Thread jbv

Hi,

What do you mean by My dictionary is ready ?
do you mean simply the words list, or did you arrange
the words in a special format ?

I'm asking because I was about to work on a spell
checker (in french) for Rev cgi, and was wondering if
we could combine our efforts... I have the feeling that
requirements for a server based spell checker would be
slightly different...
Actually, my main requirement is to access the dictionnary
both from a client side (from an app made with Rev that
is used to manage a DB) and from the server side (from all
cgi requests made from the websire associated to the DB)...
Therefore an online spell checker looks like the best solution...

Best,
JB

 guys,

 im working on one... palette based. checks your selection, and can use
 different dictionaries.

 wont be the most efficient at first...
 My dictionary is ready, it's the process to check off-stack text
 interactively which is kind a tricky to do...

 I'll try to be quick...

 cheers
 Xavier

___
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 bug 3093

2005-08-28 Thread Mark Smith

I've bugzilla'd this.

In the mac OS X CGI engine, 'the system date' returns empty, while 'the 
date' works normally. This is true for the short and long date forms, 
too, but the time seems to be ok.


Mark





___ 
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


appending to a file

2005-08-28 Thread Jon
During the last week, someone asserted that no matter how one coded an 
append to a file in Rev, it required loading the entire file into memory.


This may be true in Rev, but it is not true in Windows (and, I would 
guess, in all other OS's).  In Windows, one can open a file, seek to the 
end, and write.  The OS may have to bring a little of the start of the 
file into memory (at the open) and a little of the end of the file into 
memory (at the seek), but for a large file, this may be much faster than 
reading the whole thing into memory, appending in memory, and writing 
the whole thing out again.


It may well be that the way that the Rev engine is coded takes advantage 
of this approach: I am not sure about that.


:)

Jon
___
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: appending to a file

2005-08-28 Thread MisterX
Hi Jon

http://monsieurx.com/modules.php?name=Downloadsd_op=viewdownloadcid=11

look for SimpleFilePreview

This little demo shows you all the ropes for file action in Rev...

cheers
Xavier

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jon
 Sent: Sunday, August 28, 2005 16:02
 To: Revolution List
 Subject: appending to a file
 
 During the last week, someone asserted that no matter how one 
 coded an append to a file in Rev, it required loading the 
 entire file into memory.
 
 This may be true in Rev, but it is not true in Windows (and, 
 I would guess, in all other OS's).  In Windows, one can open 
 a file, seek to the end, and write.  The OS may have to bring 
 a little of the start of the file into memory (at the open) 
 and a little of the end of the file into memory (at the 
 seek), but for a large file, this may be much faster than 
 reading the whole thing into memory, appending in memory, and 
 writing the whole thing out again.
 
 It may well be that the way that the Rev engine is coded 
 takes advantage of this approach: I am not sure about that.
 
 :)
 
 Jon
 ___
 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: RevoBlog lives again!

2005-08-28 Thread Dom
Dom [EMAIL PROTECTED] wrote:

 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?

the reason is now known: some = were lost during the journey ;-
so, no more problem

-- 
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


[Bulk] Re: Dragging from a list field

2005-08-28 Thread Bruce Lewis
Jacque,

I use the shiftKey for the same purpose. Intuitively, the optionKey should
duplicate the line and leave the original line in place. Is that what you
are doing?

Regards,

Bruce



At 1:11 AM -0500 8/28/05, J. Landman Gay wrote:
 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.


-- 
Bruce Lewis
Lewis  Collyer
160 John Street, Suite 401
Toronto, Ontario
Canada  M5V 2E5
(416) 598-4357
FAX (416) 598-1067
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[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-28 Thread Alex Tweedly

Charles Hartman wrote:



On Aug 28, 2005, at 5:01 AM, Alex Tweedly wrote:

. . . the particular problem of adding spaces after  a string to  
fill it out to a specified length.



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 
. . .



You can't do  format(%myVard, otherVar).

But you can do
 put %  myVar  d into temp
 format(temp, otherVar)



I'm not sure you can. 


I *am* sure I can - I tried it before I sent the email :-)


This in the message box

put string into s; put %  (20 - length(s))  dinto tTmp;  
put format(tTmp, s)


produces

   -1879024420

Right. You asked it to print s (which holds string as a 14 digit 
decimal number - could have got almost anything).

The format string you wanted was %14s

(with a total length of 14), though 'put tTmp' produces '%14' as  
expected. Did I miss something?


Anyway, the solution in this direction that I was thinking of is  
presumably too baroque to be useful -- something like


put   into s
put %  20 - length(s)  d into tTailFmt
put myString  format(tTailFmt, s)


if you made it be
   put   into s
   put %  20 - length(s)  s into tTailFmt  -- note the s 
not d

   put myString  format(tTailFmt, s)

Then it will work (kind of).

It is a bit baroque - but a more serious problem is what it does in the 
case where myString is already longer than the desired length. The 
earlier solutions either left it unchanged (sounds good) or truncated to 
exactly the the desired length (also sounds good). This will *always* 
append at least one space, which doesn't sound so good to me.


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

2005-08-28 Thread Scott Rossi
Recently, 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?

Jacque:

I may be misunderstanding what you're trying to do but isn't mouseMove what
defines a drag action in a list?  When one clicks on the list, a selection
is created; when that same is selection is moved, that is what triggers the
drag.  Is your situation not like this?

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


Help: Mac OS Engines for 2.6

2005-08-28 Thread Todd Geist
Hello,

I can't download the Engine or Mac OSX.  Every time I try it says problem
downloading.  The windows engine downloaded just fine.

Anybody have any ideas?

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


Setting a object to be a bg object on old cd's

2005-08-28 Thread Bob Earp
I know I saw how to do this some time ago and should have written it down, 
sorry.  Of course, I'd also add it to webNotes if they worked ;-)


With an existing stack, I wish to add an object (fld, btn, image, etc.) to 
the stack and have it behave like a bg object in that it will appear on 
every cd.


Tnx, Bob...

Bob Earp, White Rock - BC

_
Scan and help eliminate destructive viruses from your inbound and outbound 
e-mail and attachments. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.


___
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: Setting a object to be a bg object on old cd's

2005-08-28 Thread simplsol

Hi Bob,
If it is a single object then just group it and set the group's 
background behavior to true.
If you already have a group of background objects, use Geoff Canyon's 
wonderfull revNavigator (go to the Development menu and choose plug 
ins). The Navigator will let you move your new objects into the 
background group. And they will appear on all cards in that stack. The 
Navigator is also priceless for relayering objects.

Paul Looney

-Original Message-
From: Bob Earp [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: Sun, 28 Aug 2005 12:49:26 -0700
Subject: Setting a object to be  a bg object on old cd's

   I know I saw how to do this some time ago and should have written it 
down, sorry. Of course, I'd also add it to webNotes if they worked ;-) 

 
 With an existing stack, I wish to add an object (fld, btn, image, 
etc.) to the stack and have it behave like a bg object in that it will 
appear on every cd. 

 
Tnx, Bob... 
 
Bob Earp, White Rock - BC 
 
 
 Scan and help eliminate destructive viruses from your inbound and 
outbound e-mail and attachments. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID94DI34SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*. 

 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 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: Password generator

2005-08-28 Thread Wally Rodriguez
So htpasswd works great, but I can't seem to be able to call it from  
RR. I tried to use shell with no luck.


Can anybody help me figure out how to get this to work? I already set  
the shellCommand path to the correct one (/bin/tcsh in this case).


Any suggestions?

W.

On Aug 23, 2005, at 5:31 PM, Gordon Tillman wrote:




Hi Wally,

On Aug 23, 2005, at 16:25, Wally Rodriguez wrote:




Does anyone here know where I can find an .htaccess-compatible  
password generator?


I am setting up a website generator program that will require this  
functionality, but the only thing I can find is php-based systems.






Do you have access to the htpasswd command on your system?  That is  
what I use to generate passwords manually and I'll bet that you can  
call it from RR if you need to.


-gordon
___
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: Help: Mac OS Engines for 2.6

2005-08-28 Thread J. Landman Gay

Todd Geist wrote:

Hello,

I can't download the Engine or Mac OSX.  Every time I try it says problem
downloading.  The windows engine downloaded just fine.

Anybody have any ideas?


Here:

http://lists.runrev.com/pipermail/use-revolution/2005-August/064797.html

--
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-28 Thread J. Landman Gay

Robert Brenstein wrote:

Jacque, have you tried using mouseStillDown to distinguish between a 
simple, quick click (index function) and 'holding-click' (to drag)? You 
could even change the cursor for user to know when the mode changed.


This sounded promising and exactly what I want -- and it does work to 
differentiate between click and drag. But so far I can't get it to 
recognize a drop. If I set dragData on mouseStillDown, I never get the 
remaining drag messages and the drag doesn't end. I'm still tinkering 
with it though, because so far this seems like the best idea if I can 
get it to work.


--
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: [Bulk] Re: Dragging from a list field

2005-08-28 Thread J. Landman Gay

Bruce Lewis wrote:

Jacque,

I use the shiftKey for the same purpose. Intuitively, the optionKey should
duplicate the line and leave the original line in place. Is that what you
are doing?


Good point. I can change the key designator, though ideally I don't want 
the user to have to do anything at all.


--
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-28 Thread J. Landman Gay

Scott Rossi wrote:


I may be misunderstanding what you're trying to do but isn't mouseMove what
defines a drag action in a list?  When one clicks on the list, a selection
is created; when that same is selection is moved, that is what triggers the
drag.  Is your situation not like this?


Yes, that's the situation. Looking at the message watcher, it seems I 
don't want mouseMove, I want dragMove. But initial experiments have 
failed, since it looks like dragMove eats some of the mouse messages 
just like mouseDown did.


--
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


Feeling like a dufus - was bg objects on old cards

2005-08-28 Thread Robert J. Earp
Talk about feeling like a dufus !!   I just found the answer to my question 
in the video tutorials, Object:Place Group.  Thanks to anybody who 
responded (I'm on list digests) and sorry to have caused you unnecessary work.


best, Bob...

Robert J. Earp - Ashford Training Technologies
18059 21A Avenue, South Surrey, British Columbia, Canada.  V3S 9V7
T:(604) 541 1662  Cel: (604) 612 6688 Fx: (604) 541 1686  

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.15/82 - Release Date: 25/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


OT: Another NPR puzzle

2005-08-28 Thread Jim Hurley

Here is another NPR (National Public Radio) puzzle:

From listener Frank Morgan, a mathematician at Williams College. (He 
also has a puzzle page at mathchat.org.) Think of a word whose 
meaning you can make plural by adding an A at the start. Start with a 
very common singular noun, add the letter A at the beginning, and 
you'll make the meaning plural. What word is it?


Note that the meaning is made plural, not the word itself.

The straightforward approach is not very fruitful. Listing all words 
which can be derived by  pre-pending the letter a yields 559 words. 
Hard to find the word satisfying the conditions of the puzzle from so 
large a list.


The best I was able to do was a list of 103 words to choose from. (I 
realize that that statement is enigmatic.)


To save time it is imperative that the dictionary be converted to an 
array, i.e. for each word (tWord) in the dictionary:


put  true into dictArray[tWord]

The dictionary is  compressed in a custom variable--see the Get 
started button.


This is harder than the last NPR  puzzle. In the message box run:

   go stack url http://home.infostations.net/jhurley/NPRpuzzle.rev;

It is a large file (370k) so be patient.


Jim
___
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-28 Thread J. Landman Gay

Trevor DeVore wrote:

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.


Thanks Trevor, I got a variation on this approach to work. Basically I 
set a custom property each time the selection changes in the list field. 
The custom property contains the selected text of the current line. Then 
on mouseDown I compare the current selection to the custom property 
contents and if they are different, I pass mouseDown so that 
selectionChanged will trigger. If they are the same, I assume a drag and 
set the dragData.


If the user clicks the same line as before but does not do a drag, the 
engine implements a drag-in-place that doesn't move any text, so it 
appears that nothing happened, which is good.


Once the mouseDown handler sets the dragData, the usual mouse messages 
are not sent and drag messages are sent instead. I can see why this 
might be the desirable behavior in most cases. When you are dragging, 
you aren't selecting, so you presumably don't need all the click 
messages such as selectionChanged and mouseUp. You get dragEnter, 
dragLeave, dragMove, dragDrop, etc. instead.


While trying to use mouseStillDown and/or dragMove to implement all 
this, as per other suggestions, I found that both were able to set the 
dragData okay but no dragDop was sent to the target field and so the 
drag would not complete. Then I was stuck with a drag cursor that 
wouldn't go away until I did a second click on the target field. At that 
point the data was dropped, but this behavior wasn't acceptable for 
general use.


Here is the skeleton of what I have, which pretty much works, though I 
will probably refine it some more. It does require that the user first 
click on the line to select it before they can drag it. If anyone wants 
to play with this technique and post improvements, I'm all eyes.


In the list field:

on selectionChanged
  put the selectedText of me into tTopic
  if the cCurTopic of me = tTopic then exit selectionChanged
  set the cCurTopic of me to tTopic -- store for later reference
  -- display content here, based on selection
end selectionChanged

on mouseDown
  if the cCurTopic of me  the selectedText of me
  then pass mouseDown -- a new selection; selectionChanged will run
  set the dragData[text] to the selectedtext of me -- drag will run
end mouseDown


--
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-28 Thread Robert Brenstein

Robert Brenstein wrote:

Jacque, have you tried using mouseStillDown to distinguish between 
a simple, quick click (index function) and 'holding-click' (to 
drag)? You could even change the cursor for user to know when the 
mode changed.


This sounded promising and exactly what I want -- and it does work 
to differentiate between click and drag. But so far I can't get it 
to recognize a drop. If I set dragData on mouseStillDown, I never 
get the remaining drag messages and the drag doesn't end. I'm still 
tinkering with it though, because so far this seems like the best 
idea if I can get it to work.




Hmm, have you tried using send instead of setting dragData directly 
in mouseStillDown?


Robert
___
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


How to open an image file?

2005-08-28 Thread Gajo Csaba


Hi, I just want to load a simple image from a file. I'm using Windows. So 
far I've tried these, but the image was not loaded:

put URL binfile:/C:/image.gif into image displayImage
put URL binfile:/C://image.gif into image displayImage
put URL C:/image.gif into image displayImage

When I open an image from the development area (then it works), it 
says that the source of the image is C://image.gif. So why doesn't it 
open it in case #2?

Csaba

___
[freemail] extra 1GB-os postafiókkal, Önnek már van? http://freemail.hu


___
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-28 Thread Jeanne A. E. DeVoto

At 10:38 PM -0500 8/27/2005, J. Landman Gay wrote:
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.


One thing that might be relevant to this (excuse me if this is off 
base; I haven't really been following this thread well) is that Rev's 
drag and drop starts on click, rather than when the drag begins. In 
other applications, you need to click and drag a certain number of 
pixels before the drag behavior kicks in, but the engine has no 
concept of a slop rect for dragging.

--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.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: How to open an image file?

2005-08-28 Thread Scott Kane
 put URL binfile:/C:/image.gif into image displayImage
 put URL binfile:/C://image.gif into image displayImage
 put URL C:/image.gif into image displayImage
 
 When I open an image from the development area (then it works), it 
 says that the source of the image is C://image.gif. So why doesn't it 
 open it in case #2?

Because it's formated for *nix.  Take a look at the difference in
your code at the beginning.

put URL binfile:/C:/

Is the DOS\Windows path,

put URL binfile:/C:// 

Doesn't exist as a path

put URL C:

Works because it's a window/DOS path.

Scott Kane



___
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: How to open an image file?

2005-08-28 Thread Alex Tweedly

Gajo Csaba wrote:

Hi, I just want to load a simple image from a file. I'm using Windows. So 
far I've tried these, but the image was not loaded:


put URL binfile:/C:/image.gif into image displayImage
put URL binfile:/C://image.gif into image displayImage
put URL C:/image.gif into image displayImage

 


Should be

put URL binfile:C:/image.gif into image displayImage

(i.e. no / between binfile: and the C:, and only single / each 
directory level thereafter.

(see docs for file  - the binfile page doesn't include a Windows example, but the 
file one does).



When I open an image from the development area (then it works), it 
says that the source of the image is C://image.gif. So why doesn't it 
open it in case #2?


 


Are you sure it has two /s, not just one ?I get file names like
D:/Our Documents/Alex/RunRev/Photo/IMGP0633.JPG

--
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: OT: Another NPR puzzle

2005-08-28 Thread Alex Tweedly

Jim Hurley wrote:


Here is another NPR (National Public Radio) puzzle:

From listener Frank Morgan, a mathematician at Williams College. (He 
also has a puzzle page at mathchat.org.) Think of a word whose meaning 
you can make plural by adding an A at the start. Start with a very 
common singular noun, add the letter A at the beginning, and you'll 
make the meaning plural. What word is it?


Note that the meaning is made plural, not the word itself.

The straightforward approach is not very fruitful. Listing all words 
which can be derived by  pre-pending the letter a yields 559 words. 
Hard to find the word satisfying the conditions of the puzzle from so 
large a list.


The best I was able to do was a list of 103 words to choose from. (I 
realize that that statement is enigmatic.)


To save time it is imperative that the dictionary be converted to an 
array, i.e. for each word (tWord) in the dictionary:


put  true into dictArray[tWord]

The dictionary is  compressed in a custom variable--see the Get 
started button.


This is harder than the last NPR  puzzle. In the message box run:

   go stack url http://home.infostations.net/jhurley/NPRpuzzle.rev;

It is a large file (370k) so be patient.


Interesting. Unfortunately, I know the answer because I spotted it 
looking at the 559 word list, before I got on to the next part - so that 
limits the amount I can do to improve the list without risk of  using 
that knowledge to do so.


I applied a few safe heuristics but those only got it down to 470 
alternatives.


code ahead - don't read further unless you want to read code now 













The hard work of the search, I did in 181 msecs as


repeat for each line t in tDict
if char 1 of t = a or char 1 of t = A then
  if t = lower(t) and the number of chars in t  3 then
put true into wDict[char 2 to -1 of t]
  end if
else
  if wDict[t]  and t = lower(t) then put t  cr after tResult
end if
  end repeat
 


or in half that time (90 - 92 msecs) as


  put true into stillOnA
  repeat for each line t in tDict
if stillOnA then
  if char 1 of t = a or char 1 of t = A then
if t = lower(t) and the number of chars in t  3 then
  put true into wDict[char 2 to -1 of t]
end if
  else
put false into stillOnA
if wDict[t]  and t = lower(t) then put t  cr after tResult
  end if
else
  if wDict[t] and t = lower(t) then put t  cr after tResult
end if
  end repeat
  






--
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


[OT] Anyone have an old copy of MS-File 2.0 lying around?

2005-08-28 Thread Terry Judd
I thought I'd try here first as there are a number of long-time Mac 
users on list.


I'm after a copy of MS-File 2.0 (circa early 90s) so that I can recover 
some old data files and migrate the data to a 'more accessible' format. 
In the unlikely event that someone still has a copy lying around and is 
willing to part with it, please contact me off list.


Cheers,

Terry...

Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry  Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

___
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: libdatabase : connection problem

2005-08-28 Thread Dan Shafer
Off-hand I spotted a couple of potential problem spots (haven't spent  
a lot of time analyzing whether these are the only problems):


On Aug 28, 2005, at 2:46 AM, Revolution wrote:


Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)

event from button :

  local tDbA = 
  local i = 0
  local tDataA = 
The above lines are doing nothing for you because they are incorrect  
syntax for Revolution. The expression i = 0 evaluates to either  
true or valse but does nothing with the result. IF what you intend to  
do here is to initialize local variables, then you need the slightly  
more verbose:


local tDbA
put empty into tDbA (or you can use double quotes instead of empty)
local i
put 0 into i
local tDataA
put empty into tDataA

Having said that, it is strictly optional in Transcript to use the  
word local and I'd venture to say that the vast majority of us  
never use it. Variables are local unless they're explicitly defined  
to be global. In that case, you eliminate the three local lines in  
the above and just assign the initialization values to the variables  
with the same effect.




put mysql into tDbA[Type]
if dbaddress is empty then put 127.0.0.1 into dbaddress
put fld dbaddress into tDbA[Host]


With the above two lines, I *assume* you think you've placed what's  
in the *variable* dbaddress into tDbA[Host] but you haven't.  
Because you either need to put dbaddress into field dbaddress or  
use put dbaddress into tDbA[Host] for this to work. Right now,  
there's no connection between the address generated by the second  
line and the array setup on the third line.


Given what I see in the rest of your code, my guess is you want to  
have the second line be:


if fld dbaddress is empty then put 127.0.0.1 nto fld dbaddress


put bb into tDbA[Name]
put fld dbuser into tDbA[Username]
put fld dbpassword into tDbA[Password]


libDB_RegisterDatabase BBDataBase, tDbA
libDB_Connect BBDataBase

 if libDB_GetDBConnectionID(BBDataBase) is an integer then
  put status : connected into fld statuslabel
 else
  put status : NOT connected into fld statuslabel
 end if



what's wrong ?

it doesn't connect ?

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



___
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-28 Thread Sivakatirswami
This may be very retro but in my own PIM I use a check box...  
depends on the work flow, if your users will be using the stack 80%  
of the time --clicking to select a line(s) and not drag it-- then  
this works.. they check the box only when they want to drag...


of course, if the actions of clicking to see content and dragging to  
make lists are interleaved in the usage flow, it would be a big pain,  
but maybe there is some other facile way to set a flag to indicate  
the field state, that would be more fluid... in one small app I use a  
mouse gesture user simply waves over a button, the button change to  
indicate change of state on the field, field now reacts differently..  
user waves over btn again, button toggles its own name and the field  
state... by avoiding the click down on the button, the use feels it  
is more fluid.


IN other  contexts I use the option key down to indicate now I'm  
draggable...



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

 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.


___
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 bug 3093

2005-08-28 Thread Sivakatirswami

confirmed here...

sivakatirswami

On Aug 28, 2005, at 4:02 AM, Mark Smith wrote:


I've bugzilla'd this.

In the mac OS X CGI engine, 'the system date' returns empty, while  
'the date' works normally. This is true for the short and long date  
forms, too, but the time seems to be ok.


Mark





___ 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



___
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: libdatabase : connection problem

2005-08-28 Thread Mark Wieder
Dan-

Sunday, August 28, 2005, 6:12:39 PM, you wrote:

   local tDbA = 
   local i = 0
   local tDataA = 
 The above lines are doing nothing for you because they are incorrect
 syntax for Revolution. The expression i = 0 evaluates to either  
 true or valse but does nothing with the result. IF what you intend to
 do here is to initialize local variables, then you need the slightly
 more verbose:

Well, incorrect syntax or not, they do what they appear to. I don't do
this myself, opting for the verbose method, and I think I remember
some discussion here about possible problems with this, but a simple
test shows that all three variables do indeed get initialized
properly.

-- 
-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: libdatabase : connection problem

2005-08-28 Thread Trevor DeVore

On Aug 28, 2005, at 2:46 AM, Revolution wrote:


if dbaddress is empty then put 127.0.0.1 into dbaddress
put fld dbaddress into tDbA[Host]


You are checking if a variable is empty and putting 127.0.0.1 into  
the variable.  You then place the contents of the field into the Host  
key.


Try

if text of field dbaddress is empty then set text of field  
dbaddress to 127.0.0.1



--
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: libdatabase : connection problem

2005-08-28 Thread Trevor DeVore

On Aug 28, 2005, at 6:12 PM, Dan Shafer wrote:

Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)

event from button :

  local tDbA = 
  local i = 0
  local tDataA = 

The above lines are doing nothing for you because they are  
incorrect syntax for Revolution. The expression i = 0 evaluates  
to either true or valse but does nothing with the result. IF what  
you intend to do here is to initialize local variables, then you  
need the slightly more verbose:


local tDbA
put empty into tDbA (or you can use double quotes instead of empty)
local i
put 0 into i
local tDataA
put empty into tDataA


Dan,

Declaring a variable as local initializes to an empty variable. So -

local tDbA,tDataA

would initialize both variables as empty.  For example:

on doSomething
local tVar

put tVar cr tVar2
end doSomething

Would display and empty line, a return and tVar2 on the second line  
in the message box.  You can initialize a variable to value as well.


on doSomething
local i = 0

put i
end doSomething

would print 0 in the message box.

Having said that, it is strictly optional in Transcript to use the  
word local and I'd venture to say that the vast majority of us  
never use it. Variables are local unless they're explicitly defined  
to be global. In that case, you eliminate the three local lines  
in the above and just assign the initialization values to the  
variables with the same effect.


The person probably got the code from original libDatabase example  
code.  Back in the day I used to initialize variables with  before  
I knew that just declaring them set them to empty.Now I just  
define all local variables en mass:


local tVar1,tVar2
local tDataA,tWhateverA

For integers, such as i, I used to always initialize them to 0.  Now  
I only initialize them with 0 if there is a possibility of a math  
error later on in the code that could be caused by having a non- 
numeric value.


It is true that most people don't declare local variables but I do in  
all of my code.



--
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-28 Thread Trevor DeVore

On Aug 28, 2005, at 3:06 PM, J. Landman Gay wrote:


Here is the skeleton of what I have, which pretty much works,  
though I will probably refine it some more. It does require that  
the user first click on the line to select it before they can drag  
it. If anyone wants to play with this technique and post  
improvements, I'm all eyes.


In the list field:

on selectionChanged
  put the selectedText of me into tTopic
  if the cCurTopic of me = tTopic then exit selectionChanged
  set the cCurTopic of me to tTopic -- store for later reference
  -- display content here, based on selection
end selectionChanged

on mouseDown
  if the cCurTopic of me  the selectedText of me
  then pass mouseDown -- a new selection; selectionChanged will run
  set the dragData[text] to the selectedtext of me -- drag will run
end mouseDown


Why not something like this.  It will allow for a selection and a  
drag/drop all at once.  I haven't tested it but hopefully it would work.


local sCurrentLine

on mouseDown
if hilitedLine of me  sCurrentLine then
-- DISPLAY CONTENT BASED ON SELECTION

put hilitedLine of me into sCurrentLine
end if

-- CHECK FOR DRAG
get milliseconds()
repeat
if milliseconds() - it  200 then
set dragData[text] to the selectedText of me
exit repeat
end if

if mouse(1) is up then exit repeat
end repeat

pass mouseDown
end mouseDown

Having the bug fixed where mouseDown code can kill selectionChanged  
would be nice.


--
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-28 Thread J. Landman Gay

Trevor DeVore wrote:

Why not something like this.  It will allow for a selection and a  
drag/drop all at once.  I haven't tested it but hopefully it would work.


Yes, works great! Perfect, in fact. Thanks so much, this is exactly what 
I was looking for. After reading your bug report, I was going to try 
heading in this direction but you have saved me some work.


Love this list. Thanks to all who replied.



local sCurrentLine

on mouseDown
if hilitedLine of me  sCurrentLine then
-- DISPLAY CONTENT BASED ON SELECTION

put hilitedLine of me into sCurrentLine
end if

-- CHECK FOR DRAG
get milliseconds()
repeat
if milliseconds() - it  200 then
set dragData[text] to the selectedText of me
exit repeat
end if

if mouse(1) is up then exit repeat
end repeat

pass mouseDown
end mouseDown

Having the bug fixed where mouseDown code can kill selectionChanged  
would be nice.





--
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 across stacks (was: Dragging from a list field)

2005-08-28 Thread J. Landman Gay

Marielle Lange wrote:

Before I share it, what is the status of the code behind the  revolution 
UI element? Free to reuse and adapt? What mention should I  had at the 
top of the script to acknowledge the origin of it?


I'm not sure there is a policy about it, maybe one of the RR people will 
respond. But I am pretty sure that it is okay to reuse and modify the 
scripts, as many others have done it without repercussions. An 
acknowledgement in your script somewhere would probably be appreciated.


--
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: libdatabase : connection problem

2005-08-28 Thread Chipp Walters

Dan,

Except for script locals, which I (and I believe manyu others) use a 
lot. They're a lot like globals, except only available script wide, and 
great for libraries. To use them you only need to put the local 
declaration outside the handler and functions which use it.


On caveat though: Remember your local variables always get reset when 
recompiling a script, so using a 'checkLocals' handler helps:-)


Dan Shafer wrote:

Having said that, it is strictly optional in Transcript to use the  word 
local and I'd venture to say that the vast majority of us  never use 
it. 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 8/26/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


Emergency Mouse Polling Help

2005-08-28 Thread Jonathan D. Kotthoff
I need to know if I can use Rev to develop a background app on Windows, 
that determines and launches an event if a key is depressed, I know how 
to do this in a standard app, but not in the background...


Thanks,

Jonathan
[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