Re: Drag and Drop to Item in List Field

2010-11-18 Thread J. Landman Gay

On 11/18/10 6:41 PM, Bill Vlahos wrote:

Getting closer now.

If I put the following script in the source list field the correct text is sent 
in the drag.
on mouseDown
set the dragData["text"] to the selectedText
end mouseDown

Target field script hilites the correct line in the list
on dragMove
   set the hilitedLines of me to (word 2 of the mouseLine)
end dragMove

However, if I also put this script in the target field script nothing happens:
on dragDrop
put the dragData["text"]
pass dragDrop
end dragDrop

What I need is the dragged text and the target field line. I believe I can only 
get that from the target field not the source field but I can't figure out how.


Add a "dragEnter" handler to the target field:

on dragEnter
  set the dragAction to "copy" -- there are other options
end dragEnter

on dragMove
  set the hilitelines of me to (word 2 of the mouseline)
end dragMove

on dragDrop
  put the dragData["text"}
  pass dragDrop
end dragDrop

As is, the dragdrop handler just puts the text into the message box. If 
you want it dropped into the field, supply a position, like "put the 
dragData["text"] & cr before the mouseline".


--
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: Drag and Drop to Item in List Field

2010-11-18 Thread Bill Vlahos
Getting closer now.

If I put the following script in the source list field the correct text is sent 
in the drag.
on mouseDown
   set the dragData["text"] to the selectedText
end mouseDown

Target field script hilites the correct line in the list
on dragMove
  set the hilitedLines of me to (word 2 of the mouseLine)
end dragMove

However, if I also put this script in the target field script nothing happens:
on dragDrop
   put the dragData["text"]
   pass dragDrop
end dragDrop

What I need is the dragged text and the target field line. I believe I can only 
get that from the target field not the source field but I can't figure out how.

Bill Vlahos

On Nov 16, 2010, at 4:10 PM, Bill Vlahos wrote:

