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