Re: PRINTING PROBLEM

2011-09-28 Thread Richmond Mathewson
On 09/28/2011 01:09 AM, stephen barncard wrote: If the ink is of a certain age, it hardens and becomes useless. Some carts will actually have sensors to tell you if the ink is outdated. On 27 September 2011 14:51, Joe Lewis Wilkins wrote: Hi Everyone For those of you who may have followed t

Re: PRINTING PROBLEM

2011-09-28 Thread Richmond Mathewson
On 09/28/2011 01:42 AM, Bob Sneidar wrote: Also, though inkjets may be very economical up front, over the life of the printer the ink is considerably more expensive, especially since most people can go weeks without printing anything, and then discover their carts are no good anymore. Nowadays

Re: Dragging folder to a field under linux adds "file://" before thefolder

2011-09-28 Thread Olivier Dussutour
Hello, I am interested in your script, but how can you drag multiple folders simultaneously. If you could help me, thank you in advance Cordialement, Olivier Dussutour olivierdussut...@gmail.com - Original Message - From: "Matthias Rebbe" To: "How to use LiveCode" Sent: Sunday, Sept

[no subject]

2011-09-28 Thread Art DiVito
I need to prevent users from deleting a control by selecting it with the pointer tool and hitting the delete key. According to the LiveCode dictionary (under "deletefield"), an "undo" will work for fields. However, this appears to be true for buttons, but NOT for fields. Thus, On deletebutton An

Re: Datagrid Error