> Terry and Marty,
> 
> Thanks for the suggestions. They both work.
> 
> Since this is a drag and drop scenario this script looks like it does what I 
> want.
> on dragMove
>   set the hilitedLines of me to (word 2 of the mouseLine)
> end dragMove
> 
> Bill
> 
> On Nov 16, 2010, at 3:52 PM, Terry Judd wrote:
> 
>> How about this...
>> 
>> on mouseMove
>>   set the hilitedLines of me to (word 2 of the mouseLine)
>> end mouseMove
>> 
>> Terry...
>> 
>> 
>> On 17/11/10 10:39 AM, "Bill Vlahos"  wrote:
>> 
>>> The following script works very well with one problem. This script hilites 
>>> the
>>> line correctly but just keeps hiliting lines as I move the mouse around and
>>> they stay hilited.
>>> 
>>> Make a scrolling field with some lines of text and put this handler in it:
>>> 
>>> on mouseWithin
>>>  set the backgroundColor of the mouseLine to "yellow"
>>> end mouseWithin
>>> 
>>> How do I have it only hilite one line at a time?
>>> 
>>> Bill Vlahos
>>> 
>>> On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:
>>> 
>>>> I have a list of categories and I want to drag and drop some text from a 
>>>> list
>>>> field onto one of the categories in the target list field. The line of text
>>>> should hilite on the drag (before the drop) so I know which item it is 
>>>> going
>>>> to I should drag into.
>>>> 
>>>> I can get most of the coding for drag and drop but there are some things I
>>>> don't know.
>>>> 1. How do I hilite the line of text in the list field the mouse is over?
>>>> 2. How do I get the line of text in the target list field when the users
>>>> drops the mouse?
>>>> 
>>>> Bill Vlahos
>>>> _
>>>> InfoWallet (http://www.infowallet.com) is about keeping your important life
>>>> information with you, accessible, and secure.
>>>> 
>>>> ___
>>>> use-revolution mailing list
>>>> use-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
>> 
>> --
>> Dr Terry Judd | Senior Lecturer in Medical Education
>> Medical Education Unit
>> Melbourne Medical School
>> The University of Melbourne
>> 
>> 
>> ___
>> use-revolution mailing list
>> use-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: Drag and Drop to Item in List Field

2010-11-16 Thread Bill Vlahos
Terry and Marty,

Thanks for the suggestions. They both work.

Since this is a drag and drop scenario this script looks like it does what I 
want.
on dragMove
   set the hilitedLines of me to (word 2 of the mouseLine)
end dragMove

Bill

On Nov 16, 2010, at 3:52 PM, Terry Judd wrote:

> How about this...
> 
> on mouseMove
>set the hilitedLines of me to (word 2 of the mouseLine)
> end mouseMove
> 
> Terry...
> 
> 
> On 17/11/10 10:39 AM, "Bill Vlahos"  wrote:
> 
>> The following script works very well with one problem. This script hilites 
>> the
>> line correctly but just keeps hiliting lines as I move the mouse around and
>> they stay hilited.
>> 
>> Make a scrolling field with some lines of text and put this handler in it:
>> 
>> on mouseWithin
>>   set the backgroundColor of the mouseLine to "yellow"
>> end mouseWithin
>> 
>> How do I have it only hilite one line at a time?
>> 
>> Bill Vlahos
>> 
>> On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:
>> 
>>> I have a list of categories and I want to drag and drop some text from a 
>>> list
>>> field onto one of the categories in the target list field. The line of text
>>> should hilite on the drag (before the drop) so I know which item it is going
>>> to I should drag into.
>>> 
>>> I can get most of the coding for drag and drop but there are some things I
>>> don't know.
>>> 1. How do I hilite the line of text in the list field the mouse is over?
>>> 2. How do I get the line of text in the target list field when the users
>>> drops the mouse?
>>> 
>>> Bill Vlahos
>>> _
>>> InfoWallet (http://www.infowallet.com) is about keeping your important life
>>> information with you, accessible, and secure.
>>> 
>>> ___
>>> use-revolution mailing list
>>> use-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
> 
> --
> Dr Terry Judd | Senior Lecturer in Medical Education
> Medical Education Unit
> Melbourne Medical School
> The University of Melbourne
> 
> 
> ___
> use-revolution mailing list
> use-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: Drag and Drop to Item in List Field

2010-11-16 Thread Marty Knapp
On a locked field with "list behavior" set and this script in the field 
works for me.  I found this somewhere (can't remember to give credit):


on mouseMove
   put word 2 of the mouseLine into myLineNr
   if myLineNr is not empty and the hilitedline of me is not myLineNr then
  set the hilitedLine of me to myLineNr
   end if
end mouseMove

Marty Knapp

The following script works very well with one problem. This script hilites the 
line correctly but just keeps hiliting lines as I move the mouse around and 
they stay hilited.

Make a scrolling field with some lines of text and put this handler in it:

on mouseWithin
set the backgroundColor of the mouseLine to "yellow"
end mouseWithin

How do I have it only hilite one line at a time?

Bill Vlahos

On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:


I have a list of categories and I want to drag and drop some text from a list 
field onto one of the categories in the target list field. The line of text 
should hilite on the drag (before the drop) so I know which item it is going to 
I should drag into.

I can get most of the coding for drag and drop but there are some things I 
don't know.
1. How do I hilite the line of text in the list field the mouse is over?
2. How do I get the line of text in the target list field when the users drops 
the mouse?

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

___
use-revolution mailing list
use-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: Drag and Drop to Item in List Field

2010-11-16 Thread Terry Judd
How about this...

on mouseMove
set the hilitedLines of me to (word 2 of the mouseLine)
end mouseMove

Terry...


On 17/11/10 10:39 AM, "Bill Vlahos"  wrote:

> The following script works very well with one problem. This script hilites the
> line correctly but just keeps hiliting lines as I move the mouse around and
> they stay hilited.
> 
> Make a scrolling field with some lines of text and put this handler in it:
> 
> on mouseWithin
>set the backgroundColor of the mouseLine to "yellow"
> end mouseWithin
> 
> How do I have it only hilite one line at a time?
> 
> Bill Vlahos
> 
> On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:
> 
>> I have a list of categories and I want to drag and drop some text from a list
>> field onto one of the categories in the target list field. The line of text
>> should hilite on the drag (before the drop) so I know which item it is going
>> to I should drag into.
>> 
>> I can get most of the coding for drag and drop but there are some things I
>> don't know.
>> 1. How do I hilite the line of text in the list field the mouse is over?
>> 2. How do I get the line of text in the target list field when the users
>> drops the mouse?
>> 
>> Bill Vlahos
>> _
>> InfoWallet (http://www.infowallet.com) is about keeping your important life
>> information with you, accessible, and secure.
>> 
>> ___
>> use-revolution mailing list
>> use-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

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne


___
use-revolution mailing list
use-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: Drag and Drop to Item in List Field

2010-11-16 Thread Bill Vlahos
The following script works very well with one problem. This script hilites the 
line correctly but just keeps hiliting lines as I move the mouse around and 
they stay hilited.

Make a scrolling field with some lines of text and put this handler in it:

on mouseWithin
   set the backgroundColor of the mouseLine to "yellow"
end mouseWithin

How do I have it only hilite one line at a time? 

Bill Vlahos

On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:

> I have a list of categories and I want to drag and drop some text from a list 
> field onto one of the categories in the target list field. The line of text 
> should hilite on the drag (before the drop) so I know which item it is going 
> to I should drag into.
> 
> I can get most of the coding for drag and drop but there are some things I 
> don't know.
> 1. How do I hilite the line of text in the list field the mouse is over?
> 2. How do I get the line of text in the target list field when the users 
> drops the mouse?
> 
> Bill Vlahos
> _
> InfoWallet (http://www.infowallet.com) is about keeping your important life 
> information with you, accessible, and secure.
> 
> ___
> use-revolution mailing list
> use-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


Drag and Drop to Item in List Field

2010-11-12 Thread Bill Vlahos
I have a list of categories and I want to drag and drop some text from a list 
field onto one of the categories in the target list field. The line of text 
should hilite on the drag (before the drop) so I know which item it is going to 
I should drag into.

I can get most of the coding for drag and drop but there are some things I 
don't know.
1. How do I hilite the line of text in the list field the mouse is over?
2. How do I get the line of text in the target list field when the users drops 
the mouse?

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

___
use-revolution mailing list
use-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 Drag and Drop

2010-09-08 Thread zryip theSlug
On Wed, Sep 8, 2010 at 6:05 PM, Peter Haworth  wrote:
> Thanks!  That's weird, I searched the forum for "drag" and "drop" and my
> thread didn't appear in the results.  Got the latest version of DGH by the
> way, just haven't had time to test it more yet.

Pete,

No problem with that.

Give also a try to the experiment 15 in my lab. Should be a start for
your drag & drop needs.
The link is in my previous reply.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-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 Drag and Drop

2010-09-08 Thread Peter Haworth
Thanks!  That's weird, I searched the forum for "drag" and "drop" and  
my thread didn't appear in the results.  Got the latest version of DGH  
by the way, just haven't had time to test it more yet.


Pete Haworth

On Sep 8, 2010, at 7:45 AM, use-revolution-requ...@lists.runrev.com  
wrote:



Message: 13
Date: Tue, 7 Sep 2010 22:26:28 +0200
From: zryip theSlug 
Subject: Re: Datagrid Drag and Drop
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Tue, Sep 7, 2010 at 9:42 PM, Peter Haworth  
 wrote:
Months ago, I got some guidance form Trevor on how to drag and drop  
into and
out of a datagrid.  I ended up not needing to do it at the time but  
now I do
and I can't find the notes I made on it.  I've searched the online  
datagrid
documentation and can't find anything on this subject.  Can anyone  
point me

in the right direction?
Thanks,

Pete Haworth


Hi Pete,

That is the thread you have opened months ago:
http://forums.runrev.com/phpBB2/viewtopic.php?p=17333.

For reorder lines in the same Data Grid, install the copy of the Data
Grid Helper I sent you today.
Select a Datagrid, then go to the Scripts topics of the properties
palette. You have a menu "Reorder lines". Click on the "Install
script" button to fill the datagrid group with the code you need.

This is good opportunity to test this new DGH's feature. ;)


Regards,
--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc


___
use-revolution mailing list
use-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 Drag and Drop

2010-09-07 Thread zryip theSlug
On Tue, Sep 7, 2010 at 10:26 PM, zryip theSlug  wrote:
> On Tue, Sep 7, 2010 at 9:42 PM, Peter Haworth  wrote:
>> Months ago, I got some guidance form Trevor on how to drag and drop into and
>> out of a datagrid.  I ended up not needing to do it at the time but now I do
>> and I can't find the notes I made on it.  I've searched the online datagrid
>> documentation and can't find anything on this subject.  Can anyone point me
>> in the right direction?
>> Thanks,
>>
>> Pete Haworth
>
> Hi Pete,
>
> That is the thread you have opened months ago:
> http://forums.runrev.com/phpBB2/viewtopic.php?p=17333.
>
> For reorder lines in the same Data Grid, install the copy of the Data
> Grid Helper I sent you today.
> Select a Datagrid, then go to the Scripts topics of the properties
> palette. You have a menu "Reorder lines". Click on the "Install
> script" button to fill the datagrid group with the code you need.
>
> This is good opportunity to test this new DGH's feature. ;)
>


And it was a good exercise for an experiment stack. 8-)
I have just uploaded a new stack in the Slug's lab.

You can download this stack here:
http://www.aslugontheroad.co.cc/index.php?option=com_phocadownload&view=category&download=11:experiment-15-drag-drop-in-dg&id=7:data-grid&Itemid=63



Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-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 Drag and Drop

2010-09-07 Thread zryip theSlug
On Tue, Sep 7, 2010 at 9:42 PM, Peter Haworth  wrote:
> Months ago, I got some guidance form Trevor on how to drag and drop into and
> out of a datagrid.  I ended up not needing to do it at the time but now I do
> and I can't find the notes I made on it.  I've searched the online datagrid
> documentation and can't find anything on this subject.  Can anyone point me
> in the right direction?
> Thanks,
>
> Pete Haworth

Hi Pete,

That is the thread you have opened months ago:
http://forums.runrev.com/phpBB2/viewtopic.php?p=17333.

For reorder lines in the same Data Grid, install the copy of the Data
Grid Helper I sent you today.
Select a Datagrid, then go to the Scripts topics of the properties
palette. You have a menu "Reorder lines". Click on the "Install
script" button to fill the datagrid group with the code you need.

This is good opportunity to test this new DGH's feature. ;)


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-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 Drag and Drop

2010-09-07 Thread Peter Haworth
Months ago, I got some guidance form Trevor on how to drag and drop  
into and out of a datagrid.  I ended up not needing to do it at the  
time but now I do and I can't find the notes I made on it.  I've  
searched the online datagrid documentation and can't find anything on  
this subject.  Can anyone point me in the right direction?

Thanks,

Pete Haworth









___
use-revolution mailing list
use-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: Drag and Drop on revBrowser...

2010-06-26 Thread Martin Koob

> >> 
> >> put the mouseScreenLoc into tLoc
> >> set the mouseScreenLoc to the topleft of this stack
> >> set the mouseScreenLoc to tLoc
> >> 

shouldn't this be the screenMouseLoc?

Martin

___
use-revolution mailing list
use-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: Drag and Drop on revBrowser...

2010-06-24 Thread Terry Judd
Try using the browserBeforeNavigate message instead.

Terry...


On 25/06/10 6:36 AM, "Simon Lord"  wrote:

> What I meant by *nothing* is that even the browserNavigateComplete is
> only sent/registered if the mouse exits the revBrowser.  If I don't
> move the mouse, or I stay with the revBrowser then the messages get
> queued up.  When I exit the revBrowser I get a few dozen beeps and url
> refreshes.  This feature is surely broke.
> 
> on browserNavigateComplete pId, pUrl
>beep
>forceRefreshURL
> end browserNavigateComplete
> 
> 
> 
> 
> 
> On Thu, Jun 24, 2010 at 4:30 PM, Simon Lord  wrote:
>> I even have a beep message being sent.  Nothing.
>> 
>> I also tried to capture the browserClick but it never works.  At all.
>> 
>> I'm running 10.6.4‹this is starting to smell like a bug I cannot work around.
>> 
>> 
>> On Thu, Jun 24, 2010 at 4:15 PM, Jerry Daniels  wrote:
>>> Works every time here. What OS? You're sure your cursor-move code is
>>> executing each time.
>>> 
>>> Admittedly, a complete hack of a solution. Shameful, really. Ok, I'm over
>>> it.
>>> 
>>> Best,
>>> 
>>> Jerry Daniels
>>> 
>>> Follow the Rodeo discussion:
>>> http://rodeoapps.com/rodeo-discuss-among-yourselves
>>> 
>>> 
>>> 
>>> On Jun 24, 2010, at 3:11 PM, Simon Lord wrote:
>>> 
 Tried that.  Odd that it works for you.  It only works the first time
 for me, every subsequent link still refuses to update the URL until
 the mouse exits the revBrowser.
 
 
 
 On Thu, Jun 24, 2010 at 4:05 PM, Jerry Daniels 
 wrote:
> Simon,
> 
> I ran into this with Rodeo's built-in browser and I found a way to make my
> URL field update after navigating to another page--which sounds a lot like
> your problem.
> 
> put the mouseScreenLoc into tLoc
> set the mouseScreenLoc to the topleft of this stack
> set the mouseScreenLoc to tLoc
> 
> This was on Mac Snow Leopard. I could not tell the cursor was moved and my
> URL field updated immediately. I did ran this cde within the
> browserNavigateComplete message. handler
> 
> HTH
> 
> Best,
> 
> Jerry Daniels
> 
> Follow the Rodeo discussion:
> http://rodeoapps.com/rodeo-discuss-among-yourselves
> 
> 
> 
> On Jun 24, 2010, at 1:09 PM, Simon Lord wrote:
> 
>> So the issue of not updating the URL until the mouse leaves the
>> revBrowser is a bit of a pain.  When I drag an image from the desktop
>> to the stack the image immediately pops up in the browser as expected.
>> But the URL doesn't upload until the mouse is *outside* the bounds of
>> the browser.  Since the mouse *must* be within the bounds to drop the
>> image it means this is a fairly repeatable bug.
>> 
>> Is there any way to detect a drag&drop on the revBrowser so I can
>> force a URL refresh?
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne


___
use-revolution mailing list
use-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: Drag and Drop on revBrowser...

2010-06-24 Thread Simon Lord
What I meant by *nothing* is that even the browserNavigateComplete is
only sent/registered if the mouse exits the revBrowser.  If I don't
move the mouse, or I stay with the revBrowser then the messages get
queued up.  When I exit the revBrowser I get a few dozen beeps and url
refreshes.  This feature is surely broke.

on browserNavigateComplete pId, pUrl
   beep
   forceRefreshURL
end browserNavigateComplete





On Thu, Jun 24, 2010 at 4:30 PM, Simon Lord  wrote:
> I even have a beep message being sent.  Nothing.
>
> I also tried to capture the browserClick but it never works.  At all.
>
> I'm running 10.6.4—this is starting to smell like a bug I cannot work around.
>
>
> On Thu, Jun 24, 2010 at 4:15 PM, Jerry Daniels  wrote:
>> Works every time here. What OS? You're sure your cursor-move code is 
>> executing each time.
>>
>> Admittedly, a complete hack of a solution. Shameful, really. Ok, I'm over it.
>>
>> Best,
>>
>> Jerry Daniels
>>
>> Follow the Rodeo discussion:
>> http://rodeoapps.com/rodeo-discuss-among-yourselves
>>
>>
>>
>> On Jun 24, 2010, at 3:11 PM, Simon Lord wrote:
>>
>>> Tried that.  Odd that it works for you.  It only works the first time
>>> for me, every subsequent link still refuses to update the URL until
>>> the mouse exits the revBrowser.
>>>
>>>
>>>
>>> On Thu, Jun 24, 2010 at 4:05 PM, Jerry Daniels  wrote:
 Simon,

 I ran into this with Rodeo's built-in browser and I found a way to make my 
 URL field update after navigating to another page--which sounds a lot like 
 your problem.

 put the mouseScreenLoc into tLoc
 set the mouseScreenLoc to the topleft of this stack
 set the mouseScreenLoc to tLoc

 This was on Mac Snow Leopard. I could not tell the cursor was moved and my 
 URL field updated immediately. I did ran this cde within the 
 browserNavigateComplete message. handler

 HTH

 Best,

 Jerry Daniels

 Follow the Rodeo discussion:
 http://rodeoapps.com/rodeo-discuss-among-yourselves



 On Jun 24, 2010, at 1:09 PM, Simon Lord wrote:

> So the issue of not updating the URL until the mouse leaves the
> revBrowser is a bit of a pain.  When I drag an image from the desktop
> to the stack the image immediately pops up in the browser as expected.
> But the URL doesn't upload until the mouse is *outside* the bounds of
> the browser.  Since the mouse *must* be within the bounds to drop the
> image it means this is a fairly repeatable bug.
>
> Is there any way to detect a drag&drop on the revBrowser so I can
> force a URL refresh?
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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

>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
___
use-revolution mailing list
use-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: Drag and Drop on revBrowser...

2010-06-24 Thread Jerry Daniels
Works every time here. What OS? You're sure your cursor-move code is executing 
each time.

Admittedly, a complete hack of a solution. Shameful, really. Ok, I'm over it.

Best,

Jerry Daniels

Follow the Rodeo discussion:
http://rodeoapps.com/rodeo-discuss-among-yourselves



On Jun 24, 2010, at 3:11 PM, Simon Lord wrote:

> Tried that.  Odd that it works for you.  It only works the first time
> for me, every subsequent link still refuses to update the URL until
> the mouse exits the revBrowser.
> 
> 
> 
> On Thu, Jun 24, 2010 at 4:05 PM, Jerry Daniels  wrote:
>> Simon,
>> 
>> I ran into this with Rodeo's built-in browser and I found a way to make my 
>> URL field update after navigating to another page--which sounds a lot like 
>> your problem.
>> 
>> put the mouseScreenLoc into tLoc
>> set the mouseScreenLoc to the topleft of this stack
>> set the mouseScreenLoc to tLoc
>> 
>> This was on Mac Snow Leopard. I could not tell the cursor was moved and my 
>> URL field updated immediately. I did ran this cde within the 
>> browserNavigateComplete message. handler
>> 
>> HTH
>> 
>> Best,
>> 
>> Jerry Daniels
>> 
>> Follow the Rodeo discussion:
>> http://rodeoapps.com/rodeo-discuss-among-yourselves
>> 
>> 
>> 
>> On Jun 24, 2010, at 1:09 PM, Simon Lord wrote:
>> 
>>> So the issue of not updating the URL until the mouse leaves the
>>> revBrowser is a bit of a pain.  When I drag an image from the desktop
>>> to the stack the image immediately pops up in the browser as expected.
>>> But the URL doesn't upload until the mouse is *outside* the bounds of
>>> the browser.  Since the mouse *must* be within the bounds to drop the
>>> image it means this is a fairly repeatable bug.
>>> 
>>> Is there any way to detect a drag&drop on the revBrowser so I can
>>> force a URL refresh?
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Drag and Drop on revBrowser...

2010-06-24 Thread Simon Lord
Tried that.  Odd that it works for you.  It only works the first time
for me, every subsequent link still refuses to update the URL until
the mouse exits the revBrowser.



On Thu, Jun 24, 2010 at 4:05 PM, Jerry Daniels  wrote:
> Simon,
>
> I ran into this with Rodeo's built-in browser and I found a way to make my 
> URL field update after navigating to another page--which sounds a lot like 
> your problem.
>
> put the mouseScreenLoc into tLoc
> set the mouseScreenLoc to the topleft of this stack
> set the mouseScreenLoc to tLoc
>
> This was on Mac Snow Leopard. I could not tell the cursor was moved and my 
> URL field updated immediately. I did ran this cde within the 
> browserNavigateComplete message. handler
>
> HTH
>
> Best,
>
> Jerry Daniels
>
> Follow the Rodeo discussion:
> http://rodeoapps.com/rodeo-discuss-among-yourselves
>
>
>
> On Jun 24, 2010, at 1:09 PM, Simon Lord wrote:
>
>> So the issue of not updating the URL until the mouse leaves the
>> revBrowser is a bit of a pain.  When I drag an image from the desktop
>> to the stack the image immediately pops up in the browser as expected.
>> But the URL doesn't upload until the mouse is *outside* the bounds of
>> the browser.  Since the mouse *must* be within the bounds to drop the
>> image it means this is a fairly repeatable bug.
>>
>> Is there any way to detect a drag&drop on the revBrowser so I can
>> force a URL refresh?
>> ___
>> use-revolution mailing list
>> use-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: Drag and Drop on revBrowser...

2010-06-24 Thread Jerry Daniels
Simon,

I ran into this with Rodeo's built-in browser and I found a way to make my URL 
field update after navigating to another page--which sounds a lot like your 
problem.

put the mouseScreenLoc into tLoc
set the mouseScreenLoc to the topleft of this stack
set the mouseScreenLoc to tLoc

This was on Mac Snow Leopard. I could not tell the cursor was moved and my URL 
field updated immediately. I did ran this cde within the 
browserNavigateComplete message. handler

HTH

Best,

Jerry Daniels

Follow the Rodeo discussion:
http://rodeoapps.com/rodeo-discuss-among-yourselves



On Jun 24, 2010, at 1:09 PM, Simon Lord wrote:

> So the issue of not updating the URL until the mouse leaves the
> revBrowser is a bit of a pain.  When I drag an image from the desktop
> to the stack the image immediately pops up in the browser as expected.
> But the URL doesn't upload until the mouse is *outside* the bounds of
> the browser.  Since the mouse *must* be within the bounds to drop the
> image it means this is a fairly repeatable bug.
> 
> Is there any way to detect a drag&drop on the revBrowser so I can
> force a URL refresh?
> ___
> use-revolution mailing list
> use-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


Drag and Drop on revBrowser...

2010-06-24 Thread Simon Lord
So the issue of not updating the URL until the mouse leaves the
revBrowser is a bit of a pain.  When I drag an image from the desktop
to the stack the image immediately pops up in the browser as expected.
 But the URL doesn't upload until the mouse is *outside* the bounds of
the browser.  Since the mouse *must* be within the bounds to drop the
image it means this is a fairly repeatable bug.

Is there any way to detect a drag&drop on the revBrowser so I can
force a URL refresh?
___
use-revolution mailing list
use-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: Drag and drop from browser bug?

2010-02-13 Thread David Bovill
OK - thanks for testing - filed as bug report -
http://quality.runrev.com/qacenter/show_bug.cgi?id=8616

On 13 February 2010 14:58, Bernard Devlin  wrote:

> On Sat, Feb 13, 2010 at 2:05 PM, David Bovill 
> wrote:
> > Try this url (http://david.on-rev.com/tests/drag_image.html) - it is an
> > example of a file that the browser and finder handels fine
>
> David,
>
> Other images where the href of the surrounding anchor tag points to a
> URL for the image file still work as Jacque says (the URL is in
> dragData["text"]).  It seems to me that what you are seeing is that
> the href of the surrounding anchor tag of your test page is being put
> into the dragData["text"], not the value of the href attribute of the
> enclosed img.
>
> I guess that Finder (and for that matter, Explorer on Vista) are get
> the URL from the href of the img tag, rather than the surrounding
> anchor tag and downloading the image accordingly.  It's hard to know
> if this should be marked as a bug or an enhancement.
>
> Bernard
> ___
> use-revolution mailing list
> use-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: Drag and drop from browser bug?

2010-02-13 Thread Bernard Devlin
On Sat, Feb 13, 2010 at 2:05 PM, David Bovill  wrote:
> Try this url (http://david.on-rev.com/tests/drag_image.html) - it is an
> example of a file that the browser and finder handels fine

David,

Other images where the href of the surrounding anchor tag points to a
URL for the image file still work as Jacque says (the URL is in
dragData["text"]).  It seems to me that what you are seeing is that
the href of the surrounding anchor tag of your test page is being put
into the dragData["text"], not the value of the href attribute of the
enclosed img.

I guess that Finder (and for that matter, Explorer on Vista) are get
the URL from the href of the img tag, rather than the surrounding
anchor tag and downloading the image accordingly.  It's hard to know
if this should be marked as a bug or an enhancement.

Bernard
___
use-revolution mailing list
use-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: Drag and drop from browser bug?

2010-02-13 Thread David Bovill
Try this url (http://david.on-rev.com/tests/drag_image.html) - it is an
example of a file that the browser and finder handels fine - drag the image
onto the desktop and it is downloaded - but there is no way to do it in rev
as there is no useful data in the dragdata.

Shall I file it as a bug?

On 12 February 2010 22:35, J. Landman Gay  wrote:

> David Bovill wrote:
>
>> Thought this used to work? Do earlier versions set the dragdata correctly
>> when you drag and drop an image from the browser?
>>
>> Testing on OSX - but images that you can successfully drag and drop onto
>> the
>> desktop - but you are unable to get useful data out of the dragdata. I'd
>> expect that the dragdata ["files"] would be set to the url of the image -
>> but it is empty and the dragdata ["text"] is vaguely related to the url of
>> the image in that it often is - but sometimes can be a useless piece of
>> javaScript like "javascript:void(0);". The Finder obviously handles the
>> dragdata correctly - so is this an OSX bug or?
>>
>
> Which version of Rev? In 4.0, if the image has a link, I get the link URL.
> If there is no link, I get the URL to the source image on the server. These
> are in the "text" value. The "files" value is empty.
>
___
use-revolution mailing list
use-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: Drag and drop from browser bug?

2010-02-12 Thread J. Landman Gay

David Bovill wrote:

Thought this used to work? Do earlier versions set the dragdata correctly
when you drag and drop an image from the browser?

Testing on OSX - but images that you can successfully drag and drop onto the
desktop - but you are unable to get useful data out of the dragdata. I'd
expect that the dragdata ["files"] would be set to the url of the image -
but it is empty and the dragdata ["text"] is vaguely related to the url of
the image in that it often is - but sometimes can be a useless piece of
javaScript like "javascript:void(0);". The Finder obviously handles the
dragdata correctly - so is this an OSX bug or?


Which version of Rev? In 4.0, if the image has a link, I get the link 
URL. If there is no link, I get the URL to the source image on the 
server. These are in the "text" value. The "files" value is empty.


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


Drag and drop from browser bug?

2010-02-12 Thread David Bovill
Thought this used to work? Do earlier versions set the dragdata correctly
when you drag and drop an image from the browser?

Testing on OSX - but images that you can successfully drag and drop onto the
desktop - but you are unable to get useful data out of the dragdata. I'd
expect that the dragdata ["files"] would be set to the url of the image -
but it is empty and the dragdata ["text"] is vaguely related to the url of
the image in that it often is - but sometimes can be a useless piece of
javaScript like "javascript:void(0);". The Finder obviously handles the
dragdata correctly - so is this an OSX bug or?
___
use-revolution mailing list
use-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: Drag and Drop in Datagrids

2010-01-08 Thread Trevor DeVore

On Jan 8, 2010, at 1:49 PM, Michael Kann wrote:


http://forums.runrev.com/phpBB2/viewtopic.php?p=17333


Hmm, I still need to document that...

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Drag and Drop in Datagrids

2010-01-08 Thread Michael Kann
http://forums.runrev.com/phpBB2/viewtopic.php?p=17333

--- On Fri, 1/8/10, Bob Sneidar  wrote:

> From: Bob Sneidar 
> Subject: Drag and Drop in Datagrids
> To: "How to use Revolution" 
> Date: Friday, January 8, 2010, 12:44 PM
> Hi all. 
> 
> I seem to remember someone had worked out a method for drag
> and drop in datagrids, but I flush the posts from time to
> time and alas, I recently did so. I am now in need of some
> starting wisdom on the issue. The idea would be to begin a
> drag in a cell of a table, and create an image of the cell I
> am dragging. The purpose would be to re-order the items, or
> drag them to another list to add/link them. 
> 
> I can figure out what to do once I drop the item, but I
> think the trick will be taking a "snapshot" of what I intend
> to drag. 
> 
> 
> Bob Sneidar
> IT Manager
> Logos Management
> Calvary Chapel CM
> 
> ___
> use-revolution mailing list
> use-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


Drag and Drop in Datagrids

2010-01-08 Thread Bob Sneidar
Hi all. 

I seem to remember someone had worked out a method for drag and drop in 
datagrids, but I flush the posts from time to time and alas, I recently did so. 
I am now in need of some starting wisdom on the issue. The idea would be to 
begin a drag in a cell of a table, and create an image of the cell I am 
dragging. The purpose would be to re-order the items, or drag them to another 
list to add/link them. 

I can figure out what to do once I drop the item, but I think the trick will be 
taking a "snapshot" of what I intend to drag. 


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

___
use-revolution mailing list
use-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 Drag and Drop

2009-09-24 Thread Josep

Hi Trevor,

Only I get this error when drag from a edited cell, I want drag the entire
row and drop some of the values.. I download the sample and check it...

execution error at line 6 (Chunk: error in object expression), char 22


Salut,
Josep

Trevor DeVore wrote:
> 
> On Sep 21, 2009, at 12:52 PM, Josep wrote:
> 
>> I need use drag and drop between datagrids and others objects, how  
>> to begin?
>> I need perform operations like exec sql sentences or print.
>>
>> Any tip about how begin to handle this?
> 
> At RunRevLive I used an updated version of the Data Grid with built-in  
> support for drag reordering and setting the dragImage for drag/drop.
> 
> http://tr.im/data_grid
> 
> I haven't documented it yet but starting a drag and drop operation  
> with the row being dragged on displayed as the dragImage is really easy:
> 
> ##
> ## Data Grid Group Script
> ##
> on dragStart
>  ## use current row as dragImage
>  put the dgIndex of the dgDataControl of the target into theIndex
>  set the dgDragImageIndex of me to theIndex
> 
>  ## Set dragData to start drag operation
>  set the dragData["private"] to "My Data"
> end dragStart
> 
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Application Development with Revolution Course:
> http://revolution.bluemangolearning.com/software/revproappdev/
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
Quoted from: 
http://www.nabble.com/Datagrid-Drag-and-Drop-tp25530401p25560144.html


Trevor DeVore wrote:
> 
> On Sep 21, 2009, at 12:52 PM, Josep wrote:
> 
>> I need use drag and drop between datagrids and others objects, how  
>> to begin?
>> I need perform operations like exec sql sentences or print.
>>
>> Any tip about how begin to handle this?
> 
> At RunRevLive I used an updated version of the Data Grid with built-in  
> support for drag reordering and setting the dragImage for drag/drop.
> 
> http://tr.im/data_grid
> 
> I haven't documented it yet but starting a drag and drop operation  
> with the row being dragged on displayed as the dragImage is really easy:
> 
> ##
> ## Data Grid Group Script
> ##
> on dragStart
>  ## use current row as dragImage
>  put the dgIndex of the dgDataControl of the target into theIndex
>  set the dgDragImageIndex of me to theIndex
> 
>  ## Set dragData to start drag operation
>  set the dragData["private"] to "My Data"
> end dragStart
> 
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Application Development with Revolution Course:
> http://revolution.bluemangolearning.com/software/revproappdev/
> _______
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Datagrid-Drag-and-Drop-tp25530401p25573973.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: Datagrid Drag and Drop

2009-09-22 Thread Trevor DeVore

On Sep 21, 2009, at 12:52 PM, Josep wrote:

I need use drag and drop between datagrids and others objects, how  
to begin?

I need perform operations like exec sql sentences or print.

Any tip about how begin to handle this?


At RunRevLive I used an updated version of the Data Grid with built-in  
support for drag reordering and setting the dragImage for drag/drop.


http://tr.im/data_grid

I haven't documented it yet but starting a drag and drop operation  
with the row being dragged on displayed as the dragImage is really easy:


##
## Data Grid Group Script
##
on dragStart
## use current row as dragImage
put the dgIndex of the dgDataControl of the target into theIndex
set the dgDragImageIndex of me to theIndex

## Set dragData to start drag operation
set the dragData["private"] to "My Data"
end dragStart

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course: 
http://revolution.bluemangolearning.com/software/revproappdev/
___
use-revolution mailing list
use-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 Drag and Drop

2009-09-21 Thread Josep

Hi List,

I need use drag and drop between datagrids and others objects, how to begin?
I need perform operations like exec sql sentences or print.

Any tip about how begin to handle this?


Salut,
Josep
-- 
View this message in context: 
http://www.nabble.com/Datagrid-Drag-and-Drop-tp25530401p25530401.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: [Q] drag and drop with data grids

2009-07-29 Thread Shao Sean
thanks for the tip for "dragDestination" and now have the data grid  
accepting drops correctly..

___
use-revolution mailing list
use-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: [Q] drag and drop with data grids

2009-07-29 Thread Trevor DeVore

On Jul 29, 2009, at 3:58 PM, Shao Sean wrote:

The question that I still have is, how can I tell what row the drop  
was on? Or would I need to add a drop capture code to each of the  
rows (using a table data grid)?


dragDestination?

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: [Q] drag and drop with data grids

2009-07-29 Thread Shao Sean
Wish the documentation for drag and drop was a little more  
comprehensive but I managed to get the "drop" data grid to accept the  
drop using the deprecated "acceptDrop" (I did try "dragAction" but it  
did not seem to work so I will go back and see what I did wrong)..


The question that I still have is, how can I tell what row the drop  
was on? Or would I need to add a drop capture code to each of the  
rows (using a table data grid)?

___
use-revolution mailing list
use-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: [Q] drag and drop with data grids

2009-07-28 Thread Trevor DeVore

On Jul 24, 2009, at 8:40 AM, Shao Sean wrote:


anyone have any tips to getting a data grid to accept drops?

i have the drag portion working, but am unable to get the other data  
grid to accept the drop.. in the message watcher the "dragDrop"  
message is not firing but the "dragEnd" message is.. i noticed in  
the data grid library stack there is something related to drag and  
drop but do not think it is linked into the actual code (dgDragDrop  
and dgDataEnd are not firing)..



The data grid behavior script doesn't intercept any drag/drop  
messages. If you are setting the dragAction in the data grid group  
script then dragDrop should fire.


Are you sure you are setting the dragAction in the right place so that  
the data grid will accept the drop?


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


[Q] drag and drop with data grids

2009-07-24 Thread Shao Sean

anyone have any tips to getting a data grid to accept drops?

i have the drag portion working, but am unable to get the other data  
grid to accept the drop.. in the message watcher the "dragDrop"  
message is not firing but the "dragEnd" message is.. i noticed in the  
data grid library stack there is something related to drag and drop  
but do not think it is linked into the actual code (dgDragDrop and  
dgDataEnd are not firing)..

___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Jim Ault

Yes, the search engine.
I am using 2.9

Jim Ault
Las Vegas

On Mar 4, 2009, at 10:08 AM, dunb...@aol.com wrote:



In a message dated 3/4/09 1:04:32 PM, jimaultw...@yahoo.com writes:



In the HELP menu.

Jim Ault
Las Vegas



Jim. I don't have "documentation" there, but I think "revolution  
search

engine is what you meant?. Rev 3.0.


**
A Good Credit Score is 700 or
Above. See yours in just 2 easy steps!
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefaul
t.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread DunbarX

In a message dated 3/4/09 1:04:32 PM, jimaultw...@yahoo.com writes:


> In the HELP menu.
> 
> Jim Ault
> Las Vegas
> 

Jim. I don't have "documentation" there, but I think "revolution search 
engine is what you meant?. Rev 3.0.


**
A Good Credit Score is 700 or 
Above. See yours in just 2 easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefaul
t.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread DunbarX

In a message dated 3/4/09 1:01:51 PM, ambassa...@fourthworld.com writes:


> "clumsy" or "inelegant"? Show me better.
> 
Ah. Now THAT is a kluge. thanks,

My point was (hopefully) made with the "THAT", not with the "kluge".

Craig


**
A Good Credit Score is 700 or Above. See yours in just 2 
easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26h
mpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Jim Ault

In the HELP menu.

Jim Ault
Las Vegas


On Mar 4, 2009, at 9:47 AM, dunb...@aol.com wrote:


Jim.

Can't wait, and thanks, but where is "documentation"?


Open Rev, the click "Documentation", then click "Search"
(you will likely need to confirm the "Update" request, a good idea)
Now click the "Web Database" icon and make a choice of "Web Database"



**
A Good Credit Score is 700 or Above. See yours in just 2 easy steps!
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F 
%
2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID 
%3D62%26b

cd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Richard Gaskin

DunbarX wrote:

In a message dated 3/4/09 12:26:44 PM, devin_asay at byu.edu writes: 
Ah, then you want to have a look at Scott Rossi's GetInLine list demo. 
See http://www.tactilemedia.com/ > Software > Revolution Tutorials & 
Demos.




Ah. Now THAT is a kluge. thanks,


  kludge
  –noun Computer Slang.
  a software or hardware configuration that, while inelegant,
  inefficient, clumsy, or patched together, succeeds in solving
  a specific problem or performing a particular task.
  

- "patched together"?  Check.

- "succeeds in solving a specific problem"?  Check.

- "clumsy" or "inelegant"? Show me better.

Sure, it'd be nice to have in the engine.  But Scott's implementation is 
far better in both appearance and responsiveness than most JavaScript 
ones I've seen, on par with most draggable list reordering I've seen 
from FileMaker Pro and other well-budgeted products where they spent 
several orders of magnitude more development money to get the same thing.


Kudos, Mr. Rossi, on a job well done.

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag and drop?

2009-03-04 Thread Jim Ault

Thanks for the reminder, Devin,
Everyone should take a minute to go to this page and see the 38 demo  
stacks that Scott has offered.


Visually amazing, and certainly a plethora of advanced concepts.

http://www.tactilemedia.com/ > Software > Revolution Tutorials & Demos.


(unfortunately, since this is a new url, it is no longer in the Rev  
search realm that Eric Chatonet programmed)


Jim Ault
Las Vegas


On Mar 4, 2009, at 9:26 AM, Devin Asay wrote:


Ah, then you want to have a look at Scott Rossi's GetInLine list  
demo. See http://www.tactilemedia.com/ > Software > Revolution  
Tutorials & Demos.


D


___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread DunbarX
Jim.

Can't wait, and thanks, but where is "documentation"?


Open Rev, the click "Documentation", then click "Search"
(you will likely need to confirm the "Update" request, a good idea)
Now click the "Web Database" icon and make a choice of "Web Database"



**
A Good Credit Score is 700 or Above. See yours in just 2 easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%
2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26b
cd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread DunbarX

In a message dated 3/4/09 12:26:44 PM, devin_a...@byu.edu writes:


> Ah, then you want to have a look at Scott Rossi's GetInLine list demo. 
> See http://www.tactilemedia.com/ > Software > Revolution Tutorials & 
> Demos.
> 

Ah. Now THAT is a kluge. thanks,

Craig Newman


**
A Good Credit Score is 700 or Above. See yours in 
just 2 easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Jim Ault
There are many Rev resources available and Eric Chatonet wrote a part  
of the Rev IDE that is quite handy for finding the world-wide  
locations of these (actually quite amazing bit of programming in Rev)


Open Rev, the click "Documentation", then click "Search"
(you will likely need to confirm the "Update" request, a good idea)
Now click the "Web Database" icon and make a choice of "Web Database"

Now enter "drag" into the text box and see the immediate list of web  
sites.


If you want to go to a particular web site, say Altuit, then click on  
the Web Database icon and choose "go to" and from the long list,  
"Altuit 1_Chipp Walters"


To search mailing lists, click on the Nable icon and make a choice.
To search the dictionary, google, etc

At least once you should click on "preferences" and choose "About the  
Rev Search Engine..."


I would recommend this for you at the moment:
Go to Preferences, choose "Docs Contextual Search", turn on "In the  
dictionary"

Then choose "Dictionary" icon, choose "Sample Scripts"
Now enter "drag", click the search button and watch as a new window  
opens with an example and more info


Hope this helps

Jim Ault
Las Vegas



On Mar 4, 2009, at 8:43 AM, dunb...@aol.com wrote:


Is this implemented in Rev?

I made it work in HC by creating   transparent text fields the size  
and shape
of some selected text, and with the commandKey down, so that the  
selectedText
can be harvested, fill that field. It worked on mouseDown, and the  
field
tracked the mouseLoc until the mouse was released, dropping the text  
into the

mouseLoc. A real kluge, but it works.

Do I have to do this in Rev, too?

Craig Newman


**
A Good Credit Score is 700 or Above. See yours in
just 2 easy steps!
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Devin Asay


On Mar 4, 2009, at 10:19 AM, dunb...@aol.com wrote:


Devin.

I was lame in my last post. I have a list field, not a text field.  
The text
is locked, (though this seems not to matter in a list field). I want  
to move
entire lines from one line position to another. I can kluge it, and  
am looking
forward to doing so, (easy since drag and drop is supported) but Rev  
usually

has something already built in...


Ah, then you want to have a look at Scott Rossi's GetInLine list demo.  
See http://www.tactilemedia.com/ > Software > Revolution Tutorials &  
Demos.


D




In a message dated 3/4/09 11:54:00 AM, devin_a...@byu.edu writes:



For many things, like dragging text between fields, it Just Works™.






**
A Good Credit Score is 700 or Above. See yours in just 2 easy
steps!
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID
%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Drag and drop?

2009-03-04 Thread DunbarX
Devin.

I was lame in my last post. I have a list field, not a text field. The text 
is locked, (though this seems not to matter in a list field). I want to move 
entire lines from one line position to another. I can kluge it, and am looking 
forward to doing so, (easy since drag and drop is supported) but Rev usually 
has something already built in...


In a message dated 3/4/09 11:54:00 AM, devin_a...@byu.edu writes:


> For many things, like dragging text between fields, it Just Works™. 
> 




**
A Good Credit Score is 700 or Above. See yours in just 2 easy 
steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID
%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-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: Drag and drop?

2009-03-04 Thread Devin Asay

On Mar 4, 2009, at 9:43 AM, dunb...@aol.com wrote:


Is this implemented in Rev?

I made it work in HC by creating   transparent text fields the size  
and shape
of some selected text, and with the commandKey down, so that the  
selectedText
can be harvested, fill that field. It worked on mouseDown, and the  
field
tracked the mouseLoc until the mouse was released, dropping the text  
into the

mouseLoc. A real kluge, but it works.

Do I have to do this in Rev, too?


Craig,

For many things, like dragging text between fields, it Just Works™.  
Try it. For dragging objects within a card, check out the grab command:


on mouseDown
  grab me
end mouseDown

Then handle the drop portion on mouseUp.

For more complex drag and drop operations, including dragging objects  
between windows, there is a whole set of nice tools. I haven't had  
occasion to need them yet, but I'm sure others will chime in. And the  
late great Eric Chatonet wrote a very nice tutorial on drag and drop.  
See <http://www.sosmartsoftware.com/?r=revolution_index&l=en>


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Drag and drop?

2009-03-04 Thread DunbarX
Is this implemented in Rev?

I made it work in HC by creating   transparent text fields the size and shape 
of some selected text, and with the commandKey down, so that the selectedText 
can be harvested, fill that field. It worked on mouseDown, and the field 
tracked the mouseLoc until the mouse was released, dropping the text into the 
mouseLoc. A real kluge, but it works.

Do I have to do this in Rev, too?

Craig Newman


**
A Good Credit Score is 700 or Above. See yours in 
just 2 easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


More Drag and Drop (was Kudos to Eric Chatonet for Drag and Drop)

2008-10-31 Thread Scott Rossi
Recently, Richard Gaskin wrote:

> I'm adding some new drag-n-drop functionality to some of my apps, so it
> seemed a good time to check out Eric Chatonet's nifty tutorial on Rev's
> new DnD options.
> 
> Way cool!  Seeing the various options in real-world settings really
> makes short work of getting started with DnD in Rev.

> 

Another strong endorsement from me as well.  This is a great stack -- well
done, Eric!

I used a modified version of one of Eric's routines at RevConLive in Las
Vegas to copy objects between stacks.  I wound up building a routine that
works with older versions of Rev (back to 2.7 I believe), and creates a
dragged object representation that exactly matches the source object,
instead of being contained in rectangle.  One can also drag groups of
objects as well: images, controls, everything.  The following example stack
does this with professional flair and is easy to implement.
In your message box:

 go url "http://www.tactilemedia.com/site_files/downloads/TMdragndrop.rev";

I need to create a thumbnail for this in the demos section of my site, but
for now, use the above to get the stack.  Totally free for use.  Tested on
OS X and Vista.

Once again, many thanks to Eric.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-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: Kudos to Eric Chatonet for Drag and Drop tutorial

2008-10-30 Thread Eric Chatonet

Bonsoir Richard,

Happy it could help you :-)

Le 30 oct. 08 à 20:04, Richard Gaskin a écrit :

I'm adding some new drag-n-drop functionality to some of my apps,  
so it seemed a good time to check out Eric Chatonet's nifty  
tutorial on Rev's new DnD options.


Way cool!  Seeing the various options in real-world settings really  
makes short work of getting started with DnD in Rev.


He's made the tutorial available for free at his site:



There's a PayPal donation button in the lower-right of the tutorial  
window.  It saved me so much time I'd otherwise have spent  
experimenting on my own that I just sent a few Euros his way.  He  
doesn't require it, but it seems a good way to sat thanks and keep  
him motivated to make even more tutorials. :)


Thank you Eric - great job!

--
 Richard Gaskin
 Managing Editor, revJournal


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Kudos to Eric Chatonet for Drag and Drop tutorial

2008-10-30 Thread Richard Gaskin
I'm adding some new drag-n-drop functionality to some of my apps, so it 
seemed a good time to check out Eric Chatonet's nifty tutorial on Rev's 
new DnD options.


Way cool!  Seeing the various options in real-world settings really 
makes short work of getting started with DnD in Rev.


He's made the tutorial available for free at his site:


There's a PayPal donation button in the lower-right of the tutorial 
window.  It saved me so much time I'd otherwise have spent experimenting 
on my own that I just sent a few Euros his way.  He doesn't require it, 
but it seems a good way to sat thanks and keep him motivated to make 
even more tutorials. :)


Thank you Eric - great job!

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


[ANN][EN][FR] Tutorial #26 by So Smart Software: How to reorganize a list field manually using Rev 2.9 drag and drop feature

2008-07-24 Thread Eric Chatonet

Tuesday, July 24, 2008

-- English version -

I'm happy to announce that "How to reorganize a list field manually  
using Rev 2.9 drag and drop feature", 26th tutorial for Revolution is  
available:
This stack shows how to reorganize a list field manually using Rev  
2.9 drag and drop feature.
How to create a control on-the-fly, take a snapshot of it invisibly,  
use it as the drag image, etc.
Note: due to a Rev bug in XP, the drag image does not show up  
correctly but it works as expected when using Mac OSX or Windows Vista.


If you have downloaded the Tutorial Watcher plugin, you have been or  
will be automatically informed at next Rev startup.


You will access this tutorial through "Tutorials Picker" a free  
plugin that interfaces with the So Smart Software website in order to  
display all available tutorials stacks directly from the web.
You will find it going to http://www.sosmartsoftware.com - Revolution/ 
Tutorials section.

You may also download directly this tutorial from the website.

At the moment, 26 tutorials are available through "Tutorials Picker"  
or on the website:


How to reorganize a list field manually using Rev 2.9 drag and drop  
feature

How to implement clever auto-completion in entry boxes
How to manage drag and drop #2 (with Rev 2.9 or later)
How to create custom shaped windows
How to put in place a stars ranking system
How to use PNG images to create custom controls
How to master user's data entries in a field
How to Monitor a QuickTime Player by Script
How to Download Data from the Internet
How to Manage Stack Resizing
How to Manage Table Fields
How to Display and Manage Ask Dialogs
How to Display and Manage Answer Dialogs
How to Manage Tabbed Buttons
How to Ask for a Password
How to Manage User's Waiting Time
How to Manage Drag and Drop for Files or Folders
How to Fix Stack Decorations
How to build and Manage Dynamic Menus
How to Manage "Snap to" Scrollbars
How to Create Contextual Tooltips on-the-fly
How to Store Images
How to Create and Manage HTML lists
How to Install "Metal Appearance" on All Platforms
How to Change Card Dimensions Smoothly
How to Magnify Images

Best regards,

Eric Chatonet.

- Version française 

J'ai de plaisir d'annoncer la disponibilité de "Comment réorganiser  
un champ liste par glisser déposer avec Rev 2.9", didacticiel n°26  
pour Revolution :
Cette pile montre comment réorganiser un champ liste par glisser  
déposer avec Rev 2.9 ou plus récent.
Comment créer un contrôle à la volée, en faire une image de façon  
invisible l'utiliser lors du glisser déposer, etc.
Nota : A cause d'un bug dans Revolution, l'image ne s'affiche pas  
correctement avec XP mais le processus fonctionne bien avec Mac OSX  
et Windows Vista.

Requiert Rev 2.9 ou plus récent.

Si vous avez installé le plugin "Tutorials Watcher", vous le savez  
déjà ou serez informé au prochain démarrage de Revolution.


Pour avoir accès à ce didacticiel, téléchargez "Tutorials Picker", un  
plugin gratuit qui communique directement avec le site de So Smart  
Software afin d'afficher tous les didacticels disponibles depuis le  
web dans leur dernière version.
Rendez-vous sur http://www.sosmartsoftware.com - Revolution/Section  
didacticiels.
Vous pouvez également télécharger ce didacticiel directement depuis  
le site.


Actuellement, 26 didacticiels sont disponibles à travers "Tutorials  
Picker" ou sur le site :


Comment réorganiser un champ liste par glisser déposer avec Rev 2.9
Comment implementer des saisies automatiques intelligentes
Comment gérer le glisser-déposer #2 (avec Rev 2.9 ou plus récent)
Comment créer des fenêtres personnalisées
Comment mettre en place un système de classement par étoiles
Comment utiliser les images PNG pour créer des contrôles personnalisés
Comment maîtriser les données entrées par l'utilisateur
Comment piloter finement un player QuickTime par script
Comment télécharger des données depuis internet
Comment redimensionner le contenu d'une fenêtre
Comment utiliser les champs tables
Comment afficher et gérer les dialogues Ask
Comment afficher et gérer les dialogues Answer
Comment gérer les boutons onglets
Comment réclamer un mot de passe
Comment gérer les attentes utilisateur
Comment gérer le glisser déposer de dossiers et de fichiers
Comment fixer les "décorations" d'une pile
Comment construire et gérer un menu dynamique
Comment gérer le comportement "magnétique" d'un scrollbar
Comment créer à la volée des tooltips contextuels
Comment stocker des images dans une pile
Comment créer et gérer des listes en HTML
Comment installer l'apparence métal brossé sur toutes plate-formes
Comment changer les dimensions d'une carte avec un effet progressif
Comment implémenter une lou

Re: [ANN] Drag and drop tutorial n ° 24 from So Smart Software

2008-04-01 Thread Scott Rossi
Recently, Eric Chatonet wrote:

> I'm happy to announce that "How to manage Drag and Drop #2", 24th
> tutorial for Revolution is available

Mon ami, Vous êtes le meilleur.

OK, the text is probably wrong, but you get the idea.  Thank you so much for
packaging yet another very useful tutorial.

This has been week of great announcements and it's only Tuesday!

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-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: [ANN] Drag and drop tutorial n°24 fro m So Smart Software

2008-04-01 Thread Chipp Walters
Thank Eric! I'll have to take a look-see.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Drag and drop tutorial n°24 from So S mart Software

2008-04-01 Thread Eric Chatonet

Paris, Tuesday, April 1, 2008

-- English version -

I'm happy to announce that "How to manage Drag and Drop #2", 24th  
tutorial for Revolution is available:
This tutorial explores all ways to manage Drag and Drop especially  
with Rev 2.9 new features:
In one Rev window, between two Rev windows, from Rev or towards Rev  
with text, images, files, etc.
How to create a drag image on-the-fly, a tools palette and many other  
tricks.

Scripts fully commented.
Needs Rev 2.7 or later.

If you have downlaoded the Tutorial Watcher plugin, you have been or  
will be automatically informed at next Rev startup.


You will access this tutorial through "Tutorials Picker" a free  
plugin that interfaces with the So Smart Software website in order to  
display all available tutorials stacks directly from the web.
You will find it by going to http://www.sosmartsoftware.com -  
Revolution/Plugins or Tutorials section.

You may also download directly this tutorial from the website.

At the moment, 24 tutorials are available through "Tutorials Picker"  
or on the website:


How to manage drag and drop #2
How to create custom shaped windows
How to put Putting in place a stars ranking system
How to use PNG images to create custom controls
How to master user's data entries in a field
How to Monitor a QuickTime Player by Script
How to Download Data from the Internet
How to Manage Stack Resizing
How to Manage Table Fields
How to Display and Manage Ask Dialogs
How to Display and Manage Answer Dialogs
How to Manage Tabbed Buttons
How to Ask for a Password
How to Manage User's Waiting Time
How to Manage Drag and Drop for Files or Folders
How to Fix Stack Decorations
How to build and Manage Dynamic Menus
How to Manage "Snap to" Scrollbars
How to Create Contextual Tooltips on-the-fly
How to Store Images
How to Create and Manage HTML lists
How to Install "Metal Appearance" on All Platforms
How to Change Card Dimensions Smoothly
How to Magnify Images

Best regards,
Eric Chatonet.

If you don't want to be on this low traffic list, you can unsubscribe  
by emailing to [EMAIL PROTECTED]  with  
"unsubscribe" (without the quotes) in the subject line.


- Version française 

J'ai de plaisir d'annoncer la disponibilité de "Comment gérer le  
glisser-déposer #2", didacticiel n°24 pour Revolution :
Ce didacticiel explore toutes les façons de gérer le glisser-déposer  
et spécialement en utilisant les nouveautés de Rev 2.9.
Dans une seule fenêtre Rev, entre deux fenêtres Rev, vers Rev ou  
depuis Rev avec du texte, des images, des fichiers, etc.
Comment créer une 'drag' image, une palette d'outils et bien d'autres  
astuces.

Scripts largement commentés.
Requiert Rev 2.7 ou plus récent.

Si vous avez installé le plugin "Tutorials Watcher", vous le savez  
déjà ou serez informé au prochain démarrage de Revolution.


Pour avoir accès à ce didacticiel, téléchargez "Tutorials Picker", un  
plugin gratuit qui communique directement avec le site de So Smart  
Software afin d'afficher tous les didacticels disponibles depuis le  
web dans leur dernière version.
Rendez-vous sur http://www.sosmartsoftware.com - Revolution/Section  
Plugins ou didacticiels.
Vous pouvez également télécharger ce didacticiel directement depuis  
le site.


Actuellement, 24 didacticiels sont disponibles à travers "Tutorials  
Picker" ou sur le site :


Comment créer des fenêtres personnalisées
Comment mettre en place un système de classement par étoiles
Comment utiliser les images PNG pour créer des contrôles personnalisés
Comment maîtriser les données entrées par l'utilisateur
Comment piloter finement un player QuickTime par script
Comment télécharger des données depuis internet
Comment redimensionner le contenu d'une fenêtre
Comment utiliser les champs tables
Comment afficher et gérer les dialogues Ask
Comment afficher et gérer les dialogues Answer
Comment gérer les boutons onglets
Comment réclamer un mot de passe
Comment gérer les attentes utilisateur
Comment gérer le glisser déposer de dossiers et de fichiers
Comment fixer les "décorations" d'une pile
Comment construire et gérer un menu dynamique
Comment gérer le comportement "magnétique" d'un scrollbar
Comment créer à la volée des tooltips contextuels
Comment stocker des images dans une pile
Comment créer et gérer des listes en HTML
Comment installer l'apparence métal brossé sur toutes plate-formes
Comment changer les dimensions d'une carte avec un effet progressif
Comment implémenter une loupe destinée à ne grossir que les images

Cordialement,
Eric Chatonet.

Si vous ne souhaitez plus recevoir de couriel de cette liste à bas  
traffic, envoyez un couriel à [EMAIL PROTECTED]  avec  
"unsubscribe" (sans les guillemets

Drag and drop on linux? Does it work?

2008-03-23 Thread GIRARD Damien

Hi,

While reading the Revolution 2.9 changelog, I thought that Runrev 2.9 on 
Linux have the Drag and Drop working not only inside the Revolution 
application.


I tried to drag and drop a file/folder/text from another application 
(Konqueror (KDE)), and it doesn't worked. The dragData["text"] and 
dragData["files"] were empty.


So, does Runrev support the Drag and drop on Linux with other 
applications? If yes, I will report the bug, if no, this should be a 
feature that a programming language under Unix must have.

(Motif has Drag and Drop, and it is not really young!)

Regards,

Damien

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


Re: What's new in Rev 2.9 (was Re: New Drag-and-Drop?)

2008-03-20 Thread Eric Chatonet

Hello Richard,

Le 20 mars 08 à 17:04, Richard Gaskin a écrit :

Eric Chatonet wrote:
When you know well Rev vocabulary yet, detecting new entries is  
easy  but what about those that have been only changed?
And what about all those who don't know by heart the 1605 words  
used  by Rev syntax?


Many tokens are understandable as discrete things, so an example  
handler showing its use in the Dictionary is often sufficient.


When Ken Ray, Christopher Watson and myself wrote the SuperCard 2.5  
Language Guide, one of our mandates was to copy Jeanne DeVoto's  
style used in HyperTalk 2.2: The Book, providing complete end-to- 
end examples for each token.   For many of them, that's a fair  
starting point for learning.


When I was a bit younger :-) I wrote (French only) a software  
extension for HC that added more than 80 functions and could itself  
be enhanced by adding plugins.
It also included a library of more than 600 articles that provided  
all the practical knowledge necessary to program in HyperTalk.
With 20,000 hypertext references, two indexes and full-text search  
capability it provided easy access to the 1000 pages of this resource.
For every entry, there was one or more complete end-to-end scripts  
that could be run and debugged to understand by sticking one's hands  
in grease ;-)
IMHO, users seemed to like this approach but, to be frank, it was a  
lot of work...


But there are some tokens which are dependent on others, sometimes  
many others, like RevBrowser, Zip handling, U3, and now Drag and  
Drop. These tokens can't be used in isolation, and require that  
they be used in a specific sequence with other tokens to be used at  
all.


For RevBowser, U3, and a good many more, RunRev has thoughtfully  
provided some very helpful example stacks in the Resources folder  
installed with the app (though they might be more readily found if  
the Examples folder were moved from its current location buried in  
the cryptic "Resources" into the main app folder itself).


RunRev's done a great job with the examples provided so far.   
Adding one for Drag and Drop would go a long way to helping folks  
make good use of Rev's empowering support for this common  
interaction model.


I had another feature people liked: a kind of index telling which  
words were related to a specific action: text manipulation, D&D and  
many others of course.
They often told me this index was an invaluable source to arouse  
ideas about all great things it was possible to achieve using HC.


After what said Scott about finding new or enhanced features, I   
realized it was not so easy:
There are actually 39 new entries in the dictionary and 19 have  
been  changed since 2.8: kudos to the dev team :-)
So I have enhanced my Rev Search Engine to display all introduced  
or  changes entries in the current version by adding a new menu  
item:  "What's new in ".

This feature should be available in the next 2.9 release.


Good work - thanks!  That's a very useful tool you've made.

If only some kind Parisian might be motivated to make a tutorial  
series offering examples of common tasks


...oh wait, you've done that too. :)

Care to add one for D&D?  It would be quite popular.


LOL
Not too much time right now but I think that some tutorials about  
Q&D, printing, error management, etc. might be welcome ;-)


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Re: What's new in Rev 2.9 (was Re: New Drag-and-Drop?)

2008-03-20 Thread Richard Gaskin

Eric Chatonet wrote:
When you know well Rev vocabulary yet, detecting new entries is easy  
but what about those that have been only changed?
And what about all those who don't know by heart the 1605 words used  
by Rev syntax?


Many tokens are understandable as discrete things, so an example handler 
showing its use in the Dictionary is often sufficient.


When Ken Ray, Christopher Watson and myself wrote the SuperCard 2.5 
Language Guide, one of our mandates was to copy Jeanne DeVoto's style 
used in HyperTalk 2.2: The Book, providing complete end-to-end examples 
for each token.   For many of them, that's a fair starting point for 
learning.


But there are some tokens which are dependent on others, sometimes many 
others, like RevBrowser, Zip handling, U3, and now Drag and Drop. These 
tokens can't be used in isolation, and require that they be used in a 
specific sequence with other tokens to be used at all.


For RevBowser, U3, and a good many more, RunRev has thoughtfully 
provided some very helpful example stacks in the Resources folder 
installed with the app (though they might be more readily found if the 
Examples folder were moved from its current location buried in the 
cryptic "Resources" into the main app folder itself).


RunRev's done a great job with the examples provided so far.  Adding one 
for Drag and Drop would go a long way to helping folks make good use of 
Rev's empowering support for this common interaction model.


Has anyone here submitted a request for this at the RQQC?


After what said Scott about finding new or enhanced features, I  
realized it was not so easy:
There are actually 39 new entries in the dictionary and 19 have been  
changed since 2.8: kudos to the dev team :-)
So I have enhanced my Rev Search Engine to display all introduced or  
changes entries in the current version by adding a new menu item:  
"What's new in ".

