Drag 'n' drop a textbox in an application.

Can we drag 'n' drop a textbox in an application. I want to drag and drop this textbox in MS Word.
I am not sure how to do that.
Thanks,
Riddhi.

Any suggestions?

Similar Messages

  • Drag and drop won't work in application

    Hello,
    I want to drag and drop elements of a listbox to another position inside ob the listbox.
    That works very fine as long as I use LabView during the programming of the VI.
    If I build the VI to a application drag and drop is not working anymore.
    What is the problem?
    Thanks.
    Ronny

    Just hit the bug myself.  Thanks for taking the time to post so I don't have to waste time debugging a know issue.
    Thanks,
    Matt
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Drag and Drop won't work and Application icons turned to folders

    Today I lost the ability to drag icons. After a bit of searching on the internet I read that deleting the Library/Cache folder might clear it up. I did so, then rebooted the computer.
    Now all my Application icons have become folder icons. What's worse is all my files show a blank icon and say there is no application present to open them when I attempt to open them.
    And I still can't drag my icons.
    What should I do?
    If I could just get drag and drop back in action I could back up my data to my external HD and do a fresh install.
    Or is there some way to move files without dragging them?
    Is there some way to get the Cache folder back to normal?
    I've already repared premissions.
    I'm running OS X 10.2.8
    700 Mz eMac Mac OS X (10.2.x)

    Here's more on Drag+Drop;
    Here's Apple doc.#107247. Apple says to restart your Mac as many times as it takes to allow drag and drop again. This problem is limited to some Jaguar users. It may take numerous restarts.
    It is also suggested you install the 10.2.8 Combo update. You can install right over your present 10.2.8 with no issues. Make sure you unplug all USB and FireWire before installing. Just to be safe, Repair Permissions before and after the install.
    If none of the above works (make sure you restart 100 million times!) download and install the free Dragster 1.61 program which addresses this issue.
    Cheers!
    DALE

  • Drag and Drop for Creative Cloud CS applications

    I just joined Creative Cloud for CS software applicatons; I am already a Muse user - will I need to cancel that use and download Muse again to avoid double payment? Also, I am not able to drag and drop the CS applications at this time - is it not yet available? If not, when will it? Even the Muse app would not drag and drop for download?
    Thank you.

    Are you trying to install the applications my dragging the application icon from the Creative Cloud Apps page at https://creative.adobe.com/apps to your computer? If so that will not work since that is just an image in the web page.
    To install click on the Download (or Try for trial members) link and the Adobe Application Manager (AAM) should download and install. AAM will then handle the installation of the applications.

  • Drag and Drop from LR to other applications

    There was a thread going on D&D from LR to explorer.
    The other appliation problem I have is the apparent inability to drag and drop from lightroom into a file transfer window (e.g., file upload with SmugMug).
    The quick collection is an awesome way to organize a storyline of images from a shoot, select only the images needed, and prepare a shoot for upload. However, short of exporting to a folder first, is there a way to just drag and drop the file set from a LR view (filmstrip or thumbs) to another app? This would just be providing file handles, and I would be satisfied if it only grabbed the original images (pre-"develop").
    Anyone have any luck with this?
    -- Jeff

    No. And not likely anytime soon. Putting a Pointer/alias to SmugMug (if it is an uploader client app, not familiar with it) in the Export Actions Folder for Post Processing from Export is the best you can do at the monemt. To get LR rdits out of LR you have to Export. D&D just isn't going to do that for you.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.9 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • Drag and Drop a file in swing applications

    Hello friends,
    is there anyway that i can know in my program that a file is dragged an dropped?
    to be very clear, i want to allow a user to drag and drop a .txt file in my JFrame.
    1. how do i know that user has dropped such file.
    2. how can i restrict him to drop other files?
    thanks in advance

    Here is a code segment illustrating the method for obtaining the filename or path:
    public void drop(final DropTargetDropEvent event)  {
              if ((event.getSourceActions() & DnDConstants.ACTION_COPY) != 0)
                  event.acceptDrop(DnDConstants.ACTION_COPY);
             else {
                 event.rejectDrop();
                 return;
              Transferable transferable = event.getTransferable();
              DataFlavor[] flavors = event.getCurrentDataFlavors();
              for (int i = 0; i < flavors.length; i++)   {
                   DataFlavor dataFlavor = flavors;
                   try {
                        if (dataFlavor.equals(DataFlavor.javaFileListFlavor)) {
                             java.util.List fileList = (java.util.List) transferable.getTransferData(dataFlavor);
                             final File f = (File) fileList.get(0);
                             waiting = true;
                             Thread runner = new Thread() {
                                  public void run() {                                                                  
                                       if (frame.promptToSave()) {
                                            frame.openDocument(f);     
                                       waiting = false;
                             runner.start();
                             event.dropComplete(true);
                             return;               
                        else if (dataFlavor.equals(DataFlavor.stringFlavor)) {               
                        textArea.setCaretPosition(textArea.viewToModel(event.getLocation()));
                        String s = (String) transferable.getTransferData(dataFlavor);
                        textArea.insert(s, textArea.getCaretPosition());
                        event.dropComplete(true);
                             return;          
    //                    else if (d.isMimeTypeEqual("text/plain")) {               
                   } catch (Exception e) {
                        event.dropComplete(false);
                        return;
              event.dropComplete(false);

  • Drag and drop file into Outlook from AIR application

    I am hoping to see if this would be possible with the Adobe AIR API. We currently have a desktop AIR application that clients install in order to facilitate certain operations triggered via a web application (such as opening files directly from the web).
    One of the actions we are requested to support is the ability to drag and drop files from our web application directly into Outlook and have the file added as an attachment. I saw the documentation at Adobe Flash Platform * Dropping file promises and was wondering if this might be a possibility, or if there was some other method of performing this.
    We are trying to get around the fact that users now have to download a document to their desktop before being able to attach in Outlook.
    Thanks for any assistance.

    You just aren't calling the right NativeDragManager functions. See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d83.html

  • Error using Richfaces Drag and Drop  support in JSF 1.1 application

    Iam using rich faces drag n drop support in my JSF application . The jsp works as expected but I get this weird exception while navigating through my pages.
    Scenario : User logs into the application , from the home page ---> when the user click on a button he is navigated to the jsp which has the drag n drop support. This was working fine till , I have added a menu_incl .jsp inthe sub view . The code snippet is as shown below :
    <body>
         <div id="wrap">
         <f:view>
         <f:subview id="menu">
              <jsp:include page="/search/incld/menu.incl.jsp" />
         </f:subview>
         <rich:dragIndicator id="indicator" />
         <h:form id="myfolder">
              <h:panelGrid columnClasses="panelc,panelc,panelc,panelc" columns="4" width="100%">
                   <!-- Panel for Queries -->     
                   <rich:panel style="width:133px">
                   <f:verbatim>
                             <div style="overflow-x: scroll; overflow-y: scroll; height: 400px;">
                   </f:verbatim>
                        <f:facet name="header">
                             <h:outputText value="Queries" />
                        </f:facet>
                        <h:dataTable id="querytable" value="#{dndBean.queryList}"
                             var="query" binding="#{workSpaceBean.queryData}" >
                             <h:column>
                                  <a4j:outputPanel style="width:100px;border:1px solid gray;padding:2px" layout="block">
                                       <rich:dragSupport dragIndicator=":indicator"
                                            dragType="Query" dragValue="#{query}">
                                            <rich:dndParam name="label" value="#{query.name}" />
                                       </rich:dragSupport>
                                       <h:commandLink value="#{query.name}"
                                       action="#{workSpaceBean.populateQuery}">
                                       </h:commandLink>
                                  </a4j:outputPanel>
                             </h:column>
                        </h:dataTable>
                        <f:verbatim></div> </f:verbatim>
                   </rich:panel>
    Now when I click on the button in my home page , and expect to be navigated to the page which has dran drop support components, I get the following error :
    Error Message: Duplicate component ID 'myfolder:querytable:_id34' found in view.
    Error Code: 500
    Target Servlet: Faces Servlet
    Error Stack:
    java.lang.IllegalStateException: Duplicate component ID 'myfolder:querytable:_id34' found in view.
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:171)
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:179)
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:179)
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:179)
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:179)
    at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:179)
    at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:86)
    at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:90)
    at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:170)
    Iam getting this error only when I include this jsp in the parent jsp :
    <f:subview id="menu">
              <jsp:include page="/search/incld/menu.incl.jsp" />
    </f:subview>
    Iam including the same way in all other jsps of my application , they are all working fine expect for this jsp which has ajax components (rich faces drag m drop support components ) .
    From the error I deduce that the view component is being generated twice , why is this so???
    I would appreciate if some one coulkd guide me through this .... I hope I was able to explain my issu properly , please let me know if it is now clear

    I've tinkered a bit with DnD before in the past. Actually, it's all related to the topic of Data Transfer. You have to provide a source and destination for the transferrable, and your transferrable object must provide the "data flavors" that it supports.
    In theory it doesn't sound too hard, and it works reasonably well within a java application, but to be honest your time might be better spent simply implementing cut n' paste, which is easier. Cut n' paste doesn't require all the fancy UI work, but does the job reasonably well.
    There's a DnD spec available on the documentation web-site, if you haven't already found it. I also discovered that the O'Reilly book (I think it's the AWT book, not the swing one) has a good chapter on data transfer that you might want to read.

  • Drag and Drop between Flex application

    Hello,
    Can we implement the Drag and Drop functionality between 2
    FLEX applications?
    Each flex application is in its own IE.
    Thank you,
    Thierry

    To my knowledge you can't drag and drop anything between 2
    windows in a browser using any technique in the way that you mean.
    In other words, I don't think you can even do this in javascript
    between 2 windows.
    You can use LocalConnection to simulate this though, by
    having the drag manager notify the other application when it leaves
    the stage, so that when you reach the other application it will
    start the drag effect again in that window.

  • Drag and drop not working in PE 12, MacOS 10.7.5 (Lion)

    I "copied" the icon for the Photoshop Elements 12 Editor to the dock.  When I drag and drop a photo icon (example, JPG or NEF) to the Elements Editor icon in the dock, nothing happens -- Elements does not open.  The photo icon just "pops" back to the folder I was dragging it from.  Every previous version of Elements that I've used behaved like any other Mac application and opened the photo (with an NEF file, the photo opened properly in ACR).  Other Mac applications like Preview open a file just fine when it I drag and drop the file on the application icon.
    I tried the same experiment with both the Editor and Organizer icons in my Applications folder and got the same results (the application did not open the file).
    I skimmed through the PE Preferences to see if there was some kind of new preference for "drag and drop" behavior but didn't find anything.
    So, what am I missing?  How can I get PE 12 to open a file when I drag and drop a photo icon onto the Editor (or if I really have to, the Organizer) icon?

    Drag & drop works fine for me on 10.9
    You have possibly copied the wrong icon, The application is located in Support Files.
    Applications >> Adobe Photoshop Elements 12 >> Support Files
    Locate Photoshop Elements 12 Editor inside the Support Files Folder.

  • WPF Treeview Drag and Drop

    Hi All,
    I faced an when using WPF Treeview Drag and Drop function. Firstly, I can achieve Drag and Drop in a general TreeViewItem. I followed this article in CodeProject: http://www.codeproject.com/Articles/55168/Drag-and-Drop-Feature-in-WPF-TreeView-Control
    This scenario works for the TreeViewItem looks like below,
    <TreeView x:Name="_countries" AllowDrop="True" MouseLeftButtonDown="OnTMouseDown">
    <TreeViewItem Header="USA">
    <TreeViewItem Header="New York"/>
    <TreeViewItem Header="Canifonia"/>
    <TreeViewItem Header="Sourth East">
    <TreeViewItem Header="Houston"/>
    <TreeViewItem Header="DAL"/>
    <TreeViewItem Header="SAN"/>
    </TreeViewItem>
    </TreeViewItem>
    <TreeViewItem Header="China">
    <TreeViewItem Header="Beijing"/>
    <TreeViewItem Header="Jiangsu">
    <TreeViewItem Header="Nantong"/>
    <TreeViewItem Header="Suzhou"/>
    <TreeViewItem Header="Wuxi"/>
    </TreeViewItem>
    </TreeViewItem>
    <TreeView.ItemContainerStyle>
    <Style TargetType="TreeViewItem">
    <EventSetter Event="TreeViewItem.DragOver" Handler="OnTDragOver"/>
    <EventSetter Event="TreeViewItem.Drop" Handler="OnTDrop"/>
    <EventSetter Event="TreeViewItem.MouseMove" Handler="OnTMouseMove"/>
    </Style>
    </TreeView.ItemContainerStyle>
    </TreeView>
    My Question is if i custom the TreeView Item like:
    <TreeView.ItemTemplate>
    <HierarchicalDataTemplate DataType="{x:Type local:QuestionInfo}" ItemsSource="{Binding Infos}">
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Path=Name}"/>
    <TextBlock Text="{Binding Path=Score}"/>
    </StackPanel>
    </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
    1. How to achieve the Drag and Drop function?
    2. Since the data is binding to TreeView, When i Drag and Drop item. I want to keep the same order in my data source. In other words, If i drag the third TreeView Item to the first item.
    3. How to change the Drag and Drop animation?
    Could you please do me a favor?
    Thanks a lot.

    Hello Ricky,
    For question 1, "How to achieve the Drag and Drop function?"
    I would recommend you read a blog from here:
    http://wpftutorial.net/DragAndDrop.html?showallcomments
    The important part of this code is the following line:
    // Get the dragged ListViewItem
    ListView listView = sender as ListView;
    ListViewItem listViewItem =
    FindAnchestor<ListViewItem>((DependencyObject)e.OriginalSource);
    And the FindAnchestor is to find the parent of your selection:
    // Helper to search up the VisualTree
    private static T FindAnchestor<T>(DependencyObject current)
    where T : DependencyObject
    do
    if( current is T )
    return (T)current;
    current = VisualTreeHelper.GetParent(current);
    while (current != null);
    return null;
    Please consider the following scenario, if you have a textbox in a canvas, if you want to drag and drop your textbox, you are using the function about to search for it parent object, the canvas and then you are moving that canvas. In this way we can drag
    and drop a item which may contains the textbox you mentioned.
    A complete sample can be checked from a great blog below:
    http://openszone.com/solution/how-to-accomplish-drag-and-drop-wpf-treeviewitem
    And for the question about the Drag and Drop animation, do you mean you want to "create a preview effect for the operation"
    If so, try this blog:http://blogs.msdn.com/b/marcelolr/archive/2006/03/03/showing-drag-drop-feedback-on-the-wpf-adorner-layer.aspx
    The second question "data source", I think we can talk about it if you can share how you defined your datasource. That is more reasonable then just guess how your source will be filled into treeview.
    Anyway, I would recommend you check Flankin's blog for some details about this.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't drag or drop in Itunes?

    Itunes (11.2.2 for Macbook Pro 2012)
    I can drag and drop in finder and other applications. However, I can't select and then drag and drop individual (or groups) of songs, or playlists in Itunes.  For example, when I want to drag a song from one playlist or to another it doesn't "get picked up" when I click and hold down on the song nor does it follow when I try to drag it over to other playlist.
    I did check that these were not smart playlists, the order of the playlists are manual, and I've tried just about everything from closing/reopening program to restarting computer and problem keeps coming back. I also know I can right click song and click add to but this is much more of hassle and actually doesn't work some of the time now too.
    Any feedback is appreciated!
    Thanks!

    I don't use the new iTunes but yours is the only post I have seen stating this issue.  The only time I have seen similar behavior is if you try to do this with a
    bad link ( ! ).  Additionally make sure the item you wish to drag is checked.
    Dragging does not move an item, it adds it and leaves the original in place.

  • Drag and drop functionality not working. IE shows ActiveX error

    Hi all,
    we recently installed new server, but on the new server the drag and drop functionality in web dynpro application is not working.
    when we launch the standard test application wdr_test_drag_and_drop, the Internet explorer is showing a popup: An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction? Yes/No
    if we allow by clicking Yes or No, the drag/drop functionality is not working.
    first I checked if the issue is with my IE version, but it is not working in any of the IE in any computer.
    when I checked the same application from different ecc server on my IE, the different server application is working.
    in my new server, do we need to do anything more to make the drag/drop working.
    thanks,
    Madhu_1980.

    Hi Madhu,
    GO through this link,  it might help
    Step 1: Go to the Tools menu, and select Internet Options
    There are times when the activex plugins are disabled in our browser settings, just enable them and give it a try.
    Regards,
    AkkI

  • I cannot drag and drop for Photos in 10.10.3

    I seem to be unable to drag and drop from the new Photos application in Yosemite 10.10.3.  I have tried this with two different applications including Adobe's Photoshop Elements 13.  It seems to work fine with other apple applications.  (can drag and drop to desktop and to pages - only two I've tried) 
    However, it is very frustrating not to be able to drag and drop from Photos to another photo editing software.  Additionally, when I try to open a file from photos while in Photoshop using the menu - Photoshop crashes.  It appears I have no way to edit my photos in Photoshop if I store them in Photos...anybody else?

    Photos is a brand new, completely rewritten application. Adobe (and others) have not yet added compatibility with it.
    Exporting your your images to the desktop, then bringing them back into Photos, is the only way for external editing right now.

  • Drag and drop to Windows desktop

    Hi
    I've been struggling with this for a while, I've got a TransferHandler class that allows drag and drop from Windows desktop to application, now I'd like to do the reverse, but can't seem to provide the suitable DataFlavor to the OS, I'm using javaFileListFlavor obviously. I am currently creating a Transferable with createTransferable, but this is a StringSelection, and I can't remove this because I need it for internal drag and drop in the application. Please advise.
    public class CDrag extends TransferHandler {
        public CDrag(TreeTableView ttv) {
            this.ttv = ttv;
            dndData = new ArrayList();
            relPath = "/";
            try {
                uriFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
            } catch (ClassNotFoundException e) {
        @Override
        public int getSourceActions(JComponent c) {
            return MOVE;
        @Override
        protected Transferable createTransferable(JComponent c) {
            String nodes = "";
            int j = 0;
            TreePath[] sel = ttv.treeTable.getTreeSelectionModel().getSelectionPaths();
            for (TreePath i : sel) {
                FileNode fNode = (FileNode) i.getLastPathComponent();
                if (j > 0) {
                    nodes = nodes + "\n";
                nodes = nodes + fNode.toString();
                j++;
            return new StringSelection(nodes);
        @Override
        protected void exportDone(JComponent c, Transferable t, int action) {
            if (!dndData.isEmpty()) {
                File[] sg = (File[]) dndData.toArray();
             // delete files that are dropped
                dndData.clear();
        @Override
        public boolean canImport(TransferSupport supp) {
            if (supp.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(uriFlavor)) {
                return true;
            return false;
        private boolean importFiles(TransferSupport supp, File[] files) {
         // function that recursively processes all files and folders
        @Override
        public boolean importData(TransferSupport supp) {
            if (!canImport(supp)) {
                return false;
            String fns = "";
            Transferable t = supp.getTransferable();
            try {
                if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                    File[] fnsl = (File[]) ((List) t.getTransferData(DataFlavor.javaFileListFlavor)).toArray();
                    return importFiles(supp, fnsl);
                } else if (supp.isDataFlavorSupported(uriFlavor)) {
                    String s = (String)t.getTransferData(uriFlavor);
              StringTokenizer st = new StringTokenizer(s, System.getProperty("line.separator"));
              ArrayList files = new ArrayList<File>();
              while (st.hasMoreTokens()) {
                   String file = st.nextToken();
                   try {
                           URL url = new URL(file);
                        files.add(new File(URLDecoder.decode(url.getPath())));
                   } catch (MalformedURLException mue) {
                    return importFiles(supp, (File []) files.toArray());
                } else {
                    fns = (String) t.getTransferData(DataFlavor.stringFlavor);
            } catch (UnsupportedFlavorException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
         // the rest of the code here process a StringSelection
            return true;
        private List<File> dndData;
        private String relPath;
        private DataFlavor uriFlavor;
    }I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.
    Regards
    Lionel

    I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.I know I tried the same thing - I'm not sure this can be done at all, it could be that this can't be done if the file doesn't already exist somewhere on the local file system.
    Edited by: tjacobs01 on Feb 11, 2009 12:41 AM

Maybe you are looking for

  • Movie was not copied to this iPOD because it cannot be played on this iPOD

    I purchased a movie (Star Trek 2009) which includes a "Digital Copy" specifically for use in downloading to iPODs. My iPOD I am trying to download it to is an 8GB video iPOD & I have more than twice the room avail. so what is the hang up?

  • FAX through SMTP

    Hi, We are trying to fax through SMTP. Our mail server accepts the format [[fax:<name>@<number>]]   I understand by default it will generate as  FAX=+recipientnumber@domain. Please suggest how to build the format as required. Thanks in advance. regar

  • Please help NonRegisteringDriver.java:395

    i am trying too connecting jsp with mysql on linux operrating system some time back it was it was conneting perfecctly i am using mysqlconnector for the connection please can you help what can be the problem exception i am getting is type Exception r

  • Crystal report to Excel

    Hi I have downloaded data from crystal report. There are over 100 thousand records. If I export to excel around 65000 records are exported. This could be one of the reason, I could not use filter to analyze the data. Any ways to export all 100 thousa

  • HT203254 Why Mac Book Pro 17 Inch has been removed from the Apple Stores?

    while surfing the Apple web site, I found that Mac Book Pro 17 Inches has been removed from all the stores......is there any fault or some thing wrong has been detected in it?