Re: Drag and drop within a list field

2021-07-19 Thread Paul Dupuis via use-livecode
Devin, Thank you for the link below. I find it interesting that Scott did not use any of the "drag" messages for dragging a line within a field. He did use the rarely used "before mouseDown", "before mouseMove" and so one to capture various mouse messages related to drag actions and coded the

Re: Drag and drop within a list field

2021-07-16 Thread Curry Kenworthy via use-livecode
Paul: > the data in the custom property look like: > codename1 That's backwards, try this: name1code And with a tab stop, you may not need a custom property! Fields can hold more content than what meets the eye. > foldernameA Do you really need "folder" and "code" spelled out? Redundant con

Re: Drag and drop within a list field

2021-07-16 Thread Devin Asay via use-livecode
Hi Paul, Some years back Scott Rossi created a nifty little demo called GetInLine that shows how to do the interface part of drag-reordering. It’s in his archive at http://tactilemedia.com/blog/2018/05/12/blasts-from-the-past/. It might give you a good foundation, even if you don’t use the exac

Re: Drag-and-Drop with Desktop Files

2019-03-15 Thread Bob Sneidar via use-livecode
I'll toss together an Applescript for you when I get a chance. Bob S > On Mar 14, 2019, at 06:25 , R.H. via use-livecode > wrote: > > I am referring to: > Message: 17, Date: Thu, 14 Mar 2019 00:44:05 +0100, From: hh > > > Regarding MacOS I can not say much, but I use Windows, and IT WORKS.

Re: Drag-and-Drop with Desktop Files

2019-03-14 Thread kee nethery via use-livecode
I had drag and drop in my macOS app but … when going with the AppStore, and sandboxing, there was no way for drag and drop to trigger the sandbox permission that would allow the app to read that file. I knew which file, but since it did not go through the dialog box, the permission wasn’t set.

Re: Drag-and-Drop with Desktop Files

2019-03-14 Thread hh via use-livecode
Hi, I use MacOS or linux (on Raspi only), never really worked with windows. I'm using Windows only to test my stacks/apps on the PC of my youngest son. Scripting Host-WScript can execute JScript, the MS-extension of ECMAScript. It has a lot of features. We probably can use a lot of these feature

Re: Drag-and-Drop with Desktop Files

2019-03-14 Thread R.H. via use-livecode
hh, I have one more question for Windows: Selecting a file through Microsoft File Explorer on Windows 10 works for all selected files with your wscript, also when it is a Desktop file accessed through the dialogue. The problem I have is when the user selects a file _directly_ visible on the Deskto

Re: Drag-and-Drop with Desktop Files

2019-03-13 Thread hh via use-livecode
** Get selected files of the file manager (without user interaction like dragDrop) ** (I write the following such that also beginners can read it.) +++ [a] Solution for MacOS (tested to work on MacOS 10.14): (a1) Put the following in a field "myScript". # Full path of selec

Re: Drag-and-Drop with Desktop Files

2019-03-12 Thread Bob Sneidar via use-livecode
I think he was trying to get the OS to tell him which files were hilited by the user without having to drag and drop. At least that is what I got from the post. Bob S > On Mar 12, 2019, at 11:17 , J. Landman Gay via use-livecode > wrote: > > See the entry for dragDrop in the dictionary. Yo

Re: Drag-and-Drop with Desktop Files

2019-03-12 Thread J. Landman Gay via use-livecode
See the entry for dragDrop in the dictionary. You can get the file paths from there. on dragDrop -- check for file paths get the dragData["files"] ... pass dragDrop end dragDrop On 3/12/19 10:46 AM, Bob Sneidar via use-livecode wrote: On a Mac you could just make an Applescript call to t

Re: Drag-and-Drop with Desktop Files

2019-03-12 Thread Bob Sneidar via use-livecode
On a Mac you could just make an Applescript call to the Finder. Windows, I don't know. There is probably a powershell call that will do it. Bob S > On Mar 8, 2019, at 06:46 , R.H. via use-livecode > wrote: > > Desktop and IDE, mainly Windows 10 (could be any OS), LiveCode lastest > version.

Re: drag and drop of lines within a field