This feature should be available in the next 2.9 release.


Good work - thanks!  That's a very useful tool you've made.

If only some kind Parisian might be motivated to make a tutorial series 
offering examples of common tasks


...oh wait, you've done that too. :)

Care to add one for D&D?  It would be quite popular.

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


Re: New Drag-and-Drop?

2008-03-20 Thread Thomas McGrath III
Without a criticism implied toward RR I whole heartedly agree with  
Richard. Examples of the 'expected' functionality of a command/ 
function/message etc. should come with the code for reference.  
Examples of what else we can do with it is another thing and not up to  
RR to supply.


I for one always look for the example and would love it if there were  
always two examples as in get and put etc. so that I can compare the  
areas I am not familiar with the usage of.


This is timely since I am right now going to be needing the drag drop  
features in my new project.


Thank you,

Tom McGrath


On Mar 20, 2008, at 10:05 AM, Richard Gaskin wrote:


Eric Chatonet wrote:
Search for 'drag' in 2.9 dictionary and you'll find new entries  
for  allowableDragActions, dragAction, dragImage, dragImageOffset,   
dragDelta and dragData enhanced.


For most new features a quick stroll through the Dictionary would be  
sufficient.


But D&D is such an unusually large collection of tokens with a very  
rare interdependency among them that they deserve an example.


