realbasic-nug
[Top] [All Lists]

Re: Editfield text Drop Question

To: REALbasic Network Users Grou <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Editfield text Drop Question
From: Phil Heycock <pheycock at bellsouth dot net>
Date: Sun, 30 May 2004 23:37:33 -0400
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>
Look up DragItem in the language reference.

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

PWH
****************************************

on 5/30/04 11:07 PM, Maury McCown at maury at mccowns dot us wrote:

> Hey all
> 
> I have a feeling I¹m going to be embarrassed once this question gets
> answered, but here goes:
> 
> 1) I have a global floater with an editfield.
> 
> 2) I¹m dragging text selections to this editfield using the built-in drag
> and drop capability ? no code.
> 
> 3) I want to fire a ShowURL event as soon as the text is dropped into the
> editfield, but I don¹t want to use the TextChange event.
> 
> What¹s the bet way to have the editfield realize something¹s been dropped so
> I can fire the ShowURL? I have code in the DropObject, but it¹s not doing
> anything as it¹s referring to a folderitem ? but the text is just a
> selection being dragged from a browser window.
> 
> Any help would be appreciated,
> 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>

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