Re: How do I block the Windows keys?

2009-06-08 Thread William de Smet
Thanks for your replies but both Tiemo's and Marks suggestion doesn't work
:-(.Neither have I found a working solution for my first question. What
Craig suggested might work.
To be continued...

Greetings,

William


2009/6/8 

> Maybe I misunderstood. Do you want to invoke by simply pressing both those
> keys, or by some other event which just checks to see if both keys are
> down?
> I do the first, Mark does the second.
>
> You can always do both ;-)
>
> Craig Newman
>
>
> In a message dated 6/8/09 1:17:25 PM, li...@futilism.com writes:
>
>
> > on mouseUp
> >if the controlKey is down and the commandKey is down then show img
> > tImg
> > end mouseUp
> >
> > Hope I've understood,
> >
>
>
>
>
> **
> Download the AOL Classifieds Toolbar for local deals at your
> fingertips.
> (
> http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004
> )
> ___
> 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


AW: AW: how to check for admin rights?

2009-06-08 Thread Tiemo Hollmann TB
Hi Klaus,
thanks for this interesting link, that gives me the answers for Win
any similar seen for Mac? :)
Tiemo

> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von Klaus on-rev
> Gesendet: Montag, 8. Juni 2009 19:44
> An: How to use Revolution
> Betreff: Re: AW: how to check for admin rights?
> 
> Hi Tiemo,
> 
> there is an interesting discussion about this topic in the Rev forum:
> http://forums.runrev.com/phpBB2/viewtopic.php?t=2186
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> kl...@major.on-rev.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: experience with VBScript on Vista needed

2009-06-08 Thread Phil Davis

Hi Jim,

Have you tried "putting" tVBS just before the "do" to see what the VB 
script looks like? You might see some obvious thing malformed. Or is it 
possible there's a permissions issue? Stranger things have happened. I 
just automatically suspect permissions if the script is correct. Is your 
UAC turned off?


Phil Davis



Jim Bufalini wrote:

Ken Ray wrote:
 
  

Here's how it would be done in Rev 2.9+:

on VBS_AppActivate pTitle
  put format("set WshShell = WScript.CreateObject(\"WScript.Shell\")")
into
tVBS
  put tVBS & cr & "WshShell.AppActivate" && quote & pTitle & quote into
tVBS
  put tVBS & cr & "result = Err.number" into tVBS
  do tVBS as "VBScript"
  put the result into tResult
  if there is a file tVBSPath then
send "delete file" && quote & tVBSPath & quote to me in 1 second
  end if
  if tResult <> "" then return "Error: " & tResult
end VBS_AppActivate



Hi Ken,

After you gave this answer to Tiemo about a week or so ago, I decided to
play with running some vbscript out of rev 2.9+. The only thing I get is
"execution error." I tried your above script and get the error and then
reduced it down to two hard coded lines:

put format("set WshShell = WScript.CreateObject(\"WScript.Shell\")") into
tVBS
put tVBS & CR & format("WshShell.AppActivate \"Internet Explorer\")") into
tVBS
do tVBS as "VBScript"

I tried CRLF instead of CR (thinking maybe it was a line ending issue), put
one at the end of the second line, etc. No matter what I do I get the
execution error. IE is running and, of course, clicking on a file with these
same two lines and .vbs extension runs without error and brings IE to front.


What's the trick? ;-) Testing on Vista.

Aloha from Hawaii,

Jim Bufalini


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
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: Remote database access: How?

2009-06-08 Thread Jan Schenkel

--- On Mon, 6/8/09, Tereza Snyder  wrote:
> 
> [snip]
> 
> Why is Revdb still compatible only with MySQL versions less
> than 4.x? I can use it now for this pilot project, but I'll
> have to pursue a different solution for the full-fledged
> app.
> 
> t
> 

If I remember correctly, it has to do with the license of the connector - 
MySQLabs changed it from LGPL to GPL at one point, which would force RunRev to 
also open-source the engine if they wanted to continue shipping the driver with 
the Revolution IDE.

Jan Schenkel.
=
Quartam Reports & PDF Library for Revolution


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


  
___
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


FYI: group copy position default changes in OS X 10.5.7

2009-06-08 Thread Josh Mellicker
Just wanted to let everyone know, if you have an app that copies a  
group into another group, now with 10.5.7 you must explicitly set the  
left of that copied group.


In earlier operating systems the default copied it to the left of the  
group you are copying it into.


Sorry if this has been covered before, I am not on this list very much.
___
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: experience with VBScript on Vista needed

2009-06-08 Thread Jim Bufalini
Ken Ray wrote:
 
> Here's how it would be done in Rev 2.9+:
> 
> on VBS_AppActivate pTitle
>   put format("set WshShell = WScript.CreateObject(\"WScript.Shell\")")
> into
> tVBS
>   put tVBS & cr & "WshShell.AppActivate" && quote & pTitle & quote into
> tVBS
>   put tVBS & cr & "result = Err.number" into tVBS
>   do tVBS as "VBScript"
>   put the result into tResult
>   if there is a file tVBSPath then
> send "delete file" && quote & tVBSPath & quote to me in 1 second
>   end if
>   if tResult <> "" then return "Error: " & tResult
> end VBS_AppActivate

Hi Ken,

After you gave this answer to Tiemo about a week or so ago, I decided to
play with running some vbscript out of rev 2.9+. The only thing I get is
"execution error." I tried your above script and get the error and then
reduced it down to two hard coded lines:

put format("set WshShell = WScript.CreateObject(\"WScript.Shell\")") into
tVBS
put tVBS & CR & format("WshShell.AppActivate \"Internet Explorer\")") into
tVBS
do tVBS as "VBScript"

I tried CRLF instead of CR (thinking maybe it was a line ending issue), put
one at the end of the second line, etc. No matter what I do I get the
execution error. IE is running and, of course, clicking on a file with these
same two lines and .vbs extension runs without error and brings IE to front.


What's the trick? ;-) Testing on Vista.

Aloha from Hawaii,

Jim Bufalini





___
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: Revolution and 3D: Can You Dig it?

2009-06-08 Thread Noel

