Re: How to reorder lines in a list field (understood!)

2010-11-12 Thread zryip theSlug
Bonjour André,

J'ai peut-être une idée pour contourner le problème. Pourriez-vous
m'envoyer votre script afin que j'y jette un oeil ? Je ne vous promets
rien, mais je voudrais essayer.


Merci à l'avance.

On Wed, Nov 3, 2010 at 11:28 AM, André Bisseret
andre.bisse...@wanadoo.fr wrote:
 Bonjour,

 Thanks to this how to I have understood why my drag and drop scripts is
 working on my test stack and not working in my app.
 It is because, in my app; the field is part of a group (not in my test
 stack)!!

 It is a bug (# 6823) exhibited by Éric Chatonet in 2008/07 with version
 2.9.0 RC4:
 In a grouped field, dragLeave is sent even if the mouse is within the
 field rect.
 while If the field is not grouped it works as expected.

 This bug is still there is 4.5.0
 In my app.the field where I wanted to be able to reorder lines has to be
 grouped so that I can't use drag and drop for that -(((

 Best regards from Grenoble

 André



Amicalement,
-- 
-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: How to reorder lines in a list field (understood!)

2010-11-12 Thread zryip theSlug
Oooops, should be a private reply, so move it to trash excepted André ;)

On Fri, Nov 12, 2010 at 11:28 AM, zryip theSlug zryip.thes...@gmail.com wrote:
 Bonjour André,

 J'ai peut-être une idée pour contourner le problème. Pourriez-vous
 m'envoyer votre script afin que j'y jette un oeil ? Je ne vous promets
 rien, mais je voudrais essayer.


 Merci à l'avance.

 On Wed, Nov 3, 2010 at 11:28 AM, André Bisseret
 andre.bisse...@wanadoo.fr wrote:
 Bonjour,

 Thanks to this how to I have understood why my drag and drop scripts is
 working on my test stack and not working in my app.
 It is because, in my app; the field is part of a group (not in my test
 stack)!!

 It is a bug (# 6823) exhibited by Éric Chatonet in 2008/07 with version
 2.9.0 RC4:
 In a grouped field, dragLeave is sent even if the mouse is within the
 field rect.
 while If the field is not grouped it works as expected.

 This bug is still there is 4.5.0
 In my app.the field where I wanted to be able to reorder lines has to be
 grouped so that I can't use drag and drop for that -(((

 Best regards from Grenoble

 André



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




-- 
-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: How to reorder lines in a list field (understood!)

2010-11-03 Thread André Bisseret

Bonjour,

Thanks to this how to I have understood why my drag and drop scripts  
is working on my test stack and not working in my app.
It is because, in my app; the field is part of a group (not in my test  
stack)!!


It is a bug (# 6823) exhibited by Éric Chatonet in 2008/07 with  
version 2.9.0 RC4:
In a grouped field, dragLeave is sent even if the mouse is within  
the field rect.

while If the field is not grouped it works as expected.

This bug is still there is 4.5.0
In my app.the field where I wanted to be able to reorder lines has to  
be grouped so that I can't use drag and drop for that -(((


Best regards from Grenoble

André
Le 30 oct. 10 à 15:39, Jacques Hausser a écrit :



Bonjour,

Eric Chatonet also published a how to that does exactly what you  
want:


http://www.sosmartsoftware.com/?r=telechargerl=enarch=tutorials//List%20reorganizing.rev.zip

Good luck

Jacques

Le 30 oct. 2010 à 15:18, André Bisseret a écrit :


Bonjour,

I am trying to get a list field where it would be possible to  
reorder the lines.

(is there somewhere any tutorial or any solution on this?)

I started from a script from Éric Chatonet that allow moving lines  
from field1 to field2, modifying it to drag lines in one field only.


I succeeded in a test stack:  in a list field, all works as  
expected with a dragImage).


My problem is that when I put exactly the same script in a field of  
an app. I am developing, it does not works any more:
The dragged line is deleted when releasing the mouse (except if I  
drag outside the field and then back in it: then that works


I am fighting with that for hours now, and can't find what is wrong.

My last surprise is that if I don't create (set) any dragImage,  
then all works as expected.


I am getting crazy
The worst thing is that the same script works well in a field on my  
test stack and not on the field on my other stack (the two fields  
have exactly the same properties).


Any idea on what could be wrong?

Thanks a lot in advance

Best regards from Grenoble

André





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

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


**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

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

http://lists.runrev.com/mailman/listinfo/use-revolution
---
Orange vous informe que cet  e-mail a ete controle par l'anti-virus  
mail.

Aucun virus connu a ce jour par nos services n'a ete detecte.




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


Re: How to reorder lines in a list field

2010-10-31 Thread André Bisseret

Thanks you much Wilhelm for your  reply.

I had got your very useful (and nice) stack, thanks to the tutorial  
from Éric Chatonet who pointed your stack out.


I am studying your solutions and those of Scott Rossi too

Very happy with all this material

Best regards

André


Le 30 oct. 10 à 23:13, Wilhelm Sanke a écrit :



Check out

http://www.sanke.org/Software/DragWithListFields.zip





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


Re: How to reorder lines in a list field

2010-10-31 Thread André Bisseret


Le 30 oct. 10 à 15:39, Jacques Hausser a écrit :



Bonjour,

Eric Chatonet also published a how to that does exactly what you  
want:


http://www.sosmartsoftware.com/?r=telechargerl=enarch=tutorials//List%20reorganizing.rev.zip

Good luck

Jacques


En effet ! exactement ce que je cherchais ;-))
I had not find this one!