2011-09-28 Thread Bob Sneidar
I think you have to include the datagrid library in your standalone setup. Never done it. Heard about it. Bob On Sep 27, 2011, at 6:06 PM, Marty Knapp wrote: > I have an application with a Datagrid that's been working fine but I'm now > getting an error in the standalone (but it seems to work

Re: Dragging folder to a field under linux adds "file://" before thefolder

2011-09-28 Thread Matthias Rebbe
Oliver, I do not drag multiple folders simultaneously, but one folder which contains subfolders. I use the following field scripts ON dragEnter IF there is a folder the dragdata["files"] THEN set the dragaction to copy END dragEnter ## The DragEnter checks if a folder is dragged. No folde

Re:

2011-09-28 Thread Bob Sneidar
The only place they could select the pointer tool is in the IDE. I am almost certain this is not possible in a standalone. Are the users co-developers? I tried this out myself and can confirm this. I tried using copy then paste in a handler I called in 0 seconds, but the copy clearly did not wo

Re:

2011-09-28 Thread Bob Sneidar
Oh btw if you want to allow for your own deletions, ask for a password instead of an answer dialog. Exit to top if the password does not match. But if you are trying to prevent someone from maliciously damaging your application, this won't work because they would have access to your scripts in t

Re:

2011-09-28 Thread J. Landman Gay
On 9/28/11 1:00 PM, Bob Sneidar wrote: The only place they could select the pointer tool is in the IDE. A script can choose the edit tool in a standalone. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___

Re:

2011-09-28 Thread Phil Davis
Hi Art, Maybe the "cantSelect' property would help. set the cantSelect of btn 1 to true Then the control can't be selected except by some indirect means like in the Application Browser in the IDE. Phil Davis On 9/28/11 10:38 AM, Art DiVito wrote: I need to prevent users from deleting

Re:

2011-09-28 Thread Bob Sneidar
I thought of another thing you could do that would cover all objects. Set a custom property for the objects you don't want deleted, say noDelete, then upon deleteKey and backspaceKey check for that property by getting the customKeys of the selectedObject and seeing if noDelete is in it. If the

Need presenter for next LiveCode.tv event

2011-09-28 Thread Björnke von Gierke
Hi everyone As you know we haven't had any events since almost a month. We can only have an event when there is presentations. It would be nice to have another event next week. You can present then, or at any later date. It's not hard, and takes about 2 hours including the show itself and se

Re: Datagrid Error

2011-09-28 Thread Marty Knapp
Thanks Bob - I do have the library included. This has been working for some time, but all of a sudden it's throwing errors. The weird thing is that it works in the ide. It even works in the standalone if I open my development stack with the datagrid by dragging and dropping on the application,

Re: Managing the hilite color of selected text

2011-09-28 Thread Pete
Thanks for all the suggestions. I think I have everything working now with an amalgam of the code suggested. Things were further complicated because I needed to drag and drop text into the field from a datagrid. Pete Molly's Revenge _

Re: Managing the hilite color of selected text

2011-09-28 Thread dunbarx
I have, for decades, caused a transparent field to appear at the loc of the selectedText on mouseStillDown, loaded that field with that text, and then dragged the field from one place to another, dumping appropriately. Drag and drop is simulated nicely. It has been discussed now and then, here

Counting and numbering duplicates in a list

2011-09-28 Thread Roger Eller
There are several ways I could approach this, but I'm unsure which way is best? I have a list of numbers that 'may' contain duplicates. I need to sequence ONLY the duplicates without changing the order the list. If there is only one, it does not need to be sequenced. Should I just repeat, and ke

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Monte Goulding
On 29/09/2011, at 12:52 PM, Roger Eller wrote: > There are several ways I could approach this, but I'm unsure which way is > best? I have a list of numbers that 'may' contain duplicates. I need to > sequence ONLY the duplicates without changing the order the list. If there > is only one, it doe

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Ian McKnight
Hi Roger My first thought would be to set up an array having your numbers as keys. Cycle through each key counting the occurrence of each number in your master list and then separate out the key values that are greater than one. Use the offset function to reference each value in the master list -

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Peter M. Brigham, MD
function flagDupes tList put tList into scratchList repeat for each line t in tList if t is among the lines of scratchList or \ freqArray[t] > 0 then add 1 to freqArray[t] put cr & t & "-" & freqArray[t] after outputList else put cr & t afte

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Peter M. Brigham, MD
Just timed the script below using a 1 (10^4) line list -- 1.964 seconds. Not great if you're dealing with >= 10^5 items. Can someone do better? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig > function flagDupes tList > put tList into scratchList > repeat for

Re: Counting and numbering duplicates in a list

2011-09-28 Thread dunbarx
How fast is this with your list?: on mouseUp repeat for each line tLine in yourList add 1 to dupCounter[tLine] end repeat combine dupCounter with return and comma put dupCounter into yourOutputContainer end mouseUp Craig Newman -Original Message- From: Roger Eller To: Ho

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Jan Schenkel
Ah, I like a challenge while I'm eating corn flakes :-) This one works pretty good on my old iMac G4 (1 millisecond for the small sample you gave us) ## on mouseUp    local tInputList, tOutputList    put the text of field "Input List" into tInputList    local tStartTime, tEndTime    putthemillise

OSX desktop preview icon

2011-09-28 Thread Alex Shaw
Hi I'm sure this has come up before but I cannot find a solution reference. Just creating a "Editor" or "Viewer" type standalone application with Livecode which saves datafiles associated with a certain extension. Application & document icon have been set in the Standalone Builder. The data

Re:

2011-09-28 Thread Mark Talluto
You can use the following messages to capture the delete and prevent it from passing by checking if is one of the objects you wish to protect. deleteKey backspaceKey --example on deleteKey if "protect me" is in the short name of the selobj then --do not delete else pass deleteKey end delet

Re: Dragging folder to a field under linux adds "file://" beforethefolder

2011-09-28 Thread Olivier Dussutour
Hello Matthias, Thank you for responding but I misspoke. I am French and my English is awful. :'-( This is the idea of your script that interests me but how do I change to allow drag several files at once? Cordialement, Olivier Dussutour olivierdussut...@gmail.com - Original Message -

Re: Dragging folder to a field under linux adds "file://" beforethefolder

2011-09-28 Thread Matthias Rebbe
Olivier,, if you just need the list of the dragged files in an variable for example then ON dragdrop put the dragdata["files"] into tList END dragdrop should do. Regards, Matthias Am 29.09.2011 um 07:40 schrieb Olivier Dussutour: > Hello Matthias, > Thank you for responding but I misspoke

Re:

2011-09-28 Thread Pete
What I see is workaround for what is a bug in LC. Definitely need to figure out a solution but report this to the QCC Pete Molly's Revenge On Wed, Sep 28, 2011 at 10:21 PM, Mark Talluto wrote: > You can use the following messages to capture the delete and preven

Re: Counting and numbering duplicates in a list

2011-09-28 Thread Pete
Where are this list of keys coming from? If from an SQL database, this could be done with an SQL SELECT statement with no need to write LC code. Don't know if it would be faster than LC without more information. Pete Molly's Revenge On Wed, Sep 28, 2011 at 11:28