Sorry, meant that to go off list :)

 - Noel



At 12:49 PM 6/8/2009, you wrote:

If you are interested in some 3D chocolate in your Revolution peanut butter,
there could be a solution coming soon.

A little background: those who know me, know that my software publishing
company Mirye Software is also selling Revolution - in addition to Shade, a
professional 3D modeling, animation and rendering program. 3D is a missing
piece in Revolution and one reason why Rev users seek other tools that
specialize in 3D development.

Ruslan and I have a small group that's spent some free time on getting a 3D
plugin working with Revolution. Its one of those projects that needs to be
funded so that we can allocate folks full time to it for a few more months.
There's some samples working on Windows; the real meat is to get several
examples working on Windows and of course, have a solution on the Mac. A
Linux version is also possible, but likely would not be in a 1.0 release.

To finish up a 1.0 release, we are looking for some serious Revolution
developers who can either help fund it or pre-order commercial versions,
plus be willing to get their hands dirty on a private beta. Anyone involved
at the "founder" stage is going to have a greater say so in feature
implementation.

If you are interested, please send me an email. If you become a founder,
you'll get to start working with this very soon.

Best regards,

Lynn Fredricks
President
Proactive International, LLC

- Because it is about who you know.(tm)
http://www.proactive-intl.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: Setting up Enterprise

2009-06-08 Thread George C Brackett
Thanks!  One source has been my inclination also, Jacqueline; anytime  
I have to keep things in sync I have found I'm asking for trouble.   
Obviously when using only Studio I only had one source.  I guess that  
having the Windows IDE allows me to make tweaks for the Windows  
version while it is running in Windows, which surely makes tweaking  
easier.  It may also make me more fussy than necessary about  
formatting!  Hmm... maybe I could use behaviors to do things like set  
the font/size/margins of a field OS-specific if there were just  
something like a drawField message...


George

On Jun 8, 2009, at 9:09 PM, J. Landman Gay wrote:

George C Brackett wrote:
Thanks for the advice Andre.  I'm still not sure whether you  
maintain one source (Mac+PC) or two (Mac, PC).  I'm also a single  
programmer, not a group, which seems to be the best reason to use  
the version-control features of Magic Carpet.  Could you describe  
just a bit more how you use MC?


It's really hard to maintain separate source files, you're bound to  
forget to change something on the other copy. I always work with a  
single stack file, which I share across platforms. In general I do  
most of the work on my Mac, and then I open the stack on Windows  
(running on Parallels) and tweak things that need it. I keep going  
back and forth like that, checking things.


Keeping two separate copies in synch seems like double the work to me.

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

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


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


Re: Remote database access: How? and more how?

2009-06-08 Thread Kay C Lan
On Mon, Jun 8, 2009 at 9:46 PM, Tereza Snyder  wrote:

>
> Uh... ??? Does this imply that if I could figure out how and why to "set
> the password handling of the remote MySQL database to old style" I might be
> able to connect without an intermediating CGI script? I can do what I like
> with the host in this case (except shut it down) as it's not shared. But
> other (web) apps are using the same MySQL on that host, so I can't do
> anything that will affect them. Am I stuck?


Basically, my understanding is that the sever could be running a version of
mySQL server which is post 4.1. Rev uses a mySQL client version pre 4.1.
Password handling changed at mySQL 4.1 so if a post 4.1 DB has accounts
which will be using a pre 4.1 client, the server needs to be told which
accounts they are so it can use the old password mechanism.

MySQL User Manual 5.0.4 para 5.6.9 page 309 explains. If you have a
different pdf version of the  manual just search "Password Hashing in MySQL
4.1". It is very detailed and lists some pros and cons of different ways to
handle this problem.

If you go with what is described in the mySQL manual as Scenario 2, you want
to, in Terminal or Navicat when logged into mySQL as Admin:

mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('mypass');

Once this is done, the password for the account will be in pre 4.1 format so
you should be able to log into the account directly using Rev.

HTH
___
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 up Enterprise

2009-06-08 Thread J. Landman Gay

George C Brackett wrote:
Thanks for the advice Andre.  I'm still not sure whether you maintain 
one source (Mac+PC) or two (Mac, PC).  I'm also a single programmer, not 
a group, which seems to be the best reason to use the version-control 
features of Magic Carpet.  Could you describe just a bit more how you 
use MC?


It's really hard to maintain separate source files, you're bound to 
forget to change something on the other copy. I always work with a 
single stack file, which I share across platforms. In general I do most 
of the work on my Mac, and then I open the stack on Windows (running on 
Parallels) and tweak things that need it. I keep going back and forth 
like that, checking things.


Keeping two separate copies in synch seems like double the work to me.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: No Web DataGrid Yet?

2009-06-08 Thread Rick Harrison

Hi Andre,

Yeah, I thought it was probably the web plugin I'm
really waiting for.

Thanks for clarifying this!

Rick


On Jun 8, 2009, at 11:50 AM, Andre Garzia wrote:


Rick,

I think you may be mixing things. Datagrids are a visual component for
revolution, it uses buttons, fields and other controls to render  
itself and

this is only possible in a stack. There are two complementary web
technologies, one is iRev and the other is the forthcoming web  
plugin. The
iRev thing is used on the On-Rev.com service and allows you to mix  
HTML and

Revolution code but it does not allow you to use any GUI stuff such as
fields, buttons or the like. The web plugin on the other hand will  
allow you
to do that, but like flash, it will be a binary blob rect inside a  
webpage
and will require plugin instalation on all the clients, just like  
flash.


Andre





___
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 up Enterprise

2009-06-08 Thread George C Brackett
Thanks for the advice Andre.  I'm still not sure whether you maintain  
one source (Mac+PC) or two (Mac, PC).  I'm also a single programmer,  
not a group, which seems to be the best reason to use the version- 
control features of Magic Carpet.  Could you describe just a bit more  
how you use MC?


George

On Jun 8, 2009, at 6:54 PM, Andre Garzia wrote:

George,

I like using Magic Carpet by Altuit. This way, I can keep the sources  
on a
server (which can run on my on LAN or machine) and have Magic Carpet  
manage