2017-05-03 Thread Bob Sneidar via use-livecode
That was so cool I donated. Bob S > On May 3, 2017, at 06:46 , Tom Bodine via use-livecode > wrote: > > Hi Tiemo, > > I use Scott Rossi's "Get In Line" stack: > http://www.tactilemedia.com/site_files/downloads/getinline.rev.zip > > HTH, > Tom Bodine _

Re: Drag and Drop with HTML5 Export?

2015-07-16 Thread David Bovill
Thanks for the head-up Peter. On 16 July 2015 at 13:54, Peter TB Brett wrote: > On 2015-07-16 14:46, David Bovill wrote: > >> Is this something that looks like it will be part of the first alpha? Have >> any test been done with drag and drop - or are we a way off establishing >> whether this wil

Re: Drag and Drop with HTML5 Export?

2015-07-16 Thread Peter TB Brett
On 2015-07-16 14:46, David Bovill wrote: Is this something that looks like it will be part of the first alpha? Have any test been done with drag and drop - or are we a way off establishing whether this will work? We do not currently plan to enable drag and drop in time for the first prototyp

Re: Drag and Drop Linux, 7.0.5 64 Bit

2015-06-09 Thread Richard Gaskin
Malte Brill wrote: > Now entered in quality: > http://quality.runrev.com/show_bug.cgi?id=15482 Thank you, Malte. Related: http://quality.runrev.com/show_bug.cgi?id=15479 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Drag and Drop Linux, 7.0.5 64 Bit

2015-06-09 Thread Malte Brill
Now entered in quality: http://quality.runrev.com/show_bug.cgi?id=15482 Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and ma

Re: Drag and Drop Linux, 7.0.5 64 Bit

2015-06-08 Thread Malte Brill
Hi Richard, > What issues are you seeing? Not finished analyzing yet, but many. No Indicator shown on dragStart DragDrop doesn’t dragMove not sent to group owning the target / not handable in group containing the target dragEnter not handled properly All in all either seriously broken, or some

Re: Drag and Drop Linux, 7.0.5 64 Bit

2015-06-08 Thread Richard Gaskin
Malte Brill wrote: > did anyone of you get Drag and Drop to work in the 7.0.5 64-Bit Linux > engine under Ubuntu 14.0.4 (LTS)? > > If so I would be very interested in learning how. Kinda FUBAR here: when I drag text within a field, it doesn't move the text but it does create a text dropping on

Re: Drag and Drop

2013-05-12 Thread Richmond
On 05/11/2013 06:54 PM, Richmond wrote: On 05/11/2013 06:30 PM, Mark Wieder wrote: Richmond- Friday, May 10, 2013, 11:46:45 PM, you wrote: As a result I gave up reading it and started thinking for myself. ...no good can come of that... Okay; let's rewrite that to this: "I read the docume

Re: Drag and Drop

2013-05-11 Thread Richmond
On 05/11/2013 09:06 PM, J. Landman Gay wrote: On 5/11/13 1:46 AM, Richmond wrote: On 05/10/2013 11:17 PM, Alejandro Tejada wrote: Hi Richmmond, Richmond Mathewson-2 wrote [snip] So I don't know where you got the idea that this used not to work: [snip] mouseStillDown is not mentioned in this

Re: Drag and Drop

2013-05-11 Thread J. Landman Gay
On 5/11/13 1:46 AM, Richmond wrote: On 05/10/2013 11:17 PM, Alejandro Tejada wrote: Hi Richmmond, Richmond Mathewson-2 wrote [snip] So I don't know where you got the idea that this used not to work: [snip] mouseStillDown is not mentioned in this article: http://www.hyperactivesw.com/resource

Re: Drag and Drop

2013-05-11 Thread Richmond
On 05/11/2013 06:30 PM, Mark Wieder wrote: Richmond- Friday, May 10, 2013, 11:46:45 PM, you wrote: As a result I gave up reading it and started thinking for myself. ...no good can come of that... Okay; let's rewrite that to this: "I read the documentation, and when it does not help me I s

Re: Drag and Drop

2013-05-11 Thread Mark Wieder
Richmond- Friday, May 10, 2013, 11:46:45 PM, you wrote: > As a result I gave up reading it and started thinking for myself. ...no good can come of that... -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runr

Re: Drag and Drop

