Re: Buttons and DragDrop

2019-07-31 Thread Bob Sneidar via use-livecode
Klaus, thanks for that. Fields do not require setting the dragAction, and that 
is what I have been using, so I kept getting the grey stop icon (circle with 
diagonal line). 

Your solution works great! I also have a feature called Landing Pad, where I 
drop something like a complete name and address onto a field and it parses the 
address into the different fields on the form. Having a nice looking button 
with a graphic instead of using a field is going to be a nice addition! Thank 
again! 

Bob S


> On Jul 31, 2019, at 14:02 , Klaus major-k via use-livecode 
>  wrote:
> 
> just made a quick gtest with LC 9.5 on my Mac.
> These scripts in a TABbed button works as exspected:
> --
> on dragEnter
> set the dragaction to "copy"
> end dragEnter
> 
> on dragDrop
> put the dragdata["files"] into fld 1
> end dragDrop
> --
> Or did I misunderstand your problem?
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major


___
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: Buttons and DragDrop

2019-07-31 Thread Klaus major-k via use-livecode
Hi Bob,

> Am 31.07.2019 um 22:27 schrieb Bob Sneidar via use-livecode 
> :
> 
> Spoke too soon. Tabbed buttons respond to dragEnter but not dragDrop. Why is 
> the dragDrop handler listed in the left pane as a possible handler then?
> 
> Bob S

just made a quick gtest with LC 9.5 on my Mac.
These scripts in a TABbed button works as exspected:
--
on dragEnter
 set the dragaction to "copy"
end dragEnter

on dragDrop
 put the dragdata["files"] into fld 1
end dragDrop
--
Or did I misunderstand your problem?


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Buttons and DragDrop

2019-07-31 Thread Bob Sneidar via use-livecode
Spoke too soon. Tabbed buttons respond to dragEnter but not dragDrop. Why is 
the dragDrop handler listed in the left pane as a possible handler then?

Bob S


> On Jul 31, 2019, at 13:17 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Buttons respond to drag/drop messages now??? Yer beautiful! 
> 
> 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