the rest.

you can check it out at:
http://www.altuit.com/webs/altuit2/MagicCarpetCover/default.htm

:D
andre

On Mon, Jun 8, 2009 at 3:50 PM, George C Brackett
wrote:

I have a feeling the answer to this question will be so obvious I  
will want

to crawl under the rug if I get answers.  But here goes...

I have just become an Enterprise user, running Rev 3.5.0 OS X on my  
MacBook
and Rev XP on Parallels, a Windows virtual machine.  What is the  
best way to
work with both IDEs on the same project?  Is it best to have two  
source
versions, one on each operating system, and copy non-OS-specific  
code back
and forth?  Or is it better to have one source, written in one IDE,  
that's
tested and tweaked as needed on the other?  Or is there another,  
even better

way?

I've been compiling Windows versions from my Mac IDE for years, and  
have

needed only to run the Windows standalone to discover a few formatting
issues to be caught and corrected with if...thens in the single  
source.  I
anticipate there might be more complicated issues ahead. ( It also  
turns out

that ListMagic in the Windows standalone, when its created on the Mac,
thinks it isn't registered; there may be other similar issues.)  I  
look
forward to having both IDEs now, but I want to be efficient and  
effective in

using them!

George

___
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.andregarzia.com All We Do Is Code.
___
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: Revolution and 3D: Can You Dig it?

2009-06-08 Thread Noel
I'd be interested in helping beta the software, and depending on the 
price, pre-order it.


Also, we're not going to be selling on Content Paradise at this time, 
which includes our package of Shade shaders.  There are 400 shaders 
in the package.  Would that be something you guys might want to sell 
along side the new versions of Shade?


 - Noel

At 12:49 PM 6/8/2009, you wrote:

If you are interested in some 3D chocolate in your Revolution peanut butter,
there could be a solution coming soon.

A little background: those who know me, know that my software publishing
company Mirye Software is also selling Revolution - in addition to Shade, a
professional 3D modeling, animation and rendering program. 3D is a missing
piece in Revolution and one reason why Rev users seek other tools that
specialize in 3D development.

Ruslan and I have a small group that's spent some free time on getting a 3D
plugin working with Revolution. Its one of those projects that needs to be
funded so that we can allocate folks full time to it for a few more months.
There's some samples working on Windows; the real meat is to get several
examples working on Windows and of course, have a solution on the Mac. A
Linux version is also possible, but likely would not be in a 1.0 release.

To finish up a 1.0 release, we are looking for some serious Revolution
developers who can either help fund it or pre-order commercial versions,
plus be willing to get their hands dirty on a private beta. Anyone involved
at the "founder" stage is going to have a greater say so in feature
implementation.

If you are interested, please send me an email. If you become a founder,
you'll get to start working with this very soon.

Best regards,

Lynn Fredricks
President
Proactive International, LLC

- Because it is about who you know.(tm)
http://www.proactive-intl.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: Setting up Enterprise

2009-06-08 Thread Andre Garzia
George,

I like using Magic Carpet by Altuit. This way, I can keep the sources on a
server (which can run on my on LAN or machine) and have Magic Carpet manage
the rest.

you can check it out at:
http://www.altuit.com/webs/altuit2/MagicCarpetCover/default.htm

:D
andre

On Mon, Jun 8, 2009 at 3:50 PM, George C Brackett
wrote:

> I have a feeling the answer to this question will be so obvious I will want
> to crawl under the rug if I get answers.  But here goes...
>
> I have just become an Enterprise user, running Rev 3.5.0 OS X on my MacBook
> and Rev XP on Parallels, a Windows virtual machine.  What is the best way to
> work with both IDEs on the same project?  Is it best to have two source
> versions, one on each operating system, and copy non-OS-specific code back
> and forth?  Or is it better to have one source, written in one IDE, that's
> tested and tweaked as needed on the other?  Or is there another, even better
> way?
>
> I've been compiling Windows versions from my Mac IDE for years, and have
> needed only to run the Windows standalone to discover a few formatting
> issues to be caught and corrected with if...thens in the single source.  I
> anticipate there might be more complicated issues ahead. ( It also turns out
> that ListMagic in the Windows standalone, when its created on the Mac,
> thinks it isn't registered; there may be other similar issues.)  I look
> forward to having both IDEs now, but I want to be efficient and effective in
> using them!
>
> George
>
> ___
> 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.andregarzia.com All We Do Is Code.
___
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: dead click functions

2009-06-08 Thread DunbarX
Thanks.

I should know by now to look around more thoroughly.

1- Go to cursor in the dictionary.
2- Check out all the "see also's", which I am finding to be exhaustive and 
very helpful.
3- Don't ask the list until you do 1 and 2.

Craig

In a message dated 6/8/09 2:00:03 PM, jac...@hyperactivesw.com writes:


> 
> Oops, I should have added that. Rev has a "lock cursor" feature you can
> use for that:
> 




**
Download the AOL Classifieds Toolbar for local deals at your 
fingertips. 
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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: Datagrid problem in standalone

2009-06-08 Thread Beat Cornaz





I have just read the lesson, but it is not totally clear. From what
I understand, is it important that the substack "Datagrid templates"
is existent.
In the standalone settings of page 2of the standal=one settings
( "Stacks") I check the button : 'move Substacks to individual
stackfiles'.
Then I have selected my Main stack (Splash) and all of my associated
substacks, including the right substack "Datagrid templates". This
"Datagrid templates" is present in the list of stacks. It still does
not work. Any ideas?




on 5 Jun 2009 Trevor wrote :


>But does you splash stack have the dud? I don't know exactly what
>happens when the standalone builder does it's thing but try following
>the instructions in the lesson and add dud stack to your splash stack.
>Does that work?


Hi Trevor,

I followed the instructions, but it did not work. After that I  
experimented a bit over the weekend and found the 'problem'.
The substack "Data Grid Templates 12343etc" got created all right, so  
no need for the  "Data Grid Templates Dud" substack. The reason why  
the datagrids did not work in the standalone is that somehow the  
revdatagridLib did not load all right. After opening the separate  
stack "revdatagridLib" that you've sent me, I was told that the stack  
already exists in memory and I choose the 'Purge' option. Now in the  
"stacks" in the standalone settings (card 2) I saw the revdatagridLib  
as a separate stack and after completing the standalone  it works all  
right now. I suspect it might have something to do, that I started  
the project in a pre 3.x version and just recently - because of the  
datagrids :-) , I downloaded the 3,5 trial version, where I am  
completing the project.
I absolutely don't like the new editor (that was the reason I stayed  
on pre 3.x), but the datagrids and multidimensional arrays are great.