Moreover, it seems reasonable to assume that such an example was  
needed for RunRev to design, write, and test these tokens, so what  
folks are looking for is just a little more than what already exists.


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

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


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


Re: New Drag-and-Drop?

2008-03-20 Thread Richard Gaskin

Eric Chatonet wrote:
Search for 'drag' in 2.9 dictionary and you'll find new entries for  
allowableDragActions, dragAction, dragImage, dragImageOffset,  
dragDelta and dragData enhanced.


For most new features a quick stroll through the Dictionary would be 
sufficient.


But D&D is such an unusually large collection of tokens with a very rare 
interdependency among them that they deserve an example.


Moreover, it seems reasonable to assume that such an example was needed 
for RunRev to design, write, and test these tokens, so what folks are 
looking for is just a little more than what already exists.


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


What's new in Rev 2.9 (was Re: New Drag-and-Drop?)

2008-03-20 Thread Eric Chatonet

Hi Richard,

Le 20 mars 08 à 15:05, Richard Gaskin a écrit :

Eric Chatonet wrote:
Search for 'drag' in 2.9 dictionary and you'll find new entries  
for  allowableDragActions, dragAction, dragImage,  
dragImageOffset,  dragDelta and dragData enhanced.


For most new features a quick stroll through the Dictionary would  
be sufficient.


