RE: user-movable fields
If anyone needs it, I have scripts that go inside fields or images that allow for the user to move them and/or resize them from any corner. I created them before being aware of the grab command, so you might want to modify them a bit, but both the move and resize abilities seem to work quite well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Hartley Sent: Wednesday, April 13, 2005 5:48 PM To: How to use Revolution Subject: Re: user-movable fields At 05:40 06/04/2005, you wrote: >Thank you all! > >I just put a demo of the user-movable fields, and an example of how it >might be useful, in the user spaces of revonline-- "User movable fields", >under programming. > >This is so cool-- when I first thought of it this morning, I figured it >would take arduous programming. Amazing. Smart Rev--very RAD. OK this has been done in one of my unfinished apps... see my user space NIJINSKY and the stack move and resize via drag and drop. make a text field and put this into its script on mouseDown if the controlKey is down then grab me end if end mouseDown on mouseStillDown if the altKey is down then put the rect of me into tRect put the mouseH into item 3 of tRect put the mouseV into item 4 of tRect set the rect of me to tRect end if end mouseStillDown on mouseWithin if the optionKey is down then if the lockText of me is false then set the lockText of me to true end if else if the lockText of me is true then set the lockText of me to false end if end if end mouseWithin Then use control and alt to move and resize it. :-) Neat e :-) Cheers Bob >Sandy (aka Troutfoot) > >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.8 - Release Date: 13/04/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields
At 05:40 06/04/2005, you wrote: Thank you all! I just put a demo of the user-movable fields, and an example of how it might be useful, in the user spaces of revonline-- "User movable fields", under programming. This is so cool-- when I first thought of it this morning, I figured it would take arduous programming. Amazing. Smart Rev--very RAD. OK this has been done in one of my unfinished apps... see my user space NIJINSKY and the stack move and resize via drag and drop. make a text field and put this into its script on mouseDown if the controlKey is down then grab me end if end mouseDown on mouseStillDown if the altKey is down then put the rect of me into tRect put the mouseH into item 3 of tRect put the mouseV into item 4 of tRect set the rect of me to tRect end if end mouseStillDown on mouseWithin if the optionKey is down then if the lockText of me is false then set the lockText of me to true end if else if the lockText of me is true then set the lockText of me to false end if end if end mouseWithin Then use control and alt to move and resize it. :-) Neat e :-) Cheers Bob Sandy (aka Troutfoot) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.8 - Release Date: 13/04/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields
Sandy, I hadn't built a windows standalone (win xp pro), but seeing your question, I've just tried it out. With just "grab me" in the mouseup: right click does move just the field. selecting text and left click drags the text. selecting text and control left click drags amd copies the text. With just "grab me" in the mouseup (if thebutton is 3 not needed) and on/end dragStart: right click moves only the field. text cannot be moved or copied with or without control key. HTH Pat - Original Message - From: "SB" <[EMAIL PROTECTED]> To: Sent: Thursday, April 07, 2005 3:15 AM Subject: Re: user-movable fields Hi Pat and Signe, Hmmm, maybe I'm missing something, but the original code seems to work OK to move the fields either in the IDE or a standalone on OS X. Is this not true in Windows? I just had a big Windows problem in another area, so want to know these things early! thanks, Sandy This doesn't quite work. You need: on mousedown thebutton if thebutton is 3 then grab me end mousedown See Jeanne's email and the docs for mousedown in an unlocked field (right click for Win, control click Mac) It probably seemed to work for you because you were using the pointer tool in the IDE. Pat ... So, if you only want to let the user move the field, but not move or copy the text, would you use on dragStart end dragStart on mousedown thebutton if thebutton is 3 then grab me end mousedown This works, but just wondered if this was the right way. Pat Surprise surprise... when you select the text in an unlocked field and drag it to another unlocked field, you move the text to this new field. When control-clicking and dragging you put a copy of the text into the new field. (This is on Windows.) There are always new things to learn! Regards Signe Marie Sanne ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields
Hi Pat and Signe, Hmmm, maybe I'm missing something, but the original code seems to work OK to move the fields either in the IDE or a standalone on OS X. Is this not true in Windows? I just had a big Windows problem in another area, so want to know these things early! thanks, Sandy This doesn't quite work. You need: on mousedown thebutton if thebutton is 3 then grab me end mousedown See Jeanne's email and the docs for mousedown in an unlocked field (right click for Win, control click Mac) It probably seemed to work for you because you were using the pointer tool in the IDE. Pat ... So, if you only want to let the user move the field, but not move or copy the text, would you use on dragStart end dragStart on mousedown thebutton if thebutton is 3 then grab me end mousedown This works, but just wondered if this was the right way. Pat Surprise surprise... when you select the text in an unlocked field and drag it to another unlocked field, you move the text to this new field. When control-clicking and dragging you put a copy of the text into the new field. (This is on Windows.) There are always new things to learn! Regards Signe Marie Sanne ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
So, if you only want to let the user move the field, but not move or copy the text, would you use on dragStart end dragStart on mousedown thebutton if thebutton is 3 then grab me end mousedown This works, but just wondered if this was the right way. Pat - Original Message - From: "Signe Marie Sanne" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Wednesday, April 06, 2005 4:44 PM Subject: Re: user-movable fields? Jeanne A. E. DeVoto skrev: At 2:11 PM -0400 4/5/05, Thomas McGrath III wrote: Is the control key behavior just in the IDE or will it work in a standalone? Don't we need to code the control behavior for a standalone? No: Control-clicking (or right-clicking) an unlocked field sends mouseDown, mouseUp, etc. instead of opening the field for editing. This is built-in behavior of fields. (There's a note in the docs for mouseDown and mouseUp.) Surprise surprise... when you select the text in an unlocked field and drag it to another unlocked field, you move the text to this new field. When control-clicking and dragging you put a copy of the text into the new field. (This is on Windows.) There are always new things to learn! Regards Signe Marie Sanne ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
Jeanne A. E. DeVoto skrev: At 2:11 PM -0400 4/5/05, Thomas McGrath III wrote: Is the control key behavior just in the IDE or will it work in a standalone? Don't we need to code the control behavior for a standalone? No: Control-clicking (or right-clicking) an unlocked field sends mouseDown, mouseUp, etc. instead of opening the field for editing. This is built-in behavior of fields. (There's a note in the docs for mouseDown and mouseUp.) Surprise surprise... when you select the text in an unlocked field and drag it to another unlocked field, you move the text to this new field. When control-clicking and dragging you put a copy of the text into the new field. (This is on Windows.) There are always new things to learn! Regards Signe Marie Sanne ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields
Sandy, This doesn't quite work. You need: on mousedown thebutton if thebutton is 3 then grab me end mousedown See Jeanne's email and the docs for mousedown in an unlocked field (right click for Win, control click Mac) It probably seemed to work for you because you were using the pointer tool in the IDE. Pat [EMAIL PROTECTED] - Original Message - From: "SB" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 06, 2005 2:40 PM Subject: Re: user-movable fields Thank you all! I just put a demo of the user-movable fields, and an example of how it might be useful, in the user spaces of revonline-- "User movable fields", under programming. This is so cool-- when I first thought of it this morning, I figured it would take arduous programming. Amazing. Smart Rev--very RAD. Sandy (aka Troutfoot) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields
Thank you all! I just put a demo of the user-movable fields, and an example of how it might be useful, in the user spaces of revonline-- "User movable fields", under programming. This is so cool-- when I first thought of it this morning, I figured it would take arduous programming. Amazing. Smart Rev--very RAD. Sandy (aka Troutfoot) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
At 2:11 PM -0400 4/5/05, Thomas McGrath III wrote: Is the control key behavior just in the IDE or will it work in a standalone? Don't we need to code the control behavior for a standalone? No: Control-clicking (or right-clicking) an unlocked field sends mouseDown, mouseUp, etc. instead of opening the field for editing. This is built-in behavior of fields. (There's a note in the docs for mouseDown and mouseUp.) -- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
Is the control key behavior just in the IDE or will it work in a standalone? Don't we need to code the control behavior for a standalone? TOm On Apr 5, 2005, at 1:39 PM, Klaus Major wrote: Hi Sandy, Hi, Is there a way to make fields that the standalone user can write in and then move around within a window? Yes, put this into the script of your "fields to be moved" and advice the user to hold down the Control key to be able to move the fields around: on mousedown grab me end mousedown Hope that helps... For example, so that you could have a set of notecards or buttons in a window that the user can name and then arrange in different clumps by moving them with the mouse. Sandy Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
Hi Sandy, Hi, Is there a way to make fields that the standalone user can write in and then move around within a window? Yes, put this into the script of your "fields to be moved" and advice the user to hold down the Control key to be able to move the fields around: on mousedown grab me end mousedown Hope that helps... For example, so that you could have a set of notecards or buttons in a window that the user can name and then arrange in different clumps by moving them with the mouse. Sandy Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: user-movable fields?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Look up the 'tool' and 'mode' properties in the docs. That should get you started. On Apr 5, 2005, at 1:32 PM, SB wrote: Hi, Is there a way to make fields that the standalone user can write in and then move around within a window? For example, so that you could have a set of notecards or buttons in a window that the user can name and then arrange in different clumps by moving them with the mouse. Sandy ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. <[EMAIL PROTECTED]> $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep "John 3:16" John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCUszC7aqtWrR9cZoRAg0YAJ0ScBn+bVxNC39uBD7USRWF5+ONTwCfewL4 m5bSq3qXJEUiHbsoWLBbAqQ= =Y7aa -END PGP SIGNATURE- ___ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
user-movable fields?
Hi, Is there a way to make fields that the standalone user can write in and then move around within a window? For example, so that you could have a set of notecards or buttons in a window that the user can name and then arrange in different clumps by moving them with the mouse. Sandy ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution