Dr Gerard Hammond wrote:
Yes. If I waited for a second then the drag works fine. You did want spaz testing thoughThe forced delay doesn't feel right though. BBEdit doesn't have this delay. Perhaps this delay isn't needed if the mousedown in within selected text, indicating a quick DnD action rather than a selection extension. Is this scenario able to be accommodated?
As I have been developing the FTC I have studied a fair amount of editors and their behaviors. The first thing I noticed is the wide range of behaviors between them. The delay I stuck in there is based on Apple's Pages word processor. This behavior has a couple of advantages and is why I went with it. My end goal is to build word processor functionality which on the surface may not mean much unless you really look close of how these things are built. So this is why I didn't pick BBEdit as the model. I try to choose the behaviors that are best in class, but some of them are debatable and just a matter of personal preference. The thing that I can adjust for switching to drag and drop mode is the actual timing. Maybe it needs to be shorter interval. If you want to go play with this timing, change the constant FormattedText.DRAG_THRESHOLD. It is measured in ticks and is set to 15. After experimentation, tell me what feels just right for this value. FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev List Archive: www.freelists.org/archives/ftcdev Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in the subject field.