When you know well Rev vocabulary yet, detecting new entries is easy  
but what about those that have been only changed?
And what about all those who don't know by heart the 1605 words used  
by Rev syntax?

;-)

After what said Scott about finding new or enhanced features, I  
realized it was not so easy:
There are actually 39 new entries in the dictionary and 19 have been  
changed since 2.8: kudos to the dev team :-)
So I have enhanced my Rev Search Engine to display all introduced or  
changes entries in the current version by adding a new menu item:  
"What's new in ".

This feature should be available in the next 2.9 release.

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Re: New Drag-and-Drop?

2008-03-20 Thread Eric Chatonet

Hi Scott,

Search for 'drag' in 2.9 dictionary and you'll find new entries for  
allowableDragActions, dragAction, dragImage, dragImageOffset,  
dragDelta and dragData enhanced.


Le 20 mars 08 à 09:38, Scott Rossi a écrit :

2.8 help has lots of info about drag and drop. Where do you find the
list of changes that are in 2.9?



The changes are described in "Change Log 2.9.0-rc-1.txt"


True, there's a bunch of doc definitions of the new features, but I  
haven't

seen any references to sample code.

So, as is often the case, the apparent course of action is to build  
some
test stacks, watch them fail, try again, get results that may or  
may not

make sense, scratch my head, post on the Use Revolution List asking if
anyone else has accomplished XYZ or seen XYZ fail, try some more test
stacks, and eventually post to the Use list again asking folks to  
try out