Now the datagrid works in the standalone. But I do not understand why  
it would not work in the beginning. Why do I have to explicitely load  
and include the revDatagridLib as it is already 'inside' of rev 3.5?


Thanks again,

greetings,  Beat






___
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: Remote database access: How?

2009-06-08 Thread Tereza Snyder


On Jun 8, 2009, at 11:19 AM, viktoras d. wrote:


a while ago I have produced exactly such application to one of my  
clients. Client downloads it, the app communicated with mysql  
database on a remote server. I used a relay script written in Perl  
(so it should work everywhere, because Perl is omnipresent  
nowadays). It will pass nearly all sql except for alter, truncate,  
drop, modify, create. User must post two parameters - pasword and  
sql query to communicate with the database. Unfortunately both are  
submitted as clear text


...

and

On Jun 8, 2009, at 9:38 AM, Trevor DeVore wrote:



If you have a Rev CGI and standalone that support arrayDecode/ 
arrayEncode then your life is easier. You can just make calls to the  
Rev CGI that asks for a type of result, the Rev CGI makes the query,  
converts the cursor to an array, encodes the array and then returns  
it. In the standalone you can just decode the array and you are good  
to go.




Both of these suggestions will come in handy, but guess what? I got  
Trevor's Recipes demo to directly access the DB on the remote server!  
The guy who babysits the server helped by pointing out that the MySQL  
on that server was listening only to localhost, so we set it to listen  
to any IP address. Then we had to make sure that the password sent by  
Runtime Revolution was compatible with the password created by MySQL  
(as per Ken Rays' tip ). The easiest (temporary) thing to do was use a blank password.  
Then presto! The data appeared.


Now the task is to create the db for the project, and make it do what  
I need it to do — by tomorrow.


Why is Revdb still compatible only with MySQL versions less than 4.x?  
I can use it now for this pilot project, but I'll have to pursue a  
different solution for the full-fledged app.


Thanks to all who replied,

t


--
Tereza Snyder
Califex Software, Inc.





___
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 up Enterprise

2009-06-08 Thread George C Brackett
I have a feeling the answer to this question will be so obvious I will  
want to crawl under the rug if I get answers.  But here goes...


I have just become an Enterprise user, running Rev 3.5.0 OS X on my  
MacBook and Rev XP on Parallels, a Windows virtual machine.  What is  
the best way to work with both IDEs on the same project?  Is it best  
to have two source versions, one on each operating system, and copy  
non-OS-specific code back and forth?  Or is it better to have one  
source, written in one IDE, that's tested and tweaked as needed on the  
other?  Or is there another, even better way?


I've been compiling Windows versions from my Mac IDE for years, and  
have needed only to run the Windows standalone to discover a few  
formatting issues to be caught and corrected with if...thens in the  
single source.  I anticipate there might be more complicated issues  
ahead. ( It also turns out that ListMagic in the Windows standalone,  
when its created on the Mac, thinks it isn't registered; there may be  
other similar issues.)  I look forward to having both IDEs now, but I  
want to be efficient and effective in using them!


George

___
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


Revolution and 3D: Can You Dig it?

2009-06-08 Thread Lynn Fredricks
If you are interested in some 3D chocolate in your Revolution peanut butter,
there could be a solution coming soon.

A little background: those who know me, know that my software publishing
company Mirye Software is also selling Revolution - in addition to Shade, a
professional 3D modeling, animation and rendering program. 3D is a missing
piece in Revolution and one reason why Rev users seek other tools that
specialize in 3D development.

Ruslan and I have a small group that's spent some free time on getting a 3D
plugin working with Revolution. Its one of those projects that needs to be
funded so that we can allocate folks full time to it for a few more months.
There's some samples working on Windows; the real meat is to get several
examples working on Windows and of course, have a solution on the Mac. A
Linux version is also possible, but likely would not be in a 1.0 release.

To finish up a 1.0 release, we are looking for some serious Revolution
developers who can either help fund it or pre-order commercial versions,
plus be willing to get their hands dirty on a private beta. Anyone involved
at the "founder" stage is going to have a greater say so in feature
implementation.

If you are interested, please send me an email. If you become a founder,
you'll get to start working with this very soon.

Best regards,

Lynn Fredricks
President
Proactive International, LLC

- Because it is about who you know.(tm)
http://www.proactive-intl.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: Datagrid update cell

2009-06-08 Thread Trevor DeVore

On Jun 8, 2009, at 1:57 PM, Josep wrote:

After reading it, maybe using "on EditValue" I can store into a var  
the col
x of row y so from the save button I get it and perform a selective  
batch of

updates.

Store the cols changed for every row and perform update at finalize or
perform the update after EditValue?

What you think about?


I would use CloseFieldEditor as that is triggered after the user  
actually changes a value. You could perform the save to the db at this  
point or keep a log of what changed and then perform a single update  
later on.


You can determine the column edited in the CloseFieldEditor message by  
checking the dgColumn property of the template. The CloseFieldEditor  
example in the lesson passes 'the dgColumn of me' as the second  
parameter. The line number would be accessed by 'the dgLine of me'.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: dead click functions

2009-06-08 Thread J. Landman Gay

dunb...@aol.com wrote:

Jacques.

Nice and simple. Another instance of using the idea of sending messages 
explicitly after a delay.


Sort of an implicit repeat loop, no? And the one tick delay gives the lions 
share of time back to the engine.


Right, exactly. It behaves like a repeat loop without any of the overhead.

But I cannot see how to maintain a nice indicating cursor that way, 
important since we are in that loop thingie, unless I do it the old fashioned way, 
and incur the costs thereof.


Oops, I should have added that. Rev has a "lock cursor" feature you can 
use for that:


on mouseUp -- in the button
  set the cursor to cross
  lock cursor
  send "checkChunk" to me in 1
end mouseUp

on checkChunk
  if the mouse is down then
put the clickchar -- or whatever
unlock cursor
  else
send "checkChunk" to me in 1
  end if
end checkChunk


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Datagrid update cell

2009-06-08 Thread Josep

Hi Trevor,

After reading it, maybe using "on EditValue" I can store into a var the col
x of row y so from the save button I get it and perform a selective batch of
updates. 

Store the cols changed for every row and perform update at finalize or
perform the update after EditValue?


What you think about?


Salut,
Josep
-- 
View this message in context: 
http://www.nabble.com/Datagrid-update-cell-tp23926471p23929111.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: AW: how to check for admin rights?

2009-06-08 Thread Klaus on-rev

Hi Tiemo,

there is an interesting discussion about this topic in the Rev forum:
http://forums.runrev.com/phpBB2/viewtopic.php?t=2186


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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 do I block the Windows keys?

2009-06-08 Thread DunbarX
Maybe I misunderstood. Do you want to invoke by simply pressing both those
keys, or by some other event which just checks to see if both keys are down?
I do the first, Mark does the second.

You can always do both ;-)

