Making the clipboard Excel compatible
Excel doesn't like the line endings that Livecode puts into the clipboardData["text"] and renders the lines as if they were double spaced. I have asked once before what magic wand to wave to fix the problem, but I forgot the answer and googling was entirely unsuccessful (although I found that there are lots of articles about the strangeness of the Excel clipboard). Can someone remind me? Michael Lew ___ 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: Clone graphic does not respect dimensions
Seems to me that if the current restriction on the result of “clone” is intended to prevent possible problems when tools palette is being used then a very bad design decision was made. A solution should not affect what happens when the user clones an abject that is already in the stack. The script function “clone” should clone the object _exactly_ when used by itself, but could be used in conjunction with size-dectecting code for the palette. Michael BNig wrote: that is determined somewhat arbitrarily by the revBackScriptLibrary in handler on newGraphic if the width of the target < 9 and the height of the target < 9 then use default values Would that be a user experience bug? What would be a good reason to prevent the user from doing a reasonable action like this? If the size is explicitly set, why not let it remain so? I expect this was done to prevent the case where someone: 1. chooses a graphic tool from the Tools palette 2. clicks to start dragging out the graphic 3. accidentally double-clicks instead and ends the graphic, resulting in an unintentionally-tiny graphic It also lets you click once with a graphic tool to create a default-size graphic at that spot. Perhaps newGraphic could test what tool is chosen, and change the size only if the tool is "graphic". I can see the benefit of minimizing occurrences of objects that are *prohibitively* small to work with, but am less enthused about constraining options for the user at the much lower threshold of mere possible inconvenience. I'd opt for a 4px threshold. -- ___ 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
Clone graphic does not respect dimensions
When I clone a graphic (an 8 by 8 pixel oval) in LiveCode 8.1.1 the copy comes out at the default size for a new oval, 120 by 120. That would not be a clone, in my opinion. Is it correct behaviour? Michael ___ 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
Clipboard problem
I’ve just installed LiveCode 8.1.1 and I’ve come across an anomaly with the clipboard in Mac OS X 10.9.5. When I populate the clipboard with a return-delimited list using this line the results paste correctly into Nisus Writer Pro but paste into Excel with an extra blank line between lines, and when I try to paste into Pro-Fit I get an error “System error -8754”. If I re-copy the results from Nisus then I can paste elsewhere without any problem. Michael ___ 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: Getting the scroll and clickloc of a browser object
Thanks Scott, but it stays at zero even when I scroll the pdf in the browser object. (I fixed the quote mark that email mucked up.) Maybe Bob Sneidar is right: There is nothing in the LC code repository for getting that kind of information from any browser control. If so, then that is a shame. Oh well. Notes on paper it will be. If you?re using a browser object, I believe this is what you want: put revBrowserGet(theBrowserId, ?vscroll) into theVScrollAmount Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 21, 2015, at 10:05 PM, Michael Julian Lew micha...@unimelb.edu.aumailto:micha...@unimelb.edu.au wrote: I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? Michael ___ 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
Getting the scroll and clickloc of a browser object
I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? Michael ___ 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
Getting data out of Excel
I'm trying to paste data from MS Excel into a table in my Livecode stack without success. I suspect that either OSX or Excel have added unwelcome complications. I used to be able to just paste, but nowadays (Excel 2011 Mac OSX 10.7.4) the data come in as a long string, with six spaces where a return should be and three where a tab should be. Putting the clipboardData[text] makes no difference, and the clipboardData[RTF] is not what I want. I can make it work by copying cells in Excel, then Paste Text Only in Nisus Writer Pro, then copying and pasting the text from there. I can write a function to clean up the clipboardData, but it seems silly to need to do so. Does anyone have a quick solution? Regards, Michael Lew ___ 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