the test stacks.

Perhaps it's just me, but it seems like there should be a better  
way to do

this.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Re: New Drag-and-Drop?

2008-03-20 Thread Scott Rossi

>> 2.8 help has lots of info about drag and drop. Where do you find the
>> list of changes that are in 2.9?

> The changes are described in "Change Log 2.9.0-rc-1.txt"

True, there's a bunch of doc definitions of the new features, but I haven't
seen any references to sample code.

So, as is often the case, the apparent course of action is to build some
test stacks, watch them fail, try again, get results that may or may not
make sense, scratch my head, post on the Use Revolution List asking if
anyone else has accomplished XYZ or seen XYZ fail, try some more test
stacks, and eventually post to the Use list again asking folks to try out
the test stacks.

Perhaps it's just me, but it seems like there should be a better way to do
this.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-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: New Drag-and-Drop?

2008-03-19 Thread Phil Davis
I just discovered this - the same info is also available in the "Engine 
Change Log.txt" file, located in the same folder as the Revolution app. 
You don't have to do anything special to create that file - it's 
included in the install.


Phil Davis


Phil Davis wrote:

Colin Holgate wrote:

-- snip --
2.8 help has lots of info about drag and drop. Where do you find the 
list of changes that are in 2.9?


The changes are described in "Change Log 2.9.0-rc-1.txt" which you can 
save early in Rev's "Check for updates" process (when it actually 
finds an update). Here's what it says:


Drag-Drop
~

the allowableDragActions
 Set the allowableDragActions in the drag-drop source application to 
indicate what actions a target application can perform with the drag 
data.
 Use the allowableDragActions in the target application to find out 
what actions the source allows on the drag data.

 It is a comma-separated list of one or more of the following:
   - copy
   - move
   - link

the dragAction
 Set the dragAction in the drag-drop target application to indicate to 
the source application what will be done to the drag data.
 Use the dragAction in the source application within a dragEnd handler 
to determine what the target application did with the drag data.

 It can be one of:
   - none
   - copy
   - move
   - link
 The dragAction property replaces the functionality of the acceptDrop 
property.


the dragImage
 Set the dragImage to an image id inside a dragStart handler to cause 
an image to be displayed following the mouse.


the dragImageOffset
 Set the dragImageOffset inside a dragStart handler to indicate the 
offset of the cursor from the top-left of the dragImage.


the dragDelta
 The dragDelta property is the number of pixels the user must move the 
mouse with a button down to cause a dragStart message to be sent to 
the target control.


the dragData
 There is now a 'private' key for the dragData which allows an 
internal drag-drop operation to be initiated in which the data is not 
visible to external applications.





--
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: New Drag-and-Drop?

2008-03-19 Thread Phil Davis

Colin Holgate wrote:

-- snip --
2.8 help has lots of info about drag and drop. Where do you find the 
list of changes that are in 2.9?


The changes are described in "Change Log 2.9.0-rc-1.txt" which you can 
save early in Rev's "Check for updates" process (when it actually finds 
an update). Here's what it says:


Drag-Drop
~

the allowableDragActions
 Set the allowableDragActions in the drag-drop source application to 
indicate what actions a target application can perform with the drag data.
 Use the allowableDragActions in the target application to find out 
what actions the source allows on the drag data.

 It is a comma-separated list of one or more of the following:
   - copy
   - move
   - link

the dragAction
 Set the dragAction in the drag-drop target application to indicate to 
the source application what will be done to the drag data.
 Use the dragAction in the source application within a dragEnd handler 
to determine what the target application did with the drag data.

 It can be one of:
   - none
   - copy
   - move
   - link
 The dragAction property replaces the functionality of the acceptDrop 
property.


the dragImage
 Set the dragImage to an image id inside a dragStart handler to cause 
an image to be displayed following the mouse.


the dragImageOffset
 Set the dragImageOffset inside a dragStart handler to indicate the 
offset of the cursor from the top-left of the dragImage.


the dragDelta
 The dragDelta property is the number of pixels the user must move the 
mouse with a button down to cause a dragStart message to be sent to the 
target control.


the dragData
 There is now a 'private' key for the dragData which allows an internal 
drag-drop operation to be initiated in which the data is not visible to 
external applications.



--
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: New Drag-and-Drop?

2008-03-19 Thread Colin Holgate


On Mar 19, 2008, at 11:46 PM, Chipp Walters wrote:


Yeah. what he said.

On Wed, Mar 19, 2008 at 11:27 AM, Scott Rossi <[EMAIL PROTECTED]>
wrote:


Is there a demo out there that shows how to use the new drag-and-drop
features of 2.9 that I missed?


2.8 help has lots of info about drag and drop. Where do you find the  
list of changes that are in 2.9?



___
use-revolution mailing list
use-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: New Drag-and-Drop?

2008-03-19 Thread Chipp Walters
Yeah. what he said.

On Wed, Mar 19, 2008 at 11:27 AM, Scott Rossi <[EMAIL PROTECTED]>
wrote:

> Is there a demo out there that shows how to use the new drag-and-drop
> features of 2.9 that I missed?
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


New Drag-and-Drop?

2008-03-19 Thread Scott Rossi
Is there a demo out there that shows how to use the new drag-and-drop
features of 2.9 that I missed?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-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: Drag and Drop Problem

2007-03-03 Thread Joe Lewis Wilkins
Regarding visual feedback: Apple started doing stuff like the "rubber  
band" thing because it was kind of "trick". It was impressive that  
something like that could be done; but, frankly, I think it has been  
carried too far. Maybe when computers were as slow as they were back  
then, something like that was needed to "show off"; but now, with our  
much faster machines, we don't need to do things like that any more.  
It is much more important to just get things done as fast as our  
machines and programmers can let them be done. I'm in favor of just  
having things appear and disappear really fast.


This should be good for some major controversy on a really slow evening.

Joe Wilkins

On Mar 3, 2007, at 10:42 PM, Sarah Reichelt wrote:


Personally I have stopped providing visual feedback on objects for
drag/drop events until the engine behavior is fixed (Rev is aware of
it).  It is too easy to break and end up with objects that are always
highlighted (or visual feedback that does not reflect the actual
operation that will be performed when the drop occurs).



I think the problem is increased if the objects are near the edge of
the window or near other objects. A workaround is to make sure they
have blank space all around them. This looks clunky and I don't think
it is a complete solution, but it does improve it.

Sarah
___
use-revolution mailing list
use-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: Drag and Drop Problem

2007-03-03 Thread Sarah Reichelt

Personally I have stopped providing visual feedback on objects for
drag/drop events until the engine behavior is fixed (Rev is aware of
it).  It is too easy to break and end up with objects that are always
highlighted (or visual feedback that does not reflect the actual
operation that will be performed when the drop occurs).



I think the problem is increased if the objects are near the edge of
the window or near other objects. A workaround is to make sure they
have blank space all around them. This looks clunky and I don't think
it is a complete solution, but it does improve it.

Sarah
___
use-revolution mailing list
use-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: Drag and Drop Problem

2007-03-03 Thread Jim Ault
I think Chipp did some work about 18 months ago with the missing message
interaction.  Can't remember the details, but it involved button user
interface and the mouseLeave.  Perhaps someone will remember and add to this
thread.

Jim Ault
Las Vegas


On 3/3/07 7:59 AM, "Trevor DeVore" <[EMAIL PROTECTED]> wrote:

> On Mar 2, 2007, at 5:54 AM, Dave wrote:
> 
>> I have the following "drag" handlers in the Script of a field. It
>> all works - mostly. The problem is that sometimes the field gets
>> left with a blue border. If I pick up a file in the Finder and move
>> it onto the border turns blue (most of the time) if I then move it
>> out of the field it goes back to normal (most of the time). However
>> sometimes it just doesn't receive the dragEnter/dragLeave message.
>> This happens running under the IDE and as a Standalone.
>> 
>> Is this anything else I need to do in order to get this to work
>> reliably? I am using an Intel Mac Pro, MacOS X 10.4.8 with god
>> knows how much RAM and  1 Terabyte of  Hard Disk Space! Lucky me! lol
> 
> Drag and drop messages in Revolution are not always balanced meaning
> you won't always received a dragLeave even though you received a
> dragEnter.  In my testing this behavior seems worse when working with
> grouped controls.
> 
> Also, events are not always received in the right order:
> 
> <http://quality.runrev.com/qacenter/show_bug.cgi?id=3599>
> 
> Personally I have stopped providing visual feedback on objects for
> drag/drop events until the engine behavior is fixed (Rev is aware of
> it).  It is too easy to break and end up with objects that are always
> highlighted (or visual feedback that does not reflect the actual
> operation that will be performed when the drop occurs).


___
use-revolution mailing list
use-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: Drag and Drop Problem

2007-03-03 Thread Trevor DeVore

On Mar 2, 2007, at 5:54 AM, Dave wrote:

I have the following "drag" handlers in the Script of a field. It  
all works - mostly. The problem is that sometimes the field gets  
left with a blue border. If I pick up a file in the Finder and move  
it onto the border turns blue (most of the time) if I then move it  
out of the field it goes back to normal (most of the time). However  
sometimes it just doesn't receive the dragEnter/dragLeave message.  
This happens running under the IDE and as a Standalone.


Is this anything else I need to do in order to get this to work  
reliably? I am using an Intel Mac Pro, MacOS X 10.4.8 with god  
knows how much RAM and  1 Terabyte of  Hard Disk Space! Lucky me! lol


Drag and drop messages in Revolution are not always balanced meaning  
you won't always received a dragLeave even though you received a  
dragEnter.  In my testing this behavior seems worse when working with  
grouped controls.


Also, events are not always received in the right order:

<http://quality.runrev.com/qacenter/show_bug.cgi?id=3599>