Craig Newman


In a message dated 6/8/09 1:17:25 PM, li...@futilism.com writes:


> on mouseUp
>    if the controlKey is down and the commandKey is down then show img 
> tImg
> end mouseUp
>
> Hope I've understood,
>




**
Download the AOL Classifieds Toolbar for local deals at your
fingertips.
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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: dead click functions

2009-06-08 Thread DunbarX
Jacques.

Nice and simple. Another instance of using the idea of sending messages
explicitly after a delay.

Sort of an implicit repeat loop, no? And the one tick delay gives the lions
share of time back to the engine.

But I cannot see how to maintain a nice indicating cursor that way,
important since we are in that loop thingie, unless I do it the old fashioned 
way,
and incur the costs thereof.

Thanks...

Craig
In a message dated 6/8/09 11:54:30 AM, jac...@hyperactivesw.com writes:


> on mouseUp -- in the button
>    send "checkChunk" to me in 1
> end mouseUp
>
> on checkChunk
>    if the mouse is down then
>      put the clickchar -- or whatever
>    else
>      send "checkChunk" to me in 1
>    end if
> end checkChunk
>




**
Download the AOL Classifieds Toolbar for local deals at your
fingertips.
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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 do I block the Windows keys?

2009-06-08 Thread Mark Smith

William for the first part I'd do something like:

on rawKeyDown pKey
  if pkey <> 65388 and pkey <> 65389 then pass rawKeyDown
end rawKeyDown

and for the second, assuming you want to show the image when clicked,

on mouseUp
  if the controlKey is down and the commandKey is down then show img  
tImg

end mouseUp

Hope I've understood,

Best,

Mark

On 8 Jun 2009, at 15:21, William de Smet wrote:


Hi there,

I am looking for a way to block the Window keys (65388 and 65389)  
but is doesn't work because I don't know how:

on rawKeyDown theKeyNumber
   if theKeyNumber is 65388 then .
   if theKeyNumber is 65389 then .
end rawKeyDown

And is there a way to use both CTRL and COMMAND key at the same  
time? When these keys are down I want to show an image and when  
these keys are up again the image is hidden.


Thanks!

Greetings,

William
___
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: Remote database access: How?

2009-06-08 Thread viktoras d.

Hi Teresa,

a hile ago I have produced exactly such application to one of my 
clients. Client downloads it, the app communicated with mysql database 
on a remote server. I used a relay script written in Perl (so it should 
work everywhere, because Perl is omnipresent nowadays). It will pass 
nearly all sql except for alter, truncate, drop, modify, create. User 
must post two parameters - pasword and sql query to communicate with the 
database. Unfortunately both are submitted as clear text

: q.pl?p=[password]&q=[sql query]
and gets back the resultset in form of tab delimited text.

Here is the Perl script's (q.pl) source:
#! /usr/bin/perl -wT
#above string should point to perl installation directory on your server

use strict;
use CGI qw(:standard);
use DBI;

print header;
my $sth;
my $q=param('q'); #reads query data
my $p=param('p'); #reads password
my @line;

if ($p eq "password_to_check_goes_here") #if submitted password is 
correct then...

{
unless ($q=~m/alter |truncate|drop |modify|create/i) #unless dangerous 
strings apear in query string then...

{
my $dbh = 
DBI->connect("DBI:mysql:database=db_name:host=localhost","db_user","db_password") 
or die "$DBI::errstr\n";

  $sth = $dbh->prepare($q);
  $sth->execute();
while (my @line = $sth->fetchrow_array)
  {
  if (@line) {print join("",@line)."\n";}
  }
 $sth->finish();
$sth = $dbh->disconnect();
}
else
{
print "\err.#1000: Access denied"; #Wrong password
}
}
else
{
print "\err.#1001:\"$p\" Access denied"; #Potentially dangerous commands 
in query

}
exit 0;

and the clientside Revolution function (stack's script) is as simple as:

function Q vQ
local myServer
local myData

put "http://dommain.net/cgi-bin/q.pl"; into myServer
 put  "p=authentication password&" & "q=" & URLencode(vQ) into myData
  post myData to URL myServer
wait 1 sec
if it is not empty then

return it
  else
return "No matches found or timeout"
exit to top
  end if
end Q

Now it can send almost any sql statement or multiple statements and get 
back the result from any handler using:

get Q("SELECT * FROM invasions")

It works but sometimes timeouts may happen :-)...

HTH
Viktoras
___
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: Datagrid update cell

2009-06-08 Thread Trevor DeVore

On Jun 8, 2009, at 11:38 AM, Josep wrote:


How can I check if the content of one cell was changed? Every row is a
entire record from the database, when the user change something and  
click
the save button, only I want to update the fields changed. I tryed  
some test

but I don't see what is the best or easy way to do that.


