Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
I'll give that a go. 

Bob S


> On Mar 24, 2017, at 14:50 , J. Landman Gay via use-livecode 
>  wrote:
> 
> The theory is that something is interfering with the drop, so altering the 
> text after the drop completes might fix it. Could be a bug, but using "send" 
> may work around it.


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode
The theory is that something is interfering with the drop, so altering 
the text after the drop completes might fix it. Could be a bug, but 
using "send" may work around it.


On 3/24/17 4:38 PM, Bob Sneidar via use-livecode wrote:

In that case sending would only replace the dropped text. No point in
that. The text is getting into the field using either method. It's
just that the window controls become unresponsive like they might if
a script was still running. Why moving a window or switching focus
would clear the condition I do not know.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
In that case sending would only replace the dropped text. No point in that. The 
text is getting into the field using either method. It's just that the window 
controls become unresponsive like they might if a script was still running. Why 
moving a window or switching focus would clear the condition I do not know. 

Bob S


> On Mar 24, 2017, at 14:34 , J. Landman Gay via use-livecode 
>  wrote:
> 
> Try the "send" method then, which updates the text after the drop.
> 
> On 3/24/17 3:47 PM, Bob Sneidar via use-livecode wrote:
>> Whoops! Spoke too soon. Still makes the window unresponsive.
>> Apparently the problem is intermittent. But it also looks like exit
>> to top without allowing the drop is the only reliable solution.
>> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode

Try the "send" method then, which updates the text after the drop.

On 3/24/17 3:47 PM, Bob Sneidar via use-livecode wrote:

Whoops! Spoke too soon. Still makes the window unresponsive.
Apparently the problem is intermittent. But it also looks like exit
to top without allowing the drop is the only reliable solution.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
No, because the problem apparently happens AFTER the text is placed. Everything 
works, I just cannot manipulate any controls until I either move the window or 
select something ANYTHING, even a different program (window loses focus). 

Bob S


> On Mar 24, 2017, at 14:02 , Dr. Hawkins via use-livecode 
>  wrote:
> 
> would using "set the text of me" rather than "put into me" make a
> difference?


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Dr. Hawkins via use-livecode
would using "set the text of me" rather than "put into me" make a
difference?

On Fri, Mar 24, 2017 at 1:47 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Whoops! Spoke too soon. Still makes the window unresponsive. Apparently
> the problem is intermittent. But it also looks like exit to top without
> allowing the drop is the only reliable solution.
>
> Bob S
>
>
> > On Mar 24, 2017, at 13:33 , Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > So here is the new code and this works a peach!
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
Whoops! Spoke too soon. Still makes the window unresponsive. Apparently the 
problem is intermittent. But it also looks like exit to top without allowing 
the drop is the only reliable solution. 

Bob S


> On Mar 24, 2017, at 13:33 , Bob Sneidar via use-livecode 
>  wrote:
> 
> So here is the new code and this works a peach!


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
Interesting. I added the exit to top yesterday because it seemed to fix the 
responsiveness problem. It has been working without exit to top and pass 
dragdrop of over 2 years. I think it's because I am not acually allowing the 
drop to happen, but rather intercepting it, getting the dragData ["text"] and 
entering it into the field by script (would that be scripturally??) which might 
explain why the window becomes unresponsive the way I am doing it. The drop 
never *actually* happens, and that explains why exit to top corrects the issue. 

So here is the new code and this works a peach!

on dragDrop
   put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into tDragData
   put titleCase(tDragData, false) into tDragData -- capitalize first letter of 
each word
   set the dragData ["text"] to tDragData
   pass dragDrop
end dragDrop

The trick then is to allow the drop to happen, but clean up the dragData 
["text"] first! Now it makes perfect sense. Thanks Jacque! Now I get to 
refactor the refactored refactorization that was initially refactored some time 
ago. 

Bob S