Personally I have stopped providing visual feedback on objects for  
drag/drop events until the engine behavior is fixed (Rev is aware of  
it).  It is too easy to break and end up with objects that are always  
highlighted (or visual feedback that does not reflect the actual  
operation that will be performed when the drop occurs).


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
[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


Drag and Drop Problem

2007-03-02 Thread Dave

Hi,

I have the following "drag" handlers in the Script of a field. It all  
works - mostly. The problem is that sometimes the field gets left  
with a blue border. If I pick up a file in the Finder and move it  
onto the border turns blue (most of the time) if I then move it out  
of the field it goes back to normal (most of the time). However  
sometimes it just doesn't receive the dragEnter/dragLeave message.  
This happens running under the IDE and as a Standalone.


Is this anything else I need to do in order to get this to work  
reliably? I am using an Intel Mac Pro, MacOS X 10.4.8 with god knows  
how much RAM and  1 Terabyte of  Hard Disk Space! Lucky me! lol


Thanks a lot
All the Best
Dave

 
-

--
--  dragStart
--
 
-

on dragStart
end dragStart


 
-

--
--  dragEnter
--
 
-

on dragEnter
  set the borderColor of me to "blue"
  set the threeD of me to false
  set the acceptDrop to true
end dragEnter



 
-

--
--  dragLeave
--
 
-

on dragLeave
  set the borderColor of me to empty
  set the threeD of me to true
  set the acceptDrop to false
end dragLeave


--
--
--  dragDrop
--
 
-

on dragDrop
  local myDropData
  local myMessageID
  local myMessageKind


  --
  --  Grab the Data
  --
  put the dragData["files"] into myDropData
  if myDropData = empty then
beep
pass dragDrop
  end if

  --
  --  Send the Add to Job Queue Message
  --
  put "HFPAJobControlMessageID"into myMessageID
  put "HFPAJobQueueAdd"into myMessageKind
  get ISMAppUtilsEncodeAndPutMessage 
(myMessageID,myMessageKind,"Volatile","String",myDropData & cr)


  --
  --  Tidy up and Return
  --
  dragLeave

  pass dragDrop
end dragDrop



___
use-revolution mailing list
use-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: Drag and drop from a list field

2007-02-27 Thread Ken Ray
On Tue, 27 Feb 2007 20:03:13 -0800, Bill Vlahos wrote:

> Ken's suggestion works for making a text clipping on the desktop with 
> the both the name of the file and contents of the file whatever was 
> in the line of the field being dragged.
> 
> I need to intercept this and put something else in those places. In 
> my case the field is a list of names each of which represents a data 
> record (with multiple fields) but is not the complete data record in 
> the list field. I want to collect and format a vCARD from the data 
> base and have that be deposited as a vCARD on the desktop.

Well the first part is as easy as setting the dragData["text"] to the 
vCard data you want to export... the second one is the hard one - 
knowing where the file is going to end up so you can make sure the file 
name is changed to ".vcf".

Any ideas anyone?

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Drag and drop from a list field

2007-02-27 Thread Bill Vlahos
Ken's suggestion works for making a text clipping on the desktop with 
the both the name of the file and contents of the file whatever was in 
the line of the field being dragged.


I need to intercept this and put something else in those places. In my 
case the field is a list of names each of which represents a data 
record (with multiple fields) but is not the complete data record in 
the list field. I want to collect and format a vCARD from the data base 
and have that be deposited as a vCARD on the desktop.


Bill Vlahos

On Feb 27, 2007, at 8:17 AM, Ken Ray wrote:


On Mon, 26 Feb 2007 21:39:29 -0800, Bill Vlahos wrote:


Klaus has a great demo stack in RevOnLine on dragging and dropping a
file on the computer desktop into a field or stack. What I want to
know is how to drag and drop out of a list field onto the desktop.

There is a sample drag and drop in the Rev docs using graphics
objects for dragging the name of a color graphic to another object on
the same card. Essentially the object has the script:

on mouseDown
  set the dragData["text"] to the short name of the target
  set the borderWidth of the target to 3
end mouseDown

on dragEnd
  set the borderWidth of the target to 1
end dragEnd


I have two questions.

1. How do I get the content of the line of text (the one that is
selected) in a list field that I want to drag from?


You could:

  set the dragData["text"] to the hilitedText of the target

However, the cursor changes to be the "can't drag" cursor, even though
you can drop the text into the Message Box or another app without a
problem, so you'd have to change the cursor too:

on mouseDown
  lock cursor
  set cursor to arrow
  set the dragData["text"] to the hilitedText of the target
end mouseDown

The problem with *that* is that you're releasing outside of the main
card window, so no mouseUp/mouseRelease message will be sent. So you'd
need to poll for the mouseState like this:

on mouseDown
  lock cursor
  set cursor to 24   -- the drag cursor
  send "checkMouse" to me in 100 milliseconds
  set the dragData["text"] to the hilitedText of the target
end mouseDown

on checkMouse
  if the mouse is up then
unlock cursor
  else
send "checkMouse" to me in 100 milliseconds
  end if
end checkMouse


2. How do I send it outside the stack to the desktop to make a file
on the desktop?


Well, if you're just dragging text, then the OS does it for you - when
you drag text into the Finder (or Windows Explorer) and release, it
will make a clipping file for you - basically it detects the type of
dragData ("text" in this case), and handles it for you. However I don't
know how to find out exactly *where* the file ends up. That is, what
folder, etc. received the clipping.

It would really be great if the "dragDestination" could be updated to
contain this kind of information, but right now the destination can
only be other objects in Rev.

Anyone have any ideas on how to find out where the clipping was 
dropped?


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Drag and drop from a list field

2007-02-27 Thread Ken Ray
On Mon, 26 Feb 2007 21:39:29 -0800, Bill Vlahos wrote:

> Klaus has a great demo stack in RevOnLine on dragging and dropping a 
> file on the computer desktop into a field or stack. What I want to 
> know is how to drag and drop out of a list field onto the desktop.
> 
> There is a sample drag and drop in the Rev docs using graphics 
> objects for dragging the name of a color graphic to another object on 
> the same card. Essentially the object has the script:
> 
> on mouseDown
>   set the dragData["text"] to the short name of the target
>   set the borderWidth of the target to 3
> end mouseDown
> 
> on dragEnd
>   set the borderWidth of the target to 1
> end dragEnd
> 
> 
> I have two questions.
> 
> 1. How do I get the content of the line of text (the one that is 
> selected) in a list field that I want to drag from?

You could:

  set the dragData["text"] to the hilitedText of the target

However, the cursor changes to be the "can't drag" cursor, even though 
you can drop the text into the Message Box or another app without a 
problem, so you'd have to change the cursor too:

on mouseDown
  lock cursor
  set cursor to arrow
  set the dragData["text"] to the hilitedText of the target
end mouseDown

The problem with *that* is that you're releasing outside of the main 
card window, so no mouseUp/mouseRelease message will be sent. So you'd 
need to poll for the mouseState like this:

on mouseDown
  lock cursor
  set cursor to 24   -- the drag cursor
  send "checkMouse" to me in 100 milliseconds
  set the dragData["text"] to the hilitedText of the target
end mouseDown

on checkMouse
  if the mouse is up then
unlock cursor
  else
send "checkMouse" to me in 100 milliseconds
  end if
end checkMouse

> 2. How do I send it outside the stack to the desktop to make a file 
> on the desktop?

Well, if you're just dragging text, then the OS does it for you - when 
you drag text into the Finder (or Windows Explorer) and release, it 
will make a clipping file for you - basically it detects the type of 
dragData ("text" in this case), and handles it for you. However I don't 
know how to find out exactly *where* the file ends up. That is, what 
folder, etc. received the clipping.

It would really be great if the "dragDestination" could be updated to 
contain this kind of information, but right now the destination can 
only be other objects in Rev.

Anyone have any ideas on how to find out where the clipping was dropped?

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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


Drag and drop from a list field

2007-02-26 Thread Bill Vlahos
Klaus has a great demo stack in RevOnLine on dragging and dropping a  
file on the computer desktop into a field or stack. What I want to  
know is how to drag and drop out of a list field onto the desktop.


There is a sample drag and drop in the Rev docs using graphics  
objects for dragging the name of a color graphic to another object on  
the same card. Essentially the object has the script:


on mouseDown
  set the dragData["text"] to the short name of the target
  set the borderWidth of the target to 3
end mouseDown

on dragEnd
  set the borderWidth of the target to 1
end dragEnd


I have two questions.

1. How do I get the content of the line of text (the one that is  
selected) in a list field that I want to drag from?
2. How do I send it outside the stack to the desktop to make a file  
on the desktop?


Think the way the Apple and Microsoft Address Books work with  
exporting/importing a vCARD file.


Bill Vlahos
___
use-revolution mailing list
use-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 cancel drag and drop when it is in progress?

2007-01-14 Thread David Bovill

Is there a way for a script to cancel a drag and drop event while it is in
progress?

 set the dragdata to empty

Does not seem to work?

Am I right that if a mouseDown handler starts a drag-and-drop - then a
mouseUp event is not sent (a dragdrop may be sent instead) - but a
mouseDoubleUp is sent?
___
use-revolution mailing list
use-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: Drag and Drop Data

2006-06-29 Thread Jeanne A. E. DeVoto

At 4:28 PM -0700 6/28/2006, Robert Sneidar wrote:
Here's a brain buster for you. Let's say I want to drag an email 
from Apple Mail and drop it onto a field. Normally nothing happens, 
even though the field gets focused. Is there any way to find out 
anything about the object being dropped onto the field? THAT would 
be cool. If you could create hot links to files or other drag and 
drop objects, like URL's and such, that would be mega cool. Can 
anyone say project manager with linked to-do's and contacts?


I don't know whether drag and drop supports anything interesting 
except files as yet, but try something like this:



on dragEnter
  beep 2
  set the acceptDrop to true
end dragEnter

on dragDrop
  put the dragData["files"] into myVariable
  answer "Dropped:" & return & myVariable -- list of files
end dragDrop
'
You'd probably want to store the filename(s) in a custom property, 
perhaps creating an icon or something to let the user click and open 
the file.

--
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: Drag and Drop Data

2006-06-28 Thread Jim Ault
On 6/28/06 4:28 PM, "Robert Sneidar" <[EMAIL PROTECTED]> wrote:

> Here's a brain buster for you. Let's say I want to drag an email from
> Apple Mail and drop it onto a field. Normally nothing happens, even
> though the field gets focused. Is there any way to find out anything
> about the object being dropped onto the field? THAT would be cool. If
> you could create hot links to files or other drag and drop objects,
> like URL's and such, that would be mega cool. Can anyone say project
> manager with linked to-do's and contacts?

The key to your 'brain buster' is the concept of 'allow drag and drop'
within Rev.  There are many example stacks of this at work.  One of them is
Scripter's Scrapbook, which has elevated this to a high art of links,
categories, searching modes, hilting found text, and much much more.

I used to put most everything in Scripter's Scrapbook.rev in the early days,
then moved to a different, lees automatic organization system. There are
days when I wish I could have some of the fabulous features that Hugh put
into his work.

Also consider that Rev has its own library of email send and receive, so you
could even imagine doing without an email program.  Think about a Rev
stack/substacks that read, compose, distribute, catalog all email activity.
No limit to the rules and features you could add.

I just added SMTP + a drag-drop email list interface to a small app I built
for a client who only needed to send to several groups (SMTP only).  Each
card stores the set of groups for that card, so that any emails done here
get sent accordingly.  Unlimited cards = unlimited combinations.  To take
someone off all lists (leaves the company) is a simple repeat loop through
all the cards.

Sarah Riechelt  http://troz.net/Rev/misc.php
RevGZ.rev
This is a stack that uses Rev's built-in compression routines to compress
and expand any file. The latest version allows drag & drop but the drag
hilighting may not always go away properly if you move off the buttons. It
is stored as a zip file, so you can open it first, in order to open all the
other gz files

Hugh Senior  http://www.flexiblelearning.com/ssbk/testimonials.html
http://www.flexiblelearning.com/xtalk.htm

Others are out there, and hopefully they will chime in.

Jim Ault
Las Vegas


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


Drag and Drop Data

2006-06-28 Thread Robert Sneidar
Here's a brain buster for you. Let's say I want to drag an email from  
Apple Mail and drop it onto a field. Normally nothing happens, even  
though the field gets focused. Is there any way to find out anything  
about the object being dropped onto the field? THAT would be cool. If  
you could create hot links to files or other drag and drop objects,  
like URL's and such, that would be mega cool. Can anyone say project  
manager with linked to-do's and contacts?


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

___
use-revolution mailing list
use-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: Drag and Drop from Finder to Stack

2005-12-19 Thread Garrett Hylltun

Thank you so much Sarah :-)

-Garrett

On Dec 19, 2005, at 1:25 PM, Sarah Reichelt wrote:


On 12/20/05, Garrett Hylltun <[EMAIL PROTECTED]> wrote:

Does anyone know if it's possible to accept drag and drop from Finder
to a stack?  I've browsed the doc's and only found some references to
text drag and drop from field to field etc, but nothing about from
outside of our own stack.



Here is a link to a stack I wrote that compresses & un-compresses  
files:

<http://www.troz.net/Rev/misc/RevGZ.rev.zip>
It allows files to be dragged & dropped on to it's buttons, so have a
look at the scripts and you should be able to modify them for your own
purposes.

Cheers,
Sarah
___
use-revolution mailing list
use-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: Drag and Drop from Finder to Stack

2005-12-19 Thread Sarah Reichelt
On 12/20/05, Garrett Hylltun <[EMAIL PROTECTED]> wrote:
> Does anyone know if it's possible to accept drag and drop from Finder
> to a stack?  I've browsed the doc's and only found some references to
> text drag and drop from field to field etc, but nothing about from
> outside of our own stack.
>

Here is a link to a stack I wrote that compresses & un-compresses files:
<http://www.troz.net/Rev/misc/RevGZ.rev.zip>
It allows files to be dragged & dropped on to it's buttons, so have a
look at the scripts and you should be able to modify them for your own
purposes.

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


Drag and Drop from Finder to Stack

2005-12-19 Thread Garrett Hylltun
Does anyone know if it's possible to accept drag and drop from Finder  
to a stack?  I've browsed the doc's and only found some references to  
text drag and drop from field to field etc, but nothing about from  
outside of our own stack.


Any help or info on this is appreciated,

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


Drag and Drop Problem

2005-10-03 Thread David Burgun

Hi,

I think there is something I don't understand correctly:

I have a group that contains 5 controls, 2 of which can be the 
targets of a Drag and Drop operation.


On the 2 controls that can accept a drop, I have the following scripts:

on dragEnter
set the threeD of me to false
set the borderColor of me to "blue"

set the acceptDrop to true

pass dragEnter
end dragEnter

on dragLeave
set the threeD of me to true
set the borderColor of me to empty

set the acceptDrop to false

--  Do processing on dragData



send "dragLeave" to me
pass dragDrop
end dragDrop

However, sometimes (about 20% of the time) the borderColor does not 
get reset when the field is entered but not dropped into, or 
sometimes the field does not get high-lighted when the cursor does 
enter the field.


I seem to remember this happening before, and I seem to remember that 
I fixed it by putting dragEnter and dragLeave handlers in the parent 
Group, but of course, now I can't find that stack!


Any pointers on this would be greatly appreciated.

Thanks a lot
Dave


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


Drag and drop applications

2005-10-01 Thread Rob Beynon

Dear All

I want to create a simple text file processor to convert one data
format to another. ideally, the user will drag and drop the file onto a
program icon, and it will then process the file and write the processed
file back to the same location, with a new name (extension).

is this even remotely possible with Revolution?

-- 
All best wishes,
Rob

(Created at 19:29 on 01/10/2005)


==
Prof. Rob Beynon|+44 151 794 4312 (voice)
Dept. Veterinary Preclinical|+44 151 794 4243 (fax)
Sciences, University of Liverpool,
Crown Street, Liverpool L69 7ZJ |mailto:[EMAIL PROTECTED]
--
http://www.liv.ac.uk/pfg|http://www.csiv.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: Creating Drag and Drop

