realbasic-nug
[Top] [All Lists]

Re: Editfield text Drop Question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Editfield text Drop Question
From: Scott Forbes <forbes at ravenna dot com>
Date: Mon, 31 May 2004 17:33:05 +1000
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <BCE01812 dot 1556%maury at mccowns dot us>
You may want to download the Undo Toolkit (<http://www.ravenna.com/~forbes/yonk/source>) and take a look at the UndoableEditField control: It detects when the user has dragged in text from outside the EditField by using the MouseEnter event and a timer. It's not pretty, but it works.

If you'd like the EditField to fire its DropObject event when the user drags text into the EditField, sign on to report 'lxfrctpr' (<http://support.realsoftware.com/feedback/viewreport.php? reportid=lxfrctpr>).

-- Scott


On 31 May 2004, at 2:00 PM, Maury McCown wrote:

On 5/30/04 10:37 PM, Phil Heycock uttered the following:

In the EditField's DropObject event:

SUB DropObject (Obj As DragItem)
    IF Obj.TextAvailable THEN
      // create a method to test whether the dropped text
      // is a valid URL, and process accordingly.
      processURL Obj.Text
    END IF
END SUB

Been there, done that — nothing is fired. I even went as simple as this code
in the EF’s DragItem event:

If obj.TextAvailable then
    MsgBox "Worked."
else
    MsgBox "Didn't work."
End if

It seems that RB’s EF isn’t recognizing a text drop like I’m wanting to do.

=(

Take care,
Maury
===========================================
RAILhead Design: “Giving the planet a makeover”
news | icons | desktops | fonts | software | more
< http://www.railheaddesign.com/ >
===========================================



_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>