This relatively new lesson discusses the messages sent when the user  
double-clicks on a table cell and edits a value. It is still rough but  
does provide the necessary details.


How Do I Open a Table Cell For Editing?: 


Read through it and the API documentation that it links to. If you  
still have questions after that let me know and I can clarify where  
needed.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: dead click functions

2009-06-08 Thread J. Landman Gay

dunb...@aol.com wrote:

The goal is to be able to get info about text in an object, initiated by a 
handler in a different object, by pinpointing that text with the mouse.


The workaround, of course, is simple:

set cursor to cross
wait until the mouseClick
click at the clickLoc
put the clickChar -- or any other chunk-like click function

So I will add a "newClickChar" (and newClickText and newClickChunk...) 
function to my toolbox, and move on.


Does anyone think the unique properties of this function ought to be 
brought to the attention of Edinburg, so it does NOT change? So that the very 
difference itself is examined? Maybe not; I will be pissed if the clickLoc joins 
the ranks of its poorer cousins. 


The clickloc won't change, and the mouseclick behavior was changed long 
before Runtime acquired the engine and hasn't been altered since. But 
because there are more efficient ways to do what you want, it may not be 
much of an issue most of the time. Here's one way to do it:


on mouseUp -- in the button
  send "checkChunk" to me in 1
end mouseUp

on checkChunk
  if the mouse is down then
put the clickchar -- or whatever
  else
send "checkChunk" to me in 1
  end if
end checkChunk

This method works for both locked and unlocked fields, allows time for 
the engine to update its message queue, doesn't require a "wait" or an 
artificial click, provides time slices for background processes, and is 
technically a more efficient way to do it. Of course, I'm also a firm 
believer that whatever works for you is okay. :)


Wait statements and repeat loops are blocking, so it's good to avoid 
them when possible. There are always times where you can't, but often 
there are other ways to accomplish things.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: No Web DataGrid Yet?

2009-06-08 Thread Andre Garzia
Rick,

I think you may be mixing things. Datagrids are a visual component for
revolution, it uses buttons, fields and other controls to render itself and
this is only possible in a stack. There are two complementary web
technologies, one is iRev and the other is the forthcoming web plugin. The
iRev thing is used on the On-Rev.com service and allows you to mix HTML and
Revolution code but it does not allow you to use any GUI stuff such as
fields, buttons or the like. The web plugin on the other hand will allow you
to do that, but like flash, it will be a binary blob rect inside a webpage
and will require plugin instalation on all the clients, just like flash.

Andre

On Mon, Jun 8, 2009 at 11:50 AM, Rick Harrison wrote:

> Dear Revolutionaries,
>
> I take it that we aren't able to put a
> DataGrid on the Web yet, and that we
> are waiting for Revolution version 4.0
> before we will have that capability?
>
> Thank you for your answers in advance!
>
> Rick
>  ___
> 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.andregarzia.com All We Do Is Code.
___
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


AW: How do I block the Windows keys?

2009-06-08 Thread Tiemo Hollmann TB
Hi William, how about this:

on rawKeyDown theKeyNumber
if theKeyNumber is not 65388 and theKeyNumber is not 65389 then
pass rawKeyDown
end if
end rawKeyDown

Tiemo

> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von William de Smet
> Gesendet: Montag, 8. Juni 2009 16:22
> An: How to use Revolution
> Betreff: How do I block the Windows keys?
> 
> Hi there,
> 
> I am looking for a way to block the Window keys (65388 and 65389) but
> is doesn't work because I don't know how:
> on rawKeyDown theKeyNumber
> if theKeyNumber is 65388 then .
> if theKeyNumber is 65389 then .
> end rawKeyDown
> 
> And is there a way to use both CTRL and COMMAND key at the same time?
> When these keys are down I want to show an image and when these keys
> are up again the image is hidden.
> 
> Thanks!
> 
> Greetings,
> 
> William
> ___
> 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


Datagrid update cell

2009-06-08 Thread Josep

Hi,

How can I check if the content of one cell was changed? Every row is a
entire record from the database, when the user change something and click
the save button, only I want to update the fields changed. I tryed some test
but I don't see what is the best or easy way to do that.

Salut,
Josep
-- 
View this message in context: 
http://www.nabble.com/Datagrid-update-cell-tp23926471p23926471.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


AW: how to check for admin rights?

2009-06-08 Thread Tiemo Hollmann TB
Hello again,
I want to make your answers to my former post the easy way with yes/no:
1. there is no way to check for this
2. you have to use some shell commands, checking the registry, etc., too
complicated and not reliable
3. trying to write a file to programs is an appropriate and reliable
approach
4. Have a look into the dictionary under:
5. stupid question, you shouldn't care about dummy user

Thanks for any ideas
Tiemo

> 
> Hello,
> 
> has anybody a snipped how to check, if the user has admin rights, on Win
> and
> Mac?
> 
> What, if I just try to write a file to the program folder, would that be a
> reliable test?
> 
> Thanks for any experience
> 
> Tiemo

___
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 Web DataGrid Yet?

2009-06-08 Thread Rick Harrison

Dear Revolutionaries,

I take it that we aren't able to put a
DataGrid on the Web yet, and that we
are waiting for Revolution version 4.0
before we will have that capability?

Thank you for your answers in advance!

Rick
 
___

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: Remote database access: How?

2009-06-08 Thread Trevor DeVore

On Jun 8, 2009, at 10:29 AM, Tereza Snyder wrote:


On Jun 8, 2009, at 8:58 AM, Bernard Devlin wrote:

You could connect directly to the SQL server with few security  
worries

if your app and the server will run on the same LAN (or if they
connect via some kind of VPN/secure tunnel).



Unfortunately, the app will be downloaded by scattered users logging  
in from who-knows-where.


It looks as if my dream of simple direct access to the database is  
kaput, so I'll have to construct some kind of online infrastructure  
to mediate between my rev app and its data in MySQL.


If you have a Rev CGI and standalone that support arrayDecode/ 
arrayEncode then your life is easier. You can just make calls to the  
Rev CGI that asks for a type of result, the Rev CGI makes the query,  
converts the cursor to an array, encodes the array and then returns  
it. In the standalone you can just decode the array and you are good  
to go.