I had written a similar solution which works on a test stack, but does  
not work on the stack of my app.
I got the same problem with the script of Éric (works well on a stack  
without any other script, does not work in my app.)


So, now I am sure I have handlers in the app. which interfere with  
this kind of solution. I am looking for (and will find) them.


Merci beaucoup Jacques

André



Le 30 oct. 2010 à 15:18, André Bisseret a écrit :


Bonjour,

I am trying to get a list field where it would be possible to  
reorder the lines.

(is there somewhere any tutorial or any solution on this?)

I started from a script from Éric Chatonet that allow moving lines  
from field1 to field2, modifying it to drag lines in one field only.


I succeeded in a test stack:  in a list field, all works as  
expected with a dragImage).


My problem is that when I put exactly the same script in a field of  
an app. I am developing, it does not works any more:
The dragged line is deleted when releasing the mouse (except if I  
drag outside the field and then back in it: then that works


I am fighting with that for hours now, and can't find what is wrong.

My last surprise is that if I don't create (set) any dragImage,  
then all works as expected.


I am getting crazy
The worst thing is that the same script works well in a field on my  
test stack and not on the field on my other stack (the two fields  
have exactly the same properties).


Any idea on what could be wrong?

Thanks a lot in advance

Best regards from Grenoble

André





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

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


**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

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

http://lists.runrev.com/mailman/listinfo/use-revolution
---
Orange vous informe que cet  e-mail a ete controle par l'anti-virus  
mail.

Aucun virus connu a ce jour par nos services n'a ete detecte.






___
use-revolution mailing list
use-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 reorder lines in a list field

2010-10-30 Thread André Bisseret

Bonjour,

I am trying to get a list field where it would be possible to reorder  
the lines.

(is there somewhere any tutorial or any solution on this?)

I started from a script from Éric Chatonet that allow moving lines  
from field1 to field2, modifying it to drag lines in one field only.


I succeeded in a test stack:  in a list field, all works as expected  
with a dragImage).