2013-05-10 Thread Richmond
On 05/10/2013 11:17 PM, Alejandro Tejada wrote: Hi Richmmond, Richmond Mathewson-2 wrote [snip] So I don't know where you got the idea that this used not to work: [snip] mouseStillDown is not mentioned in this article: http://www.hyperactivesw.com/resources_polling.html Why? Because RR/LC

Re: Drag and Drop

2013-05-10 Thread Scott Rossi
course, things have changed a lot in LiveCode. As I said, if it works for you, great. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design Original message Subject: Re: Drag and Drop From: Richmond To: How to use LiveCode CC: null

Re: Drag and Drop

2013-05-10 Thread Paul Hibbert
On 2013-05-10, at 9:17 AM, Ray Horsley wrote: > Have you tried really slowly dragging a file onto a stack window from the > desktop to see if it changes to the circle with a line through it even though > you've got this in your card's script: > > on dragEnter > set the dragAction to "copy" >

Re: Drag and Drop

2013-05-10 Thread J. Landman Gay
On 5/10/13 3:17 PM, Alejandro Tejada wrote: Hi Richmmond, Richmond Mathewson-2 wrote [snip] So I don't know where you got the idea that this used not to work: [snip] mouseStillDown is not mentioned in this article: http://www.hyperactivesw.com/resources_polling.html Why? Mostly because it

Re: Drag and Drop

2013-05-10 Thread Alejandro Tejada
Hi Richmmond, Richmond Mathewson-2 wrote > [snip] > So I don't know where you got the idea that this used not to work: > [snip] mouseStillDown is not mentioned in this article: http://www.hyperactivesw.com/resources_polling.html Why? Al -- View this message in context: http://runtime-revol

Re: Drag and Drop