Converting from cursor to to an MD array is pretty straightforward.  
This lesson for the data grid shows how:


Converting a Database Cursor To a Data Grid Array: 


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.comr
___
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 do I block the Windows keys?

2009-06-08 Thread DunbarX
For the second part of your question, it seems that if you write two
handlers:

on controlKeyDown
   if the commandkey is down then doStuff
end controlKeydown

and

on commandKeyDown
   if the controlkey is down then doStuff
end commandKeyDown

Then "doStuff" will do whenever both keys are down.

Craig Newman


In a message dated 6/8/09 10:27:19 AM, williamdes...@gmail.com writes:


>
> And is there a way to use both CTRL and COMMAND key at the same time? 
> When these keys are down I want to show an image and when these keys 
> are up again the image is hidden.
>




**
Download the AOL Classifieds Toolbar for local deals at your
fingertips.
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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: Remote database access: How?

2009-06-08 Thread Tereza Snyder


On Jun 8, 2009, at 8:58 AM, Bernard Devlin wrote:



You could connect directly to the SQL server with few security worries
if your app and the server will run on the same LAN (or if they
connect via some kind of VPN/secure tunnel).



Unfortunately, the app will be downloaded by scattered users logging  
in from who-knows-where.


It looks as if my dream of simple direct access to the database is  
kaput, so I'll have to construct some kind of online infrastructure to  
mediate between my rev app and its data in MySQL.


Live and learn,

t



--
Tereza Snyder
Califex Software, Inc.





___
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 do I block the Windows keys?

2009-06-08 Thread William de Smet

Hi there,

I am looking for a way to block the Window keys (65388 and 65389) but  
is doesn't work because I don't know how:

on rawKeyDown theKeyNumber
   if theKeyNumber is 65388 then .
   if theKeyNumber is 65389 then .
end rawKeyDown

And is there a way to use both CTRL and COMMAND key at the same time?  
When these keys are down I want to show an image and when these keys  
are up again the image is hidden.


Thanks!

Greetings,

William
___
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: dead click functions

2009-06-08 Thread DunbarX
The trick, and I will say it again, is to use the "stable" (or perhaps "old 
fashioned") clickLoc function. It seems to have a better work ethic than 
all of its sisters.

The goal is to be able to get info about text in an object, initiated by a 
handler in a different object, by pinpointing that text with the mouse.

The workaround, of course, is simple:

set cursor to cross
wait until the mouseClick
click at the clickLoc
put the clickChar -- or any other chunk-like click function

So I will add a "newClickChar" (and newClickText and newClickChunk...) 
function to my toolbox, and move on.

Does anyone think the unique properties of this function ought to be 
brought to the attention of Edinburg, so it does NOT change? So that the very 
difference itself is examined? Maybe not; I will be pissed if the clickLoc 
joins 
the ranks of its poorer cousins. 

Love this.

Craig Newman


**
Download the AOL Classifieds Toolbar for local 
deals at your fingertips. 
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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: Remote database access: How?

2009-06-08 Thread Bernard Devlin
Tereza, By going down the cgi route, you may have more complexity and
maybe performance issues.  The rev cgi app will be returning your data
to your client app via some kind of structuring (xml, json, csv, etc).
 Effectively, the cgi app is acting as an application server, even if
it is only the translation layer between SQL and the structured data.

You could connect directly to the SQL server with few security worries
if your app and the server will run on the same LAN (or if they
connect via some kind of VPN/secure tunnel).

Bernard

On Mon, Jun 8, 2009 at 5:17 AM, Tereza Snyder wrote:
> Hi All,
>
> I told my client Rev could do it...and now I'm stuck! Here's what my app
> needs to do:
>
> 1) user downloads Rev app from web page
> 2) user runs app
> 3) user types username and password
> 4) app looks up username/password in remote MySQL database
>
> ...if found:
>
> 5) user does stuff with app that generates data
> 6) app uploads data to remote MySQL database
> 7) app thanks user and quits.
>
> I have 5) completed—a nice app that does complex stuff to collect data—and
> now its time to implement the DB end of things, beginning with making a
> connection to a remote database. I have a DB set up on a remote server that
> I can configure. I can access the tables there, etc with Navicat.
>
> Now what?
>
> To get my feet wet, I downloaded Trevor DeVore's libDataBase, and installed
> his "recipes" demo db on my local (macos x) MySQL and it runs fine. I
> installed the data in the remote MySQL, changed the "host" stuff in the demo
> to point to it, but the "recipes" stack can't connect.
>
> A great chasm of ignorance is open at my feet. I suspect there's security
> issues and many many more icky demons lurking in the depths. I HAVE ONE DAY
> TO BRIDGE THAT CHASM.
>
> Do I need to install a rev cgi on the remote server to communicate with the
> DB? Aaa! What should it do?
>
> I know for a fact that Rev apps can do this. I've seen them. But the details
> elude me.
>
> Help!
>
> t
>
>
>
>
>
> --
> Tereza Snyder
> Califex Software, Inc.
> 
>
>
>
>
> ___
> 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: Remote database access: How? and more how?

2009-06-08 Thread Tereza Snyder
Thank you Nicolas and Mark! I now discern murky shapes on the far side  
of the Chasm of Ignorance:


On Jun 8, 2009, at 1:06 AM, Nicolas Cueto wrote:



(2)  put "/PATH/TO/revdb.so" into tExternals
 set the externals of the templatestack to tExternals
 create stack "externals"
 start using stack "externals"
 -- do the sql stuff
 close stack "externals"




So. Lets say I install rev as a CGI, and have the revdb external going  
as above, what happens in "-- do the sql stuff"? How does my stack,  
which has a user name and password ready to go, invoke the cgi and get  
back a user ID? What does the "sql stuff" look like?



On Jun 8, 2009, at 1:47 AM, Mark Schonewille wrote:



A host may not allow direct access to a database. You may indeed  
need a CGI or PHP script, which I do by default nowadays. However,  
if you can connect with Navicat, I'd expect you'd be able to connect  
with any other tool, including your own. Haven't you forgotten to  
set the password handling of the remote MySQL database to old style?