My problem is that when I put exactly the same script in a field of an  
app. I am developing, it does not works any more:
The dragged line is deleted when releasing the mouse (except if I drag  
outside the field and then back in it: then that works


I am fighting with that for hours now, and can't find what is wrong.

My last surprise is that if I don't create (set) any dragImage, then  
all works as expected.


I am getting crazy
The worst thing is that the same script works well in a field on my  
test stack and not on the field on my other stack (the two fields have  
exactly the same properties).


Any idea on what could be wrong?

Thanks a lot in advance

Best regards from Grenoble

André





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


Re: How to reorder lines in a list field

2010-10-30 Thread Jacques Hausser
Bonjour,

Eric Chatonet also published a how to that does exactly what you want:

http://www.sosmartsoftware.com/?r=telechargerl=enarch=tutorials//List%20reorganizing.rev.zip

Good luck

Jacques

Le 30 oct. 2010 à 15:18, André Bisseret a écrit :

 Bonjour,
 
 I am trying to get a list field where it would be possible to reorder the 
 lines.
 (is there somewhere any tutorial or any solution on this?)
 
 I started from a script from Éric Chatonet that allow moving lines from 
 field1 to field2, modifying it to drag lines in one field only.
 
 I succeeded in a test stack:  in a list field, all works as expected with a 
 dragImage).
 
 My problem is that when I put exactly the same script in a field of an app. I 
 am developing, it does not works any more:
 The dragged line is deleted when releasing the mouse (except if I drag 
 outside the field and then back in it: then that works
 
 I am fighting with that for hours now, and can't find what is wrong.
 
 My last surprise is that if I don't create (set) any dragImage, then all 
 works as expected.
 
 I am getting crazy
 The worst thing is that the same script works well in a field on my test 
 stack and not on the field on my other stack (the two fields have exactly the 
 same properties).
 
 Any idea on what could be wrong?
 
 Thanks a lot in advance
 
 Best regards from Grenoble
 
 André
 
 
 
 
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

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


Re: How to reorder lines in a list field

2010-10-30 Thread Björnke von Gierke
I can't help you with code from someone else that I have no intention of 
looking at. Most likely a mouseenter or mouseleave doesn't trigger, no clue. 
For reordering lines, there's no build in way, and there are many possible ways 
to do it. Here's mine. It uses just the list field, and is probably a bit 
simplistic (no floating line/drag image following the mouse cursor). But it 
works for a single selection list field.

on mousedown
  put the selectedText of me into myDrag
  put the mouseLine into mySelection
  repeat while the mouse is down
put the mouseLine into toSelect
if mySelection  toSelect and toSelect   then
  put the scroll of me into theScroll
  put me into theText
  put word 2 of toSelect into LinetoSelect
  if lineToSelect = the number of lines of me then
delete line (word 2 of mySelection) of theText
put return  myDrag after line -1 of theText
  else
delete line (word 2 of mySelection) of theText
put myDrag  return before line lineToSelect of theText
  end if
  put toSelect into mySelection
  lock screen
  put theText into me
  set the scroll of me to theScroll
  select line (word 2 of myselection) of me
  unlock screen
end if
  end repeat
  showSettings
end mouseDown


On 30 Oct 2010, at 15:18, André Bisseret wrote:

 Bonjour,
 
 I am trying to get a list field where it would be possible to reorder the 
 lines.
 (is there somewhere any tutorial or any solution on this?)



-- 

official ChatRev page:
http://bjoernke.com?target=chatrev

Chat with other RunRev developers:
go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev;

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


Re: How to reorder lines in a list field

2010-10-30 Thread André Bisseret


Thanks a lot Björnke for your prompt reply, and your solution. It  
works well (and very fast ;-)


André

Le 30 oct. 10 à 15:42, Björnke von Gierke a écrit :



I can't help you with code from someone else that I have no  
intention of looking at. Most likely a mouseenter or mouseleave  
doesn't trigger, no clue. For reordering lines, there's no build in  
way, and there are many possible ways to do it. Here's mine. It uses  
just the list field, and is probably a bit simplistic (no floating  
line/drag image following the mouse cursor). But it works for a  
single selection list field.


on mousedown
put the selectedText of me into myDrag
put the mouseLine into mySelection
repeat while the mouse is down
  put the mouseLine into toSelect
  if mySelection  toSelect and toSelect   then
put the scroll of me into theScroll
put me into theText
put word 2 of toSelect into LinetoSelect
if lineToSelect = the number of lines of me then
  delete line (word 2 of mySelection) of theText
  put return  myDrag after line -1 of theText
else
  delete line (word 2 of mySelection) of theText
  put myDrag  return before line lineToSelect of theText
end if
put toSelect into mySelection
lock screen
put theText into me
set the scroll of me to theScroll
select line (word 2 of myselection) of me
unlock screen
  end if
end repeat
showSettings
end mouseDown


On 30 Oct 2010, at 15:18, André Bisseret wrote:


Bonjour,

I am trying to get a list field where it would be possible to  
reorder the lines.

(is there somewhere any tutorial or any solution on this?)




--

official ChatRev page:
http://bjoernke.com?target=chatrev

Chat with other RunRev developers:
go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev;

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

http://lists.runrev.com/mailman/listinfo/use-revolution
---
Orange vous informe que cet  e-mail a ete controle par l'anti-virus  
mail.

Aucun virus connu a ce jour par nos services n'a ete detecte.






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


Re: How to reorder lines in a list field

2010-10-30 Thread Scott Rossi
Recently, André Bisseret wrote:

 I am trying to get a list field where it would be possible to reorder
 the lines.
 (is there somewhere any tutorial or any solution on this?)

GetInLine is one example.  Execute in your message box:

go URL http://www.tactilemedia.com/site_files/downloads/getinline.rev;

Regards,

Scott Rossi
Creative Director
Tactile Media, UX 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: How to reorder lines in a list field

2010-10-30 Thread FlexibleLearning
A very nice handler, BvG!

As written it needs the traversalON to be true to display correctly. A minor
change to one line and it displays correctly whether the traversalON is
either true or false...

on mousedown
  put the selectedText of me into myDrag
  put the mouseLine into mySelection
  repeat while the mouse is down
put the mouseLine into toSelect
if mySelection  toSelect and toSelect   then
  put the scroll of me into theScroll
  put me into theText
  put word 2 of toSelect into LinetoSelect
  if lineToSelect = the number of lines of me then
delete line (word 2 of mySelection) of theText
put return  myDrag after line -1 of theText
  else
delete line (word 2 of mySelection) of theText
put myDrag  return before line lineToSelect of theText
  end if
  put toSelect into mySelection
  lock screen
  put theText into me
  set the scroll of me to theScroll
  # select line (word 2 of myselection) of me
  set the hilitedLines of me to (word 2 of myselection)
  unlock screen
end if
  end repeat
end mouseDown

Hugh Senior
FLCo

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


Re: How to reorder lines in a list field

2010-10-30 Thread André Bisseret


Le 30 oct. 10 à 17:49, Scott Rossi a écrit :



Recently, André Bisseret wrote:


I am trying to get a list field where it would be possible to reorder
the lines.
(is there somewhere any tutorial or any solution on this?)


GetInLine is one example.  Execute in your message box:

go URL http://www.tactilemedia.com/site_files/downloads/ 
getinline.rev


Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


Thanks Scott for your reply.

Indeed, I know your very nice GetInLine (which was pointed out by  
Éric Chatonet in his tutorial Managing Drag and Drop


But, actually, I am trying to learn using the drag and drop features  
of livecode.


In fact starting from this tutorial, I have got a script which runs  
nicely in a test stack I made.


My problem arises when I put the same script in a field of an app. I  
am developping:  it does not works there.

Even If I copy the test field on my app. it does not work.

If I copy the field of my app. (which has the same script) on a brand  
new stack, then the script works!!


So the problem comes from the stack of my app.

I can't find any idea about what  could hinder the field and its  
script when it is on my app.


Thanks again for your reply

Best regards

André





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


Re: How to reorder lines in a list field

2010-10-30 Thread Wilhelm Sanke

Check out

http://www.sanke.org/Software/DragWithListFields.zip

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