2013-05-10 Thread Richmond
On 05/09/2013 11:59 PM, Scott Rossi wrote: OK, I accepted your dare and was surprised to see that it worked (didn't used to). Nice. Works in LC/RR 3.5.0 Works in LC/RR 2.2.1 So I don't know where you got the idea that this used not to work: perhaps you never tried it as it never occurred to

Re: Drag and Drop

2013-05-10 Thread Ray Horsley
Well I haven't tried Linux but this behavior happens on both Mac and Windows. And Paul, thanks for the card script idea. I started out trying things in the card script but when I got the sporadic behavior I decided it was because a card is technically not a control. Not sure about that. In an

Re: Drag and Drop

2013-05-10 Thread Alejandro Tejada
Hi Ray, Ray Horsley-2 wrote > [snip] > The new thing I've discovered is I can consistently break Livecode's > accepting the drop, > evidenced by the cursor turning into a circle with a line through it > instead of a plus sign, > if I drag extremely slowly right at the point where I stop draggin

Re: Drag and Drop

2013-05-10 Thread Paul Hibbert
Ray, Try moving your dragEnter & dragDrop to the card script (or the stack script), this works fine for me and I can't break it… on dragEnter if char -3 to -1 of the dragData["files"] is among the items of "jpg,png,gif" then set the dragAction to "copy" end if end dragEnter on dragD

Re: Drag and Drop

2013-05-10 Thread Ray Horsley
Very interesting point Jacqueline. In my case my image control displays nothing. I use it as a template, ultimately to make images out of what users drag and drops. It's the same dimensions as the stack itself. Since the image control displays nothing as it isn't linked (the FileName of it)

Re: Drag and Drop

2013-05-10 Thread Richmond
On 09/05/13 23:59, Scott Rossi wrote: OK, I accepted your dare and was surprised to see that it worked (didn't used to). Nice. Works in LC 4.5 Richmond. Though you're still left with the limitations of working within a single stack, and no dragging in or out. But if the technique works for y

Re: Drag and Drop

2013-05-10 Thread André Bisseret
Bonjour Ray, Recently I had a similar problem but while dragging from one locked field to an unlocked field on the same card. The dragdrop handler did not work until I "pass dragdrop" at the end of the dragdrop handler. Not sure that will help in your case! Best regards André Le 10 mai 2013

Re: Drag and Drop

2013-05-09 Thread Marty Knapp
I use a transparent button that covers the area I want to be able to accept the drop. I use a dragEnter in the stack to show the button and then hide it after dropping or exiting. You can give the button a border as a visual indicator. Best regards, Marty Knapp Knappster Solutions LLC

Re: Drag and Drop

2013-05-09 Thread J. Landman Gay
On 5/9/13 7:03 PM, Ray Horsley wrote: At the end of the day I'm wondering if this should be reported as a bug. It seems like something is getting hooked in memory. It's weird that I can drag a file onto my Livecode stack (which is one large image control with the drag handlers in it) and get n

Re: Drag and Drop

2013-05-09 Thread Mark Wieder
Ray- Thursday, May 9, 2013, 5:03:09 PM, you wrote: >- Thanks for the link to the article "Pinning Drag-and-Drop > to the Mat" but I had actually read through it yesterday when I > began wrestling with this. It, too, does not address dragging files > from the desktop into Livecode. Sorry -

Re: Drag and Drop

2013-05-09 Thread Ray Horsley
Many thanks to you all who responded to this thread I started earlier today. Unfortunately I still haven't resolved this issue so any other thought are appreciated. Here's a few responses to some of the ideas which were presented: - The mouseDown and mouseStillDown unfortunately don't work

Re: Drag and Drop

2013-05-09 Thread Scott Rossi
OK, I accepted your dare and was surprised to see that it worked (didn't used to). Nice. Though you're still left with the limitations of working within a single stack, and no dragging in or out. But if the technique works for you, awesome. Speaking as someone who has rolled custom drag-and-drop

Re: Drag and Drop

2013-05-09 Thread Richmond
On 05/09/2013 11:07 PM, Scott Rossi wrote: Only you can know why you always use that technique, What? you expect me to know my own mind? LOL. I use that technique as I tend to use a single stack, or a signle stack with associated palettes. but with grab, there's no way to act upon events

Re: Drag and Drop

2013-05-09 Thread Devin Asay
> On 5/9/13 12:42 PM, "Richmond" wrote: > >> On 05/09/2013 09:01 PM, Mark Wieder wrote: >>> Ray Horsley writes: >>> What am I missing to get drag/drop working consistently? >>> You might also want to look at >>> >>> >>>

Re: Drag and Drop

2013-05-09 Thread Scott Rossi
Only you can know why you always use that technique, but with grab, there's no way to act upon events/messages while grab is active (thus you can't do cursor updates and provide user feedback), and you can't "grab" an object across stacks. Regards, Scott Rossi Creative Director Tactile Media, UX/

Re: Drag and Drop

2013-05-09 Thread Richmond
On 05/09/2013 09:01 PM, Mark Wieder wrote: Ray Horsley writes: What am I missing to get drag/drop working consistently? You might also want to look at Why do I always just use on mouseDown g

Re: Drag and Drop

2013-05-09 Thread Mark Wieder
Ray Horsley writes: > What am I missing to get drag/drop working consistently? You might also want to look at -- Mark Wieder mwie...@ahsoftware.net

Re: Drag and Drop

2013-05-09 Thread Devin Asay
On May 9, 2013, at 6:15 AM, Ray Horsley wrote: > I've never used this feature before and no matter how I set it up it seems > kind of sporadic. The goal is to drag an image file (jpg, jpeg, png, etc.) > from the desktop onto a card, get the path to it and ultimately import it > into the stack

Re: Drag and Drop in a locked field

2012-02-10 Thread Bob Sneidar
Thanks Mark! Bunch of friendlier people I have never known! :-) So far I am using Scott's Getinline solution. I like his little drag insert graphic! Bob On Feb 10, 2012, at 12:01 PM, Mark Smith wrote: > > slylabs13 wrote >> >> Any easy way to implement this? I could use a datagrid I suppose

Re: Drag and Drop in a locked field

2012-02-10 Thread Mark Smith
Sorry, its been awhile since I worked on it and so I should clarify: the 7766 bug only rears its head after using the pop-up menu. If you disable the pop-up menu option the drag drop works fine on x86. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-a

Re: Drag and Drop in a locked field

2012-02-10 Thread Mark Smith
slylabs13 wrote > > Any easy way to implement this? I could use a datagrid I suppose (grumble > grumble) but it would be nice if I could just do this with a simple list > field. I want to reorder entire lines by dragging and dropping them. > Hi Bob, I wrote something to do that awhile back and

Re: Drag and Drop in a locked field

2012-02-10 Thread Bob Sneidar
Thanks I already went with GetInLine and I like the way it looks. Scott's stuff is always visually pleasing. Paypal donation on the way! Bob On Feb 10, 2012, at 1:13 AM, André Bisseret wrote: > Bonjour Bob, > > In some apps I am using the following script. > It is an adaptation to drap and dr

Re: Drag and Drop in a locked field

2012-02-10 Thread Peter M. Brigham, MD
On Feb 9, 2012, at 7:50 PM, Ken Ray wrote: > On Feb 9, 2012, at 6:35 PM, Bob Sneidar wrote: > >> Hi all. I use locked fields with multiple lines and listBehavior set to true >> as a kind of menu. Now I am trying to allow the user to rearrange the items >> in the list. I read in the Dictionary t

Re: Drag and Drop in a locked field

2012-02-10 Thread André Bisseret
Bonjour Bob, In some apps I am using the following script. It is an adaptation to drap and drop inside one field, of a script from Eric Chatonet he had written for drag and drop from one field to another. Besides the field, this script uses an extra field name "tempo" which allows to see what l

Re: Drag and Drop in a locked field

2012-02-09 Thread Bob Sneidar
Thanks I will give it a go. I have it partially working, but I found if I drag too fast the engine selects another line before dragStart is triggered. Also I had to send dragEnter from the dragStart handler otherwise the process never kicked off. I tried sending dragStart in a mouseDown handler,

Re: Drag and Drop in a locked field

2012-02-09 Thread Ken Ray
On Feb 9, 2012, at 6:35 PM, Bob Sneidar wrote: > Hi all. I use locked fields with multiple lines and listBehavior set to true > as a kind of menu. Now I am trying to allow the user to rearrange the items > in the list. I read in the Dictionary that LC handles drag and drop between > *unlocked*

Re: Drag and drop filetype

2012-01-14 Thread J. Landman Gay
On 1/14/12 8:07 AM, Randolph Valentine wrote: Hi, all. I've got a very basic question. After a file is drag-and-dropped, how can I determine WHAT the dropped item is referring to, e.g., a FOLDER or a FILE, and if a file, RELIABLY, what KIND of file (e.g., a doc or a wav)? See "dragData" in the

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Pete
lable from the > IDE menu bar > > - Mark > > > > From: use-livecode-boun...@lists.runrev.com [ > use-livecode-boun...@lists.runrev.com] On Behalf Of Pete [ > p...@mollysrevenge.com] > Sent: Friday, October 14, 2011 9:34 PM > To: H

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Pete
Here's a link to the stack on box.net: http://www.box.net/shared/o8zaqami56aaqpbg76g8 I doubt there's anything earth shattering in there! SCott - I made a couple of minot changes to the scripts in this stack - nothing functional, just tidied up a couple of things. In my use of this functionalit

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Roger Eller
On Fri, Oct 14, 2011 at 10:34 PM, Pete wrote: > Absolutely Ken, I want to share it. I'm just not sure where to put the > stack - is there somewhere this list has access to for files? If not, I > think I have a dropbox account from way back. > Pete > Molly's Revenge

RE: Drag and Drop Between Stacks?

2011-10-14 Thread Mark Smith
2011 9:34 PM To: How to use LiveCode Subject: Re: Drag and Drop Between Stacks? Absolutely Ken, I want to share it. I'm just not sure where to put the stack - is there somewhere this list has access to for files? If not, I think I have a dropbox account from way back. Pete Molly'

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Pete
Absolutely Ken, I want to share it. I'm just not sure where to put the stack - is there somewhere this list has access to for files? If not, I think I have a dropbox account from way back. Pete Molly's Revenge On Fri, Oct 14, 2011 at 6:53 PM, Ken Ray wrote: >

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Ken Ray
On Oct 14, 2011, at 7:06 PM, Scott Rossi wrote: > Thanks to all the folks who replied with drag and drop options. Pete's > script was the most easy to get into (he sent it to me), and it looks like > what I need. The only remaining question I had was found in the > dragDestination, so all is we

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Scott Rossi
Thanks to all the folks who replied with drag and drop options. Pete's script was the most easy to get into (he sent it to me), and it looks like what I need. The only remaining question I had was found in the dragDestination, so all is well. Thanks & Regards, Scott Rossi Creative Director Tact

Re: Drag and Drop Between Stacks?

2011-10-14 Thread René Micout
You can see also my two other contribution on Rev Online : - Spinner Store - Circular Slider Store all drag & drop capable... René Le 15 oct. 2011 à 01:11, René Micout a écrit : > Hello Scott, > See Rev Online > my stack > HUD Panel Factory. > It is an (Macintosh) example of drag & drop of a grou

Re: Drag and Drop Between Stacks?

2011-10-14 Thread René Micout
Hello Scott, See Rev Online > my stack > HUD Panel Factory. It is an (Macintosh) example of drag & drop of a group... Open script... Bon souvenir de Paris René Le 14 oct. 2011 à 22:37, Scott Rossi a écrit : > Hi List: > > I'm wondering if anybody has an example stack lying that shows how to use

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Bob Sneidar
Hi Scott. What are you trying to drag? If it is just text between fields, I think that works already. Images and other things however may be a bit more trouble. Bob On Oct 14, 2011, at 1:37 PM, Scott Rossi wrote: > Hi List: > > I'm wondering if anybody has an example stack lying that shows

Re: Drag and Drop Between Stacks?

2011-10-14 Thread Pete
Hi Scott, Since I don't think files can be attached to messages in this list, I have sent you an email with an example of how to do this. I should say that hardly any of the example is my own cleverness, it's an amalgam of suggestions from several people on this list when I was trying to figure ou

Re: Drag and Drop Text into a field

2011-09-26 Thread Pete
OK, thanks. Pete Molly's Revenge On Mon, Sep 26, 2011 at 2:09 PM, Peter M. Brigham, MD wrote: > > On Sep 26, 2011, at 4:51 PM, Pete wrote: > > > Thanks Peter, that sounds like it should work, I guess I'd assumed that > LC > > would remember the selected text. > >

Re: Drag and Drop Text into a field

2011-09-26 Thread Pete
As a follow up, is there a way to keep the selected text highlighted when the field loses focus? Right now, there's no visual indication when the new text is dragged into the field that it will replace some of the existing text rather than be inserted. The standard for this seems to be that when

Re: Drag and Drop Text into a field

2011-09-26 Thread Peter M. Brigham, MD
On Sep 26, 2011, at 4:51 PM, Pete wrote: > Thanks Peter, that sounds like it should work, I guess I'd assumed that LC > would remember the selected text. > > The dictionary says that if no text is selected, the end char part of the > selectedChunk is less than the startchar so I guess I'll need

Re: Drag and Drop Text into a field

2011-09-26 Thread Pete
Thanks Peter, that sounds like it should work, I guess I'd assumed that LC would remember the selected text. The dictionary says that if no text is selected, the end char part of the selectedChunk is less than the startchar so I guess I'll need to check for that so that a normal insert works. Pet

Re: Drag and Drop Text into a field

2011-09-26 Thread Peter M. Brigham, MD
You could set a customprop of the field control on mouseleave: on mouseleave set the uSelChunk of me to the selectedchunk end mouseleave then in your dragdrop handler: put the uSelChunk of fld "targetField" into selCh put word 2 of selCh into startChar put word 4 of selCh into endChar put the

Re: Drag and Drop Row Arrangement in DataGrid

2011-03-03 Thread Bob Sneidar
I just tried this on my own DataGrid and I was able to drag and drop with a column sort enabled. When I do this, the column sort property is still set, but the column is unsorted, so this does not happen auto-magically. I think the key then is to set the Sort By Column property to empty before

Re: Drag and Drop Row Arrangement in DataGrid

2011-03-03 Thread RevList
I wrote on March 3, 2011 at 10:28 AM -0800 wrote: >I have Data Grid Helper, but as you point out, it is the code that is >holding me back. I am not at all clear how to implement this and was >hoping that there was a sample stack out there somewhere where someone had >already done this, and I can l

Re: Drag and Drop Row Arrangement in DataGrid

2011-03-03 Thread RevList
Bob Sneidar on March 3, 2011 at 9:11 AM -0800 wrote: >Yes, but that is not what is keeping you from doing drag and drop >operations. You have to code your drag and drop. Zryip's Data Grid Helper >has, among a great many other benefits, the ability to add a drag and >drop script for you. > >It doe

Re: Drag and Drop Row Arrangement in DataGrid

2011-03-03 Thread Bob Sneidar
Yes, but that is not what is keeping you from doing drag and drop operations. You have to code your drag and drop. Zryip's Data Grid Helper has, among a great many other benefits, the ability to add a drag and drop script for you. It does beg the question though, whether or not a drag and drop

Re: Drag and drop a Bookmark

2011-02-28 Thread Terry Judd
On 1/03/11 9:02 AM, "Thomas Bähler" wrote: >> Is this under Windows? Because on OSX I get the URL and not the title when >> dragging bookmarks from both Safari and Firefox into a Livecode field. In >> fact from memory, to get the title on a Mac you need to grab the url, load >> it and then parse

Re: Drag and drop a Bookmark

2011-02-28 Thread Thomas Bähler
> Is this under Windows? Because on OSX I get the URL and not the title when > dragging bookmarks from both Safari and Firefox into a Livecode field. In > fact from memory, to get the title on a Mac you need to grab the url, load > it and then parse the text between the title tags. Hi Terry It's o

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
I just realized I forgot to insert the script (time to go to bed!) This is to drag right from the browser to a field: on dragdrop put url (the dragData) into theHTML put offset("",theHTML)+7 into b put offset("",theHTML)-1 into z put char b to z of theHTML into me put cr & the dra

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
My script assumes that you've saved the webloc to disk. If you drag and drop right off the browser window it will just get the url. In that case, you could then grab the url and parse it for the Title tag. Marty Hey Thomas, You need to get the contents of the dragData. Here's a quick a dirty

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
Hey Thomas, You need to get the contents of the dragData. Here's a quick a dirty script that will put the name of the bookmark on line 1 and the url on line 2. Put this in the field script: on dragenter set the acceptdrop to true end dragenter on dragdrop set the itemDelimiter to "/"

Re: Drag and drop a Bookmark

2011-02-27 Thread Terry Judd
Is this under Windows? Because on OSX I get the URL and not the title when dragging bookmarks from both Safari and Firefox into a Livecode field. In fact from memory, to get the title on a Mac you need to grab the url, load it and then parse the text between the title tags. Terry... On 28/02/11

Re: Drag and Drop

2011-02-09 Thread Peter Haworth
I can confirm that Ben's workaround fixes the problem. Pete Haworth On Feb 9, 2011, at 6:08 AM, Richard Gaskin wrote: > On this I would go with Ben Beaumont's analysis, since he's working > side-by-side with the engine team and has an understanding of what it's doing > under the hood in a way

Re: Drag and Drop

2011-02-09 Thread Peter Haworth
I'm a Mac with OSX 10.6, LC 4.5.3 Pete Haworth On Feb 8, 2011, at 11:45 PM, Thierry wrote: > > Le 9 févr. 2011 à 08:28, Peter Haworth a écrit : > >> I'm not sure what changed. It seems to be inconsistent as to whether the >> snapback happens or not but most of the time it does. >> > > Than

Re: Drag and Drop

2011-02-09 Thread Richard Gaskin
Peter Haworth wrote: I'm not sure what changed. It seems to be inconsistent as to whether the snapback happens or not but most of the time it does. Pete Haworth On Feb 8, 2011, at 10:22 PM, Thierry wrote: And Peter, what was working when you answered my mail, and then has changed ? On th

Re: Drag and Drop

2011-02-08 Thread Thierry
Le 9 févr. 2011 à 08:28, Peter Haworth a écrit : > I'm not sure what changed. It seems to be inconsistent as to whether the > snapback happens or not but most of the time it does. > Thanks, Obviously, we're running on different contexts... Thierry > Pete Haworth > > On Feb 8, 2011, at 10

Re: Drag and Drop

2011-02-08 Thread Peter Haworth
I'm not sure what changed. It seems to be inconsistent as to whether the snapback happens or not but most of the time it does. Pete Haworth On Feb 8, 2011, at 10:22 PM, Thierry wrote: > And Peter, what was working when you answered my mail, > and then has changed ? __

Re: Drag and Drop

2011-02-08 Thread Thierry
Le 9 févr. 2011 à 00:55, Richard Gaskin a écrit > Unfortunately setting the image visibility to false has no effect. > I have production code with such images false and still get the snap-back. Ummm, I tried it again with a fresh mind this early morning, still works for me ! And Peter, what

Re: Drag and Drop

2011-02-08 Thread Peter Haworth
Thanks Richard. Despite what I said in my earlier email about Thiery's fix for the snapback, you are correct that it doesn't fix it. Somehow or other, the snapback occasionally doesn't happen, at least in my stack, but most of the time it does. I think I'll just live with it until 4.6. I've

Re: Drag and Drop

2011-02-08 Thread Richard Gaskin
Peter Haworth wrote: > I guess I somehow got the impression it wasn't possible to drag a > control from one stack to another with the standard drag/drop > handlers somewhere in this thread but this shows it is. Strictly speaking that's still true: you can move an object around in its own stack

Re: Drag and Drop

2011-02-08 Thread Richard Gaskin
Peter Haworth wrote: One other possible change- should there be a 'reset templatebutton' at then end of the dragEnd handler? Good catch. Yes, ideally there should be, or perhaps even better to store the properties of the templateButton into a temporary array, and then reset it to those valu

Re: Drag and Drop

2011-02-08 Thread Richard Gaskin
Thierry wrote: Le 8 févr. 2011 à 15:56, Richard Gaskin a écrit : The only problem I can find with this approach is that it "snaps back" the dragImage to the source, even though the allowDrop has been set to true. if anyone here knows a reliable way to prevent that I'm be most grateful. Hi

Re: Drag and Drop

2011-02-08 Thread Peter Haworth
One other possible change- should there be a 'reset templatebutton' at then end of the dragEnd handler? Pete Haworth On Feb 8, 2011, at 10:44 AM, Thierry wrote: > > Le 8 févr. 2011 à 15:56, Richard Gaskin a écrit : > >> The only problem I can find with this approach is that it "snaps back" th

Re: Drag and Drop

2011-02-08 Thread Peter Haworth
Thiery, I tried that and it works. Stops the snapback and hides the image which was being displayed. Thanks! Pete Haworth On Feb 8, 2011, at 10:44 AM, Thierry wrote: > > Le 8 févr. 2011 à 15:56, Richard Gaskin a écrit : > >> The only problem I can find with this approach is that it "snaps b

Re: Drag and Drop

2011-02-08 Thread Thierry
Le 8 févr. 2011 à 15:56, Richard Gaskin a écrit : > The only problem I can find with this approach is that it "snaps back" the > dragImage to the source, even though the allowDrop has been set to true. > > if anyone here knows a reliable way to prevent that I'm be most grateful. Hi Richard,

Re: Drag and Drop

2011-02-08 Thread Peter Haworth
Thanks Richard, that looks very nice. I too would like to hear how to prevent the snap back you mentioned. I guess I somehow got the impression it wasn't possible to drag a control from one stack to another with the standard drag/drop handlers somewhere in this thread but this shows it is. Pe

Re: Drag and Drop

2011-02-08 Thread Richard Gaskin
Peter Haworth wrote: > I guess I should look again at the IDE script and see what it does > after a control has been dropped onto a card, I bet that would > reveal all! Maybe. The Rev IDE drag-and-drop routines were written before the overhaul of the drag-and-drop syntax which has since simpli

Re: Drag and Drop

2011-02-07 Thread Jim Sims
Here's something a bit different, an example of using drag and drop between two windows to change a button. This video display the Drag and Drop of a name from a scollinglist field in one window into a different window to change a button name and the script of that button. This changes the bu

Re: Drag and Drop

2011-02-07 Thread Mark Wieder
Pete- Monday, February 7, 2011, 6:41:58 PM, you wrote: > Thanks Jacqueline. I guess I should look again at the IDE script > and see what it does after a control has been dropped onto a card, I > bet that would reveal all! Try setting the hilitecolor of the templatestack to empty while you're se

Re: Drag and Drop

2011-02-07 Thread Peter Haworth
Thanks Jacqueline. I guess I should look again at the IDE script and see what it does after a control has been dropped onto a card, I bet that would reveal all! Pete Haworth On Feb 7, 2011, at 6:34 PM, J. Landman Gay wrote: > On 2/7/11 8:12 PM, Peter Haworth wrote: >> >> Scott's script use t

Re: Drag and Drop

2011-02-07 Thread J. Landman Gay
On 2/7/11 8:12 PM, Peter Haworth wrote: Scott's script use templateStack and templateImage but he resets those. My testing has been done with a button so far and I don't see anywhere where the templateButton is used. I tried resetting it anyway, but still the same result. Would be nice to fig

  1   2   >