2005-06-02 Thread Scott Rossi
Recently, Emilio Gagliardi  wrote:

> In your message box:
> 
>  go url "http://www.tactilemedia.com/download/drag_sample.rev";
> 
> 
> And this one is for drag-reordering of a list.
> 
>  go url "http://www.tactilemedia.com/download/getinline.rev";
> 
> 
> Thank you so much for your samples, but I couldn't download them.  If
> I click on either of the above links I get 404 errors.  I tried
> finding the files through your web interface but was unsuccessful.
> Can anyone else download them?  Perhaps you could email them to me
> directly?

Hi Emilio:

Please note the mention of "in your message box" above.  This means you
should enter the indicated line in your message box, not link to a Web
browser.  By doing so, the stack opens up directly within Rev -- no browser
needed.

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
http://lists.runrev.com/mailman/listinfo/use-revolution


Creating Drag and Drop

2005-06-02 Thread Emilio Gagliardi

Please disregard last message.

I found the download page.

Cheers,
Emilio
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Creating Drag and Drop

2005-06-02 Thread Emilio Gagliardi

Recently, Klaus Major  wrote:

> if i remember correctly Scott Rossi has a "Drag Sample" stack,
> which does exactly what you need.
>
> It works with the "mousemove" message, i think...
>
> Scott, could you supply an URL for that one?

But of course, Klaus.  In your message box:

  go url "http://www.tactilemedia.com/download/drag_sample.rev";


And this one is for drag-reordering of a list.

  go url "http://www.tactilemedia.com/download/getinline.rev";


Thank you so much for your samples, but I couldn't download them.  If  
I click on either of the above links I get 404 errors.  I tried  
finding the files through your web interface but was unsuccessful.   
Can anyone else download them?  Perhaps you could email them to me  
directly?


Again, thanks so much.
Emilio
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating Drag and Drop

2005-06-02 Thread Levi Kendall
>   go url "http://www.tactilemedia.com/download/getinline.rev";

Thanks for posting this.  I have been having difficulty figuring out
how to do something very similar to this.  Great Example.

-Levi
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating Drag and Drop

2005-06-02 Thread Scott Rossi
Recently, Klaus Major  wrote:

> if i remember correctly Scott Rossi has a "Drag Sample" stack,
> which does exactly what you need.
> 
> It works with the "mousemove" message, i think...
> 
> Scott, could you supply an URL for that one?

But of course, Klaus.  In your message box:

  go url "http://www.tactilemedia.com/download/drag_sample.rev";


And this one is for drag-reordering of a list.

  go url "http://www.tactilemedia.com/download/getinline.rev";

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
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating Drag and Drop

2005-06-02 Thread Eric Chatonet

Hi Emilio,

Sorry that this stack could not help you.
In your case, I think that you could use another method I used in  
many projects:
While the mouse is down, you use the mouseMove message in the dragged  
object (or send a message in  milliseconds) to track where is  
the mouseLoc (see the mouseStack function and within operator) and  
act accordingly.
If I understand correctly (I am not sure :-), it might be more simple  
if it is always within the same stack window: when the mouse is up,  
you check the mouseLoc, the position of the object, etc.


Le 2 juin 05 à 19:19, Emilio Gagliardi a écrit :


Dear Eric
I now realize this code is not what i need because it implements  
drap and drop with objects outside of the Revolution Window.  It  
does not appear that dragEnter and dragDrop fire for objects within  
the revolution window.  That is, I want to drag objects that are  
within the window.  Perhaps I am not using your code correctly, but  
I do not see how to make a field or button cause the dragEnter  
command to fire.  I would like the user to drag a field or button  
around, place it over an image or field and then store the name or  
ID of the field/button they just dragged for later use.  What i'm  
stuck on is determining whether the source field/button is over the  
target field/image AND which commands fire and in what order.


Best regards from Paris,

Eric Chatonet.

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

Plugins, tutorials and more on our 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
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating Drag and Drop

2005-06-02 Thread Klaus Major

Hi Emilio,


Dear Eric
I now realize this code is not what i need because it implements  
drap and drop with objects outside of the Revolution Window.  It  
does not appear that dragEnter and dragDrop fire for objects within  
the revolution window.  That is, I want to drag objects that are  
within the window.  Perhaps I am not using your code correctly, but  
I do not see how to make a field or button cause the dragEnter  
command to fire.  I would like the user to drag a field or button  
around, place it over an image or field and then store the name or  
ID of the field/button they just dragged for later use.  What i'm  
stuck on is determining whether the source field/button is over the  
target field/image AND which commands fire and in what order.


Thank you for your time.


if i remember correctly Scott Rossi has a "Drag Sample" stack,
which does exactly what you need.

It works with the "mousemove" message, i think...

Scott, could you supply an URL for that one?


Emilio


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


Creating Drag and Drop

2005-06-02 Thread Emilio Gagliardi

Dear Eric
I now realize this code is not what i need because it implements drap  
and drop with objects outside of the Revolution Window.  It does not  
appear that dragEnter and dragDrop fire for objects within the  
revolution window.  That is, I want to drag objects that are within  
the window.  Perhaps I am not using your code correctly, but I do not  
see how to make a field or button cause the dragEnter command to  
fire.  I would like the user to drag a field or button around, place  
it over an image or field and then store the name or ID of the field/ 
button they just dragged for later use.  What i'm stuck on is  
determining whether the source field/button is over the target field/ 
image AND which commands fire and in what order.


Thank you for your time.

Emilio
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: creating drag-and-drop

2005-06-02 Thread Emilio Gagliardi
Thank you very much for your code example!  It looks like exactly  
what i need.


Cheers,
Emilio
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: creating drag-and-drop

2005-06-01 Thread Eric Chatonet

Hi Emilio,

About snap an object to a predefined position, just set the loc (or  
another property as the topLeft, the bottom, etc.) of this object  
when the user releases the mouse.
As for drag and drop, you might be interested by my How-To stack #010  
How to drag and drop files and folders.

(It's the same way of doing with objects)
Access it by running in the message box:

go url "http://www.sosmartsoftware.com/downloads/Managing%20Drag%20and 
%20Drop.rev"


Best regards from Paris,

Eric Chatonet.

Le 2 juin 05 à 00:14, Emilio Gagliardi a écrit :


Hi all,
I want to create a simple screen that allows a user to drag a  
button from the center of the screen to one of three hotspots and  
then run some function.


The problem I am having is the interaction between object that I  
use to define the hotspot (an image) and the button I want the user  
to move around.  I thought it would be best to use an image with a  
fixed size to define a portion of the card to accept a "drop".   
However, the messages don't seem to move as I would expect.  That  
is, i can drag the button around no problem, but to detect whether  
some portion of the button is over the image is proving odd.  For  
example, you I release the mouse outside the image object *on  
mouseUp* fires correctly and *is within* correctly returns false.


However, when I drag the button over the image and release while  
over the  image, *on mouseUp* doesn't fire at all. The  
functionality I'm looking to create is a snap-to mechanism that  
detects whether the button is over any part of the image and then  
snap the button to a position relative to the image.  The end  
result is that I need to know which buttons were dragged into the  
three hot zones so I can store that information.


Any suggestions is greatly appreciated.

Cheers,
Emilio



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

Plugins, tutorials and more on our 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
http://lists.runrev.com/mailman/listinfo/use-revolution


creating drag-and-drop

2005-06-01 Thread Emilio Gagliardi

Hi all,
I want to create a simple screen that allows a user to drag a button  
from the center of the screen to one of three hotspots and then run  
some function.


The problem I am having is the interaction between object that I use  
to define the hotspot (an image) and the button I want the user to  
move around.  I thought it would be best to use an image with a fixed  
size to define a portion of the card to accept a "drop".  However,  
the messages don't seem to move as I would expect.  That is, i can  
drag the button around no problem, but to detect whether some portion  
of the button is over the image is proving odd.  For example, you I  
release the mouse outside the image object *on mouseUp* fires  
correctly and *is within* correctly returns false.


However, when I drag the button over the image and release while over  
the  image, *on mouseUp* doesn't fire at all. The functionality I'm  
looking to create is a snap-to mechanism that detects whether the  
button is over any part of the image and then snap the button to a  
position relative to the image.  The end result is that I need to  
know which buttons were dragged into the three hot zones so I can  
store that information.


Any suggestions is greatly appreciated.

Cheers,
Emilio
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag and Drop in List Field

2005-05-26 Thread Eric Chatonet

Hi Levi,

Some clues:

on dragEnter
  set the acceptDrop to 
end dragEnter

on dragDrop
  put word 2 of the mouseLine into tLineNo
end dragDrop

You might be interested too by my How-To stack #010 How to drag and  
drop files and folders

Just run in the message box:
go url "http://www.sosmartsoftware.com/downloads/Managing%20Drag%20and 
%20Drop.rev"


Hope this helps.

Best regards from Paris,

Eric Chatonet.

Le 26 mai 05 à 16:22, Levi Kendall a écrit :


Hello All,

  I'm having some issues detecting a drag and drop operation in a
field.  The field is configured to be a list (listBehavior attribute
is set true).  I would also prefer to have multiple lines selectable
(multipleHilites attribute).  I thought at first multi line selection
was preventing the drag and drop operation, but it doesn't work with
either setting.

  The code I've used in the field's script is purely for detection
purposes.  The first one I tried doesn't ever execute so I'm assuming
the engine is not passing this message to the field ever.

on dragStart
  answer "Dragging Started"
end dragStart

  When this didn't work I figured I'd move over to using dragMove.
Here there was some limited succuess.  The message would fire when a
chunk was dragged in from another field, however the message would
never originate from mouse operations in the field itself, the chunk
always had to come from some other field.

on dragMove
  answer "Dragging"
end dragMove

  Since that wasn't really what I had in mind either I tried the last
one, the dragDrop message.  Again, this message won't fire at all,
even if text is dragged from another field entirely.

on dragDrop
  answer "Dropped"
end dragDrop

  Is it possible to properly detect drag and drops in list type
fields?  If so can the line which the drag and drop is targetting in
the field be detected during the drag or at the end of it?  Any
suggestions would be appreciated.

Thanks,
Levi



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

Plugins, tutorials and more on our 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
http://lists.runrev.com/mailman/listinfo/use-revolution


Drag and Drop in List Field

2005-05-26 Thread Levi Kendall
Hello All,

  I'm having some issues detecting a drag and drop operation in a
field.  The field is configured to be a list (listBehavior attribute
is set true).  I would also prefer to have multiple lines selectable
(multipleHilites attribute).  I thought at first multi line selection
was preventing the drag and drop operation, but it doesn't work with
either setting.

  The code I've used in the field's script is purely for detection
purposes.  The first one I tried doesn't ever execute so I'm assuming
the engine is not passing this message to the field ever.

on dragStart
  answer "Dragging Started"
end dragStart

  When this didn't work I figured I'd move over to using dragMove. 
Here there was some limited succuess.  The message would fire when a
chunk was dragged in from another field, however the message would
never originate from mouse operations in the field itself, the chunk
always had to come from some other field.

on dragMove
  answer "Dragging"
end dragMove

  Since that wasn't really what I had in mind either I tried the last
one, the dragDrop message.  Again, this message won't fire at all,
even if text is dragged from another field entirely.

on dragDrop
  answer "Dropped"
end dragDrop

  Is it possible to properly detect drag and drops in list type
fields?  If so can the line which the drag and drop is targetting in
the field be detected during the drag or at the end of it?  Any
suggestions would be appreciated.

Thanks,
Levi
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Pseudo Drag and Drop question

2005-02-25 Thread Jerry Balzano
Thanks Alex and Wilhelm, for your assistance with my problem.  I'm off 
and running now (up to the next obstacle?).

Wilhelm, I don't know how I missed your post from Feb 6; it's clearly 
relevant.  I appreciate your re-posting for my benefit.

Happy scripting/designing/creating to all you Rev users out there,
Jerry
On Feb 24, 2005, at 3:25 AM, Alex Tweedly wrote:
I mainly want to know, am I right about this, that there is no easier 
or
better way?

I don't know (for sure) that there isn't an easier way - but it sounds 
like you've done a diligent search and not found one yet, so it may be 
time to go ahead with this way.

Earlier, you said:
I foresee this "solution" scaling badly as the number of controls on 
the card increases.
You could help the scaling performance by
to (p)
manage a list of potential target-controls and (q) iterate over it 
until I
find one with the mouseLoc (or some such) enters the rect of it.

Rather than a list of controls, and checking against the rect of it, 
I'd keep a list of rectangles, as in
 x1, y1, x2, y2, "long name of the control"

Then a check that said
on mouseMove newx, newy
  if abs(newx-gLastX) < 10 and abs(newy-gLastY) < 10 then return
  repeat for each line L in gControlList
 if item 1 of L  < newx and newx < item 3 of L  and  etc.
  end repeat
end mouseMove
would be pretty quick. Only checking when the delta is big enough is a 
help - and running through a list like this would be quick.
In the unlikely case you do run into performance issues (because you 
had hundreds or thousands of such controls), you could use some of the 
fancy geometric sorting techniques to allow you to only check against 
relatively few of them

***
On Feb 24, 2005, at 2:05 AM, Wilhelm Sanke wrote:
On  Feb 6 I responded to a similar question by Jonathan Lynch. Maybe 
the suggestion below could be of use for you?:

You could try something like the handler below in the script of the 
dragged control:

"on mousedown
set the layer of me to top
grab me
put the number of graphics into Gnumber
repeat with i = 1 to Gnumber
  if intersect(me, grc i) then
put the name of grc i
# or do whatever you want
  end if
end repeat
send "mousedown" to me in 100 milliseconds
end mousedown"
The last line does the trick.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


  1   2   >