> On Mar 24, 2017, at 12:21 , J. Landman Gay via use-livecode 
>  wrote:
> 
> The first thing to try would be replacing "exit to top" with "pass dragdrop". 
> If you don't pass the command, the drop doesn't happen.


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode

On 3/24/17 1:03 PM, Bob Sneidar via use-livecode wrote:

constant cModeList = "uppercase,lowercase,numbers,custom"
constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@"

on dragDrop
   put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me
   exit to top
end dragDrop


The first thing to try would be replacing "exit to top" with "pass 
dragdrop". If you don't pass the command, the drop doesn't happen.


Everything below is off the top of my head, untested, but here are some 
general ideas.


If "pass" doesn't work, try:

on dragDrop
  put the dragData ["text"] into tText
  set the dragData ["text"] to cleanASCII(tText, cModeList, cCustomChars)
  pass dragDrop
end dragDrop

And if that doesn't work, try:

on dragDrop
  put the dragData ["text"] into tText
  send "cleanUp tText" to me in 0
  pass dragDrop
end dragDrop

on cleanUp pText
  put cleanASCII(me, cModeList, cCustomChars) into me
end cleanUp


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
Here is a handler in a field script. The exit to top is necessary because of 
the issue. The source can be an email from the Mail app, or it can be text from 
an OCR'd PDF. The CleanASCII function is necessary because Acrobat will insert 
non-printing characters for what reason I do not know, that will crash 
Livecode. Since the issue occurs no matter the source, I do not think it's the 
nature of the data, especially since the data gets put into the field, so all 
functions have clearly returned (otherwise it would never see exit to top). 

constant cModeList = "uppercase,lowercase,numbers,custom"
constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@"

on dragDrop
   put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me
   exit to top
end dragDrop

> On Mar 24, 2017, at 09:51 , Paul Hibbert via use-livecode 
>  wrote:
> 
> Just tried a simple test on Mac OS Sierra / LC8.1.3 and it seems to work fine 
> here. Is there anything else that could be interfering with the dragDrop?
> 
> Maybe the Message Watcher could give a clue as to what is happening.
> 
> Paul


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


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Paul Hibbert via use-livecode
Just tried a simple test on Mac OS Sierra / LC8.1.3 and it seems to work fine 
here. Is there anything else that could be interfering with the dragDrop?

Maybe the Message Watcher could give a clue as to what is happening.

Paul

> On 24 Mar 2017, at 08:00, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> Might just be me. I drag drop text onto a field with a dragdrop handler that 
> essentially puts the drag data ["text"] into itself. Doing so with 8.1.3 
> seems to cause the window to become unresponsive, that is none of the 
> controls work. I cannot click in fields, tab around, click buttons etc. 
> However if I navigate to another window, and then back again it becomes 
> responsive. Also, if I move the window with the title bar, it becomes 
> responsive again. Finally, if I exit to top at the end of the dragdrop 
> handler, THAT makes the window responsive. It's as though the dragdrop 
> message is still in effect in limbo somewhere. 
> 
> This seems to be a somewhat recent development. That is, I don't think it has 
> always been this way. Particularly in 8.0.x and prior, but I could not pin it 
> down to a minor version. 
> 
> Bob S
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


DragDrop makes windows unresponsive OS X

2017-03-24 Thread Bob Sneidar via use-livecode
Hi all. 

Might just be me. I drag drop text onto a field with a dragdrop handler that 
essentially puts the drag data ["text"] into itself. Doing so with 8.1.3 seems 
to cause the window to become unresponsive, that is none of the controls work. 
I cannot click in fields, tab around, click buttons etc. However if I navigate 
to another window, and then back again it becomes responsive. Also, if I move 
the window with the title bar, it becomes responsive again. Finally, if I exit 
to top at the end of the dragdrop handler, THAT makes the window responsive. 
It's as though the dragdrop message is still in effect in limbo somewhere. 

This seems to be a somewhat recent development. That is, I don't think it has 
always been this way. Particularly in 8.0.x and prior, but I could not pin it 
down to a minor version. 

Bob S



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