Uh... ??? Does this imply that if I could figure out how and why to  
"set the password handling of the remote MySQL database to old style"  
I might be able to connect without an intermediating CGI script? I can  
do what I like with the host in this case (except shut it down) as  
it's not shared. But other (web) apps are using the same MySQL on that  
host, so I can't do anything that will affect them. Am I stuck?


On the OTHER other hand... we have Django running on that host. Could  
I set up a Django site and use http to post to it (another thing I've  
never done with Rev) and receive replies? This has the advantage of  
tying in to the other side of the project where users will register  
and download the rev tool. Is this the obvious solution?


Sigh. I am so weak on this stuff! If only I could properly visualize  
what is happening... it seems to me as if data just materializes from  
nowhere and is sent off to nowhere, all wrapped in alphabet soup  
gobbledegook which I cannot keep straight for the life o' me:  
HTTPFTPTCPIPCGIPHPSFTP...


t



--

. . .. ... . ACT AGAINST ENTROPY! . ... .. . .

___
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: dead click functions

2009-06-08 Thread DunbarX
I see all that, Jacques. The info about how events are queued vs. how HC 
did it is important to me, so thank you.

But I would not ask so much of the engine if I did not write "wait until 
the mouseClick". The handler does not finish, it waits. And the very event 
that restarts it ought to be sufficient to permit the engine to re-orient 
itself to its new conditions; for example the mouseLoc, and continue merrily in 
its role of integrating at the highest level the GUI and the real workings 
behind the scenes, the reason we love this programming paradigm so much.

Working on a workaround...

Craig


In a message dated 6/8/09 1:07:58 AM, jac...@hyperactivesw.com writes:


> Now you're asking me things that veer off into the great unknown. :) But
> to my simple user brain, I think it must be something like this:
> 
> A "mouseclick" is actually a series of several messages: mouseup,
> mousestilldown (3 of them, I think), and a mouseup. If all these aren't
> in order in the message queue, you don't have a mouseclick.
> 
> So you have a button that executes the handler on mouseup, and then you
> move the mouse to the field and click again. The messages that are sent
> are something like this:
> 
> mousemove -- in the button, several of them
> mouseleave -- in the button
> mousemove -- going to the field, lots of these (and by now the handler
> has probably already finished)
> mouseEnter -- into the field
> mousedown -- on the field
> mouseStilldown -- in the field
> mouseUp -- in the field
> 
> There are lots of intervening messages between the mouseup in the button
> and the "mouseclick" events in the field. The button script has already
> finished, probably before the cursor ever enters the field. It misses
> the "mouseclick" check. When you call the same handler from inside the
> field itself, there are no mousemoves, no mouseleaves, etc. The series
> of messages that constitute a "mouseclick" are more likely to be caught.
> 
> I think. Maybe someone else knows.
> 




**
Download the AOL Classifieds Toolbar for local deals at your 
fingertips. 
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown0004)
___
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: Basic DataGrid question

2009-06-08 Thread Trevor DeVore

On Jun 6, 2009, at 5:33 PM, Paul Gabel wrote:

This works great! But, before I put the field into the datagrid I  
need to do an operation on the third "item" in each line and put the  
result into the fourth "item" in each line. An "item," of course, is  
not an item. It's text in a column (I have vGrid set to true). But I  
can't figure out how to access it. I've tried various delimiters,  
but nothing works. I can't just say: Get the number in column 3,  
operate on it, then put the result in column 4.


Hi Paul,

It sounds like you are trying to figure out how to work with the text  
in a field rather than data in a data grid. Is that correct? If so,  
and you have your text displayed in a field with tabstops set and your  
data is being displayed in columns then your column delimiter is tab.  
You can then access column 3 of line 2 like this:


put item 3 of line 2 of myFieldText into theColValue

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Array keys oddity?

2009-06-08 Thread Bernard Devlin
Maybe sockDrawWhereNoTwoLeftSocksAreTheSame would be even better :-)

Although now we would also have to say
sockDrawWhereNoTwoLeftSocksAreTheSameAndWherePairsOfSocksCanContainOtherPairs.

Do socks really come in left and right versions?  I'm always so groggy
before my coffee I've never bothered to look at socks that closely.
Maybe I've been putting the left sock on my right foot.

I think that some programming languages may have sub-types of
dictionaries where the keys are in a stable order.  However, the
reason for them being unordered by default is for speed (there's no
need to re-structure the dictionary when 40001 is inserted between
4 and 40002).

And I suppose in English the word "array" does not have the precise
connotations that it has in programming languages.  And as we've seen,
arrays in Rev behave unlike the way most programmers would expect them
to behave.  It's just a general problem of finding terms from the
ordinary world that fit the extraordinary world of programming.

I know of newbies who have trouble understanding why the standard
arrays in other languages have such strictures (such as having to be
created with a fixed size, or having to hold only strings or only
numbers).  Those strictures are not built into our normal concept of
"array" either.

Bernard

On Mon, Jun 8, 2009 at 5:41 AM, Kay C Lan wrote:
> On Sun, Jun 7, 2009 at 6:00 PM, Bernard Devlin  wrote:
>
>> Part of the problem is that we refer to these containers in Rev as
>> "arrays".  Really what Rev has is a container that is more
>> appropriately referred to as a "dictionary".  It is commonplace in
>> other languages to expect that a dictionary object will return the
>> keys in an unsorted (and generally unpredictable order).
>>
>> Gee, I realise you are talking about programming languages but in everyday
> language 'dictionary' would invoke an image of extreme order. I'm not
> familiar with other programming languages but to use the term dictionary to
> refer to an unordered list/pair seems bizarre to me. I would think that
> would be an even harder concept to teach to a newbie, at least with array
> it's a term they may not be familiar with and therefore they can be taught
> it's unordered.
>
> As Rev is an English like language, and as you say it's a type of container
> were talking about, I suggest we use sockDraw - everyone knows the order
> they go in has nothing to do with the way they come out, plus it has a pair
> metaphor - left = key, right = value ;-)
> ___
> 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